1"use strict";(self["webpackChunklunchbox_storefront"]=self["webpackChunklunchbox_storefront"]||[]).push([[795],{82795:function(e,t,n){n.r(t),n.d(t,{SessionRecorder:function(){return Jo}});n(74423),n(44114),n(18111),n(20116),n(7588),n(13579),n(45367),n(92731),n(79577),n(88454),n(29452);var r,o=n(98542),s=n(91545),i=(n(22489),n(61701),n(17642),n(58004),n(33853),n(45876),n(32475),n(15024),n(31698),n(16632),n(34226),n(9486),n(20456),n(64979),Object.defineProperty),a=(e,t,n)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,c=(e,t,n)=>(a(e,"symbol"!==typeof t?t+"":t,n),n),l=Object.defineProperty,d=(e,t,n)=>t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,u=(e,t,n)=>(d(e,"symbol"!==typeof t?t+"":t,n),n),h=(e=>(e[e["Document"]=0]="Document",e[e["DocumentType"]=1]="DocumentType",e[e["Element"]=2]="Element",e[e["Text"]=3]="Text",e[e["CDATA"]=4]="CDATA",e[e["Comment"]=5]="Comment",e))(h||{});function p(e){return e.nodeType===e.ELEMENT_NODE}function m(e){const t=null==e?void 0:e.host;return Boolean((null==t?void 0:t.shadowRoot)===e)}function f(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function g(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function y(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(" ")+";"}function I(e){try{const t=e.rules||e.cssRules;return t?g(Array.from(t,b).join("")):null}catch(t){return null}}function b(e){let t;if(v(e))try{t=I(e.styleSheet)||y(e)}catch(n){}else if(S(e)&&e.selectorText.includes(":"))return C(e.cssText);return t||e.cssText}function C(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function v(e){return"styleSheet"in e}function S(e){return"selectorText"in e}class k{constructor(){u(this,"idNodeMap",new Map),u(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;const n=null==(t=this.getMeta(e))?void 0:t.id;return n??-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function w(){return new k}function M({element:e,maskInputOptions:t,tagName:n,type:r,value:o,maskInputFn:s}){let i=o||"";const a=r&&A(r);return(t[n.toLowerCase()]||a&&t[a])&&(i=s?s(i,e):"*".repeat(i.length)),i}function A(e){return e.toLowerCase()}const N="__rrweb_original__";function T(e){const t=e.getContext("2d");if(!t)return!0;const n=50;for(let r=0;r<e.width;r+=n)for(let o=0;o<e.height;o+=n){const s=t.getImageData,i=N in s?s[N]:s,a=new Uint32Array(i.call(t,r,o,Math.min(n,e.width-r),Math.min(n,e.height-o)).data.buffer);if(a.some(e=>0!==e))return!1}return!0}function E(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?A(t):null}function R(e,t){let n;try{n=new URL(e,t??window.location.href)}catch(s){return null}const r=/\.([0-9a-z]+)(?:$)/i,o=n.pathname.match(r);return(null==o?void 0:o[1])??null}let O=1;const x=new RegExp("[^a-z0-9-_:]"),L=-2;function D(){return O++}function F(e){if(e instanceof HTMLFormElement)return"form";const t=A(e.tagName);return x.test(t)?"div":t}function W(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}let G,Y;const B=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Z=/^(?:[a-z+]+:)?\/\//i,V=/^www\..*/i,z=/^(data:)([^,]*),(.*)/i;function _(e,t){return(e||"").replace(B,(e,n,r,o,s,i)=>{const a=r||s||i,c=n||o||"";if(!a)return e;if(Z.test(a)||V.test(a))return`url(${c}${a}${c})`;if(z.test(a))return`url(${c}${a}${c})`;if("/"===a[0])return`url(${c}${W(t)+a}${c})`;const l=t.split("/"),d=a.split("/");l.pop();for(const t of d)"."!==t&&(".."===t?l.pop():l.push(t));return`url(${c}${l.join("/")}${c})`})}const U=/^[^ \t\n\r\u000c]+/,X=/^[, \t\n\r\u000c]+/;function H(e,t){if(""===t.trim())return t;let n=0;function r(e){let r;const o=e.exec(t.substring(n));return o?(r=o[0],n+=r.length,r):""}const o=[];while(1){if(r(X),n>=t.length)break;let s=r(U);if(","===s.slice(-1))s=P(e,s.substring(0,s.length-1)),o.push(s);else{let r="";s=P(e,s);let i=!1;while(1){const e=t.charAt(n);if(""===e){o.push((s+r).trim());break}if(i)")"===e&&(i=!1);else{if(","===e){n+=1,o.push((s+r).trim());break}"("===e&&(i=!0)}r+=e,n+=1}}}return o.join(", ")}const j=new WeakMap;function P(e,t){return t&&""!==t.trim()?K(e,t):t}function J(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function K(e,t){let n=j.get(e);if(n||(n=e.createElement("a"),j.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function Q(e,t,n,r){return r?"src"===n||"href"===n&&("use"!==t||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?P(e,r):"background"!==n||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===n?H(e,r):"style"===n?_(r,K(e)):"object"===t&&"data"===n?P(e,r):r:P(e,r):r}function $(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function q(e,t,n){try{if("string"===typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch(r){}return!1}function ee(e,t,n){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!n&&ee(e.parentNode,t,n);for(let r=e.classList.length;r--;){const n=e.classList[r];if(t.test(n))return!0}return!!n&&ee(e.parentNode,t,n)}function te(e,t,n,r){try{const o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===o)return!1;if("string"===typeof t){if(r){if(o.closest(`.${t}`))return!0}else if(o.classList.contains(t))return!0}else if(ee(o,t,r))return!0;
1if(n)if(r){if(o.closest(n))return!0}else if(o.matches(n))return!0}catch(o){}return!1}function ne(e,t,n){const r=e.contentWindow;if(!r)return;let o,s=!1;try{o=r.document.readyState}catch(a){return}if("complete"!==o){const r=setTimeout(()=>{s||(t(),s=!0)},n);return void e.addEventListener("load",()=>{clearTimeout(r),s=!0,t()})}const i="about:blank";if(r.location.href!==i||e.src===i||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function re(e,t,n){let r,o=!1;try{r=e.sheet}catch(i){return}if(r)return;const s=setTimeout(()=>{o||(t(),o=!0)},n);e.addEventListener("load",()=>{clearTimeout(s),o=!0,t()})}function oe(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:s,needsMask:i,inlineStylesheet:a,maskInputOptions:c={},maskTextFn:l,maskInputFn:d,dataURLOptions:u={},inlineImages:p,recordCanvas:m,keepIframeSrcFn:f,newlyAddedElement:g=!1}=t,y=se(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:h.Document,childNodes:[],compatMode:e.compatMode}:{type:h.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:h.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:y};case e.ELEMENT_NODE:return ae(e,{doc:n,blockClass:o,blockSelector:s,inlineStylesheet:a,maskInputOptions:c,maskInputFn:d,dataURLOptions:u,inlineImages:p,recordCanvas:m,keepIframeSrcFn:f,newlyAddedElement:g,rootId:y});case e.TEXT_NODE:return ie(e,{doc:n,needsMask:i,maskTextFn:l,rootId:y});case e.CDATA_SECTION_NODE:return{type:h.CDATA,textContent:"",rootId:y};case e.COMMENT_NODE:return{type:h.Comment,textContent:e.textContent||"",rootId:y};default:return!1}}function se(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return 1===n?void 0:n}function ie(e,t){var n;const{needsMask:r,maskTextFn:o,rootId:s}=t,i=e.parentNode&&e.parentNode.tagName;let a=e.textContent;const c="STYLE"===i||void 0,l="SCRIPT"===i||void 0;if(c&&a){try{e.nextSibling||e.previousSibling||(null==(n=e.parentNode.sheet)?void 0:n.cssRules)&&(a=I(e.parentNode.sheet))}catch(d){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${d}`,e)}a=_(a,K(t.doc))}return l&&(a="SCRIPT_PLACEHOLDER"),!c&&!l&&a&&r&&(a=o?o(a,e.parentElement):a.replace(/[\S]/g,"*")),{type:h.Text,textContent:a||"",isStyle:c,rootId:s}}function ae(e,t){const{doc:n,blockClass:r,blockSelector:o,inlineStylesheet:s,maskInputOptions:i={},maskInputFn:a,dataURLOptions:c={},inlineImages:l,recordCanvas:d,keepIframeSrcFn:u,newlyAddedElement:p=!1,rootId:m}=t,f=q(e,r,o),g=F(e);let y={};const b=e.attributes.length;for(let h=0;h<b;h++){const t=e.attributes[h];$(g,t.name,t.value)||(y[t.name]=Q(n,g,A(t.name),t.value))}if("link"===g&&s){const t=Array.from(n.styleSheets).find(t=>t.href===e.href);let r=null;t&&(r=I(t)),r&&(delete y.rel,delete y.href,y._cssText=_(r,t.href))}if("style"===g&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=I(e.sheet);t&&(y._cssText=_(t,K(n)))}if("input"===g||"textarea"===g||"select"===g){const t=e.value,n=e.checked;"radio"!==y.type&&"checkbox"!==y.type&&"submit"!==y.type&&"button"!==y.type&&t?y.value=M({element:e,type:E(e),tagName:g,value:t,maskInputOptions:i,maskInputFn:a}):n&&(y.checked=n)}if("option"===g&&(e.selected&&!i["select"]?y.selected=!0:delete y.selected),"canvas"===g&&d)if("2d"===e.__context)T(e)||(y.rr_dataURL=e.toDataURL(c.type,c.quality));else if(!("__context"in e)){const t=e.toDataURL(c.type,c.quality),r=n.createElement("canvas");r.width=e.width,r.height=e.height;const o=r.toDataURL(c.type,c.quality);t!==o&&(y.rr_dataURL=t)}if("img"===g&&l){G||(G=n.createElement("canvas"),Y=G.getContext("2d"));const t=e,r=t.currentSrc||t.getAttribute("src")||"<unknown-src>",o=t.crossOrigin,s=()=>{t.removeEventListener("load",s);try{G.width=t.naturalWidth,G.height=t.naturalHeight,Y.drawImage(t,0,0),y.rr_dataURL=G.toDataURL(c.type,c.quality)}catch(e){if("anonymous"!==t.crossOrigin)return t.crossOrigin="anonymous",void(t.complete&&0!==t.naturalWidth?s():t.addEventListener("load",s));console.warn(`Cannot inline img src=${r}! Error: ${e}`)}"anonymous"===t.crossOrigin&&(o?y.crossOrigin=o:t.removeAttribute("crossorigin"))};
1t.complete&&0!==t.naturalWidth?s():t.addEventListener("load",s)}if("audio"===g||"video"===g){const t=y;t.rr_mediaState=e.paused?"paused":"played",t.rr_mediaCurrentTime=e.currentTime,t.rr_mediaPlaybackRate=e.playbackRate,t.rr_mediaMuted=e.muted,t.rr_mediaLoop=e.loop,t.rr_mediaVolume=e.volume}if(p||(e.scrollLeft&&(y.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(y.rr_scrollTop=e.scrollTop)),f){const{width:t,height:n}=e.getBoundingClientRect();y={class:y.class,rr_width:`${t}px`,rr_height:`${n}px`}}let C;"iframe"!==g||u(y.src)||(e.contentDocument||(y.rr_src=y.src),delete y.src);try{customElements.get(g)&&(C=!0)}catch(v){}return{type:h.Element,tagName:g,attributes:y,childNodes:[],isSVG:J(e)||void 0,needBlock:f,rootId:m,isCustom:C}}function ce(e){return void 0===e||null===e?"":e.toLowerCase()}function le(e,t){if(t.comment&&e.type===h.Comment)return!0;if(e.type===h.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"===typeof e.attributes.href&&"js"===R(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(ce(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===ce(e.attributes.name)||"icon"===ce(e.attributes.rel)||"apple-touch-icon"===ce(e.attributes.rel)||"shortcut icon"===ce(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&ce(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(ce(e.attributes.property).match(/^(og|twitter|fb):/)||ce(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===ce(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===ce(e.attributes.name)||"googlebot"===ce(e.attributes.name)||"bingbot"===ce(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===ce(e.attributes.name)||"generator"===ce(e.attributes.name)||"framework"===ce(e.attributes.name)||"publisher"===ce(e.attributes.name)||"progid"===ce(e.attributes.name)||ce(e.attributes.property).match(/^article:/)||ce(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===ce(e.attributes.name)||"yandex-verification"===ce(e.attributes.name)||"csrf-token"===ce(e.attributes.name)||"p:domain_verify"===ce(e.attributes.name)||"verify-v1"===ce(e.attributes.name)||"verification"===ce(e.attributes.name)||"shopify-checkout-api-token"===ce(e.attributes.name)))return!0}}return!1}function de(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:s,maskTextClass:i,maskTextSelector:a,skipChild:c=!1,inlineStylesheet:l=!0,maskInputOptions:d={},maskTextFn:u,maskInputFn:g,slimDOMOptions:y,dataURLOptions:I={},inlineImages:b=!1,recordCanvas:C=!1,onSerialize:v,onIframeLoad:S,iframeLoadTimeout:k=5e3,onStylesheetLoad:w,stylesheetLoadTimeout:M=5e3,keepIframeSrcFn:A=()=>!1,newlyAddedElement:N=!1}=t;let{needsMask:T}=t,{preserveWhiteSpace:E=!0}=t;if(!T&&e.childNodes){const t=void 0===T;T=te(e,i,a,t)}const O=oe(e,{doc:n,mirror:r,blockClass:o,blockSelector:s,needsMask:T,inlineStylesheet:l,maskInputOptions:d,maskTextFn:u,maskInputFn:g,dataURLOptions:I,inlineImages:b,recordCanvas:C,keepIframeSrcFn:A,newlyAddedElement:N});if(!O)return console.warn(e,"not serialized"),null;let x;x=r.hasNode(e)?r.getId(e):le(O,y)||!E&&O.type===h.Text&&!O.isStyle&&!O.textContent.replace(/^\s+|\s+$/gm,"").length?L:D();const F=Object.assign(O,{id:x});if(r.add(e,F),x===L)return null;v&&v(e);let W=!c;if(F.type===h.Element){W=W&&!F.needBlock,delete F.needBlock;const t=e.shadowRoot;t&&f(t)&&(F.isShadowHost=!0)}if((F.type===h.Document||F.type===h.Element)&&W){y.headWhitespace&&F.type===h.Element&&"head"===F.tagName&&(E=!1);const t={doc:n,mirror:r,blockClass:o,blockSelector:s,needsMask:T,maskTextClass:i,maskTextSelector:a,skipChild:c,inlineStylesheet:l,maskInputOptions:d,maskTextFn:u,maskInputFn:g,slimDOMOptions:y,dataURLOptions:I,inlineImages:b,recordCanvas:C,preserveWhiteSpace:E,onSerialize:v,onIframeLoad:S,iframeLoadTimeout:k,onStylesheetLoad:w,stylesheetLoadTimeout:M,keepIframeSrcFn:A};if(F.type===h.Element&&"textarea"===F.tagName&&void 0!==F.attributes.value);else for(const n of Array.from(e.childNodes)){const e=de(n,t);e&&F.childNodes.push(e)}if(p(e)&&e.shadowRoot)for(const n of Array.from(e.shadowRoot.childNodes)){const r=de(n,t);r&&(f(e.shadowRoot)&&(r.isShadow=!0),F.childNodes.push(r))}}return e.parentNode&&m(e.parentNode)&&f(e.parentNode)&&(F.isShadow=!0),F.type===h.Element&&"iframe"===F.tagName&&ne(e,()=>{const t=e.contentDocument;if(t&&S){const n=de(t,{doc:t,mirror:r,blockClass:o,blockSelector:s,needsMask:T,maskTextClass:i,maskTextSelector:a,skipChild:!1,inlineStylesheet:l,maskInputOptions:d,maskTextFn:u,maskInputFn:g,slimDOMOptions:y,dataURLOptions:I,inlineImages:b,recordCanvas:C,preserveWhiteSpace:E,onSerialize:v,onIframeLoad:S,iframeLoadTimeout:k,onStylesheetLoad:w,stylesheetLoadTimeout:M,keepIframeSrcFn:A});
1n&&S(e,n)}},k),F.type===h.Element&&"link"===F.tagName&&"string"===typeof F.attributes.rel&&("stylesheet"===F.attributes.rel||"preload"===F.attributes.rel&&"string"===typeof F.attributes.href&&"css"===R(F.attributes.href))&&re(e,()=>{if(w){const t=de(e,{doc:n,mirror:r,blockClass:o,blockSelector:s,needsMask:T,maskTextClass:i,maskTextSelector:a,skipChild:!1,inlineStylesheet:l,maskInputOptions:d,maskTextFn:u,maskInputFn:g,slimDOMOptions:y,dataURLOptions:I,inlineImages:b,recordCanvas:C,preserveWhiteSpace:E,onSerialize:v,onIframeLoad:S,iframeLoadTimeout:k,onStylesheetLoad:w,stylesheetLoadTimeout:M,keepIframeSrcFn:A});t&&w(e,t)}},M),F}function ue(e,t){const{mirror:n=new k,blockClass:r="rr-block",blockSelector:o=null,maskTextClass:s="rr-mask",maskTextSelector:i=null,inlineStylesheet:a=!0,inlineImages:c=!1,recordCanvas:l=!1,maskAllInputs:d=!1,maskTextFn:u,maskInputFn:h,slimDOM:p=!1,dataURLOptions:m,preserveWhiteSpace:f,onSerialize:g,onIframeLoad:y,iframeLoadTimeout:I,onStylesheetLoad:b,stylesheetLoadTimeout:C,keepIframeSrcFn:v=()=>!1}=t||{},S=!0===d?{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,password:!0}:!1===d?{password:!0}:d,w=!0===p||"all"===p?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===p,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===p?{}:p;return de(e,{doc:e,mirror:n,blockClass:r,blockSelector:o,maskTextClass:s,maskTextSelector:i,skipChild:!1,inlineStylesheet:a,maskInputOptions:S,maskTextFn:u,maskInputFn:h,slimDOMOptions:w,dataURLOptions:m,inlineImages:c,recordCanvas:l,preserveWhiteSpace:f,onSerialize:g,onIframeLoad:y,iframeLoadTimeout:I,onStylesheetLoad:b,stylesheetLoadTimeout:C,keepIframeSrcFn:v,newlyAddedElement:!1})}const he=/(max|min)-device-(width|height)/,pe=(new RegExp(he.source,"g"),/([^\\]):hover/);new RegExp(pe.source,"g");function me(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const fe="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 ge={map:{},getId(){return console.error(fe),-1},getNode(){return console.error(fe),null},removeNodeFromMap(){console.error(fe)},has(){return console.error(fe),!1},reset(){console.error(fe)}};function ye(e,t,n={}){let r=null,o=0;return function(...s){const i=Date.now();o||!1!==n.leading||(o=i);const a=t-(i-o),c=this;a<=0||a>t?(r&&(clearTimeout(r),r=null),o=i,e.apply(c,s)):r||!1===n.trailing||(r=setTimeout(()=>{o=!1===n.leading?0:Date.now(),r=null,e.apply(c,s)},a))}}function Ie(e,t,n,r,o=window){const s=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(e){setTimeout(()=>{n.set.call(this,e)},0),s&&s.set&&s.set.call(this,e)}}),()=>Ie(e,t,s||{},!0)}function be(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],o=n(r);return"function"===typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch{return()=>{}}}"undefined"!==typeof window&&window.Proxy&&window.Reflect&&(ge=new Proxy(ge,{get(e,t,n){return"map"===t&&console.error(fe),Reflect.get(e,t,n)}}));let Ce=Date.now;function ve(e){var t,n,r,o,s,i;const a=e.document;return{left:a.scrollingElement?a.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:(null==a?void 0:a.documentElement.scrollLeft)||(null==(n=null==(t=null==a?void 0:a.body)?void 0:t.parentElement)?void 0:n.scrollLeft)||(null==(r=null==a?void 0:a.body)?void 0:r.scrollLeft)||0,top:a.scrollingElement?a.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==a?void 0:a.documentElement.scrollTop)||(null==(s=null==(o=null==a?void 0:a.body)?void 0:o.parentElement)?void 0:s.scrollTop)||(null==(i=null==a?void 0:a.body)?void 0:i.scrollTop)||0}}function Se(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function ke(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function we(e){if(!e)return null;const t=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;return t}function Me(e,t,n,r){if(!e)return!1;const o=we(e);if(!o)return!1;try{if("string"===typeof t){if(o.classList.contains(t))return!0;
1if(r&&null!==o.closest("."+t))return!0}else if(ee(o,t,r))return!0}catch(s){}if(n){if(o.matches(n))return!0;if(r&&null!==o.closest(n))return!0}return!1}function Ae(e,t){return-1!==t.getId(e)}function Ne(e,t,n){return!("TITLE"!==e.tagName||!n.headTitleMutations)||t.getId(e)===L}function Te(e,t){if(m(e))return!1;const n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||Te(e.parentNode,t))}function Ee(e){return Boolean(e.changedTouches)}function Re(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})}function Oe(e){const t={},n=(e,n)=>{const r={value:e,parent:n,children:[]};return t[e.node.id]=r,r},r=[];for(const o of e){const{nextId:e,parentId:s}=o;if(e&&e in t){const s=t[e];if(s.parent){const e=s.parent.children.indexOf(s);s.parent.children.splice(e,0,n(o,s.parent))}else{const e=r.indexOf(s);r.splice(e,0,n(o,null))}continue}if(s in t){const e=t[s];e.children.push(n(o,e));continue}r.push(n(o,null))}return r}function xe(e,t){t(e.value);for(let n=e.children.length-1;n>=0;n--)xe(e.children[n],t)}function Le(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function De(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function Fe(e,t){var n,r;const o=null==(r=null==(n=e.ownerDocument)?void 0:n.defaultView)?void 0:r.frameElement;if(!o||o===t)return{x:0,y:0,relativeScale:1,absoluteScale:1};const s=o.getBoundingClientRect(),i=Fe(o,t),a=s.height/o.clientHeight;return{x:s.x*i.relativeScale+i.x,y:s.y*i.relativeScale+i.y,relativeScale:a,absoluteScale:i.absoluteScale*a}}function We(e){return Boolean(null==e?void 0:e.shadowRoot)}function Ge(e,t){const n=e[t[0]];return 1===t.length?n:Ge(n.cssRules[t[1]].cssRules,t.slice(2))}function Ye(e){const t=[...e],n=t.pop();return{positions:t,index:n}}function Be(e){const t=new Set,n=[];for(let r=e.length;r--;){const o=e[r];t.has(o.id)||(n.push(o),t.add(o.id))}return n}/[1-9][0-9]{12}/.test(Date.now().toString())||(Ce=()=>(new Date).getTime());class Ze{constructor(){c(this,"id",1),c(this,"styleIDMap",new WeakMap),c(this,"idStyleMap",new Map)}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Ve(e){var t,n;let r=null;return(null==(n=null==(t=e.getRootNode)?void 0:t.call(e))?void 0:n.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(r=e.getRootNode().host),r}function ze(e){let t,n=e;while(t=Ve(n))n=t;return n}function _e(e){const t=e.ownerDocument;if(!t)return!1;const n=ze(e);return t.contains(n)}function Ue(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||_e(e))}Symbol.toStringTag;var Xe=(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))(Xe||{}),He=(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))(He||{}),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||{}),Pe=(e=>(e[e["Mouse"]=0]="Mouse",e[e["Pen"]=1]="Pen",e[e["Touch"]=2]="Touch",e))(Pe||{}),Je=(e=>(e[e["2D"]=0]="2D",e[e["WebGL"]=1]="WebGL",e[e["WebGL2"]=2]="WebGL2",e))(Je||{}),Ke=(e=>(e[e["Play"]=0]="Play",e[e["Pause"]=1]="Pause",e[e["Seeked"]=2]="Seeked",e[e["VolumeChange"]=3]="VolumeChange",e[e["RateChange"]=4]="RateChange",e))(Ke||{});function Qe(e){return"__ln"in e}class $e{constructor(){c(this,"length",0),c(this,"head",null),c(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=(null==t?void 0:t.next)||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&Qe(e.previousSibling)){const n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&
1(n.previous=t)}else if(e.nextSibling&&Qe(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 qe=(e,t)=>`${e}@${t}`;class et{constructor(){c(this,"frozen",!1),c(this,"locked",!1),c(this,"texts",[]),c(this,"attributes",[]),c(this,"attributeMap",new WeakMap),c(this,"removes",[]),c(this,"mapRemoves",[]),c(this,"movedMap",{}),c(this,"addedSet",new Set),c(this,"movedSet",new Set),c(this,"droppedSet",new Set),c(this,"mutationCb"),c(this,"blockClass"),c(this,"blockSelector"),c(this,"maskTextClass"),c(this,"maskTextSelector"),c(this,"inlineStylesheet"),c(this,"maskInputOptions"),c(this,"maskTextFn"),c(this,"maskInputFn"),c(this,"keepIframeSrcFn"),c(this,"recordCanvas"),c(this,"inlineImages"),c(this,"slimDOMOptions"),c(this,"dataURLOptions"),c(this,"doc"),c(this,"mirror"),c(this,"iframeManager"),c(this,"stylesheetManager"),c(this,"shadowDomManager"),c(this,"canvasManager"),c(this,"processedNodeManager"),c(this,"unattachedDoc"),c(this,"processMutations",e=>{e.forEach(this.processMutation),this.emit()}),c(this,"emit",()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,n=new $e,r=e=>{let t=e,n=L;while(n===L)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},o=o=>{if(!o.parentNode||!Ue(o)||"TEXTAREA"===o.parentNode.tagName)return;const s=m(o.parentNode)?this.mirror.getId(Ve(o)):this.mirror.getId(o.parentNode),i=r(o);if(-1===s||-1===i)return n.addNode(o);const a=de(o,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{Le(e,this.mirror)&&this.iframeManager.addIframe(e),De(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),We(o)&&this.shadowDomManager.addShadowRoot(o.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:s,nextId:i,node:a}),t.add(a.id))};while(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)||o(a);for(const a of this.addedSet)ot(this.droppedSet,a)||nt(this.removes,a,this.mirror)?ot(this.movedSet,a)?o(a):this.droppedSet.add(a):o(a);let s=null;while(n.length){let e=null;if(s){const t=this.mirror.getId(s.value.parentNode),n=r(s.value);-1!==t&&-1!==n&&(e=s)}if(!e){let t=n.tail;while(t){const n=t;if(t=t.previous,n){const t=this.mirror.getId(n.value.parentNode),o=r(n.value);if(-1===o)continue;if(-1!==t){e=n;break}{const t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const r=t.parentNode.host,o=this.mirror.getId(r);if(-1!==o){e=n;break}}}}}}if(!e){while(n.head)n.removeNode(n.head.value);break}s=e.previous,n.removeNode(e.value),o(e.value)}const i={texts:this.texts.map(e=>{const t=e.node;return t.parentNode&&"TEXTAREA"===t.parentNode.tagName&&this.genTextAreaValueMutation(t.parentNode),{id:this.mirror.getId(t),value:e.value}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{const{attributes:t}=e;if("string"===typeof t.style){const n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+r).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}
1return{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))}),c(this,"genTextAreaValueMutation",e=>{let t=this.attributeMap.get(e);t||(t={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(t),this.attributeMap.set(e,t)),t.attributes.value=Array.from(e.childNodes,e=>e.textContent||"").join("")}),c(this,"processMutation",e=>{if(!Ne(e.target,this.mirror,this.slimDOMOptions))switch(e.type){case"characterData":{const t=e.target.textContent;Me(e.target,this.blockClass,this.blockSelector,!1)||t===e.oldValue||this.texts.push({value:te(e.target,this.maskTextClass,this.maskTextSelector,!0)&&t?this.maskTextFn?this.maskTextFn(t,we(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const n=e.target;let r=e.attributeName,o=e.target.getAttribute(r);if("value"===r){const e=E(n);o=M({element:n,maskInputOptions:this.maskInputOptions,tagName:n.tagName,type:e,value:o,maskInputFn:this.maskInputFn})}if(Me(e.target,this.blockClass,this.blockSelector,!1)||o===e.oldValue)return;let s=this.attributeMap.get(e.target);if("IFRAME"===n.tagName&&"src"===r&&!this.keepIframeSrcFn(o)){if(n.contentDocument)return;r="rr_src"}if(s||(s={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(s),this.attributeMap.set(e.target,s)),"type"===r&&"INPUT"===n.tagName&&"password"===(e.oldValue||"").toLowerCase()&&n.setAttribute("data-rr-is-password","true"),!$(n.tagName,r)&&(s.attributes[r]=Q(this.doc,A(n.tagName),A(r),o),"style"===r)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(t){this.unattachedDoc=this.doc}const r=this.unattachedDoc.createElement("span");e.oldValue&&r.setAttribute("style",e.oldValue);for(const e of Array.from(n.style)){const t=n.style.getPropertyValue(e),o=n.style.getPropertyPriority(e);t!==r.style.getPropertyValue(e)||o!==r.style.getPropertyPriority(e)?s.styleDiff[e]=""===o?t:[t,o]:s._unchangedStyles[e]=[t,o]}for(const e of Array.from(r.style))""===n.style.getPropertyValue(e)&&(s.styleDiff[e]=!1)}break}case"childList":if(Me(e.target,this.blockClass,this.blockSelector,!0))return;if("TEXTAREA"===e.target.tagName)return void this.genTextAreaValueMutation(e.target);e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{const n=this.mirror.getId(t),r=m(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);Me(e.target,this.blockClass,this.blockSelector,!1)||Ne(t,this.mirror,this.slimDOMOptions)||!Ae(t,this.mirror)||(this.addedSet.has(t)?(tt(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||Te(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[qe(n,r)]?tt(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!(!m(e.target)||!f(e.target))||void 0})),this.mapRemoves.push(t))});break}}),c(this,"genAdds",(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!this.addedSet.has(e)&&!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if(Ne(e,this.mirror,this.slimDOMOptions))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[qe(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);Me(e,this.blockClass,this.blockSelector,!1)||(e.childNodes.forEach(e=>this.genAdds(e)),We(e)&&e.shadowRoot.childNodes.forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}})}init(e){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","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
1()}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&&rt(e,t,n)}function rt(e,t,n){let r=t.parentNode;while(r){const t=n.getId(r);if(e.some(e=>e.id===t))return!0;r=r.parentNode}return!1}function ot(e,t){return 0!==e.size&&st(e,t)}function st(e,t){const{parentNode:n}=t;return!!n&&(!!e.has(n)||st(e,n))}let it;function at(e){it=e}function ct(){it=void 0}const lt=e=>{if(!it)return e;const t=(...t)=>{try{return e(...t)}catch(n){if(it&&!0===it(n))return;throw n}};return t},dt=[];function ut(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function ht(e,t){var n,r;const o=new et;dt.push(o),o.init(e);let s=window.MutationObserver||window.__rrMutationObserver;const i=null==(r=null==(n=null==window?void 0:window.Zone)?void 0:n.__symbol__)?void 0:r.call(n,"MutationObserver");i&&window[i]&&(s=window[i]);const a=new s(lt(o.processMutations.bind(o)));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function pt({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(!1===t.mousemove)return()=>{};const o="number"===typeof t.mousemove?t.mousemove:50,s="number"===typeof t.mousemoveCallback?t.mousemoveCallback:500;let i,a=[];const c=ye(lt(t=>{const n=Date.now()-i;e(a.map(e=>(e.timeOffset-=n,e)),t),a=[],i=null}),s),l=lt(ye(lt(e=>{const t=ut(e),{clientX:n,clientY:o}=Ee(e)?e.changedTouches[0]:e;i||(i=Ce()),a.push({x:n,y:o,id:r.getId(t),timeOffset:Ce()-i}),c("undefined"!==typeof DragEvent&&e instanceof DragEvent?He.Drag:e instanceof MouseEvent?He.MouseMove:He.TouchMove)}),o,{trailing:!1})),d=[me("mousemove",l,n),me("touchmove",l,n),me("drag",l,n)];return lt(()=>{d.forEach(e=>e())})}function mt({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,sampling:s}){if(!1===s.mouseInteraction)return()=>{};const i=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,a=[];let c=null;const l=t=>s=>{const i=ut(s);if(Me(i,r,o,!0))return;let a=null,l=t;if("pointerType"in s){switch(s.pointerType){case"mouse":a=Pe.Mouse;break;case"touch":a=Pe.Touch;break;case"pen":a=Pe.Pen;break}a===Pe.Touch?je[t]===je.MouseDown?l="TouchStart":je[t]===je.MouseUp&&(l="TouchEnd"):Pe.Pen}else Ee(s)&&(a=Pe.Touch);null!==a?(c=a,(l.startsWith("Touch")&&a===Pe.Touch||l.startsWith("Mouse")&&a===Pe.Mouse)&&(a=null)):je[t]===je.Click&&(a=c,c=null);const d=Ee(s)?s.changedTouches[0]:s;if(!d)return;const u=n.getId(i),{clientX:h,clientY:p}=d;lt(e)({type:je[l],id:u,x:h,y:p,...null!==a&&{pointerType:a}})};return Object.keys(je).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==i[e]).forEach(e=>{let n=A(e);const r=l(e);if(window.PointerEvent)switch(je[e]){case je.MouseDown:case je.MouseUp:n=n.replace("mouse","pointer");break;case je.TouchStart:case je.TouchEnd:return}a.push(me(n,r,t))}),lt(()=>{a.forEach(e=>e())})}function ft({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,sampling:s}){const i=lt(ye(lt(s=>{const i=ut(s);if(!i||Me(i,r,o,!0))return;const a=n.getId(i);if(i===t&&t.defaultView){const n=ve(t.defaultView);e({id:a,x:n.left,y:n.top})}else e({id:a,x:i.scrollLeft,y:i.scrollTop})}),s.scroll||100));return me("scroll",i,t)}function gt({viewportResizeCb:e},{win:t}){let n=-1,r=-1;const o=lt(ye(lt(()=>{const t=Se(),o=ke();n===t&&r===o||(e({width:Number(o),height:Number(t)}),n=t,r=o)}),200));return me("resize",o,t)}const yt=["INPUT","TEXTAREA","SELECT"],It=new WeakMap;function bt({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,ignoreClass:s,ignoreSelector:i,maskInputOptions:a,maskInputFn:c,sampling:l,userTriggeredOnInput:d}){function u(e){let n=ut(e);const l=e.isTrusted,u=n&&n.tagName;if(n&&"OPTION"===u&&(n=n.parentElement),!n||!u||yt.indexOf(u)<0||Me(n,r,o,!0))return;if(n.classList.contains(s)||i&&n.matches(i))return;let p=n.value,m=!1;const f=E(n)||"";"radio"===f||"checkbox"===f?m=n.checked:(a[u.toLowerCase()]||a[f])&&(p=M({element:n,maskInputOptions:a,tagName:u,type:f,value:p,maskInputFn:c})),h(n,d?{text:p,isChecked:m,userTriggered:l}:{text:p,isChecked:m});const g=n.name;"radio"===f&&g&&m&&t.querySelectorAll(`input[type="radio"][name="${g}
1"]`).forEach(e=>{if(e!==n){const t=e.value;h(e,d?{text:t,isChecked:!m,userTriggered:!1}:{text:t,isChecked:!m})}})}function h(t,r){const o=It.get(t);if(!o||o.text!==r.text||o.isChecked!==r.isChecked){It.set(t,r);const o=n.getId(t);lt(e)({...r,id:o})}}const p="last"===l.input?["change"]:["input","change"],m=p.map(e=>me(e,lt(u),t)),f=t.defaultView;if(!f)return()=>{m.forEach(e=>e())};const g=f.Object.getOwnPropertyDescriptor(f.HTMLInputElement.prototype,"value"),y=[[f.HTMLInputElement.prototype,"value"],[f.HTMLInputElement.prototype,"checked"],[f.HTMLSelectElement.prototype,"value"],[f.HTMLTextAreaElement.prototype,"value"],[f.HTMLSelectElement.prototype,"selectedIndex"],[f.HTMLOptionElement.prototype,"selected"]];return g&&g.set&&m.push(...y.map(e=>Ie(e[0],e[1],{set(){lt(u)({target:this,isTrusted:!1})}},!1,f))),lt(()=>{m.forEach(e=>e())})}function Ct(e){const t=[];function n(e,t){if(Ot("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||Ot("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||Ot("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||Ot("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const n=Array.from(e.parentRule.cssRules),r=n.indexOf(e);t.unshift(r)}else if(e.parentStyleSheet){const n=Array.from(e.parentStyleSheet.cssRules),r=n.indexOf(e);t.unshift(r)}return t}return n(e,t)}function vt(e,t,n){let r,o;return e?(e.ownerNode?r=t.getId(e.ownerNode):o=n.getId(e),{styleId:o,id:r}):{}}function St({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const o=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:lt((r,o,s)=>{const[i,a]=s,{id:c,styleId:l}=vt(o,t,n.styleMirror);return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,adds:[{rule:i,index:a}]}),r.apply(o,s)})});const s=r.CSSStyleSheet.prototype.deleteRule;let i,a;r.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:lt((r,o,s)=>{const[i]=s,{id:a,styleId:c}=vt(o,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:i}]}),r.apply(o,s)})}),r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:lt((r,o,s)=>{const[i]=s,{id:a,styleId:c}=vt(o,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replace:i}),r.apply(o,s)})})),r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:lt((r,o,s)=>{const[i]=s,{id:a,styleId:c}=vt(o,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replaceSync:i}),r.apply(o,s)})}));const c={};xt("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(xt("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),xt("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),xt("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const l={};return Object.entries(c).forEach(([r,o])=>{l[r]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=new Proxy(l[r].insertRule,{apply:lt((r,o,s)=>{const[i,a]=s,{id:c,styleId:l}=vt(o.parentStyleSheet,t,n.styleMirror);return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,adds:[{rule:i,index:[...Ct(o),a||0]}]}),r.apply(o,s)})}),o.prototype.deleteRule=new Proxy(l[r].deleteRule,{apply:lt((r,o,s)=>{const[i]=s,{id:a,styleId:c}=vt(o.parentStyleSheet,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:[...Ct(o),i]}]}),r.apply(o,s)})})}),lt(()=>{r.CSSStyleSheet.prototype.insertRule=o,r.CSSStyleSheet.prototype.deleteRule=s,i&&(r.CSSStyleSheet.prototype.replace=i),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEach(([e,t])=>{t.prototype.insertRule=l[e].insertRule,t.prototype.deleteRule=l[e].deleteRule})})}function kt({mirror:e,stylesheetManager:t},n){var r,o,s;let i=null;i="#document"===n.nodeName?e.getId(n):e.getId(n.host);const a="#document"===n.nodeName?null==(r=n.defaultView)?void 0:r.Document:null==(s=null==(o=n.ownerDocument)?void 0:o.defaultView)?void 0:s.ShadowRoot,c=(null==a?void 0:a.prototype)?Object.getOwnPropertyDescriptor(null==a?void 0:a.prototype,"adoptedStyleSheets"):void 0;return null!==i&&-1!==i&&a&&c?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get(){var e;return null==(e=c.get)?void 0:e.call(this)},set(e){var n;const r=null==(n=c.set)?void 0:n.call(this,e);if(null!==i&&-1!==i)try{t.adoptStyleSheets(e,i)}catch(o){}return r}}),lt(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})})):()=>{}}function wt({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:o}){const s=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:lt((o,i,a)=>{var c;const[l,d,u]=a;if(n.has(l))return s.apply(i,[l,d,u]);const{id:h,styleId:p}=vt(null==(c=i.parentRule)?void 0:c.parentStyleSheet,t,r.styleMirror);
1return(h&&-1!==h||p&&-1!==p)&&e({id:h,styleId:p,set:{property:l,value:d,priority:u},index:Ct(i.parentRule)}),o.apply(i,a)})});const i=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:lt((o,s,a)=>{var c;const[l]=a;if(n.has(l))return i.apply(s,[l]);const{id:d,styleId:u}=vt(null==(c=s.parentRule)?void 0:c.parentStyleSheet,t,r.styleMirror);return(d&&-1!==d||u&&-1!==u)&&e({id:d,styleId:u,remove:{property:l},index:Ct(s.parentRule)}),o.apply(s,a)})}),lt(()=>{o.CSSStyleDeclaration.prototype.setProperty=s,o.CSSStyleDeclaration.prototype.removeProperty=i})}function Mt({mediaInteractionCb:e,blockClass:t,blockSelector:n,mirror:r,sampling:o,doc:s}){const i=lt(s=>ye(lt(o=>{const i=ut(o);if(!i||Me(i,t,n,!0))return;const{currentTime:a,volume:c,muted:l,playbackRate:d,loop:u}=i;e({type:s,id:r.getId(i),currentTime:a,volume:c,muted:l,playbackRate:d,loop:u})}),o.media||500)),a=[me("play",i(Ke.Play),s),me("pause",i(Ke.Pause),s),me("seeked",i(Ke.Seeked),s),me("volumechange",i(Ke.VolumeChange),s),me("ratechange",i(Ke.RateChange),s)];return lt(()=>{a.forEach(e=>e())})}function At({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],o=new WeakMap,s=n.FontFace;n.FontFace=function(e,t,n){const r=new s(e,t,n);return o.set(r,{family:e,buffer:"string"!==typeof t,descriptors:n,fontSource:"string"===typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};const i=be(t.fonts,"add",function(t){return function(n){return setTimeout(lt(()=>{const t=o.get(n);t&&(e(t),o.delete(n))}),0),t.apply(this,[n])}});return r.push(()=>{n.FontFace=s}),r.push(i),lt(()=>{r.forEach(e=>e())})}function Nt(e){const{doc:t,mirror:n,blockClass:r,blockSelector:o,selectionCb:s}=e;let i=!0;const a=lt(()=>{const e=t.getSelection();if(!e||i&&(null==e?void 0:e.isCollapsed))return;i=e.isCollapsed||!1;const a=[],c=e.rangeCount||0;for(let t=0;t<c;t++){const s=e.getRangeAt(t),{startContainer:i,startOffset:c,endContainer:l,endOffset:d}=s,u=Me(i,r,o,!0)||Me(l,r,o,!0);u||a.push({start:n.getId(i),startOffset:c,end:n.getId(l),endOffset:d})}s({ranges:a})});return a(),me("selectionchange",a)}function Tt({doc:e,customElementCb:t}){const n=e.defaultView;if(!n||!n.customElements)return()=>{};const r=be(n.customElements,"define",function(e){return function(n,r,o){try{t({define:{name:n}})}catch(s){console.warn(`Custom element callback failed for ${n}`)}return e.apply(this,[n,r,o])}});return r}function Et(e,t){const{mutationCb:n,mousemoveCb:r,mouseInteractionCb:o,scrollCb:s,viewportResizeCb:i,inputCb:a,mediaInteractionCb:c,styleSheetRuleCb:l,styleDeclarationCb:d,canvasMutationCb:u,fontCb:h,selectionCb:p,customElementCb:m}=e;e.mutationCb=(...e)=>{t.mutation&&t.mutation(...e),n(...e)},e.mousemoveCb=(...e)=>{t.mousemove&&t.mousemove(...e),r(...e)},e.mouseInteractionCb=(...e)=>{t.mouseInteraction&&t.mouseInteraction(...e),o(...e)},e.scrollCb=(...e)=>{t.scroll&&t.scroll(...e),s(...e)},e.viewportResizeCb=(...e)=>{t.viewportResize&&t.viewportResize(...e),i(...e)},e.inputCb=(...e)=>{t.input&&t.input(...e),a(...e)},e.mediaInteractionCb=(...e)=>{t.mediaInteaction&&t.mediaInteaction(...e),c(...e)},e.styleSheetRuleCb=(...e)=>{t.styleSheetRule&&t.styleSheetRule(...e),l(...e)},e.styleDeclarationCb=(...e)=>{t.styleDeclaration&&t.styleDeclaration(...e),d(...e)},e.canvasMutationCb=(...e)=>{t.canvasMutation&&t.canvasMutation(...e),u(...e)},e.fontCb=(...e)=>{t.font&&t.font(...e),h(...e)},e.selectionCb=(...e)=>{t.selection&&t.selection(...e),p(...e)}
1,e.customElementCb=(...e)=>{t.customElement&&t.customElement(...e),m(...e)}}function Rt(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;Et(e,t),e.recordDOM&&(r=ht(e,e.doc));const o=pt(e),s=mt(e),i=ft(e),a=gt(e,{win:n}),c=bt(e),l=Mt(e);let d=()=>{},u=()=>{},h=()=>{},p=()=>{};e.recordDOM&&(d=St(e,{win:n}),u=kt(e,e.doc),h=wt(e,{win:n}),e.collectFonts&&(p=At(e)));const m=Nt(e),f=Tt(e),g=[];for(const y of e.plugins)g.push(y.observer(y.callback,n,y.options));return lt(()=>{dt.forEach(e=>e.reset()),null==r||r.disconnect(),o(),s(),i(),a(),c(),l(),d(),u(),h(),p(),m(),f(),g.forEach(e=>e())})}function Ot(e){return"undefined"!==typeof window[e]}function xt(e){return Boolean("undefined"!==typeof window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Lt{constructor(e){c(this,"iframeIdToRemoteIdMap",new WeakMap),c(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}getId(e,t,n,r){const o=n||this.getIdToRemoteIdMap(e),s=r||this.getRemoteIdToIdMap(e);let i=o.get(t);return i||(i=this.generateIdFn(),o.set(t,i),s.set(i,t)),i}getIds(e,t){const n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,n,r))}
vendor: 4,188 bytes, line 1
1getRemoteId(e,t,n){const r=n||this.getRemoteIdToIdMap(e);if("number"!==typeof t)return t;const o=r.get(t);return o||-1}getRemoteIds(e,t){const n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,n))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class Dt{constructor(e){c(this,"iframes",new WeakMap),c(this,"crossOriginIframeMap",new WeakMap),c(this,"crossOriginIframeMirror",new Lt(D)),c(this,"crossOriginIframeStyleMirror"),c(this,"crossOriginIframeRootIdMap",new WeakMap),c(this,"mirror"),c(this,"mutationCb"),c(this,"wrappedEmit"),c(this,"loadListener"),c(this,"stylesheetManager"),c(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Lt(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){var n,r;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&(null==(n=e.contentWindow)||n.addEventListener("message",this.handleMessage.bind(this))),null==(r=this.loadListener)||r.call(this,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;const n=e.source;if(!n)return;const r=this.crossOriginIframeMap.get(e.source);if(!r)return;const o=this.transformCrossOriginEvent(r,t.data.event);o&&this.wrappedEmit(o,t.data.isCheckout)}transformCrossOriginEvent(e,t){var n;switch(t.type){case Xe.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:Xe.IncrementalSnapshot,data:{source:He.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Xe.Meta:case Xe.Load:case Xe.DomContentLoaded:return!1;case Xe.Plugin:return t;case Xe.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case Xe.IncrementalSnapshot:switch(t.data.source){case He.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 He.Drag:case He.TouchMove:case He.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case He.ViewportResize:return!1;case He.MediaInteraction:case He.MouseInteraction:case He.Scroll:case He.CanvasMutation:case He.Input:return this.replaceIds(t.data,e,["id"]),t;case He.StyleSheetRule:case He.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case He.Font:return t;case He.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case He.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(n=t.data.styles)||n.forEac
1h(t=>{this.replaceStyleIds(t,e,["styleId"])}),t}}return!1}replace(e,t,n,r){for(const o of r)(Array.isArray(t[o])||"number"===typeof t[o])&&(Array.isArray(t[o])?t[o]=e.getIds(n,t[o]):t[o]=e.getId(n,t[o]));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===h.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class Ft{constructor(e){c(this,"shadowDoms",new WeakSet),c(this,"mutationCb"),c(this,"scrollCb"),c(this,"bypassOptions"),c(this,"mirror"),c(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(!f(e))return;if(this.shadowDoms.has(e))return;this.shadowDoms.add(e);const n=ht({...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})),setTimeout(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(kt({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(be(e.prototype,"attachShadow",function(e){return function(r){const o=e.call(this,r);return this.shadowRoot&&Ue(this)&&n.addShadowRoot(this.shadowRoot,t),o}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(t){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}for(var Wt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Gt="undefined"===typeof Uint8Array?[]:new Uint8Array(256),Yt=0;Yt<Wt.length;Yt++)Gt[Wt.charCodeAt(Yt)]=Yt;var Bt=function(e){var t,n=new Uint8Array(e),r=n.length,o="";for(t=0;t<r;t+=3)o+=Wt[n[t]>>2],o+=Wt[(3&n[t])<<4|n[t+1]>>4],o+=Wt[(15&n[t+1])<<2|n[t+2]>>6],o+=Wt[63&n[t+2]];return r%3===2?o=o.substring(0,o.length-1)+"=":r%3===1&&(o=o.substring(0,o.length-2)+"=="),o};const Zt=new Map;function Vt(e,t){let n=Zt.get(e);return n||(n=new Map,Zt.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}const zt=(e,t,n)=>{if(!e||!Xt(e,t)&&"object"!==typeof e)return;const r=e.constructor.name,o=Vt(n,r);let s=o.indexOf(e);return-1===s&&(s=o.length,o.push(e)),s};function _t(e,t,n){if(e instanceof Array)return e.map(e=>_t(e,t,n));if(null===e)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray){const t=e.constructor.name;return{rr_type:t,args:[Object.values(e)]}}if(e instanceof ArrayBuffer){const t=e.constructor.name,n=Bt(e);return{rr_type:t,base64:n}}if(e instanceof DataView){const r=e.constructor.name;return{rr_type:r,args:[_t(e.buffer,t,n),e.byteOffset,e.byteLength]}}if(e instanceof HTMLImageElement){const t=e.constructor.name,{src:n}=e;return{rr_type:t,src:n}}if(e instanceof HTMLCanvasElement){const t="HTMLImageElement",n=e.toDataURL();return{rr_type:t,src:n}}if(e instanceof ImageData){const r=e.constructor.name;return{rr_type:r,args:[_t(e.data,t,n),e.width,e.height]}}if(Xt(e,t)||"object"===typeof e){const r=e.constructor.name,o=zt(e,t,n);return{rr_type:r,index:o}}return e}const Ut=(e,t,n)=>e.map(e=>_t(e,t,n)),Xt=(e,t)=>{const n=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"],r=n.filter(e=>"function"===typeof t[e]);return Boolean(r.find(n=>e instanceof t[n]))};function Ht(e,t,n,r){const o=[],s=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);
1for(const i of s)try{if("function"!==typeof t.CanvasRenderingContext2D.prototype[i])continue;const s=be(t.CanvasRenderingContext2D.prototype,i,function(o){return function(...s){return Me(this.canvas,n,r,!0)||setTimeout(()=>{const n=Ut(s,t,this);e(this.canvas,{type:Je["2D"],property:i,args:n})},0),o.apply(this,s)}});o.push(s)}catch{const n=Ie(t.CanvasRenderingContext2D.prototype,i,{set(t){e(this.canvas,{type:Je["2D"],property:i,args:[t],setter:!0})}});o.push(n)}return()=>{o.forEach(e=>e())}}function jt(e){return"experimental-webgl"===e?"webgl":e}function Pt(e,t,n,r){const o=[];try{const s=be(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(o,...s){if(!Me(this,t,n,!0)){const e=jt(o);if("__context"in this||(this.__context=e),r&&["webgl","webgl2"].includes(e))if(s[0]&&"object"===typeof s[0]){const e=s[0];e.preserveDrawingBuffer||(e.preserveDrawingBuffer=!0)}else s.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[o,...s])}});o.push(s)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{o.forEach(e=>e())}}function Jt(e,t,n,r,o,s,i){const a=[],c=Object.getOwnPropertyNames(e);for(const l of c)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(l))try{if("function"!==typeof e[l])continue;const s=be(e,l,function(e){return function(...s){const a=e.apply(this,s);if(zt(a,i,this),"tagName"in this.canvas&&!Me(this.canvas,r,o,!0)){const e=Ut(s,i,this),r={type:t,property:l,args:e};n(this.canvas,r)}return a}});a.push(s)}catch{const r=Ie(e,l,{set(e){n(this.canvas,{type:t,property:l,args:[e],setter:!0})}});a.push(r)}return a}function Kt(e,t,n,r,o){const s=[];return s.push(...Jt(t.WebGLRenderingContext.prototype,Je.WebGL,e,n,r,o,t)),"undefined"!==typeof t.WebGL2RenderingContext&&s.push(...Jt(t.WebGL2RenderingContext.prototype,Je.WebGL2,e,n,r,o,t)),()=>{s.forEach(e=>e())}}const Qt="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3B
1hcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpCiAgICAgICAgcmV0dXJuIHRyYW5zcGFyZW50QmxvYk1hcC5nZXQoaWQpOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIHRyYW5zcGFyZW50QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICAgIHJldHVybiBiYXNlNjQ7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gIiI7CiAgICB9CiAgfQogIGNvbnN0IHdvcmtlciA9IHNlbGY7CiAgd29ya2VyLm9ubWVzc2FnZSA9IGFzeW5jIGZ1bmN0aW9uKGUpIHsKICAgIGlmICgiT2Zmc2NyZWVuQ2FudmFzIiBpbiBnbG9iYWxUaGlzKSB7CiAgICAgIGNvbnN0IHsgaWQsIGJpdG1hcCwgd2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMgfSA9IGUuZGF0YTsKICAgICAgY29uc3QgdHJhbnNwYXJlbnRCYXNlNjQgPSBnZXRUcmFuc3B
1hcmVudEJsb2JGb3IoCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0LAogICAgICAgIGRhdGFVUkxPcHRpb25zCiAgICAgICk7CiAgICAgIGNvbnN0IG9mZnNjcmVlbiA9IG5ldyBPZmZzY3JlZW5DYW52YXMod2lkdGgsIGhlaWdodCk7CiAgICAgIGNvbnN0IGN0eCA9IG9mZnNjcmVlbi5nZXRDb250ZXh0KCIyZCIpOwogICAgICBjdHguZHJhd0ltYWdlKGJpdG1hcCwgMCwgMCk7CiAgICAgIGJpdG1hcC5jbG9zZSgpOwogICAgICBjb25zdCBibG9iID0gYXdhaXQgb2Zmc2NyZWVuLmNvbnZlcnRUb0Jsb2IoZGF0YVVSTE9wdGlvbnMpOwogICAgICBjb25zdCB0eXBlID0gYmxvYi50eXBlOwogICAgICBjb25zdCBhcnJheUJ1ZmZlciA9IGF3YWl0IGJsb2IuYXJyYXlCdWZmZXIoKTsKICAgICAgY29uc3QgYmFzZTY0ID0gZW5jb2RlKGFycmF5QnVmZmVyKTsKICAgICAgaWYgKCFsYXN0QmxvYk1hcC5oYXMoaWQpICYmIGF3YWl0IHRyYW5zcGFyZW50QmFzZTY0ID09PSBiYXNlNjQpIHsKICAgICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICAgICAgcmV0dXJuIHdvcmtlci5wb3N0TWVzc2FnZSh7IGlkIH0pOwogICAgICB9CiAgICAgIGlmIChsYXN0QmxvYk1hcC5nZXQoaWQpID09PSBiYXNlNjQpCiAgICAgICAgcmV0dXJuIHdvcmtlci5wb3N0TWVzc2FnZSh7IGlkIH0pOwogICAgICB3b3JrZXIucG9zdE1lc3NhZ2UoewogICAgICAgIGlkLAogICAgICAgIHR5cGUsCiAgICAgICAgYmFzZTY0LAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodAogICAgICB9KTsKICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuIHdvcmtlci5wb3N0TWVzc2FnZSh7IGlkOiBlLmRhdGEuaWQgfSk7CiAgICB9CiAgfTsKfSkoKTsKLy8jIHNvdXJjZU1hcHBpbmdVUkw9aW1hZ2UtYml0bWFwLWRhdGEtdXJsLXdvcmtlci1CWjFyN1JKRC5qcy5tYXAK",$t=e=>Uint8Array.from(atob(e),e=>e.charCodeAt(0)),qt="undefined"!==typeof window&&window.Blob&&new Blob([$t(Qt)],{type:"text/javascript;charset=utf-8"});function en(e){let t;try{if(t=qt&&(window.URL||window.webkitURL).createObjectURL(qt),!t)throw"";const n=new Worker(t,{name:null==e?void 0:e.name});return n.addEventListener("error",()=>{(window.URL||window.webkitURL).revokeObjectURL(t)}),n}catch(n){return new Worker("data:text/javascript;base64,"+Qt,{name:null==e?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}class tn{constructor(e){c(this,"pendingCanvasMutations",new Map),c(this,"rafStamps",{latestId:0,invokeId:null}),c(this,"mirror"),c(this,"mutationCb"),c(this,"resetObservers"),c(this,"frozen",!1),c(this,"locked",!1),c(this,"processMutation",(e,t)=>{const n=this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId;!n&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)});const{sampling:t="all",win:n,blockClass:r,blockSelector:o,recordCanvas:s,dataURLOptions:i}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,s&&"all"===t&&this.initCanvasMutationObserver(n,r,o),s&&"number"===typeof t&&this.initCanvasFPSObserver(t,n,r,o,{dataURLOptions:i})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(e,t,n,r,o){const s=Pt(t,n,r,!0),i=new Map,a=new en;a.onmessage=e=>{const{id:t}=e.data;if(i.set(t,!1),!("base64"in e.data))return;const{base64:n,type:r,width:o,height:s}=e.data;this.mutationCb({id:t,type:Je["2D"],commands:[{property:"clearRect",args:[0,0,o,s]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:n}],type:r}]},0,0]}]})};const c=1e3/e;let l,d=0;const u=()=>{const e=[];return t.document.querySelectorAll("canvas").forEach(t=>{Me(t,n,r,!0)||e.push(t)}),e},h=e=>{d&&e-d<c||(d=e,u().forEach(async e=>{var t;const n=this.mirror.getId(e);if(i.get(n))return;if(0===e.width||0===e.height)return;if(i.set(n,!0),["webgl","webgl2"].includes(e.__context)){const n=e.getContext(e.__context);!1===(null==(t=null==n?void 0:n.getContextAttributes())?void 0:t.preserveDrawingBuffer)&&n.clear(n.COLOR_BUFFER_BIT)}const r=await createImageBitmap(e);a.postMessage({id:n,bitmap:r,width:e.width,height:e.height,dataURLOptions:o.dataURLOptions},[r])})),l=requestAnimationFrame(h)};l=requestAnimationFrame(h),this.resetObservers=()=>{s(),cancelAnimationFrame(l)}}initCanvasMutationObserver(e,t,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const r=Pt(e,t,n,!1),o=Ht(this.processMutation.bind(this),e,t,n),s=Kt(this.processMutation.bind(this),e,t,n,this.mirror);this.resetObservers=()=>{r(),o(),s()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const e=t=>{this.rafStamps.latestId=t,requestAnimationFrame(e)};requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{const n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;const n=this.pendingCanvasMutations.get(e);if(!n||-1===t)return;const r=n.map(e=>{const{type:t,...n}=e;return n}),{type:o}=n[0];this.mutationCb({id:t,type:o,commands:r}),this.pendingCanvasMutations.delete(e)}}class nn{constructor(e){c(this,"trackedLinkElements",new WeakSet),c(this,"mutationCb"),c(this,"adoptedStyleSheetCb"),c(this,"styleMirror",new Ze),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;const n={id:t,styleIds:[]},r=[];for(const o of e){let e;this.styleMirror.has(o)?e=this.styleMirror.getId(o):(e=this.styleMirror.add(o),r.push({styleId:e,rules:Array.from(o.rules||CSSRule,(e,t)=>({rule:b(e),index:t}))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class rn{constructor(){c(this,"nodeMap",new WeakMap),c(this,"active",!1)}inOtherBuffer(e,t){const n=this.nodeMap.get(e);return n&&Array.from(n).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}let on,sn,an,cn=!1;try{if(2!==Array.from([1],e=>2*e)[0]){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=(null==(r=e.contentWindow)?void 0:r.Array.from)||Array.from,document.body.removeChild(e)}}catch(Ko){console.debug("Unable to override Array.from",Ko)}const ln=w();function dn(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:o="rr-block",blockSelector:s=null,ignoreClass:i="rr-ignore",ignoreSelector:a=null,maskTextClass:c="rr-mask",maskTextSelector:l=null,inlineStylesheet:d=!0,maskAllInputs:u,maskInputOptions:h,slimDOMOptions:p,maskInputFn:m,maskTextFn:f,hooks:g,packFn:y,sampling:I={},dataURLOptions:b={}
vendor: 4,830 bytes, line 1
1,mousemoveWait:C,recordDOM:v=!0,recordCanvas:S=!1,recordCrossOriginIframes:k=!1,recordAfter:w=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:M=!1,collectFonts:A=!1,inlineImages:N=!1,plugins:T,keepIframeSrcFn:E=()=>!1,ignoreCSSAttributes:R=new Set([]),errorHandler:O}=e;at(O);const x=!k||window.parent===window;let L=!1;if(!x)try{window.parent.document&&(L=!1)}catch(j){L=!0}if(x&&!t)throw new Error("emit function is required");if(!x&&!L)return()=>{};void 0!==C&&void 0===I.mousemove&&(I.mousemove=C),ln.reset();const D=!0===u?{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,password:!0}:void 0!==h?h:{password:!0},F=!0===p||"all"===p?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===p,headMetaDescKeywords:"all"===p,headTitleMutations:"all"===p}:p||{};let W;Re();let G=0;const Y=e=>{for(const t of T||[])t.eventProcessor&&(e=t.eventProcessor(e));return y&&!L&&(e=y(e)),e};on=(e,o)=>{var s;const i=e;if(i.timestamp=Ce(),!(null==(s=dt[0])?void 0:s.isFrozen())||i.type===Xe.FullSnapshot||i.type===Xe.IncrementalSnapshot&&i.data.source===He.Mutation||dt.forEach(e=>e.unfreeze()),x)null==t||t(Y(i),o);else if(L){const e={type:"rrweb",event:Y(i),origin:window.location.origin,isCheckout:o};window.parent.postMessage(e,"*")}if(i.type===Xe.FullSnapshot)W=i,G=0;else if(i.type===Xe.IncrementalSnapshot){if(i.data.source===He.Mutation&&i.data.isAttachIframe)return;G++;const e=r&&G>=r,t=n&&i.timestamp-W.timestamp>n;(e||t)&&sn(!0)}};const B=e=>{on({type:Xe.IncrementalSnapshot,data:{source:He.Mutation,...e}})},Z=e=>on({type:Xe.IncrementalSnapshot,data:{source:He.Scroll,...e}}),V=e=>on({type:Xe.IncrementalSnapshot,data:{source:He.CanvasMutation,...e}}),z=e=>on({type:Xe.IncrementalSnapshot,data:{source:He.AdoptedStyleSheet,...e}}),_=new nn({mutationCb:B,adoptedStyleSheetCb:z}),U=new Dt({mirror:ln,mutationCb:B,stylesheetManager:_,recordCrossOriginIframes:k,wrappedEmit:on});for(const J of T||[])J.getMirror&&J.getMirror({nodeMirror:ln,crossOriginIframeMirror:U.crossOriginIframeMirror,crossOriginIframeStyleMirror:U.crossOriginIframeStyleMirror});const X=new rn;an=new tn({recordCanvas:S,mutationCb:V,win:window,blockClass:o,blockSelector:s,mirror:ln,sampling:I.canvas,dataURLOptions:b});const H=new Ft({mutationCb:B,scrollCb:Z,bypassOptions:{blockClass:o,blockSelector:s,maskTextClass:c,maskTextSelector:l,inlineStylesheet:d,maskInputOptions:D,dataURLOptions:b,maskTextFn:f,maskInputFn:m,recordCanvas:S,inlineImages:N,sampling:I,slimDOMOptions:F,iframeManager:U,stylesheetManager:_,canvasManager:an,keepIframeSrcFn:E,processedNodeManager:X},mirror:ln});sn=(e=!1)=>{if(!v)return;on({type:Xe.Meta,data:{href:window.location.href,width:ke(),height:Se()}},e),_.reset(),H.init(),dt.forEach(e=>e.lock());const t=ue(document,{mirror:ln,blockClass:o,blockSelector:s,maskTextClass:c,maskTextSelector:l,inlineStylesheet:d,maskAllInputs:D,maskTextFn:f,slimDOM:F,dataURLOptions:b,recordCanvas:S,inlineImages:N,onSerialize:e=>{Le(e,ln)&&U.addIframe(e),De(e,ln)&&_.trackLinkElement(e),We(e)&&H.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{U.attachIframe(e,t),H.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{_.attachLinkElement(e,t)},keepIframeSrcFn:E});if(!t)return console.warn("Failed to snapshot the document");on({type:Xe.FullSnapshot,data:{node:t,initialOffset:ve(window)}},e),dt.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&_.adoptStyleSheets(document.adoptedStyleSheets,ln.getId(document))};try{const e=[],t=e=>{var t;return lt(Rt)({mutationCb:B,mousemoveCb:(e,t)=>on({type:Xe.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>on({type:Xe.IncrementalSnapshot,data:{source:He.MouseInteraction,...e}}),scrollCb:Z,viewportResizeCb:e=>on({type:Xe.IncrementalSnapshot,data:{source:He.ViewportResize,...e}}),inputCb:e=>on({type:Xe.IncrementalSnapshot,data:{source:He.Input,...e}}),mediaInteractionCb:e=>on({type:Xe.IncrementalSnapshot,data:{source:He.MediaInteraction,...e}}),styleSheetRuleCb:e=>on({type:Xe.IncrementalSnapshot,data:{source:He.StyleSheetRule,...e}}),styleDeclarationCb:e=>on({type:Xe.IncrementalSnapshot,data:{source:He.StyleDeclaration,...e}}),canvasMutationCb:V,fontCb:e=>on({type:Xe.IncrementalSnapshot,data:{source:He.Font,...e}}),selectionCb:e=>{on({type:Xe.IncrementalSnapshot,data:{source:He.Selection,...e}})},customElementCb:e=>{on({type:Xe.IncrementalSnapshot,data:{source:He.CustomElement,...e}})},blockClass:o,ignoreClass:i,ignoreSelector:a,maskTextClass:c,maskTextSelector:l,maskInputOptions:D,inlineStylesheet:d,sampling:I,recordDOM:v,recordCanvas:S,inlineImages:N,userTriggeredOnInput:M,c
1ollectFonts:A,doc:e,maskInputFn:m,maskTextFn:f,keepIframeSrcFn:E,blockSelector:s,slimDOMOptions:F,dataURLOptions:b,mirror:ln,iframeManager:U,stylesheetManager:_,shadowDomManager:H,processedNodeManager:X,canvasManager:an,ignoreCSSAttributes:R,plugins:(null==(t=null==T?void 0:T.filter(e=>e.observer))?void 0:t.map(e=>({observer:e.observer,options:e.options,callback:t=>on({type:Xe.Plugin,data:{plugin:e.name,payload:t}})})))||[]},g)};U.addLoadListener(n=>{try{e.push(t(n.contentDocument))}catch(r){console.warn(r)}});const n=()=>{sn(),e.push(t(document)),cn=!0};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(me("DOMContentLoaded",()=>{on({type:Xe.DomContentLoaded,data:{}}),"DOMContentLoaded"===w&&n()})),e.push(me("load",()=>{on({type:Xe.Load,data:{}}),"load"===w&&n()},window))),()=>{e.forEach(e=>e()),X.destroy(),cn=!1,ct()}}catch(P){console.warn(P)}}dn.addCustomEvent=(e,t)=>{if(!cn)throw new Error("please add custom event after start recording");on({type:Xe.Custom,data:{tag:e,payload:t}})},dn.freezePage=()=>{dt.forEach(e=>e.freeze())},dn.takeFullSnapshot=e=>{if(!cn)throw new Error("please take full snapshot after start recording");sn(e)},dn.mirror=ln;Object.defineProperty,Object.defineProperty;function un(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(e){e(n)}),(r=e.get("*"))&&r.slice().map(function(e){e(t,n)})}}}Symbol.toStringTag;var hn;!function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(hn||(hn={}));const{addCustomEvent:pn}=dn,{freezePage:mn}=dn;var fn,gn=Object.defineProperty,yn=(e,t,n)=>t in e?gn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,In=(e,t,n)=>(yn(e,"symbol"!==typeof t?t+"":t,n),n),bn=Object.defineProperty,Cn=(e,t,n)=>t in e?bn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,vn=(e,t,n)=>(Cn(e,"symbol"!==typeof t?t+"":t,n),n),Sn=Object.defineProperty,kn=(e,t,n)=>t in e?Sn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wn=(e,t,n)=>(kn(e,"symbol"!==typeof t?t+"":t,n),n);function Mn(e){const t=null==e?void 0:e.host;return Boolean((null==t?void 0:t.shadowRoot)===e)}class An{constructor(){wn(this,"idNodeMap",new Map),wn(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;const n=null==(t=this.getMeta(e))?void 0:t.id;return n??-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Nn(){return new An}const Tn=-2;function En(e,t,n){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!n&&En(e.parentNode,t,n);for(let r=e.classList.length;r--;){const n=e.classList[r];if(t.test(n))return!0}return!!n&&En(e.parentNode,t,n)}function Rn(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const On="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 xn={map:{},getId(){return console.error(On),-1},getNode(){return console.error(On),null},removeNodeFromMap(){console.error(On)},has(){return console.error(On),!1},reset(){console.error(On)}};function Ln(e,t,n={}){let r=null,o=0;return function(...s){const i=Date.now();o||!1!==n.leading||(o=i);const a=t-(i-o),c=this;a<=0||a>t?(r&&(clearTimeout(r),r=null),o=i,e.apply(c,s)):r||!1===n.trailing||(r=setTimeout(()=>{o=!1===n.leading?0:Date.now(),r=null,e.apply(c,s)},a))}}function Dn(e,t,n,r,o=window){const s=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(e){setTimeout(()=>{n.set.call(this,e)},0),s&&s.set&&s.set.call(this,e)}}),()=>Dn(e,t,s||{},!0)}function Fn(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],o=n(r);return"function"===typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch{return()=>{}}}"undefined"!==typeof window&&window.Proxy&&window.Reflect&&(xn=new Proxy(xn,{get(e,t,n){return"map"===t&&console.error(On),Reflect.get(e,t,n)}}));let Wn=Date.now;function Gn(e){var t,n,r,o,s,i;const a=e.document;return{left:a.scrollingElement?a.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:(null==a?void 0:a.documentElement.scrollLeft)||(null==(n=null==(t=null==a?void 0:a.body)?void 0:t.parentElement)?void 0:n.scrollLeft)||(null==(r=null==a?void 0:a.body)?void 0:r.scrollLeft)||0,top:a.scrollingElement?a.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==a?void 0:a.documentElement.scrollTop)||(null==(s=null==(o=null==a?void 0:a.body)?void 0:o.parentElement)?void 0:s.scrollTop)||(null==(i=null==a?void 0:a.body)?void 0:i.scrollTop)||0}}function Yn(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Bn(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Zn(e){if(!e)return null;const t=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;return t}function Vn(e,t,n,r){if(!e)return!1;const o=Zn(e);if(!o)return!1;try{if("string"===typeof t){if(o.classList.contains(t))return!0;
1if(r&&null!==o.closest("."+t))return!0}else if(En(o,t,r))return!0}catch(s){}if(n){if(o.matches(n))return!0;if(r&&null!==o.closest(n))return!0}return!1}function zn(e,t){return-1!==t.getId(e)}function _n(e,t,n){return!("TITLE"!==e.tagName||!n.headTitleMutations)||t.getId(e)===Tn}function Un(e,t){if(Mn(e))return!1;const n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||Un(e.parentNode,t))}function Xn(e){return Boolean(e.changedTouches)}function Hn(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})}function jn(e){const t={},n=(e,n)=>{const r={value:e,parent:n,children:[]};return t[e.node.id]=r,r},r=[];for(const o of e){const{nextId:e,parentId:s}=o;if(e&&e in t){const s=t[e];if(s.parent){const e=s.parent.children.indexOf(s);s.parent.children.splice(e,0,n(o,s.parent))}else{const e=r.indexOf(s);r.splice(e,0,n(o,null))}continue}if(s in t){const e=t[s];e.children.push(n(o,e));continue}r.push(n(o,null))}return r}function Pn(e,t){t(e.value);for(let n=e.children.length-1;n>=0;n--)Pn(e.children[n],t)}function Jn(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function Kn(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function Qn(e,t){var n,r;const o=null==(r=null==(n=e.ownerDocument)?void 0:n.defaultView)?void 0:r.frameElement;if(!o||o===t)return{x:0,y:0,relativeScale:1,absoluteScale:1};const s=o.getBoundingClientRect(),i=Qn(o,t),a=s.height/o.clientHeight;return{x:s.x*i.relativeScale+i.x,y:s.y*i.relativeScale+i.y,relativeScale:a,absoluteScale:i.absoluteScale*a}}function $n(e){return Boolean(null==e?void 0:e.shadowRoot)}function qn(e,t){const n=e[t[0]];return 1===t.length?n:qn(n.cssRules[t[1]].cssRules,t.slice(2))}function er(e){const t=[...e],n=t.pop();return{positions:t,index:n}}function tr(e){const t=new Set,n=[];for(let r=e.length;r--;){const o=e[r];t.has(o.id)||(n.push(o),t.add(o.id))}return n}/[1-9][0-9]{12}/.test(Date.now().toString())||(Wn=()=>(new Date).getTime());class nr{constructor(){vn(this,"id",1),vn(this,"styleIDMap",new WeakMap),vn(this,"idStyleMap",new Map)}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function rr(e){var t,n;let r=null;return(null==(n=null==(t=e.getRootNode)?void 0:t.call(e))?void 0:n.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(r=e.getRootNode().host),r}function or(e){let t,n=e;while(t=rr(n))n=t;return n}function sr(e){const t=e.ownerDocument;if(!t)return!1;const n=or(e);return t.contains(n)}function ir(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||sr(e))}const ar=Object.freeze(Object.defineProperty({__proto__:null,StyleSheetMirror:nr,get _mirror(){return xn},closestElementOfNode:Zn,getBaseDimension:Qn,getNestedRule:qn,getPositionsAndIndex:er,getRootShadowHost:or,getShadowHost:rr,getWindowHeight:Yn,getWindowScroll:Gn,getWindowWidth:Bn,hasShadowRoot:$n,hookSetter:Dn,inDom:ir,isAncestorRemoved:Un,isBlocked:Vn,isIgnored:_n,isSerialized:zn,isSerializedIframe:Jn,isSerializedStylesheet:Kn,iterateResolveTree:Pn,legacy_isTouchEvent:Xn,get nowTimestamp(){return Wn},on:Rn,patch:Fn,polyfill:Hn,queueToResolveTrees:jn,shadowHostInDom:sr,throttle:Ln,uniqueTextMutations:tr},Symbol.toStringTag,{value:"Module"}));for(var cr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lr="undefined"===typeof Uint8Array?[]:new Uint8Array(256),dr=0;dr<cr.length;dr++)lr[cr.charCodeAt(dr)]=dr;const ur="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSA
1yKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpCiAgICAgICAgcmV0dXJuIHRyYW5zcGFyZW50QmxvYk1hcC5nZXQoaWQpOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIHRyYW5zcGFyZW50QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICAgIHJldHVybiBiYXNlNjQ7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gIiI7CiAgICB9CiAgfQogIGNvbnN0IHdvcmtlciA9IHNlbGY7CiAgd29ya2VyLm9ubWVzc2FnZSA9IGFzeW5jIGZ1bmN0aW9uKGUpIHsKICAgIGlmICgiT2Zmc2NyZWVuQ2FudmFzIiBpbiBnbG9iYWxUaGlzKSB7CiAgICAgIGNvbnN0IHsgaWQsIGJpdG1hcCwgd2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMgfSA9IGUuZGF0YTsKICAgICAgY29uc3QgdHJhbnNwYXJlbnRCYXNlNjQgPSBnZXRUcmFuc3B
1hcmVudEJsb2JGb3IoCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0LAogICAgICAgIGRhdGFVUkxPcHRpb25zCiAgICAgICk7CiAgICAgIGNvbnN0IG9mZnNjcmVlbiA9IG5ldyBPZmZzY3JlZW5DYW52YXMod2lkdGgsIGhlaWdodCk7CiAgICAgIGNvbnN0IGN0eCA9IG9mZnNjcmVlbi5nZXRDb250ZXh0KCIyZCIpOwogICAgICBjdHguZHJhd0ltYWdlKGJpdG1hcCwgMCwgMCk7CiAgICAgIGJpdG1hcC5jbG9zZSgpOwogICAgICBjb25zdCBibG9iID0gYXdhaXQgb2Zmc2NyZWVuLmNvbnZlcnRUb0Jsb2IoZGF0YVVSTE9wdGlvbnMpOwogICAgICBjb25zdCB0eXBlID0gYmxvYi50eXBlOwogICAgICBjb25zdCBhcnJheUJ1ZmZlciA9IGF3YWl0IGJsb2IuYXJyYXlCdWZmZXIoKTsKICAgICAgY29uc3QgYmFzZTY0ID0gZW5jb2RlKGFycmF5QnVmZmVyKTsKICAgICAgaWYgKCFsYXN0QmxvYk1hcC5oYXMoaWQpICYmIGF3YWl0IHRyYW5zcGFyZW50QmFzZTY0ID09PSBiYXNlNjQpIHsKICAgICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICAgICAgcmV0dXJuIHdvcmtlci5wb3N0TWVzc2FnZSh7IGlkIH0pOwogICAgICB9CiAgICAgIGlmIChsYXN0QmxvYk1hcC5nZXQoaWQpID09PSBiYXNlNjQpCiAgICAgICAgcmV0dXJuIHdvcmtlci5wb3N0TWVzc2FnZSh7IGlkIH0pOwogICAgICB3b3JrZXIucG9zdE1lc3NhZ2UoewogICAgICAgIGlkLAogICAgICAgIHR5cGUsCiAgICAgICAgYmFzZTY0LAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodAogICAgICB9KTsKICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuIHdvcmtlci5wb3N0TWVzc2FnZSh7IGlkOiBlLmRhdGEuaWQgfSk7CiAgICB9CiAgfTsKfSkoKTsKLy8jIHNvdXJjZU1hcHBpbmdVUkw9aW1hZ2UtYml0bWFwLWRhdGEtdXJsLXdvcmtlci1CWjFyN1JKRC5qcy5tYXAK",hr=e=>Uint8Array.from(atob(e),e=>e.charCodeAt(0));"undefined"!==typeof window&&window.Blob&&new Blob([hr(ur)],{type:"text/javascript;charset=utf-8"});try{if(2!==Array.from([1],e=>2*e)[0]){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=(null==(fn=e.contentWindow)?void 0:fn.Array.from)||Array.from,document.body.removeChild(e)}}catch(Ko){console.debug("Unable to override Array.from",Ko)}var pr;Nn(),function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(pr||(pr={}));class mr{constructor(e){In(this,"fileName"),In(this,"functionName"),In(this,"lineNumber"),In(this,"columnNumber"),this.fileName=e.fileName||"",this.functionName=e.functionName||"",this.lineNumber=e.lineNumber,this.columnNumber=e.columnNumber}toString(){const e=this.lineNumber||"",t=this.columnNumber||"";return this.functionName?`${this.functionName} (${this.fileName}:${e}:${t})`:`${this.fileName}:${e}:${t}`}}const fr=/(^|@)\S+:\d+/,gr=/^\s*at .*(\S+:\d+|\(native\))/m,yr=/^(eval@)?(\[native code])?$/,Ir={parse:function(e){return e?"undefined"!==typeof e.stacktrace||"undefined"!==typeof e["opera#sourceloc"]?this.parseOpera(e):e.stack&&e.stack.match(gr)?this.parseV8OrIE(e):e.stack?this.parseFFOrSafari(e):(console.warn("[console-record-plugin]: Failed to parse error object:",e),[]):[]},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];const t=/(.+?)(?::(\d+))?(?::(\d+))?$/,n=t.exec(e.replace(/[()]/g,""));if(!n)throw new Error(`Cannot parse given url: ${e}`);return[n[1],n[2]||void 0,n[3]||void 0]},parseV8OrIE:function(e){const t=e.stack.split("\n").filter(function(e){return!!e.match(gr)},this);return t.map(function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));let t=e.replace(/^\s+/,"").replace(/\(eval code/g,"(");const n=t.match(/ (\((.+):(\d+):(\d+)\)$)/);t=n?t.replace(n[0],""):t;const r=t.split(/\s+/).slice(1),o=this.extractLocation(n?n[1]:r.pop()),s=r.join(" ")||void 0,i=["eval","<anonymous>"].indexOf(o[0])>-1?void 0:o[0];return new mr({functionName:s,fileName:i,lineNumber:o[1],columnNumber:o[2]})},this)},parseFFOrSafari:function(e){const t=e.stack.split("\n").filter(function(e){return!e.match(yr)},this);return t.map(function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===e.indexOf("@")&&-1===e.indexOf(":"))return new mr({functionName:e});{const t=/((.*".+"[^@]*)?[^@]*)(?:@)/,n=e.match(t),r=n&&n[1]?n[1]:void 0,o=this.extractLocation(e.replace(t,""));return new mr({functionName:r,fileName:o[0],lineNumber:o[1],columnNumber:o[2]})}},this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){const t=/Line (\d+).*script (?:in )?(\S+)/i,n=e.message.split("\n"),r=[];for(let o=2,s=n.length;o<s;o+=2){const e=t.exec(n[o]);e&&r.push(new mr({fileName:e[2],lineNumber:parseFloat(e[1])}))}return r},parseOpera10:function(e){const t=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,n=e.stacktrace.split("\n"),r=[];for(let o=0,s=n.length;o<s;o+=2){const e=t.exec(n[o]);e&&r.push(new mr({functionName:e[3]||void 0,fileName:e[2],lineNumber:parseFloat(e[1])}))}return r},parseOpera11:function(e){const t=e.stack.split("\n").filter(function(e){return!!e.match(fr)&&!e.match(/^Error created at/)},this);return t.map(function(e){const t=e.split("@"),n=this.extractLocation(t.pop()),r=t.shift()||"",o=r.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new mr({functionName:o,fileName:n[0],lineNumber:n[1],columnNumber:n[2]})},this)}};function br(e){if(!e||!e.outerHTML)return"";let t="";while(e.parentElement){let n=e.localName;if(!n)break;n=n.toLowerCase();const r=e.parentElement,o=[];if(r.children&&r.children.length>0)for(let e=0;e<r.children.length;e++){const t=r.children[e];t.localName&&t.localName.toLowerCase&&t.localName.toLowerCase()===n&&o.push(t)}o.length>1&&(n+=`:eq(${o.indexOf(e)})`),t=n+(t?">"+t:""),e=r}return t}function Cr(e){return"[object Object]"===Object.prototype.toString.call(e)}function vr(e,t){if(0===t)return!0;const n=Object.keys(e);for(const r of n)if(Cr(e[r])&&vr(e[r],t-1))return!0;return!1}function Sr(e,t){const n={numOfKeysLimit:50,depthOfLimit:4};Object.assign(n,t);const r=[],o=[];return JSON.stringify(e,function(e,t){if(r.length>0){const n=r.indexOf(this);
1~n?r.splice(n+1):r.push(this),~n?o.splice(n,1/0,e):o.push(e),~r.indexOf(t)&&(t=r[0]===t?"[Circular ~]":"[Circular ~."+o.slice(0,r.indexOf(t)).join(".")+"]")}else r.push(t);if(null===t)return t;if(void 0===t)return"undefined";if(s(t))return i(t);if("bigint"===typeof t)return t.toString()+"n";if(t instanceof Event){const e={};for(const n in t){const r=t[n];Array.isArray(r)?e[n]=br(r.length?r[0]:null):e[n]=r}return e}return t instanceof Node?t instanceof HTMLElement?t?t.outerHTML:"":t.nodeName:t instanceof Error?t.stack?t.stack+"\nEnd of stack for Error object":t.name+": "+t.message:t});function s(e){return!!(Cr(e)&&Object.keys(e).length>n.numOfKeysLimit)||("function"===typeof e||!(!Cr(e)||!vr(e,n.depthOfLimit)))}function i(e){let t=e.toString();return n.stringLengthLimit&&t.length>n.stringLengthLimit&&(t=`${t.slice(0,n.stringLengthLimit)}...`),t}}const kr={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],lengthThreshold:1e3,logger:"console"};function wr(e,t,n){const r=n?Object.assign({},kr,n):kr,o=r.logger;if(!o)return()=>{};let s;s="string"===typeof o?t[o]:o;let i=0,a=!1;const c=[];if(r.level.includes("error")){const n=t=>{const n=t.message,o=t.error,s=Ir.parse(o).map(e=>e.toString()),i=[Sr(n,r.stringifyOptions)];e({level:"error",trace:s,payload:i})};t.addEventListener("error",n),c.push(()=>{t.removeEventListener("error",n)});const o=t=>{let n,o;t.reason instanceof Error?(n=t.reason,o=[Sr(`Uncaught (in promise) ${n.name}: ${n.message}`,r.stringifyOptions)]):(n=new Error,o=[Sr("Uncaught (in promise)",r.stringifyOptions),Sr(t.reason,r.stringifyOptions)]);const s=Ir.parse(n).map(e=>e.toString());e({level:"error",trace:s,payload:o})};t.addEventListener("unhandledrejection",o),c.push(()=>{t.removeEventListener("unhandledrejection",o)})}for(const d of r.level)c.push(l(s,d));return()=>{c.forEach(e=>e())};function l(t,n){return t[n]?ar.patch(t,n,t=>(...o)=>{if(t.apply(this,o),!a){a=!0;try{const t=Ir.parse(new Error).map(e=>e.toString()).splice(1),s=o.map(e=>Sr(e,r.stringifyOptions));i++,i<r.lengthThreshold?e({level:n,trace:t,payload:s}):i===r.lengthThreshold&&e({level:"warn",trace:[],payload:[Sr("The number of log records reached the threshold.")]})}catch(s){t("rrweb logger error:",s,...o)}finally{a=!1}
1}}):()=>{}}}const Mr="rrweb/console@1",Ar=e=>({name:Mr,observer:wr,options:e});n(94938),n(33483),n(80777);function Nr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Tr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Er(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Dr(r.key),r)}}function Rr(e,t,n){return t&&Er(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Or(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Wr(e))||t){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,i=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,s=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw s}}}}function xr(){return xr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xr.apply(null,arguments)}function Lr(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Dr(e){var t=Lr(e,"string");return"symbol"==typeof t?t:t+""}function Fr(e){return Fr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fr(e)}function Wr(e,t){if(e){if("string"==typeof e)return Nr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nr(e,t):void 0}}var Gr=function(e){return 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}(Gr||{}),Yr=function(e){return 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}(Yr||{}),Br=function(e){return 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}(Br||{}),Zr=function(e){return e[e["Mouse"]=0]="Mouse",e[e["Pen"]=1]="Pen",e[e["Touch"]=2]="Touch",e}(Zr||{}),Vr=function(e){return e[e["2D"]=0]="2D",e[e["WebGL"]=1]="WebGL",e[e["WebGL2"]=2]="WebGL2",e}(Vr||{}),zr=function(e){return e[e["Play"]=0]="Play",e[e["Pause"]=1]="Pause",e[e["Seeked"]=2]="Seeked",e[e["VolumeChange"]=3]="VolumeChange",e[e["RateChange"]=4]="RateChange",e}(zr||{}),_r=function(e){return e["Start"]="start",e["Pause"]="pause",e["Resume"]="resume",e["Resize"]="resize",e["Finish"]="finish",e["FullsnapshotRebuilded"]="fullsnapshot-rebuilded",e["LoadStylesheetStart"]="load-stylesheet-start",e["LoadStylesheetEnd"]="load-stylesheet-end",e["SkipStart"]="skip-start",e["SkipEnd"]="skip-end",e["MouseInteraction"]="mouse-interaction",e["EventCast"]="event-cast",e["CustomEvent"]="custom-event",e["Flush"]="flush",e["StateChange"]="state-change",e["PlayBack"]="play-back",e["Destroy"]="destroy",e}(_r||{}),Ur=Object.defineProperty,Xr=function(e,t,n){return t in e?Ur(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Hr=function(e,t,n){return Xr(e,"symbol"!==Fr(t)?t+"":t,n),n},jr=function(e){return e[e["Document"]=0]="Document",e[e["DocumentType"]=1]="DocumentType",e[e["Element"]=2]="Element",e[e["Text"]=3]="Text",e[e["CDATA"]=4]="CDATA",e[e["Comment"]=5]="Comment",e}(jr||{});
1function Pr(e){return e.nodeType===e.ELEMENT_NODE}function Jr(e){var t=null==e?void 0:e.host;return Boolean((null==t?void 0:t.shadowRoot)===e)}function Kr(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function Qr(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function $r(e){var t=e.cssText;if(t.split('"').length<3)return t;var n=["@import","url(".concat(JSON.stringify(e.href),")")];return""===e.layerName?n.push("layer"):e.layerName&&n.push("layer(".concat(e.layerName,")")),e.supportsText&&n.push("supports(".concat(e.supportsText,")")),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function qr(e){try{var t=e.rules||e.cssRules;return t?Qr(Array.from(t,eo).join("")):null}catch(n){return null}}function eo(e){var t;if(no(e))try{t=qr(e.styleSheet)||$r(e)}catch(n){}else if(ro(e)&&e.selectorText.includes(":"))return to(e.cssText);return t||e.cssText}function to(e){var t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function no(e){return"styleSheet"in e}function ro(e){return"selectorText"in e}var oo=function(){function e(){Tr(this,e),Hr(this,"idNodeMap",new Map),Hr(this,"nodeMetaMap",new WeakMap)}return Rr(e,[{key:"getId",value:function(e){var t;if(!e)return-1;var n=null==(t=this.getMeta(e))?void 0:t.id;return null!==n&&void 0!==n?n:-1}},{key:"getNode",value:function(e){return this.idNodeMap.get(e)||null}},{key:"getIds",value:function(){return Array.from(this.idNodeMap.keys())}},{key:"getMeta",value:function(e){return this.nodeMetaMap.get(e)||null}},{key:"removeNodeFromMap",value:function(e){var t=this,n=this.getId(e);this.idNodeMap["delete"](n),e.childNodes&&e.childNodes.forEach(function(e){return t.removeNodeFromMap(e)})}},{key:"has",value:function(e){return this.idNodeMap.has(e)}},{key:"hasNode",value:function(e){return this.nodeMetaMap.has(e)}},{key:"add",value:function(e,t){var n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}},{key:"replace",value:function(e,t){var n=this.getNode(e);if(n){var r=this.nodeMetaMap.get(n);r&&this.nodeMetaMap.set(t,r)}this.idNodeMap.set(e,t)}},{key:"reset",value:function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}])}();function so(e){var t=e.element,n=e.maskInputOptions,r=e.tagName,o=e.type,s=e.value,i=e.maskInputFn,a=s||"",c=o&&io(o);return(n[r.toLowerCase()]||c&&n[c])&&(a=i?i(a,t):"*".repeat(a.length)),a}function io(e){return e.toLowerCase()}var ao="__rrweb_original__";function co(e){var t=e.getContext("2d");if(!t)return!0;for(var n=50,r=0;r<e.width;r+=n)for(var o=0;o<e.height;o+=n){var s=t.getImageData,i=ao in s?s[ao]:s,a=new Uint32Array(i.call(t,r,o,Math.min(n,e.width-r),Math.min(n,e.height-o)).data.buffer);if(a.some(function(e){return 0!==e}))return!1}return!0}function lo(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?io(t):null}function uo(e,t){var n,r;try{r=new URL(e,null!==t&&void 0!==t?t:window.location.href)}catch(Ko){return null}var o=/\.([0-9a-z]+)(?:$)/i,s=r.pathname.match(o);return null!==(n=null==s?void 0:s[1])&&void 0!==n?n:null}var ho,po,mo=1,fo=new RegExp("[^a-z0-9-_:]"),go=-2;function yo(){return mo++}function Io(e){if(e instanceof HTMLFormElement)return"form";var t=io(e.tagName);return fo.test(t)?"div":t}function bo(e){var t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}var Co=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,vo=/^(?:[a-z+]+:)?\/\//i,So=/^www\..*/i,ko=/^(data:)([^,]*),(.*)/i;function wo(e,t){return(e||"").replace(Co,function(e,n,r,o,s,i){var a=r||s||i,c=n||o||"";if(!a)return e;if(vo.test(a)||So.test(a))return"url(".concat(c).concat(a).concat(c,")");if(ko.test(a))return"url(".concat(c).concat(a).concat(c,")");if("/"===a[0])return"url(".concat(c).concat(bo(t)+a).concat(c,")");var l=t.split("/"),d=a.split("/");l.pop();var u,h=Or(d);try{for(h.s();!(u=h.n()).done;){var p=u.value;"."!==p&&(".."===p?l.pop():l.push(p))}}catch(Ko){h.e(Ko)}finally{h.f()}return"url(".concat(c).concat(l.join("/")).concat(c,")")})}var Mo=/^[^ \t\n\r\u000c]+/,Ao=/^[, \t\n\r\u000c]+/;function No(e,t){if(""===t.trim())return t;var n=0;function r(e){var r,o=e.exec(t.substring(n));return o?(r=o[0],n+=r.length,r):""}var o=[];while(1){if(r(Ao),n>=t.length)break;var s=r(Mo);if(","===s.slice(-1))s=Eo(e,s.substring(0,s.length-1)),o.push(s);else{var i="";s=Eo(e,s);var a=!1;while(1){var c=t.charAt(n);if(""===c){o.push((s+i).trim());break}if(a)")"===c&&(a=!1);else{if(","===c){n+=1,o.push((s+i).trim());break}"("===c&&(a=!0)}i+=c,n+=1}}}return o.join(", ")}var To=new WeakMap;function Eo(e,t){return t&&""!==t.trim()?Oo(e,t):t}function Ro(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function Oo(e,t){var n=To.get(e);if(n||(n=e.createElement("a"),To.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function xo(e,t,n,r){return r?"src"===n||"href"===n&&("use"!==t||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?Eo(e,r):"background"!==n||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===n?No(e,r):"style"===n?wo(r,Oo(e)):"object"===t&&"data"===n?Eo(e,r):r:Eo(e,r):r}function Lo(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}
1function Do(e,t,n){try{if("string"===typeof t){if(e.classList.contains(t))return!0}else for(var r=e.classList.length;r--;){var o=e.classList[r];if(t.test(o))return!0}if(n)return e.matches(n)}catch(s){}return!1}function Fo(e,t,n){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!n&&Fo(e.parentNode,t,n);for(var r=e.classList.length;r--;){var o=e.classList[r];if(t.test(o))return!0}return!!n&&Fo(e.parentNode,t,n)}function Wo(e,t,n,r){try{var o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===o)return!1;if("string"===typeof t){if(r){if(o.closest(".".concat(t)))return!0}else if(o.classList.contains(t))return!0}else if(Fo(o,t,r))return!0;if(n)if(r){if(o.closest(n))return!0}else if(o.matches(n))return!0}catch(s){}return!1}function Go(e,t,n){var r=e.contentWindow;if(r){var o,s=!1;try{o=r.document.readyState}catch(c){return}if("complete"===o){var i="about:blank";if(r.location.href!==i||e.src===i||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}else{var a=setTimeout(function(){s||(t(),s=!0)},n);e.addEventListener("load",function(){clearTimeout(a),s=!0,t()})}}}function Yo(e,t,n){var r,o=!1;try{r=e.sheet}catch(i){return}if(!r){var s=setTimeout(function(){o||(t(),o=!0)},n);e.addEventListener("load",function(){clearTimeout(s),o=!0,t()})}}function Bo(e,t){var n=t.doc,r=t.mirror,o=t.blockClass,s=t.blockSelector,i=t.needsMask,a=t.inlineStylesheet,c=t.maskInputOptions,l=void 0===c?{}:c,d=t.maskTextFn,u=t.maskInputFn,h=t.dataURLOptions,p=void 0===h?{}:h,m=t.inlineImages,f=t.recordCanvas,g=t.keepIframeSrcFn,y=t.newlyAddedElement,I=void 0!==y&&y,b=Zo(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:jr.Document,childNodes:[],compatMode:e.compatMode}:{type:jr.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:jr.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:b};case e.ELEMENT_NODE:return zo(e,{doc:n,blockClass:o,blockSelector:s,inlineStylesheet:a,maskInputOptions:l,maskInputFn:u,dataURLOptions:p,inlineImages:m,recordCanvas:f,keepIframeSrcFn:g,newlyAddedElement:I,rootId:b});case e.TEXT_NODE:return Vo(e,{doc:n,needsMask:i,maskTextFn:d,rootId:b});case e.CDATA_SECTION_NODE:return{type:jr.CDATA,textContent:"",rootId:b};case e.COMMENT_NODE:return{type:jr.Comment,textContent:e.textContent||"",rootId:b};default:return!1}}function Zo(e,t){if(t.hasNode(e)){var n=t.getId(e);return 1===n?void 0:n}}function Vo(e,t){var n,r=t.needsMask,o=t.maskTextFn,s=t.rootId,i=e.parentNode&&e.parentNode.tagName,a=e.textContent,c="STYLE"===i||void 0,l="SCRIPT"===i||void 0;if(c&&a){try{e.nextSibling||e.previousSibling||(null==(n=e.parentNode.sheet)?void 0:n.cssRules)&&(a=qr(e.parentNode.sheet))}catch(Ko){console.warn("Cannot get CSS styles from text's parentNode. Error: ".concat(Ko),e)}a=wo(a,Oo(t.doc))}return l&&(a="SCRIPT_PLACEHOLDER"),!c&&!l&&a&&r&&(a=o?o(a,e.parentElement):a.replace(/[\S]/g,"*")),{type:jr.Text,textContent:a||"",isStyle:c,rootId:s}}function zo(e,t){for(var n,r=t.doc,o=t.blockClass,s=t.blockSelector,i=t.
1inlineStylesheet,a=t.maskInputOptions,c=void 0===a?{}:a,l=t.maskInputFn,d=t.dataURLOptions,u=void 0===d?{}:d,h=t.inlineImages,p=t.recordCanvas,m=t.keepIframeSrcFn,f=t.newlyAddedElement,g=void 0!==f&&f,y=t.rootId,I=Do(e,o,s),b=Io(e),C={},v=e.attributes.length,S=0;S<v;S++){var k=e.attributes[S];Lo(b,k.name,k.value)||(C[k.name]=xo(r,b,io(k.name),k.value))}if("link"===b&&i){var w=Array.from(r.styleSheets).find(function(t){return t.href===e.href}),M=null;w&&(M=qr(w)),M&&(delete C.rel,delete C.href,C._cssText=wo(M,w.href))}if("style"===b&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){var A=qr(e.sheet);A&&(C._cssText=wo(A,Oo(r)))}if("input"===b||"textarea"===b||"select"===b){var N=e.value,T=e.checked;"radio"!==C.type&&"checkbox"!==C.type&&"submit"!==C.type&&"button"!==C.type&&N?C.value=so({element:e,type:lo(e),tagName:b,value:N,maskInputOptions:c,maskInputFn:l}):T&&(C.checked=T)}if("option"===b&&(e.selected&&!c["select"]?C.selected=!0:delete C.selected),"canvas"===b&&p)if("2d"===e.__context)co(e)||(C.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!("__context"in e)){var E=e.toDataURL(u.type,u.quality),R=r.createElement("canvas");R.width=e.width,R.height=e.height;var O=R.toDataURL(u.type,u.quality);E!==O&&(C.rr_dataURL=E)}if("img"===b&&h){ho||(ho=r.createElement("canvas"),po=ho.getContext("2d"));var x=e,L=x.currentSrc||x.getAttribute("src")||"<unknown-src>",D=x.crossOrigin,F=function(){x.removeEventListener("load",F);try{ho.width=x.naturalWidth,ho.height=x.naturalHeight,po.drawImage(x,0,0),C.rr_dataURL=ho.toDataURL(u.type,u.quality)}catch(Ko){if("anonymous"!==x.crossOrigin)return x.crossOrigin="anonymous",void(x.complete&&0!==x.naturalWidth?F():x.addEventListener("load",F));console.warn("Cannot inline img src=".concat(L,"! Error: ").concat(Ko))}"anonymous"===x.crossOrigin&&(D?C.crossOrigin=D:x.removeAttribute("crossorigin"))};x.complete&&0!==x.naturalWidth?F():x.addEventListener("load",F)}if("audio"===b||"video"===b){var W=C;W.rr_mediaState=e.paused?"paused":"played",W.rr_mediaCurrentTime=e.currentTime,W.rr_mediaPlaybackRate=e.playbackRate,W.rr_mediaMuted=e.muted,W.rr_mediaLoop=e.loop,W.rr_mediaVolume=e.volume}if(g||(e.scrollLeft&&(C.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(C.rr_scrollTop=e.scrollTop)),I){var G=e.getBoundingClientRect(),Y=G.width,B=G.height;C={class:C["class"],rr_width:"".concat(Y,"px"),rr_height:"".concat(B,"px")}}"iframe"!==b||m(C.src)||(e.contentDocument||(C.rr_src=C.src),delete C.src);try{customElements.get(b)&&(n=!0)}catch(Z){}return{type:jr.Element,tagName:b,attributes:C,childNodes:[],isSVG:Ro(e)||void 0,needBlock:I,rootId:y,isCustom:n}}function _o(e){return void 0===e||null===e?"":e.toLowerCase()}function Uo(e,t){if(t.comment&&e.type===jr.Comment)return!0;if(e.type===jr.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"===typeof e.attributes.href&&"js"===uo(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(_o(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===_o(e.attributes.name)||"icon"===_o(e.attributes.rel)||"apple-touch-icon"===_o(e.attributes.rel)||"shortcut icon"===_o(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&_o(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(_o(e.attributes.property).match(/^(og|twitter|fb):/)||_o(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===_o(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===_o(e.attributes.name)||"googlebot"===_o(e.attributes.name)||"bingbot"===_o(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===_o(e.attributes.name)||"generator"===_o(e.attributes.name)||"framework"===_o(e.attributes.name)||"publisher"===_o(e.attributes.name)||"progid"===_o(e.attributes.name)||_o(e.attributes.property).match(/^article:/)||_o(e.attributes.property).match(/^product:/)))return!0;
1if(t.headMetaVerification&&("google-site-verification"===_o(e.attributes.name)||"yandex-verification"===_o(e.attributes.name)||"csrf-token"===_o(e.attributes.name)||"p:domain_verify"===_o(e.attributes.name)||"verify-v1"===_o(e.attributes.name)||"verification"===_o(e.attributes.name)||"shopify-checkout-api-token"===_o(e.attributes.name)))return!0}}return!1}function Xo(e,t){var n=t.doc,r=t.mirror,o=t.blockClass,s=t.blockSelector,i=t.maskTextClass,a=t.maskTextSelector,c=t.skipChild,l=void 0!==c&&c,d=t.inlineStylesheet,u=void 0===d||d,h=t.maskInputOptions,p=void 0===h?{}:h,m=t.maskTextFn,f=t.maskInputFn,g=t.slimDOMOptions,y=t.dataURLOptions,I=void 0===y?{}:y,b=t.inlineImages,C=void 0!==b&&b,v=t.recordCanvas,S=void 0!==v&&v,k=t.onSerialize,w=t.onIframeLoad,M=t.iframeLoadTimeout,A=void 0===M?5e3:M,N=t.onStylesheetLoad,T=t.stylesheetLoadTimeout,E=void 0===T?5e3:T,R=t.keepIframeSrcFn,O=void 0===R?function(){return!1}:R,x=t.newlyAddedElement,L=void 0!==x&&x,D=t.needsMask,F=t.preserveWhiteSpace,W=void 0===F||F;if(!D&&e.childNodes){var G=void 0===D;D=Wo(e,i,a,G)}var Y,B=Bo(e,{doc:n,mirror:r,blockClass:o,blockSelector:s,needsMask:D,inlineStylesheet:u,maskInputOptions:p,maskTextFn:m,maskInputFn:f,dataURLOptions:I,inlineImages:C,recordCanvas:S,keepIframeSrcFn:O,newlyAddedElement:L});if(!B)return console.warn(e,"not serialized"),null;Y=r.hasNode(e)?r.getId(e):Uo(B,g)||!W&&B.type===jr.Text&&!B.isStyle&&!B.textContent.replace(/^\s+|\s+$/gm,"").length?go:yo();var Z=xr(B,{id:Y});if(r.add(e,Z),Y===go)return null;k&&k(e);var V=!l;if(Z.type===jr.Element){V=V&&!Z.needBlock,delete Z.needBlock;var z=e.shadowRoot;z&&Kr(z)&&(Z.isShadowHost=!0)}if((Z.type===jr.Document||Z.type===jr.Element)&&V){g.headWhitespace&&Z.type===jr.Element&&"head"===Z.tagName&&(W=!1);var _={doc:n,mirror:r,blockClass:o,blockSelector:s,needsMask:D,maskTextClass:i,maskTextSelector:a,skipChild:l,inlineStylesheet:u,maskInputOptions:p,maskTextFn:m,maskInputFn:f,slimDOMOptions:g,dataURLOptions:I,inlineImages:C,recordCanvas:S,preserveWhiteSpace:W,onSerialize:k,onIframeLoad:w,iframeLoadTimeout:A,onStylesheetLoad:N,stylesheetLoadTimeout:E,keepIframeSrcFn:O};if(Z.type===jr.Element&&"textarea"===Z.tagName&&void 0!==Z.attributes.value);else for(var U=0,X=Array.from(e.childNodes);U<X.length;U++){var H=X[U],j=Xo(H,_);j&&Z.childNodes.push(j)}if(Pr(e)&&e.shadowRoot)for(var P=0,J=Array.from(e.shadowRoot.childNodes);P<J.length;P++){var K=J[P],Q=Xo(K,_);Q&&(Kr(e.shadowRoot)&&(Q.isShadow=!0),Z.childNodes.push(Q))}}return e.parentNode&&Jr(e.parentNode)&&Kr(e.parentNode)&&(Z.isShadow=!0),Z.t
1ype===jr.Element&&"iframe"===Z.tagName&&Go(e,function(){var t=e.contentDocument;if(t&&w){var n=Xo(t,{doc:t,mirror:r,blockClass:o,blockSelector:s,needsMask:D,maskTextClass:i,maskTextSelector:a,skipChild:!1,inlineStylesheet:u,maskInputOptions:p,maskTextFn:m,maskInputFn:f,slimDOMOptions:g,dataURLOptions:I,inlineImages:C,recordCanvas:S,preserveWhiteSpace:W,onSerialize:k,onIframeLoad:w,iframeLoadTimeout:A,onStylesheetLoad:N,stylesheetLoadTimeout:E,keepIframeSrcFn:O});n&&w(e,n)}},A),Z.type===jr.Element&&"link"===Z.tagName&&"string"===typeof Z.attributes.rel&&("stylesheet"===Z.attributes.rel||"preload"===Z.attributes.rel&&"string"===typeof Z.attributes.href&&"css"===uo(Z.attributes.href))&&Yo(e,function(){if(N){var t=Xo(e,{doc:n,mirror:r,blockClass:o,blockSelector:s,needsMask:D,maskTextClass:i,maskTextSelector:a,skipChild:!1,inlineStylesheet:u,maskInputOptions:p,maskTextFn:m,maskInputFn:f,slimDOMOptions:g,dataURLOptions:I,inlineImages:C,recordCanvas:S,preserveWhiteSpace:W,onSerialize:k,onIframeLoad:w,iframeLoadTimeout:A,onStylesheetLoad:N,stylesheetLoadTimeout:E,keepIframeSrcFn:O});t&&N(e,t)}},E),Z}function Ho(e,t){var n=t||{},r=n.mirror,o=void 0===r?new oo:r,s=n.blockClass,i=void 0===s?"rr-block":s,a=n.blockSelector,c=void 0===a?null:a,l=n.maskTextClass,d=void 0===l?"rr-mask":l,u=n.maskTextSelector,h=void 0===u?null:u,p=n.inlineStylesheet,m=void 0===p||p,f=n.inlineImages,g=void 0!==f&&f,y=n.recordCanvas,I=void 0!==y&&y,b=n.maskAllInputs,C=void 0!==b&&b,v=n.maskTextFn,S=n.maskInputFn,k=n.slimDOM,w=void 0!==k&&k,M=n.dataURLOptions,A=n.preserveWhiteSpace,N=n.onSerialize,T=n.onIframeLoad,E=n.iframeLoadTimeout,R=n.onStylesheetLoad,O=n.stylesheetLoadTimeout,x=n.keepIframeSrcFn,L=void 0===x?function(){return!1}:x,D=!0===C?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:!1===C?{password:!0}:C,F=!0===w||"all"===w?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===w,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===w?{}:w;return Xo(e,{doc:e,mirror:o,blockClass:i,blockSelector:c,maskTextClass:d,maskTextSelector:h,skipChild:!1,inlineStylesheet:m,maskInputOptions:D,maskTextFn:v,maskInputFn:S,slimDOMOptions:F,dataURLOptions:M,inlineImages:g,recordCanvas:I,preserveWhiteSpace:A,onSerialize:N,onIframeLoad:T,iframeLoadTimeout:E,onStylesheetLoad:R,stylesheetLoadTimeout:O,keepIframeSrcFn:L,newlyAddedElement:!1})}function jo(){var e=this,t=1048576,n="Coralogix Browser SDK - Error from session recording worker:\n";function r(e){return e.slice(1,-1)}function o(e,t){try{importScripts(e)}catch(Ko){try{importScripts(t)}catch(n){self.postMessage({event:"stopRecording"})}}}function s(e,t,n,r,o,s,i){void 0===i&&(i="sendRecordData");var a=new Blob([n],{type:"application/octet-stream"});self.postMessage({sessionId:e,sessionCreationDate:t,gzipBlob:a,chunkIndex:r,totalChunks:o,screenshotId:s,event:i})}o("https://cdn.rum-ingress-coralogix.com/coralogix/browser/latest/pako_deflate.es5.min.js","https://cdnjs.cloudflare.com/ajax/libs/pako/2.1.0/pako_deflate.es5.min.js"),self.onmessage=function(n){var o,i=n.data;if(!e.pako)return console.warn("Coralogix Browser SDK - Web worker not created due to missing pako library"),void self.postMessage({event:"stopRecording"});var a=!!i.screenshotId;o=a?JSON.stringify(i.records):r(JSON.stringify(i.records));var c=i.sessionId,l=i.sessionCreationDate,d=i.screenshotId,u=e.pako.gzip(o),h=u.byteLength;if(h>=t)for(var p=Math.ceil(h/t),m=0;m<p;m++){var f=m*t,g=(m+1)*t,y=u.slice(f,g);s(c,l,y,m,p-1,d,"splitRecordData")}else s(c,l,u,void 0,void 0,d)},self.onerror=function(e){console.warn(n,e),self.postMessage({event:"stopRecording"})}}var Po=function(){function e(){}return e.prototype.loadAndCreateWorker=function(e){return(0,o.sH)(this,void 0,void 0,function(){var t,n,r,s,i;return(0,o.YH)(this,function(o){switch(o.label){case 0:return o.trys.push([0,4,,5]),e?[4,this.loadWorkerScript(e)]:[3,2];case 1:return n=o.sent(),[3,3];case 2:n="(".concat(jo.toString(),")()"),o.label=3;case 3:return t=n,r=new Blob([t],{type:"application/javascript"}),s=URL.createObjectURL(r),[2,new Worker(s)];case 4:return i=o.sent(),console.warn("CoralogixRum: Error creating worker ".concat(i)),[2,void 0];case 5:return[2]}})})},e.prototype.loadWorkerScript=function(e){return(0,o.sH)(this,void 0,void 0,function(){var t;return(0,o.YH)(this,function(n){switch(n.label){case 0:return n.trys.push([0,3,,4]),[4,fetch(this.getFullWorkerUrl(e))];case 1:return t=n.sent(),t.ok?[4,t.text()]:(console.warn("CoralogixRum: Error fetching custom web worker"),[2,""]);case 2:return[2,n.sent()];case 3:return n.sent(),console.warn("CoralogixRum: Error fetching custom web worker"),[2,""];case 4:return[2]}})})},e.prototype.getFullWorkerUrl=function(e){return e.startsWith("http://")||e.startsWith("https://")?e:"".concat(s.C.location.origin).concat(e)},e}(),Jo=function(){function e(e,t){var n,r=this;this.isAutoStartRecording=!1,this.onlySessionWithErrorMode=!1,this.recordEvents=[],this.recordEventsForSessionWithError=[[],[]],this.segmentIndexCounter={},this.hasRecording=!1,this.hasScreenshot=!1,this.recordingStopped=!1,this.batchTimeDelay=s.B,this.isErrorOccurred=!1,this.debugMode=!!(null===(n=(0,s.g)())||void 0===n?void 0:n.debug),this._recordingStopDueToTimeout=!1,this.handleRecordEvent=function(e,t){r.recordingStopped||(r.onlySessionWithErrorMode?r.handleRecordEventForSessionWithError(e,t):r.recordEvents.push(e))},this.prepareRecordEventsBeforeSend=function(){if(r.onlySessionWithErrorMode)r.prepareRecordEventsForSessionWithError();else{if(!r.recordEvents.length)return;r.compressRecordData(r.recordEvents),r.resetBatching()}},this.sendRecordEvents=function(e,t){var n=new FormData,i=r.getMetadata(e,t);n.append("chunk",e.gzipBlob),n.append("metaData",JSON.stringify(i));var a=function(){return(0,o.sH)(r,void 0,void 0,function(){var e,t,r;return(0,o.YH)(this,function(o){switch(o.label){case 0:return o.trys.push([0,4,,5]),this.isErrorOccurred?[3,2]:[4,null===(r=this.request)||void 0===r?void 0:r.send(n)];case 1:return t=o.sent(),[3,3];case 2:t=void 0,o.label=3;case 3:return e=t,this.handleSessionRecordingResponse(e),[3,5];case 4:return o.sent(),this.handleSessionRecordingResponse(),[3,5];case 5:return[2]}})})};
1t?(r.batchTimeout=setTimeout(a,r.batchTimeDelay),r.batchTimeDelay+=s.B):(a(),r.batchTimeDelay=s.B)},s.C[s.e]=this,this.sessionManager=e;var i=e.onlySessionWithErrorMode,a=e.maxRecordTimeForSessionWithError,c=t.maxMutations,l=t.autoStartSessionRecording,d=t.workerUrl;this.onlySessionWithErrorMode=i,this.maxRecordTimeForSessionWithError=a,this.isAutoStartRecording=l,this.maxMutations=null!==c&&void 0!==c?c:s.f,this.recordConfig=this.prepareRecordConfig(t),s.C.Worker?(this.workerManager=new Po,this.initializeSessionWorker(d)):this.debugMode&&console.warn(s.h)}return e.prototype.getSessionHasScreenshot=function(){return this.hasScreenshot},e.prototype.getSessionHasRecording=function(){var e;return this.hasRecording&&!!this.segmentIndexCounter[null===(e=this.sessionManager.getActiveSession())||void 0===e?void 0:e.sessionId]},e.prototype.updateSegmentIndexCounter=function(e){this.segmentIndexCounter=e},e.prototype.getIsAutoStartRecording=function(){return this.isAutoStartRecording},Object.defineProperty(e.prototype,"recordingStopDueToTimeout",{get:function(){return this._recordingStopDueToTimeout},set:function(e){this.debugMode&&e&&console.debug("Coralogix Browser SDK - Session recording stopped due to timeout"),this._recordingStopDueToTimeout=e},enumerable:!1,configurable:!0}),e.prototype.startRecording=function(){return(0,o.sH)(this,void 0,void 0,function(){return(0,o.YH)(this,function(e){switch(e.label){case 0:return[4,this.isWorkerReady];case 1:return e.sent(),!this.sessionWorker||this.recordRef?[2]:(this.debugMode&&console.debug("Coralogix Browser SDK - Session recording started"),this.startMutationObserver(),this.resetBatching(),this.recordingStopped=!1,this.isErrorOccurred=!1,this.recordingStopDueToTimeout=!1,this.recordRef=dn(this.recordConfig),this.startBatchingRecords(),[2])}})})},e.prototype.screenshot=function(e){this.hasScreenshot=!0;var t=this.sessionManager.getActiveSession()||{},n=t.sessionId,r=t.sessionCreationDate,o=Ho(document,this.recordConfig);o&&this.sessionWorker.postMessage({event:"sendRecordData",records:o,sessionId:n,screenshotId:e,sessionCreationDate:r})},e.prototype.stopRecording=function(){this.recordRef&&(this.debugMode&&console.debug("Coralogix Browser SDK - Session recording stopped"),this.recordRef(),this.recordRef=void 0,this.recordingStopped=!0,this.hasRecording=!1,this.prepareRecordEventsBeforeSend(),this.clearIntervals(),this.stopMutationObserver())},e.prototype.stopMutationObserver=function(){var e;null===(e=this.mutationObserver)||void 0===e||e.disconnect()},e.prototype.startMutationObserver=function(){var e=this;this.stopMutationObserver(),this.mutationObserver=new MutationObserver(function(t){if(t.length>e.maxMutations){var n="Coralogix Browser SDK - Recording stopped due to too many mutations ".concat(t.length);console.warn(n),(0,s.r)("recording-stop",n),e.stopRecording()}}),this.mutationObserver.observe(document,{attributes:!1,attributeOldValue:!1,characterData:!1,characterDataOldValue:!1,childList:!0,subtree:!0})},e.prototype.clearIntervals=function(){this.batchingTimeInterval&&clearInterval(this.batchingTimeInterval)},e.prototype.prepareRecordConfig=function(e){var t,n=e||{},r=n.excludeDOMOptions,s=n.recordConsoleEvents;return this.recordConfig=(0,o.Cl)((0,o.Cl)({},e),{emit:this.handleRecordEvent,checkoutEveryNms:this.onlySessionWithErrorMode?this.maxRecordTimeForSessionWithError:void 0,slimDOMOptions:(0,o.Cl)((0,o.Cl)({},r),{script:null===(t=null===r||void 0===r?void 0:r.script)||void 0===t||t}),plugins:s?[Ar()]:[]}),this.recordConfig},e.prototype.handleRecordEventForSessionWithError=function(e,t){var n=this.sessionManager.sessionHasError&&!!t&&e.type===Gr.FullSnapshot;if(!n){var r=!!t&&e.type===Gr.Meta;r&&this.recordEventsForSessionWithError.push([]);var o=this.recordEventsForSessionWithError,s=o.length,i=s-1,a=o[i];a.push(e)}},e.prototype.prepareRecordEventsForSessionWithError=function(){var e=this.recordEventsForSessionWithError,t=e.length,n=t-2,r=e[n],o=t-1,s=e[o];if(this.sessionManager.sessionHasError){var i=r.concat(s);if(!i.length)return;this.compressRecordData(i),this.resetBatching()}else this.recordEventsForSessionWithError=[r,s]},e.prototype.compressRecordData=function(e){var t=this.sessionManager.getActiveSession()||{},n=t.sessionId,r=t.sessionCreationDate;this.sessionWorker.postMessage({event:"compressRecordData",records:e,sessionId:n,sessionCreationDate:r})},e.prototype.registerToWorkerMessages=function(){var e=this;this.sessionWorker.onmessage=function(t){var n=t.data;switch(n.event){case"sendRecordData":e.sendRecordEvents(n,!1);break;case"splitRecordData":e.sendRecordEvents(n,!0);break;case"stopRecording":e.stopRecording();break}}},e.prototype.resetBatching=function(){this.onlySessionWithErrorMode?this.recordEventsForSessionWithError=[[],[]]:this.recordEvents=[]},e.prototype.getMetadata=function(e,t){var n=e.sessionId,r=e.sessionCreationDate,o=e.screenshotId,i=e.gzipBlob,a=e.chunkIndex,c=e.totalChunks,l=0,d=(0,s.g)().application,u=!!o;u||(this.segmentIndexCounter[n]||(this.segmentIndexCounter[n]=0),l=t?a===c?this.segmentIndexCounter[n]++:this.segmentIndexCounter[n]:this.segmentIndexCounter[n]++,sessionStorage.setItem(s.S,JSON.stringify(this.segmentIndexCounter)));var h={segmentIndex:l,segmentSize:i.size,segmentTimestamp:(0,s.a)(),sessionCreationDate:r,sessionId:n,snapshotId:o,application:d,subIndex:null!==a&&void 0!==a?a:-1};return h},e.prototype.handleSessionRecordingResponse=function(e){(null===e||void 0===e?void 0:e.ok)?(this.hasRecording=!0,this.isErrorOccurred=!1):(null===e||void 0===e?void 0:e.ok)||this.isErrorOccurred||(console.warn(s.b),this.isErrorOccurred=!0,this.stopRecording(),this.batchTimeout&&clearTimeout(this.batchTimeout))},e.prototype.startBatchingRecords=function(){this.batchingTimeInterval=setInterval(this.prepareRecordEventsBeforeSend,s.M)},e.prototype.initializeSessionWorker=function(e){var t=this;this.isWorkerReady=new Promise(function(n,r){t.workerManager.loadAndCreateWorker(e).then(function(e){t.sessionWorker=e,t.isAutoStartRecording&&t.startRecording(),t.request=new s.R({suffix:s.d,headers:s.c}),t.registerToWorkerMessages(),n(!0)}).catch(function(e){t.debugMode&&console.warn("Coralogix Browser SDK - Web worker not created due to: ",e),r(e)})})},e}()}}]); 2//# sourceMappingURL=795.be2d5ec0.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.