PageSourceSearch

https://monitorimigracji.pl/_next/static/chunks/3837.30b7f7a8c17ba23a.js

js monitorimigracji.pl collected 2026-10-04 17:17:28 UTC 22,684 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d42395c1-c1c6-4af0-87d4-53fde0ac72a9",e._sentryDebugIdIdentifier="sentry-dbid-d42395c1-c1c6-4af0-87d4-53fde0ac72a9")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3837],{3283:function(){},5473:function(e,t,r){"use strict";let n,i;r.d(t,{b$:function(){return er}});var a={},o=Uint8Array,s=Uint16Array,l=Int32Array,c=new o([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]),h=new o([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]),u=new o([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),f=function(e,t){for(var r=new s(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];for(var i=new l(r[30]),n=1;n<30;++n)for(var a=r[n];a<r[n+1];++a)i[a]=a-r[n]<<5|n;return{b:r,r:i}},d=f(c,2),g=d.b,v=d.r;g[28]=258,v[258]=28;for(var m=f(h,0),y=m.b,p=m.r,w=new s(32768),b=0;b<32768;++b){var x=(43690&b)>>1|(21845&b)<<1;x=(61680&(x=(52428&x)>>2|(13107&x)<<2))>>4|(3855&x)<<4,w[b]=((65280&x)>>8|(255&x)<<8)>>1}for(var T=function(e,t,r){for(var n,i=e.length,a=0,o=new s(t);a<i;++a)e[a]&&++o[e[a]-1];var l=new s(t);for(a=1;a<t;++a)l[a]=l[a-1]+o[a-1]<<1;if(r){n=new s(1<<t);var c=15-t;for(a=0;a<i;++a)if(e[a])for(var h=a<<4|e[a],u=t-e[a],f=l[e[a]-1]++<<u,d=f|(1<<u)-1;f<=d;++f)n[w[f]>>c]=h}else for(a=0,n=new s(i);a<i;++a)e[a]&&(n[a]=w[l[e[a]-1]++]>>15-e[a]);return n},M=new o(288),b=0;b<144;++b)M[b]=8;for(var b=144;b<256;++b)M[b]=9;for(var b=256;b<280;++b)M[b]=7;for(var b=280;b<288;++b)M[b]=8;for(var E=new o(32),b=0;b<32;++b)E[b]=5;var U=T(M,9,1),C=T(E,5,1),D=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},A=function(e,t,r){var n=t/8|0;return(e[n]|e[n+1]<<8)>>(7&t)&r},k=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(7&t)},z=function(e){return(e+7)/8|0},$=function(e,t,r){return(null==t||t<0)&&(t=0),(null==r||r>e.length)&&(r=e.length),new o(e.subarray(t,r))}
1,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"],H=function(e,t,r){var n=Error(t||I[e]);if(n.code=e,Error.captureStackTrace&&Error.captureStackTrace(n,H),!r)throw n;return n},O=function(e,t,r,n){var i=e.length,a=n?n.length:0;if(!i||t.f&&!t.l)return r||new o(0);var s=!r,l=s||2!=t.i,f=t.i;s&&(r=new o(3*i));var d=function(e){var t=r.length;if(e>t){var n=new o(Math.max(2*t,e));n.set(r),r=n}},v=t.f||0,m=t.p||0,p=t.b||0,w=t.l,b=t.d,x=t.m,M=t.n,E=8*i;do{if(!w){v=A(e,m,1);var I=A(e,m+1,3);if(m+=3,I){if(1==I)w=U,b=C,x=9,M=5;else if(2==I){var O=A(e,m,31)+257,Z=A(e,m+10,15)+4,P=O+A(e,m+5,31)+1;m+=14;for(var B=new o(P),R=new o(19),_=0;_<Z;++_)R[u[_]]=A(e,m+3*_,7);m+=3*Z;for(var S=D(R),j=(1<<S)-1,K=T(R,S,1),_=0;_<P;){var W=K[A(e,m,j)];m+=15&W;var N=W>>4;if(N<16)B[_++]=N;else{var V=0,F=0;for(16==N?(F=3+A(e,m,3),m+=2,V=B[_-1]):17==N?(F=3+A(e,m,7),m+=3):18==N&&(F=11+A(e,m,127),m+=7);F--;)B[_++]=V}}var J=B.subarray(0,O),q=B.subarray(O);x=D(J),M=D(q),w=T(J,x,1),b=T(q,M,1)}else H(1)}else{var N=z(m)+4,G=e[N-4]|e[N-3]<<8,Q=N+G;if(Q>i){f&&H(0);break}l&&d(p+G),r.set(e.subarray(N,Q),p),t.b=p+=G,t.p=m=8*Q,t.f=v;continue}if(m>E){f&&H(0);break}}l&&d(p+131072);for(var X=(1<<x)-1,Y=(1<<M)-1,ee=m;;ee=m){var V=w[k(e,m)&X],et=V>>4;if((m+=15&V)>E){f&&H(0);break}if(V||H(2),et<256)r[p++]=et;else if(256==et){ee=m,w=null;break}else{var er=et-254;if(et>264){var _=et-257,en=c[_];er=A(e,m,(1<<en)-1)+g[_],m+=en}var ei=b[k(e,m)&Y],ea=ei>>4;ei||H(3),m+=15&ei;var q=y[ea];if(ea>3){var en=h[ea];q+=k(e,m)&(1<<en)-1,m+=en}if(m>E){f&&H(0);break}l&&d(p+131072);var eo=p+er;if(p<q){var es=a-q,el=Math.min(q,eo);for(es+p<0&&H(3);p<el;++p)r[p]=n[es+p]}for(;p<eo;++p)r[p]=r[p-q]}}t.l=w,t.p=ee,t.b=p,t.f=v,w&&(v=1,t.m=x,t.d=b,t.n=M)}while(!v);return p!=r.length&&s?$(r,0,p):r.subarray(0,p)},Z=function(e,t,r){r<<=7&t;var n=t/8|0;e[n]|=r,e[n+1]|=r>>8},P=function(e,t,r){r<<=7&t;var n=t/8|0;e[n]|=r,e[n+1]|=r>>8,e[n+2]|=r>>16},B=function(e,t){for(var r=[],n=0;n<e.length;++n)e[n]&&r.push({s:n,f:e[n]});var i=r.length,a=r.slice();if(!i)return{t:N,l:0};if(1==i){var l=new o(r[0].s+1);return l[r[0].s]=1,{t:l,l:1}}r.sort(function(e,t){return e.f-t.f}),r.push({s:-1,f:25001});var c=r[0],h=r[1],u=0,f=1,d=2;for(r[0]={s:-1,f:c.f+h.f,l:c,r:h};f!=i-1;)c=r[r[u].f<r[d].f?u++:d++],h=r[u!=f&&r[u].f<r[d].f?u++:d++],r[f++]={s:-1,f:c.f+h.f,l:c,r:h};for(var g=a[0].s,n=1;n<i;++n)a[n].s>g&&(g=a[n].s);var v=new s(g+1),m=R(r[f-1],v,0);if(m>t){var n=0,y=0,p=m-t,w=1<<p;for(a.sort(function(e,t){return v[t.s]-v[e.s]||e.f-t.f});n<i;++n){var b=a[n].s;if(v[b]>t)y+=w-(1<<m-v[b]),v[b]=t;else break}for(y>>=p;y>0;){var x=a[n].s;v[x]<t?y-=1<<t-v[x]++-1:++n}for(;n>=0&&y;--n){var T=a[n].s;v[T]==t&&(--v[T],++y)}m=t}return{t:new o(v),l:m}},R=function(e,t,r){return -1==e.s?Math.max(R(e.l,t,r+1),R(e.r,t,r+1)):t[e.s]=r},_=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new s(++t),n=0,i=e[0],a=1,o=function(e){r[n++]=e},l=1;l<=t;++l)if(e[l]==i&&l!=t)++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=e[l]}return{c:r.subarray(0,n),n:t}},S=function(e,t){for(var r=0,n=0;n<t.length;++n)r+=e[n]*t[n];return r},j=function(e,t,r){var n=r.length,i=z(t+2);e[i]=255&n,e[i+1]=n>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var a=0;a<n;++a)e[i+a+4]=r[a];return(i+4+n)*8},K=function(e,t,r,n,i,a,o,l,f,d,g){Z(t,g++,r),++i[256];for(var v,m,y,p,w=B(i,15),b=w.t,x=w.l,U=B(a,15),C=U.t,D=U.l,A=_(b),k=A.c,z=A.n,$=_(C),I=$.c,H=$.n,O=new s(19),R=0;R<k.length;++R)++O[31&k[R]];for(var R=0;R<I.length;++R)++O[31&I[R]];for(var K=B(O,7),W=K.t,N=K.l,V=19;V>4&&!W[u[V-1]];--V);var F=d+5<<3,J=S(i,M)+S(a,E)+o,q=S(i,b)+S(a,C)+o+14+3*V+S(O,W)+2*O[16]+3*O[17]+7*O[18];if(f>=0&&F<=J&&F<=q)return j(t,g,e.subarray(f,f+d));if(Z(t,g,1+(q<J)),g+=2,q<J){v=T(b,x,0),m=b,y=T(C,D,0),p=C;var G=T(W,N,0);Z(t,g,z-257),Z(t,g+5,H-1),Z(t,g+10,V-4),g+=14;for(var R=0;R<V;++R)Z(t,g+3*R,W[u[R]]);g+=3*V;for(var Q=[k,I],X=0;X<2;++X)for(var Y=Q[X],R=0;R<Y.length;++R){var ee=31&Y[R];Z(t,g,G[ee]),g+=W[ee],ee>15&&(Z(t,g,Y[R]>>5&127),g+=Y[R]>>12)}}else v=null,m=M,y=null,p=E;for(var R=0;R<l;++R){var et=n[R];if(et>255){var ee=et>>18&31;P(t,g,v[ee+257]),g+=m[ee+257],ee>7&&(Z(t,g,et>>23&31),g+=c[ee]);var er=31&et;P(t,g,y[er]),g+=p[er],er>3&&(P(t,g,et>>5&8191),g+=h[er])}else P(t,g,v[et]),g+=m[et]}return P(t,g,v[256]),g+m[256]},W=new l([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),N=new o(0),V=function(e,t,r,n,i,a){var u=a.z||e.length,f=new o(n+u+5*(1+Math.ceil(u/7e3))+i),d=f.subarray(n,f.length-i),g=a.l,m=7&(a.r||0);if(t){m&&(d[0]=a.r>>3);for(var y=W[t-1],w=y>>13,b=8191&y,x=(1<<r)-1,T=a.p||new s(32768),M=a.h||new s(x+1),E=Math.ceil(r/3),U=2*E,C=function(t){return(e[t]^e[t+1]<<E^e[t+2]<<U)&x},D=new l(25e3),A=new s(288),k=new s(32),I=0,H=0,O=a.i||0,Z=0,P=a.w||0,B=0;O+2<u;++O){var R=C(O),_=32767&O,S=M[R];if(T[_]=S,M[R]=_,P<=O){var N=u-O;if((I>7e3||Z>24576)&&(N>423||!g)){m=K(e,d,0,D,A,k,H,Z,B,O-B,m),Z=I=H=0,B=O;for(var V=0;V<286;++V)A[V]=0;for(var V=0;V<30;++V)k[V]=0}var F=2,J=0,q=b,G=_-S&32767;if(N>2&&R==C(O-G))for(var Q=Math.min(w,N)-1,X=Math.min(32767,O),Y=Math.min(258,N);G<=X&&--q&&_!=S;){if(e[O+F]==e[O+F-G]){for(var ee=0;ee<Y&&e[O+ee]==e[O+ee-G];++ee);if(ee>F){if(F=ee,J=G,ee>Q)break;for(var et=Math.min(G,ee-2),er=0,V=0;V<et;++V){var en=O-G+V&32767,ei=T[en],ea=en-ei&32767;ea>er&&(er=ea,S=en)}}}S=T[_=S],G+=_-S&32767}if(J){D[Z++]=268435456|v[F]<<18|p[J];var eo=31&v[F],es=31&p[J];H+=c[eo]+h[es],++A[257+eo],++k[es],P=O+F,++I}else D[Z++]=e[O],++A[e[O]]}}
1for(O=Math.max(O,P);O<u;++O)D[Z++]=e[O],++A[e[O]];m=K(e,d,g,D,A,k,H,Z,B,O-B,m),g||(a.r=7&m|d[m/8|0]<<3,m-=7,a.h=M,a.p=T,a.i=O,a.w=P)}else{for(var O=a.w||0;O<u+g;O+=65535){var el=O+65535;el>=u&&(d[m/8|0]=g,el=u),m=j(d,m+1,e.subarray(O,el))}a.i=u}return $(f,0,n+z(m)+i)},F=function(e){(31!=e[0]||139!=e[1]||8!=e[2])&&H(6,"invalid gzip data");var t=e[3],r=10;4&t&&(r+=(e[10]|e[11]<<8)+2);for(var n=(t>>3&1)+(t>>4&1);n>0;n-=!e[r++]);return r+(2&t)},J=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},q="undefined"!=typeof TextDecoder&&new TextDecoder;try{q.decode(N,{stream:!0})}catch(e){}"function"==typeof queueMicrotask?queueMicrotask:"function"==typeof setTimeout&&setTimeout;var G=Object.defineProperty,Q=Math.pow,X=(e,t)=>G(e,"name",{value:t,configurable:!0}),Y=(e,t,r)=>new Promise((n,i)=>{var a=e=>{try{s(r.next(e))}catch(e){i(e)}},o=e=>{try{s(r.throw(e))}catch(e){i(e)}},s=e=>e.done?n(e.value):Promise.resolve(e.value).then(a,o);s((r=r.apply(e,t)).next())});X((e,t)=>{let r=!1,n="";return new(L.GridLayer.extend({createTile:X((t,i)=>{let a=document.createElement("img"),o=new AbortController,s=o.signal;return a.cancel=()=>{o.abort()},r||(e.getHeader().then(e=>{1===e.tileType?console.error("Error: archive contains MVT vector tiles, but leafletRasterLayer is for displaying raster tiles. See https://github.com/protomaps/PMTiles/tree/main/js for details."):2===e.tileType?n="image/png":3===e.tileType?n="image/jpeg":4===e.tileType?n="image/webp":5===e.tileType&&(n="image/avif")}),r=!0),e.getZxy(t.z,t.x,t.y,s).then(e=>{if(e){let t=new Blob([e.data],{type:n}),r=window.URL.createObjectURL(t);a.src=r}else a.style.display="none";a.cancel=void 0,i(void 0,a)}).catch(e=>{if("AbortError"!==e.name)throw e}),a},"createTile"),_removeTile:X(function(e){let t=this._tiles[e];t&&(t.el.cancel&&t.el.cancel(),t.el.width=0,t.el.height=0,t.el.deleted=!0,L.DomUtil.remove(t.el),delete this._tiles[e],this.fire("tileunload",{tile:t.el,coords:this._keyToTileCoords(e)}))},"_removeTile")}))(t)},"leafletRasterLayer");var ee=X(e=>(t,r)=>{if(r instanceof AbortController)return e(t,r);let n=new AbortController;return e(t,n).then(e=>r(void 0,e.data,e.cacheControl||"",e.expires||""),e=>r(e)).catch(e=>r(e)),{cancel:X(()=>n.abort(),"cancel")}},"v3compat"),et=class{constructor(e){this.tilev4=X((e,t)=>Y(this,null,function*(){if("json"===e.type){let r=e.url.substr(10),n=this.tiles.get(r);if(n||(n=new eM(r),this.tiles.set(r,n)),this.metadata){let r=yield n.getTileJson(e.url);return t.signal.throwIfAborted(),{data:r}}let i=yield n.getHeader();return t.signal.throwIfAborted(),(i.minLon>=i.maxLon||i.minLat>=i.maxLat)&&console.error(`Bounds of PMTiles archive ${i.minLon},${i.minLat},${i.maxLon},${i.maxLat} are not valid.`),{data:{tiles:[`${e.url}/{z}/{x}/{y}`],minzoom:i.minZoom,maxzoom:i.maxZoom,bounds:[i.minLon,i.minLat,i.maxLon,i.maxLat]}}}let r=new RegExp(/pmtiles:\/\/(.+)\/(\d+)\/(\d+)\/(\d+)/),n=e.url.match(r);if(!n)throw Error("Invalid PMTiles protocol URL");let i=n[1],a=this.tiles.get(i);a||(a=new eM(i),this.tiles.set(i,a));let o=n[2],s=n[3],l=n[4],c=yield a.getHeader(),h=yield null==a?void 0:a.getZxy(+o,+s,+l,t.signal);if(t.signal.throwIfAborted(),h)return{data:new Uint8Array(h.data),cacheControl:h.cacheControl,expires:h.expires};if(1===c.tileType){if(this.errorOnMissingTile)throw Error("Tile not found.");return{data:new Uint8Array}}return{data:null}}),"tilev4"),this.tile=ee(this.tilev4),this.tiles=new Map,this.metadata=(null==e?void 0:e.metadata)||!1,this.errorOnMissingTile=(null==e?void 0:e.errorOnMissingTile)||!1}add(e){this.tiles.set(e.source.getKey(),e)}get(e){return this.tiles.get(e)}};X(et,"Protocol");var er=et;function en(e,t){return(t>>>0)*4294967296+(e>>>0)}function ei(e,t){let r=t.buf,n=r[t.pos++],i=(112&n)>>4;if(n<128||(i|=(127&(n=r[t.pos++]))<<3,n<128)||(i|=(127&(n=r[t.pos++]))<<10,n<128)||(i|=(127&(n=r[t.pos++]))<<17,n<128)||(i|=(127&(n=r[t.pos++]))<<24,n<128)||(i|=(1&(n=r[t.pos++]))<<31,n<128))return en(e,i);throw Error("Expected varint not more than 10 bytes")}function ea(e){let t=e.buf,r=t[e.pos++],n=127&r;return r<128||(n|=(127&(r=t[e.pos++]))<<7,r<128)||(n|=(127&(r=t[e.pos++]))<<14,r<128)||(n|=(127&(r=t[e.pos++]))<<21,r<128)?n:ei(n|=(15&(r=t[e.pos]
1))<<28,e)}function eo(e,t,r,n,i){return 0===i?0!==n?[e-1-r,e-1-t]:[r,t]:[t,r]}function es(e,t,r){if(e>26)throw Error("Tile zoom level exceeds max safe number limit (26)");if(t>=1<<e||r>=1<<e)throw Error("tile x/y outside zoom level bounds");let n=((1<<e)*(1<<e)-1)/3,i=e-1,[a,o]=[t,r];for(let e=1<<i;e>0;e>>=1){let t=a&e,r=o&e;n+=(3*t^r)*(1<<i),[a,o]=eo(e,a,o,t,r),i--}return n}function el(e){let t=3*e+1;return t<4294967296?31-Math.clz32(t):63-Math.clz32(t/4294967296)}X(en,"toNum"),X(ei,"readVarintRemainder"),X(ea,"readVarint"),X(eo,"rotate"),X(es,"zxyToTileId"),X(el,"tileIdToZ"),X(function(e){let t=el(e)>>1;if(t>26)throw Error("Tile zoom level exceeds max safe number limit (26)");let r=e-((1<<t)*(1<<t)-1)/3,n=0,i=0,a=1<<t;for(let e=1;e<a;e<<=1){let t=e&r/2,a=e&(r^t);[n,i]=eo(e,n,i,t,a),r/=2,n+=t,i+=a}return[t,n,i]},"tileIdToZxy");var ec=((n=ec||{})[n.Unknown=0]="Unknown",n[n.None=1]="None",n[n.Gzip=2]="Gzip",n[n.Brotli=3]="Brotli",n[n.Zstd=4]="Zstd",n);function eh(e,t){return Y(this,null,function*(){if(1===t||0===t)return e;if(2===t){if(void 0===globalThis.DecompressionStream){var r,n,i,a,s;return 31==(r=new Uint8Array(e))[0]&&139==r[1]&&8==r[2]?(i=void 0,(a=F(r))+8>r.length&&H(6,"invalid gzip data"),O(r.subarray(a,-8),{i:2},i&&i.out||new o(J(r)),i&&i.dictionary)):(15&r[0])!=8||r[0]>>4>7||(r[0]<<8|r[1])%31?O(r,{i:2},n&&n.out,n&&n.dictionary):O(r.subarray((s=n&&n.dictionary,((15&r[0])!=8||r[0]>>4>7||(r[0]<<8|r[1])%31)&&H(6,"invalid zlib data"),(r[1]>>5&1)==+!s&&H(6,"invalid zlib data: "+(32&r[1]?"need":"unexpected")+" dictionary"),(r[1]>>3&4)+2),-4),{i:2},n&&n.out,n&&n.dictionary)}let t=new Response(e).body;if(!t)throw Error("Failed to read response stream");return new Response(t.pipeThrough(new globalThis.DecompressionStream("gzip"))).arrayBuffer()}throw Error("Compression method not supported")})}X(eh,"defaultDecompress");var eu=((i=eu||{})[i.Unknown=0]="Unknown",i[i.Mvt=1]="Mvt",i[i.Png=2]="Png",i[i.Jpeg=3]="Jpeg",i[i.Webp=4]="Webp",i[i.Avif=5]="Avif",i[i.Mlt=6]="Mlt",i);function ef(e){return 1===e?".mvt":2===e?".png":3===e?".jpg":4===e?".webp":5===e?".avif":6===e?".mlt":""}function ed(e,t){let r=0,n=e.length-1;for(;r<=n;){let i=n+r>>1,a=t-e[i].tileId;if(a>0)r=i+1;else{if(!(a<0))return e[i];n=i-1}}return n>=0&&(0===e[n].runLength||t-e[n].tileId<e[n].runLength)?e[n]:null}X(ef,"tileTypeExt"),X(ed,"findTile"),X(class{constructor(e){this.file=e}getKey(){return this.file.name}getBytes(e,t){return Y(this,null,function*(){return{data:yield this.file.slice(e,e+t).arrayBuffer()}})}},"FileSource");var eg=class{constructor(e,t=new Headers){var r,n;this.url=e,this.customHeaders=t,this.mustReload=!1;let i="";"navigator"in globalThis&&(i=null!=(n=null==(r=globalThis.navigator)?void 0:r.userAgent)?n:"");let a=i.indexOf("Windows")>-1,o=/Chrome|Chromium|Edg|OPR|Brave/.test(i);this.chromeWindowsNoCache=!1,a&&o&&(this.chromeWindowsNoCache=!0)}getKey(){return this.url}setHeaders(e){this.customHeaders=e}getBytes(e,t,r,n){return Y(this,null,function*(){let i,a,o;a=r||(i=new AbortController).signal;let s=new Headers(this.customHeaders);s.set("range",`bytes=${e}-${e+t-1}`),this.mustReload?o="reload":this.chromeWindowsNoCache&&(o="no-store");let l=yield fetch(this.url,{signal:a,cache:o,headers:s});if(0===e&&416===l.status){let e=l.headers.get("Content-Range");if(!e||!e.startsWith("bytes */"))throw Error("Missing content-length on 416 response");let t=+e.substr(8);l=yield fetch(this.url,{signal:a,cache:"reload",headers:{range:`bytes=0-${t-1}`}})}let c=l.headers.get("Etag");if(null!=c&&c.startsWith("W/")&&(c=null),416===l.status||n&&c&&c!==n)throw this.mustReload=!0,new ew(`Server returned non-matching ETag ${n} after one retry. Check browser extensions and servers for issues that may affect correct ETag headers.`);if(l.status>=300)throw Error(`Bad response code: ${l.status}`);let h=l.headers.get("Content-Length");if(200===l.status&&(!h||+h>t))throw i&&i.abort(),Error("Server returned no content-length header or content-length exceeding request. Check that your storage backend supports HTTP Byte Serving.");return{data:yield l.arrayBuffer(),etag:c||void 0,cacheControl:l.headers.get("Cache-Control")||void 0,expires:l.headers.get("Expires")||void 0}})}};function ev(e,t){let r=e.getUint32(t+4,!0),n=e.getUint32(t+0,!0);return r*Q(2,32)+n}function em(e,t){let r=new DataView(e),n=r.getUint8(7);if(n>3)throw Error(`Archive is spec version ${n} but this library supports up to spec version 3`);return{specVersion:n,rootDirectoryOffset:ev(r,8),rootDirectoryLength:ev(r,16),jsonMetadataOffset:ev(r,24),jsonMetadataLength:ev(r,32),leafDirectoryOffset:ev(r,40),leafDirectoryLength:ev(r,48),tileDataOffset:ev(r,56),tileDataLength:ev(r,64),numAddressedTiles:ev(r,72),numTileEntries:ev(r,80),numTileContents:ev(r,88),clustered:1===r.getUint8(96),internalCompression:r.getUint8(97),tileCompression:r.getUint8(98),tileType:r.getUint8(99),minZoom:r.getUint8(100),maxZoom:r.getUint8(101),minLon:r.getInt32(102,!0)/1e7,minLat:r.getInt32(106,!0)/1e7,maxLon:r.getInt32(110,!0)/1e7,maxLat:r.getInt32(114,!0)/1e7,centerZoom:r.getUint8(118),centerLon:r.getInt32(119,!0)/1e7,centerLat:r.getInt32(123,!0)/1e7,etag:t}}function ey(e){let t={buf:new Uint8Array(e),pos:0},r=ea(t),n=[],i=0;for(let e=0;e<r;e++){let e=ea(t);n.push({tileId:i+e,offset:0,length:0,runLength:1}),i+=e}for(let e=0;e<r;e++)n[e].runLength=ea(t);for(let e=0;e<r;e++)n[e].length=ea(t);for(let e=0;e<r;e++){let r=ea(t);0===r&&e>0?n[e].offset=n[e-1].offset+n[e-1].length:n[e].offset=r-1}return n}X(eg,"FetchSource"),X(ev,"getUint64"),X(em,"bytesToHeader"),X(ey,"deserializeIndex");
1var ep=class extends Error{};X(ep,"EtagMismatch");var ew=ep;function eb(e,t){return Y(this,null,function*(){let r=yield e.getBytes(0,16384);if(19792!==new DataView(r.data).getUint16(0,!0))throw Error("Wrong magic number for PMTiles archive");let n=em(r.data.slice(0,127),r.etag),i=r.data.slice(n.rootDirectoryOffset,n.rootDirectoryOffset+n.rootDirectoryLength),a=`${e.getKey()}|${n.etag||""}|${n.rootDirectoryOffset}|${n.rootDirectoryLength}`,o=ey((yield t(i,n.internalCompression)));return[n,[a,o.length,o]]})}function ex(e,t,r,n,i){return Y(this,null,function*(){let a=yield e.getBytes(r,n,void 0,i.etag),o=ey((yield t(a.data,i.internalCompression)));if(0===o.length)throw Error("Empty directory is invalid");return o})}X(eb,"getHeaderAndRoot"),X(ex,"getDirectory"),X(class{constructor(e=100,t=!0,r=eh){this.cache=new Map,this.maxCacheEntries=e,this.counter=1,this.decompress=r}getHeader(e){return Y(this,null,function*(){let t=e.getKey(),r=this.cache.get(t);if(r)return r.lastUsed=this.counter++,r.data;let n=yield eb(e,this.decompress);return n[1]&&this.cache.set(n[1][0],{lastUsed:this.counter++,data:n[1][2]}),this.cache.set(t,{lastUsed:this.counter++,data:n[0]}),this.prune(),n[0]})}getDirectory(e,t,r,n){return Y(this,null,function*(){let i=`${e.getKey()}|${n.etag||""}|${t}|${r}`,a=this.cache.get(i);if(a)return a.lastUsed=this.counter++,a.data;let o=yield ex(e,this.decompress,t,r,n);return this.cache.set(i,{lastUsed:this.counter++,data:o}),this.prune(),o})}prune(){if(this.cache.size>this.maxCacheEntries){let e=1/0,t;this.cache.forEach((r,n)=>{r.lastUsed<e&&(e=r.lastUsed,t=n)}),t&&this.cache.delete(t)}}invalidate(e){return Y(this,null,function*(){this.cache.delete(e.getKey())})}},"ResolvedValueCache");var eT=class{constructor(e=100,t=!0,r=eh){this.cache=new Map,this.invalidations=new Map,this.maxCacheEntries=e,this.counter=1,this.decompress=r}getHeader(e){return Y(this,null,function*(){let t=e.getKey(),r=this.cache.get(t);if(r)return r.lastUsed=this.counter++,yield r.data;let n=new Promise((t,r)=>{eb(e,this.decompress).then(e=>{e[1]&&this.cache.set(e[1][0],{lastUsed:this.counter++,data:Promise.resolve(e[1][2])}),t(e[0]),this.prune()}).catch(e=>{r(e)})});return this.cache.set(t,{lastUsed:this.counter++,data:n}),n})}getDirectory(e,t,r,n){return Y(this,null,function*(){let i=`${e.getKey()}|${n.etag||""}|${t}|${r}`,a=this.cache.get(i);if(a)return a.lastUsed=this.counter++,yield a.data;let o=new Promise((i,a)=>{ex(e,this.decompress,t,r,n).then(e=>{i(e),this.prune()}).catch(e=>{a(e)})});return this.cache.set(i,{lastUsed:this.counter++,data:o}),o})}prune(){if(this.cache.size>=this.maxCacheEntries){let e=1/0,t;this.cache.forEach((r,n)=>{r.lastUsed<e&&(e=r.lastUsed,t=n)}),t&&this.cache.delete(t)}}invalidate(e){return Y(this,null,function*(){let t=e.getKey();if(this.invalidations.get(t))return yield this.invalidations.get(t);this.cache.delete(e.getKey());let r=new Promise((r,n)=>{this.getHeader(e).then(e=>{r(),this.invalidations.delete(t)}).catch(e=>{n(e)})});this.invalidations.set(t,r)})}};X(eT,"SharedPromiseCache");var eL=class{constructor(e,t,r){"string"==typeof e?this.source=new eg(e):this.source=e,r?this.decompress=r:this.decompress=eh,t?this.cache=t:this.cache=new eT}getHeader(){return Y(this,null,function*(){return yield this.cache.getHeader(this.source)})}getZxyAttempt(e,t,r,n){return Y(this,null,function*(){let i=es(e,t,r),a=yield this.cache.getHeader(this.source);if(e<a.minZoom||e>a.maxZoom)return;let o=a.rootDirectoryOffset,s=a.rootDirectoryLength;for(let e=0;e<=3;e++){let e=ed((yield this.cache.getDirectory(this.source,o,s,a)),i);if(!e)return;if(e.runLength>0){let t=yield this.source.getBytes(a.tileDataOffset+e.offset,e.length,n,a.etag);return{data:yield this.decompress(t.data,a.tileCompression),cacheControl:t.cacheControl,expires:t.expires}}o=a.leafDirectoryOffset+e.offset,s=e.length}throw Error("Maximum directory depth exceeded")})}getZxy(e,t,r,n){return Y(this,null,function*(){try{return yield this.getZxyAttempt(e,t,r,n)}catch(i){if(i instanceof ew)return this.cache.invalidate(this.source),yield this.getZxyAttempt(e,t,r,n);throw i}})}getMetadataAttempt(){return Y(this,null,function*(){let e=yield this.cache.getHeader(this.source),t=yield this.source.getBytes(e.jsonMetadataOffset,e.jsonMetadataLength,void 0,e.etag),r=yield this.decompress(t.data,e.internalCompression);return JSON.parse(new TextDecoder("utf-8").decode(r))})}getMetadata(){return Y(this,null,function*(){try{return yield this.getMetadataAttempt()}catch(e){if(e instanceof ew)return this.cache.invalidate(this.source),yield this.getMetadataAttempt();throw e}})}getTileJson(e){return Y(this,null,function*(){let t=yield this.getHeader(),r
1=yield this.getMetadata(),n=ef(t.tileType);return{tilejson:"3.0.0",scheme:"xyz",tiles:[`${e}/{z}/{x}/{y}${n}`],vector_layers:r.vector_layers,attribution:r.attribution,description:r.description,name:r.name,version:r.version,bounds:[t.minLon,t.minLat,t.maxLon,t.maxLat],center:[t.centerLon,t.centerLat,t.centerZoom],minzoom:t.minZoom,maxzoom:t.maxZoom}})}};X(eL,"PMTiles");var eM=eL}}]);

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.