1/*! For license information please see 4481.7b9d8e703e8968231587.js.LICENSE.txt */ 2"use strict";(self.webpackChunkedith6=self.webpackChunkedith6||[]).push([[4481],{76217(e,t,n){const r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;n.d(t,["T",0,r])},88406(e,t,n){n.d(t,{qd:()=>c,wg:()=>l,y7:()=>u});var r=n(19282),s=n(47040),o=n(76217),i=n(97458);const a={};function c(e){const t=a[e];if(t)return t;let n=i.j[e];if((0,s.a3)(n))return a[e]=n.bind(i.j);const c=i.j.document;if(c&&"function"==typeof c.createElement)try{const t=c.createElement("iframe");t.hidden=!0,c.head.appendChild(t);const r=t.contentWindow;r?.[e]&&(n=r[e]),c.head.removeChild(t)}catch(t){o.T&&r.Yz.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n?a[e]=n.bind(i.j):n}function u(e){a[e]=void 0}function l(...e){return c("setTimeout")(...e)}},96103(e,t,n){n.d(t,{H:()=>i});var r=n(64208);const s={};try{"undefined"!=typeof Node&&(s.parentNode=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode").get),"undefined"!=typeof Element&&(s.tagName=Object.getOwnPropertyDescriptor(Element.prototype,"tagName").get,s.id=Object.getOwnPropertyDescriptor(Element.prototype,"id").get,s.className=Object.getOwnPropertyDescriptor(Element.prototype,"className").get,s.getAttribute=Element.prototype.getAttribute),"undefined"!=typeof HTMLElement&&(s.dataset=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset").get)}catch{}function o(e,t,n){const r=s[t];if(r)try{return r.call(e,n)}catch{}const o=e[t];return"function"==typeof o?o.call(e,n):o}function i(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,s=[];let i=0,c=0;const u=" > ",l=u.length;let d;const p=Array.isArray(t)?t:t.keyAttrs,h=!Array.isArray(t)&&t.maxStringLength||80;for(;n&&i++<r&&(d=a(n,p),!("html"===d||i>1&&c+s.length*l+d.length>=h));)s.push(d),c+=d.length,n=o(n,"parentNode");return s.reverse().join(u)}catch{return"<unknown>"}}function a(e,t){const n=[],s=o(e,"tagName");if(!s)return"";if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement){const t=o(e,"dataset");if(t){if(t.sentryComponent)return t.sentryComponent;if(t.sentryElement)return t.sentryElement}}n.push(s.toLowerCase());const i=t?.length?t.filter(t=>o(e,"getAttribute",t)).map(t=>[t,o(e,"getAttribute",t)]):null;if(i?.length)i.forEach(e=>{n.push(`[${e[0]}="${e[1]}"]`)});else{const t=o(e,"id");t&&n.push(`#${t}`);const s=o(e,"className");if(s&&(0,r.Kg)(s)){const e=s.split(/\s+/);for(const t of e)n.push(`.${t}`)}}for(const t of["aria-label","type","name","title","alt"]){const r=o(e,"getAttribute",t);r&&n.push(`[${t}="${r}"]`)}return n.join("")}},2393(e,t,n){n.d(t,{i:()=>l});var r=n(13235),s=n(9600),o=n(46403),i=n(97458);let a,c,u;function l(e){(0,r.s5)("dom",e),(0,r.AS)("dom",d)}function d(){if(!i.j.document)return;const e=r.aj.bind(null,"dom"),t=p(e,!0);i.j.document.addEventListener("click",t,!1),i.j.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{const n=i.j,r=n[t]?.prototype;r?.hasOwnProperty?.("addEventListener")&&((0,o.GS)(r,"addEventListener",function(t){return function(n,r,s){if("click"===n||"keypress"==n)try{const r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},o=r[n]=r[n]||{refCount:0};if(!o.handler){const r=p(e);o.handler=r,t.call(this,n,r,s)}o.refCount++}catch{}return t.call(this,n,r,s)}}),(0,o.GS)(r,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this.__sentry_instrumentation_handlers__||{},s=n[t];s&&(s.refCount--,s.refCount<=0&&(e.call(this,t,s.handler,r),s.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,n,r)}}))})}function p(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=function(e){try{return e.target}catch{return null}}(n);if(function(e,t){return"keypress"===e&&(!t?.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(n.type,r))return;(0,o.my)(n,"_sentryCaptured",!0),r&&!r._sentryId&&(0,o.my)(r,"_sentryId",(0,s.eJ)());const l="keypress"===n.type?"input":n.type;if(!function(e){if(e.type!==c)return!1;try{if(!e.target||e.target._sentryId!==u)return!1}catch{}return!0}(n)){e({event:n,name:l,global:t}),c=n.type,u=r?r._sentryId:void 0}clearTimeout(a),a=i.j.setTimeout(()=>{u=void 0,c=void 0},1e3)}}},73661(e,t,n){n.d(t,{_:()=>c});var r=n(13235),s=n(46403),o=n(47040),i=n(97458);let a;function c(e){const t="history";(0,r.s5)(t,e),(0,r.AS)(t,u)}function u(){function e(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const s=a,o=function(e){try{return new URL(e,i.j.location.origin).toString()}catch{return e}}(String(n));if(a=o,s===o)return e.apply(this,t);const c={from:s,to:o};(0,r.aj)("history",c)}return e.apply(this,t)}}i.j.addEventListener("popstate",()=>{const e=i.j.location.href,t=a;if(a=e,t===e)return;const n={from:t,to:e};(0,r.aj)("history",n)}),(0,o.NJ)()&&((0,s.GS)(i.j.history,"pushState",e),(0,s.GS)(i.j.history,"replaceState",e))}},14839(e,t,n){n.d(t,{Mn:()=>c});var r=n(13235),s=n(64208),o=n(93177),i=n(97458);const a="__sentry_xhr_v3__";function c(e){(0,r.s5)("xhr",e),(0,r.AS)("xhr",u)}function u(){if(!i.j.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){const i=new Error,c=1e3*(0,o.zf)(),u=(0,s.Kg)(n[0])?n[0].toUpperCase():void 0,l=function(e){if((0,s.Kg)(e))return e;try{return e.toString()}catch{}return}(n[1]);if(!u||!l)return e.apply(t,n);t[a]={method:u,url:l,request_headers:{}}
2,"POST"===u&&l.match(/sentry_key/)&&(t.__sentry_own_request__=!0);const d=()=>{const e=t[a];if(e&&4===t.readyState){try{e.status_code=t.status}catch{}const n={endTimestamp:1e3*(0,o.zf)(),startTimestamp:c,xhr:t,virtualError:i};(0,r.aj)("xhr",n)}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,n)=>(d(),e.apply(t,n))}):t.addEventListener("readystatechange",d),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){const[r,o]=n,i=t[a];return i&&(0,s.Kg)(r)&&(0,s.Kg)(o)&&(i.request_headers[r.toLowerCase()]=o),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){const s=t[a];if(!s)return e.apply(t,n);void 0!==n[0]&&(s.body=n[0]);const i={startTimestamp:1e3*(0,o.zf)(),xhr:t};return(0,r.aj)("xhr",i),e.apply(t,n)}})}n.d(t,["Er",0,a])},85418(e,t,n){n.d(t,{a9:()=>H,hT:()=>Y,Pt:()=>q,wv:()=>K,YG:()=>W,tC:()=>ne});var r=n(19282),s=n(51685),o=n(76217),i=n(97458);const a=(e,t,n,r)=>{let s,o;return i=>{t.value>=0&&(i||r)&&(o=t.value-(s??0),(o||void 0===s)&&(s=t.value,t.delta=o,t.rating=((e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good")(t.value,n),e(t)))}};var c=n(24578);var u=n(47082),l=n(41728);const d=(e,t=-1)=>{const n=(0,l.z)();let r="navigate";n&&(i.j.document?.prerendering||(0,u.b)()>0?r="prerender":i.j.document?.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-")));return{name:e,value:t,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},p=new WeakMap;function h(e,t){try{return p.get(e)||p.set(e,new t),p.get(e)}catch(e){return new t}}class f{constructor(){this._sessionValue=0,this._sessionEntries=[]}_processEntry(e){if(e.hadRecentInput)return;const t=this._sessionEntries[0],n=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),this._onAfterProcessingUnexpectedShift?.(e)}}const m=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}};var g=n(60184);const y=e=>{i.j.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},_=[1800,3e3],v=[.1,.25],S=(e,t={})=>{((e,t={})=>{y(()=>{const n=(0,c.N)(),r=d("FCP");let s;const o=m("paint",e=>{for(const t of e)"first-contentful-paint"===t.name&&(o.disconnect(),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-(0,u.b)(),0),r.entries.push(t),s(!0)))});o&&(s=a(e,r,_,t.reportAllChanges))})})((0,g.J)(()=>{const n=d("CLS",0);let r;const s=(0,c.N)(),o=h(t,f),u=e=>{for(const t of e)o._processEntry(t);o._sessionValue>n.value&&(n.value=o._sessionValue,n.entries=o._sessionEntries,r())},l=m("layout-shift",u);l&&(r=a(e,n,v,t.reportAllChanges),s.onHidden(()=>{u(l.takeRecords()),r(!0)}),i.j?.setTimeout?.(r))}))};let b=0,k=1/0,w=0;const E=e=>{e.forEach(e=>{e.interactionId&&(k=Math.min(k,e.interactionId),w=Math.max(w,e.interactionId),b=w?(w-k)/7+1:0)})};let T;const x=()=>T?b:performance.interactionCount||0,I=()=>{"interactionCount"in performance||T||(T=m("event",E,{type:"event",buffered:!0,durationThreshold:0}))};let C=0;class M{constructor(){this._longestInteractionList=[],this._longestInteractionMap=new Map}_resetInteractions(){C=x(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){const e=Math.min(this._longestInteractionList.length-1,Math.floor((x()-C)/50));return this._longestInteractionList[e]}_processEntry(e){if(this._onBeforeProcessingEntry?.(e),!e.interactionId&&"first-input"!==e.entryType)return;const t=this._longestInteractionList.at(-1);let n=this._longestInteractionMap.get(e.interactionId);if(n||this._longestInteractionList.length<10||e.duration>t._latency){if(n?e.duration>n._latency?(n.entries=[e],n._latency=e.duration):e.duration===n._latency&&e.startTime===n.entries[0].startTime&&n.entries.push(e):(n={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(n.id,n),this._longestInteractionList.push(n)),this._longestInteractionList.sort((e,t)=>
2t._latency-e._latency),this._longestInteractionList.length>10){const e=this._longestInteractionList.splice(10);for(const t of e)this._longestInteractionMap.delete(t.id)}this._onAfterProcessingINPCandidate?.(n)}}}var R=n(46053);const O=[200,500];var A=n(51204);class D{_processEntry(e){this._onBeforeProcessingEntry?.(e)}}const L=[2500,4e3],N=[800,1800],P=e=>{i.j.document?.prerendering?y(()=>P(e)):"complete"!==i.j.document?.readyState?addEventListener("load",()=>P(e),!0):setTimeout(e)},j={},z={};let $,U,F,B;function H(e,t=!1){return Z("cls",e,G,$,t)}function q(e,t=!1){return Z("lcp",e,V,U,t)}function W(e){return Z("ttfb",e,X,F)}function Y(e){return Z("inp",e,Q,B)}function K(e,t){return ee(e,t),z[e]||(!function(e){const t={};"event"===e&&(t.durationThreshold=0);m(e,t=>{J(e,{entries:t})},t)}(e),z[e]=!0),te(e,t)}function J(e,t){const n=j[e];if(n?.length)for(const i of n)try{i(t)}catch(t){o.T&&r.Yz.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${(0,s.qQ)(i)}\nError:`,t)}}function G(){return S(e=>{J("cls",{metric:e}),$=e},{reportAllChanges:!0})}function V(){return((e,t={})=>{y(()=>{const n=(0,c.N)(),r=d("LCP");let s;const o=h(t,D),i=e=>{t.reportAllChanges||(e=e.slice(-1));for(const t of e)o._processEntry(t),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-(0,u.b)(),0),r.entries=[t],s())},l=m("largest-contentful-paint",i);if(l){s=a(e,r,L,t.reportAllChanges);const n=(0,g.J)(()=>{i(l.takeRecords()),l.disconnect(),s(!0)}),o=e=>{e.isTrusted&&((0,R.k)(n),(0,A.Q)(e.type,o,{capture:!0}))};for(const e of["keydown","click","visibilitychange"])(0,A.d)(e,o,{capture:!0})}})})(e=>{J("lcp",{metric:e}),U=e},{reportAllChanges:!0})}function X(){return((e,t={})=>{const n=d("TTFB"),r=a(e,n,N,t.reportAllChanges);P(()=>{const e=(0,l.z)();e&&(n.value=Math.max(e.responseStart-(0,u.b)(),0),n.entries=[e],r(!0))})})(e=>{J("ttfb",{metric:e}),F=e})}function Q(){return((e,t={})=>{if(!globalThis.PerformanceEventTiming||!("interactionId"in PerformanceEventTiming.prototype))return;const n=(0,c.N)();y(()=>{I();const r=d("INP");let s;const o=h(t,M),i=e=>{(0,R.k)(()=>{for(const t of e)o._processEntry(t);const t=o._estimateP98LongestInteraction();t&&t._latency!==r.value&&(r.value=t._latency,r.entries=t.entries,s())})},c=m("event",i,{durationThreshold:t.durationThreshold??40});s=a(e,r,O,t.reportAllChanges),c&&(c.observe({type:"first-input",buffered:!0}),n.onHidden(()=>{i(c.takeRecords()),s(!0)}))})})(e=>{J("inp",{metric:e}),B=e})}function Z(e,t,n,r,s=!1){let o;return ee(e,t),z[e]||(o=n(),z[e]=!0),r&&t({metric:r}),te(e,t,s?o:void 0)}function ee(e,t){j[e]=j[e]||[],j[e].push(t)}function te(e,t,n){return()=>{n&&n();const r=j[e];if(!r)return;const s=r.indexOf(t);-1!==s&&r.splice(s,1)}}function ne(e){return"duration"in e}},47082(e,t,n){var r=n(41728);n.d(t,["b",0,()=>{const e=(0,r.z)();return e?.activationStart??0}])},41728(e,t,n){var r=n(97458);n.d(t,["z",0,(e=!0)=>{const t=r.j.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t}])},24578(e,t,n){var r=n(97458),s=n(47082),o=n(51204);let i=-1;const a=new Set,c=e=>{if(function(e){return"pagehide"===e.type||"hidden"===r.j.document?.visibilityState}(e)&&i>-1){if("visibilitychange"===e.type||"pagehide"===e.type)for(const e of a)e();isFinite(i)||(i="visibilitychange"===e.type?e.timeStamp:0,(0,o.Q)("prerenderingchange",c,!0))}};n.d(t,["N",0,()=>{if(r.j.document&&i<0){const e=(0,s.b)(),t=r.j.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(t=>"hidden"===t.name&&t.startTime>e)[0]?.startTime;i=t??("hidden"!==r.j.document?.visibilityState||r.j.document?.prerendering?1/0:0),(0,o.d)("visibilitychange",c,!0),(0,o.d)("pagehide",c,!0),(0,o.d)("prerenderingchange",c,!0)}return{get firstHiddenTime(){return i},onHidden(e){a.add(e)}}}])},51204(e,t,n){n.d(t,{Q:()=>o,d:()=>s});var r=n(97458);function s(e,t,n){r.j.document&&r.j.addEventListener(e,t,n)}function o(e,t,n){r.j.document&&r.j.removeEventListener(e,t,n)}},60184(e,t,n){n.d(t,["J",0,e=>{let t=!1;return()=>{t||(e(),t=!0)}}])},46053(e,t,n){var r=n(97458),s=n(51204),o=n(60184);n.d(t,["k",0,e=>{const t=r.j.requestIdleCallback||r.j.setTimeout;"hidden"===r.j.document?.visibilityState?e():(e=(0,o.J)(e),(0,s.d)("visibilitychange",e,{once:!0,capture:!0}),(0,s.d)("pagehide",e,{once:!0,capture:!0}),t(()=>{e(),(0,s.Q)("visibilitychange",e,{capture:!0}),(0,s.Q)("pagehide",e,{capture:!0})}
2))}])},34408(e,t,n){n.d(t,{Gv:()=>c,P4:()=>i,sY:()=>a,ti:()=>u});var r=n(19282),s=n(76217);const o=Symbol.for("sentry__originalRequestBody");function i(e){return new URLSearchParams(e).toString()}function a(e,t=r.Yz){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[i(e)];if(!e)return[void 0]}catch(n){return s.T&&t.error(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return s.T&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function c(e=[]){if(e.length>=2&&e[1]&&"object"==typeof e[1]&&"body"in e[1])return e[1].body;if(e.length>=1&&e[0]instanceof Request){const t=e[0][o];return void 0!==t?t:void 0}}function u(e){let t;try{t=e.getAllResponseHeaders()}catch(t){return s.T&&r.Yz.error(t,"Failed to get xhr response headers",e),{}}return t?t.split("\r\n").reduce((e,t)=>{const[n,r]=t.split(": ");return r&&(e[n.toLowerCase()]=r),e},{}):{}}},97458(e,t,n){const r=n(18845).O;n.d(t,["j",0,r])},62745(e,t,n){const r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;n.d(t,["T",0,r])},54386(e,t,n){n.d(t,{AP:()=>h,LV:()=>p,jN:()=>d});var r=n(64251),s=n(57968),o=n(18845),i=n(9600),a=n(46403),c=n(57726);const u=o.O;let l=0;function d(){return l>0}function p(e,t={}){if("function"!=typeof e)return e;try{if(Object.prototype.hasOwnProperty.call(e,"__sentry_wrapped__")){const t=e.__sentry_wrapped__;return"function"==typeof t?t:e}if((0,a.sp)(e))return e}catch{return e}const n=function(...n){o.O._sentryWrappedDepth=(o.O._sentryWrappedDepth||0)+1;try{const r=n.map(e=>p(e,t));return e.apply(this,r)}catch(e){throw l++,setTimeout(()=>{l--}),(0,s.v4)(s=>{s.addEventProcessor(e=>(t.mechanism&&((0,i.gO)(e,void 0,void 0),(0,i.M6)(e,t.mechanism)),e.extra={...e.extra,arguments:n},e)),(0,r.Cp)(e)}),e}finally{o.O._sentryWrappedDepth=(o.O._sentryWrappedDepth||0)-1}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}catch{}(0,a.pO)(n,e),(0,a.my)(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>e.name})}catch{}return n}function h(){const e=(0,c.$N)(),{referrer:t}=u.document||{},{userAgent:n}=u.navigator||{};return{url:e,headers:{...t&&{Referer:t},...n&&{"User-Agent":n}}}}n.d(t,["jf",0,u])},12349(e,t,n){var r=n(68826),s=n(18845),o=n(9600),i=n(67607);const a=s.O,c=(0,r._C)((e={})=>({name:"ContextLines",processEvent:(t,n,r)=>function(e,t){const n=a.document,r=a.location&&(0,i.f)(a.location.href);if(!n||!r)return e;const s=e.exception?.values;if(!s?.length)return e;const c=n.documentElement.innerHTML;if(!c)return e;const u=["<!DOCTYPE html>","<html>",...c.split("\n"),"</html>"];return s.forEach(e=>{const n=e.stacktrace;n?.frames&&(n.frames=n.frames.map(e=>function(e,t,n,r){if(e.filename!==n||!e.lineno||!t.length)return e;return(0,o.db)(t,e,r),e}(e,u,r,t)))}),e}(t,e.frameContextLines??r?.getDataCollectionOptions().frameContextLines??7)}));n.d(t,["l",0,c])},42724(e,t,n){n.d(t,{c:()=>_});var r=n(68826),s=n(82775);function o(e,t){return t.some(t=>e.includes(t))}function i(e,t,n){if(!1===t)return{};const r=null!=n?[...s.kQ,...n]:s.kQ,i={};if(!0===t){for(const t of Object.keys(e))i[t]=o(t.toLowerCase(),r)?s.Av:e[t];return i}if("deny"in t){const n=t.deny.map(e=>e.toLowerCase());for(const t of Object.keys(e)){const a=t.toLowerCase(),c=o(a,r)||n.some(e=>a.includes(e));i[t]=c?s.Av:e[t]}return i}const a=t.allow.map(e=>e.toLowerCase());for(const t of Object.keys(e)){const n=t.toLowerCase();if(o(n,r))i[t]=s.Av;else{const r=a.some(e=>n.includes(e));i[t]=r?e[t]:s.Av}}return i}function a(e,t){if(!1===t)return{};try{const n=function(e){const t={};let n=0;for(;n<e.length;){const r=e.indexOf("=",n);if(-1===r)break;let s=e.indexOf(";",n);if(-1===s)s=e.length;else if(s<r){n=e.lastIndexOf(";",r-1)+1;continue}const o=e.slice(n,r).trim();if(void 0===t[o]){let n=e.slice(r+1,s).trim();34===n.charCodeAt(0)&&(n=n.slice(1,-1));
2try{t[o]=-1!==n.indexOf("%")?decodeURIComponent(n):n}catch{t[o]=n}}n=s+1}return t}(e);return 0===Object.keys(n).length?{}:i(n,t,s.d$)}catch{return s.Av}}var c=n(64251),u=n(47040),l=n(51564),d=n(57968),p=n(18845),h=n(19282),f=n(63857),m=n(9600),g=n(14839),y=n(62745);const _=(0,r._C)((e={})=>{const t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:"HttpClient",setup(e){!function(e,t){if(!(0,u.m7)())return;(0,l.ur)(n=>{if((0,d.KU)()!==e)return;const{response:r,args:s,error:o,virtualError:u}=n,[l,p]=s;r&&function(e,t,n,r,s){if(b(e,n.status,n.url)){const e=function(e,t){if(!t&&e instanceof Request)return e;if(e instanceof Request&&e.bodyUsed)return e;return new Request(e,t)}(t,r);let o,u,l,d;const p=w();if(!1!==p.requestHeaders&&(o=i(S(e.headers),p.requestHeaders)),!1!==p.responseHeaders&&(u=i(S(n.headers),p.responseHeaders)),!1!==p.cookies){const t=e.headers.get("Cookie")||void 0;if(t){const e=a(t,p.cookies);"object"==typeof e&&(l=e)}const r=n.headers.get("Set-Cookie")||void 0;if(r){const e=a(r,p.cookies);"object"==typeof e&&(d=e)}}const h=k({url:e.url,method:e.method,status:n.status,requestHeaders:o,responseHeaders:u,requestCookies:l,responseCookies:d,error:s,type:"fetch"});(0,c.r)(h)}}(t,l,r,p,o||u)},!1)}(e,t),function(e,t){if(!("XMLHttpRequest"in p.O))return;(0,g.Mn)(n=>{if((0,d.KU)()!==e)return;const{error:r,virtualError:s}=n,o=n.xhr,u=o[g.Er];if(!u)return;const{method:l,request_headers:p}=u;try{!function(e,t,n,r,s){if(b(e,t.status,t.responseURL)){let e,o,u;const l=w();if(!1!==l.cookies)try{const e=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0;if(e){const t=a(e,l.cookies);"object"==typeof t&&(o=t)}}catch{}if(!1!==l.responseHeaders)try{u=i(function(e){const t=e.getAllResponseHeaders();if(!t)return{};return t.split("\r\n").reduce((e,t)=>{const[n,r]=t.split(": ");return n&&r&&(e[n]=r),e},{})}(t),l.responseHeaders)}catch{}!1!==l.requestHeaders&&(e=i(r,l.requestHeaders));const d=k({url:t.responseURL,method:n,status:t.status,requestHeaders:e,responseHeaders:u,responseCookies:o,error:s,type:"xhr"});(0,c.r)(d)}}(t,o,l,p,r||s)}catch(e){y.T&&h.Yz.warn("Error while extracting response event form XHR response",e)}})}(e,t)}}});function v(e){if(e){const t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}}function S(e){const t={};return e.forEach((e,n)=>{t[n]=e}),t}function b(e,t,n){return function(e,t){return e.some(e=>"number"==typeof e?e===t:t>=e[0]&&t<=e[1])}(e.failedRequestStatusCodes,t)&&(r=e.failedRequestTargets,s=n,r.some(e=>"string"==typeof e?s.includes(e):e.test(s)))&&!(0,f.A)(n,(0,d.KU)());var r,s}function k(e){const t=(0,d.KU)(),n=t&&e.error&&e.error instanceof Error?e.error.stack:void 0,r=n&&t?t.getOptions().stackParser(n,0,1):void 0,s=`HTTP Client Error with status code: ${e.status}`,o={message:s,exception:{values:[{type:"Error",value:s,stacktrace:r?{frames:r}:void 0}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:v(e.responseHeaders)}}};return(0,m.M6)(o,{type:`auto.http.client.${e.type}`,handled:!1}),o}function w(){const e=(0,d.KU)();if(!e)return{cookies:!1,requestHeaders:!1,responseHeaders:!1};const t=e.getOptions();if(null==t.dataCollection){const e=Boolean(t.sendDefaultPii);return{cookies:e,requestHeaders:e,responseHeaders:e}}const{cookies:n,httpHeaders:r}=e.getDataCollectionOptions();return{cookies:n,requestHeaders:r.request,responseHeaders:r.response}}},59719(e,t,n){n.d(t,{Ts:()=>Kt});var r=n(26674),s=n(68826),o=n(19282);function i(e){const t=[];e.message&&t.push(e.message);try{const n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}var a=n(9600),c=n(70125);const u=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/^Java exception was raised during method invocation$/],l=(0,s._C)((e={})=>{let t;return{name:"EventFilters",setup(n){const r=n.getOptions();t=p(e,r)},processEvent(n,s,u){if(!t){const n=u.getOptions();t=p(e,n)}return function(e,t){if(e.type){if("transaction"===e.type&&function(e,t){if(!t?.length)return!1;const n=e.transaction;return!!n&&(0,c.Xr)(n,t)}(e,t.ignoreTransactions))return r.T&&o.Yz.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${(0,a.$X)(e)}`),!0}else{if(function(e,t){if(!t?.length)return!1;return i(e).some(e=>
2(0,c.Xr)(e,t))}(e,t.ignoreErrors))return r.T&&o.Yz.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${(0,a.$X)(e)}`),!0;if(function(e){if(!e.exception?.values?.length)return!1;return!e.message&&!e.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value)}(e))return r.T&&o.Yz.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${(0,a.$X)(e)}`),!0;if(function(e,t){if(!t?.length)return!1;const n=h(e);return!!n&&(0,c.Xr)(n,t)}(e,t.denyUrls))return r.T&&o.Yz.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${(0,a.$X)(e)}.\nUrl: ${h(e)}`),!0;if(!function(e,t){if(!t?.length)return!0;const n=h(e);return!n||(0,c.Xr)(n,t)}(e,t.allowUrls))return r.T&&o.Yz.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${(0,a.$X)(e)}.\nUrl: ${h(e)}`),!0}return!1}(n,t)?null:n}}}),d=(0,s._C)((e={})=>({...l(e),name:"InboundFilters"}));function p(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:u],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function h(e){try{const t=[...e.exception?.values??[]].reverse().find(e=>void 0===e.mechanism?.parent_id&&e.stacktrace?.frames?.length),n=t?.stacktrace?.frames;return n?function(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(n):null}catch{return r.T&&o.Yz.error(`Cannot extract url for event ${(0,a.$X)(e)}`),null}}var f=n(57968),m=n(46403);let g;const y=new WeakMap,_=(0,s._C)(()=>({name:"FunctionToString",setupOnce(){g=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=(0,m.sp)(this),n=y.has((0,f.KU)())&&void 0!==t?t:this;return g.apply(n,e)}}catch{}},setup(e){y.set(e,!0)}}));var v=n(74611),S=n(3121);const b=(0,s._C)(()=>({name:"ConversationId",setup(e){e.on("spanStart",e=>{const t=(0,f.o5)().getScopeData(),n=(0,f.rm)().getScopeData(),r=t.conversationId||n.conversationId;if(r){const{op:t,data:n,description:s}=(0,S.et)(e);if(!t?.startsWith("gen_ai.")&&!n["ai.operationId"]&&!s?.startsWith("ai."))return;e.setAttribute(v.Fy,r)}})}}));var k=n(51685);const w=(0,s._C)(()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{if(function(e,t){if(!t)return!1;if(function(e,t){const n=e.message,r=t.message;if(!n&&!r)return!1;if(n&&!r||!n&&r)return!1;if(n!==r)return!1;if(!T(e,t))return!1;if(!E(e,t))return!1;return!0}(e,t))return!0;if(function(e,t){const n=x(t),r=x(e);if(!n||!r)return!1;if(n.type!==r.type||n.value!==r.value)return!1;if(!T(e,t))return!1;if(!E(e,t))return!1;return!0}(e,t))return!0;return!1}(t,e))return r.T&&o.Yz.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}});function E(e,t){let n=(0,k.RV)(e),r=(0,k.RV)(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let e=0;e<r.length;e++){const t=r[e],s=n[e];if(t.filename!==s.filename||t.lineno!==s.lineno||t.colno!==s.colno||t.function!==s.function)return!1}return!0}function T(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch{return!1}}function x(e){return e.exception?.values?.[0]}var I=n(88214);function C(e,t){!0===t.debug&&(r.T?o.Yz.enable():(0,o.pq)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}));(0,f.o5)().update(t.initialScope);const n=new e(t);return function(e){(0,f.o5)().setClient(e)}(n),n.init(),n}function M(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function R(e,t,n){return t||`${function(e){return`${M(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){const n={sentry_version:"7"};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}(e,n)}`}var O=n(7313),A=n(75330),D=n(95200),L=n(71111),N=n(72808),P=n(96747);function j(e,t){const n=t?"auto":"never";return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{version:2,...(0,P.B)()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function z(e,t){const n=t??$(e)??[];if(0===n.length)return;
2const r=e.getOptions(),s=function(e,t,n,r,s){const o={};return t?.sdk&&(o.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(o.dsn=(0,L.SB)(r)),(0,N.h4)(o,[j(e,s)])}(n,r._metadata,r.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);U().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(s)}function $(e){return U().get(e)}function U(){return(0,D.BY)("clientToLogBufferMap",()=>new WeakMap)}function F(e,t){const n=t?"auto":"never";return[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{version:2,...(0,P.B)()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function B(e,t){const n=t??H(e)??[];if(0===n.length)return;const r=e.getOptions(),s=function(e,t,n,r,s){const o={};return t?.sdk&&(o.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(o.dsn=(0,L.SB)(r)),(0,N.h4)(o,[F(e,s)])}(n,r._metadata,r.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);q().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(s)}function H(e){return q().get(e)}function q(){return(0,D.BY)("clientToMetricBufferMap",()=>new WeakMap)}var W=n(59328),Y=n(31158),K=n(7706),J=n(61442);function G(e){const t={trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,name:e.description||"",start_timestamp:e.start_timestamp,end_timestamp:e.timestamp||e.start_timestamp,status:e.status&&"ok"!==e.status&&"cancelled"!==e.status?"error":"ok",is_segment:!1,attributes:{...e.data},links:e.links};return(0,S.PL)(t)}var V=n(93177);var X=n(64208),Q=n(45734),Z=n(91773),ee=n(49158),te=n(17786);function ne(e){return"object"==typeof e&&"function"==typeof e.unref&&e.unref(),e}const re=Symbol.for("SentryBufferFullError");function se(e=100){const t=new Set;function n(e){t.delete(e)}return{get $(){return Array.from(t)},add:function(r){if(!(t.size<e))return(0,te.xg)(re);const s=r();return t.add(s),s.then(()=>n(s),()=>n(s)),s},drain:function(e){if(!t.size)return(0,te.XW)(!0);const n=Promise.allSettled(Array.from(t)).then(()=>!0);if(!e)return n;const r=[n,new Promise(t=>ne(setTimeout(()=>t(!1),e)))];return Promise.race(r)}}}var oe=n(9123),ie=n(84347);var ae=n(82775);const ce={userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],queryParams:!0,genAI:{inputs:!0,outputs:!0},stackFrameVariables:!0,frameContextLines:5};function ue(e){const t=null!=e.dataCollection?ce:!0===e.sendDefaultPii?{userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],queryParams:!0,genAI:{inputs:!0,outputs:!0},stackFrameVariables:!0,frameContextLines:7}:{userInfo:!1,cookies:{deny:ae.UA},httpHeaders:{request:{deny:ae.UA},response:{deny:ae.UA}},httpBodies:[],queryParams:{deny:ae.UA},genAI:{inputs:!1,outputs:!1},stackFrameVariables:!0,frameContextLines:7};const n=e.dataCollection??{};return{userInfo:n.userInfo??t.userInfo,cookies:n.cookies??t.cookies,httpHeaders:{request:n.httpHeaders?.request??t.httpHeaders.request,response:n.httpHeaders?.response??t.httpHeaders.response},httpBodies:n.httpBodies??t.httpBodies,queryParams:n.queryParams??t.queryParams,genAI:{inputs:n.genAI?.inputs??t.genAI.inputs,outputs:n.genAI?.outputs??t.genAI.outputs},stackFrameVariables:n.stackFrameVariables??t.stackFrameVariables,frameContextLines:n.frameContextLines??t.frameContextLines}}const le="Not capturing exception because it's already been captured.",de="Discarded session because of missing or non-string release",pe=Symbol.for("SentryInternalError"),he=Symbol.for("SentryDoNotSendEventError");function fe(e){return{message:e,[pe]:!0}}function me(e){return{message:e,[he]:!0}}function ge(e){return!!e&&"object"==typeof e&&pe in e}function ye(e){return!!e&&"object"==typeof e&&he in e}function _e(e,t,n,r,s){let o,i=0,a=!1;e.on(n,()=>{i=0,clearTimeout(o),a=!1}),e.on(t,t=>{if(i+=r(t),i>=8e5)s(e);else if(!a){const t=e.getOptions()._flushInterval??5e3;t>0&&(a=!0,o=ne(setTimeout(()=>{s(e)},t)))}}),e.on("flush",()=>{s(e)})}class ve{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=se(e.transportOptions?.bufferSize??64),this._dataCollection=ue(e),e.dsn?this._dsn=(0,L.AD)(e.dsn):r.T&&o.Yz.warn("No DSN provided, client will not send events."),this._dsn){const t=R(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&_e(this,"afterCaptureLog","flushLogs",Ee,z);(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&_e(this,"afterCaptureMetric","flushMetrics",we,B)}captureException(e,t,n){const s=(0,a.eJ)();if((0,a.GR)(e))return r.T&&o.Yz.log(le),s;const i={event_id:s,...t};return this._process(()=>this.eventFromException(e,i).then(e=>this._captureEvent(e,i,n)).then(e=>e),"error"),i.event_id}captureMessage(e,t,n,r){const s={event_id:(0,a.eJ)(),...n},o=(0,X.NF)(e)?e:String(e),i=(0,X.sO)(e),c=i?this.eventFromMessage(o,t,s):this.eventFromException(e,s);return this._process(()=>c.then(e=>this._captureEvent(e,s,r)),i?"unknown":"error"),s.event_id}captureEvent(e,t,n){const s=(0,a.eJ)();if(t?.originalException&&(0,a.GR)(t.originalException))return r.T&&o.Yz.log(le),s;const i={event_id:s,...t},c=e.sdkProcessingMetadata||{},u=c.capturedSpanScope,l=c.capturedSpanIsolationScope,d=Se(e.type);return this._process(()=>this._captureEvent(e,i,u||n,l),d),i.event_id}captureSession(e){this.sendSession(e),(0,W.qO)(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getDataCollectionOptions(){return this._dataCollection}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){const t=this._transport;
2if(this.emit("flush"),!t)return!0;const n=await this._isClientDoneProcessing(e),r=await t.flush(e);return n&&r}async close(e){z(this);const t=await this.flush(e);return this.getOptions().enabled=!1,this.emit("close"),t}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}getIntegrationNames(){return Object.keys(this._integrations)}addIntegration(e){const t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),(0,s.qm)(this,e,this._integrations),t||(0,s.lc)(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);const n=function(e,t){if("transaction"!==e.type||!e.spans?.length||!e.sdkProcessingMetadata?.hasGenAiSpans||!1===t.getOptions().streamGenAiSpans||(0,J.K)(t))return;const n=[],r=[];for(const t of e.spans)t.op?.startsWith("gen_ai.")?n.push(G(t)):r.push(t);if(0===n.length)return;e.spans=r;const s=t.getDataCollectionOptions().userInfo?"auto":"never";return[{type:"span",item_count:n.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...(0,P.B)()&&{ingest_settings:{infer_ip:s,infer_user_agent:s}},items:n}]}(e,this);let r=(0,A.V7)(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])r=(0,N.W3)(r,(0,N.bm)(e));n&&(r=(0,N.W3)(r,n)),this.sendEnvelope(r).then(t=>this.emit("afterSendEvent",e,t))}sendSession(e){const{release:t,environment:n=O.U}=this._options;if("aggregates"in e){const s=e.attrs||{};if(!s.release&&!t)return void(r.T&&o.Yz.warn(de));s.release=s.release||t,s.environment=s.environment||n,e.attrs=s}else{if(!e.release&&!t)return void(r.T&&o.Yz.warn(de));e.release=e.release||t,e.environment=e.environment||n}this.emit("beforeSendSession",e);const s=(0,A.LE)(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(s)}recordDroppedEvent(e,t,n=1){if(this._options.sendClientReports){const s=`${e}:${t}`;r.T&&o.Yz.log(`Recording outcome: "${s}"${n>1?` (${n} times)`:""}`),this._outcomes[s]=(this._outcomes[s]||0)+n}}on(e,t){const n=this._hooks[e]=this._hooks[e]||new Set,r=(...e)=>t(...e);return n.add(r),()=>{n.delete(r)}}emit(e,...t){const n=this._hooks[e];n&&n.forEach(e=>e(...t))}async sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(e){return r.T&&o.Yz.error("Error while sending envelope:",e),{}}return r.T&&o.Yz.error("Transport disabled"),{}}registerCleanup(e){}dispose(){}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=(0,s.P$)(this,e),(0,s.lc)(this,e)}_updateSessionFromEvent(e,t){let n="fatal"===t.level,r=!1;const s=t.exception?.values;if(s){r=!0,n=!1;for(const e of s)if(!1===e.mechanism?.handled){n=!0;break}}const o="ok"===e.status;(o&&0===e.errors||o&&n)&&((0,W.qO)(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||t<e;){if(await new Promise(e=>setTimeout(e,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,r){const s=this.getOptions(),o=this.getIntegrationNames();return!t.integrations&&o.length&&(t.integrations=o),this.emit("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),(0,ee.mG)(s,e,t,n,this,r).then(e=>{if(null===e)return e;this.emit("postprocessEvent",e,t),e.contexts={trace:{...e.contexts?.trace,...(0,f.vn)(n)},...e.contexts};const r=(0,Y.ao)(this,n);return e.sdkProcessingMetadata={dynamicSamplingContext:r,...e.sdkProcessingMetadata},e})}_captureEvent(e,t={},n=(0,f.o5)(),s=(0,f.rm)()){return r.T&&be(e)&&o.Yz.log(`Captured error event \`${i(e)[0]||"<unknown>"}\``),this._processEvent(e,t,n,s).then(e=>e.event_id,e=>{r.T&&(ye(e)?o.Yz.log(e.message):ge(e)?o.Yz.warn(e.message):o.Yz.warn(e))})}_processEvent(e,t,n,r){const s=this.getOptions(),{sampleRate:o}=s,i=ke(e),a=be(e),c=`before send for type \`${e.type||"error"}\``,u=void 0===o?void 0:(0,Z.i)(o);if(a&&"number"==typeof u&&(0,oe.hY)()>u)return this.recordDroppedEvent("sample_rate","error"),(0,te.xg)(me(`Discarding event because it's not included in the random sample (sampling rate = ${o})`));const l=Se(e.type);return this._prepareEvent(e,t,n,r).then(e=>{if(null===e)throw this.recordDroppedEvent("event_processor",l),me("An event processor returned `null`, will not send event.");if(!0===t.data?.__sentry__)return e;const n=function(e,t,n,r){const{beforeSend:s,beforeSendTransaction:o,ignoreSpans:i}=t,a=!(0,K.S)(t.beforeSendSpan)&&t.beforeSendSpan;let c=n;if(be(c)&&s)return s(c,r);if(ke(c)){if(a||i){const t=function(e){const{trace_id:t,parent_span_id:n,span_id:r,status:s,origin:o,data:i,op:a}=e.contexts?.trace??{};return{data:i??{},description:e.transaction,op:a,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:s,timestamp:e.timestamp,trace_id:t??"",origin:o,profile_id:i?.[v.E1],exclusive_time:i?.[v.jG],measurements:e.measurements,is_segment:!0}}(c);if(i?.length&&(0,ie.e)({description:t.description,op:t.op,attributes:t.data},i))return null;if(a){const e=a(t);e?c=(0,Q.h)(n,{type:"transaction",timestamp:(u=e).timestamp,start_timestamp:u.start_timestamp,transaction:u.description,contexts:{trace:{trace_id:u.trace_id,span_id:u.span_id,parent_span_id:u.parent_span_id,op:u.op,status:u.status,origin:u.origin,data:{...u.data,...u.profile_id&&{[v.E1]:u.profile_id},...u.exclusive_time&&{[v.jG]:u.exclusive_time}}}},measurements:u.measurements}):(0,S.xl)()}if(c.spans){const t=[],n=c.spans;for(const e of n)if(i?.length&&(0,ie.e)({description:e.description,op:e.op,attributes:e.data},i))(0,ie.R)(n,e);else if(a){const n=a(e);n?t.push(n):((0,S.xl)(),t.push(e))}else t.push(e);const r=c.spans.length-t.length;r&&e.recordDroppedEvent("before_send","span",r),c.spans=t}}if(o){if(c.spans){const e=c.spans.length;c.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return o(c,r)}}var u;return c}(this,s,e,t);return function(e,t){const n=`${t} must return \`null\` or a valid event.`;if((0,X.Qg)(e))return e.then(e=>{if(!(0,X.Qd)(e)&&null!==e)throw fe(n);return e},e=>{throw fe(`${t} rejected with ${e}`)});if(!(0,X.Qd)(e)&&null!==e)throw fe(n);return e}(n,c)}).then(s=>{if(null===s){if(this.recordDroppedEvent("before_send",l),i){const t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw me(`${c} returned \`null\`, will not send event.`)}
2const o=n.getSession()||r.getSession();if(a&&o&&this._updateSessionFromEvent(o,s),i){const e=(s.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(s.spans?s.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}const u=s.transaction_info;if(i&&u&&s.transaction!==e.transaction){const e="custom";s.transaction_info={...u,source:e}}return this.sendEvent(s,t),s}).then(null,e=>{if(ye(e)||ge(e))throw e;throw this.captureException(e,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:e}),fe(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===re&&this.recordDroppedEvent("queue_overflow",t),e))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{const[n,r]=e.split(":");return{reason:n,category:r,quantity:t}})}_flushOutcomes(){r.T&&o.Yz.log("Flushing outcomes...");const e=this._clearOutcomes();if(0===e.length)return void(r.T&&o.Yz.log("No outcomes to send"));if(!this._dsn)return void(r.T&&o.Yz.log("No dsn provided, will not send outcomes"));r.T&&o.Yz.log("Sending outcomes:",e);const t=function(e,t,n){const r=[{type:"client_report"},{timestamp:n||(0,V.lu)(),discarded_events:e}];return(0,N.h4)(t?{dsn:t}:{},[r])}(e,this._options.tunnel&&(0,L.SB)(this._dsn));this.sendEnvelope(t)}}function Se(e){return"replay_event"===e?"replay":e||"error"}function be(e){return void 0===e.type}function ke(e){return"transaction"===e.type}function we(e){let t=0;return e.name&&(t+=2*e.name.length),t+=8,t+Te(e.attributes)}function Ee(e){let t=0;return e.message&&(t+=2*e.message.length),t+Te(e.attributes)}function Te(e){if(!e)return 0;let t=0;return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*xe(e[0]):(0,X.sO)(e)?t+=xe(e):t+=100}),t}function xe(e){return"string"==typeof e?2*e.length:"number"==typeof e?8:"boolean"==typeof e?4:0}var Ie=n(50925),Ce=n(43674);function Me(e){"aggregates"in e?void 0===e.attrs?.ip_address&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):void 0===e.ipAddress&&(e.ipAddress="{{auto}}")}function Re(e){return function(e){return(0,X.bJ)(e)&&"__sentry_fetch_url_host__"in e&&"string"==typeof e.__sentry_fetch_url_host__}(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}function Oe(e,t){const n=Le(e,t),r={type:je(t),value:ze(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function Ae(e,t,n,r){const s=(0,f.KU)(),o=s?.getOptions().normalizeDepth,i=(a=t,Object.values(a).find(e=>e instanceof Error));var a;const c={__serialized__:(0,I.cd)(t,o)};if(i)return{exception:{values:[Oe(e,i)]},extra:c};const u={exception:{values:[{type:(0,X.xH)(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Fe(t,{isUnhandledRejection:r})}]},extra:c};if(n){const t=Le(e,n);t.length&&(u.exception.values[0].stacktrace={frames:t})}return u}function De(e,t){return{exception:{values:[Oe(e,t)]}}}function Le(e,t){const n=t.stacktrace||t.stack||"",r=function(e){if(e&&Ne.test(e.message))return 1;return 0}(t),s=function(e){if("number"==typeof e.framesToPop)return e.framesToPop;return 0}(t);try{return e(n,r,s)}catch{}return[]}const Ne=/Minified React error #\d+;/i;function Pe(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function je(e){const t=e?.name;if(!t&&Pe(e)){return e.message&&Array.isArray(e.message)&&2==e.message.length?e.message[0]:"WebAssembly.Exception"}return t}function ze(e){const t=e?.message;return Pe(e)?Array.isArray(e.message)&&2==e.message.length?e.message[1]:"wasm exception":t?t.error&&"string"==typeof t.error.message?Re(t.error):Re(e):"No error message"}function $e(e,t,n,r,s){let o;if((0,X.T2)(t)&&t.error){return De(e,t.error)}if((0,X.BD)(t)||(0,X.W6)(t)){const s=t;if("stack"in t){o=De(e,t);const s=o.exception?.values?.[0];if(r&&n&&s&&!s.stacktrace){const t=Le(e,n);t.length&&(s.stacktrace={frames:t},(0,a.M6)(o,{synthetic:!0}))}}else{const t=s.name||((0,X.BD)(s)?"DOMError":"DOMException"),i=s.message?`${t}: ${s.message}`:t;o=Ue(e,i,n,r),(0,a.gO)(o,i)}return"code"in s&&(o.tags={...o.tags,"DOMException.code":`${s.code}`}),o}if((0,X.bJ)(t))return De(e,t);if((0,X.Qd)(t)||(0,X.xH)(t)){return o=Ae(e,t,n,s),(0,a.M6)(o,{synthetic:!0}),o}return o=Ue(e,t,n,r),(0,a.gO)(o,`${t}`,void 0),(0,a.M6)(o,{synthetic:!0}),o}function Ue(e,t,n,r){const s={};if(r&&n){const r=Le(e,n);r.length&&(s.exception={values:[{value:t,stacktrace:{frames:r}}]}),(0,a.M6)(s,{synthetic:!0})}
2if((0,X.NF)(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return s.logentry={message:e,params:n},s}return s.message=t,s}function Fe(e,{isUnhandledRejection:t}){const n=(0,m.HF)(e),r=t?"promise rejection":"exception";if((0,X.T2)(e))return`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``;if((0,X.xH)(e)){return`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}(e)}\` (type=${e.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}var Be=n(54386);class He extends ve{constructor(e){const t=(n=e,{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:Be.jf.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...n});var n;!function(e,t,n=[t],r="npm"){const s=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};s.name||(s.name=`sentry.javascript.${t}`,s.packages=n.map(e=>({name:`${r}:@sentry/${e}`,version:Ce.M})),s.version=Ce.M)}(t,"browser",["browser"],Be.jf.SENTRY_SDK_SOURCE||(0,Ie.e)()),super(t);const{userInfo:r}=this.getDataCollectionOptions();t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:r?"auto":"never",...t._metadata.sdk.settings});const{sendClientReports:s,enableLogs:o,_experiments:i,enableMetrics:a}=this._options,c=a??i?.enableMetrics??!0;Be.jf.document&&(s||o||c)&&Be.jf.document.addEventListener("visibilitychange",()=>{"hidden"===Be.jf.document.visibilityState&&(s&&this._flushOutcomes(),o&&z(this),c&&B(this))}),r&&this.on("beforeSendSession",Me)}eventFromException(e,t){return function(e,t,n,r){const s=$e(e,t,n?.syntheticException||void 0,r);return(0,a.M6)(s),s.level="error",n?.event_id&&(s.event_id=n.event_id),(0,te.XW)(s)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,s){const o=Ue(e,t,r?.syntheticException||void 0,s);return o.level=n,r?.event_id&&(o.event_id=r.event_id),(0,te.XW)(o)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}_prepareEvent(e,t,n,r){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n,r)}}var qe=n(18845),We=n(13235);const Ye=new Set([]);function Ke(){"console"in qe.O&&o.Ow.forEach(function(e){e in qe.O.console&&(0,m.GS)(qe.O.console,e,function(t){return o.Z9[e]=t,function(...t){const n=t[0],s=o.Z9[e],i=Ye.size&&"string"==typeof n&&(0,c.Xr)(n,Ye);i||(0,We.aj)("console",{args:t,level:e}),(!i||r.T&&o.Yz.isEnabled())&&s?.apply(qe.O.console,t)}})})}var Je=n(51564),Ge=n(6810),Ve=n(57726),Xe=n(27879);function Qe(e){return void 0===e?void 0:e>=400&&e<500?"warning":e>=500?"error":void 0}var Ze=n(67607),et=n(2393),tt=n(14839),nt=n(73661),rt=n(96103),st=n(62745);const ot=1024,it=(0,s._C)((e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){t.console&&function(e){const t="console",n=(0,We.s5)(t,e);(0,We.AS)(t,Ke)}(function(e){return function(t){if((0,f.KU)()!==e)return;const n={category:"console",data:{arguments:t.args,logger:"console"},level:(0,Xe.t)(t.level),message:(0,c.gt)(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${(0,c.gt)(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}(0,Ge.Z)(n,{input:t.args,level:t.level})}}(e)),t.dom&&(0,et.i)(function(e,t){return function(n){if((0,f.KU)()!==e)return;let r,s,i="object"==typeof t?t.serializeAttribute:void 0,a="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;a&&a>ot&&(st.T&&o.Yz.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${a} was configured. Sentry will use 1024 instead.`),a=ot),"string"==typeof i&&(i=[i]);try{const e=n.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;r=(0,rt.H)(t,{keyAttrs:i,maxStringLength:a}),s=(0,Ve.xE)(t)}catch{r="<unknown>"}if(0===r.length)return;const c={category:`ui.${n.name}`,message:r};s&&(c.data={"ui.component_name":s}),(0,Ge.Z)(c,{event:n.event,name:n.name,global:n.global})}}(e,t.dom)),t.xhr&&(0,tt.Mn)(function(e){return function(t){if((0,f.KU)()!==e)return;const{startTimestamp:n,endTimestamp:r}=t,s=t.xhr[tt.Er];if(!n||!r||!s)return;const{method:o,url:i,status_code:a,body:c}=s,u={method:o,url:i,status_code:a},l={xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:r},d={category:"xhr",data:u,type:"http",level:Qe(a)};e.emit("beforeOutgoingRequestBreadcrumb",d,l),(0,Ge.Z)(d,l)}}(e)),t.fetch&&(0,Je.ur)(function(e){return function(t){if((0,f.KU)()!==e)return;const{startTimestamp:n,endTimestamp:r}=t;
2if(r&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error){const s={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r},o={category:"fetch",data:t.fetchData,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",o,s),(0,Ge.Z)(o,s)}else{const s=t.response,o={...t.fetchData,status_code:s?.status},i={input:t.args,response:s,startTimestamp:n,endTimestamp:r},a={category:"fetch",data:o,type:"http",level:Qe(o.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",a,i),(0,Ge.Z)(a,i)}}}(e)),t.history&&(0,nt._)(function(e){return function(t){if((0,f.KU)()!==e)return;let n=t.from,r=t.to;const s=(0,Ze.Dl)(Be.jf.location.href);let o=n?(0,Ze.Dl)(n):void 0;const i=(0,Ze.Dl)(r);o?.path||(o=s),s.protocol===i.protocol&&s.host===i.host&&(r=i.relative),s.protocol===o.protocol&&s.host===o.host&&(n=o.relative),(0,Ge.Z)({category:"navigation",data:{from:n,to:r}})}}(e)),t.sentry&&e.on("beforeSendEvent",function(e){return function(t){(0,f.KU)()===e&&(0,Ge.Z)({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:(0,a.$X)(t)},{event:t})}}(e))}}});const at="EventTarget,Window,Node,ApplicationCache,AudioTrackList,BroadcastChannel,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDBRequest,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload".split(","),ct=(0,s._C)((e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&(0,m.GS)(Be.jf,"setTimeout",ut),t.setInterval&&(0,m.GS)(Be.jf,"setInterval",ut),t.requestAnimationFrame&&(0,m.GS)(Be.jf,"requestAnimationFrame",lt),t.XMLHttpRequest&&"XMLHttpRequest"in Be.jf&&(0,m.GS)(XMLHttpRequest.prototype,"send",dt);const e=t.eventTarget;if(e){(Array.isArray(e)?e:at).forEach(e=>function(e,t){const n=Be.jf,r=n[e]?.prototype;if(!r?.hasOwnProperty?.("addEventListener"))return;(0,m.GS)(r,"addEventListener",function(n){return function(r,s,o){try{"function"==typeof s.handleEvent&&(s.handleEvent=(0,Be.LV)(s.handleEvent,{mechanism:{data:{handler:(0,k.qQ)(s),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&function(e,t,n){e&&"object"==typeof e&&"removeEventListener"in e&&"function"==typeof e.removeEventListener&&e.removeEventListener(t,n)}(this,r,s),n.apply(this,[r,(0,Be.LV)(s,{mechanism:{data:{handler:(0,k.qQ)(s),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),o])}}),(0,m.GS)(r,"removeEventListener",function(e){return function(t,n,r){try{if(Object.prototype.hasOwnProperty.call(n,"__sentry_wrapped__")){const s=n.__sentry_wrapped__;s&&e.call(this,t,s,r)}}catch{}return e.call(this,t,n,r)}})}(e,t))}}}});function ut(e){return function(...t){const n=t[0];return t[0]=(0,Be.LV)(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${(0,k.qQ)(e)}`}}),e.apply(this,t)}}function lt(e){return function(t){return e.apply(this,[(0,Be.LV)(t,{mechanism:{data:{handler:(0,k.qQ)(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function dt(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&(0,m.GS)(n,e,function(t){const n={mechanism:{data:{handler:(0,k.qQ)(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},r=(0,m.sp)(t);return r&&(n.mechanism.data.handler=(0,k.qQ)(r)),(0,Be.LV)(t,n)})}),e.apply(this,t)}}var pt=n(64251),ht=n(46053);const ft=(0,s._C)((e={})=>{const t=e.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(void 0===Be.jf.document)return void(st.T&&o.Yz.warn("Using the `browserSessionIntegration` in non-browser environments is not supported."));(0,pt.J0)({ignoreDuration:!0});let e=!1;(0,ht.k)(()=>{e||((0,pt.J5)(),e=!0)});const n=(0,f.rm)();let r=n.getUser();n.addScopeListener(t=>{const n=t.getUser();r?.id===n?.id&&r?.ip_address===n?.ip_address||(r=n,e&&(0,pt.J5)())}),"route"===t&&(0,nt._)(({from:t,to:n})=>{t!==n&&((0,pt.J0)({ignoreDuration:!0}),(0,pt.J5)(),e=!0)})}}});var mt=n(73461);const gt=(0,s._C)(()=>({name:"CultureContext",preprocessEvent(e){const t=yt();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})},processSegmentSpan(e){const t=yt();t&&(0,mt.FD)(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar})}}));function yt(){try{const e=Be.jf.Intl;if(!e)return;const t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}var _t=n(80491),vt=n(99411);const St=(0,s._C)((e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(!function(e){(0,_t.L)(t=>{const{stackParser:n,attachStacktrace:r}=kt();if((0,f.KU)()!==e||(0,Be.jN)())return;const{msg:s,url:o,line:i,column:a,error:c}=t,u=function(e,t,n,r){const s=e.exception=e.exception||{},o=s.values=s.values||[],i=o[0]=o[0]||{},a=i.stacktrace=i.stacktrace||{},c=a.frames=a.frames||[];0===c.length&&c.push({colno:r,lineno:n,filename:wt(t)??(0,Ve.$N)(),function:"?",in_app:!0});return e}($e(n,c||s,void 0,r,!1),o,i,a);u.level="error",(0,pt.r)(u,{originalException:c,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}(e),bt("onerror")),t.onunhandledrejection&&(!function(e){(0,vt.r)(t=>{const{stackParser:n,attachStacktrace:r}=kt();if((0,f.KU)()!==e||(0,Be.jN)())return;const s=function(e){if((0,X.sO)(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}(t),o=(0,X.sO)(s)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(s)}`}]}}:$e(n,s,void 0,r,!0);o.level="error",(0,pt.r)(o,{originalException:s,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}(e),bt("onunhandledrejection"))}}});function bt(e){st.T&&o.Yz.log(`Global Handler attached: ${e}`)}function kt(){const e=(0,f.KU)();return e?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function wt(e){if((0,X.Kg)(e)&&0!==e.length)return e.startsWith("data:")?`<${(0,Ze.zm)(e,!1)}>`:e}const Et=(0,s._C)(()=>({name:"HttpContext",preprocessEvent(e){if(!Be.jf.navigator&&!Be.jf.location&&!Be.jf.document)return;const t=(0,Be.AP)(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}},processSegmentSpan(e){const t=e.attributes?.[v.uT];if(!Be.jf.navigator&&!Be.jf.location&&!Be.jf.document)return;const n=(0,Be.AP)();(0,mt.FD)(e,{"url.full":"http.client"!==t?n.url:void 0,"http.request.header.user_agent":n.headers["User-Agent"],"http.request.header.referer":n.headers.Referer})}}));function Tt(e,t,n,r,s,o){if(!s.exception?.values||!o||!(0,X.tH)(o.originalException,Error))return;const i=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;i&&(s.exception.values=xt(e,t,r,o.originalException,n,s.exception.values,i,0
2))}function xt(e,t,n,r,s,o,i,a){if(o.length>=n+1)return o;let c=[...o];if((0,X.tH)(r[s],Error)){Ct(i,a,r);const o=e(t,r[s]),u=c.length;Mt(o,s,u,a),c=xt(e,t,n,r[s],s,[o,...c],o,u)}return It(r)&&r.errors.forEach((o,u)=>{if((0,X.tH)(o,Error)){Ct(i,a,r);const l=e(t,o),d=c.length;Mt(l,`errors[${u}]`,d,a),c=xt(e,t,n,o,s,[l,...c],l,d)}}),c}function It(e){return Array.isArray(e.errors)}function Ct(e,t,n){e.mechanism={handled:!0,type:"auto.core.linked_errors",...It(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function Mt(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}const Rt=(0,s._C)((e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,r,s){Tt(Oe,s.getOptions().stackParser,n,t,e,r)}}});function Ot(e,t,n,r){const s={filename:e,function:"<anonymous>"===t?"?":t,in_app:!0};return void 0!==n&&(s.lineno=n),void 0!==r&&(s.colno=r),s}const At=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Dt=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Lt=/\((\S*)(?::(\d+))(?::(\d+))\)/,Nt=/at (.+?) ?\(data:(.+?),/,Pt=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,jt=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,zt=[[30,e=>{const t=e.match(Nt);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};const n=At.exec(e);if(n){const[,e,t,r]=n;return Ot(e,"?",+t,+r)}const r=Dt.exec(e);if(r){if(0===r[2]?.indexOf("eval")){const e=Lt.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}const[e,t]=Ut(r[1]||"?",r[2]);return Ot(t,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],[50,e=>{const t=Pt.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=jt.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||"?";return[n,e]=Ut(n,e),Ot(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]],$t=(0,k.gd)(...zt),Ut=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:"?",n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};var Ft=n(36227);var Bt=n(88406);function Ht(e,t=(0,Bt.qd)("fetch")){let n=0,s=0;return function(e,t,n=se(e.bufferSize||64)){let s={};return{send:function(i){const a=[];if((0,N.yH)(i,(t,n)=>{const r=(0,N.zk)(n);(0,Ft.Jz)(s,r)?e.recordDroppedEvent("ratelimit_backoff",r):a.push(t)}),0===a.length)return Promise.resolve({});const c=(0,N.h4)(i[0],a),u=t=>{(0,N.hP)(c,["client_report"])?r.T&&o.Yz.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`):(0,N.yH)(c,(n,r)=>{e.recordDroppedEvent(t,(0,N.zk)(r))})};return n.add(()=>t({body:(0,N.bN)(c)}).then(e=>413===e.statusCode?(r.T&&o.Yz.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),u("send_error"),e):(r.T&&void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&o.Yz.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),s=(0,Ft.wq)(s,e),e),e=>{throw u("network_error"),r.T&&o.Yz.error("Encountered error running transport request:",e),e})).then(e=>e,e=>{if(e===re)return r.T&&o.Yz.error("Skipped sending event because buffer is full."),u("queue_overflow"),Promise.resolve({});throw e})},flush:e=>n.drain(e)}}(e,async function(r){const o=r.body.length;n+=o,s++;const i={body:r.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&s<15,...e.fetchOptions};try{const n=await t(e.url,i);return{statusCode:n.status,headers:{"x-sentry-rate-limits":n.headers.get("X-Sentry-Rate-Limits"),"retry-after":n.headers.get("Retry-After")}}}catch(e){throw(0,Bt.y7)("fetch"),e}finally{n-=o,s--}},se(e.bufferSize||40))}const qt=/^HTML(\w*)Element$/;function Wt(e){if("undefined"!=typeof window&&e===window)return"[Window]";if("undefined"!=typeof document&&e===document)return"[Document]";if(function(e){if("undefined"==typeof Element)return!1;try{return e instanceof Element}catch{return!1}}(e)){const t=function(e){const t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}(e);if(qt.test(t))return`[HTMLElement: ${(0,rt.H)(e)}]`}}function Yt(){return!!function(){if(void 0===Be.jf.window)return!1;const e=Be.jf;if(e.nw)return!1;const t=e.chrome||e.browser;if(!t?.runtime?.id)return!1;const n=(0,Ve.$N)();return!(Be.jf===Be.jf.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(n))}()&&(st.T&&(0,o.pq)(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0)}function Kt(e={}){const t=!e.skipBrowserExtensionCheck&&Yt();let n=null==e.defaultIntegrations?[d(),_(),b(),ct(),it(),St(),Rt(),w(),Et(),gt(),ft()]:e.defaultIntegrations;const r={...e,enabled:!t&&e.enabled,stackParser:(0,k.vk)(e.stackParser||$t),integrations:(0,s.mH)({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||Ht};return(0,I.Ip)(Wt),C(He,r)}},40054(e,t,n){n.d(t,{dp:()=>ht});var r=n(57968),s=n(26674),o=n(74611),i=n(19282),a=n(54704),c=n(84347),u=n(70333),l=n(3121),d=n(93177),p=n(33868),h=n(75330),f=n(74733),m=n(31158);function g(e,t,n,r=(0,l.Bk)()){const a=r&&(0,l.zU)(r);a&&(s.T&&i.Yz.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),a.addEvent(e,{[o.xc]:t,[o.Sn]:n}))}function y(e){if(!e||0===e.length)return;const t={};
2return e.forEach(e=>{const n=e.attributes||{},r=n[o.Sn],s=n[o.xc];"string"==typeof r&&"number"==typeof s&&(t[e.name]={value:s,unit:r})}),t}var _=n(61442),v=n(88728);class S{constructor(e={}){this._traceId=e.traceId||(0,f.e)(),this._spanId=e.spanId||(0,f.Z)(),this._startTime=e.startTimestamp||(0,d.zf)(),this._links=e.links,this._attributes={},this.setAttributes({[o.JD]:"manual",[o.uT]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this._links?this._links.push(e):this._links=[e],this}addLinks(e){return this._links?this._links.push(...e):this._links=e,this}recordException(e,t){}spanContext(){const{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?1:0}}setAttribute(e,t){return void 0===t?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._startTime=(0,l.cI)(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,(0,v.ZO)(this)||this.setAttribute(o.i_,"custom"),this}end(e){this._endTime||(this._endTime=(0,l.cI)(e),function(e){if(!s.T)return;const{description:t="< unknown name >",op:n="< unknown op >"}=(0,l.et)(e),{spanId:r}=e.spanContext(),o=`[Tracing] Finishing "${n}" ${(0,l.zU)(e)===e?"root ":""}span "${t}" with ID ${r}`;i.Yz.log(o)}(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[o.uT],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:(0,l.yW)(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[o.JD],profile_id:this._attributes[o.E1],exclusive_time:this._attributes[o.jG],measurements:y(this._events),is_segment:this._isStandaloneSpan&&(0,l.zU)(this)===this||void 0,segment_id:this._isStandaloneSpan?(0,l.zU)(this).spanContext().spanId:void 0,links:(0,l.uU)(this._links)}}getStreamedSpanJSON(){return{name:this._name??"",span_id:this._spanId,trace_id:this._traceId,parent_span_id:this._parentSpanId,start_timestamp:this._startTime,end_timestamp:this._endTime??this._startTime,is_segment:this._isStandaloneSpan||this===(0,l.zU)(this),status:(0,l.dZ)(this._status),attributes:(0,l.fy)(this._attributes,this._status),links:(0,l.HQ)(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){s.T&&i.Yz.log("[Tracing] Adding an event to span:",e);const r=b(t)?t:n||(0,d.zf)(),o=b(t)?{}:t||{},a={name:e,time:(0,l.cI)(r),attributes:o};return this._events.push(a),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const e=(0,r.KU)();e&&(e.emit("spanEnd",this),this._isStandaloneSpan||e.emit("afterSpanEnd",this));if(!(this._isStandaloneSpan||this===(0,l.zU)(this)))return;if(this._isStandaloneSpan)return void(this._sampled?function(e){const t=(0,r.KU)();if(!t)return;const n=e[1];if(!n||0===n.length)return void t.recordDroppedEvent("before_send","span");t.sendEnvelope(e)}((0,h.lu)([this],e)):(s.T&&i.Yz.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span")));if(e&&(0,_.K)(e))return void e.emit("afterSegmentSpanEnd",this);const t=this._convertSpanToTransaction();if(t){((0,v.Lb)(this).scope||(0,r.o5)()).captureEvent(t)}}_convertSpanToTransaction(){if(!k((0,l.et)(this)))return;this._name||(s.T&&i.Yz.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:e,isolationScope:t}=(0,v.Lb)(this),n=e?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0!==this._sampled)return;const r=(0,l.xO)(this).filter(e=>e!==this&&!function(e){return e instanceof S&&e.isStandaloneSpan()}(e)).map(e=>(0,l.et)(e)).filter(k),a=this._attributes[o.i_];delete this._attributes[o.Le];let c=!1;r.forEach(e=>{delete e.data[o.Le],e.op?.startsWith("gen_ai.")&&(c=!0)});const u={contexts:{trace:(0,l.Ck)(this)},spans:r.length>1e3?r.sort((e,t)=>
2e.start_timestamp-t.start_timestamp).slice(0,1e3):r,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,dynamicSamplingContext:(0,m.k1)(this),hasGenAiSpans:c},request:n,...a&&{transaction_info:{source:a}}},d=y(this._events);return d&&Object.keys(d).length&&(s.T&&i.Yz.log("[Measurements] Adding measurements to transaction event",JSON.stringify(d,void 0,2)),u.measurements=d),u}}function b(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function k(e){return!!(e.start_timestamp&&e.timestamp&&e.span_id&&e.trace_id)}var w=n(73949),E=n(95200),T=n(91773);const x="__SENTRY_SUPPRESS_TRACING__";function I(e){const t=D();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=A(e),{forceTransaction:s,parentSpan:o}=e;return(e.scope?t=>(0,r.v4)(e.scope,t):void 0!==o?e=>C(o,e):e=>e())(()=>{const t=(0,r.o5)(),i=N(t,o),a=(0,r.KU)();return e.onlyIfParent&&!i?R(t,a):O({parentSpan:i,spanArguments:n,forceTransaction:s,scope:t})})}function C(e,t){const n=D();return n.withActiveSpan?n.withActiveSpan(e,t):(0,r.v4)(n=>((0,u.r)(n,e||void 0),t(n)))}function M(e=(0,r.o5)()){const t=D();return t.isTracingSuppressed?t.isTracingSuppressed(e):!0===e.getScopeData().sdkProcessingMetadata[x]}function R(e,t){t?.recordDroppedEvent("no_parent_span","span");const n=new p.w({traceId:e.getPropagationContext().traceId});return(0,v.d_)(n,e,(0,r.rm)()),n}function O({parentSpan:e,spanArguments:t,forceTransaction:n,scope:u}){const d=(0,r.rm)();if(!(0,a.f)()){const t={...d.getPropagationContext(),...u.getPropagationContext()},r=e?e.spanContext().traceId:t.traceId,s=new p.w({traceId:r});return e&&!n&&(0,l.Hu)(e,s),(0,v.d_)(s,u,d),s}const h=(0,r.KU)();if(function(e,t){const n=e?.getOptions().ignoreSpans;if(!e||!(0,_.K)(e)||!n?.length)return!1;return(0,c.e)({description:t.name||"",op:t.attributes?.[o.uT]||t.op,attributes:t.attributes},n)}(h,t)){M(u)||h?.recordDroppedEvent("ignored","span");const t=new p.w({dropReason:"ignored",traceId:e?.spanContext().traceId??u.getPropagationContext().traceId});return(0,v.d_)(t,u,d),t}let f;if(e&&!n)f=function(e,t,n,s){const{spanId:o,traceId:i}=e.spanContext(),a=M(t),c=!a&&(0,l.pK)(e),u=c?new S({...n,parentSpanId:o,traceId:i,sampled:c}):new p.w({traceId:i});(0,l.Hu)(e,u),(0,v.d_)(u,t,s);const d=(0,r.KU)();if(!d)return u;(0,_.K)(d)&&(0,p.h)(u)&&((0,p.h)(e)&&e.dropReason?(u.dropReason=e.dropReason,d.recordDroppedEvent(e.dropReason,"span")):a||(u.dropReason="sample_rate",d.recordDroppedEvent("sample_rate","span")));d.emit("spanStart",u),n.endTimestamp&&(d.emit("spanEnd",u),d.emit("afterSpanEnd",u));return u}(e,u,t,d),(0,l.Hu)(e,f);else if(e){const n=(0,m.k1)(e),{traceId:r,spanId:s}=e.spanContext(),o=(0,l.pK)(e);f=L({traceId:r,parentSpanId:s,...t},u,d,o),(0,m.LZ)(f,n)}else{const{traceId:e,dsc:n,parentSpanId:r,sampled:s}={...d.getPropagationContext(),...u.getPropagationContext()};f=L({traceId:e,parentSpanId:r,...t},u,d,s),n&&(0,m.LZ)(f,n)}return function(e){if(!s.T)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=(0,l.et)(e),{spanId:o}=e.spanContext(),a=(0,l.pK)(e),c=(0,l.zU)(e),u=c===e,d=`[Tracing] Starting ${a?"sampled":"unsampled"} ${u?"root ":""}span`,p=[`op: ${n}`,`name: ${t}`,`ID: ${o}`];if(r&&p.push(`parent ID: ${r}`),!u){const{op:e,description:t}=(0,l.et)(c);p.push(`root ID: ${c.spanContext().spanId}`),e&&p.push(`root op: ${e}`),t&&p.push(`root description: ${t}`)}i.Yz.log(`${d}\n ${p.join("\n ")}`)}(f),f}function A(e){const t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const n={...t};return n.startTimestamp=(0,l.cI)(e.startTime),delete n.startTime,n}return t}function D(){const e=(0,E.EU)();return(0,w.h)(e)}function L(e,t,n,c){const u=(0,r.KU)(),l=u?.getOptions()||{},{name:d=""}=e,p={spanAttributes:{...e.attributes},spanName:d,parentSampled:c};u?.emit("beforeSampling",p,{decision:!1});const h=p.parentSampled??c,f=p.spanAttributes,m=t.getPropagationContext(),g=M(t),[y,b,k]=g?[!1]:function(e,t,n){if(!(0,a.f)(e))return[!1];let r,o;"function"==typeof e.tracesSampler?(o=e.tracesSampler({...t,inheritOrSampleWith:e=>"number"==typeof t.parentSampleRate?t.parentSampleRate:"boolean"==typeof t.parentSampled?Number(t.parentSampled):e}),r=!0):void 0!==t.parentSampled?o=t.parentSampled:void 0!==e.tracesSampleRate&&(o=e.tracesSampleRate,r=!0);const c=(0,T.i)(o);if(void 0===c)return s.T&&i.Yz.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(o)} of type ${JSON.stringify(typeof o)}.`),[!1];if(!c)return s.T&&i.Yz.log("[Tracing] Discarding transaction because "+("function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),[!1,c,r];const u=n<c;return u||s.T&&i.Yz.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(o)})`),[u,c,r]}(l,{name:d,parentSampled:h,attributes:f,normalizedRequest:n.getScopeData().sdkProcessingMetadata.normalizedRequest,parentSampleRate:(0,T.i)(m.dsc?.sample_rate)},m.sampleRand),w=new S({...e,attributes:{[o.i_]:"custom",[o.sy]:void 0!==b&&k?b:void 0,...f},sampled:y}
2);return y||!u||g||(s.T&&i.Yz.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),u.recordDroppedEvent("sample_rate",(0,_.K)(u)?"span":"transaction")),(0,v.d_)(w,t,n),u&&u.emit("spanStart",w),w}function N(e,t){if(t)return t;if(null===t)return;const n=(0,u.f)(e);if(!n)return;const s=(0,r.KU)();return(s?s.getOptions():{}).parentSpanIsAlwaysRootSpan?(0,l.zU)(n):n}const P={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};function j(e,t={}){const n=new Map;let h,f=!1,m="externalFinish",g=!t.disableAutoFinish;const y=[],{idleTimeout:_=P.idleTimeout,finalTimeout:b=P.finalTimeout,childSpanTimeout:k=P.childSpanTimeout,beforeSpanEnd:w,trimIdleSpanEndTimestamp:E=!0}=t,T=(0,r.KU)(),x=(0,r.o5)();if(!T||!(0,a.f)()){const e=new p.w({traceId:x.getPropagationContext().traceId});return(0,v.d_)(e,x,(0,r.rm)()),e}const C=(0,l.Bk)(),M=function(e){const t=I(e);return(0,u.r)((0,r.o5)(),t),s.T&&i.Yz.log("[Tracing] Started span is an idle span"),t}(e);function R(){h&&(clearTimeout(h),h=void 0)}function O(e){R(),h=setTimeout(()=>{!f&&0===n.size&&g&&(m="idleTimeout",M.end(e))},_)}function A(e){h=setTimeout(()=>{!f&&g&&(m="heartbeatFailed",M.end(e))},k)}function D(e){f=!0,n.clear(),y.forEach(e=>e()),(0,u.r)(x,C);const t=(0,l.et)(M),{start_timestamp:r}=t;if(!r)return;t.data[o.fs]||M.setAttribute(o.fs,m);const a=t.status;a&&"unknown"!==a||M.setStatus({code:1}),i.Yz.log(`[Tracing] Idle span "${t.op}" finished`);const c=(0,l.xO)(M).filter(e=>e!==M);let d=0;
2c.forEach(t=>{t.isRecording()&&(t.setStatus({code:2,message:"cancelled"}),t.end(e),s.T&&i.Yz.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));const n=(0,l.et)(t),{timestamp:r=0,start_timestamp:o=0}=n,a=o<=e,c=r-o<=(b+_)/1e3;if(s.T){const e=JSON.stringify(t,void 0,2);a?c||i.Yz.log("[Tracing] Discarding span since it finished after idle span final timeout",e):i.Yz.log("[Tracing] Discarding span since it happened after idle span was finished",e)}c&&a||((0,l.VS)(M,t),d++)}),d>0&&M.setAttribute("sentry.idle_span_discarded_spans",d)}return M.end=new Proxy(M.end,{apply(e,t,n){if(w&&w(M),(0,p.h)(t))return;const[r,...s]=n,o=r||(0,d.zf)(),i=(0,l.cI)(o),a=(0,l.xO)(M).filter(e=>e!==M),u=(0,l.et)(M);if(!a.length||!E)return D(i),Reflect.apply(e,t,[i,...s]);const h=T.getOptions().ignoreSpans,f=a?.reduce((e,t)=>{const n=(0,l.et)(t);return n.timestamp?h&&(0,c.e)({description:n.description,op:n.op,attributes:n.data},h)?e:e?Math.max(e,n.timestamp):n.timestamp:e},void 0),m=u.start_timestamp,g=Math.min(m?m+b/1e3:1/0,Math.max(m||-1/0,Math.min(i,f||1/0)));return D(g),Reflect.apply(e,t,[g,...s])}}),y.push(T.on("spanStart",e=>{if(f||e===M||(0,l.et)(e).timestamp||e instanceof S&&e.isStandaloneSpan())return;var t;(0,l.xO)(M).includes(e)&&(t=e.spanContext().spanId,R(),n.set(t,!0),A((0,d.zf)()+k/1e3))})),y.push(T.on("spanEnd",e=>{var t;f||(t=e.spanContext().spanId,n.has(t)&&n.delete(t),0===n.size&&O((0,d.zf)()+_/1e3))})),y.push(T.on("idleSpanEnableAutoFinish",e=>{e===M&&(g=!0,O(),n.size&&A())})),t.disableAutoFinish||O(),setTimeout(()=>{f||(M.setStatus({code:2,message:"deadline_exceeded"}),m="finalTimeout",M.end())},b),M}var z=n(80491),$=n(99411);let U=!1;var F=n(18845),B=n(93908),H=n(57726),q=n(67607),W=n(46403),Y=n(70125),K=n(64208),J=n(96103),G=n(97458),V=n(76217),X=n(85418),Q=n(51204);function Z(e){return"number"==typeof e&&isFinite(e)}function ee(e,t,n,{...r}){const s=(0,l.et)(e).start_timestamp;return s&&s>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),C(e,()=>{const e=I({startTime:t,...r});return e&&e.end(n),e})}function te(e){const t=(0,r.KU)();if(!t)return;const{name:n,transaction:s,attributes:o,startTime:i}=e,{release:a,environment:c}=t.getOptions(),{userInfo:u}=t.getDataCollectionOptions(),l=t.getIntegrationByName("Replay"),d=l?.getReplayId(),p=(0,r.o5)(),h=p.getUser(),f=void 0!==h?h.email||h.id||h.ip_address:void 0;let m;try{m=p.getScopeData().contexts.profile.profile_id}catch{}return I({name:n,attributes:{release:a,environment:c,user:f||void 0,profile_id:m||void 0,replay_id:d||void 0,transaction:s,"user_agent.original":G.j.navigator?.userAgent,"client.address":u?"{{auto}}":void 0,...o},startTime:i,experimental:{standalone:!0}})}function ne(){return G.j.addEventListener&&G.j.performance}function re(e){return e/1e3}function se(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function oe(e,t){let n,r=!1;function s(e){!r&&n&&t(e,n.spanContext().spanId,n),r=!0}(e=>{const t=t=>{"pagehide"!==t.type&&"hidden"!==G.j.document?.visibilityState||e(t)};(0,Q.d)("visibilitychange",t,{capture:!0,once:!0}),(0,Q.d)("pagehide",t,{capture:!0,once:!0})})(()=>{s("pagehide")});const o=e.on("beforeStartNavigationSpan",(e,t)=>{t?.isRedirect||(s("navigation"),o(),i())}),i=e.on("afterStartPageLoadSpan",e=>{n=e,i()})}function ie(e){let t,n=0;if(!se("layout-shift"))return;const s=(0,X.a9)(({metric:e})=>{const r=e.entries[e.entries.length-1];r&&(n=e.value,t=r)},!0);oe(e,(e,a)=>{!function(e,t,n,s){V.T&&i.Yz.log(`Sending CLS span (${e})`);const a=t?re(((0,d.k3)()||0)+t.startTime):(0,d.zf)(),c=(0,r.o5)().getScopeData().transactionName,u=t?(0,J.H)(t.sources[0]?.node):"Layout shift",l={[o.JD]:"auto.http.browser.cls",[o.uT]:"ui.webvital.cls",[o.jG]:0,"sentry.pageload.span_id":n,"sentry.report_event":s};t?.sources&&t.sources.forEach((e,t)=>{l[`cls.source.${t+1}`]=(0,J.H)(e.node)});const p=te({name:u,transaction:c,attributes:l,startTime:a});p&&(p.addEvent("cls",{[o.Sn]:"",[o.xc]:e}),p.end(a))}(n,t,a,e),s()})}function ae(e){return null!=e&&e>0&&e<=6e4}function ce(e){let t,n=0;if(!se("largest-contentful-paint"))return;const s=(0,X.Pt)(({metric:e})=>{const r=e.entries[e.entries.length-1];r&&ae(e.value)&&(n=e.value,t=r)},!0);oe(e,(e,a)=>{!function(e,t,n,s){if(!ae(e))return;V.T&&i.Yz.log(`Sending LCP span (${e})`);const a=re(((0,d.k3)()||0)+(t?.startTime||0)),c=(0,r.o5)().getScopeData().transactionName,u=t?(0,J.H)(t.element):"Largest contentful paint",l={[o.JD]:"auto.http.browser.lcp",[o.uT]:"ui.webvital.lcp",[o.jG]:0,"sentry.pageload.span_id":n,"sentry.report_event":s};t&&(t.element&&(l["lcp.element"]=(0,J.H)(t.element)),t.id&&(l["lcp.id"]=t.id),t.url&&(l["lcp.url"]=t.url),null!=t.loadTime&&(l["lcp.loadTime"]=t.loadTime),null!=t.renderTime&&(l["lcp.renderTime"]=t.renderTime),null!=t.size&&(l["lcp.size"]=t.size));const p=te({name:u,transaction:c,attributes:l,startTime:a});p&&(p.addEvent("lcp",{[o.Sn]:"millisecond",[o.xc]:e}),p.end(a))}(n,t,a,e),s()})}function ue(e){return e?(((0,d.k3)()||performance.timeOrigin)+e)/1e3:e}function le(e){const t={};if(null!=e.nextHopProtocol){const{name:n,version:r}=function(e){let t="unknown",n="unknown",r="";for(const s of e){if("/"===s){[t,n]=e.split("/");break}if(!isNaN(Number(s))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=s}
2return r===e&&(t=r),{name:t,version:n}}(e.nextHopProtocol);t["network.protocol.version"]=r,t["network.protocol.name"]=n}return(0,d.k3)()||ne()?.timeOrigin?(n={...t,"http.request.redirect_start":ue(e.redirectStart),"http.request.redirect_end":ue(e.redirectEnd),"http.request.worker_start":ue(e.workerStart),"http.request.fetch_start":ue(e.fetchStart),"http.request.domain_lookup_start":ue(e.domainLookupStart),"http.request.domain_lookup_end":ue(e.domainLookupEnd),"http.request.connect_start":ue(e.connectStart),"http.request.secure_connection_start":ue(e.secureConnectionStart),"http.request.connection_end":ue(e.connectEnd),"http.request.request_start":ue(e.requestStart),"http.request.response_start":ue(e.responseStart),"http.request.response_end":ue(e.responseEnd),"http.request.time_to_first_byte":null!=e.responseStart?e.responseStart/1e3:void 0},Object.fromEntries(Object.entries(n).filter(([,e])=>null!=e))):t;var n}var de=n(47082),pe=n(41728),he=n(24578);const fe=2147483647;let me,ge,ye=0,_e={};function ve({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){const r=ne();if(r&&(0,d.k3)()){r.mark&&G.j.performance.mark("sentry-tracing-init");const s=t?ce(n):!1===t?(0,X.Pt)(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&ae(e.value)&&(_e.lcp={value:e.value,unit:"millisecond"},me=t)},!0):void 0,o=e?ie(n):!1===e?(0,X.a9)(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(_e.cls={value:e.value,unit:""},ge=t)},!0):void 0,i=(0,X.YG)(({metric:e})=>{e.entries[e.entries.length-1]&&(_e.ttfb={value:e.value,unit:"millisecond"})}),a=(0,X.wv)("paint",({entries:e})=>{const t=(0,he.N)();for(const n of e){const e=n.startTime<t.firstHiddenTime;"first-paint"===n.name&&e&&(_e.fp={value:n.startTime,unit:"millisecond"}),"first-contentful-paint"===n.name&&e&&(_e.fcp={value:n.startTime,unit:"millisecond"})}});return()=>{i(),a(),s?.(),o?.()}}return()=>{}}function Se(e,t){const n=ne(),r=(0,d.k3)();if(!n?.getEntries||!r)return;const{spanStreamingEnabled:s,ignorePerformanceApiSpans:i,ignoreResourceSpans:a}=t,c=re(r),u=n.getEntries(),{op:p,start_timestamp:h}=(0,l.et)(e);u.slice(ye).forEach(t=>{const n=re(t.startTime),r=re(Math.max(0,t.duration));if(!("navigation"===p&&h&&c+n<h))switch(t.entryType){case"navigation":!function(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{we(e,t,r,n)}),we(e,t,"secureConnection",n,"TLS/SSL"),we(e,t,"fetch",n,"cache"),we(e,t,"domainLookup",n,"DNS"),function(e,t,n){const r=n+re(t.requestStart),s=n+re(t.responseEnd),i=n+re(t.responseStart);t.responseEnd&&(ee(e,r,s,{op:"browser.request",name:t.name,attributes:{[o.JD]:"auto.ui.browser.metrics"}}),ee(e,i,s,{op:"browser.response",name:t.name,attributes:{[o.JD]:"auto.ui.browser.metrics"}}))}(e,t,n)}(e,t,c);break;case"mark":case"paint":case"measure":!function(e,t,n,r,s,i){if(function(e){if("measure"!==e?.entryType)return;try{return"Components â"===e.detail.devtools.track}catch{return}}(t))return;if(["mark","measure"].includes(t.entryType)&&(0,Y.Xr)(t.name,i))return;const a=(0,pe.z)(!1),c=re(a?a.requestStart:0),u=s+Math.max(n,c),l=s+n,d=l+r,p={[o.JD]:"auto.resource.browser.metrics"};u!==l&&(p["sentry.browser.measure_happened_before_request"]=!0,p["sentry.browser.measure_start_time"]=u);(function(e,t){try{const n=t.detail;if(!n)return;if("object"==typeof n){for(const[t,r]of Object.entries(n))if(r&&(0,K.sO)(r))e[`sentry.browser.measure.detail.${t}`]=r;else if(void 0!==r)try{e[`sentry.browser.measure.detail.${t}`]=JSON.stringify(r)}catch{}return}if((0,K.sO)(n))return void(e["sentry.browser.measure.detail"]=n);try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}})(p,t),u<=d&&ee(e,u,d,{name:t.name,op:t.entryType,attributes:p})}(e,t,n,r,c,i);break;case"resource":!function(e,t,n,r,s,i,a){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;const c=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(a?.includes(c))return;const u={[o.JD]:"auto.resource.browser.metrics"},l=(0,q.Dl)(n);l.protocol&&(u["url.scheme"]=l.protocol.split(":").pop());l.host&&(u["server.address"]=l.host);u["url.same_origin"]=n.includes(G.j.location.origin),u[o.c9]=n,function(e,t,n){n.forEac
2h(([n,r])=>{const s=e[n];null!=s&&("number"==typeof s&&s<fe||"string"==typeof s)&&(t[r]=s)})}(t,u,[["responseStatus","http.response.status_code"],["transferSize","http.response_transfer_size"],["encodedBodySize","http.response_content_length"],["decodedBodySize","http.decoded_response_content_length"],["renderBlockingStatus","resource.render_blocking_status"],["deliveryType","http.response_delivery_type"]]);const d={...u,...le(t)},p=i+r,h=p+s;ee(e,p,h,{name:n.replace(G.j.location.origin,""),op:c,attributes:d})}(e,t,t.name,n,r,c,a)}}),ye=Math.max(u.length-1,0),function(e,t){const n=G.j.navigator;if(!n)return;const r=n.connection;r&&(r.effectiveType&&e.setAttribute(t?"network.connection.effective_type":"effectiveConnectionType",r.effectiveType),r.type&&e.setAttribute(t?"network.connection.type":"connectionType",r.type),Z(r.rtt)&&(t?e.setAttribute("network.connection.rtt",r.rtt):"pageload"===(0,l.et)(e).op&&g("connection.rtt",r.rtt,"millisecond")));Z(n.deviceMemory)&&(t?e.setAttribute("device.memory.estimated_capacity",n.deviceMemory):e.setAttribute("deviceMemory",`${n.deviceMemory} GB`));Z(n.hardwareConcurrency)&&(t?e.setAttribute("device.processor_count",n.hardwareConcurrency):e.setAttribute("hardwareConcurrency",String(n.hardwareConcurrency)))}(e,s)}function be(e,t){const n=(0,d.k3)();if(!ne()?.getEntries||!n)return void ke();const{spanStreamingEnabled:r,recordClsOnPageloadSpan:s,recordLcpOnPageloadSpan:o}=t,a=re(n);if("pageload"===(0,l.et)(e).op){if(function(e){const t=(0,pe.z)(!1);if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}(_e),r){const t=(t,n,r)=>{const s=r??`browser.web_vital.${t}.value`;e.setAttribute(s,n),V.T&&i.Yz.log("Setting web vital attribute",{[s]:n},"on pageload span")};["ttfb","fp","fcp"].forEach(e=>{_e[e]&&t(e,_e[e].value)}),_e["ttfb.requestTime"]&&t("ttfb.requestTime",_e["ttfb.requestTime"].value,"browser.web_vital.ttfb.request_time")}else s||delete _e.cls,o||delete _e.lcp,Object.entries(_e).forEach(([t,n])=>{g(t,n.value,n.unit,e)}),function(e,t){me&&t.recordLcpOnPageloadSpan&&(me.element&&e.setAttribute("lcp.element",(0,J.H)(me.element)),me.id&&e.setAttribute("lcp.id",me.id),me.url&&e.setAttribute("lcp.url",me.url.trim().slice(0,200)),null!=me.loadTime&&e.setAttribute("lcp.loadTime",me.loadTime),null!=me.renderTime&&e.setAttribute("lcp.renderTime",me.renderTime),e.setAttribute("lcp.size",me.size));ge?.sources&&t.recordClsOnPageloadSpan&&ge.sources.forEach((t,n)=>e.setAttribute(`cls.source.${n+1}`,(0,J.H)(t.node)))}(e,t);e.setAttribute(r?"browser.performance.time_origin":"performance.timeOrigin",a),e.setAttribute(r?"browser.performance.navigation.activation_start":"performance.activationStart",(0,de.b)())}ke()}function ke(){me=void 0,ge=void 0,_e={}}function we(e,t,n,r,s=n){const i=function(e){if("secureConnection"===e)return"connectEnd";if("fetch"===e)return"domainLookupStart";return`${e}End`}(n),a=t[i],c=t[`${n}Start`];c&&a&&ee(e,r+re(c),r+re(a),{op:`browser.${s}`,name:t.name,attributes:{[o.JD]:"auto.ui.browser.metrics",..."redirect"===n&&null!=t.redirectCount?{"http.redirect_count":t.redirectCount}:{}}})}var Ee=n(73661),Te=n(62745),xe=n(54386),Ie=n(68826),Ce=n(51564);const Me=new WeakMap,Re=new WeakMap,Oe=["text/event-stream","application/x-ndjson","application/stream+json"],Ae=(0,Ie._C)(()=>({name:"FetchStreamPerformance",setup(){(0,Ce.B$)(e=>{if(e.response){const t=Me.get(e.response);if(t&&e.endTimestamp){t.end(e.endTimestamp);const n=Re.get(e.response);n&&clearTimeout(n)}}}),(0,Ce.ur)(e=>{if(e.endTimestamp&&e.response){const t=e.response.headers?.get("content-type")||"";if(e.response.headers?.get("content-length")||!Oe.some(e=>t.startsWith(e)))return;const n=e.fetchData?.url||"",r=e.fetchData?.method||"GET",s=(0,q.kg)(n),i=I({name:`${r} ${n.startsWith("data:")?(0,q.zm)(n):s?(0,q.CH)(s):n}`,startTime:e.endTimestamp,attributes:{url:(0,q.zm)(n),"http.method":r,type:"fetch",[o.uT]:"http.client.stream",[o.JD]:"auto.http.browser.stream"}});Me.set(e.response,i);const a=setTimeout(()=>{i.isRecording()&&i.end()},9e4);Re.set(e.response,a)}})}}));var De=n(96747);const Le=[],Ne=new Map,Pe=new Map;function je(){if(ne()&&(0,d.k3)()){const e=(0,X.hT)($e);return()=>{e()}}return()=>{}}const ze={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 $e=({metric:e})=>
2{if(null==e.value)return;const t=re(e.value);if(t>60)return;const n=e.entries.find(t=>t.duration===e.value&&ze[t.name]);if(!n)return;const{interactionId:s}=n,i=ze[n.name],a=re((0,d.k3)()+n.startTime),c=(0,l.Bk)(),u=c?(0,l.zU)(c):void 0,p=null!=s?Ne.get(s):void 0,h=p?.span||u,f=h?(0,l.et)(h).description:(0,r.o5)().getScopeData().transactionName,m=te({name:p?.elementName||(0,J.H)(n.target),transaction:f,attributes:{[o.JD]:"auto.http.browser.inp",[o.uT]:`ui.interaction.${i}`,[o.jG]:n.duration},startTime:a});m&&(m.addEvent("inp",{[o.Sn]:"millisecond",[o.xc]:e.value}),m.end(a+t))};function Ue(){const e=Object.keys(ze);function t(e){const t=e.target;if(!t)return;const n=(0,J.H)(t),r=Math.round(e.timeStamp);if(Pe.set(r,n),Pe.size>50){const e=Pe.keys().next().value;void 0!==e&&Pe.delete(e)}}(0,De.B)()&&e.forEach(e=>{G.j.addEventListener(e,t,{capture:!0,passive:!0})});const n=({entries:e})=>{const t=(0,l.Bk)(),n=t&&(0,l.zU)(t);e.forEach(e=>{if(!(0,X.tC)(e))return;const t=e.interactionId;if(null==t)return;if(Ne.has(t))return;const r=e.target?(0,J.H)(e.target):function(e){const t=Math.round(e.startTime);let n=Pe.get(t);if(!n)for(let e=-5;e<=5;e++){const r=Pe.get(t+e);if(r){n=r;break}}return n||"<unknown>"}(e);if(Le.length>10){const e=Le.shift();Ne.delete(e)}Le.push(t),Ne.set(t,{span:n,elementName:r})})};(0,X.wv)("event",n),(0,X.wv)("first-input",n)}function Fe(e){const{name:t,op:n,origin:s,metricName:i,value:a,attributes:c,parentSpan:u,reportEvent:d,startTime:p,endTime:h}=e,f=(0,r.o5)().getScopeData().transactionName,m={[o.JD]:s,[o.uT]:n,[o.jG]:0,[`browser.web_vital.${i}.value`]:a,"sentry.transaction":f,"user_agent.original":G.j.navigator?.userAgent,...c};u&&"pageload"===(0,l.RD)(u).attributes?.[o.uT]&&(m["sentry.pageload.span_id"]=u.spanContext().spanId),d&&(m[`browser.web_vital.${i}.report_event`]=d);const g=I({name:t,attributes:m,startTime:p,parentSpan:u});g&&g.end(h??p)}function Be(e){let t,n=0;if(!se("largest-contentful-paint"))return;const r=(0,X.Pt)(({metric:e})=>{const r=e.entries[e.entries.length-1];r&&ae(e.value)&&(n=e.value,t=r)},!0);oe(e,(e,s,o)=>{!function(e,t,n,r){if(!ae(e))return;V.T&&i.Yz.log(`Sending LCP span (${e})`);const s=(0,d.k3)()||0,o=re(s),a=re(s+(t?.startTime||0)),c=t?(0,J.H)(t.element):"Largest contentful paint",u={};t?.element&&(u["browser.web_vital.lcp.element"]=(0,J.H)(t.element)),t?.id&&(u["browser.web_vital.lcp.id"]=t.id),t?.url&&(u["browser.web_vital.lcp.url"]=t.url),null!=t?.loadTime&&(u["browser.web_vital.lcp.load_time"]=t.loadTime),null!=t?.renderTime&&(u["browser.web_vital.lcp.render_time"]=t.renderTime),null!=t?.size&&(u["browser.web_vital.lcp.size"]=t.size),Fe({name:c,op:"ui.webvital.lcp",origin:"auto.http.browser.lcp",metricName:"lcp",value:e,attributes:u,parentSpan:n,reportEvent:r,startTime:o,endTime:a})}(n,t,o,e),r()})}function He(e){let t,n=0;if(!se("layout-shift"))return;const r=(0,X.a9)(({metric:e})=>{const r=e.entries[e.entries.length-1];r&&(n=e.value,t=r)},!0);oe(e,(e,s,o)=>{!function(e,t,n,r){V.T&&i.Yz.log(`Sending CLS span (${e})`);const s=t?re(((0,d.k3)()||0)+t.startTime):(0,d.zf)(),o=t?(0,J.H)(t.sources[0]?.node):"Layout shift",a={};t?.sources&&t.sources.forEach((e,t)=>{a[`browser.web_vital.cls.source.${t+1}`]=(0,J.H)(e.node)});Fe({name:o,op:"ui.webvital.cls",origin:"auto.http.browser.cls",metricName:"cls",value:e,attributes:a,parentSpan:n,reportEvent:r,startTime:s})}(n,t,o,e),r()})}function qe(){if(!ne()||!(0,d.k3)())return;(0,X.hT)(({metric:e})=>{if(null==e.value)return;if(re(e.value)>60)return;const t=e.entries.find(t=>t.duration===e.value&&ze[t.name]);t&&function(e,t){V.T&&i.Yz.log(`Sending INP span (${e})`);const n=re((0,d.k3)()+t.startTime),s=re(e),a=ze[t.name],c=(g=t.interactionId,null!=g?Ne.get(g):void 0),u=(0,l.Bk)(),p=u?(0,l.zU)(u):void 0,h=c?.span||p,f=h?(0,l.RD)(h).name:(0,r.o5)().getScopeData().transactionName,m=c?.elementName||(0,J.H)(t.target);var g;Fe({name:m,op:`ui.interaction.${a}`,origin:"auto.http.browser.inp",metricName:"inp",value:e,attributes:{[o.jG]:t.duration,"sentry.transaction":f},startTime:n,endTime:n+s,parentSpan:h})}(e.value,t)})}const We="WebVitals",Ye=(0,Ie._C)((e={})=>{const t=new Set(e.ignore??[]);return{name:We,setup(n){const r=(0,_.K)(n),{enableStandaloneClsSpans:s,enableStandaloneLcpSpans:o}=e._experiments??{},i=r||t.has("cls")?void 0:s||!1,a=r||t.has("lcp")?void 0:o||!1,c=ve({recordClsStandaloneSpans:i,recordLcpStandaloneSpans:a,client:n}),u=new WeakSet;n.on("afterStartPageLoadSpan",e=>{u.add(e)}),n.on("spanEnd",e=>{u.delete(e)&&(c(),be(e,{recordClsOnPageloadSpan:!1===i,recordLcpOnPageloadSpan:!1===a,spanStreamingEnabled:r}))}),r?(t.has("lcp")||Be(n),t.has("cls")||He(n),t.has("inp")||qe()):t.has("inp")||je()},afterAllSetup(){t.has("inp")||Ue()}}});const Ke="sentry_previous_trace",Je="sentry.previous_trace";function Ge(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const s="session-storage"===t;let a=s?function(){try{const e=xe.jf.sessionStorage?.getItem(Ke);return JSON.parse(e)}catch{return}}():void 0;e.on("spanStart",e=>{if((0,l.zU)(e)!==e)return;const t=(0,r.o5)().getPropagationContext();a=function(e,t,n){const r=(0,l.et)(t);function s(){try{const e=Number(r.data?.[o.sy]??n.dsc?.sample_rate);return Number.isNaN(e)?0:e}catch{return 0}}const a={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:s(),sampleRand:n.sampleRand};if(!e)return a;const c=e.spanContext;if(c.traceId===r.trace_id)return e;Date.now()/1e3-e.startTimestamp<=3600&&(Te.T&&i.Yz.log(`Adding previous_trace \`${JSON.stringify(c)}\` link to span \`${JSON.stringify({op:r.op,...t.spanContext()})}\``),t.addLink({context:c,attributes:{[o.Lc]:"previous_trace"}}),t.setAttribute(Je,`${c.traceId}-${c.spanId}-${Ve(c)?1:0}`));return a}(a,e,t),s&&function(e){try{xe.jf.sessionStorage.setItem(Ke,JSON.stringify(e))}catch(e){Te.T&&i.Yz.warn("Could not store previous trace in sessionStorage",e)}}(a)});let c=!0;n&&e.on("beforeSampling",e=>
2{if(!a)return;const t=(0,r.o5)(),n=t.getPropagationContext();c&&n.parentSpanId?c=!1:(t.setPropagationContext({...n,dsc:{...n.dsc,sample_rate:String(a.sampleRate),sampled:String(Ve(a.spanContext))},sampleRand:a.sampleRand}),e.parentSampled=Ve(a.spanContext),e.parentSampleRate=a.sampleRate,e.spanAttributes={...e.spanAttributes,[o.Ef]:a.sampleRate})})}function Ve(e){return 1===e.traceFlags}function Xe(e,t){e.setAttribute("http.response.status_code",t);const n=function(e){if(e<400&&e>=100)return{code:1};if(e>=400&&e<500)switch(e){case 401:return{code:2,message:"unauthenticated"};case 403:return{code:2,message:"permission_denied"};case 404:return{code:2,message:"not_found"};case 409:return{code:2,message:"already_exists"};case 413:return{code:2,message:"failed_precondition"};case 429:return{code:2,message:"resource_exhausted"};case 499:return{code:2,message:"cancelled"};default:return{code:2,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:2,message:"unimplemented"};case 503:return{code:2,message:"unavailable"};case 504:return{code:2,message:"deadline_exceeded"};default:return{code:2,message:"internal_error"}}return{code:2,message:"internal_error"}}(t);"unknown_error"!==n.message&&e.setStatus(n)}var Qe=n(63944),Ze=n(64251);function et(e={}){const t=e.client||(0,r.KU)();if(!(0,Ze.Ol)()||!t)return{};const n=(0,E.EU)(),s=(0,w.h)(n);if(s.getTraceData)return s.getTraceData(e);const o=e.scope||(0,r.o5)(),c=e.span||(0,l.Bk)(),u=(0,p.h)(c)&&!(0,a.f)(t.getOptions());if(!c&&(0,r.Bi)())return{};const d=c&&!u?(0,l.Qh)(c):function(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return(0,B.TC)(t,r,n)}(o),h=c?(0,m.k1)(c):(0,m.ao)(t,o),f=(0,Qe.De)(h);if(!B.MI.test(d))return i.Yz.warn("Invalid sentry-trace data. Cannot generate trace data"),{};const g={"sentry-trace":d,baggage:f};return e.propagateTraceparent&&(g.traceparent=c&&!u?(0,l.G_)(c):function(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return(0,B.Iy)(t,r,n)}(o)),g}function tt(e,t,n,s,o){if(!e.fetchData)return;const{method:i,url:c}=e.fetchData,u=(0,a.f)()&&t(c);if(e.endTimestamp){const t=e.fetchData.__span;if(!t)return;const n=s[t];return void(n&&(u&&(function(e,t){if(t.response){Xe(e,t.response.status);const n=t.response?.headers?.get("content-length");if(n){const t=parseInt(n);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:2,message:"internal_error"});e.end()}(n,e),function(e,t,n){const r="object"==typeof n&&null!==n?n.onRequestSpanEnd:void 0;r?.(e,{headers:t.response?.headers,error:t.error})}(n,e,o)),delete s[t]))}const{spanOrigin:d="auto.http.browser",propagateTraceparent:h=!1}="object"==typeof o?o:{spanOrigin:o},f=(0,r.KU)(),m=!!(0,l.Bk)()||!!f&&(0,_.K)(f),g=u&&m?I(function(e,t,n){if(e.startsWith("data:")){return{name:`${t} ${(0,q.zm)(e)}`,attributes:rt(e,void 0,t,n)}}const r=(0,q.kg)(e),s=r?(0,q.CH)(r):e;return{name:`${t} ${s}`,attributes:rt(e,r,t,n)}}(c,i,d)):new p.w;if(u&&!m&&f?.recordDroppedEvent("no_parent_span","span"),e.fetchData.__span=g.spanContext().spanId,s[g.spanContext().spanId]=g,n(e.fetchData.url)){const t=e.args[0],n={...e.args[1]||{}},r=function(e,t,n,r){const s=et({span:n,propagateTraceparent:r}),o=s["sentry-trace"],i=s.baggage,a=s.traceparent;if(!o)return;const c=t.headers||((0,K.ks)(e)?e.headers:void 0);if(c){if(function(e){return"undefined"!=typeof Headers&&(0,K.tH)(e,Headers)}(c)){const e=new Headers(c);if(e.get("sentry-trace")||e.set("sentry-trace",o),r&&a&&!e.get("traceparent")&&e.set("traceparent",a),i){const t=e.get("baggage");t?nt(t)||e.set("baggage",`${t},${i}`):e.set("baggage",i)}return e}if(function(e){if(!Array.isArray(e))return!1;return e.every(e=>Array.isArray(e)&&2===e.length&&"string"==typeof e[0])}(c)){const e=[...c];e.find(e=>"sentry-trace"===e[0])||e.push(["sentry-trace",o]),r&&a&&!e.find(e=>"traceparent"===e[0])&&e.push(["traceparent",a]);const t=c.find(e=>"baggage"===e[0]&&"string"==typeof e[1]&&nt(e[1]));return i&&!t&&e.push(["baggage",i]),e}{const e="sentry-trace"in c?c["sentry-trace"]:void 0,t="traceparent"in c?c.traceparent:void 0,n="baggage"in c?c.baggage:void 0,s=n?Array.isArray(n)?[...n]:[n]:[],u=n&&(Array.isArray(n)?n.find(e=>nt(e)):nt(n));i&&!u&&s.push(i);const l=Object.assign({},c,{"sentry-trace":e??o,baggage:s.length>0?s.join(","):void 0});return r&&a&&!t&&(l.traceparent=a),l}}return{...s}}(t,n,(0,a.f)()&&m?g:void 0,h);r&&(e.args[1]=n,n.headers=r)}if(f){const t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};f.emit("beforeOutgoingRequestSpan",g,t)}return g}function nt(e){return"string"==typeof e&&e.split(",").some(e=>e.trim().startsWith(Qe.sv))}function rt(e,t,n,r){const s={url:(0,q.zm)(e),type:"fetch","http.method":n,[o.JD]:r,[o.uT]:"http.client"};return t&&((0,q.nt)(t)||(s["http.url"]=(0,q.zm)(t.href),s["server.address"]=t.host),t.search&&(s["http.query"]=t.search),t.hash&&(s["http.fragment"]=t.hash)),s}var st=n(14839),ot=n(34408);function it(e){try{return new URL(e,xe.jf.location.origin).href}catch{return}}function at(e){try{return new Headers(e)}catch{return}}const ct={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function ut(e,t){const{traceFetch:n,traceXHR:s,shouldCreateSpanForRequest:i,enableHTTPTimings:c,tracePropagationTargets:u,onRequestSpanStart:d,onRequestSpanEnd:h}={...ct,...t},f="function"==typeof i?i:e=>!0,m=e=>function(e,t){const n=(0,H.$N)();if(n){let r,s;try{r=new URL(e,n),s=new URL(n).origin}catch{return!1}const o=r.origin===s;return t?(0,Y.Xr)(r.toString(),t)||o&&(0,Y.Xr)(r.pathname,t):o}{const n=!!e.match(/^\/(?!\/)/);return t?(0,Y.Xr)(e,t):n}}(e,u),g={},y=e.getOptions().propagateTraceparent;n&&(0,Ce.ur)(t=>{const n=tt(t,f,m,g,{propagateTraceparent:y,onRequestSpanEnd:h});if(n){const r=it(t.fetchData.url),s=r?(0,q.Dl)(r).host:void 0,o=r?(0,q.zm)(r):void 0;n.setAttributes({"http.url":o,"url.full":o,"server.address":s}),c&<(n,e),d?.(n,{headers:t.headers})}}),s&&(0,st.Mn)(t=>{const n=function(e,t,n,s,i,c){const u=e.xhr,d=u?.[st.Er];if(!u||u.__sentry_own_request__||!d)return;const{url:h,method:f}=d,m=(0,a.f)()&&t(h);if(e.endTimestamp){const t=u.__sentry_xhr_span_id__;if(!t)return;const n=s[t];return void(n&&(m&&void 0!==d.status_code&&(Xe(n,d.status_code),n.end(),c?.(n,{headers:at((0,ot.ti)(u)),error:e.error})),delete s[t]))}const g=it(h),y=g?(0,q.Dl)(g):(0,q.Dl)(h),v=g?(0,q.zm)(g):void 0,S=(0,q.zm)((0,q.f)(h)),b=(0,r.KU)(),k=!!(0,l.Bk)()||!!b&&(0,_.K
2)(b),w=m&&k?I({name:`${f} ${S}`,attributes:{url:(0,q.zm)(h),type:"xhr","http.method":f,"http.url":v,"url.full":v,"server.address":y?.host,[o.JD]:"auto.http.browser",[o.uT]:"http.client",...y?.search&&{"http.query":y?.search},...y?.hash&&{"http.fragment":y?.hash}}}):new p.w;m&&!k&&b?.recordDroppedEvent("no_parent_span","span");u.__sentry_xhr_span_id__=w.spanContext().spanId,s[u.__sentry_xhr_span_id__]=w,n(h)&&function(e,t,n){const{"sentry-trace":r,baggage:s,traceparent:o}=et({span:t,propagateTraceparent:n});r&&function(e,t,n,r){const s=e.__sentry_xhr_v3__?.request_headers;if(s?.["sentry-trace"]||!e.setRequestHeader)return;try{if(e.setRequestHeader("sentry-trace",t),r&&!s?.traceparent&&e.setRequestHeader("traceparent",r),n){const t=s?.baggage;t&&t.split(",").some(e=>e.trim().startsWith("sentry-"))||e.setRequestHeader("baggage",n)}}catch{}}(e,r,s,o)}(u,(0,a.f)()&&k?w:void 0,i);b&&b.emit("beforeOutgoingRequestSpan",w,e);return w}(t,f,m,g,y,h);n&&(c&<(n,e),d?.(n,{headers:at(t.xhr.__sentry_xhr_v3__?.request_headers)}))})}function lt(e,t){const{url:n}=(0,l.et)(e).data;if(!n||"string"!=typeof n)return;let r=()=>{setTimeout(s)};if((0,_.K)(t)){const t=e.end.bind(e);e.end=e=>{const n=e??(0,d.zf)();let o=!1;const i=()=>{o||(o=!0,setTimeout(s),t(n),clearTimeout(a))};r=i;const a=setTimeout(i,300)}}const s=(0,X.wv)("resource",({entries:t})=>{t.forEach(t=>{(function(e){return"resource"===e.entryType&&"initiatorType"in e&&"string"==typeof e.nextHopProtocol&&("fetch"===e.initiatorType||"xmlhttprequest"===e.initiatorType)})(t)&&t.name.endsWith(n)&&(e.setAttributes(le(t)),r())})})}const dt=/Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Facebot|facebookexternalhit|LinkedInBot|Twitterbot|Applebot/i;const pt={...P,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...ct},ht=(e={})=>{"enableElementTiming"in e&&(0,i.pq)(()=>{console.warn("[Sentry] `enableElementTiming` is deprecated and no longer has any effect. Use the standalone `elementTimingIntegration` instead.")});const t={name:void 0,source:void 0},n=xe.jf.document,{enableInp:c,enableLongTask:u,enableLongAnimationFrame:p,_experiments:{enableInteractions:h,enableStandaloneClsSpans:g,enableStandaloneLcpSpans:y},beforeStartSpan:v,idleTimeout:S,finalTimeout:b,childSpanTimeout:k,markBackgroundSpan:w,traceFetch:E,traceXHR:T,trackFetchStreamPerformance:x,shouldCreateSpanForRequest:C,enableHTTPTimings:M,ignoreResourceSpans:R,ignorePerformanceApiSpans:O,instrumentPageLoad:A,instrumentNavigation:D,detectRedirects:L,linkPreviousTrace:N,consistentTraceSampling:P,enableReportPageLoaded:W,onRequestSpanStart:Y,onRequestSpanEnd:K}={...pt,...e},G=function(){const e=xe.jf.navigator;return!!e?.userAgent&&dt.test(e.userAgent)}();let V,Q;function Z(e,s,i=!0){const a="pageload"===s.op,c=s.name,u=v?v(s):s,p=u.attributes||{};if(c!==u.name&&(p[o.i_]="custom",u.attributes=p),!i){const e=(0,d.lu)();return void I({...u,startTime:e}).end(e)}t.name=u.name,t.source=p[o.i_];const h=j(u,{idleTimeout:S,finalTimeout:b,childSpanTimeout:k,disableAutoFinish:a,beforeSpanEnd:t=>{Se(t,{ignoreResourceSpans:R,ignorePerformanceApiSpans:O,spanStreamingEnabled:(0,_.K)(e)}),_t(e,void 0);const n=(0,r.o5)(),s=n.getPropagationContext();n.setPropagationContext({...s,traceId:h.spanContext().traceId,sampled:(0,l.pK)(h),dsc:(0,m.k1)(t)}),a&&(Q=void 0)},trimIdleSpanEndTimestamp:!W});function f(){n&&["interactive","complete"].includes(n.readyState)&&(e.emit("idleSpanEnableAutoFinish",h),n.removeEventListener("readystatechange",f))}a&&W&&(Q=h),_t(e,h),a&&!W&&n&&(n.addEventListener("readystatechange",f),f())}return{name:"BrowserTracing",setup(e){if(G)Te.T&&i.Yz.log("[Tracing] Skipping browserTracingIntegration setup for bot user agent.");else{if(function(){function e(){const e=(0,l.Bk)(),t=e&&(0,l.zU)(e);if(t){const e="internal_error";s.T&&i.Yz.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:2,message:e})}}U||(U=!0,(0,z.L)(e),(0,$.r)(e))}(),p&&F.O.PerformanceObserver&&PerformanceObserver.supportedEntryTypes?.includes("long-animation-frame")?new PerformanceObserver(e=>{const t=(0,l.Bk)();if(t)for(const n of e.getEntries()){if(!n.scripts[0])continue;const e=re((0,d.k3)()+n.startTime),{start_timestamp:r,op:s}=(0,l.et)(t);if("navigation"===s&&r&&e<r)continue;const i=re(n.duration),a={[o.JD]:"auto.ui.browser.metrics"},c=n.scripts[0],{invoker:u,invokerType:p,sourceURL:h,sourceFunctionName:f,sourceCharPosition:m}=c;a["browser.script.invoker"]=u,a["browser.script.invoker_type"]=p,h&&(a["code.filepath"]=h),f&&(a["code.function"]=f),-1!==m&&(a["browser.script.source_char_position"]=m),ee(t,e,e+i,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:a})}}).observe({type:"long-animation-frame",buffered:!0}):u&&(0,X.wv)("longtask",({entries:e})=>{const t=(0,l.Bk)();if(!t)return;const{op:n,start_timestamp:r}=(0,l.et)(t);for(const s of e){const e=re((0,d.k3)()+s.startTime),i=re(s.duration);"navigation"===n&&r&&e<r||ee(t,e,e+i,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[o.JD]:"auto.ui.browser.metrics"}})}}),h&&(0,X.wv)("event",({entries:e})=>{const t=(0,l.Bk)();if(t)for(const n of e)if("click"===n.name){const e=re((0,d.k3)()+n.startTime),r=re(n.duration),s={name:(0,J.H)(n.target),op:`ui.interaction.${n.name}`,startTime:e,attributes:{[o.JD]:"auto.ui.browser.metrics"}},i=(0,H.xE)(n.target);i&&(s.attributes["ui.component_name"]=i),ee(t,e,e+r,s)}}),L&&n){const e=()=>{V=(0,d.zf)()};addEventListener("click",e,{capture:!0}),addEventListener("keydown",e,{capture:!0,passive:!0})}e.on("startNavigationSpan",(n,s)=>{if((0,r.KU)()!==e)return;if(s?.isRedirect)return Te.T&&i.Yz.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),void Z(e,{op:"navigation.redirect",...n},!1);V=void 0,t(),(0,r.rm)().setPropagationContext({traceId:(0,f.e)(),sampleRand:Math.random(),propagationSpanId:(0,a.f)()?void 0:(0,f.Z)()});const o=(0,r.o5)();o.setPropagationContext({traceId:(0,f.e)(),sampleRand:Math.random(),propagationSpanId:(0,a.f)()?void 0:(0,f.Z)()}),o.setSDKProcessingMetadata({normalizedRequest:void 0}),Z(e,{op:"navigation",...n,parentSpan:null,forceTransaction:!0})}),e.on("startPageLoadSpan",(n,s={})=>
2{if((0,r.KU)()!==e)return;t();const o=s.sentryTrace||ft("sentry-trace")||mt("sentry-trace"),i=s.baggage||ft("baggage")||mt("baggage"),c=(0,B.kM)(o,i),u=(0,r.o5)();u.setPropagationContext(c),(0,a.f)()||(u.getPropagationContext().propagationSpanId=(0,f.Z)()),u.setSDKProcessingMetadata({normalizedRequest:(0,xe.AP)()}),Z(e,{op:"pageload",...n})}),e.on("endPageloadSpan",()=>{W&&Q&&(Q.setAttribute(o.fs,"reportPageLoaded"),Q.end())})}function t(){const t=yt(e);t&&!(0,l.et)(t).timestamp&&(Te.T&&i.Yz.log(`[Tracing] Finishing current active span with op: ${(0,l.et)(t).op}`),t.setAttribute(o.fs,"cancelled"),t.end())}},afterAllSetup(e){if(G)return;e.addIntegration&&!e.getIntegrationByName?.(We)&&e.addIntegration(Ye({ignore:c?[]:["inp"],_experiments:{enableStandaloneClsSpans:g,enableStandaloneLcpSpans:y}}));let n=(0,H.$N)();if("off"!==N&&Ge(e,{linkPreviousTrace:N,consistentTraceSampling:P}),xe.jf.location){if(A){const t=(0,d.k3)();!function(e,t,n){e.emit("startPageLoadSpan",t,n),(0,r.o5)().setTransactionName(t.name);const s=yt(e);s&&e.emit("afterStartPageLoadSpan",s)}(e,{name:xe.jf.location.pathname,startTime:t?t/1e3:void 0,attributes:{[o.i_]:"url",[o.JD]:"auto.pageload.browser"}})}D&&(0,Ee._)(({to:t,from:s})=>{if(void 0===s&&-1!==n?.indexOf(t))return void(n=void 0);n=void 0;const i=(0,q.kg)(t),a=yt(e),c=a&&L&&function(e,t){const n=(0,l.et)(e),r=(0,d.lu)(),s=n.start_timestamp;if(r-s>vt)return!1;if(t&&r-t<=vt)return!1;return!0}(a,V);!function(e,t,n){const{url:s,isRedirect:o}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:o}),e.emit("startNavigationSpan",t,{isRedirect:o});const i=(0,r.o5)();i.setTransactionName(t.name),s&&!o&&i.setSDKProcessingMetadata({normalizedRequest:{...(0,xe.AP)(),url:s}});yt(e)}(e,{name:i?.pathname||xe.jf.location.pathname,attributes:{[o.i_]:"url",[o.JD]:"auto.navigation.browser"}},{url:t,isRedirect:c})})}w&&(xe.jf.document?xe.jf.document.addEventListener("visibilitychange",()=>{const e=(0,l.Bk)();if(!e)return;const t=(0,l.zU)(e);if(xe.jf.document.hidden&&t){const e="cancelled",{op:n,status:r}=(0,l.et)(t);Te.T&&i.Yz.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),r||t.setStatus({code:2,message:e}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):Te.T&&i.Yz.warn("[Tracing] Could not set up background tab detection due to lack of global document")),h&&function(e,t,n,r,s){const a=xe.jf.document;let c;const u=()=>{const a="ui.action.click",u=yt(e);if(u){const e=(0,l.et)(u).op;if(["navigation","pageload"].includes(e))return void(Te.T&&i.Yz.warn(`[Tracing] Did not create ${a} span because a pageload or navigation span is in progress.`))}c&&(c.setAttribute(o.fs,"interactionInterrupted"),c.end(),c=void 0),s.name?c=j({name:s.name,op:a,attributes:{[o.i_]:s.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r}):Te.T&&i.Yz.warn(`[Tracing] Did not create ${a} transaction because _latestRouteName is missing.`)};a&&addEventListener("click",u,{capture:!0})}(e,S,b,k,t),ut(e,{traceFetch:E,traceXHR:T,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:C,enableHTTPTimings:M,onRequestSpanStart:Y,onRequestSpanEnd:K}),x&&e.addIntegration(Ae())}}};function ft(e){const t=xe.jf.document,n=t?.querySelector(`meta[name=${e}]`);return n?.getAttribute("content")||void 0}function mt(e){const t=xe.jf.performance?.getEntriesByType?.("navigation")[0],n=t?.serverTiming?.find(t=>t.name===e);return n?.description}const gt="_sentry_idleSpan";function yt(e){return e[gt]}function _t(e,t){(0,W.my)(e,gt,t)}const vt=1.5},73949(e,t,n){n.d(t,{h:()=>f});var r=n(95200),s=n(94988);const o=e=>e instanceof Promise&&!e[i],i=Symbol("chained PromiseLike"),a=(e,t)=>{if(!t)return e;let n=!1;for(const r in e){if(r in t)continue;n=!0;const s=e[r];"function"==typeof s?Object.defineProperty(t,r,{value:(...t)=>s.apply(e,t),enumerable:!0,configurable:!0,writable:!0}):t[r]=s}return n&&Object.assign(t,{[i]:!0}),t};var c=n(64208);class u{constructor(e,t){let n,r;n=e||new s.H,r=t||new s.H,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){const t=this._pushScope();let n;try{n=e(t)}catch(e){throw this._popScope(),e}
2return(0,c.Qg)(n)?((e,t,n)=>{const r=e.then(e=>(t(e),e),e=>{throw n(e),e});return o(r)&&o(e)?r:a(e,r)})(n,()=>this._popScope(),()=>this._popScope()):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function l(){const e=(0,r.EU)(),t=(0,r.Se)(e);return t.stack=t.stack||new u((0,r.BY)("defaultCurrentScope",()=>new s.H),(0,r.BY)("defaultIsolationScope",()=>new s.H))}function d(e){return l().withScope(e)}function p(e,t){const n=l();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function h(e){return l().withScope(()=>e(l().getIsolationScope()))}function f(e){const t=(0,r.Se)(e);return t.acs?t.acs:{withIsolationScope:h,withScope:d,withSetScope:p,withSetIsolationScope:(e,t)=>h(t),getCurrentScope:()=>l().getScope(),getIsolationScope:()=>l().getIsolationScope()}}},6810(e,t,n){n.d(t,{Z:()=>a});var r=n(57968),s=n(19282),o=n(93177);const i=100;function a(e,t){const n=(0,r.KU)(),a=(0,r.rm)();if(!n)return;const{beforeBreadcrumb:c=null,maxBreadcrumbs:u=i}=n.getOptions();if(u<=0)return;const l={timestamp:(0,o.lu)(),...e},d=c?(0,s.pq)(()=>c(l,t)):l;null!==d&&(n.emit&&n.emit("beforeAddBreadcrumb",d,t),a.addBreadcrumb(d,u))}},95200(e,t,n){n.d(t,{BY:()=>a,EU:()=>o,Se:()=>i});var r=n(43674),s=n(18845);function o(){return i(s.O),s.O}function i(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||r.M,t[r.M]=t[r.M]||{}}function a(e,t,n=s.O){const o=n.__SENTRY__=n.__SENTRY__||{},i=o[r.M]=o[r.M]||{};return i[e]||(i[e]=t())}},7313(e,t,n){n.d(t,["U",0,"production"])},57968(e,t,n){n.d(t,{Bi:()=>c,KU:()=>h,m6:()=>d,o5:()=>u,rm:()=>l,v4:()=>p,vn:()=>f});var r=n(73949),s=n(95200),o=n(94988),i=n(74733);let a;function c(){return void 0!==a}function u(){const e=(0,s.EU)();return(0,r.h)(e).getCurrentScope()}function l(){const e=(0,s.EU)();return(0,r.h)(e).getIsolationScope()}function d(){return(0,s.BY)("globalScope",()=>new o.H)}function p(...e){const t=(0,s.EU)(),n=(0,r.h)(t);if(2===e.length){const[t,r]=e;return t?n.withSetScope(t,r):n.withScope(r)}return n.withScope(e[0])}function h(){return u().getClient()}function f(e){const t=a?.();if(t)return{trace_id:t.traceId,span_id:t.spanId};const n=e.getPropagationContext(),{traceId:r,parentSpanId:s,propagationSpanId:o}=n,c={trace_id:r,span_id:o||(0,i.Z)()};return s&&(c.parent_span_id=s),c}},26674(e,t,n){const r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;n.d(t,["T",0,r])},75330(e,t,n){n.d(t,{LE:()=>l,V7:()=>d,lu:()=>p});var r=n(31158),s=n(7706),o=n(71111),i=n(72808),a=n(9123),c=n(84347),u=n(3121);function l(e,t,n,r){const s=(0,i.Cj)(n),c={sent_at:new Date((0,a.Wk)()).toISOString(),...s&&{sdk:s},...!!r&&t&&{dsn:(0,o.SB)(t)}},u="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return(0,i.h4)(c,[u])}function d(e,t,n,r){const s=(0,i.Cj)(n),o=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){if(!t)return e;const n=e.sdk||{};e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0}}(e,n?.sdk);const a=(0,i.n2)(e,s,r,t);delete e.sdkProcessingMetadata;const c=[{type:o},e];return(0,i.h4)(a,[c])}function p(e,t){const n=(0,r.k1)(e[0]),l=t?.getDsn(),d=t?.getOptions().tunnel,p={sent_at:new Date((0,a.Wk)()).toISOString(),...(h=n,!!h.trace_id&&!!h.public_key&&{trace:n}),...!!d&&l&&{dsn:(0,o.SB)(l)}};var h;const{beforeSendSpan:f,ignoreSpans:m}=t?.getOptions()||{},g=m?.length?e.filter(e=>{const t=(0,u.et)(e);return!(0,c.e)({description:t.description,op:t.op,attributes:t.data},m)}):e,y=e.length-g.length;y&&t?.recordDroppedEvent("before_send","span",y);const _=f?e=>{const t=(0,u.et)(e),n=(0,s.S)(f)?t:f(t);return n||((0,u.xl)(),t)}:u.et,v=[];for(const e of g){const t=_(e);t&&v.push((0,i.y5)(t))}return(0,i.h4)(p,v)}},64251(e,t,n){n.d(t,{Cp:()=>c,J0:()=>h,J5:()=>g,Ol:()=>d,SA:()=>p,o:()=>l,r:()=>u});var r=n(57968),s=n(59328),o=n(49158),i=n(23998),a=n(18845);function c(e,t){return(0,r.o5)().captureException(e,(0,o.li)(t))}function u(e,t){return(0,r.o5)().captureEvent(e,t)}function l(e,t){(0,r.rm)().setContext(e,t)}function d(){const e=(0,r.KU)();return!1!==e?.getOptions().enabled&&!!e?.getTransport()}function p(e){(0,r.rm)().addEventProcessor(e)}function h(e){const t=(0,r.rm)(),{user:n}=(0,i.Om)(t,(0,r.o5)()),{userAgent:o}=a.O.navigator||{},c=(0,s.fj)({user:n,...o&&{userAgent:o},...e}),u=t.getSession();return"ok"===u?.status&&(0,s.qO)(u,{status:"exited"}),f(),t.setSession(c),c}function f(){const e=(0,r.rm)(),t=(0,r.o5)().getSession()||e.getSession();t&&(0,s.Vu)(t),m(),e.setSession()}function m(){const e=(0,r.rm)(),t=(0,r.KU)(),n=e.getSession();n&&t&&t.captureSession(n)}function g(e=!1){e?f():m()}},51564(e,t,n){n.d(t,{B$:()=>d,ur:()=>l});var r=n(57968),s=n(64208),o=n(46403),i=n(47040),a=n(93177),c=n(18845),u=n(13235);function l(e,t){const n="fetch",r=(0,u.s5)(n,e);return(0,u.AS)(n,()=>p(void 0,t)),r}function d(e){const t="fetch-body-resolved",n=(0,u.s5)(t,e);return(0,u.AS)(t,()=>p(h)),n}function p(e,t=!1){t&&!(0,i.m7)()||(0,o.GS)(c.O,"fetch",function(t){return function(...n){const i=new Error,{method:l,url:d}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:m(t),method:f(n,"method")?String(n.method).toUpperCase():(0,s.ks)(t)&&f(t,"method")?String(t.method).toUpperCase():"GET"}}const t=e[0];return{url:m(t),method:f(t,"method")?String(t.method).toUpperCase():"GET"}}(n),p={args:n,fetchData:{method:l,url:d},startTimestamp:1e3*(0,a.zf)(),virtualError:i,headers:g(n)};return e||(0,u.aj)("fetch",{...p}),t.apply(c.O,n).then(async t=>(e?e(t):(0,u.aj)("fetch",{...p,endTimestamp:1e3*(0,a.zf)(),response:t}),t),e=>{(0,u.aj)("fetch",{...p,endTimestamp:1e3*(0,a.zf)(),error:e}),(0,s.bJ)(e)&&void 0===e.stack&&(e.stack=i.stack,(0,o.my)(e,"framesToPop",1));const t=(0,r.KU)(),n=t?.getOptions().enhanceFetchErrorMessages??"always";if(!1!==n&&e instanceof TypeError&&("Failed to fetch"===e.message||"Load failed"===e.message||"NetworkError when attempting to fetch resource."===e.message))try{const t=new URL(p.fetchData.url).host;"always"===n?e.message=`${e.message} (${t})`:(0,o.my)(e,"__sentry_fetch_url_host__",t)}catch{}throw e})}})}function h(e){let t;try{t=e.clone()}catch{return}!async function(e,t){if(e?.body){const n=e.body,r=n.getReader(),s=setTimeout(()=>{n.cancel().then(null,()=>{})},9e4);let o=!0;for(;o;){let e;try{e=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:s}=await r.read();clearTimeout(e),s&&(t(),o=!1)}catch{o=!1}
2finally{clearTimeout(e)}}clearTimeout(s),r.releaseLock(),n.cancel().then(null,()=>{})}}(t,()=>{(0,u.aj)("fetch-body-resolved",{endTimestamp:1e3*(0,a.zf)(),response:e})})}function f(e,t){return!!e&&"object"==typeof e&&!!e[t]}function m(e){return"string"==typeof e?e:e?f(e,"url")?e.url:e.toString?e.toString():"":""}function g(e){const[t,n]=e;try{if("object"==typeof n&&null!==n&&"headers"in n&&n.headers)return new Headers(n.headers);if((0,s.ks)(t))return new Headers(t.headers)}catch{}}},80491(e,t,n){n.d(t,{L:()=>i});var r=n(18845),s=n(13235);let o=null;function i(e){const t="error";(0,s.s5)(t,e),(0,s.AS)(t,a)}function a(){o=r.O.onerror,r.O.onerror=function(e,t,n,r,i){const a={column:r,error:i,line:n,msg:e,url:t};return(0,s.aj)("error",a),!!o&&o.apply(this,arguments)},r.O.onerror.__SENTRY_INSTRUMENTED__=!0}},99411(e,t,n){n.d(t,{r:()=>i});var r=n(18845),s=n(13235);let o=null;function i(e){const t="unhandledrejection";(0,s.s5)(t,e),(0,s.AS)(t,a)}function a(){o=r.O.onunhandledrejection,r.O.onunhandledrejection=function(e){const t=e;return(0,s.aj)("unhandledrejection",t),!o||o.apply(this,arguments)},r.O.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}},13235(e,t,n){n.d(t,{AS:()=>u,aj:()=>l,s5:()=>c});var r=n(26674),s=n(19282),o=n(51685);const i={},a={};function c(e,t){return i[e]=i[e]||[],i[e].push(t),()=>{const n=i[e];if(n){const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}}function u(e,t){if(!a[e]){a[e]=!0;try{t()}catch(t){r.T&&s.Yz.error(`Error while instrumenting ${e}`,t)}}}function l(e,t){const n=e&&i[e];if(n)for(const i of n)try{i(t)}catch(t){r.T&&s.Yz.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${(0,o.qQ)(i)}\nError:`,t)}}},68826(e,t,n){n.d(t,{P$:()=>a,_C:()=>l,lc:()=>c,mH:()=>i,qm:()=>u});var r=n(26674),s=n(19282);const o=[];function i(e){const t=e.defaultIntegrations||[],n=e.integrations;let r;if(t.forEach(e=>{e.isDefaultInstance=!0}),Array.isArray(n))r=[...t,...n];else if("function"==typeof n){const e=n(t);r=Array.isArray(e)?e:[e]}else r=t;return function(e){const t={};return e.forEach(e=>{const{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.values(t)}(r)}function a(e,t){const n={};return t.forEach(t=>{t?.beforeSetup&&t.beforeSetup(e)}),t.forEach(t=>{t&&u(e,t,n)}),n}function c(e,t){for(const n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function u(e,t,n){if(n[t.name])r.T&&s.Yz.log(`Integration skipped because it was already installed: ${t.name}`);else{if(n[t.name]=t,o.includes(t.name)||"function"!=typeof t.setupOnce||(t.setupOnce(),o.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){const n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,r)=>n(t,r,e))}if("function"==typeof t.processEvent){const n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}["processSpan","processSegmentSpan"].forEach(n=>{const r=t[n];"function"==typeof r&&e.on(n,n=>r.call(t,n,e))}),r.T&&s.Yz.log(`Integration installed: ${t.name}`)}}function l(e){return e}},94988(e,t,n){n.d(t,{H:()=>f});var r=n(26674),s=n(59328),o=n(19282),i=n(64208),a=n(45734),c=n(9600),u=n(74733),l=n(9123),d=n(70333),p=n(70125),h=n(93177);class f{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:(0,u.e)(),sampleRand:(0,l.hY)()}}clone(){const e=new f;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._attributes={...this._attributes},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,e._conversationId=this._conversationId,(0,d.r)(e,(0,d.f)(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&(0,s.qO)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e,n=t instanceof f?t.getScopeData():(0,i.Qd)(t)?e:void 0,{tags:r,attributes:s,extra:o,user:a,contexts:c,level:u,fingerprint:l=[],propagationContext:d,conversationId:p}=n||{};return this._tags={...this._tags,...r},this._attributes={...this._attributes,...s},this._extra={...this._extra,...o},this._contexts={...this._contexts,...c},a&&Object.keys(a).length&&(this._user=a),u&&(this._level=u),l.length&&(this._fingerprint=l),d&&(this._propagationContext=d),p&&(this._conversationId=p),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,(0,d.r)(this,void 0),this._attachments=[],this.setPropagationContext({traceId:(0,u.e)(),sampleRand:(0,l.hY)()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const r={timestamp:(0,h.lu)(),...e,message:e.message?(0,p.xv)(e.message,2048):e.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:(0,d.f)(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=(0,a.h)(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}
2captureException(e,t){const n=t?.event_id||(0,c.eJ)();if(!this._client)return r.T&&o.Yz.warn("No client configured on scope - will not capture exception!"),n;const s=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:s,...t,event_id:n},this),n}captureMessage(e,t,n){const s=n?.event_id||(0,c.eJ)();if(!this._client)return r.T&&o.Yz.warn("No client configured on scope - will not capture message!"),s;const i=n?.syntheticException??new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:s},this),s}captureEvent(e,t){const n=e.event_id||t?.event_id||(0,c.eJ)();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(r.T&&o.Yz.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}},74611(e,t,n){n.d(t,["E1",0,"sentry.profile_id","Ef",0,"sentry.previous_trace_sample_rate","Ft",0,"sentry.status.message","Fy",0,"gen_ai.conversation.id","JD",0,"sentry.origin","Lc",0,"sentry.link.type","Le",0,"sentry.custom_span_name","Sn",0,"sentry.measurement_unit","c9",0,"url.full","fs",0,"sentry.idle_span_finish_reason","i_",0,"sentry.source","jG",0,"sentry.exclusive_time","sy",0,"sentry.sample_rate","uT",0,"sentry.op","xc",0,"sentry.measurement_value"])},59328(e,t,n){n.d(t,{Vu:()=>a,fj:()=>o,qO:()=>i});var r=n(9600),s=n(93177);function o(e){const t=(0,s.zf)(),n={sid:(0,r.eJ)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return{sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}(n)};return e&&i(n,e),n}function i(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,s.zf)(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,r.eJ)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function a(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),i(e,n)}},31158(e,t,n){n.d(t,{LZ:()=>f,ao:()=>g,k1:()=>y});var r=n(7313),s=n(57968),o=n(74611),i=n(63944),a=n(71111),c=n(54704),u=n(46403),l=n(3121),d=n(33868),p=n(88728);const h="_frozenDsc";function f(e,t){const n=e;(0,u.my)(n,h,t)}function m(e,t){const n=t.getOptions(),{publicKey:s}=t.getDsn()||{},o={environment:n.environment||r.U,release:n.release,public_key:s,trace_id:e,org_id:(0,a.ul)(t)};return t.emit("createDsc",o),o}function g(e,t){const n=t.getPropagationContext();return n.dsc||m(n.traceId,e)}function y(e){const t=(0,s.KU)();if(!t)return{};const n=(0,l.zU)(e),r=(0,l.et)(n),a=r.data,u=n.spanContext().traceState,f=u?.get("sentry.sample_rate")??a[o.sy]??a[o.Ef];function y(e){return"number"!=typeof f&&"string"!=typeof f||(e.sample_rate=`${f}`),e}const _=n[h];if(_)return y(_);if((0,d.h)(n)&&!(0,c.f)(t.getOptions())){const e=(0,p.Lb)(n).scope;if(e)return y({...g(t,e)})}const v=u?.get("sentry.dsc"),S=v&&(0,i.yD)(v);if(S)return y(S);const b=m(e.spanContext().traceId,t),k=a[o.i_]??a["sentry.span.source"],w=r.description;return"url"!==k&&w&&(b.transaction=w),(0,c.f)()&&(b.sampled=String((0,l.pK)(n)),b.sample_rand=u?.get("sentry.sample_rand")??(0,p.Lb)(n).scope?.getPropagationContext().sampleRand.toString()),y(b),t.emit("createDsc",b,n),b}},33868(e,t,n){n.d(t,{h:()=>a,w:()=>i});var r=n(46403),s=n(74733);const o=Symbol.for("sentry.nonRecordingSpan");class i{constructor(e={}){this._traceId=e.traceId||(0,s.e)(),this._spanId=e.spanId||(0,s.Z)(),this.dropReason=e.dropReason,(0,r.my)(this,o,!0)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}
2addEvent(e,t,n){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}}function a(e){return!!e&&!0===e[o]}},7706(e,t,n){function r(e){return!!e&&"function"==typeof e&&"_streamed"in e&&!!e._streamed}n.d(t,{S:()=>r})},73461(e,t,n){function r(e,t){const n=e.attributes??(e.attributes={});Object.entries(t).forEach(([e,t])=>{null==t||e in n||(n[e]=t)})}n.d(t,{FD:()=>r})},61442(e,t,n){function r(e){return"stream"===e.getOptions().traceLifecycle}n.d(t,{K:()=>r})},88728(e,t,n){n.d(t,{Lb:()=>u,ZO:()=>l,d_:()=>c});var r=n(46403),s=n(64475);const o="_sentryScope",i="_sentryIsolationScope",a=Symbol.for("sentry.otelSourceInference");function c(e,t,n){e&&((0,r.my)(e,i,(0,s.Z)(n)),(0,r.my)(e,o,t))}function u(e){const t=e;return{scope:t[o],isolationScope:(0,s.q)(t[i])}}function l(e){return!0===e[a]}},63944(e,t,n){n.d(t,{De:()=>c,yD:()=>a});var r=n(26674),s=n(19282),o=n(64208);const i="sentry-";function a(e){const t=u(e);if(!t)return;const n=Object.entries(t).reduce((e,[t,n])=>{if(t.startsWith(i)){e[t.slice(7)]=n}return e},{});return Object.keys(n).length>0?n:void 0}function c(e){if(!e)return;return d(Object.entries(e).reduce((e,[t,n])=>(n&&(e[`${i}${t}`]=n),e),{}))}function u(e){if(e&&((0,o.Kg)(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>{const n=l(t);return Object.entries(n).forEach(([t,n])=>{e[t]=n}),e},{}):l(e)}function l(e){return e.split(",").map(e=>{const t=e.indexOf("=");if(-1===t)return[];return[e.slice(0,t),e.slice(t+1)].map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})}).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}function d(e){if(0!==Object.keys(e).length)return Object.entries(e).reduce((e,[t,n],o)=>{const i=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,a=0===o?i:`${e},${i}`;return a.length>8192?(r.T&&s.Yz.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):a},"")}n.d(t,["sv",0,i])},57726(e,t,n){n.d(t,{$N:()=>s,xE:()=>o});const r=n(18845).O;function s(){try{return r.document.location.href}catch{return""}}function o(e,t=5){if(!r.HTMLElement)return null;let n=e;for(let e=0;e<t;e++){if(!n)return null;if(n instanceof HTMLElement){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}n=n.parentNode}return null}},82775(e,t,n){n.d(t,["Av",0,"[Filtered]","UA",0,["forwarded","-ip","remote-","via","-user"],"d$",0,[".sid","sessid","remember","oidc","pkce","nonce","__secure-","__host-","awsalb","awselb","akamai","__stripe","cognito","firebase","supabase","sb-","mfa","2fa"],"kQ",0,["auth","token","secret","session","password","passwd","pwd","key","jwt","bearer","sso","saml","csrf","xsrf","credentials","sid","identity","set-cookie","cookie"]])},19282(e,t,n){n.d(t,{pq:()=>a});var r=n(95200),s=n(26674),o=n(18845);const i={};function a(e){if(!("console"in o.O))return e();const t=o.O.console,n={},r=Object.keys(i);r.forEach(e=>{const r=i[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}function c(){return l().enabled}function u(e,...t){s.T&&c()&&a(()=>{o.O.console[e](`Sentry Logger [${e}]:`,...t)})}function l(){return s.T?(0,r.BY)("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const d={enable:function(){l().enabled=!0},disable:function(){l().enabled=!1},isEnabled:c,log:function(...e){u("log",...e)},warn:function(...e){u("warn",...e)},error:function(...e){u("error",...e)}};n.d(t,["Ow",0,["debug","info","warn","error","log","assert","trace"],"Yz",0,d,"Z9",0,i])},71111(e,t,n){n.d(t,{AD:()=>l,SB:()=>a,ul:()=>u});var r=n(26674),s=n(19282);const o=/^o(\d+)\./,i=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function a(e,t=!1){const{host:n,path:r,pass:s,port:o,projectId:i,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&s?`:${s}`:""}@${n}${o?`:${o}`:""}/${r?`${r}/`:r}${i}`}function c(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function u(e){const t=e.getOptions(),{host:n}=e.getDsn()||{};let r;return t.orgId?r=String(t.orgId):n&&(r=function(e){const t=e.match(o);return t?.[1]}(n)),r}function l(e){const t="string"==typeof e?function(e){const t=i.exec(e);if(!t)return void(0,s.pq)(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});const[n,r,o="",a="",u="",l=""]=t.slice(1);let d="",p=l;const h=p.split("/");if(h.length>1&&(d=h.slice(0,-1).join("/"),p=h.pop()),p){const e=p.match(/^\d+/);e&&(p=e[0])}return c({host:a,pass:o,path:d,projectId:p,port:u,protocol:n,publicKey:r})}(e):c(e);if(t&&function(e){if(!r.T)return!0;const{port:t,projectId:n,protocol:o}=e;return!(["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(s.Yz.error(`Invalid Sentry Dsn: ${t} missing`),!0))||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(o)?t&&isNaN(parseInt(t,10))&&(s.Yz.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(s.Yz.error(`Invalid Sentry Dsn: Invalid protocol ${o}`),1):(s.Yz.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t))return t}},50925(e,t,n){function r(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function s(){return"npm"}n.d(t,{Z:()=>r,e:()=>s})},72808(e,t,n){n.d(t,{Cj:()=>_,W3:()=>u,bN:()=>h,bm:()=>m,h4:()=>c,hP:()=>d,n2:()=>v,y5:()=>f,yH:()=>l,zk:()=>y});var r=n(95200),s=n(71111),o=n(88214),i=n(9123),a=n(18845);function c(e,t=[]){return[e,t]}function u(e,t){const[n,r]=e;return[n,[...r,t]]}function l(e,t){const n=e[1];for(const e of n){if(t(e,e[0].type))return!0}return!1}function d(e,t){return l(e,(e,n)=>t.includes(n))}function p(e){const t=(0,r.Se)(a.O);return t.encodePolyfill?t.encodePolyfill(e):(new TextEncoder).encode(e)}function h(e){const[t,n]=e;let r=JSON.stringify(t);function s(e){"string"==typeof r?r="string"==typeof e?r+e:[p(r),e]:r.push("string"==typeof e?p(e):e)}for(const e of n){const[t,n]=e;if(s(`\n${JSON.stringify(t)}\n`),"string"==typeof n||n instanceof Uint8Array)s(n);else{let e;try{e=JSON.stringify(n)}catch{e=JSON.stringify((0,o.S8)(n))}s(e)}}return"string"==typeof r?r:function(e){const t=e.reduce((e,t)=>
2e+t.length,0),n=new Uint8Array(t);let r=0;for(const t of e)n.set(t,r),r+=t.length;return n}(r)}function f(e){return[{type:"span"},e]}function m(e){const t="string"==typeof e.data?p(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}const g={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",trace_metric:"metric"};function y(e){return function(e){return e in g}(e)?g[e]:e}function _(e){if(!e?.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function v(e,t,n,r){const o=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date((0,i.Wk)()).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:(0,s.SB)(r)},...o&&{trace:o}}}},54704(e,t,n){n.d(t,{f:()=>s});var r=n(57968);function s(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=e||(0,r.KU)()?.getOptions();return!(!t||null==t.tracesSampleRate&&!t.tracesSampler)}},64208(e,t,n){n.d(t,{BD:()=>a,Kg:()=>u,NF:()=>l,Qd:()=>p,Qg:()=>m,T2:()=>i,W6:()=>c,bJ:()=>s,gd:()=>f,ks:()=>y,sO:()=>d,tH:()=>g,xH:()=>h});const r=Object.prototype.toString;function s(e){switch(r.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return g(e,Error)}}function o(e,t){return r.call(e)===`[object ${t}]`}function i(e){return o(e,"ErrorEvent")}function a(e){return o(e,"DOMError")}function c(e){return o(e,"DOMException")}function u(e){return o(e,"String")}function l(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function d(e){return null===e||l(e)||"object"!=typeof e&&"function"!=typeof e}function p(e){return o(e,"Object")}function h(e){return"undefined"!=typeof Event&&g(e,Event)}function f(e){return o(e,"RegExp")}function m(e){return Boolean(e?.then&&"function"==typeof e.then)}function g(e,t){try{return e instanceof t}catch{return!1}}function y(e){return"undefined"!=typeof Request&&g(e,Request)}},96747(e,t,n){n.d(t,{B:()=>o});var r=n(50925);var s=n(18845);function o(){return"undefined"!=typeof window&&(!(!(0,r.Z)()&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0))||function(){const e=s.O.process;return"renderer"===e?.type}())}},63857(e,t,n){n.d(t,{A:()=>s});var r=n(67607);function s(e,t){const n=t?.getDsn(),s=t?.getOptions().tunnel;return function(e,t){const n=(0,r.kg)(e);if(!n||(0,r.nt)(n))return!1;if(!t)return!1;return s=n.hostname,o=t.host,(s===o||o.length>0&&s.endsWith(`.${o}`))&&/(^|&|\?)sentry_key=/.test(n.search);var s,o}(e,n)||function(e,t){if(!t)return!1;return o(e)===o(t)}(e,s)}function o(e){return"/"===e[e.length-1]?e.slice(0,-1):e}},45734(e,t,n){function r(e,t,n=2){if(!t||"object"!=typeof t||n<=0)return t;if(e&&0===Object.keys(t).length)return e;const s={...e};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(s[e]=r(s[e],t[e],n-1));return s}n.d(t,{h:()=>r})},9600(e,t,n){n.d(t,{$X:()=>l,GR:()=>f,M6:()=>p,db:()=>h,eJ:()=>c,gO:()=>d});var r=n(46403),s=n(9123),o=n(70125),i=n(18845);let a;function c(e=function(){const e=i.O;return e.crypto||e.msCrypto}()){try{if(e?.randomUUID)return(0,s.Qw)(()=>e.randomUUID()).replace(/-/g,"")}catch{}return a||(a="10000000100040008000100000000000"),a.replace(/[018]/g,e=>(e^(16*(0,s.hY)()&15)>>e/4).toString(16))}function u(e){return e.exception?.values?.[0]}function l(e){const{message:t,event_id:n}=e;if(t)return t;const r=u(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function d(e,t,n){const r=e.exception=e.exception||{},s=r.values=r.values||[],o=s[0]=s[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function p(e,t){const n=u(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r?.data,...t.data};n.mechanism.data=e}}function h(e,t,n=5){if(void 0===t.lineno)return;const r=e.length,s=Math.max(Math.min(r-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,s-n),s).map(e=>(0,o.nC)(e,0));const i=Math.min(r-1,s);t.context_line=(0,o.nC)(e[i],t.colno||0),t.post_context=e.slice(Math.min(s+1,r),s+1+n).map(e=>(0,o.nC)(e,0))}function f(e){if(function(e){try{return e.__sentry_captured__}catch{}}(e))return!0;try{(0,r.my)(e,"__sentry_captured__",!0)}catch{}return!1}},88214(e,t,n){n.d(t,{S8:()=>u,cd:()=>l,Ip:()=>c,ng:()=>p});const r=Symbol.for("sentry.skipNormalization"),s=Symbol.for("sentry.overrideNormalizationDepth");var o=n(46403),i=n(51685);let a;function c(e){a=e}function u(e,t=100,n=1/0){try{return d("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function l(e,t=3,n=102400){const r=u(e,t);return s=r,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(s))>n?l(e,t-1,n):r;var s}function d(e,t,n=1/0,i=1/0,a=function(){const e=new WeakSet;function t(t){return!!e.has(t)||(e.add(t),!1)}function n(t){e.delete(t)}return[t,n]}()){const[c,u]=a;if(null==t||["boolean","string"].includes(typeof t)||"number"==typeof t&&Number.isFinite(t))return t;const l=p(e,t);if(!l.startsWith("[object "))return l;if(function(e){return Boolean(e[r])}(t))return t;const h=function(e){const t=e[s];return"number"==typeof t?t:void 0}(t),f=void 0!==h?h:n;if(0===f)return l.replace("object ","");if(c(t))return"[Circular ~]";const m=t;if(m&&"function"==typeof m.toJSON)try{return d("",m.toJSON(),f-1,i,a)}catch{}const g=Array.isArray(t)?[]:{};let y=0;const _=(0,o.W4)(t);for(const e in _){if(!Object.prototype.hasOwnProperty.call(_,e))continue;if(y>=i){g[e]="[MaxProperties ~]";break}const t=_[e];g[e]=d(e,t,f-1,i,a),y++}return u(t),g}function p(e,t){try{if(a){const e=a(t);if(e)return e}if(void 0!==n.g&&t===n.g)return"[Global]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${(0,i.qQ)(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const e=function(e){const t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}(t);return`[object ${e}]`}catch(e){return`**non-serializable** (${e})`}}},46403(e,t,n){n.d(t,{GS:()=>i,HF:()=>p,W4:()=>l,my:()=>a,pO:()=>c,sp:()=>u});var r=n(26674),s=n(19282),o=n(64208);function i(e,t,n){if(!(t in e))return;const o=e[t];if("function"!=typeof o)return;const i=n(o);"function"==typeof i&&c(i,o);try{e[t]=i}catch{r.T&&s.Yz.log(`Failed to replace method "${t}" in object`,e)}}function a(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{r.T&&s.Yz.log(`Failed to add non-enumerable property "${String(t)}" to object`,e)}}function c(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,a(e,"__sentry_original__",t)}catch{}}function u(e){return e.__sentry_original__}function l(e){if((0,o.bJ)(e))return{message:e.message,name:e.name,stack:e.stack,...d(e)};
2if((0,o.xH)(e)){const{type:t,target:n,currentTarget:r,detail:s}=e;return{type:t,target:n,currentTarget:r,...s?{detail:s}:{},...d(e)}}return e}function d(e){return"object"==typeof e&&null!==e?Object.fromEntries(Object.entries(e)):{}}function p(e){const t=Object.keys(l(e));return t.sort(),t[0]?t.join(", "):"[object has no keys]"}},91773(e,t,n){function r(e){if("boolean"==typeof e)return Number(e);const t="string"==typeof e?parseFloat(e):e;return"number"!=typeof t||isNaN(t)||t<0||t>1?void 0:t}n.d(t,{i:()=>r})},49158(e,t,n){n.d(t,{li:()=>w,mG:()=>k});var r=n(7313),s=n(26674),o=n(19282),i=n(64208),a=n(17786);function c(e,t,n,r=0){try{const s=u(t,n,e,r);return(0,i.Qg)(s)?s:(0,a.XW)(s)}catch(e){return(0,a.xg)(e)}}function u(e,t,n,r){const a=n[r];if(!e||!a)return e;const c=a({...e},t);return s.T&&null===c&&o.Yz.log(`Event processor "${a.id||"?"}" dropped event`),(0,i.Qg)(c)?c.then(e=>u(e,t,n,r+1)):u(c,t,n,r+1)}var l=n(94988),d=n(18845);let p,h,f,m;function g(e){const t=d.O._sentryDebugIds,n=d.O._debugIds;if(!t&&!n)return{};const r=t?Object.keys(t):[],s=n?Object.keys(n):[];if(m&&r.length===h&&s.length===f)return m;h=r.length,f=s.length,m={},p||(p={});const o=(t,n)=>{for(const r of t){const t=n[r],s=p?.[r];if(s&&m&&t)m[s[0]]=t,p&&(p[r]=[s[0],t]);else if(t){const n=e(r);for(let e=n.length-1;e>=0;e--){const s=n[e],o=s?.filename;if(o&&m&&p){m[o]=t,p[r]=[o,t];break}}}}};return t&&o(r,t),n&&o(s,n),m}var y=n(9600),_=n(88214),v=n(23998),S=n(70125),b=n(93177);function k(e,t,n,s,o,i){const{normalizeDepth:u=3,normalizeMaxBreadth:d=1e3}=e,p={...t,event_id:t.event_id||n.event_id||(0,y.eJ)(),timestamp:t.timestamp||(0,b.lu)()},h=n.integrations||e.integrations.map(e=>e.name);!function(e,t){const{environment:n,release:s,dist:o,maxValueLength:i}=t;e.environment=e.environment||n||r.U,!e.release&&s&&(e.release=s);!e.dist&&o&&(e.dist=o);const a=e.request;a?.url&&i&&(a.url=(0,S.xv)(a.url,i));i&&e.exception?.values?.forEach(e=>{e.value&&(e.value=(0,S.xv)(e.value,i))})}(p,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(p,h),o&&o.emit("applyFrameMetadata",t),void 0===t.type&&function(e,t){const n=g(t);e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=n[e.filename])})})}(p,e.stackParser);const f=function(e,t){if(!t)return e;const n=e?e.clone():new l.H;return n.update(t),n}(s,n.captureContext);n.mechanism&&(0,y.M6)(p,n.mechanism);const m=o?o.getEventProcessors():[],k=(0,v.Om)(i,f),w=[...n.attachments||[],...k.attachments];w.length&&(n.attachments=w),(0,v.e2)(p,k);const E=[...m,...k.eventProcessors];return(n.data&&!0===n.data.__sentry__?(0,a.XW)(p):c(E,p,n)).then(e=>(e&&function(e){const t={};if(e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})}),0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{n.push({type:"sourcemap",code_file:e,debug_id:t})})}(e),"number"==typeof u&&u>0?function(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:(0,_.S8)(e.data,t,n)}}))},...e.user&&{user:(0,_.S8)(e.user,t,n)},...e.contexts&&{contexts:(0,_.S8)(e.contexts,t,n)},...e.extra&&{extra:(0,_.S8)(e.extra,t,n)}};e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=(0,_.S8)(e.contexts.trace.data,t,n)));e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:(0,_.S8)(e.data,t,n)}})));e.contexts?.flags&&r.contexts&&(r.contexts.flags=(0,_.S8)(e.contexts.flags,3,n));return r}(e,u,d):e))}function w(e){if(e)return function(e){return e instanceof l.H||"function"==typeof e}(e)||function(e){return Object.keys(e).some(e=>E.includes(e))}(e)?{captureContext:e}:e}const E=["user","level","extra","contexts","tags","fingerprint","propagationContext"]},74733(e,t,n){n.d(t,{Z:()=>o,e:()=>s});var r=n(9600);function s(){return(0,r.eJ)()}function o(){return(0,r.eJ)().substring(16)}},9123(e,t,n){n.d(t,{Qw:()=>o,Wk:()=>a,hY:()=>i});var r=n(18845);let s;function o(e){if(void 0!==s)return s?s(e):e();const t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=r.O;return t in n&&"function"==typeof n[t]?(s=n[t],s(e)):(s=null,e())}function i(){return o(()=>Math.random())}function a(){return o(()=>Date.now())}},36227(e,t,n){n.d(t,{Jz:()=>s,wq:()=>o});var r=n(9123);function s(e,t,n=(0,r.Wk)()){return function(e,t){return e[t]||e.all||0}(e,t)>n}function o(e,{statusCode:t,headers:n},s=(0,r.Wk)()){const o={...e},i=n?.["x-sentry-rate-limits"],a=n?.["retry-after"];if(i)for(const e of i.trim().split(",")){const[t,n,,,r]=e.split(":",5),i=parseInt(t,10),a=1e3*(isNaN(i)?60:i);if(n)for(const e of n.split(";"))"metric_bucket"===e&&r&&!r.split(";").includes("custom")||(o[e]=s+a);else o.all=s+a}else a?o.all=s+function(e,t=(0,r.Wk)()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const s=Date.parse(`${e}`);return isNaN(s)?6e4:s-t}(a,s):429===t&&(o.all=s+6e4);return o}},23998(e,t,n){n.d(t,{Om:()=>l,e2:()=>a});var r=n(57968),s=n(31158),o=n(45734),i=n(3121);function a(e,t){const{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:a}=t;!function(e,t){const{extra:n,tags:r,user:s,contexts:o,level:i,transactionName:a}=t;Object.keys(n).length&&(e.extra={...n,...e.extra});Object.keys(r).length&&(e.tags={...r,...e.tags});Object.keys(s).length&&(e.user={...s,...e.user});Object.keys(o).length&&(e.contexts={...o,...e.contexts});i&&(e.level=i);a&&"transaction"!==e.type&&(e.transaction=a)}(e,t),r&&function(e,t){e.contexts={trace:(0,i.kX)(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:(0,s.k1)(t),...e.sdkProcessingMetadata};const n=(0,i.zU)(t),r=(0,i.et)(n).description;r&&!e.transaction&&"transaction"===e.type&&(e.transaction=r)}(e,r),function(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t));e.fingerprint.length||delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,o),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,a)}function c(e,t){const{extra:n,tags:r,attributes:s,user:i,contexts:a,level:c,sdkProcessingMetadata:l,breadcrumbs:d,fingerprint:p,eventProcessors:h,attachments:f,propagationContext:m,transactionName:g,span:y}=t;u(e,"extra",n),u(e,"tags",r),u(e,"attributes",s),u(e,"user",i),u(e,"contexts",a),e.sdkProcessingMetadata=(0,o.h)(e.sdkProcessingMetadata,l,2),c&&(e.level=c),g&&(e.transactionName=g),y&&(e.span=y),d.length&&(e.breadcrumbs=[...e.breadcrumbs,...d]),p.length&&(e.fingerprint=[...e.fingerprint,...p]),h.length&&(e.eventProcessors=[...e.eventProcessors,...h]
2),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...m}}function u(e,t,n){e[t]=(0,o.h)(e[t],n,1)}function l(e,t){const n=(0,r.m6)().getScopeData();return e&&c(n,e.getScopeData()),t&&c(n,t.getScopeData()),n}},27879(e,t,n){function r(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}n.d(t,{t:()=>r})},84347(e,t,n){n.d(t,{R:()=>u,e:()=>a});var r=n(26674),s=n(19282),o=n(70125);function i(e){s.Yz.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function a(e,t){if(!t?.length)return!1;for(const n of t){if(l(n)){if(e.description&&(0,o._c)(e.description,n))return r.T&&i(e),!0;continue}const t=!!n.attributes&&Object.keys(n.attributes).length>0;if(!n.name&&!n.op&&!t)continue;const s=!n.name||e.description&&(0,o._c)(e.description,n.name),a=!n.op||e.op&&(0,o._c)(e.op,n.op),u=!n.attributes||Object.entries(n.attributes).every(([t,n])=>c(e.attributes?.[t],n));if(s&&a&&u)return r.T&&i(e),!0}return!1}function c(e,t){return"string"==typeof e&&("string"==typeof t||t instanceof RegExp)?(0,o._c)(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e===t}function u(e,t){const n=t.parent_span_id,r=t.span_id;if(n)for(const t of e)t.parent_span_id===r&&(t.parent_span_id=n)}function l(e){return"string"==typeof e||e instanceof RegExp}},70333(e,t,n){n.d(t,{f:()=>a,r:()=>i});var r=n(46403),s=n(64475);const o="_sentrySpan";function i(e,t){t?(0,r.my)(e,o,(0,s.Z)(t)):delete e[o]}function a(e){return(0,s.q)(e[o])}},3121(e,t,n){n.d(t,{Hu:()=>j,fy:()=>L,uU:()=>b,Bk:()=>B,zU:()=>U,dZ:()=>D,xO:()=>$,yW:()=>A,HQ:()=>k,VS:()=>z,xl:()=>H,pK:()=>O,cI:()=>w,et:()=>T,RD:()=>x,kX:()=>_,Qh:()=>v,G_:()=>S,Ck:()=>y,PL:()=>C});var r=n(73949);function s(e,t){const{value:n,unit:r}="object"==typeof(s=e)&&null!=s&&!Array.isArray(s)&&Object.keys(s).includes("value")?e:{value:e,unit:void 0};var s;const o=function(e){if(Array.isArray(e))return{value:e,type:"array"};const t="string"==typeof e?"string":"boolean"==typeof e?"boolean":"number"!=typeof e||Number.isNaN(e)?null:Number.isInteger(e)?"integer":"double";if(t)return{value:e,type:t}}(n),i=r&&"string"==typeof r?{unit:r}:{};if(o)return{...o,...i};if(!t||"skip-undefined"===t&&void 0===n)return;let a="";try{a=JSON.stringify(n)??""}catch{}return{value:a,type:"string",...i}}function o(e,t=!1){const n={};for(const[r,o]of Object.entries(e??{})){const e=s(o,t);e&&(n[r]=e)}return n}var i=n(95200),a=n(57968),c=n(74611),u=n(88728),l=n(46403),d=n(74733),p=n(93177),h=n(93908),f=n(19282),m=n(70333);let g=!1;function y(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:s,parent_span_id:o,status:i,origin:a,links:c}=T(e);return{parent_span_id:o,span_id:t,trace_id:n,data:r,op:s,status:i,origin:a,links:c}}function _(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),s=r?t:T(e).parent_span_id,o=(0,u.Lb)(e).scope;return{parent_span_id:s,span_id:r?o?.getPropagationContext().propagationSpanId||(0,d.Z)():t,trace_id:n}}function v(e){const{traceId:t,spanId:n}=e.spanContext(),r=O(e);return(0,h.TC)(t,n,r)}function S(e){const{traceId:t,spanId:n}=e.spanContext(),r=O(e);return(0,h.Iy)(t,n,r)}function b(e){return e&&e.length>0?e.map(({context:{spanId:e,traceId:t,traceFlags:n,...r},attributes:s})=>({span_id:e,trace_id:t,sampled:1===n,attributes:s,...r})):void 0}function k(e){return e?.length?e.map(({context:{spanId:e,traceId:t,traceFlags:n},attributes:r})=>({span_id:e,trace_id:t,sampled:1===n,attributes:r})):void 0}function w(e){return"number"==typeof e?E(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?E(e.getTime()):(0,p.zf)()}function E(e){return e>9999999999?e/1e3:e}function T(e){if(R(e))return e.getSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(M(e)){const{attributes:r,startTime:s,name:o,endTime:i,status:a,links:u}=e;return{span_id:t,trace_id:n,data:r,description:o,parent_span_id:I(e),start_timestamp:w(s),timestamp:w(i)||void 0,status:A(a),op:r[c.uT],origin:r[c.JD],links:b(u)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function x(e){if(R(e))return e.getStreamedSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(M(e)){const{attributes:r,startTime:s,name:o,endTime:i,status:a,links:c}=e;return{name:o,span_id:t,trace_id:n,parent_span_id:I(e),start_timestamp:w(s),end_timestamp:w(i),is_segment:e===F(e),status:D(a),attributes:L(r,a),links:k(c)}}return{span_id:t,trace_id:n,start_timestamp:0,name:"",end_timestamp:0,status:"ok",is_segment:e===F(e)}}function I(e){return"parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0}function C(e){return{...e,attributes:o(e.attributes),links:e.links?.map(e=>({...e,attributes:o(e.attributes)}))}}function M(e){const t=e;return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}function R(e){return"function"==typeof e.getSpanJSON}function O(e){const{traceFlags:t}=e.spanContext();return 1===t}function A(e){if(e&&0!==e.code)return 1===e.code?"ok":e.message||"internal_error"}function D(e){return e&&1!==e.code&&0!==e.code&&"cancelled"!==e.message?"error":"ok"}function L(e,t){const n="error"===D(t)?t?.message:void 0;return{...n&&{[c.Ft]:n},...e}}const N="_sentryChildSpans",P="_sentryRootSpan";function j(e,t){const n=e[P]||e;(0,l.my)(t,P,n),e[N]?e[N].add(t):(0,l.my)(e,N,new Set([t]))}function z(e,t){e[N]&&e[N].delete(t)}function $(e){const t=new Set;return function e(n){if(!t.has(n)&&O(n)){t.add(n);const r=n[N]?Array.from(n[N]):[];for(const t of r)e(t)}}(e),Array.from(t)}const U=F;function F(e){return e[P]||e}function B(){const e=(0,i.EU)(),t=(0,r.h)(e);return t.getActiveSpan?t.getActiveSpan():(0,m.f)((0,a.o5)())}function H(){g||((0,f.pq)(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),g=!0)}},51685(e,t,n){n.d(t,{RV:()=>l,gd:()=>o,qQ:()=>u,vk:()=>i});const r=/\(error: (.*)\)/,s=/captureMessage|captureException/;function o(...e){const t=e.sort((e,t)=>
2e[0]-t[0]).map(e=>e[1]);return(e,n=0,o=0)=>{const i=[],c=e.split("\n");for(let e=n;e<c.length;e++){let n=c[e];n.length>1024&&(n=n.slice(0,1024));const s=r.test(n)?n.replace(r,"$1"):n;if(!s.includes("Error: ")){for(const e of t){const t=e(s);if(t){i.push(t);break}}if(i.length>=50+o)break}}return function(e){if(!e.length)return[];const t=Array.from(e);/sentryWrapped/.test(a(t).function||"")&&t.pop();t.reverse(),s.test(a(t).function||"")&&(t.pop(),s.test(a(t).function||"")&&t.pop());return t.slice(0,50).map(e=>({...e,filename:e.filename||a(t).filename,function:e.function||"?"}))}(i.slice(o))}}function i(e){return Array.isArray(e)?o(...e):e}function a(e){return e[e.length-1]||{}}const c="<anonymous>";function u(e){try{return e&&"function"==typeof e&&e.name||c}catch{return c}}function l(e){const t=e.exception;if(t){const e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch{return}}}},70125(e,t,n){n.d(t,{Xr:()=>u,_c:()=>c,gt:()=>a,nC:()=>i,xv:()=>o});var r=n(64208),s=n(88214);function o(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function i(e,t){let n=e;const r=n.length;if(r<=150)return n;t>r&&(t=r);let s=Math.max(t-60,0);s<5&&(s=0);let o=Math.min(s+140,r);return o>r-5&&(o=r),o===r&&(s=Math.max(o-140,0)),n=n.slice(s,o),s>0&&(n=`'{snip} ${n}`),o<r&&(n+=" {snip}"),n}function a(e,t){if(!Array.isArray(e))return"";const n=[];for(let t=0;t<e.length;t++){const o=e[t];(0,r.sO)(o)?n.push(String(o)):o instanceof Error?n.push(o.message?`${o.name}: ${o.message}`:o.name):n.push((0,s.ng)(void 0,o))}return n.join(t)}function c(e,t,n=!1){return!!(0,r.Kg)(e)&&((0,r.gd)(t)?t.test(e):(0,r.Kg)(t)?n?e===t:e.includes(t):"function"==typeof t&&t(e))}function u(e,t=[],n=!1){for(const r of t)if(c(e,r,n))return!0;return!1}},47040(e,t,n){n.d(t,{NJ:()=>i,a3:()=>c,m7:()=>u});var r=n(26674),s=n(19282);const o=n(18845).O;function i(){return"history"in o&&!!o.history}function a(){if(!("fetch"in o))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function c(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function u(){if("string"==typeof EdgeRuntime)return!0;if(!a())return!1;if(c(o.fetch))return!0;let e=!1;const t=o.document;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=c(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){r.T&&s.Yz.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}},17786(e,t,n){n.d(t,{XW:()=>s,xg:()=>o});var r=n(64208);function s(e){return new i(t=>{t(e)})}function o(e){return new i((t,n)=>{n(e)})}class i{constructor(e){this._state=0,this._handlers=[],this._runExecutor(e)}then(e,t){return new i((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new i((t,n)=>{let r,s;return this.then(t=>{s=!1,r=t,e&&e()},t=>{s=!0,r=t,e&&e()}).then(()=>{s?n(r):t(r)})})}_executeHandlers(){if(0===this._state)return;const e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(1===this._state&&e[1](this._value),2===this._state&&e[2](this._value),e[0]=!0)})}_runExecutor(e){const t=(e,t)=>{0===this._state&&((0,r.Qg)(t)?t.then(n,s):(this._state=e,this._value=t,this._executeHandlers()))},n=e=>{t(1,e)},s=e=>{t(2,e)};try{e(n,s)}catch(e){s(e)}}}},93177(e,t,n){n.d(t,{k3:()=>u,lu:()=>o,zf:()=>a});var r=n(9123),s=n(18845);function o(){return(0,r.Wk)()/1e3}let i;function a(){return(i??(i=function(){const{performance:e}=s.O;if(!e?.now||!e.timeOrigin)return o;const t=e.timeOrigin;return()=>(t+(0,r.Qw)(()=>e.now()))/1e3}()))()}let c=null;function u(){return null===c&&(c=function(){const{performance:e}=s.O;if(!e?.now)return;const t=3e5,n=(0,r.Qw)(()=>e.now()),o=(0,r.Wk)(),i=e.timeOrigin;if("number"==typeof i&&Math.abs(i+n-o)<t)return i;const a=e.timing?.navigationStart;if("number"==typeof a&&Math.abs(a+n-o)<t)return a;return o-n}()),c}},93908(e,t,n){n.d(t,{Iy:()=>l,TC:()=>u,kM:()=>c});var r=n(63944),s=n(91773),o=n(74733),i=n(9123);const a=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function c(e,t){const n=function(e){if(!e)return;const t=e.match(a);if(!t)return;let n;return"1"===t[3]?n=!0:"0"===t[3]&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}(e),c=(0,r.yD)(t);if(!n?.traceId)return{traceId:(0,o.e)(),sampleRand:(0,i.hY)()};const u=function(e,t){const n=(0,s.i)(t?.sample_rand);if(void 0!==n)return n;const r=(0,s.i)(t?.sample_rate);return r&&void 0!==e?.parentSampled?e.parentSampled?(0,i.hY)()*r:r+(0,i.hY)()*(1-r):(0,i.hY)()}(n,c);c&&(c.sample_rand=u.toString());const{traceId:l,parentSpanId:d,parentSampled:p}=n;return{traceId:l,parentSpanId:d,sampled:p,dsc:c||{},sampleRand:u}}function u(e=(0,o.e)(),t=(0,o.Z)(),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function l(e=(0,o.e)(),t=(0,o.Z)(),n){return`00-${e}-${t}-${n?"01":"00"}`}n.d(t,["MI",0,a])},67607(e,t,n){n.d(t,{CH:()=>o,Dl:()=>i,f:()=>a,kg:()=>s,nt:()=>r,zm:()=>c});function r(e){return"isRelative"in e}function s(e,t){const n=e.indexOf("://")<=0&&0!==e.indexOf("//"),r=t??(n?"thismessage:/":void 0);try{if("canParse"in URL&&!URL.canParse(e,r))return;const t=new URL(e,r);return n?{isRelative:n,pathname:t.pathname,search:t.search,hash:t.hash}:t}catch{}}function o(e){if(r(e))return e.pathname;const t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}function i(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function a(e){return e.split(/[?#]/,1)[0]}function c(e,t=!0){if(e.startsWith("data:")){const n=e.match(/^data:([^;,]+)/),r=n?n[1]:"text/plain",s=e.includes(";base64,"),o=e.indexOf(",");let i="";if(t&&-1!==o){const t=e.slice(o+1);i=t.length>10?`${t.slice(0,10)}... [truncated]`:t}return`data:${r}${s?",base64":""}${i?`,${i}`:""}`}return e}},43674(e,t,n){n.d(t,["M",0,"10.63.0"])},64475(e,t,n){n.d(t,{Z:()=>s,q:()=>o});var r=n(18845);function s(e){try{const t=r.O.WeakRef;if("function"==typeof t)return new t(e)}catch{}return e}function o(e){if(e){if("object"==typeof e&&"deref"in e&&"function"==typeof e.deref)try{return e.deref()}catch{return}return e}}},18845(e,t,n){const r=globalThis;n.d(t,["O",0,r])},72041(e,t,n){n.d(t,{w:()=>Wr});var r=n(18845),s=n(88214),o=n(46403),i=n(93177),a=n(6810),c=n(19282),u=n(27879),l=n(64251),d=n(9600),p=n(
257968),h=n(3121),f=n(57726),m=n(31158),g=n(63857),y=n(70125);var _=n(72808),v=n(49158),S=n(36227),b=n(74611),k=n(96747),w=n(73461),E=n(91773),T=n(88406),x=n(96103),I=n(85418),C=n(34408),M=n(14839),R=n(2393),O=n(73661);const A=r.O,D="sentryReplaySession",L="Unable to send Replay",N=15e4,P=5e3,j=2e7,z=36e5;var $=Object.defineProperty,U=(e,t,n)=>((e,t,n)=>t in e?$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),F=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(F||{});function B(e){const t=e?.host;return Boolean(t?.shadowRoot===e)}function H(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function q(e){try{const n=e.rules||e.cssRules;return n?((t=Array.from(n,W).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}var t}function W(e){let t;if(function(e){return"styleSheet"in e}(e))try{t=q(e.styleSheet)||function(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}(e)}catch(e){}else if(function(e){return"selectorText"in e}(e)){let t=e.cssText;const n=e.selectorText.includes(":"),r="string"==typeof e.style.all&&e.style.all;if(r&&(t=function(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style,s=r[n],o=r.getPropertyPriority(s);t+=`${s}:${r.getPropertyValue(s)}${o?" !important":""};`}return`${e.selectorText} { ${t} }`}(e)),n&&(t=function(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}(t)),n||r)return t}return t||e.cssText}class Y{constructor(){U(this,"idNodeMap",new Map),U(this,"nodeMetaMap",new WeakMap)}getId(e){if(!e)return-1;const t=this.getMeta(e)?.id;return t??-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function K({maskInputOptions:e,tagName:t,type:n}){return"OPTION"===t&&(t="SELECT"),Boolean(e[t.toLowerCase()]||n&&e[n]||"password"===n||"INPUT"===t&&!n&&e.text)}function J({isMasked:e,element:t,value:n,maskInputFn:r}){let s=n||"";return e?(r&&(s=r(s,t)),"*".repeat(s.length)):s}function G(e){return e.toLowerCase()}function V(e){return e.toUpperCase()}const X="__rrweb_original__";function Q(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?G(t):null}function Z(e,t,n){return"INPUT"!==t||"radio"!==n&&"checkbox"!==n?e.value:e.getAttribute("value")||""}function ee(e,t){let n;try{n=new URL(e,t??window.location.href)}catch(e){return null}const r=n.pathname.match(/\.([0-9a-z]+)(?:$)/i);return r?.[1]??null}const te={};function ne(e){const t=te[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const s=t.contentWindow;s&&s[e]&&(r=s[e]),n.head.removeChild(t)}catch(e){}return te[e]=r.bind(window)}function re(...e){return ne("setTimeout")(...e)}function se(...e){return ne("clearTimeout")(...e)}function oe(e){try{return e.contentDocument}catch{}}let ie=1;const ae=new RegExp("[^a-z0-9-_:]");function ce(){return ie++}let ue,le;const de=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,pe=/^(?:[a-z+]+:)?\/\//i,he=/^www\..*/i,fe=/^(data:)([^,]*),(.*)/i;function me(e,t){return(e||"").replace(de,(e,n,r,s,o,i)=>{const a=r||o||i,c=n||s||"";if(!a)return e;if(pe.test(a)||he.test(a))return`url(${c}${a}${c})`;if(fe.test(a))return`url(${c}${a}${c})`;if("/"===a[0])return`url(${c}${function(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+a}${c})`;const u=t.split("/"),l=a.split("/");u.pop();for(const e of l)"."!==e&&(".."===e?u.pop():u.push(e));return`url(${c}${u.join("/")}${c})`})}const ge=/^[^ \t\n\r\u000c]+/,ye=/^[, \t\n\r\u000c]+/;const _e=new WeakMap;function ve(e,t){return t&&""!==t.trim()?be(e,t):t}function Se(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function be(e,t){let n=_e.get(e);if(n||(n=e.createElement("a"),_e.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function ke(e,t,n,r,s,o,i){if(!r)return r;if("src"===n||"href"===n&&("use"!==t||"#"!==r[0]))return ve(e,r);if("xlink:href"===n&&"#"!==r[0])return ve(e,r);if("background"===n&&("table"===t||"td"===t||"th"===t))return ve(e,r);if("srcset"===n)return function(e,t){if(""===t.trim())return t;let n=0;function r(e){let r;const s=e.exec(t.substring(n));return s?(r=s[0],n+=r.length,r):""}const s=[];for(;r(ye),!(n>=t.length);
2){let o=r(ge);if(","===o.slice(-1))o=ve(e,o.substring(0,o.length-1)),s.push(o);else{let r="";o=ve(e,o);let i=!1;for(;;){const e=t.charAt(n);if(""===e){s.push((o+r).trim());break}if(i)")"===e&&(i=!1);else{if(","===e){n+=1,s.push((o+r).trim());break}"("===e&&(i=!0)}r+=e,n+=1}}}return s.join(", ")}(e,r);if("style"===n){let t=me(r,be(e));return i&&i.size>0&&(t=function(e,t){if(!e||0===t.size)return e;try{const n=e.split(";"),r=[];for(let e of n){if(e=e.trim(),!e)continue;const n=e.indexOf(":");if(-1===n){r.push(e);continue}const s=e.slice(0,n).trim();t.has(s)||r.push(e)}return r.join("; ")+(r.length>0&&e.endsWith(";")?";":"")}catch(t){return console.warn("Error filtering CSS properties:",t),e}}(t,i)),t}return"object"===t&&"data"===n?ve(e,r):"function"==typeof o?o(n,r,s):r}function we(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function Ee(e,t,n=1/0,r=0){return e?e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:Ee(e.parentNode,t,n,r+1):-1}function Te(e,t){return n=>{const r=n;if(null===r)return!1;try{if(e)if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}(r,e))return!0;return!(!t||!r.matches(t))}catch{return!1}}}function xe(e,t,n,r,s,o){try{const i=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===i)return!1;if("INPUT"===i.tagName){const e=i.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let a=-1,c=-1;if(o){if(c=Ee(i,Te(r,s)),c<0)return!0;a=Ee(i,Te(t,n),c>=0?c:1/0)}else{if(a=Ee(i,Te(t,n)),a<0)return!1;c=Ee(i,Te(r,s),a>=0?a:1/0)}return a>=0?!(c>=0)||a<=c:!(c>=0)&&!!o}catch(e){}return!!o}function Ie(e,t){const{doc:n,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskAttributeFn:c,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:f={},maskTextFn:m,maskInputFn:g,dataURLOptions:y={},inlineImages:_,recordCanvas:v,keepIframeSrcFn:S,newlyAddedElement:b=!1,ignoreCSSAttributes:k}=t,w=function(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return 1===n?void 0:n}(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:F.Document,childNodes:[],compatMode:e.compatMode}:{type:F.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:F.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:w};case e.ELEMENT_NODE:return function(e,t){const{doc:n,blockClass:r,blockSelector:s,unblockSelector:o,inlineStylesheet:i,maskInputOptions:a={},maskAttributeFn:c,maskInputFn:u,dataURLOptions:l={},inlineImages:d,recordCanvas:p,keepIframeSrcFn:h,newlyAddedElement:f=!1,rootId:m,maskTextClass:g,unmaskTextClass:y,maskTextSelector:_,unmaskTextSelector:v,ignoreCSSAttributes:S}=t,b=function(e,t,n,r){try{if(r&&e.matches(r))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch(e){}return!1}(e,r,s,o),k=function(e){if(e instanceof HTMLFormElement)return"form";const t=G(e.tagName);return ae.test(t)?"div":t}(e);let w={};const E=e.attributes.length;for(let t=0;t<E;t++){const r=e.attributes[t];r.name&&!we(k,r.name,r.value)&&(w[r.name]=ke(n,k,G(r.name),r.value,e,c,S))}if("link"===k&&i){const t=Array.from(n.styleSheets).find(t=>t.href===e.href);let r=null;t&&(r=q(t)),r&&(w.rel=null,w.href=null,w.crossorigin=null,w._cssText=me(r,t.href))}if("style"===k&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=q(e.sheet);t&&(w._cssText=me(t,be(n)))}if("input"===k||"textarea"===k||"select"===k||"option"===k){const t=e,n=Q(t),r=Z(t,V(k),n),s=t.checked;if("submit"!==n&&"button"!==n&&r){const e=xe(t,g,_,y,v,K({type:n,tagName:V(k),maskInputOptions:a}));w.value=J({isMasked:e,element:t,value:r,maskInputFn:u})}s&&(w.checked=s)}"option"===k&&(e.selected&&!a.select?w.selected=!0:delete w.selected);if("canvas"===k&&p)if("2d"===e.__context)(function(e){const t=e.getContext("2d");if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let r=0;r<e.height;r+=50){const s=t.getImageData,o=X in s?s[X]:s;
2if(new Uint32Array(o.call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some(e=>0!==e))return!1}return!0})(e)||(w.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){const t=e.toDataURL(l.type,l.quality),r=n.createElement("canvas");r.width=e.width,r.height=e.height;t!==r.toDataURL(l.type,l.quality)&&(w.rr_dataURL=t)}if("img"===k&&d){ue||(ue=n.createElement("canvas"),le=ue.getContext("2d"));const t=e,r=t.currentSrc||t.getAttribute("src")||"<unknown-src>",s=t.crossOrigin,o=()=>{t.removeEventListener("load",o);try{ue.width=t.naturalWidth,ue.height=t.naturalHeight,le.drawImage(t,0,0),w.rr_dataURL=ue.toDataURL(l.type,l.quality)}catch(e){if("anonymous"!==t.crossOrigin)return t.crossOrigin="anonymous",void(t.complete&&0!==t.naturalWidth?o():t.addEventListener("load",o));console.warn(`Cannot inline img src=${r}! Error: ${e}`)}"anonymous"===t.crossOrigin&&(s?w.crossOrigin=s:t.removeAttribute("crossorigin"))};t.complete&&0!==t.naturalWidth?o():t.addEventListener("load",o)}"audio"!==k&&"video"!==k||(w.rr_mediaState=e.paused?"paused":"played",w.rr_mediaCurrentTime=e.currentTime);f||(e.scrollLeft&&(w.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(w.rr_scrollTop=e.scrollTop));if(b){const{width:t,height:n}=e.getBoundingClientRect();w={class:w.class,rr_width:`${t}px`,rr_height:`${n}px`}}"iframe"!==k||h(w.src)||(b||oe(e)||(w.rr_src=w.src),delete w.src);let T;try{customElements.get(k)&&(T=!0)}catch(e){}return{type:F.Element,tagName:k,attributes:w,childNodes:[],isSVG:Se(e)||void 0,needBlock:b,rootId:m,isCustom:T}}(e,{doc:n,blockClass:s,blockSelector:o,unblockSelector:i,inlineStylesheet:h,maskAttributeFn:c,maskInputOptions:f,maskInputFn:g,dataURLOptions:y,inlineImages:_,recordCanvas:v,keepIframeSrcFn:S,newlyAddedElement:b,rootId:w,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p,ignoreCSSAttributes:k});case e.TEXT_NODE:return function(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:s,maskTextSelector:o,unmaskTextSelector:i,maskTextFn:a,maskInputOptions:c,maskInputFn:u,rootId:l}=t,d=e.parentNode&&e.parentNode.tagName;let p=e.textContent;const h="STYLE"===d||void 0,f="SCRIPT"===d||void 0,m="TEXTAREA"===d||void 0;if(h&&p){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(p=q(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}p=me(p,be(t.doc))}f&&(p="SCRIPT_PLACEHOLDER");const g=xe(e,r,o,s,i,n);h||f||m||!p||!g||(p=a?a(p,e.parentElement):p.replace(/[\S]/g,"*"));m&&p&&(c.textarea||g)&&(p=u?u(p,e.parentNode):p.replace(/[\S]/g,"*"));if("OPTION"===d&&p){p=J({isMasked:xe(e,r,o,s,i,K({type:null,tagName:d,maskInputOptions:c})),element:e,value:p,maskInputFn:u})}return{type:F.Text,textContent:p||"",isStyle:h,rootId:l}}(e,{doc:n,maskAllText:a,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p,maskTextFn:m,maskInputOptions:f,maskInputFn:g,rootId:w});case e.CDATA_SECTION_NODE:return{type:F.CDATA,textContent:"",rootId:w};case e.COMMENT_NODE:return{type:F.Comment,textContent:e.textContent||"",rootId:w};default:return!1}}function Ce(e){return null==e?"":e.toLowerCase()}function Me(e,t){const{doc:n,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:p=!1,inlineStylesheet:h=!0,maskInputOptions:f={},maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:_,dataURLOptions:v={},inlineImages:S=!1,recordCanvas:b=!1,onSerialize:k,onIframeLoad:w,iframeLoadTimeout:E=5e3,onBlockedImageLoad:T,onStylesheetLoad:x,stylesheetLoadTimeout:I=5e3,keepIframeSrcFn:C=()=>!1,newlyAddedElement:M=!1,ignoreCSSAttributes:R}=t;let{preserveWhiteSpace:O=!0}=t;const A=Ie(e,{doc:n,mirror:r,blockClass:s,blockSelector:o,maskAllText:a,unblockSelector:i,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,dataURLOptions:v,inlineImages:S,recordCanvas:b,keepIframeSrcFn:C,newlyAddedElement:M,ignoreCSSAttributes:R});if(!A)return console.warn(e,"not serialized"),null;let D;D=r.hasNode(e)?r.getId(e):!function(e,t){if(t.comment&&e.type===F.Comment)return!0;
2if(e.type===F.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===ee(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(Ce(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Ce(e.attributes.name)||"icon"===Ce(e.attributes.rel)||"apple-touch-icon"===Ce(e.attributes.rel)||"shortcut icon"===Ce(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&Ce(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Ce(e.attributes.property).match(/^(og|twitter|fb):/)||Ce(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===Ce(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===Ce(e.attributes.name)||"googlebot"===Ce(e.attributes.name)||"bingbot"===Ce(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===Ce(e.attributes.name)||"generator"===Ce(e.attributes.name)||"framework"===Ce(e.attributes.name)||"publisher"===Ce(e.attributes.name)||"progid"===Ce(e.attributes.name)||Ce(e.attributes.property).match(/^article:/)||Ce(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===Ce(e.attributes.name)||"yandex-verification"===Ce(e.attributes.name)||"csrf-token"===Ce(e.attributes.name)||"p:domain_verify"===Ce(e.attributes.name)||"verify-v1"===Ce(e.attributes.name)||"verification"===Ce(e.attributes.name)||"shopify-checkout-api-token"===Ce(e.attributes.name)))return!0}}return!1}(A,_)&&(O||A.type!==F.Text||A.isStyle||A.textContent.trim().length)?ce():-2;const L=Object.assign(A,{id:D});if(r.add(e,L),-2===D)return null;k&&k(e);let N=!p;if(L.type===F.Element){N=N&&!L.needBlock;const t=e.shadowRoot;t&&H(t)&&(L.isShadowHost=!0)}if((L.type===F.Document||L.type===F.Element)&&N){_.headWhitespace&&L.type===F.Element&&"head"===L.tagName&&(O=!1);const t={doc:n,mirror:r,blockClass:s,blockSelector:o,maskAllText:a,unblockSelector:i,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:p,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:_,dataURLOptions:v,inlineImages:S,recordCanvas:b,preserveWhiteSpace:O,onSerialize:k,onIframeLoad:w,iframeLoadTimeout:E,onBlockedImageLoad:T,onStylesheetLoad:x,stylesheetLoadTimeout:I,keepIframeSrcFn:C,ignoreCSSAttributes:R},M=e.childNodes?Array.from(e.childNodes):[];for(const e of M){const n=Me(e,t);n&&L.childNodes.push(n)}if(function(e){return e.nodeType===e.ELEMENT_NODE}(e)&&e.shadowRoot)for(const n of Array.from(e.shadowRoot.childNodes)){const r=Me(n,t);r&&(H(e.shadowRoot)&&(r.isShadow=!0),L.childNodes.push(r))}}if(e.parentNode&&B(e.parentNode)&&H(e.parentNode)&&(L.isShadow=!0),L.type!==F.Element||"iframe"!==L.tagName||L.needBlock||function(e,t,n){const r=function(e){try{return e.contentWindow}catch{}}(e);if(!r)return;let s,o=!1;try{s=r.document.readyState}catch(e){return}if("complete"!==s){const r=re(()=>{o||(t(),o=!0)},n);return void e.addEventListener("load",()=>{se(r),o=!0,t()})}const i="about:blank";if(r.location.href!==i||e.src===i||""===e.src)return re(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{const t=oe(e);if(t&&w){const n=Me(t,{doc:t,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:_,dataURLOptions:v,inlineImages:S,recordCanvas:b,preserveWhiteSpace:O,onSerialize:k,onIframeLoad:w,iframeLoadTimeout:E,onStylesheetLoad:x,stylesheetLoadTimeout:I,keepIframeSrcFn:C,ignoreCSSAttributes:R});n&&w(e,n)}},E),L.type===F.Element&&"img"===L.tagName&&!e.complete&&L.needBlock){const t=e,n=()=>{if(t.isConnected&&!t.complete&&T)try{const e=t.getBoundingClientRect();e.width>0&&e.height>0&&T(t,L,e)}catch(e){}t.removeEventListener("load",n)};t.isConnected&&t.addEventListener("load",n)}return L.type===F.Element&&"link"===L.tagName&&"string"==typeof L.attributes.rel&&("stylesheet"===L.attributes.rel||"preload"===L.attributes.rel&&"string"==typeof L.attributes.href&&"css"===ee(L.attributes.href))&&function(e,t,n){let r,s=!1;try{r=e.sheet}catch(e){r=null}if(r)return;const o=re(()=>{s||(t(),s=!0)},n);e.addEventListener("load",()=>{se(o),s=!0,t()})}(e,()=>{if(x){const t=Me(e,{doc:n,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:_,dataURLOptions:v,inlineImages:S,recordCanvas:b,preserveWhiteSpace:O,onSerialize:k,onIframeLoad:w,iframeLoadTimeout:E,onStylesheetLoad:x,stylesheetLoadTimeout:I,keepIframeSrcFn:C,ignoreCSSAttributes:R});t&&x(e,t)}},I),L.type===F.Element&&delete L.needBlock,L}function Re(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const Oe="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 Ae={map:{},getId:()=>(console.error(Oe),-1),getNode:()=>(console.error(Oe),null),removeNodeFromMap(){console.error(Oe)},has:()=>(console.error(Oe),!1),reset(){console.error(Oe)}};function De(e,t,n={}){let r=null,s=0;return function(...o){const i=Date.now();s||!1!==n.leading||(s=i);const a=t-(i-s),c=this;a<=0||a>t?(r&&(!function(...e){Ze("clearTimeout")(...e)}
2(r),r=null),s=i,e.apply(c,o)):r||!1===n.trailing||(r=et(()=>{s=!1===n.leading?0:Date.now(),r=null,e.apply(c,o)},a))}}function Le(e,t,n,r,s=window){const o=s.Object.getOwnPropertyDescriptor(e,t);return s.Object.defineProperty(e,t,r?n:{set(e){et(()=>{n.set.call(this,e)},0),o&&o.set&&o.set.call(this,e)}}),()=>Le(e,t,o||{},!0)}function Ne(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],s=n(r);return"function"==typeof s&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=s,()=>{e[t]=r}}catch{return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Ae=new Proxy(Ae,{get:(e,t,n)=>("map"===t&&console.error(Oe),Reflect.get(e,t,n))}));let Pe=Date.now;function je(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0}}function ze(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function $e(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Ue(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}function Fe(e,t,n,r,s){if(!e)return!1;const o=Ue(e);if(!o)return!1;const i=Te(t,n);if(!s){const e=r&&o.matches(r);return i(o)&&!e}const a=Ee(o,i);let c=-1;return!(a<0)&&(r&&(c=Ee(o,Te(null,r))),a>-1&&c<0||a<c)}function Be(e,t){return-2===t.getId(e)}function He(e,t){if(B(e))return!1;const n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||He(e.parentNode,t))}function qe(e){return Boolean(e.changedTouches)}function We(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function Ye(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function Ke(e){return Boolean(e?.shadowRoot)}/[1-9][0-9]{12}/.test(Date.now().toString())||(Pe=()=>(new Date).getTime());class Je{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Ge(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function Ve(e){const t=e.ownerDocument;if(!t)return!1;const n=function(e){let t,n=e;for(;t=Ge(n);)n=t;return n}(e);return t.contains(n)}function Xe(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||Ve(e))}const Qe={};function Ze(e){const t=Qe[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const s=t.contentWindow;s&&s[e]&&(r=s[e]),n.head.removeChild(t)}catch(e){}return Qe[e]=r.bind(window)}function et(...e){return Ze("setTimeout")(...e)}var tt=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(tt||{}),nt=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(nt||{}),rt=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(rt||{}),st=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(st||{}),ot=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(ot||{});let it;function at(e){it=e}function ct(){it=void 0}const ut=e=>{if(!it)return e;return(...t)=>{try{return e(...t)}catch(e){if(it&&!0===it(e))return()=>{};throw e}}};for(var lt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
2+/",dt="undefined"==typeof Uint8Array?[]:new Uint8Array(256),pt=0;pt<64;pt++)dt[lt.charCodeAt(pt)]=pt;class ht{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}function ft(e){try{return e.contentDocument}catch(e){}}function mt(e){try{return e.contentWindow}catch(e){}}class gt{constructor(e){this.doc=e,this.unattachedDoc=null}parse(e){return this.parseWithConstructableStylesheet(e)||this.parseWithDetachedElement(e)}parseWithConstructableStylesheet(e){if("undefined"==typeof CSSStyleSheet||"function"!=typeof CSSStyleSheet.prototype.replaceSync)return null;try{const t=new CSSStyleSheet;t.replaceSync(`x { ${e} }`);const n=t.cssRules[0];return n&&n.type===CSSRule.STYLE_RULE?n.style:null}catch{return null}}parseWithDetachedElement(e){const t=this.getUnattachedDoc().createElement("span");return t.setAttribute("style",e),t.style}getUnattachedDoc(){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}return this.unattachedDoc}}function yt(e){return"__ln"in e}class _t{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let n=0;n<e;n++)t=t?.next||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&yt(e.previousSibling)){const n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&yt(e.nextSibling)&&e.nextSibling.__ln.previous){const n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){const t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const vt=(e,t)=>`${e}@${t}`;class St{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,n=new _t,r=e=>{let t=e,n=-2;for(;-2===n;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},s=s=>{if(!s.parentNode||!Xe(s))return;const o=B(s.parentNode)?this.mirror.getId(Ge(s)):this.mirror.getId(s.parentNode),i=r(s);if(-1===o||-1===i)return n.addNode(s);const a=Me(s,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{We(e,this.mirror)&&!Fe(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),Ye(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),Ke(s)&&this.shadowDomManager.addShadowRoot(s.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{if(Fe(e,this.blockClass,this.blockSelector,this.unblockSelector,!1))return;this.iframeManager.attachIframe(e,t);const n=mt(e);n&&this.canvasManager.addWindow(n),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:n,height:r})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${n}px`,height:`${r}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});a&&(e.push({parentId:o,nextId:i,node:a}),t.add(a.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)kt(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||s(e);for(const e of this.addedSet)wt(this.droppedSet,e)||kt(this.removes,e,this.mirror)?wt(this.movedSet,e)?s(e):this.droppedSet.add(e):s(e);let o=null;for(;n.length;){let e=null;if(o){const t=this.mirror.getId(o.value.parentNode),n=r(o.value);-1!==t&&-1!==n&&(e=o)}if(!e){let t=n.tail;for(;t;){const n=t;if(t=t.previous,n){const t=this.mirror.getId(n.value.parentNode);
2if(-1===r(n.value))continue;if(-1!==t){e=n;break}{const t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const r=t.parentNode.host;if(-1!==this.mirror.getId(r)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}o=e.previous,n.removeNode(e.value),s(e.value)}const i={texts:this.texts.map(e=>({id:this.mirror.getId(e.node),value:e.value})).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{const{attributes:t}=e;if("string"==typeof t.style){const n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+r).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(i.texts.length||i.attributes.length||i.removes.length||i.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(i))},this.processMutation=e=>{if(!Be(e.target,this.mirror))switch(e.type){case"characterData":{const t=e.target.textContent;Fe(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:xe(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,Ue(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let n=e.attributeName,r=e.target.getAttribute(n);if("value"===n){const n=Q(t),s=t.tagName;r=Z(t,s,n);const o=K({maskInputOptions:this.maskInputOptions,tagName:s,type:n});r=J({isMasked:xe(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,o),element:t,value:r,maskInputFn:this.maskInputFn})}if(Fe(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let s=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(ft(t))return;n="rr_src"}if(s||(s={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(s),this.attributeMap.set(e.target,s)),"type"===n&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!we(t.tagName,n)&&(s.attributes[n]=ke(this.doc,G(t.tagName),G(n),r,t,this.maskAttributeFn),"style"===n)){const n=e.oldValue?this.styleDeclarationParser.parse(e.oldValue):null;for(const e of Array.from(t.style)){const r=t.style.getPropertyValue(e),o=t.style.getPropertyPriority(e);r!==(n?.getPropertyValue(e)||"")||o!==(n?.getPropertyPriority(e)||"")?s.styleDiff[e]=""===o?r:[r,o]:s._unchangedStyles[e]=[r,o]}if(n)for(const e of Array.from(n))""===t.style.getPropertyValue(e)&&(s.styleDiff[e]=!1)}break}case"childList":if(Fe(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{const n=this.mirror.getId(t),r=B(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);Fe(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||Be(t,this.mirror)||!function(e,t){return-1!==t.getId(e)}(t,this.mirror)||(this.addedSet.has(t)?(bt(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||He(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[vt(n,r)]?bt(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!(!B(e.target)||!H(e.target))||void 0})),this.mapRemoves.push(t))})}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!this.addedSet.has(e)&&!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if(Be(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[vt(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);Fe(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes&&e.childNodes.forEac
2h(e=>this.genAdds(e)),Ke(e)&&e.shadowRoot.childNodes.forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager","ignoreCSSAttributes"].forEach(t=>{this[t]=e[t]}),this.styleDeclarationParser=new gt(this.doc)}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function bt(e,t){e.delete(t),t.childNodes?.forEach(t=>bt(e,t))}function kt(e,t,n){return 0!==e.length&&function(e,t,n){let r=t.parentNode;for(;r;){const t=n.getId(r);if(e.some(e=>e.id===t))return!0;r=r.parentNode}return!1}(e,t,n)}function wt(e,t){return 0!==e.size&&Et(e,t)}function Et(e,t){const{parentNode:n}=t;return!!n&&(!!e.has(n)||Et(e,n))}const Tt=[];function xt(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function It(e,t){const n=new St;Tt.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const s=window?.Zone?.__symbol__?.("MutationObserver");s&&window[s]&&(r=window[s]);const o=new r(ut(t=>{e.onMutation&&!1===e.onMutation(t)||n.processMutations.bind(n)(t)}));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function Ct({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,sampling:i}){if(!1===i.mouseInteraction)return()=>{};const a=!0===i.mouseInteraction||void 0===i.mouseInteraction?{}:i.mouseInteraction,c=[];let u=null;return Object.keys(rt).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]).forEach(i=>{let a=G(i);const l=(t=>i=>{const a=xt(i);if(Fe(a,r,s,o,!0))return;let c=null,l=t;if("pointerType"in i){switch(i.pointerType){case"mouse":c=st.Mouse;break;case"touch":c=st.Touch;break;case"pen":c=st.Pen}c===st.Touch?rt[t]===rt.MouseDown?l="TouchStart":rt[t]===rt.MouseUp&&(l="TouchEnd"):st.Pen}else qe(i)&&(c=st.Touch);null!==c?(u=c,(l.startsWith("Touch")&&c===st.Touch||l.startsWith("Mouse")&&c===st.Mouse)&&(c=null)):rt[t]===rt.Click&&(c=u,u=null);const d=qe(i)?i.changedTouches[0]:i;if(!d)return;const p=n.getId(a),{clientX:h,clientY:f}=d;ut(e)({type:rt[l],id:p,x:h,y:f,...null!==c&&{pointerType:c}})})(i);if(window.PointerEvent)switch(rt[i]){case rt.MouseDown:case rt.MouseUp:a=a.replace("mouse","pointer");break;case rt.TouchStart:case rt.TouchEnd:return}c.push(Re(a,l,t))}),ut(()=>{c.forEach(e=>e())})}function Mt({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,sampling:i}){return Re("scroll",ut(De(ut(i=>{const a=xt(i);if(!a||Fe(a,r,s,o,!0))return;const c=n.getId(a);if(a===t&&t.defaultView){const n=je(t.defaultView);e({id:c,x:n.left,y:n.top})}else e({id:c,x:a.scrollLeft,y:a.scrollTop})}),i.scroll||100)),t)}const Rt=["INPUT","TEXTAREA","SELECT"],Ot=new WeakMap;function At({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,ignoreClass:i,ignoreSelector:a,maskInputOptions:c,maskInputFn:u,sampling:l,userTriggeredOnInput:d,maskTextClass:p,unmaskTextClass:h,maskTextSelector:f,unmaskTextSelector:m}){function g(e){let n=xt(e);const l=e.isTrusted,g=n&&V(n.tagName);if("OPTION"===g&&(n=n.parentElement),!n||!g||Rt.indexOf(g)<0||Fe(n,r,s,o,!0))return;const _=n;if(_.classList.contains(i)||a&&_.matches(a))return;const v=Q(n);let S=Z(_,g,v),b=!1;const k=K({maskInputOptions:c,tagName:g,type:v}),w=xe(n,p,f,h,m,k);"radio"!==v&&"checkbox"!==v||(b=n.checked),S=J({isMasked:w,element:n,value:S,maskInputFn:u}),y(n,d?{text:S,isChecked:b,userTriggered:l}:{text:S,isChecked:b});const E=n.name;"radio"===v&&E&&b&&t.querySelectorAll(`input[type="radio"][name="${E}
2"]`).forEach(e=>{if(e!==n){const t=J({isMasked:w,element:e,value:Z(e,g,v),maskInputFn:u});y(e,d?{text:t,isChecked:!b,userTriggered:!1}:{text:t,isChecked:!b})}})}function y(t,r){const s=Ot.get(t);if(!s||s.text!==r.text||s.isChecked!==r.isChecked){Ot.set(t,r);const s=n.getId(t);ut(e)({...r,id:s})}}const _=("last"===l.input?["change"]:["input","change"]).map(e=>Re(e,ut(g),t)),v=t.defaultView;if(!v)return()=>{_.forEach(e=>e())};const S=v.Object.getOwnPropertyDescriptor(v.HTMLInputElement.prototype,"value"),b=[[v.HTMLInputElement.prototype,"value"],[v.HTMLInputElement.prototype,"checked"],[v.HTMLSelectElement.prototype,"value"],[v.HTMLTextAreaElement.prototype,"value"],[v.HTMLSelectElement.prototype,"selectedIndex"],[v.HTMLOptionElement.prototype,"selected"]];return S&&S.set&&_.push(...b.map(e=>Le(e[0],e[1],{set(){ut(g)({target:this,isTrusted:!1})}},!1,v))),ut(()=>{_.forEach(e=>e())})}function Dt(e){return function(e,t){if(jt("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||jt("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||jt("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||jt("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){const n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function Lt(e,t,n){let r,s;return e?(e.ownerNode?r=t.getId(e.ownerNode):s=n.getId(e),{styleId:s,id:r}):{}}function Nt({mirror:e,stylesheetManager:t},n){let r=null;r="#document"===n.nodeName?e.getId(n):e.getId(n.host);const s="#document"===n.nodeName?n.defaultView?.Document:n.ownerDocument?.defaultView?.ShadowRoot,o=s?.prototype?Object.getOwnPropertyDescriptor(s?.prototype,"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&s&&o?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){return o.get?.call(this)},set(e){const n=o.set?.call(this,e);if(null!==r&&-1!==r)try{t.adoptStyleSheets(e,r)}catch(e){}return n}}),ut(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})})):()=>{}}function Pt(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=It(e,e.doc));const s=function({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(!1===t.mousemove)return()=>{};const s="number"==typeof t.mousemove?t.mousemove:50,o="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let i,a=[];const c=De(ut(t=>{const n=Date.now()-i;e(a.map(e=>(e.timeOffset-=n,e)),t),a=[],i=null}),o),u=ut(De(ut(e=>{const t=xt(e),{clientX:n,clientY:s}=qe(e)?e.changedTouches[0]:e;i||(i=Pe()),a.push({x:n,y:s,id:r.getId(t),timeOffset:Pe()-i}),c("undefined"!=typeof DragEvent&&e instanceof DragEvent?nt.Drag:e instanceof MouseEvent?nt.MouseMove:nt.TouchMove)}),s,{trailing:!1})),l=[Re("mousemove",u,n),Re("touchmove",u,n),Re("drag",u,n)];return ut(()=>{l.forEach(e=>e())})}(e),o=Ct(e),i=Mt(e),a=function({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return Re("resize",ut(De(ut(()=>{const t=ze(),s=$e();n===t&&r===s||(e({width:Number(s),height:Number(t)}),n=t,r=s)}),200)),t)}(e,{win:n}),c=At(e),u=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:s,sampling:o,doc:i}){const a=ut(i=>De(ut(o=>{const a=xt(o);if(!a||Fe(a,t,n,r,!0))return;const{currentTime:c,volume:u,muted:l,playbackRate:d}=a;e({type:i,id:s.getId(a),currentTime:c,volume:u,muted:l,playbackRate:d})}),o.media||500)),c=[Re("play",a(ot.Play),i),Re("pause",a(ot.Pause),i),Re("seeked",a(ot.Seeked),i),Re("volumechange",a(ot.VolumeChange),i),Re("ratechange",a(ot.RateChange),i)];return ut(()=>{c.forEach(e=>e())})}(e);let l=()=>{},d=()=>{},p=()=>{},h=()=>{};e.recordDOM&&(l=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const s=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:ut((r,s,o)=>{const[i,a]=o,{id:c,styleId:u}=Lt(s,t,n.styleMirror);return(c&&-1!==c||u&&-1!==u)&&e({id:c,styleId:u,adds:[{rule:i,index:a}]}),r.apply(s,o)})});const o=r.CSSStyleSheet.prototype.deleteRule;let i,a;r.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:ut((r,s,o)=>{const[i]=o,{id:a,styleId:c}=Lt(s,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:i}]}),r.apply(s,o)})}),r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:ut((r,s,o)=>{const[i]=o,{id:a,styleId:c}=Lt(s,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replace:i}),r.apply(s,o)})})),r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:ut((r,s,o)=>{const[i]=o,{id:a,styleId:c}=Lt(s,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replaceSync:i}),r.apply(s,o)})}));const c={};zt("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(zt("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),zt("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),zt("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const u={};
vendor: 3,912 bytes, line 2
2return Object.entries(c).forEach(([r,s])=>{u[r]={insertRule:s.prototype.insertRule,deleteRule:s.prototype.deleteRule},s.prototype.insertRule=new Proxy(u[r].insertRule,{apply:ut((r,s,o)=>{const[i,a]=o,{id:c,styleId:u}=Lt(s.parentStyleSheet,t,n.styleMirror);return(c&&-1!==c||u&&-1!==u)&&e({id:c,styleId:u,adds:[{rule:i,index:[...Dt(s),a||0]}]}),r.apply(s,o)})}),s.prototype.deleteRule=new Proxy(u[r].deleteRule,{apply:ut((r,s,o)=>{const[i]=o,{id:a,styleId:c}=Lt(s.parentStyleSheet,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:[...Dt(s),i]}]}),r.apply(s,o)})})}),ut(()=>{r.CSSStyleSheet.prototype.insertRule=s,r.CSSStyleSheet.prototype.deleteRule=o,i&&(r.CSSStyleSheet.prototype.replace=i),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEach(([e,t])=>{t.prototype.insertRule=u[e].insertRule,t.prototype.deleteRule=u[e].deleteRule})})}(e,{win:n}),d=Nt(e,e.doc),p=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:s}){const o=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:ut((s,i,a)=>{const[c,u,l]=a;if(n.has(c))return o.apply(i,[c,u,l]);const{id:d,styleId:p}=Lt(i.parentRule?.parentStyleSheet,t,r.styleMirror);return(d&&-1!==d||p&&-1!==p)&&e({id:d,styleId:p,set:{property:c,value:u,priority:l},index:Dt(i.parentRule)}),s.apply(i,a)})});const i=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:ut((s,o,a)=>{const[c]=a;if(n.has(c))return i.apply(o,[c]);const{id:u,styleId:l}=Lt(o.parentRule?.parentStyleSheet,t,r.styleMirror);return(u&&-1!==u||l&&-1!==l)&&e({id:u,styleId:l,remove:{property:c},index:Dt(o.parentRule)}),s.apply(o,a)})}),ut(()=>{s.CSSStyleDeclaration.prototype.setProperty=o,s.CSSStyleDeclaration.prototype.removeProperty=i})}(e,{win:n}),e.collectFonts&&(h=function({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],s=new WeakMap,o=n.FontFace;n.FontFace=function(e,t,n){const r=new o(e,t,n);return s.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};const i=Ne(t.fonts,"add",function(t){return function(n){return et(ut(()=>{const t=s.get(n);t&&(e(t),s.delete(n))}),0),t.apply(this,[n])}});return r.push(()=>{n.FontFace=o}),r.push(i),ut(()=>{r.forEach(e=>e())})}(e)));const f=function(e){const{doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,selectionCb:i}=e;let a=!0;const c=ut(()=>{const e=t.getSelection();if(!e||a&&e?.isCollapsed)return;a=e.isCollapsed||!1;const c=[],u=e.rangeCount||0;for(let t=0;t<u;t++){const i=e.getRangeAt(t),{startContainer:a,startOffset:u,endContainer:l,endOffset:d}=i;Fe(a,r,s,o,!0)||Fe(l,r,s,o,!0)||c.push({start:n.getId(a),startOffset:u,end:n.getId(l),endOffset:d})}i({ranges:c})});return c(),Re("selectionchange",c)}(e),m=function({doc:e,customElementCb:t}){const n=e.defaultView;return n&&n.customElements?Ne(n.customElements,"define",function(e){return function(n,r,s){try{t({define:{name:n}})}catch(e){}return e.apply(this,[n,r,s])}}):()=>{}}(e),g=[];for(const t of e.plugins)g.push(t.observer(t.callback,n,t.options));return ut(()=>{Tt.forEach(e=>e.reset()),r?.disconnect(),s(),o(),i(),a(),c(),u(),l(),d(),p(),h(),f(),m(),g.forEach(e=>e())})}function jt(e){return void 0!==window[e]}function zt(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class $t{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){const s=n||this.getIdToRemoteIdMap(e),o=r||this.getRemoteIdToIdMap(e);let i=s.get(t);return i||(i=this.generateIdFn(),s.set(t,i),o.set(i,t)),i}getIds(e,t){const n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,n,r))}
2getRemoteId(e,t,n){const r=n||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;const s=r.get(t);return s||-1}getRemoteIds(e,t){const n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,n))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class Ut{constructor(){this.crossOriginIframeMirror=new $t(ce),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class Ft{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new $t(ce),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new $t(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0);const t=mt(e);t&&this.crossOriginIframeMap.set(t,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&mt(e)?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(e);const n=ft(e);n&&n.adoptedStyleSheets&&n.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(n.adoptedStyleSheets,this.mirror.getId(n))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin)return;if(!e.source)return;const n=this.crossOriginIframeMap.get(e.source);if(!n)return;const r=this.transformCrossOriginEvent(n,t.data.event);r&&this.wrappedEmit(r,t.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case tt.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:tt.IncrementalSnapshot,data:{source:nt.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case tt.Meta:case tt.Load:case tt.DomContentLoaded:return!1;case tt.Plugin:return t;case tt.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case tt.IncrementalSnapshot:switch(t.data.source){case nt.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)}),t.data.removes.forEach(t=>{this.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,["id"])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case nt.Drag:case nt.TouchMove:case nt.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case nt.ViewportResize:return!1;case nt.MediaInteraction:case nt.MouseInteraction:case nt.Scroll:case nt.CanvasMutation:case nt.Input:return this.replaceIds(t.data,e,["id"]),t;case nt.StyleSheetRule:case nt.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case nt.Font:return t;case nt.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case nt.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),t.data.styles?.forEach(t=>{this.replaceStyleIds(t,e,["styleId"])}),t}}return!1}replace(e,t,n,r){for(const s of r)(Array.isArray(t[s])||"number"==typeof t[s])&&(Array.isArray(t[s])?t[s]=e.getIds(n,t[s]):t[s]=e.getId(n,t[s]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEac
2h(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===F.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class Bt{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class Ht{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!H(e))return;if(this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);const n=It({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(Mt({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),et(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(Nt({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){const t=ft(e),n=mt(e);t&&n&&this.patchAttachShadow(n.Element,t)}patchAttachShadow(e,t){const n=this;this.restoreHandlers.push(Ne(e.prototype,"attachShadow",function(e){return function(r){const s=e.call(this,r);return this.shadowRoot&&Xe(this)&&n.addShadowRoot(this.shadowRoot,t),s}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class qt{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new Je,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;const n={id:t,styleIds:[]},r=[];for(const t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),r.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:W(e),index:t}))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class Wt{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){const n=this.nodeMap.get(e);return n&&Array.from(n).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,function(...e){Ze("requestAnimationFrame")(...e)}(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}let Yt,Kt;try{if(2!==Array.from([1],e=>2*e)[0]){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const Jt=new Y;function Gt(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:s="rr-block",blockSelector:o=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:h=null,inlineStylesheet:f=!0,maskAllInputs:m,maskInputOptions:g,slimDOMOptions:y,maskAttributeFn:_,maskInputFn:v,maskTextFn:S,maxCanvasSize:b=null,packFn:k,sampling:w={},dataURLOptions:E={},mousemoveWait:T,recordDOM:x=!0,recordCanvas:I=!1,recordCrossOriginIframes:C=!1,recordAfter:M=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:R=!1,collectFonts:O=!1,inlineImages:A=!1,plugins:D,keepIframeSrcFn:L=()=>!1,ignoreCSSAttributes:N=new Set([]),errorHandler:P,onMutation:j,getCanvasManager:z}=e;at(P);const $=!C||window.parent===window;let U=!1;if(!$)try{window.parent.document&&(U=!1)}catch(e){U=!0}if($&&!t)throw new Error("emit function is required");if(!$&&!U)return()=>{};void 0!==T&&void 0===w.mousemove&&(w.mousemove=T),Jt.reset();const F=!0===m?{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!==g?g:{},B=!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 H;!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}();let q=0;const W=e=>{for(const t of D||[])t.eventProcessor&&(e=t.eventProcessor(e));return k&&!U&&(e=k(e)),e};Yt=(e,s)=>{const o=e;if(o.timestamp=Pe(),!Tt[0]?.isFrozen()||o.type===tt.FullSnapshot||o.type===tt.IncrementalSnapshot&&o.data.source===nt.Mutation||Tt.forEach(e
2=>e.unfreeze()),$)t?.(W(o),s);else if(U){const e={type:"rrweb",event:W(o),origin:window.location.origin,isCheckout:s};window.parent.postMessage(e,"*")}if(o.type===tt.FullSnapshot)H=o,q=0;else if(o.type===tt.IncrementalSnapshot){if(o.data.source===nt.Mutation&&o.data.isAttachIframe)return;q++;const e=r&&q>=r,t=n&&H&&o.timestamp-H.timestamp>n;(e||t)&&te(!0)}};const K=e=>{Yt({type:tt.IncrementalSnapshot,data:{source:nt.Mutation,...e}})},J=e=>Yt({type:tt.IncrementalSnapshot,data:{source:nt.Scroll,...e}}),G=e=>Yt({type:tt.IncrementalSnapshot,data:{source:nt.CanvasMutation,...e}}),V=new qt({mutationCb:K,adoptedStyleSheetCb:e=>Yt({type:tt.IncrementalSnapshot,data:{source:nt.AdoptedStyleSheet,...e}})}),X="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new Ut:new Ft({mirror:Jt,mutationCb:K,stylesheetManager:V,recordCrossOriginIframes:C,wrappedEmit:Yt});for(const e of D||[])e.getMirror&&e.getMirror({nodeMirror:Jt,crossOriginIframeMirror:X.crossOriginIframeMirror,crossOriginIframeStyleMirror:X.crossOriginIframeStyleMirror});const Q=new Wt,Z=function(e,t){try{return e?e(t):new ht}catch{return console.warn("Unable to initialize CanvasManager"),new ht}}(z,{mirror:Jt,win:window,mutationCb:e=>Yt({type:tt.IncrementalSnapshot,data:{source:nt.CanvasMutation,...e}}),recordCanvas:I,blockClass:s,blockSelector:o,unblockSelector:i,maxCanvasSize:b,sampling:w.canvas,dataURLOptions:E,errorHandler:P}),ee="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new Bt:new Ht({mutationCb:K,scrollCb:J,bypassOptions:{onMutation:j,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:h,inlineStylesheet:f,maskInputOptions:F,dataURLOptions:E,maskAttributeFn:_,maskTextFn:S,maskInputFn:v,recordCanvas:I,inlineImages:A,sampling:w,slimDOMOptions:B,iframeManager:X,stylesheetManager:V,canvasManager:Z,keepIframeSrcFn:L,processedNodeManager:Q,ignoreCSSAttributes:N},mirror:Jt}),te=(e=!1)=>{if(!x)return;Yt({type:tt.Meta,data:{href:window.location.href,width:$e(),height:ze()}},e),V.reset(),ee.init(),Tt.forEach(e=>e.lock());const t=function(e,t){const{mirror:n=new Y,blockClass:r="rr-block",blockSelector:s=null,unblockSelector:o=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:y,slimDOM:_=!1,dataURLOptions:v,preserveWhiteSpace:S,onSerialize:b,onIframeLoad:k,iframeLoadTimeout:w,onBlockedImageLoad:E,onStylesheetLoad:T,stylesheetLoadTimeout:x,keepIframeSrcFn:I=()=>!1,ignoreCSSAttributes:C=new Set([])}=t||{};return Me(e,{doc:e,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,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:y,slimDOMOptions:!0===_||"all"===_?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===_,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===_?{}:_,dataURLOptions:v,inlineImages:p,recordCanvas:h,preserveWhiteSpace:S,onSerialize:b,onIframeLoad:k,iframeLoadTimeout:w,onBlockedImageLoad:E,onStylesheetLoad:T,stylesheetLoadTimeout:x,keepIframeSrcFn:I,newlyAddedElement:!1,ignoreCSSAttributes:C})}(document,{mirror:Jt,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:h,inlineStylesheet:f,maskAllInputs:F,maskAttributeFn:_,maskInputFn:v,maskTextFn:S,slimDOM:B,dataURLOptions:E,recordCanvas:I,inlineImages:A,onSerialize:e=>{We(e,Jt)&&X.addIframe(e),Ye(e,Jt)&&V.trackLinkElement(e),Ke(e)&&ee.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{X.attachIframe(e,t);const n=mt(e);n&&Z.addWindow(n),ee.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{V.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:n,height:r})=>{K({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${n}px`,height:`${r}px`}}}]})},keepIframeSrcFn:L,ignoreCSSAttributes:N});if(!t)return console.warn("Failed to snapshot the document");Yt({type:tt.FullSnapshot,data:{node:t,initialOffset:je(window)}}
2),Tt.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&V.adoptStyleSheets(document.adoptedStyleSheets,Jt.getId(document))};Kt=te;try{const e=[],t=e=>ut(Pt)({onMutation:j,mutationCb:K,mousemoveCb:(e,t)=>Yt({type:tt.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>Yt({type:tt.IncrementalSnapshot,data:{source:nt.MouseInteraction,...e}}),scrollCb:J,viewportResizeCb:e=>Yt({type:tt.IncrementalSnapshot,data:{source:nt.ViewportResize,...e}}),inputCb:e=>Yt({type:tt.IncrementalSnapshot,data:{source:nt.Input,...e}}),mediaInteractionCb:e=>Yt({type:tt.IncrementalSnapshot,data:{source:nt.MediaInteraction,...e}}),styleSheetRuleCb:e=>Yt({type:tt.IncrementalSnapshot,data:{source:nt.StyleSheetRule,...e}}),styleDeclarationCb:e=>Yt({type:tt.IncrementalSnapshot,data:{source:nt.StyleDeclaration,...e}}),canvasMutationCb:G,fontCb:e=>Yt({type:tt.IncrementalSnapshot,data:{source:nt.Font,...e}}),selectionCb:e=>{Yt({type:tt.IncrementalSnapshot,data:{source:nt.Selection,...e}})},customElementCb:e=>{Yt({type:tt.IncrementalSnapshot,data:{source:nt.CustomElement,...e}})},blockClass:s,ignoreClass:a,ignoreSelector:c,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:h,maskInputOptions:F,inlineStylesheet:f,sampling:w,recordDOM:x,recordCanvas:I,inlineImages:A,userTriggeredOnInput:R,collectFonts:O,doc:e,maskAttributeFn:_,maskInputFn:v,maskTextFn:S,keepIframeSrcFn:L,blockSelector:o,unblockSelector:i,slimDOMOptions:B,dataURLOptions:E,mirror:Jt,iframeManager:X,stylesheetManager:V,shadowDomManager:ee,processedNodeManager:Q,canvasManager:Z,ignoreCSSAttributes:N,plugins:D?.filter(e=>e.observer)?.map(e=>({observer:e.observer,options:e.options,callback:t=>Yt({type:tt.Plugin,data:{plugin:e.name,payload:t}})}))||[]},{});X.addLoadListener(n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}});const n=()=>{te(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(Re("DOMContentLoaded",()=>{Yt({type:tt.DomContentLoaded,data:{}}),"DOMContentLoaded"===M&&n()})),e.push(Re("load",()=>{Yt({type:tt.Load,data:{}}),"load"===M&&n()},window))),()=>{e.forEach(e=>e()),Q.destroy(),Kt=void 0,ct()}}catch(e){console.warn(e)}}var Vt,Xt;Gt.mirror=Jt,Gt.takeFullSnapshot=function(e){if(!Kt)throw new Error("please take full snapshot after start recording");Kt(e)},(Xt=Vt||(Vt={}))[Xt.NotStarted=0]="NotStarted",Xt[Xt.Running=1]="Running",Xt[Xt.Stopped=2]="Stopped";function Qt(e){return e>9999999999?e:1e3*e}function Zt(e){return e>9999999999?e/1e3:e}function en(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:tt.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:(0,s.S8)(t,10,1e3)}}),"console"===t.category)))}function tn(e){return e.closest("button,a")||e}function nn(e){const t=rn(e);return t&&t instanceof Element?tn(t):t}function rn(e){return function(e){return"object"==typeof e&&!!e&&"target"in e}(e)?e.target:e}let sn;function on(e){return sn||(sn=[],(0,o.GS)(A,"open",function(e){return function(...t){if(sn)try{sn.forEach(e=>e())}catch{}return e.apply(A,t)}})),sn.push(e),()=>{const t=sn?sn.indexOf(e):-1;t>-1&&sn.splice(t,1)}}const an=new Set([nt.Mutation,nt.StyleSheetRule,nt.StyleDeclaration,nt.AdoptedStyleSheet,nt.CanvasMutation,nt.Selection,nt.MediaInteraction]);class cn{constructor(e,t,n=en){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scrollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){const e=on(()=>{this._lastMutation=ln()});this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(function(e,t){if(!un.includes(e.tagName))return!0;if("INPUT"===e.tagName&&!["submit","button"].includes(e.getAttribute("type")||""))return!0;
2if("A"===e.tagName&&(e.hasAttribute("download")||e.hasAttribute("target")&&"_self"!==e.getAttribute("target")))return!0;if(t&&e.matches(t))return!0;return!1}(t,this._ignoreSelector)||!function(e){return!(!e.data||"number"!=typeof e.data.nodeId||!e.timestamp)}(e))return;const n={timestamp:Zt(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===n.node&&Math.abs(e.timestamp-n.timestamp)<1)||(this._clicks.push(n),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=Zt(e)}registerScroll(e=Date.now()){this._lastScroll=Zt(e)}registerClick(e){const t=tn(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach(e=>{e.clickCount++})}_getClicks(e){return this._clicks.filter(t=>t.node===e)}_checkClicks(){const e=[],t=ln();this._clicks.forEach(n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)});for(const t of e){const e=this._clicks.indexOf(t);e>-1&&(this._generateBreadcrumbs(t),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){const t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,s=!n&&!r,{clickCount:o,clickBreadcrumb:i}=e;if(s){const n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",s={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.slowClickDetected",data:{...i.data,url:A.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:o||1}};return void this._addBreadcrumbEvent(t,s)}if(o>1){const e={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.multiClick",data:{...i.data,url:A.location.href,route:t.getCurrentRoute(),clickCount:o,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=(0,T.wg)(()=>this._checkClicks(),1e3)}}const un=["A","BUTTON","INPUT"];function ln(){return Date.now()/1e3}function dn(e,t){try{if(!function(e){return 3===e.type}(t))return;const{source:n}=t.data;if(an.has(n)&&e.registerMutation(t.timestamp),n===nt.Scroll&&e.registerScroll(t.timestamp),function(e){return e.data.source===nt.MouseInteraction}(t)){const{type:n,id:r}=t.data,s=Gt.mirror.getNode(r);s instanceof HTMLElement&&n===rt.Click&&e.registerClick(s)}}catch{}}function pn(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var hn=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(hn||{});const fn=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function mn(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(fn.has(n)){let r=n;"data-testid"!==n&&"data-test-id"!==n||(r="testId"),t[r]=e[n]}return t}const gn=e=>t=>{if(!e.isEnabled())return;const n=function(e){const{target:t,message:n}=function(e){const t="click"===e.name;let n,r=null;try{r=t?nn(e.event):rn(e.event),n=(0,x.H)(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}(e);return pn({category:`ui.${e.name}`,...yn(t,n)})}(t);if(!n)return;const r="click"===t.name,s=r?t.event:void 0;var o,i,a;!(r&&e.clickDetector&&s?.target)||s.altKey||s.metaKey||s.ctrlKey||s.shiftKey||(o=e.clickDetector,i=n,a=nn(t.event),o.handleClick(i,a)),en(e,n)};function yn(e,t){const n=Gt.mirror.getId(e),r=n&&Gt.mirror.getNode(n),s=r&&Gt.mirror.getMeta(r),o=s&&function(e){return e.type===hn.Element}(s)?s:null;return{message:t,data:o?{nodeId:n,node:{id:n,tagName:o.tagName,textContent:Array.from(o.childNodes).map(e=>
2e.type===hn.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(""),attributes:mn(o.attributes)}}:{}}}function _n(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=function(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:s,key:o,target:i}=e;if(!i||function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}(i)||!o)return null;const a=t||r||s,c=1===o.length;if(!a&&c)return null;const u=(0,x.H)(i,{maxStringLength:200})||"<unknown>",l=yn(i,u);return pn({category:"ui.keyDown",message:u,data:{...l.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:s,key:o}})}(t);n&&en(e,n)}const vn={resource:function(e){const{entryType:t,initiatorType:n,name:r,responseEnd:s,startTime:o,decodedBodySize:i,encodedBodySize:a,responseStatus:c,transferSize:u}=e;if(["fetch","xmlhttprequest"].includes(n))return null;return{type:`${t}.${n}`,start:kn(o),end:kn(s),name:r,data:{size:u,statusCode:c,decodedBodySize:i,encodedBodySize:a}}},paint:function(e){const{duration:t,entryType:n,name:r,startTime:s}=e,o=kn(s);return{type:n,name:r,start:o,end:o+t,data:void 0}},navigation:function(e){const{entryType:t,name:n,decodedBodySize:r,duration:s,domComplete:o,encodedBodySize:i,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,domInteractive:u,loadEventStart:l,loadEventEnd:d,redirectCount:p,startTime:h,transferSize:f,type:m}=e;if(0===s)return null;return{type:`${t}.${m}`,start:kn(h),end:kn(o),name:n,data:{size:f,decodedBodySize:r,encodedBodySize:i,duration:s,domInteractive:u,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:l,loadEventEnd:d,domComplete:o,redirectCount:p}}}};function Sn(e,t){return({metric:n})=>{t.replayPerformanceEntries.push(e(n))}}function bn(e){const t=vn[e.entryType];return t?t(e):null}function kn(e){return(((0,i.k3)()||A.performance.timeOrigin)+e)/1e3}function wn(e){const t=e.entries[e.entries.length-1];return In(e,"largest-contentful-paint",t?.element?[t.element]:void 0)}function En(e){return void 0!==e.sources}function Tn(e){const t=[],n=[];for(const r of e.entries)if(En(r)){const e=[];for(const t of r.sources)if(t.node){n.push(t.node);const r=Gt.mirror.getId(t.node);r&&e.push(r)}t.push({value:r.value,nodeIds:e.length?e:void 0})}return In(e,"cumulative-layout-shift",n,t)}function xn(e){const t=e.entries[e.entries.length-1];return In(e,"interaction-to-next-paint",t?.target?[t.target]:void 0)}function In(e,t,n,r){const s=e.value,o=e.rating,i=kn(s);return{type:"web-vital",name:t,start:i,end:i,data:{value:s,size:s,rating:o,nodeIds:n?n.map(e=>Gt.mirror.getId(e)):void 0,attributions:r}}}const Cn="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;const Mn=["log","warn","error"],Rn="[Replay] ";function On(e,t="info"){(0,a.Z)({category:"console",data:{logger:"replay"},level:t,message:`${Rn}${e}`},{level:t})}const An=function(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:n=>{e=!!n.captureExceptions,t=!!n.traceInternals}};return Cn?(Mn.forEach(e=>{n[e]=(...n)=>{c.Yz[e](Rn,...n),t&&On(n.join(""),(0,u.t)(e))}}),n.exception=(r,...s)=>{s.length&&n.error&&n.error(...s),c.Yz.error(Rn,r),e?(0,l.Cp)(r,{mechanism:{handled:!0,type:"auto.function.replay.debug"}}):t&&On(r,"error")},n.infoTick=(...e)=>{c.Yz.log(Rn,...e),t&&setTimeout(()=>On(e[0]),0)}):Mn.forEach(e=>{n[e]=()=>{}}),n}();class Dn extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class Ln{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){const t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>j)throw new Dn;this.events.push(e)}finish(){return new Promise(e=>{const t=this.events;this.clear(),e(JSON.stringify(t))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let e=null;for(const{timestamp:t}of this.events)(null===e||t<e)&&(e=t);return null===e?e:Qt(e)}}class Nn{constructor(e){this._onMessage=({data:e})=>{const t=e;if("number"!=typeof t.id)return;const n=this._pending.get(t.id);
2if(n&&n.method===t.method){if(this._pending.delete(t.id),!t.success)return Cn&&An.error("Error in compression worker: ",t.response),void n.reject(new Error("Error in compression worker"));n.resolve(t.response)}},this._worker=e,this._id=0,this._pending=new Map,this._worker.addEventListener("message",this._onMessage)}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((e,t)=>{this._worker.addEventListener("message",({data:n})=>{n.success?e():(Cn&&An.warn("Received worker message with unsuccessful status",n),t(new Error("Received worker message with unsuccessful status")))},{once:!0}),this._worker.addEventListener("error",e=>{Cn&&An.warn("Failed to load Replay compression worker",e),t(new Error(`Failed to load Replay compression worker: ${e instanceof ErrorEvent&&e.message?e.message:"Unknown error. This can happen due to CSP policy restrictions, network issues, or the worker script failing to load."}`))},{once:!0})})),this._ensureReadyPromise}destroy(){Cn&&An.log("Destroying compression worker"),this._worker.removeEventListener("message",this._onMessage),this._pending.forEach(e=>e.reject(new Error("Worker destroyed"))),this._pending.clear(),this._worker.terminate()}postMessage(e,t){const n=this._getAndIncrementId();return new Promise((r,s)=>{this._pending.set(n,{method:e,resolve:r,reject:s});try{this._worker.postMessage({id:n,method:e,arg:t})}catch(e){this._pending.delete(n),s(e)}})}_getAndIncrementId(){return this._id++}}class Pn{constructor(e){this._worker=new Nn(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){const t=Qt(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);const n=JSON.stringify(e);return this._totalSize+=n.length,this._totalSize>j?Promise.reject(new Dn):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{Cn&&An.exception(e,'Sending "clear" message to worker failed',e)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){const e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class jn{constructor(e){this._fallback=new Ln,this._compression=new Pn(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}set waitForCheckout(e){this._used.waitForCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return void(Cn&&An.exception(e,"Failed to load the compression worker, falling back to simple buffer"))}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:t,waitForCheckout:n}=this._fallback,r=[];for(const t of e)r.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=n,this._used=this._compression;try{await Promise.all(r),this._fallback.clear()}catch(e){Cn&&An.exception(e,"Failed to add events when switching buffers.")}}}function zn({useCompression:e,workerUrl:t}){if(e&&window.Worker){const e=function(e){try{const t=e||function(){if("undefined"==typeof __SENTRY_EXCLUDE_REPLAY_WORKER__||!__SENTRY_EXCLUDE_REPLAY_WORKER__)return function(){const e=new Blob(['
vendor: 10,329 bytes, line 2
2var 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]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new 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,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(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=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,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,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n: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 s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new 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[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(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[s[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=w,P=p,Q=y,R=g;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,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];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}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new 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||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++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|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=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(L(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 s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+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.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();function q(t,n){n||(n={});var r=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}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return 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&&O(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)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(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=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const 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 B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[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});
2']);return URL.createObjectURL(e)}();return""}();if(!t)return;Cn&&An.log("Using compression worker"+(e?` from ${e}`:""));const n=new Worker(t);return new jn(n)}catch(e){Cn&&An.exception(e,"Failed to create compression worker")}}(t);if(e)return e}return Cn&&An.log("Using simple buffer"),new Ln}function $n(){try{return"sessionStorage"in A&&!!A.sessionStorage}catch{return!1}}function Un(e){!function(){if(!$n())return;try{A.sessionStorage.removeItem(D)}catch{}}(),e.session=void 0}function Fn(e){return void 0!==e&&Math.random()<e}function Bn(e){if($n())try{A.sessionStorage.setItem(D,JSON.stringify(e))}catch{}}function Hn(e){const t=Date.now();return{id:e.id||(0,d.eJ)(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId,dirty:e.dirty||!1}}function qn({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const s=function(e,t){return Fn(e)?"session":!!t&&"buffer"}(e,t),o=Hn({sampled:s,previousSessionId:r});return n&&Bn(o),o}function Wn(e,t,n=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=n}function Yn(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!!function(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return Wn(e.started,t,r)||Wn(e.lastActivity,n,r)}(e,{sessionIdleExpire:t,maxReplayDuration:n})&&("buffer"!==e.sampled||0!==e.segmentId)}function Kn({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){const s=r.stickySession&&function(){if(!$n())return null;try{const e=A.sessionStorage.getItem(D);if(!e)return null;const t=JSON.parse(e);return Cn&&An.infoTick("Loading existing session"),Hn(t)}catch{return null}}();return s?Yn(s,{sessionIdleExpire:e,maxReplayDuration:t})?(Cn&&An.infoTick("Session in sessionStorage is expired, creating new one..."),qn(r,{previousSessionId:s.id})):s:(Cn&&An.infoTick("Creating new session"),qn(r,{previousSessionId:n}))}function Jn(e,t,n){return!!Vn(e,t)&&(Gn(e,t,n),!0)}async function Gn(e,t,n){const{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;const s="buffer"===e.recordingMode;try{n&&s&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const o=function(e,t){try{if("function"==typeof t&&function(e){return e.type===tt.Custom}(e))return t(e)}catch(e){return Cn&&An.exception(e,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}(t,e.getOptions().beforeAddRecordingEvent);if(!o)return;return await r.addEvent(o)}catch(t){const n=t&&t instanceof Dn,o=n?"eventBufferOverflow":"eventBufferError",i=(0,p.KU)();if(i){const e=n?"buffer_overflow":"internal_sdk_error";i.recordDroppedEvent(e,"replay")}if(n&&s)return r.clear(),r.waitForCheckout=!0,null;e.handleException(t),await e.stop({reason:o})}}function Vn(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=Qt(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now())&&(!(n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(Cn&&An.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1))}function Xn(e,t){const n=e.getContext();n.traceIds.size<100&&n.traceIds.add(t)}function Qn(e){return!e.type}function Zn(e){return"transaction"===e.type}function er(e){return"feedback"===e.type}function tr(e){return(t,n)=>{if(!e.isEnabled()||!Qn(t)&&!Zn(t))return;const r=n.statusCode;!r||r<200||r>=300||(Zn(t)?function(e,t){const n=t.contexts?.trace?.trace_id;n&&Xn(e,n)}(e,t):function(e,t){const n=e.getContext();t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id);if("buffer"!==e.recordingMode||!t.tags?.replayId)return;const{beforeErrorSampling:r}=e.getOptions();if("function"==typeof r&&!r(t))return;(0,T.wg)(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}})}(e,t))}}function nr(e){return t=>{e.isEnabled()&&Qn(t)&&function(e,t){const n=t.exception?.values?.[0]?.value;if("string"!=typeof n)return;if(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i)){en(e,pn({category:"replay.hydrate-error",data:{url:(0,f.$N)()}}))}}(e,t)}}function rr(e){const t=(0,p.KU)();t&&t.on("beforeAddBreadcrumb",t=>function(e,t){if(!e.isEnabled()||!sr(t))return;const n=function(e){if(!sr(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui."))return null;if("console"===e.category)return function(e){const t=e.data?.arguments;if(!Array.isArray(t)||0===t.length)return pn(e);let n=!1;const r=t.map(e=>{if(!e)return e;if("string"==typeof e)return e.length>P?(n=!0,`${e.slice(0,P)}â¦`):e;if("object"==typeof e)try{const t=(0,s.S8)(e,7);return JSON.stringify(t).length>P?(n=!0,`${JSON.stringify(t,null,2).slice(0,P)}â¦`):t}catch{}return e});return pn({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(e);return pn(e)}(t);
2n&&en(e,n)}(e,t))}function sr(e){return!!e.category}function or(){const e=(0,p.o5)().getPropagationContext().dsc;e&&delete e.replay_id;const t=(0,h.Bk)();if(t){delete(0,m.k1)(t).replay_id}}function ir(e){const t=(0,p.o5)().getPropagationContext().dsc;t&&(t.replay_id=e);const n=(0,h.Bk)();if(n){(0,m.k1)(n).replay_id=e}}function ar(e){return Object.assign((t,n)=>{if(e.session&&Yn(e.session,{maxReplayDuration:e.getOptions().maxReplayDuration,sessionIdleExpire:e.timeouts.sessionIdleExpire})&&or(),!e.isEnabled()||e.isPaused())return t;if(function(e){return"replay_event"===e.type}(t))return delete t.breadcrumbs,t;if(!Qn(t)&&!Zn(t)&&!er(t))return t;if(!e.checkAndHandleExpiredSession())return or(),t;if(er(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),function(e,t){e.triggerUserActivity(),e.addUpdate(()=>!t.timestamp||(e.throttledAddEvent({type:tt.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1))}(e,t),t;if(function(e,t){return!(e.type||!e.exception?.values?.length||!t.originalException?.__rrweb__)}(t,n)&&!e.getOptions()._experiments.captureExceptions)return Cn&&An.log("Ignoring error from rrweb internals",t),null;const r=function(e,t){return"buffer"===e.recordingMode&&t.message!==L&&!(!t.exception||t.type)&&Fn(e.getOptions().errorSampleRate)}(e,t);if((r||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),r&&"buffer"===e.recordingMode&&"buffer"===e.session?.sampled){const t=e.session;t.dirty=!0,e.getOptions().stickySession&&Bn(t)}return t},{id:"Replay"})}function cr(e,t){return t.map(({type:t,start:n,end:r,name:s,data:o})=>{const i=e.throttledAddEvent({type:tt.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:s,startTimestamp:n,endTimestamp:r,data:o}}});return"string"==typeof i?Promise.resolve(null):i})}function ur(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(cr(e,[n]),!1)))}}function lr(e,t){e.isEnabled()&&null!==t&&(function(e,t){return(!Cn||!e.getOptions()._experiments.traceInternals)&&(0,g.A)(t,(0,p.KU)())}(e,t.name)||e.addUpdate(()=>(cr(e,[t]),!0)))}function dr(e){if(!e)return;const t=new TextEncoder;try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=(0,C.P4)(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function pr(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function hr(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function fr(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:s,method:o,statusCode:i,request:a,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:s,data:{method:o,statusCode:i,request:a,response:c}}}function mr(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function gr(e,t,n){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:s,warnings:o}=function(e){if(!e||"string"!=typeof e)return{body:e};const t=e.length>N,n=function(e){const t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}(e);if(t){const t=e.slice(0,N);return n?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}â¦`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}(n);return r.body=s,o?.length&&(r._meta={warnings:o}),r}function yr(e,t){return Object.entries(e).reduce((n,[r,s])=>{const o=r.toLowerCase();return t.includes(o)&&e[r]&&(n[o]=s),n},{})}function _r(e,t){const n=function(e,t=A.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(A.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;if(!e.endsWith("/")&&r.endsWith("/"))return r.slice(0,-1);return r}(e);return(0,y.Xr)(n,t)}async function vr(e,t,n){try{const r=await async function(e,t,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:o=r}=t,{url:i,method:a,status_code:c=0,request_body_size:u,response_body_size:l}=e.data,d=_r(i,n.networkDetailAllowUrls)&&!_r(i,n.networkDetailDenyUrls),p=d?function({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const s=n?function(e,t){if(1===e.length&&"string"!=typeof e[0])return br(e[0],t);
2if(2===e.length)return br(e[1],t);return{}}(n,t):{};if(!e)return gr(s,r,void 0);const o=(0,C.Gv)(n),[i,a]=(0,C.sY)(o,An),c=gr(s,r,i);if(a)return hr(c,a);return c}(n,t.input,u):mr(u),h=await async function(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,s){if(!e&&void 0!==s)return mr(s);const o=r?Sr(r.headers,n):{};if(!r||!t&&void 0!==s)return gr(o,s,void 0);const[i,a]=await async function(e){const t=function(e){try{return e.clone()}catch(e){Cn&&An.exception(e,"Failed to clone response body")}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{const e=await function(e){return new Promise((t,n)=>{const r=(0,T.wg)(()=>n(new Error("Timeout while trying to read response body")),500);(async function(e){return await e.text()})(e).then(e=>t(e),e=>n(e)).finally(()=>clearTimeout(r))})}(t);return[e]}catch(e){return e instanceof Error&&e.message.indexOf("Timeout")>-1?(Cn&&An.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(Cn&&An.exception(e,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}(r),c=function(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:s}){try{const o=e?.length&&void 0===n?dr(e):n;return r?gr(s,o,t?e:void 0):mr(o)}catch(e){return Cn&&An.exception(e,"Failed to serialize response body"),gr(s,n,void 0)}}(i,{networkCaptureBodies:t,responseBodySize:s,captureDetails:e,headers:o});if(a)return hr(c,a);return c}(d,n,t.response,l);return{startTimestamp:s,endTimestamp:o,url:i,method:a,statusCode:c,request:p,response:h}}(e,t,n),s=fr("resource.fetch",r);lr(n.replay,s)}catch(e){Cn&&An.exception(e,"Failed to capture fetch breadcrumb")}}function Sr(e,t){const n={};return t.forEach(t=>{e.get(t)&&(n[t]=e.get(t))}),n}function br(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?Sr(n,t):Array.isArray(n)?{}:yr(n,t):{}}async function kr(e,t,n){try{const r=function(e,t,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:o=r,input:i,xhr:a}=t,{url:c,method:u,status_code:l=0,request_body_size:d,response_body_size:p}=e.data;if(!c)return null;if(!a||!_r(c,n.networkDetailAllowUrls)||_r(c,n.networkDetailDenyUrls)){return{startTimestamp:s,endTimestamp:o,url:c,method:u,statusCode:l,request:mr(d),response:mr(p)}}const h=a[M.Er],f=h?yr(h.request_headers,n.networkRequestHeaders):{},m=yr((0,C.ti)(a),n.networkResponseHeaders),[g,y]=n.networkCaptureBodies?(0,C.sY)(i,An):[void 0],[_,v]=n.networkCaptureBodies?function(e){const t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return function(e,t){try{if("string"==typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&e&&"object"==typeof e)return[JSON.stringify(e)];if(!e)return[void 0]}catch(t){return Cn&&An.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Cn&&An.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(e){t.push(e)}return Cn&&An.warn("Failed to get xhr response body",...t),[void 0]}(a):[void 0],S=gr(f,d,g),b=gr(m,p,_);return{startTimestamp:s,endTimestamp:o,url:c,method:u,statusCode:l,request:y?hr(S,y):S,response:v?hr(b,v):b}}(e,t,n),s=fr("resource.xhr",r);lr(n.replay,s)}catch(e){Cn&&An.exception(e,"Failed to capture xhr breadcrumb")}}function wr(e,t){const{xhr:n,input:r}=t;if(!n)return;const s=dr(r),o=n.getResponseHeader("content-length")?pr(n.getResponseHeader("content-length")):function(e,t){try{return dr("json"===t&&e&&"object"==typeof e?JSON.stringify(e):e)}catch{return}}(n.response,n.responseType);void 0!==s&&(e.data.request_body_size=s),void 0!==o&&(e.data.response_body_size=o)}function Er(e){const t=(0,p.KU)();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:o,networkResponseHeaders:i}=e.getOptions(),a={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:o,networkResponseHeaders:i};t&&t.on("beforeAddBreadcrumb",(e,t)=>function(e,t,n){if(!t.data)return;try{(function(e){return"xhr"===e.category})(t)&&function(e){return e?.xhr}(n)&&(wr(t,n),kr(t,n,e)),function(e){return"fetch"===e.category}(t)&&function(e){return void 0!==e?.input}(n)&&(!function(e,t){const{input:n,response:r}=t,s=dr(n?(0,C.Gv)(n):void 0),o=r?pr(r.headers.get("content-length")):void 0;void 0!==s&&(e.data.request_body_size=s),void 0!==o&&(e.data.response_body_size=o)}(t,n),vr(t,n,e))}
2catch(e){Cn&&An.exception(e,"Error when enriching network breadcrumb")}}(a,e,t))}catch{}}function Tr(e){const t=(0,p.KU)();(0,R.i)(gn(e)),(0,O._)(ur(e)),rr(e),Er(e);const n=ar(e);(0,l.SA)(n),t&&(t.on("beforeSendEvent",nr(e)),t.on("afterSendEvent",tr(e)),t.on("createDsc",t=>{const n=e.getSessionId();if(n&&e.isEnabled()&&"session"===e.recordingMode){e.checkAndHandleExpiredSession()&&(t.replay_id=n)}}),t.on("afterSegmentSpanEnd",function(e){return t=>{if(!e.isEnabled()||!(0,h.pK)(t))return;const n=t.spanContext().traceId;n&&Xn(e,n)}}(e)),t.on("spanStart",t=>{e.lastActiveSpan=t}),t.on("spanEnd",t=>{e.lastActiveSpan=t}),t.on("beforeSendFeedback",async(t,n)=>{const r=e.getSessionId();n?.includeReplay&&e.isEnabled()&&r&&t.contexts?.feedback&&("api"===t.contexts.feedback.source&&await e.sendBufferedReplayOrFlush(),t.contexts.feedback.replay_id=r)}),t.on("openFeedbackWidget",async()=>{await e.sendBufferedReplayOrFlush()}))}function xr(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,s=Date.now()/1e3;return{type:"memory",name:"memory",start:s,end:s,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function Ir(e,t,n){return function(e,t,n){let r,s,o;const i=n?.maxWait?Math.max(n.maxWait,t):0,a=n?.setTimeoutImpl||setTimeout;function c(){return u(),r=e(),r}function u(){void 0!==s&&clearTimeout(s),void 0!==o&&clearTimeout(o),s=o=void 0}function l(){return s&&clearTimeout(s),s=a(c,t),i&&void 0===o&&(o=a(c,i)),r}return l.cancel=u,l.flush=function(){return void 0!==s||void 0!==o?c():r},l}(e,t,{...n,setTimeoutImpl:T.wg})}const Cr=r.O.navigator;function Mr(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession())return void(Cn&&An.warn("Received replay event after session expired."));const s=r||!t;t=!0,function(e){const t=e.data;if(!(e.type===tt.IncrementalSnapshot&&t&&"object"==typeof t&&"source"in t&&t.source===nt.Mutation&&"attributes"in t&&Array.isArray(t.attributes)))return;for(const e of t.attributes){const t=Gt.mirror.getNode(e.id),n=t&&Gt.mirror.getMeta(t);if(n?.type===hn.Element)for(const[t,r]of Object.entries(e.attributes))null===r?delete n.attributes[t]:n.attributes[t]=r}}(n),e.clickDetector&&dn(e.clickDetector,n),e.addUpdate(()=>{if("buffer"===e.recordingMode&&s&&e.setInitialState(),!Jn(e,n,s))return!0;if(!s)return!1;const t=e.session;if(function(e,t){if(!t||0!==e.session?.segmentId)return;Jn(e,function(e){const t=e.getOptions();return{type:tt.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}(e),!1)}(e,s),"buffer"===e.recordingMode&&t&&e.eventBuffer&&!t.dirty){const n=e.eventBuffer.getEarliestTimestamp();n&&(Cn&&An.log(`Updating session start time to earliest event in buffer to ${new Date(n)}`),t.started=n,e.getOptions().stickySession&&Bn(t))}return t?.previousSessionId||"session"===e.recordingMode&&e.flush(),!0})}}function Rr(e,t,n,r){return(0,_.h4)((0,_.n2)(e,(0,_.Cj)(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}async function Or({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:s,session:o}){const i=function({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}\n`;if("string"==typeof e)n=`${r}${e}`;else{const t=(new TextEncoder).encode(r);n=new Uint8Array(t.length+e.length),n.set(t),n.set(e,t.length)}return n}({recordingData:e,headers:{segment_id:n}}),{urls:a,errorIds:c,traceIds:u,initialTimestamp:l}=r,d=(0,p.KU)(),h=(0,p.o5)(),f=d?.getTransport(),m=d?.getDsn();if(!(d&&f&&m&&o.sampled))return Promise.resolve({});
2const g={type:"replay_event",replay_start_timestamp:l/1e3,timestamp:s/1e3,error_ids:c,trace_ids:u,urls:a,replay_id:t,segment_id:n,replay_type:o.sampled},y=await async function({client:e,scope:t,replayId:n,event:r}){const s={event_id:n,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit("preprocessEvent",r,s);const o=await(0,v.mG)(e.getOptions(),r,s,t,e,(0,p.rm)());if(!o)return null;e.emit("postprocessEvent",o,s),o.platform=o.platform||"javascript";const i=e.getSdkMetadata(),{name:a,version:c,settings:u}=i?.sdk||{};return o.sdk={...o.sdk,name:a||"sentry.javascript.unknown",version:c||"0.0.0",settings:u},o}({scope:h,client:d,replayId:t,event:g});if(!y)return d.recordDroppedEvent("event_processor","replay"),Cn&&An.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete y.sdkProcessingMetadata;const _=Rr(y,i,m,d.getOptions().tunnel);let b;try{b=await f.send(_)}catch(e){const t=new Error(L);try{t.cause=e}catch{}throw t}const k=(0,S.wq)({},b);if((0,S.Jz)(k,"replay"))throw new Dr(k);if("number"==typeof b.statusCode&&(b.statusCode<200||b.statusCode>=300))throw new Ar(b.statusCode);return b}class Ar extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class Dr extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}class Lr extends Error{constructor(){super("Session is too long, not sending replay")}}async function Nr(e,t={count:0,interval:5e3}){const{recordingData:n,onError:r}=e;if(n.length)try{return await Or(e),!0}catch(n){if(n instanceof Ar||n instanceof Dr)throw n;if((0,l.o)("Replays",{_retryCount:t.count}),r&&r(n),t.count>=3){const e=new Error(`${L} - max retries exceeded`);try{e.cause=n}catch{}throw e}return t.interval*=++t.count,new Promise((n,r)=>{(0,T.wg)(async()=>{try{await Nr(e,t),n(!0)}catch(e){r(e)}},t.interval)})}}const Pr="__THROTTLED";function jr(e,t,n){const r=new Map;let s=!1;return(...o)=>{const i=Math.floor(Date.now()/1e3);if((e=>{const t=e-n;r.forEach((e,n)=>{n<t&&r.delete(n)})})(i),[...r.values()].reduce((e,t)=>e+t,0)>=t){const e=s;return s=!0,e?"__SKIPPED":Pr}s=!1;const a=r.get(i)||0;return r.set(i,a+1),e(...o)}}class zr{constructor({options:e,recordingOptions:t}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=Ir(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=jr((e,t)=>function(e,t,n){return Vn(e,t)?Gn(e,t,n):Promise.resolve(null)}(this,e,t),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),s=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:r?r.join(","):""}:void 0;if(s&&(this.clickDetector=new cn(this,s)),Cn){const t=e._experiments;An.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}this._handleVisibilityChange=()=>{"visible"===A.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{const e=pn({category:"ui.blur"});this._doChangeToBackgroundTasks(e)},this._handleWindowFocus=()=>{const e=pn({category:"ui.focus"});this._doChangeToForegroundTasks(e)},this._handleKeyboardEvent=e=>{_n(this,e)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return Boolean(this._canvas)}getOptions(){return this._options}handleException(e){Cn&&An.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){const{errorSampleRate:t,sessionSampleRate:n}=this._options,r=t<=0&&n<=0;this._requiresManualStart=r,r||(this._initializeSessionForSampling(e),this.session?!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",Cn&&An.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording()):Cn&&An.exception(new Error("Unable to initialize and create session")))}
2start(){if(this._isEnabled&&"session"===this.recordingMode)return void(Cn&&An.log("Recording is already in progress"));if(this._isEnabled&&"buffer"===this.recordingMode)return void(Cn&&An.log("Buffering is in progress, call `flush()` to save the replay"));Cn&&An.infoTick("Starting replay in session mode"),this._updateUserActivity();const e=Kn({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this.recordingMode="session",this._initializeRecording()}startBuffering(){if(this._isEnabled)return void(Cn&&An.log("Buffering is in progress, call `flush()` to save the replay"));Cn&&An.infoTick("Starting replay in buffer mode");const e=Kn({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const e=this._canvas;this._stopRecording=Gt({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:Mr(this),.../iPhone|iPad|iPod/i.test(Cr?.userAgent??"")||/Macintosh/i.test(Cr?.userAgent??"")&&Cr?.maxTouchPoints&&Cr?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{},onMutation:this._onMutationHandler.bind(this),...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this.handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(!this._isEnabled)return;this._isEnabled=!1,this.recordingMode="buffer";const n=t??"manual";(0,p.KU)()?.emit("replayEnd",{sessionId:this.session?.id,reason:n});try{Cn&&An.log(`Stopping Replay triggered by ${n}`),or(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,Un(this)}catch(e){this.handleException(e)}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),Cn&&An.log("Pausing replay"))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),Cn&&An.log("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();Cn&&An.log("Converting buffer to session"),await this.flushImmediate();const n=this.stopRecording();e&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this.session.dirty=!1,this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession(),ir(this.session.id)),this.startRecording())}addUpdate(e){const t=e();"buffer"!==this.recordingMode&&this._isEnabled&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._checkSession())return;this.resume()}}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(e){if(!e||!1!==this.session?.sampled)return this.session?.id}checkAndHandleExpiredSession(){if(!this._lastActivity||!Wn(this._lastActivity,this.timeouts.sessionIdlePause)||"session"!==this.session?.sampled)return!!this._checkSession();this.pause()}setInitialState(){const e=`${A.location.pathname}${A.location.hash}${A.location.search}`,t=`${A.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.
2initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){const n=this._throttledAddEvent(e,t);if(n===Pr){const e=pn({category:"replay.throttled"});this.addUpdate(()=>!Jn(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}}))}return n}getCurrentRoute(){const e=this.lastActiveSpan||(0,h.Bk)(),t=e&&(0,h.zU)(e),n=(t&&(0,h.et)(t).data||{})[b.i_];if(t&&n&&["route","custom"].includes(n))return(0,h.et)(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=zn({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.session&&(0,p.KU)()?.emit("replayStart",{sessionId:this.session.id,recordingMode:this.recordingMode}),this.startRecording(),"session"===this.recordingMode&&this.session&&ir(this.session.id)}_initializeSessionForSampling(e){const t=this._options.errorSampleRate>0,n=Kn({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;const e=this.session;return!Yn(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"sessionExpired"}),this.initializeSampling(e.id))}_addListeners(){try{A.document.addEventListener("visibilitychange",this._handleVisibilityChange),A.addEventListener("blur",this._handleWindowBlur),A.addEventListener("focus",this._handleWindowFocus),A.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(Tr(this),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=function(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n({entries:e}){e.forEach(t)}const r=[];return["navigation","paint","resource"].forEach(e=>{r.push((0,I.wv)(e,n))}),r.push((0,I.Pt)(Sn(wn,e)),(0,I.a9)(Sn(Tn,e)),(0,I.hT)(Sn(xn,e))),()=>{r.forEach(e=>e())}}(this)}_removeListeners(){try{A.document.removeEventListener("visibilitychange",this._handleVisibilityChange),A.removeEventListener("blur",this._handleWindowBlur),A.removeEventListener("focus",this._handleWindowFocus),A.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}_doChangeToBackgroundTasks(e){if(!this.session)return;Yn(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})?or():(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){if(!this.session)return;this.checkAndHandleExpiredSession()?e&&this._createCustomBreadcrumb(e):Cn&&An.log("Document has become active, but session has expired")}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate(()=>{this.throttledAddEvent({type:tt.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){let e=(t=this.performanceEntries,t.map(bn).filter(Boolean)).concat(this.replayPerformanceEntries);var t;if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const t=this._context.initialTimestamp/1e3;e=e.filter(e=>e.start>=t)}return Promise.all(cr(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart)return;if(e.segmentId)return;const n=t.getEarliestTimestamp();
2n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){const e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){const e=this.getSessionId();if(this.session&&this.eventBuffer&&e){if(await this._addPerformanceEntries(),this.eventBuffer?.hasEvents&&(await async function(e){try{return Promise.all(cr(e,[xr(A.performance.memory)]))}catch{return[]}}(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Lr;const n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();const s=await this.eventBuffer.finish();await Nr({replayId:e,recordingData:s,segmentId:r,eventContext:n,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(e){this.handleException(e),this.stop({reason:"sendError"});const t=(0,p.KU)();if(t){let n;n=e instanceof Dr?"ratelimit_backoff":e instanceof Lr?"invalid":"send_error",t.recordDroppedEvent(n,"replay")}}}else Cn&&An.error("No session or eventBuffer found to flush.")}async _flush({force:e=!1}={}){if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession())return void(Cn&&An.error("Attempting to finish replay event after session expired."));if(!this.session)return;const t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();const r=n<this._options.minReplayDuration,s=n>this._options.maxReplayDuration+5e3;if(r||s)return Cn&&An.log(`Session duration (${Math.floor(n/1e3)}s) is too ${r?"short":"long"}, not sending replay.`),void(r&&this._debouncedFlush());const o=this.eventBuffer;o&&0===this.session.segmentId&&!o.hasCheckout&&Cn&&An.log("Flushing initial segment without checkout.");const i=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,i&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&Bn(this.session)}_onMutationHandler(e){const{ignoreMutations:t}=this._options._experiments;if(t?.length&&e.some(e=>{const n=function(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}(e.target),r=t.join(",");return n?.matches(r)}))return!1;const n=e.length,r=this._options.mutationLimit,s=r&&n>r;if(n>this._options.mutationBreadcrumbLimit||s){const e=pn({category:"replay.mutations",data:{count:n,limit:s}});this._createCustomBreadcrumb(e)}return!s||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}function $r(e,t){return[...e,...t].join(",")}const Ur='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',Fr=["content-length","content-type","accept"],Br=Symbol.for("sentry__originalRequestBody");let Hr=!1,qr=!1;const Wr=e=>new Yr(e);class Yr{constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:n=4999,maxReplayDuration:r=36e5,stickySession:s=!0,useCompression:o=!0,workerUrl:i,_experiments:a={},maskAllText:c=!0,maskAllInputs:u=!0,blockAllMedia:l=!0,mutationBreadcrumbLimit:d=750,mutationLimit:p=1e4,slowClickTimeout:h=7e3,slowClickIgnoreSelectors:f=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:g=[],networkCaptureBodies:y=!0,networkRequestHeaders:_=[],networkResponseHeaders:v=[],mask:S=[],maskAttributes:b=["title","placeholder","aria-label"],unmask:w=[],block:E=[],unblock:T=[],ignore:x=[],maskFn:I,beforeAddRecordingEvent:C,beforeErrorSampling:M,onError:R,attachRawBodyFromRequest:O=!1}={}){this.name="Replay";const A=function({mask:e,unmask:t,block:n,unblock:r,ignore:s}){return{maskTextSelector:$r(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:$r(t,[]),blockSelector:$r(n,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not([src])"]),unblockSelector:$r(r,[]),ignoreSelector:$r(s,[".sentry-ignore","[data-sentry-ignore]",'
2input[type="file"]'])}}({mask:S,unmask:w,block:E,unblock:T,ignore:x});if(this._recordingOptions={maskAllInputs:u,maskAllText:c,maskInputOptions:{password:!0},maskTextFn:I,maskInputFn:I,maskAttributeFn:(e,t,n)=>function({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:s,value:o}){if(s.unmaskTextSelector&&e.matches(s.unmaskTextSelector))return o;const i=n.includes(t),a=r&&"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"");return i||a?o.replace(/[\S]/g,"*"):o}({maskAttributes:b,maskAllText:c,privacyOptions:A,key:e,value:t,el:n}),...A,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch{}},recordCrossOriginIframes:Boolean(a.recordCrossOriginIframes)},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,5e4),maxReplayDuration:Math.min(r,z),stickySession:s,useCompression:o,workerUrl:i,blockAllMedia:l,maskAllInputs:u,maskAllText:c,mutationBreadcrumbLimit:d,mutationLimit:p,slowClickTimeout:h,slowClickIgnoreSelectors:f,networkDetailAllowUrls:m,networkDetailDenyUrls:g,networkCaptureBodies:y,networkRequestHeaders:Kr(_),networkResponseHeaders:Kr(v),beforeAddRecordingEvent:C,beforeErrorSampling:M,onError:R,attachRawBodyFromRequest:O,_experiments:a},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Ur}`:Ur,this._recordingOptions.ignoreCSSAttributes=new Set(["background-image"])),this._isInitialized&&(0,k.B)())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Hr}set _isInitialized(e){Hr=e}afterAllSetup(e){(0,k.B)()&&!this._replay&&(this._initialOptions.attachRawBodyFromRequest&&function(){if("undefined"==typeof Request||qr)return;const e=Request;try{const t=function(t,n){const r=new e(t,n);return null!=n?.body&&(r[Br]=n.body),r};t.prototype=e.prototype,r.O.Request=t,qr=!0}catch{}}(),this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode,reason:"manual"}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(e){if(this._replay?.isEnabled())return this._replay.getSessionId(e)}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}processSpan(e){const t=this.getReplayId(!0);t&&((0,w.FD)(e,{"sentry.replay_id":t}),"buffer"===this.getRecordingMode()&&(0,w.FD)(e,{"sentry._internal.replay_is_buffering":!0}))}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){const t=function(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...e},s=(0,E.i)(n.replaysSessionSampleRate),o=(0,E.i)(n.replaysOnErrorSampleRate);null==s&&null==o&&(0,c.pq)(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")});null!=s&&(r.sessionSampleRate=s);null!=o&&(r.errorSampleRate=o);return r}(this._initialOptions,e);this._replay=new zr({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{const t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch{}}}function Kr(e){return[...Fr,...e.map(e=>e.toLowerCase())]}}}]); 3//# sourceMappingURL=4481.7b9d8e703e8968231587.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.