@highlight-run/rrweb 1.2.1 → 2.0.4
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 +454 -0
- package/dist/plugins/console-record.min.js +12 -15
- package/dist/plugins/console-record.min.js.map +1 -1
- package/dist/plugins/console-replay.js +164 -0
- package/dist/plugins/console-replay.min.js +5 -0
- package/dist/plugins/console-replay.min.js.map +1 -0
- package/dist/plugins/sequential-id-record.js +30 -0
- package/dist/plugins/sequential-id-record.min.js +2 -0
- package/dist/plugins/sequential-id-record.min.js.map +1 -0
- package/dist/plugins/sequential-id-replay.js +33 -0
- package/dist/plugins/sequential-id-replay.min.js +2 -0
- package/dist/plugins/sequential-id-replay.min.js.map +1 -0
- package/dist/record/rrweb-record-pack.js +664 -0
- package/dist/record/rrweb-record-pack.min.js +4 -0
- package/dist/record/rrweb-record-pack.min.js.map +1 -0
- package/dist/record/rrweb-record.js +3202 -0
- package/dist/record/rrweb-record.min.js +5 -0
- package/dist/record/rrweb-record.min.js.map +1 -0
- package/dist/replay/rrweb-replay-unpack.js +4926 -0
- package/dist/replay/rrweb-replay-unpack.min.js +18 -0
- package/dist/replay/rrweb-replay-unpack.min.js.map +1 -0
- package/dist/replay/rrweb-replay.js +4518 -0
- package/dist/replay/rrweb-replay.min.js +18 -0
- package/dist/replay/rrweb-replay.min.js.map +1 -0
- package/dist/rrweb-all.js +8889 -0
- package/dist/rrweb-all.min.js +29 -0
- package/dist/rrweb-all.min.js.map +1 -0
- package/dist/rrweb.js +7558 -0
- package/dist/rrweb.min.js +6 -17
- package/dist/rrweb.min.js.map +1 -1
- package/es/rrweb/_virtual/_rollup-plugin-web-worker-loader__helper__auto__createBase64WorkerFactory.js +12 -0
- package/es/rrweb/_virtual/_rollup-plugin-web-worker-loader__helper__auto__isNodeJS.js +7 -0
- package/es/rrweb/_virtual/_rollup-plugin-web-worker-loader__helper__browser__createBase64WorkerFactory.js +31 -0
- package/es/rrweb/_virtual/_rollup-plugin-web-worker-loader__helper__node__WorkerClass.js +11 -0
- package/es/rrweb/_virtual/_rollup-plugin-web-worker-loader__helper__node__createBase64WorkerFactory.js +18 -0
- package/es/rrweb/_virtual/image-bitmap-data-url-worker.js +6 -0
- package/es/rrweb/ext/@xstate/fsm/es/index.js +17 -0
- package/es/rrweb/ext/base64-arraybuffer/dist/base64-arraybuffer.es5.js +49 -0
- package/es/rrweb/ext/fflate/esm/browser.js +777 -0
- package/es/rrweb/ext/mitt/dist/mitt.es.js +63 -0
- package/es/rrweb/ext/tslib/tslib.es6.js +38 -0
- package/es/rrweb/packages/rrdom/es/virtual-dom.js +1099 -0
- package/es/rrweb/packages/rrweb/src/entries/all.js +13 -0
- package/es/rrweb/packages/rrweb/src/index.js +14 -0
- package/es/rrweb/packages/rrweb/src/packer/base.js +3 -0
- package/es/rrweb/packages/rrweb/src/packer/pack.js +9 -0
- package/es/rrweb/packages/rrweb/src/packer/unpack.js +29 -0
- package/es/rrweb/packages/rrweb/src/plugins/console/record/error-stack-parser.js +178 -0
- package/es/rrweb/packages/rrweb/src/plugins/console/record/index.js +115 -0
- package/es/rrweb/packages/rrweb/src/plugins/console/record/stringify.js +128 -0
- package/es/rrweb/packages/rrweb/src/plugins/console/replay/index.js +94 -0
- package/es/rrweb/packages/rrweb/src/plugins/sequential-id/record/index.js +22 -0
- package/es/rrweb/packages/rrweb/src/plugins/sequential-id/replay/index.js +28 -0
- package/es/rrweb/packages/rrweb/src/record/iframe-manager.js +31 -0
- package/es/rrweb/packages/rrweb/src/record/index.js +356 -0
- package/es/rrweb/packages/rrweb/src/record/mutation.js +491 -0
- package/es/rrweb/packages/rrweb/src/record/observer.js +590 -0
- package/es/rrweb/packages/rrweb/src/record/observers/canvas/2d.js +49 -0
- package/es/rrweb/packages/rrweb/src/record/observers/canvas/canvas-manager.js +172 -0
- package/es/rrweb/packages/rrweb/src/record/observers/canvas/canvas.js +25 -0
- package/es/rrweb/packages/rrweb/src/record/observers/canvas/serialize-args.js +123 -0
- package/es/rrweb/packages/rrweb/src/record/observers/canvas/webgl.js +59 -0
- package/es/rrweb/packages/rrweb/src/record/shadow-dom-manager.js +43 -0
- package/es/rrweb/packages/rrweb/src/record/stylesheet-manager.js +31 -0
- package/es/rrweb/packages/rrweb/src/replay/canvas/2d.js +29 -0
- package/es/rrweb/packages/rrweb/src/replay/canvas/deserialize-args.js +67 -0
- package/es/rrweb/packages/rrweb/src/replay/canvas/index.js +43 -0
- package/es/rrweb/packages/rrweb/src/replay/canvas/webgl.js +62 -0
- package/es/rrweb/packages/rrweb/src/replay/index.js +1555 -0
- package/es/rrweb/packages/rrweb/src/replay/machine.js +281 -0
- package/es/rrweb/packages/rrweb/src/replay/smoothscroll.js +219 -0
- package/es/rrweb/packages/rrweb/src/replay/styles/inject-style.js +8 -0
- package/es/rrweb/packages/rrweb/src/replay/timer.js +92 -0
- package/es/rrweb/packages/rrweb/src/types.js +75 -0
- package/es/rrweb/packages/rrweb/src/utils.js +315 -0
- package/es/rrweb/packages/rrweb-snapshot/es/rrweb-snapshot.js +1821 -0
- package/lib/plugins/console-record.js +492 -0
- package/lib/plugins/console-replay.js +218 -0
- package/lib/plugins/sequential-id-record.js +27 -0
- package/lib/plugins/sequential-id-replay.js +32 -0
- package/lib/record/rrweb-record-pack.js +787 -0
- package/lib/record/rrweb-record.js +3363 -0
- package/lib/replay/rrweb-replay-unpack.js +5075 -0
- package/lib/replay/rrweb-replay.js +4665 -0
- package/lib/rrweb-all.js +9181 -0
- package/lib/rrweb.js +7814 -0
- package/package.json +41 -42
- package/typings/entries/all.d.ts +6 -0
- package/{dist → typings}/entries/record-pack.d.ts +0 -0
- package/{dist → typings}/entries/replay-unpack.d.ts +0 -0
- package/{dist → typings}/index.d.ts +1 -2
- package/{dist → typings}/packer/base.d.ts +1 -1
- package/{dist → typings}/packer/index.d.ts +0 -0
- package/{dist → typings}/packer/pack.d.ts +0 -0
- package/{dist → typings}/packer/unpack.d.ts +0 -0
- package/{dist → typings}/plugins/console/record/error-stack-parser.d.ts +0 -0
- package/{dist → typings}/plugins/console/record/index.d.ts +4 -3
- package/{dist → typings}/plugins/console/record/stringify.d.ts +1 -1
- package/{dist → typings}/plugins/console/replay/index.d.ts +2 -2
- package/{dist → typings}/plugins/sequential-id/record/index.d.ts +1 -1
- package/{dist → typings}/plugins/sequential-id/replay/index.d.ts +1 -1
- package/{dist → typings}/record/iframe-manager.d.ts +3 -3
- package/{dist/plugins → typings}/record/index.d.ts +9 -9
- package/{dist → typings}/record/mutation.d.ts +6 -8
- package/typings/record/observer.d.ts +7 -0
- package/{dist/plugins → typings}/record/observers/canvas/2d.d.ts +3 -2
- package/{dist → typings}/record/observers/canvas/canvas-manager.d.ts +5 -2
- package/{dist/plugins → typings}/record/observers/canvas/canvas.d.ts +2 -2
- package/typings/record/observers/canvas/serialize-args.d.ts +6 -0
- package/{dist/plugins → typings}/record/observers/canvas/webgl.d.ts +3 -2
- package/typings/record/observers/canvas/webgl2.d.ts +2 -0
- package/typings/record/shadow-dom-manager.d.ts +22 -0
- package/typings/record/stylesheet-manager.d.ts +12 -0
- package/typings/record/workers/image-bitmap-data-url-worker.d.ts +5 -0
- package/{dist → typings}/replay/canvas/2d.d.ts +3 -3
- package/typings/replay/canvas/deserialize-args.d.ts +7 -0
- package/{dist/plugins → typings}/replay/canvas/index.d.ts +10 -9
- package/typings/replay/canvas/webgl.d.ts +9 -0
- package/{dist → typings}/replay/index.d.ts +7 -9
- package/{dist → typings}/replay/machine.d.ts +0 -0
- package/{dist → typings}/replay/smoothscroll.d.ts +0 -0
- package/{dist → typings}/replay/styles/inject-style.d.ts +0 -0
- package/{dist → typings}/replay/timer.d.ts +0 -0
- package/{dist → typings}/rrdom/index.d.ts +0 -0
- package/{dist → typings}/rrdom/tree-node.d.ts +0 -0
- package/{dist/plugins → typings}/types.d.ts +536 -509
- package/typings/utils.d.ts +43 -0
- package/CHANGELOG.md +0 -26
- package/README.md +0 -124
- package/README.zh_CN.md +0 -122
- package/dist/entries/all.d.ts +0 -4
- package/dist/index.css +0 -82
- package/dist/index.css.map +0 -1
- package/dist/index.js +0 -3
- package/dist/index.js.LICENSE.txt +0 -14
- package/dist/index.js.map +0 -1
- package/dist/plugins/entries/all.d.ts +0 -4
- package/dist/plugins/entries/record-pack.d.ts +0 -2
- package/dist/plugins/entries/replay-unpack.d.ts +0 -2
- package/dist/plugins/index.d.ts +0 -9
- package/dist/plugins/packer/base.d.ts +0 -7
- package/dist/plugins/packer/index.d.ts +0 -2
- package/dist/plugins/packer/pack.d.ts +0 -2
- package/dist/plugins/packer/unpack.d.ts +0 -2
- package/dist/plugins/plugins/console/record/error-stack-parser.d.ts +0 -37
- package/dist/plugins/plugins/console/record/index.d.ts +0 -41
- package/dist/plugins/plugins/console/record/stringify.d.ts +0 -2
- package/dist/plugins/plugins/console/replay/index.d.ts +0 -9
- package/dist/plugins/plugins/sequential-id/record/index.d.ts +0 -6
- package/dist/plugins/plugins/sequential-id/replay/index.d.ts +0 -7
- package/dist/plugins/record/iframe-manager.d.ts +0 -13
- package/dist/plugins/record/mutation.d.ts +0 -45
- package/dist/plugins/record/observer.d.ts +0 -11
- package/dist/plugins/record/observers/canvas/canvas-manager.d.ts +0 -32
- package/dist/plugins/record/observers/canvas/serialize-args.d.ts +0 -6
- package/dist/plugins/record/shadow-dom-manager.d.ts +0 -34
- package/dist/plugins/replay/canvas/2d.d.ts +0 -9
- package/dist/plugins/replay/canvas/webgl.d.ts +0 -11
- package/dist/plugins/replay/index.d.ts +0 -82
- package/dist/plugins/replay/machine.d.ts +0 -85
- package/dist/plugins/replay/smoothscroll.d.ts +0 -1
- package/dist/plugins/replay/styles/inject-style.d.ts +0 -2
- package/dist/plugins/replay/timer.d.ts +0 -19
- package/dist/plugins/replay/virtual-styles.d.ts +0 -43
- package/dist/plugins/rrdom/index.d.ts +0 -1
- package/dist/plugins/rrdom/tree-node.d.ts +0 -20
- package/dist/plugins/snapshot/css.d.ts +0 -92
- package/dist/plugins/snapshot/index.d.ts +0 -5
- package/dist/plugins/snapshot/rebuild.d.ts +0 -19
- package/dist/plugins/snapshot/snapshot.d.ts +0 -49
- package/dist/plugins/snapshot/types.d.ts +0 -99
- package/dist/plugins/snapshot/utils.d.ts +0 -11
- package/dist/plugins/utils.d.ts +0 -71
- package/dist/record/index.d.ts +0 -9
- package/dist/record/observer.d.ts +0 -11
- package/dist/record/observers/canvas/2d.d.ts +0 -2
- package/dist/record/observers/canvas/canvas.d.ts +0 -2
- package/dist/record/observers/canvas/serialize-args.d.ts +0 -6
- package/dist/record/observers/canvas/webgl.d.ts +0 -2
- package/dist/record/shadow-dom-manager.d.ts +0 -34
- package/dist/replay/canvas/index.d.ts +0 -9
- package/dist/replay/canvas/webgl.d.ts +0 -11
- package/dist/replay/virtual-styles.d.ts +0 -43
- package/dist/snapshot/css.d.ts +0 -92
- package/dist/snapshot/index.d.ts +0 -5
- package/dist/snapshot/rebuild.d.ts +0 -19
- package/dist/snapshot/snapshot.d.ts +0 -49
- package/dist/snapshot/types.d.ts +0 -99
- package/dist/snapshot/utils.d.ts +0 -11
- package/dist/types.d.ts +0 -509
- package/dist/utils.d.ts +0 -71
package/dist/index.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see index.js.LICENSE.txt */
|
|
2
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.highlightLib=t():e.highlightLib=t()}(self,(function(){return(()=>{"use strict";var e={537:(e,t,r)=>{function n(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}var o;r.r(t),r.d(t,{InterpreterStatus:()=>o,assign:()=>s,createMachine:()=>f,interpret:()=>v}),function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(o||(o={}));var i={type:"xstate.init"};function a(e){return void 0===e?[]:[].concat(e)}function s(e){return{type:"xstate.assign",assignment:e}}function l(e,t){return"string"==typeof(e="string"==typeof e&&t&&t[e]?t[e]:e)?{type:e}:"function"==typeof e?{type:e.name,exec:e}:e}function u(e){return function(t){return e===t}}function c(e){return"string"==typeof e?{type:e}:e}function d(e,t){return{value:e,context:t,actions:[],changed:!1,matches:u(e)}}function p(e,t,r){var n=t,o=!1;return[e.filter((function(e){if("xstate.assign"===e.type){o=!0;var t=Object.assign({},n);return"function"==typeof e.assignment?t=e.assignment(n,r):Object.keys(e.assignment).forEach((function(o){t[o]="function"==typeof e.assignment[o]?e.assignment[o](n,r):e.assignment[o]})),n=t,!1}return!0})),n,o]}function f(e,t){void 0===t&&(t={});var r=n(p(a(e.states[e.initial].entry).map((function(e){return l(e,t.actions)})),e.context,i),2),o=r[0],s=r[1],f={config:e,_options:t,initialState:{value:e.initial,actions:o,context:s,matches:u(e.initial)},transition:function(t,r){var o,i,s="string"==typeof t?{value:t,context:e.context}:t,h=s.value,v=s.context,m=c(r),y=e.states[h];if(y.on){var g=a(y.on[m.type]);try{for(var b=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(g),S=b.next();!S.done;S=b.next()){var T=S.value;if(void 0===T)return d(h,v);var x="string"==typeof T?{target:T}:T,w=x.target,I=x.actions,E=void 0===I?[]:I,C=x.cond,M=void 0===w;if((void 0===C?function(){return!0}:C)(v,m)){var k=e.states[null!=w?w:h],N=n(p((M?a(E):[].concat(y.exit,E,k.entry).filter((function(e){return e}))).map((function(e){return l(e,f._options.actions)})),v,m),3),_=N[0],O=N[1],R=N[2],D=null!=w?w:h;return{value:D,context:O,actions:_,changed:w!==h||_.length>0||R,matches:u(D)}}}}catch(e){o={error:e}}finally{try{S&&!S.done&&(i=b.return)&&i.call(b)}finally{if(o)throw o.error}}}return d(h,v)}};return f}var h=function(e,t){return e.actions.forEach((function(r){var n=r.exec;return n&&n(e.context,t)}))};function v(e){var t=e.initialState,r=o.NotStarted,n=new Set,a={_machine:e,send:function(i){r===o.Running&&(t=e.transition(t,i),h(t,c(i)),n.forEach((function(e){return e(t)})))},subscribe:function(e){return n.add(e),e(t),{unsubscribe:function(){return n.delete(e)}}},start:function(n){if(n){var s="object"==typeof n?n:{context:e.config.context,value:n};t={value:s.value,actions:[],context:s.context,matches:u(s.value)}}return r=o.Running,h(t,i),a},stop:function(){return r=o.Stopped,n.clear(),a},get state(){return t},get status(){return r}};return a}},247:(e,t,r)=>{r.r(t),r.d(t,{decode:()=>s,encode:()=>a});for(var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o="undefined"==typeof Uint8Array?[]:new Uint8Array(256),i=0;i<n.length;i++)o[n.charCodeAt(i)]=i;var a=function(e){var t,r=new Uint8Array(e),o=r.length,i="";for(t=0;t<o;t+=3)i+=n[r[t]>>2],i+=n[(3&r[t])<<4|r[t+1]>>4],i+=n[(15&r[t+1])<<2|r[t+2]>>6],i+=n[63&r[t+2]];return o%3==2?i=i.substring(0,i.length-1)+"=":o%3==1&&(i=i.substring(0,i.length-2)+"=="),i},s=function(e){var t,r,n,i,a,s=.75*e.length,l=e.length,u=0;"="===e[e.length-1]&&(s--,"="===e[e.length-2]&&s--);var c=new ArrayBuffer(s),d=new Uint8Array(c);for(t=0;t<l;t+=4)r=o[e.charCodeAt(t)],n=o[e.charCodeAt(t+1)],i=o[e.charCodeAt(t+2)],a=o[e.charCodeAt(t+3)],d[u++]=r<<2|n>>4,d[u++]=(15&n)<<4|i>>2,d[u++]=(3&i)<<6|63&a;return c}},380:(e,t,r)=>{r.r(t)},652:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});const n=function(e){return e=e||Object.create(null),{on:function(t,r){(e[t]||(e[t]=[])).push(r)},off:function(t,r){e[t]&&e[t].splice(e[t].indexOf(r)>>>0,1)},emit:function(t,r){(e[t]||[]).slice().map((function(e){e(r)})),(e["*"]||[]).slice().map((function(e){e(t,r)}))}}}},945:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getRecordSequentialIdPlugin=t.PLUGIN_NAME=void 0;var r={key:"_sid"};t.PLUGIN_NAME="rrweb/sequential-id@1",t.getRecordSequentialIdPlugin=function(e){var n=e?Object.assign({},r,e):r,o=0;return{name:t.PLUGIN_NAME,eventProcessor:function(e){var t;return Object.assign(e,((t={})[n.key]=++o,t)),e},options:n}}},463:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IframeManager=void 0;var r=function(){function e(e){this.iframes=new WeakMap,this.mutationCb=e.mutationCb}return e.prototype.addIframe=function(e){this.iframes.set(e,!0)},e.prototype.addLoadListener=function(e){this.loadListener=e},e.prototype.attachIframe=function(e,t){var r;this.mutationCb({adds:[{parentId:e.__sn.id,nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),null===(r=this.loadListener)||void 0===r||r.call(this,e)},e}();t.IframeManager=r},476:function(e,t,r){var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0});var a,s,l=r(348),u=r(584),c=r(593),d=r(699),p=r(463),f=r(783),h=r(122);function v(e){return n(n({},e),{timestamp:Date.now()})}var m=c.createMirror();function y(e){void 0===e&&(e={});var t=e.emit,r=e.checkoutEveryNms,y=e.checkoutEveryNth,g=e.blockClass,b=void 0===g?"highlight-block":g,S=e.blockSelector,T=void 0===S?null:S,x=e.ignoreClass,w=void 0===x?"highlight-ignore":x,I=e.maskTextClass,E=void 0===I?"highlight-mask":I,C=e.maskTextSelector,M=void 0===C?null:C,k=e.inlineStylesheet,N=void 0===k||k,_=e.maskAllInputs,O=e.maskInputOptions,R=e.slimDOMOptions,D=e.maskInputFn,P=e.maskTextFn,A=e.hooks,L=e.packFn,F=e.sampling,j=void 0===F?{}:F,W=e.mousemoveWait,B=e.recordCanvas,G=void 0!==B&&B,z=e.userTriggeredOnInput,V=void 0!==z&&z,U=e.collectFonts,H=void 0!==U&&U,Y=e.plugins,q=e.keepIframeSrcFn,X=void 0===q?function(){return!1}:q,Q=e.enableStrictPrivacy,$=void 0!==Q&&Q;if(!t)throw new Error("emit function is required");void 0!==W&&void 0===j.mousemove&&(j.mousemove=W);var K,J=!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}:void 0!==O?O:{password:!0},Z=!0===R||"all"===R?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===R,headMetaDescKeywords:"all"===R}:R||{};c.polyfill();var ee=0;a=function(e,n){var i;if(!(null===(i=u.mutationBuffers[0])||void 0===i?void 0:i.isFrozen())||e.type===d.EventType.FullSnapshot||e.type===d.EventType.IncrementalSnapshot&&e.data.source===d.IncrementalSource.Mutation||u.mutationBuffers.forEach((function(e){return e.unfreeze()})),t(function(e){var t,r;try{for(var n=o(Y||[]),i=n.next();!i.done;i=n.next()){var a=i.value;a.eventProcessor&&(e=a.eventProcessor(e))}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return L&&(e=L(e)),e}(e),n),e.type===d.EventType.FullSnapshot)K=e,ee=0;else if(e.type===d.EventType.IncrementalSnapshot){if(e.data.source===d.IncrementalSource.Mutation&&e.data.isAttachIframe)return;ee++;var a=y&&ee>=y,l=r&&e.timestamp-K.timestamp>r;(a||l)&&s(!0)}};var te=function(e){a(v({type:d.EventType.IncrementalSnapshot,data:n({source:d.IncrementalSource.Mutation},e)}))},re=function(e){return a(v({type:d.EventType.IncrementalSnapshot,data:n({source:d.IncrementalSource.Scroll},e)}))},ne=function(e){return a(v({type:d.EventType.IncrementalSnapshot,data:n({source:d.IncrementalSource.CanvasMutation},e)}))},oe=new p.IframeManager({mutationCb:te}),ie=new h.CanvasManager({recordCanvas:G,mutationCb:ne,win:window,blockClass:b,mirror:m}),ae=new f.ShadowDomManager({mutationCb:te,scrollCb:re,bypassOptions:{blockClass:b,blockSelector:T,maskTextClass:E,maskTextSelector:M,inlineStylesheet:N,maskInputOptions:J,maskTextFn:P,maskInputFn:D,recordCanvas:G,sampling:j,slimDOMOptions:Z,iframeManager:oe,canvasManager:ie,enableStrictPrivacy:$},mirror:m});s=function(e){var t,r,n,o;void 0===e&&(e=!1),a(v({type:d.EventType.Meta,data:{href:window.location.href,width:c.getWindowWidth(),height:c.getWindowHeight()}}),e),u.mutationBuffers.forEach((function(e){return e.lock()}));var s=i(l.snapshot(document,{blockClass:b,blockSelector:T,maskTextClass:E,maskTextSelector:M,inlineStylesheet:N,maskAllInputs:J,maskTextFn:P,slimDOM:Z,recordCanvas:G,enableStrictPrivacy:$,onSerialize:function(e){c.isIframeINode(e)&&oe.addIframe(e),c.hasShadowRoot(e)&&ae.addShadowRoot(e.shadowRoot,document)},onIframeLoad:function(e,t){oe.attachIframe(e,t)},keepIframeSrcFn:X}),2),p=s[0],f=s[1];if(!p)return console.warn("Failed to snapshot the document");m.map=f,a(v({type:d.EventType.FullSnapshot,data:{node:p,initialOffset:{left:void 0!==window.pageXOffset?window.pageXOffset:(null===document||void 0===document?void 0:document.documentElement.scrollLeft)||(null===(r=null===(t=null===document||void 0===document?void 0:document.body)||void 0===t?void 0:t.parentElement)||void 0===r?void 0:r.scrollLeft)||(null===document||void 0===document?void 0:document.body.scrollLeft)||0,top:void 0!==window.pageYOffset?window.pageYOffset:(null===document||void 0===document?void 0:document.documentElement.scrollTop)||(null===(o=null===(n=null===document||void 0===document?void 0:document.body)||void 0===n?void 0:n.parentElement)||void 0===o?void 0:o.scrollTop)||(null===document||void 0===document?void 0:document.body.scrollTop)||0}}})),u.mutationBuffers.forEach((function(e){return e.unlock()}))};try{var se=[];se.push(c.on("DOMContentLoaded",(function(){a(v({type:d.EventType.DomContentLoaded,data:{}}))})));var le=function(e){var t;return u.initObservers({mutationCb:te,mousemoveCb:function(e,t){return a(v({type:d.EventType.IncrementalSnapshot,data:{source:t,positions:e}}))},mouseInteractionCb:function(e){return a(v({type:d.EventType.IncrementalSnapshot,data:n({source:d.IncrementalSource.MouseInteraction},e)}))},scrollCb:re,viewportResizeCb:function(e){return a(v({type:d.EventType.IncrementalSnapshot,data:n({source:d.IncrementalSource.ViewportResize},e)}))},inputCb:function(e){return a(v({type:d.EventType.IncrementalSnapshot,data:n({source:d.IncrementalSource.Input},e)}))},mediaInteractionCb:function(e){return a(v({type:d.EventType.IncrementalSnapshot,data:n({source:d.IncrementalSource.MediaInteraction},e)}))},styleSheetRuleCb:function(e){return a(v({type:d.EventType.IncrementalSnapshot,data:n({source:d.IncrementalSource.StyleSheetRule},e)}))},styleDeclarationCb:function(e){return a(v({type:d.EventType.IncrementalSnapshot,data:n({source:d.IncrementalSource.StyleDeclaration},e)}))},canvasMutationCb:ne,fontCb:function(e){return a(v({type:d.EventType.IncrementalSnapshot,data:n({source:d.IncrementalSource.Font},e)}))},blockClass:b,ignoreClass:w,maskTextClass:E,maskTextSelector:M,maskInputOptions:J,inlineStylesheet:N,sampling:j,recordCanvas:G,userTriggeredOnInput:V,collectFonts:H,doc:e,maskInputFn:D,maskTextFn:P,blockSelector:T,slimDOMOptions:Z,mirror:m,iframeManager:oe,shadowDomManager:ae,canvasManager:ie,plugins:(null===(t=null==Y?void 0:Y.filter((function(e){return e.observer})))||void 0===t?void 0:t.map((function(e){return{observer:e.observer,options:e.options,callback:function(t){return a(v({type:d.EventType.Plugin,data:{plugin:e.name,payload:t}}))}}})))||[],enableStrictPrivacy:$},A)};oe.addLoadListener((function(e){se.push(le(e.contentDocument))}));var ue=function(){s(),se.push(le(document))};return"interactive"===document.readyState||"complete"===document.readyState?ue():se.push(c.on("load",(function(){a(v({type:d.EventType.Load,data:{}})),ue()}),window)),function(){se.forEach((function(e){return e()}))}}catch(e){console.warn(e)}}y.addCustomEvent=function(e,t){a&&a(v({type:d.EventType.Custom,data:{tag:e,payload:t}}))},y.freezePage=function(){u.mutationBuffers.forEach((function(e){return e.freeze()}))},y.takeFullSnapshot=function(e){if(!s)throw new Error("please take full snapshot after start recording");s(e)},y.mirror=m,t.default=y},899:function(e,t,r){var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0});var o=r(348),i=r(593);function a(e){return"__ln"in e}var s=function(){function e(){this.length=0,this.head=null}return e.prototype.get=function(e){if(e>=this.length)throw new Error("Position outside of list range");for(var t=this.head,r=0;r<e;r++)t=(null==t?void 0:t.next)||null;return t},e.prototype.addNode=function(e){var t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&a(e.previousSibling)){var r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else e.nextSibling&&a(e.nextSibling)&&e.nextSibling.__ln.previous?(r=e.nextSibling.__ln.previous,t.previous=r,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,r&&(r.next=t)):(this.head&&(this.head.previous=t),t.next=this.head,this.head=t);this.length++},e.prototype.removeNode=function(e){var t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next&&(t.next.previous=t.previous)):(this.head=t.next,this.head&&(this.head.previous=null)),e.__ln&&delete e.__ln,this.length--)},e}(),l=function(e,t){return e+"@"+t};function u(e){return"__sn"in e}var c=function(){function e(){var e=this;this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=function(t){t.forEach(e.processMutation),e.emit()},this.emit=function(){var t,r,a,l;if(!e.frozen&&!e.locked){for(var u=[],c=new s,d=function(t){for(var r=t,n=o.IGNORED_NODE;n===o.IGNORED_NODE;)n=(r=r&&r.nextSibling)&&e.mirror.getId(r);return n},h=function(t){var r,n=t.getRootNode?null===(r=t.getRootNode())||void 0===r?void 0:r.host:null,a=!(e.doc.contains(t)||n instanceof Node&&e.doc.contains(n));if(t.parentNode&&!a){var s=o.isShadowRoot(t.parentNode)?e.mirror.getId(n):e.mirror.getId(t.parentNode),l=d(t);if(-1===s||-1===l)return c.addNode(t);var p=o.serializeNodeWithId(t,{doc:e.doc,map:e.mirror.map,blockClass:e.blockClass,blockSelector:e.blockSelector,maskTextClass:e.maskTextClass,maskTextSelector:e.maskTextSelector,skipChild:!0,inlineStylesheet:e.inlineStylesheet,maskInputOptions:e.maskInputOptions,maskTextFn:e.maskTextFn,maskInputFn:e.maskInputFn,slimDOMOptions:e.slimDOMOptions,recordCanvas:e.recordCanvas,enableStrictPrivacy:e.enableStrictPrivacy,onSerialize:function(r){i.isIframeINode(r)&&e.iframeManager.addIframe(r),i.hasShadowRoot(t)&&e.shadowDomManager.addShadowRoot(t.shadowRoot,document)},onIframeLoad:function(t,r){e.iframeManager.attachIframe(t,r)}});p&&u.push({parentId:s,nextId:l,node:p})}};e.mapRemoves.length;)e.mirror.removeNodeFromMap(e.mapRemoves.shift());try{for(var v=n(e.movedSet),m=v.next();!m.done;m=v.next()){var y=m.value;p(e.removes,y,e.mirror)&&!e.movedSet.has(y.parentNode)||h(y)}}catch(e){t={error:e}}finally{try{m&&!m.done&&(r=v.return)&&r.call(v)}finally{if(t)throw t.error}}try{for(var g=n(e.addedSet),b=g.next();!b.done;b=g.next())y=b.value,f(e.droppedSet,y)||p(e.removes,y,e.mirror)?f(e.movedSet,y)?h(y):e.droppedSet.add(y):h(y)}catch(e){a={error:e}}finally{try{b&&!b.done&&(l=g.return)&&l.call(g)}finally{if(a)throw a.error}}for(var S=null;c.length;){var T=null;if(S){var x=e.mirror.getId(S.value.parentNode),w=d(S.value);-1!==x&&-1!==w&&(T=S)}if(!T)for(var I=c.length-1;I>=0;I--){var E=c.get(I);if(E&&(x=e.mirror.getId(E.value.parentNode),w=d(E.value),-1!==x&&-1!==w)){T=E;break}}if(!T){for(;c.head;)c.removeNode(c.head.value);break}S=T.previous,c.removeNode(T.value),h(T.value)}var C={texts:e.texts.map((function(t){var r=t.value;return e.enableStrictPrivacy&&r&&(r=i.obfuscateText(r)),{id:e.mirror.getId(t.node),value:r}})).filter((function(t){return e.mirror.has(t.id)})),attributes:e.attributes.map((function(t){return{id:e.mirror.getId(t.node),attributes:t.attributes}})).filter((function(t){return e.mirror.has(t.id)})),removes:e.removes,adds:u};(C.texts.length||C.attributes.length||C.removes.length||C.adds.length)&&(e.texts=[],e.attributes=[],e.removes=[],e.addedSet=new Set,e.movedSet=new Set,e.droppedSet=new Set,e.movedMap={},e.emissionCallback(C))}},this.processMutation=function(t){var r,a,s,u;if(!i.isIgnored(t.target))switch(t.type){case"characterData":var c=t.target.textContent;i.isBlocked(t.target,e.blockClass)||c===t.oldValue||e.texts.push({value:o.needMaskingText(t.target,e.maskTextClass,e.maskTextSelector)&&c?e.maskTextFn?e.maskTextFn(c):c.replace(/[\S]/g,"*"):c,node:t.target});break;case"attributes":var p=t.target;if(c=t.target.getAttribute(t.attributeName),"value"===t.attributeName&&(c=o.maskInputValue({maskInputOptions:e.maskInputOptions,tagName:t.target.tagName,type:t.target.getAttribute("type"),value:c,maskInputFn:e.maskInputFn})),i.isBlocked(t.target,e.blockClass)||c===t.oldValue)return;var f=e.attributes.find((function(e){return e.node===t.target}));if(f||(f={node:t.target,attributes:{}},e.attributes.push(f)),"INPUT"===t.target.tagName){var h=t.target;if("password"===h.type){f.attributes.value="*".repeat(h.value.length);break}}if("style"===t.attributeName){var v=e.doc.createElement("span");t.oldValue&&v.setAttribute("style",t.oldValue),void 0!==f.attributes.style&&null!==f.attributes.style||(f.attributes.style={});var m=f.attributes.style;try{for(var y=n(Array.from(p.style)),g=y.next();!g.done;g=y.next()){var b=g.value,S=p.style.getPropertyValue(b),T=p.style.getPropertyPriority(b);S===v.style.getPropertyValue(b)&&T===v.style.getPropertyPriority(b)||(m[b]=""===T?S:[S,T])}}catch(e){r={error:e}}finally{try{g&&!g.done&&(a=y.return)&&a.call(y)}finally{if(r)throw r.error}}try{for(var x=n(Array.from(v.style)),w=x.next();!w.done;w=x.next())b=w.value,""===p.style.getPropertyValue(b)&&(m[b]=!1)}catch(e){s={error:e}}finally{try{w&&!w.done&&(u=x.return)&&u.call(x)}finally{if(s)throw s.error}}}else f.attributes[t.attributeName]=o.transformAttribute(e.doc,t.target.tagName,t.attributeName,c);break;case"childList":t.addedNodes.forEach((function(r){return e.genAdds(r,t.target)})),t.removedNodes.forEach((function(r){var n=e.mirror.getId(r),a=o.isShadowRoot(t.target)?e.mirror.getId(t.target.host):e.mirror.getId(t.target);i.isBlocked(t.target,e.blockClass)||i.isIgnored(r)||(e.addedSet.has(r)?(d(e.addedSet,r),e.droppedSet.add(r)):e.addedSet.has(t.target)&&-1===n||i.isAncestorRemoved(t.target,e.mirror)||(e.movedSet.has(r)&&e.movedMap[l(n,a)]?d(e.movedSet,r):e.removes.push({parentId:a,id:n,isShadow:!!o.isShadowRoot(t.target)||void 0})),e.mapRemoves.push(r))}))}},this.genAdds=function(t,r){if(!r||!i.isBlocked(r,e.blockClass)){if(u(t)){if(i.isIgnored(t))return;e.movedSet.add(t);var n=null;r&&u(r)&&(n=r.__sn.id),n&&(e.movedMap[l(t.__sn.id,n)]=!0)}else e.addedSet.add(t),e.droppedSet.delete(t);i.isBlocked(t,e.blockClass)||t.childNodes.forEach((function(t){return e.genAdds(t)}))}}}return e.prototype.init=function(e,t,r,n,o,i,a,s,l,u,c,d,p,f,h,v,m){this.blockClass=t,this.blockSelector=r,this.maskTextClass=n,this.maskTextSelector=o,this.inlineStylesheet=i,this.maskInputOptions=a,this.maskTextFn=s,this.maskInputFn=l,this.recordCanvas=u,this.slimDOMOptions=c,this.enableStrictPrivacy=m,this.emissionCallback=e,this.doc=d,this.mirror=p,this.iframeManager=f,this.shadowDomManager=h,this.canvasManager=v},e.prototype.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},e.prototype.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},e.prototype.isFrozen=function(){return this.frozen},e.prototype.lock=function(){this.locked=!0,this.canvasManager.lock()},e.prototype.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},e.prototype.reset=function(){this.canvasManager.reset()},e}();function d(e,t){e.delete(t),t.childNodes.forEach((function(t){return d(e,t)}))}function p(e,t,r){var n=t.parentNode;if(!n)return!1;var o=r.getId(n);return!!e.some((function(e){return e.id===o}))||p(e,n,r)}function f(e,t){var r=t.parentNode;return!!r&&(!!e.has(r)||f(e,r))}t.default=c},584:function(e,t,r){var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},i=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(o(arguments[t]));return e},a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.initObservers=t.INPUT_TAGS=t.initScrollObserver=t.initMutationObserver=t.mutationBuffers=void 0;var s=r(348),l=r(593),u=r(699),c=r(899);t.mutationBuffers=[];var d="undefined"!=typeof CSSGroupingRule,p="undefined"!=typeof CSSMediaRule,f="undefined"!=typeof CSSSupportsRule,h="undefined"!=typeof CSSConditionRule;function v(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0];return e.target}catch(t){return e.target}}function m(e,r,n,o,i,a,s,l,u,d,p,f,h,v,m,y,g,b){var S,T,x,w=new c.default;t.mutationBuffers.push(w),w.init(e,n,o,i,a,s,l,u,d,p,f,r,h,v,m,y,b);var I=window.MutationObserver||window.__rrMutationObserver,E=null===(x=null===(T=null===(S=window)||void 0===S?void 0:S.Zone)||void 0===T?void 0:T.__symbol__)||void 0===x?void 0:x.call(T,"MutationObserver");E&&window[E]&&(I=window[E]);var C=new I(w.processMutations.bind(w));return C.observe(g,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),C}function y(e,t,r,n,o){var i=l.throttle((function(o){var i=v(o);if(i&&!l.isBlocked(i,n)){var a=r.getId(i);if(i===t){var s=t.scrollingElement||t.documentElement;e({id:a,x:s.scrollLeft,y:s.scrollTop})}else e({id:a,x:i.scrollLeft,y:i.scrollTop})}}),o.scroll||100);return l.on("scroll",i,t)}function g(e,t){var r=n({},e);return t||delete r.userTriggered,r}t.initMutationObserver=m,t.initScrollObserver=y,t.INPUT_TAGS=["INPUT","TEXTAREA","SELECT"];var b=new WeakMap;function S(e){return function(e,t){if(d&&e.parentRule instanceof CSSGroupingRule||p&&e.parentRule instanceof CSSMediaRule||f&&e.parentRule instanceof CSSSupportsRule||h&&e.parentRule instanceof CSSConditionRule){var r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else r=Array.from(e.parentStyleSheet.cssRules).indexOf(e),t.unshift(r);return t}(e,[])}t.initObservers=function(e,r){var c,T;void 0===r&&(r={});var x=e.doc.defaultView;if(!x)return function(){};!function(e,t){var r=e.mutationCb,n=e.mousemoveCb,o=e.mouseInteractionCb,a=e.scrollCb,s=e.viewportResizeCb,l=e.inputCb,u=e.mediaInteractionCb,c=e.styleSheetRuleCb,d=e.styleDeclarationCb,p=e.canvasMutationCb,f=e.fontCb;e.mutationCb=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t.mutation&&t.mutation.apply(t,i(e)),r.apply(void 0,i(e))},e.mousemoveCb=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];t.mousemove&&t.mousemove.apply(t,i(e)),n.apply(void 0,i(e))},e.mouseInteractionCb=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];t.mouseInteraction&&t.mouseInteraction.apply(t,i(e)),o.apply(void 0,i(e))},e.scrollCb=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];t.scroll&&t.scroll.apply(t,i(e)),a.apply(void 0,i(e))},e.viewportResizeCb=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];t.viewportResize&&t.viewportResize.apply(t,i(e)),s.apply(void 0,i(e))},e.inputCb=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];t.input&&t.input.apply(t,i(e)),l.apply(void 0,i(e))},e.mediaInteractionCb=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];t.mediaInteaction&&t.mediaInteaction.apply(t,i(e)),u.apply(void 0,i(e))},e.styleSheetRuleCb=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];t.styleSheetRule&&t.styleSheetRule.apply(t,i(e)),c.apply(void 0,i(e))},e.styleDeclarationCb=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];t.styleDeclaration&&t.styleDeclaration.apply(t,i(e)),d.apply(void 0,i(e))},e.canvasMutationCb=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];t.canvasMutation&&t.canvasMutation.apply(t,i(e)),p.apply(void 0,i(e))},e.fontCb=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];t.font&&t.font.apply(t,i(e)),f.apply(void 0,i(e))}}(e,r);var w,I,E,C,M,k,N,_,O,R,D=m(e.mutationCb,e.doc,e.blockClass,e.blockSelector,e.maskTextClass,e.maskTextSelector,e.inlineStylesheet,e.maskInputOptions,e.maskTextFn,e.maskInputFn,e.recordCanvas,e.slimDOMOptions,e.mirror,e.iframeManager,e.shadowDomManager,e.canvasManager,e.doc,e.enableStrictPrivacy),P=function(e,t,r,n){if(!1===t.mousemove)return function(){};var o,i="number"==typeof t.mousemove?t.mousemove:50,a="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500,s=[],c=l.throttle((function(t){var r=Date.now()-o;e(s.map((function(e){return e.timeOffset-=r,e})),t),s=[],o=null}),a),d=l.throttle((function(e){var t=v(e),r=l.isTouchEvent(e)?e.changedTouches[0]:e,i=r.clientX,a=r.clientY;o||(o=Date.now()),s.push({x:i,y:a,id:n.getId(t),timeOffset:Date.now()-o}),c("undefined"!=typeof DragEvent&&e instanceof DragEvent?u.IncrementalSource.Drag:e instanceof MouseEvent?u.IncrementalSource.MouseMove:u.IncrementalSource.TouchMove)}),i,{trailing:!1}),p=[l.on("mousemove",d,r),l.on("touchmove",d,r),l.on("drag",d,r)];return function(){p.forEach((function(e){return e()}))}}(e.mousemoveCb,e.sampling,e.doc,e.mirror),A=function(e,t,r,n,o){if(!1===o.mouseInteraction)return function(){};var i=!0===o.mouseInteraction||void 0===o.mouseInteraction?{}:o.mouseInteraction,a=[];return Object.keys(u.MouseInteractions).filter((function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==i[e]})).forEach((function(o){var i=o.toLowerCase(),s=function(t){return function(o){var i=v(o);if(!l.isBlocked(i,n)&&!l.isCanvasNode(i)){var a=l.isTouchEvent(o)?o.changedTouches[0]:o;if(a){var s=r.getId(i),c=a.clientX,d=a.clientY;e({type:u.MouseInteractions[t],id:s,x:c,y:d})}}}}(o);a.push(l.on(i,s,t))})),function(){a.forEach((function(e){return e()}))}}(e.mouseInteractionCb,e.doc,e.mirror,e.blockClass,e.sampling),L=y(e.scrollCb,e.doc,e.mirror,e.blockClass,e.sampling),F=(w=e.viewportResizeCb,I=-1,E=-1,C=l.throttle((function(){var e=l.getWindowHeight(),t=l.getWindowWidth();I===e&&E===t||(w({width:Number(t),height:Number(e)}),I=e,E=t)}),200),l.on("resize",C,window)),j=function(e,r,o,a,u,c,d,p,f){function h(e){var n=v(e),o=e.isTrusted;if(n&&"OPTION"===n.tagName&&(n=n.parentElement),n&&n.tagName&&!(t.INPUT_TAGS.indexOf(n.tagName)<0)&&!l.isBlocked(n,a)){var i=n.type;if(!n.classList.contains(u)){var p=n.value,h=!1;"radio"===i||"checkbox"===i?h=n.checked:(c[n.tagName.toLowerCase()]||c[i])&&(p=s.maskInputValue({maskInputOptions:c,tagName:n.tagName,type:i,value:p,maskInputFn:d})),m(n,g({text:p,isChecked:h,userTriggered:o},f));var y=n.name;"radio"===i&&y&&h&&r.querySelectorAll('input[type="radio"][name="'+y+'"]').forEach((function(e){e!==n&&m(e,g({text:e.value,isChecked:!h,userTriggered:!1},f))}))}}}function m(t,r){var i=b.get(t);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){b.set(t,r);var a=o.getId(t);e(n(n({},r),{id:a}))}}var y=("last"===p.input?["change"]:["input","change"]).map((function(e){return l.on(e,h,r)})),S=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),T=[[HTMLInputElement.prototype,"value"],[HTMLInputElement.prototype,"checked"],[HTMLSelectElement.prototype,"value"],[HTMLTextAreaElement.prototype,"value"],[HTMLSelectElement.prototype,"selectedIndex"],[HTMLOptionElement.prototype,"selected"]];return S&&S.set&&y.push.apply(y,i(T.map((function(e){return l.hookSetter(e[0],e[1],{set:function(){h({target:this})}})})))),function(){y.forEach((function(e){return e()}))}}(e.inputCb,e.doc,e.mirror,e.blockClass,e.ignoreClass,e.maskInputOptions,e.maskInputFn,e.sampling,e.userTriggeredOnInput),W=(M=e.mediaInteractionCb,k=e.blockClass,N=e.mirror,_=e.sampling,O=function(e){return l.throttle((function(t){var r=v(t);if(r&&!l.isBlocked(r,k)){var n=r,o=n.currentTime,i=n.volume,a=n.muted;M({type:e,id:N.getId(r),currentTime:o,volume:i,muted:a})}}),_.media||500)},R=[l.on("play",O(0)),l.on("pause",O(1)),l.on("seeked",O(2)),l.on("volumechange",O(3))],function(){R.forEach((function(e){return e()}))}),B=function(e,t,r){var n=t.CSSStyleSheet.prototype.insertRule;t.CSSStyleSheet.prototype.insertRule=function(t,o){var i=r.getId(this.ownerNode);return-1!==i&&e({id:i,adds:[{rule:t,index:o}]}),n.apply(this,arguments)};var a=t.CSSStyleSheet.prototype.deleteRule;t.CSSStyleSheet.prototype.deleteRule=function(t){var n=r.getId(this.ownerNode);return-1!==n&&e({id:n,removes:[{index:t}]}),a.apply(this,arguments)};var s={};d?s.CSSGroupingRule=t.CSSGroupingRule:(p&&(s.CSSMediaRule=t.CSSMediaRule),h&&(s.CSSConditionRule=t.CSSConditionRule),f&&(s.CSSSupportsRule=t.CSSSupportsRule));var l={};return Object.entries(s).forEach((function(t){var n=o(t,2),a=n[0],s=n[1];l[a]={insertRule:s.prototype.insertRule,deleteRule:s.prototype.deleteRule},s.prototype.insertRule=function(t,n){var o=r.getId(this.parentStyleSheet.ownerNode);return-1!==o&&e({id:o,adds:[{rule:t,index:i(S(this),[n||0])}]}),l[a].insertRule.apply(this,arguments)},s.prototype.deleteRule=function(t){var n=r.getId(this.parentStyleSheet.ownerNode);return-1!==n&&e({id:n,removes:[{index:i(S(this),[t])}]}),l[a].deleteRule.apply(this,arguments)}})),function(){t.CSSStyleSheet.prototype.insertRule=n,t.CSSStyleSheet.prototype.deleteRule=a,Object.entries(s).forEach((function(e){var t=o(e,2),r=t[0],n=t[1];n.prototype.insertRule=l[r].insertRule,n.prototype.deleteRule=l[r].deleteRule}))}}(e.styleSheetRuleCb,x,e.mirror),G=function(e,t,r){var n=t.CSSStyleDeclaration.prototype.setProperty;t.CSSStyleDeclaration.prototype.setProperty=function(t,o,i){var a,s,l=r.getId(null===(s=null===(a=this.parentRule)||void 0===a?void 0:a.parentStyleSheet)||void 0===s?void 0:s.ownerNode);return-1!==l&&e({id:l,set:{property:t,value:o,priority:i},index:S(this.parentRule)}),n.apply(this,arguments)};var o=t.CSSStyleDeclaration.prototype.removeProperty;return t.CSSStyleDeclaration.prototype.removeProperty=function(t){var n,i,a=r.getId(null===(i=null===(n=this.parentRule)||void 0===n?void 0:n.parentStyleSheet)||void 0===i?void 0:i.ownerNode);return-1!==a&&e({id:a,remove:{property:t},index:S(this.parentRule)}),o.apply(this,arguments)},function(){t.CSSStyleDeclaration.prototype.setProperty=n,t.CSSStyleDeclaration.prototype.removeProperty=o}}(e.styleDeclarationCb,x,e.mirror),z=e.collectFonts?function(e,t){var r=t.defaultView;if(!r)return function(){};var n=[],o=new WeakMap,i=r.FontFace;r.FontFace=function(e,t,r){var n=new i(e,t,r);return o.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};var a=l.patch(t.fonts,"add",(function(t){return function(r){return setTimeout((function(){var t=o.get(r);t&&(e(t),o.delete(r))}),0),t.apply(this,[r])}}));return n.push((function(){r.FontFace=i})),n.push(a),function(){n.forEach((function(e){return e()}))}}(e.fontCb,e.doc):function(){},V=[];try{for(var U=a(e.plugins),H=U.next();!H.done;H=U.next()){var Y=H.value;V.push(Y.observer(Y.callback,x,Y.options))}}catch(e){c={error:e}}finally{try{H&&!H.done&&(T=U.return)&&T.call(U)}finally{if(c)throw c.error}}return function(){t.mutationBuffers.forEach((function(e){return e.reset()})),D.disconnect(),P(),A(),L(),F(),j(),W(),B(),G(),z(),V.forEach((function(e){return e()}))}}},882:function(e,t,r){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(n(arguments[t]));return e},i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0});var a=r(699),s=r(593);t.default=function(e,t,r,n){var l,u,c=[],d=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype),p=function(n){try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[n])return"continue";var i=s.patch(t.CanvasRenderingContext2D.prototype,n,(function(t){return function(){for(var i=this,l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];return s.isBlocked(this.canvas,r)||setTimeout((function(){var t=o(l);if("drawImage"===n&&t[0]&&t[0]instanceof HTMLCanvasElement){var r=t[0],s=r.getContext("2d"),u=null==s?void 0:s.getImageData(0,0,r.width,r.height),c=null==u?void 0:u.data;t[0]=JSON.stringify(c)}e(i.canvas,{type:a.CanvasContext["2D"],property:n,args:t})}),0),t.apply(this,l)}}));c.push(i)}catch(r){var l=s.hookSetter(t.CanvasRenderingContext2D.prototype,n,{set:function(t){e(this.canvas,{type:a.CanvasContext["2D"],property:n,args:[t],setter:!0})}});c.push(l)}};try{for(var f=i(d),h=f.next();!h.done;h=f.next())p(h.value)}catch(e){l={error:e}}finally{try{h&&!h.done&&(u=f.return)&&u.call(f)}finally{if(l)throw l.error}}return function(){c.forEach((function(e){return e()}))}}},122:function(e,t,r){var n=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r};Object.defineProperty(t,"__esModule",{value:!0}),t.CanvasManager=void 0;var o=r(882),i=r(705),a=r(196),s=function(){function e(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=function(e,t){!(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)},this.mutationCb=e.mutationCb,this.mirror=e.mirror,!0===e.recordCanvas&&this.initCanvasMutationObserver(e.win,e.blockClass)}return e.prototype.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},e.prototype.freeze=function(){this.frozen=!0},e.prototype.unfreeze=function(){this.frozen=!1},e.prototype.lock=function(){this.locked=!0},e.prototype.unlock=function(){this.locked=!1},e.prototype.initCanvasMutationObserver=function(e,t){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var r=i.default(e,t),n=o.default(this.processMutation.bind(this),e,t,this.mirror),s=a.default(this.processMutation.bind(this),e,t,this.mirror);this.resetObservers=function(){r(),n(),s()}},e.prototype.startPendingCanvasMutationFlusher=function(){var e=this;requestAnimationFrame((function(){return e.flushPendingCanvasMutations()}))},e.prototype.startRAFTimestamping=function(){var e=this,t=function(r){e.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)},e.prototype.flushPendingCanvasMutations=function(){var e=this;this.pendingCanvasMutations.forEach((function(t,r){var n=e.mirror.getId(r);e.flushPendingCanvasMutationFor(r,n)})),requestAnimationFrame((function(){return e.flushPendingCanvasMutations()}))},e.prototype.flushPendingCanvasMutationFor=function(e,t){if(!this.frozen&&!this.locked){var r=this.pendingCanvasMutations.get(e);if(r&&-1!==t){var o=r.map((function(e){return e.type,n(e,["type"])})),i=r[0].type;this.mutationCb({id:t,type:i,commands:o}),this.pendingCanvasMutations.delete(e)}}},e}();t.CanvasManager=s},705:function(e,t,r){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(n(arguments[t]));return e};Object.defineProperty(t,"__esModule",{value:!0});var i=r(593);t.default=function(e,t){var r=[];try{var n=i.patch(e.HTMLCanvasElement.prototype,"getContext",(function(e){return function(r){for(var n=[],a=1;a<arguments.length;a++)n[a-1]=arguments[a];return i.isBlocked(this,t)||"__context"in this||(this.__context=r),e.apply(this,o([r],n))}}));r.push(n)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){r.forEach((function(e){return e()}))}}},986:function(e,t,r){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(n(arguments[t]));return e};Object.defineProperty(t,"__esModule",{value:!0}),t.isInstanceOfWebGLObject=t.serializeArgs=t.serializeArg=t.saveWebGLVar=t.variableListFor=void 0;var i=r(247),a=new Map;function s(e,t){var r=a.get(e);return r||(r=new Map,a.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}function l(e,r,n){return e instanceof Array?e.map((function(e){return l(e,r,n)})):null===e?e: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?{rr_type:e.constructor.name,args:[Object.values(e)]}:e instanceof ArrayBuffer?{rr_type:e.constructor.name,base64:i.encode(e)}:e instanceof DataView?{rr_type:e.constructor.name,args:[l(e.buffer,r,n),e.byteOffset,e.byteLength]}:e instanceof HTMLImageElement?{rr_type:e.constructor.name,src:e.src}:e instanceof ImageData?{rr_type:e.constructor.name,args:[l(e.data,r,n),e.width,e.height]}:t.isInstanceOfWebGLObject(e,r)||"object"==typeof e?{rr_type:e.constructor.name,index:t.saveWebGLVar(e,r,n)}:e}t.variableListFor=s,t.saveWebGLVar=function(e,r,n){if(e&&(t.isInstanceOfWebGLObject(e,r)||"object"==typeof e)){var o=s(n,e.constructor.name),i=o.indexOf(e);return-1===i&&(i=o.length,o.push(e)),i}},t.serializeArg=l,t.serializeArgs=function(e,t,r){return o(e).map((function(e){return l(e,t,r)}))},t.isInstanceOfWebGLObject=function(e,t){var r=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((function(e){return"function"==typeof t[e]}));return Boolean(r.find((function(r){return e instanceof t[r]})))}},196:function(e,t,r){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(n(arguments[t]));return e},i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0});var a=r(699),s=r(593),l=r(986);function u(e,t,r,n,a,u){var c,d,p=[],f=Object.getOwnPropertyNames(e),h=function(i){try{if("function"!=typeof e[i])return"continue";var c=s.patch(e,i,(function(c){return function(){for(var d=[],p=0;p<arguments.length;p++)d[p]=arguments[p];var f=c.apply(this,d);if(l.saveWebGLVar(f,u,e),!s.isBlocked(this.canvas,n)){a.getId(this.canvas);var h=l.serializeArgs(o(d),u,e),v={type:t,property:i,args:h};r(this.canvas,v)}return f}}));p.push(c)}catch(n){var d=s.hookSetter(e,i,{set:function(e){r(this.canvas,{type:t,property:i,args:[e],setter:!0})}});p.push(d)}};try{for(var v=i(f),m=v.next();!m.done;m=v.next())h(m.value)}catch(e){c={error:e}}finally{try{m&&!m.done&&(d=v.return)&&d.call(v)}finally{if(c)throw c.error}}return p}t.default=function(e,t,r,n){var i=[];return i.push.apply(i,o(u(t.WebGLRenderingContext.prototype,a.CanvasContext.WebGL,e,r,n,t))),void 0!==t.WebGL2RenderingContext&&i.push.apply(i,o(u(t.WebGL2RenderingContext.prototype,a.CanvasContext.WebGL2,e,r,n,t))),function(){i.forEach((function(e){return e()}))}}},783:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ShadowDomManager=void 0;var n=r(584),o=function(){function e(e){this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror}return e.prototype.addShadowRoot=function(e,t){n.initMutationObserver(this.mutationCb,t,this.bypassOptions.blockClass,this.bypassOptions.blockSelector,this.bypassOptions.maskTextClass,this.bypassOptions.maskTextSelector,this.bypassOptions.inlineStylesheet,this.bypassOptions.maskInputOptions,this.bypassOptions.maskTextFn,this.bypassOptions.maskInputFn,this.bypassOptions.recordCanvas,this.bypassOptions.slimDOMOptions,this.mirror,this.bypassOptions.iframeManager,this,this.bypassOptions.canvasManager,e,this.bypassOptions.enableStrictPrivacy),n.initScrollObserver(this.scrollCb,e,this.mirror,this.bypassOptions.blockClass,this.bypassOptions.sampling)},e}();t.ShadowDomManager=o},165:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.event,r=e.mutation,n=e.target,o=e.imageMap,i=e.errorHandler;try{var a=n.getContext("2d");if(r.setter)return void(a[r.property]=r.args[0]);var s=a[r.property];if("drawImage"===r.property&&"string"==typeof r.args[0]){var l=o.get(t);r.args[0]=l,s.apply(a,r.args)}else s.apply(a,r.args)}catch(e){i(r,e)}}},267:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=r(699),o=r(814),i=r(165);t.default=function(e){var t=e.event,r=e.mutation,a=e.target,s=e.imageMap,l=e.errorHandler;try{var u="commands"in r?r.commands:[r];return[n.CanvasContext.WebGL,n.CanvasContext.WebGL2].includes(r.type)?u.forEach((function(e){o.default({mutation:e,type:r.type,target:a,imageMap:s,errorHandler:l})})):u.forEach((function(e){i.default({event:t,mutation:e,target:a,imageMap:s,errorHandler:l})}))}catch(e){l(r,e)}}},814:function(e,t,r){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(n(arguments[t]));return e};Object.defineProperty(t,"__esModule",{value:!0}),t.deserializeArg=t.variableListFor=void 0;var i=r(247),a=r(699),s=new Map;function l(e,t){var r=s.get(e);return r||(r=new Map,s.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}t.variableListFor=l;var u=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject"];function c(e,t){return function(r){if(r&&"object"==typeof r&&"rr_type"in r){if("index"in r){var n=r.rr_type,a=r.index;return l(t,n)[a]}if("args"in r){var s=r.rr_type,u=r.args,d=window[s];return new(d.bind.apply(d,o([void 0],u.map(c(e,t)))))}if("base64"in r)return i.decode(r.base64);if("src"in r){var p=e.get(r.src);if(p)return p;var f=new Image;return f.src=r.src,e.set(r.src,f),f}}else if(Array.isArray(r))return r.map(c(e,t));return r}}t.deserializeArg=c,t.default=function(e){var t=e.mutation,r=e.target,n=e.type,o=e.imageMap,i=e.errorHandler;try{var s=function(e,t){try{return t===a.CanvasContext.WebGL?e.getContext("webgl")||e.getContext("experimental-webgl"):e.getContext("webgl2")}catch(e){return null}}(r,n);if(!s)return;if(t.setter)return void(s[t.property]=t.args[0]);var d=s[t.property],p=t.args.map(c(o,s));!function(e,t){if(null==t?void 0:t.constructor){var r=t.constructor.name;if(u.includes(r)){var n=l(e,r);n.includes(t)||n.push(t)}}}(s,d.apply(s,p))}catch(e){i(t,e)}}},943:function(e,t,r){var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},a=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(i(arguments[t]));return e};Object.defineProperty(t,"__esModule",{value:!0}),t.Replayer=void 0;var s=r(348),l=r(652),u=r(669),c=r(104),d=r(129),p=r(699),f=r(593),h=r(277);r(380);var v=r(401),m=r(267),y=36e5,g=l.default||l,b="[replayer]",S={duration:500,lineCap:"round",lineWidth:3,strokeStyle:"red"};function T(e){return e.type==p.EventType.IncrementalSnapshot&&(e.data.source==p.IncrementalSource.TouchMove||e.data.source==p.IncrementalSource.MouseInteraction&&e.data.type==p.MouseInteractions.TouchStart)}var x=function(){function e(e,t){var r=this;if(this.mouseTail=null,this.tailPositions=[],this.emitter=g(),this.activityIntervals=[],this.legacy_missingNodeRetryMap={},this.cache=s.createCache(),this.imageMap=new Map,this.mirror=f.createMirror(),this.firstFullSnapshot=null,this.newDocumentQueue=[],this.mousePos=null,this.touchActive=null,!(null==t?void 0:t.liveMode)&&e.length<2)throw new Error("Replayer need at least 2 events.");var n={speed:1,maxSpeed:360,root:document.body,loadTimeout:0,skipInactive:!1,showWarning:!0,showDebug:!1,blockClass:"highlight-block",liveMode:!1,insertStyleRules:[],triggerFocus:!0,UNSAFE_replayCanvas:!1,pauseAnimation:!0,mouseTail:S,inactiveThreshold:.02,inactiveSkipTime:2e3};this.config=Object.assign({},n,t),this.handleResize=this.handleResize.bind(this),this.getCastFn=this.getCastFn.bind(this),this.applyEventsSynchronously=this.applyEventsSynchronously.bind(this),this.emitter.on(p.ReplayerEvents.Resize,this.handleResize),this.setupDom(),this.treeIndex=new f.TreeIndex,this.fragmentParentMap=new Map,this.elementStateMap=new Map,this.virtualStyleRulesMap=new Map,this.emitter.on(p.ReplayerEvents.Flush,(function(){var e,t,n,i,a,s,l=r.treeIndex.flush(),u=l.scrollMap,c=l.inputMap;r.fragmentParentMap.forEach((function(e,t){return r.restoreRealParent(t,e)}));try{for(var d=o(r.virtualStyleRulesMap.keys()),p=d.next();!p.done;p=d.next()){var f=p.value;r.restoreNodeSheet(f)}}catch(t){e={error:t}}finally{try{p&&!p.done&&(t=d.return)&&t.call(d)}finally{if(e)throw e.error}}r.fragmentParentMap.clear(),r.elementStateMap.clear(),r.virtualStyleRulesMap.clear();try{for(var h=o(u.values()),v=h.next();!v.done;v=h.next()){var m=v.value;r.applyScroll(m,!0)}}catch(e){n={error:e}}finally{try{v&&!v.done&&(i=h.return)&&i.call(h)}finally{if(n)throw n.error}}try{for(var y=o(c.values()),g=y.next();!g.done;g=y.next())m=g.value,r.applyInput(m)}catch(e){a={error:e}}finally{try{g&&!g.done&&(s=y.return)&&s.call(y)}finally{if(a)throw a.error}}})),this.emitter.on(p.ReplayerEvents.PlayBack,(function(){r.firstFullSnapshot=null,r.mirror.reset()}));var i=new c.Timer([],(null==t?void 0:t.speed)||n.speed);this.service=d.createPlayerService({events:e.map((function(e){return t&&t.unpackFn?t.unpackFn(e):e})).sort((function(e,t){return e.timestamp-t.timestamp})),timer:i,timeOffset:0,baselineTime:0,lastPlayedEvent:null},{getCastFn:this.getCastFn,applyEventsSynchronously:this.applyEventsSynchronously,emitter:this.emitter}),this.service.start(),this.service.subscribe((function(e){r.emitter.emit(p.ReplayerEvents.StateChange,{player:e})})),this.speedService=d.createSpeedService({normalSpeed:-1,timer:i}),this.speedService.start(),this.speedService.subscribe((function(e){r.emitter.emit(p.ReplayerEvents.StateChange,{speed:e})}));var a=this.service.state.context.events.find((function(e){return e.type===p.EventType.Meta})),l=this.service.state.context.events.find((function(e){return e.type===p.EventType.FullSnapshot}));if(a){var u=a.data,h=u.width,v=u.height;setTimeout((function(){r.emitter.emit(p.ReplayerEvents.Resize,{width:h,height:v})}),0)}l&&setTimeout((function(){r.firstFullSnapshot||(r.firstFullSnapshot=l,r.rebuildFullSnapshot(l),r.iframe.contentWindow.scrollTo(l.data.initialOffset))}),1),this.service.state.context.events.find(T)&&this.mouse.classList.add("touch-device")}return Object.defineProperty(e.prototype,"timer",{get:function(){return this.service.state.context.timer},enumerable:!1,configurable:!0}),e.prototype.on=function(e,t){return this.emitter.on(e,t),this},e.prototype.off=function(e,t){return this.emitter.off(e,t),this},e.prototype.setConfig=function(e){var t=this;Object.keys(e).forEach((function(r){t.config[r]=e[r]})),this.config.skipInactive||this.backToNormal(),void 0!==e.speed&&this.speedService.send({type:"SET_SPEED",payload:{speed:e.speed}}),void 0!==e.mouseTail&&(!1===e.mouseTail?this.mouseTail&&(this.mouseTail.style.display="none"):(this.mouseTail||(this.mouseTail=document.createElement("canvas"),this.mouseTail.width=Number.parseFloat(this.iframe.width),this.mouseTail.height=Number.parseFloat(this.iframe.height),this.mouseTail.classList.add("replayer-mouse-tail"),this.wrapper.insertBefore(this.mouseTail,this.iframe)),this.mouseTail.style.display="inherit"))},e.prototype.getActivityIntervals=function(){var e=this;if(0==this.activityIntervals.length){for(var t=[],r=this.getMetaData(),n=a([{timestamp:r.startTime}],this.service.state.context.events.filter((function(t){return e.isUserInteraction(t)})),[{timestamp:r.endTime}]),o=1;o<n.length;o++){var i=n[o-1],s=n[o];s.timestamp-i.timestamp>1e4?t.push({startTime:i.timestamp,endTime:s.timestamp,duration:s.timestamp-i.timestamp,active:!1}):t.push({startTime:i.timestamp,endTime:s.timestamp,duration:s.timestamp-i.timestamp,active:!0})}var l=[],u=t[0];for(o=1;o<t.length;o++)t[o].active!=t[o-1].active&&(l.push({startTime:u.startTime,endTime:t[o-1].endTime,duration:t[o-1].endTime-u.startTime,active:t[o-1].active}),u=t[o]);for(u&&t.length>0&&l.push({startTime:u.startTime,endTime:t[t.length-1].endTime,duration:t[t.length-1].endTime-u.startTime,active:t[t.length-1].active}),u=l[0],o=1;o<l.length;o++)(!l[o].active&&l[o].duration>this.config.inactiveThreshold*r.totalTime||!l[o-1].active&&l[o-1].duration>this.config.inactiveThreshold*r.totalTime)&&(this.activityIntervals.push({startTime:u.startTime,endTime:l[o-1].endTime,duration:l[o-1].endTime-u.startTime,active:l[o-1].active}),u=l[o]);u&&l.length>0&&this.activityIntervals.push({startTime:u.startTime,endTime:l[l.length-1].endTime,duration:l[l.length-1].endTime-u.startTime,active:l[l.length-1].active})}return this.activityIntervals},e.prototype.getMetaData=function(){var e=this.service.state.context.events[0],t=this.service.state.context.events[this.service.state.context.events.length-1];return{startTime:e.timestamp,endTime:t.timestamp,totalTime:t.timestamp-e.timestamp}},e.prototype.getCurrentTime=function(){return this.timer.timeOffset+this.getTimeOffset()},e.prototype.getTimeOffset=function(){var e=this.service.state.context;return e.baselineTime-e.events[0].timestamp},e.prototype.getMirror=function(){return this.mirror},e.prototype.play=function(e){var t;void 0===e&&(e=0),this.service.state.matches("paused")||this.service.send({type:"PAUSE"}),this.service.send({type:"PLAY",payload:{timeOffset:e}}),null===(t=this.iframe.contentDocument)||void 0===t||t.getElementsByTagName("html")[0].classList.remove("rrweb-paused"),this.emitter.emit(p.ReplayerEvents.Start),this.handleInactivity(this.getMetaData().startTime+e,!0)},e.prototype.pause=function(e){var t;void 0===e&&this.service.state.matches("playing")&&this.service.send({type:"PAUSE"}),"number"==typeof e&&(this.play(e),this.service.send({type:"PAUSE"})),null===(t=this.iframe.contentDocument)||void 0===t||t.getElementsByTagName("html")[0].classList.add("rrweb-paused"),this.emitter.emit(p.ReplayerEvents.Pause)},e.prototype.resume=function(e){void 0===e&&(e=0),console.warn("The 'resume' will be departed in 1.0. Please use 'play' method which has the same interface."),this.play(e),this.emitter.emit(p.ReplayerEvents.Resume)},e.prototype.startLive=function(e){this.service.send({type:"TO_LIVE",payload:{baselineTime:e}})},e.prototype.addEvent=function(e){var t=this,r=this.config.unpackFn?this.config.unpackFn(e):e;T(r)&&this.mouse.classList.add("touch-device"),Promise.resolve().then((function(){return t.service.send({type:"ADD_EVENT",payload:{event:r}})}))},e.prototype.replaceEvents=function(e){var t,r;try{for(var n=o(e),i=n.next();!i.done;i=n.next())if(T(i.value)){this.mouse.classList.add("touch-device");break}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}this.service.send({type:"REPLACE_EVENTS",payload:{events:e}})},e.prototype.enableInteract=function(){this.iframe.setAttribute("scrolling","auto"),this.iframe.style.pointerEvents="auto"},e.prototype.disableInteract=function(){this.iframe.setAttribute("scrolling","no"),this.iframe.style.pointerEvents="none"},e.prototype.resetCache=function(){this.cache=s.createCache()},e.prototype.setupDom=function(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("replayer-wrapper"),this.config.root.appendChild(this.wrapper),this.mouse=document.createElement("div"),this.mouse.classList.add("replayer-mouse"),this.wrapper.appendChild(this.mouse),!1!==this.config.mouseTail&&(this.mouseTail=document.createElement("canvas"),this.mouseTail.classList.add("replayer-mouse-tail"),this.mouseTail.style.display="inherit",this.wrapper.appendChild(this.mouseTail)),this.iframe=document.createElement("iframe");var e=["allow-same-origin"];this.config.UNSAFE_replayCanvas&&e.push("allow-scripts"),this.iframe.style.display="none",this.iframe.setAttribute("sandbox",e.join(" ")),this.disableInteract(),this.wrapper.appendChild(this.iframe),this.iframe.contentWindow&&this.iframe.contentDocument&&(u.polyfill(this.iframe.contentWindow,this.iframe.contentDocument),f.polyfill(this.iframe.contentWindow))},e.prototype.handleResize=function(e){var t,r;this.iframe.style.display="inherit";try{for(var n=o([this.mouseTail,this.iframe]),i=n.next();!i.done;i=n.next()){var a=i.value;a&&(a.setAttribute("width",String(e.width)),a.setAttribute("height",String(e.height)))}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}},e.prototype.applyEventsSynchronously=function(e){var t,r;try{for(var n=o(e),i=n.next();!i.done;i=n.next()){var a=i.value;switch(a.type){case p.EventType.DomContentLoaded:case p.EventType.Load:case p.EventType.Custom:continue;case p.EventType.FullSnapshot:case p.EventType.Meta:case p.EventType.Plugin:break;case p.EventType.IncrementalSnapshot:switch(a.data.source){case p.IncrementalSource.MediaInteraction:continue}}this.getCastFn(a,!0)()}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}this.mousePos&&this.moveAndHover(this.mousePos.x,this.mousePos.y,this.mousePos.id,!0,this.mousePos.debugData),this.mousePos=null,!0===this.touchActive?this.mouse.classList.add("touch-active"):!1===this.touchActive&&this.mouse.classList.remove("touch-active"),this.touchActive=null},e.prototype.getCastFn=function(e,t){var r,n=this;switch(void 0===t&&(t=!1),e.type){case p.EventType.DomContentLoaded:case p.EventType.Load:break;case p.EventType.Custom:r=function(){n.emitter.emit(p.ReplayerEvents.CustomEvent,e)};break;case p.EventType.Meta:r=function(){return n.emitter.emit(p.ReplayerEvents.Resize,{width:e.data.width,height:e.data.height})};break;case p.EventType.FullSnapshot:r=function(){if(n.firstFullSnapshot){if(n.firstFullSnapshot===e)return void(n.firstFullSnapshot=!0)}else n.firstFullSnapshot=!0;n.rebuildFullSnapshot(e,t),n.iframe.contentWindow.scrollTo(e.data.initialOffset)};break;case p.EventType.IncrementalSnapshot:r=function(){var r,i;if(n.applyIncremental(e,t),!t&&(n.handleInactivity(e.timestamp),e===n.nextUserInteractionEvent&&(n.nextUserInteractionEvent=null,n.backToNormal()),n.config.skipInactive&&!n.nextUserInteractionEvent)){try{for(var a=o(n.service.state.context.events),s=a.next();!s.done;s=a.next()){var l=s.value;if(!(l.timestamp<=e.timestamp)&&n.isUserInteraction(l)){l.delay-e.delay>1e4*n.speedService.state.context.timer.speed&&(n.nextUserInteractionEvent=l);break}}}catch(e){r={error:e}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}if(n.nextUserInteractionEvent){var u=n.nextUserInteractionEvent.delay-e.delay,c={speed:Math.min(Math.round(u/2e3),n.config.maxSpeed)};n.speedService.send({type:"FAST_FORWARD",payload:c}),n.emitter.emit(p.ReplayerEvents.SkipStart,c)}}}}return function(){var i,a;r&&r();try{for(var s=o(n.config.plugins||[]),l=s.next();!l.done;l=s.next())l.value.handler(e,t,{replayer:n})}catch(e){i={error:e}}finally{try{l&&!l.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}n.service.send({type:"CAST_EVENT",payload:{event:e}});var u=n.service.state.context.events.length-1;if(e===n.service.state.context.events[u]){var c=function(){u<n.service.state.context.events.length-1||(n.backToNormal(),n.service.send("END"),n.emitter.emit(p.ReplayerEvents.Finish))};e.type===p.EventType.IncrementalSnapshot&&e.data.source===p.IncrementalSource.MouseMove&&e.data.positions.length?setTimeout((function(){c()}),Math.max(0,50-e.data.positions[0].timeOffset)):c()}n.emitter.emit(p.ReplayerEvents.EventCast,e)}},e.prototype.handleInactivity=function(e,t){var r,n;if((e===this.inactiveEndTimestamp||t)&&(this.inactiveEndTimestamp=null,this.backToNormal()),this.config.skipInactive&&!this.inactiveEndTimestamp){try{for(var i=o(this.getActivityIntervals()),a=i.next();!a.done;a=i.next()){var s=a.value;if(e>=s.startTime&&e<s.endTime&&!s.active){this.inactiveEndTimestamp=s.endTime;break}}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}if(this.inactiveEndTimestamp){var l=this.inactiveEndTimestamp-e,u={speed:l/y*this.config.inactiveSkipTime<1e3?l/1e3:Math.round(Math.max(l,y)/this.config.inactiveSkipTime)};this.speedService.send({type:"FAST_FORWARD",payload:u}),this.emitter.emit(p.ReplayerEvents.SkipStart,u)}}},e.prototype.rebuildFullSnapshot=function(e,t){var r,n,i=this;if(void 0===t&&(t=!1),!this.iframe.contentDocument)return console.warn("Looks like your replayer has been destroyed.");Object.keys(this.legacy_missingNodeRetryMap).length&&console.warn("Found unresolved missing node map",this.legacy_missingNodeRetryMap),this.legacy_missingNodeRetryMap={};var a=[];this.mirror.map=s.rebuild(e.data.node,{doc:this.iframe.contentDocument,afterAppend:function(e){i.collectIframeAndAttachDocument(a,e)},cache:this.cache})[1];var l=function(e,t){u.attachDocumentToIframe(e,t),u.newDocumentQueue=u.newDocumentQueue.filter((function(t){return t!==e}))},u=this;try{for(var c=o(a),d=c.next();!d.done;d=c.next()){var f=d.value;l(f.mutationInQueue,f.builtNode)}}catch(e){r={error:e}}finally{try{d&&!d.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}var h=this.iframe.contentDocument,v=h.documentElement,m=h.head;this.insertStyleRules(v,m),this.service.state.matches("playing")||this.iframe.contentDocument.getElementsByTagName("html")[0].classList.add("rrweb-paused"),this.emitter.emit(p.ReplayerEvents.FullsnapshotRebuilded,e),t||this.waitForStylesheetLoad(),this.config.UNSAFE_replayCanvas&&this.preloadAllImages()},e.prototype.insertStyleRules=function(e,t){var r=document.createElement("style");e.insertBefore(r,t);var n=h.default(this.config.blockClass).concat(this.config.insertStyleRules);this.config.pauseAnimation&&n.push("html.rrweb-paused *, html.rrweb-paused *:before, html.rrweb-paused *:after { animation-play-state: paused !important; }");for(var o=0;o<n.length;o++)r.sheet.insertRule(n[o],o)},e.prototype.attachDocumentToIframe=function(e,t){var r,n,i=this,a=[];if(!t.contentDocument)for(var l=t.parentNode;l;){if(this.fragmentParentMap.has(l)){var u=l,c=this.fragmentParentMap.get(u);this.restoreRealParent(u,c);break}l=l.parentNode}s.buildNodeWithSN(e.node,{doc:t.contentDocument,map:this.mirror.map,hackCss:!0,skipChild:!1,afterAppend:function(e){if(i.collectIframeAndAttachDocument(a,e),e.__sn.type===s.NodeType.Element&&"HTML"===e.__sn.tagName.toUpperCase()){var r=t.contentDocument,n=r.documentElement,o=r.head;i.insertStyleRules(n,o)}},cache:this.cache});var d=function(e,t){p.attachDocumentToIframe(e,t),p.newDocumentQueue=p.newDocumentQueue.filter((function(t){return t!==e}))},p=this;try{for(var f=o(a),h=f.next();!h.done;h=f.next()){var v=h.value;d(v.mutationInQueue,v.builtNode)}}catch(e){r={error:e}}finally{try{h&&!h.done&&(n=f.return)&&n.call(f)}finally{if(r)throw r.error}}},e.prototype.collectIframeAndAttachDocument=function(e,t){if(f.isIframeINode(t)){var r=this.newDocumentQueue.find((function(e){return e.parentId===t.__sn.id}));r&&e.push({mutationInQueue:r,builtNode:t})}},e.prototype.waitForStylesheetLoad=function(){var e,t=this,r=null===(e=this.iframe.contentDocument)||void 0===e?void 0:e.head;if(r){var n,o=new Set,i=this.service.state,a=function(){i=t.service.state};this.emitter.on(p.ReplayerEvents.Start,a),this.emitter.on(p.ReplayerEvents.Pause,a);var s=function(){t.emitter.off(p.ReplayerEvents.Start,a),t.emitter.off(p.ReplayerEvents.Pause,a)};r.querySelectorAll('link[rel="stylesheet"]').forEach((function(e){e.sheet||(o.add(e),e.addEventListener("load",(function(){o.delete(e),0===o.size&&-1!==n&&(i.matches("playing")&&t.play(t.getCurrentTime()),t.emitter.emit(p.ReplayerEvents.LoadStylesheetEnd),n&&clearTimeout(n),s())})))})),o.size>0&&(this.service.send({type:"PAUSE"}),this.emitter.emit(p.ReplayerEvents.LoadStylesheetStart),n=setTimeout((function(){i.matches("playing")&&t.play(t.getCurrentTime()),n=-1,s()}),this.config.loadTimeout))}},e.prototype.hasImageArg=function(e){var t,r;try{for(var n=o(e),i=n.next();!i.done;i=n.next()){var a=i.value;if(a&&"object"==typeof a)if("rr_type"in a&&"args"in a){if(this.hasImageArg(a.args))return!0}else{if("rr_type"in a&&"HTMLImageElement"===a.rr_type)return!0;if(a instanceof Array&&this.hasImageArg(a))return!0}}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return!1},e.prototype.getImageArgs=function(e){var t,r,n=[];try{for(var i=o(e),s=i.next();!s.done;s=i.next()){var l=s.value;l&&"object"==typeof l&&("rr_type"in l&&"args"in l?n.push.apply(n,a(this.getImageArgs(l.args))):"rr_type"in l&&"HTMLImageElement"===l.rr_type?n.push(l.src):l instanceof Array&&n.push.apply(n,a(this.getImageArgs(l))))}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n},e.prototype.preloadAllImages=function(){var e,t,r=this,n=(this.service.state,function(){r.service.state});this.emitter.on(p.ReplayerEvents.Start,n),this.emitter.on(p.ReplayerEvents.Pause,n);var i=function(e){e.type===p.EventType.IncrementalSnapshot&&e.data.source===p.IncrementalSource.CanvasMutation&&("commands"in e.data?e.data.commands.forEach((function(t){return r.preloadImages(t,e)})):a.preloadImages(e.data,e))},a=this;try{for(var s=o(this.service.state.context.events),l=s.next();!l.done;l=s.next())i(l.value)}catch(t){e={error:t}}finally{try{l&&!l.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}},e.prototype.preloadImages=function(e,t){var r=this;if("drawImage"!==e.property||"string"!=typeof e.args[0]||this.imageMap.has(t))this.hasImageArg(e.args)&&this.getImageArgs(e.args).forEach((function(e){var t=new Image;t.src=e,r.imageMap.set(e,t)}));else{var n=document.createElement("canvas"),o=n.getContext("2d"),i=null==o?void 0:o.createImageData(n.width,n.height);null==i||i.data,JSON.parse(e.args[0]),null==o||o.putImageData(i,0,0)}},e.prototype.applyIncremental=function(e,t){var r,o,i=this,a=e.data;switch(a.source){case p.IncrementalSource.Mutation:t&&(a.adds.forEach((function(e){return i.treeIndex.add(e)})),a.texts.forEach((function(e){return i.treeIndex.text(e)})),a.attributes.forEach((function(e){return i.treeIndex.attribute(e)})),a.removes.forEach((function(e){return i.treeIndex.remove(e,i.mirror)})));try{this.applyMutation(a,t)}catch(e){this.warn("Exception in mutation "+(e.message||e),a)}break;case p.IncrementalSource.Drag:case p.IncrementalSource.TouchMove:case p.IncrementalSource.MouseMove:if(t){var s=a.positions[a.positions.length-1];this.mousePos={x:s.x,y:s.y,id:s.id,debugData:a}}else a.positions.forEach((function(r){var n={doAction:function(){i.moveAndHover(r.x,r.y,r.id,t,a)},delay:r.timeOffset+e.timestamp-i.service.state.context.baselineTime};i.timer.addAction(n)})),this.timer.addAction({doAction:function(){},delay:e.delay-(null===(r=a.positions[0])||void 0===r?void 0:r.timeOffset)});break;case p.IncrementalSource.MouseInteraction:if(-1===a.id)break;var l=new Event(p.MouseInteractions[a.type].toLowerCase());if(!(x=this.mirror.getNode(a.id)))return this.debugNodeNotFound(a,a.id);this.emitter.emit(p.ReplayerEvents.MouseInteraction,{type:a.type,target:x});var u=this.config.triggerFocus;switch(a.type){case p.MouseInteractions.Blur:"blur"in x&&x.blur();break;case p.MouseInteractions.Focus:u&&x.focus&&x.focus({preventScroll:!0});break;case p.MouseInteractions.Click:case p.MouseInteractions.TouchStart:case p.MouseInteractions.TouchEnd:t?(a.type===p.MouseInteractions.TouchStart?this.touchActive=!0:a.type===p.MouseInteractions.TouchEnd&&(this.touchActive=!1),this.mousePos={x:a.x,y:a.y,id:a.id,debugData:a}):(a.type===p.MouseInteractions.TouchStart&&(this.tailPositions.length=0),this.moveAndHover(a.x,a.y,a.id,t,a),a.type===p.MouseInteractions.Click?(this.mouse.classList.remove("active"),this.mouse.offsetWidth,this.mouse.classList.add("active")):a.type===p.MouseInteractions.TouchStart?(this.mouse.offsetWidth,this.mouse.classList.add("touch-active")):a.type===p.MouseInteractions.TouchEnd&&this.mouse.classList.remove("touch-active"));break;case p.MouseInteractions.TouchCancel:t?this.touchActive=!1:this.mouse.classList.remove("touch-active");break;default:x.dispatchEvent(l)}break;case p.IncrementalSource.Scroll:if(-1===a.id)break;if(t){this.treeIndex.scroll(a);break}this.applyScroll(a,!1);break;case p.IncrementalSource.ViewportResize:this.emitter.emit(p.ReplayerEvents.Resize,{width:a.width,height:a.height});break;case p.IncrementalSource.Input:if(-1===a.id)break;if(t){this.treeIndex.input(a);break}this.applyInput(a);break;case p.IncrementalSource.MediaInteraction:if(!(x=this.mirror.getNode(a.id)))return this.debugNodeNotFound(a,a.id);var c=x;try{a.currentTime&&(c.currentTime=a.currentTime),a.volume&&(c.volume=a.volume),a.muted&&(c.muted=a.muted),1===a.type&&c.pause(),0===a.type&&c.play()}catch(e){this.config.showWarning&&console.warn("Failed to replay media interactions: "+(e.message||e))}break;case p.IncrementalSource.StyleSheetRule:if(!(x=this.mirror.getNode(a.id)))return this.debugNodeNotFound(a,a.id);var d,f=x,h=x.parentNode,y=this.fragmentParentMap.has(h),g=y?null:f.sheet;g||(this.virtualStyleRulesMap.has(x)?d=this.virtualStyleRulesMap.get(x):(d=[],this.virtualStyleRulesMap.set(x,d))),a.adds&&a.adds.forEach((function(e){var t=e.rule,r=e.index;if(g)try{if(Array.isArray(r)){var n=v.getPositionsAndIndex(r),o=n.positions,i=n.index;v.getNestedRule(g.cssRules,o).insertRule(t,i)}else i=void 0===r?void 0:Math.min(r,g.cssRules.length),g.insertRule(t,i)}catch(e){}else null==d||d.push({cssText:t,index:r,type:v.StyleRuleType.Insert})})),a.removes&&a.removes.forEach((function(e){var t=e.index;if(y)null==d||d.push({index:t,type:v.StyleRuleType.Remove});else try{if(Array.isArray(t)){var r=v.getPositionsAndIndex(t),n=r.positions,o=r.index;v.getNestedRule(g.cssRules,n).deleteRule(o||0)}else null==g||g.deleteRule(t)}catch(e){}}));break;case p.IncrementalSource.StyleDeclaration:if(!(x=this.mirror.getNode(a.id)))return this.debugNodeNotFound(a,a.id);f=x;var b=x.parentNode,S=this.fragmentParentMap.has(b)?null:f.sheet,T=[];S||(this.virtualStyleRulesMap.has(x)?T=this.virtualStyleRulesMap.get(x):(T=[],this.virtualStyleRulesMap.set(x,T))),a.set&&(S?v.getNestedRule(S.rules,a.index).style.setProperty(a.set.property,a.set.value,a.set.priority):T.push(n({type:v.StyleRuleType.SetProperty,index:a.index},a.set))),a.remove&&(S?v.getNestedRule(S.rules,a.index).style.removeProperty(a.remove.property):T.push(n({type:v.StyleRuleType.RemoveProperty,index:a.index},a.remove)));break;case p.IncrementalSource.CanvasMutation:if(!this.config.UNSAFE_replayCanvas)return;var x;if(!(x=this.mirror.getNode(a.id)))return this.debugNodeNotFound(a,a.id);m.default({event:e,mutation:a,target:x,imageMap:this.imageMap,errorHandler:this.warnCanvasMutationFailed.bind(this)});break;case p.IncrementalSource.Font:try{var w=new FontFace(a.family,a.buffer?new Uint8Array(JSON.parse(a.fontSource)):a.fontSource,a.descriptors);null===(o=this.iframe.contentDocument)||void 0===o||o.fonts.add(w)}catch(e){this.config.showWarning&&console.warn(e)}}},e.prototype.applyMutation=function(e,t){var r,i,a=this;e.removes.forEach((function(t){var r=a.mirror.getNode(t.id);if(!r){if(e.removes.find((function(e){return e.id===t.parentId})))return;return a.warnNodeNotFound(e,t.id)}a.virtualStyleRulesMap.has(r)&&a.virtualStyleRulesMap.delete(r);var n=a.mirror.getNode(t.parentId);if(!n)return a.warnNodeNotFound(e,t.parentId);if(t.isShadow&&f.hasShadowRoot(n)&&(n=n.shadowRoot),a.mirror.removeNodeFromMap(r),n){var o=null,i="__sn"in n?a.fragmentParentMap.get(n):void 0;i&&i.contains(r)?n=i:a.fragmentParentMap.has(r)&&(o=a.fragmentParentMap.get(r),a.fragmentParentMap.delete(r),r=o);try{n.removeChild(r)}catch(t){if(!(t instanceof DOMException))throw t;a.warn("parent could not remove child in mutation",n,i,r,o,e)}}}));var l=n({},this.legacy_missingNodeRetryMap),u=[],c=function(e){var r,n,i,c;if(!a.iframe.contentDocument)return console.warn("Looks like your replayer has been destroyed.");var d=a.mirror.getNode(e.parentId);if(!d)return e.node.type===s.NodeType.Document?a.newDocumentQueue.push(e):u.push(e);var p=null;a.iframe.contentDocument.contains?p=a.iframe.contentDocument.contains(d):a.iframe.contentDocument.body.contains&&(p=a.iframe.contentDocument.body.contains(d));var h=(null===(c=(i=d).getElementsByTagName)||void 0===c?void 0:c.call(i,"iframe").length)>0;if(t&&p&&!f.isIframeINode(d)&&!h){var v=document.createDocumentFragment();for(a.mirror.map[e.parentId]=v,a.fragmentParentMap.set(v,d),a.storeState(d);d.firstChild;)v.appendChild(d.firstChild);d=v}e.node.isShadow&&f.hasShadowRoot(d)&&(d=d.shadowRoot);var m=null,y=null;if(e.previousId&&(m=a.mirror.getNode(e.previousId)),e.nextId&&(y=a.mirror.getNode(e.nextId)),function(e){var t=null;return e.nextId&&(t=a.mirror.getNode(e.nextId)),null!==e.nextId&&void 0!==e.nextId&&-1!==e.nextId&&!t}(e))return u.push(e);if(!e.node.rootId||a.mirror.getNode(e.node.rootId)){var g=e.node.rootId?a.mirror.getNode(e.node.rootId):a.iframe.contentDocument;if(f.isIframeINode(d))a.attachDocumentToIframe(e,d);else{var b=s.buildNodeWithSN(e.node,{doc:g,map:a.mirror.map,skipChild:!0,hackCss:!0,cache:a.cache});if(-1!==e.previousId&&-1!==e.nextId){if("__sn"in d&&d.__sn.type===s.NodeType.Element&&"textarea"===d.__sn.tagName&&e.node.type===s.NodeType.Text)try{for(var S=o(Array.from(d.childNodes)),T=S.next();!T.done;T=S.next()){var x=T.value;x.nodeType===d.TEXT_NODE&&d.removeChild(x)}}catch(e){r={error:e}}finally{try{T&&!T.done&&(n=S.return)&&n.call(S)}finally{if(r)throw r.error}}if(m&&m.nextSibling&&m.nextSibling.parentNode)d.insertBefore(b,m.nextSibling);else if(y&&y.parentNode)d.contains(y)?d.insertBefore(b,y):d.insertBefore(b,null);else{if(d===g)for(;g.firstChild;)g.removeChild(g.firstChild);d.appendChild(b)}if(f.isIframeINode(b)){var w=a.newDocumentQueue.find((function(e){return e.parentId===b.__sn.id}));w&&(a.attachDocumentToIframe(w,b),a.newDocumentQueue=a.newDocumentQueue.filter((function(e){return e!==w})))}(e.previousId||e.nextId)&&a.legacy_resolveMissingNode(l,d,b,e)}else l[e.node.id]={node:b,mutation:e}}}};e.adds.forEach((function(e){c(e)}));for(var d=Date.now();u.length;){var p=f.queueToResolveTrees(u);if(u.length=0,Date.now()-d>500){this.warn("Timeout in the loop, please check the resolve tree data:",p);break}try{for(var h=(r=void 0,o(p)),v=h.next();!v.done;v=h.next()){var m=v.value;this.mirror.getNode(m.value.parentId)?f.iterateResolveTree(m,(function(e){c(e)})):this.debug("Drop resolve tree since there is no parent for the root node.",m)}}catch(e){r={error:e}}finally{try{v&&!v.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}}Object.keys(l).length&&Object.assign(this.legacy_missingNodeRetryMap,l),e.texts.forEach((function(t){var r=a.mirror.getNode(t.id);if(!r){if(e.removes.find((function(e){return e.id===t.id})))return;return a.warnNodeNotFound(e,t.id)}a.fragmentParentMap.has(r)&&(r=a.fragmentParentMap.get(r)),r.textContent=t.value})),e.attributes.forEach((function(t){var r=a.mirror.getNode(t.id);if(!r){if(e.removes.find((function(e){return e.id===t.id})))return;return a.warnNodeNotFound(e,t.id)}for(var n in a.fragmentParentMap.has(r)&&(r=a.fragmentParentMap.get(r)),t.attributes)if("string"==typeof n){var o=t.attributes[n];if(null===o)r.removeAttribute(n);else if("string"==typeof o)try{r.setAttribute(n,o)}catch(e){a.config.showWarning&&console.warn("An error occurred may due to the checkout feature.",e)}else if("style"===n){var i=o,s=r;for(var l in i)if(!1===i[l])s.style.removeProperty(l);else if(i[l]instanceof Array){var u=i[l];s.style.setProperty(l,u[0],u[1])}else{var c=i[l];s.style.setProperty(l,c)}}}}))},e.prototype.applyScroll=function(e,t){var r=this.mirror.getNode(e.id);if(!r)return this.debugNodeNotFound(e,e.id);if(r===this.iframe.contentDocument)this.iframe.contentWindow.scrollTo({top:e.y,left:e.x,behavior:t?"auto":"smooth"});else if(r.__sn.type===s.NodeType.Document)r.defaultView.scrollTo({top:e.y,left:e.x,behavior:t?"auto":"smooth"});else try{r.scrollTop=e.y,r.scrollLeft=e.x}catch(e){}},e.prototype.applyInput=function(e){var t=this.mirror.getNode(e.id);if(!t)return this.debugNodeNotFound(e,e.id);try{t.checked=e.isChecked,t.value=e.text}catch(e){}},e.prototype.legacy_resolveMissingNode=function(e,t,r,n){var o=n.previousId,i=n.nextId,a=o&&e[o],s=i&&e[i];if(a){var l=a,u=l.node,c=l.mutation;t.insertBefore(u,r),delete e[c.node.id],delete this.legacy_missingNodeRetryMap[c.node.id],(c.previousId||c.nextId)&&this.legacy_resolveMissingNode(e,t,u,c)}if(s){var d=s;u=d.node,c=d.mutation,t.insertBefore(u,r.nextSibling),delete e[c.node.id],delete this.legacy_missingNodeRetryMap[c.node.id],(c.previousId||c.nextId)&&this.legacy_resolveMissingNode(e,t,u,c)}},e.prototype.moveAndHover=function(e,t,r,n,o){var i=this.mirror.getNode(r);if(!i)return this.debugNodeNotFound(o,r);var a=f.getBaseDimension(i,this.iframe),s=e*a.absoluteScale+a.x,l=t*a.absoluteScale+a.y;this.mouse.style.left=s+"px",this.mouse.style.top=l+"px",n||this.drawMouseTail({x:s,y:l}),this.hoverElements(i)},e.prototype.drawMouseTail=function(e){var t=this;if(this.mouseTail){var r=!0===this.config.mouseTail?S:Object.assign({},S,this.config.mouseTail),n=r.lineCap,o=r.lineWidth,i=r.strokeStyle,a=r.duration,s=function(){if(t.mouseTail){var e=t.mouseTail.getContext("2d");e&&t.tailPositions.length&&(e.clearRect(0,0,t.mouseTail.width,t.mouseTail.height),e.beginPath(),e.lineWidth=o,e.lineCap=n,e.strokeStyle=i,e.moveTo(t.tailPositions[0].x,t.tailPositions[0].y),t.tailPositions.forEach((function(t){return e.lineTo(t.x,t.y)})),e.stroke())}};this.tailPositions.push(e),s(),setTimeout((function(){t.tailPositions=t.tailPositions.filter((function(t){return t!==e})),s()}),a/this.speedService.state.context.timer.speed)}},e.prototype.hoverElements=function(e){var t;null===(t=this.iframe.contentDocument)||void 0===t||t.querySelectorAll(".\\:hover").forEach((function(e){e.classList.remove(":hover")}));for(var r=e;r;)r.classList&&r.classList.add(":hover"),r=r.parentElement},e.prototype.isUserInteraction=function(e){return e.type===p.EventType.IncrementalSnapshot&&e.data.source>p.IncrementalSource.Mutation&&e.data.source<=p.IncrementalSource.Input},e.prototype.backToNormal=function(){this.nextUserInteractionEvent=null,this.speedService.state.matches("normal")||(this.speedService.send({type:"BACK_TO_NORMAL"}),this.emitter.emit(p.ReplayerEvents.SkipEnd,{speed:this.speedService.state.context.normalSpeed}))},e.prototype.restoreRealParent=function(e,t){this.mirror.map[t.__sn.id]=t,t.__sn.type===s.NodeType.Element&&"textarea"===t.__sn.tagName&&e.textContent&&(t.value=e.textContent);try{t.appendChild(e),this.restoreState(t)}catch(e){console.warn(e)}},e.prototype.storeState=function(e){var t,r;if(e&&e.nodeType===e.ELEMENT_NODE){var n=e;(n.scrollLeft||n.scrollTop)&&this.elementStateMap.set(e,{scroll:[n.scrollLeft,n.scrollTop]}),"STYLE"===n.tagName&&v.storeCSSRules(n,this.virtualStyleRulesMap);var i=n.children;try{for(var a=o(Array.from(i)),s=a.next();!s.done;s=a.next()){var l=s.value;this.storeState(l)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}}},e.prototype.restoreState=function(e){var t,r;if(e.nodeType===e.ELEMENT_NODE){var n=e;if(this.elementStateMap.has(e)){var i=this.elementStateMap.get(e);i.scroll&&(n.scrollLeft=i.scroll[0],n.scrollTop=i.scroll[1]),this.elementStateMap.delete(e)}var a=n.children;try{for(var s=o(Array.from(a)),l=s.next();!l.done;l=s.next()){var u=l.value;this.restoreState(u)}}catch(e){t={error:e}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}}},e.prototype.restoreNodeSheet=function(e){var t=this.virtualStyleRulesMap.get(e);if("STYLE"===e.nodeName&&t){var r=e;v.applyVirtualStyleRulesToNode(t,r)}},e.prototype.warnNodeNotFound=function(e,t){this.treeIndex.idRemoved(t)?this.warn("Node with id '"+t+"' was previously removed. ",e):this.warn("Node with id '"+t+"' not found. ",e)},e.prototype.warnCanvasMutationFailed=function(e,t){this.warn("Has error on canvas update",t,"canvas mutation:",e)},e.prototype.debugNodeNotFound=function(e,t){this.treeIndex.idRemoved(t)?this.debug(b,"Node with id '"+t+"' was previously removed. ",e):this.debug(b,"Node with id '"+t+"' not found. ",e)},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.config.showWarning&&console.warn.apply(console,a([b],e))},e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.config.showDebug&&console.log.apply(console,a([b],e))},e}();t.Replayer=x},129:function(e,t,r){var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.createSpeedService=t.createPlayerService=t.discardPriorSnapshots=void 0;var i=r(537),a=r(699),s=r(104);function l(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.type===a.EventType.Meta&&n.timestamp<=t)return e.slice(r)}return e}t.discardPriorSnapshots=l,t.createPlayerService=function(e,t){var r=t.getCastFn,u=t.applyEventsSynchronously,c=t.emitter,d=i.createMachine({id:"player",context:e,initial:"paused",states:{playing:{on:{PAUSE:{target:"paused",actions:["pause"]},CAST_EVENT:{target:"playing",actions:"castEvent"},END:{target:"paused",actions:["resetLastPlayedEvent","pause"]},ADD_EVENT:{target:"playing",actions:["addEvent"]},REPLACE_EVENTS:{target:"playing",actions:["replaceEvents"]}}},paused:{on:{PLAY:{target:"playing",actions:["recordTimeOffset","play"]},CAST_EVENT:{target:"paused",actions:"castEvent"},TO_LIVE:{target:"live",actions:["startLive"]},ADD_EVENT:{target:"paused",actions:["addEvent"]},REPLACE_EVENTS:{target:"paused",actions:["replaceEvents"]}}},live:{on:{ADD_EVENT:{target:"live",actions:["addEvent"]},CAST_EVENT:{target:"live",actions:["castEvent"]}}}}},{actions:{castEvent:i.assign({lastPlayedEvent:function(e,t){return"CAST_EVENT"===t.type?t.payload.event:e.lastPlayedEvent}}),recordTimeOffset:i.assign((function(e,t){var r=e.timeOffset;return"payload"in t&&"timeOffset"in t.payload&&(r=t.payload.timeOffset),n(n({},e),{timeOffset:r,baselineTime:e.events[0].timestamp+r})})),play:function(e){var t,n,i,d,p,f=e.timer,h=e.events,v=e.baselineTime,m=e.lastPlayedEvent;f.clear();try{for(var y=o(h),g=y.next();!g.done;g=y.next()){var b=g.value;s.addDelay(b,v)}}catch(e){t={error:e}}finally{try{g&&!g.done&&(n=y.return)&&n.call(y)}finally{if(t)throw t.error}}var S=l(h,v),T=null==m?void 0:m.timestamp;(null==m?void 0:m.type)===a.EventType.IncrementalSnapshot&&m.data.source===a.IncrementalSource.MouseMove&&(T=m.timestamp+(null===(p=m.data.positions[0])||void 0===p?void 0:p.timeOffset)),v<(T||0)&&c.emit(a.ReplayerEvents.PlayBack);var x=new Array,w=new Array,I=function(e){if(T&&T<v&&(e.timestamp<=T||e===m))return"continue";if(e.timestamp<v)x.push(e);else{var t=r(e,!1);w.push({doAction:function(){t()},delay:e.delay})}};try{for(var E=o(S),C=E.next();!C.done;C=E.next())I(C.value)}catch(e){i={error:e}}finally{try{C&&!C.done&&(d=E.return)&&d.call(E)}finally{if(i)throw i.error}}u(x),c.emit(a.ReplayerEvents.Flush),f.addActions(w),f.start()},pause:function(e){e.timer.clear()},resetLastPlayedEvent:i.assign((function(e){return n(n({},e),{lastPlayedEvent:null})})),startLive:i.assign({baselineTime:function(e,t){return e.timer.toggleLiveMode(!0),e.timer.start(),"TO_LIVE"===t.type&&t.payload.baselineTime?t.payload.baselineTime:Date.now()}}),replaceEvents:i.assign((function(e,t){var i,a,l=e.events,u=e.timer,c=e.baselineTime;if("REPLACE_EVENTS"===t.type){var d=t.payload.events;l.length=0;var p=[],f=function(e){if(s.addDelay(e,c),l.push(e),e.timestamp>=u.timeOffset+c){var t=r(e,!1);p.push({doAction:function(){t()},delay:e.delay})}};try{for(var h=o(d),v=h.next();!v.done;v=h.next())f(v.value)}catch(e){i={error:e}}finally{try{v&&!v.done&&(a=h.return)&&a.call(h)}finally{if(i)throw i.error}}u.isActive()&&u.replaceActions(p)}return n(n({},e),{events:l})})),addEvent:i.assign((function(e,t){var o=e.baselineTime,i=e.timer,a=e.events;if("ADD_EVENT"===t.type){var l=t.payload.event;s.addDelay(l,o);var u=a.length-1;if(!a[u]||a[u].timestamp<=l.timestamp)a.push(l);else{for(var c=-1,d=0;d<=u;){var p=Math.floor((d+u)/2);a[p].timestamp<=l.timestamp?d=p+1:u=p-1}-1===c&&(c=d),a.splice(c,0,l)}var f=l.timestamp<o,h=r(l,f);f?h():i.isActive()&&i.addAction({doAction:function(){h()},delay:l.delay})}return n(n({},e),{events:a})}))}});return i.interpret(d)},t.createSpeedService=function(e){var t=i.createMachine({id:"speed",context:e,initial:"normal",states:{normal:{on:{FAST_FORWARD:{target:"skipping",actions:["recordSpeed","setSpeed"]},SET_SPEED:{target:"normal",actions:["setSpeed"]}}},skipping:{on:{BACK_TO_NORMAL:{target:"normal",actions:["restoreSpeed"]},SET_SPEED:{target:"normal",actions:["setSpeed"]}}}}},{actions:{setSpeed:function(e,t){"payload"in t&&e.timer.setSpeed(t.payload.speed)},recordSpeed:i.assign({normalSpeed:function(e){return e.timer.speed}}),restoreSpeed:function(e){e.timer.setSpeed(e.normalSpeed)}}});return i.interpret(t)}},669:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.polyfill=void 0,t.polyfill=function(e,t){if(void 0===e&&(e=window),void 0===t&&(t=document),!("scrollBehavior"in t.documentElement.style)||!0===e.__forceSmoothScrollPolyfill__){var r,n=e.HTMLElement||e.Element,o={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:n.prototype.scroll||s,scrollIntoView:n.prototype.scrollIntoView},i=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now,a=(r=e.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(r)?1:0);e.scroll=e.scrollTo=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?h.call(e,t.body,void 0!==arguments[0].left?~~arguments[0].left:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:e.scrollY||e.pageYOffset):o.scroll.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:e.scrollY||e.pageYOffset))},e.scrollBy=function(){void 0!==arguments[0]&&(l(arguments[0])?o.scrollBy.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):h.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset)))},n.prototype.scroll=n.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==l(arguments[0])){var e=arguments[0].left,t=arguments[0].top;h.call(this,this,void 0===e?this.scrollLeft:~~e,void 0===t?this.scrollTop:~~t)}else{if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");o.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},n.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):o.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},n.prototype.scrollIntoView=function(){if(!0!==l(arguments[0])){var r=p(this),n=r.getBoundingClientRect(),i=this.getBoundingClientRect();r!==t.body?(h.call(this,r,r.scrollLeft+i.left-n.left,r.scrollTop+i.top-n.top),"fixed"!==e.getComputedStyle(r).position&&e.scrollBy({left:n.left,top:n.top,behavior:"smooth"})):e.scrollBy({left:i.left,top:i.top,behavior:"smooth"})}else o.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])}}function s(e,t){this.scrollLeft=e,this.scrollTop=t}function l(e){if(null===e||"object"!=typeof e||void 0===e.behavior||"auto"===e.behavior||"instant"===e.behavior)return!0;if("object"==typeof e&&"smooth"===e.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+e.behavior+" is not a valid value for enumeration ScrollBehavior.")}function u(e,t){return"Y"===t?e.clientHeight+a<e.scrollHeight:"X"===t?e.clientWidth+a<e.scrollWidth:void 0}function c(t,r){var n=e.getComputedStyle(t,null)["overflow"+r];return"auto"===n||"scroll"===n}function d(e){var t=u(e,"Y")&&c(e,"Y"),r=u(e,"X")&&c(e,"X");return t||r}function p(e){for(;e!==t.body&&!1===d(e);)e=e.parentNode||e.host;return e}function f(t){var r,n,o,a,s=(i()-t.startTime)/468;a=s=s>1?1:s,r=.5*(1-Math.cos(Math.PI*a)),n=t.startX+(t.x-t.startX)*r,o=t.startY+(t.y-t.startY)*r,t.method.call(t.scrollable,n,o),n===t.x&&o===t.y||e.requestAnimationFrame(f.bind(e,t))}function h(r,n,a){var l,u,c,d,p=i();r===t.body?(l=e,u=e.scrollX||e.pageXOffset,c=e.scrollY||e.pageYOffset,d=o.scroll):(l=r,u=r.scrollLeft,c=r.scrollTop,d=s),f({scrollable:l,method:d,startTime:p,startX:u,startY:c,x:n,y:a})}}},277:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return["noscript { display: none !important; }","."+e+" { background: currentColor; border-radius: 5px; }","."+e+":hover::after {content: 'Redacted'; color: white; background: black; text-align: center; width: 100%; display: block;}"]}},104:function(e,t,r){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(n(arguments[t]));return e};Object.defineProperty(t,"__esModule",{value:!0}),t.addDelay=t.Timer=void 0;var i=r(699),a=function(){function e(e,t){void 0===e&&(e=[]),this.timeOffset=0,this.raf=null,this.actions=e,this.speed=t}return e.prototype.addAction=function(e){var t=this.findActionIndex(e);this.actions.splice(t,0,e)},e.prototype.addActions=function(e){this.actions=this.actions.concat(e)},e.prototype.replaceActions=function(e){var t;this.actions.length=0,(t=this.actions).splice.apply(t,o([0,0],e))},e.prototype.start=function(){this.timeOffset=0;var e=performance.now(),t=this.actions,r=this;this.raf=requestAnimationFrame((function n(){var o=performance.now();for(r.timeOffset+=(o-e)*r.speed,e=o;t.length;){var i=t[0];if(!(r.timeOffset>=i.delay))break;t.shift(),i.doAction()}(t.length>0||r.liveMode)&&(r.raf=requestAnimationFrame(n))}))},e.prototype.clear=function(){this.raf&&(cancelAnimationFrame(this.raf),this.raf=null),this.actions.length=0},e.prototype.setSpeed=function(e){this.speed=e},e.prototype.toggleLiveMode=function(e){this.liveMode=e},e.prototype.isActive=function(){return null!==this.raf},e.prototype.findActionIndex=function(e){for(var t=0,r=this.actions.length-1;t<=r;){var n=Math.floor((t+r)/2);if(this.actions[n].delay<e.delay)t=n+1;else{if(!(this.actions[n].delay>e.delay))return n+1;r=n-1}}return t},e}();t.Timer=a,t.addDelay=function(e,t){if(e.type===i.EventType.IncrementalSnapshot&&e.data.source===i.IncrementalSource.MouseMove){var r=e.data.positions[0].timeOffset,n=e.timestamp+r;return e.delay=n-t,n-t}return e.delay=e.timestamp-t,e.delay}},401:function(e,t){var r,n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(n(arguments[t]));return e};function i(e,t){var r=e[t[0]];return 1===t.length?r:i(r.cssRules[t[1]].cssRules,t.slice(2))}function a(e){var t=o(e),r=t.pop();return{positions:t,index:r}}Object.defineProperty(t,"__esModule",{value:!0}),t.storeCSSRules=t.applyVirtualStyleRulesToNode=t.getPositionsAndIndex=t.getNestedRule=t.StyleRuleType=void 0,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"}(r=t.StyleRuleType||(t.StyleRuleType={})),t.getNestedRule=i,t.getPositionsAndIndex=a,t.applyVirtualStyleRulesToNode=function(e,t){var o=t.sheet;o&&e.forEach((function(e){if(e.type===r.Insert)try{if(Array.isArray(e.index)){var s=a(e.index),l=s.positions,u=s.index;i(o.cssRules,l).insertRule(e.cssText,u)}else o.insertRule(e.cssText,e.index)}catch(e){}else if(e.type===r.Remove)try{if(Array.isArray(e.index)){var c=a(e.index);l=c.positions,u=c.index,i(o.cssRules,l).deleteRule(u||0)}else o.deleteRule(e.index)}catch(e){}else e.type===r.Snapshot?function(e,t){var r;try{var o=Array.from((null===(r=t.sheet)||void 0===r?void 0:r.cssRules)||[]).map((function(e){return e.cssText})),i=Object.entries(o).reverse(),a=o.length;i.forEach((function(r){var o,i=n(r,2),s=i[0],l=i[1],u=e.indexOf(l);if(-1===u||u>a)try{null===(o=t.sheet)||void 0===o||o.deleteRule(Number(s))}catch(e){}a=u})),e.forEach((function(e,r){var n,o,i;try{(null===(o=null===(n=t.sheet)||void 0===n?void 0:n.cssRules[r])||void 0===o?void 0:o.cssText)!==e&&(null===(i=t.sheet)||void 0===i||i.insertRule(e,r))}catch(e){}}))}catch(e){}}(e.cssTexts,t):e.type===r.SetProperty?i(o.cssRules,e.index).style.setProperty(e.property,e.value,e.priority):e.type===r.RemoveProperty&&i(o.cssRules,e.index).style.removeProperty(e.property)}))},t.storeCSSRules=function(e,t){var n;try{var o=Array.from((null===(n=e.sheet)||void 0===n?void 0:n.cssRules)||[]).map((function(e){return e.cssText}));t.set(e,[{type:r.Snapshot,cssTexts:o}])}catch(e){}}},490:function(e,t){var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function o(e){return e?e.replace(/^\s+|\s+$/g,""):""}function i(e,t){var n,o,a=e&&"string"==typeof e.type,s=a?e:t;try{for(var l=r(Object.keys(e)),u=l.next();!u.done;u=l.next()){var c=e[u.value];Array.isArray(c)?c.forEach((function(e){i(e,s)})):c&&"object"==typeof c&&i(c,s)}}catch(e){n={error:e}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}return a&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}t.parse=function(e,t){void 0===t&&(t={});var r=1,a=1;function s(e){var t=e.match(/\n/g);t&&(r+=t.length);var n=e.lastIndexOf("\n");a=-1===n?a+e.length:e.length-n}function l(){var e={line:r,column:a};return function(t){return t.position=new u(e),m(),t}}var u=function(e){this.start=e,this.end={line:r,column:a},this.source=t.source};u.prototype.content=e;var c=[];function d(n){var o=new Error(t.source+":"+r+":"+a+": "+n);if(o.reason=n,o.filename=t.source,o.line=r,o.column=a,o.source=e,!t.silent)throw o;c.push(o)}function p(){return v(/^{\s*/)}function f(){return v(/^}/)}function h(){var t,r,n,o=[];for(m(),y(o);e.length&&"}"!==e.charAt(0)&&(t=k()||(r=void 0,n=void 0,r=l(),(n=b())?(y(),r({type:"rule",selectors:n,declarations:T()})):d("selector missing")));)!1!==t&&(o.push(t),y(o));return o}function v(t){var r=t.exec(e);if(r){var n=r[0];return s(n),e=e.slice(n.length),r}}function m(){v(/^\s*/)}function y(e){var t;for(void 0===e&&(e=[]);t=g();)!1!==t&&e.push(t),t=g();return e}function g(){var t=l();if("/"===e.charAt(0)&&"*"===e.charAt(1)){for(var r=2;""!==e.charAt(r)&&("*"!==e.charAt(r)||"/"!==e.charAt(r+1));)++r;if(r+=2,""===e.charAt(r-1))return d("End of comment missing");var n=e.slice(2,r-2);return a+=2,s(n),e=e.slice(r),a+=2,t({type:"comment",comment:n})}}function b(){var e=v(/^([^{]+)/);if(e)return o(e[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,(function(e){return e.replace(/,/g,"")})).split(/\s*(?![^(]*\)),\s*/).map((function(e){return e.replace(/\u200C/g,",")}))}function S(){var e=l(),t=v(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(t){var r=o(t[0]);if(!v(/^:\s*/))return d("property missing ':'");var i=v(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),a=e({type:"declaration",property:r.replace(n,""),value:i?o(i[0]).replace(n,""):""});return v(/^[;\s]*/),a}}function T(){var e,t=[];if(!p())return d("missing '{'");for(y(t);e=S();)!1!==e&&(t.push(e),y(t)),e=S();return f()?t:d("missing '}'")}function x(){for(var e,t=[],r=l();e=v(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),v(/^,\s*/);if(t.length)return r({type:"keyframe",values:t,declarations:T()})}var w,I=M("import"),E=M("charset"),C=M("namespace");function M(e){var t=new RegExp("^@"+e+"\\s*([^;]+);");return function(){var r=l(),n=v(t);if(n){var o={type:e};return o[e]=n[1].trim(),r(o)}}}function k(){if("@"===e[0])return function(){var e=l(),t=v(/^@([-\w]+)?keyframes\s*/);if(t){var r=t[1];if(!(t=v(/^([-\w]+)\s*/)))return d("@keyframes missing name");var n,o=t[1];if(!p())return d("@keyframes missing '{'");for(var i=y();n=x();)i.push(n),i=i.concat(y());return f()?e({type:"keyframes",name:o,vendor:r,keyframes:i}):d("@keyframes missing '}'")}}()||function(){var e=l(),t=v(/^@media *([^{]+)/);if(t){var r=o(t[1]);if(!p())return d("@media missing '{'");var n=y().concat(h());return f()?e({type:"media",media:r,rules:n}):d("@media missing '}'")}}()||function(){var e=l(),t=v(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(t)return e({type:"custom-media",name:o(t[1]),media:o(t[2])})}()||function(){var e=l(),t=v(/^@supports *([^{]+)/);if(t){var r=o(t[1]);if(!p())return d("@supports missing '{'");var n=y().concat(h());return f()?e({type:"supports",supports:r,rules:n}):d("@supports missing '}'")}}()||I()||E()||C()||function(){var e=l(),t=v(/^@([-\w]+)?document *([^{]+)/);if(t){var r=o(t[1]),n=o(t[2]);if(!p())return d("@document missing '{'");var i=y().concat(h());return f()?e({type:"document",document:n,vendor:r,rules:i}):d("@document missing '}'")}}()||function(){var e=l();if(v(/^@page */)){var t=b()||[];if(!p())return d("@page missing '{'");for(var r,n=y();r=S();)n.push(r),n=n.concat(y());return f()?e({type:"page",selectors:t,declarations:n}):d("@page missing '}'")}}()||function(){var e=l();if(v(/^@host\s*/)){if(!p())return d("@host missing '{'");var t=y().concat(h());return f()?e({type:"host",rules:t}):d("@host missing '}'")}}()||function(){var e=l();if(v(/^@font-face\s*/)){if(!p())return d("@font-face missing '{'");for(var t,r=y();t=S();)r.push(t),r=r.concat(y());return f()?e({type:"font-face",declarations:r}):d("@font-face missing '}'")}}()}return i((w=h(),{type:"stylesheet",stylesheet:{source:t.source,rules:w,parsingErrors:c}}))}},348:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||t.hasOwnProperty(r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.IGNORED_NODE=t.needMaskingText=t.cleanupSnapshot=t.visitSnapshot=t.transformAttribute=t.createCache=t.addHoverClass=t.buildNodeWithSN=t.rebuild=t.serializeNodeWithId=t.snapshot=void 0;var i=r(858);t.snapshot=i.default,Object.defineProperty(t,"serializeNodeWithId",{enumerable:!0,get:function(){return i.serializeNodeWithId}}),Object.defineProperty(t,"transformAttribute",{enumerable:!0,get:function(){return i.transformAttribute}}),Object.defineProperty(t,"visitSnapshot",{enumerable:!0,get:function(){return i.visitSnapshot}}),Object.defineProperty(t,"cleanupSnapshot",{enumerable:!0,get:function(){return i.cleanupSnapshot}}),Object.defineProperty(t,"needMaskingText",{enumerable:!0,get:function(){return i.needMaskingText}}),Object.defineProperty(t,"IGNORED_NODE",{enumerable:!0,get:function(){return i.IGNORED_NODE}});var a=r(189);t.rebuild=a.default,Object.defineProperty(t,"buildNodeWithSN",{enumerable:!0,get:function(){return a.buildNodeWithSN}}),Object.defineProperty(t,"addHoverClass",{enumerable:!0,get:function(){return a.addHoverClass}}),Object.defineProperty(t,"createCache",{enumerable:!0,get:function(){return a.createCache}}),o(r(397),t),o(r(606),t)},189:function(e,t,r){var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.buildNodeWithSN=t.createCache=t.addHoverClass=void 0;var o=r(490),i=r(397),a=r(606),s={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"},l=/([^\\]):hover/,u=new RegExp(l.source,"g");function c(e,t){var r;if(!(null===(r=window.HIG_CONFIGURATION)||void 0===r?void 0:r.enableOnHoverClass))return e;var n=null==t?void 0:t.stylesWithHoverClass.get(e);if(n)return n;var i=o.parse(e,{silent:!0});if(!i.stylesheet)return e;var a=[];if(i.stylesheet.rules.forEach((function(e){"selectors"in e&&(e.selectors||[]).forEach((function(e){l.test(e)&&a.push(e)}))})),0===a.length)return e;var s=new RegExp(a.filter((function(e,t){return a.indexOf(e)===t})).sort((function(e,t){return t.length-e.length})).map((function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")})).join("|"),"g"),c=e.replace(s,(function(e){var t=e.replace(u,"$1.\\:hover");return e+", "+t}));return null==t||t.stylesWithHoverClass.set(e,c),c}function d(e,t){var r,o,l=t.doc,u=t.map,p=t.skipChild,f=void 0!==p&&p,h=t.hackCss,v=void 0===h||h,m=t.afterAppend,y=t.cache,g=function(e,t){var r=t.doc,o=t.hackCss,a=t.cache;switch(e.type){case i.NodeType.Document:return r.implementation.createDocument(null,"",null);case i.NodeType.DocumentType:return r.implementation.createDocumentType(e.name||"html",e.publicId,e.systemId);case i.NodeType.Element:var l,u=function(e){var t=s[e.tagName]?s[e.tagName]:e.tagName;return"link"===t&&e.attributes._cssText&&(t="style"),t}(e);l=e.isSVG?r.createElementNS("http://www.w3.org/2000/svg",u):r.createElement(u);var d=function(t){var i,s;if(!e.attributes.hasOwnProperty(t))return"continue";var d=e.attributes[t];if("option"===u&&"selected"===t&&!1===d)return"continue";if(d="boolean"==typeof d||"number"==typeof d?"":d,t.startsWith("rr_")){if("canvas"===u&&"rr_dataURL"===t){var p=document.createElement("img");p.src=d,p.onload=function(){var e=l.getContext("2d");e&&e.drawImage(p,0,0,p.width,p.height)}}if("rr_width"===t&&(l.style.width=d),"rr_height"===t&&(l.style.height=d),"rr_mediaCurrentTime"===t&&(l.currentTime=e.attributes.rr_mediaCurrentTime),"rr_mediaState"===t)switch(d){case"played":l.play().catch((function(e){return console.warn("media playback error",e)}));break;case"paused":l.pause()}}else{var f="textarea"===u&&"value"===t,h="style"===u&&"_cssText"===t;if(h&&o&&"string"==typeof(d=c(d,a))){for(var v=/url\(\"https:\/\/\S*(.eot|.woff2|.ttf|.woff)\S*\"\)/gm,m=void 0,y=[];null!==(m=v.exec(d));)m.index===v.lastIndex&&v.lastIndex++,m.forEach((function(e,t){if(0===t){var r=e.slice(5,e.length-2);y.push({originalUrl:r,proxyUrl:r.replace(r,"https://replay-cors-proxy.highlightrun.workers.dev?url="+r)})}}));y.forEach((function(e){d=d.replace(e.originalUrl,e.proxyUrl)}))}if(f||h){var g=r.createTextNode(d);try{for(var b=(i=void 0,n(Array.from(l.childNodes))),S=b.next();!S.done;S=b.next()){var T=S.value;T.nodeType===l.TEXT_NODE&&l.removeChild(T)}}catch(e){i={error:e}}finally{try{S&&!S.done&&(s=b.return)&&s.call(b)}finally{if(i)throw i.error}}return l.appendChild(g),"continue"}try{if(e.isSVG&&"xlink:href"===t)l.setAttributeNS("http://www.w3.org/1999/xlink",t,d);else if("onload"===t||"onclick"===t||"onmouse"===t.substring(0,7))l.setAttribute("_"+t,d);else{if("meta"===u&&"Content-Security-Policy"===e.attributes["http-equiv"]&&"content"===t)return l.setAttribute("csp-content",d),"continue";"link"===u&&"preload"===e.attributes.rel&&"script"===e.attributes.as||"link"===u&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&e.attributes.href.endsWith(".js")||l.setAttribute(t,d)}}catch(e){}}};for(var p in e.attributes)d(p);if(e.isShadowHost)if(l.shadowRoot)for(;l.shadowRoot.firstChild;)l.shadowRoot.removeChild(l.shadowRoot.firstChild);else l.attachShadow({mode:"open"});return l;case i.NodeType.Text:return r.createTextNode(e.isStyle&&o?c(e.textContent,a):e.textContent);case i.NodeType.CDATA:return r.createCDATASection(e.textContent);case i.NodeType.Comment:return r.createComment(e.textContent);default:return null}}(e,{doc:l,hackCss:v,cache:y});if(!g)return null;if(e.rootId&&console.assert(u[e.rootId]===l,"Target document should has the same root id."),e.type===i.NodeType.Document&&(l.close(),l.open(),"BackCompat"===e.compatMode&&e.childNodes&&e.childNodes[0].type!==i.NodeType.DocumentType&&(e.childNodes[0].type===i.NodeType.Element&&"xmlns"in e.childNodes[0].attributes&&"http://www.w3.org/1999/xhtml"===e.childNodes[0].attributes.xmlns?l.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):l.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),g=l),g.__sn=e,u[e.id]=g,(e.type===i.NodeType.Document||e.type===i.NodeType.Element)&&!f)try{for(var b=n(e.childNodes),S=b.next();!S.done;S=b.next()){var T=S.value,x=d(T,{doc:l,map:u,skipChild:!1,hackCss:v,afterAppend:m,cache:y});x?(T.isShadow&&a.isElement(g)&&g.shadowRoot?g.shadowRoot.appendChild(x):g.appendChild(x),m&&m(x)):console.warn("Failed to rebuild",T)}}catch(e){r={error:e}}finally{try{S&&!S.done&&(o=b.return)&&o.call(b)}finally{if(r)throw r.error}}return g}t.addHoverClass=c,t.createCache=function(){return{stylesWithHoverClass:new Map}},t.buildNodeWithSN=d,t.default=function(e,t){var r=t.doc,n=t.onVisit,o=t.hackCss,a={},s=d(e,{doc:r,map:a,skipChild:!1,hackCss:void 0===o||o,afterAppend:t.afterAppend,cache:t.cache});return function(e,t){for(var r in e)e[r]&&t(e[r])}(a,(function(e){n&&n(e),function(e){var t=e.__sn;if(t.type===i.NodeType.Element){var r=e;for(var n in t.attributes)if(t.attributes.hasOwnProperty(n)&&n.startsWith("rr_")){var o=t.attributes[n];"rr_scrollLeft"===n&&(r.scrollLeft=o),"rr_scrollTop"===n&&(r.scrollTop=o)}}}(e)})),[s,a]}},858:function(e,t,r){var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.cleanupSnapshot=t.visitSnapshot=t.serializeNodeWithId=t.needMaskingText=t._isBlockedElement=t.transformAttribute=t.absoluteToDoc=t.absoluteToStylesheet=t.IGNORED_NODE=void 0;var o=r(593),i=r(397),a=r(606),s=1,l=new RegExp("[^a-z0-9-_:]");function u(e){try{var t=e.rules||e.cssRules;return t?Array.from(t).map(c).join(""):null}catch(e){return null}}function c(e){var t=e.cssText;if(function(e){return"styleSheet"in e}(e))try{t=u(e.styleSheet)||t}catch(e){}return t}t.IGNORED_NODE=-2;var d=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,p=/^(?!www\.|(?:http|ftp)s?:\/\/|[A-Za-z]:\\|\/\/|#).*/,f=/^(data:)([^,]*),(.*)/i;function h(e,t){return(e||"").replace(d,(function(e,r,o,i,a,s){var l,u,c,d=o||a||s,h=r||i||"";if(!d)return e;if(!p.test(d))return"url("+h+d+h+")";if(f.test(d))return"url("+h+d+h+")";if("/"===d[0])return"url("+h+(((c=t).indexOf("//")>-1?c.split("/").slice(0,3).join("/"):c.split("/")[0]).split("?")[0]+d)+h+")";var v=t.split("/"),m=d.split("/");v.pop();try{for(var y=n(m),g=y.next();!g.done;g=y.next()){var b=g.value;"."!==b&&(".."===b?v.pop():v.push(b))}}catch(e){l={error:e}}finally{try{g&&!g.done&&(u=y.return)&&u.call(y)}finally{if(l)throw l.error}}return"url("+h+v.join("/")+h+")"}))}t.absoluteToStylesheet=h;var v=/^[^ \t\n\r\u000c]+/,m=/^[, \t\n\r\u000c]+/;function y(e,t){if(!t||""===t.trim())return t;var r=e.createElement("a");return r.href=t,r.href}function g(){var e=document.createElement("a");return e.href="",e.href}function b(e,t,r,n){return"src"===r||"href"===r&&n||"xlink:href"===r&&n&&"#"!==n[0]?y(e,n):"background"!==r||!n||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===r&&n?function(e,t){if(""===t.trim())return t;var r=0;function n(e){var n,o=e.exec(t.substring(r));return o?(n=o[0],r+=n.length,n):""}for(var o=[];n(m),!(r>=t.length);){var i=n(v);if(","===i.slice(-1))i=y(e,i.substring(0,i.length-1)),o.push(i);else{var a="";i=y(e,i);for(var s=!1;;){var l=t.charAt(r);if(""===l){o.push((i+a).trim());break}if(s)")"===l&&(s=!1);else{if(","===l){r+=1,o.push((i+a).trim());break}"("===l&&(s=!0)}a+=l,r+=1}}}return o.join(", ")}(e,n):"style"===r&&n?h(n,g()):"object"===t&&"data"===r&&n?y(e,n):n:y(e,n)}function S(e,t,r){if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var n=0;n<e.classList.length;n++){var o=e.classList[n];if(t.test(o))return!0}return!!r&&e.matches(r)}function T(e,t,r){if(!e)return!1;if(e.nodeType===e.ELEMENT_NODE){if("string"==typeof t){if(e.classList.contains(t))return!0}else e.classList.forEach((function(e){if(t.test(e))return!0}));return!(!r||!e.matches(r))||T(e.parentNode,t,r)}return e.nodeType,e.TEXT_NODE,T(e.parentNode,t,r)}function x(e){return void 0===e?"":e.toLowerCase()}function w(e,r){var c,d,p,f,v,m=r.doc,y=r.map,I=r.blockClass,E=r.blockSelector,C=r.maskTextClass,M=r.maskTextSelector,k=r.skipChild,N=void 0!==k&&k,_=r.inlineStylesheet,O=void 0===_||_,R=r.maskInputOptions,D=void 0===R?{}:R,P=r.maskTextFn,A=r.maskInputFn,L=r.slimDOMOptions,F=r.recordCanvas,j=void 0!==F&&F,W=r.onSerialize,B=r.onIframeLoad,G=r.iframeLoadTimeout,z=void 0===G?5e3:G,V=r.keepIframeSrcFn,U=void 0===V?function(){return!1}:V,H=r.enableStrictPrivacy,Y=r.preserveWhiteSpace,q=void 0===Y||Y,X=function(e,t){var r,s,c,d,p,f,v=t.doc,m=t.blockClass,y=t.blockSelector,x=t.maskTextClass,w=t.maskTextSelector,I=t.inlineStylesheet,E=t.maskInputOptions,C=void 0===E?{}:E,M=t.maskTextFn,k=t.maskInputFn,N=t.recordCanvas,_=t.keepIframeSrcFn,O=t.enableStrictPrivacy;if(v.__sn){var R=v.__sn.id;d=1===R?void 0:R}switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:i.NodeType.Document,childNodes:[],compatMode:e.compatMode,rootId:d}:{type:i.NodeType.Document,childNodes:[],rootId:d};case e.DOCUMENT_TYPE_NODE:return{type:i.NodeType.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:d};case e.ELEMENT_NODE:var D=S(e,m,y),P=function(e){if(e instanceof HTMLFormElement)return"form";var t=e.tagName.toLowerCase().trim();return l.test(t)?"div":t}(e),A={};try{for(var L=n(Array.from(e.attributes)),F=L.next();!F.done;F=L.next()){var j=F.value,W=j.name,B=j.value;A[W]=b(v,P,W,B)}}catch(e){r={error:e}}finally{try{F&&!F.done&&(s=L.return)&&s.call(L)}finally{if(r)throw r.error}}if("link"===P&&I){var G,z=Array.from(v.styleSheets).find((function(t){return t.href===e.href}));(G=u(z))&&(delete A.rel,delete A.href,A._cssText=h(G,z.href))}if("style"===P&&e.sheet&&!(e.innerText||e.textContent||"").trim().length&&(G=u(e.sheet))&&(A._cssText=h(G,g())),"input"!==P&&"textarea"!==P&&"select"!==P||(B=e.value,"radio"!==A.type&&"checkbox"!==A.type&&"submit"!==A.type&&"button"!==A.type&&B?"password"===A.type?A.value="*".repeat(B.length):A.value=a.maskInputValue({type:A.type,tagName:P,value:B,maskInputOptions:C,maskInputFn:k}):e.checked&&(A.checked=e.checked)),"option"===P&&(e.selected&&!C.select?A.selected=!0:delete A.selected),"canvas"===P&&N)if("2d"===e.__context)a.is2DCanvasBlank(e)||(A.rr_dataURL=e.toDataURL());else if(!("__context"in e)){var V=e.toDataURL(),U=document.createElement("canvas");U.width=e.width,U.height=e.height,V!==U.toDataURL()&&(A.rr_dataURL=V)}if("audio"!==P&&"video"!==P||(A.rr_mediaState=e.paused?"paused":"played",A.rr_mediaCurrentTime=e.currentTime),e.scrollLeft&&(A.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(A.rr_scrollTop=e.scrollTop),D||"img"===P&&O){var H=e.getBoundingClientRect(),Y=H.width,q=H.height;A={class:A.class,rr_width:Y+"px",rr_height:q+"px"},D=!0}return"iframe"!==P||_(A.src)||(e.contentDocument||(A.rr_src=A.src),delete A.src),{type:i.NodeType.Element,tagName:P,attributes:A,childNodes:[],isSVG:(f=e,Boolean("svg"===f.tagName||f.ownerSVGElement)||void 0),needBlock:D,rootId:d};case e.TEXT_NODE:var X=e.parentNode&&e.parentNode.tagName,Q=e.textContent,$="STYLE"===X||void 0,K="SCRIPT"===X||void 0,J=!1;if($&&Q){try{e.nextSibling||e.previousSibling||(null===(c=e.parentNode.sheet)||void 0===c?void 0:c.cssRules)&&(Q=(p=e.parentNode.sheet).cssRules?Array.from(p.cssRules).map((function(e){return e.cssText||""})).join(""):"")}catch(e){}Q=h(Q,g()),J=!0}return K?(Q="SCRIPT_PLACEHOLDER",J=!0):"NOSCRIPT"===X&&(Q="",J=!0),!$&&!K&&T(e,x,w)&&Q&&(Q=M?M(Q):Q.replace(/[\S]/g,"*")),O&&!J&&X&&!new Set(["HEAD","TITLE","STYLE","SCRIPT","HTML","BODY","NOSCRIPT"]).has(X)&&Q&&(Q=o.obfuscateText(Q)),{type:i.NodeType.Text,textContent:Q||"",isStyle:$,rootId:d};case e.CDATA_SECTION_NODE:return{type:i.NodeType.CDATA,textContent:"",rootId:d};case e.COMMENT_NODE:return{type:i.NodeType.Comment,textContent:e.textContent||"",rootId:d};default:return!1}}(e,{doc:m,blockClass:I,blockSelector:E,maskTextClass:C,maskTextSelector:M,inlineStylesheet:O,maskInputOptions:D,maskTextFn:P,maskInputFn:A,recordCanvas:j,keepIframeSrcFn:U,enableStrictPrivacy:H});if(!X)return console.warn(e,"not serialized"),null;v="__sn"in e?e.__sn.id:!function(e,t){if(t.comment&&e.type===i.NodeType.Comment)return!0;if(e.type===i.NodeType.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&"preload"===e.attributes.rel&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&e.attributes.href.endsWith(".js")))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(x(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===x(e.attributes.name)||"icon"===x(e.attributes.rel)||"apple-touch-icon"===x(e.attributes.rel)||"shortcut icon"===x(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&x(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(x(e.attributes.property).match(/^(og|twitter|fb):/)||x(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===x(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===x(e.attributes.name)||"googlebot"===x(e.attributes.name)||"bingbot"===x(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===x(e.attributes.name)||"generator"===x(e.attributes.name)||"framework"===x(e.attributes.name)||"publisher"===x(e.attributes.name)||"progid"===x(e.attributes.name)||x(e.attributes.property).match(/^article:/)||x(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("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"===x(e.attributes.name)))return!0}}return!1}(X,L)&&(q||X.type!==i.NodeType.Text||X.isStyle||X.textContent.replace(/^\s+|\s+$/gm,"").length)?s++:t.IGNORED_NODE;var Q=Object.assign(X,{id:v});if(e.__sn=Q,v===t.IGNORED_NODE)return null;y[v]=e,W&&W(e);var $=!N;if(Q.type===i.NodeType.Element){if($=$&&!Q.needBlock,Q.needBlock&&"img"===Q.tagName){var K=e.cloneNode();K.src="",y[v]=K}delete Q.needBlock}if((Q.type===i.NodeType.Document||Q.type===i.NodeType.Element)&&$){L.headWhitespace&&X.type===i.NodeType.Element&&"head"===X.tagName&&(q=!1);var J={doc:m,map:y,blockClass:I,blockSelector:E,maskTextClass:C,maskTextSelector:M,skipChild:N,inlineStylesheet:O,maskInputOptions:D,maskTextFn:P,maskInputFn:A,slimDOMOptions:L,recordCanvas:j,preserveWhiteSpace:q,onSerialize:W,onIframeLoad:B,iframeLoadTimeout:z,keepIframeSrcFn:U,enableStrictPrivacy:H};try{for(var Z=n(Array.from(e.childNodes)),ee=Z.next();!ee.done;ee=Z.next())(ne=w(ee.value,J))&&Q.childNodes.push(ne)}catch(e){c={error:e}}finally{try{ee&&!ee.done&&(d=Z.return)&&d.call(Z)}finally{if(c)throw c.error}}if(a.isElement(e)&&e.shadowRoot){Q.isShadowHost=!0;try{for(var te=n(Array.from(e.shadowRoot.childNodes)),re=te.next();!re.done;re=te.next()){var ne;(ne=w(re.value,J))&&(ne.isShadow=!0,Q.childNodes.push(ne))}}catch(e){p={error:e}}finally{try{re&&!re.done&&(f=te.return)&&f.call(te)}finally{if(p)throw p.error}}}}return e.parentNode&&a.isShadowRoot(e.parentNode)&&(Q.isShadow=!0),Q.type===i.NodeType.Element&&"iframe"===Q.tagName&&function(e,t,r){var n=e.contentWindow;if(n){var o,i=!1;try{o=n.document.readyState}catch(e){return}if("complete"===o){var a="about:blank";n.location.href===a&&e.src!==a&&""!==e.src?e.addEventListener("load",t):setTimeout(t,0)}else{var s=setTimeout((function(){i||(t(),i=!0)}),r);e.addEventListener("load",(function(){clearTimeout(s),i=!0,t()}))}}}(e,(function(){var t=e.contentDocument;if(t&&B){var r=w(t,{doc:t,map:y,blockClass:I,blockSelector:E,maskTextClass:C,maskTextSelector:M,skipChild:!1,inlineStylesheet:O,maskInputOptions:D,maskTextFn:P,maskInputFn:A,slimDOMOptions:L,recordCanvas:j,preserveWhiteSpace:q,onSerialize:W,onIframeLoad:B,iframeLoadTimeout:z,keepIframeSrcFn:U,enableStrictPrivacy:H});r&&B(e,r)}}),z),Q}t.absoluteToDoc=y,t.transformAttribute=b,t._isBlockedElement=S,t.needMaskingText=T,t.serializeNodeWithId=w,t.visitSnapshot=function(e,t){!function e(r){t(r),r.type!==i.NodeType.Document&&r.type!==i.NodeType.Element||r.childNodes.forEach(e)}(e)},t.cleanupSnapshot=function(){s=1},t.default=function(e,t){var r=t||{},n=r.blockClass,o=void 0===n?"highlight-block":n,i=r.blockSelector,a=void 0===i?null:i,s=r.maskTextClass,l=void 0===s?"highlight-mask":s,u=r.maskTextSelector,c=void 0===u?null:u,d=r.inlineStylesheet,p=void 0===d||d,f=r.recordCanvas,h=void 0!==f&&f,v=r.maskAllInputs,m=void 0!==v&&v,y=r.maskTextFn,g=r.maskInputFn,b=r.slimDOM,S=void 0!==b&&b,T=r.preserveWhiteSpace,x=r.onSerialize,I=r.onIframeLoad,E=r.iframeLoadTimeout,C=r.keepIframeSrcFn,M=void 0===C?function(){return!1}:C,k=r.enableStrictPrivacy,N={};return[w(e,{doc:e,map:N,blockClass:o,blockSelector:a,maskTextClass:l,maskTextSelector:c,skipChild:!1,inlineStylesheet:p,maskInputOptions:!0===m?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:!1===m?{password:!0}:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:!0===S||"all"===S?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===S,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===S?{}:S,recordCanvas:h,preserveWhiteSpace:T,onSerialize:x,onIframeLoad:I,iframeLoadTimeout:E,keepIframeSrcFn:M,enableStrictPrivacy:void 0!==k&&k}),N]}},397:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.NodeType=void 0,(r=t.NodeType||(t.NodeType={}))[r.Document=0]="Document",r[r.DocumentType=1]="DocumentType",r[r.Element=2]="Element",r[r.Text=3]="Text",r[r.CDATA=4]="CDATA",r[r.Comment=5]="Comment"},606:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.is2DCanvasBlank=t.maskInputValue=t.isShadowRoot=t.isElement=void 0,t.isElement=function(e){return e.nodeType===e.ELEMENT_NODE},t.isShadowRoot=function(e){var t,r=null===(t=e)||void 0===t?void 0:t.host;return Boolean(r&&r.shadowRoot&&r.shadowRoot===e)},t.maskInputValue=function(e){var t=e.maskInputOptions,r=e.tagName,n=e.type,o=e.value,i=e.maskInputFn,a=o||"";return(t[r.toLowerCase()]||t[n])&&(a=i?i(a):"*".repeat(a.length)),a};t.is2DCanvasBlank=function(e){var t=e.getContext("2d");if(!t)return!0;for(var r=0;r<e.width;r+=50)for(var n=0;n<e.height;n+=50){var o=t.getImageData,i="__rrweb_original__"in o?o.__rrweb_original__:o;if(new Uint32Array(i.call(t,r,n,Math.min(50,e.width-r),Math.min(50,e.height-n)).data.buffer).some((function(e){return 0!==e})))return!1}return!0}},699:(e,t)=>{var r,n,o,i,a,s;Object.defineProperty(t,"__esModule",{value:!0}),t.ReplayerEvents=t.MediaInteractions=t.CanvasContext=t.MouseInteractions=t.IncrementalSource=t.EventType=void 0,(s=t.EventType||(t.EventType={}))[s.DomContentLoaded=0]="DomContentLoaded",s[s.Load=1]="Load",s[s.FullSnapshot=2]="FullSnapshot",s[s.IncrementalSnapshot=3]="IncrementalSnapshot",s[s.Meta=4]="Meta",s[s.Custom=5]="Custom",s[s.Plugin=6]="Plugin",(a=t.IncrementalSource||(t.IncrementalSource={}))[a.Mutation=0]="Mutation",a[a.MouseMove=1]="MouseMove",a[a.MouseInteraction=2]="MouseInteraction",a[a.Scroll=3]="Scroll",a[a.ViewportResize=4]="ViewportResize",a[a.Input=5]="Input",a[a.TouchMove=6]="TouchMove",a[a.MediaInteraction=7]="MediaInteraction",a[a.StyleSheetRule=8]="StyleSheetRule",a[a.CanvasMutation=9]="CanvasMutation",a[a.Font=10]="Font",a[a.Log=11]="Log",a[a.Drag=12]="Drag",a[a.StyleDeclaration=13]="StyleDeclaration",(i=t.MouseInteractions||(t.MouseInteractions={}))[i.MouseUp=0]="MouseUp",i[i.MouseDown=1]="MouseDown",i[i.Click=2]="Click",i[i.ContextMenu=3]="ContextMenu",i[i.DblClick=4]="DblClick",i[i.Focus=5]="Focus",i[i.Blur=6]="Blur",i[i.TouchStart=7]="TouchStart",i[i.TouchMove_Departed=8]="TouchMove_Departed",i[i.TouchEnd=9]="TouchEnd",i[i.TouchCancel=10]="TouchCancel",(o=t.CanvasContext||(t.CanvasContext={}))[o["2D"]=0]="2D",o[o.WebGL=1]="WebGL",o[o.WebGL2=2]="WebGL2",(n=t.MediaInteractions||(t.MediaInteractions={}))[n.Play=0]="Play",n[n.Pause=1]="Pause",n[n.Seeked=2]="Seeked",n[n.VolumeChange=3]="VolumeChange",(r=t.ReplayerEvents||(t.ReplayerEvents={})).Start="start",r.Pause="pause",r.Resume="resume",r.Resize="resize",r.Finish="finish",r.FullsnapshotRebuilded="fullsnapshot-rebuilded",r.LoadStylesheetStart="load-stylesheet-start",r.LoadStylesheetEnd="load-stylesheet-end",r.SkipStart="skip-start",r.SkipEnd="skip-end",r.MouseInteraction="mouse-interaction",r.EventCast="event-cast",r.CustomEvent="custom-event",r.Flush="flush",r.StateChange="state-change",r.PlayBack="play-back"},593:function(e,t,r){var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.obfuscateText=t.hasShadowRoot=t.getBaseDimension=t.isIframeINode=t.iterateResolveTree=t.queueToResolveTrees=t.TreeIndex=t.polyfill=t.isTouchEvent=t.isAncestorRemoved=t.isIgnored=t.isBlocked=t.isCanvasNode=t.getWindowWidth=t.getWindowHeight=t.patch=t.hookSetter=t.throttle=t._mirror=t.createMirror=t.on=void 0;var o=r(699),i=r(348);t.on=function(e,t,r){void 0===r&&(r=document);var n={capture:!0,passive:!0};return r.addEventListener(e,t,n),function(){return r.removeEventListener(e,t,n)}},t.createMirror=function(){return{map:{},getId:function(e){return e&&e.__sn?e.__sn.id:-1},getNode:function(e){return this.map[e]||null},removeNodeFromMap:function(e){var t=this,r=e.__sn&&e.__sn.id;delete this.map[r],e.childNodes&&e.childNodes.forEach((function(e){return t.removeNodeFromMap(e)}))},has:function(e){return this.map.hasOwnProperty(e)},reset:function(){this.map={}}}};var a="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";t._mirror={map:{},getId:function(){return console.error(a),-1},getNode:function(){return console.error(a),null},removeNodeFromMap:function(){console.error(a)},has:function(){return console.error(a),!1},reset:function(){console.error(a)}},"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(t._mirror=new Proxy(t._mirror,{get:function(e,t,r){return"map"===t&&console.error(a),Reflect.get(e,t,r)}})),t.throttle=function(e,t,r){void 0===r&&(r={});var n=null,o=0;return function(i){var a=Date.now();o||!1!==r.leading||(o=a);var s=t-(a-o),l=this,u=arguments;s<=0||s>t?(n&&(clearTimeout(n),n=null),o=a,e.apply(l,u)):n||!1===r.trailing||(n=setTimeout((function(){o=!1===r.leading?0:Date.now(),n=null,e.apply(l,u)}),s))}},t.hookSetter=function e(t,r,n,o,i){void 0===i&&(i=window);var a=i.Object.getOwnPropertyDescriptor(t,r);return i.Object.defineProperty(t,r,o?n:{set:function(e){var t=this;setTimeout((function(){n.set.call(t,e)}),0),a&&a.set&&a.set.call(this,e)}}),function(){return e(t,r,a||{},!0)}},t.patch=function(e,t,r){try{if(!(t in e))return function(){};var n=e[t],o=r(n);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=o,function(){e[t]=n}}catch(e){return function(){}}},t.getWindowHeight=function(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight},t.getWindowWidth=function(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth},t.isCanvasNode=function(e){try{if(e instanceof HTMLElement)return"CANVAS"===e.tagName}catch(e){return!1}return!1},t.isBlocked=function e(t,r){if(!t)return!1;if(t.nodeType===t.ELEMENT_NODE){var n=!1;if("string"==typeof r){if(void 0!==t.closest)return null!==t.closest("."+r);n=t.classList.contains(r)}else t.classList.forEach((function(e){r.test(e)&&(n=!0)}));return n||e(t.parentNode,r)}return t.nodeType,t.TEXT_NODE,e(t.parentNode,r)},t.isIgnored=function(e){return"__sn"in e&&e.__sn.id===i.IGNORED_NODE},t.isAncestorRemoved=function e(t,r){if(i.isShadowRoot(t))return!1;var n=r.getId(t);return!r.has(n)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||e(t.parentNode,r))},t.isTouchEvent=function(e){return Boolean(e.changedTouches)},t.polyfill=function(e){void 0===e&&(e=window),"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=function(e){if(!(0 in arguments))throw new TypeError("1 argument is required");do{if(this===e)return!0}while(e=e&&e.parentNode);return!1})};var s=function(){function e(){this.reset()}return e.prototype.add=function(e){var t=this.indexes.get(e.parentId),r={id:e.node.id,mutation:e,children:[],texts:[],attributes:[]};t?(r.parent=t,t.children[r.id]=r):this.tree[r.id]=r,this.indexes.set(r.id,r)},e.prototype.remove=function(e,t){var r=this,n=this.indexes.get(e.parentId),o=this.indexes.get(e.id),i=function(e){r.removeIdSet.add(e);var n=t.getNode(e);null==n||n.childNodes.forEach((function(e){"__sn"in e&&i(e.__sn.id)}))},a=function(t){r.removeIdSet.add(t.id),Object.values(t.children).forEach((function(e){return a(e)}));var n=r.indexes.get(t.id);if(n){var o=n.parent;o&&(delete n.parent,delete o.children[n.id],r.indexes.delete(e.id))}};o?n?(delete o.parent,delete n.children[o.id],this.indexes.delete(e.id),a(o)):(delete this.tree[o.id],this.indexes.delete(o.id),a(o)):(this.removeNodeMutations.push(e),i(e.id))},e.prototype.text=function(e){var t=this.indexes.get(e.id);t?t.texts.push(e):this.textMutations.push(e)},e.prototype.attribute=function(e){var t=this.indexes.get(e.id);t?t.attributes.push(e):this.attributeMutations.push(e)},e.prototype.scroll=function(e){this.scrollMap.set(e.id,e)},e.prototype.input=function(e){this.inputMap.set(e.id,e)},e.prototype.flush=function(){var e,t,r,i,a=this,s=this,l=s.tree,u=s.removeNodeMutations,c=s.textMutations,d=s.attributeMutations,p={source:o.IncrementalSource.Mutation,removes:u,texts:c,attributes:d,adds:[]},f=function(e,t){t&&a.removeIdSet.add(e.id),p.texts=p.texts.concat(t?[]:e.texts).filter((function(e){return!a.removeIdSet.has(e.id)})),p.attributes=p.attributes.concat(t?[]:e.attributes).filter((function(e){return!a.removeIdSet.has(e.id)})),a.removeIdSet.has(e.id)||a.removeIdSet.has(e.mutation.parentId)||t?Object.values(e.children).forEach((function(e){return f(e,!0)})):(p.adds.push(e.mutation),e.children&&Object.values(e.children).forEach((function(e){return f(e,!1)})))};Object.values(l).forEach((function(e){return f(e,!1)}));try{for(var h=n(this.scrollMap.keys()),v=h.next();!v.done;v=h.next()){var m=v.value;this.removeIdSet.has(m)&&this.scrollMap.delete(m)}}catch(t){e={error:t}}finally{try{v&&!v.done&&(t=h.return)&&t.call(h)}finally{if(e)throw e.error}}try{for(var y=n(this.inputMap.keys()),g=y.next();!g.done;g=y.next())m=g.value,this.removeIdSet.has(m)&&this.inputMap.delete(m)}catch(e){r={error:e}}finally{try{g&&!g.done&&(i=y.return)&&i.call(y)}finally{if(r)throw r.error}}var b=new Map(this.scrollMap),S=new Map(this.inputMap);return this.reset(),{mutationData:p,scrollMap:b,inputMap:S}},e.prototype.reset=function(){this.tree=[],this.indexes=new Map,this.removeNodeMutations=[],this.textMutations=[],this.attributeMutations=[],this.removeIdSet=new Set,this.scrollMap=new Map,this.inputMap=new Map},e.prototype.idRemoved=function(e){return this.removeIdSet.has(e)},e}();t.TreeIndex=s,t.queueToResolveTrees=function(e){var t,r,o={},i=function(e,t){var r={value:e,parent:t,children:[]};return o[e.node.id]=r,r},a=[];try{for(var s=n(e),l=s.next();!l.done;l=s.next()){var u=l.value,c=u.nextId,d=u.parentId;if(c&&c in o){var p=o[c];if(p.parent){var f=p.parent.children.indexOf(p);p.parent.children.splice(f,0,i(u,p.parent))}else f=a.indexOf(p),a.splice(f,0,i(u,null))}else if(d in o){var h=o[d];h.children.push(i(u,h))}else a.push(i(u,null))}}catch(e){t={error:e}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}return a},t.iterateResolveTree=function e(t,r){r(t.value);for(var n=t.children.length-1;n>=0;n--)e(t.children[n],r)},t.isIframeINode=function(e){return"__sn"in e&&e.__sn.type===i.NodeType.Element&&"iframe"===e.__sn.tagName},t.getBaseDimension=function e(t,r){var n,o,i=null===(o=null===(n=t.ownerDocument)||void 0===n?void 0:n.defaultView)||void 0===o?void 0:o.frameElement;if(!i||i===r)return{x:0,y:0,relativeScale:1,absoluteScale:1};var a=i.getBoundingClientRect(),s=e(i,r),l=a.height/i.clientHeight;return{x:a.x*s.relativeScale+s.x,y:a.y*s.relativeScale+s.y,relativeScale:l,absoluteScale:s.absoluteScale*l}},t.hasShadowRoot=function(e){var t;return Boolean(null===(t=e)||void 0===t?void 0:t.shadowRoot)},t.obfuscateText=function(e){return(null==(e=e.replace(/[^ -~]+/g,""))?void 0:e.split(" ").map((function(e){return Math.random().toString(20).substr(2,e.length)})).join(" "))||""}}},t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,r),o.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{var e=n;Object.defineProperty(e,"__esModule",{value:!0}),e.utils=e.mirror=e.Replayer=e.freezePage=e.addCustomEvent=e.record=void 0;var t=r(476);e.record=t.default;var o=r(943);Object.defineProperty(e,"Replayer",{enumerable:!0,get:function(){return o.Replayer}});var i=r(593);Object.defineProperty(e,"mirror",{enumerable:!0,get:function(){return i._mirror}});var a=r(593);e.utils=a;var s=r(699);Object.defineProperty(e,"EventType",{enumerable:!0,get:function(){return s.EventType}}),Object.defineProperty(e,"IncrementalSource",{enumerable:!0,get:function(){return s.IncrementalSource}}),Object.defineProperty(e,"MouseInteractions",{enumerable:!0,get:function(){return s.MouseInteractions}}),Object.defineProperty(e,"ReplayerEvents",{enumerable:!0,get:function(){return s.ReplayerEvents}});var l=t.default.addCustomEvent;e.addCustomEvent=l;var u=t.default.freezePage;e.freezePage=u;var c=r(945);Object.defineProperty(e,"getRecordSequentialIdPlugin",{enumerable:!0,get:function(){return c.getRecordSequentialIdPlugin}})})(),n})()}));
|
|
3
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/*! *****************************************************************************
|
|
2
|
-
Copyright (c) Microsoft Corporation.
|
|
3
|
-
|
|
4
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
5
|
-
purpose with or without fee is hereby granted.
|
|
6
|
-
|
|
7
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
-
***************************************************************************** */
|