Last active
July 10, 2023 19:38
-
-
Save samc/03aa379b5872bce539f03caec4b39085 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/node_modules/@datadog/browser-worker/bundle/workerString.js b/node_modules/@datadog/browser-worker/bundle/workerString.js | |
new file mode 100644 | |
index 0000000..9b6f74b | |
--- /dev/null | |
+++ b/node_modules/@datadog/browser-worker/bundle/workerString.js | |
@@ -0,0 +1,4 @@ | |
+"use strict"; | |
+Object.defineProperty(exports, "__esModule", { value: true }); | |
+var workerString = "!function(){\"use strict\";function t(t){for(var e=t.length;--e>=0;)t[e]=0}var e=256,a=286,n=30,r=15,i=new Uint8Array([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]),s=new Uint8Array([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]),h=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),l=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),_=new Array(576);t(_);var o=new Array(60);t(o);var d=new Array(512);t(d);var u=new Array(256);t(u);var f=new Array(29);t(f);var c,p,g,w=new Array(n);function v(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 b(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}t(w);var m=function(t){return t<256?d[t]:d[256+(t>>>7)]},y=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},k=function(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,y(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},z=function(t,e,a){k(t,a[2*e],a[2*e+1])},x=function(t,e){var a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},A=function(t,e,a){var n,i,s=new Array(16),h=0;for(n=1;n<=r;n++)s[n]=h=h+a[n-1]<<1;for(i=0;i<=e;i++){var l=t[2*i+1];0!==l&&(t[2*i]=x(s[l]++,l))}},U=function(t){var e;for(e=0;e<a;e++)t.dyn_ltree[2*e]=0;for(e=0;e<n;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0},B=function(t){t.bi_valid>8?y(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},C=function(t,e,a,n){var r=2*e,i=2*a;return t[r]<t[i]||t[r]===t[i]&&n[e]<=n[a]},E=function(t,e,a){for(var n=t.heap[a],r=a<<1;r<=t.heap_len&&(r<t.heap_len&&C(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!C(e,n,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=n},S=function(t,a,n){var r,h,l,_,o=0;if(0!==t.last_lit)do{r=t.pending_buf[t.d_buf+2*o]<<8|t.pending_buf[t.d_buf+2*o+1],h=t.pending_buf[t.l_buf+o],o++,0===r?z(t,h,a):(l=u[h],z(t,l+e+1,a),0!==(_=i[l])&&(h-=f[l],k(t,h,_)),r--,l=m(r),z(t,l,n),0!==(_=s[l])&&(r-=w[l],k(t,r,_)))}while(o<t.last_lit);z(t,256,a)},D=function(t,e){var a,n,i,s=e.dyn_tree,h=e.stat_desc.static_tree,l=e.stat_desc.has_stree,_=e.stat_desc.elems,o=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<_;a++)0!==s[2*a]?(t.heap[++t.heap_len]=o=a,t.depth[a]=0):s[2*a+1]=0;for(;t.heap_len<2;)s[2*(i=t.heap[++t.heap_len]=o<2?++o:0)]=1,t.depth[i]=0,t.opt_len--,l&&(t.static_len-=h[2*i+1]);for(e.max_code=o,a=t.heap_len>>1;a>=1;a--)E(t,s,a);i=_;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],E(t,s,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,s[2*i]=s[2*a]+s[2*n],t.depth[i]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,s[2*a+1]=s[2*n+1]=i,t.heap[1]=i++,E(t,s,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,i,s,h,l,_=e.dyn_tree,o=e.max_code,d=e.stat_desc.static_tree,u=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,c=e.stat_desc.extra_base,p=e.stat_desc.max_length,g=0;for(s=0;s<=r;s++)t.bl_count[s]=0;for(_[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(s=_[2*_[2*(n=t.heap[a])+1]+1]+1)>p&&(s=p,g++),_[2*n+1]=s,n>o||(t.bl_count[s]++,h=0,n>=c&&(h=f[n-c]),l=_[2*n],t.opt_len+=l*(s+h),u&&(t.static_len+=l*(d[2*n+1]+h)));if(0!==g){do{for(s=p-1;0===t.bl_count[s];)s--;t.bl_count[s]--,t.bl_count[s+1]+=2,t.bl_count[p]--,g-=2}while(g>0);for(s=p;0!==s;s--)for(n=t.bl_count[s];0!==n;)(i=t.heap[--a])>o||(_[2*i+1]!==s&&(t.opt_len+=(s-_[2*i+1])*_[2*i],_[2*i+1]=s),n--)}}(t,e),A(s,o,t.bl_count)},M=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,_=4;for(0===s&&(l=138,_=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<_?t.bl_tree[2*r]+=h:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[32]++):h<=10?t.bl_tree[34]++:t.bl_tree[36]++,h=0,i=r,0===s?(l=138,_=3):r===s?(l=6,_=3):(l=7,_=4))},j=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,_=4;for(0===s&&(l=138,_=3),n=0;n<=a;n++)if(r=s,s=e[2*(n+1)+1],!(++h<l&&r===s)){if(h<_)do{z(t,r,t.bl_tree)}while(0!=--h);else 0!==r?(r!==i&&(z(t,r,t.bl_tree),h--),z(t,16,t.bl_tree),k(t,h-3,2)):h<=10?(z(t,17,t.bl_tree),k(t,h-3,3)):(z(t,18,t.bl_tree),k(t,h-11,7));h=0,i=r,0===s?(l=138,_=3):r===s?(l=6,_=3):(l=7,_=4)}},I=!1,L=function(t,e,a,n){k(t,0+(n?1:0),3),function(t,e,a,n){B(t),n&&(y(t,a),y(t,~a)),t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a}(t,e,a,!0)},T=function(t,a,n,r){var i,s,h=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var a,n=4093624447;for(a=0;a<=31;a++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*a])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(a=32;a<e;a++)if(0!==t.dyn_ltree[2*a])return 1;return 0}(t)),D(t,t.l_desc),D(t,t.d_desc),h=function(t){var e;for(M(t,t.dyn_ltree,t.l_desc.max_code),M(t,t.dyn_dtree,t.d_desc.max_code),D(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*l[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=i&&(i=s)):i=s=n+5,n+4<=i&&-1!==a?L(t,a,n,r):4===t.strategy||s===i?(k(t,2+(r?1:0),3),S(t,_,o)):(k(t,4+(r?1:0),3),function(t,e,a,n){var r;for(k(t,e-257,5),k(t,a-1,5),k(t,n-4,4),r=0;r<n;r++)k(t,t.bl_tree[2*l[r]+1],3);j(t,t.dyn_ltree,e-1),j(t,t.dyn_dtree,a-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,h+1),S(t,t.dyn_ltree,t.dyn_dtree)),U(t),r&&B(t)},H={_tr_init:function(t){I||(!function(){var t,e,l,b,m,y=new Array(16);for(l=0,b=0;b<28;b++)for(f[b]=l,t=0;t<1<<i[b];t++)u[l++]=b;for(u[l-1]=b,m=0,b=0;b<16;b++)for(w[b]=m,t=0;t<1<<s[b];t++)d[m++]=b;for(m>>=7;b<n;b++)for(w[b]=m<<7,t=0;t<1<<s[b]-7;t++)d[256+m++]=b;for(e=0;e<=r;e++)y[e]=0;for(t=0;t<=143;)_[2*t+1]=8,t++,y[8]++;for(;t<=255;)_[2*t+1]=9,t++,y[9]++;for(;t<=279;)_[2*t+1]=7,t++,y[7]++;for(;t<=287;)_[2*t+1]=8,t++,y[8]++;for(A(_,287,y),t=0;t<n;t++)o[2*t+1]=5,o[2*t]=x(t,5);c=new v(_,i,257,a,r),p=new v(o,s,0,n,r),g=new v(new Array(0),h,0,19,7)}(),I=!0),t.l_desc=new b(t.dyn_ltree,c),t.d_desc=new b(t.dyn_dtree,p),t.bl_desc=new b(t.bl_tree,g),t.bi_buf=0,t.bi_valid=0,U(t)},_tr_stored_block:L,_tr_flush_block:T,_tr_tally:function(t,a,n){return t.pending_buf[t.d_buf+2*t.last_lit]=a>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&a,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===a?t.dyn_ltree[2*n]++:(t.matches++,a--,t.dyn_ltree[2*(u[n]+e+1)]++,t.dyn_dtree[2*m(a)]++),t.last_lit===t.lit_bufsize-1},_tr_align:function(t){k(t,2,3),z(t,256,_),function(t){16===t.bi_valid?(y(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)}},R=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{i=i+(r=r+e[n++]|0)|0}while(--s);r%=65521,i%=65521}return r|i<<16|0},K=new Uint32Array(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}()),N=function(t,e,a,n){var r=K,i=n+a;t^=-1;for(var s=n;s<i;s++)t=t>>>8^r[255&(t^e[s])];return-1^t},O={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\"},q=0,F=2,G=3,J=4,P=0,Q=1,V=-1,W=0,X=8,Y=H._tr_init,Z=H._tr_stored_block,$=H._tr_flush_block,tt=H._tr_tally,et=H._tr_align,at=q,nt=1,rt=G,it=J,st=5,ht=P,lt=Q,_t=-2,ot=-3,dt=-5,ut=V,ft=1,ct=2,pt=3,gt=4,wt=W,vt=2,bt=X,mt=258,yt=262,kt=103,zt=113,xt=666,At=function(t,e){return t.msg=O[e],e},Ut=function(t){return(t<<1)-(t>4?9:0)},Bt=function(t){for(var e=t.length;--e>=0;)t[e]=0},Ct=function(t,e,a){return(e<<t.hash_shift^a)&t.hash_mask},Et=function(t){var e=t.state,a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,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))},St=function(t,e){$(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,Et(t.strm)},Dt=function(t,e){t.pending_buf[t.pending++]=e},Mt=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},jt=function(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-yt?t.strstart-(t.w_size-yt):0,_=t.window,o=t.w_mask,d=t.prev,u=t.strstart+mt,f=_[i+s-1],c=_[i+s];t.prev_length>=t.good_match&&(r>>=2),h>t.lookahead&&(h=t.lookahead);do{if(_[(a=e)+s]===c&&_[a+s-1]===f&&_[a]===_[i]&&_[++a]===_[i+1]){i+=2,a++;do{}while(_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&i<u);if(n=mt-(u-i),i=u-mt,n>s){if(t.match_start=e,s=n,n>=h)break;f=_[i+s-1],c=_[i+s]}}}while((e=d[e&o])>l&&0!=--r);return s<=t.lookahead?s:t.lookahead},It=function(t){var e,a,n,r,i,s,h,l,_,o,d=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=d+(d-yt)){t.window.set(t.window.subarray(d,d+d),0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=a=t.hash_size;do{n=t.head[--e],t.head[e]=n>=d?n-d:0}while(--a);e=a=d;do{n=t.prev[--e],t.prev[e]=n>=d?n-d:0}while(--a);r+=d}if(0===t.strm.avail_in)break;if(s=t.strm,h=t.window,l=t.strstart+t.lookahead,_=r,o=void 0,(o=s.avail_in)>_&&(o=_),a=0===o?0:(s.avail_in-=o,h.set(s.input.subarray(s.next_in,s.next_in+o),l),1===s.state.wrap?s.adler=R(s.adler,h,o,l):2===s.state.wrap&&(s.adler=N(s.adler,h,o,l)),s.next_in+=o,s.total_in+=o,o),t.lookahead+=a,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=Ct(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=Ct(t,t.ins_h,t.window[i+3-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<yt&&0!==t.strm.avail_in)},Lt=function(t,e){for(var a,n;;){if(t.lookahead<yt){if(It(t),t.lookahead<yt&&e===at)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=Ct(t,t.ins_h,t.window[t.strstart+3-1]),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-yt&&(t.match_length=jt(t,a)),t.match_length>=3)if(n=tt(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=Ct(t,t.ins_h,t.window[t.strstart+3-1]),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=Ct(t,t.ins_h,t.window[t.strstart+1]);else n=tt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(St(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===it?(St(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(St(t,!1),0===t.strm.avail_out)?1:2},Tt=function(t,e){for(var a,n,r;;){if(t.lookahead<yt){if(It(t),t.lookahead<yt&&e===at)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=Ct(t,t.ins_h,t.window[t.strstart+3-1]),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=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-yt&&(t.match_length=jt(t,a),t.match_length<=5&&(t.strategy===ft||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-3,n=tt(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=Ct(t,t.ins_h,t.window[t.strstart+3-1]),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=2,t.strstart++,n&&(St(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=tt(t,0,t.window[t.strstart-1]))&&St(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=tt(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===it?(St(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(St(t,!1),0===t.strm.avail_out)?1:2};function Ht(t,e,a,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=n,this.func=r}var Rt=[new Ht(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===at)return 1;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,St(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-yt&&(St(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===it?(St(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(St(t,!1),t.strm.avail_out),1)})),new Ht(4,4,8,4,Lt),new Ht(4,5,16,8,Lt),new Ht(4,6,32,32,Lt),new Ht(4,4,16,16,Tt),new Ht(8,16,32,32,Tt),new Ht(8,16,128,128,Tt),new Ht(8,32,128,256,Tt),new Ht(32,128,258,1024,Tt),new Ht(32,258,258,4096,Tt)];function Kt(){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=bt,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 Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),Bt(this.dyn_ltree),Bt(this.dyn_dtree),Bt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),Bt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),Bt(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}var Nt=function(t){if(!t||!t.state)return At(t,_t);t.total_in=t.total_out=0,t.data_type=vt;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:zt,t.adler=2===e.wrap?0:1,e.last_flush=at,Y(e),ht},Ot=function(t){var e,a=Nt(t);return a===ht&&((e=t.state).window_size=2*e.w_size,Bt(e.head),e.max_lazy_match=Rt[e.level].max_lazy,e.good_match=Rt[e.level].good_length,e.nice_match=Rt[e.level].nice_length,e.max_chain_length=Rt[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),a},qt=function(t,e,a,n,r,i){if(!t)return _t;var s=1;if(e===ut&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||a!==bt||n<8||n>15||e<0||e>9||i<0||i>gt)return At(t,_t);8===n&&(n=9);var h=new Kt;return t.state=h,h.strm=t,h.wrap=s,h.gzhead=null,h.w_bits=n,h.w_size=1<<h.w_bits,h.w_mask=h.w_size-1,h.hash_bits=r+7,h.hash_size=1<<h.hash_bits,h.hash_mask=h.hash_size-1,h.hash_shift=~~((h.hash_bits+3-1)/3),h.window=new Uint8Array(2*h.w_size),h.head=new Uint16Array(h.hash_size),h.prev=new Uint16Array(h.w_size),h.lit_bufsize=1<<r+6,h.pending_buf_size=4*h.lit_bufsize,h.pending_buf=new Uint8Array(h.pending_buf_size),h.d_buf=1*h.lit_bufsize,h.l_buf=3*h.lit_bufsize,h.level=e,h.strategy=i,h.method=a,Ot(t)},Ft={deflateInit:function(t,e){return qt(t,e,bt,15,8,wt)},deflateInit2:qt,deflateReset:Ot,deflateResetKeep:Nt,deflateSetHeader:function(t,e){return t&&t.state?2!==t.state.wrap?_t:(t.state.gzhead=e,ht):_t},deflate:function(t,e){var a,n;if(!t||!t.state||e>st||e<0)return t?At(t,_t):_t;var r=t.state;if(!t.output||!t.input&&0!==t.avail_in||r.status===xt&&e!==it)return At(t,0===t.avail_out?dt:_t);r.strm=t;var i=r.last_flush;if(r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,Dt(r,31),Dt(r,139),Dt(r,8),r.gzhead?(Dt(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)),Dt(r,255&r.gzhead.time),Dt(r,r.gzhead.time>>8&255),Dt(r,r.gzhead.time>>16&255),Dt(r,r.gzhead.time>>24&255),Dt(r,9===r.level?2:r.strategy>=ct||r.level<2?4:0),Dt(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(Dt(r,255&r.gzhead.extra.length),Dt(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=N(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(Dt(r,0),Dt(r,0),Dt(r,0),Dt(r,0),Dt(r,0),Dt(r,9===r.level?2:r.strategy>=ct||r.level<2?4:0),Dt(r,3),r.status=zt);else{var s=bt+(r.w_bits-8<<4)<<8;s|=(r.strategy>=ct||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(s|=32),s+=31-s%31,r.status=zt,Mt(r,s),0!==r.strstart&&(Mt(r,t.adler>>>16),Mt(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(t.adler=N(t.adler,r.pending_buf,r.pending-a,a)),Et(t),a=r.pending,r.pending!==r.pending_buf_size));)Dt(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=N(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=N(t.adler,r.pending_buf,r.pending-a,a)),Et(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,Dt(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=N(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=N(t.adler,r.pending_buf,r.pending-a,a)),Et(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,Dt(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=N(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.status=kt)}else r.status=kt;if(r.status===kt&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&Et(t),r.pending+2<=r.pending_buf_size&&(Dt(r,255&t.adler),Dt(r,t.adler>>8&255),t.adler=0,r.status=zt)):r.status=zt),0!==r.pending){if(Et(t),0===t.avail_out)return r.last_flush=-1,ht}else if(0===t.avail_in&&Ut(e)<=Ut(i)&&e!==it)return At(t,dt);if(r.status===xt&&0!==t.avail_in)return At(t,dt);if(0!==t.avail_in||0!==r.lookahead||e!==at&&r.status!==xt){var h=r.strategy===ct?function(t,e){for(var a;;){if(0===t.lookahead&&(It(t),0===t.lookahead)){if(e===at)return 1;break}if(t.match_length=0,a=tt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(St(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===it?(St(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(St(t,!1),0===t.strm.avail_out)?1:2}(r,e):r.strategy===pt?function(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=mt){if(It(t),t.lookahead<=mt&&e===at)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=s[r=t.strstart-1])===s[++r]&&n===s[++r]&&n===s[++r]){i=t.strstart+mt;do{}while(n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&r<i);t.match_length=mt-(i-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=tt(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=tt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(St(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===it?(St(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(St(t,!1),0===t.strm.avail_out)?1:2}(r,e):Rt[r.level].func(r,e);if(3!==h&&4!==h||(r.status=xt),1===h||3===h)return 0===t.avail_out&&(r.last_flush=-1),ht;if(2===h&&(e===nt?et(r):e!==st&&(Z(r,0,0,!1),e===rt&&(Bt(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),Et(t),0===t.avail_out))return r.last_flush=-1,ht}return e!==it?ht:r.wrap<=0?lt:(2===r.wrap?(Dt(r,255&t.adler),Dt(r,t.adler>>8&255),Dt(r,t.adler>>16&255),Dt(r,t.adler>>24&255),Dt(r,255&t.total_in),Dt(r,t.total_in>>8&255),Dt(r,t.total_in>>16&255),Dt(r,t.total_in>>24&255)):(Mt(r,t.adler>>>16),Mt(r,65535&t.adler)),Et(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?ht:lt)},deflateEnd:function(t){if(!t||!t.state)return _t;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==kt&&e!==zt&&e!==xt?At(t,_t):(t.state=null,e===zt?At(t,ot):ht)},deflateSetDictionary:function(t,e){var a=e.length;if(!t||!t.state)return _t;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return _t;if(1===r&&(t.adler=R(t.adler,e,a,0)),n.wrap=0,a>=n.w_size){0===r&&(Bt(n.head),n.strstart=0,n.block_start=0,n.insert=0);var i=new Uint8Array(n.w_size);i.set(e.subarray(a-n.w_size,a),0),e=i,a=n.w_size}var s=t.avail_in,h=t.next_in,l=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,It(n);n.lookahead>=3;){var _=n.strstart,o=n.lookahead-2;do{n.ins_h=Ct(n,n.ins_h,n.window[_+3-1]),n.prev[_&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=_,_++}while(--o);n.strstart=_,n.lookahead=2,It(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=h,t.input=l,t.avail_in=s,n.wrap=r,ht},deflateInfo:\"pako deflate (from Nodeca project)\"};for(var Gt=new Uint8Array(256),Jt=0;Jt<256;Jt++)Gt[Jt]=Jt>=252?6:Jt>=248?5:Jt>=240?4:Jt>=224?3:Jt>=192?2:1;Gt[254]=Gt[254]=1;var Pt=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},Qt=Object.prototype.toString,Vt=q,Wt=F,Xt=G,Yt=J,Zt=P,$t=Q,te=V,ee=W,ae=X;function ne(){this.options={level:te,method:ae,chunkSize:16384,windowBits:15,memLevel:8,strategy:ee};var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg=\"\",this.ended=!1,this.chunks=[],this.strm=new Pt,this.strm.avail_out=0;var e=Ft.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(e!==Zt)throw new Error(O[e]);if(t.header&&Ft.deflateSetHeader(this.strm,t.header),t.dictionary){var a;if(a=\"[object ArrayBuffer]\"===Qt.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(e=Ft.deflateSetDictionary(this.strm,a))!==Zt)throw new Error(O[e]);this._dict_set=!0}}function re(t){return function(){for(var e=[],a=0;a<arguments.length;a++)e[a]=arguments[a];try{return t.apply(void 0,e)}catch(t){try{self.postMessage({type:\"errored\",error:t})}catch(e){self.postMessage({type:\"errored\",error:String(t)})}}}}ne.prototype.push=function(t,e){var a,n,r=this.strm,i=this.options.chunkSize;if(this.ended)return!1;for(n=e===~~e?e:!0===e?Yt:Vt,\"[object ArrayBuffer]\"===Qt.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(i),r.next_out=0,r.avail_out=i),(n===Wt||n===Xt)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if((a=Ft.deflate(r,n))===$t)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=Ft.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===Zt;if(0!==r.avail_out){if(n>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},ne.prototype.onData=function(t){this.chunks.push(t)},ne.prototype.onEnd=function(t){t===Zt&&(this.result=function(t){for(var e=0,a=0,n=t.length;a<n;a++)e+=t[a].length;for(var r=new Uint8Array(e),i=0,s=0,h=t.length;i<h;i++){var l=t[i];r.set(l,s),s+=l.length}return r}(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},re((function(){var t=new ne,e=0;function a(a){var n=function(t){if(\"function\"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);var e,a,n,r,i,s=t.length,h=0;for(r=0;r<s;r++)55296==(64512&(a=t.charCodeAt(r)))&&r+1<s&&56320==(64512&(n=t.charCodeAt(r+1)))&&(a=65536+(a-55296<<10)+(n-56320),r++),h+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(h),i=0,r=0;i<h;r++)55296==(64512&(a=t.charCodeAt(r)))&&r+1<s&&56320==(64512&(n=t.charCodeAt(r+1)))&&(a=65536+(a-55296<<10)+(n-56320),r++),a<128?e[i++]=a:a<2048?(e[i++]=192|a>>>6,e[i++]=128|63&a):a<65536?(e[i++]=224|a>>>12,e[i++]=128|a>>>6&63,e[i++]=128|63&a):(e[i++]=240|a>>>18,e[i++]=128|a>>>12&63,e[i++]=128|a>>>6&63,e[i++]=128|63&a);return e}(a);return t.push(n,F),e+=n.length,n.length}self.addEventListener(\"message\",re((function(n){var r=n.data;switch(r.action){case\"init\":self.postMessage({type:\"initialized\"});break;case\"write\":var i=a(r.data);self.postMessage({type:\"wrote\",id:r.id,compressedBytesCount:t.chunks.reduce((function(t,e){return t+e.length}),0),additionalBytesCount:i});break;case\"flush\":i=r.data?a(r.data):0,t.push(\"\",J),self.postMessage({type:\"flushed\",id:r.id,result:t.result,additionalBytesCount:i,rawBytesCount:e}),t=new ne,e=0}})))}))()}();" | |
+exports.workerString = workerString; | |
\ No newline at end of file | |
diff --git a/node_modules/@datadog/browser-worker/bundle/workerString.ts b/node_modules/@datadog/browser-worker/bundle/workerString.ts | |
new file mode 100644 | |
index 0000000..bc5efcf | |
--- /dev/null | |
+++ b/node_modules/@datadog/browser-worker/bundle/workerString.ts | |
@@ -0,0 +1 @@ | |
+export const workerString = "!function(){\"use strict\";function t(t){for(var e=t.length;--e>=0;)t[e]=0}var e=256,a=286,n=30,r=15,i=new Uint8Array([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]),s=new Uint8Array([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]),h=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),l=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),_=new Array(576);t(_);var o=new Array(60);t(o);var d=new Array(512);t(d);var u=new Array(256);t(u);var f=new Array(29);t(f);var c,p,g,w=new Array(n);function v(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 b(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}t(w);var m=function(t){return t<256?d[t]:d[256+(t>>>7)]},y=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},k=function(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,y(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},z=function(t,e,a){k(t,a[2*e],a[2*e+1])},x=function(t,e){var a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},A=function(t,e,a){var n,i,s=new Array(16),h=0;for(n=1;n<=r;n++)s[n]=h=h+a[n-1]<<1;for(i=0;i<=e;i++){var l=t[2*i+1];0!==l&&(t[2*i]=x(s[l]++,l))}},U=function(t){var e;for(e=0;e<a;e++)t.dyn_ltree[2*e]=0;for(e=0;e<n;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0},B=function(t){t.bi_valid>8?y(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},C=function(t,e,a,n){var r=2*e,i=2*a;return t[r]<t[i]||t[r]===t[i]&&n[e]<=n[a]},E=function(t,e,a){for(var n=t.heap[a],r=a<<1;r<=t.heap_len&&(r<t.heap_len&&C(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!C(e,n,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=n},S=function(t,a,n){var r,h,l,_,o=0;if(0!==t.last_lit)do{r=t.pending_buf[t.d_buf+2*o]<<8|t.pending_buf[t.d_buf+2*o+1],h=t.pending_buf[t.l_buf+o],o++,0===r?z(t,h,a):(l=u[h],z(t,l+e+1,a),0!==(_=i[l])&&(h-=f[l],k(t,h,_)),r--,l=m(r),z(t,l,n),0!==(_=s[l])&&(r-=w[l],k(t,r,_)))}while(o<t.last_lit);z(t,256,a)},D=function(t,e){var a,n,i,s=e.dyn_tree,h=e.stat_desc.static_tree,l=e.stat_desc.has_stree,_=e.stat_desc.elems,o=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<_;a++)0!==s[2*a]?(t.heap[++t.heap_len]=o=a,t.depth[a]=0):s[2*a+1]=0;for(;t.heap_len<2;)s[2*(i=t.heap[++t.heap_len]=o<2?++o:0)]=1,t.depth[i]=0,t.opt_len--,l&&(t.static_len-=h[2*i+1]);for(e.max_code=o,a=t.heap_len>>1;a>=1;a--)E(t,s,a);i=_;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],E(t,s,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,s[2*i]=s[2*a]+s[2*n],t.depth[i]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,s[2*a+1]=s[2*n+1]=i,t.heap[1]=i++,E(t,s,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,i,s,h,l,_=e.dyn_tree,o=e.max_code,d=e.stat_desc.static_tree,u=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,c=e.stat_desc.extra_base,p=e.stat_desc.max_length,g=0;for(s=0;s<=r;s++)t.bl_count[s]=0;for(_[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(s=_[2*_[2*(n=t.heap[a])+1]+1]+1)>p&&(s=p,g++),_[2*n+1]=s,n>o||(t.bl_count[s]++,h=0,n>=c&&(h=f[n-c]),l=_[2*n],t.opt_len+=l*(s+h),u&&(t.static_len+=l*(d[2*n+1]+h)));if(0!==g){do{for(s=p-1;0===t.bl_count[s];)s--;t.bl_count[s]--,t.bl_count[s+1]+=2,t.bl_count[p]--,g-=2}while(g>0);for(s=p;0!==s;s--)for(n=t.bl_count[s];0!==n;)(i=t.heap[--a])>o||(_[2*i+1]!==s&&(t.opt_len+=(s-_[2*i+1])*_[2*i],_[2*i+1]=s),n--)}}(t,e),A(s,o,t.bl_count)},M=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,_=4;for(0===s&&(l=138,_=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<_?t.bl_tree[2*r]+=h:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[32]++):h<=10?t.bl_tree[34]++:t.bl_tree[36]++,h=0,i=r,0===s?(l=138,_=3):r===s?(l=6,_=3):(l=7,_=4))},j=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,_=4;for(0===s&&(l=138,_=3),n=0;n<=a;n++)if(r=s,s=e[2*(n+1)+1],!(++h<l&&r===s)){if(h<_)do{z(t,r,t.bl_tree)}while(0!=--h);else 0!==r?(r!==i&&(z(t,r,t.bl_tree),h--),z(t,16,t.bl_tree),k(t,h-3,2)):h<=10?(z(t,17,t.bl_tree),k(t,h-3,3)):(z(t,18,t.bl_tree),k(t,h-11,7));h=0,i=r,0===s?(l=138,_=3):r===s?(l=6,_=3):(l=7,_=4)}},I=!1,L=function(t,e,a,n){k(t,0+(n?1:0),3),function(t,e,a,n){B(t),n&&(y(t,a),y(t,~a)),t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a}(t,e,a,!0)},T=function(t,a,n,r){var i,s,h=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var a,n=4093624447;for(a=0;a<=31;a++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*a])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(a=32;a<e;a++)if(0!==t.dyn_ltree[2*a])return 1;return 0}(t)),D(t,t.l_desc),D(t,t.d_desc),h=function(t){var e;for(M(t,t.dyn_ltree,t.l_desc.max_code),M(t,t.dyn_dtree,t.d_desc.max_code),D(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*l[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=i&&(i=s)):i=s=n+5,n+4<=i&&-1!==a?L(t,a,n,r):4===t.strategy||s===i?(k(t,2+(r?1:0),3),S(t,_,o)):(k(t,4+(r?1:0),3),function(t,e,a,n){var r;for(k(t,e-257,5),k(t,a-1,5),k(t,n-4,4),r=0;r<n;r++)k(t,t.bl_tree[2*l[r]+1],3);j(t,t.dyn_ltree,e-1),j(t,t.dyn_dtree,a-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,h+1),S(t,t.dyn_ltree,t.dyn_dtree)),U(t),r&&B(t)},H={_tr_init:function(t){I||(!function(){var t,e,l,b,m,y=new Array(16);for(l=0,b=0;b<28;b++)for(f[b]=l,t=0;t<1<<i[b];t++)u[l++]=b;for(u[l-1]=b,m=0,b=0;b<16;b++)for(w[b]=m,t=0;t<1<<s[b];t++)d[m++]=b;for(m>>=7;b<n;b++)for(w[b]=m<<7,t=0;t<1<<s[b]-7;t++)d[256+m++]=b;for(e=0;e<=r;e++)y[e]=0;for(t=0;t<=143;)_[2*t+1]=8,t++,y[8]++;for(;t<=255;)_[2*t+1]=9,t++,y[9]++;for(;t<=279;)_[2*t+1]=7,t++,y[7]++;for(;t<=287;)_[2*t+1]=8,t++,y[8]++;for(A(_,287,y),t=0;t<n;t++)o[2*t+1]=5,o[2*t]=x(t,5);c=new v(_,i,257,a,r),p=new v(o,s,0,n,r),g=new v(new Array(0),h,0,19,7)}(),I=!0),t.l_desc=new b(t.dyn_ltree,c),t.d_desc=new b(t.dyn_dtree,p),t.bl_desc=new b(t.bl_tree,g),t.bi_buf=0,t.bi_valid=0,U(t)},_tr_stored_block:L,_tr_flush_block:T,_tr_tally:function(t,a,n){return t.pending_buf[t.d_buf+2*t.last_lit]=a>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&a,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===a?t.dyn_ltree[2*n]++:(t.matches++,a--,t.dyn_ltree[2*(u[n]+e+1)]++,t.dyn_dtree[2*m(a)]++),t.last_lit===t.lit_bufsize-1},_tr_align:function(t){k(t,2,3),z(t,256,_),function(t){16===t.bi_valid?(y(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)}},R=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{i=i+(r=r+e[n++]|0)|0}while(--s);r%=65521,i%=65521}return r|i<<16|0},K=new Uint32Array(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}()),N=function(t,e,a,n){var r=K,i=n+a;t^=-1;for(var s=n;s<i;s++)t=t>>>8^r[255&(t^e[s])];return-1^t},O={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\"},q=0,F=2,G=3,J=4,P=0,Q=1,V=-1,W=0,X=8,Y=H._tr_init,Z=H._tr_stored_block,$=H._tr_flush_block,tt=H._tr_tally,et=H._tr_align,at=q,nt=1,rt=G,it=J,st=5,ht=P,lt=Q,_t=-2,ot=-3,dt=-5,ut=V,ft=1,ct=2,pt=3,gt=4,wt=W,vt=2,bt=X,mt=258,yt=262,kt=103,zt=113,xt=666,At=function(t,e){return t.msg=O[e],e},Ut=function(t){return(t<<1)-(t>4?9:0)},Bt=function(t){for(var e=t.length;--e>=0;)t[e]=0},Ct=function(t,e,a){return(e<<t.hash_shift^a)&t.hash_mask},Et=function(t){var e=t.state,a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,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))},St=function(t,e){$(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,Et(t.strm)},Dt=function(t,e){t.pending_buf[t.pending++]=e},Mt=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},jt=function(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-yt?t.strstart-(t.w_size-yt):0,_=t.window,o=t.w_mask,d=t.prev,u=t.strstart+mt,f=_[i+s-1],c=_[i+s];t.prev_length>=t.good_match&&(r>>=2),h>t.lookahead&&(h=t.lookahead);do{if(_[(a=e)+s]===c&&_[a+s-1]===f&&_[a]===_[i]&&_[++a]===_[i+1]){i+=2,a++;do{}while(_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&i<u);if(n=mt-(u-i),i=u-mt,n>s){if(t.match_start=e,s=n,n>=h)break;f=_[i+s-1],c=_[i+s]}}}while((e=d[e&o])>l&&0!=--r);return s<=t.lookahead?s:t.lookahead},It=function(t){var e,a,n,r,i,s,h,l,_,o,d=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=d+(d-yt)){t.window.set(t.window.subarray(d,d+d),0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=a=t.hash_size;do{n=t.head[--e],t.head[e]=n>=d?n-d:0}while(--a);e=a=d;do{n=t.prev[--e],t.prev[e]=n>=d?n-d:0}while(--a);r+=d}if(0===t.strm.avail_in)break;if(s=t.strm,h=t.window,l=t.strstart+t.lookahead,_=r,o=void 0,(o=s.avail_in)>_&&(o=_),a=0===o?0:(s.avail_in-=o,h.set(s.input.subarray(s.next_in,s.next_in+o),l),1===s.state.wrap?s.adler=R(s.adler,h,o,l):2===s.state.wrap&&(s.adler=N(s.adler,h,o,l)),s.next_in+=o,s.total_in+=o,o),t.lookahead+=a,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=Ct(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=Ct(t,t.ins_h,t.window[i+3-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<yt&&0!==t.strm.avail_in)},Lt=function(t,e){for(var a,n;;){if(t.lookahead<yt){if(It(t),t.lookahead<yt&&e===at)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=Ct(t,t.ins_h,t.window[t.strstart+3-1]),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-yt&&(t.match_length=jt(t,a)),t.match_length>=3)if(n=tt(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=Ct(t,t.ins_h,t.window[t.strstart+3-1]),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=Ct(t,t.ins_h,t.window[t.strstart+1]);else n=tt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(St(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===it?(St(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(St(t,!1),0===t.strm.avail_out)?1:2},Tt=function(t,e){for(var a,n,r;;){if(t.lookahead<yt){if(It(t),t.lookahead<yt&&e===at)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=Ct(t,t.ins_h,t.window[t.strstart+3-1]),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=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-yt&&(t.match_length=jt(t,a),t.match_length<=5&&(t.strategy===ft||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-3,n=tt(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=Ct(t,t.ins_h,t.window[t.strstart+3-1]),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=2,t.strstart++,n&&(St(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=tt(t,0,t.window[t.strstart-1]))&&St(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=tt(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===it?(St(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(St(t,!1),0===t.strm.avail_out)?1:2};function Ht(t,e,a,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=n,this.func=r}var Rt=[new Ht(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===at)return 1;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,St(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-yt&&(St(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===it?(St(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(St(t,!1),t.strm.avail_out),1)})),new Ht(4,4,8,4,Lt),new Ht(4,5,16,8,Lt),new Ht(4,6,32,32,Lt),new Ht(4,4,16,16,Tt),new Ht(8,16,32,32,Tt),new Ht(8,16,128,128,Tt),new Ht(8,32,128,256,Tt),new Ht(32,128,258,1024,Tt),new Ht(32,258,258,4096,Tt)];function Kt(){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=bt,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 Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),Bt(this.dyn_ltree),Bt(this.dyn_dtree),Bt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),Bt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),Bt(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}var Nt=function(t){if(!t||!t.state)return At(t,_t);t.total_in=t.total_out=0,t.data_type=vt;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:zt,t.adler=2===e.wrap?0:1,e.last_flush=at,Y(e),ht},Ot=function(t){var e,a=Nt(t);return a===ht&&((e=t.state).window_size=2*e.w_size,Bt(e.head),e.max_lazy_match=Rt[e.level].max_lazy,e.good_match=Rt[e.level].good_length,e.nice_match=Rt[e.level].nice_length,e.max_chain_length=Rt[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),a},qt=function(t,e,a,n,r,i){if(!t)return _t;var s=1;if(e===ut&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||a!==bt||n<8||n>15||e<0||e>9||i<0||i>gt)return At(t,_t);8===n&&(n=9);var h=new Kt;return t.state=h,h.strm=t,h.wrap=s,h.gzhead=null,h.w_bits=n,h.w_size=1<<h.w_bits,h.w_mask=h.w_size-1,h.hash_bits=r+7,h.hash_size=1<<h.hash_bits,h.hash_mask=h.hash_size-1,h.hash_shift=~~((h.hash_bits+3-1)/3),h.window=new Uint8Array(2*h.w_size),h.head=new Uint16Array(h.hash_size),h.prev=new Uint16Array(h.w_size),h.lit_bufsize=1<<r+6,h.pending_buf_size=4*h.lit_bufsize,h.pending_buf=new Uint8Array(h.pending_buf_size),h.d_buf=1*h.lit_bufsize,h.l_buf=3*h.lit_bufsize,h.level=e,h.strategy=i,h.method=a,Ot(t)},Ft={deflateInit:function(t,e){return qt(t,e,bt,15,8,wt)},deflateInit2:qt,deflateReset:Ot,deflateResetKeep:Nt,deflateSetHeader:function(t,e){return t&&t.state?2!==t.state.wrap?_t:(t.state.gzhead=e,ht):_t},deflate:function(t,e){var a,n;if(!t||!t.state||e>st||e<0)return t?At(t,_t):_t;var r=t.state;if(!t.output||!t.input&&0!==t.avail_in||r.status===xt&&e!==it)return At(t,0===t.avail_out?dt:_t);r.strm=t;var i=r.last_flush;if(r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,Dt(r,31),Dt(r,139),Dt(r,8),r.gzhead?(Dt(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)),Dt(r,255&r.gzhead.time),Dt(r,r.gzhead.time>>8&255),Dt(r,r.gzhead.time>>16&255),Dt(r,r.gzhead.time>>24&255),Dt(r,9===r.level?2:r.strategy>=ct||r.level<2?4:0),Dt(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(Dt(r,255&r.gzhead.extra.length),Dt(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=N(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(Dt(r,0),Dt(r,0),Dt(r,0),Dt(r,0),Dt(r,0),Dt(r,9===r.level?2:r.strategy>=ct||r.level<2?4:0),Dt(r,3),r.status=zt);else{var s=bt+(r.w_bits-8<<4)<<8;s|=(r.strategy>=ct||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(s|=32),s+=31-s%31,r.status=zt,Mt(r,s),0!==r.strstart&&(Mt(r,t.adler>>>16),Mt(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(t.adler=N(t.adler,r.pending_buf,r.pending-a,a)),Et(t),a=r.pending,r.pending!==r.pending_buf_size));)Dt(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=N(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=N(t.adler,r.pending_buf,r.pending-a,a)),Et(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,Dt(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=N(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=N(t.adler,r.pending_buf,r.pending-a,a)),Et(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,Dt(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=N(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.status=kt)}else r.status=kt;if(r.status===kt&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&Et(t),r.pending+2<=r.pending_buf_size&&(Dt(r,255&t.adler),Dt(r,t.adler>>8&255),t.adler=0,r.status=zt)):r.status=zt),0!==r.pending){if(Et(t),0===t.avail_out)return r.last_flush=-1,ht}else if(0===t.avail_in&&Ut(e)<=Ut(i)&&e!==it)return At(t,dt);if(r.status===xt&&0!==t.avail_in)return At(t,dt);if(0!==t.avail_in||0!==r.lookahead||e!==at&&r.status!==xt){var h=r.strategy===ct?function(t,e){for(var a;;){if(0===t.lookahead&&(It(t),0===t.lookahead)){if(e===at)return 1;break}if(t.match_length=0,a=tt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(St(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===it?(St(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(St(t,!1),0===t.strm.avail_out)?1:2}(r,e):r.strategy===pt?function(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=mt){if(It(t),t.lookahead<=mt&&e===at)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=s[r=t.strstart-1])===s[++r]&&n===s[++r]&&n===s[++r]){i=t.strstart+mt;do{}while(n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&r<i);t.match_length=mt-(i-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=tt(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=tt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(St(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===it?(St(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(St(t,!1),0===t.strm.avail_out)?1:2}(r,e):Rt[r.level].func(r,e);if(3!==h&&4!==h||(r.status=xt),1===h||3===h)return 0===t.avail_out&&(r.last_flush=-1),ht;if(2===h&&(e===nt?et(r):e!==st&&(Z(r,0,0,!1),e===rt&&(Bt(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),Et(t),0===t.avail_out))return r.last_flush=-1,ht}return e!==it?ht:r.wrap<=0?lt:(2===r.wrap?(Dt(r,255&t.adler),Dt(r,t.adler>>8&255),Dt(r,t.adler>>16&255),Dt(r,t.adler>>24&255),Dt(r,255&t.total_in),Dt(r,t.total_in>>8&255),Dt(r,t.total_in>>16&255),Dt(r,t.total_in>>24&255)):(Mt(r,t.adler>>>16),Mt(r,65535&t.adler)),Et(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?ht:lt)},deflateEnd:function(t){if(!t||!t.state)return _t;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==kt&&e!==zt&&e!==xt?At(t,_t):(t.state=null,e===zt?At(t,ot):ht)},deflateSetDictionary:function(t,e){var a=e.length;if(!t||!t.state)return _t;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return _t;if(1===r&&(t.adler=R(t.adler,e,a,0)),n.wrap=0,a>=n.w_size){0===r&&(Bt(n.head),n.strstart=0,n.block_start=0,n.insert=0);var i=new Uint8Array(n.w_size);i.set(e.subarray(a-n.w_size,a),0),e=i,a=n.w_size}var s=t.avail_in,h=t.next_in,l=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,It(n);n.lookahead>=3;){var _=n.strstart,o=n.lookahead-2;do{n.ins_h=Ct(n,n.ins_h,n.window[_+3-1]),n.prev[_&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=_,_++}while(--o);n.strstart=_,n.lookahead=2,It(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=h,t.input=l,t.avail_in=s,n.wrap=r,ht},deflateInfo:\"pako deflate (from Nodeca project)\"};for(var Gt=new Uint8Array(256),Jt=0;Jt<256;Jt++)Gt[Jt]=Jt>=252?6:Jt>=248?5:Jt>=240?4:Jt>=224?3:Jt>=192?2:1;Gt[254]=Gt[254]=1;var Pt=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},Qt=Object.prototype.toString,Vt=q,Wt=F,Xt=G,Yt=J,Zt=P,$t=Q,te=V,ee=W,ae=X;function ne(){this.options={level:te,method:ae,chunkSize:16384,windowBits:15,memLevel:8,strategy:ee};var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg=\"\",this.ended=!1,this.chunks=[],this.strm=new Pt,this.strm.avail_out=0;var e=Ft.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(e!==Zt)throw new Error(O[e]);if(t.header&&Ft.deflateSetHeader(this.strm,t.header),t.dictionary){var a;if(a=\"[object ArrayBuffer]\"===Qt.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(e=Ft.deflateSetDictionary(this.strm,a))!==Zt)throw new Error(O[e]);this._dict_set=!0}}function re(t){return function(){for(var e=[],a=0;a<arguments.length;a++)e[a]=arguments[a];try{return t.apply(void 0,e)}catch(t){try{self.postMessage({type:\"errored\",error:t})}catch(e){self.postMessage({type:\"errored\",error:String(t)})}}}}ne.prototype.push=function(t,e){var a,n,r=this.strm,i=this.options.chunkSize;if(this.ended)return!1;for(n=e===~~e?e:!0===e?Yt:Vt,\"[object ArrayBuffer]\"===Qt.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(i),r.next_out=0,r.avail_out=i),(n===Wt||n===Xt)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if((a=Ft.deflate(r,n))===$t)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=Ft.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===Zt;if(0!==r.avail_out){if(n>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},ne.prototype.onData=function(t){this.chunks.push(t)},ne.prototype.onEnd=function(t){t===Zt&&(this.result=function(t){for(var e=0,a=0,n=t.length;a<n;a++)e+=t[a].length;for(var r=new Uint8Array(e),i=0,s=0,h=t.length;i<h;i++){var l=t[i];r.set(l,s),s+=l.length}return r}(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},re((function(){var t=new ne,e=0;function a(a){var n=function(t){if(\"function\"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);var e,a,n,r,i,s=t.length,h=0;for(r=0;r<s;r++)55296==(64512&(a=t.charCodeAt(r)))&&r+1<s&&56320==(64512&(n=t.charCodeAt(r+1)))&&(a=65536+(a-55296<<10)+(n-56320),r++),h+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(h),i=0,r=0;i<h;r++)55296==(64512&(a=t.charCodeAt(r)))&&r+1<s&&56320==(64512&(n=t.charCodeAt(r+1)))&&(a=65536+(a-55296<<10)+(n-56320),r++),a<128?e[i++]=a:a<2048?(e[i++]=192|a>>>6,e[i++]=128|63&a):a<65536?(e[i++]=224|a>>>12,e[i++]=128|a>>>6&63,e[i++]=128|63&a):(e[i++]=240|a>>>18,e[i++]=128|a>>>12&63,e[i++]=128|a>>>6&63,e[i++]=128|63&a);return e}(a);return t.push(n,F),e+=n.length,n.length}self.addEventListener(\"message\",re((function(n){var r=n.data;switch(r.action){case\"init\":self.postMessage({type:\"initialized\"});break;case\"write\":var i=a(r.data);self.postMessage({type:\"wrote\",id:r.id,compressedBytesCount:t.chunks.reduce((function(t,e){return t+e.length}),0),additionalBytesCount:i});break;case\"flush\":i=r.data?a(r.data):0,t.push(\"\",J),self.postMessage({type:\"flushed\",id:r.id,result:t.result,additionalBytesCount:i,rawBytesCount:e}),t=new ne,e=0}})))}))()}();" | |
\ No newline at end of file | |
diff --git a/node_modules/@datadog/browser-worker/string/package.json b/node_modules/@datadog/browser-worker/string/package.json | |
new file mode 100644 | |
index 0000000..85a367a | |
--- /dev/null | |
+++ b/node_modules/@datadog/browser-worker/string/package.json | |
@@ -0,0 +1,5 @@ | |
+{ | |
+ "private": true, | |
+ "main": "../bundle/workerString.js", | |
+ "types": "../bundle/workerString.ts" | |
+} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment