@highlight-run/rrweb 2.0.4 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/plugins/console-record.js +12 -454
- package/dist/plugins/console-record.min.js.map +1 -1
- package/dist/plugins/console-replay.js +4 -164
- package/dist/plugins/console-replay.min.js.map +1 -1
- package/dist/plugins/sequential-id-record.js +1 -30
- package/dist/plugins/sequential-id-replay.js +1 -33
- package/dist/record/rrweb-record-pack.js +3 -664
- package/dist/record/rrweb-record-pack.min.js.map +1 -1
- package/dist/record/rrweb-record.js +4 -3202
- package/dist/record/rrweb-record.min.js +3 -3
- package/dist/record/rrweb-record.min.js.map +1 -1
- package/dist/replay/rrweb-replay-unpack.css +1 -0
- package/dist/replay/rrweb-replay-unpack.js +5 -4914
- package/dist/replay/rrweb-replay-unpack.min.css +2 -0
- package/dist/replay/rrweb-replay-unpack.min.css.map +1 -0
- package/dist/replay/rrweb-replay-unpack.min.js +1 -1
- package/dist/replay/rrweb-replay-unpack.min.js.map +1 -1
- package/dist/replay/rrweb-replay.css +1 -0
- package/dist/replay/rrweb-replay.js +5 -4506
- package/dist/replay/rrweb-replay.min.css +2 -0
- package/dist/replay/rrweb-replay.min.css.map +1 -0
- package/dist/replay/rrweb-replay.min.js +1 -1
- package/dist/replay/rrweb-replay.min.js.map +1 -1
- package/dist/rrweb-all.css +1 -0
- package/dist/rrweb-all.js +16 -8877
- package/dist/rrweb-all.min.css +2 -0
- package/dist/rrweb-all.min.css.map +1 -0
- package/dist/rrweb-all.min.js +1 -1
- package/dist/rrweb-all.min.js.map +1 -1
- package/dist/rrweb.css +1 -0
- package/dist/rrweb.js +6 -7546
- package/dist/rrweb.min.css +2 -0
- package/dist/rrweb.min.css.map +1 -0
- package/dist/rrweb.min.js +1 -1
- package/dist/rrweb.min.js.map +1 -1
- package/es/rrweb/all.css +1 -0
- package/es/rrweb/packages/rrweb-snapshot/es/rrweb-snapshot.js +1 -1
- package/lib/replay/rrweb-replay-unpack.css +1 -0
- package/lib/replay/rrweb-replay-unpack.js +1 -1
- package/lib/replay/rrweb-replay.css +1 -0
- package/lib/replay/rrweb-replay.js +1 -1
- package/lib/rrweb-all.css +1 -0
- package/lib/rrweb-all.js +1 -1
- package/lib/rrweb.css +1 -0
- package/lib/rrweb.js +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
.replayer-wrapper{position:relative}.replayer-mouse{position:absolute;width:20px;height:20px;transition:left .05s linear,top .05s linear;background-size:contain;background-position:50%;background-repeat:no-repeat;background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjcgNSAxOCAxOCIgaGVpZ2h0PSIzMDAiIHdpZHRoPSIzMDAiPjxwYXRoIGZpbGw9IiNGRkYiIGQ9Ik04LjIgMjAuOXYtMTZsMTEuNiAxMS42SDEzbC0uNC4xeiIvPjxwYXRoIGZpbGw9IiNGRkYiIGQ9Ik0xNy4zIDIxLjZsLTMuNiAxLjVMOSAxMmwzLjctMS41eiIvPjxwYXRoIGQ9Ik0xMS4wMyAxNC4yOTNsMS44NDUtLjc3NCAzLjA5NiA3LjM3Ni0xLjg0NC43NzV6Ii8+PHBhdGggZD0iTTkuMiA3LjN2MTEuMmwzLTIuOS40LS4xaDQuOHoiLz48L3N2Zz4=");border-color:transparent}.replayer-mouse:after{background:transparent}.replayer-mouse.active:after{animation:click .2s ease-in-out 1}.replayer-mouse.touch-device{background-image:none;width:70px;height:70px;border-radius:100%;margin-left:-37px;margin-top:-37px;border:4px solid rgba(73,80,246,0);transition:left 0s linear,top 0s linear,border-color .2s ease-in-out}.replayer-mouse.touch-device.touch-active{border-color:#4950f6;transition:left .25s linear,top .25s linear,border-color .2s ease-in-out}.replayer-mouse.touch-device:after{opacity:0}.replayer-mouse.touch-device.active:after{animation:touch-click .2s ease-in-out 1}.replayer-mouse-tail{position:absolute;pointer-events:none}@keyframes click{0%{opacity:.3;width:20px;height:20px;background:transparent}75%{width:24px;height:24px;opacity:.8;background:#dc2626}to{background:transparent}}@keyframes touch-click{0%{opacity:0;width:20px;height:20px}50%{opacity:.5;width:10px;height:10px}}
|
|
2
|
+
/*# sourceMappingURL=rrweb-all.min.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["style.css"],"names":[],"mappings":"AAAA,kBACE,iBACF,CACA,gBACE,iBAAkB,CAClB,UAAW,CACX,WAAY,CACZ,2CAA+C,CAC/C,uBAAwB,CACxB,uBAAkC,CAClC,2BAA4B,CAC5B,0cAAuzB,CACvzB,wBACF,CAEA,sBACE,sBACF,CAEA,6BACE,iCACF,CACA,6BACE,qBAAsB,CACtB,UAAW,CACX,WAAY,CAGZ,kBAAmB,CACnB,iBAAkB,CAClB,gBAAiB,CACjB,kCAAkC,CAClC,oEACF,CACA,0CACE,oBAAkC,CAClC,wEACF,CACA,mCACE,SACF,CACA,0CACE,uCACF,CACA,qBACE,iBAAkB,CAClB,mBACF,CAEA,iBACE,GACE,UAAY,CACZ,UAAW,CACX,WAAY,CACZ,sBACF,CACA,IACE,UAAW,CACX,WAAY,CACZ,UAAY,CACZ,kBACF,CACA,GACE,sBACF,CACF,CAEA,uBACE,GACE,SAAU,CACV,UAAW,CACX,WACF,CACA,IACE,UAAY,CACZ,UAAW,CACX,WACF,CACF","file":"rrweb-all.min.css","sourcesContent":[".replayer-wrapper {\n position: relative;\n}\n.replayer-mouse {\n position: absolute;\n width: 20px;\n height: 20px;\n transition: left 0.05s linear, top 0.05s linear;\n background-size: contain;\n background-position: center center;\n background-repeat: no-repeat;\n background-image: url('data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCINCgkgdmlld0JveD0iNyA1IDE4IDE4IiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCAyOCAyOCIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgaGVpZ2h0PSIzMDBweCIgd2lkdGg9IjMwMHB4Ij4NCjxwb2x5Z29uIGZpbGw9IiNGRkZGRkYiIHBvaW50cz0iOC4yLDIwLjkgOC4yLDQuOSAxOS44LDE2LjUgMTMsMTYuNSAxMi42LDE2LjYgIi8+DQo8cG9seWdvbiBmaWxsPSIjRkZGRkZGIiBwb2ludHM9IjE3LjMsMjEuNiAxMy43LDIzLjEgOSwxMiAxMi43LDEwLjUgIi8+DQo8cmVjdCB4PSIxMi41IiB5PSIxMy42IiB0cmFuc2Zvcm09Im1hdHJpeCgwLjkyMjEgLTAuMzg3MSAwLjM4NzEgMC45MjIxIC01Ljc2MDUgNi41OTA5KSIgd2lkdGg9IjIiIGhlaWdodD0iOCIvPg0KPHBvbHlnb24gcG9pbnRzPSI5LjIsNy4zIDkuMiwxOC41IDEyLjIsMTUuNiAxMi42LDE1LjUgMTcuNCwxNS41ICIvPg0KPC9zdmc+DQo=');\n border-color: transparent; /* otherwise we transition from black when .touch-device class is added */\n}\n\n.replayer-mouse::after {\n background: transparent;\n}\n\n.replayer-mouse.active::after {\n animation: click 0.2s ease-in-out 1;\n}\n.replayer-mouse.touch-device {\n background-image: none; /* there's no passive cursor on touch-only screens */\n width: 70px;\n height: 70px;\n border-width: 4px;\n border-style: solid;\n border-radius: 100%;\n margin-left: -37px;\n margin-top: -37px;\n border-color: rgba(73, 80, 246, 0);\n transition: left 0s linear, top 0s linear, border-color 0.2s ease-in-out;\n}\n.replayer-mouse.touch-device.touch-active {\n border-color: rgba(73, 80, 246, 1);\n transition: left 0.25s linear, top 0.25s linear, border-color 0.2s ease-in-out;\n}\n.replayer-mouse.touch-device::after {\n opacity: 0; /* there's no passive cursor on touch-only screens */\n}\n.replayer-mouse.touch-device.active::after {\n animation: touch-click 0.2s ease-in-out 1;\n}\n.replayer-mouse-tail {\n position: absolute;\n pointer-events: none;\n}\n\n@keyframes click {\n 0% {\n opacity: 0.3;\n width: 20px;\n height: 20px;\n background: transparent;\n }\n 75% {\n width: 24px;\n height: 24px;\n opacity: 0.8;\n background: #dc2626;\n }\n 100% {\n background: transparent;\n }\n}\n\n@keyframes touch-click {\n 0% {\n opacity: 0;\n width: 20px;\n height: 20px;\n }\n 50% {\n opacity: 0.5;\n width: 10px;\n height: 10px;\n }\n}\n"]}
|
package/dist/rrweb-all.min.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var rrweb=function(q){"use strict";var j;(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"})(j||(j={}));function er(e){return e.nodeType===e.ELEMENT_NODE}function We(e){var t,r=(t=e)===null||t===void 0?void 0:t.host;return Boolean(r&&r.shadowRoot&&r.shadowRoot===e)}var pt=function(){function e(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}return e.prototype.getId=function(t){var r;if(!t)return-1;var n=(r=this.getMeta(t))===null||r===void 0?void 0:r.id;return n??-1},e.prototype.getNode=function(t){return this.idNodeMap.get(t)||null},e.prototype.getIds=function(){return Array.from(this.idNodeMap.keys())},e.prototype.getMeta=function(t){return this.nodeMetaMap.get(t)||null},e.prototype.removeNodeFromMap=function(t){var r=this,n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(function(o){return r.removeNodeFromMap(o)})},e.prototype.has=function(t){return this.idNodeMap.has(t)},e.prototype.hasNode=function(t){return this.nodeMetaMap.has(t)},e.prototype.add=function(t,r){var n=r.id;this.idNodeMap.set(n,t),this.nodeMetaMap.set(t,r)},e.prototype.replace=function(t,r){this.idNodeMap.set(t,r)},e.prototype.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}();function tr(){return new pt}function ft(e){var t=e.maskInputOptions,r=e.tagName,n=e.type,o=e.value,i=e.maskInputFn,l=o||"";return(t[r.toLowerCase()]||t[n])&&(i?l=i(l):l="*".repeat(l.length)),l}var rr="__rrweb_original__";function $n(e){var t=e.getContext("2d");if(!t)return!0;for(var r=50,n=0;n<e.width;n+=r)for(var o=0;o<e.height;o+=r){var i=t.getImageData,l=rr in i?i[rr]:i,c=new Uint32Array(l.call(t,n,o,Math.min(r,e.width-n),Math.min(r,e.height-o)).data.buffer);if(c.some(function(a){return a!==0}))return!1}return!0}function nr(e){return e=e.replace(/[^ -~]+/g,""),e=e?.split(" ").map(function(t){return Math.random().toString(20).substr(2,t.length)}).join(" ")||"",e}var Wn=1,jn=new RegExp("[^a-z0-9-_:]"),je=-2;function Vn(){return Wn++}function Un(e){if(e instanceof HTMLFormElement)return"form";var t=e.tagName.toLowerCase().trim();return jn.test(t)?"div":t}function vt(e){try{var t=e.rules||e.cssRules;return t?Array.from(t).map(Gn).join(""):null}catch{return null}}function Gn(e){var t=e.cssText;if(Bn(e))try{t=vt(e.styleSheet)||t}catch{}return t}function Bn(e){return"styleSheet"in e}function zn(e){return e.cssRules?Array.from(e.cssRules).map(function(t){return t.cssText||""}).join(""):""}function Hn(e){var t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}var xe,or,Yn=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Xn=/^(?!www\.|(?:http|ftp)s?:\/\/|[A-Za-z]:\\|\/\/|#).*/,Zn=/^(data:)([^,]*),(.*)/i;function Qe(e,t){return(e||"").replace(Yn,function(r,n,o,i,l,c){var a=o||l||c,s=n||i||"";if(!a)return r;if(!Xn.test(a)||Zn.test(a))return"url("+s+a+s+")";if(a[0]==="/")return"url("+s+(Hn(t)+a)+s+")";var u=t.split("/"),d=a.split("/");u.pop();for(var m=0,h=d;m<h.length;m++){var v=h[m];v!=="."&&(v===".."?u.pop():u.push(v))}return"url("+s+u.join("/")+s+")"})}var Kn=/^[^ \t\n\r\u000c]+/,qn=/^[, \t\n\r\u000c]+/;function Jn(e,t){if(t.trim()==="")return t;var r=0;function n(s){var u,d=s.exec(t.substring(r));return d?(u=d[0],r+=u.length,u):""}for(var o=[];n(qn),!(r>=t.length);){var i=n(Kn);if(i.slice(-1)===",")i=et(e,i.substring(0,i.length-1)),o.push(i);else{var l="";i=et(e,i);for(var c=!1;;){var a=t.charAt(r);if(a===""){o.push((i+l).trim());break}else if(c)a===")"&&(c=!1);else if(a===","){r+=1,o.push((i+l).trim());break}else a==="("&&(c=!0);l+=a,r+=1}}}return o.join(", ")}function et(e,t){if(!t||t.trim()==="")return t;var r=e.createElement("a");return r.href=t,r.href}function Qn(e){return Boolean(e.tagName==="svg"||e.ownerSVGElement)}function gt(){var e=document.createElement("a");return e.href="",e.href}function ir(e,t,r,n){return r==="src"||r==="href"&&n||r==="xlink:href"&&n&&n[0]!=="#"||r==="background"&&n&&(t==="table"||t==="td"||t==="th")?et(e,n):r==="srcset"&&n?Jn(e,n):r==="style"&&n?Qe(n,gt()):t==="object"&&r==="data"&&n?et(e,n):n}function eo(e,t,r){if(typeof t=="string"){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):!1}function tt(e,t,r){if(!e)return!1;if(e.nodeType===e.ELEMENT_NODE){if(typeof t=="string"){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)?!0:tt(e.parentNode,t,r)}return e.nodeType,e.TEXT_NODE,tt(e.parentNode,t,r)}function to(e,t,r){var n=e.contentWindow;if(n){var o=!1,i;try{i=n.document.readyState}catch{return}if(i!=="complete"){var l=setTimeout(function(){o||(t(),o=!0)},r);e.addEventListener("load",function(){clearTimeout(l),o=!0,t()});return}var c="about:blank";if(n.location.href!==c||e.src===c||e.src===""){setTimeout(t,0);return}e.addEventListener("load",t)}}function ro(e){return e.getAttribute("href")?e.sheet!==null:!0}function no(e,t,r){var n=!1,o;try{o=e.sheet}catch{return}if(!o){var i=setTimeout(function(){n||(t(),n=!0)},r);e.addEventListener("load",function(){clearTimeout(i),n=!0,t()})}}function oo(e,t){var r,n=t.doc,o=t.mirror,i=t.blockClass,l=t.blockSelector,c=t.maskTextClass,a=t.maskTextSelector,s=t.inlineStylesheet,u=t.maskInputOptions,d=u===void 0?{}:u,m=t.maskTextFn,h=t.maskInputFn,v=t.dataURLOptions,p=v===void 0?{}:v,w=t.inlineImages,f=t.recordCanvas,S=t.keepIframeSrcFn,T=t.enableStrictPrivacy,M;if(o.getMeta(n)){var R=o.getId(n);M=R===1?void 0:R}switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:j.Document,childNodes:[],compatMode:e.compatMode,rootId:M}:{type:j.Document,childNodes:[],rootId:M};case e.DOCUMENT_TYPE_NODE:return{type:j.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:M};case e.ELEMENT_NODE:for(var I=eo(e,i,l),C=Un(e),y={},H=e.attributes.length,G=0;G<H;G++){var K=e.attributes[G];y[K.name]=ir(n,C,K.name,K.value)}if(C==="link"&&s){var V=Array.from(n.styleSheets).find(function(he){return he.href===e.href}),U=null;V&&(U=vt(V)),U&&(delete y.rel,delete y.href,y._cssText=Qe(U,V.href))}if(C==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){var U=vt(e.sheet);U&&(y._cssText=Qe(U,gt()))}if(C==="input"||C==="textarea"||C==="select"){var Y=e.value;y.type!=="radio"&&y.type!=="checkbox"&&y.type!=="submit"&&y.type!=="button"&&Y?y.value=ft({type:y.type,tagName:C,value:Y,maskInputOptions:d,maskInputFn:h}):e.checked&&(y.checked=e.checked)}if(C==="option"&&(e.selected&&!d.select?y.selected=!0:delete y.selected),C==="canvas"&&f){if(e.__context==="2d")$n(e)||(y.rr_dataURL=e.toDataURL(p.type,p.quality));else if(!("__context"in e)){var B=e.toDataURL(p.type,p.quality),L=document.createElement("canvas");L.width=e.width,L.height=e.height;var x=L.toDataURL(p.type,p.quality);B!==x&&(y.rr_dataURL=B)}}if(C==="img"&&w){xe||(xe=n.createElement("canvas"),or=xe.getContext("2d"));var D=e,b=D.crossOrigin;D.crossOrigin="anonymous";var g=function(){try{xe.width=D.naturalWidth,xe.height=D.naturalHeight,or.drawImage(D,0,0),y.rr_dataURL=xe.toDataURL(p.type,p.quality)}catch(he){console.warn("Cannot inline img src="+D.currentSrc+"! Error: "+he)}b?y.crossOrigin=b:D.removeAttribute("crossorigin")};D.complete&&D.naturalWidth!==0?g():D.onload=g}if((C==="audio"||C==="video")&&(y.rr_mediaState=e.paused?"paused":"played",y.rr_mediaCurrentTime=e.currentTime),e.scrollLeft&&(y.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(y.rr_scrollTop=e.scrollTop),I||C==="img"&&T){var N=e.getBoundingClientRect(),E=N.width,A=N.height;y={class:y.class,rr_width:E+"px",rr_height:A+"px"},I=!0}return C==="iframe"&&!S(y.src)&&(e.contentDocument||(y.rr_src=y.src),delete y.src),{type:j.Element,tagName:C,attributes:y,childNodes:[],isSVG:Qn(e)||void 0,needBlock:I,rootId:M};case e.TEXT_NODE:var _=e.parentNode&&e.parentNode.tagName,k=e.textContent,ee=_==="STYLE"?!0:void 0,P=_==="SCRIPT"?!0:void 0,W=!1;if(ee&&k){try{e.nextSibling||e.previousSibling||!((r=e.parentNode.sheet)===null||r===void 0)&&r.cssRules&&(k=zn(e.parentNode.sheet))}catch(he){console.warn("Cannot get CSS styles from text's parentNode. Error: "+he,e)}k=Qe(k,gt()),W=!0}if(P?(k="SCRIPT_PLACEHOLDER",W=!0):_==="NOSCRIPT"&&(k="",W=!0),!ee&&!P&&tt(e,c,a)&&k&&(k=m?m(k):k.replace(/[\S]/g,"*")),T&&!W&&_){var de=new Set(["HEAD","TITLE","STYLE","SCRIPT","HTML","BODY","NOSCRIPT"]);!de.has(_)&&k&&(k=nr(k))}return{type:j.Text,textContent:k||"",isStyle:ee,rootId:M};case e.CDATA_SECTION_NODE:return{type:j.CDATA,textContent:"",rootId:M};case e.COMMENT_NODE:return{type:j.Comment,textContent:e.textContent||"",rootId:M};default:return!1}}function X(e){return e===void 0?"":e.toLowerCase()}function io(e,t){return!!(t.comment&&e.type===j.Comment||e.type===j.Element&&(t.script&&(e.tagName==="script"||e.tagName==="link"&&e.attributes.rel==="preload"&&e.attributes.as==="script"||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&e.attributes.href.endsWith(".js"))||t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(X(e.attributes.name).match(/^msapplication-tile(image|color)$/)||X(e.attributes.name)==="application-name"||X(e.attributes.rel)==="icon"||X(e.attributes.rel)==="apple-touch-icon"||X(e.attributes.rel)==="shortcut icon"))||e.tagName==="meta"&&(t.headMetaDescKeywords&&X(e.attributes.name).match(/^description|keywords$/)||t.headMetaSocial&&(X(e.attributes.property).match(/^(og|twitter|fb):/)||X(e.attributes.name).match(/^(og|twitter):/)||X(e.attributes.name)==="pinterest")||t.headMetaRobots&&(X(e.attributes.name)==="robots"||X(e.attributes.name)==="googlebot"||X(e.attributes.name)==="bingbot")||t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0||t.headMetaAuthorship&&(X(e.attributes.name)==="author"||X(e.attributes.name)==="generator"||X(e.attributes.name)==="framework"||X(e.attributes.name)==="publisher"||X(e.attributes.name)==="progid"||X(e.attributes.property).match(/^article:/)||X(e.attributes.property).match(/^product:/))||t.headMetaVerification&&(X(e.attributes.name)==="google-site-verification"||X(e.attributes.name)==="yandex-verification"||X(e.attributes.name)==="csrf-token"||X(e.attributes.name)==="p:domain_verify"||X(e.attributes.name)==="verify-v1"||X(e.attributes.name)==="verification"||X(e.attributes.name)==="shopify-checkout-api-token"))))}function ke(e,t){var r=t.doc,n=t.mirror,o=t.blockClass,i=t.blockSelector,l=t.maskTextClass,c=t.maskTextSelector,a=t.skipChild,s=a===void 0?!1:a,u=t.inlineStylesheet,d=u===void 0?!0:u,m=t.maskInputOptions,h=m===void 0?{}:m,v=t.maskTextFn,p=t.maskInputFn,w=t.slimDOMOptions,f=t.dataURLOptions,S=f===void 0?{}:f,T=t.inlineImages,M=T===void 0?!1:T,R=t.recordCanvas,I=R===void 0?!1:R,C=t.onSerialize,y=t.onIframeLoad,H=t.iframeLoadTimeout,G=H===void 0?5e3:H,K=t.onStylesheetLoad,V=t.stylesheetLoadTimeout,U=V===void 0?5e3:V,Y=t.keepIframeSrcFn,B=Y===void 0?function(){return!1}:Y,L=t.enableStrictPrivacy,x=t.preserveWhiteSpace,D=x===void 0?!0:x,b=oo(e,{doc:r,mirror:n,blockClass:o,blockSelector:i,maskTextClass:l,maskTextSelector:c,inlineStylesheet:d,maskInputOptions:h,maskTextFn:v,maskInputFn:p,dataURLOptions:S,inlineImages:M,recordCanvas:I,keepIframeSrcFn:B,enableStrictPrivacy:L});if(!b)return console.warn(e,"not serialized"),null;var g;if(n.hasNode(e)?g=n.getId(e):io(b,w)||!D&&b.type===j.Text&&!b.isStyle&&!b.textContent.replace(/^\s+|\s+$/gm,"").length?g=je:g=Vn(),g===je)return null;var N=Object.assign(b,{id:g});n.add(e,N),C&&C(e);var E=!s;if(N.type===j.Element){if(E=E&&!N.needBlock,N.needBlock&&N.tagName==="img"){var A=e.cloneNode();A.src="",n.add(A,N)}if(N.tagName==="link"){var A=e.cloneNode();A.href="",A.innerText=N.attributes._cssText,n.add(A,N)}delete N.needBlock,e.shadowRoot&&(N.isShadowHost=!0)}if((N.type===j.Document||N.type===j.Element)&&E){w.headWhitespace&&N.type===j.Element&&N.tagName==="head"&&(D=!1);for(var _={doc:r,mirror:n,blockClass:o,blockSelector:i,maskTextClass:l,maskTextSelector:c,skipChild:s,inlineStylesheet:d,maskInputOptions:h,maskTextFn:v,maskInputFn:p,slimDOMOptions:w,dataURLOptions:S,inlineImages:M,recordCanvas:I,preserveWhiteSpace:D,onSerialize:C,onIframeLoad:y,iframeLoadTimeout:G,onStylesheetLoad:K,stylesheetLoadTimeout:U,keepIframeSrcFn:B,enableStrictPrivacy:L},k=0,ee=Array.from(e.childNodes);k<ee.length;k++){var P=ee[k],W=ke(P,_);W&&N.childNodes.push(W)}if(er(e)&&e.shadowRoot)for(var de=0,he=Array.from(e.shadowRoot.childNodes);de<he.length;de++){var P=he[de],W=ke(P,_);W&&(W.isShadow=!0,N.childNodes.push(W))}}return e.parentNode&&We(e.parentNode)&&(N.isShadow=!0),N.type===j.Element&&N.tagName==="iframe"&&to(e,function(){var ye=e.contentDocument;if(ye&&y){var Je=ke(ye,{doc:ye,mirror:n,blockClass:o,blockSelector:i,maskTextClass:l,maskTextSelector:c,skipChild:!1,inlineStylesheet:d,maskInputOptions:h,maskTextFn:v,maskInputFn:p,slimDOMOptions:w,dataURLOptions:S,inlineImages:M,recordCanvas:I,preserveWhiteSpace:D,onSerialize:C,onIframeLoad:y,iframeLoadTimeout:G,keepIframeSrcFn:B,enableStrictPrivacy:L});Je&&y(e,Je)}},G),N.type===j.Element&&N.tagName==="link"&&N.attributes.rel==="stylesheet"&&(no(e,function(){if(K){var ye=ke(e,{doc:r,mirror:n,blockClass:o,blockSelector:i,maskTextClass:l,maskTextSelector:c,skipChild:!1,inlineStylesheet:d,maskInputOptions:h,maskTextFn:v,maskInputFn:p,slimDOMOptions:w,dataURLOptions:S,inlineImages:M,recordCanvas:I,preserveWhiteSpace:D,onSerialize:C,onIframeLoad:y,onStylesheetLoad:K,iframeLoadTimeout:G,keepIframeSrcFn:B,enableStrictPrivacy:L});ye&&K(e,ye)}},U),ro(e)===!1)?null:N}function so(e,t){var r=t||{},n=r.mirror,o=n===void 0?new pt:n,i=r.blockClass,l=i===void 0?"highlight-block":i,c=r.blockSelector,a=c===void 0?null:c,s=r.maskTextClass,u=s===void 0?"highlight-mask":s,d=r.maskTextSelector,m=d===void 0?null:d,h=r.inlineStylesheet,v=h===void 0?!0:h,p=r.inlineImages,w=p===void 0?!1:p,f=r.recordCanvas,S=f===void 0?!1:f,T=r.maskAllInputs,M=T===void 0?!1:T,R=r.maskTextFn,I=r.maskInputFn,C=r.slimDOM,y=C===void 0?!1:C,H=r.dataURLOptions,G=r.preserveWhiteSpace,K=r.onSerialize,V=r.onIframeLoad,U=r.iframeLoadTimeout,Y=r.onStylesheetLoad,B=r.stylesheetLoadTimeout,L=r.keepIframeSrcFn,x=L===void 0?function(){return!1}:L,D=r.enableStrictPrivacy,b=D===void 0?!1:D,g=M===!0?{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}:M===!1?{password:!0}:M,N=y===!0||y==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:y==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:y===!1?{}:y;return ke(e,{doc:e,mirror:o,blockClass:l,blockSelector:a,maskTextClass:u,maskTextSelector:m,skipChild:!1,inlineStylesheet:v,maskInputOptions:g,maskTextFn:R,maskInputFn:I,slimDOMOptions:N,dataURLOptions:H,inlineImages:w,recordCanvas:S,preserveWhiteSpace:G,onSerialize:K,onIframeLoad:V,iframeLoadTimeout:U,onStylesheetLoad:Y,stylesheetLoadTimeout:B,keepIframeSrcFn:x,enableStrictPrivacy:b})}var sr=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function ao(e,t){t===void 0&&(t={});var r=1,n=1;function o(b){var g=b.match(/\n/g);g&&(r+=g.length);var N=b.lastIndexOf(`
|
|
2
|
-
`);n=N===-1?n+b.length:b.length-N}function i(){var b={line:r,column:n};return function(g){return g.position=new l(b),v(),g}}var l=function(){function b(g){this.start=g,this.end={line:r,column:n},this.source=t.source}return b}();l.prototype.content=e;var c=[];function a(b){var g=new Error(t.source+":"+r+":"+n+": "+b);if(g.reason=b,g.filename=t.source,g.line=r,g.column=n,g.source=e,t.silent)c.push(g);else throw g}function s(){var b=m();return{type:"stylesheet",stylesheet:{source:t.source,rules:b,parsingErrors:c}}}function u(){return h(/^{\s*/)}function d(){return h(/^}/)}function m(){var b,g=[];for(v(),p(g);e.length&&e.charAt(0)!=="}"&&(b=x()||D());)b!==!1&&(g.push(b),p(g));return g}function h(b){var g=b.exec(e);if(g){var N=g[0];return o(N),e=e.slice(N.length),g}}function v(){h(/^\s*/)}function p(b){b===void 0&&(b=[]);for(var g;g=w();)g!==!1&&b.push(g),g=w();return b}function w(){var b=i();if(!(e.charAt(0)!=="/"||e.charAt(1)!=="*")){for(var g=2;e.charAt(g)!==""&&(e.charAt(g)!=="*"||e.charAt(g+1)!=="/");)++g;if(g+=2,e.charAt(g-1)==="")return a("End of comment missing");var N=e.slice(2,g-2);return n+=2,o(N),e=e.slice(g),n+=2,b({type:"comment",comment:N})}}function f(){var b=h(/^([^{]+)/);if(b)return fe(b[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,function(g){return g.replace(/,/g,"\u200C")}).split(/\s*(?![^(]*\)),\s*/).map(function(g){return g.replace(/\u200C/g,",")})}function S(){var b=i(),g=h(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(g){var N=fe(g[0]);if(!h(/^:\s*/))return a("property missing ':'");var E=h(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),A=b({type:"declaration",property:N.replace(sr,""),value:E?fe(E[0]).replace(sr,""):""});return h(/^[;\s]*/),A}}function T(){var b=[];if(!u())return a("missing '{'");p(b);for(var g;g=S();)g!==!1&&(b.push(g),p(b)),g=S();return d()?b:a("missing '}'")}function M(){for(var b,g=[],N=i();b=h(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)g.push(b[1]),h(/^,\s*/);if(g.length)return N({type:"keyframe",values:g,declarations:T()})}function R(){var b=i(),g=h(/^@([-\w]+)?keyframes\s*/);if(g){var N=g[1];if(g=h(/^([-\w]+)\s*/),!g)return a("@keyframes missing name");var E=g[1];if(!u())return a("@keyframes missing '{'");for(var A,_=p();A=M();)_.push(A),_=_.concat(p());return d()?b({type:"keyframes",name:E,vendor:N,keyframes:_}):a("@keyframes missing '}'")}}function I(){var b=i(),g=h(/^@supports *([^{]+)/);if(g){var N=fe(g[1]);if(!u())return a("@supports missing '{'");var E=p().concat(m());return d()?b({type:"supports",supports:N,rules:E}):a("@supports missing '}'")}}function C(){var b=i(),g=h(/^@host\s*/);if(g){if(!u())return a("@host missing '{'");var N=p().concat(m());return d()?b({type:"host",rules:N}):a("@host missing '}'")}}function y(){var b=i(),g=h(/^@media *([^{]+)/);if(g){var N=fe(g[1]);if(!u())return a("@media missing '{'");var E=p().concat(m());return d()?b({type:"media",media:N,rules:E}):a("@media missing '}'")}}function H(){var b=i(),g=h(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(g)return b({type:"custom-media",name:fe(g[1]),media:fe(g[2])})}function G(){var b=i(),g=h(/^@page */);if(g){var N=f()||[];if(!u())return a("@page missing '{'");for(var E=p(),A;A=S();)E.push(A),E=E.concat(p());return d()?b({type:"page",selectors:N,declarations:E}):a("@page missing '}'")}}function K(){var b=i(),g=h(/^@([-\w]+)?document *([^{]+)/);if(g){var N=fe(g[1]),E=fe(g[2]);if(!u())return a("@document missing '{'");var A=p().concat(m());return d()?b({type:"document",document:E,vendor:N,rules:A}):a("@document missing '}'")}}function V(){var b=i(),g=h(/^@font-face\s*/);if(g){if(!u())return a("@font-face missing '{'");for(var N=p(),E;E=S();)N.push(E),N=N.concat(p());return d()?b({type:"font-face",declarations:N}):a("@font-face missing '}'")}}var U=L("import"),Y=L("charset"),B=L("namespace");function L(b){var g=new RegExp("^@"+b+"\\s*([^;]+);");return function(){var N=i(),E=h(g);if(E){var A={type:b};return A[b]=E[1].trim(),N(A)}}}function x(){if(e[0]==="@")return R()||y()||H()||I()||U()||Y()||B()||K()||G()||C()||V()}function D(){var b=i(),g=f();return g?(p(),b({type:"rule",selectors:g,declarations:T()})):a("selector missing")}return yt(s())}function fe(e){return e?e.replace(/^\s+|\s+$/g,""):""}function yt(e,t){for(var r=e&&typeof e.type=="string",n=r?e:t,o=0,i=Object.keys(e);o<i.length;o++){var l=i[o],c=e[l];Array.isArray(c)?c.forEach(function(a){yt(a,n)}):c&&typeof c=="object"&&yt(c,n)}return r&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}var ar={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:"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"};function lo(e){var t=ar[e.tagName]?ar[e.tagName]:e.tagName;return t==="link"&&e.attributes._cssText&&(t="style"),t}function co(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var lr=/([^\\]):hover/,uo=new RegExp(lr.source,"g");function cr(e,t){var r;if(!(!((r=window.HIG_CONFIGURATION)===null||r===void 0)&&r.enableOnHoverClass))return e;var n=t?.stylesWithHoverClass.get(e);if(n)return n;var o=ao(e,{silent:!0});if(!o.stylesheet)return e;var i=[];if(o.stylesheet.rules.forEach(function(a){"selectors"in a&&(a.selectors||[]).forEach(function(s){lr.test(s)&&i.push(s)})}),i.length===0)return e;var l=new RegExp(i.filter(function(a,s){return i.indexOf(a)===s}).sort(function(a,s){return s.length-a.length}).map(function(a){return co(a)}).join("|"),"g"),c=e.replace(l,function(a){var s=a.replace(uo,"$1.\\:hover");return a+", "+s});return t?.stylesWithHoverClass.set(e,c),c}function ur(){var e=new Map;return{stylesWithHoverClass:e}}function ho(e,t){var r=t.doc,n=t.hackCss,o=t.cache;switch(e.type){case j.Document:return r.implementation.createDocument(null,"",null);case j.DocumentType:return r.implementation.createDocumentType(e.name||"html",e.publicId,e.systemId);case j.Element:var i=lo(e),l;e.isSVG?l=r.createElementNS("http://www.w3.org/2000/svg",i):l=r.createElement(i);var c=function(s){if(!e.attributes.hasOwnProperty(s))return"continue";var u=e.attributes[s];if(i==="option"&&s==="selected"&&u===!1)return"continue";if(u=typeof u=="boolean"||typeof u=="number"?"":u,s.startsWith("rr_")){if(i==="canvas"&&s==="rr_dataURL"){var d=document.createElement("img");d.src=u,d.onload=function(){var C=l.getContext("2d");C&&C.drawImage(d,0,0,d.width,d.height)}}else if(i==="img"&&s==="rr_dataURL"){var m=l;m.currentSrc.startsWith("data:")||(m.setAttribute("rrweb-original-src",e.attributes.src),m.src=u)}if(s==="rr_width")l.style.width=u;else if(s==="rr_height")l.style.height=u;else if(s==="rr_mediaCurrentTime")l.currentTime=e.attributes.rr_mediaCurrentTime;else if(s==="rr_mediaState")switch(u){case"played":l.play().catch(function(C){return console.warn("media playback error",C)});break;case"paused":l.pause();break}}else{var h=i==="textarea"&&s==="value",v=i==="style"&&s==="_cssText";if(v&&n&&(u=cr(u,o),typeof u=="string")){for(var p=/url\(\"https:\/\/\S*(.eot|.woff2|.ttf|.woff)\S*\"\)/gm,w=void 0,f=[],S="https://replay-cors-proxy.highlightrun.workers.dev";(w=p.exec(u))!==null;)w.index===p.lastIndex&&p.lastIndex++,w.forEach(function(C,y){if(y===0){var H=C.slice(5,C.length-2);f.push({originalUrl:H,proxyUrl:H.replace(H,S+"?url="+H)})}});f.forEach(function(C){u=u.replace(C.originalUrl,C.proxyUrl)})}if(h||v){for(var T=r.createTextNode(u),M=0,R=Array.from(l.childNodes);M<R.length;M++){var I=R[M];I.nodeType===l.TEXT_NODE&&l.removeChild(I)}return l.appendChild(T),"continue"}try{if(e.isSVG&&s==="xlink:href")l.setAttributeNS("http://www.w3.org/1999/xlink",s,u);else if(s==="onload"||s==="onclick"||s.substring(0,7)==="onmouse")l.setAttribute("_"+s,u);else{if(i==="meta"&&e.attributes["http-equiv"]==="Content-Security-Policy"&&s==="content")return l.setAttribute("csp-content",u),"continue";i==="link"&&e.attributes.rel==="preload"&&e.attributes.as==="script"||i==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&e.attributes.href.endsWith(".js")||(i==="img"&&e.attributes.srcset&&e.attributes.rr_dataURL?l.setAttribute("rrweb-original-srcset",e.attributes.srcset):l.setAttribute(s,u))}}catch{}}};for(var a in e.attributes)c(a);if(e.isShadowHost)if(!l.shadowRoot)l.attachShadow({mode:"open"});else for(;l.shadowRoot.firstChild;)l.shadowRoot.removeChild(l.shadowRoot.firstChild);return l;case j.Text:return r.createTextNode(e.isStyle&&n?cr(e.textContent,o):e.textContent);case j.CDATA:return r.createCDATASection(e.textContent);case j.Comment:return r.createComment(e.textContent);default:return null}}function rt(e,t){var r=t.doc,n=t.mirror,o=t.skipChild,i=o===void 0?!1:o,l=t.hackCss,c=l===void 0?!0:l,a=t.afterAppend,s=t.cache,u=ho(e,{doc:r,hackCss:c,cache:s});if(!u)return null;if(e.rootId&&console.assert(n.getNode(e.rootId)===r,"Target document should have the same root id."),e.type===j.Document&&(r.close(),r.open(),e.compatMode==="BackCompat"&&e.childNodes&&e.childNodes[0].type!==j.DocumentType&&(e.childNodes[0].type===j.Element&&"xmlns"in e.childNodes[0].attributes&&e.childNodes[0].attributes.xmlns==="http://www.w3.org/1999/xhtml"?r.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):r.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),u=r),n.add(u,e),(e.type===j.Document||e.type===j.Element)&&!i)for(var d=0,m=e.childNodes;d<m.length;d++){var h=m[d],v=rt(h,{doc:r,mirror:n,skipChild:!1,hackCss:c,afterAppend:a,cache:s});if(!v){console.warn("Failed to rebuild",h);continue}h.isShadow&&er(u)&&u.shadowRoot?u.shadowRoot.appendChild(v):u.appendChild(v),a&&a(v)}return u}function mo(e,t){function r(l){t(l)}for(var n=0,o=e.getIds();n<o.length;n++){var i=o[n];e.has(i)&&r(e.getNode(i))}}function po(e,t){var r=t.getMeta(e);if(r?.type===j.Element){var n=e;for(var o in r.attributes)if(r.attributes.hasOwnProperty(o)&&o.startsWith("rr_")){var i=r.attributes[o];o==="rr_scrollLeft"&&(n.scrollLeft=i),o==="rr_scrollTop"&&(n.scrollTop=i)}}}function fo(e,t){var r=t.doc,n=t.onVisit,o=t.hackCss,i=o===void 0?!0:o,l=t.afterAppend,c=t.cache,a=t.mirror,s=a===void 0?new pt:a,u=rt(e,{doc:r,mirror:s,skipChild:!1,hackCss:i,afterAppend:l,cache:c});return mo(s,function(d){n&&n(d),po(d,s)}),u}function se(e,t,r=document){const n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)}const Oe=`Please stop import mirror directly. Instead of that,\r
|
|
2
|
+
`);n=N===-1?n+b.length:b.length-N}function i(){var b={line:r,column:n};return function(g){return g.position=new l(b),v(),g}}var l=function(){function b(g){this.start=g,this.end={line:r,column:n},this.source=t.source}return b}();l.prototype.content=e;var c=[];function a(b){var g=new Error(t.source+":"+r+":"+n+": "+b);if(g.reason=b,g.filename=t.source,g.line=r,g.column=n,g.source=e,t.silent)c.push(g);else throw g}function s(){var b=m();return{type:"stylesheet",stylesheet:{source:t.source,rules:b,parsingErrors:c}}}function u(){return h(/^{\s*/)}function d(){return h(/^}/)}function m(){var b,g=[];for(v(),p(g);e.length&&e.charAt(0)!=="}"&&(b=x()||D());)b!==!1&&(g.push(b),p(g));return g}function h(b){var g=b.exec(e);if(g){var N=g[0];return o(N),e=e.slice(N.length),g}}function v(){h(/^\s*/)}function p(b){b===void 0&&(b=[]);for(var g;g=w();)g!==!1&&b.push(g),g=w();return b}function w(){var b=i();if(!(e.charAt(0)!=="/"||e.charAt(1)!=="*")){for(var g=2;e.charAt(g)!==""&&(e.charAt(g)!=="*"||e.charAt(g+1)!=="/");)++g;if(g+=2,e.charAt(g-1)==="")return a("End of comment missing");var N=e.slice(2,g-2);return n+=2,o(N),e=e.slice(g),n+=2,b({type:"comment",comment:N})}}function f(){var b=h(/^([^{]+)/);if(b)return fe(b[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,function(g){return g.replace(/,/g,"\u200C")}).split(/\s*(?![^(]*\)),\s*/).map(function(g){return g.replace(/\u200C/g,",")})}function S(){var b=i(),g=h(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(g){var N=fe(g[0]);if(!h(/^:\s*/))return a("property missing ':'");var E=h(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),A=b({type:"declaration",property:N.replace(sr,""),value:E?fe(E[0]).replace(sr,""):""});return h(/^[;\s]*/),A}}function T(){var b=[];if(!u())return a("missing '{'");p(b);for(var g;g=S();)g!==!1&&(b.push(g),p(b)),g=S();return d()?b:a("missing '}'")}function M(){for(var b,g=[],N=i();b=h(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)g.push(b[1]),h(/^,\s*/);if(g.length)return N({type:"keyframe",values:g,declarations:T()})}function R(){var b=i(),g=h(/^@([-\w]+)?keyframes\s*/);if(g){var N=g[1];if(g=h(/^([-\w]+)\s*/),!g)return a("@keyframes missing name");var E=g[1];if(!u())return a("@keyframes missing '{'");for(var A,_=p();A=M();)_.push(A),_=_.concat(p());return d()?b({type:"keyframes",name:E,vendor:N,keyframes:_}):a("@keyframes missing '}'")}}function I(){var b=i(),g=h(/^@supports *([^{]+)/);if(g){var N=fe(g[1]);if(!u())return a("@supports missing '{'");var E=p().concat(m());return d()?b({type:"supports",supports:N,rules:E}):a("@supports missing '}'")}}function C(){var b=i(),g=h(/^@host\s*/);if(g){if(!u())return a("@host missing '{'");var N=p().concat(m());return d()?b({type:"host",rules:N}):a("@host missing '}'")}}function y(){var b=i(),g=h(/^@media *([^{]+)/);if(g){var N=fe(g[1]);if(!u())return a("@media missing '{'");var E=p().concat(m());return d()?b({type:"media",media:N,rules:E}):a("@media missing '}'")}}function H(){var b=i(),g=h(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(g)return b({type:"custom-media",name:fe(g[1]),media:fe(g[2])})}function G(){var b=i(),g=h(/^@page */);if(g){var N=f()||[];if(!u())return a("@page missing '{'");for(var E=p(),A;A=S();)E.push(A),E=E.concat(p());return d()?b({type:"page",selectors:N,declarations:E}):a("@page missing '}'")}}function K(){var b=i(),g=h(/^@([-\w]+)?document *([^{]+)/);if(g){var N=fe(g[1]),E=fe(g[2]);if(!u())return a("@document missing '{'");var A=p().concat(m());return d()?b({type:"document",document:E,vendor:N,rules:A}):a("@document missing '}'")}}function V(){var b=i(),g=h(/^@font-face\s*/);if(g){if(!u())return a("@font-face missing '{'");for(var N=p(),E;E=S();)N.push(E),N=N.concat(p());return d()?b({type:"font-face",declarations:N}):a("@font-face missing '}'")}}var U=L("import"),Y=L("charset"),B=L("namespace");function L(b){var g=new RegExp("^@"+b+"\\s*([^;]+);");return function(){var N=i(),E=h(g);if(E){var A={type:b};return A[b]=E[1].trim(),N(A)}}}function x(){if(e[0]==="@")return R()||y()||H()||I()||U()||Y()||B()||K()||G()||C()||V()}function D(){var b=i(),g=f();return g?(p(),b({type:"rule",selectors:g,declarations:T()})):a("selector missing")}return yt(s())}function fe(e){return e?e.replace(/^\s+|\s+$/g,""):""}function yt(e,t){for(var r=e&&typeof e.type=="string",n=r?e:t,o=0,i=Object.keys(e);o<i.length;o++){var l=i[o],c=e[l];Array.isArray(c)?c.forEach(function(a){yt(a,n)}):c&&typeof c=="object"&&yt(c,n)}return r&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}var ar={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:"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"};function lo(e){var t=ar[e.tagName]?ar[e.tagName]:e.tagName;return t==="link"&&e.attributes._cssText&&(t="style"),t}function co(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var lr=/([^\\]):hover/,uo=new RegExp(lr.source,"g");function cr(e,t){var r;if(!(!((r=window?.HIG_CONFIGURATION)===null||r===void 0)&&r.enableOnHoverClass))return e;var n=t?.stylesWithHoverClass.get(e);if(n)return n;var o=ao(e,{silent:!0});if(!o.stylesheet)return e;var i=[];if(o.stylesheet.rules.forEach(function(a){"selectors"in a&&(a.selectors||[]).forEach(function(s){lr.test(s)&&i.push(s)})}),i.length===0)return e;var l=new RegExp(i.filter(function(a,s){return i.indexOf(a)===s}).sort(function(a,s){return s.length-a.length}).map(function(a){return co(a)}).join("|"),"g"),c=e.replace(l,function(a){var s=a.replace(uo,"$1.\\:hover");return a+", "+s});return t?.stylesWithHoverClass.set(e,c),c}function ur(){var e=new Map;return{stylesWithHoverClass:e}}function ho(e,t){var r=t.doc,n=t.hackCss,o=t.cache;switch(e.type){case j.Document:return r.implementation.createDocument(null,"",null);case j.DocumentType:return r.implementation.createDocumentType(e.name||"html",e.publicId,e.systemId);case j.Element:var i=lo(e),l;e.isSVG?l=r.createElementNS("http://www.w3.org/2000/svg",i):l=r.createElement(i);var c=function(s){if(!e.attributes.hasOwnProperty(s))return"continue";var u=e.attributes[s];if(i==="option"&&s==="selected"&&u===!1)return"continue";if(u=typeof u=="boolean"||typeof u=="number"?"":u,s.startsWith("rr_")){if(i==="canvas"&&s==="rr_dataURL"){var d=document.createElement("img");d.src=u,d.onload=function(){var C=l.getContext("2d");C&&C.drawImage(d,0,0,d.width,d.height)}}else if(i==="img"&&s==="rr_dataURL"){var m=l;m.currentSrc.startsWith("data:")||(m.setAttribute("rrweb-original-src",e.attributes.src),m.src=u)}if(s==="rr_width")l.style.width=u;else if(s==="rr_height")l.style.height=u;else if(s==="rr_mediaCurrentTime")l.currentTime=e.attributes.rr_mediaCurrentTime;else if(s==="rr_mediaState")switch(u){case"played":l.play().catch(function(C){return console.warn("media playback error",C)});break;case"paused":l.pause();break}}else{var h=i==="textarea"&&s==="value",v=i==="style"&&s==="_cssText";if(v&&n&&(u=cr(u,o),typeof u=="string")){for(var p=/url\(\"https:\/\/\S*(.eot|.woff2|.ttf|.woff)\S*\"\)/gm,w=void 0,f=[],S="https://replay-cors-proxy.highlightrun.workers.dev";(w=p.exec(u))!==null;)w.index===p.lastIndex&&p.lastIndex++,w.forEach(function(C,y){if(y===0){var H=C.slice(5,C.length-2);f.push({originalUrl:H,proxyUrl:H.replace(H,S+"?url="+H)})}});f.forEach(function(C){u=u.replace(C.originalUrl,C.proxyUrl)})}if(h||v){for(var T=r.createTextNode(u),M=0,R=Array.from(l.childNodes);M<R.length;M++){var I=R[M];I.nodeType===l.TEXT_NODE&&l.removeChild(I)}return l.appendChild(T),"continue"}try{if(e.isSVG&&s==="xlink:href")l.setAttributeNS("http://www.w3.org/1999/xlink",s,u);else if(s==="onload"||s==="onclick"||s.substring(0,7)==="onmouse")l.setAttribute("_"+s,u);else{if(i==="meta"&&e.attributes["http-equiv"]==="Content-Security-Policy"&&s==="content")return l.setAttribute("csp-content",u),"continue";i==="link"&&e.attributes.rel==="preload"&&e.attributes.as==="script"||i==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&e.attributes.href.endsWith(".js")||(i==="img"&&e.attributes.srcset&&e.attributes.rr_dataURL?l.setAttribute("rrweb-original-srcset",e.attributes.srcset):l.setAttribute(s,u))}}catch{}}};for(var a in e.attributes)c(a);if(e.isShadowHost)if(!l.shadowRoot)l.attachShadow({mode:"open"});else for(;l.shadowRoot.firstChild;)l.shadowRoot.removeChild(l.shadowRoot.firstChild);return l;case j.Text:return r.createTextNode(e.isStyle&&n?cr(e.textContent,o):e.textContent);case j.CDATA:return r.createCDATASection(e.textContent);case j.Comment:return r.createComment(e.textContent);default:return null}}function rt(e,t){var r=t.doc,n=t.mirror,o=t.skipChild,i=o===void 0?!1:o,l=t.hackCss,c=l===void 0?!0:l,a=t.afterAppend,s=t.cache,u=ho(e,{doc:r,hackCss:c,cache:s});if(!u)return null;if(e.rootId&&console.assert(n.getNode(e.rootId)===r,"Target document should have the same root id."),e.type===j.Document&&(r.close(),r.open(),e.compatMode==="BackCompat"&&e.childNodes&&e.childNodes[0].type!==j.DocumentType&&(e.childNodes[0].type===j.Element&&"xmlns"in e.childNodes[0].attributes&&e.childNodes[0].attributes.xmlns==="http://www.w3.org/1999/xhtml"?r.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):r.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),u=r),n.add(u,e),(e.type===j.Document||e.type===j.Element)&&!i)for(var d=0,m=e.childNodes;d<m.length;d++){var h=m[d],v=rt(h,{doc:r,mirror:n,skipChild:!1,hackCss:c,afterAppend:a,cache:s});if(!v){console.warn("Failed to rebuild",h);continue}h.isShadow&&er(u)&&u.shadowRoot?u.shadowRoot.appendChild(v):u.appendChild(v),a&&a(v)}return u}function mo(e,t){function r(l){t(l)}for(var n=0,o=e.getIds();n<o.length;n++){var i=o[n];e.has(i)&&r(e.getNode(i))}}function po(e,t){var r=t.getMeta(e);if(r?.type===j.Element){var n=e;for(var o in r.attributes)if(r.attributes.hasOwnProperty(o)&&o.startsWith("rr_")){var i=r.attributes[o];o==="rr_scrollLeft"&&(n.scrollLeft=i),o==="rr_scrollTop"&&(n.scrollTop=i)}}}function fo(e,t){var r=t.doc,n=t.onVisit,o=t.hackCss,i=o===void 0?!0:o,l=t.afterAppend,c=t.cache,a=t.mirror,s=a===void 0?new pt:a,u=rt(e,{doc:r,mirror:s,skipChild:!1,hackCss:i,afterAppend:l,cache:c});return mo(s,function(d){n&&n(d),po(d,s)}),u}function se(e,t,r=document){const n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)}const Oe=`Please stop import mirror directly. Instead of that,\r
|
|
3
3
|
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
|
|
4
4
|
or you can use record.mirror to access the mirror instance during recording.`;q.mirror={map:{},getId(){return console.error(Oe),-1},getNode(){return console.error(Oe),null},removeNodeFromMap(){console.error(Oe)},has(){return console.error(Oe),!1},reset(){console.error(Oe)}},typeof window<"u"&&window.Proxy&&window.Reflect&&(q.mirror=new Proxy(q.mirror,{get(e,t,r){return t==="map"&&console.error(Oe),Reflect.get(e,t,r)}}));function De(e,t,r={}){let n=null,o=0;return function(i){const l=Date.now();!o&&r.leading===!1&&(o=l);const c=t-(l-o),a=this,s=arguments;c<=0||c>t?(n&&(clearTimeout(n),n=null),o=l,e.apply(a,s)):!n&&r.trailing!==!1&&(n=setTimeout(()=>{o=r.leading===!1?0:Date.now(),n=null,e.apply(a,s)},c))}}function Ve(e,t,r,n,o=window){const i=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,n?r:{set(l){setTimeout(()=>{r.set.call(this,l)},0),i&&i.set&&i.set.call(this,l)}}),()=>Ve(e,t,i||{},!0)}function be(e,t,r){try{if(!(t in e))return()=>{};const n=e[t],o=r(n);return typeof o=="function"&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=o,()=>{e[t]=n}}catch{return()=>{}}}function bt(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function wt(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}const dr=e=>{try{if(e instanceof HTMLElement)return e.tagName==="CANVAS"}catch{return!1}return!1};function oe(e,t){if(!e)return!1;if(e.nodeType===e.ELEMENT_NODE){let r=!1;if(typeof t=="string"){if(e.closest!==void 0)return e.closest("."+t)!==null;r=e.classList.contains(t)}else e.classList.forEach(n=>{t.test(n)&&(r=!0)});return r||oe(e.parentNode,t)}return e.nodeType,e.TEXT_NODE,oe(e.parentNode,t)}function hr(e,t){return t.getId(e)!==-1}function nt(e,t){return t.getId(e)===je}function St(e,t){if(We(e))return!1;const r=t.getId(e);return t.has(r)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?St(e.parentNode,t):!0:!0}function Nt(e){return Boolean(e.changedTouches)}function Tt(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(t){if(!(0 in arguments))throw new TypeError("1 argument is required");do if(this===t)return!0;while(t=t&&t.parentNode);return!1})}function mr(e){const t={},r=(o,i)=>{const l={value:o,parent:i,children:[]};return t[o.node.id]=l,l},n=[];for(const o of e){const{nextId:i,parentId:l}=o;if(i&&i in t){const c=t[i];if(c.parent){const a=c.parent.children.indexOf(c);c.parent.children.splice(a,0,r(o,c.parent))}else{const a=n.indexOf(c);n.splice(a,0,r(o,null))}continue}if(l in t){const c=t[l];c.children.push(r(o,c));continue}n.push(r(o,null))}return n}function Et(e,t){t(e.value);for(let r=e.children.length-1;r>=0;r--)Et(e.children[r],t)}function Re(e,t){return Boolean(e.nodeName==="IFRAME"&&t.getMeta(e))}function pr(e,t){return Boolean(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Ct(e,t){var r,n;const o=(n=(r=e.ownerDocument)==null?void 0:r.defaultView)==null?void 0:n.frameElement;if(!o||o===t)return{x:0,y:0,relativeScale:1,absoluteScale:1};const i=o.getBoundingClientRect(),l=Ct(o,t),c=i.height/o.clientHeight;return{x:i.x*l.relativeScale+l.x,y:i.y*l.relativeScale+l.y,relativeScale:c,absoluteScale:l.absoluteScale*c}}function Ue(e){return Boolean(e?.shadowRoot)}function Ae(e,t){const r=e[t[0]];return t.length===1?r:Ae(r.cssRules[t[1]].cssRules,t.slice(2))}function Mt(e){const t=[...e],r=t.pop();return{positions:t,index:r}}function fr(e){const t=new Set,r=[];for(let n=e.length;n--;){const o=e[n];t.has(o.id)||(r.push(o),t.add(o.id))}return r}var vo=Object.freeze({__proto__:null,on:se,get _mirror(){return q.mirror},throttle:De,hookSetter:Ve,patch:be,getWindowHeight:bt,getWindowWidth:wt,isCanvasNode:dr,isBlocked:oe,isSerialized:hr,isIgnored:nt,isAncestorRemoved:St,isTouchEvent:Nt,polyfill:Tt,queueToResolveTrees:mr,iterateResolveTree:Et,isSerializedIframe:Re,isSerializedStylesheet:pr,getBaseDimension:Ct,hasShadowRoot:Ue,getNestedRule:Ae,getPositionsAndIndex:Mt,uniqueTextMutations:fr}),O=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(O||{}),F=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e))(F||{}),te=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(te||{}),ve=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(ve||{}),Ee=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e))(Ee||{}),z=(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",e))(z||{});function vr(e){return"__ln"in e}class go{constructor(){this.length=0,this.head=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let r=this.head;for(let n=0;n<t;n++)r=r?.next||null;return r}addNode(t){const r={value:t,previous:null,next:null};if(t.__ln=r,t.previousSibling&&vr(t.previousSibling)){const n=t.previousSibling.__ln.next;r.next=n,r.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=r,n&&(n.previous=r)}else if(t.nextSibling&&vr(t.nextSibling)&&t.nextSibling.__ln.previous){const n=t.nextSibling.__ln.previous;r.previous=n,r.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=r,n&&(n.next=r)}else this.head&&(this.head.previous=r),r.next=this.head,this.head=r;this.length++}removeNode(t){const r=t.__ln;!this.head||(r.previous?(r.previous.next=r.next,r.next&&(r.next.previous=r.previous)):(this.head=r.next,this.head&&(this.head.previous=null)),t.__ln&&delete t.__ln,this.length--)}}const gr=(e,t)=>`${e}@${t}`;class yo{constructor(){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=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],r=new go,n=c=>{let a=c,s=je;for(;s===je;)a=a&&a.nextSibling,s=a&&this.mirror.getId(a);return s},o=c=>{var a,s,u,d,m;const h=c.getRootNode?(a=c.getRootNode())==null?void 0:a.host:null;let v=h;for(;(u=(s=v?.getRootNode)==null?void 0:s.call(v))!=null&&u.host;)v=((m=(d=v?.getRootNode)==null?void 0:d.call(v))==null?void 0:m.host)||null;const p=!this.doc.contains(c)&&(!v||!this.doc.contains(v));if(!c.parentNode||p)return;const w=We(c.parentNode)?this.mirror.getId(h):this.mirror.getId(c.parentNode),f=n(c);if(w===-1||f===-1)return r.addNode(c);const S=ke(c,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,enableStrictPrivacy:this.enableStrictPrivacy,onSerialize:T=>{Re(T,this.mirror)&&this.iframeManager.addIframe(T),pr(T,this.mirror)&&this.stylesheetManager.addStylesheet(T),Ue(c)&&this.shadowDomManager.addShadowRoot(c.shadowRoot,document)},onIframeLoad:(T,M)=>{this.iframeManager.attachIframe(T,M,this.mirror),this.shadowDomManager.observeAttachShadow(T)},onStylesheetLoad:(T,M)=>{this.stylesheetManager.attachStylesheet(T,M,this.mirror)}});S&&t.push({parentId:w,nextId:f,node:S})};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const c of Array.from(this.movedSet.values()))xt(this.removes,c,this.mirror)&&!this.movedSet.has(c.parentNode)||o(c);for(const c of Array.from(this.addedSet.values()))!kt(this.droppedSet,c)&&!xt(this.removes,c,this.mirror)||kt(this.movedSet,c)?o(c):this.droppedSet.add(c);let i=null;for(;r.length;){let c=null;if(i){const a=this.mirror.getId(i.value.parentNode),s=n(i.value);a!==-1&&s!==-1&&(c=i)}if(!c)for(let a=r.length-1;a>=0;a--){const s=r.get(a);if(s){const u=this.mirror.getId(s.value.parentNode),d=n(s.value);if(u!==-1&&d!==-1){c=s;break}}}if(!c){for(;r.head;)r.removeNode(r.head.value);break}i=c.previous,r.removeNode(c.value),o(c.value)}const l={texts:this.texts.map(c=>{let a=c.value;return this.enableStrictPrivacy&&a&&(a=nr(a)),{id:this.mirror.getId(c.node),value:a}}).filter(c=>this.mirror.has(c.id)),attributes:this.attributes.map(c=>({id:this.mirror.getId(c.node),attributes:c.attributes})).filter(c=>this.mirror.has(c.id)),removes:this.removes,adds:t};!l.texts.length&&!l.attributes.length&&!l.removes.length&&!l.adds.length||(this.texts=[],this.attributes=[],this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(l))},this.processMutation=t=>{if(!nt(t.target,this.mirror))switch(t.type){case"characterData":{const r=t.target.textContent;!oe(t.target,this.blockClass)&&r!==t.oldValue&&this.texts.push({value:tt(t.target,this.maskTextClass,this.maskTextSelector)&&r?this.maskTextFn?this.maskTextFn(r):r.replace(/[\S]/g,"*"):r,node:t.target});break}case"attributes":{const r=t.target;let n=t.target.getAttribute(t.attributeName);if(t.attributeName==="value"&&(n=ft({maskInputOptions:this.maskInputOptions,tagName:t.target.tagName,type:t.target.getAttribute("type"),value:n,maskInputFn:this.maskInputFn})),oe(t.target,this.blockClass)||n===t.oldValue)return;let o=this.attributes.find(i=>i.node===t.target);if(o||(o={node:t.target,attributes:{}},this.attributes.push(o)),t.attributeName==="style"){const i=this.doc.createElement("span");t.oldValue&&i.setAttribute("style",t.oldValue),(o.attributes.style===void 0||o.attributes.style===null)&&(o.attributes.style={});const l=o.attributes.style;for(const c of Array.from(r.style)){const a=r.style.getPropertyValue(c),s=r.style.getPropertyPriority(c);(a!==i.style.getPropertyValue(c)||s!==i.style.getPropertyPriority(c))&&(s===""?l[c]=a:l[c]=[a,s])}for(const c of Array.from(i.style))r.style.getPropertyValue(c)===""&&(l[c]=!1)}else{if(t.target.tagName==="INPUT"){const i=t.target;if(i.type==="password"){o.attributes.value="*".repeat(i.value.length);break}}o.attributes[t.attributeName]=ir(this.doc,t.target.tagName,t.attributeName,n)}break}case"childList":{t.addedNodes.forEach(r=>this.genAdds(r,t.target)),t.removedNodes.forEach(r=>{const n=this.mirror.getId(r),o=We(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);oe(t.target,this.blockClass)||nt(r,this.mirror)||!hr(r,this.mirror)||(this.addedSet.has(r)?(It(this.addedSet,r),this.droppedSet.add(r)):this.addedSet.has(t.target)&&n===-1||St(t.target,this.mirror)||(this.movedSet.has(r)&&this.movedMap[gr(n,o)]?It(this.movedSet,r):this.removes.push({parentId:o,id:n,isShadow:We(t.target)?!0:void 0})),this.mapRemoves.push(r))});break}}},this.genAdds=(t,r)=>{if(!(r&&oe(r,this.blockClass))){if(this.mirror.getMeta(t)){if(nt(t,this.mirror))return;this.movedSet.add(t);let n=null;r&&this.mirror.getMeta(r)&&(n=this.mirror.getId(r)),n&&n!==-1&&(this.movedMap[gr(this.mirror.getId(t),n)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);oe(t,this.blockClass)||t.childNodes.forEach(n=>this.genAdds(n))}}}init(t){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","recordCanvas","inlineImages","slimDOMOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","enableStrictPrivacy"].forEach(r=>{this[r]=t[r]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function It(e,t){e.delete(t),t.childNodes.forEach(r=>It(e,r))}function xt(e,t,r){const{parentNode:n}=t;if(!n)return!1;const o=r.getId(n);return e.some(i=>i.id===o)?!0:xt(e,n,r)}function kt(e,t){const{parentNode:r}=t;return r?e.has(r)?!0:kt(e,r):!1}var bo=Object.defineProperty,wo=Object.defineProperties,So=Object.getOwnPropertyDescriptors,yr=Object.getOwnPropertySymbols,No=Object.prototype.hasOwnProperty,To=Object.prototype.propertyIsEnumerable,br=(e,t,r)=>t in e?bo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wr=(e,t)=>{for(var r in t||(t={}))No.call(t,r)&&br(e,r,t[r]);if(yr)for(var r of yr(t))To.call(t,r)&&br(e,r,t[r]);return e},Eo=(e,t)=>wo(e,So(t));const Ce=[],Sr=typeof CSSGroupingRule<"u",Nr=typeof CSSMediaRule<"u",Tr=typeof CSSSupportsRule<"u",Er=typeof CSSConditionRule<"u";function Ge(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0];return e.target}catch{return e.target}}function Cr(e,t){var r,n;const o=new yo;Ce.push(o),o.init(e);let i=window.MutationObserver||window.__rrMutationObserver;const l=(n=(r=window?.Zone)==null?void 0:r.__symbol__)==null?void 0:n.call(r,"MutationObserver");l&&window[l]&&(i=window[l]);const c=new i(o.processMutations.bind(o));return c.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),c}function Co({mousemoveCb:e,sampling:t,doc:r,mirror:n}){if(t.mousemove===!1)return()=>{};const o=typeof t.mousemove=="number"?t.mousemove:50,i=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let l=[],c;const a=De(d=>{const m=Date.now()-c;e(l.map(h=>(h.timeOffset-=m,h)),d),l=[],c=null},i),s=De(d=>{const m=Ge(d),{clientX:h,clientY:v}=Nt(d)?d.changedTouches[0]:d;c||(c=Date.now()),l.push({x:h,y:v,id:n.getId(m),timeOffset:Date.now()-c}),a(typeof DragEvent<"u"&&d instanceof DragEvent?F.Drag:d instanceof MouseEvent?F.MouseMove:F.TouchMove)},o,{trailing:!1}),u=[se("mousemove",s,r),se("touchmove",s,r),se("drag",s,r)];return()=>{u.forEach(d=>d())}}function Mo({mouseInteractionCb:e,doc:t,mirror:r,blockClass:n,sampling:o}){if(o.mouseInteraction===!1)return()=>{};const i=o.mouseInteraction===!0||o.mouseInteraction===void 0?{}:o.mouseInteraction,l=[],c=a=>s=>{const u=Ge(s);if(oe(u,n)||dr(u))return;const d=Nt(s)?s.changedTouches[0]:s;if(!d)return;const m=r.getId(u),{clientX:h,clientY:v}=d;e({type:te[a],id:m,x:h,y:v})};return Object.keys(te).filter(a=>Number.isNaN(Number(a))&&!a.endsWith("_Departed")&&i[a]!==!1).forEach(a=>{const s=a.toLowerCase(),u=c(a);l.push(se(s,u,t))}),()=>{l.forEach(a=>a())}}function Mr({scrollCb:e,doc:t,mirror:r,blockClass:n,sampling:o}){const i=De(l=>{const c=Ge(l);if(!c||oe(c,n))return;const a=r.getId(c);if(c===t){const s=t.scrollingElement||t.documentElement;e({id:a,x:s.scrollLeft,y:s.scrollTop})}else e({id:a,x:c.scrollLeft,y:c.scrollTop})},o.scroll||100);return se("scroll",i,t)}function Io({viewportResizeCb:e}){let t=-1,r=-1;const n=De(()=>{const o=bt(),i=wt();(t!==o||r!==i)&&(e({width:Number(i),height:Number(o)}),t=o,r=i)},200);return se("resize",n,window)}function Ir(e,t){const r=wr({},e);return t||delete r.userTriggered,r}const xo=["INPUT","TEXTAREA","SELECT"],xr=new WeakMap;function ko({inputCb:e,doc:t,mirror:r,blockClass:n,ignoreClass:o,maskInputOptions:i,maskInputFn:l,sampling:c,userTriggeredOnInput:a}){function s(v){let p=Ge(v);const w=v.isTrusted;if(p&&p.tagName==="OPTION"&&(p=p.parentElement),!p||!p.tagName||xo.indexOf(p.tagName)<0||oe(p,n))return;const f=p.type;if(p.classList.contains(o))return;let S=p.value,T=!1;f==="radio"||f==="checkbox"?T=p.checked:(i[p.tagName.toLowerCase()]||i[f])&&(S=ft({maskInputOptions:i,tagName:p.tagName,type:f,value:S,maskInputFn:l})),u(p,Ir({text:S,isChecked:T,userTriggered:w},a));const M=p.name;f==="radio"&&M&&T&&t.querySelectorAll(`input[type="radio"][name="${M}"]`).forEach(R=>{R!==p&&u(R,Ir({text:R.value,isChecked:!T,userTriggered:!1},a))})}function u(v,p){const w=xr.get(v);if(!w||w.text!==p.text||w.isChecked!==p.isChecked){xr.set(v,p);const f=r.getId(v);e(Eo(wr({},p),{id:f}))}}const d=(c.input==="last"?["change"]:["input","change"]).map(v=>se(v,s,t)),m=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 m&&m.set&&d.push(...h.map(v=>Ve(v[0],v[1],{set(){s({target:this})}}))),()=>{d.forEach(v=>v())}}function ot(e){const t=[];function r(n,o){if(Sr&&n.parentRule instanceof CSSGroupingRule||Nr&&n.parentRule instanceof CSSMediaRule||Tr&&n.parentRule instanceof CSSSupportsRule||Er&&n.parentRule instanceof CSSConditionRule){const i=Array.from(n.parentRule.cssRules).indexOf(n);o.unshift(i)}else{const i=Array.from(n.parentStyleSheet.cssRules).indexOf(n);o.unshift(i)}return o}return r(e,t)}function Oo({styleSheetRuleCb:e,mirror:t},{win:r}){const n=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=function(c,a){const s=t.getId(this.ownerNode);return s!==-1&&e({id:s,adds:[{rule:c,index:a}]}),n.apply(this,arguments)};const o=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=function(c){const a=t.getId(this.ownerNode);return a!==-1&&e({id:a,removes:[{index:c}]}),o.apply(this,arguments)};const i={};Sr?i.CSSGroupingRule=r.CSSGroupingRule:(Nr&&(i.CSSMediaRule=r.CSSMediaRule),Er&&(i.CSSConditionRule=r.CSSConditionRule),Tr&&(i.CSSSupportsRule=r.CSSSupportsRule));const l={};return Object.entries(i).forEach(([c,a])=>{l[c]={insertRule:a.prototype.insertRule,deleteRule:a.prototype.deleteRule},a.prototype.insertRule=function(s,u){const d=t.getId(this.parentStyleSheet.ownerNode);return d!==-1&&e({id:d,adds:[{rule:s,index:[...ot(this),u||0]}]}),l[c].insertRule.apply(this,arguments)},a.prototype.deleteRule=function(s){const u=t.getId(this.parentStyleSheet.ownerNode);return u!==-1&&e({id:u,removes:[{index:[...ot(this),s]}]}),l[c].deleteRule.apply(this,arguments)}}),()=>{r.CSSStyleSheet.prototype.insertRule=n,r.CSSStyleSheet.prototype.deleteRule=o,Object.entries(i).forEach(([c,a])=>{a.prototype.insertRule=l[c].insertRule,a.prototype.deleteRule=l[c].deleteRule})}}function Do({styleDeclarationCb:e,mirror:t},{win:r}){const n=r.CSSStyleDeclaration.prototype.setProperty;r.CSSStyleDeclaration.prototype.setProperty=function(i,l,c){var a,s;const u=t.getId((s=(a=this.parentRule)==null?void 0:a.parentStyleSheet)==null?void 0:s.ownerNode);return u!==-1&&e({id:u,set:{property:i,value:l,priority:c},index:ot(this.parentRule)}),n.apply(this,arguments)};const o=r.CSSStyleDeclaration.prototype.removeProperty;return r.CSSStyleDeclaration.prototype.removeProperty=function(i){var l,c;const a=t.getId((c=(l=this.parentRule)==null?void 0:l.parentStyleSheet)==null?void 0:c.ownerNode);return a!==-1&&e({id:a,remove:{property:i},index:ot(this.parentRule)}),o.apply(this,arguments)},()=>{r.CSSStyleDeclaration.prototype.setProperty=n,r.CSSStyleDeclaration.prototype.removeProperty=o}}function Ro({mediaInteractionCb:e,blockClass:t,mirror:r,sampling:n}){const o=l=>De(c=>{const a=Ge(c);if(!a||oe(a,t))return;const{currentTime:s,volume:u,muted:d}=a;e({type:l,id:r.getId(a),currentTime:s,volume:u,muted:d})},n.media||500),i=[se("play",o(Ee.Play)),se("pause",o(Ee.Pause)),se("seeked",o(Ee.Seeked)),se("volumechange",o(Ee.VolumeChange))];return()=>{i.forEach(l=>l())}}function Ao({fontCb:e,doc:t}){const r=t.defaultView;if(!r)return()=>{};const n=[],o=new WeakMap,i=r.FontFace;r.FontFace=function(c,a,s){const u=new i(c,a,s);return o.set(u,{family:c,buffer:typeof a!="string",descriptors:s,fontSource:typeof a=="string"?a:JSON.stringify(Array.from(new Uint8Array(a)))}),u};const l=be(t.fonts,"add",function(c){return function(a){return setTimeout(()=>{const s=o.get(a);s&&(e(s),o.delete(a))},0),c.apply(this,[a])}});return n.push(()=>{r.FontFace=i}),n.push(l),()=>{n.forEach(c=>c())}}function Lo(e,t){const{mutationCb:r,mousemoveCb:n,mouseInteractionCb:o,scrollCb:i,viewportResizeCb:l,inputCb:c,mediaInteractionCb:a,styleSheetRuleCb:s,styleDeclarationCb:u,canvasMutationCb:d,fontCb:m}=e;e.mutationCb=(...h)=>{t.mutation&&t.mutation(...h),r(...h)},e.mousemoveCb=(...h)=>{t.mousemove&&t.mousemove(...h),n(...h)},e.mouseInteractionCb=(...h)=>{t.mouseInteraction&&t.mouseInteraction(...h),o(...h)},e.scrollCb=(...h)=>{t.scroll&&t.scroll(...h),i(...h)},e.viewportResizeCb=(...h)=>{t.viewportResize&&t.viewportResize(...h),l(...h)},e.inputCb=(...h)=>{t.input&&t.input(...h),c(...h)},e.mediaInteractionCb=(...h)=>{t.mediaInteaction&&t.mediaInteaction(...h),a(...h)},e.styleSheetRuleCb=(...h)=>{t.styleSheetRule&&t.styleSheetRule(...h),s(...h)},e.styleDeclarationCb=(...h)=>{t.styleDeclaration&&t.styleDeclaration(...h),u(...h)},e.canvasMutationCb=(...h)=>{t.canvasMutation&&t.canvasMutation(...h),d(...h)},e.fontCb=(...h)=>{t.font&&t.font(...h),m(...h)}}function Fo(e,t={}){const r=e.doc.defaultView;if(!r)return()=>{};Lo(e,t);const n=Cr(e,e.doc),o=Co(e),i=Mo(e),l=Mr(e),c=Io(e),a=ko(e),s=Ro(e),u=Oo(e,{win:r}),d=Do(e,{win:r}),m=e.collectFonts?Ao(e):()=>{},h=[];for(const v of e.plugins)h.push(v.observer(v.callback,r,v.options));return()=>{Ce.forEach(v=>v.reset()),n.disconnect(),o(),i(),l(),c(),a(),s(),u(),d(),m(),h.forEach(v=>v())}}class _o{constructor(t){this.iframes=new WeakMap,this.mutationCb=t.mutationCb}addIframe(t){this.iframes.set(t,!0)}addLoadListener(t){this.loadListener=t}attachIframe(t,r,n){var o;this.mutationCb({adds:[{parentId:n.getId(t),nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),(o=this.loadListener)==null||o.call(this,t)}}var Po=Object.defineProperty,$o=Object.defineProperties,Wo=Object.getOwnPropertyDescriptors,kr=Object.getOwnPropertySymbols,jo=Object.prototype.hasOwnProperty,Vo=Object.prototype.propertyIsEnumerable,Or=(e,t,r)=>t in e?Po(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Dr=(e,t)=>{for(var r in t||(t={}))jo.call(t,r)&&Or(e,r,t[r]);if(kr)for(var r of kr(t))Vo.call(t,r)&&Or(e,r,t[r]);return e},Rr=(e,t)=>$o(e,Wo(t));class Uo{constructor(t){this.restorePatches=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror;const r=this;this.restorePatches.push(be(HTMLElement.prototype,"attachShadow",function(n){return function(){const o=n.apply(this,arguments);return this.shadowRoot&&r.addShadowRoot(this.shadowRoot,this.ownerDocument),o}}))}addShadowRoot(t,r){Cr(Rr(Dr({},this.bypassOptions),{doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),t),Mr(Rr(Dr({},this.bypassOptions),{scrollCb:this.scrollCb,doc:t,mirror:this.mirror}))}observeAttachShadow(t){if(t.contentWindow){const r=this;this.restorePatches.push(be(t.contentWindow.HTMLElement.prototype,"attachShadow",function(n){return function(){const o=n.apply(this,arguments);return this.shadowRoot&&r.addShadowRoot(this.shadowRoot,t.contentDocument),o}}))}}reset(){this.restorePatches.forEach(t=>t())}}for(var Le="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Be=typeof Uint8Array>"u"?[]:new Uint8Array(256),it=0;it<Le.length;it++)Be[Le.charCodeAt(it)]=it;var Go=function(e){var t=new Uint8Array(e),r,n=t.length,o="";for(r=0;r<n;r+=3)o+=Le[t[r]>>2],o+=Le[(t[r]&3)<<4|t[r+1]>>4],o+=Le[(t[r+1]&15)<<2|t[r+2]>>6],o+=Le[t[r+2]&63];return n%3===2?o=o.substring(0,o.length-1)+"=":n%3===1&&(o=o.substring(0,o.length-2)+"=="),o},Bo=function(e){var t=e.length*.75,r=e.length,n,o=0,i,l,c,a;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var s=new ArrayBuffer(t),u=new Uint8Array(s);for(n=0;n<r;n+=4)i=Be[e.charCodeAt(n)],l=Be[e.charCodeAt(n+1)],c=Be[e.charCodeAt(n+2)],a=Be[e.charCodeAt(n+3)],u[o++]=i<<2|l>>4,u[o++]=(l&15)<<4|c>>2,u[o++]=(c&3)<<6|a&63;return s};const Ar=new Map;function zo(e,t){let r=Ar.get(e);return r||(r=new Map,Ar.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}const Lr=(e,t,r)=>{if(!e||!(_r(e,t)||typeof e=="object"))return;const n=e.constructor.name,o=zo(r,n);let i=o.indexOf(e);return i===-1&&(i=o.length,o.push(e)),i};function st(e,t,r){if(e instanceof Array)return e.map(n=>st(n,t,r));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){const n=e.constructor.name,o=Go(e);return{rr_type:n,base64:o}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[st(e.buffer,t,r),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const n=e.constructor.name,{src:o}=e;return{rr_type:n,src:o}}else if(e instanceof HTMLCanvasElement){const n="HTMLImageElement",o=e.toDataURL();return{rr_type:n,src:o}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[st(e.data,t,r),e.width,e.height]};if(_r(e,t)||typeof e=="object"){const n=e.constructor.name,o=Lr(e,t,r);return{rr_type:n,index:o}}}}return e}const Fr=(e,t,r)=>[...e].map(n=>st(n,t,r)),_r=(e,t)=>{const r=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(n=>typeof t[n]=="function");return Boolean(r.find(n=>e instanceof t[n]))};function Ho(e,t,r,n){const o=[],i=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const l of i)try{if(typeof t.CanvasRenderingContext2D.prototype[l]!="function")continue;const c=be(t.CanvasRenderingContext2D.prototype,l,function(a){return function(...s){return oe(this.canvas,r)||setTimeout(()=>{const u=Fr([...s],t,this);e(this.canvas,{type:ve["2D"],property:l,args:u})},0),a.apply(this,s)}});o.push(c)}catch{const a=Ve(t.CanvasRenderingContext2D.prototype,l,{set(s){e(this.canvas,{type:ve["2D"],property:l,args:[s],setter:!0})}});o.push(a)}return()=>{o.forEach(l=>l())}}function Pr(e,t){const r=[];try{const n=be(e.HTMLCanvasElement.prototype,"getContext",function(o){return function(i,...l){return oe(this,t)||"__context"in this||(this.__context=i),o.apply(this,[i,...l])}});r.push(n)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{r.forEach(n=>n())}}function $r(e,t,r,n,o,i){const l=[],c=Object.getOwnPropertyNames(e);for(const a of c)try{if(typeof e[a]!="function")continue;const s=be(e,a,function(u){return function(...d){const m=u.apply(this,d);if(Lr(m,i,e),!oe(this.canvas,n)){const h=o.getId(this.canvas),v=Fr([...d],i,e),p={type:t,property:a,args:v};r(this.canvas,p)}return m}});l.push(s)}catch{const u=Ve(e,a,{set(d){r(this.canvas,{type:t,property:a,args:[d],setter:!0})}});l.push(u)}return l}function Yo(e,t,r,n){const o=[];return o.push(...$r(t.WebGLRenderingContext.prototype,ve.WebGL,e,r,n,t)),typeof t.WebGL2RenderingContext<"u"&&o.push(...$r(t.WebGL2RenderingContext.prototype,ve.WebGL2,e,r,n,t)),()=>{o.forEach(i=>i())}}function Xo(e,t){var r=atob(e);if(t){for(var n=new Uint8Array(r.length),o=0,i=r.length;o<i;++o)n[o]=r.charCodeAt(o);return String.fromCharCode.apply(null,new Uint16Array(n.buffer))}return r}function Zo(e,t,r){var n=t===void 0?null:t,o=r===void 0?!1:r,i=Xo(e,o),l=i.indexOf(`
|
|
5
5
|
`,10)+1,c=i.substring(l)+(n?"//# sourceMappingURL="+n:""),a=new Blob([c],{type:"application/javascript"});return URL.createObjectURL(a)}function Ko(e,t,r){var n;return function(i){return n=n||Zo(e,t,r),new Worker(n,i)}}var qo=Ko("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwooZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Zm9yKHZhciByPSJBQkNERUZHSElKS0xNTk9QUVJTVFVWV1hZWmFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6MDEyMzQ1Njc4OSsvIixsPXR5cGVvZiBVaW50OEFycmF5PiJ1Ij9bXTpuZXcgVWludDhBcnJheSgyNTYpLGY9MDtmPHIubGVuZ3RoO2YrKylsW3IuY2hhckNvZGVBdChmKV09Zjt2YXIgZD1mdW5jdGlvbihzKXt2YXIgZT1uZXcgVWludDhBcnJheShzKSxuLGE9ZS5sZW5ndGgsdD0iIjtmb3Iobj0wO248YTtuKz0zKXQrPXJbZVtuXT4+Ml0sdCs9clsoZVtuXSYzKTw8NHxlW24rMV0+PjRdLHQrPXJbKGVbbisxXSYxNSk8PDJ8ZVtuKzJdPj42XSx0Kz1yW2VbbisyXSY2M107cmV0dXJuIGElMz09PTI/dD10LnN1YnN0cmluZygwLHQubGVuZ3RoLTEpKyI9IjphJTM9PT0xJiYodD10LnN1YnN0cmluZygwLHQubGVuZ3RoLTIpKyI9PSIpLHR9O2NvbnN0IGM9bmV3IE1hcCx1PW5ldyBNYXA7YXN5bmMgZnVuY3Rpb24gcChzLGUpe2NvbnN0IG49YCR7c30tJHtlfWA7aWYodS5oYXMobikpcmV0dXJuIHUuZ2V0KG4pO2NvbnN0IGE9bmV3IE9mZnNjcmVlbkNhbnZhcyhzLGUpO2EuZ2V0Q29udGV4dCgiMmQiKTtjb25zdCB0PWF3YWl0KGF3YWl0IGEuY29udmVydFRvQmxvYigpKS5hcnJheUJ1ZmZlcigpLGc9ZCh0KTtyZXR1cm4gdS5zZXQobixnKSxnfWNvbnN0IGk9c2VsZjtpLm9ubWVzc2FnZT1hc3luYyBmdW5jdGlvbihzKXtpZighKCJPZmZzY3JlZW5DYW52YXMiaW4gZ2xvYmFsVGhpcykpcmV0dXJuIGkucG9zdE1lc3NhZ2Uoe2lkOnMuZGF0YS5pZH0pO2NvbnN0e2lkOmUsYml0bWFwOm4sd2lkdGg6YSxoZWlnaHQ6dH09cy5kYXRhLGc9cChhLHQpLGg9bmV3IE9mZnNjcmVlbkNhbnZhcyhhLHQpO2guZ2V0Q29udGV4dCgiMmQiKS5kcmF3SW1hZ2UobiwwLDApLG4uY2xvc2UoKTtjb25zdCB3PWF3YWl0IGguY29udmVydFRvQmxvYigpLHk9dy50eXBlLGI9YXdhaXQgdy5hcnJheUJ1ZmZlcigpLG89ZChiKTtpZighYy5oYXMoZSkmJmF3YWl0IGc9PT1vKXJldHVybiBjLnNldChlLG8pLGkucG9zdE1lc3NhZ2Uoe2lkOmV9KTtpZihjLmdldChlKT09PW8pcmV0dXJuIGkucG9zdE1lc3NhZ2Uoe2lkOmV9KTtpLnBvc3RNZXNzYWdlKHtpZDplLHR5cGU6eSxiYXNlNjQ6byx3aWR0aDphLGhlaWdodDp0fSksYy5zZXQoZSxvKX19KSgpOwoK",null,!1),Wr=Object.getOwnPropertySymbols,Jo=Object.prototype.hasOwnProperty,Qo=Object.prototype.propertyIsEnumerable,ei=(e,t)=>{var r={};for(var n in e)Jo.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Wr)for(var n of Wr(e))t.indexOf(n)<0&&Qo.call(e,n)&&(r[n]=e[n]);return r},ti=(e,t,r)=>new Promise((n,o)=>{var i=a=>{try{c(r.next(a))}catch(s){o(s)}},l=a=>{try{c(r.throw(a))}catch(s){o(s)}},c=a=>a.done?n(a.value):Promise.resolve(a.value).then(i,l);c((r=r.apply(e,t)).next())});class ri{constructor(t){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=function(l,c){(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(l)||this.pendingCanvasMutations.set(l,[]),this.pendingCanvasMutations.get(l).push(c)};const{sampling:r="all",win:n,blockClass:o,recordCanvas:i}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,i&&r==="all"&&this.initCanvasMutationObserver(n,o),i&&typeof r=="number"&&this.initCanvasFPSObserver(r,n,o)}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(t,r,n){const o=Pr(r,n),i=new Map,l=new qo;l.onmessage=d=>{const{id:m}=d.data;if(i.set(m,!1),!("base64"in d.data))return;const{base64:h,type:v,width:p,height:w}=d.data;this.mutationCb({id:m,type:ve["2D"],commands:[{property:"clearRect",args:[0,0,p,w]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:h}],type:v}]},0,0]}]})};const c=1e3/t;let a=0,s;const u=d=>{if(a&&d-a<c){s=requestAnimationFrame(u);return}a=d,r.document.querySelectorAll(`canvas:not(.${n} *)`).forEach(m=>ti(this,null,function*(){var h;const v=this.mirror.getId(m);if(i.get(v))return;if(i.set(v,!0),["webgl","webgl2"].includes(m.__context)){const w=m.getContext(m.__context);((h=w?.getContextAttributes())==null?void 0:h.preserveDrawingBuffer)===!1&&w?.clear(w.COLOR_BUFFER_BIT)}const p=yield createImageBitmap(m);l.postMessage({id:v,bitmap:p,width:m.width,height:m.height},[p])})),s=requestAnimationFrame(u)};s=requestAnimationFrame(u),this.resetObservers=()=>{o(),cancelAnimationFrame(s)}}initCanvasMutationObserver(t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const n=Pr(t,r),o=Ho(this.processMutation.bind(this),t,r,this.mirror),i=Yo(this.processMutation.bind(this),t,r,this.mirror);this.resetObservers=()=>{n(),o(),i()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=r=>{this.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,r)=>{const n=this.mirror.getId(r);this.flushPendingCanvasMutationFor(r,n)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,r){if(this.frozen||this.locked)return;const n=this.pendingCanvasMutations.get(t);if(!n||r===-1)return;const o=n.map(l=>ei(l,["type"])),{type:i}=n[0];this.mutationCb({id:r,type:i,commands:o}),this.pendingCanvasMutations.delete(t)}}class ni{constructor(t){this.trackedStylesheets=new WeakSet,this.mutationCb=t.mutationCb}addStylesheet(t){this.trackedStylesheets.has(t)||(this.trackedStylesheets.add(t),this.trackStylesheet(t))}trackStylesheet(t){}attachStylesheet(t,r,n){this.mutationCb({adds:[{parentId:n.getId(t),nextId:null,node:r}],removes:[],texts:[],attributes:[]}),this.addStylesheet(t)}}var oi=Object.defineProperty,ii=Object.defineProperties,si=Object.getOwnPropertyDescriptors,jr=Object.getOwnPropertySymbols,ai=Object.prototype.hasOwnProperty,li=Object.prototype.propertyIsEnumerable,Vr=(e,t,r)=>t in e?oi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ae=(e,t)=>{for(var r in t||(t={}))ai.call(t,r)&&Vr(e,r,t[r]);if(jr)for(var r of jr(t))li.call(t,r)&&Vr(e,r,t[r]);return e},ci=(e,t)=>ii(e,si(t));function re(e){return ci(ae({},e),{timestamp:Date.now()})}let Q,ze;const we=tr();function Me(e={}){const{emit:t,checkoutEveryNms:r,checkoutEveryNth:n,blockClass:o="highlight-block",blockSelector:i=null,ignoreClass:l="highlight-ignore",maskTextClass:c="highlight-mask",maskTextSelector:a=null,inlineStylesheet:s=!0,maskAllInputs:u,maskInputOptions:d,slimDOMOptions:m,maskInputFn:h,maskTextFn:v,hooks:p,packFn:w,sampling:f={},mousemoveWait:S,recordCanvas:T=!1,userTriggeredOnInput:M=!1,collectFonts:R=!1,inlineImages:I=!1,plugins:C,keepIframeSrcFn:y=()=>!1,enableStrictPrivacy:H=!1}=e;if(!t)throw new Error("emit function is required");S!==void 0&&f.mousemove===void 0&&(f.mousemove=S),we.reset();const G=u===!0?{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}:d!==void 0?d:{password:!0},K=m===!0||m==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:m==="all",headMetaDescKeywords:m==="all"}:m||{};Tt();let V,U=0;const Y=E=>{for(const A of C||[])A.eventProcessor&&(E=A.eventProcessor(E));return w&&(E=w(E)),E};Q=(E,A)=>{var _;if(((_=Ce[0])==null?void 0:_.isFrozen())&&E.type!==O.FullSnapshot&&!(E.type===O.IncrementalSnapshot&&E.data.source===F.Mutation)&&Ce.forEach(k=>k.unfreeze()),t(Y(E),A),E.type===O.FullSnapshot)V=E,U=0;else if(E.type===O.IncrementalSnapshot){if(E.data.source===F.Mutation&&E.data.isAttachIframe)return;U++;const k=n&&U>=n,ee=r&&E.timestamp-V.timestamp>r;(k||ee)&&ze(!0)}};const B=E=>{Q(re({type:O.IncrementalSnapshot,data:ae({source:F.Mutation},E)}))},L=E=>Q(re({type:O.IncrementalSnapshot,data:ae({source:F.Scroll},E)})),x=E=>Q(re({type:O.IncrementalSnapshot,data:ae({source:F.CanvasMutation},E)})),D=new _o({mutationCb:B}),b=new ni({mutationCb:B}),g=new ri({recordCanvas:T,mutationCb:x,win:window,blockClass:o,mirror:we,sampling:f.canvas}),N=new Uo({mutationCb:B,scrollCb:L,bypassOptions:{blockClass:o,blockSelector:i,maskTextClass:c,maskTextSelector:a,inlineStylesheet:s,maskInputOptions:G,maskTextFn:v,maskInputFn:h,recordCanvas:T,inlineImages:I,sampling:f,slimDOMOptions:K,iframeManager:D,stylesheetManager:b,canvasManager:g,enableStrictPrivacy:H},mirror:we});ze=(E=!1)=>{var A,_,k,ee;Q(re({type:O.Meta,data:{href:window.location.href,width:wt(),height:bt()}}),E),Ce.forEach(W=>W.lock());const P=so(document,{mirror:we,blockClass:o,blockSelector:i,maskTextClass:c,maskTextSelector:a,inlineStylesheet:s,maskAllInputs:G,maskTextFn:v,slimDOM:K,recordCanvas:T,inlineImages:I,enableStrictPrivacy:H,onSerialize:W=>{Re(W,we)&&D.addIframe(W),Ue(W)&&N.addShadowRoot(W.shadowRoot,document)},onIframeLoad:(W,de)=>{D.attachIframe(W,de,we),N.observeAttachShadow(W)},onStylesheetLoad:(W,de)=>{this.stylesheetManager.attachStylesheet(W,de,this.mirror)},keepIframeSrcFn:y});if(!P)return console.warn("Failed to snapshot the document");Q(re({type:O.FullSnapshot,data:{node:P,initialOffset:{left:window.pageXOffset!==void 0?window.pageXOffset:document?.documentElement.scrollLeft||((_=(A=document?.body)==null?void 0:A.parentElement)==null?void 0:_.scrollLeft)||document?.body.scrollLeft||0,top:window.pageYOffset!==void 0?window.pageYOffset:document?.documentElement.scrollTop||((ee=(k=document?.body)==null?void 0:k.parentElement)==null?void 0:ee.scrollTop)||document?.body.scrollTop||0}}})),Ce.forEach(W=>W.unlock())};try{const E=[];E.push(se("DOMContentLoaded",()=>{Q(re({type:O.DomContentLoaded,data:{}}))}));const A=k=>{var ee;return Fo({mutationCb:B,mousemoveCb:(P,W)=>Q(re({type:O.IncrementalSnapshot,data:{source:W,positions:P}})),mouseInteractionCb:P=>Q(re({type:O.IncrementalSnapshot,data:ae({source:F.MouseInteraction},P)})),scrollCb:L,viewportResizeCb:P=>Q(re({type:O.IncrementalSnapshot,data:ae({source:F.ViewportResize},P)})),inputCb:P=>Q(re({type:O.IncrementalSnapshot,data:ae({source:F.Input},P)})),mediaInteractionCb:P=>Q(re({type:O.IncrementalSnapshot,data:ae({source:F.MediaInteraction},P)})),styleSheetRuleCb:P=>Q(re({type:O.IncrementalSnapshot,data:ae({source:F.StyleSheetRule},P)})),styleDeclarationCb:P=>Q(re({type:O.IncrementalSnapshot,data:ae({source:F.StyleDeclaration},P)})),canvasMutationCb:x,fontCb:P=>Q(re({type:O.IncrementalSnapshot,data:ae({source:F.Font},P)})),blockClass:o,ignoreClass:l,maskTextClass:c,maskTextSelector:a,maskInputOptions:G,inlineStylesheet:s,sampling:f,recordCanvas:T,inlineImages:I,userTriggeredOnInput:M,collectFonts:R,doc:k,maskInputFn:h,maskTextFn:v,blockSelector:i,slimDOMOptions:K,mirror:we,iframeManager:D,stylesheetManager:b,shadowDomManager:N,canvasManager:g,enableStrictPrivacy:H,plugins:((ee=C?.filter(P=>P.observer))==null?void 0:ee.map(P=>({observer:P.observer,options:P.options,callback:W=>Q(re({type:O.Plugin,data:{plugin:P.name,payload:W}}))})))||[]},p)};D.addLoadListener(k=>{E.push(A(k.contentDocument))});const _=()=>{ze(),E.push(A(document))};return document.readyState==="interactive"||document.readyState==="complete"?_():E.push(se("load",()=>{Q(re({type:O.Load,data:{}})),_()},window)),()=>{E.forEach(k=>k())}}catch(E){console.warn(E)}}Me.addCustomEvent=(e,t)=>{!Q||Q(re({type:O.Custom,data:{tag:e,payload:t}}))},Me.freezePage=()=>{Ce.forEach(e=>e.freeze())},Me.takeFullSnapshot=e=>{if(!ze)throw new Error("please take full snapshot after start recording");ze(e)},Me.mirror=we;var $;(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"})($||($={}));var ui=function(){function e(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}return e.prototype.getId=function(t){var r;if(!t)return-1;var n=(r=this.getMeta(t))===null||r===void 0?void 0:r.id;return n??-1},e.prototype.getNode=function(t){return this.idNodeMap.get(t)||null},e.prototype.getIds=function(){return Array.from(this.idNodeMap.keys())},e.prototype.getMeta=function(t){return this.nodeMetaMap.get(t)||null},e.prototype.removeNodeFromMap=function(t){var r=this,n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(function(o){return r.removeNodeFromMap(o)})},e.prototype.has=function(t){return this.idNodeMap.has(t)},e.prototype.hasNode=function(t){return this.nodeMetaMap.has(t)},e.prototype.add=function(t,r){var n=r.id;this.idNodeMap.set(n,t),this.nodeMetaMap.set(t,r)},e.prototype.replace=function(t,r){this.idNodeMap.set(t,r)},e.prototype.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}();function di(){return new ui}function hi(e){const t={},r=/;(?![^(]*\))/g,n=/:(.+)/,o=/\/\*.*?\*\//g;return e.replace(o,"").split(r).forEach(function(i){if(i){const l=i.split(n);l.length>1&&(t[Ot(l[0].trim())]=l[1].trim())}}),t}function Ur(e){const t=[];for(const r in e){const n=e[r];if(typeof n!="string")continue;const o=vi(r);t.push(`${o}: ${n};`)}return t.join(" ")}const mi=/-([a-z])/g,pi=/^--[a-zA-Z0-9-]+$/,Ot=e=>pi.test(e)?e:e.replace(mi,(t,r)=>r?r.toUpperCase():""),fi=/\B([A-Z])/g,vi=e=>e.replace(fi,"-$1").toLowerCase();class le{constructor(...t){this.childNodes=[],this.parentElement=null,this.parentNode=null,this.ELEMENT_NODE=J.ELEMENT_NODE,this.TEXT_NODE=J.TEXT_NODE}get firstChild(){return this.childNodes[0]||null}get lastChild(){return this.childNodes[this.childNodes.length-1]||null}get nextSibling(){const t=this.parentNode;if(!t)return null;const r=t.childNodes,n=r.indexOf(this);return r[n+1]||null}contains(t){if(t===this)return!0;for(const r of this.childNodes)if(r.contains(t))return!0;return!1}appendChild(t){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(t,r){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(t){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}function gi(e){return class Pn extends e{constructor(){super(...arguments),this.nodeType=J.DOCUMENT_NODE,this.nodeName="#document",this.compatMode="CSS1Compat",this.RRNodeType=$.Document,this.textContent=null}get documentElement(){return this.childNodes.find(r=>r.RRNodeType===$.Element&&r.tagName==="HTML")||null}get body(){var r;return((r=this.documentElement)===null||r===void 0?void 0:r.childNodes.find(n=>n.RRNodeType===$.Element&&n.tagName==="BODY"))||null}get head(){var r;return((r=this.documentElement)===null||r===void 0?void 0:r.childNodes.find(n=>n.RRNodeType===$.Element&&n.tagName==="HEAD"))||null}get implementation(){return this}get firstElementChild(){return this.documentElement}appendChild(r){const n=r.RRNodeType;if((n===$.Element||n===$.DocumentType)&&this.childNodes.some(o=>o.RRNodeType===n))throw new Error(`RRDomException: Failed to execute 'appendChild' on 'RRNode': Only one ${n===$.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);return r.parentElement=null,r.parentNode=this,this.childNodes.push(r),r}insertBefore(r,n){const o=r.RRNodeType;if((o===$.Element||o===$.DocumentType)&&this.childNodes.some(l=>l.RRNodeType===o))throw new Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': Only one ${o===$.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);if(n===null)return this.appendChild(r);const i=this.childNodes.indexOf(n);if(i==-1)throw new Error("Failed to execute 'insertBefore' on 'RRNode': The RRNode before which the new node is to be inserted is not a child of this RRNode.");return this.childNodes.splice(i,0,r),r.parentElement=null,r.parentNode=this,r}removeChild(r){const n=this.childNodes.indexOf(r);if(n===-1)throw new Error("Failed to execute 'removeChild' on 'RRDocument': The RRNode to be removed is not a child of this RRNode.");return this.childNodes.splice(n,1),r.parentElement=null,r.parentNode=null,r}open(){this.childNodes=[]}close(){}write(r){let n;if(r==='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'?n="-//W3C//DTD XHTML 1.0 Transitional//EN":r==='<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">'&&(n="-//W3C//DTD HTML 4.0 Transitional//EN"),n){const o=this.createDocumentType("html",n,"");this.open(),this.appendChild(o)}}createDocument(r,n,o){return new Pn}createDocumentType(r,n,o){const i=new(Gr(le))(r,n,o);return i.ownerDocument=this,i}createElement(r){const n=new(Br(le))(r);return n.ownerDocument=this,n}createElementNS(r,n){return this.createElement(n)}createTextNode(r){const n=new(zr(le))(r);return n.ownerDocument=this,n}createComment(r){const n=new(Hr(le))(r);return n.ownerDocument=this,n}createCDATASection(r){const n=new(Yr(le))(r);return n.ownerDocument=this,n}toString(){return"RRDocument"}}}function Gr(e){return class extends e{constructor(t,r,n){super(),this.nodeType=J.DOCUMENT_TYPE_NODE,this.RRNodeType=$.DocumentType,this.textContent=null,this.name=t,this.publicId=r,this.systemId=n,this.nodeName=t}toString(){return"RRDocumentType"}}}function Br(e){return class extends e{constructor(t){super(),this.nodeType=J.ELEMENT_NODE,this.RRNodeType=$.Element,this.attributes={},this.shadowRoot=null,this.tagName=t.toUpperCase(),this.nodeName=t.toUpperCase()}get textContent(){let t="";return this.childNodes.forEach(r=>t+=r.textContent),t}set textContent(t){this.childNodes=[this.ownerDocument.createTextNode(t)]}get classList(){return new bi(this.attributes.class,t=>{this.attributes.class=t})}get id(){return this.attributes.id||""}get className(){return this.attributes.class||""}get style(){const t=this.attributes.style?hi(this.attributes.style):{},r=/\B([A-Z])/g;return t.setProperty=(n,o,i)=>{if(r.test(n))return;const l=Ot(n);o?t[l]=o:delete t[l],i==="important"&&(t[l]+=" !important"),this.attributes.style=Ur(t)},t.removeProperty=n=>{if(r.test(n))return"";const o=Ot(n),i=t[o]||"";return delete t[o],this.attributes.style=Ur(t),i},t}getAttribute(t){return this.attributes[t]||null}setAttribute(t,r){this.attributes[t]=r}setAttributeNS(t,r,n){this.setAttribute(r,n)}removeAttribute(t){delete this.attributes[t]}appendChild(t){return this.childNodes.push(t),t.parentNode=this,t.parentElement=this,t}insertBefore(t,r){if(r===null)return this.appendChild(t);const n=this.childNodes.indexOf(r);if(n==-1)throw new Error("Failed to execute 'insertBefore' on 'RRNode': The RRNode before which the new node is to be inserted is not a child of this RRNode.");return this.childNodes.splice(n,0,t),t.parentElement=this,t.parentNode=this,t}removeChild(t){const r=this.childNodes.indexOf(t);if(r===-1)throw new Error("Failed to execute 'removeChild' on 'RRElement': The RRNode to be removed is not a child of this RRNode.");return this.childNodes.splice(r,1),t.parentElement=null,t.parentNode=null,t}attachShadow(t){const r=this.ownerDocument.createElement("SHADOWROOT");return this.shadowRoot=r,r}dispatchEvent(t){return!0}toString(){let t="";for(const r in this.attributes)t+=`${r}="${this.attributes[r]}" `;return`${this.tagName} ${t}`}}}function yi(e){return class extends e{attachShadow(t){throw new Error("RRDomException: Failed to execute 'attachShadow' on 'RRElement': This RRElement does not support attachShadow")}play(){this.paused=!1}pause(){this.paused=!0}}}function zr(e){return class extends e{constructor(t){super(),this.nodeType=J.TEXT_NODE,this.nodeName="#text",this.RRNodeType=$.Text,this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRText text=${JSON.stringify(this.data)}`}}}function Hr(e){return class extends e{constructor(t){super(),this.nodeType=J.COMMENT_NODE,this.nodeName="#comment",this.RRNodeType=$.Comment,this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRComment text=${JSON.stringify(this.data)}`}}}function Yr(e){return class extends e{constructor(t){super(),this.nodeName="#cdata-section",this.nodeType=J.CDATA_SECTION_NODE,this.RRNodeType=$.CDATA,this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRCDATASection data=${JSON.stringify(this.data)}`}}}class bi{constructor(t,r){if(this.classes=[],this.add=(...n)=>{for(const o of n){const i=String(o);this.classes.indexOf(i)>=0||this.classes.push(i)}this.onChange&&this.onChange(this.classes.join(" "))},this.remove=(...n)=>{this.classes=this.classes.filter(o=>n.indexOf(o)===-1),this.onChange&&this.onChange(this.classes.join(" "))},t){const n=t.trim().split(/\s+/);this.classes.push(...n)}this.onChange=r}}var J;(function(e){e[e.PLACEHOLDER=0]="PLACEHOLDER",e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",e[e.ENTITY_NODE=6]="ENTITY_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"})(J||(J={}));const Dt={svg:"http://www.w3.org/2000/svg","xlink:href":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/xmlns/"};function me(e,t,r,n){const o=e.childNodes,i=t.childNodes;n=n||t.mirror||t.ownerDocument.mirror,(o.length>0||i.length>0)&&Xr(Array.from(o),i,e,r,n);let l=null,c=null;switch(t.RRNodeType){case $.Document:{c=t.scrollData;break}case $.Element:{const a=e,s=t;switch(wi(a,s,n),c=s.scrollData,l=s.inputData,s.tagName){case"AUDIO":case"VIDEO":{const u=e,d=s;d.paused!==void 0&&(d.paused?u.pause():u.play()),d.muted!==void 0&&(u.muted=d.muted),d.volume!==void 0&&(u.volume=d.volume),d.currentTime!==void 0&&(u.currentTime=d.currentTime);break}case"CANVAS":t.canvasMutations.forEach(u=>r.applyCanvas(u.event,u.mutation,e));break;case"STYLE":Si(a,t.rules);break}if(s.shadowRoot){a.shadowRoot||a.attachShadow({mode:"open"});const u=a.shadowRoot.childNodes,d=s.shadowRoot.childNodes;(u.length>0||d.length>0)&&Xr(Array.from(u),d,a.shadowRoot,r,n)}break}case $.Text:case $.Comment:case $.CDATA:e.textContent!==t.data&&(e.textContent=t.data);break}if(c&&r.applyScroll(c,!0),l&&r.applyInput(l),t.nodeName==="IFRAME"){const a=e.contentDocument,s=t;if(a){const u=n.getMeta(s.contentDocument);u&&r.mirror.add(a,Object.assign({},u)),me(a,s.contentDocument,r,n)}}}function wi(e,t,r){const n=e.attributes,o=t.attributes;for(const i in o){const l=o[i],c=r.getMeta(t);if(c&&"isSVG"in c&&c.isSVG&&Dt[i])e.setAttributeNS(Dt[i],i,l);else if(t.tagName==="CANVAS"&&i==="rr_dataURL"){const a=document.createElement("img");a.src=l,a.onload=()=>{const s=e.getContext("2d");s&&s.drawImage(a,0,0,a.width,a.height)}}else e.setAttribute(i,l)}for(const{name:i}of Array.from(n))i in o||e.removeAttribute(i);t.scrollLeft&&(e.scrollLeft=t.scrollLeft),t.scrollTop&&(e.scrollTop=t.scrollTop)}function Xr(e,t,r,n,o){var i,l;let c=0,a=e.length-1,s=0,u=t.length-1,d=e[c],m=e[a],h=t[s],v=t[u],p,w;for(;c<=a&&s<=u;)if(d===void 0)d=e[++c];else if(m===void 0)m=e[--a];else if(n.mirror.getId(d)===o.getId(h))me(d,h,n,o),d=e[++c],h=t[++s];else if(n.mirror.getId(m)===o.getId(v))me(m,v,n,o),m=e[--a],v=t[--u];else if(n.mirror.getId(d)===o.getId(v))r.insertBefore(d,m.nextSibling),me(d,v,n,o),d=e[++c],v=t[--u];else if(n.mirror.getId(m)===o.getId(h))r.insertBefore(m,d),me(m,h,n,o),m=e[--a],h=t[++s];else{if(!p){p={};for(let f=c;f<=a;f++){const S=e[f];S&&n.mirror.hasNode(S)&&(p[n.mirror.getId(S)]=f)}}if(w=p[o.getId(h)],w){const f=e[w];r.insertBefore(f,d),me(f,h,n,o),e[w]=void 0}else{const f=Rt(h,n.mirror,o);((i=n.mirror.getMeta(r))===null||i===void 0?void 0:i.type)===$.Document&&((l=n.mirror.getMeta(f))===null||l===void 0?void 0:l.type)===$.Element&&r.documentElement&&(r.removeChild(r.documentElement),e[c]=void 0,d=void 0),r.insertBefore(f,d||null),me(f,h,n,o)}h=t[++s]}if(c>a){const f=t[u+1];let S=null;for(f&&r.childNodes.forEach(T=>{n.mirror.getId(T)===o.getId(f)&&(S=T)});s<=u;++s){const T=Rt(t[s],n.mirror,o);r.insertBefore(T,S),me(T,t[s],n,o)}}else if(s>u)for(;c<=a;c++){const f=e[c];f&&(r.removeChild(f),n.mirror.removeNodeFromMap(f))}}function Rt(e,t,r){let n=t.getNode(r.getId(e));const o=r.getMeta(e);if(n!==null)return n;switch(e.RRNodeType){case $.Document:n=new Document;break;case $.DocumentType:n=document.implementation.createDocumentType(e.name,e.publicId,e.systemId);break;case $.Element:{e.tagName.toLowerCase(),o&&"isSVG"in o&&o?.isSVG?n=document.createElementNS(Dt.svg,e.tagName.toLowerCase()):n=document.createElement(e.tagName);break}case $.Text:n=document.createTextNode(e.data);break;case $.Comment:n=document.createComment(e.data);break;case $.CDATA:n=document.createCDATASection(e.data);break}return o&&t.add(n,Object.assign({},o)),n}function He(e,t){const r=e[t[0]];return t.length===1?r:He(r.cssRules[t[1]].cssRules,t.slice(2))}var ce;(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"})(ce||(ce={}));function Zr(e){const t=[...e],r=t.pop();return{positions:t,index:r}}function Si(e,t){const r=e.sheet;t.forEach(n=>{if(n.type===ce.Insert)try{if(Array.isArray(n.index)){const{positions:o,index:i}=Zr(n.index);He(r.cssRules,o).insertRule(n.cssText,i)}else r.insertRule(n.cssText,n.index)}catch{}else if(n.type===ce.Remove)try{if(Array.isArray(n.index)){const{positions:o,index:i}=Zr(n.index);He(r.cssRules,o).deleteRule(i||0)}else r.deleteRule(n.index)}catch{}else n.type===ce.SetProperty?He(r.cssRules,n.index).style.setProperty(n.property,n.value,n.priority):n.type===ce.RemoveProperty&&He(r.cssRules,n.index).style.removeProperty(n.property)})}class Fe extends gi(le){constructor(t){super(),this._unserializedId=-1,this.mirror=Ri(),this.scrollData=null,t&&(this.mirror=t)}get unserializedId(){return this._unserializedId--}createDocument(t,r,n){return new Fe}createDocumentType(t,r,n){const o=new Ni(t,r,n);return o.ownerDocument=this,o}createElement(t){const r=t.toUpperCase();let n;switch(r){case"AUDIO":case"VIDEO":n=new Ti(r);break;case"IFRAME":n=new Mi(r,this.mirror);break;case"CANVAS":n=new Ei(r);break;case"STYLE":n=new Ci(r);break;default:n=new Ye(r);break}return n.ownerDocument=this,n}createComment(t){const r=new xi(t);return r.ownerDocument=this,r}createCDATASection(t){const r=new ki(t);return r.ownerDocument=this,r}createTextNode(t){const r=new Ii(t);return r.ownerDocument=this,r}destroyTree(){this.childNodes=[],this.mirror.reset()}open(){super.open(),this._unserializedId=-1}}const Ni=Gr(le);class Ye extends Br(le){constructor(){super(...arguments),this.inputData=null,this.scrollData=null}}class Ti extends yi(Ye){}class Ei extends Ye{constructor(){super(...arguments),this.canvasMutations=[]}getContext(){return null}}class Ci extends Ye{constructor(){super(...arguments),this.rules=[]}}class Mi extends Ye{constructor(t,r){super(t),this.contentDocument=new Fe,this.contentDocument.mirror=r}}const Ii=zr(le),xi=Hr(le),ki=Yr(le);function Oi(e){return e instanceof HTMLFormElement?"FORM":e.tagName.toUpperCase()}function Kr(e,t,r,n){let o;switch(e.nodeType){case J.DOCUMENT_NODE:n&&n.nodeName==="IFRAME"?o=n.contentDocument:(o=t,o.compatMode=e.compatMode);break;case J.DOCUMENT_TYPE_NODE:const l=e;o=t.createDocumentType(l.name,l.publicId,l.systemId);break;case J.ELEMENT_NODE:const c=e,a=Oi(c);o=t.createElement(a);const s=o;for(const{name:u,value:d}of Array.from(c.attributes))s.attributes[u]=d;c.scrollLeft&&(s.scrollLeft=c.scrollLeft),c.scrollTop&&(s.scrollTop=c.scrollTop);break;case J.TEXT_NODE:o=t.createTextNode(e.textContent||"");break;case J.CDATA_SECTION_NODE:o=t.createCDATASection(e.data);break;case J.COMMENT_NODE:o=t.createComment(e.textContent||"");break;case J.DOCUMENT_FRAGMENT_NODE:o=n.attachShadow({mode:"open"});break;default:return null}let i=r.getMeta(e);return t instanceof Fe&&(i||(i=qr(o,t.unserializedId),r.add(e,i)),t.mirror.add(o,Object.assign({},i))),o}function Di(e,t=di(),r=new Fe){function n(o,i){const l=Kr(o,r,t,i);l!==null&&(i?.nodeName!=="IFRAME"&&o.nodeType!==J.DOCUMENT_FRAGMENT_NODE&&(i?.appendChild(l),l.parentNode=i,l.parentElement=i),o.nodeName==="IFRAME"?n(o.contentDocument,l):(o.nodeType===J.DOCUMENT_NODE||o.nodeType===J.ELEMENT_NODE||o.nodeType===J.DOCUMENT_FRAGMENT_NODE)&&(o.nodeType===J.ELEMENT_NODE&&o.shadowRoot&&n(o.shadowRoot,l),o.childNodes.forEach(c=>n(c,l))))}return n(e,null),r}function Ri(){return new Ai}class Ai{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(t){var r;if(!t)return-1;const n=(r=this.getMeta(t))===null||r===void 0?void 0:r.id;return n??-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(n=>this.removeNodeFromMap(n))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){const n=r.id;this.idNodeMap.set(n,t),this.nodeMetaMap.set(t,r)}replace(t,r){this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function qr(e,t){switch(e.RRNodeType){case $.Document:return{id:t,type:e.RRNodeType,childNodes:[]};case $.DocumentType:const r=e;return{id:t,type:e.RRNodeType,name:r.name,publicId:r.publicId,systemId:r.systemId};case $.Element:return{id:t,type:e.RRNodeType,tagName:e.tagName.toLowerCase(),attributes:{},childNodes:[]};case $.Text:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case $.Comment:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case $.CDATA:return{id:t,type:e.RRNodeType,textContent:""}}}function Jr(e){return e=e||Object.create(null),{on:function(r,n){(e[r]||(e[r]=[])).push(n)},off:function(r,n){e[r]&&e[r].splice(e[r].indexOf(n)>>>0,1)},emit:function(r,n){(e[r]||[]).slice().map(function(o){o(n)}),(e["*"]||[]).slice().map(function(o){o(r,n)})}}}var Li=Object.freeze({__proto__:null,default:Jr});function Fi(e=window,t=document){if("scrollBehavior"in t.documentElement.style&&e.__forceSmoothScrollPolyfill__!==!0)return;const r=e.HTMLElement||e.Element,n=468,o={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:r.prototype.scroll||a,scrollIntoView:r.prototype.scrollIntoView},i=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now;function l(f){const S=["MSIE ","Trident/","Edge/"];return new RegExp(S.join("|")).test(f)}const c=l(e.navigator.userAgent)?1:0;function a(f,S){this.scrollLeft=f,this.scrollTop=S}function s(f){return .5*(1-Math.cos(Math.PI*f))}function u(f){if(f===null||typeof f!="object"||f.behavior===void 0||f.behavior==="auto"||f.behavior==="instant")return!0;if(typeof f=="object"&&f.behavior==="smooth")return!1;throw new TypeError("behavior member of ScrollOptions "+f.behavior+" is not a valid value for enumeration ScrollBehavior.")}function d(f,S){if(S==="Y")return f.clientHeight+c<f.scrollHeight;if(S==="X")return f.clientWidth+c<f.scrollWidth}function m(f,S){const T=e.getComputedStyle(f,null)["overflow"+S];return T==="auto"||T==="scroll"}function h(f){const S=d(f,"Y")&&m(f,"Y"),T=d(f,"X")&&m(f,"X");return S||T}function v(f){for(;f!==t.body&&h(f)===!1;)f=f.parentNode||f.host;return f}function p(f){const S=i();let T,M,R,I=(S-f.startTime)/n;I=I>1?1:I,T=s(I),M=f.startX+(f.x-f.startX)*T,R=f.startY+(f.y-f.startY)*T,f.method.call(f.scrollable,M,R),(M!==f.x||R!==f.y)&&e.requestAnimationFrame(p.bind(e,f))}function w(f,S,T){let M,R,I,C;const y=i();f===t.body?(M=e,R=e.scrollX||e.pageXOffset,I=e.scrollY||e.pageYOffset,C=o.scroll):(M=f,R=f.scrollLeft,I=f.scrollTop,C=a),p({scrollable:M,method:C,startTime:y,startX:R,startY:I,x:S,y:T})}e.scroll=e.scrollTo=function(){if(arguments[0]!==void 0){if(u(arguments[0])===!0){o.scroll.call(e,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:e.scrollX||e.pageXOffset,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:e.scrollY||e.pageYOffset);return}w.call(e,t.body,arguments[0].left!==void 0?~~arguments[0].left:e.scrollX||e.pageXOffset,arguments[0].top!==void 0?~~arguments[0].top:e.scrollY||e.pageYOffset)}},e.scrollBy=function(){if(arguments[0]!==void 0){if(u(arguments[0])){o.scrollBy.call(e,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:0,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:0);return}w.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset))}},r.prototype.scroll=r.prototype.scrollTo=function(){if(arguments[0]===void 0)return;if(u(arguments[0])===!0){if(typeof arguments[0]=="number"&&arguments[1]===void 0)throw new SyntaxError("Value could not be converted");o.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left:typeof arguments[0]!="object"?~~arguments[0]:this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top:arguments[1]!==void 0?~~arguments[1]:this.scrollTop);return}const f=arguments[0].left,S=arguments[0].top;w.call(this,this,typeof f>"u"?this.scrollLeft:~~f,typeof S>"u"?this.scrollTop:~~S)},r.prototype.scrollBy=function(){if(arguments[0]!==void 0){if(u(arguments[0])===!0){o.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop);return}this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})}},r.prototype.scrollIntoView=function(){if(u(arguments[0])===!0){o.scrollIntoView.call(this,arguments[0]===void 0?!0:arguments[0]);return}const f=v(this),S=f.getBoundingClientRect(),T=this.getBoundingClientRect();f!==t.body?(w.call(this,f,f.scrollLeft+T.left-S.left,f.scrollTop+T.top-S.top),e.getComputedStyle(f).position!=="fixed"&&e.scrollBy({left:S.left,top:S.top,behavior:"smooth"})):e.scrollBy({left:T.left,top:T.top,behavior:"smooth"})}}class _i{constructor(t=[],r){this.timeOffset=0,this.raf=null,this.actions=t,this.speed=r}addAction(t){const r=this.findActionIndex(t);this.actions.splice(r,0,t)}addActions(t){this.actions=this.actions.concat(t)}replaceActions(t){this.actions.length=0,this.actions.splice(0,0,...t)}start(){this.timeOffset=0;let t=performance.now();const{actions:r}=this,n=this;function o(){const i=performance.now();for(n.timeOffset+=(i-t)*n.speed,t=i;r.length;){const l=r[0];if(n.timeOffset>=l.delay)r.shift(),l.doAction();else break}(r.length>0||n.liveMode)&&(n.raf=requestAnimationFrame(o))}this.raf=requestAnimationFrame(o)}clear(){this.raf&&(cancelAnimationFrame(this.raf),this.raf=null),this.actions.length=0}setSpeed(t){this.speed=t}toggleLiveMode(t){this.liveMode=t}isActive(){return this.raf!==null}findActionIndex(t){let r=0,n=this.actions.length-1;for(;r<=n;){const o=Math.floor((r+n)/2);if(this.actions[o].delay<t.delay)r=o+1;else if(this.actions[o].delay>t.delay)n=o-1;else return o+1}return r}}function At(e,t){if(e.type===O.IncrementalSnapshot&&e.data.source===F.MouseMove){const 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}/*! *****************************************************************************
|