PageSourceSearch

https://hotelzify.com/static/js/6534.7e1bd813.chunk.js

js hotelzify.com collected 2026-10-01 15:36:05 UTC 372,749 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunklanding_page=self.webpackChunklanding_page||[]).push([[6534],{45:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(8587);function o(t,e){if(null==t)return{};var n,o,s=(0,r.A)(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)n=i[o],-1===e.indexOf(n)&&{}.propertyIsEnumerable.call(t,n)&&(s[n]=t[n])}return s}},454:(t,e,n)=>{function r(t){if(null==t)throw new TypeError("Cannot destructure "+t)}n.d(e,{A:()=>r})},6534:(t,e,n)=>{n.r(e),n.d(e,{BrowserClient:()=>ts,ErrorBoundary:()=>Bg,OpenFeatureIntegrationHook:()=>bg,Profiler:()=>Og,SDK_VERSION:()=>r,SEMANTIC_ATTRIBUTE_SENTRY_OP:()=>i,SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:()=>a,SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:()=>s,SEMANTIC_ATTRIBUTE_SENTRY_SOURCE:()=>o,Scope:()=>bt,WINDOW:()=>Mo,addBreadcrumb:()=>Ft,addEventProcessor:()=>mn,addIntegration:()=>En,addTracingExtensions:()=>Un,breadcrumbsIntegration:()=>$s,browserApiErrorsIntegration:()=>Qs,browserProfilingIntegration:()=>dg,browserSessionIntegration:()=>oi,browserTracingIntegration:()=>Om,buildLaunchDarklyFlagUsedHandler:()=>yg,captureConsoleIntegration:()=>Wn,captureEvent:()=>rn,captureException:()=>en,captureFeedback:()=>qn,captureMessage:()=>nn,captureSession:()=>vn,captureUserFeedback:()=>vi,chromeStackLineParser:()=>gs,close:()=>hn,contextLinesIntegration:()=>Pi,continueTrace:()=>Er,createReduxEnhancer:()=>Wg,createTransport:()=>Hr,createUserFeedbackEnvelope:()=>Qo,debugIntegration:()=>Wr,dedupeIntegration:()=>qr,defaultRequestInstrumentationOptions:()=>dm,defaultStackLineParsers:()=>Cs,defaultStackParser:()=>As,endSession:()=>_n,eventFromException:()=>Xo,eventFromMessage:()=>Jo,exceptionFromError:()=>jo,extraErrorDataIntegration:()=>Xr,featureFlagsIntegration:()=>gg,feedbackAsyncIntegration:()=>Lf,feedbackIntegration:()=>Nf,feedbackSyncIntegration:()=>Nf,flush:()=>pn,forceLoad:()=>_i,functionToStringIntegration:()=>$r,geckoStackLineParser:()=>vs,getActiveSpan:()=>Ue,getClient:()=>Lt,getCurrentHub:()=>Zr,getCurrentScope:()=>It,getDefaultIntegrations:()=>fi,getFeedback:()=>ch,getGlobalScope:()=>Rt,getIsolationScope:()=>Mt,getReplay:()=>tp,getRootSpan:()=>Be,getSpanDescendants:()=>Fe,getSpanStatusFromHttpCode:()=>ve,globalHandlersIntegration:()=>si,httpClientIntegration:()=>Ti,httpContextIntegration:()=>ci,inboundFiltersIntegration:()=>to,init:()=>xg,instrumentOutgoingRequests:()=>pm,isInitialized:()=>fn,lastEventId:()=>dn,launchDarklyIntegration:()=>_g,lazyLoadIntegration:()=>wi,linkedErrorsIntegration:()=>hi,makeBrowserOfflineTransport:()=>Wm,makeFetchTransport:()=>ds,makeMultiplexedTransport:()=>io,metrics:()=>$f,moduleMetadataIntegration:()=>ho,onLoad:()=>yi,openFeatureIntegration:()=>vg,opera10StackLineParser:()=>ks,opera11StackLineParser:()=>xs,parameterize:()=>fo,reactErrorHandler:()=>Ag,reactRouterV3BrowserTracingIntegration:()=>qg,reactRouterV4BrowserTracingIntegration:()=>Xg,reactRouterV5BrowserTracingIntegration:()=>Jg,reactRouterV6BrowserTracingIntegration:()=>T_,reactRouterV7BrowserTracingIntegration:()=>N_,registerSpanErrorInstrumentation:()=>Fn,replayCanvasIntegration:()=>Rp,replayIntegration:()=>$d,reportingObserverIntegration:()=>xi,rewriteFramesIntegration:()=>bo,sendFeedback:()=>$p,sessionTimingIntegration:()=>So,setContext:()=>on,setCurrentClient:()=>wo,setExtra:()=>an,setExtras:()=>sn,setHttpStatus:()=>be,setMeasurement:()=>pr,setTag:()=>un,setTags:()=>cn,setUser:()=>ln,showReportDialog:()=>gi,spanToBaggageHeader:()=>Xe,spanToJSON:()=>Re,spanToTraceHeader:()=>Te,spotlightBrowserIntegration:()=>pg,startBrowserTracingNavigationSpan:()=>Lm,startBrowserTracingPageLoadSpan:()=>Dm,startInactiveSpan:()=>kr,startNewTrace:()=>Ar,startSession:()=>gn,startSpan:()=>Sr,startSpanManual:()=>wr,statsigIntegration:()=>kg,suppressTracing:()=>Cr,tanstackRouterBrowserTracingIntegration:()=>Vg,thirdPartyErrorFilterIntegration:()=>ko,unleashIntegration:()=>Sg,updateSpanName:()=>ze,useProfiler:()=>Lg,winjsStackLineParser:()=>Ss,withActiveSpan:()=>xr,withErrorBoundary:()=>Ug,withIsolationScope:()=>Dt,withProfiler:()=>Dg,withScope:()=>Ot,withSentryReactRouterV6Routing:()=>L_,withSentryReactRouterV7Routing:()=>P_,withSentryRouting:()=>Zg,wrapCreateBrowserRouter:()=>O_,wrapCreateBrowserRouterV6:()=>R_,wrapCreateBrowserRouterV7:()=>F_,wrapCreateMemoryRouterV6:()=>D_,wrapCreateMemoryRouterV7:()=>B_,wrapUseRoutes:()=>M_,wrapUseRoutesV6:()=>I_,wrapUseRoutesV7:()=>U_,zodErrorsIntegration:()=>Io});const r="8.55.0",o="sentry.source",s="sentry.sample_rate",i="sentry.op",a="sentry.origin",c="sentry.idle_span_finish_reason",u="sentry.measurement_unit",l="sentry.measurement_value",d="sentry.custom_span_name",p="sentry.exclusive_time";var h=n(9379);const f=Object.prototype.toString;function m(t){switch(f.call(t)){case"[object Error]":case"[object E
1xception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return x(t,Error)}}function g(t,e){return f.call(t)==="[object ".concat(e,"]")}function _(t){return g(t,"ErrorEvent")}function y(t){return g(t,"DOMError")}function v(t){return g(t,"String")}function b(t){return"object"===typeof t&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function S(t){return null===t||b(t)||"object"!==typeof t&&"function"!==typeof t}function w(t){return g(t,"Object")}function k(t){return"undefined"!==typeof Event&&x(t,Event)}function E(t){return Boolean(t&&t.then&&"function"===typeof t.then)}function x(t,e){try{return t instanceof e}catch(n){return!1}}function C(t){return!("object"!==typeof t||null===t||!t.__isVue&&!t._isVue)}const A=globalThis;function T(t,e,n){const o=n||A,s=o.__SENTRY__=o.__SENTRY__||{},i=s[r]=s[r]||{};return i[t]||(i[t]=e())}const I=A,M=80;function R(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)return"<unknown>";try{let n=t;const r=5,o=[];let s=0,i=0;const a=" > ",c=a.length;let u;const l=Array.isArray(e)?e:e.keyAttrs,d=!Array.isArray(e)&&e.maxStringLength||M;for(;n&&s++<r&&(u=O(n,l),!("html"===u||s>1&&i+o.length*c+u.length>=d));)o.push(u),i+=u.length,n=n.parentNode;return o.reverse().join(a)}catch(n){return"<unknown>"}}function O(t,e){const n=t,r=[];if(!n||!n.tagName)return"";if(I.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=e&&e.length?e.filter(t=>n.getAttribute(t)).map(t=>[t,n.getAttribute(t)]):null;if(o&&o.length)o.forEach(t=>{r.push("[".concat(t[0],'="').concat(t[1],'"]'))});else{n.id&&r.push("#".concat(n.id));const t=n.className;if(t&&v(t)){const e=t.split(/\s+/);for(const t of e)r.push(".".concat(t))}}const s=["aria-label","type","name","title","alt"];for(const i of s){const t=n.getAttribute(i);t&&r.push("[".concat(i,'="').concat(t,'"]'))}return r.join("")}function D(){try{return I.document.location.href}catch(t){return""}}function L(t){if(!I.HTMLElement)return null;let e=t;for(let n=0;n<5;n++){if(!e)return null;if(e instanceof HTMLElement){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}e=e.parentNode}return null}const N="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,P=["debug","info","warn","error","log","assert","trace"],F={};function B(t){if(!("console"in A))return t();const e=A.console,n={},r=Object.keys(F);r.forEach(t=>{const r=F[t];n[t]=e[t],e[t]=r});try{return t()}finally{r.forEach(t=>{e[t]=n[t]})}}const U=T("logger",function(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return N?P.forEach(n=>{e[n]=function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];t&&B(()=>{A.console[n]("".concat("Sentry Logger ","[").concat(n,"]:"),...r)})}}):P.forEach(t=>{e[t]=()=>{}}),e});function j(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"string"!==typeof t||0===e||t.length<=e?t:"".concat(t.slice(0,e),"...")}function H(t,e){let n=t;const r=n.length;if(r<=150)return n;e>r&&(e=r);let o=Math.max(e-60,0);o<5&&(o=0);let s=Math.min(o+140,r);return s>r-5&&(s=r),s===r&&(o=Math.max(s-140,0)),n=n.slice(o,s),o>0&&(n="'{snip} ".concat(n)),s<r&&(n+=" {snip}"),n}function z(t,e){if(!Array.isArray(t))return"";const n=[];for(let o=0;o<t.length;o++){const e=t[o];try{C(e)?n.push("[VueViewModel]"):n.push(String(e))}catch(r){n.push("[value cannot be serialized]")}}return n.join(e)}function W(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!!v(t)&&(g(e,"RegExp")?e.test(t):!!v(e)&&(n?t===e:t.includes(e)))}function q(t){let e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).some(n=>W(t,n,e))}function Y(t,e,n){if(!(e in t))return;const r=t[e],o=n(r);"function"===typeof o&&G(o,r);try{t[e]=o}catch(s){N&&U.log('Failed to replace method "'.concat(e,'" in object'),t)}}function V(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch(r){N&&U.log('Failed to add non-enumerable property "'.concat(e,'" to object'),t)}}function G(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,V(t,"__sentry_original__",e)}catch(n){}}function X(t){return t.__sentry_original__}function J(t){if(m(t))return(0,h.A)({message:t.message,name:t.name,stack:t.stack},$(t));if(k(t)){const e=(0,h.A)({type:t.type,target:K(t.target),currentTarget:K(t.currentTarget)},$(t));return"undefined"!==typeof CustomEvent&&x(t,CustomEvent)&&(e.detail=t.detail),e}return t}function K(t){try{return e=t,"undefined"!==typeof Element&&x(e,Element)?R(t):Object.prototype.toString.call(t)}catch(n){return"<unknown>"}var e}function $(t){if("object"===typeof t&&null!==t){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}return{}}function Z(t){return Q(t,new Map)}function Q(t,e){if(function(t){if(!w(t))return!1;try{const e=Object.getPrototypeOf(t).constructor.name;return!e||"Object"===e}catch(e){return!0}}(t)){const n=e.get(t);if(void 0!==n)return n;const r={};e.set(t,r);for(const o of Object.getOwnPropertyNames(t))"undefined"!==typeof t[o]&&
1(r[o]=Q(t[o],e));return r}if(Array.isArray(t)){const n=e.get(t);if(void 0!==n)return n;const r=[];return e.set(t,r),t.forEach(t=>{r.push(Q(t,e))}),r}return t}const tt=1e3;function et(){return Date.now()/tt}const nt=function(){const{performance:t}=A;if(!t||!t.now)return et;const e=Date.now()-t.now(),n=void 0==t.timeOrigin?e:t.timeOrigin;return()=>(n+t.now())/tt}();let rt;const ot=(()=>{const{performance:t}=A;if(!t||!t.now)return void(rt="none");const e=36e5,n=t.now(),r=Date.now(),o=t.timeOrigin?Math.abs(t.timeOrigin+n-r):e,s=o<e,i=t.timing&&t.timing.navigationStart,a="number"===typeof i?Math.abs(i+n-r):e;return s||a<e?o<=a?(rt="timeOrigin",t.timeOrigin):(rt="navigationStart",i):(rt="dateNow",r)})();function st(){const t=A,e=t.crypto||t.msCrypto;let n=()=>16*Math.random();try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(n=()=>{const t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch(r){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,t=>(t^(15&n())>>t/4).toString(16))}function it(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function at(t){const{message:e,event_id:n}=t;if(e)return e;const r=it(t);return r?r.type&&r.value?"".concat(r.type,": ").concat(r.value):r.type||r.value||n||"<unknown>":n||"<unknown>"}function ct(t,e,n){const r=t.exception=t.exception||{},o=r.values=r.values||[],s=o[0]=o[0]||{};s.value||(s.value=e||""),s.type||(s.type=n||"Error")}function ut(t,e){const n=it(t);if(!n)return;const r=n.mechanism;if(n.mechanism=(0,h.A)((0,h.A)((0,h.A)({},{type:"generic",handled:!0}),r),e),e&&"data"in e){const t=(0,h.A)((0,h.A)({},r&&r.data),e.data);n.mechanism.data=t}}function lt(t){if(function(t){try{return t.__sentry_captured__}catch(e){}}(t))return!0;try{V(t,"__sentry_captured__",!0)}catch(e){}return!1}function dt(t){const e=nt(),n={sid:st(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(t){return Z({sid:"".concat(t.sid),init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"===typeof t.did||"string"===typeof t.did?"".concat(t.did):void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}(n)};return t&&pt(n,t),n}function pt(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),t.did||e.did||(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||nt(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:st()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did="".concat(e.did)),"number"===typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"===typeof e.duration)t.duration=e.duration;else{const e=t.timestamp-t.started;t.duration=e>=0?e:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),"number"===typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}function ht(){return st()}function ft(){return st().substring(16)}function mt(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;if(!e||"object"!==typeof e||n<=0)return e;if(t&&e&&0===Object.keys(e).length)return t;const r=(0,h.A)({},t);for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=mt(r[o],e[o],n-1));return r}const gt="_sentrySpan";function _t(t,e){e?V(t,gt,e):delete t[gt]}function yt(t){return t[gt]}class vt{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:ht(),spanId:ft()}}clone(){const t=new vt;return t._breadcrumbs=[...this._breadcrumbs],t._tags=(0,h.A)({},this._tags),t._extra=(0,h.A)({},this._extra),t._contexts=(0,h.A)({},this._contexts),this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata=(0,h.A)({},this._sdkProcessingMetadata),t._propagationContext=(0,h.A)({},this._propagationContext),t._client=this._client,t._lastEventId=this._lastEventId,_t(t,yt(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&pt(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags=(0,h.A)((0,h.A)({},this._tags),t),this._notifyScopeListeners(),this}setTag(t,e){return this._tags=(0,h.A)((0,h.A)({},this._tags),{},{[t]:e}),this._notifyScopeListeners(),this}setExtras(t){return this._extra=(0,h.A)((0,h.A)({},this._extra),t),this._notifyScopeListeners(),this}setExtra(t,e){return this._extra=(0,h.A)((0,h.A)({},this._extra),{},{[t]:e}),this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const e="function"===typeof t?t(this):t,[n,r]=e instanceof bt?[e.getScopeData(),e.getRequestSession()]:w(e)?[t,t.requestSession]:[],{tags:o,extra:s,user:i,contexts:a,level:c,fingerprint:u=[],propagationContext:l}=n||{};return this._tags=(0,h.A)((0,h.A)({},this._tags),o),this._extra=(0,h.A)((0,h.A)({},this._extra),s),this._contexts=(0,h.A)((0,h.A)({},this._contexts),a),i&&Object.keys(i).length&&(this._user=i),c&&(this._level=c),u.length&&(this._fingerprint=u),l&&(this._propagationContext=l),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,_t(this,void 0),this._attachments=[],this.setPropagationContext({traceId:ht()}),this._notifyScopeListeners(),this}addBreadcrumb(t,e){const n="number"===typeof e?e:100;if(n<=0)return this;const r=(0,h.A)({timestamp:et()},t);return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client&&this._client.re
1cordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,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:yt(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=mt(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=(0,h.A)({spanId:ft()},t),this}getPropagationContext(){return this._propagationContext}captureException(t,e){const n=e&&e.event_id?e.event_id:st();if(!this._client)return U.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(t,(0,h.A)((0,h.A)({originalException:t,syntheticException:r},e),{},{event_id:n}),this),n}captureMessage(t,e,n){const r=n&&n.event_id?n.event_id:st();if(!this._client)return U.warn("No client configured on scope - will not capture message!"),r;const o=new Error(t);return this._client.captureMessage(t,e,(0,h.A)((0,h.A)({originalException:t,syntheticException:o},n),{},{event_id:r}),this),r}captureEvent(t,e){const n=e&&e.event_id?e.event_id:st();return this._client?(this._client.captureEvent(t,(0,h.A)((0,h.A)({},e),{},{event_id:n}),this),n):(U.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}const bt=vt;function St(){return wt(A),A}function wt(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||r,e[r]=e[r]||{}}class kt{constructor(t,e){let n,r;n=t||new bt,r=e||new bt,this._stack=[{scope:n}],this._isolationScope=r}withScope(t){const e=this._pushScope();let n;try{n=t(e)}catch(r){throw this._popScope(),r}return E(n)?n.then(t=>(this._popScope(),t),t=>{throw this._popScope(),t}):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function Et(){const t=wt(St());return t.stack=t.stack||new kt(T("defaultCurrentScope",()=>new bt),T("defaultIsolationScope",()=>new bt))}function xt(t){return Et().withScope(t)}function Ct(t,e){const n=Et();return n.withScope(()=>(n.getStackTop().scope=t,e(t)))}function At(t){return Et().withScope(()=>t(Et().getIsolationScope()))}function Tt(t){const e=wt(t);return e.acs?e.acs:{withIsolationScope:At,withScope:xt,withSetScope:Ct,withSetIsolationScope:(t,e)=>At(e),getCurrentScope:()=>Et().getScope(),getIsolationScope:()=>Et().getIsolationScope()}}function It(){return Tt(St()).getCurrentScope()}function Mt(){return Tt(St()).getIsolationScope()}function Rt(){return T("globalScope",()=>new bt)}function Ot(){const t=Tt(St());for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];if(2===n.length){const[e,r]=n;return e?t.withSetScope(e,r):t.withScope(r)}return t.withScope(n[0])}function Dt(){const t=Tt(St());for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];if(2===n.length){const[e,r]=n;return e?t.withSetIsolationScope(e,r):t.withIsolationScope(r)}return t.withIsolationScope(n[0])}function Lt(){return It().getClient()}function Nt(t){const e=t.getPropagationContext(),{traceId:n,spanId:r,parentSpanId:o}=e;return Z({trace_id:n,span_id:r,parent_span_id:o})}const Pt=100;function Ft(t,e){const n=Lt(),r=Mt();if(!n)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:s=Pt}=n.getOptions();if(s<=0)return;const i=et(),a=(0,h.A)({timestamp:i},t),c=o?B(()=>o(a,e)):a;null!==c&&(n.emit&&n.emit("beforeAddBreadcrumb",c,e),r.addBreadcrumb(c,s))}const Bt="production",Ut="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;var jt;function Ht(t){return new Wt(e=>{e(t)})}
1function zt(t){return new Wt((e,n)=>{n(t)})}!function(t){t[t.PENDING=0]="PENDING";t[t.RESOLVED=1]="RESOLVED";t[t.REJECTED=2]="REJECTED"}(jt||(jt={}));class Wt{constructor(t){Wt.prototype.__init.call(this),Wt.prototype.__init2.call(this),Wt.prototype.__init3.call(this),Wt.prototype.__init4.call(this),this._state=jt.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(e){this._reject(e)}}then(t,e){return new Wt((n,r)=>{this._handlers.push([!1,e=>{if(t)try{n(t(e))}catch(o){r(o)}else n(e)},t=>{if(e)try{n(e(t))}catch(o){r(o)}else r(t)}]),this._executeHandlers()})}catch(t){return this.then(t=>t,t)}finally(t){return new Wt((e,n)=>{let r,o;return this.then(e=>{o=!1,r=e,t&&t()},e=>{o=!0,r=e,t&&t()}).then(()=>{o?n(r):e(r)})})}__init(){this._resolve=t=>{this._setResult(jt.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(jt.REJECTED,t)}}__init3(){this._setResult=(t,e)=>{this._state===jt.PENDING&&(E(e)?e.then(this._resolve,this._reject):(this._state=t,this._value=e,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===jt.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(t=>{t[0]||(this._state===jt.RESOLVED&&t[1](this._value),this._state===jt.REJECTED&&t[2](this._value),t[0]=!0)})}}}function qt(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return new Wt((o,s)=>{const i=t[r];if(null===e||"function"!==typeof i)o(e);else{const a=i((0,h.A)({},e),n);Ut&&i.id&&null===a&&U.log('Event processor "'.concat(i.id,'" dropped event')),E(a)?a.then(e=>qt(t,e,n,r+1).then(o)).then(null,s):qt(t,a,n,r+1).then(o).then(null,s)}})}let Yt,Vt,Gt;function Xt(t){const e=A._sentryDebugIds;if(!e)return{};const n=Object.keys(e);return Gt&&n.length===Vt||(Vt=n.length,Gt=n.reduce((n,r)=>{Yt||(Yt={});const o=Yt[r];if(o)n[o[0]]=o[1];else{const o=t(r);for(let t=o.length-1;t>=0;t--){const s=o[t],i=s&&s.filename,a=e[r];if(i&&a){n[i]=a,Yt[r]=[i,a];break}}}return n},{})),Gt}const Jt=50,Kt="?",$t=/\(error: (.*)\)/,Zt=/captureMessage|captureException/;function Qt(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];const r=e.sort((t,e)=>t[0]-e[0]).map(t=>t[1]);return function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const o=[],s=t.split("\n");for(let i=e;i<s.length;i++){const t=s[i];if(t.length>1024)continue;const e=$t.test(t)?t.replace($t,"$1"):t;if(!e.match(/\S*Error: /)){for(const t of r){const n=t(e);if(n){o.push(n);break}}if(o.length>=Jt+n)break}}return function(t){if(!t.length)return[];const e=Array.from(t);/sentryWrapped/.test(te(e).function||"")&&e.pop();e.reverse(),Zt.test(te(e).function||"")&&(e.pop(),Zt.test(te(e).function||"")&&e.pop());return e.slice(0,Jt).map(t=>(0,h.A)((0,h.A)({},t),{},{filename:t.filename||te(e).filename,function:t.function||Kt}))}(o.slice(n))}}function te(t){return t[t.length-1]||{}}const ee="<anonymous>";function ne(t){try{return t&&"function"===typeof t&&t.name||ee}catch(e){return ee}}function re(t){const e=t.exception;if(e){const t=[];try{return e.values.forEach(e=>{e.stacktrace.frames&&t.push(...e.stacktrace.frames)}),t}catch(n){return}}}function oe(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0;try{return ie("",t,e,n)}catch(r){return{ERROR:"**non-serializable** (".concat(r,")")}}}function se(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:102400;const r=oe(t,e);return o=r,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(o))>n?se(t,e-1,n):r;var o}function ie(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1/0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){const t="function"===typeof WeakSet,e=t?new WeakSet:[];return[function(n){if(t)return!!e.has(n)||(e.add(n),!1);for(let t=0;t<e.length;t++)if(e[t]===n)return!0;return e.push(n),!1},function(n){if(t)e.delete(n);else for(let t=0;t<e.length;t++)if(e[t]===n){e.splice(t,1);break}}]}();const[s,i]=o;if(null==e||["boolean","string"].includes(typeof e)||"number"===typeof e&&Number.isFinite(e))return e;const a=function(t,e){try{if("domain"===t&&e&&"object"===typeof e&&e._events)return"[Domain]";if("domainEmitter"===t)return"[DomainEmitter]";if("undefined"!==typeof global&&e===global)return"[Global]";if("undefined"!==typeof window&&e===window)return"[Window]";if("undefined"!==typeof document&&e===document)return"[Document]";if(C(e))return"[VueViewModel]";if(w(n=e)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n)return"[SyntheticEvent]";if("number"===typeof e&&!Number.isFinite(e))return"[".concat(e,"]");if("function"===typeof e)return"[Function: ".concat(ne(e),"]");if("symbol"===typeof e)return"[".concat(String(e),"]");if("bigint"===typeof e)return"[BigInt: ".concat(String(e),"]");const r=function(t){const e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}(e);return/^HTML(\w*)Element$/.test(r)?"[HTMLElement: ".concat(r,"]"):"[object ".concat(r,"]")}catch(r){return"**non-serializable** (".concat(r,")")}var n}(t,e);if(!a.startsWith("[object "))return a;
1if(e.__sentry_skip_normalization__)return e;const c="number"===typeof e.__sentry_override_normalization_depth__?e.__sentry_override_normalization_depth__:n;if(0===c)return a.replace("object ","");if(s(e))return"[Circular ~]";const u=e;if(u&&"function"===typeof u.toJSON)try{return ie("",u.toJSON(),c-1,r,o)}catch(h){}const l=Array.isArray(e)?[]:{};let d=0;const p=J(e);for(const f in p){if(!Object.prototype.hasOwnProperty.call(p,f))continue;if(d>=r){l[f]="[MaxProperties ~]";break}const t=p[f];l[f]=ie(f,t,c-1,r,o),d++}return i(e),l}const ae="sentry-",ce=/^sentry-/,ue=8192;function le(t){const e=function(t){if(!t||!v(t)&&!Array.isArray(t))return;if(Array.isArray(t))return t.reduce((t,e)=>{const n=pe(e);return Object.entries(n).forEach(e=>{let[n,r]=e;t[n]=r}),t},{});return pe(t)}(t);if(!e)return;const n=Object.entries(e).reduce((t,e)=>{let[n,r]=e;if(n.match(ce)){t[n.slice(ae.length)]=r}return t},{});return Object.keys(n).length>0?n:void 0}function de(t){if(!t)return;return function(t){if(0===Object.keys(t).length)return;return Object.entries(t).reduce((t,e,n)=>{let[r,o]=e;const s="".concat(encodeURIComponent(r),"=").concat(encodeURIComponent(o)),i=0===n?s:"".concat(t,",").concat(s);return i.length>ue?(N&&U.warn("Not adding key: ".concat(r," with val: ").concat(o," to baggage header due to exceeding baggage size limits.")),t):i},"")}(Object.entries(t).reduce((t,e)=>{let[n,r]=e;return r&&(t["".concat(ae).concat(n)]=r),t},{}))}function pe(t){return t.split(",").map(t=>t.split("=").map(t=>decodeURIComponent(t.trim()))).reduce((t,e)=>{let[n,r]=e;return n&&r&&(t[n]=r),t},{})}function he(t){if("boolean"===typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const e=Lt(),n=t||e&&e.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}const fe="_sentryMetrics";function me(t){const e=t[fe];if(!e)return;const n={};for(const[,[r,o]]of e){(n[r]||(n[r]=[])).push(Z(o))}return n}const ge=0,_e=1,ye=2;function ve(t){if(t<400&&t>=100)return{code:_e};if(t>=400&&t<500)switch(t){case 401:return{code:ye,message:"unauthenticated"};case 403:return{code:ye,message:"permission_denied"};case 404:return{code:ye,message:"not_found"};case 409:return{code:ye,message:"already_exists"};case 413:return{code:ye,message:"failed_precondition"};case 429:return{code:ye,message:"resource_exhausted"};case 499:return{code:ye,message:"cancelled"};default:return{code:ye,message:"invalid_argument"}}if(t>=500&&t<600)switch(t){case 501:return{code:ye,message:"unimplemented"};case 503:return{code:ye,message:"unavailable"};case 504:return{code:ye,message:"deadline_exceeded"};default:return{code:ye,message:"internal_error"}}return{code:ye,message:"unknown_error"}}function be(t,e){t.setAttribute("http.response.status_code",e);const n=ve(e);"unknown_error"!==n.message&&t.setStatus(n)}const Se=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function we(t,e){const n=function(t){if(!t)return;const e=t.match(Se);if(!e)return;let n;return"1"===e[3]?n=!0:"0"===e[3]&&(n=!1),{traceId:e[1],parentSampled:n,parentSpanId:e[2]}}(t),r=le(e);if(!n||!n.traceId)return{traceId:ht(),spanId:ft()};const{traceId:o,parentSpanId:s,parentSampled:i}=n;return{traceId:o,parentSpanId:s,spanId:ft(),sampled:i,dsc:r||{}}}function ke(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ht(),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ft(),n=arguments.length>2?arguments[2]:void 0,r="";return void 0!==n&&(r=n?"-1":"-0"),"".concat(t,"-").concat(e).concat(r)}const Ee=1;let xe=!1;function Ce(t){const{spanId:e,traceId:n}=t.spanContext(),{data:r,op:o,parent_span_id:s,status:i,origin:a}=Re(t);return Z({parent_span_id:s,span_id:e,trace_id:n,data:r,op:o,status:i,origin:a})}function Ae(t){const{spanId:e,traceId:n,isRemote:r}=t.spanContext();return Z({parent_span_id:r?e:Re(t).parent_span_id,span_id:r?ft():e,trace_id:n})}function Te(t){const{traceId:e,spanId:n}=t.spanContext();return ke(e,n,Oe(t))}function Ie(t){return"number"===typeof t?Me(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?Me(t.getTime()):nt()}function Me(t){return t>9999999999?t/1e3:t}function Re(t){if(function(t){return"function"===typeof t.getSpanJSON}(t))return t.getSpanJSON();try{const{spanId:e,traceId:n}=t.spanContext();if(function(t){const e=t;return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}(t)){const{attributes:r,startTime:o,name:s,endTime:c,parentSpanId:u,status:l}=t;return Z({span_id:e,trace_id:n,data:r,description:s,parent_span_id:u,start_timestamp:Ie(o),timestamp:Ie(c)||void 0,status:De(l),op:r[i],origin:r[a],_metrics_summary:me(t)})}return{span_id:e,trace_id:n}}catch(e){return{}}}function Oe(t){const{traceFlags:e}=t.spanContext();return e===Ee}function De(t){if(t&&t.code!==ge)return t.code===_e?"ok":t.message||"unknown_error"}const Le="_sentryChildSpans",Ne="_sentryRootSpan";function Pe(t,e){const n=t[Ne]||t;V(e,Ne,n),t[Le]?t[Le].add(e):V(t,Le,new Set([e]))}function Fe(t){const e=new Set;return function t(n){if(!e.has(n)&&Oe(n)){e.add(n);const r=n[Le]?Array.from(n[Le]):[];for(const e of r)t(e)}}(t),Array.from(e)}function Be(t){return t[Ne]||t}function Ue(){const t=Tt(St());return t.getActiveSpan?t.getActiveSpan():yt(It())}function je(t,e,n,r,o,s){const i=Ue();i&&function(t,e,n,r,o,s,i){const a=t[fe]||(t[fe]=new Map),c="".concat(e,":").concat(n,"@").concat(o),u=a.get(i);if(u){const[,t]=u;a.set(i,[c,{min:Math.min(t.min,r),max:Math.max(t.max,r),count:t.count+=1,sum:t.sum+=r,tags:t.tags}])}else a.set(i,[c,{min:r,max:r,count:1,sum:r,tags:s}])}(i,t,e,n,r,o,s)}function He(){xe||(B(()=>{console.warn("[Sentry] Deprecation warning: Returning null from `beforeSendSpan` will be disallowed from SDK ver
1sion 9.0.0 onwards. The callback will only support mutating spans. To drop certain spans, configure the respective integrations directly.")}),xe=!0)}function ze(t,e){t.updateName(e),t.setAttributes({[o]:"custom",[d]:e})}const We="_frozenDsc";function qe(t,e){V(t,We,e)}function Ye(t,e){const n=e.getOptions(),{publicKey:r}=e.getDsn()||{},o=Z({environment:n.environment||Bt,release:n.release,public_key:r,trace_id:t});return e.emit("createDsc",o),o}function Ve(t,e){const n=e.getPropagationContext();return n.dsc||Ye(n.traceId,t)}function Ge(t){const e=Lt();if(!e)return{};const n=Be(t),r=n[We];if(r)return r;const i=n.spanContext().traceState,a=i&&i.get("sentry.dsc"),c=a&&le(a);if(c)return c;const u=Ye(t.spanContext().traceId,e),l=Re(n),d=l.data||{},p=d[s];null!=p&&(u.sample_rate="".concat(p));const h=d[o],f=l.description;return"url"!==h&&f&&(u.transaction=f),he()&&(u.sampled=String(Oe(n))),e.emit("createDsc",u,n),u}function Xe(t){return de(Ge(t))}function Je(t,e){const{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:s}=e;!function(t,e){const{extra:n,tags:r,user:o,contexts:s,level:i,transactionName:a}=e,c=Z(n);c&&Object.keys(c).length&&(t.extra=(0,h.A)((0,h.A)({},c),t.extra));const u=Z(r);u&&Object.keys(u).length&&(t.tags=(0,h.A)((0,h.A)({},u),t.tags));const l=Z(o);l&&Object.keys(l).length&&(t.user=(0,h.A)((0,h.A)({},l),t.user));const d=Z(s);d&&Object.keys(d).length&&(t.contexts=(0,h.A)((0,h.A)({},d),t.contexts));i&&(t.level=i);a&&"transaction"!==t.type&&(t.transaction=a)}(t,e),r&&function(t,e){t.contexts=(0,h.A)({trace:Ae(e)},t.contexts),t.sdkProcessingMetadata=(0,h.A)({dynamicSamplingContext:Ge(e)},t.sdkProcessingMetadata);const n=Be(e),r=Re(n).description;r&&!t.transaction&&"transaction"===t.type&&(t.transaction=r)}(t,r),function(t,e){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],e&&(t.fingerprint=t.fingerprint.concat(e));t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}(t,n),function(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}(t,o),function(t,e){t.sdkProcessingMetadata=(0,h.A)((0,h.A)({},t.sdkProcessingMetadata),e)}(t,s)}function Ke(t,e){const{extra:n,tags:r,user:o,contexts:s,level:i,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:u,eventProcessors:l,attachments:d,propagationContext:p,transactionName:f,span:m}=e;$e(t,"extra",n),$e(t,"tags",r),$e(t,"user",o),$e(t,"contexts",s),t.sdkProcessingMetadata=mt(t.sdkProcessingMetadata,a,2),i&&(t.level=i),f&&(t.transactionName=f),m&&(t.span=m),c.length&&(t.breadcrumbs=[...t.breadcrumbs,...c]),u.length&&(t.fingerprint=[...t.fingerprint,...u]),l.length&&(t.eventProcessors=[...t.eventProcessors,...l]),d.length&&(t.attachments=[...t.attachments,...d]),t.propagationContext=(0,h.A)((0,h.A)({},t.propagationContext),p)}function $e(t,e,n){t[e]=mt(t[e],n,1)}function Ze(t,e,n,r,o,s){const{normalizeDepth:i=3,normalizeMaxBreadth:a=1e3}=t,c=(0,h.A)((0,h.A)({},e),{},{event_id:e.event_id||n.event_id||st(),timestamp:e.timestamp||et()}),u=n.integrations||t.integrations.map(t=>t.name);!function(t,e){const{environment:n,release:r,dist:o,maxValueLength:s=250}=e;t.environment=t.environment||n||Bt,!t.release&&r&&(t.release=r);!t.dist&&o&&(t.dist=o);t.message&&(t.message=j(t.message,s));const i=t.exception&&t.exception.values&&t.exception.values[0];i&&i.value&&(i.value=j(i.value,s));const a=t.request;a&&a.url&&(a.url=j(a.url,s))}(c,t),function(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}(c,u),o&&o.emit("applyFrameMetadata",e),void 0===e.type&&function(t,e){const n=Xt(e);try{t.exception.values.forEach(t=>{t.stacktrace.frames.forEach(t=>{n&&t.filename&&(t.debug_id=n[t.filename])})})}catch(r){}}(c,t.stackParser);const l=function(t,e){if(!e)return t;const n=t?t.clone():new bt;return n.update(e),n}(r,n.captureContext);n.mechanism&&ut(c,n.mechanism);const d=o?o.getEventProcessors():[],p=Rt().getScopeData();if(s){Ke(p,s.getScopeData())}if(l){Ke(p,l.getScopeData())}const f=[...n.attachments||[],...p.attachments];f.length&&(n.attachments=f),Je(c,p);return qt([...d,...p.eventProcessors],c,n).then(t=>(t&&function(t){const e={};
1try{t.exception.values.forEach(t=>{t.stacktrace.frames.forEach(t=>{t.debug_id&&(t.abs_path?e[t.abs_path]=t.debug_id:t.filename&&(e[t.filename]=t.debug_id),delete t.debug_id)})})}catch(r){}if(0===Object.keys(e).length)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const n=t.debug_meta.images;Object.entries(e).forEach(t=>{let[e,r]=t;n.push({type:"sourcemap",code_file:e,debug_id:r})})}(t),"number"===typeof i&&i>0?function(t,e,n){if(!t)return null;const r=(0,h.A)((0,h.A)((0,h.A)((0,h.A)((0,h.A)({},t),t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(t=>(0,h.A)((0,h.A)({},t),t.data&&{data:oe(t.data,e,n)}))}),t.user&&{user:oe(t.user,e,n)}),t.contexts&&{contexts:oe(t.contexts,e,n)}),t.extra&&{extra:oe(t.extra,e,n)});t.contexts&&t.contexts.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=oe(t.contexts.trace.data,e,n)));t.spans&&(r.spans=t.spans.map(t=>(0,h.A)((0,h.A)({},t),t.data&&{data:oe(t.data,e,n)})));t.contexts&&t.contexts.flags&&r.contexts&&(r.contexts.flags=oe(t.contexts.flags,3,n));return r}(t,i,a):t))}function Qe(t){if(t)return function(t){return t instanceof bt||"function"===typeof t}(t)||function(t){return Object.keys(t).some(t=>tn.includes(t))}(t)?{captureContext:t}:t}const tn=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function en(t,e){return It().captureException(t,Qe(e))}function nn(t,e){const n="string"===typeof e?e:void 0,r="string"!==typeof e?{captureContext:e}:void 0;return It().captureMessage(t,n,r)}function rn(t,e){return It().captureEvent(t,e)}function on(t,e){Mt().setContext(t,e)}function sn(t){Mt().setExtras(t)}function an(t,e){Mt().setExtra(t,e)}function cn(t){Mt().setTags(t)}function un(t,e){Mt().setTag(t,e)}function ln(t){Mt().setUser(t)}function dn(){return Mt().lastEventId()}async function pn(t){const e=Lt();return e?e.flush(t):(Ut&&U.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function hn(t){const e=Lt();return e?e.close(t):(Ut&&U.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function fn(){return!!Lt()}function mn(t){Mt().addEventProcessor(t)}function gn(t){const e=Lt(),n=Mt(),r=It(),{release:o,environment:s=Bt}=e&&e.getOptions()||{},{userAgent:i}=A.navigator||{},a=dt((0,h.A)((0,h.A)({release:o,environment:s,user:r.getUser()||n.getUser()},i&&{userAgent:i}),t)),c=n.getSession();return c&&"ok"===c.status&&pt(c,{status:"exited"}),_n(),n.setSession(a),r.setSession(a),a}function _n(){const t=Mt(),e=It(),n=e.getSession()||t.getSession();n&&function(t,e){let n={};e?n={status:e}:"ok"===t.status&&(n={status:"exited"}),pt(t,n)}(n),yn(),t.setSession(),e.setSession()}function yn(){const t=Mt(),e=It(),n=Lt(),r=e.getSession()||t.getSession();r&&n&&n.captureSession(r)}function vn(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]?_n():yn()}const bn=[];function Sn(t){const e=t.defaultIntegrations||[],n=t.integrations;let r;if(e.forEach(t=>{t.isDefaultInstance=!0}),Array.isArray(n))r=[...e,...n];else if("function"===typeof n){const t=n(e);r=Array.isArray(t)?t:[t]}else r=e;const o=function(t){const e={};return t.forEach(t=>{const{name:n}=t,r=e[n];r&&!r.isDefaultInstance&&t.isDefaultInstance||(e[n]=t)}),Object.values(e)}(r),s=o.findIndex(t=>"Debug"===t.name);if(s>-1){const[t]=o.splice(s,1);o.push(t)}return o}function wn(t,e){for(const n of e)n&&n.afterAllSetup&&n.afterAllSetup(t)}function kn(t,e,n){if(n[e.name])Ut&&U.log("Integration skipped because it was already installed: ".concat(e.name));else{if(n[e.name]=e,-1===bn.indexOf(e.name)&&"function"===typeof e.setupOnce&&(e.setupOnce(),bn.push(e.name)),e.setup&&"function"===typeof e.setup&&e.setup(t),"function"===typeof e.preprocessEvent){const n=e.preprocessEvent.bind(e);t.on("preprocessEvent",(e,r)=>n(e,r,t))}if("function"===typeof e.processEvent){const n=e.processEvent.bind(e),r=Object.assign((e,r)=>n(e,r,t),{id:e.name});t.addEventProcessor(r)}Ut&&U.log("Integration installed: ".concat(e.name))}}function En(t){const e=Lt();e?e.addIntegration(t):Ut&&U.warn('Cannot add integration "'.concat(t.name,'" because no SDK Client is available.'))}const xn={},Cn={};function An(t,e){xn[t]=xn[t]||[],xn[t].push(e)}function Tn(t,e){if(!Cn[t]){Cn[t]=!0;try{e()}catch(n){N&&U.error("Error while instrumenting ".concat(t),n)}}}function In(t,e){const n=t&&xn[t];if(n)for(const o of n)try{o(e)}catch(r){N&&U.error("Error while triggering instrumentation handler.\nType: ".concat(t,"\nName: ").concat(ne(o),"\nError:"),r)}}let Mn=null;function Rn(t){const e="error";An(e,t),Tn(e,On)}function On(){Mn=A.onerror,A.onerror=function(t,e,n,r,o){return In("error",{column:r,error:o,line:n,msg:t,url:e}),!!Mn&&Mn.apply(this,arguments)},A.onerror.__SENTRY_INSTRUMENTED__=!0}let Dn=null;function Ln(t){const e="unhandledrejection";An(e,t),Tn(e,Nn)}function Nn(){Dn=A.onunhandledrejection,A.onunhandledrejection=function(t){return In("unhandledrejection",t),!Dn||Dn.apply(this,arguments)},A.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}let Pn=!1;function Fn(){Pn||(Pn=!0,Rn(Bn),Ln(Bn))}function Bn(){const t=Ue(),e=t&&Be(t);if(e){const t="internal_error";Ut&&U.log("[Tracing] Root span: ".concat(t," -> Global error occurred")),e.setStatus({code:ye,message:t})}}function Un(){Fn()}function jn(t){const e="console";An(e,t),Tn(e,Hn)}function Hn(){"console"in A&&P.forEach(function(t){t in A.console&&Y(A.console,t,function(e){return F[t]=e,function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];In("console",{args:n,level:t});const o=F[t];o&&o.apply(A.console,n)}})})}Bn.tag="sentry_tracingErrorCallback";function zn(t){return"warn"===t?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log"}const Wn=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=t.levels||P,n=!!t.handled;return{name:"CaptureConsole",setup(t){"console"in A&&jn(r=>{let{args:o,level:s}=r;Lt()===t&&e.includes(s)&&function(t,e,n){const r={level:zn(e),extra:{arguments:t}};Ot(o=>{if(o.addEventProcessor(t=>(t.logger="console",ut(t,{handled:n,type:"console"}),t)),"assert"===e){if(!t[0]){const e="Assertion failed: ".concat(z(t.slice(1)," ")||"console.assert");o.setExtra("arguments",t.slice(1)),nn(e,r)}return}const s=t.find(t=>t instanceof Error);if(s)return void en(s,r);nn(z(t," "),r)})}(o,s,n)})}}};function qn(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:It();const{message:r,name:o,email:s,url:i,source:a,associatedEventId:c,tags:u}=t,l={contexts:{feedback:Z({contact_email:s,name:o,message:r,url:i,source:a,associated_event_id:c})},type:"feedback",level:"info",tags:u},d=n&&n.getClient()||Lt();d&&d.emit("beforeSendFeedback",l,e);return n.captureEvent(l,e)}function Yn(t,e){let n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};try{n=t()}catch(o){throw e(o),r(),o}return function(t,e,n){if(E(t))return t.then(t=>(n(),t),t=>{throw e(t),n(),t});return n(),t}(n,e,r)}function Vn(t){if("boolean"===typeof t)return Number(t);const e="string"===typeof t?parseFloat(t):t;if(!("number"!==typeof e||isNaN(e)||e<0||e>1))return e;
1Ut&&U.warn("[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ".concat(JSON.stringify(t)," of type ").concat(JSON.stringify(typeof t),"."))}class Gn{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._traceId=t.traceId||ht(),this._spanId=t.spanId||ft()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}end(t){}setAttribute(t,e){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,e,n){return this}addLink(t){return this}addLinks(t){return this}recordException(t,e){}}const Xn=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Jn(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{host:n,path:r,pass:o,port:s,projectId:i,protocol:a,publicKey:c}=t;return"".concat(a,"://").concat(c).concat(e&&o?":".concat(o):"")+"@".concat(n).concat(s?":".concat(s):"","/").concat(r?"".concat(r,"/"):r).concat(i)}function Kn(t){const e=Xn.exec(t);if(!e)return void B(()=>{console.error("Invalid Sentry Dsn: ".concat(t))});const[n,r,o="",s="",i="",a=""]=e.slice(1);let c="",u=a;const l=u.split("/");if(l.length>1&&(c=l.slice(0,-1).join("/"),u=l.pop()),u){const t=u.match(/^\d+/);t&&(u=t[0])}return $n({host:s,pass:o,path:c,projectId:u,port:i,protocol:n,publicKey:r})}function $n(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function Zn(t){const e="string"===typeof t?Kn(t):$n(t);if(e&&function(t){if(!N)return!0;const{port:e,projectId:n,protocol:r}=t;return!["protocol","publicKey","host","projectId"].find(e=>!t[e]&&(U.error("Invalid Sentry Dsn: ".concat(e," missing")),!0))&&(n.match(/^\d+$/)?function(t){return"http"===t||"https"===t}(r)?!e||!isNaN(parseInt(e,10))||(U.error("Invalid Sentry Dsn: Invalid port ".concat(e)),!1):(U.error("Invalid Sentry Dsn: Invalid protocol ".concat(r)),!1):(U.error("Invalid Sentry Dsn: Invalid projectId ".concat(n)),!1))}(e))return e}function Qn(t){return[t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]]}function tr(t,e){const[n,r]=t;return[n,[...r,e]]}function er(t,e){const n=t[1];for(const r of n){if(e(r,r[0].type))return!0}return!1}function nr(t,e){return er(t,(t,n)=>e.includes(n))}function rr(t){return A.__SENTRY__&&A.__SENTRY__.encodePolyfill?A.__SENTRY__.encodePolyfill(t):(new TextEncoder).encode(t)}function or(t){const[e,n]=t;let r=JSON.stringify(e);function o(t){"string"===typeof r?r="string"===typeof t?r+t:[rr(r),t]:r.push("string"===typeof t?rr(t):t)}for(const i of n){const[t,e]=i;if(o("\n".concat(JSON.stringify(t),"\n")),"string"===typeof e||e instanceof Uint8Array)o(e);else{let t;try{t=JSON.stringify(e)}catch(s){t=JSON.stringify(oe(e))}o(t)}}return"string"===typeof r?r:function(t){const e=t.reduce((t,e)=>t+e.length,0),n=new Uint8Array(e);let r=0;for(const o of t)n.set(o,r),r+=o.length;return n}(r)}function sr(t){let e="string"===typeof t?rr(t):t;function n(t){const n=e.subarray(0,t);return e=e.subarray(t+1),n}function r(){let t=e.indexOf(10);return t<0&&(t=e.length),JSON.parse((r=n(t),A.__SENTRY__&&A.__SENTRY__.decodePolyfill?A.__SENTRY__.decodePolyfill(r):(new TextDecoder).decode(r)));var r}const o=r(),s=[];for(;e.length;){const t=r(),e="number"===typeof t.length?t.length:void 0;s.push([t,e?n(e):r()])}return[o,s]}function ir(t){return[{type:"span"},t]}function ar(t){const e="string"===typeof t.data?rr(t.data):t.data;return[Z({type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),e]}const cr={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 ur(t){return cr[t]}function lr(t){if(!t||!t.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function dr(t,e,n,r){const o=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return(0,h.A)((0,h.A)((0,h.A)({event_id:t.event_id,sent_at:(new Date).toISOString()},e&&{sdk:e}),!!n&&r&&{dsn:Jn(r)}),o&&{trace:Z((0,h.A)({},o))})}function pr(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ue();const o=r&&Be(r);o&&(Ut&&U.log("[Measurement] Setting measurement on root span: ".concat(t," = ").concat(e," ").concat(n)),o.addEvent(t,{[l]:e,[u]:n}))}function hr(t){if(!t||0===t.length)return;const e={};return t.forEach(t=>{const n=t.attributes||{},r=n[u],o=n[l];"string"===typeof r&&"number"===typeof o&&(e[t.name]={value:o,unit:r})}),e}const fr="_sentryScope",mr="_sentryIsolationScope";function gr(t){return{scope:t[fr],isolationScope:t[mr]}}class _r{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._traceId=t.traceId||ht(),this._spanId=t.spanId||ft(),this._startTime=t.startTimestamp||nt(),this._attributes={},this.setAttributes((0,h.A)({[a]:"manual",[i]:t.op},t.attributes)),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}
1addLink(t){return this}addLinks(t){return this}recordException(t,e){}spanContext(){const{_spanId:t,_traceId:e,_sampled:n}=this;return{spanId:t,traceId:e,traceFlags:n?Ee:0}}setAttribute(t,e){return void 0===e?delete this._attributes[t]:this._attributes[t]=e,this}setAttributes(t){return Object.keys(t).forEach(e=>this.setAttribute(e,t[e])),this}updateStartTime(t){this._startTime=Ie(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(o,"custom"),this}end(t){this._endTime||(this._endTime=Ie(t),function(t){if(!Ut)return;const{description:e="< unknown name >",op:n="< unknown op >"}=Re(t),{spanId:r}=t.spanContext(),o=Be(t)===t,s='[Tracing] Finishing "'.concat(n,'" ').concat(o?"root ":"",'span "').concat(e,'" with ID ').concat(r);U.log(s)}(this),this._onSpanEnded())}getSpanJSON(){return Z({data:this._attributes,description:this._name,op:this._attributes[i],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:De(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[a],_metrics_summary:me(this),profile_id:this._attributes["sentry.profile_id"],exclusive_time:this._attributes[p],measurements:hr(this._events),is_segment:this._isStandaloneSpan&&Be(this)===this||void 0,segment_id:this._isStandaloneSpan?Be(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,e,n){Ut&&U.log("[Tracing] Adding an event to span:",t);const r=yr(e)?e:n||nt(),o=yr(e)?{}:e||{},s={name:t,time:Ie(r),attributes:o};return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=Lt();t&&t.emit("spanEnd",this);if(!(this._isStandaloneSpan||this===Be(this)))return;if(this._isStandaloneSpan)return void(this._sampled?function(t){const e=Lt();if(!e)return;const n=t[1];if(!n||0===n.length)return void e.recordDroppedEvent("before_send","span");e.sendEnvelope(t)}(function(t,e){const n=Ge(t[0]),r=e&&e.getDsn(),o=e&&e.getOptions().tunnel,s=(0,h.A)((0,h.A)({sent_at:(new Date).toISOString()},function(t){return!!t.trace_id&&!!t.public_key}(n)&&{trace:n}),!!o&&r&&{dsn:Jn(r)}),i=e&&e.getOptions().beforeSendSpan,a=i?t=>{const e=i(Re(t));return e||He(),e}:t=>Re(t),c=[];for(const u of t){const t=a(u);t&&c.push(ir(t))}return Qn(s,c)}([this],t)):(Ut&&U.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span")));const e=this._convertSpanToTransaction();if(e){(gr(this).scope||It()).captureEvent(e)}}_convertSpanToTransaction(){if(!vr(Re(this)))return;this._name||(Ut&&U.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:t,isolationScope:e}=gr(this),n=(t||It()).getClient()||Lt();if(!0!==this._sampled)return Ut&&U.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(n&&n.recordDroppedEvent("sample_rate","transaction"));const r=Fe(this).filter(t=>t!==this&&!function(t){return t instanceof _r&&t.isStandaloneSpan()}(t)).map(t=>Re(t)).filter(vr),s=this._attributes[o];delete this._attributes[d],r.forEach(t=>{t.data&&delete t.data[d]});const i=(0,h.A)({contexts:{trace:Ce(this)},spans:r.length>1e3?r.sort((t,e)=>t.start_timestamp-e.start_timestamp).slice(0,1e3):r,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:(0,h.A)({capturedSpanScope:t,capturedSpanIsolationScope:e},Z({dynamicSamplingContext:Ge(this)})),_metrics_summary:me(this)},s&&{transaction_info:{source:s}}),a=hr(this._events);return a&&Object.keys(a).length&&(Ut&&U.log("[Measurements] Adding measurements to transaction event",JSON.stringify(a,void 0,2)),i.measurements=a),i}}function yr(t){return t&&"number"===typeof t||t instanceof Date||Array.isArray(t)}function vr(t){return!!t.start_timestamp&&!!t.timestamp&&!!t.span_id&&!!t.trace_id}const br="__SENTRY_SUPPRESS_TRACING__";function Sr(t,e){const n=Mr();if(n.startSpan)return n.startSpan(t,e);const r=Ir(t),{forceTransaction:o,parentSpan:s}=t;return Ot(t.scope,()=>Dr(s)(()=>
1{const n=It(),s=Or(n),i=t.onlyIfParent&&!s?new Gn:Tr({parentSpan:s,spanArguments:r,forceTransaction:o,scope:n});return _t(n,i),Yn(()=>e(i),()=>{const{status:t}=Re(i);!i.isRecording()||t&&"ok"!==t||i.setStatus({code:ye,message:"internal_error"})},()=>i.end())}))}function wr(t,e){const n=Mr();if(n.startSpanManual)return n.startSpanManual(t,e);const r=Ir(t),{forceTransaction:o,parentSpan:s}=t;return Ot(t.scope,()=>Dr(s)(()=>{const n=It(),s=Or(n),i=t.onlyIfParent&&!s?new Gn:Tr({parentSpan:s,spanArguments:r,forceTransaction:o,scope:n});function a(){i.end()}return _t(n,i),Yn(()=>e(i,a),()=>{const{status:t}=Re(i);!i.isRecording()||t&&"ok"!==t||i.setStatus({code:ye,message:"internal_error"})})}))}function kr(t){const e=Mr();if(e.startInactiveSpan)return e.startInactiveSpan(t);const n=Ir(t),{forceTransaction:r,parentSpan:o}=t;return(t.scope?e=>Ot(t.scope,e):void 0!==o?t=>xr(o,t):t=>t())(()=>{const e=It(),o=Or(e);return t.onlyIfParent&&!o?new Gn:Tr({parentSpan:o,spanArguments:n,forceTransaction:r,scope:e})})}const Er=(t,e)=>{const n=Tt(St());if(n.continueTrace)return n.continueTrace(t,e);const{sentryTrace:r,baggage:o}=t;return Ot(t=>{const n=we(r,o);return t.setPropagationContext(n),e()})};function xr(t,e){const n=Mr();return n.withActiveSpan?n.withActiveSpan(t,e):Ot(n=>(_t(n,t||void 0),e(n)))}function Cr(t){const e=Mr();return e.suppressTracing?e.suppressTracing(t):Ot(e=>(e.setSDKProcessingMetadata({[br]:!0}),t()))}function Ar(t){return Ot(e=>(e.setPropagationContext({traceId:ht()}),Ut&&U.info("Starting a new trace with id ".concat(e.getPropagationContext().traceId)),xr(null,t)))}function Tr(t){let{parentSpan:e,spanArguments:n,forceTransaction:r,scope:o}=t;if(!he())return new Gn;const s=Mt();let i;if(e&&!r)i=function(t,e,n){const{spanId:r,traceId:o}=t.spanContext(),s=!e.getScopeData().sdkProcessingMetadata[br]&&Oe(t),i=s?new _r((0,h.A)((0,h.A)({},n),{},{parentSpanId:r,traceId:o,sampled:s})):new Gn({traceId:o});Pe(t,i);const a=Lt();a&&(a.emit("spanStart",i),n.endTimestamp&&a.emit("spanEnd",i));return i}(e,o,n),Pe(e,i);else if(e){const t=Ge(e),{traceId:r,spanId:s}=e.spanContext(),a=Oe(e);i=Rr((0,h.A)({traceId:r,parentSpanId:s},n),o,a),qe(i,t)}else{const{traceId:t,dsc:e,parentSpanId:r,sampled:a}=(0,h.A)((0,h.A)({},s.getPropagationContext()),o.getPropagationContext());i=Rr((0,h.A)({traceId:t,parentSpanId:r},n),o,a),e&&qe(i,e)}return function(t){if(!Ut)return;const{description:e="< unknown name >",op:n="< unknown op >",parent_span_id:r}=Re(t),{spanId:o}=t.spanContext(),s=Oe(t),i=Be(t),a=i===t,c="[Tracing] Starting ".concat(s?"sampled":"unsampled"," ").concat(a?"root ":"","span"),u=["op: ".concat(n),"name: ".concat(e),"ID: ".concat(o)];if(r&&u.push("parent ID: ".concat(r)),!a){const{op:t,description:e}=Re(i);u.push("root ID: ".concat(i.spanContext().spanId)),t&&u.push("root op: ".concat(t)),e&&u.push("root description: ".concat(e))}U.log("".concat(c,"\n  ").concat(u.join("\n  ")))}(i),function(t,e,n){t&&(V(t,mr,n),V(t,fr,e))}(i,o,s),i}function Ir(t){const e=t.experimental||{},n=(0,h.A)({isStandalone:e.standalone},t);if(t.startTime){const e=(0,h.A)({},n);return e.startTimestamp=Ie(t.startTime),delete e.startTime,e}return n}function Mr(){return Tt(St())}function Rr(t,e,n){const r=Lt(),i=r&&r.getOptions()||{},{name:a="",attributes:c}=t,[u,l]=e.getScopeData().sdkProcessingMetadata[br]?[!1]:function(t,e){if(!he(t))return[!1];const n=Mt().getScopeData().sdkProcessingMetadata.normalizedRequest,r=(0,h.A)((0,h.A)({},e),{},{normalizedRequest:e.normalizedRequest||n});let o;o="function"===typeof t.tracesSampler?t.tracesSampler(r):void 0!==r.parentSampled?r.parentSampled:"undefined"!==typeof t.tracesSampleRate?t.tracesSampleRate:1;const s=Vn(o);return void 0===s?(Ut&&U.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):s?Math.random()<s?[!0,s]:(Ut&&U.log("[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ".concat(Number(o),")")),[!1,s]):(Ut&&U.log("[Tracing] Discarding transaction because ".concat("function"===typeof t.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),[!1,s])}(i,{name:a,parentSampled:n,attributes:c,transactionContext:{name:a,parentSampled:n}}),d=new _r((0,h.A)((0,h.A)({},t),{},{attributes:(0,h.A)({[o]:"custom"},t.attributes),sampled:u}));return void 0!==l&&d.setAttribute(s,l),r&&r.emit("spanStart",d),d}function Or(t){const e=yt(t);if(!e)return;const n=Lt();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?Be(e):e}function Dr(t){return void 0!==t?e=>xr(t,e):t=>t()}
1class Lr extends Error{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"warn";super(t),this.message=t,this.logLevel=e}}function Nr(t){const e=[];function n(t){return e.splice(e.indexOf(t),1)[0]||Promise.resolve(void 0)}return{$:e,add:function(r){if(!(void 0===t||e.length<t))return zt(new Lr("Not adding Promise because buffer limit was reached."));const o=r();return-1===e.indexOf(o)&&e.push(o),o.then(()=>n(o)).then(null,()=>n(o).then(null,()=>{})),o},drain:function(t){return new Wt((n,r)=>{let o=e.length;if(!o)return n(!0);const s=setTimeout(()=>{t&&t>0&&n(!1)},t);e.forEach(t=>{Ht(t).then(()=>{--o||(clearTimeout(s),n(!0))},r)})})}}}const Pr=6e4;function Fr(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();const n=parseInt("".concat(t),10);if(!isNaN(n))return 1e3*n;const r=Date.parse("".concat(t));return isNaN(r)?Pr:r-e}function Br(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now();return function(t,e){return t[e]||t.all||0}(t,e)>n}function Ur(t,e){let{statusCode:n,headers:r}=e,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now();const s=(0,h.A)({},t),i=r&&r["x-sentry-rate-limits"],a=r&&r["retry-after"];if(i)for(const c of i.trim().split(",")){const[t,e,,,n]=c.split(":",5),r=parseInt(t,10),i=1e3*(isNaN(r)?60:r);if(e)for(const a of e.split(";"))"metric_bucket"===a&&n&&!n.split(";").includes("custom")||(s[a]=o+i);else s.all=o+i}else a?s.all=o+Fr(a,o):429===n&&(s.all=o+6e4);return s}const jr=64;function Hr(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Nr(t.bufferSize||jr),r={};return{send:function(o){const s=[];if(er(o,(e,n)=>{const o=ur(n);if(Br(r,o)){const r=zr(e,n);t.recordDroppedEvent("ratelimit_backoff",o,r)}else s.push(e)}),0===s.length)return Ht({});const i=Qn(o[0],s),a=e=>{er(i,(n,r)=>{const o=zr(n,r);t.recordDroppedEvent(e,ur(r),o)})};return n.add(()=>e({body:or(i)}).then(t=>(void 0!==t.statusCode&&(t.statusCode<200||t.statusCode>=300)&&Ut&&U.warn("Sentry responded with status code ".concat(t.statusCode," to sent event.")),r=Ur(r,t),t),t=>{throw a("network_error"),t})).then(t=>t,t=>{if(t instanceof Lr)return Ut&&U.error("Skipped sending event because buffer is full."),a("queue_overflow"),Ht({});throw t})},flush:t=>n.drain(t)}}function zr(t,e){if("event"===e||"transaction"===e)return Array.isArray(t)?t[1]:void 0}const Wr=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=(0,h.A)({debugger:!1,stringify:!1},t);return{name:"Debug",setup(t){t.on("beforeSendEvent",(t,n)=>{e.debugger,B(()=>{e.stringify?(console.log(JSON.stringify(t,null,2)),n&&Object.keys(n).length&&console.log(JSON.stringify(n,null,2))):(console.log(t),n&&Object.keys(n).length&&console.log(n))})})}}},qr=()=>{let t;return{name:"Dedupe",processEvent(e){if(e.type)return e;try{if(function(t,e){if(!e)return!1;if(function(t,e){const n=t.message,r=e.message;if(!n&&!r)return!1;if(n&&!r||!n&&r)return!1;if(n!==r)return!1;if(!Vr(t,e))return!1;if(!Yr(t,e))return!1;return!0}(t,e))return!0;if(function(t,e){const n=Gr(e),r=Gr(t);if(!n||!r)return!1;if(n.type!==r.type||n.value!==r.value)return!1;if(!Vr(t,e))return!1;if(!Yr(t,e))return!1;return!0}(t,e))return!0;return!1}(e,t))return Ut&&U.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(n){}return t=e}}};function Yr(t,e){let n=re(t),r=re(e);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let o=0;o<r.length;o++){const t=r[o],e=n[o];if(t.filename!==e.filename||t.lineno!==e.lineno||t.colno!==e.colno||t.function!==e.function)return!1}return!0}function Vr(t,e){let n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(o){return!1}}function Gr(t){return t.exception&&t.exception.values&&t.exception.values[0]}const Xr=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{depth:e=3,captureErrorCause:n=!0}=t;return{name:"ExtraErrorData",processEvent(t,r,o){const{maxValueLength:s=250}=o.getOptions();return function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;if(!e.originalException||!m(e.originalException))return t;const s=e.originalException.name||e.originalException.constructor.name,i=function(t,e,n){try{const r=["n
1ame","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],o={};for(const e of Object.keys(t)){if(-1!==r.indexOf(e))continue;const s=t[e];o[e]=m(s)||"string"===typeof s?j("".concat(s),n):s}if(e&&void 0!==t.cause&&(o.cause=m(t.cause)?t.cause.toString():t.cause),"function"===typeof t.toJSON){const e=t.toJSON();for(const t of Object.keys(e)){const n=e[t];o[t]=m(n)?n.toString():n}}return o}catch(r){Ut&&U.error("Unable to extract extra data from the Error object:",r)}return null}(e.originalException,r,o);if(i){const e=(0,h.A)({},t.contexts),r=oe(i,n);return w(r)&&(V(r,"__sentry_skip_normalization__",!0),e[s]=r),(0,h.A)((0,h.A)({},t),{},{contexts:e})}return t}(t,r,e,n,s)}}};let Jr;const Kr=new WeakMap,$r=()=>({name:"FunctionToString",setupOnce(){Jr=Function.prototype.toString;try{Function.prototype.toString=function(){const t=X(this),e=Kr.has(Lt())&&void 0!==t?t:this;for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Jr.apply(e,r)}}catch(t){}},setup(t){Kr.set(t,!0)}});const Zr=function(){return{bindClient(t){It().setClient(t)},withScope:Ot,getClient:()=>Lt(),getScope:It,getIsolationScope:Mt,captureException:(t,e)=>It().captureException(t,e),captureMessage:(t,e,n)=>It().captureMessage(t,e,n),captureEvent:rn,addBreadcrumb:Ft,setUser:ln,setTags:cn,setTag:un,setExtra:an,setExtras:sn,setContext:on,getIntegration(t){const e=Lt();return e&&e.getIntegrationByName(t.id)||null},startSession:gn,endSession:_n,captureSession(t){if(t)return _n();!function(){const t=It(),e=Lt(),n=t.getSession();e&&n&&e.captureSession(n)}()}}};const Qr=[/^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+$/],to=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{name:"InboundFilters",processEvent(e,n,r){const o=r.getOptions(),s=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:Qr],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]],ignoreInternal:void 0===t.ignoreInternal||t.ignoreInternal}}(t,o);return function(t,e){if(e.ignoreInternal&&function(t){try{return"SentryError"===t.exception.values[0].type}catch(e){}return!1}(t))return Ut&&U.warn("Event dropped due to being internal Sentry Error.\nEvent: ".concat(at(t))),!0;if(function(t,e){if(t.type||!e||!e.length)return!1;return function(t){const e=[];t.message&&e.push(t.message);let n;try{n=t.exception.values[t.exception.values.length-1]}catch(r){}n&&n.value&&(e.push(n.value),n.type&&e.push("".concat(n.type,": ").concat(n.value)));return e}(t).some(t=>q(t,e))}(t,e.ignoreErrors))return Ut&&U.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: ".concat(at(t))),!0;if(function(t){if(t.type)return!1;if(!t.exception||!t.exception.values||0===t.exception.values.length)return!1;return!t.message&&!t.exception.values.some(t=>t.stacktrace||t.type&&"Error"!==t.type||t.value)}(t))return Ut&&U.warn("Event dropped due to not having an error message, error type or stacktrace.\nEvent: ".concat(at(t))),!0;if(function(t,e){if("transaction"!==t.type||!e||!e.length)return!1;const n=t.transaction;return!!n&&q(n,e)}(t,e.ignoreTransactions))return Ut&&U.warn("Event dropped due to being matched by `ignoreTransactions` option.\nEvent: ".concat(at(t))),!0;if(function(t,e){if(!e||!e.length)return!1;const n=eo(t);return!!n&&q(n,e)}(t,e.denyUrls))return Ut&&U.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: ".concat(at(t),".\nUrl: ").concat(eo(t))),!0;if(!function(t,e){if(!e||!e.length)return!0;const n=eo(t);return!n||q(n,e)}(t,e.allowUrls))return Ut&&U.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: ".concat(at(t),".\nUrl: ").concat(eo(t))),!0;return!1}
1(e,s)?null:e}}};function eo(t){try{let n;try{n=t.exception.values[0].stacktrace.frames}catch(e){}return n?function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];for(let e=t.length-1;e>=0;e--){const n=t[e];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(n):null}catch(n){return Ut&&U.error("Cannot extract url for event ".concat(at(t))),null}}const no="7";function ro(t){const e=t.protocol?"".concat(t.protocol,":"):"",n=t.port?":".concat(t.port):"";return"".concat(e,"//").concat(t.host).concat(n).concat(t.path?"/".concat(t.path):"","/api/")}function oo(t,e,n){return e||"".concat(function(t){return"".concat(ro(t)).concat(t.projectId,"/envelope/")}(t),"?").concat(function(t,e){const n={sentry_version:no};return t.publicKey&&(n.sentry_key=t.publicKey),e&&(n.sentry_client="".concat(e.name,"/").concat(e.version)),new URLSearchParams(n).toString()}(t,n))}function so(t,e){let n;return er(t,(t,r)=>(e.includes(r)&&(n=Array.isArray(t)?t[1]:void 0),!!n)),n}function io(t,e){return n=>{const r=t(n),o=new Map;function s(e,r){const s=r?"".concat(e,":").concat(r):e;let i=o.get(s);if(!i){const a=Kn(e);if(!a)return;const c=oo(a,n.tunnel);i=r?function(t,e){return n=>{const r=t(n);return(0,h.A)((0,h.A)({},r),{},{send:async t=>{const n=so(t,["event","transaction","profile","replay_event"]);return n&&(n.release=e),r.send(t)}})}}(t,r)((0,h.A)((0,h.A)({},n),{},{url:c})):t((0,h.A)((0,h.A)({},n),{},{url:c})),o.set(s,i)}return[e,i]}return{send:async function(t){const n=e({envelope:t,getEvent:function(e){const n=e&&e.length?e:["event"];return so(t,n)}}).map(t=>"string"===typeof t?s(t,void 0):s(t.dsn,t.release)).filter(t=>!!t),o=n.length?n:[["",r]];return(await Promise.all(o.map(e=>{let[n,r]=e;return r.send(function(t,e){return Qn(e?(0,h.A)((0,h.A)({},t[0]),{},{dsn:e}):t[0],t[1])}(t,n))})))[0]},flush:async function(t){const e=[...o.values(),r];return(await Promise.all(e.map(e=>e.flush(t)))).every(t=>t)}}}}const ao=new Map,co=new Set;function uo(t,e){return function(t){if(A._sentryModuleMetadata)for(const e of Object.keys(A._sentryModuleMetadata)){const n=A._sentryModuleMetadata[e];if(co.has(e))continue;co.add(e);const r=t(e);for(const t of r.reverse())if(t.filename){ao.set(t.filename,n);break}}}(t),ao.get(e)}function lo(t,e){try{e.exception.values.forEach(e=>{if(e.stacktrace)for(const n of e.stacktrace.frames||[]){if(!n.filename||n.module_metadata)continue;const e=uo(t,n.filename);e&&(n.module_metadata=e)}})}catch(n){}}function po(t){try{t.exception.values.forEach(t=>{if(t.stacktrace)for(const e of t.stacktrace.frames||[])delete e.module_metadata})}catch(e){}}const ho=()=>({name:"ModuleMetadata",setup(t){t.on("beforeEnvelope",t=>{er(t,(t,e)=>{if("event"===e){const e=Array.isArray(t)?t[1]:void 0;e&&(po(e),t[1]=e)}})}),t.on("applyFrameMetadata",e=>{if(e.type)return;lo(t.getOptions().stackParser,e)})}});function fo(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];const o=new String(String.raw(t,...n));return o.__sentry_template_string__=t.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),o.__sentry_template_values__=n,o}function mo(t,e){let n=0;for(let r=t.length-1;r>=0;r--){const e=t[r];"."===e?t.splice(r,1):".."===e?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}const go=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function _o(t){const e=t.length>1024?"<truncated>".concat(t.slice(-1024)):t,n=go.exec(e);return n?n.slice(1):[]}function yo(){let t="",e=!1;for(let n=arguments.length-1;n>=-1&&!e;n--){const r=n>=0?n<0||arguments.length<=n?void 0:arguments[n]:"/";r&&(t="".concat(r,"/").concat(t),e="/"===r.charAt(0))}return t=mo(t.split("/").filter(t=>!!t),!e).join("/"),(e?"/":"")+t||"."}function vo(t){let e=0;for(;e<t.length&&""===t[e];e++);let n=t.length-1;for(;n>=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}const bo=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=t.root,n=t.prefix||"app:///",r="window"in A&&void 0!==A.window,o=t.iteratee||function(t){let{isBrowser:e,root:n,prefix:r}=t;return t=>{if(!t.filename)return t;const o=/^[a-zA-Z]:\\/.test(t.filename)||t.filename.includes("\\")&&!t.filename.includes("/"),s=/^\//.test(t.filename);if(e){if(n){const e=t.filename;0===e.indexOf(n)&&(t.filename=e.replace(n,r))}}else if(o||s){const e=o?t.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):t.filename,s=n?function(t,e){t=yo(t).slice(1),e=yo(e).slice(1);const n=vo(t.split("/")),r=vo(e.split("/")),o=Math.min(n.length,r.length);let s=o;for(let a=0;a<o;a++)if(n[a]!==r[a]){s=a;break}let i=[];for(let a=s;a<n.length;a++)i.push("..");return i=i.concat(r.slice(s)),i.join("/")}(n,e):function(t,e){let n=_o(t)[2]||"";return e&&n.slice(-1*e.length)===e&&(n=n.slice(0,n.length-e.length)),n}(e);t.filename="".concat(r).concat(s)}return t}}({isBrowser:r,root:e,prefix:n});return{name:"RewriteFrames",processEvent(t){let e=t;return t.exception&&Array.isArray(t.exception.values)&&(e=function(t){try{return(0,h.A)((0,h.A)({},t),{},{exception:(0,h.A)((0,h.A)({},t.exception),{},{values:t.exception.values.map(t=>{return(0,h.A)((0,h.A)({},t),t.stacktrace&&{stacktrace:(e=t.stacktrace,(0,h.A)((0,h.A)({},e),{},{frames:e&&e.frames&&e.frames.map(t=>o(t))}))});var e})})})}catch(e){return t}}(e)),e}}};const So=()=>{const t=1e3*nt();return{name:"SessionTiming",processEvent(e){const n=1e3*nt();return(0,h.A)((0,h.A)({},e),{},{extra:(0,h.A)((0,h.A)({},e.extra),{},{"session:start":t,"session:duration":n-t,"session:end":n})})}}};function wo(t){It().setClient(t)}const ko=t=>({name:"ThirdPartyErrorsFilter",setup(t){t.on("beforeEnvelope",t=>{er(t,(t,e)=>{if("event"===e){const e=Array.isArray(t)?t[1]:void 0;e&&(po(e),t[1]=e)}})}),t.on("applyFrameMetadata",e=>{if(e.type)return;lo(t.getOptions().stackParser,e)})},processEvent(e){const n=function(t){const e=re(t);if(!e)return;return e.filter(t=>!!t.filename).map(t=>t.module_metadata?Object.keys(t.module_metadata).filter(t=>t.startsWith(Eo)).map(t=>t.slice(Eo.length)):[])}(e);if(n){const r=n["drop-error-if-contains-third-party-frames"===t.behaviour||"apply-tag-if-contains-third-party-frames"===t.behaviour?"some":"every"](e=>!e.some(e=>t.filterKeys.includes(e)));if(r){if("drop-error-if-contains-third-party-frames"===t.behaviour||"drop-error-if-exclusively-contains-third-party-frames"===t.behaviour)return null;e.tags=(0,h.A)((0,h.A)({},e.tags),{},{third_party_code:!0})}}return e}});const Eo="_sentryBundlerPluginAppKey:";function xo(t){return(0,h.A)((0,h.A)({},t),{},{path:"path"in t&&Array.isArray(t.path)?t.path.join("."):void 0,keys:"keys"in t?JSON.stringify(t.keys):void 0,unionErrors:"unionErrors"in t?JSON.stringify(t.unionErrors):void 0})}function Co(t){return t.map(t=>"number"===typeof t?"<array>":t).join(".")}function Ao(t){const e=new Set;for(const r of t.issues){const t=Co(r.path);t.length>0&&e.add(t)}const n=Array.from(e);if(0===n.length){let e="variable";if(t.issues.length>0){const n=t.issues[0];void 0!==n&&"expected"in n&&"string"===typeof n.expected&&(e=n.expected)}return"Failed to validate ".concat(e)}return"Failed to validate keys: ".concat(j(n.join(", "),100))}function To(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if(!n.exception||!n.exception.values||!r||!r.originalException||(!m(o=r.originalException)||"ZodError"!==o.name||!Array.isArray(o.issues))||0===r.originalException.issues.length)return n;var o;try{const o=(e?r.originalException.issues:r.originalException.issues.slice(0,t)).map(xo);return e&&(Array.isArray(r.attachments)||(r.attachments=[]),r.attachments.push({f
1ilename:"zod_issues.json",data:JSON.stringify({issues:o})})),(0,h.A)((0,h.A)({},n),{},{exception:(0,h.A)((0,h.A)({},n.exception),{},{values:[(0,h.A)((0,h.A)({},n.exception.values[0]),{},{value:Ao(r.originalException)}),...n.exception.values.slice(1)]}),extra:(0,h.A)((0,h.A)({},n.extra),{},{"zoderror.issues":o.slice(0,t)})})}catch(s){return(0,h.A)((0,h.A)({},n),{},{extra:(0,h.A)((0,h.A)({},n.extra),{},{"zoderrors sentry integration parse error":{message:"an exception was thrown while processing ZodError within applyZodErrorsToEvent()",error:s instanceof Error?"".concat(s.name,": ").concat(s.message,"\n").concat(s.stack):"unknown"}})})}}const Io=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e="undefined"===typeof t.limit?10:t.limit;return{name:"ZodErrors",processEvent:(n,r)=>To(e,t.saveZodIssuesAsAttachment,n,r)}},Mo=A;let Ro=0;function Oo(){return Ro>0}function Do(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!function(t){return"function"===typeof t}(t))return t;try{const e=t.__sentry_wrapped__;if(e)return"function"===typeof e?e:t;if(X(t))return t}catch(r){return t}const n=function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];try{const n=r.map(t=>Do(t,e));return t.apply(this,n)}catch(s){throw Ro++,setTimeout(()=>{Ro--}),Ot(t=>{t.addEventProcessor(t=>(e.mechanism&&(ct(t,void 0,void 0),ut(t,e.mechanism)),t.extra=(0,h.A)((0,h.A)({},t.extra),{},{arguments:r}),t)),en(s)}),s}};try{for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}catch(o){}G(n,t),V(t,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>t.name})}catch(s){}return n}const Lo="Not capturing exception because it's already been captured.";class No{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=Zn(t.dsn):Ut&&U.warn("No DSN provided, client will not send events."),this._dsn){const e=oo(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport((0,h.A)((0,h.A)({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this)},t.transportOptions),{},{url:e}))}const e=["enableTracing","tracesSampleRate","tracesSampler"].find(e=>e in t&&void 0==t[e]);e&&B(()=>{console.warn("[Sentry] Deprecation warning: `".concat(e,"` is set to undefined, which leads to tracing being enabled. In v9, a value of `undefined` will result in tracing being disabled."))})}captureException(t,e,n){const r=st();if(lt(t))return Ut&&U.log(Lo),r;const o=(0,h.A)({event_id:r},e);return this._process(this.eventFromException(t,o).then(t=>this._captureEvent(t,o,n))),o.event_id}captureMessage(t,e,n,r){const o=(0,h.A)({event_id:st()},n),s=b(t)?t:String(t),i=S(t)?this.eventFromMessage(s,e,o):this.eventFromException(t,o);return this._process(i.then(t=>this._captureEvent(t,o,r))),o.event_id}captureEvent(t,e,n){const r=st();if(e&&e.originalException&&lt(e.originalException))return Ut&&U.log(Lo),r;const o=(0,h.A)({event_id:r},e),s=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,o,s||n)),o.event_id}captureSession(t){"string"!==typeof t.release?Ut&&U.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),pt(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const e=this._transport;
1return e?(this.emit("flush"),this._isClientDoneProcessing(t).then(n=>e.flush(t).then(t=>n&&t))):Ht(!0)}close(t){return this.flush(t).then(t=>(this.getOptions().enabled=!1,this.emit("close"),t))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(t=>{let{name:e}=t;return e.startsWith("Spotlight")}))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const e=this._integrations[t.name];kn(this,t,this._integrations),e||wn(this,[t])}sendEvent(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.emit("beforeSendEvent",t,e);let n=function(t,e,n,r){const o=lr(n),s=t.type&&"replay_event"!==t.type?t.type:"event";!function(t,e){e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]])}(t,n&&n.sdk);const i=dr(t,o,r,e);return delete t.sdkProcessingMetadata,Qn(i,[[{type:s},t]])}(t,this._dsn,this._options._metadata,this._options.tunnel);for(const o of e.attachments||[])n=tr(n,ar(o));const r=this.sendEnvelope(n);r&&r.then(e=>this.emit("afterSendEvent",t,e),null)}sendSession(t){const e=function(t,e,n,r){const o=lr(n);return Qn((0,h.A)((0,h.A)({sent_at:(new Date).toISOString()},o&&{sdk:o}),!!r&&e&&{dsn:Jn(e)}),["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]])}(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(e)}recordDroppedEvent(t,e,n){if(this._options.sendClientReports){const r="number"===typeof n?n:1,o="".concat(t,":").concat(e);Ut&&U.log('Recording outcome: "'.concat(o,'"').concat(r>1?" (".concat(r," times)"):"")),this._outcomes[o]=(this._outcomes[o]||0)+r}}on(t,e){const n=this._hooks[t]=this._hooks[t]||[];return n.push(e),()=>{const t=n.indexOf(e);t>-1&&n.splice(t,1)}}emit(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];const o=this._hooks[t];o&&o.forEach(t=>t(...n))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,t=>(Ut&&U.error("Error while sending envelope:",t),t)):(Ut&&U.error("Transport disabled"),Ht({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=function(t,e){const n={};return e.forEach(e=>{e&&kn(t,e,n)}),n}(this,t),wn(this,t)}_updateSessionFromEvent(t,e){let n="fatal"===e.level,r=!1;const o=e.exception&&e.exception.values;if(o){r=!0;for(const t of o){const e=t.mechanism;if(e&&!1===e.handled){n=!0;break}}}const s="ok"===t.status;(s&&0===t.errors||s&&n)&&(pt(t,(0,h.A)((0,h.A)({},n&&{status:"crashed"}),{},{errors:t.errors||Number(r||n)})),this.captureSession(t))}_isClientDoneProcessing(t){return new Wt(e=>{let n=0;const r=setInterval(()=>{0==this._numProcessing?(clearInterval(r),e(!0)):(n+=1,t&&n>=t&&(clearInterval(r),e(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:It(),r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Mt();const o=this.getOptions(),s=Object.keys(this._integrations);return!e.integrations&&s.length>0&&(e.integrations=s),this.emit("preprocessEvent",t,e),t.type||r.setLastEventId(t.event_id||e.event_id),Ze(o,t,e,n,this,r).then(t=>{if(null===t)return t;t.contexts=(0,h.A)({trace:Nt(n)},t.contexts);const e=Ve(this,n);return t.sdkProcessingMetadata=(0,h.A)({dynamicSamplingContext:e},t.sdkProcessingMetadata),t})}_captureEvent(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return this._processEvent(t,e,n).then(t=>t.event_id,t=>{Ut&&(t instanceof Lr&&"log"===t.logLevel?U.log(t.message):U.warn(t))})}_processEvent(t,e,n){const r=this.getOptions(),{sampleRate:o}=r,s=Fo(t),i=Po(t),a=t.type||"error",c="before send for type `".concat(a,"`"),u="undefined"===typeof o?void 0:Vn(o);if(i&&"number"===typeof u&&Math.random()>u)return this.recordDroppedEvent("sample_rate","error",t),zt(new Lr("Discarding event because it's not included in the random sample (sampling rate = ".concat(o,")"),"log"));const l="replay_event"===a?"replay":a,d=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,e,n,d).then(n=>{if(null===n)throw this.recordDroppedEvent("event_processor",l,t),new Lr("An event processor returned `null`, will not send event.","log");if(e.data&&!0===e.data.__sentry__)return n;const o=function(t,e,n,r){const{beforeSend:o,beforeSendTransaction:s,beforeSendSpan:i}=e;if(Po(n)&&o)return o(n,r);if(Fo(n)){if(n.spans&&i){const e=[];for(const r of n.spans){const n=i(r);n?e.push(n):(He(),t.recordDroppedEvent("before_send","span"))}n.spans=e}if(s){if(n.spans){const t=n.spans.length;n.sdkProcessingMetadata=(0,h.A)((0,h.A)({},n.sdkProcessingMetadata),{},{spanCountBeforeProcessing:t})}return s(n,r)}}return n}(this,r,n,e);return function(t,e){const n="".concat(e," must return `null` or a valid event.");if(E(t))return t.then(t=>{if(!w(t)&&null!==t)throw new Lr(n);return t},t=>{throw new Lr("".concat(e," rejected with ").concat(t))});if(!w(t)&&null!==t)throw new Lr(n);return t}(o,c)}).then(r=>{if(null===r){if(this.recordDroppedEvent("before_send",l,t),s){const e=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",e)}throw new Lr("".concat(c," returned `null`, will not send event."),"log")}const o=n&&n.getSession();if(!s&&o&&this._updateSessionFromEvent(o,r),s){const t=(r.sdkProcessingMetadata&&r.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(r.spans?r.spans.length:0);t>0&&this.recordDroppedEvent("before_send","span",t)}const i=r.transaction_info;if(s&&i&&r.transaction!==t.transaction){const t="custom";r.transaction_info=(0,h.A)((0,h.A)({},i),{},{source:t})}return this.sendEvent(r,e),r}).then(null,t=>{if(t instanceof Lr)throw t;throw this.captureException(t,{data:{__sentry__:!0},originalException:t}),new Lr("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ".concat(t))})}_process(t){this._numProcessing++,t.then(t=>(this._numProcessing--,t),t=>(this._numProcessing--,t))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(t=>{let[e,n]=t;const[r,o]=e.split(":");return{reason:r,category:o,quantity:n}})}_flushOutcomes(){Ut&&U.log("Flushing outcomes...");const t=this._clearOutcomes();if(0===t.length)return void(Ut&&U.log("No outcomes to send"));if(!this._dsn)return void(Ut&&U.log("No dsn provided, will not send outcomes"));Ut&&U.log("Sending outcomes:",t);const e=(n=t,Qn((r=this._options.tunnel&&Jn(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:o||et(),discarded_events:n}]]));var n,r,o;this.sendEnvelope(e)}}function Po(t){return void 0===t.type}function Fo(t){return"transaction"===t.type}function Bo(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[e],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"npm";const s=t._metadata||{};s.sdk||(s.sdk={name:"sentry.javascript.".concat(e),packages:n.map(t=>({name:"".concat(o,":@sentry/").concat(t),version:r})),version:r}),t._metadata=s}const Uo="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function jo(t,e){const n=Wo(t,e),r={type:Vo(e),value:Go(e)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function Ho(t,e,n,r){const o=Lt(),s=o&&o.getOptions().normalizeDepth,i=function(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const n=t[e];if(n instanceof Error)return n}return}(e),a={__serialized__:se(e,s)};if(i)return{exception:{values:[jo(t,i)]},extra:a};const c={exception:{values:[{type:k(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:Zo(e,{isUnhandledRejection:r})}]},extra:a};if(n){const e=Wo(t,n);e.length&&(c.exception.values[0].stacktrace={frames:e})}return c}function zo(t,e){return{exception:{values:[jo(t,e)]}}}function Wo(t,e){const n=e.stacktrace||e.stack||"",r=function(t){if(t&&qo.test(t.message))return 1;return 0}(e),o=function(t){if("number"===typeof t.framesToPop)return t.framesToPop;return 0}(e);try{return t(n,r,o)}catch(s){}return[]}const qo=/Minified React error #\d+;/i;function Yo(t){return"undefined"!==typeof WebAssembly&&"undefined"!==typeof WebAssembly.Exception&&t instanceof WebAssembly.Exception}function Vo(t){const e=t&&t.name;if(!e&&Yo(t)){return t.message&&Array.isArray(t.message)&&2==t.message.length?t.message[0]:"WebAssembly.Exception"}return e}function Go(t){const e=t&&t.message;return e?e.error&&"string"===typeof e.error.message?e.error.message:Yo(t)&&Array.isArray(t.message)&&2==t.message.length?t.message[1]:e:"No error message"}function Xo(t,e,n,r){const o=Ko(t,e,n&&n.syntheticException||void 0,r);return ut(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),Ht(o)}function Jo(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"info",r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;const s=$o(t,e,r&&r.syntheticException||void 0,o);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),Ht(s)}function Ko(t,e,n,r,o){let s;if(_(e)&&e.error){return zo(t,e.error)}if(y(e)||g(e,"DOMException")){const o=e;if("stack"in e)s=zo(t,e);else{const e=o.name||(y(o)?"DOMError":"DOMException"),i=o.message?"".concat(e,": ").concat(o.message):e;s=$o(t,i,n,r),ct(s,i)}return"code"in o&&(s.tags=(0,h.A)((0,h.A)({},s.tags),{},{"DOMException.code":"".concat(o.code)})),s}if(m(e))return zo(t,e);if(w(e)||k(e)){return s=Ho(t,e,n,o),ut(s,{synthetic:!0}),s}return s=$o(t,e,n,r),ct(s,"".concat(e),void 0),ut(s,{synthetic:!0}),s}function $o(t,e,n,r){const o={};if(r&&n){const r=Wo(t,n);r.length&&(o.exception={values:[{value:e,stacktrace:{frames:r}}]}),ut(o,{synthetic:!0})}
1if(b(e)){const{__sentry_template_string__:t,__sentry_template_values__:n}=e;return o.logentry={message:t,params:n},o}return o.message=e,o}function Zo(t,e){let{isUnhandledRejection:n}=e;const r=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:40;const n=Object.keys(J(t));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=e)return j(r,e);for(let o=n.length;o>0;o--){const t=n.slice(0,o).join(", ");if(!(t.length>e))return o===n.length?t:j(t,e)}return""}(t),o=n?"promise rejection":"exception";if(_(t))return"Event `ErrorEvent` captured as ".concat(o," with message `").concat(t.message,"`");if(k(t)){const e=function(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch(e){}}(t);return"Event `".concat(e,"` (type=").concat(t.type,") captured as ").concat(o)}return"Object captured as ".concat(o," with keys: ").concat(r)}function Qo(t,e){let{metadata:n,tunnel:r,dsn:o}=e;const s=(0,h.A)((0,h.A)({event_id:t.event_id,sent_at:(new Date).toISOString()},n&&n.sdk&&{sdk:{name:n.sdk.name,version:n.sdk.version}}),!!r&&!!o&&{dsn:Jn(o)}),i=function(t){return[{type:"user_report"},t]}(t);return Qn(s,[i])}class ts extends No{constructor(t){const e=(0,h.A)({parentSpanIsAlwaysRootSpan:!0},t);Bo(e,"browser",["browser"],Mo.SENTRY_SDK_SOURCE||"npm"),super(e),e.sendClientReports&&Mo.document&&Mo.document.addEventListener("visibilitychange",()=>{"hidden"===Mo.document.visibilityState&&this._flushOutcomes()})}eventFromException(t,e){return Xo(this._options.stackParser,t,e,this._options.attachStacktrace)}eventFromMessage(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",n=arguments.length>2?arguments[2]:void 0;return Jo(this._options.stackParser,t,e,n,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled())return void(Uo&&U.warn("SDK not enabled, will not capture user feedback."));const e=Qo(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(e)}_prepareEvent(t,e,n){return t.platform=t.platform||"javascript",super._prepareEvent(t,e,n)}}const es=A;function ns(){if(!("fetch"in es))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}function rs(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function os(){if("string"===typeof EdgeRuntime)return!0;if(!ns())return!1;if(rs(es.fetch))return!0;let t=!1;const e=es.document;if(e&&"function"===typeof e.createElement)try{const n=e.createElement("iframe");
1n.hidden=!0,e.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(t=rs(n.contentWindow.fetch)),e.head.removeChild(n)}catch(n){N&&U.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return t}const ss="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,is=A,as={};function cs(t){const e=as[t];if(e)return e;let n=is[t];if(rs(n))return as[t]=n.bind(is);const r=is.document;if(r&&"function"===typeof r.createElement)try{const e=r.createElement("iframe");e.hidden=!0,r.head.appendChild(e);const o=e.contentWindow;o&&o[t]&&(n=o[t]),r.head.removeChild(e)}catch(o){ss&&U.warn("Could not create sandbox iframe for ".concat(t," check, bailing to window.").concat(t,": "),o)}return n?as[t]=n.bind(is):n}function us(t){as[t]=void 0}function ls(){return cs("setTimeout")(...arguments)}function ds(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:cs("fetch"),n=0,r=0;return Hr(t,function(o){const s=o.body.length;n+=s,r++;const i=(0,h.A)({body:o.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:n<=6e4&&r<15},t.fetchOptions);if(!e)return us("fetch"),zt("No fetch implementation available");try{return e(t.url,i).then(t=>(n-=s,r--,{statusCode:t.status,headers:{"x-sentry-rate-limits":t.headers.get("X-Sentry-Rate-Limits"),"retry-after":t.headers.get("Retry-After")}}))}catch(a){return us("fetch"),n-=s,r--,zt(a)}})}function ps(t,e,n,r){const o={filename:t,function:"<anonymous>"===e?Kt:e,in_app:!0};return void 0!==n&&(o.lineno=n),void 0!==r&&(o.colno=r),o}const hs=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,fs=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,ms=/\((\S*)(?::(\d+))(?::(\d+))\)/,gs=[30,t=>{const e=hs.exec(t);if(e){const[,t,n,r]=e;return ps(t,Kt,+n,+r)}const n=fs.exec(t);if(n){if(n[2]&&0===n[2].indexOf("eval")){const t=ms.exec(n[2]);t&&(n[2]=t[1],n[3]=t[2],n[4]=t[3])}const[t,e]=Ts(n[1]||Kt,n[2]);return ps(e,t,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],_s=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,ys=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,vs=[50,t=>{const e=_s.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const t=ys.exec(e[3]);t&&(e[1]=e[1]||"eval",e[3]=t[1],e[4]=t[2],e[5]="")}let t=e[3],n=e[1]||Kt;return[n,t]=Ts(n,t),ps(t,n,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}],bs=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Ss=[40,t=>{const e=bs.exec(t);return e?ps(e[2],e[1]||Kt,+e[3],e[4]?+e[4]:void 0):void 0}],ws=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,ks=[10,t=>{const e=ws.exec(t);return e?ps(e[2],e[3]||Kt,+e[1]):void 0}],Es=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,xs=[20,t=>{const e=Es.exec(t);return e?ps(e[5],e[3]||e[4]||Kt,+e[1],+e[2]):void 0}],Cs=[gs,vs],As=Qt(...Cs),Ts=(t,e)=>{const n=-1!==t.indexOf("safari-extension"),r=-1!==t.indexOf("safari-web-extension");return n||r?[-1!==t.indexOf("@")?t.split("@")[0]:Kt,n?"safari-extension:".concat(e):"safari-web-extension:".concat(e)]:[t,e]};let Is,Ms,Rs;function Os(t){An("dom",t),Tn("dom",Ds)}function Ds(){if(!is.document)return;const t=In.bind(null,"dom"),e=Ls(t,!0);is.document.addEventListener("click",e,!1),is.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(e=>{const n=is[e],r=n&&n.prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&(Y(r,"addEventListener",function(e){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=Ls(t);s.handler=r,e.call(this,n,r,o)}s.refCount++}catch(s){}return e.call(this,n,r,o)}}),Y(r,"removeEventListener",function(t){return function(e,n,r){if("click"===e||"keypress"==e)try{const n=this.__sentry_instrumentation_handlers__||{},o=n[e];o&&(o.refCount--,o.refCount<=0&&(t.call(this,e,o.handler,r),o.handler=void 0,delete n[e]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch(o){}return t.call(this,e,n,r)}}))})}function Ls(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n=>{if(!n||n._sentryCaptured)return;const r=function(t){try{return t.target}catch(e){return null}}(n);if(function(t,e){return"keypress"===t&&(!e||!e.tagName||"INPUT"!==e.tagName&&"TEXTAREA"!==e.tagName&&!e.isContentEditable)}
1(n.type,r))return;V(n,"_sentryCaptured",!0),r&&!r._sentryId&&V(r,"_sentryId",st());const o="keypress"===n.type?"input":n.type;if(!function(t){if(t.type!==Ms)return!1;try{if(!t.target||t.target._sentryId!==Rs)return!1}catch(e){}return!0}(n)){t({event:n,name:o,global:e}),Ms=n.type,Rs=r?r._sentryId:void 0}clearTimeout(Is),Is=is.setTimeout(()=>{Rs=void 0,Ms=void 0},1e3)}}const Ns="__sentry_xhr_v3__";function Ps(t){An("xhr",t),Tn("xhr",Fs)}function Fs(){if(!is.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(t,e,n){const r=new Error,o=1e3*nt(),s=v(n[0])?n[0].toUpperCase():void 0,i=function(t){if(v(t))return t;try{return t.toString()}catch(e){}return}(n[1]);if(!s||!i)return t.apply(e,n);e[Ns]={method:s,url:i,request_headers:{}},"POST"===s&&i.match(/sentry_key/)&&(e.__sentry_own_request__=!0);const a=()=>{const t=e[Ns];if(t&&4===e.readyState){try{t.status_code=e.status}catch(n){}In("xhr",{endTimestamp:1e3*nt(),startTimestamp:o,xhr:e,virtualError:r})}};return"onreadystatechange"in e&&"function"===typeof e.onreadystatechange?e.onreadystatechange=new Proxy(e.onreadystatechange,{apply:(t,e,n)=>(a(),t.apply(e,n))}):e.addEventListener("readystatechange",a),e.setRequestHeader=new Proxy(e.setRequestHeader,{apply(t,e,n){const[r,o]=n,s=e[Ns];return s&&v(r)&&v(o)&&(s.request_headers[r.toLowerCase()]=o),t.apply(e,n)}}),t.apply(e,n)}}),t.send=new Proxy(t.send,{apply(t,e,n){const r=e[Ns];if(!r)return t.apply(e,n);void 0!==n[0]&&(r.body=n[0]);return In("xhr",{startTimestamp:1e3*nt(),xhr:e}),t.apply(e,n)}})}const Bs=A;let Us;function js(t){const e="history";An(e,t),Tn(e,Hs)}function Hs(){if(!function(){const t=Bs.chrome,e=t&&t.app&&t.app.runtime,n="history"in Bs&&!!Bs.history.pushState&&!!Bs.history.replaceState;return!e&&n}())return;const t=is.onpopstate;function e(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];const o=n.length>2?n[2]:void 0;if(o){const t=Us,e=String(o);Us=e;In("history",{from:t,to:e})}return t.apply(this,n)}}is.onpopstate=function(){const e=is.location.href,n=Us;Us=e;if(In("history",{from:n,to:e}),t)try{for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return t.apply(this,o)}catch(i){}},Y(is.history,"pushState",e),Y(is.history,"replaceState",e)}function zs(t,e){const n="fetch";An(n,t),Tn(n,()=>Ws(void 0,e))}function Ws(t){arguments.length>
11&&void 0!==arguments[1]&&arguments[1]&&!os()||Y(A,"fetch",function(e){return function(){const n=new Error;for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];const{method:i,url:a}=function(t){if(0===t.length)return{method:"GET",url:""};if(2===t.length){const[e,n]=t;return{url:Vs(e),method:Ys(n,"method")?String(n.method).toUpperCase():"GET"}}const e=t[0];return{url:Vs(e),method:Ys(e,"method")?String(e.method).toUpperCase():"GET"}}(o),c={args:o,fetchData:{method:i,url:a},startTimestamp:1e3*nt(),virtualError:n};return t||In("fetch",(0,h.A)({},c)),e.apply(A,o).then(async e=>(t?t(e):In("fetch",(0,h.A)((0,h.A)({},c),{},{endTimestamp:1e3*nt(),response:e})),e),t=>{throw In("fetch",(0,h.A)((0,h.A)({},c),{},{endTimestamp:1e3*nt(),error:t})),m(t)&&void 0===t.stack&&(t.stack=n.stack,V(t,"framesToPop",1)),t})}})}function qs(t){let e;try{e=t.clone()}catch(n){return}!async function(t,e){if(t&&t.body){const r=t.body,o=r.getReader(),s=setTimeout(()=>{r.cancel().then(null,()=>{})},9e4);let i=!0;for(;i;){let t;try{t=setTimeout(()=>{r.cancel().then(null,()=>{})},5e3);const{done:n}=await o.read();clearTimeout(t),n&&(e(),i=!1)}catch(n){i=!1}finally{clearTimeout(t)}}clearTimeout(s),o.releaseLock(),r.cancel().then(null,()=>{})}}(e,()=>{In("fetch-body-resolved",{endTimestamp:1e3*nt(),response:t})})}function Ys(t,e){return!!t&&"object"===typeof t&&!!t[e]}function Vs(t){return"string"===typeof t?t:t?Ys(t,"url")?t.url:t.toString?t.toString():"":""}function Gs(t){return void 0===t?void 0:t>=400&&t<500?"warning":t>=500?"error":void 0}function Xs(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:r,relative:e[5]+n+r}}function Js(t){return t.split(/\\?\//).filter(t=>t.length>0&&","!==t).length}const Ks=1024,$s=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=(0,h.A)({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t);return{name:"Breadcrumbs",setup(t){e.console&&jn(function(t){return function(e){if(Lt()!==t)return;const n={category:"console",data:{arguments:e.args,logger:"console"},level:zn(e.level),message:z(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;n.message="Assertion failed: ".concat(z(e.args.slice(1)," ")||"console.assert"),n.data.arguments=e.args.slice(1)}Ft(n,{input:e.args,level:e.level})}}(t)),e.dom&&Os(function(t,e){return function(n){if(Lt()!==t)return;let r,o,s="object"===typeof e?e.serializeAttribute:void 0,i="object"===typeof e&&"number"===typeof e.maxStringLength?e.maxStringLength:void 0;i&&i>Ks&&(Uo&&U.warn("`dom.maxStringLength` cannot exceed ".concat(Ks,", but a value of ").concat(i," was configured. Sentry will use ").concat(Ks," instead.")),i=Ks),"string"===typeof s&&(s=[s]);try{const t=n.event,e=function(t){return!!t&&!!t.target}(t)?t.target:t;r=R(e,{keyAttrs:s,maxStringLength:i}),o=L(e)}catch(c){r="<unknown>"}if(0===r.length)return;const a={category:"ui.".concat(n.name),message:r};o&&(a.data={"ui.component_name":o}),Ft(a,{event:n.event,name:n.name,global:n.global})}}(t,e.dom)),e.xhr&&Ps(function(t){return function(e){if(Lt()!==t)return;const{startTimestamp:n,endTimestamp:r}=e,o=e.xhr[Ns];if(!n||!r||!o)return;const{method:s,url:i,status_code:a,body:c}=o,u={method:s,url:i,status_code:a},l={xhr:e.xhr,input:c,startTimestamp:n,endTimestamp:r};Ft({category:"xhr",data:u,type:"http",level:Gs(a)},l)}}(t)),e.fetch&&zs(function(t){return function(e){if(Lt()!==t)return;const{startTimestamp:n,endTimestamp:r}=e;if(r&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.error){Ft({category:"fetch",data:e.fetchData,level:"error",type:"http"},{data:e.error,input:e.args,startTimestamp:n,endTimestamp:r})}else{const t=e.response,o=(0,h.A)((0,h.A)({},e.fetchData),{},{status_code:t&&t.status}),s={input:e.args,response:t,startTimestamp:n,endTimestamp:r};Ft({category:"fetch",data:o,type:"http",level:Gs(o.status_code)},s)}}}(t)),e.history&&js(function(t){return function(e){if(Lt()!==t)return;let n=e.from,r=e.to;const o=Xs(Mo.location.href);let s=n?Xs(n):void 0;const i=Xs(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),Ft({category:"navigation",data:{from:n,to:r}})}}(t)),e.sentry&&t.on("beforeSendEvent",function(t){return function(e){Lt()===t&&Ft({category:"sentry.".concat("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:at(e)},{event:e})}}(t))}}};const Zs=["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"],Qs=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=(0,h.A)({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},t);return{name:"BrowserApiErrors",setupOnce(){e.setTimeout&&Y(Mo,"setTimeout",ti),e.setInterval&&Y(Mo,"setInterval",ti),e.requestAnimationFrame&&Y(Mo,"requestAnimationFrame",ei),e.XMLHttpRequest&&"XMLHttpRequest"in Mo&&Y(XMLHttpRequest.prototype,"send",ni);const t=e.eventTarget;
1if(t){(Array.isArray(t)?t:Zs).forEach(ri)}}}};function ti(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];const o=n[0];return n[0]=Do(o,{mechanism:{data:{function:ne(t)},handled:!1,type:"instrument"}}),t.apply(this,n)}}function ei(t){return function(e){return t.apply(this,[Do(e,{mechanism:{data:{function:"requestAnimationFrame",handler:ne(t)},handled:!1,type:"instrument"}})])}}function ni(t){return function(){const e=this;["onload","onerror","onprogress","onreadystatechange"].forEach(t=>{t in e&&"function"===typeof e[t]&&Y(e,t,function(e){const n={mechanism:{data:{function:t,handler:ne(e)},handled:!1,type:"instrument"}},r=X(e);return r&&(n.mechanism.data.handler=ne(r)),Do(e,n)})});for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.apply(this,r)}}function ri(t){const e=Mo[t],n=e&&e.prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Y(n,"addEventListener",function(e){return function(n,r,o){try{"function"===typeof r.handleEvent&&(r.handleEvent=Do(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:ne(r),target:t},handled:!1,type:"instrument"}}))}catch(s){}return e.apply(this,[n,Do(r,{mechanism:{data:{function:"addEventListener",handler:ne(r),target:t},handled:!1,type:"instrument"}}),o])}}),Y(n,"removeEventListener",function(t){return function(e,n,r){try{const o=n.__sentry_wrapped__;o&&t.call(this,e,o,r)}catch(o){}return t.call(this,e,n,r)}}))}const oi=()=>({name:"BrowserSession",setupOnce(){"undefined"!==typeof Mo.document?(gn({ignoreDuration:!0}),vn(),js(t=>{let{from:e,to:n}=t;void 0!==e&&e!==n&&(gn({ignoreDuration:!0}),vn())})):Uo&&U.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.")}}),si=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=(0,h.A)({onerror:!0,onunhandledrejection:!0},t);return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(t){e.onerror&&(!function(t){Rn(e=>{const{stackParser:n,attachStacktrace:r}=ai();if(Lt()!==t||Oo())return;const{msg:o,url:s,line:i,column:a,error:c}=e,u=function(t,e,n,r){const o=t.exception=t.exception||{},s=o.values=o.values||[],i=s[0]=s[0]||{},a=i.stacktrace=i.stacktrace||{},c=a.frames=a.frames||[],u=r,l=n,d=v(e)&&e.length>0?e:D();0===c.length&&c.push({colno:u,filename:d,function:Kt,in_app:!0,lineno:l});return t}(Ko(n,c||o,void 0,r,!1),s,i,a);u.level="error",rn(u,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}(t),ii("onerror")),e.onunhandledrejection&&(!function(t){Ln(e=>{const{stackParser:n,attachStacktrace:r}=ai();if(Lt()!==t||Oo())return;const o=function(t){if(S(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch(e){}return t}(e),s=S(o)?{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: ".concat(String(o))}]}}:Ko(n,o,void 0,r,!0);s.level="error",rn(s,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})})}(t),ii("onunhandledrejection"))}}};function ii(t){Uo&&U.log("Global Handler attached: ".concat(t))}function ai(){const t=Lt();return t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const ci=()=>({name:"HttpContext",preprocessEvent(t){if(!Mo.navigator&&!Mo.location&&!Mo.document)return;const e=t.request&&t.request.url||Mo.location&&Mo.location.href,{referrer:n}=Mo.document||{},{userAgent:r}=Mo.navigator||{},o=(0,h.A)((0,h.A)((0,h.A)({},t.request&&t.request.headers),n&&{Referer:n}),r&&{"User-Agent":r}),s=(0,h.A)((0,h.A)((0,h.A)({},t.request),e&&{url:e}),{},{headers:o});t.request=s}});function ui(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:250,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,i=arguments.length>6?arguments[6]:void 0;if(!s.exception||!s.exception.values||!i||!x(i.originalException,Error))return;const a=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;var c,u;a&&(s.exception.values=(c=li(t,e,o,i.originalException,r,s.exception.values,a,0),u=n,
1c.map(t=>(t.value&&(t.value=j(t.value,u)),t))))}function li(t,e,n,r,o,s,i,a){if(s.length>=n+1)return s;let c=[...s];if(x(r[o],Error)){di(i,a);const s=t(e,r[o]),u=c.length;pi(s,o,u,a),c=li(t,e,n,r[o],o,[s,...c],s,u)}return Array.isArray(r.errors)&&r.errors.forEach((r,s)=>{if(x(r,Error)){di(i,a);const u=t(e,r),l=c.length;pi(u,"errors[".concat(s,"]"),l,a),c=li(t,e,n,r,o,[u,...c],u,l)}}),c}function di(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism=(0,h.A)((0,h.A)((0,h.A)({},t.mechanism),"AggregateError"===t.type&&{is_exception_group:!0}),{},{exception_id:e})}function pi(t,e,n,r){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism=(0,h.A)((0,h.A)({},t.mechanism),{},{type:"chained",source:e,exception_id:n,parent_id:r})}const hi=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=t.limit||5,n=t.key||"cause";return{name:"LinkedErrors",preprocessEvent(t,r,o){const s=o.getOptions();ui(jo,s.stackParser,s.maxValueLength,n,e,t,r)}}};function fi(t){const e=[to(),$r(),Qs(),$s(),si(),hi(),qr(),ci()];return!1!==t.autoSessionTracking&&e.push(oi()),e}function mi(){const t=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e={defaultIntegrations:fi(t),release:"string"===typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:Mo.SENTRY_RELEASE&&Mo.SENTRY_RELEASE.id?Mo.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return null==t.defaultIntegrations&&delete t.defaultIntegrations,(0,h.A)((0,h.A)({},e),t)}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{});if(!t.skipBrowserExtensionCheck&&function(){const t="undefined"!==typeof Mo.window&&Mo;if(!t)return!1;const e=t[t.chrome?"chrome":"browser"],n=e&&e.runtime&&e.runtime.id,r=Mo.location&&Mo.location.href||"",o=!!n&&Mo===Mo.top&&["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"].some(t=>r.startsWith("".concat(t,"//"))),s="undefined"!==typeof t.nw;return!!n&&!o&&!s}())return void B(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")});Uo&&(ns()||U.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const e=(0,h.A)((0,h.A)({},t),{},{stackParser:(n=t.stackParser||As,Array.isArray(n)?Qt(...n):n),integrations:Sn(t),transport:t.transport||ds});var n;return function(t,e){!0===e.debug&&(Ut?U.enable():B(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),It().update(e.initialScope);const n=new t(e);return wo(n),n.init(),n}(ts,e)}function gi(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Mo.document)return void(Uo&&U.error("Global document not defined in showReportDialog call"));const e=It(),n=e.getClient(),r=n&&n.getDsn();if(!r)return void(Uo&&U.error("DSN not configured for showReportDialog call"));if(e&&(t.user=(0,h.A)((0,h.A)({},e.getUser()),t.user)),!t.eventId){const e=dn();e&&(t.eventId=e)}const o=Mo.document.createElement("script");o.async=!0,o.crossOrigin="anonymous",o.src=function(t,e){const n=Zn(t);if(!n)return"";const r="".concat(ro(n),"embed/error-page/");let o="dsn=".concat(Jn(n));for(const s in e)if("dsn"!==s&&"onClose"!==s)if("user"===s){const t=e.user;if(!t)continue;t.name&&(o+="&name=".concat(encodeURIComponent(t.name))),t.email&&(o+="&email=".concat(encodeURIComponent(t.email)))}else o+="&".concat(encodeURIComponent(s),"=").concat(encodeURIComponent(e[s]));return"".concat(r,"?").concat(o)}(r,t),t.onLoad&&(o.onload=t.onLoad);const{onClose:s}=t;if(s){const t=e=>{if("__sentry_reportdialog_closed__"===e.data)try{s()}finally{Mo.removeEventListener("message",t)}};Mo.addEventListener("message",t)}const i=Mo.document.head||Mo.document.body;i?i.appendChild(o):Uo&&U.error("Not injecting report dialog. No injection point found in HTML")}function _i(){}function yi(t){t()}function vi(t){const e=Lt();e&&e.captureUserFeedback(t)}const bi={replayIntegration:"replay",replayCanvasIntegration:"replay-canvas",feedbackIntegration:"feedback",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot",captureConsoleIntegration:"captureconsole",contextLinesIntegration:"contextlines",linkedErrorsIntegration:"linkederrors",debugIntegration:"debug",dedupeIntegration:"dedupe",extraErrorDataIntegration:"extraerrordata",httpClientIntegration:"httpclient",reportingObserverIntegration:"reportingobserver",rewriteFramesIntegration:"rewriteframes",sessionTimingIntegration:"sessiontiming",browserProfilingIntegration:"browserprofiling",moduleMetadataIntegration:"modulemetadata"},Si=Mo;async function wi(t,e){const n=bi[t],o=Si.Sentry=Si.Sentry||{};if(!n)throw new Error("Cannot lazy load integration: ".concat(t));const s=o[t];if("function"===typeof s&&!("_isShim"in s))return s;const i=function(t){const e=Lt(),n=e&&e.getOptions(),o=n&&n.cdnBaseUrl||"https://browser.sentry-cdn.com";return new URL("/".concat(r,"/").concat(t,".min.js"),o).toString()}(n),a=Mo.document.createElement("script");a.src=i,a.crossOrigin="anonymous",a.referrerPolicy="origin",e&&a.setAttribute("nonce",e);const c=new Promise((t,e)=>{a.addEventListener("load",()=>t()),a.addEventListener("error",e)}),u=Mo.document.currentScript,l=Mo.document.body||Mo.document.head||u&&u.parentElement;if(!l)throw new Error("Could not find parent element to insert lazy-loaded ".concat(t," script"));l.appendChild(a);try{await c}catch(p){throw new Error("Error when loading integration: ".concat(t))}const d=o[t];if("function"!==typeof d)throw new Error("Could not load integration: ".concat(t));return d}const ki=A,Ei=new WeakMap,xi=function(){const t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).types||["crash","deprecation","intervention"];function e(t){if(Ei.has(Lt()))for(const e of t)Ot(t=>{t.setExtra("url",e.url);const n="ReportingObserver [".concat(e.type,"]");let r="No details available";if(e.body){const n={};for(const t in e.body)n[t]=e.body[t];if(t.setExtra("body",n),"crash"===e.type){const t=e.body;r=[t.crashId||"",t.reason||""].join(" ").trim()||r}else{r=e.body.message||r}}nn("".concat(n,": ").concat(r))})}return{name:"ReportingObserver",setupOnce(){if(!("ReportingObserver"in es))return;new ki.ReportingObserver(e,{buffered:!0,types:t}).observe()},setup(t){Ei.set(t,!0)}}};function Ci(t,e){const n=e&&e.getDsn(),r=e&&e.getOptions().tunnel;return function(t,e){return!!e&&t.includes(e.host)}(t,n)||function(t,e){if(!e)return!1;return Ai(t)===Ai(e)}(t,r)}function Ai(t){return"/"===t[t.length-1]?t.slice(0,-1):t}const Ti=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=(0,h.A)({failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/]},t);return{name:"HttpClient",setup(t){!function(t,e){if(!os())return;zs(n=>{if(Lt()!==t)return;const{response:r,args:o,error:s,virtualError:i}=n,[a,c]=o;r&&function(t,e,n,r,o){if(Oi(t,n.status,n.url)){const t=function(t,e){if(!e&&t instanceof Request)return t;if(t instanceof Request&&t.bodyUsed)return t;
1return new Request(t,e)}(e,r);let s,i,a,c;Li()&&([s,a]=Ii("Cookie",t),[i,c]=Ii("Set-Cookie",n));rn(Di({url:t.url,method:t.method,status:n.status,requestHeaders:s,responseHeaders:i,requestCookies:a,responseCookies:c,error:o}))}}(e,a,r,c,s||i)},!1)}(t,e),function(t,e){if(!("XMLHttpRequest"in A))return;Ps(n=>{if(Lt()!==t)return;const{error:r,virtualError:o}=n,s=n.xhr,i=s[Ns];if(!i)return;const{method:a,request_headers:c}=i;try{!function(t,e,n,r,o){if(Oi(t,e.status,e.responseURL)){let t,a,c;if(Li()){try{const t=e.getResponseHeader("Set-Cookie")||e.getResponseHeader("set-cookie")||void 0;t&&(a=Ri(t))}catch(s){}try{c=function(t){const e=t.getAllResponseHeaders();if(!e)return{};return e.split("\r\n").reduce((t,e)=>{const[n,r]=e.split(": ");return n&&r&&(t[n]=r),t},{})}(e)}catch(i){}t=r}rn(Di({url:e.responseURL,method:n,status:e.status,requestHeaders:t,responseHeaders:c,responseCookies:a,error:o}))}}(e,s,a,c,r||o)}catch(u){Uo&&U.warn("Error while extracting response event form XHR response",u)}})}(t,e)}}};function Ii(t,e){const n=function(t){const e={};return t.forEach((t,n)=>{e[n]=t}),e}(e.headers);let r;try{const e=n[t]||n[t.toLowerCase()]||void 0;e&&(r=Ri(e))}catch(o){}return[n,r]}function Mi(t){if(t){const e=t["Content-Length"]||t["content-length"];if(e)return parseInt(e,10)}}function Ri(t){return t.split("; ").reduce((t,e)=>{const[n,r]=e.split("=");return n&&r&&(t[n]=r),t},{})}function Oi(t,e,n){return function(t,e){return t.some(t=>"number"===typeof t?t===e:e>=t[0]&&e<=t[1])}(t.failedRequestStatusCodes,e)&&(r=t.failedRequestTargets,o=n,r.some(t=>"string"===typeof t?o.includes(t):t.test(o)))&&!Ci(n,Lt());var r,o}function Di(t){const e=Lt(),n=e&&t.error&&t.error instanceof Error?t.error.stack:void 0,r=n&&e?e.getOptions().stackParser(n,0,1):void 0,o="HTTP Client Error with status code: ".concat(t.status),s={message:o,exception:{values:[{type:"Error",value:o,stacktrace:r?{frames:r}:void 0}]},request:{url:t.url,method:t.method,headers:t.requestHeaders,cookies:t.requestCookies},contexts:{response:{status_code:t.status,headers:t.responseHeaders,cookies:t.responseCookies,body_size:Mi(t.responseHeaders)}}};return ut(s,{type:"http.client",handled:!1}),s}function Li(){const t=Lt();return!!t&&Boolean(t.getOptions().sendDefaultPii)}const Ni=A,Pi=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=null!=t.frameContextLines?t.frameContextLines:7;return{name:"ContextLines",processEvent:t=>function(t,e){const n=Ni.document,r=Ni.location&&(o=Ni.location.href,o.split(/[?#]/,1)[0]);var o;if(!n||!r)return t;const s=t.exception&&t.exception.values;if(!s||!s.length)return t;const i=n.documentElement.innerHTML;if(!i)return t;const a=["<!DOCTYPE html>","<html>",...i.split("\n"),"</html>"];return s.forEach(t=>{const n=t.stacktrace;n&&n.frames&&(n.frames=n.frames.map(t=>function(t,e,n,r){if(t.filename!==n||!t.lineno||!e.length)return t;return function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5;if(void 0===e.lineno)return;const r=t.length,o=Math.max(Math.min(r-1,e.lineno-1),0);e.pre_context=t.slice(Math.max(0,o-n),o).map(t=>H(t,0));const s=Math.min(r-1,o);e.context_line=H(t[s],e.colno||0),e.post_context=t.slice(Math.min(o+1,r),o+1+n).map(t=>H(t,0))}(e,t,r),t}(t,a,r,e)))}),t}(t,e)}};function Fi(t){let e,n=t[0],r=1;for(;r<t.length;){const o=t[r],s=t[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(e=n,n=s(n)):"call"!==o&&"optionalCall"!==o||(n=s(function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return n.call(e,...r)}),e=void 0)}return n}function Bi(){return!("undefined"!==typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call("undefined"!==typeof process?process:0)}function Ui(){return"undefined"!==typeof window&&(!Bi()||function(){const t=A.process;return!!t&&"renderer"===t.type}())}const ji=(t,e,n,r)=>{let o,s;return i=>{e.value>=0&&(i||r)&&(s=e.value-(o||0),(s||void 0===o)&&(o=e.value,e.delta=s,e.rating=((t,e)=>t>e[1]?"poor":t>e[0]?"needs-improvement":"good")(e.value,n),t(e)))}},Hi=function(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const e=is.performance&&is.performance.getEntriesByType&&is.performance.getEntriesByType("navigation")[0];if(!t||e&&e.responseStart>0&&e.responseStart<performance.now())return e},zi=()=>{const t=Hi();return t&&t.activationStart||0},Wi=(t,e)=>{const n=Hi();let r="navigate";n&&(is.document&&is.document.prerendering||zi()>0?r="prerender":is.document&&is.document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-")));return{name:t,value:"undefined"===typeof e?-1:e,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},qi=(t,e,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){const r=new PerformanceObserver(t=>{Promise.resolve().then(()=>{e(t.getEntries())})});return r.observe(Object.assign({type:t,buffered:!0},n||{})),r}}catch(r){}},Yi=t=>{const e=e=>{("pagehide"===e.type||is.document&&"hidden"===is.document.visibilityState)&&t(e)};is.document&&(addEventListener("visibilitychange",e,!0),addEventListener("pagehide",e,!0))},Vi=t=>{let e=!1;return()=>{e||(t(),e=!0)}};let Gi=-1;const Xi=t=>{"hidden"===is.document.visibilityState&&Gi>-1&&(Gi="visibilitychange"===t.type?t.timeStamp:0,Ji())},Ji=()=>{removeEventListener("visibilitychange",Xi,!0),removeEventListener("prerenderingchange",Xi,!0)},Ki=()=>(is.document&&Gi<0&&(Gi="hidden"!==is.document.visibilityState||is.document.prerendering?1/0:0,addEventListener("visibilitychange",Xi,!0),addEventListener("prerenderingchange",Xi,!0)),{get firstHiddenTime(){return Gi}}),$i=t=>{is.document&&is.document.prerendering?addEventListener("prerenderingchange",()=>t(),!0):t()},Zi=[1800,3e3],Qi=[.1,.25],ta=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};$i(()=>{const n=Ki(),r=Wi("FCP");let o;const s=qi("paint",t=>{t.forEach(t=>{"first-contentful-paint"===t.name&&(s.disconnect(),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-zi(),0),r.entries.push(t),o(!0)))})});s&&(o=ji(t,r,Zi,e.reportAllChanges))})}(Vi(()=>{const n=Wi("CLS",0);let r,o=0,s=[];const i=t=>{t.forEach(t=>{if(!t.hadRecentInput){const e=s[0],n=s[s.length-1];o&&e&&n&&t.startTime-n.startTime<1e3&&t.startTime-e.startTime<5e3?(o+=t.value,s.push(t)):(o=t.value,s=[t])}}),o>n.value&&(n.value=o,n.entries=s,r())},a=qi("layout-shift",i);a&&(r=ji(t,n,Qi,e.reportAllChanges),Yi(()=>{i(a.takeRecords()),r(!0)}),setTimeout(r,0))}))},ea=[100,300];let na=0,ra=1/0,oa=0;const sa=t=>{t.forEach(t=>{t.interactionId&&(ra=Math.min(ra,t.interactionId),oa=Math.max(oa,t.interactionId),na=oa?(oa-ra)/7+1:0)})};let ia;const aa=()=>{"interactionCount"in performance||ia||(ia=qi("event",sa,{type:"event",buffered:!0,durationThreshold:0}))},ca=[],ua=new Map;const la=()=>(ia?na:performance.interactionCount||0)-0,da=[],pa=t=>
1{if(da.forEach(e=>e(t)),!t.interactionId&&"first-input"!==t.entryType)return;const e=ca[ca.length-1],n=ua.get(t.interactionId);if(n||ca.length<10||e&&t.duration>e.latency){if(n)t.duration>n.latency?(n.entries=[t],n.latency=t.duration):t.duration===n.latency&&t.startTime===(n.entries[0]&&n.entries[0].startTime)&&n.entries.push(t);else{const e={id:t.interactionId,latency:t.duration,entries:[t]};ua.set(e.id,e),ca.push(e)}ca.sort((t,e)=>e.latency-t.latency),ca.length>10&&ca.splice(10).forEach(t=>ua.delete(t.id))}},ha=t=>{const e=is.requestIdleCallback||is.setTimeout;let n=-1;return t=Vi(t),is.document&&"hidden"===is.document.visibilityState?t():(n=e(t),Yi(t)),n},fa=[200,500],ma=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"PerformanceEventTiming"in is&&"interactionId"in PerformanceEventTiming.prototype&&$i(()=>{aa();const n=Wi("INP");let r;const o=t=>{ha(()=>{t.forEach(pa);const e=(()=>{const t=Math.min(ca.length-1,Math.floor(la()/50));return ca[t]})();e&&e.latency!==n.value&&(n.value=e.latency,n.entries=e.entries,r())})},s=qi("event",o,{durationThreshold:null!=e.durationThreshold?e.durationThreshold:40});r=ji(t,n,fa,e.reportAllChanges),s&&(s.observe({type:"first-input",buffered:!0}),Yi(()=>{o(s.takeRecords()),r(!0)}))})},ga=[2500,4e3],_a={},ya=[800,1800],va=t=>{is.document&&is.document.prerendering?$i(()=>va(t)):is.document&&"complete"!==is.document.readyState?addEventListener("load",()=>va(t),!0):setTimeout(t,0)},ba={},Sa={};let wa,ka,Ea,xa,Ca;function Aa(t){return Ba("cls",t,Da,wa,arguments.length>1&&void 0!==arguments[1]&&arguments[1])}function Ta(t){return Ba("lcp",t,Na,Ea,arguments.length>1&&void 0!==arguments[1]&&arguments[1])}function Ia(t){return Ba("fid",t,La,ka)}function Ma(t){return Ba("inp",t,Fa,Ca)}function Ra(t,e){return Ua(t,e),Sa[t]||(!function(t){const e={};"event"===t&&(e.durationThreshold=0);qi(t,e=>
1{Oa(t,{entries:e})},e)}(t),Sa[t]=!0),ja(t,e)}function Oa(t,e){const n=ba[t];if(n&&n.length)for(const o of n)try{o(e)}catch(r){ss&&U.error("Error while triggering instrumentation handler.\nType: ".concat(t,"\nName: ").concat(ne(o),"\nError:"),r)}}function Da(){return ta(t=>{Oa("cls",{metric:t}),wa=t},{reportAllChanges:!0})}function La(){return function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};$i(()=>{const n=Ki(),r=Wi("FID");let o;const s=t=>{t.startTime<n.firstHiddenTime&&(r.value=t.processingStart-t.startTime,r.entries.push(t),o(!0))},i=t=>{t.forEach(s)},a=qi("first-input",i);o=ji(t,r,ea,e.reportAllChanges),a&&Yi(Vi(()=>{i(a.takeRecords()),a.disconnect()}))})}(t=>{Oa("fid",{metric:t}),ka=t})}function Na(){return function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};$i(()=>{const n=Ki(),r=Wi("LCP");let o;const s=t=>{e.reportAllChanges||(t=t.slice(-1)),t.forEach(t=>{t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-zi(),0),r.entries=[t],o())})},i=qi("largest-contentful-paint",s);if(i){o=ji(t,r,ga,e.reportAllChanges);const n=Vi(()=>{_a[r.id]||(s(i.takeRecords()),i.disconnect(),_a[r.id]=!0,o(!0))});["keydown","click"].forEach(t=>{is.document&&addEventListener(t,()=>ha(n),{once:!0,capture:!0})}),Yi(n)}})}(t=>{Oa("lcp",{metric:t}),Ea=t},{reportAllChanges:!0})}function Pa(){return function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=Wi("TTFB"),r=ji(t,n,ya,e.reportAllChanges);va(()=>{const t=Hi();t&&(n.value=Math.max(t.responseStart-zi(),0),n.entries=[t],r(!0))})}(t=>{Oa("ttfb",{metric:t}),xa=t})}function Fa(){return ma(t=>{Oa("inp",{metric:t}),Ca=t})}function Ba(t,e,n,r){let o,s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return Ua(t,e),Sa[t]||(o=n(),Sa[t]=!0),r&&e({metric:r}),ja(t,e,s?o:void 0)}function Ua(t,e){ba[t]=ba[t]||[],ba[t].push(e)}function ja(t,e,n){return()=>{n&&n();const r=ba[t];if(!r)return;const o=r.indexOf(e);-1!==o&&r.splice(o,1)}}const Ha=A,za="sentryReplaySession",Wa="Unable to send Replay",qa=5e3,Ya=5500,Va=15e4,Ga=5e3,Xa=2e7,Ja=4999,Ka=36e5;function $a(t,e){return null!=t?t:e()}function Za(t){let e,n=t[0],r=1;for(;r<t.length;){const o=t[r],s=t[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(e=n,n=s(n)):"call"!==o&&"optionalCall"!==o||(n=s(function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return n.call(e,...r)}),e=void 0)}return n}var Qa;function tc(t){const e=Za([t,"optionalAccess",t=>t.host]);return Boolean(Za([e,"optionalAccess",t=>t.shadowRoot])===t)}function ec(t){return"[object ShadowRoot]"===Object.prototype.toString.call(t)}function nc(t){try{const n=t.rules||t.cssRules;return n?((e=Array.from(n,rc).join("")).includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e):null}catch(n){return null}var e}function rc(t){let e;if(function(t){return"styleSheet"in t}(t))try{e=nc(t.styleSheet)||function(t){const{cssText:e}=t;if(e.split('"').length<3)return e;const n=["@import","url(".concat(JSON.stringify(t.href),")")];return""===t.layerName?n.push("layer"):t.layerName&&n.push("layer(".concat(t.layerName,")")),t.supportsText&&n.push("supports(".concat(t.supportsText,")")),t.media.length&&n.push(t.media.mediaText),n.join(" ")+";"}(t)}catch(n){}else if(function(t){return"selectorText"in t}(t)){let e=t.cssText;const n=t.selectorText.includes(":"),r="string"===typeof t.style.all&&t.style.all;if(r&&(e=function(t){let e="";for(let n=0;n<t.style.length;n++){const r=t.style,o=r[n],s=r.getPropertyPriority(o);e+="".concat(o,":").concat(r.getPropertyValue(o)).concat(s?" !important":"",";")}return"".concat(t.selectorText," { ").concat(e," }")}(t)),n&&(e=function(t){const e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return t.replace(e,"$1\\$2")}(e)),n||r)return e}return e||t.cssText}!function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"}(Qa||(Qa={}));class oc{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(t){if(!t)return-1;return $a(Za([this,"access",t=>t.getMeta,"call",e=>e(t),"optionalAccess",t=>t.id]),()=>-1)}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const e=this.getId(t);
1this.idNodeMap.delete(e),t.childNodes&&t.childNodes.forEach(t=>this.removeNodeFromMap(t))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,e){const n=e.id;this.idNodeMap.set(n,t),this.nodeMetaMap.set(t,e)}replace(t,e){const n=this.getNode(t);if(n){const t=this.nodeMetaMap.get(n);t&&this.nodeMetaMap.set(e,t)}this.idNodeMap.set(t,e)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function sc(t){let{maskInputOptions:e,tagName:n,type:r}=t;return"OPTION"===n&&(n="SELECT"),Boolean(e[n.toLowerCase()]||r&&e[r]||"password"===r||"INPUT"===n&&!r&&e.text)}function ic(t){let{isMasked:e,element:n,value:r,maskInputFn:o}=t,s=r||"";return e?(o&&(s=o(s,n)),"*".repeat(s.length)):s}function ac(t){return t.toLowerCase()}function cc(t){return t.toUpperCase()}const uc="__rrweb_original__";function lc(t){const e=t.type;return t.hasAttribute("data-rr-is-password")?"password":e?ac(e):null}function dc(t,e,n){return"INPUT"!==e||"radio"!==n&&"checkbox"!==n?t.value:t.getAttribute("value")||""}function pc(t,e){let n;try{n=new URL(t,$a(e,()=>window.location.href))}catch(r){return null}return $a(Za([n.pathname.match(/\.([0-9a-z]+)(?:$)/i),"optionalAccess",t=>t[1]]),()=>null)}const hc={};function fc(t){const e=hc[t];if(e)return e;const n=window.document;let r=window[t];if(n&&"function"===typeof n.createElement)try{const e=n.createElement("iframe");e.hidden=!0,n.head.appendChild(e);const o=e.contentWindow;o&&o[t]&&(r=o[t]),n.head.removeChild(e)}catch(o){}return hc[t]=r.bind(window)}function mc(){return fc("setTimeout")(...arguments)}function gc(){return fc("clearTimeout")(...arguments)}function _c(t){try{return t.contentDocument}catch(e){}}let yc=1;const vc=new RegExp("[^a-z0-9-_:]");function bc(){return yc++}let Sc,wc;const kc=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Ec=/^(?:[a-z+]+:)?\/\//i,xc=/^www\..*/i,Cc=/^(data:)([^,]*),(.*)/i;function Ac(t,e){return(t||"").replace(kc,(t,n,r,o,s,i)=>{const a=r||s||i,c=n||o||"";if(!a)return t;if(Ec.test(a)||xc.test(a))return"url(".concat(c).concat(a).concat(c,")");if(Cc.test(a))return"url(".concat(c).concat(a).concat(c,")");if("/"===a[0])return"url(".concat(c).concat(function(t){let e="";return e=t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0],e=e.split("?")[0],e}(e)+a).concat(c,")");const u=e.split("/"),l=a.split("/");u.pop();for(const e of l)"."!==e&&(".."===e?u.pop():u.push(e));return"url(".concat(c).concat(u.join("/")).concat(c,")")})}const Tc=/^[^ \t\n\r\u000c]+/,Ic=/^[, \t\n\r\u000c]+/;const Mc=new WeakMap;function Rc(t,e){return e&&""!==e.trim()?Dc(t,e):e}function Oc(t){return Boolean("svg"===t.tagName||t.ownerSVGElement)}function Dc(t,e){let n=Mc.get(t);if(n||(n=t.createElement("a"),Mc.set(t,n)),e){if(e.startsWith("blob:")||e.startsWith("data:"))return e}else e="";return n.setAttribute("href",e),n.href}function Lc(t,e,n,r,o,s){return r?"src"===n||"href"===n&&("use"!==e||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?Rc(t,r):"background"!==n||"table"!==e&&"td"!==e&&"th"!==e?"srcset"===n?function(t,e){if(""===e.trim())return e;let n=0;function r(t){let r;const o=t.exec(e.substring(n));return o?(r=o[0],n+=r.length,r):""}const o=[];for(;r(Ic),!(n>=e.length);){let s=r(Tc);if(","===s.slice(-1))s=Rc(t,s.substring(0,s.length-1)),o.push(s);else{let r="";s=Rc(t,s);let i=!1;for(;;){const t=e.charAt(n);if(""===t){o.push((s+r).trim());break}if(i)")"===t&&(i=!1);else{if(","===t){n+=1,o.push((s+r).trim());break}"("===t&&(i=!0)}r+=t,n+=1}}}return o.join(", ")}(t,r):"style"===n?Ac(r,Dc(t)):"object"===e&&"data"===n?Rc(t,r):"function"===typeof s?s(n,r,o):r:Rc(t,r):r}function Nc(t,e,n){return("video"===t||"audio"===t)&&"autoplay"===e}function Pc(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return t?t.nodeType!==t.ELEMENT_NODE||r>n?-1:e(t)?r:Pc(t.parentNode,e,n,r+1):-1}function Fc(t,e){return n=>{const r=n;if(null===r)return!1;try{if(t)if("string"===typeof t){if(r.matches(".".concat(t)))return!0}else if(function(t,e){for(let n=t.classList.length;n--;){const r=t.classList[n];if(e.test(r))return!0}return!1}(r,t))return!0;return!(!e||!r.matches(e))}catch(o){return!1}}}function Bc(t,e,n,r,o,s){try{const i=t.nodeType===t.ELEMENT_NODE?t:t.parentElement;if(null===i)return!1;if("INPUT"===i.tagName){const t=i.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(t))return!0}let a=-1,c=-1;if(s){if(c=Pc(i,Fc(r,o)),c<0)return!0;a=Pc(i,Fc(e,n),c>=0?c:1/0)}else{if(a=Pc(i,Fc(e,n)),a<0)return!1;c=Pc(i,Fc(r,o),a>=0?a:1/0)}return a>=0?!(c>=0)||a<=c:!(c>=0)&&!!s}catch(i){}return!!s}function Uc(t,e){const{doc:n,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:a,maskAttributeFn:c,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:f={},maskTextFn:m,maskInputFn:g,dataURLOptions:_={},inlineImages:y,recordCanvas:v,keepIframeSrcFn:b,newlyAddedElement:S=!1}=e,w=function(t,e){if(!e.hasNode(t))return;const n=e.getId(t);return 1===n?void 0:n}(n,r);switch(t.nodeType){case t.DOCUMENT_NODE:return"CSS1Compat"!==t.compatMode?{type:Qa.Document,childNodes:[],compatMode:t.compatMode}:{type:Qa.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:Qa.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:w};case t.ELEMENT_NODE:return function(t,e){const{doc:n,blockClass:r,blockSelector:o,unblockSelector:s,inlineStylesheet:i,maskInputOptions:a={},maskAttributeFn:c,maskInputFn:u,dataURLOptions:l={},inlineImages:d,recordCanvas:p,keepIframeSrcFn:h,newlyAddedElement:f=!1,rootId:m,maskAllText:g,maskTextClass:_,unmaskTextClass:y,maskTextSelector:v,unmaskTextSelector:b}=e,S=function(t,e,n,r){try{if(r&&t.matches(r))return!1;if("string"===typeof e){if(t.classList.contains(e))return!0}else for(let n=t.classList.length;n--;){const r=t.classList[n];if(e.test(r))return!0}if(n)return t.matches(n)}catch(o){}return!1}(t,r,o,s),w=function(t){if(t instanceof HTMLFormElement)return"form";const e=ac(t.tagName);
1return vc.test(e)?"div":e}(t);let k={};const E=t.attributes.length;for(let A=0;A<E;A++){const e=t.attributes[A];e.name&&!Nc(w,e.name,e.value)&&(k[e.name]=Lc(n,w,ac(e.name),e.value,t,c))}if("link"===w&&i){const e=Array.from(n.styleSheets).find(e=>e.href===t.href);let r=null;e&&(r=nc(e)),r&&(k.rel=null,k.href=null,k.crossorigin=null,k._cssText=Ac(r,e.href))}if("style"===w&&t.sheet&&!(t.innerText||t.textContent||"").trim().length){const e=nc(t.sheet);e&&(k._cssText=Ac(e,Dc(n)))}if("input"===w||"textarea"===w||"select"===w||"option"===w){const e=t,n=lc(e),r=dc(e,cc(w),n),o=e.checked;if("submit"!==n&&"button"!==n&&r){const t=Bc(e,_,v,y,b,sc({type:n,tagName:cc(w),maskInputOptions:a}));k.value=ic({isMasked:t,element:e,value:r,maskInputFn:u})}o&&(k.checked=o)}"option"===w&&(t.selected&&!a.select?k.selected=!0:delete k.selected);if("canvas"===w&&p)if("2d"===t.__context)(function(t){const e=t.getContext("2d");if(!e)return!0;for(let n=0;n<t.width;n+=50)for(let r=0;r<t.height;r+=50){const o=e.getImageData,s=uc in o?o[uc]:o;if(new Uint32Array(s.call(e,n,r,Math.min(50,t.width-n),Math.min(50,t.height-r)).data.buffer).some(t=>0!==t))return!1}return!0})(t)||(k.rr_dataURL=t.toDataURL(l.type,l.quality));else if(!("__context"in t)){const e=t.toDataURL(l.type,l.quality),r=n.createElement("canvas");r.width=t.width,r.height=t.height;e!==r.toDataURL(l.type,l.quality)&&(k.rr_dataURL=e)}if("img"===w&&d){Sc||(Sc=n.createElement("canvas"),wc=Sc.getContext("2d"));const e=t,r=e.currentSrc||e.getAttribute("src")||"<unknown-src>",o=e.crossOrigin,s=()=>{e.removeEventListener("load",s);try{Sc.width=e.naturalWidth,Sc.height=e.naturalHeight,wc.drawImage(e,0,0),k.rr_dataURL=Sc.toDataURL(l.type,l.quality)}catch(t){if("anonymous"!==e.crossOrigin)return e.crossOrigin="anonymous",void(e.complete&&0!==e.naturalWidth?s():e.addEventListener("load",s));console.warn("Cannot inline img src=".concat(r,"! Error: ").concat(t))}"anonymous"===e.crossOrigin&&(o?k.crossOrigin=o:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?s():e.addEventListener("load",s)}"audio"!==w&&"video"!==w||(k.rr_mediaState=t.paused?"paused":"played",k.rr_mediaCurrentTime=t.currentTime);f||(t.scrollLeft&&(k.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(k.rr_scrollTop=t.scrollTop));if(S){const{width:e,height:n}=t.getBoundingClientRect();k={class:k.class,rr_width:"".concat(e,"px"),rr_height:"".concat(n,"px")}}"iframe"!==w||h(k.src)||(S||_c(t)||(k.rr_src=k.src),delete k.src);let x;try{customElements.get(w)&&(x=!0)}catch(C){}return{type:Qa.Element,tagName:w,attributes:k,childNodes:[],isSVG:Oc(t)||void 0,needBlock:S,rootId:m,isCustom:x}}(t,{doc:n,blockClass:o,blockSelector:s,unblockSelector:i,inlineStylesheet:h,maskAttributeFn:c,maskInputOptions:f,maskInputFn:g,dataURLOptions:_,inlineImages:y,recordCanvas:v,keepIframeSrcFn:b,newlyAddedElement:S,rootId:w,maskAllText:a,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p});case t.TEXT_NODE:return function(t,e){const{maskAllText:n,maskTextClass:r,unmaskTextClass:o,maskTextSelector:s,unmaskTextSelector:i,maskTextFn:a,maskInputOptions:c,maskInputFn:u,rootId:l}=e,d=t.parentNode&&t.parentNode.tagName;let p=t.textContent;const h="STYLE"===d||void 0,f="SCRIPT"===d||void 0,m="TEXTAREA"===d||void 0;if(h&&p){try{t.nextSibling||t.previousSibling||Za([t,"access",t=>t.parentNode,"access",t=>t.sheet,"optionalAccess",t=>t.cssRules])&&(p=nc(t.parentNode.sheet))}catch(_){console.warn("Cannot get CSS styles from text's parentNode. Error: ".concat(_),t)}p=Ac(p,Dc(e.doc))}f&&(p="SCRIPT_PLACEHOLDER");const g=Bc(t,r,s,o,i,n);h||f||m||!p||!g||(p=a?a(p,t.parentElement):p.replace(/[\S]/g,"*"));m&&p&&(c.textarea||g)&&(p=u?u(p,t.parentNode):p.replace(/[\S]/g,"*"));if("OPTION"===d&&p){p=ic({isMasked:Bc(t,r,s,o,i,sc({type:null,tagName:d,maskInputOptions:c})),element:t,value:p,maskInputFn:u})}return{type:Qa.Text,textContent:p||"",isStyle:h,rootId:l}}(t,{doc:n,maskAllText:a,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p,maskTextFn:m,maskInputOptions:f,maskInputFn:g,rootId:w});case t.CDATA_SECTION_NODE:return{type:Qa.CDATA,textContent:"",rootId:w};case t.COMMENT_NODE:return{type:Qa.Comment,textContent:t.textContent||"",rootId:w};default:return!1}}function jc(t){return void 0===t||null===t?"":t.toLowerCase()}function Hc(t,e){const{doc:n,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:p=!1,inl
1ineStylesheet:h=!0,maskInputOptions:f={},maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOMOptions:y,dataURLOptions:v={},inlineImages:b=!1,recordCanvas:S=!1,onSerialize:w,onIframeLoad:k,iframeLoadTimeout:E=5e3,onStylesheetLoad:x,stylesheetLoadTimeout:C=5e3,keepIframeSrcFn:A=()=>!1,newlyAddedElement:T=!1}=e;let{preserveWhiteSpace:I=!0}=e;const M=Uc(t,{doc:n,mirror:r,blockClass:o,blockSelector:s,maskAllText:a,unblockSelector:i,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,dataURLOptions:v,inlineImages:b,recordCanvas:S,keepIframeSrcFn:A,newlyAddedElement:T});if(!M)return console.warn(t,"not serialized"),null;let R;R=r.hasNode(t)?r.getId(t):!function(t,e){if(e.comment&&t.type===Qa.Comment)return!0;if(t.type===Qa.Element){if(e.script&&("script"===t.tagName||"link"===t.tagName&&("preload"===t.attributes.rel||"modulepreload"===t.attributes.rel)||"link"===t.tagName&&"prefetch"===t.attributes.rel&&"string"===typeof t.attributes.href&&"js"===pc(t.attributes.href)))return!0;if(e.headFavicon&&("link"===t.tagName&&"shortcut icon"===t.attributes.rel||"meta"===t.tagName&&(jc(t.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===jc(t.attributes.name)||"icon"===jc(t.attributes.rel)||"apple-touch-icon"===jc(t.attributes.rel)||"shortcut icon"===jc(t.attributes.rel))))return!0;if("meta"===t.tagName){if(e.headMetaDescKeywords&&jc(t.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(jc(t.attributes.property).match(/^(og|twitter|fb):/)||jc(t.attributes.name).match(/^(og|twitter):/)||"pinterest"===jc(t.attributes.name)))return!0;if(e.headMetaRobots&&("robots"===jc(t.attributes.name)||"googlebot"===jc(t.attributes.name)||"bingbot"===jc(t.attributes.name)))return!0;if(e.headMetaHttpEquiv&&void 0!==t.attributes["http-equiv"])return!0;if(e.headMetaAuthorship&&("author"===jc(t.attributes.name)||"generator"===jc(t.attributes.name)||"framework"===jc(t.attributes.name)||"publisher"===jc(t.attributes.name)||"progid"===jc(t.attributes.name)||jc(t.attributes.property).match(/^article:/)||jc(t.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&("google-site-verification"===jc(t.attributes.name)||"yandex-verification"===jc(t.attributes.name)||"csrf-token"===jc(t.attributes.name)||"p:domain_verify"===jc(t.attributes.name)||"verify-v1"===jc(t.attributes.name)||"verification"===jc(t.attributes.name)||"shopify-checkout-api-token"===jc(t.attributes.name)))return!0}}return!1}(M,y)&&(I||M.type!==Qa.Text||M.isStyle||M.textContent.replace(/^\s+|\s+$/gm,"").length)?bc():-2;const O=Object.assign(M,{id:R});if(r.add(t,O),-2===R)return null;w&&w(t);let D=!p;if(O.type===Qa.Element){D=D&&!O.needBlock,delete O.needBlock;const e=t.shadowRoot;e&&ec(e)&&(O.isShadowHost=!0)}if((O.type===Qa.Document||O.type===Qa.Element)&&D){y.headWhitespace&&O.type===Qa.Element&&"head"===O.tagName&&(I=!1);const e={doc:n,mirror:r,blockClass:o,blockSelector:s,maskAllText:a,unblockSelector:i,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:p,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOMOptions:y,dataURLOptions:v,inlineImages:b,recordCanvas:S,preserveWhiteSpace:I,onSerialize:w,onIframeLoad:k,iframeLoadTimeout:E,onStylesheetLoad:x,stylesheetLoadTimeout:C,keepIframeSrcFn:A};for(const n of Array.from(t.childNodes)){const t=Hc(n,e);t&&O.childNodes.push(t)}if(function(t){return t.nodeType===t.ELEMENT_NODE}(t)&&t.shadowRoot)for(const n of Array.from(t.shadowRoot.childNodes)){const r=Hc(n,e);r&&(ec(t.shadowRoot)&&(r.isShadow=!0),O.childNodes.push(r))}}return t.parentNode&&tc(t.parentNode)&&ec(t.parentNode)&&(O.isShadow=!0),O.type===Qa.Element&&"iframe"===O.tagName&&function(t,e,n){const r=t.contentWindow;if(!r)return;let o,s=!1;try{o=r.document.readyState}catch(a){return}if("complete"!==o){const r=mc(()=>{s||(e(),s=!0)},n);return void t.addEventListener("load",()=>{gc(r),s=!0,e()})}const i="about:blank";if(r.location.href!==i||t.src===i||""===t.src)return mc(e,0),t.addEventListener("load",e);t.addEventListener("load",e)}(t,()=>{const e=_c(t);if(e&&k){const n=Hc(e,{doc:e,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOMOptions:y,dataURLOptions:v,inlineImages:b,recordCanvas:S,preserveWhiteSpace:I,onSerialize:w,onIframeLoad:k,iframeLoadTimeout:E,onStylesheetLoad:x,stylesheetLoadTimeout:C,keepIframeSrcFn:A});n&&k(t,n)}}
1,E),O.type===Qa.Element&&"link"===O.tagName&&"string"===typeof O.attributes.rel&&("stylesheet"===O.attributes.rel||"preload"===O.attributes.rel&&"string"===typeof O.attributes.href&&"css"===pc(O.attributes.href))&&function(t,e,n){let r,o=!1;try{r=t.sheet}catch(i){return}if(r)return;const s=mc(()=>{o||(e(),o=!0)},n);t.addEventListener("load",()=>{gc(s),o=!0,e()})}(t,()=>{if(x){const e=Hc(t,{doc:n,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOMOptions:y,dataURLOptions:v,inlineImages:b,recordCanvas:S,preserveWhiteSpace:I,onSerialize:w,onIframeLoad:k,iframeLoadTimeout:E,onStylesheetLoad:x,stylesheetLoadTimeout:C,keepIframeSrcFn:A});e&&x(t,e)}},C),O}function zc(t){let e,n=t[0],r=1;for(;r<t.length;){const o=t[r],s=t[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(e=n,n=s(n)):"call"!==o&&"optionalCall"!==o||(n=s(function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return n.call(e,...r)}),e=void 0)}return n}function Wc(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document;const r={capture:!0,passive:!0};return n.addEventListener(t,e,r),()=>n.removeEventListener(t,e,r)}const qc="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 Yc={map:{},getId:()=>(console.error(qc),-1),getNode:()=>(console.error(qc),null),removeNodeFromMap(){console.error(qc)},has:()=>(console.error(qc),!1),reset(){console.error(qc)}};function Vc(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=null,o=0;return function(){for(var s=arguments.length,i=new Array(s),a=0;a<s;a++)i[a]=arguments[a];const c=Date.now();o||!1!==n.leading||(o=c);const u=e-(c-o),l=this;u<=0||u>e?(r&&(!function(){pu("clearTimeout")(...arguments)}(r),r=null),o=c,t.apply(l,i)):r||!1===n.trailing||(r=hu(()=>{o=!1===n.leading?0:Date.now(),r=null,t.apply(l,i)},u))}}function Gc(t,e,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:window;const s=o.Object.getOwnPropertyDescriptor(t,e);return o.Object.defineProperty(t,e,r?n:{set(t){hu(()=>{n.set.call(this,t)},0),s&&s.set&&s.set.call(this,t)}}),()=>Gc(t,e,s||{},!0)}function Xc(t,e,n){try{if(!(e in t))return()=>{};const r=t[e],o=n(r);return"function"===typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),t[e]=o,()=>{t[e]=r}}catch(r){return()=>{}}}"undefined"!==typeof window&&window.Proxy&&window.Reflect&&(Yc=new Proxy(Yc,{get:(t,e,n)=>("map"===e&&console.error(qc),Reflect.get(t,e,n))}));let Jc=Date.now;function Kc(t){const e=t.document;return{left:e.scrollingElement?e.scrollingElement.scrollLeft:void 0!==t.pageXOffset?t.pageXOffset:zc([e,"optionalAccess",t=>t.documentElement,"access",t=>t.scrollLeft])||zc([e,"optionalAccess",t=>t.body,"optionalAccess",t=>t.parentElement,"optionalAccess",t=>t.scrollLeft])||zc([e,"optionalAccess",t=>t.body,"optionalAccess",t=>t.scrollLeft])||0,top:e.scrollingElement?e.scrollingElement.scrollTop:void 0!==t.pageYOffset?t.pageYOffset:zc([e,"optionalAccess",t=>t.documentElement,"access",t=>t.scrollTop])||zc([e,"optionalAccess",t=>t.body,"optionalAccess",t=>t.parentElement,"optionalAccess",t=>t.scrollTop])||zc([e,"optionalAccess",t=>t.body,"optionalAccess",t=>t.scrollTop])||0}}function $c(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Zc(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Qc(t){if(!t)return null;return t.nodeType===t.ELEMENT_NODE?t:t.parentElement}function tu(t,e,n,r,o){if(!t)return!1;const s=Qc(t);if(!s)return!1;const i=Fc(e,n);if(!o){const t=r&&s.matches(r);return i(s)&&!t}const a=Pc(s,i);let c=-1;return!(a<0)&&(r&&(c=Pc(s,Fc(null,r))),a>-1&&c<0||a<c)}function eu(t,e){return-2===e.getId(t)}function nu(t,e){if(tc(t))return!1;const n=e.getId(t);return!e.has(n)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||nu(t.parentNode,e))}function ru(t){return Boolean(t.changedTouches)}function ou(t,e){return Boolean("IFRAME"===t.nodeName&&e.getMeta(t))}function su(t,e){return Boolean("LINK"===t.nodeName&&t.nodeType===t.ELEMENT_NODE&&t.getAttribute&&"stylesheet"===t.getAttribute("rel")&&e.getMeta(t))}function iu(t){return Boolean(zc([t,"optionalAccess",t=>t.shadowRoot]))}/[1-9][0-9]{12}/.test(Date.now().toString())||(Jc=()=>(new Date).getTime());class au{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return e=this.styleIDMap.get(t),n=()=>-1,null!=e?e:n();var e,n}has(t){return this.styleIDMap.has(t)}add(t,e){if(this.has(t))return this.getId(t);let n;return n=void 0===e?this.id++:e,this.styleIDMap.set(t,n),this.idStyleMap.set(n,t),n}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function cu(t){let e=null;return zc([t,"access",t=>t.getRootNode,"optionalCall",t=>t(),"optionalAccess",t=>t.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&t.getRootNode().host&&(e=t.getRootNode().host),e}function uu(t){const e=t.ownerDocument;if(!e)return!1;const n=function(t){let e,n=t;
1for(;e=cu(n);)n=e;return n}(t);return e.contains(n)}function lu(t){const e=t.ownerDocument;return!!e&&(e.contains(t)||uu(t))}const du={};function pu(t){const e=du[t];if(e)return e;const n=window.document;let r=window[t];if(n&&"function"===typeof n.createElement)try{const e=n.createElement("iframe");e.hidden=!0,n.head.appendChild(e);const o=e.contentWindow;o&&o[t]&&(r=o[t]),n.head.removeChild(e)}catch(o){}return du[t]=r.bind(window)}function hu(){return pu("setTimeout")(...arguments)}var fu,mu,gu=(t=>(t[t.DomContentLoaded=0]="DomContentLoaded",t[t.Load=1]="Load",t[t.FullSnapshot=2]="FullSnapshot",t[t.IncrementalSnapshot=3]="IncrementalSnapshot",t[t.Meta=4]="Meta",t[t.Custom=5]="Custom",t[t.Plugin=6]="Plugin",t))(gu||{}),_u=(t=>(t[t.Mutation=0]="Mutation",t[t.MouseMove=1]="MouseMove",t[t.MouseInteraction=2]="MouseInteraction",t[t.Scroll=3]="Scroll",t[t.ViewportResize=4]="ViewportResize",t[t.Input=5]="Input",t[t.TouchMove=6]="TouchMove",t[t.MediaInteraction=7]="MediaInteraction",t[t.StyleSheetRule=8]="StyleSheetRule",t[t.CanvasMutation=9]="CanvasMutation",t[t.Font=10]="Font",t[t.Log=11]="Log",t[t.Drag=12]="Drag",t[t.StyleDeclaration=13]="StyleDeclaration",t[t.Selection=14]="Selection",t[t.AdoptedStyleSheet=15]="AdoptedStyleSheet",t[t.CustomElement=16]="CustomElement",t))(_u||{}),yu=(t=>(t[t.MouseUp=0]="MouseUp",t[t.MouseDown=1]="MouseDown",t[t.Click=2]="Click",t[t.ContextMenu=3]="ContextMenu",t[t.DblClick=4]="DblClick",t[t.Focus=5]="Focus",t[t.Blur=6]="Blur",t[t.TouchStart=7]="TouchStart",t[t.TouchMove_Departed=8]="TouchMove_Departed",t[t.TouchEnd=9]="TouchEnd",t[t.TouchCancel=10]="TouchCancel",t))(yu||{}),vu=(t=>(t[t.Mouse=0]="Mouse",t[t.Pen=1]="Pen",t[t.Touch=2]="Touch",t))(vu||{});function bu(t){try{return t.contentDocument}catch(e){}}function Su(t){let e,n=t[0],r=1;for(;r<t.length;){const o=t[r],s=t[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(e=n,n=s(n)):"call"!==o&&"optionalCall"!==o||(n=s(function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return n.call(e,...r)}),e=void 0)}return n}function wu(t){return"__ln"in t}!function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"}(fu||(fu={})),function(t){t[t.PLACEHOLDER=0]="PLACEHOLDER",t[t.ELEMENT_NODE=1]="ELEMENT_NODE",t[t.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",t[t.TEXT_NODE=3]="TEXT_NODE",t[t.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",t[t.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",t[t.ENTITY_NODE=6]="ENTITY_NODE",t[t.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",t[t.COMMENT_NODE=8]="COMMENT_NODE",t[t.DOCUMENT_NODE=9]="DOCUMENT_NODE",t[t.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",t[t.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"}(mu||(mu={}));class ku{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let e=this.head;for(let n=0;n<t;n++)e=Su([e,"optionalAccess",t=>t.next])||null;return e}addNode(t){const e={value:t,previous:null,next:null};if(t.__ln=e,t.previousSibling&&wu(t.previousSibling)){const n=t.previousSibling.__ln.next;e.next=n,e.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=e,n&&(n.previous=e)}else if(t.nextSibling&&wu(t.nextSibling)&&t.nextSibling.__ln.previous){const n=t.nextSibling.__ln.previous;e.previous=n,e.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=e,n&&(n.next=e)}else this.head&&(this.head.previous=e),e.next=this.head,this.head=e;null===e.next&&(this.tail=e),this.length++}removeNode(t){const e=t.__ln;this.head&&(e.previous?(e.previous.next=e.next,e.next?e.next.previous=e.previous:this.tail=e.previous):(this.head=e.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const Eu=(t,e)=>"".concat(t,"@").concat(e);class xu{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=t=>
1{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],e=new Set,n=new ku,r=t=>{let e=t,n=-2;for(;-2===n;)e=e&&e.nextSibling,n=e&&this.mirror.getId(e);return n},o=o=>{if(!o.parentNode||!lu(o))return;const s=tc(o.parentNode)?this.mirror.getId(cu(o)):this.mirror.getId(o.parentNode),i=r(o);if(-1===s||-1===i)return n.addNode(o);const a=Hc(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:t=>{ou(t,this.mirror)&&!tu(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(t),su(t,this.mirror)&&this.stylesheetManager.trackLinkElement(t),iu(o)&&this.shadowDomManager.addShadowRoot(o.shadowRoot,this.doc)},onIframeLoad:(t,e)=>{tu(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(t,e),t.contentWindow&&this.canvasManager.addWindow(t.contentWindow),this.shadowDomManager.observeAttachShadow(t))},onStylesheetLoad:(t,e)=>{this.stylesheetManager.attachLinkElement(t,e)}});a&&(t.push({parentId:s,nextId:i,node:a}),e.add(a.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const a of this.movedSet)Au(this.removes,a,this.mirror)&&!this.movedSet.has(a.parentNode)||o(a);for(const a of this.addedSet)Tu(this.droppedSet,a)||Au(this.removes,a,this.mirror)?Tu(this.movedSet,a)?o(a):this.droppedSet.add(a):o(a);let s=null;for(;n.length;){let t=null;if(s){const e=this.mirror.getId(s.value.parentNode),n=r(s.value);-1!==e&&-1!==n&&(t=s)}if(!t){let e=n.tail;for(;e;){const n=e;if(e=e.previous,n){const e=this.mirror.getId(n.value.parentNode);if(-1===r(n.value))continue;if(-1!==e){t=n;break}{const e=n.value;if(e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const r=e.parentNode.host;if(-1!==this.mirror.getId(r)){t=n;break}}}}}}if(!t){for(;n.head;)n.removeNode(n.head.value);break}s=t.previous,n.removeNode(t.value),o(t.value)}const i={texts:this.texts.map(t=>({id:this.mirror.getId(t.node),value:t.value})).filter(t=>!e.has(t.id)).filter(t=>this.mirror.has(t.id)),attributes:this.attributes.map(t=>{const{attributes:e}=t;if("string"===typeof e.style){const n=JSON.stringify(t.styleDiff),r=JSON.stringify(t._unchangedStyles);n.length<e.style.length&&(n+r).split("var(").length===e.style.split("var(").length&&(e.style=t.styleDiff)}return{id:this.mirror.getId(t.node),attributes:e}}).filter(t=>!e.has(t.id)).filter(t=>this.mirror.has(t.id)),removes:this.removes,adds:t};(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=t=>{if(!eu(t.target,this.mirror))switch(t.type){case"characterData":{const e=t.target.textContent;tu(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||e===t.oldValue||this.texts.push({value:Bc(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&e?this.maskTextFn?this.maskTextFn(e,Qc(t.target)):e.replace(/[\S]/g,"*"):e,node:t.target});break}case"attributes":{const n=t.target;let r=t.attributeName,o=t.target.getAttribute(r);if("value"===r){const e=lc(n),r=n.tagName;o=dc(n,r,e);const s=sc({maskInputOptions:this.maskInputOptions,tagName:r,type:e});o=ic({isMasked:Bc(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,s),element:n,value:o,maskInputFn:this.maskInputFn})}if(tu(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||o===t.oldValue)return;let s=this.attributeMap.get(t.target);
1if("IFRAME"===n.tagName&&"src"===r&&!this.keepIframeSrcFn(o)){if(bu(n))return;r="rr_src"}if(s||(s={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(s),this.attributeMap.set(t.target,s)),"type"===r&&"INPUT"===n.tagName&&"password"===(t.oldValue||"").toLowerCase()&&n.setAttribute("data-rr-is-password","true"),!Nc(n.tagName,r)&&(s.attributes[r]=Lc(this.doc,ac(n.tagName),ac(r),o,n,this.maskAttributeFn),"style"===r)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}const r=this.unattachedDoc.createElement("span");t.oldValue&&r.setAttribute("style",t.oldValue);for(const t of Array.from(n.style)){const e=n.style.getPropertyValue(t),o=n.style.getPropertyPriority(t);e!==r.style.getPropertyValue(t)||o!==r.style.getPropertyPriority(t)?s.styleDiff[t]=""===o?e:[e,o]:s._unchangedStyles[t]=[e,o]}for(const t of Array.from(r.style))""===n.style.getPropertyValue(t)&&(s.styleDiff[t]=!1)}break}case"childList":if(tu(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(e=>this.genAdds(e,t.target)),t.removedNodes.forEach(e=>{const n=this.mirror.getId(e),r=tc(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);tu(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||eu(e,this.mirror)||!function(t,e){return-1!==e.getId(t)}(e,this.mirror)||(this.addedSet.has(e)?(Cu(this.addedSet,e),this.droppedSet.add(e)):this.addedSet.has(t.target)&&-1===n||nu(t.target,this.mirror)||(this.movedSet.has(e)&&this.movedMap[Eu(n,r)]?Cu(this.movedSet,e):this.removes.push({parentId:r,id:n,isShadow:!(!tc(t.target)||!ec(t.target))||void 0})),this.mapRemoves.push(e))})}},this.genAdds=(t,e)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!this.addedSet.has(t)&&!this.movedSet.has(t)){if(this.mirror.hasNode(t)){if(eu(t,this.mirror))return;this.movedSet.add(t);let n=null;e&&this.mirror.hasNode(e)&&(n=this.mirror.getId(e)),n&&-1!==n&&(this.movedMap[Eu(this.mirror.getId(t),n)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);tu(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes.forEach(t=>this.genAdds(t)),iu(t)&&t.shadowRoot.childNodes.forEach(e=>{this.processedNodeManager.add(e,this),this.genAdds(e,t)}))}}}init(t){["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(e=>{this[e]=t[e]})}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 Cu(t,e){t.delete(e),e.childNodes.forEach(e=>Cu(t,e))}function Au(t,e,n){return 0!==t.length&&function(t,e,n){let r=e.parentNode;for(;r;){const e=n.getId(r);if(t.some(t=>t.id===e))return!0;r=r.parentNode}return!1}(t,e,n)}function Tu(t,e){return 0!==t.size&&Iu(t,e)}function Iu(t,e){const{parentNode:n}=e;return!!n&&(!!t.has(n)||Iu(t,n))}let Mu;function Ru(t){Mu=t}function Ou(){Mu=void 0}const Du=t=>{if(!Mu)return t;return function(){try{return t(...arguments)}catch(e){if(Mu&&!0===Mu(e))return()=>{};throw e}}};function Lu(t){let e,n=t[0],r=1;for(;r<t.length;){const o=t[r],s=t[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(e=n,n=s(n)):"call"!==o&&"optionalCall"!==o||(n=s(function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return n.call(e,...r)}),e=void 0)}return n}const Nu=[];function Pu(t){try{if("composedPath"in t){const e=t.composedPath();if(e.length)return e[0]}else if("path"in t&&t.path.length)return t.path[0]}catch(e){}return t&&t.target}function Fu(t,e){const n=new xu;Nu.push(n),n.init(t);let r=window.MutationObserver||window.__rrMutationObserver;const o=Lu([window,"optionalAccess",t=>t.Zone,"optionalAccess",t=>t.__symbol__,"optionalCall",t=>t("MutationObserver")]);o&&window[o]&&(r=window[o]);const s=new r(Du(e=>{t.onMutation&&!1===t.onMutation(e)||n.processMutations.bind(n)(e)}));return s.observe(e,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),s}function Bu(t){let{mouseInteractionCb:e,doc:n,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,sampling:a}=t;if(!1===a.mouseInteraction)return()=>{};const c=!0===a.mouseInteraction||void 0===a.mouseInteraction?{}:a.mouseInteraction,u=[];let l=null;return Object.keys(yu).filter(t=>Number.isNaN(Number(t))&&!t.endsWith("_Departed")&&!1!==c[t]).forEac
1h(t=>{let a=ac(t);const c=(t=>n=>{const a=Pu(n);if(tu(a,o,s,i,!0))return;let c=null,u=t;if("pointerType"in n){switch(n.pointerType){case"mouse":c=vu.Mouse;break;case"touch":c=vu.Touch;break;case"pen":c=vu.Pen}c===vu.Touch?yu[t]===yu.MouseDown?u="TouchStart":yu[t]===yu.MouseUp&&(u="TouchEnd"):vu.Pen}else ru(n)&&(c=vu.Touch);null!==c?(l=c,(u.startsWith("Touch")&&c===vu.Touch||u.startsWith("Mouse")&&c===vu.Mouse)&&(c=null)):yu[t]===yu.Click&&(c=l,l=null);const d=ru(n)?n.changedTouches[0]:n;if(!d)return;const p=r.getId(a),{clientX:f,clientY:m}=d;Du(e)((0,h.A)({type:yu[u],id:p,x:f,y:m},null!==c&&{pointerType:c}))})(t);if(window.PointerEvent)switch(yu[t]){case yu.MouseDown:case yu.MouseUp:a=a.replace("mouse","pointer");break;case yu.TouchStart:case yu.TouchEnd:return}u.push(Wc(a,c,n))}),Du(()=>{u.forEach(t=>t())})}function Uu(t){let{scrollCb:e,doc:n,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,sampling:a}=t;return Wc("scroll",Du(Vc(Du(t=>{const a=Pu(t);if(!a||tu(a,o,s,i,!0))return;const c=r.getId(a);if(a===n&&n.defaultView){const t=Kc(n.defaultView);e({id:c,x:t.left,y:t.top})}else e({id:c,x:a.scrollLeft,y:a.scrollTop})}),a.scroll||100)),n)}const ju=["INPUT","TEXTAREA","SELECT"],Hu=new WeakMap;function zu(t){let{inputCb:e,doc:n,mirror:r,blockClass:o,blockSelector:s,unblockSelector:i,ignoreClass:a,ignoreSelector:c,maskInputOptions:u,maskInputFn:l,sampling:d,userTriggeredOnInput:p,maskTextClass:f,unmaskTextClass:m,maskTextSelector:g,unmaskTextSelector:_}=t;function y(t){let e=Pu(t);const r=t.isTrusted,d=e&&cc(e.tagName);if("OPTION"===d&&(e=e.parentElement),!e||!d||ju.indexOf(d)<0||tu(e,o,s,i,!0))return;const h=e;if(h.classList.contains(a)||c&&h.matches(c))return;const y=lc(e);let b=dc(h,d,y),S=!1;const w=sc({maskInputOptions:u,tagName:d,type:y}),k=Bc(e,f,g,m,_,w);"radio"!==y&&"checkbox"!==y||(S=e.checked),b=ic({isMasked:k,element:e,value:b,maskInputFn:l}),v(e,p?{text:b,isChecked:S,userTriggered:r}:{text:b,isChecked:S});const E=e.name;"radio"===y&&E&&S&&n.querySelectorAll('input[type="radio"][name="'.concat(E,'"]')).forEach(t=>{if(t!==e){const e=ic({isMasked:k,element:t,value:dc(t,d,y),maskInputFn:l});v(t,p?{text:e,isChecked:!S,userTriggered:!1}:{text:e,isChecked:!S})}})}function v(t,n){const o=Hu.get(t);if(!o||o.text!==n.text||o.isChecked!==n.isChecked){Hu.set(t,n);const o=r.getId(t);Du(e)((0,h.A)((0,h.A)({},n),{},{id:o}))}}const b=("last"===d.input?["change"]:["input","change"]).map(t=>Wc(t,Du(y),n)),S=n.defaultView;if(!S)return()=>{b.forEach(t=>t())};const w=S.Object.getOwnPropertyDescriptor(S.HTMLInputElement.prototype,"value"),k=[[S.HTMLInputElement.prototype,"value"],[S.HTMLInputElement.prototype,"checked"],[S.HTMLSelectElement.prototype,"value"],[S.HTMLTextAreaElement.prototype,"value"],[S.HTMLSelectElement.prototype,"selectedIndex"],[S.HTMLOptionElement.prototype,"selected"]];return w&&w.set&&b.push(...k.map(t=>Gc(t[0],t[1],{set(){Du(y)({target:this,isTrusted:!1})}},!1,S))),Du(()=>{b.forEach(t=>t())})}function Wu(t){return function(t,e){if(Gu("CSSGroupingRule")&&t.parentRule instanceof CSSGroupingRule||Gu("CSSMediaRule")&&t.parentRule instanceof CSSMediaRule||Gu("CSSSupportsRule")&&t.parentRule instanceof CSSSupportsRule||Gu("CSSConditionRule")&&t.parentRule instanceof CSSConditionRule){const n=Array.from(t.parentRule.cssRules).indexOf(t);e.unshift(n)}else if(t.parentStyleSheet){const n=Array.from(t.parentStyleSheet.cssRules).indexOf(t);e.unshift(n)}return e}(t,[])}function qu(t,e,n){let r,o;return t?(t.ownerNode?r=e.getId(t.ownerNode):o=n.getId(t),{styleId:o,id:r}):{}}function Yu(t,e){let{mirror:n,stylesheetManager:r}=t,o=null;o="#document"===e.nodeName?n.getId(e):n.getId(e.host);const s="#document"===e.nodeName?Lu([e,"access",t=>t.defaultView,"optionalAccess",t=>t.Document]):Lu([e,"access",t=>t.ownerDocument,"optionalAccess",t=>t.defaultView,"optionalAccess",t=>t.ShadowRoot]),i=Lu([s,"optionalAccess",t=>t.prototype])?Object.getOwnPropertyDescriptor(Lu([s,"optionalAccess",t=>t.prototype]),"adoptedStyleSheets"):void 0;return null!==o&&-1!==o&&s&&i?(Object.defineProperty(e,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get(){return Lu([i,"access",t=>t.get,"optionalAccess",t=>t.call,"call",t=>t(this)])},set(t){const e=Lu([i,"access",t=>t.set,"optionalAccess",t=>t.call,"call",e=>e(this,t)]);if(null!==o&&-1!==o)try{r.adoptStyleSheets(t,o)}catch(n){}return e}}),Du(()=>{Object.defineProperty(e,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get:i.get,set:i.set})})):()=>{}}function Vu(t){const e=t.doc.defaultView;if(!e)return()=>{};let n;t.recordDOM&&(n=Fu(t,t.doc));const r=function(t){let{mousemoveCb:e,sampling:n,doc:r,mirror:o}=t;if(!1===n.mousemove)return()=>{};const s="number"===typeof n.mousemove?n.mousemove:50,i="number"===typeof n.mousemoveCallback?n.mousemoveCallback:500;let a,c=[];const u=Vc(Du(t=>{const n=Date.now()-a;e(c.map(t=>(t.timeOffset-=n,t)),t),c=[],a=null}),i),l=Du(Vc(Du(t=>{const e=Pu(t),{clientX:n,clientY:r}=ru(t)?t.changedTouches[0]:t;a||(a=Jc()),c.push({x:n,y:r,id:o.getId(e),timeOffset:Jc()-a}),u("undefined"!==typeof DragEvent&&t instanceof DragEvent?_u.Drag:t instanceof MouseEvent?_u.MouseMove:_u.TouchMove)}),s,{trailing:!1})),d=[Wc("mousemove",l,r),Wc("touchmove",l,r),Wc("drag",l,r)];return Du(()=>{d.forEach(t=>t())})}(t),o=Bu(t),s=Uu(t),i=function(t,e){let{viewportResizeCb:n}=t,{win:r}=e,o=-1,s=-1;return Wc("resize",Du(Vc(Du(()=>{const t=$c(),e=Zc();o===t&&s===e||(n({width:Number(e),height:Number(t)}),o=t,s=e)}),200)),r)}(t,{win:e}),a=zu(t),c=function(t){let{mediaInteractionCb:e,blockClass:n,blockSelector:r,unblockSelector:o,mirror:s,sampling:i,doc:a}=t;const c=Du(t=>Vc(Du(i=>{const a=Pu(i);if(!a||tu(a,n,r,o,!0))return;const{currentTime:c,volume:u,muted:l,playbackRate:d}=a;e({type:t,id:s.getId(a),currentTime:c,volume:u,muted:l,playbackRate:d})}),i.media||500)),u=[Wc("play",c(0),a),Wc("pause",c(1),a),Wc("seeked",c(2),a),Wc("volumechange",c(3),a),Wc("ratechange",c(4),a)];return Du(()=>{u.forEach(t=>t())})}(t);let u=()=>{},l=()=>{},d=()=>{},p=()=>{};t.recordDOM&&(u=function(t,e){let{styleSheetRuleCb:n,mirror:r,stylesheetManager:o}=t,{win:s}=e;if(!s.CSSStyleSheet||!s.CSSStyleSheet.prototype)return()=>{};const i=s.CSSStyleSheet.prototype.insertRule;s.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:Du((t,e,s)=>{const[i,a]=s,{id:c,styleId:u}=qu(e,r,o.styleMirror);return(c&&-1!==c||u&&-1!==u)&&n({id:c,styleId:u,adds:[{rule:i,index:a}]}),t.apply(e,s)})});const a=s.CSSStyleSheet.prototype.deleteRule;
1let c,u;s.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:Du((t,e,s)=>{const[i]=s,{id:a,styleId:c}=qu(e,r,o.styleMirror);return(a&&-1!==a||c&&-1!==c)&&n({id:a,styleId:c,removes:[{index:i}]}),t.apply(e,s)})}),s.CSSStyleSheet.prototype.replace&&(c=s.CSSStyleSheet.prototype.replace,s.CSSStyleSheet.prototype.replace=new Proxy(c,{apply:Du((t,e,s)=>{const[i]=s,{id:a,styleId:c}=qu(e,r,o.styleMirror);return(a&&-1!==a||c&&-1!==c)&&n({id:a,styleId:c,replace:i}),t.apply(e,s)})})),s.CSSStyleSheet.prototype.replaceSync&&(u=s.CSSStyleSheet.prototype.replaceSync,s.CSSStyleSheet.prototype.replaceSync=new Proxy(u,{apply:Du((t,e,s)=>{const[i]=s,{id:a,styleId:c}=qu(e,r,o.styleMirror);return(a&&-1!==a||c&&-1!==c)&&n({id:a,styleId:c,replaceSync:i}),t.apply(e,s)})}));const l={};Xu("CSSGroupingRule")?l.CSSGroupingRule=s.CSSGroupingRule:(Xu("CSSMediaRule")&&(l.CSSMediaRule=s.CSSMediaRule),Xu("CSSConditionRule")&&(l.CSSConditionRule=s.CSSConditionRule),Xu("CSSSupportsRule")&&(l.CSSSupportsRule=s.CSSSupportsRule));const d={};return Object.entries(l).forEach(t=>{let[e,s]=t;d[e]={insertRule:s.prototype.insertRule,deleteRule:s.prototype.deleteRule},s.prototype.insertRule=new Proxy(d[e].insertRule,{apply:Du((t,e,s)=>{const[i,a]=s,{id:c,styleId:u}=qu(e.parentStyleSheet,r,o.styleMirror);return(c&&-1!==c||u&&-1!==u)&&n({id:c,styleId:u,adds:[{rule:i,index:[...Wu(e),a||0]}]}),t.apply(e,s)})}),s.prototype.deleteRule=new Proxy(d[e].deleteRule,{apply:Du((t,e,s)=>{const[i]=s,{id:a,styleId:c}=qu(e.parentStyleSheet,r,o.styleMirror);return(a&&-1!==a||c&&-1!==c)&&n({id:a,styleId:c,removes:[{index:[...Wu(e),i]}]}),t.apply(e,s)})})}),Du(()=>{s.CSSStyleSheet.prototype.insertRule=i,s.CSSStyleSheet.prototype.deleteRule=a,c&&(s.CSSStyleSheet.prototype.replace=c),u&&(s.CSSStyleSheet.prototype.replaceSync=u),Object.entries(l).forEach(t=>{let[e,n]=t;n.prototype.insertRule=d[e].insertRule,n.prototype.deleteRule=d[e].deleteRule})})}(t,{win:e}),l=Yu(t,t.doc),d=function(t,e){let{styleDeclarationCb:n,mirror:r,ignoreCSSAttributes:o,stylesheetManager:s}=t,{win:i}=e;const a=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:Du((t,e,i)=>{const[c,u,l]=i;if(o.has(c))return a.apply(e,[c,u,l]);const{id:d,styleId:p}=qu(Lu([e,"access",t=>t.parentRule,"optionalAccess",t=>t.parentStyleSheet]),r,s.styleMirror);return(d&&-1!==d||p&&-1!==p)&&n({id:d,styleId:p,set:{property:c,value:u,priority:l},index:Wu(e.parentRule)}),t.apply(e,i)})});const c=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(c,{apply:Du((t,e,i)=>{const[a]=i;if(o.has(a))return c.apply(e,[a]);const{id:u,styleId:l}=qu(Lu([e,"access",t=>t.parentRule,"optionalAccess",t=>t.parentStyleSheet]),r,s.styleMirror);return(u&&-1!==u||l&&-1!==l)&&n({id:u,styleId:l,remove:{property:a},index:Wu(e.parentRule)}),t.apply(e,i)})}),Du(()=>{i.CSSStyleDeclaration.prototype.setProperty=a,i.CSSStyleDeclaration.prototype.removeProperty=c})}(t,{win:e}),t.collectFonts&&(p=function(t){let{fontCb:e,doc:n}=t;const r=n.defaultView;if(!r)return()=>{};const o=[],s=new WeakMap,i=r.FontFace;r.FontFace=function(t,e,n){const r=new i(t,e,n);return s.set(r,{family:t,buffer:"string"!==typeof e,descriptors:n,fontSource:"string"===typeof e?e:JSON.stringify(Array.from(new Uint8Array(e)))}),r};const a=Xc(n.fonts,"add",function(t){return function(n){return hu(Du(()=>{const t=s.get(n);t&&(e(t),s.delete(n))}),0),t.apply(this,[n])}});return o.push(()=>{r.FontFace=i}),o.push(a),Du(()=>{o.forEach(t=>t())})}(t)));const h=function(t){const{doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,selectionCb:i}=t;let a=!0;const c=Du(()=>{const t=e.getSelection();if(!t||a&&Lu([t,"optionalAccess",t=>t.isCollapsed]))return;a=t.isCollapsed||!1;const c=[],u=t.rangeCount||0;for(let e=0;e<u;e++){const i=t.getRangeAt(e),{startContainer:a,startOffset:u,endContainer:l,endOffset:d}=i;tu(a,r,o,s,!0)||tu(l,r,o,s,!0)||c.push({start:n.getId(a),startOffset:u,end:n.getId(l),endOffset:d})}i({ranges:c})});return c(),Wc("selectionchange",c)}(t),f=function(t){let{doc:e,customElementCb:n}=t;const r=e.defaultView;return r&&r.customElements?Xc(r.customElements,"define",function(t){return function(e,r,o){try{n({define:{name:e}})}catch(s){}return t.apply(this,[e,r,o])}}):()=>{}}(t),m=[];for(const g of t.plugins)m.push(g.observer(g.callback,e,g.options));return Du(()=>{Nu.forEach(t=>t.reset()),Lu([n,"optionalAccess",t=>t.disconnect,"call",t=>t()]),r(),o(),s(),i(),a(),c(),u(),l(),d(),p(),h(),f(),m.forEach(t=>t())})}function Gu(t){return"undefined"!==typeof window[t]}function Xu(t){return Boolean("undefined"!==typeof window[t]&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)}class Ju{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,e,n,r){const o=n||this.getIdToRemoteIdMap(t),s=r||this.getRemoteIdToIdMap(t);let i=o.get(e);
1return i||(i=this.generateIdFn(),o.set(e,i),s.set(i,e)),i}getIds(t,e){const n=this.getIdToRemoteIdMap(t),r=this.getRemoteIdToIdMap(t);return e.map(e=>this.getId(t,e,n,r))}getRemoteId(t,e,n){const r=n||this.getRemoteIdToIdMap(t);if("number"!==typeof e)return e;const o=r.get(e);return o||-1}getRemoteIds(t,e){const n=this.getRemoteIdToIdMap(t);return e.map(e=>this.getRemoteId(t,e,n))}reset(t){if(!t)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let e=this.iframeIdToRemoteIdMap.get(t);return e||(e=new Map,this.iframeIdToRemoteIdMap.set(t,e)),e}getRemoteIdToIdMap(t){let e=this.iframeRemoteIdToIdMap.get(t);return e||(e=new Map,this.iframeRemoteIdToIdMap.set(t,e)),e}}function Ku(t){let e,n=t[0],r=1;for(;r<t.length;){const o=t[r],s=t[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(e=n,n=s(n)):"call"!==o&&"optionalCall"!==o||(n=s(function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return n.call(e,...r)}),e=void 0)}return n}class $u{constructor(){this.crossOriginIframeMirror=new Ju(bc),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class Zu{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Ju(bc),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Ju(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,e){this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:e}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),Ku([this,"access",t=>t.loadListener,"optionalCall",e=>e(t)]);const n=bu(t);n&&n.adoptedStyleSheets&&n.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(n.adoptedStyleSheets,this.mirror.getId(n))}handleMessage(t){const e=t;if("rrweb"!==e.data.type||e.origin!==e.data.origin)return;if(!t.source)return;const n=this.crossOriginIframeMap.get(t.source);if(!n)return;const r=this.transformCrossOriginEvent(n,e.data.event);r&&this.wrappedEmit(r,e.data.isCheckout)}transformCrossOriginEvent(t,e){switch(e.type){case gu.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(e.data.node,t);const n=e.data.node.id;return this.crossOriginIframeRootIdMap.set(t,n),this.patchRootIdOnNode(e.data.node,n),{timestamp:e.timestamp,type:gu.IncrementalSnapshot,data:{source:_u.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:e.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case gu.Meta:case gu.Load:case gu.DomContentLoaded:return!1;case gu.Plugin:return e;case gu.Custom:return this.replaceIds(e.data.payload,t,["id","parentId","previousId","nextId"]),e;case gu.IncrementalSnapshot:switch(e.data.source){case _u.Mutation:return e.data.adds.forEach(e=>{this.replaceIds(e,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(e.node,t);const n=this.crossOriginIframeRootIdMap.get(t);n&&this.patchRootIdOnNode(e.node,n)}),e.data.removes.forEach(e=>{this.replaceIds(e,t,["parentId","id"])}),e.data.attributes.forEach(e=>{this.replaceIds(e,t,["id"])}),e.data.texts.forEach(e=>{this.replaceIds(e,t,["id"])}),e;case _u.Drag:case _u.TouchMove:case _u.MouseMove:return e.data.positions.forEach(e=>{this.replaceIds(e,t,["id"])}),e;case _u.ViewportResize:return!1;case _u.MediaInteraction:case _u.MouseInteraction:case _u.Scroll:case _u.CanvasMutation:case _u.Input:return this.replaceIds(e.data,t,["id"]),e;case _u.StyleSheetRule:case _u.StyleDeclaration:return this.replaceIds(e.data,t,["i
1d"]),this.replaceStyleIds(e.data,t,["styleId"]),e;case _u.Font:return e;case _u.Selection:return e.data.ranges.forEach(e=>{this.replaceIds(e,t,["start","end"])}),e;case _u.AdoptedStyleSheet:return this.replaceIds(e.data,t,["id"]),this.replaceStyleIds(e.data,t,["styleIds"]),Ku([e,"access",t=>t.data,"access",t=>t.styles,"optionalAccess",t=>t.forEach,"call",e=>e(e=>{this.replaceStyleIds(e,t,["styleId"])})]),e}}return!1}replace(t,e,n,r){for(const o of r)(Array.isArray(e[o])||"number"===typeof e[o])&&(Array.isArray(e[o])?e[o]=t.getIds(n,e[o]):e[o]=t.getId(n,e[o]));return e}replaceIds(t,e,n){return this.replace(this.crossOriginIframeMirror,t,e,n)}replaceStyleIds(t,e,n){return this.replace(this.crossOriginIframeStyleMirror,t,e,n)}replaceIdOnNode(t,e){this.replaceIds(t,e,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(t=>{this.replaceIdOnNode(t,e)})}patchRootIdOnNode(t,e){t.type===Qa.Document||t.rootId||(t.rootId=e),"childNodes"in t&&t.childNodes.forEach(t=>{this.patchRootIdOnNode(t,e)})}}class Qu{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class tl{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,e){if(!ec(t))return;if(this.shadowDoms.has(t))return;this.shadowDoms.add(t),this.bypassOptions.canvasManager.addShadowRoot(t);const n=Fu((0,h.A)((0,h.A)({},this.bypassOptions),{},{doc:e,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),t);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(Uu((0,h.A)((0,h.A)({},this.bypassOptions),{},{scrollCb:this.scrollCb,doc:t,mirror:this.mirror}))),hu(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(Yu({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){const e=bu(t),n=function(t){try{return t.contentWindow}catch(e){}}(t);e&&n&&this.patchAttachShadow(n.Element,e)}patchAttachShadow(t,e){const n=this;this.restoreHandlers.push(Xc(t.prototype,"attachShadow",function(t){return function(r){const o=t.call(this,r);return this.shadowRoot&&lu(this)&&n.addShadowRoot(this.shadowRoot,e),o}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class el{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class nl{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new au,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,e){"_cssText"in e.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:e.id,attributes:e.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,e){if(0===t.length)return;const n={id:e,styleIds:[]},r=[];for(const o of t){let t;this.styleMirror.has(o)?t=this.styleMirror.getId(o):(t=this.styleMirror.add(o),r.push({styleId:t,rules:Array.from(o.rules||CSSRule,(t,e)=>({rule:rc(t),index:e}))})),n.styleIds.push(t)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class rl{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(t,e){const n=this.nodeMap.get(t);return n&&Array.from(n).some(t=>t!==e)}add(t,e){this.active||(this.active=!0,function(){pu("requestAnimationFrame")(...arguments)}(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(e))}destroy(){}}let ol,sl;try{if(2!==Array.from([1],t=>2*t)[0]){const t=document.createElement("iframe");document.body.appendChild(t),Array.from=Fi([t,"access",t=>t.contentWindow,"optionalAccess",t=>t.Array,"access",t=>t.from])||Array.from,document.body.removeChild(t)}}catch(j_){console.debug("Unable to override Array.from",j_)}const il=new oc;function al(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{emit:e,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:o="rr-block",blockSelector:s=null,unblockSelector:i=null,ignoreClass:a="rr-ignore",ignoreSelector:c=null,maskAllText:u=!1,maskTextClass:l="rr-mask",unmaskTextClass:d=null,maskTextSelector:p=null,unmaskTextSelector:f=null,inlineStylesheet:m=!0,maskAllInputs:g,maskInputOptions:_,slimDOMOptions:y,maskAttributeFn:v,maskInputFn:b,maskTextFn:S,maxCanvasSize:w=null,packFn:k,sampling:E={},dataURLOptions:x={},mousemoveWait:C,recordDOM:A=!0,recordCanvas:T=!1,recordCrossOriginIframes:I=!1,recordAfter:M=("DOMContentLoaded"===t.recordAfter?t.recordAfter:"load"),userTriggeredOnInput:R=!1,collectFonts:O=!1,inlineImages:D=!1,plugins:L,keepIframeSrcFn:N=()=>!1,ignoreCSSAttributes:P=new Set([]),errorHandler:F,onMutation:B,getCanvasManager:U}=t;Ru(F);const j=!I||window.parent===window;let H=!1;if(!j)try{window.parent.document&&(H=!1)}catch(nt){H=!0}if(j&&!e)throw new Error("emit function is required");if(!j&&!H)return()=>{};void 0!==C&&void 0===E.mousemove&&(E.mousemove=C),il.reset();const z=!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!==_?_:{},W=!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 q;!function(){var t=this;let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]: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=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];let o=n[0];if(!(0 in n))throw new TypeError("1 argument is required");do{if(t===o)return!0}while(o=o&&o.parentNode);return!1})}();let Y=0;const V=t=>{for(const e of L||[])e.eventProcessor&&(t=e.eventProcessor(t));return k&&!H&&(t=k(t)),t};ol=(t,o)=>{const s=t;if(s.timestamp=Jc(),!Fi([Nu,"access",t=>t[0],"optionalAccess",t=>t.isFrozen,"call",t=>t()])||s.type===gu.FullSnapshot||s.type===gu.IncrementalSnapshot&&s.data.source===_u.Mutation||Nu.forEach(t=>t.unfreeze()),j)Fi([e,"optionalCall",t=>t(V(s),o)]);else if(H){const t={type:"rrweb",event:V(s),origin:window.location.origin,isCheckout:o};window.parent.postMessage(t,"*")}if(s.type===gu.FullSnapshot)q=s,Y=0;else if(s.type===gu.IncrementalSnapshot){if(s.data.source===_u.Mutation&&s.data.isAttachIframe)return;Y++;const t=r&&Y>=r,e=n&&q&&s.timestamp-q.timestamp>n;(t||e)&&et(!0)}};const G=t=>{ol({type:gu.IncrementalSnapshot,data:(0,h.A)({source:_u.Mutation},t)})},X=t=>ol({type:gu.IncrementalSnapshot,data:(0,h.A)({source:_u.Scroll},t)}),J=t=>ol({type:gu.IncrementalSnapshot,data:(0,h.A)({source:_u.CanvasMutation},t)}),K=new nl({mutationCb:G,adoptedStyleSheetCb:t=>ol({type:gu.IncrementalSnapshot,data:(0,h.A)({source:_u.AdoptedStyleSheet},t)})}),$="boolean"===typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new $u:new Zu({mirror:il,mutationCb:G,stylesheetManager:K,recordCrossOriginIframes:I,wrappedEmit:ol});for(const h of L||[])h.getMirror&&h.getMirror({nodeMirror:il,crossOriginIframeMirror:$.crossOriginIframeMirror,crossOriginIframeStyleMirror:$.crossOriginIframeStyleMirror});const Z=new rl,Q=function(t,e){try{return t?t(e):new el}catch(n){return console.warn("Unable to initialize CanvasManager"),new el}}(U,{mirror:il,win:window,mutationCb:t=>ol({type:gu.IncrementalSnapshot,data:(0,h.A)({source:_u.CanvasMutation},t)}),recordCanvas:T,blockClass:o,blockSelector:s,unblockSelector:i,maxCanvasSize:w,sampling:E.canvas,dataURLOptions:x,errorHandler:F}),tt="boolean"===typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new Qu:new tl({mutationCb:G,scrollCb:X,bypassOptions:{onMutation:B,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:f,inlineStylesheet:m,maskInputOptions:z,dataURLOptions:x,maskAttributeFn:v,maskTextFn:S,maskInputFn:b,recordCanvas:T,inlineImages:D,sampling:E,slimDOMOptions:W,iframeManager:$,stylesheetManager:K,
1canvasManager:Q,keepIframeSrcFn:N,processedNodeManager:Z},mirror:il}),et=function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!A)return;ol({type:gu.Meta,data:{href:window.location.href,width:Zc(),height:$c()}},t),K.reset(),tt.init(),Nu.forEach(t=>t.lock());const e=function(t,e){const{mirror:n=new oc,blockClass:r="rr-block",blockSelector:o=null,unblockSelector:s=null,maskAllText:i=!1,maskTextClass:a="rr-mask",unmaskTextClass:c=null,maskTextSelector:u=null,unmaskTextSelector:l=null,inlineStylesheet:d=!0,inlineImages:p=!1,recordCanvas:h=!1,maskAllInputs:f=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOM:y=!1,dataURLOptions:v,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:k,onStylesheetLoad:E,stylesheetLoadTimeout:x,keepIframeSrcFn:C=()=>!1}=e||{};return Hc(t,{doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:s,maskAllText:i,maskTextClass:a,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:l,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:p,recordCanvas:h,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:k,onStylesheetLoad:E,stylesheetLoadTimeout:x,keepIframeSrcFn:C,newlyAddedElement:!1})}(document,{mirror:il,blockClass:o,blockSelector:s,unblockSelector:i,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:f,inlineStylesheet:m,maskAllInputs:z,maskAttributeFn:v,maskInputFn:b,maskTextFn:S,slimDOM:W,dataURLOptions:x,recordCanvas:T,inlineImages:D,onSerialize:t=>{ou(t,il)&&$.addIframe(t),su(t,il)&&K.trackLinkElement(t),iu(t)&&tt.addShadowRoot(t.shadowRoot,document)},onIframeLoad:(t,e)=>{$.attachIframe(t,e),t.contentWindow&&Q.addWindow(t.contentWindow),tt.observeAttachShadow(t)},onStylesheetLoad:(t,e)=>{K.attachLinkElement(t,e)},keepIframeSrcFn:N});if(!e)return console.warn("Failed to snapshot the document");ol({type:gu.FullSnapshot,data:{node:e,initialOffset:Kc(window)}}),Nu.forEach(t=>t.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&K.adoptStyleSheets(document.adoptedStyleSheets,il.getId(document))};sl=et;try{const t=[],e=t=>Du(Vu)({onMutation:B,mutationCb:G,mousemoveCb:(t,e)=>ol({type:gu.IncrementalSnapshot,data:{source:e,positions:t}}),mouseInteractionCb:t=>ol({type:gu.IncrementalSnapshot,data:(0,h.A)({source:_u.MouseInteraction},t)}),scrollCb:X,viewportResizeCb:t=>ol({type:gu.IncrementalSnapshot,data:(0,h.A)({source:_u.ViewportResize},t)}),inputCb:t=>ol({type:gu.IncrementalSnapshot,data:(0,h.A)({source:_u.Input},t)}),mediaInteractionCb:t=>ol({type:gu.IncrementalSnapshot,data:(0,h.A)({source:_u.MediaInteraction},t)}),styleSheetRuleCb:t=>ol({type:gu.IncrementalSnapshot,data:(0,h.A)({source:_u.StyleSheetRule},t)}),styleDeclarationCb:t=>ol({type:gu.IncrementalSnapshot,data:(0,h.A)({source:_u.StyleDeclaration},t)}),canvasMutationCb:J,fontCb:t=>ol({type:gu.IncrementalSnapshot,data:(0,h.A)({source:_u.Font},t)}),selectionCb:t=>{ol({type:gu.IncrementalSnapshot,data:(0,h.A)({source:_u.Selection},t)})},customElementCb:t=>{ol({type:gu.IncrementalSnapshot,data:(0,h.A)({source:_u.CustomElement},t)})},blockClass:o,ignoreClass:a,ignoreSelector:c,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:f,maskInputOptions:z,inlineStylesheet:m,sampling:E,recordDOM:A,recordCanvas:T,inlineImages:D,userTriggeredOnInput:R,collectFonts:O,doc:t,maskAttributeFn:v,maskInputFn:b,maskTextFn:S,keepIframeSrcFn:N,blockSelector:s,unblockSelector:i,slimDOMOptions:W,dataURLOptions:x,mirror:il,iframeManager:$,stylesheetManager:K,shadowDomManager:tt,processedNodeManager:Z,canvasManager:Q,ignoreCSSAttributes:P,plugins:Fi([L,"optionalAccess",t=>t.filter,"call",t=>t(t=>t.observer),"optionalAccess",t=>t.map,"call",t=>t(t=>({observer:t.observer,options:t.options,callback:e=>ol({type:gu.Plugin,data:{plugin:t.name,payload:e}})}))])||[]},{});$.addLoadListener(n=>{try{t.push(e(n.contentDocument))}catch(r){console.warn(r)}});const n=()=>{et(),t.push(e(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(t.push(Wc("DOMContentLoaded",()=>{ol({type:gu.DomContentLoaded,data:{}}),"DOMContentLoaded"===M&&n()})),t.push(Wc("load",()=>{ol({type:gu.Load,data:{}}),"load"===M&&n()}
1,window))),()=>{t.forEach(t=>t()),Z.destroy(),sl=void 0,Ou()}}catch(rt){console.warn(rt)}}al.mirror=il,al.takeFullSnapshot=function(t){if(!sl)throw new Error("please take full snapshot after start recording");sl(t)};function cl(t){return t>9999999999?t:1e3*t}function ul(t){return t>9999999999?t/1e3:t}function ll(t,e){"sentry.transaction"!==e.category&&(["ui.click","ui.input"].includes(e.category)?t.triggerUserActivity():t.checkAndHandleExpiredSession(),t.addUpdate(()=>(t.throttledAddEvent({type:gu.Custom,timestamp:1e3*(e.timestamp||0),data:{tag:"breadcrumb",payload:oe(e,10,1e3)}}),"console"===e.category)))}function dl(t){return t.closest("button,a")||t}function pl(t){const e=hl(t);return e&&e instanceof Element?dl(e):e}function hl(t){return function(t){return"object"===typeof t&&!!t&&"target"in t}(t)?t.target:t}let fl;function ml(t){return fl||(fl=[],Y(Ha,"open",function(t){return function(){if(fl)try{fl.forEach(t=>t())}catch(o){}for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.apply(Ha,n)}})),fl.push(t),()=>{const e=fl?fl.indexOf(t):-1;e>-1&&fl.splice(e,1)}}const gl=new Set([_u.Mutation,_u.StyleSheetRule,_u.StyleDeclaration,_u.AdoptedStyleSheet,_u.CanvasMutation,_u.Selection,_u.MediaInteraction]);class _l{constructor(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ll;this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=e.timeout/1e3,this._threshold=e.threshold/1e3,this._scrollTimeout=e.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=e.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){const t=ml(()=>{this._lastMutation=vl()});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,e){if(function(t,e){if(!yl.includes(t.tagName))return!0;if("INPUT"===t.tagName&&!["submit","button"].includes(t.getAttribute("type")||""))return!0;if("A"===t.tagName&&(t.hasAttribute("download")||t.hasAttribute("target")&&"_self"!==t.getAttribute("target")))return!0;if(e&&t.matches(e))return!0;return!1}(e,this._ignoreSelector)||!function(t){return!(!t.data||"number"!==typeof t.data.nodeId||!t.timestamp)}(t))return;const n={timestamp:ul(t.timestamp),clickBreadcrumb:t,clickCount:0,node:e};this._clicks.some(t=>t.node===n.node&&Math.abs(t.timestamp-n.timestamp)<1)||(this._clicks.push(n),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();this._lastMutation=ul(t)}registerScroll(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();this._lastScroll=ul(t)}registerClick(t){const e=dl(t);this._handleMultiClick(e)}_handleMultiClick(t){this._getClicks(t).forEach(t=>{t.clickCount++})}_getClicks(t){return this._clicks.filter(e=>e.node===t)}_checkClicks(){const t=[],e=vl();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<=e&&t.push(n)});for(const n of t){const t=this._clicks.indexOf(n);t>-1&&(this._generateBreadcrumbs(n),this._clicks.splice(t,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const e=this._replay,n=t.scrollAfter&&t.scrollAfter<=this._scrollTimeout,r=t.mutationAfter&&t.mutationAfter<=this._threshold,o=!n&&!r,{clickCount:s,clickBreadcrumb:i}=t;if(o){const n=1e3*Math.min(t.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:(0,h.A)((0,h.A)({},i.data),{},{url:Ha.location.href,route:e.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:s||1})};this._addBreadcrumbEvent(e,o)}else if(s>1){const t={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.multiClick",data:(0,h.A)((0,h.A)({},i.data),{},{url:Ha.location.href,route:e.getCurrentRoute(),clickCount:s,metric:!0})};this._addBreadcrumbEvent(e,t)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=ls(()=>this._checkClicks(),1e3)}}const yl=["A","BUTTON","INPUT"];function vl(){return Date.now()/1e3}function bl(t,e){try{if(!function(t){return 3===t.type}(e))return;const{source:n}=e.data;if(gl.has(n)&&t.registerMutation(e.timestamp),n===_u.Scroll&&t.registerScroll(e.timestamp),function(t){return t.data.source===_u.MouseInteraction}(e)){const{type:n,id:r}=e.data,o=al.mirror.getNode(r);o instanceof HTMLElement&&n===yu.Click&&t.registerClick(o)}}catch(n){}}function Sl(t){return(0,h.A)({timestamp:Date.now()/1e3,type:"default"},t)}var wl;!function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"}(wl||(wl={}));const kl=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function El(t){const e={};!t["data-sentry-component"]&&t["data-sentry-element"]&&(t["data-sentry-component"]=t["data-sentry-element"]);for(const n in t)if(kl.has(n)){let r=n;"data-testid"!==n&&"data-test-id"!==n||(r="testId"),e[r]=t[n]}return e}const xl=t=>e=>{if(!t.isEnabled())return;const n=function(t){const{target:e,message:n}=function(t){const e="click"===t.name;let n,r=null;try{r=e?pl(t.event):hl(t.event),n=R(r,{maxStringLength:200})||"<unknown>"}catch(o){n="<unknown>"}return{target:r,message:n}}(t);return Sl((0,h.A)({category:"ui.".concat(t.name)},Cl(e,n)))}(e);if(!n)return;const r="click"===e.name,o=r?e.event:void 0;var s,i,a;!(r&&t.clickDetector&&o&&o.target)||o.altKey||o.metaKey||o.ctrlKey||o.shiftKey||(s=t.clickDetector,i=n,a=pl(e.event),s.handleClick(i,a)),ll(t,n)};function Cl(t,e){const n=al.mirror.getId(t),r=n&&al.mirror.getNode(n),o=r&&al.mirror.getMeta(r),s=o&&function(t){return t.type===wl.Element}(o)?o:null;return{message:e,data:s?{nodeId:n,node:{id:n,tagName:s.tagName,textContent:Array.from(s.childNodes).map(t=>
1t.type===wl.Text&&t.textContent).filter(Boolean).map(t=>t.trim()).join(""),attributes:El(s.attributes)}}:{}}}function Al(t,e){if(!t.isEnabled())return;t.updateUserActivity();const n=function(t){const{metaKey:e,shiftKey:n,ctrlKey:r,altKey:o,key:s,target:i}=t;if(!i||function(t){return"INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable}(i)||!s)return null;const a=e||r||o,c=1===s.length;if(!a&&c)return null;const u=R(i,{maxStringLength:200})||"<unknown>",l=Cl(i,u);return Sl({category:"ui.keyDown",message:u,data:(0,h.A)((0,h.A)({},l.data),{},{metaKey:e,shiftKey:n,ctrlKey:r,altKey:o,key:s})})}(e);n&&ll(t,n)}const Tl={resource:function(t){const{entryType:e,initiatorType:n,name:r,responseEnd:o,startTime:s,decodedBodySize:i,encodedBodySize:a,responseStatus:c,transferSize:u}=t;if(["fetch","xmlhttprequest"].includes(n))return null;return{type:"".concat(e,".").concat(n),start:Rl(s),end:Rl(o),name:r,data:{size:u,statusCode:c,decodedBodySize:i,encodedBodySize:a}}},paint:function(t){const{duration:e,entryType:n,name:r,startTime:o}=t,s=Rl(o);return{type:n,name:r,start:s,end:s+e,data:void 0}},navigation:function(t){const{entryType:e,name:n,decodedBodySize:r,duration:o,domComplete:s,encodedBodySize:i,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,domInteractive:u,loadEventStart:l,loadEventEnd:d,redirectCount:p,startTime:h,transferSize:f,type:m}=t;if(0===o)return null;return{type:"".concat(e,".").concat(m),start:Rl(h),end:Rl(s),name:n,data:{size:f,decodedBodySize:r,encodedBodySize:i,duration:o,domInteractive:u,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:l,loadEventEnd:d,domComplete:s,redirectCount:p}}}};function Il(t,e){return n=>{let{metric:r}=n;e.replayPerformanceEntries.push(t(r))}}function Ml(t){const e=Tl[t.entryType];return e?e(t):null}function Rl(t){return((ot||Ha.performance.timeOrigin)+t)/1e3}function Ol(t){const e=t.entries[t.entries.length-1];return Fl(t,"largest-contentful-paint",e&&e.element?[e.element]:void 0)}function Dl(t){return void 0!==t.sources}function Ll(t){const e=[],n=[];for(const r of t.entries)if(Dl(r)){const t=[];for(const e of r.sources)if(e.node){n.push(e.node);const r=al.mirror.getId(e.node);r&&t.push(r)}e.push({value:r.value,nodeIds:t.length?t:void 0})}return Fl(t,"cumulative-layout-shift",n,e)}function Nl(t){const e=t.entries[t.entries.length-1];return Fl(t,"first-input-delay",e&&e.target?[e.target]:void 0)}function Pl(t){const e=t.entries[t.entries.length-1];return Fl(t,"interaction-to-next-paint",e&&e.target?[e.target]:void 0)}function Fl(t,e,n,r){const o=t.value,s=t.rating,i=Rl(o);return{type:"web-vital",name:e,start:i,end:i,data:{value:o,size:o,rating:s,nodeIds:n?n.map(t=>al.mirror.getId(t)):void 0,attributions:r}}}const Bl="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;const Ul=["info","warn","error","log"],jl="[Replay] ";function Hl(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info";Ft({category:"console",data:{logger:"replay"},level:e,message:"".concat(jl).concat(t)},{level:e})}const zl=function(){let t=!1,e=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:n=>{t=n.captureExceptions,e=n.traceInternals}};
1return Bl?(Ul.forEach(t=>{n[t]=function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];U[t](jl,...r),e&&Hl(r.join(""),zn(t))}}),n.exception=function(r){for(var o=arguments.length,s=new Array(o>1?o-1:0),i=1;i<o;i++)s[i-1]=arguments[i];s.length&&n.error&&n.error(...s),U.error(jl,r),t?en(r):e&&Hl(r,"error")},n.infoTick=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];U.info(jl,...n),e&&setTimeout(()=>Hl(n[0]),0)}):Ul.forEach(t=>{n[t]=()=>{}}),n}();class Wl extends Error{constructor(){super("Event buffer exceeded maximum size of ".concat(Xa,"."))}}class ql{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(t){const e=JSON.stringify(t).length;if(this._totalSize+=e,this._totalSize>Xa)throw new Wl;this.events.push(t)}finish(){return new Promise(t=>{const e=this.events;this.clear(),t(JSON.stringify(e))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const t=this.events.map(t=>t.timestamp).sort()[0];return t?cl(t):null}}class Yl{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((t,e)=>{this._worker.addEventListener("message",n=>{let{data:r}=n;r.success?t():e()},{once:!0}),this._worker.addEventListener("error",t=>{e(t)},{once:!0})})),this._ensureReadyPromise}destroy(){Bl&&zl.info("Destroying compression worker"),this._worker.terminate()}postMessage(t,e){const n=this._getAndIncrementId();return new Promise((r,o)=>{const s=e=>{let{data:i}=e;const a=i;if(a.method===t&&a.id===n){if(this._worker.removeEventListener("message",s),!a.success)return Bl&&zl.error("Error in compression worker: ",a.response),void o(new Error("Error in compression worker"));r(a.response)}};this._worker.addEventListener("message",s),this._worker.postMessage({id:n,method:t,arg:e})})}_getAndIncrementId(){return this._id++}}class Vl{constructor(t){this._worker=new Yl(t),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(t){const e=cl(t.timestamp);(!this._earliestTimestamp||e<this._earliestTimestamp)&&(this._earliestTimestamp=e);const n=JSON.stringify(t);return this._totalSize+=n.length,this._totalSize>Xa?Promise.reject(new Wl):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,t=>{Bl&&zl.exception(t,'Sending "clear" message to worker failed',t)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}}class Gl{constructor(t){this._fallback=new ql,this._compression=new Vl(t),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(t){this._used.hasCheckout=t}set waitForCheckout(t){this._used.waitForCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){return void(Bl&&zl.exception(t,"Failed to load the compression worker, falling back to simple buffer"))}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t,hasCheckout:e,waitForCheckout:n}=this._fallback,r=[];for(const s of t)r.push(this._compression.addEvent(s));this._compression.hasCheckout=e,this._compression.waitForCheckout=n,this._used=this._compression;try{await Promise.all(r),this._fallback.clear()}catch(o){Bl&&zl.exception(o,"Failed to add events when switching buffers.")}}}function Xl(t){let{useCompression:e,workerUrl:n}=t;if(e&&window.Worker){const t=function(t){try{const e=t||function(){if("undefined"===typeof __SENTRY_EXCLUDE_REPLAY_WORKER__||!__SENTRY_EXCLUDE_REPLAY_WORKER__)return function(){const t=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}
vendor: 5,457 bytes, line 1
1},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))},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(t)}();return""}();if(!e)return;Bl&&zl.info("Using compression worker".concat(t?" from ".concat(t):""));const n=new Worker(e);return new Gl(n)}catch(e){Bl&&zl.exception(e,"Failed to create compression worker")}}(n);if(t)return t}return Bl&&zl.info("Using simple buffer"),new ql}function Jl(){try{return"sessionStorage"in Ha&&!!Ha.sessionStorage}catch(t){return!1}}function Kl(t){!function(){if(!Jl())return;try{Ha.sessionStorage.removeItem(za)}catch(t){}}(),t.session=void 0}function $l(t){return void 0!==t&&Math.random()<t}function Zl(t){const e=Date.now();return{id:t.id||st(),started:t.started||e,lastActivity:t.lastActivity||e,segmentId:t.segmentId||0,sampled:t.sampled,previousSessionId:t.previousSessionId}}function Ql(t){if(Jl())try{Ha.sessionStorage.setItem(za,JSON.stringify(t))}catch(e){}}function td(t){let{sessionSampleRate:e,allowBuffering:n,stickySession:r=!1}=t,{previousSessionId:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};
1const s=function(t,e){return $l(t)?"session":!!e&&"buffer"}(e,n),i=Zl({sampled:s,previousSessionId:o});return r&&Ql(i),i}function ed(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:+new Date;return null===t||void 0===e||e<0||0!==e&&t+e<=n}function nd(t,e){let{maxReplayDuration:n,sessionIdleExpire:r,targetTime:o=Date.now()}=e;return ed(t.started,n,o)||ed(t.lastActivity,r,o)}function rd(t,e){let{sessionIdleExpire:n,maxReplayDuration:r}=e;return!!nd(t,{sessionIdleExpire:n,maxReplayDuration:r})&&("buffer"!==t.sampled||0!==t.segmentId)}function od(t,e){let{sessionIdleExpire:n,maxReplayDuration:r,previousSessionId:o}=t;const s=e.stickySession&&function(){if(!Jl())return null;try{const t=Ha.sessionStorage.getItem(za);if(!t)return null;const e=JSON.parse(t);return Bl&&zl.infoTick("Loading existing session"),Zl(e)}catch(t){return null}}();return s?rd(s,{sessionIdleExpire:n,maxReplayDuration:r})?(Bl&&zl.infoTick("Session in sessionStorage is expired, creating new one..."),td(e,{previousSessionId:s.id})):s:(Bl&&zl.infoTick("Creating new session"),td(e,{previousSessionId:o}))}function sd(t,e,n){return!!ad(t,e)&&(id(t,e,n),!0)}async function id(t,e,n){const{eventBuffer:r}=t;if(!r||r.waitForCheckout&&!n)return null;const o="buffer"===t.recordingMode;try{n&&o&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const s=function(t,e){try{if("function"===typeof e&&function(t){return t.type===gu.Custom}(t))return e(t)}catch(n){return Bl&&zl.exception(n,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return t}(e,t.getOptions().beforeAddRecordingEvent);if(!s)return;return await r.addEvent(s)}catch(s){const e=s&&s instanceof Wl,n=e?"addEventSizeExceeded":"addEvent";if(e&&o)return r.clear(),r.waitForCheckout=!0,null;t.handleException(s),await t.stop({reason:n});const i=Lt();i&&i.recordDroppedEvent("internal_sdk_error","replay")}}function ad(t,e){if(!t.eventBuffer||t.isPaused()||!t.isEnabled())return!1;const n=cl(e.timestamp);return!(n+t.timeouts.sessionIdlePause<Date.now())&&(!(n>t.getContext().initialTimestamp+t.getOptions().maxReplayDuration)||(Bl&&zl.infoTick("Skipping event with timestamp ".concat(n," because it is after maxReplayDuration")),!1))}function cd(t){return!t.type}function ud(t){return"transaction"===t.type}function ld(t){return"feedback"===t.type}function dd(t){return(e,n)=>{if(!t.isEnabled()||!cd(e)&&!ud(e))return;const r=n&&n.statusCode;!r||r<200||r>=300||(ud(e)?function(t,e){const n=t.getContext();e.contexts&&e.contexts.trace&&e.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(e.contexts.trace.trace_id)}(t,e):function(t,e){const n=t.getContext();e.event_id&&n.errorIds.size<100&&n.errorIds.add(e.event_id);if("buffer"!==t.recordingMode||!e.tags||!e.tags.replayId)return;const{beforeErrorSampling:r}=t.getOptions();if("function"===typeof r&&!r(e))return;ls(async()=>{try{await t.sendBufferedReplayOrFlush()}catch(j_){t.handleException(j_)}})}(t,e))}}function pd(t){return e=>{t.isEnabled()&&cd(e)&&function(t,e){const n=e.exception&&e.exception.values&&e.exception.values[0]&&e.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)){ll(t,Sl({category:"replay.hydrate-error",data:{url:D()}}))}}(t,e)}}function hd(t){const e=Lt();e&&e.on("beforeAddBreadcrumb",e=>function(t,e){if(!t.isEnabled()||!fd(e))return;const n=function(t){if(!fd(t)||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui."))return null;if("console"===t.category)return function(t){const e=t.data&&t.data.arguments;if(!Array.isArray(e)||0===e.length)return Sl(t);let n=!1;const r=e.map(t=>{if(!t)return t;if("string"===typeof t)return t.length>Ga?(n=!0,"".concat(t.slice(0,Ga),"\u2026")):t;if("object"===typeof t)try{const e=oe(t,7);return JSON.stringify(e).length>Ga?(n=!0,"".concat(JSON.stringify(e,null,2).slice(0,Ga),"\u2026")):e}catch(e){}return t});return Sl((0,h.A)((0,h.A)({},t),{},{data:(0,h.A)((0,h.A)({},t.data),{},{arguments:r},n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{})}))}(t);return Sl(t)}(e);n&&ll(t,n)}(t,e))}function fd(t){return!!t.category}function md(){const t=It().getPropagationContext().dsc;t&&delete t.replay_id;const e=Ue();if(e){delete Ge(e).replay_id}}function gd(t){return Object.assign((e,n)=>{if(!t.isEnabled()||t.isPaused())return e;if(function(t){return"replay_event"===t.type}(e))return delete e.breadcrumbs,e;if(!cd(e)&&!ud(e)&&!ld(e))return e;if(!t.checkAndHandleExpiredSession())return md(),e;if(ld(e))return t.flush(),e.contexts.feedback.replay_id=t.getSessionId(),function(t,e){t.triggerUserActivity(),t.addUpdate(()=>!e.timestamp||(t.throttledAddEvent({type:gu.Custom,timestamp:1e3*e.timestamp,data:{tag:"breadcrumb",payload:{timestamp:e.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:e.event_id}}}}),!1))}(t,e),e;if(function(t,e){return!(t.type||!t.exception||!t.exception.values||!t.exception.values.length)&&!(!e.originalException||!e.originalException.__rrweb__)}(e,n)&&!t.getOptions()._experiments.captureExceptions)return Bl&&zl.log("Ignoring error from rrweb internals",e),null;const r=function(t,e){return"buffer"===t.recordingMode&&e.message!==Wa&&!(!e.exception||e.type)&&$l(t.getOptions().errorSampleRate)}(t,e);return(r||"session"===t.recordingMode)&&(e.tags=(0,h.A)((0,h.A)({},e.tags),{},{replayId:t.getSessionId()})),e},{id:"Replay"})}function _d(t,e){return e.map(e=>{let{type:n,start:r,end:o,name:s,data:i}=e;const a=t.throttledAddEvent({type:gu.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:s,startTimestamp:r,endTimestamp:o,data:i}}});return"string"===typeof a?Promise.resolve(null):a})}function yd(t){return e=>{if(!t.isEnabled())return;const n=function(t){const{from:e,to:n}=t,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:e}}}(e);null!==n&&(t.getContext().urls.push(n.name),t.triggerUserActivity(),t.addUpdate(()=>(_d(t,[n]),!1)))}}function vd(t,e){t.isEnabled()&&null!==e&&(function(t,e){return(!Bl||!t.getOptions()._experiments.traceInternals)&&Ci(e,Lt())}(t,e.name)||t.addUpdate(()=>(_d(t,[e]),!0)))}function bd(t){if(!t)return;const e=new TextEncoder;try{if("string"===typeof t)return e.encode(t).length;if(t instanceof URLSearchParams)return e.encode(t.toString()).length;if(t instanceof FormData){const n=Td(t);return e.encode(n).length}if(t instanceof Blob)return t.size;if(t instanceof ArrayBuffer)return t.byteLength}catch(n){}}function Sd(t){if(!t)return;const e=parseInt(t,10);return isNaN(e)?void 0:e}function wd(t){try{if("string"===typeof t)return[t];if(t instanceof URLSearchParams)return[t.toString()];if(t instanceof FormData)return[Td(t)];if(!t)return[void 0]}catch(e){return Bl&&zl.exception(e,"Failed to serialize body",t),[void 0,"BODY_PARSE_ERROR"]}return Bl&&zl.info("Skipping network body because of body type",t),[void 0,"UNPARSEABLE_BODY_TYPE"]}function kd(t,e){if(!t)return{headers:{},size:void 0,_meta:{warnings:[e]}};const n=(0,h.A)({},t._meta),r=n.warnings||[];return n.warnings=[...r,e],t._meta=n,t}function Ed(t,e){if(!e)return null;const{startTimestamp:n,endTimestamp:r,url:o,method:s,statusCode:i,request:a,response:c}=e;return{type:t,start:n/1e3,end:r/1e3,name:o,data:Z({method:s,statusCode:i,request:a,response:c})}}function xd(t){return{headers:{},size:t,_meta:{warnings:["URL_SKIPPED"]}}}function Cd(t,e,n){if(!e&&0===Object.keys(t).length)return;if(!e)return{headers:t};if(!n)return{headers:t,size:e};const r={headers:t,size:e},{body:o,warnings:s}=function(t){if(!t||"string"!==typeof t)return{body:t};const e=t.length>Va,n=function(t){const e=t[0],n=t[t.length-1];return"["===e&&"]"===n||"{"===e&&"}"===n}(t);if(e){const e=t.slice(0,Va);return n?{body:e,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:"".concat(e,"\u2026"),warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(t)}}catch(r){}return{body:t}}(n);return r.body=o,s&&s.length>0&&(r._meta={warnings:s}),r}function Ad(t,e){return Object.entries(t).reduce((n,r)=>{let[o,s]=r;const i=o.toLowerCase();return e.includes(i)&&t[o]&&(n[i]=s),n},{})}function Td(t){return new URLSearchParams(t).toString()}function Id(t,e){const n=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ha.document.baseURI;if(t.startsWith("http://")||t.startsWith("https://")||t.startsWith(Ha.location.origin))return t;const n=new URL(t,e);if(n.origin!==new URL(e).origin)return t;const r=n.href;if(!t.endsWith("/")&&r.endsWith("/"))return r.slice(0,-1);return r}(t);return q(n,e)}async function Md(t,e,n){try{const r=await async function(t,e,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:s=r}=e,{url:i,method:a,status_code:c=0,request_body_size:u,response_body_size:l}=t.data,d=Id(i,n.networkDetailAllowUrls)&&!Id(i,n.networkDetailDenyUrls),p=d?function(t,e,n){let{networkCaptureBodies:r,networkRequestHeaders:o}=t;const s=e?function(t,e){if(1===t.length&&"string"!==typeof t[0])return Dd(t[0],e);if(2===t.length)return Dd(t[1],e);return{}}(e,o):{};if(!r)return Cd(s,n,void 0);const i=Rd(e),[a,c]=wd(i),u=Cd(s,n,a);if(c)return kd(u,c);return u}(n,e.input,u):xd(u),h=await async function(t,e,n,r){let{networkCaptureBodies:o,networkResponseHeaders:s}=e;if(!t&&void 0!==r)return xd(r);const i=n?Od(n.headers,s):{};if(!n||!o&&void 0!==r)return Cd(i,r,void 0);const[a,c]=await async function(t){const e=function(t){try{return t.clone()}catch(e){Bl&&zl.exception(e,"Failed to clone response body")}}(t);if(!e)return[void 0,"BODY_PARSE_ERROR"];
1try{const t=await function(t){return new Promise((e,n)=>{const r=ls(()=>n(new Error("Timeout while trying to read response body")),500);(async function(t){return await t.text()})(t).then(t=>e(t),t=>n(t)).finally(()=>clearTimeout(r))})}(e);return[t]}catch(n){return n instanceof Error&&n.message.indexOf("Timeout")>-1?(Bl&&zl.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(Bl&&zl.exception(n,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}(n),u=function(t,e){let{networkCaptureBodies:n,responseBodySize:r,captureDetails:o,headers:s}=e;try{const e=t&&t.length&&void 0===r?bd(t):r;return o?Cd(s,e,n?t:void 0):xd(e)}catch(i){return Bl&&zl.exception(i,"Failed to serialize response body"),Cd(s,r,void 0)}}(a,{networkCaptureBodies:o,responseBodySize:r,captureDetails:t,headers:i});if(c)return kd(u,c);return u}(d,n,e.response,l);return{startTimestamp:o,endTimestamp:s,url:i,method:a,statusCode:c,request:p,response:h}}(t,e,n),o=Ed("resource.fetch",r);vd(n.replay,o)}catch(r){Bl&&zl.exception(r,"Failed to capture fetch breadcrumb")}}function Rd(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(2===t.length&&"object"===typeof t[1])return t[1].body}function Od(t,e){const n={};return e.forEach(e=>{t.get(e)&&(n[e]=t.get(e))}),n}function Dd(t,e){if(!t)return{};const n=t.headers;return n?n instanceof Headers?Od(n,e):Array.isArray(n)?{}:Ad(n,e):{}}async function Ld(t,e,n){try{const r=function(t,e,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:s=r,input:i,xhr:a}=e,{url:c,method:u,status_code:l=0,request_body_size:d,response_body_size:p}=t.data;if(!c)return null;if(!a||!Id(c,n.networkDetailAllowUrls)||Id(c,n.networkDetailDenyUrls)){return{startTimestamp:o,endTimestamp:s,url:c,method:u,statusCode:l,request:xd(d),response:xd(p)}}const h=a[Ns],f=h?Ad(h.request_headers,n.networkRequestHeaders):{},m=Ad(function(t){const e=t.getAllResponseHeaders();if(!e)return{};return e.split("\r\n").reduce((t,e)=>{const[n,r]=e.split(": ");return r&&(t[n.toLowerCase()]=r),t},{})}(a),n.networkResponseHeaders),[g,_]=n.networkCaptureBodies?wd(i):[void 0],[y,v]=n.networkCaptureBodies?function(t){const e=[];try{return[t.responseText]}catch(n){e.push(n)}try{return function(t,e){try{if("string"===typeof t)return[t];if(t instanceof Document)return[t.body.outerHTML];if("json"===e&&t&&"object"===typeof t)return[JSON.stringify(t)];if(!t)return[void 0]}catch(n){return Bl&&zl.exception(n,"Failed to serialize body",t),[void 0,"BODY_PARSE_ERROR"]}return Bl&&zl.info("Skipping network body because of body type",t),[void 0,"UNPARSEABLE_BODY_TYPE"]}(t.response,t.responseType)}catch(n){e.push(n)}return Bl&&zl.warn("Failed to get xhr response body",...e),[void 0]}(a):[void 0],b=Cd(f,d,g),S=Cd(m,p,y);return{startTimestamp:o,endTimestamp:s,url:c,method:u,statusCode:l,request:_?kd(b,_):b,response:v?kd(S,v):S}}(t,e,n),o=Ed("resource.xhr",r);vd(n.replay,o)}catch(r){Bl&&zl.exception(r,"Failed to capture xhr breadcrumb")}}function Nd(t,e){const{xhr:n,input:r}=e;if(!n)return;const o=bd(r),s=n.getResponseHeader("content-length")?Sd(n.getResponseHeader("content-length")):function(t,e){try{return bd("json"===e&&t&&"object"===typeof t?JSON.stringify(t):t)}catch(n){return}}(n.response,n.responseType);void 0!==o&&(t.data.request_body_size=o),void 0!==s&&(t.data.response_body_size=s)}function Pd(t){const e=Lt();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:s,networkResponseHeaders:i}=t.getOptions(),a={replay:t,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:s,networkResponseHeaders:i};e&&e.on("beforeAddBreadcrumb",(t,e)=>function(t,e,n){if(!e.data)return;try{(function(t){return"xhr"===t.category})(e)&&function(t){return t&&t.xhr}(n)&&(Nd(e,n),Ld(e,n,t)),function(t){return"fetch"===t.category}(e)&&function(t){return t&&t.response}(n)&&(!function(t,e){const{input:n,response:r}=e,o=bd(n?Rd(n):void 0),s=r?Sd(r.headers.get("content-length")):void 0;void 0!==o&&(t.data.request_body_size=o),void 0!==s&&(t.data.response_body_size=s)}(e,n),Md(e,n,t))}catch(r){Bl&&zl.exception(r,"Error when enriching network breadcrumb")}}(a,t,e))}catch(n){}}function Fd(t){const{jsHeapSizeLimit:e,totalJSHeapSize:n,usedJSHeapSize:r}=t,o=Date.now()/1e3;return{type:"memory",name:"memory",start:o,end:o,data:{memory:{jsHeapSizeLimit:e,totalJSHeapSize:n,usedJSHeapSize:r}}}}const Bd=A.navigator;function Ud(t){let e=!1;return(n,r)=>{if(!t.checkAndHandleExpiredSession())return void(Bl&&zl.warn("Received replay event after session expired."));const o=r||!e;e=!0,t.clickDetector&&bl(t.clickDetector,n),t.addUpdate(()=>{if("buffer"===t.recordingMode&&o&&t.setInitialState(),!sd(t,n,o))return!0;
1if(!o)return!1;const e=t.session;if(function(t,e){if(!e||!t.session||0!==t.session.segmentId)return;sd(t,function(t){const e=t.getOptions();return{type:gu.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:t.isRecordingCanvas(),sessionSampleRate:e.sessionSampleRate,errorSampleRate:e.errorSampleRate,useCompressionOption:e.useCompression,blockAllMedia:e.blockAllMedia,maskAllText:e.maskAllText,maskAllInputs:e.maskAllInputs,useCompression:!!t.eventBuffer&&"worker"===t.eventBuffer.type,networkDetailHasUrls:e.networkDetailAllowUrls.length>0,networkCaptureBodies:e.networkCaptureBodies,networkRequestHasHeaders:e.networkRequestHeaders.length>0,networkResponseHasHeaders:e.networkResponseHeaders.length>0}}}}(t),!1)}(t,o),"buffer"===t.recordingMode&&e&&t.eventBuffer){const n=t.eventBuffer.getEarliestTimestamp();n&&(Bl&&zl.info("Updating session start time to earliest event in buffer to ".concat(new Date(n))),e.started=n,t.getOptions().stickySession&&Ql(e))}return e&&e.previousSessionId||"session"===t.recordingMode&&t.flush(),!0})}}async function jd(t){let{recordingData:e,replayId:n,segmentId:r,eventContext:o,timestamp:s,session:i}=t;const a=function(t){let e,{recordingData:n,headers:r}=t;const o="".concat(JSON.stringify(r),"\n");if("string"===typeof n)e="".concat(o).concat(n);else{const t=(new TextEncoder).encode(o);e=new Uint8Array(t.length+n.length),e.set(t),e.set(n,t.length)}return e}({recordingData:e,headers:{segment_id:r}}),{urls:c,errorIds:u,traceIds:l,initialTimestamp:d}=o,p=Lt(),f=It(),m=p&&p.getTransport(),g=p&&p.getDsn();if(!p||!m||!g||!i.sampled)return Ht({});const _={type:"replay_event",replay_start_timestamp:d/1e3,timestamp:s/1e3,error_ids:u,trace_ids:l,urls:c,replay_id:n,segment_id:r,replay_type:i.sampled},y=await async function(t){let{client:e,scope:n,replayId:r,event:o}=t;const s={event_id:r,integrations:"object"!==typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit("preprocessEvent",o,s);const i=await Ze(e.getOptions(),o,s,n,e,Mt());if(!i)return null;i.platform=i.platform||"javascript";const a=e.getSdkMetadata(),{name:c,version:u}=a&&a.sdk||{};return i.sdk=(0,h.A)((0,h.A)({},i.sdk),{},{name:c||"sentry.javascript.unknown",version:u||"0.0.0"}),i}({scope:f,client:p,replayId:n,event:_});if(!y)return p.recordDroppedEvent("event_processor","replay",_),Bl&&zl.info("An event processor returned `null`, will not send event."),Ht({});delete y.sdkProcessingMetadata;const v=function(t,e,n,r){return Qn(dr(t,lr(t),r,n),[[{type:"replay_event"},t],[{type:"replay_recording",length:"string"===typeof e?(new TextEncoder).encode(e).length:e.length},e]])}(y,a,g,p.getOptions().tunnel);let b;try{b=await m.send(v)}catch(j_){const e=new Error(Wa);try{e.cause=j_}catch(w){}throw e}if("number"===typeof b.statusCode&&(b.statusCode<200||b.statusCode>=300))throw new Hd(b.statusCode);const S=Ur({},b);if(Br(S,"replay"))throw new zd(S);return b}class Hd extends Error{constructor(t){super("Transport returned status code ".concat(t))}}class zd extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}async function Wd(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{count:0,interval:5e3};const{recordingData:n,onError:r}=t;if(n.length)try{return await jd(t),!0}catch(j_){if(j_ instanceof Hd||j_ instanceof zd)throw j_;if(on("Replays",{_retryCount:e.count}),r&&r(j_),e.count>=3){const t=new Error("".concat(Wa," - max retries exceeded"));try{t.cause=j_}catch(o){}throw t}return e.interval*=++e.count,new Promise((r,o)=>{ls(async()=>{try{await Wd(t,e),r(!0)}catch(n){o(n)}},e.interval)})}}const qd="__THROTTLED";function Yd(t,e,n){const r=new Map;let o=!1;return function(){const s=Math.floor(Date.now()/1e3);if((t=>{const e=t-n;r.forEach((t,n)=>{n<e&&r.delete(n)})})(s),[...r.values()].reduce((t,e)=>t+e,0)>=e){const t=o;return o=!0,t?"__SKIPPED":qd}o=!1;const i=r.get(s)||0;return r.set(s,i+1),t(...arguments)}}class Vd{constructor(t){let{options:e,recordingOptions:n}=t;Vd.prototype.__init.call(this),Vd.prototype.__init2.call(this),Vd.prototype.__init3.call(this),Vd.prototype.__init4.call(this),Vd.prototype.__init5.call(this),Vd.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=n,this._options=e,this._debouncedFlush=function(t,e,n){let r,o,s;const i=n&&n.maxWait?Math.max(n.maxWait,e):0;function a(){return c(),r=t(),r}function c(){void 0!==o&&clearTimeout(o),void 0!==s&&clearTimeout(s),o=s=void 0}function u(){return o&&clearTimeout(o),o=ls(a,e),i&&void 0===s&&(s=ls(a,i)),r}return u.cancel=c,u.flush=function(){return void 0!==o||void 0!==s?a():r},u}(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=Yd((t,e)=>function(t,e,n){return ad(t,e)?id(t,e,n):Promise.resolve(null)}(this,t,e),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:o}=this.getOptions(),s=r?{threshold:Math.min(3e3,r),timeout:r,scrollTimeout:300,ignoreSelector:o?o.join(","):""}:void 0;if(s&&(this.clickDetector=new _l(this,s)),Bl){const t=e._experiments;zl.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(t){Bl&&zl.exception(t),this._options.onError&&this._options.onError(t)}initializeSampling(t){const{errorSampleRate:e,sessionSampleRate:n}=this._options,r=e<=0&&n<=0;this._requiresManualStart=r,r||(this._initializeSessionForSampling(t),this.session?!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",Bl&&zl.infoTick("Starting replay in ".concat(this.recordingMode," mode")),this._initializeRecording()):Bl&&zl.exception(new Error("Unable to initialize and create session")))}
1start(){if(this._isEnabled&&"session"===this.recordingMode)return void(Bl&&zl.info("Recording is already in progress"));if(this._isEnabled&&"buffer"===this.recordingMode)return void(Bl&&zl.info("Buffering is in progress, call `flush()` to save the replay"));Bl&&zl.infoTick("Starting replay in session mode"),this._updateUserActivity();const t=od({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this._initializeRecording()}startBuffering(){if(this._isEnabled)return void(Bl&&zl.info("Buffering is in progress, call `flush()` to save the replay"));Bl&&zl.infoTick("Starting replay in buffer mode");const t=od({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const t=this._canvas;this._stopRecording=al((0,h.A)((0,h.A)((0,h.A)((0,h.A)({},this._recordingOptions),"buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)}),{},{emit:Ud(this)},/iPhone|iPad|iPod/i.test(Bd&&Bd.userAgent||"")||/Macintosh/i.test(Bd&&Bd.userAgent||"")&&Bd&&Bd.maxTouchPoints&&Bd.maxTouchPoints>1?{sampling:{mousemove:!1}}:{}),{},{onMutation:this._onMutationHandler},t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}))}catch(j_){this.handleException(j_)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(j_){return this.handleException(j_),!1}}async stop(){let{forceFlush:t=!1,reason:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this._isEnabled){this._isEnabled=!1;try{Bl&&zl.info("Stopping Replay".concat(e?" triggered by ".concat(e):"")),md(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,Kl(this)}catch(j_){this.handleException(j_)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),Bl&&zl.info("Pausing replay"))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),Bl&&zl.info("Resuming replay"))}async sendBufferedReplayOrFlush(){let{continueRecording:t=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("session"===this.recordingMode)return this.flushImmediate();const e=Date.now();Bl&&zl.info("Converting buffer to session"),await this.flushImmediate();const n=this.stopRecording();t&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(e),this._updateSessionActivity(e),this._maybeSaveSession()),this.startRecording())}addUpdate(t){const e=t();"buffer"!==this.recordingMode&&!0!==e&&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}checkAndHandleExpiredSession(){if(!(this._lastActivity&&ed(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const t="".concat(Ha.location.pathname).concat(Ha.location.hash).concat(Ha.location.search),e="".concat(Ha.location.origin).concat(t);this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.
1initialUrl=e,this._context.initialTimestamp=Date.now(),this._context.urls.push(e)}throttledAddEvent(t,e){const n=this._throttledAddEvent(t,e);if(n===qd){const t=Sl({category:"replay.throttled"});this.addUpdate(()=>!sd(this,{type:5,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t,metric:!0}}))}return n}getCurrentRoute(){const t=this.lastActiveSpan||Ue(),e=t&&Be(t),n=(e&&Re(e).data||{})[o];if(e&&n&&["route","custom"].includes(n))return Re(e).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=Xl({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(t){const e=this._options.errorSampleRate>0,n=od({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:e});this.session=n}_checkSession(){if(!this.session)return!1;const t=this.session;return!rd(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(t),!1)}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(t.id))}_addListeners(){try{Ha.document.addEventListener("visibilitychange",this._handleVisibilityChange),Ha.addEventListener("blur",this._handleWindowBlur),Ha.addEventListener("focus",this._handleWindowFocus),Ha.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(!function(t){const e=Lt();Os(xl(t)),js(yd(t)),hd(t),Pd(t),mn(gd(t)),e&&(e.on("beforeSendEvent",pd(t)),e.on("afterSendEvent",dd(t)),e.on("createDsc",e=>{const n=t.getSessionId();n&&t.isEnabled()&&"session"===t.recordingMode&&t.checkAndHandleExpiredSession()&&(e.replay_id=n)}),e.on("spanStart",e=>{t.lastActiveSpan=e}),e.on("spanEnd",e=>{t.lastActiveSpan=e}),e.on("beforeSendFeedback",(e,n)=>{const r=t.getSessionId();n&&n.includeReplay&&t.isEnabled()&&r&&e.contexts&&e.contexts.feedback&&(e.contexts.feedback.replay_id=r)}))}(this),this._hasInitializedCoreListeners=!0)}catch(j_){this.handleException(j_)}this._performanceCleanupCallback=function(t){function e(e){t.performanceEntries.includes(e)||t.performanceEntries.push(e)}function n(t){let{entries:n}=t;n.forEach(e)}const r=[];return["navigation","paint","resource"].forEach(t=>{r.push(Ra(t,n))}),r.push(Ta(Il(Ol,t)),Aa(Il(Ll,t)),Ia(Il(Nl,t)),Ma(Il(Pl,t))),()=>{r.forEach(t=>t())}}(this)}_removeListeners(){try{Ha.document.removeEventListener("visibilitychange",this._handleVisibilityChange),Ha.removeEventListener("blur",this._handleWindowBlur),Ha.removeEventListener("focus",this._handleWindowFocus),Ha.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(j_){this.handleException(j_)}}__init(){this._handleVisibilityChange=()=>{"visible"===Ha.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const t=Sl({category:"ui.blur"});this._doChangeToBackgroundTasks(t)}}__init3(){this._handleWindowFocus=()=>{const t=Sl({category:"ui.focus"});this._doChangeToForegroundTasks(t)}}__init4(){this._handleKeyboardEvent=t=>{Al(this,t)}}_doChangeToBackgroundTasks(t){if(!this.session)return;nd(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(t&&this._createCustomBreadcrumb(t),this.conditionalFlush())}_doChangeToForegroundTasks(t){if(!this.session)return;this.checkAndHandleExpiredSession()?t&&this._createCustomBreadcrumb(t):Bl&&zl.info("Document has become active, but session has expired")}_updateUserActivity(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();this._lastActivity=t}_updateSessionActivity(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:gu.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}}
1)})}_addPerformanceEntries(){let t=(e=this.performanceEntries,e.map(Ml).filter(Boolean)).concat(this.replayPerformanceEntries);var e;if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const e=this._context.initialTimestamp/1e3;t=t.filter(t=>t.start>=e)}return Promise.all(_d(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:e}=this;if(!t||!e||this._requiresManualStart)return;if(t.segmentId)return;const n=e.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){const t={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(),t}async _runFlush(){const t=this.getSessionId();if(this.session&&this.eventBuffer&&t){if(await this._addPerformanceEntries(),this.eventBuffer&&this.eventBuffer.hasEvents&&(await async function(t){try{return Promise.all(_d(t,[Fd(Ha.performance.memory)]))}catch(e){return[]}}(this),this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const e=Date.now();if(e-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 Wd({replayId:t,recordingData:o,segmentId:r,eventContext:n,session:this.session,timestamp:e,onError:t=>this.handleException(t)})}catch(j_){this.handleException(j_),this.stop({reason:"sendReplay"});const e=Lt();if(e){const n=j_ instanceof zd?"ratelimit_backoff":"send_error";e.recordDroppedEvent(n,"replay")}}}else Bl&&zl.error("No session or eventBuffer found to flush.")}__init5(){var t=this;this._flush=async function(){let{force:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!t._isEnabled&&!e)return;if(!t.checkAndHandleExpiredSession())return void(Bl&&zl.error("Attempting to finish replay event after session expired."));if(!t.session)return;const n=t.session.started,r=Date.now()-n;t._debouncedFlush.cancel();const o=r<t._options.minReplayDuration,s=r>t._options.maxReplayDuration+5e3;if(o||s)return Bl&&zl.info("Session duration (".concat(Math.floor(r/1e3),"s) is too ").concat(o?"short":"long",", not sending replay.")),void(o&&t._debouncedFlush());const i=t.eventBuffer;i&&0===t.session.segmentId&&!i.hasCheckout&&Bl&&zl.info("Flushing initial segment without checkout.");const a=!!t._flushLock;t._flushLock||(t._flushLock=t._runFlush());try{await t._flushLock}catch(j_){t.handleException(j_)}finally{t._flushLock=void 0,a&&t._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&Ql(this.session)}__init6(){this._onMutationHandler=t=>{const e=t.length,n=this._options.mutationLimit,r=n&&e>n;if(e>this._options.mutationBreadcrumbLimit||r){const t=Sl({category:"replay.mutations",data:{count:e,limit:r}});this._createCustomBreadcrumb(t)}return!r||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function Gd(t,e){return[...t,...e].join(",")}const Xd='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',Jd=["content-length","content-type","accept"];let Kd=!1;const $d=t=>new Zd(t);class Zd{static __initStatic(){this.id="Replay"}constructor(){let{flushMinDelay:t=qa,flushMaxDelay:e=Ya,minReplayDuration:n=Ja,maxReplayDuration:r=Ka,stickySession:o=!0,useCompression:s=!0,workerUrl:i,_experiments:a={},maskAllText:c=!0,maskAllInputs:u=!0,blockAllMedia:l=!0,mutationBreadcrumbLimit:d=750,mutationLimit:p=1e4,slowClickTimeout:f=7e3,slowClickIgnoreSelectors:m=[],networkDetailAllowUrls:g=[],networkDetailDenyUrls:_=[],networkCaptureBodies:y=!0,networkRequestHeaders:v=[],networkResponseHeaders:b=[],mask:S=[],maskAttributes:w=["title","placeholder"],unmask:k=[],block:E=[],unblock:x=[],ignore:C=[],maskFn:A,beforeAddRecordingEvent:T,beforeErrorSampling:I,onError:M}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.name=Zd.id;const R=function(t){let{mask:e,unmask:n,block:r,unblock:o,ignore:s}=t;return{maskTextSelector:Gd(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:Gd(n,[]),blockSelector:Gd(r,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not
1([src])"]),unblockSelector:Gd(o,[]),ignoreSelector:Gd(s,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:S,unmask:k,block:E,unblock:x,ignore:C});if(this._recordingOptions=(0,h.A)((0,h.A)({maskAllInputs:u,maskAllText:c,maskInputOptions:{password:!0},maskTextFn:A,maskInputFn:A,maskAttributeFn:(t,e,n)=>function(t){let{el:e,key:n,maskAttributes:r,maskAllText:o,privacyOptions:s,value:i}=t;return o?s.unmaskTextSelector&&e.matches(s.unmaskTextSelector)?i:r.includes(n)||"value"===n&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?i.replace(/[\S]/g,"*"):i:i}({maskAttributes:w,maskAllText:c,privacyOptions:R,key:t,value:e,el:n})},R),{},{slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:t=>{try{t.__rrweb__=!0}catch(e){}}}),this._initialOptions={flushMinDelay:t,flushMaxDelay:e,minReplayDuration:Math.min(n,15e3),maxReplayDuration:Math.min(r,Ka),stickySession:o,useCompression:s,workerUrl:i,blockAllMedia:l,maskAllInputs:u,maskAllText:c,mutationBreadcrumbLimit:d,mutationLimit:p,slowClickTimeout:f,slowClickIgnoreSelectors:m,networkDetailAllowUrls:g,networkDetailDenyUrls:_,networkCaptureBodies:y,networkRequestHeaders:Qd(v),networkResponseHeaders:Qd(b),beforeAddRecordingEvent:T,beforeErrorSampling:I,onError:M,_experiments:a},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?"".concat(this._recordingOptions.blockSelector,",").concat(Xd):Xd),this._isInitialized&&Ui())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Kd}set _isInitialized(t){Kd=t}afterAllSetup(t){Ui()&&!this._replay&&(this._setup(t),this._initialize(t))}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(t){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):(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(t){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(t),this._replay.initializeSampling())}_setup(t){const e=function(t,e){const n=e.getOptions(),r=(0,h.A)({sessionSampleRate:0,errorSampleRate:0},Z(t)),o=Vn(n.replaysSessionSampleRate),s=Vn(n.replaysOnErrorSampleRate);null==o&&null==s&&B(()=>{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,t);this._replay=new Vd({options:e,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{const e=t.getIntegrationByName("ReplayCanvas");if(!e)return;this._replay._canvas=e.getOptions()}catch(e){}}}function Qd(t){return[...Jd,...t.map(t=>t.toLowerCase())]}function tp(){const t=Lt();return t&&t.getIntegrationByName("Replay")}Zd.__initStatic();var ep=n(45);const np=["type"];var rp;function op(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return t?t.nodeType!==t.ELEMENT_NODE||r>n?-1:e(t)?r:op(t.parentNode,e,n,r+1):-1}function sp(t,e){return n=>{const r=n;if(null===r)return!1;try{if(t)if("string"===typeof t){if(r.matches(".".concat(t)))return!0}else if(function(t,e){for(let n=t.classList.length;n--;){const r=t.classList[n];if(e.test(r))return!0}return!1}(r,t))return!0;return!(!e||!r.matches(e))}catch(o){return!1}}}!function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"}(rp||(rp={}));const ip="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 ap={map:{},getId:()=>(console.error(ip),-1),getNode:()=>(console.error(ip),null),removeNodeFromMap(){console.error(ip)},has:()=>(console.error(ip),!1),reset(){console.error(ip)}};function cp(t,e,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:window;const s=o.Object.getOwnPropertyDescriptor(t,e);return o.Object.defineProperty(t,e,r?n:{set(t){fp(()=>{n.set.call(this,t)},0),s&&s.set&&s.set.call(this,t)}}),()=>cp(t,e,s||{},!0)}function up(t,e,n){try{if(!(e in t))return()=>{};const r=t[e],o=n(r);return"function"===typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),t[e]=o,()=>{t[e]=r}}catch(r){return()=>{}}}function lp(t,e,n,r,o){if(!t)return!1;const s=function(t){return t?t.nodeType===t.ELEMENT_NODE?t:t.parentElement:null}(t);if(!s)return!1;
1const i=op(s,sp(e,n));let a=-1;return!(i<0)&&(r&&(a=op(s,sp(null,r))),i>-1&&a<0||i<a)}"undefined"!==typeof window&&window.Proxy&&window.Reflect&&(ap=new Proxy(ap,{get:(t,e,n)=>("map"===e&&console.error(ip),Reflect.get(t,e,n))})),/[1-9][0-9]{12}/.test(Date.now().toString());const dp={};function pp(t){const e=dp[t];if(e)return e;const n=window.document;let r=window[t];if(n&&"function"===typeof n.createElement)try{const e=n.createElement("iframe");e.hidden=!0,n.head.appendChild(e);const o=e.contentWindow;o&&o[t]&&(r=o[t]),n.head.removeChild(e)}catch(o){}return dp[t]=r.bind(window)}function hp(){return pp("requestAnimationFrame")(...arguments)}function fp(){return pp("setTimeout")(...arguments)}var mp=(t=>(t[t["2D"]=0]="2D",t[t.WebGL=1]="WebGL",t[t.WebGL2=2]="WebGL2",t))(mp||{});let gp;const _p=t=>{if(!gp)return t;return function(){try{return t(...arguments)}catch(e){if(gp&&!0===gp(e))return()=>{};throw e}}};for(var yp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",vp="undefined"===typeof Uint8Array?[]:new Uint8Array(256),bp=0;bp<64;bp++)vp[yp.charCodeAt(bp)]=bp;const Sp=new Map;const wp=(t,e,n)=>{if(!t||!xp(t,e)&&"object"!==typeof t)return;const r=function(t,e){let n=Sp.get(t);return n||(n=new Map,Sp.set(t,n)),n.has(e)||n.set(e,[]),n.get(e)}(n,t.constructor.name);let o=r.indexOf(t);return-1===o&&(o=r.length,r.push(t)),o};function kp(t,e,n){if(t instanceof Array)return t.map(t=>kp(t,e,n));if(null===t)return t;if(t instanceof Float32Array||t instanceof Float64Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray){return{rr_type:t.constructor.name,args:[Object.values(t)]}}if(t instanceof ArrayBuffer){const e=t.constructor.name,n=function(t){var e,n=new Uint8Array(t),r=n.length,o="";for(e=0;e<r;e+=3)o+=yp[n[e]>>2],o+=yp[(3&n[e])<<4|n[e+1]>>4],o+=yp[(15&n[e+1])<<2|n[e+2]>>6],o+=yp[63&n[e+2]];return r%3===2?o=o.substring(0,o.length-1)+"=":r%3===1&&(o=o.substring(0,o.length-2)+"=="),o}(t);return{rr_type:e,base64:n}}if(t instanceof DataView){return{rr_type:t.constructor.name,args:[kp(t.buffer,e,n),t.byteOffset,t.byteLength]}}if(t instanceof HTMLImageElement){const e=t.constructor.name,{src:n}=t;return{rr_type:e,src:n}}if(t instanceof HTMLCanvasElement){return{rr_type:"HTMLImageElement",src:t.toDataURL()}}if(t instanceof ImageData){return{rr_type:t.constructor.name,args:[kp(t.data,e,n),t.width,t.height]}}if(xp(t,e)||"object"===typeof t){return{rr_type:t.constructor.name,index:wp(t,e,n)}}return t}const Ep=(t,e,n)=>t.map(t=>kp(t,e,n)),xp=(t,e)=>{const n=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(t=>"function"===typeof e[t]);return Boolean(n.find(n=>t instanceof e[n]))};function Cp(t,e,n,r,o){const s=[];try{const i=up(t.HTMLCanvasElement.prototype,"getContext",function(t){return function(s){for(var i=arguments.length,a=new Array(i>1?i-1:0),c=1;c<i;c++)a[c-1]=arguments[c];if(!lp(this,e,n,r)){const t=function(t){return"experimental-webgl"===t?"webgl":t}(s);if("__context"in this||(this.__context=t),o&&["webgl","webgl2"].includes(t))if(a[0]&&"object"===typeof a[0]){const t=a[0];t.preserveDrawingBuffer||(t.preserveDrawingBuffer=!0)}else a.splice(0,1,{preserveDrawingBuffer:!0})}return t.apply(this,[s,...a])}});s.push(i)}catch(i){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{s.forEach(t=>t())}}function Ap(t,e,n,r,o,s,i,a){const c=[],u=Object.getOwnPropertyNames(t);for(const d of u)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(d))try{if("function"!==typeof t[d])continue;const i=up(t,d,function(t){return function(){for(var i=arguments.length,c=new Array(i),u=0;u<i;u++)c[u]=arguments[u];const l=t.apply(this,c);if(wp(l,a,this),"tagName"in this.canvas&&!lp(this.canvas,r,o,s)){const t=Ep(c,a,this),r={type:e,property:d,args:t};n(this.canvas,r)}return l}});c.push(i)}catch(l){const r=cp(t,d,{set(t){n(this.canvas,{type:e,property:d,args:[t],setter:!0})}});c.push(r)}return c}class Tp{reset(){this.pendingCanvasMutations.clear(),this.restoreHandlers.forEac
1h(t=>{try{t()}catch(e){}}),this.restoreHandlers=[],this.windowsSet=new WeakSet,this.windows=[],this.shadowDoms=new Set,Fi([this,"access",t=>t.worker,"optionalAccess",t=>t.terminate,"call",t=>t()]),this.worker=null,this.snapshotInProgressMap=new Map}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(t){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.shadowDoms=new Set,this.windowsSet=new WeakSet,this.windows=[],this.restoreHandlers=[],this.frozen=!1,this.locked=!1,this.snapshotInProgressMap=new Map,this.worker=null,this.processMutation=(t,e)=>{!(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(t)||this.pendingCanvasMutations.set(t,[]),this.pendingCanvasMutations.get(t).push(e)};const{sampling:e="all",win:n,blockClass:r,blockSelector:o,unblockSelector:s,maxCanvasSize:i,recordCanvas:a,dataURLOptions:c,errorHandler:u}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,this.options=t,u&&(gp=u),(a&&"number"===typeof e||t.enableManualSnapshot)&&(this.worker=this.initFPSWorker()),this.addWindow(n),t.enableManualSnapshot||_p(()=>{a&&"all"===e&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),a&&"number"===typeof e&&this.initCanvasFPSObserver(e,r,o,s,i,{dataURLOptions:c})})()}addWindow(t){const{sampling:e="all",blockClass:n,blockSelector:r,unblockSelector:o,recordCanvas:s,enableManualSnapshot:i}=this.options;if(!this.windowsSet.has(t)){if(i)return this.windowsSet.add(t),void this.windows.push(new WeakRef(t));_p(()=>{if(s&&"all"===e&&this.initCanvasMutationObserver(t,n,r,o),s&&"number"===typeof e){const e=Cp(t,n,r,o,!0);this.restoreHandlers.push(()=>{e()})}})(),this.windowsSet.add(t),this.windows.push(new WeakRef(t))}}addShadowRoot(t){this.shadowDoms.add(new WeakRef(t))}resetShadowRoots(){this.shadowDoms=new Set}initFPSWorker(){const t=new Worker(function(){const t=new Blob(['for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a<r;a+=3)s+=e[n[a]>>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};']);return URL.createObjectURL(t)}());return t.onmessage=t=>{const e=t.data,{id:n}=e;if(this.snapshotInProgressMap.set(n,!1),!("base64"in e))return;const{base64:r,type:o,width:s,height:i}=e;this.mutationCb({id:n,type:mp["2D"],commands:[{property:"clearRect",args:[0,0,s,i]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:r}],type:o}]},0,0,s,i]}]})},t}initCanvasFPSObserver(t,e,n,r,o,s){const i=this.takeSnapshot(!1,t,e,n,r,o,s.dataURLOptions);this.restoreHandlers.push(()=>{cancelAnimationFrame(i)})}initCanvasMutationObserver(t,e,n,r){const o=Cp(t,e,n,r,!1),s=function(t,e,n,r,o){const s=[],i=Object.getOwnPropertyNames(e.CanvasRenderingContext2D.prototype);
1for(const c of i)try{if("function"!==typeof e.CanvasRenderingContext2D.prototype[c])continue;const i=up(e.CanvasRenderingContext2D.prototype,c,function(s){return function(){for(var i=arguments.length,a=new Array(i),u=0;u<i;u++)a[u]=arguments[u];return lp(this.canvas,n,r,o)||fp(()=>{const n=Ep(a,e,this);t(this.canvas,{type:mp["2D"],property:c,args:n})},0),s.apply(this,a)}});s.push(i)}catch(a){const n=cp(e.CanvasRenderingContext2D.prototype,c,{set(e){t(this.canvas,{type:mp["2D"],property:c,args:[e],setter:!0})}});s.push(n)}return()=>{s.forEach(t=>t())}}(this.processMutation.bind(this),t,e,n,r),i=function(t,e,n,r,o){const s=[];return s.push(...Ap(e.WebGLRenderingContext.prototype,mp.WebGL,t,n,r,o,0,e)),"undefined"!==typeof e.WebGL2RenderingContext&&s.push(...Ap(e.WebGL2RenderingContext.prototype,mp.WebGL2,t,n,r,o,0,e)),()=>{s.forEach(t=>t())}}(this.processMutation.bind(this),t,e,n,r,this.mirror);this.restoreHandlers.push(()=>{o(),s(),i()})}snapshot(t){const{options:e}=this,n=this.takeSnapshot(!0,"all"===e.sampling?2:e.sampling||2,e.blockClass,e.blockSelector,e.unblockSelector,e.maxCanvasSize,e.dataURLOptions,t);this.restoreHandlers.push(()=>{cancelAnimationFrame(n)})}takeSnapshot(t,e,n,r,o,s,i,a){const c=1e3/e;let u,l=0;const d=t=>{if(t)return[t];const e=[],s=t=>{t.querySelectorAll("canvas").forEach(t=>{lp(t,n,r,o)||e.push(t)})};for(const n of this.windows){const t=n.deref();t&&s(t.document)}for(const n of this.shadowDoms){const t=n.deref();t&&s(t)}return e},p=e=>{this.windows.length&&(l&&e-l<c?u=hp(p):(l=e,d(a).forEach(e=>{if(!this.mirror.hasNode(e))return;const n=this.mirror.getId(e);if(!this.snapshotInProgressMap.get(n)&&e.width&&e.height){if(this.snapshotInProgressMap.set(n,!0),!t&&["webgl","webgl2"].includes(e.__context)){const t=e.getContext(e.__context);!1===Fi([t,"optionalAccess",t=>t.getContextAttributes,"call",t=>t(),"optionalAccess",t=>t.preserveDrawingBuffer])&&t.clear(t.COLOR_BUFFER_BIT)}createImageBitmap(e).then(t=>{Fi([this,"access",t=>t.worker,"optionalAccess",t=>t.postMessage,"call",r=>r({id:n,bitmap:t,width:e.width,height:e.height,dataURLOptions:i,maxCanvasSize:s},[t])])}).catch(t=>{_p(()=>{throw t})()})}}),t||(u=hp(p))))};return u=hp(p),u}startPendingCanvasMutationFlusher(){hp(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=e=>{this.rafStamps.latestId=e,hp(t)};hp(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,e)=>{const n=this.mirror.getId(e);this.flushPendingCanvasMutationFor(e,n)}),hp(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,e){if(this.frozen||this.locked)return;const n=this.pendingCanvasMutations.get(t);if(!n||-1===e)return;const r=n.map(t=>{const{type:e}=t;return(0,ep.A)(t,np)}),{type:o}=n[0];this.mutationCb({id:e,type:o,commands:r}),this.pendingCanvasMutations.delete(t)}}const Ip={low:{sampling:{canvas:1},dataURLOptions:{type:"image/webp",quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:"image/webp",quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:"image/webp",quality:.5}}},Mp=1280,Rp=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[e,n]=t.maxCanvasSize||[],r={quality:t.quality||"medium",enableManualSnapshot:t.enableManualSnapshot,maxCanvasSize:[e?Math.min(e,Mp):Mp,n?Math.min(n,Mp):Mp]};let o;const s=new Promise(t=>o=t);return{name:"ReplayCanvas",getOptions(){const{quality:t,enableManualSnapshot:e,maxCanvasSize:n}=r;return(0,h.A)({enableManualSnapshot:e,recordCanvas:!0,getCanvasManager:t=>{const r=new Tp((0,h.A)((0,h.A)({},t),{},{enableManualSnapshot:e,maxCanvasSize:n,errorHandler:t=>{try{"object"===typeof t&&(t.__rrweb__=!0)}catch(e){}}}));return o(r),r}},Ip[t||"medium"]||Ip.medium)},async snapshot(t){(await s).snapshot(t)}}},Op=["open","onFormSubmitted"],Dp=A,Lp=Dp.document,Np=Dp.navigator,Pp="Report a Bug",Fp="Cancel",Bp="Send Bug Report",Up="Confirm",jp="Report a Bug",Hp="[email protected]",zp="Email",Wp="What's the bug? What did you expect?",qp="Description",Yp="Your Name",Vp="Name",Gp="Thank you for your report!",Xp="(required)",Jp="Add a screenshot",Kp="Remove screenshot",$p=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{includeReplay:!0};if(!t.message)throw new Error("Unable to submit feedback with empty message");const n=Lt();if(!n)throw new Error("No client setup, cannot send feedback.");t.tags&&Object.keys(t.tags).length&&It().setTags(t.tags);const r=qn((0,h.A)({source:"api",url:D()},t),e);return new Promise((t,e)=>{const o=setTimeout(()=>e("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?t(r):i&&"number"===typeof i.statusCode&&0===i.statusCode?e("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?e("Unable to send Feedback. This could be because this domain is not in your list of allowed domains."):e("Unable to send Feedback. This could be because of network issues, or because you are using an ad-blocker")})})},Zp="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function Qp(t,e){return(0,h.A)((0,h.A)((0,h.A)({},t),e),{},{tags:(0,h.A)((0,h.A)({},t.tags),e.tags),onFormOpen:()=>{e.onFormOpen&&e.onFormOpen(),t.onFormOpen&&t.onFormOpen()},onFormClose:()=>{e.onFormClose&&e.onFormClose(),t.onFormClose&&t.onFormClose()},onSubmitSuccess:n=>{e.onSubmitSuccess&&e.onSubmitSuccess(n),t.onSubmitSuccess&&t.onSubmitSuccess(n)},onSubmitError:n=>{e.onSubmitError&&e.onSubmitError(n),t.onSubmitError&&t.onSubmitError(n)},onFormSubmitted:()=>{e.onFormSubmitted&&e.onFormSubmitted(),t.onFormSubmitted&&t.onFormSubmitted()},themeDark:(0,h.A)((0,h.A)({},t.themeDark),e.themeDark),themeLight:(0,h.A)((0,h.A)({},t.themeLight),e.themeLight)})}
1function th(t,e){return Object.entries(e).forEach(e=>{let[n,r]=e;t.setAttributeNS(null,n,r)}),t}const eh=20;function nh(t){let{triggerLabel:e,triggerAriaLabel:n,shadow:r,styleNonce:o}=t;const s=Lp.createElement("button");if(s.type="button",s.className="widget__actor",s.ariaHidden="false",s.ariaLabel=n||e||Pp,s.appendChild(function(){const t=t=>Dp.document.createElementNS("http://www.w3.org/2000/svg",t),e=th(t("svg"),{width:"".concat(eh),height:"".concat(eh),viewBox:"0 0 ".concat(eh," ").concat(eh),fill:"var(--actor-color, var(--foreground))"}),n=th(t("g"),{clipPath:"url(#clip0_57_80)"}),r=th(t("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"});e.appendChild(n).appendChild(r);const o=t("defs"),s=th(t("clipPath"),{id:"clip0_57_80"}),i=th(t("rect"),{width:"".concat(eh),height:"".concat(eh),fill:"white"});return s.appendChild(i),o.appendChild(s),e.appendChild(o).appendChild(s).appendChild(i),e}()),e){const t=Lp.createElement("span");t.appendChild(Lp.createTextNode(e)),s.appendChild(t)}const i=function(t){const e=Lp.createElement("style");return e.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',t&&e.setAttribute("nonce",t),e}(o);return{el:s,appendToDom(){r.appendChild(i),r.appendChild(s)},removeFromDom(){r.removeChild(s),r.removeChild(i)},show(){s.ariaHidden="false"},hide(){s.ariaHidden="true"}}}const rh="rgba(88, 74, 192, 1)",oh={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackground:rh,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%)"},sh={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackground:rh,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 ih(t){return"\n  --foreground: ".concat(t.foreground,";\n  --background: ").concat(t.background,";\n  --accent-foreground: ").concat(t.accentForeground,";\n  --accent-background: ").concat(t.accentBackground,";\n  --success-color: ").concat(t.successColor,";\n  --error-color: ").concat(t.errorColor,";\n  --border: ").concat(t.border,";\n  --box-shadow: ").concat(t.boxShadow,";\n  --outline: ").concat(t.outline,";\n  --interactive-filter: ").concat(t.interactiveFilter,";\n  ")}const ah=t=>{let{lazyLoadIntegration:e,getModalIntegration:n,getScreenshotIntegration:r}=t;return function(){let{id:t="sentry-feedback",autoInject:o=!0,showBranding:s=!0,isEmailRequired:i=!1,isNameRequired:a=!1,showEmail:c=!0,showName:u=!0,enableScreenshot:l=!0,useSentryUser:d={email:"email",name:"username"},tags:p,styleNonce:f,scriptNonce:m,colorScheme:g="system",themeLight:_={},themeDark:y={},addScreenshotButtonLabel:v=Jp,cancelButtonLabel:b=Fp,confirmButtonLabel:S=Up,emailLabel:w=zp,emailPlaceholder:k=Hp,formTitle:E=jp,isRequiredLabel:x=Xp,messageLabel:C=qp,messagePlaceholder:A=Wp,nameLabel:T=Vp,namePlaceholder:I=Yp,removeScreenshotButtonLabel:M=Kp,submitButtonLabel:R=Bp,successMessageText:O=Gp,triggerLabel:D=Pp,triggerAriaLabel:L="",onFormOpen:N,onFormClose:P,onSubmitSuccess:F,onSubmitError:B,onFormSubmitted:j}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const H={id:t,autoInject:o,showBranding:s,isEmailRequired:i,isNameRequired:a,showEmail:c,showName:u,enableScreenshot:l,useSentryUser:d,tags:p,styleNonce:f,scriptNonce:m,colorScheme:g,themeDark:y,themeLight:_,triggerLabel:D,triggerAriaLabel:L,cancelButtonLabel:b,submitButtonLabel:R,confirmButtonLabel:S,formTitle:E,emailLabel:w,emailPlaceholder:k,messageLabel:C,messagePlaceholder:A,nameLabel:T,namePlaceholder:I,successMessageText:O,isRequiredLabel:x,addScreenshotButtonLabel:v,removeScreenshotButtonLabel:M,onFormClose:P,onFormOpen:N,onSubmitError:B,onSubmitSuccess:F,onFormSubmitted:j};let z=null,W=[];const q=t=>{if(!z){const e=Lp.createElement("div");e.id=String(t.id),Lp.body.appendChild(e),z=e.attachShadow({mode:"open"}),z.appendChild(function(t){let{colorScheme:e,themeDark:n,themeLight:r,styleNonce:o}=t;const s=Lp.createElement("style");return s.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  ".concat("system"!==e?"color-scheme: only light;":"","\n\n  ").concat(ih("dark"===e?(0,h.A)((0,h.A)({},sh),n):(0,h.A)((0,h.A)({},oh),r)),"\n}\n\n").concat("system"===e?"\n@media (prefers-color-scheme: dark) {\n  :host {\n    ".concat(ih((0,h.A)((0,h.A)({},sh),n)),"\n  }\n}"):"","\n}\n"),o&&s.setAttribute("nonce",o),s}(t))}return z},Y=async t=>{const o=t.enableScreenshot&&!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(Np.userAgent)&&!(/Macintosh/i.test(Np.userAgent)&&Np.maxTouchPoints&&Np.maxTouchPoints>1)&&!!isSecureContext;let s,i;try{s=(n?n():await e("feedbackModalIntegration",m))(),En(s)}catch(c){throw Zp&&U.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?r?r():await e("feedbackScreenshotIntegration",m):void 0;t&&(i=t(),En(i))}catch(u){Zp&&U.error("[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.")}const a=s.createDialog({options:(0,h.A)((0,h.A)({},t),{},{onFormClose:()=>{a&&a.close(),t.onFormClose&&t.onFormClose()},onFormSubmitted:()=>{a&&a.close(),t.onFormSubmitted&&t.onFormSubmitted()}}),screenshotIntegration:i,sendFeedback:$p,shadow:q(t)});return a},V=function(t){const e=Qp(H,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),n="string"===typeof t?Lp.querySelector(t):"function"===typeof t.addEventListener?t:null;if(!n)throw Zp&&U.error("[Feedback] Unable to attach to target element"),new Error("Unable to attach to target element");let r=null;const o=async()=>{r||(r=await Y((0,h.A)((0,h.A)({},e),{},{onFormSubmitted:()=>
1{r&&r.removeFromDom(),e.onFormSubmitted&&e.onFormSubmitted()}}))),r.appendToDom(),r.open()};n.addEventListener("click",o);const s=()=>{W=W.filter(t=>t!==s),r&&r.removeFromDom(),r=null,n.removeEventListener("click",o)};return W.push(s),s},G=function(){const t=Qp(H,arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),e=q(t),n=nh({triggerLabel:t.triggerLabel,triggerAriaLabel:t.triggerAriaLabel,shadow:e,styleNonce:f});return V(n.el,(0,h.A)((0,h.A)({},t),{},{onFormOpen(){n.hide()},onFormClose(){n.show()},onFormSubmitted(){n.show()}})),n};return{name:"Feedback",setupOnce(){Ui()&&H.autoInject&&("loading"===Lp.readyState?Lp.addEventListener("DOMContentLoaded",()=>G().appendToDom()):G().appendToDom())},attachTo:V,createWidget(){const t=G(Qp(H,arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}));return t.appendToDom(),t},async createForm(){return Y(Qp(H,arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}))},remove(){z&&(z.parentElement&&z.parentElement.remove(),z=null),W.forEach(t=>t()),W=[]}}}};function ch(){const t=Lt();return t&&t.getIntegrationByName("Feedback")}var uh,lh,dh,ph,hh,fh,mh,gh={},_h=[],yh=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,vh=Array.isArray;function bh(t,e){for(var n in e)t[n]=e[n];return t}function Sh(t){var e=t.parentNode;e&&e.removeChild(t)}function wh(t,e,n){var r,o,s,i={};for(s in e)"key"==s?r=e[s]:"ref"==s?o=e[s]:i[s]=e[s];if(arguments.length>2&&(i.children=arguments.length>3?uh.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(s in t.defaultProps)void 0===i[s]&&(i[s]=t.defaultProps[s]);return kh(t,i,r,o,null)}function kh(t,e,n,r,o){var s={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==o?++dh:o,__i:-1,__u:0};return null==o&&null!=lh.vnode&&lh.vnode(s),s}function Eh(t){return t.children}function xh(t,e){this.props=t,this.context=e}function Ch(t,e){if(null==e)return t.__?Ch(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?Ch(t):null}function Ah(t,e,n){var r,o=t.__v,s=o.__e,i=t.__P;if(i)return(r=bh({},o)).__v=o.__v+1,lh.vnode&&lh.vnode(r),Bh(i,r,o,t.__n,void 0!==i.ownerSVGElement,32&o.__u?[s]:null,e,null==s?Ch(o):s,!!(32&o.__u),n),r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=s&&Th(r),r}function Th(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return Th(t)}}function Ih(t){(!t.__d&&(t.__d=!0)&&ph.push(t)&&!Mh.__r++||hh!==lh.debounceRendering)&&((hh=lh.debounceRendering)||fh)(Mh)}function Mh(){var t,e,n,r=[],o=[];for(ph.sort(mh);t=ph.shift();)t.__d&&(n=ph.length,e=Ah(t,r,o)||e,0===n||ph.length>n?(Uh(r,e,o),o.length=r.length=0,e=void 0,ph.sort(mh)):e&&lh.__c&&lh.__c(e,_h));e&&Uh(r,e,o),Mh.__r=0}function Rh(t,e,n,r,o,s,i,a,c,u,l){var d,p,h,f,m,g=r&&r.__k||_h,_=e.length;for(n.__d=c,function(t,e,n){var r,o,s,i,a,c=e.length,u=n.length,l=u,d=0;for(t.__k=[],r=0;r<c;r++)null!=(o=t.__k[r]=null==(o=e[r])||"boolean"==typeof o||"function"==typeof o?null:"string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?kh(null,o,null,null,o):vh(o)?kh(Eh,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?kh(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=t,o.__b=t.__b+1,a=Dh(o,n,i=r+d,l),o.__i=a,s=null,-1!==a&&(l--,(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?l>c-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==t.__d&&(t.__d=Ch(s)),zh(s,s,!1),n[r]=null,l--);if(l)for(r=0;r<u;r++)null!=(s=n[r])&&0==(131072&s.__u)&&(s.__e==t.__d&&(t.__d=Ch(s)),zh(s,s))}(n,e,g),c=n.__d,d=0;d<_;d++)null!=(h=n.__k[d])&&"boolean"!=typeof h&&"function"!=typeof h&&(p=-1===h.__i?gh:g[h.__i]||gh,h.__i=d,Bh(t,h,p,o,s,i,a,c,u,l),f=h.__e,h.ref&&p.ref!=h.ref&&(p.ref&&Hh(p.ref,null,h),l.push(h.ref,h.__c||f,h)),null==m&&null!=f&&(m=f),65536&h.__u||p.__k===h.__k?c=Oh(h,c,t):"function"==typeof h.type&&void 0!==h.__d?c=h.__d:f&&(c=f.nextSibling),h.__d=void 0,h.__u&=-196609);n.__d=c,n.__e=m}function Oh(t,e,n){var r,o;
vendor: 4,258 bytes, line 1
1if("function"==typeof t.type){for(r=t.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=t,e=Oh(r[o],e,n));return e}t.__e!=e&&(n.insertBefore(t.__e,e||null),e=t.__e);do{e=e&&e.nextSibling}while(null!=e&&8===e.nodeType);return e}function Dh(t,e,n,r){var o=t.key,s=t.type,i=n-1,a=n+1,c=e[n];if(null===c||c&&o==c.key&&s===c.type)return n;if(r>(null!=c&&0==(131072&c.__u)?1:0))for(;i>=0||a<e.length;){if(i>=0){if((c=e[i])&&0==(131072&c.__u)&&o==c.key&&s===c.type)return i;i--}if(a<e.length){if((c=e[a])&&0==(131072&c.__u)&&o==c.key&&s===c.type)return a;a++}}return-1}function Lh(t,e,n){"-"===e[0]?t.setProperty(e,null==n?"":n):t[e]=null==n?"":"number"!=typeof n||yh.test(e)?n:n+"px"}function Nh(t,e,n,r,o){var s;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof r&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||Lh(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||Lh(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])s=e!==(e=e.replace(/(PointerCapture)$|Capture$/i,"$1")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+s]=n,n?r?n.u=r.u:(n.u=Date.now(),t.addEventListener(e,s?Fh:Ph,s)):t.removeEventListener(e,s?Fh:Ph,s);else{if(o)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==e&&"height"!==e&&"href"!==e&&"list"!==e&&"form"!==e&&"tabIndex"!==e&&"download"!==e&&"rowSpan"!==e&&"colSpan"!==e&&"role"!==e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null==n||!1===n&&"-"!==e[4]?t.removeAttribute(e):t.setAttribute(e,n))}}function Ph(t){if(this.l){var e=this.l[t.type+!1];if(t.t){if(t.t<=e.u)return}else t.t=Date.now();return e(lh.event?lh.event(t):t)}}function Fh(t){if(this.l)return this.l[t.type+!0](lh.event?lh.event(t):t)}function Bh(t,e,n,r,o,s,i,a,c,u){var l,d,p,h,f,m,g,_,y,v,b,S,w,k,E,x=e.type;if(void 0!==e.constructor)return null;128&n.__u&&(c=!!(32&n.__u),s=[a=e.__e=n.__e]),(l=lh.__b)&&l(e);t:if("function"==typeof x)try{if(_=e.props,y=(l=x.contextType)&&r[l.__c],v=l?y?y.props.value:l.__:r,n.__c?g=(d=e.__c=n.__c).__=d.__E:("prototype"in x&&x.prototype.render?e.__c=d=new x(_,v):(e.__c=d=new xh(_,v),d.constructor=x,d.render=Wh),y&&y.sub(d),d.props=_,d.state||(d.state={}),d.context=v,d.__n=r,p=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=x.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=bh({},d.__s)),bh(d.__s,x.getDerivedStateFromProps(_,d.__s))),h=d.props,f=d.state,d.__v=e,p)null==x.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==x.getDerivedStateFromProps&&_!==h&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(_,v),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(_,d.__s,v)||e.__v===n.__v)){for(e.__v!==n.__v&&(d.props=_,d.state=d.__s,d.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach(function(t){t&&(t.__=e)}),b=0;b<d._sb.length;b++)d.__h.push(d._sb[b]);d._sb=[],d.__h.length&&i.push(d);break t}null!=d.componentWillUpdate&&d.componentWillUpdate(_,d.__s,v),null!=d.componentDidUpdate&&d.__h.push(function(){d.componentDidUpdate(h,f,m)})}if(d.context=v,d.props=_,d.__P=t,d.__e=!1,S=lh.__r,w=0,"prototype"in x&&x.prototype.render){for(d.state=d.__s,d.__d=!1,S&&S(e),l=d.render(d.props,d.state,d.context),k=0;k<d._sb.length;k++)d.__h.push(d._sb[k]);d._sb=[]}else do{d.__d=!1,S&&S(e),l=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++w<25);d.state=d.__s,null!=d.getChildContext&&(r=bh(bh({},r),d.getChildContext())),p||null==d.getSnapshotBeforeUpdate||(m=d.getSnapshotBeforeUpdate(h,f)),Rh(t,vh(E=null!=l&&l.type===Eh&&null==l.key?l.props.children:l)?E:[E],e,n,r,o,s,i,a,c,u),d.base=e.__e,e.__u&=-161,d.__h.length&&i.push(d),g&&(d.__E=d.__=null)}catch(t){e.__v=null,c||null!=s?(e.__e=a,e.__u|=c?160:32,s[s.indexOf(a)]=null):(e.__e=n.__e,e.__k=n.__k),lh.__e(t,e,n)}else null==s&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=jh(n.__e,e,n,r,o,s,i,c,u);(l=lh.diffed)&&l(e)}function Uh(t,e,n){for(var r=0;r<n.length;r++)Hh(n[r],n[++r],n[++r]);lh.__c&&lh.__c(e,t),t.some(function(e){try{t=e.__h,e.__h=[],t.some(function(t){t.call(e)})}catch(t){lh.__e(t,e.__v)}})}function jh(t,e,n,r,o,s,i,a,c){var u,l,d,p,h,f,m,g=n.props,_=e.props,y=e.type;if("svg"===y&&(o=!0),null!=s)for(u=0;
vendor: 2,340 bytes, line 1
1u<s.length;u++)if((h=s[u])&&"setAttribute"in h==!!y&&(y?h.localName===y:3===h.nodeType)){t=h,s[u]=null;break}if(null==t){if(null===y)return document.createTextNode(_);t=o?document.createElementNS("http://www.w3.org/2000/svg",y):document.createElement(y,_.is&&_),s=null,a=!1}if(null===y)g===_||a&&t.data===_||(t.data=_);else{if(s=s&&uh.call(t.childNodes),g=n.props||gh,!a&&null!=s)for(g={},u=0;u<t.attributes.length;u++)g[(h=t.attributes[u]).name]=h.value;for(u in g)h=g[u],"children"==u||("dangerouslySetInnerHTML"==u?d=h:"key"===u||u in _||Nh(t,u,null,h,o));for(u in _)h=_[u],"children"==u?p=h:"dangerouslySetInnerHTML"==u?l=h:"value"==u?f=h:"checked"==u?m=h:"key"===u||a&&"function"!=typeof h||g[u]===h||Nh(t,u,h,g[u],o);if(l)a||d&&(l.__html===d.__html||l.__html===t.innerHTML)||(t.innerHTML=l.__html),e.__k=[];else if(d&&(t.innerHTML=""),Rh(t,vh(p)?p:[p],e,n,r,o&&"foreignObject"!==y,s,i,s?s[0]:n.__k&&Ch(n,0),a,c),null!=s)for(u=s.length;u--;)null!=s[u]&&Sh(s[u]);a||(u="value",void 0!==f&&(f!==t[u]||"progress"===y&&!f||"option"===y&&f!==g[u])&&Nh(t,u,f,g[u],!1),u="checked",void 0!==m&&m!==t[u]&&Nh(t,u,m,g[u],!1))}return t}function Hh(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){lh.__e(t,n)}}function zh(t,e,n){var r,o;if(lh.unmount&&lh.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||Hh(r,null,e)),null!=(r=t.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(t){lh.__e(t,e)}r.base=r.__P=null,t.__c=void 0}if(r=t.__k)for(o=0;o<r.length;o++)r[o]&&zh(r[o],e,n||"function"!=typeof t.type);n||null==t.__e||Sh(t.__e),t.__=t.__e=t.__d=void 0}function Wh(t,e,n){return this.constructor(t,n)}uh=_h.slice,lh={__e:function(t,e,n,r){for(var o,s,i;e=e.__;)if((o=e.__c)&&!o.__)try{if((s=o.constructor)&&null!=s.getDerivedStateFromError&&(o.setState(s.getDerivedStateFromError(t)),i=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(t,r||{}),i=o.__d),i)return o.__E=o}catch(e){t=e}throw t}},dh=0,xh.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=bh({},this.state),"function"==typeof t&&(t=t(bh({},n),this.props)),t&&bh(n,t),null!=t&&this.__v&&(e&&this._sb.push(e),Ih(this))},xh.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Ih(this))},xh.prototype.render=Eh,ph=[],fh="function"==typeof Promise?Promise.prototype.then.bind(Prom
1ise.resolve()):setTimeout,mh=function(t,e){return t.__v.__b-e.__v.__b},Mh.__r=0;var qh,Yh,Vh,Gh,Xh=0,Jh=[],Kh=[],$h=lh,Zh=$h.__b,Qh=$h.__r,tf=$h.diffed,ef=$h.__c,nf=$h.unmount,rf=$h.__;function of(t,e){$h.__h&&$h.__h(Yh,t,Xh||e),Xh=0;var n=Yh.__H||(Yh.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({__V:Kh}),n.__[t]}function sf(t){return Xh=1,af(_f,t)}function af(t,e,n){var r=of(qh++,2);if(r.t=t,!r.__c&&(r.__=[n?n(e):_f(void 0,e),function(t){var e=r.__N?r.__N[0]:r.__[0],n=r.t(e,t);e!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=Yh,!Yh.u)){var o=function(t,e,n){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter(function(t){return!!t.__c});if(o.every(function(t){return!t.__N}))return!s||s.call(this,t,e,n);var i=!1;return o.forEach(function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(i=!0)}}),!(!i&&r.__c.props===t)&&(!s||s.call(this,t,e,n))};Yh.u=!0;var s=Yh.shouldComponentUpdate,i=Yh.componentWillUpdate;Yh.componentWillUpdate=function(t,e,n){if(this.__e){var r=s;s=void 0,o(t,e,n),s=r}i&&i.call(this,t,e,n)},Yh.shouldComponentUpdate=o}return r.__N||r.__}function cf(t,e){var n=of(qh++,4);!$h.__s&&gf(n.__H,e)&&(n.__=t,n.i=e,Yh.__h.push(n))}function uf(t,e){var n=of(qh++,7);return gf(n.__H,e)?(n.__V=t(),n.i=e,n.__h=t,n.__V):n.__}function lf(t,e){return Xh=8,uf(function(){return t},e)}function df(){for(var t;t=Jh.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(ff),t.__H.__h.forEach(mf),t.__H.__h=[]}catch(e){t.__H.__h=[],$h.__e(e,t.__v)}}$h.__b=function(t){Yh=null,Zh&&Zh(t)},$h.__=function(t,e){e.__k&&e.__k.__m&&(t.__m=e.__k.__m),rf&&rf(t,e)},$h.__r=function(t){Qh&&Qh(t),qh=0;var e=(Yh=t.__c).__H;e&&(Vh===Yh?(e.__h=[],Yh.__h=[],e.__.forEach(function(t){t.__N&&(t.__=t.__N),t.__V=Kh,t.__N=t.i=void 0})):(e.__h.forEach(ff),e.__h.forEach(mf),e.__h=[],qh=0)),Vh=Yh},$h.diffed=function(t){tf&&tf(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==Jh.push(e)&&Gh===$h.requestAnimationFrame||((Gh=$h.requestAnimationFrame)||hf)(df)),e.__H.__.forEach(function(t){t.i&&(t.__H=t.i),t.__V!==Kh&&(t.__=t.__V),t.i=void 0,t.__V=Kh})),Vh=Yh=null},$h.__c=function(t,e){e.some(function(t){try{t.__h.forEach(ff),t.__h=t.__h.filter(function(t){return!t.__||mf(t)})}catch(n){e.some(function(t){t.__h&&(t.__h=[])}),e=[],$h.__e(n,t.__v)}}),ef&&ef(t,e)},$h.unmount=function(t){nf&&nf(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(t){try{ff(t)}catch(t){e=t}}),n.__H=void 0,e&&$h.__e(e,n.__v))};var pf="function"==typeof requestAnimationFrame;function hf(t){var e,n=function(){clearTimeout(r),pf&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);pf&&(e=requestAnimationFrame(n))}function ff(t){var e=Yh,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),Yh=e}function mf(t){var e=Yh;t.__c=t.__(),Yh=e}function gf(t,e){return!t||t.length!==e.length||e.some(function(e,n){return e!==t[n]})}function _f(t,e){return"function"==typeof e?e(t):e}const yf={__proto__:null,useCallback:lf,useContext:function(t){var e=Yh.context[t.__c],n=of(qh++,9);return n.c=t,e?(null==n.__&&(n.__=!0,e.sub(Yh)),e.props.value):t.__},useDebugValue:function(t,e){$h.useDebugValue&&$h.useDebugValue(e?e(t):t)},useEffect:function(t,e){var n=of(qh++,3);!$h.__s&&gf(n.__H,e)&&(n.__=t,n.i=e,Yh.__H.__h.push(n))},useErrorBoundary:function(t){var e=of(qh++,10),n=sf();return e.__=t,Yh.componentDidCatch||(Yh.componentDidCatch=function(t,r){e.__&&e.__(t,r),n[1](t)}),[n[0],function(){n[1](void 0)}]},useId:function(){var t=of(qh++,11);if(!t.__){for(var e=Yh.__v;null!==e&&!e.__m&&null!==e.__;)e=e.__;var n=e.__m||(e.__m=[0,0]);t.__="P"+n[0]+"-"+n[1]++}return t.__},useImperativeHandle:function(t,e,n){Xh=6,cf(function(){return"function"==typeof t?(t(e()),function(){return t(null)}):t?(t.current=e(),function(){return t.current=null}):void 0},null==n?n:n.concat(t))},useLayoutEffect:cf,useMemo:uf,useReducer:af,useRef:function(t){return Xh=5,uf(function(){return{current:t}},[])},useState:sf};function vf(){const t=t=>Lp.createElementNS("http://www.w3.org/2000/svg",t),e=th(t("svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"}),n=th(t("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 e.appendChild(n),e}function bf(t){let{options:e}=t;const n=uf(()=>({__html:vf().outerHTML}),[]);return wh("h2",{class:"dialog__header"},wh("span",{class:"dialog__title"},e.formTitle),e.showBranding?wh("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:n}):null)}function Sf(t,e){const n=t.get(e);return"string"===typeof n?n.trim():""}function wf(t){let{options:e,defaultEmail:n,defaultName:r,onFormClose:o,onSubmit:s,onSubmitSuccess:i,onSubmitError:a,showEmail
1:c,showName:u,screenshotInput:l}=t;const{tags:d,addScreenshotButtonLabel:p,removeScreenshotButtonLabel:h,cancelButtonLabel:f,emailLabel:m,emailPlaceholder:g,isEmailRequired:_,isNameRequired:y,messageLabel:v,messagePlaceholder:b,nameLabel:S,namePlaceholder:w,submitButtonLabel:k,isRequiredLabel:E}=e,[x,C]=sf(null),[A,T]=sf(!1),I=l&&l.input,[M,R]=sf(null),O=lf(t=>{R(t),T(!1)},[]),D=lf(t=>{const e=function(t,e){const n=[];return e.isNameRequired&&!t.name&&n.push(e.nameLabel),e.isEmailRequired&&!t.email&&n.push(e.emailLabel),t.message||n.push(e.messageLabel),n}(t,{emailLabel:m,isEmailRequired:_,isNameRequired:y,messageLabel:v,nameLabel:S});return e.length>0?C("Please enter in the following required fields: ".concat(e.join(", "))):C(null),0===e.length},[m,_,y,v,S]),L=lf(async t=>{try{if(t.preventDefault(),!(t.target instanceof HTMLFormElement))return;const e=new FormData(t.target),n=await(l&&A?l.value():void 0),r={name:Sf(e,"name"),email:Sf(e,"email"),message:Sf(e,"message"),attachments:n?[n]:void 0};if(!D(r))return;try{await s({name:r.name,email:r.email,message:r.message,source:"widget",tags:d},{attachments:r.attachments}),i(r)}catch(x){Zp&&U.error(x),C(x),a(x)}}catch(e){}},[l&&A,i,a]);return wh("form",{class:"form",onSubmit:L},I&&A?wh(I,{onError:O}):null,wh("div",{class:"form__right","data-sentry-feedback":!0},wh("div",{class:"form__top"},x?wh("div",{class:"form__error-container"},x):null,u?wh("label",{for:"name",class:"form__label"},wh(kf,{label:S,isRequiredLabel:E,isRequired:y}),wh("input",{class:"form__input",defaultValue:r,id:"name",name:"name",placeholder:w,required:y,type:"text"})):wh("input",{"aria-hidden":!0,value:r,name:"name",type:"hidden"}),c?wh("label",{for:"email",class:"form__label"},wh(kf,{label:m,isRequiredLabel:E,isRequired:_}),wh("input",{class:"form__input",defaultValue:n,id:"email",name:"email",placeholder:g,required:_,type:"email"})):wh("input",{"aria-hidden":!0,value:n,name:"email",type:"hidden"}),wh("label",{for:"message",class:"form__label"},wh(kf,{label:v,isRequiredLabel:E,isRequired:!0}),wh("textarea",{autoFocus:!0,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:b,required:!0,rows:5})),I?wh("label",{for:"screenshot",class:"form__label"},wh("button",{class:"btn btn--default",type:"button",onClick:()=>{R(null),T(t=>!t)}},A?h:p),M?wh("div",{class:"form__error-container"},M.message):null):null),wh("div",{class:"btn-group"},wh("button",{class:"btn btn--primary",type:"submit"},k),wh("button",{class:"btn btn--default",type:"button",onClick:o},f))))}function kf(t){let{label:e,isRequired:n,isRequiredLabel:r}=t;return wh("span",{class:"form__label__text"},e,n&&wh("span",{class:"form__label__text--required"},r))}function Ef(){const t=t=>Dp.document.createElementNS("http://www.w3.org/2000/svg",t),e=th(t("svg"),{width:"".concat(16),height:"".concat(17),viewBox:"0 0 ".concat(16," ").concat(17),fill:"inherit"}),n=th(t("g"),{clipPath:"url(#clip0_57_156)"}),r=th(t("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=th(t("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"});e.appendChild(n).append(o,r);const s=t("defs"),i=th(t("clipPath"),{id:"clip0_57_156"}),a=th(t("rect"),{width:"".concat(16),height:"".concat(16),fill:"white",transform:"translate(0 0.5)"});return i.appendChild(a),s.appendChild(i),e.appendChild(s).appendChild(i).appendChild(a),e}function xf(t){let{open:e,onFormSubmitted:n}=t,r=(0,ep.A)(t,Op);const o=r.options,s=uf(()=>({__html:Ef().outerHTML}),[]),[i,a]=sf(null),c=lf(()=>{i&&(clearTimeout(i),a(null)),n()},[i]),u=lf(t=>{r.onSubmitSuccess(t),a(setTimeout(()=>{n(),a(null)},5e3))},[n]);return wh(Eh,null,i?wh("div",{class:"success__position",onClick:c},wh("div",{class:"success__content"},o.successMessageText,wh("span",{class:"success__icon",dangerouslySetInnerHTML:s}))):wh("dialog",{class:"dialog",onClick:o.onFormClose,open:e},wh("div",{class:"dialog__position"},wh("div",{class:"dialog__content",onClick:t=>{t.stopPropagation()}},wh(bf,{options:o}),wh(wf,(0,h.A)((0,h.A)({},r),{},{onSubmitSuccess:u}))))))}const Cf=()=>({name:"FeedbackModal",setupOnce(){},createDialog:t=>{let{options:e,screenshotIntegration:n,sendFeedback:r,shadow:o}=t;const s=o,i=e.useSentryUser,a=function(){const t=It().getUser(),e=Mt().getUser(),n=Rt().getUser();return t&&Object.keys(t).length?t:e&&Object.keys(e).length?e:n}(),c=Lp.createElement("div"),u=function(t){const e=Lp.createElement("style");return e.textContent="\n:host {\n  --dialog-inset: var(--inset);\n}\n\n".concat("\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").concat("\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").concat("\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").concat("\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").concat("\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"),t&&e.setAttribute("nonce",t),e}(e.styleNonce);let l="";const d={get el(){return c},appendToDom(){s.contains(u)||s.contains(c)||(s.appendChild(u),s.appendChild(c))},removeFromDom(){s.removeChild(c),s.removeChild(u),Lp.body.style.overflow=l},open(){h(!0),e.onFormOpen&&e.onFormOpen(),l=Lp.body.style.overflow,Lp.body.style.overflow="hidden"},close(){h(!1),Lp.body.style.overflow=l}},p=n&&n.createInput({h:wh,hooks:yf,dialog:d,options:e}),h=t=>{!function(t,e,n){var r,o,s,i;lh.__&&lh.__(t,e),o=(r="function"==typeof n)?null:e.__k,s=[],i=[],Bh(e,t=(!r&&n||e).__k=wh(Eh,null,[t]),o||gh,gh,void 0!==e.ownerSVGElement,!r&&n?[n]:o?null:e.firstChild?uh.call(e.childNodes):null,s,!r&&n?n:o?o.__e:e.firstChild,r,i),t.__d=void 0,Uh(s,t,i)}(wh(xf,{options:e,screenshotInput:p,showName:e.showName||e.isNameRequired,showEmail:e.showEmail||e.isEmailRequired,defaultName:i&&a&&a[i.name]||"",defaultEmail:i&&a&&a[i.email]||"",onFormClose:()=>{h(!1),e.onFormClose&&e.onFormClose()},onSubmit:r,onSubmitSuccess:t=>{h(!1),e.onSubmitSuccess&&e.onSubmitSuccess(t)},onSubmitError:t=>{e.onSubmitError&&e.onSubmitError(t)},onFormSubmitted:()=>{e.onFormSubmitted&&e.onFormSubmitted()},open:t}),c)};return d}});function Af(t){const e=Lp.createElement("style"),n="#1A141F",r="#302735";return e.textContent="\n.editor {\n  padding: 10px;\n  padding-top: 65px;\n  padding-bottom: 65px;\n  flex-grow: 1;\n\n  background-color: ".concat(n,";\n  background-image: repeating-linear-gradient(\n      -145deg,\n      transparent,\n      transparent 8px,\n      ").concat(n," 8px,\n      ").concat(n," 11px\n    ),\n    repeating-linear-gradient(\n      -45deg,\n      transparent,\n      transparent 15px,\n      ").concat(r," 15px,\n      ").concat(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"),t&&e.setAttribute("nonce",t),e}const Tf=33,If=Dp.devicePixelRatio,Mf=t=>({x:Math.min(t.startX,t.endX),y:Math.min(t.startY,t.endY),width:Math.abs(t.startX-t.endX),height:Math.abs(t.startY-t.endY)}),Rf=t=>{const e=t.clientHeight,n=t.clientWidth,r=t.width/t.height;let o=e*r,s=e;o>n&&(o=n,s=n/r);const i=(n-o)/2,a=(e-s)/2;return{startX:i,startY:a,endX:o+i,endY:s+a}};function Of(t){let{h:e,hooks:n,imageBuffer:r,dialog:o,options:s}=t;const i=function(t){let{hooks:e}=t;return function(t){let{onBeforeScreenshot:n,onScreenshot:r,onAfterScreenshot:o,onError:s}=t;e.useEffect(()=>{(async()=>{n();const t=await Np.mediaDevices.getDisplayMedia({video:{width:Dp.innerWidth*Dp.devicePixelRatio,height:Dp.innerHeight*Dp.devicePixelRatio},audio:!1,monitorTypeSurfaces:"exclude",preferCurrentTab:!0,selfBrowserSurface:"include",surfaceSwitching:"exclude"}),e=Lp.createElement("video");await new Promise((n,o)=>{e.srcObject=t,e.onloadedmetadata=()=>
1{r(e),t.getTracks().forEach(t=>t.stop()),n()},e.play().catch(o)}),o()})().catch(s)},[])}}({hooks:n});return function(t){let{onError:a}=t;const c=n.useMemo(()=>({__html:Af(s.styleNonce).innerText}),[]),u=function(t){let{h:e}=t;return function(t){let{top:n,left:r,corner:o,onGrabButton:s}=t;return e("button",{class:"editor__crop-corner editor__crop-corner--".concat(o," "),style:{top:n,left:r},onMouseDown:t=>{t.preventDefault(),s(t,o)},onClick:t=>{t.preventDefault()}})}}({h:e}),l=n.useRef(null),d=n.useRef(null),p=n.useRef(null),[f,m]=n.useState({startX:0,startY:0,endX:0,endY:0}),[g,_]=n.useState(!1),[y,v]=n.useState(!1);function b(){const t=p.current,e=Mf(Rf(r));if(t){t.width=e.width*If,t.height=e.height*If,t.style.width="".concat(e.width,"px"),t.style.height="".concat(e.height,"px");const n=t.getContext("2d");n&&n.scale(If,If)}const n=d.current;n&&(n.style.width="".concat(e.width,"px"),n.style.height="".concat(e.height,"px")),m({startX:0,startY:0,endX:e.width,endY:e.height})}function S(t,e){_(!1),v(!0);const n=w(e),r=()=>{Lp.removeEventListener("mousemove",n),Lp.removeEventListener("mouseup",r),_(!0),v(!1)};Lp.addEventListener("mouseup",r),Lp.addEventListener("mousemove",n)}n.useEffect(()=>{Dp.addEventListener("resize",b,!1)},[]),n.useEffect(()=>{const t=p.current;if(!t)return;const e=t.getContext("2d");if(!e)return;const n=Mf(Rf(r)),o=Mf(f);e.clearRect(0,0,n.width,n.height),e.fillStyle="rgba(0, 0, 0, 0.5)",e.fillRect(0,0,n.width,n.height),e.clearRect(o.x,o.y,o.width,o.height),e.strokeStyle="#ffffff",e.lineWidth=3,e.strokeRect(o.x+1,o.y+1,o.width-2,o.height-2),e.strokeStyle="#000000",e.lineWidth=1,e.strokeRect(o.x+3,o.y+3,o.width-6,o.height-6)},[f]);const w=n.useCallback(t=>function(e){if(!p.current)return;const n=p.current,r=n.getBoundingClientRect(),o=e.clientX-r.x,s=e.clientY-r.y;switch(t){case"top-left":m(t=>(0,h.A)((0,h.A)({},t),{},{startX:Math.min(Math.max(0,o),t.endX-Tf),startY:Math.min(Math.max(0,s),t.endY-Tf)}));break;case"top-right":m(t=>(0,h.A)((0,h.A)({},t),{},{endX:Math.max(Math.min(o,n.width/If),t.startX+Tf),startY:Math.min(Math.max(0,s),t.endY-Tf)}));break;case"bottom-left":m(t=>(0,h.A)((0,h.A)({},t),{},{startX:Math.min(Math.max(0,o),t.endX-Tf),endY:Math.max(Math.min(s,n.height/If),t.startY+Tf)}));break;case"bottom-right":m(t=>(0,h.A)((0,h.A)({},t),{},{endX:Math.max(Math.min(o,n.width/If),t.startX+Tf),endY:Math.max(Math.min(s,n.height/If),t.startY+Tf)}))}},[]),k=n.useRef({initialX:0,initialY:0});return i({onBeforeScreenshot:n.useCallback(()=>{o.el.style.display="none"},[]),onScreenshot:n.useCallback(t=>{const e=r.getContext("2d");if(!e)throw new Error("Could not get canvas context");r.width=t.videoWidth,r.height=t.videoHeight,r.style.width="100%",r.style.height="100%",e.drawImage(t,0,0)},[r]),onAfterScreenshot:n.useCallback(()=>{o.el.style.display="block";const t=l.current;t&&t.appendChild(r),b()},[]),onError:n.useCallback(t=>{o.el.style.display="block",a(t)},[])}),e("div",{class:"editor"},e("style",{nonce:s.styleNonce,dangerouslySetInnerHTML:c}),e("div",{class:"editor__canvas-container",ref:l},e("div",{class:"editor__crop-container",style:{position:"absolute",zIndex:1},ref:d},e("canvas",{onMouseDown:function(t){if(y)return;k.current={initialX:t.clientX,initialY:t.clientY};const e=t=>{const e=p.current;if(!e)return;const n=t.clientX-k.current.initialX,r=t.clientY-k.current.initialY;m(o=>{const s=Math.max(0,Math.min(o.startX+n,e.width/If-(o.endX-o.startX))),i=Math.max(0,Math.min(o.startY+r,e.height/If-(o.endY-o.startY))),a=s+(o.endX-o.startX),c=i+(o.endY-o.startY);return k.current.initialX=t.clientX,k.current.initialY=t.clientY,{startX:s,startY:i,endX:a,endY:c}})},n=()=>{Lp.removeEventListener("mousemove",e),Lp.removeEventListener("mouseup",n)};Lp.addEventListener("mousemove",e),Lp.addEventListener("mouseup",n)},style:{position:"absolute",cursor:g?"move":"auto"},ref:p}),e(u,{left:f.startX-3,top:f.startY-3,onGrabButton:S,corner:"top-left"}),e(u,{left:f.endX-30+3,top:f.startY-3,onGrabButton:S,corner:"top-right"}),e(u,{left:f.startX-3,top:f.endY-30+3,onGrabButton:S,corner:"bottom-left"}),e(u,{left:f.endX-30+3,top:f.endY-30+3,onGrabButton:S,corner:"bottom-right"}),e("div",{style:{left:Math.max(0,f.endX-191),top:Math.max(0,f.endY+8),display:g?"flex":"none"},class:"editor__crop-btn-group"},e("button",{onClick:t=>{t.preventDefault(),p.current&&m({startX:0,startY:0,endX:p.current.width/If,endY:p.current.height/If}),_(!1)},class:"btn btn--default"},s.cancelButtonLabel),e("button",{onClick:t=>{t.preventDefault(),function(){const t=Lp.createElement("canvas"),e=Mf(Rf(r)),n=Mf(f);t.width=n.width*If,t.height=n.height*If;const o=t.getContext("2d");o&&r&&o.drawImage(r,n.x/e.width*r.width,n.y/e.height*r.height,n.width/e.width*r.width,n.height/e.he
1ight*r.height,0,0,t.width,t.height);const s=r.getContext("2d");s&&(s.clearRect(0,0,r.width,r.height),r.width=t.width,r.height=t.height,r.style.width="".concat(n.width,"px"),r.style.height="".concat(n.height,"px"),s.drawImage(t,0,0),b())}(),_(!1)},class:"btn btn--primary"},s.confirmButtonLabel)))))}}const Df=()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:t=>{let{h:e,hooks:n,dialog:r,options:o}=t;const s=Lp.createElement("canvas");return{input:Of({h:e,hooks:n,imageBuffer:s,dialog:r,options:o}),value:async()=>{const t=await new Promise(t=>{s.toBlob(t,"image/png")});if(t){return{data:new Uint8Array(await t.arrayBuffer()),filename:"screenshot.png",contentType:"application/png"}}}}}}),Lf=ah({lazyLoadIntegration:wi}),Nf=ah({getModalIntegration:()=>Cf,getScreenshotIntegration:()=>Df}),Pf="c",Ff="g",Bf="s",Uf="d";function jf(t,e){const n=T("globalMetricsAggregators",()=>new WeakMap),r=n.get(t);if(r)return r;const o=new e(t);return t.on("flush",()=>o.flush()),t.on("close",()=>o.close()),n.set(t,o),o}function Hf(t,e,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};const s=o.client||Lt();if(!s)return;const i=Ue(),a=i?Be(i):void 0,c=a&&Re(a).description,{unit:u,tags:l,timestamp:d}=o,{release:p,environment:f}=s.getOptions(),m={};p&&(m.release=p),f&&(m.environment=f),c&&(m.transaction=c),Ut&&U.log("Adding value of ".concat(r," to ").concat(e," metric ").concat(n));jf(s,t).add(e,n,r,u,(0,h.A)((0,h.A)({},m),l),d)}function zf(t,e,n,r){Hf(t,"d",e,qf(n),r)}const Wf={increment:function(t,e){let n=arguments.length>3?arguments[3]:void 0;Hf(t,"c",e,qf(arguments.length>2&&void 0!==arguments[2]?arguments[2]:1),n)},distribution:zf,set:function(t,e,n,r){Hf(t,"s",e,n,r)},gauge:function(t,e,n,r){Hf(t,"g",e,qf(n),r)},timing:function(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"second",o=arguments.length>4?arguments[4]:void 0;if("function"===typeof n){const r=nt();return wr({op:"metrics.timing",name:e,startTime:r,onlyIfParent:!0},s=>Yn(()=>n(),()=>{},()=>{const n=nt();zf(t,e,n-r,(0,h.A)((0,h.A)({},o),{},{unit:"second"})),s.end(n)}))}zf(t,e,n,(0,h.A)((0,h.A)({},o),{},{unit:r}))},getMetricsAggregatorForClient:jf};function qf(t){return"string"===typeof t?parseInt(t):t}function Yf(t){return t.replace(/[^\w\-./]+/gi,"")}const Vf=[["\n","\\n"],["\r","\\r"],["\t","\\t"],["\\","\\\\"],["|","\\u{7c}"],[",","\\u{2c}"]];function Gf(t){return[...t].reduce((t,e)=>t+function(t){for(const[e,n]of Vf)if(t===e)return n;return t}(e),"")}function Xf(t,e){U.log("Flushing aggregated metrics, number of metrics: ".concat(e.length));const n=function(t,e,n,r){const o={sent_at:(new Date).toISOString()};n&&n.sdk&&(o.sdk={name:n.sdk.name,version:n.sdk.version});r&&e&&(o.dsn=Jn(e));const s=function(t){const e=function(t){let e="";for(const n of t){const t=Object.entries(n.tags),r=t.length>0?"|#".concat(t.map(t=>{let[e,n]=t;return"".concat(e,":").concat(n)}).join(",")):"";e+="".concat(n.name,"@").concat(n.unit,":").concat(n.metric,"|").concat(n.metricType).concat(r,"|T").concat(n.timestamp,"\n")}return e}(t);return[{type:"statsd",length:e.length},e]}(t);return Qn(o,[s])}(e,t.getDsn(),t.getSdkMetadata(),t.getOptions().tunnel);t.sendEnvelope(n)}const Jf={[Pf]:class{constructor(t){this._value=t}get weight(){return 1}add(t){this._value+=t}toString(){return"".concat(this._value)}},[Ff]:class{constructor(t){this._last=t,this._min=t,this._max=t,this._sum=t,this._count=1}get weight(){return 5}add(t){this._last=t,t<this._min&&(this._min=t),t>this._max&&(this._max=t),this._sum+=t,this._count++}toString(){return"".concat(this._last,":").concat(this._min,":").concat(this._max,":").concat(this._sum,":").concat(this._count)}},[Uf]:class{constructor(t){this._value=[t]}get weight(){return this._value.length}add(t){this._value.push(t)}toString(){return this._value.join(":")}},[Bf]:class{constructor(t){this.first=t,this._value=new Set([t])}get weight(){return this._value.size}add(t){this._value.add(t)}toString(){return Array.from(this._value).map(t=>"string"===typeof t?function(t){let e=0;for(let n=0;n<t.length;n++)e=(e<<5)-e+t.charCodeAt(n),e&=e;return e>>>0}(t):t).join(":")}}};class Kf{constructor(t){this._client=t,this._buckets=new Map,this._interval=setInterval(()=>this.flush(),5e3)}add(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"none",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:nt();const i=Math.floor(s),a=e.replace(/[^\w\-.]+/gi,"_");const c=function(t){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[Yf(n)]=Gf(String(t[n])));return e}(o),u=function(t){return t.replace(/[^\w]+/gi,"_")}(r),l=function(t,e,n,r){const o=Object.entries(Z(r)).sort((t,e)=>t[0].localeCompare(e[0]));return"".concat(t).concat(e).concat(n).concat(o)}(t,a,u,c);let d=this._buckets.get(l);const p=d&&"s"===t?d.metric.weight:0;d?(d.metric.add(n),d.timestamp<i&&(d.timestamp=i)):(d={metric:new Jf[t](n),timestamp:i,metricType:t,name:a,unit:u,tags:c}
1,this._buckets.set(l,d));je(t,a,"string"===typeof n?d.metric.weight-p:n,u,o,l)}flush(){if(0===this._buckets.size)return;const t=Array.from(this._buckets.values());Xf(this._client,t),this._buckets.clear()}close(){clearInterval(this._interval),this.flush()}}const $f={increment:function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2?arguments[2]:void 0;Wf.increment(Kf,t,e,n)},distribution:function(t,e,n){Wf.distribution(Kf,t,e,n)},set:function(t,e,n){Wf.set(Kf,t,e,n)},gauge:function(t,e,n){Wf.gauge(Kf,t,e,n)},timing:function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"second",r=arguments.length>3?arguments[3]:void 0;return Wf.timing(Kf,t,e,n,r)}};var Zf=n(454);function Qf(t){return"number"===typeof t&&isFinite(t)}function tm(t,e,n,r){let o=Object.assign({},((0,Zf.A)(r),r));const s=Re(t).start_timestamp;return s&&s>e&&"function"===typeof t.updateStartTime&&t.updateStartTime(e),xr(t,()=>{const t=kr((0,h.A)({startTime:e},o));return t&&t.end(n),t})}function em(t){const e=Lt();if(!e)return;const{name:n,transaction:r,attributes:o,startTime:s}=t,{release:i,environment:a}=e.getOptions(),c=e.getIntegrationByName("Replay"),u=c&&c.getReplayId(),l=It(),d=l.getUser(),p=void 0!==d?d.email||d.id||d.ip_address:void 0;let f;try{f=l.getScopeData().contexts.profile.profile_id}catch(m){}return kr({name:n,attributes:(0,h.A)({release:i,environment:a,user:p||void 0,profile_id:f||void 0,replay_id:u||void 0,transaction:r,"user_agent.original":is.navigator&&is.navigator.userAgent},o),startTime:s,experimental:{standalone:!0}})}function nm(){return is&&is.addEventListener&&is.performance}function rm(t){return t/1e3}function om(t){let e="unknown",n="unknown",r="";for(const o of t){if("/"===o){[e,n]=t.split("/");break}if(!isNaN(Number(o))){e="h"===r?"http":r,n=t.split(r)[1];break}r+=o}return r===t&&(e=r),{name:e,version:n}}function sm(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=Lt();if(!function(){const t=Lt();return!!t&&!1!==t.getOptions().enabled&&!!t.getTransport()}()||!e)return{};const n=Tt(St());if(n.getTraceData)return n.getTraceData(t);const r=It(),o=t.span||Ue(),s=o?Te(o):function(t){const{traceId:e,sampled:n,spanId:r}=t.getPropagationContext();return ke(e,r,n)}(r),i=de(o?Ge(o):Ve(e,r));return Se.test(s)?{"sentry-trace":s,baggage:i}:(U.warn("Invalid sentry-trace data. Cannot generate trace data"),{})}function im(t,e,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"auto.http.browser";if(!t.fetchData)return;const s=he()&&e(t.fetchData.url);if(t.endTimestamp&&s){const e=t.fetchData.__span;if(!e)return;const n=r[e];return void(n&&(!function(t,e){if(e.response){be(t,e.response.status);const n=e.response&&e.response.headers&&e.response.headers.get("content-length");if(n){const e=parseInt(n);e>0&&t.setAttribute("http.response_content_length",e)}}else e.error&&t.setStatus({code:ye,message:"internal_error"});t.end()}(n,t),delete r[e]))}const{method:c,url:u}=t.fetchData,l=function(t){try{return new URL(t).href}catch(e){return}}(u),d=l?Xs(l).host:void 0,p=!!Ue(),h=s&&p?kr({name:"".concat(c," ").concat(u),attributes:{url:u,type:"fetch","http.method":c,"http.url":l,"server.address":d,[a]:o,[i]:"http.client"}}):new Gn;if(t.fetchData.__span=h.spanContext().spanId,r[h.spanContext().spanId]=h,n(t.fetchData.url)){const e=t.args[0],n=t.args[1]||{},r=am(e,n,he()&&p?h:void 0);r&&(t.args[1]=n,n.headers=r)}return h}function am(t,e,n){const r=sm({span:n}),o=r["sentry-trace"],s=r.baggage;if(!o)return;const i=e.headers||(function(t){return"undefined"!==typeof Request&&x(t,Request)}(t)?t.headers:void 0);if(i){if(function(t){return"undefined"!==typeof Headers&&x(t,Headers)}(i)){const t=new Headers(i);if(t.set("sentry-trace",o),s){const e=t.get("baggage");if(e){const n=cm(e);t.set("baggage",n?"".concat(n,",").concat(s):s)}else t.set("baggage",s)}return t}if(Array.isArray(i)){const t=[...i.filter(t=>!(Array.isArray(t)&&"sentry-trace"===t[0])).map(t=>{if(Array.isArray(t)&&"baggage"===t[0]&&"string"===typeof t[1]){const[e,n,...r]=t;return[e,cm(n),...r]}return t}),["sentry-trace",o]];
1return s&&t.push(["baggage",s]),t}{const t="baggage"in i?i.baggage:void 0;let e=[];return Array.isArray(t)?e=t.map(t=>"string"===typeof t?cm(t):t).filter(t=>""===t):t&&e.push(cm(t)),s&&e.push(s),(0,h.A)((0,h.A)({},i),{},{"sentry-trace":o,baggage:e.length>0?e.join(","):void 0})}}return(0,h.A)({},r)}function cm(t){return t.split(",").filter(t=>!t.split("=")[0].startsWith(ae)).join(",")}const um=new WeakMap,lm=new Map,dm={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function pm(t,e){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:o,shouldCreateSpanForRequest:s,enableHTTPTimings:c,tracePropagationTargets:u}=(0,h.A)({traceFetch:dm.traceFetch,traceXHR:dm.traceXHR,trackFetchStreamPerformance:dm.trackFetchStreamPerformance},e),l="function"===typeof s?s:t=>!0,d=t=>function(t,e){const n=Mo.location&&Mo.location.href;if(n){let o,s;try{o=new URL(t,n),s=new URL(n).origin}catch(r){return!1}const i=o.origin===s;return e?q(o.toString(),e)||i&&q(o.pathname,e):i}{const n=!!t.match(/^\/(?!\/)/);return e?q(t,e):n}}(t,u),p={};n&&(t.addEventProcessor(t=>("transaction"===t.type&&t.spans&&t.spans.forEach(t=>{if("http.client"===t.op){const e=lm.get(t.span_id);e&&(t.timestamp=e/1e3,lm.delete(t.span_id))}}),t)),o&&function(t){const e="fetch-body-resolved";An(e,t),Tn(e,()=>Ws(qs))}(t=>{if(t.response){const e=um.get(t.response);e&&t.endTimestamp&&lm.set(e,t.endTimestamp)}}),zs(t=>{const e=im(t,l,d,p);if(t.response&&t.fetchData.__span&&um.set(t.response,t.fetchData.__span),e){const n=mm(t.fetchData.url),r=n?Xs(n).host:void 0;e.setAttributes({"http.url":n,"server.address":r})}c&&e&&hm(e)})),r&&Ps(t=>{const e=function(t,e,n,r){const o=t.xhr,s=o&&o[Ns];if(!o||o.__sentry_own_request__||!s)return;const c=he()&&e(s.url);if(t.endTimestamp&&c){const t=o.__sentry_xhr_span_id__;if(!t)return;const e=r[t];return void(e&&void 0!==s.status_code&&(be(e,s.status_code),e.end(),delete r[t]))}const u=mm(s.url),l=u?Xs(u).host:void 0,d=!!Ue(),p=c&&d?kr({name:"".concat(s.method," ").concat(s.url),attributes:{type:"xhr","http.method":s.method,"http.url":u,url:s.url,"server.address":l,[a]:"auto.http.browser",[i]:"http.client"}}):new Gn;o.__sentry_xhr_span_id__=p.spanContext().spanId,r[o.__sentry_xhr_span_id__]=p,n(s.url)&&function(t,e){const{"sentry-trace":n,baggage:r}=sm({span:e});n&&function(t,e,n){try{t.setRequestHeader("sentry-trace",e),n&&t.setRequestHeader("baggage",n)}catch(r){}}(t,n,r)}(o,he()&&d?p:void 0);return p}(t,l,d,p);c&&e&&hm(e)})}function hm(t){const{url:e}=Re(t).data||{};if(!e||"string"!==typeof e)return;const n=Ra("resource",r=>{let{entries:o}=r;o.forEach(r=>{if(function(t){return"resource"===t.entryType&&"initiatorType"in t&&"string"===typeof t.nextHopProtocol&&("fetch"===t.initiatorType||"xmlhttprequest"===t.initiatorType)}(r)&&r.name.endsWith(e)){(function(t){const{name:e,version:n}=om(t.nextHopProtocol),r=[];if(r.push(["network.protocol.version",n],["network.protocol.name",e]),!ot)return r;return[...r,["http.request.redirect_start",fm(t.redirectStart)],["http.request.fetch_start",fm(t.fetchStart)],["http.request.domain_lookup_start",fm(t.domainLookupStart)],["http.request.domain_lookup_end",fm(t.domainLookupEnd)],["http.request.connect_start",fm(t.connectStart)],["http.request.secure_connection_start",fm(t.secureConnectionStart)],["http.request.connection_end",fm(t.connectEnd)],["http.request.request_start",fm(t.requestStart)],["http.request.response_start",fm(t.responseStart)],["http.request.response_end",fm(t.responseEnd)]]})(r).forEach(e=>t.setAttribute(...e)),setTimeout(n)}})})}function fm(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return((ot||performance.timeOrigin)+t)/1e3}function mm(t){try{return new URL(t,Mo.location.origin).href}catch(e){return}}function gm(){let t,e,n=0;if(!function(){try{return PerformanceObserver.supportedEntryTypes.includes("layout-shift")}catch(t){return!1}}())return;let r=!1;function o(){r||(r=!0,e&&function(t,e,n){ss&&U.log("Sending CLS span (".concat(t,")"));const r=rm((ot||0)+(e&&e.startTime||0)),o=It().getScopeData().transactionName,s=e?R(e.sources[0]&&e.sources[0].node):"Layout shift",c=Z({[a]:"auto.http.browser.cls",[i]:"ui.webvital.cls",[p]:e&&e.duration||0,"sentry.pageload.span_id":n}),d=em({name:s,transaction:o,attributes:c,startTime:r});d&&(d.addEvent("cls",{[u]:"",[l]:t}),d.end(r))}(n,t,e),s())}const s=Aa(e=>{let{metric:r}=e;const o=r.entries[r.entries.length-1];o&&(n=r.value,t=o)},!0);Yi(()=>{o()}),setTimeout(()=>{const t=Lt();if(!t)return;const n=t.on("startNavigationSpan",()=>{o(),n&&n()}),r=Ue(),s=r&&Be(r),i=s&&Re(s);i&&"pageload"===i.op&&(e=s.spanContext().spanId)},0)}let _m,ym,vm=0,bm={};function Sm(t){let{recordClsStandaloneSpans:e}=t;const n=nm();if(n&&ot){n.mark&&is.performance.mark("sentry-tracing-init");const t=Ia(t=>{let{metric:e}=t;const n=e.entries[e.entries.length-1];if(!n)return;const r=rm(ot),o=rm(n.startTime);bm.fid={value:e.value,unit:"millisecond"},bm["mark.fid"]={value:r+o,unit:"second"}}),r=Ta(t=>{let{metric:e}=t;const n=e.entries[e.entries.length-1];n&&(bm.lcp={value:e.value,unit:"millisecond"},_m=n)},!0),o=function(){return t=t=>{let{metric:e}=t;e.entries[e.entries.length-1]&&(bm.ttfb={value:e.value,unit:"millisecond"})},Ba("ttfb",t,Pa,xa);var t}(),s=e?gm():Aa(t=>{let{metric:e}=t;const n=e.entries[e.entries.length-1];n&&(bm.cls={value:e.value,unit:""},ym=n)},!0);return()=>{t(),r(),o(),s&&s()}}return()=>{}}function wm(t,e){const n=nm();if(!n||!n.getEntries||!ot)return;const r=rm(ot),o=n.getEntries(),{op:s,start_timestamp:i}=Re(t);
1if(o.slice(vm).forEach(e=>{const n=rm(e.startTime),o=rm(Math.max(0,e.duration));if(!("navigation"===s&&i&&r+n<i))switch(e.entryType){case"navigation":!function(t,e,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{km(t,e,r,n)}),km(t,e,"secureConnection",n,"TLS/SSL"),km(t,e,"fetch",n,"cache"),km(t,e,"domainLookup",n,"DNS"),function(t,e,n){const r=n+rm(e.requestStart),o=n+rm(e.responseEnd),s=n+rm(e.responseStart);e.responseEnd&&(tm(t,r,o,{op:"browser.request",name:e.name,attributes:{[a]:"auto.ui.browser.metrics"}}),tm(t,s,o,{op:"browser.response",name:e.name,attributes:{[a]:"auto.ui.browser.metrics"}}))}(t,e,n)}(t,e,r);break;case"mark":case"paint":case"measure":{!function(t,e,n,r,o){const s=Hi(!1),i=rm(s?s.requestStart:0),c=o+Math.max(n,i),u=o+n,l=u+r,d={[a]:"auto.resource.browser.metrics"};c!==u&&(d["sentry.browser.measure_happened_before_request"]=!0,d["sentry.browser.measure_start_time"]=c);tm(t,c,l,{name:e.name,op:e.entryType,attributes:d})}(t,e,n,o,r);const s=Ki(),i=e.startTime<s.firstHiddenTime;"first-paint"===e.name&&i&&(bm.fp={value:e.startTime,unit:"millisecond"}),"first-contentful-paint"===e.name&&i&&(bm.fcp={value:e.startTime,unit:"millisecond"});break}case"resource":!function(t,e,n,r,o,s){if("xmlhttprequest"===e.initiatorType||"fetch"===e.initiatorType)return;const i=Xs(n),c={[a]:"auto.resource.browser.metrics"};Em(c,e,"transferSize","http.response_transfer_size"),Em(c,e,"encodedBodySize","http.response_content_length"),Em(c,e,"decodedBodySize","http.decoded_response_content_length");const u=e.deliveryType;null!=u&&(c["http.response_delivery_type"]=u);const l=e.renderBlockingStatus;l&&(c["resource.render_blocking_status"]=l);i.protocol&&(c["url.scheme"]=i.protocol.split(":").pop());i.host&&(c["server.address"]=i.host);c["url.same_origin"]=n.includes(is.location.origin);const{name:d,version:p}=om(e.nextHopProtocol);c["network.protocol.name"]=d,c["network.protocol.version"]=p;const h=s+r,f=h+o;tm(t,h,f,{name:n.replace(is.location.origin,""),op:e.initiatorType?"resource.".concat(e.initiatorType):"resource.other",attributes:c})}(t,e,e.name,n,o,r)}}),vm=Math.max(o.length-1,0),function(t){const e=is.navigator;if(!e)return;const n=e.connection;n&&(n.effectiveType&&t.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&t.setAttribute("connectionType",n.type),Qf(n.rtt)&&(bm["connection.rtt"]={value:n.rtt,unit:"millisecond"}));Qf(e.deviceMemory)&&t.setAttribute("deviceMemory","".concat(e.deviceMemory," GB"));Qf(e.hardwareConcurrency)&&t.setAttribute("hardwareConcurrency",String(e.hardwareConcurrency))}(t),"pageload"===s){!function(t){const e=Hi(!1);if(!e)return;const{responseStart:n,requestStart:r}=e;r<=n&&(t["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}(bm);const n=bm["mark.fid"];n&&bm.fid&&(tm(t,n.value,n.value+rm(bm.fid.value),{name:"first input delay",op:"ui.action",attributes:{[a]:"auto.ui.browser.metrics"}}),delete bm["mark.fid"]),"fcp"in bm&&e.recordClsOnPageloadSpan||delete bm.cls,Object.entries(bm).forEach(t=>{let[e,n]=t;pr(e,n.value,n.unit)}),t.setAttribute("performance.timeOrigin",r),t.setAttribute("performance.activationStart",zi()),function(t){_m&&(_m.element&&t.setAttribute("lcp.element",R(_m.element)),_m.id&&t.setAttribute("lcp.id",_m.id),_m.url&&t.setAttribute("lcp.url",_m.url.trim().slice(0,200)),null!=_m.loadTime&&t.setAttribute("lcp.loadTime",_m.loadTime),null!=_m.renderTime&&t.setAttribute("lcp.renderTime",_m.renderTime),t.setAttribute("lcp.size",_m.size));ym&&ym.sources&&ym.sources.forEach((e,n)=>t.setAttribute("cls.source.".concat(n+1),R(e.node)))}(t)}_m=void 0,ym=void 0,bm={}}function km(t,e,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:n;const s=function(t){if("secureConnection"===t)return"connectEnd";if("fetch"===t)return"domainLookupStart";return"".concat(t,"End")}(n),i=e[s],c=e["".concat(n,"Start")];c&&i&&tm(t,r+rm(c),r+rm(i),{op:"browser.".concat(o),name:e.name,attributes:{[a]:"auto.ui.browser.metrics"}})}function Em(t,e,n,r){const o=e[n];null!=o&&o<2147483647&&(t[r]=o)}const xm=[],Cm=new Map;function Am(){if(nm()&&ot){const t=Ma(t=>{let{metric:e}=t;if(void 0==e.value)return;const n=e.entries.find(t=>t.duration===e.value&&Tm[t.name]);if(!n)return;const{interactionId:r}=n,o=Tm[n.name],s=rm(ot+n.startTime),c=rm(e.value),d=Ue(),h=d?Be(d):void 0,f=(null!=r?Cm.get(r):void 0)||h,m=f?Re(f).description:It().getScopeData().transactionName,g=em({
1name:R(n.target),transaction:m,attributes:Z({[a]:"auto.http.browser.inp",[i]:"ui.interaction.".concat(o),[p]:n.duration}),startTime:s});g&&(g.addEvent("inp",{[u]:"millisecond",[l]:e.value}),g.end(s+c))});return()=>{t()}}return()=>{}}const Tm={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};const Im={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};function Mm(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new Map;let r,o=!1,s="externalFinish",i=!e.disableAutoFinish;const a=[],{idleTimeout:u=Im.idleTimeout,finalTimeout:l=Im.finalTimeout,childSpanTimeout:d=Im.childSpanTimeout,beforeSpanEnd:p}=e,h=Lt();if(!h||!he())return new Gn;const f=It(),m=Ue(),g=function(t){const e=kr(t);return _t(It(),e),Ut&&U.log("[Tracing] Started span is an idle span"),e}(t);function _(){r&&(clearTimeout(r),r=void 0)}function y(t){_(),r=setTimeout(()=>{!o&&0===n.size&&i&&(s="idleTimeout",g.end(t))},u)}function v(t){r=setTimeout(()=>{!o&&i&&(s="heartbeatFailed",g.end(t))},d)}function b(t){o=!0,n.clear(),a.forEach(t=>t()),_t(f,m);const e=Re(g),{start_timestamp:r}=e;if(!r)return;(e.data||{})[c]||g.setAttribute(c,s),U.log('[Tracing] Idle span "'.concat(e.op,'" finished'));const i=Fe(g).filter(t=>t!==g);let d=0;i.forEach(e=>{e.isRecording()&&(e.setStatus({code:ye,message:"cancelled"}),e.end(t),Ut&&U.log("[Tracing] Cancelling span since span ended early",JSON.stringify(e,void 0,2)));const n=Re(e),{timestamp:r=0,start_timestamp:o=0}=n,s=o<=t,i=r-o<=(l+u)/1e3;if(Ut){const t=JSON.stringify(e,void 0,2);s?i||U.log("[Tracing] Discarding span since it finished after idle span final timeout",t):U.log("[Tracing] Discarding span since it happened after idle span was finished",t)}i&&s||(!function(t,e){t[Le]&&t[Le].delete(e)}(g,e),d++)}),d>0&&g.setAttribute("sentry.idle_span_discarded_spans",d)}return g.end=new Proxy(g.end,{apply(t,e,n){p&&p(g);const[r,...o]=n,s=Ie(r||nt()),i=Fe(g).filter(t=>t!==g);
1if(!i.length)return b(s),Reflect.apply(t,e,[s,...o]);const a=i.map(t=>Re(t).timestamp).filter(t=>!!t),c=a.length?Math.max(...a):void 0,u=Re(g).start_timestamp,d=Math.min(u?u+l/1e3:1/0,Math.max(u||-1/0,Math.min(s,c||1/0)));return b(d),Reflect.apply(t,e,[d,...o])}}),a.push(h.on("spanStart",t=>{if(o||t===g||Re(t).timestamp)return;var e;Fe(g).includes(t)&&(e=t.spanContext().spanId,_(),n.set(e,!0),v(nt()+d/1e3))})),a.push(h.on("spanEnd",t=>{var e;o||(e=t.spanContext().spanId,n.has(e)&&n.delete(e),0===n.size&&y(nt()+u/1e3))})),a.push(h.on("idleSpanEnableAutoFinish",t=>{t===g&&(i=!0,y(),n.size&&v())})),e.disableAutoFinish||y(),setTimeout(()=>{o||(g.setStatus({code:ye,message:"deadline_exceeded"}),s="finalTimeout",g.end())},l),g}const Rm=(0,h.A)((0,h.A)({},Im),{},{instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,_experiments:{}},dm),Om=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Fn();const{enableInp:e,enableLongTask:n,enableLongAnimationFrame:r,_experiments:{enableInteractions:s,enableStandaloneClsSpans:i},beforeStartSpan:u,idleTimeout:l,finalTimeout:d,childSpanTimeout:p,markBackgroundSpan:f,traceFetch:m,traceXHR:g,trackFetchStreamPerformance:_,shouldCreateSpanForRequest:y,enableHTTPTimings:v,instrumentPageLoad:b,instrumentNavigation:S}=(0,h.A)((0,h.A)({},Rm),t),w=Sm({recordClsStandaloneSpans:i||!1});e&&Am(),r&&A.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?new PerformanceObserver(t=>{const e=Ue();if(e)for(const n of t.getEntries()){if(!n.scripts[0])continue;const t=rm(ot+n.startTime),{start_timestamp:r,op:o}=Re(e);if("navigation"===o&&r&&t<r)continue;const s=rm(n.duration),i={[a]:"auto.ui.browser.metrics"},c=n.scripts[0],{invoker:u,invokerType:l,sourceURL:d,sourceFunctionName:p,sourceCharPosition:h}=c;i["browser.script.invoker"]=u,i["browser.script.invoker_type"]=l,d&&(i["code.filepath"]=d),p&&(i["code.function"]=p),-1!==h&&(i["browser.script.source_char_position"]=h),tm(e,t,t+s,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:i})}}).observe({type:"long-animation-frame",buffered:!0}):n&&Ra("longtask",t=>{let{entries:e}=t;const n=Ue();if(!n)return;const{op:r,start_timestamp:o}=Re(n);for(const s of e){const t=rm(ot+s.startTime),e=rm(s.duration);"navigation"===r&&o&&t<o||tm(n,t,t+e,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[a]:"auto.ui.browser.metrics"}})}}),s&&Ra("event",t=>{let{entries:e}=t;const n=Ue();
1if(n)for(const r of e)if("click"===r.name){const t=rm(ot+r.startTime),e=rm(r.duration),o={name:R(r.target),op:"ui.interaction.".concat(r.name),startTime:t,attributes:{[a]:"auto.ui.browser.metrics"}},s=L(r.target);s&&(o.attributes["ui.component_name"]=s),tm(n,t,t+e,o)}});const k={name:void 0,source:void 0};function E(t,e){const n="pageload"===e.op,r=u?u(e):e,s=r.attributes||{};e.name!==r.name&&(s[o]="custom",r.attributes=s),k.name=r.name,k.source=s[o];const a=Mm(r,{idleTimeout:l,finalTimeout:d,childSpanTimeout:p,disableAutoFinish:n,beforeSpanEnd:t=>{w(),wm(t,{recordClsOnPageloadSpan:!i})}});function c(){["interactive","complete"].includes(Mo.document.readyState)&&t.emit("idleSpanEnableAutoFinish",a)}return n&&Mo.document&&(Mo.document.addEventListener("readystatechange",()=>{c()}),c()),a}return{name:"BrowserTracing",afterAllSetup(t){let n,r=Mo.location&&Mo.location.href;function i(){n&&!Re(n).timestamp&&(Uo&&U.log("[Tracing] Finishing current active span with op: ".concat(Re(n).op)),n.end())}t.on("startNavigationSpan",e=>{Lt()===t&&(i(),n=E(t,(0,h.A)({op:"navigation"},e)))}),t.on("startPageLoadSpan",function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Lt()!==t)return;i();const o=we(r.sentryTrace||Nm("sentry-trace"),r.baggage||Nm("baggage"));It().setPropagationContext(o),n=E(t,(0,h.A)({op:"pageload"},e))}),t.on("spanEnd",t=>{const e=Re(t).op;if(t!==Be(t)||"navigation"!==e&&"pageload"!==e)return;const n=It(),r=n.getPropagationContext();n.setPropagationContext((0,h.A)((0,h.A)({},r),{},{sampled:void 0!==r.sampled?r.sampled:Oe(t),dsc:r.dsc||Ge(t)}))}),Mo.location&&(b&&Dm(t,{name:Mo.location.pathname,startTime:ot?ot/1e3:void 0,attributes:{[o]:"url",[a]:"auto.pageload.browser"}}),S&&js(e=>{let{to:n,from:s}=e;void 0===s&&r&&-1!==r.indexOf(n)?r=void 0:s!==n&&(r=void 0,Lm(t,{name:Mo.location.pathname,attributes:{[o]:"url",[a]:"auto.navigation.browser"}}))})),f&&(Mo&&Mo.document?Mo.document.addEventListener("visibilitychange",()=>{const t=Ue();if(!t)return;const e=Be(t);if(Mo.document.hidden&&e){const t="cancelled",{op:n,status:r}=Re(e);Uo&&U.log("[Tracing] Transaction: ".concat(t," -> since tab moved to the background, op: ").concat(n)),r||e.setStatus({code:ye,message:t}),e.setAttribute("sentry.cancellation_reason","document.hidden"),e.end()}}):Uo&&U.warn("[Tracing] Could not set up background tab detection due to lack of global document")),s&&function(t,e,n,r){let s;const i=()=>{const i="ui.action.click",a=Ue(),u=a&&Be(a);if(u){const t=Re(u).op;if(["navigation","pageload"].includes(t))return void(Uo&&U.warn("[Tracing] Did not create ".concat(i," span because a pageload or navigation span is in progress.")))}s&&(s.setAttribute(c,"interactionInterrupted"),s.end(),s=void 0),r.name?s=Mm({name:r.name,op:i,attributes:{[o]:r.source||"url"}},{idleTimeout:t,finalTimeout:e,childSpanTimeout:n}):Uo&&U.warn("[Tracing] Did not create ".concat(i," transaction because _latestRouteName is missing."))};Mo.document&&addEventListener("click",i,{once:!1,capture:!0})}(l,d,p,k),e&&function(){const t=t=>{let{entries:e}=t;const n=Ue(),r=n&&Be(n);e.forEach(t=>{if(!function(t){return"duration"in t}(t)||!r)return;const e=t.interactionId;if(null!=e&&!Cm.has(e)){if(xm.length>10){const t=xm.shift();Cm.delete(t)}xm.push(e),Cm.set(e,r)}})};Ra("event",t),Ra("first-input",t)}(),pm(t,{traceFetch:m,traceXHR:g,trackFetchStreamPerformance:_,tracePropagationTargets:t.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:y,enableHTTPTimings:v})}}};function Dm(t,e,n){t.emit("startPageLoadSpan",e,n),It().setTransactionName(e.name);const r=Ue();return"pageload"===(r&&Re(r).op)?r:void 0}function Lm(t,e){Mt().setPropagationContext({traceId:ht()}),It().setPropagationContext({traceId:ht()}),t.emit("startNavigationSpan",e),It().setTransactionName(e.name);const n=Ue();return"navigation"===(n&&Re(n).op)?n:void 0}function Nm(t){const e=(n="meta[name=".concat(t,"]"),I.document&&I.document.querySelector?I.document.querySelector(n):null);var n;return e?e.getAttribute("content"):void 0}const Pm=100,Fm=5e3,Bm=36e5;function Um(t){function e(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];Ut&&U.info("[Offline]:",...e)}return n=>{const r=t(n);if(!n.createStore)throw new Error("No `createStore` function was provided");const o=n.createStore(n);let s,i=Fm;function a(t){s&&clearTimeout(s),s=setTimeout(async()=>{s=void 0;const t=await o.shift();t&&(e("Attempting to send previously queued event"),t[0].sent_at=(new Date).toISOString(),u(t,!0).catch(t=>{e("Failed to retry sending",t)}))},t),"number"!==typeof s&&s.unref&&s.unref()}function c(){s||(a(i),i=Math.min(2*i,Bm))}async function u(t){let s=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!s&&nr(t,["replay_event","replay_recording"]))return await o.push(t),a(Pm),{};try{const e=await r.send(t);let n=Pm;if(e)if(e.headers&&e.headers["retry-after"])n=Fr(e.headers["retry-after"]);
1else if(e.headers&&e.headers["x-sentry-rate-limits"])n=6e4;else if((e.statusCode||0)>=400)return e;return a(n),i=Fm,e}catch(u){if(await function(t,e,r){return!nr(t,["client_report"])&&(!n.shouldStore||n.shouldStore(t,e,r))}(t,u,i))return s?await o.unshift(t):await o.push(t),c(),e("Error sending. Event queued.",u),{};throw u}}return n.flushAtStartup&&c(),{send:u,flush:t=>(void 0===t&&(i=Fm,a(Pm)),r.flush(t))}}}function jm(t){return new Promise((e,n)=>{t.oncomplete=t.onsuccess=()=>e(t.result),t.onabort=t.onerror=()=>n(t.error)})}function Hm(t){return jm(t.getAllKeys())}function zm(t){let e;function n(){return void 0==e&&(e=function(t,e){const n=indexedDB.open(t);n.onupgradeneeded=()=>n.result.createObjectStore(e);const r=jm(n);return t=>r.then(n=>t(n.transaction(e,"readwrite").objectStore(e)))}(t.dbName||"sentry-offline",t.storeName||"queue")),e}return{push:async e=>{try{const r=await or(e);await function(t,e,n){return t(t=>Hm(t).then(r=>{if(!(r.length>=n))return t.put(e,Math.max(...r,0)+1),jm(t.transaction)}))}(n(),r,t.maxQueueSize||30)}catch(r){}},unshift:async e=>{try{const r=await or(e);await function(t,e,n){return t(t=>Hm(t).then(r=>{if(!(r.length>=n))return t.put(e,Math.min(...r,0)-1),jm(t.transaction)}))}(n(),r,t.maxQueueSize||30)}catch(r){}},shift:async()=>{try{const t=await function(t){return t(t=>Hm(t).then(e=>{const n=e[0];if(null!=n)return jm(t.get(n)).then(e=>(t.delete(n),jm(t.transaction).then(()=>e)))}))}(n());if(t)return sr(t)}catch(t){}}}}function Wm(){return function(t){return e=>{const n=t((0,h.A)((0,h.A)({},e),{},{createStore:zm}));return Mo.addEventListener("online",async t=>{await n.flush()}),n}}(Um(arguments.length>0&&void 0!==arguments[0]?arguments[0]:ds))}const qm=1e6,Ym=String(0),Vm="main";let Gm="",Xm="",Jm="",Km=Mo.navigator&&Mo.navigator.userAgent||"",$m="";const Zm=Mo.navigator&&Mo.navigator.language||Mo.navigator&&Mo.navigator.languages&&Mo.navigator.languages[0]||"";const Qm=Mo.navigator&&Mo.navigator.userAgentData;var tg;function eg(t){return function(t){return!("thread_metadata"in t)}(t)?function(t){let e,n=0;const r={samples:[],stacks:[],frames:[],thread_metadata:{[Ym]:{name:Vm}}},o=t.samples[0];if(!o)return r;const s=o.timestamp,i="number"===typeof performance.timeOrigin?performance.timeOrigin:ot||0,a=i-(ot||i);return t.samples.forEach((o,i)=>{if(void 0===o.stackId)return void 0===e&&(e=n,r.stacks[e]=[],n++),void(r.samples[i]={elapsed_since_start_ns:((o.timestamp+a-s)*qm).toFixed(0),stack_id:e,thread_id:Ym});let c=t.stacks[o.stackId];const u=[];for(;c;){u.push(c.frameId);const e=t.frames[c.frameId];e&&void 0===r.frames[c.frameId]&&(r.frames[c.frameId]={function:e.name,abs_path:"number"===typeof e.resourceId?t.resources[e.resourceId]:void 0,lineno:e.line,colno:e.column}),c=void 0===c.parentId?void 0:t.stacks[c.parentId]}const l={elapsed_since_start_ns:((o.timestamp+a-s)*qm).toFixed(0),stack_id:n,thread_id:Ym};r.stacks[n]=u,r.samples[i]=l,n++}),r}(t):t}function ng(t,e,n,r){if("transaction"!==r.type)throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");if(void 0===n||null===n)throw new TypeError("Cannot construct profiling event envelope without a valid profile. Got ".concat(n," instead."));const o=function(t){const e=t&&t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id;return"string"===typeof e&&32!==e.length&&Uo&&U.log("[Profiling] Invalid traceId: ".concat(e," on profiled event")),"string"!==typeof e?"":e}(r),s=eg(n),i=e||("number"===typeof r.start_timestamp?1e3*r.start_timestamp:1e3*nt()),a="number"===typeof r.timestamp?1e3*r.timestamp:1e3*nt();return{event_id:t,timestamp:new Date(i).toISOString(),platform:"javascript",version:"1",release:r.release||"",environment:r.environment||Bt,runtime:{name:"javascript",version:Mo.navigator.userAgent},os:{name:Gm,version:Xm,build_number:Km},device:{locale:Zm,model:$m,manufacturer:Km,architecture:Jm,is_emulator:!1},debug_meta:{images:og(n.resources)},profile:s,transactions:[{name:r.transaction||"",id:r.event_id||st(),trace_id:o,active_thread_id:Ym,relative_start_ns:"0",relative_end_ns:(1e6*(a-i)).toFixed(0)}]}}function rg(t){return"pageload"===Re(t).op}function og(t){const e=Lt(),n=e&&e.getOptions(),r=n&&n.stackParser;return r?function(t,e){const n=Xt(t);if(!n)return[];const r=[];for(const o of e)o&&n[o]&&r.push({type:"sourcemap",code_file:o,debug_id:n[o]});return r}(r,t):[]}"object"===typeof(tg=Qm)&&null!==tg&&"getHighEntropyValues"in tg&&Qm.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(t=>{if(Gm=t.platform||"",Jm=t.architecture||"",$m=t.model||"",Xm=t.platformVersion||"",t.fullVersionList&&t.fullVersionList.length>0){const e=t.fullVersionList[t.fullVersionList.length-1];Km="".concat(e.brand," ").concat(e.version)}}).catch(t=>{});let sg=!1;function ig(t){if(sg)return Uo&&U.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!t.isRecording())return Uo&&U.log("[Profiling] Discarding profile because transaction was not sampled."),!1;const e=Lt(),n=e&&e.getOptions();if(!n)return Uo&&U.log("[Profiling] Profiling disabled, no options foun
1d."),!1;const r=n.profilesSampleRate;if(!("number"!==typeof(o=r)&&"boolean"!==typeof o||"number"===typeof o&&isNaN(o)?(Uo&&U.warn("[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ".concat(JSON.stringify(o)," of type ").concat(JSON.stringify(typeof o),".")),0):!0===o||!1===o||!(o<0||o>1)||(Uo&&U.warn("[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ".concat(o,".")),0)))return Uo&&U.warn("[Profiling] Discarding profile because of invalid sample rate."),!1;var o;if(!r)return Uo&&U.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1;return!!(!0===r||Math.random()<r)||(Uo&&U.log("[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ".concat(Number(r),")")),!1)}function ag(t,e,n,r){return function(t){return t.samples.length<2?(Uo&&U.log("[Profiling] Discarding profile because it contains less than 2 samples"),!1):!!t.frames.length||(Uo&&U.log("[Profiling] Discarding profile because it contains no frames"),!1)}(n)?ng(t,e,n,r):null}const cg=new Map;function ug(t){const e=cg.get(t);return e&&cg.delete(t),e}function lg(t){let e;rg(t)&&(e=1e3*nt());const n=function(){const t=Mo.Profiler;if("function"!==typeof t)return void(Uo&&U.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object."));const e=Math.floor(3e3);try{return new t({sampleInterval:10,maxBufferSize:e})}catch(n){Uo&&(U.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),U.log("[Profiling] Disabling profiling for current user session.")),sg=!0}}();if(!n)return;Uo&&U.log("[Profiling] started profiling span: ".concat(Re(t).description));const r=st();async function o(){if(t&&n)return n.stop().then(e=>{s&&(Mo.clearTimeout(s),s=void 0),Uo&&U.log("[Profiling] stopped profiling of span: ".concat(Re(t).description)),e?function(t,e){if(cg.set(t,e),cg.size>30){const t=cg.keys().next().value;cg.delete(t)}}(r,e):Uo&&U.log("[Profiling] profiler returned null profile for: ".concat(Re(t).description),"this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started")}).catch(t=>{Uo&&U.log("[Profiling] error while stopping profiler:",t)})}It().setContext("profile",{profile_id:r,start_timestamp:e});let s=Mo.setTimeout(()=>{Uo&&U.log("[Profiling] max profile duration elapsed, stopping profiling for:",Re(t).description),o()},3e4);const i=t.end.bind(t);t.end=function(){return t?(o().then(()=>{i()},()=>{i()}),t):i()}}const dg=()=>({name:"BrowserProfiling",setup(t){const e=Ue(),n=e&&Be(e);n&&rg(n)&&ig(n)&&lg(n),t.on("spanStart",t=>{t===Be(t)&&ig(t)&&lg(t)}),t.on("beforeEnvelope",t=>{if(!cg.size)return;const e=function(t){const e=[];return er(t,(t,n)=>{if("transaction"===n)for(let r=1;r<t.length;r++){const n=t[r];n&&n.contexts&&n.contexts.profile&&n.contexts.profile.profile_id&&e.push(t[r])}}),e}(t);if(!e.length)return;const n=[];for(const r of e){const t=r&&r.contexts,e=t&&t.profile&&t.profile.profile_id,o=t&&t.profile&&t.profile.start_timestamp;if("string"!==typeof e){Uo&&U.log("[Profiling] cannot find profile for a span without a profile context");continue}if(!e){Uo&&U.log("[Profiling] cannot find profile for a span without a profile context");continue}t&&t.profile&&delete t.profile;const s=ug(e);if(!s){Uo&&U.log("[Profiling] Could not retrieve profile for span: ".concat(e));continue}const i=ag(e,o,s,r);i&&n.push(i)}!function(t,e){if(!e.length)return t;for(const n of e)t[1].push([{type:"profile"},n])}(t,n)})}});const pg=function(){const t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).sidecarUrl||"http://localhost:8969/stream";return{name:"SpotlightBrowser",setup:()=>{Uo&&U.log("Using Sidecar URL",t)},processEvent:t=>function(t){return Boolean("transaction"===t.type&&t.spans&&t.contexts&&t.contexts.trace&&"ui.action.click"===t.contexts.trace.op&&t.spans.some(t=>{let{description:e}=t;return e&&e.includes("#sentry-spotlight")}))}(t)?null:t,afterAllSetup:e=>{!function(t,e){const n=cs("fetch");let r=0;t.on("beforeEnvelope",t=>{r>3?U.warn("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests:",r):n(e,{method:"POST",body:or(t),headers:{"Content-Type":"application/x-sentry-envelope"},mode:"cors"}).then(t=>{t.status>=200&&t.status<400&&(r=0)},t=>
1{r++,U.error("Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/",t)})})}(e,t)}}};const hg=100;function fg(t){const e=It().getScopeData().contexts.flags,n=e?e.values:[];return n.length?(void 0===t.contexts&&(t.contexts={}),t.contexts.flags={values:[...n]},t):t}function mg(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:hg;const r=It().getScopeData().contexts;r.flags||(r.flags={values:[]});!function(t,e,n,r){if("boolean"!==typeof n)return;if(t.length>r)return void(Uo&&U.error("[Feature Flags] insertToFlagBuffer called on a buffer larger than maxSize=".concat(r)));const o=t.findIndex(t=>t.flag===e);-1!==o&&t.splice(o,1);t.length===r&&t.shift();t.push({flag:e,result:n})}(r.flags.values,t,e,n)}const gg=()=>({name:"FeatureFlags",processEvent:(t,e,n)=>fg(t),addFeatureFlag(t,e){mg(t,e)}}),_g=()=>({name:"LaunchDarkly",processEvent:(t,e,n)=>fg(t)});function yg(){return{name:"sentry-flag-auditor",type:"flag-used",synchronous:!0,method:(t,e,n)=>{mg(t,e.value)}}}const vg=()=>({name:"OpenFeature",processEvent:(t,e,n)=>fg(t)});class bg{after(t,e){mg(e.flagKey,e.value)}error(t,e,n){mg(t.flagKey,t.defaultValue)}}const Sg=t=>{let{unleashClientClass:e}=t;return{name:"Unleash",processEvent:(t,e,n)=>fg(t),setupOnce(){Y(e.prototype,"isEnabled",wg)}}};function wg(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];const o=n[0],s=t.apply(this,n);return"string"===typeof o&&"boolean"===typeof s?mg(o,s):Uo&&U.error("[Feature Flags] UnleashClient.isEnabled does not match expected signature. arg0: ".concat(o," (").concat(typeof o,"), result: ").concat(s," (").concat(typeof s,")")),s}}const kg=t=>{let{featureFlagClient:e}=t;return{name:"Statsig",processEvent:(t,e,n)=>fg(t),setup(){e.on("gate_evaluation",t=>{mg(t.gate.name,t.gate.value)})}}};var Eg=n(5043);function xg(t){const e=(0,h.A)({},t);return Bo(e,"react"),on("react",{version:Eg.version}),mi(e)}function Cg(t,e,n){let{componentStack:r}=e;if(function(t){const e=t.match(/^([^.]+)/);return null!==e&&parseInt(e[0])>=17}(Eg.version)&&m(t)&&r){const e=new Error(t.message);e.name="React ErrorBoundary ".concat(t.name),e.stack=r,function(t,e){const n=new WeakSet;!function t(e,r){if(!n.has(e))return e.cause?(n.add(e),t(e.cause,r)):void(e.cause=r)}(t,e)}(t,e)}return en(t,(0,h.A)((0,h.A)({},n),{},{captureContext:{contexts:{react:{componentStack:r}}}}))}function Ag(t){return(e,n)=>{const r=Cg(e,n);t&&t(e,n,r)}}var Tg=n(219);const Ig="ui.react.render",Mg="ui.react.mount",Rg="unknown";class Og extends Eg.Component{static __initStatic(){this.defaultProps={disabled:!1,includeRender:!0,includeUpdates:!0}}constructor(t){super(t);const{name:e,disabled:n=!1}=this.props;n||(this._mountSpan=kr({name:"<".concat(e,">"),onlyIfParent:!0,op:Mg,attributes:{[a]:"auto.ui.react.profiler","ui.component_name":e}}))}componentDidMount(){this._mountSpan&&this._mountSpan.end()}shouldComponentUpdate(t){let{updateProps:e,includeUpdates:n=!0}=t;if(n&&this._mountSpan&&e!==this.props.updateProps){const t=Object.keys(e).filter(t=>e[t]!==this.props.updateProps[t]);if(t.length>0){const e=nt();this._updateSpan=xr(this._mountSpan,()=>kr({name:"<".concat(this.props.name,">"),onlyIfParent:!0,op:"ui.react.update",startTime:e,attributes:{[a]:"auto.ui.react.profiler","ui.component_name":this.props.name,"ui.react.changed_props":t}}))}}return!0}componentDidUpdate(){this._updateSpan&&(this._updateSpan.end(),this._updateSpan=void 0)}componentWillUnmount(){const t=nt(),{name:e,includeRender:n=!0}=this.props;if(this._mountSpan&&n){const n=Re(this._mountSpan).timestamp;xr(this._mountSpan,()=>{const r=kr({onlyIfParent:!0,name:"<".concat(e,">"),op:Ig,startTime:n,attributes:{[a]:"auto.ui.react.profiler","ui.component_name":e}});r&&r.end(t)})}}render(){return this.props.children}}function Dg(t,e){const n=e&&e.name||t.displayName||t.name||Rg,r=r=>Eg.createElement(Og,(0,h.A)((0,h.A)({},e),{},{name:n,updateProps:r}),Eg.createElement(t,(0,h.A)({},r)));return r.displayName="profiler(".concat(n,")"),Tg(r,t),r}function Lg(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{disabled:!1,hasRenderSpan:!0}
1;const[n]=Eg.useState(()=>{if(!e||!e.disabled)return kr({name:"<".concat(t,">"),onlyIfParent:!0,op:Mg,attributes:{[a]:"auto.ui.react.profiler","ui.component_name":t}})});Eg.useEffect(()=>(n&&n.end(),()=>{if(n&&e.hasRenderSpan){const e=Re(n).timestamp,r=nt(),o=kr({name:"<".concat(t,">"),onlyIfParent:!0,op:Ig,startTime:e,attributes:{[a]:"auto.ui.react.profiler","ui.component_name":t}});o&&o.end(r)}}),[])}Og.__initStatic();const Ng="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Pg="unknown",Fg={componentStack:null,error:null,eventId:null};class Bg extends Eg.Component{constructor(t){super(t),Bg.prototype.__init.call(this),this.state=Fg,this._openFallbackReportDialog=!0;const e=Lt();e&&t.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=e.on("afterSendEvent",e=>{!e.type&&this._lastEventId&&e.event_id===this._lastEventId&&gi((0,h.A)((0,h.A)({},t.dialogOptions),{},{eventId:this._lastEventId}))}))}componentDidCatch(t,e){const{componentStack:n}=e,r=null==n?void 0:n,{beforeCapture:o,onError:s,showDialog:i,dialogOptions:a}=this.props;Ot(c=>{o&&o(c,t,r);const u=null!=this.props.handled?this.props.handled:!!this.props.fallback,l=Cg(t,e,{mechanism:{handled:u}});s&&s(t,r,l),i&&(this._lastEventId=l,this._openFallbackReportDialog&&gi((0,h.A)((0,h.A)({},a),{},{eventId:l}))),this.setState({error:t,componentStack:n,eventId:l})})}componentDidMount(){const{onMount:t}=this.props;t&&t()}componentWillUnmount(){const{error:t,componentStack:e,eventId:n}=this.state,{onUnmount:r}=this.props;r&&r(t,e,n),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}__init(){this.resetErrorBoundary=()=>{const{onReset:t}=this.props,{error:e,componentStack:n,eventId:r}=this.state;t&&t(e,n,r),this.setState(Fg)}}render(){const{fallback:t,children:e}=this.props,n=this.state;if(n.error){let e;return e="function"===typeof t?Eg.createElement(t,{error:n.error,componentStack:n.componentStack,resetError:this.resetErrorBoundary,eventId:n.eventId}):t,Eg.isValidElement(e)?e:(t&&Ng&&U.warn("fallback did not produce a valid ReactElement"),null)}return"function"===typeof e?e():e}}function Ug(t,e){const n=t.displayName||t.name||Pg,r=n=>Eg.createElement(Bg,(0,h.A)({},e),Eg.createElement(t,(0,h.A)({},n)));return r.displayName="errorBoundary(".concat(n,")"),Tg(r,t),r}const jg="redux.action",Hg="info",zg={attachReduxState:!0,actionTransformer:t=>t,stateTransformer:t=>t||null};function Wg(t){const e=(0,h.A)((0,h.A)({},zg),t);return t=>(n,r)=>{e.attachReduxState&&Rt().addEventProcessor((t,e)=>{try{void 0===t.type&&"redux"===t.contexts.state.state.type&&(e.attachments=[...e.attachments||[],{filename:"redux_state.json",data:JSON.stringify(t.contexts.state.state.value)}])}catch(n){}return t});return t((t,r)=>{const o=n(t,r),s=It(),i=e.actionTransformer(r);"undefined"!==typeof i&&null!==i&&Ft({category:jg,data:i,type:Hg});const a=e.stateTransformer(o);if("undefined"!==typeof a&&null!==a){const t=Lt(),e=t&&t.getOptions(),n={state:{type:"redux",value:a}};V(n,"__sentry_override_normalization_depth__",3+(e&&e.normalizeDepth||3)),s.setContext("state",n)}else s.setContext("state",null);const{configureScopeWithState:c}=e;return"function"===typeof c&&c(s,o),o},r)}}function qg(t){const e=Om((0,h.A)((0,h.A)({},t),{},{instrumentPageLoad:!1,instrumentNavigation:!1})),{history:n,routes:r,match:s,instrumentPageLoad:c=!0,instrumentNavigation:u=!0}=t;return(0,h.A)((0,h.A)({},e),{},{afterAllSetup(t){e.afterAllSetup(t),c&&Mo&&Mo.location&&Yg(r,Mo.location,s,function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"url";Dm(t,{name:e,attributes:{[i]:"pageload",[a]:"auto.pageload.react.reactrouter_v3",[o]:n}})}),u&&n.listen&&n.listen(e=>{"PUSH"!==e.action&&"POP"!==e.action||Yg(r,e,s,function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"url";Lm(t,{name:e,attributes:{[i]:"navigation",[a]:"auto.navigation.react.reactrouter_v3",[o]:n}})})})}})}function Yg(t,e,n,r){let o=e.pathname;n({location:e,routes:t},(t,e,n)=>{if(t||!n)return r(o);const s=function(t){if(!Array.isArray(t)||0===t.length)return"";const e=t.filter(t=>!!t.path);let n=-1;for(let r=e.length-1;r>=0;r--){const t=e[r];if(t.path&&t.path.startsWith("/")){n=r;break}}return e.slice(n).filter(t=>{let{path:e}=t;return!!e}).map(t=>{let{path:e}=t;return e}).join("")}(n.routes||[]);return 0===s.length||"/*"===s?r(o):(o=s,r(o,"route"))})}function Vg(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=t,r=Om((0,h.A)((0,h.A)({},e),{},{instrumentNavigation:!1,instrumentPageLoad:!1})),{instrumentPageLoad:s=!0,instrumentNavigation:c=!0}=e;return(0,h.A)((0,h.A)({},r),{},{afterAllSetup(t){r.afterAllSetup(t);const e=Mo.location;if(s&&e){const r=n.matchRoutes(e.pathname,n.options.parseSearch(e.search),{preload:!1,throwOnError:!1}),s=r[r.length-1];Dm(t,{name:s?s.routeId:e.pathname,attributes:(0,h.A)({[i]:"pageload",[a]:"auto.pageload.react.tanstack_router",[o]:s?"route":"url"},Gg(s))})}c&&n.subscribe("onBeforeNavigate",e=>{const r=e.fromLocation&&e.fromLocation.state;if(e.toLocation.state===r)return;const s=n.matchRoutes(e.toLocation.pathname,e.toLocation.search,{preload:!1,throwOnError:!1}),c=s[s.length-1],u=Mo.location,l=Lm(t,{name:c?c.routeId:u.pathname,attributes:{[i]:"navigation",[a]:"auto.navigation.react.tanstack_router",[o]:c?"route":"url"}}),d=n.subscribe("onResolved",t=>{if(d(),l){const e=n.matchRoutes(t.toLocation.pathname,t.toLocation.search,{preload:!1,throwOnError:!1}),r=e[e.length-1];r&&(l.updateName(r.routeId),l.setAttribute(o,"route"),l.setAttributes(Gg(r)))}})})}})}function Gg(t){if(!t)return{};const e={};
1return Object.entries(t.params).forEach(t=>{let[n,r]=t;e["url.path.params.".concat(n)]=r}),e}function Xg(t){const e=Om((0,h.A)((0,h.A)({},t),{},{instrumentPageLoad:!1,instrumentNavigation:!1})),{history:n,routes:r,matchPath:o,instrumentPageLoad:s=!0,instrumentNavigation:i=!0}=t;return(0,h.A)((0,h.A)({},e),{},{afterAllSetup(t){e.afterAllSetup(t),Kg(t,s,i,n,"reactrouter_v4",r,o)}})}function Jg(t){const e=Om((0,h.A)((0,h.A)({},t),{},{instrumentPageLoad:!1,instrumentNavigation:!1})),{history:n,routes:r,matchPath:o,instrumentPageLoad:s=!0,instrumentNavigation:i=!0}=t;return(0,h.A)((0,h.A)({},e),{},{afterAllSetup(t){e.afterAllSetup(t),Kg(t,s,i,n,"reactrouter_v5",r,o)}})}function Kg(t,e,n,r,s){let c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],u=arguments.length>6?arguments[6]:void 0;function l(t){if(0===c.length||!u)return[t,"url"];const e=$g(c,t,u);for(const n of e)if(n.match.isExact)return[n.match.path,"route"];return[t,"url"]}if(e){const e=r&&r.location?r.location.pathname:Mo&&Mo.location?Mo.location.pathname:void 0;if(e){const[n,r]=l(e);Dm(t,{name:n,attributes:{[i]:"pageload",[a]:"auto.pageload.react.".concat(s),[o]:r}})}}n&&r.listen&&r.listen((e,n)=>{if(n&&("PUSH"===n||"POP"===n)){const[n,r]=l(e.pathname);Lm(t,{name:n,attributes:{[i]:"navigation",[a]:"auto.navigation.react.".concat(s),[o]:r}})}})}function $g(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return t.some(t=>{const o=t.path?n(e,t):r.length?r[r.length-1].match:function(t){return{path:"/",url:"/",params:{},isExact:"/"===t}}(e);return o&&(r.push({route:t,match:o}),t.routes&&$g(t.routes,e,n,r)),!!o}),r}function Zg(t){const e=t.displayName||t.name,n=e=>{if(e&&e.computedMatch&&e.computedMatch.isExact){const t=e.computedMatch.path,n=function(){const t=Ue(),e=t&&Be(t);if(!e)return;const n=Re(e).op;return"navigation"===n||"pageload"===n?e:void 0}();It().setTransactionName(t),n&&(n.updateName(t),n.setAttribute(o,"route"))}return Eg.createElement(t,(0,h.A)({},e))};return n.displayName="sentryRoute(".concat(e,")"),Tg(n,t),n}let Qg,t_,e_,n_,r_,o_=!1;const s_=new WeakSet,i_=new Set;function a_(t,e){return Qg&&t_&&e_&&r_?function(n,r){n.forEach(t=>{i_.add(t)});const o=t(n,r),s=r&&r.basename,i=A_();return"POP"===o.state.historyAction&&i&&x_(i,o.state.location,n,void 0,s,Array.from(i_)),o.subscribe(t=>{"PUSH"!==t.historyAction&&"POP"!==t.historyAction||("idle"!==t.navigation.state?requestAnimationFrame(()=>{d_({location:t.location,routes:n,navigationType:t.historyAction,version:e,basename:s,allRoutes:Array.from(i_)})}):d_({location:t.location,routes:n,navigationType:t.historyAction,version:e,basename:s,allRoutes:Array.from(i_)}))}),o}:(Ng&&U.warn("reactRouterV".concat(e,"Instrumentation was unable to wrap the `createRouter` function because of one or more missing parameters.")),t)}function c_(t,e){return Qg&&t_&&e_&&r_?function(n,r){n.forEach(t=>{i_.add(t)});const o=t(n,r),s=r?r.basename:void 0,i=A_();let a;const c=r?r.initialEntries:void 0,u=r?r.initialIndex:void 0,l=c&&1===c.length,d=void 0!==u&&c&&c[u];a=l?c[0]:d?c[u]:void 0;const p=a?"string"===typeof a?{pathname:a}:a:o.state.location;return"POP"===o.state.historyAction&&i&&x_(i,p,n,void 0,s,Array.from(i_)),o.subscribe(t=>{const r=t.location;"PUSH"!==t.historyAction&&"POP"!==t.historyAction||d_({location:r,routes:n,navigationType:t.historyAction,version:e,basename:s,allRoutes:Array.from(i_)})}),o}:(Ng&&U.warn("reactRouterV".concat(e,"Instrumentation was unable to wrap the `createMemoryRouter` function because of one or more missing parameters.")),t)}function u_(t,e){const n=Om((0,h.A)((0,h.A)({},t),{},{instrumentPageLoad:!1,instrumentNavigation:!1})),{useEffect:r,useLocation:s,useNavigationType:c,createRoutesFromChildren:u,matchRoutes:l,stripBasename:d,instrumentPageLoad:p=!0,instrumentNavigation:f=!0}=t;return(0,h.A)((0,h.A)({},n),{},{setup(){Qg=r,t_=s,e_=c,r_=l,n_=u,o_=d||!1},afterAllSetup(t){n.afterAllSetup(t);const r=Mo&&Mo.location&&Mo.location.pathname;p&&r&&Dm(t,{name:r,attributes:{[o]:"url",[i]:"pageload",[a]:"auto.pageload.react.reactrouter_v".concat(e)}}),f&&s_.add(t)}})}function l_(t,e){if(!Qg||!t_||!e_||!r_)return Ng&&U.warn("reactRouterV6Instrumentation was unable to wrap `useRoutes` be
1cause of one or more missing parameters."),t;const n=n=>{const r=Eg.useRef(!0),{routes:o,locationArg:s}=n,i=t(o,s),a=t_(),c=e_(),u="string"===typeof s||s&&s.pathname?s:a;return Qg(()=>{const t="string"===typeof u?{pathname:u}:u;r.current?(o.forEach(t=>{y_(t).forEach(t=>{i_.add(t)})}),x_(A_(),t,o,void 0,void 0,Array.from(i_)),r.current=!1):d_({location:t,routes:o,navigationType:c,version:e,allRoutes:Array.from(i_)})},[c,u]),i};return(t,e)=>Eg.createElement(n,{routes:t,locationArg:e})}function d_(t){const{location:e,routes:n,navigationType:r,version:s,matches:c,basename:u,allRoutes:l}=t,d=Array.isArray(c)?c:r_(n,e,u),p=Lt();if(p&&s_.has(p)&&("PUSH"===r||"POP"===r)&&d){let t,r="url";const c=__(e,l||n);c&&(t=w_(k_(l||n,e)),r="route"),c&&t||([t,r]=E_(n,e,d,u)),Lm(p,{name:t,attributes:{[o]:r,[i]:"navigation",[a]:"auto.navigation.react.reactrouter_v".concat(s)}})}}function p_(t,e){if(!e||"/"===e)return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return t;const n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&"/"!==r?t:t.slice(n)||"/"}function h_(t,e,n){const r=t||o_?p_(e,n):e;return["/"===r[r.length-1]||"/*"===r.slice(-2)?r.slice(0,-1):r,"route"]}function f_(t){return t.endsWith("*")}function m_(t,e){return f_(t)&&e.route.children&&e.route.children.length>0||!1}function g_(t){return!(t.children||!t.element||!t.path||!t.path.endsWith("/*"))}function __(t,e){const n=r_(e,t);if(n)for(const r of n)if(g_(r.route)&&b_(r))return!0;return!1}function y_(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;return e.has(t)||(e.add(t),t.children&&!t.index&&t.children.forEach(t=>{y_(t,e).forEach(t=>e.add(t))})),e}function v_(t){return"*"===(e=t.route.path||"")[e.length-1]?e.slice(0,-1):e;var e}function b_(t){return t.params["*"]||""}function S_(t){return"/"===t[t.length-1]?t.slice(0,-1):t}function w_(t){return"/"===t[0]?t:"/".concat(t)}function k_(t,e){const n=r_(t,e);if(!n||0===n.length)return"";for(const r of n)if(r.route.path&&"*"!==r.route.path){const n=v_(r),o=p_(e.pathname,w_(r.pathnameBase));return S_(S_(n||"")+w_(k_(t.filter(t=>t!==r.route),{pathname:o})))}return""}function E_(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(!t||0===t.length)return[o_?p_(e.pathname,r):e.pathname,"url"];let o="";if(n)for(const s of n){const t=s.route;if(t){if(t.index)return h_(o,s.pathname,r);const n=t.path;if(n&&!m_(n,s)){const t="/"===n[0]||"/"===o[o.length-1]?n:"/".concat(n);if(o=S_(o)+w_(t),S_(e.pathname)===S_(r+s.pathname))return Js(o)===Js(s.pathname)||f_(o)?(m_(o,s)&&(o=o.slice(0,-1)),[(o_?"":r)+o,"route"]):[(o_?"":r)+t,"route"]}}}return[o_?p_(e.pathname,r):e.pathname||"/","url"]}function x_(t,e,n,r,s,i){const a=Array.isArray(r)?r:r_(i||n,e,s);if(a){let r,c="url";const u=__(e,i||n);u&&(r=w_(k_(i||n,e)),c="route"),u&&r||([r,c]=E_(n,e,a,s)),It().setTransactionName(r||"/"),t&&(t.updateName(r),t.setAttribute(o,c))}}function C_(t,e){if(!Qg||!t_||!e_||!n_||!r_)return Ng&&U.warn("reactRouterV6Instrumentation was unable to wrap Routes because of one or more missing parameters.\n      useEffect: ".concat(Qg,". useLocation: ").concat(t_,". useNavigationType: ").concat(e_,".\n      createRoutesFromChildren: ").concat(n_,". matchRoutes: ").concat(r_,".")),t;const n=n=>{const r=Eg.useRef(!0),o=t_(),s=e_();return Qg(()=>{const t=n_(n.children);r.current?(t.forEach(t=>{y_(t).forEach(t=>{i_.add(t)})}),x_(A_(),o,t,void 0,void 0,Array.from(i_)),r.current=!1):d_({location:o,routes:t,navigationType:s,version:e,allRoutes:Array.from(i_)})},[o,s]),Eg.createElement(t,(0,h.A)({},n))};return Tg(n,t),n}function A_(){const t=Ue(),e=t?Be(t):void 0;if(!e)return;const n=Re(e).op;return"navigation"===n||"pageload"===n?e:void 0}function T_(t){return u_(t,"6")}function I_(t){return l_(t,"6")}const M_=I_;function R_(t){return a_(t,"6")}const O_=R_;function D_(t){return c_(t,"6")}function L_(t){return C_(t,"6")}function N_(t){return u_(t,"7")}function P_(t){return C_(t,"7")}function F_(t){return a_(t,"7")}function B_(t){return c_(t,"7")}function U_(t){return l_(t,"7")}}}]);
2//# sourceMappingURL=6534.7e1bd813.chunk.js.map

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