ultisuite-client/out/_next/static/chunks/1062.0f485158f258c55a.js
R3D347HR4Y d6d18f911b
Some checks failed
E2E / Playwright e2e (push) Has been cancelled
Lots of stuff and mobile app
2026-06-17 00:13:28 +02:00

1 line
26 KiB
JavaScript

"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1062],{3432:(t,e,r)=>{r.d(e,{AO:()=>tg,D8:()=>tc,L:()=>tv,he:()=>ta,qQ:()=>td,uZ:()=>tu});var n=Uint8Array,i=Uint16Array,a=Int32Array,o=new n([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),f=new n([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),h=new n([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),l=function(t,e){for(var r=new i(31),n=0;n<31;++n)r[n]=e+=1<<t[n-1];for(var o=new a(r[30]),n=1;n<30;++n)for(var f=r[n];f<r[n+1];++f)o[f]=f-r[n]<<5|n;return{b:r,r:o}},s=l(o,2),u=s.b,c=s.r;u[28]=258,c[258]=28;for(var d=l(f,0),v=d.b,g=d.r,p=new i(32768),w=0;w<32768;++w){var b=(43690&w)>>1|(21845&w)<<1;b=(61680&(b=(52428&b)>>2|(13107&b)<<2))>>4|(3855&b)<<4,p[w]=((65280&b)>>8|(255&b)<<8)>>1}for(var y=function(t,e,r){for(var n,a=t.length,o=0,f=new i(e);o<a;++o)t[o]&&++f[t[o]-1];var h=new i(e);for(o=1;o<e;++o)h[o]=h[o-1]+f[o-1]<<1;if(r){n=new i(1<<e);var l=15-e;for(o=0;o<a;++o)if(t[o])for(var s=o<<4|t[o],u=e-t[o],c=h[t[o]-1]++<<u,d=c|(1<<u)-1;c<=d;++c)n[p[c]>>l]=s}else for(o=0,n=new i(a);o<a;++o)t[o]&&(n[o]=p[h[t[o]-1]++]>>15-t[o]);return n},m=new n(288),w=0;w<144;++w)m[w]=8;for(var w=144;w<256;++w)m[w]=9;for(var w=256;w<280;++w)m[w]=7;for(var w=280;w<288;++w)m[w]=8;for(var x=new n(32),w=0;w<32;++w)x[w]=5;var T=y(m,9,0),E=y(m,9,1),A=y(x,5,0),k=y(x,5,1),B=function(t){for(var e=t[0],r=1;r<t.length;++r)t[r]>e&&(e=t[r]);return e},z=function(t,e,r){var n=e/8|0;return(t[n]|t[n+1]<<8)>>(7&e)&r},M=function(t,e){var r=e/8|0;return(t[r]|t[r+1]<<8|t[r+2]<<16)>>(7&e)},S=function(t){return(t+7)/8|0},P=function(t,e,r){return(null==e||e<0)&&(e=0),(null==r||r>t.length)&&(r=t.length),new n(t.subarray(e,r))},I=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],U=function(t,e,r){var n=Error(e||I[t]);if(n.code=t,Error.captureStackTrace&&Error.captureStackTrace(n,U),!r)throw n;return n},C=function(t,e,r,i){var a=t.length,l=i?i.length:0;if(!a||e.f&&!e.l)return r||new n(0);var s=!r,c=s||2!=e.i,d=e.i;s&&(r=new n(3*a));var g=function(t){var e=r.length;if(t>e){var i=new n(Math.max(2*e,t));i.set(r),r=i}},p=e.f||0,w=e.p||0,b=e.b||0,m=e.l,x=e.d,T=e.m,A=e.n,I=8*a;do{if(!m){p=z(t,w,1);var C=z(t,w+1,3);if(w+=3,C)if(1==C)m=E,x=k,T=9,A=5;else if(2==C){var N=z(t,w,31)+257,R=z(t,w+10,15)+4,D=N+z(t,w+5,31)+1;w+=14;for(var V=new n(D),F=new n(19),$=0;$<R;++$)F[h[$]]=z(t,w+3*$,7);w+=3*R;for(var j=B(F),G=(1<<j)-1,L=y(F,j,1),$=0;$<D;){var O=L[z(t,w,G)];w+=15&O;var _=O>>4;if(_<16)V[$++]=_;else{var q=0,J=0;for(16==_?(J=3+z(t,w,3),w+=2,q=V[$-1]):17==_?(J=3+z(t,w,7),w+=3):18==_&&(J=11+z(t,w,127),w+=7);J--;)V[$++]=q}}var W=V.subarray(0,N),H=V.subarray(N);T=B(W),A=B(H),m=y(W,T,1),x=y(H,A,1)}else U(1);else{var _=S(w)+4,Q=t[_-4]|t[_-3]<<8,X=_+Q;if(X>a){d&&U(0);break}c&&g(b+Q),r.set(t.subarray(_,X),b),e.b=b+=Q,e.p=w=8*X,e.f=p;continue}if(w>I){d&&U(0);break}}c&&g(b+131072);for(var K=(1<<T)-1,Y=(1<<A)-1,Z=w;;Z=w){var q=m[M(t,w)&K],tt=q>>4;if((w+=15&q)>I){d&&U(0);break}if(q||U(2),tt<256)r[b++]=tt;else if(256==tt){Z=w,m=null;break}else{var te=tt-254;if(tt>264){var $=tt-257,tr=o[$];te=z(t,w,(1<<tr)-1)+u[$],w+=tr}var tn=x[M(t,w)&Y],ti=tn>>4;tn||U(3),w+=15&tn;var H=v[ti];if(ti>3){var tr=f[ti];H+=M(t,w)&(1<<tr)-1,w+=tr}if(w>I){d&&U(0);break}c&&g(b+131072);var ta=b+te;if(b<H){var to=l-H,tf=Math.min(H,ta);for(to+b<0&&U(3);b<tf;++b)r[b]=i[to+b]}for(;b<ta;++b)r[b]=r[b-H]}}e.l=m,e.p=Z,e.b=b,e.f=p,m&&(p=1,e.m=T,e.d=x,e.n=A)}while(!p);return b!=r.length&&s?P(r,0,b):r.subarray(0,b)},N=function(t,e,r){r<<=7&e;var n=e/8|0;t[n]|=r,t[n+1]|=r>>8},R=function(t,e,r){r<<=7&e;var n=e/8|0;t[n]|=r,t[n+1]|=r>>8,t[n+2]|=r>>16},D=function(t,e){for(var r=[],a=0;a<t.length;++a)t[a]&&r.push({s:a,f:t[a]});var o=r.length,f=r.slice();if(!o)return{t:O,l:0};if(1==o){var h=new n(r[0].s+1);return h[r[0].s]=1,{t:h,l:1}}r.sort(function(t,e){return t.f-e.f}),r.push({s:-1,f:25001});var l=r[0],s=r[1],u=0,c=1,d=2;for(r[0]={s:-1,f:l.f+s.f,l:l,r:s};c!=o-1;)l=r[r[u].f<r[d].f?u++:d++],s=r[u!=c&&r[u].f<r[d].f?u++:d++],r[c++]={s:-1,f:l.f+s.f,l:l,r:s};for(var v=f[0].s,a=1;a<o;++a)f[a].s>v&&(v=f[a].s);var g=new i(v+1),p=V(r[c-1],g,0);if(p>e){var a=0,w=0,b=p-e,y=1<<b;for(f.sort(function(t,e){return g[e.s]-g[t.s]||t.f-e.f});a<o;++a){var m=f[a].s;if(g[m]>e)w+=y-(1<<p-g[m]),g[m]=e;else break}for(w>>=b;w>0;){var x=f[a].s;g[x]<e?w-=1<<e-g[x]++-1:++a}for(;a>=0&&w;--a){var T=f[a].s;g[T]==e&&(--g[T],++w)}p=e}return{t:new n(g),l:p}},V=function(t,e,r){return -1==t.s?Math.max(V(t.l,e,r+1),V(t.r,e,r+1)):e[t.s]=r},F=function(t){for(var e=t.length;e&&!t[--e];);for(var r=new i(++e),n=0,a=t[0],o=1,f=function(t){r[n++]=t},h=1;h<=e;++h)if(t[h]==a&&h!=e)++o;else{if(!a&&o>2){for(;o>138;o-=138)f(32754);o>2&&(f(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(f(a),--o;o>6;o-=6)f(8304);o>2&&(f(o-3<<5|8208),o=0)}for(;o--;)f(a);o=1,a=t[h]}return{c:r.subarray(0,n),n:e}},$=function(t,e){for(var r=0,n=0;n<e.length;++n)r+=t[n]*e[n];return r},j=function(t,e,r){var n=r.length,i=S(e+2);t[i]=255&n,t[i+1]=n>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<n;++a)t[i+a+4]=r[a];return(i+4+n)*8},G=function(t,e,r,n,a,l,s,u,c,d,v){N(e,v++,r),++a[256];for(var g,p,w,b,E=D(a,15),k=E.t,B=E.l,z=D(l,15),M=z.t,S=z.l,P=F(k),I=P.c,U=P.n,C=F(M),V=C.c,G=C.n,L=new i(19),O=0;O<I.length;++O)++L[31&I[O]];for(var O=0;O<V.length;++O)++L[31&V[O]];for(var _=D(L,7),q=_.t,J=_.l,W=19;W>4&&!q[h[W-1]];--W);var H=d+5<<3,Q=$(a,m)+$(l,x)+s,X=$(a,k)+$(l,M)+s+14+3*W+$(L,q)+2*L[16]+3*L[17]+7*L[18];if(c>=0&&H<=Q&&H<=X)return j(e,v,t.subarray(c,c+d));if(N(e,v,1+(X<Q)),v+=2,X<Q){g=y(k,B,0),p=k,w=y(M,S,0),b=M;var K=y(q,J,0);N(e,v,U-257),N(e,v+5,G-1),N(e,v+10,W-4),v+=14;for(var O=0;O<W;++O)N(e,v+3*O,q[h[O]]);v+=3*W;for(var Y=[I,V],Z=0;Z<2;++Z)for(var tt=Y[Z],O=0;O<tt.length;++O){var te=31&tt[O];N(e,v,K[te]),v+=q[te],te>15&&(N(e,v,tt[O]>>5&127),v+=tt[O]>>12)}}else g=T,p=m,w=A,b=x;for(var O=0;O<u;++O){var tr=n[O];if(tr>255){var te=tr>>18&31;R(e,v,g[te+257]),v+=p[te+257],te>7&&(N(e,v,tr>>23&31),v+=o[te]);var tn=31&tr;R(e,v,w[tn]),v+=b[tn],tn>3&&(R(e,v,tr>>5&8191),v+=f[tn])}else R(e,v,g[tr]),v+=p[tr]}return R(e,v,g[256]),v+p[256]},L=new a([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),O=new n(0),_=function(t,e,r,h,l,s){var u=s.z||t.length,d=new n(h+u+5*(1+Math.ceil(u/7e3))+l),v=d.subarray(h,d.length-l),p=s.l,w=7&(s.r||0);if(e){w&&(v[0]=s.r>>3);for(var b=L[e-1],y=b>>13,m=8191&b,x=(1<<r)-1,T=s.p||new i(32768),E=s.h||new i(x+1),A=Math.ceil(r/3),k=2*A,B=function(e){return(t[e]^t[e+1]<<A^t[e+2]<<k)&x},z=new a(25e3),M=new i(288),I=new i(32),U=0,C=0,N=s.i||0,R=0,D=s.w||0,V=0;N+2<u;++N){var F=B(N),$=32767&N,O=E[F];if(T[$]=O,E[F]=$,D<=N){var _=u-N;if((U>7e3||R>24576)&&(_>423||!p)){w=G(t,v,0,z,M,I,C,R,V,N-V,w),R=U=C=0,V=N;for(var q=0;q<286;++q)M[q]=0;for(var q=0;q<30;++q)I[q]=0}var J=2,W=0,H=m,Q=$-O&32767;if(_>2&&F==B(N-Q))for(var X=Math.min(y,_)-1,K=Math.min(32767,N),Y=Math.min(258,_);Q<=K&&--H&&$!=O;){if(t[N+J]==t[N+J-Q]){for(var Z=0;Z<Y&&t[N+Z]==t[N+Z-Q];++Z);if(Z>J){if(J=Z,W=Q,Z>X)break;for(var tt=Math.min(Q,Z-2),te=0,q=0;q<tt;++q){var tr=N-Q+q&32767,tn=T[tr],ti=tr-tn&32767;ti>te&&(te=ti,O=tr)}}}O=T[$=O],Q+=$-O&32767}if(W){z[R++]=0x10000000|c[J]<<18|g[W];var ta=31&c[J],to=31&g[W];C+=o[ta]+f[to],++M[257+ta],++I[to],D=N+J,++U}else z[R++]=t[N],++M[t[N]]}}for(N=Math.max(N,D);N<u;++N)z[R++]=t[N],++M[t[N]];w=G(t,v,p,z,M,I,C,R,V,N-V,w),p||(s.r=7&w|v[w/8|0]<<3,w-=7,s.h=E,s.p=T,s.i=N,s.w=D)}else{for(var N=s.w||0;N<u+p;N+=65535){var tf=N+65535;tf>=u&&(v[w/8|0]=p,tf=u),w=j(v,w+1,t.subarray(N,tf))}s.i=u}return P(d,0,h+S(w)+l)},q=function(){for(var t=new Int32Array(256),e=0;e<256;++e){for(var r=e,n=9;--n;)r=(1&r&&-0x12477ce0)^r>>>1;t[e]=r}return t}(),J=function(){var t=-1;return{p:function(e){for(var r=t,n=0;n<e.length;++n)r=q[255&r^e[n]]^r>>>8;t=r},d:function(){return~t}}},W=function(t,e,r,i,a){if(!a&&(a={l:1},e.dictionary)){var o=e.dictionary.subarray(-32768),f=new n(o.length+t.length);f.set(o),f.set(t,o.length),t=f,a.w=o.length}return _(t,null==e.level?6:e.level,null==e.mem?a.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):20:12+e.mem,r,i,a)},H=function(t,e){var r={};for(var n in t)r[n]=t[n];for(var n in e)r[n]=e[n];return r},Q=function(t,e){return t[e]|t[e+1]<<8},X=function(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0},K=function(t,e){return X(t,e)+0x100000000*X(t,e+4)},Y=function(t,e,r){for(;r;++e)t[e]=r,r>>>=8},Z=function(){function t(t,e){if("function"==typeof t&&(e=t,t={}),this.ondata=e,this.o=t||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new n(98304),this.o.dictionary){var r=this.o.dictionary.subarray(-32768);this.b.set(r,32768-r.length),this.s.i=32768-r.length}}return t.prototype.p=function(t,e){this.ondata(W(t,this.o,0,0,this.s),e)},t.prototype.push=function(t,e){this.ondata||U(5),this.s.l&&U(4);var r=t.length+this.s.z;if(r>this.b.length){if(r>2*this.b.length-32768){var i=new n(-32768&r);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;this.b.set(t.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(t.subarray(a),32768),this.s.z=t.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(t,this.s.z),this.s.z+=t.length;this.s.l=1&e,(this.s.z>this.s.w+8191||e)&&(this.p(this.b,e||!1),this.s.w=this.s.i,this.s.i-=2)},t.prototype.flush=function(){this.ondata||U(5),this.s.l&&U(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},t}(),tt=function(t,e,r,i){for(var a in t){var o=t[a],f=e+a,h=i;Array.isArray(o)&&(h=H(i,o[1]),o=o[0]),o instanceof n?r[f]=[o,h]:(r[f+="/"]=[new n(0),h],tt(o,f,r,i))}},te="u">typeof TextEncoder&&new TextEncoder,tr="u">typeof TextDecoder&&new TextDecoder;try{tr.decode(O,{stream:!0})}catch(t){}var tn=function(t){for(var e="",r=0;;){var n=t[r++],i=(n>127)+(n>223)+(n>239);if(r+i>t.length)return{s:e,r:P(t,r-1)};i?3==i?e+=String.fromCharCode(55296|(n=((15&n)<<18|(63&t[r++])<<12|(63&t[r++])<<6|63&t[r++])-65536)>>10,56320|1023&n):1&i?e+=String.fromCharCode((31&n)<<6|63&t[r++]):e+=String.fromCharCode((15&n)<<12|(63&t[r++])<<6|63&t[r++]):e+=String.fromCharCode(n)}};function ti(t,e){if(e){for(var r=new n(t.length),i=0;i<t.length;++i)r[i]=t.charCodeAt(i);return r}if(te)return te.encode(t);for(var a=t.length,o=new n(t.length+(t.length>>1)),f=0,h=function(t){o[f++]=t},i=0;i<a;++i){if(f+5>o.length){var l=new n(f+8+(a-i<<1));l.set(o),o=l}var s=t.charCodeAt(i);s<128||e?h(s):(s<2048?h(192|s>>6):(s>55295&&s<57344?(h(240|(s=65536+(1047552&s)|1023&t.charCodeAt(++i))>>18),h(128|s>>12&63)):h(224|s>>12),h(128|s>>6&63)),h(128|63&s))}return P(o,0,f)}function ta(t,e){if(e){for(var r="",n=0;n<t.length;n+=16384)r+=String.fromCharCode.apply(null,t.subarray(n,n+16384));return r}if(tr)return tr.decode(t);var i=tn(t),a=i.s,r=i.r;return r.length&&U(8),a}var to=function(t,e,r){var n=Q(t,e+28),i=ta(t.subarray(e+46,e+46+n),!(2048&Q(t,e+8))),a=e+46+n,o=X(t,e+20),f=r&&0xffffffff==o?tf(t,a):[o,X(t,e+24),X(t,e+42)],h=f[0],l=f[1],s=f[2];return[Q(t,e+10),h,l,i,a+Q(t,e+30)+Q(t,e+32),s]},tf=function(t,e){for(;1!=Q(t,e);e+=4+Q(t,e+2));return[K(t,e+12),K(t,e+4),K(t,e+20)]},th=function(t){var e=0;if(t)for(var r in t){var n=t[r].length;n>65535&&U(9),e+=n+4}return e},tl=function(t,e,r,n,i,a,o,f){var h=n.length,l=r.extra,s=f&&f.length,u=th(l);Y(t,e,null!=o?0x2014b50:0x4034b50),e+=4,null!=o&&(t[e++]=20,t[e++]=r.os),t[e]=20,e+=2,t[e++]=r.flag<<1|(a<0&&8),t[e++]=i&&8,t[e++]=255&r.compression,t[e++]=r.compression>>8;var c=new Date(null==r.mtime?Date.now():r.mtime),d=c.getFullYear()-1980;if((d<0||d>119)&&U(10),Y(t,e,d<<25|c.getMonth()+1<<21|c.getDate()<<16|c.getHours()<<11|c.getMinutes()<<5|c.getSeconds()>>1),e+=4,-1!=a&&(Y(t,e,r.crc),Y(t,e+4,a<0?-a-2:a),Y(t,e+8,r.size)),Y(t,e+12,h),Y(t,e+14,u),e+=16,null!=o&&(Y(t,e,s),Y(t,e+6,r.attrs),Y(t,e+10,o),e+=14),t.set(n,e),e+=h,u)for(var v in l){var g=l[v],p=g.length;Y(t,e,+v),Y(t,e+2,p),t.set(g,e+4),e+=4+p}return s&&(t.set(f,e),e+=s),e},ts=function(t,e,r,n,i){Y(t,e,0x6054b50),Y(t,e+8,r),Y(t,e+10,r),Y(t,e+12,n),Y(t,e+16,i)},tu=function(){function t(t){this.filename=t,this.c=J(),this.size=0,this.compression=0}return t.prototype.process=function(t,e){this.ondata(null,t,e)},t.prototype.push=function(t,e){this.ondata||U(5),this.c.p(t),this.size+=t.length,e&&(this.crc=this.c.d()),this.process(t,e||!1)},t}(),tc=function(){function t(t,e){var r,n=this;e||(e={}),tu.call(this,t),this.d=new Z(e,function(t,e){n.ondata(null,t,e)}),this.compression=8,this.flag=1==(r=e.level)?3:r<6?2:+(9==r)}return t.prototype.process=function(t,e){try{this.d.push(t,e)}catch(t){this.ondata(t,null,e)}},t.prototype.push=function(t,e){tu.prototype.push.call(this,t,e)},t}(),td=function(){function t(t){this.ondata=t,this.u=[],this.d=1}return t.prototype.add=function(t){var e=this;if(this.ondata||U(5),2&this.d)this.ondata(U(4+(1&this.d)*8,0,1),null,!1);else{var r=ti(t.filename),i=r.length,a=t.comment,o=a&&ti(a),f=i!=t.filename.length||o&&a.length!=o.length,h=i+th(t.extra)+30;i>65535&&this.ondata(U(11,0,1),null,!1);var l=new n(h);tl(l,0,t,r,f,-1);var s=[l],u=function(){for(var t=0,r=s;t<r.length;t++){var n=r[t];e.ondata(null,n,!1)}s=[]},c=this.d;this.d=0;var d=this.u.length,v=H(t,{f:r,u:f,o:o,t:function(){t.terminate&&t.terminate()},r:function(){if(u(),c){var t=e.u[d+1];t?t.r():e.d=1}c=1}}),g=0;t.ondata=function(r,i,a){if(r)e.ondata(r,i,a),e.terminate();else if(g+=i.length,s.push(i),a){var o=new n(16);Y(o,0,0x8074b50),Y(o,4,t.crc),Y(o,8,g),Y(o,12,t.size),s.push(o),v.c=g,v.b=h+g+16,v.crc=t.crc,v.size=t.size,c&&v.r(),c=1}else c&&u()},this.u.push(v)}},t.prototype.end=function(){var t=this;2&this.d?this.ondata(U(4+(1&this.d)*8,0,1),null,!0):(this.d?this.e():this.u.push({r:function(){1&t.d&&(t.u.splice(-1,1),t.e())},t:function(){}}),this.d=3)},t.prototype.e=function(){for(var t=0,e=0,r=0,i=0,a=this.u;i<a.length;i++){var o=a[i];r+=46+o.f.length+th(o.extra)+(o.o?o.o.length:0)}for(var f=new n(r+22),h=0,l=this.u;h<l.length;h++){var o=l[h];tl(f,t,o,o.f,o.u,-o.c-2,e,o.o),t+=46+o.f.length+th(o.extra)+(o.o?o.o.length:0),e+=o.b}ts(f,t,this.u.length,r,e),this.ondata(null,f,!0),this.d=2},t.prototype.terminate=function(){for(var t=0,e=this.u;t<e.length;t++)e[t].t();this.d=2},t}();function tv(t,e){e||(e={});var r={},i=[];tt(t,"",r,e);var a=0,o=0;for(var f in r){var h=r[f],l=h[0],s=h[1],u=8*(0!=s.level),c=ti(f),d=c.length,v=s.comment,g=v&&ti(v),p=g&&g.length,w=th(s.extra);d>65535&&U(11);var b=u?W(l,s||{},0,0):l,y=b.length,m=J();m.p(l),i.push(H(s,{size:l.length,crc:m.d(),c:b,f:c,m:g,u:d!=f.length||g&&v.length!=p,o:a,compression:u})),a+=30+d+w+y,o+=76+2*(d+w)+(p||0)+y}for(var x=new n(o+22),T=a,E=o-a,A=0;A<i.length;++A){var c=i[A];tl(x,c.o,c,c.f,c.u,c.c.length);var k=30+c.f.length+th(c.extra);x.set(c.c,c.o+k),tl(x,a,c,c.f,c.u,c.c.length,c.o,c.m),a+=16+k+(c.m?c.m.length:0)}return ts(x,a,i.length,E,T),x}function tg(t,e){for(var r={},i=t.length-22;0x6054b50!=X(t,i);--i)(!i||t.length-i>65558)&&U(13);var a=Q(t,i+8);if(!a)return{};var o=X(t,i+16),f=0xffffffff==o||65535==a;if(f){var h=X(t,i-12);(f=0x6064b50==X(t,h))&&(a=X(t,h+32),o=X(t,h+48))}for(var l=e&&e.filter,s=0;s<a;++s){var u,c=to(t,o,f),d=c[0],v=c[1],g=c[2],p=c[3],w=c[4],b=c[5],y=b+30+Q(t,b+26)+Q(t,b+28);o=w,(!l||l({name:p,size:v,originalSize:g,compression:d}))&&(d?8==d?r[p]=C(t.subarray(y,y+v),{i:2},(u={out:new n(g)}).out,u&&u.dictionary):U(14,"unknown compression type "+d):r[p]=P(t,y,y+v))}return r}"function"==typeof queueMicrotask&&queueMicrotask},26572:(t,e,r)=>{r.d(e,{L:()=>F});let n=new TextDecoder,i=(t,e=0,r=t.length)=>n.decode(t.slice(e,r)),a=(t,e=0,r=t.length)=>t.slice(e,r).reduce((t,e)=>t+("0"+e.toString(16)).slice(-2),""),o=(t,e=0)=>{let r=t[e]+256*t[e+1];return r|(32768&r)*131070},f=(t,e=0)=>256*t[e]+t[e+1],h=(t,e=0)=>t[e]+256*t[e+1],l=(t,e=0)=>t[e]+256*t[e+1]+65536*t[e+2],s=(t,e=0)=>0x1000000*t[e]+65536*t[e+1]+256*t[e+2]+t[e+3],u=(t,e=0)=>t[e]+256*t[e+1]+65536*t[e+2]+0x1000000*t[e+3],c={readUInt16BE:f,readUInt16LE:h,readUInt32BE:s,readUInt32LE:u};function d(t,e,r,n){return r=r||0,c["readUInt"+e+(n?"BE":"LE")](t,r)}function v(t,e){let r=t[e];return 0===r?256:r}function g(t,e){let r=6+16*e;return{height:v(t,r+1),width:v(t,r)}}let p={validate(t){let e=h(t,0),r=h(t,4);return 0===e&&0!==r&&1===h(t,2)},calculate(t){let e=h(t,4),r=g(t,0);if(1===e)return r;let n=[r];for(let r=1;r<e;r+=1)n.push(g(t,r));return{height:r.height,images:n,width:r.width}}},w=/^GIF8[79]a/;function b(t,e,r=0,n=t.length){let a=r;for(;a<n;){let r=s(t,a);if(i(t,a+4,a+8)===e)return{offset:a,size:r};if(r<=0||a+r>n)break;a+=r}}let y={ICON:32,"ICN#":32,"icm#":16,icm4:16,icm8:16,"ics#":16,ics4:16,ics8:16,is32:16,s8mk:16,icp4:16,icl4:32,icl8:32,il32:32,l8mk:32,icp5:32,ic11:32,ich4:48,ich8:48,ih32:48,h8mk:48,icp6:64,ic12:32,it32:128,t8mk:128,ic07:128,ic08:256,ic13:256,ic09:512,ic14:512,ic10:1024};function m(t,e){let r=e+4;return[i(t,e,r),s(t,r)]}function x(t){let e=y[t];return{width:e,height:e,type:t}}let T=t=>({height:s(t,4),width:s(t,8)}),E="CgBI",A={P1:"pbm/ascii",P2:"pgm/ascii",P3:"ppm/ascii",P4:"pbm",P5:"pgm",P6:"ppm",P7:"pam",PF:"pfm"},k={default:t=>{let e=[];for(;t.length>0;){let r=t.shift();if("#"!==r[0]){e=r.split(" ");break}}if(2===e.length)return{height:Number.parseInt(e[1],10),width:Number.parseInt(e[0],10)};throw TypeError("Invalid PNM")},pam:t=>{let e={};for(;t.length>0;){let r=t.shift();if(r.length>16||(r.codePointAt(0)||0)>128)continue;let[n,i]=r.split(" ");if(n&&i&&(e[n.toLowerCase()]=Number.parseInt(i,10)),e.height&&e.width)break}if(e.height&&e.width)return{height:e.height,width:e.width};throw TypeError("Invalid PAM")}},B=/<svg\s([^"'>]|"[^"]*"|'[^']*')*>/,z=/\sheight=(["'])([^%]+?)\1/,M=/\sviewbox=(["'])(.+?)\1/i,S=/\swidth=(["'])([^%]+?)\1/,P={in:96,cm:37.79527559055118,em:16,ex:8,m:37.79527559055118*100,mm:37.79527559055118/10,pc:96/72/12,pt:96/72,px:1},I=RegExp(`^([0-9.]+(?:e\\d+)?)(${Object.keys(P).join("|")})?$`);function U(t){let e=I.exec(t);if(e)return Math.round(Number(e[1])*(P[e[2]]||1))}let C=new Set(["49492a00","4d4d002a"]);function N(t,e,r=0,n=t.length){for(let a=r;a<n;){let r=s(t,a);if(i(t,a+4,a+8)===e)return{offset:a,size:r};if(r<=0||a+r>n)break;a+=r}throw Error(`${e} box not found`)}let R={bmp:{validate:t=>"BM"===i(t,0,2),calculate:t=>({height:Math.abs(((t,e=0)=>t[e]+256*t[e+1]+65536*t[e+2]+(t[e+3]<<24))(t,22)),width:u(t,18)})},cur:{validate(t){let e=h(t,0),r=h(t,4);return 0===e&&0!==r&&2===h(t,2)},calculate:t=>p.calculate(t)},dds:{validate:t=>0x20534444===u(t,0),calculate:t=>({height:u(t,12),width:u(t,16)})},gif:{validate:t=>w.test(i(t,0,6)),calculate:t=>({height:h(t,8),width:h(t,6)})},heic:{validate:t=>{let e=b(t,"ftyp");return!!e&&["heic","heix","hevc","hevx","mif1","msf1"].includes(i(t,e.offset+8,e.offset+12))},calculate:t=>{let e=b(t,"meta");if(!e)throw TypeError("heic: meta box not found");let r=b(t,"iprp",e.offset+12,e.offset+e.size);if(!r)throw TypeError("heic: iprp box not found");let n=b(t,"ipco",r.offset+8,r.offset+r.size);if(!n)throw TypeError("heic: ipco box not found");let a=(function(t,e,r=0,n=t.length){let a=r,o=[];for(;a<n;){let r=s(t,a);if(i(t,a+4,a+8)===e&&o.push({offset:a,size:r}),r<=0||a+r>n)break;a+=r}return o})(t,"ispe",n.offset+8,n.offset+n.size).map(e=>({width:s(t,e.offset+12),height:s(t,e.offset+16)}));if(0===a.length)throw TypeError("heic: ispe box not found");let o=a[0];for(let t=1;t<a.length;t++){let e=a[t];e.width*e.height>o.width*o.height&&(o=e)}return o}},icns:{validate:t=>"icns"===i(t,0,4),calculate(t){let e=t.length,r=s(t,4),n=8,i=m(t,8),a=x(i[0]);if((n+=i[1])===r)return a;let o={height:a.height,images:[a],width:a.width};for(;n<r&&n<e;)a=x((i=m(t,n))[0]),n+=i[1],o.images.push(a);return o}},ico:p,j2c:{validate:t=>"ff4fff51"===a(t,0,4),calculate:t=>({height:s(t,12),width:s(t,8)})},jp2:{validate(t){let e=a(t,4,8),r=s(t,0);if("6a502020"!==e||r<1)return!1;let n=r+4,i=s(t,r);return"66747970"===a(t.slice(n,n+i),0,4)},calculate(t){let e=s(t,0),r=f(t,e+2),n=e+4+r;switch(a(t,n,n+4)){case"72726571":{var o;let e,r,i,a;return n=n+4+4+(e=(o=t.slice(n+4))[0],i=f(o,r=1+2*e),a=f(o,r=r+2+i*(2+e)),r+2+a*(16+e)),T(t.slice(n+8,n+24))}case"6a703268":return T(t.slice(n+8,n+24));default:throw TypeError("Unsupported header found: "+i(t,n,n+4))}}},jpg:{validate:t=>"ffd8"===a(t,0,2),calculate(t){let e,r;for(t=t.slice(4);t.length>0;){let h=f(t,0);"45786966"===a(t,2,6)&&(e=function(t,e){let r=t.slice(2,e),n=a(r,6,8),i="4d4d"===n;if(i||"4949"===n)return function(t,e){let r=d(t,16,14,e);for(let n=0;n<r;n++){let r=16+12*n,i=r+12;if(r>t.length)return;let a=t.slice(r,i);if(274===d(a,16,0,e)){if(3!==d(a,16,2,e)||1!==d(a,32,4,e))return;return d(a,16,8,e)}}}(r,i)}(t,h));var n,i,o=t;if(h>o.length)throw TypeError("Corrupt JPG, exceeded buffer limits");if(255!==o[h])throw TypeError("Invalid JPG, marker table corrupted");if(192===(r=t[h+1])||193===r||194===r){let r={height:f(n=t,i=h+5),width:f(n,i+2)};if(!e)return r;return{height:r.height,orientation:e,width:r.width}}t=t.slice(h+2)}throw TypeError("Invalid JPG, no size found")}},ktx:{validate:t=>"KTX 11"===i(t,1,7),calculate:t=>({height:u(t,40),width:u(t,36)})},png:{validate(t){if("PNG\r\n\x1a\n"===i(t,1,8)){let e=i(t,12,16);if(e===E&&(e=i(t,28,32)),"IHDR"!==e)throw TypeError("Invalid PNG");return!0}return!1},calculate:t=>i(t,12,16)===E?{height:s(t,36),width:s(t,32)}:{height:s(t,20),width:s(t,16)}},pnm:{validate:t=>i(t,0,2)in A,calculate(t){let e=A[i(t,0,2)],r=i(t,3).split(/[\n\r]+/);return(k[e]||k.default)(r)}},psd:{validate:t=>"8BPS"===i(t,0,4),calculate:t=>({height:s(t,14),width:s(t,18)})},svg:{validate:t=>B.test(i(t,0,1e3)),calculate(t){let e=i(t).match(B);if(e){var r,n;let t,i,a,o,f=(i=(n=e[0]).match(S),a=n.match(z),o=n.match(M),{height:a&&U(a[2]),viewbox:o&&{height:U((t=o[2].split(" "))[3]),width:U(t[2])},width:i&&U(i[2])});if(f.width&&f.height)return{height:f.height,width:f.width};if(f.viewbox){let t;return t=(r=f.viewbox).width/r.height,f.width?{height:Math.floor(f.width/t),width:f.width}:f.height?{height:f.height,width:Math.floor(f.height*t)}:{height:r.height,width:r.width}}}throw TypeError("Invalid SVG")}},tga:{validate:t=>0===h(t,0)&&0===h(t,4),calculate:t=>({height:h(t,14),width:h(t,12)})},tiff:{validate:t=>C.has(a(t,0,4)),calculate(t){let e,r,n,a,o="BE"===("II"===(e=i(t,0,2))?"LE":"MM"===e?"BE":void 0),f=function(t,e){let r={},n=t;for(;n&&n.length>0;){let t=d(n,16,0,e),i=d(n,16,2,e),a=d(n,32,4,e);if(0===t)break;1===a&&(3===i||4===i)&&(r[t]=function(t,e){let r=d(t,16,8,e);return(d(t,16,10,e)<<16)+r}(n,e)),n=function(t){if(t.length>24)return t.slice(12)}(n)}return r}((r=d(t,32,4,o),r+(n=1024)>(a=t.length)&&(n=a-r-10),t.slice(r+2,r+2+n)),o),h=f[256],l=f[257];if(!h||!l)throw TypeError("Invalid Tiff. Missing tags");return{height:l,width:h}}},webp:{validate(t){let e="RIFF"===i(t,0,4),r="WEBP"===i(t,8,12),n="VP8"===i(t,12,15);return e&&r&&n},calculate(t){var e,r,n;let f=i(t,12,16);if(t=t.slice(20,30),"VP8X"===f){let r=t[0];if((192&r)==0&&(1&r)==0)return{height:1+l(e=t,7),width:1+l(e,4)};throw TypeError("Invalid WebP")}if("VP8 "===f&&47!==t[0])return{height:16383&o(r=t,8),width:16383&o(r,6)};let h=a(t,3,6);if("VP8L"===f&&"9d012a"!==h)return{height:1+((15&(n=t)[4])<<10|n[3]<<2|(192&n[2])>>6),width:1+((63&n[2])<<8|n[1])};throw TypeError("Invalid WebP")}},avif:{validate:t=>"avif"===i(t,8,12),calculate:t=>{let e=N(t,"meta"),r=N(t,"iprp",e.offset+12,e.offset+e.size),n=N(t,"ipco",r.offset+8,r.offset+r.size),i=N(t,"ispe",n.offset+8,n.offset+n.size);return{width:s(t,i.offset+12),height:s(t,i.offset+16)}}}},D=Object.keys(R),V={56:"psd",66:"bmp",68:"dds",71:"gif",73:"tiff",77:"tiff",82:"webp",105:"icns",137:"png",255:"jpg"};function F(t){if(!(t instanceof Uint8Array))throw TypeError("Input should be a Uint8Array");let e=function(t){let e=t[0];if(e in V){let r=V[e];if(r&&R[r].validate(t))return r}return D.find(e=>R[e].validate(t))}(t);if(void 0!==e&&e in R){let r=R[e].calculate(t);if(void 0!==r)return r.type=e,r}throw TypeError(`Unsupported file type: ${e}`)}},49500:(t,e,r)=>{function n(t,e,r){if(!r(e))throw TypeError(`Expected ${t} type but got ${typeof r}.`)}function i(t){return t instanceof ArrayBuffer}r.d(e,{Fo:()=>x,QI:()=>w});let a=/^data:([\w-]+\/[\w-]+)?;base64,/;function o(t){return t instanceof Blob}function f(t){return t instanceof DataView}function h(t){try{return"pipe"in t&&"function"==typeof t.pipe}catch{return!1}}async function l(t){var e;n("NodeStream",t,h);let r=await (n("NodeStream",e=t,h),new Promise((t,r)=>{let n=[];e.on("data",t=>{n.push(t)}),e.once("error",r),e.once("end",()=>{t(n)})})),i=0;for(let t of r)i+=t.length;let a=new Uint8Array(i),o=0;for(let t of r)a.set(t,o),o+=t.length;return a}function s(t){return Array.isArray(t)&&(0===t.length||"number"==typeof t[0])}function u(t){return t instanceof ReadableStream}async function c(t){return globalThis.Bun?.readableStreamToArrayBuffer?(n("ReadableStream",t,u),globalThis.Bun.readableStreamToArrayBuffer(t)):(await d(t)).arrayBuffer()}async function d(t,e){if(globalThis.Bun?.readableStreamToBlob)return n("ReadableStream",t,u),globalThis.Bun.readableStreamToBlob(t);let r=t.getReader(),i=[];for(;;){let{done:t,value:e}=await r.read();if(t)break;i.push(e)}return new Blob(i,e)}function v(t){return t instanceof Response}async function g(t){return n("Response",t,v),new Uint8Array(await t.arrayBuffer())}function p(t){return"string"==typeof t}function w(t){return n("Text",t,p),new Uint8Array(new TextEncoder().encode(t))}function b(t){return t instanceof Uint8Array}let y=[["Uint8Array",b],["ArrayBuffer",i],["Blob",o],["DataView",f],["ReadableStream",u],["Response",v],["NodeStream",h],["NumberArray",s],["Base64",function(t){return"string"==typeof t&&a.test(t)}],["Text",p]],m={ArrayBuffer:function(t){return n("ArrayBuffer",t,i),new Uint8Array(t)},Base64:function(t,e){return function(t,e){var r;let n;if("string"!=typeof t)throw TypeError("base64 input must be a string");let i=e?.urlSafe?(r=t).replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="):t,o=i.match(a);return o&&(n=o[1],i=i.slice(o[0].length)),{bytes:Uint8Array.from(globalThis.atob(i),t=>t.codePointAt(0)),type:n}}(t,e).bytes},Blob:function(t){return n("Blob",t,o),t.arrayBuffer().then(t=>new Uint8Array(t))},DataView:function(t){return n("DataView",t,f),new Uint8Array(t.buffer,t.byteOffset,t.byteLength)},NodeStream:l,NumberArray:function(t){return n("NumberArray",t,s),new Uint8Array(t)},ReadableStream:async function t(t){return new Uint8Array(await c(t))},Response:g,Text:w,Uint8Array:t=>(n("Uint8Array",t,b),t)},x=t=>(function(t,e){let r=function(t){for(let[e,r]of y)if(r(t))return e;throw TypeError(`Unknown data type: ${typeof t}.`)}(t),n=e[r];if(void 0===n)throw Error(`Conversion from ${r} is not supported.`);return n(t)})(t,m)}}]);