Socket
Socket
Sign inDemoInstall

rrweb

Package Overview
Dependencies
Maintainers
1
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rrweb - npm Package Compare versions

Comparing version 0.7.32 to 0.7.33

2

dist/packer/rrweb-pack.min.js

@@ -1,2 +0,2 @@

var rrwebPack=function(t){"use strict";var e=function(){return(e=Object.assign||function(t){for(var e,a=1,n=arguments.length;a<n;a++)for(var r in e=arguments[a])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function a(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}var n,r=(function(t,e){t.exports=function t(e,n,r){function i(h,l){if(!n[h]){if(!e[h]){var o=a;if(!l&&o)return o(h,!0);if(s)return s(h,!0);var _=new Error("Cannot find module '"+h+"'");throw _.code="MODULE_NOT_FOUND",_}var d=n[h]={exports:{}};e[h][0].call(d.exports,function(t){var a=e[h][1][t];return i(a||t)},d,d.exports,t,e,n,r)}return n[h].exports}for(var s=a,h=0;h<r.length;h++)i(r[h]);return i}({1:[function(t,e,a){var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}a.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var a=e.shift();if(a){if("object"!=typeof a)throw new TypeError(a+"must be non-object");for(var n in a)r(a,n)&&(t[n]=a[n])}}return t},a.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var i={arraySet:function(t,e,a,n,r){if(e.subarray&&t.subarray)t.set(e.subarray(a,a+n),r);else for(var i=0;i<n;i++)t[r+i]=e[a+i]},flattenChunks:function(t){var e,a,n,r,i,s;for(n=0,e=0,a=t.length;e<a;e++)n+=t[e].length;for(s=new Uint8Array(n),r=0,e=0,a=t.length;e<a;e++)i=t[e],s.set(i,r),r+=i.length;return s}},s={arraySet:function(t,e,a,n,r){for(var i=0;i<n;i++)t[r+i]=e[a+i]},flattenChunks:function(t){return[].concat.apply([],t)}};a.setTyped=function(t){t?(a.Buf8=Uint8Array,a.Buf16=Uint16Array,a.Buf32=Int32Array,a.assign(a,i)):(a.Buf8=Array,a.Buf16=Array,a.Buf32=Array,a.assign(a,s))},a.setTyped(n)},{}],2:[function(t,e,a){var n=t("./common"),r=!0,i=!0;try{String.fromCharCode.apply(null,[0])}catch(t){r=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){i=!1}for(var s=new n.Buf8(256),h=0;h<256;h++)s[h]=h>=252?6:h>=248?5:h>=240?4:h>=224?3:h>=192?2:1;function l(t,e){if(e<65534&&(t.subarray&&i||!t.subarray&&r))return String.fromCharCode.apply(null,n.shrinkBuf(t,e));for(var a="",s=0;s<e;s++)a+=String.fromCharCode(t[s]);return a}s[254]=s[254]=1,a.string2buf=function(t){var e,a,r,i,s,h=t.length,l=0;for(i=0;i<h;i++)55296==(64512&(a=t.charCodeAt(i)))&&i+1<h&&56320==(64512&(r=t.charCodeAt(i+1)))&&(a=65536+(a-55296<<10)+(r-56320),i++),l+=a<128?1:a<2048?2:a<65536?3:4;for(e=new n.Buf8(l),s=0,i=0;s<l;i++)55296==(64512&(a=t.charCodeAt(i)))&&i+1<h&&56320==(64512&(r=t.charCodeAt(i+1)))&&(a=65536+(a-55296<<10)+(r-56320),i++),a<128?e[s++]=a:a<2048?(e[s++]=192|a>>>6,e[s++]=128|63&a):a<65536?(e[s++]=224|a>>>12,e[s++]=128|a>>>6&63,e[s++]=128|63&a):(e[s++]=240|a>>>18,e[s++]=128|a>>>12&63,e[s++]=128|a>>>6&63,e[s++]=128|63&a);return e},a.buf2binstring=function(t){return l(t,t.length)},a.binstring2buf=function(t){for(var e=new n.Buf8(t.length),a=0,r=e.length;a<r;a++)e[a]=t.charCodeAt(a);return e},a.buf2string=function(t,e){var a,n,r,i,h=e||t.length,o=new Array(2*h);for(n=0,a=0;a<h;)if((r=t[a++])<128)o[n++]=r;else if((i=s[r])>4)o[n++]=65533,a+=i-1;else{for(r&=2===i?31:3===i?15:7;i>1&&a<h;)r=r<<6|63&t[a++],i--;i>1?o[n++]=65533:r<65536?o[n++]=r:(r-=65536,o[n++]=55296|r>>10&1023,o[n++]=56320|1023&r)}return l(o,n)},a.utf8border=function(t,e){var a;for((e=e||t.length)>t.length&&(e=t.length),a=e-1;a>=0&&128==(192&t[a]);)a--;return a<0?e:0===a?e:a+s[t[a]]>e?a:e}},{"./common":1}],3:[function(t,e,a){e.exports=function(t,e,a,n){for(var r=65535&t|0,i=t>>>16&65535|0,s=0;0!==a;){a-=s=a>2e3?2e3:a;do{r=r+e[n++]|0,i=i+r|0}while(--s);r%=65521,i%=65521}return r|i<<16|0}},{}],4:[function(t,e,a){var n=function(){for(var t,e=[],a=0;a<256;a++){t=a;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}();e.exports=function(t,e,a,r){var i=n,s=r+a;t^=-1;for(var h=r;h<s;h++)t=t>>>8^i[255&(t^e[h])];return-1^t}},{}],5:[function(t,e,a){var n,r=t("../utils/common"),i=t("./trees"),s=t("./adler32"),h=t("./crc32"),l=t("./messages"),o=0,_=1,d=3,u=4,f=5,c=0,p=1,g=-2,m=-3,b=-5,v=-1,w=1,y=2,k=3,z=4,x=0,B=2,A=8,C=9,S=15,j=8,E=286,O=30,U=19,D=2*E+1,I=15,N=3,T=258,L=T+N+1,P=32,R=42,H=69,q=73,F=91,J=103,K=113,M=666,G=1,Q=2,V=3,W=4,X=3;function Y(t,e){return t.msg=l[e],e}function Z(t){return(t<<1)-(t>4?9:0)}function $(t){for(var e=t.length;--e>=0;)t[e]=0}function tt(t){var e=t.state,a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(r.arraySet(t.output,e.pending_buf,e.pending_out,a,t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))}function et(t,e){i._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,tt(t.strm)}function at(t,e){t.pending_buf[t.pending++]=e}function nt(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function rt(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,h=t.nice_match,l=t.strstart>t.w_size-L?t.strstart-(t.w_size-L):0,o=t.window,_=t.w_mask,d=t.prev,u=t.strstart+T,f=o[i+s-1],c=o[i+s];t.prev_length>=t.good_match&&(r>>=2),h>t.lookahead&&(h=t.lookahead);do{if(o[(a=e)+s]===c&&o[a+s-1]===f&&o[a]===o[i]&&o[++a]===o[i+1]){i+=2,a++;do{}while(o[++i]===o[++a]&&o[++i]===o[++a]&&o[++i]===o[++a]&&o[++i]===o[++a]&&o[++i]===o[++a]&&o[++i]===o[++a]&&o[++i]===o[++a]&&o[++i]===o[++a]&&i<u);if(n=T-(u-i),i=u-T,n>s){if(t.match_start=e,s=n,n>=h)break;f=o[i+s-1],c=o[i+s]}}}while((e=d[e&_])>l&&0!=--r);return s<=t.lookahead?s:t.lookahead}function it(t){var e,a,n,i,l,o,_,d,u,f,c=t.w_size;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=c+(c-L)){r.arraySet(t.window,t.window,c,c,0),t.match_start-=c,t.strstart-=c,t.block_start-=c,a=t.hash_size,e=a;do{n=t.head[--e],t.head[e]=n>=c?n-c:0}while(--a);e=a=c;do{n=t.prev[--e],t.prev[e]=n>=c?n-c:0}while(--a);i+=c}if(0===t.strm.avail_in)break;if(o=t.strm,_=t.window,d=t.strstart+t.lookahead,u=i,f=void 0,(f=o.avail_in)>u&&(f=u),a=0===f?0:(o.avail_in-=f,r.arraySet(_,o.input,o.next_in,f,d),1===o.state.wrap?o.adler=s(o.adler,_,f,d):2===o.state.wrap&&(o.adler=h(o.adler,_,f,d)),o.next_in+=f,o.total_in+=f,f),t.lookahead+=a,t.lookahead+t.insert>=N)for(l=t.strstart-t.insert,t.ins_h=t.window[l],t.ins_h=(t.ins_h<<t.hash_shift^t.window[l+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[l+N-1])&t.hash_mask,t.prev[l&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=l,l++,t.insert--,!(t.lookahead+t.insert<N)););}while(t.lookahead<L&&0!==t.strm.avail_in)}function st(t,e){for(var a,n;;){if(t.lookahead<L){if(it(t),t.lookahead<L&&e===o)return G;if(0===t.lookahead)break}if(a=0,t.lookahead>=N&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+N-1])&t.hash_mask,a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-L&&(t.match_length=rt(t,a)),t.match_length>=N)if(n=i._tr_tally(t,t.strstart-t.match_start,t.match_length-N),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=N){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+N-1])&t.hash_mask,a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else n=i._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(et(t,!1),0===t.strm.avail_out))return G}return t.insert=t.strstart<N-1?t.strstart:N-1,e===u?(et(t,!0),0===t.strm.avail_out?V:W):t.last_lit&&(et(t,!1),0===t.strm.avail_out)?G:Q}function ht(t,e){for(var a,n,r;;){if(t.lookahead<L){if(it(t),t.lookahead<L&&e===o)return G;if(0===t.lookahead)break}if(a=0,t.lookahead>=N&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+N-1])&t.hash_mask,a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=N-1,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-L&&(t.match_length=rt(t,a),t.match_length<=5&&(t.strategy===w||t.match_length===N&&t.strstart-t.match_start>4096)&&(t.match_length=N-1)),t.prev_length>=N&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-N,n=i._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-N),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+N-1])&t.hash_mask,a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=N-1,t.strstart++,n&&(et(t,!1),0===t.strm.avail_out))return G}else if(t.match_available){if((n=i._tr_tally(t,0,t.window[t.strstart-1]))&&et(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return G}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=i._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<N-1?t.strstart:N-1,e===u?(et(t,!0),0===t.strm.avail_out?V:W):t.last_lit&&(et(t,!1),0===t.strm.avail_out)?G:Q}function lt(t,e,a,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=n,this.func=r}function ot(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=A,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new r.Buf16(2*D),this.dyn_dtree=new r.Buf16(2*(2*O+1)),this.bl_tree=new r.Buf16(2*(2*U+1)),$(this.dyn_ltree),$(this.dyn_dtree),$(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new r.Buf16(I+1),this.heap=new r.Buf16(2*E+1),$(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new r.Buf16(2*E+1),$(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function _t(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=B,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?R:K,t.adler=2===e.wrap?0:1,e.last_flush=o,i._tr_init(e),c):Y(t,g)}function dt(t){var e,a=_t(t);return a===c&&((e=t.state).window_size=2*e.w_size,$(e.head),e.max_lazy_match=n[e.level].max_lazy,e.good_match=n[e.level].good_length,e.nice_match=n[e.level].nice_length,e.max_chain_length=n[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=N-1,e.match_available=0,e.ins_h=0),a}function ut(t,e,a,n,i,s){if(!t)return g;var h=1;if(e===v&&(e=6),n<0?(h=0,n=-n):n>15&&(h=2,n-=16),i<1||i>C||a!==A||n<8||n>15||e<0||e>9||s<0||s>z)return Y(t,g);8===n&&(n=9);var l=new ot;return t.state=l,l.strm=t,l.wrap=h,l.gzhead=null,l.w_bits=n,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=i+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+N-1)/N),l.window=new r.Buf8(2*l.w_size),l.head=new r.Buf16(l.hash_size),l.prev=new r.Buf16(l.w_size),l.lit_bufsize=1<<i+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new r.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=e,l.strategy=s,l.method=a,dt(t)}n=[new lt(0,0,0,0,function(t,e){var a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(it(t),0===t.lookahead&&e===o)return G;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+a;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,et(t,!1),0===t.strm.avail_out))return G;if(t.strstart-t.block_start>=t.w_size-L&&(et(t,!1),0===t.strm.avail_out))return G}return t.insert=0,e===u?(et(t,!0),0===t.strm.avail_out?V:W):(t.strstart>t.block_start&&(et(t,!1),t.strm.avail_out),G)}),new lt(4,4,8,4,st),new lt(4,5,16,8,st),new lt(4,6,32,32,st),new lt(4,4,16,16,ht),new lt(8,16,32,32,ht),new lt(8,16,128,128,ht),new lt(8,32,128,256,ht),new lt(32,128,258,1024,ht),new lt(32,258,258,4096,ht)],a.deflateInit=function(t,e){return ut(t,e,A,S,j,x)},a.deflateInit2=ut,a.deflateReset=dt,a.deflateResetKeep=_t,a.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?g:(t.state.gzhead=e,c):g},a.deflate=function(t,e){var a,r,s,l;if(!t||!t.state||e>f||e<0)return t?Y(t,g):g;if(r=t.state,!t.output||!t.input&&0!==t.avail_in||r.status===M&&e!==u)return Y(t,0===t.avail_out?b:g);if(r.strm=t,a=r.last_flush,r.last_flush=e,r.status===R)if(2===r.wrap)t.adler=0,at(r,31),at(r,139),at(r,8),r.gzhead?(at(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),at(r,255&r.gzhead.time),at(r,r.gzhead.time>>8&255),at(r,r.gzhead.time>>16&255),at(r,r.gzhead.time>>24&255),at(r,9===r.level?2:r.strategy>=y||r.level<2?4:0),at(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(at(r,255&r.gzhead.extra.length),at(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=h(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=H):(at(r,0),at(r,0),at(r,0),at(r,0),at(r,0),at(r,9===r.level?2:r.strategy>=y||r.level<2?4:0),at(r,X),r.status=K);else{var m=A+(r.w_bits-8<<4)<<8,v=-1;v=r.strategy>=y||r.level<2?0:r.level<6?1:6===r.level?2:3,m|=v<<6,0!==r.strstart&&(m|=P),m+=31-m%31,r.status=K,nt(r,m),0!==r.strstart&&(nt(r,t.adler>>>16),nt(r,65535&t.adler)),t.adler=1}if(r.status===H)if(r.gzhead.extra){for(s=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>s&&(t.adler=h(t.adler,r.pending_buf,r.pending-s,s)),tt(t),s=r.pending,r.pending!==r.pending_buf_size));)at(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>s&&(t.adler=h(t.adler,r.pending_buf,r.pending-s,s)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=q)}else r.status=q;if(r.status===q)if(r.gzhead.name){s=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>s&&(t.adler=h(t.adler,r.pending_buf,r.pending-s,s)),tt(t),s=r.pending,r.pending===r.pending_buf_size)){l=1;break}l=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,at(r,l)}while(0!==l);r.gzhead.hcrc&&r.pending>s&&(t.adler=h(t.adler,r.pending_buf,r.pending-s,s)),0===l&&(r.gzindex=0,r.status=F)}else r.status=F;if(r.status===F)if(r.gzhead.comment){s=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>s&&(t.adler=h(t.adler,r.pending_buf,r.pending-s,s)),tt(t),s=r.pending,r.pending===r.pending_buf_size)){l=1;break}l=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,at(r,l)}while(0!==l);r.gzhead.hcrc&&r.pending>s&&(t.adler=h(t.adler,r.pending_buf,r.pending-s,s)),0===l&&(r.status=J)}else r.status=J;if(r.status===J&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&tt(t),r.pending+2<=r.pending_buf_size&&(at(r,255&t.adler),at(r,t.adler>>8&255),t.adler=0,r.status=K)):r.status=K),0!==r.pending){if(tt(t),0===t.avail_out)return r.last_flush=-1,c}else if(0===t.avail_in&&Z(e)<=Z(a)&&e!==u)return Y(t,b);if(r.status===M&&0!==t.avail_in)return Y(t,b);if(0!==t.avail_in||0!==r.lookahead||e!==o&&r.status!==M){var w=r.strategy===y?function(t,e){for(var a;;){if(0===t.lookahead&&(it(t),0===t.lookahead)){if(e===o)return G;break}if(t.match_length=0,a=i._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(et(t,!1),0===t.strm.avail_out))return G}return t.insert=0,e===u?(et(t,!0),0===t.strm.avail_out?V:W):t.last_lit&&(et(t,!1),0===t.strm.avail_out)?G:Q}(r,e):r.strategy===k?function(t,e){for(var a,n,r,s,h=t.window;;){if(t.lookahead<=T){if(it(t),t.lookahead<=T&&e===o)return G;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=N&&t.strstart>0&&(r=t.strstart-1,(n=h[r])===h[++r]&&n===h[++r]&&n===h[++r])){s=t.strstart+T;do{}while(n===h[++r]&&n===h[++r]&&n===h[++r]&&n===h[++r]&&n===h[++r]&&n===h[++r]&&n===h[++r]&&n===h[++r]&&r<s);t.match_length=T-(s-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=N?(a=i._tr_tally(t,1,t.match_length-N),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=i._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(et(t,!1),0===t.strm.avail_out))return G}return t.insert=0,e===u?(et(t,!0),0===t.strm.avail_out?V:W):t.last_lit&&(et(t,!1),0===t.strm.avail_out)?G:Q}(r,e):n[r.level].func(r,e);if(w!==V&&w!==W||(r.status=M),w===G||w===V)return 0===t.avail_out&&(r.last_flush=-1),c;if(w===Q&&(e===_?i._tr_align(r):e!==f&&(i._tr_stored_block(r,0,0,!1),e===d&&($(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),tt(t),0===t.avail_out))return r.last_flush=-1,c}return e!==u?c:r.wrap<=0?p:(2===r.wrap?(at(r,255&t.adler),at(r,t.adler>>8&255),at(r,t.adler>>16&255),at(r,t.adler>>24&255),at(r,255&t.total_in),at(r,t.total_in>>8&255),at(r,t.total_in>>16&255),at(r,t.total_in>>24&255)):(nt(r,t.adler>>>16),nt(r,65535&t.adler)),tt(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?c:p)},a.deflateEnd=function(t){var e;return t&&t.state?(e=t.state.status)!==R&&e!==H&&e!==q&&e!==F&&e!==J&&e!==K&&e!==M?Y(t,g):(t.state=null,e===K?Y(t,m):c):g},a.deflateSetDictionary=function(t,e){var a,n,i,h,l,o,_,d,u=e.length;if(!t||!t.state)return g;if(a=t.state,2===(h=a.wrap)||1===h&&a.status!==R||a.lookahead)return g;for(1===h&&(t.adler=s(t.adler,e,u,0)),a.wrap=0,u>=a.w_size&&(0===h&&($(a.head),a.strstart=0,a.block_start=0,a.insert=0),d=new r.Buf8(a.w_size),r.arraySet(d,e,u-a.w_size,a.w_size,0),e=d,u=a.w_size),l=t.avail_in,o=t.next_in,_=t.input,t.avail_in=u,t.next_in=0,t.input=e,it(a);a.lookahead>=N;){n=a.strstart,i=a.lookahead-(N-1);do{a.ins_h=(a.ins_h<<a.hash_shift^a.window[n+N-1])&a.hash_mask,a.prev[n&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=n,n++}while(--i);a.strstart=n,a.lookahead=N-1,it(a)}return a.strstart+=a.lookahead,a.block_start=a.strstart,a.insert=a.lookahead,a.lookahead=0,a.match_length=a.prev_length=N-1,a.match_available=0,t.next_in=o,t.input=_,t.avail_in=l,a.wrap=h,c},a.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":1,"./adler32":3,"./crc32":4,"./messages":6,"./trees":7}],6:[function(t,e,a){e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],7:[function(t,e,a){var n=t("../utils/common"),r=4,i=0,s=1,h=2;function l(t){for(var e=t.length;--e>=0;)t[e]=0}var o=0,_=1,d=2,u=29,f=256,c=f+1+u,p=30,g=19,m=2*c+1,b=15,v=16,w=7,y=256,k=16,z=17,x=18,B=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],A=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],C=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],S=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],j=new Array(2*(c+2));l(j);var E=new Array(2*p);l(E);var O=new Array(512);l(O);var U=new Array(256);l(U);var D=new Array(u);l(D);var I,N,T,L=new Array(p);function P(t,e,a,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=r,this.has_stree=t&&t.length}function R(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function H(t){return t<256?O[t]:O[256+(t>>>7)]}function q(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function F(t,e,a){t.bi_valid>v-a?(t.bi_buf|=e<<t.bi_valid&65535,q(t,t.bi_buf),t.bi_buf=e>>v-t.bi_valid,t.bi_valid+=a-v):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)}function J(t,e,a){F(t,a[2*e],a[2*e+1])}function K(t,e){var a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1}function M(t,e,a){var n,r,i=new Array(b+1),s=0;for(n=1;n<=b;n++)i[n]=s=s+a[n-1]<<1;for(r=0;r<=e;r++){var h=t[2*r+1];0!==h&&(t[2*r]=K(i[h]++,h))}}function G(t){var e;for(e=0;e<c;e++)t.dyn_ltree[2*e]=0;for(e=0;e<p;e++)t.dyn_dtree[2*e]=0;for(e=0;e<g;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*y]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function Q(t){t.bi_valid>8?q(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function V(t,e,a,n){var r=2*e,i=2*a;return t[r]<t[i]||t[r]===t[i]&&n[e]<=n[a]}function W(t,e,a){for(var n=t.heap[a],r=a<<1;r<=t.heap_len&&(r<t.heap_len&&V(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!V(e,n,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=n}function X(t,e,a){var n,r,i,s,h=0;if(0!==t.last_lit)do{n=t.pending_buf[t.d_buf+2*h]<<8|t.pending_buf[t.d_buf+2*h+1],r=t.pending_buf[t.l_buf+h],h++,0===n?J(t,r,e):(i=U[r],J(t,i+f+1,e),0!==(s=B[i])&&(r-=D[i],F(t,r,s)),i=H(--n),J(t,i,a),0!==(s=A[i])&&(n-=L[i],F(t,n,s)))}while(h<t.last_lit);J(t,y,e)}function Y(t,e){var a,n,r,i=e.dyn_tree,s=e.stat_desc.static_tree,h=e.stat_desc.has_stree,l=e.stat_desc.elems,o=-1;for(t.heap_len=0,t.heap_max=m,a=0;a<l;a++)0!==i[2*a]?(t.heap[++t.heap_len]=o=a,t.depth[a]=0):i[2*a+1]=0;for(;t.heap_len<2;)r=t.heap[++t.heap_len]=o<2?++o:0,i[2*r]=1,t.depth[r]=0,t.opt_len--,h&&(t.static_len-=s[2*r+1]);for(e.max_code=o,a=t.heap_len>>1;a>=1;a--)W(t,i,a);r=l;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],W(t,i,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,i[2*r]=i[2*a]+i[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,i[2*a+1]=i[2*n+1]=r,t.heap[1]=r++,W(t,i,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,r,i,s,h,l=e.dyn_tree,o=e.max_code,_=e.stat_desc.static_tree,d=e.stat_desc.has_stree,u=e.stat_desc.extra_bits,f=e.stat_desc.extra_base,c=e.stat_desc.max_length,p=0;for(i=0;i<=b;i++)t.bl_count[i]=0;for(l[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<m;a++)n=t.heap[a],(i=l[2*l[2*n+1]+1]+1)>c&&(i=c,p++),l[2*n+1]=i,n>o||(t.bl_count[i]++,s=0,n>=f&&(s=u[n-f]),h=l[2*n],t.opt_len+=h*(i+s),d&&(t.static_len+=h*(_[2*n+1]+s)));if(0!==p){do{for(i=c-1;0===t.bl_count[i];)i--;t.bl_count[i]--,t.bl_count[i+1]+=2,t.bl_count[c]--,p-=2}while(p>0);for(i=c;0!==i;i--)for(n=t.bl_count[i];0!==n;)(r=t.heap[--a])>o||(l[2*r+1]!==i&&(t.opt_len+=(i-l[2*r+1])*l[2*r],l[2*r+1]=i),n--)}}(t,e),M(i,o,t.bl_count)}function Z(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,o=4;for(0===s&&(l=138,o=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++h<l&&r===s||(h<o?t.bl_tree[2*r]+=h:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[2*k]++):h<=10?t.bl_tree[2*z]++:t.bl_tree[2*x]++,h=0,i=r,0===s?(l=138,o=3):r===s?(l=6,o=3):(l=7,o=4))}function $(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,o=4;for(0===s&&(l=138,o=3),n=0;n<=a;n++)if(r=s,s=e[2*(n+1)+1],!(++h<l&&r===s)){if(h<o)do{J(t,r,t.bl_tree)}while(0!=--h);else 0!==r?(r!==i&&(J(t,r,t.bl_tree),h--),J(t,k,t.bl_tree),F(t,h-3,2)):h<=10?(J(t,z,t.bl_tree),F(t,h-3,3)):(J(t,x,t.bl_tree),F(t,h-11,7));h=0,i=r,0===s?(l=138,o=3):r===s?(l=6,o=3):(l=7,o=4)}}l(L);var tt=!1;function et(t,e,a,r){F(t,(o<<1)+(r?1:0),3),function(t,e,a,r){Q(t),r&&(q(t,a),q(t,~a)),n.arraySet(t.pending_buf,t.window,e,a,t.pending),t.pending+=a}(t,e,a,!0)}a._tr_init=function(t){tt||(function(){var t,e,a,n,r,i=new Array(b+1);for(a=0,n=0;n<u-1;n++)for(D[n]=a,t=0;t<1<<B[n];t++)U[a++]=n;for(U[a-1]=n,r=0,n=0;n<16;n++)for(L[n]=r,t=0;t<1<<A[n];t++)O[r++]=n;for(r>>=7;n<p;n++)for(L[n]=r<<7,t=0;t<1<<A[n]-7;t++)O[256+r++]=n;for(e=0;e<=b;e++)i[e]=0;for(t=0;t<=143;)j[2*t+1]=8,t++,i[8]++;for(;t<=255;)j[2*t+1]=9,t++,i[9]++;for(;t<=279;)j[2*t+1]=7,t++,i[7]++;for(;t<=287;)j[2*t+1]=8,t++,i[8]++;for(M(j,c+1,i),t=0;t<p;t++)E[2*t+1]=5,E[2*t]=K(t,5);I=new P(j,B,f+1,c,b),N=new P(E,A,0,p,b),T=new P(new Array(0),C,0,g,w)}(),tt=!0),t.l_desc=new R(t.dyn_ltree,I),t.d_desc=new R(t.dyn_dtree,N),t.bl_desc=new R(t.bl_tree,T),t.bi_buf=0,t.bi_valid=0,G(t)},a._tr_stored_block=et,a._tr_flush_block=function(t,e,a,n){var l,o,u=0;t.level>0?(t.strm.data_type===h&&(t.strm.data_type=function(t){var e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return i;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return s;for(e=32;e<f;e++)if(0!==t.dyn_ltree[2*e])return s;return i}(t)),Y(t,t.l_desc),Y(t,t.d_desc),u=function(t){var e;for(Z(t,t.dyn_ltree,t.l_desc.max_code),Z(t,t.dyn_dtree,t.d_desc.max_code),Y(t,t.bl_desc),e=g-1;e>=3&&0===t.bl_tree[2*S[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),l=t.opt_len+3+7>>>3,(o=t.static_len+3+7>>>3)<=l&&(l=o)):l=o=a+5,a+4<=l&&-1!==e?et(t,e,a,n):t.strategy===r||o===l?(F(t,(_<<1)+(n?1:0),3),X(t,j,E)):(F(t,(d<<1)+(n?1:0),3),function(t,e,a,n){var r;for(F(t,e-257,5),F(t,a-1,5),F(t,n-4,4),r=0;r<n;r++)F(t,t.bl_tree[2*S[r]+1],3);$(t,t.dyn_ltree,e-1),$(t,t.dyn_dtree,a-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,u+1),X(t,t.dyn_ltree,t.dyn_dtree)),G(t),n&&Q(t)},a._tr_tally=function(t,e,a){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&a,t.last_lit++,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(U[a]+f+1)]++,t.dyn_dtree[2*H(e)]++),t.last_lit===t.lit_bufsize-1},a._tr_align=function(t){F(t,_<<1,3),J(t,y,j),function(t){16===t.bi_valid?(q(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},{"../utils/common":1}],8:[function(t,e,a){e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],"/lib/deflate.js":[function(t,e,a){var n=t("./zlib/deflate"),r=t("./utils/common"),i=t("./utils/strings"),s=t("./zlib/messages"),h=t("./zlib/zstream"),l=Object.prototype.toString,o=0,_=-1,d=0,u=8;function f(t){if(!(this instanceof f))return new f(t);this.options=r.assign({level:_,method:u,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:""},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new h,this.strm.avail_out=0;var a=n.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(a!==o)throw new Error(s[a]);if(e.header&&n.deflateSetHeader(this.strm,e.header),e.dictionary){var c;if(c="string"==typeof e.dictionary?i.string2buf(e.dictionary):"[object ArrayBuffer]"===l.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,(a=n.deflateSetDictionary(this.strm,c))!==o)throw new Error(s[a]);this._dict_set=!0}}function c(t,e){var a=new f(e);if(a.push(t,!0),a.err)throw a.msg||s[a.err];return a.result}f.prototype.push=function(t,e){var a,s,h=this.strm,_=this.options.chunkSize;if(this.ended)return!1;s=e===~~e?e:!0===e?4:0,"string"==typeof t?h.input=i.string2buf(t):"[object ArrayBuffer]"===l.call(t)?h.input=new Uint8Array(t):h.input=t,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new r.Buf8(_),h.next_out=0,h.avail_out=_),1!==(a=n.deflate(h,s))&&a!==o)return this.onEnd(a),this.ended=!0,!1;0!==h.avail_out&&(0!==h.avail_in||4!==s&&2!==s)||("string"===this.options.to?this.onData(i.buf2binstring(r.shrinkBuf(h.output,h.next_out))):this.onData(r.shrinkBuf(h.output,h.next_out)))}while((h.avail_in>0||0===h.avail_out)&&1!==a);return 4===s?(a=n.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===o):2!==s||(this.onEnd(o),h.avail_out=0,!0)},f.prototype.onData=function(t){this.chunks.push(t)},f.prototype.onEnd=function(t){t===o&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},a.Deflate=f,a.deflate=c,a.deflateRaw=function(t,e){return(e=e||{}).raw=!0,c(t,e)},a.gzip=function(t,e){return(e=e||{}).gzip=!0,c(t,e)}},{"./utils/common":1,"./utils/strings":2,"./zlib/deflate":5,"./zlib/messages":6,"./zlib/zstream":8}]},{},[])("/lib/deflate.js")}(n={exports:{}},n.exports),n.exports).deflate;return t.pack=function(t){var a=e({},t,{v:"v1"});return r(JSON.stringify(a),{to:"string"})},t}({});
var rrwebPack=function(t){"use strict";var e=function(){return(e=Object.assign||function(t){for(var e,a=1,n=arguments.length;a<n;a++)for(var r in e=arguments[a])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function a(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}var n,r=(function(t,e){t.exports=function t(e,n,r){function i(h,l){if(!n[h]){if(!e[h]){var o=a;if(!l&&o)return o(h,!0);if(s)return s(h,!0);var _=new Error("Cannot find module '"+h+"'");throw _.code="MODULE_NOT_FOUND",_}var d=n[h]={exports:{}};e[h][0].call(d.exports,function(t){var a=e[h][1][t];return i(a||t)},d,d.exports,t,e,n,r)}return n[h].exports}for(var s=a,h=0;h<r.length;h++)i(r[h]);return i}({1:[function(t,e,a){var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}a.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var a=e.shift();if(a){if("object"!=typeof a)throw new TypeError(a+"must be non-object");for(var n in a)r(a,n)&&(t[n]=a[n])}}return t},a.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var i={arraySet:function(t,e,a,n,r){if(e.subarray&&t.subarray)t.set(e.subarray(a,a+n),r);else for(var i=0;i<n;i++)t[r+i]=e[a+i]},flattenChunks:function(t){var e,a,n,r,i,s;for(n=0,e=0,a=t.length;e<a;e++)n+=t[e].length;for(s=new Uint8Array(n),r=0,e=0,a=t.length;e<a;e++)i=t[e],s.set(i,r),r+=i.length;return s}},s={arraySet:function(t,e,a,n,r){for(var i=0;i<n;i++)t[r+i]=e[a+i]},flattenChunks:function(t){return[].concat.apply([],t)}};a.setTyped=function(t){t?(a.Buf8=Uint8Array,a.Buf16=Uint16Array,a.Buf32=Int32Array,a.assign(a,i)):(a.Buf8=Array,a.Buf16=Array,a.Buf32=Array,a.assign(a,s))},a.setTyped(n)},{}],2:[function(t,e,a){var n=t("./common"),r=!0,i=!0;try{String.fromCharCode.apply(null,[0])}catch(t){r=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){i=!1}for(var s=new n.Buf8(256),h=0;h<256;h++)s[h]=h>=252?6:h>=248?5:h>=240?4:h>=224?3:h>=192?2:1;function l(t,e){if(e<65534&&(t.subarray&&i||!t.subarray&&r))return String.fromCharCode.apply(null,n.shrinkBuf(t,e));for(var a="",s=0;s<e;s++)a+=String.fromCharCode(t[s]);return a}s[254]=s[254]=1,a.string2buf=function(t){var e,a,r,i,s,h=t.length,l=0;for(i=0;i<h;i++)55296==(64512&(a=t.charCodeAt(i)))&&i+1<h&&56320==(64512&(r=t.charCodeAt(i+1)))&&(a=65536+(a-55296<<10)+(r-56320),i++),l+=a<128?1:a<2048?2:a<65536?3:4;for(e=new n.Buf8(l),s=0,i=0;s<l;i++)55296==(64512&(a=t.charCodeAt(i)))&&i+1<h&&56320==(64512&(r=t.charCodeAt(i+1)))&&(a=65536+(a-55296<<10)+(r-56320),i++),a<128?e[s++]=a:a<2048?(e[s++]=192|a>>>6,e[s++]=128|63&a):a<65536?(e[s++]=224|a>>>12,e[s++]=128|a>>>6&63,e[s++]=128|63&a):(e[s++]=240|a>>>18,e[s++]=128|a>>>12&63,e[s++]=128|a>>>6&63,e[s++]=128|63&a);return e},a.buf2binstring=function(t){return l(t,t.length)},a.binstring2buf=function(t){for(var e=new n.Buf8(t.length),a=0,r=e.length;a<r;a++)e[a]=t.charCodeAt(a);return e},a.buf2string=function(t,e){var a,n,r,i,h=e||t.length,o=new Array(2*h);for(n=0,a=0;a<h;)if((r=t[a++])<128)o[n++]=r;else if((i=s[r])>4)o[n++]=65533,a+=i-1;else{for(r&=2===i?31:3===i?15:7;i>1&&a<h;)r=r<<6|63&t[a++],i--;i>1?o[n++]=65533:r<65536?o[n++]=r:(r-=65536,o[n++]=55296|r>>10&1023,o[n++]=56320|1023&r)}return l(o,n)},a.utf8border=function(t,e){var a;for((e=e||t.length)>t.length&&(e=t.length),a=e-1;a>=0&&128==(192&t[a]);)a--;return a<0?e:0===a?e:a+s[t[a]]>e?a:e}},{"./common":1}],3:[function(t,e,a){e.exports=function(t,e,a,n){for(var r=65535&t|0,i=t>>>16&65535|0,s=0;0!==a;){a-=s=a>2e3?2e3:a;do{r=r+e[n++]|0,i=i+r|0}while(--s);r%=65521,i%=65521}return r|i<<16|0}},{}],4:[function(t,e,a){var n=function(){for(var t,e=[],a=0;a<256;a++){t=a;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}();e.exports=function(t,e,a,r){var i=n,s=r+a;t^=-1;for(var h=r;h<s;h++)t=t>>>8^i[255&(t^e[h])];return-1^t}},{}],5:[function(t,e,a){var n,r=t("../utils/common"),i=t("./trees"),s=t("./adler32"),h=t("./crc32"),l=t("./messages"),o=0,_=1,d=3,u=4,f=5,c=0,p=1,g=-2,m=-3,b=-5,v=-1,w=1,y=2,k=3,z=4,x=0,B=2,A=8,C=9,S=15,j=8,E=286,O=30,U=19,D=2*E+1,I=15,N=3,T=258,L=T+N+1,P=32,R=42,H=69,q=73,F=91,J=103,K=113,M=666,G=1,Q=2,V=3,W=4,X=3;function Y(t,e){return t.msg=l[e],e}function Z(t){return(t<<1)-(t>4?9:0)}function $(t){for(var e=t.length;--e>=0;)t[e]=0}function tt(t){var e=t.state,a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(r.arraySet(t.output,e.pending_buf,e.pending_out,a,t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))}function et(t,e){i._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,tt(t.strm)}function at(t,e){t.pending_buf[t.pending++]=e}function nt(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function rt(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,h=t.nice_match,l=t.strstart>t.w_size-L?t.strstart-(t.w_size-L):0,o=t.window,_=t.w_mask,d=t.prev,u=t.strstart+T,f=o[i+s-1],c=o[i+s];t.prev_length>=t.good_match&&(r>>=2),h>t.lookahead&&(h=t.lookahead);do{if(o[(a=e)+s]===c&&o[a+s-1]===f&&o[a]===o[i]&&o[++a]===o[i+1]){i+=2,a++;do{}while(o[++i]===o[++a]&&o[++i]===o[++a]&&o[++i]===o[++a]&&o[++i]===o[++a]&&o[++i]===o[++a]&&o[++i]===o[++a]&&o[++i]===o[++a]&&o[++i]===o[++a]&&i<u);if(n=T-(u-i),i=u-T,n>s){if(t.match_start=e,s=n,n>=h)break;f=o[i+s-1],c=o[i+s]}}}while((e=d[e&_])>l&&0!=--r);return s<=t.lookahead?s:t.lookahead}function it(t){var e,a,n,i,l,o,_,d,u,f,c=t.w_size;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=c+(c-L)){r.arraySet(t.window,t.window,c,c,0),t.match_start-=c,t.strstart-=c,t.block_start-=c,a=t.hash_size,e=a;do{n=t.head[--e],t.head[e]=n>=c?n-c:0}while(--a);e=a=c;do{n=t.prev[--e],t.prev[e]=n>=c?n-c:0}while(--a);i+=c}if(0===t.strm.avail_in)break;if(o=t.strm,_=t.window,d=t.strstart+t.lookahead,u=i,f=void 0,(f=o.avail_in)>u&&(f=u),a=0===f?0:(o.avail_in-=f,r.arraySet(_,o.input,o.next_in,f,d),1===o.state.wrap?o.adler=s(o.adler,_,f,d):2===o.state.wrap&&(o.adler=h(o.adler,_,f,d)),o.next_in+=f,o.total_in+=f,f),t.lookahead+=a,t.lookahead+t.insert>=N)for(l=t.strstart-t.insert,t.ins_h=t.window[l],t.ins_h=(t.ins_h<<t.hash_shift^t.window[l+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[l+N-1])&t.hash_mask,t.prev[l&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=l,l++,t.insert--,!(t.lookahead+t.insert<N)););}while(t.lookahead<L&&0!==t.strm.avail_in)}function st(t,e){for(var a,n;;){if(t.lookahead<L){if(it(t),t.lookahead<L&&e===o)return G;if(0===t.lookahead)break}if(a=0,t.lookahead>=N&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+N-1])&t.hash_mask,a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-L&&(t.match_length=rt(t,a)),t.match_length>=N)if(n=i._tr_tally(t,t.strstart-t.match_start,t.match_length-N),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=N){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+N-1])&t.hash_mask,a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else n=i._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(et(t,!1),0===t.strm.avail_out))return G}return t.insert=t.strstart<N-1?t.strstart:N-1,e===u?(et(t,!0),0===t.strm.avail_out?V:W):t.last_lit&&(et(t,!1),0===t.strm.avail_out)?G:Q}function ht(t,e){for(var a,n,r;;){if(t.lookahead<L){if(it(t),t.lookahead<L&&e===o)return G;if(0===t.lookahead)break}if(a=0,t.lookahead>=N&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+N-1])&t.hash_mask,a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=N-1,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-L&&(t.match_length=rt(t,a),t.match_length<=5&&(t.strategy===w||t.match_length===N&&t.strstart-t.match_start>4096)&&(t.match_length=N-1)),t.prev_length>=N&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-N,n=i._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-N),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+N-1])&t.hash_mask,a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=N-1,t.strstart++,n&&(et(t,!1),0===t.strm.avail_out))return G}else if(t.match_available){if((n=i._tr_tally(t,0,t.window[t.strstart-1]))&&et(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return G}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=i._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<N-1?t.strstart:N-1,e===u?(et(t,!0),0===t.strm.avail_out?V:W):t.last_lit&&(et(t,!1),0===t.strm.avail_out)?G:Q}function lt(t,e,a,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=n,this.func=r}function ot(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=A,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new r.Buf16(2*D),this.dyn_dtree=new r.Buf16(2*(2*O+1)),this.bl_tree=new r.Buf16(2*(2*U+1)),$(this.dyn_ltree),$(this.dyn_dtree),$(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new r.Buf16(I+1),this.heap=new r.Buf16(2*E+1),$(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new r.Buf16(2*E+1),$(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function _t(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=B,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?R:K,t.adler=2===e.wrap?0:1,e.last_flush=o,i._tr_init(e),c):Y(t,g)}function dt(t){var e,a=_t(t);return a===c&&((e=t.state).window_size=2*e.w_size,$(e.head),e.max_lazy_match=n[e.level].max_lazy,e.good_match=n[e.level].good_length,e.nice_match=n[e.level].nice_length,e.max_chain_length=n[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=N-1,e.match_available=0,e.ins_h=0),a}function ut(t,e,a,n,i,s){if(!t)return g;var h=1;if(e===v&&(e=6),n<0?(h=0,n=-n):n>15&&(h=2,n-=16),i<1||i>C||a!==A||n<8||n>15||e<0||e>9||s<0||s>z)return Y(t,g);8===n&&(n=9);var l=new ot;return t.state=l,l.strm=t,l.wrap=h,l.gzhead=null,l.w_bits=n,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=i+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+N-1)/N),l.window=new r.Buf8(2*l.w_size),l.head=new r.Buf16(l.hash_size),l.prev=new r.Buf16(l.w_size),l.lit_bufsize=1<<i+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new r.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=e,l.strategy=s,l.method=a,dt(t)}n=[new lt(0,0,0,0,function(t,e){var a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(it(t),0===t.lookahead&&e===o)return G;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+a;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,et(t,!1),0===t.strm.avail_out))return G;if(t.strstart-t.block_start>=t.w_size-L&&(et(t,!1),0===t.strm.avail_out))return G}return t.insert=0,e===u?(et(t,!0),0===t.strm.avail_out?V:W):(t.strstart>t.block_start&&(et(t,!1),t.strm.avail_out),G)}),new lt(4,4,8,4,st),new lt(4,5,16,8,st),new lt(4,6,32,32,st),new lt(4,4,16,16,ht),new lt(8,16,32,32,ht),new lt(8,16,128,128,ht),new lt(8,32,128,256,ht),new lt(32,128,258,1024,ht),new lt(32,258,258,4096,ht)],a.deflateInit=function(t,e){return ut(t,e,A,S,j,x)},a.deflateInit2=ut,a.deflateReset=dt,a.deflateResetKeep=_t,a.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?g:(t.state.gzhead=e,c):g},a.deflate=function(t,e){var a,r,s,l;if(!t||!t.state||e>f||e<0)return t?Y(t,g):g;if(r=t.state,!t.output||!t.input&&0!==t.avail_in||r.status===M&&e!==u)return Y(t,0===t.avail_out?b:g);if(r.strm=t,a=r.last_flush,r.last_flush=e,r.status===R)if(2===r.wrap)t.adler=0,at(r,31),at(r,139),at(r,8),r.gzhead?(at(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),at(r,255&r.gzhead.time),at(r,r.gzhead.time>>8&255),at(r,r.gzhead.time>>16&255),at(r,r.gzhead.time>>24&255),at(r,9===r.level?2:r.strategy>=y||r.level<2?4:0),at(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(at(r,255&r.gzhead.extra.length),at(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=h(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=H):(at(r,0),at(r,0),at(r,0),at(r,0),at(r,0),at(r,9===r.level?2:r.strategy>=y||r.level<2?4:0),at(r,X),r.status=K);else{var m=A+(r.w_bits-8<<4)<<8,v=-1;v=r.strategy>=y||r.level<2?0:r.level<6?1:6===r.level?2:3,m|=v<<6,0!==r.strstart&&(m|=P),m+=31-m%31,r.status=K,nt(r,m),0!==r.strstart&&(nt(r,t.adler>>>16),nt(r,65535&t.adler)),t.adler=1}if(r.status===H)if(r.gzhead.extra){for(s=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>s&&(t.adler=h(t.adler,r.pending_buf,r.pending-s,s)),tt(t),s=r.pending,r.pending!==r.pending_buf_size));)at(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>s&&(t.adler=h(t.adler,r.pending_buf,r.pending-s,s)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=q)}else r.status=q;if(r.status===q)if(r.gzhead.name){s=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>s&&(t.adler=h(t.adler,r.pending_buf,r.pending-s,s)),tt(t),s=r.pending,r.pending===r.pending_buf_size)){l=1;break}l=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,at(r,l)}while(0!==l);r.gzhead.hcrc&&r.pending>s&&(t.adler=h(t.adler,r.pending_buf,r.pending-s,s)),0===l&&(r.gzindex=0,r.status=F)}else r.status=F;if(r.status===F)if(r.gzhead.comment){s=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>s&&(t.adler=h(t.adler,r.pending_buf,r.pending-s,s)),tt(t),s=r.pending,r.pending===r.pending_buf_size)){l=1;break}l=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,at(r,l)}while(0!==l);r.gzhead.hcrc&&r.pending>s&&(t.adler=h(t.adler,r.pending_buf,r.pending-s,s)),0===l&&(r.status=J)}else r.status=J;if(r.status===J&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&tt(t),r.pending+2<=r.pending_buf_size&&(at(r,255&t.adler),at(r,t.adler>>8&255),t.adler=0,r.status=K)):r.status=K),0!==r.pending){if(tt(t),0===t.avail_out)return r.last_flush=-1,c}else if(0===t.avail_in&&Z(e)<=Z(a)&&e!==u)return Y(t,b);if(r.status===M&&0!==t.avail_in)return Y(t,b);if(0!==t.avail_in||0!==r.lookahead||e!==o&&r.status!==M){var w=r.strategy===y?function(t,e){for(var a;;){if(0===t.lookahead&&(it(t),0===t.lookahead)){if(e===o)return G;break}if(t.match_length=0,a=i._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(et(t,!1),0===t.strm.avail_out))return G}return t.insert=0,e===u?(et(t,!0),0===t.strm.avail_out?V:W):t.last_lit&&(et(t,!1),0===t.strm.avail_out)?G:Q}(r,e):r.strategy===k?function(t,e){for(var a,n,r,s,h=t.window;;){if(t.lookahead<=T){if(it(t),t.lookahead<=T&&e===o)return G;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=N&&t.strstart>0&&(r=t.strstart-1,(n=h[r])===h[++r]&&n===h[++r]&&n===h[++r])){s=t.strstart+T;do{}while(n===h[++r]&&n===h[++r]&&n===h[++r]&&n===h[++r]&&n===h[++r]&&n===h[++r]&&n===h[++r]&&n===h[++r]&&r<s);t.match_length=T-(s-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=N?(a=i._tr_tally(t,1,t.match_length-N),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=i._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(et(t,!1),0===t.strm.avail_out))return G}return t.insert=0,e===u?(et(t,!0),0===t.strm.avail_out?V:W):t.last_lit&&(et(t,!1),0===t.strm.avail_out)?G:Q}(r,e):n[r.level].func(r,e);if(w!==V&&w!==W||(r.status=M),w===G||w===V)return 0===t.avail_out&&(r.last_flush=-1),c;if(w===Q&&(e===_?i._tr_align(r):e!==f&&(i._tr_stored_block(r,0,0,!1),e===d&&($(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),tt(t),0===t.avail_out))return r.last_flush=-1,c}return e!==u?c:r.wrap<=0?p:(2===r.wrap?(at(r,255&t.adler),at(r,t.adler>>8&255),at(r,t.adler>>16&255),at(r,t.adler>>24&255),at(r,255&t.total_in),at(r,t.total_in>>8&255),at(r,t.total_in>>16&255),at(r,t.total_in>>24&255)):(nt(r,t.adler>>>16),nt(r,65535&t.adler)),tt(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?c:p)},a.deflateEnd=function(t){var e;return t&&t.state?(e=t.state.status)!==R&&e!==H&&e!==q&&e!==F&&e!==J&&e!==K&&e!==M?Y(t,g):(t.state=null,e===K?Y(t,m):c):g},a.deflateSetDictionary=function(t,e){var a,n,i,h,l,o,_,d,u=e.length;if(!t||!t.state)return g;if(a=t.state,2===(h=a.wrap)||1===h&&a.status!==R||a.lookahead)return g;for(1===h&&(t.adler=s(t.adler,e,u,0)),a.wrap=0,u>=a.w_size&&(0===h&&($(a.head),a.strstart=0,a.block_start=0,a.insert=0),d=new r.Buf8(a.w_size),r.arraySet(d,e,u-a.w_size,a.w_size,0),e=d,u=a.w_size),l=t.avail_in,o=t.next_in,_=t.input,t.avail_in=u,t.next_in=0,t.input=e,it(a);a.lookahead>=N;){n=a.strstart,i=a.lookahead-(N-1);do{a.ins_h=(a.ins_h<<a.hash_shift^a.window[n+N-1])&a.hash_mask,a.prev[n&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=n,n++}while(--i);a.strstart=n,a.lookahead=N-1,it(a)}return a.strstart+=a.lookahead,a.block_start=a.strstart,a.insert=a.lookahead,a.lookahead=0,a.match_length=a.prev_length=N-1,a.match_available=0,t.next_in=o,t.input=_,t.avail_in=l,a.wrap=h,c},a.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":1,"./adler32":3,"./crc32":4,"./messages":6,"./trees":7}],6:[function(t,e,a){e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],7:[function(t,e,a){var n=t("../utils/common"),r=4,i=0,s=1,h=2;function l(t){for(var e=t.length;--e>=0;)t[e]=0}var o=0,_=1,d=2,u=29,f=256,c=f+1+u,p=30,g=19,m=2*c+1,b=15,v=16,w=7,y=256,k=16,z=17,x=18,B=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],A=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],C=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],S=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],j=new Array(2*(c+2));l(j);var E=new Array(2*p);l(E);var O=new Array(512);l(O);var U=new Array(256);l(U);var D=new Array(u);l(D);var I,N,T,L=new Array(p);function P(t,e,a,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=r,this.has_stree=t&&t.length}function R(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function H(t){return t<256?O[t]:O[256+(t>>>7)]}function q(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function F(t,e,a){t.bi_valid>v-a?(t.bi_buf|=e<<t.bi_valid&65535,q(t,t.bi_buf),t.bi_buf=e>>v-t.bi_valid,t.bi_valid+=a-v):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)}function J(t,e,a){F(t,a[2*e],a[2*e+1])}function K(t,e){var a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1}function M(t,e,a){var n,r,i=new Array(b+1),s=0;for(n=1;n<=b;n++)i[n]=s=s+a[n-1]<<1;for(r=0;r<=e;r++){var h=t[2*r+1];0!==h&&(t[2*r]=K(i[h]++,h))}}function G(t){var e;for(e=0;e<c;e++)t.dyn_ltree[2*e]=0;for(e=0;e<p;e++)t.dyn_dtree[2*e]=0;for(e=0;e<g;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*y]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function Q(t){t.bi_valid>8?q(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function V(t,e,a,n){var r=2*e,i=2*a;return t[r]<t[i]||t[r]===t[i]&&n[e]<=n[a]}function W(t,e,a){for(var n=t.heap[a],r=a<<1;r<=t.heap_len&&(r<t.heap_len&&V(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!V(e,n,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=n}function X(t,e,a){var n,r,i,s,h=0;if(0!==t.last_lit)do{n=t.pending_buf[t.d_buf+2*h]<<8|t.pending_buf[t.d_buf+2*h+1],r=t.pending_buf[t.l_buf+h],h++,0===n?J(t,r,e):(i=U[r],J(t,i+f+1,e),0!==(s=B[i])&&(r-=D[i],F(t,r,s)),i=H(--n),J(t,i,a),0!==(s=A[i])&&(n-=L[i],F(t,n,s)))}while(h<t.last_lit);J(t,y,e)}function Y(t,e){var a,n,r,i=e.dyn_tree,s=e.stat_desc.static_tree,h=e.stat_desc.has_stree,l=e.stat_desc.elems,o=-1;for(t.heap_len=0,t.heap_max=m,a=0;a<l;a++)0!==i[2*a]?(t.heap[++t.heap_len]=o=a,t.depth[a]=0):i[2*a+1]=0;for(;t.heap_len<2;)r=t.heap[++t.heap_len]=o<2?++o:0,i[2*r]=1,t.depth[r]=0,t.opt_len--,h&&(t.static_len-=s[2*r+1]);for(e.max_code=o,a=t.heap_len>>1;a>=1;a--)W(t,i,a);r=l;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],W(t,i,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,i[2*r]=i[2*a]+i[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,i[2*a+1]=i[2*n+1]=r,t.heap[1]=r++,W(t,i,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,r,i,s,h,l=e.dyn_tree,o=e.max_code,_=e.stat_desc.static_tree,d=e.stat_desc.has_stree,u=e.stat_desc.extra_bits,f=e.stat_desc.extra_base,c=e.stat_desc.max_length,p=0;for(i=0;i<=b;i++)t.bl_count[i]=0;for(l[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<m;a++)n=t.heap[a],(i=l[2*l[2*n+1]+1]+1)>c&&(i=c,p++),l[2*n+1]=i,n>o||(t.bl_count[i]++,s=0,n>=f&&(s=u[n-f]),h=l[2*n],t.opt_len+=h*(i+s),d&&(t.static_len+=h*(_[2*n+1]+s)));if(0!==p){do{for(i=c-1;0===t.bl_count[i];)i--;t.bl_count[i]--,t.bl_count[i+1]+=2,t.bl_count[c]--,p-=2}while(p>0);for(i=c;0!==i;i--)for(n=t.bl_count[i];0!==n;)(r=t.heap[--a])>o||(l[2*r+1]!==i&&(t.opt_len+=(i-l[2*r+1])*l[2*r],l[2*r+1]=i),n--)}}(t,e),M(i,o,t.bl_count)}function Z(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,o=4;for(0===s&&(l=138,o=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++h<l&&r===s||(h<o?t.bl_tree[2*r]+=h:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[2*k]++):h<=10?t.bl_tree[2*z]++:t.bl_tree[2*x]++,h=0,i=r,0===s?(l=138,o=3):r===s?(l=6,o=3):(l=7,o=4))}function $(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,o=4;for(0===s&&(l=138,o=3),n=0;n<=a;n++)if(r=s,s=e[2*(n+1)+1],!(++h<l&&r===s)){if(h<o)do{J(t,r,t.bl_tree)}while(0!=--h);else 0!==r?(r!==i&&(J(t,r,t.bl_tree),h--),J(t,k,t.bl_tree),F(t,h-3,2)):h<=10?(J(t,z,t.bl_tree),F(t,h-3,3)):(J(t,x,t.bl_tree),F(t,h-11,7));h=0,i=r,0===s?(l=138,o=3):r===s?(l=6,o=3):(l=7,o=4)}}l(L);var tt=!1;function et(t,e,a,r){F(t,(o<<1)+(r?1:0),3),function(t,e,a,r){Q(t),r&&(q(t,a),q(t,~a)),n.arraySet(t.pending_buf,t.window,e,a,t.pending),t.pending+=a}(t,e,a,!0)}a._tr_init=function(t){tt||(function(){var t,e,a,n,r,i=new Array(b+1);for(a=0,n=0;n<u-1;n++)for(D[n]=a,t=0;t<1<<B[n];t++)U[a++]=n;for(U[a-1]=n,r=0,n=0;n<16;n++)for(L[n]=r,t=0;t<1<<A[n];t++)O[r++]=n;for(r>>=7;n<p;n++)for(L[n]=r<<7,t=0;t<1<<A[n]-7;t++)O[256+r++]=n;for(e=0;e<=b;e++)i[e]=0;for(t=0;t<=143;)j[2*t+1]=8,t++,i[8]++;for(;t<=255;)j[2*t+1]=9,t++,i[9]++;for(;t<=279;)j[2*t+1]=7,t++,i[7]++;for(;t<=287;)j[2*t+1]=8,t++,i[8]++;for(M(j,c+1,i),t=0;t<p;t++)E[2*t+1]=5,E[2*t]=K(t,5);I=new P(j,B,f+1,c,b),N=new P(E,A,0,p,b),T=new P(new Array(0),C,0,g,w)}(),tt=!0),t.l_desc=new R(t.dyn_ltree,I),t.d_desc=new R(t.dyn_dtree,N),t.bl_desc=new R(t.bl_tree,T),t.bi_buf=0,t.bi_valid=0,G(t)},a._tr_stored_block=et,a._tr_flush_block=function(t,e,a,n){var l,o,u=0;t.level>0?(t.strm.data_type===h&&(t.strm.data_type=function(t){var e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return i;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return s;for(e=32;e<f;e++)if(0!==t.dyn_ltree[2*e])return s;return i}(t)),Y(t,t.l_desc),Y(t,t.d_desc),u=function(t){var e;for(Z(t,t.dyn_ltree,t.l_desc.max_code),Z(t,t.dyn_dtree,t.d_desc.max_code),Y(t,t.bl_desc),e=g-1;e>=3&&0===t.bl_tree[2*S[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),l=t.opt_len+3+7>>>3,(o=t.static_len+3+7>>>3)<=l&&(l=o)):l=o=a+5,a+4<=l&&-1!==e?et(t,e,a,n):t.strategy===r||o===l?(F(t,(_<<1)+(n?1:0),3),X(t,j,E)):(F(t,(d<<1)+(n?1:0),3),function(t,e,a,n){var r;for(F(t,e-257,5),F(t,a-1,5),F(t,n-4,4),r=0;r<n;r++)F(t,t.bl_tree[2*S[r]+1],3);$(t,t.dyn_ltree,e-1),$(t,t.dyn_dtree,a-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,u+1),X(t,t.dyn_ltree,t.dyn_dtree)),G(t),n&&Q(t)},a._tr_tally=function(t,e,a){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&a,t.last_lit++,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(U[a]+f+1)]++,t.dyn_dtree[2*H(e)]++),t.last_lit===t.lit_bufsize-1},a._tr_align=function(t){F(t,_<<1,3),J(t,y,j),function(t){16===t.bi_valid?(q(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},{"../utils/common":1}],8:[function(t,e,a){e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],"/lib/deflate.js":[function(t,e,a){var n=t("./zlib/deflate"),r=t("./utils/common"),i=t("./utils/strings"),s=t("./zlib/messages"),h=t("./zlib/zstream"),l=Object.prototype.toString,o=0,_=-1,d=0,u=8;function f(t){if(!(this instanceof f))return new f(t);this.options=r.assign({level:_,method:u,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:""},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new h,this.strm.avail_out=0;var a=n.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(a!==o)throw new Error(s[a]);if(e.header&&n.deflateSetHeader(this.strm,e.header),e.dictionary){var c;if(c="string"==typeof e.dictionary?i.string2buf(e.dictionary):"[object ArrayBuffer]"===l.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,(a=n.deflateSetDictionary(this.strm,c))!==o)throw new Error(s[a]);this._dict_set=!0}}function c(t,e){var a=new f(e);if(a.push(t,!0),a.err)throw a.msg||s[a.err];return a.result}f.prototype.push=function(t,e){var a,s,h=this.strm,_=this.options.chunkSize;if(this.ended)return!1;s=e===~~e?e:!0===e?4:0,"string"==typeof t?h.input=i.string2buf(t):"[object ArrayBuffer]"===l.call(t)?h.input=new Uint8Array(t):h.input=t,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new r.Buf8(_),h.next_out=0,h.avail_out=_),1!==(a=n.deflate(h,s))&&a!==o)return this.onEnd(a),this.ended=!0,!1;0!==h.avail_out&&(0!==h.avail_in||4!==s&&2!==s)||("string"===this.options.to?this.onData(i.buf2binstring(r.shrinkBuf(h.output,h.next_out))):this.onData(r.shrinkBuf(h.output,h.next_out)))}while((h.avail_in>0||0===h.avail_out)&&1!==a);return 4===s?(a=n.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===o):2!==s||(this.onEnd(o),h.avail_out=0,!0)},f.prototype.onData=function(t){this.chunks.push(t)},f.prototype.onEnd=function(t){t===o&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},a.Deflate=f,a.deflate=c,a.deflateRaw=function(t,e){return(e=e||{}).raw=!0,c(t,e)},a.gzip=function(t,e){return(e=e||{}).gzip=!0,c(t,e)}},{"./utils/common":1,"./utils/strings":2,"./zlib/deflate":5,"./zlib/messages":6,"./zlib/zstream":8}]},{},[])("/lib/deflate.js")}(n={exports:{}},n.exports),n.exports).deflate;return t.pack=function(t){var a=e(e({},t),{v:"v1"});return r(JSON.stringify(a),{to:"string"})},t}({});
//# sourceMappingURL=rrweb-pack.min.js.map

@@ -400,3 +400,3 @@ var rrwebRecord = (function () {

return mirror.map.hasOwnProperty(id);
}
},
};

@@ -445,3 +445,3 @@ function throttle(func, wait, options) {

}
}
},
});

