PageSourceSearch

https://www.aparat.com/clover/aparat/_next/static/chunks/2064-3d860146d3a0289f.js

js aparat.com collected 2026-09-24 08:23:47 UTC 167,044 bytes, 5 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d1d31a5f-9d04-42b3-98e4-c8b563c676f9",e._sentryDebugIdIdentifier="sentry-dbid-d1d31a5f-9d04-42b3-98e4-c8b563c676f9")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2064],{90003:function(e,t,n){n.d(t,{X:function(){return r}});let r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},80604:function(e,t,n){n.d(t,{L2:function(){return l},_6:function(){return c},iK:function(){return u}});var r=n(34958),i=n(81735),s=n(90003),o=n(33009);let a={};function l(e){let t=a[e];if(t)return t;let n=o.m[e];if((0,r.QC)(n))return a[e]=n.bind(o.m);let l=o.m.document;if(l&&"function"==typeof l.createElement)try{let t=l.createElement("iframe");t.hidden=!0,l.head.appendChild(t);let r=t.contentWindow;r&&r[e]&&(n=r[e]),l.head.removeChild(t)}catch(t){s.X&&i.kg.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n?a[e]=n.bind(o.m):n}function c(e){a[e]=void 0}function u(...e){return l("setTimeout")(...e)}},7686:function(e,t,n){let r,i,s;n.d(t,{O:function(){return u}});var o=n(48524),a=n(21275),l=n(52618),c=n(33009);function u(e){(0,o.Hj)("dom",e),(0,o.D2)("dom",d)}function d(){if(!c.m.document)return;let e=o.rK.bind(null,"dom"),t=h(e,!0);c.m.document.addEventListener("click",t,!1),c.m.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let n=c.m[t]&&c.m[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,a.hl)(n,"addEventListener",function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{let r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},s=r[n]=r[n]||{refCount:0};if(!s.handler){let r=h(e);s.handler=r,t.call(this,n,r,i)}s.refCount++}catch(e){}return t.call(this,n,r,i)}}),(0,a.hl)(n,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{let n=this.__sentry_instrumentation_handlers__||{},i=n[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}}))})}function h(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let o=function(e){try{return e.target}catch(e){return null}}(n);if("keypress"===n.type&&(!o||!o.tagName||"INPUT"!==o.tagName&&"TEXTAREA"!==o.tagName&&!o.isContentEditable))return;(0,a.xp)(n,"_sentryCaptured",!0),o&&!o._sentryId&&(0,a.xp)(o,"_sentryId",(0,l.DM)());let u="keypress"===n.type?"input":n.type;!function(e){if(e.type!==i)return!1;try{if(!e.target||e.target._sentryId!==s)return!1}catch(e){}return!0}(n)&&(e({event:n,name:u,global:t}),i=n.type,s=o?o._sentryId:void 0),clearTimeout(r),r=c.m.setTimeout(()=>{s=void 0,i=void 0},1e3)}}},56938:function(e,t,n){let r;n.d(t,{a:function(){return l}});var i=n(48524),s=n(38280),o=n(21275),a=n(33009);function l(e){let t="history";(0,i.Hj)(t,e),(0,i.D2)(t,c)}function c(){if(!(0,s.B)())return;let e=a.m.onpopstate;function t(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let e=r,t=String(n);r=t,(0,i.rK)("history",{from:e,to:t})}return e.apply(this,t)}}a.m.onpopstate=function(...t){let n=a.m.location.href,s=r;if(r=n,(0,i.rK)("history",{from:s,to:n}),e)try{return e.apply(this,t)}catch(e){}},(0,o.hl)(a.m.history,"pushState",t),(0,o.hl)(a.m.history,"replaceState",t)}},98860:function(e,t,n){n.d(t,{UK:function(){return l},xU:function(){return a}});var r=n(48524),i=n(79607),s=n(74400),o=n(33009);let a="__sentry_xhr_v3__";function l(e){(0,r.Hj)("xhr",e),(0,r.D2)("xhr",c)}function c(){if(!o.m.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){let o=1e3*(0,i.ph)(),l=(0,s.HD)(n[0])?n[0].toUpperCase():void 0,c=function(e){if((0,s.HD)(e))return e;try{return e.toString()}catch(e){}}(n[1]);if(!l||!c)return e.apply(t,n);t[a]={method:l,url:c,request_headers:{}},"POST"===l&&c.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let u=()=>{let e=t[a];if(e&&4===t.readyState){try{e.status_code=t.status}catch(e){}let n={endTimestamp:1e3*(0,i.ph)(),startTimestamp:o,xhr:t};(0,r.rK)("xhr",n)}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,n)=>(u(),e.apply(t,n))}):t.addEventListener("readystatechange",u),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){let[r,i]=n,o=t[a];return o&&(0,s.HD)(r)&&(0,s.HD)(i)&&(o.request_headers[r.toLowerCase()]=i),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){let s=t[a];if(!s)return e.apply(t,n);void 0!==n[0]&&(s.body=n[0]);let o={startTimestamp:1e3*(0,i.ph)(),xhr:t};return(0,r.rK)("xhr",o),e.apply(t,n)}})}},84050:function(e,t,n){let r,i,s,o,a,l;n.d(t,{PR:function(){return J},to:function(){return Q},YF:function(){return et},$A:function(){return Z},_j:function(){return en},_4:function(){return ee},cN:function(){return eh}});var c=n(81735),u=n(77820),d=n(90003);let h=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",p=(e,t,n,r)=>{let i,s;return o=>{t.value>=0&&(o||r)&&((s=t.value-(i||0))||void 0===i)&&(i=t.value,t.delta=s,t.rating=h(t.value,n),e(t))}};var f=n(33009);let m=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`;var g=n(71727),y=n(54750);let v=(e,t)=>
1{let n=(0,y.W)(),r="navigate";return n&&(f.m.document&&f.m.document.prerendering||(0,g.A)()>0?r="prerender":f.m.document&&f.m.document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:m(),navigationType:r}},_=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}};var S=n(57765);let b=e=>{let t=!1;return n=>{t||(e(n),t=!0)}};var w=n(19726);let k=e=>{f.m.document&&f.m.document.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},E=[1800,3e3],T=(e,t={})=>{k(()=>{let n;let r=(0,w.Y)(),i=v("FCP"),s=_("paint",e=>{e.forEach(e=>{"first-contentful-paint"===e.name&&(s.disconnect(),e.startTime<r.firstHiddenTime&&(i.value=Math.max(e.startTime-(0,g.A)(),0),i.entries.push(e),n(!0)))})});s&&(n=p(e,i,E,t.reportAllChanges))})},M=[.1,.25],x=(e,t={})=>{T(b(()=>{let n;let r=v("CLS",0),i=0,s=[],o=e=>{e.forEach(e=>{if(!e.hadRecentInput){let t=s[0],n=s[s.length-1];i&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(i+=e.value,s.push(e)):(i=e.value,s=[e])}}),i>r.value&&(r.value=i,r.entries=s,n())},a=_("layout-shift",o);a&&(n=p(e,r,M,t.reportAllChanges),(0,S.u)(()=>{o(a.takeRecords()),n(!0)}),setTimeout(n,0))}))},C=[100,300],I=(e,t={})=>{k(()=>{let n;let r=(0,w.Y)(),i=v("FID"),s=e=>{e.startTime<r.firstHiddenTime&&(i.value=e.processingStart-e.startTime,i.entries.push(e),n(!0))},o=e=>{e.forEach(s)},a=_("first-input",o);n=p(e,i,C,t.reportAllChanges),a&&(0,S.u)(b(()=>{o(a.takeRecords()),a.disconnect()}))})},R=0,A=1/0,D=0,O=e=>{e.forEach(e=>{e.interactionId&&(A=Math.min(A,e.interactionId),R=(D=Math.max(D,e.interactionId))?(D-A)/7+1:0)})},N=()=>r?R:performance.interactionCount||0,L=()=>{"interactionCount"in performance||r||(r=_("event",O,{type:"event",buffered:!0,durationThreshold:0}))},P=[200,500],F=()=>N()-0,U=[],B={},$=e=>{let t=U[U.length-1],n=B[e.interactionId];if(n||U.length<10||t&&e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{let t={id:e.interactionId,latency:e.duration,entries:[e]};B[t.id]=t,U.push(t)}U.sort((e,t)=>t.latency-e.latency),U.splice(10).forEach(e=>{delete B[e.id]})}},W=()=>{let e=Math.min(U.length-1,Math.floor(F()/50));return U[e]},j=(e,t={})=>{k(()=>{let n;L();let r=v("INP"),i=e=>{e.forEach(e=>{e.interactionId&&$(e),"first-input"!==e.entryType||U.some(t=>t.entries.some(t=>e.duration===t.duration&&e.startTime===t.startTime))||$(e)});let t=W();t&&t.latency!==r.value&&(r.value=t.latency,r.entries=t.entries,n())},s=_("event",i,{durationThreshold:null!=t.durationThreshold?t.durationThreshold:40});n=p(e,r,P,t.reportAllChanges),s&&("PerformanceEventTiming"in f.m&&"interactionId"in PerformanceEventTiming.prototype&&s.observe({type:"first-input",buffered:!0}),(0,S.u)(()=>{i(s.takeRecords()),r.value<0&&F()>0&&(r.value=0,r.entries=[]),n(!0)}))})},H=[2500,4e3],z={},q=(e,t={})=>{k(()=>{let n;let r=(0,w.Y)(),i=v("LCP"),s=e=>{let t=e[e.length-1];t&&t.startTime<r.firstHiddenTime&&(i.value=Math.max(t.startTime-(0,g.A)(),0),i.entries=[t],n())},o=_("largest-contentful-paint",s);if(o){n=p(e,i,H,t.reportAllChanges);let r=b(()=>{z[i.id]||(s(o.takeRecords()),o.disconnect(),z[i.id]=!0,n(!0))});["keydown","click"].forEach(e=>{f.m.document&&addEventListener(e,()=>setTimeout(r,0),!0)}),(0,S.u)(r)}})},X=[800,1800],K=e=>{f.m.document&&f.m.document.prerendering?k(()=>K(e)):f.m.document&&"complete"!==f.m.document.readyState?addEventListener("load",()=>K(e),!0):setTimeout(e,0)},V=(e,t={})=>{let n=v("TTFB"),r=p(e,n,X,t.reportAllChanges);K(()=>{let e=(0,y.W)();if(e){let t=e.responseStart;if(t<=0||t>performance.now())return;n.value=Math.max(t-(0,g.A)(),0),n.entries=[e],r(!0)}})},G={},Y={};function J(e,t=!1){return ec("cls",e,ei,i,t)}function Z(e,t=!1){return ec("lcp",e,eo,o,t)}function Q(e){return ec("fid",e,es,s)}function ee(e){return ec("ttfb",e,ea,a)}function et(e){return ec("inp",e,el,l)}function en(e,t){return eu(e,t),Y[e]||(function(e){let t={};"event"===e&&(t.durationThreshold=0),_(e,t=>{er(e,{entries:t})},t)}(e),Y[e]=!0),ed(e,t)}function er(e,t){let n=G[e];if(n&&n.length)for(let r of n)try{r(t)}catch(t){d.X&&c.kg.error(`Error while triggering instrumentation handler.
2Type: ${e}
3Name: ${(0,u.$P)(r)}
4Error:`,t)}}function ei(){return x(e=>{er("cls",{metric:e}),i=e},{reportAllChanges:!0})}function es(){return I(e=>{er("fid",{metric:e}),s=e})}function eo(){return q(e=>{er("lcp",{metric:e}),o=e},{reportAllChanges:!0})}function ea(){return V(e=>{er("ttfb",{metric:e}),a=e})}function el(){return j(e=>{er("inp",{metric:e}),l=e})}function ec(e,t,n,r,i=!1){let s;return eu(e,t),Y[e]||(s=n(),Y[e]=!0),r&&t({metric:r}),ed(e,t,i?s:void 0)}function eu(e,t){G[e]=G[e]||[],G[e].push(t)}function ed(e,t,n){return()=>{n&&n();let r=G[e];if(!r)return;let i=r.indexOf(t);-1!==i&&r.splice(i,1)}}function eh(e){return"duration"in e}},71727:function(e,t,n){n.d(t,{A:function(){return i}});var r=n(54750);let i=()=>{let e=(0,r.W)();return e&&e.activationStart||0}},54750:function(e,t,n){n.d(t,{W:function(){return i}});var r=n(33009);let i=()=>r.m.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},19726:function(e,t,n){n.d(t,{Y:function(){return l}});var r=n(33009);let i=-1,s=()=>{i="hidden"!==r.m.document.visibilityState||r.m.document.prerendering?1/0:0},o=e=>{"hidden"===r.m.document.visibilityState&&i>-1&&(i="visibilitychange"===e.type?e.timeStamp:0,removeEventListener("visibilitychange",o,!0),removeEventListener("prerenderingchange",o,!0))},a=()=>{addEventListener("visibilitychange",o,!0),addEventListener("prerenderingchange",o,!0)},l=()=>(r.m.document&&i<0&&(s(),a()),{get firstHiddenTime(){return i}})},57765:function(e,t,n){n.d(t,{u:function(){return i}});var r=n(33009);let i=e=>{let t=t=>{("pagehide"===t.type||r.m.document&&"hidden"===r.m.document.visibilityState)&&e(t)};r.m.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))}},33009:function(e,t,n){n.d(t,{m:function(){return r}});let r=n(624).GLOBAL_OBJ},48885:function(e,t,n){let r,i,s,o,a,l;n.d(t,{G:function(){return nX}});var c,u,d,h,p,f,m,g,y=n(97253),v=n(72961),_=n(624),S=n(18621),b=n(81735),w=n(31169),k=n(70089),E=n(44833),T=n(21275),M=n(48637),x=n(79607),C=n(52618),I=n(43953),R=n(90619),A=n(77950),D=n(17866),O=n(58406),N=n(38311),L=n(45037),P=n(55771),F=n(49
4162),U=n(32634),B=n(70236),$=n(19817),W=n(80604),j=n(84050),H=n(98860),z=n(7686),q=n(56938);let X=_.GLOBAL_OBJ,K="sentryReplaySession",V="Unable to send Replay";function G(e,t){return null!=e?e:t()}function Y(e){let t;let n=e[0],r=1;for(;r<e.length;){let i=e[r],s=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=s(n)):("call"===i||"optionalCall"===i)&&(n=s((...e)=>n.call(t,...e)),t=void 0)}return n}function J(e){let t=Y([e,"optionalAccess",e=>e.host]);return Y([t,"optionalAccess",e=>e.shadowRoot])===e}function Z(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function Q(e){try{var t;let n=e.rules||e.cssRules;return n?((t=Array.from(n,ee).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}}function ee(e){let t;if("styleSheet"in e)try{t=Q(e.styleSheet)||function(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}(e)}catch(e){}else if("selectorText"in e&&e.selectorText.includes(":"))return e.cssText.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2");return t||e.cssText}(c=m||(m={}))[c.Document=0]="Document",c[c.DocumentType=1]="DocumentType",c[c.Element=2]="Element",c[c.Text=3]="Text",c[c.CDATA=4]="CDATA",c[c.Comment=5]="Comment";class et{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){return e?G(Y([this,"access",e=>e.getMeta,"call",t=>t(e),"optionalAccess",e=>e.id]),()=>-1):-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){let n=this.getNode(e);if(n){let e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function en({maskInputOptions:e,tagName:t,type:n}){return"OPTION"===t&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||"password"===n||"INPUT"===t&&!n&&e.text)}function er({isMasked:e,element:t,value:n,maskInputFn:r}){let i=n||"";return e?(r&&(i=r(i,t)),"*".repeat(i.length)):i}function ei(e){return e.toLowerCase()}function es(e){return e.toUpperCase()}let eo="__rrweb_original__";function ea(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?ei(t):null}function el(e,t,n){return"INPUT"===t&&("radio"===n||"checkbox"===n)?e.getAttribute("value")||"":e.value}function ec(e,t){let n;try{n=new URL(e,G(t,()=>window.location.href))}catch(e){return null}return G(Y([n.pathname.match(/\.([0-9a-z]+)(?:$)/i),"optionalAccess",e=>e[1]]),()=>null)}let eu={};function ed(e){let t=eu[e];if(t)return t;let n=window.document,r=window[e];if(n&&"function"==typeof n.createElement)try{let t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(t)}catch(e){}return eu[e]=r.bind(window)}function eh(...e){return ed("setTimeout")(...e)}function ep(...e){return ed("clearTimeout")(...e)}let ef=1,em=RegExp("[^a-z0-9-_:]");function eg(){return ef++}let ey=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,ev=/^(?:[a-z+]+:)?\/\//i,e_=/^www\..*/i,eS=/^(data:)([^,]*),(.*)/i;function eb(e,t){return(e||"").replace(ey,(e,n,r,i,s,o)=>{let a=r||s||o,l=n||i||"";if(!a)return e;if(ev.test(a)||e_.test(a)||eS.test(a))return`url(${l}${a}${l})`;if("/"===a[0])return`url(${l}${(t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+a}${l})`;let c=t.split("/"),u=a.split("/");for(let e of(c.pop(),u))"."!==e&&(".."===e?c.pop():c.push(e));return`url(${l}${c.join("/")}${l})`})}let ew=/^[^ \t\n\r\u000c]+/,ek=/^[, \t\n\r\u000c]+/,eE=new WeakMap;function eT(e,t){return t&&""!==t.trim()?eM(e,t):t}function eM(e,t){let n=eE.get(e);if(n||(n=e.createElement("a"),eE.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function ex(e,t,n,r,i,s){return r?"src"!==n&&("href"!==n||"use"===t&&"#"===r[0])&&("xlink:href"!==n||"#"===r[0])&&("background"!==n||"table"!==t&&"td"!==t&&"th"!==t)?"srcset"===n?function(e,t){if(""===t.trim())return t;let n=0;function r(e){let r;let i=e.exec(t.substring(n));return i?(r=i[0],n+=r.length,r):""}let i=[];for(;r(ek),!(n>=t.length);){let s=r(ew);if(","===s.slice(-1))s=eT(e,s.substring(0,s.length-1)),i.push(s);else{let r="";s=eT(e,s);let o=!1;for(;;){let e=t.charAt(n);if(""===e){i.push((s+r).trim());break}if(o)")"===e&&(o=!1);else{if(","===e){n+=1,i.push((s+r).trim());break}"("===e&&(o=!0)}r+=e,n+=1}}}return i.join(", ")}(e,r):"style"===n?eb(r,eM(e)):"object"===t&&"data"===n?eT(e,r):"function"==typeof s?s(n,r,i):r:eT(e,r):r}function eC(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function eI(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:eI(e.parentNode,t,n,r+1)}function eR(e,t){return n=>{if(null===n)return!1;try{if(e){if("string"==typeof e){if(n.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}return!1}(n,e))return!0}if(t&&n.matches(t))return!0;return!1}catch(e){return!1}}}function eA(e,t,n,r,i,s){try{let o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===o)return!1;if("INPUT"===o.tagName){let e=o.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let a=-1,l=-1;if(s){if((l=eI(o,eR(r,i)))<0)return!0;a=eI(o,eR(t,n),l>=0?l:1/0)}else{if((a=eI(o,eR(t,n)))<0)return!1;l=eI(o,eR(r,i),a>=0?a:1/0)}return a>=0?!(l>=0)||a<=l:!(l>=0)&&!!s}catch(e){}return!!s}function eD(e){return null==e?"":e.toLowerCase()}function eO(e,t){let n;let{doc:s,mirror:o,blockClass:a,blockSelector:l,unblockSelector:c,maskAllText:u,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:f,skipChild:g=!1,inlineStylesheet:y=!0,maskInputOptions:v={},maskAttributeFn:_,maskTextFn:S,maskInputFn:b,slimDOMOptions:w,dataURLOptions:k={}
4,inlineImages:E=!1,recordCanvas:T=!1,onSerialize:M,onIframeLoad:x,iframeLoadTimeout:C=5e3,onStylesheetLoad:I,stylesheetLoadTimeout:R=5e3,keepIframeSrcFn:A=()=>!1,newlyAddedElement:D=!1}=t,{preserveWhiteSpace:O=!0}=t,N=function(e,t){let{doc:n,mirror:s,blockClass:o,blockSelector:a,unblockSelector:l,maskAllText:c,maskAttributeFn:u,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:f,inlineStylesheet:g,maskInputOptions:y={},maskTextFn:v,maskInputFn:_,dataURLOptions:S={},inlineImages:b,recordCanvas:w,keepIframeSrcFn:k,newlyAddedElement:E=!1}=t,T=function(e,t){if(!t.hasNode(e))return;let n=t.getId(e);return 1===n?void 0:n}(n,s);switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:m.Document,childNodes:[],compatMode:e.compatMode};return{type:m.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:m.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:T};case e.ELEMENT_NODE:return function(e,t){let n;let{doc:s,blockClass:o,blockSelector:a,unblockSelector:l,inlineStylesheet:c,maskInputOptions:u={},maskAttributeFn:d,maskInputFn:h,dataURLOptions:p={},inlineImages:f,recordCanvas:g,keepIframeSrcFn:y,newlyAddedElement:v=!1,rootId:_,maskAllText:S,maskTextClass:b,unmaskTextClass:w,maskTextSelector:k,unmaskTextSelector:E}=t,T=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--;){let r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch(e){}return!1}(e,o,a,l),M=function(e){if(e instanceof HTMLFormElement)return"form";let t=ei(e.tagName);return em.test(t)?"div":t}(e),x={},C=e.attributes.length;for(let t=0;t<C;t++){let n=e.attributes[t];n.name&&!eC(M,n.name,n.value)&&(x[n.name]=ex(s,M,ei(n.name),n.value,e,d))}if("link"===M&&c){let t=Array.from(s.styleSheets).find(t=>t.href===e.href),n=null;t&&(n=Q(t)),n&&(delete x.rel,delete x.href,x._cssText=eb(n,t.href))}if("style"===M&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){let t=Q(e.sheet);t&&(x._cssText=eb(t,eM(s)))}if("input"===M||"textarea"===M||"select"===M||"option"===M){let t=ea(e),n=el(e,es(M),t),r=e.checked;if("submit"!==t&&"button"!==t&&n){let r=eA(e,b,k,w,E,en({type:t,tagName:es(M),maskInputOptions:u}));x.value=er({isMasked:r,element:e,value:n,maskInputFn:h})}r&&(x.checked=r)}if("option"===M&&(e.selected&&!u.select?x.selected=!0:delete x.selected),"canvas"===M&&g){if("2d"===e.__context)!function(e){let t=e.getContext("2d");if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let r=0;r<e.height;r+=50){let i=t.getImageData;if(new Uint32Array((eo in i?i[eo]:i).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)&&(x.rr_dataURL=e.toDataURL(p.type,p.quality));else if(!("__context"in e)){let t=e.toDataURL(p.type,p.quality),n=s.createElement("canvas");n.width=e.width,n.height=e.height,t!==n.toDataURL(p.type,p.quality)&&(x.rr_dataURL=t)}}if("img"===M&&f){r||(i=(r=s.createElement("canvas")).getContext("2d"));let t=e.currentSrc||e.getAttribute("src")||"<unknown-src>",n=e.crossOrigin,o=()=>{e.removeEventListener("load",o);try{r.width=e.naturalWidth,r.height=e.naturalHeight,i.drawImage(e,0,0),x.rr_dataURL=r.toDataURL(p.type,p.quality)}catch(n){if("anonymous"!==e.crossOrigin){e.crossOrigin="anonymous",e.complete&&0!==e.naturalWidth?o():e.addEventListener("load",o);return}console.warn(`Cannot inline img src=${t}! Error: ${n}`)}"anonymous"===e.crossOrigin&&(n?x.crossOrigin=n:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?o():e.addEventListener("load",o)}if(("audio"===M||"video"===M)&&(x.rr_mediaState=e.paused?"paused":"played",x.rr_mediaCurrentTime=e.currentTime),!v&&(e.scrollLeft&&(x.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(x.rr_scrollTop=e.scrollTop)),T){let{width:t,height:n}=e.getBoundingClientRect();x={class:x.class,rr_width:`${t}px`,rr_height:`${n}px`}}"iframe"!==M||y(x.src)||(T||e.contentDocument||(x.rr_src=x.src),delete x.src);try{customElements.get(M)&&(n=!0)}catch(e){}return{type:m.Element,tagName:M,attributes:x,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:T,rootId:_,isCustom:n}}(e,{doc:n,blockClass:o,blockSelector:a,unblockSelector:l,inlineStylesheet:g,maskAttributeFn:u,maskInputOptions:y,maskInputFn:_,dataURLOptions:S,inlineImages:b,recordCanvas:w,keepIframeSrcFn:k,newlyAddedElement:E,rootId:T,maskAllText:c,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:f});case e.TEXT_NODE:return function(e,t){let{maskAllText:n,maskTextClass:r,unmaskTextClass:i,maskTextSelector:s,unmaskTextSelector:o,maskTextFn:a,maskInputOptions:l,maskInputFn:c,rootId:u}=t,d=e.parentNode&&e.parentNode.tagName,h=e.textContent,p="STYLE"===d||void 0,f="SCRIPT"===d||void 0,g="TEXTAREA"===d||void 0;if(p&&h){try{e.nextSibling||e.previousSibling||Y([e,"access",e=>e.parentNode,"access",e=>e.sheet,"optionalAccess",e=>e.cssRules])&&(h=Q(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}h=eb(h,eM(t.doc))}f&&(h="SCRIPT_PLACEHOLDER");let y=eA(e,r,s,i,o,n);return p||f||g||!h||!y||(h=a?a(h,e.parentElement):h.replace(/[\S]/g,"*")),g&&h&&(l.textarea||y)&&(h=c?c(h,e.parentNode):h.replace(/[\S]/g,"*")),"OPTION"===d&&h&&(h=er({isMasked:eA(e,r,s,i,o,en({type:null,tagName:d,maskInputOptions:l})),element:e,value:h,maskInputFn:c})),{type:m.Text,textContent:h||"",isStyle:p,rootId:u}}(e,{doc:n,maskAllText:c,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:f,maskTextFn:v,maskInputOptions:y,maskInputFn:_,rootId:T});case e.CDATA_SECTION_NODE:return{type:m.CDATA,textContent:"",rootId:T};case e.COMMENT_NODE:return{type:m.Comment,textContent:e.textContent||"",rootId:T};default:return!1}}(e,{doc:s,mirror:o,blockClass:a,blockSelector:l,maskAllText:u,unblockSelector:c,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:f,inlineStylesheet:y,maskInputOptions:v,maskAttributeFn:_,maskTextFn:S,maskInputFn:b,dataURLOptions:k,inlineImages:E,recordCanvas:T,keepIframeSrcFn:A,newlyAddedElement:D});if(!N)return console.warn(e,"not serialized"),null;n=o.hasNode(e)?o.getId(e):!function(e,t){if(t.comment&&e.type===m.Comment)return!0;
4if(e.type===m.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===ec(e.attributes.href))||t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(eD(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===eD(e.attributes.name)||"icon"===eD(e.attributes.rel)||"apple-touch-icon"===eD(e.attributes.rel)||"shortcut icon"===eD(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&eD(e.attributes.name).match(/^description|keywords$/)||t.headMetaSocial&&(eD(e.attributes.property).match(/^(og|twitter|fb):/)||eD(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===eD(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===eD(e.attributes.name)||"googlebot"===eD(e.attributes.name)||"bingbot"===eD(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===eD(e.attributes.name)||"generator"===eD(e.attributes.name)||"framework"===eD(e.attributes.name)||"publisher"===eD(e.attributes.name)||"progid"===eD(e.attributes.name)||eD(e.attributes.property).match(/^article:/)||eD(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===eD(e.attributes.name)||"yandex-verification"===eD(e.attributes.name)||"csrf-token"===eD(e.attributes.name)||"p:domain_verify"===eD(e.attributes.name)||"verify-v1"===eD(e.attributes.name)||"verification"===eD(e.attributes.name)||"shopify-checkout-api-token"===eD(e.attributes.name)))return!0}}return!1}(N,w)&&(O||N.type!==m.Text||N.isStyle||N.textContent.replace(/^\s+|\s+$/gm,"").length)?eg():-2;let L=Object.assign(N,{id:n});if(o.add(e,L),-2===n)return null;M&&M(e);let P=!g;if(L.type===m.Element){P=P&&!L.needBlock,delete L.needBlock;let t=e.shadowRoot;t&&Z(t)&&(L.isShadowHost=!0)}if((L.type===m.Document||L.type===m.Element)&&P){w.headWhitespace&&L.type===m.Element&&"head"===L.tagName&&(O=!1);let t={doc:s,mirror:o,blockClass:a,blockSelector:l,maskAllText:u,unblockSelector:c,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:f,skipChild:g,inlineStylesheet:y,maskInputOptions:v,maskAttributeFn:_,maskTextFn:S,maskInputFn:b,slimDOMOptions:w,dataURLOptions:k,inlineImages:E,recordCanvas:T,preserveWhiteSpace:O,onSerialize:M,onIframeLoad:x,iframeLoadTimeout:C,onStylesheetLoad:I,stylesheetLoadTimeout:R,keepIframeSrcFn:A};for(let n of Array.from(e.childNodes)){let e=eO(n,t);e&&L.childNodes.push(e)}if(e.nodeType===e.ELEMENT_NODE&&e.shadowRoot)for(let n of Array.from(e.shadowRoot.childNodes)){let r=eO(n,t);r&&(Z(e.shadowRoot)&&(r.isShadow=!0),L.childNodes.push(r))}}return e.parentNode&&J(e.parentNode)&&Z(e.parentNode)&&(L.isShadow=!0),L.type===m.Element&&"iframe"===L.tagName&&function(e,t,n){let r;let i=e.contentWindow;if(!i)return;let s=!1;try{r=i.document.readyState}catch(e){return}if("complete"!==r){let r=eh(()=>{s||(t(),s=!0)},n);e.addEventListener("load",()=>{ep(r),s=!0,t()});return}let o="about:blank";if(i.location.href!==o||e.src===o||""===e.src)return eh(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{let t=e.contentDocument;if(t&&x){let n=eO(t,{doc:t,mirror:o,blockClass:a,blockSelector:l,unblockSelector:c,maskAllText:u,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:y,maskInputOptions:v,maskAttributeFn:_,maskTextFn:S,maskInputFn:b,slimDOMOptions:w,dataURLOptions:k,inlineImages:E,recordCanvas:T,preserveWhiteSpace:O,onSerialize:M,onIframeLoad:x,iframeLoadTimeout:C,onStylesheetLoad:I,stylesheetLoadTimeout:R,keepIframeSrcFn:A});n&&x(e,n)}},C),L.type===m.Element&&"link"===L.tagName&&"string"==typeof L.attributes.rel&&("stylesheet"===L.attributes.rel||"preload"===L.attributes.rel&&"string"==typeof L.attributes.href&&"css"===ec(L.attributes.href))&&function(e,t,n){let r,i=!1;try{r=e.sheet}catch(e){return}if(r)return;let s=eh(()=>{i||(t(),i=!0)},n);e.addEventListener("load",()=>{ep(s),i=!0,t()})}(e,()=>{if(I){let t=eO(e,{doc:s,mirror:o,blockClass:a,blockSelector:l,unblockSelector:c,maskAllText:u,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:y,maskInputOptions:v,maskAttributeFn:_,maskTextFn:S,maskInputFn:b,slimDOMOptions:w,dataURLOptions:k,inlineImages:E,recordCanvas:T,preserveWhiteSpace:O,onSerialize:M,onIframeLoad:x,iframeLoadTimeout:C,onStylesheetLoad:I,stylesheetLoadTimeout:R,keepIframeSrcFn:A});t&&I(e,t)}},R),L}function eN(e){let t;let n=e[0],r=1;for(;r<e.length;){let i=e[r],s=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=s(n)):("call"===i||"optionalCall"===i)&&(n=s((...e)=>n.call(t,...e)),t=void 0)}return n}function eL(e,t,n=document){let r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}let eP="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.",eF={map:{},getId:()=>(console.error(eP),-1),getNode:()=>(console.error(eP),null),removeNodeFromMap(){console.error(eP)},has:()=>
4(console.error(eP),!1),reset(){console.error(eP)}};function eU(e,t,n={}){let r=null,i=0;return function(...s){let o=Date.now();i||!1!==n.leading||(i=o);let a=t-(o-i),l=this;a<=0||a>t?(r&&(function(...e){e1("clearTimeout")(...e)}(r),r=null),i=o,e.apply(l,s)):r||!1===n.trailing||(r=e3(()=>{i=!1===n.leading?0:Date.now(),r=null,e.apply(l,s)},a))}}function eB(e,t,n){try{if(!(t in e))return()=>{};let r=e[t],i=n(r);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch(e){return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(eF=new Proxy(eF,{get:(e,t,n)=>("map"===t&&console.error(eP),Reflect.get(e,t,n))}));let e$=Date.now;function eW(e){let t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:eN([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollLeft])||eN([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollLeft])||eN([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:eN([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollTop])||eN([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollTop])||eN([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollTop])||0}}function ej(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function eH(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function ez(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function eq(e,t,n,r,i){if(!e)return!1;let s=ez(e);if(!s)return!1;let o=eR(t,n);if(!i){let e=r&&s.matches(r);return o(s)&&!e}let a=eI(s,o),l=-1;return!(a<0)&&(r&&(l=eI(s,eR(null,r))),a>-1&&l<0||a<l)}function eX(e,t){return -2===t.getId(e)}function eK(e){return!!e.changedTouches}function eV(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function eG(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function eY(e){return!!eN([e,"optionalAccess",e=>e.shadowRoot])}/[1-9][0-9]{12}/.test(Date.now().toString())||(e$=()=>new Date().getTime());class eJ{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return(0,y.h)(this.styleIDMap.get(e),()=>-1)}has(e){return this.styleIDMap.has(e)}add(e,t){let n;return this.has(e)?this.getId(e):(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 eZ(e){let t=null;return eN([e,"access",e=>e.getRootNode,"optionalCall",e=>e(),"optionalAccess",e=>e.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function eQ(e){let t=e.ownerDocument;return!!t&&(t.contains(e)||function(e){let t=e.ownerDocument;if(!t)return!1;let n=function(e){let t,n=e;for(;t=eZ(n);)n=t;return n}(e);return t.contains(n)}(e))}let e0={};function e1(e){let t=e0[e];if(t)return t;let n=window.document,r=window[e];if(n&&"function"==typeof n.createElement)try{let t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(t)}catch(e){}return e0[e]=r.bind(window)}function e3(...e){return e1("setTimeout")(...e)}var e2=((u=e2||{})[u.DomContentLoaded=0]="DomContentLoaded",u[u.Load=1]="Load",u[u.FullSnapshot=2]="FullSnapshot",u[u.IncrementalSnapshot=3]="IncrementalSnapshot",u[u.Meta=4]="Meta",u[u.Custom=5]="Custom",u[u.Plugin=6]="Plugin",u),e5=((d=e5||{})[d.Mutation=0]="Mutation",d[d.MouseMove=1]="MouseMove",d[d.MouseInteraction=2]="MouseInteraction",d[d.Scroll=3]="Scroll",d[d.ViewportResize=4]="ViewportResize",d[d.Input=5]="Input",d[d.TouchMove=6]="TouchMove",d[d.MediaInteraction=7]="MediaInteraction",d[d.StyleSheetRule=8]="StyleSheetRule",d[d.CanvasMutation=9]="CanvasMutation",d[d.Font=10]="Font",d[d.Log=11]="Log",d[d.Drag=12]="Drag",d[d.StyleDeclaration=13]="StyleDeclaration",d[d.Selection=14]="Selection",d[d.AdoptedStyleSheet=15]="AdoptedStyleSheet",d[d.CustomElement=16]="CustomElement",d),e8=((h=e8||{})[h.MouseUp=0]="MouseUp",h[h.MouseDown=1]="MouseDown",h[h.Click=2]="Click",h[h.ContextMenu=3]="ContextMenu",h[h.DblClick=4]="DblClick",h[h.Focus=5]="Focus",h[h.Blur=6]="Blur",h[h.TouchStart=7]="TouchStart",h[h.TouchMove_Departed=8]="TouchMove_Departed",h[h.TouchEnd=9]="TouchEnd",h[h.TouchCancel=10]="TouchCancel",h),e9=((p=e9||{})[p.Mouse=0]="Mouse",p[p.Pen=1]="Pen",p[p.Touch=2]="Touch",p);class e6{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw Error("Position outside of list range");let t=this.head;for(let n=0;n<e;n++)t=function(e){let t;let n=e[0],r=1;for(;r<e.length;){let i=e[r],s=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=s(n)):("call"===i||"optionalCall"===i)&&(n=s((...e)=>n.call(t,...e)),t=void 0)}return n}([t,"optionalAccess",e=>e.next])||null;return t}addNode(e){let t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&"__ln"in e.previousSibling){let n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&
4(n.previous=t)}else if(e.nextSibling&&"__ln"in e.nextSibling&&e.nextSibling.__ln.previous){let n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){let t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}let e4=(e,t)=>`${e}@${t}`;class e7{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let e=[],t=new Set,n=new e6,r=e=>{let t=e,n=-2;for(;-2===n;)n=(t=t&&t.nextSibling)&&this.mirror.getId(t);return n},i=i=>{if(!i.parentNode||!eQ(i))return;let s=J(i.parentNode)?this.mirror.getId(eZ(i)):this.mirror.getId(i.parentNode),o=r(i);if(-1===s||-1===o)return n.addNode(i);let a=eO(i,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{eV(e,this.mirror)&&!eq(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),eG(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),eY(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{eq(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(e,t),e.contentWindow&&this.canvasManager.addWindow(e.contentWindow),this.shadowDomManager.observeAttachShadow(e))},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});a&&(e.push({parentId:s,nextId:o,node:a}),t.add(a.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet)(!tt(this.removes,e,this.mirror)||this.movedSet.has(e.parentNode))&&i(e);for(let e of this.addedSet)tn(this.droppedSet,e)||tt(this.removes,e,this.mirror)?tn(this.movedSet,e)?i(e):this.droppedSet.add(e):i(e);let s=null;for(;n.length;){let e=null;if(s){let t=this.mirror.getId(s.value.parentNode),n=r(s.value);-1!==t&&-1!==n&&(e=s)}if(!e){let t=n.tail;for(;t;){let n=t;if(t=t.previous,n){let t=this.mirror.getId(n.value.parentNode);if(-1===r(n.value))continue;if(-1!==t){e=n;break}{let t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let r=t.parentNode.host;if(-1!==this.mirror.getId(r)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}s=e.previous,n.removeNode(e.value),i(e.value)}let o={texts:this.texts.map(e=>({id:this.mirror.getId(e.node),value:e.value})).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{let{attributes:t}=e;if("string"==typeof t.style){let n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+r).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(o.texts.length||o.attributes.length||o.removes.length||o.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(o))},this.processMutation=e=>{if(!eX(e.target,this.mirror))switch(e.type){case"characterData":{let t=e.target.textContent;eq(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:eA(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,ez(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{let t=e.target,n=e.attributeName,r=e.target.getAttribute(n);if("value"===n){let n=ea(t),i=t.tagName;r=el(t,i,n);let s=en({maskInputOptions:this.maskInputOptions,tagName:i,type:n});r=er({isMasked:eA(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,s),element:t,value:r,maskInputFn:this.maskInputFn})}if(eq(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let i=this.attributeMap.get(e.target);
4if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(t.contentDocument)return;n="rr_src"}if(i||(i={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(i),this.attributeMap.set(e.target,i)),"type"===n&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!eC(t.tagName,n)&&(i.attributes[n]=ex(this.doc,ei(t.tagName),ei(n),r,t,this.maskAttributeFn),"style"===n)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}let n=this.unattachedDoc.createElement("span");for(let r of(e.oldValue&&n.setAttribute("style",e.oldValue),Array.from(t.style))){let e=t.style.getPropertyValue(r),s=t.style.getPropertyPriority(r);e!==n.style.getPropertyValue(r)||s!==n.style.getPropertyPriority(r)?""===s?i.styleDiff[r]=e:i.styleDiff[r]=[e,s]:i._unchangedStyles[r]=[e,s]}for(let e of Array.from(n.style))""===t.style.getPropertyValue(e)&&(i.styleDiff[e]=!1)}break}case"childList":if(eq(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let n=this.mirror.getId(t),r=J(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);eq(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||eX(t,this.mirror)||-1===this.mirror.getId(t)||(this.addedSet.has(t)?(te(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||function e(t,n){if(J(t))return!1;let r=n.getId(t);return!n.has(r)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||e(t.parentNode,n))}(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[e4(n,r)]?te(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!!(J(e.target)&&Z(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(eX(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[e4(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);!eq(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&(e.childNodes.forEach(e=>this.genAdds(e)),eY(e)&&e.shadowRoot.childNodes.forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(t=>{this[t]=e[t]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function te(e,t){e.delete(t),t.childNodes.forEach(t=>te(e,t))}function tt(e,t,n){return 0!==e.length&&function(e,t,n){let r=t.parentNode;for(;r;){let t=n.getId(r);if(e.some(e=>e.id===t))return!0;r=r.parentNode}return!1}(e,t,n)}function tn(e,t){return 0!==e.size&&function e(t,n){let{parentNode:r}=n;return!!r&&(!!t.has(r)||e(t,r))}(e,t)}let tr=e=>s?(...t)=>{try{return e(...t)}catch(e){if(s&&!0===s(e))return()=>{};throw e}}:e;function ti(e){let t;let n=e[0],r=1;for(;r<e.length;){let i=e[r],s=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=s(n)):("call"===i||"optionalCall"===i)&&(n=s((...e)=>n.call(t,...e)),t=void 0)}return n}let ts=[];function to(e){try{if("composedPath"in e){let t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function ta(e,t){let n=new e7;ts.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver,i=ti([window,"optionalAccess",e=>e.Zone,"optionalAccess",e=>e.__symbol__,"optionalCall",e=>e("MutationObserver")]);i&&window[i]&&(r=window[i]);let s=new r(tr(t=>{e.onMutation&&!1===e.onMutation(t)||n.processMutations.bind(n)(t)}));return s.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),s}function tl({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,sampling:o}){return eL("scroll",tr(eU(tr(o=>{let a=to(o);if(!a||eq(a,r,i,s,!0))return;let l=n.getId(a);if(a===t&&t.defaultView){let n=eW(t.defaultView);e({id:l,x:n.left,y:n.top})}else e({id:l,x:a.scrollLeft,y:a.scrollTop})}),o.scroll||100)),t)}let tc=["INPUT","TEXTAREA","SELECT"],tu=new WeakMap;function td(e){var t;return t=[],tm("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||tm("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||tm("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||tm("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule?t.unshift(Array.from(e.parentRule.cssRules).indexOf(e)):e.parentStyleSheet&&t.unshift(Array.from(e.parentStyleSheet.cssRules).indexOf(e)),t}function th(e,t,n){let r,i;return e?(e.ownerNode?r=t.getId(e.ownerNode):i=n.getId(e),{styleId:i,id:r}):{}}function tp({mirror:e,stylesheetManager:t},n){let r=null;r="#document"===n.nodeName?e.getId(n):e.getId(n.host);let i="#document"===n.nodeName?ti([n,"access",e=>e.defaultView,"optionalAccess",e=>e.Document]):ti([n,"access",e=>e.ownerDocument,"optionalAccess",e=>e.defaultView,"optionalAccess",e=>e.ShadowRoot]),s=ti([i,"optionalAccess",e=>e.prototype])?Object.getOwnPropertyDescriptor(ti([i,"optionalAccess",e=>e.prototype]),"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&i&&s?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get(){return ti([s,"access",e=>
4e.get,"optionalAccess",e=>e.call,"call",e=>e(this)])},set(e){let n=ti([s,"access",e=>e.set,"optionalAccess",e=>e.call,"call",t=>t(this,e)]);if(null!==r&&-1!==r)try{t.adoptStyleSheets(e,r)}catch(e){}return n}}),tr(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get:s.get,set:s.set})})):()=>{}}function tf(e,t={}){let n;let r=e.doc.defaultView;if(!r)return()=>{};e.recordDOM&&(n=ta(e,e.doc));let i=function({mousemoveCb:e,sampling:t,doc:n,mirror:r}){let i;if(!1===t.mousemove)return()=>{};let s="number"==typeof t.mousemove?t.mousemove:50,o="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500,a=[],l=eU(tr(t=>{let n=Date.now()-i;e(a.map(e=>(e.timeOffset-=n,e)),t),a=[],i=null}),o),c=tr(eU(tr(e=>{let t=to(e),{clientX:n,clientY:s}=eK(e)?e.changedTouches[0]:e;i||(i=e$()),a.push({x:n,y:s,id:r.getId(t),timeOffset:e$()-i}),l("undefined"!=typeof DragEvent&&e instanceof DragEvent?e5.Drag:e instanceof MouseEvent?e5.MouseMove:e5.TouchMove)}),s,{trailing:!1})),u=[eL("mousemove",c,n),eL("touchmove",c,n),eL("drag",c,n)];return tr(()=>{u.forEach(e=>e())})}(e),s=function({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,sampling:o}){if(!1===o.mouseInteraction)return()=>{};let a=!0===o.mouseInteraction||void 0===o.mouseInteraction?{}:o.mouseInteraction,l=[],c=null,u=t=>o=>{let a=to(o);if(eq(a,r,i,s,!0))return;let l=null,u=t;if("pointerType"in o){switch(o.pointerType){case"mouse":l=e9.Mouse;break;case"touch":l=e9.Touch;break;case"pen":l=e9.Pen}l===e9.Touch?e8[t]===e8.MouseDown?u="TouchStart":e8[t]===e8.MouseUp&&(u="TouchEnd"):e9.Pen}else eK(o)&&(l=e9.Touch);null!==l?(c=l,(u.startsWith("Touch")&&l===e9.Touch||u.startsWith("Mouse")&&l===e9.Mouse)&&(l=null)):e8[t]===e8.Click&&(l=c,c=null);let d=eK(o)?o.changedTouches[0]:o;if(!d)return;let h=n.getId(a),{clientX:p,clientY:f}=d;tr(e)({type:e8[u],id:h,x:p,y:f,...null!==l&&{pointerType:l}})};return Object.keys(e8).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]).forEach(e=>{let n=ei(e),r=u(e);if(window.PointerEvent)switch(e8[e]){case e8.MouseDown:case e8.MouseUp:n=n.replace("mouse","pointer");break;case e8.TouchStart:case e8.TouchEnd:return}l.push(eL(n,r,t))}),tr(()=>{l.forEach(e=>e())})}(e),o=tl(e),a=function({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return eL("resize",tr(eU(tr(()=>{let t=ej(),i=eH();(n!==t||r!==i)&&(e({width:Number(i),height:Number(t)}),n=t,r=i)}),200)),t)}(e,{win:r}),l=function({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,ignoreClass:o,ignoreSelector:a,maskInputOptions:l,maskInputFn:c,sampling:u,userTriggeredOnInput:d,maskTextClass:h,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:m}){function g(e){let n=to(e),u=e.isTrusted,g=n&&es(n.tagName);if("OPTION"===g&&(n=n.parentElement),!n||!g||0>tc.indexOf(g)||eq(n,r,i,s,!0))return;let v=n;if(v.classList.contains(o)||a&&v.matches(a))return;let _=ea(n),S=el(v,g,_),b=!1,w=en({maskInputOptions:l,tagName:g,type:_}),k=eA(n,h,f,p,m,w);("radio"===_||"checkbox"===_)&&(b=n.checked),S=er({isMasked:k,element:n,value:S,maskInputFn:c}),y(n,d?{text:S,isChecked:b,userTriggered:u}:{text:S,isChecked:b});let E=n.name;"radio"===_&&E&&b&&t.querySelectorAll(`input[type="radio"][name="${E}"]`).forEach(e=>{if(e!==n){let t=er({isMasked:k,element:e,value:el(e,g,_),maskInputFn:c});y(e,d?{text:t,isChecked:!b,userTriggered:!1}:{text:t,isChecked:!b})}})}function y(t,r){let i=tu.get(t);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){tu.set(t,r);let i=n.getId(t);tr(e)({...r,id:i})}}let v=("last"===u.input?["change"]:["input","change"]).map(e=>eL(e,tr(g),t)),_=t.defaultView;if(!_)return()=>{v.forEach(e=>e())};let S=_.Object.getOwnPropertyDescriptor(_.HTMLInputElement.prototype,"value"),b=[[_.HTMLInputElement.prototype,"value"],[_.HTMLInputElement.prototype,"checked"],[_.HTMLSelectElement.prototype,"value"],[_.HTMLTextAreaElement.prototype,"value"],[_.HTMLSelectElement.prototype,"selectedIndex"],[_.HTMLOptionElement.prototype,"selected"]];return S&&S.set&&v.push(...b.map(e=>(function e(t,n,r,i,s=window){let o=s.Object.getOwnPropertyDescriptor(t,n);return s.Object.defineProperty(t,n,i?r:{set(e){e3(()=>{r.set.call(this,e)},0),o&&o.set&&o.set.call(this,e)}}),()=>e(t,n,o||{},!0)})(e[0],e[1],{set(){tr(g)({target:this,isTrusted:!1})}},!1,_))),tr(()=>
4{v.forEach(e=>e())})}(e),c=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:i,sampling:s,doc:o}){let a=tr(o=>eU(tr(s=>{let a=to(s);if(!a||eq(a,t,n,r,!0))return;let{currentTime:l,volume:c,muted:u,playbackRate:d}=a;e({type:o,id:i.getId(a),currentTime:l,volume:c,muted:u,playbackRate:d})}),s.media||500)),l=[eL("play",a(0),o),eL("pause",a(1),o),eL("seeked",a(2),o),eL("volumechange",a(3),o),eL("ratechange",a(4),o)];return tr(()=>{l.forEach(e=>e())})}(e),u=()=>{},d=()=>{},h=()=>{},p=()=>{};e.recordDOM&&(u=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){let i,s;if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};let o=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:tr((r,i,s)=>{let[o,a]=s,{id:l,styleId:c}=th(i,t,n.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,adds:[{rule:o,index:a}]}),r.apply(i,s)})});let a=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:tr((r,i,s)=>{let[o]=s,{id:a,styleId:l}=th(i,t,n.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,removes:[{index:o}]}),r.apply(i,s)})}),r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:tr((r,i,s)=>{let[o]=s,{id:a,styleId:l}=th(i,t,n.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,replace:o}),r.apply(i,s)})})),r.CSSStyleSheet.prototype.replaceSync&&(s=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(s,{apply:tr((r,i,s)=>{let[o]=s,{id:a,styleId:l}=th(i,t,n.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,replaceSync:o}),r.apply(i,s)})}));let l={};tg("CSSGroupingRule")?l.CSSGroupingRule=r.CSSGroupingRule:(tg("CSSMediaRule")&&(l.CSSMediaRule=r.CSSMediaRule),tg("CSSConditionRule")&&(l.CSSConditionRule=r.CSSConditionRule),tg("CSSSupportsRule")&&(l.CSSSupportsRule=r.CSSSupportsRule));let c={};return Object.entries(l).forEach(([r,i])=>{c[r]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=new Proxy(c[r].insertRule,{apply:tr((r,i,s)=>{let[o,a]=s,{id:l,styleId:c}=th(i.parentStyleSheet,t,n.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,adds:[{rule:o,index:[...td(i),a||0]}]}),r.apply(i,s)})}),i.prototype.deleteRule=new Proxy(c[r].deleteRule,{apply:tr((r,i,s)=>{let[o]=s,{id:a,styleId:l}=th(i.parentStyleSheet,t,n.styleMirror);return(a&&-1!==a||l&&-1!==l)&&e({id:a,styleId:l,removes:[{index:[...td(i),o]}]}),r.apply(i,s)})})}),tr(()=>{r.CSSStyleSheet.prototype.insertRule=o,r.CSSStyleSheet.prototype.deleteRule=a,i&&(r.CSSStyleSheet.prototype.replace=i),s&&(r.CSSStyleSheet.prototype.replaceSync=s),Object.entries(l).forEach(([e,t])=>{t.prototype.insertRule=c[e].insertRule,t.prototype.deleteRule=c[e].deleteRule})})}(e,{win:r}),d=tp(e,e.doc),h=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:i}){let s=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:tr((i,o,a)=>{let[l,c,u]=a;if(n.has(l))return s.apply(o,[l,c,u]);let{id:d,styleId:h}=th(ti([o,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(d&&-1!==d||h&&-1!==h)&&e({id:d,styleId:h,set:{property:l,value:c,priority:u},index:td(o.parentRule)}),i.apply(o,a)})});let o=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:tr((i,s,a)=>{let[l]=a;if(n.has(l))return o.apply(s,[l]);let{id:c,styleId:u}=th(ti([s,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(c&&-1!==c||u&&-1!==u)&&e({id:c,styleId:u,remove:{property:l},index:td(s.parentRule)}),i.apply(s,a)})}),tr(()=>{i.CSSStyleDeclaration.prototype.setProperty=s,i.CSSStyleDeclaration.prototype.removeProperty=o})}(e,{win:r}),e.collectFonts&&(p=function({fontCb:e,doc:t}){let n=t.defaultView;if(!n)return()=>{};let r=[],i=new WeakMap,s=n.FontFace;n.FontFace=function(e,t,n){let r=new s(e,t,n);return i.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};let o=eB(t.fonts,"add",function(t){return function(n){return e3(tr(()=>{let t=i.get(n);t&&(e(t),i.delete(n))}),0),t.apply(this,[n])}});return r.push(()=>{n.FontFace=s}),r.push(o),tr(()=>
4{r.forEach(e=>e())})}(e)));let f=function(e){let{doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,selectionCb:o}=e,a=!0,l=tr(()=>{let e=t.getSelection();if(!e||a&&ti([e,"optionalAccess",e=>e.isCollapsed]))return;a=e.isCollapsed||!1;let l=[],c=e.rangeCount||0;for(let t=0;t<c;t++){let{startContainer:o,startOffset:a,endContainer:c,endOffset:u}=e.getRangeAt(t);eq(o,r,i,s,!0)||eq(c,r,i,s,!0)||l.push({start:n.getId(o),startOffset:a,end:n.getId(c),endOffset:u})}o({ranges:l})});return l(),eL("selectionchange",l)}(e),m=function({doc:e,customElementCb:t}){let n=e.defaultView;return n&&n.customElements?eB(n.customElements,"define",function(e){return function(n,r,i){try{t({define:{name:n}})}catch(e){}return e.apply(this,[n,r,i])}}):()=>{}}(e),g=[];for(let t of e.plugins)g.push(t.observer(t.callback,r,t.options));return tr(()=>{ts.forEach(e=>e.reset()),ti([n,"optionalAccess",e=>e.disconnect,"call",e=>e()]),i(),s(),o(),a(),l(),c(),u(),d(),h(),p(),f(),m(),g.forEach(e=>e())})}function tm(e){return void 0!==window[e]}function tg(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class ty{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){let i=n||this.getIdToRemoteIdMap(e),s=r||this.getRemoteIdToIdMap(e),o=i.get(t);return o||(o=this.generateIdFn(),i.set(t,o),s.set(o,t)),o}getIds(e,t){let n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,n,r))}
4getRemoteId(e,t,n){let r=n||this.getRemoteIdToIdMap(e);return"number"!=typeof t?t:r.get(t)||-1}getRemoteIds(e,t){let n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,n))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}function tv(e){let t;let n=e[0],r=1;for(;r<e.length;){let i=e[r],s=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=s(n)):("call"===i||"optionalCall"===i)&&(n=s((...e)=>n.call(t,...e)),t=void 0)}return n}class t_{constructor(){this.crossOriginIframeMirror=new ty(eg),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class tS{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new ty(eg),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new ty(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),tv([this,"access",e=>e.loadListener,"optionalCall",t=>t(e)]),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){if("rrweb"!==e.data.type||e.origin!==e.data.origin||!e.source)return;let t=this.crossOriginIframeMap.get(e.source);if(!t)return;let n=this.transformCrossOriginEvent(t,e.data.event);n&&this.wrappedEmit(n,e.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case e2.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:e2.IncrementalSnapshot,data:{source:e5.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case e2.Meta:case e2.Load:case e2.DomContentLoaded:break;case e2.Plugin:return t;case e2.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case e2.IncrementalSnapshot:switch(t.data.source){case e5.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);let n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)}),t.data.removes.forEach(t=>{this.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,["id"])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case e5.Drag:case e5.TouchMove:case e5.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case e5.ViewportResize:return!1;case e5.MediaInteraction:case e5.MouseInteraction:case e5.Scroll:case e5.CanvasMutation:case e5.Input:return this.replaceIds(t.data,e,["id"]),t;case e5.StyleSheetRule:case e5.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case e5.Font:return t;case e5.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case e5.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),tv([t,"access",e=>e.data,"access",e=>e.styles,"optionalAccess",e=>e.forEach,"call",t=>t(t=>{this.replaceStyleIds(t,e,["styleId"])})]),t}}return!1}replace(e,t,n,r){for(let i of r)(Array.isArray(t[i])||"number"==typeof t[i])&&(Array.isArray(t[i])?t[i]=e.getIds(n,t[i]):t[i]=e.getId(n,t[i]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEac
4h(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===m.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class tb{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class tw{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(!Z(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);let n=ta({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(tl({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),e3(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(tp({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){let n=this;this.restoreHandlers.push(eB(e.prototype,"attachShadow",function(e){return function(r){let i=e.call(this,r);return this.shadowRoot&&eQ(this)&&n.addShadowRoot(this.shadowRoot,t),i}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class tk{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class tE{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new eJ,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;let n={id:t,styleIds:[]},r=[];for(let t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),r.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:ee(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 tT{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){let n=this.nodeMap.get(e);return n&&Array.from(n).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,function(...e){e1("requestAnimationFrame")(...e)}(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}try{if(2!==Array.from([1],e=>2*e)[0]){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=(0,v.x)([e,"access",e=>e.contentWindow,"optionalAccess",e=>e.Array,"access",e=>e.from])||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}let tM=new et;function tx(e={}){let t;let{emit:n,checkoutEveryNms:r,checkoutEveryNth:i,blockClass:l="rr-block",blockSelector:c=null,unblockSelector:u=null,ignoreClass:d="rr-ignore",ignoreSelector:h=null,maskAllText:p=!1,maskTextClass:f="rr-mask",unmaskTextClass:m=null,maskTextSelector:g=null,unmaskTextSelector:y=null,inlineStylesheet:_=!0,maskAllInputs:S,maskInputOptions:b,slimDOMOptions:w,maskAttributeFn:k,maskInputFn:E,maskTextFn:T,maxCanvasSize:M=null,packFn:x,sampling:C={},dataURLOptions:I={},mousemoveWait:R,recordDOM:A=!0,recordCanvas:D=!1,recordCrossOriginIframes:O=!1,recordAfter:N="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:L=!1,collectFonts:P=!1,inlineImages:F=!1,plugins:U,keepIframeSrcFn:B=()=>!1,ignoreCSSAttributes:$=new Set([]),errorHandler:W,onMutation:j,getCanvasManager:H}=e;s=W;let z=!O||window.parent===window,q=!1;if(!z)try{window.parent.document&&(q=!1)}catch(e){q=!0}if(z&&!n)throw Error("emit function is required");if(!z&&!q)return()=>{};void 0!==R&&void 0===C.mousemove&&(C.mousemove=R),tM.reset();let X=!0===S?{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!==b?b:{},K=!0===w||"all"===w?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===w,headMetaDescKeywords:"all"===w}:w||{};!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw TypeError("1 argument is required");do if(this===t)return!0;while(t=t&&t.parentNode);return!1})}();let V=0,G=e=>{for(let t of U||[])t.eventProcessor&&(e=t.eventProcessor(e));return x&&!q&&(e=x(e)),e};o=(e,s)=>{if(e.timestamp=e$(),(0,v.x)([ts,"access",e=>e[0],"optionalAccess",e=>e.isFrozen,"call",e=>e()])&&e.type!==e2.FullSnapshot&&!(e.type===e2.IncrementalSnapshot&&e.data.source===e5.Mutation)&&ts.forEac
4h(e=>e.unfreeze()),z)(0,v.x)([n,"optionalCall",t=>t(G(e),s)]);else if(q){let t={type:"rrweb",event:G(e),origin:window.location.origin,isCheckout:s};window.parent.postMessage(t,"*")}if(e.type===e2.FullSnapshot)t=e,V=0;else if(e.type===e2.IncrementalSnapshot){if(e.data.source===e5.Mutation&&e.data.isAttachIframe)return;V++;let n=i&&V>=i,s=r&&t&&e.timestamp-t.timestamp>r;(n||s)&&es(!0)}};let Y=e=>{o({type:e2.IncrementalSnapshot,data:{source:e5.Mutation,...e}})},J=e=>o({type:e2.IncrementalSnapshot,data:{source:e5.Scroll,...e}}),Z=e=>o({type:e2.IncrementalSnapshot,data:{source:e5.CanvasMutation,...e}}),Q=new tE({mutationCb:Y,adoptedStyleSheetCb:e=>o({type:e2.IncrementalSnapshot,data:{source:e5.AdoptedStyleSheet,...e}})}),ee="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new t_:new tS({mirror:tM,mutationCb:Y,stylesheetManager:Q,recordCrossOriginIframes:O,wrappedEmit:o});for(let e of U||[])e.getMirror&&e.getMirror({nodeMirror:tM,crossOriginIframeMirror:ee.crossOriginIframeMirror,crossOriginIframeStyleMirror:ee.crossOriginIframeStyleMirror});let en=new tT,er=function(e,t){try{return e?e(t):new tk}catch(e){return console.warn("Unable to initialize CanvasManager"),new tk}}(H,{mirror:tM,win:window,mutationCb:e=>o({type:e2.IncrementalSnapshot,data:{source:e5.CanvasMutation,...e}}),recordCanvas:D,blockClass:l,blockSelector:c,unblockSelector:u,maxCanvasSize:M,sampling:C.canvas,dataURLOptions:I,errorHandler:W}),ei="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new tb:new tw({mutationCb:Y,scrollCb:J,bypassOptions:{onMutation:j,blockClass:l,blockSelector:c,unblockSelector:u,maskAllText:p,maskTextClass:f,unmaskTextClass:m,maskTextSelector:g,unmaskTextSelector:y,inlineStylesheet:_,maskInputOptions:X,dataURLOptions:I,maskAttributeFn:k,maskTextFn:T,maskInputFn:E,recordCanvas:D,inlineImages:F,sampling:C,slimDOMOptions:K,iframeManager:ee,stylesheetManager:Q,canvasManager:er,keepIframeSrcFn:B,processedNodeManager:en},mirror:tM}),es=(e=!1)=>{if(!A)return;o({type:e2.Meta,data:{href:window.location.href,width:eH(),height:ej()}},e),Q.reset(),ei.init(),ts.forEach(e=>e.lock());let t=function(e,t){let{mirror:n=new et,blockClass:r="rr-block",blockSelector:i=null,unblockSelector:s=null,maskAllText:o=!1,maskTextClass:a="rr-mask",unmaskTextClass:l=null,maskTextSelector:c=null,unmaskTextSelector:u=null,inlineStylesheet:d=!0,inlineImages:h=!1,recordCanvas:p=!1,maskAllInputs:f=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOM:v=!1,dataURLOptions:_,preserveWhiteSpace:S,onSerialize:b,onIframeLoad:w,iframeLoadTimeout:k,onStylesheetLoad:E,stylesheetLoadTimeout:T,keepIframeSrcFn:M=()=>!1}=t||{};return eO(e,{doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,maskAllText:o,maskTextClass:a,unmaskTextClass:l,maskTextSelector:c,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===f?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===f?{}:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===v,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===v?{}:v,dataURLOptions:_,inlineImages:h,recordCanvas:p,preserveWhiteSpace:S,onSerialize:b,onIframeLoad:w,iframeLoadTimeout:k,onStylesheetLoad:E,stylesheetLoadTimeout:T,keepIframeSrcFn:M,newlyAddedElement:!1})}(document,{mirror:tM,blockClass:l,blockSelector:c,unblockSelector:u,maskAllText:p,maskTextClass:f,unmaskTextClass:m,maskTextSelector:g,unmaskTextSelector:y,inlineStylesheet:_,maskAllInputs:X,maskAttributeFn:k,maskInputFn:E,maskTextFn:T,slimDOM:K,dataURLOptions:I,recordCanvas:D,inlineImages:F,onSerialize:e=>{eV(e,tM)&&ee.addIframe(e),eG(e,tM)&&Q.trackLinkElement(e),eY(e)&&ei.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{ee.attachIframe(e,t),e.contentWindow&&er.addWindow(e.contentWindow),ei.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{Q.attachLinkElement(e,t)},keepIframeSrcFn:B});if(!t)return console.warn("Failed to snapshot the document");o({type:e2.FullSnapshot,data:{node:t,initialOffset:eW(window)}}
4),ts.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Q.adoptStyleSheets(document.adoptedStyleSheets,tM.getId(document))};a=es;try{let e=[],t=e=>tr(tf)({onMutation:j,mutationCb:Y,mousemoveCb:(e,t)=>o({type:e2.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>o({type:e2.IncrementalSnapshot,data:{source:e5.MouseInteraction,...e}}),scrollCb:J,viewportResizeCb:e=>o({type:e2.IncrementalSnapshot,data:{source:e5.ViewportResize,...e}}),inputCb:e=>o({type:e2.IncrementalSnapshot,data:{source:e5.Input,...e}}),mediaInteractionCb:e=>o({type:e2.IncrementalSnapshot,data:{source:e5.MediaInteraction,...e}}),styleSheetRuleCb:e=>o({type:e2.IncrementalSnapshot,data:{source:e5.StyleSheetRule,...e}}),styleDeclarationCb:e=>o({type:e2.IncrementalSnapshot,data:{source:e5.StyleDeclaration,...e}}),canvasMutationCb:Z,fontCb:e=>o({type:e2.IncrementalSnapshot,data:{source:e5.Font,...e}}),selectionCb:e=>{o({type:e2.IncrementalSnapshot,data:{source:e5.Selection,...e}})},customElementCb:e=>{o({type:e2.IncrementalSnapshot,data:{source:e5.CustomElement,...e}})},blockClass:l,ignoreClass:d,ignoreSelector:h,maskAllText:p,maskTextClass:f,unmaskTextClass:m,maskTextSelector:g,unmaskTextSelector:y,maskInputOptions:X,inlineStylesheet:_,sampling:C,recordDOM:A,recordCanvas:D,inlineImages:F,userTriggeredOnInput:L,collectFonts:P,doc:e,maskAttributeFn:k,maskInputFn:E,maskTextFn:T,keepIframeSrcFn:B,blockSelector:c,unblockSelector:u,slimDOMOptions:K,dataURLOptions:I,mirror:tM,iframeManager:ee,stylesheetManager:Q,shadowDomManager:ei,processedNodeManager:en,canvasManager:er,ignoreCSSAttributes:$,plugins:(0,v.x)([U,"optionalAccess",e=>e.filter,"call",e=>e(e=>e.observer),"optionalAccess",e=>e.map,"call",e=>e(e=>({observer:e.observer,options:e.options,callback:t=>o({type:e2.Plugin,data:{plugin:e.name,payload:t}})}))])||[]},{});ee.addLoadListener(n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}});let n=()=>{es(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(eL("DOMContentLoaded",()=>{o({type:e2.DomContentLoaded,data:{}}),"DOMContentLoaded"===N&&n()})),e.push(eL("load",()=>
4{o({type:e2.Load,data:{}}),"load"===N&&n()},window))),()=>{e.forEach(e=>e()),en.destroy(),a=void 0,s=void 0}}catch(e){console.warn(e)}}tx.mirror=tM,tx.takeFullSnapshot=function(e){if(!a)throw Error("please take full snapshot after start recording");a(e)};let tC="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,tI=["info","warn","error","log"],tR="[Replay] ";function tA(e,t="info"){(0,S.n)({category:"console",data:{logger:"replay"},level:t,message:`${tR}${e}`},{level:t})}let tD=function(){let e=!1,t=!1,n={exception:()=>void 0,infoTick:()=>void 0,setConfig:n=>{e=n.captureExceptions,t=n.traceInternals}};return tC?(tI.forEach(e=>{n[e]=(...n)=>{b.kg[e](tR,...n),t&&tA(n.join(""),(0,w.V)(e))}}),n.exception=(r,...i)=>{i.length&&n.error&&n.error(...i),b.kg.error(tR,r),e?(0,k.Tb)(r):t&&tA(r,"error")},n.infoTick=(...e)=>{b.kg.info(tR,...e),t&&setTimeout(()=>tA(e[0]),0)}):tI.forEach(e=>{n[e]=()=>void 0}),n}();function tO(e){return e>9999999999?e:1e3*e}function tN(e){return e>9999999999?e/1e3:e}function tL(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:e2.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:(0,E.Fv)(t,10,1e3)}}),"console"===t.category)))}function tP(e){return e.closest("button,a")||e}function tF(e){let t=tU(e);return t&&t instanceof Element?tP(t):t}function tU(e){return"object"==typeof e&&e&&"target"in e?e.target:e}let tB=new Set([e5.Mutation,e5.StyleSheetRule,e5.StyleDeclaration,e5.AdoptedStyleSheet,e5.CanvasMutation,e5.Selection,e5.MediaInteraction]);class t${constructor(e,t,n=tL){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(){var e;let t=(e=()=>{this._lastMutation=tj()},l||(l=[],(0,T.hl)(X,"open",function(e){return function(...t){if(l)try{l.forEach(e=>e())}catch(e){}return e.apply(X,t)}})),l.push(e),()=>{let t=l?l.indexOf(e):-1;t>-1&&l.splice(t,1)});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){var n;if(n=this._ignoreSelector,!tW.includes(t.tagName)||"INPUT"===t.tagName&&!["submit","button"].includes(t.getAttribute("type")||"")||"A"===t.tagName&&(t.hasAttribute("download")||t.hasAttribute("target")&&"_self"!==t.getAttribute("target"))||n&&t.matches(n)||!(e.data&&"number"==typeof e.data.nodeId&&e.timestamp))return;let r={timestamp:tN(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===r.node&&1>Math.abs(e.timestamp-r.timestamp))||(this._clicks.push(r),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=tN(e)}registerScroll(e=Date.now()){this._lastScroll=tN(e)}registerClick(e){let t=tP(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach(e=>{e.clickCount++})}_getClicks(e){return this._clicks.filter(t=>t.node===e)}_checkClicks(){let e=[],t=tj();for(let n of(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)}),e)){let e=this._clicks.indexOf(n);e>-1&&(this._generateBreadcrumbs(n),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){let t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,{clickCount:i,clickBreadcrumb:s}=e;if(!n&&!r){let n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",o={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.slowClickDetected",data:{...s.data,url:X.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:i||1}};this._addBreadcrumbEvent(t,o);return}if(i>1){let e={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.multiClick",data:{...s.data,url:X.location.href,route:t.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=(0,W.iK)(()=>this._checkClicks(),1e3)}}let tW=["A","BUTTON","INPUT"];function tj(){return Date.now()/1e3}function tH(e){return{timestamp:Date.now()/1e3,type:"default",...e}}(f=g||(g={}))[f.Document=0]="Document",f[f.DocumentType=1]="DocumentType",f[f.Element=2]="Element",f[f.Text=3]="Text",f[f.CDATA=4]="CDATA",f[f.Comment=5]="Comment";let tz=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]),tq=e=>t=>{if(!e.isEnabled())return;let n=function(e){let{target:t,message:n}=function(e){let t;let n="click"===e.name,r=null;try{r=n?tF(e.event):tU(e.event),t=(0,M.Rt)(r,{maxStringLength:200})||"<unknown>"}catch(e){t="<unknown>"}return{target:r,message:t}}(e);return tH({category:`ui.${e.name}
4`,...tX(t,n)})}(t);if(!n)return;let r="click"===t.name,i=r?t.event:void 0;r&&e.clickDetector&&i&&i.target&&!i.altKey&&!i.metaKey&&!i.ctrlKey&&!i.shiftKey&&function(e,t,n){e.handleClick(t,n)}(e.clickDetector,n,tF(t.event)),tL(e,n)};function tX(e,t){let n=tx.mirror.getId(e),r=n&&tx.mirror.getNode(n),i=r&&tx.mirror.getMeta(r),s=i&&i.type===g.Element?i:null;return{message:t,data:s?{nodeId:n,node:{id:n,tagName:s.tagName,textContent:Array.from(s.childNodes).map(e=>e.type===g.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(""),attributes:function(e){let t={};for(let n in!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]),e)if(tz.has(n)){let r=n;("data-testid"===n||"data-test-id"===n)&&(r="testId"),t[r]=e[n]}return t}(s.attributes)}}:{}}}let tK={resource:function(e){let{entryType:t,initiatorType:n,name:r,responseEnd:i,startTime:s,decodedBodySize:o,encodedBodySize:a,responseStatus:l,transferSize:c}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:tY(s),end:tY(i),name:r,data:{size:c,statusCode:l,decodedBodySize:o,encodedBodySize:a}}},paint:function(e){let{duration:t,entryType:n,name:r,startTime:i}=e,s=tY(i);return{type:n,name:r,start:s,end:s+t,data:void 0}},navigation:function(e){let{entryType:t,name:n,decodedBodySize:r,duration:i,domComplete:s,encodedBodySize:o,domContentLoadedEventStart:a,domContentLoadedEventEnd:l,domInteractive:c,loadEventStart:u,loadEventEnd:d,redirectCount:h,startTime:p,transferSize:f,type:m}=e;return 0===i?null:{type:`${t}.${m}`,start:tY(p),end:tY(s),name:n,data:{size:f,decodedBodySize:r,encodedBodySize:o,duration:i,domInteractive:c,domContentLoadedEventStart:a,domContentLoadedEventEnd:l,loadEventStart:u,loadEventEnd:d,domComplete:s,redirectCount:h}}}};function tV(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}function tG(e){let t=tK[e.entryType];return t?t(e):null}function tY(e){return((x.Z1||X.performance.timeOrigin)+e)/1e3}function tJ(e){let t=e.entries[e.entries.length-1];return t1(e,"largest-contentful-paint",t&&t.element?[t.element]:void 0)}function tZ(e){let t=[],n=[];for(let r of e.entries)if(void 0!==r.sources){let e=[];for(let t of r.sources)if(t.node){n.push(t.node);let r=tx.mirror.getId(t.node);r&&e.push(r)}t.push({value:r.value,nodeIds:e.length?e:void 0})}return t1(e,"cumulative-layout-shift",n,t)}function tQ(e){let t=e.entries[e.entries.length-1];return t1(e,"first-input-delay",t&&t.target?[t.target]:void 0)}function t0(e){let t=e.entries[e.entries.length-1];return t1(e,"interaction-to-next-paint",t&&t.target?[t.target]:void 0)}function t1(e,t,n,r){let i=e.value,s=e.rating,o=tY(i);return{type:"web-vital",name:t,start:o,end:o,data:{value:i,size:i,rating:s,nodeIds:n?n.map(e=>tx.mirror.getId(e)):void 0,attributions:r}}}class t3 extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class t2{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){let t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>2e7)throw new t3;this.events.push(e)}finish(){return new Promise(e=>{let t=this.events;this.clear(),e(JSON.stringify(t))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let e=this.events.map(e=>e.timestamp).sort()[0];return e?tO(e):null}}class t5{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((e,t)=>{this._worker.addEventListener("message",({data:n})=>{n.success?e():t()},{once:!0}),this._worker.addEventListener("error",e=>{t(e)},{once:!0})})),this._ensureReadyPromise}destroy(){tC&&tD.info("Destroying compression worker"),this._worker.terminate()}postMessage(e,t){let n=this._getAndIncrementId();return new Promise((r,i)=>{let s=({data:t})=>{if(t.method===e&&t.id===n){if(this._worker.removeEventListener("message",s),!t.success){tC&&tD.error("Error in compression worker: ",t.response),i(Error("Error in compression worker"));return}r(t.response)}};this._worker.addEventListener("message",s),this._worker.postMessage({id:n,method:e,arg:t})})}_getAndIncrementId(){return this._id++}}class t8{constructor(e){this._worker=new t5(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()}
4addEvent(e){let t=tO(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);let n=JSON.stringify(e);return(this._totalSize+=n.length,this._totalSize>2e7)?Promise.reject(new t3):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{tC&&tD.exception(e,'Sending "clear" message to worker failed',e)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){let e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class t9{constructor(e){this._fallback=new t2,this._compression=new t8(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){tC&&tD.exception(e,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){let{events:e,hasCheckout:t,waitForCheckout:n}=this._fallback,r=[];for(let t of e)r.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=n,this._used=this._compression;try{await Promise.all(r),this._fallback.clear()}catch(e){tC&&tD.exception(e,"Failed to add events when switching buffers.")}}}function t6(){try{return"sessionStorage"in X&&!!X.sessionStorage}catch(e){return!1}}function t4(e){return void 0!==e&&Math.random()<e}function t7(e){let t=Date.now(),n=e.id||(0,C.DM)(),r=e.started||t,i=e.lastActivity||t;return{id:n,started:r,lastActivity:i,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId}}function ne(e){if(t6())try{X.sessionStorage.setItem(K,JSON.stringify(e))}catch(e){}}function nt({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){let i=t7({sampled:t4(e)?"session":!!t&&"buffer",previousSessionId:r});return n&&ne(i),i}function nn(e,t,n=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=n}function nr(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return nn(e.started,t,r)||nn(e.lastActivity,n,r)}function ni(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!!nr(e,{sessionIdleExpire:t,maxReplayDuration:n})&&("buffer"!==e.sampled||0!==e.segmentId)}function ns({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){let i=r.stickySession&&function(){if(!t6())return null;try{let e=X.sessionStorage.getItem(K);if(!e)return null;let t=JSON.parse(e);return tC&&tD.infoTick("Loading existing session"),t7(t)}catch(e){return null}}();return i?ni(i,{sessionIdleExpire:e,maxReplayDuration:t})?(tC&&tD.infoTick("Session in sessionStorage is expired, creating new one..."),nt(r,{previousSessionId:i.id})):i:(tC&&tD.infoTick("Creating new session"),nt(r,{previousSessionId:n}))}function no(e,t,n){return!!nl(e,t)&&(na(e,t,n),!0)}async function na(e,t,n){let{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;let i="buffer"===e.recordingMode;try{n&&i&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);let s=e.getOptions(),o=function(e,t){try{if("function"==typeof t&&e.type===e2.Custom)return t(e)}catch(e){return tC&&tD.exception(e,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}(t,s.beforeAddRecordingEvent);if(!o)return;return await r.addEvent(o)}catch(s){let t=s&&s instanceof t3;if(t&&i)return r.clear(),r.waitForCheckout=!0,null;e.handleException(s),await e.stop({reason:t?"addEventSizeExceeded":"addEvent"});let n=(0,I.s3)();n&&n.recordDroppedEvent("internal_sdk_error","replay")}}
4function nl(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;let n=tO(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now())&&(!(n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(tC&&tD.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1))}function nc(e){return"transaction"===e.type}function nu(e){return"feedback"===e.type}function nd(e){return!!e.category}function nh(){let e=(0,I.nZ)().getPropagationContext().dsc;e&&delete e.replay_id;let t=(0,R.HN)();if(t){let e=(0,A.jC)(t);delete e.replay_id}}function np(e,t){return t.map(({type:t,start:n,end:r,name:i,data:s})=>{let o=e.throttledAddEvent({type:e2.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:i,startTimestamp:n,endTimestamp:r,data:s}}});return"string"==typeof o?Promise.resolve(null):o})}function nf(e,t){var n;e.isEnabled()&&null!==t&&(n=t.name,(!tC||!e.getOptions()._experiments.traceInternals)&&(0,D.W)(n,(0,I.s3)())||e.addUpdate(()=>(np(e,[t]),!0)))}function nm(e){if(!e)return;let 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){let n=nk(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch(e){}}function ng(e){if(!e)return;let t=parseInt(e,10);return isNaN(t)?void 0:t}function ny(e){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[nk(e)];if(!e)return[void 0]}catch(t){return tC&&tD.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return tC&&tD.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function nv(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};let n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function n_(e,t){if(!t)return null;let{startTimestamp:n,endTimestamp:r,url:i,method:s,statusCode:o,request:a,response:l}=t;return{type:e,start:n/1e3,end:r/1e3,name:i,data:(0,T.Jr)({method:s,statusCode:o,request:a,response:l})}}function nS(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function nb(e,t,n){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};let r={headers:e,size:t},{body:i,warnings:s}=function(e){if(!e||"string"!=typeof e)return{body:e};let t=e.length>15e4,n=function(e){let t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}(e);if(t){let t=e.slice(0,15e4);return n?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch(e){}return{body:e}}(n);return r.body=i,s&&s.length>0&&(r._meta={warnings:s}),r}function nw(e,t){return Object.entries(e).reduce((n,[r,i])=>{let s=r.toLowerCase();return t.includes(s)&&e[r]&&(n[s]=i),n},{})}function nk(e){return new URLSearchParams(e).toString()}function nE(e,t){let n=function(e,t=X.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(X.location.origin))return e;let n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;let r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}(e);return(0,O.U0)(n,t)}async function nT(e,t,n){try{let r=await nM(e,t,n),i=n_("resource.fetch",r);nf(n.replay,i)}catch(e){tC&&tD.exception(e,"Failed to capture fetch breadcrumb")}}async function nM(e,t,n){let r=Date.now(),{startTimestamp:i=r,endTimestamp:s=r}=t,{url:o,method:a,status_code:l=0,request_body_size:c,response_body_size:u}=e.data,d=nE(o,n.networkDetailAllowUrls)&&!nE(o,n.networkDetailDenyUrls);return{startTimestamp:i,endTimestamp:s,url:o,method:a,statusCode:l,request:d?function({networkCaptureBodies:e,networkRequestHeaders:t},n,r){let i=n?1===n.length&&"string"!=typeof n[0]?nA(n[0],t):2===n.length?nA(n[1],t):{}:{};if(!e)return nb(i,r,void 0);let[s,o]=ny(nI(n)),a=nb(i,r,s);return o?nv(a,o):a}(n,t.input,c):nS(c),response:await nx(d,n,t.response,u)}}async function nx(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,i){if(!e&&void 0!==i)return nS(i);let s=r?nR(r.headers,n):{};if(!r||!t&&void 0!==i)return nb(s,i,void 0);let[o,a]=await nC(r),l=function(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:i}){try{let s=e&&e.length&&void 0===n?nm(e):n;if(!r)return nS(s);if(t)return nb(i,s,e);return nb(i,s,void 0)}catch(e){return tC&&tD.exception(e,"Failed to serialize response body"),nb(i,n,void 0)}}(o,{networkCaptureBodies:t,responseBodySize:i,captureDetails:e,headers:s});return a?nv(l,a):l}async function nC(e){let t=function(e){try{return e.clone()}catch(e){tC&&tD.exception(e,"Failed to clone response body")}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];
4try{return[await new Promise((e,n)=>{let r=(0,W.iK)(()=>n(Error("Timeout while trying to read response body")),500);nD(t).then(t=>e(t),e=>n(e)).finally(()=>clearTimeout(r))})]}catch(e){if(e instanceof Error&&e.message.indexOf("Timeout")>-1)return tC&&tD.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"];return tC&&tD.exception(e,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"]}}function nI(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}function nR(e,t){let n={};return t.forEach(t=>{e.get(t)&&(n[t]=e.get(t))}),n}function nA(e,t){if(!e)return{};let n=e.headers;return n?n instanceof Headers?nR(n,t):Array.isArray(n)?{}:nw(n,t):{}}async function nD(e){return await e.text()}async function nO(e,t,n){try{let r=function(e,t,n){let r=Date.now(),{startTimestamp:i=r,endTimestamp:s=r,input:o,xhr:a}=t,{url:l,method:c,status_code:u=0,request_body_size:d,response_body_size:h}=e.data;if(!l)return null;if(!a||!nE(l,n.networkDetailAllowUrls)||nE(l,n.networkDetailDenyUrls)){let e=nS(d);return{startTimestamp:i,endTimestamp:s,url:l,method:c,statusCode:u,request:e,response:nS(h)}}let p=a[H.xU],f=p?nw(p.request_headers,n.networkRequestHeaders):{},m=nw(function(e){let t=e.getAllResponseHeaders();return t?t.split("\r\n").reduce((e,t)=>{let[n,r]=t.split(": ");return r&&(e[n.toLowerCase()]=r),e},{}):{}}(a),n.networkResponseHeaders),[g,y]=n.networkCaptureBodies?ny(o):[void 0],[v,_]=n.networkCaptureBodies?function(e){let 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 tC&&tD.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return tC&&tD.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(e){t.push(e)}return tC&&tD.warn("Failed to get xhr response body",...t),[void 0]}(a):[void 0],S=nb(f,d,g),b=nb(m,h,v);return{startTimestamp:i,endTimestamp:s,url:l,method:c,statusCode:u,request:y?nv(S,y):S,response:_?nv(b,_):b}}(e,t,n),i=n_("resource.xhr",r);nf(n.replay,i)}catch(e){tC&&tD.exception(e,"Failed to capture xhr breadcrumb")}}async function nN(e){try{return Promise.all(np(e,[function(e){let{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}(X.performance.memory)]))}catch(e){return[]}}async function nL({client:e,scope:t,replayId:n,event:r}){let i={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,i);let s=await (0,L.R)(e.getOptions(),r,i,t,e,(0,I.aF)());if(!s)return null;s.platform=s.platform||"javascript";let o=e.getSdkMetadata(),{name:a,version:l}=o&&o.sdk||{};return s.sdk={...s.sdk,name:a||"sentry.javascript.unknown",version:l||"0.0.0"},s}async function nP({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:i,session:s}){var o;let a;let l=function({recordingData:e,headers:t}){let n;let r=`${JSON.stringify(t)}
5`;if("string"==typeof e)n=`${r}${e}`;else{let t=new TextEncoder().encode(r);(n=new Uint8Array(t.length+e.length)).set(t),n.set(e,t.length)}return n}({recordingData:e,headers:{segment_id:n}}),{urls:c,errorIds:u,traceIds:d,initialTimestamp:h}=r,p=(0,I.s3)(),f=(0,I.nZ)(),m=p&&p.getTransport(),g=p&&p.getDsn();if(!p||!m||!g||!s.sampled)return(0,P.WD)({});let y={type:"replay_event",replay_start_timestamp:h/1e3,timestamp:i/1e3,error_ids:u,trace_ids:d,urls:c,replay_id:t,segment_id:n,replay_type:s.sampled},v=await nL({scope:f,client:p,replayId:t,event:y});if(!v)return p.recordDroppedEvent("event_processor","replay",y),tC&&tD.info("An event processor returned `null`, will not send event."),(0,P.WD)({});delete v.sdkProcessingMetadata;let _=(o=p.getOptions().tunnel,(0,N.Jd)((0,N.Cd)(v,(0,N.HY)(v),o,g),[[{type:"replay_event"},v],[{type:"replay_recording",length:"string"==typeof l?new TextEncoder().encode(l).length:l.length},l]]));try{a=await m.send(_)}catch(t){let e=Error(V);try{e.cause=t}catch(e){}throw e}if("number"==typeof a.statusCode&&(a.statusCode<200||a.statusCode>=300))throw new nF(a.statusCode);let S=(0,F.WG)({},a);if((0,F.Q)(S,"replay"))throw new nU(S);return a}
5class nF extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class nU extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function nB(e,t={count:0,interval:5e3}){let{recordingData:n,onError:r}=e;if(n.length)try{return await nP(e),!0}catch(n){if(n instanceof nF||n instanceof nU)throw n;if((0,k.v)("Replays",{_retryCount:t.count}),r&&r(n),t.count>=3){let e=Error(`${V} - max retries exceeded`);try{e.cause=n}catch(e){}throw e}return t.interval*=++t.count,new Promise((n,r)=>{(0,W.iK)(async()=>{try{await nB(e,t),n(!0)}catch(e){r(e)}},t.interval)})}}let n$="__THROTTLED";class nW{constructor({options:e,recordingOptions:t}){nW.prototype.__init.call(this),nW.prototype.__init2.call(this),nW.prototype.__init3.call(this),nW.prototype.__init4.call(this),nW.prototype.__init5.call(this),nW.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,n){let r,i,s;let o=n&&n.maxWait?Math.max(n.maxWait,t):0;function a(){return l(),r=e()}function l(){void 0!==i&&clearTimeout(i),void 0!==s&&clearTimeout(s),i=s=void 0}function c(){return i&&clearTimeout(i),i=(0,W.iK)(a,t),o&&void 0===s&&(s=(0,W.iK)(a,o)),r}return c.cancel=l,c.flush=function(){return void 0!==i||void 0!==s?a():r},c}(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=function(e,t,n){let r=new Map,i=e=>{let t=e-5;r.forEach((e,n)=>{n<t&&r.delete(n)})},s=()=>[...r.values()].reduce((e,t)=>e+t,0),o=!1;return(...t)=>{let n=Math.floor(Date.now()/1e3);if(i(n),s()>=300){let e=o;return o=!0,e?"__SKIPPED":n$}o=!1;let a=r.get(n)||0;return r.set(n,a+1),e(...t)}}((e,t)=>nl(this,e)?na(this,e,t):Promise.resolve(null),0,0);let{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),i=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:r?r.join(","):""}:void 0;if(i&&(this.clickDetector=new t$(this,i)),tC){let t=e._experiments;tD.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(e){tC&&tD.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){let{errorSampleRate:t,sessionSampleRate:n}=this._options,r=t<=0&&n<=0;if(this._requiresManualStart=r,!r){if(this._initializeSessionForSampling(e),!this.session){tC&&tD.exception(Error("Unable to initialize and create session"));return}!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",tC&&tD.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&"session"===this.recordingMode){tC&&tD.info("Recording is already in progress");return}if(this._isEnabled&&"buffer"===this.recordingMode){tC&&tD.info("Buffering is in progress, call `flush()` to save the replay");return}tC&&tD.infoTick("Starting replay in session mode"),this._updateUserActivity();let e=ns({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled){tC&&tD.info("Buffering is in progress, call `flush()` to save the replay");return}tC&&tD.infoTick("Starting replay in buffer mode");let e=ns({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{var e;let t;let n=this._canvas;this._stopRecording=tx({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:(e=this,t=!1,(n,r)=>{if(!e.checkAndHandleExpiredSession()){tC&&tD.warn("Received replay event after session expired.");return}let i=r||!t;t=!0,e.clickDetector&&function(e,t){try{if(3!==t.type)return;let{source:n}=t.data;if(tB.has(n)&&e.registerMutation(t.timestamp),n===e5.Scroll&&e.registerScroll(t.timestamp),t.data.source===e5.MouseInteraction){let{type:n,id:r}=t.data,i=tx.mirror.getNode(r);i instanceof HTMLElement&&n===e8.Click&&e.registerClick(i)}}catch(e){}}(e.clickDetector,n),e.addUpdate(()=>{if("buffer"===e.recordingMode&&i&&e.setInitialState(),!no(e,n,i))return!0;
5if(!i)return!1;let t=e.session;if(i&&e.session&&0===e.session.segmentId&&no(e,function(e){let t=e.getOptions();return{type:e2.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),"buffer"===e.recordingMode&&t&&e.eventBuffer){let n=e.eventBuffer.getEarliestTimestamp();n&&(tC&&tD.info(`Updating session start time to earliest event in buffer to ${new Date(n)}`),t.started=n,e.getOptions().stickySession&&ne(t))}return!!t&&!!t.previousSessionId||("session"===e.recordingMode&&e.flush(),!0)})}),onMutation:this._onMutationHandler,...n?{recordCanvas:n.recordCanvas,getCanvasManager:n.getCanvasManager,sampling:n.sampling,dataURLOptions:n.dataURLOptions}:{}})}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this.handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1;try{tC&&tD.info(`Stopping Replay${t?` triggered by ${t}`:""}`),nh(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,function(){if(t6())try{X.sessionStorage.removeItem(K)}catch(e){}}(),this.session=void 0}catch(e){this.handleException(e)}}}pause(){!this._isPaused&&(this._isPaused=!0,this.stopRecording(),tC&&tD.info("Pausing replay"))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),tC&&tD.info("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();let t=Date.now();tC&&tD.info("Converting buffer to session"),await this.flushImmediate();let n=this.stopRecording();e&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){let t=e();"buffer"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(this._lastActivity&&nn(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled){this.pause();return}return!!this._checkSession()}setInitialState(){let e=`${X.location.pathname}${X.location.hash}${X.location.search}`,t=`${X.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){let n=this._throttledAddEvent(e,t);if(n===n$){let e=tH({category:"replay.throttled"});this.addUpdate(()=>!no(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}}))}return n}getCurrentRoute(){let e=this.lastActiveSpan||(0,R.HN)(),t=e&&(0,R.Gx)(e),n=(t&&(0,R.XU)(t).data||{})[U.Zj];if(t&&n&&["route","custom"].includes(n))return(0,R.XU)(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function({useCompression:e,workerUrl:t}){if(e&&window.Worker){let e=function(e){try{let t=e||("undefined"!=typeof __SENTRY_EXCLUDE_REPLAY_WORKER__&&__SENTRY_EXCLUDE_REPLAY_WORKER__?"":function(){let e=new Blob(['var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}
vendor: 5,457 bytes, line 5
5},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=A(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},U=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=x(f,15),M=b.t,E=b.l,A=x(h,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}},L=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},O=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=C[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(a[t]^a[t+1]<<A^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=U(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;
5++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=U(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},j=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},q=function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&j(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}},B=function(t){return 10+(t.filename?t.filename.length+1:0)},G=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(O(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();var H=function(){function t(t,n){this.c=L(),this.v=1,G.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),G.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=O(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=L();i.p(n.dictionary),j(t,2,i.d())}}(r,this.o),this.v=0),n&&j(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),J="undefined"!=typeof TextEncoder&&new TextEncoder,K="undefined"!=typeof TextDecoder&&new TextDecoder;try{K.decode(F,{stream:!0})}catch(t){}var N=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(P(t),this.d=n||!1)},t}();function P(n,r){if(J)return J.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),a=0,s=function(t){i[a++]=t},o=0;o<e;++o){if(a+5>i.length){var f=new t(a+8+(e-o<<1));f.set(i),i=f}var h=n.charCodeAt(o);h<128||r?s(h):h<2048?(s(192|h>>6),s(128|63&h)):h>55295&&h<57344?(s(240|(h=65536+(1047552&h)|1023&n.charCodeAt(++o))>>18),s(128|h>>12&63),s(128|h>>6&63),s(128|63&h)):(s(224|h>>12),s(128|h>>6&63),s(128|63&h))}return b(i,0,a)}function Q(t){return function(t,n){n||(n={});var r=S(),e=t.length;r.p(t);var i=O(t,n,B(n),8),a=i.length;return q(i,n),j(i,a-8,r.d()),j(i,a-4,e),i}(P(t))}const R=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new H,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new N(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},V={clear:()=>{R.clear()},addEvent:t=>R.addEvent(t),finish:()=>R.finish(),compress:t=>Q(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in V&&"function"==typeof V[n])try{const t=V[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});']);return URL.createObjectURL(e)}());if(!t)return;tC&&tD.info(`Using compression worker${e?` from ${e}`:""}`);let n=new Worker(t);return new t9(n)}catch(e){tC&&tD.exception(e,"Failed to create compression worker")}}(t);if(e)return e}return tC&&tD.info("Using simple buffer"),new t2}({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(e){let t=this._options.errorSampleRate>0,n=ns({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;let e=this.session;return!ni(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{X.document.addEventListener("visibilitychange",this._handleVisibilityChange),X.addEventListener("blur",this._handleWindowBlur),X.addEventListener("focus",this._handleWindowFocus),X.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(function(e){let t=(0,I.s3)();(0,z.O)(tq(e)),(0,q.a)(t=>{if(!e.isEnabled())return;let n=function(e){let{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(()=>(np(e,[n]),!1)))}),function(e){let t=(0,I.s3)();t&&t.on("beforeAddBreadcrumb",t=>(function(e,t){if(!e.isEnabled()||!nd(t))return;let n=!nd(t)||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui.")?null:"console"===t.category?function(e){let t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return tH(e);let n=!1,r=t.map(e=>{if(!e)return e;if("string"==typeof e)return e.length>5e3?(n=!0,`${e.slice(0,5e3)}…`):e;if("object"==typeof e)try{let t=(0,E.Fv)(e,7);if(JSON.stringify(t).length>5e3)return n=!0,`${JSON.stringify(t,null,2).slice(0,5e3)}…`;return t}catch(e){}return e});return tH({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(t):tH(t);n&&tL(e,n)})(e,t))}(e),function(e){let t=(0,I.s3)();try{let{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:s,networkResponseHeaders:o}=e.getOptions(),a={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:s,networkResponseHeaders:o};t&&t.on("beforeAddBreadcrumb",(e,t)=>(function(e,t,n){if(t.data)try{var r,i;"xhr"===t.category&&(r=n)&&r.xhr&&(function(e,t){let{xhr:n,input:r}=t;if(!n)return;let i=nm(r),s=n.getResponseHeader("content-length")?ng(n.getResponseHeader("content-length")):function(e,t){try{let n="json"===t&&e&&"object"==typeof e?JSON.stringify(e):e;return nm(n)}catch(e){return}}(n.response,n.responseType);void 0!==i&&(e.data.request_body_size=i),void 0!==s&&(e.data.response_body_size=s)}(t,n),nO(t,n,e)),"fetch"===t.category&&(i=n)&&i.response&&(function(e,t){let{input
5:n,response:r}=t,i=nm(n?nI(n):void 0),s=r?ng(r.headers.get("content-length")):void 0;void 0!==i&&(e.data.request_body_size=i),void 0!==s&&(e.data.response_body_size=s)}(t,n),nT(t,n,e))}catch(e){tC&&tD.exception(e,"Error when enriching network breadcrumb")}})(a,e,t))}catch(e){}}(e);let n=Object.assign((t,n)=>!e.isEnabled()||e.isPaused()?t:"replay_event"===t.type?(delete t.breadcrumbs,t):!t.type||nc(t)||nu(t)?e.checkAndHandleExpiredSession()?nu(t)?(e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),e.triggerUserActivity(),e.addUpdate(()=>!t.timestamp||(e.throttledAddEvent({type:e2.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)),t):!t.type&&t.exception&&t.exception.values&&t.exception.values.length&&n.originalException&&n.originalException.__rrweb__&&!e.getOptions()._experiments.captureExceptions?(tC&&tD.log("Ignoring error from rrweb internals",t),null):(("buffer"===e.recordingMode&&t.message!==V&&t.exception&&!t.type&&t4(e.getOptions().errorSampleRate)||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),t):(nh(),t):t,{id:"Replay"});(0,k.Qy)(n),t&&(t.on("beforeSendEvent",t=>{e.isEnabled()&&!t.type&&function(e,t){let n=t.exception&&t.exception.values&&t.exception.values[0]&&t.exception.values[0].value;"string"==typeof n&&(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))&&tL(e,tH({category:"replay.hydrate-error",data:{url:(0,M.l4)()}}))}(e,t)}),t.on("afterSendEvent",(t,n)=>{if(!e.isEnabled()||t.type&&!nc(t))return;let r=n&&n.statusCode;if(r&&!(r<200)&&!(r>=300)){if(nc(t)){(function(e,t){let n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)})(e,t);return}(function(e,t){let n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),"buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;let{beforeErrorSampling:r}=e.getOptions();("function"!=typeof r||r(t))&&(0,W.iK)(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}})})(e,t)}}),t.on("createDsc",t=>{let n=e.getSessionId();n&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=n)}),t.on("spanStart",t=>{e.lastActiveSpan=t}),t.on("spanEnd",t=>{e.lastActiveSpan=t}),t.on("beforeSendFeedback",(t,n)=>{let r=e.getSessionId();n&&n.includeReplay&&e.isEnabled()&&r&&t.contexts&&t.contexts.feedback&&(t.contexts.feedback.replay_id=r)}))}(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)}let r=[];return["navigation","paint","resource"].forEach(e=>{r.push((0,j._j)(e,n))}),r.push((0,j.$A)(tV(tJ,e)),(0,j.PR)(tV(tZ,e)),(0,j.to)(tV(tQ,e)),(0,j.YF)(tV(t0,e))),()=>{r.forEach(e=>e())}}(this)}_removeListeners(){try{X.document.removeEventListener("visibilitychange",this._handleVisibilityChange),X.removeEventListener("blur",this._handleWindowBlur),X.removeEventListener("focus",this._handleWindowFocus),X.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}__init(){this._handleVisibilityChange=()=>{"visible"===X.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{let e=tH({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{let e=tH({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{!function(e,t){if(!e.isEnabled())return;e.updateUserActivity();let n=function(e){var t;let{metaKey:n,shiftKey:r,ctrlKey:i,altKey:s,key:o,target:a}=e;if(!a||"INPUT"===(t=a).tagName||"TEXTAREA"===t.tagName||t.isContentEditable||!o)return null;let l=n||i||s,c=1===o.length;if(!l&&c)return null;let u=(0,M.Rt)(a,{maxStringLength:200})||"<unknown>",d=tX(a,u);return tH({category:"ui.keyDown",message:u,data:{...d.data,metaKey:n,shiftKey:r,ctrlKey:i,altKey:s,key:o}})}(t);n&&tL(e,n)}(this,e)}}
5_doChangeToBackgroundTasks(e){!this.session||nr(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){if(this.session){if(!this.checkAndHandleExpiredSession()){tC&&tD.info("Document has become active, but session has expired");return}e&&this._createCustomBreadcrumb(e)}}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate(()=>{this.throttledAddEvent({type:e2.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){let e=this.performanceEntries.map(tG).filter(Boolean).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){let t=this._context.initialTimestamp/1e3;e=e.filter(e=>e.start>=t)}return Promise.all(np(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart||e.segmentId)return;let n=t.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}
5_popEventContext(){let e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){let e=this.getSessionId();if(!this.session||!this.eventBuffer||!e){tC&&tD.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),this.eventBuffer&&this.eventBuffer.hasEvents&&(await nN(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();let t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw Error("Session is too long, not sending replay");let n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();let i=await this.eventBuffer.finish();await nB({replayId:e,recordingData:i,segmentId:r,eventContext:n,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(t){this.handleException(t),this.stop({reason:"sendReplay"});let e=(0,I.s3)();e&&e.recordDroppedEvent(t instanceof nU?"ratelimit_backoff":"send_error","replay")}}__init5(){this._flush=async({force:e=!1}={})=>{if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession()){tC&&tD.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;let t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();let r=n<this._options.minReplayDuration,i=n>this._options.maxReplayDuration+5e3;if(r||i){tC&&tD.info(`Session duration (${Math.floor(n/1e3)}s) is too ${r?"short":"long"}, not sending replay.`),r&&this._debouncedFlush();return}let s=this.eventBuffer;s&&0===this.session.segmentId&&!s.hasCheckout&&tC&&tD.info("Flushing initial segment without checkout.");let o=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,o&&this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&ne(this.session)}__init6(){this._onMutationHandler=e=>{let t=e.length,n=this._options.mutationLimit,r=this._options.mutationBreadcrumbLimit,i=n&&t>n;if(t>r||i){let e=tH({category:"replay.mutations",data:{count:t,limit:i}});this._createCustomBreadcrumb(e)}return!i||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function nj(e,t){return[...e,...t].join(",")}let nH='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',nz=["content-length","content-type","accept"],nq=!1,nX=e=>new nK(e);class nK{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:n=4999,maxReplayDuration:r=36e5,stickySession:i=!0,useCompression:s=!0,workerUrl:o,_experiments:a={},maskAllText:l=!0,maskAllInputs:c=!0,blockAllMedia:u=!0,mutationBreadcrumbLimit:d=750,mutationLimit:h=1e4,slowClickTimeout:p=7e3,slowClickIgnoreSelectors:f=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:g=[],networkCaptureBodies:y=!0,networkRequestHeaders:v=[],networkResponseHeaders:_=[],mask:S=[],maskAttributes:b=["title","placeholder"],unmask:w=[],block:k=[],unblock:E=[],ignore:T=[],maskFn:M,beforeAddRecordingEvent:x,beforeErrorSampling:C,onError:I}={}){this.name=nK.id;let R=function({mask:e,unmask:t,block:n,unblock:r,ignore:i}){return{maskTextSelector:nj(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:nj(t,[]),blockSelector:nj(n,[".sentry-block","[data-sentry-block]",'base[href="/"]']),unblockSelector:nj(r,[]),ignoreSelector:nj(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:S,unmask:w,block:k,unblock:E,ignore:T});if(this._recordingOptions={maskAllInputs:c,maskAllText:l,maskInputOptions:{password:!0},maskTextFn:M,maskInputFn:M,maskAttributeFn:(e,t,n)=>(function({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:i,value:s}){return!r||i.unmaskTextSelector&&e.matches(i.unmaskTextSelector)?s:n.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?s.replace(/[\S]/g,"*"):s})({maskAttributes:b,maskAllText:l,privacyOptions:R,key:e,value:t,el:n}),...R,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch(e){}}},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,15e3),maxReplayDuration:Math.min(r,3
56e5),stickySession:i,useCompression:s,workerUrl:o,blockAllMedia:u,maskAllInputs:c,maskAllText:l,mutationBreadcrumbLimit:d,mutationLimit:h,slowClickTimeout:p,slowClickIgnoreSelectors:f,networkDetailAllowUrls:m,networkDetailDenyUrls:g,networkCaptureBodies:y,networkRequestHeaders:nV(v),networkResponseHeaders:nV(_),beforeAddRecordingEvent:x,beforeErrorSampling:C,onError:I,_experiments:a},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${nH}`:nH),this._isInitialized&&(0,B.j)())throw Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return nq}set _isInitialized(e){nq=e}afterAllSetup(e){(0,B.j)()&&!this._replay&&(this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}getRecordingMode(){if(this._replay&&this._replay.isEnabled())return this._replay.recordingMode}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){let t=function(e,t){let n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...(0,T.Jr)(e)},i=(0,$.o)(n.replaysSessionSampleRate),s=(0,$.o)(n.replaysOnErrorSampleRate);return null==i&&null==s&&(0,b.Cf)(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),null!=i&&(r.sessionSampleRate=i),null!=s&&(r.errorSampleRate=s),r}(this._initialOptions,e);this._replay=new nW({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{let t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch(e){}}}function nV(e){return[...nz,...e.map(e=>e.toLowerCase())]}nK.__initStatic()},2230:function(e,t,n){n.d(t,{X:function(){return r}});let r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},44816:function(e,t,n){n.d(t,{Wz:function(){return u},m9:function(){return l},re:function(){return function e(t,n={},r){if("function"!=typeof t)return t;try{let e=t.__sentry_wrapped__;if(e){if("function"==typeof e)return e;return t}if((0,i.HK)(t))return t}catch(e){return t}let l=function(){let r=Array.prototype.slice.call(arguments);try{let i=r.map(t=>e(t,n));return t.apply(this,i)}catch(e){throw c++,setTimeout(()=>{c--}),(0,s.$e)(t=>{t.addEventProcessor(e=>(n.mechanism&&((0,o.Db)(e,void 0,void 0),(0,o.EG)(e,n.mechanism)),e.extra={...e.extra,arguments:r},e)),(0,a.Tb)(e)}),e}};try{for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(l[e]=t[e])}catch(e){}(0,i.$Q)(l,t),(0,i.xp)(t,"__sentry_wrapped__",l);try{Object.getOwnPropertyDescriptor(l,"name").configurable&&Object.defineProperty(l,"name",{get:()=>t.name})}catch(e){}return l}}});var r=n(624),i=n(21275),s=n(43953),o=n(52618),a=n(70089);let l=r.GLOBAL_OBJ,c=0;function u(){return c>0}},423:function(e,t,n){n.d(t,{nV:function(){return ev},S1:function(){return e_}});var r=n(23162),i=n(6570),s=n(94994),o=n(81735),a=n(34958),l=n(77820),c=n(21150),u=n(19798),d=n(70089),h=n(56938),p=n(449),f=n(52807),m=n(2152),g=n(2230),y=n(43953),v=n(44833),_=n(74400),S=n(52618),b=n(55771),w=n(21275);function k(e,t){let n=T(e,t),r={type:function(e){let t=e&&e.name;return!t&&x(e)?e.message&&Array.isArray(e.message)&&2==e.message.length?e.message[0]:"WebAssembly.Exception":t}(t),value:function(e){let t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:x(e)&&Array.isArray(e.message)&&2==e.message.length?e.message[1]:t:"No error message"}(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function E(e,t){return{exception:{values:[k(e,t)]}}}function T(e,t){let n=t.stacktrace||t.stack||"",r=t&&M.test(t.message)?1:0,i="number"==typeof t.framesToPop?t.framesToPop:0;try{return e(n,r,i)}catch(e){}return[]}let M=/Minified React error #\d+;/i;function x(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function C(e,t,n,r,i){let s;if((0,_.VW)(t)&&t.error)return E(e,t.error);if((0,_.TX)(t)||(0,_.fm)(t)){if("stack"in t)s=E(e,t);else{let i=t.name||((0,_.TX)(t)?"DOMError":"DOMException"),o=t.message?`${i}: ${t.message}`:i;s=I(e,o,n,r),(0,S.Db)(s,o)}return"code"in t&&(s.tags={...s.tags,"DOMException.code":`${t.code}`}),s}return(0,_.VZ)(t)?E(e,t):((0,_.PO)(t)||(0,_.cO)(t)?s=function(e,t,n,r){let i=(0,y.s3)(),s=i&&i.getOptions().normalizeDepth,o=function(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let n=e[t];if(n instanceof Error)return n}}(t),a={__serialized__:(0,v.Qy)(t,s)};if(o)return{exception:{values:[k(e,o)]},extra:a};let l={exception:{values:[{type:(0,_.cO)(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:function(e,{isUnhandledRejection:t}){let n=(0,w.zf)(e),r=t?"promise rejection":"exception";if((0,_.VW)(e))return`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``;if((0,_.cO)(e)){let t=function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e);return`Event \`${t}\` (type=${e.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}(t,{isUnhandledRejection:r})}]},extra:a};if(n){let t=T(e,n);t.length&&(l.exception.values[0].stacktrace={frames:t})}return l}(e,t,n,i):(s=I(e,t,n,r),(0,S.Db)(s,`${t}`,void 0)),(0,S.EG)(s,{synthetic:!0}),s)}function I(e,t,n,r){let i={};if(r&&n){let r=T(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]})}
5if((0,_.Le)(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}var R=n(44816),A=n(42568),D=n(38311);class O extends p.W{constructor(e){let t={parentSpanIsAlwaysRootSpan:!0,...e},n=R.m9.SENTRY_SDK_SOURCE||(0,f.S)();(0,m.V)(t,"browser",["browser"],n),super(t),t.sendClientReports&&R.m9.document&&R.m9.document.addEventListener("visibilitychange",()=>{"hidden"===R.m9.document.visibilityState&&this._flushOutcomes()})}eventFromException(e,t){return function(e,t,n,r){let i=C(e,t,n&&n.syntheticException||void 0,r);return(0,S.EG)(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),(0,b.WD)(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,i){let s=I(e,t,r&&r.syntheticException||void 0,i);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),(0,b.WD)(s)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled()){g.X&&o.kg.warn("SDK not enabled, will not capture user feedback.");return}let t=function(e,{metadata:t,tunnel:n,dsn:r}){let i={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:(0,A.RA)(r)}};return(0,D.Jd)(i,[[{type:"user_report"},e]])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}}var N=n(7686),L=n(98860),P=n(7374),F=n(13062),U=n(18621),B=n(48637),$=n(31169),W=n(58406),j=n(297),H=n(18597);let z=(0,c._I)((e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var n;t.console&&(0,P.e)(function(t){if((0,y.s3)()!==e)return;let n={category:"console",data:{arguments:t.args,logger:"console"},level:(0,$.V)(t.level),message:(0,W.nK)(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${(0,W.nK)(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}(0,U.n)(n,{input:t.args,level:t.level})}),t.dom&&(0,N.O)((n=t.dom,function(t){let r,i;if((0,y.s3)()!==e)return;let s="object"==typeof n?n.serializeAttribute:void 0,a="object"==typeof n&&"number"==typeof n.maxStringLength?n.maxStringLength:void 0;a&&a>1024&&(g.X&&o.kg.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${a} was configured. Sentry will use 1024 instead.`),a=1024),"string"==typeof s&&(s=[s]);try{let e=t.event,n=e&&e.target?e.target:e;r=(0,B.Rt)(n,{keyAttrs:s,maxStringLength:a}),i=(0,B.iY)(n)}catch(e){r="<unknown>"}if(0===r.length)return;let l={category:`ui.${t.name}`,message:r};i&&(l.data={"ui.component_name":i}),(0,U.n)(l,{event:t.event,name:t.name,global:t.global})})),t.xhr&&(0,L.UK)(function(t){if((0,y.s3)()!==e)return;let{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[L.xU];if(!n||!r||!i)return;let{method:s,url:o,status_code:a,body:l}=i,c={xhr:t.xhr,input:l,startTimestamp:n,endTimestamp:r},u=(0,j.B)(a);(0,U.n)({category:"xhr",data:{method:s,url:o,status_code:a},type:"http",level:u},c)}),t.fetch&&(0,F.Uf)(function(t){if((0,y.s3)()!==e)return;let{startTimestamp:n,endTimestamp:r}=t;if(!(!r||t.fetchData.url.match(/sentry_key/)&&"POST"===t.fetchData.method)){if(t.error){let e=t.fetchData,i={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r};(0,U.n)({category:"fetch",data:e,level:"error",type:"http"},i)}else{let e=t.response,i={...t.fetchData,status_code:e&&e.status},s={input:t.args,response:e,startTimestamp:n,endTimestamp:r},o=(0,j.B)(i.status_code);(0,U.n)({category:"fetch",data:i,type:"http",level:o},s)}}}),t.history&&(0,h.a)(function(t){if((0,y.s3)()!==e)return;let n=t.from,r=t.to,i=(0,H.en)(R.m9.location.href),s=n?(0,H.en)(n):void 0,o=(0,H.en)(r);s&&s.path||(s=i),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),i.protocol===s.protocol&&i.host===s.host&&(n=s.relative),(0,U.n)({category:"navigation",data:{from:n,to:r}})}),t.sentry&&e.on("beforeSendEvent",function(t){(0,y.s3)()===e&&(0,U.n)({category:`sentry.${"transaction"===t.type?"transaction":"event"}`,event_id:t.event_id,level:t.level,message:(0,S.jH)(t)},{event:t})})}}}),q=["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"],X=(0,c._I)((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&(0,w.hl)(R.m9,"setTimeout",K),t.setInterval&&(0,w.hl)(R.m9,"setInterval",K),t.requestAnimationFrame&&(0,w.hl)(R.m9,"requestAnimationFrame",V),t.XMLHttpRequest&&"XMLHttpRequest"in R.m9&&(0,w.hl)(XMLHttpRequest.prototype,"send",G);let e=t.eventTarget;e&&(Array.isArray(e)?e:q).forEach(Y)}}});function K(e){return function(...t){let n=t[0];return t[0]=(0,R.re)(n,{mechanism:{data:{function:(0,l.$P)(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function V(e){return function(t){return e.apply(this,[(0,R.re)(t,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,l.$P)(e)},handled:!1,type:"instrument"}})])}}function G(e){return function(...t){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e
5=>{e in n&&"function"==typeof n[e]&&(0,w.hl)(n,e,function(t){let n={mechanism:{data:{function:e,handler:(0,l.$P)(t)},handled:!1,type:"instrument"}},r=(0,w.HK)(t);return r&&(n.mechanism.data.handler=(0,l.$P)(r)),(0,R.re)(t,n)})}),e.apply(this,t)}}function Y(e){let t=R.m9,n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,w.hl)(n,"addEventListener",function(t){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=(0,R.re)(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,l.$P)(r),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[n,(0,R.re)(r,{mechanism:{data:{function:"addEventListener",handler:(0,l.$P)(r),target:e},handled:!1,type:"instrument"}}),i])}}),(0,w.hl)(n,"removeEventListener",function(e){return function(t,n,r){try{let i=n&&n.__sentry_wrapped__;i&&e.call(this,t,i,r)}catch(e){}return e.call(this,t,n,r)}}))}var J=n(73012),Z=n(42174);let Q=(0,c._I)((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&((0,J.V)(t=>{let{stackParser:n,attachStacktrace:r}=et();if((0,y.s3)()!==e||(0,R.Wz)())return;let{msg:i,url:s,line:o,column:a,error:c}=t,u=function(e,t,n,r){let i=e.exception=e.exception||{},s=i.values=i.values||[],o=s[0]=s[0]||{},a=o.stacktrace=o.stacktrace||{},c=a.frames=a.frames||[],u=isNaN(parseInt(r,10))?void 0:r,d=isNaN(parseInt(n,10))?void 0:n,h=(0,_.HD)(t)&&t.length>0?t:(0,B.l4)();return 0===c.length&&c.push({colno:u,filename:h,function:l.Fi,in_app:!0,lineno:d}),e}(C(n,c||i,void 0,r,!1),s,o,a);u.level="error",(0,d.eN)(u,{originalException:c,mechanism:{handled:!1,type:"onerror"}})}),ee("onerror")),t.onunhandledrejection&&((0,Z.h)(t=>{let{stackParser:n,attachStacktrace:r}=et();if((0,y.s3)()!==e||(0,R.Wz)())return;let i=function(e){if((0,_.pt)(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(e){}return e}(t),s=(0,_.pt)(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:C(n,i,void 0,r,!0);s.level="error",(0,d.eN)(s,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})}),ee("onunhandledrejection"))}}});function ee(e){g.X&&o.kg.log(`Global Handler attached: ${e}`)}function et(){let e=(0,y.s3)();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}let en=(0,c._I)(()=>({name:"HttpContext",preprocessEvent(e){if(!R.m9.navigator&&!R.m9.location&&!R.m9.document)return;let t=e.request&&e.request.url||R.m9.location&&R.m9.location.href,{referrer:n}=R.m9.document||{},{userAgent:r}=R.m9.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},s={...e.request,...t&&{url:t},headers:i};e.request=s}}));var er=n(91670);let ei=(0,c._I)((e={})=>{let t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,r,i){let s=i.getOptions();(0,er.Z)(k,s.stackParser,s.maxValueLength,n,t,e,r)}}});function es(e,t,n,r){let i={filename:e,function:"<anonymous>"===t?l.Fi:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}let eo=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,ea=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,el=/\((\S*)(?::(\d+))(?::(\d+))\)/,ec=[30,e=>{let t=eo.exec(e);if(t){let[,e,n,r]=t;return es(e,l.Fi,+n,+r)}let n=ea.exec(e);if(n){if(n[2]&&0===n[2].indexOf("eval")){let e=el.exec(n[2]);e&&(n[2]=e[1],n[3]=e[2],n[4]=e[3])}let[e,t]=ef(n[1]||l.Fi,n[2]);return es(t,e,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],eu=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,ed=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,eh=[50,e=>{let t=eu.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=ed.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]||l.Fi;return[n,e]=ef(n,e),es(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],ep=(0,l.pE)(ec,eh),ef=(e,t)=>{let n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:l.Fi,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};var em=n(80604),eg=n(79440);function ey(e,t=(0,em.L2)("fetch")){let n=0,r=0;return(0,eg.q)(e,function(i){let s=i.body.length;n+=s,r++;let o={body:i.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return(0,em._6)("fetch"),(0,b.$2)("No fetch implementation available");try{return t(e.url,o).then(e=>(n-=s,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}}))}catch(e){return(0,em._6)("fetch"),n-=s,r--,(0,b.$2)(e)}})}function ev(e){return[(0,r.S)(),(0,i.C)(),X(),z(),Q(),ei(),(0,s.R)(),en()]}function e_(e={}){let t=function(e={}){let t={defaultIntegrations:ev(),release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:R.m9.SENTRY_RELEASE&&R.m9.SENTRY_RELEASE.id?R.m9.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return null==e.defaultIntegrations&&delete e.defaultIntegrations,{...t,...e}}(e);if(!t.skipBrowserExtensionCheck&&function(){let e=void 0!==R.m9.window&&R.m9;if(!e)return!1;let t=e.chrome?"chrome":"browser",n=e[t],r=n&&n.runtime&&n.runtime.id,i=R.m9.location&&R.m9.location.href||"",s=!!r&&R.m9===R.m9.top&&["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"].some(e=>i.startsWith(`${e}//`)),o=void 0!==e.nw;return!!r&&!s&&!o}()){(0,o.Cf)(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")});return}g.X&&!(0,a.Ak)()&&o.kg.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill.");let n={...t,stackParser:(0,l.Sq)(t.stackParser||ep),integrations:(0,c.m8)(t),transport:t.transport||ey},r=(0,u.M)(O,n);return t.autoSessionTracking&&function(){if(void 0===R.m9.document){g.X&&o.kg.warn("Session tracking in non-browser environment with @
5sentry/browser is not supported.");return}(0,d.yj)({ignoreDuration:!0}),(0,d.cg)(),(0,h.a)(({from:e,to:t})=>{void 0!==e&&e!==t&&((0,d.yj)({ignoreDuration:!0}),(0,d.cg)())})}(),r}},35453:function(e,t,n){let r,i;n.d(t,{E8:function(){return es},og:function(){return ea},Wo:function(){return eo}});var s=n(79607),o=n(90619),a=n(32634),l=n(48637),c=n(81735),u=n(48920),d=n(18597),h=n(90003),p=n(33009),f=n(72961),m=n(43953),g=n(21275),y=n(84050),v=n(57943);function _(e){return"number"==typeof e&&isFinite(e)}function S(e,t,n,{...r}){let i=(0,o.XU)(e).start_timestamp;return i&&i>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),(0,v._d)(e,()=>{let e=(0,v.qp)({startTime:t,...r});return e&&e.end(n),e})}function b(e){let t;let n=(0,m.s3)();if(!n)return;let{name:r,transaction:i,attributes:s,startTime:o}=e,{release:a,environment:l}=n.getOptions(),c=n.getIntegrationByName("Replay"),u=c&&c.getReplayId(),d=(0,m.nZ)(),h=d.getUser(),f=void 0!==h?h.email||h.id||h.ip_address:void 0;try{t=d.getScopeData().contexts.profile.profile_id}catch(e){}let g={release:a,environment:l,user:f||void 0,profile_id:t||void 0,replay_id:u||void 0,transaction:i,"user_agent.original":p.m.navigator&&p.m.navigator.userAgent,...s};return(0,v.qp)({name:r,attributes:g,startTime:o,experimental:{standalone:!0}})}function w(){return p.m&&p.m.addEventListener&&p.m.performance}function k(e){return e/1e3}var E=n(57765),T=n(71727),M=n(54750),x=n(19726);let C=0,I={};function R(e,t,n,r,i,s){let o=s?t[s]:t[`${n}End`],l=t[`${n}Start`];l&&o&&S(e,r+k(l),r+k(o),{op:`browser.${i||n}`,name:t.name,attributes:{[a.S3]:"auto.ui.browser.metrics"}})}function A(e,t,n,r){let i=t[n];null!=i&&i<2147483647&&(e[r]=i)}let D=[],O=new Map,N={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"};var L=n(56938),P=n(22537),F=n(86180),U=n(624),B=n(69545),$=n(77950),W=n(51655),j=n(2230),H=n(44816),z=n(45885),q=n(98860),X=n(13062),K=n(18769),V=n(58406),G=n(28985),Y=n(75667),J=n(938);let Z=new WeakMap,Q=new Map,ee={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function et(e){let{url:t}=(0,o.XU)(e).data||{};if(!t||"string"!=typeof t)return;let n=(0,y._j)("resource",({entries:r})=>{r.forEach(r=>{"resource"===r.entryType&&"initiatorType"in r&&"string"==typeof r.nextHopProtocol&&("fetch"===r.initiatorType||"xmlhttprequest"===r.initiatorType)&&r.name.endsWith(t)&&((function(e){let{name:t,version:n}=function(e){let t="unknown",n="unknown",r="";for(let i of e){if("/"===i){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}(e.nextHopProtocol),r=[];return(r.push(["network.protocol.version",n],["network.protocol.name",t]),s.Z1)?[...r,["http.request.redirect_start",en(e.redirectStart)],["http.request.fetch_start",en(e.fetchStart)],["http.request.domain_lookup_start",en(e.domainLookupStart)],["http.request.domain_lookup_end",en(e.domainLookupEnd)],["http.request.connect_start",en(e.connectStart)],["http.request.secure_connection_start",en(e.secureConnectionStart)],["http.request.connection_end",en(e.connectEnd)],["http.request.request_start",en(e.requestStart)],["http.request.response_start",en(e.responseStart)],["http.request.response_end",en(e.responseEnd)]]:r})(r).forEach(t=>e.setAttribute(...t)),setTimeout(n))})})}function en(e=0){return((s.Z1||performance.timeOrigin)+e)/1e3}function er(e){try{return new URL(e,H.m9.location.origin).href}catch(e){return}}let ei={...P.A,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,_experiments:{},...ee},es=(e={})=>{(0,F.a)();let{enableInp:t,enableLongTask:n,enableLongAnimationFrame:W,_experiments:{enableInteractions:en,enableStandaloneClsSpans:es},beforeStartSpan:ec,idleTimeout:eu,finalTimeout:ed,childSpanTimeout:eh,markBackgroun
5dSpan:ep,traceFetch:ef,traceXHR:em,trackFetchStreamPerformance:eg,shouldCreateSpanForRequest:ey,enableHTTPTimings:ev,instrumentPageLoad:e_,instrumentNavigation:eS}={...ei,...e},eb=function({recordClsStandaloneSpans:e}){let t=w();if(t&&s.Z1){t.mark&&p.m.performance.mark("sentry-tracing-init");let n=(0,y.to)(({metric:e})=>{let t=e.entries[e.entries.length-1];if(!t)return;let n=k(s.Z1),r=k(t.startTime);h.X&&c.kg.log("[Measurements] Adding FID"),I.fid={value:e.value,unit:"millisecond"},I["mark.fid"]={value:n+r,unit:"second"}}),u=(0,y.$A)(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(h.X&&c.kg.log("[Measurements] Adding LCP"),I.lcp={value:e.value,unit:"millisecond"},r=t)},!0),d=(0,y._4)(({metric:e})=>{e.entries[e.entries.length-1]&&(h.X&&c.kg.log("[Measurements] Adding TTFB"),I.ttfb={value:e.value,unit:"millisecond"})}),v=e?function(){let e,t,n=0;if(!function(){try{return(0,f.x)([PerformanceObserver,"access",e=>e.supportedEntryTypes,"optionalAccess",e=>e.includes,"call",e=>e("layout-shift")])}catch(e){return!1}}())return;let r=!1;function i(){r||(r=!0,t&&function(e,t,n){h.X&&c.kg.log(`Sending CLS span (${e})`);let r=k((s.Z1||0)+((0,f.x)([t,"optionalAccess",e=>e.startTime])||0)),i=(0,m.nZ)().getScopeData().transactionName,o=b({name:t?(0,l.Rt)((0,f.x)([t,"access",e=>e.sources,"access",e=>e[0],"optionalAccess",e=>e.node])):"Layout shift",transaction:i,attributes:(0,g.Jr)({[a.S3]:"auto.http.browser.cls",[a.$J]:"ui.webvital.cls",[a.JQ]:(0,f.x)([t,"optionalAccess",e=>e.duration])||0,"sentry.pageload.span_id":n}),startTime:r});(0,f.x)([o,"optionalAccess",e=>e.addEvent,"call",t=>t("cls",{[a.E1]:"",[a.Wb]:e})]),(0,f.x)([o,"optionalAccess",e=>e.end,"call",e=>e(r)])}(n,e,t),u())}let u=(0,y.PR)(({metric:t})=>{let r=t.entries[t.entries.length-1];r&&(n=t.value,e=r)},!0);(0,E.u)(()=>{i()}),setTimeout(()=>{let e=(0,m.s3)(),n=(0,f.x)([e,"optionalAccess",e=>e.on,"call",e=>e("startNavigationSpan",()=>{i(),n&&n()})]),r=(0,o.HN)(),s=r&&(0,o.Gx)(r),a=s&&(0,o.XU)(s);a&&"pageload"===a.op&&(t=s.spanContext().spanId)},0)}():(0,y.PR)(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(h.X&&c.kg.log(`[Measurements] Adding CLS ${e.value}`),I.cls={value:e.value,unit:""},i=t)},!0);return()=>{n(),u(),d(),v&&v()}}return()=>void 0}({recordClsStandaloneSpans:es||!1});t&&function(){if(w()&&s.Z1){let e=(0,y.YF)(({metric:e})=>{if(void 0==e.value)return;let t=e.entries.find(t=>t.duration===e.value&&N[t.name]);if(!t)return;let{interactionId:n}=t,r=N[t.name],i=k(s.Z1+t.startTime),c=k(e.value),u=(0,o.HN)(),d=u?(0,o.Gx)(u):void 0,h=(null!=n?O.get(n):void 0)||d,p=h?(0,o.XU)(h).description:(0,m.nZ)().getScopeData().transactionName,y=b({name:(0,l.Rt)(t.target),transaction:p,attributes:(0,g.Jr)({[a.S3]:"auto.http.browser.inp",[a.$J]:`ui.interaction.${r}`,[a.JQ]:t.duration}),startTime:i});(0,f.x)([y,"optionalAccess",e=>e.addEvent,"call",t=>t("inp",{[a.E1]:"millisecond",[a.Wb]:e.value})]),(0,f.x)([y,"optionalAccess",e=>e.end,"call",e=>e(i+c)])})}}(),W&&U.GLOBAL_OBJ.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?new PerformanceObserver(e=>{let t=(0,o.HN)();if(t)for(let n of e.getEntries()){if(!n.scripts[0])continue;let e=k(s.Z1+n.startTime),{start_timestamp:r,op:i}=(0,o.XU)(t);if("navigation"===i&&r&&e<r)continue;let l=k(n.duration),c={[a.S3]:"auto.ui.browser.metrics"},{invoker:u,invokerType:d,sourceURL:h,sourceFunctionName:p,sourceCharPosition:f}=n.scripts[0];c["browser.script.invoker"]=u,c["browser.script.invoker_type"]=d,h&&(c["code.filepath"]=h),p&&(c["code.function"]=p),-1!==f&&(c["browser.script.source_char_position"]=f),S(t,e,e+l,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:c})}}).observe({type:"long-animation-frame",buffered:!0}):n&&(0,y._j)("longtask",({entries:e})=>{let t=(0,o.HN)();if(!t)return;let{op:n,start_timestamp:r}=(0,o.XU)(t);for(let i of e){let e=k(s.Z1+i.startTime),o=k(i.duration);"navigation"===n&&r&&e<r||S(t,e,e+o,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[a.S3]:"auto.ui.browser.metrics"}})}}),en&&(0,y._j)("event",({entries:e})=>{let t=(0,o.HN)();if(t){for(let n of e)if("click"===n.name){let e=k(s.Z1+n.startTime),r=k(n.duration),i={name:(0,l.Rt)(n.target),op:`ui.interaction.${n.name}`,startTime:e,attributes:{[a.S3]:"auto.ui.browser.metrics"}},o=(0,l.iY)(n.target);o&&(i.attributes["ui.component_name"]=o),S(t,e,e+r,i)}}});let ew={name:void 0,source:void 0};function ek(e,t){let n="pageload"===t.op,f=ec?ec(t):t,m=f.attributes||{};t.name!==f.name&&(m[a.Zj]="custom",f.attributes=m),ew.name=f.name,ew.source=m[a.Zj];let g=(0,P.R)(f,{idleTimeout:eu,finalTimeout:ed,childSpanTimeout:eh,disableAutoFinish:n,beforeSpanEnd:e=>{eb(),function(e,t){let n=w();if(!n||!p.m.performance.getEntries||!s.Z1)return;h.X&&c.kg.log("[Tracing] Adding & adjusting spans using Performance API");let f=k(s.Z1),m=n.getEntries(),{op:g,start_timestamp:y}=(0,o.XU)(e);
5if(m.slice(C).forEach(t=>{let n=k(t.startTime),r=k(Math.max(0,t.duration));if("navigation"!==g||!y||!(f+n<y))switch(t.entryType){case"navigation":["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(n=>{R(e,t,n,f)}),R(e,t,"secureConnection",f,"TLS/SSL","connectEnd"),R(e,t,"fetch",f,"cache","domainLookupStart"),R(e,t,"domainLookup",f,"DNS"),function(e,t,n){let r=n+k(t.requestStart),i=n+k(t.responseEnd),s=n+k(t.responseStart);t.responseEnd&&(S(e,r,i,{op:"browser.request",name:t.name,attributes:{[a.S3]:"auto.ui.browser.metrics"}}),S(e,s,i,{op:"browser.response",name:t.name,attributes:{[a.S3]:"auto.ui.browser.metrics"}}))}(e,t,f);break;case"mark":case"paint":case"measure":{(function(e,t,n,r,i){let s=(0,M.W)(),o=i+Math.max(n,k(s?s.requestStart:0)),l=i+n,c={[a.S3]:"auto.resource.browser.metrics"};o!==l&&(c["sentry.browser.measure_happened_before_request"]=!0,c["sentry.browser.measure_start_time"]=o),S(e,o,l+r,{name:t.name,op:t.entryType,attributes:c})})(e,t,n,r,f);let i=(0,x.Y)(),s=t.startTime<i.firstHiddenTime;"first-paint"===t.name&&s&&(h.X&&c.kg.log("[Measurements] Adding FP"),I.fp={value:t.startTime,unit:"millisecond"}),"first-contentful-paint"===t.name&&s&&(h.X&&c.kg.log("[Measurements] Adding FCP"),I.fcp={value:t.startTime,unit:"millisecond"});break}case"resource":(function(e,t,n,r,i,s){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;let o=(0,d.en)(n),l={[a.S3]:"auto.resource.browser.metrics"};A(l,t,"transferSize","http.response_transfer_size"),A(l,t,"encodedBodySize","http.response_content_length"),A(l,t,"decodedBodySize","http.decoded_response_content_length"),null!=t.deliveryType&&(l["http.response_delivery_type"]=t.deliveryType),"renderBlockingStatus"in t&&(l["resource.render_blocking_status"]=t.renderBlockingStatus),o.protocol&&(l["url.scheme"]=o.protocol.split(":").pop()),o.host&&(l["server.address"]=o.host),l["url.same_origin"]=n.includes(p.m.location.origin);let c=s+r;S(e,c,c+i,{name:n.replace(p.m.location.origin,""),op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",attributes:l})})(e,t,t.name,n,r,f)}}),C=Math.max(m.length-1,0),function(e){let t=p.m.navigator;if(!t)return;let n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),_(n.rtt)&&(I["connection.rtt"]={value:n.rtt,unit:"millisecond"})),_(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),_(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===g){(function(e){let t=(0,M.W)();if(!t)return;let{responseStart:n,requestStart:r}=t;r<=n&&(h.X&&c.kg.log("[Measurements] Adding TTFB Request Time"),e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})})(I);let n=I["mark.fid"];n&&I.fid&&(S(e,n.value,n.value+k(I.fid.value),{name:"first input delay",op:"ui.action",attributes:{[a.S3]:"auto.ui.browser.metrics"}}),delete I["mark.fid"]),"fcp"in I&&t.recordClsOnPageloadSpan||delete I.cls,Object.entries(I).forEach(([e,t])=>{(0,u.o)(e,t.value,t.unit)}),e.setAttribute("performance.timeOrigin",f),e.setAttribute("performance.activationStart",(0,T.A)()),r&&(h.X&&c.kg.log("[Measurements] Adding LCP Data"),r.element&&e.setAttribute("lcp.element",(0,l.Rt)(r.element)),r.id&&e.setAttribute("lcp.id",r.id),r.url&&e.setAttribute("lcp.url",r.url.trim().slice(0,200)),null!=r.loadTime&&e.setAttribute("lcp.loadTime",r.loadTime),null!=r.renderTime&&e.setAttribute("lcp.renderTime",r.renderTime),e.setAttribute("lcp.size",r.size)),i&&i.sources&&(h.X&&c.kg.log("[Measurements] Adding CLS Data"),i.sources.forEach((t,n)=>e.setAttribute(`cls.source.${n+1}`,(0,l.Rt)(t.node))))}r=void 0,i=void 0,I={}}(e,{recordClsOnPageloadSpan:!es})}});function y(){["interactive","complete"].includes(H.m9.document.readyState)&&e.emit("idleSpanEnableAutoFinish",g)}return n&&H.m9.document&&(H.m9.document.addEventListener("readystatechange",()=>{y()}),y()),g}return{name:"BrowserTracing",afterAllSetup(e){let n,r;let i=H.m9.location&&H.m9.location.href;e.on("startNavigationSpan",t=>{(0,m.s3)()===e&&(n&&!(0,o.XU)(n).timestamp&&(j.X&&c.kg.log(`[Tracing] Finishing current root span with op: ${(0,o.XU)(n).op}`),n.end()),n=ek(e,{op:"navigation",...t}))}),e.on("startPageLoadSpan",(t,r={})=>
5{if((0,m.s3)()!==e)return;n&&!(0,o.XU)(n).timestamp&&(j.X&&c.kg.log(`[Tracing] Finishing current root span with op: ${(0,o.XU)(n).op}`),n.end());let i=r.sentryTrace||el("sentry-trace"),s=r.baggage||el("baggage"),a=(0,B.pT)(i,s);(0,m.nZ)().setPropagationContext(a),n=ek(e,{op:"pageload",...t})}),e.on("spanEnd",e=>{let t=(0,o.XU)(e).op;if(e!==(0,o.Gx)(e)||"navigation"!==t&&"pageload"!==t)return;let n=(0,m.nZ)(),r=n.getPropagationContext();n.setPropagationContext({...r,sampled:void 0!==r.sampled?r.sampled:(0,o.Tt)(e),dsc:r.dsc||(0,$.jC)(e)})}),H.m9.location&&(e_&&eo(e,{name:H.m9.location.pathname,startTime:s.Z1?s.Z1/1e3:void 0,attributes:{[a.Zj]:"url",[a.S3]:"auto.pageload.browser"}}),eS&&(0,L.a)(({to:t,from:n})=>{if(void 0===n&&i&&-1!==i.indexOf(t)){i=void 0;return}n!==t&&(i=void 0,ea(e,{name:H.m9.location.pathname,attributes:{[a.Zj]:"url",[a.S3]:"auto.navigation.browser"}}))})),ep&&(H.m9&&H.m9.document?H.m9.document.addEventListener("visibilitychange",()=>{let e=(0,o.HN)();if(!e)return;let t=(0,o.Gx)(e);if(H.m9.document.hidden&&t){let e="cancelled",{op:n,status:r}=(0,o.XU)(t);j.X&&c.kg.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),r||t.setStatus({code:z.jt,message:e}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):j.X&&c.kg.warn("[Tracing] Could not set up background tab detection due to lack of global document")),en&&H.m9.document&&addEventListener("click",()=>{let e="ui.action.click",t=(0,o.HN)(),n=t&&(0,o.Gx)(t);if(n&&["navigation","pageload"].includes((0,o.XU)(n).op)){j.X&&c.kg.warn(`[Tracing] Did not create ${e} span because a pageload or navigation span is in progress.`);return}if(r&&(r.setAttribute(a.ju,"interactionInterrupted"),r.end(),r=void 0),!ew.name){j.X&&c.kg.warn(`[Tracing] Did not create ${e} transaction because _latestRouteName is missing.`);return}r=(0,P.R)({name:ew.name,op:e,attributes:{[a.Zj]:ew.source||"url"}},{idleTimeout:eu,finalTimeout:ed,childSpanTimeout:eh})},{once:!1,capture:!0}),t&&function(){let e=({entries:e})=>{let t=(0,o.HN)(),n=t&&(0,o.Gx)(t);e.forEach(e=>{if(!(0,y.cN)(e)||!n)return;let t=e.interactionId;if(!(null==t||O.has(t))){if(D.length>10){let e=D.shift();O.delete(e)}D.push(t),O.set(t,n)}})};(0,y._j)("event",e),(0,y._j)("first-input",e)}(),function(e,t){let{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:i,shouldCreateSpanForRequest:s,enableHTTPTimings:l,tracePropagationTargets:c}={traceFetch:ee.traceFetch,traceXHR:ee.traceXHR,trackFetchStreamPerformance:ee.trackFetchStreamPerformance,...t},u="function"==typeof s?s:e=>!0,h=e=>(function(e,t){let n=H.m9.location&&H.m9.location.href;if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch(e){return!1}let s=r.origin===i;return t?(0,V.U0)(r.toString(),t)||s&&(0,V.U0)(r.pathname,t):s}{let n=!!e.match(/^\/(?!\/)/);return t?(0,V.U0)(e,t):n}})(e,c),p={};n&&(e.addEventProcessor(e=>("transaction"===e.type&&e.spans&&e.spans.forEach(e=>{if("http.client"===e.op){let t=Q.get(e.span_id);t&&(e.timestamp=t/1e3,Q.delete(e.span_id))}}),e)),i&&(0,X.cf)(e=>{if(e.response){let t=Z.get(e.response);t&&e.endTimestamp&&Q.set(t,e.endTimestamp)}}),(0,X.Uf)(e=>{let t=(0,K.m)(e,u,h,p);if(e.response&&e.fetchData.__span&&Z.set(e.response,e.fetchData.__span),t){let n=er(e.fetchData.url),r=n?(0,d.en)(n).host:void 0;t.setAttributes({"http.url":n,"server.address":r})}l&&t&&et(t)})),r&&(0,q.UK)(e=>{let t=function(e,t,n,r){let i=e.xhr,s=i&&i[q.xU];if(!i||i.__sentry_own_request__||!s)return;let l=(0,G.z)()&&t(s.url);if(e.endTimestamp&&l){let e=i.__sentry_xhr_span_id__;if(!e)return;let t=r[e];t&&void 0!==s.status_code&&((0,z.Q0)(t,s.status_code),t.end(),delete r[e]);return}let c=er(s.url),u=c?(0,d.en)(c).host:void 0,h=!!(0,o.HN)(),p=l&&h?(0,v.qp)({name:`${s.method} ${s.url}`,attributes:{type:"xhr","http.method":s.method,"http.url":c,url:s.url,"server.address":u,[a.S3]:"auto.http.browser",[a.$J]:"http.client"}}):new Y.b;i.__sentry_xhr_span_id__=p.spanContext().spanId,r[i.__sentry_xhr_span_id__]=p;let f=(0,m.s3)();return i.setRequestHeader&&n(s.url)&&f&&function(e,t,n){let r=(0,m.nZ)(),{traceId:i,spanId:s,sampled:a,dsc:l}={...(0,m.aF)().getPropagationContext(),...r.getPropagationContext()};(function(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(J.bU,n)}catch(e){}})(e,n&&(0,G.z)()?(0,o.Hb)(n):(0,B.$p)(i,s,a),(0,J.IQ)(l||(n?(0,$.jC)(n):(0,$._l)(i,t))))}(i,f,(0,G.z)()&&h?p:void 0),p}(e,u,h,p);l&&t&&et(t)})}(e,{traceFetch:ef,traceXHR:em,trackFetchStreamPerformance:eg,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:ey,enableHTTPTimings:ev})}}};function eo(e,t,n){e.emit("startPageLoadSpan",t,n),(0,m.nZ)().setTransactionName(t.name);let r=(0,o.HN)();return"pageload"===(r&&(0,o.XU)(r).op)?r:void 0}function ea(e,t){(0,m.aF)().setPropagationContext((0,W.Q)()),(0,m.nZ)().setPropagationContext((0,W.Q)()),e.emit("startNavigationSpan",t),(0,m.nZ)().setTransactionName(t.name);let n=(0,o.HN)();return"navigation"===(n&&(0,o.XU)(n).op)?n:void 0}function el(e){let t=(0,l.qT)(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}}}]);

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.