PageSourceSearch

https://mijn.bumastemra.nl/assets/vendor_sentry_internal-Kw-WJLqs.js

js bumastemra.nl collected 2026-10-01 11:37:15 UTC 244,229 bytes, 1 lines download raw bytes

1import{a as Rt}from"./vendor_sentry-CtW5_YMr.js";(function(){try{var d=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};d.SENTRY_RELEASE={id:"57334"};var c=new d.Error().stack;c&&(d._sentryDebugIds=d._sentryDebugIds||{},d._sentryDebugIds[c]="ee12d236-b796-4021-8bdb-4bb1438b0236",d._sentryDebugIdIdentifier="sentry-dbid-ee12d236-b796-4021-8bdb-4bb1438b0236")}catch(C){}})();var Xi={},ds;function gu(){return ds||(ds=1,(function(d){Object.defineProperty(d,Symbol.toStringTag,{value:"Module"});const c=Rt(),C=c.GLOBAL_OBJ,m=C.document,k=C.navigator,P="Report a Bug",x="Cancel",b="Send Bug Report",N="Confirm",M="Report a Bug",R="[email protected]",F="Email",B="What's the bug? What did you expect?",W="Description",H="Your Name",D="Name",I="Thank you for your report!",z="(required)",oe="Add a screenshot",Z="Remove screenshot",X="Highlight",ee="Hide",he="Remove",Q="Unable to submit feedback with empty message",fe="No client setup, cannot send feedback.",pe="Unable to determine if Feedback was correctly sent.",rt="Unable to send feedback. This could be because this domain is not in your list of allowed domains.",ut="Unable to send feedback. This could be because of network issues, or because you are using an ad-blocker.",it="widget",se="api",Ge=5e3,ot={ERROR_EMPTY_MESSAGE:Q,ERROR_NO_CLIENT:fe,ERROR_TIMEOUT:pe,ERROR_FORBIDDEN:rt,ERROR_GENERIC:ut};function ht(i,s){var u;return(u=s==null?void 0:s[i])!=null?u:ot[i]}function At(i,s){return new Error(ht(i,s))}const rn=(i,s={includeReplay:!0})=>{const u=s.errorMessages;if(!i.message)throw At("ERROR_EMPTY_MESSAGE",u);const p=c.getClient();if(!p)throw At("ERROR_NO_CLIENT",u);i.tags&&Object.keys(i.tags).length&&c.getCurrentScope().setTags(i.tags);const g=c.captureFeedback({source:se,url:c.getLocationHref(),...i},s);return new Promise((E,j)=>{const J=setTimeout(()=>{ce(),j(ht("ERROR_TIMEOUT",u))},3e4),ce=p.on("afterSendEvent",(Y,re)=>{if(Y.event_id===g)return clearTimeout(J),ce(),re!=null&&re.statusCode&&re.statusCode>=200&&re.statusCode<300?E(g):(re==null?void 0:re.statusCode)===403?j(ht("ERROR_FORBIDDEN",u)):j(ht("ERROR_GENERIC",u))})})},on=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function kn(){return!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(k.userAgent)||/Macintosh/i.test(k.userAgent)&&k.maxTouchPoints&&k.maxTouchPoints>1||!isSecureContext)}function U(i,s){return{...i,...s,tags:{...i.tags,...s.tags},onFormOpen:()=>{var u,p;(u=s.onFormOpen)==null||u.call(s),(p=i.onFormOpen)==null||p.call(i)},onFormClose:()=>{var u,p;(u=s.onFormClose)==null||u.call(s),(p=i.onFormClose)==null||p.call(i)},onSubmitSuccess:(u,p)=>{var g,E;(g=s.onSubmitSuccess)==null||g.call(s,u,p),(E=i.onSubmitSuccess)==null||E.call(i,u,p)},onSubmitError:u=>{var p,g;(p=s.onSubmitError)==null||p.call(s,u),(g=i.onSubmitError)==null||g.call(i,u)},onFormSubmitted:()=>{var u,p;(u=s.onFormSubmitted)==null||u.call(s),(p=i.onFormSubmitted)==null||p.call(i)},themeDark:{...i.themeDark,...s.themeDark},themeLight:{...i.themeLight,...s.themeLight}}}function K(i){const s=m.createElement("style");return s.textContent='\n.widget__actor {\n  position: fixed;\n  z-index: var(--z-index);\n  margin: var(--page-margin);\n  inset: var(--actor-inset);\n\n  display: flex;\n  align-items: center;\n  gap: 8px;\n  padding: 16px;\n\n  font-family: inherit;\n  font-size: var(--font-size);\n  font-weight: 600;\n  line-height: 1.14em;\n  text-decoration: none;\n\n  background: var(--actor-background, var(--background));\n  border-radius: var(--actor-border-radius, 1.7em/50%);\n  border: var(--actor-border, var(--border));
1\n  box-shadow: var(--actor-box-shadow, var(--box-shadow));\n  color: var(--actor-color, var(--foreground));\n  fill: var(--actor-color, var(--foreground));\n  cursor: pointer;\n  opacity: 1;\n  transition: transform 0.2s ease-in-out;\n  transform: translate(0, 0) scale(1);\n}\n.widget__actor[aria-hidden="true"] {\n  opacity: 0;\n  pointer-events: none;\n  visibility: hidden;\n  transform: translate(0, 16px) scale(0.98);\n}\n\n.widget__actor:hover {\n  background: var(--actor-hover-background, var(--background));\n  filter: var(--interactive-filter);\n}\n\n.widget__actor svg {\n  width: 1.14em;\n  height: 1.14em;\n}\n\n@media (max-width: 600px) {\n  .widget__actor span {\n    display: none;\n  }\n}\n',i&&s.setAttribute("nonce",i),s}function G(i,s){return Object.entries(s).forEach(([u,p])=>{i.setAttributeNS(null,u,p)}),i}const ae=20,we="http://www.w3.org/2000/svg";function Ne(){const i=J=>C.document.createElementNS(we,J),s=G(i("svg"),{width:"".concat(ae),height:"".concat(ae),viewBox:"0 0 ".concat(ae," ").concat(ae),fill:"var(--actor-color, var(--foreground))"}),u=G(i("g"),{clipPath:"url(#clip0_57_80)"}),p=G(i("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.4556 5.30487 17.7425 5.53934C18.0293 5.77381 18.2605 6.06912 18.4192 6.40389C18.578 6.73866 18.6603 7.10452 18.6603 7.47502C18.6603 7.84552 18.578 8.21139 18.4192 8.54616C18.2605 8.88093 18.0293 9.17624 17.7425 9.41071C17.4556 9.64518 17.1202 9.81296 16.7605 9.90191C16.7072 9.91509 16.6536 9.9265 16.5997 9.93612Z"});s.appendChild(u).appendChild(p);const g=i("defs"),E=G(i("clipPath"),{id:"clip0_57_80"}),j=G(i("rect"),{width:"".concat(ae),height:"".concat(ae),fill:"white"});return E.appendChild(j),g.appendChild(E),s.appendChild(g).appendChild(E).appendChild(j),s}function Ze({triggerLabel:i,triggerAriaLabel:s,shadow:u,styleNonce:p}){const g=m.createElement("button");if(g.type="button",g.className="widget__actor",g.ariaHidden="false",g.ariaLabel=s||i||P,g.appendChild(Ne()),i){const j=m.createElement("span");j.appendChild(m.createTextNode(i)),g.appendChild(j)}const E=K(p);return{el:g,appendToDom(){u.appendChild(E),u.appendChild(g)},removeFromDom(){g.remove(),E.remove()},show(){g.ariaHidden="false"},hide(){g.ariaHidden="true"}}}const Tt="rgba(88, 74, 192, 1)",$e={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackground:Tt,successColor:"#268d75",errorColor:"#df3338",border:"1.5px solid rgba(41, 35, 47, 0.13)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(95%)"},st={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackgroun
1d:Tt,successColor:"#2da98c",errorColor:"#f55459",border:"1.5px solid rgba(235, 230, 239, 0.15)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(150%)"};function Nt(i){return"\n  --foreground: ".concat(i.foreground,";\n  --background: ").concat(i.background,";\n  --accent-foreground: ").concat(i.accentForeground,";\n  --accent-background: ").concat(i.accentBackground,";\n  --success-color: ").concat(i.successColor,";\n  --error-color: ").concat(i.errorColor,";\n  --border: ").concat(i.border,";\n  --box-shadow: ").concat(i.boxShadow,";\n  --outline: ").concat(i.outline,";\n  --interactive-filter: ").concat(i.interactiveFilter,";\n  ")}function mt({colorScheme:i,themeDark:s,themeLight:u,styleNonce:p}){const g=m.createElement("style");return g.textContent="\n:host {\n  --font-family: system-ui, 'Helvetica Neue', Arial, sans-serif;\n  --font-size: 14px;\n  --z-index: 100000;\n\n  --page-margin: 16px;\n  --inset: auto 0 0 auto;\n  --actor-inset: var(--inset);\n\n  font-family: var(--font-family);\n  font-size: var(--font-size);\n\n  ".concat(i!=="system"?"color-scheme: only ".concat(i,";"):"","\n\n  ").concat(Nt(i==="dark"?{...st,...s}:{...$e,...u}),"\n}\n\n").concat(i==="system"?"\n@media (prefers-color-scheme: dark) {\n  :host {\n    color-scheme: only dark;\n\n    ".concat(Nt({...st,...s}),"\n  }\n}"):"","\n"),p&&g.setAttribute("nonce",p),g}const y=({lazyLoadIntegration:i,getModalIntegration:s,getScreenshotIntegration:u})=>(({id:g="sentry-feedback",autoInject:E=!0,showBranding:j=!0,isEmailRequired:J=!1,isNameRequired:ce=!1,showEmail:Y=!0,showName:re=!0,enableScreenshot:v=!0,useSentryUser:ve={email:"email",name:"username"},tags:te,styleNonce:be,scriptNonce:Fe,colorScheme:Be="system",themeLight:Ie={},themeDark:We={},addScreenshotButtonLabel:gt=oe,cancelButtonLabel:nt=x,confirmButtonLabel:Xt=N,emailLabel:Vt=F,emailPlaceholder:De=R,formTitle:Dt=M,isRequiredLabel:Ve=z,messageLabel:at=W,messagePlaceholder:Sn=B,nameLabel:Le=D,namePlaceholder:ze=H,removeScreenshotButtonLabel:kt=Z,submitButtonLabel:Bt=b,successMessageText:un=I,triggerLabel:bn=P,triggerAriaLabel:Et="",highlightToolText:Ht=X,hideToolText:_t=ee,removeHighlightText:Ut=he,errorEmptyMessageText:zn=Q,errorNoClientText:vn=fe,errorTimeoutText:xt=pe,errorForbiddenText:tr=rt,errorGenericText:vi=ut,onFormOpen:Ei,onFormClose:wi,onSubmitSuccess:Ti,onSubmitError:Ii,onFormSubmitted:Ci}={})=>{const Cn={id:g,autoInject:E,showBranding:j,isEmailRequired:J,isNameRequired:ce,showEmail:Y,showName:re,enableScreenshot:v,useSentryUser:ve,tags:te,styleNonce:be,scriptNonce:Fe,colorScheme:Be,themeDark:We,themeLight:Ie,triggerLabel:bn,triggerAriaLabel:Et,cancelButtonLabel:nt,submitButtonLabel:Bt,confirmButtonLabel:Xt,formTitle:Dt,emailLabel:Vt,emailPlaceholder:De,messageLabel:at,messagePlaceholder:Sn,nameLabel:Le,namePlaceholder:ze,successMessageText:un,isRequiredLabel:Ve,addScreenshotButtonLabel:gt,removeScreenshotButtonLabel:kt,highlightToolText:Ht,hideToolText:_t,removeHighlightText:Ut,errorEmptyMessageText:zn,errorNoClientText:vn,errorTimeoutText:xt,errorForbiddenText:tr,errorGenericText:vi,onFormClose:wi,onFormOpen:Ei,onSubmitError:Ii,onSubmitSuccess:Ti,onFormSubmitted:Ci};let Kt=null,Dn=null,jn=[];const $r=He=>{if(!Kt){const dt=m.createElement("div");dt.id=String(He.id),m.body.appendChild(dt),Kt=dt.attachShadow({mode:"open"}),Dn=mt(He),Kt.appendChild(Dn)}return Kt},Jt=async He=>{const dt=He.enableScreenshot&&kn();let Zt,qt;try{Zt=(s?s():await i("feedbackModalIntegration",Fe))(),c.addIntegration(Zt)}catch(bt){throw on&&c.debug.error("[Feedback] Error when trying to load feedback integrations. Try using `feedbackSyncIntegration` in your `Sentry.init`."),new Error("[Feedback] Missing feedback modal integration!")}try{const bt=dt?u?u():await i("feedbackScreenshotIntegration",Fe):void 0;bt&&(qt=bt(),c.addIntegration(qt))}catch(bt){on&&c.debug.error("[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.")}const zt={ERROR_EMPTY_MESSAGE:He.errorEmptyMessageText,ERROR_NO_CLIENT:He.errorNoClientText,E
1RROR_TIMEOUT:He.errorTimeoutText,ERROR_FORBIDDEN:He.errorForbiddenText,ERROR_GENERIC:He.errorGenericText},nr=(bt,ki)=>rn(bt,{includeReplay:!0,...ki,errorMessages:zt}),Qt=Zt.createDialog({options:{...He,onFormClose:()=>{var bt;Qt==null||Qt.close(),(bt=He.onFormClose)==null||bt.call(He)},onFormSubmitted:()=>{var bt;Qt==null||Qt.close(),(bt=He.onFormSubmitted)==null||bt.call(He)}},screenshotIntegration:qt,sendFeedback:nr,shadow:$r(He)});return Qt},Gn=(He,dt={})=>{const Zt=U(Cn,dt),qt=typeof He=="string"?m.querySelector(He):typeof He.addEventListener=="function"?He:null;if(!qt)throw on&&c.debug.error("[Feedback] Unable to attach to target element"),new Error("Unable to attach to target element");let zt=null;const nr=async()=>{zt||(zt=await Jt({...Zt,onFormSubmitted:()=>{var bt;zt==null||zt.removeFromDom(),(bt=Zt.onFormSubmitted)==null||bt.call(Zt)}})),zt.appendToDom(),zt.open()};qt.addEventListener("click",nr);const Qt=()=>{jn=jn.filter(bt=>bt!==Qt),zt==null||zt.removeFromDom(),zt=null,qt.removeEventListener("click",nr)};return jn.push(Qt),Qt},vr=(He={})=>{const dt=U(Cn,He),Zt=$r(dt),qt=Ze({triggerLabel:dt.triggerLabel,triggerAriaLabel:dt.triggerAriaLabel,shadow:Zt,styleNonce:be});return Gn(qt.el,{...dt,onFormOpen(){qt.hide()},onFormClose(){qt.show()},onFormSubmitted(){qt.show()}}),qt};return{name:"Feedback",setupOnce(){!c.isBrowser()||!Cn.autoInject||(m.readyState==="loading"?m.addEventListener("DOMContentLoaded",()=>vr().appendToDom()):vr().appendToDom())},attachTo:Gn,createWidget(He={}){const dt=vr(U(Cn,He));return dt.appendToDom(),dt},async createForm(He={}){return Jt(U(Cn,He))},setTheme(He){if(Cn.colorScheme=He,Kt){const dt=mt(Cn);Dn?Kt.replaceChild(dt,Dn):Kt.prepend(dt),Dn=dt}},remove(){var He;Kt&&((He=Kt.parentElement)==null||He.remove(),Kt=null,Dn=null),jn.forEach(dt=>dt()),jn=[]}}});function _(){const i=c.getClient();return i==null?void 0:i.getIntegrationByName("Feedback")}var w,T,q,ne,Te,de,Re,tt={},lt=[],pt=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Gt=Array.isArray;function Lt(i,s){for(var u in s)i[u]=s[u];return i}function It(i){var s=i.parentNode;s&&s.removeChild(i)}function ye(i,s,u){var p,g,E,j={};for(E in s)E=="key"?p=s[E]:E=="ref"?g=s[E]:j[E]=s[E];if(arguments.length>2&&(j.children=arguments.length>3?w.call(arguments,2):u),typeof i=="function"&&i.defaultProps!=null)for(E in i.defaultProps)j[E]===void 0&&(j[E]=i.defaultProps[E]);return sn(i,j,p,g,null)}function sn(i,s,u,p,g){var E={type:i,props:s,key:u,ref:p,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:g==null?++q:g,__i:-1,__u:0};return g==null&&T.vnode!=null&&T.vnode(E),E}function Ct(i){return i.children}function en(i,s){this.props=i,this.context=s}function Mn(i,s){if(s==null)return i.__?Mn(i.__,i.__i+1):null;for(var u;s<i.__k.length;s++)if((u=i.__k[s])!=null&&u.__e!=null)return u.__e;return typeof i.type=="function"?Mn(i):null}function ai(i,s,u){var p,g=i.__v,E=g.__e,j=i.__P;if(j)return(p=Lt({},g)).__v=g.__v+1,T.vnode&&T.vnode(p),pn(j,p,g,i.__n,j.ownerSVGElement!==void 0,32&g.__u?[E]:null,s,E==null?Mn(g):E,!!(32&g.__u),u),p.__.__k[p.__i]=p,p.__d=void 0,p.__e!=E&&Rr(p),p}function Rr(i){var s,u;if((i=i.__)!=null&&i.__c!=null){for(i.__e=i.__c.base=null,s=0;s<i.__k.length;s++)if((u=i.__k[s])!=null&&u.__e!=null){i.__e=i.__c.base=u.__e;break}return Rr(i)}}function sr(i){(!i.__d&&(i.__d=!0)&&ne.push(i)&&!an.__r++||Te!==T.debounceRendering)&&((Te=T.debounceRendering)||de)(an)}function an(){var i,s,u,p=[],g=[];for(ne.sort(Re);i=ne.shift();)i.__d&&(u=ne.length,s=ai(i,p,g)||s,u===0||ne.length>u?(cr(p,s,g),g.length=p.length=0,s=void 0,ne.sort(Re)):s&&T.__c&&T.__c(s,lt));s&&cr(p,s,g),an.__r=0}function Ar(i,s,u,p,g,E,j,J,ce,Y,re){var v,ve,te,be,Fe,Be=p&&p.__k||lt,Ie=s.length;for(u.__d=ce,Kn(u,s,Be),ce=u.__d,v=0;v<Ie;v++)(te=u.__k[v])!=null&&typeof te!="boolean"&&typeof te!="function"&&(ve=te.__i===-1?tt:Be[te.__i]||tt,te.__i=v,pn(i,te,ve,g,E,j,J,ce,Y,re),be=te.__e,te.ref&&ve.ref!=te.ref&&(ve.ref&&ur(ve.ref,null,te),re.push(te.ref,te.__c||be,te)),Fe==null&&be!=null&&(Fe=be),65536&te.__u||ve.__k===te.__k?ce=ar(te,ce,i):typeof te.type=="function"&&te.__d!==void 0?ce=te.__d:be&&(ce
vendor: 6,089 bytes, line 1
1=be.nextSibling),te.__d=void 0,te.__u&=-196609);u.__d=ce,u.__e=Fe}function Kn(i,s,u){var p,g,E,j,J,ce=s.length,Y=u.length,re=Y,v=0;for(i.__k=[],p=0;p<ce;p++)(g=i.__k[p]=(g=s[p])==null||typeof g=="boolean"||typeof g=="function"?null:typeof g=="string"||typeof g=="number"||typeof g=="bigint"||g.constructor==String?sn(null,g,null,null,g):Gt(g)?sn(Ct,{children:g},null,null,null):g.constructor===void 0&&g.__b>0?sn(g.type,g.props,g.key,g.ref?g.ref:null,g.__v):g)!=null?(g.__=i,g.__b=i.__b+1,J=Nr(g,u,j=p+v,re),g.__i=J,E=null,J!==-1&&(re--,(E=u[J])&&(E.__u|=131072)),E==null||E.__v===null?(J==-1&&v--,typeof g.type!="function"&&(g.__u|=65536)):J!==j&&(J===j+1?v++:J>j?re>ce-j?v+=J-j:v--:v=J<j&&J==j-1?J-j:0,J!==p+v&&(g.__u|=65536))):(E=u[p])&&E.key==null&&E.__e&&(E.__e==i.__d&&(i.__d=Mn(E)),lr(E,E,!1),u[p]=null,re--);if(re)for(p=0;p<Y;p++)(E=u[p])!=null&&(131072&E.__u)==0&&(E.__e==i.__d&&(i.__d=Mn(E)),lr(E,E))}function ar(i,s,u){var p,g;if(typeof i.type=="function"){for(p=i.__k,g=0;p&&g<p.length;g++)p[g]&&(p[g].__=i,s=ar(p[g],s,u));return s}i.__e!=s&&(u.insertBefore(i.__e,s||null),s=i.__e);do s=s&&s.nextSibling;while(s!=null&&s.nodeType===8);return s}function Nr(i,s,u,p){var g=i.key,E=i.type,j=u-1,J=u+1,ce=s[u];if(ce===null||ce&&g==ce.key&&E===ce.type)return u;if(p>(ce!=null&&(131072&ce.__u)==0?1:0))for(;j>=0||J<s.length;){if(j>=0){if((ce=s[j])&&(131072&ce.__u)==0&&g==ce.key&&E===ce.type)return j;j--}if(J<s.length){if((ce=s[J])&&(131072&ce.__u)==0&&g==ce.key&&E===ce.type)return J;J++}}return-1}function Lr(i,s,u){s[0]==="-"?i.setProperty(s,u==null?"":u):i[s]=u==null?"":typeof u!="number"||pt.test(s)?u:u+"px"}function Jn(i,s,u,p,g){var E;e:if(s==="style")if(typeof u=="string")i.style.cssText=u;else{if(typeof p=="string"&&(i.style.cssText=p=""),p)for(s in p)u&&s in u||Lr(i.style,s,"");if(u)for(s in u)p&&u[s]===p[s]||Lr(i.style,s,u[s])}else if(s[0]==="o"&&s[1]==="n")E=s!==(s=s.replace(/(PointerCapture)$|Capture$/i,"$1")),s=s.toLowerCase()in i?s.toLowerCase().slice(2):s.slice(2),i.l||(i.l={}),i.l[s+E]=u,u?p?u.u=p.u:(u.u=Date.now(),i.addEventListener(s,E?Tn:hn,E)):i.removeEventListener(s,E?Tn:hn,E);else{if(g)s=s.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(s!=="width"&&s!=="height"&&s!=="href"&&s!=="list"&&s!=="form"&&s!=="tabIndex"&&s!=="download"&&s!=="rowSpan"&&s!=="colSpan"&&s!=="role"&&s in i)try{i[s]=u==null?"":u;break e}catch(j){}typeof u=="function"||(u==null||u===!1&&s[4]!=="-"?i.removeAttribute(s):i.setAttribute(s,u))}}function hn(i){if(this.l){var s=this.l[i.type+!1];if(i.t){if(i.t<=s.u)return}else i.t=Date.now();return s(T.event?T.event(i):i)}}function Tn(i){if(this.l)return this.l[i.type+!0](T.event?T.event(i):i)}function pn(i,s,u,p,g,E,j,J,ce,Y){var re,v,ve,te,be,Fe,Be,Ie,We,gt,nt,Xt,Vt,De,Dt,Ve=s.type;if(s.constructor!==void 0)return null;128&u.__u&&(ce=!!(32&u.__u),E=[J=s.__e=u.__e]),(re=T.__b)&&re(s);e:if(typeof Ve=="function")try{if(Ie=s.props,We=(re=Ve.contextType)&&p[re.__c],gt=re?We?We.props.value:re.__:p,u.__c?Be=(v=s.__c=u.__c).__=v.__E:("prototype"in Ve&&Ve.prototype.render?s.__c=v=new Ve(Ie,gt):(s.__c=v=new en(Ie,gt),v.constructor=Ve,v.render=ui),We&&We.sub(v),v.props=Ie,v.state||(v.state={}),v.context=gt,v.__n=p,ve=v.__d=!0,v.__h=[],v._sb=[]),v.__s==null&&(v.__s=v.state),Ve.getDerivedStateFromProps!=null&&(v.__s==v.state&&(v.__s=Lt({},v.__s)),Lt(v.__s,Ve.getDerivedStateFromProps(Ie,v.__s))),te=v.props,be=v.state,v.__v=s,ve)Ve.getDerivedStateFromProps==null&&v.componentWillMount!=null&&v.componentWillMount(),v.componentDidMount!=null&&v.__h.push(v.componentDidMount);else{if(Ve.getDerivedStateFromProps==null&&Ie!==te&&v.componentWillReceiveProps!=null&&v.componentWillReceiveProps(Ie,gt),!v.__e&&(v.shouldComponentUpdate!=null&&v.shouldComponentUpdate(Ie,v.__s,gt)===!1||s.__v===u.__v)){for(s.__v!==u.__v&&(v.props=Ie,v.state=v.__s,v.__d=!1),s.__e=u.__e,s.__k=u.__k,s.__k.forEach(function(at){at&&(at.__=s)}),nt=0;nt<v._sb.length;nt++)v.__h.push(v._sb[nt]);v._sb=[],v.__h.length&&j.push(v);break e}v.componentWillUpdate!=null&&v.componentWillUpdate(Ie,v.__s,gt),v.componentDidUpdate!=null&&v.__h.push(function(){v.componentDidUpdate(te,be,Fe)})}if(v.context=gt,v.props=Ie,v.__P=i,v.__e=!1,Xt=T.__r,Vt=0,"prototype"in Ve&&Ve.prototype.render){for(v.state=v.__s,v.__d=!1,Xt&&Xt(s),re=v.render(v.props,v.state,v.context),De=0;De<v._sb.length;De++)v.__h.push(v._sb[De]);v._sb=[]}else do v.__d=!1,Xt&&Xt(s),re=v.render(v.props,v.state,v.context),v.state=v.__s;while(v.__d&&++Vt<25);v.state=v.__s,v.getChildContext!=null&&(p=Lt(Lt({},p),v.getChildContext())),ve||v.getSnapshotBeforeUpdate==null||(Fe=v.getSnapshotBeforeUpdate(te,be)),Ar(i,Gt(Dt=re!=null&&re.type===Ct&&re.key==null?re.props.children:re)?Dt:[Dt],s,u,p,g,E,j,J,ce,Y),v.base=s.__e,s.__u&=-161,v.__h.length&&j.push(v),Be&&(v.__E=v.__=null)}catch(at){s.__v=null,ce||E!=null?(s.__e=J,s.__u|=ce?160:32,E[E.indexOf(J)]=null):(s.__e=u.__e,s.__k=u.__k),T.__e(at,s,u)}else E==null&&s.__v===u.__v?(s.__k=u.__k,s.__e=u.__e):s.__e=ci(u.__e,s,u,p,g,E,j,ce,Y);(re=T.diffed)&&re(s)}function cr(i,s,u){for(var p=0;p<u.length;p++)ur(u[p],u[++p],u[++p]);T.__c&&T.__c(s,i),i.some(function(g){try{i=g.__h,g.__h=[],i.some(function(E){E.call(g)})}catch(E){T.__e(E,g.__v)}})}function ci(i,s,u,p,g,E,j,J,ce){var Y,re,v,ve,te,be,Fe,Be=u.props,Ie=s.props,We=s.type;if(We==="svg"&&(g=!0),E!=null){for(Y=0;Y<E.length;Y++)if((te=E[Y])&&"setAttribute"in te==!!We&&(We?te.localName===We:te.nodeType===3)){i=te,E[Y]=null;break}}if(i==null){if(We===null)return document.createTextNode(Ie);i=g?document.createElementNS("http://www.w3.org/2000/svg",We):document.createElement(We,Ie.is&&Ie),E=null,J=!1}if(We===null)Be===Ie||J&&i.data===Ie||(i.data=Ie);else{if(E=E&&w.call(i.childNodes),Be=u.props||tt,!J&&E!=null)for(Be={},Y=0;Y<i.attributes.length;Y++)Be[(te=i.attributes[Y]).name]=te.value;for(Y in Be)te=Be[Y],Y=="children"||(Y=="dangerouslySetInnerHTML"?v=te:Y==="key"||Y in Ie||Jn(i,Y,null,te,g));for(Y in Ie)te=Ie[Y],Y=="children"?ve=te:Y=="dangerouslySetInnerHTML"?re=te:Y=="value"?be=te:Y=="checked"?Fe=te:Y==="key"||J&&typeof te!="function"||Be[Y]===te||Jn(i,Y,te,Be[Y],g);
1if(re)J||v&&(re.__html===v.__html||re.__html===i.innerHTML)||(i.innerHTML=re.__html),s.__k=[];else if(v&&(i.innerHTML=""),Ar(i,Gt(ve)?ve:[ve],s,u,p,g&&We!=="foreignObject",E,j,E?E[0]:u.__k&&Mn(u,0),J,ce),E!=null)for(Y=E.length;Y--;)E[Y]!=null&&It(E[Y]);J||(Y="value",be!==void 0&&(be!==i[Y]||We==="progress"&&!be||We==="option"&&be!==Be[Y])&&Jn(i,Y,be,Be[Y],!1),Y="checked",Fe!==void 0&&Fe!==i[Y]&&Jn(i,Y,Fe,Be[Y],!1))}return i}function ur(i,s,u){try{typeof i=="function"?i(s):i.current=s}catch(p){T.__e(p,u)}}function lr(i,s,u){var p,g;if(T.unmount&&T.unmount(i),(p=i.ref)&&(p.current&&p.current!==i.__e||ur(p,null,s)),(p=i.__c)!=null){if(p.componentWillUnmount)try{p.componentWillUnmount()}catch(E){T.__e(E,s)}p.base=p.__P=null,i.__c=void 0}if(p=i.__k)for(g=0;g<p.length;g++)p[g]&&lr(p[g],s,u||typeof i.type!="function");u||i.__e==null||It(i.__e),i.__=i.__e=i.__d=void 0}function ui(i,s,u){return this.constructor(i,u)}function li(i,s,u){var p,g,E,j;T.__&&T.__(i,s),g=(p=!1)?null:s.__k,E=[],j=[],pn(s,i=s.__k=ye(Ct,null,[i]),g||tt,tt,s.ownerSVGElement!==void 0,g?null:s.firstChild?w.call(s.childNodes):null,E,g?g.__e:s.firstChild,p,j),i.__d=void 0,cr(E,i,j)}w=lt.slice,T={__e:function(i,s,u,p){for(var g,E,j;s=s.__;)if((g=s.__c)&&!g.__)try{if((E=g.constructor)&&E.getDerivedStateFromError!=null&&(g.setState(E.getDerivedStateFromError(i)),j=g.__d),g.componentDidCatch!=null&&(g.componentDidCatch(i,p||{}),j=g.__d),j)return g.__E=g}catch(J){i=J}throw i}},q=0,en.prototype.setState=function(i,s){var u;u=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Lt({},this.state),typeof i=="function"&&(i=i(Lt({},u),this.props)),i&&Lt(u,i),i!=null&&this.__v&&(s&&this._sb.push(s),sr(this))},en.prototype.forceUpdate=function(i){this.__v&&(this.__e=!0,i&&this.__h.push(i),sr(this))},en.prototype.render=Ct,ne=[],de=typeof Promise=="function"?Promise.prototype.then.bind(Prom
1ise.resolve()):setTimeout,Re=function(i,s){return i.__v.__b-s.__v.__b},an.__r=0;var xe,Ke,mn,Or,gn=0,Rn=[],St=[],Xe=T,dr=Xe.__b,An=Xe.__r,fr=Xe.diffed,Zn=Xe.__c,Bn=Xe.unmount,hr=Xe.__;function _n(i,s){Xe.__h&&Xe.__h(Ke,i,gn||s),gn=0;var u=Ke.__H||(Ke.__H={__:[],__h:[]});return i>=u.__.length&&u.__.push({__V:St}),u.__[i]}function yn(i){return gn=1,pr(Hr,i)}function pr(i,s,u){var p=_n(xe++,2);if(p.t=i,!p.__c&&(p.__=[u?u(s):Hr(void 0,s),function(J){var ce=p.__N?p.__N[0]:p.__[0],Y=p.t(ce,J);ce!==Y&&(p.__N=[Y,p.__[1]],p.__c.setState({}))}],p.__c=Ke,!Ke.u)){var g=function(J,ce,Y){if(!p.__c.__H)return!0;var re=p.__c.__H.__.filter(function(ve){return!!ve.__c});if(re.every(function(ve){return!ve.__N}))return!E||E.call(this,J,ce,Y);var v=!1;return re.forEach(function(ve){if(ve.__N){var te=ve.__[0];ve.__=ve.__N,ve.__N=void 0,te!==ve.__[0]&&(v=!0)}}),!(!v&&p.__c.props===J)&&(!E||E.call(this,J,ce,Y))};Ke.u=!0;var E=Ke.shouldComponentUpdate,j=Ke.componentWillUpdate;Ke.componentWillUpdate=function(J,ce,Y){if(this.__e){var re=E;E=void 0,g(J,ce,Y),E=re}j&&j.call(this,J,ce,Y)},Ke.shouldComponentUpdate=g}return p.__N||p.__}function Wt(i,s){var u=_n(xe++,3);!Xe.__s&&Wn(u.__H,s)&&(u.__=i,u.i=s,Ke.__H.__h.push(u))}function Dr(i,s){var u=_n(xe++,4);!Xe.__s&&Wn(u.__H,s)&&(u.__=i,u.i=s,Ke.__h.push(u))}function mr(i){return gn=5,In(function(){return{current:i}},[])}function xr(i,s,u){gn=6,Dr(function(){return typeof i=="function"?(i(s()),function(){return i(null)}):i?(i.current=s(),function(){return i.current=null}):void 0},u==null?u:u.concat(i))}function In(i,s){var u=_n(xe++,7);return Wn(u.__H,s)?(u.__V=i(),u.i=s,u.__h=i,u.__V):u.__}function Nn(i,s){return gn=8,In(function(){return i},s)}function Pr(i){var s=Ke.context[i.__c],u=_n(xe++,9);return u.c=i,s?(u.__==null&&(u.__=!0,s.sub(Ke)),s.props.value):i.__}function Br(i,s){Xe.useDebugValue&&Xe.useDebugValue(s?s(i):i)}function gr(i){var s=_n(xe++,10),u=yn();return s.__=i,Ke.componentDidCatch||(Ke.componentDidCatch=function(p,g){s.__&&s.__(p,g),u[1](p)}),[u[0],function(){u[1](void 0)}]}function di(){var i=_n(xe++,11);if(!i.__){for(var s=Ke.__v;s!==null&&!s.__m&&s.__!==null;)s=s.__;var u=s.__m||(s.__m=[0,0]);i.__="P"+u[0]+"-"+u[1]++}return i.__}function Fr(){for(var i;i=Rn.shift();)if(i.__P&&i.__H)try{i.__H.__h.forEach(Fn),i.__H.__h.forEach(Qn),i.__H.__h=[]}catch(s){i.__H.__h=[],Xe.__e(s,i.__v)}}Xe.__b=function(i){Ke=null,dr&&dr(i)},Xe.__=function(i,s){s.__k&&s.__k.__m&&(i.__m=s.__k.__m),hr&&hr(i,s)},Xe.__r=function(i){An&&An(i),xe=0;var s=(Ke=i.__c).__H;s&&(mn===Ke?(s.__h=[],Ke.__h=[],s.__.forEach(function(u){u.__N&&(u.__=u.__N),u.__V=St,u.__N=u.i=void 0})):(s.__h.forEach(Fn),s.__h.forEach(Qn),s.__h=[],xe=0)),mn=Ke},Xe.diffed=function(i){fr&&fr(i);var s=i.__c;s&&s.__H&&(s.__H.__h.length&&(Rn.push(s)!==1&&Or===Xe.requestAnimationFrame||((Or=Xe.requestAnimationFrame)||fi)(Fr)),s.__H.__.forEach(function(u){u.i&&(u.__H=u.i),u.__V!==St&&(u.__=u.__V),u.i=void 0,u.__V=St})),mn=Ke=null},Xe.__c=function(i,s){s.some(function(u){try{u.__h.forEach(Fn),u.__h=u.__h.filter(function(p){return!p.__||Qn(p)})}catch(p){s.some(function(g){g.__h&&(g.__h=[])}),s=[],Xe.__e(p,u.__v)}}),Zn&&Zn(i,s)},Xe.unmount=function(i){Bn&&Bn(i);var s,u=i.__c;u&&u.__H&&(u.__H.__.forEach(function(p){try{Fn(p)}catch(g){s=g}}),u.__H=void 0,s&&Xe.__e(s,u.__v))};var Wr=typeof requestAnimationFrame=="function";function fi(i){var s,u=function(){clearTimeout(p),Wr&&cancelAnimationFrame(s),setTimeout(i)},p=setTimeout(u,100);Wr&&(s=requestAnimationFrame(u))}function Fn(i){var s=Ke,u=i.__c;typeof u=="function"&&(i.__c=void 0,u()),Ke=s}function Qn(i){var s=Ke;i.__c=i.__(),Ke=s}function Wn(i,s){return!i||i.length!==s.length||s.some(function(u,p){return u!==i[p]})}function Hr(i,s){return typeof s=="function"?s(i):s}const er=Object.defineProperty({__proto__:null,useCallback:Nn,useContext:Pr,useDebugValue:Br,useEffect:Wt,useErrorBoundary:gr,useId:di,useImperativeHandle:xr,useLayoutEffect:Dr,useMemo:In,useReducer:pr,useRef:mr,useState:yn},Symbol.toStringTag,{value:"Module"}),hi="http://www.w3.org/2000/svg";function ke(){const i=p=>m.createElementNS(hi,p),s=G(i("svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"}),u=G(i("path"),{transform:"translate(11, 11)",d:"M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z"});return s.appendChild(u),s}function Se({options:i}){const s=In(()=>({__html:ke().outerHTML}),[]);return ye("h2",{class:"dialog__header"},ye("span",{class:"dialog__title"},i.formTitle),i.showBranding?ye("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:s}):null)}function Ot(i,s){const u=[];return s.isNameRequired&&!i.name&&u.push(s.nameLabel),s.isEmailRequired&&!i.email&&u.push(s.emailLabel),i.message||u.push(s.messageLabel),u}function $t(i,s){const u=i.get(s);return typeof u=="string"?u.trim():""}function Ln({options:i,defaultEmail:s,defaultName:u,onFormClose:p,onSubmit:g,onSubmitSuccess:E,onSubmitError:j,showEmail
1:J,showName:ce,screenshotInput:Y}){const{tags:re,addScreenshotButtonLabel:v,removeScreenshotButtonLabel:ve,cancelButtonLabel:te,emailLabel:be,emailPlaceholder:Fe,isEmailRequired:Be,isNameRequired:Ie,messageLabel:We,messagePlaceholder:gt,nameLabel:nt,namePlaceholder:Xt,submitButtonLabel:Vt,isRequiredLabel:De}=i,[Dt,Ve]=yn(!1),[at,Sn]=yn(null),[Le,ze]=yn(!1),kt=Y==null?void 0:Y.input,[Bt,un]=yn(null),bn=Nn(_t=>{un(_t),ze(!1)},[]),Et=Nn(_t=>{const Ut=Ot(_t,{emailLabel:be,isEmailRequired:Be,isNameRequired:Ie,messageLabel:We,nameLabel:nt});return Ut.length>0?Sn("Please enter in the following required fields: ".concat(Ut.join(", "))):Sn(null),Ut.length===0},[be,Be,Ie,We,nt]),Ht=Nn(async _t=>{Ve(!0);try{if(_t.preventDefault(),!(_t.target instanceof HTMLFormElement))return;const Ut=new FormData(_t.target),zn=await(Y&&Le?Y.value():void 0),vn={name:$t(Ut,"name"),email:$t(Ut,"email"),message:$t(Ut,"message"),attachments:zn?[zn]:void 0};if(!Et(vn))return;try{const xt=await g({name:vn.name,email:vn.email,message:vn.message,source:it,tags:re},{attachments:vn.attachments});E(vn,xt)}catch(xt){on&&c.debug.error(xt);const tr=xt instanceof Error?xt:new Error(String(xt));Sn(tr.message),j(tr)}}finally{Ve(!1)}},[Y&&Le,E,j]);return ye("form",{class:"form",onSubmit:Ht},kt&&Le?ye(kt,{onError:bn}):null,ye("fieldset",{class:"form__right","data-sentry-feedback":!0,disabled:Dt},ye("div",{class:"form__top"},at?ye("div",{class:"form__error-container"},at):null,ce?ye("label",{for:"name",class:"form__label"},ye(_r,{label:nt,isRequiredLabel:De,isRequired:Ie}),ye("input",{class:"form__input",defaultValue:u,id:"name",name:"name",placeholder:Xt,required:Ie,type:"text"})):ye("input",{"aria-hidden":!0,value:u,name:"name",type:"hidden"}),J?ye("label",{for:"email",class:"form__label"},ye(_r,{label:be,isRequiredLabel:De,isRequired:Be}),ye("input",{class:"form__input",defaultValue:s,id:"email",name:"email",placeholder:Fe,required:Be,type:"email"})):ye("input",{"aria-hidden":!0,value:s,name:"email",type:"hidden"}),ye("label",{for:"message",class:"form__label"},ye(_r,{label:We,isRequiredLabel:De,isRequired:!0}),ye("textarea",{autoFocus:!0,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:gt,required:!0,rows:5})),kt?ye("label",{for:"screenshot",class:"form__label"},ye("button",{class:"btn btn--default",disabled:Dt,type:"button",onClick:()=>{un(null),ze(_t=>!_t)}},Le?ve:v),Bt?ye("div",{class:"form__error-container"},Bt.message):null):null),ye("div",{class:"btn-group"},ye("button",{class:"btn btn--primary",disabled:Dt,type:"submit"},Vt),ye("button",{class:"btn btn--default",disabled:Dt,type:"button",onClick:p},te))))}function _r({label:i,isRequired:s,isRequiredLabel:u}){return ye("span",{class:"form__label__text"},i,s&&ye("span",{class:"form__label__text--required"},u))}const Hn=16,Ur=17,qr="http://www.w3.org/2000/svg";function pi(){const i=ce=>C.document.createElementNS(qr,ce),s=G(i("svg"),{width:"".concat(Hn),height:"".concat(Ur),viewBox:"0 0 ".concat(Hn," ").concat(Ur),fill:"inherit"}),u=G(i("g"),{clipPath:"url(#clip0_57_156)"}),p=G(i("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z"}),g=G(i("path"),{d:"M6.68775 12.4297C6.78586 12.4745 6.89218 12.4984 7 12.5C7.11275 12.4955 7.22315 12.4664 7.32337 12.4145C7.4236 12.3627 7.51121 12.2894 7.58 12.2L12 5.63999C12.0848 5.47724 12.1071 5.28902 12.0625 5.11098C12.0178 4.93294 11.9095 4.77744 11.7579 4.67392C11.6064 4.57041 11.4221 4.52608 11.24 4.54931C11.0579 4.57254 10.8907 4.66173 
110.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z"});s.appendChild(u).append(g,p);const E=i("defs"),j=G(i("clipPath"),{id:"clip0_57_156"}),J=G(i("rect"),{width:"".concat(Hn),height:"".concat(Hn),fill:"white",transform:"translate(0 0.5)"});return j.appendChild(J),E.appendChild(j),s.appendChild(E).appendChild(j).appendChild(J),s}function yr({open:i,onFormSubmitted:s,...u}){const p=u.options,g=In(()=>({__html:pi().outerHTML}),[]),[E,j]=yn(null),J=Nn(()=>{E&&(clearTimeout(E),j(null)),s()},[E]),ce=Nn((Y,re)=>{u.onSubmitSuccess(Y,re),j(setTimeout(()=>{s(),j(null)},Ge))},[s]);return ye(Ct,null,E?ye("div",{class:"success__position",onClick:J},ye("div",{class:"success__content"},p.successMessageText,ye("span",{class:"success__icon",dangerouslySetInnerHTML:g}))):ye("dialog",{class:"dialog",onClick:p.onFormClose,open:i},ye("div",{class:"dialog__position"},ye("div",{class:"dialog__content",onClick:Y=>{Y.stopPropagation()}},ye(Se,{options:p}),ye(Ln,{...u,onSubmitSuccess:ce})))))}const zr="\n.dialog {\n  position: fixed;\n  z-index: var(--z-index);\n  margin: 0;\n  inset: 0;\n\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  padding: 0;\n  height: 100vh;\n  width: 100vw;\n\n  color: var(--dialog-color, var(--foreground));\n  fill: var(--dialog-color, var(--foreground));\n  line-height: 1.75em;\n\n  background-color: rgba(0, 0, 0, 0.05);\n  border: none;\n  inset: 0;\n  opacity: 1;\n  transition: opacity 0.2s ease-in-out;\n}\n\n.dialog__position {\n  position: fixed;\n  z-index: var(--z-index);\n  inset: var(--dialog-inset);\n  padding: var(--page-margin);\n  display: flex;\n  max-height: calc(100vh - (2 * var(--page-margin)));\n}\n@media (max-width: 600px) {\n  .dialog__position {\n    inset: var(--page-margin);\n    padding: 0;\n  }\n}\n\n.dialog__position:has(.editor) {\n  inset: var(--page-margin);\n  padding: 0;\n}\n\n.dialog:not([open]) {\n  opacity: 0;\n  pointer-events: none;\n  visibility: hidden;\n}\n.dialog:not([open]) .dialog__content {\n  transform: translate(0, -16px) scale(0.98);\n}\n\n.dialog__content {\n  display: flex;\n  flex-direction: column;\n  gap: 16px;\n  padding: var(--dialog-padding, 24px);\n  max-width: 100%;\n  width: 100%;\n  max-height: 100%;\n  overflow: auto;\n\n  background: var(--dialog-background, var(--background));\n  border-radius: var(--dialog-border-radius, 20px);\n  border: var(--dialog-border, var(--border));
1\n  box-shadow: var(--dialog-box-shadow, var(--box-shadow));\n  transform: translate(0, 0) scale(1);\n  transition: transform 0.2s ease-in-out;\n}\n\n",mi="\n.dialog__header {\n  display: flex;\n  gap: 4px;\n  justify-content: space-between;\n  font-weight: var(--dialog-header-weight, 600);\n  margin: 0;\n}\n.dialog__title {\n  align-self: center;\n  width: var(--form-width, 272px);\n}\n\n@media (max-width: 600px) {\n  .dialog__title {\n    width: auto;\n  }\n}\n\n.dialog__position:has(.editor) .dialog__title {\n  width: auto;\n}\n\n\n.brand-link {\n  display: inline-flex;\n}\n.brand-link:focus-visible {\n  outline: var(--outline);\n}\n",jr="\n.form {\n  display: flex;\n  overflow: auto;\n  flex-direction: row;\n  gap: 16px;\n  flex: 1 0;\n}\n\n.form fieldset {\n  border: none;\n  margin: 0;\n  padding: 0;\n}\n\n.form__right {\n  flex: 0 0 auto;\n  display: flex;\n  overflow: auto;\n  flex-direction: column;\n  justify-content: space-between;\n  gap: 20px;\n  width: var(--form-width, 100%);\n}\n\n.dialog__position:has(.editor) .form__right {\n  width: var(--form-width, 272px);\n}\n\n.form__top {\n  display: flex;\n  flex-direction: column;\n  gap: 8px;\n}\n\n.form__error-container {\n  color: var(--error-color);\n  fill: var(--error-color);\n}\n\n.form__label {\n  display: flex;\n  flex-direction: column;\n  gap: 4px;\n  margin: 0px;\n}\n\n.form__label__text {\n  display: flex;\n  gap: 4px;\n  align-items: center;\n}\n\n.form__label__text--required {\n  font-size: 0.85em;\n}\n\n.form__input {\n  font-family: inherit;\n  line-height: inherit;\n  background: transparent;\n  box-sizing: border-box;\n  border: var(--input-border, var(--border));\n  border-radius: var(--input-border-radius, 6px);\n  color: var(--input-color, inherit);\n  fill: var(--input-color, inherit);\n  font-size: var(--input-font-size, inherit);\n  font-weight: var(--input-font-weight, 500);\n  padding: 6px 12px;\n}\n\n.form__input::placeholder {\n  opacity: 0.65;\n  color: var(--input-placeholder-color, inherit);\n  filter: var(--interactive-filter);\n}\n\n.form__input:focus-visible {\n  outline: var(--input-focus-outline, var(--outline));\n}\n\n.form__input--textarea {\n  font-family: inherit;\n  resize: vertical;\n}\n\n.error {\n  color: var(--error-color);\n  fill: var(--error-color);\n}\n",Gr="\n.btn-group {\n  display: grid;\n  gap: 8px;\n}\n\n.btn {\n  line-height: inherit;\n  border: var(--button-border, var(--border));\n  border-radius: var(--button-border-radius, 6px);\n  cursor: pointer;\n  font-family: inherit;\n  font-size: var(--button-font-size, inherit);\n  font-weight: var(--button-font-weight, 600);\n  padding: var(--button-padding, 6px 16px);\n}\n.btn[disabled] {\n  opacity: 0.6;\n  pointer-events: none;\n}\n\n.btn--primary {\n  color: var(--button-primary-color, var(--accent-foreground));\n  fill: var(--button-primary-color, var(--accent-foreground));\n  background: var(--button-primary-background, var(--accent-background));\n  border: var(--button-primary-border, var(--border));\n  border-radius: var(--button-primary-border-radius, 6px);\n  font-weight: var(--button-primary-font-weight, 500);\n}\n.btn--primary:hover {\n  color: var(--button-primary-hover-color, var(--accent-foreground));\n  fill: var(--button-primary-hover-color, var(--accent-foreground));\n  background: var(--button-primary-hover-background, var(--accent-background));\n  filter: var(--interactive-filter);\n}\n.btn--primary:focus-visible {\n  background: var(--button-primary-hover-background, var(--accent-background));\n  filter: var(--interactive-filter);\n  outline: var(--button-primary-focus-outline, var(--outline));\n}\n\n.btn--default {\n  color: var(--button-color, var(--foreground));\n  fill: var(--button-color, var(--foreground));\n  background: var(--button-background, var(--background));\n  border: var(--button-border, var(--border));\n  border-radius: var(--button-border-radius, 6px);\n  font-weight: var(--button-font-weight, 500);\n}\n.btn--default:hover {\n  color: var(--button-color, var(--foreground));\n  fill: var(--button-color, var(--foreground));\n  background: var(--button-hover-background, var(--background));\n  filter: var(--interactive-filter);\n}\n.btn--default:focus-visible {\n  background: var(--button-hover-background, var(--background));\n  filter: var(--interactive-filter);\n  outline: var(--button-focus-outline, var(--outline));\n}\n",Un="\n.success__position {\n  position: fixed;\n  inset: var(--dialog-inset);\n  padding: var(--page-margin);\n  z-index: var(--z-index);\n}\n.success__content {\n  background: var(--success-background, var(--background));\n  border: var(--success-border, var(--border));\n  border-radius: var(--success-border-radius, 1.7em/50%);
1\n  box-shadow: var(--success-box-shadow, var(--box-shadow));\n  font-weight: var(--success-font-weight, 600);\n  color: var(--success-color);\n  fill: var(--success-color);\n  padding: 12px 24px;\n  line-height: 1.75em;\n\n  display: grid;\n  align-items: center;\n  grid-auto-flow: column;\n  gap: 6px;\n  cursor: default;\n}\n\n.success__icon {\n  display: flex;\n}\n";function gi(i){const s=m.createElement("style");return s.textContent="\n:host {\n  --dialog-inset: var(--inset);\n}\n\n".concat(zr,"\n").concat(mi,"\n").concat(jr,"\n").concat(Gr,"\n").concat(Un,"\n"),i&&s.setAttribute("nonce",i),s}function _i(){const i=c.getCurrentScope().getUser(),s=c.getIsolationScope().getUser(),u=c.getGlobalScope().getUser();return i&&Object.keys(i).length?i:s&&Object.keys(s).length?s:u}const Pe=(()=>({name:"FeedbackModal",setupOnce(){},createDialog:({options:i,screenshotIntegration:s,sendFeedback:u,shadow:p})=>{const g=p,E=i.useSentryUser,j=_i(),J=m.createElement("div"),ce=gi(i.styleNonce);let Y="";const re={get el(){return J},appendToDom(){!g.contains(ce)&&!g.contains(J)&&(g.appendChild(ce),g.appendChild(J))},removeFromDom(){J.remove(),ce.remove(),m.body.style.overflow=Y},open(){var te,be;ve(!0),(te=i.onFormOpen)==null||te.call(i),(be=c.getClient())==null||be.emit("openFeedbackWidget"),Y=m.body.style.overflow,m.body.style.overflow="hidden"},close(){ve(!1),m.body.style.overflow=Y}},v=s==null?void 0:s.createInput({h:ye,hooks:er,dialog:re,options:i}),ve=te=>{li(ye(yr,{options:i,screenshotInput:v,showName:i.showName||i.isNameRequired,showEmail:i.showEmail||i.isEmailRequired,defaultName:String(E&&(j==null?void 0:j[E.name])||""),defaultEmail:String(E&&(j==null?void 0:j[E.email])||""),onFormClose:()=>{var be;ve(!1),(be=i.onFormClose)==null||be.call(i)},onSubmit:u,onSubmitSuccess:(be,Fe)=>{var Be;ve(!1),(Be=i.onSubmitSuccess)==null||Be.call(i,be,Fe)},onSubmitError:be=>{var Fe;(Fe=i.onSubmitError)==null||Fe.call(i,be)},onFormSubmitted:()=>{var be;(be=i.onFormSubmitted)==null||be.call(i)},open:te}),J)};return re}}));function On({h:i}){return function(){return i("svg",{"data-test-id":"icon-close",viewBox:"0 0 16 16",fill:"#2B2233",height:"25px",width:"25px"},i("circle",{r:"7",cx:"8",cy:"8",fill:"white"}),i("path",{strokeWidth:"1.5",d:"M8,16a8,8,0,1,1,8-8A8,8,0,0,1,8,16ZM8,1.53A6.47,6.47,0,1,0,14.47,8,6.47,6.47,0,0,0,8,1.53Z"}),i("path",{strokeWidth:"1.5",d:"M5.34,11.41a.71.71,0,0,1-.53-.22.74.74,0,0,1,0-1.06l5.32-5.32a.75.75,0,0,1,1.06,1.06L5.87,11.19A.74.74,0,0,1,5.34,11.41Z"}),i("path",{strokeWidth:"1.5",d:"M10.66,11.41a.74.74,0,0,1-.53-.22L4.81,5.87A.75.75,0,0,1,5.87,4.81l5.32,5.32a.74.74,0,0,1,0,1.06A.71.71,0,0,1,10.66,11.41Z"}))}}function qn(i){const s=m.createElement("style"),u="#1A141F",p="#302735";return s.textContent="\n.editor {\n  display: flex;\n  flex-grow: 1;\n  flex-direction: column;\n}\n\n.editor__image-container {\n  justify-items: center;\n  padding: 15px;\n  position: relative;\n  height: 100%;\n  border-radius: var(--menu-border-radius, 6px);\n\n  background-color: ".concat(u,";\n  background-image: repeating-linear-gradient(\n      -145deg,\n      transparent,\n      transparent 8px,\n      ").concat(u," 8px,\n      ").concat(u," 11px\n    ),\n    repeating-linear-gradient(\n      -45deg,\n      transparent,\n      transparent 15px,\n      ").concat(p," 15px,\n      ").concat(p," 16px\n    );\n}\n\n.editor__canvas-container {\n  width: 100%;\n  height: 100%;\n  position: relative;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n}\n\n.editor__canvas-container > * {\n  object-fit: contain;\n  position: absolute;\n}\n\n.editor__tool-container {\n  padding-top: 8px;\n  display: flex;\n  justify-content: center;\n}\n\n.editor__tool-bar {\n  display: flex;\n  gap: 8px;\n}\n\n.editor__tool {\n  display: flex;\n  padding: 8px 12px;\n  justify-content: center;\n  align-items: center;\n  border: var(--button-border, var(--border));\n  border-radius: var(--button-border-radius, 6px);\n  background: var(--button-background, var(--background));\n  color: var(--button-color, var(--foreground));\n}\n\n.editor__tool--active {\n  background: var(--button-primary-background, var(--accent-background));\n  color: var(--button-primary-color, var(--accent-foreground));\n}\n\n.editor__rect {\n  position: absolute;\n  z-index: 2;\n}\n\n.editor__rect button {\n  opacity: 0;\n  position: absolute;\n  top: -12px;\n  right: -12px;\n  cursor: pointer;\n  padding: 0;\n  z-index: 3;\n  border: none;\n  background: none;\n}\n\n.editor__rect:hover button {\n  opacity: 1;\n}\n"),i&&s.setAttribute("nonce",i),s}function Vr({h:i}){return function({action:u,setAction:p,options:g}){return i("div",{class:"editor__tool-container"},i("div",{class:"editor__tool-bar"},i("button",{type:"button",class:"editor__tool ".concat(u==="highlight"?"editor__tool--active":""),onClick:()=>{p(u==="highlight"?"":"highlight")}},g.highlightToolText),i("button",{type:"button",class:"editor__tool ".concat(u==="hide"?"editor__tool--active":""),onClick:()=>{p(u==="hide"?"":"hide")}},g.hideToolText)))}}function yi({hooks:i}){function s(){var g;const[u,p]=i.useState((g=C.devicePixelRatio)!=null?g:1);return i.useEffect(()=>{const E=()=>{p(C.devicePixelRatio)},j=matchMedia("(resolution: ".concat(C.devicePixelRatio,"dppx)"));return j.addEventListener("change",E),()=>{j.removeEventListener("change",E)}},[]),u}return function({onBeforeScreenshot:p,onScreenshot:g,onAfterScreenshot:E,onError:j}){const J=s();i.useEffect(()=>{(async()=>{p();const Y=await k.mediaDevices.getDisplayMedia({video:{width:C.innerWidth*J,height:C.innerHeight*J},audio:!1,monitorTypeSurfaces:"exclude",preferCurrentTab:!0,selfBrowserSurface:"include",surfaceSwitching:"exclude"}),re=m.createElement("video");await new Promise((v,ve)=>{re.srcObject=Y,re.onloadedmetadata=()=>
1{g(re,J),Y.getTracks().forEach(te=>te.stop()),v()},re.play().catch(ve)}),E()})().catch(j)},[])}}function Si(i,s,u){switch(i.type){case"highlight":{s.shadowColor="rgba(0, 0, 0, 0.7)",s.shadowBlur=50,s.fillStyle=u,s.fillRect(i.x-1,i.y-1,i.w+2,i.h+2),s.clearRect(i.x,i.y,i.w,i.h);break}case"hide":s.fillStyle="rgb(0, 0, 0)",s.fillRect(i.x,i.y,i.w,i.h);break}}function cn(i,s,u){if(!i)return;const p=i.getContext("2d",s);p&&u(i,p)}function Sr(i,s){cn(i,{alpha:!0},(u,p)=>{p.drawImage(s,0,0,s.width,s.height,0,0,u.width,u.height)})}function br(i,s,u){cn(i,{alpha:!0},(p,g)=>{u.length&&(g.fillStyle="rgba(0, 0, 0, 0.25)",g.fillRect(0,0,p.width,p.height)),u.forEach(E=>{Si(E,g,s)})})}function Yr({h:i,hooks:s,outputBuffer:u,dialog:p,options:g}){const E=yi({hooks:s}),j=Vr({h:i}),J=On({h:i}),ce={__html:qn(g.styleNonce).innerText},Y=p.el.style,re=({screenshot:v})=>{const[ve,te]=s.useState("highlight"),[be,Fe]=s.useState([]),Be=s.useRef(null),Ie=s.useRef(null),We=s.useRef(null),gt=s.useRef(null),[nt,Xt]=s.useState(1),Vt=s.useMemo(()=>{const Le=m.getElementById(g.id);if(!Le)return"white";const ze=getComputedStyle(Le);return ze.getPropertyValue("--button-primary-background")||ze.getPropertyValue("--accent-background")},[g.id]);s.useLayoutEffect(()=>{const Le=()=>{const ze=Be.current;ze&&(cn(v.canvas,{alpha:!1},kt=>{const Bt=Math.min(ze.clientWidth/kt.width,ze.clientHeight/kt.height);Xt(Bt)}),(ze.clientHeight===0||ze.clientWidth===0)&&setTimeout(Le,0))};return Le(),C.addEventListener("resize",Le),()=>{C.removeEventListener("resize",Le)}},[v]);const De=s.useCallback((Le,ze)=>{cn(Le,{alpha:!0},(kt,Bt)=>{Bt.scale(ze,ze),kt.width=v.canvas.width,kt.height=v.canvas.height})},[v]);s.useEffect(()=>{De(Ie.current,v.dpi),Sr(Ie.current,v.canvas)},[v]),s.useEffect(()=>{De(We.current,v.dpi),cn(We.current,{alpha:!0},(Le,ze)=>{ze.clearRect(0,0,Le.width,Le.height)}),br(We.current,Vt,be)},[be,Vt]),s.useEffect(()=>{De(u,v.dpi),Sr(u,v.canvas),cn(m.createElement("canvas"),{alpha:!0},(Le,ze)=>{ze.scale(v.dpi,v.dpi),Le.width=v.canvas.width,Le.height=v.canvas.height,br(Le,Vt,be),Sr(u,Le)})},[be,v,Vt]);const Dt=Le=>{if(!ve||!gt.current)return;const ze=gt.current.getBoundingClientRect(),kt={type:ve,x:Le.offsetX/nt,y:Le.offsetY/nt},Bt=(Et,Ht)=>{const _t=(Ht.clientX-ze.x)/nt,Ut=(Ht.clientY-ze.y)/nt;return{type:Et.type,x:Math.min(Et.x,_t),y:Math.min(Et.y,Ut),w:Math.abs(_t-Et.x),h:Math.abs(Ut-Et.y)}},un=Et=>{cn(We.current,{alpha:!0},(Ht,_t)=>{_t.clearRect(0,0,Ht.width,Ht.height)}),br(We.current,Vt,[...be,Bt(kt,Et)])},bn=Et=>{const Ht=Bt(kt,Et);Ht.w*nt>=1&&Ht.h*nt>=1&&Fe(_t=>[..._t,Ht]),m.removeEventListener("mousemove",un),m.removeEventListener("mouseup",bn)};m.addEventListener("mousemove",un),m.addEventListener("mouseup",bn)},Ve=s.useCallback(Le=>ze=>{ze.preventDefault(),ze.stopPropagation(),Fe(kt=>{const Bt=[...kt];return Bt.splice(Le,1),Bt})},[]),at={width:"".concat(v.canvas.width*nt,"px"),height:"".concat(v.canvas.height*nt,"px")},Sn=Le=>{Le.stopPropagation()};return i("div",{class:"editor"},i("style",{nonce:g.styleNonce,dangerouslySetInnerHTML:ce}),i("div",{class:"editor__image-container"},i("div",{class:"editor__canvas-container",ref:Be},i("canvas",{ref:Ie,id:"background",style:at}),i("canvas",{ref:We,id:"foreground",style:at}),i("div",{ref:gt,onMouseDown:Dt,style:at},be.map((Le,ze)=>i("div",{key:ze,class:"editor__rect",style:{top:"".concat(Le.y*nt,"px"),left:"".concat(Le.x*nt,"px"),width:"".concat(Le.w*nt,"px"),height:"".concat(Le.h*nt,"px")}},i("button",{"aria-label":g.removeHighlightText,onClick:Ve(ze),onMouseDown:Sn,onMouseUp:Sn,type:"button"},i(J,null))))))),i(j,{options:g,action:ve,setAction:te}))};return function({onError:ve}){const[te,be]=s.useState();return E({onBeforeScreenshot:s.useCallback(()=>{Y.display="none"},[]),onScreenshot:s.useCallback((Fe,Be)=>{cn(m.createElement("canvas"),{alpha:!1},(Ie,We)=>{We.scale(Be,Be),Ie.width=Fe.videoWidth,Ie.height=Fe.videoHeight,We.drawImage(Fe,0,0,Ie.width,Ie.height),be({canvas:Ie,dpi:Be})}),u.width=Fe.videoWidth,u.height=Fe.videoHeight},[]),onAfterScreenshot:s.useCallback(()=>{Y.display="block"},[]),onError:s.useCallback(Fe=>{Y.display="block",ve(Fe)},[])}),te?i(re,{screenshot:te}):i("div",null)}}const bi=(()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:({h:i,hooks:s,dialog:u,options:p})=>{const g=m.createElement("canvas");return{input:Yr({h:i,hooks:s,outputBuffer:g,dialog:u,options:p}),value:async()=>{const E=await new Promise(j=>{g.toBlob(j,"image/png")});if(E)return{data:new Uint8Array(await E.arrayBuffer()),filename:"screenshot.png",contentType:"application/png"}}}}}));d.buildFeedbackIntegration=y,d.feedbackModalIntegration=Pe,d.feedbackScreenshotIntegration=bi,d.getFeedback=_,d.sendFeedback=rn})(Xi)),Xi}var Ki={},Ji={},Zi={},fs;function $n(){return fs||(fs=1,(function(d){Object.defineProperty(d,Symbol.toStringTag,{value:"Module"});const c=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;d.DEBUG_BUILD=c})(Zi)),Zi}var Qi={},eo={},hs;function Pt(){return hs||(hs=1,(function(d){Object.defineProperty(d,Symbol.toStringTag,{value:"Module"});const C=Rt().GLOBAL_OBJ;d.WINDOW=C})(eo)),eo}var to={},ps;function Cr(){return ps||(ps=1,(function(d){Object.defineProperty(d,Symbol.toStringTag,{value:"Module"});const c=(m,k)=>m>k[1]?"poor":m>k[0]?"needs-improvement":"good",C=(m,k,P,x)=>{let b,N;return M=>{k.value>=0&&(M||x)&&(N=k.value-(b!=null?b:0),(N||b===void 0)&&(b=k.value,k.delta=N,k.rating=c(k.value,P),m(k))
1)}};d.bindReporter=C})(to)),to}var no={},ro={},io={},ms;function ii(){return ms||(ms=1,(function(d){Object.defineProperty(d,Symbol.toStringTag,{value:"Module"});const c=Pt(),C=(m=!0)=>{var P,x;const k=(x=(P=c.WINDOW.performance)==null?void 0:P.getEntriesByType)==null?void 0:x.call(P,"navigation")[0];if(!m||k&&k.responseStart>0&&k.responseStart<performance.now())return k};d.getNavigationEntry=C})(io)),io}var gs;function ir(){return gs||(gs=1,(function(d){Object.defineProperty(d,Symbol.toStringTag,{value:"Module"});const c=ii(),C=()=>{var k;const m=c.getNavigationEntry();return(k=m==null?void 0:m.activationStart)!=null?k:0};d.getActivationStart=C})(ro)),ro}var oo={},_s;function oi(){return _s||(_s=1,(function(d){Object.defineProperty(d,Symbol.toStringTag,{value:"Module"});const c=Pt();function C(k,P,x){c.WINDOW.document&&c.WINDOW.addEventListener(k,P,x)}function m(k,P,x){c.WINDOW.document&&c.WINDOW.removeEventListener(k,P,x)}d.addPageListener=C,d.removePageListener=m})(oo)),oo}var ys;function kr(){return ys||(ys=1,(function(d){Object.defineProperty(d,Symbol.toStringTag,{value:"Module"});const c=Pt(),C=ir(),m=oi();let k=-1;const P=new Set,x=()=>{var R,F;return((R=c.WINDOW.document)==null?void 0:R.visibilityState)==="hidden"&&!((F=c.WINDOW.document)!=null&&F.prerendering)?0:1/0},b=R=>{if(M(R)&&k>-1){if(R.type==="visibilitychange"||R.type==="pagehide")for(const F of P)F();isFinite(k)||(k=R.type==="visibilitychange"?R.timeStamp:0,m.removePageListener("prerenderingchange",b,!0))}},N=()=>{var R;if(c.WINDOW.document&&k<0){const F=C.getActivationStart(),B=c.WINDOW.document.prerendering||(R=globalThis.performance.getEntriesByType("visibility-state").filter(W=>W.name==="hidden"&&W.startTime>F)[0])==null?void 0:R.startTime;k=B!=null?B:x(),m.addPageListener("visibilitychange",b,!0),m.addPageListener("pagehide",b,!0),m.addPageListener("prerenderingchange",b,!0)}return{get firstHiddenTime(){return k},onHidden(F){P.add(F)}}};function M(R){var F;return R.type==="pagehide"||((F=c.WINDOW.document)==null?void 0:F.visibilityState)==="hidden"}d.getVisibilityWatcher=N})(no)),no}var so={},ao={},Ss;function Xc(){return Ss||(Ss=1,(function(d){Object.defineProperty(d,Symbol.toStringTag,{value:"Module"});const c=()=>"v5-".concat(Date.now(),"-").concat(Math.floor(Math.random()*(9e12-1))+1e12);d.generateUniqueID=c})(ao)),ao}var bs;function Mr(){return bs||(bs=1,(function(d){Object.defineProperty(d,Symbol.toStringTag,{value:"Module"});const c=Pt(),C=Xc(),m=ir(),k=ii(),P=(x,b=-1)=>{var F,B;const N=k.getNavigationEntry();let M="navigate";return N&&((F=c.WINDOW.document)!=null&&F.prerendering||m.getActivationStart()>0?M="prerender":(B=c.WINDOW.document)!=null&&B.wasDiscarded?M="restore":N.type&&(M=N.type.replace(/_/g,"-"))),{name:x,value:b,rating:"good",delta:0,entries:[],id:C.generateUniqueID(),navigationType:M}};d.initMetric=P})(so)),so}var co={},vs;function Fo(){return vs||(vs=1,(function(d){Object.defineProperty(d,Symbol.toStringTag,{value:"Module"});const c=new WeakMap;function C(m,k){try{return c.get(m)||c.set(m,new k),c.get(m)}catch(P){return new k}}d.initUnique=C})(co)),co}var uo={},Es;function Kc(){return Es||(Es=1,(function(d){Object.defineProperty(d,Symbol.toStringTag,{value:"Module"});class c{constructor(){c.prototype.__init.call(this),c.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(m){var x;if(m.hadRecentInput)return;const k=this._sessionEntries[0],P=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&k&&P&&m.startTime-P.startTime<1e3&&m.startTime-k.startTime<5e3?(this._sessionValue+=m.value,this._sessionEntries.push(m)):(this._sessionValue=m.value,this._sessionEntries=[m]),(x=this._onAfterProcessingUnexpectedShift)==null||x.call(this,m)}}d.LayoutShiftManager=c})(uo)),uo}var lo={},ws;function or(){return ws||(ws=1,(function(d){Object.defineProperty(d,Symbol.toStringTag,{value:"Module"});const c=(C,m,k={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(C)){const P=new PerformanceObserver(x=>{Promise.resolve().then(()=>{m(x.getEntries())})});return P.observe({type:C,buffered:!0,...k}),P}}catch(P){}};d.observe=c})(lo)),lo}var fo={},Ts;function Wo(){return Ts||(Ts=1,(function(d){Object.defineProperty(d,Symbol.toStringTag,{value:"Module"});const c=C=>{let m=!1;return()=>{m||(C(),m=!0)}};d.runOnce=c})(fo)),fo}var ho={},po={},Is;function si(){return Is||(Is=1,(function(d){Object.defineProperty(d,Symbol.toStringTag,{value:"Module"});const c=Pt(),C=m=>{var k;(k=c.WINDOW.document)!=null&&k.prerendering?addEventListener("prerenderingchange",()=>m(),!0):m()};d.whenActivated=C})(po)),po}var Cs;
1function Jc(){return Cs||(Cs=1,(function(d){Object.defineProperty(d,Symbol.toStringTag,{value:"Module"});const c=Cr(),C=ir(),m=kr(),k=Mr(),P=or(),x=si(),b=[1800,3e3],N=(M,R={})=>{x.whenActivated(()=>{const F=m.getVisibilityWatcher(),B=k.initMetric("FCP");let W;const H=I=>{for(const z of I)z.name==="first-contentful-paint"&&(D.disconnect(),z.startTime<F.firstHiddenTime&&(B.value=Math.max(z.startTime-C.getActivationStart(),0),B.entries.push(z),W(!0)))},D=P.observe("paint",H);D&&(W=c.bindReporter(M,B,b,R.reportAllChanges))})};d.FCPThresholds=b,d.onFCP=N})(ho)),ho}var ks;function Zc(){return ks||(ks=1,(function(d){Object.defineProperty(d,Symbol.toStringTag,{value:"Module"});const c=Pt(),C=Cr(),m=kr(),k=Mr(),P=Fo(),x=Kc(),b=or(),N=Wo(),M=Jc(),R=[.1,.25],F=(B,W={})=>{M.onFCP(N.runOnce(()=>{var X,ee;const H=k.initMetric("CLS",0);let D;const I=m.getVisibilityWatcher(),z=P.initUnique(W,x.LayoutShiftManager),oe=he=>{for(const Q of he)z._processEntry(Q);z._sessionValue>H.value&&(H.value=z._sessionValue,H.entries=z._sessionEntries,D())},Z=b.observe("layout-shift",oe);Z&&(D=C.bindReporter(B,H,R,W.reportAllChanges),I.onHidden(()=>{oe(Z.takeRecords()),D(!0)}),(ee=(X=c.WINDOW)==null?void 0:X.setTimeout)==null||ee.call(X,D))}))};d.CLSThresholds=R,d.onCLS=F})(Qi)),Qi}var mo={},go={},_o={},Ms;function Qs(){return Ms||(Ms=1,(function(d){Object.defineProperty(d,Symbol.toStringTag,{value:"Module"});const c=or();let C=0,m=1/0,k=0;const P=M=>{M.forEach(R=>{R.interactionId&&(m=Math.min(m,R.interactionId),k=Math.max(k,R.interactionId),C=k?(k-m)/7+1:0)})};let x;const b=()=>x?C:performance.interactionCount||0,N=()=>{"interactionCount"in performance||x||(x=c.observe("event",P,{type:"event",buffered:!0,durationThreshold:0}))};d.getInteractionCount=b,d.initInteractionCountPolyfill=N})(_o)),_o}var Rs;function Qc(){return Rs||(Rs=1,(function(d){Object.defineProperty(d,Symbol.toStringTag,{value:"Module"});const c=Qs(),C=10;let m=0;const k=()=>c.getInteractionCount()-m;class P{constructor(){P.prototype.__init.call(this),P.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){m=c.getInteractionCount(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){const b=Math.min(this._longestInteractionList.length-1,Math.floor(k()/50));return this._longestInteractionList[b]}_processEntry(b){var R,F;if((R=this._onBeforeProcessingEntry)==null||R.call(this,b),!(b.interactionId||b.entryType==="first-input"))return;const N=this._longestInteractionList.at(-1);let M=this._longestInteractionMap.get(b.interactionId);if(M||this._longestInteractionList.length<C||b.duration>N._latency){if(M?b.duration>M._latency?(M.entries=[b],M._latency=b.duration):b.duration===M._latency&&b.startTime===M.entries[0].startTime&&M.entries.push(b):(M={id:b.interactionId,entries:[b],_latency:b.duration},this._longestInteractionMap.set(M.id,M),this._longestInteractionList.push(M)),this._longestInteractionList.sort((B,W)=>W._latency-B._latency),this._longestInteractionList.length>C){const B=this._longestInteractionList.splice(C);for(const W of B)this._longestInteractionMap.delete(W.id)}(F=this._onAfterProcessingINPCandidate)==null||F.call(this,M)}}}d.InteractionManager=P})(go)),go}var yo={},As;function ea(){return As||(As=1,(function(d){Object.defineProperty(d,Symbol.toStringTag,{value:"Module"});const c=Pt(),C=oi(),m=Wo(),k=P=>{var b;const x=c.WINDOW.requestIdleCallback||c.WINDOW.setTimeout;((b=c.WINDOW.document)==null?void 0:b.visibilityState)==="hidden"?P():(P=m.runOnce(P),C.addPageListener("visibilitychange",P,{once:!0,capture:!0}),C.addPageListener("pagehide",P,{once:!0,capture:!0}),x(()=>{P(),C.removePageListener("visibilitychange",P,{capture:!0}),C.removePageListener("pagehide",P,{capture:!0})}))};d.whenIdleOrHidden=k})(yo)),yo}var Ns;function eu(){return Ns||(Ns=1,(function(d){Object.defineProperty(d,Symbol.toStringTag,{value:"Module"});const c=Cr(),C=kr(),m=Mr(),k=Fo(),P=Qc(),x=or(),b=Qs(),N=si(),M=ea(),R=[200,500],F=40,B=(W,H={})=>{if(!(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return;const D=C.getVisibilityWatcher();N.whenActivated(()=>{var ee;b.initInteractionCountPolyfill();const I=m.initMetric("INP");let z;const oe=k.initUnique(H,P.InteractionManager),Z=he=>{M.whenIdleOrHidden(()=>{for(const fe of he)oe._processEntry(fe);const Q=oe._estimateP98LongestInteraction();
1Q&&Q._latency!==I.value&&(I.value=Q._latency,I.entries=Q.entries,z())})},X=x.observe("event",Z,{durationThreshold:(ee=H.durationThreshold)!=null?ee:F});z=c.bindReporter(W,I,R,H.reportAllChanges),X&&(X.observe({type:"first-input",buffered:!0}),D.onHidden(()=>{Z(X.takeRecords()),z(!0)}))})};d.INPThresholds=R,d.onINP=B})(mo)),mo}var So={},bo={},Ls;function tu(){return Ls||(Ls=1,(function(d){Object.defineProperty(d,Symbol.toStringTag,{value:"Module"});class c{_processEntry(m){var k;(k=this._onBeforeProcessingEntry)==null||k.call(this,m)}}d.LCPEntryManager=c})(bo)),bo}var Os;function nu(){return Os||(Os=1,(function(d){Object.defineProperty(d,Symbol.toStringTag,{value:"Module"});const c=Cr(),C=ir(),m=kr(),k=oi(),P=Mr(),x=Fo(),b=tu(),N=or(),M=Wo(),R=si(),F=ea(),B=[2500,4e3],W=(H,D={})=>{R.whenActivated(()=>{const I=m.getVisibilityWatcher(),z=P.initMetric("LCP");let oe;const Z=x.initUnique(D,b.LCPEntryManager),X=he=>{D.reportAllChanges||(he=he.slice(-1));for(const Q of he)Z._processEntry(Q),Q.startTime<I.firstHiddenTime&&(z.value=Math.max(Q.startTime-C.getActivationStart(),0),z.entries=[Q],oe())},ee=N.observe("largest-contentful-paint",X);if(ee){oe=c.bindReporter(H,z,B,D.reportAllChanges);const he=M.runOnce(()=>{X(ee.takeRecords()),ee.disconnect(),oe(!0)}),Q=fe=>{fe.isTrusted&&(F.whenIdleOrHidden(he),k.removePageListener(fe.type,Q,{capture:!0}))};for(const fe of["keydown","click","visibilitychange"])k.addPageListener(fe,Q,{capture:!0})}})};d.LCPThresholds=B,d.onLCP=W})(So)),So}var vo={},Ds;function ru(){return Ds||(Ds=1,(function(d){Object.defineProperty(d,Symbol.toStringTag,{value:"Module"});const c=Pt(),C=Cr(),m=ir(),k=ii(),P=Mr(),x=si(),b=[800,1800],N=R=>{var F,B;(F=c.WINDOW.document)!=null&&F.prerendering?x.whenActivated(()=>N(R)):((B=c.WINDOW.document)==null?void 0:B.readyState)!=="complete"?addEventListener("load",()=>N(R),!0):setTimeout(R)},M=(R,F={})=>{const B=P.initMetric("TTFB"),W=C.bindReporter(R,B,b,F.reportAllChanges);N(()=>{const H=k.getNavigationEntry();H&&(B.value=Math.max(H.responseStart-m.getActivationStart(),0),B.entries=[H],W(!0))})};d.TTFBThresholds=b,d.onTTFB=M})(vo)),vo}var xs;function Xn(){return xs||(xs=1,(function(d){Object.defineProperty(d,Symbol.toStringTag,{value:"Module"});const c=Rt(),C=$n(),m=Zc(),k=eu(),P=nu(),x=or(),b=ru(),N={},M={};let R,F,B,W;function H(se,Ge=!1){return fe("cls",se,X,R,Ge)}function D(se,Ge=!1){return fe("lcp",se,ee,F,Ge)}function I(se){return fe("ttfb",se,he,B)}function z(se){return fe("inp",se,Q,W)}function oe(se,Ge){return rt(se,Ge),M[se]||(pe(se),M[se]=!0),ut(se,Ge)}function Z(se,Ge){const ot=N[se];if(ot!=null&&ot.length)for(const ht of ot)try{ht(Ge)}catch(At){C.DEBUG_BUILD&&c.debug.error("Error while triggering instrumentation handler.\nType: ".concat(se,"\nName: ").concat(c.getFunctionName(ht),"\nError:"),At)}}function X(){return m.onCLS(se=>{Z("cls",{metric:se}),R=se},{reportAllChanges:!0})}function ee(){return P.onLCP(se=>{Z("lcp",{metric:se}),F=se},{reportAllChanges:!0})}function he(){return b.onTTFB(se=>{Z("ttfb",{metric:se}),B=se})}function Q(){return k.onINP(se=>{Z("inp",{metric:se}),W=se})}function fe(se,Ge,ot,ht,At=!1){rt(se,Ge);let rn;return M[se]||(rn=ot(),M[se]=!0),ht&&Ge({metric:ht}),ut(se,Ge,At?rn:void 0)}function pe(se){const Ge={};se==="event"&&(Ge.durationThreshold=0),x.observe(se,ot=>{Z(se,{entries:ot})},Ge)}function rt(se,Ge){N[se]=N[se]||[],N[se].push(Ge)}function ut(se,Ge,ot){return()=>{ot&&ot();const ht=N[se];if(!ht)return;const At=ht.indexOf(Ge);At!==-1&&ht.splice(At,1)}}function it(se){return"duration"in se}d.addClsInstrumentationHandler=H,d.addInpInstrumentationHandler=z,d.addLcpInstrumentationHandler=D,d.addPerformanceInstrumentationHandler=oe,d.addTtfbInstrumentationHandler=I,d.isPerformanceEventTiming=it})(Ji)),Ji}var Eo={},wo={},To={},Io={},Ps;function iu(){return Ps||(Ps=1,(function(d){Object.defineProperty(d,Symbol.toStringTag,{value:"Module"});const c=Pt(),C=oi(),m=k=>{const P=x=>{var b;(x.type==="pagehide"||((b=c.WINDOW.document)==null?void 0:b.visibilityState)==="hidden")&&k(x)};C.addPageListener("visibilitychange",P,{capture:!0,once:!0}),C.addPageListener("pagehide",P,{capture:!0,once:!0})};d.onHidden=m})(Io)),Io}var Bs;function Pn(){return Bs||(Bs=1,(function(d){Object.defineProperty(d,Symbol.toStringTag,{value:"Module"});const c=Rt(),C=Pt(),m=iu();function k(B){return typeof B=="number"&&isFinite(B)}function P(B,W,H,{...D}){const I=c.spanToJSON(B).start_timestamp;return I&&I>W&&typeof B.updateStartTime=="function"&&B.updateStartTime(W),c.withActiveSpan(B,()=>{const z=c.startInactiveSpan({startTime:W,...D});return z&&z.end(H),z})}function x(B){var it;const W=c.getClient();if(!W)return;const{name:H,transaction:D,attributes:I,startTime:z}=B,{release:oe,environment:Z,sendDefaultPii:X}=W.getOptions(),ee=W.getIntegrationByName("Replay"),he=ee==null?void 0:ee.getReplayId(),Q=c.getCurrentScope(),fe=Q.getUser(),pe=fe!==void 0?fe.email||fe.id||fe.ip_address:void 0;let rt;try{rt=Q.getScopeData().contexts.profile.profile_id}catch(se){}const ut={release:oe,environment:Z,user:pe||void 0,profile_id:rt||void 0,replay_id:he||void 0,transaction:D,"user_agent.original":(it=C.WINDOW.navigator)==null?void 0:it.userAgent,"client.address":X?"{{auto}}":void 0,...I};return c.startInactiveSpan({name:H,attributes:ut,startTime:z,experimental:{standalone:!0}})}function b(){return C.WINDOW.addEventListener&&C.WINDOW.performance}function N(B){return B/1e3}function M(B){let W="unknown",H="unknown",D="";for(const I of B){if(I==="/"){[W,H]=B.split("/");break}if(!isNaN(Number(I))){W=D==="h"?"http":D,H=B.split(D)[1];break}D+=I}return D===B&&(W=D),{name:W,version:H}}function R(B){try{return PerformanceObserver.supportedEntryTypes.includes(B)}catch(W){return!1}}function F(B,W){let H,D=!1;function I(Z){!D&&H&&W(Z,H.spanContext().spanId,H),D=!0}
1m.onHidden(()=>{I("pagehide")});const z=B.on("beforeStartNavigationSpan",(Z,X)=>{X!=null&&X.isRedirect||(I("navigation"),z(),oe())}),oe=B.on("afterStartPageLoadSpan",Z=>{H=Z,oe()})}d.extractNetworkProtocol=M,d.getBrowserPerformanceAPI=b,d.isMeasurementValue=k,d.listenForWebVitalReportEvents=F,d.msToSec=N,d.startAndEndSpan=P,d.startStandaloneWebVitalSpan=x,d.supportsWebVital=R})(To)),To}var Fs;function ou(){return Fs||(Fs=1,(function(d){Object.defineProperty(d,Symbol.toStringTag,{value:"Module"});const c=Rt(),C=$n(),m=Xn(),k=Pn();function P(b){let N=0,M;if(!k.supportsWebVital("layout-shift"))return;const R=m.addClsInstrumentationHandler(({metric:F})=>{const B=F.entries[F.entries.length-1];B&&(N=F.value,M=B)},!0);k.listenForWebVitalReportEvents(b,(F,B)=>{x(N,M,B,F),R()})}function x(b,N,M,R){var I;C.DEBUG_BUILD&&c.debug.log("Sending CLS span (".concat(b,")"));const F=N?k.msToSec((c.browserPerformanceTimeOrigin()||0)+N.startTime):c.timestampInSeconds(),B=c.getCurrentScope().getScopeData().transactionName,W=N?c.htmlTreeAsString((I=N.sources[0])==null?void 0:I.node):"Layout shift",H={[c.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.cls",[c.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"ui.webvital.cls",[c.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:0,"sentry.pageload.span_id":M,"sentry.report_event":R};N!=null&&N.sources&&N.sources.forEach((z,oe)=>{H["cls.source.".concat(oe+1)]=c.htmlTreeAsString(z.node)});const D=k.startStandaloneWebVitalSpan({name:W,transaction:B,attributes:H,startTime:F});D&&(D.addEvent("cls",{[c.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"",[c.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:b}),D.end(F))}d._sendStandaloneClsSpan=x,d.trackClsAsStandaloneSpan=P})(wo)),wo}var Co={},Ws;function ta(){return Ws||(Ws=1,(function(d){Object.defineProperty(d,Symbol.toStringTag,{value:"Module"});const c=Rt(),C=$n(),m=Xn(),k=Pn(),P=6e4;function x(M){return M!=null&&M>0&&M<=P}function b(M){let R=0,F;if(!k.supportsWebVital("largest-contentful-paint"))return;const B=m.addLcpInstrumentationHandler(({metric:W})=>{const H=W.entries[W.entries.length-1];!H||!x(W.value)||(R=W.value,F=H)},!0);k.listenForWebVitalReportEvents(M,(W,H)=>{N(R,F,H,W),B()})}function N(M,R,F,B){if(!x(M))return;C.DEBUG_BUILD&&c.debug.log("Sending LCP span (".concat(M,")"));const W=k.msToSec((c.browserPerformanceTimeOrigin()||0)+((R==null?void 0:R.startTime)||0)),H=c.getCurrentScope().getScopeData().transactionName,D=R?c.htmlTreeAsString(R.element):"Largest contentful paint",I={[c.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.lcp",[c.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"ui.webvital.lcp",[c.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:0,"sentry.pageload.span_id":F,"sentry.report_event":B};R&&(R.element&&(I["lcp.element"]=c.htmlTreeAsString(R.element)),R.id&&(I["lcp.id"]=R.id),R.url&&(I["lcp.url"]=R.url),R.loadTime!=null&&(I["lcp.loadTime"]=R.loadTime),R.renderTime!=null&&(I["lcp.renderTime"]=R.renderTime),R.size!=null&&(I["lcp.size"]=R.size));const z=k.startStandaloneWebVitalSpan({name:D,transaction:H,attributes:I,startTime:W});z&&(z.addEvent("lcp",{[c.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"millisecond",[c.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:M}),z.end(W))}d.MAX_PLAUSIBLE_LCP_DURATION=P,d._sendStandaloneLcpSpan=N,d.isValidLcpMetric=x,d.trackLcpAsStandaloneSpan=b})(Co)),Co}var ko={},Hs;function na(){return Hs||(Hs=1,(function(d){Object.defineProperty(d,Symbol.toStringTag,{value:"Module"});const c=Rt(),C=Pn();function m(x){return x&&((c.browserPerformanceTimeOrigin()||performance.timeOrigin)+x)/1e3}function k(x){var N;const b={};if(x.nextHopProtocol!=null){const{name:M,version:R}=C.extractNetworkProtocol(x.nextHopProtocol);b["network.protocol.version"]=R,b["network.protocol.name"]=M}return c.browserPerformanceTimeOrigin()||(N=C.getBrowserPerformanceAPI())!=null&&N.timeOrigin?P({...b,"http.request.redirect_start":m(x.redirectStart),"http.request.redirect_end":m(x.redirectEnd),"http.request.worker_start":m(x.workerStart),"http.request.fetch_start":m(x.fetchStart),"http.request.domain_lookup_start":m(x.domainLookupStart),"http.request.domain_lookup_end":m(x.domainLookupEnd),"http.request.connect_start":m(x.connectStart),"http.request.secure_connection_start":m(x.secureConnectionStart),"http.request.connection_end":m(x.connectEnd),"http.request.request_start":m(x.requestStart),"http.request.response_start":m(x.responseStart),"http.request.response_end":m(x.responseEnd),"http.request.time_to_first_byte":x.responseStart!=null?x.responseStart/1e3:void 0}):b}function P(x){return Object.fromEntries(Object.entries(x).filter(([,b])=>
1b!=null))}d.resourceTimingToSpanAttributes=k})(ko)),ko}var Us;function su(){return Us||(Us=1,(function(d){Object.defineProperty(d,Symbol.toStringTag,{value:"Module"});const c=Rt(),C=Pt(),m=ou(),k=Xn(),P=ta(),x=na(),b=Pn(),N=ir(),M=ii(),R=kr(),F=$n(),B=2147483647;let W=0,H={},D,I;function z({recordClsStandaloneSpans:U,recordLcpStandaloneSpans:K,client:G}){const ae=b.getBrowserPerformanceAPI();if(ae&&c.browserPerformanceTimeOrigin()){ae.mark&&C.WINDOW.performance.mark("sentry-tracing-init");const we=K?P.trackLcpAsStandaloneSpan(G):K===!1?he():void 0,Ne=U?m.trackClsAsStandaloneSpan(G):U===!1?ee():void 0,Ze=Q();return()=>{Ze(),we==null||we(),Ne==null||Ne()}}return()=>{}}function oe(){k.addPerformanceInstrumentationHandler("longtask",({entries:U})=>{const K=c.getActiveSpan();if(!K)return;const{op:G,start_timestamp:ae}=c.spanToJSON(K);for(const we of U){const Ne=b.msToSec(c.browserPerformanceTimeOrigin()+we.startTime),Ze=b.msToSec(we.duration);G==="navigation"&&ae&&Ne<ae||b.startAndEndSpan(K,Ne,Ne+Ze,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[c.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}})}})}function Z(){new PerformanceObserver(K=>{const G=c.getActiveSpan();if(G)for(const ae of K.getEntries()){if(!ae.scripts[0])continue;const we=b.msToSec(c.browserPerformanceTimeOrigin()+ae.startTime),{start_timestamp:Ne,op:Ze}=c.spanToJSON(G);if(Ze==="navigation"&&Ne&&we<Ne)continue;const Tt=b.msToSec(ae.duration),$e={[c.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"},st=ae.scripts[0],{invoker:Nt,invokerType:mt,sourceURL:y,sourceFunctionName:_,sourceCharPosition:w}=st;$e["browser.script.invoker"]=Nt,$e["browser.script.invoker_type"]=mt,y&&($e["code.filepath"]=y),_&&($e["code.function"]=_),w!==-1&&($e["browser.script.source_char_position"]=w),b.startAndEndSpan(G,we,we+Tt,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:$e})}}).observe({type:"long-animation-frame",buffered:!0})}function X(){k.addPerformanceInstrumentationHandler("event",({entries:U})=>{const K=c.getActiveSpan();if(K){for(const G of U)if(G.name==="click"){const ae=b.msToSec(c.browserPerformanceTimeOrigin()+G.startTime),we=b.msToSec(G.duration),Ne={name:c.htmlTreeAsString(G.target),op:"ui.interaction.".concat(G.name),startTime:ae,attributes:{[c.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}},Ze=c.getComponentName(G.target);Ze&&(Ne.attributes["ui.component_name"]=Ze),b.startAndEndSpan(K,ae,ae+we,Ne)}}})}function ee(){return k.addClsInstrumentationHandler(({metric:U})=>{const K=U.entries[U.entries.length-1];K&&(H.cls={value:U.value,unit:""},I=K)},!0)}function he(){return k.addLcpInstrumentationHandler(({metric:U})=>{const K=U.entries[U.entries.length-1];!K||!P.isValidLcpMetric(U.value)||(H.lcp={value:U.value,unit:"millisecond"},D=K)},!0)}function Q(){return k.addTtfbInstrumentationHandler(({metric:U})=>{U.entries[U.entries.length-1]&&(H.ttfb={value:U.value,unit:"millisecond"})})}function fe(U,K){const G=b.getBrowserPerformanceAPI(),ae=c.browserPerformanceTimeOrigin();if(!(G!=null&&G.getEntries)||!ae)return;const{spanStreamingEnabled:we,ignorePerformanceApiSpans:Ne,ignoreResourceSpans:Ze,recordClsOnPageloadSpan:Tt,recordLcpOnPageloadSpan:$e}=K,st=b.msToSec(ae),Nt=G.getEntries(),{op:mt,start_timestamp:y}=c.spanToJSON(U);if(Nt.slice(W).forEach(_=>{const w=b.msToSec(_.startTime),T=b.msToSec(Math.max(0,_.duration));if(!(mt==="navigation"&&y&&st+w<y))switch(_.entryType){case"navigation":{it(U,_,st);break}case"mark":case"paint":case"measure":{rt(U,_,w,T,st,Ne);const q=R.getVisibilityWatcher(),ne=_.startTime<q.firstHiddenTime;_.name==="first-paint"&&ne&&(H.fp={value:_.startTime,unit:"millisecond"}),_.name==="first-contentful-paint"&&ne&&(H.fcp={value:_.startTime,unit:"millisecond"});break}case"resource":{ht(U,_,_.name,w,T,st,Ze);break}}}),W=Math.max(Nt.length-1,0),At(U,we),mt==="pageload"){if(kn(H),we){const _=(w,T,q)=>{const ne=q!=null?q:"browser.web_vital.".concat(w,".value");U.setAttribute(ne,T),F.DEBUG_BUILD&&c.debug.log("Setting web vital attribute",{[ne]:T},"on pageload span")};["ttfb","fp","fcp"].forEach(w=>{H[w]&&_(w,H[w].value)}),H["ttfb.requestTime"]&&_("ttfb.requestTime",H["ttfb.requestTime"].value,"browser.web_vital.ttfb.request_time")}
1else Tt||delete H.cls,$e||delete H.lcp,Object.entries(H).forEach(([_,w])=>{c.setMeasurement(_,w.value,w.unit)}),rn(U,K);U.setAttribute(we?"browser.performance.time_origin":"performance.timeOrigin",st),U.setAttribute(we?"browser.performance.navigation.activation_start":"performance.activationStart",N.getActivationStart())}D=void 0,I=void 0,H={}}function pe(U){if((U==null?void 0:U.entryType)==="measure")try{return U.detail.devtools.track==="Components ⚛"}catch(K){return}}function rt(U,K,G,ae,we,Ne){if(pe(K)||["mark","measure"].includes(K.entryType)&&c.stringMatchesSomePattern(K.name,Ne))return;const Ze=M.getNavigationEntry(!1),Tt=b.msToSec(Ze?Ze.requestStart:0),$e=we+Math.max(G,Tt),st=we+G,Nt=st+ae,mt={[c.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.resource.browser.metrics"};$e!==st&&(mt["sentry.browser.measure_happened_before_request"]=!0,mt["sentry.browser.measure_start_time"]=$e),ut(mt,K),$e<=Nt&&b.startAndEndSpan(U,$e,Nt,{name:K.name,op:K.entryType,attributes:mt})}function ut(U,K){try{const G=K.detail;if(!G)return;if(typeof G=="object"){for(const[ae,we]of Object.entries(G))if(we&&c.isPrimitive(we))U["sentry.browser.measure.detail.".concat(ae)]=we;else if(we!==void 0)try{U["sentry.browser.measure.detail.".concat(ae)]=JSON.stringify(we)}catch(Ne){}return}if(c.isPrimitive(G)){U["sentry.browser.measure.detail"]=G;return}try{U["sentry.browser.measure.detail"]=JSON.stringify(G)}catch(ae){}}catch(G){}}function it(U,K,G){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(ae=>{se(U,K,ae,G)}),se(U,K,"secureConnection",G,"TLS/SSL"),se(U,K,"fetch",G,"cache"),se(U,K,"domainLookup",G,"DNS"),ot(U,K,G)}function se(U,K,G,ae,we=G){const Ne=Ge(G),Ze=K[Ne],Tt=K["".concat(G,"Start")];!Tt||!Ze||b.startAndEndSpan(U,ae+b.msToSec(Tt),ae+b.msToSec(Ze),{op:"browser.".concat(we),name:K.name,attributes:{[c.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics",...G==="redirect"&&K.redirectCount!=null?{"http.redirect_count":K.redirectCount}:{}}})}function Ge(U){return U==="secureConnection"?"connectEnd":U==="fetch"?"domainLookupStart":"".concat(U,"End")}function ot(U,K,G){const ae=G+b.msToSec(K.requestStart),we=G+b.msToSec(K.responseEnd),Ne=G+b.msToSec(K.responseStart);K.responseEnd&&(b.startAndEndSpan(U,ae,we,{op:"browser.request",name:K.name,attributes:{[c.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}}),b.startAndEndSpan(U,Ne,we,{op:"browser.response",name:K.name,attributes:{[c.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}}))}function ht(U,K,G,ae,we,Ne,Ze){if(K.initiatorType==="xmlhttprequest"||K.initiatorType==="fetch")return;const Tt=K.initiatorType?"resource.".concat(K.initiatorType):"resource.other";if(Ze!=null&&Ze.includes(Tt))return;const $e={[c.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.resource.browser.metrics"},st=c.parseUrl(G);st.protocol&&($e["url.scheme"]=st.protocol.split(":").pop()),st.host&&($e["server.address"]=st.host),$e["url.same_origin"]=G.includes(C.WINDOW.location.origin),on(K,$e,[["responseStatus","http.response.status_code"],["transferSize","http.response_transfer_size"],["encodedBodySize","http.response_content_length"],["decodedBodySize","http.decoded_response_content_length"],["renderBlockingStatus","resource.render_blocking_status"],["deliveryType","http.response_delivery_type"]]);const Nt={...$e,...x.resourceTimingToSpanAttributes(K)},mt=Ne+ae,y=mt+we;b.startAndEndSpan(U,mt,y,{name:G.replace(C.WINDOW.location.origin,""),op:Tt,attributes:Nt})}function At(U,K){const G=C.WINDOW.navigator;if(!G)return;const ae=G.connection;ae&&(ae.effectiveType&&U.setAttribute(K?"network.connection.effective_type":"effectiveConnectionType",ae.effectiveType),ae.type&&U.setAttribute(K?"network.connection.type":"connectionType",ae.type),b.isMeasurementValue(ae.rtt)&&(H["connection.rtt"]={value:ae.rtt,unit:"millisecond"},K&&U.setAttribute("network.connection.rtt",ae.rtt))),b.isMeasurementValue(G.deviceMemory)&&(K?U.setAttribute("device.memory.estimated_capacity",G.deviceMemory):U.setAttribute("deviceMemory","".concat(G.deviceMemory," GB"))),b.isMeasurementValue(G.hardwareConcurrency)&&(K?U.setAttribute("device.processor_count",G.hardwareConcurrency):U.setAttribute("hardwareConcurrency",String(G.hardwareConcurrency)))}function rn(U,K){D&&K.recordLcpOnPageloadSpan&&(D.element&&U.setAttribute("lcp.element",c.htmlTreeAsString(D.element)),D.id&&U.setAttribute("lcp.id",D.id),D.url&&U.setAttribute("lcp.url",D.url.trim().slice(0,200)),D.loadTime!=null&&U.setAttribute("lcp.loadTime",D.loadTime),D.renderTime!=null&&U.setAttribute("lcp.renderTime",D.renderTime),U.setAttribute("lcp.size",D.size)),I!=null&&I.sources&&K.recordClsOnPageloadSpan&&I.sources.forEac
1h((G,ae)=>U.setAttribute("cls.source.".concat(ae+1),c.htmlTreeAsString(G.node)))}function on(U,K,G){G.forEach(([ae,we])=>{const Ne=U[ae];Ne!=null&&(typeof Ne=="number"&&Ne<B||typeof Ne=="string")&&(K[we]=Ne)})}function kn(U){const K=M.getNavigationEntry(!1);if(!K)return;const{responseStart:G,requestStart:ae}=K;ae<=G&&(U["ttfb.requestTime"]={value:G-ae,unit:"millisecond"})}d._addMeasureSpans=rt,d._addNavigationSpans=it,d._addResourceSpans=ht,d._setResourceRequestAttributes=on,d.addPerformanceEntries=fe,d.startTrackingInteractions=X,d.startTrackingLongAnimationFrames=Z,d.startTrackingLongTasks=oe,d.startTrackingWebVitals=z})(Eo)),Eo}var Mo={},qs;function au(){return qs||(qs=1,(function(d){Object.defineProperty(d,Symbol.toStringTag,{value:"Module"});const c=Rt(),C=Xn(),m=Pn(),k="ElementTiming",P=(()=>({name:k,setup(){!m.getBrowserPerformanceAPI()||!c.browserPerformanceTimeOrigin()||C.addPerformanceInstrumentationHandler("element",({entries:M})=>{for(const R of M){const F=R;if(!F.identifier)continue;const B=F.identifier,W=F.name,H=F.renderTime,D=F.loadTime,I={"sentry.origin":"auto.ui.browser.element_timing","ui.element.identifier":B};W&&(I["ui.element.paint_type"]=W),F.id&&(I["ui.element.id"]=F.id),F.element&&(I["ui.element.type"]=F.element.tagName.toLowerCase()),F.url&&(I["ui.element.url"]=F.url),F.naturalWidth&&(I["ui.element.width"]=F.naturalWidth),F.naturalHeight&&(I["ui.element.height"]=F.naturalHeight),H>0&&c.metrics.distribution("ui.element.render_time",H,{unit:"millisecond",attributes:I}),D>0&&c.metrics.distribution("ui.element.load_time",D,{unit:"millisecond",attributes:I})}})}})),x=c.defineIntegration(P);function b(){return()=>{}}d.elementTimingIntegration=x,d.startTrackingElementTiming=b})(Mo)),Mo}var Ro={},Ao={},zs;function ra(){return zs||(zs=1,(function(d){Object.defineProperty(d,Symbol.toStringTag,{value:"Module"});const c=Rt(),C=Pt(),m=Xn(),k=Pn(),P=[],x=new Map,b=new Map,N=60;function M(){if(k.getBrowserPerformanceAPI()&&c.browserPerformanceTimeOrigin()){const I=F();return()=>{I()}}return()=>{}}const R={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function F(){return m.addInpInstrumentationHandler(B)}const B=({metric:D})=>{if(D.value==null)return;const I=k.msToSec(D.value);if(I>N)return;const z=D.entries.find(se=>se.duration===D.value&&R[se.name]);if(!z)return;const{interactionId:oe}=z,Z=R[z.name],X=k.msToSec(c.browserPerformanceTimeOrigin()+z.startTime),ee=c.getActiveSpan(),he=ee?c.getRootSpan(ee):void 0,Q=oe!=null?x.get(oe):void 0,fe=(Q==null?void 0:Q.span)||he,pe=fe?c.spanToJSON(fe).description:c.getCurrentScope().getScopeData().transactionName,rt=(Q==null?void 0:Q.elementName)||c.htmlTreeAsString(z.target),ut={[c.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.inp",[c.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"ui.interaction.".concat(Z),[c.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:z.duration},it=k.startStandaloneWebVitalSpan({name:rt,transaction:pe,attributes:ut,startTime:X});it&&(it.addEvent("inp",{[c.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"millisecond",[c.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:D.value}),it.end(X+I))};function W(D){return D!=null?x.get(D):void 0}function H(){const D=Object.keys(R);c.isBrowser()&&D.forEach(Z=>{C.WINDOW.addEventListener(Z,I,{capture:!0,passive:!0})});function I(Z){const X=Z.target;if(!X)return;const ee=c.htmlTreeAsString(X),he=Math.round(Z.timeStamp);if(b.set(he,ee),b.size>50){const Q=b.keys().next().value;Q!==void 0&&b.delete(Q)}}function z(Z){const X=Math.round(Z.startTime);let ee=b.get(X);if(!ee)for(let he=-5;he<=5;he++){const Q=b.get(X+he);if(Q){ee=Q;break}}return ee||"<unknown>"}const oe=({entries:Z})=>{const X=c.getActiveSpan(),ee=X&&c.getRootSpan(X);Z.forEach(he=>{if(!m.isPerformanceEventTiming(he))return;const Q=he.interactionId;if(Q==null||x.has(Q))return;const fe=he.target?c.htmlTreeAsString(he.target):z(he);if(P.length>10){const pe=P.shift();x.delete(pe)}P.push(Q),x.set(Q,{span:ee,elementName:fe})})};m.addPerformanceInstrumentationHandler("event",oe),m.addPerformanceInstrumentationHandler("first-input",oe)}d.INP_ENTRY_MAP=R,d.MAX_PLAUSIBLE_INP_DURATION=N,d._onInp=B,d._trackINP=F,d.getCachedInteractionContext=W,d.registerInpInteractionListener=H,d.startTrackingINP=M})(Ao)),Ao}var js;function cu(){return js||(js=1,(function(d){Object.defineProperty(d,Symbol.toStringTag,{value:"Module"});const c=Rt(),C=$n(),m=Pt(),k=ra(),P=Xn(),x=ta(),b=Pn();function N(D){var se,Ge;const{name:I,op:z,origin:oe,metricName:Z,value:X,attributes:ee,parentSpan:he,reportEvent:Q,startTime:fe,endTime:pe}=D,rt=c.getCurrentScope().getScopeData().transactionName,ut={[c.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:oe,[c.SEMANTIC_ATTRIBUTE_SENTRY_OP]:z,[c.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:0,["browser.web_vital.".concat(Z,".value")]:X,"sentry.transaction":rt,"user_agent.original":(se=m.WINDOW.navigator)==null?void 0:se.userAgent,...ee};he&&((Ge=c.spanToStreamedSpanJSON(he).attributes)==null?void 0:Ge[c.SEMANTIC_ATTRIBUTE_SENTRY_OP])==="pageload"&&(ut["sentry.pageload.span_id"]=he.spanContext().spanId),Q&&(ut["browser.web_vital.".concat(Z,".report_event")]=Q);const it=c.startInactiveSpan({name:I,attributes:ut,startTime:fe,parentSpan:he});
1it&&it.end(pe!=null?pe:fe)}function M(D){let I=0,z;if(!b.supportsWebVital("largest-contentful-paint"))return;const oe=P.addLcpInstrumentationHandler(({metric:Z})=>{const X=Z.entries[Z.entries.length-1];!X||!x.isValidLcpMetric(Z.value)||(I=Z.value,z=X)},!0);b.listenForWebVitalReportEvents(D,(Z,X,ee)=>{R(I,z,ee,Z),oe()})}function R(D,I,z,oe){if(!x.isValidLcpMetric(D))return;C.DEBUG_BUILD&&c.debug.log("Sending LCP span (".concat(D,")"));const Z=c.browserPerformanceTimeOrigin()||0,X=b.msToSec(Z),ee=b.msToSec(Z+((I==null?void 0:I.startTime)||0)),he=I?c.htmlTreeAsString(I.element):"Largest contentful paint",Q={};I!=null&&I.element&&(Q["browser.web_vital.lcp.element"]=c.htmlTreeAsString(I.element)),I!=null&&I.id&&(Q["browser.web_vital.lcp.id"]=I.id),I!=null&&I.url&&(Q["browser.web_vital.lcp.url"]=I.url),(I==null?void 0:I.loadTime)!=null&&(Q["browser.web_vital.lcp.load_time"]=I.loadTime),(I==null?void 0:I.renderTime)!=null&&(Q["browser.web_vital.lcp.render_time"]=I.renderTime),(I==null?void 0:I.size)!=null&&(Q["browser.web_vital.lcp.size"]=I.size),N({name:he,op:"ui.webvital.lcp",origin:"auto.http.browser.lcp",metricName:"lcp",value:D,attributes:Q,parentSpan:z,reportEvent:oe,startTime:X,endTime:ee})}function F(D){let I=0,z;if(!b.supportsWebVital("layout-shift"))return;const oe=P.addClsInstrumentationHandler(({metric:Z})=>{const X=Z.entries[Z.entries.length-1];X&&(I=Z.value,z=X)},!0);b.listenForWebVitalReportEvents(D,(Z,X,ee)=>{B(I,z,ee,Z),oe()})}function B(D,I,z,oe){var he;C.DEBUG_BUILD&&c.debug.log("Sending CLS span (".concat(D,")"));const Z=I?b.msToSec((c.browserPerformanceTimeOrigin()||0)+I.startTime):c.timestampInSeconds(),X=I?c.htmlTreeAsString((he=I.sources[0])==null?void 0:he.node):"Layout shift",ee={};I!=null&&I.sources&&I.sources.forEach((Q,fe)=>{ee["browser.web_vital.cls.source.".concat(fe+1)]=c.htmlTreeAsString(Q.node)}),N({name:X,op:"ui.webvital.cls",origin:"auto.http.browser.cls",metricName:"cls",value:D,attributes:ee,parentSpan:z,reportEvent:oe,startTime:Z})}function W(){if(!b.getBrowserPerformanceAPI()||!c.browserPerformanceTimeOrigin())return;const I=({metric:z})=>{if(z.value==null||b.msToSec(z.value)>k.MAX_PLAUSIBLE_INP_DURATION)return;const Z=z.entries.find(X=>X.duration===z.value&&k.INP_ENTRY_MAP[X.name]);Z&&H(z.value,Z)};P.addInpInstrumentationHandler(I)}function H(D,I){C.DEBUG_BUILD&&c.debug.log("Sending INP span (".concat(D,")"));const z=b.msToSec(c.browserPerformanceTimeOrigin()+I.startTime),oe=b.msToSec(D),Z=k.INP_ENTRY_MAP[I.name],X=k.getCachedInteractionContext(I.interactionId),ee=c.getActiveSpan(),he=ee?c.getRootSpan(ee):void 0,Q=(X==null?void 0:X.span)||he,fe=Q?c.spanToStreamedSpanJSON(Q).name:c.getCurrentScope().getScopeData().transactionName,pe=(X==null?void 0:X.elementName)||c.htmlTreeAsString(I.target);N({name:pe,op:"ui.interaction.".concat(Z),origin:"auto.http.browser.inp",metricName:"inp",value:D,attributes:{[c.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:I.duration,"sentry.transaction":fe},startTime:z,endTime:z+oe,parentSpan:Q})}d._emitWebVitalSpan=N,d._sendClsSpan=B,d._sendInpSpan=H,d._sendLcpSpan=R,d.trackClsAsSpan=F,d.trackInpAsSpan=W,d.trackLcpAsSpan=M})(Ro)),Ro}var No={},Gs;function uu(){return Gs||(Gs=1,(function(d){Object.defineProperty(d,Symbol.toStringTag,{value:"Module"});const c=Rt(),C=Pt(),m=1e3;let k,P,x;function b(W){c.addHandler("dom",W),c.maybeInstrument("dom",N)}function N(){if(!C.WINDOW.document)return;const W=c.triggerHandlers.bind(null,"dom"),H=F(W,!0);C.WINDOW.document.addEventListener("click",H,!1),C.WINDOW.document.addEventListener("keypress",H,!1),["EventTarget","Node"].forEach(D=>{var oe,Z;const z=(oe=C.WINDOW[D])==null?void 0:oe.prototype;(Z=z==null?void 0:z.hasOwnProperty)!=null&&Z.call(z,"addEventListener")&&(c.fill(z,"addEventListener",function(X){return function(ee,he,Q){if(ee==="click"||ee=="keypress")try{const fe=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},pe=fe[ee]=fe[ee]||{refCount:0};if(!pe.handler){const rt=F(W);pe.handler=rt,X.call(this,ee,rt,Q)}pe.refCount++}catch(fe){}return X.call(this,ee,he,Q)}}),c.fill(z,"removeEventListener",function(X){return function(ee,he,Q){if(ee==="click"||ee=="keypress")try{const fe=this.__sentry_instrumentation_handlers__||{},pe=fe[ee];pe&&(pe.refCount--,pe.refCount<=0&&(X.call(this,ee,pe.handler,Q),pe.handler=void 0,delete fe[ee]),Ob
1ject.keys(fe).length===0&&delete this.__sentry_instrumentation_handlers__)}catch(fe){}return X.call(this,ee,he,Q)}}))})}function M(W){if(W.type!==P)return!1;try{if(!W.target||W.target._sentryId!==x)return!1}catch(H){}return!0}function R(W,H){return W!=="keypress"?!1:H!=null&&H.tagName?!(H.tagName==="INPUT"||H.tagName==="TEXTAREA"||H.isContentEditable):!0}function F(W,H=!1){return D=>{if(!D||D._sentryCaptured)return;const I=B(D);if(R(D.type,I))return;c.addNonEnumerableProperty(D,"_sentryCaptured",!0),I&&!I._sentryId&&c.addNonEnumerableProperty(I,"_sentryId",c.uuid4());const z=D.type==="keypress"?"input":D.type;M(D)||(W({event:D,name:z,global:H}),P=D.type,x=I?I._sentryId:void 0),clearTimeout(k),k=C.WINDOW.setTimeout(()=>{x=void 0,P=void 0},m)}}function B(W){try{return W.target}catch(H){return null}}d.addClickKeypressInstrumentationHandler=b,d.instrumentDOM=N})(No)),No}var Lo={},Vs;function lu(){return Vs||(Vs=1,(function(d){Object.defineProperty(d,Symbol.toStringTag,{value:"Module"});const c=Rt(),C=Pt();let m;function k(b){const N="history";c.addHandler(N,b),c.maybeInstrument(N,P)}function P(){if(C.WINDOW.addEventListener("popstate",()=>{const N=C.WINDOW.location.href,M=m;if(m=N,M===N)return;const R={from:M,to:N};c.triggerHandlers("history",R)}),!c.supportsHistory())return;function b(N){return function(...M){const R=M.length>2?M[2]:void 0;if(R){const F=m,B=x(String(R));if(m=B,F===B)return N.apply(this,M);const W={from:F,to:B};c.triggerHandlers("history",W)}return N.apply(this,M)}}c.fill(C.WINDOW.history,"pushState",b),c.fill(C.WINDOW.history,"replaceState",b)}function x(b){try{return new URL(b,C.WINDOW.location.origin).toString()}catch(N){return b}}d.addHistoryInstrumentationHandler=k,d.instrumentHistory=P})(Lo)),Lo}var Oo={},Ys;function du(){return Ys||(Ys=1,(function(d){Object.defineProperty(d,Symbol.toStringTag,{value:"Module"});const c=Rt(),C=$n(),m=Pt(),k={};function P(M){const R=k[M];if(R)return R;let F=m.WINDOW[M];if(c.isNativeFunction(F))return k[M]=F.bind(m.WINDOW);const B=m.WINDOW.document;if(B&&typeof B.createElement=="function")try{const W=B.createElement("iframe");W.hidden=!0,B.head.appendChild(W);const H=W.contentWindow;H!=null&&H[M]&&(F=H[M]),B.head.removeChild(W)}catch(W){C.DEBUG_BUILD&&c.debug.warn("Could not create sandbox iframe for ".concat(M," check, bailing to window.").concat(M,": "),W)}return F&&(k[M]=F.bind(m.WINDOW))}function x(M){k[M]=void 0}function b(...M){return P("fetch")(...M)}function N(...M){return P("setTimeout")(...M)}d.clearCachedImplementation=x,d.fetch=b,d.getNativeImplementation=P,d.setTimeout=N})(Oo)),Oo}var Do={},$s;function fu(){return $s||($s=1,(function(d){Object.defineProperty(d,Symbol.toStringTag,{value:"Module"});const c=Rt(),C=Pt(),m="__sentry_xhr_v3__";function k(b){c.addHandler("xhr",b),c.maybeInstrument("xhr",P)}function P(){if(!C.WINDOW.XMLHttpRequest)return;const b=XMLHttpRequest.prototype;b.open=new Proxy(b.open,{apply(N,M,R){const F=new Error,B=c.timestampInSeconds()*1e3,W=c.isString(R[0])?R[0].toUpperCase():void 0,H=x(R[1]);if(!W||!H)return N.apply(M,R);M[m]={method:W,url:H,request_headers:{}},W==="POST"&&H.match(/sentry_key/)&&(M.__sentry_own_request__=!0);const D=()=>{const I=M[m];if(I&&M.readyState===4){try{I.status_code=M.status}catch(oe){}const z={endTimestamp:c.timestampInSeconds()*1e3,startTimestamp:B,xhr:M,virtualError:F};c.triggerHandlers("xhr",z)}};return"onreadystatechange"in M&&typeof M.onreadystatechange=="function"?M.onreadystatechange=new Proxy(M.onreadystatechange,{apply(I,z,oe){return D(),I.apply(z,oe)}}):M.addEventListener("readystatechange",D),M.setRequestHeader=new Proxy(M.setRequestHeader,{apply(I,z,oe){const[Z,X]=oe,ee=z[m];return ee&&c.isString(Z)&&c.isString(X)&&(ee.request_headers[Z.toLowerCase()]=X),I.apply(z,oe)}}),N.apply(M,R)}}),b.send=new Proxy(b.send,{apply(N,M,R){const F=M[m];if(!F)return N.apply(M,R);R[0]!==void 0&&(F.body=R[0]);const B={startTimestamp:c.timestampInSeconds()*1e3,xhr:M};return c.triggerHandlers("xhr",B),N.apply(M,R)}})}function x(b){if(c.isString(b))return b;try{return b.toString()}catch(N){}}d.SENTRY_XHR_DATA_KEY=m,d.addXhrInstrumentationHandler=k,d.instrumentXHR=P})(Do)),Do}var xo={},Xs;function hu(){return Xs||(Xs=1,(function(d){Object.defineProperty(d,Symbol.toStringTag,{value:"Module"});const c=Rt(),C=$n(),m=Symbol.for("sentry__originalRequestBody");function k(N){return new URLSearchParams(N).toString()}function P(N,M=c.debug){try{if(typeof N=="string")return[N];if(N instanceof URLSearchParams)return[N.toString()];if(N instanceof FormData)return[k(N)];if(!N)return[void 0]}catch(R){return C.DEBUG_BUILD&&M.error(R,"Failed to serialize body",N),[void 0,"BODY_PARSE_ERROR"]}return C.DEBUG_BUILD&&M.log("Skipping network body because of body type",N),[void 0,"UNPARSEABLE_BODY_TYPE"]}
1function x(N=[]){if(N.length>=2&&N[1]&&typeof N[1]=="object"&&"body"in N[1])return N[1].body;if(N.length>=1&&N[0]instanceof Request){const R=N[0][m];return R!==void 0?R:void 0}}function b(N){let M;try{M=N.getAllResponseHeaders()}catch(R){return C.DEBUG_BUILD&&c.debug.error(R,"Failed to get xhr response headers",N),{}}return M?M.split("\r\n").reduce((R,F)=>{const[B,W]=F.split(": ");return W&&(R[B.toLowerCase()]=W),R},{}):{}}d.ORIGINAL_REQ_BODY=m,d.getBodyString=P,d.getFetchRequestArgBody=x,d.parseXhrResponseHeaders=b,d.serializeFormData=k})(xo)),xo}var Ks;function pu(){return Ks||(Ks=1,(function(d){Object.defineProperty(d,Symbol.toStringTag,{value:"Module"});const c=Xn(),C=su(),m=au(),k=Pn(),P=cu(),x=uu(),b=lu(),N=du(),M=fu(),R=hu(),F=na(),B=ra();d.addClsInstrumentationHandler=c.addClsInstrumentationHandler,d.addInpInstrumentationHandler=c.addInpInstrumentationHandler,d.addLcpInstrumentationHandler=c.addLcpInstrumentationHandler,d.addPerformanceInstrumentationHandler=c.addPerformanceInstrumentationHandler,d.addTtfbInstrumentationHandler=c.addTtfbInstrumentationHandler,d.addPerformanceEntries=C.addPerformanceEntries,d.startTrackingInteractions=C.startTrackingInteractions,d.startTrackingLongAnimationFrames=C.startTrackingLongAnimationFrames,d.startTrackingLongTasks=C.startTrackingLongTasks,d.startTrackingWebVitals=C.startTrackingWebVitals,d.elementTimingIntegration=m.elementTimingIntegration,d.startTrackingElementTiming=m.startTrackingElementTiming,d.extractNetworkProtocol=k.extractNetworkProtocol,d.trackClsAsSpan=P.trackClsAsSpan,d.trackInpAsSpan=P.trackInpAsSpan,d.trackLcpAsSpan=P.trackLcpAsSpan,d.addClickKeypressInstrumentationHandler=x.addClickKeypressInstrumentationHandler,d.addHistoryInstrumentationHandler=b.addHistoryInstrumentationHandler,d.clearCachedImplementation=N.clearCachedImplementation,d.fetch=N.fetch,d.getNativeImplementation=N.getNativeImplementation,d.setTimeout=N.setTimeout,d.SENTRY_XHR_DATA_KEY=M.SENTRY_XHR_DATA_KEY,d.addXhrInstrumentationHandler=M.addXhrInstrumentationHandler,d.getBodyString=R.getBodyString,d.getFetchRequestArgBody=R.getFetchRequestArgBody,d.parseXhrResponseHeaders=R.parseXhrResponseHeaders,d.serializeFormData=R.serializeFormData,d.resourceTimingToSpanAttributes=F.resourceTimingToSpanAttributes,d.registerInpInteractionListener=B.registerInpInteractionListener,d.startTrackingINP=B.startTrackingINP})(Ki)),Ki}var Po={},Js;function _u(){return Js||(Js=1,(function(d){var cs;Object.defineProperty(d,Symbol.toStringTag,{value:"Module"});const c=Rt(),C=pu(),m=c.GLOBAL_OBJ,k="sentryReplaySession",P="replay_event",x="Unable to send Replay",b=3e5,N=9e5,M=5e3,R=5500,F=6e4,B=5e3,W=3,H=15e4,D=5e3,I=3e3,z=300,oe=2e7,Z=4999,X=5e4,ee=36e5;var he=Object.defineProperty,Q=(e,t,n)=>t in e?he(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fe=(e,t,n)=>Q(e,typeof t!="symbol"?t+"":t,n),pe=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(pe||{});function rt(e){return e.nodeType===e.ELEMENT_NODE}function ut(e){const t=e==null?void 0:e.host;return(t==null?void 0:t.shadowRoot)===e}function it(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function se(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function Ge(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import","url(".concat(JSON.stringify(e.href),")")];return e.layerName===""?n.push("layer"):e.layerName&&n.push("layer(".concat(e.layerName,")")),e.supportsText&&n.push("supports(".concat(e.supportsText,")")),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function ot(e){try{const t=e.rules||e.cssRules;return t?se(Array.from(t,At).join("")):null}catch(t){return null}}function ht(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style,o=r[n],a=r.getPropertyPriority(o);t+="".concat(o,":").concat(r.getPropertyValue(o)).concat(a?" !important":"",";")}return"".concat(e.selectorText," { ").concat(t," }")}function At(e){let t;if(on(e))try{t=ot(e.styleSheet)||Ge(e)}catch(n){}else if(kn(e)){let n=e.cssText;const r=e.selectorText.includes(":"),o=typeof e.style.all=="string"&&e.style.all;if(o&&(n=ht(e)),r&&(n=rn(n)),r||o)return n}return t||e.cssText}function rn(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function on(e){return"styleSheet"in e}function kn(e){return"selectorText"in e}class U{constructor(){fe(this,"idNodeMap",new Map),fe(this,"nodeMetaMap",new WeakMap)}getId(t){var r;if(!t)return-1;const n=(r=this.getMeta(t))==null?void 0:r.id;return n!=null?n:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const n=this.getId(t);
1this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){const r=this.getNode(t);if(r){const o=this.nodeMetaMap.get(r);o&&this.nodeMetaMap.set(n,o)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function K(){return new U}function G({maskInputOptions:e,tagName:t,type:n}){return t==="OPTION"&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||n==="password"||t==="INPUT"&&!n&&e.text)}function ae({isMasked:e,element:t,value:n,maskInputFn:r}){let o=n||"";return e?(r&&(o=r(o,t)),"*".repeat(o.length)):o}function we(e){return e.toLowerCase()}function Ne(e){return e.toUpperCase()}const Ze="__rrweb_original__";function Tt(e){const t=e.getContext("2d");if(!t)return!0;const n=50;for(let r=0;r<e.width;r+=n)for(let o=0;o<e.height;o+=n){const a=t.getImageData,l=Ze in a?a[Ze]:a;if(new Uint32Array(l.call(t,r,o,Math.min(n,e.width-r),Math.min(n,e.height-o)).data.buffer).some(f=>f!==0))return!1}return!0}function $e(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?we(t):null}function st(e,t,n){return t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}function Nt(e,t){var a;let n;try{n=new URL(e,t!=null?t:window.location.href)}catch(l){return null}const r=/\.([0-9a-z]+)(?:$)/i,o=n.pathname.match(r);return(a=o==null?void 0:o[1])!=null?a:null}const mt={};function y(e){const t=mt[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o);const a=o.contentWindow;a&&a[e]&&(r=a[e]),n.head.removeChild(o)}catch(o){}return mt[e]=r.bind(window)}function _(...e){return y("setTimeout")(...e)}function w(...e){return y("clearTimeout")(...e)}function T(e){try{return e.contentDocument}catch(t){}}function q(e){try{return e.contentWindow}catch(t){}}let ne=1;const Te=new RegExp("[^a-z0-9-_:]"),de=-2;function Re(){return ne++}function tt(e){if(e instanceof HTMLFormElement)return"form";const t=we(e.tagName);return Te.test(t)?"div":t}function lt(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let pt,Gt;const Lt=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,It=/^(?:[a-z+]+:)?\/\//i,ye=/^www\..*/i,sn=/^(data:)([^,]*),(.*)/i;function Ct(e,t){if(!e||t.size===0)return e;try{const n=e.split(";"),r=[];for(let o of n){if(o=o.trim(),!o)continue;const a=o.indexOf(":");if(a===-1){r.push(o);continue}const l=o.slice(0,a).trim();t.has(l)||r.push(o)}return r.join("; ")+(r.length>0&&e.endsWith(";")?";":"")}catch(n){return console.warn("Error filtering CSS properties:",n),e}}function en(e,t){return(e||"").replace(Lt,(n,r,o,a,l,h)=>{const f=o||l||h,S=r||a||"";if(!f)return n;if(It.test(f)||ye.test(f)||sn.test(f))return"url(".concat(S).concat(f).concat(S,")");
1if(f[0]==="/")return"url(".concat(S).concat(lt(t)+f).concat(S,")");const L=t.split("/"),A=f.split("/");L.pop();for(const O of A)O!=="."&&(O===".."?L.pop():L.push(O));return"url(".concat(S).concat(L.join("/")).concat(S,")")})}const Mn=/^[^ \t\n\r\u000c]+/,ai=/^[, \t\n\r\u000c]+/;function Rr(e,t){if(t.trim()==="")return t;let n=0;function r(a){let l;const h=a.exec(t.substring(n));return h?(l=h[0],n+=l.length,l):""}const o=[];for(;r(ai),!(n>=t.length);){let a=r(Mn);if(a.slice(-1)===",")a=an(e,a.substring(0,a.length-1)),o.push(a);else{let l="";a=an(e,a);let h=!1;for(;;){const f=t.charAt(n);if(f===""){o.push((a+l).trim());break}else if(h)f===")"&&(h=!1);else if(f===","){n+=1,o.push((a+l).trim());break}else f==="("&&(h=!0);l+=f,n+=1}}}return o.join(", ")}const sr=new WeakMap;function an(e,t){return!t||t.trim()===""?t:Kn(e,t)}function Ar(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Kn(e,t){let n=sr.get(e);if(n||(n=e.createElement("a"),sr.set(e,n)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return n.setAttribute("href",t),n.href}function ar(e,t,n,r,o,a,l){if(!r)return r;if(n==="src"||n==="href"&&!(t==="use"&&r[0]==="#"))return an(e,r);if(n==="xlink:href"&&r[0]!=="#")return an(e,r);if(n==="background"&&(t==="table"||t==="td"||t==="th"))return an(e,r);if(n==="srcset")return Rr(e,r);if(n==="style"){let h=en(r,Kn(e));return l&&l.size>0&&(h=Ct(h,l)),h}else if(t==="object"&&n==="data")return an(e,r);return typeof a=="function"?a(n,r,o):r}function Nr(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function Lr(e,t,n,r){try{if(r&&e.matches(r))return!1;if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let o=e.classList.length;o--;){const a=e.classList[o];if(t.test(a))return!0}if(n)return e.matches(n)}catch(o){}return!1}function Jn(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function hn(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:hn(e.parentNode,t,n,r+1)}function Tn(e,t){return n=>{const r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(".".concat(e)))return!0}else if(Jn(r,e))return!0}return!!(t&&r.matches(t))}catch(o){return!1}}}function pn(e,t,n,r,o,a){try{const l=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(l===null)return!1;if(l.tagName==="INPUT"){const S=l.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(S))return!0}let h=-1,f=-1;if(a){if(f=hn(l,Tn(r,o)),f<0)return!0;h=hn(l,Tn(t,n),f>=0?f:1/0)}else{if(h=hn(l,Tn(t,n)),h<0)return!1;f=hn(l,Tn(r,o),h>=0?h:1/0)}return h>=0?f>=0?h<=f:!0:f>=0?!1:!!a}catch(l){}return!!a}function cr(e,t,n){const r=q(e);if(!r)return;let o=!1,a;try{a=r.document.readyState}catch(h){return}if(a!=="complete"){const h=_(()=>{o||(t(),o=!0)},n);e.addEventListener("load",()=>{w(h),o=!0,t()});return}const l="about:blank";if(r.location.href!==l||e.src===l||e.src==="")return _(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function ci(e,t,n){let r=!1,o;try{o=e.sheet}catch(l){o=null}if(o)return;const a=_(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{w(a),r=!0,t()})}function ur(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:a,unblockSelector:l,maskAllText:h,maskAttributeFn:f,maskTextClass:S,unmaskTextClass:L,maskTextSelector:A,unmaskTextSelector:O,inlineStylesheet:$,maskInputOptions:V={},maskTextFn:ue,maskInputFn:Ee,dataURLOptions:me={},inlineImages:Ce,recordCanvas:Qe,keepIframeSrcFn:je,newlyAddedElement:ct=!1,ignoreCSSAttributes:Oe}=t,ie=lr(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:pe.Document,childNodes:[],compatMode:e.compatMode}:{type:pe.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:pe.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:ie};case e.ELEMENT_NODE:return li(e,{doc:n,blockClass:o,blockSelector:a,unblockSelector:l,inlineStylesheet:$,maskAttributeFn:f,maskInputOptions:V,maskInputFn:Ee,dataURLOptions:me,inlineImages:Ce,recordCanvas:Qe,keepIframeSrcFn:je,newlyAddedElement:ct,rootId:ie,maskTextClass:S,unmaskTextClass:L,maskTextSelector:A,unmaskTextSelector:O,ignoreCSSAttributes:Oe});case e.TEXT_NODE:return ui(e,{doc:n,maskAllText:h,maskTextClass:S,unmaskTextClass:L,maskTextSelector:A,unmaskTextSelector:O,maskTextFn:ue,maskInputOptions:V,maskInputFn:Ee,rootId:ie});case e.CDATA_SECTION_NODE:return{type:pe.CDATA,textContent:"",rootId:ie};case e.COMMENT_NODE:return{type:pe.Comment,textContent:e.textContent||"",rootId:ie};default:return!1}}function lr(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return n===1?void 0:n}function ui(e,t){var me;const{maskAllText:n,maskTextClass:r,unmaskTextClass:o,maskTextSelector:a,unmaskTextSelector:l,maskTextFn:
1h,maskInputOptions:f,maskInputFn:S,rootId:L}=t,A=e.parentNode&&e.parentNode.tagName;let O=e.textContent;const $=A==="STYLE"?!0:void 0,V=A==="SCRIPT"?!0:void 0,ue=A==="TEXTAREA"?!0:void 0;if($&&O){try{e.nextSibling||e.previousSibling||(me=e.parentNode.sheet)!=null&&me.cssRules&&(O=ot(e.parentNode.sheet))}catch(Ce){console.warn("Cannot get CSS styles from text's parentNode. Error: ".concat(Ce),e)}O=en(O,Kn(t.doc))}V&&(O="SCRIPT_PLACEHOLDER");const Ee=pn(e,r,a,o,l,n);if(!$&&!V&&!ue&&O&&Ee&&(O=h?h(O,e.parentElement):O.replace(/[\S]/g,"*")),ue&&O&&(f.textarea||Ee)&&(O=S?S(O,e.parentNode):O.replace(/[\S]/g,"*")),A==="OPTION"&&O){const Ce=G({type:null,tagName:A,maskInputOptions:f});O=ae({isMasked:pn(e,r,a,o,l,Ce),element:e,value:O,maskInputFn:S})}return{type:pe.Text,textContent:O||"",isStyle:$,rootId:L}}function li(e,t){const{doc:n,blockClass:r,blockSelector:o,unblockSelector:a,inlineStylesheet:l,maskInputOptions:h={},maskAttributeFn:f,maskInputFn:S,dataURLOptions:L={},inlineImages:A,recordCanvas:O,keepIframeSrcFn:$,newlyAddedElement:V=!1,rootId:ue,maskTextClass:Ee,unmaskTextClass:me,maskTextSelector:Ce,unmaskTextSelector:Qe,ignoreCSSAttributes:je}=t,ct=Lr(e,r,o,a),Oe=tt(e);let ie={};const Ue=e.attributes.length;for(let le=0;le<Ue;le++){const Me=e.attributes[le];Me.name&&!Nr(Oe,Me.name,Me.value)&&(ie[Me.name]=ar(n,Oe,we(Me.name),Me.value,e,f,je))}if(Oe==="link"&&l){const le=Array.from(n.styleSheets).find(et=>et.href===e.href);let Me=null;le&&(Me=ot(le)),Me&&(ie.rel=null,ie.href=null,ie.crossorigin=null,ie._cssText=en(Me,le.href))}if(Oe==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const le=ot(e.sheet);le&&(ie._cssText=en(le,Kn(n)))}if(Oe==="input"||Oe==="textarea"||Oe==="select"||Oe==="option"){const le=e,Me=$e(le),et=st(le,Ne(Oe),Me),yt=le.checked;if(Me!=="submit"&&Me!=="button"&&et){const vt=pn(le,Ee,Ce,me,Qe,G({type:Me,tagName:Ne(Oe),maskInputOptions:h}));ie.value=ae({isMasked:vt,element:le,value:et,maskInputFn:S})}yt&&(ie.checked=yt)}if(Oe==="option"&&(e.selected&&!h.select?ie.selected=!0:delete ie.selected),Oe==="canvas"&&O){if(e.__context==="2d")Tt(e)||(ie.rr_dataURL=e.toDataURL(L.type,L.quality));else if(!("__context"in e)){const le=e.toDataURL(L.type,L.quality),Me=n.createElement("canvas");Me.width=e.width,Me.height=e.height;const et=Me.toDataURL(L.type,L.quality);le!==et&&(ie.rr_dataURL=le)}}if(Oe==="img"&&A){pt||(pt=n.createElement("canvas"),Gt=pt.getContext("2d"));const le=e,Me=le.currentSrc||le.getAttribute("src")||"<unknown-src>",et=le.crossOrigin,yt=()=>{le.removeEventListener("load",yt);try{pt.width=le.naturalWidth,pt.height=le.naturalHeight,Gt.drawImage(le,0,0),ie.rr_dataURL=pt.toDataURL(L.type,L.quality)}catch(vt){if(le.crossOrigin!=="anonymous"){le.crossOrigin="anonymous",le.complete&&le.naturalWidth!==0?yt():le.addEventListener("load",yt);return}else console.warn("Cannot inline img src=".concat(Me,"! Error: ").concat(vt))}le.crossOrigin==="anonymous"&&(et?ie.crossOrigin=et:le.removeAttribute("crossorigin"))};le.complete&&le.naturalWidth!==0?yt():le.addEventListener("load",yt)}if((Oe==="audio"||Oe==="video")&&(ie.rr_mediaState=e.paused?"paused":"played",ie.rr_mediaCurrentTime=e.currentTime),V||(e.scrollLeft&&(ie.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(ie.rr_scrollTop=e.scrollTop)),ct){const{width:le,height:Me}=e.getBoundingClientRect();ie={class:ie.class,rr_width:"".concat(le,"px"),rr_height:"".concat(Me,"px")}}Oe==="iframe"&&!$(ie.src)&&(!ct&&!T(e)&&(ie.rr_src=ie.src),delete ie.src);let wt;try{customElements.get(Oe)&&(wt=!0)}catch(le){}return{type:pe.Element,tagName:Oe,attributes:ie,childNodes:[],isSVG:Ar(e)||void 0,needBlock:ct,rootId:ue,isCustom:wt}}function xe(e){return e==null?"":e.toLowerCase()}function Ke(e,t){if(t.comment&&e.type===pe.Comment)return!0;if(e.type===pe.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&Nt(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(xe(e.attributes.name).match(/^msapplication-tile(image|color)$/)||xe(e.attributes.name)==="application-name"||xe(e.attributes.rel)==="icon"||xe(e.attributes.rel)==="apple-touch-icon"||xe(e.attributes.rel)==="shortcut icon")))return!0;
1if(e.tagName==="meta"){if(t.headMetaDescKeywords&&xe(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(xe(e.attributes.property).match(/^(og|twitter|fb):/)||xe(e.attributes.name).match(/^(og|twitter):/)||xe(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(xe(e.attributes.name)==="robots"||xe(e.attributes.name)==="googlebot"||xe(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(xe(e.attributes.name)==="author"||xe(e.attributes.name)==="generator"||xe(e.attributes.name)==="framework"||xe(e.attributes.name)==="publisher"||xe(e.attributes.name)==="progid"||xe(e.attributes.property).match(/^article:/)||xe(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(xe(e.attributes.name)==="google-site-verification"||xe(e.attributes.name)==="yandex-verification"||xe(e.attributes.name)==="csrf-token"||xe(e.attributes.name)==="p:domain_verify"||xe(e.attributes.name)==="verify-v1"||xe(e.attributes.name)==="verification"||xe(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function mn(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:a,unblockSelector:l,maskAllText:h,maskTextClass:f,unmaskTextClass:S,maskTextSelector:L,unmaskTextSelector:A,skipChild:O=!1,inlineStylesheet:$=!0,maskInputOptions:V={},maskAttributeFn:ue,maskTextFn:Ee,maskInputFn:me,slimDOMOptions:Ce,dataURLOptions:Qe={},inlineImages:je=!1,recordCanvas:ct=!1,onSerialize:Oe,onIframeLoad:ie,iframeLoadTimeout:Ue=5e3,onBlockedImageLoad:wt,onStylesheetLoad:le,stylesheetLoadTimeout:Me=5e3,keepIframeSrcFn:et=()=>!1,newlyAddedElement:yt=!1,ignoreCSSAttributes:vt}=t;let{preserveWhiteSpace:ln=!0}=t;const Ft=ur(e,{doc:n,mirror:r,blockClass:o,blockSelector:a,maskAllText:h,unblockSelector:l,maskTextClass:f,unmaskTextClass:S,maskTextSelector:L,unmaskTextSelector:A,inlineStylesheet:$,maskInputOptions:V,maskAttributeFn:ue,maskTextFn:Ee,maskInputFn:me,dataURLOptions:Qe,inlineImages:je,recordCanvas:ct,keepIframeSrcFn:et,newlyAddedElement:yt,ignoreCSSAttributes:vt});if(!Ft)return console.warn(e,"not serialized"),null;let Mt;r.hasNode(e)?Mt=r.getId(e):Ke(Ft,Ce)||!ln&&Ft.type===pe.Text&&!Ft.isStyle&&!Ft.textContent.trim().length?Mt=de:Mt=Re();const Ae=Object.assign(Ft,{id:Mt});if(r.add(e,Ae),Mt===de)return null;Oe&&Oe(e);let nn=!O;if(Ae.type===pe.Element){nn=nn&&!Ae.needBlock;const ft=e.shadowRoot;ft&&it(ft)&&(Ae.isShadowHost=!0)}if((Ae.type===pe.Document||Ae.type===pe.Element)&&nn){Ce.headWhitespace&&Ae.type===pe.Element&&Ae.tagName==="head"&&(ln=!1);const ft={doc:n,mirror:r,blockClass:o,blockSelector:a,maskAllText:h,unblockSelector:l,maskTextClass:f,unmaskTextClass:S,maskTextSelector:L,unmaskTextSelector:A,skipChild:O,inlineStylesheet:$,maskInputOptions:V,maskAttributeFn:ue,maskTextFn:Ee,maskInputFn:me,slimDOMOptions:Ce,dataURLOptions:Qe,inlineImages:je,recordCanvas:ct,preserveWhiteSpace:ln,onSerialize:Oe,onIframeLoad:ie,iframeLoadTimeout:Ue,onBlockedImageLoad:wt,onStylesheetLoad:le,stylesheetLoadTimeout:Me,keepIframeSrcFn:et,ignoreCSSAttributes:vt},En=e.childNodes?Array.from(e.childNodes):[];for(const wn of En){const dn=mn(wn,ft);dn&&Ae.childNodes.push(dn)}if(rt(e)&&e.shadowRoot)for(const wn of Array.from(e.shadowRoot.childNodes)){const dn=mn(wn,ft);dn&&(it(e.shadowRoot)&&(dn.isShadow=!0),Ae.childNodes.push(dn))}}if(e.parentNode&&ut(e.parentNode)&&it(e.parentNode)&&(Ae.isShadow=!0),Ae.type===pe.Element&&Ae.tagName==="iframe"&&!Ae.needBlock&&cr(e,()=>{const ft=T(e);if(ft&&ie){const En=mn(ft,{doc:ft,mirror:r,blockClass:o,blockSelector:a,unblockSelector:l,maskAllText:h,maskTextClass:f,unmaskTextClass:S,maskTextSelector:L,unmaskTextSelector:A,skipChild:!1,inlineStylesheet:$,maskInputOptions:V,maskAttributeFn:ue,maskTextFn:Ee,maskInputFn:me,slimDOMOptions:Ce,dataURLOptions:Qe,inlineImages:je,recordCanvas:ct,preserveWhiteSpace:ln,onSerialize:Oe,onIframeLoad:ie,iframeLoadTimeout:Ue,onStylesheetLoad:le,stylesheetLoadTimeout:Me,keepIframeSrcFn:et,ignoreCSSAttributes:vt});En&&ie(e,En)}},Ue),Ae.type===pe.Element&&Ae.tagName==="img"&&!e.complete&&Ae.needBlock){const ft
1=e,En=()=>{if(ft.isConnected&&!ft.complete&&wt)try{const wn=ft.getBoundingClientRect();wn.width>0&&wn.height>0&&wt(ft,Ae,wn)}catch(wn){}ft.removeEventListener("load",En)};ft.isConnected&&ft.addEventListener("load",En)}return Ae.type===pe.Element&&Ae.tagName==="link"&&typeof Ae.attributes.rel=="string"&&(Ae.attributes.rel==="stylesheet"||Ae.attributes.rel==="preload"&&typeof Ae.attributes.href=="string"&&Nt(Ae.attributes.href)==="css")&&ci(e,()=>{if(le){const ft=mn(e,{doc:n,mirror:r,blockClass:o,blockSelector:a,unblockSelector:l,maskAllText:h,maskTextClass:f,unmaskTextClass:S,maskTextSelector:L,unmaskTextSelector:A,skipChild:!1,inlineStylesheet:$,maskInputOptions:V,maskAttributeFn:ue,maskTextFn:Ee,maskInputFn:me,slimDOMOptions:Ce,dataURLOptions:Qe,inlineImages:je,recordCanvas:ct,preserveWhiteSpace:ln,onSerialize:Oe,onIframeLoad:ie,iframeLoadTimeout:Ue,onStylesheetLoad:le,stylesheetLoadTimeout:Me,keepIframeSrcFn:et,ignoreCSSAttributes:vt});ft&&le(e,ft)}},Me),Ae.type===pe.Element&&delete Ae.needBlock,Ae}function Or(e,t){const{mirror:n=new U,blockClass:r="rr-block",blockSelector:o=null,unblockSelector:a=null,maskAllText:l=!1,maskTextClass:h="rr-mask",unmaskTextClass:f=null,maskTextSelector:S=null,unmaskTextSelector:L=null,inlineStylesheet:A=!0,inlineImages:O=!1,recordCanvas:$=!1,maskAllInputs:V=!1,maskAttributeFn:ue,maskTextFn:Ee,maskInputFn:me,slimDOM:Ce=!1,dataURLOptions:Qe,preserveWhiteSpace:je,onSerialize:ct,onIframeLoad:Oe,iframeLoadTimeout:ie,onBlockedImageLoad:Ue,onStylesheetLoad:wt,stylesheetLoadTimeout:le,keepIframeSrcFn:Me=()=>!1,ignoreCSSAttributes:et=new Set([])}=t||{};return mn(e,{doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:a,maskAllText:l,maskTextClass:h,unmaskTextClass:f,maskTextSelector:S,unmaskTextSelector:L,skipChild:!1,inlineStylesheet:A,maskInputOptions:V===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:V===!1?{}:V,maskAttributeFn:ue,maskTextFn:Ee,maskInputFn:me,slimDOMOptions:Ce===!0||Ce==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:Ce==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:Ce===!1?{}:Ce,dataURLOptions:Qe,inlineImages:O,recordCanvas:$,preserveWhiteSpace:je,onSerialize:ct,onIframeLoad:Oe,iframeLoadTimeout:ie,onBlockedImageLoad:Ue,onStylesheetLoad:wt,stylesheetLoadTimeout:le,keepIframeSrcFn:Me,newlyAddedElement:!1,ignoreCSSAttributes:et})}function gn(e){try{return e.contentDocument}catch(t){}}function Rn(e){try{return e.contentWindow}catch(t){}}function St(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const Xe="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let dr={map:{},getId(){return console.error(Xe),-1},getNode(){return console.error(Xe),null},removeNodeFromMap(){console.error(Xe)},has(){return console.error(Xe),!1},reset(){console.error(Xe)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(dr=new Proxy(dr,{get(e,t,n){return t==="map"&&console.error(Xe),Reflect.get(e,t,n)}}));function An(e,t,n={}){let r=null,o=0;return function(...a){const l=Date.now();!o&&n.leading===!1&&(o=l);const h=t-(l-o),f=this;h<=0||h>t?(r&&(hi(r),r=null),o=l,e.apply(f,a)):!r&&n.trailing!==!1&&(r=er(()=>{o=n.leading===!1?0:Date.now(),r=null,e.apply(f,a)},h))}}function fr(e,t,n,r,o=window){const a=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(l){er(()=>{n.set.call(this,l)},0),a&&a.set&&a.set.call(this,l)}}),()=>fr(e,t,a||{},!0)}function Zn(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],o=n(r);return typeof o=="function"&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch(r){return()=>{}}}let Bn=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Bn=()=>new Date().getTime());function hr(e){var n,r,o,a,l,h;const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:(t==null?void 0:t.documentElement.scrollLeft)||((r=(n=t==null?void 0:t.body)==null?void 0:n.parentElement)==null?void 0:r.scrollLeft)||((o=t==null?void 0:t.body)==null?void 0:o.scrollLeft)||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:(t==null?void 0:t.documentElement.scrollTop)||((l=(a=t==null?void 0:t.body)==null?void 0:a.parentElement)==null?void 0:l.scrollTop)||((h=t==null?void 0:t.body)==null?void 0:h.scrollTop)||0}}function _n(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function yn(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function pr(e){if(!e)return null;
1try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(t){return null}}function Wt(e,t,n,r,o){if(!e)return!1;const a=pr(e);if(!a)return!1;const l=Tn(t,n);if(!o){const S=r&&a.matches(r);return l(a)&&!S}const h=hn(a,l);let f=-1;return h<0?!1:(r&&(f=hn(a,Tn(null,r))),h>-1&&f<0?!0:h<f)}function Dr(e,t){return t.getId(e)!==-1}function mr(e,t){return t.getId(e)===de}function xr(e,t){if(ut(e))return!1;const n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?xr(e.parentNode,t):!0:!0}function In(e){return!!e.changedTouches}function Nn(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=(...t)=>{let n=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&&n.parentNode);return!1})}function Pr(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function Br(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function gr(e){return!!(e!=null&&e.shadowRoot)}class di{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){var n;return(n=this.styleIDMap.get(t))!=null?n:-1}has(t){return this.styleIDMap.has(t)}add(t,n){if(this.has(t))return this.getId(t);let r;return n===void 0?r=this.id++:r=n,this.styleIDMap.set(t,r),this.idStyleMap.set(r,t),r}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Fr(e){var n,r;let t=null;return((r=(n=e.getRootNode)==null?void 0:n.call(e))==null?void 0:r.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function Wr(e){let t=e,n;for(;n=Fr(t);)t=n;return t}function fi(e){const t=e.ownerDocument;if(!t)return!1;const n=Wr(e);return t.contains(n)}function Fn(e){const t=e.ownerDocument;return t?t.contains(e)||fi(e):!1}const Qn={};function Wn(e){const t=Qn[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o);const a=o.contentWindow;a&&a[e]&&(r=a[e]),n.head.removeChild(o)}catch(o){}return Qn[e]=r.bind(window)}function Hr(...e){return Wn("requestAnimationFrame")(...e)}function er(...e){return Wn("setTimeout")(...e)}function hi(...e){return Wn("clearTimeout")(...e)}var ke=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(ke||{}),Se=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(Se||{}),Ot=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(Ot||{}),$t=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))($t||{}),Ln=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(Ln||{});class _r{constructor(t){this.doc=t,this.unattachedDoc=null}parse(t){return this.parseWithConstructableStylesheet(t)||this.parseWithDetachedElement(t)}parseWithConstructableStylesheet(t){if(typeof CSSStyleSheet>"u"||typeof CSSStyleSheet.prototype.replaceSync!="function")return null;try{const n=new CSSStyleSheet;n.replaceSync("x { ".concat(t," }"));const r=n.cssRules[0];
1return!r||r.type!==CSSRule.STYLE_RULE?null:r.style}catch(n){return null}}parseWithDetachedElement(t){const n=this.getUnattachedDoc().createElement("span");return n.setAttribute("style",t),n.style}getUnattachedDoc(){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(t){this.unattachedDoc=this.doc}return this.unattachedDoc}}function Hn(e){return"__ln"in e}class Ur{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let r=0;r<t;r++)n=(n==null?void 0:n.next)||null;return n}addNode(t){const n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&Hn(t.previousSibling)){const r=t.previousSibling.__ln.next;n.next=r,n.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=n,r&&(r.previous=n)}else if(t.nextSibling&&Hn(t.nextSibling)&&t.nextSibling.__ln.previous){const r=t.nextSibling.__ln.previous;n.previous=r,n.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=n,r&&(r.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++}removeNode(t){const n=t.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const qr=(e,t)=>"".concat(e,"@").concat(t);class pi{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],n=new Set,r=new Ur,o=f=>{let S=f,L=de;for(;L===de;)S=S&&S.nextSibling,L=S&&this.mirror.getId(S);return L},a=f=>{if(!f.parentNode||!Fn(f))return;const S=ut(f.parentNode)?this.mirror.getId(Fr(f)):this.mirror.getId(f.parentNode),L=o(f);if(S===-1||L===-1)return r.addNode(f);const A=mn(f,{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:O=>{Pr(O,this.mirror)&&!Wt(O,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(O),Br(O,this.mirror)&&this.stylesheetManager.trackLinkElement(O),gr(f)&&this.shadowDomManager.addShadowRoot(f.shadowRoot,this.doc)},onIframeLoad:(O,$)=>{if(Wt(O,this.blockClass,this.blockSelector,this.unblockSelector,!1))return;this.iframeManager.attachIframe(O,$);const V=Rn(O);V&&this.canvasManager.addWindow(V),this.shadowDomManager.observeAttachShadow(O)},onStylesheetLoad:(O,$)=>{this.stylesheetManager.attachLinkElement(O,$)},onBlockedImageLoad:(O,$,{width:V,height:ue})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:$.id,attributes:{style:{width:"".concat(V,"px"),height:"".concat(ue,"px")}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});A&&(t.push({parentId:S,nextId:L,node:A}),n.add(A.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const f of this.movedSet)zr(this.removes,f,this.mirror)&&!this.movedSet.has(f.parentNode)||a(f);for(const f of this.addedSet)!jr(this.droppedSet,f)&&!zr(this.removes,f,this.mirror)||jr(this.movedSet,f)?a(f):this.droppedSet.add(f);let l=null;for(;r.length;){let f=null;if(l){const S=this.mirror.getId(l.value.parentNode),L=o(l.value);S!==-1&&L!==-1&&(f=l)}if(!f){let S=r.tail;for(;S;){const L=S;if(S=S.previous,L){const A=this.mirror.getId(L.value.parentNode);
1if(o(L.value)===-1)continue;if(A!==-1){f=L;break}else{const $=L.value;if($.parentNode&&$.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const V=$.parentNode.host;if(this.mirror.getId(V)!==-1){f=L;break}}}}}}if(!f){for(;r.head;)r.removeNode(r.head.value);break}l=f.previous,r.removeNode(f.value),a(f.value)}const h={texts:this.texts.map(f=>({id:this.mirror.getId(f.node),value:f.value})).filter(f=>!n.has(f.id)).filter(f=>this.mirror.has(f.id)),attributes:this.attributes.map(f=>{const{attributes:S}=f;if(typeof S.style=="string"){const L=JSON.stringify(f.styleDiff),A=JSON.stringify(f._unchangedStyles);L.length<S.style.length&&(L+A).split("var(").length===S.style.split("var(").length&&(S.style=f.styleDiff)}return{id:this.mirror.getId(f.node),attributes:S}}).filter(f=>!n.has(f.id)).filter(f=>this.mirror.has(f.id)),removes:this.removes,adds:t};!h.texts.length&&!h.attributes.length&&!h.removes.length&&!h.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(h))},this.processMutation=t=>{if(!mr(t.target,this.mirror))switch(t.type){case"characterData":{const n=t.target.textContent;!Wt(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==t.oldValue&&this.texts.push({value:pn(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n,pr(t.target)):n.replace(/[\S]/g,"*"):n,node:t.target});break}case"attributes":{const n=t.target;let r=t.attributeName,o=t.target.getAttribute(r);if(r==="value"){const l=$e(n),h=n.tagName;o=st(n,h,l);const f=G({maskInputOptions:this.maskInputOptions,tagName:h,type:l}),S=pn(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,f);o=ae({isMasked:S,element:n,value:o,maskInputFn:this.maskInputFn})}if(Wt(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||o===t.oldValue)return;let a=this.attributeMap.get(t.target);if(n.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(o))if(!gn(n))r="rr_src";else return;if(a||(a={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(a),this.attributeMap.set(t.target,a)),r==="type"&&n.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!Nr(n.tagName,r)&&(a.attributes[r]=ar(this.doc,we(n.tagName),we(r),o,n,this.maskAttributeFn),r==="style")){const l=t.oldValue?this.styleDeclarationParser.parse(t.oldValue):null;for(const h of Array.from(n.style)){const f=n.style.getPropertyValue(h),S=n.style.getPropertyPriority(h);f!==((l==null?void 0:l.getPropertyValue(h))||"")||S!==((l==null?void 0:l.getPropertyPriority(h))||"")?S===""?a.styleDiff[h]=f:a.styleDiff[h]=[f,S]:a._unchangedStyles[h]=[f,S]}if(l)for(const h of Array.from(l))n.style.getPropertyValue(h)===""&&(a.styleDiff[h]=!1)}break}case"childList":{if(Wt(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(n=>this.genAdds(n,t.target)),t.removedNodes.forEach(n=>{const r=this.mirror.getId(n),o=ut(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);Wt(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||mr(n,this.mirror)||!Dr(n,this.mirror)||(this.addedSet.has(n)?(yr(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&r===-1||xr(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[qr(r,o)]?yr(this.movedSet,n):this.removes.push({parentId:o,id:r,isShadow:ut(t.target)&&it(t.target)?!0:void 0})),this.mapRemoves.push(n))});break}}},this.genAdds=(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(mr(t,this.mirror))return;this.movedSet.add(t);let r=null;n&&this.mirror.hasNode(n)&&(r=this.mirror.getId(n)),r&&r!==-1&&(this.movedMap[qr(this.mirror.getId(t),r)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);Wt(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes&&t.childNodes.forEac
1h(r=>this.genAdds(r)),gr(t)&&t.shadowRoot.childNodes.forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,t)}))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager","ignoreCSSAttributes"].forEach(n=>{this[n]=t[n]}),this.styleDeclarationParser=new _r(this.doc)}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function yr(e,t){var n;e.delete(t),(n=t.childNodes)==null||n.forEach(r=>yr(e,r))}function zr(e,t,n){return e.length===0?!1:mi(e,t,n)}function mi(e,t,n){let r=t.parentNode;for(;r;){const o=n.getId(r);if(e.some(a=>a.id===o))return!0;r=r.parentNode}return!1}function jr(e,t){return e.size===0?!1:Gr(e,t)}function Gr(e,t){const{parentNode:n}=t;return n?e.has(n)?!0:Gr(e,n):!1}let Un;function gi(e){Un=e}function _i(){Un=void 0}const Pe=e=>Un?((...n)=>{try{return e(...n)}catch(r){if(Un&&Un(r)===!0)return()=>{};throw r}}):e,On=[];function qn(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(t){}return e&&e.target}function Vr(e,t){var l,h;const n=new pi;On.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const o=(h=(l=window==null?void 0:window.Zone)==null?void 0:l.__symbol__)==null?void 0:h.call(l,"MutationObserver");o&&window[o]&&(r=window[o]);const a=new r(Pe(f=>{e.onMutation&&e.onMutation(f)===!1||n.processMutations.bind(n)(f)}));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function yi({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};const o=typeof t.mousemove=="number"?t.mousemove:50,a=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let l=[],h;const f=An(Pe(A=>{const O=Date.now()-h;e(l.map($=>($.timeOffset-=O,$)),A),l=[],h=null}),a),S=Pe(An(Pe(A=>{const O=qn(A),{clientX:$,clientY:V}=In(A)?A.changedTouches[0]:A;h||(h=Bn()),l.push({x:$,y:V,id:r.getId(O),timeOffset:Bn()-h}),f(typeof DragEvent<"u"&&A instanceof DragEvent?Se.Drag:A instanceof MouseEvent?Se.MouseMove:Se.TouchMove)}),o,{trailing:!1})),L=[St("mousemove",S,n),St("touchmove",S,n),St("drag",S,n)];return Pe(()=>{L.forEach(A=>A())})}function Si({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:a,sampling:l}){if(l.mouseInteraction===!1)return()=>{};const h=l.mouseInteraction===!0||l.mouseInteraction===void 0?{}:l.mouseInteraction,f=[];let S=null;const L=A=>O=>{const $=qn(O);if(Wt($,r,o,a,!0))return;let V=null,ue=A;if("pointerType"in O){switch(O.pointerType){case"mouse":V=$t.Mouse;break;case"touch":V=$t.Touch;break;case"pen":V=$t.Pen;break}V===$t.Touch?Ot[A]===Ot.MouseDown?ue="TouchStart":Ot[A]===Ot.MouseUp&&(ue="TouchEnd"):$t.Pen}else In(O)&&(V=$t.Touch);V!==null?(S=V,(ue.startsWith("Touch")&&V===$t.Touch||ue.startsWith("Mouse")&&V===$t.Mouse)&&(V=null)):Ot[A]===Ot.Click&&(V=S,S=null);const Ee=In(O)?O.changedTouches[0]:O;if(!Ee)return;const me=n.getId($),{clientX:Ce,clientY:Qe}=Ee;Pe(e)({type:Ot[ue],id:me,x:Ce,y:Qe,...V!==null&&{pointerType:V}})};return Object.keys(Ot).filter(A=>Number.isNaN(Number(A))&&!A.endsWith("_Departed")&&h[A]!==!1).forEach(A=>{let O=we(A);const $=L(A);if(window.PointerEvent)switch(Ot[A]){case Ot.MouseDown:case Ot.MouseUp:O=O.replace("mouse","pointer");break;case Ot.TouchStart:case Ot.TouchEnd:return}f.push(St(O,$,t))}),Pe(()=>{f.forEach(A=>A())})}function cn({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:a,sampling:l}){const h=Pe(An(Pe(f=>{const S=qn(f);if(!S||Wt(S,r,o,a,!0))return;const L=n.getId(S);if(S===t&&t.defaultView){const A=hr(t.defaultView);e({id:L,x:A.left,y:A.top})}else e({id:L,x:S.scrollLeft,y:S.scrollTop})}),l.scroll||100));return St("scroll",h,t)}function Sr({viewportResizeCb:e},{win:t}){let n=-1,r=-1;const o=Pe(An(Pe(()=>{const a=_n(),l=yn();(n!==a||r!==l)&&(e({width:Number(l),height:Number(a)}),n=a,r=l)}),200));return St("resize",o,t)}const br=["INPUT","TEXTAREA","SELECT"],Yr=new WeakMap;function bi({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:a,ignoreClass:l,ignoreSelector:h,maskInputOptions:f,maskInputFn:S,sampling:L,userTriggeredOnInput:A,maskTextClass:O,unmaskTextClass:$,maskTextSelector:V,unmaskTextSelector:ue}){function Ee(ie){let Ue=qn(ie);const wt=ie.isTrusted,le=Ue&&Ne(Ue.tagName);if(le==="OPTION"&&(Ue=Ue.parentElement),!Ue||!le||br.indexOf(le)<0||Wt(Ue,r,o,a,!0))return;const Me=Ue;if(Me.classList.contains(l)||h&&Me.matches(h))return;const et=$e(Ue);let yt=st(Me,le,et),vt=!1;const ln=G({maskInputOptions:f,tagName:le,type:et}),Ft=pn(Ue,O,V,$,ue,ln);(et==="radio"||et==="checkbox")&&(vt=Ue.checked),yt=ae({isMasked:Ft,element:Ue,value:yt,maskInputFn:S}),me(Ue,A?{text:yt,isChecked:vt,userTriggered:wt}:{text:yt,isChecked:vt});const Mt=Ue.name;et==="radio"&&Mt&&vt&&t.querySelectorAll('input[type="radio"][name="'.concat(Mt,'"]')).forEac
vendor: 4,993 bytes, line 1
1h(Ae=>{if(Ae!==Ue){const nn=ae({isMasked:Ft,element:Ae,value:st(Ae,le,et),maskInputFn:S});me(Ae,A?{text:nn,isChecked:!vt,userTriggered:!1}:{text:nn,isChecked:!vt})}})}function me(ie,Ue){const wt=Yr.get(ie);if(!wt||wt.text!==Ue.text||wt.isChecked!==Ue.isChecked){Yr.set(ie,Ue);const le=n.getId(ie);Pe(e)({...Ue,id:le})}}const Qe=(L.input==="last"?["change"]:["input","change"]).map(ie=>St(ie,Pe(Ee),t)),je=t.defaultView;if(!je)return()=>{Qe.forEach(ie=>ie())};const ct=je.Object.getOwnPropertyDescriptor(je.HTMLInputElement.prototype,"value"),Oe=[[je.HTMLInputElement.prototype,"value"],[je.HTMLInputElement.prototype,"checked"],[je.HTMLSelectElement.prototype,"value"],[je.HTMLTextAreaElement.prototype,"value"],[je.HTMLSelectElement.prototype,"selectedIndex"],[je.HTMLOptionElement.prototype,"selected"]];return ct&&ct.set&&Qe.push(...Oe.map(ie=>fr(ie[0],ie[1],{set(){Pe(Ee)({target:this,isTrusted:!1})}},!1,je))),Pe(()=>{Qe.forEach(ie=>ie())})}function i(e){const t=[];function n(r,o){if(re("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||re("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||re("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||re("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const l=Array.from(r.parentRule.cssRules).indexOf(r);o.unshift(l)}else if(r.parentStyleSheet){const l=Array.from(r.parentStyleSheet.cssRules).indexOf(r);o.unshift(l)}return o}return n(e,t)}function s(e,t,n){let r,o;return e?(e.ownerNode?r=t.getId(e.ownerNode):o=n.getId(e),{styleId:o,id:r}):{}}function u({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const o=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:Pe((L,A,O)=>{const[$,V]=O,{id:ue,styleId:Ee}=s(A,t,n.styleMirror);return(ue&&ue!==-1||Ee&&Ee!==-1)&&e({id:ue,styleId:Ee,adds:[{rule:$,index:V}]}),L.apply(A,O)})});const a=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:Pe((L,A,O)=>{const[$]=O,{id:V,styleId:ue}=s(A,t,n.styleMirror);return(V&&V!==-1||ue&&ue!==-1)&&e({id:V,styleId:ue,removes:[{index:$}]}),L.apply(A,O)})});let l;r.CSSStyleSheet.prototype.replace&&(l=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(l,{apply:Pe((L,A,O)=>{const[$]=O,{id:V,styleId:ue}=s(A,t,n.styleMirror);return(V&&V!==-1||ue&&ue!==-1)&&e({id:V,styleId:ue,replace:$}),L.apply(A,O)})}));let h;r.CSSStyleSheet.prototype.replaceSync&&(h=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(h,{apply:Pe((L,A,O)=>{const[$]=O,{id:V,styleId:ue}=s(A,t,n.styleMirror);return(V&&V!==-1||ue&&ue!==-1)&&e({id:V,styleId:ue,replaceSync:$}),L.apply(A,O)})}));const f={};v("CSSGroupingRule")?f.CSSGroupingRule=r.CSSGroupingRule:(v("CSSMediaRule")&&(f.CSSMediaRule=r.CSSMediaRule),v("CSSConditionRule")&&(f.CSSConditionRule=r.CSSConditionRule),v("CSSSupportsRule")&&(f.CSSSupportsRule=r.CSSSupportsRule));const S={};return Object.entries(f).forEach(([L,A])=>{S[L]={insertRule:A.prototype.insertRule,deleteRule:A.prototype.deleteRule},A.prototype.insertRule=new Proxy(S[L].insertRule,{apply:Pe((O,$,V)=>{const[ue,Ee]=V,{id:me,styleId:Ce}=s($.parentStyleSheet,t,n.styleMirror);return(me&&me!==-1||Ce&&Ce!==-1)&&e({id:me,styleId:Ce,adds:[{rule:ue,index:[...i($),Ee||0]}]}),O.apply($,V)})}),A.prototype.deleteRule=new Proxy(S[L].deleteRule,{apply:Pe((O,$,V)=>{const[ue]=V,{id:Ee,styleId:me}=s($.parentStyleSheet,t,n.styleMirror);return(Ee&&Ee!==-1||me&&me!==-1)&&e({id:Ee,styleId:me,removes:[{index:[...i($),ue]}]}),O.apply($,V)})})}),Pe(()=>{r.CSSStyleSheet.prototype.insertRule=o,r.CSSStyleSheet.prototype.deleteRule=a,l&&(r.CSSStyleSheet.prototype.replace=l),h&&(r.CSSStyleSheet.prototype.replaceSync=h),Object.entries(f).forEach(([L,A])=>{A.prototype.insertRule=S[L].insertRule,A.prototype.deleteRule=S[L].deleteRule})})}function p({mirror:e,stylesheetManager:t},n){var l,h,f;let r=null;n.nodeName==="#document"?r=e.getId(n):r=e.getId(n.host);const o=n.nodeName==="#document"?(l=n.defaultView)==null?void 0:l.Document:(f=(h=n.ownerDocument)==null?void 0:h.defaultView)==null?void 0:f.ShadowRoot,a=o!=null&&o.prototype?Object.getOwnPropertyDescriptor(o==null?void 0:o.prototype,"adoptedStyleSheets"):void 0;return r===null||r===-1||!o||!a?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){var S;return(S=a.get)==null?void 0:S.call(this)},set(S){var A;const L=(A=a.set)==null?void 0:A.call(this,S);if(r!==null&&r!==-1)try{t.adoptStyleSheets(S,r)}catch(O){}return L}}),Pe(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})}))}function g({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:o}){const a=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:Pe((h,f,S)=>{var ue;const[L,A,O]=S;
vendor: 4,240 bytes, line 1
1if(n.has(L))return a.apply(f,[L,A,O]);const{id:$,styleId:V}=s((ue=f.parentRule)==null?void 0:ue.parentStyleSheet,t,r.styleMirror);return($&&$!==-1||V&&V!==-1)&&e({id:$,styleId:V,set:{property:L,value:A,priority:O},index:i(f.parentRule)}),h.apply(f,S)})});const l=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(l,{apply:Pe((h,f,S)=>{var $;const[L]=S;if(n.has(L))return l.apply(f,[L]);const{id:A,styleId:O}=s(($=f.parentRule)==null?void 0:$.parentStyleSheet,t,r.styleMirror);return(A&&A!==-1||O&&O!==-1)&&e({id:A,styleId:O,remove:{property:L},index:i(f.parentRule)}),h.apply(f,S)})}),Pe(()=>{o.CSSStyleDeclaration.prototype.setProperty=a,o.CSSStyleDeclaration.prototype.removeProperty=l})}function E({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:o,sampling:a,doc:l}){const h=Pe(S=>An(Pe(L=>{const A=qn(L);if(!A||Wt(A,t,n,r,!0))return;const{currentTime:O,volume:$,muted:V,playbackRate:ue}=A;e({type:S,id:o.getId(A),currentTime:O,volume:$,muted:V,playbackRate:ue})}),a.media||500)),f=[St("play",h(Ln.Play),l),St("pause",h(Ln.Pause),l),St("seeked",h(Ln.Seeked),l),St("volumechange",h(Ln.VolumeChange),l),St("ratechange",h(Ln.RateChange),l)];return Pe(()=>{f.forEach(S=>S())})}function j({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],o=new WeakMap,a=n.FontFace;n.FontFace=function(f,S,L){const A=new a(f,S,L);return o.set(A,{family:f,buffer:typeof S!="string",descriptors:L,fontSource:typeof S=="string"?S:JSON.stringify(Array.from(new Uint8Array(S)))}),A};const l=Zn(t.fonts,"add",function(h){return function(f){return er(Pe(()=>{const S=o.get(f);S&&(e(S),o.delete(f))}),0),h.apply(this,[f])}});return r.push(()=>{n.FontFace=a}),r.push(l),Pe(()=>{r.forEach(h=>h())})}function J(e){const{doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:a,selectionCb:l}=e;let h=!0;const f=Pe(()=>{const S=t.getSelection();if(!S||h&&(S!=null&&S.isCollapsed))return;h=S.isCollapsed||!1;const L=[],A=S.rangeCount||0;for(let O=0;O<A;O++){const $=S.getRangeAt(O),{startContainer:V,startOffset:ue,endContainer:Ee,endOffset:me}=$;Wt(V,r,o,a,!0)||Wt(Ee,r,o,a,!0)||L.push({start:n.getId(V),startOffset:ue,end:n.getId(Ee),endOffset:me})}l({ranges:L})});return f(),St("selectionchange",f)}function ce({doc:e,customElementCb:t}){const n=e.defaultView;return!n||!n.customElements?()=>{}:Zn(n.customElements,"define",function(o){return function(a,l,h){try{t({define:{name:a}})}catch(f){}return o.apply(this,[a,l,h])}})}function Y(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=Vr(e,e.doc));const o=yi(e),a=Si(e),l=cn(e),h=Sr(e,{win:n}),f=bi(e),S=E(e);let L=()=>{},A=()=>{},O=()=>{},$=()=>{};e.recordDOM&&(L=u(e,{win:n}),A=p(e,e.doc),O=g(e,{win:n}),e.collectFonts&&($=j(e)));const V=J(e),ue=ce(e),Ee=[];for(const me of e.plugins)Ee.push(me.observer(me.callback,n,me.options));return Pe(()=>{On.forEach(me=>me.reset()),r==null||r.disconnect(),o(),a(),l(),h(),f(),S(),L(),A(),O(),$(),V(),ue(),Ee.forEach(me=>me())})}function re(e){return typeof window[e]<"u"}function v(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class ve{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,n,r,o){const a=r||this.getIdToRemoteIdMap(t),l=o||this.getRemoteIdToIdMap(t);let h=a.get(n);return h||(h=this.generateIdFn(),a.set(n,h),l.set(h,n)),h}getIds(t,n){const r=this.getIdToRemoteIdMap(t),o=this.getRemoteIdToIdMap(t);return n.map(a=>this.getId(t,a,r,o))}getRemoteId(t,n,r){const o=r||this.getRemoteIdToIdMap(t);if(typeof n!="number")return n;const a=o.get(n);return a||-1}getRemoteIds(t,n){const r=this.getRemoteIdToIdMap(t);return n.map(o=>this.getRemoteId(t,o,r))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let n=this.iframeIdToRemoteIdMap.get(t);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(t,n)),n}getRemoteIdToIdMap(t){let n=this.iframeRemoteIdToIdMap.get(t);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(t,n)),n}}
1class te{constructor(){this.crossOriginIframeMirror=new ve(Re),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class be{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new ve(Re),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new ve(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0);const n=Rn(t);n&&this.crossOriginIframeMap.set(n,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,n){var o,a;this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((o=Rn(t))==null||o.addEventListener("message",this.handleMessage.bind(this))),(a=this.loadListener)==null||a.call(this,t);const r=gn(t);r&&r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,this.mirror.getId(r))}handleMessage(t){const n=t;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!t.source)return;const o=this.crossOriginIframeMap.get(t.source);if(!o)return;const a=this.transformCrossOriginEvent(o,n.data.event);a&&this.wrappedEmit(a,n.data.isCheckout)}transformCrossOriginEvent(t,n){var r;switch(n.type){case ke.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t);const o=n.data.node.id;return this.crossOriginIframeRootIdMap.set(t,o),this.patchRootIdOnNode(n.data.node,o),{timestamp:n.timestamp,type:ke.IncrementalSnapshot,data:{source:Se.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case ke.Meta:case ke.Load:case ke.DomContentLoaded:return!1;case ke.Plugin:return n;case ke.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case ke.IncrementalSnapshot:switch(n.data.source){case Se.Mutation:return n.data.adds.forEach(o=>{this.replaceIds(o,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(o.node,t);const a=this.crossOriginIframeRootIdMap.get(t);a&&this.patchRootIdOnNode(o.node,a)}),n.data.removes.forEach(o=>{this.replaceIds(o,t,["parentId","id"])}),n.data.attributes.forEach(o=>{this.replaceIds(o,t,["id"])}),n.data.texts.forEach(o=>{this.replaceIds(o,t,["id"])}),n;case Se.Drag:case Se.TouchMove:case Se.MouseMove:return n.data.positions.forEach(o=>{this.replaceIds(o,t,["id"])}),n;case Se.ViewportResize:return!1;case Se.MediaInteraction:case Se.MouseInteraction:case Se.Scroll:case Se.CanvasMutation:case Se.Input:return this.replaceIds(n.data,t,["id"]),n;case Se.StyleSheetRule:case Se.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case Se.Font:return n;case Se.Selection:return n.data.ranges.forEach(o=>{this.replaceIds(o,t,["start","end"])}),n;case Se.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),(r=n.data.styles)==null||r.forEach(o=>{this.replaceStyleIds(o,t,["styleId"])}),n}}return!1}replace(t,n,r,o){for(const a of o)!Array.isArray(n[a])&&typeof n[a]!="number"||(Array.isArray(n[a])?n[a]=t.getIds(r,n[a]):n[a]=t.getId(r,n[a]));return n}replaceIds(t,n,r){return this.replace(this.crossOriginIframeMirror,t,n,r)}replaceStyleIds(t,n,r){return this.replace(this.crossOriginIframeStyleMirror,t,n,r)}replaceIdOnNode(t,n){this.replaceIds(t,n,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(r=>{this.replaceIdOnNode(r,n)})}patchRootIdOnNode(t,n){t.type!==pe.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}}class Fe{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class Be{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,n){if(!it(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t),this.bypassOptions.canvasManager.addShadowRoot(t);const r=Vr({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(cn({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),er(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(p({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){const n=gn(t),r=Rn(t);!n||!r||this.patchAttachShadow(r.Element,n)}patchAttachShadow(t,n){const r=this;this.restoreHandlers.push(Zn(t.prototype,"attachShadow",function(o){return function(a){const l=o.call(this,a);return this.shadowRoot&&Fn(this)&&r.addShadowRoot(this.shadowRoot,n),l}}))}
1reset(){this.restoreHandlers.forEach(t=>{try{t()}catch(n){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}for(var Ie="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",We=typeof Uint8Array>"u"?[]:new Uint8Array(256),gt=0;gt<Ie.length;gt++)We[Ie.charCodeAt(gt)]=gt;class nt{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class Xt{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new di,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,n){if(t.length===0)return;const r={id:n,styleIds:[]},o=[];for(const a of t){let l;this.styleMirror.has(a)?l=this.styleMirror.getId(a):(l=this.styleMirror.add(a),o.push({styleId:l,rules:Array.from(a.rules||CSSRule,(h,f)=>({rule:At(h),index:f}))})),r.styleIds.push(l)}o.length>0&&(r.styles=o),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class Vt{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(t,n){const r=this.nodeMap.get(t);return r&&Array.from(r).some(o=>o!==n)}add(t,n){this.active||(this.active=!0,Hr(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}destroy(){}}let De,Dt;try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=((cs=e.contentWindow)==null?void 0:cs.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const Ve=K();function at(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:o="rr-block",blockSelector:a=null,unblockSelector:l=null,ignoreClass:h="rr-ignore",ignoreSelector:f=null,maskAllText:S=!1,maskTextClass:L="rr-mask",unmaskTextClass:A=null,maskTextSelector:O=null,unmaskTextSelector:$=null,inlineStylesheet:V=!0,maskAllInputs:ue,maskInputOptions:Ee,slimDOMOptions:me,maskAttributeFn:Ce,maskInputFn:Qe,maskTextFn:je,maxCanvasSize:ct=null,packFn:Oe,sampling:ie={},dataURLOptions:Ue={},mousemoveWait:wt,recordDOM:le=!0,recordCanvas:Me=!1,recordCrossOriginIframes:et=!1,recordAfter:yt=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:vt=!1,collectFonts:ln=!1,inlineImages:Ft=!1,plugins:Mt,keepIframeSrcFn:Ae=()=>!1,ignoreCSSAttributes:nn=new Set([]),errorHandler:ft,onMutation:En,getCanvasManager:wn}=e;gi(ft);const dn=et?window.parent===window:!0;let Tr=!1;if(!dn)try{window.parent.document&&(Tr=!1)}catch(Ye){Tr=!0}if(dn&&!t)throw new Error("emit function is required");if(!dn&&!Tr)return()=>{};wt!==void 0&&ie.mousemove===void 0&&(ie.mousemove=wt),Ve.reset();const Ui=ue===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:Ee!==void 0?Ee:{},qi=me===!0||me==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:me==="all",headMetaDescKeywords:me==="all"}:me||{};Nn();let zi,ji=0;const us=Ye=>{for(const fn of Mt||[])fn.eventProcessor&&(Ye=fn.eventProcessor(Ye));return Oe&&!Tr&&(Ye=Oe(Ye)),Ye};De=(Ye,fn)=>{var Yt;const qe=Ye;if(qe.timestamp=Bn(),(Yt=On[0])!=null&&Yt.isFrozen()&&qe.type!==ke.FullSnapshot&&!(qe.type===ke.IncrementalSnapshot&&qe.data.source===Se.Mutation)&&On.forEach(jt=>jt.unfreeze()),dn)t==null||t(us(qe),fn);else if(Tr){const jt={type:"rrweb",event:us(qe),origin:window.location.origin,isCheckout:fn};window.parent.postMessage(jt,"*")}if(qe.type===ke.FullSnapshot)zi=qe,ji=0;else if(qe.type===ke.IncrementalSnapshot){if(qe.data.source===Se.Mutation&&qe.data.isAttachIframe)return;ji++;const jt=r&&ji>=r,Je=n&&zi&&qe.timestamp-zi.timestamp>n;(jt||Je)&&Yi(!0)}};const Ir=Ye=>{De({type:ke.IncrementalSnapshot,data:{source:Se.Mutation,...Ye}})},ls=Ye=>De({type:ke.IncrementalSnapshot,data:{source:Se.Scroll,...Ye}}),Yc=Ye=>De({type:ke.IncrementalSnapshot,data:{source:Se.CanvasMutation,...Ye}}),$c=Ye=>De({type:ke.IncrementalSnapshot,data:{source:Se.AdoptedStyleSheet,...Ye}}),Vn=new Xt({mutationCb:Ir,adoptedStyleSheetCb:$c}),Yn=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new te:new be({mirror:Ve,mutationCb:Ir,stylesheetManager:Vn,recordCrossOriginIframes:et,wrappedEmit:De});for(const Ye of Mt||[])Ye.getMirror&&Ye.getMirror({nodeMirror:Ve,crossOriginIframeMirror:Yn.crossOriginIframeMirror,crossOriginIframeStyleMirror:Yn.crossOriginIframeStyleMirror});const Gi=new Vt,Vi=Le(wn,{mirror:Ve,win:window,mutationCb:Ye=>De({type:ke.IncrementalSnapshot,data:{source:Se.CanvasMutation,...Ye}}),recordCanvas:Me,blockClass:o,blockSelector:a,unblockSelector:l,maxCanvasSize:ct,sampling:ie.canvas,dataURLOptions:Ue,errorHandler:ft}),ri=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new Fe:new Be({mutationCb:Ir,scrollCb:ls,bypassOptions:{onMutation:En,blockClass:o,blockSelector:a,unblockSelector:l,maskAllText:S,maskTextClass:L,unmaskTextClass:A,maskTextSelector:O,unmaskTextSelector:$,inlineStylesheet:V,maskInputOptions:Ui,dataURLOptions:Ue,maskAttributeFn:Ce,maskTextFn:je,maskInputFn:Qe,recordCanvas:Me,inlineImages:Ft,sampling:ie,slimDOMOptions:qi,iframeManager:Yn,stylesheetManager:Vn,canvasManager:Vi,keepIframeSrcFn:Ae,processedNodeManager:Gi,ignoreCSSAttributes:nn},mirror:Ve}),Yi=(Ye=!1)=>
1{if(!le)return;De({type:ke.Meta,data:{href:window.location.href,width:yn(),height:_n()}},Ye),Vn.reset(),ri.init(),On.forEach(qe=>qe.lock());const fn=Or(document,{mirror:Ve,blockClass:o,blockSelector:a,unblockSelector:l,maskAllText:S,maskTextClass:L,unmaskTextClass:A,maskTextSelector:O,unmaskTextSelector:$,inlineStylesheet:V,maskAllInputs:Ui,maskAttributeFn:Ce,maskInputFn:Qe,maskTextFn:je,slimDOM:qi,dataURLOptions:Ue,recordCanvas:Me,inlineImages:Ft,onSerialize:qe=>{Pr(qe,Ve)&&Yn.addIframe(qe),Br(qe,Ve)&&Vn.trackLinkElement(qe),gr(qe)&&ri.addShadowRoot(qe.shadowRoot,document)},onIframeLoad:(qe,Yt)=>{Yn.attachIframe(qe,Yt);const jt=Rn(qe);jt&&Vi.addWindow(jt),ri.observeAttachShadow(qe)},onStylesheetLoad:(qe,Yt)=>{Vn.attachLinkElement(qe,Yt)},onBlockedImageLoad:(qe,Yt,{width:jt,height:Je})=>{Ir({adds:[],removes:[],texts:[],attributes:[{id:Yt.id,attributes:{style:{width:"".concat(jt,"px"),height:"".concat(Je,"px")}}}]})},keepIframeSrcFn:Ae,ignoreCSSAttributes:nn});if(!fn)return console.warn("Failed to snapshot the document");De({type:ke.FullSnapshot,data:{node:fn,initialOffset:hr(window)}}),On.forEach(qe=>qe.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Vn.adoptStyleSheets(document.adoptedStyleSheets,Ve.getId(document))};Dt=Yi;try{const Ye=[],fn=Yt=>{var jt;return Pe(Y)({onMutation:En,mutationCb:Ir,mousemoveCb:(Je,$i)=>De({type:ke.IncrementalSnapshot,data:{source:$i,positions:Je}}),mouseInteractionCb:Je=>De({type:ke.IncrementalSnapshot,data:{source:Se.MouseInteraction,...Je}}),scrollCb:ls,viewportResizeCb:Je=>De({type:ke.IncrementalSnapshot,data:{source:Se.ViewportResize,...Je}}),inputCb:Je=>De({type:ke.IncrementalSnapshot,data:{source:Se.Input,...Je}}),mediaInteractionCb:Je=>De({type:ke.IncrementalSnapshot,data:{source:Se.MediaInteraction,...Je}}),styleSheetRuleCb:Je=>De({type:ke.IncrementalSnapshot,data:{source:Se.StyleSheetRule,...Je}}),styleDeclarationCb:Je=>De({type:ke.IncrementalSnapshot,data:{source:Se.StyleDeclaration,...Je}}),canvasMutationCb:Yc,fontCb:Je=>De({type:ke.IncrementalSnapshot,data:{source:Se.Font,...Je}}),selectionCb:Je=>{De({type:ke.IncrementalSnapshot,data:{source:Se.Selection,...Je}})},customElementCb:Je=>{De({type:ke.IncrementalSnapshot,data:{source:Se.CustomElement,...Je}})},blockClass:o,ignoreClass:h,ignoreSelector:f,maskAllText:S,maskTextClass:L,unmaskTextClass:A,maskTextSelector:O,unmaskTextSelector:$,maskInputOptions:Ui,inlineStylesheet:V,sampling:ie,recordDOM:le,recordCanvas:Me,inlineImages:Ft,userTriggeredOnInput:vt,collectFonts:ln,doc:Yt,maskAttributeFn:Ce,maskInputFn:Qe,maskTextFn:je,keepIframeSrcFn:Ae,blockSelector:a,unblockSelector:l,slimDOMOptions:qi,dataURLOptions:Ue,mirror:Ve,iframeManager:Yn,stylesheetManager:Vn,shadowDomManager:ri,processedNodeManager:Gi,canvasManager:Vi,ignoreCSSAttributes:nn,plugins:((jt=Mt==null?void 0:Mt.filter(Je=>Je.observer))==null?void 0:jt.map(Je=>({observer:Je.observer,options:Je.options,callback:$i=>De({type:ke.Plugin,data:{plugin:Je.name,payload:$i}})})))||[]},{})};Yn.addLoadListener(Yt=>{try{Ye.push(fn(Yt.contentDocument))}catch(jt){console.warn(jt)}});const qe=()=>{Yi(),Ye.push(fn(document))};return document.readyState==="interactive"||document.readyState==="complete"?qe():(Ye.push(St("DOMContentLoaded",()=>{De({type:ke.DomContentLoaded,data:{}}),yt==="DOMContentLoaded"&&qe()})),Ye.push(St("load",()=>{De({type:ke.Load,data:{}}),yt==="load"&&qe()},window))),()=>{Ye.forEach(Yt=>Yt()),Gi.destroy(),Dt=void 0,_i()}}catch(Ye){console.warn(Ye)}}function Sn(e){if(!Dt)throw new Error("please take full snapshot after start recording");Dt(e)}at.mirror=Ve,at.takeFullSnapshot=Sn;function Le(e,t){try{return e?e(t):new nt}catch(n){return console.warn("Unable to initialize CanvasManager"),new nt}}var ze;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(ze||(ze={}));const kt=3,Bt=5;function un(e){return e>9999999999?e:e*1e3}function bn(e){return e>9999999999?e/1e3:e}function Et(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>
1(e.throttledAddEvent({type:ke.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:c.normalize(t,10,1e3)}}),t.category==="console")))}const Ht="button,a";function _t(e){return e.closest(Ht)||e}function Ut(e){const t=zn(e);return!t||!(t instanceof Element)?t:_t(t)}function zn(e){return vn(e)?e.target:e}function vn(e){return typeof e=="object"&&!!e&&"target"in e}let xt;function tr(e){return xt||(xt=[],vi()),xt.push(e),()=>{const t=xt?xt.indexOf(e):-1;t>-1&&xt.splice(t,1)}}function vi(){c.fill(m,"open",function(e){return function(...t){if(xt)try{xt.forEach(n=>n())}catch(n){}return e.apply(m,t)}})}const Ei=new Set([Se.Mutation,Se.StyleSheetRule,Se.StyleDeclaration,Se.AdoptedStyleSheet,Se.CanvasMutation,Se.Selection,Se.MediaInteraction]);function wi(e,t,n){e.handleClick(t,n)}class Ti{constructor(t,n,r=Et){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scrollTimeout=n.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){const t=tr(()=>{this._lastMutation=Kt()});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,n){if(Ci(n,this._ignoreSelector)||!Cn(t))return;const r={timestamp:bn(t.timestamp),clickBreadcrumb:t,clickCount:0,node:n};this._clicks.some(o=>o.node===r.node&&Math.abs(o.timestamp-r.timestamp)<1)||(this._clicks.push(r),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=bn(t)}registerScroll(t=Date.now()){this._lastScroll=bn(t)}registerClick(t){const n=_t(t);this._handleMultiClick(n)}_handleMultiClick(t){this._getClicks(t).forEach(n=>{n.clickCount++})}_getClicks(t){return this._clicks.filter(n=>n.node===t)}_checkClicks(){const t=[],n=Kt();this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=n&&t.push(r)});for(const r of t){const o=this._clicks.indexOf(r);o>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(o,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const n=this._replay,r=t.scrollAfter&&t.scrollAfter<=this._scrollTimeout,o=t.mutationAfter&&t.mutationAfter<=this._threshold,a=!r&&!o,{clickCount:l,clickBreadcrumb:h}=t;if(a){const f=Math.min(t.mutationAfter||this._timeout,this._timeout)*1e3,S=f<this._timeout*1e3?"mutation":"timeout",L={type:"default",message:h.message,timestamp:h.timestamp,category:"ui.slowClickDetected",data:{...h.data,url:m.location.href,route:n.getCurrentRoute(),timeAfterClickMs:f,endReason:S,clickCount:l||1}};this._addBreadcrumbEvent(n,L);return}if(l>1){const f={type:"default",message:h.message,timestamp:h.timestamp,category:"ui.multiClick",data:{...h.data,url:m.location.href,route:n.getCurrentRoute(),clickCount:l,metric:!0}};this._addBreadcrumbEvent(n,f)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=C.setTimeout(()=>this._checkClicks(),1e3)}}const Ii=["A","BUTTON","INPUT"];function Ci(e,t){return!!(!Ii.includes(e.tagName)||e.tagName==="INPUT"&&!["submit","button"].includes(e.getAttribute("type")||"")||e.tagName==="A"&&(e.hasAttribute("download")||e.hasAttribute("target")&&e.getAttribute("target")!=="_self")||t&&e.matches(t))}function Cn(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function Kt(){return Date.now()/1e3}function Dn(e,t){try{if(!jn(t))return;const{source:n}=t.data;if(Ei.has(n)&&e.registerMutation(t.timestamp),n===Se.Scroll&&e.registerScroll(t.timestamp),$r(t)){const{type:r,id:o}=t.data,a=at.mirror.getNode(o);a instanceof HTMLElement&&r===Ot.Click&&e.registerClick(a)}}catch(n){}}function jn(e){return e.type===kt}function $r(e){return e.data.source===Se.MouseInteraction}function Jt(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Gn=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(Gn||{});const vr=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function He(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(vr.has(n)){let r=n;(n==="data-testid"||n==="data-test-id")&&(r="testId"),t[r]=e[n]}return t}const dt=e=>t=>{if(!e.isEnabled())return;const n=qt(t);if(!n)return;const r=t.name==="click",o=r?t.event:void 0;r&&e.clickDetector&&(o!=null&&o.target)&&!o.altKey&&!o.metaKey&&!o.ctrlKey&&!o.shift
1Key&&wi(e.clickDetector,n,Ut(t.event)),Et(e,n)};function Zt(e,t){const n=at.mirror.getId(e),r=n&&at.mirror.getNode(n),o=r&&at.mirror.getMeta(r),a=o&&nr(o)?o:null;return{message:t,data:a?{nodeId:n,node:{id:n,tagName:a.tagName,textContent:Array.from(a.childNodes).map(l=>l.type===Gn.Text&&l.textContent).filter(Boolean).map(l=>l.trim()).join(""),attributes:He(a.attributes)}}:{}}}function qt(e){const{target:t,message:n}=zt(e);return Jt({category:"ui.".concat(e.name),...Zt(t,n)})}function zt(e){const t=e.name==="click";let n,r=null;try{r=t?Ut(e.event):zn(e.event),n=c.htmlTreeAsString(r,{maxStringLength:200})||"<unknown>"}catch(o){n="<unknown>"}return{target:r,message:n}}function nr(e){return e.type===Gn.Element}function Qt(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=bt(t);n&&Et(e,n)}function bt(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:a,target:l}=e;if(!l||ki(l)||!a)return null;const h=t||r||o,f=a.length===1;if(!h&&f)return null;const S=c.htmlTreeAsString(l,{maxStringLength:200})||"<unknown>",L=Zt(l,S);return Jt({category:"ui.keyDown",message:S,data:{...L.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:a}})}function ki(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}const ia={resource:ua,paint:aa,navigation:ca};function Mi(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}function oa(e){return e.map(sa).filter(Boolean)}function sa(e){const t=ia[e.entryType];return t?t(e):null}function rr(e){return((c.browserPerformanceTimeOrigin()||m.performance.timeOrigin)+e)/1e3}function aa(e){const{duration:t,entryType:n,name:r,startTime:o}=e,a=rr(o);return{type:n,name:r,start:a,end:a+t,data:void 0}}function ca(e){const{entryType:t,name:n,decodedBodySize:r,duration:o,domComplete:a,encodedBodySize:l,domContentLoadedEventStart:h,domContentLoadedEventEnd:f,domInteractive:S,loadEventStart:L,loadEventEnd:A,redirectCount:O,startTime:$,transferSize:V,type:ue}=e;return o===0?null:{type:"".concat(t,".").concat(ue),start:rr($),end:rr(a),name:n,data:{size:V,decodedBodySize:r,encodedBodySize:l,duration:o,domInteractive:S,domContentLoadedEventStart:h,domContentLoadedEventEnd:f,loadEventStart:L,loadEventEnd:A,domComplete:a,redirectCount:O}}}function ua(e){const{entryType:t,initiatorType:n,name:r,responseEnd:o,startTime:a,decodedBodySize:l,encodedBodySize:h,responseStatus:f,transferSize:S}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:"".concat(t,".").concat(n),start:rr(a),end:rr(o),name:r,data:{size:S,statusCode:f,decodedBodySize:l,encodedBodySize:h}}}function la(e){const t=e.entries[e.entries.length-1],n=t!=null&&t.element?[t.element]:void 0;return Ri(e,"largest-contentful-paint",n)}function da(e){return e.sources!==void 0}function fa(e){const t=[],n=[];for(const r of e.entries)if(da(r)){const o=[];for(const a of r.sources)if(a.node){n.push(a.node);const l=at.mirror.getId(a.node);l&&o.push(l)}t.push({value:r.value,nodeIds:o.length?o:void 0})}return Ri(e,"cumulative-layout-shift",n,t)}function ha(e){const t=e.entries[e.entries.length-1],n=t!=null&&t.target?[t.target]:void 0;return Ri(e,"interaction-to-next-paint",n)}function Ri(e,t,n,r){const o=e.value,a=e.rating,l=rr(o);return{type:"web-vital",name:t,start:l,end:l,data:{value:o,size:o,rating:a,nodeIds:n?n.map(h=>at.mirror.getId(h)):void 0,attributions:r}}}function pa(e){function t(o){e.performanceEntries.includes(o)||e.performanceEntries.push(o)}function n({entries:o}){o.forEach(t)}const r=[];return["navigation","paint","resource"].forEach(o=>{r.push(C.addPerformanceInstrumentationHandler(o,n))}),r.push(C.addLcpInstrumentationHandler(Mi(la,e)),C.addClsInstrumentationHandler(Mi(fa,e)),C.addInpInstrumentationHandler(Mi(ha,e))),()=>{r.forEach(o=>o())}}const ge=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,ma='
vendor: 10,329 bytes, line 1
1var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});
1';function ga(){const e=new Blob([ma]);return URL.createObjectURL(e)}const Ho=["log","warn","error"],Xr="[Replay] ";function Ai(e,t="info"){c.addBreadcrumb({category:"console",data:{logger:"replay"},level:t,message:"".concat(Xr).concat(e)},{level:t})}function _a(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:r=>{e=!!r.captureExceptions,t=!!r.traceInternals}};return ge?(Ho.forEach(r=>{n[r]=(...o)=>{c.debug[r](Xr,...o),t&&Ai(o.join(""),c.severityLevelFromString(r))}}),n.exception=(r,...o)=>{o.length&&n.error&&n.error(...o),c.debug.error(Xr,r),e?c.captureException(r,{mechanism:{handled:!0,type:"auto.function.replay.debug"}}):t&&Ai(r,"error")},n.infoTick=(...r)=>{c.debug.log(Xr,...r),t&&setTimeout(()=>Ai(r[0]),0)}):Ho.forEach(r=>{n[r]=()=>{}}),n}const _e=_a();class Ni extends Error{constructor(){super("Event buffer exceeded maximum size of ".concat(oe,"."))}}class Uo{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){const n=JSON.stringify(t).length;if(this._totalSize+=n,this._totalSize>oe)throw new Ni;this.events.push(t)}finish(){return new Promise(t=>{const n=this.events;this.clear(),t(JSON.stringify(n))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let t=null;for(const{timestamp:n}of this.events)(t===null||n<t)&&(t=n);return t===null?t:un(t)}}class Li{constructor(t){Li.prototype.__init.call(this),this._worker=t,this._id=0,this._pending=new Map,this._worker.addEventListener("message",this._onMessage)}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((t,n)=>{this._worker.addEventListener("message",({data:r})=>{r.success?t():(ge&&_e.warn("Received worker message with unsuccessful status",r),n(new Error("Received worker message with unsuccessful status")))},{once:!0}),this._worker.addEventListener("error",r=>{ge&&_e.warn("Failed to load Replay compression worker",r),n(new Error("Failed to load Replay compression worker: ".concat(r instanceof ErrorEvent&&r.message?r.message:"Unknown error. This can happen due to CSP policy restrictions, network issues, or the worker script failing to load.")))},{once:!0})}),this._ensureReadyPromise)}destroy(){ge&&_e.log("Destroying compression worker"),this._worker.removeEventListener("message",this._onMessage),this._pending.forEach(t=>t.reject(new Error("Worker destroyed"))),this._pending.clear(),this._worker.terminate()}postMessage(t,n){const r=this._getAndIncrementId();return new Promise((o,a)=>{this._pending.set(r,{method:t,resolve:o,reject:a});try{this._worker.postMessage({id:r,method:t,arg:n})}catch(l){this._pending.delete(r),a(l)}})}__init(){this._onMessage=({data:t})=>{const n=t;if(typeof n.id!="number")return;const r=this._pending.get(n.id);if(!(!r||r.method!==n.method)){if(this._pending.delete(n.id),!n.success){ge&&_e.error("Error in compression worker: ",n.response),r.reject(new Error("Error in compression worker"));return}r.resolve(n.response)}}}_getAndIncrementId(){return this._id++}}class ya{constructor(t){this._worker=new Li(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){const n=un(t.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);const r=JSON.stringify(t);return this._totalSize+=r.length,this._totalSize>oe?Promise.reject(new Ni):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,t=>{ge&&_e.exception(t,'Sending "clear" message to worker failed',t)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}}class Sa{constructor(t){this._fallback=new Uo,this._compression=new ya(t),this._used=this._fallback,this._ensureWorkerIsLoadedProm
1ise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(t){this._used.hasCheckout=t}set waitForCheckout(t){this._used.waitForCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){ge&&_e.exception(t,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t,hasCheckout:n,waitForCheckout:r}=this._fallback,o=[];for(const a of t)o.push(this._compression.addEvent(a));this._compression.hasCheckout=n,this._compression.waitForCheckout=r,this._used=this._compression;try{await Promise.all(o),this._fallback.clear()}catch(a){ge&&_e.exception(a,"Failed to add events when switching buffers.")}}}function ba({useCompression:e,workerUrl:t}){if(e&&window.Worker){const n=va(t);if(n)return n}return ge&&_e.log("Using simple buffer"),new Uo}function va(e){try{const t=e||Ea();if(!t)return;ge&&_e.log("Using compression worker".concat(e?" from ".concat(e):""));const n=new Worker(t);return new Sa(n)}catch(t){ge&&_e.exception(t,"Failed to create compression worker")}}function Ea(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?ga():""}function Oi(){try{return"sessionStorage"in m&&!!m.sessionStorage}catch(e){return!1}}function wa(e){Ta(),e.session=void 0}function Ta(){if(Oi())try{m.sessionStorage.removeItem(k)}catch(e){}}function qo(e){return e===void 0?!1:Math.random()<e}function Kr(e){if(Oi())try{m.sessionStorage.setItem(k,JSON.stringify(e))}catch(t){}}function zo(e){const t=Date.now(),n=e.id||c.uuid4(),r=e.started||t,o=e.lastActivity||t,a=e.segmentId||0,l=e.sampled,h=e.previousSessionId,f=e.dirty||!1;return{id:n,started:r,lastActivity:o,segmentId:a,sampled:l,previousSessionId:h,dirty:f}}function Ia(e,t){return qo(e)?"session":t?"buffer":!1}function jo({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const o=Ia(e,t),a=zo({sampled:o,previousSessionId:r});return n&&Kr(a),a}function Ca(){if(!Oi())return null;try{const e=m.sessionStorage.getItem(k);if(!e)return null;const t=JSON.parse(e);return ge&&_e.infoTick("Loading existing session"),zo(t)}catch(e){return null}}function Di(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function ka(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return Di(e.started,t,r)||Di(e.lastActivity,n,r)}function Jr(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!ka(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled==="buffer"&&e.segmentId===0)}function xi({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){const o=r.stickySession&&Ca();return o?Jr(o,{sessionIdleExpire:e,maxReplayDuration:t})?(ge&&_e.infoTick("Session in sessionStorage is expired, creating new one..."),jo(r,{previousSessionId:o.id})):o:(ge&&_e.infoTick("Creating new session"),jo(r,{previousSessionId:n}))}function Ma(e){return e.type===ke.Custom}function Pi(e,t,n){return Vo(e,t)?(Go(e,t,n),!0):!1}function Ra(e,t,n){return Vo(e,t)?Go(e,t,n):Promise.resolve(null)}async function Go(e,t,n){const{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;const o=e.recordingMode==="buffer";try{n&&o&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const a=e.getOptions(),l=Aa(t,a.beforeAddRecordingEvent);return l?await r.addEvent(l):void 0}catch(a){const l=a&&a instanceof Ni,h=l?"eventBufferOverflow":"eventBufferError",f=c.getClient();if(f){const S=l?"buffer_overflow":"internal_sdk_error";f.recordDroppedEvent(S,"replay")}if(l&&o)return r.clear(),r.waitForCheckout=!0,null;e.handleException(a),await e.stop({reason:h})}}
1function Vo(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=un(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(ge&&_e.infoTick("Skipping event with timestamp ".concat(n," because it is after maxReplayDuration")),!1):!0}function Aa(e,t){try{if(typeof t=="function"&&Ma(e))return t(e)}catch(n){return ge&&_e.exception(n,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function Bi(e){return!e.type}function Fi(e){return e.type==="transaction"}function Na(e){return e.type==="replay_event"}function Yo(e){return e.type==="feedback"}function La(e){return(t,n)=>{if(!e.isEnabled()||!Bi(t)&&!Fi(t))return;const r=n.statusCode;if(!(!r||r<200||r>=300)){if(Fi(t)){Oa(e,t);return}Da(e,t)}}}function Oa(e,t){var r,o;const n=e.getContext();(o=(r=t.contexts)==null?void 0:r.trace)!=null&&o.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function Da(e,t){var o;const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),e.recordingMode!=="buffer"||!((o=t.tags)!=null&&o.replayId))return;const{beforeErrorSampling:r}=e.getOptions();typeof r=="function"&&!r(t)||C.setTimeout(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(a){e.handleException(a)}})}function xa(e){return t=>{!e.isEnabled()||!Bi(t)||Pa(e,t)}}function Pa(e,t){var r,o,a;const n=(a=(o=(r=t.exception)==null?void 0:r.values)==null?void 0:o[0])==null?void 0:a.value;if(typeof n=="string"&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){const l=Jt({category:"replay.hydrate-error",data:{url:c.getLocationHref()}});Et(e,l)}}function Ba(e){const t=c.getClient();t&&t.on("beforeAddBreadcrumb",n=>Fa(e,n))}function Fa(e,t){if(!e.isEnabled()||!$o(t))return;const n=Wa(t);n&&Et(e,n)}function Wa(e){return!$o(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:e.category==="console"?Ha(e):Jt(e)}function Ha(e){var o;const t=(o=e.data)==null?void 0:o.arguments;if(!Array.isArray(t)||t.length===0)return Jt(e);let n=!1;const r=t.map(a=>{if(!a)return a;if(typeof a=="string")return a.length>D?(n=!0,"".concat(a.slice(0,D),"…")):a;if(typeof a=="object")try{const l=c.normalize(a,7);return JSON.stringify(l).length>D?(n=!0,"".concat(JSON.stringify(l,null,2).slice(0,D),"…")):l}catch(l){}return a});return Jt({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function $o(e){return!!e.category}function Ua(e,t){var n,r,o;return e.type||!((r=(n=e.exception)==null?void 0:n.values)!=null&&r.length)?!1:!!((o=t.originalException)!=null&&o.__rrweb__)}function Zr(){const e=c.getCurrentScope().getPropagationContext().dsc;e&&delete e.replay_id;const t=c.getActiveSpan();if(t){const n=c.getDynamicSamplingContextFromSpan(t);delete n.replay_id}}function qa(e){const t=c.getCurrentScope().getPropagationContext().dsc;t&&(t.replay_id=e);const n=c.getActiveSpan();if(n){const r=c.getDynamicSamplingContextFromSpan(n);r.replay_id=e}}function za(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:ke.Custom,timestamp:t.timestamp*1e3,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1):!0)}function ja(e,t){return e.recordingMode!=="buffer"||t.message===x||!t.exception||t.type?!1:qo(e.getOptions().errorSampleRate)}function Ga(e){return Object.assign((t,n)=>{var l;if(e.session&&Jr(e.session,{maxReplayDuration:e.getOptions().maxReplayDuration,sessionIdleExpire:e.timeouts.sessionIdleExpire})&&Zr(),!e.isEnabled()||e.isPaused())return t;if(Na(t))return delete t.breadcrumbs,t;if(!Bi(t)&&!Fi(t)&&!Yo(t))return t;if(!e.checkAndHandleExpiredSession())return Zr(),t;if(Yo(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),za(e,t),t;if(Ua(t,n)&&!e.getOptions()._experiments.captureExceptions)return ge&&_e.log("Ignoring error from rrweb internals",t),null;const o=ja(e,t);if((o||e.recordingMode==="session")&&(t.tags={...t.tags,replayId:e.getSessionId()}
1),o&&e.recordingMode==="buffer"&&((l=e.session)==null?void 0:l.sampled)==="buffer"){const h=e.session;h.dirty=!0,e.getOptions().stickySession&&Kr(h)}return t},{id:"Replay"})}function Qr(e,t){return t.map(({type:n,start:r,end:o,name:a,data:l})=>{const h=e.throttledAddEvent({type:ke.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:a,startTimestamp:r,endTimestamp:o,data:l}}});return typeof h=="string"?Promise.resolve(null):h})}function Va(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}function Ya(e){return t=>{if(!e.isEnabled())return;const n=Va(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(Qr(e,[n]),!1)))}}function $a(e,t){return ge&&e.getOptions()._experiments.traceInternals?!1:c.isSentryRequestUrl(t,c.getClient())}function Xo(e,t){e.isEnabled()&&t!==null&&($a(e,t.name)||e.addUpdate(()=>(Qr(e,[t]),!0)))}function ei(e){if(!e)return;const t=new TextEncoder;try{if(typeof e=="string")return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=C.serializeFormData(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch(n){}}function Ko(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function ti(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function Jo(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:o,method:a,statusCode:l,request:h,response:f}=t;return{type:e,start:n/1e3,end:r/1e3,name:o,data:{method:a,statusCode:l,request:h,response:f}}}function Er(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function xn(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:o,warnings:a}=Xa(n);return r.body=o,a!=null&&a.length&&(r._meta={warnings:a}),r}function Wi(e,t){return Object.entries(e).reduce((n,[r,o])=>{const a=r.toLowerCase();return t.includes(a)&&e[r]&&(n[a]=o),n},{})}function Xa(e){if(!e||typeof e!="string")return{body:e};const t=e.length>H,n=Ka(e);if(t){const r=e.slice(0,H);return n?{body:r,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:"".concat(r,"…"),warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch(r){}return{body:e}}function Ka(e){const t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function ni(e,t){const n=Ja(e);return c.stringMatchesSomePattern(n,t)}function Ja(e,t=m.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(m.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function Za(e,t,n){try{const r=await ec(e,t,n),o=Jo("resource.fetch",r);Xo(n.replay,o)}catch(r){ge&&_e.exception(r,"Failed to capture fetch breadcrumb")}}function Qa(e,t){const{input:n,response:r}=t,o=n?C.getFetchRequestArgBody(n):void 0,a=ei(o),l=r?Ko(r.headers.get("content-length")):void 0;a!==void 0&&(e.data.request_body_size=a),l!==void 0&&(e.data.response_body_size=l)}async function ec(e,t,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:a=r}=t,{url:l,method:h,status_code:f=0,request_body_size:S,response_body_size:L}=e.data,A=ni(l,n.networkDetailAllowUrls)&&!ni(l,n.networkDetailDenyUrls),O=A?tc(n,t.input,S):Er(S),$=await nc(A,n,t.response,L);return{startTimestamp:o,endTimestamp:a,url:l,method:h,statusCode:f,request:O,response:$}}function tc({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const o=n?oc(n,t):{};if(!e)return xn(o,r,void 0);const a=C.getFetchRequestArgBody(n),[l,h]=C.getBodyString(a,_e),f=xn(o,r,l);return h?ti(f,h):f}async function nc(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,o){if(!e&&o!==void 0)return Er(o);const a=r?Zo(r.headers,n):{};if(!r||!t&&o!==void 0)return xn(a,o,void 0);const[l,h]=await ic(r),f=rc(l,{networkCaptureBodies:t,responseBodySize:o,captureDetails:e,headers:a});
1return h?ti(f,h):f}function rc(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:o}){try{const a=e!=null&&e.length&&n===void 0?ei(e):n;return r?t?xn(o,a,e):xn(o,a,void 0):Er(a)}catch(a){return ge&&_e.exception(a,"Failed to serialize response body"),xn(o,n,void 0)}}async function ic(e){const t=sc(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await ac(t)]}catch(n){return n instanceof Error&&n.message.indexOf("Timeout")>-1?(ge&&_e.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(ge&&_e.exception(n,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function Zo(e,t){const n={};return t.forEach(r=>{e.get(r)&&(n[r]=e.get(r))}),n}function oc(e,t){return e.length===1&&typeof e[0]!="string"?Qo(e[0],t):e.length===2?Qo(e[1],t):{}}function Qo(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?Zo(n,t):Array.isArray(n)?{}:Wi(n,t):{}}function sc(e){try{return e.clone()}catch(t){ge&&_e.exception(t,"Failed to clone response body")}}function ac(e){return new Promise((t,n)=>{const r=C.setTimeout(()=>n(new Error("Timeout while trying to read response body")),500);cc(e).then(o=>t(o),o=>n(o)).finally(()=>clearTimeout(r))})}async function cc(e){return await e.text()}async function uc(e,t,n){try{const r=dc(e,t,n),o=Jo("resource.xhr",r);Xo(n.replay,o)}catch(r){ge&&_e.exception(r,"Failed to capture xhr breadcrumb")}}function lc(e,t){const{xhr:n,input:r}=t;if(!n)return;const o=ei(r),a=n.getResponseHeader("content-length")?Ko(n.getResponseHeader("content-length")):pc(n.response,n.responseType);o!==void 0&&(e.data.request_body_size=o),a!==void 0&&(e.data.response_body_size=a)}function dc(e,t,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:a=r,input:l,xhr:h}=t,{url:f,method:S,status_code:L=0,request_body_size:A,response_body_size:O}=e.data;if(!f)return null;if(!h||!ni(f,n.networkDetailAllowUrls)||ni(f,n.networkDetailDenyUrls)){const Oe=Er(A),ie=Er(O);return{startTimestamp:o,endTimestamp:a,url:f,method:S,statusCode:L,request:Oe,response:ie}}const $=h[C.SENTRY_XHR_DATA_KEY],V=$?Wi($.request_headers,n.networkRequestHeaders):{},ue=Wi(C.parseXhrResponseHeaders(h),n.networkResponseHeaders),[Ee,me]=n.networkCaptureBodies?C.getBodyString(l,_e):[void 0],[Ce,Qe]=n.networkCaptureBodies?fc(h):[void 0],je=xn(V,A,Ee),ct=xn(ue,O,Ce);return{startTimestamp:o,endTimestamp:a,url:f,method:S,statusCode:L,request:me?ti(je,me):je,response:Qe?ti(ct,Qe):ct}}function fc(e){const t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return hc(e.response,e.responseType)}catch(n){t.push(n)}return ge&&_e.warn("Failed to get xhr response body",...t),[void 0]}function hc(e,t){try{if(typeof e=="string")return[e];if(e instanceof Document)return[e.body.outerHTML];if(t==="json"&&e&&typeof e=="object")return[JSON.stringify(e)];if(!e)return[void 0]}catch(n){return ge&&_e.exception(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return ge&&_e.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function pc(e,t){try{const n=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return ei(n)}catch(n){return}}function mc(e){const t=c.getClient();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:a,networkResponseHeaders:l}=e.getOptions(),h={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:a,networkResponseHeaders:l};t&&t.on("beforeAddBreadcrumb",(f,S)=>gc(h,f,S))}catch(n){}}function gc(e,t,n){if(t.data)try{_c(t)&&Sc(n)&&(lc(t,n),uc(t,n,e)),yc(t)&&bc(n)&&(Qa(t,n),Za(t,n,e))}catch(r){ge&&_e.exception(r,"Error when enriching network breadcrumb")}}function _c(e){return e.category==="xhr"}function yc(e){return e.category==="fetch"}function Sc(e){return e==null?void 0:e.xhr}function bc(e){return(e==null?void 0:e.input)!==void 0}function vc(e){const t=c.getClient();C.addClickKeypressInstrumentationHandler(dt(e)),C.addHistoryInstrumentationHandler(Ya(e)),Ba(e),mc(e);const n=Ga(e);c.addEventProcessor(n),t&&(t.on("beforeSendEvent",xa(e)),t.on("afterSendEvent",La(e)),t.on("createDsc",r=>{const o=e.getSessionId();o&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(r.replay_id=o)}),t.on("spanStart",r=>{e.lastActiveSpan=r}),t.on("spanEnd",r=>{e.lastActiveSpan=r}),t.on("beforeSendFeedback",async(r,o)=>{var l;const a=e.getSessionId();o!=null&&o.includeReplay&&e.isEnabled()&&a&&((l=r.contexts)!=null&&l.feedback)&&(r.contexts.feedback.source==="api"&&await e.sendBufferedReplayOrFlush(),r.contexts.feedback.replay_id=a)}),t.on("openFeedbackWidget",async()=>{await e.sendBufferedReplayOrFlush()}))}async function Ec(e){try{return Promise.all(Qr(e,[wc(m.performance.memory)]))}catch(t){return[]}}function wc(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,o=Date.now()/1e3;return{type:"memory",name:"memory",start:o,end:o,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function Tc(e,t,n){return c.debounce(e,t,{...n,setTimeoutImpl:C.setTimeout})}const tn=c.GLOBAL_OBJ.navigator;function Ic(){var e,t;return/iPhone|iPad|iPod/i.test((e=tn==null?void 0:tn.userAgent)!=null?e:"")||/Macintosh/i.test((t=tn==null?void 0:tn.userAgent)!=null?t:"")&&(tn!=null&&tn.maxTouchPoints)&&(tn==null?void 0:tn.maxTouchPoints)>1?{sampling:{mousemove:!1}}:{}}function Cc(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession()){ge&&_e.warn("Received replay event after session expired.");return}const o=r||!t;t=!0,kc(n),e.clickDetector&&Dn(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&o&&e.setInitialState(),!Pi(e,n,o))return!0;
1if(!o)return!1;const a=e.session;if(Rc(e,o),e.recordingMode==="buffer"&&a&&e.eventBuffer&&!a.dirty){const l=e.eventBuffer.getEarliestTimestamp();l&&(ge&&_e.log("Updating session start time to earliest event in buffer to ".concat(new Date(l))),a.started=l,e.getOptions().stickySession&&Kr(a))}return a!=null&&a.previousSessionId||e.recordingMode==="session"&&e.flush(),!0})}}function kc(e){const t=e.data;if(!(e.type!==ke.IncrementalSnapshot||!t||typeof t!="object"||!("source"in t)||t.source!==Se.Mutation||!("attributes"in t)||!Array.isArray(t.attributes)))for(const n of t.attributes){const r=at.mirror.getNode(n.id),o=r&&at.mirror.getMeta(r);if((o==null?void 0:o.type)===Gn.Element)for(const[a,l]of Object.entries(n.attributes))l===null?delete o.attributes[a]:o.attributes[a]=l}}function Mc(e){const t=e.getOptions();return{type:ke.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:e.eventBuffer?e.eventBuffer.type==="worker":!1,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function Rc(e,t){var n;!t||((n=e.session)==null?void 0:n.segmentId)!==0||Pi(e,Mc(e),!1)}function Ac(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(t){return null}}function Nc(e,t,n,r){return c.createEnvelope(c.createEventEnvelopeHeaders(e,c.getSdkMetadataForEnvelopeHeader(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function Lc({recordingData:e,headers:t}){let n;const r="".concat(JSON.stringify(t),"\n");if(typeof e=="string")n="".concat(r).concat(e);else{const a=new TextEncoder().encode(r);n=new Uint8Array(a.length+e.length),n.set(a),n.set(e,a.length)}return n}async function Oc({client:e,scope:t,replayId:n,event:r}){const o=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,a={event_id:n,integrations:o};e.emit("preprocessEvent",r,a);const l=await c.prepareEvent(e.getOptions(),r,a,t,e,c.getIsolationScope());if(!l)return null;e.emit("postprocessEvent",l,a),l.platform=l.platform||"javascript";const h=e.getSdkMetadata(),{name:f,version:S,settings:L}=(h==null?void 0:h.sdk)||{};return l.sdk={...l.sdk,name:f||"sentry.javascript.unknown",version:S||"0.0.0",settings:L},l}async function Dc({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:o,session:a}){const l=Lc({recordingData:e,headers:{segment_id:n}}),{urls:h,errorIds:f,traceIds:S,initialTimestamp:L}=r,A=c.getClient(),O=c.getCurrentScope(),$=A==null?void 0:A.getTransport(),V=A==null?void 0:A.getDsn();if(!A||!$||!V||!a.sampled)return Promise.resolve({});const ue={type:P,replay_start_timestamp:L/1e3,timestamp:o/1e3,error_ids:f,trace_ids:S,urls:h,replay_id:t,segment_id:n,replay_type:a.sampled},Ee=await Oc({scope:O,client:A,replayId:t,event:ue});if(!Ee)return A.recordDroppedEvent("event_processor","replay"),ge&&_e.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete Ee.sdkProcessingMetadata;const me=Nc(Ee,l,V,A.getOptions().tunnel);let Ce;try{Ce=await $.send(me)}catch(je){const ct=new Error(x);try{ct.cause=je}catch(Oe){}throw ct}const Qe=c.updateRateLimits({},Ce);if(c.isRateLimited(Qe,"replay"))throw new Hi(Qe);if(typeof Ce.statusCode=="number"&&(Ce.statusCode<200||Ce.statusCode>=300))throw new es(Ce.statusCode);return Ce}class es extends Error{constructor(t){super("Transport returned status code ".concat(t))}}class Hi extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}class ts extends Error{constructor(){super("Session is too long, not sending replay")}}async function ns(e,t={count:0,interval:B}){const{recordingData:n,onError:r}=e;if(n.length)try{return await Dc(e),!0}catch(o){if(o instanceof es||o instanceof Hi)throw o;if(c.setContext("Replays",{_retryCount:t.count}),r&&r(o),t.count>=W){const a=new Error("".concat(x," - max retries exceeded"));try{a.cause=o}catch(l){}throw a}return t.interval*=++t.count,new Promise((a,l)=>{C.setTimeout(async()=>{try{await ns(e,t),a(!0)}catch(h){l(h)}},t.interval)})}}const rs="__THROTTLED",xc="__SKIPPED";
1function Pc(e,t,n){const r=new Map,o=h=>{const f=h-n;r.forEach((S,L)=>{L<f&&r.delete(L)})},a=()=>[...r.values()].reduce((h,f)=>h+f,0);let l=!1;return(...h)=>{const f=Math.floor(Date.now()/1e3);if(o(f),a()>=t){const L=l;return l=!0,L?xc:rs}l=!1;const S=r.get(f)||0;return r.set(f,S+1),e(...h)}}class Bc{constructor({options:t,recordingOptions:n}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:b,sessionIdleExpire:N},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=n,this._options=t,this._debouncedFlush=Tc(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=Pc((l,h)=>Ra(this,l,h),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:o}=this.getOptions(),a=r?{threshold:Math.min(I,r),timeout:r,scrollTimeout:z,ignoreSelector:o?o.join(","):""}:void 0;if(a&&(this.clickDetector=new Ti(this,a)),ge){const l=t._experiments;_e.setConfig({captureExceptions:!!l.captureExceptions,traceInternals:!!l.traceInternals})}this._handleVisibilityChange=()=>{m.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{const l=Jt({category:"ui.blur"});this._doChangeToBackgroundTasks(l)},this._handleWindowFocus=()=>{const l=Jt({category:"ui.focus"});this._doChangeToForegroundTasks(l)},this._handleKeyboardEvent=l=>{Qt(this,l)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(t){ge&&_e.exception(t),this._options.onError&&this._options.onError(t)}initializeSampling(t){const{errorSampleRate:n,sessionSampleRate:r}=this._options,o=n<=0&&r<=0;if(this._requiresManualStart=o,!o){if(this._initializeSessionForSampling(t),!this.session){ge&&_e.exception(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",ge&&_e.infoTick("Starting replay in ".concat(this.recordingMode," mode")),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session"){ge&&_e.log("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){ge&&_e.log("Buffering is in progress, call `flush()` to save the replay");return}ge&&_e.infoTick("Starting replay in session mode"),this._updateUserActivity();const t=xi({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this.recordingMode="session",this._initializeRecording()}startBuffering(){if(this._isEnabled){ge&&_e.log("Buffering is in progress, call `flush()` to save the replay");return}ge&&_e.infoTick("Starting replay in buffer mode");const t=xi({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const t=this._canvas;this._stopRecording=at({...this._recordingOptions,...this.recordingMode==="buffer"?{checkoutEveryNms:F}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:Cc(this),...Ic(),onMutation:this._onMutationHandler.bind(this),...t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}})}catch(t){this.handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this.handleException(t),!1}}async stop({forceFlush:t=!1,reason:n}={}){var o,a,l;if(!this._isEnabled)return;this._isEnabled=!1,this.recordingMode="buffer";const r=n!=null?n:"manual";(a=c.getClient())==null||a.emit("replayEnd",{sessionId:(o=this.session)==null?void 0:o.id,reason:r});try{ge&&_e.log("Stopping Replay triggered by ".concat(r)),Zr(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),(l=this.eventBuffer)==null||l.destroy(),this.eventBuffer=null,wa(this)}catch(h){this.handleException(h)}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),ge&&_e.log("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),ge&&_e.log("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();ge&&_e.log("Converting buffer to session"),await this.flushImmediate();const r=this.stopRecording();!t||!r||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this.session.dirty=!1,this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession()),this.startRecording())}addUpdate(t){const n=t();this.recordingMode==="buffer"||!this._isEnabled||n!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(t){var n,r;if(!(t&&((n=this.session)==null?void 0:n.sampled)===!1))return(r=this.session)==null?void 0:r.id}
1checkAndHandleExpiredSession(){var t;if(this._lastActivity&&Di(this._lastActivity,this.timeouts.sessionIdlePause)&&((t=this.session)==null?void 0:t.sampled)==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const t="".concat(m.location.pathname).concat(m.location.hash).concat(m.location.search),n="".concat(m.location.origin).concat(t);this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=Date.now(),this._context.urls.push(n)}throttledAddEvent(t,n){const r=this._throttledAddEvent(t,n);if(r===rs){const o=Jt({category:"replay.throttled"});this.addUpdate(()=>!Pi(this,{type:Bt,timestamp:o.timestamp||0,data:{tag:"breadcrumb",payload:o,metric:!0}}))}return r}getCurrentRoute(){const t=this.lastActiveSpan||c.getActiveSpan(),n=t&&c.getRootSpan(t),o=(n&&c.spanToJSON(n).data||{})[c.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];if(!(!n||!o||!["route","custom"].includes(o)))return c.spanToJSON(n).description}_initializeRecording(){var t;this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=ba({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.session&&((t=c.getClient())==null||t.emit("replayStart",{sessionId:this.session.id,recordingMode:this.recordingMode})),this.startRecording(),this.recordingMode==="session"&&this.session&&qa(this.session.id)}_initializeSessionForSampling(t){const n=this._options.errorSampleRate>0,r=xi({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=r}_checkSession(){if(!this.session)return!1;const t=this.session;return Jr(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(t),!1):!0}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"sessionExpired"}),this.initializeSampling(t.id))}_addListeners(){try{m.document.addEventListener("visibilitychange",this._handleVisibilityChange),m.addEventListener("blur",this._handleWindowBlur),m.addEventListener("focus",this._handleWindowFocus),m.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(vc(this),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=pa(this)}_removeListeners(){try{m.document.removeEventListener("visibilitychange",this._handleVisibilityChange),m.removeEventListener("blur",this._handleWindowBlur),m.removeEventListener("focus",this._handleWindowFocus),m.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}_doChangeToBackgroundTasks(t){if(!this.session)return;if(Jr(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})){Zr();return}t&&this._createCustomBreadcrumb(t),this.conditionalFlush()}_doChangeToForegroundTasks(t){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){ge&&_e.log("Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:ke.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){let t=oa(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const n=this._context.initialTimestamp/1e3;t=t.filter(r=>r.start>=n)}return Promise.all(Qr(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:n}=this;if(!t||!n||this._requiresManualStart||t.segmentId)return;
1const r=n.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_popEventContext(){const t={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),t}async _runFlush(){var n;const t=this.getSessionId();if(!this.session||!this.eventBuffer||!t){ge&&_e.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!!((n=this.eventBuffer)!=null&&n.hasEvents)&&(await Ec(this),!!this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const r=Date.now();if(r-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new ts;const o=this._popEventContext(),a=this.session.segmentId++;this._maybeSaveSession();const l=await this.eventBuffer.finish();await ns({replayId:t,recordingData:l,segmentId:a,eventContext:o,session:this.session,timestamp:r,onError:h=>this.handleException(h)})}catch(r){this.handleException(r),this.stop({reason:"sendError"});const o=c.getClient();if(o){let a;r instanceof Hi?a="ratelimit_backoff":r instanceof ts?a="invalid":a="send_error",o.recordDroppedEvent(a,"replay")}}}async _flush({force:t=!1}={}){if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){ge&&_e.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;const n=this.session.started,o=Date.now()-n;this._debouncedFlush.cancel();const a=o<this._options.minReplayDuration,l=o>this._options.maxReplayDuration+5e3;if(a||l){ge&&_e.log("Session duration (".concat(Math.floor(o/1e3),"s) is too ").concat(a?"short":"long",", not sending replay.")),a&&this._debouncedFlush();return}const h=this.eventBuffer;h&&this.session.segmentId===0&&!h.hasCheckout&&ge&&_e.log("Flushing initial segment without checkout.");const f=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(S){this.handleException(S)}finally{this._flushLock=void 0,f&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&Kr(this.session)}_onMutationHandler(t){const{ignoreMutations:n}=this._options._experiments;if(n!=null&&n.length&&t.some(h=>{const f=Ac(h.target),S=n.join(",");return f==null?void 0:f.matches(S)}))return!1;const r=t.length,o=this._options.mutationLimit,a=this._options.mutationBreadcrumbLimit,l=o&&r>o;if(r>a||l){const h=Jt({category:"replay.mutations",data:{count:r,limit:l}});this._createCustomBreadcrumb(h)}return l?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}function wr(e,t){return[...e,...t].join(",")}function Fc({mask:e,unmask:t,block:n,unblock:r,ignore:o}){const a=["base","iframe[srcdoc]:not([src])"],l=wr(e,[".sentry-mask","[data-sentry-mask]"]),h=wr(t,[]);return{maskTextSelector:l,unmaskTextSelector:h,blockSelector:wr(n,[".sentry-block","[data-sentry-block]",...a]),unblockSelector:wr(r,[]),ignoreSelector:wr(o,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function Wc({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:o,value:a}){if(o.unmaskTextSelector&&e.matches(o.unmaskTextSelector))return a;const l=n.includes(t),h=r&&t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"");return l||h?a.replace(/[\S]/g,"*"):a}const is='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',Hc=["content-length","content-type","accept"],Uc=Symbol.for("sentry__originalRequestBody");let os=!1,ss=!1;function qc(){if(typeof Request>"u"||ss)return;const e=Request;try{const t=function(n,r){const o=new e(n,r);return(r==null?void 0:r.body)!=null&&(o[Uc]=r.body),o};t.prototype=e.prototype,c.GLOBAL_OBJ.Request=t,ss=!0}catch(t){}}const zc=(e=>new jc(e));class jc{constructor({flushMinDelay:t=M,flushMaxDelay:n=R,minReplayDuration:r=Z,maxReplayDuration:o=ee,stickySession:a=!0,useCompression:l=!0,workerUrl:h,_experiments:f={},maskAllText:S=!0,maskAllInputs:L=!0,blockAllMedia:A=!0,mutationBreadcrumbLimit:O=750,mutationLimit:$=1e4,slowClickTimeout:V=7e3,slowClickIgnoreSelectors:ue=[],networkDetailAllowUrls:Ee=[],networkDetailDenyUrls:me=[],networkCaptureBodies:Ce=!0,networkRequestHeaders:Qe=[],networkResponseHeaders:je=[],mask:ct=[],maskAttributes:Oe=["title","placeholder","aria-label"],unmask:ie=[],block:Ue=[],unblock:wt=[],ignore:le=[],maskFn:Me,beforeAddRecordingEvent:et,beforeErrorSampling:yt,onError:vt,attachRawBodyFromRequest:ln=!1}={}){this.name="Replay";const Ft=Fc({mask:ct,unmask:ie,block:Ue,unblock:wt,ignore:le});if(this._recordingOptions={maskAllInputs:L,maskAllText:S,maskInputOptions:{password:!0},maskTextFn:Me,maskInputFn:Me,maskAttributeFn:(Mt,Ae,nn)=>Wc({maskAttributes:Oe,maskAllText:S,privacyOptions:Ft,key:Mt,value:Ae,el:nn}),...Ft,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:Mt=>{try{Mt.__rrweb__=!0}catch(Ae){}},recordCrossOriginIframes:!!f.recordCrossOriginIframes},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(r,X),maxReplayDuration:Math.min(o,ee),stickySession:a,useCompression:l,workerUrl:h,blockAllMedia:A,maskAllInputs:L,maskAllText:S,mutationBreadcrumbLimit:O,mutationLimit:$,slowClickTimeout:V,slowClickIgnoreSelectors:ue,networkDetailAllowUrls:Ee,networkDetailDenyUrls:me,networkCaptureBodies:Ce,networkRequestHeaders:as(Qe),networkResponseHeaders:as(je),beforeAddRecordingEvent:et,beforeErrorSampling:yt,onError:vt,attachRawBodyFromRequest:ln,_experiments:f},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?"".concat(this._recordingOptions.blockSelector,",").concat(is):is,this._recordingOptions.ignoreCSSAttributes=new Set(["background-image"])),this._isInitialized&&c.isBrowser())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return os}set _isInitialized(t){os=t}afterAllSetup(t){!c.isBrowser()||this._replay||(this._initialOptions.attachRawBodyFromRequest&&qc(),this._setup(t),this._initialize(t))}start(){this._replay&&this._replay.start()}
1startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session",reason:"manual"}):Promise.resolve()}flush(t){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(t){var n;if((n=this._replay)!=null&&n.isEnabled())return this._replay.getSessionId(t)}getRecordingMode(){var t;if((t=this._replay)!=null&&t.isEnabled())return this._replay.recordingMode}_initialize(t){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(t),this._replay.initializeSampling())}_setup(t){const n=Gc(this._initialOptions,t);this._replay=new Bc({options:n,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{const n=t.getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch(n){}}}function Gc(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...e},o=c.parseSampleRate(n.replaysSessionSampleRate),a=c.parseSampleRate(n.replaysOnErrorSampleRate);return o==null&&a==null&&c.consoleSandbox(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),o!=null&&(r.sessionSampleRate=o),a!=null&&(r.errorSampleRate=a),r}function as(e){return[...Hc,...e.map(t=>t.toLowerCase())]}function Vc(){const e=c.getClient();return e==null?void 0:e.getIntegrationByName("Replay")}d.getReplay=Vc,d.replayIntegration=zc})(Po)),Po}var Bo={},Zs;function yu(){return Zs||(Zs=1,(function(d){var mt;Object.defineProperty(d,Symbol.toStringTag,{value:"Module"});const c=Rt();var C=Object.defineProperty,m=(y,_,w)=>_ in y?C(y,_,{enumerable:!0,configurable:!0,writable:!0,value:w}):y[_]=w,k=(y,_,w)=>m(y,typeof _!="symbol"?_+"":_,w);class P{constructor(){k(this,"idNodeMap",new Map),k(this,"nodeMetaMap",new WeakMap)}getId(_){var T;if(!_)return-1;const w=(T=this.getMeta(_))==null?void 0:T.id;return w!=null?w:-1}getNode(_){return this.idNodeMap.get(_)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(_){return this.nodeMetaMap.get(_)||null}removeNodeFromMap(_){const w=this.getId(_);this.idNodeMap.delete(w),_.childNodes&&_.childNodes.forEach(T=>this.removeNodeFromMap(T))}has(_){return this.idNodeMap.has(_)}hasNode(_){return this.nodeMetaMap.has(_)}add(_,w){const T=w.id;this.idNodeMap.set(T,_),this.nodeMetaMap.set(_,w)}replace(_,w){const T=this.getNode(_);if(T){const q=this.nodeMetaMap.get(T);q&&this.nodeMetaMap.set(w,q)}this.idNodeMap.set(_,w)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function x(){return new P}function b(y,_){for(let w=y.classList.length;w--;){const T=y.classList[w];if(_.test(T))return!0}return!1}function N(y,_,w=1/0,T=0){return!y||y.nodeType!==y.ELEMENT_NODE||T>w?-1:_(y)?T:N(y.parentNode,_,w,T+1)}function M(y,_){return w=>{const T=w;if(T===null)return!1;try{if(y){if(typeof y=="string"){if(T.matches(".".concat(y)))return!0}else if(b(T,y))return!0}return!!(_&&T.matches(_))}catch(q){return!1}}}const R="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let F={map:{},getId(){return console.error(R),-1},getNode(){return console.error(R),null},removeNodeFromMap(){console.error(R)},has(){return console.error(R),!1},reset(){console.error(R)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(F=new Proxy(F,{get(y,_,w){return _==="map"&&console.error(R),Reflect.get(y,_,w)}}));function B(y,_,w,T,q=window){const ne=q.Object.getOwnPropertyDescriptor(y,_);return q.Object.defineProperty(y,_,T?w:{set(Te){Z(()=>{w.set.call(this,Te)},0),ne&&ne.set&&ne.set.call(this,Te)}}),()=>B(y,_,ne||{},!0)}function W(y,_,w){try{if(!(_ in y))return()=>{};const T=y[_],q=w(T);return typeof q=="function"&&(q.prototype=q.prototype||{},Object.defineProperties(q,{__rrweb_original__:{enumerable:!1,value:T}})),y[_]=q,()=>{y[_]=T}}catch(T){return()=>{}}}Date.now().toString();function H(y){if(!y)return null;try{return y.nodeType===y.ELEMENT_NODE?y:y.parentElement}catch(_){return null}}function D(y,_,w,T,q){if(!y)return!1;const ne=H(y);if(!ne)return!1;const Te=M(_,w),de=N(ne,Te);let Re=-1;return de<0?!1:(T&&(Re=N(ne,M(null,T))),de>-1&&Re<0?!0:de<Re)}const I={};function z(y){const _=I[y];if(_)return _;const w=window.document;let T=window[y];if(w&&typeof w.createElement=="function")try{const q=w.createElement("iframe");q.hidden=!0,w.head.appendChild(q);const ne=q.contentWindow;ne&&ne[y]&&(T=ne[y]),w.head.removeChild(q)}catch(q){}return I[y]=T.bind(window)}function oe(...y){return z("requestAnimationFrame")(...y)}function Z(...y){return z("setTimeout")(...y)}var X=(y=>(y[y["2D"]=0]="2D",y[y.WebGL=1]="WebGL",y[y.WebGL2=2]="WebGL2",y))(X||{});let ee;function he(y){ee=y}const Q=y=>ee?((...w)=>{try{return y(...w)}catch(T){if(ee&&ee(T)===!0)return()=>{};throw T}}):y;for(var fe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
1+/",pe=typeof Uint8Array>"u"?[]:new Uint8Array(256),rt=0;rt<fe.length;rt++)pe[fe.charCodeAt(rt)]=rt;var ut=function(y){var _=new Uint8Array(y),w,T=_.length,q="";for(w=0;w<T;w+=3)q+=fe[_[w]>>2],q+=fe[(_[w]&3)<<4|_[w+1]>>4],q+=fe[(_[w+1]&15)<<2|_[w+2]>>6],q+=fe[_[w+2]&63];return T%3===2?q=q.substring(0,q.length-1)+"=":T%3===1&&(q=q.substring(0,q.length-2)+"=="),q};const it=new Map;function se(y,_){let w=it.get(y);return w||(w=new Map,it.set(y,w)),w.has(_)||w.set(_,[]),w.get(_)}const Ge=(y,_,w)=>{if(!y||!(At(y,_)||typeof y=="object"))return;const T=y.constructor.name,q=se(w,T);let ne=q.indexOf(y);return ne===-1&&(ne=q.length,q.push(y)),ne};function ot(y,_,w){if(y instanceof Array)return y.map(T=>ot(T,_,w));if(y===null)return y;if(y instanceof Float32Array||y instanceof Float64Array||y instanceof Int32Array||y instanceof Uint32Array||y instanceof Uint8Array||y instanceof Uint16Array||y instanceof Int16Array||y instanceof Int8Array||y instanceof Uint8ClampedArray)return{rr_type:y.constructor.name,args:[Object.values(y)]};if(y instanceof ArrayBuffer){const T=y.constructor.name,q=ut(y);return{rr_type:T,base64:q}}else{if(y instanceof DataView)return{rr_type:y.constructor.name,args:[ot(y.buffer,_,w),y.byteOffset,y.byteLength]};if(y instanceof HTMLImageElement){const T=y.constructor.name,{src:q}=y;return{rr_type:T,src:q}}else if(y instanceof HTMLCanvasElement){const T="HTMLImageElement",q=y.toDataURL();return{rr_type:T,src:q}}else{if(y instanceof ImageData)return{rr_type:y.constructor.name,args:[ot(y.data,_,w),y.width,y.height]};if(At(y,_)||typeof y=="object"){const T=y.constructor.name,q=Ge(y,_,w);return{rr_type:T,index:q}}}}return y}const ht=(y,_,w)=>y.map(T=>ot(T,_,w)),At=(y,_)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(q=>typeof _[q]=="function").find(q=>y instanceof _[q]);function rn(y,_,w,T,q){const ne=[],Te=Object.getOwnPropertyNames(_.CanvasRenderingContext2D.prototype);for(const de of Te)try{if(typeof _.CanvasRenderingContext2D.prototype[de]!="function")continue;const Re=W(_.CanvasRenderingContext2D.prototype,de,function(tt){return function(...lt){return D(this.canvas,w,T,q,!0)||Z(()=>{const pt=ht(lt,_,this);y(this.canvas,{type:X["2D"],property:de,args:pt})},0),tt.apply(this,lt)}});ne.push(Re)}catch(Re){const tt=B(_.CanvasRenderingContext2D.prototype,de,{set(lt){y(this.canvas,{type:X["2D"],property:de,args:[lt],setter:!0})}});ne.push(tt)}return()=>{ne.forEach(de=>de())}}function on(y){return y==="experimental-webgl"?"webgl":y}function kn(y,_,w,T,q){const ne=[];try{const Te=W(y.HTMLCanvasElement.prototype,"getContext",function(de){return function(Re,...tt){if(!D(this,_,w,T,!0)){const lt=on(Re);if("__context"in this||(this.__context=lt),q&&["webgl","webgl2"].includes(lt))if(tt[0]&&typeof tt[0]=="object"){const pt=tt[0];pt.preserveDrawingBuffer||(pt.preserveDrawingBuffer=!0)}else tt.splice(0,1,{preserveDrawingBuffer:!0})}return de.apply(this,[Re,...tt])}});ne.push(Te)}catch(Te){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{ne.forEach(Te=>Te())}}function U(y,_,w,T,q,ne,Te,de){const Re=[],tt=Object.getOwnPropertyNames(y);for(const lt of tt)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(lt))try{if(typeof y[lt]!="function")continue;const pt=W(y,lt,function(Gt){return function(...Lt){const It=Gt.apply(this,Lt);if(Ge(It,de,this),"tagName"in this.canvas&&!D(this.canvas,T,q,ne,!0)){const ye=ht(Lt,de,this),sn={type:_,property:lt,args:ye};w(this.canvas,sn)}return It}});Re.push(pt)}catch(pt){const Gt=B(y,lt,{set(Lt){w(this.canvas,{type:_,property:lt,args:[Lt],setter:!0})}});Re.push(Gt)}return Re}function K(y,_,w,T,q,ne){const Te=[];return Te.push(...U(_.WebGLRenderingContext.prototype,X.WebGL,y,w,T,q,ne,_)),typeof _.WebGL2RenderingContext<"u"&&Te.push(...U(_.WebGL2RenderingContext.prototype,X.WebGL2,y,w,T,q,ne,_)),()=>{Te.forEach(de=>de())}}const G='for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
1+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a<r;a+=3)s+=e[n[a]>>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w?.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};';function ae(){const y=new Blob([G]);return URL.createObjectURL(y)}class we{constructor(_){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.shadowDoms=new Set,this.windowsSet=new WeakSet,this.windows=[],this.restoreHandlers=[],this.frozen=!1,this.locked=!1,this.snapshotInProgressMap=new Map,this.worker=null,this.lastSnapshotTime=0,this.processMutation=(de,Re)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(de)||this.pendingCanvasMutations.set(de,[]),this.pendingCanvasMutations.get(de).push(Re)};const{enableManualSnapshot:w,sampling:T="all",win:q,recordCanvas:ne,errorHandler:Te}=_;_.sampling=T,this.mutationCb=_.mutationCb,this.mirror=_.mirror,this.options=_,Te&&he(Te),(ne&&typeof T=="number"||w)&&(this.worker=this.initFPSWorker()),this.addWindow(q),!w&&Q(()=>{ne&&T==="all"&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),ne&&typeof T=="number"&&this.initCanvasFPSObserver()})()}reset(){var _;this.pendingCanvasMutations.clear(),this.restoreHandlers.forEach(w=>{try{w()}catch(T){}}),this.restoreHandlers=[],this.windowsSet=new WeakSet,this.windows=[],this.shadowDoms=new Set,(_=this.worker)==null||_.terminate(),this.worker=null,this.snapshotInProgressMap=new Map}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}addWindow(_){const{sampling:w="all",blockClass:T,blockSelector:q,unblockSelector:ne,recordCanvas:Te,enableManualSnapshot:de}=this.options;if(!this.windowsSet.has(_)){if(de){this.windowsSet.add(_),this.windows.push(new WeakRef(_));return}Q(()=>{if(Te&&w==="all"&&this.initCanvasMutationObserver(_,T,q,ne),Te&&typeof w=="number"){const Re=kn(_,T,q,ne,!0);this.restoreHandlers.push(()=>{Re()})}})(),this.windowsSet.add(_),this.windows.push(new WeakRef(_))}}addShadowRoot(_){this.shadowDoms.add(new WeakRef(_))}resetShadowRoots(){this.shadowDoms=new Set}snapshot(_,w){if(w!=null&&w.skipRequestAnimationFrame){this.takeSnapshot(performance.now(),!0,_);return}oe(T=>this.takeSnapshot(T,!0,_))}initFPSWorker(){const _=new Worker(ae());return _.onmessage=w=>{const T=w.data,{id:q}=T;if(this.snapshotInProgressMap.set(q,!1),!("base64"in T))return;const{base64:ne,type:Te,width:de,height:Re}=T;this.mutationCb({id:q,type:X["2D"],commands:[{property:"clearRect",args:[0,0,de,Re]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:ne}],type:Te}]},0,0,de,Re]}]})},_}initCanvasFPSObserver(){let _;if(!this.windows.length&&!this.shadowDoms.size)return;const w=T=>{this.takeSnapshot(T,!1),_=oe(w)};_=oe(w),this.restoreHandlers.push(()=>{_&&cancelAnimationFrame(_)})}initCanvasMutationObserver(_,w,T,q){const ne=kn(_,w,T,q,!1),Te=rn(this.processMutation.bind(this),_,w,T,q),de=K(this.processMutation.bind(this),_,w,T,q,this.mirror);this.restoreHandlers.push(()=>{ne(),Te(),de()})}getCanvasElements(_,w,T){const q=[],ne=Te=>{Te.querySelectorAll("canvas").forEach(de=>{D(de,_,w,T)||q.push(de)})};for(const Te of this.windows){const de=Te.deref();let Re;try{Re=de&&de.document}catch(tt){}Re&&ne(Re)}for(const Te of this.shadowDoms){const de=Te.deref();de&&ne(de)}return q}takeSnapshot(_,w,T){const{sampling:q,blockClass:ne,blockSelector:Te,unblockSelector:de,dataURLOptions:Re,maxCanvasSize:tt}=this.options,pt=1e3/(q==="all"?2:q||2);return this.lastSnapshotTime&&_-this.lastSnapshotTime<pt?!1:(this.lastSnapshotTime=_,(T?[T]:this.getCanvasElements(ne,Te,de)).forEac
1h(It=>{var sn;const ye=this.mirror.getId(It);if(!(!this.mirror.hasNode(It)||!It.width||!It.height||this.snapshotInProgressMap.get(ye))){if(this.snapshotInProgressMap.set(ye,!0),!w&&["webgl","webgl2"].includes(It.__context)){const Ct=It.getContext(It.__context);((sn=Ct==null?void 0:Ct.getContextAttributes())==null?void 0:sn.preserveDrawingBuffer)===!1&&Ct.clear(Ct.COLOR_BUFFER_BIT)}createImageBitmap(It).then(Ct=>{var en;(en=this.worker)==null||en.postMessage({id:ye,bitmap:Ct,width:It.width,height:It.height,dataURLOptions:Re,maxCanvasSize:tt},[Ct])}).catch(Ct=>{Q(()=>{throw this.snapshotInProgressMap.delete(ye),Ct})()})}}),!0)}startPendingCanvasMutationFlusher(){oe(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const _=w=>{this.rafStamps.latestId=w,oe(_)};oe(_)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((_,w)=>{const T=this.mirror.getId(w);this.flushPendingCanvasMutationFor(w,T)}),oe(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(_,w){if(this.frozen||this.locked)return;const T=this.pendingCanvasMutations.get(_);if(!T||w===-1)return;const q=T.map(Te=>{const{type:de,...Re}=Te;return Re}),{type:ne}=T[0];this.mutationCb({id:w,type:ne,commands:q}),this.pendingCanvasMutations.delete(_)}}try{if(Array.from([1],y=>y*2)[0]!==2){const y=document.createElement("iframe");document.body.appendChild(y),Array.from=((mt=y.contentWindow)==null?void 0:mt.Array.from)||Array.from,document.body.removeChild(y)}}catch(y){console.debug("Unable to override Array.from",y)}x();var Ne;(function(y){y[y.NotStarted=0]="NotStarted",y[y.Running=1]="Running",y[y.Stopped=2]="Stopped"})(Ne||(Ne={}));const Ze={low:{sampling:{canvas:1},dataURLOptions:{type:"image/webp",quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:"image/webp",quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:"image/webp",quality:.5}}},Tt="ReplayCanvas",$e=1280,st=((y={})=>
1{const[_,w]=y.maxCanvasSize||[],T={quality:y.quality||"medium",enableManualSnapshot:y.enableManualSnapshot,maxCanvasSize:[_?Math.min(_,$e):$e,w?Math.min(w,$e):$e]};let q,ne;const Te=new Promise(de=>ne=de);return{name:Tt,getOptions(){const{quality:de,enableManualSnapshot:Re,maxCanvasSize:tt}=T;return{enableManualSnapshot:Re,recordCanvas:!0,getCanvasManager:lt=>{const pt=new we({...lt,enableManualSnapshot:Re,maxCanvasSize:tt,errorHandler:Gt=>{try{typeof Gt=="object"&&(Gt.__rrweb__=!0)}catch(Lt){}}});return q=pt,ne(pt),pt},...Ze[de]||Ze.medium}},async snapshot(de,Re){(q||await Te).snapshot(de,Re)}}}),Nt=c.defineIntegration(st);d.replayCanvasIntegration=Nt})(Bo)),Bo}export{pu as a,_u as b,yu as c,gu as r};

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.