@@ -560,3 +560,3 @@ return function () { return hookSetter(target, key, original || {}, true); };

function deepDelete(addsSet, n) {
addsSet["delete"](n);
addsSet.delete(n);
n.childNodes.forEach(function (childN) { return deepDelete(addsSet, childN); });

@@ -617,3 +617,3 @@ }

addedSet.add(n);
droppedSet["delete"](n);
droppedSet.delete(n);
}

@@ -630,3 +630,3 @@ n.childNodes.forEach(function (childN) { return genAdds(childN); });

value: value,
node: target
node: target,
});

@@ -645,3 +645,3 @@ }

node: target,
attributes: {}
attributes: {},
};

@@ -673,3 +673,3 @@ attributes.push(item);

parentId: parentId,
id: nodeId
id: nodeId,
});

@@ -697,3 +697,3 @@ }

: mirror.getId(n.nextSibling),
node: serializeNodeWithId(n, document, mirror.map, blockClass, true, inlineStylesheet, maskAllInputs)
node: serializeNodeWithId(n, document, mirror.map, blockClass, true, inlineStylesheet, maskAllInputs),
});

@@ -710,3 +710,3 @@ };

try {
if (movedSet_1_1 && !movedSet_1_1.done && (_a = movedSet_1["return"])) _a.call(movedSet_1);
if (movedSet_1_1 && !movedSet_1_1.done && (_a = movedSet_1.return)) _a.call(movedSet_1);
}

