@mappedin/react-native-sdk 5.41.9 → 5.41.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ import{a as u,i as hn}from"./chunk-CBP3KWNP.js";hn();var ln={},Qn=u(function(n,r,t,e,i){var a=new Worker(ln[r]||(ln[r]=URL.createObjectURL(new Blob([n+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return a.onmessage=function(o){var f=o.data,v=f.$e$;if(v){var s=new Error(v[0]);s.code=v[1],s.stack=v[2],i(s,null)}else i(null,f)},a.postMessage(t,e),a},"wk"),D=Uint8Array,q=Uint16Array,gr=Uint32Array,yr=new D([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]),wr=new D([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]),Ur=new D([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),xn=u(function(n,r){for(var t=new q(31),e=0;e<31;++e)t[e]=r+=1<<n[e-1];for(var i=new gr(t[30]),e=1;e<30;++e)for(var a=t[e];a<t[e+1];++a)i[a]=a-t[e]<<5|e;return[t,i]},"freb"),zn=xn(yr,2),dr=zn[0],Or=zn[1];dr[28]=258,Or[258]=28;var An=xn(wr,0),Mn=An[0],Yr=An[1],Dr=new q(32768);for(E=0;E<32768;++E)tr=(E&43690)>>>1|(E&21845)<<1,tr=(tr&52428)>>>2|(tr&13107)<<2,tr=(tr&61680)>>>4|(tr&3855)<<4,Dr[E]=((tr&65280)>>>8|(tr&255)<<8)>>>1;var tr,E,X=u(function(n,r,t){for(var e=n.length,i=0,a=new q(r);i<e;++i)n[i]&&++a[n[i]-1];var o=new q(r);for(i=0;i<r;++i)o[i]=o[i-1]+a[i-1]<<1;var f;if(t){f=new q(1<<r);var v=15-r;for(i=0;i<e;++i)if(n[i])for(var s=i<<4|n[i],h=r-n[i],c=o[n[i]-1]++<<h,y=c|(1<<h)-1;c<=y;++c)f[Dr[c]>>>v]=s}else for(f=new q(e),i=0;i<e;++i)n[i]&&(f[i]=Dr[o[n[i]-1]++]>>>15-n[i]);return f},"hMap"),ir=new D(288);for(E=0;E<144;++E)ir[E]=8;var E;for(E=144;E<256;++E)ir[E]=9;var E;for(E=256;E<280;++E)ir[E]=7;var E;for(E=280;E<288;++E)ir[E]=8;var E,cr=new D(32);for(E=0;E<32;++E)cr[E]=5;var E,Tn=X(ir,9,0),Un=X(ir,9,1),Dn=X(cr,5,0),Sn=X(cr,5,1),Zr=u(function(n){for(var r=n[0],t=1;t<n.length;++t)n[t]>r&&(r=n[t]);return r},"max"),V=u(function(n,r,t){var e=r/8|0;return(n[e]|n[e+1]<<8)>>(r&7)&t},"bits"),kr=u(function(n,r){var t=r/8|0;return(n[t]|n[t+1]<<8|n[t+2]<<16)>>(r&7)},"bits16"),Sr=u(function(n){return(n+7)/8|0},"shft"),d=u(function(n,r,t){(r==null||r<0)&&(r=0),(t==null||t>n.length)&&(t=n.length);var e=new(n.BYTES_PER_ELEMENT==2?q:n.BYTES_PER_ELEMENT==4?gr:D)(t-r);return e.set(n.subarray(r,t)),e},"slc"),at={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14},Cn=["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"],g=u(function(n,r,t){var e=new Error(r||Cn[n]);if(e.code=n,Error.captureStackTrace&&Error.captureStackTrace(e,g),!t)throw e;return e},"err"),Cr=u(function(n,r,t){var e=n.length;if(!e||t&&t.f&&!t.l)return r||new D(0);var i=!r||t,a=!t||t.i;t||(t={}),r||(r=new D(e*3));var o=u(function(Ir){var Tr=r.length;if(Ir>Tr){var vr=new D(Math.max(Tr*2,Ir));vr.set(r),r=vr}},"cbuf"),f=t.f||0,v=t.p||0,s=t.b||0,h=t.l,c=t.d,y=t.m,z=t.n,w=e*8;do{if(!h){f=V(n,v,1);var x=V(n,v+1,3);if(v+=3,x)if(x==1)h=Un,c=Sn,y=9,z=5;else if(x==2){var U=V(n,v,31)+257,m=V(n,v+10,15)+4,B=U+V(n,v+5,31)+1;v+=14;for(var C=new D(B),M=new D(19),p=0;p<m;++p)M[Ur[p]]=V(n,v+p*3,7);v+=m*3;for(var P=Zr(M),S=(1<<P)-1,R=X(M,P,1),p=0;p<B;){var O=R[V(n,v,S)];v+=O&15;var l=O>>>4;if(l<16)C[p++]=l;else{var k=0,F=0;for(l==16?(F=3+V(n,v,3),v+=2,k=C[p-1]):l==17?(F=3+V(n,v,7),v+=3):l==18&&(F=11+V(n,v,127),v+=7);F--;)C[p++]=k}}var L=C.subarray(0,U),Z=C.subarray(U);y=Zr(L),z=Zr(Z),h=X(L,y,1),c=X(Z,z,1)}else g(1);else{var l=Sr(v)+4,A=n[l-4]|n[l-3]<<8,T=l+A;if(T>e){a&&g(0);break}i&&o(s+A),r.set(n.subarray(l,T),s),t.b=s+=A,t.p=v=T*8,t.f=f;continue}if(v>w){a&&g(0);break}}i&&o(s+131072);for(var G=(1<<y)-1,H=(1<<z)-1,j=v;;j=v){var k=h[kr(n,v)&G],Q=k>>>4;if(v+=k&15,v>w){a&&g(0);break}if(k||g(2),Q<256)r[s++]=Q;else if(Q==256){j=v,h=null;break}else{var Y=Q-254;if(Q>264){var p=Q-257,_=yr[p];Y=V(n,v,(1<<_)-1)+dr[p],v+=_}var rr=c[kr(n,v)&H],J=rr>>>4;rr||g(3),v+=rr&15;var Z=Mn[J];if(J>3){var _=wr[J];Z+=kr(n,v)&(1<<_)-1,v+=_}if(v>w){a&&g(0);break}i&&o(s+131072);for(var $=s+Y;s<$;s+=4)r[s]=r[s-Z],r[s+1]=r[s+1-Z],r[s+2]=r[s+2-Z],r[s+3]=r[s+3-Z];s=$}}t.l=h,t.p=j,t.b=s,t.f=f,h&&(f=1,t.m=y,t.d=c,t.n=z)}while(!f);return s==r.length?r:d(r,0,s)},"inflt"),nr=u(function(n,r,t){t<<=r&7;var e=r/8|0;n[e]|=t,n[e+1]|=t>>>8},"wbits"),hr=u(function(n,r,t){t<<=r&7;var e=r/8|0;n[e]|=t,n[e+1]|=t>>>8,n[e+2]|=t>>>16},"wbits16"),Gr=u(function(n,r){for(var t=[],e=0;e<n.length;++e)n[e]&&t.push({s:e,f:n[e]});var i=t.length,a=t.slice();if(!i)return[er,0];if(i==1){var o=new D(t[0].s+1);return o[t[0].s]=1,[o,1]}t.sort(function(B,C){return B.f-C.f}),t.push({s:-1,f:25001});var f=t[0],v=t[1],s=0,h=1,c=2;for(t[0]={s:-1,f:f.f+v.f,l:f,r:v};h!=i-1;)f=t[t[s].f<t[c].f?s++:c++],v=t[s!=h&&t[s].f<t[c].f?s++:c++],t[h++]={s:-1,f:f.f+v.f,l:f,r:v};for(var y=a[0].s,e=1;e<i;++e)a[e].s>y&&(y=a[e].s);var z=new q(y+1),w=Lr(t[h-1],z,0);if(w>r){var e=0,x=0,l=w-r,A=1<<l;for(a.sort(function(C,M){return z[M.s]-z[C.s]||C.f-M.f});e<i;++e){var T=a[e].s;if(z[T]>r)x+=A-(1<<w-z[T]),z[T]=r;else break}for(x>>>=l;x>0;){var U=a[e].s;z[U]<r?x-=1<<r-z[U]++-1:++e}for(;e>=0&&x;--e){var m=a[e].s;z[m]==r&&(--z[m],++x)}w=r}return[new D(z),w]},"hTree"),Lr=u(function(n,r,t){return n.s==-1?Math.max(Lr(n.l,r,t+1),Lr(n.r,r,t+1)):r[n.s]=t},"ln"),Wr=u(function(n){for(var r=n.length;r&&!n[--r];);for(var t=new q(++r),e=0,i=n[0],a=1,o=u(function(v){t[e++]=v},"w"),f=1;f<=r;++f)if(n[f]==i&&f!=r)++a;else{if(!i&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(i),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(i);a=1,i=n[f]}return[t.subarray(0,e),r]},"lc"),lr=u(function(n,r){for(var t=0,e=0;e<r.length;++e)t+=n[e]*r[e];return t},"clen"),Pr=u(function(n,r,t){var e=t.length,i=Sr(r+2);n[i]=e&255,n[i+1]=e>>>8,n[i+2]=n[i]^255,n[i+3]=n[i+1]^255;for(var a=0;a<e;++a)n[i+a+4]=t[a];return(i+4+e)*8},"wfblk"),jr=u(function(n,r,t,e,i,a,o,f,v,s,h){nr(r,h++,t),++i[256];for(var c=Gr(i,15),y=c[0],z=c[1],w=Gr(a,15),x=w[0],l=w[1],A=Wr(y),T=A[0],U=A[1],m=Wr(x),B=m[0],C=m[1],M=new q(19),p=0;p<T.length;++p)M[T[p]&31]++;for(var p=0;p<B.length;++p)M[B[p]&31]++;for(var P=Gr(M,7),S=P[0],R=P[1],O=19;O>4&&!S[Ur[O-1]];--O);var k=s+5<<3,F=lr(i,ir)+lr(a,cr)+o,L=lr(i,y)+lr(a,x)+o+14+3*O+lr(M,S)+(2*M[16]+3*M[17]+7*M[18]);if(k<=F&&k<=L)return Pr(r,h,n.subarray(v,v+s));var Z,G,H,j;if(nr(r,h,1+(L<F)),h+=2,L<F){Z=X(y,z,0),G=y,H=X(x,l,0),j=x;var Q=X(S,R,0);nr(r,h,U-257),nr(r,h+5,C-1),nr(r,h+10,O-4),h+=14;for(var p=0;p<O;++p)nr(r,h+3*p,S[Ur[p]]);h+=3*O;for(var Y=[T,B],_=0;_<2;++_)for(var rr=Y[_],p=0;p<rr.length;++p){var J=rr[p]&31;nr(r,h,Q[J]),h+=S[J],J>15&&(nr(r,h,rr[p]>>>5&127),h+=rr[p]>>>12)}}else Z=Tn,G=ir,H=Dn,j=cr;for(var p=0;p<f;++p)if(e[p]>255){var J=e[p]>>>18&31;hr(r,h,Z[J+257]),h+=G[J+257],J>7&&(nr(r,h,e[p]>>>23&31),h+=yr[J]);var $=e[p]&31;hr(r,h,H[$]),h+=j[$],$>3&&(hr(r,h,e[p]>>>5&8191),h+=wr[$])}else hr(r,h,Z[e[p]]),h+=G[e[p]];return hr(r,h,Z[256]),h+G[256]},"wblk"),En=new gr([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),er=new D(0),Fn=u(function(n,r,t,e,i,a){var o=n.length,f=new D(e+o+5*(1+Math.ceil(o/7e3))+i),v=f.subarray(e,f.length-i),s=0;if(!r||o<8)for(var h=0;h<=o;h+=65535){var c=h+65535;c>=o&&(v[s>>3]=a),s=Pr(v,s+1,n.subarray(h,c))}else{for(var y=En[r-1],z=y>>>13,w=y&8191,x=(1<<t)-1,l=new q(32768),A=new q(x+1),T=Math.ceil(t/3),U=2*T,m=u(function(qr){return(n[qr]^n[qr+1]<<T^n[qr+2]<<U)&x},"hsh"),B=new gr(25e3),C=new q(288),M=new q(32),p=0,P=0,h=0,S=0,R=0,O=0;h<o;++h){var k=m(h),F=h&32767,L=A[k];if(l[F]=L,A[k]=F,R<=h){var Z=o-h;if((p>7e3||S>24576)&&Z>423){s=jr(n,v,0,B,C,M,P,S,O,h-O,s),S=p=P=0,O=h;for(var G=0;G<286;++G)C[G]=0;for(var G=0;G<30;++G)M[G]=0}var H=2,j=0,Q=w,Y=F-L&32767;if(Z>2&&k==m(h-Y))for(var _=Math.min(z,Z)-1,rr=Math.min(32767,h),J=Math.min(258,Z);Y<=rr&&--Q&&F!=L;){if(n[h+H]==n[h+H-Y]){for(var $=0;$<J&&n[h+$]==n[h+$-Y];++$);if($>H){if(H=$,j=Y,$>_)break;for(var Ir=Math.min(Y,$-2),Tr=0,G=0;G<Ir;++G){var vr=h-Y+G+32768&32767,Kn=l[vr],sn=vr-Kn+32768&32767;sn>Tr&&(Tr=sn,L=vr)}}}F=L,L=l[F],Y+=F-L+32768&32767}if(j){B[S++]=268435456|Or[H]<<18|Yr[j];var un=Or[H]&31,vn=Yr[j]&31;P+=yr[un]+wr[vn],++C[257+un],++M[vn],R=h+H,++p}else B[S++]=n[h],++C[n[h]]}}s=jr(n,v,a,B,C,M,P,S,O,h-O,s),!a&&s&7&&(s=Pr(v,s+1,er))}return d(f,0,e+Sr(s)+i)},"dflt"),In=function(){for(var n=new Int32Array(256),r=0;r<256;++r){for(var t=r,e=9;--e;)t=(t&1&&-306674912)^t>>>1;n[r]=t}return n}(),mr=u(function(){var n=-1;return{p:u(function(r){for(var t=n,e=0;e<r.length;++e)t=In[t&255^r[e]]^t>>>8;n=t},"p"),d:u(function(){return~n},"d")}},"crc"),br=u(function(){var n=1,r=0;return{p:u(function(t){for(var e=n,i=r,a=t.length|0,o=0;o!=a;){for(var f=Math.min(o+2655,a);o<f;++o)i+=e+=t[o];e=(e&65535)+15*(e>>16),i=(i&65535)+15*(i>>16)}n=e,r=i},"p"),d:u(function(){return n%=65521,r%=65521,(n&255)<<24|n>>>8<<16|(r&255)<<8|r>>>8},"d")}},"adler"),ur=u(function(n,r,t,e,i){return Fn(n,r.level==null?6:r.level,r.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(n.length)))*1.5):12+r.mem,t,e,!i)},"dopt"),Er=u(function(n,r){var t={};for(var e in n)t[e]=n[e];for(var e in r)t[e]=r[e];return t},"mrg"),cn=u(function(n,r,t){for(var e=n(),i=n.toString(),a=i.slice(i.indexOf("[")+1,i.lastIndexOf("]")).replace(/\s+/g,"").split(","),o=0;o<e.length;++o){var f=e[o],v=a[o];if(typeof f=="function"){r+=";"+v+"=";var s=f.toString();if(f.prototype)if(s.indexOf("[native code]")!=-1){var h=s.indexOf(" ",8)+1;r+=s.slice(h,s.indexOf("(",h))}else{r+=s;for(var c in f.prototype)r+=";"+v+".prototype."+c+"="+f.prototype[c].toString()}else r+=s}else t[v]=f}return[r,t]},"wcln"),Br=[],Vn=u(function(n){var r=[];for(var t in n)n[t].buffer&&r.push((n[t]=new n[t].constructor(n[t])).buffer);return r},"cbfs"),Bn=u(function(n,r,t,e){var i;if(!Br[t]){for(var a="",o={},f=n.length-1,v=0;v<f;++v)i=cn(n[v],a,o),a=i[0],o=i[1];Br[t]=cn(n[f],a,o)}var s=Er({},Br[t][1]);return Qn(Br[t][0]+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+r.toString()+"}",t,s,Vn(s),e)},"wrkr"),xr=u(function(){return[D,q,gr,yr,wr,Ur,dr,Mn,Un,Sn,Dr,Cn,X,Zr,V,kr,Sr,d,g,Cr,Fr,fr,_r]},"bInflt"),zr=u(function(){return[D,q,gr,yr,wr,Ur,Or,Yr,Tn,ir,Dn,cr,Dr,En,er,X,nr,hr,Gr,Lr,Wr,lr,Pr,jr,Sr,d,Fn,ur,$r,fr]},"bDflt"),Zn=u(function(){return[rn,tn,I,mr,In]},"gze"),kn=u(function(){return[nn,Ln]},"guze"),Gn=u(function(){return[en,I,br]},"zle"),On=u(function(){return[Pn]},"zule"),fr=u(function(n){return postMessage(n,[n.buffer])},"pbf"),_r=u(function(n){return n&&n.size&&new D(n.size)},"gu8"),Ar=u(function(n,r,t,e,i,a){var o=Bn(t,e,i,function(f,v){o.terminate(),a(f,v)});return o.postMessage([n,r],r.consume?[n.buffer]:[]),function(){o.terminate()}},"cbify"),b=u(function(n){return n.ondata=function(r,t){return postMessage([r,t],[r.buffer])},function(r){return n.push(r.data[0],r.data[1])}},"astrm"),Mr=u(function(n,r,t,e,i){var a,o=Bn(n,e,i,function(f,v){f?(o.terminate(),r.ondata.call(r,f)):(v[1]&&o.terminate(),r.ondata.call(r,f,v[0],v[1]))});o.postMessage(t),r.push=function(f,v){r.ondata||g(5),a&&r.ondata(g(4,0,1),null,!!v),o.postMessage([f,a=v],[f.buffer])},r.terminate=function(){o.terminate()}},"astrmify"),W=u(function(n,r){return n[r]|n[r+1]<<8},"b2"),N=u(function(n,r){return(n[r]|n[r+1]<<8|n[r+2]<<16|n[r+3]<<24)>>>0},"b4"),Hr=u(function(n,r){return N(n,r)+N(n,r+4)*4294967296},"b8"),I=u(function(n,r,t){for(;t;++r)n[r]=t,t>>>=8},"wbytes"),rn=u(function(n,r){var t=r.filename;if(n[0]=31,n[1]=139,n[2]=8,n[8]=r.level<2?4:r.level==9?2:0,n[9]=3,r.mtime!=0&&I(n,4,Math.floor(new Date(r.mtime||Date.now())/1e3)),t){n[3]=8;for(var e=0;e<=t.length;++e)n[e+10]=t.charCodeAt(e)}},"gzh"),nn=u(function(n){(n[0]!=31||n[1]!=139||n[2]!=8)&&g(6,"invalid gzip data");var r=n[3],t=10;r&4&&(t+=n[10]|(n[11]<<8)+2);for(var e=(r>>3&1)+(r>>4&1);e>0;e-=!n[t++]);return t+(r&2)},"gzs"),Ln=u(function(n){var r=n.length;return(n[r-4]|n[r-3]<<8|n[r-2]<<16|n[r-1]<<24)>>>0},"gzl"),tn=u(function(n){return 10+(n.filename&&n.filename.length+1||0)},"gzhl"),en=u(function(n,r){var t=r.level,e=t==0?0:t<6?1:t==9?3:2;n[0]=120,n[1]=e<<6|(e?32-2*e:1)},"zlh"),Pn=u(function(n){((n[0]&15)!=8||n[0]>>>4>7||(n[0]<<8|n[1])%31)&&g(6,"invalid zlib data"),n[1]&32&&g(6,"invalid zlib data: preset dictionaries not supported")},"zlv");function an(n,r){return!r&&typeof n=="function"&&(r=n,n={}),this.ondata=r,n}u(an,"AsyncCmpStrm");var ar=function(){function n(r,t){!t&&typeof r=="function"&&(t=r,r={}),this.ondata=t,this.o=r||{}}return u(n,"Deflate"),n.prototype.p=function(r,t){this.ondata(ur(r,this.o,0,0,!t),t)},n.prototype.push=function(r,t){this.ondata||g(5),this.d&&g(4),this.d=t,this.p(r,t||!1)},n}();var Xn=function(){function n(r,t){Mr([zr,function(){return[b,ar]}],this,an.call(this,r,t),function(e){var i=new ar(e.data);onmessage=b(i)},6)}return u(n,"AsyncDeflate"),n}();function dn(n,r,t){return t||(t=r,r={}),typeof t!="function"&&g(7),Ar(n,r,[zr],function(e){return fr($r(e.data[0],e.data[1]))},0,t)}u(dn,"deflate");function $r(n,r){return ur(n,r||{},0,0)}u($r,"deflateSync");var K=function(){function n(r){this.s={},this.p=new D(0),this.ondata=r}return u(n,"Inflate"),n.prototype.e=function(r){this.ondata||g(5),this.d&&g(4);var t=this.p.length,e=new D(t+r.length);e.set(this.p),e.set(r,t),this.p=e},n.prototype.c=function(r){this.d=this.s.i=r||!1;var t=this.s.b,e=Cr(this.p,this.o,this.s);this.ondata(d(e,t,this.s.b),this.d),this.o=d(e,this.s.b-32768),this.s.b=this.o.length,this.p=d(this.p,this.s.p/8|0),this.s.p&=7},n.prototype.push=function(r,t){this.e(r),this.c(t)},n}();var Nn=function(){function n(r){this.ondata=r,Mr([xr,function(){return[b,K]}],this,0,function(){var t=new K;onmessage=b(t)},7)}return u(n,"AsyncInflate"),n}();function Rn(n,r,t){return t||(t=r,r={}),typeof t!="function"&&g(7),Ar(n,r,[xr],function(e){return fr(Fr(e.data[0],_r(e.data[1])))},1,t)}u(Rn,"inflate");function Fr(n,r){return Cr(n,r)}u(Fr,"inflateSync");var pn=function(){function n(r,t){this.c=mr(),this.l=0,this.v=1,ar.call(this,r,t)}return u(n,"Gzip"),n.prototype.push=function(r,t){ar.prototype.push.call(this,r,t)},n.prototype.p=function(r,t){this.c.p(r),this.l+=r.length;var e=ur(r,this.o,this.v&&tn(this.o),t&&8,!t);this.v&&(rn(e,this.o),this.v=0),t&&(I(e,e.length-8,this.c.d()),I(e,e.length-4,this.l)),this.ondata(e,t)},n}();var ot=function(){function n(r,t){Mr([zr,Zn,function(){return[b,ar,pn]}],this,an.call(this,r,t),function(e){var i=new pn(e.data);onmessage=b(i)},8)}return u(n,"AsyncGzip"),n}();function ft(n,r,t){return t||(t=r,r={}),typeof t!="function"&&g(7),Ar(n,r,[zr,Zn,function(){return[gn]}],function(e){return fr(gn(e.data[0],e.data[1]))},2,t)}u(ft,"gzip");function gn(n,r){r||(r={});var t=mr(),e=n.length;t.p(n);var i=ur(n,r,tn(r),8),a=i.length;return rn(i,r),I(i,a-8,t.d()),I(i,a-4,e),i}u(gn,"gzipSync");var Jr=function(){function n(r){this.v=1,K.call(this,r)}return u(n,"Gunzip"),n.prototype.push=function(r,t){if(K.prototype.e.call(this,r),this.v){var e=this.p.length>3?nn(this.p):4;if(e>=this.p.length&&!t)return;this.p=this.p.subarray(e),this.v=0}t&&(this.p.length<8&&g(6,"invalid gzip data"),this.p=this.p.subarray(0,-8)),K.prototype.c.call(this,t)},n}();var bn=function(){function n(r){this.ondata=r,Mr([xr,kn,function(){return[b,K,Jr]}],this,0,function(){var t=new Jr;onmessage=b(t)},9)}return u(n,"AsyncGunzip"),n}();function _n(n,r,t){return t||(t=r,r={}),typeof t!="function"&&g(7),Ar(n,r,[xr,kn,function(){return[Kr]}],function(e){return fr(Kr(e.data[0]))},3,t)}u(_n,"gunzip");function Kr(n,r){return Cr(n.subarray(nn(n),-8),r||new D(Ln(n)))}u(Kr,"gunzipSync");var yn=function(){function n(r,t){this.c=br(),this.v=1,ar.call(this,r,t)}return u(n,"Zlib"),n.prototype.push=function(r,t){ar.prototype.push.call(this,r,t)},n.prototype.p=function(r,t){this.c.p(r);var e=ur(r,this.o,this.v&&2,t&&4,!t);this.v&&(en(e,this.o),this.v=0),t&&I(e,e.length-4,this.c.d()),this.ondata(e,t)},n}();var st=function(){function n(r,t){Mr([zr,Gn,function(){return[b,ar,yn]}],this,an.call(this,r,t),function(e){var i=new yn(e.data);onmessage=b(i)},10)}return u(n,"AsyncZlib"),n}();function ut(n,r,t){return t||(t=r,r={}),typeof t!="function"&&g(7),Ar(n,r,[zr,Gn,function(){return[wn]}],function(e){return fr(wn(e.data[0],e.data[1]))},4,t)}u(ut,"zlib");function wn(n,r){r||(r={});var t=br();t.p(n);var e=ur(n,r,2,4);return en(e,r),I(e,e.length-4,t.d()),e}u(wn,"zlibSync");var Qr=function(){function n(r){this.v=1,K.call(this,r)}return u(n,"Unzlib"),n.prototype.push=function(r,t){if(K.prototype.e.call(this,r),this.v){if(this.p.length<2&&!t)return;this.p=this.p.subarray(2),this.v=0}t&&(this.p.length<4&&g(6,"invalid zlib data"),this.p=this.p.subarray(0,-4)),K.prototype.c.call(this,t)},n}();var rt=function(){function n(r){this.ondata=r,Mr([xr,On,function(){return[b,K,Qr]}],this,0,function(){var t=new Qr;onmessage=b(t)},11)}return u(n,"AsyncUnzlib"),n}();function nt(n,r,t){return t||(t=r,r={}),typeof t!="function"&&g(7),Ar(n,r,[xr,On,function(){return[Vr]}],function(e){return fr(Vr(e.data[0],_r(e.data[1])))},5,t)}u(nt,"unzlib");function Vr(n,r){return Cr((Pn(n),n.subarray(2,-4)),r)}u(Vr,"unzlibSync");var tt=function(){function n(r){this.G=Jr,this.I=K,this.Z=Qr,this.ondata=r}return u(n,"Decompress"),n.prototype.push=function(r,t){if(this.ondata||g(5),this.s)this.s.push(r,t);else{if(this.p&&this.p.length){var e=new D(this.p.length+r.length);e.set(this.p),e.set(r,this.p.length)}else this.p=r;if(this.p.length>2){var i=this,a=u(function(){i.ondata.apply(i,arguments)},"cb");this.s=this.p[0]==31&&this.p[1]==139&&this.p[2]==8?new this.G(a):(this.p[0]&15)!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(a):new this.Z(a),this.s.push(this.p,t),this.p=null}}},n}();var vt=function(){function n(r){this.G=bn,this.I=Nn,this.Z=rt,this.ondata=r}return u(n,"AsyncDecompress"),n.prototype.push=function(r,t){tt.prototype.push.call(this,r,t)},n}();function ht(n,r,t){return t||(t=r,r={}),typeof t!="function"&&g(7),n[0]==31&&n[1]==139&&n[2]==8?_n(n,r,t):(n[0]&15)!=8||n[0]>>4>7||(n[0]<<8|n[1])%31?Rn(n,r,t):nt(n,r,t)}u(ht,"decompress");function lt(n,r){return n[0]==31&&n[1]==139&&n[2]==8?Kr(n,r):(n[0]&15)!=8||n[0]>>4>7||(n[0]<<8|n[1])%31?Fr(n,r):Vr(n,r)}u(lt,"decompressSync");var on=u(function(n,r,t,e){for(var i in n){var a=n[i],o=r+i,f=e;Array.isArray(a)&&(f=Er(e,a[1]),a=a[0]),a instanceof D?t[o]=[a,f]:(t[o+="/"]=[new D(0),f],on(a,o,t,e))}},"fltn"),mn=typeof TextEncoder<"u"&&new TextEncoder,Xr=typeof TextDecoder<"u"&&new TextDecoder,$n=0;try{Xr.decode(er,{stream:!0}),$n=1}catch{}var qn=u(function(n){for(var r="",t=0;;){var e=n[t++],i=(e>127)+(e>223)+(e>239);if(t+i>n.length)return[r,d(n,t-1)];i?i==3?(e=((e&15)<<18|(n[t++]&63)<<12|(n[t++]&63)<<6|n[t++]&63)-65536,r+=String.fromCharCode(55296|e>>10,56320|e&1023)):i&1?r+=String.fromCharCode((e&31)<<6|n[t++]&63):r+=String.fromCharCode((e&15)<<12|(n[t++]&63)<<6|n[t++]&63):r+=String.fromCharCode(e)}},"dutf8"),ct=function(){function n(r){this.ondata=r,$n?this.t=new TextDecoder:this.p=er}return u(n,"DecodeUTF8"),n.prototype.push=function(r,t){if(this.ondata||g(5),t=!!t,this.t){this.ondata(this.t.decode(r,{stream:!0}),t),t&&(this.t.decode().length&&g(8),this.t=null);return}this.p||g(4);var e=new D(this.p.length+r.length);e.set(this.p),e.set(r,this.p.length);var i=qn(e),a=i[0],o=i[1];t?(o.length&&g(8),this.p=null):this.p=o,this.ondata(a,t)},n}();var pt=function(){function n(r){this.ondata=r}return u(n,"EncodeUTF8"),n.prototype.push=function(r,t){this.ondata||g(5),this.d&&g(4),this.ondata(sr(r),this.d=t||!1)},n}();function sr(n,r){if(r){for(var t=new D(n.length),e=0;e<n.length;++e)t[e]=n.charCodeAt(e);return t}if(mn)return mn.encode(n);for(var i=n.length,a=new D(n.length+(n.length>>1)),o=0,f=u(function(h){a[o++]=h},"w"),e=0;e<i;++e){if(o+5>a.length){var v=new D(o+8+(i-e<<1));v.set(a),a=v}var s=n.charCodeAt(e);s<128||r?f(s):s<2048?(f(192|s>>6),f(128|s&63)):s>55295&&s<57344?(s=65536+(s&1047552)|n.charCodeAt(++e)&1023,f(240|s>>18),f(128|s>>12&63),f(128|s>>6&63),f(128|s&63)):(f(224|s>>12),f(128|s>>6&63),f(128|s&63))}return d(a,0,o)}u(sr,"strToU8");function Hn(n,r){if(r){for(var t="",e=0;e<n.length;e+=16384)t+=String.fromCharCode.apply(null,n.subarray(e,e+16384));return t}else{if(Xr)return Xr.decode(n);var i=qn(n),a=i[0],o=i[1];return o.length&&g(8),a}}u(Hn,"strFromU8");var Yn=u(function(n){return n==1?3:n<6?2:n==9?1:0},"dbf"),Wn=u(function(n,r){return r+30+W(n,r+26)+W(n,r+28)},"slzh"),jn=u(function(n,r,t){var e=W(n,r+28),i=Hn(n.subarray(r+46,r+46+e),!(W(n,r+8)&2048)),a=r+46+e,o=N(n,r+20),f=t&&o==4294967295?Jn(n,a):[o,N(n,r+24),N(n,r+42)],v=f[0],s=f[1],h=f[2];return[W(n,r+10),v,s,i,a+W(n,r+30)+W(n,r+32),h]},"zh"),Jn=u(function(n,r){for(;W(n,r)!=1;r+=4+W(n,r+2));return[Hr(n,r+12),Hr(n,r+4),Hr(n,r+20)]},"z64e"),or=u(function(n){var r=0;if(n)for(var t in n){var e=n[t].length;e>65535&&g(9),r+=e+4}return r},"exfl"),pr=u(function(n,r,t,e,i,a,o,f){var v=e.length,s=t.extra,h=f&&f.length,c=or(s);I(n,r,o!=null?33639248:67324752),r+=4,o!=null&&(n[r++]=20,n[r++]=t.os),n[r]=20,r+=2,n[r++]=t.flag<<1|(a==null&&8),n[r++]=i&&8,n[r++]=t.compression&255,n[r++]=t.compression>>8;var y=new Date(t.mtime==null?Date.now():t.mtime),z=y.getFullYear()-1980;if((z<0||z>119)&&g(10),I(n,r,z<<25|y.getMonth()+1<<21|y.getDate()<<16|y.getHours()<<11|y.getMinutes()<<5|y.getSeconds()>>>1),r+=4,a!=null&&(I(n,r,t.crc),I(n,r+4,a),I(n,r+8,t.size)),I(n,r+12,v),I(n,r+14,c),r+=16,o!=null&&(I(n,r,h),I(n,r+6,t.attrs),I(n,r+10,o),r+=14),n.set(e,r),r+=v,c)for(var w in s){var x=s[w],l=x.length;I(n,r,+w),I(n,r+2,l),n.set(x,r+4),r+=4+l}return h&&(n.set(f,r),r+=h),r},"wzh"),fn=u(function(n,r,t,e,i){I(n,r,101010256),I(n,r+8,t),I(n,r+10,t),I(n,r+12,e),I(n,r+16,i)},"wzf"),Nr=function(){function n(r){this.filename=r,this.c=mr(),this.size=0,this.compression=0}return u(n,"ZipPassThrough"),n.prototype.process=function(r,t){this.ondata(null,r,t)},n.prototype.push=function(r,t){this.ondata||g(5),this.c.p(r),this.size+=r.length,t&&(this.crc=this.c.d()),this.process(r,t||!1)},n}();var gt=function(){function n(r,t){var e=this;t||(t={}),Nr.call(this,r),this.d=new ar(t,function(i,a){e.ondata(null,i,a)}),this.compression=8,this.flag=Yn(t.level)}return u(n,"ZipDeflate"),n.prototype.process=function(r,t){try{this.d.push(r,t)}catch(e){this.ondata(e,null,t)}},n.prototype.push=function(r,t){Nr.prototype.push.call(this,r,t)},n}();var yt=function(){function n(r,t){var e=this;t||(t={}),Nr.call(this,r),this.d=new Xn(t,function(i,a,o){e.ondata(i,a,o)}),this.compression=8,this.flag=Yn(t.level),this.terminate=this.d.terminate}return u(n,"AsyncZipDeflate"),n.prototype.process=function(r,t){this.d.push(r,t)},n.prototype.push=function(r,t){Nr.prototype.push.call(this,r,t)},n}();var wt=function(){function n(r){this.ondata=r,this.u=[],this.d=1}return u(n,"Zip"),n.prototype.add=function(r){var t=this;if(this.ondata||g(5),this.d&2)this.ondata(g(4+(this.d&1)*8,0,1),null,!1);else{var e=sr(r.filename),i=e.length,a=r.comment,o=a&&sr(a),f=i!=r.filename.length||o&&a.length!=o.length,v=i+or(r.extra)+30;i>65535&&this.ondata(g(11,0,1),null,!1);var s=new D(v);pr(s,0,r,e,f);var h=[s],c=u(function(){for(var l=0,A=h;l<A.length;l++){var T=A[l];t.ondata(null,T,!1)}h=[]},"pAll_1"),y=this.d;this.d=0;var z=this.u.length,w=Er(r,{f:e,u:f,o,t:u(function(){r.terminate&&r.terminate()},"t"),r:u(function(){if(c(),y){var l=t.u[z+1];l?l.r():t.d=1}y=1},"r")}),x=0;r.ondata=function(l,A,T){if(l)t.ondata(l,A,T),t.terminate();else if(x+=A.length,h.push(A),T){var U=new D(16);I(U,0,134695760),I(U,4,r.crc),I(U,8,x),I(U,12,r.size),h.push(U),w.c=x,w.b=v+x+16,w.crc=r.crc,w.size=r.size,y&&w.r(),y=1}else y&&c()},this.u.push(w)}},n.prototype.end=function(){var r=this;if(this.d&2){this.ondata(g(4+(this.d&1)*8,0,1),null,!0);return}this.d?this.e():this.u.push({r:u(function(){r.d&1&&(r.u.splice(-1,1),r.e())},"r"),t:u(function(){},"t")}),this.d=3},n.prototype.e=function(){for(var r=0,t=0,e=0,i=0,a=this.u;i<a.length;i++){var o=a[i];e+=46+o.f.length+or(o.extra)+(o.o?o.o.length:0)}for(var f=new D(e+22),v=0,s=this.u;v<s.length;v++){var o=s[v];pr(f,r,o,o.f,o.u,o.c,t,o.o),r+=46+o.f.length+or(o.extra)+(o.o?o.o.length:0),t+=o.b}fn(f,r,this.u.length,e,t),this.ondata(null,f,!0),this.d=2},n.prototype.terminate=function(){for(var r=0,t=this.u;r<t.length;r++){var e=t[r];e.t()}this.d=2},n}();function mt(n,r,t){t||(t=r,r={}),typeof t!="function"&&g(7);var e={};on(n,"",e,r);var i=Object.keys(e),a=i.length,o=0,f=0,v=a,s=new Array(a),h=[],c=u(function(){for(var l=0;l<h.length;++l)h[l]()},"tAll"),y=u(function(l,A){Rr(function(){t(l,A)})},"cbd");Rr(function(){y=t});var z=u(function(){var l=new D(f+22),A=o,T=f-o;f=0;for(var U=0;U<v;++U){var m=s[U];try{var B=m.c.length;pr(l,f,m,m.f,m.u,B);var C=30+m.f.length+or(m.extra),M=f+C;l.set(m.c,M),pr(l,o,m,m.f,m.u,B,f,m.m),o+=16+C+(m.m?m.m.length:0),f=M+B}catch(p){return y(p,null)}}fn(l,o,s.length,T,A),y(null,l)},"cbf");a||z();for(var w=u(function(l){var A=i[l],T=e[A],U=T[0],m=T[1],B=mr(),C=U.length;B.p(U);var M=sr(A),p=M.length,P=m.comment,S=P&&sr(P),R=S&&S.length,O=or(m.extra),k=m.level==0?0:8,F=u(function(L,Z){if(L)c(),y(L,null);else{var G=Z.length;s[l]=Er(m,{size:C,crc:B.d(),c:Z,f:M,m:S,u:p!=A.length||S&&P.length!=R,compression:k}),o+=30+p+O+G,f+=76+2*(p+O)+(R||0)+G,--a||z()}},"cbl");if(p>65535&&F(g(11,0,1),null),!k)F(null,U);else if(C<16e4)try{F(null,$r(U,m))}catch(L){F(L,null)}else h.push(dn(U,m,F))},"_loop_1"),x=0;x<v;++x)w(x);return c}u(mt,"zip");function xt(n,r){r||(r={});var t={},e=[];on(n,"",t,r);var i=0,a=0;for(var o in t){var f=t[o],v=f[0],s=f[1],h=s.level==0?0:8,c=sr(o),y=c.length,z=s.comment,w=z&&sr(z),x=w&&w.length,l=or(s.extra);y>65535&&g(11);var A=h?$r(v,s):v,T=A.length,U=mr();U.p(v),e.push(Er(s,{size:v.length,crc:U.d(),c:A,f:c,m:w,u:y!=o.length||w&&z.length!=x,o:i,compression:h})),i+=30+y+l+T,a+=76+2*(y+l)+(x||0)+T}for(var m=new D(a+22),B=i,C=a-i,M=0;M<e.length;++M){var c=e[M];pr(m,c.o,c,c.f,c.u,c.c.length);var p=30+c.f.length+or(c.extra);m.set(c.c,c.o+p),pr(m,i,c,c.f,c.u,c.c.length,c.o,c.m),i+=16+p+(c.m?c.m.length:0)}return fn(m,i,e.length,C,B),m}u(xt,"zipSync");var et=function(){function n(){}return u(n,"UnzipPassThrough"),n.prototype.push=function(r,t){this.ondata(null,r,t)},n.compression=0,n}();var zt=function(){function n(){var r=this;this.i=new K(function(t,e){r.ondata(null,t,e)})}return u(n,"UnzipInflate"),n.prototype.push=function(r,t){try{this.i.push(r,t)}catch(e){this.ondata(e,null,t)}},n.compression=8,n}();var At=function(){function n(r,t){var e=this;t<32e4?this.i=new K(function(i,a){e.ondata(null,i,a)}):(this.i=new Nn(function(i,a,o){e.ondata(i,a,o)}),this.terminate=this.i.terminate)}return u(n,"AsyncUnzipInflate"),n.prototype.push=function(r,t){this.i.terminate&&(r=d(r,0)),this.i.push(r,t)},n.compression=8,n}();var Mt=function(){function n(r){this.onfile=r,this.k=[],this.o={0:et},this.p=er}return u(n,"Unzip"),n.prototype.push=function(r,t){var e=this;if(this.onfile||g(5),this.p||g(4),this.c>0){var i=Math.min(this.c,r.length),a=r.subarray(0,i);if(this.c-=i,this.d?this.d.push(a,!this.c):this.k[0].push(a),r=r.subarray(i),r.length)return this.push(r,t)}else{var o=0,f=0,v=void 0,s=void 0;this.p.length?r.length?(s=new D(this.p.length+r.length),s.set(this.p),s.set(r,this.p.length)):s=this.p:s=r;for(var h=s.length,c=this.c,y=c&&this.d,z=u(function(){var A,T=N(s,f);if(T==67324752){o=1,v=f,w.d=null,w.c=0;var U=W(s,f+6),m=W(s,f+8),B=U&2048,C=U&8,M=W(s,f+26),p=W(s,f+28);if(h>f+30+M+p){var P=[];w.k.unshift(P),o=2;var S=N(s,f+18),R=N(s,f+22),O=Hn(s.subarray(f+30,f+=30+M),!B);S==4294967295?(A=C?[-2]:Jn(s,f),S=A[0],R=A[1]):C&&(S=-1),f+=p,w.c=S;var k,F={name:O,compression:m,start:u(function(){if(F.ondata||g(5),!S)F.ondata(null,er,!0);else{var L=e.o[m];L||F.ondata(g(14,"unknown compression type "+m,1),null,!1),k=S<0?new L(O):new L(O,S,R),k.ondata=function(j,Q,Y){F.ondata(j,Q,Y)};for(var Z=0,G=P;Z<G.length;Z++){var H=G[Z];k.push(H,!1)}e.k[0]==P&&e.c?e.d=k:k.push(er,!0)}},"start"),terminate:u(function(){k&&k.terminate&&k.terminate()},"terminate")};S>=0&&(F.size=S,F.originalSize=R),w.onfile(F)}return"break"}else if(c){if(T==134695760)return v=f+=12+(c==-2&&8),o=3,w.c=0,"break";if(T==33639248)return v=f-=4,o=3,w.c=0,"break"}},"_loop_2"),w=this;f<h-4;++f){var x=z();if(x==="break")break}if(this.p=er,c<0){var l=o?s.subarray(0,v-12-(c==-2&&8)-(N(s,v-16)==134695760&&4)):s.subarray(0,f);y?y.push(l,!!o):this.k[+(o==2)].push(l)}if(o&2)return this.push(s.subarray(f),t);this.p=s.subarray(f)}t&&(this.c&&g(13),this.p=null)},n.prototype.register=function(r){this.o[r.compression]=r},n}();var Rr=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(n){n()};function Tt(n,r,t){t||(t=r,r={}),typeof t!="function"&&g(7);var e=[],i=u(function(){for(var x=0;x<e.length;++x)e[x]()},"tAll"),a={},o=u(function(x,l){Rr(function(){t(x,l)})},"cbd");Rr(function(){o=t});for(var f=n.length-22;N(n,f)!=101010256;--f)if(!f||n.length-f>65558)return o(g(13,0,1),null),i;var v=W(n,f+8);if(v){var s=v,h=N(n,f+16),c=h==4294967295;if(c){if(f=N(n,f-12),N(n,f)!=101075792)return o(g(13,0,1),null),i;s=v=N(n,f+32),h=N(n,f+48)}for(var y=r&&r.filter,z=u(function(x){var l=jn(n,h,c),A=l[0],T=l[1],U=l[2],m=l[3],B=l[4],C=l[5],M=Wn(n,C);h=B;var p=u(function(S,R){S?(i(),o(S,null)):(R&&(a[m]=R),--v||o(null,a))},"cbl");if(!y||y({name:m,size:T,originalSize:U,compression:A}))if(!A)p(null,d(n,M,M+T));else if(A==8){var P=n.subarray(M,M+T);if(T<32e4)try{p(null,Fr(P,new D(U)))}catch(S){p(S,null)}else e.push(Rn(P,{size:U},p))}else p(g(14,"unknown compression type "+A,1),null);else p(null,null)},"_loop_3"),w=0;w<s;++w)z(w)}else o(null,{});return i}u(Tt,"unzip");function Ut(n,r){for(var t={},e=n.length-22;N(n,e)!=101010256;--e)(!e||n.length-e>65558)&&g(13);var i=W(n,e+8);if(!i)return{};var a=N(n,e+16),o=a==4294967295;o&&(e=N(n,e-12),N(n,e)!=101075792&&g(13),i=N(n,e+32),a=N(n,e+48));for(var f=r&&r.filter,v=0;v<i;++v){var s=jn(n,a,o),h=s[0],c=s[1],y=s[2],z=s[3],w=s[4],x=s[5],l=Wn(n,x);a=w,(!f||f({name:z,size:c,originalSize:y,compression:h}))&&(h?h==8?t[z]=Fr(n.subarray(l,l+c),new D(y)):g(14,"unknown compression type "+h):t[z]=d(n,l,l+c))}return t}u(Ut,"unzipSync");export{ot as AsyncCompress,vt as AsyncDecompress,Xn as AsyncDeflate,bn as AsyncGunzip,ot as AsyncGzip,Nn as AsyncInflate,At as AsyncUnzipInflate,rt as AsyncUnzlib,yt as AsyncZipDeflate,st as AsyncZlib,pn as Compress,ct as DecodeUTF8,tt as Decompress,ar as Deflate,pt as EncodeUTF8,at as FlateErrorCode,Jr as Gunzip,pn as Gzip,K as Inflate,Mt as Unzip,zt as UnzipInflate,et as UnzipPassThrough,Qr as Unzlib,wt as Zip,gt as ZipDeflate,Nr as ZipPassThrough,yn as Zlib,ft as compress,gn as compressSync,ht as decompress,lt as decompressSync,dn as deflate,$r as deflateSync,_n as gunzip,Kr as gunzipSync,ft as gzip,gn as gzipSync,Rn as inflate,Fr as inflateSync,Hn as strFromU8,sr as strToU8,Tt as unzip,Ut as unzipSync,nt as unzlib,Vr as unzlibSync,mt as zip,xt as zipSync,ut as zlib,wn as zlibSync};
@@ -0,0 +1 @@
1
+ var i=Object.create;var f=Object.defineProperty;var j=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var l=Object.getPrototypeOf,m=Object.prototype.hasOwnProperty;var h=a=>{throw TypeError(a)};var n=(a,b,c)=>b in a?f(a,b,{enumerable:!0,configurable:!0,writable:!0,value:c}):a[b]=c;var s=(a,b)=>f(a,"name",{value:b,configurable:!0});var o=(a,b)=>()=>(a&&(b=a(a=0)),b);var t=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports);var p=(a,b,c,d)=>{if(b&&typeof b=="object"||typeof b=="function")for(let e of k(b))!m.call(a,e)&&e!==c&&f(a,e,{get:()=>b[e],enumerable:!(d=j(b,e))||d.enumerable});return a};var u=(a,b,c)=>(c=a!=null?i(l(a)):{},p(b||!a||!a.__esModule?f(c,"default",{value:a,enumerable:!0}):c,a));var v=(a,b,c)=>n(a,typeof b!="symbol"?b+"":b,c),g=(a,b,c)=>b.has(a)||h("Cannot "+c);var w=(a,b,c)=>(g(a,b,"read from private field"),c?c.call(a):b.get(a)),x=(a,b,c)=>b.has(a)?h("Cannot add the same private member more than once"):b instanceof WeakSet?b.add(a):b.set(a,c),y=(a,b,c,d)=>(g(a,b,"write to private field"),d?d.call(a,c):b.set(a,c),c),z=(a,b,c)=>(g(a,b,"access private method"),c);var C,r=o(()=>{C={env:{npm_package_version:"5.41.11"}}});export{s as a,t as b,u as c,v as d,w as e,x as f,y as g,z as h,r as i,C as j};
package/dist/index.d.ts CHANGED
@@ -452,7 +452,7 @@ declare module '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/index.r
452
452
  export type { ThingsOption } from '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/MapView.types';
453
453
  export type { IFlatLabels } from '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/public/api/FlatLabels';
454
454
  export type { IFloatingLabels } from '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/public/api/FloatingLabels';
455
- export type { TBlueDotPositionUpdate, TBlueDotStateChange, TJourneyOptions, TMapViewOptions, TCreateMarkerOptions, TGeolocationObject, TPathOptions, TFlatLabelOptions, TAddFloatingLabelOptions, TAddFlatLabelOptions, TLabelAllLocationCommonOptions, TFloatingLabelAllLocationsOptions, TFlatLabelAllLocationsOptions, TLabelAllLocationFlatLabelOptions, TLabelAllLocationFloatingLabelOptions, TEnableBlueDotOptions, TFloatingLabelAppearance, TFlatLabelAppearance, CAMERA_EVENT_PAYLOAD, TMapClickEvent, TGetPolygonsAtCoordinateOptions, TShowVenueOptions, TAnimationOptions, TCreateTooltipOptions, } from '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/MapView.types';
455
+ export type { TBlueDotPositionUpdate, TBlueDotStateChange, TJourneyOptions, TMapViewOptions, TCreateMarkerOptions, TGeolocationObject, TPathOptions, TFlatLabelOptions, TAddFloatingLabelOptions, TAddFlatLabelOptions, TLabelAllLocationCommonOptions, TFloatingLabelAllLocationsOptions, TFlatLabelAllLocationsOptions, TLabelAllLocationFlatLabelOptions, TLabelAllLocationFloatingLabelOptions, TEnableBlueDotOptions, TFloatingLabelAppearance, TFlatLabelAppearance, CAMERA_EVENT_PAYLOAD, TMapClickEvent, TGetPolygonsAtCoordinateOptions, TShowVenueOptions, TAnimationOptions, TCreateTooltipOptions, TShowWatermarkOptions, } from '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/MapView.types';
456
456
  export { BEARING_TYPE, ACTION_TYPE } from '@mappedin/react-native-sdk/sdks/packages/navigator';
457
457
  export type { IDirectionsResult, E_MESSAGES as E_GET_DIRECTIONS_MESSAGES } from '@mappedin/react-native-sdk/sdks/packages/navigator';
458
458
  export type { TGetVenueBundleOptions, TGetVenueOptions, TGetVenueMakerOptions, TMappedinDirective, TMappedinOfflineSearchOptions, TMappedinOfflineSearchResult, TMappedinOfflineSearchSuggestions, TMappedinOfflineSearchAllOptions, TMappedinOfflineAllSearchMatch, TDirectionToOptions, } from '@mappedin/react-native-sdk/sdks/packages/get-venue';
@@ -763,6 +763,11 @@ declare module '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/MapView
763
763
  * The minimum altitude of the path in meters.
764
764
  */
765
765
  minAdjustedAltitude?: number;
766
+ /**
767
+ * Whether the path should be dashed style or solid.
768
+ * @defaultValue false
769
+ */
770
+ dashed?: boolean;
766
771
  };
767
772
  export type TConnectionProps = {
768
773
  /**
@@ -1913,6 +1918,57 @@ declare module '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/MapView
1913
1918
  update: (position: TGeolocationObject) => void;
1914
1919
  throwError: (err: any) => void;
1915
1920
  }
1921
+ export type TWatermarkPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'center' | 'top' | 'bottom' | 'left' | 'right';
1922
+ export type TShowWatermarkOptions = {
1923
+ /**
1924
+ * Padding in pixels. Can be a number or an object with top, right, bottom, and left properties.
1925
+ * @default 16
1926
+ * @example
1927
+ * ```ts
1928
+ * // Watermark with 20 pixels of padding on all sides
1929
+ * __showWatermark({
1930
+ * padding: 20,
1931
+ * });
1932
+ * ```
1933
+ * @example
1934
+ * ```ts
1935
+ * // Watermark with unique top, right, bottom, left padding
1936
+ * __showWatermark({
1937
+ * padding: {
1938
+ * top: 10,
1939
+ * right: 20,
1940
+ * bottom: 30,
1941
+ * left: 40,
1942
+ * },
1943
+ * });
1944
+ * ```
1945
+ */
1946
+ padding?: number | {
1947
+ top?: number;
1948
+ right?: number;
1949
+ bottom?: number;
1950
+ left?: number;
1951
+ };
1952
+ /**
1953
+ * Position of the watermark on the screen.
1954
+ * @default 'bottom-left'
1955
+ */
1956
+ position?: TWatermarkPosition;
1957
+ /**
1958
+ * Show only the Mappedin icon without text.
1959
+ * @default false
1960
+ */
1961
+ iconOnly?: boolean;
1962
+ /**
1963
+ * Scale of the watermark between 0.5 and 1.5.
1964
+ * @default 1
1965
+ */
1966
+ scale?: number;
1967
+ /**
1968
+ * Callback when the watermark is clicked.
1969
+ */
1970
+ onClick?: () => void;
1971
+ };
1916
1972
  }
1917
1973
 
1918
1974
  declare module '@mappedin/react-native-sdk/sdks/packages/get-venue' {
@@ -1948,7 +2004,7 @@ declare module '@mappedin/react-native-sdk/sdks/packages/get-venue' {
1948
2004
  *
1949
2005
  * Export this only so our internal pre-built products can use it. We don't want to document it for external developers.
1950
2006
  */
1951
- export { default as CustomerAnalytics } from '@mappedin/react-native-sdk/sdks/packages/get-venue/Mappedin.CustomerAnalytics';
2007
+ export { default as CustomerAnalytics, type IAnalytics } from '@mappedin/react-native-sdk/sdks/packages/get-venue/Mappedin.CustomerAnalytics';
1952
2008
  export type { TMappedinDirective } from '@mappedin/react-native-sdk/sdks/packages/get-venue/MappedinDirections';
1953
2009
  export type { IDirectionsResult } from '@mappedin/react-native-sdk/sdks/packages/navigator';
1954
2010
  export type { TOperationHoursMap } from '@mappedin/react-native-sdk/sdks/packages/get-venue/MappedinLocation';
@@ -3819,6 +3875,8 @@ declare module '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/private
3819
3875
  canvasHeight: number;
3820
3876
  setState(state: STATE): Promise<void>;
3821
3877
  getNearestNodeByScreenCoordinate(x: number, y: number, mapOrMapId?: MappedinMap | MappedinMap['id']): MappedinNode;
3878
+ getNearestNodeByCoordinate(coordinate: MappedinCoordinate): MappedinNode;
3879
+ getNearestNodeByLatLon(lat: number, lon: number, mapOrMapId?: MappedinMap | MappedinMap['id']): MappedinNode;
3822
3880
  destroy(): void;
3823
3881
  }
3824
3882
  }
@@ -4536,7 +4594,7 @@ declare module '@mappedin/react-native-sdk/wrappers/common/controller' {
4536
4594
  declare module '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/internal/Mappedin.FloatingLabel' {
4537
4595
  import './Mappedin.FloatingLabel.scss';
4538
4596
  import { BaseCollider } from '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/internal';
4539
- import { TDrawFn } from '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/internal/shave-text';
4597
+ import type { TDrawFn } from '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/internal/shave-text';
4540
4598
  import type { MappedinPolygon } from '@mappedin/react-native-sdk/sdks/packages/get-venue';
4541
4599
  import type { ICore, ICollider, TColliderStrategy, TColliderPosition } from '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/internal';
4542
4600
  type TStyle = {
@@ -4830,6 +4888,11 @@ declare module '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/interna
4830
4888
  * @defaultValue false
4831
4889
  */
4832
4890
  useRotationMode?: boolean;
4891
+ /**
4892
+ * The maximum acceptable accuracy in meters. Position updates with accuracy exceeding this value will be dropped.
4893
+ * @default 50
4894
+ */
4895
+ accuracyThreshold?: number;
4833
4896
  };
4834
4897
  export type TUserData = {
4835
4898
  state: E_BLUEDOT_STATE;
@@ -5474,6 +5537,7 @@ declare module '@mappedin/react-native-sdk/sdks/packages/get-venue/Mappedin.type
5474
5537
  clientId?: string;
5475
5538
  clientSecret?: string;
5476
5539
  baseUrl?: string;
5540
+ baseUri?: string;
5477
5541
  includeHidden?: boolean;
5478
5542
  noAuth?: boolean;
5479
5543
  perspective?: string;
@@ -7049,7 +7113,8 @@ declare module '@mappedin/react-native-sdk/sdks/packages/navigator/Directive' {
7049
7113
  RIGHT = "Right",
7050
7114
  SLIGHTRIGHT = "SlightRight",
7051
7115
  LEFT = "Left",
7052
- SLIGHTLEFT = "SlightLeft"
7116
+ SLIGHTLEFT = "SlightLeft",
7117
+ BACK = "Back"
7053
7118
  }
7054
7119
  export enum VORTEX_DIRECTION_TYPE {
7055
7120
  UP = "up",
@@ -7315,7 +7380,7 @@ declare module '@mappedin/react-native-sdk/sdks/cms/src' {
7315
7380
  import { MapView } from '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/public/MapView';
7316
7381
  import type { Mappedin, MappedinMap, TGetVenueBundleOptions, TGetVenueOptions } from '@mappedin/react-native-sdk/sdks/packages/get-venue';
7317
7382
  import { getVenue, getVenueMVF, getVenueBundle, getVenueMaker, downloadBundle, getVenueBundleURL, downloadVenueBundleMVF, MappedinDestinationSet, hydrateVenue, GET_VENUE_EVENT } from '@mappedin/react-native-sdk/sdks/packages/get-venue';
7318
- import type { TMapViewOptions } from '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/MapView.types';
7383
+ import type { TMapViewOptions, TShowWatermarkOptions } from '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/MapView.types';
7319
7384
  export { E_SDK_LOG_LEVEL, setLoggerLevel } from '@mappedin/react-native-sdk/sdks/packages/common/Mappedin.Logger';
7320
7385
  export type { Marker } from '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/private/controllers/MarkersController';
7321
7386
  export type { Path } from '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/private/controllers/PathsController';
@@ -7364,7 +7429,6 @@ declare module '@mappedin/react-native-sdk/sdks/cms/src' {
7364
7429
  export { getVenue, getVenueMVF, getVenueBundle, getVenueMaker, showVenue, downloadBundle, getVenueBundleURL, downloadVenueBundleMVF, hydrateVenue, MappedinDestinationSet, GET_VENUE_EVENT, };
7365
7430
  import DefaultAssetManager from '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/internal/Mappedin.AssetManager';
7366
7431
  import type { TTileManagerOptions } from '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/internal/outdoor-context/Mappedin.TileManager';
7367
- import type { TShowWatermarkOptions } from '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/private/controllers/WatermarkController';
7368
7432
  export { setAssetManager } from '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/internal';
7369
7433
  export { DefaultAssetManager as AssetManager };
7370
7434
  export type { TMappedinDirective, IAction, IActionArrival, IActionDeparture, IActionExitVortex, IActionTakeVortex, IActionTurn, } from '@mappedin/react-native-sdk/sdks/packages/get-venue/MappedinDirections';
@@ -7415,75 +7479,25 @@ declare module '@mappedin/react-native-sdk/sdks/cms/src' {
7415
7479
 
7416
7480
  declare module '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/private/controllers/WatermarkController' {
7417
7481
  import { ICore } from '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/private/Core.interface';
7418
- type TPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'center' | 'top' | 'bottom' | 'left' | 'right';
7419
- export type TShowWatermarkOptions = {
7420
- /**
7421
- * Padding in pixels. Can be a number or an object with top, right, bottom, and left properties.
7422
- * @default 16
7423
- * @example
7424
- * ```ts
7425
- * // Watermark with 20 pixels of padding on all sides
7426
- * __showWatermark({
7427
- * padding: 20,
7428
- * });
7429
- * ```
7430
- * @example
7431
- * ```ts
7432
- * // Watermark with unique top, right, bottom, left padding
7433
- * __showWatermark({
7434
- * padding: {
7435
- * top: 10,
7436
- * right: 20,
7437
- * bottom: 30,
7438
- * left: 40,
7439
- * },
7440
- * });
7441
- * ```
7442
- */
7443
- padding?: number | {
7444
- top?: number;
7445
- right?: number;
7446
- bottom?: number;
7447
- left?: number;
7448
- };
7449
- /**
7450
- * Position of the watermark on the screen.
7451
- * @default 'bottom-left'
7452
- */
7453
- position?: TPosition;
7454
- /**
7455
- * Show only the Mappedin icon without text.
7456
- * @default false
7457
- */
7458
- iconOnly?: boolean;
7459
- /**
7460
- * Scale of the watermark between 0.5 and 1.5.
7461
- * @default 1
7462
- */
7463
- scale?: number;
7464
- /**
7465
- * Callback when the watermark is clicked.
7466
- */
7467
- onClick?: () => void;
7468
- };
7482
+ import type { TShowWatermarkOptions } from '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/MapView.types';
7469
7483
  class WatermarkController {
7470
- #private;
7471
- static ENABLED: boolean;
7472
- static OPTIONS: Required<TShowWatermarkOptions>;
7473
- /**
7474
- * The current calculated position and size of the watermark on the screen. It is updated every resize.
7475
- * This is public so it can be used in event system.
7476
- */
7477
- position: {
7478
- x: number;
7479
- y: number;
7480
- width: number;
7481
- height: number;
7482
- };
7483
- constructor(core: ICore);
7484
- show: () => void;
7485
- hide: () => void;
7486
- resize: () => void;
7484
+ #private;
7485
+ static ENABLED: boolean;
7486
+ static OPTIONS: Required<TShowWatermarkOptions>;
7487
+ /**
7488
+ * The current calculated position and size of the watermark on the screen. It is updated every resize.
7489
+ * This is public so it can be used in event system.
7490
+ */
7491
+ position: {
7492
+ x: number;
7493
+ y: number;
7494
+ width: number;
7495
+ height: number;
7496
+ };
7497
+ constructor(core: ICore);
7498
+ show: () => void;
7499
+ hide: () => void;
7500
+ resize: () => void;
7487
7501
  }
7488
7502
  export default WatermarkController;
7489
7503
  }
@@ -7776,6 +7790,17 @@ declare module '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/private
7776
7790
  getPolygonsAtScreenCoordinate: (x: number, y: number, options?: TGetPolygonsAtCoordinateOptions) => MappedinPolygon[];
7777
7791
  getPolygonsAtCoordinate: (coordinate: MappedinCoordinate, options?: TGetPolygonsAtCoordinateOptions) => MappedinPolygon[];
7778
7792
  getNearestNodeByScreenCoordinate(x: number, y: number, mapOrMapId?: MappedinMap | MappedinMap['id']): MappedinNode;
7793
+ /**
7794
+ * Get the nearest node by coordinate.
7795
+ * If Dynamic Focus is enabled, the nearest node on the base map is returned if it is closer than the current map.
7796
+ */
7797
+ getNearestNodeByCoordinate: (coordinate: MappedinCoordinate) => MappedinNode;
7798
+ /**
7799
+ * Get the nearest node by latitude and longitude and map.
7800
+ * If no map is provided, the current map is used.
7801
+ * If Dynamic Focus is enabled, the nearest node on the base map is returned if it is closer than the current map.
7802
+ */
7803
+ getNearestNodeByLatLon: (lat: number, lon: number, mapOrMapId?: MappedinMap | MappedinMap['id']) => MappedinNode;
7779
7804
  /**
7780
7805
  * Destroys instance and frees resources
7781
7806
  *
@@ -8151,6 +8176,11 @@ declare module '@mappedin/react-native-sdk/sdks/packages/get-venue/MappedinNode'
8151
8176
  */
8152
8177
  operationHours?: TOpeningHours[];
8153
8178
  externalId?: string;
8179
+ /**
8180
+ * @internal
8181
+ * Label identifier for this node. For grouping and filtering nodes.
8182
+ */
8183
+ label: string;
8154
8184
  constructor(mappedin: Mappedin, data: any);
8155
8185
  /**
8156
8186
  * Map Object that this Node is located on.
@@ -8193,6 +8223,11 @@ declare module '@mappedin/react-native-sdk/sdks/packages/get-venue/MappedinNode'
8193
8223
  */
8194
8224
  directionsTo(destination: MappedinNode | MappedinLocation | MappedinPolygon, options?: TDirectionToOptions): MappedinDirections;
8195
8225
  directionsTo(destination: MappedinDestinationSet, options?: TDirectionToOptions): MappedinDirections[];
8226
+ /**
8227
+ * @internal
8228
+ * Whether the node is part of a shuttle route.
8229
+ */
8230
+ get isShuttleNode(): boolean;
8196
8231
  /**
8197
8232
  *
8198
8233
  * Calculate walking distance in meters between 2 nodes, polygons or locations
@@ -8412,9 +8447,20 @@ declare module '@mappedin/react-native-sdk/sdks/packages/get-venue/MappedinCateg
8412
8447
  get children(): MappedinCategory[];
8413
8448
  static hydrate(categories: any, mappedin: Mappedin): MappedinCategory[];
8414
8449
  static updateInPlace(mappedin: Mappedin, hydrateData?: any): Promise<void>;
8450
+ static defaultLanguageCategoryControl: {
8451
+ fetchDefaultLanguageCategories(mappedin: Mappedin): Promise<void>;
8452
+ getDefaultLanguageCategory(mappedin: Mappedin, id: string): CategoryFromCMSAPI;
8453
+ };
8415
8454
  static fetch(mappedin: Mappedin): Promise<MappedinCategory[]>;
8416
8455
  toJSON(): any;
8417
8456
  }
8457
+ type CategoryFromCMSAPI = {
8458
+ id: string;
8459
+ icon: Record<string, never> | {
8460
+ original: string;
8461
+ };
8462
+ };
8463
+ export {};
8418
8464
  }
8419
8465
 
8420
8466
  declare module '@mappedin/react-native-sdk/sdks/packages/get-venue/MappedinDestinationSet' {
@@ -8880,6 +8926,7 @@ declare module '@mappedin/react-native-sdk/sdks/packages/get-venue/utils' {
8880
8926
  */
8881
8927
  export const getPrimaryLocationForPolygon: (polygon: MappedinPolygon | string | undefined, venue: Mappedin) => MappedinLocation | null;
8882
8928
  export function mergeThings(thingsOption: ThingsOption | undefined): MergedThings;
8929
+ export function isMappedinUsingDefaultLanguage(mappedin: Mappedin): boolean;
8883
8930
  }
8884
8931
 
8885
8932
  declare module '@mappedin/react-native-sdk/sdks/packages/get-venue/Mappedin.cache' {
@@ -10793,8 +10840,8 @@ declare module '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/interna
10793
10840
 
10794
10841
  declare module '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/internal/Mappedin.SmartCollisionEngine' {
10795
10842
  import './Mappedin.SmartCollisionEngine.scss';
10796
- import { TRange, TColliderPosition } from '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/internal/Mappedin.SmartCollider';
10797
- import { MappedinMap } from '@mappedin/react-native-sdk/sdks/packages/get-venue';
10843
+ import type { TRange, TColliderPosition } from '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/internal/Mappedin.SmartCollider';
10844
+ import type { MappedinMap } from '@mappedin/react-native-sdk/sdks/packages/get-venue';
10798
10845
  import type { ICore } from '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/internal';
10799
10846
  import { Rectangle, QuadTree } from '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/internal/quad-tree';
10800
10847
  import { InternalFloatingLabel, InternalMarker, SmartTooltip } from '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/internal';
@@ -11231,6 +11278,21 @@ declare module '@mappedin/react-native-sdk/sdks/packages/legacy-renderer/public/
11231
11278
  * @param mapOrMapId The {@link MappedinMap} the node should belong to.
11232
11279
  */
11233
11280
  getNearestNodeByScreenCoordinates(x: number, y: number, mapOrMapId?: MappedinMap | MappedinMap['id']): MappedinNode;
11281
+ /**
11282
+ * Get the nearest node by coordinate.
11283
+ * If Dynamic Focus is enabled, the nearest node on the base map is returned if it is closer than the current map.
11284
+ * @param coordinate - The {@link MappedinCoordinate} to get the nearest node for
11285
+ */
11286
+ getNearestNodeByCoordinate(coordinate: MappedinCoordinate): MappedinNode;
11287
+ /**
11288
+ * Get the nearest node by latitude and longitude and map.
11289
+ * If no map is provided, the current map is used.
11290
+ * If Dynamic Focus is enabled, the nearest node on the base map is returned if it is closer than the current map.
11291
+ * @param lat - Latitude
11292
+ * @param lon - Longitude
11293
+ * @param mapOrMapId The {@link MappedinMap} the node should belong to.
11294
+ */
11295
+ getNearestNodeByLatLon(lat: number, lon: number, mapOrMapId?: MappedinMap | MappedinMap['id']): MappedinNode;
11234
11296
  /**
11235
11297
  * Subscribe a function to an {@link E_SDK_EVENT}.
11236
11298
  *