PageSourceSearch

https://www.photoprintsnow.com/b3a13d7d-c33918a79cd678741a71.js

js photoprintsnow.com collected 2026-10-01 13:14:53 UTC 124,094 bytes, 2 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="512b61e4-45a6-4fbb-bd0a-cd2d5b7809ad",e._sentryDebugIdIdentifier="sentry-dbid-512b61e4-45a6-4fbb-bd0a-cd2d5b7809ad")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"4abf066665ce2c805a0b1259d9c432965050fc66"},(self.webpackChunk_jackfruit_webapp=self.webpackChunk_jackfruit_webapp||[]).push([[996],{98442:function(e,t,n){n.d(t,{J$:function(){return ws}});var s=n(92460),r=n(90853),o=n(83741),i=n(41351),a=n(25606),c=n(49475),l=n(86641),u=n(3445),d=n(81869),h=n(16341),p=n(42181),m=n(68411),f=n(19766),y=n(89297),g=n(17412),S=n(6936),k=n(71540),v=n(39653),b=n(43650),_=n(90470),w=n(84672),I=n(28880),C=n(59403),E=n(38114),T=n(40571);const x=h.OW,M="sentryReplaySession",R="replay_event",A="Unable to send Replay",O=15e4,D=5e3,L=2e7,N=36e5;function F(e){let t,n=e[0],s=1;for(;s<e.length;){const r=e[s],o=e[s+1];if(s+=2,("optionalAccess"===r||"optionalCall"===r)&&null==n)return;"access"===r||"optionalAccess"===r?(t=n,n=o(n)):"call"!==r&&"optionalCall"!==r||(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}var B;function P(e){const t=F([e,"optionalAccess",e=>e.host]);return Boolean(F([t,"optionalAccess",e=>e.shadowRoot])===e)}function U(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function z(e){try{const n=e.rules||e.cssRules;return n?((t=Array.from(n,W).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),t):null}catch(n){return null}var t}function W(e){let t;if(function(e){return"styleSheet"in e}(e))try{t=z(e.styleSheet)||function(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}(e)}catch(n){}else if(function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":"))return function(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}(e.cssText);return t||e.cssText}!function(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"}(B||(B={}));class H{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){if(!e)return-1;const t=F([this,"access",e=>e.getMeta,"call",t=>t(e),"optionalAccess",e=>e.id]);return s=()=>-1,null!=(n=t)?n:s();var n,s}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function j({maskInputOptions:e,tagName:t,type:n}){return"OPTION"===t&&(t="SELECT"),Boolean(e[t.toLowerCase()]||n&&e[n]||"password"===n||"INPUT"===t&&!n&&e.text)}function $({isMasked:e,element:t,value:n,maskInputFn:s}){let r=n||"";return e?(s&&(r=s(r,t)),"*".repeat(r.length)):r}function q(e){return e.toLowerCase()}function K(e){return e.toUpperCase()}const V="__rrweb_original__";function J(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?q(t):null}function Y(e,t,n){return"INPUT"!==t||"radio"!==n&&"checkbox"!==n?e.value:e.getAttribute("value")||""}let G=1;const X=new RegExp("[^a-z0-9-_:]"),Q=-2;function Z(){return G++}let ee,te;const ne=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,se=/^(?:[a-z+]+:)?\/\//i,re=/^www\..*/i,oe=/^(data:)([^,]*),(.*)/i;function ie(e,t){return(e||"").replace(ne,((e,n,s,r,o,i)=>{const a=s||o||i,c=n||r||"";if(!a)return e;if(se.test(a)||re.test(a))return`url(${c}${a}${c})`;if(oe.test(a))return`url(${c}${a}${c})`;if("/"===a[0])return`url(${c}${function(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+a}${c})`;const l=t.split("/"),u=a.split("/");l.pop();for(const t of u)"."!==t&&(".."===t?l.pop():l.push(t));return`url(${c}${l.join("/")}${c})`}))}const ae=/^[^ \t\n\r\u000c]+/,ce=/^[, \t\n\r\u000c]+/;function le(e,t){if(!t||""===t.trim())return t;const n=e.createElement("a");return n.href=t,n.href}function ue(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function de(){const e=document.createElement("a");return e.href="",e.href}function he(e,t,n,s,r,o){return s?"src"===n||"href"===n&&("use"!==t||"#"!==s[0])||"xlink:href"===n&&"#"!==s[0]?le(e,s):"background"!==n||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===n?function(e,t){if(""===t.trim())return t;let n=0;function s(e){let s;const r=e.exec(t.substring(n));return r?(s=r[0],n+=s.length,s):""}const r=[];for(;s(ce),!(n>=t.length);){let o=s(ae);if(","===o.slice(-1))o=le(e,o.substring(0,o.length-1)),r.push(o);else{let s="";o=le(e,o);let i=!1;for(;;){const e=t.charAt(n);if(""===e){r.push((o+s).trim());break}if(i)")"===e&&(i=!1);else{if(","===e){n+=1,r.push((o+s).trim());break}"("===e&&(i=!0)}s+=e,n+=1}}}return r.join(", ")}(e,s):"style"===n?ie(s,de()):"object"===t&&"data"===n?le(e,s):"function"==typeof o?o(n,s,r):s:le(e,s):s}function pe(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function me(e,t,n=1/0,s=0){return e?e.nodeType!==e.ELEMENT_NODE||s>n?-1:t(e)?s:me(e.parentNode,t,n,s+1):-1}function fe(e,t){return n=>{const s=n;
1if(null===s)return!1;try{if(e)if("string"==typeof e){if(s.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){const s=e.classList[n];if(t.test(s))return!0}return!1}(s,e))return!0;return!(!t||!s.matches(t))}catch(r){return!1}}}function ye(e,t,n,s,r,o){try{const i=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===i)return!1;if("INPUT"===i.tagName){const e=i.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let a=-1,c=-1;if(o){if(c=me(i,fe(s,r)),c<0)return!0;a=me(i,fe(t,n),c>=0?c:1/0)}else{if(a=me(i,fe(t,n)),a<0)return!1;c=me(i,fe(s,r),a>=0?a:1/0)}return a>=0?!(c>=0)||a<=c:!(c>=0)&&!!o}catch(i){}return!!o}function ge(e,t){const{doc:n,mirror:s,blockClass:r,blockSelector:o,unblockSelector:i,maskAllText:a,maskAttributeFn:c,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:h,inlineStylesheet:p,maskInputOptions:m={},maskTextFn:f,maskInputFn:y,dataURLOptions:g={},inlineImages:S,recordCanvas:k,keepIframeSrcFn:v,newlyAddedElement:b=!1}=t,_=function(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return 1===n?void 0:n}(n,s);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:B.Document,childNodes:[],compatMode:e.compatMode}:{type:B.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:B.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:_};case e.ELEMENT_NODE:return function(e,t){const{doc:n,blockClass:s,blockSelector:r,unblockSelector:o,inlineStylesheet:i,maskInputOptions:a={},maskAttributeFn:c,maskInputFn:l,dataURLOptions:u={},inlineImages:d,recordCanvas:h,keepIframeSrcFn:p,newlyAddedElement:m=!1,rootId:f,maskAllText:y,maskTextClass:g,unmaskTextClass:S,maskTextSelector:k,unmaskTextSelector:v}=t,b=function(e,t,n,s){try{if(s&&e.matches(s))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){const s=e.classList[n];if(t.test(s))return!0}if(n)return e.matches(n)}catch(r){}return!1}(e,s,r,o),_=function(e){if(e instanceof HTMLFormElement)return"form";const t=q(e.tagName);return X.test(t)?"div":t}(e);let w={};const I=e.attributes.length;for(let T=0;T<I;T++){const t=e.attributes[T];t.name&&!pe(_,t.name,t.value)&&(w[t.name]=he(n,_,q(t.name),t.value,e,c))}if("link"===_&&i){const t=Array.from(n.styleSheets).find((t=>t.href===e.href));let s=null;t&&(s=z(t)),s&&(delete w.rel,delete w.href,w._cssText=ie(s,t.href))}if("style"===_&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=z(e.sheet);t&&(w._cssText=ie(t,de()))}if("input"===_||"textarea"===_||"select"===_||"option"===_){const t=e,n=J(t),s=Y(t,K(_),n),r=t.checked;if("submit"!==n&&"button"!==n&&s){const e=ye(t,g,k,S,v,j({type:n,tagName:K(_),maskInputOptions:a}));w.value=$({isMasked:e,element:t,value:s,maskInputFn:l})}r&&(w.checked=r)}"option"===_&&(e.selected&&!a.select?w.selected=!0:delete w.selected);if("canvas"===_&&h)if("2d"===e.__context)(function(e){const t=e.getContext("2d");if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let s=0;s<e.height;s+=50){const r=t.getImageData,o=V in r?r[V]:r;if(new Uint32Array(o.call(t,n,s,Math.min(50,e.width-n),Math.min(50,e.height-s)).data.buffer).some((e=>0!==e)))return!1}return!0})(e)||(w.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!("__context"in e)){const t=e.toDataURL(u.type,u.quality),n=document.createElement("canvas");n.width=e.width,n.height=e.height;t!==n.toDataURL(u.type,u.quality)&&(w.rr_dataURL=t)}if("img"===_&&d){ee||(ee=n.createElement("canvas"),te=ee.getContext("2d"));const t=e,s=t.crossOrigin;t.crossOrigin="anonymous";const r=()=>{t.removeEventListener("load",r);try{ee.width=t.naturalWidth,ee.height=t.naturalHeight,te.drawImage(t,0,0),w.rr_dataURL=ee.toDataURL(u.type,u.quality)}catch(e){console.warn(`Cannot inline img src=${t.currentSrc}! Error: ${e}`)}s?w.crossOrigin=s:t.removeAttribute("crossorigin")};t.complete&&0!==t.naturalWidth?r():t.addEventListener("load",r)}"audio"!==_&&"video"!==_||(w.rr_mediaState=e.paused?"paused":"played",w.rr_mediaCurrentTime=e.currentTime);m||(e.scrollLeft&&(w.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(w.rr_scrollTop=e.scrollTop));if(b){const{width:t,height:n}=e.getBoundingClientRect();w={class:w.class,rr_width:`${t}px`,rr_height:`${n}px`}}"iframe"!==_||p(w.src)||(e.contentDocument||(w.rr_src=w.src),delete w.src);let C;try{customElements.get(_)&&(C=!0)}catch(E){}return{type:B.Element,tagName:_,attributes:w,childNodes:[],isSVG:ue(e)||void 0,needBlock:b,rootId:f,isCustom:C}}(e,{doc:n,blockClass:r,blockSelector:o,unblockSelector:i,inlineStylesheet:p,maskAttributeFn:c,maskInputOptions:m,maskInputFn:y,dataURLOptions:g,inlineImages:S,recordCanvas:k,keepIframeSrcFn:v,newlyAddedElement:b,rootId:_,maskAllText:a,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:h});case e.TEXT_NODE:return function(e,t){const{maskAllText:n,maskTextClass:s,unmaskTextClass:r,maskTextSelector:o,unmaskTextSelector:i,maskTextFn:a,maskInputOptions:c,maskInputFn:l,rootId:u}=t,d=e.parentNode&&e.parentNode.tagName;let h=e.textContent;const p="STYLE"===d||void 0,m="SCRIPT"===d||void 0,f="TEXTAREA"===d||void 0;if(p&&h){try{e.nextSibling||e.previousSibling||F([e,"access",e=>e.parentNode,"access",e=>e.sheet,"optionalAccess",e=>e.cssRules])&&(h=z(e.parentNode.sheet))}catch(g){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${g}`,e)}h=ie(h,de())}m&&(h="SCRIPT_PLACEHOLDER");const y=ye(e,s,o,r,i,n);p||m||f||!h||!y||(h=a?a(h,e.parentElement):h.replace(/[\S]/g,"*"));f&&h&&(c.textarea||y)&&(h=l?l(h,e.parentNode):h.replace(/[\S]/g,"*"));if("OPTION"===d&&h){h=$({isMasked:ye(e,s,o,r,i,j({type:null,tagName:d,maskInputOptions:c})),element:e,value:h,maskInputFn:l})}return{type:B.Text,textContent:h||"",isStyle:p,rootId:u}}(e,{maskAllText:a,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:h,maskTextFn:f,maskInputOptions:m,maskInputFn:y,rootId:_});case e.CDATA_SECTION_NODE:return{type:B.CDATA,textContent:"",rootId:_};case e.COMMENT_NODE:return{type:B.Comment,textContent:e.textContent||"",rootId:_};default:return!1}}function Se(e){return null==e?"":e.toLowerCase()}function ke(e,t){const{doc:n,mirror:s,blockClass:r,blockSelector:o,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:h=!1,inl
1ineStylesheet:p=!0,maskInputOptions:m={},maskAttributeFn:f,maskTextFn:y,maskInputFn:g,slimDOMOptions:S,dataURLOptions:k={},inlineImages:v=!1,recordCanvas:b=!1,onSerialize:_,onIframeLoad:w,iframeLoadTimeout:I=5e3,onStylesheetLoad:C,stylesheetLoadTimeout:E=5e3,keepIframeSrcFn:T=(()=>!1),newlyAddedElement:x=!1}=t;let{preserveWhiteSpace:M=!0}=t;const R=ge(e,{doc:n,mirror:s,blockClass:r,blockSelector:o,maskAllText:a,unblockSelector:i,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:f,maskTextFn:y,maskInputFn:g,dataURLOptions:k,inlineImages:v,recordCanvas:b,keepIframeSrcFn:T,newlyAddedElement:x});if(!R)return console.warn(e,"not serialized"),null;let A;A=s.hasNode(e)?s.getId(e):!function(e,t){if(t.comment&&e.type===B.Comment)return!0;if(e.type===B.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&e.attributes.href.endsWith(".js")))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(Se(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Se(e.attributes.name)||"icon"===Se(e.attributes.rel)||"apple-touch-icon"===Se(e.attributes.rel)||"shortcut icon"===Se(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&Se(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Se(e.attributes.property).match(/^(og|twitter|fb):/)||Se(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===Se(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===Se(e.attributes.name)||"googlebot"===Se(e.attributes.name)||"bingbot"===Se(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===Se(e.attributes.name)||"generator"===Se(e.attributes.name)||"framework"===Se(e.attributes.name)||"publisher"===Se(e.attributes.name)||"progid"===Se(e.attributes.name)||Se(e.attributes.property).match(/^article:/)||Se(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===Se(e.attributes.name)||"yandex-verification"===Se(e.attributes.name)||"csrf-token"===Se(e.attributes.name)||"p:domain_verify"===Se(e.attributes.name)||"verify-v1"===Se(e.attributes.name)||"verification"===Se(e.attributes.name)||"shopify-checkout-api-token"===Se(e.attributes.name)))return!0}}return!1}(R,S)&&(M||R.type!==B.Text||R.isStyle||R.textContent.replace(/^\s+|\s+$/gm,"").length)?Z():Q;const O=Object.assign(R,{id:A});if(s.add(e,O),A===Q)return null;_&&_(e);let D=!h;if(O.type===B.Element){D=D&&!O.needBlock,delete O.needBlock;const t=e.shadowRoot;t&&U(t)&&(O.isShadowHost=!0)}if((O.type===B.Document||O.type===B.Element)&&D){S.headWhitespace&&O.type===B.Element&&"head"===O.tagName&&(M=!1);const t={doc:n,mirror:s,blockClass:r,blockSelector:o,maskAllText:a,unblockSelector:i,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:h,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:f,maskTextFn:y,maskInputFn:g,slimDOMOptions:S,dataURLOptions:k,inlineImages:v,recordCanvas:b,preserveWhiteSpace:M,onSerialize:_,onIframeLoad:w,iframeLoadTimeout:I,onStylesheetLoad:C,stylesheetLoadTimeout:E,keepIframeSrcFn:T};for(const n of Array.from(e.childNodes)){const e=ke(n,t);e&&O.childNodes.push(e)}if(function(e){return e.nodeType===e.ELEMENT_NODE}(e)&&e.shadowRoot)for(const n of Array.from(e.shadowRoot.childNodes)){const s=ke(n,t);s&&(U(e.shadowRoot)&&(s.isShadow=!0),O.childNodes.push(s))}}return e.parentNode&&P(e.parentNode)&&U(e.parentNode)&&(O.isShadow=!0),O.type===B.Element&&"iframe"===O.tagName&&function(e,t,n){const s=e.contentWindow;if(!s)return;let r,o=!1;try{r=s.document.readyState}catch(a){return}if("complete"!==r){const s=setTimeout((()=>{o||(t(),o=!0)}),n);return void e.addEventListener("load",(()=>{clearTimeout(s),o=!0,t()}))}const i="about:blank";if(s.location.href!==i||e.src===i||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,(()=>{const t=e.contentDocument;if(t&&w){const n=ke(t,{doc:t,mirror:s,blockClass:r,blockSelector:o,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:f,maskTextFn:y,maskInputFn:g,slimDOMOptions:S,dataURLOptions:k,inlineImages:v,recordCanvas:b,preserveWhiteSpace:M,onSerialize:_,onIframeLoad:w,iframeLoadTimeout:I,onStylesheetLoad:C,stylesheetLoadTimeout:E,keepIframeSrcFn:T});n&&w(e,n)}}),I),O.type===B.Element&&"link"===O.tagName&&"stylesheet"===O.attributes.rel&&function(e,t,n){let s,r=!1;try{s=e.sheet}catch(i){return}if(s)return;const o=setTimeout((()=>{r||(t(),r=!0)}),n);e.addEventListener("load",(()=>{clearTimeout(o),r=!0,t()}))}(e,(()=>{if(C){const t=ke(e,{doc:n,mirror:s,blockClass:r,blockSelector:o,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:f,maskTextFn:y,maskInputFn:g,slimDOMOptions:S,dataURLOptions:k,inlineImages:v,recordCanvas:b,preserveWhiteSpace:M,onSerialize:_,onIframeLoad:w,iframeLoadTimeout:I,onStylesheetLoad:C,stylesheetLoadTimeout:E,keepIframeSrcFn:T});t&&C(e,t)}}),E),O}function ve(e){let t,n=e[0],s=1;for(;s<e.length;){const r=e[s],o=e[s+1];if(s+=2,("optionalAccess"===r||"optionalCall"===r)&&null==n)return;"access"===r||"optionalAccess"===r?(t=n,n=o(n)):"call"!==r&&"optionalCall"!==r||(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}function be(e,t,n=document){const s={capture:!0,passive:!0};return n.addEventListener(e,t,s),()=>n.removeEventListener(e,t,s)}const _e="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let we={map:{},getId(){return console.error(_e),-1},getNode(){return console.error(_e),null},removeNodeFromMap(){console.error(_e)},has(){return console.error(_e),!1},reset(){console.error(_e)}};function Ie(e,t,n={}){let s=null,r=0;return function(...o){const i=Date.now();r||!1!==n.leading||(r=i);const a=t-(i-r),c=this;a<=0||a>t?(s&&(!function(...e){$e("clearTimeout")(...e)}
1(s),s=null),r=i,e.apply(c,o)):s||!1===n.trailing||(s=qe((()=>{r=!1===n.leading?0:Date.now(),s=null,e.apply(c,o)}),a))}}function Ce(e,t,n,s,r=window){const o=r.Object.getOwnPropertyDescriptor(e,t);return r.Object.defineProperty(e,t,s?n:{set(e){qe((()=>{n.set.call(this,e)}),0),o&&o.set&&o.set.call(this,e)}}),()=>Ce(e,t,o||{},!0)}function Ee(e,t,n){try{if(!(t in e))return()=>{};const s=e[t],r=n(s);return"function"==typeof r&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:s}})),e[t]=r,()=>{e[t]=s}}catch(s){return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(we=new Proxy(we,{get(e,t,n){return"map"===t&&console.error(_e),Reflect.get(e,t,n)}}));let Te=Date.now;function xe(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:ve([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollLeft])||ve([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollLeft])||ve([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:ve([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollTop])||ve([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollTop])||ve([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollTop])||0}}function Me(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Re(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Ae(e){if(!e)return null;return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}function Oe(e,t,n,s,r){if(!e)return!1;const o=Ae(e);if(!o)return!1;const i=fe(t,n);if(!r){const e=s&&o.matches(s);return i(o)&&!e}const a=me(o,i);let c=-1;return!(a<0)&&(s&&(c=me(o,fe(null,s))),a>-1&&c<0||a<c)}function De(e,t){return t.getId(e)===Q}function Le(e,t){if(P(e))return!1;const n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||Le(e.parentNode,t))}function Ne(e){return Boolean(e.changedTouches)}function Fe(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function Be(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function Pe(e){return Boolean(ve([e,"optionalAccess",e=>e.shadowRoot]))}/[1-9][0-9]{12}/.test(Date.now().toString())||(Te=()=>(new Date).getTime());class Ue{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return(0,s.S)(this.styleIDMap.get(e),(()=>-1))}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function ze(e){let t=null;return ve([e,"access",e=>e.getRootNode,"optionalCall",e=>e(),"optionalAccess",e=>e.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function We(e){const t=e.ownerDocument;if(!t)return!1;const n=function(e){let t,n=e;for(;t=ze(n);)n=t;return n}(e);return t.contains(n)}function He(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||We(e))}const je={};function $e(e){const t=je[e];
1if(t)return t;const n=window.document;let s=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const r=t.contentWindow;r&&r[e]&&(s=r[e]),n.head.removeChild(t)}catch(r){}return je[e]=s.bind(window)}function qe(...e){return $e("setTimeout")(...e)}var Ke=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(Ke||{}),Ve=(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))(Ve||{}),Je=(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))(Je||{}),Ye=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Ye||{});function Ge(e){let t,n=e[0],s=1;for(;s<e.length;){const r=e[s],o=e[s+1];if(s+=2,("optionalAccess"===r||"optionalCall"===r)&&null==n)return;"access"===r||"optionalAccess"===r?(t=n,n=o(n)):"call"!==r&&"optionalCall"!==r||(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}function Xe(e){return"__ln"in e}class Qe{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let n=0;n<e;n++)t=Ge([t,"optionalAccess",e=>e.next])||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&Xe(e.previousSibling)){const n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&Xe(e.nextSibling)&&e.nextSibling.__ln.previous){const n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){const t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const Ze=(e,t)=>`${e}@${t}`;class et{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,n=new Qe,s=e=>{let t=e,n=Q;for(;n===Q;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},r=r=>{if(!r.parentNode||!He(r))return;const o=P(r.parentNode)?this.mirror.getId(ze(r)):this.mirror.getId(r.parentNode),i=s(r);if(-1===o||-1===i)return n.addNode(r);const a=ke(r,{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.inl
1ineImages,onSerialize:e=>{Fe(e,this.mirror)&&this.iframeManager.addIframe(e),Be(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),Pe(r)&&this.shadowDomManager.addShadowRoot(r.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});a&&(e.push({parentId:o,nextId:i,node:a}),t.add(a.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const a of this.movedSet)nt(this.removes,a,this.mirror)&&!this.movedSet.has(a.parentNode)||r(a);for(const a of this.addedSet)rt(this.droppedSet,a)||nt(this.removes,a,this.mirror)?rt(this.movedSet,a)?r(a):this.droppedSet.add(a):r(a);let o=null;for(;n.length;){let e=null;if(o){const t=this.mirror.getId(o.value.parentNode),n=s(o.value);-1!==t&&-1!==n&&(e=o)}if(!e){let t=n.tail;for(;t;){const n=t;if(t=t.previous,n){const t=this.mirror.getId(n.value.parentNode);if(-1===s(n.value))continue;if(-1!==t){e=n;break}{const t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const s=t.parentNode.host;if(-1!==this.mirror.getId(s)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}o=e.previous,n.removeNode(e.value),r(e.value)}const i={texts:this.texts.map((e=>({id:this.mirror.getId(e.node),value:e.value}))).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),attributes:this.attributes.map((e=>{const{attributes:t}=e;if("string"==typeof t.style){const n=JSON.stringify(e.styleDiff),s=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+s).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(!De(e.target,this.mirror))switch(e.type){case"characterData":{const t=e.target.textContent;Oe(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:ye(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,Ae(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const n=e.target;let s=e.attributeName,r=e.target.getAttribute(s);if("value"===s){const t=J(n),s=n.tagName;r=Y(n,s,t);const o=j({maskInputOptions:this.maskInputOptions,tagName:s,type:t});r=$({isMasked:ye(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,o),element:n,value:r,maskInputFn:this.maskInputFn})}if(Oe(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let o=this.attributeMap.get(e.target);if("IFRAME"===n.tagName&&"src"===s&&!this.keepIframeSrcFn(r)){if(n.contentDocument)return;s="rr_src"}if(o||(o={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(e.target,o)),"type"===s&&"INPUT"===n.tagName&&"password"===(e.oldValue||"").toLowerCase()&&n.setAttribute("data-rr-is-password","true"),!pe(n.tagName,s)&&(o.attributes[s]=he(this.doc,q(n.tagName),q(s),r,n,this.maskAttributeFn),"style"===s)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(t){this.unattachedDoc=this.doc}const s=this.unattachedDoc.createElement("span");e.oldValue&&s.setAttribute("style",e.oldValue);for(const e of Array.from(n.style)){const t=n.style.getPropertyValue(e),r=n.style.getPropertyPriority(e);t!==s.style.getPropertyValue(e)||r!==s.style.getPropertyPriority(e)?o.styleDiff[e]=""===r?t:[t,r]:o._unchangedStyles[e]=[t,r]}for(const e of Array.from(s.style))""===n.style.getPropertyValue(e)&&(o.styleDiff[e]=!1)}break}case"childList":if(Oe(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;
1e.addedNodes.forEach((t=>this.genAdds(t,e.target))),e.removedNodes.forEach((t=>{const n=this.mirror.getId(t),s=P(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);Oe(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||De(t,this.mirror)||!function(e,t){return-1!==t.getId(e)}(t,this.mirror)||(this.addedSet.has(t)?(tt(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||Le(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[Ze(n,s)]?tt(this.movedSet,t):this.removes.push({parentId:s,id:n,isShadow:!(!P(e.target)||!U(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(De(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[Ze(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);Oe(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes.forEach((e=>this.genAdds(e))),Pe(e)&&e.shadowRoot.childNodes.forEach((t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)})))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((t=>{this[t]=e[t]}))}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function tt(e,t){e.delete(t),t.childNodes.forEach((t=>tt(e,t)))}function nt(e,t,n){return 0!==e.length&&st(e,t,n)}function st(e,t,n){const{parentNode:s}=t;if(!s)return!1;const r=n.getId(s);return!!e.some((e=>e.id===r))||st(e,s,n)}function rt(e,t){return 0!==e.size&&ot(e,t)}function ot(e,t){const{parentNode:n}=t;return!!n&&(!!e.has(n)||ot(e,n))}let it;function at(e){it=e}function ct(){it=void 0}const lt=e=>{if(!it)return e;return(...t)=>{try{return e(...t)}catch(n){if(it&&!0===it(n))return()=>{};throw n}}};function ut(e){let t,n=e[0],s=1;for(;s<e.length;){const r=e[s],o=e[s+1];if(s+=2,("optionalAccess"===r||"optionalCall"===r)&&null==n)return;"access"===r||"optionalAccess"===r?(t=n,n=o(n)):"call"!==r&&"optionalCall"!==r||(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}const dt=[];function ht(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(t){}return e&&e.target}function pt(e,t){const n=new et;dt.push(n),n.init(e);let s=window.MutationObserver||window.__rrMutationObserver;const r=ut([window,"optionalAccess",e=>e.Zone,"optionalAccess",e=>e.__symbol__,"optionalCall",e=>e("MutationObserver")]);r&&window[r]&&(s=window[r]);const o=new s(lt((t=>{e.onMutation&&!1===e.onMutation(t)||n.processMutations.bind(n)(t)})));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function mt({mouseInteractionCb:e,doc:t,mirror:n,blockClass:s,blockSelector:r,unblockSelector:o,sampling:i}){if(!1===i.mouseInteraction)return()=>{};const a=!0===i.mouseInteraction||void 0===i.mouseInteraction?{}:i.mouseInteraction,c=[];let l=null;return Object.keys(Je).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e])).forEach((i=>{let a=q(i);const u=(t=>i=>{const a=ht(i);if(Oe(a,s,r,o,!0))return;let c=null,u=t;if("pointerType"in i){switch(i.pointerType){case"mouse":c=Ye.Mouse;break;case"touch":c=Ye.Touch;break;case"pen":c=Ye.Pen}c===Ye.Touch?Je[t]===Je.MouseDown?u="TouchStart":Je[t]===Je.MouseUp&&(u="TouchEnd"):Ye.Pen}else Ne(i)&&(c=Ye.Touch);null!==c?(l=c,(u.startsWith("Touch")&&c===Ye.Touch||u.startsWith("Mouse")&&c===Ye.Mouse)&&(c=null)):Je[t]===Je.Click&&(c=l,l=null);const d=Ne(i)?i.changedTouches[0]:i;if(!d)return;const h=n.getId(a),{clientX:p,clientY:m}=d;lt(e)({type:Je[u],id:h,x:p,y:m,...null!==c&&{pointerType:c}})})(i);if(window.PointerEvent)switch(Je[i]){case Je.MouseDown:case Je.MouseUp:a=a.replace("mouse","pointer");break;case Je.TouchStart:case Je.TouchEnd:return}c.push(be(a,u,t))})),lt((()=>
1{c.forEach((e=>e()))}))}function ft({scrollCb:e,doc:t,mirror:n,blockClass:s,blockSelector:r,unblockSelector:o,sampling:i}){return be("scroll",lt(Ie(lt((i=>{const a=ht(i);if(!a||Oe(a,s,r,o,!0))return;const c=n.getId(a);if(a===t&&t.defaultView){const n=xe(t.defaultView);e({id:c,x:n.left,y:n.top})}else e({id:c,x:a.scrollLeft,y:a.scrollTop})})),i.scroll||100)),t)}const yt=["INPUT","TEXTAREA","SELECT"],gt=new WeakMap;function St({inputCb:e,doc:t,mirror:n,blockClass:s,blockSelector:r,unblockSelector:o,ignoreClass:i,ignoreSelector:a,maskInputOptions:c,maskInputFn:l,sampling:u,userTriggeredOnInput:d,maskTextClass:h,unmaskTextClass:p,maskTextSelector:m,unmaskTextSelector:f}){function y(e){let n=ht(e);const u=e.isTrusted,y=n&&K(n.tagName);if("OPTION"===y&&(n=n.parentElement),!n||!y||yt.indexOf(y)<0||Oe(n,s,r,o,!0))return;const S=n;if(S.classList.contains(i)||a&&S.matches(a))return;const k=J(n);let v=Y(S,y,k),b=!1;const _=j({maskInputOptions:c,tagName:y,type:k}),w=ye(n,h,m,p,f,_);"radio"!==k&&"checkbox"!==k||(b=n.checked),v=$({isMasked:w,element:n,value:v,maskInputFn:l}),g(n,d?{text:v,isChecked:b,userTriggered:u}:{text:v,isChecked:b});const I=n.name;"radio"===k&&I&&b&&t.querySelectorAll(`input[type="radio"][name="${I}"]`).forEach((e=>{if(e!==n){const t=$({isMasked:w,element:e,value:Y(e,y,k),maskInputFn:l});g(e,d?{text:t,isChecked:!b,userTriggered:!1}:{text:t,isChecked:!b})}}))}function g(t,s){const r=gt.get(t);if(!r||r.text!==s.text||r.isChecked!==s.isChecked){gt.set(t,s);const r=n.getId(t);lt(e)({...s,id:r})}}const S=("last"===u.input?["change"]:["input","change"]).map((e=>be(e,lt(y),t))),k=t.defaultView;if(!k)return()=>{S.forEach((e=>e()))};const v=k.Object.getOwnPropertyDescriptor(k.HTMLInputElement.prototype,"value"),b=[[k.HTMLInputElement.prototype,"value"],[k.HTMLInputElement.prototype,"checked"],[k.HTMLSelectElement.prototype,"value"],[k.HTMLTextAreaElement.prototype,"value"],[k.HTMLSelectElement.prototype,"selectedIndex"],[k.HTMLOptionElement.prototype,"selected"]];return v&&v.set&&S.push(...b.map((e=>Ce(e[0],e[1],{set(){lt(y)({target:this,isTrusted:!1})}},!1,k)))),lt((()=>{S.forEach((e=>e()))}))}function kt(e){return function(e,t){if(wt("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||wt("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||wt("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||wt("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){const n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function vt(e,t,n){let s,r;return e?(e.ownerNode?s=t.getId(e.ownerNode):r=n.getId(e),{styleId:r,id:s}):{}}function bt({mirror:e,stylesheetManager:t},n){let s=null;s="#document"===n.nodeName?e.getId(n):e.getId(n.host);const r="#document"===n.nodeName?ut([n,"access",e=>e.defaultView,"optionalAccess",e=>e.Document]):ut([n,"access",e=>e.ownerDocument,"optionalAccess",e=>e.defaultView,"optionalAccess",e=>e.ShadowRoot]),o=ut([r,"optionalAccess",e=>e.prototype])?Object.getOwnPropertyDescriptor(ut([r,"optionalAccess",e=>e.prototype]),"adoptedStyleSheets"):void 0;return null!==s&&-1!==s&&r&&o?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){return ut([o,"access",e=>e.get,"optionalAccess",e=>e.call,"call",e=>e(this)])},set(e){const n=ut([o,"access",e=>e.set,"optionalAccess",e=>e.call,"call",t=>t(this,e)]);if(null!==s&&-1!==s)try{t.adoptStyleSheets(e,s)}catch(r){}return n}}),lt((()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})}))):()=>{}}function _t(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};const s=pt(e,e.doc),r=function({mousemoveCb:e,sampling:t,doc:n,mirror:s}){if(!1===t.mousemove)return()=>{};const r="number"==typeof t.mousemove?t.mousemove:50,o="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let i,a=[];const c=Ie(lt((t=>{const n=Date.now()-i;e(a.map((e=>(e.timeOffset-=n,e))),t),a=[],i=null})),o),l=lt(Ie(lt((e=>{const t=ht(e),{clientX:n,clientY:r}=Ne(e)?e.changedTouches[0]:e;i||(i=Te()),a.push({x:n,y:r,id:s.getId(t),timeOffset:Te()-i}),c("undefined"!=typeof DragEvent&&e instanceof DragEvent?Ve.Drag:e instanceof MouseEvent?Ve.MouseMove:Ve.TouchMove)})),r,{trailing:!1})),u=[be("mousemove",l,n),be("touchmove",l,n),be("drag",l,n)];return lt((()=>{u.forEach((e=>e()))}))}(e),o=mt(e),i=ft(e),a=function({viewportResizeCb:e},{win:t}){let n=-1,s=-1;return be("resize",lt(Ie(lt((()=>{const t=Me(),r=Re();n===t&&s===r||(e({width:Number(r),height:Number(t)}),n=t,s=r)}
vendor: 4,458 bytes, line 1
1)),200)),t)}(e,{win:n}),c=St(e),l=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:s,mirror:r,sampling:o,doc:i}){const a=lt((i=>Ie(lt((o=>{const a=ht(o);if(!a||Oe(a,t,n,s,!0))return;const{currentTime:c,volume:l,muted:u,playbackRate:d}=a;e({type:i,id:r.getId(a),currentTime:c,volume:l,muted:u,playbackRate:d})})),o.media||500))),c=[be("play",a(0),i),be("pause",a(1),i),be("seeked",a(2),i),be("volumechange",a(3),i),be("ratechange",a(4),i)];return lt((()=>{c.forEach((e=>e()))}))}(e),u=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:s}){if(!s.CSSStyleSheet||!s.CSSStyleSheet.prototype)return()=>{};const r=s.CSSStyleSheet.prototype.insertRule;s.CSSStyleSheet.prototype.insertRule=new Proxy(r,{apply:lt(((s,r,o)=>{const[i,a]=o,{id:c,styleId:l}=vt(r,t,n.styleMirror);return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,adds:[{rule:i,index:a}]}),s.apply(r,o)}))});const o=s.CSSStyleSheet.prototype.deleteRule;let i,a;s.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:lt(((s,r,o)=>{const[i]=o,{id:a,styleId:c}=vt(r,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:i}]}),s.apply(r,o)}))}),s.CSSStyleSheet.prototype.replace&&(i=s.CSSStyleSheet.prototype.replace,s.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:lt(((s,r,o)=>{const[i]=o,{id:a,styleId:c}=vt(r,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replace:i}),s.apply(r,o)}))})),s.CSSStyleSheet.prototype.replaceSync&&(a=s.CSSStyleSheet.prototype.replaceSync,s.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:lt(((s,r,o)=>{const[i]=o,{id:a,styleId:c}=vt(r,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replaceSync:i}),s.apply(r,o)}))}));const c={};It("CSSGroupingRule")?c.CSSGroupingRule=s.CSSGroupingRule:(It("CSSMediaRule")&&(c.CSSMediaRule=s.CSSMediaRule),It("CSSConditionRule")&&(c.CSSConditionRule=s.CSSConditionRule),It("CSSSupportsRule")&&(c.CSSSupportsRule=s.CSSSupportsRule));const l={};return Object.entries(c).forEach((([s,r])=>{l[s]={insertRule:r.prototype.insertRule,deleteRule:r.prototype.deleteRule},r.prototype.insertRule=new Proxy(l[s].insertRule,{apply:lt(((s,r,o)=>{const[i,a]=o,{id:c,styleId:l}=vt(r.parentStyleSheet,t,n.styleMirror);return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,adds:[{rule:i,index:[...kt(r),a||0]}]}),s.apply(r,o)}))}),r.prototype.deleteRule=new Proxy(l[s].deleteRule,{apply:lt(((s,r,o)=>{const[i]=o,{id:a,styleId:c}=vt(r.parentStyleSheet,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:[...kt(r),i]}]}),s.apply(r,o)}))})})),lt((()=>{s.CSSStyleSheet.prototype.insertRule=r,s.CSSStyleSheet.prototype.deleteRule=o,i&&(s.CSSStyleSheet.prototype.replace=i),a&&(s.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEach((([e,t])=>{t.prototype.insertRule=l[e].insertRule,t.prototype.deleteRule=l[e].deleteRule}))}))}(e,{win:n}),d=bt(e,e.doc),h=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:s},{win:r}){const o=r.CSSStyleDeclaration.prototype.setProperty;r.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:lt(((r,i,a)=>{const[c,l,u]=a;if(n.has(c))return o.apply(i,[c,l,u]);const{id:d,styleId:h}=vt(ut([i,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,s.styleMirror);return(d&&-1!==d||h&&-1!==h)&&e({id:d,styleId:h,set:{property:c,value:l,priority:u},index:kt(i.parentRule)}),r.apply(i,a)}))});const i=r.CSSStyleDeclaration.prototype.removeProperty;return r.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:lt(((r,o,a)=>{const[c]=a;if(n.has(c))return i.apply(o,[c]);const{id:l,styleId:u}=vt(ut([o,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,s.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,remove:{property:c},index:kt(o.parentRule)}),r.apply(o,a)}))}),lt((()=>{r.CSSStyleDeclaration.prototype.setProperty=o,r.CSSStyleDeclaration.prototype.removeProperty=i}))}(e,{win:n}),p=e.collectFonts?function({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const s=[],r=new WeakMap,o=n.FontFace;n.FontFace=function(e,t,n){const s=new o(e,t,n);return r.set(s,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),s};const i=Ee(t.fonts,"add",(function(t){return function(n){return qe(lt((()=>{const t=r.get(n);t&&(e(t),r.delete(n))})),0),t.apply(this,[n])}}));return s.push((()=>{n.FontFace=o})),s.push(i),lt((()=>
1{s.forEach((e=>e()))}))}(e):()=>{},m=function(e){const{doc:t,mirror:n,blockClass:s,blockSelector:r,unblockSelector:o,selectionCb:i}=e;let a=!0;const c=lt((()=>{const e=t.getSelection();if(!e||a&&ut([e,"optionalAccess",e=>e.isCollapsed]))return;a=e.isCollapsed||!1;const c=[],l=e.rangeCount||0;for(let t=0;t<l;t++){const i=e.getRangeAt(t),{startContainer:a,startOffset:l,endContainer:u,endOffset:d}=i;Oe(a,s,r,o,!0)||Oe(u,s,r,o,!0)||c.push({start:n.getId(a),startOffset:l,end:n.getId(u),endOffset:d})}i({ranges:c})}));return c(),be("selectionchange",c)}(e),f=function({doc:e,customElementCb:t}){const n=e.defaultView;return n&&n.customElements?Ee(n.customElements,"define",(function(e){return function(n,s,r){try{t({define:{name:n}})}catch(o){}return e.apply(this,[n,s,r])}})):()=>{}}(e),y=[];for(const g of e.plugins)y.push(g.observer(g.callback,n,g.options));return lt((()=>{dt.forEach((e=>e.reset())),s.disconnect(),r(),o(),i(),a(),c(),l(),u(),d(),h(),p(),m(),f(),y.forEach((e=>e()))}))}function wt(e){return void 0!==window[e]}function It(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Ct{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,s){const r=n||this.getIdToRemoteIdMap(e),o=s||this.getRemoteIdToIdMap(e);let i=r.get(t);return i||(i=this.generateIdFn(),r.set(t,i),o.set(i,t)),i}getIds(e,t){const n=this.getIdToRemoteIdMap(e),s=this.getRemoteIdToIdMap(e);return t.map((t=>this.getId(e,t,n,s)))}
1getRemoteId(e,t,n){const s=n||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;const r=s.get(t);return r||-1}getRemoteIds(e,t){const n=this.getRemoteIdToIdMap(e);return t.map((t=>this.getRemoteId(e,t,n)))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}function Et(e){let t,n=e[0],s=1;for(;s<e.length;){const r=e[s],o=e[s+1];if(s+=2,("optionalAccess"===r||"optionalCall"===r)&&null==n)return;"access"===r||"optionalAccess"===r?(t=n,n=o(n)):"call"!==r&&"optionalCall"!==r||(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}class Tt{constructor(){this.crossOriginIframeMirror=new Ct(Z),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class xt{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Ct(Z),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Ct(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),Et([this,"access",e=>e.loadListener,"optionalCall",t=>t(e)]),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin)return;if(!e.source)return;const n=this.crossOriginIframeMap.get(e.source);if(!n)return;const s=this.transformCrossOriginEvent(n,t.data.event);s&&this.wrappedEmit(s,t.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case Ke.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:Ke.IncrementalSnapshot,data:{source:Ve.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Ke.Meta:case Ke.Load:case Ke.DomContentLoaded:return!1;case Ke.Plugin:return t;case Ke.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case Ke.IncrementalSnapshot:switch(t.data.source){case Ve.Mutation:return t.data.adds.forEach((t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)})),t.data.removes.forEach((t=>{this.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((t=>{this.replaceIds(t,e,["id"])})),t.data.texts.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case Ve.Drag:case Ve.TouchMove:case Ve.MouseMove:return t.data.positions.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case Ve.ViewportResize:return!1;case Ve.MediaInteraction:case Ve.MouseInteraction:case Ve.Scroll:case Ve.CanvasMutation:case Ve.Input:return this.replaceIds(t.data,e,["id"]),t;case Ve.StyleSheetRule:case Ve.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case Ve.Font:return t;
1case Ve.Selection:return t.data.ranges.forEach((t=>{this.replaceIds(t,e,["start","end"])})),t;case Ve.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),Et([t,"access",e=>e.data,"access",e=>e.styles,"optionalAccess",e=>e.forEach,"call",t=>t((t=>{this.replaceStyleIds(t,e,["styleId"])}))]),t}}return!1}replace(e,t,n,s){for(const r of s)(Array.isArray(t[r])||"number"==typeof t[r])&&(Array.isArray(t[r])?t[r]=e.getIds(n,t[r]):t[r]=e.getId(n,t[r]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach((e=>{this.replaceIdOnNode(e,t)}))}patchRootIdOnNode(e,t){e.type===B.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach((e=>{this.patchRootIdOnNode(e,t)}))}}class Mt{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class Rt{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!U(e))return;if(this.shadowDoms.has(e))return;this.shadowDoms.add(e);const n=pt({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push((()=>n.disconnect())),this.restoreHandlers.push(ft({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),qe((()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(bt({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))}),0)}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){const n=this;this.restoreHandlers.push(Ee(e.prototype,"attachShadow",(function(e){return function(s){const r=e.call(this,s);return this.shadowRoot&&He(this)&&n.addShadowRoot(this.shadowRoot,t),r}})))}reset(){this.restoreHandlers.forEach((e=>{try{e()}catch(t){}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}class At{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}}class Ot{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new Ue,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;const n={id:t,styleIds:[]},s=[];for(const r of e){let e;this.styleMirror.has(r)?e=this.styleMirror.getId(r):(e=this.styleMirror.add(r),s.push({styleId:e,rules:Array.from(r.rules||CSSRule,((e,t)=>({rule:W(e),index:t})))})),n.styleIds.push(e)}s.length>0&&(n.styles=s),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class Dt{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){!function(...e){$e("requestAnimationFrame")(...e)}((()=>{this.clear(),this.loop&&this.periodicallyClear()}))}inOtherBuffer(e,t){const n=this.nodeMap.get(e);return n&&Array.from(n).some((e=>e!==t))}add(e,t){this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}let Lt,Nt;const Ft=new H;function Bt(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:s,blockClass:o="rr-block",blockSelector:i=null,unblockSelector:a=null,ignoreClass:c="rr-ignore",ignoreSelector:l=null,maskAllText:u=!1,maskTextClass:d="rr-mask",unmaskTextClass:h=null,maskTextSelector:p=null,unmaskTextSelector:m=null,inlineStylesheet:f=!0,maskAllInputs:y,maskInputOptions:g,slimDOMOptions:S,maskAttributeFn:k,maskInputFn:v,maskTextFn:b,maxCanvasSize:_=null,packFn:w,sampling:I={},dataURLOptions:C={},mousemoveWait:E,recordCanvas:T=!1,recordCrossOriginIframes:x=!1,recordAfter:M=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:R=!1,collectFonts:A=!1,inlineImages:O=!1,plugins:D,keepIframeSrcFn:L=(()=>!1),ignoreCSSAttributes:N=new Set([]),errorHandler:F,onMutation:B,getCanvasManager:P}=e;at(F);const U=!x||window.parent===window;let z=!1;if(!U)try{window.parent.document&&(z=!1)}catch(ne){z=!0}if(U&&!t)throw new Error("emit function is required");void 0!==E&&void 0===I.mousemove&&(I.mousemove=E),Ft.reset();const W=!0===y?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==g?g:{},j=!0===S||"all"===S?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===S,headMetaDescKeywords:"all"===S}:S||{};let $;!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}();let q=0;const K=e=>{for(const t of D||[])t.eventProcessor&&(e=t.eventProcessor(e));return w&&!z&&(e=w(e)),e};Lt=(e,o)=>{const i=e;if(i.timestamp=Te(),!(0,r.z)([dt,"access",e=>e[0],"optionalAccess",e=>e.isFrozen,"call",e=>e()])||i.type===Ke.FullSnapshot||i.type===Ke.IncrementalSnapshot&&i.data.source===Ve.Mutation||dt.forEach((e=>e.unfreeze())),U)(0,r.z)([t,"optionalCall",e=>e(K(i),o)]);else if(z){const e={type:"rrweb",event:K(i),origin:window.location.origin,isCheckout:o};window.parent.postMessage(e,"*")}if(i.type===Ke.FullSnapshot)$=i,q=0;else if(i.type===Ke.IncrementalSnapshot){if(i.data.source===Ve.Mutation&&i.data.isAttachIframe)return;q++;const e=s&&q>=s,t=n&&$&&i.timestamp-$.timestamp>n;(e||t)&&te(!0)}};const V=e=>{Lt({type:Ke.IncrementalSnapshot,data:{source:Ve.Mutation,...e}})},J=e=>Lt({type:Ke.IncrementalSnapshot,data:{source:Ve.Scroll,...e}}),Y=e=>Lt({type:Ke.IncrementalSnapshot,data:{source:Ve.CanvasMutation,...e}}),G=new Ot({mutationCb:V,adoptedStyleSheetCb:e=>Lt({type:Ke.IncrementalSnapshot,data:{source:Ve.AdoptedStyleSheet,...e}})}),X="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new Tt:new xt({mirror:Ft,mutationCb:V,stylesheetManager:G,recordCrossOriginIframes:x,wrappedEmit:Lt});for(const r of D||[])r.getMirror&&r.getMirror({nodeMirror:Ft,crossOriginIframeMirror:X.crossOriginIframeMirror,crossOriginIframeStyleMirror:X.crossOriginIframeStyleMirror});const Q=new Dt,Z=function(e,t){try{return e?e(t):new At}catch(n){return console.warn("Unable to initialize CanvasManager"),new At}}(P,{mirror:Ft,win:window,mutationCb:e=>Lt({type:Ke.IncrementalSnapshot,data:{source:Ve.CanvasMutation,...e}}),recordCanvas:T,blockClass:o,blockSelector:i,unblockSelector:a,maxCanvasSize:_,sampling:I.canvas,dataURLOptions:C,errorHandler:F}),ee="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new Mt:new Rt({mutationCb:V,scrollCb:J,bypassOptions:{onMutation:B,blockClass:o,blockSelector:i,unblockSelector:a,maskAllText:u,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:m,inlineStylesheet:f,maskInputOptions:W,dataURLOptions:C,maskAttributeFn:k,maskTextFn:b,maskInputFn:v,recordCanvas:T,inlineImages:O,sampling:I,slimDOMOptions:j,iframeManager:X,stylesheetManager:G,canvasManager:Z,keepIframeSrcFn:L,processedNodeManager:Q},mirror:Ft}),te=(e=!1)=>{Lt({type:Ke.Meta,data:{href:window.location.href,width:Re(),height:Me()}}
1,e),G.reset(),ee.init(),dt.forEach((e=>e.lock()));const t=function(e,t){const{mirror:n=new H,blockClass:s="rr-block",blockSelector:r=null,unblockSelector:o=null,maskAllText:i=!1,maskTextClass:a="rr-mask",unmaskTextClass:c=null,maskTextSelector:l=null,unmaskTextSelector:u=null,inlineStylesheet:d=!0,inlineImages:h=!1,recordCanvas:p=!1,maskAllInputs:m=!1,maskAttributeFn:f,maskTextFn:y,maskInputFn:g,slimDOM:S=!1,dataURLOptions:k,preserveWhiteSpace:v,onSerialize:b,onIframeLoad:_,iframeLoadTimeout:w,onStylesheetLoad:I,stylesheetLoadTimeout:C,keepIframeSrcFn:E=(()=>!1)}=t||{};return ke(e,{doc:e,mirror:n,blockClass:s,blockSelector:r,unblockSelector:o,maskAllText:i,maskTextClass:a,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:d,maskInputOptions:!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}:!1===m?{}:m,maskAttributeFn:f,maskTextFn:y,maskInputFn:g,slimDOMOptions:!0===S||"all"===S?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===S,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===S?{}:S,dataURLOptions:k,inlineImages:h,recordCanvas:p,preserveWhiteSpace:v,onSerialize:b,onIframeLoad:_,iframeLoadTimeout:w,onStylesheetLoad:I,stylesheetLoadTimeout:C,keepIframeSrcFn:E,newlyAddedElement:!1})}(document,{mirror:Ft,blockClass:o,blockSelector:i,unblockSelector:a,maskAllText:u,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:m,inlineStylesheet:f,maskAllInputs:W,maskAttributeFn:k,maskInputFn:v,maskTextFn:b,slimDOM:j,dataURLOptions:C,recordCanvas:T,inlineImages:O,onSerialize:e=>{Fe(e,Ft)&&X.addIframe(e),Be(e,Ft)&&G.trackLinkElement(e),Pe(e)&&ee.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{X.attachIframe(e,t),ee.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{G.attachLinkElement(e,t)},keepIframeSrcFn:L});if(!t)return console.warn("Failed to snapshot the document");Lt({type:Ke.FullSnapshot,data:{node:t,initialOffset:xe(window)}}),dt.forEach((e=>e.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&G.adoptStyleSheets(document.adoptedStyleSheets,Ft.getId(document))};Nt=te;try{const e=[],t=e=>lt(_t)({onMutation:B,mutationCb:V,mousemoveCb:(e,t)=>Lt({type:Ke.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>Lt({type:Ke.IncrementalSnapshot,data:{source:Ve.MouseInteraction,...e}}),scrollCb:J,viewportResizeCb:e=>Lt({type:Ke.IncrementalSnapshot,data:{source:Ve.ViewportResize,...e}}),inputCb:e=>Lt({type:Ke.IncrementalSnapshot,data:{source:Ve.Input,...e}}),mediaInteractionCb:e=>Lt({type:Ke.IncrementalSnapshot,data:{source:Ve.MediaInteraction,...e}}),styleSheetRuleCb:e=>Lt({type:Ke.IncrementalSnapshot,data:{source:Ve.StyleSheetRule,...e}}),styleDeclarationCb:e=>Lt({type:Ke.IncrementalSnapshot,data:{source:Ve.StyleDeclaration,...e}}),canvasMutationCb:Y,fontCb:e=>Lt({type:Ke.IncrementalSnapshot,data:{source:Ve.Font,...e}}),selectionCb:e=>{Lt({type:Ke.IncrementalSnapshot,data:{source:Ve.Selection,...e}})},customElementCb:e=>{Lt({type:Ke.IncrementalSnapshot,data:{source:Ve.CustomElement,...e}})},blockClass:o,ignoreClass:c,ignoreSelector:l,maskAllText:u,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:m,maskInputOptions:W,inlineStylesheet:f,sampling:I,recordCanvas:T,inlineImages:O,userTriggeredOnInput:R,collectFonts:A,doc:e,maskAttributeFn:k,maskInputFn:v,maskTextFn:b,keepIframeSrcFn:L,blockSelector:i,unblockSelector:a,slimDOMOptions:j,dataURLOptions:C,mirror:Ft,iframeManager:X,stylesheetManager:G,shadowDomManager:ee,processedNodeManager:Q,canvasManager:Z,ignoreCSSAttributes:N,plugins:(0,r.z)([D,"optionalAccess",e=>e.filter,"call",e=>e((e=>e.observer)),"optionalAccess",e=>e.map,"call",e=>e((e=>({observer:e.observer,options:e.options,callback:t=>Lt({type:Ke.Plugin,data:{plugin:e.name,payload:t}})})))])||[]},{});X.addLoadListener((n=>{try{e.push(t(n.contentDocument))}catch(s){console.warn(s)}}));const n=()=>{te(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(be("DOMContentLoaded",(()=>{Lt({type:Ke.DomContentLoaded,data:{}}),"DOMContentLoaded"===M&&n()}))),e.push(be("load",(()=>{Lt({type:Ke.Load,data:{}}),"load"===M&&n()}
1),window))),()=>{e.forEach((e=>e())),Q.destroy(),Nt=void 0,ct()}}catch(se){console.warn(se)}}Bt.mirror=Ft,Bt.takeFullSnapshot=function(e){if(!Nt)throw new Error("please take full snapshot after start recording");Nt(e)};const Pt=3;function Ut(e){return e>9999999999?e:1e3*e}function zt(e){return e>9999999999?e/1e3:e}function Wt(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate((()=>(e.throttledAddEvent({type:Ke.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:(0,p.S8)(t,10,1e3)}}),"console"===t.category))))}const Ht="button,a";function jt(e){return e.closest(Ht)||e}function $t(e){const t=qt(e);return t&&t instanceof Element?jt(t):t}function qt(e){return function(e){return"object"==typeof e&&!!e&&"target"in e}(e)?e.target:e}let Kt;function Vt(e){return Kt||(Kt=[],(0,m.GS)(x,"open",(function(e){return function(...t){if(Kt)try{Kt.forEach((e=>e()))}catch(n){}return e.apply(x,t)}}))),Kt.push(e),()=>{const t=Kt?Kt.indexOf(e):-1;t>-1&&Kt.splice(t,1)}}class Jt{constructor(e,t,n=Wt){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){const e=Vt((()=>{this._lastMutation=Gt()}));this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(function(e,t){if(!Yt.includes(e.tagName))return!0;if("INPUT"===e.tagName&&!["submit","button"].includes(e.getAttribute("type")||""))return!0;if("A"===e.tagName&&(e.hasAttribute("download")||e.hasAttribute("target")&&"_self"!==e.getAttribute("target")))return!0;if(t&&e.matches(t))return!0;return!1}(t,this._ignoreSelector)||!function(e){return!(!e.data||"number"!=typeof e.data.nodeId||!e.timestamp)}(e))return;const n={timestamp:zt(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some((e=>e.node===n.node&&Math.abs(e.timestamp-n.timestamp)<1))||(this._clicks.push(n),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=zt(e)}registerScroll(e=Date.now()){this._lastScroll=zt(e)}registerClick(e){const t=jt(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach((e=>{e.clickCount++}))}_getClicks(e){return this._clicks.filter((t=>t.node===e))}_checkClicks(){const e=[],t=Gt();this._clicks.forEach((n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)}));for(const n of e){const e=this._clicks.indexOf(n);e>-1&&(this._generateBreadcrumbs(n),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){const t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scollTimeout,s=e.mutationAfter&&e.mutationAfter<=this._threshold,r=!n&&!s,{clickCount:o,clickBreadcrumb:i}=e;if(r){const n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),s=n<1e3*this._timeout?"mutation":"timeout",r={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.slowClickDetected",data:{...i.data,url:x.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:s,clickCount:o||1}};this._addBreadcrumbEvent(t,r)}else if(o>1){const e={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.multiClick",data:{...i.data,url:x.location.href,route:t.getCurrentRoute(),clickCount:o,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=setTimeout((()=>this._checkClicks()),1e3)}}const Yt=["A","BUTTON","INPUT"];function Gt(){return Date.now()/1e3}function Xt(e,t){try{if(!function(e){return e.type===Pt}(t))return;const{source:n}=t.data;if(n===Ve.Mutation&&e.registerMutation(t.timestamp),n===Ve.Scroll&&e.registerScroll(t.timestamp),function(e){return e.data.source===Ve.MouseInteraction}(t)){const{type:n,id:s}=t.data,r=Bt.mirror.getNode(s);r instanceof HTMLElement&&n===Je.Click&&e.registerClick(r)}
1}catch(n){}}function Qt(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Zt;!function(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"}(Zt||(Zt={}));const en=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function tn(e){const t={};for(const n in e)if(en.has(n)){let s=n;"data-testid"!==n&&"data-test-id"!==n||(s="testId"),t[s]=e[n]}return t}const nn=e=>t=>{if(!e.isEnabled())return;const n=function(e){const{target:t,message:n}=function(e){const t="click"===e.name;let n,s=null;try{s=t?$t(e.event):qt(e.event),n=(0,f.Hd)(s,{maxStringLength:200})||"<unknown>"}catch(r){n="<unknown>"}return{target:s,message:n}}(e);return Qt({category:`ui.${e.name}`,...sn(t,n)})}(t);if(!n)return;const s="click"===t.name,r=s?t.event:void 0;var o,i,a;!(s&&e.clickDetector&&r&&r.target)||r.altKey||r.metaKey||r.ctrlKey||r.shiftKey||(o=e.clickDetector,i=n,a=$t(t.event),o.handleClick(i,a)),Wt(e,n)};function sn(e,t){const n=Bt.mirror.getId(e),s=n&&Bt.mirror.getNode(n),r=s&&Bt.mirror.getMeta(s),o=r&&function(e){return e.type===Zt.Element}(r)?r:null;return{message:t,data:o?{nodeId:n,node:{id:n,tagName:o.tagName,textContent:Array.from(o.childNodes).map((e=>e.type===Zt.Text&&e.textContent)).filter(Boolean).map((e=>e.trim())).join(""),attributes:tn(o.attributes)}}:{}}}function rn(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=function(e){const{metaKey:t,shiftKey:n,ctrlKey:s,altKey:r,key:o,target:i}=e;if(!i||function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}(i)||!o)return null;const a=t||s||r,c=1===o.length;if(!a&&c)return null;const l=(0,f.Hd)(i,{maxStringLength:200})||"<unknown>",u=sn(i,l);return Qt({category:"ui.keyDown",message:l,data:{...u.data,metaKey:t,shiftKey:n,ctrlKey:s,altKey:r,key:o}})}(t);n&&Wt(e,n)}const on={resource:function(e){const{entryType:t,initiatorType:n,name:s,responseEnd:r,startTime:o,decodedBodySize:i,encodedBodySize:a,responseStatus:c,transferSize:l}=e;if(["fetch","xmlhttprequest"].includes(n))return null;return{type:`${t}.${n}`,start:cn(o),end:cn(r),name:s,data:{size:l,statusCode:c,decodedBodySize:i,encodedBodySize:a}}},paint:function(e){const{duration:t,entryType:n,name:s,startTime:r}=e,o=cn(r);return{type:n,name:s,start:o,end:o+t,data:void 0}},navigation:function(e){const{entryType:t,name:n,decodedBodySize:s,duration:r,domComplete:o,encodedBodySize:i,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,domInteractive:l,loadEventStart:u,loadEventEnd:d,redirectCount:h,startTime:p,transferSize:m,type:f}=e;if(0===r)return null;return{type:`${t}.${f}`,start:cn(p),end:cn(o),name:n,data:{size:m,decodedBodySize:s,encodedBodySize:i,duration:r,domInteractive:l,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:u,loadEventEnd:d,domComplete:o,redirectCount:h}}}};function an(e){return on[e.entryType]?on[e.entryType](e):null}function cn(e){return((y.k3||x.performance.timeOrigin)+e)/1e3}function ln(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n({entries:e}){e.forEach(t)}const s=[];return["navigation","paint","resource"].forEach((e=>{s.push((0,T.wv)(e,n))})),s.push((0,T.Pt)((({metric:t})=>{e.replayPerformanceEntries.push(function(e){const t=e.entries,n=t[t.length-1],s=n?n.element:void 0,r=e.value,o=cn(r);return{type:"largest-contentful-paint",name:"largest-contentful-paint",start:o,end:o,data:{value:r,size:r,nodeId:s?Bt.mirror.getId(s):void 0}}}(t))}))),()=>{s.forEach((e=>e()))}}const un="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,dn='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}
vendor: 5,353 bytes, line 1
1},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(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},A=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},_=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},C=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=_(f,15),M=b.t,E=b.l,x=_(h,15),C=x.t,U=x.l,F=D(M),I=F.c,S=F.n,L=D(C),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=_(q,7),H=G.t,J=G.l,K=19;K>4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+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(C,U,0),R=C;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){A(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;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=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,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,A=c.p||new n(32768),_=c.h||new n(z+1),x=Math.ceil(o/3),D=2*x,T=function(t){return(a[t]^a[t+1]<<x^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=_[H];if(A[J]=K,_[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;
1++P){var rt=j-W+P&32767,et=rt-A[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=C(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=_,c.p=A,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},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 a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();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,a=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),s=a.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)}}(a,n),O(a,s-8,r.d()),O(a,s-4,e),a}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}(),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(r){for(var e=new t(n.length),i=0;i<n.length;++i)e[i]=n.charCodeAt(i);return e}if(G)return G.encode(n);var a=n.length,s=new t(n.length+(n.length>>1)),o=0,f=function(t){s[o++]=t};for(i=0;i<a;++i){if(o+5>s.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}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(let r=0,e=t.length;r<e;r++)n+=t[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});';function hn(e,t){un&&(g.vF.info(e),t&&mn(e))}function pn(e,t){un&&(g.vF.info(e),t&&setTimeout((()=>{mn(e)}),0))}function mn(e){(0,o.ZQ)({category:"console",data:{logger:"replay"},level:"info",message:e},{level:"info"})}
1class fn extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class yn{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){const t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>L)throw new fn;this.events.push(e)}finish(){return new Promise((e=>{const t=this.events;this.clear(),e(JSON.stringify(t))}))}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const e=this.events.map((e=>e.timestamp)).sort()[0];return e?Ut(e):null}}class gn{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise(((e,t)=>{this._worker.addEventListener("message",(({data:n})=>{n.success?e():t()}),{once:!0}),this._worker.addEventListener("error",(e=>{t(e)}),{once:!0})}))),this._ensureReadyPromise}destroy(){hn("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(e,t){const n=this._getAndIncrementId();return new Promise(((s,r)=>{const o=({data:t})=>{const i=t;if(i.method===e&&i.id===n){if(this._worker.removeEventListener("message",o),!i.success)return un&&g.vF.error("[Replay]",i.response),void r(new Error("Error in compression worker"));s(i.response)}};this._worker.addEventListener("message",o),this._worker.postMessage({id:n,method:e,arg:t})}))}_getAndIncrementId(){return this._id++}}class Sn{constructor(e){this._worker=new gn(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){const t=Ut(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);const n=JSON.stringify(e);return this._totalSize+=n.length,this._totalSize>L?Promise.reject(new fn):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,(e=>{un&&g.vF.warn('[Replay] Sending "clear" message to worker failed',e)}))}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){const e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class kn{constructor(e){this._fallback=new yn,this._compression=new Sn(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}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}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return void hn("[Replay] Failed to load the compression worker, falling back to simple buffer")}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:t}=this._fallback,n=[];for(const r of e)n.push(this._compression.addEvent(r));this._compression.hasCheckout=t,this._used=this._compression;try{await Promise.all(n)}catch(s){un&&g.vF.warn("[Replay] Failed to add events when switching buffers.",s)}}}function vn({useCompression:e,workerUrl:t}){if(e&&window.Worker){const e=function(e){try{const t=e||function(){if("undefined"==typeof __SENTRY_EXCLUDE_REPLAY_WORKER__||!__SENTRY_EXCLUDE_REPLAY_WORKER__)return function(){const e=new Blob([dn]);return URL.createObjectURL(e)}();return""}();if(!t)return;hn("[Replay] Using compression worker"+(e?` from ${e}`:""));const n=new Worker(t);return new kn(n)}catch(t){hn("[Replay] Failed to create compression worker")}}(t);if(e)return e}return hn("[Replay] Using simple buffer"),new yn}function bn(){try{return"sessionStorage"in x&&!!x.sessionStorage}catch(e){return!1}}function _n(e){!function(){if(!bn())return;try{x.sessionStorage.removeItem(M)}catch(e){}}(),e.session=void 0}function wn(e){return void 0!==e&&Math.random()<e}function In(e){const t=Date.now();return{id:e.id||(0,S.eJ)(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId}}function Cn(e){if(bn())try{x.sessionStorage.setItem(M,JSON.stringify(e))}catch(t){}}function En({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:s}={}){const r=function(e,t){return wn(e)?"session":!!t&&"buffer"}(e,t),o=In({sampled:r,previousSessionId:s});return n&&Cn(o),o}function Tn(e,t,n=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=n}function xn(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:s=Date.now()}){return Tn(e.started,t,s)||Tn(e.lastActivity,n,s)}function Mn(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!!xn(e,{sessionIdleExpire:t,maxReplayDuration:n})&&("buffer"!==e.sampled||0!==e.segmentId)}function Rn({traceInternals:e,sessionIdleExpire:t,maxReplayDuration:n,previousSessionId:s},r){const o=r.stickySession&&function(e){if(!bn())return null;try{const t=x.sessionStorage.getItem(M);if(!t)return null;const n=JSON.parse(t);return pn("[Replay] Loading existing session",e),In(n)}catch(t){return null}}(e);return o?Mn(o,{sessionIdleExpire:t,maxReplayDuration:n})?(pn("[Replay] Session in sessionStorage is expired, creating new one..."),En(r,{previousSessionId:o.id})):o:(pn("[Replay] Creating new session",e),En(r,{previousSessionId:s}))}
1function An(e,t,n){return!!Dn(e,t)&&(On(e,t,n),!0)}async function On(e,t,n){if(!e.eventBuffer)return null;try{n&&"buffer"===e.recordingMode&&e.eventBuffer.clear(),n&&(e.eventBuffer.hasCheckout=!0);const s=function(e,t){try{if("function"==typeof t&&function(e){return e.type===Ke.Custom}(e))return t(e)}catch(n){return un&&g.vF.error("[Replay] An error occured in the `beforeAddRecordingEvent` callback, skipping the event...",n),null}return e}(t,e.getOptions().beforeAddRecordingEvent);if(!s)return;return await e.eventBuffer.addEvent(s)}catch(s){const t=s&&s instanceof fn?"addEventSizeExceeded":"addEvent";un&&g.vF.error(s),await e.stop({reason:t});const n=(0,o.KU)();n&&n.recordDroppedEvent("internal_sdk_error","replay")}}function Dn(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=Ut(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now())&&(!(n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(hn(`[Replay] Skipping event with timestamp ${n} because it is after maxReplayDuration`,e.getOptions()._experiments.traceInternals),!1))}function Ln(e){return!e.type}function Nn(e){return"transaction"===e.type}function Fn(e){return"feedback"===e.type}function Bn(e){const t=function(){const e=(0,o.KU)();if(!e)return!1;const t=e.getTransport();if(!t)return!1;return t.send.__sentry__baseTransport__||!1}();return(n,s)=>{if(!e.isEnabled()||!Ln(n)&&!Nn(n))return;const r=s&&s.statusCode;t&&(!r||r<200||r>=300)||(Nn(n)?function(e,t){const n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}(e,n):function(e,t){const n=e.getContext();t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id);if("buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:s}=e.getOptions();if("function"==typeof s&&!s(t))return;setTimeout((()=>{e.sendBufferedReplayOrFlush()}))}(e,n))}}function Pn(e){return t=>{e.isEnabled()&&Ln(t)&&function(e,t){const n=t.exception&&t.exception.values&&t.exception.values[0].value;if("string"!=typeof n)return;if(n.match(/reactjs\.org\/docs\/error-decoder\.html\?invariant=(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i)){Wt(e,Qt({category:"replay.hydrate-error"}))}}(e,t)}}function Un(e,t=!1){const n=t?Bn(e):void 0;return Object.assign(((t,s)=>{if(!e.isEnabled())return t;if(function(e){return"replay_event"===e.type}(t))return delete t.breadcrumbs,t;if(!Ln(t)&&!Nn(t)&&!Fn(t))return t;if(!e.checkAndHandleExpiredSession())return t;if(Fn(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),function(e,t){e.triggerUserActivity(),e.addUpdate((()=>!t.timestamp||(e.throttledAddEvent({type:Ke.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)))}(e,t),t;if(function(e,t){return!(e.type||!e.exception||!e.exception.values||!e.exception.values.length||!t.originalException||!t.originalException.__rrweb__)}(t,s)&&!e.getOptions()._experiments.captureExceptions)return un&&g.vF.log("[Replay] Ignoring error from rrweb internals",t),null;const r=function(e,t){return"buffer"===e.recordingMode&&t.message!==A&&!(!t.exception||t.type)&&wn(e.getOptions().errorSampleRate)}(e,t);return(r||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),n&&n(t,{statusCode:200}),t}),{id:"Replay"})}function zn(e,t){return t.map((({type:t,start:n,end:s,name:r,data:o})=>{const i=e.throttledAddEvent({type:Ke.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:r,startTimestamp:n,endTimestamp:s,data:o}}});return"string"==typeof i?Promise.resolve(null):i}))}function Wn(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{from:t,to:n}=e,s=Date.now()/1e3;return{type:"navigation.push",start:s,end:s,name:n,data:{previous:t}}}(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate((()=>(zn(e,[n]),!1))))}}function Hn(e,t){e.isEnabled()&&null!==t&&(function(e,t){return(!un||!e.getOptions()._experiments.traceInternals)&&(0,i.A)(t,(0,o.KU)())}(e,t.name)||e.addUpdate((()=>(zn(e,[t]),!0))))}function jn(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{startTimestamp:t,endTimestamp:n,xhr:s}=e,r=s[k.Er];if(!t||!n||!r)return null;const{method:o,url:i,status_code:a}=r;return void 0===i?null:{type:"resource.xhr",name:i,start:t/1e3,end:n/1e3,data:{method:o,statusCode:a}}}(t);Hn(e,n)}}function $n(e,t){if(e)try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=Qn(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch(n){}}function qn(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function Kn(e){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[Qn(e)];if(!e)return[void 0]}catch(t){return un&&g.vF.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return un&&g.vF.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Vn(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},s=n.warnings||[];return n.warnings=[...s,t],e._meta=n,e}function Jn(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:s,url:r,method:o,statusCode:i,request:a,response:c}=t;return{type:e,start:n/1e3,end:s/1e3,name:r,data:(0,m.Ce)({method:o,statusCode:i,request:a,response:c})}}function Yn(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function Gn(e,t,n){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const s={headers:e,size:t},{body:r,warnings:o}=function(e){if(!e||"string"!=typeof e)return{body:e};const t=e.length>O,n=function(e){const t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}(e);if(t){const t=e.slice(0,O);return n?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch(s){}return{body:e}}(n);return s.body=r,o&&o.length>0&&(s._meta={warnings:o}),s}function Xn(e,t){return Object.keys(e).reduce(((n,s)=>{const r=s.toLowerCase();return t.includes(r)&&e[s]&&(n[r]=e[s]),n}),{})}function Qn(e){return new URLSearchParams(e).toString()}function Zn(e,t){const n=function(e,t=x.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(x.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const s=n.href;if(!e.endsWith("/")&&s.endsWith("/"))return s.slice(0,-1);return s}(e);return(0,v.Xr)(n,t)}
1async function es(e,t,n){try{const s=await async function(e,t,n){const s=Date.now(),{startTimestamp:r=s,endTimestamp:o=s}=t,{url:i,method:a,status_code:c=0,request_body_size:l,response_body_size:u}=e.data,d=Zn(i,n.networkDetailAllowUrls)&&!Zn(i,n.networkDetailDenyUrls),h=d?function({networkCaptureBodies:e,networkRequestHeaders:t},n,s){const r=n?function(e,t){if(1===e.length&&"string"!=typeof e[0])return ss(e[0],t);if(2===e.length)return ss(e[1],t);return{}}(n,t):{};if(!e)return Gn(r,s,void 0);const o=ts(n),[i,a]=Kn(o),c=Gn(r,s,i);if(a)return Vn(c,a);return c}(n,t.input,l):Yn(l),p=await async function(e,{networkCaptureBodies:t,textEncoder:n,networkResponseHeaders:s},r,o){if(!e&&void 0!==o)return Yn(o);const i=r?ns(r.headers,s):{};if(!r||!t&&void 0!==o)return Gn(i,o,void 0);const[a,c]=await async function(e){const t=function(e){try{return e.clone()}catch(t){un&&g.vF.warn("[Replay] Failed to clone response body",t)}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{const e=await function(e){return new Promise(((t,n)=>{const s=setTimeout((()=>n(new Error("Timeout while trying to read response body"))),500);(async function(e){return await e.text()})(e).then((e=>t(e)),(e=>n(e))).finally((()=>clearTimeout(s)))}))}(t);return[e]}catch(n){return un&&g.vF.warn("[Replay] Failed to get text body from response",n),[void 0,"BODY_PARSE_ERROR"]}}(r),l=function(e,{networkCaptureBodies:t,textEncoder:n,responseBodySize:s,captureDetails:r,headers:o}){try{const i=e&&e.length&&void 0===s?$n(e,n):s;return r?Gn(o,i,t?e:void 0):Yn(i)}catch(i){return un&&g.vF.warn("[Replay] Failed to serialize response body",i),Gn(o,s,void 0)}}(a,{networkCaptureBodies:t,textEncoder:n,responseBodySize:o,captureDetails:e,headers:i});if(c)return Vn(l,c);return l}(d,n,t.response,u);return{startTimestamp:r,endTimestamp:o,url:i,method:a,statusCode:c,request:h,response:p}}(e,t,n),r=Jn("resource.fetch",s);Hn(n.replay,r)}catch(s){un&&g.vF.error("[Replay] Failed to capture fetch breadcrumb",s)}}function ts(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}function ns(e,t){const n={};return t.forEach((t=>{e.get(t)&&(n[t]=e.get(t))})),n}function ss(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?ns(n,t):Array.isArray(n)?{}:Xn(n,t):{}}async function rs(e,t,n){try{const s=function(e,t,n){const s=Date.now(),{startTimestamp:r=s,endTimestamp:o=s,input:i,xhr:a}=t,{url:c,method:l,status_code:u=0,request_body_size:d,response_body_size:h}=e.data;if(!c)return null;if(!a||!Zn(c,n.networkDetailAllowUrls)||Zn(c,n.networkDetailDenyUrls)){return{startTimestamp:r,endTimestamp:o,url:c,method:l,statusCode:u,request:Yn(d),response:Yn(h)}}const p=a[k.Er],m=p?Xn(p.request_headers,n.networkRequestHeaders):{},f=Xn(function(e){const t=e.getAllResponseHeaders();if(!t)return{};return t.split("\r\n").reduce(((e,t)=>{const[n,s]=t.split(": ");return e[n.toLowerCase()]=s,e}),{})}(a),n.networkResponseHeaders),[y,S]=n.networkCaptureBodies?Kn(i):[void 0],[v,b]=n.networkCaptureBodies?function(e){const t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return function(e,t){try{if("string"==typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&e&&"object"==typeof e)return[JSON.stringify(e)];if(!e)return[void 0]}catch(n){return un&&g.vF.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return un&&g.vF.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(n){t.push(n)}return un&&g.vF.warn("[Replay] Failed to get xhr response body",...t),[void 0]}(a):[void 0],_=Gn(m,d,y),w=Gn(f,h,v);return{startTimestamp:r,endTimestamp:o,url:c,method:l,statusCode:u,request:S?Vn(_,S):_,response:b?Vn(w,b):w}}(e,t,n),r=Jn("resource.xhr",s);Hn(n.replay,r)}catch(s){un&&g.vF.error("[Replay] Failed to capture xhr breadcrumb",s)}}function os(e,t,n){const{xhr:s,input:r}=t;if(!s)return;const o=$n(r,n.textEncoder),i=s.getResponseHeader("content-length")?qn(s.getResponseHeader("content-length")):function(e,t,n){try{return $n("json"===t&&e&&"object"==typeof e?JSON.stringify(e):e,n)}catch(s){return}}(s.response,s.responseType,n.textEncoder);void 0!==o&&(e.data.request_body_size=o),void 0!==i&&(e.data.response_body_size=i)}function is(e){const t=(0,o.KU)();try{const n=new TextEncoder,{networkDetailAllowUrls:s,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:i,networkResponseHeaders:a}=e.getOptions(),c={replay:e,textEncoder:n,networkDetailAllowUrls:s,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:i,networkResponseHeaders:a};t&&t.on?t.on("beforeAddBreadcrumb",((e,t)=>
1function(e,t,n){if(!t.data)return;try{(function(e){return"xhr"===e.category})(t)&&function(e){return e&&e.xhr}(n)&&(os(t,n,e),rs(t,n,e)),function(e){return"fetch"===e.category}(t)&&function(e){return e&&e.response}(n)&&(!function(e,t,n){const{input:s,response:r}=t,o=$n(s?ts(s):void 0,n.textEncoder),i=r?qn(r.headers.get("content-length")):void 0;void 0!==o&&(e.data.request_body_size=o),void 0!==i&&(e.data.response_body_size=i)}(t,n,e),es(t,n,e))}catch(s){un&&g.vF.warn("Error when enriching network breadcrumb")}}(c,e,t))):((0,b.u)(function(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{startTimestamp:t,endTimestamp:n,fetchData:s,response:r}=e;if(!n)return null;const{method:o,url:i}=s;return{type:"resource.fetch",start:t/1e3,end:n/1e3,name:i,data:{method:o,statusCode:r?r.status:void 0}}}(t);Hn(e,n)}}(e)),(0,k.Mn)(jn(e)))}catch(n){}}let as=null;const cs=e=>t=>{if(!e.isEnabled())return;const n=function(e){const t=e.getLastBreadcrumb&&e.getLastBreadcrumb();if(as===t||!t)return null;if(as=t,!function(e){return!!e.category}(t)||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui."))return null;if("console"===t.category)return function(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return Qt(e);let n=!1;const s=t.map((e=>{if(!e)return e;if("string"==typeof e)return e.length>D?(n=!0,`${e.slice(0,D)}…`):e;if("object"==typeof e)try{const t=(0,p.S8)(e,7);return JSON.stringify(t).length>D?(n=!0,`${JSON.stringify(t,null,2).slice(0,D)}…`):t}catch(t){}return e}));return Qt({...e,data:{...e.data,arguments:s,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(t);return Qt(t)}(t);n&&Wt(e,n)};function ls(e){return!(!e||!e.on)}function us(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:s}=e,r=Date.now()/1e3;return{type:"memory",name:"memory",start:r,end:r,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:s}}}}function ds(e){let t=!1;return(n,s)=>{if(!e.checkAndHandleExpiredSession())return void(un&&g.vF.warn("[Replay] Received replay event after session expired."));const r=s||!t;t=!0,e.clickDetector&&Xt(e.clickDetector,n),e.addUpdate((()=>{if("buffer"===e.recordingMode&&r&&e.setInitialState(),!An(e,n,r))return!0;if(!r)return!1;if(function(e,t){if(!t||!e.session||0!==e.session.segmentId)return;An(e,function(e){const t=e.getOptions();return{type:Ke.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}(e),!1)}(e,r),e.session&&e.session.previousSessionId)return!0;if("buffer"===e.recordingMode&&e.session&&e.eventBuffer){const t=e.eventBuffer.getEarliestTimestamp();t&&(hn(`[Replay] Updating session start time to earliest event in buffer to ${new Date(t)}`,e.getOptions()._experiments.traceInternals),e.session.started=t,e.getOptions().stickySession&&Cn(e.session))}return"session"===e.recordingMode&&e.flush(),!0}))}}async function hs({recordingData:e,replayId:t,segmentId:n,eventContext:s,timestamp:r,session:i}){const a=function({recordingData:e,headers:t}){let n;const s=`${JSON.stringify(t)}\n`;if("string"==typeof e)n=`${s}${e}`;else{const t=(new TextEncoder).encode(s);n=new Uint8Array(t.length+e.length),n.set(t),n.set(e,t.length)}return n}({recordingData:e,headers:{segment_id:n}}),{urls:u,errorIds:d,traceIds:h,initialTimestamp:p}=s,m=(0,o.KU)(),f=(0,o.o5)(),y=m&&m.getTransport(),g=m&&m.getDsn();if(!(m&&y&&g&&i.sampled))return;const S={type:R,replay_start_timestamp:p/1e3,timestamp:r/1e3,error_ids:d,trace_ids:h,urls:u,replay_id:t,segment_id:n,replay_type:i.sampled},k=await async function({client:e,scope:t,replayId:n,event:s}){const r={event_id:n,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit&&e.emit("preprocessEvent",s,r);const o=await(0,c.mG)(e.getOptions(),s,r,t,e,(0,l.rm)());if(!o)return null;o.platform=o.platform||"javascript";
1const i=e.getSdkMetadata&&e.getSdkMetadata(),{name:a,version:u}=i&&i.sdk||{};return o.sdk={...o.sdk,name:a||"sentry.javascript.unknown",version:u||"0.0.0"},o}({scope:f,client:m,replayId:t,event:S});if(!k)return m.recordDroppedEvent("event_processor","replay",S),void hn("An event processor returned `null`, will not send event.");delete k.sdkProcessingMetadata;const v=function(e,t,n,s){return(0,I.h4)((0,I.n2)(e,(0,I.Cj)(e),s,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}(k,a,g,m.getOptions().tunnel);let b;try{b=await y.send(v)}catch(w){const e=new Error(A);try{e.cause=w}catch(E){}throw e}if(!b)return b;if("number"==typeof b.statusCode&&(b.statusCode<200||b.statusCode>=300))throw new ps(b.statusCode);const _=(0,C.wq)({},b);if((0,C.Jz)(_,"replay"))throw new ms(_);return b}class ps extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class ms extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function fs(e,t={count:0,interval:5e3}){const{recordingData:n,options:s}=e;if(n.length)try{return await hs(e),!0}catch(r){if(r instanceof ps||r instanceof ms)throw r;if((0,o.o)("Replays",{_retryCount:t.count}),un&&s._experiments&&s._experiments.captureExceptions&&(0,o.Cp)(r),t.count>=3){const e=new Error(`${A} - max retries exceeded`);try{e.cause=r}catch(i){}throw e}return t.interval*=++t.count,new Promise(((n,s)=>{setTimeout((async()=>{try{await fs(e,t),n(!0)}catch(r){s(r)}}),t.interval)}))}}const ys="__THROTTLED";function gs(e,t,n){const s=new Map;let r=!1;return(...o)=>{const i=Math.floor(Date.now()/1e3);if((e=>{const t=e-n;s.forEach(((e,n)=>{n<t&&s.delete(n)}))})(i),[...s.values()].reduce(((e,t)=>e+t),0)>=t){const e=r;return r=!0,e?"__SKIPPED":ys}r=!1;const a=s.get(i)||0;return s.set(i,a+1),e(...o)}}class Ss{constructor({options:e,recordingOptions:t}){Ss.prototype.__init.call(this),Ss.prototype.__init2.call(this),Ss.prototype.__init3.call(this),Ss.prototype.__init4.call(this),Ss.prototype.__init5.call(this),Ss.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,n){let s,r,o;const i=n&&n.maxWait?Math.max(n.maxWait,t):0;function a(){return c(),s=e(),s}function c(){void 0!==r&&clearTimeout(r),void 0!==o&&clearTimeout(o),r=o=void 0}function l(){return r&&clearTimeout(r),r=setTimeout(a,t),i&&void 0===o&&(o=setTimeout(a,i)),s}return l.cancel=c,l.flush=function(){return void 0!==r||void 0!==o?a():s},l}((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=gs(((e,t)=>function(e,t,n){return Dn(e,t)?On(e,t,n):Promise.resolve(null)}(this,e,t)),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:s}=this.getOptions(),r=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:s?s.join(","):""}:void 0;r&&(this.clickDetector=new Jt(this,r))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return Boolean(this._canvas)}getOptions(){return this._options}initializeSampling(e){const{errorSampleRate:t,sessionSampleRate:n}=this._options;t<=0&&n<=0||(this._initializeSessionForSampling(e),this.session?!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",pn(`[Replay] Starting replay in ${this.recordingMode} mode`,this._options._experiments.traceInternals),this._initializeRecording()):this._handleException(new Error("Unable to initialize and create session")))}start(){if(this._isEnabled&&"session"===this.recordingMode)throw new Error("Replay recording is already in progress");if(this._isEnabled&&"buffer"===this.recordingMode)throw new Error("Replay buffering is in progress, call `flush()` to save the replay");pn("[Replay] Starting replay in session mode",this._options._experiments.traceInternals),this._updateUserActivity();const e=Rn({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}
1startBuffering(){if(this._isEnabled)throw new Error("Replay recording is already in progress");pn("[Replay] Starting replay in buffer mode",this._options._experiments.traceInternals);const e=Rn({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const e=this._canvas;this._stopRecording=Bt({...this._recordingOptions,..."buffer"===this.recordingMode&&{checkoutEveryNms:6e4},emit:ds(this),onMutation:this._onMutationHandler,...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this._handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this._handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1;try{hn("[Replay] Stopping Replay"+(t?` triggered by ${t}`:""),this._options._experiments.traceInternals),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,_n(this)}catch(n){this._handleException(n)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),hn("[Replay] Pausing replay",this._options._experiments.traceInternals))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),hn("[Replay] Resuming replay",this._options._experiments.traceInternals))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();hn("[Replay] Converting buffer to session",this._options._experiments.traceInternals),await this.flushImmediate();const n=this.stopRecording();e&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){const t=e();"buffer"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._checkSession())return;this.resume()}}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(!(this._lastActivity&&Tn(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const e=`${x.location.pathname}${x.location.hash}${x.location.search}`,t=`${x.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){const n=this._throttledAddEvent(e,t);if(n===ys){const e=Qt({category:"replay.throttled"});this.addUpdate((()=>!An(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}})))}return n}getCurrentRoute(){const e=this.lastTransaction||(0,o.o5)().getTransaction(),t=(e&&(0,u.et)(e).data||{})[d.i_];if(e&&t&&["route","custom"].includes(t))return(0,u.et)(e).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=vn({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(e){un&&g.vF.error("[Replay]",e),un&&this._options._experiments&&this._options._experiments.captureExceptions&&(0,o.Cp)(e)}_initializeSessionForSampling(e){const t=this._options.errorSampleRate>0,n=Rn({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;const e=this.session;return!Mn(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{x.document.addEventListener("visibilitychange",this._handleVisibilityChange),x.addEventListener("blur",this._handleWindowBlur),x.addEventListener("focus",this._handleWindowFocus),x.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(!function(e){const t=(0,o.o5)(),n=(0,o.KU)();t.addScopeListener(cs(e)),(0,_.i)(nn(e)),(0,w._)(Wn(e)),is(e);const s=Un(e,!ls(n));n&&n.addEventProcessor?n.addEventProcessor(s):(0,a.S)(s),ls(n)&&(n.on("beforeSendEvent",Pn(e)),n.on("afterSendEvent",Bn(e)),n.on("createDsc",(t=>{const n=e.getSessionId();n&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=n)})),n.on("startTransaction",(t=>{e.lastTransaction=t})),n.on("finishTransaction",(t=>{e.lastTransaction=t})),n.on("beforeSendFeedback",((t,n)=>{const s=e.getSessionId();n&&n.includeReplay&&e.isEnabled()&&s&&t.contexts&&t.contexts.feedback&&(t.contexts.feedback.replay_id=s)})))}(this),this._hasInitializedCoreListeners=!0)}catch(e){this._handleException(e)}this._performanceCleanupCallback=ln(this)}_removeListeners(){try{x.document.removeEventListener("visibilitychange",this._handleVisibilityChange),x.removeEventListener("blur",this._handleWindowBlur),x.removeEventListener("focus",this._handleWindowFocus),x.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this._handleException(e)}}__init(){this._handleVisibilityChange=()=>{"visible"===x.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroun
1dTasks()}}__init2(){this._handleWindowBlur=()=>{const e=Qt({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{const e=Qt({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{rn(this,e)}}_doChangeToBackgroundTasks(e){if(!this.session)return;xn(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){if(!this.session)return;this.checkAndHandleExpiredSession()?e&&this._createCustomBreadcrumb(e):hn("[Replay] Document has become active, but session has expired")}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate((()=>{this.throttledAddEvent({type:Ke.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})}))}_addPerformanceEntries(){const e=(t=this.performanceEntries,t.map(an).filter(Boolean)).concat(this.replayPerformanceEntries);var t;return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(zn(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:t}=this;if(!e||!t)return;if(e.segmentId)return;const n=t.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){const e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){const e=this.getSessionId();if(this.session&&this.eventBuffer&&e){if(await this._addPerformanceEntries(),this.eventBuffer&&this.eventBuffer.hasEvents&&(await async function(e){try{return Promise.all(zn(e,[us(x.performance.memory)]))}catch(t){return[]}}(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const n=this._popEventContext(),s=this.session.segmentId++;this._maybeSaveSession();const r=await this.eventBuffer.finish();await fs({replayId:e,recordingData:r,segmentId:s,eventContext:n,session:this.session,options:this.getOptions(),timestamp:t})}catch(t){this._handleException(t),this.stop({reason:"sendReplay"});const e=(0,o.KU)();e&&e.recordDroppedEvent("send_error","replay")}}else un&&g.vF.error("[Replay] No session or eventBuffer found to flush.")}__init5(){this._flush=async({force:e=!1}={})=>{if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession())return void(un&&g.vF.error("[Replay] Attempting to finish replay event after session expired."));if(!this.session)return;const t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();const s=n<this._options.minReplayDuration,r=n>this._options.maxReplayDuration+5e3;if(s||r)return hn(`[Replay] Session duration (${Math.floor(n/1e3)}s) is too ${s?"short":"long"}, not sending replay.`,this._options._experiments.traceInternals),void(s&&this._debouncedFlush());const o=this.eventBuffer;if(o&&0===this.session.segmentId&&!o.hasCheckout&&hn("[Replay] Flushing initial segment without checkout.",this._options._experiments.traceInternals),!this._flushLock)return this._flushLock=this._runFlush(),await this._flushLock,void(this._flushLock=void 0);try{await this._flushLock}catch(i){un&&g.vF.error(i)}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&Cn(this.session)}__init6(){this._onMutationHandler=e=>{const t=e.length,n=this._options.mutationLimit,s=n&&t>n;if(t>this._options.mutationBreadcrumbLimit||s){const e=Qt({category:"replay.mutations",data:{count:t,limit:s}});this._createCustomBreadcrumb(e)}return!s||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function ks(e,t,n,s){const r=[...e,..."string"==typeof s?s.split(","):[],...t];return void 0!==n&&("string"==typeof n&&r.push(`.${n}
1`),(0,g.pq)((()=>{console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")}))),r.join(",")}const vs='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',bs=["content-length","content-type","accept"];let _s=!1;const ws=e=>new Is(e);class Is{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:n=4999,maxReplayDuration:s=36e5,stickySession:r=!0,useCompression:o=!0,workerUrl:i,_experiments:a={},sessionSampleRate:c,errorSampleRate:l,maskAllText:u=!0,maskAllInputs:d=!0,blockAllMedia:h=!0,mutationBreadcrumbLimit:p=750,mutationLimit:m=1e4,slowClickTimeout:f=7e3,slowClickIgnoreSelectors:y=[],networkDetailAllowUrls:g=[],networkDetailDenyUrls:S=[],networkCaptureBodies:k=!0,networkRequestHeaders:v=[],networkResponseHeaders:b=[],mask:_=[],maskAttributes:w=["title","placeholder"],unmask:I=[],block:C=[],unblock:T=[],ignore:x=[],maskFn:M,beforeAddRecordingEvent:R,beforeErrorSampling:A,blockClass:O,blockSelector:D,maskInputOptions:L,maskTextClass:F,maskTextSelector:B,ignoreClass:P}={}){this.name=Is.id;const U=function({mask:e,unmask:t,block:n,unblock:s,ignore:r,blockClass:o,blockSelector:i,maskTextClass:a,maskTextSelector:c,ignoreClass:l}){const u={maskTextSelector:ks(e,[".sentry-mask","[data-sentry-mask]"],a,c),unmaskTextSelector:ks(t,[".sentry-unmask","[data-sentry-unmask]"]),blockSelector:ks(n,[".sentry-block","[data-sentry-block]",'base[href="/"]'],o,i),unblockSelector:ks(s,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:ks(r,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'],l)};return o instanceof RegExp&&(u.blockClass=o),a instanceof RegExp&&(u.maskTextClass=a),u}({mask:_,unmask:I,block:C,unblock:T,ignore:x,blockClass:O,blockSelector:D,maskTextClass:F,maskTextSelector:B,ignoreClass:P});if(this._recordingOptions={maskAllInputs:d,maskAllText:u,maskInputOptions:{...L||{},password:!0},maskTextFn:M,maskInputFn:M,maskAttributeFn:(e,t,n)=>function({el:e,key:t,maskAttributes:n,maskAllText:s,privacyOptions:r,value:o}){return s?r.unmaskTextSelector&&e.matches(r.unmaskTextSelector)?o:n.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?o.replace(/[\S]/g,"*"):o:o}({maskAttributes:w,maskAllText:u,privacyOptions:U,key:e,value:t,el:n}),...U,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch(t){}}},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,15e3),maxReplayDuration:Math.min(s,N),stickySession:r,sessionSampleRate:c,errorSampleRate:l,useCompression:o,workerUrl:i,blockAllMedia:h,maskAllInputs:d,maskAllText:u,mutationBreadcrumbLimit:p,mutationLimit:m,slowClickTimeout:f,slowClickIgnoreSelectors:y,networkDetailAllowUrls:g,networkDetailDenyUrls:S,networkCaptureBodies:k,networkRequestHeaders:Cs(v),networkResponseHeaders:Cs(b),beforeAddRecordingEvent:R,beforeErrorSampling:A,_experiments:a},"number"==typeof c&&(console.warn(`[Replay] You are passing \`sessionSampleRate\` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure \`replaysSessionSampleRate\` directly in the SDK init options, e.g.:\nSentry.init({ replaysSessionSampleRate: ${c} })`),this._initialOptions.sessionSampleRate=c),"number"==typeof l&&(console.warn(`[Replay] You are passing \`errorSampleRate\` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure \`replaysOnErrorSampleRate\` directly in the SDK init options, e.g.:\nSentry.init({ replaysOnErrorSampleRate: ${l} })`),this._initialOptions.errorSampleRate=l),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${vs}`:vs),this._isInitialized&&(0,E.B)())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return _s}set _isInitialized(e){_s=e}setupOnce(){(0,E.B)()&&(this._setup(),setTimeout((()=>this._initialize())))}start(){this._replay&&this._replay.start()}
1startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay&&this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}_initialize(){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(),this._replay.initializeSampling())}_setup(){const e=function(e){const t=(0,o.KU)(),n=t&&t.getOptions(),s={sessionSampleRate:0,errorSampleRate:0,...(0,m.Ce)(e)};if(!n)return(0,g.pq)((()=>{console.warn("SDK client is not available.")})),s;null==e.sessionSampleRate&&null==e.errorSampleRate&&null==n.replaysSessionSampleRate&&null==n.replaysOnErrorSampleRate&&(0,g.pq)((()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}));"number"==typeof n.replaysSessionSampleRate&&(s.sessionSampleRate=n.replaysSessionSampleRate);"number"==typeof n.replaysOnErrorSampleRate&&(s.errorSampleRate=n.replaysOnErrorSampleRate);return s}(this._initialOptions);this._replay=new Ss({options:e,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(){try{const e=(0,o.KU)().getIntegrationByName("ReplayCanvas");if(!e)return;this._replay._canvas=e.getOptions()}catch(e){}}}function Cs(e){return[...bs,...e.map((e=>e.toLowerCase()))]}Is.__initStatic()}}]);
2//# sourceMappingURL=b3a13d7d-c33918a79cd678741a71.js.map

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