@@ -732,3 +732,3 @@ finally { if (e_1) throw e_1.error; }

try {
if (addedSet_1_1 && !addedSet_1_1.done && (_b = addedSet_1["return"])) _b.call(addedSet_1);
if (addedSet_1_1 && !addedSet_1_1.done && (_b = addedSet_1.return)) _b.call(addedSet_1);
}

@@ -747,3 +747,3 @@ finally { if (e_2) throw e_2.error; }

id: mirror.getId(text.node),
value: text.value
value: text.value,
}); })

@@ -754,7 +754,7 @@ .filter(function (text) { return mirror.has(text.id); }),

id: mirror.getId(attribute.node),
attributes: attribute.attributes
attributes: attribute.attributes,
}); })
.filter(function (attribute) { return mirror.has(attribute.id); }),
removes: removes,
adds: adds
adds: adds,
};

@@ -775,3 +775,3 @@ if (!payload.texts.length &&

childList: true,
subtree: true
subtree: true,
});

@@ -804,7 +804,7 @@ return observer;

id: mirror.getId(target),
timeOffset: Date.now() - timeBaseline
timeOffset: Date.now() - timeBaseline,
});
wrappedCb(isTouchEvent(evt));
}, mousemoveWait, {
trailing: false
trailing: false,
});

@@ -834,3 +834,3 @@ var handlers = [

x: clientX,
y: clientY
y: clientY,
});

@@ -861,3 +861,3 @@ };

x: scrollEl.scrollLeft,
y: scrollEl.scrollTop
y: scrollEl.scrollTop,
});

@@ -869,3 +869,3 @@ }

x: evt.target.scrollLeft,
y: evt.target.scrollTop
y: evt.target.scrollTop,
});

@@ -882,3 +882,3 @@ }

width: Number(width),
height: Number(height)
height: Number(height),
});

@@ -937,3 +937,3 @@ }, 200);

text: el.value,
isChecked: !isChecked
isChecked: !isChecked,
});

@@ -951,3 +951,3 @@ }

var id = mirror.getId(target);
cb(__assign({}, v, { id: id }));
cb(__assign(__assign({}, v), { id: id }));
}

@@ -971,3 +971,3 @@ }

eventHandler({ target: this });
}
},
});

@@ -987,3 +987,3 @@ })));

id: id,
adds: [{ rule: rule, index: index }]
adds: [{ rule: rule, index: index }],
});

@@ -999,3 +999,3 @@ }

id: id,
removes: [{ index: index }]
removes: [{ index: index }],
});

@@ -1018,3 +1018,3 @@ }

type: type === 'play' ? MediaInteractions.Play : MediaInteractions.Pause,
id: mirror.getId(target)
id: mirror.getId(target),
});

