1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3415],{15956:(e,t,r)=>{let n,o,i,a,s,l;r.r(t),r.d(t,{record:()=>tS});var u,d,c,h,p,m,f,y,g=Object.defineProperty,b=(e,t,r)=>{let n;return(n="symbol"!=typeof t?t+"":t)in e?g(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r},S=((u=S||{})[u.DomContentLoaded=0]="DomContentLoaded",u[u.Load=1]="Load",u[u.FullSnapshot=2]="FullSnapshot",u[u.IncrementalSnapshot=3]="IncrementalSnapshot",u[u.Meta=4]="Meta",u[u.Custom=5]="Custom",u[u.Plugin=6]="Plugin",u[u.Asset=7]="Asset",u),v=((d=v||{})[d.Mutation=0]="Mutation",d[d.MouseMove=1]="MouseMove",d[d.MouseInteraction=2]="MouseInteraction",d[d.Scroll=3]="Scroll",d[d.ViewportResize=4]="ViewportResize",d[d.Input=5]="Input",d[d.TouchMove=6]="TouchMove",d[d.MediaInteraction=7]="MediaInteraction",d[d.StyleSheetRule=8]="StyleSheetRule",d[d.CanvasMutation=9]="CanvasMutation",d[d.Font=10]="Font",d[d.Log=11]="Log",d[d.Drag=12]="Drag",d[d.StyleDeclaration=13]="StyleDeclaration",d[d.Selection=14]="Selection",d[d.AdoptedStyleSheet=15]="AdoptedStyleSheet",d[d.CustomElement=16]="CustomElement",d),M=((c=M||{})[c.MouseUp=0]="MouseUp",c[c.MouseDown=1]="MouseDown",c[c.Click=2]="Click",c[c.ContextMenu=3]="ContextMenu",c[c.DblClick=4]="DblClick",c[c.Focus=5]="Focus",c[c.Blur=6]="Blur",c[c.TouchStart=7]="TouchStart",c[c.TouchMove_Departed=8]="TouchMove_Departed",c[c.TouchEnd=9]="TouchEnd",c[c.TouchCancel=10]="TouchCancel",c),w=((h=w||{})[h.Mouse=0]="Mouse",h[h.Pen=1]="Pen",h[h.Touch=2]="Touch",h),C=((p=C||{})[p["2D"]=0]="2D",p[p.WebGL=1]="WebGL",p[p.WebGL2=2]="WebGL2",p),I=((m=I||{})[m.Play=0]="Play",m[m.Pause=1]="Pause",m[m.Seeked=2]="Seeked",m[m.VolumeChange=3]="VolumeChange",m[m.RateChange=4]="RateChange",m),E=((f=E||{})[f.Document=0]="Document",f[f.DocumentType=1]="DocumentType",f[f.Element=2]="Element",f[f.Text=3]="Text",f[f.CDATA=4]="CDATA",f[f.Comment=5]="Comment",f);let k={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},R={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},T={},O={};function x(e){if(T[e])return T[e];let t=globalThis[e],r=t.prototype,n=e in k?k[e]:void 0,o=!!(n&&n.every(e=>{var t,n;return!!(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),i=e in R?R[e]:void 0,a=!!(i&&i.every(e=>{var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(o&&a&&!globalThis.Zone)return T[e]=t.prototype,t.prototype;try{let n=document.createElement("iframe");n.style.display="none",document.body.appendChild(n);let o=n.contentWindow;if(!o)return t.prototype;let i=o[e].prototype;if(!i)return n.remove(),r;let a=navigator.userAgent;return a.includes("Safari")&&!a.includes("Chrome")?(n.classList.add("rr-block"),n.setAttribute("__rrwebUntaintedMutationObserver",""),O[e]=()=>n.remove()):n.remove(),T[e]=i}catch{return r}}let N={};function D(e,t,r){var n;let o=`${e}.${String(r)}`;if(N[o])return N[o].call(t);let i=null==(n=Object.getOwnPropertyDescriptor(x(e),r))?void 0:n.get;return i?(N[o]=i,i.call(t)):t[r]}let L={};function A(e,t,r){let n=`${e}.${String(r)}`;if(L[n])return L[n].bind(t);let o=x(e)[r];return"function"!=typeof o?t[r]:(L[n]=o,o.bind(t))}let _=Date.now;function F(e,t,r){try{if(!(t in e))return()=>{};let n=e[t],o=r(n);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=o,()=>{e[t]=n}}catch{return()=>{}}}/[1-9][0-9]{12}/.test(Date.now().toString())||(_=()=>new Date().getTime());let P=function(e){return D("Node",e,"ownerDocument")},W=function(e){return D("Node",e,"childNodes")},U=function(e){return D("Node",e,"parentNode")},B=function(e){return D("Node",e,"parentElement")},j=function(e){return D("Node",e,"textContent")},z=function(e,t){return A("Node",e,"contains")(t)},V=function(e){return A("Node",e,"getRootNode")()},$=function(e){return e&&"host"in e?D("ShadowRoot",e,"host"):null},G=function(e){return e&&"shadowRoot"in e?D("Element",e,"shadowRoot"):null};
1function H(e){return e.nodeType===e.ELEMENT_NODE}function q(e){let t=e&&"host"in e&&"mode"in e&&$(e)||null;return!!(t&&"shadowRoot"in t&&G(t)===e)}function X(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function J(e){try{var t;let r=e.rules||e.cssRules;if(!r)return null;let n=e.href;return!n&&e.ownerNode&&(n=e.ownerNode.baseURI),(t=Array.from(r,e=>Y(e,n)).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t}catch(e){return null}}function Y(e,t){if("styleSheet"in e){let t;try{t=J(e.styleSheet)||function(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let r=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(r){t=e.cssText}return e.styleSheet.href?es(t,e.styleSheet.href):t}{let r=e.cssText;return("selectorText"in e&&e.selectorText.includes(":")&&(r=r.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),t)?es(r,t):r}}class K{constructor(){b(this,"idNodeMap",new Map),b(this,"nodeMetaMap",new WeakMap)}getId(e){var t;return e?(null==(t=this.getMeta(e))?void 0:t.id)??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){let r=this.getNode(e);if(r){let e=this.nodeMetaMap.get(r);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Z({element:e,maskInputOptions:t,tagName:r,type:n,value:o,maskInputFn:i}){let a=o||"",s=n&&Q(n);return(t[r.toLowerCase()]||s&&t[s])&&(a=i?i(a,e):"*".repeat(a.length)),a}function Q(e){return e.toLowerCase()}let ee="__rrweb_original__";function et(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Q(t):null}function er(e,t){let r;try{r=new URL(e,t??window.location.href)}catch(e){return null}let n=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return(null==n?void 0:n[1])??null}let en=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,eo=/^(?:[a-z+]+:)?\/\//i,ei=/^www\..*/i,ea=/^(data:)([^,]*),(.*)/i;function es(e,t){return(e||"").replace(en,(e,r,n,o,i,a)=>{let s=n||i||a,l=r||o||"";if(!s)return e;if(eo.test(s)||ei.test(s)||ea.test(s))return`url(${l}${s}${l})`;if("/"===s[0])return`url(${l}${(t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+s}${l})`;let u=s.split("#")[0],d=s.substring(u.length),c=t.split("#")[0].split("/"),h=u.split("/");for(let e of(c.pop(),h))if("."===e)continue;else".."===e?c.pop():c.push(e);return`url(${l}${c.join("/")}${d}${l})`})}function el(e,t=!1){return t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}let eu=1,ed=RegExp("[^a-z0-9-_:]");function ec(){return eu++}let eh=/^[^ \t\n\r\u000c]+/,ep=/^[, \t\n\r\u000c]+/,em=new WeakMap;function ef(e,t){return t&&""!==t.trim()?ey(e,t):t}function ey(e,t){let r=em.get(e);if(r||(r=e.createElement("a"),em.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function eg(e,t,r,n){if(!n)return n;if("src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0])return ef(e,n);if("background"===r&&["table","td","th"].includes(t))return ef(e,n);if("srcset"===r)return function(e,t){if(""===t.trim())return t;let r=0;function n(e){let n,o=e.exec(t.substring(r));return o?(n=o[0],r+=n.length,n):""}let o=[];for(;n(ep),!(r>=t.length);){let i=n(eh);if(","===i.slice(-1))i=ef(e,i.substring(0,i.length-1)),o.push(i);else{let n="";i=ef(e,i);let a=!1;for(;;){let e=t.charAt(r);if(""===e){o.push((i+n).trim());break}if(a)")"===e&&(a=!1);else if(","===e){r+=1,o.push((i+n).trim());break}else"("===e&&(a=!0);n+=e,r+=1}}}return o.join(", ")}(e,n);if("style"===r)return es(n,ey(e));else if("object"===t&&"data"===r)return ef(e,n);return n}function eb(e,t,r){return["video","audio"].includes(e)&&"autoplay"===t}function eS(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&eS(U(e),t,r);for(let r=e.classList.length;r--;){let n=e.classList[r];if(t.test(n))return!0}return!!r&&eS(U(e),t,r)}function ev(e,t,r,n){let o;if(H(e)){if(!W(o=e).length)return!1}else{if(null===B(e))return!1;o=B(e)}
1try{if("string"==typeof t){if(n){if(o.closest(`.${t}`))return!0}else if(o.classList.contains(t))return!0}else if(eS(o,t,n))return!0;if(r){if(n){if(o.closest(r))return!0}else if(o.matches(r))return!0}}catch(e){}return!1}function eM(e){return null==e?"":e.toLowerCase()}function ew(e){return!0===e||"all"===e?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===e,headMetaDescKeywords:"all"===e,headTitleMutations:"all"===e}:e||{}}function eC(e,t){let r,{doc:i,mirror:a,blockClass:s,blockSelector:l,maskTextClass:u,maskTextSelector:d,skipChild:c=!1,inlineStylesheet:h=!0,maskInputOptions:p={},maskTextFn:m,maskInputFn:f,slimDOMOptions:y,dataURLOptions:g={},inlineImages:b=!1,recordCanvas:S=!1,onSerialize:v,onIframeLoad:M,iframeLoadTimeout:w=5e3,onStylesheetLoad:C,stylesheetLoadTimeout:I=5e3,keepIframeSrcFn:k=()=>!1,newlyAddedElement:R=!1,cssCaptured:T=!1}=t,{needsMask:O}=t,{preserveWhiteSpace:x=!0}=t;O||(O=ev(e,u,d,void 0===O));let N=function(e,t){let{doc:r,mirror:i,blockClass:a,blockSelector:s,needsMask:l,inlineStylesheet:u,maskInputOptions:d={},maskTextFn:c,maskInputFn:h,dataURLOptions:p={},inlineImages:m,recordCanvas:f,keepIframeSrcFn:y,newlyAddedElement:g=!1,cssCaptured:b=!1}=t,S=function(e,t){if(!t.hasNode(e))return;let r=t.getId(e);return 1===r?void 0:r}(r,i);switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:E.Document,childNodes:[],compatMode:e.compatMode};return{type:E.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:E.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:S};case e.ELEMENT_NODE:return function(e,t){let r,{doc:i,blockClass:a,blockSelector:s,inlineStylesheet:l,maskInputOptions:u={},maskInputFn:d,dataURLOptions:c={},inlineImages:h,recordCanvas:p,keepIframeSrcFn:m,newlyAddedElement:f=!1,rootId:y}=t,g=function(e,t,r){try{if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let r=e.classList.length;r--;){let n=e.classList[r];if(t.test(n))return!0}if(r)return e.matches(r)}catch(e){}return!1}(e,a,s),b=function(e){if(e instanceof HTMLFormElement)return"form";let t=Q(e.tagName);return ed.test(t)?"div":t}(e),S={},v=e.attributes.length;for(let t=0;t<v;t++){let r=e.attributes[t];eb(b,r.name,r.value)||(S[r.name]=eg(i,b,Q(r.name),r.value))}if("link"===b&&l){let t=Array.from(i.styleSheets).find(t=>t.href===e.href),r=null;t&&(r=J(t)),r&&(delete S.rel,delete S.href,S._cssText=r)}if("style"===b&&e.sheet){let t=J(e.sheet);t&&(e.childNodes.length>1&&(t=(function(e,t,r=!1){let n=Array.from(t.childNodes),o=[],i=0;if(n.length>1&&e&&"string"==typeof e){let t=el(e,r),a=t.length/e.length;for(let s=1;s<n.length;s++)if(n[s].textContent&&"string"==typeof n[s].textContent){let l=el(n[s].textContent,r),u=3;for(;u<l.length&&(l[u].match(/[a-zA-Z0-9]/)||-1!==l.indexOf(l.substring(0,u),1));u++);for(;u<l.length;u++){let d=l.substring(0,u),c=t.split(d),h=-1;if(2===c.length)h=c[0].length;else if(c.length>2&&""===c[0]&&""!==n[s-1].textContent)h=t.indexOf(d,1);else if(1===c.length){if(d=d.substring(0,d.length-1),(c=t.split(d)).length<=1)return o.push(e),o;u=101}else u===l.length-1&&(h=t.indexOf(d));if(c.length>=2&&u>100){let e=n[s-1].textContent;if(e&&"string"==typeof e){let r=el(e).length;h=t.indexOf(d,r)}-1===h&&(h=c[0].length)}if(-1!==h){let s=Math.floor(h/a);for(;s>0&&s<e.length;){if((i+=1)>50*n.length)return o.push(e),o;let l=el(e.substring(0,s),r);if(l.length===h){o.push(e.substring(0,s)),e=e.substring(s),t=t.substring(h);break}l.length<h?s+=Math.max(1,Math.floor((h-l.length)/a)):s-=Math.max(1,Math.floor((l.length-h)*a))}break}}}}return o.push(e),o})(t,e).join("/* rr_split */")),S._cssText=t)}if(["input","textarea","select"].includes(b)){let t=e.value,r=e.checked;"radio"!==S.type&&"checkbox"!==S.type&&"submit"!==S.type&&"button"!==S.type&&t?S.value=Z({element:e,type:et(e),tagName:b,value:t,maskInputOptions:u,maskInputFn:d}):r&&(S.checked=r)}if("option"===b&&(e.selected&&!u.select?S.selected=!0:delete S.selected),"dialog"===b&&e.open&&(S.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),"canvas"===b&&p){if("2d"===e.__context)!function(e){let t=e.getContext("2d");if(!t)return!0;for(let r=0;r<e.width;r+=50)for(let n=0;n<e.height;n+=50){let o=t.getImageData;
1if(new Uint32Array((ee in o?o[ee]:o).call(t,r,n,Math.min(50,e.width-r),Math.min(50,e.height-n)).data.buffer).some(e=>0!==e))return!1}return!0}(e)&&(S.rr_dataURL=e.toDataURL(c.type,c.quality));else if(!("__context"in e)){let t=e.toDataURL(c.type,c.quality),r=i.createElement("canvas");r.width=e.width,r.height=e.height,t!==r.toDataURL(c.type,c.quality)&&(S.rr_dataURL=t)}}if("img"===b&&h){n||(o=(n=i.createElement("canvas")).getContext("2d"));let t=e.currentSrc||e.getAttribute("src")||"<unknown-src>",r=e.crossOrigin,a=()=>{e.removeEventListener("load",a);try{n.width=e.naturalWidth,n.height=e.naturalHeight,o.drawImage(e,0,0),S.rr_dataURL=n.toDataURL(c.type,c.quality)}catch(r){if("anonymous"!==e.crossOrigin){e.crossOrigin="anonymous",e.complete&&0!==e.naturalWidth?a():e.addEventListener("load",a);return}console.warn(`Cannot inline img src=${t}! Error: ${r}`)}"anonymous"===e.crossOrigin&&(r?S.crossOrigin=r:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?a():e.addEventListener("load",a)}if(["audio","video"].includes(b)){let t=S;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(!f&&(e.scrollLeft&&(S.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(S.rr_scrollTop=e.scrollTop)),g){let{width:t,height:r}=e.getBoundingClientRect();S={class:S.class,rr_width:`${t}px`,rr_height:`${r}px`}}"iframe"!==b||m(S.src)||(e.contentDocument||(S.rr_src=S.src),delete S.src);try{customElements.get(b)&&(r=!0)}catch(e){}return{type:E.Element,tagName:b,attributes:S,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:g,rootId:y,isCustom:r}}(e,{doc:r,blockClass:a,blockSelector:s,inlineStylesheet:u,maskInputOptions:d,maskInputFn:h,dataURLOptions:p,inlineImages:m,recordCanvas:f,keepIframeSrcFn:y,newlyAddedElement:g,rootId:S});case e.TEXT_NODE:return function(e,t){let{needsMask:r,maskTextFn:n,rootId:o,cssCaptured:i}=t,a=U(e),s=a&&a.tagName,l="",u="STYLE"===s||void 0,d="SCRIPT"===s||void 0;return d?l="SCRIPT_PLACEHOLDER":!i&&(l=j(e),u&&l&&(l=es(l,ey(t.doc)))),!u&&!d&&l&&r&&(l=n?n(l,B(e)):l.replace(/[\S]/g,"*")),{type:E.Text,textContent:l||"",rootId:o}}(e,{doc:r,needsMask:l,maskTextFn:c,rootId:S,cssCaptured:b});case e.CDATA_SECTION_NODE:return{type:E.CDATA,textContent:"",rootId:S};case e.COMMENT_NODE:return{type:E.Comment,textContent:j(e)||"",rootId:S};default:return!1}}(e,{doc:i,mirror:a,blockClass:s,blockSelector:l,needsMask:O,inlineStylesheet:h,maskInputOptions:p,maskTextFn:m,maskInputFn:f,dataURLOptions:g,inlineImages:b,recordCanvas:S,keepIframeSrcFn:k,newlyAddedElement:R,cssCaptured:T});if(!N)return console.warn(e,"not serialized"),null;r=a.hasNode(e)?a.getId(e):!function(e,t){if(t.comment&&e.type===E.Comment)return!0;if(e.type===E.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel&&"script"===e.attributes.as||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===er(e.attributes.href)))return!0;else if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(eM(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===eM(e.attributes.name)||"icon"===eM(e.attributes.rel)||"apple-touch-icon"===eM(e.attributes.rel)||"shortcut icon"===eM(e.attributes.rel))))return!0;else if("meta"===e.tagName){if(t.headMetaDescKeywords&&eM(e.attributes.name).match(/^description|keywords$/))return!0;else if(t.headMetaSocial&&(eM(e.attributes.property).match(/^(og|twitter|fb):/)||eM(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===eM(e.attributes.name)))return!0;else if(t.headMetaRobots&&("robots"===eM(e.attributes.name)||"googlebot"===eM(e.attributes.name)||"bingbot"===eM(e.attributes.name)))return!0;else if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===eM(e.attributes.name)||"generator"===eM(e.attributes.name)||"framework"===eM(e.attributes.name)||"publisher"===eM(e.attributes.name)||"progid"===eM(e.attributes.name)||eM(e.attributes.property).match(/^article:/)||eM(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===eM(e.attributes.name)||"yandex-verification"===eM(e.attributes.name)||"csrf-token"===eM(e.attributes.name)||"p:domain_verify"===eM(e.attributes.name)||"verify-v1"===eM(e.attributes.name)||"verification"===eM(e.attributes.name)||"shopify-checkout-api-token"===eM(e.attributes.name)))return!0}}return!1}(N,y)&&(x||N.type!==E.Text||N.textContent.replace(/^\s+|\s+$/gm,"").length)?ec():-2;let D=Object.assign(N,{id:r});if(a.add(e,D),-2===r)return null;v&&v(e);let L=!c;if(D.type===E.Element){L=L&&!D.needBlock,delete D.needBlock;let t=G(e);t&&X(t)&&(D.isShadowHost=!0)}if((D.type===E.Document||D.type===E.Element)&&L){y.headWhitespace&&D.type===E.Element&&"head"===D.tagName&&(x=!1);let t={doc:i,mirror:a,blockClass:s,blockSelector:l,needsMask:O,maskTextClass:u,maskTextSelector:d,skipChild:c,inlineStylesheet:h,maskInputOptions:p,maskTextFn:m,maskInputFn:f,slimDOMOptions:y,dataURLOptions:g,inlineImages:b,recordCanvas:S,preserveWhiteSpace:x,onSerialize:v,onIframeLoad:M,iframeLoadTimeout:w,onStylesheetLoad:C,stylesheetLoadTimeout:I,keepIframeSrcFn:k,cssCaptured:!1};if(D.type===E.Element&&"textarea"===D.tagName&&void 0!==D.attributes.value);else for(let r of(D.type===E.Element&&void 0!==D.attributes._cssText&&"string"==typeof D.attributes._cssText&&(t.cssCaptured=!0),Array.from(W(e)))){let e=eC(r,t);e&&D.childNodes.push(e)}let r=null;if(H(e)&&(r=G(e)))for(let e of Array.from(W(r))){let n=eC(e,t);n&&(X(r)&&(n.isShadow=!0),D.childNodes.push(n))}}let A=U(e);return A&&q(A)&&X(A)&&(D.isShadow=!0),D.type===E.Element&&"iframe"===D.tagName&&function(e,t,r){let n,o=e.contentWindow;if(!o)return;let i=!1;try{n=o.document.readyState}catch(e){return}if("complete"!==n){let n=setTimeout(()=>{i||(t(),i=!0)},r);e.addEventListener("load",()=>{clearTimeout(n),i=!0,t()});return}let a="about:blank";if(o.location.href!==a||e.src===a||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{let t=e.contentDocument;if(t&&M){let r=eC(t,{doc:t,mirror:a,blockClass:s,blockSelector:l,needsMask:O,maskTextClass:u,maskTextSelector:d,skipChild:!1,inlineStylesheet:h,maskInputOptions:p,maskTextFn:m,maskInputFn:f,slimDOMOptions:y,dataURLOptions:g,inlineImages:b,recordCanvas:S,preserveWhiteSpace:x,onSerialize:v,onIframeLoad:M,iframeLoadTimeout:w,onStylesheetLoad:C,stylesheetLoadTimeout:I,keepIframeSrcFn:k});r&&M(e,r)}},w),D.type===E.Element&&"link"===D.tagName&&"string"==typeof D.attributes.rel&&("stylesheet"===D.attributes.rel||"preload"===D.attributes.rel&&"string"==typeof D.attributes.href&&"css"===er(D.attributes.href))&&function(e,t,r){let n,o=!1;try{n=e.sheet}catch(e){return}if(n)return;let i=setTimeout(()=>{o||(t(),o=!0)},r);e.addEventListener("load",()=>{clearTimeout(i),o=!0,t()})}(e,()=>{if(C){let t=eC(e,{doc:i,mirror:a,blockClass:s,blockSelector:l,needsMask:O,maskTextClass:u,maskTextSelector:d,skipChild:!1,inlineStylesheet:h,maskInputOptions:p,maskTextFn:m,maskInputFn:f,slimDOMOptions:y,dataURLOptions:g,inlineImages:b,recordCanvas:S,preserveWhiteSpace:x,onSerialize:v,onIframeLoad:M,iframeLoadTimeout:w,onStylesheetLoad:C,stylesheetLoadTimeout:I,keepIframeSrcFn:k});t&&C(e,t)}},I),D}class eI{constructor(...e){b(this,"parentElement",null),b(this,"parentNode",null),b(this,"ownerDocument"),b(this,"firstChild",null),b(this,"lastChild",null),b(this,"previousSibling",null),b(this,"nextSibling",null),b(this,"ELEMENT_NODE",1),b(this,"TEXT_NODE",3),b(this,"nodeType"),b(this,"nodeName"),b(this,"RRNodeType")}get childNodes(){let e=[],t=this.firstChild;for(;t;)e.push(t),t=t.nextSibling;return e}contains(e){if(!(e instanceof eI)||e.ownerDocument!==this.ownerDocument)return!1;if(e===this)return!0;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}return!1}appendChild(e){throw Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(e,t){throw Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(e){throw Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}function eE(e,t,r=document){let n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)}let ek="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.",eR={map:{},getId:()=>(console.error(ek),-1),getNode:()=>(console.error(ek),null),removeNodeFromMap(){console.error(ek)},has:()=>(console.error(ek),!1),reset(){console.error(ek)}};function eT(e,t,r={}){let n=null,o=0;return function(...i){let a=Date.now();o||!1!==r.leading||(o=a);let s=t-(a-o),l=this;s<=0||s>t?(n&&(clearTimeout(n),n=null),o=a,e.apply(l,i)):n||!1===r.trailing||(n=setTimeout(()=>{o=!1===r.leading?0:Date.now(),n=null,e.apply(l,i)}
1,s))}}function eO(e,t,r,n,o=window){let i=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,n?r:{set(e){setTimeout(()=>{r.set.call(this,e)},0),i&&i.set&&i.set.call(this,e)}}),()=>eO(e,t,i||{},!0)}function ex(e){var t,r,n,o;let i=e.document;return{left:i.scrollingElement?i.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:i.documentElement.scrollLeft||(null==i?void 0:i.body)&&(null==(t=B(i.body))?void 0:t.scrollLeft)||(null==(r=null==i?void 0:i.body)?void 0:r.scrollLeft)||0,top:i.scrollingElement?i.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==i?void 0:i.documentElement.scrollTop)||(null==i?void 0:i.body)&&(null==(n=B(i.body))?void 0:n.scrollTop)||(null==(o=null==i?void 0:i.body)?void 0:o.scrollTop)||0}}function eN(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function eD(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function eL(e){return e?e.nodeType===e.ELEMENT_NODE?e:B(e):null}function eA(e,t,r,n){if(!e)return!1;let o=eL(e);if(!o)return!1;try{if("string"==typeof t){if(o.classList.contains(t)||n&&null!==o.closest("."+t))return!0}else if(eS(o,t,n))return!0}catch(e){}return!!(r&&(o.matches(r)||n&&null!==o.closest(r)))||!1}function e_(e,t,r){return"TITLE"===e.tagName&&!!r.headTitleMutations||-2===t.getId(e)}function eF(e){return!!e.changedTouches}function eP(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function eW(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function eU(e){return!!e&&(e instanceof eI&&"shadowRoot"in e?!!e.shadowRoot:!!G(e))}"u">typeof window&&window.Proxy&&window.Reflect&&(eR=new Proxy(eR,{get:(e,t,r)=>("map"===t&&console.error(ek),Reflect.get(e,t,r))}));class eB{constructor(){b(this,"id",1),b(this,"styleIDMap",new WeakMap),b(this,"idStyleMap",new Map)}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){let r;return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r)}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function ej(e){var t;let r=null;return"getRootNode"in e&&(null==(t=V(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&$(V(e))&&(r=$(V(e))),r}function ez(e){var t;let r,n=P(e);return!!n&&(z(n,e)||!!(r=P(t=e))&&z(r,function(e){let t,r=e;for(;t=ej(r);)r=t;return r}(t)))}class eV{constructor(){b(this,"length",0),b(this,"head",null),b(this,"tail",null)}get(e){if(e>=this.length)throw Error("Position outside of list range");let t=this.head;for(let r=0;r<e;r++)t=(null==t?void 0:t.next)||null;return t}addNode(e){let t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&"__ln"in e.previousSibling){let r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&"__ln"in e.nextSibling&&e.nextSibling.__ln.previous){let r=e.nextSibling.__ln.previous;t.previous=r,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,r&&(r.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){let t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}let e$=(e,t)=>`${e}@${t}`;class eG{constructor(){b(this,"frozen",!1),b(this,"locked",!1),b(this,"texts",[]),b(this,"attributes",[]),b(this,"attributeMap",new WeakMap),b(this,"removes",[]),b(this,"mapRemoves",[]),b(this,"movedMap",{}),b(this,"addedSet",new Set),b(this,"movedSet",new Set),b(this,"droppedSet",new Set),b(this,"removesSubTreeCache",new Set),b(this,"mutationCb"),b(this,"blockClass"),b(this,"blockSelector"),b(this,"maskTextClass"),b(this,"maskTextSelector"),b(this,"inlineStylesheet"),b(this,"maskInputOptions"),b(this,"maskTextFn"),b(this,"maskInputFn"),b(this,"keepIframeSrcFn"),b(this,"recordCanvas"),b(this,"inlineImages"),b(this,"slimDOMOptions"),b(this,"dataURLOptions"),b(this,"doc"),b(this,"mirror"),b(this,"iframeManager"),b(this,"stylesheetManager"),b(this,"shadowDomManager"),b(this,"canvasManager"),b(this,"processedNodeManager"),b(this,"unattachedDoc"),b(this,"processMutations",e=>
1{e.forEach(this.processMutation),this.emit()}),b(this,"emit",()=>{if(this.frozen||this.locked)return;let e=[],t=new Set,r=new eV,n=e=>{let t=e,r=-2;for(;-2===r;)r=(t=t&&t.nextSibling)&&this.mirror.getId(t);return r},o=o=>{let i=U(o);if(!i||!ez(o))return;let a=!1;if(o.nodeType===Node.TEXT_NODE){let e=i.tagName;if("TEXTAREA"===e)return;"STYLE"===e&&this.addedSet.has(i)&&(a=!0)}let s=q(i)?this.mirror.getId(ej(o)):this.mirror.getId(i),l=n(o);if(-1===s||-1===l)return r.addNode(o);let u=eC(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=>{eP(e,this.mirror)&&this.iframeManager.addIframe(e),eW(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),eU(o)&&this.shadowDomManager.addShadowRoot(G(o),this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},cssCaptured:a});u&&(e.push({parentId:s,nextId:l,node:u}),t.add(u.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet)(!eq(this.removesSubTreeCache,e,this.mirror)||this.movedSet.has(U(e)))&&o(e);for(let e of this.addedSet)eX(this.droppedSet,e)||eq(this.removesSubTreeCache,e,this.mirror)?eX(this.movedSet,e)?o(e):this.droppedSet.add(e):o(e);let i=null;for(;r.length;){let e=null;if(i){let t=this.mirror.getId(U(i.value)),r=n(i.value);-1!==t&&-1!==r&&(e=i)}if(!e){let t=r.tail;for(;t;){let r=t;if(t=t.previous,r){let t=this.mirror.getId(U(r.value));if(-1===n(r.value))continue;if(-1!==t){e=r;break}{let t=U(r.value);if(t&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let n=$(t);if(-1!==this.mirror.getId(n)){e=r;break}}}}}}if(!e){for(;r.head;)r.removeNode(r.head.value);break}i=e.previous,r.removeNode(e.value),o(e.value)}let a={texts:this.texts.map(e=>{let t=e.node,r=U(t);return r&&"TEXTAREA"===r.tagName&&this.genTextAreaValueMutation(r),{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=>{let{attributes:t}=e;if("string"==typeof t.style){let r=JSON.stringify(e.styleDiff),n=JSON.stringify(e._unchangedStyles);r.length<t.style.length&&(r+n).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(a.texts.length||a.attributes.length||a.removes.length||a.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.removesSubTreeCache=new Set,this.movedMap={},this.mutationCb(a))}),b(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));let r=Array.from(W(e),e=>j(e)||"").join("");t.attributes.value=Z({element:e,maskInputOptions:this.maskInputOptions,tagName:e.tagName,type:et(e),value:r,maskInputFn:this.maskInputFn})}),b(this,"processMutation",e=>{if(!e_(e.target,this.mirror,this.slimDOMOptions))switch(e.type){case"characterData":{let t=j(e.target);eA(e.target,this.blockClass,this.blockSelector,!1)||t===e.oldValue||this.texts.push({value:ev(e.target,this.maskTextClass,this.maskTextSelector,!0)&&t?this.maskTextFn?this.maskTextFn(t,eL(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{let t=e.target,r=e.attributeName,n=e.target.getAttribute(r);if("value"===r){let e=et(t);n=Z({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:e,value:n,maskInputFn:this.maskInputFn})}if(eA(e.target,this.blockClass,this.blockSelector,!1)||n===e.oldValue)return;let o=this.attributeMap.get(e.target);
1if("IFRAME"===t.tagName&&"src"===r&&!this.keepIframeSrcFn(n))if(t.contentDocument)return;else r="rr_src";if(o||(o={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(e.target,o)),"type"===r&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!eb(t.tagName,r))if(o.attributes[r]=eg(this.doc,Q(t.tagName),Q(r),n),"style"===r){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}let r=this.unattachedDoc.createElement("span");for(let n of(e.oldValue&&r.setAttribute("style",e.oldValue),Array.from(t.style))){let e=t.style.getPropertyValue(n),i=t.style.getPropertyPriority(n);e!==r.style.getPropertyValue(n)||i!==r.style.getPropertyPriority(n)?""===i?o.styleDiff[n]=e:o.styleDiff[n]=[e,i]:o._unchangedStyles[n]=[e,i]}for(let e of Array.from(r.style))""===t.style.getPropertyValue(e)&&(o.styleDiff[e]=!1)}else"open"===r&&"DIALOG"===t.tagName&&(t.matches("dialog:modal")?o.attributes.rr_open_mode="modal":o.attributes.rr_open_mode="non-modal");break}case"childList":if(eA(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=>{let r=this.mirror.getId(t),n=q(e.target)?this.mirror.getId($(e.target)):this.mirror.getId(e.target);eA(e.target,this.blockClass,this.blockSelector,!1)||e_(t,this.mirror,this.slimDOMOptions)||-1===this.mirror.getId(t)||(this.addedSet.has(t)?(eH(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===r||function e(t,r){if(q(t))return!1;let n=r.getId(t);if(!r.has(n))return!0;let o=U(t);return(!o||o.nodeType!==t.DOCUMENT_NODE)&&(!o||e(o,r))}(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[e$(r,n)]?eH(this.movedSet,t):(this.removes.push({parentId:n,id:r,isShadow:!!(q(e.target)&&X(e.target))||void 0}),function(e,t){let r=[e];for(;r.length;){let e=r.pop();t.has(e)||(t.add(e),W(e).forEach(e=>r.push(e)))}}(t,this.removesSubTreeCache))),this.mapRemoves.push(t))})}}),b(this,"genAdds",(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(e_(e,this.mirror,this.slimDOMOptions))return;this.movedSet.add(e);let r=null;t&&this.mirror.hasNode(t)&&(r=this.mirror.getId(t)),r&&-1!==r&&(this.movedMap[e$(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);!eA(e,this.blockClass,this.blockSelector,!1)&&(W(e).forEach(e=>
1this.genAdds(e)),eU(e)&&W(G(e)).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()}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 eH(e,t){e.delete(t),W(t).forEach(t=>eH(e,t))}function eq(e,t,r){var n;let o;return 0!==e.size&&(n=e,!!(o=U(t))&&n.has(o))}function eX(e,t){return 0!==e.size&&function e(t,r){let n=U(r);return!!n&&(!!t.has(n)||e(t,n))}(e,t)}let eJ=e=>i?(...t)=>{try{return e(...t)}catch(e){if(i&&!0===i(e))return;throw e}}:e,eY=[];function eK(e){try{if("composedPath"in e){let t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function eZ(e,t){let r=new eG;eY.push(r),r.init(e);let[n,o]=[x("MutationObserver").constructor,O.MutationObserver??(()=>{})],i=new n(eJ(r.processMutations.bind(r)));return i.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),[i,o]}function eQ({scrollCb:e,doc:t,mirror:r,blockClass:n,blockSelector:o,sampling:i}){return eE("scroll",eJ(eT(eJ(i=>{let a=eK(i);if(!a||eA(a,n,o,!0))return;let s=r.getId(a);if(a===t&&t.defaultView){let r=ex(t.defaultView);e({id:s,x:r.left,y:r.top})}else e({id:s,x:a.scrollLeft,y:a.scrollTop})}),i.scroll||100)),t)}let e0=["INPUT","TEXTAREA","SELECT"],e1=new WeakMap;function e2(e){return function e(t,r){if(e5("CSSGroupingRule")&&t.parentRule instanceof CSSGroupingRule||e5("CSSMediaRule")&&t.parentRule instanceof CSSMediaRule||e5("CSSSupportsRule")&&t.parentRule instanceof CSSSupportsRule||e5("CSSConditionRule")&&t.parentRule instanceof CSSConditionRule){let n=Array.from(t.parentRule.cssRules).indexOf(t);return r.unshift(n),e(t.parentRule,r)}if(t.parentStyleSheet){let e=Array.from(t.parentStyleSheet.cssRules).indexOf(t);r.unshift(e)}return r}(e,[])}function e6(e,t,r){let n,o;return e?(e.ownerNode?n=t.getId(e.ownerNode):o=r.getId(e),{styleId:o,id:n}):{}}function e4({mirror:e,stylesheetManager:t},r){var n,o,i;let a=null;a="#document"===r.nodeName?e.getId(r):e.getId($(r));let s="#document"===r.nodeName?null==(n=r.defaultView)?void 0:n.Document:null==(i=null==(o=r.ownerDocument)?void 0:o.defaultView)?void 0:i.ShadowRoot,l=(null==s?void 0:s.prototype)?Object.getOwnPropertyDescriptor(null==s?void 0:s.prototype,"adoptedStyleSheets"):void 0;return null!==a&&-1!==a&&s&&l?(Object.defineProperty(r,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get(){var e;return null==(e=l.get)?void 0:e.call(this)},set(e){var r;let n=null==(r=l.set)?void 0:r.call(this,e);if(null!==a&&-1!==a)try{t.adoptStyleSheets(e,a)}catch(e){}return n}}),eJ(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})})):()=>{}}function e3(e,t={}){let r,n=e.doc.defaultView;if(!n)return()=>{};!function(e,t){let{mutationCb:r,mousemoveCb:n,mouseInteractionCb:o,scrollCb:i,viewportResizeCb:a,inputCb:s,mediaInteractionCb:l,styleSheetRuleCb:u,styleDeclarationCb:d,canvasMutationCb:c,fontCb:h,selectionCb:p,customElementCb:m}=e;e.mutationCb=(...e)=>{t.mutation&&t.mutation(...e),r(...e)},e.mousemoveCb=(...e)=>{t.mousemove&&t.mousemove(...e),n(...e)},e.mouseInteractionCb=(...e)=>{t.mouseInteraction&&t.mouseInteraction(...e),o(...e)},e.scrollCb=(...e)=>{t.scroll&&t.scroll(...e),i(...e)},e.viewportResizeCb=(...e)=>{t.viewportResize&&t.viewportResize(...e),a(...e)},e.inputCb=(...e)=>{t.input&&t.input(...e),s(...e)},e.mediaInteractionCb=(...e)=>{t.mediaInteaction&&t.mediaInteaction(...e),l(...e)},e.styleSheetRuleCb=(...e)=>{t.styleSheetRule&&t.styleSheetRule(...e),u(...e)},e.styleDeclarationCb=(...e)=>{t.styleDeclaration&&t.styleDeclaration(...e),d(...e)},e.canvasMutationCb=(...e)=>{t.canvasMutation&&t.canvasMutation(...e),c(...e)},e.fontCb=(...e)=>{t.font&&t.font(...e),h(...e)}
1,e.selectionCb=(...e)=>{t.selection&&t.selection(...e),p(...e)},e.customElementCb=(...e)=>{t.customElement&&t.customElement(...e),m(...e)}}(e,t);let o=()=>{};e.recordDOM&&([r,o]=eZ(e,e.doc));let i=function({mousemoveCb:e,sampling:t,doc:r,mirror:n}){let o;if(!1===t.mousemove)return()=>{};let i="number"==typeof t.mousemove?t.mousemove:50,a="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500,s=[],l=eT(eJ(t=>{let r=Date.now()-o;e(s.map(e=>(e.timeOffset-=r,e)),t),s=[],o=null}),a),u=eJ(eT(eJ(e=>{let t=eK(e),{clientX:r,clientY:i}=eF(e)?e.changedTouches[0]:e;o||(o=_()),s.push({x:r,y:i,id:n.getId(t),timeOffset:_()-o}),l("u">typeof DragEvent&&e instanceof DragEvent?v.Drag:e instanceof MouseEvent?v.MouseMove:v.TouchMove)}),i,{trailing:!1})),d=[eE("mousemove",u,r),eE("touchmove",u,r),eE("drag",u,r)];return eJ(()=>{d.forEach(e=>e())})}(e),a=function({mouseInteractionCb:e,doc:t,mirror:r,blockClass:n,blockSelector:o,sampling:i}){if(!1===i.mouseInteraction)return()=>{};let a=!0===i.mouseInteraction||void 0===i.mouseInteraction?{}:i.mouseInteraction,s=[],l=null;return Object.keys(M).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]).forEach(i=>{let a=Q(i),u=t=>{let a=eK(t);if(eA(a,n,o,!0))return;let s=null,u=i;if("pointerType"in t){switch(t.pointerType){case"mouse":s=w.Mouse;break;case"touch":s=w.Touch;break;case"pen":s=w.Pen}s===w.Touch?M[i]===M.MouseDown?u="TouchStart":M[i]===M.MouseUp&&(u="TouchEnd"):w.Pen}else eF(t)&&(s=w.Touch);null!==s?(l=s,(u.startsWith("Touch")&&s===w.Touch||u.startsWith("Mouse")&&s===w.Mouse)&&(s=null)):M[i]===M.Click&&(s=l,l=null);let d=eF(t)?t.changedTouches[0]:t;if(!d)return;let c=r.getId(a),{clientX:h,clientY:p}=d;eJ(e)({type:M[u],id:c,x:h,y:p,...null!==s&&{pointerType:s}})};if(window.PointerEvent)switch(M[i]){case M.MouseDown:case M.MouseUp:a=a.replace("mouse","pointer");break;case M.TouchStart:case M.TouchEnd:return}s.push(eE(a,u,t))}),eJ(()=>{s.forEach(e=>e())})}(e),s=eQ(e),l=function({viewportResizeCb:e},{win:t}){let r=-1,n=-1;return eE("resize",eJ(eT(eJ(()=>{let t=eN(),o=eD();(r!==t||n!==o)&&(e({width:Number(o),height:Number(t)}),r=t,n=o)}),200)),t)}(e,{win:n}),u=function({inputCb:e,doc:t,mirror:r,blockClass:n,blockSelector:o,ignoreClass:i,ignoreSelector:a,maskInputOptions:s,maskInputFn:l,sampling:u,userTriggeredOnInput:d}){function c(e){let r=eK(e),u=e.isTrusted,c=r&&r.tagName;if(r&&"OPTION"===c&&(r=B(r)),!r||!c||0>e0.indexOf(c)||eA(r,n,o,!0)||r.classList.contains(i)||a&&r.matches(a))return;let p=r.value,m=!1,f=et(r)||"";"radio"===f||"checkbox"===f?m=r.checked:(s[c.toLowerCase()]||s[f])&&(p=Z({element:r,maskInputOptions:s,tagName:c,type:f,value:p,maskInputFn:l})),h(r,d?{text:p,isChecked:m,userTriggered:u}:{text:p,isChecked:m});let y=r.name;"radio"===f&&y&&m&&t.querySelectorAll(`input[type="radio"][name="${y}"]`).forEach(e=>{if(e!==r){let t=e.value;h(e,d?{text:t,isChecked:!m,userTriggered:!1}:{text:t,isChecked:!m})}})}function h(t,n){let o=e1.get(t);if(!o||o.text!==n.text||o.isChecked!==n.isChecked){e1.set(t,n);let o=r.getId(t);eJ(e)({...n,id:o})}}let p=("last"===u.input?["change"]:["input","change"]).map(e=>eE(e,eJ(c),t)),m=t.defaultView;if(!m)return()=>{p.forEach(e=>e())};let f=m.Object.getOwnPropertyDescriptor(m.HTMLInputElement.prototype,"value"),y=[[m.HTMLInputElement.prototype,"value"],[m.HTMLInputElement.prototype,"checked"],[m.HTMLSelectElement.prototype,"value"],[m.HTMLTextAreaElement.prototype,"value"],[m.HTMLSelectElement.prototype,"selectedIndex"],[m.HTMLOptionElement.prototype,"selected"]];return f&&f.set&&p.push(...y.map(e=>eO(e[0],e[1],{set(){eJ(c)({target:this,isTrusted:!1})}},!1,m))),eJ(()=>{p.forEach(e=>e())})}(e),d=function({mediaInteractionCb:e,blockClass:t,blockSelector:r,mirror:n,sampling:o,doc:i}){let a=eJ(i=>eT(eJ(o=>{let a=eK(o);if(!a||eA(a,t,r,!0))return;let{currentTime:s,volume:l,muted:u,playbackRate:d,loop:c}=a;e({type:i,id:n.getId(a),currentTime:s,volume:l,muted:u,playbackRate:d,loop:c})}),o.media||500)),s=[eE("play",a(I.Play),i),eE("pause",a(I.Pause),i),eE("seeked",a(I.Seeked),i),eE("volumechange",a(I.VolumeChange),i),eE("ratechange",a(I.RateChange),i)];return eJ(()=>
1{s.forEach(e=>e())})}(e),c=()=>{},h=()=>{},p=()=>{},m=()=>{};e.recordDOM&&(c=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:n}){let o,i;if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};let a=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(a,{apply:eJ((n,o,i)=>{let[a,s]=i,{id:l,styleId:u}=e6(o,t,r.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,adds:[{rule:a,index:s}]}),n.apply(o,i)})}),n.CSSStyleSheet.prototype.addRule=function(e,t,r=this.cssRules.length){let o=`${e} { ${t} }`;return n.CSSStyleSheet.prototype.insertRule.apply(this,[o,r])};let s=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:eJ((n,o,i)=>{let[a]=i,{id:s,styleId:l}=e6(o,t,r.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,removes:[{index:a}]}),n.apply(o,i)})}),n.CSSStyleSheet.prototype.removeRule=function(e){return n.CSSStyleSheet.prototype.deleteRule.apply(this,[e])},n.CSSStyleSheet.prototype.replace&&(o=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(o,{apply:eJ((n,o,i)=>{let[a]=i,{id:s,styleId:l}=e6(o,t,r.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,replace:a}),n.apply(o,i)})})),n.CSSStyleSheet.prototype.replaceSync&&(i=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(i,{apply:eJ((n,o,i)=>{let[a]=i,{id:s,styleId:l}=e6(o,t,r.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,replaceSync:a}),n.apply(o,i)})}));let l={};e8("CSSGroupingRule")?l.CSSGroupingRule=n.CSSGroupingRule:(e8("CSSMediaRule")&&(l.CSSMediaRule=n.CSSMediaRule),e8("CSSConditionRule")&&(l.CSSConditionRule=n.CSSConditionRule),e8("CSSSupportsRule")&&(l.CSSSupportsRule=n.CSSSupportsRule));let u={};return Object.entries(l).forEach(([n,o])=>{u[n]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=new Proxy(u[n].insertRule,{apply:eJ((n,o,i)=>{let[a,s]=i,{id:l,styleId:u}=e6(o.parentStyleSheet,t,r.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,adds:[{rule:a,index:[...e2(o),s||0]}]}),n.apply(o,i)})}),o.prototype.deleteRule=new Proxy(u[n].deleteRule,{apply:eJ((n,o,i)=>{let[a]=i,{id:s,styleId:l}=e6(o.parentStyleSheet,t,r.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,removes:[{index:[...e2(o),a]}]}),n.apply(o,i)})})}),eJ(()=>{n.CSSStyleSheet.prototype.insertRule=a,n.CSSStyleSheet.prototype.deleteRule=s,o&&(n.CSSStyleSheet.prototype.replace=o),i&&(n.CSSStyleSheet.prototype.replaceSync=i),Object.entries(l).forEach(([e,t])=>{t.prototype.insertRule=u[e].insertRule,t.prototype.deleteRule=u[e].deleteRule})})}(e,{win:n}),h=e4(e,e.doc),p=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:n},{win:o}){let i=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:eJ((o,a,s)=>{var l;let[u,d,c]=s;if(r.has(u))return i.apply(a,[u,d,c]);let{id:h,styleId:p}=e6(null==(l=a.parentRule)?void 0:l.parentStyleSheet,t,n.styleMirror);return(h&&-1!==h||p&&-1!==p)&&e({id:h,styleId:p,set:{property:u,value:d,priority:c},index:e2(a.parentRule)}),o.apply(a,s)})});let a=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(a,{apply:eJ((o,i,s)=>{var l;let[u]=s;if(r.has(u))return a.apply(i,[u]);let{id:d,styleId:c}=e6(null==(l=i.parentRule)?void 0:l.parentStyleSheet,t,n.styleMirror);return(d&&-1!==d||c&&-1!==c)&&e({id:d,styleId:c,remove:{property:u},index:e2(i.parentRule)}),o.apply(i,s)})}),eJ(()=>{o.CSSStyleDeclaration.prototype.setProperty=i,o.CSSStyleDeclaration.prototype.removeProperty=a})}(e,{win:n}),e.collectFonts&&(m=function({fontCb:e,doc:t}){let r=t.defaultView;if(!r)return()=>{};let n=[],o=new WeakMap,i=r.FontFace;r.FontFace=function(e,t,r){let n=new i(e,t,r);return o.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};let a=F(t.fonts,"add",function(t){return function(r){return setTimeout(eJ(()=>{let t=o.get(r);t&&(e(t),o.delete(r))}),0),t.apply(this,[r])}});return n.push(()=>{r.FontFace=i}),n.push(a),eJ(()=>
1{n.forEach(e=>e())})}(e)));let f=function(e){let{doc:t,mirror:r,blockClass:n,blockSelector:o,selectionCb:i}=e,a=!0,s=eJ(()=>{let e=t.getSelection();if(!e||a&&(null==e?void 0:e.isCollapsed))return;a=e.isCollapsed||!1;let s=[],l=e.rangeCount||0;for(let t=0;t<l;t++){let{startContainer:i,startOffset:a,endContainer:l,endOffset:u}=e.getRangeAt(t);eA(i,n,o,!0)||eA(l,n,o,!0)||s.push({start:r.getId(i),startOffset:a,end:r.getId(l),endOffset:u})}i({ranges:s})});return s(),eE("selectionchange",s)}(e),y=function({doc:e,customElementCb:t}){let r=e.defaultView;return r&&r.customElements?F(r.customElements,"define",function(e){return function(r,n,o){try{t({define:{name:r}})}catch(e){console.warn(`Custom element callback failed for ${r}`)}return e.apply(this,[r,n,o])}}):()=>{}}(e),g=[];for(let t of e.plugins)g.push(t.observer(t.callback,n,t.options));return eJ(()=>{eY.forEach(e=>e.reset()),null==r||r.disconnect(),o(),i(),a(),s(),l(),u(),d(),c(),h(),p(),m(),f(),y(),g.forEach(e=>e())})}function e5(e){return void 0!==window[e]}function e8(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class e9{constructor(e){b(this,"iframeIdToRemoteIdMap",new WeakMap),b(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}getId(e,t,r,n){let o=r||this.getIdToRemoteIdMap(e),i=n||this.getRemoteIdToIdMap(e),a=o.get(t);return a||(a=this.generateIdFn(),o.set(t,a),i.set(a,t)),a}getIds(e,t){let r=this.getIdToRemoteIdMap(e),n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,r,n))}getRemoteId(e,t,r){let n=r||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;let o=n.get(t);return o||-1}getRemoteIds(e,t){let r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,r))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){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 e7{constructor(e){b(this,"iframes",new WeakMap),b(this,"crossOriginIframeMap",new WeakMap),b(this,"crossOriginIframeMirror",new e9(ec)),b(this,"crossOriginIframeStyleMirror"),b(this,"crossOriginIframeRootIdMap",new WeakMap),b(this,"mirror"),b(this,"mutationCb"),b(this,"wrappedEmit"),b(this,"loadListener"),b(this,"stylesheetManager"),b(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new e9(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 r,n;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&(null==(r=e.contentWindow)||r.addEventListener("message",this.handleMessage.bind(this))),null==(n=this.loadListener)||n.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){if("rrweb"!==e.data.type||e.origin!==e.data.origin||!e.source)return;let t=this.crossOriginIframeMap.get(e.source);if(!t)return;let r=this.transformCrossOriginEvent(t,e.data.event);r&&this.wrappedEmit(r,e.data.isCheckout)}transformCrossOriginEvent(e,t){var r;switch(t.type){case S.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let r=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,r),this.patchRootIdOnNode(t.data.node,r),{timestamp:t.timestamp,type:S.IncrementalSnapshot,data:{source:v.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case S.Meta:case S.Load:case S.DomContentLoaded:break;case S.Plugin:return t;case S.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case S.IncrementalSnapshot:switch(t.data.source){case v.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);let r=this.crossOriginIframeRootIdMap.get(e);r&&this.patchRootIdOnNode(t.node,r)}
1),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 v.Drag:case v.TouchMove:case v.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case v.ViewportResize:return!1;case v.MediaInteraction:case v.MouseInteraction:case v.Scroll:case v.CanvasMutation:case v.Input:return this.replaceIds(t.data,e,["id"]),t;case v.StyleSheetRule:case v.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case v.Font:return t;case v.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case v.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(r=t.data.styles)||r.forEach(t=>{this.replaceStyleIds(t,e,["styleId"])}),t}}return!1}replace(e,t,r,n){for(let o of n)(Array.isArray(t[o])||"number"==typeof t[o])&&(Array.isArray(t[o])?t[o]=e.getIds(r,t[o]):t[o]=e.getId(r,t[o]));return t}replaceIds(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)}replaceStyleIds(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===E.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class te{constructor(e){b(this,"shadowDoms",new WeakSet),b(this,"mutationCb"),b(this,"scrollCb"),b(this,"bypassOptions"),b(this,"mirror"),b(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(!X(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e);let[r]=eZ({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(eQ({...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))),this.restoreHandlers.push(e4({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){let r=this;this.restoreHandlers.push(F(e.prototype,"attachShadow",function(e){return function(n){let o=e.call(this,n),i=G(this);return i&&ez(this)&&r.addShadowRoot(i,t),o}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}for(var tt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",tr="u"<typeof Uint8Array?[]:new Uint8Array(256),tn=0;tn<tt.length;tn++)tr[tt.charCodeAt(tn)]=tn;var to=function(e){var t,r=new Uint8Array(e),n=r.length,o="";for(t=0;t<n;t+=3)o+=tt[r[t]>>2],o+=tt[(3&r[t])<<4|r[t+1]>>4],o+=tt[(15&r[t+1])<<2|r[t+2]>>6],o+=tt[63&r[t+2]];return n%3==2?o=o.substring(0,o.length-1)+"=":n%3==1&&(o=o.substring(0,o.length-2)+"=="),o};let ti=new Map,ta=(e,t,r)=>{let n;if(!e||!(tl(e,t)||"object"==typeof e))return;let o=e.constructor.name,i=((n=ti.get(r))||(n=new Map,ti.set(r,n)),n.has(o)||n.set(o,[]),n.get(o)),a=i.indexOf(e);return -1===a&&(a=i.length,i.push(e)),a},ts=(e,t,r)=>e.map(e=>(function e(t,r,n){if(t instanceof Array)return t.map(t=>e(t,r,n));if(null===t);else if(t instanceof Float32Array||t instanceof Float64Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray)return{rr_type:t.constructor.name,args:[Object.values(t)]};else if(t instanceof ArrayBuffer)return{rr_type:t.constructor.name,base64:to(t)};else if(t instanceof DataView)return{rr_type:t.constructor.name,args:[e(t.buffer,r,n),t.byteOffset,t.byteLength]};else if(t instanceof HTMLImageElement){let e=t.constructor.name,{src:r}=t;return{rr_type:e,src:r}}else if(t instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:t.toDataURL()};else if(t instanceof ImageData)return{rr_type:t.constructor.name,args:[e(t.data,r,n),t.width,t.height]};else if(tl(t,r)||"object"==typeof t)return{rr_type:t.constructor.name,index:ta(t,r,n)};return t})(e,t,r)),tl=(e,t)=>
1!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(e=>"function"==typeof t[e]).find(r=>e instanceof t[r]);function tu(e,t,r,n){let o=[];try{let i=F(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(o,...i){if(!eA(this,t,r,!0)){let e="experimental-webgl"===o?"webgl":o;if("__context"in this||(this.__context=e),n&&["webgl","webgl2"].includes(e))if(i[0]&&"object"==typeof i[0]){let e=i[0];e.preserveDrawingBuffer||(e.preserveDrawingBuffer=!0)}else i.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[o,...i])}});o.push(i)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{o.forEach(e=>e())}}function td(e,t,r,n,o,i){let a=[];for(let s of Object.getOwnPropertyNames(e))if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(s))try{if("function"!=typeof e[s])continue;let l=F(e,s,function(e){return function(...a){let l=e.apply(this,a);if(ta(l,i,this),"tagName"in this.canvas&&!eA(this.canvas,n,o,!0)){let e=ts(a,i,this),n={type:t,property:s,args:e};r(this.canvas,n)}return l}});a.push(l)}catch{let n=eO(e,s,{set(e){r(this.canvas,{type:t,property:s,args:[e],setter:!0})}});a.push(n)}return a}let tc='(function() {\n "use strict";\n var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";\n var lookup = typeof Uint8Array === "undefined" ? [] : new Uint8Array(256);\n for (var i = 0; i < chars.length; i++) {\n lookup[chars.charCodeAt(i)] = i;\n }\n var encode = function(arraybuffer) {\n var bytes = new Uint8Array(arraybuffer), i2, len = bytes.length, base64 = "";\n for (i2 = 0; i2 < len; i2 += 3) {\n base64 += chars[bytes[i2] >> 2];\n base64 += chars[(bytes[i2] & 3) << 4 | bytes[i2 + 1] >> 4];\n base64 += chars[(bytes[i2 + 1] & 15) << 2 | bytes[i2 + 2] >> 6];\n base64 += chars[bytes[i2 + 2] & 63];\n }\n if (len % 3 === 2) {\n base64 = base64.substring(0, base64.length - 1) + "=";\n } else if (len % 3 === 1) {\n base64 = base64.substring(0, base64.length - 2) + "==";\n }\n return base64;\n };\n const lastBlobMap = /* @__PURE__ */ new Map();\n const transparentBlobMap = /* @__PURE__ */ new Map();\n async function getTransparentBlobFor(width, height, dataURLOptions) {\n const id = `${width}-${height}`;\n if ("OffscreenCanvas" in globalThis) {\n if (transparentBlobMap.has(id)) return transparentBlobMap.get(id);\n const offscreen = new OffscreenCanvas(width, height);\n offscreen.getContext("2d");\n const blob = await offscreen.convertToBlob(dataURLOptions);\n const arrayBuffer = await blob.arrayBuffer();\n const base64 = encode(arrayBuffer);\n transparentBlobMap.set(id, base64);\n return base64;\n } else {\n return "";\n }\n }\n const worker = self;\n worker.onmessage = async function(e) {\n if ("OffscreenCanvas" in globalThis) {\n const { id, bitmap, width, height, dataURLOptions } = e.data;\n const transparentBase64 = getTransparentBlobFor(\n width,\n height,\n dataURLOptions\n );\n const offscreen = new OffscreenCanvas(width, height);\n const ctx = offscreen.getContext("2d");\n ctx.drawImage(bitmap, 0, 0);\n bitmap.close();\n const blob = await offscreen.convertToBlob(dataURLOptions);\n const type = blob.type;\n const arrayBuffer = await blob.arrayBuffer();\n const base64 = encode(arrayBuffer);\n if (!lastBlobMap.has(id) && await transparentBase64 === base64) {\n lastBlobMap.set(id, base64);\n return worker.postMessage({ id });\n }\n if (lastBlobMap.get(id) === base64) return worker.postMessage({ id });\n worker.postMessage({\n id,\n type,\n base64,\n width,\n height\n });\n lastBlobMap.set(id, base64);\n } else {\n return worker.postMessage({ id: e.data.id });\n }\n };\n})();\n//# sourceMappingURL=image-bitmap-data-url-worker-IJpC7g_b.js.map\n',th="u">typeof self&&self.Blob&&new Blob([tc],{type:"text/javascript;charset=utf-8"});function tp(e){let t;try{if(!(t=th&&(self.URL||self.webkitURL).createObjectURL(th)))throw"";let r=new Worker(t,{name:null==e?void 0:e.name});return r.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(t)}),r}catch(t){return new Worker("data:text/javascript;
1charset=utf-8,"+encodeURIComponent(tc),{name:null==e?void 0:e.name})}finally{t&&(self.URL||self.webkitURL).revokeObjectURL(t)}}class tm{constructor(e){b(this,"pendingCanvasMutations",new Map),b(this,"rafStamps",{latestId:0,invokeId:null}),b(this,"mirror"),b(this,"mutationCb"),b(this,"resetObservers"),b(this,"frozen",!1),b(this,"locked",!1),b(this,"processMutation",(e,t)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!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:r,blockClass:n,blockSelector:o,recordCanvas:i,dataURLOptions:a}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,i&&"all"===t&&this.initCanvasMutationObserver(r,n,o),i&&"number"==typeof t&&this.initCanvasFPSObserver(t,r,n,o,{dataURLOptions:a})}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,r,n,o){let i,a=tu(t,r,n,!0),s=new Map,l=new tp;l.onmessage=e=>{let{id:t}=e.data;if(s.set(t,!1),!("base64"in e.data))return;let{base64:r,type:n,width:o,height:i}=e.data;this.mutationCb({id:t,type:C["2D"],commands:[{property:"clearRect",args:[0,0,o,i]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:r}],type:n}]},0,0]}]})};let u=1e3/e,d=0,c=e=>{let a;if(d&&e-d<u){i=requestAnimationFrame(c);return}d=e,(a=[],t.document.querySelectorAll("canvas").forEach(e=>{eA(e,r,n,!0)||a.push(e)}),a).forEach(async e=>{var t;let r=this.mirror.getId(e);if(s.get(r)||0===e.width||0===e.height)return;if(s.set(r,!0),["webgl","webgl2"].includes(e.__context)){let r=e.getContext(e.__context);(null==(t=null==r?void 0:r.getContextAttributes())?void 0:t.preserveDrawingBuffer)===!1&&r.clear(r.COLOR_BUFFER_BIT)}let n=await createImageBitmap(e);l.postMessage({id:r,bitmap:n,width:e.width,height:e.height,dataURLOptions:o.dataURLOptions},[n])}),i=requestAnimationFrame(c)};i=requestAnimationFrame(c),this.resetObservers=()=>{a(),cancelAnimationFrame(i)}}initCanvasMutationObserver(e,t,r){var n;let o;this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let i=tu(e,t,r,!1),a=function(e,t,r,n){let o=[];for(let i of Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype))try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[i])continue;let a=F(t.CanvasRenderingContext2D.prototype,i,function(o){return function(...a){return eA(this.canvas,r,n,!0)||setTimeout(()=>{let r=ts(a,t,this);e(this.canvas,{type:C["2D"],property:i,args:r})},0),o.apply(this,a)}});o.push(a)}catch{let r=eO(t.CanvasRenderingContext2D.prototype,i,{set(t){e(this.canvas,{type:C["2D"],property:i,args:[t],setter:!0})}});o.push(r)}return()=>{o.forEach(e=>e())}}(this.processMutation.bind(this),e,t,r),s=(n=this.processMutation.bind(this),o=[],void 0!==e.WebGLRenderingContext&&o.push(...td(e.WebGLRenderingContext.prototype,C.WebGL,n,t,r,e)),void 0!==e.WebGL2RenderingContext&&o.push(...td(e.WebGL2RenderingContext.prototype,C.WebGL2,n,t,r,e)),()=>{o.forEach(e=>e())});this.resetObservers=()=>{i(),a(),s()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let e=t=>{this.rafStamps.latestId=t,requestAnimationFrame(e)};requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{let r=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,r)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;let r=this.pendingCanvasMutations.get(e);if(!r||-1===t)return;let n=r.map(e=>{let{type:t,...r}=e;return r}),{type:o}=r[0];this.mutationCb({id:t,type:o,commands:n}),this.pendingCanvasMutations.delete(e)}}class tf{constructor(e){b(this,"trackedLinkElements",new WeakSet),b(this,"mutationCb"),b(this,"adoptedStyleSheetCb"),b(this,"styleMirror",new eB),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;let r={id:t,styleIds:[]},n=[];for(let t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),n.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,r)=>({rule:Y(e,t.href),index:r}))})),r.styleIds.push(e)}n.length>0&&(r.styles=n),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class ty{constructor(){b(this,"nodeMap",new WeakMap),b(this,"active",!1)}inOtherBuffer(e,t){let r=this.nodeMap.get(e);return r&&Array.from(r).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 tg=!1;try{if(2!==Array.from([1],e=>2*e)[0]){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=(null==(y=e.contentWindow)?void 0:y.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}let tb=new K;function tS(e={}){let t,{emit:r,checkoutEveryNms:n,checkoutEveryNth:o,blockClass:u="rr-block",blockSelector:d=null,ignoreClass:c="rr-ignore",ignoreSelector:h=null,maskTextClass:p="rr-mask",maskTextSelector:m=null,inlineStylesheet:f=!0,maskAllInputs:y,maskInputOptions:g,slimDOMOptions:b,maskInputFn:M,maskTextFn:w,hooks:C,packFn:I,sampling:E={},dataURLOptions:k={},mousemoveWait:R,recordDOM:T=!0,recordCanvas:O=!1,recordCrossOriginIframes:x=!1,recordAfter:N="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:D=!1,collectFonts:L=!1,inlineImages:A=!1,plugins:F,keepIframeSrcFn:P=()=>!1,ignoreCSSAttributes:W=new Set([]),errorHandler:U}=e;i=U;let B=!x||window.parent===window,j=!1;if(!B)try{window.parent.document&&(j=!1)}catch(e){j=!0}if(B&&!r)throw Error("emit function is required");if(!B&&!j)return()=>{};void 0!==R&&void 0===E.mousemove&&(E.mousemove=R),tb.reset();let z=!0===y?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:void 0!==g?g:{password:!0},V=ew(b);!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}();let $=0,H=e=>{for(let t of F||[])t.eventProcessor&&(e=t.eventProcessor(e));return I&&!j&&(e=I(e)),e};a=(e,i)=>{var a;if(e.timestamp=_(),(null==(a=eY[0])?void 0:a.isFrozen())&&e.type!==S.FullSnapshot&&(e.type!==S.IncrementalSnapshot||e.data.source!==v.Mutation)&&eY.forEach(e
1=>e.unfreeze()),B)null==r||r(H(e),i);else if(j){let t={type:"rrweb",event:H(e),origin:window.location.origin,isCheckout:i};window.parent.postMessage(t,"*")}if(e.type===S.FullSnapshot)t=e,$=0;else if(e.type===S.IncrementalSnapshot){if(e.data.source===v.Mutation&&e.data.isAttachIframe)return;$++;let r=o&&$>=o,i=n&&e.timestamp-t.timestamp>n;(r||i)&&s(!0)}};let q=e=>{a({type:S.IncrementalSnapshot,data:{source:v.Mutation,...e}})},X=e=>a({type:S.IncrementalSnapshot,data:{source:v.Scroll,...e}}),J=e=>a({type:S.IncrementalSnapshot,data:{source:v.CanvasMutation,...e}}),Y=new tf({mutationCb:q,adoptedStyleSheetCb:e=>a({type:S.IncrementalSnapshot,data:{source:v.AdoptedStyleSheet,...e}})}),Z=new e7({mirror:tb,mutationCb:q,stylesheetManager:Y,recordCrossOriginIframes:x,wrappedEmit:a});for(let e of F||[])e.getMirror&&e.getMirror({nodeMirror:tb,crossOriginIframeMirror:Z.crossOriginIframeMirror,crossOriginIframeStyleMirror:Z.crossOriginIframeStyleMirror});let Q=new ty;l=new tm({recordCanvas:O,mutationCb:J,win:window,blockClass:u,blockSelector:d,mirror:tb,sampling:E.canvas,dataURLOptions:k});let ee=new te({mutationCb:q,scrollCb:X,bypassOptions:{blockClass:u,blockSelector:d,maskTextClass:p,maskTextSelector:m,inlineStylesheet:f,maskInputOptions:z,dataURLOptions:k,maskTextFn:w,maskInputFn:M,recordCanvas:O,inlineImages:A,sampling:E,slimDOMOptions:V,iframeManager:Z,stylesheetManager:Y,canvasManager:l,keepIframeSrcFn:P,processedNodeManager:Q},mirror:tb});s=(e=!1)=>{if(!T)return;a({type:S.Meta,data:{href:window.location.href,width:eD(),height:eN()}},e),Y.reset(),ee.init(),eY.forEach(e=>e.lock());let t=function(e,t){let{mirror:r=new K,blockClass:n="rr-block",blockSelector:o=null,maskTextClass:i="rr-mask",maskTextSelector:a=null,inlineStylesheet:s=!0,inlineImages:l=!1,recordCanvas:u=!1,maskAllInputs:d=!1,maskTextFn:c,maskInputFn:h,slimDOM:p=!1,dataURLOptions:m,preserveWhiteSpace:f,onSerialize:y,onIframeLoad:g,iframeLoadTimeout:b,onStylesheetLoad:S,stylesheetLoadTimeout:v,keepIframeSrcFn:M=()=>!1}=t;return eC(e,{doc:e,mirror:r,blockClass:n,blockSelector:o,maskTextClass:i,maskTextSelector:a,skipChild:!1,inlineStylesheet:s,maskInputOptions:!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,maskTextFn:c,maskInputFn:h,slimDOMOptions:ew(p),dataURLOptions:m,inlineImages:l,recordCanvas:u,preserveWhiteSpace:f,onSerialize:y,onIframeLoad:g,iframeLoadTimeout:b,onStylesheetLoad:S,stylesheetLoadTimeout:v,keepIframeSrcFn:M,newlyAddedElement:!1})}(document,{mirror:tb,blockClass:u,blockSelector:d,maskTextClass:p,maskTextSelector:m,inlineStylesheet:f,maskAllInputs:z,maskTextFn:w,maskInputFn:M,slimDOM:V,dataURLOptions:k,recordCanvas:O,inlineImages:A,onSerialize:e=>{eP(e,tb)&&Z.addIframe(e),eW(e,tb)&&Y.trackLinkElement(e),eU(e)&&ee.addShadowRoot(G(e),document)},onIframeLoad:(e,t)=>{Z.attachIframe(e,t),ee.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{Y.attachLinkElement(e,t)},keepIframeSrcFn:P});if(!t)return console.warn("Failed to snapshot the document");a({type:S.FullSnapshot,data:{node:t,initialOffset:ex(window)}},e),eY.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Y.adoptStyleSheets(document.adoptedStyleSheets,tb.getId(document))};try{let e=[],t=e=>{var t;return eJ(e3)({mutationCb:q,mousemoveCb:(e,t)=>a({type:S.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>a({type:S.IncrementalSnapshot,data:{source:v.MouseInteraction,...e}}),scrollCb:X,viewportResizeCb:e=>a({type:S.IncrementalSnapshot,data:{source:v.ViewportResize,...e}}),inputCb:e=>a({type:S.IncrementalSnapshot,data:{source:v.Input,...e}}),mediaInteractionCb:e=>a({type:S.IncrementalSnapshot,data:{source:v.MediaInteraction,...e}}),styleSheetRuleCb:e=>a({type:S.IncrementalSnapshot,data:{source:v.StyleSheetRule,...e}}),styleDeclarationCb:e=>a({type:S.IncrementalSnapshot,data:{source:v.StyleDeclaration,...e}}),canvasMutationCb:J,fontCb:e=>a({type:S.IncrementalSnapshot,data:{source:v.Font,...e}}),selectionCb:e=>{a({type:S.IncrementalSnapshot,data:{source:v.Selection,...e}})},customElementCb:e=>{a({type:S.IncrementalSnapshot,data:{source:v.CustomElement,...e}})},blockClass:u,ignoreClass:c,ignoreSelector:h,maskTextClass:p,maskTextSelector:m,maskInputOptions:z,inlineStylesheet:f,sampling:E,recordDOM:T,recordCanvas:O,inlineImages:A,userTriggeredOnInput:D,collectFonts:L,doc:e,maskInputFn:M,maskTextFn:w,keepIframeSrcFn:P,blockSelector:d,slimDOMOptions:V,dataURLOptions:k,mirror:tb,iframeManager:Z,stylesheetManager:Y,shadowDomManager:ee,processedNodeManager:Q,canvasManager:l,ignoreCSSAttributes:W,plugins:(null==(t=null==F?void 0:F.filter(e=>e.observer))?void 0:t.map(e=>({observer:e.observer,options:e.options,callback:t=>a({type:S.Plugin,data:{plugin:e.name,payload:t}}
1)})))||[]},C)};Z.addLoadListener(r=>{try{e.push(t(r.contentDocument))}catch(e){console.warn(e)}});let r=()=>{s(),e.push(t(document)),tg=!0};return["interactive","complete"].includes(document.readyState)?r():(e.push(eE("DOMContentLoaded",()=>{a({type:S.DomContentLoaded,data:{}}),"DOMContentLoaded"===N&&r()})),e.push(eE("load",()=>{a({type:S.Load,data:{}}),"load"===N&&r()},window))),()=>{e.forEach(e=>{try{e()}catch(e){String(e).toLowerCase().includes("cross-origin")||console.warn(e)}}),Q.destroy(),tg=!1,i=void 0}}catch(e){console.warn(e)}}tS.addCustomEvent=(e,t)=>{if(!tg)throw Error("please add custom event after start recording");a({type:S.Custom,data:{tag:e,payload:t}})},tS.freezePage=()=>{eY.forEach(e=>e.freeze())},tS.takeFullSnapshot=e=>{if(!tg)throw Error("please take full snapshot after start recording");s(e)},tS.mirror=tb}}]);
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.