852||2===e&&E>592)return 1;for(;;){C=g-A,a[m]p?(R=O[B+a[m]],N=T[S+a[m]]):(R=96,N=0),l=1<>A)+u]=C<<24|R<<16|N|0}while(0!==u);for(l=1<>=1;if(0!==l?(v&=l-1,v+=l):v=0,m++,0==--I[g]){if(g===w)break;g=t[n+a[m]]}if(g>y&&(v&d)!==h){for(0===A&&(A=y),f+=b,_=g-A,k=1<<_;_+A852||2===e&&E>592)return 1;h=v&d,i[h]=y<<24|_<<16|f-s|0}}return 0!==v&&(i[f+v]=g-A<<24|64<<16|0),o.bits=y,0};const{Z_FINISH:at,Z_BLOCK:ot,Z_TREES:ct,Z_OK:lt,Z_STREAM_END:ut,Z_NEED_DICT:ht,Z_STREAM_ERROR:dt,Z_DATA_ERROR:ft,Z_MEM_ERROR:pt,Z_BUF_ERROR:gt,Z_DEFLATED:mt}=j,bt=e=>(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24);function wt(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const yt=e=>{if(!e||!e.state)return dt;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(852),t.distcode=t.distdyn=new Int32Array(592),t.sane=1,t.back=-1,lt},_t=e=>{if(!e||!e.state)return dt;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,yt(e)},At=(e,t)=>{let n;if(!e||!e.state)return dt;const r=e.state;return t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?dt:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,_t(e))},kt=(e,t)=>{if(!e)return dt;const n=new wt;e.state=n,n.window=null;const r=At(e,t);return r!==lt&&(e.state=null),r};let Et,vt,Tt=!0;const St=e=>{if(Tt){Et=new Int32Array(512),vt=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(st(1,e.lens,0,288,Et,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;st(2,e.lens,0,32,vt,0,e.work,{bits:5}),Tt=!1}e.lencode=Et,e.lenbits=9,e.distcode=vt,e.distbits=5},It=(e,t,n,r)=>{let i;const s=e.state;return null===s.window&&(s.wsize=1<=s.wsize?(s.window.set(t.subarray(n-s.wsize,n),0),s.wnext=0,s.whave=s.wsize):(i=s.wsize-s.wnext,i>r&&(i=r),s.window.set(t.subarray(n-r,n-r+i),s.wnext),(r-=i)?(s.window.set(t.subarray(n-r,n),0),s.wnext=r,s.whave=s.wsize):(s.wnext+=i,s.wnext===s.wsize&&(s.wnext=0),s.whavekt(e,15),inflateInit2:kt,inflate:(e,t)=>{let n,r,i,s,a,o,c,l,u,h,d,f,p,g,m,b,w,y,_,A,k,E,v=0;const T=new Uint8Array(4);let S,I;const x=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return dt;n=e.state,12===n.mode&&(n.mode=13),a=e.next_out,i=e.output,c=e.avail_out,s=e.next_in,r=e.input,o=e.avail_in,l=n.hold,u=n.bits,h=o,d=c,E=lt;e:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;u<16;){if(0===o)break e;o--,l+=r[s++]<>>8&255,n.check=F(n.check,T,2,0),l=0,u=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&l)<<8)+(l>>8))%31){e.msg="incorrect header check",n.mode=30;break}if((15&l)!==mt){e.msg="unknown compression method",n.mode=30;break}if(l>>>=4,u-=4,k=8+(15&l),0===n.wbits)n.wbits=k;else if(k>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<>8&1),512&n.flags&&(T[0]=255&l,T[1]=l>>>8&255,n.check=F(n.check,T,2,0)),l=0,u=0,n.mode=3;case 3:for(;u<32;){if(0===o)break e;o--,l+=r[s++]<>>8&255,T[2]=l>>>16&255,T[3]=l>>>24&255,n.check=F(n.check,T,4,0)),l=0,u=0,n.mode=4;case 4:for(;u<16;){if(0===o)break e;o--,l+=r[s++]<>8),512&n.flags&&(T[0]=255&l,T[1]=l>>>8&255,n.check=F(n.check,T,2,0)),l=0,u=0,n.mode=5;case 5:if(1024&n.flags){for(;u<16;){if(0===o)break e;o--,l+=r[s++]<>>8&255,n.check=F(n.check,T,2,0)),l=0,u=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(f=n.length,f>o&&(f=o),f&&(n.head&&(k=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(s,s+f),k)),512&n.flags&&(n.check=F(n.check,r,f,s)),o-=f,s+=f,n.length-=f),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===o)break e;f=0;do{k=r[s+f++],n.head&&k&&n.length<65536&&(n.head.name+=String.fromCharCode(k))}while(k&&f>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;u<32;){if(0===o)break e;o--,l+=r[s++]<>>=7&u,u-=7&u,n.mode=27;break}for(;u<3;){if(0===o)break e;o--,l+=r[s++]<>>=1,u-=1,3&l){case 0:n.mode=14;break;case 1:if(St(n),n.mode=20,t===ct){l>>>=2,u-=2;break e}break;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}l>>>=2,u-=2;break;case 14:for(l>>>=7&u,u-=7&u;u<32;){if(0===o)break e;o--,l+=r[s++]<>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&l,l=0,u=0,n.mode=15,t===ct)break e;case 15:n.mode=16;case 16:if(f=n.length,f){if(f>o&&(f=o),f>c&&(f=c),0===f)break e;i.set(r.subarray(s,s+f),a),o-=f,s+=f,c-=f,a+=f,n.length-=f;break}n.mode=12;break;case 17:for(;u<14;){if(0===o)break e;o--,l+=r[s++]<>>=5,u-=5,n.ndist=1+(31&l),l>>>=5,u-=5,n.ncode=4+(15&l),l>>>=4,u-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have>>=3,u-=3}for(;n.have<19;)n.lens[x[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,S={bits:n.lenbits},E=st(0,n.lens,0,19,n.lencode,0,n.work,S),n.lenbits=S.bits,E){e.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have>>24,b=v>>>16&255,w=65535&v,!(m<=u);){if(0===o)break e;o--,l+=r[s++]<>>=m,u-=m,n.lens[n.have++]=w;else{if(16===w){for(I=m+2;u>>=m,u-=m,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}k=n.lens[n.have-1],f=3+(3&l),l>>>=2,u-=2}else if(17===w){for(I=m+3;u>>=m,u-=m,k=0,f=3+(7&l),l>>>=3,u-=3}else{for(I=m+7;u>>=m,u-=m,k=0,f=11+(127&l),l>>>=7,u-=7}if(n.have+f>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;f--;)n.lens[n.have++]=k}}if(30===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,S={bits:n.lenbits},E=st(1,n.lens,0,n.nlen,n.lencode,0,n.work,S),n.lenbits=S.bits,E){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,S={bits:n.distbits},E=st(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,S),n.distbits=S.bits,E){e.msg="invalid distances set",n.mode=30;break}if(n.mode=20,t===ct)break e;case 20:n.mode=21;case 21:if(o>=6&&c>=258){e.next_out=a,e.avail_out=c,e.next_in=s,e.avail_in=o,n.hold=l,n.bits=u,et(e,d),a=e.next_out,i=e.output,c=e.avail_out,s=e.next_in,r=e.input,o=e.avail_in,l=n.hold,u=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;v=n.lencode[l&(1<>>24,b=v>>>16&255,w=65535&v,!(m<=u);){if(0===o)break e;o--,l+=r[s++]<>y)],m=v>>>24,b=v>>>16&255,w=65535&v,!(y+m<=u);){if(0===o)break e;o--,l+=r[s++]<>>=y,u-=y,n.back+=y}if(l>>>=m,u-=m,n.back+=m,n.length=w,0===b){n.mode=26;break}if(32&b){n.back=-1,n.mode=12;break}if(64&b){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&b,n.mode=22;case 22:if(n.extra){for(I=n.extra;u>>=n.extra,u-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;v=n.distcode[l&(1<>>24,b=v>>>16&255,w=65535&v,!(m<=u);){if(0===o)break e;o--,l+=r[s++]<>y)],m=v>>>24,b=v>>>16&255,w=65535&v,!(y+m<=u);){if(0===o)break e;o--,l+=r[s++]<>>=y,u-=y,n.back+=y}if(l>>>=m,u-=m,n.back+=m,64&b){e.msg="invalid distance code",n.mode=30;break}n.offset=w,n.extra=15&b,n.mode=24;case 24:if(n.extra){for(I=n.extra;u>>=n.extra,u-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===c)break e;if(f=d-c,n.offset>f){if(f=n.offset-f,f>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}f>n.wnext?(f-=n.wnext,p=n.wsize-f):p=n.wnext-f,f>n.length&&(f=n.length),g=n.window}else g=i,p=a-n.offset,f=n.length;f>c&&(f=c),c-=f,n.length-=f;do{i[a++]=g[p++]}while(--f);0===n.length&&(n.mode=21);break;case 26:if(0===c)break e;i[a++]=n.length,c--,n.mode=21;break;case 27:if(n.wrap){for(;u<32;){if(0===o)break e;o--,l|=r[s++]<{if(!e||!e.state)return dt;let t=e.state;return t.window&&(t.window=null),e.state=null,lt},inflateGetHeader:(e,t)=>{if(!e||!e.state)return dt;const n=e.state;return 0==(2&n.wrap)?dt:(n.head=t,t.done=!1,lt)},inflateSetDictionary:(e,t)=>{const n=t.length;let r,i,s;return e&&e.state?(r=e.state,0!==r.wrap&&11!==r.mode?dt:11===r.mode&&(i=1,i=z(i,t,n,0),i!==r.check)?ft:(s=It(e,t,n,n),s?(r.mode=31,pt):(r.havedict=1,lt))):dt},inflateInfo:"pako inflate (from Nodeca project)"};var Ct=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};const Rt=Object.prototype.toString,{Z_NO_FLUSH:Nt,Z_FINISH:Ot,Z_OK:Bt,Z_STREAM_END:Dt,Z_NEED_DICT:Pt,Z_STREAM_ERROR:Ut,Z_DATA_ERROR:Lt,Z_MEM_ERROR:zt}=j;function Mt(e){this.options=Be({chunkSize:65536,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Fe,this.strm.avail_out=0;let n=xt.inflateInit2(this.strm,t.windowBits);if(n!==Bt)throw new Error(H[n]);if(this.header=new Ct,xt.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=Le(t.dictionary):"[object ArrayBuffer]"===Rt.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=xt.inflateSetDictionary(this.strm,t.dictionary),n!==Bt)))throw new Error(H[n])}function Ft(e,t){const n=new Mt(t);if(n.push(e),n.err)throw n.msg||H[n.err];return n.result}Mt.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize,i=this.options.dictionary;let s,a,o;if(this.ended)return!1;for(a=t===~~t?t:!0===t?Ot:Nt,"[object ArrayBuffer]"===Rt.call(e)?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){for(0===n.avail_out&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),s=xt.inflate(n,a),s===Pt&&i&&(s=xt.inflateSetDictionary(n,i),s===Bt?s=xt.inflate(n,a):s===Lt&&(s=Pt));n.avail_in>0&&s===Dt&&n.state.wrap>0&&0!==e[n.next_in];)xt.inflateReset(n),s=xt.inflate(n,a);switch(s){case Ut:case Lt:case Pt:case zt:return this.onEnd(s),this.ended=!0,!1}if(o=n.avail_out,n.next_out&&(0===n.avail_out||s===Dt))if("string"===this.options.to){let e=Me(n.output,n.next_out),t=n.next_out-e,i=ze(n.output,e);n.next_out=t,n.avail_out=r-t,t&&n.output.set(n.output.subarray(e,e+t),0),this.onData(i)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(s!==Bt||0!==o){if(s===Dt)return s=xt.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(0===n.avail_in)break}}return!0},Mt.prototype.onData=function(e){this.chunks.push(e)},Mt.prototype.onEnd=function(e){e===Bt&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=De(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var Ht={Inflate:Mt,inflate:Ft,inflateRaw:function(e,t){return(t=t||{}).raw=!0,Ft(e,t)},ungzip:Ft,constants:j};const{Deflate:jt,deflate:Gt,deflateRaw:Qt,gzip:qt}=$e,{Inflate:Wt,inflate:Vt,inflateRaw:Zt,ungzip:Yt}=Ht;var Kt=Wt,Xt=n(4);async function Jt(e,t,n,r){if(e.reader&&r&&("gzip"===t&&!n||!t&&"gzip"===n))return e.setReader(new Xt.a(e.reader)),e;const i=new Uint8Array(await e.getBuffer()),s=await $t(i,t,n);return i!==s&&e.setBuffer(s),e}async function $t(e,t,n){const r=e;try{"chunked"===n&&(e=function(e){let t=0,n=0;const r=new TextDecoder("utf-8");for(;t=48&&e[s]<=57||e[s]>=65&&e[s]<=70||e[s]>=97&&e[s]<=102;)s++;if(0===s)return e;if(13!=e[s]||10!=e[s+1])return e;s+=2;var i=parseInt(r.decode(e.subarray(t,s)),16);if(0==i)break;e.set(e.subarray(s,s+i),n),s+=i,n+=i,13==e[s]&&10==e[s+1]&&(s+=2),t=s}return e.subarray(0,n)}(e))}catch(e){console.log("Chunk-Encoding Ignored: "+e)}try{if("br"===t)0===(e=i()(e)).length&&(e=r);else if("gzip"===t||"gzip"===n){const t=new Kt;t.push(e,!0),t.result&&!t.err&&(e=t.result)}}catch(e){console.log("Content-Encoding Ignored: "+e)}return e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return a}));var r=n(1);let i=null;class s{constructor(e=!1){this.ipfs=null,this._initingIPFS=null,this.ipfsGC=null,this.customPreload=e,this.preloadNodes=null}async initIPFS(){if(!this.ipfs)try{this._initingIPFS||(this._initingIPFS=this._doInitIPFS()),await this._initingIPFS}catch(e){console.warn(e)}}async _doInitIPFS(){if(!self.IpfsCore){const e=await fetch("/ipfs-core.min.js");new Function(await e.text())()}this.ipfs=await self.IpfsCore.create(this.initOptions),this.resetGC(),this.customPreload&&(this.preloadNodes=this.ipfsCustomPreloadURLs||["https://node0.preload.ipfs.io","https://node1.preload.ipfs.io","https://node2.preload.ipfs.io","https://node3.preload.ipfs.io"])}async restart(){await this.ipfs.stop(),this._initingIPFS=null,this.ipfs=null,await this.initIPFS()}get initOptions(){let e={init:{emptyRepo:!0},preload:{enabled:!this.customPreload}};try{e={...e,...self.ipfsOpts}}catch(e){}return e}async runGC(){let e=0;for await(const t of this.ipfs.repo.gc())e++;console.log(`IPFS GC, Removed ${e} blocks`)}async resetGC(){this.ipfsGC&&clearInterval(this.ipfsGC),this.ipfsGC=setInterval(()=>this.runGC(),6e5)}async getFileSize(e){const t=e.slice(e.lastIndexOf("/")+1);this.customPreload&&await this.cacheDirToPreload(e);for await(const n of this.ipfs.ls(e,{preload:!1}))if(n.name==t&&"file"===n.type)return n.size;return null}async cat(e,t){return this.resetGC(),this.customPreload&&await this.preloadCat(e,t),this.ipfs.cat(e,t)}getPreloadURL(){if(!this.preloadNodes||!this.preloadNodes.length)return null;const e=parseInt(Math.random()*this.preloadNodes.length);return this.preloadNodes[e]}async cacheDirToPreload(e,t=2e4,n=5){for(let i=0;i0&&a.length>i&&!a.warned){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,o=c,console&&console.warn&&console.warn(o)}return e}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=d.bind(r);return i.listener=n,r.wrapFn=i,i}function p(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n0&&(a=t[0]),a instanceof Error)throw a;var o=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw o.context=a,o}var c=i[e];if(void 0===c)return!1;if("function"==typeof c)s(c,this,t);else{var l=c.length,u=m(c,l);for(n=0;n=0;s--)if(n[s]===t||n[s].listener===t){a=n[s].listener,i=s;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return p(this,e,!0)},o.prototype.rawListeners=function(e){return p(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):g.call(e,t)},o.prototype.listenerCount=g,o.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){(t=e.exports=n(88)).Stream=t,t.Readable=t,t.Writable=n(57),t.Duplex=n(28),t.Transform=n(94),t.PassThrough=n(167)},function(e,t,n){var r=n(12),i=r.Buffer;function s(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(s(r,t),t.Buffer=a),s(i,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){"use strict";(function(t,r,i){var s=n(41);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=w;var o,c=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?r:s.nextTick;w.WritableState=b;var l=Object.create(n(35));l.inherits=n(31);var u={deprecate:n(165)},h=n(90),d=n(56).Buffer,f=i.Uint8Array||function(){};var p,g=n(91);function m(){}function b(e,t){o=o||n(28),e=e||{};var r=t instanceof o;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,l=e.writableHighWaterMark,u=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(l||0===l)?l:u,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var h=!1===e.decodeStrings;this.decodeStrings=!h,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){--t.pendingcb,n?(s.nextTick(i,r),s.nextTick(v,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(i(r),e._writableState.errorEmitted=!0,e.emit("error",r),v(e,t))}(e,n,r,t,i);else{var a=k(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||A(e,n),r?c(_,e,n,a,i):_(e,n,a,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function w(e){if(o=o||n(28),!(p.call(w,this)||this instanceof o))return new w(e);this._writableState=new b(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),h.call(this)}function y(e,t,n,r,i,s,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,s,t.onwrite),t.sync=!1}function _(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),v(e,t)}function A(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),s=t.corkedRequestsFree;s.entry=n;for(var o=0,c=!0;n;)i[o]=n,n.isBuf||(c=!1),n=n.next,o+=1;i.allBuffers=c,y(e,t,!0,t.length,i,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,u=n.encoding,h=n.callback;if(y(e,t,!1,t.objectMode?1:l.length,l,u,h),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function k(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function E(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),v(e,t)}))}function v(e,t){var n=k(t);return n&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,s.nextTick(E,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}l.inherits(w,h),b.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(b.prototype,"buffer",{get:u.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(w,Symbol.hasInstance,{value:function(e){return!!p.call(this,e)||this===w&&(e&&e._writableState instanceof b)}})):p=function(e){return e instanceof this},w.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},w.prototype.write=function(e,t,n){var r,i=this._writableState,a=!1,o=!i.objectMode&&(r=e,d.isBuffer(r)||r instanceof f);return o&&!d.isBuffer(e)&&(e=function(e){return d.from(e)}(e)),"function"==typeof t&&(n=t,t=null),o?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof n&&(n=m),i.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),s.nextTick(t,n)}(this,n):(o||function(e,t,n,r){var i=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),s.nextTick(r,a),i=!1),i}(this,i,e,n))&&(i.pendingcb++,a=function(e,t,n,r,i,s){if(!n){var a=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=d.from(t,n));return t}(t,r,i);r!==a&&(n=!0,i="buffer",r=a)}var o=t.objectMode?1:r.length;t.length+=o;var c=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(w.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),w.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},w.prototype._writev=null,w.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,v(e,t),n&&(t.finished?s.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(w.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),w.prototype.destroy=g.destroy,w.prototype._undestroy=g.undestroy,w.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n(25),n(92).setImmediate,n(14))},function(e,t,n){"use strict";const r=[65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111];t.REPLACEMENT_CHARACTER="�",t.CODE_POINTS={EOF:-1,NULL:0,TABULATION:9,CARRIAGE_RETURN:13,LINE_FEED:10,FORM_FEED:12,SPACE:32,EXCLAMATION_MARK:33,QUOTATION_MARK:34,NUMBER_SIGN:35,AMPERSAND:38,APOSTROPHE:39,HYPHEN_MINUS:45,SOLIDUS:47,DIGIT_0:48,DIGIT_9:57,SEMICOLON:59,LESS_THAN_SIGN:60,EQUALS_SIGN:61,GREATER_THAN_SIGN:62,QUESTION_MARK:63,LATIN_CAPITAL_A:65,LATIN_CAPITAL_F:70,LATIN_CAPITAL_X:88,LATIN_CAPITAL_Z:90,RIGHT_SQUARE_BRACKET:93,GRAVE_ACCENT:96,LATIN_SMALL_A:97,LATIN_SMALL_F:102,LATIN_SMALL_X:120,LATIN_SMALL_Z:122,REPLACEMENT_CHARACTER:65533},t.CODE_POINT_SEQUENCES={DASH_DASH_STRING:[45,45],DOCTYPE_STRING:[68,79,67,84,89,80,69],CDATA_START_STRING:[91,67,68,65,84,65,91],SCRIPT_STRING:[115,99,114,105,112,116],PUBLIC_STRING:[80,85,66,76,73,67],SYSTEM_STRING:[83,89,83,84,69,77]},t.isSurrogate=function(e){return e>=55296&&e<=57343},t.isSurrogatePair=function(e){return e>=56320&&e<=57343},t.getSurrogatePairCodePoint=function(e,t){return 1024*(e-55296)+9216+t},t.isControlCodePoint=function(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159},t.isUndefinedCodePoint=function(e){return e>=64976&&e<=65007||r.indexOf(e)>-1}},function(e,t,n){"use strict";class r{constructor(e){const t={},n=this._getOverriddenMethods(this,t);for(const r of Object.keys(n))"function"==typeof n[r]&&(t[r]=e[r],e[r]=n[r])}_getOverriddenMethods(){throw new Error("Not implemented")}}r.install=function(e,t,n){e.__mixins||(e.__mixins=[]);for(let n=0;n 2 bytes.");const t=i.decode(e);if(!f(t))throw new Error("multihash unknown function code: 0x"+t.toString(16));e=e.slice(i.decode.bytes);const n=i.decode(e);if(n<0)throw new Error("multihash invalid length: "+n);if((e=e.slice(i.decode.bytes)).length!==n)throw new Error("multihash length inconsistent: 0x"+a(e,"base16"));return{code:t,name:l[t],length:n,digest:e}}function h(e){let t=e;if("string"==typeof e){if(void 0===s[e])throw new Error("Unrecognized hash function named: "+e);t=s[e]}if("number"!=typeof t)throw new Error("Hash function code should be a number. Got: "+t);if(void 0===l[t]&&!d(t))throw new Error("Unrecognized function code: "+t);return t}function d(e){return e>0&&e<16}function f(e){return!!d(e)||!!l[e]}function p(e){u(e)}Object.freeze(l),e.exports={names:s,codes:l,toHexString:function(e){if(!(e instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return a(e,"base16")},fromHexString:function(e){return o(e,"base16")},toB58String:function(e){if(!(e instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return a(r.encode("base58btc",e)).slice(1)},fromB58String:function(e){const t=e instanceof Uint8Array?a(e):e;return r.decode("z"+t)},decode:u,encode:function(e,t,n){if(!e||void 0===t)throw new Error("multihash encode requires at least two args: digest, code");const r=h(t);if(!(e instanceof Uint8Array))throw new Error("digest should be a Uint8Array");if(null==n&&(n=e.length),n&&e.length!==n)throw new Error("digest length should be equal to specified length.");const s=i.encode(r),a=i.encode(n);return c([s,a,e],s.length+a.length+e.length)},coerceCode:h,isAppCode:d,validate:p,prefix:function(e){return p(e),e.subarray(0,2)},isValidCode:f}},function(e,t,n){var r;!function(i){"use strict";var s,a=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,o=Math.ceil,c=Math.floor,l="[BigNumber Error] ",u=l+"Number primitive has more than 15 significant digits: ",h=1e14,d=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],f=1e9;function p(e){var t=0|e;return e>0||e===t?t:t-1}function g(e){for(var t,n,r=1,i=e.length,s=e[0]+"";rl^n?1:-1;for(o=(c=i.length)<(l=s.length)?c:l,a=0;as[a]^n?1:-1;return c==l?0:c>l^n?1:-1}function b(e,t,n,r){if(en||e!==c(e))throw Error(l+(r||"Argument")+("number"==typeof e?en?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function w(e){var t=e.c.length-1;return p(e.e/14)==t&&e.c[t]%2!=0}function y(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function _(e,t,n){var r,i;if(t<0){for(i=n+".";++t;i+=n);e=i+e}else if(++t>(r=e.length)){for(i=n,t-=r;--t;i+=n);e+=i}else tB?g.c=g.e=null:e.e=10;h/=10,l++);return void(l>B?g.c=g.e=null:(g.e=l,g.c=[e]))}p=String(e)}else{if(!a.test(p=String(e)))return i(g,p,d);g.s=45==p.charCodeAt(0)?(p=p.slice(1),-1):1}(l=p.indexOf("."))>-1&&(p=p.replace(".","")),(h=p.search(/e/i))>0?(l<0&&(l=h),l+=+p.slice(h+1),p=p.substring(0,h)):l<0&&(l=p.length)}else{if(b(t,2,z.length,"Base"),10==t)return G(g=new M(e),x+g.e+1,C);if(p=String(e),d="number"==typeof e){if(0*e!=0)return i(g,p,d,t);if(g.s=1/e<0?(p=p.slice(1),-1):1,M.DEBUG&&p.replace(/^0\.0*|\./,"").length>15)throw Error(u+e)}else g.s=45===p.charCodeAt(0)?(p=p.slice(1),-1):1;for(n=z.slice(0,t),l=h=0,f=p.length;hl){l=f;continue}}else if(!o&&(p==p.toUpperCase()&&(p=p.toLowerCase())||p==p.toLowerCase()&&(p=p.toUpperCase()))){o=!0,h=-1,l=0;continue}return i(g,String(e),d,t)}d=!1,(l=(p=r(p,t,10,g.s)).indexOf("."))>-1?p=p.replace(".",""):l=p.length}for(h=0;48===p.charCodeAt(h);h++);for(f=p.length;48===p.charCodeAt(--f););if(p=p.slice(h,++f)){if(f-=h,d&&M.DEBUG&&f>15&&(e>9007199254740991||e!==c(e)))throw Error(u+g.s*e);if((l=l-h-1)>B)g.c=g.e=null;else if(l=N)?y(c,a):_(c,a,"0");else if(s=(e=G(new M(e),t,n)).e,o=(c=g(e.c)).length,1==r||2==r&&(t<=s||s<=R)){for(;oo){if(--t>0)for(c+=".";t--;c+="0");}else if((t+=s-o)>0)for(s+1==o&&(c+=".");t--;c+="0");return e.s<0&&i?"-"+c:c}function H(e,t){for(var n,r=1,i=new M(e[0]);r=10;i/=10,r++);return(n=r+14*n-1)>B?e.c=e.e=null:n=10;l/=10,i++);if((s=t-i)<0)s+=14,a=t,p=(u=g[f=0])/m[i-a-1]%10|0;else if((f=o((s+1)/14))>=g.length){if(!r)break e;for(;g.length<=f;g.push(0));u=p=0,i=1,a=(s%=14)-14+1}else{for(u=l=g[f],i=1;l>=10;l/=10,i++);p=(a=(s%=14)-14+i)<0?0:u/m[i-a-1]%10|0}if(r=r||t<0||null!=g[f+1]||(a<0?u:u%m[i-a-1]),r=n<4?(p||r)&&(0==n||n==(e.s<0?3:2)):p>5||5==p&&(4==n||r||6==n&&(s>0?a>0?u/m[i-a]:0:g[f-1])%10&1||n==(e.s<0?8:7)),t<1||!g[0])return g.length=0,r?(t-=e.e+1,g[0]=m[(14-t%14)%14],e.e=-t||0):g[0]=e.e=0,e;if(0==s?(g.length=f,l=1,f--):(g.length=f+1,l=m[14-s],g[f]=a>0?c(u/m[i-a]%m[a])*l:0),r)for(;;){if(0==f){for(s=1,a=g[0];a>=10;a/=10,s++);for(a=g[0]+=l,l=1;a>=10;a/=10,l++);s!=l&&(e.e++,g[0]==h&&(g[0]=1));break}if(g[f]+=l,g[f]!=h)break;g[f--]=0,l=1}for(s=g.length;0===g[--s];g.pop());}e.e>B?e.c=e.e=null:e.e=N?y(t,n):_(t,n,"0"),e.s<0?"-"+t:t)}return M.clone=e,M.ROUND_UP=0,M.ROUND_DOWN=1,M.ROUND_CEIL=2,M.ROUND_FLOOR=3,M.ROUND_HALF_UP=4,M.ROUND_HALF_DOWN=5,M.ROUND_HALF_EVEN=6,M.ROUND_HALF_CEIL=7,M.ROUND_HALF_FLOOR=8,M.EUCLID=9,M.config=M.set=function(e){var t,n;if(null!=e){if("object"!=typeof e)throw Error(l+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(b(n=e[t],0,f,t),x=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(b(n=e[t],0,8,t),C=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((n=e[t])&&n.pop?(b(n[0],-f,0,t),b(n[1],0,f,t),R=n[0],N=n[1]):(b(n,-f,f,t),R=-(N=n<0?-n:n))),e.hasOwnProperty(t="RANGE"))if((n=e[t])&&n.pop)b(n[0],-f,-1,t),b(n[1],1,f,t),O=n[0],B=n[1];else{if(b(n,-f,f,t),!n)throw Error(l+t+" cannot be zero: "+n);O=-(B=n<0?-n:n)}if(e.hasOwnProperty(t="CRYPTO")){if((n=e[t])!==!!n)throw Error(l+t+" not true or false: "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw D=!n,Error(l+"crypto unavailable");D=n}else D=n}if(e.hasOwnProperty(t="MODULO_MODE")&&(b(n=e[t],0,9,t),P=n),e.hasOwnProperty(t="POW_PRECISION")&&(b(n=e[t],0,f,t),U=n),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(n=e[t]))throw Error(l+t+" not an object: "+n);L=n}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(n=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(n))throw Error(l+t+" invalid: "+n);z=n}}return{DECIMAL_PLACES:x,ROUNDING_MODE:C,EXPONENTIAL_AT:[R,N],RANGE:[O,B],CRYPTO:D,MODULO_MODE:P,POW_PRECISION:U,FORMAT:L,ALPHABET:z}},M.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!M.DEBUG)return!0;var t,n,r=e.c,i=e.e,s=e.s;e:if("[object Array]"=={}.toString.call(r)){if((1===s||-1===s)&&i>=-f&&i<=f&&i===c(i)){if(0===r[0]){if(0===i&&1===r.length)return!0;break e}if((t=(i+1)%14)<1&&(t+=14),String(r[0]).length==t){for(t=0;t=h||n!==c(n))break e;if(0!==n)return!0}}}else if(null===r&&null===i&&(null===s||1===s||-1===s))return!0;throw Error(l+"Invalid BigNumber: "+e)},M.maximum=M.max=function(){return H(arguments,S.lt)},M.minimum=M.min=function(){return H(arguments,S.gt)},M.random=(s=9007199254740992*Math.random()&2097151?function(){return c(9007199254740992*Math.random())}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,n,r,i,a,u=0,h=[],p=new M(I);if(null==e?e=x:b(e,0,f),i=o(e/14),D)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(i*=2));u>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),t[u]=n[0],t[u+1]=n[1]):(h.push(a%1e14),u+=2);u=i/2}else{if(!crypto.randomBytes)throw D=!1,Error(l+"crypto unavailable");for(t=crypto.randomBytes(i*=7);u=9e15?crypto.randomBytes(7).copy(t,u):(h.push(a%1e14),u+=7);u=i/7}if(!D)for(;u=10;a/=10,u++);u<14&&(r-=14-u)}return p.e=r,p.c=h,p}),M.sum=function(){for(var e=1,t=arguments,n=new M(t[0]);en-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/n|0,a[i]%=n)}return a.reverse()}return function(t,r,i,s,a){var o,c,l,u,h,d,f,p,m=t.indexOf("."),b=x,w=C;for(m>=0&&(u=U,U=0,t=t.replace(".",""),d=(p=new M(r)).pow(t.length-m),U=u,p.c=e(_(g(d.c),d.e,"0"),10,i,"0123456789"),p.e=p.c.length),l=u=(f=e(t,r,i,a?(o=z,"0123456789"):(o="0123456789",z))).length;0==f[--u];f.pop());if(!f[0])return o.charAt(0);if(m<0?--l:(d.c=f,d.e=l,d.s=s,f=(d=n(d,p,b,w,i)).c,h=d.r,l=d.e),m=f[c=l+b+1],u=i/2,h=h||c<0||null!=f[c+1],h=w<4?(null!=m||h)&&(0==w||w==(d.s<0?3:2)):m>u||m==u&&(4==w||h||6==w&&1&f[c-1]||w==(d.s<0?8:7)),c<1||!f[0])t=h?_(o.charAt(1),-b,o.charAt(0)):o.charAt(0);else{if(f.length=c,h)for(--i;++f[--c]>i;)f[c]=0,c||(++l,f=[1].concat(f));for(u=f.length;!f[--u];);for(m=0,t="";m<=u;t+=o.charAt(f[m++]));t=_(t,l,o.charAt(0))}return t}}(),n=function(){function e(e,t,n){var r,i,s,a,o=0,c=e.length,l=t%1e7,u=t/1e7|0;for(e=e.slice();c--;)o=((i=l*(s=e[c]%1e7)+(r=u*s+(a=e[c]/1e7|0)*l)%1e7*1e7+o)/n|0)+(r/1e7|0)+u*a,e[c]=i%n;return o&&(e=[o].concat(e)),e}function t(e,t,n,r){var i,s;if(n!=r)s=n>r?1:-1;else for(i=s=0;it[i]?1:-1;break}return s}function n(e,t,n,r){for(var i=0;n--;)e[n]-=i,i=e[n]1;e.splice(0,1));}return function(r,i,s,a,o){var l,u,d,f,g,m,b,w,y,_,A,k,E,v,T,S,I,x=r.s==i.s?1:-1,C=r.c,R=i.c;if(!(C&&C[0]&&R&&R[0]))return new M(r.s&&i.s&&(C?!R||C[0]!=R[0]:R)?C&&0==C[0]||!R?0*x:x/0:NaN);for(y=(w=new M(x)).c=[],x=s+(u=r.e-i.e)+1,o||(o=h,u=p(r.e/14)-p(i.e/14),x=x/14|0),d=0;R[d]==(C[d]||0);d++);if(R[d]>(C[d]||0)&&u--,x<0)y.push(1),f=!0;else{for(v=C.length,S=R.length,d=0,x+=2,(g=c(o/(R[0]+1)))>1&&(R=e(R,g,o),C=e(C,g,o),S=R.length,v=C.length),E=S,A=(_=C.slice(0,S)).length;A=o/2&&T++;do{if(g=0,(l=t(R,_,S,A))<0){if(k=_[0],S!=A&&(k=k*o+(_[1]||0)),(g=c(k/T))>1)for(g>=o&&(g=o-1),b=(m=e(R,g,o)).length,A=_.length;1==t(m,_,b,A);)g--,n(m,S=10;x/=10,d++);G(w,s+(w.e=d+14*u-1)+1,a,f)}else w.e=u,w.r=+f;return w}}(),A=/^(-?)0([xbo])(?=\w[\w.]*$)/i,k=/^([^.]+)\.$/,E=/^\.([^.]+)$/,v=/^-?(Infinity|NaN)$/,T=/^\s*\+(?=[\w.])|^\s+|\s+$/g,i=function(e,t,n,r){var i,s=n?t:t.replace(T,"");if(v.test(s))e.s=isNaN(s)?null:s<0?-1:1;else{if(!n&&(s=s.replace(A,(function(e,t,n){return i="x"==(n=n.toLowerCase())?16:"b"==n?2:8,r&&r!=i?e:t})),r&&(i=r,s=s.replace(k,"$1").replace(E,"0.$1")),t!=s))return new M(s,i);if(M.DEBUG)throw Error(l+"Not a"+(r?" base "+r:"")+" number: "+t);e.s=null}e.c=e.e=null},S.absoluteValue=S.abs=function(){var e=new M(this);return e.s<0&&(e.s=1),e},S.comparedTo=function(e,t){return m(this,new M(e,t))},S.decimalPlaces=S.dp=function(e,t){var n,r,i,s=this;if(null!=e)return b(e,0,f),null==t?t=C:b(t,0,8),G(new M(s),e+s.e+1,t);if(!(n=s.c))return null;if(r=14*((i=n.length-1)-p(this.e/14)),i=n[i])for(;i%10==0;i/=10,r--);return r<0&&(r=0),r},S.dividedBy=S.div=function(e,t){return n(this,new M(e,t),x,C)},S.dividedToIntegerBy=S.idiv=function(e,t){return n(this,new M(e,t),0,1)},S.exponentiatedBy=S.pow=function(e,t){var n,r,i,s,a,u,h,d,f=this;if((e=new M(e)).c&&!e.isInteger())throw Error(l+"Exponent not an integer: "+Q(e));if(null!=t&&(t=new M(t)),a=e.e>14,!f.c||!f.c[0]||1==f.c[0]&&!f.e&&1==f.c.length||!e.c||!e.c[0])return d=new M(Math.pow(+Q(f),a?2-w(e):+Q(e))),t?d.mod(t):d;if(u=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new M(NaN);(r=!u&&f.isInteger()&&t.isInteger())&&(f=f.mod(t))}else{if(e.e>9&&(f.e>0||f.e<-1||(0==f.e?f.c[0]>1||a&&f.c[1]>=24e7:f.c[0]<8e13||a&&f.c[0]<=9999975e7)))return s=f.s<0&&w(e)?-0:0,f.e>-1&&(s=1/s),new M(u?1/s:s);U&&(s=o(U/14+2))}for(a?(n=new M(.5),u&&(e.s=1),h=w(e)):h=(i=Math.abs(+Q(e)))%2,d=new M(I);;){if(h){if(!(d=d.times(f)).c)break;s?d.c.length>s&&(d.c.length=s):r&&(d=d.mod(t))}if(i){if(0===(i=c(i/2)))break;h=i%2}else if(G(e=e.times(n),e.e+1,1),e.e>14)h=w(e);else{if(0===(i=+Q(e)))break;h=i%2}f=f.times(f),s?f.c&&f.c.length>s&&(f.c.length=s):r&&(f=f.mod(t))}return r?d:(u&&(d=I.div(d)),t?d.mod(t):s?G(d,U,C,void 0):d)},S.integerValue=function(e){var t=new M(this);return null==e?e=C:b(e,0,8),G(t,t.e+1,e)},S.isEqualTo=S.eq=function(e,t){return 0===m(this,new M(e,t))},S.isFinite=function(){return!!this.c},S.isGreaterThan=S.gt=function(e,t){return m(this,new M(e,t))>0},S.isGreaterThanOrEqualTo=S.gte=function(e,t){return 1===(t=m(this,new M(e,t)))||0===t},S.isInteger=function(){return!!this.c&&p(this.e/14)>this.c.length-2},S.isLessThan=S.lt=function(e,t){return m(this,new M(e,t))<0},S.isLessThanOrEqualTo=S.lte=function(e,t){return-1===(t=m(this,new M(e,t)))||0===t},S.isNaN=function(){return!this.s},S.isNegative=function(){return this.s<0},S.isPositive=function(){return this.s>0},S.isZero=function(){return!!this.c&&0==this.c[0]},S.minus=function(e,t){var n,r,i,s,a=this,o=a.s;if(t=(e=new M(e,t)).s,!o||!t)return new M(NaN);if(o!=t)return e.s=-t,a.plus(e);var c=a.e/14,l=e.e/14,u=a.c,d=e.c;if(!c||!l){if(!u||!d)return u?(e.s=-t,e):new M(d?a:NaN);if(!u[0]||!d[0])return d[0]?(e.s=-t,e):new M(u[0]?a:3==C?-0:0)}if(c=p(c),l=p(l),u=u.slice(),o=c-l){for((s=o<0)?(o=-o,i=u):(l=c,i=d),i.reverse(),t=o;t--;i.push(0));i.reverse()}else for(r=(s=(o=u.length)<(t=d.length))?o:t,o=t=0;t0)for(;t--;u[n++]=0);for(t=h-1;r>o;){if(u[--r]=0;){for(n=0,f=_[i]%1e7,g=_[i]/1e7|0,s=i+(a=c);s>i;)n=((l=f*(l=y[--a]%1e7)+(o=g*l+(u=y[a]/1e7|0)*f)%1e7*1e7+m[s]+n)/b|0)+(o/1e7|0)+g*u,m[s--]=l%b;m[s]=n}return n?++r:m.splice(0,1),j(e,m,r)},S.negated=function(){var e=new M(this);return e.s=-e.s||null,e},S.plus=function(e,t){var n,r=this,i=r.s;if(t=(e=new M(e,t)).s,!i||!t)return new M(NaN);if(i!=t)return e.s=-t,r.minus(e);var s=r.e/14,a=e.e/14,o=r.c,c=e.c;if(!s||!a){if(!o||!c)return new M(i/0);if(!o[0]||!c[0])return c[0]?e:new M(o[0]?r:0*i)}if(s=p(s),a=p(a),o=o.slice(),i=s-a){for(i>0?(a=s,n=c):(i=-i,n=o),n.reverse();i--;n.push(0));n.reverse()}for((i=o.length)-(t=c.length)<0&&(n=c,c=o,o=n,t=i),i=0;t;)i=(o[--t]=o[t]+c[t]+i)/h|0,o[t]=h===o[t]?0:o[t]%h;return i&&(o=[i].concat(o),++a),j(e,o,a)},S.precision=S.sd=function(e,t){var n,r,i,s=this;if(null!=e&&e!==!!e)return b(e,1,f),null==t?t=C:b(t,0,8),G(new M(s),e,t);if(!(n=s.c))return null;if(r=14*(i=n.length-1)+1,i=n[i]){for(;i%10==0;i/=10,r--);for(i=n[0];i>=10;i/=10,r++);}return e&&s.e+1>r&&(r=s.e+1),r},S.shiftedBy=function(e){return b(e,-9007199254740991,9007199254740991),this.times("1e"+e)},S.squareRoot=S.sqrt=function(){var e,t,r,i,s,a=this,o=a.c,c=a.s,l=a.e,u=x+4,h=new M("0.5");if(1!==c||!o||!o[0])return new M(!c||c<0&&(!o||o[0])?NaN:o?a:1/0);if(0==(c=Math.sqrt(+Q(a)))||c==1/0?(((t=g(o)).length+l)%2==0&&(t+="0"),c=Math.sqrt(+t),l=p((l+1)/2)-(l<0||l%2),r=new M(t=c==1/0?"5e"+l:(t=c.toExponential()).slice(0,t.indexOf("e")+1)+l)):r=new M(c+""),r.c[0])for((c=(l=r.e)+u)<3&&(c=0);;)if(s=r,r=h.times(s.plus(n(a,s,u,1))),g(s.c).slice(0,c)===(t=g(r.c)).slice(0,c)){if(r.e0&&g>0){for(s=g%o||o,h=p.substr(0,s);s0&&(h+=u+p.slice(s)),f&&(h="-"+h)}r=d?h+(n.decimalSeparator||"")+((c=+n.fractionGroupSize)?d.replace(new RegExp("\\d{"+c+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):d):h}return(n.prefix||"")+r+(n.suffix||"")},S.toFraction=function(e){var t,r,i,s,a,o,c,u,h,f,p,m,b=this,w=b.c;if(null!=e&&(!(c=new M(e)).isInteger()&&(c.c||1!==c.s)||c.lt(I)))throw Error(l+"Argument "+(c.isInteger()?"out of range: ":"not an integer: ")+Q(c));if(!w)return new M(b);for(t=new M(I),h=r=new M(I),i=u=new M(I),m=g(w),a=t.e=m.length-b.e-1,t.c[0]=d[(o=a%14)<0?14+o:o],e=!e||c.comparedTo(t)>0?a>0?t:h:c,o=B,B=1/0,c=new M(m),u.c[0]=0;f=n(c,t,0,1),1!=(s=r.plus(f.times(i))).comparedTo(e);)r=i,i=s,h=u.plus(f.times(s=h)),u=s,t=c.minus(f.times(s=t)),c=s;return s=n(e.minus(r),i,0,1),u=u.plus(s.times(h)),r=r.plus(s.times(i)),u.s=h.s=b.s,p=n(h,i,a*=2,C).minus(b).abs().comparedTo(n(u,r,a,C).minus(b).abs())<1?[h,i]:[u,r],B=o,p},S.toNumber=function(){return+Q(this)},S.toPrecision=function(e,t){return null!=e&&b(e,1,f),F(this,e,t,2)},S.toString=function(e){var t,n=this,i=n.s,s=n.e;return null===s?i?(t="Infinity",i<0&&(t="-"+t)):t="NaN":(null==e?t=s<=R||s>=N?y(g(n.c),s):_(g(n.c),s,"0"):10===e?t=_(g((n=G(new M(n),x+s+1,C)).c),n.e,"0"):(b(e,2,z.length,"Base"),t=r(_(g(n.c),s,"0"),10,e,i,!0)),i<0&&n.c[0]&&(t="-"+t)),t},S.valueOf=S.toJSON=function(){return Q(this)},S._isBigNumber=!0,null!=t&&M.set(t),M}()).default=s.BigNumber=s,void 0===(r=function(){return s}.call(t,n,t,e))||(e.exports=r)}()},function(e,t,n){"use strict";var r=n(126),i=n(22),s=n(75),a=n(76),o=n(52),c=n(77),l=n(129),u=Object.prototype.toString;function h(e){if(!(this instanceof h))return new h(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,t.windowBits);if(n!==a.Z_OK)throw new Error(o[n]);if(this.header=new l,r.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=s.string2buf(t.dictionary):"[object ArrayBuffer]"===u.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=r.inflateSetDictionary(this.strm,t.dictionary))!==a.Z_OK))throw new Error(o[n])}function d(e,t){var n=new h(t);if(n.push(e,!0),n.err)throw n.msg||o[n.err];return n.result}h.prototype.push=function(e,t){var n,o,c,l,h,d=this.strm,f=this.options.chunkSize,p=this.options.dictionary,g=!1;if(this.ended)return!1;o=t===~~t?t:!0===t?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof e?d.input=s.binstring2buf(e):"[object ArrayBuffer]"===u.call(e)?d.input=new Uint8Array(e):d.input=e,d.next_in=0,d.avail_in=d.input.length;do{if(0===d.avail_out&&(d.output=new i.Buf8(f),d.next_out=0,d.avail_out=f),(n=r.inflate(d,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&p&&(n=r.inflateSetDictionary(this.strm,p)),n===a.Z_BUF_ERROR&&!0===g&&(n=a.Z_OK,g=!1),n!==a.Z_STREAM_END&&n!==a.Z_OK)return this.onEnd(n),this.ended=!0,!1;d.next_out&&(0!==d.avail_out&&n!==a.Z_STREAM_END&&(0!==d.avail_in||o!==a.Z_FINISH&&o!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(c=s.utf8border(d.output,d.next_out),l=d.next_out-c,h=s.buf2string(d.output,c),d.next_out=l,d.avail_out=f-l,l&&i.arraySet(d.output,d.output,c,l,0),this.onData(h)):this.onData(i.shrinkBuf(d.output,d.next_out)))),0===d.avail_in&&0===d.avail_out&&(g=!0)}while((d.avail_in>0||0===d.avail_out)&&n!==a.Z_STREAM_END);return n===a.Z_STREAM_END&&(o=a.Z_FINISH),o===a.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===a.Z_OK):o!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),d.avail_out=0,!0)},h.prototype.onData=function(e){this.chunks.push(e)},h.prototype.onEnd=function(e){e===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},t.Inflate=h,t.inflate=d,t.inflateRaw=function(e,t){return(t=t||{}).raw=!0,d(e,t)},t.ungzip=d},function(e,t,n){"use strict";var r=n(131),i=n(22),s=n(75),a=n(52),o=n(77),c=Object.prototype.toString;function l(e){if(!(this instanceof l))return new l(e);this.options=i.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});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 o,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==n)throw new Error(a[n]);if(t.header&&r.deflateSetHeader(this.strm,t.header),t.dictionary){var u;if(u="string"==typeof t.dictionary?s.string2buf(t.dictionary):"[object ArrayBuffer]"===c.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(n=r.deflateSetDictionary(this.strm,u)))throw new Error(a[n]);this._dict_set=!0}}function u(e,t){var n=new l(t);if(n.push(e,!0),n.err)throw n.msg||a[n.err];return n.result}l.prototype.push=function(e,t){var n,a,o=this.strm,l=this.options.chunkSize;if(this.ended)return!1;a=t===~~t?t:!0===t?4:0,"string"==typeof e?o.input=s.string2buf(e):"[object ArrayBuffer]"===c.call(e)?o.input=new Uint8Array(e):o.input=e,o.next_in=0,o.avail_in=o.input.length;do{if(0===o.avail_out&&(o.output=new i.Buf8(l),o.next_out=0,o.avail_out=l),1!==(n=r.deflate(o,a))&&0!==n)return this.onEnd(n),this.ended=!0,!1;0!==o.avail_out&&(0!==o.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(s.buf2binstring(i.shrinkBuf(o.output,o.next_out))):this.onData(i.shrinkBuf(o.output,o.next_out)))}while((o.avail_in>0||0===o.avail_out)&&1!==n);return 4===a?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,0===n):2!==a||(this.onEnd(0),o.avail_out=0,!0)},l.prototype.onData=function(e){this.chunks.push(e)},l.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},t.Deflate=l,t.deflate=u,t.deflateRaw=function(e,t){return(t=t||{}).raw=!0,u(e,t)},t.gzip=function(e,t){return(t=t||{}).gzip=!0,u(e,t)}},function(e,t,n){"use strict";const{Transform:r}=n(45),i=n(42),s=n(174),a=n(59),o=n(96),c=n(176),l=n(177),u={sourceCodeLocationInfo:!1};const h={[i.START_TAG_TOKEN]:{eventName:"startTag",reshapeToken:e=>({tagName:e.tagName,attrs:e.attrs,selfClosing:e.selfClosing,sourceCodeLocation:e.location})},[i.END_TAG_TOKEN]:{eventName:"endTag",reshapeToken:e=>({tagName:e.tagName,sourceCodeLocation:e.location})},[i.COMMENT_TOKEN]:{eventName:"comment",reshapeToken:e=>({text:e.data,sourceCodeLocation:e.location})},[i.DOCTYPE_TOKEN]:{eventName:"doctype",reshapeToken:e=>({name:e.name,publicId:e.publicId,systemId:e.systemId,sourceCodeLocation:e.location})},[i.CHARACTER_TOKEN]:{eventName:"text",reshapeToken:e=>({text:e.chars,sourceCodeLocation:e.location})}};e.exports=class extends r{constructor(e){super({encoding:"utf8",decodeStrings:!1}),this.options=o(u,e),this.tokenizer=new i(e),this.locInfoMixin=null,this.options.sourceCodeLocationInfo&&(this.locInfoMixin=a.install(this.tokenizer,s)),this.parserFeedbackSimulator=new l(this.tokenizer),this.pendingText=null,this.lastChunkWritten=!1,this.stopped=!1,this.pipe(new c)}_transform(e,t,n){if("string"!=typeof e)throw new TypeError("Parser can work only with string streams.");n(null,this._transformChunk(e))}_final(e){this.lastChunkWritten=!0,e(null,this._transformChunk(""))}stop(){this.stopped=!0}_transformChunk(e){return this.stopped||(this.tokenizer.write(e,this.lastChunkWritten),this._runParsingLoop()),e}_runParsingLoop(){let e=null;do{if(e=this.parserFeedbackSimulator.getNextToken(),e.type===i.HIBERNATION_TOKEN)break;if(e.type===i.CHARACTER_TOKEN||e.type===i.WHITESPACE_CHARACTER_TOKEN||e.type===i.NULL_CHARACTER_TOKEN){if(null===this.pendingText)e.type=i.CHARACTER_TOKEN,this.pendingText=e;else if(this.pendingText.chars+=e.chars,this.options.sourceCodeLocationInfo){const{endLine:t,endCol:n,endOffset:r}=e.location;Object.assign(this.pendingText.location,{endLine:t,endCol:n,endOffset:r})}}else this._emitPendingText(),this._handleToken(e)}while(!this.stopped&&e.type!==i.EOF_TOKEN)}_handleToken(e){if(e.type===i.EOF_TOKEN)return!0;const{eventName:t,reshapeToken:n}=h[e.type];return 0!==this.listenerCount(t)&&(this._emitToken(t,n(e)),!0)}_emitToken(e,t){this.emit(e,t)}_emitPendingText(){null!==this.pendingText&&(this._handleToken(this.pendingText),this.pendingText=null)}}},function(e,t,n){"use strict";const r=n(155),i=n(40),s=n(40),a=n(17).buildOptions,o=n(157);t.parse=function(e,t,n){if(n){!0===n&&(n={});const t=o.validate(e,n);if(!0!==t)throw Error(t.err.msg)}t=a(t,s.defaultOptions,s.props);const c=i.getTraversalObj(e,t);return r.convertToJson(c,t)},t.convertTonimn=n(158).convert2nimn,t.getTraversalObj=i.getTraversalObj,t.convertToJson=r.convertToJson,t.convertToJsonString=n(159).convertToJsonString,t.validate=o.validate,t.j2xParser=n(160),t.parseToNimn=function(e,n,r){return t.convertTonimn(t.getTraversalObj(e,r),n,r)}},function(e,t,n){"use strict";(function(e){
/*!
* hash-wasm (https://www.npmjs.com/package/hash-wasm)
* (c) Dani Biro
@@ -34,8 +34,8 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
-function r(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{c(r.next(e))}catch(e){s(e)}}function o(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((r=r.apply(e,t||[])).next())}))}var i;n.d(t,"a",(function(){return A}));const s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:e,a=null!==(i=s.Buffer)&&void 0!==i?i:null,o=s.TextEncoder?new s.TextEncoder:null;const c="a".charCodeAt(0)-10,l="0".charCodeAt(0);function u(e,t,n){let r=0;for(let i=0;i>>4;e[r++]=n>9?n+c:n+l,n=15&t[i],e[r++]=n>9?n+c:n+l}return String.fromCharCode.apply(null,e)}const h=null!==a?e=>{if("string"==typeof e){const t=a.from(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.length)}if(a.isBuffer(e))return new Uint8Array(e.buffer,e.byteOffset,e.length);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Invalid data type!")}:e=>{if("string"==typeof e)return o.encode(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Invalid data type!")},d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=new Uint8Array(256);for(let e=0;e>4,i+=1,r[i]=(15&s)<<4|a>>2,i+=1,r[i]=(3&a)<<6|63&o,i+=1}return r}class m{constructor(){this.mutex=Promise.resolve()}lock(){let e=()=>{};return this.mutex=this.mutex.then(()=>new Promise(e)),new Promise(t=>{e=t})}dispatch(e){return r(this,void 0,void 0,(function*(){const t=yield this.lock();try{return yield Promise.resolve(e())}finally{t()}}))}}const b=new m,w=new Map;function y(e,t){return r(this,void 0,void 0,(function*(){let n=null,i=null,s=!1;if("undefined"==typeof WebAssembly)throw new Error("WebAssembly is not supported in this environment!");const a=b.dispatch(()=>r(this,void 0,void 0,(function*(){if(!w.has(e.name)){const t=g(e.data),n=WebAssembly.compile(t);w.set(e.name,n)}const t=yield w.get(e.name);n=yield WebAssembly.instantiate(t,{})}))),o=(e=null)=>{s=!0,n.exports.Hash_Init(e)},c=e=>{if(!s)throw new Error("update() called before init()");(e=>{let t=0;for(;t{if(!s)throw new Error("digest() called before init()");return s=!1,n.exports.Hash_Final(r),"binary"===e?i.slice(0,t):u(l,i,t)},f=e=>"string"==typeof e?e.length<4096:e.byteLength<16384;let p=f;switch(e.name){case"argon2":case"scrypt":p=()=>!0;break;case"blake2b":case"blake2s":p=(e,t)=>t<=512&&f(e);break;case"blake3":p=(e,t)=>0===t&&f(e);break;case"xxhash64":p=()=>!1}return yield(()=>r(this,void 0,void 0,(function*(){n||(yield a);const e=n.exports.Hash_GetBuffer(),t=n.exports.memory.buffer;i=new Uint8Array(t,e,16384)})))(),{getMemory:()=>i,writeMemory:(e,t=0)=>{i.set(e,t)},getExports:()=>n.exports,setMemorySize:e=>{n.exports.Hash_SetMemorySize(e);const t=n.exports.Hash_GetBuffer(),r=n.exports.memory.buffer;i=new Uint8Array(r,t,e)},init:o,update:c,digest:d,calculate:(e,r=null,s=null)=>{if(!p(e,r))return o(r),c(e),d("hex",s);const a=h(e);return i.set(a),n.exports.Hash_Calculate(a.length,r,s),u(l,i,t)},hashLength:t}}))}new m;new DataView(new ArrayBuffer(4));new m;new m;new m;new m;new m;new m;new m;new m;var _={name:"sha256",data:"AGFzbQEAAAABEQRgAAF/YAF/AGACf38AYAAAAwcGAAEBAgMCBAUBcAEBAQUEAQECAgYIAX8BQfCIBQsHUwYGbWVtb3J5AgAOSGFzaF9HZXRCdWZmZXIAAAlIYXNoX0luaXQAAQtIYXNoX1VwZGF0ZQACCkhhc2hfRmluYWwABA5IYXNoX0NhbGN1bGF0ZQAFCvRIBgUAQYAIC50BAEEAQgA3A8CIAUEAQRxBICAAQeABRiIAGzYC6IgBQQBCp5/mp8b0k/2+f0Krs4/8kaOz8NsAIAAbNwPgiAFBAEKxloD+n6KFrOgAQv+kuYjFkdqCm38gABs3A9iIAUEAQpe6w4OTp5aHd0Ly5rvjo6f9p6V/IAAbNwPQiAFBAELYvZaI/KC1vjZC58yn0NbQ67O7fyAAGzcDyIgBC4sCAgF+Bn9BAEEAKQPAiAEiASAArXw3A8CIAQJAAkACQCABp0E/cSICDQBBgAghAgwBCwJAIABBwAAgAmsiAyADIABLIgQbIgVFDQAgAkGAiAFqIQZBACECQQAhBwNAIAYgAmogAkGACGotAAA6AAAgBSAHQQFqIgdB/wFxIgJLDQALCyAEDQFByIgBQYCIARADIAAgA2shACADQYAIaiECCwJAIABBwABJDQAgACEHA0BByIgBIAIQAyACQcAAaiECIAdBQGoiB0E/Sw0ACyAAQT9xIQALIAB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AmoiEyASIApzcSAKc2ogE0EadyATQRV3cyATQQd3c2pB59KkoQFqIhUgAkEedyACQRN3cyACQQp3cyACIARzIANxIAIgBHFzaiAZaiIDaiIUaiAjIBNqICYgEmogFCATIBJzcSAScyAKaiAiaiAUQRp3IBRBFXdzIBRBB3dzakGFldy9AmoiGSADQR53IANBE3dzIANBCndzIAMgAnMgBHEgAyACcXNqIBtqIgRqIgogFCATc3EgE3NqIApBGncgCkEVd3MgCkEHd3NqQbjC7PACaiIbIARBHncgBEETd3MgBEEKd3MgBCADcyACcSAEIANxc2ogGmoiAmoiEiAKIBRzcSAUc2ogEkEadyASQRV3cyASQQd3c2pB/Nux6QRqIhogAkEedyACQRN3cyACQQp3cyACIARzIANxIAIgBHFzaiAYaiIDaiITIBIgCnNxIApzaiATQRp3IBNBFXdzIBNBB3dzakGTmuCZBWoiGCADQR53IANBE3dzIANBCndzIAMgAnMgBHEgAyACcXNqIBVqIgRqIhRqICUgE2ogKCASaiAKICRqIBQgEyASc3EgEnNqIBRBGncgFEEVd3MgFEEHd3NqQdTmqagGaiIVIARBHncgBEETd3MgBEEKd3MgBCADcyACcSAEIANxc2ogGWoiAmoiCiAUIBNzcSATc2ogCkEadyAKQRV3cyAKQQd3c2pBu5WoswdqIhkgAkEedyACQRN3cyACQQp3cyACIARzIANxIAIgBHFzaiAbaiIDaiISIAogFHNxIBRzaiASQRp3IBJBFXdzIBJBB3dzakGukouOeGoiGyADQR53IANBE3dzIANBCndzIAMgAnMgBHEgAyACcXNqIBpqIgRqIhMgEiAKc3EgCnNqIBNBGncgE0EVd3MgE0EHd3NqQYXZyJN5aiIaIARBHncgBEETd3MgBEEKd3MgBCADcyACcSAEIANxc2ogGGoiAmoiFGogLiATaiAqIBJqIC0gCmogFCATIBJzcSASc2ogFEEadyAUQRV3cyAUQQd3c2pBodH/lXpqIhggAkEedyACQRN3cyACQQp3cyACIARzIANxIAIgBHFzaiAVaiIDaiIKIBQgE3NxIBNzaiAKQRp3IApBFXdzIAp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QtBACABQRh0IAFBCHRBgID8B3FyIAFBCHZBgP4DcSABQRh2cnI2AryIAUEAIABCHYinIgFBGHQgAUEIdEGAgPwHcXIgAUEIdkGA/gNxIAFBGHZycjYCuIgBQciIAUGAiAEQA0EAQQAoAuSIASIBQRh0IAFBCHRBgID8B3FyIAFBCHZBgP4DcSABQRh2cnI2AuSIAUEAQQAoAuCIASIBQRh0IAFBCHRBgID8B3FyIAFBCHZBgP4DcSABQRh2cnI2AuCIAUEAQQAoAtyIASIBQRh0IAFBCHRBgID8B3FyIAFBCHZBgP4DcSABQRh2cnI2AtyIAUEAQQAoAtiIASIBQRh0IAFBCHRBgID8B3FyIAFBCHZBgP4DcSABQRh2cnI2AtiIAUEAQQAoAtSIASIBQRh0IAFBCHRBgID8B3FyIAFBCHZBgP4DcSABQRh2cnI2AtSIAUEAQQAoAtCIASIBQRh0IAFBCHRBgID8B3FyIAFBCHZBgP4DcSABQRh2cnI2AtCIAUEAQQAoAsyIASIBQRh0IAFBCHRBgID8B3FyIAFBCHZBgP4DcSABQRh2cnI2AsyIAUEAQQAoAsiIASIBQRh0IAFBCHRBgID8B3FyIAFBCHZBgP4DcSABQRh2cnIiATYCyIgBAkBBACgC6IgBIgRFDQBBACABOgCACCAEQQFGDQAgAUEIdiEDQQEhAUEBIQIDQCABQYAIaiADOgAAIAQgAkEBaiICQf8BcSIBTQ0BIAFByIgBai0AACEDDAALCwujAQBBAEIANwPAiAFBAEEcQSAgAUHgAUYiARs2AuiIAUEAQqef5qfG9JP9vn9Cq7OP/JGjs/DbACABGzcD4IgBQQBCsZaA/p+ihazoAEL/pLmIxZHagpt/IAEbNwPYiAFBAEKXusODk6eWh3dC8ua746On/aelfyABGzcD0IgBQQBC2L2WiPygtb42QufMp9DW0Ouzu38gARs3A8iIASAAEAIQBAs="};new m;new m;function A(){return y(_,32).then(e=>{e.init(256);const t={init:()=>(e.init(256),t),update:n=>(e.update(n),t),digest:t=>e.digest(t),blockSize:64,digestSize:32};return t})}new m;new m;new m;new m;new ArrayBuffer(8);new m;new m;new m}).call(this,n(14))},function(e,t,n){"use strict";e.exports=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),n=0;n>>0,l=new Uint8Array(s);e[n];){var u=t[e.charCodeAt(n)];if(255===u)return;for(var h=0,d=s-1;(0!==u||h>>0,l[d]=u%256>>>0,u=u/256>>>0;if(0!==u)throw new Error("Non-zero carry");i=h,n++}if(" "!==e[n]){for(var f=s-i;f!==s&&0===l[f];)f++;for(var p=new Uint8Array(r+(s-f)),g=r;f!==s;)p[g++]=l[f++];return p}}}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===t.length)return"";for(var n=0,r=0,i=0,s=t.length;i!==s&&0===t[i];)i++,n++;for(var c=(s-i)*l+1>>>0,u=new Uint8Array(c);i!==s;){for(var h=t[i],d=0,f=c-1;(0!==h||d>>0,u[f]=h%a>>>0,h=h/a>>>0;if(0!==h)throw new Error("Non-zero carry");r=d,i++}for(var p=c-r;p!==c&&0===u[p];)p++;for(var g=o.repeat(n);pe+t.length,0));const n=new Uint8Array(t);let r=0;for(const t of e)n.set(t,r),r+=t.length;return n}},function(e,t,n){"use strict";const r=n(6),i=n(188),s=n(232);e.exports=i(class{constructor(e,t,n){if(!n)throw new Error("A link requires a cid to point to");Object.defineProperties(this,{Name:{value:e||"",writable:!1,enumerable:!0},Tsize:{value:t,writable:!1,enumerable:!0},Hash:{value:new r(n),writable:!1,enumerable:!0},_nameBuf:{value:null,writable:!0,enumerable:!1}})}toString(){return`DAGLink <${this.Hash.toBaseEncodedString()} - name: "${this.Name}", size: ${this.Tsize}>`}toJSON(){return this._json||(this._json=Object.freeze({name:this.Name,size:this.Tsize,cid:this.Hash.toBaseEncodedString()})),Object.assign({},this._json)}get nameAsBuffer(){return null!==this._nameBuf||(this._nameBuf=s(this.Name)),this._nameBuf}},{className:"DAGLink",symbolName:"@ipld/js-ipld-dag-pb/daglink"})},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return N})),n.d(t,"b",(function(){return R}));var r=n(98),i=n.n(r),s=n(99),a=n.n(s),o=n(1),c=n(48),l=(n(16),n(30));const u=[{contains:["youtube.com","youtube-nocookie.com"],rxRules:[[/ytplayer.load\(\);/,h('ytplayer.config.args.dash = "0"; ytplayer.config.args.dashmpd = ""; {0}')],[/yt\.setConfig.*PLAYER_CONFIG.*args":\s*{/,h('{0} "dash": "0", dashmpd: "", ')],[/(?:"player":|ytplayer\.config).*"args":\s*{/,h('{0}"dash":"0","dashmpd":"",')],[/yt\.setConfig.*PLAYER_VARS.*?{/,h('{0}"dash":"0","dashmpd":"",')],[/ytplayer.config={args:\s*{/,h('{0}"dash":"0","dashmpd":"",')],[/"0"\s*?==\s*?\w+\.dash&&/m,h("1&&")]]},{contains:["vimeo.com/video"],rxRules:[[/"dash"[:]/,h('"__dash":')],[/"hls"[:]/,h('"__hls":')]]},{contains:["facebook.com/"],rxRules:[[/"dash_/,h('"__nodash__')],[/_dash"/,h('__nodash__"')],[/_dash_/,h("__nodash__")]]},{contains:["instagram.com/"],rxRules:[[/"is_dash_eligible":true/,h('"is_dash_eligible":false')]]},{contains:["api.twitter.com/2/","twitter.com/i/api/2/"],rxRules:[[/"video_info".*?}]}/,function(e,t){if(!t)return e;if(!(t.live||t.response&&t.response.extraOpts&&t.response.extraOpts.rewritten))return e;const n=e;try{const t='"video_info":';e=e.slice(t.length);const n=JSON.parse(e);let r=null,i=0;for(const e of n.variants)"video/mp4"===e.content_type&&e.bitrate&&e.bitrate>i&&e.bitrate<=l.a&&(r=e,i=e.bitrate);return r&&(n.variants=[r]),t+JSON.stringify(n)}catch(e){return n}}]]},{contains:["/vqlweb.js"],rxRules:[[/\b\w+\.updatePortSize\(\);this\.updateApplicationSize\(\)(?![*])/gim,h("/*{0}*/")]]}];function h(e){return t=>e.replace("{0}",t)}class d{constructor(e,t){this.rwRules=t||u,this.RewriterCls=e,this._initRules()}_initRules(){this.rewriters=new Map;for(const e of this.rwRules)e.rxRules&&this.rewriters.set(e,new this.RewriterCls(e.rxRules));this.defaultRewriter=new this.RewriterCls}getRewriter(e){for(const t of this.rwRules)if(t.contains)for(const n of t.contains)if(e.indexOf(n)>=0){const e=this.rewriters.get(t);if(e)return e}return this.defaultRewriter}}class f{constructor(e){this.rules=e||null,this.rules?this.compileRules():this.rx=null}compileRules(){let e="";for(let t of this.rules)e&&(e+="|"),e+=`(${t[0].source})`;const t=`(?:${e})`;this.rx=new RegExp(t,"gm")}doReplace(e,t){const n=e[e.length-2],r=e[e.length-1];for(let i=0;ithis.doReplace(n,t)):e}}const p=/^\s*?import\s*?[{"']/,g=/export\s*?({([\s\w,$\n]+?)}[\s;]*|default|class)\s+/;var m=n(103),b=n.n(m);const w=/([\d.]+\s*;\s*url\s*=\s*)(.+)(\s*)/im,y=["http://","https://","//"],_={a:{href:"mp_"},applet:{codebase:"oe_",archive:"oe_"},area:{href:"mp_"},audio:{src:"oe_"},base:{href:"mp_"},blockquote:{cite:"mp_"},body:{background:"im_"},button:{formaction:"mp_"},command:{icon:"im_"},del:{cite:"mp_"},embed:{src:"oe_"},iframe:{src:"if_"},image:{src:"im_","xlink:href":"im_",href:"im_"},img:{src:"im_",srcset:"im_"},ins:{cite:"mp_"},input:{src:"im_",formaction:"mp_"},form:{action:"mp_"},frame:{src:"fr_"},link:{href:"oe_"},meta:{content:"mp_"},object:{codebase:"oe_",data:"oe_"},param:{value:"oe_"},q:{cite:"mp_"},ref:{href:"oe_"},script:{src:"js_","xlink:href":"js_"},source:{src:"oe_",srcset:"oe_"},video:{src:"oe_",poster:"im_"}},A=[{match:/youtube.com\/v\/([^&]+)[&]/,replace:"youtube.com/embed/$1?"}],k=[{urlMatch:/[?&]:loadOrderID=([\d]+)/,match:/(loadOrderID&(quot;&)?#x[^;]+?;)([\d]+)/gi,replace:"$1$U1"}];class E{constructor(e){this.rewriter=e,this.rule=null;for(const e of k){const t=this.rewriter.url.match(e.urlMatch);if(t){this.ruleMatch=t,this.rule=e;break}}}rewriteMetaContent(e,t,n){let r=this.getAttr(e,"http-equiv");if(r&&(r=r.toLowerCase()),"content-security-policy"===r)t.name="_"+t.name;else{if("refresh"===r)return t.value.replace(w,(e,t,r,i)=>t+n.rewriteUrl(r)+i);if("referrer"===this.getAttr(e,"name"))return"no-referrer-when-downgrade";if(Object(o.w)(t.value,y))return n.rewriteUrl(t.value)}return t.value}rewriteSrcSet(e,t){const n=/\s*(\S*\s+[\d.]+[wx]),|(?:\s*,(?:\s+|(?=https?:)))/;let r=[];for(let i of e.split(n))if(i){const e=i.trim().split(" ");e[0]=t.rewriteUrl(e[0]),r.push(e.join(" "))}return r.join(", ")}rewriteTagAndAttrs(e,t,n){const r=e=>Object(o.w)(e,y),i=e.tagName;for(let s of e.attrs){const a=s.name,o=s.value;if(a.startsWith("on")&&o.startsWith("javascript:")&&"-"!=a.slice(2,3))s.value="javascript:"+n.rewriteJS(o.slice("javascript:".length),{inline:!0});else if("style"===a)s.value=n.rewriteCSS(s.value);else if("background"===a)s.value=n.rewriteUrl(o);else if("srcset"===a)s.value=this.rewriteSrcSet(o,n);else if("crossorigin"===a||"integrity"===a||"download"===a)s.name="_"+s.name;else if("meta"===i&&"content"===a)s.value=this.rewriteMetaContent(e.attrs,s,n);else if("param"===i&&r(o))s.value=n.rewriteUrl(s.value);else if(a.startsWith("data-")&&r(o))s.value=n.rewriteUrl(s.value);else if("base"===i&&"href"===a)try{s.value=n.updateBaseUrl(s.value)}catch(e){console.warn("Invalid : "+s.value)}else if("script"===i&&"src"===a){const t=n.rewriteUrl(s.value);t===s.value?(e.attrs.push({name:"__wb_orig_src",value:s.value}),s.value=n.rewriteUrl(s.value,!0)):s.value=t}else if("object"===i&&"data"===a){const t=this.getAttr(e.attrs,"type");if("application/pdf"===t)s.name="src",e.tagName="iframe";else if("application/x-shockwave-flash"===t)for(const t of A){const r=s.value.replace(t.match,t.replace);if(r!==s.value){s.name="src",s.value=n.rewriteUrl(r),e.tagName="iframe";break}}}else("href"===a||"src"===a||t[s.name])&&(s.value=n.rewriteUrl(s.value))}}getAttr(e,t){for(let n of e)if(n.name===t)return n.value;return null}async rewrite(e){if(!e.buffer&&!e.reader)return e;if(e.expectedLength()>5e6)return console.warn("Skipping rewriting, HTML file too big: "+e.expectedLength()),e;const t=this.rewriter,n=new b.a;n.tokenizer.preprocessor.bufferWaterline=o.e;let r=!1,i="",s=!1,a=null;const c=()=>{if(!r&&t.headInsertFunc){const e=t.headInsertFunc(t.url);e&&n.emitRaw(e),r=!0}};function l(e){for(let t=0;t{const o=_[e.tagName],l=e.tagName;switch(this.rewriteTagAndAttrs(e,o||{},t),r||["head","html"].includes(e.tagName)||c(),n.emitStartTag(e),e.tagName){case"script":{if(e.selfClosing)break;i=e.tagName;const t=this.getAttr(e.attrs,"type");s=!t||t.indexOf("javascript")>=0||t.indexOf("ecmascript")>=0;break}case"style":e.selfClosing||(i=e.tagName);break;case"head":c()}e.tagName!==l&&(i=l,a=e.tagName)}),n.on("endTag",e=>{e.tagName===i&&(a&&(e.tagName=a,a=null),i=""),n.emitEndTag(e)}),n.on("text",(e,r)=>{"script"===i?l(s?t.rewriteJS(e.text):e.text):"style"===i?l(t.rewriteCSS(e.text)):(r!==e.text&&e.sourceCodeLocation.startOffset-n.posTracker.droppedBufferSize<0&&(r=e.text),l(r=this.rewriteHTMLText(r)))});const u=e.createIter();let h=!1;return e.setReader(new ReadableStream({async start(e){n.on("data",t=>{e.enqueue(Object(o.j)(t))}),n.on("end",()=>{e.close()});for await(const e of u)n.write(Object(o.h)(e),{encoding:"latin1"}),h=!0;h&&c(),n.end()}})),e}rewriteHTMLText(e){if(this.rule){const t=this.rule.replace.replace("$U1",this.ruleMatch[1]),n=e.replace(this.rule.match,t);if(e!==n)return n}return e}}const v=/(url\s*\(\s*[\\"']*)([^)'"]+)([\\"']*\s*\))/gi,T=/(@import\s*[\\"']*)([^)'";]+)([\\"']*\s*;?)/gi,S=/WB_wombat_/g,I=/^(?:\s*(?:(?:\/\*[^*]*\*\/)|(?:\/\/[^\n]+[\n])))*\s*([\w.]+)\([{[]/,x=/[?].*(?:callback|jsonp)=([^&]+)/i,C=new d(class extends f{constructor(e){super();const t="_____WB$wombat$check$this$function_____(this)",n=["window","self","document","location","top","parent","frames","opener"],r=n.join("|");function i(){return e=>e.replace("this",t)}var s,a;this.rules=[[/(?:^|\s)eval\s*\(/,(a="WB_wombat_runEval(function _____evalIsEvil(_______eval_arg$$) { return eval(_______eval_arg$$); }.bind(this)).",e=>e[0]+a+e.slice(1))],[/[=]\s*\beval\b(?![(:.$])/,function(e,t){return n=>n.replace(e,t)}("eval","self.eval")],[/\.postMessage\b\(/,function(e){return t=>e+t}(".__WB_pmw(self)")],[/[^$.]\s*\blocation\b\s*[=]\s*(?![\s=])/,(s="((self.__WB_check_loc && self.__WB_check_loc(location)) || {}).href = ",(e,t,n)=>{if(t>0){const r=n[t-1];if("."===r||"$"===r)return e}return e+s})],[/\breturn\s+this\b\s*(?![\s\w.$])/,i()],[new RegExp(`[^$.]\\s*\\bthis\\b(?=(?:\\.(?:${r})\\b))`),(e,n,r)=>{const i=n>0?r[n-1]:"";return"\n"===i?e.replace("this",";"+t):"."!==i&&"$"!==i?e.replace("this",t):e}],[/[=,]\s*\bthis\b\s*(?![\s\w:.$])/,i()],[/\}(?:\s*\))?\s*\(this\)/,i()],[/[^|&][|&]{2}\s*this\b\s*(?![|\s&.$](?:[^|&]|$))/,i()]],e&&(this.rules=this.rules.concat(e)),this.compileRules(),this.localObjs=n,this.firstBuff=this.initLocalDecl(n),this.lastBuff="\n\n}"}initLocalDecl(e){const t="_____WB$wombat$assign$function_____";let n=`var ${t} = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; };\nif (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } }\n{\n`;for(let r of e)n+=`let ${r} = ${t}("${r}");\n`;return n+"\n"}getModuleDecl(e,t){return`import { ${e.join(", ")} } from "${t}__wb_module_decl.js";\n`}rewrite(e,t){let n;return n=e.indexOf("import")>=0&&e.match(p)||e.indexOf("export")>=0&&e.match(g)?this.getModuleDecl(this.localObjs,t.prefix)+super.rewrite(e,t):this.firstBuff+super.rewrite(e,t)+this.lastBuff,t&&t.inline?n.replace(/\n/g," "):n}}),R=new d(f);class N{constructor({baseUrl:e,prefix:t,responseUrl:n,workerInsertFunc:r,headInsertFunc:i=null,urlRewrite:s=!0,contentRewrite:a=!0,decode:o=!0,useBaseRules:c=!1}={}){if(this.urlRewrite=s,this.contentRewrite=a,this.dsRules=s&&!c?C:R,this.decode=o,this.prefix=t||"",this.prefix&&s){const e=new URL(this.prefix);this.relPrefix=e.pathname,this.schemeRelPrefix=this.prefix.slice(e.protocol.length)}const l=new URL(n||e);this.scheme=l.protocol,e.startsWith("//")&&(e=this.scheme+e),this.url=this.baseUrl=e,this.headInsertFunc=i,this.workerInsertFunc=r,this.responseUrl=n,this._jsonpCallback=null}getRewriteMode(e,t,n="",r=null){if(!r&&t&&(r=(r=t.headers.get("Content-Type")||"").split(";",1)[0]),e)switch(e.destination){case"style":return"css";case"script":return this.getScriptRewriteMode(r,n,"js");case"worker":return"js-worker"}switch(r){case"text/html":return e.destination||"application/json"!==e.headers.get("Accept")?"html":"json";case"text/css":return"css";case"application/x-mpegURL":case"application/vnd.apple.mpegurl":return"hls";case"application/dash+xml":return"dash";default:return this.getScriptRewriteMode(r,n,null)}}getScriptRewriteMode(e,t,n){switch(e){case"text/javascript":case"application/javascript":case"application/x-javascript":return this.parseJSONPCallback(t)?"jsonp":t.endsWith(".json")?"json":"js";case"application/json":return"json";default:return n}}async rewrite(e,t){const n=this.contentRewrite?this.getRewriteMode(t,e,this.baseUrl):null,r=Object(o.p)(t),i=this.urlRewrite&&!r,s=this.rewriteHeaders(e.headers,this.urlRewrite,!!n,r),a=e.headers.get("content-encoding"),u=e.headers.get("transfer-encoding");e.headers=s,this.decode&&(a||u)&&(e=await Object(c.b)(e,a,u,null===n));let h=null;switch(n){case"html":if(i)return await this.rewriteHtml(e);break;case"css":this.urlRewrite&&(h=this.rewriteCSS);break;case"js":h=this.rewriteJS;break;case"json":h=this.rewriteJSON;break;case"js-worker":h=this.workerInsertFunc;break;case"jsonp":h=this.rewriteJSONP;break;case"hls":h=l.c;break;case"dash":h=l.b}const d={response:e,prefix:this.prefix};if(i&&(d.rewriteUrl=e=>this.rewriteUrl(e)),h){let t=await e.getText();t=h.call(this,t,d),e.setText(t)}return e}updateBaseUrl(e){if(this.baseUrl=new URL(e,this.baseUrl).href,e&&this.baseUrl!=e)try{e=new URL(e).href}catch(t){e.startsWith("//")&&(e=(e=new URL("https:"+e).href).slice("https:".length))}return this.rewriteUrl(e)}isRewritableUrl(e){const t=["#","javascript:","data:","mailto:","about:","file:","blob:","{"];for(let n of t)if(e.startsWith(n))return!1;return!0}rewriteUrl(e,t=!1){if(!this.urlRewrite)return e;var n=e;return!(e=e.trim())||!this.isRewritableUrl(e)||e.startsWith(this.prefix)||e.startsWith(this.relPrefix)?n:e.startsWith("http:")||e.startsWith("https:")||e.startsWith("https\\3a/")?this.prefix+e:e.startsWith("//")||e.startsWith("\\/\\/")?this.schemeRelPrefix+e:e.startsWith("/")?(e=new URL(e,this.baseUrl).href,this.relPrefix+e):t||e.indexOf("../")>=0?(e=new URL(e,this.baseUrl).href,this.prefix+e):n}rewriteHtml(e){return new E(this).rewrite(e)}rewriteCSS(e){const t=this;function n(e,n,r,i){return r=r.trim(),n+t.rewriteUrl(r)+i}return e.replace(v,n).replace(T,n).replace(S,"")}rewriteJS(e,t){const n=t&&!t.rewriteUrl,r=n?R:this.dsRules,i=r.getRewriter(this.baseUrl);if(i===r.defaultRewriter){if(n)return e;const t=["window","self","document","location","top","parent","frames","opener","this","eval","postMessage"];let r=!1;for(let n of t)if(e.indexOf(n)>=0){r=!0;break}if(!r)return e}return i.rewrite(e,t)}rewriteJSON(e,t){e=this.rewriteJSONP(e);const n=R.getRewriter(this.baseUrl);return n!==R.defaultRewriter?n.rewrite(e,t):e}parseJSONPCallback(e){const t=e.match(x);return t&&"?"!==t[1]?(this._jsonpCallback=t[1],!0):(this._jsonpCallback=!1,!1)}rewriteJSONP(e){const t=e.match(I);return t?(null===this._jsonpCallback&&this.parseJSONPCallback(this.baseUrl),!1===this._jsonpCallback?e:this._jsonpCallback+e.slice(e.indexOf(t[1])+t[1].length)):e}rewriteHeaders(e,t,n,r){const s={"access-control-allow-origin":"prefix-if-url-rewrite","access-control-allow-credentials":"prefix-if-url-rewrite","access-control-expose-headers":"prefix-if-url-rewrite","access-control-max-age":"prefix-if-url-rewrite","access-control-allow-methods":"prefix-if-url-rewrite","access-control-allow-headers":"prefix-if-url-rewrite","accept-patch":"keep","accept-ranges":"keep",age:"prefix",allow:"keep","alt-svc":"prefix","cache-control":"prefix",connection:"prefix","content-base":"url-rewrite","content-disposition":"keep","content-encoding":"prefix-if-content-rewrite","content-language":"keep","content-length":"content-length","content-location":"url-rewrite","content-md5":"prefix","content-range":"keep","content-security-policy":"prefix","content-security-policy-report-only":"prefix","content-type":"keep",date:"keep",etag:"prefix",expires:"prefix","last-modified":"prefix",link:"link",location:"url-rewrite",p3p:"prefix",pragma:"prefix","proxy-authenticate":"keep","public-key-pins":"prefix","retry-after":"prefix",server:"prefix","set-cookie":"cookie",status:"prefix","strict-transport-security":"prefix",trailer:"prefix","transfer-encoding":"transfer-encoding",tk:"prefix",upgrade:"prefix","upgrade-insecure-requests":"prefix",vary:"prefix",via:"prefix",warning:"prefix","www-authenticate":"keep","x-frame-options":"prefix","x-xss-protection":"prefix"};let o=new Headers;for(let c of e.entries()){switch(s[c[0]]){case"keep":o.append(c[0],c[1]);break;case"url-rewrite":if(t){if("location"===c[0]&&this.url!==this.responseUrl){const e="http:"===this.scheme?"https:":"http:",t=e+this.responseUrl.slice(this.scheme.length);c[1]===t&&(c[1]=e+this.url.slice(this.url.indexOf("//")))}o.append(c[0],this.rewriteUrl(c[1]))}else o.append(c[0],c[1]);break;case"prefix-if-content-rewrite":n?o.append("X-Archive-Orig-"+c[0],c[1]):o.append(c[0],c[1]);break;case"prefix-if-url-rewrite":t?o.append("X-Archive-Orig-"+c[0],c[1]):o.append(c[0],c[1]);break;case"content-length":if("0"==c[1]){o.append(c[0],c[1]);continue}if(n)try{if(parseInt(c[1])>=0){o.append(c[0],c[1]);continue}}catch(e){}o.append(c[0],c[1]);break;case"transfer-encoding":case"prefix":o.append("X-Archive-Orig-"+c[0],c[1]);break;case"cookie":o.append(c[0],c[1]);break;case"link":if(t&&!r){const e=i()(c[1]);for(const t of Object.values(e))t.url&&(t.url=this.rewriteUrl(t.url));o.append(c[0],a()(e))}else o.append(c[0],c[1]);break;default:o.append(c[0],c[1])}}return o}}},function(e,t,n){"use strict";e.exports=function(e,t,n,r){for(var i=65535&e|0,s=e>>>16&65535|0,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{s=s+(i=i+t[r++]|0)|0}while(--a);i%=65521,s%=65521}return i|s<<16|0}},function(e,t,n){"use strict";var r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();e.exports=function(e,t,n,i){var s=r,a=i+n;e^=-1;for(var o=i;o>>8^s[255&(e^t[o])];return-1^e}},function(e,t,n){"use strict";var r=n(22),i=!0,s=!0;try{String.fromCharCode.apply(null,[0])}catch(e){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){s=!1}for(var a=new r.Buf8(256),o=0;o<256;o++)a[o]=o>=252?6:o>=248?5:o>=240?4:o>=224?3:o>=192?2:1;function c(e,t){if(t<65534&&(e.subarray&&s||!e.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var n="",a=0;a>>6,t[a++]=128|63&n):n<65536?(t[a++]=224|n>>>12,t[a++]=128|n>>>6&63,t[a++]=128|63&n):(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63,t[a++]=128|n>>>6&63,t[a++]=128|63&n);return t},t.buf2binstring=function(e){return c(e,e.length)},t.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,i=t.length;n4)l[r++]=65533,n+=s-1;else{for(i&=2===s?31:3===s?15:7;s>1&&n1?l[r++]=65533:i<65536?l[r++]=i:(i-=65536,l[r++]=55296|i>>10&1023,l[r++]=56320|1023&i)}return c(l,r)},t.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;n>=0&&128==(192&e[n]);)n--;return n<0||0===n?t:n+a[e[n]]>t?n:t}},function(e,t,n){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},function(e,t,n){"use strict";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}},function(e,t,n){"use strict";t.decode=t.parse=n(133),t.encode=t.stringify=n(134)},function(e,t,n){"use strict";var r=n(135),i=n(137);function s(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=y,t.resolve=function(e,t){return y(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?y(e,!1,!0).resolveObject(t):t},t.format=function(e){i.isString(e)&&(e=y(e));return e instanceof s?e.format():s.prototype.format.call(e)},t.Url=s;var a=/^([a-z0-9.+-]+:)/i,o=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,l=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(l),h=["%","/","?",";","#"].concat(u),d=["/","?","#"],f=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,g={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},b={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},w=n(78);function y(e,t,n){if(e&&i.isObject(e)&&e instanceof s)return e;var r=new s;return r.parse(e,t,n),r}s.prototype.parse=function(e,t,n){if(!i.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var s=e.indexOf("?"),o=-1!==s&&s127?B+="x":B+=O[D];if(!B.match(f)){var U=R.slice(0,I),L=R.slice(I+1),z=O.match(p);z&&(U.push(z[1]),L.unshift(z[2])),L.length&&(y="/"+L.join(".")+y),this.hostname=U.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),C||(this.hostname=r.toASCII(this.hostname));var M=this.port?":"+this.port:"",F=this.hostname||"";this.host=F+M,this.href+=this.host,C&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==y[0]&&(y="/"+y))}if(!g[k])for(I=0,N=u.length;I0)&&n.host.split("@"))&&(n.auth=C.shift(),n.host=n.hostname=C.shift());return n.search=e.search,n.query=e.query,i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!E.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var T=E.slice(-1)[0],S=(n.host||e.host||E.length>1)&&("."===T||".."===T)||""===T,I=0,x=E.length;x>=0;x--)"."===(T=E[x])?E.splice(x,1):".."===T?(E.splice(x,1),I++):I&&(E.splice(x,1),I--);if(!A&&!k)for(;I--;I)E.unshift("..");!A||""===E[0]||E[0]&&"/"===E[0].charAt(0)||E.unshift(""),S&&"/"!==E.join("/").substr(-1)&&E.push("");var C,R=""===E[0]||E[0]&&"/"===E[0].charAt(0);v&&(n.hostname=n.host=R?"":E.length?E.shift():"",(C=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=C.shift(),n.host=n.hostname=C.shift()));return(A=A||n.host&&E.length)&&!R&&E.unshift(""),E.length?n.pathname=E.join("/"):(n.pathname=null,n.path=null),i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},s.prototype.parseHost=function(){var e=this.host,t=o.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,n){var r=n(81).BrotliInput,i=n(81).BrotliOutput,s=n(142),a=n(82),o=n(83).HuffmanCode,c=n(83).BrotliBuildHuffmanTable,l=n(145),u=n(146),h=n(147),d=new Uint8Array([1,2,3,4,0,5,17,6,16,7,8,9,10,11,12,13,14,15]),f=new Uint8Array([3,2,1,0,3,3,3,3,3,3,2,2,2,2,2,2]),p=new Int8Array([0,0,0,0,-1,1,-2,2,-3,3,-1,1,-2,2,-3,3]),g=new Uint16Array([256,402,436,468,500,534,566,598,630,662,694,726,758,790,822,854,886,920,952,984,1016,1048,1080]);function m(e){var t;return 0===e.readBits(1)?16:(t=e.readBits(3))>0?17+t:(t=e.readBits(3))>0?8+t:17}function b(e){if(e.readBits(1)){var t=e.readBits(3);return 0===t?1:e.readBits(t)+(1<1&&0===s)throw new Error("Invalid size byte");i.meta_block_length|=s<<8*r}}else for(r=0;r4&&0===a)throw new Error("Invalid size nibble");i.meta_block_length|=a<<4*r}return++i.meta_block_length,i.input_end||i.is_metadata||(i.is_uncompressed=e.readBits(1)),i}function _(e,t,n){var r;return n.fillBitWindow(),(r=e[t+=n.val_>>>n.bit_pos_&255].bits-8)>0&&(n.bit_pos_+=8,t+=e[t].value,t+=n.val_>>>n.bit_pos_&(1<>=1,++u;for(p=0;p0;++p){var y,_=d[p],A=0;r.fillBitWindow(),A+=r.val_>>>r.bit_pos_&15,r.bit_pos_+=w[A].bits,y=w[A].value,g[_]=y,0!==y&&(m-=32>>y,++b)}if(1!==b&&0!==m)throw new Error("[ReadHuffmanCode] invalid num_codes or space");!function(e,t,n,r){for(var i=0,s=8,a=0,l=0,u=32768,h=[],d=0;d<32;d++)h.push(new o(0,0));for(c(h,0,5,e,18);i0;){var f,p=0;if(r.readMoreInput(),r.fillBitWindow(),p+=r.val_>>>r.bit_pos_&31,r.bit_pos_+=h[p].bits,(f=255&h[p].value)<16)a=0,n[i++]=f,0!==f&&(s=f,u-=32768>>f);else{var g,m,b=f-14,w=0;if(16===f&&(w=s),l!==w&&(a=0,l=w),g=a,a>0&&(a-=2,a<<=b),i+(m=(a+=r.readBits(b)+3)-g)>t)throw new Error("[ReadHuffmanCodeLengths] symbol + repeat_delta > num_symbols");for(var y=0;y>>5]),this.htrees=new Uint32Array(t)}function S(e,t){var n,r,i={num_htrees:null,context_map:null},s=0;t.readMoreInput();var a=i.num_htrees=b(t)+1,c=i.context_map=new Uint8Array(e);if(a<=1)return i;for(t.readBits(1)&&(s=t.readBits(4)+1),n=[],r=0;r<1080;r++)n[r]=new o(0,0);for(A(a+s,n,0,t),r=0;r=e)throw new Error("[DecodeContextMap] i >= context_map_size");c[r]=0,++r}else c[r]=l-s,++r}return t.readBits(1)&&function(e,t){var n,r=new Uint8Array(256);for(n=0;n<256;++n)r[n]=n;for(n=0;n=e&&(o-=e),r[n]=o,i[c+(1&s[l])]=o,++s[l]}function x(e,t,n,r,i,a){var o,c=i+1,l=n&i,u=a.pos_&s.IBUF_MASK;if(t<8||a.bit_pos_+(t<<3)0;)a.readMoreInput(),r[l++]=a.readBits(8),l===c&&(e.write(r,c),l=0);else{if(a.bit_end_pos_<32)throw new Error("[CopyUncompressedBlockToOutput] br.bit_end_pos_ < 32");for(;a.bit_pos_<32;)r[l]=a.val_>>>a.bit_pos_,a.bit_pos_+=8,++l,--t;if(u+(o=a.bit_end_pos_-a.bit_pos_>>3)>s.IBUF_MASK){for(var h=s.IBUF_MASK+1-u,d=0;d=c){e.write(r,c),l-=c;for(d=0;d=c;){if(o=c-l,a.input_.read(r,l,o)t.buffer.length){var he=new Uint8Array(R+X);he.set(t.buffer),t.buffer=he}if(N=ue.input_end,F=ue.is_uncompressed,ue.is_metadata)for(C(v);X>0;--X)v.readMoreInput(),v.readBits(8);else if(0!==X)if(F)v.bit_pos_=v.bit_pos_+7&-8,x(t,X,R,f,d,v),R+=X;else{for(n=0;n<3;++n)ee[n]=b(v)+1,ee[n]>=2&&(A(ee[n]+2,g,1080*n,v),A(26,w,1080*n,v),J[n]=k(w,1080*n,v),ne[n]=1);for(v.readMoreInput(),G=(1<<(H=v.readBits(2)))-1,Q=(j=16+(v.readBits(4)<0;){var pe,ge,me,be,we,ye,_e,Ae,ke,Ee,ve,Te;for(v.readMoreInput(),0===J[1]&&(I(ee[1],g,1,$,te,ne,v),J[1]=k(w,1080,v),K=L[1].htrees[$[1]]),--J[1],(ge=(pe=_(L[1].codes,K,v))>>6)>=2?(ge-=2,_e=-1):_e=0,me=u.kInsertRangeLut[ge]+(pe>>3&7),be=u.kCopyRangeLut[ge]+(7&pe),we=u.kInsertLengthPrefixCode[me].offset+v.readBits(u.kInsertLengthPrefixCode[me].nbits),ye=u.kCopyLengthPrefixCode[be].offset+v.readBits(u.kCopyLengthPrefixCode[be].nbits),P=f[R-1&d],U=f[R-2&d],ke=0;ke4?3:ye-2))],(_e=_(L[2].codes,L[2].htrees[oe],v))>=j)Te=(_e-=j)&G,_e=j+((Se=(2+(1&(_e>>=H))<<(ve=1+(_e>>1)))-4)+v.readBits(ve)<(O=R=a.minDictionaryWordLength&&ye<=a.maxDictionaryWordLength))throw new Error("Invalid backward reference. pos: "+R+" distance: "+Ae+" len: "+ye+" bytes left: "+X);var Se=a.offsetsByLength[ye],Ie=Ae-O-1,xe=a.sizeBitsByLength[ye],Ce=Ie>>xe;if(Se+=(Ie&(1<=p){t.write(f,c);for(var Ne=0;Ne0&&(B[3&D]=Ae,++D),ye>X)throw new Error("Invalid backward reference. pos: "+R+" distance: "+Ae+" len: "+ye+" bytes left: "+X);for(ke=0;kethis.buffer.length&&(n=this.buffer.length-this.pos);for(var r=0;rthis.buffer.length)throw new Error("Output buffer is not large enough");return this.buffer.set(e.subarray(0,t),this.pos),this.pos+=t,t},t.BrotliOutput=r},function(e,t,n){var r=n(143);t.init=function(){t.dictionary=r.init()},t.offsetsByLength=new Uint32Array([0,0,0,0,0,4096,9216,21504,35840,44032,53248,63488,74752,87040,93696,100864,104704,106752,108928,113536,115968,118528,119872,121280,122016]),t.sizeBitsByLength=new Uint8Array([0,0,0,0,10,10,11,11,10,10,10,10,10,9,9,8,7,7,8,7,7,6,6,5,5]),t.minDictionaryWordLength=4,t.maxDictionaryWordLength=24},function(e,t){function n(e,t){this.bits=e,this.value=t}t.HuffmanCode=n;function r(e,t){for(var n=1<>=1;return(e&n-1)+n}function i(e,t,r,i,s){do{e[t+(i-=r)]=new n(s.bits,s.value)}while(i>0)}function s(e,t,n){for(var r=1<0;--_[l])i(e,t+h,d,m,new n(255&l,65535&w[u++])),h=r(h,l);for(p=b-1,f=-1,l=a+1,d=2;l<=15;++l,d<<=1)for(;_[l]>0;--_[l])(h&p)!==f&&(t+=m,b+=m=1<<(g=s(_,l,a)),e[y+(f=h&p)]=new n(g+a&255,t-y-f&65535)),i(e,t+(h>>a),d,m,new n(l-a&255,65535&w[u++])),h=r(h,l);return b}},function(e,t,n){"use strict";e.exports=function(e,t,n,r){for(var i=65535&e|0,s=e>>>16&65535|0,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{s=s+(i=i+t[r++]|0)|0}while(--a);i%=65521,s%=65521}return i|s<<16|0}},function(e,t,n){"use strict";var r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();e.exports=function(e,t,n,i){var s=r,a=i+n;e^=-1;for(var o=i;o>>8^s[255&(e^t[o])];return-1^e}},function(e,t,n){"use strict";var r=n(27),i=!0,s=!0;try{String.fromCharCode.apply(null,[0])}catch(e){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){s=!1}for(var a=new r.Buf8(256),o=0;o<256;o++)a[o]=o>=252?6:o>=248?5:o>=240?4:o>=224?3:o>=192?2:1;function c(e,t){if(t<65534&&(e.subarray&&s||!e.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var n="",a=0;a>>6,t[a++]=128|63&n):n<65536?(t[a++]=224|n>>>12,t[a++]=128|n>>>6&63,t[a++]=128|63&n):(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63,t[a++]=128|n>>>6&63,t[a++]=128|63&n);return t},t.buf2binstring=function(e){return c(e,e.length)},t.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,i=t.length;n4)l[r++]=65533,n+=s-1;else{for(i&=2===s?31:3===s?15:7;s>1&&n1?l[r++]=65533:i<65536?l[r++]=i:(i-=65536,l[r++]=55296|i>>10&1023,l[r++]=56320|1023&i)}return c(l,r)},t.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;n>=0&&128==(192&e[n]);)n--;return n<0||0===n?t:n+a[e[n]]>t?n:t}},function(e,t,n){"use strict";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}},function(e,t,n){"use strict";(function(t,r){var i=n(41);e.exports=y;var s,a=n(89);y.ReadableState=w;n(54).EventEmitter;var o=function(e,t){return e.listeners(t).length},c=n(90),l=n(56).Buffer,u=t.Uint8Array||function(){};var h=Object.create(n(35));h.inherits=n(31);var d=n(161),f=void 0;f=d&&d.debuglog?d.debuglog("stream"):function(){};var p,g=n(162),m=n(91);h.inherits(y,c);var b=["error","close","destroy","pause","resume"];function w(e,t){e=e||{};var r=t instanceof(s=s||n(28));this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,a=e.readableHighWaterMark,o=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(a||0===a)?a:o,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new g,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(p||(p=n(93).StringDecoder),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function y(e){if(s=s||n(28),!(this instanceof y))return new y(e);this._readableState=new w(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),c.call(this)}function _(e,t,n,r,i){var s,a=e._readableState;null===t?(a.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,E(e)}(e,a)):(i||(s=function(e,t){var n;r=t,l.isBuffer(r)||r instanceof u||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(a,t)),s?e.emit("error",s):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===l.prototype||(t=function(e){return l.from(e)}(t)),r?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):A(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?A(e,a,t,!1):T(e,a)):A(e,a,t,!1))):r||(a.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=8388608?e=8388608:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function E(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(f("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(v,e):v(e))}function v(e){f("emit readable"),e.emit("readable"),C(e)}function T(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(S,e,t))}function S(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;es.length?s.length:e;if(a===s.length?i+=s:i+=s.slice(0,e),0===(e-=a)){a===s.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=s.slice(a));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=l.allocUnsafe(e),r=t.head,i=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var s=r.data,a=e>s.length?s.length:e;if(s.copy(n,n.length-e,0,a),0===(e-=a)){a===s.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=s.slice(a));break}++i}return t.length-=i,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function N(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(O,t,e))}function O(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function B(e,t){for(var n=0,r=e.length;n=t.highWaterMark||t.ended))return f("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?N(this):E(this),null;if(0===(e=k(e,t))&&t.ended)return 0===t.length&&N(this),null;var r,i=t.needReadable;return f("need readable",i),(0===t.length||t.length-e0?R(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&N(this)),null!==r&&this.emit("data",r),r},y.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},y.prototype.pipe=function(e,t){var n=this,s=this._readableState;switch(s.pipesCount){case 0:s.pipes=e;break;case 1:s.pipes=[s.pipes,e];break;default:s.pipes.push(e)}s.pipesCount+=1,f("pipe count=%d opts=%j",s.pipesCount,t);var c=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?u:y;function l(t,r){f("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,f("cleanup"),e.removeListener("close",b),e.removeListener("finish",w),e.removeListener("drain",h),e.removeListener("error",m),e.removeListener("unpipe",l),n.removeListener("end",u),n.removeListener("end",y),n.removeListener("data",g),d=!0,!s.awaitDrain||e._writableState&&!e._writableState.needDrain||h())}function u(){f("onend"),e.end()}s.endEmitted?i.nextTick(c):n.once("end",c),e.on("unpipe",l);var h=function(e){return function(){var t=e._readableState;f("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,C(e))}}(n);e.on("drain",h);var d=!1;var p=!1;function g(t){f("ondata"),p=!1,!1!==e.write(t)||p||((1===s.pipesCount&&s.pipes===e||s.pipesCount>1&&-1!==B(s.pipes,e))&&!d&&(f("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,p=!0),n.pause())}function m(t){f("onerror",t),y(),e.removeListener("error",m),0===o(e,"error")&&e.emit("error",t)}function b(){e.removeListener("finish",w),y()}function w(){f("onfinish"),e.removeListener("close",b),y()}function y(){f("unpipe"),n.unpipe(e)}return n.on("data",g),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",m),e.once("close",b),e.once("finish",w),e.emit("pipe",n),s.flowing||(f("pipe resume"),n.resume()),e},y.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(164),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(14))},function(e,t,n){"use strict";var r=n(166).Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=l,t=4;break;case"utf8":this.fillLast=o,t=4;break;case"base64":this.text=u,this.end=h,t=3;break;default:return this.write=d,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function o(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function u(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function f(e){return e&&e.length?this.write(e):""}t.StringDecoder=s,s.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0)return i>0&&(e.lastNeed=i-1),i;if(--r=0)return i>0&&(e.lastNeed=i-2),i;if(--r=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,n){"use strict";e.exports=a;var r=n(28),i=Object.create(n(35));function s(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length(Object.keys(t).forEach(n=>{e[n]=t[n]}),e),Object.create(null))}},function(e,t,n){e.exports={encode:n(327),decode:n(328),encodingLength:n(329)}},function(e,t,n){"use strict";var r=n(78),i=n(79),s=n(138);function a(e){return e&&e.rel}function o(e,t){return t.rel.split(/\s+/).forEach((function(n){e[n]=s(t,{rel:n})})),e}function c(e,t){var n=t.match(/\s*(.+)\s*=\s*"?([^"]+)"?/);return n&&(e[n[1]]=n[2]),e}function l(e){try{var t=e.match(/([^>]*)>(.*)/),n=t[1],a=t[2].split(";"),o=i.parse(n),l=r.parse(o.query);a.shift();var u=a.reduce(c,{});return(u=s(l,u)).url=n,u}catch(e){return null}}e.exports=function(e){return e?e.split(/,\s*).map(l).filter(a).reduce(o,{}):null}},function(e,t,n){"use strict";const r=n(139),i=n(140),s=n(141);e.exports=function(e){return null==e?"":r(e).map((function(e){const t=i(e),n=s(t);return`<${t.url}>; ${n}`})).join(", ")}},function(e,t,n){e.exports=n(80).BrotliDecompressBuffer},function(e,t,n){"use strict";var r=n(148),i=n(27),s=n(86),a=n(151),o=n(53),c=n(87),l=n(152),u=Object.prototype.toString;function h(e){if(!(this instanceof h))return new h(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,t.windowBits);if(n!==a.Z_OK)throw new Error(o[n]);if(this.header=new l,r.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=s.string2buf(t.dictionary):"[object ArrayBuffer]"===u.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=r.inflateSetDictionary(this.strm,t.dictionary))!==a.Z_OK))throw new Error(o[n])}function d(e,t){var n=new h(t);if(n.push(e,!0),n.err)throw n.msg||o[n.err];return n.result}h.prototype.push=function(e,t){var n,o,c,l,h,d=this.strm,f=this.options.chunkSize,p=this.options.dictionary,g=!1;if(this.ended)return!1;o=t===~~t?t:!0===t?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof e?d.input=s.binstring2buf(e):"[object ArrayBuffer]"===u.call(e)?d.input=new Uint8Array(e):d.input=e,d.next_in=0,d.avail_in=d.input.length;do{if(0===d.avail_out&&(d.output=new i.Buf8(f),d.next_out=0,d.avail_out=f),(n=r.inflate(d,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&p&&(n=r.inflateSetDictionary(this.strm,p)),n===a.Z_BUF_ERROR&&!0===g&&(n=a.Z_OK,g=!1),n!==a.Z_STREAM_END&&n!==a.Z_OK)return this.onEnd(n),this.ended=!0,!1;d.next_out&&(0!==d.avail_out&&n!==a.Z_STREAM_END&&(0!==d.avail_in||o!==a.Z_FINISH&&o!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(c=s.utf8border(d.output,d.next_out),l=d.next_out-c,h=s.buf2string(d.output,c),d.next_out=l,d.avail_out=f-l,l&&i.arraySet(d.output,d.output,c,l,0),this.onData(h)):this.onData(i.shrinkBuf(d.output,d.next_out)))),0===d.avail_in&&0===d.avail_out&&(g=!0)}while((d.avail_in>0||0===d.avail_out)&&n!==a.Z_STREAM_END);return n===a.Z_STREAM_END&&(o=a.Z_FINISH),o===a.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===a.Z_OK):o!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),d.avail_out=0,!0)},h.prototype.onData=function(e){this.chunks.push(e)},h.prototype.onEnd=function(e){e===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},t.Inflate=h,t.inflate=d,t.inflateRaw=function(e,t){return(t=t||{}).raw=!0,d(e,t)},t.ungzip=d},function(e,t,n){"use strict";var r=n(153),i=n(27),s=n(86),a=n(53),o=n(87),c=Object.prototype.toString;function l(e){if(!(this instanceof l))return new l(e);this.options=i.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});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 o,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==n)throw new Error(a[n]);if(t.header&&r.deflateSetHeader(this.strm,t.header),t.dictionary){var u;if(u="string"==typeof t.dictionary?s.string2buf(t.dictionary):"[object ArrayBuffer]"===c.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(n=r.deflateSetDictionary(this.strm,u)))throw new Error(a[n]);this._dict_set=!0}}function u(e,t){var n=new l(t);if(n.push(e,!0),n.err)throw n.msg||a[n.err];return n.result}l.prototype.push=function(e,t){var n,a,o=this.strm,l=this.options.chunkSize;if(this.ended)return!1;a=t===~~t?t:!0===t?4:0,"string"==typeof e?o.input=s.string2buf(e):"[object ArrayBuffer]"===c.call(e)?o.input=new Uint8Array(e):o.input=e,o.next_in=0,o.avail_in=o.input.length;do{if(0===o.avail_out&&(o.output=new i.Buf8(l),o.next_out=0,o.avail_out=l),1!==(n=r.deflate(o,a))&&0!==n)return this.onEnd(n),this.ended=!0,!1;0!==o.avail_out&&(0!==o.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(s.buf2binstring(i.shrinkBuf(o.output,o.next_out))):this.onData(i.shrinkBuf(o.output,o.next_out)))}while((o.avail_in>0||0===o.avail_out)&&1!==n);return 4===a?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,0===n):2!==a||(this.onEnd(0),o.avail_out=0,!0)},l.prototype.onData=function(e){this.chunks.push(e)},l.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},t.Deflate=l,t.deflate=u,t.deflateRaw=function(e,t){return(t=t||{}).raw=!0,u(e,t)},t.gzip=function(e,t){return(t=t||{}).gzip=!0,u(e,t)}},function(e,t,n){"use strict";const r=n(64),{escapeString:i}=n(179);e.exports=class extends r{constructor(){super({sourceCodeLocationInfo:!0}),this.posTracker=this.locInfoMixin.posTracker}_transformChunk(e){super._transformChunk(e)}_getRawHtml(e){const t=this.posTracker.droppedBufferSize,n=e.startOffset-t,r=e.endOffset-t;return this.tokenizer.preprocessor.html.slice(n,r)}_handleToken(e){super._handleToken(e)||this.emitRaw(this._getRawHtml(e.location)),this.parserFeedbackSimulator.skipNextNewLine=!1}_emitToken(e,t){this.emit(e,t,this._getRawHtml(t.sourceCodeLocation))}emitDoctype(e){let t="",this.push(t)}emitStartTag(e){let t="<"+e.tagName;const n=e.attrs;for(let e=0;e