@@ -1134,3 +1134,3 @@ }; };

function wrapEvent(e) {
return __assign({}, e, { timestamp: Date.now() });
return __assign(__assign({}, e), { timestamp: Date.now() });
}

@@ -1165,2 +1165,3 @@ var wrappedEmit;

if (isCheckout === void 0) { isCheckout = false; }
var _a, _b, _c, _d;
wrappedEmit(wrapEvent({

@@ -1171,6 +1172,6 @@ type: EventType.Meta,

width: getWindowWidth(),
height: getWindowHeight()
}
height: getWindowHeight(),
},
}), isCheckout);
var _a = __read(snapshot(document, blockClass, inlineStylesheet, maskAllInputs), 2), node = _a[0], idNodeMap = _a[1];
var _e = __read(snapshot(document, blockClass, inlineStylesheet, maskAllInputs), 2), node = _e[0], idNodeMap = _e[1];
if (!node) {

@@ -1185,6 +1186,12 @@ return console.warn('Failed to snapshot the document');

initialOffset: {
left: document.documentElement.scrollLeft,
top: document.documentElement.scrollTop
}
}
left: window.pageXOffset !== undefined
? window.pageXOffset
: (document === null || document === void 0 ? void 0 : document.documentElement.scrollLeft) || ((_b = (_a = document === null || document === void 0 ? void 0 : document.body) === null || _a === void 0 ? void 0 : _a.parentElement) === null || _b === void 0 ? void 0 : _b.scrollLeft) || (document === null || document === void 0 ? void 0 : document.body.scrollLeft) ||
0,
top: window.pageYOffset !== undefined
? window.pageYOffset
: (document === null || document === void 0 ? void 0 : document.documentElement.scrollTop) || ((_d = (_c = document === null || document === void 0 ? void 0 : document.body) === null || _c === void 0 ? void 0 : _c.parentElement) === null || _d === void 0 ? void 0 : _d.scrollTop) || (document === null || document === void 0 ? void 0 : document.body.scrollTop) ||
0,
},
},
}));

@@ -1197,3 +1204,3 @@ }

type: EventType.DomContentLoaded,
data: {}
data: {},
}));

@@ -1207,3 +1214,3 @@ }));

type: EventType.IncrementalSnapshot,
data: __assign({ source: IncrementalSource.Mutation }, m)
data: __assign({ source: IncrementalSource.Mutation }, m),
}));

@@ -1216,4 +1223,4 @@ },

source: source,
positions: positions
}
positions: positions,
},
}));

@@ -1224,3 +1231,3 @@ },

type: EventType.IncrementalSnapshot,
data: __assign({ source: IncrementalSource.MouseInteraction }, d)
data: __assign({ source: IncrementalSource.MouseInteraction }, d),
}));

@@ -1231,3 +1238,3 @@ },

type: EventType.IncrementalSnapshot,
data: __assign({ source: IncrementalSource.Scroll }, p)
data: __assign({ source: IncrementalSource.Scroll }, p),
}));

@@ -1238,3 +1245,3 @@ },

type: EventType.IncrementalSnapshot,
data: __assign({ source: IncrementalSource.ViewportResize }, d)
data: __assign({ source: IncrementalSource.ViewportResize }, d),
}));

@@ -1245,3 +1252,3 @@ },

type: EventType.IncrementalSnapshot,
data: __assign({ source: IncrementalSource.Input }, v)
data: __assign({ source: IncrementalSource.Input }, v),
}));

@@ -1252,3 +1259,3 @@ },

type: EventType.IncrementalSnapshot,
data: __assign({ source: IncrementalSource.MediaInteraction }, p)
data: __assign({ source: IncrementalSource.MediaInteraction }, p),
}));

@@ -1259,3 +1266,3 @@ },

type: EventType.IncrementalSnapshot,
data: __assign({ source: IncrementalSource.StyleSheetRule }, r)
data: __assign({ source: IncrementalSource.StyleSheetRule }, r),
}));

@@ -1267,3 +1274,3 @@ },

inlineStylesheet: inlineStylesheet,
mousemoveWait: mousemoveWait
mousemoveWait: mousemoveWait,
}, hooks));

@@ -1279,3 +1286,3 @@ };

type: EventType.Load,
data: {}
data: {},
}));

@@ -1301,4 +1308,4 @@ init_1();

tag: tag,
payload: payload
}
payload: payload,
},
}));

@@ -1305,0 +1312,0 @@ };

@@ -1,2 +0,2 @@

