PageSourceSearch

https://static.nubank.com.br/fc4d008e601179cef65d23680a59f63f8cbb6…/static/chunks/4a7b0c69-39fc6c72714a2aa9.js

js nubank.com.br collected 2026-10-01 08:08:43 UTC 131,373 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];if(null!=r)for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:nu-website-br":!0});var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a52f23f2-c1ad-44f0-b7d6-4524269b9da1",e._sentryDebugIdIdentifier="sentry-dbid-a52f23f2-c1ad-44f0-b7d6-4524269b9da1")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[449],{37019:(e,t,r)=>{r.d(t,{w:()=>r$});var n,i,a=r(71983),s=r(45849),o=r(22043),l=r(80971),d=r(49636),c=r(43758),u=r(16649),h=r(73314),p=r(87624),m=r(81611),f=r(43275),v=(r(12398),r(27122)),y=r(28385),g=r(2257),S=r(60567),_=r(58859),b=r(89135),w=r(10160),k=r(35868),E=r(54058),C=r(31209),I=r(71350),M=r(42106),x=r(88722),T=r(97684),R=r(48964),A=r(40364),D=r(65087),O=r(902),N=r(18009),L=r(31249),P=r(91774),F=r(81304),B=r(71540),U=d.O,z="sentryReplaySession",W="Unable to send Replay",j=Object.defineProperty,H=(e,t,r)=>((e,t,r)=>t in e?j(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r),q=(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))(q||{});function K(e){var t=null==e?void 0:e.host;return(null==t?void 0:t.shadowRoot)===e}function V(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function J(e){try{var t,r=e.rules||e.cssRules;return r?((t=Array.from(r,G).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}}function G(e){var t;if("styleSheet"in e)try{t=J(e.styleSheet)||function(e){var t=e.cssText;if(t.split('"').length<3)return t;var r=["@import","url(".concat(JSON.stringify(e.href),")")];return""===e.layerName?r.push("layer"):e.layerName&&r.push("layer(".concat(e.layerName,")")),e.supportsText&&r.push("supports(".concat(e.supportsText,")")),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(e){}else if("selectorText"in e){var r=e.cssText,n=e.selectorText.includes(":"),i="string"==typeof e.style.all&&e.style.all;if(i&&(r=function(e){for(var t="",r=0;r<e.style.length;r++){var n=e.style,i=n[r],a=n.getPropertyPriority(i);t+="".concat(i,":").concat(n.getPropertyValue(i)).concat(a?" !important":"",";")}return"".concat(e.selectorText," { ").concat(t," }")}(e)),n&&(r=r.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),n||i)return r}return t||e.cssText}class Y{getId(e){if(!e)return -1;var t,r=null==(t=this.getMeta(e))?void 0:t.id;return null!=r?r:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){var t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){var r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){var r=this.getNode(e);if(r){var n=this.nodeMetaMap.get(r);n&&this.nodeMetaMap.set(t,n)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}constructor(){H(this,"idNodeMap",new Map),H(this,"nodeMetaMap",new WeakMap)}}function X(e){var t=e.maskInputOptions,r=e.tagName,n=e.type;return"OPTION"===r&&(r="SELECT"),!!(t[r.toLowerCase()]||n&&t[n]||"password"===n||"INPUT"===r&&!n&&t.text)}function $(e){var t=e.isMasked,r=e.element,n=e.value,i=e.maskInputFn,a=n||"";return t?(i&&(a=i(a,r)),"*".repeat(a.length)):a}function Q(e){return e.toLowerCase()}function Z(e){return e.toUpperCase()}var ee="__rrweb_original__";function et(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Q(t):null}function er(e,t,r){return"INPUT"===t&&("radio"===r||"checkbox"===r)?e.getAttribute("value")||"":e.value}function en(e,t){try{r=new URL(e,null!=t?t:window.location.href)}catch(e){return null}var r,n,i=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return null!=(n=null==i?void 0:i[1])?n:null}var ei={};function ea(e){var t=ei[e];if(t)return t;var r=window.document,n=window[e];if(r&&"function"==typeof r.createElement)try{var i=r.createElement("iframe");i.hidden=!0,r.head.appendChild(i);var a=i.contentWindow;a&&a[e]&&(n=a[e]),r.head.removeChild(i)}catch(e){}return ei[e]=n.bind(window)}function es(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return ea("setTimeout")(...t)}function eo(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return ea("clearTimeout")(...t)}function el(e){try{return e.contentDocument}catch(e){}}var ed=1,ec=RegExp("[^a-z0-9-_:]");function eu(){return ed++}var eh=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,ep=/^(?:[a-z+]+:)?\/\//i,em=/^www\..*/i,ef=/^(data:)([^,]*),(.*)/i;function ev(e,t){return(e||"").replace(eh,(e,r,n,i,a,s)=>{var o=n||a||s,l=r||i||"";if(!o)return e;
1if(ep.test(o)||em.test(o)||ef.test(o))return"url(".concat(l).concat(o).concat(l,")");if("/"===o[0])return"url(".concat(l).concat((t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+o).concat(l,")");var d=t.split("/"),c=o.split("/");d.pop();var u=!0,h=!1,p=void 0;try{for(var m,f,v=c[Symbol.iterator]();!(u=(f=v.next()).done);u=!0){var y=f.value;"."!==y&&(".."===y?d.pop():d.push(y))}}catch(e){h=!0,p=e}finally{try{u||null==v.return||v.return()}finally{if(h)throw p}}return"url(".concat(l).concat(d.join("/")).concat(l,")")})}var ey=/^[^ \t\n\r\u000c]+/,eg=/^[, \t\n\r\u000c]+/,eS=new WeakMap;function e_(e,t){return t&&""!==t.trim()?eb(e,t):t}function eb(e,t){var r=eS.get(e);if(r||(r=e.createElement("a"),eS.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function ew(e,t,r,n,i,a,s){if(!n)return n;if("src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0])return e_(e,n);if("background"===r&&("table"===t||"td"===t||"th"===t))return e_(e,n);if("srcset"===r)return function(e,t){if(""===t.trim())return t;var r=0;function n(e){var n,i=e.exec(t.substring(r));return i?(n=i[0],r+=n.length,n):""}for(var i=[];n(eg),!(r>=t.length);){var a=n(ey);if(","===a.slice(-1))a=e_(e,a.substring(0,a.length-1)),i.push(a);else{var s="";a=e_(e,a);for(var o=!1;;){var l=t.charAt(r);if(""===l){i.push((a+s).trim());break}if(o)")"===l&&(o=!1);else if(","===l){r+=1,i.push((a+s).trim());break}else"("===l&&(o=!0);s+=l,r+=1}}}return i.join(", ")}(e,n);if("style"===r){var o=ev(n,eb(e));return s&&s.size>0&&(o=function(e,t){if(!e||0===t.size)return e;try{var r=e.split(";"),n=[],i=!0,a=!1,s=void 0;try{for(var o,l=r[Symbol.iterator]();!(i=(o=l.next()).done);i=!0){var d=o.value;if(d=d.trim()){var c=d.indexOf(":");if(-1===c){n.push(d);continue}var u=d.slice(0,c).trim();t.has(u)||n.push(d)}}}catch(e){a=!0,s=e}finally{try{i||null==l.return||l.return()}finally{if(a)throw s}}return n.join("; ")+(n.length>0&&e.endsWith(";")?";":"")}catch(t){return console.warn("Error filtering CSS properties:",t),e}}(o,s)),o}else if("object"===t&&"data"===r)return e_(e,n);return"function"==typeof a?a(r,n,i):n}function ek(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function eE(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return!e||e.nodeType!==e.ELEMENT_NODE||n>r?-1:t(e)?n:eE(e.parentNode,t,r,n+1)}function eC(e,t){return r=>{if(null===r)return!1;try{if(e){if("string"==typeof e){if(r.matches(".".concat(e)))return!0}else if(function(e,t){for(var r=e.classList.length;r--;){var n=e.classList[r];if(t.test(n))return!0}return!1}(r,e))return!0}if(t&&r.matches(t))return!0;return!1}catch(e){return!1}}}function eI(e,t,r,n,i,a){try{var s=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===s)return!1;if("INPUT"===s.tagName){var o=s.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(o))return!0}var l=-1,d=-1;if(a){if((d=eE(s,eC(n,i)))<0)return!0;l=eE(s,eC(t,r),d>=0?d:1/0)}else{if((l=eE(s,eC(t,r)))<0)return!1;d=eE(s,eC(n,i),l>=0?l:1/0)}return l>=0?!(d>=0)||l<=d:!(d>=0)&&!!a}catch(e){}return!!a}function eM(e){return null==e?"":e.toLowerCase()}function ex(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,a=t.blockSelector,s=t.unblockSelector,o=t.maskAllText,l=t.maskTextClass,d=t.unmaskTextClass,c=t.maskTextSelector,u=t.unmaskTextSelector,h=t.skipChild,p=void 0!==h&&h,m=t.inlineStylesheet,f=void 0===m||m,v=t.maskInputOptions,y=void 0===v?{}:v,g=t.maskAttributeFn,S=t.maskTextFn,_=t.maskInputFn,b=t.slimDOMOptions,w=t.dataURLOptions,k=void 0===w?{}:w,E=t.inlineImages,C=void 0!==E&&E,I=t.recordCanvas,M=void 0!==I&&I,x=t.onSerialize,T=t.onIframeLoad,R=t.iframeLoadTimeout,A=void 0===R?5e3:R,D=t.onBlockedImageLoad,O=t.onStylesheetLoad,N=t.stylesheetLoadTimeout,L=void 0===N?5e3:N,P=t.keepIframeSrcFn,F=void 0===P?()=>!1:P,B=t.newlyAddedElement,U=t.ignoreCSSAttributes,z=t.preserveWhiteSpace,W=void 0===z||z,j=function(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,a=t.blockSelector,s=t.unblockSelector,o=t.maskAllText,l=t.maskAttributeFn,d=t.maskTextClass,c=t.unmaskTextClass,u=t.maskTextSelector,h=t.unmaskTextSelector,p=t.inlineStylesheet,m=t.maskInputOptions,f=void 0===m?{}:m,v=t.maskTextFn,y=t.maskInputFn,g=t.dataURLOptions,S=t.inlineImages,_=t.recordCanvas,b=t.keepIframeSrcFn,w=t.newlyAddedElement,k=t.ignoreCSSAttributes,E=function(e,t){if(t.hasNode(e)){var r=t.getId(e);return 1===r?void 0:r}}(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:q.Document,childNodes:[],compatMode:e.compatMode};return{type:q.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:q.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:E};case e.ELEMENT_NODE:return function(e,t){for(var r,n=t.doc,i=t.blockClass,a=t.blockSelector,s=t.unblockSelector,o=t.inlineStylesheet,l=t.maskInputOptions,d=void 0===l?{}:l,c=t.maskAttributeFn,u=t.maskInputFn,h=t.dataURLOptions,p=void 0===h?{}:h,m=t.inlineImages,f=t.recordCanvas,v=t.keepIframeSrcFn,y=t.newlyAddedElement,g=t.rootId,S=t.maskTextClass,_=t.unmaskTextClass,b=t.maskTextSelector,w=t.unmaskTextSelector,k=t.ignoreCSSAttributes,E=function(e,t,r,n){try{if(n&&e.matches(n))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var i=e.classList.length;i--;){var a=e.classList[i];if(t.test(a))return!0}if(r)return e.matches(r)}catch(e){}return!1}(e,i,a,s),C=function(e){if(e instanceof HTMLFormElement)return"form";var t=Q(e.tagName);return ec.test(t)?"div":t}(e),I={},M=e.attributes.length,x=0;x<M;x++){var T=e.attributes[x];T.name&&!ek(C,T.name,T.value)&&(I[T.name]=ew(n,C,Q(T.name),T.value,e,c,k))}if("link"===C&&o){var R=Array.from(n.styleSheets).find(t=>t.href===e.href),A=null;R&&(A=J(R)),A&&(I.rel=null,I.href=null,I.crossorigin=null,I._cssText=ev(A,R.href))}if("style"===C&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){var D=J(e.sheet);D&&(I._cssText=ev(D,eb(n)))}if("input"===C||"textarea"===C||"select"===C||"option"===C){var O=et(e),N=er(e,Z(C),O),L=e.checked;if("submit"!==O&&"button"!==O&&N){var P=eI(e,S,b,_,w,X({type:O,tagName:Z(C),maskInputOptions:d}));I.value=$({isMasked:P,element:e,value:N,maskInputFn:u})}L&&(I.checked=L)}if("option"===C&&(e.selected&&!d.select?I.selected=!0:delete I.selected),"canvas"===C&&f){if("2d"===e.__context)!function(e){var t=e.getContext("2d");if(!t)return!0;for(var r=0;r<e.width;r+=50)for(var n=0;n<e.height;n+=50){var i=t.getImageData;
1if(new Uint32Array((ee in i?i[ee]:i).call(t,r,n,Math.min(50,e.width-r),Math.min(50,e.height-n)).data.buffer).some(e=>0!==e))return!1}return!0}(e)&&(I.rr_dataURL=e.toDataURL(p.type,p.quality));else if(!("__context"in e)){var F=e.toDataURL(p.type,p.quality),B=n.createElement("canvas");B.width=e.width,B.height=e.height,F!==B.toDataURL(p.type,p.quality)&&(I.rr_dataURL=F)}}if("img"===C&&m){tC||(tI=(tC=n.createElement("canvas")).getContext("2d"));var U=e.currentSrc||e.getAttribute("src")||"<unknown-src>",z=e.crossOrigin,W=()=>{e.removeEventListener("load",W);try{tC.width=e.naturalWidth,tC.height=e.naturalHeight,tI.drawImage(e,0,0),I.rr_dataURL=tC.toDataURL(p.type,p.quality)}catch(t){if("anonymous"!==e.crossOrigin){e.crossOrigin="anonymous",e.complete&&0!==e.naturalWidth?W():e.addEventListener("load",W);return}console.warn("Cannot inline img src=".concat(U,"! Error: ").concat(t))}"anonymous"===e.crossOrigin&&(z?I.crossOrigin=z:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?W():e.addEventListener("load",W)}if(("audio"===C||"video"===C)&&(I.rr_mediaState=e.paused?"paused":"played",I.rr_mediaCurrentTime=e.currentTime),!(void 0!==y&&y)&&(e.scrollLeft&&(I.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(I.rr_scrollTop=e.scrollTop)),E){var j=e.getBoundingClientRect(),H=j.width,K=j.height;I={class:I.class,rr_width:"".concat(H,"px"),rr_height:"".concat(K,"px")}}"iframe"!==C||v(I.src)||(E||el(e)||(I.rr_src=I.src),delete I.src);try{customElements.get(C)&&(r=!0)}catch(e){}return{type:q.Element,tagName:C,attributes:I,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:E,rootId:g,isCustom:r}}(e,{doc:r,blockClass:i,blockSelector:a,unblockSelector:s,inlineStylesheet:p,maskAttributeFn:l,maskInputOptions:f,maskInputFn:y,dataURLOptions:void 0===g?{}:g,inlineImages:S,recordCanvas:_,keepIframeSrcFn:b,newlyAddedElement:void 0!==w&&w,rootId:E,maskTextClass:d,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:h,ignoreCSSAttributes:k});case e.TEXT_NODE:return function(e,t){var r,n=t.maskAllText,i=t.maskTextClass,a=t.unmaskTextClass,s=t.maskTextSelector,o=t.unmaskTextSelector,l=t.maskTextFn,d=t.maskInputOptions,c=t.maskInputFn,u=t.rootId,h=e.parentNode&&e.parentNode.tagName,p=e.textContent,m="STYLE"===h||void 0,f="SCRIPT"===h||void 0,v="TEXTAREA"===h||void 0;if(m&&p){try{e.nextSibling||e.previousSibling||(null==(r=e.parentNode.sheet)?void 0:r.cssRules)&&(p=J(e.parentNode.sheet))}catch(t){console.warn("Cannot get CSS styles from text's parentNode. Error: ".concat(t),e)}p=ev(p,eb(t.doc))}f&&(p="SCRIPT_PLACEHOLDER");var y=eI(e,i,s,a,o,n);return m||f||v||!p||!y||(p=l?l(p,e.parentElement):p.replace(/[\S]/g,"*")),v&&p&&(d.textarea||y)&&(p=c?c(p,e.parentNode):p.replace(/[\S]/g,"*")),"OPTION"===h&&p&&(p=$({isMasked:eI(e,i,s,a,o,X({type:null,tagName:h,maskInputOptions:d})),element:e,value:p,maskInputFn:c})),{type:q.Text,textContent:p||"",isStyle:m,rootId:u}}(e,{doc:r,maskAllText:o,maskTextClass:d,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:h,maskTextFn:v,maskInputOptions:f,maskInputFn:y,rootId:E});case e.CDATA_SECTION_NODE:return{type:q.CDATA,textContent:"",rootId:E};case e.COMMENT_NODE:return{type:q.Comment,textContent:e.textContent||"",rootId:E};default:return!1}}(e,{doc:r,mirror:n,blockClass:i,blockSelector:a,maskAllText:o,unblockSelector:s,maskTextClass:l,unmaskTextClass:d,maskTextSelector:c,unmaskTextSelector:u,inlineStylesheet:f,maskInputOptions:y,maskAttributeFn:g,maskTextFn:S,maskInputFn:_,dataURLOptions:k,inlineImages:C,recordCanvas:M,keepIframeSrcFn:F,newlyAddedElement:void 0!==B&&B,ignoreCSSAttributes:U});if(!j)return console.warn(e,"not serialized"),null;em=n.hasNode(e)?n.getId(e):!function(e,t){if(t.comment&&e.type===q.Comment)return!0;if(e.type===q.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===en(e.attributes.href)))return!0;else if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(eM(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===eM(e.attributes.name)||"icon"===eM(e.attributes.rel)||"apple-touch-icon"===eM(e.attributes.rel)||"shortcut icon"===eM(e.attributes.rel))))return!0;else if("meta"===e.tagName){if(t.headMetaDescKeywords&&eM(e.attributes.name).match(/^description|keywords$/))return!0;else if(t.headMetaSocial&&(eM(e.attributes.property).match(/^(og|twitter|fb):/)||eM(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===eM(e.attributes.name)))return!0;else if(t.headMetaRobots&&("robots"===eM(e.attributes.name)||"googlebot"===eM(e.attributes.name)||"bingbot"===eM(e.attributes.name)))return!0;else if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===eM(e.attributes.name)||"generator"===eM(e.attributes.name)||"framework"===eM(e.attributes.name)||"publisher"===eM(e.attributes.name)||"progid"===eM(e.attributes.name)||eM(e.attributes.property).match(/^article:/)||eM(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===eM(e.attributes.name)||"yandex-verification"===eM(e.attributes.name)||"csrf-token"===eM(e.attributes.name)||"p:domain_verify"===eM(e.attributes.name)||"verify-v1"===eM(e.attributes.name)||"verification"===eM(e.attributes.name)||"shopify-checkout-api-token"===eM(e.attributes.name)))return!0}}return!1}(j,b)&&(W||j.type!==q.Text||j.isStyle||j.textContent.trim().length)?eu():-2;var H=Object.assign(j,{id:em});if(n.add(e,H),-2===em)return null;x&&x(e);var G=!p;if(H.type===q.Element){G=G&&!H.needBlock;var Y=e.shadowRoot;Y&&V(Y)&&(H.isShadowHost=!0)}
1if((H.type===q.Document||H.type===q.Element)&&G){b.headWhitespace&&H.type===q.Element&&"head"===H.tagName&&(W=!1);var ei={doc:r,mirror:n,blockClass:i,blockSelector:a,maskAllText:o,unblockSelector:s,maskTextClass:l,unmaskTextClass:d,maskTextSelector:c,unmaskTextSelector:u,skipChild:p,inlineStylesheet:f,maskInputOptions:y,maskAttributeFn:g,maskTextFn:S,maskInputFn:_,slimDOMOptions:b,dataURLOptions:k,inlineImages:C,recordCanvas:M,preserveWhiteSpace:W,onSerialize:x,onIframeLoad:T,iframeLoadTimeout:A,onBlockedImageLoad:D,onStylesheetLoad:O,stylesheetLoadTimeout:L,keepIframeSrcFn:F,ignoreCSSAttributes:U},ea=e.childNodes?Array.from(e.childNodes):[],ed=!0,eh=!1,ep=void 0;try{for(var em,ef,ey=ea[Symbol.iterator]();!(ed=(ef=ey.next()).done);ed=!0){var eg=ef.value,eS=ex(eg,ei);eS&&H.childNodes.push(eS)}}catch(e){eh=!0,ep=e}finally{try{ed||null==ey.return||ey.return()}finally{if(eh)throw ep}}if(e.nodeType===e.ELEMENT_NODE&&e.shadowRoot){var e_=!0,eE=!1,eC=void 0;try{for(var eT,eR=Array.from(e.shadowRoot.childNodes)[Symbol.iterator]();!(e_=(eT=eR.next()).done);e_=!0){var eA=eT.value,eD=ex(eA,ei);eD&&(V(e.shadowRoot)&&(eD.isShadow=!0),H.childNodes.push(eD))}}catch(e){eE=!0,eC=e}finally{try{e_||null==eR.return||eR.return()}finally{if(eE)throw eC}}}}if(e.parentNode&&K(e.parentNode)&&V(e.parentNode)&&(H.isShadow=!0),H.type!==q.Element||"iframe"!==H.tagName||H.needBlock||function(e,t,r){var n,i=function(e){try{return e.contentWindow}catch(e){}}(e);if(i){var a=!1;try{n=i.document.readyState}catch(e){return}if("complete"!==n){var s=es(()=>{a||(t(),a=!0)},r);e.addEventListener("load",()=>{eo(s),a=!0,t()});return}var o="about:blank";if(i.location.href!==o||e.src===o||""===e.src)return es(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}}(e,()=>{var t=el(e);if(t&&T){var r=ex(t,{doc:t,mirror:n,blockClass:i,blockSelector:a,unblockSelector:s,maskAllText:o,maskTextClass:l,unmaskTextClass:d,maskTextSelector:c,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:f,maskInputOptions:y,maskAttributeFn:g,maskTextFn:S,maskInputFn:_,slimDOMOptions:b,dataURLOptions:k,inlineImages:C,recordCanvas:M,preserveWhiteSpace:W,onSerialize:x,onIframeLoad:T,iframeLoadTimeout:A,onStylesheetLoad:O,stylesheetLoadTimeout:L,keepIframeSrcFn:F,ignoreCSSAttributes:U});r&&T(e,r)}},A),H.type===q.Element&&"img"===H.tagName&&!e.complete&&H.needBlock){var eO=()=>{if(e.isConnected&&!e.complete&&D)try{var t=e.getBoundingClientRect();t.width>0&&t.height>0&&D(e,H,t)}catch(e){}e.removeEventListener("load",eO)};e.isConnected&&e.addEventListener("load",eO)}return H.type===q.Element&&"link"===H.tagName&&"string"==typeof H.attributes.rel&&("stylesheet"===H.attributes.rel||"preload"===H.attributes.rel&&"string"==typeof H.attributes.href&&"css"===en(H.attributes.href))&&function(e,t,r){var n,i=!1;try{n=e.sheet}catch(e){n=null}if(!n){var a=es(()=>{i||(t(),i=!0)},r);e.addEventListener("load",()=>{eo(a),i=!0,t()})}}(e,()=>{if(O){var t=ex(e,{doc:r,mirror:n,blockClass:i,blockSelector:a,unblockSelector:s,maskAllText:o,maskTextClass:l,unmaskTextClass:d,maskTextSelector:c,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:f,maskInputOptions:y,maskAttributeFn:g,maskTextFn:S,maskInputFn:_,slimDOMOptions:b,dataURLOptions:k,inlineImages:C,recordCanvas:M,preserveWhiteSpace:W,onSerialize:x,onIframeLoad:T,iframeLoadTimeout:A,onStylesheetLoad:O,stylesheetLoadTimeout:L,keepIframeSrcFn:F,ignoreCSSAttributes:U});t&&O(e,t)}},L),H.type===q.Element&&delete H.needBlock,H}function eT(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document,n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)}var eR="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.",eA={map:{},getId:()=>(console.error(eR),-1),getNode:()=>(console.error(eR),null),removeNodeFromMap(){console.error(eR)},has:()=>(console.error(eR),!1),reset(){console.error(eR)}};function eD(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=null,i=0;return function(){for(var a=arguments.length,s=Array(a),o=0;o<a;o++)s[o]=arguments[o];var l=Date.now();i||!1!==r.leading||(i=l);var d=t-(l-i),c=this;d<=0||d>t?(n&&(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];eY("clearTimeout")(...t)}(n),n=null),i=l,e.apply(c,s)):n||!1===r.trailing||(n=eX(()=>{i=!1===r.leading?0:Date.now(),n=null,e.apply(c,s)},d))}}function eO(e,t,r){try{if(!(t in e))return()=>{};var n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,()=>{e[t]=n}}catch(e){return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(eA=new Proxy(eA,{get:(e,t,r)=>("map"===t&&console.error(eR),Reflect.get(e,t,r))}));var eN=Date.now;function eL(e){var t,r,n,i,a,s,o=e.document;return{left:o.scrollingElement?o.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:(null==o?void 0:o.documentElement.scrollLeft)||(null==o||null==(r=o.body)||null==(t=r.parentElement)?void 0:t.scrollLeft)||(null==o||null==(n=o.body)?void 0:n.scrollLeft)||0,top:o.scrollingElement?o.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==o?void 0:o.documentElement.scrollTop)||(null==o||null==(a=o.body)||null==(i=a.parentElement)?void 0:i.scrollTop)||(null==o||null==(s=o.body)?void 0:s.scrollTop)||0}}function eP(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function eF(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function eB(e){if(!e)return null;
1try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}function eU(e,t,r,n,i){if(!e)return!1;var a=eB(e);if(!a)return!1;var s=eC(t,r);if(!i){var o=n&&a.matches(n);return s(a)&&!o}var l=eE(a,s),d=-1;return!(l<0)&&(n&&(d=eE(a,eC(null,n))),l>-1&&d<0||l<d)}function ez(e,t){return -2===t.getId(e)}function eW(e){return!!e.changedTouches}function ej(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function eH(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function eq(e){return!!(null==e?void 0:e.shadowRoot)}/[1-9][0-9]{12}/.test(Date.now().toString())||(eN=()=>new Date().getTime());class eK{getId(e){var t;return null!=(t=this.styleIDMap.get(e))?t:-1}has(e){return this.styleIDMap.has(e)}add(e,t){var r;return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r)}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}}function eV(e){var t,r,n=null;return(null==(r=e.getRootNode)||null==(t=r.call(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(n=e.getRootNode().host),n}function eJ(e){var t=e.ownerDocument;return!!t&&(t.contains(e)||function(e){var t=e.ownerDocument;if(!t)return!1;var r=function(e){for(var t,r=e;t=eV(r);)r=t;return r}(e);return t.contains(r)}(e))}var eG={};function eY(e){var t=eG[e];if(t)return t;var r=window.document,n=window[e];if(r&&"function"==typeof r.createElement)try{var i=r.createElement("iframe");i.hidden=!0,r.head.appendChild(i);var a=i.contentWindow;a&&a[e]&&(n=a[e]),r.head.removeChild(i)}catch(e){}return eG[e]=n.bind(window)}function eX(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return eY("setTimeout")(...t)}for(var e$=(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))(e$||{}),eQ=(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))(eQ||{}),eZ=(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))(eZ||{}),e0=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(e0||{}),e1=(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))(e1||{}),e2=e=>tM?function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];try{return e(...r)}catch(e){if(tM&&!0===tM(e))return()=>{};throw e}}:e,e3="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e5="undefined"==typeof Uint8Array?[]:new Uint8Array(256),e8=0;e8<e3.length;e8++)e5[e3.charCodeAt(e8)]=e8;class e4{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}function e6(e){try{return e.contentDocument}catch(e){}}function e7(e){try{return e.contentWindow}catch(e){}}class e9{parse(e){return this.parseWithConstructableStylesheet(e)||this.parseWithDetachedElement(e)}parseWithConstructableStylesheet(e){if("undefined"==typeof CSSStyleSheet||"function"!=typeof CSSStyleSheet.prototype.replaceSync)return null;try{var t=new CSSStyleSheet;t.replaceSync("x { ".concat(e," }"));var r=t.cssRules[0];if(!r||r.type!==CSSRule.STYLE_RULE)return null;return r.style}catch(e){return null}}parseWithDetachedElement(e){var t=this.getUnattachedDoc().createElement("span");return t.setAttribute("style",e),t.style}getUnattachedDoc(){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}return this.unattachedDoc}constructor(e){this.doc=e,this.unattachedDoc=null}}class te{get(e){if(e>=this.length)throw Error("Position outside of list range");for(var t=this.head,r=0;r<e;r++)t=(null==t?void 0:t.next)||null;return t}addNode(e){var t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&"__ln"in e.previousSibling){var r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&"__ln"in e.nextSibling&&e.nextSibling.__ln.previous){var n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){var t=e.__ln;
1this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}constructor(){this.length=0,this.head=null,this.tail=null}}var tt=(e,t)=>"".concat(e,"@").concat(t);class tr{init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager","ignoreCSSAttributes"].forEach(t=>{this[t]=e[t]}),this.styleDeclarationParser=new e9(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()}constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(!this.frozen&&!this.locked){for(var e=[],t=new Set,r=new te,n=e=>{for(var t=e,r=-2;-2===r;)r=(t=t&&t.nextSibling)&&this.mirror.getId(t);return r},i=i=>{if(i.parentNode&&eJ(i)){var a=K(i.parentNode)?this.mirror.getId(eV(i)):this.mirror.getId(i.parentNode),s=n(i);if(-1===a||-1===s)return r.addNode(i);var o=ex(i,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{ej(e,this.mirror)&&!eU(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),eH(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),eq(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{if(!eU(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)){this.iframeManager.attachIframe(e,t);var r=e7(e);r&&this.canvasManager.addWindow(r),this.shadowDomManager.observeAttachShadow(e)}},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,r)=>{var n=r.width,i=r.height;this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:"".concat(n,"px"),height:"".concat(i,"px")}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});o&&(e.push({parentId:a,nextId:s,node:o}),t.add(o.id))}};this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());var a=!0,s=!1,o=void 0;try{for(var l,d=this.movedSet[Symbol.iterator]();!(a=(l=d.next()).done);a=!0){var c=l.value;(!ti(this.removes,c,this.mirror)||this.movedSet.has(c.parentNode))&&i(c)}}catch(e){s=!0,o=e}finally{try{a||null==d.return||d.return()}finally{if(s)throw o}}var u=!0,h=!1,p=void 0;try{for(var m,f=this.addedSet[Symbol.iterator]();!(u=(m=f.next()).done);u=!0){var v=m.value;ta(this.droppedSet,v)||ti(this.removes,v,this.mirror)?ta(this.movedSet,v)?i(v):this.droppedSet.add(v):i(v)}}catch(e){h=!0,p=e}finally{try{u||null==f.return||f.return()}finally{if(h)throw p}}for(var y=null;r.length;){var g=null;if(y){var S=this.mirror.getId(y.value.parentNode),_=n(y.value);-1!==S&&-1!==_&&(g=y)}if(!g)for(var b=r.tail;b;){var w=b;if(b=b.previous,w){var k=this.mirror.getId(w.value.parentNode);
1if(-1===n(w.value))continue;if(-1!==k){g=w;break}var E=w.value;if(E.parentNode&&E.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var C=E.parentNode.host;if(-1!==this.mirror.getId(C)){g=w;break}}}}if(!g){for(;r.head;)r.removeNode(r.head.value);break}y=g.previous,r.removeNode(g.value),i(g.value)}var I={texts:this.texts.map(e=>({id:this.mirror.getId(e.node),value:e.value})).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{var t=e.attributes;if("string"==typeof t.style){var r=JSON.stringify(e.styleDiff),n=JSON.stringify(e._unchangedStyles);r.length<t.style.length&&(r+n).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(I.texts.length||I.attributes.length||I.removes.length||I.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(I))}},this.processMutation=e=>{if(!ez(e.target,this.mirror))switch(e.type){case"characterData":var t=e.target.textContent;eU(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:eI(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,eB(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break;case"attributes":var r=e.target,n=e.attributeName,i=e.target.getAttribute(n);if("value"===n){var a=et(r),s=r.tagName;i=er(r,s,a);var o=X({maskInputOptions:this.maskInputOptions,tagName:s,type:a});i=$({isMasked:eI(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,o),element:r,value:i,maskInputFn:this.maskInputFn})}if(eU(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||i===e.oldValue)return;var l=this.attributeMap.get(e.target);if("IFRAME"===r.tagName&&"src"===n&&!this.keepIframeSrcFn(i)){if(e6(r))return;n="rr_src"}if(l||(l={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(l),this.attributeMap.set(e.target,l)),"type"===n&&"INPUT"===r.tagName&&"password"===(e.oldValue||"").toLowerCase()&&r.setAttribute("data-rr-is-password","true"),!ek(r.tagName,n)&&(l.attributes[n]=ew(this.doc,Q(r.tagName),Q(n),i,r,this.maskAttributeFn),"style"===n)){var d=e.oldValue?this.styleDeclarationParser.parse(e.oldValue):null,c=!0,u=!1,h=void 0;try{for(var p,m=Array.from(r.style)[Symbol.iterator]();!(c=(p=m.next()).done);c=!0){var f=p.value,v=r.style.getPropertyValue(f),y=r.style.getPropertyPriority(f);v!==((null==d?void 0:d.getPropertyValue(f))||"")||y!==((null==d?void 0:d.getPropertyPriority(f))||"")?""===y?l.styleDiff[f]=v:l.styleDiff[f]=[v,y]:l._unchangedStyles[f]=[v,y]}}catch(e){u=!0,h=e}finally{try{c||null==m.return||m.return()}finally{if(u)throw h}}if(d){var g=!0,S=!1,_=void 0;try{for(var b,w=Array.from(d)[Symbol.iterator]();!(g=(b=w.next()).done);g=!0){var k=b.value;""===r.style.getPropertyValue(k)&&(l.styleDiff[k]=!1)}}catch(e){S=!0,_=e}finally{try{g||null==w.return||w.return()}finally{if(S)throw _}}}}break;case"childList":if(eU(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{var r=this.mirror.getId(t),n=K(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);eU(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||ez(t,this.mirror)||-1===this.mirror.getId(t)||(this.addedSet.has(t)?(tn(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===r||function e(t,r){if(K(t))return!1;var n=r.getId(t);return!r.has(n)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||e(t.parentNode,r))}(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[tt(r,n)]?tn(this.movedSet,t):this.removes.push({parentId:n,id:r,isShadow:!!(K(e.target)&&V(e.target))||void 0})),this.mapRemoves.push(t))})}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(ez(e,this.mirror))return;this.movedSet.add(e);var r=null;t&&this.mirror.hasNode(t)&&(r=this.mirror.getId(t)),r&&-1!==r&&(this.movedMap[tt(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);!eU(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&(e.childNodes&&e.childNodes.forEac
1h(e=>this.genAdds(e)),eq(e)&&e.shadowRoot.childNodes.forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}}}}function tn(e,t){var r;e.delete(t),null==(r=t.childNodes)||r.forEach(t=>tn(e,t))}function ti(e,t,r){return 0!==e.length&&function(e,t,r){for(var n=t.parentNode;n;){var i=function(){var t=r.getId(n);if(e.some(e=>e.id===t))return{v:!0};n=n.parentNode}();if("object"===(0,l._)(i))return i.v}return!1}(e,t,r)}function ta(e,t){return 0!==e.size&&function e(t,r){var n=r.parentNode;return!!n&&(!!t.has(n)||e(t,n))}(e,t)}var ts=[];function to(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function tl(e,t){var r,n,i,a=new tr;ts.push(a),a.init(e);var s=window.MutationObserver||window.__rrMutationObserver,o=null==(i=window)||null==(n=i.Zone)||null==(r=n.__symbol__)?void 0:r.call(n,"MutationObserver");o&&window[o]&&(s=window[o]);var l=new s(e2(t=>{e.onMutation&&!1===e.onMutation(t)||a.processMutations.bind(a)(t)}));return l.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),l}function td(e){var t=e.scrollCb,r=e.doc,n=e.mirror,i=e.blockClass,a=e.blockSelector,s=e.unblockSelector,o=e.sampling;return eT("scroll",e2(eD(e2(e=>{var o=to(e);if(!(!o||eU(o,i,a,s,!0))){var l=n.getId(o);if(o===r&&r.defaultView){var d=eL(r.defaultView);t({id:l,x:d.left,y:d.top})}else t({id:l,x:o.scrollLeft,y:o.scrollTop})}}),o.scroll||100)),r)}var tc=["INPUT","TEXTAREA","SELECT"],tu=new WeakMap;function th(e){var t=[];if(tv("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||tv("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||tv("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||tv("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){var r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else if(e.parentStyleSheet){var n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}function tp(e,t,r){var n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function tm(e,t){var r,n,i,a=e.mirror,s=e.stylesheetManager,o=null;o="#document"===t.nodeName?a.getId(t):a.getId(t.host);var l="#document"===t.nodeName?null==(r=t.defaultView)?void 0:r.Document:null==(i=t.ownerDocument)||null==(n=i.defaultView)?void 0:n.ShadowRoot,d=(null==l?void 0:l.prototype)?Object.getOwnPropertyDescriptor(null==l?void 0:l.prototype,"adoptedStyleSheets"):void 0;return null!==o&&-1!==o&&l&&d?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:d.configurable,enumerable:d.enumerable,get(){var e;return null==(e=d.get)?void 0:e.call(this)},set(e){var t,r=null==(t=d.set)?void 0:t.call(this,e);if(null!==o&&-1!==o)try{s.adoptStyleSheets(e,o)}catch(e){}return r}}),e2(()=>{Object.defineProperty(t,"adoptedStyleSheets",{configurable:d.configurable,enumerable:d.enumerable,get:d.get,set:d.set})})):()=>{}}function tf(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1];var t=e.doc.defaultView;if(!t)return()=>{};e.recordDOM&&(ea=tl(e,e.doc));var r=function(e){var t,r=e.mousemoveCb,n=e.sampling,i=e.doc,a=e.mirror;if(!1===n.mousemove)return()=>{};var s="number"==typeof n.mousemove?n.mousemove:50,o="number"==typeof n.mousemoveCallback?n.mousemoveCallback:500,l=[],d=eD(e2(e=>{var n=Date.now()-t;r(l.map(e=>(e.timeOffset-=n,e)),e),l=[],t=null}),o),c=e2(eD(e2(e=>{var r=to(e),n=eW(e)?e.changedTouches[0]:e,i=n.clientX,s=n.clientY;t||(t=eN()),l.push({x:i,y:s,id:a.getId(r),timeOffset:eN()-t}),d("undefined"!=typeof DragEvent&&e instanceof DragEvent?eQ.Drag:e instanceof MouseEvent?eQ.MouseMove:eQ.TouchMove)}),s,{trailing:!1})),u=[eT("mousemove",c,i),eT("touchmove",c,i),eT("drag",c,i)];return e2(()=>{u.forEach(e=>e())})}(e),n=function(e){var t=e.mouseInteractionCb,r=e.doc,n=e.mirror,i=e.blockClass,s=e.blockSelector,o=e.unblockSelector,l=e.sampling;if(!1===l.mouseInteraction)return()=>{};var d=!0===l.mouseInteraction||void 0===l.mouseInteraction?{}:l.mouseInteraction,c=[],u=null;return Object.keys(eZ).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==d[e]).forEac
1h(e=>{var l=Q(e),d=r=>{var l=to(r);if(!eU(l,i,s,o,!0)){var d=null,c=e;if("pointerType"in r){switch(r.pointerType){case"mouse":d=e0.Mouse;break;case"touch":d=e0.Touch;break;case"pen":d=e0.Pen}d===e0.Touch?eZ[e]===eZ.MouseDown?c="TouchStart":eZ[e]===eZ.MouseUp&&(c="TouchEnd"):e0.Pen}else eW(r)&&(d=e0.Touch);null!==d?(u=d,(c.startsWith("Touch")&&d===e0.Touch||c.startsWith("Mouse")&&d===e0.Mouse)&&(d=null)):eZ[e]===eZ.Click&&(d=u,u=null);var h=eW(r)?r.changedTouches[0]:r;if(h){var p=n.getId(l),m=h.clientX,f=h.clientY;e2(t)((0,a._)({type:eZ[c],id:p,x:m,y:f},null!==d&&{pointerType:d}))}}};if(window.PointerEvent)switch(eZ[e]){case eZ.MouseDown:case eZ.MouseUp:l=l.replace("mouse","pointer");break;case eZ.TouchStart:case eZ.TouchEnd:return}c.push(eT(l,d,r))}),e2(()=>{c.forEach(e=>e())})}(e),i=td(e),l=(b={win:t},w=e.viewportResizeCb,k=b.win,E=-1,C=-1,eT("resize",e2(eD(e2(()=>{var e=eP(),t=eF();(E!==e||C!==t)&&(w({width:Number(t),height:Number(e)}),E=e,C=t)}),200)),k)),d=function(e){var t=e.inputCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,l=e.unblockSelector,d=e.ignoreClass,c=e.ignoreSelector,u=e.maskInputOptions,h=e.maskInputFn,p=e.sampling,m=e.userTriggeredOnInput,f=e.maskTextClass,v=e.unmaskTextClass,y=e.maskTextSelector,g=e.unmaskTextSelector;function S(e){var t=to(e),n=e.isTrusted,a=t&&Z(t.tagName);if("OPTION"===a&&(t=t.parentElement),!(!t||!a||0>tc.indexOf(a)||eU(t,i,o,l,!0))){var s=t;if(!(s.classList.contains(d)||c&&s.matches(c))){var p=et(t),S=er(s,a,p),b=!1,w=X({maskInputOptions:u,tagName:a,type:p}),k=eI(t,f,y,v,g,w);("radio"===p||"checkbox"===p)&&(b=t.checked),S=$({isMasked:k,element:t,value:S,maskInputFn:h}),_(t,m?{text:S,isChecked:b,userTriggered:n}:{text:S,isChecked:b});var E=t.name;"radio"===p&&E&&b&&r.querySelectorAll('input[type="radio"][name="'.concat(E,'"]')).forEach(e=>{if(e!==t){var r=$({isMasked:k,element:e,value:er(e,a,p),maskInputFn:h});_(e,m?{text:r,isChecked:!b,userTriggered:!1}:{text:r,isChecked:!b})}})}}}function _(e,r){var i=tu.get(e);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){tu.set(e,r);var o=n.getId(e);e2(t)((0,s._)((0,a._)({},r),{id:o}))}}var b=("last"===p.input?["change"]:["input","change"]).map(e=>eT(e,e2(S),r)),w=r.defaultView;if(!w)return()=>{b.forEach(e=>e())};var k=w.Object.getOwnPropertyDescriptor(w.HTMLInputElement.prototype,"value"),E=[[w.HTMLInputElement.prototype,"value"],[w.HTMLInputElement.prototype,"checked"],[w.HTMLSelectElement.prototype,"value"],[w.HTMLTextAreaElement.prototype,"value"],[w.HTMLSelectElement.prototype,"selectedIndex"],[w.HTMLOptionElement.prototype,"selected"]];return k&&k.set&&b.push(...E.map(e=>(function e(t,r,n,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:window,s=a.Object.getOwnPropertyDescriptor(t,r);return a.Object.defineProperty(t,r,i?n:{set(e){eX(()=>{n.set.call(this,e)},0),s&&s.set&&s.set.call(this,e)}}),()=>e(t,r,s||{},!0)})(e[0],e[1],{set(){e2(S)({target:this,isTrusted:!1})}},!1,w))),e2(()=>{b.forEach(e=>e())})}(e),c=(I=e.mediaInteractionCb,M=e.blockClass,x=e.blockSelector,T=e.unblockSelector,R=e.mirror,A=e.sampling,D=e.doc,N=[eT("play",(O=e2(e=>eD(e2(t=>{var r=to(t);if(!(!r||eU(r,M,x,T,!0))){var n=r.currentTime,i=r.volume,a=r.muted,s=r.playbackRate;I({type:e,id:R.getId(r),currentTime:n,volume:i,muted:a,playbackRate:s})}}),A.media||500)))(e1.Play),D),eT("pause",O(e1.Pause),D),eT("seeked",O(e1.Seeked),D),eT("volumechange",O(e1.VolumeChange),D),eT("ratechange",O(e1.RateChange),D)],e2(()=>{N.forEach(e=>e())})),u=()=>{},h=()=>{},p=()=>{},m=()=>{};e.recordDOM&&(u=function(e,t){var r,n,i=e.styleSheetRuleCb,a=e.mirror,s=e.stylesheetManager,l=t.win;if(!l.CSSStyleSheet||!l.CSSStyleSheet.prototype)return()=>{};var d=l.CSSStyleSheet.prototype.insertRule;l.CSSStyleSheet.prototype.insertRule=new Proxy(d,{apply:e2((e,t,r)=>{var n=(0,o._)(r,2),l=n[0],d=n[1],c=tp(t,a,s.styleMirror),u=c.id,h=c.styleId;return(u&&-1!==u||h&&-1!==h)&&i({id:u,styleId:h,adds:[{rule:l,index:d}]}),e.apply(t,r)})});var c=l.CSSStyleSheet.prototype.deleteRule;l.CSSStyleSheet.prototype.deleteRule=new Proxy(c,{apply:e2((e,t,r)=>{var n=(0,o._)(r,1)[0],l=tp(t,a,s.styleMirror),d=l.id,c=l.styleId;return(d&&-1!==d||c&&-1!==c)&&i({id:d,styleId:c,removes:[{index:n}]}),e.apply(t,r)}
1)}),l.CSSStyleSheet.prototype.replace&&(r=l.CSSStyleSheet.prototype.replace,l.CSSStyleSheet.prototype.replace=new Proxy(r,{apply:e2((e,t,r)=>{var n=(0,o._)(r,1)[0],l=tp(t,a,s.styleMirror),d=l.id,c=l.styleId;return(d&&-1!==d||c&&-1!==c)&&i({id:d,styleId:c,replace:n}),e.apply(t,r)})})),l.CSSStyleSheet.prototype.replaceSync&&(n=l.CSSStyleSheet.prototype.replaceSync,l.CSSStyleSheet.prototype.replaceSync=new Proxy(n,{apply:e2((e,t,r)=>{var n=(0,o._)(r,1)[0],l=tp(t,a,s.styleMirror),d=l.id,c=l.styleId;return(d&&-1!==d||c&&-1!==c)&&i({id:d,styleId:c,replaceSync:n}),e.apply(t,r)})}));var u={};ty("CSSGroupingRule")?u.CSSGroupingRule=l.CSSGroupingRule:(ty("CSSMediaRule")&&(u.CSSMediaRule=l.CSSMediaRule),ty("CSSConditionRule")&&(u.CSSConditionRule=l.CSSConditionRule),ty("CSSSupportsRule")&&(u.CSSSupportsRule=l.CSSSupportsRule));var h={};return Object.entries(u).forEach(e=>{var t=(0,o._)(e,2),r=t[0],n=t[1];h[r]={insertRule:n.prototype.insertRule,deleteRule:n.prototype.deleteRule},n.prototype.insertRule=new Proxy(h[r].insertRule,{apply:e2((e,t,r)=>{var n=(0,o._)(r,2),l=n[0],d=n[1],c=tp(t.parentStyleSheet,a,s.styleMirror),u=c.id,h=c.styleId;return(u&&-1!==u||h&&-1!==h)&&i({id:u,styleId:h,adds:[{rule:l,index:[...th(t),d||0]}]}),e.apply(t,r)})}),n.prototype.deleteRule=new Proxy(h[r].deleteRule,{apply:e2((e,t,r)=>{var n=(0,o._)(r,1)[0],l=tp(t.parentStyleSheet,a,s.styleMirror),d=l.id,c=l.styleId;return(d&&-1!==d||c&&-1!==c)&&i({id:d,styleId:c,removes:[{index:[...th(t),n]}]}),e.apply(t,r)})})}),e2(()=>{l.CSSStyleSheet.prototype.insertRule=d,l.CSSStyleSheet.prototype.deleteRule=c,r&&(l.CSSStyleSheet.prototype.replace=r),n&&(l.CSSStyleSheet.prototype.replaceSync=n),Object.entries(u).forEach(e=>{var t=(0,o._)(e,2),r=t[0],n=t[1];n.prototype.insertRule=h[r].insertRule,n.prototype.deleteRule=h[r].deleteRule})})}(e,{win:t}),h=tm(e,e.doc),L=e.styleDeclarationCb,P=e.mirror,F=e.ignoreCSSAttributes,B=e.stylesheetManager,z=(U=({win:t}).win).CSSStyleDeclaration.prototype.setProperty,U.CSSStyleDeclaration.prototype.setProperty=new Proxy(z,{apply:e2((e,t,r)=>{var n,i=(0,o._)(r,3),a=i[0],s=i[1],l=i[2];if(F.has(a))return z.apply(t,[a,s,l]);var d=tp(null==(n=t.parentRule)?void 0:n.parentStyleSheet,P,B.styleMirror),c=d.id,u=d.styleId;return(c&&-1!==c||u&&-1!==u)&&L({id:c,styleId:u,set:{property:a,value:s,priority:l},index:th(t.parentRule)}),e.apply(t,r)})}),W=U.CSSStyleDeclaration.prototype.removeProperty,U.CSSStyleDeclaration.prototype.removeProperty=new Proxy(W,{apply:e2((e,t,r)=>{var n,i=(0,o._)(r,1)[0];if(F.has(i))return W.apply(t,[i]);var a=tp(null==(n=t.parentRule)?void 0:n.parentStyleSheet,P,B.styleMirror),s=a.id,l=a.styleId;return(s&&-1!==s||l&&-1!==l)&&L({id:s,styleId:l,remove:{property:i},index:th(t.parentRule)}),e.apply(t,r)})}),p=e2(()=>{U.CSSStyleDeclaration.prototype.setProperty=z,U.CSSStyleDeclaration.prototype.removeProperty=W}),e.collectFonts&&(m=function(e){var t=e.fontCb,r=e.doc,n=r.defaultView;if(!n)return()=>{};var i=[],a=new WeakMap,s=n.FontFace;n.FontFace=function(e,t,r){var n=new s(e,t,r);return a.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};var o=eO(r.fonts,"add",function(e){return function(r){return eX(e2(()=>{var e=a.get(r);e&&(t(e),a.delete(r))}),0),e.apply(this,[r])}});return i.push(()=>{n.FontFace=s}),i.push(o),e2(()=>{i.forEach(e=>e())})}(e)));var f=(j=e.doc,H=e.mirror,q=e.blockClass,K=e.blockSelector,V=e.unblockSelector,J=e.selectionCb,G=!0,(Y=e2(()=>{var e=j.getSelection();if(e&&(!G||null==e||!e.isCollapsed)){G=e.isCollapsed||!1;for(var t=[],r=e.rangeCount||0,n=0;n<r;n++){var i=e.getRangeAt(n),a=i.startContainer,s=i.startOffset,o=i.endContainer,l=i.endOffset;eU(a,q,K,V,!0)||eU(o,q,K,V,!0)||t.push({start:H.getId(a),startOffset:s,end:H.getId(o),endOffset:l})}J({ranges:t})}}))(),eT("selectionchange",Y)),v=(ee=e.doc,en=e.customElementCb,(ei=ee.defaultView)&&ei.customElements?eO(ei.customElements,"define",function(e){return function(t,r,n){try{en({define:{name:t}})}catch(e){}return e.apply(this,[t,r,n])}}):()=>{}),y=[],g=!0,S=!1,_=void 0;try{for(var b,w,k,E,C,I,M,x,T,R,A,D,O,N,L,P,F,B,U,z,W,j,H,q,K,V,J,G,Y,ee,en,ei,ea,es,eo=e.plugins[Symbol.iterator]();!(g=(es=eo.next()).done);g=!0){var el=es.value;y.push(el.observer(el.callback,t,el.options))}}catch(e){S=!0,_=e}finally{try{g||null==eo.return||eo.return()}finally{if(S)throw _}}return e2(()=>
1{ts.forEach(e=>e.reset()),null==ea||ea.disconnect(),r(),n(),i(),l(),d(),c(),u(),h(),p(),m(),f(),v(),y.forEach(e=>e())})}function tv(e){return void 0!==window[e]}function ty(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class tg{getId(e,t,r,n){var i=r||this.getIdToRemoteIdMap(e),a=n||this.getRemoteIdToIdMap(e),s=i.get(t);return s||(s=this.generateIdFn(),i.set(t,s),a.set(s,t)),s}getIds(e,t){var r=this.getIdToRemoteIdMap(e),n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,r,n))}getRemoteId(e,t,r){var n=r||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;var i=n.get(t);return i||-1}getRemoteIds(e,t){var r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,r))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){var t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){var t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}}class tS{addIframe(){}addLoadListener(){}attachIframe(){}constructor(){this.crossOriginIframeMirror=new tg(eu),this.crossOriginIframeRootIdMap=new WeakMap}}class t_{addIframe(e){this.iframes.set(e,!0);var t=e7(e);t&&this.crossOriginIframeMap.set(t,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&(null==(n=e7(e))||n.addEventListener("message",this.handleMessage.bind(this))),null==(r=this.loadListener)||r.call(this,e);var r,n,i=e6(e);i&&i.adoptedStyleSheets&&i.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(i.adoptedStyleSheets,this.mirror.getId(i))}handleMessage(e){if("rrweb"===e.data.type&&e.origin===e.data.origin&&e.source){var t=this.crossOriginIframeMap.get(e.source);if(t){var r=this.transformCrossOriginEvent(t,e.data.event);r&&this.wrappedEmit(r,e.data.isCheckout)}}}transformCrossOriginEvent(e,t){switch(t.type){case e$.FullSnapshot:this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);var r,n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:e$.IncrementalSnapshot,data:{source:eQ.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case e$.Meta:case e$.Load:case e$.DomContentLoaded:break;case e$.Plugin:return t;case e$.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case e$.IncrementalSnapshot:switch(t.data.source){case eQ.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);var r=this.crossOriginIframeRootIdMap.get(e);r&&this.patchRootIdOnNode(t.node,r)}),t.data.removes.forEach(t=>{this.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,["id"])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case eQ.Drag:case eQ.TouchMove:case eQ.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case eQ.ViewportResize:return!1;case eQ.MediaInteraction:case eQ.MouseInteraction:case eQ.Scroll:case eQ.CanvasMutation:case eQ.Input:return this.replaceIds(t.data,e,["id"]),t;case eQ.StyleSheetRule:case eQ.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case eQ.Font:return t;case eQ.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case eQ.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(r=t.data.styles)||r.forEach(t=>{this.replaceStyleIds(t,e,["styleId"])}),t}}return!1}replace(e,t,r,n){var i=!0,a=!1,s=void 0;try{for(var o,l=n[Symbol.iterator]();!(i=(o=l.next()).done);i=!0){var d=o.value;(Array.isArray(t[d])||"number"==typeof t[d])&&(Array.isArray(t[d])?t[d]=e.getIds(r,t[d]):t[d]=e.getId(r,t[d]))}}catch(e){a=!0,s=e}finally{try{i||null==l.return||l.return()}finally{if(a)throw s}}return t}replaceIds(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)}replaceStyleIds(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEac
1h(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===q.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new tg(eu),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new tg(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}}class tb{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class tw{init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(V(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);var r=tl((0,s._)((0,a._)({},this.bypassOptions),{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(td((0,s._)((0,a._)({},this.bypassOptions),{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),eX(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(tm({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}}observeAttachShadow(e){var t=e6(e),r=e7(e);t&&r&&this.patchAttachShadow(r.Element,t)}patchAttachShadow(e,t){var r=this;this.restoreHandlers.push(eO(e.prototype,"attachShadow",function(e){return function(n){var i=e.call(this,n);return this.shadowRoot&&eJ(this)&&r.addShadowRoot(this.shadowRoot,t),i}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}}class tk{attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0!==e.length){var r={id:t,styleIds:[]},n=[],i=!0,a=!1,s=void 0;try{for(var o,l=e[Symbol.iterator]();!(i=(o=l.next()).done);i=!0){var d=o.value,c=void 0;this.styleMirror.has(d)?c=this.styleMirror.getId(d):(c=this.styleMirror.add(d),n.push({styleId:c,rules:Array.from(d.rules||CSSRule,(e,t)=>({rule:G(e),index:t}))})),r.styleIds.push(c)}}catch(e){a=!0,s=e}finally{try{i||null==l.return||l.return()}finally{if(a)throw s}}n.length>0&&(r.styles=n),this.adoptedStyleSheetCb(r)}}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new eK,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}}class tE{inOtherBuffer(e,t){var r=this.nodeMap.get(e);return r&&Array.from(r).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];eY("requestAnimationFrame")(...t)}(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}constructor(){this.nodeMap=new WeakMap,this.active=!1}}try{if(2!==Array.from([1],e=>2*e)[0]){var tC,tI,tM,tx,tT,tR,tA=document.createElement("iframe");document.body.appendChild(tA),Array.from=(null==(tR=tA.contentWindow)?void 0:tR.Array.from)||Array.from,document.body.removeChild(tA)}}catch(e){console.debug("Unable to override Array.from",e)}var tD=new Y;function tO(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.emit,r=e.checkoutEveryNms,n=e.checkoutEveryNth,i=e.blockClass,s=void 0===i?"rr-block":i,o=e.blockSelector,l=void 0===o?null:o,d=e.unblockSelector,c=void 0===d?null:d,u=e.ignoreClass,h=void 0===u?"rr-ignore":u,p=e.ignoreSelector,m=void 0===p?null:p,f=e.maskAllText,v=void 0!==f&&f,y=e.maskTextClass,g=void 0===y?"rr-mask":y,S=e.unmaskTextClass,_=void 0===S?null:S,b=e.maskTextSelector,w=void 0===b?null:b,k=e.unmaskTextSelector,E=void 0===k?null:k,C=e.inlineStylesheet,I=void 0===C||C,M=e.maskAllInputs,x=e.maskInputOptions,T=e.slimDOMOptions,R=e.maskAttributeFn,A=e.maskInputFn,D=e.maskTextFn,O=e.maxCanvasSize,N=e.packFn,L=e.sampling,P=void 0===L?{}:L,F=e.dataURLOptions,B=void 0===F?{}:F,U=e.mousemoveWait,z=e.recordDOM,W=void 0===z||z,j=e.recordCanvas,H=void 0!==j&&j,q=e.recordCrossOriginIframes,K=void 0!==q&&q,V=e.recordAfter,J=void 0===V?"DOMContentLoaded"===e.recordAfter?e.recordAfter:"load":V,G=e.userTriggeredOnInput,X=void 0!==G&&G,$=e.collectFonts,Q=void 0!==$&&$,Z=e.inlineImages,ee=void 0!==Z&&Z,et=e.plugins,er=e.keepIframeSrcFn,en=void 0===er?()=>!1:er,ei=e.ignoreCSSAttributes,ea=void 0===ei?new Set([]):ei,es=e.errorHandler,eo=e.onMutation,el=e.getCanvasManager;
1tM=es;var ed=!K||window.parent===window,ec=!1;if(!ed)try{window.parent.document&&(ec=!1)}catch(e){ec=!0}if(ed&&!t)throw Error("emit function is required");if(!ed&&!ec)return()=>{};void 0!==U&&void 0===P.mousemove&&(P.mousemove=U),tD.reset();var eu=!0===M?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==x?x:{},eh=!0===T||"all"===T?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===T,headMetaDescKeywords:"all"===T}:T||{};!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;if("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){var t=this;Node.prototype.contains=function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];var i=r[0];if(!(0 in r))throw TypeError("1 argument is required");do if(t===i)return!0;while(i=i&&i.parentNode);return!1}}}();var ep=0,em=e=>{var t=!0,r=!1,n=void 0;try{for(var i,a=(et||[])[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var s=i.value;s.eventProcessor&&(e=s.eventProcessor(e))}}catch(e){r=!0,n=e}finally{try{t||null==a.return||a.return()}finally{if(r)throw n}}return N&&!ec&&(e=N(e)),e};tx=(e,i)=>{var a;if(e.timestamp=eN(),(null==(a=ts[0])?void 0:a.isFrozen())&&e.type!==e$.FullSnapshot&&(e.type!==e$.IncrementalSnapshot||e.data.source!==eQ.Mutation)&&ts.forEach(e=>e.unfreeze()),ed)null==t||t(em(e),i);else if(ec){var s={type:"rrweb",event:em(e),origin:window.location.origin,isCheckout:i};window.parent.postMessage(s,"*")}if(e.type===e$.FullSnapshot)ek=e,ep=0;else if(e.type===e$.IncrementalSnapshot){if(e.data.source===eQ.Mutation&&e.data.isAttachIframe)return;ep++;var o=n&&ep>=n,l=r&&ek&&e.timestamp-ek.timestamp>r;(o||l)&&eD(!0)}};var ef=e=>{tx({type:e$.IncrementalSnapshot,data:(0,a._)({source:eQ.Mutation},e)})},ev=e=>tx({type:e$.IncrementalSnapshot,data:(0,a._)({source:eQ.Scroll},e)}),ey=e=>tx({type:e$.IncrementalSnapshot,data:(0,a._)({source:eQ.CanvasMutation},e)}),eg=new tk({mutationCb:ef,adoptedStyleSheetCb:e=>tx({type:e$.IncrementalSnapshot,data:(0,a._)({source:eQ.AdoptedStyleSheet},e)})}),eS="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new tS:new t_({mirror:tD,mutationCb:ef,stylesheetManager:eg,recordCrossOriginIframes:K,wrappedEmit:tx}),e_=!0,eb=!1,ew=void 0;try{for(var ek,eE,eC=(et||[])[Symbol.iterator]();!(e_=(eE=eC.next()).done);e_=!0){var eI=eE.value;eI.getMirror&&eI.getMirror({nodeMirror:tD,crossOriginIframeMirror:eS.crossOriginIframeMirror,crossOriginIframeStyleMirror:eS.crossOriginIframeStyleMirror})}}catch(e){eb=!0,ew=e}finally{try{e_||null==eC.return||eC.return()}finally{if(eb)throw ew}}var eM=new tE,eR=function(e,t){try{return e?e(t):new e4}catch(e){return console.warn("Unable to initialize CanvasManager"),new e4}}(el,{mirror:tD,win:window,mutationCb:e=>tx({type:e$.IncrementalSnapshot,data:(0,a._)({source:eQ.CanvasMutation},e)}),recordCanvas:H,blockClass:s,blockSelector:l,unblockSelector:c,maxCanvasSize:void 0===O?null:O,sampling:P.canvas,dataURLOptions:B,errorHandler:es}),eA="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new tb:new tw({mutationCb:ef,scrollCb:ev,bypassOptions:{onMutation:eo,blockClass:s,blockSelector:l,unblockSelector:c,maskAllText:v,maskTextClass:g,unmaskTextClass:_,maskTextSelector:w,unmaskTextSelector:E,inlineStylesheet:I,maskInputOptions:eu,dataURLOptions:B,maskAttributeFn:R,maskTextFn:D,maskInputFn:A,recordCanvas:H,inlineImages:ee,sampling:P,slimDOMOptions:eh,iframeManager:eS,stylesheetManager:eg,canvasManager:eR,keepIframeSrcFn:en,processedNodeManager:eM,ignoreCSSAttributes:ea},mirror:tD}),eD=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(W){tx({type:e$.Meta,data:{href:window.location.href,width:eF(),height:eP()}}
1,e),eg.reset(),eA.init(),ts.forEach(e=>e.lock());var t,r,n,i,a,o,d,u,h,p,m,f,y,S,b,k,C,M,x,T,O,N,L,P,F,U,z,j,q,K,V,J,G=(t=document,i=void 0===(n=(r={mirror:tD,blockClass:s,blockSelector:l,unblockSelector:c,maskAllText:v,maskTextClass:g,unmaskTextClass:_,maskTextSelector:w,unmaskTextSelector:E,inlineStylesheet:I,maskAllInputs:eu,maskAttributeFn:R,maskInputFn:A,maskTextFn:D,slimDOM:eh,dataURLOptions:B,recordCanvas:H,inlineImages:ee,onSerialize:e=>{ej(e,tD)&&eS.addIframe(e),eH(e,tD)&&eg.trackLinkElement(e),eq(e)&&eA.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{eS.attachIframe(e,t);var r=e7(e);r&&eR.addWindow(r),eA.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{eg.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,r)=>{var n=r.width,i=r.height;ef({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:"".concat(n,"px"),height:"".concat(i,"px")}}}]})},keepIframeSrcFn:en,ignoreCSSAttributes:ea}).mirror)?new Y:n,a=r.blockClass,o=r.blockSelector,d=r.unblockSelector,u=r.maskAllText,h=r.maskTextClass,p=r.unmaskTextClass,m=r.maskTextSelector,f=r.unmaskTextSelector,y=r.inlineStylesheet,S=r.inlineImages,b=r.recordCanvas,C=void 0!==(k=r.maskAllInputs)&&k,M=r.maskAttributeFn,x=r.maskTextFn,T=r.maskInputFn,N=void 0!==(O=r.slimDOM)&&O,L=r.dataURLOptions,P=r.preserveWhiteSpace,F=r.onSerialize,U=r.onIframeLoad,z=r.iframeLoadTimeout,j=r.onBlockedImageLoad,q=r.onStylesheetLoad,K=r.stylesheetLoadTimeout,ex(t,{doc:t,mirror:i,blockClass:void 0===a?"rr-block":a,blockSelector:void 0===o?null:o,unblockSelector:void 0===d?null:d,maskAllText:void 0!==u&&u,maskTextClass:void 0===h?"rr-mask":h,unmaskTextClass:void 0===p?null:p,maskTextSelector:void 0===m?null:m,unmaskTextSelector:void 0===f?null:f,skipChild:!1,inlineStylesheet:void 0===y||y,maskInputOptions:!0===C?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===C?{}:C,maskAttributeFn:M,maskTextFn:x,maskInputFn:T,slimDOMOptions:!0===N||"all"===N?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===N,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===N?{}:N,dataURLOptions:L,inlineImages:void 0!==S&&S,recordCanvas:void 0!==b&&b,preserveWhiteSpace:P,onSerialize:F,onIframeLoad:U,iframeLoadTimeout:z,onBlockedImageLoad:j,onStylesheetLoad:q,stylesheetLoadTimeout:K,keepIframeSrcFn:void 0===(V=r.keepIframeSrcFn)?()=>!1:V,newlyAddedElement:!1,ignoreCSSAttributes:void 0===(J=r.ignoreCSSAttributes)?new Set([]):J}));if(!G)return console.warn("Failed to snapshot the document");tx({type:e$.FullSnapshot,data:{node:G,initialOffset:eL(window)}}),ts.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&eg.adoptStyleSheets(document.adoptedStyleSheets,tD.getId(document))}};tT=eD;try{var eO=[],eB=e=>{var t;return e2(tf)({onMutation:eo,mutationCb:ef,mousemoveCb:(e,t)=>tx({type:e$.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>tx({type:e$.IncrementalSnapshot,data:(0,a._)({source:eQ.MouseInteraction},e)}),scrollCb:ev,viewportResizeCb:e=>tx({type:e$.IncrementalSnapshot,data:(0,a._)({source:eQ.ViewportResize},e)}),inputCb:e=>tx({type:e$.IncrementalSnapshot,data:(0,a._)({source:eQ.Input},e)}),mediaInteractionCb:e=>tx({type:e$.IncrementalSnapshot,data:(0,a._)({source:eQ.MediaInteraction},e)}),styleSheetRuleCb:e=>tx({type:e$.IncrementalSnapshot,data:(0,a._)({source:eQ.StyleSheetRule},e)}),styleDeclarationCb:e=>tx({type:e$.IncrementalSnapshot,data:(0,a._)({source:eQ.StyleDeclaration},e)}),canvasMutationCb:ey,fontCb:e=>tx({type:e$.IncrementalSnapshot,data:(0,a._)({source:eQ.Font},e)}),selectionCb:e=>{tx({type:e$.IncrementalSnapshot,data:(0,a._)({source:eQ.Selection},e)})},customElementCb:e=>{tx({type:e$.IncrementalSnapshot,data:(0,a._)({source:eQ.CustomElement},e)})},blockClass:s,ignoreClass:h,ignoreSelector:m,maskAllText:v,maskTextClass:g,unmaskTextClass:_,maskTextSelector:w,unmaskTextSelector:E,maskInputOptions:eu,inlineStylesheet:I,sampling:P,recordDOM:W,re
1cordCanvas:H,inlineImages:ee,userTriggeredOnInput:X,collectFonts:Q,doc:e,maskAttributeFn:R,maskInputFn:A,maskTextFn:D,keepIframeSrcFn:en,blockSelector:l,unblockSelector:c,slimDOMOptions:eh,dataURLOptions:B,mirror:tD,iframeManager:eS,stylesheetManager:eg,shadowDomManager:eA,processedNodeManager:eM,canvasManager:eR,ignoreCSSAttributes:ea,plugins:(null==et||null==(t=et.filter(e=>e.observer))?void 0:t.map(e=>({observer:e.observer,options:e.options,callback:t=>tx({type:e$.Plugin,data:{plugin:e.name,payload:t}})})))||[]},{})};eS.addLoadListener(e=>{try{eO.push(eB(e.contentDocument))}catch(e){console.warn(e)}});var eU=()=>{eD(),eO.push(eB(document))};return"interactive"===document.readyState||"complete"===document.readyState?eU():(eO.push(eT("DOMContentLoaded",()=>{tx({type:e$.DomContentLoaded,data:{}}),"DOMContentLoaded"===J&&eU()})),eO.push(eT("load",()=>{tx({type:e$.Load,data:{}}),"load"===J&&eU()},window))),()=>{eO.forEach(e=>e()),eM.destroy(),tT=void 0,tM=void 0}}catch(e){console.warn(e)}}function tN(e){return e>0x2540be3ff?e:1e3*e}function tL(e){return e>0x2540be3ff?e/1e3:e}function tP(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:e$.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:(0,c.S8)(t,10,1e3)}}),"console"===t.category)))}function tF(e){return e.closest("button,a")||e}function tB(e){var t=tU(e);return t&&t instanceof Element?tF(t):t}function tU(e){var t;return(t=e,(0,u.Z4)(t)&&"target"in t)?e.target:e}tO.mirror=tD,tO.takeFullSnapshot=function(e){if(!tT)throw Error("please take full snapshot after start recording");tT(e)},!function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(n||(n={}));var tz=new Set([eQ.Mutation,eQ.StyleSheetRule,eQ.StyleDeclaration,eQ.AdoptedStyleSheet,eQ.CanvasMutation,eQ.Selection,eQ.MediaInteraction]);class tW{addListeners(){var e,t=(e=()=>{this._lastMutation=tH()},i||(i=[],(0,h.GS)(U,"open",function(e){return function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];if(i)try{i.forEach(e=>e())}catch(e){}return e.apply(U,r)}})),i.push(e),()=>{var t=i?i.indexOf(e):-1;t>-1&&i.splice(t,1)});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(r=t,n=this._ignoreSelector,!(!tj.includes(r.tagName)||"INPUT"===r.tagName&&!["submit","button"].includes(r.getAttribute("type")||"")||"A"===r.tagName&&(r.hasAttribute("download")||r.hasAttribute("target")&&"_self"!==r.getAttribute("target"))||n&&r.matches(n))&&(i=e).data&&"number"==typeof i.data.nodeId&&i.timestamp){var r,n,i,a={timestamp:tL(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===a.node&&1>Math.abs(e.timestamp-a.timestamp))||(this._clicks.push(a),1===this._clicks.length&&this._scheduleCheckClicks())}}registerMutation(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();this._lastMutation=tL(e)}registerScroll(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();this._lastScroll=tL(e)}registerClick(e){var t=tF(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach(e=>{e.clickCount++})}_getClicks(e){return this._clicks.filter(t=>t.node===e)}_checkClicks(){var e=[],t=tH();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<=t&&e.push(r)});var r=!0,n=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var o=a.value,l=this._clicks.indexOf(o);l>-1&&(this._generateBreadcrumbs(o),this._clicks.splice(l,1))}}catch(e){n=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(n)throw i}}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){var t=this._replay,r=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,n=e.mutationAfter&&e.mutationAfter<=this._threshold,i=e.clickCount,o=e.clickBreadcrumb;if(!r&&!n){var l=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),d=l<1e3*this._timeout?"mutation":"timeout",c={type:"default",message:o.message,timestamp:o.timestamp,category:"ui.slowClickDetected",data:(0,s._)((0,a._)({},o.data),{url:U.location.href,route:t.getCurrentRoute(),timeAfterClickMs:l,endReason:d,clickCount:i||1})};this._addBreadcrumbEvent(t,c);return}if(i>1){var u={type:"default",message:o.message,timestamp:o.timestamp,category:"ui.multiClick",data:(0,s._)((0,a._)({},o.data),{url:U.location.href,route:t.getCurrentRoute(),clickCount:i,metric:!0})};this._addBreadcrumbEvent(t,u)}
1}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=(0,D.wg)(()=>this._checkClicks(),1e3)}constructor(e,t,r){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scrollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=void 0===r?tP:r}}var tj=["A","BUTTON","INPUT"];function tH(){return Date.now()/1e3}function tq(e){return(0,a._)({timestamp:Date.now()/1e3,type:"default"},e)}var tK=(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))(tK||{}),tV=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function tJ(e,t){var r=tO.mirror.getId(e),n=r&&tO.mirror.getNode(r),i=n&&tO.mirror.getMeta(n),a=i&&i.type===tK.Element?i:null;return{message:t,data:a?{nodeId:r,node:{id:r,tagName:a.tagName,textContent:Array.from(a.childNodes).map(e=>e.type===tK.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(""),attributes:function(e){var t={};for(var r in!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]),e)if(tV.has(r)){var n=r;("data-testid"===r||"data-test-id"===r)&&(n="testId"),t[n]=e[r]}return t}(a.attributes)}}:{}}}var tG={resource:function(e){var t=e.entryType,r=e.initiatorType,n=e.name,i=e.responseEnd,a=e.startTime,s=e.decodedBodySize,o=e.encodedBodySize,l=e.responseStatus,d=e.transferSize;return["fetch","xmlhttprequest"].includes(r)?null:{type:"".concat(t,".").concat(r),start:t$(a),end:t$(i),name:n,data:{size:d,statusCode:l,decodedBodySize:s,encodedBodySize:o}}},paint:function(e){var t=e.duration,r=e.entryType,n=e.name,i=t$(e.startTime);return{type:r,name:n,start:i,end:i+t,data:void 0}},navigation:function(e){var t=e.entryType,r=e.name,n=e.decodedBodySize,i=e.duration,a=e.domComplete,s=e.encodedBodySize,o=e.domContentLoadedEventStart,l=e.domContentLoadedEventEnd,d=e.domInteractive,c=e.loadEventStart,u=e.loadEventEnd,h=e.redirectCount,p=e.startTime,m=e.transferSize,f=e.type;return 0===i?null:{type:"".concat(t,".").concat(f),start:t$(p),end:t$(a),name:r,data:{size:m,decodedBodySize:n,encodedBodySize:s,duration:i,domInteractive:d,domContentLoadedEventStart:o,domContentLoadedEventEnd:l,loadEventStart:c,loadEventEnd:u,domComplete:a,redirectCount:h}}}};function tY(e,t){return r=>{var n=r.metric;t.replayPerformanceEntries.push(e(n))}}function tX(e){var t=tG[e.entryType];return t?t(e):null}function t$(e){return(((0,p.k3)()||U.performance.timeOrigin)+e)/1e3}function tQ(e){var t=e.entries[e.entries.length-1];return t1(e,"largest-contentful-paint",(null==t?void 0:t.element)?[t.element]:void 0)}function tZ(e){var t=[],r=[],n=!0,i=!1,a=void 0;try{for(var s,o=e.entries[Symbol.iterator]();!(n=(s=o.next()).done);n=!0){var l=s.value;if(void 0!==l.sources){var d=[],c=!0,u=!1,h=void 0;try{for(var p,m=l.sources[Symbol.iterator]();!(c=(p=m.next()).done);c=!0){var f=p.value;if(f.node){r.push(f.node);var v=tO.mirror.getId(f.node);v&&d.push(v)}}}catch(e){u=!0,h=e}finally{try{c||null==m.return||m.return()}finally{if(u)throw h}}t.push({value:l.value,nodeIds:d.length?d:void 0})}}}catch(e){i=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(i)throw a}}return t1(e,"cumulative-layout-shift",r,t)}function t0(e){var t=e.entries[e.entries.length-1];return t1(e,"interaction-to-next-paint",(null==t?void 0:t.target)?[t.target]:void 0)}function t1(e,t,r,n){var i=e.value,a=e.rating,s=t$(i);return{type:"web-vital",name:t,start:s,end:s,data:{value:i,size:i,rating:a,nodeIds:r?r.map(e=>tO.mirror.getId(e)):void 0,attributions:n}}}var t2=["log","warn","error"],t3=function(){var e={exception:()=>void 0,infoTick:()=>void 0,setConfig:e=>{e.captureExceptions,e.traceInternals}};return t2.forEach(t=>{e[t]=()=>void 0}),e}();class t5 extends Error{constructor(){super("Event buffer exceeded maximum size of ".concat(2e7,"."))}}
1class t8 extends Error{constructor(){super("Worker destroyed")}}class t4{get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){var t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>2e7)throw new t5;this.events.push(e)}finish(){return new Promise(e=>{var t=this.events;this.clear(),e(JSON.stringify(t))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){var e=null,t=!0,r=!1,n=void 0;try{for(var i,a=this.events[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var s=i.value.timestamp;(null===e||s<e)&&(e=s)}}catch(e){r=!0,n=e}finally{try{t||null==a.return||a.return()}finally{if(r)throw n}}return null===e?e:tN(e)}constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}}class t6{ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((e,t)=>{this._worker.addEventListener("message",r=>{r.data.success?e():t(Error("Received worker message with unsuccessful status"))},{once:!0}),this._worker.addEventListener("error",e=>{t(Error("Failed to load Replay compression worker: ".concat(e instanceof ErrorEvent&&e.message?e.message:"Unknown error. This can happen due to CSP policy restrictions, network issues, or the worker script failing to load.")))},{once:!0})})),this._ensureReadyPromise}destroy(){this._worker.removeEventListener("message",this._onMessage),this._pending.forEach(e=>e.reject(new t8)),this._pending.clear(),this._worker.terminate()}postMessage(e,t){var r=this._getAndIncrementId();return new Promise((n,i)=>{this._pending.set(r,{method:e,resolve:n,reject:i});try{this._worker.postMessage({id:r,method:e,arg:t})}catch(e){this._pending.delete(r),i(e)}})}_getAndIncrementId(){return this._id++}constructor(e){this._onMessage=e=>{var t=e.data;if("number"==typeof t.id){var r=this._pending.get(t.id);if(r&&r.method===t.method){if(this._pending.delete(t.id),!t.success)return void r.reject(Error("Error in compression worker"));r.resolve(t.response)}}},this._worker=e,this._id=0,this._pending=new Map,this._worker.addEventListener("message",this._onMessage)}}class t7{get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){var t=tN(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);var r=JSON.stringify(e);return(this._totalSize+=r.length,this._totalSize>2e7)?Promise.reject(new t5):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){var e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}constructor(e){this._worker=new t6(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}}class t9{get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}set waitForCheckout(e){this._used.waitForCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){var e=this._fallback,t=e.events,r=e.hasCheckout,n=e.waitForCheckout,i=[],a=!0,s=!1,o=void 0;try{for(var l,d=t[Symbol.iterator]();!(a=(l=d.next()).done);a=!0){var c=l.value;i.push(this._compression.addEvent(c))}}catch(e){s=!0,o=e}finally{try{a||null==d.return||d.return()}finally{if(s)throw o}}this._compression.hasCheckout=r,this._compression.waitForCheckout=n,this._used=this._compression;try{await Promise.all(i),this._fallback.clear()}catch(e){if(e instanceof t8)return}}constructor(e){this._fallback=new t4,this._compression=new t7(e),this._used=this._fallback,this._ensureWorkerIsLoadedProm
1ise=this._ensureWorkerIsLoaded()}}function re(){try{return"sessionStorage"in U&&!!U.sessionStorage}catch(e){return!1}}function rt(e){return void 0!==e&&Math.random()<e}function rr(e){if(re())try{U.sessionStorage.setItem(z,JSON.stringify(e))}catch(e){}}function rn(e){var t=Date.now(),r=e.id||(0,y.eJ)(),n=e.started||t,i=e.lastActivity||t,a=e.segmentId||0,s=e.sampled;return{id:r,started:n,lastActivity:i,segmentId:a,sampled:s,previousSessionId:e.previousSessionId,dirty:e.dirty||!1}}function ri(e){var t=e.sessionSampleRate,r=e.allowBuffering,n=e.stickySession,i=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).previousSessionId,a=rn({sampled:rt(t)?"session":!!r&&"buffer",previousSessionId:i});return void 0!==n&&n&&rr(a),a}function ra(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:+new Date;return null===e||void 0===t||t<0||0!==t&&e+t<=r}function rs(e,t){var r,n,i,a,s,o=t.sessionIdleExpire;return n=(r={sessionIdleExpire:o,maxReplayDuration:t.maxReplayDuration}).maxReplayDuration,i=r.sessionIdleExpire,s=void 0===(a=r.targetTime)?Date.now():a,!!(ra(e.started,n,s)||ra(e.lastActivity,i,s))&&("buffer"!==e.sampled||0!==e.segmentId)}function ro(e,t){var r=e.sessionIdleExpire,n=e.maxReplayDuration,i=e.previousSessionId,a=t.stickySession&&function(){if(!re())return null;try{var e=U.sessionStorage.getItem(z);if(!e)return null;var t=JSON.parse(e);return rn(t)}catch(e){return null}}();return a?rs(a,{sessionIdleExpire:r,maxReplayDuration:n})?ri(t,{previousSessionId:a.id}):a:ri(t,{previousSessionId:i})}function rl(e,t,r){return!!rc(e,t)&&(rd(e,t,r),!0)}async function rd(e,t,r){var n=e.eventBuffer;if(!n||n.waitForCheckout&&!r)return null;var i="buffer"===e.recordingMode;try{r&&i&&n.clear(),r&&(n.hasCheckout=!0,n.waitForCheckout=!1);var a=e.getOptions(),s=function(e,t){try{if("function"==typeof t&&e.type===e$.Custom)return t(e)}catch(e){return null}return e}(t,a.beforeAddRecordingEvent);if(!s)return;return await n.addEvent(s)}catch(t){if(!e.isEnabled())return e.handleException(t),null;var o=t&&t instanceof t5,l=(0,g.KU)();if(l&&l.recordDroppedEvent(o?"buffer_overflow":"internal_sdk_error","replay"),o&&i)return n.clear(),n.waitForCheckout=!0,null;e.handleException(t),await e.stop({reason:o?"eventBufferOverflow":"eventBufferError"})}}function rc(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;var r=tN(t.timestamp);return!(r+e.timeouts.sessionIdlePause<Date.now())&&!(r>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)}function ru(e,t,r){var n=e.getContext();t&&n.traceIds.size<100&&n.traceIds.add(t),r&&n.segmentNames.size<100&&n.segmentNames.add(r)}function rh(e){return"transaction"===e.type}function rp(e){return"feedback"===e.type}function rm(e){return!!e.category}function rf(){var e=(0,g.o5)().getPropagationContext().dsc;e&&delete e.replay_id;var t=(0,_.Bk)();if(t){var r=(0,b.k1)(t);delete r.replay_id}}function rv(e){var t=(0,g.o5)().getPropagationContext().dsc;t&&(t.replay_id=e);var r=(0,_.Bk)();r&&((0,b.k1)(r).replay_id=e)}function ry(e,t){return t.map(t=>{var r=t.type,n=t.start,i=t.end,a=t.name,s=t.data,o=e.throttledAddEvent({type:e$.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:r,description:a,startTimestamp:n,endTimestamp:i,data:s}}});return"string"==typeof o?Promise.resolve(null):o})}function rg(e,t){var r;e.isEnabled()&&null!==t&&(r=t.name,(0,w.A)(r,(0,g.KU)())||e.addUpdate(()=>(ry(e,[t]),!0)))}function rS(e){if(e){var t=new TextEncoder;try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){var r=(0,L.P4)(e);return t.encode(r).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch(e){}}}function r_(e){if(e){var t=parseInt(e,10);return isNaN(t)?void 0:t}}function rb(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};var r=(0,a._)({},e._meta),n=r.warnings||[];return r.warnings=[...n,t],e._meta=r,e}function rw(e,t){if(!t)return null;var r=t.startTimestamp,n=t.endTimestamp,i=t.url,a=t.method,s=t.statusCode,o=t.request;return{type:e,start:r/1e3,end:n/1e3,name:i,data:{method:a,statusCode:s,request:o,response:t.response}}}function rk(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function rE(e,t,r){if(t||0!==Object.keys(e).length){if(!t)return{headers:e};if(!r)return{headers:e,size:t};var n={headers:e,size:t},i=function(e){if(!e||"string"!=typeof e)return{body:e};var t,r,n,i=e.length>15e4,a=(r=(t=e)[0],n=t[t.length-1],"["===r&&"]"===n||"{"===r&&"}"===n);if(i){var s=e.slice(0,15e4);return a?{body:s,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:"".concat(s,"…"),warnings:["TEXT_TRUNCATED"]}}if(a)try{return{body:JSON.parse(e)}}catch(e){}return{body:e}}(r),a=i.body,s=i.warnings;return n.body=a,(null==s?void 0:s.length)&&(n._meta={warnings:s}),n}}function rC(e,t){return Object.entries(e).reduce((r,n)=>{var i=(0,o._)(n,2),a=i[0],s=i[1],l=a.toLowerCase();return t.includes(l)&&e[a]&&(r[l]=s),r},{})}function rI(e,t){var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U.document.baseURI;if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(U.location.origin))return e;
1var r=new URL(e,t);if(r.origin!==new URL(t).origin)return e;var n=r.href;return!e.endsWith("/")&&n.endsWith("/")?n.slice(0,-1):n}(e);return(0,k.Xr)(r,t)}async function rM(e,t,r){try{var n=await rx(e,t,r),i=rw("resource.fetch",n);rg(r.replay,i)}catch(e){}}async function rx(e,t,r){var n=Date.now(),i=t.startTimestamp,a=t.endTimestamp,s=e.data,l=s.url,d=s.method,c=s.status_code,u=s.request_body_size,h=s.response_body_size,p=rI(l,r.networkDetailAllowUrls)&&!rI(l,r.networkDetailDenyUrls);return{startTimestamp:void 0===i?n:i,endTimestamp:void 0===a?n:a,url:l,method:d,statusCode:void 0===c?0:c,request:p?function(e,t,r){var n,i,a=e.networkCaptureBodies,s=e.networkRequestHeaders,l=t?(n=t,i=s,1===n.length&&"string"!=typeof n[0]?rD(n[0],i):2===n.length?rD(n[1],i):{}):{};if(!a)return rE(l,r,void 0);var d=(0,L.Gv)(t),c=(0,o._)((0,L.sY)(d,t3),2),u=c[0],h=c[1],p=rE(l,r,u);return h?rb(p,h):p}(r,t.input,u):rk(u),response:await rT(p,r,t.response,h)}}async function rT(e,t,r,n){var i=t.networkCaptureBodies,a=t.networkResponseHeaders;if(!e&&void 0!==n)return rk(n);var s=r?rA(r.headers,a):{};if(!r||!i&&void 0!==n)return rE(s,n,void 0);var l=(0,o._)(await rR(r),2),d=l[0],c=l[1],u=function(e,t){var r=t.networkCaptureBodies,n=t.responseBodySize,i=t.captureDetails,a=t.headers;try{var s=(null==e?void 0:e.length)&&void 0===n?rS(e):n;if(!i)return rk(s);if(r)return rE(a,s,e);return rE(a,s,void 0)}catch(e){return rE(a,n,void 0)}}(d,{networkCaptureBodies:i,responseBodySize:n,captureDetails:e,headers:s});return c?rb(u,c):u}async function rR(e){var t,r=function(e){try{return e.clone()}catch(e){}}(e);if(!r)return[void 0,"BODY_PARSE_ERROR"];try{return[await (t=r,new Promise((e,r)=>{var n=(0,D.wg)(()=>r(Error("Timeout while trying to read response body")),500);rO(t).then(t=>e(t),e=>r(e)).finally(()=>clearTimeout(n))}))]}catch(e){if(e instanceof Error&&e.message.indexOf("Timeout")>-1)return[void 0,"BODY_PARSE_TIMEOUT"];return[void 0,"BODY_PARSE_ERROR"]}}function rA(e,t){var r={};return t.forEach(t=>{e.get(t)&&(r[t]=e.get(t))}),r}function rD(e,t){if(!e)return{};var r=e.headers;return r?r instanceof Headers?rA(r,t):Array.isArray(r)?{}:rC(r,t):{}}async function rO(e){return await e.text()}async function rN(e,t,r){try{var n=function(e,t,r){var n=Date.now(),i=t.startTimestamp,a=void 0===i?n:i,s=t.endTimestamp,l=void 0===s?n:s,d=t.input,c=t.xhr,h=e.data,p=h.url,m=h.method,f=h.status_code,v=void 0===f?0:f,y=h.request_body_size,g=h.response_body_size;if(!p)return null;if(!c||!rI(p,r.networkDetailAllowUrls)||rI(p,r.networkDetailDenyUrls))return{startTimestamp:a,endTimestamp:l,url:p,method:m,statusCode:v,request:rk(y),response:rk(g)};var S=c[P.Er],_=S?rC(S.request_headers,r.networkRequestHeaders):{},b=rC((0,L.ti)(c),r.networkResponseHeaders),w=(0,o._)(r.networkCaptureBodies?(0,L.sY)(d,t3):[void 0],2),k=w[0],E=w[1],C=(0,o._)(r.networkCaptureBodies?function(e){var t=[];try{return[e.responseText]}catch(e){t.push(e)}try{var r=e.response,n=e.responseType;try{if("string"==typeof r)return[r];if(r instanceof Document)return[r.body.outerHTML];if("json"===n&&(0,u.Z4)(r))return[JSON.stringify(r)];if(!r)return[void 0]}catch(e){return[void 0,"BODY_PARSE_ERROR"]}return[void 0,"UNPARSEABLE_BODY_TYPE"]}catch(e){t.push(e)}return[void 0]}(c):[void 0],2),I=C[0],M=C[1],x=rE(_,y,k),T=rE(b,g,I);return{startTimestamp:a,endTimestamp:l,url:p,method:m,statusCode:v,request:E?rb(x,E):x,response:M?rb(T,M):T}}(e,t,r),i=rw("resource.xhr",n);rg(r.replay,i)}catch(e){}}async function rL(e){try{var t,r,n,i,a;return Promise.all(ry(e,[(r=(t=U.performance.memory).jsHeapSizeLimit,n=t.totalJSHeapSize,i=t.usedJSHeapSize,a=Date.now()/1e3,{type:"memory",name:"memory",start:a,end:a,data:{memory:{jsHeapSizeLimit:r,totalJSHeapSize:n,usedJSHeapSize:i}}})]))}catch(e){return[]}}var rP=d.O.navigator;async function rF(e){var t=e.client,r=e.scope,n=e.replayId,i=e.event,o={event_id:n,integrations:"object"!=typeof t._integrations||null===t._integrations||Array.isArray(t._integrations)?void 0:Object.keys(t._integrations)};t.emit("preprocessEvent",i,o);var l=await (0,I.mG)(t.getOptions(),i,o,r,t,(0,g.rm)());if(!l)return null;t.emit("postprocessEvent",l,o),l.platform=l.platform||"javascript";var d=t.getSdkMetadata(),c=(null==d?void 0:d.sdk)||{},u=c.name,h=c.version,p=c.settings;return l.sdk=(0,s._)((0,a._)({},l.sdk),{name:u||"sentry.javascript.unknown",version:h||"0.0.0",settings:p}),l}async function rB(e){var t,r,n=e.recordingData,i=e.replayId,a=e.segmentId,s=e.eventContext,o=e.timestamp,l=e.session,d=function(e){var t,r=e.recordingData,n=e.headers,i="".concat(JSON.stringify(n),"\n");
1if("string"==typeof r)t="".concat(i).concat(r);else{var a=new TextEncoder().encode(i);(t=new Uint8Array(a.length+r.length)).set(a),t.set(r,a.length)}return t}({recordingData:n,headers:{segment_id:a}}),c=s.urls,u=s.errorIds,h=s.traceIds,p=s.segmentNames,m=s.initialTimestamp,f=(0,g.KU)(),v=(0,g.o5)(),y=null==f?void 0:f.getTransport(),S=null==f?void 0:f.getDsn();if(!f||!y||!S||!l.sampled)return Promise.resolve({});var _={type:"replay_event",replay_start_timestamp:m/1e3,timestamp:o/1e3,error_ids:u,trace_ids:h,segment_names:p,urls:c,replay_id:i,segment_id:a,replay_type:l.sampled},b=await rF({scope:v,client:f,replayId:i,event:_});if(!b)return f.recordDroppedEvent("event_processor","replay"),Promise.resolve({});delete b.sdkProcessingMetadata;var w=(t=f.getOptions().tunnel,(0,C.h4)((0,C.n2)(b,(0,C.Cj)(b),t,S),[[{type:"replay_event"},b],[{type:"replay_recording",length:"string"==typeof d?new TextEncoder().encode(d).length:d.length},d]]));try{r=await y.send(w)}catch(e){var k=Error(W);try{k.cause=e}catch(e){}throw k}var E=(0,M.wq)({},r);if((0,M.Jz)(E,"replay"))throw new rz(E);if("number"==typeof r.statusCode&&(r.statusCode<200||r.statusCode>=300))throw new rU(r.statusCode);return r}class rU extends Error{constructor(e){super("Transport returned status code ".concat(e))}}class rz extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}class rW extends Error{constructor(){super("Session is too long, not sending replay")}}async function rj(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{count:0,interval:5e3},r=e.recordingData,n=e.onError;if(r.length)try{return await rB(e),!0}catch(r){if(r instanceof rU||r instanceof rz)throw r;if((0,v.o)("Replays",{_retryCount:t.count}),n&&n(r),t.count>=3){var i=Error("".concat(W," - max retries exceeded"));
1try{i.cause=r}catch(e){}throw i}return t.interval*=++t.count,new Promise((r,n)=>{(0,D.wg)(async()=>{try{await rj(e,t),r(!0)}catch(e){n(e)}},t.interval)})}}var rH="__THROTTLED";class rq{getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(e){this._options.onError&&this._options.onError(e)}initializeSampling(e){var t=this._options,r=t.errorSampleRate,n=t.sessionSampleRate,i=r<=0&&n<=0;if(this._requiresManualStart=i,!i)this._initializeSessionForSampling(e),this.session&&!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",this._initializeRecording())}start(){if(!this._isEnabled||"session"!==this.recordingMode){if(!this._isEnabled||"buffer"!==this.recordingMode){this._updateUserActivity();var e=ro({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this.recordingMode="session",this._initializeRecording()}}}startBuffering(){if(!this._isEnabled){var e=ro({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}}startRecording(){try{var e,t,r,n,i=this._canvas;this._stopRecording=tO((0,a._)((0,s._)((0,a._)((0,s._)((0,a._)({},this._recordingOptions,"buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)}),{emit:(e=this,t=!1,(r,n)=>{try{if(!e.checkAndHandleExpiredSession())return;var i=n||!t;t=!0,function(e){var t=e.data;if(e.type===e$.IncrementalSnapshot&&t&&"object"==typeof t&&"source"in t&&t.source===eQ.Mutation&&"attributes"in t&&Array.isArray(t.attributes)){var r=!0,n=!1,i=void 0;try{for(var a,s=t.attributes[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var l=a.value,d=tO.mirror.getNode(l.id),c=d&&tO.mirror.getMeta(d);if((null==c?void 0:c.type)===tK.Element){var u=!0,h=!1,p=void 0;try{for(var m,f=Object.entries(l.attributes)[Symbol.iterator]();!(u=(m=f.next()).done);u=!0){var v=(0,o._)(m.value,2),y=v[0],g=v[1];null===g?delete c.attributes[y]:c.attributes[y]=g}}catch(e){h=!0,p=e}finally{try{u||null==f.return||f.return()}finally{if(h)throw p}}}}}catch(e){n=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(n)throw i}}}}(r),e.clickDetector&&function(e,t){try{if(r=t,3!==r.type)return;var r,n=t.data.source;if(tz.has(n)&&e.registerMutation(t.timestamp),n===eQ.Scroll&&e.registerScroll(t.timestamp),t.data.source===eQ.MouseInteraction){var i=t.data,a=i.type,s=i.id,o=tO.mirror.getNode(s);o instanceof HTMLElement&&a===eZ.Click&&e.registerClick(o)}}catch(e){}}(e.clickDetector,r),e.addUpdate(()=>{if("buffer"===e.recordingMode&&i&&e.setInitialState(),!rl(e,r,i))return!0;if(!i)return!1;var t=e.session;if(function(e,t){var r,n;t&&(null==(r=e.session)?void 0:r.segmentId)===0&&rl(e,(n=e.getOptions(),{type:e$.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:n.sessionSampleRate,errorSampleRate:n.errorSampleRate,useCompressionOption:n.useCompression,blockAllMedia:n.blockAllMedia,maskAllText:n.maskAllText,maskAllInputs:n.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:n.networkDetailAllowUrls.length>0,networkCaptureBodies:n.networkCaptureBodies,networkRequestHasHeaders:n.networkRequestHeaders.length>0,networkResponseHasHeaders:n.networkResponseHeaders.length>0}}}),!1)}(e,i),"buffer"===e.recordingMode&&t&&e.eventBuffer&&!t.dirty){var n=e.eventBuffer.getEarliestTimestamp();n&&(t.started=n,e.getOptions().stickySession&&rr(t))}return null!=t&&!!t.previousSessionId||("session"===e.recordingMode&&e.flush(),!0)})}catch(t){e.handleException(t)}})}),/iPhone|iPad|iPod/i.test(null!=(r=null==rP?void 0:rP.userAgent)?r:"")||/Macintosh/i.test(null!=(n=null==rP?void 0:rP.userAgent)?n:"")&&(null==rP?void 0:rP.maxTouchPoints)&&(null==rP?void 0:rP.maxTouchPoints)>1?{sampling:{mousemove:!1}}:{}),{onMutation:this._onMutationHandler.bind(this)}),i?{recordCanvas:i.recordCanvas,getCanvasManager:i.getCanvasManager,sampling:i.sampling,dataURLOptions:i.dataURLOptions}:{}))}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this.handleException(e),!1}}async stop(){var e,t,r,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=n.forceFlush,a=n.reason;if(this._isEnabled){this._isEnabled=!1,this.recordingMode="buffer",null==(t=(0,g.KU)())||t.emit("replayEnd",{sessionId:null==(e=this.session)?void 0:e.id,reason:null!=a?a:"manual"});try{rf(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),void 0!==i&&i&&await this._flush({force:!0}),null==(r=this.eventBuffer)||r.destroy(),this.eventBuffer=null,function(){if(re())try{U.sessionStorage.removeItem(z)}catch(e){}}(),this.session=void 0}catch(e){this.handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording())}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording())}async sendBufferedReplayOrFlush(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.continueRecording;if("session"===this.recordingMode)return this.flushImmediate();var r=Date.now();await this.flushImmediate();var n=this.stopRecording();(void 0===t||t)&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this.session.dirty=!1,this._updateUserActivity(r),this._updateSessionActivity(r),this._maybeSaveSession(),rv(this.session.id)),this.startRecording())}addUpdate(e){var t=e();"buffer"!==this.recordingMode&&this._isEnabled&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(e){var t,r;if(!e||(null==(t=this.session)?void 0:t.sampled)!==!1)return null==(r=this.session)?void 0:r.id}
1checkAndHandleExpiredSession(){var e;return this._lastActivity&&ra(this._lastActivity,this.timeouts.sessionIdlePause)&&(null==(e=this.session)?void 0:e.sampled)==="session"?void this.pause():!!this._checkSession()}setInitialState(){var e="".concat(U.location.pathname).concat(U.location.hash).concat(U.location.search),t="".concat(U.location.origin).concat(e);this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){var r=this._throttledAddEvent(e,t);if(r===rH){var n=tq({category:"replay.throttled"});this.addUpdate(()=>!rl(this,{type:5,timestamp:n.timestamp||0,data:{tag:"breadcrumb",payload:n,metric:!0}}))}return r}getCurrentRoute(){var e=this.lastActiveSpan||(0,_.Bk)(),t=e&&(0,_.zU)(e),r=(t&&(0,_.et)(t).data||{})[x.i_];if(t&&r&&["route","custom"].includes(r))return(0,_.et)(t).description}_initializeRecording(){if(this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function(e){var t=e.useCompression,r=e.workerUrl;if(t&&window.Worker){var n=function(e){try{var t=e||function(){if("undefined"==typeof __SENTRY_EXCLUDE_REPLAY_WORKER__||!__SENTRY_EXCLUDE_REPLAY_WORKER__){var e;return e=new Blob(['
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'],{type:"text/javascript"}),URL.createObjectURL(e)}return""}();if(!t)return;var r=new Worker(t);return new t9(r)}catch(e){}}(r);if(n)return n}return new t4}({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.session){var e;null==(e=(0,g.KU)())||e.emit("replayStart",{sessionId:this.session.id,recordingMode:this.recordingMode})}this.startRecording(),"session"===this.recordingMode&&this.session&&rv(this.session.id)}_initializeSessionForSampling(e){var t=this._options.errorSampleRate>0,r=ro({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=r}_checkSession(){if(!this.session)return!1;var e=this.session;return!rs(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"sessionExpired"}),this.initializeSampling(e.id))}_addListeners(){try{U.document.addEventListener("visibilitychange",this._handleVisibilityChange),U.addEventListener("blur",this._handleWindowBlur),U.addEventListener("focus",this._handleWindowFocus),U.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(!function(e){var t,r=(0,g.KU)();(0,F.i)(t=>{if(e.isEnabled()){var r=(i=(n=function(e){var t,r="click"===e.name,n=null;try{n=r?tB(e.event):tU(e.event),t=(0,O.H)(n,{maxStringLength:200})||"<unknown>"}catch(e){t="<unknown>"}return{target:n,message:t}}(t)).target,s=n.message,tq((0,a._)({category:"ui.".concat(t.name)},tJ(i,s))));if(r){var n,i,s,o,l,d="click"===t.name,c=d?t.event:void 0;d&&e.clickDetector&&(null==c?void 0:c.target)&&!c.altKey&&!c.metaKey&&!c.ctrlKey&&!c.shiftKey&&(o=e.clickDetector,l=tB(t.event),o.handleClick(r,l)),tP(e,r)}}}),(0,B._)(t=>{if(e.isEnabled()){var r,n,i,a=(r=t.from,n=t.to,{type:"navigation.push",start:i=Date.now()/1e3,end:i,name:n,data:{previous:r}});null!==a&&(e.getContext().urls.push(a.name),e.triggerUserActivity(),e.addUpdate(()=>(ry(e,[a]),!1)))}}),(t=(0,g.KU)())&&t.on("beforeAddBreadcrumb",t=>(function(e,t){if(e.isEnabled()&&rm(t)){var r,n=(r=t,!rm(r)||["fetch","xhr","sentry.event","sentry.transaction"].includes(r.category)||r.category.startsWith("ui.")?null:"console"===r.category?function(e){var t,r=null==(t=e.data)?void 0:t.arguments;if(!Array.isArray(r)||0===r.length)return tq(e);var n=!1,i=r.map(e=>{if(!e)return e;if("string"==typeof e)return e.length>5e3?(n=!0,"".concat(e.slice(0,5e3),"…")):e;if("object"==typeof e)try{var t=(0,c.S8)(e,7);if(JSON.stringify(t).length>5e3)return n=!0,"".concat(JSON.stringify(t,null,2).slice(0,5e3),"…");return t}catch(e){}return e});return tq((0,s._)((0,a._)({},e),{data:(0,a._)((0,s._)((0,a._)({},e.data),{arguments:i}),n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{})}))}(r):tq(r));n&&tP(e,n)}})(e,t)),function(e){var t=(0,g.KU)();try{var r=e.getOptions(),n=r.networkDetailAllowUrls,i=r.networkDetailDenyUrls,a=r.networkCaptureBodies,s=r.networkRequestHeaders,o=r.networkResponseHeaders,l={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:i,networkCaptureBodies:a,networkRequestHeaders:s,networkResponseHeaders:o};t&&t.on("beforeAddBreadcrumb",(e,t)=>(function(e,t,r){if(t.data)try{if(a=t,"xhr"===a.category&&(s=r,null==s?void 0:s.xhr)){var n,i,a,s,o,l,d,c,h=r.xhr,p=r.input;if(h){var m=rS(p),f=h.getResponseHeader("content-length")?r_(h.getResponseHeader("content-length")):function(e,t){try{var r="json"===t&&(0,u.Z4)(e)?JSON.stringify(e):e;return rS(r)}catch(e){return}}(h.response,h.responseType);void 0!==m&&(t.data.request_body_size=m),void 0!==f&&(t.data.response_body_size=f)}rN(t,r,e)}(n=t,"fetch"===n.category&&(i=r,(null==i?void 0:i.input)!==void 0))&&(o=r.input,l=r.response,d=rS(o?(0,L.Gv)(o):void 0),c=l?r_(l.headers.get("content-length")):void 0,void 0!==d&&(t.data.request_body_size=d),void 0!==c&&(t.data.response_body_size=c),rM(t,r,e))}catch(e){}})(l,e,t))}catch(e){}}(e);var n=Object.assign((t,r)=>{if(e.session&&rs(e.session,{maxReplayDuration:e.getOptions().maxReplayDuration,sessionIdleExpire:e.timeouts.sessionIdleExpire}
1)&&rf(),!e.isEnabled()||e.isPaused())return t;if("replay_event"===t.type)return delete t.breadcrumbs,t;if(t.type&&!rh(t)&&!rp(t))return t;if(!e.checkAndHandleExpiredSession())return rf(),t;if(rp(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),e.triggerUserActivity(),e.addUpdate(()=>!t.timestamp||(e.throttledAddEvent({type:e$.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)),t;if(!t.type&&(null==(o=t.exception)||null==(i=o.values)?void 0:i.length)&&null!=(l=r.originalException)&&l.__rrweb__&&!e.getOptions()._experiments.captureExceptions)return null;var n,i,o,l,d="buffer"===e.recordingMode&&t.message!==W&&!!t.exception&&!t.type&&rt(e.getOptions().errorSampleRate);if((d||"session"===e.recordingMode)&&(t.tags=(0,s._)((0,a._)({},t.tags),{replayId:e.getSessionId()})),d&&"buffer"===e.recordingMode&&(null==(n=e.session)?void 0:n.sampled)==="buffer"){var c=e.session;c.dirty=!0,e.getOptions().stickySession&&rr(c)}return t},{id:"Replay"});(0,v.SA)(n),r&&(r.on("beforeSendEvent",t=>{var r,n,i,a,s,o;e.isEnabled()&&!t.type&&(r=e,n=t,o=null==(s=n.exception)||null==(a=s.values)||null==(i=a[0])?void 0:i.value,"string"==typeof o&&(o.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||o.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&tP(r,tq({category:"replay.hydrate-error",data:{url:(0,S.$N)()}})))}),r.on("afterSendEvent",(t,r)=>{if(e.isEnabled()&&(!t.type||rh(t))){var n=r.statusCode;if(n&&!(n<200)&&!(n>=300)){if(rh(t)){return void(i=e,a=t,ru(i,null==(o=a.contexts)||null==(s=o.trace)?void 0:s.trace_id,a.transaction))}var i,a,s,o,l,d=e,c=t,u=d.getContext();if(c.event_id&&u.errorIds.size<100&&u.errorIds.add(c.event_id),"buffer"===d.recordingMode&&(null==(l=c.tags)?void 0:l.replayId)){var h=d.getOptions().beforeErrorSampling;("function"!=typeof h||h(c))&&(0,D.wg)(async()=>{try{await d.sendBufferedReplayOrFlush()}catch(e){d.handleException(e)}})}}}}),r.on("createDsc",t=>{var r=e.getSessionId();r&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=r)}),r.on("processSegmentSpan",t=>{e.isEnabled()&&ru(e,t.trace_id,t.name||void 0)}),r.on("spanStart",t=>{e.lastActiveSpan=t}),r.on("spanEnd",t=>{e.lastActiveSpan=t}),r.on("beforeSendFeedback",async(t,r)=>{var n,i=e.getSessionId();(null==r?void 0:r.includeReplay)&&e.isEnabled()&&i&&(null==(n=t.contexts)?void 0:n.feedback)&&("api"===t.contexts.feedback.source&&await e.sendBufferedReplayOrFlush(),t.contexts.feedback.replay_id=i)}),r.on("openFeedbackWidget",async()=>{await e.sendBufferedReplayOrFlush()}))}(this),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=function(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function r(e){e.entries.forEach(t)}var n=[];return["navigation","paint","resource"].forEach(e=>{n.push((0,N.wv)(e,r))}),n.push((0,N.Pt)(tY(tQ,e)),(0,N.a9)(tY(tZ,e)),(0,N.hT)(tY(t0,e))),()=>{n.forEach(e=>e())}}(this)}_removeListeners(){try{U.document.removeEventListener("visibilitychange",this._handleVisibilityChange),U.removeEventListener("blur",this._handleWindowBlur),U.removeEventListener("focus",this._handleWindowFocus),U.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}_doChangeToBackgroundTasks(e){if(this.session){if(rs(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire}))return void rf();e&&this._createCustomBreadcrumb(e),this.conditionalFlush()}}_doChangeToForegroundTasks(e){this.session&&this.checkAndHandleExpiredSession()&&e&&this._createCustomBreadcrumb(e)}_updateUserActivity(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();this._lastActivity=e}_updateSessionActivity(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate(()=>{this.throttledAddEvent({type:e$.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){var e=this.performanceEntries.map(tX).filter(
1Boolean).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){var t=this._context.initialTimestamp/1e3;e=e.filter(e=>e.start>=t)}return Promise.all(ry(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.segmentNames.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){var e=this.session,t=this.eventBuffer;if(e&&t&&!this._requiresManualStart&&!e.segmentId){var r=t.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}}_popEventContext(){var e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),segmentNames:Array.from(this._context.segmentNames),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){var e=this.getSessionId();if(this.session&&this.eventBuffer&&e&&(await this._addPerformanceEntries(),null==(a=this.eventBuffer)?void 0:a.hasEvents)){if((await rL(this),this.eventBuffer)&&e===this.getSessionId())try{this._updateInitialTimestampFromEventBuffer();var t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new rW;var r=this._popEventContext(),n=this.session.segmentId++;this._maybeSaveSession();var i=await this.eventBuffer.finish();await rj({replayId:e,recordingData:i,segmentId:n,eventContext:r,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(e){this.handleException(e),this.stop({reason:"sendError"});var a,s=(0,g.KU)();s&&s.recordDroppedEvent(e instanceof rz?"ratelimit_backoff":e instanceof rW?"invalid":"send_error","replay")}}}async _flush(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.force;if(this._isEnabled||void 0!==t&&t){if(this.checkAndHandleExpiredSession()&&this.session){var r=this.session.started,n=Date.now()-r;this._debouncedFlush.cancel();var i=n<this._options.minReplayDuration,a=n>this._options.maxReplayDuration+5e3;if(i||a){i&&this._debouncedFlush();return}var s=this.eventBuffer;s&&0===this.session.segmentId&&s.hasCheckout;var o=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,o&&this._debouncedFlush()}}}}_maybeSaveSession(){this.session&&this._options.stickySession&&rr(this.session)}_onMutationHandler(e){var t=this._options._experiments.ignoreMutations;if((null==t?void 0:t.length)&&e.some(e=>{var r=function(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}(e.target),n=t.join(",");return null==r?void 0:r.matches(n)}))return!1;var r=e.length,n=this._options.mutationLimit,i=this._options.mutationBreadcrumbLimit,a=n&&r>n;if(r>i||a){var s=tq({category:"replay.mutations",data:{count:r,limit:a}});this._createCustomBreadcrumb(s)}return!a||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}constructor(e){var t,r,n,i=e.options,o=e.recordingOptions;this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,segmentNames:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=o,this._options=i,this._debouncedFlush=(t=()=>this._flush(),r=this._options.flushMinDelay,n={maxWait:this._options.flushMaxDelay},(0,E.s)(t,r,(0,s._)((0,a._)({},n),{setTimeoutImpl:D.wg}))),this._throttledAddEvent=function(e,t,r){var n=new Map,i=!1;return function(){for(var a,s=arguments.length,o=Array(s),l=0;l<s;l++)o[l]=arguments[l];var d=Math.floor(Date.now()/1e3);if(a=d-r,n.forEach((e,t)=>{t<a&&n.delete(t)}),[...n.values()].reduce((e,t)=>e+t,0)>=t){var c=i;return i=!0,c?"__SKIPPED":rH}i=!1;var u=n.get(d)||0;return n.set(d,u+1),e(...o)}}((e,t)=>(function(e,t,r){return rc(e,t)?rd(e,t,r):Promise.resolve(null)})(this,e,t),300,5);var l=this.getOptions(),d=l.slowClickTimeout,c=l.slowClickIgnoreSelectors,u=d?{threshold:Math.min(3e3,d),timeout:d,scrollTimeout:300,ignoreSelector:c?c.join(","):""}:void 0;u&&(this.clickDetector=new tW(this,u)),this._handleVisibilityChange=()=>{"visible"===U.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroun
1dTasks()},this._handleWindowBlur=()=>{var e=tq({category:"ui.blur"});this._doChangeToBackgroundTasks(e)},this._handleWindowFocus=()=>{var e=tq({category:"ui.focus"});this._doChangeToForegroundTasks(e)},this._handleKeyboardEvent=e=>{!function(e,t){if(e.isEnabled()){e.updateUserActivity();var r=function(e){var t,r=e.metaKey,n=e.shiftKey,i=e.ctrlKey,o=e.altKey,l=e.key,d=e.target;if(!d||"INPUT"===(t=d).tagName||"TEXTAREA"===t.tagName||t.isContentEditable||!l)return null;var c=r||i||o,u=1===l.length;if(!c&&u)return null;var h=(0,O.H)(d,{maxStringLength:200})||"<unknown>",p=tJ(d,h);return tq({category:"ui.keyDown",message:h,data:(0,s._)((0,a._)({},p.data),{metaKey:r,shiftKey:n,ctrlKey:i,altKey:o,key:l})})}(t);r&&tP(e,r)}}(this,e)}}}function rK(e,t){return[...e,...t].join(",")}var rV='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',rJ=["content-length","content-type","accept"],rG=Symbol.for("sentry__originalRequestBody"),rY=!1,rX=!1,r$=e=>new rQ(e);class rQ{get _isInitialized(){return rY}set _isInitialized(e){rY=e}afterAllSetup(e){(0,T.B)()&&!this._replay&&(this._initialOptions.attachRawBodyFromRequest&&function(){if("undefined"!=typeof Request&&!rX){var e=Request;try{var t=function(t,r){var n=new e(t,r);return(null==r?void 0:r.body)!=null&&(n[rG]=r.body),n};t.prototype=e.prototype,d.O.Request=t,rX=!0}catch(e){}}}(),this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(e){var t;return this._replay?this._replay.stop({forceFlush:null!=(t=null==e?void 0:e.flush)?t:"session"===this._replay.recordingMode,reason:"manual"}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(e){var t;if(null==(t=this._replay)?void 0:t.isEnabled())return this._replay.getSessionId(e)}getRecordingMode(){var e;if(null==(e=this._replay)?void 0:e.isEnabled())return this._replay.recordingMode}processSpan(e){var t=this.getReplayId(!0);t&&((0,R.FD)(e,{"sentry.replay_id":t}),"buffer"===this.getRecordingMode()&&(0,R.FD)(e,{"sentry._internal.replay_is_buffering":!0}))}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){var t,r,n,i,s,o=(t=this._initialOptions,r=e.getOptions(),n=(0,a._)({sessionSampleRate:0,errorSampleRate:0},t),i=(0,A.i)(r.replaysSessionSampleRate),s=(0,A.i)(r.replaysOnErrorSampleRate),null==i&&null==s&&(0,f.pq)(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),null!=i&&(n.sessionSampleRate=i),null!=s&&(n.errorSampleRate=s),n);this._replay=new rq({options:o,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{var t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch(e){}}constructor(e){var t=void 0===e?{}:e,r=t.flushMinDelay,n=t.flushMaxDelay,i=t.minReplayDuration,o=t.maxReplayDuration,l=t.stickySession,d=t.useCompression,c=t.workerUrl,u=t._experiments,h=void 0===u?{}:u,p=t.maskAllText,m=void 0===p||p,f=t.maskAllInputs,v=void 0===f||f,y=t.blockAllMedia,g=t.mutationBreadcrumbLimit,S=t.mutationLimit,_=t.slowClickTimeout,b=t.slowClickIgnoreSelectors,w=t.networkDetailAllowUrls,k=t.networkDetailDenyUrls,E=t.networkCaptureBodies,C=t.networkRequestHeaders,I=t.networkResponseHeaders,M=t.mask,x=t.maskAttributes,R=void 0===x?["title","placeholder","aria-label"]:x,A=t.unmask,D=t.block,O=t.unblock,N=t.ignore,L=t.maskFn,P=t.beforeAddRecordingEvent,F=t.beforeErrorSampling,B=t.onError,U=t.attachRawBodyFromRequest;this.name="Replay";var z=function(e){var t=e.mask,r=e.unmask,n=e.block,i=e.unblock,a=e.ignore;return{maskTextSelector:rK(t,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:rK(r,[]),blockSelector:rK(n,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not([src])"]),unblockSelector:rK(i,[]),ignoreSelector:rK(a,[".sentry-ignore","[data-sentry-ignore]",'
1input[type="file"]'])}}({mask:void 0===M?[]:M,unmask:void 0===A?[]:A,block:void 0===D?[]:D,unblock:void 0===O?[]:O,ignore:void 0===N?[]:N});if(this._recordingOptions=(0,s._)((0,a._)({maskAllInputs:v,maskAllText:m,maskInputOptions:{password:!0},maskTextFn:L,maskInputFn:L,maskAttributeFn:(e,t,r)=>(function(e){var t=e.el,r=e.key,n=e.maskAttributes,i=e.maskAllText,a=e.privacyOptions,s=e.value;if(a.unmaskTextSelector&&t.matches(a.unmaskTextSelector))return s;var o=n.includes(r),l=i&&"value"===r&&"INPUT"===t.tagName&&["submit","button"].includes(t.getAttribute("type")||"");return o||l?s.replace(/[\S]/g,"*"):s})({maskAttributes:R,maskAllText:m,privacyOptions:z,key:e,value:t,el:r})},z),{slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch(e){}},recordCrossOriginIframes:!!h.recordCrossOriginIframes}),this._initialOptions={flushMinDelay:void 0===r?5e3:r,flushMaxDelay:void 0===n?5500:n,minReplayDuration:Math.min(void 0===i?4999:i,5e4),maxReplayDuration:Math.min(void 0===o?36e5:o,36e5),stickySession:void 0===l||l,useCompression:void 0===d||d,workerUrl:c,blockAllMedia:void 0===y||y,maskAllInputs:v,maskAllText:m,mutationBreadcrumbLimit:void 0===g?750:g,mutationLimit:void 0===S?1e4:S,slowClickTimeout:void 0===_?7e3:_,slowClickIgnoreSelectors:void 0===b?[]:b,networkDetailAllowUrls:void 0===w?[]:w,networkDetailDenyUrls:void 0===k?[]:k,networkCaptureBodies:void 0===E||E,networkRequestHeaders:rZ(void 0===C?[]:C),networkResponseHeaders:rZ(void 0===I?[]:I),beforeAddRecordingEvent:P,beforeErrorSampling:F,onError:B,attachRawBodyFromRequest:void 0!==U&&U,_experiments:h},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?"".concat(this._recordingOptions.blockSelector,",").concat(rV):rV,this._recordingOptions.ignoreCSSAttributes=new Set(["background-image"])),this._isInitialized&&(0,T.B)())throw Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}}function rZ(e){return[...rJ,...e.map(e=>e.toLowerCase())]}}}]);

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.