You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

4 lines
70 KiB
JavaScript

(self.webpackChunk=self.webpackChunk||[]).push([[3696],{22243:function(e,t,a){"use strict";function r(e,t){var a=e.length-t,r=0;do{for(var n=t;n>0;n--)e[r+t]+=e[r],r++;a-=t}while(a>0)}function n(e,t,a){for(var r=0,n=e.length,i=n/a;n>t;){for(var s=t;s>0;--s)e[r+t]+=e[r],++r;n-=t}for(var o=e.slice(),l=0;l<i;++l)for(var f=0;f<a;++f)e[a*l+f]=o[(a-f-1)*i+l]}function i(e,t,a,i,s,o){if(!t||1===t)return e;for(var l=0;l<s.length;++l){if(s[l]%8!=0)throw new Error("When decoding with predictor, only multiple of 8 bits are supported.");if(s[l]!==s[0])throw new Error("When decoding with predictor, all samples must have the same size.")}for(var f=s[0]/8,h=2===o?1:s.length,d=0;d<i&&!(d*h*a*f>=e.byteLength);++d){var u=void 0;if(2===t){switch(s[0]){case 8:u=new Uint8Array(e,d*h*a*f,h*a*f);break;case 16:u=new Uint16Array(e,d*h*a*f,h*a*f/2);break;case 32:u=new Uint32Array(e,d*h*a*f,h*a*f/4);break;default:throw new Error("Predictor 2 not allowed with ".concat(s[0]," bits per sample."))}r(u,h)}else 3===t&&n(u=new Uint8Array(e,d*h*a*f,h*a*f),h,f)}return e}function s(e,t,a,r,n,i,s){try{var o=e[i](s),l=o.value}catch(e){return void a(e)}o.done?t(l):Promise.resolve(l).then(r,n)}function o(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}a.d(t,{Z:function(){return l}});var l=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,a,r,n,l;return t=e,(a=[{key:"decode",value:(n=regeneratorRuntime.mark((function e(t,a){var r,n,s,o,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.decodeBlock(a);case 2:if(r=e.sent,1===(n=t.Predictor||1)){e.next=9;break}return s=!t.StripOffsets,o=s?t.TileWidth:t.ImageWidth,l=s?t.TileLength:t.RowsPerStrip||t.ImageLength,e.abrupt("return",i(r,n,o,l,t.BitsPerSample,t.PlanarConfiguration));case 9:return e.abrupt("return",r);case 10:case"end":return e.stop()}}),e,this)})),l=function(){var e=this,t=arguments;return new Promise((function(a,r){var i=n.apply(e,t);function o(e){s(i,a,r,o,l,"next",e)}function l(e){s(i,a,r,o,l,"throw",e)}o(void 0)}))},function(e,t){return l.apply(this,arguments)})}])&&o(t.prototype,a),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()},73696:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return _}});var r=a(16042),n=a(96797),i=a.n(n),s=a(22243),o=a(90535);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=c(e);if(t){var n=c(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return u(this,a)}}function u(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writa
/* Copyright 2015-2021 Esri. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 @preserve */r={defaultNoDataValue:-34027999387901484e22,decode:function(e,t){var a=(t=t||{}).encodedMaskData||null===t.encodedMaskData,l=o(e,t.inputOffset||0,a),f=null!==t.noDataValue?t.noDataValue:r.defaultNoDataValue,h=n(l,t.pixelType||Float32Array,t.encodedMaskData,f,t.returnMask),d={width:l.width,height:l.height,pixelData:h.resultPixels,minValue:h.minValue,maxValue:l.pixels.maxValue,noDataValue:f};return h.resultMask&&(d.maskData=h.resultMask),t.returnEncodedMask&&l.mask&&(d.encodedMaskData=l.mask.bitset?l.mask.bitset:null),t.returnFileInfo&&(d.fileInfo=i(l),t.computeUsedBitDepths&&(d.fileInfo.bitDepths=s(l))),d}},n=function(e,t,a,r,n){var i,s,o,f=0,h=e.pixels.numBlocksX,d=e.pixels.numBlocksY,u=Math.floor(e.width/h),c=Math.floor(e.height/d),_=2*e.maxZError,p=Number.MAX_VALUE;a=a||(e.mask?e.mask.bitset:null),s=new t(e.width*e.height),n&&a&&(o=new Uint8Array(e.width*e.height));for(var m,w,g=new Float32Array(u*c),b=0;b<=d;b++){var v=b!==d?c:e.height%d;if(0!==v)for(var k=0;k<=h;k++){var y=k!==h?u:e.width%h;if(0!==y){var x,A,U,z,I=b*e.width*c+k*u,D=e.width-y,S=e.pixels.blocks[f];if(S.encoding<2?(0===S.encoding?x=S.rawData:(l(S.stuffedData,S.bitsPerPixel,S.numValidPixels,S.offset,_,g,e.pixels.maxValue),x=g),A=0):U=2===S.encoding?0:S.offset,a)for(w=0;w<v;w++){for(7&I&&(z=a[I>>3],z<<=7&I),m=0;m<y;m++)7&I||(z=a[I>>3]),128&z?(o&&(o[I]=1),p=p>(i=S.encoding<2?x[A++]:U)?i:p,s[I++]=i):(o&&(o[I]=0),s[I++]=r),z<<=1;I+=D}else if(S.encoding<2)for(w=0;w<v;w++){for(m=0;m<y;m++)p=p>(i=x[A++])?i:p,s[I++]=i;I+=D}else for(p=p>U?U:p,w=0;w<v;w++){for(m=0;m<y;m++)s[I++]=U;I+=D}if(1===S.encoding&&A!==S.numValidPixels)throw"Block and Mask do not match";f++}}}return{resultPixels:s,resultMask:o,minValue:p}},i=function(e){return{fileIdentifierString:e.fileIdentifierString,fileVersion:e.fileVersion,imageType:e.imageType,height:e.height,width:e.width,maxZError:e.maxZError,eofOffset:e.eofOffset,mask:e.mask?{numBlocksX:e.mask.numBlocksX,numBlocksY:e.mask.numBlocksY,numBytes:e.mask.numBytes,maxValue:e.mask.maxValue}:null,pixels:{numBlocksX:e.pixels.numBlocksX,numBlocksY:e.pixels.numBlocksY,numBytes:e.pixels.numBytes,maxValue:e.pixels.maxValue,noDataValue:e.noDataValue}}},s=function(e){for(var t=e.pixels.numBlocksX*e.pixels.numBlocksY,a={},r=0;r<t;r++){var n=e.pixels.blocks[r];0===n.encoding?a.float32=!0:1===n.encoding?a[n.bitsPerPixel]=!0:a[0]=!0}return Object.keys(a)},o=function(e,t,a){var r={},n=new Uint8Array(e,t,10);if(r.fileIdentifierString=String.fromCharCode.apply(null,n),"CntZImage"!==r.fileIdentifierString.trim())throw"Unexpected file identifier string: "+r.fileIdentifierString;t+=10;var i=new DataView(e,t,24);if(r.fileVersion=i.getInt32(0,!0),r.imageType=i.getInt32(4,!0),r.height=i.getUint32(8,!0),r.width=i.getUint32(12,!0),r.maxZError=i.getFloat64(16,!0),t+=24,!a)if(i=new DataView(e,t,16),r.mask={},r.mask.numBlocksY=i.getUint32(0,!0),r.mask.numBlocksX=i.getUint32(4,!0),r.mask.numBytes=i.getUint32(8,!0),r.mask.maxValue=i.getFloat32(12,!0),t+=16,r.mask.numBytes>0){var s=new Uint8Array(Math.ceil(r.width*r.height/8)),o=(i=new DataView(e,t,r.mask.numBytes)).getInt16(0,!0),l=2,f=0;do{if(o>0)for(;o--;)s[f++]=i.getUint8(l++);else{var h=i.getUint8(l++);for(o=-o;o--;)s[f++]=h}o=i.getInt16(l,!0),l+=2}while(l<r.mask.numBytes);if(-32768!==o||f<s.length)throw"Unexpected end of mask RLE encoding";r.mask.bitset=s,t+=r.mask.numBytes}else 0==(r.mask.numBytes|r.mask.numBlocksY|r.mask.maxValue)&&(r.mask.bitset=new Uint8Array(Math.ceil(r.width*r.height/8)));i=new DataView(e,t,16),r.pixels={},r.pixels.numBlocksY=i.getUint32(0,!0),r.pixels.numBlocksX=i.getUint32(4,!0),r.pixels.numBytes=i.getUint32(8,!0),r.pixels.maxValue=i.getFloat32(12,!0),t+=16;var d=r.pixels.numBlocksX,u=r.pixels.numBlocksY,c=d+(r.width%d>0?1:0),_=u+(r.height%u>0?1:0);r.pixels.blocks=new Array(c*_);for(var p=0,m=0;m<_;m++)for(var w=0;w<c;w++){var g=0,b=e.byt
/*! pako 2.0.4 https://github.com/nodeca/pako @license (MIT AND Zlib) */a.d(t,{rr:function(){return Jt}});function n(e){for(var t=e.length;--t>=0;)e[t]=0}var i=256,s=286,o=30,l=15,f=new Uint8Array([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]),h=new Uint8Array([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]),d=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),u=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),c=new Array(576);n(c);var _=new Array(60);n(_);var p=new Array(512);n(p);var m=new Array(256);n(m);var w=new Array(29);n(w);var g,b,v,k=new Array(o);function y(e,t,a,r,n){this.static_tree=e,this.extra_bits=t,this.extra_base=a,this.elems=r,this.max_length=n,this.has_stree=e&&e.length}function x(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}n(k);var A=function(e){return e<256?p[e]:p[256+(e>>>7)]},U=function(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255},z=function(e,t,a){e.bi_valid>16-a?(e.bi_buf|=t<<e.bi_valid&65535,U(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=a-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=a)},I=function(e,t,a){z(e,a[2*t],a[2*t+1])},D=function(e,t){var a=0;do{a|=1&e,e>>>=1,a<<=1}while(--t>0);return a>>>1},S=function(e,t,a){var r,n,i=new Array(16),s=0;for(r=1;r<=l;r++)i[r]=s=s+a[r-1]<<1;for(n=0;n<=t;n++){var o=e[2*n+1];0!==o&&(e[2*n]=D(i[o]++,o))}},E=function(e){var t;for(t=0;t<s;t++)e.dyn_ltree[2*t]=0;for(t=0;t<o;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0},B=function(e){e.bi_valid>8?U(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},M=function(e,t,a,r){var n=2*t,i=2*a;return e[n]<e[i]||e[n]===e[i]&&r[t]<=r[a]},T=function(e,t,a){for(var r=e.heap[a],n=a<<1;n<=e.heap_len&&(n<e.heap_len&&M(t,e.heap[n+1],e.heap[n],e.depth)&&n++,!M(t,r,e.heap[n],e.depth));)e.heap[a]=e.heap[n],a=n,n<<=1;e.heap[a]=r},R=function(e,t,a){var r,n,s,o,l=0;if(0!==e.last_lit)do{r=e.pending_buf[e.d_buf+2*l]<<8|e.pending_buf[e.d_buf+2*l+1],n=e.pending_buf[e.l_buf+l],l++,0===r?I(e,n,t):(s=m[n],I(e,s+i+1,t),0!==(o=f[s])&&(n-=w[s],z(e,n,o)),r--,s=A(r),I(e,s,a),0!==(o=h[s])&&(r-=k[s],z(e,r,o)))}while(l<e.last_lit);I(e,256,t)},V=function(e,t){var a,r,n,i=t.dyn_tree,s=t.stat_desc.static_tree,o=t.stat_desc.has_stree,f=t.stat_desc.elems,h=-1;for(e.heap_len=0,e.heap_max=573,a=0;a<f;a++)0!==i[2*a]?(e.heap[++e.heap_len]=h=a,e.depth[a]=0):i[2*a+1]=0;for(;e.heap_len<2;)i[2*(n=e.heap[++e.heap_len]=h<2?++h:0)]=1,e.depth[n]=0,e.opt_len--,o&&(e.static_len-=s[2*n+1]);for(t.max_code=h,a=e.heap_len>>1;a>=1;a--)T(e,i,a);n=f;do{a=e.heap[1],e.heap[1]=e.heap[e.heap_len--],T(e,i,1),r=e.heap[1],e.heap[--e.heap_max]=a,e.heap[--e.heap_max]=r,i[2*n]=i[2*a]+i[2*r],e.depth[n]=(e.depth[a]>=e.depth[r]?e.depth[a]:e.depth[r])+1,i[2*a+1]=i[2*r+1]=n,e.heap[1]=n++,T(e,i,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var a,r,n,i,s,o,f=t.dyn_tree,h=t.max_code,d=t.stat_desc.static_tree,u=t.stat_desc.has_stree,c=t.stat_desc.extra_bits,_=t.stat_desc.extra_base,p=t.stat_desc.max_length,m=0;for(i=0;i<=l;i++)e.bl_count[i]=0;for(f[2*e.heap[e.heap_max]+1]=0,a=e.heap_max+1;a<573;a++)(i=f[2*f[2*(r=e.heap[a])+1]+1]+1)>p&&(i=p,m++),f[2*r+1]=i,r>h||(e.bl_count[i]++,s=0,r>=_&&(s=c[r-_]),o=f[2*r],e.opt_len+=o*(i+s),u&&(e.static_len+=o*(d[2*r+1]+s)));if(0!==m){do{for(i=p-1;0===e.bl_count[i];)i--;e.bl_count[i]--,e.bl_count[i+1]+=2,e.bl_count[p]--,m-=2}while(m>0);for(i=p;0!==i;i--)for(r=e.bl_count[i];0!==r;)(n=e.heap[--a])>h||(f[2*n+1]!==i&&(e.opt_len+=(i-f[2*n+1])*f[2*n],f[2*n+1]=i),r--)}}(e,t),S(i,h,e.bl_count)},P=function(e,t,a){var r,n,i=-1,s=t[1],o=0,l=7,f=4;for(0===s&&(l=138,f=3),t[2*(a+1)+1]=65535,r=0;r<=a;r++)n=s,s=t[2*(r+1)+1],++o<l&&n===s||(o<f?e.bl_tree[2*n]+=o:0!==n?(n!==i&&e.bl_tree[2*n]++,e.bl_tree[32]++):o<=10?e.bl_tree[34]++:e.bl_tree[36]++,o=0,i=n,0===s?(l=138,f=3):n===s?(l=6,f=3):(l=7,f=4))},O=function(e,t,a){var r,n,i=-1,s=t[1],o=0,l=7,f=4;for(0===s&&(l=138,f=3),r=0;r<=a;r++)if(n=s,s=t[2*(r+1)+1],!(++o<l&&n===s)){if(o<f)do{I(e,n
//# sourceMappingURL=3696.js.map