var rrwebRecord=function(){"use strict";var e,t=function(){return(t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function n(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function r(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function o(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(r(arguments[t]));return e}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(e||(e={}));var a=1,i=RegExp("[^a-z1-6]");function u(e){try{var t=e.rules||e.cssRules;return t?Array.from(t).reduce(function(e,t){return e+(function(e){return"styleSheet"in e}(n=t)?u(n.styleSheet)||"":n.cssText);var n},""):null}catch(e){return null}}var c=/url\((?:'([^']*)'|"([^"]*)"|([^)]*))\)/gm,l=/^(?!www\.|(?:http|ftp)s?:\/\/|[A-Za-z]:\\|\/\/).*/,s=/^(data:)([\w\/\+\-]+);(charset=[\w-]+|base64).*,(.*)/i;function d(e,t){return(e||"").replace(c,function(e,n,r,o){var a,i=n||r||o;if(!i)return e;if(!l.test(i))return"url('"+i+"')";if(s.test(i))return"url("+i+")";if("/"===i[0])return"url('"+(((a=t).indexOf("//")>-1?a.split("/").slice(0,3).join("/"):a.split("/")[0]).split("?")[0]+i)+"')";var u=t.split("/"),c=i.split("/");u.pop();for(var d=0,p=c;d<p.length;d++){var f=p[d];"."!==f&&(".."===f?u.pop():u.push(f))}return"url('"+u.join("/")+"')"})}function p(e,t){if(!t||""===t.trim())return t;var n=e.createElement("a");return n.href=t,n.href}function f(e,t,n){return"src"===t||"href"===t&&n?p(e,n):"srcset"===t&&n?function(e,t){return""===t.trim()?t:t.split(",").map(function(t){var n=t.trimLeft().trimRight().split(" ");return 2===n.length?p(e,n[0])+" "+n[1]:1===n.length?""+p(e,n[0]):""}).join(",")}(e,n):"style"===t&&n?d(n,location.href):n}function h(t,n,r,o,a){switch(t.nodeType){case t.DOCUMENT_NODE:return{type:e.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:e.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId};case t.ELEMENT_NODE:var c=!1;"string"==typeof r?c=t.classList.contains(r):t.classList.forEach(function(e){r.test(e)&&(c=!0)});for(var l=function(e){var t=e.toLowerCase().trim();return i.test(t)?"div":t}(t.tagName),s={},p=0,h=Array.from(t.attributes);p<h.length;p++){var m=h[p],v=m.name,y=m.value;s[v]=f(n,v,y)}if("link"===l&&o){var g,b=Array.from(n.styleSheets).find(function(e){return e.href===t.href});(g=u(b))&&(delete s.rel,delete s.href,s._cssText=d(g,b.href))}if("style"===l&&t.sheet&&!(t.innerText||t.textContent||"").trim().length)(g=u(t.sheet))&&(s._cssText=d(g,location.href));if("input"===l||"textarea"===l||"select"===l){y=t.value;"radio"!==s.type&&"checkbox"!==s.type&&y?s.value=a?"*".repeat(y.length):y:t.checked&&(s.checked=t.checked)}if("option"===l){var S=t.parentElement;s.value===S.value&&(s.selected=t.selected)}if("canvas"===l&&(s.rr_dataURL=t.toDataURL()),"audio"!==l&&"video"!==l||(s.rr_mediaState=t.paused?"paused":"played"),c){var C=t.getBoundingClientRect(),E=C.width,w=C.height;s.rr_width=E+"px",s.rr_height=w+"px"}return{type:e.Element,tagName:l,attributes:s,childNodes:[],isSVG:(x=t,"svg"===x.tagName||x instanceof SVGElement||void 0),needBlock:c};case t.TEXT_NODE:var I=t.parentNode&&t.parentNode.tagName,N=t.textContent,T="STYLE"===I||void 0;return T&&N&&(N=d(N,location.href)),"SCRIPT"===I&&(N="SCRIPT_PLACEHOLDER"),{type:e.Text,textContent:N||"",isStyle:T};case t.CDATA_SECTION_NODE:return{type:e.CDATA,textContent:""};case t.COMMENT_NODE:return{type:e.Comment,textContent:t.textContent||""};default:return!1}var x}function m(t,n,r,o,i,u,c){void 0===i&&(i=!1),void 0===u&&(u=!0),void 0===c&&(c=!1);var l,s=h(t,n,o,u,c);if(!s)return console.warn(t,"not serialized"),null;l="__sn"in t?t.__sn.id:a++;var d=Object.assign(s,{id:l});t.__sn=d,r[l]=t;var p=!i;if(d.type===e.Element&&(p=p&&!d.needBlock,delete d.needBlock),(d.type===e.Document||d.type===e.Element)&&p)for(var f=0,v=Array.from(t.childNodes);f<v.length;f++){var y=m(v[f],n,r,o,i,u,c);y&&d.childNodes.push(y)}return d}function v(e,t,n){void 0===n&&(n=document);var r={capture:!0,passive:!0};return n.addEventListener(e,t,r),function(){return n.removeEventListener(e,t,r)}}var y,g,b,S,C,E={map:{},getId:function(e){return e.__sn?e.__sn.id:-1},getNode:function(e){return E.map[e]||null},removeNodeFromMap:function(e){var t=e.__sn&&e.__sn.id;delete E.map[t],e.childNodes&&e.childNodes.forEach(function(e){return E.removeNodeFromMap(e)})},has:function(e){return E.map.hasOwnProperty(e)}};function w(e,t,n){void 0===n&&(n={});var r=null,o=0;return function(a){var i=Date.now();o||!1!==n.leading||(o=i);var u=t-(i-o),c=this,l=arguments;u<=0||u>t?(r&&(window.clearTimeout(r),r=null),o=i,e.apply(c,l)):r||!1===n.trailing||(r=window.setTimeout(function(){o=!1===n.leading?0:Date.now(),r=null,e.apply(c,l)},u))}}function I(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function N(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function T(e,t){if(!e)return!1;if(e.nodeType===e.ELEMENT_NODE){var n=!1;return"string"==typeof t?n=e.classList.contains(t):e.classList.forEach(function(e){t.test(e)&&(n=!0)}),n||T(e.parentNode,t)}return T(e.parentNode,t)}function x(e){return Boolean(e.changedTouches)}function M(e,t){e.delete(t),t.childNodes.forEach(function(t){return M(e,t)})}function D(e,t){var n=t.parentNode;if(!n)return!1;var r=E.getId(n);return!!e.some(function(e){return e.id===r})||D(e,n)}function k(e,t){var n=t.parentNode;return!!n&&(!!e.has(n)||k(e,n))}!function(e){e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom"}(y||(y={})),function(e){e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule"}(g||(g={})),function(e){e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd"}(b||(b={})),function(e){e[e.Play=0]="Play",e[e.Pause=1]="Pause"}(S||(S={})),function(e){e.Start="start",e.Pause="pause",e.Resume="resume",e.Resize="resize",e.Finish="finish",e.FullsnapshotRebuilded="fullsnapshot-rebuilded",e.LoadStylesheetStart="load-stylesheet-start",e.LoadStylesheetEnd="load-stylesheet-end",e.SkipStart="skip-start",e.SkipEnd="skip-end",e.MouseInteraction="mouse-interaction",e.EventCast="event-cast"}(C||(C={}));var L=function(e,t){return e+"@"+t};function _(e){return"__sn"in e}function R(e,t,r,o){var a=new MutationObserver(function(a){var i,u,c,l,s=[],d=[],p=[],h=[],v=new Set,y=new Set,g=new Set,b={},S=function(e,n){if(!T(e,t)){if(_(e)){y.add(e);var r=null;n&&_(n)&&(r=n.__sn.id),r&&(b[L(e.__sn.id,r)]=!0)}else v.add(e),g.delete(e);e.childNodes.forEach(function(e){return S(e)})}};a.forEach(function(e){var n=e.type,r=e.target,o=e.oldValue,a=e.addedNodes,i=e.removedNodes,u=e.attributeName;switch(n){case"characterData":var c=r.textContent;T(r,t)||c===o||s.push({value:c,node:r});break;case"attributes":c=r.getAttribute(u);if(T(r,t)||c===o)return;var l=d.find(function(e){return e.node===r});l||(l={node:r,attributes:{}},d.push(l)),l.attributes[u]=f(document,u,c);break;case"childList":a.forEach(function(e){return S(e,r)}),i.forEach(function(e){var n=E.getId(e),o=E.getId(r);T(e,t)||(v.has(e)?(M(v,e),g.add(e)):v.has(r)&&-1===n||function e(t){var n=E.getId(t);return!E.has(n)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||e(t.parentNode))}(r)||(y.has(e)&&b[L(n,o)]?M(y,e):p.push({parentId:o,id:n})),E.removeNodeFromMap(e))})}});var C=[],w=function(e){var n=E.getId(e.parentNode);if(-1===n)return C.push(e);h.push({parentId:n,previousId:e.previousSibling?E.getId(e.previousSibling):e.previousSibling,nextId:e.nextSibling?E.getId(e.nextSibling):e.nextSibling,node:m(e,document,E.map,t,!0,r,o)})};try{for(var I=n(y),N=I.next();!N.done;N=I.next()){w(O=N.value)}}catch(e){i={error:e}}finally{try{N&&!N.done&&(u=I.return)&&u.call(I)}finally{if(i)throw i.error}}try{for(var x=n(v),R=x.next();!R.done;R=x.next()){var O=R.value;k(g,O)||D(p,O)?k(y,O)?w(O):g.add(O):w(O)}}catch(e){c={error:e}}finally{try{R&&!R.done&&(l=x.return)&&l.call(x)}finally{if(c)throw c.error}}for(;C.length&&!C.every(function(e){return-1===E.getId(e.parentNode)});)w(C.shift());var A={texts:s.map(function(e){return{id:E.getId(e.node),value:e.value}}).filter(function(e){return E.has(e.id)}),attributes:d.map(function(e){return{id:E.getId(e.node),attributes:e.attributes}}).filter(function(e){return E.has(e.id)}),removes:p,adds:h};(A.texts.length||A.attributes.length||A.removes.length||A.adds.length)&&e(A)});return a.observe(document,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function O(e,t){var n=[];return Object.keys(b).filter(function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")}).forEach(function(r){var o=r.toLowerCase(),a=function(n){return function(r){if(!T(r.target,t)){var o=E.getId(r.target),a=x(r)?r.changedTouches[0]:r,i=a.clientX,u=a.clientY;e({type:b[n],id:o,x:i,y:u})}}}(r);n.push(v(o,a))}),function(){n.forEach(function(e){return e()})}}var A,P=["INPUT","TEXTAREA","SELECT"],z=["color","date","datetime-local","email","month","number","range","search","tel","text","time","url","week"],F=new WeakMap;function j(e,n,r,a){function i(e){var t=e.target;if(t&&t.tagName&&!(P.indexOf(t.tagName)<0)&&!T(t,n)){var o=t.type;if("password"!==o&&!t.classList.contains(r)){var i=t.value,c=!1,l=z.includes(o)||"TEXTAREA"===t.tagName;"radio"===o||"checkbox"===o?c=t.checked:l&&a&&(i="*".repeat(i.length)),u(t,{text:i,isChecked:c});var s=t.name;"radio"===o&&s&&c&&document.querySelectorAll('input[type="radio"][name="'+s+'"]').forEach(function(e){e!==t&&u(e,{text:e.value,isChecked:!c})})}}}function u(n,r){var o=F.get(n);if(!o||o.text!==r.text||o.isChecked!==r.isChecked){F.set(n,r);var a=E.getId(n);e(t({},r,{id:a}))}}var c=["input","change"].map(function(e){return v(e,i)}),l=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),s=[[HTMLInputElement.prototype,"value"],[HTMLInputElement.prototype,"checked"],[HTMLSelectElement.prototype,"value"],[HTMLTextAreaElement.prototype,"value"]];return l&&l.set&&c.push.apply(c,o(s.map(function(e){return function e(t,n,r,o){var a=Object.getOwnPropertyDescriptor(t,n);return Object.defineProperty(t,n,o?r:{set:function(e){var t=this;setTimeout(function(){r.set.call(t,e)},0),a&&a.set&&a.set.call(this,e)}}),function(){return e(t,n,a||{},!0)}}(e[0],e[1],{set:function(){i({target:this})}})}))),function(){c.forEach(function(e){return e()})}}function H(e,t){void 0===t&&(t={}),function(e,t){var n=e.mutationCb,r=e.mousemoveCb,a=e.mouseInteractionCb,i=e.scrollCb,u=e.viewportResizeCb,c=e.inputCb,l=e.mediaInteractionCb,s=e.styleSheetRuleCb;e.mutationCb=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];t.mutation&&t.mutation.apply(t,o(e)),n.apply(void 0,o(e))},e.mousemoveCb=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t.mousemove&&t.mousemove.apply(t,o(e)),r.apply(void 0,o(e))},e.mouseInteractionCb=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t.mouseInteraction&&t.mouseInteraction.apply(t,o(e)),a.apply(void 0,o(e))},e.scrollCb=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t.scroll&&t.scroll.apply(t,o(e)),i.apply(void 0,o(e))},e.viewportResizeCb=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t.viewportResize&&t.viewportResize.apply(t,o(e)),u.apply(void 0,o(e))},e.inputCb=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t.input&&t.input.apply(t,o(e)),c.apply(void 0,o(e))},e.mediaInteractionCb=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t.mediaInteaction&&t.mediaInteaction.apply(t,o(e)),l.apply(void 0,o(e))},e.styleSheetRuleCb=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t.styleSheetRule&&t.styleSheetRule.apply(t,o(e)),s.apply(void 0,o(e))}}(e,t);var n,r,a,i,u,c,l,s=R(e.mutationCb,e.blockClass,e.inlineStylesheet,e.maskAllInputs),d=(n=e.mousemoveCb,r=e.mousemoveWait,i=[],u=w(function(e){var t=Date.now()-a;n(i.map(function(e){return e.timeOffset-=t,e}),e?g.TouchMove:g.MouseMove),i=[],a=null},500),c=w(function(e){var t=e.target,n=x(e)?e.changedTouches[0]:e,r=n.clientX,o=n.clientY;a||(a=Date.now()),i.push({x:r,y:o,id:E.getId(t),timeOffset:Date.now()-a}),u(x(e))},r,{trailing:!1}),l=[v("mousemove",c),v("touchmove",c)],function(){l.forEach(function(e){return e()})}),p=O(e.mouseInteractionCb,e.blockClass),f=function(e,t){return v("scroll",w(function(n){if(n.target&&!T(n.target,t)){var r=E.getId(n.target);if(n.target===document){var o=document.scrollingElement||document.documentElement;e({id:r,x:o.scrollLeft,y:o.scrollTop})}else e({id:r,x:n.target.scrollLeft,y:n.target.scrollTop})}},100))}(e.scrollCb,e.blockClass),h=function(e){return v("resize",w(function(){var t=I(),n=N();e({width:Number(n),height:Number(t)})},200),window)}(e.viewportResizeCb),m=j(e.inputCb,e.blockClass,e.ignoreClass,e.maskAllInputs),y=function(e,t){var n=function(n){return function(r){var o=r.target;o&&!T(o,t)&&e({type:"play"===n?S.Play:S.Pause,id:E.getId(o)})}},r=[v("play",n("play")),v("pause",n("pause"))];return function(){r.forEach(function(e){return e()})}}(e.mediaInteractionCb,e.blockClass),b=function(e){var t=CSSStyleSheet.prototype.insertRule;CSSStyleSheet.prototype.insertRule=function(n,r){var o=E.getId(this.ownerNode);return-1!==o&&e({id:o,adds:[{rule:n,index:r}]}),t.apply(this,arguments)};var n=CSSStyleSheet.prototype.deleteRule;return CSSStyleSheet.prototype.deleteRule=function(t){var r=E.getId(this.ownerNode);return-1!==r&&e({id:r,removes:[{index:t}]}),n.apply(this,arguments)},function(){CSSStyleSheet.prototype.insertRule=t,CSSStyleSheet.prototype.deleteRule=n}}(e.styleSheetRuleCb);return function(){s.disconnect(),d(),p(),f(),h(),m(),y(),b()}}function U(e){return t({},e,{timestamp:Date.now()})}function V(e){void 0===e&&(e={});var n,o=e.emit,a=e.checkoutEveryNms,i=e.checkoutEveryNth,u=e.blockClass,c=void 0===u?"rr-block":u,l=e.ignoreClass,s=void 0===l?"rr-ignore":l,d=e.inlineStylesheet,p=void 0===d||d,f=e.maskAllInputs,h=void 0!==f&&f,b=e.hooks,S=e.mousemoveWait,C=void 0===S?50:S,w=e.packFn;if(!o)throw new Error("emit function is required");"NodeList"in window&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach);var T=0;function x(e){void 0===e&&(e=!1),A(U({type:y.Meta,data:{href:window.location.href,width:N(),height:I()}}),e);var t=r(function(e,t,n,r){void 0===t&&(t="rr-block"),void 0===n&&(n=!0),void 0===r&&(r=!1);var o={};return[m(e,e,o,t,!1,n,r),o]}(document,c,p,h),2),n=t[0],o=t[1];if(!n)return console.warn("Failed to snapshot the document");E.map=o,A(U({type:y.FullSnapshot,data:{node:n,initialOffset:{left:document.documentElement.scrollLeft,top:document.documentElement.scrollTop}}}))}A=function(e,t){if(o(w?w(e):e,t),e.type===y.FullSnapshot)n=e,T=0;else if(e.type===y.IncrementalSnapshot){T++;var r=i&&T>=i,u=a&&e.timestamp-n.timestamp>a;(r||u)&&x(!0)}};try{var M=[];M.push(v("DOMContentLoaded",function(){A(U({type:y.DomContentLoaded,data:{}}))}));var D=function(){x(),M.push(H({mutationCb:function(e){return A(U({type:y.IncrementalSnapshot,data:t({source:g.Mutation},e)}))},mousemoveCb:function(e,t){return A(U({type:y.IncrementalSnapshot,data:{source:t,positions:e}}))},mouseInteractionCb:function(e){return A(U({type:y.IncrementalSnapshot,data:t({source:g.MouseInteraction},e)}))},scrollCb:function(e){return A(U({type:y.IncrementalSnapshot,data:t({source:g.Scroll},e)}))},viewportResizeCb:function(e){return A(U({type:y.IncrementalSnapshot,data:t({source:g.ViewportResize},e)}))},inputCb:function(e){return A(U({type:y.IncrementalSnapshot,data:t({source:g.Input},e)}))},mediaInteractionCb:function(e){return A(U({type:y.IncrementalSnapshot,data:t({source:g.MediaInteraction},e)}))},styleSheetRuleCb:function(e){return A(U({type:y.IncrementalSnapshot,data:t({source:g.StyleSheetRule},e)}))},blockClass:c,ignoreClass:s,maskAllInputs:h,inlineStylesheet:p,mousemoveWait:C},b))};return"interactive"===document.readyState||"complete"===document.readyState?D():M.push(v("load",function(){A(U({type:y.Load,data:{}})),D()},window)),function(){M.forEach(function(e){return e()})}}catch(e){console.warn(e)}}return V.addCustomEvent=function(e,t){if(!A)throw new Error("please add custom event after start recording");A(U({type:y.Custom,data:{tag:e,payload:t}}))},V}();
var rrwebRecord=function(){"use strict";var e,t=function(){return(t=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function n(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function o(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(o=a.next()).done;)i.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return i}function r(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(o(arguments[t]));return e}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(e||(e={}));var a=1,i=RegExp("[^a-z1-6]");function u(e){try{var t=e.rules||e.cssRules;return t?Array.from(t).reduce(function(e,t){return e+(function(e){return"styleSheet"in e}(n=t)?u(n.styleSheet)||"":n.cssText);var n},""):null}catch(e){return null}}var c=/url\((?:'([^']*)'|"([^"]*)"|([^)]*))\)/gm,l=/^(?!www\.|(?:http|ftp)s?:\/\/|[A-Za-z]:\\|\/\/).*/,s=/^(data:)([\w\/\+\-]+);(charset=[\w-]+|base64).*,(.*)/i;function d(e,t){return(e||"").replace(c,function(e,n,o,r){var a,i=n||o||r;if(!i)return e;if(!l.test(i))return"url('"+i+"')";if(s.test(i))return"url("+i+")";if("/"===i[0])return"url('"+(((a=t).indexOf("//")>-1?a.split("/").slice(0,3).join("/"):a.split("/")[0]).split("?")[0]+i)+"')";var u=t.split("/"),c=i.split("/");u.pop();for(var d=0,p=c;d<p.length;d++){var f=p[d];"."!==f&&(".."===f?u.pop():u.push(f))}return"url('"+u.join("/")+"')"})}function p(e,t){if(!t||""===t.trim())return t;var n=e.createElement("a");return n.href=t,n.href}function f(e,t,n){return"src"===t||"href"===t&&n?p(e,n):"srcset"===t&&n?function(e,t){return""===t.trim()?t:t.split(",").map(function(t){var n=t.trimLeft().trimRight().split(" ");return 2===n.length?p(e,n[0])+" "+n[1]:1===n.length?""+p(e,n[0]):""}).join(",")}(e,n):"style"===t&&n?d(n,location.href):n}function m(t,n,o,r,a){switch(t.nodeType){case t.DOCUMENT_NODE:return{type:e.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:e.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId};case t.ELEMENT_NODE:var c=!1;"string"==typeof o?c=t.classList.contains(o):t.classList.forEach(function(e){o.test(e)&&(c=!0)});for(var l=function(e){var t=e.toLowerCase().trim();return i.test(t)?"div":t}(t.tagName),s={},p=0,m=Array.from(t.attributes);p<m.length;p++){var v=m[p],h=v.name,y=v.value;s[h]=f(n,h,y)}if("link"===l&&r){var g,b=Array.from(n.styleSheets).find(function(e){return e.href===t.href});(g=u(b))&&(delete s.rel,delete s.href,s._cssText=d(g,b.href))}if("style"===l&&t.sheet&&!(t.innerText||t.textContent||"").trim().length)(g=u(t.sheet))&&(s._cssText=d(g,location.href));if("input"===l||"textarea"===l||"select"===l){y=t.value;"radio"!==s.type&&"checkbox"!==s.type&&y?s.value=a?"*".repeat(y.length):y:t.checked&&(s.checked=t.checked)}if("option"===l){var S=t.parentElement;s.value===S.value&&(s.selected=t.selected)}if("canvas"===l&&(s.rr_dataURL=t.toDataURL()),"audio"!==l&&"video"!==l||(s.rr_mediaState=t.paused?"paused":"played"),c){var C=t.getBoundingClientRect(),E=C.width,w=C.height;s.rr_width=E+"px",s.rr_height=w+"px"}return{type:e.Element,tagName:l,attributes:s,childNodes:[],isSVG:(x=t,"svg"===x.tagName||x instanceof SVGElement||void 0),needBlock:c};case t.TEXT_NODE:var I=t.parentNode&&t.parentNode.tagName,N=t.textContent,T="STYLE"===I||void 0;return T&&N&&(N=d(N,location.href)),"SCRIPT"===I&&(N="SCRIPT_PLACEHOLDER"),{type:e.Text,textContent:N||"",isStyle:T};case t.CDATA_SECTION_NODE:return{type:e.CDATA,textContent:""};case t.COMMENT_NODE:return{type:e.Comment,textContent:t.textContent||""};default:return!1}var x}function v(t,n,o,r,i,u,c){void 0===i&&(i=!1),void 0===u&&(u=!0),void 0===c&&(c=!1);var l,s=m(t,n,r,u,c);if(!s)return console.warn(t,"not serialized"),null;l="__sn"in t?t.__sn.id:a++;var d=Object.assign(s,{id:l});t.__sn=d,o[l]=t;var p=!i;if(d.type===e.Element&&(p=p&&!d.needBlock,delete d.needBlock),(d.type===e.Document||d.type===e.Element)&&p)for(var f=0,h=Array.from(t.childNodes);f<h.length;f++){var y=v(h[f],n,o,r,i,u,c);y&&d.childNodes.push(y)}return d}function h(e,t,n){void 0===n&&(n=document);var o={capture:!0,passive:!0};return n.addEventListener(e,t,o),function(){return n.removeEventListener(e,t,o)}}var y,g,b,S,C,E={map:{},getId:function(e){return e.__sn?e.__sn.id:-1},getNode:function(e){return E.map[e]||null},removeNodeFromMap:function(e){var t=e.__sn&&e.__sn.id;delete E.map[t],e.childNodes&&e.childNodes.forEach(function(e){return E.removeNodeFromMap(e)})},has:function(e){return E.map.hasOwnProperty(e)}};function w(e,t,n){void 0===n&&(n={});var o=null,r=0;return function(a){var i=Date.now();r||!1!==n.leading||(r=i);var u=t-(i-r),c=this,l=arguments;u<=0||u>t?(o&&(window.clearTimeout(o),o=null),r=i,e.apply(c,l)):o||!1===n.trailing||(o=window.setTimeout(function(){r=!1===n.leading?0:Date.now(),o=null,e.apply(c,l)},u))}}function I(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function N(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function T(e,t){if(!e)return!1;if(e.nodeType===e.ELEMENT_NODE){var n=!1;return"string"==typeof t?n=e.classList.contains(t):e.classList.forEach(function(e){t.test(e)&&(n=!0)}),n||T(e.parentNode,t)}return T(e.parentNode,t)}function x(e){return Boolean(e.changedTouches)}function M(e,t){e.delete(t),t.childNodes.forEach(function(t){return M(e,t)})}function D(e,t){var n=t.parentNode;if(!n)return!1;var o=E.getId(n);return!!e.some(function(e){return e.id===o})||D(e,n)}function k(e,t){var n=t.parentNode;return!!n&&(!!e.has(n)||k(e,n))}!function(e){e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom"}(y||(y={})),function(e){e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule"}(g||(g={})),function(e){e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd"}(b||(b={})),function(e){e[e.Play=0]="Play",e[e.Pause=1]="Pause"}(S||(S={})),function(e){e.Start="start",e.Pause="pause",e.Resume="resume",e.Resize="resize",e.Finish="finish",e.FullsnapshotRebuilded="fullsnapshot-rebuilded",e.LoadStylesheetStart="load-stylesheet-start",e.LoadStylesheetEnd="load-stylesheet-end",e.SkipStart="skip-start",e.SkipEnd="skip-end",e.MouseInteraction="mouse-interaction",e.EventCast="event-cast"}(C||(C={}));var L=function(e,t){return e+"@"+t};function _(e){return"__sn"in e}function R(e,t,o,r){var a=new MutationObserver(function(a){var i,u,c,l,s=[],d=[],p=[],m=[],h=new Set,y=new Set,g=new Set,b={},S=function(e,n){if(!T(e,t)){if(_(e)){y.add(e);var o=null;n&&_(n)&&(o=n.__sn.id),o&&(b[L(e.__sn.id,o)]=!0)}else h.add(e),g.delete(e);e.childNodes.forEach(function(e){return S(e)})}};a.forEach(function(e){var n=e.type,o=e.target,r=e.oldValue,a=e.addedNodes,i=e.removedNodes,u=e.attributeName;switch(n){case"characterData":var c=o.textContent;T(o,t)||c===r||s.push({value:c,node:o});break;case"attributes":c=o.getAttribute(u);if(T(o,t)||c===r)return;var l=d.find(function(e){return e.node===o});l||(l={node:o,attributes:{}},d.push(l)),l.attributes[u]=f(document,u,c);break;case"childList":a.forEach(function(e){return S(e,o)}),i.forEach(function(e){var n=E.getId(e),r=E.getId(o);T(e,t)||(h.has(e)?(M(h,e),g.add(e)):h.has(o)&&-1===n||function e(t){var n=E.getId(t);return!E.has(n)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||e(t.parentNode))}(o)||(y.has(e)&&b[L(n,r)]?M(y,e):p.push({parentId:r,id:n})),E.removeNodeFromMap(e))})}});var C=[],w=function(e){var n=E.getId(e.parentNode);if(-1===n)return C.push(e);m.push({parentId:n,previousId:e.previousSibling?E.getId(e.previousSibling):e.previousSibling,nextId:e.nextSibling?E.getId(e.nextSibling):e.nextSibling,node:v(e,document,E.map,t,!0,o,r)})};try{for(var I=n(y),N=I.next();!N.done;N=I.next()){w(O=N.value)}}catch(e){i={error:e}}finally{try{N&&!N.done&&(u=I.return)&&u.call(I)}finally{if(i)throw i.error}}try{for(var x=n(h),R=x.next();!R.done;R=x.next()){var O=R.value;k(g,O)||D(p,O)?k(y,O)?w(O):g.add(O):w(O)}}catch(e){c={error:e}}finally{try{R&&!R.done&&(l=x.return)&&l.call(x)}finally{if(c)throw c.error}}for(;C.length&&!C.every(function(e){return-1===E.getId(e.parentNode)});)w(C.shift());var A={texts:s.map(function(e){return{id:E.getId(e.node),value:e.value}}).filter(function(e){return E.has(e.id)}),attributes:d.map(function(e){return{id:E.getId(e.node),attributes:e.attributes}}).filter(function(e){return E.has(e.id)}),removes:p,adds:m};(A.texts.length||A.attributes.length||A.removes.length||A.adds.length)&&e(A)});return a.observe(document,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function O(e,t){var n=[];return Object.keys(b).filter(function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")}).forEach(function(o){var r=o.toLowerCase(),a=function(n){return function(o){if(!T(o.target,t)){var r=E.getId(o.target),a=x(o)?o.changedTouches[0]:o,i=a.clientX,u=a.clientY;e({type:b[n],id:r,x:i,y:u})}}}(o);n.push(h(r,a))}),function(){n.forEach(function(e){return e()})}}var A,P=["INPUT","TEXTAREA","SELECT"],z=["color","date","datetime-local","email","month","number","range","search","tel","text","time","url","week"],F=new WeakMap;function j(e,n,o,a){function i(e){var t=e.target;if(t&&t.tagName&&!(P.indexOf(t.tagName)<0)&&!T(t,n)){var r=t.type;if("password"!==r&&!t.classList.contains(o)){var i=t.value,c=!1,l=z.includes(r)||"TEXTAREA"===t.tagName;"radio"===r||"checkbox"===r?c=t.checked:l&&a&&(i="*".repeat(i.length)),u(t,{text:i,isChecked:c});var s=t.name;"radio"===r&&s&&c&&document.querySelectorAll('input[type="radio"][name="'+s+'"]').forEach(function(e){e!==t&&u(e,{text:e.value,isChecked:!c})})}}}function u(n,o){var r=F.get(n);if(!r||r.text!==o.text||r.isChecked!==o.isChecked){F.set(n,o);var a=E.getId(n);e(t(t({},o),{id:a}))}}var c=["input","change"].map(function(e){return h(e,i)}),l=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),s=[[HTMLInputElement.prototype,"value"],[HTMLInputElement.prototype,"checked"],[HTMLSelectElement.prototype,"value"],[HTMLTextAreaElement.prototype,"value"]];return l&&l.set&&c.push.apply(c,r(s.map(function(e){return function e(t,n,o,r){var a=Object.getOwnPropertyDescriptor(t,n);return Object.defineProperty(t,n,r?o:{set:function(e){var t=this;setTimeout(function(){o.set.call(t,e)},0),a&&a.set&&a.set.call(this,e)}}),function(){return e(t,n,a||{},!0)}}(e[0],e[1],{set:function(){i({target:this})}})}))),function(){c.forEach(function(e){return e()})}}function H(e,t){void 0===t&&(t={}),function(e,t){var n=e.mutationCb,o=e.mousemoveCb,a=e.mouseInteractionCb,i=e.scrollCb,u=e.viewportResizeCb,c=e.inputCb,l=e.mediaInteractionCb,s=e.styleSheetRuleCb;e.mutationCb=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];t.mutation&&t.mutation.apply(t,r(e)),n.apply(void 0,r(e))},e.mousemoveCb=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t.mousemove&&t.mousemove.apply(t,r(e)),o.apply(void 0,r(e))},e.mouseInteractionCb=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t.mouseInteraction&&t.mouseInteraction.apply(t,r(e)),a.apply(void 0,r(e))},e.scrollCb=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t.scroll&&t.scroll.apply(t,r(e)),i.apply(void 0,r(e))},e.viewportResizeCb=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t.viewportResize&&t.viewportResize.apply(t,r(e)),u.apply(void 0,r(e))},e.inputCb=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t.input&&t.input.apply(t,r(e)),c.apply(void 0,r(e))},e.mediaInteractionCb=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t.mediaInteaction&&t.mediaInteaction.apply(t,r(e)),l.apply(void 0,r(e))},e.styleSheetRuleCb=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t.styleSheetRule&&t.styleSheetRule.apply(t,r(e)),s.apply(void 0,r(e))}}(e,t);var n,o,a,i,u,c,l,s=R(e.mutationCb,e.blockClass,e.inlineStylesheet,e.maskAllInputs),d=(n=e.mousemoveCb,o=e.mousemoveWait,i=[],u=w(function(e){var t=Date.now()-a;n(i.map(function(e){return e.timeOffset-=t,e}),e?g.TouchMove:g.MouseMove),i=[],a=null},500),c=w(function(e){var t=e.target,n=x(e)?e.changedTouches[0]:e,o=n.clientX,r=n.clientY;a||(a=Date.now()),i.push({x:o,y:r,id:E.getId(t),timeOffset:Date.now()-a}),u(x(e))},o,{trailing:!1}),l=[h("mousemove",c),h("touchmove",c)],function(){l.forEach(function(e){return e()})}),p=O(e.mouseInteractionCb,e.blockClass),f=function(e,t){return h("scroll",w(function(n){if(n.target&&!T(n.target,t)){var o=E.getId(n.target);if(n.target===document){var r=document.scrollingElement||document.documentElement;e({id:o,x:r.scrollLeft,y:r.scrollTop})}else e({id:o,x:n.target.scrollLeft,y:n.target.scrollTop})}},100))}(e.scrollCb,e.blockClass),m=function(e){return h("resize",w(function(){var t=I(),n=N();e({width:Number(n),height:Number(t)})},200),window)}(e.viewportResizeCb),v=j(e.inputCb,e.blockClass,e.ignoreClass,e.maskAllInputs),y=function(e,t){var n=function(n){return function(o){var r=o.target;r&&!T(r,t)&&e({type:"play"===n?S.Play:S.Pause,id:E.getId(r)})}},o=[h("play",n("play")),h("pause",n("pause"))];return function(){o.forEach(function(e){return e()})}}(e.mediaInteractionCb,e.blockClass),b=function(e){var t=CSSStyleSheet.prototype.insertRule;CSSStyleSheet.prototype.insertRule=function(n,o){var r=E.getId(this.ownerNode);return-1!==r&&e({id:r,adds:[{rule:n,index:o}]}),t.apply(this,arguments)};var n=CSSStyleSheet.prototype.deleteRule;return CSSStyleSheet.prototype.deleteRule=function(t){var o=E.getId(this.ownerNode);return-1!==o&&e({id:o,removes:[{index:t}]}),n.apply(this,arguments)},function(){CSSStyleSheet.prototype.insertRule=t,CSSStyleSheet.prototype.deleteRule=n}}(e.styleSheetRuleCb);return function(){s.disconnect(),d(),p(),f(),m(),v(),y(),b()}}function U(e){return t(t({},e),{timestamp:Date.now()})}function V(e){void 0===e&&(e={});var n,r=e.emit,a=e.checkoutEveryNms,i=e.checkoutEveryNth,u=e.blockClass,c=void 0===u?"rr-block":u,l=e.ignoreClass,s=void 0===l?"rr-ignore":l,d=e.inlineStylesheet,p=void 0===d||d,f=e.maskAllInputs,m=void 0!==f&&f,b=e.hooks,S=e.mousemoveWait,C=void 0===S?50:S,w=e.packFn;if(!r)throw new Error("emit function is required");"NodeList"in window&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach);var T=0;function x(e){var t,n,r,a;void 0===e&&(e=!1),A(U({type:y.Meta,data:{href:window.location.href,width:N(),height:I()}}),e);var i=o(function(e,t,n,o){void 0===t&&(t="rr-block"),void 0===n&&(n=!0),void 0===o&&(o=!1);var r={};return[v(e,e,r,t,!1,n,o),r]}(document,c,p,m),2),u=i[0],l=i[1];if(!u)return console.warn("Failed to snapshot the document");E.map=l,A(U({type:y.FullSnapshot,data:{node:u,initialOffset:{left:void 0!==window.pageXOffset?window.pageXOffset:(null===document||void 0===document?void 0:document.documentElement.scrollLeft)||(null===(n=null===(t=null===document||void 0===document?void 0:document.body)||void 0===t?void 0:t.parentElement)||void 0===n?void 0:n.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===(a=null===(r=null===document||void 0===document?void 0:document.body)||void 0===r?void 0:r.parentElement)||void 0===a?void 0:a.scrollTop)||(null===document||void 0===document?void 0:document.body.scrollTop)||0}}}))}A=function(e,t){if(r(w?w(e):e,t),e.type===y.FullSnapshot)n=e,T=0;else if(e.type===y.IncrementalSnapshot){T++;var o=i&&T>=i,u=a&&e.timestamp-n.timestamp>a;(o||u)&&x(!0)}};try{var M=[];M.push(h("DOMContentLoaded",function(){A(U({type:y.DomContentLoaded,data:{}}))}));var D=function(){x(),M.push(H({mutationCb:function(e){return A(U({type:y.IncrementalSnapshot,data:t({source:g.Mutation},e)}))},mousemoveCb:function(e,t){return A(U({type:y.IncrementalSnapshot,data:{source:t,positions:e}}))},mouseInteractionCb:function(e){return A(U({type:y.IncrementalSnapshot,data:t({source:g.MouseInteraction},e)}))},scrollCb:function(e){return A(U({type:y.IncrementalSnapshot,data:t({source:g.Scroll},e)}))},viewportResizeCb:function(e){return A(U({type:y.IncrementalSnapshot,data:t({source:g.ViewportResize},e)}))},inputCb:function(e){return A(U({type:y.IncrementalSnapshot,data:t({source:g.Input},e)}))},mediaInteractionCb:function(e){return A(U({type:y.IncrementalSnapshot,data:t({source:g.MediaInteraction},e)}))},styleSheetRuleCb:function(e){return A(U({type:y.IncrementalSnapshot,data:t({source:g.StyleSheetRule},e)}))},blockClass:c,ignoreClass:s,maskAllInputs:m,inlineStylesheet:p,mousemoveWait:C},b))};return"interactive"===document.readyState||"complete"===document.readyState?D():M.push(h("load",function(){A(U({type:y.Load,data:{}})),D()},window)),function(){M.forEach(function(e){return e()})}}catch(e){console.warn(e)}}return V.addCustomEvent=function(e,t){if(!A)throw new Error("please add custom event after start recording");A(U({type:y.Custom,data:{tag:e,payload:t}}))},V}();
//# sourceMappingURL=rrweb-record.min.js.map

@@ -6,3 +6,3 @@ import { __assign } from '../../node_modules/tslib/tslib.es6.js';

var pack = function (event) {
var _e = __assign({}, event, { v: MARK });
var _e = __assign(__assign({}, event), { v: MARK });
return pako_deflate_1(JSON.stringify(_e), { to: 'string' });

@@ -9,0 +9,0 @@ };

import { mirror } from '../utils.js';
function deepDelete(addsSet, n) {
addsSet["delete"](n);
addsSet.delete(n);
n.childNodes.forEach(function (childN) { return deepDelete(addsSet, childN); });

@@ -6,0 +6,0 @@ }

@@ -8,3 +8,3 @@ import { __assign, __read } from '../../node_modules/tslib/tslib.es6.js';

function wrapEvent(e) {
return __assign({}, e, { timestamp: Date.now() });
return __assign(__assign({}, e), { timestamp: Date.now() });
}

@@ -39,2 +39,3 @@ var wrappedEmit;

if (isCheckout === void 0) { isCheckout = false; }
var _a, _b, _c, _d;
wrappedEmit(wrapEvent({

@@ -45,6 +46,6 @@ type: EventType.Meta,

width: getWindowWidth(),
height: getWindowHeight()
}
height: getWindowHeight(),
},
}), isCheckout);
var _a = __read(snapshot(document, blockClass, inlineStylesheet, maskAllInputs), 2), node = _a[0], idNodeMap = _a[1];
var _e = __read(snapshot(document, blockClass, inlineStylesheet, maskAllInputs), 2), node = _e[0], idNodeMap = _e[1];
if (!node) {

@@ -59,6 +60,12 @@ return console.warn('Failed to snapshot the document');

initialOffset: {
left: document.documentElement.scrollLeft,
top: document.documentElement.scrollTop
}
}
left: window.pageXOffset !== undefined
? window.pageXOffset
: (document === null || document === void 0 ? void 0 : document.documentElement.scrollLeft) || ((_b = (_a = document === null || document === void 0 ? void 0 : document.body) === null || _a === void 0 ? void 0 : _a.parentElement) === null || _b === void 0 ? void 0 : _b.scrollLeft) || (document === null || document === void 0 ? void 0 : document.body.scrollLeft) ||
0,
top: window.pageYOffset !== undefined
? window.pageYOffset
: (document === null || document === void 0 ? void 0 : document.documentElement.scrollTop) || ((_d = (_c = document === null || document === void 0 ? void 0 : document.body) === null || _c === void 0 ? void 0 : _c.parentElement) === null || _d === void 0 ? void 0 : _d.scrollTop) || (document === null || document === void 0 ? void 0 : document.body.scrollTop) ||
0,
},
},
}));

@@ -71,3 +78,3 @@ }

