1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="2fa3ee9c-a667-465a-b552-19058f601ab1",e._sentryDebugIdIdentifier="sentry-dbid-2fa3ee9c-a667-465a-b552-19058f601ab1")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1963],{51963:(e,t,r)=>{r.r(t),r.d(t,{EventType:()=>i,IncrementalSource:()=>s,MouseInteractions:()=>l,PLUGIN_NAME:()=>tq,Replayer:()=>ry,ReplayerEvents:()=>f,addCustomEvent:()=>eZ,freezePage:()=>e0,getRecordConsolePlugin:()=>tQ,getReplayConsolePlugin:()=>tZ,mirror:()=>Z,pack:()=>tP,record:()=>eK,unpack:()=>tW,utils:()=>v});var n,o,a,i,s,l,u,c,f,d,p,h,m,v={};r.r(v),r.d(v,{TreeIndex:()=>ec,_mirror:()=>Z,createMirror:()=>J,getBaseDimension:()=>eh,getWindowHeight:()=>en,getWindowWidth:()=>eo,hasShadowRoot:()=>em,hookSetter:()=>et,isAncestorRemoved:()=>es,isBlocked:()=>ea,isIframeINode:()=>ep,isIgnored:()=>ei,isTouchEvent:()=>el,iterateResolveTree:()=>ed,on:()=>$,patch:()=>er,polyfill:()=>eu,queueToResolveTrees:()=>ef,throttle:()=>ee});var y={};r.r(y),r.d(y,{default:()=>t0});var g=function(){return(g=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function b(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function S(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,a=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i}function w(e,t,r){if(r||2==arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function x(e){return e.nodeType===e.ELEMENT_NODE}function C(e){var t=null==e?void 0:e.host;return!!(t&&t.shadowRoot&&t.shadowRoot===e)}function T(e){var t=e.maskInputOptions,r=e.tagName,n=e.type,o=e.value,a=e.maskInputFn,i=o||"";return(t[r.toLowerCase()]||t[n])&&(i=a?a(i):"*".repeat(i.length)),i}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(n||(n={}));var E="__rrweb_original__",k=1,I=RegExp("[^a-z0-9-_:]");function M(e){try{var t=e.rules||e.cssRules;return t?Array.from(t).map(N).join(""):null}catch(e){return null}}function N(e){var t=e.cssText;if("styleSheet"in e)try{t=M(e.styleSheet)||t}catch(e){}return t}var _=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,O=/^(?!www\.|(?:http|ftp)s?:\/\/|[A-Za-z]:\\|\/\/|#).*/,R=/^(data:)([^,]*),(.*)/i;function L(e,t){return(e||"").replace(_,function(e,r,n,o,a,i){var s=n||a||i,l=r||o||"";if(!s)return e;if(!O.test(s)||R.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+")";var u=t.split("/"),c=s.split("/");u.pop();for(var f=0;f<c.length;f++){var d=c[f];"."!==d&&(".."===d?u.pop():u.push(d))}return"url("+l+u.join("/")+l+")"})}var D=/^[^ \t\n\r\u000c]+/,A=/^[, \t\n\r\u000c]+/;function F(e,t){if(!t||""===t.trim())return t;var r=e.createElement("a");return r.href=t,r.href}function P(){var e=document.createElement("a");return e.href="",e.href}function W(e,t,r,n){if("src"===r||"href"===r&&n||"xlink:href"===r&&n&&"#"!==n[0])return F(e,n);if("background"===r&&n&&("table"===t||"td"===t||"th"===t))return F(e,n);if("srcset"===r&&n)return function(e,t){if(""===t.trim())return t;var r=0;function n(e){var n,o=e.exec(t.substring(r));return o?(n=o[0],r+=n.length,n):""}for(var o=[];n(A),!(r>=t.length);){var a=n(D);if(","===a.slice(-1))a=F(e,a.substring(0,a.length-1)),o.push(a);else{var i="";a=F(e,a);for(var s=!1;;){var l=t.charAt(r);if(""===l){o.push((a+i).trim());break}if(s)")"===l&&(s=!1);else if(","===l){r+=1,o.push((a+i).trim());break}else"("===l&&(s=!0);i+=l,r+=1}}}return o.join(", ")}(e,n);if("style"===r&&n)return L(n,P());else if("object"===t&&"data"===r&&n)return F(e,n);else return n}function j(e,t,r){if(!e)return!1;if(e.nodeType===e.ELEMENT_NODE){if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var n=0;n<e.classList.length;n++){var o=e.classList[n];if(t.test(o))return!0}return!!(r&&e.matches(r))||j(e.parentNode,t,r)}
1return e.nodeType===e.TEXT_NODE,j(e.parentNode,t,r)}function U(e){return void 0===e?"":e.toLowerCase()}function z(e,t){var r,i=t.doc,s=t.map,l=t.blockClass,u=t.blockSelector,c=t.maskTextClass,f=t.maskTextSelector,d=t.skipChild,p=void 0!==d&&d,h=t.inlineStylesheet,m=void 0===h||h,v=t.maskInputOptions,y=void 0===v?{}:v,g=t.maskTextFn,b=t.maskInputFn,S=t.slimDOMOptions,w=t.dataURLOptions,N=void 0===w?{}:w,_=t.inlineImages,O=void 0!==_&&_,R=t.recordCanvas,D=void 0!==R&&R,A=t.onSerialize,F=t.onIframeLoad,H=t.iframeLoadTimeout,V=void 0===H?5e3:H,G=t.keepIframeSrcFn,B=void 0===G?function(){return!1}:G,Y=t.preserveWhiteSpace,X=void 0===Y||Y,q=function(e,t){var r,i,s=t.doc,l=t.blockClass,u=t.blockSelector,c=t.maskTextClass,f=t.maskTextSelector,d=t.inlineStylesheet,p=t.maskInputOptions,h=void 0===p?{}:p,m=t.maskTextFn,v=t.maskInputFn,y=t.dataURLOptions,g=void 0===y?{}:y,b=t.inlineImages,S=t.recordCanvas,w=t.keepIframeSrcFn;if(s.__sn){var x=s.__sn.id;i=1===x?void 0:x}switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:n.Document,childNodes:[],compatMode:e.compatMode,rootId:i};return{type:n.Document,childNodes:[],rootId:i};case e.DOCUMENT_TYPE_NODE:return{type:n.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:i};case e.ELEMENT_NODE:for(var C=function(e,t,r){if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var n=0;n<e.classList.length;n++){var o=e.classList[n];if(t.test(o))return!0}return!!r&&e.matches(r)}(e,l,u),k=function(e){if(e instanceof HTMLFormElement)return"form";var t=e.tagName.toLowerCase().trim();return I.test(t)?"div":t}(e),N={},_=0,O=Array.from(e.attributes);_<O.length;_++){var R=O[_],D=R.name,A=R.value;N[D]=W(s,k,D,A)}if("link"===k&&d){var F=Array.from(s.styleSheets).find(function(t){return t.href===e.href}),U=null;F&&(U=M(F)),U&&(delete N.rel,delete N.href,N._cssText=L(U,F.href))}if("style"===k&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){var U=M(e.sheet);U&&(N._cssText=L(U,P()))}if("input"===k||"textarea"===k||"select"===k){var A=e.value;"radio"!==N.type&&"checkbox"!==N.type&&"submit"!==N.type&&"button"!==N.type&&A?N.value=T({type:N.type,tagName:k,value:A,maskInputOptions:h,maskInputFn:v}):e.checked&&(N.checked=e.checked)}if("option"===k&&(e.selected&&!h.select?N.selected=!0:delete N.selected),"canvas"===k&&S){if("2d"===e.__context)!function(e){var t=e.getContext("2d");if(!t)return!0;for(var r=0;r<e.width;r+=50)for(var n=0;n<e.height;n+=50){var o=t.getImageData;if(new Uint32Array((E in o?o[E]:o).call(t,r,n,Math.min(50,e.width-r),Math.min(50,e.height-n)).data.buffer).some(function(e){return 0!==e}))return!1}return!0}(e)&&(N.rr_dataURL=e.toDataURL(g.type,g.quality));else if(!("__context"in e)){var z=e.toDataURL(g.type,g.quality),H=document.createElement("canvas");H.width=e.width,H.height=e.height,z!==H.toDataURL(g.type,g.quality)&&(N.rr_dataURL=z)}}if("img"===k&&b){o||(a=(o=s.createElement("canvas")).getContext("2d"));var V=e.crossOrigin;e.crossOrigin="anonymous";var G=function(){try{o.width=e.naturalWidth,o.height=e.naturalHeight,a.drawImage(e,0,0),N.rr_dataURL=o.toDataURL(g.type,g.quality)}catch(t){console.warn("Cannot inline img src="+e.currentSrc+"! Error: "+t)}V?N.crossOrigin=V:delete N.crossOrigin};e.complete&&0!==e.naturalWidth?G():e.onload=G}if(("audio"===k||"video"===k)&&(N.rr_mediaState=e.paused?"paused":"played",N.rr_mediaCurrentTime=e.currentTime),e.scrollLeft&&(N.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(N.rr_scrollTop=e.scrollTop),C){var B=e.getBoundingClientRect(),Y=B.width,X=B.height;N={class:N.class,rr_width:Y+"px",rr_height:X+"px"}}return"iframe"!==k||w(N.src)||(e.contentDocument||(N.rr_src=N.src),delete N.src),{type:n.Element,tagName:k,attributes:N,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:C,rootId:i};case e.TEXT_NODE:var q,Q=e.parentNode&&e.parentNode.tagName,$=e.textContent,J="STYLE"===Q||void 0,K="SCRIPT"===Q||void 0;if(J&&$){try{e.nextSibling||e.previousSibling||(null==(r=e.parentNode.sheet)?void 0:r.cssRules)&&($=(q=e.parentNode.sheet).cssRules?Array.from(q.cssRules).map(function(e){return e.cssText||""}).join(""):"")}catch(t){console.warn("Cannot get CSS styles from text's parentNode. Error: "+t,e)}$=L($,P())}return K&&($="SCRIPT_PLACEHOLDER"),!J&&!K&&j(e,c,f)&&$&&($=m?m($):$.replace(/[\S]/g,"*")),{type:n.Text,textContent:$||"",isStyle:J,rootId:i};case e.CDATA_SECTION_NODE:return{type:n.CDATA,textContent:"",rootId:i};case e.COMMENT_NODE:return{type:n.Comment,textContent:e.textContent||"",rootId:i};default:return!1}}(e,{doc:i,blockClass:l,blockSelector:u,maskTextClass:c,maskTextSelector:f,inlineStylesheet:m,maskInputOptions:y,maskTextFn:g,maskInputFn:b,dataURLOptions:N,inlineImages:O,recordCanvas:D,keepIframeSrcFn:B});if(!q)return console.warn(e,"not serialized"),null;r="__sn"in e?e.__sn.id:!function(e,t){if(t.comment&&e.type===n.Comment)return!0;
1if(e.type===n.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&"preload"===e.attributes.rel&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&e.attributes.href.endsWith(".js")))return!0;else if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(U(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===U(e.attributes.name)||"icon"===U(e.attributes.rel)||"apple-touch-icon"===U(e.attributes.rel)||"shortcut icon"===U(e.attributes.rel))))return!0;else if("meta"===e.tagName){if(t.headMetaDescKeywords&&U(e.attributes.name).match(/^description|keywords$/))return!0;else if(t.headMetaSocial&&(U(e.attributes.property).match(/^(og|twitter|fb):/)||U(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===U(e.attributes.name)))return!0;else if(t.headMetaRobots&&("robots"===U(e.attributes.name)||"googlebot"===U(e.attributes.name)||"bingbot"===U(e.attributes.name)))return!0;else if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===U(e.attributes.name)||"generator"===U(e.attributes.name)||"framework"===U(e.attributes.name)||"publisher"===U(e.attributes.name)||"progid"===U(e.attributes.name)||U(e.attributes.property).match(/^article:/)||U(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===U(e.attributes.name)||"yandex-verification"===U(e.attributes.name)||"csrf-token"===U(e.attributes.name)||"p:domain_verify"===U(e.attributes.name)||"verify-v1"===U(e.attributes.name)||"verification"===U(e.attributes.name)||"shopify-checkout-api-token"===U(e.attributes.name)))return!0}}return!1}(q,S)&&(X||q.type!==n.Text||q.isStyle||q.textContent.replace(/^\s+|\s+$/gm,"").length)?k++:-2;var Q=Object.assign(q,{id:r});if(e.__sn=Q,-2===r)return null;s[r]=e,A&&A(e);var $=!p;if(Q.type===n.Element&&($=$&&!Q.needBlock,delete Q.needBlock,e.shadowRoot&&(Q.isShadowHost=!0)),(Q.type===n.Document||Q.type===n.Element)&&$){S.headWhitespace&&q.type===n.Element&&"head"===q.tagName&&(X=!1);for(var J={doc:i,map:s,blockClass:l,blockSelector:u,maskTextClass:c,maskTextSelector:f,skipChild:p,inlineStylesheet:m,maskInputOptions:y,maskTextFn:g,maskInputFn:b,slimDOMOptions:S,dataURLOptions:N,inlineImages:O,recordCanvas:D,preserveWhiteSpace:X,onSerialize:A,onIframeLoad:F,iframeLoadTimeout:V,keepIframeSrcFn:B},K=0,Z=Array.from(e.childNodes);K<Z.length;K++){var ee=Z[K],et=z(ee,J);et&&Q.childNodes.push(et)}if(x(e)&&e.shadowRoot)for(var er=0,en=Array.from(e.shadowRoot.childNodes);er<en.length;er++){var ee=en[er],et=z(ee,J);et&&(et.isShadow=!0,Q.childNodes.push(et))}}return e.parentNode&&C(e.parentNode)&&(Q.isShadow=!0),Q.type===n.Element&&"iframe"===Q.tagName&&function(e,t,r){var n,o=e.contentWindow;if(o){var a=!1;try{n=o.document.readyState}catch(e){return}if("complete"!==n){var i=setTimeout(function(){a||(t(),a=!0)},r);e.addEventListener("load",function(){clearTimeout(i),a=!0,t()});return}var s="about:blank";if(o.location.href!==s||e.src===s||""===e.src)return setTimeout(t,0);e.addEventListener("load",t)}}(e,function(){var t=e.contentDocument;if(t&&F){var r=z(t,{doc:t,map:s,blockClass:l,blockSelector:u,maskTextClass:c,maskTextSelector:f,skipChild:!1,inlineStylesheet:m,maskInputOptions:y,maskTextFn:g,maskInputFn:b,slimDOMOptions:S,dataURLOptions:N,inlineImages:O,recordCanvas:D,preserveWhiteSpace:X,onSerialize:A,onIframeLoad:F,iframeLoadTimeout:V,keepIframeSrcFn:B});r&&F(e,r)}},V),Q}var H=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function V(e){return e?e.replace(/^\s+|\s+$/g,""):""}var G={script:"noscript",altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur
1:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"},B=/([^\\]):hover/,Y=RegExp(B.source,"g");function X(e,t){var r=null==t?void 0:t.stylesWithHoverClass.get(e);if(r)return r;var n=function(e,t){void 0===t&&(t={});var r,n=1,o=1;function a(e){var t=e.match(/\n/g);t&&(n+=t.length);var r=e.lastIndexOf("\n");o=-1===r?o+e.length:e.length-r}function i(){var e={line:n,column:o};return function(t){return t.position=new s(e),d(/^\s*/),t}}var s=function(e){this.start=e,this.end={line:n,column:o},this.source=t.source};s.prototype.content=e;var l=[];function u(r){var a=Error(t.source+":"+n+":"+o+": "+r);if(a.reason=r,a.filename=t.source,a.line=n,a.column=o,a.source=e,t.silent)l.push(a);else throw a}function c(){return d(/^{\s*/)}function f(){return d(/^}/)}function d(t){var r=t.exec(e);if(r){var n=r[0];return a(n),e=e.slice(n.length),r}}function p(e){var t;for(void 0===e&&(e=[]);t=h();)!1!==t&&e.push(t),t=h();return e}function h(){var t=i();if("/"===e.charAt(0)&&"*"===e.charAt(1)){for(var r=2;""!==e.charAt(r)&&("*"!==e.charAt(r)||"/"!==e.charAt(r+1));)++r;if(r+=2,""===e.charAt(r-1))return u("End of comment missing");var n=e.slice(2,r-2);return o+=2,a(n),e=e.slice(r),o+=2,t({type:"comment",comment:n})}}function m(){var e=d(/^([^{]+)/);if(e)return V(e[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,function(e){return e.replace(/,/g,"â")}).split(/\s*(?![^(]*\)),\s*/).map(function(e){return e.replace(/\u200C/g,",")})}function v(){var e=i(),t=d(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(t){var r=V(t[0]);if(!d(/^:\s*/))return u("property missing ':'");var n=d(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),o=e({type:"declaration",property:r.replace(H,""),value:n?V(n[0]).replace(H,""):""});return d(/^[;\s]*/),o}}function y(){var e,t=[];if(!c())return u("missing '{'");for(p(t);e=v();)!1!==e&&(t.push(e),p(t)),e=v();return f()?t:u("missing '}'")}var g=w("import"),b=w("charset"),S=w("namespace");function w(e){var t=RegExp("^@"+e+"\\s*([^;]+);");return function(){var r=i(),n=d(t);if(n){var o={type:e};return o[e]=n[1].trim(),r(o)}}}return function e(t,r){for(var n=t&&"string"==typeof t.type,o=n?t:r,a=0,i=Object.keys(t);a<i.length;a++){var s=t[i[a]];Array.isArray(s)?s.forEach(function(t){e(t,o)}):s&&"object"==typeof s&&e(s,o)}return n&&Object.defineProperty(t,"parent",{configurable:!0,writable:!0,enumerable:!1,value:r||null}),t}((r=function t(){var r,n,o,a=[];for(d(/^\s*/),p(a);e.length&&"}"!==e.charAt(0)&&(o=function(){if("@"===e[0])return function(){var e,t=i(),r=d(/^@([-\w]+)?ke
1yframes\s*/);if(r){var n=r[1];if(!(r=d(/^([-\w]+)\s*/)))return u("@keyframes missing name");var o=r[1];if(!c())return u("@keyframes missing '{'");for(var a=p();e=function(){for(var e,t=[],r=i();e=d(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),d(/^,\s*/);if(t.length)return r({type:"keyframe",values:t,declarations:y()})}();)a.push(e),a=a.concat(p());return f()?t({type:"keyframes",name:o,vendor:n,keyframes:a}):u("@keyframes missing '}'")}}()||function(){var e=i(),r=d(/^@media *([^{]+)/);if(r){var n=V(r[1]);if(!c())return u("@media missing '{'");var o=p().concat(t());return f()?e({type:"media",media:n,rules:o}):u("@media missing '}'")}}()||function(){var e=i(),t=d(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(t)return e({type:"custom-media",name:V(t[1]),media:V(t[2])})}()||function(){var e=i(),r=d(/^@supports *([^{]+)/);if(r){var n=V(r[1]);if(!c())return u("@supports missing '{'");var o=p().concat(t());return f()?e({type:"supports",supports:n,rules:o}):u("@supports missing '}'")}}()||g()||b()||S()||function(){var e=i(),r=d(/^@([-\w]+)?document *([^{]+)/);if(r){var n=V(r[1]),o=V(r[2]);if(!c())return u("@document missing '{'");var a=p().concat(t());return f()?e({type:"document",document:o,vendor:n,rules:a}):u("@document missing '}'")}}()||function(){var e,t=i();if(d(/^@page */)){var r=m()||[];if(!c())return u("@page missing '{'");for(var n=p();e=v();)n.push(e),n=n.concat(p());return f()?t({type:"page",selectors:r,declarations:n}):u("@page missing '}'")}}()||function(){var e=i();if(d(/^@host\s*/)){if(!c())return u("@host missing '{'");var r=p().concat(t());return f()?e({type:"host",rules:r}):u("@host missing '}'")}}()||function(){var e,t=i();if(d(/^@font-face\s*/)){if(!c())return u("@font-face missing '{'");for(var r=p();e=v();)r.push(e),r=r.concat(p());return f()?t({type:"font-face",declarations:r}):u("@font-face missing '}'")}}()}()||(r=i(),(n=m())?(p(),r({type:"rule",selectors:n,declarations:y()})):u("selector missing")));)!1!==o&&(a.push(o),p(a));return a}(),{type:"stylesheet",stylesheet:{source:t.source,rules:r,parsingErrors:l}}))}(e,{silent:!0});if(!n.stylesheet)return e;var o=[];
1if(n.stylesheet.rules.forEach(function(e){"selectors"in e&&(e.selectors||[]).forEach(function(e){B.test(e)&&o.push(e)})}),0===o.length)return e;var a=RegExp(o.filter(function(e,t){return o.indexOf(e)===t}).sort(function(e,t){return t.length-e.length}).map(function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}).join("|"),"g"),i=e.replace(a,function(e){var t=e.replace(Y,"$1.\\:hover");return e+", "+t});return null==t||t.stylesWithHoverClass.set(e,i),i}function q(){return{stylesWithHoverClass:new Map}}function Q(e,t){var r=t.doc,o=t.map,a=t.skipChild,i=t.hackCss,s=void 0===i||i,l=t.afterAppend,u=t.cache,c=function(e,t){var r=t.doc,o=t.hackCss,a=t.cache;switch(e.type){case n.Document:return r.implementation.createDocument(null,"",null);case n.DocumentType:return r.implementation.createDocumentType(e.name||"html",e.publicId,e.systemId);case n.Element:var i,s,l=("link"===(i=G[e.tagName]?G[e.tagName]:e.tagName)&&e.attributes._cssText&&(i="style"),i);for(var u in s=e.isSVG?r.createElementNS("http://www.w3.org/2000/svg",l):r.createElement(l),e.attributes)!function(t){if(!e.attributes.hasOwnProperty(t))return;var n=e.attributes[t];if("option"!==l||"selected"!==t||!1!==n)if(n="boolean"==typeof n||"number"==typeof n?"":n,t.startsWith("rr_")){if("canvas"===l&&"rr_dataURL"===t){var i=document.createElement("img");i.src=n,i.onload=function(){var e=s.getContext("2d");e&&e.drawImage(i,0,0,i.width,i.height)}}else"img"===l&&"rr_dataURL"===t&&(s.currentSrc.startsWith("data:")||(s.setAttribute("rrweb-original-src",e.attributes.src),s.src=n));if("rr_width"===t)s.style.width=n;else if("rr_height"===t)s.style.height=n;else if("rr_mediaCurrentTime"===t)s.currentTime=e.attributes.rr_mediaCurrentTime;else if("rr_mediaState"===t)switch(n){case"played":s.play().catch(function(e){return console.warn("media playback error",e)});break;case"paused":s.pause()}}else{var u="textarea"===l&&"value"===t,c="style"===l&&"_cssText"===t;if(c&&o&&(n=X(n,a)),u||c){for(var f=r.createTextNode(n),d=0,p=Array.from(s.childNodes);d<p.length;d++){var h=p[d];h.nodeType===s.TEXT_NODE&&s.removeChild(h)}return s.appendChild(f)}try{if(e.isSVG&&"xlink:href"===t)s.setAttributeNS("http://www.w3.org/1999/xlink",t,n);
1else if("onload"===t||"onclick"===t||"onmouse"===t.substring(0,7))s.setAttribute("_"+t,n);else{if("meta"===l&&"Content-Security-Policy"===e.attributes["http-equiv"]&&"content"===t)return s.setAttribute("csp-content",n),"continue";"link"===l&&"preload"===e.attributes.rel&&"script"===e.attributes.as||"link"===l&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&e.attributes.href.endsWith(".js")||("img"===l&&e.attributes.srcset&&e.attributes.rr_dataURL?s.setAttribute("rrweb-original-srcset",e.attributes.srcset):s.setAttribute(t,n))}}catch(e){}}}(u);if(e.isShadowHost)if(s.shadowRoot)for(;s.shadowRoot.firstChild;)s.shadowRoot.removeChild(s.shadowRoot.firstChild);else s.attachShadow({mode:"open"});return s;case n.Text:return r.createTextNode(e.isStyle&&o?X(e.textContent,a):e.textContent);case n.CDATA:return r.createCDATASection(e.textContent);case n.Comment:return r.createComment(e.textContent);default:return null}}(e,{doc:r,hackCss:s,cache:u});if(!c)return null;if(e.rootId&&console.assert(o[e.rootId]===r,"Target document should has the same root id."),e.type===n.Document&&(r.close(),r.open(),"BackCompat"===e.compatMode&&e.childNodes&&e.childNodes[0].type!==n.DocumentType&&(e.childNodes[0].type===n.Element&&"xmlns"in e.childNodes[0].attributes&&"http://www.w3.org/1999/xhtml"===e.childNodes[0].attributes.xmlns?r.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
1'):r.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),c=r),c.__sn=e,o[e.id]=c,(e.type===n.Document||e.type===n.Element)&&!(void 0!==a&&a))for(var f=0,d=e.childNodes;f<d.length;f++){var p=d[f],h=Q(p,{doc:r,map:o,skipChild:!1,hackCss:s,afterAppend:l,cache:u});if(!h){console.warn("Failed to rebuild",p);continue}p.isShadow&&x(c)&&c.shadowRoot?c.shadowRoot.appendChild(h):c.appendChild(h),l&&l(h)}return c}function $(e,t,r){void 0===r&&(r=document);var n={capture:!0,passive:!0};return r.addEventListener(e,t,n),function(){return r.removeEventListener(e,t,n)}}function J(){return{map:{},getId:function(e){return e&&e.__sn?e.__sn.id:-1},getNode:function(e){return this.map[e]||null},removeNodeFromMap:function(e){var t=this,r=e.__sn&&e.__sn.id;delete this.map[r],e.childNodes&&e.childNodes.forEach(function(e){return t.removeNodeFromMap(e)})},has:function(e){return this.map.hasOwnProperty(e)},reset:function(){this.map={}}}}!function(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"}(i||(i={})),function(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"}(s||(s={})),function(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"}(l||(l={})),function(e){e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2"}(u||(u={})),function(e){e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange"}(c||(c={})),function(e){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"}(f||(f={}));var K="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.",Z={map:{},getId:function(){return console.error(K),-1},getNode:function(){return console.error(K),null},removeNodeFromMap:function(){console.error(K)},has:function(){return console.error(K),!1},reset:function(){console.error(K)}};function ee(e,t,r){void 0===r&&(r={});var n=null,o=0;return function(a){var i=Date.now();o||!1!==r.leading||(o=i);var s=t-(i-o),l=this,u=arguments;s<=0||s>t?(n&&(clearTimeout(n),n=null),o=i,e.apply(l,u)):n||!1===r.trailing||(n=setTimeout(function(){o=!1===r.leading?0:Date.now(),n=null,e.apply(l,u)},s))}}function et(e,t,r,n,o){void 0===o&&(o=window);var a=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,n?r:{set:function(e){var t=this;setTimeout(function(){r.set.call(t,e)},0),a&&a.set&&a.set.call(this,e)}}),function(){return et(e,t,a||{},!0)}}function er(e,t,r){try{if(!(t in e))return function(){};var 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,function(){e[t]=n}}catch(e){return function(){}}}function en(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function eo(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function ea(e,t){if(!e)return!1;if(e.nodeType===e.ELEMENT_NODE){var r=!1;if("string"==typeof t)if(void 0!==e.closest)return null!==e.closest("."+t);else r=e.classList.contains(t);else e.classList.forEach(function(e){t.test(e)&&(r=!0)});return r||ea(e.parentNode,t)}
1return e.nodeType===e.TEXT_NODE,ea(e.parentNode,t)}function ei(e){return"__sn"in e&&-2===e.__sn.id}function es(e,t){if(C(e))return!1;var r=t.getId(e);return!t.has(r)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||es(e.parentNode,t))}function el(e){return!!e.changedTouches}function eu(e){void 0===e&&(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=function(e){if(!(0 in arguments))throw TypeError("1 argument is required");do if(this===e)return!0;while(e=e&&e.parentNode);return!1})}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Z=new Proxy(Z,{get:function(e,t,r){return"map"===t&&console.error(K),Reflect.get(e,t,r)}}));var ec=function(){function e(){this.reset()}return e.prototype.add=function(e){var t=this.indexes.get(e.parentId),r={id:e.node.id,mutation:e,children:[],texts:[],attributes:[]};t?(r.parent=t,t.children[r.id]=r):this.tree[r.id]=r,this.indexes.set(r.id,r)},e.prototype.remove=function(e,t){var r=this,n=this.indexes.get(e.parentId),o=this.indexes.get(e.id),a=function(e){r.removeIdSet.add(e);var n=t.getNode(e);null==n||n.childNodes.forEach(function(e){"__sn"in e&&a(e.__sn.id)})},i=function(t){r.removeIdSet.add(t.id),Object.values(t.children).forEach(function(e){return i(e)});var n=r.indexes.get(t.id);if(n){var o=n.parent;o&&(delete n.parent,delete o.children[n.id],r.indexes.delete(e.id))}};o?(n?(delete o.parent,delete n.children[o.id],this.indexes.delete(e.id)):(delete this.tree[o.id],this.indexes.delete(o.id)),i(o)):(this.removeNodeMutations.push(e),a(e.id))},e.prototype.text=function(e){var t=this.indexes.get(e.id);t?t.texts.push(e):this.textMutations.push(e)},e.prototype.attribute=function(e){var t=this.indexes.get(e.id);t?t.attributes.push(e):this.attributeMutations.push(e)},e.prototype.scroll=function(e){this.scrollMap.set(e.id,e)},e.prototype.input=function(e){this.inputMap.set(e.id,e)},e.prototype.flush=function(){var e,t,r,n,o=this,a=this.tree,i=this.removeNodeMutations,l=this.textMutations,u=this.attributeMutations,c={source:s.Mutation,removes:i,texts:l,attributes:u,adds:[]},f=function(e,t){t&&o.removeIdSet.add(e.id),c.texts=c.texts.concat(t?[]:e.texts).filter(function(e){return!o.removeIdSet.has(e.id)}),c.attributes=c.attributes.concat(t?[]:e.attributes).filter(function(e){return!o.removeIdSet.has(e.id)}),o.removeIdSet.has(e.id)||o.removeIdSet.has(e.mutation.parentId)||t?Object.values(e.children).forEach(function(e){return f(e,!0)}):(c.adds.push(e.mutation),e.children&&Object.values(e.children).forEach(function(e){return f(e,!1)}))};Object.values(a).forEach(function(e){return f(e,!1)});try{for(var d=b(this.scrollMap.keys()),p=d.next();!p.done;p=d.next()){var h=p.value;this.removeIdSet.has(h)&&this.scrollMap.delete(h)}}catch(t){e={error:t}}finally{try{p&&!p.done&&(t=d.return)&&t.call(d)}finally{if(e)throw e.error}}try{for(var m=b(this.inputMap.keys()),v=m.next();!v.done;v=m.next()){var h=v.value;this.removeIdSet.has(h)&&this.inputMap.delete(h)}}catch(e){r={error:e}}finally{try{v&&!v.done&&(n=m.return)&&n.call(m)}finally{if(r)throw r.error}}var y=new Map(this.scrollMap),g=new Map(this.inputMap);return this.reset(),{mutationData:c,scrollMap:y,inputMap:g}},e.prototype.reset=function(){this.tree=[],this.indexes=new Map,this.removeNodeMutations=[],this.textMutations=[],this.attributeMutations=[],this.removeIdSet=new Set,this.scrollMap=new Map,this.inputMap=new Map},e.prototype.idRemoved=function(e){return this.removeIdSet.has(e)},e}();function ef(e){var t,r,n={},o=function(e,t){var r={value:e,parent:t,children:[]};return n[e.node.id]=r,r},a=[];try{for(var i=b(e),s=i.next();!s.done;s=i.next()){var l=s.value,u=l.nextId,c=l.parentId;if(u&&u in n){var f=n[u];if(f.parent){var d=f.parent.children.indexOf(f);f.parent.children.splice(d,0,o(l,f.parent))}else{var d=a.indexOf(f);a.splice(d,0,o(l,null))}continue}if(c in n){var p=n[c];p.children.push(o(l,p));continue}a.push(o(l,null))}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return a}function ed(e,t){t(e.value);for(var r=e.children.length-1;r>=0;r--)ed(e.children[r],t)}function ep(e){return"__sn"in e&&e.__sn.type===n.Element&&"iframe"===e.__sn.tagName}function eh(e,t){var r,n,o=null==(n=null==(r=e.ownerDocument)?void 0:r.defaultView)?void 0:n.frameElement;if(!o||o===t)return{x:0,y:0,relativeScale:1,absoluteScale:1};var a=o.getBoundingClientRect(),i=eh(o,t),s=a.height/o.clientHeight;return{x:a.x*i.relativeScale+i.x,y:a.y*i.relativeScale+i.y,relativeScale:s,absoluteScale:i.absoluteScale*s}}function em(e){return!!(null==e?void 0:e.shadowRoot)}var ev=function(){function e(){this.length=0,this.head=null}return e.prototype.get=function(e){if(e>=this.length)throw Error("Position outside of list range");for(var t=this.head,r=0;r<e;r++)t=(null==t?void 0:t.next)||null;return t},e.prototype.addNode=function(e){var t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&"__ln"in e.previousSibling){var r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&"__ln"in e.nextSibling&&e.nextSibling.__ln.previous){var 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;this.length++},e.prototype.removeNode=function(e){var t=e.__ln;
1this.head&&(t.previous?(t.previous.next=t.next,t.next&&(t.next.previous=t.previous)):(this.head=t.next,this.head&&(this.head.previous=null)),e.__ln&&delete e.__ln,this.length--)},e}(),ey=function(e,t){return"".concat(e,"@").concat(t)},eg=function(){function e(){var e=this;this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=function(t){t.forEach(e.processMutation),e.emit()},this.emit=function(){if(!e.frozen&&!e.locked){for(var t,r,n,o,a=[],i=new ev,s=function(t){for(var r=t,n=-2;-2===n;)n=(r=r&&r.nextSibling)&&e.mirror.getId(r);return n},l=function(t){for(var r,n,o,l,u,c=t.getRootNode?null==(r=t.getRootNode())?void 0:r.host:null,f=c;null==(o=null==(n=null==f?void 0:f.getRootNode)?void 0:n.call(f))?void 0:o.host;)f=(null==(u=null==(l=null==f?void 0:f.getRootNode)?void 0:l.call(f))?void 0:u.host)||null;var d=!e.doc.contains(t)&&(null===f||!e.doc.contains(f));if(t.parentNode&&!d){var p=C(t.parentNode)?e.mirror.getId(c):e.mirror.getId(t.parentNode),h=s(t);if(-1===p||-1===h)return i.addNode(t);var m=z(t,{doc:e.doc,map:e.mirror.map,blockClass:e.blockClass,blockSelector:e.blockSelector,maskTextClass:e.maskTextClass,maskTextSelector:e.maskTextSelector,skipChild:!0,inlineStylesheet:e.inlineStylesheet,maskInputOptions:e.maskInputOptions,maskTextFn:e.maskTextFn,maskInputFn:e.maskInputFn,slimDOMOptions:e.slimDOMOptions,recordCanvas:e.recordCanvas,inlineImages:e.inlineImages,onSerialize:function(r){ep(r)&&e.iframeManager.addIframe(r),em(t)&&e.shadowDomManager.addShadowRoot(t.shadowRoot,document)},onIframeLoad:function(t,r){e.iframeManager.attachIframe(t,r),e.shadowDomManager.observeAttachShadow(t)}});m&&a.push({parentId:p,nextId:h,node:m})}};e.mapRemoves.length;)e.mirror.removeNodeFromMap(e.mapRemoves.shift());try{for(var u=b(e.movedSet),c=u.next();!c.done;c=u.next()){var f=c.value;(!eS(e.removes,f,e.mirror)||e.movedSet.has(f.parentNode))&&l(f)}}catch(e){t={error:e}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}try{for(var d=b(e.addedSet),p=d.next();!p.done;p=d.next()){var f=p.value;ew(e.droppedSet,f)||eS(e.removes,f,e.mirror)?ew(e.movedSet,f)?l(f):e.droppedSet.add(f):l(f)}}catch(e){n={error:e}}finally{try{p&&!p.done&&(o=d.return)&&o.call(d)}finally{if(n)throw n.error}}for(var h=null;i.length;){var m=null;if(h){var v=e.mirror.getId(h.value.parentNode),y=s(h.value);-1!==v&&-1!==y&&(m=h)}if(!m)for(var g=i.length-1;g>=0;g--){var S=i.get(g);if(S){var v=e.mirror.getId(S.value.parentNode),y=s(S.value);if(-1!==v&&-1!==y){m=S;break}}}if(!m){for(;i.head;)i.removeNode(i.head.value);break}h=m.previous,i.removeNode(m.value),l(m.value)}var w={texts:e.texts.map(function(t){return{id:e.mirror.getId(t.node),value:t.value}}).filter(function(t){return e.mirror.has(t.id)}),attributes:e.attributes.map(function(t){return{id:e.mirror.getId(t.node),attributes:t.attributes}}).filter(function(t){return e.mirror.has(t.id)}),removes:e.removes,adds:a};(w.texts.length||w.attributes.length||w.removes.length||w.adds.length)&&(e.texts=[],e.attributes=[],e.removes=[],e.addedSet=new Set,e.movedSet=new Set,e.droppedSet=new Set,e.movedMap={},e.mutationCb(w))}},this.processMutation=function(t){var r,n,o,a;if(!ei(t.target))switch(t.type){case"characterData":var i=t.target.textContent;ea(t.target,e.blockClass)||i===t.oldValue||e.texts.push({value:j(t.target,e.maskTextClass,e.maskTextSelector)&&i?e.maskTextFn?e.maskTextFn(i):i.replace(/[\S]/g,"*"):i,node:t.target});break;case"attributes":var s=t.target,i=t.target.getAttribute(t.attributeName);if("value"===t.attributeName&&(i=T({maskInputOptions:e.maskInputOptions,tagName:t.target.tagName,type:t.target.getAttribute("type"),value:i,maskInputFn:e.maskInputFn})),ea(t.target,e.blockClass)||i===t.oldValue)return;var l=e.attributes.find(function(e){return e.node===t.target});if(l||(l={node:t.target,attributes:{}},e.attributes.push(l)),"style"===t.attributeName){var u=e.doc.createElement("span");t.oldValue&&u.setAttribute("style",t.oldValue),(void 0===l.attributes.style||null===l.attributes.style)&&(l.attributes.style={});var c=l.attributes.style;try{for(var f=b(Array.from(s.style)),d=f.next();!d.done;d=f.next()){var p=d.value,h=s.style.getPropertyValue(p),m=s.style.getPropertyPriority(p);(h!==u.style.getPropertyValue(p)||m!==u.style.getPropertyPriority(p))&&(""===m?c[p]=h:c[p]=[h,m])}}catch(e){r={error:e}}finally{try{d&&!d.done&&(n=f.return)&&n.call(f)}finally{if(r)throw r.error}}try{for(var v=b(Array.from(u.style)),y=v.next();!y.done;y=v.next()){var p=y.value;""===s.style.getPropertyValue(p)&&(c[p]=!1)}}catch(e){o={error:e}}finally{try{y&&!y.done&&(a=v.return)&&a.call(v)}finally{if(o)throw o.error}}}else l.attributes[t.attributeName]=W(e.doc,t.target.tagName,t.attributeName,i);break;
1case"childList":t.addedNodes.forEach(function(r){return e.genAdds(r,t.target)}),t.removedNodes.forEach(function(r){var n=e.mirror.getId(r),o=C(t.target)?e.mirror.getId(t.target.host):e.mirror.getId(t.target);ea(t.target,e.blockClass)||ei(r)||(e.addedSet.has(r)?(eb(e.addedSet,r),e.droppedSet.add(r)):e.addedSet.has(t.target)&&-1===n||es(t.target,e.mirror)||(e.movedSet.has(r)&&e.movedMap[ey(n,o)]?eb(e.movedSet,r):e.removes.push({parentId:o,id:n,isShadow:!!C(t.target)||void 0})),e.mapRemoves.push(r))})}},this.genAdds=function(t,r){if(!(r&&ea(r,e.blockClass))){if("__sn"in t){if(ei(t))return;e.movedSet.add(t);var n=null;r&&"__sn"in r&&(n=r.__sn.id),n&&(e.movedMap[ey(t.__sn.id,n)]=!0)}else e.addedSet.add(t),e.droppedSet.delete(t);ea(t,e.blockClass)||t.childNodes.forEach(function(t){return e.genAdds(t)})}}}return e.prototype.init=function(e){var t=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","recordCanvas","inlineImages","slimDOMOptions","doc","mirror","iframeManager","shadowDomManager","canvasManager"].forEach(function(r){t[r]=e[r]})},e.prototype.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},e.prototype.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},e.prototype.isFrozen=function(){return this.frozen},e.prototype.lock=function(){this.locked=!0,this.canvasManager.lock()},e.prototype.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},e.prototype.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},e}();function eb(e,t){e.delete(t),t.childNodes.forEach(function(t){return eb(e,t)})}function eS(e,t,r){var n=t.parentNode;if(!n)return!1;var o=r.getId(n);return!!e.some(function(e){return e.id===o})||eS(e,n,r)}function ew(e,t){var r=t.parentNode;return!!r&&(!!e.has(r)||ew(e,r))}var ex=[],eC="undefined"!=typeof CSSGroupingRule,eT="undefined"!=typeof CSSMediaRule,eE="undefined"!=typeof CSSSupportsRule,ek="undefined"!=typeof CSSConditionRule;function eI(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0];return e.target}catch(t){return e.target}}function eM(e,t){var r,n,o=new eg;ex.push(o),o.init(e);var a=window.MutationObserver||window.__rrMutationObserver,i=null==(n=null==(r=null==window?void 0:window.Zone)?void 0:r.__symbol__)?void 0:n.call(r,"MutationObserver");i&&window[i]&&(a=window[i]);var s=new a(o.processMutations.bind(o));return s.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),s}function eN(e){var t=e.scrollCb,r=e.doc,n=e.mirror,o=e.blockClass;return $("scroll",ee(function(e){var a=eI(e);if(!(!a||ea(a,o))){var i=n.getId(a);if(a===r){var s=r.scrollingElement||r.documentElement;t({id:i,x:s.scrollLeft,y:s.scrollTop})}else t({id:i,x:a.scrollLeft,y:a.scrollTop})}},e.sampling.scroll||100),r)}function e_(e,t){var r=g({},e);return t||delete r.userTriggered,r}var eO=["INPUT","TEXTAREA","SELECT"],eR=new WeakMap;function eL(e){return function(e,t){if(eC&&e.parentRule instanceof CSSGroupingRule||eT&&e.parentRule instanceof CSSMediaRule||eE&&e.parentRule instanceof CSSSupportsRule||ek&&e.parentRule instanceof CSSConditionRule){var r=Array.from(e.parentRule.cssRules),n=r.indexOf(e);t.unshift(n)}else{var r=Array.from(e.parentStyleSheet.cssRules),n=r.indexOf(e);t.unshift(n)}return t}(e,[])}var eD=function(){function e(e){this.iframes=new WeakMap,this.mutationCb=e.mutationCb}return e.prototype.addIframe=function(e){this.iframes.set(e,!0)},e.prototype.addLoadListener=function(e){this.loadListener=e},e.prototype.attachIframe=function(e,t){var r;this.mutationCb({adds:[{parentId:e.__sn.id,nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),null==(r=this.loadListener)||r.call(this,e)},e}(),eA=function(){function e(e){this.restorePatches=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror;var t=this;this.restorePatches.push(er(HTMLElement.prototype,"attachShadow",function(e){return function(){var r=e.apply(this,arguments);return this.shadowRoot&&t.addShadowRoot(this.shadowRoot,this.ownerDocument),r}}))}return e.prototype.addShadowRoot=function(e,t){eM(g(g({},this.bypassOptions),{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e),eN(g(g({},this.bypassOptions),{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))},e.prototype.observeAttachShadow=function(e){if(e.contentWindow){var t=this;this.restorePatches.push(er(e.contentWindow.HTMLElement.prototype,"attachShadow",function(r){return function(){var n=r.apply(this,arguments);return this.shadowRoot&&t.addShadowRoot(this.shadowRoot,e.contentDocument),n}}))}}
1,e.prototype.reset=function(){this.restorePatches.forEach(function(e){return e()})},e}();let eF=function(e,t,r,n){var o,a,i=[],s=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype),l=function(n){try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[n])return"continue";var o=er(t.CanvasRenderingContext2D.prototype,n,function(t){return function(){for(var o=this,a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];return ea(this.canvas,r)||setTimeout(function(){var t=w([],S(a),!1);if("drawImage"===n&&t[0]&&t[0]instanceof HTMLCanvasElement){var r=t[0],i=r.getContext("2d"),s=null==i?void 0:i.getImageData(0,0,r.width,r.height),l=null==s?void 0:s.data;t[0]=JSON.stringify(l)}e(o.canvas,{type:u["2D"],property:n,args:t})},0),t.apply(this,a)}});i.push(o)}catch(r){var a=et(t.CanvasRenderingContext2D.prototype,n,{set:function(t){e(this.canvas,{type:u["2D"],property:n,args:[t],setter:!0})}});i.push(a)}};try{for(var c=b(s),f=c.next();!f.done;f=c.next()){var d=f.value;l(d)}}catch(e){o={error:e}}finally{try{f&&!f.done&&(a=c.return)&&a.call(c)}finally{if(o)throw o.error}}return function(){i.forEach(function(e){return e()})}},eP=function(e,t){var r=[];try{var n=er(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(r){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return ea(this,t)||"__context"in this||(this.__context=r),e.apply(this,w([r],S(n),!1))}});r.push(n)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){r.forEach(function(e){return e()})}};for(var eW="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ej="undefined"==typeof Uint8Array?[]:new Uint8Array(256),eU=0;eU<eW.length;eU++)ej[eW.charCodeAt(eU)]=eU;var ez=function(e){var t,r=new Uint8Array(e),n=r.length,o="";for(t=0;t<n;t+=3)o+=eW[r[t]>>2],o+=eW[(3&r[t])<<4|r[t+1]>>4],o+=eW[(15&r[t+1])<<2|r[t+2]>>6],o+=eW[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},eH=function(e){var t,r,n,o,a,i=.75*e.length,s=e.length,l=0;"="===e[e.length-1]&&(i--,"="===e[e.length-2]&&i--);var u=new ArrayBuffer(i),c=new Uint8Array(u);for(t=0;t<s;t+=4)r=ej[e.charCodeAt(t)],n=ej[e.charCodeAt(t+1)],o=ej[e.charCodeAt(t+2)],a=ej[e.charCodeAt(t+3)],c[l++]=r<<2|n>>4,c[l++]=(15&n)<<4|o>>2,c[l++]=(3&o)<<6|63&a;return u},eV=new Map,eG=function(e,t,r){if(e&&(eB(e,t)||"object"==typeof e)){var n,o=e.constructor.name,a=((n=eV.get(r))||(n=new Map,eV.set(r,n)),n.has(o)||n.set(o,[]),n.get(o)),i=a.indexOf(e);return -1===i&&(i=a.length,a.push(e)),i}},eB=function(e,t){return!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(function(e){return"function"==typeof t[e]}).find(function(r){return e instanceof t[r]})};function eY(e,t,r,n,o,a){var i,s,l=[],u=Object.getOwnPropertyNames(e),c=function(i){try{if("function"!=typeof e[i])return"continue";var s=er(e,i,function(s){return function(){for(var l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];var c=s.apply(this,l);if(eG(c,a,e),!ea(this.canvas,n)){o.getId(this.canvas);var f,d=(f=w([],S(l),!1),w([],S(f),!1).map(function(t){return function e(t,r,n){if(t instanceof Array)return t.map(function(t){return 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:ez(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)return{rr_type:t.constructor.name,src:t.src};else if(t instanceof ImageData)return{rr_type:t.constructor.name,args:[e(t.data,r,n),t.width,t.height]};else if(eB(t,r)||"object"==typeof t)return{rr_type:t.constructor.name,index:eG(t,r,n)};return t}(t,a,e)}));r(this.canvas,{type:t,property:i,args:d})}return c}});l.push(s)}catch(n){var u=et(e,i,{set:function(e){r(this.canvas,{type:t,property:i,args:[e],setter:!0})}});l.push(u)}};try{for(var f=b(u),d=f.next();!d.done;d=f.next()){var p=d.value;c(p)}}catch(e){i={error:e}}finally{try{d&&!d.done&&(s=f.return)&&s.call(f)}finally{if(i)throw i.error}}return l}let eX=function(e,t,r,n){var o=[];return o.push.apply(o,w([],S(eY(t.WebGLRenderingContext.prototype,u.WebGL,e,r,n,t)),!1)),void 0!==t.WebGL2RenderingContext&&o.push.apply(o,w([],S(eY(t.WebGL2RenderingContext.prototype,u.WebGL2,e,r,n,t)),!1)),function(){o.forEach(function(e){return e()})}};var eq=function(){function e(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=function(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)},this.mutationCb=e.mutationCb,this.mirror=e.mirror,!0===e.recordCanvas&&this.initCanvasMutationObserver(e.win,e.blockClass)}return e.prototype.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},e.prototype.freeze=function(){this.frozen=!0},e.prototype.unfreeze=function(){this.frozen=!1},e.prototype.lock=function(){this.locked=!0},e.prototype.unlock=function(){this.locked=!1},e.prototype.initCanvasMutationObserver=function(e,t){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var r=eP(e,t),n=eF(this.processMutation.bind(this),e,t,this.mirror),o=eX(this.processMutation.bind(this),e,t,this.mirror);this.resetObservers=function(){r(),n(),o()}},e.prototype.startPendingCanvasMutationFlusher=function(){var e=this;requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},e.prototype.startRAFTimestamping=function(){var e=this,t=function(r){e.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)},e.prototype.flushPendingCanvasMutations=function(){var e=this;this.pendingCanvasMutations.forEach(function(t,r){var n=e.mirror.getId(r);e.flushPendingCanvasMutationFor(r,n)}),requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},e.prototype.flushPendingCanvasMutationFor=function(e,t){if(!this.frozen&&!this.locked){var r=this.pendingCanvasMutations.get(e);if(r&&-1!==t){var n=r.map(function(e){return e.type,function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}(e,["type"])}),o=r[0].type;this.mutationCb({id:t,type:o,commands:n}),this.pendingCanvasMutations.delete(e)}}},e}();function eQ(e){return g(g({},e),{timestamp:Date.now()})}var e$=J();function eJ(e){void 0===e&&(e={});var t,r=e.emit,n=e.checkoutEveryNms,o=e.checkoutEveryNth,a=e.blockClass,u=void 0===a?"rr-block":a,c=e.blockSelector,f=void 0===c?null:c,h=e.ignoreClass,m=void 0===h?"rr-ignore":h,v=e.maskTextClass,y=void 0===v?"rr-mask":v,x=e.maskTextSelector,C=void 0===x?null:x,E=e.inlineStylesheet,k=void 0===E||E,I=e.maskAllInputs,M=e.maskInputOptions,N=e.slimDOMOptions,_=e.maskInputFn,O=e.maskTextFn,R=e.hooks,L=e.packFn,D=e.sampling,A=void 0===D?{}:D,F=e.mousemoveWait,P=e.recordCanvas,W=void 0!==P&&P,j=e.userTriggeredOnInput,U=void 0!==j&&j,H=e.collectFonts,V=void 0!==H&&H,G=e.inlineImages,B=void 0!==G&&G,Y=e.plugins,X=e.keepIframeSrcFn,q=void 0===X?function(){return!1}:X;if(!r)throw Error("emit function is required");void 0!==F&&void 0===A.mousemove&&(A.mousemove=F);var Q=!0===I?{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!==M?M:{password:!0},J=!0===N||"all"===N?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===N,headMetaDescKeywords:"all"===N}:N||{};eu();var K=0,Z=function(e){var t,r;try{for(var n=b(Y||[]),o=n.next();!o.done;o=n.next()){var a=o.value;a.eventProcessor&&(e=a.eventProcessor(e))}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return L&&(e=L(e)),e};d=function(e,a){var l;if((null==(l=ex[0])?void 0:l.isFrozen())&&e.type!==i.FullSnapshot&&(e.type!==i.IncrementalSnapshot||e.data.source!==s.Mutation)&&ex.forEach(function(e){return e.unfreeze()}),r(Z(e),a),e.type===i.FullSnapshot)t=e,K=0;else if(e.type===i.IncrementalSnapshot){if(e.data.source===s.Mutation&&e.data.isAttachIframe)return;K++;var u=o&&K>=o,c=n&&e.timestamp-t.timestamp>n;(u||c)&&p(!0)}};var ei=function(e){d(eQ({type:i.IncrementalSnapshot,data:g({source:s.Mutation},e)}))},es=function(e){return d(eQ({type:i.IncrementalSnapshot,data:g({source:s.Scroll},e)}))},ec=function(e){return d(eQ({type:i.IncrementalSnapshot,data:g({source:s.CanvasMutation},e)}))},ef=new eD({mutationCb:ei}),ed=new eq({recordCanvas:W,mutationCb:ec,win:window,blockClass:u,mirror:e$}),eh=new eA({mutationCb:ei,scrollCb:es,bypassOptions:{blockClass:u,blockSelector:f,maskTextClass:y,maskTextSelector:C,inlineStylesheet:k,maskInputOptions:Q,maskTextFn:O,maskInputFn:_,recordCanvas:W,inlineImages:B,sampling:A,slimDOMOptions:J,iframeManager:ef,canvasManager:ed},mirror:e$});p=function(e){void 0===e&&(e=!1),d(eQ({type:i.Meta,data:{href:window.location.href,width:eo(),height:en()}}),e),ex.forEach(function(e){return e.lock()});var t,r,n,o,a,s,l,c,p,h,m,v,g,b,w,x,T,E,I,M,N,_,R,L,D,A,F=S((t=document,n=(r={blockClass:u,blockSelector:f,maskTextClass:y,maskTextSelector:C,inlineStylesheet:k,maskAllInputs:Q,maskTextFn:O,slimDOM:J,recordCanvas:W,inlineImages:B,onSerialize:function(e){ep(e)&&ef.addIframe(e),em(e)&&eh.addShadowRoot(e.shadowRoot,document)},onIframeLoad:function(e,t){ef.attachIframe(e,t),eh.observeAttachShadow(e)},keepIframeSrcFn:q}).blockClass,o=r.blockSelector,a=r.maskTextClass,s=r.maskTextSelector,l=r.inlineStylesheet,c=r.inlineImages,p=r.recordCanvas,m=void 0!==(h=r.maskAllInputs)&&h,v=r.maskTextFn,g=r.maskInputFn,w=void 0!==(b=r.slimDOM)&&b,x=r.dataURLOptions,T=r.preserveWhiteSpace,E=r.onSerialize,I=r.onIframeLoad,M=r.iframeLoadTimeout,[z(t,{doc:t,map:_={},blockClass:void 0===n?"rr-block":n,blockSelector:void 0===o?null:o,maskTextClass:void 0===a?"rr-mask":a,maskTextSelector:void 0===s?null:s,skipChild:!1,inlineStylesheet:void 0===l||l,maskInputOptions:!0===m?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:!1===m?{password:!0}:m,maskTextFn:v,maskInputFn:g,slimDOMOptions:!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:!1===w?{}:w,dataURLOptions:x,inlineImages:void 0!==c&&c,recordCanvas:void 0!==p&&p,preserveWhiteSpace:T,onSerialize:E,onIframeLoad:I,iframeLoadTimeout:M,keepIframeSrcFn:void 0===(N=r.keepIframeSrcFn)?function(){return!1}:N}),_]),2),P=F[0],j=F[1];if(!P)return console.warn("Failed to snapshot the document");e$.map=j,d(eQ({type:i.FullSnapshot,data:{node:P,initialOffset:{left:void 0!==window.pageXOffset?window.pageXOffset:(null==document?void 0:document.documentElement.scrollLeft)||(null==(L=null==(R=null==document?void 0:document.body)?void 0:R.parentElement)?void 0:L.scrollLeft)||(null==document?void 0:document.body.scrollLeft)||0,top:void 0!==window.pageYOffset?window.pageYOffset:(null==document?void 0:document.documentElement.scrollTop)||(null==(A=null==(D=null==document?void 0:document.body)?void 0:D.parentElement)?void 0:A.scrollTop)||(null==document?void 0:document.body.scrollTop)||0}}})),ex.forEach(function(e){return e.unlock()})};try{var ev=[];ev.push($("DOMContentLoaded",function(){d(eQ({type:i.DomContentLoaded,data:{}}))}));var ey=function(e){var t;return function(e,t){void 0===t&&(t={});var r,n,o,a,i,u,c,f,d,p,h,m,v,y,x,C,E,k,I,M,N,_,O,R,L,D,A,F,P,W,j,U,z,H,V,G,B,Y=e.doc.defaultView;if(!Y)return function(){};r=t,n=e.mutationCb,o=e.mousemoveCb,a=e.mouseInteractionCb,i=e.scrollCb,u=e.viewportResizeCb,c=e.inputCb,f=e.mediaInteractionCb,d=e.styleSheetRuleCb,p=e.styleDeclarationCb,h=e.canvasMutationCb,m=e.fontCb,e.mutationCb=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];r.mutation&&r.mutation.apply(r,w([],S(e),!1)),n.apply(void 0,w([],S(e),!1))},e.mousemoveCb=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];r.mousemove&&r.mousemove.apply(r,w([],S(e),!1)),o.apply(void 0,w([],S(e),!1))},e.mouseInteractionCb=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];r.mouseInteraction&&r.mouseInteraction.apply(r,w([],S(e),!1)),a.apply(void 0,w([],S(e),!1))},e.scrollCb=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];r.scroll&&r.scroll.apply(r,w([],S(e),!1)),i.apply(void 0,w([],S(e),!1))},e.viewportResizeCb=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];r.viewportResize&&r.viewportResize.apply(r,w([],S(e),!1)),u.apply(void 0,w([],S(e),!1))},e.inputCb=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];r.input&&r.input.apply(r,w([],S(e),!1)),c.apply(void 0,w([],S(e),!1))},e.mediaInteractionCb=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];r.mediaInteaction&&r.mediaInteaction.apply(r,w([],S(e),!1)),f.apply(void 0,w([],S(e),!1))},e.styleSheetRuleCb=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];r.styleSheetRule&&r.styleSheetRule.apply(r,w([],S(e),!1)),d.apply(void 0,w([],S(e),!1))},e.styleDeclarationCb=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];r.styleDeclaration&&r.styleDeclaration.apply(r,w([],S(e),!1)),p.apply(void 0,w([],S(e),!1))},e.canvasMutationCb=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];r.canvasMutation&&r.canvasMutation.apply(r,w([],S(e),!1)),h.apply(void 0,w([],S(e),!1))},e.fontCb=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];r.font&&r.font.apply(r,w([],S(e),!1)),m.apply(void 0,w([],S(e),!1))};var X=eM(e,e.doc),q=function(e){var t,r=e.mousemoveCb,n=e.sampling,o=e.doc,a=e.mirror;if(!1===n.mousemove)return function(){};var i="number"==typeof n.mousemove?n.mousemove:50,l="number"==typeof n.mousemoveCallback?n.mousemoveCallback:500,u=[],c=ee(function(e){var n=Date.now()-t;r(u.map(function(e){return e.timeOffset-=n,e}),e),u=[],t=null},l),f=ee(function(e){var r=eI(e),n=el(e)?e.changedTouches[0]:e,o=n.clientX,i=n.clientY;t||(t=Date.now()),u.push({x:o,y:i,id:a.getId(r),timeOffset:Date.now()-t}),c("undefined"!=typeof DragEvent&&e instanceof DragEvent?s.Drag:e instanceof MouseEvent?s.MouseMove:s.TouchMove)},i,{trailing:!1}),d=[$("mousemove",f,o),$("touchmove",f,o),$("drag",f,o)];return function(){d.forEach(function(e){return e()})}}(e),Q=function(e){var t=e.mouseInteractionCb,r=e.doc,n=e.mirror,o=e.blockClass,a=e.sampling;if(!1===a.mouseInteraction)return function(){};var i=!0===a.mouseInteraction||void 0===a.mouseInteraction?{}:a.mouseInteraction,s=[];return Object.keys(l).filter(function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==i[e]}
1).forEach(function(e){var a=e.toLowerCase(),i=function(r){var a=eI(r);if(!ea(a,o)){var i=el(r)?r.changedTouches[0]:r;if(i){var s=n.getId(a),u=i.clientX,c=i.clientY;t({type:l[e],id:s,x:u,y:c})}}};s.push($(a,i,r))}),function(){s.forEach(function(e){return e()})}}(e),J=eN(e),K=(v=e.viewportResizeCb,y=-1,x=-1,$("resize",ee(function(){var e=en(),t=eo();(y!==e||x!==t)&&(v({width:Number(t),height:Number(e)}),y=e,x=t)},200),window)),Z=function(e){var t=e.inputCb,r=e.doc,n=e.mirror,o=e.blockClass,a=e.ignoreClass,i=e.maskInputOptions,s=e.maskInputFn,l=e.sampling,u=e.userTriggeredOnInput;function c(e){var t=eI(e),n=e.isTrusted;if(t&&"OPTION"===t.tagName&&(t=t.parentElement),!(!t||!t.tagName||0>eO.indexOf(t.tagName)||ea(t,o))){var l=t.type;if(!t.classList.contains(a)){var c=t.value,d=!1;"radio"===l||"checkbox"===l?d=t.checked:(i[t.tagName.toLowerCase()]||i[l])&&(c=T({maskInputOptions:i,tagName:t.tagName,type:l,value:c,maskInputFn:s})),f(t,e_({text:c,isChecked:d,userTriggered:n},u));var p=t.name;"radio"===l&&p&&d&&r.querySelectorAll('input[type="radio"][name="'.concat(p,'"]')).forEach(function(e){e!==t&&f(e,e_({text:e.value,isChecked:!d,userTriggered:!1},u))})}}}function f(e,r){var o=eR.get(e);if(!o||o.text!==r.text||o.isChecked!==r.isChecked){eR.set(e,r);var a=n.getId(e);t(g(g({},r),{id:a}))}}var d=("last"===l.input?["change"]:["input","change"]).map(function(e){return $(e,c,r)}),p=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),h=[[HTMLInputElement.prototype,"value"],[HTMLInputElement.prototype,"checked"],[HTMLSelectElement.prototype,"value"],[HTMLTextAreaElement.prototype,"value"],[HTMLSelectElement.prototype,"selectedIndex"],[HTMLOptionElement.prototype,"selected"]];return p&&p.set&&d.push.apply(d,w([],S(h.map(function(e){return et(e[0],e[1],{set:function(){c({target:this})}})})),!1)),function(){d.forEach(function(e){return e()})}}(e),ei=(C=e.mediaInteractionCb,E=e.blockClass,k=e.mirror,I=e.sampling,N=[$("play",(M=function(e){return ee(function(t){var r=eI(t);if(!(!r||ea(r,E))){var n=r.currentTime,o=r.volume,a=r.muted;C({type:e,id:k.getId(r),currentTime:n,volume:o,muted:a})}},I.media||500)})(0)),$("pause",M(1)),$("seeked",M(2)),$("volumechange",M(3))],function(){N.forEach(function(e){return e()})}),es=(_={win:Y},O=e.styleSheetRuleCb,R=e.mirror,D=(L=_.win).CSSStyleSheet.prototype.insertRule,L.CSSStyleSheet.prototype.insertRule=function(e,t){var r=R.getId(this.ownerNode);return -1!==r&&O({id:r,adds:[{rule:e,index:t}]}),D.apply(this,arguments)},A=L.CSSStyleSheet.prototype.deleteRule,L.CSSStyleSheet.prototype.deleteRule=function(e){var t=R.getId(this.ownerNode);return -1!==t&&O({id:t,removes:[{index:e}]}),A.apply(this,arguments)},F={},eC?F.CSSGroupingRule=L.CSSGroupingRule:(eT&&(F.CSSMediaRule=L.CSSMediaRule),ek&&(F.CSSConditionRule=L.CSSConditionRule),eE&&(F.CSSSupportsRule=L.CSSSupportsRule)),P={},Object.entries(F).forEach(function(e){var t=S(e,2),r=t[0],n=t[1];P[r]={insertRule:n.prototype.insertRule,deleteRule:n.prototype.deleteRule},n.prototype.insertRule=function(e,t){var n=R.getId(this.parentStyleSheet.ownerNode);return -1!==n&&O({id:n,adds:[{rule:e,index:w(w([],S(eL(this)),!1),[t||0],!1)}]}),P[r].insertRule.apply(this,arguments)},n.prototype.deleteRule=function(e){var t=R.getId(this.parentStyleSheet.ownerNode);return -1!==t&&O({id:t,removes:[{index:w(w([],S(eL(this)),!1),[e],!1)}]}),P[r].deleteRule.apply(this,arguments)}}),function(){L.CSSStyleSheet.prototype.insertRule=D,L.CSSStyleSheet.prototype.deleteRule=A,Object.entries(F).forEach(function(e){var t=S(e,2),r=t[0],n=t[1];n.prototype.insertRule=P[r].insertRule,n.prototype.deleteRule=P[r].deleteRule})}),eu=(W={win:Y},j=e.styleDeclarationCb,U=e.mirror,H=(z=W.win).CSSStyleDeclaration.prototype.setProperty,z.CSSStyleDeclaration.prototype.setProperty=function(e,t,r){var n,o,a=U.getId(null==(o=null==(n=this.parentRule)?void 0:n.parentStyleSheet)?void 0:o.ownerNode);return -1!==a&&j({id:a,set:{property:e,value:t,priority:r},index:eL(this.parentRule)}),H.apply(this,arguments)},V=z.CSSStyleDeclaration.prototype.removeProperty,z.CSSStyleDeclaration.prototype.removeProperty=function(e){var t,r,n=U.getId(null==(r=null==(t=this.parentRule)?void 0:t.parentStyleSheet)?void 0:r.ownerNode);return -1!==n&&j({id:n,remove:{property:e}
1,index:eL(this.parentRule)}),V.apply(this,arguments)},function(){z.CSSStyleDeclaration.prototype.setProperty=H,z.CSSStyleDeclaration.prototype.removeProperty=V}),ec=e.collectFonts?function(e){var t=e.fontCb,r=e.doc,n=r.defaultView;if(!n)return function(){};var o=[],a=new WeakMap,i=n.FontFace;n.FontFace=function(e,t,r){var n=new i(e,t,r);return a.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};var s=er(r.fonts,"add",function(e){return function(r){return setTimeout(function(){var e=a.get(r);e&&(t(e),a.delete(r))},0),e.apply(this,[r])}});return o.push(function(){n.FontFace=i}),o.push(s),function(){o.forEach(function(e){return e()})}}(e):function(){},ef=[];try{for(var ed=b(e.plugins),ep=ed.next();!ep.done;ep=ed.next()){var eh=ep.value;ef.push(eh.observer(eh.callback,Y,eh.options))}}catch(e){G={error:e}}finally{try{ep&&!ep.done&&(B=ed.return)&&B.call(ed)}finally{if(G)throw G.error}}return function(){ex.forEach(function(e){return e.reset()}),X.disconnect(),q(),Q(),J(),K(),Z(),ei(),es(),eu(),ec(),ef.forEach(function(e){return e()})}}({mutationCb:ei,mousemoveCb:function(e,t){return d(eQ({type:i.IncrementalSnapshot,data:{source:t,positions:e}}))},mouseInteractionCb:function(e){return d(eQ({type:i.IncrementalSnapshot,data:g({source:s.MouseInteraction},e)}))},scrollCb:es,viewportResizeCb:function(e){return d(eQ({type:i.IncrementalSnapshot,data:g({source:s.ViewportResize},e)}))},inputCb:function(e){return d(eQ({type:i.IncrementalSnapshot,data:g({source:s.Input},e)}))},mediaInteractionCb:function(e){return d(eQ({type:i.IncrementalSnapshot,data:g({source:s.MediaInteraction},e)}))},styleSheetRuleCb:function(e){return d(eQ({type:i.IncrementalSnapshot,data:g({source:s.StyleSheetRule},e)}))},styleDeclarationCb:function(e){return d(eQ({type:i.IncrementalSnapshot,data:g({source:s.StyleDeclaration},e)}))},canvasMutationCb:ec,fontCb:function(e){return d(eQ({type:i.IncrementalSnapshot,data:g({source:s.Font},e)}))},blockClass:u,ignoreClass:m,maskTextClass:y,maskTextSelector:C,maskInputOptions:Q,inlineStylesheet:k,sampling:A,recordCanvas:W,inlineImages:B,userTriggeredOnInput:U,collectFonts:V,doc:e,maskInputFn:_,maskTextFn:O,blockSelector:f,slimDOMOptions:J,mirror:e$,iframeManager:ef,shadowDomManager:eh,canvasManager:ed,plugins:(null==(t=null==Y?void 0:Y.filter(function(e){return e.observer}))?void 0:t.map(function(e){return{observer:e.observer,options:e.options,callback:function(t){return d(eQ({type:i.Plugin,data:{plugin:e.name,payload:t}}))}}}))||[]},R)};ef.addLoadListener(function(e){ev.push(ey(e.contentDocument))});var eg=function(){p(),ev.push(ey(document))};return"interactive"===document.readyState||"complete"===document.readyState?eg():ev.push($("load",function(){d(eQ({type:i.Load,data:{}})),eg()},window)),function(){ev.forEach(function(e){return e()})}}catch(e){console.warn(e)}}eJ.addCustomEvent=function(e,t){if(!d)throw Error("please add custom event after start recording");d(eQ({type:i.Custom,data:{tag:e,payload:t}}))},eJ.freezePage=function(){ex.forEach(function(e){return e.freeze()})},eJ.takeFullSnapshot=function(e){if(!p)throw Error("please take full snapshot after start recording");p(e)},eJ.mirror=e$;let eK=eJ;var eZ=eK.addCustomEvent,e0=eK.freezePage,e1=Uint8Array,e2=Uint16Array,e3=Uint32Array,e5=new e1([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),e8=new e1([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),e6=new e1([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),e4=function(e,t){for(var r=new e2(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];for(var o=new e3(r[30]),n=1;n<30;++n)for(var a=r[n];a<r[n+1];++a)o[a]=a-r[n]<<5|n;return[r,o]},e7=e4(e5,2),e9=e7[0],te=e7[1];e9[28]=258,te[258]=28;for(var tt=e4(e8,0),tr=tt[0],tn=tt[1],to=new e2(32768),ta=0;ta<32768;++ta){var ti=(43690&ta)>>>1|(21845&ta)<<1;ti=(61680&(ti=(52428&ti)>>>2|(13107&ti)<<2))>>>4|(3855&ti)<<4,to[ta]=((65280&ti)>>>8|(255&ti)<<8)>>>1}for(var ts=function(e,t,r){for(var n,o=e.length,a=0,i=new e2(t);a<o;++a)++i[e[a]-1];var s=new e2(t);for(a=0;a<t;++a)s[a]=s[a-1]+i[a-1]<<1;if(r){n=new e2(1<<t);var l=15-t;for(a=0;a<o;++a)if(e[a])for(var u=a<<4|e[a],c=t-e[a],f=s[e[a]-1]++<<c,d=f|(1<<c)-1;f<=d;++f)n[to[f]>>>l]=u}else for(a=0,n=new e2(o);a<o;++a)n[a]=to[s[e[a]-1]++]>>>15-e[a];return n},tl=new e1(288),ta=0;ta<144;++ta)tl[ta]=8;for(var ta=144;ta<256;++ta)tl[ta]=9;for(var ta=256;ta<280;++ta)tl[ta]=7;for(var ta=280;ta<288;++ta)tl[ta]=8;for(var tu=new e1(32),ta=0;ta<32;++ta)tu[ta]=5;var tc=ts(tl,9,0),tf=ts(tl,9,1),td=ts(tu,5,0),tp=ts(tu,5,1),th=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},tm=function(e,t,r){var n=t/8|0;return(e[n]|e[n+1]<<8)>>>(7&t)&r},tv=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>>(7&t)},ty=function(e){return(e/8|0)+(7&e&&1)},tg=function(e,t,r){(null==t||t<0)&&(t=0),(null==r||r>e.length)&&(r=e.length);var n=new(e instanceof e2?e2:e instanceof e3?e3:e1)(r-t);return n.set(e.subarray(t,r)),n},tb=function(e,t,r){var n=e.length,o=!t||r,a=!r||r.i;r||(r={}),t||(t=new e1(3*n));var i=function(e){var r=t.length;if(e>r){var n=new e1(Math.max(2*r,e));n.set(t),t=n}},s=r.f||0,l=r.p||0,u=r.b||0,c=r.l,f=r.d,d=r.m,p=r.n,h=8*n;do{if(!c){r.f=s=tm(e,l,1);var m=tm(e,l+1,3);if(l+=3,m)if(1==m)c=tf,f=tp,d=9,p=5;
1else if(2==m){var v=tm(e,l,31)+257,y=tm(e,l+10,15)+4,g=v+tm(e,l+5,31)+1;l+=14;for(var b=new e1(g),S=new e1(19),w=0;w<y;++w)S[e6[w]]=tm(e,l+3*w,7);l+=3*y;var x=th(S),C=(1<<x)-1;if(!a&&l+g*(x+7)>h)break;for(var T=ts(S,x,1),w=0;w<g;){var E=T[tm(e,l,C)];l+=15&E;var k=E>>>4;if(k<16)b[w++]=k;else{var I=0,M=0;for(16==k?(M=3+tm(e,l,3),l+=2,I=b[w-1]):17==k?(M=3+tm(e,l,7),l+=3):18==k&&(M=11+tm(e,l,127),l+=7);M--;)b[w++]=I}}var N=b.subarray(0,v),_=b.subarray(v);d=th(N),p=th(_),c=ts(N,d,1),f=ts(_,p,1)}else throw"invalid block type";else{var k=ty(l)+4,O=e[k-4]|e[k-3]<<8,R=k+O;if(R>n){if(a)throw"unexpected EOF";break}o&&i(u+O),t.set(e.subarray(k,R),u),r.b=u+=O,r.p=l=8*R;continue}if(l>h)throw"unexpected EOF"}o&&i(u+131072);for(var L=(1<<d)-1,D=(1<<p)-1,A=d+p+18;a||l+A<h;){var I=c[tv(e,l)&L],F=I>>>4;if((l+=15&I)>h)throw"unexpected EOF";if(!I)throw"invalid length/literal";if(F<256)t[u++]=F;else if(256==F){c=null;break}else{var P=F-254;if(F>264){var w=F-257,W=e5[w];P=tm(e,l,(1<<W)-1)+e9[w],l+=W}var j=f[tv(e,l)&D],U=j>>>4;if(!j)throw"invalid distance";l+=15&j;var _=tr[U];if(U>3){var W=e8[U];_+=tv(e,l)&(1<<W)-1,l+=W}if(l>h)throw"unexpected EOF";o&&i(u+131072);for(var z=u+P;u<z;u+=4)t[u]=t[u-_],t[u+1]=t[u+1-_],t[u+2]=t[u+2-_],t[u+3]=t[u+3-_];u=z}}r.l=c,r.p=l,r.b=u,c&&(s=1,r.m=d,r.d=f,r.n=p)}while(!s);return u==t.length?t:tg(t,0,u)},tS=function(e,t,r){r<<=7&t;var n=t/8|0;e[n]|=r,e[n+1]|=r>>>8},tw=function(e,t,r){r<<=7&t;var n=t/8|0;e[n]|=r,e[n+1]|=r>>>8,e[n+2]|=r>>>16},tx=function(e,t){for(var r=[],n=0;n<e.length;++n)e[n]&&r.push({s:n,f:e[n]});var o=r.length,a=r.slice();if(!o)return[new e1(0),0];if(1==o){var i=new e1(r[0].s+1);return i[r[0].s]=1,[i,1]}r.sort(function(e,t){return e.f-t.f}),r.push({s:-1,f:25001});var s=r[0],l=r[1],u=0,c=1,f=2;for(r[0]={s:-1,f:s.f+l.f,l:s,r:l};c!=o-1;)s=r[r[u].f<r[f].f?u++:f++],l=r[u!=c&&r[u].f<r[f].f?u++:f++],r[c++]={s:-1,f:s.f+l.f,l:s,r:l};for(var d=a[0].s,n=1;n<o;++n)a[n].s>d&&(d=a[n].s);var p=new e2(d+1),h=tC(r[c-1],p,0);if(h>t){var n=0,m=0,v=h-t,y=1<<v;for(a.sort(function(e,t){return p[t.s]-p[e.s]||e.f-t.f});n<o;++n){var g=a[n].s;if(p[g]>t)m+=y-(1<<h-p[g]),p[g]=t;else break}for(m>>>=v;m>0;){var b=a[n].s;p[b]<t?m-=1<<t-p[b]++-1:++n}for(;n>=0&&m;--n){var S=a[n].s;p[S]==t&&(--p[S],++m)}h=t}return[new e1(p),h]},tC=function(e,t,r){return -1==e.s?Math.max(tC(e.l,t,r+1),tC(e.r,t,r+1)):t[e.s]=r},tT=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new e2(++t),n=0,o=e[0],a=1,i=function(e){r[n++]=e},s=1;s<=t;++s)if(e[s]==o&&s!=t)++a;else{if(!o&&a>2){for(;a>138;a-=138)i(32754);a>2&&(i(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(i(o),--a;a>6;a-=6)i(8304);a>2&&(i(a-3<<5|8208),a=0)}for(;a--;)i(o);a=1,o=e[s]}return[r.subarray(0,n),t]},tE=function(e,t){for(var r=0,n=0;n<t.length;++n)r+=e[n]*t[n];return r},tk=function(e,t,r){var n=r.length,o=ty(t+2);e[o]=255&n,e[o+1]=n>>>8,e[o+2]=255^e[o],e[o+3]=255^e[o+1];for(var a=0;a<n;++a)e[o+a+4]=r[a];return(o+4+n)*8},tI=function(e,t,r,n,o,a,i,s,l,u,c){tS(t,c++,r),++o[256];for(var f,d,p,h,m=tx(o,15),v=m[0],y=m[1],g=tx(a,15),b=g[0],S=g[1],w=tT(v),x=w[0],C=w[1],T=tT(b),E=T[0],k=T[1],I=new e2(19),M=0;M<x.length;++M)I[31&x[M]]++;for(var M=0;M<E.length;++M)I[31&E[M]]++;for(var N=tx(I,7),_=N[0],O=N[1],R=19;R>4&&!_[e6[R-1]];--R);var L=u+5<<3,D=tE(o,tl)+tE(a,tu)+i,A=tE(o,v)+tE(a,b)+i+14+3*R+tE(I,_)+(2*I[16]+3*I[17]+7*I[18]);if(L<=D&&L<=A)return tk(t,c,e.subarray(l,l+u));if(tS(t,c,1+(A<D)),c+=2,A<D){f=ts(v,y,0),d=v,p=ts(b,S,0),h=b;var F=ts(_,O,0);tS(t,c,C-257),tS(t,c+5,k-1),tS(t,c+10,R-4),c+=14;for(var M=0;M<R;++M)tS(t,c+3*M,_[e6[M]]);c+=3*R;for(var P=[x,E],W=0;W<2;++W)for(var j=P[W],M=0;M<j.length;++M){var U=31&j[M];tS(t,c,F[U]),c+=_[U],U>15&&(tS(t,c,j[M]>>>5&127),c+=j[M]>>>12)}}else f=tc,d=tl,p=td,h=tu;for(var M=0;M<s;++M)if(n[M]>255){var U=n[M]>>>18&31;tw(t,c,f[U+257]),c+=d[U+257],U>7&&(tS(t,c,n[M]>>>23&31),c+=e5[U]);var z=31&n[M];tw(t,c,p[z]),c+=h[z],z>3&&(tw(t,c,n[M]>>>5&8191),c+=e8[z])}else tw(t,c,f[n[M]]),c+=d[n[M]];return tw(t,c,f[256]),c+d[256]},tM=new e3([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),tN=new e1(0),t_=function(e,t,r,n,o,a){var i=e.length,s=new e1(n+i+5*(1+Math.floor(i/7e3))+o),l=s.subarray(n,s.length-o),u=0;if(!t||i<8)for(var c=0;c<=i;c+=65535){var f=c+65535;f<i?u=tk(l,u,e.subarray(c,f)):(l[c]=a,u=tk(l,u,e.subarray(c,i)))}else{for(var d=tM[t-1],p=d>>>13,h=8191&d,m=(1<<r)-1,v=new e2(32768),y=new e2(m+1),g=Math.ceil(r/3),b=2*g,S=function(t){return(e[t]^e[t+1]<<g^e[t+2]<<b)&m},w=new e3(25e3),x=new e2(288),C=new e2(32),T=0,E=0,c=0,k=0,I=0,M=0;c<i;++c){var N=S(c),_=32767&c,O=y[N];if(v[_]=O,y[N]=_,I<=c){var R=i-c;if((T>7e3||k>24576)&&R>423){u=tI(e,l,0,w,x,C,E,k,M,c-M,u),k=T=E=0,M=c;for(var L=0;L<286;++L)x[L]=0;for(var L=0;L<30;++L)C[L]=0}var D=2,A=0,F=h,P=_-O&32767;if(R>2&&N==S(c-P))for(var W=Math.min(p,R)-1,j=Math.min(32767,c),U=Math.min(258,R);P<=j&&--F&&_!=O;){if(e[c+D]==e[c+D-P]){for(var z=0;z<U&&e[c+z]==e[c+z-P];++z);if(z>D){if(D=z,A=P,z>W)break;for(var H=Math.min(P,z-2),V=0,L=0;L<H;++L){var G=c-P+L+32768&32767,B=v[G],Y=G-B+32768&32767;Y>V&&(V=Y,O=G)}}}O=v[_=O],P+=_-O+32768&32767}if(A){w[k++]=0x10000000|te[D]<<18|tn[A];var X=31&te[D],q=31&tn[A];E+=e5[X]+e8[q],++x[257+X],++C[q],I=c+D,++T}else w[k++]=e[c],++x[e[c]]}}u=tI(e,l,a,w,x,C,E,k,M,c-M,u),a||(u=tk(l,u,tN))}return tg(s,0,n+ty(u)+o)},tO=function(){var e=1,t=0;return{p:function(r){for(var n=e,o=t,a=r.length,i=0;i!=a;){for(var s=Math.min(i+5552,a);i<s;++i)n+=r[i],o+=n;n%=65521,o%=65521}e=n,t=o},d:function(){return(e>>>8<<16|(255&t)<<8|t>>>8)+((255&e)<<23)*2}}},tR=function(e,t,r){for(;r;++t)e[t]=r,r>>>=8},tL=function(e,t){var r=t.level,n=0==r?0:r<6?1:9==r?3:2;e[0]=120,e[1]=n<<6|(n?32-2*n:1)},tD=function(e){if((15&e[0])!=8||e[0]>>>4>7||(e[0]<<8|e[1])%31)throw"invalid zlib data";if(32&e[1])throw"invalid zlib data: preset dictionaries not supported"};function tA(e,t){var r=e.length;if(!t&&"undefined"!=typeof TextEncoder)return new TextEncoder().encode(e);for(var n=new e1(e.length+(e.length>>>1)),o=0,a=function(e){n[o++]=e},i=0;i<r;++i){if(o+5>n.length){var s=new e1(o+8+(r-i<<1));s.set(n),n=s}var l=e.charCodeAt(i);l<128||t?a(l):(l<2048?a(192|l>>>6):(l>55295&&l<57344?(a(240|(l=65536+(1047552&l)|1023&e.charCodeAt(++i))>>>18),a(128|l>>>12&63)):a(224|l>>>12),a(128|l>>>6&63)),a(128|63&l))}return tg(n,0,o)}function tF(e,t){var r="";if(!t&&"undefined"!=typeof TextDecoder)return new TextDecoder().decode(e);for(var n=0;n<e.length;){var o=e[n++];o<128||t?r+=String.fromCharCode(o):o<224?r+=String.fromCharCode((31&o)<<6|63&e[n++]):o<240?r+=String.fromCharCode((1
15&o)<<12|(63&e[n++])<<6|63&e[n++]):r+=String.fromCharCode(55296|(o=((15&o)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536)>>10,56320|1023&o)}return r}var tP=function(e){var t,r,n,o,a;return tF((t=tA(JSON.stringify(g(g({},e),{v:"v1"}))),void 0===r&&(r={}),(n=tO()).p(t),tL(a=t_(t,null==(o=r).level?6:o.level,null==o.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):12+o.mem,2,4,!0),r),tR(a,a.length-4,n.d()),a),!0)},tW=function(e){if("string"!=typeof e)return e;try{var t=JSON.parse(e);if(t.timestamp)return t}catch(e){}try{var r,t=JSON.parse(tF((r=tA(e,!0),tb((tD(r),r.subarray(2,-4)),void 0))));if("v1"===t.v)return t;throw Error("These events were packed with packer ".concat(t.v," which is incompatible with current packer ").concat("v1","."))}catch(e){throw console.error(e),Error("Unknown data format.")}},tj=function(){function e(e){this.fileName=e.fileName||"",this.functionName=e.functionName||"",this.lineNumber=e.lineNumber,this.columnNumber=e.columnNumber}return e.prototype.toString=function(){var e=this.lineNumber||"",t=this.columnNumber||"";return this.functionName?this.functionName+" ("+this.fileName+":"+e+":"+t+")":this.fileName+":"+e+":"+t},e}(),tU=/(^|@)\S+:\d+/,tz=/^\s*at .*(\S+:\d+|\(native\))/m,tH=/^(eval@)?(\[native code])?$/,tV={parse:function(e){if(!e)return[];if(void 0!==e.stacktrace||void 0!==e["opera#sourceloc"])return this.parseOpera(e);if(e.stack&&e.stack.match(tz))return this.parseV8OrIE(e);if(e.stack)return this.parseFFOrSafari(e);throw Error("Cannot parse given Error object")},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));if(!t)throw Error("Cannot parse given url: ".concat(e));return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(e){return e.stack.split("\n").filter(function(e){return!!e.match(tz)},this).map(function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var t=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),r=t.match(/ (\((.+):(\d+):(\d+)\)$)/),n=(t=r?t.replace(r[0],""):t).split(/\s+/).slice(1),o=this.extractLocation(r?r[1]:n.pop());return new tj({functionName:n.join(" ")||void 0,fileName:["eval","<anonymous>"].indexOf(o[0])>-1?void 0:o[0],lineNumber:o[1],columnNumber:o[2]})},this)},parseFFOrSafari:function(e){return e.stack.split("\n").filter(function(e){return!e.match(tH)},this).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 tj({functionName:e});var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=e.match(t),n=r&&r[1]?r[1]:void 0,o=this.extractLocation(e.replace(t,""));return new tj({functionName:n,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){for(var t=/Line (\d+).*script (?:in )?(\S+)/i,r=e.message.split("\n"),n=[],o=2,a=r.length;o<a;o+=2){var i=t.exec(r[o]);i&&n.push(new tj({fileName:i[2],lineNumber:parseFloat(i[1])}))}return n},parseOpera10:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=e.stacktrace.split("\n"),n=[],o=0,a=r.length;o<a;o+=2){var i=t.exec(r[o]);i&&n.push(new tj({functionName:i[3]||void 0,fileName:i[2],lineNumber:parseFloat(i[1])}))}return n},parseOpera11:function(e){return e.stack.split("\n").filter(function(e){return!!e.match(tU)&&!e.match(/^Error created at/)},this).map(function(e){var t=e.split("@"),r=this.extractLocation(t.pop());return new tj({functionName:(t.shift()||"").replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0,fileName:r[0],lineNumber:r[1],columnNumber:r[2]})},this)}};function tG(e){return"[object Object]"===Object.prototype.toString.call(e)}function tB(e,t){var r={numOfKeysLimit:50,depthOfLimit:4};Object.assign(r,t);var n=[],o=[];return JSON.stringify(e,function(e,t){if(n.length>0){var a,i,s=n.indexOf(this);~s?n.splice(s+1):n.push(this),~s?o.splice(s,1/0,e):o.push(e),~n.indexOf(t)&&(t=n[0]===t?"[Cir
1cular ~]":"[Circular ~."+o.slice(0,n.indexOf(t)).join(".")+"]")}else n.push(t);if(null==t)return t;if(tG(a=t)&&Object.keys(a).length>r.numOfKeysLimit||"function"==typeof a||tG(a)&&function e(t,r){if(0===r)return!0;var n,o,a=Object.keys(t);try{for(var i=b(a),s=i.next();!s.done;s=i.next()){var l=s.value;if(tG(t[l])&&e(t[l],r-1))return!0}}catch(e){n={error:e}}finally{try{s&&!s.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}return!1}(a,r.depthOfLimit)){return i=t.toString(),r.stringLengthLimit&&i.length>r.stringLengthLimit&&(i="".concat(i.slice(0,r.stringLengthLimit),"...")),i}if(t instanceof Event){var l={};for(var u in t){var c=t[u];Array.isArray(c)?l[u]=function(e){if(!e||!e.outerHTML)return"";for(var t="";e.parentElement;){var r=e.localName;if(!r)break;r=r.toLowerCase();var n=e.parentElement,o=[];if(n.children&&n.children.length>0)for(var a=0;a<n.children.length;a++){var i=n.children[a];i.localName&&i.localName.toLowerCase&&i.localName.toLowerCase()===r&&o.push(i)}o.length>1&&(r+=":eq("+o.indexOf(e)+")"),t=r+(t?">"+t:""),e=n}return t}(c.length?c[0]:null):l[u]=c}return l}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})}var tY={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 tX(e,t,r){var n,o,a,i=r.logger;if(!i)return function(){};a="string"==typeof i?t[i]:i;var s=0,l=[];
1if(r.level.includes("error")&&window){var u=function(t){var n=t.message,o=t.error;e({level:"error",trace:tV.parse(o).map(function(e){return e.toString()}),payload:[tB(n,r.stringifyOptions)]})};window.addEventListener("error",u),l.push(function(){window&&window.removeEventListener("error",u)})}try{for(var c=b(r.level),f=c.next();!f.done;f=c.next()){var d=f.value;l.push(function(t,n){var o=this;return t[n]?er(t,n,function(t){return function(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];t.apply(o,a);try{var l=tV.parse(Error()).map(function(e){return e.toString()}).splice(1),u=a.map(function(e){return tB(e,r.stringifyOptions)});++s<r.lengthThreshold?e({level:n,trace:l,payload:u}):s===r.lengthThreshold&&e({level:"warn",trace:[],payload:[tB("The number of log records reached the threshold.")]})}catch(e){t.apply(void 0,w(["rrweb logger error:",e],S(a),!1))}}}):function(){}}(a,d))}}catch(e){n={error:e}}finally{try{f&&!f.done&&(o=c.return)&&o.call(c)}finally{if(n)throw n.error}}return function(){l.forEach(function(e){return e()})}}var tq="rrweb/console@1",tQ=function(e){return{name:tq,observer:tX,options:e?Object.assign({},tY,e):tY}},t$="__rrweb_original__",tJ={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],replayLogger:void 0},tK=function(){function e(e){this.config=Object.assign(tJ,e)}return e.prototype.getConsoleLogger=function(){var e,t,r=this,n={},o=function(e){"trace"===e?n[e]=function(e){(console.log[t$]?console.log[t$]:console.log).apply(void 0,w(w([],S(e.payload.map(function(e){return JSON.parse(e)})),!1),[r.formatMessage(e)],!1))}:n[e]=function(t){(console[e][t$]?console[e][t$]:console[e]).apply(void 0,w(w([],S(t.payload.map(function(e){return JSON.parse(e)})),!1),[r.formatMessage(t)],!1))}};try{for(var a=b(this.config.level),i=a.next();!i.done;i=a.next()){var s=i.value;o(s)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}return n},e.prototype.formatMessage=function(e){if(0===e.trace.length)return"";var t="\n at ",r=t;return r+e.trace.join(t)},e}(),tZ=function(e){var t=(null==e?void 0:e.replayLogger)||new tK(e).getConsoleLogger();return{handler:function(e,r,n){var o=null;if(e.type===i.IncrementalSnapshot&&e.data.source===s.Log?o=e.data:e.type===i.Plugin&&e.data.plugin===tq&&(o=e.data.payload),o)try{"function"==typeof t[o.level]&&t[o.level](o)}catch(e){n.replayer.config.showWarning&&console.warn(e)}}}};let t0=function(e){return e=e||Object.create(null),{on:function(t,r){(e[t]||(e[t]=[])).push(r)},off:function(t,r){e[t]&&e[t].splice(e[t].indexOf(r)>>>0,1)},emit:function(t,r){(e[t]||[]).slice().map(function(e){e(r)}),(e["*"]||[]).slice().map(function(e){e(t,r)})}}};var t1=function(){function e(e,t){void 0===e&&(e=[]),this.timeOffset=0,this.raf=null,this.actions=e,this.speed=t}return e.prototype.addAction=function(e){var t=this.findActionIndex(e);this.actions.splice(t,0,e)},e.prototype.addActions=function(e){this.actions=this.actions.concat(e)},e.prototype.start=function(){this.timeOffset=0;var e=performance.now(),t=this.actions,r=this;this.raf=requestAnimationFrame(function n(){var o=performance.now();for(r.timeOffset+=(o-e)*r.speed,e=o;t.length;){var a=t[0];if(r.timeOffset>=a.delay)t.shift(),a.doAction();else break}(t.length>0||r.liveMode)&&(r.raf=requestAnimationFrame(n))})},e.prototype.clear=function(){this.raf&&(cancelAnimationFrame(this.raf),this.raf=null),this.actions.length=0},e.prototype.setSpeed=function(e){this.speed=e},e.prototype.toggleLiveMode=function(e){this.liveMode=e},e.prototype.isActive=function(){return null!==this.raf},e.prototype.findActionIndex=function(e){for(var t=0,r=this.actions.length-1;t<=r;){var n=Math.floor((t+r)/2);if(this.actions[n].delay<e.delay)t=n+1;else{if(!(this.actions[n].delay>e.delay))return n+1;r=n-1}}return t},e}();function t2(e,t){if(e.type===i.IncrementalSnapshot&&e.data.source===s.MouseMove){var r=e.data.positions[0].timeOffset,n=e.timestamp+r;return e.delay=n-t,n-t}return e.delay=e.timestamp-t,e.delay}function t3(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,a=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i}!function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}
1(h||(h={}));var t5={type:"xstate.init"};function t8(e){return void 0===e?[]:[].concat(e)}function t6(e){return{type:"xstate.assign",assignment:e}}function t4(e,t){return"string"==typeof(e="string"==typeof e&&t&&t[e]?t[e]:e)?{type:e}:"function"==typeof e?{type:e.name,exec:e}:e}function t7(e){return function(t){return e===t}}function t9(e){return"string"==typeof e?{type:e}:e}function re(e,t){return{value:e,context:t,actions:[],changed:!1,matches:t7(e)}}function rt(e,t,r){var n=t,o=!1;return[e.filter(function(e){if("xstate.assign"===e.type){o=!0;var t=Object.assign({},n);return"function"==typeof e.assignment?t=e.assignment(n,r):Object.keys(e.assignment).forEach(function(o){t[o]="function"==typeof e.assignment[o]?e.assignment[o](n,r):e.assignment[o]}),n=t,!1}return!0}),n,o]}function rr(e,t){void 0===t&&(t={});var r=t3(rt(t8(e.states[e.initial].entry).map(function(e){return t4(e,t.actions)}),e.context,t5),2),n=r[0],o=r[1],a={config:e,_options:t,initialState:{value:e.initial,actions:n,context:o,matches:t7(e.initial)},transition:function(t,r){var n,o,i="string"==typeof t?{value:t,context:e.context}:t,s=i.value,l=i.context,u=t9(r),c=e.states[s];if(c.on){var f=t8(c.on[u.type]);try{for(var d=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(f),p=d.next();!p.done;p=d.next()){var h=p.value;if(void 0===h)return re(s,l);var m="string"==typeof h?{target:h}:h,v=m.target,y=m.actions,g=void 0===y?[]:y,b=m.cond,S=void 0===b?function(){return!0}:b,w=void 0===v,x=null!=v?v:s,C=e.states[x];if(S(l,u)){var T=t3(rt((w?t8(g):[].concat(c.exit,g,C.entry).filter(function(e){return e})).map(function(e){return t4(e,a._options.actions)}),l,u),3),E=T[0],k=T[1],I=T[2],M=null!=v?v:s;return{value:M,context:k,actions:E,changed:v!==s||E.length>0||I,matches:t7(M)}}}}catch(e){n={error:e}}finally{try{p&&!p.done&&(o=d.return)&&o.call(d)}finally{if(n)throw n.error}}}return re(s,l)}};return a}var rn=function(e,t){return e.actions.forEach(function(r){var n=r.exec;return n&&n(e.context,t)})};function ro(e){var t=e.initialState,r=h.NotStarted,n=new Set,o={_machine:e,send:function(o){r===h.Running&&(rn(t=e.transition(t,o),t9(o)),n.forEach(function(e){return e(t)}))},subscribe:function(e){return n.add(e),e(t),{unsubscribe:function(){return n.delete(e)}}},start:function(n){if(n){var a="object"==typeof n?n:{context:e.config.context,value:n};t={value:a.value,actions:[],context:a.context,matches:t7(a.value)}}return r=h.Running,rn(t,t5),o},stop:function(){return r=h.Stopped,n.clear(),o},get state(){return t},get status(){return r}};return o}function ra(e,t){var r=e[t[0]];return 1===t.length?r:ra(r.cssRules[t[1]].cssRules,t.slice(2))}function ri(e){var t=w([],S(e),!1),r=t.pop();return{positions:t,index:r}}!function(e){e[e.Insert=0]="Insert",e[e.Remove=1]="Remove",e[e.Snapshot=2]="Snapshot",e[e.SetProperty=3]="SetProperty",e[e.RemoveProperty=4]="RemoveProperty"}(m||(m={}));var rs=new Map;function rl(e,t){var r=rs.get(e);return r||(r=new Map,rs.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}var ru=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject"];let rc=function(e){var t=e.mutation,r=e.target,n=e.type,o=e.imageMap,a=e.errorHandler;try{var i=function(e,t){try{if(t===u.WebGL)return e.getContext("webgl")||e.getContext("experimental-webgl");return e.getContext("webgl2")}catch(e){return null}}(r,n);if(!i)return;if(t.setter){i[t.property]=t.args[0];return}var s=i[t.property],l=t.args.map(function e(t,r){return function(n){if(n&&"object"==typeof n&&"rr_type"in n){if("index"in n){var o=n.rr_type,a=n.index;return rl(r,o)[a]}else if("args"in n){var i=n.rr_type,s=n.args,l=window[i];return new(l.bind.apply(l,w([void 0],S(s.map(e(t,r))),!1)))}else if("base64"in n)return eH(n.base64);else if("src"in n){var u=t.get(n.src);if(u)return u;var c=new Image;return c.src=n.src,t.set(n.src,c),c}}else if(Array.isArray(n))return n.map(e(t,r));return n}}(o,i)),c=s.apply(i,l),f=i,d=c;if(null==d?void 0:d.constructor){var p=d.constructor.name;if(ru.includes(p)){var h=rl(f,p);h.includes(d)||h.push(d)}}}catch(e){a(t,e)}}
1,rf=function(e){var t=e.event,r=e.mutation,n=e.target,o=e.imageMap,a=e.errorHandler;try{var i=n.getContext("2d");if(r.setter){i[r.property]=r.args[0];return}var s=i[r.property];if("drawImage"===r.property&&"string"==typeof r.args[0]){var l=o.get(t);r.args[0]=l,s.apply(i,r.args)}else s.apply(i,r.args)}catch(e){a(r,e)}},rd=function(e){var t=e.event,r=e.mutation,n=e.target,o=e.imageMap,a=e.errorHandler;try{var i="commands"in r?r.commands:[r];if([u.WebGL,u.WebGL2].includes(r.type))return i.forEach(function(e){rc({mutation:e,type:r.type,target:n,imageMap:o,errorHandler:a})});return i.forEach(function(e){rf({event:t,mutation:e,target:n,imageMap:o,errorHandler:a})})}catch(e){a(r,e)}};var rp=t0||y,rh="[replayer]",rm={duration:500,lineCap:"round",lineWidth:3,strokeStyle:"red"};function rv(e){return e.type==i.IncrementalSnapshot&&(e.data.source==s.TouchMove||e.data.source==s.MouseInteraction&&e.data.type==l.TouchStart)}var ry=function(){function e(e,t){var r,n,o,a,l,u=this;if(this.mouseTail=null,this.tailPositions=[],this.emitter=rp(),this.legacy_missingNodeRetryMap={},this.cache=q(),this.imageMap=new Map,this.mirror=J(),this.firstFullSnapshot=null,this.newDocumentQueue=[],this.mousePos=null,this.touchActive=null,!(null==t?void 0:t.liveMode)&&e.length<2)throw Error("Replayer need at least 2 events.");var c={speed:1,maxSpeed:360,root:document.body,loadTimeout:0,skipInactive:!1,showWarning:!0,showDebug:!1,blockClass:"rr-block",liveMode:!1,insertStyleRules:[],triggerFocus:!0,UNSAFE_replayCanvas:!1,pauseAnimation:!0,mouseTail:rm};this.config=Object.assign({},c,t),this.handleResize=this.handleResize.bind(this),this.getCastFn=this.getCastFn.bind(this),this.applyEventsSynchronously=this.applyEventsSynchronously.bind(this),this.emitter.on(f.Resize,this.handleResize),this.setupDom(),this.treeIndex=new ec,this.fragmentParentMap=new Map,this.elementStateMap=new Map,this.virtualStyleRulesMap=new Map,this.emitter.on(f.Flush,function(){var e,t,r,n,o,a,i,s,l=u.treeIndex.flush(),c=l.scrollMap,f=l.inputMap,d=l.mutationData;u.fragmentParentMap.forEach(function(e,t){return u.restoreRealParent(t,e)});try{for(var p=b(d.texts),h=p.next();!h.done;h=p.next()){var m=h.value;u.applyText(m,d)}}catch(t){e={error:t}}finally{try{h&&!h.done&&(t=p.return)&&t.call(p)}finally{if(e)throw e.error}}try{for(var v=b(u.virtualStyleRulesMap.keys()),y=v.next();!y.done;y=v.next()){var g=y.value;u.restoreNodeSheet(g)}}catch(e){r={error:e}}finally{try{y&&!y.done&&(n=v.return)&&n.call(v)}finally{if(r)throw r.error}}u.fragmentParentMap.clear(),u.elementStateMap.clear(),u.virtualStyleRulesMap.clear();try{for(var S=b(c.values()),w=S.next();!w.done;w=S.next()){var m=w.value;u.applyScroll(m,!0)}}catch(e){o={error:e}}finally{try{w&&!w.done&&(a=S.return)&&a.call(S)}finally{if(o)throw o.error}}try{for(var x=b(f.values()),C=x.next();!C.done;C=x.next()){var m=C.value;u.applyInput(m)}}catch(e){i={error:e}}finally{try{C&&!C.done&&(s=x.return)&&s.call(x)}finally{if(i)throw i.error}}}),this.emitter.on(f.PlayBack,function(){u.firstFullSnapshot=null,u.mirror.reset()});var d=new t1([],(null==t?void 0:t.speed)||c.speed);this.service=(r={events:e.map(function(e){return t&&t.unpackFn?t.unpackFn(e):e}).sort(function(e,t){return e.timestamp-t.timestamp}),timer:d,timeOffset:0,baselineTime:0,lastPlayedEvent:null},o=(n={getCastFn:this.getCastFn,applyEventsSynchronously:this.applyEventsSynchronously,emitter:this.emitter}).getCastFn,a=n.applyEventsSynchronously,l=n.emitter,ro(rr({id:"player",context:r,initial:"paused",states:{playing:{on:{PAUSE:{target:"paused",actions:["pause"]},CAST_EVENT:{target:"playing",actions:"castEvent"},END:{target:"paused",actions:["resetLastPlayedEvent","pause"]},ADD_EVENT:{target:"playing",actions:["addEvent"]}}},paused:{on:{PLAY:{target:"playing",actions:["recordTimeOffset","play"]},CAST_EVENT:{target:"paused",actions:"castEvent"},TO_LIVE:{target:"live",actions:["startLive"]},ADD_EVENT:{target:"paused",actions:["addEvent"]}}},live:{on:{ADD_EVENT:{target:"live",actions:["addEvent"]},CAST_EVENT:{target:"live",actions:["castEvent"]}}}}},{actions:{castEvent:t6({lastPlayedEvent:function(e,t){return"CAST_EVENT"===t.type?t.payload.event:e.lastPlayedEvent}}),recordTimeOffset:t6(function(e,t){var r=e.timeOffset;return"payload"in t&&"timeOffset"in t.payload&&(r=t.payload.timeOffset),g(g({},e),{timeOffset:r,baselineTime:e.events[0].timestamp+r})}),play:function(e){var t,r,n,u,c,d=e.timer,p=e.events,h=e.baselineTime,m=e.lastPlayedEvent;d.clear();try{for(var v=b(p),y=v.next();!y.done;y=v.next()){var g=y.value;t2(g,h)}}catch(e){t={error:e}}finally{try{y&&!y.done&&(r=v.return)&&r.call(v)}finally{if(t)throw t.error}}var S=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.type===i.Meta&&n.timestamp<=t)return e.slice(r)}return e}(p,h),w=null==m?void 0:m.timestamp;(null==m?void 0:m.type)===i.IncrementalSnapshot&&m.data.source===s.MouseMove&&(w=m.timestamp+(null==(c=m.data.positions[0])?void 0:c.timeOffset)),h<(w||0)&&l.emit(f.PlayBack);var x=[],C=[];try{for(var T=b(S),E=T.next();!E.done;E=T.next()){var k=E.value;!function(e){if(!w||!(w<h)||!(e.timestamp<=w)&&e!==m)if(e.timestamp<h)x.push(e);else{var t=o(e,!1);C.push({doAction:function(){t()},delay:e.delay})}}(k)}}catch(e){n={error:e}}finally{try{E&&!E.done&&(u=T.return)&&u.call(T)}finally{if(n)throw n.error}}a(x),l.emit(f.Flush),d.addActions(C),d.start()},pause:function(e){e.timer.clear()},resetLastPlayedEvent:t6(function(e){return g(g({},e),{lastPlayedEvent:null})}),startLive:t6({baselineTime:function(e,t){return(e.timer.toggleLiveMode(!0),e.timer.start(),"TO_LIVE"===t.type&&t.payload.baselineTime)?t.payload.baselineTime:Date.now()}}),addEvent:t6(function(e,t){var r=e.baselineTime,n=e.timer,a=e.events;if("ADD_EVENT"===t.type){var i=t.payload.event;t2(i,r);var s=a.length-1;if(!a[s]||a[s].timestamp<=i.timestamp)a.push(i);else{for(var l=-1,u=0;u<=s;){var c=Math.floor((u+s)/2);a[c].timestamp<=i.timestamp?u=c+1:s=c-1}-1===l&&(l=u),a.splice(l,0,i)}var f=i.timestamp<r,d=o(i,f);f?d():n.isActive()&&n.addAction({doAction:function(){d()},delay:i.delay})}return g(g({},e),{events:a})})}}))),this.service.start(),this.service.subscribe(function(e){u.emitter.emit(f.StateChange,{player:e})}),this.speedService=ro(rr({id:"speed",context:{normalSpeed:-1,timer:d},initial:"normal",states:{normal:{on:{FAST_FORWARD:{target:"skipping",actions:["recordSpeed","setSpeed"]},SET_SPEED:{target:"normal",actions:["setSpeed"]}}},skipping:{on:{BACK_TO_NORMAL:{target:"normal",actions:["restoreSpeed"]},SET_SPEED:{target:"normal",actions:["setSpeed"]}}}}},{actions:{setSpeed:function(e,t){"payload"in t&&e.timer.setSpeed(t.payload.speed)}
1,recordSpeed:t6({normalSpeed:function(e){return e.timer.speed}}),restoreSpeed:function(e){e.timer.setSpeed(e.normalSpeed)}}})),this.speedService.start(),this.speedService.subscribe(function(e){u.emitter.emit(f.StateChange,{speed:e})});var p=this.service.state.context.events.find(function(e){return e.type===i.Meta}),h=this.service.state.context.events.find(function(e){return e.type===i.FullSnapshot});if(p){var m=p.data,v=m.width,y=m.height;setTimeout(function(){u.emitter.emit(f.Resize,{width:v,height:y})},0)}h&&setTimeout(function(){u.firstFullSnapshot||(u.firstFullSnapshot=h,u.rebuildFullSnapshot(h),u.iframe.contentWindow.scrollTo(h.data.initialOffset))},1),this.service.state.context.events.find(rv)&&this.mouse.classList.add("touch-device")}return Object.defineProperty(e.prototype,"timer",{get:function(){return this.service.state.context.timer},enumerable:!1,configurable:!0}),e.prototype.on=function(e,t){return this.emitter.on(e,t),this},e.prototype.off=function(e,t){return this.emitter.off(e,t),this},e.prototype.setConfig=function(e){var t=this;Object.keys(e).forEach(function(r){t.config[r]=e[r]}),this.config.skipInactive||this.backToNormal(),void 0!==e.speed&&this.speedService.send({type:"SET_SPEED",payload:{speed:e.speed}}),void 0!==e.mouseTail&&(!1===e.mouseTail?this.mouseTail&&(this.mouseTail.style.display="none"):(this.mouseTail||(this.mouseTail=document.createElement("canvas"),this.mouseTail.width=Number.parseFloat(this.iframe.width),this.mouseTail.height=Number.parseFloat(this.iframe.height),this.mouseTail.classList.add("replayer-mouse-tail"),this.wrapper.insertBefore(this.mouseTail,this.iframe)),this.mouseTail.style.display="inherit"))},e.prototype.getMetaData=function(){var e=this.service.state.context.events[0],t=this.service.state.context.events[this.service.state.context.events.length-1];return{startTime:e.timestamp,endTime:t.timestamp,totalTime:t.timestamp-e.timestamp}},e.prototype.getCurrentTime=function(){return this.timer.timeOffset+this.getTimeOffset()},e.prototype.getTimeOffset=function(){var e=this.service.state.context;return e.baselineTime-e.events[0].timestamp},e.prototype.getMirror=function(){return this.mirror},e.prototype.play=function(e){var t;void 0===e&&(e=0),this.service.state.matches("paused")||this.service.send({type:"PAUSE"}),this.service.send({type:"PLAY",payload:{timeOffset:e}}),null==(t=this.iframe.contentDocument)||t.getElementsByTagName("html")[0].classList.remove("rrweb-paused"),this.emitter.emit(f.Start)},e.prototype.pause=function(e){var t;void 0===e&&this.service.state.matches("playing")&&this.service.send({type:"PAUSE"}),"number"==typeof e&&(this.play(e),this.service.send({type:"PAUSE"})),null==(t=this.iframe.contentDocument)||t.getElementsByTagName("html")[0].classList.add("rrweb-paused"),this.emitter.emit(f.Pause)},e.prototype.resume=function(e){void 0===e&&(e=0),console.warn("The 'resume' will be departed in 1.0. Please use 'play' method which has the same interface."),this.play(e),this.emitter.emit(f.Resume)},e.prototype.startLive=function(e){this.service.send({type:"TO_LIVE",payload:{baselineTime:e}})},e.prototype.addEvent=function(e){var t=this,r=this.config.unpackFn?this.config.unpackFn(e):e;rv(r)&&this.mouse.classList.add("touch-device"),Promise.resolve().then(function(){return t.service.send({type:"ADD_EVENT",payload:{event:r}})})},e.prototype.enableInteract=function(){this.iframe.setAttribute("scrolling","auto"),this.iframe.style.pointerEvents="auto"},e.prototype.disableInteract=function(){this.iframe.setAttribute("scrolling","no"),this.iframe.style.pointerEvents="none"},e.prototype.resetCache=function(){this.cache=q()},e.prototype.setupDom=function(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("replayer-wrapper"),this.config.root.appendChild(this.wrapper),this.mouse=document.createElement("div"),this.mouse.classList.add("replayer-mouse"),this.wrapper.appendChild(this.mouse),!1!==this.config.mouseTail&&(this.mouseTail=document.createElement("canvas"),this.mouseTail.classList.add("replayer-mouse-tail"),this.mouseTail.style.display="inherit",this.wrapper.appendChild(this.mouseTail)),this.iframe=document.createElement("iframe");var e=["allow-same-origin"];this.config.UNSAFE_replayCanvas&&e.push("allow-scripts"),this.iframe.style.display="none",this.iframe.setAttribute("sandbox",e.join(" ")),this.disableInteract(),this.wrapper.appendChild(this.iframe),this.iframe.contentWindow&&this.iframe.contentDocument&&(!function(e,t){if(void 0===e&&(e=window),void 0===t&&(t=document),!("scrollBehavior"in t.documentElement.style)||!0===e.__forceSmoothScrollPolyfill__){var r,n=e.HTMLElement||e.Element,o=468,a={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:n.prototype.scroll||l,scrollIntoView:n.prototype.scrollIntoView},i=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now,s=+(r=e.navigator.userAgent,!!RegExp("MSIE |Trident/|Edge/").test(r));
1e.scroll=e.scrollTo=function(){if(void 0!==arguments[0]){if(!0===u(arguments[0]))return void a.scroll.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:e.scrollY||e.pageYOffset);d.call(e,t.body,void 0!==arguments[0].left?~~arguments[0].left:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:e.scrollY||e.pageYOffset)}},e.scrollBy=function(){if(void 0!==arguments[0]){if(u(arguments[0]))return void a.scrollBy.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0);d.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset))}},n.prototype.scroll=n.prototype.scrollTo=function(){if(void 0!==arguments[0]){if(!0===u(arguments[0])){if("number"==typeof arguments[0]&&void 0===arguments[1])throw SyntaxError("Value could not be converted");a.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop);return}var e=arguments[0].left,t=arguments[0].top;d.call(this,this,void 0===e?this.scrollLeft:~~e,void 0===t?this.scrollTop:~~t)}},n.prototype.scrollBy=function(){if(void 0!==arguments[0]){if(!0===u(arguments[0]))return void a.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop);this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})}},n.prototype.scrollIntoView=function(){if(!0===u(arguments[0]))return void a.scrollIntoView.call(this,void 0===arguments[0]||arguments[0]);var r=function(e){for(var r,n,o;e!==t.body&&!1===(n=c(r=e,"Y")&&f(r,"Y"),o=c(r,"X")&&f(r,"X"),n||o);)e=e.parentNode||e.host;return e}(this),n=r.getBoundingClientRect(),o=this.getBoundingClientRect();r!==t.body?(d.call(this,r,r.scrollLeft+o.left-n.left,r.scrollTop+o.top-n.top),"fixed"!==e.getComputedStyle(r).position&&e.scrollBy({left:n.left,top:n.top,behavior:"smooth"})):e.scrollBy({left:o.left,top:o.top,behavior:"smooth"})}}function l(e,t){this.scrollLeft=e,this.scrollTop=t}function u(e){if(null===e||"object"!=typeof e||void 0===e.behavior||"auto"===e.behavior||"instant"===e.behavior)return!0;if("object"==typeof e&&"smooth"===e.behavior)return!1;throw TypeError("behavior member of ScrollOptions "+e.behavior+" is not a valid value for enumeration ScrollBehavior.")}function c(e,t){return"Y"===t?e.clientHeight+s<e.scrollHeight:"X"===t?e.clientWidth+s<e.scrollWidth:void 0}function f(t,r){var n=e.getComputedStyle(t,null)["overflow"+r];return"auto"===n||"scroll"===n}function d(r,n,s){var u,c,f,d,p=i();r===t.body?(u=e,c=e.scrollX||e.pageXOffset,f=e.scrollY||e.pageYOffset,d=a.scroll):(u=r,c=r.scrollLeft,f=r.scrollTop,d=l),function t(r){var n,a,s,l=(i()-r.startTime)/o;n=.5*(1-Math.cos(Math.PI*(l=l>1?1:l))),a=r.startX+(r.x-r.startX)*n,s=r.startY+(r.y-r.startY)*n,r.method.call(r.scrollable,a,s),(a!==r.x||s!==r.y)&&e.requestAnimationFrame(t.bind(e,r))}({scrollable:u,method:d,startTime:p,startX:c,startY:f,x:n,y:s})}}(this.iframe.contentWindow,this.iframe.contentDocument),eu(this.iframe.contentWindow))},e.prototype.handleResize=function(e){var t,r;this.iframe.style.display="inherit";try{for(var n=b([this.mouseTail,this.iframe]),o=n.next();!o.done;o=n.next()){var a=o.value;a&&(a.setAttribute("width",String(e.width)),a.setAttribute("height",String(e.height)))}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}},e.prototype.applyEventsSynchronously=function(e){var t,r;try{for(var n=b(e),o=n.next();!o.done;o=n.next()){var a=o.value;switch(a.type){case i.DomContentLoaded:case i.Load:case i.Custom:continue;case i.FullSnapshot:case i.Meta:case i.Plugin:break;
1case i.IncrementalSnapshot:if(a.data.source===s.MediaInteraction)continue}this.getCastFn(a,!0)()}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}this.mousePos&&this.moveAndHover(this.mousePos.x,this.mousePos.y,this.mousePos.id,!0,this.mousePos.debugData),this.mousePos=null,!0===this.touchActive?this.mouse.classList.add("touch-active"):!1===this.touchActive&&this.mouse.classList.remove("touch-active"),this.touchActive=null},e.prototype.getCastFn=function(e,t){var r,n=this;switch(void 0===t&&(t=!1),e.type){case i.DomContentLoaded:case i.Load:break;case i.Custom:r=function(){n.emitter.emit(f.CustomEvent,e)};break;case i.Meta:r=function(){return n.emitter.emit(f.Resize,{width:e.data.width,height:e.data.height})};break;case i.FullSnapshot:r=function(){if(n.firstFullSnapshot){if(n.firstFullSnapshot===e){n.firstFullSnapshot=!0;return}}else n.firstFullSnapshot=!0;n.rebuildFullSnapshot(e,t),n.iframe.contentWindow.scrollTo(e.data.initialOffset)};break;case i.IncrementalSnapsh
1ot:r=function(){var r,o;if(n.applyIncremental(e,t),!t&&(e===n.nextUserInteractionEvent&&(n.nextUserInteractionEvent=null,n.backToNormal()),n.config.skipInactive&&!n.nextUserInteractionEvent)){try{for(var a=b(n.service.state.context.events),i=a.next();!i.done;i=a.next()){var s=i.value;if(!(s.timestamp<=e.timestamp)&&n.isUserInteraction(s)){s.delay-e.delay>1e4*n.speedService.state.context.timer.speed&&(n.nextUserInteractionEvent=s);break}}}catch(e){r={error:e}}finally{try{i&&!i.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}if(n.nextUserInteractionEvent){var l={speed:Math.min(Math.round((n.nextUserInteractionEvent.delay-e.delay)/5e3),n.config.maxSpeed)};n.speedService.send({type:"FAST_FORWARD",payload:l}),n.emitter.emit(f.SkipStart,l)}}}}return function(){r&&r();try{for(var o,a,l=b(n.config.plugins||[]),u=l.next();!u.done;u=l.next())u.value.handler(e,t,{replayer:n})}catch(e){o={error:e}}finally{try{u&&!u.done&&(a=l.return)&&a.call(l)}finally{if(o)throw o.error}}n.service.send({type:"CAST_EVENT",payload:{event:e}});var c=n.service.state.context.events.length-1;if(e===n.service.state.context.events[c]){var d=function(){c<n.service.state.context.events.length-1||(n.backToNormal(),n.service.send("END"),n.emitter.emit(f.Finish))};e.type===i.IncrementalSnapshot&&e.data.source===s.MouseMove&&e.data.positions.length?setTimeout(function(){d()},Math.max(0,-e.data.positions[0].timeOffset+50)):d()}n.emitter.emit(f.EventCast,e)}},e.prototype.rebuildFullSnapshot=function(e,t){var r,o,a=this;if(void 0===t&&(t=!1),!this.iframe.contentDocument)return console.warn("Looks like your replayer has been destroyed.");Object.keys(this.legacy_missingNodeRetryMap).length&&console.warn("Found unresolved missing node map",this.legacy_missingNodeRetryMap),this.legacy_missingNodeRetryMap={};var i=[];this.mirror.map=function(e,t){var r=t.doc,o=t.onVisit,a=t.hackCss,i=t.afterAppend,s=t.cache,l={},u=Q(e,{doc:r,map:l,skipChild:!1,hackCss:void 0===a||a,afterAppend:i,cache:s});for(var c in l)l[c]&&function(e){o&&o(e);var t=e.__sn;if(t.type===n.Element){for(var r in t.attributes)if(t.attributes.hasOwnProperty(r)&&r.startsWith("rr_")){var a=t.attributes[r];"rr_scrollLeft"===r&&(e.scrollLeft=a),"rr_scrollTop"===r&&(e.scrollTop=a)}}}(l[c]);return[u,l]}(e.data.node,{doc:this.iframe.contentDocument,afterAppend:function(e){a.collectIframeAndAttachDocument(i,e)},cache:this.cache})[1];var s=function(e,t){l.attachDocumentToIframe(e,t),l.newDocumentQueue=l.newDocumentQueue.filter(function(t){return t!==e})},l=this;try{for(var u=b(i),c=u.next();!c.done;c=u.next()){var d=c.value,p=d.mutationInQueue,h=d.builtNode;s(p,h)}}catch(e){r={error:e}}finally{try{c&&!c.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}var m=this.iframe.contentDocument,v=m.documentElement,y=m.head;this.insertStyleRules(v,y),this.service.state.matches("playing")||this.iframe.contentDocument.getElementsByTagName("html")[0].classList.add("rrweb-paused"),this.emitter.emit(f.FullsnapshotRebuilded,e),t||this.waitForStylesheetLoad(),this.config.UNSAFE_replayCanvas&&this.preloadAllImages()},e.prototype.insertStyleRules=function(e,t){var r,n=document.createElement("style");e.insertBefore(n,t);var o=(r=this.config.blockClass,[".".concat(r," { background: currentColor }"),"noscript { display: none !important; }"]).concat(this.config.insertStyleRules);this.config.pauseAnimation&&o.push("html.rrweb-paused *, html.rrweb-paused *:before, html.rrweb-paused *:after { animation-play-state: paused !important; }");for(var a=0;a<o.length;a++)n.sheet.insertRule(o[a],a)},e.prototype.attachDocumentToIframe=function(e,t){var r,o,a=this,i=[];if(!t.contentDocument)for(var s=t.parentNode;s;){if(this.fragmentParentMap.has(s)){var l=s,u=this.fragmentParentMap.get(l);this.restoreRealParent(l,u);break}s=s.parentNode}Q(e.node,{doc:t.contentDocument,map:this.mirror.map,hackCss:!0,skipChild:!1,afterAppend:function(e){if(a.collectIframeAndAttachDocument(i,e),e.__sn.type===n.Element&&"HTML"===e.__sn.tagName.toUpperCase()){var r=t.contentDocument,o=r.documentElement,s=r.head;a.insertStyleRules(o,s)}},cache:this.cache});var c=function(e,t){f.attachDocumentToIframe(e,t),f.newDocumentQueue=f.newDocumentQueue.filter(function(t){return t!==e})},f=this;try{for(var d=b(i),p=d.next();!p.done;p=d.next()){var h=p.value,m=h.mutationInQueue,v=h.builtNode;c(m,v)}}catch(e){r={error:e}}
1finally{try{p&&!p.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}},e.prototype.collectIframeAndAttachDocument=function(e,t){if(ep(t)){var r=this.newDocumentQueue.find(function(e){return e.parentId===t.__sn.id});r&&e.push({mutationInQueue:r,builtNode:t})}},e.prototype.waitForStylesheetLoad=function(){var e=this,t=null==(r=this.iframe.contentDocument)?void 0:r.head;if(t){var r,n,o=new Set,a=this.service.state,i=function(){a=e.service.state};this.emitter.on(f.Start,i),this.emitter.on(f.Pause,i);var s=function(){e.emitter.off(f.Start,i),e.emitter.off(f.Pause,i)};t.querySelectorAll('link[rel="stylesheet"]').forEach(function(t){t.sheet||(o.add(t),t.addEventListener("load",function(){o.delete(t),0===o.size&&-1!==n&&(a.matches("playing")&&e.play(e.getCurrentTime()),e.emitter.emit(f.LoadStylesheetEnd),n&&clearTimeout(n),s())}))}),o.size>0&&(this.service.send({type:"PAUSE"}),this.emitter.emit(f.LoadStylesheetStart),n=setTimeout(function(){a.matches("playing")&&e.play(e.getCurrentTime()),n=-1,s()},this.config.loadTimeout))}},e.prototype.hasImageArg=function(e){var t,r;try{for(var n=b(e),o=n.next();!o.done;o=n.next()){var a=o.value;if(a&&"object"==typeof a){if("rr_type"in a&&"args"in a){if(this.hasImageArg(a.args))return!0}else if("rr_type"in a&&"HTMLImageElement"===a.rr_type)return!0;else if(a instanceof Array&&this.hasImageArg(a))return!0}}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return!1},e.prototype.getImageArgs=function(e){var t,r,n=[];try{for(var o=b(e),a=o.next();!a.done;a=o.next()){var i=a.value;i&&"object"==typeof i&&("rr_type"in i&&"args"in i?n.push.apply(n,w([],S(this.getImageArgs(i.args)),!1)):"rr_type"in i&&"HTMLImageElement"===i.rr_type?n.push(i.src):i instanceof Array&&n.push.apply(n,w([],S(this.getImageArgs(i)),!1)))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return n},e.prototype.preloadAllImages=function(){var e,t,r=this;this.service.state;var n=function(){r.service.state};this.emitter.on(f.Start,n),this.emitter.on(f.Pause,n);var o=function(e){e.type===i.IncrementalSnapshot&&e.data.source===s.CanvasMutation&&("commands"in e.data?e.data.commands.forEach(function(t){return r.preloadImages(t,e)}):a.preloadImages(e.data,e))},a=this;try{for(var l=b(this.service.state.context.events),u=l.next();!u.done;u=l.next()){var c=u.value;o(c)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(t=l.return)&&t.call(l)}finally{if(e)throw e.error}}},e.prototype.preloadImages=function(e,t){var r=this;if("drawImage"!==e.property||"string"!=typeof e.args[0]||this.imageMap.has(t))this.hasImageArg(e.args)&&this.getImageArgs(e.args).forEach(function(e){var t=new Image;t.src=e,r.imageMap.set(e,t)});else{var n=document.createElement("canvas"),o=n.getContext("2d"),a=null==o?void 0:o.createImageData(n.width,n.height);null==a||a.data,JSON.parse(e.args[0]),null==o||o.putImageData(a,0,0)}},e.prototype.applyIncremental=function(e,t){var r=this,n=e.data;switch(n.source){case s.Mutation:t&&(n.adds.forEach(function(e){return r.treeIndex.add(e)}),n.texts.forEach(function(e){var t=r.mirror.getNode(e.id),n=null==t?void 0:t.parentNode;n&&r.virtualStyleRulesMap.has(n)&&r.virtualStyleRulesMap.delete(n),r.treeIndex.text(e)}),n.attributes.forEach(function(e){return r.treeIndex.attribute(e)}),n.removes.forEach(function(e){return r.treeIndex.remove(e,r.mirror)}));try{this.applyMutation(n,t)}catch(e){this.warn("Exception in mutation ".concat(e.message||e),n)}break;case s.Drag:case s.TouchMove:case s.MouseMove:if(t){var o=n.positions[n.positions.length-1];this.mousePos={x:o.x,y:o.y,id:o.id,debugData:n}}else n.positions.forEach(function(o){var a={doAction:function(){r.moveAndHover(o.x,o.y,o.id,t,n)},delay:o.timeOffset+e.timestamp-r.service.state.context.baselineTime};r.timer.addAction(a)}),this.timer.addAction({doAction:function(){},delay:e.delay-(null==(d=n.positions[0])?void 0:d.timeOffset)});break;case s.MouseInteraction:if(-1===n.id)break;var a=new Event(l[n.type].toLowerCase()),i=this.mirror.getNode(n.id);if(!i)return this.debugNodeNotFound(n,n.id);this.emitter.emit(f.MouseInteraction,{type:n.type,target:i});var u=this.config.triggerFocus;switch(n.type){case l.Blur:"blur"in i&&i.blur();break;case l.Focus:u&&i.focus&&i.focus({preventScroll:!0});break;case l.Click:case l.TouchStart:case l.TouchEnd:t?(n.type===l.TouchStart?this.touchActive=!0:n.type===l.TouchEnd&&(this.touchActive=!1),this.mousePos={x:n.x,y:n.y,id:n.id,debugData:n}):(n.type===l.TouchStart&&(this.tailPositions.length=0),this.moveAndHover(n.x,n.y,n.id,t,n),n.type===l.Click?(this.mouse.classList.remove("active"),this.mouse.offsetWidth,this.mouse.classList.add("active")):n.type===l.TouchStart?(this.mouse.offsetWidth,this.mouse.classList.add("touch-active")):n.type===l.TouchEnd&&this.mouse.classList.remove("touch-active"));break;case l.TouchCancel:t?this.touchActive=!1:this.mouse.classList.remove("touch-active");break;default:i.dispatchEvent(a)}break;
1case s.Scroll:if(-1===n.id)break;if(t){this.treeIndex.scroll(n);break}this.applyScroll(n,!1);break;case s.ViewportResize:this.emitter.emit(f.Resize,{width:n.width,height:n.height});break;case s.Input:if(-1===n.id)break;if(t){this.treeIndex.input(n);break}this.applyInput(n);break;case s.MediaInteraction:var i=this.mirror.getNode(n.id);if(!i)return this.debugNodeNotFound(n,n.id);var c=i;try{n.currentTime&&(c.currentTime=n.currentTime),n.volume&&(c.volume=n.volume),n.muted&&(c.muted=n.muted),1===n.type&&c.pause(),0===n.type&&c.play()}catch(e){this.config.showWarning&&console.warn("Failed to replay media interactions: ".concat(e.message||e))}break;case s.StyleSheetRule:var d,p,h,i=this.mirror.getNode(n.id);if(!i)return this.debugNodeNotFound(n,n.id);var v=i,y=i.parentNode,b=this.fragmentParentMap.has(y),S=b?null:v.sheet;S||(this.virtualStyleRulesMap.has(i)?h=this.virtualStyleRulesMap.get(i):(h=[],this.virtualStyleRulesMap.set(i,h))),n.adds&&n.adds.forEach(function(e){var t=e.rule,r=e.index;if(S)try{if(Array.isArray(r)){var n=ri(r),o=n.positions,a=n.index;ra(S.cssRules,o).insertRule(t,a)}else{var a=void 0===r?void 0:Math.min(r,S.cssRules.length);S.insertRule(t,a)}}catch(e){}else null==h||h.push({cssText:t,index:r,type:m.Insert})}),n.removes&&n.removes.forEach(function(e){var t=e.index;if(b)null==h||h.push({index:t,type:m.Remove});else try{if(Array.isArray(t)){var r=ri(t),n=r.positions,o=r.index;ra(S.cssRules,n).deleteRule(o||0)}else null==S||S.deleteRule(t)}catch(e){}});break;case s.StyleDeclaration:var i=this.mirror.getNode(n.id);if(!i)return this.debugNodeNotFound(n,n.id);var v=i,w=i.parentNode,x=this.fragmentParentMap.has(w)?null:v.sheet,C=[];if(x||(this.virtualStyleRulesMap.has(i)?C=this.virtualStyleRulesMap.get(i):(C=[],this.virtualStyleRulesMap.set(i,C))),n.set)if(x){var T=ra(x.rules,n.index);T.style.setProperty(n.set.property,n.set.value,n.set.priority)}else C.push(g({type:m.SetProperty,index:n.index},n.set));if(n.remove)if(x){var T=ra(x.rules,n.index);T.style.removeProperty(n.remove.property)}else C.push(g({type:m.RemoveProperty,index:n.index},n.remove));break;case s.CanvasMutation:if(!this.config.UNSAFE_replayCanvas)return;var i=this.mirror.getNode(n.id);if(!i)return this.debugNodeNotFound(n,n.id);rd({event:e,mutation:n,target:i,imageMap:this.imageMap,errorHandler:this.warnCanvasMutationFailed.bind(this)});break;case s.Font:try{var E=new FontFace(n.family,n.buffer?new Uint8Array(JSON.parse(n.fontSource)):n.fontSource,n.descriptors);null==(p=this.iframe.contentDocument)||p.fonts.add(E)}catch(e){this.config.showWarning&&console.warn(e)}}},e.prototype.applyMutation=function(e,t){var r,o,a=this;e.removes.forEach(function(t){var r=a.mirror.getNode(t.id);if(!r){if(e.removes.find(function(e){return e.id===t.parentId}))return;return a.warnNodeNotFound(e,t.id)}a.virtualStyleRulesMap.has(r)&&a.virtualStyleRulesMap.delete(r);var n=a.mirror.getNode(t.parentId);if(!n)return a.warnNodeNotFound(e,t.parentId);if(t.isShadow&&em(n)&&(n=n.shadowRoot),a.mirror.removeNodeFromMap(r),n){var o=null,i="__sn"in n?a.fragmentParentMap.get(n):void 0;i&&i.contains(r)?n=i:a.fragmentParentMap.has(r)&&(o=a.fragmentParentMap.get(r),a.fragmentParentMap.delete(r),r=o);try{n.removeChild(r)}catch(t){if(t instanceof DOMException)a.warn("parent could not remove child in mutation",n,i,r,o,e);else throw t}}});var i=g({},this.legacy_missingNodeRetryMap),s=[],l=function(e){var t=null;return e.nextId&&(t=a.mirror.getNode(e.nextId)),null!==e.nextId&&void 0!==e.nextId&&-1!==e.nextId&&!t},u=function(e){if(!a.iframe.contentDocument)return console.warn("Looks like your replayer has been destroyed.");var r,o,u,c,f=a.mirror.getNode(e.parentId);if(!f)return e.node.type===n.Document?a.newDocumentQueue.push(e):s.push(e);var d=null;a.iframe.contentDocument.contains?d=a.iframe.contentDocument.contains(f):a.iframe.contentDocument.body.contains&&(d=a.iframe.contentDocument.body.contains(f));var p=(null==(c=(u=f).getElementsByTagName)?void 0:c.call(u,"iframe").length)>0;if(t&&d&&!ep(f)&&!p){var h=document.createDocumentFragment();for(a.mirror.map[e.parentId]=h,a.fragmentParentMap.set(h,f),a.storeState(f);f.firstChild;)h.appendChild(f.firstChild);f=h}e.node.isShadow&&(em(f)||f.attachShadow({mode:"open"}),f=f.shadowRoot);var m=null,v=null;if(e.previousId&&(m=a.mirror.getNode(e.previousId)),e.nextId&&(v=a.mirror.getNode(e.nextId)),l(e))return s.push(e);if(!e.node.rootId||a.mirror.getNode(e.node.rootId)){var y=e.node.rootId?a.mirror.getNode(e.node.rootId):a.iframe.contentDocument;if(ep(f))return void a.attachDocumentToIframe(e,f);var g=Q(e.node,{doc:y,map:a.mirror.map,skipChild:!0,hackCss:!0,cache:a.cache});if(-1===e.previousId||-1===e.nextId){i[e.node.id]={node:g,mutation:e};return}if("__sn"in f&&f.__sn.type===n.Element&&"textarea"===f.__sn.tagName&&e.node.type===n.Text)try{for(var S=b(Array.from(f.childNodes)),w=S.next();!w.done;w=S.next()){var x=w.value;x.nodeType===f.TEXT_NODE&&f.removeChild(x)}}catch(e){r={error:e}}
1finally{try{w&&!w.done&&(o=S.return)&&o.call(S)}finally{if(r)throw r.error}}if(m&&m.nextSibling&&m.nextSibling.parentNode)f.insertBefore(g,m.nextSibling);else if(v&&v.parentNode)f.contains(v)?f.insertBefore(g,v):f.insertBefore(g,null);else{if(f===y)for(;y.firstChild;)y.removeChild(y.firstChild);f.appendChild(g)}if(ep(g)){var C=a.newDocumentQueue.find(function(e){return e.parentId===g.__sn.id});C&&(a.attachDocumentToIframe(C,g),a.newDocumentQueue=a.newDocumentQueue.filter(function(e){return e!==C}))}(e.previousId||e.nextId)&&a.legacy_resolveMissingNode(i,f,g,e)}};e.adds.forEach(function(e){u(e)});for(var c=Date.now();s.length;){var f=ef(s);if(s.length=0,Date.now()-c>500){this.warn("Timeout in the loop, please check the resolve tree data:",f);break}try{for(var d=(r=void 0,b(f)),p=d.next();!p.done;p=d.next()){var h=p.value;this.mirror.getNode(h.value.parentId)?ed(h,function(e){u(e)}):this.debug("Drop resolve tree since there is no parent for the root node.",h)}}catch(e){r={error:e}}finally{try{p&&!p.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}}Object.keys(i).length&&Object.assign(this.legacy_missingNodeRetryMap,i),e.texts.forEach(function(t){var r=a.mirror.getNode(t.id);if(!r){if(e.removes.find(function(e){return e.id===t.id}))return;return a.warnNodeNotFound(e,t.id)}a.fragmentParentMap.has(r)&&(r=a.fragmentParentMap.get(r)),r.textContent=t.value}),e.attributes.forEach(function(t){var r=a.mirror.getNode(t.id);if(!r){if(e.removes.find(function(e){return e.id===t.id}))return;return a.warnNodeNotFound(e,t.id)}for(var n in a.fragmentParentMap.has(r)&&(r=a.fragmentParentMap.get(r)),t.attributes)if("string"==typeof n){var o=t.attributes[n];if(null===o)r.removeAttribute(n);else if("string"==typeof o)try{r.setAttribute(n,o)}catch(e){a.config.showWarning&&console.warn("An error occurred may due to the checkout feature.",e)}else if("style"===n){var i=r;for(var s in o)if(!1===o[s])i.style.removeProperty(s);else if(o[s]instanceof Array){var l=o[s];i.style.setProperty(s,l[0],l[1])}else{var u=o[s];i.style.setProperty(s,u)}}}})},e.prototype.applyScroll=function(e,t){var r=this.mirror.getNode(e.id);if(!r)return this.debugNodeNotFound(e,e.id);if(r===this.iframe.contentDocument)this.iframe.contentWindow.scrollTo({top:e.y,left:e.x,behavior:t?"auto":"smooth"});else if(r.__sn.type===n.Document)r.defaultView.scrollTo({top:e.y,left:e.x,behavior:t?"auto":"smooth"});else try{r.scrollTop=e.y,r.scrollLeft=e.x}catch(e){}},e.prototype.applyInput=function(e){var t=this.mirror.getNode(e.id);if(!t)return this.debugNodeNotFound(e,e.id);try{t.checked=e.isChecked,t.value=e.text}catch(e){}},e.prototype.applyText=function(e,t){var r=this.mirror.getNode(e.id);if(!r)return this.debugNodeNotFound(t,e.id);try{r.textContent=e.value}catch(e){}},e.prototype.legacy_resolveMissingNode=function(e,t,r,n){var o=n.previousId,a=n.nextId,i=o&&e[o],s=a&&e[a];if(i){var l=i.node,u=i.mutation;t.insertBefore(l,r),delete e[u.node.id],delete this.legacy_missingNodeRetryMap[u.node.id],(u.previousId||u.nextId)&&this.legacy_resolveMissingNode(e,t,l,u)}if(s){var l=s.node,u=s.mutation;t.insertBefore(l,r.nextSibling),delete e[u.node.id],delete this.legacy_missingNodeRetryMap[u.node.id],(u.previousId||u.nextId)&&this.legacy_resolveMissingNode(e,t,l,u)}},e.prototype.moveAndHover=function(e,t,r,n,o){var a=this.mirror.getNode(r);if(!a)return this.debugNodeNotFound(o,r);var i=eh(a,this.iframe),s=e*i.absoluteScale+i.x,l=t*i.absoluteScale+i.y;this.mouse.style.left="".concat(s,"px"),this.mouse.style.top="".concat(l,"px"),n||this.drawMouseTail({x:s,y:l}),this.hoverElements(a)},e.prototype.drawMouseTail=function(e){var t=this;if(this.mouseTail){var r=!0===this.config.mouseTail?rm:Object.assign({},rm,this.config.mouseTail),n=r.lineCap,o=r.lineWidth,a=r.strokeStyle,i=r.duration,s=function(){if(t.mouseTail){var e=t.mouseTail.getContext("2d");e&&t.tailPositions.length&&(e.clearRect(0,0,t.mouseTail.width,t.mouseTail.height),e.beginPath(),e.lineWidth=o,e.lineCap=n,e.strokeStyle=a,e.moveTo(t.tailPositions[0].x,t.tailPositions[0].y),t.tailPositions.forEach(function(t){return e.lineTo(t.x,t.y)}),e.stroke())}};this.tailPositions.push(e),s(),setTimeout(function(){t.tailPositions=t.tailPositions.filter(function(t){return t!==e}),s()},i/this.speedService.state.context.timer.speed)}},e.prototype.hoverElements=function(e){null==(t=this.iframe.contentDocument)||t.querySelectorAll(".\\:hover").forEach(function(e){e.classList.remove(":hover")});for(var t,r=e;r;)r.classList&&r.classList.add(":hover"),r=r.parentElement},e.prototype.isUserInteraction=function(e){return e.type===i.IncrementalSnapshot&&e.data.source>s.Mutation&&e.data.source<=s.Input},e.prototype.backToNormal=function(){this.nextUserInteractionEvent=null,this.speedService.state.matches("normal")||(this.speedService.send({type:"BACK_TO_NORMAL"}),this.emitter.emit(f.SkipEnd,{speed:this.speedService.state.context.normalSpeed}))},e.prototype.restoreRealParent=function(e,t){this.mirror.map[t.__sn.id]=t,t.__sn.type===n.Element&&"textarea"===t.__sn.tagName&&e.textContent&&(t.value=e.textContent),t.appendChild(e),this.restoreState(t)},e.prototype.storeState=function(e){var t,r;if(e&&e.nodeType===e.ELEMENT_NODE){(e.scrollLeft||e.scrollTop)&&this.elementStateMap.set(e,{scroll:[e.scrollLeft,e.scrollTop]}),"STYLE"===e.tagName&&function(e,t){var r;try{var n=Array.from((null==(r=e.sheet)?void 0:r.cssRules)||[]).map(function(e){return e.cssText});t.set(e,[{type:m.Snapshot,cssTexts:n}])}catch(e){}}(e,this.virtualStyleRulesMap);var n=e.children;try{for(var o=b(Array.from(n)),a=o.next();!a.done;a=o.next()){var i=a.value;this.storeState(i)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}}},e.prototype.restoreState=function(e){var t,r;if(e.nodeType===e.ELEMENT_NODE){if(this.elementStateMap.has(e)){var n=this.elementStateMap.get(e);n.scroll&&(e.scrollLeft=n.scroll[0],e.scrollTop=n.scroll[1]),this.elementStateMap.delete(e)}var o=e.children;try{for(var a=b(Array.from(o)),i=a.next();!i.done;i=a.next()){var s=i.value;this.restoreState(s)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}}},e.prototype.restoreNodeSheet=function(e){var t,r=this.virtualStyleRulesMap.get(e);
1"STYLE"===e.nodeName&&r&&(t=e.sheet)&&r.forEach(function(r){if(r.type===m.Insert)try{if(Array.isArray(r.index)){var n=ri(r.index),o=n.positions,a=n.index,i=ra(t.cssRules,o);i.insertRule(r.cssText,a)}else t.insertRule(r.cssText,r.index)}catch(e){}else if(r.type===m.Remove)try{if(Array.isArray(r.index)){var s=ri(r.index),o=s.positions,a=s.index,i=ra(t.cssRules,o);i.deleteRule(a||0)}else t.deleteRule(r.index)}catch(e){}else if(r.type===m.Snapshot)!function(e,t){var r;try{var n=Array.from((null==(r=t.sheet)?void 0:r.cssRules)||[]).map(function(e){return e.cssText}),o=Object.entries(n).reverse(),a=n.length;o.forEach(function(r){var n,o=S(r,2),i=o[0],s=o[1],l=e.indexOf(s);if(-1===l||l>a)try{null==(n=t.sheet)||n.deleteRule(Number(i))}catch(e){}a=l}),e.forEach(function(e,r){var n,o,a;try{(null==(o=null==(n=t.sheet)?void 0:n.cssRules[r])?void 0:o.cssText)!==e&&(null==(a=t.sheet)||a.insertRule(e,r))}catch(e){}})}catch(e){}}(r.cssTexts,e);else if(r.type===m.SetProperty){var l=ra(t.cssRules,r.index);l.style.setProperty(r.property,r.value,r.priority)}else if(r.type===m.RemoveProperty){var l=ra(t.cssRules,r.index);l.style.removeProperty(r.property)}})},e.prototype.warnNodeNotFound=function(e,t){this.treeIndex.idRemoved(t)?this.warn("Node with i
1d '".concat(t,"' was previously removed. "),e):this.warn("Node with id '".concat(t,"' not found. "),e)},e.prototype.warnCanvasMutationFailed=function(e,t){this.warn("Has error on canvas update",t,"canvas mutation:",e)},e.prototype.debugNodeNotFound=function(e,t){this.treeIndex.idRemoved(t)?this.debug(rh,"Node with id '".concat(t,"' was previously removed. "),e):this.debug(rh,"Node with id '".concat(t,"' not found. "),e)},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.config.showWarning&&console.warn.apply(console,w([rh],S(e),!1))},e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.config.showDebug&&console.log.apply(console,w([rh],S(e),!1))},e}()}}]);
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.