vendor: 15,571 bytes, line 1
1import{_ as ft}from"./BlQaEoZd.js";import{_ as ct,a as dt,b as ht}from"./DfC-55um.js";import ut from"./Cz3dzNsI.js";import{_ as wt}from"./BODvpOJ_.js";import{f as _t,u as xt,c as j,b as X,w as ne,a as $,i as L,j as H,h as Y,K as bt,o as O,F as kt,r as pt,d as gt,C as vt}from"./D-3BGpdU.js";import{_ as mt}from"./DlAUqK2U.js";import"./BsuoKCns.js";import"./i6Hkf8Pr.js";function z(t){let i=t.length;for(;--i>=0;)t[i]=0}const Et=3,yt=258,Pe=29,St=256,At=St+1+Pe,je=30,Rt=512,Tt=new Array((At+2)*2);z(Tt);const Dt=new Array(je*2);z(Dt);const Ct=new Array(Rt);z(Ct);const Ot=new Array(yt-Et+1);z(Ot);const It=new Array(Pe);z(It);const Nt=new Array(je);z(Nt);const Ut=(t,i,e,o)=>{let f=t&65535|0,n=t>>>16&65535|0,d=0;for(;e!==0;){d=e>2e3?2e3:e,e-=d;do f=f+i[o++]|0,n=n+f|0;while(--d);f%=65521,n%=65521}return f|n<<16|0};var he=Ut;const Zt=()=>{let t,i=[];for(var e=0;e<256;e++){t=e;for(var o=0;o<8;o++)t=t&1?3988292384^t>>>1:t>>>1;i[e]=t}return i},Mt=new Uint32Array(Zt()),$t=(t,i,e,o)=>{const f=Mt,n=o+e;t^=-1;for(let d=o;d<n;d++)t=t>>>8^f[(t^i[d])&255];return t^-1};var C=$t,ue={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Xe={Z_NO_FLUSH:0,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_DEFLATED:8};const Lt=(t,i)=>Object.prototype.hasOwnProperty.call(t,i);var Bt=function(t){const i=Array.prototype.slice.call(arguments,1);for(;i.length;){const e=i.shift();if(e){if(typeof e!="object")throw new TypeError(e+"must be non-object");for(const o in e)Lt(e,o)&&(t[o]=e[o])}}return t},zt=t=>{let i=0;for(let o=0,f=t.length;o<f;o++)i+=t[o].length;const e=new Uint8Array(i);for(let o=0,f=0,n=t.length;o<n;o++){let d=t[o];e.set(d,f),f+=d.length}return e},Ye={assign:Bt,flattenChunks:zt};let We=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{We=!1}const V=new Uint8Array(256);for(let t=0;t<256;t++)V[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;V[254]=V[254]=1;var Ht=t=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(t);let i,e,o,f,n,d=t.length,l=0;for(f=0;f<d;f++)e=t.charCodeAt(f),(e&64512)===55296&&f+1<d&&(o=t.charCodeAt(f+1),(o&64512)===56320&&(e=65536+(e-55296<<10)+(o-56320),f++)),l+=e<128?1:e<2048?2:e<65536?3:4;for(i=new Uint8Array(l),n=0,f=0;n<l;f++)e=t.charCodeAt(f),(e&64512)===55296&&f+1<d&&(o=t.charCodeAt(f+1),(o&64512)===56320&&(e=65536+(e-55296<<10)+(o-56320),f++)),e<128?i[n++]=e:e<2048?(i[n++]=192|e>>>6,i[n++]=128|e&63):e<65536?(i[n++]=224|e>>>12,i[n++]=128|e>>>6&63,i[n++]=128|e&63):(i[n++]=240|e>>>18,i[n++]=128|e>>>12&63,i[n++]=128|e>>>6&63,i[n++]=128|e&63);return i};const Ft=(t,i)=>{if(i<65534&&t.subarray&&We)return String.fromCharCode.apply(null,t.length===i?t:t.subarray(0,i));let e="";for(let o=0;o<i;o++)e+=String.fromCharCode(t[o]);return e};var Vt=(t,i)=>{const e=i||t.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(t.subarray(0,i));let o,f;const n=new Array(e*2);for(f=0,o=0;o<e;){let d=t[o++];if(d<128){n[f++]=d;continue}let l=V[d];if(l>4){n[f++]=65533,o+=l-1;continue}for(d&=l===2?31:l===3?15:7;l>1&&o<e;)d=d<<6|t[o++]&63,l--;if(l>1){n[f++]=65533;continue}d<65536?n[f++]=d:(d-=65536,n[f++]=55296|d>>10&1023,n[f++]=56320|d&1023)}return Ft(n,f)},Gt=(t,i)=>{i=i||t.length,i>t.length&&(i=t.length);let e=i-1;for(;e>=0&&(t[e]&192)===128;)e--;return e<0||e===0?i:e+V[t[e]]>i?e:i},we={string2buf:Ht,buf2string:Vt,utf8border:Gt};function Kt(){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}var Pt=Kt;const W=16209,jt=16191;var Xt=function(i,e){let o,f,n,d,l,b,a,s,y,w,r,_,R,k,u,m,p,c,E,T,h,S,v,x;const g=i.state;o=i.next_in,v=i.input,f=o+(i.avail_in-5),n=i.next_out,x=i.output,d=n-(e-i.avail_out),l=n+(i.avail_out-257),b=g.dmax,a=g.wsize,s=g.whave,y=g.wnext,w=g.window,r=g.hold,_=g.bits,R=g.lencode,k=g.distcode,u=(1<<g.lenbits)-1,m=(1<<g.distbits)-1;e:do{_<15&&(r+=v[o++]<<_,_+=8,r+=v[o++]<<_,_+=8),p=R[r&u];t:for(;;){if(c=p>>>24,r>>>=c,_-=c,c=p>>>16&255,c===0)x[n++]=p&65535;else if(c&16){E=p&65535,c&=15,c&&(_<c&&(r+=v[o++]<<_,_+=8),E+=r&(1<<c)-1,r>>>=c,_-=c),_<15&&(r+=v[o++]<<_,_+=8,r+=v[o++]<<_,_+=8),p=k[r&m];i:for(;;){if(c=p>>>24,r>>>=c,_-=c,c=p>>>16&255,c&16){if(T=p&65535,c&=15,_<c&&(r+=v[o++]<<_,_+=8,_<c&&(r+=v[o++]<<_,_+=8)),T+=r&(1<<c)-1,T>b){i.msg="invalid distance too far back",g.mode=W;break e}if(r>>>=c,_-=c,c=n-d,T>c){if(c=T-c,c>s&&g.sane){i.msg="invalid distance too far back",g.mode=W;break e}if(h=0,S=w,y===0){if(h+=a-c,c<E){E-=c;do x[n++]=w[h++];while(--c);h=n-T,S=x}}else if(y<c){if(h+=a+y-c,c-=y,c<E){E-=c;do x[n++]=w[h++];while(--c);if(h=0,y<E){c=y,E-=c;do x[n++]=w[h++];while(--c);h=n-T,S=x}}}else if(h+=y-c,c<E){E-=c;do x[n++]=w[h++];while(--c);h=n-T,S=x}for(;E>2;)x[n++]=S[h++],x[n++]=S[h++],x[n++]=S[h++],E-=3;E&&(x[n++]=S[h++],E>1&&(x[n++]=S[h++]))}else{h=n-T;do x[n++]=x[h++],x[n++]=x[h++],x[n++]=x[h++],E-=3;while(E>2);E&&(x[n++]=x[h++],E>1&&(x[n++]=x[h++]))}}else if((c&64)===0){p=k[(p&65535)+(r&(1<<c)-1)];continue i}else{i.msg="invalid distance code",g.mode=W;break e}break}}else if((c&64)===0){p=R[(p&65535)+(r&(1<<c)-1)];continue t}else if(c&32){g.mode=jt;break e}else{i.msg="invalid literal/length code",g.mode=W;break e}break}}while(o<f&&n<l);E=_>>3,o-=E,_-=E<<3,r&=(1<<_)-1,i.next_in=o,i.next_out=n,i.avail_in=o<f?5+(f-o):5-(o-f),i.avail_out=n<l?257+(l-n):257-(n-l),g.hold=r,g.bits=_};const B=15,xe=852,be=592,ke=0,ae=1,pe=2,Yt=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),Wt=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),Jt=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),Qt=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),qt=(t,i,e,o,f,n,d,l)=>{const b=l.bits;let a=0,s=0,y=0,w=0,r=0,_=0,R=0,k=0,u=0,m=0,p,c,E,T,h,S=null,v;const x=new Uint16Array(B+1),g=new Uint16Array(B+1);let U=null,_e,K,P;for(a=0;a<=B;a++)x[a]=0;for(s=0;s<o;s++)x[i[e+s]]++;for(r=b,w=B;w>=1&&x[w]===0;w--);if(r>w&&(r=w),w===0)return f[n++]=1<<24|64<<16|0,f[n++]=1<<24|64<<16|0,l.bits=1,0;for(y=1;y<w&&x[y]===0;y++);for(r<y&&(r=y),k=1,a=1;a<=B;a++)if(k<<=1,k-=x[a],k<0)return-1;if(k>0&&(t===ke||w!==1))return-1;for(g[1]=0,a=1;a<B;a++)g[a+1]=g[a]+x[a];for(s=0;s<o;s++)i[e+s]!==0&&(d[g[i[e+s]]++]=s);if(t===ke?(S=U=d,v=20):t===ae?(S=Yt,U=Wt,v=257):(S=Jt,U=Qt,v=0),m=0,s=0,a=y,h=n,_=r,R=0,E=-1,u=1<<r,T=u-1,t===ae&&u>xe||t===pe&&u>be)return 1;for(;;){_e=a-R,d[s]+1<v?(K=0,P=d[s]):d[s]>=v?(K=U[d[s]-v],P=S[d[s]-v]):(K=96,P=0),p=1<<a-R,c=1<<_,y=c;do c-=p,f[h+(m>>R)+c]=_e<<24|K<<16|P|0;while(c!==0);for(p=1<<a-1;m&p;)p>>=1;if(p!==0?(m&=p-1,m+=p):m=0,s++,--x[a]===0){if(a===w)break;a=i[e+d[s]]}if(a>r&&(m&T)!==E){for(R===0&&(R=r),h+=y,_=a-R,k=1<<_;_+R<w&&(k-=x[_+R],!(k<=0));)_++,k<<=1;if(u+=1<<_,t===ae&&u>xe||t===pe&&u>be)return 1;E=m&T,f[E]=r<<24|_<<16|h-n|0}}return m!==0&&(f[h+m]=a-R<<24|64<<16|0),l.bits=r,0};var F=qt;const ei=0,Je=1,Qe=2,{Z_FINISH:ge,Z_BLOCK:ti,Z_TREES:J,Z_OK:Z,Z_STREAM_END:ii,Z_NEED_DICT:ni,Z_STREAM_ERROR:D,Z_DATA_ERROR:qe,Z_MEM_ERROR:et,Z_BUF_ERROR:ai,Z_DEFLATED:ve}=Xe,te=16180,me=16181,Ee=16182,ye=16183,Se=16184,Ae=16185,Re=16186,Te=16187,De=16188,Ce=16189,ee=16190,I=16191,oe=16192,Oe=16193,se=16194,Ie=16195,Ne=16196,Ue=16197,Ze=16198,Q=16199,q=16200,Me=16201,$e=16202,Le=16203,Be=16204,ze=16205,le=16206,He=16207,Fe=16208,A=16209,tt=16210,it=16211,oi=852,si=592,li=15,ri=li,Ve=t=>(t>>>24&255)+(t>>>8&65280)+((t&65280)<<8)+((t&255)<<24);function fi(){this.strm=null,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 M=t=>{if(!t)return 1;const i=t.state;return!i||i.strm!==t||i.mode<te||i.mode>it?1:0},nt=t=>{if(M(t))return D;const i=t.state;return t.total_in=t.total_out=i.total=0,t.msg="",i.wrap&&(t.adler=i.wrap&1),i.mode=te,i.last=0,i.havedict=0,i.flags=-1,i.dmax=32768,i.head=null,i.hold=0,i.bits=0,i.lencode=i.lendyn=new Int32Array(oi),i.distcode=i.distdyn=new Int32Array(si),i.sane=1,i.back=-1,Z},at=t=>{if(M(t))return D;const i=t.state;return i.wsize=0,i.whave=0,i.wnext=0,nt(t)},ot=(t,i)=>{let e;if(M(t))return D;const o=t.state;return i<0?(e=0,i=-i):(e=(i>>4)+5,i<48&&(i&=15)),i&&(i<8||i>15)?D:(o.window!==null&&o.wbits!==i&&(o.window=null),o.wrap=e,o.wbits=i,at(t))},st=(t,i)=>{if(!t)return D;const e=new fi;t.state=e,e.strm=t,e.window=null,e.mode=te;const o=ot(t,i);return o!==Z&&(t.state=null),o},ci=t=>st(t,ri);let Ge=!0,re,fe;const di=t=>{if(Ge){re=new Int32Array(512),fe=new Int32Array(32);let i=0;for(;i<144;)t.lens[i++]=8;for(;i<256;)t.lens[i++]=9;for(;i<280;)t.lens[i++]=7;for(;i<288;)t.lens[i++]=8;for(F(Je,t.lens,0,288,re,0,t.work,{bits:9}),i=0;i<32;)t.lens[i++]=5;F(Qe,t.lens,0,32,fe,0,t.work,{bits:5}),Ge=!1}t.lencode=re,t.lenbits=9,t.distcode=fe,t.distbits=5},lt=(t,i,e,o)=>{let f;const n=t.state;return n.window===null&&(n.wsize=1<<n.wbits,n.wnext=0,n.whave=0,n.window=new Uint8Array(n.wsize)),o>=n.wsize?(n.window.set(i.subarray(e-n.wsize,e),0),n.wnext=0,n.whave=n.wsize):(f=n.wsize-n.wnext,f>o&&(f=o),n.window.set(i.subarray(e-o,e-o+f),n.wnext),o-=f,o?(n.window.set(i.subarray(e-o,e),0),n.wnext=o,n.whave=n.wsize):(n.wnext+=f,n.wnext===n.wsize&&(n.wnext=0),n.whave<n.wsize&&(n.whave+=f))),0},hi=(t,i)=>{let e,o,f,n,d,l,b,a,s,y,w,r,_,R,k=0,u,m,p,c,E,T,h,S;const v=new Uint8Array(4);let x,g;const U=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(M(t)||!t.output||!t.input&&t.avail_in!==0)return D;e=t.state,e.mode===I&&(e.mode=oe),d=t.next_out,f=t.output,b=t.avail_out,n=t.next_in,o=t.input,l=t.avail_in,a=e.hold,s=e.bits,y=l,w=b,S=Z;e:for(;;)switch(e.mode){case te:if(e.wrap===0){e.mode=oe;break}for(;s<16;){if(l===0)break e;l--,a+=o[n++]<<s,s+=8}if(e.wrap&2&&a===35615){e.wbits===0&&(e.wbits=15),e.check=0,v[0]=a&255,v[1]=a>>>8&255,e.check=C(e.check,v,2,0),a=0,s=0,e.mode=me;break}if(e.head&&(e.head.done=!1),!(e.wrap&1)||(((a&255)<<8)+(a>>8))%31){t.msg="incorrect header check",e.mode=A;break}if((a&15)!==ve){t.msg="unknown compression method",e.mode=A;break}if(a>>>=4,s-=4,h=(a&15)+8,e.wbits===0&&(e.wbits=h),h>15||h>e.wbits){t.msg="invalid window size",e.mode=A;break}e.dmax=1<<e.wbits,e.flags=0,t.adler=e.check=1,e.mode=a&512?Ce:I,a=0,s=0;break;case me:for(;s<16;){if(l===0)break e;l--,a+=o[n++]<<s,s+=8}if(e.flags=a,(e.flags&255)!==ve){t.msg="unknown compression method",e.mode=A;break}if(e.flags&57344){t.msg="unknown header flags set",e.mode=A;break}e.head&&(e.head.text=a>>8&1),e.flags&512&&e.wrap&4&&(v[0]=a&255,v[1]=a>>>8&255,e.check=C(e.check,v,2,0)),a=0,s=0,e.mode=Ee;case Ee:for(;s<32;){if(l===0)break e;l--,a+=o[n++]<<s,s+=8}e.head&&(e.head.time=a),e.flags&512&&e.wrap&4&&(v[0]=a&255,v[1]=a>>>8&255,v[2]=a>>>16&255,v[3]=a>>>24&255,e.check=C(e.check,v,4,0)),a=0,s=0,e.mode=ye;case ye:for(;s<16;){if(l===0)break e;l--,a+=o[n++]<<s,s+=8}e.head&&(e.head.xflags=a&255,e.head.os=a>>8),e.flags&512&&e.wrap&4&&(v[0]=a&255,v[1]=a>>>8&255,e.check=C(e.check,v,2,0)),a=0,s=0,e.mode=Se;case Se:if(e.flags&1024){for(;s<16;){if(l===0)break e;l--,a+=o[n++]<<s,s+=8}e.length=a,e.head&&(e.head.extra_len=a),e.flags&512&&e.wrap&4&&(v[0]=a&255,v[1]=a>>>8&255,e.check=C(e.check,v,2,0)),a=0,s=0}else e.head&&(e.head.extra=null);e.mode=Ae;case Ae:if(e.flags&1024&&(r=e.length,r>l&&(r=l),r&&(e.head&&(h=e.head.extra_len-e.length,e.head.extra||(e.head.extra=new Uint8Array(e.head.extra_len)),e.head.extra.set(o.subarray(n,n+r),h)),e.flags&512&&e.wrap&4&&(e.check=C(e.check,o,r,n)),l-=r,n+=r,e.length-=r),e.length))break e;e.length=0,e.mode=Re;case Re:if(e.flags&2048){if(l===0)break e;r=0;do h=o[n+r++],e.head&&h&&e.length<65536&&(e.head.name+=String.fromCharCode(h));while(h&&r<l);if(e.flags&512&&e.wrap&4&&(e.check=C(e.check,o,r,n)),l-=r,n+=r,h)break e}else e.head&&(e.head.name=null);e.length=0,e.mode=Te;case Te:if(e.flags&4096){if(l===0)break e;r=0;do h=o[n+r++],e.head&&h&&e.length<65536&&(e.head.comment+=String.fromCharCode(h));while(h&&r<l);if(e.flags&512&&e.wrap&4&&(e.check=C(e.check,o,r,n)),l-=r,n+=r,h)break e}else e.head&&(e.head.comment=null);e.mode=De;case De:if(e.flags&512){for(;s<16;){if(l===0)break e;l--,a+=o[n++]<<s,s+=8}if(e.wrap&4&&a!==(e.check&65535)){t.msg="header crc mismatch",e.mode=A;break}a=0,s=0}e.head&&(e.head.hcrc=e.flags>>9&1,e.head.done=!0),t.adler=e.check=0,e.mode=I;break;case Ce:for(;s<32;){if(l===0)break e;l--,a+=o[n++]<<s,s+=8}t.adler=e.check=Ve(a),a=0,s=0,e.mode=ee;case ee:if(e.havedict===0)return t.next_out=d,t.avail_out=b,t.next_in=n,t.avail_in=l,e.hold=a,e.bits=s,ni;t.adler=e.check=1,e.mode=I;case I:if(i===ti||i===J)break e;case oe:if(e.last){a>>>=s&7,s-=s&7,e.mode=le;break}for(;s<3;){if(l===0)break e;l--,a+=o[n++]<<s,s+=8}switch(e.last=a&1,a>>>=1,s-=1,a&3){case 0:e.mode=Oe;break;case 1:if(di(e),e.mode=Q,i===J){a>>>=2,s-=2;break e}break;case 2:e.mode=Ne;break;case 3:t.msg="invalid block type",e.mode=A}a>>>=2,s-=2;break;case Oe:for(a>>>=s&7,s-=s&7;s<32;){if(l===0)break e;l--,a+=o[n++]<<s,s+=8}if((a&65535)!==(a>>>16^65535)){t.msg="invalid stored block lengths",e.mode=A;break}if(e.length=a&65535,a=0,s=0,e.mode=se,i===J)break e;case se:e.mode=Ie;case Ie:if(r=e.length,r){if(r>l&&(r=l),r>b&&(r=b),r===0)break e;f.set(o.subarray(n,n+r),d),l-=r,n+=r,b-=r,d+=r,e.length-=r;break}e.mode=I;break;case Ne:for(;s<14;){if(l===0)break e;l--,a+=o[n++]<<s,s+=8}if(e.nlen=(a&31)+257,a>>>=5,s-=5,e.ndist=(a&31)+1,a>>>=5,s-=5,e.ncode=(a&15)+4,a>>>=4,s-=4,e.nlen>286||e.ndist>30){t.msg="too many length or distance symbols",e.mode=A;break}e.have=0,e.mode=Ue;case Ue:for(;e.have<e.ncode;){for(;s<3;){if(l===0)break e;l--,a+=o[n++]<<s,s+=8}e.lens[U[e.have++]]=a&7,a>>>=3,s-=3}for(;e.have<19;)e.lens[U[e.have++]]=0;if(e.lencode=e.lendyn,e.lenbits=7,x={bits:e.lenbits},S=F(ei,e.lens,0,19,e.lencode,0,e.work,x),e.lenbits=x.bits,S){t.msg="invalid code lengths set",e.mode=A;break}e.have=0,e.mode=Ze;case Ze:for(;e.have<e.nlen+e.ndist;){for(;k=e.lencode[a&(1<<e.lenbits)-1],u=k>>>24,m=k>>>16&255,p=k&65535,!(u<=s);){if(l===0)break e;l--,a+=o[n++]<<s,s+=8}if(p<16)a>>>=u,s-=u,e.lens[e.have++]=p;else{if(p===16){for(g=u+2;s<g;){if(l===0)break e;l--,a+=o[n++]<<s,s+=8}if(a>>>=u,s-=u,e.have===0){t.msg="invalid bit length repeat",e.mode=A;break}h=e.lens[e.have-1],r=3+(a&3),a>>>=2,s-=2}else if(p===17){for(g=u+3;s<g;){if(l===0)break e;l--,a+=o[n++]<<s,s+=8}a>>>=u,s-=u,h=0,r=3+(a&7),a>>>=3,s-=3}else{for(g=u+7;s<g;){if(l===0)break e;l--,a+=o[n++]<<s,s+=8}a>>>=u,s-=u,h=0,r=11+(a&127),a>>>=7,s-=7}if(e.have+r>e.nlen+e.ndist){t.msg="invalid bit length repeat",e.mode=A;break}for(;r--;)e.lens[e.have++]=h}}if(e.mode===A)break;if(e.lens[256]===0){t.msg="invalid code -- missing end-of-block",e.mode=A;break}if(e.lenbits=9,x={bits:e.lenbits},S=F(Je,e.lens,0,e.nlen,e.lencode,0,e.work,x),e.lenbits=x.bits,S){t.msg="invalid literal/lengths set",e.mode=A;break}if(e.distbits=6,e.distcode=e.distdyn,x={bits:e.distbits}
vendor: 2,538 bytes, line 1
1,S=F(Qe,e.lens,e.nlen,e.ndist,e.distcode,0,e.work,x),e.distbits=x.bits,S){t.msg="invalid distances set",e.mode=A;break}if(e.mode=Q,i===J)break e;case Q:e.mode=q;case q:if(l>=6&&b>=258){t.next_out=d,t.avail_out=b,t.next_in=n,t.avail_in=l,e.hold=a,e.bits=s,Xt(t,w),d=t.next_out,f=t.output,b=t.avail_out,n=t.next_in,o=t.input,l=t.avail_in,a=e.hold,s=e.bits,e.mode===I&&(e.back=-1);break}for(e.back=0;k=e.lencode[a&(1<<e.lenbits)-1],u=k>>>24,m=k>>>16&255,p=k&65535,!(u<=s);){if(l===0)break e;l--,a+=o[n++]<<s,s+=8}if(m&&(m&240)===0){for(c=u,E=m,T=p;k=e.lencode[T+((a&(1<<c+E)-1)>>c)],u=k>>>24,m=k>>>16&255,p=k&65535,!(c+u<=s);){if(l===0)break e;l--,a+=o[n++]<<s,s+=8}a>>>=c,s-=c,e.back+=c}if(a>>>=u,s-=u,e.back+=u,e.length=p,m===0){e.mode=ze;break}if(m&32){e.back=-1,e.mode=I;break}if(m&64){t.msg="invalid literal/length code",e.mode=A;break}e.extra=m&15,e.mode=Me;case Me:if(e.extra){for(g=e.extra;s<g;){if(l===0)break e;l--,a+=o[n++]<<s,s+=8}e.length+=a&(1<<e.extra)-1,a>>>=e.extra,s-=e.extra,e.back+=e.extra}e.was=e.length,e.mode=$e;case $e:for(;k=e.distcode[a&(1<<e.distbits)-1],u=k>>>24,m=k>>>16&255,p=k&65535,!(u<=s);){if(l===0)break e;l--,a+=o[n++]<<s,s+=8}if((m&240)===0){for(c=u,E=m,T=p;k=e.distcode[T+((a&(1<<c+E)-1)>>c)],u=k>>>24,m=k>>>16&255,p=k&65535,!(c+u<=s);){if(l===0)break e;l--,a+=o[n++]<<s,s+=8}a>>>=c,s-=c,e.back+=c}if(a>>>=u,s-=u,e.back+=u,m&64){t.msg="invalid distance code",e.mode=A;break}e.offset=p,e.extra=m&15,e.mode=Le;case Le:if(e.extra){for(g=e.extra;s<g;){if(l===0)break e;l--,a+=o[n++]<<s,s+=8}e.offset+=a&(1<<e.extra)-1,a>>>=e.extra,s-=e.extra,e.back+=e.extra}if(e.offset>e.dmax){t.msg="invalid distance too far back",e.mode=A;break}e.mode=Be;case Be:if(b===0)break e;if(r=w-b,e.offset>r){if(r=e.offset-r,r>e.whave&&e.sane){t.msg="invalid distance too far back",e.mode=A;break}r>e.wnext?(r-=e.wnext,_=e.wsize-r):_=e.wnext-r,r>e.length&&(r=e.length),R=e.window}else R=f,_=d-e.offset,r=e.length;r>b&&(r=b),b-=r,e.length-=r;do f[d++]=R[_++];while(--r);e.length===0&&(e.mode=q);break;case ze:if(b===0)break e;f[d++]=e.length,b--,e.mode=q;break;case le:if(e.wrap){for(;s<32;){if(l===0)break e;l--,a|=o[n++]<<s,s+=8}if(w-=b,t.total_out+=w,e.total+=w,e.wrap&4&&w&&(t.adler=e.check=e.flags?C(e.check,f,w,d-w):he(e.check,f,w,d-w)),w=b,e.wrap&4&&(e.flags?a:Ve(a))!==e.check){t.msg="incorrect data check",e.mode=A;break}a=0,s=0}e.mode=He;case He:if(e.wrap&&e.flags){for(;s<32;){if(l===0)break e;l--,a+=o[n++]<<s,s+=8}if(e.wrap&4&&a!==(e.total&4294967295)){t.msg="incorrect length check",e.mode=A;break}a=0,s=0}e.mode=Fe;
1case Fe:S=ii;break e;case A:S=qe;break e;case tt:return et;case it:default:return D}return t.next_out=d,t.avail_out=b,t.next_in=n,t.avail_in=l,e.hold=a,e.bits=s,(e.wsize||w!==t.avail_out&&e.mode<A&&(e.mode<le||i!==ge))&<(t,t.output,t.next_out,w-t.avail_out),y-=t.avail_in,w-=t.avail_out,t.total_in+=y,t.total_out+=w,e.total+=w,e.wrap&4&&w&&(t.adler=e.check=e.flags?C(e.check,f,w,t.next_out-w):he(e.check,f,w,t.next_out-w)),t.data_type=e.bits+(e.last?64:0)+(e.mode===I?128:0)+(e.mode===Q||e.mode===se?256:0),(y===0&&w===0||i===ge)&&S===Z&&(S=ai),S},ui=t=>{if(M(t))return D;let i=t.state;return i.window&&(i.window=null),t.state=null,Z},wi=(t,i)=>{if(M(t))return D;const e=t.state;return(e.wrap&2)===0?D:(e.head=i,i.done=!1,Z)},_i=(t,i)=>{const e=i.length;let o,f,n;return M(t)||(o=t.state,o.wrap!==0&&o.mode!==ee)?D:o.mode===ee&&(f=1,f=he(f,i,e,0),f!==o.check)?qe:(n=lt(t,i,e,e),n?(o.mode=tt,et):(o.havedict=1,Z))};var xi=at,bi=ot,ki=nt,pi=ci,gi=st,vi=hi,mi=ui,Ei=wi,yi=_i,Si="pako inflate (from Nodeca project)",N={inflateReset:xi,inflateReset2:bi,inflateResetKeep:ki,inflateInit:pi,inflateInit2:gi,inflate:vi,inflateEnd:mi,inflateGetHeader:Ei,inflateSetDictionary:yi,inflateInfo:Si};function Ai(){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}var Ri=Ai;const rt=Object.prototype.toString,{Z_NO_FLUSH:Ti,Z_FINISH:Di,Z_OK:G,Z_STREAM_END:ce,Z_NEED_DICT:de,Z_STREAM_ERROR:Ci,Z_DATA_ERROR:Ke,Z_MEM_ERROR:Oi}=Xe;function ie(t){this.options=Ye.assign({chunkSize:1024*64,windowBits:15,to:""},t||{});const i=this.options;i.raw&&i.windowBits>=0&&i.windowBits<16&&(i.windowBits=-i.windowBits,i.windowBits===0&&(i.windowBits=-15)),i.windowBits>=0&&i.windowBits<16&&!(t&&t.windowBits)&&(i.windowBits+=32),i.windowBits>15&&i.windowBits<48&&(i.windowBits&15)===0&&(i.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Pt,this.strm.avail_out=0;let e=N.inflateInit2(this.strm,i.windowBits);if(e!==G)throw new Error(ue[e]);if(this.header=new Ri,N.inflateGetHeader(this.strm,this.header),i.dictionary&&(typeof i.dictionary=="string"?i.dictionary=we.string2buf(i.dictionary):rt.call(i.dictionary)==="[object ArrayBuffer]"&&(i.dictionary=new Uint8Array(i.dictionary)),i.raw&&(e=N.inflateSetDictionary(this.strm,i.dictionary),e!==G)))throw new Error(ue[e])}ie.prototype.push=function(t,i){const e=this.strm,o=this.options.chunkSize,f=this.options.dictionary;let n,d,l;if(this.ended)return!1;for(i===~~i?d=i:d=i===!0?Di:Ti,rt.call(t)==="[object ArrayBuffer]"?e.input=new Uint8Array(t):e.input=t,e.next_in=0,e.avail_in=e.input.length;;){for(e.avail_out===0&&(e.output=new Uint8Array(o),e.next_out=0,e.avail_out=o),n=N.inflate(e,d),n===de&&f&&(n=N.inflateSetDictionary(e,f),n===G?n=N.inflate(e,d):n===Ke&&(n=de));e.avail_in>0&&n===ce&&e.state.wrap>0&&t[e.next_in]!==0;)N.inflateReset(e),n=N.inflate(e,d);switch(n){case Ci:case Ke:case de:case Oi:return this.onEnd(n),this.ended=!0,!1}if(l=e.avail_out,e.next_out&&(e.avail_out===0||n===ce))if(this.options.to==="string"){let b=we.utf8border(e.output,e.next_out),a=e.next_out-b,s=we.buf2string(e.output,b);e.next_out=a,e.avail_out=o-a,a&&e.output.set(e.output.subarray(b,b+a),0),this.onData(s)}else this.onData(e.output.length===e.next_out?e.output:e.output.subarray(0,e.next_out));if(!(n===G&&l===0)){if(n===ce)return n=N.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,!0;if(e.avail_in===0)break}}return!0};ie.prototype.onData=function(t){this.chunks.push(t)};ie.prototype.onEnd=function(t){t===G&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Ye.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function Ii(t,i){const e=new ie(i);if(e.push(t),e.err)throw e.msg||ue[e.err];return e.result}var Ni=Ii,Ui={inflate:Ni};const{inflate:Zi}=Ui;var Mi=Zi;const $i=t=>{const i=Hi(t);return Li(i)},Li=t=>{const i=new Map;return t.forEach(e=>{const o=Bi(e);i.has(o.name)&&console.log(`Found duplicate section: ${o.name}`),i.set(o.name,o.content)}),i},Bi=t=>{const i=zi(t),e=i.indexOf(0),o=new TextDecoder,f=o.decode(i.subarray(0,e)),n=i.subarray(e+1),d=Mi(n),l=o.decode(d).replaceAll("\r","");return{name:f,content:l}},zi=t=>{const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
1+/=";let e=[];for(let o=0;o<t.length;o+=4){let f=t.substring(o,o+4),n=i.indexOf(f[3])%64<<18|i.indexOf(f[2])%64<<12|i.indexOf(f[1])%64<<6|i.indexOf(f[0])%64;e.push(n%256,(n>>8)%256,(n>>16)%256)}return new Uint8Array(e)},Hi=t=>{const i=[];let e="",o=!1;if(t.replaceAll("\r","").split(` 2`).forEach((f,n)=>{if(f==="--BEGIN ROUTEROS SUPOUT SECTION"){if(o)throw new Error(`Unexpected section start marker within a section on line ${n}`);o=!0;return}if(f==="--END ROUTEROS SUPOUT SECTION"){i.push(e.trim()),e="",o=!1;return}e+=f.trim()}),o)throw new Error("Last section is missing end marker");return i},Fi={class:"max-h-[calc(80vh-4rem)] overflow-y-auto"},Vi={class:"relative lg:pl-64"},Gi={class:"flex min-h-[calc(70vh-4rem)] flex-col gap-0.5 px-5 py-5"},Ki={key:0,class:"my-4 border-t border-border/80"},Pi={key:2,class:"text-muted-foreground"},ji=_t({__name:"supout-rif-viewer",setup(t){xt({title:"MikroTik Supout RIF Viewer",meta:[{name:"description",content:"This free tool allows you to view the contents of a MikroTik supout.rif file, without any redactions or hidden information."}]});const i=Y(null),e=Y(new Map),o=Y(null),f=Y(""),n=vt(()=>Array.from(e.value.keys()).filter(b=>b.toLowerCase().includes(f.value.toLowerCase())).sort()),d=async b=>{const s=b.target.files?.[0];if(!s)return;const y=new FileReader;y.onload=async w=>{w.target?.result,e.value=$i(y.result)},y.readAsText(s),o.value="export"},l=b=>{o.value=b};return(b,a)=>{const s=ft,y=ht,w=dt,r=ct,_=ut,R=bt("highlightjs"),k=wt;return O(),j("div",null,[X(r,{"logo-title":"MikroTik RIF Viewer"},{default:ne(()=>[o.value?(O(),H(s,{key:0,type:"file",onChange:d,class:"max-w-md",placeholder:"Upload supout.rif file"})):L("",!0),o.value?(O(),H(s,{key:1,placeholder:"Search for sections",class:"mb-2",modelValue:f.value,"onUpdate:modelValue":a[0]||(a[0]=u=>f.value=u)},null,8,["modelValue"])):L("",!0),$("div",Fi,[X(w,null,{default:ne(()=>[(O(!0),j(kt,null,pt(n.value,u=>(O(),H(y,{title:u,onClick:m=>l(u),highlight:u===o.value},null,8,["title","onClick","highlight"]))),256))]),_:1})])]),_:1}),$("div",Vi,[$("div",Gi,[a[3]||(a[3]=$("h1",{class:"text-3xl font-bold text-foreground"}," MikroTik Supout RIF Viewer ",-1)),a[4]||(a[4]=$("p",{class:"text-muted-foreground"}," This free tool allows you to view the contents of a MikroTik supout.rif file, without any redactions or hidden information. ",-1)),X(_,{class:"text-sm"},{default:ne(()=>[...a[2]||(a[2]=[gt(" No data is sent to our servers, and the entire decoding process is done in your browser. ",-1)])]),_:1}),o.value?(O(),j("div",Ki)):L("",!0),o.value?(O(),H(R,{key:1,class:"code",language:"mikrotik",code:e.value.get(o.value||"")||""},null,8,["code"])):L("",!0),o.value?L("",!0):(O(),j("p",Pi," Please upload a supout.rif file to get started. ")),$("div",null,[o.value?L("",!0):(O(),H(s,{key:0,modelValue:i.value,"onUpdate:modelValue":a[1]||(a[1]=u=>i.value=u),type:"file",onChange:d,class:"max-w-md",placeholder:"Upload supout.rif file"},null,8,["modelValue"]))])]),X(k)])])}}}),nn=mt(ji,[["__scopeId","data-v-1278735d"]]);export{nn as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.