type: EventType.DomContentLoaded,
data: {}
data: {},
}));

@@ -81,3 +88,3 @@ }));

type: EventType.IncrementalSnapshot,
data: __assign({ source: IncrementalSource.Mutation }, m)
data: __assign({ source: IncrementalSource.Mutation }, m),
}));

@@ -90,4 +97,4 @@ },

source: source,
positions: positions
}
positions: positions,
},
}));

@@ -98,3 +105,3 @@ },

type: EventType.IncrementalSnapshot,
data: __assign({ source: IncrementalSource.MouseInteraction }, d)
data: __assign({ source: IncrementalSource.MouseInteraction }, d),
}));

@@ -105,3 +112,3 @@ },

type: EventType.IncrementalSnapshot,
data: __assign({ source: IncrementalSource.Scroll }, p)
data: __assign({ source: IncrementalSource.Scroll }, p),
}));

@@ -112,3 +119,3 @@ },

type: EventType.IncrementalSnapshot,
data: __assign({ source: IncrementalSource.ViewportResize }, d)
data: __assign({ source: IncrementalSource.ViewportResize }, d),
}));

@@ -119,3 +126,3 @@ },

type: EventType.IncrementalSnapshot,
data: __assign({ source: IncrementalSource.Input }, v)
data: __assign({ source: IncrementalSource.Input }, v),
}));

@@ -126,3 +133,3 @@ },

type: EventType.IncrementalSnapshot,
data: __assign({ source: IncrementalSource.MediaInteraction }, p)
data: __assign({ source: IncrementalSource.MediaInteraction }, p),
}));

@@ -133,3 +140,3 @@ },

type: EventType.IncrementalSnapshot,
data: __assign({ source: IncrementalSource.StyleSheetRule }, r)
data: __assign({ source: IncrementalSource.StyleSheetRule }, r),
}));

@@ -141,3 +148,3 @@ },

inlineStylesheet: inlineStylesheet,
mousemoveWait: mousemoveWait
mousemoveWait: mousemoveWait,
}, hooks));

@@ -153,3 +160,3 @@ };

type: EventType.Load,
data: {}
data: {},
}));

@@ -175,4 +182,4 @@ init_1();

tag: tag,
payload: payload
}
payload: payload,
},
}));

@@ -179,0 +186,0 @@ };

@@ -38,3 +38,3 @@ import { __values, __spread, __assign } from '../../node_modules/tslib/tslib.es6.js';

addedSet.add(n);
droppedSet["delete"](n);
droppedSet.delete(n);
}

@@ -51,3 +51,3 @@ n.childNodes.forEach(function (childN) { return genAdds(childN); });

value: value,
node: target
node: target,
});

@@ -66,3 +66,3 @@ }

node: target,
attributes: {}
attributes: {},
};

@@ -94,3 +94,3 @@ attributes.push(item);

parentId: parentId,
id: nodeId
id: nodeId,
});

@@ -118,3 +118,3 @@ }

: mirror.getId(n.nextSibling),
node: serializeNodeWithId(n, document, mirror.map, blockClass, true, inlineStylesheet, maskAllInputs)
node: serializeNodeWithId(n, document, mirror.map, blockClass, true, inlineStylesheet, maskAllInputs),
});

@@ -131,3 +131,3 @@ };

try {
if (movedSet_1_1 && !movedSet_1_1.done && (_a = movedSet_1["return"])) _a.call(movedSet_1);
if (movedSet_1_1 && !movedSet_1_1.done && (_a = movedSet_1.return)) _a.call(movedSet_1);
}

@@ -153,3 +153,3 @@ finally { if (e_1) throw e_1.error; }

try {
if (addedSet_1_1 && !addedSet_1_1.done && (_b = addedSet_1["return"])) _b.call(addedSet_1);
if (addedSet_1_1 && !addedSet_1_1.done && (_b = addedSet_1.return)) _b.call(addedSet_1);
}

@@ -168,3 +168,3 @@ finally { if (e_2) throw e_2.error; }

id: mirror.getId(text.node),
value: text.value
value: text.value,
}); })

@@ -175,7 +175,7 @@ .filter(function (text) { return mirror.has(text.id); }),

id: mirror.getId(attribute.node),
attributes: attribute.attributes
attributes: attribute.attributes,
}); })
.filter(function (attribute) { return mirror.has(attribute.id); }),
removes: removes,
adds: adds
adds: adds,
};

@@ -196,3 +196,3 @@ if (!payload.texts.length &&

childList: true,
subtree: true
subtree: true,
});

@@ -225,7 +225,7 @@ return observer;

id: mirror.getId(target),
timeOffset: Date.now() - timeBaseline
timeOffset: Date.now() - timeBaseline,
});
wrappedCb(isTouchEvent(evt));
}, mousemoveWait, {
trailing: false
trailing: false,
});

@@ -255,3 +255,3 @@ var handlers = [

x: clientX,
y: clientY
y: clientY,
});

@@ -282,3 +282,3 @@ };

x: scrollEl.scrollLeft,
y: scrollEl.scrollTop
y: scrollEl.scrollTop,
});

@@ -290,3 +290,3 @@ }

x: evt.target.scrollLeft,
y: evt.target.scrollTop
y: evt.target.scrollTop,
});

@@ -303,3 +303,3 @@ }

width: Number(width),
height: Number(height)
height: Number(height),
});

@@ -358,3 +358,3 @@ }, 200);

text: el.value,
isChecked: !isChecked
isChecked: !isChecked,
});

@@ -372,3 +372,3 @@ }

var id = mirror.getId(target);
cb(__assign({}, v, { id: id }));
cb(__assign(__assign({}, v), { id: id }));
}

@@ -392,3 +392,3 @@ }

eventHandler({ target: this });
}
},
});

@@ -408,3 +408,3 @@ })));

id: id,
adds: [{ rule: rule, index: index }]
adds: [{ rule: rule, index: index }],
});

@@ -420,3 +420,3 @@ }

id: id,
removes: [{ index: index }]
removes: [{ index: index }],
});

@@ -439,3 +439,3 @@ }

type: type === 'play' ? MediaInteractions.Play : MediaInteractions.Pause,
id: mirror.getId(target)
id: mirror.getId(target),
});

@@ -442,0 +442,0 @@ }; };

@@ -43,3 +43,3 @@ import { __values, __assign } from '../../node_modules/tslib/tslib.es6.js';

insertStyleRules: [],
triggerFocus: true
triggerFocus: true,
};

@@ -69,3 +69,3 @@ this.config = Object.assign({}, defaultConfig, config);

return {
totalTime: lastEvent.timestamp - firstEvent.timestamp
totalTime: lastEvent.timestamp - firstEvent.timestamp,
};

@@ -80,4 +80,4 @@ };

Replayer.prototype.play = function (timeOffset) {
var e_1, _a;
var _this = this;
var e_1, _a;
if (timeOffset === void 0) { timeOffset = 0; }

@@ -99,3 +99,3 @@ this.timer.clear();

},
delay: this_1.getDelay(event)
delay: this_1.getDelay(event),
});

@@ -114,3 +114,3 @@ }

try {
if (_c && !_c.done && (_a = _b["return"])) _a.call(_b);
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
}

@@ -145,3 +145,3 @@ finally { if (e_1) throw e_1.error; }

doAction: castFn,
delay: this.getDelay(event)
delay: this.getDelay(event),
});

@@ -153,3 +153,3 @@ }

try {
if (_c && !_c.done && (_a = _b["return"])) _a.call(_b);
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
}

@@ -210,3 +210,3 @@ finally { if (e_2) throw e_2.error; }

width: event.data.width,
height: event.data.height
height: event.data.height,
});

@@ -248,3 +248,3 @@ };

try {
if (_c && !_c.done && (_a = _b["return"])) _a.call(_b);
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
}

@@ -257,3 +257,3 @@ finally { if (e_3) throw e_3.error; }

var payload = {
speed: Math.min(Math.round(skipTime / SKIP_TIME_INTERVAL), 360)
speed: Math.min(Math.round(skipTime / SKIP_TIME_INTERVAL), 360),
};

@@ -317,3 +317,3 @@ _this.setConfig(payload);

css.addEventListener('load', function () {
unloadSheets_1["delete"](css);
unloadSheets_1.delete(css);
if (unloadSheets_1.size === 0 && timer_1 !== -1) {

@@ -371,3 +371,3 @@ if (_this.playing) {

node: target,
mutation: mutation
mutation: mutation,
};

@@ -443,3 +443,3 @@ return;

},
delay: p.timeOffset + e.timestamp - _this.baselineTime
delay: p.timeOffset + e.timestamp - _this.baselineTime,
};

@@ -461,3 +461,3 @@ _this.timer.addAction(action);

type: d.type,
target: target
target: target,
});

@@ -474,3 +474,3 @@ var triggerFocus = this.config.triggerFocus;

target.focus({
preventScroll: true
preventScroll: true,
});

@@ -506,3 +506,3 @@ }

left: d.x,
behavior: isSync ? 'auto' : 'smooth'
behavior: isSync ? 'auto' : 'smooth',
});

@@ -523,3 +523,3 @@ }

width: d.width,
height: d.height
height: d.height,
});

@@ -526,0 +526,0 @@ break;

@@ -29,3 +29,3 @@ function on(type, fn, target) {

return mirror.map.hasOwnProperty(id);
}
},
};

@@ -74,3 +74,3 @@ function throttle(func, wait, options) {

}
}
},
});

@@ -77,0 +77,0 @@ return function () { return hookSetter(target, key, original || {}, true); };

@@ -399,3 +399,3 @@ 'use strict';

return mirror.map.hasOwnProperty(id);
}
},
};

@@ -444,3 +444,3 @@ function throttle(func, wait, options) {

}
}
},
});

@@ -559,3 +559,3 @@ return function () { return hookSetter(target, key, original || {}, true); };

function deepDelete(addsSet, n) {
addsSet["delete"](n);
addsSet.delete(n);
n.childNodes.forEach(function (childN) { return deepDelete(addsSet, childN); });

@@ -616,3 +616,3 @@ }

addedSet.add(n);
droppedSet["delete"](n);
droppedSet.delete(n);
}

@@ -629,3 +629,3 @@ n.childNodes.forEach(function (childN) { return genAdds(childN); });

value: value,
node: target
node: target,
});

@@ -644,3 +644,3 @@ }

node: target,
attributes: {}
attributes: {},
};

@@ -672,3 +672,3 @@ attributes.push(item);

parentId: parentId,
id: nodeId
id: nodeId,
});

@@ -696,3 +696,3 @@ }

: mirror.getId(n.nextSibling),
node: serializeNodeWithId(n, document, mirror.map, blockClass, true, inlineStylesheet, maskAllInputs)
node: serializeNodeWithId(n, document, mirror.map, blockClass, true, inlineStylesheet, maskAllInputs),
});

@@ -709,3 +709,3 @@ };

try {
if (movedSet_1_1 && !movedSet_1_1.done && (_a = movedSet_1["return"])) _a.call(movedSet_1);
if (movedSet_1_1 && !movedSet_1_1.done && (_a = movedSet_1.return)) _a.call(movedSet_1);
}

@@ -731,3 +731,3 @@ finally { if (e_1) throw e_1.error; }

try {
if (addedSet_1_1 && !addedSet_1_1.done && (_b = addedSet_1["return"])) _b.call(addedSet_1);
if (addedSet_1_1 && !addedSet_1_1.done && (_b = addedSet_1.return)) _b.call(addedSet_1);
}

@@ -746,3 +746,3 @@ finally { if (e_2) throw e_2.error; }

id: mirror.getId(text.node),
value: text.value
value: text.value,
}); })

@@ -753,7 +753,7 @@ .filter(function (text) { return mirror.has(text.id); }),

id: mirror.getId(attribute.node),
attributes: attribute.attributes
attributes: attribute.attributes,
}); })
.filter(function (attribute) { return mirror.has(attribute.id); }),
removes: removes,
adds: adds
adds: adds,
};

@@ -774,3 +774,3 @@ if (!payload.texts.length &&

childList: true,
subtree: true
subtree: true,
});

@@ -803,7 +803,7 @@ return observer;

id: mirror.getId(target),
timeOffset: Date.now() - timeBaseline
timeOffset: Date.now() - timeBaseline,
});
wrappedCb(isTouchEvent(evt));
}, mousemoveWait, {
trailing: false
trailing: false,
});

@@ -833,3 +833,3 @@ var handlers = [

x: clientX,
y: clientY
y: clientY,
});

@@ -860,3 +860,3 @@ };

x: scrollEl.scrollLeft,
y: scrollEl.scrollTop
y: scrollEl.scrollTop,
});

@@ -868,3 +868,3 @@ }

x: evt.target.scrollLeft,
y: evt.target.scrollTop
y: evt.target.scrollTop,
});

@@ -881,3 +881,3 @@ }

width: Number(width),
height: Number(height)
height: Number(height),
});

@@ -936,3 +936,3 @@ }, 200);

text: el.value,
isChecked: !isChecked
isChecked: !isChecked,
});

@@ -950,3 +950,3 @@ }

var id = mirror.getId(target);
cb(__assign({}, v, { id: id }));
cb(__assign(__assign({}, v), { id: id }));
}

@@ -970,3 +970,3 @@ }

eventHandler({ target: this });
}
},
});

@@ -986,3 +986,3 @@ })));

id: id,
adds: [{ rule: rule, index: index }]
adds: [{ rule: rule, index: index }],
});

@@ -998,3 +998,3 @@ }

id: id,
removes: [{ index: index }]
removes: [{ index: index }],
});

@@ -1017,3 +1017,3 @@ }

type: type === 'play' ? MediaInteractions.Play : MediaInteractions.Pause,
id: mirror.getId(target)
id: mirror.getId(target),
});

@@ -1133,3 +1133,3 @@ }; };

function wrapEvent(e) {
return __assign({}, e, { timestamp: Date.now() });
return __assign(__assign({}, e), { timestamp: Date.now() });
}

@@ -1164,2 +1164,3 @@ var wrappedEmit;

if (isCheckout === void 0) { isCheckout = false; }
var _a, _b, _c, _d;
wrappedEmit(wrapEvent({

@@ -1170,6 +1171,6 @@ type: EventType.Meta,

width: getWindowWidth(),
height: getWindowHeight()
}
height: getWindowHeight(),
},
}), isCheckout);
var _a = __read(snapshot(document, blockClass, inlineStylesheet, maskAllInputs), 2), node = _a[0], idNodeMap = _a[1];
var _e = __read(snapshot(document, blockClass, inlineStylesheet, maskAllInputs), 2), node = _e[0], idNodeMap = _e[1];
if (!node) {

@@ -1184,6 +1185,12 @@ return console.warn('Failed to snapshot the document');

initialOffset: {
left: document.documentElement.scrollLeft,
top: document.documentElement.scrollTop
}
}
left: window.pageXOffset !== undefined
? window.pageXOffset
: (document === null || document === void 0 ? void 0 : document.documentElement.scrollLeft) || ((_b = (_a = document === null || document === void 0 ? void 0 : document.body) === null || _a === void 0 ? void 0 : _a.parentElement) === null || _b === void 0 ? void 0 : _b.scrollLeft) || (document === null || document === void 0 ? void 0 : document.body.scrollLeft) ||
0,
top: window.pageYOffset !== undefined
? window.pageYOffset
: (document === null || document === void 0 ? void 0 : document.documentElement.scrollTop) || ((_d = (_c = document === null || document === void 0 ? void 0 : document.body) === null || _c === void 0 ? void 0 : _c.parentElement) === null || _d === void 0 ? void 0 : _d.scrollTop) || (document === null || document === void 0 ? void 0 : document.body.scrollTop) ||
0,
},
},
}));

@@ -1196,3 +1203,3 @@ }

type: EventType.DomContentLoaded,
data: {}
data: {},
}));

@@ -1206,3 +1213,3 @@ }));

type: EventType.IncrementalSnapshot,
data: __assign({ source: IncrementalSource.Mutation }, m)
data: __assign({ source: IncrementalSource.Mutation }, m),
}));

@@ -1215,4 +1222,4 @@ },

source: source,
positions: positions
}
positions: positions,
},
}));

@@ -1223,3 +1230,3 @@ },

type: EventType.IncrementalSnapshot,
data: __assign({ source: IncrementalSource.MouseInteraction }, d)
data: __assign({ source: IncrementalSource.MouseInteraction }, d),
}));

@@ -1230,3 +1237,3 @@ },

type: EventType.IncrementalSnapshot,
data: __assign({ source: IncrementalSource.Scroll }, p)
data: __assign({ source: IncrementalSource.Scroll }, p),
}));

@@ -1237,3 +1244,3 @@ },

type: EventType.IncrementalSnapshot,
data: __assign({ source: IncrementalSource.ViewportResize }, d)
data: __assign({ source: IncrementalSource.ViewportResize }, d),
}));

@@ -1244,3 +1251,3 @@ },

type: EventType.IncrementalSnapshot,
data: __assign({ source: IncrementalSource.Input }, v)
data: __assign({ source: IncrementalSource.Input }, v),
}));

@@ -1251,3 +1258,3 @@ },

type: EventType.IncrementalSnapshot,
data: __assign({ source: IncrementalSource.MediaInteraction }, p)
data: __assign({ source: IncrementalSource.MediaInteraction }, p),
}));

@@ -1258,3 +1265,3 @@ },

type: EventType.IncrementalSnapshot,
data: __assign({ source: IncrementalSource.StyleSheetRule }, r)
data: __assign({ source: IncrementalSource.StyleSheetRule }, r),
}));

@@ -1266,3 +1273,3 @@ },

inlineStylesheet: inlineStylesheet,
mousemoveWait: mousemoveWait
mousemoveWait: mousemoveWait,
}, hooks));

@@ -1278,3 +1285,3 @@ };

type: EventType.Load,
data: {}
data: {},
}));

@@ -1300,4 +1307,4 @@ init_1();

tag: tag,
payload: payload
}
payload: payload,
},
}));

@@ -1304,0 +1311,0 @@ };

{
"name": "rrweb",
"version": "0.7.32",
"version": "0.7.33",
"description": "record and replay the web",

@@ -58,3 +58,3 @@ "scripts": {

"tslint": "^4.5.1",
"typescript": "^3.4.1"
"typescript": "^3.8.3"
},

@@ -61,0 +61,0 @@ "dependencies": {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc