@arcgis/core 5.2.0-next.64 → 5.2.0-next.65
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.
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{bb95922cd4631d6f17fb.js → 04ac5ac6f592d8c34bbd.js} +1 -1
- package/assets/esri/core/workers/chunks/{0977f4d77c36175c2895.js → 3ddd717ea12d9823eee2.js} +1 -1
- package/assets/esri/core/workers/chunks/5adf16c034a590b5e9f5.js +1 -0
- package/assets/esri/core/workers/chunks/{57824ecc10b25e3ad794.js → 903e1cd8b76eff19ebdf.js} +1 -1
- package/assets/esri/core/workers/chunks/93c0a620a147cbf4a0ba.js +1 -0
- package/assets/esri/core/workers/chunks/9be6827e5756031a56c1.js +1 -0
- package/assets/esri/core/workers/chunks/a52c88e2d837b525ff6c.js +1 -0
- package/assets/esri/core/workers/chunks/{771ead806efbe9c91fdc.js → a5fdb02b1714e93fa69e.js} +1 -1
- package/assets/esri/core/workers/chunks/b4e5ee81b9eb171499a6.js +1 -0
- package/assets/esri/core/workers/chunks/bece22668622a9a6bfe2.js +1 -0
- package/assets/esri/core/workers/chunks/c02ae1d40c1fe95ae6c5.js +1 -0
- package/assets/esri/core/workers/chunks/d51c41c1944df0cbab3e.js +1 -0
- package/assets/esri/core/workers/chunks/d583bcea4d1a21da9147.js +1 -0
- package/assets/esri/core/workers/chunks/{ef27bf1d7941ae265ca4.js → d7267f429a051943187b.js} +1 -1
- package/assets/esri/core/workers/chunks/d9c78c2db04a06ee83ed.js +1 -0
- package/assets/esri/core/workers/chunks/{c1e45e24f5ef719a714c.js → dc7e4f7879debf557e46.js} +143 -95
- package/assets/esri/libs/parquet/pkg/bundle_bg.wasm +0 -0
- package/chunks/Component.glsl.js +60 -62
- package/chunks/DefaultMaterial.glsl.js +27 -28
- package/chunks/GaussianSplat.glsl.js +7 -7
- package/chunks/GaussianSplatShadow.glsl.js +9 -9
- package/chunks/GlobalIllumination.glsl.js +35 -15
- package/chunks/Path.glsl.js +7 -6
- package/chunks/RealisticTree.glsl.js +22 -24
- package/chunks/SSAO.glsl.js +1 -1
- package/chunks/Terrain.glsl.js +3 -2
- package/chunks/Water.glsl.js +20 -11
- package/chunks/_commonjsHelpers.js +1 -1
- package/chunks/bundle2.js +1 -1
- package/config.js +1 -1
- package/kernel.js +1 -1
- package/layers/graphics/sources/ParquetSource.js +1 -1
- package/layers/graphics/sources/parquet/FileProvider.js +1 -1
- package/layers/graphics/sources/parquet/ParquetFileInfo.js +1 -1
- package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
- package/layers/raster/datasets/EphemeralBlockCache.js +1 -1
- package/layers/raster/datasets/RawBlockCache.js +1 -1
- package/layers/support/KMLSublayer.js +1 -1
- package/layers/video/VideoController.js +1 -1
- package/libs/parquet/parquet.js +1 -1
- package/package.json +1 -1
- package/rest/support/Query.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/LabelSymbol3D.js +1 -1
- package/symbols/LineSymbol3D.js +1 -1
- package/symbols/MeshSymbol3D.js +1 -1
- package/symbols/PointSymbol3D.js +1 -1
- package/symbols/PolygonSymbol3D.js +1 -1
- package/views/2d/layers/features/sources/strategies/ParquetTileLoadStrategy.js +1 -1
- package/views/3d/interactive/editingTools/transform/TransformTool3D.js +1 -1
- package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/state/controllers/RotateController.js +1 -1
- package/views/3d/state/utils/navigationUtils.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatDataStore.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatFadeHelper.js +1 -1
- package/views/3d/terrain/OverlayRenderer.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/default/DefaultMaterialAuxiliaryPasses.glsl.js +24 -16
- package/views/3d/webgl-engine/core/shaderLibrary/default/DefaultMaterialExternalColor.glsl.js +25 -0
- package/views/3d/webgl-engine/lib/GaussianSplatRenderUtils.js +2 -0
- package/views/3d/webgl-engine/lib/GaussianSplatRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/GaussianSplatShadows.js +1 -1
- package/views/3d/webgl-engine/shaders/DefaultMaterial.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/GaussianSplat.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/GaussianSplatPassParameters.js +2 -0
- package/views/3d/webgl-engine/shaders/GaussianSplatShadow.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/GaussianSplatShadowTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/GaussianSplatTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/RealisticTree.glsl.js +1 -1
- package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
- package/widgets/BatchAttributeForm/expressions/ExpressionsManager.js +1 -1
- package/widgets/BatchAttributeForm/expressions/ExpressionsModel.js +1 -1
- package/widgets/LayerList/ListItem.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/services/SuperimposeService.js +1 -1
- package/widgets/OrientedImageryViewer/services/TransformationService.js +1 -1
- package/widgets/OrientedImageryViewer/support/superimposeUtils.js +1 -1
- package/widgets/OrientedImageryViewer.js +1 -1
- package/widgets/TableList/ListItem.js +1 -1
- package/assets/esri/core/workers/chunks/43b39abd49c4a8ce891f.js +0 -1
- package/assets/esri/core/workers/chunks/5dbd8ca7e7b8eb9a0bf7.js +0 -1
- package/assets/esri/core/workers/chunks/6123894e2ae9233cdf89.js +0 -1
- package/assets/esri/core/workers/chunks/6b536d03b4bef408035b.js +0 -1
- package/assets/esri/core/workers/chunks/6c98a64d92c9bca78203.js +0 -1
- package/assets/esri/core/workers/chunks/78b80da3bbc1b608fe83.js +0 -1
- package/assets/esri/core/workers/chunks/7d85048c6cd6ad84faf9.js +0 -1
- package/assets/esri/core/workers/chunks/9008090a5d8431ddfa22.js +0 -1
- package/assets/esri/core/workers/chunks/a2d8bc0efddd2e13b1ad.js +0 -1
- package/assets/esri/core/workers/chunks/c97451f75c23be979476.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3500],{49859(e,t,n){n.d(t,{A:()=>L});var i=n(5482),r=n(11254),o=n(49186),s=n(25482),l=n(53966),a=n(17676),c=n(563),u=n(91429),h=n(56507),f=n(5443),m=n(86738),d=n(16930),p=n(7548),x=n(4366),g=n(37373);const y=new Map,I=new class{constructor(e=15e3,t=5e3,n=-1){this._timer=null,this._cachedBlocks=new Map,this._size=-1,this._duration=e,this._interval=Math.min(e,t),this._size=n}decreaseRefCount(e,t){const n=e+"/"+t,i=this._cachedBlocks;if(i.has(n)){const e=i.get(n);return e.refCount--,e.refCount<=0&&(i.delete(n),e.controller&&e.controller.abort()),e.refCount}return 0}getBlock(e,t){const n=e+"/"+t,i=this._cachedBlocks;if(i.has(n)){const e=i.get(n);return e.ts=Date.now(),e.refCount++,i.delete(n),i.set(n,e),e.block}return null}putBlock(e,t,n,i){const r=this._cachedBlocks,o=e+"/"+t;if(r.has(o)){const e=r.get(o);e.ts=Date.now(),e.refCount++}else r.set(o,{block:n,ts:Date.now(),refCount:1,controller:i});this._trim(),this._updateTimer()}deleteBlock(e,t){const n=this._cachedBlocks,i=e+"/"+t;n.has(i)&&n.delete(i)}updateMaxSize(e){this._size=e,this._trim()}empty(){this._cachedBlocks.clear(),this._clearTimer()}getCurrentSize(){return this._cachedBlocks.size}_updateTimer(){if(null!=this._timer)return;const e=this._cachedBlocks;this._timer=setInterval(()=>{const t=Array.from(e),n=Date.now();for(let i=0;i<t.length&&t[i][1].ts<=n-this._duration;i++)e.delete(t[i][0]);0===e.size&&this._clearTimer()},this._interval)}_trim(){const e=this._cachedBlocks;if(-1===this._size||this._size>=e.size)return;const t=Array.from(e).sort((e,t)=>e[1].refCount-t[1].refCount||e[1].ts-t[1].ts);for(let n=0;n<t.length-this._size;n++)e.delete(t[n][0])}_clearTimer(){null!=this._timer&&(clearInterval(this._timer),this._timer=null)}}(15e3,5e3,100);function w(e,t,n){const i=y.get(e);if(!i)return null==t?I.decreaseRefCount(e,n):0;if(null==t||null==i[t])return I.decreaseRefCount(e,n);const r=i[t]?.cache,o=r?.get(n);if(r&&o){if(o.refCount--,0===o.refCount){r.delete(n);for(let e=0;e<i.length;e++)i[e]?.cache.delete(n);o.controller&&o.controller.abort()}return o.refCount}return 0}function R(e,t,n){const i=y.get(e);if(!i)return null==t?I.getBlock(e,n):null;if(null==t||null==i[t]){for(let e=0;e<i.length;e++){const t=i[e]?.cache.get(n);if(t)return t.refCount++,t.block}return I.getBlock(e,n)}const r=i[t]?.cache.get(n);if(r)return r.refCount++,r.block;for(let e=0;e<i.length;e++){if(e===t||!i[e])continue;const r=i[e]?.cache,o=r?.get(n);if(r&&o)return o.refCount++,r.set(n,o),o.block}return null}function k(e,t,n,i,r=null){const o=y.get(e);if(!o)return void(null==t&&I.putBlock(e,n,i,r));if(null==t||null==o[t])return void I.putBlock(e,n,i,r);const s={refCount:1,block:i,isResolved:!1,isRejected:!1,controller:r};i.then(()=>s.isResolved=!0).catch(()=>s.isRejected=!0),o[t]?.cache.set(n,s)}function _(e,t,n){const i=y.get(e);i?null!=t&&null!=i[t]?i[t]?.cache.delete(n):I.deleteBlock(e,n):null==t&&I.deleteBlock(e,n)}var b=n(94778),v=n(96271),S=n(34930),C=n(47520),T=n(34251),B=n(60694),M=n(10873),P=n(45617),A=n(91806),z=n(20223),W=n(87045);let H=0,L=class extends s.o{constructor(){super(...arguments),this._tileFetchQueue=new c.QueueProcessor({concurrency:32,process:(e,t)=>this.fetchRawTile(e.pyramidLevel,e.row,e.col,{...e.options,signal:t})}),this.datasetName=null,this.datasetFormat=null,this.hasUniqueSourceStorageInfo=!0,this.rasterInfo=null,this.ioConfig={sampling:"closest"},this.rawBlockRegistryIds=[],this.refresh=(0,a.sg)(async e=>{await this._openPromise;const t=await this._refresh(e);return t.dataChanged&&function(e,t){const n=y.get(e);if(n){const e=t.map(e=>n[e]).filter(e=>null!=e);for(const t of e)t&&(Array.from(t.cache.values()).forEach(e=>{e.isResolved||e.isRejected||!e.controller||e.controller.abort()}),t.cache.clear())}}(this.rasterId,this.rawBlockRegistryIds),t})}normalizeCtorArgs(e){return e?.ioConfig&&(e={...e,ioConfig:{resolution:null,bandIds:null,sampling:"closest",tileInfo:W.A.create(),...e.ioConfig}}),e}get _isGlobalWrappableSource(){const{rasterInfo:e}=this,t=(0,g.FT)(e.spatialReference);return null!=t&&e.extent.width>=t/2}get _hasNoneOrGCSShiftTransform(){const{transform:e}=this.rasterInfo;return null==e||"gcs-shift"===e.type}set rasterJobHandler(e){this._set("rasterJobHandler",e),(0,p.qg)(this)&&this.primaryRasters?.rasters?.forEach(t=>t.rasterJobHandler=e)}get rasterId(){return this.url||"rasterId-"+H++}set url(e){this._set("url",(0,B.Jf)(e,l.A.getLogger(this)))}async open(e){return this._openPromise??=(0,g.Hh)().then(()=>this._open(e)),this._openPromise}async fetchTile(e,t,n,i={}){const r=i.tileInfo||this.rasterInfo.storageInfo.tileInfo,s=this.getTileExtentFromTileInfo(e,t,n,r);if(!s)throw new o.A("imagery-tile:out-of-bounds","Level for fetch tile out of range");return i={noClip:!0,...i},this.fetchPixels(s,r.size[0],r.size[1],i)}async identify(e,t={}){e=(0,h.PZ)(m.A,e).clone().normalize();const{multidimensionalDefinition:n,timeExtent:i}=t,{rasterInfo:r}=this,{hasMultidimensionalTranspose:o,multidimensionalInfo:s}=r;let{transposedVariableName:l}=t;const a=null!=s&&o&&(null!=i||(0,x.DY)(n));a&&!l&&(l=null!=n&&n.length>0?n[0].variableName??void 0:s.variables[0].name,t={...t,transposedVariableName:l}),t=this._getRequestOptionsWithSliceId(t);const{spatialReference:c,extent:u}=r,{datumTransformation:d}=t;let y=(0,g._I)(e,c,d);if(!u.intersects(y))return{location:y,value:null};if(null!=r.transform){const e=r.transform.inverseTransform(y);if(!r.nativeExtent.intersects(e))return{location:e,value:null};y=e}const I=null!=l&&null!=s&&r.hasMultidimensionalTranspose;if((0,p.qg)(this)){const e=this.primaryRasters.rasters[0];if(I)return e.identify(y,t);const{pixelSize:i}=r,o=3,s=i.x*o/2,l=i.y*o/2,a=new f.A({xmin:y.x-s,xmax:y.x+s,ymin:y.y-l,ymax:y.y+l,spatialReference:c}),u={interpolation:"nearest",multidimensionalDefinition:n,sliceId:t.sliceId,bandIds:t.bandIds},{pixelBlock:h}=await e.fetchPixels(a,o,o,u),{pixelBlock:m}=await this.fetchPixels(a,o,o,u);if(null==h)return{location:y,value:null};const d=Math.floor(o*o*.5),p=!h.mask||h.mask[d]?h.pixels.map(e=>e[d]):null;let x;return null!=m&&(x=!m.mask||m.mask[d]?m.pixels.map(e=>e[d]):void 0),{location:y,value:p,processedValue:x,pyramidLevel:0}}let w=0;if(!I){let{srcResolution:n}=t;if(n)n.spatialReference&&(n=(0,S.T5)(new m.A(n),c)),w=(0,g.t$)(n,r,this.ioConfig.sampling).pyramidLevel;else if(w=await this.computeBestPyramidLevelForLocation(e,t),null==w)return{location:y,value:null}}const R=this.identifyPixelLocation(y,w,null,I);if(null===R)return{location:y,value:null};const{row:k,col:_,rowOffset:b,colOffset:v,blockWidth:C}=R,T=await this._fetchRawTile(w,k,_,t);if(!T?.pixels?.length)return{location:y,value:null};const B=b*C+v;return this._processIdentifyResult(T,{srcLocation:y,position:B,pyramidLevel:w,useTransposedTile:!!I,requestSomeSlices:a,identifyOptions:t})}async fetchPixels(e,t,n,i={}){e=(0,g.Ps)(e),i=this._getRequestOptionsWithSliceId(i);const{_hasNoneOrGCSShiftTransform:r}=this;if(i.requestRawData&&r)return this._fetchPixels(e,t,n,i);const o=(0,g.FT)(e.spatialReference),s=(0,g.OM)(e);if(null==o||0===s||1===s&&this._isGlobalWrappableSource&&r)return this._fetchPixels(e,t,n,i);if(s>=3)return{extent:e,pixelBlock:null};const l=[],{xmin:a,xmax:c}=e,u=Math.round(o/(c-a)*t),h=u-Math.round((o/2-a)/(c-a)*t);let m=0;const d=[];for(let r=0;r<=s;r++){const p=new f.A({xmin:0===r?a:-o/2,xmax:r===s?c-o*r:o/2,ymin:e.ymin,ymax:e.ymax,spatialReference:e.spatialReference}),x=0===r?u-h:r===s?t-m:u;m+=x,d.push(x);const g=i.disableWrapAround&&r>0?null:this._fetchPixels(p,x,n,i);l.push(g)}const p=(await Promise.all(l)).map(e=>e?.pixelBlock);let x=null;const y={width:t,height:n};return x=this.rasterJobHandler?(await this.rasterJobHandler.mosaicAndTransform({srcPixelBlocks:p,srcMosaicSize:y,destDimension:null,coefs:null,sampleSpacing:null,interpolation:"nearest",alignmentInfo:null,blockWidths:d},i)).pixelBlock:(0,C.z7)(p,y,{blockWidths:d}),{extent:e,srcExtent:(0,g._l)(e,this.rasterInfo.spatialReference,i.datumTransformation),pixelBlock:x}}async fetchRawPixels(e,t,n,i={}){t={x:Math.floor(t.x),y:Math.floor(t.y)};const r=await this._fetchRawTiles(e,t,n,i),{nativeExtent:o,nativePixelSize:s,storageInfo:l}=this.rasterInfo,a=2**e,c=s.x*a,u=s.y*a,h=new f.A({xmin:o.xmin+c*t.x,xmax:o.xmin+c*(t.x+n.width-1),ymin:o.ymax-u*(t.y+n.height-1),ymax:o.ymax-u*t.y,spatialReference:o.spatialReference});if(!r)return{extent:h,srcExtent:h,pixelBlock:null};const{pixelBlocks:m,mosaicSize:d}=r;if(1===m.length&&null!=m[0]&&m[0].width===n.width&&m[0].height===n.height)return{extent:h,srcExtent:h,pixelBlock:r.pixelBlocks[0]};const p=e>0?l.pyramidBlockWidth:l.blockWidth,x=e>0?l.pyramidBlockHeight:l.blockHeight,g={x:t.x%p,y:t.y%x};let y;return y=this.rasterJobHandler?(await this.rasterJobHandler.mosaicAndTransform({srcPixelBlocks:m,srcMosaicSize:d,destDimension:n,clipOffset:g,clipSize:n,coefs:null,sampleSpacing:null,interpolation:i.interpolation,alignmentInfo:null,blockWidths:null},i)).pixelBlock:(0,C.z7)(m,d,{clipOffset:g,clipSize:n}),{extent:h,srcExtent:h,pixelBlock:y}}fetchRawTile(e,t,n,i){throw new o.A("BaseRaster:read-not-implemented","fetchRawTile() is not implemented")}computeExtent(e){return(0,g._l)(this.rasterInfo.extent,e)}decodePixelBlock(e,t){return this.rasterJobHandler?this.rasterJobHandler.decode({data:e,options:t}):(0,v.D)(e,t)}async request(e,t,n=0){const{customFetchParameters:i}=this.ioConfig,{range:o,query:s,headers:l}=t;n=n??t.retryCount??this.ioConfig.retryCount;const a=o?{Range:`bytes=${o.from}-${o.to}`}:null;try{return await(0,r.A)(e,{...t,query:{...s,...i},headers:{...l,...a}})}catch(i){if(n>0)return n--,this.request(e,t,n);throw i}}getSliceIndex(e){const{multidimensionalInfo:t}=this.rasterInfo;return null==t||null==e||0===e.length?null:(0,x.NG)(e,t)}getTileExtentFromTileInfo(e,t,n,i){const r=i.lodAt(e);return r?this.getTileExtent({x:r.resolution,y:r.resolution},t,n,i.origin,i.spatialReference,i.size):null}updateTileInfo(){const{storageInfo:e,spatialReference:t,extent:n,pixelSize:i}=this.rasterInfo,{pyramidResolutions:r}=e;if(!e.tileInfo){const o=[],s=e.maximumPyramidLevel||0;let l=(i.x+i.y)/2,a=1/.0254*96*l;for(let e=0;e<=s&&(o.unshift(new A.A({level:s-e,resolution:l,scale:a})),e!==s);e++)if(r){const t=(r[e].x+r[e].y)/2;a*=t/l,l=t}else l*=2,a*=2;const c=new m.A({x:n.xmin,y:n.ymax,spatialReference:t});e.tileInfo=new W.A({origin:c,size:[e.blockWidth,e.blockHeight],spatialReference:t,lods:o}),e.isVirtualTileInfo=!0}}createRemoteDatasetStorageInfo(e,t=512,n=512,i){const{width:r,height:o,nativeExtent:s,pixelSize:l,spatialReference:a}=e,c=new m.A({x:s.xmin,y:s.ymax,spatialReference:a});null==i&&(i=Math.max(0,Math.round(Math.log(Math.max(r,o))/Math.LN2-8)));const u=this.computeBlockBoundary(s,512,512,{x:s.xmin,y:s.ymax},[l],i);e.storageInfo=new z.A({blockWidth:t,blockHeight:n,pyramidBlockWidth:t,pyramidBlockHeight:n,origin:c,firstPyramidLevel:1,maximumPyramidLevel:i,blockBoundary:u})}async computeBestPyramidLevelForLocation(e,t={}){return 0}computeBlockBoundary(e,t,n,i,r,o=0,s=2){if(1===r.length&&o>0){r=[...r];let{x:e,y:t}=r[0];for(let n=0;n<o;n++)e*=s,t*=s,r.push({x:e,y:t})}const l=[],{x:a,y:c}=i;for(let i=0;i<r.length;i++){const{x:o,y:s}=r[i];l.push({minCol:Math.floor((e.xmin-a+.1*o)/t/o),maxCol:Math.floor((e.xmax-a-.1*o)/t/o),minRow:Math.floor((c-e.ymax+.1*s)/n/s),maxRow:Math.floor((c-e.ymin-.1*s)/n/s)})}return l}getPyramidPixelSize(e){const{nativePixelSize:t}=this.rasterInfo,{pyramidResolutions:n,pyramidScalingFactor:i}=this.rasterInfo.storageInfo;if(0===e)return t;if(null!=n&&n.length)return n[e-1];const r=i**e;return{x:t.x*r,y:t.y*r}}identifyPixelLocation(e,t,n,i){const{spatialReference:r,nativeExtent:o,storageInfo:s}=this.rasterInfo,{maximumPyramidLevel:l,origin:a,transposeInfo:c}=s,u=i&&null!=c?c.tileSize[0]:s.blockWidth,h=i&&null!=c?c.tileSize[1]:s.blockHeight,f=(0,g._I)(e,r,n);if(!o.intersects(f))return null;if(t<0||t>l)return null;const m=this.getPyramidPixelSize(t),{x:d,y:p}=m,x=(a.y-f.y)/p/h,y=(f.x-a.x)/d/u,I=Math.min(h-1,Math.floor((x-Math.floor(x))*h)),w=Math.min(u-1,Math.floor((y-Math.floor(y))*u));return{pyramidLevel:t,row:Math.floor(x),col:Math.floor(y),rowOffset:I,colOffset:w,blockWidth:u,srcLocation:f}}getTileExtent(e,t,n,i,r,o){const[s,l]=o,a=i.x+n*s*e.x,c=a+s*e.x,u=i.y-t*l*e.y,h=u-l*e.y;return new f.A({xmin:a,xmax:c,ymin:h,ymax:u,spatialReference:r})}getBlockWidthHeight(e){return{blockWidth:e>0?this.rasterInfo.storageInfo.pyramidBlockWidth:this.rasterInfo.storageInfo.blockWidth,blockHeight:e>0?this.rasterInfo.storageInfo.pyramidBlockHeight:this.rasterInfo.storageInfo.blockHeight}}isBlockOutside(e,t,n){const i=this.rasterInfo.storageInfo.blockBoundary[e];return!i||i.maxRow<t||i.maxCol<n||i.minRow>t||i.minCol>n}updateImageSpaceRasterInfo(e){const{pixelSize:t}=e,{width:n,height:i}=e,r=d.A.WebMercator;e.spatialReference=r,e.extent=e.nativeExtent=new f.A({xmin:-.5,ymax:.5,xmax:n-.5,ymin:.5-i,spatialReference:r}),e.isPseudoSpatialReference=!0,e.transform=null,e.pixelSize=new m.A({x:1,y:1,spatialReference:r});const{extent:o,storageInfo:s}=e;if(s){s.origin=new m.A({x:o.xmin,y:o.ymax,spatialReference:r});const{pyramidResolutions:n,tileInfo:i}=s;if(n&&n.forEach(e=>{e.x/=t.x,e.y/=t.y}),i){i.origin=s.origin;const t=(e.nativePixelSize.x+e.nativePixelSize.y)/2;i.lods.forEach((e,n)=>{e.resolution=t*2**n,e.scale=96*e.resolution/.0254})}}}async _refresh(e){return{dataChanged:!0}}async _fetchPixels(e,t,n,i={}){let r=(0,g.OM)(e);if(r>=2)return{extent:e,pixelBlock:null};const o=this._getSourceDataInfo(e,t,n,i),{pyramidLevel:s,srcResolution:l,srcWidth:a,srcHeight:c,ul:u}=o;let{srcExtent:h}=o;if(0===a||0===c)return{extent:e,srcExtent:h,pixelBlock:null};const{rasterInfo:f}=this,d=f.transform,p="gcs-shift"===d?.type,x=null!=(0,g.FT)(e.spatialReference);!p&&x||(r=(0,g.OM)(h,p));const y=await this._fetchRawTiles(s,u,{width:a,height:c,wrapCount:r},i);if(!y)return{extent:e,srcExtent:h,pixelBlock:null};h=y.extent;const I=f.storageInfo,w=s>0?I.pyramidBlockWidth:I.blockWidth,R=s>0?I.pyramidBlockHeight:I.blockHeight;let{x:k,y:_}=f.pixelSize;if(s>0){const{pyramidResolutions:e,pyramidScalingFactor:t}=I;if(null!=e&&e[s-1])({x:k,y:_}=e[s-1]);else{const e=t**s;k*=e,_*=e}}const b=f.spatialReference,v=new m.A({x:k,y:_,spatialReference:b}),S=w===a&&R===c&&u.x%w===0&&u.y%R===0,B=new m.A({x:(e.xmax-e.xmin)/t,y:(e.ymax-e.ymin)/n,spatialReference:e.spatialReference}),M=!e.spatialReference.equals(b),P=b.isGeographic?1e-9:1e-4,{datumTransformation:A}=i;if(!M&&S&&1===y.pixelBlocks.length&&w===t&&R===n&&function(e,t,n){return Math.abs(e.x-t.x)<n&&Math.abs(e.y-t.y)<n}(l,B,P))return{extent:e,srcExtent:h,srcTilePixelSize:v,pixelBlock:y.pixelBlocks[0]};const z=x&&null!=(0,g.FT)(h.spatialReference)&&this._hasNoneOrGCSShiftTransform,W=i.requestProjectedLocalDirections&&this.rasterInfo.dataType.startsWith("vector");W&&!this.rasterJobHandler&&await(0,g.Hh)();const H=this.rasterJobHandler?await this.rasterJobHandler.getProjectionOffsetGrid({projectedExtent:e,srcBufferExtent:h,pixelSize:B.toJSON(),datumTransformation:A,rasterTransform:d,hasWrapAround:r>0||z,isAdaptive:!1!==this.ioConfig.optimizeProjectionAccuracy,includeGCSGrid:W},i):(0,g.l0)({projectedExtent:e,srcBufferExtent:h,pixelSize:B,datumTransformation:A,rasterTransform:d,hasWrapAround:r>0||z,isAdaptive:!1,includeGCSGrid:W});let L;const O=!i.requestRawData,D={rows:H.spacing[0],cols:H.spacing[1]},E=this._hasNoneOrGCSShiftTransform?this._getRasterTileAlignmentInfo(s,h.xmin):void 0,{pixelBlocks:N,mosaicSize:F,isPartiallyFilled:q}=y;let G=null;if(this.rasterJobHandler){const e=await this.rasterJobHandler.mosaicAndTransform({srcPixelBlocks:N,srcMosaicSize:F,destDimension:O?{width:t,height:n}:null,coefs:O?H.coefficients:null,sampleSpacing:O?D:null,projectDirections:W,gcsGrid:W?H.gcsGrid:null,isUV:"vector-uv"===this.rasterInfo.dataType,interpolation:i.interpolation,alignmentInfo:E,blockWidths:null},i);({pixelBlock:L,localNorthDirections:G}=e)}else{const e=(0,C.z7)(N,F,{alignmentInfo:E});L=O?(0,C.$i)(e,{width:t,height:n},H.coefficients,D,i.interpolation):e,W&&H.gcsGrid&&(G=(0,C.QF)({width:t,height:n},H.gcsGrid),L=(0,T.Y2)(L,this.rasterInfo.dataType,G))}return i.requestRawData||W?{extent:e,srcExtent:h,srcTilePixelSize:v,pixelBlock:L,transformGrid:H,localNorthDirections:G,isPartiallyFilled:q}:{extent:e,srcExtent:e,srcTilePixelSize:v,pixelBlock:L}}async _fetchRawTiles(e,t,n,i){const{origin:r,blockBoundary:o}=this.rasterInfo.storageInfo,{blockWidth:s,blockHeight:l}=this.getBlockWidthHeight(e);let{x:a,y:c}=t,{width:u,height:h,wrapCount:m}=n;const d=this._getRasterTileAlignmentInfo(e,0);i.buffer&&(a-=i.buffer.cols,c-=i.buffer.rows,u+=2*i.buffer.cols,h+=2*i.buffer.rows);let p=0,x=0,g=0;m&&null!=d&&(({worldColumnCountFromOrigin:x,originColumnOffset:g,rightPadding:p}=d),x*d.blockWidth-p>=a+u&&(p=0));const y=Math.floor(a/s),I=Math.floor(c/l),w=Math.floor((a+u+p-1)/s),R=Math.floor((c+h+p-1)/l),k=o[e];if(!k)return null;const{minRow:_,minCol:b,maxCol:v,maxRow:S}=k;if(0===m&&(R<_||w<b||I>S||y>v))return null;const C=new Array;let T=!1;const B=null==this.ioConfig.allowPartialFill?i.allowPartialFill:this.ioConfig.allowPartialFill;for(let t=I;t<=R;t++)for(let n=y;n<=w;n++){let r=n;if(!i.disableWrapAround&&m&&null!=d&&x<=n&&(r=n-x-g),t>=_&&r>=b&&S>=t&&v>=r){const n=this._fetchRawTile(e,t,r,i);B?C.push(new Promise(e=>{n.then(t=>e(t)).catch(()=>{T=!0,e(null)})})):C.push(n)}else C.push(Promise.resolve(null))}if(0===C.length)return null;const M=await Promise.all(C),P={height:(R-I+1)*l,width:(w-y+1)*s},{spatialReference:A}=this.rasterInfo,z=this.getPyramidPixelSize(e),{x:W,y:H}=z;return{extent:new f.A({xmin:r.x+y*s*W,xmax:r.x+(w+1)*s*W,ymin:r.y-(R+1)*l*H,ymax:r.y-I*l*H,spatialReference:A}),pixelBlocks:M,mosaicSize:P,isPartiallyFilled:T}}_fetchRawTile(e,t,n,i){const{storageInfo:r}=this.rasterInfo,o=null!=r.transposeInfo&&!!i.transposedVariableName;if(!o){const i=r.blockBoundary[e];if(!i)return Promise.resolve(null);const{minRow:o,minCol:s,maxCol:l,maxRow:a}=i;if(t<o||n<s||t>a||n>l)return Promise.resolve(null)}const s=o?i.transposeVariableName:i.sliceId,l=r.isBsqTile?i.bandIds:null,c=function(e,t,n){const i=[];return null!=t&&i.push(`sliceId=${t}`),null!=n&&i.push(`bandIds=${n.join(",")}`),i.length?`${e}?${i.join("&")}`:e}(this.rasterId,s,l),u=`${e}/${t}/${n}`;let h=R(c,i.registryId,u);if(null==h){const o=new AbortController,s=i.bandIds?.slice();if(s?.length&&r.isBsqTile){const r=new Set(s),l=[],a=Array.from(r);for(const r of a)l.push(this._tileFetchQueue.push({pyramidLevel:e,row:t,col:n,options:{...i,bandIds:[r]}},{signal:o.signal}));h=Promise.all(l).then(e=>{if(e.some(e=>null==e))return null;if(a.length!==s.length){const t=[];for(const n of s){let i=e[a.indexOf(n)];t.includes(i)&&(i=i.clone()),t.push(i)}e=t}return this.rasterJobHandler?this.rasterJobHandler.compositeBands({pixelBlocks:e},{signal:o.signal,transferPixelsToWorker:!0}):(0,C.Wy)(e)})}else h=this._tileFetchQueue.push({pyramidLevel:e,row:t,col:n,options:i},{signal:o.signal});k(c,i.registryId,u,h,o),h.catch(()=>_(c,i.registryId,u))}return i.signal&&(0,a.u7)(i,()=>{w(c,i.registryId,u)}),h}_computeMagDirValues(e){const{bandCount:t,dataType:n}=this.rasterInfo;if((2!==t||"vector-magdir"!==n)&&"vector-uv"!==n||2!==e?.length||!e[0]?.length)return null;const i=e[0].length;if("vector-magdir"===n){const t=e[1].map(e=>(e+360)%360);return[e[0],t]}const[r,o]=e,s=[],l=[];for(let e=0;e<i;e++){const[t,n]=(0,T.Lu)([r[e],o[e]]);s.push(t),l.push(n)}return[s,l]}_getRasterTileAlignmentInfo(e,t){return null==this._rasterTileAlignmentInfo&&(this._rasterTileAlignmentInfo=(0,g.DO)(this.rasterInfo)),null==this._rasterTileAlignmentInfo.pyramidsInfo?null:{startX:t,halfWorldWidth:this._rasterTileAlignmentInfo.halfWorldWidth,hasGCSSShiftTransform:this._rasterTileAlignmentInfo.hasGCSSShiftTransform,...this._rasterTileAlignmentInfo.pyramidsInfo[e]}}_getSourceDataInfo(e,t,n,i={}){const r={datumTransformation:i.datumTransformation,pyramidLevel:0,pyramidResolution:null,srcExtent:null,srcHeight:0,srcResolution:null,srcWidth:0,ul:{x:0,y:0}};i.srcResolution&&(r.srcResolution=i.srcResolution,this._updateSourceDataInfo(e,r));const o=this.rasterInfo.storageInfo.maximumPyramidLevel||0,{srcWidth:s,srcHeight:l,pyramidLevel:a}=r,c=s/t,u=l/n,h=a<o&&c*u>=16,f=a===o&&this._requireTooManySrcTiles(s,l,t,n);if(h||f||0===s||0===l){const s=new m.A({x:(e.xmax-e.xmin)/t,y:(e.ymax-e.ymin)/n,spatialReference:e.spatialReference});let l=(0,g.Wo)(s,this.rasterInfo.spatialReference,e,r.datumTransformation);const f=!l||i.srcResolution&&l.x+l.y<i.srcResolution.x+i.srcResolution.y;if(h&&i.srcResolution&&f){const e=Math.round(Math.log(Math.max(c,u))/Math.LN2)-1;if(o-a+3>=e){const t=2**e;l={x:i.srcResolution.x*t,y:i.srcResolution.y*t}}}l&&(r.srcResolution=l,this._updateSourceDataInfo(e,r))}return this._requireTooManySrcTiles(r.srcWidth,r.srcHeight,t,n)&&(r.srcWidth=0,r.srcHeight=0),r}_requireTooManySrcTiles(e,t,n,i){const{tileInfo:r}=this.rasterInfo.storageInfo,o=e/n,s=t/i;return Math.ceil(e/r.size[0])*Math.ceil(t/r.size[1])>=256*Math.max(1,(n+i)/1024)||o>8||s>8}_updateSourceDataInfo(e,t){t.srcWidth=0,t.srcHeight=0;const{rasterInfo:n}=this,i=n.spatialReference,{srcResolution:r,datumTransformation:o}=t,{pyramidLevel:s,pyramidResolution:l,excessiveReading:a}=(0,g.t$)(r,n,this.ioConfig.sampling);if(a)return;let c=t.srcExtent||(0,g._l)(e,i,o);if(null==c)return;const u=n.transform;u&&(c=u.inverseTransform(c)),t.srcExtent=c;const{origin:h}=n.storageInfo,{width:f,height:m,ul:d}=(0,p.$g)(c,h,l,s);t.pyramidLevel=s,t.pyramidResolution=l,t.srcWidth=f,t.srcHeight=m,t.ul=d}_getRequestOptionsWithSliceId(e){return null!=this.rasterInfo.multidimensionalInfo&&null==e.sliceId&&(e={...e,sliceId:this.getSliceIndex(e.multidimensionalDefinition)}),e}_processIdentifyResult(e,t){const{srcLocation:n,position:i,pyramidLevel:r,useTransposedTile:o}=t,s=e.pixels[0].length/e.width/e.height;if(e.mask&&!e.mask[i])return{location:n,value:null};const{multidimensionalInfo:l}=this.rasterInfo;if(null==l||!o){const t=e.pixels.map(e=>e[i]),o={location:n,value:t,pyramidLevel:r},s=this._computeMagDirValues(t.map(e=>[e]));return s?.length&&(o.magdirValue=s.map(e=>e[0])),o}let a=e.pixels.map(e=>e.slice(i*s,i*s+s)),c=this._computeMagDirValues(a);const{requestSomeSlices:u,identifyOptions:h}=t;let f=(0,x.QW)(l,h.transposedVariableName);if(u){const e=(0,x.xx)(f,h.multidimensionalDefinition,h.timeExtent);a=a.map(t=>e.map(e=>t[e])),c=c?.map(t=>e.map(e=>t[e])),f=e.map(e=>f[e])}const m=e.noDataValues||this.rasterInfo.noDataValue,d={pixels:a,pixelType:e.pixelType};let p;return null!=m&&((0,b.Sp)(d,m),p=d.mask),{location:n,value:null,dataSeries:f.map((e,t)=>{const n={value:0===p?.[t]?null:a.map(e=>e[t]),multidimensionalDefinition:e.multidimensionalDefinition.map(e=>new P.A({...e,isSlice:!0}))};return c?.length&&(n.magdirValue=[c[0][t],c[1][t]]),n}),pyramidLevel:r}}};(0,i.Cg)([(0,u.MZ)()],L.prototype,"_rasterTileAlignmentInfo",void 0),(0,i.Cg)([(0,u.MZ)()],L.prototype,"_tileFetchQueue",void 0),(0,i.Cg)([(0,u.MZ)({readOnly:!0})],L.prototype,"_isGlobalWrappableSource",null),(0,i.Cg)([(0,u.MZ)({readOnly:!0})],L.prototype,"_hasNoneOrGCSShiftTransform",null),(0,i.Cg)([(0,u.MZ)()],L.prototype,"_openPromise",void 0),(0,i.Cg)([(0,u.MZ)()],L.prototype,"rasterJobHandler",null),(0,i.Cg)([(0,u.MZ)({readOnly:!0})],L.prototype,"rasterId",null),(0,i.Cg)([(0,u.MZ)(M.OZ)],L.prototype,"url",null),(0,i.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],L.prototype,"datasetName",void 0),(0,i.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],L.prototype,"datasetFormat",void 0),(0,i.Cg)([(0,u.MZ)()],L.prototype,"hasUniqueSourceStorageInfo",void 0),(0,i.Cg)([(0,u.MZ)()],L.prototype,"rasterInfo",void 0),(0,i.Cg)([(0,u.MZ)()],L.prototype,"ioConfig",void 0),(0,i.Cg)([(0,u.MZ)()],L.prototype,"sourceJSON",void 0),(0,i.Cg)([(0,u.MZ)()],L.prototype,"rawBlockRegistryIds",void 0),L=(0,i.Cg)([(0,u.$K)("esri.layers.raster.datasets.BaseRaster")],L)},330(e,t,n){function i(e,t){if(!e||!t)return[];let n=t;t.includes("/")?(n=t.slice(0,t.indexOf("/")),t=t.slice(t.indexOf("/")+1)):t="";const r=[];if(t){const o=i(e,n);for(let e=0;e<o.length;e++)i(o[e],t).forEach(e=>r.push(e));return r}const o=e.getElementsByTagNameNS("*",n);if(!o||0===o.length)return[];for(let e=0;e<o.length;e++)r.push(o[e]||o.item(e));return r}function r(e,t){if(!e||!t)return null;let n=t;t.includes("/")?(n=t.slice(0,t.indexOf("/")),t=t.slice(t.indexOf("/")+1)):t="";const o=i(e,n);return o.length>0?t?r(o[0],t):o[0]:null}function o(e,t=null){const n=t?r(e,t):e;let i;return n?(i=n.textContent||n.nodeValue,i?i.trim():null):null}function s(e,t){const n=i(e,t),r=[];let o;for(let e=0;e<n.length;e++)o=n[e].textContent||n[e].nodeValue,o&&(o=o.trim(),""!==o&&r.push(o));return r}function l(e,t=null){const n=o(e,t);return n?.split(" ").map(e=>Number(e))??[]}function a(e,t){return s(e,t).map(e=>Number(e))}function c(e,t){const n=o(e,t);return Number(n)}function u(e,t){const n=e?.nodeName?.toLowerCase(),i=t.toLowerCase();return n.slice(n.lastIndexOf(":")+1)===i}function h(e){return e.nodeName.slice(e.nodeName.lastIndexOf(":")+1)}n.d(t,{Dy:()=>s,IC:()=>i,Ui:()=>a,V6:()=>r,g7:()=>u,mX:()=>o,pN:()=>l,v7:()=>c,vv:()=>h})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3819],{563(e,t,n){n.d(t,{QueueProcessor:()=>u,SharedConcurrency:()=>h});var r=n(97768),s=n(17676),i=n(9775),o=n(32587),a=n(76030),l=n(44794);class u{constructor(e){this._schedule=null,this._deferreds=new o.A,this._controllers=new o.A,this._processingItems=new o.A,this._pausedSignal=(0,l.v)(!1),this.process=e.process,this.concurrency=e.concurrency,this.sharedConcurrency=e.sharedConcurrency??d,this._queue=new i.A(e.peeker)}destroy(){this.clear(),this._schedule=(0,r.xt)(this._schedule)}get updating(){return this.running}get length(){return this._processingItems.size+this._queue.length}get running(){return!this._pausedSignal.value&&this._queue.length>0&&!this.full}get full(){return this._processingItems.size>=this.concurrency||this.sharedConcurrency.full}abort(e){const t=this._controllers.get(e);t?.abort()}clear(){this._queue.clear();const e=Array.from(this._controllers.values());this._controllers.clear(),e.forEach(e=>e.abort()),this.sharedConcurrency.current.value-=this._processingItems.size,this._processingItems.clear(),this._cancelNext()}forEach(e){this._deferreds.forEach((t,n)=>e(n))}_get(e){const t=this._deferreds.get(e);return t?.promise}pause(){this._pausedSignal.value||(this._pausedSignal.value=!0,this._cancelNext())}push(e,t){const n=this._get(e);if(n)return n;const r=new AbortController,i=Promise.withResolvers(),o=t?(0,s.u7)(t,()=>r.abort()):null,a=(0,s.NY)(r.signal,()=>{const t=this._processingItems.get(e);t&&t.controller.abort(),l(),i.reject((0,s.NK)())}),l=()=>{a.remove(),o?.remove(),this._removeItem(e),this._queue.remove(e),this._scheduleNext()};return this._deferreds.set(e,i),this._controllers.set(e,r),i.promise.then(l,l),this._queue.push(e),this._scheduleNext(),i.promise}last(){return this._queue.last()}reset(){const e=Array.from(this._processingItems.values());this.sharedConcurrency.current.value-=this._processingItems.size,this._processingItems.clear();for(const t of e)this._queue.push(t.item),t.controller.abort();this._scheduleNext()}resume(){this._pausedSignal.value&&(this._pausedSignal.value=!1,this._scheduleNext())}takeAll(){const e=[];for(;this._queue.length;)e.push(this._queue.pop());return this.clear(),e}_removeItem(e){this._deferreds.delete(e),this._controllers.delete(e),this._processingItems.has(e)&&(this._processingItems.delete(e),this.sharedConcurrency.current.value-=1)}_scheduleNext(){this._pausedSignal.value||this._schedule||(this._schedule=(0,a._)(()=>{this._schedule=null,this._next()}))}_next(){for(;this._queue.length>0&&this._processingItems.size<this.concurrency&&!this.sharedConcurrency.full;)this._process(this._queue.pop())}_cancelNext(){this._schedule&&(this._schedule.remove(),this._schedule=null)}_processResult(e,t){this._canProcessFulfillment(e)&&(this._scheduleNext(),this._deferreds.get(e.item).resolve(t))}_processError(e,t){this._canProcessFulfillment(e)&&(this._scheduleNext(),this._deferreds.get(e.item).reject(t))}_canProcessFulfillment(e){return!!this._deferreds.get(e.item)&&this._processingItems.get(e.item)===e}_process(e){if(null==e)return;let t;const n=new AbortController,r=new c(e,n);this._processingItems.set(e,r),this.sharedConcurrency.current.value+=1;try{t=this.process(e,n.signal)}catch(e){this._processError(r,e)}(0,s.$X)(t)?(r.promise=t,t.then(e=>this._processResult(r,e),e=>this._processError(r,e))):this._processResult(r,t)}}class c{constructor(e,t){this.item=e,this.controller=t,this.promise=null}}class h{constructor(e){this.limit=e,this.current=(0,l.v)(0)}get full(){return this.current.value>=this.limit}}const d=new h(1/0)},32587(e,t,n){n.d(t,{A:()=>i});var r=n(62788),s=n(95488);class i{constructor(e){this._observable=new s.I,this._notifyPending=!1,this._batchDepth=0,this._map=new Map(e)}get size(){return(0,r.gc)(this._observable),this._map.size}batch(e){try{this._batchDepth++,e()}finally{this._batchDepth--,this._notifyPending&&0===this._batchDepth&&(this._notifyPending=!1,this._notify())}}clear(){this._map.size>0&&(this._map.clear(),this._notify())}delete(e){const t=this._map.delete(e);return t&&this._notify(),t}entries(){return(0,r.gc)(this._observable),this._map.entries()}forEach(e,t){(0,r.gc)(this._observable),this._map.forEach((n,r)=>e.call(t,n,r,this),t)}get(e){return(0,r.gc)(this._observable),this._map.get(e)}has(e){return(0,r.gc)(this._observable),this._map.has(e)}keys(){return(0,r.gc)(this._observable),this._map.keys()}set(e,t){return this._map.set(e,t),this._notify(),this}transformValues(e,t=this._map.keys()){this.batch(()=>{for(const n of t){if(!this._map.has(n))continue;const t=this._map.get(n),r=e(t,n);r!==t&&this.set(n,r)}})}values(){return(0,r.gc)(this._observable),this._map.values()}[Symbol.iterator](){return(0,r.gc)(this._observable),this._map[Symbol.iterator]()}[Symbol.dispose](){this._observable.destroy()}get[Symbol.toStringTag](){return this._map[Symbol.toStringTag]}_notify(){this._batchDepth>0?this._notifyPending=!0:this._observable.notify()}}},24460(e,t,n){function r(e){const{minValue:t,maxValue:n,numValues:r,nullCount:s,distinctCount:i}=e;return null!=r&&s===r?{type:"null-only",nullCount:s,distinctCount:i}:"number"==typeof t&&Number.isFinite(t)&&"number"==typeof n&&Number.isFinite(n)&&t<=n?{type:"bounds",minValue:t,maxValue:n,nullCount:s,distinctCount:i}:null!=t||null!=n||null!=i||null!=s?{type:"unknown",nullCount:s,distinctCount:i}:null}function s(e){const t=new Map;for(const n of e.files){const e=i(n);t.set(n.name,e)}return t}function i(e){const t=new Map;for(const n of e.statistics??[]){const e=n.column.at(-1);if(null==e)continue;const s=r({minValue:n.minValue,maxValue:n.maxValue,numValues:null,nullCount:n.nullCount??0,distinctCount:n.distinctCount??null});null!=s&&t.set(e,s)}return new a(0,0,t)}function o(e){const t=e.minValue(),n=e.maxValue(),s=e.numValues(),i=e.distinctCount()??null;return r({minValue:t,maxValue:n,numValues:s,nullCount:e.nullCount()??null,distinctCount:i})}n.d(t,{Hk:()=>o,MB:()=>a,t8:()=>s});class a{static fromFile(e){const t=e.numRows(),n=e.byteLength(),r=new Map;for(const t of e.getColumnDescriptors()){const e=o(t);null!=e&&r.set(t.name(),e),t.free()}return new a(t,n,r)}constructor(e,t,n){this.rowCount=e,this.byteSize=t,this.statistics=n}}},95031(e,t,n){n.d(t,{M:()=>x});var r=n(11254),s=n(5482),i=n(49186),o=n(65529),a=n(44208),l=n(563),u=n(84952),c=n(24460),h=n(63892);class d{static async create(e,t,n,r,s){if(!s){const s=await(0,h.DV)(n,{geometryInfo:e,provider:t}),i=c.MB.fromFile(s);return new d(e,t,n,r,i,Promise.resolve(s))}return new d(e,t,n,r,s,null)}constructor(e,t,n,r,s,i){this._geometryInfo=e,this._provider=t,this.url=n,this.id=r,this.statistics=s,this._file=i}destroy(){null!=this._file&&this._file.then(e=>e.free())}get file(){return null==this._file&&(this._file=(0,h.DV)(this.url,{geometryInfo:this._geometryInfo,provider:this._provider})),this._file}async getDiagnosticsSnapshot(){return{...(await this.file).diagnosticsSnapshot(),fileId:this.id,fileName:this.url}}async getColumnIndex(e,t){return(await this.file).columnIndex(e,t)}async getOffsetIndex(e,t){return(await this.file).offsetIndex(e,t)}}const m="_spatial.json",p=new l.QueueProcessor({concurrency:12,process:async e=>{const{data:t}=await(0,r.A)(e.url,e.options);return t}});let y=1;class f{constructor(e,t=()=>{}){this._geometryInfo=e,this._getCustomParameters=t,this.events=new o.bk}async destroy(){await this.clear()}async clear(){if(this._infos){const e=await this._infos;for(const t of e.values())t.destroy();e.clear(),this._infos=null}}async getMetadata(){const e={stack:[],error:void 0,hasError:!1};try{const t=(await this._getParquetFileNames()).at(0);if(!t)return null;const n=(0,s.mS)(e,await(0,h.DV)(t,{provider:this}),!1);return(0,h._6)(n)}catch(t){e.error=t,e.hasError=!0}finally{(0,s.hk)(e)}}getGeometryInfo(){return this._geometryInfo}async getFiles(){const e=await this._getInfoMap();return Array.from(e.values())}async updateGeometryInfo(e){if(this._geometryInfo)throw new Error("GeometryInfo already set");await this.clear(),this._geometryInfo=e}async fetchLength(e){const{byteLength:t,cacheTag:n}=await this._fetchLengthAndTag(e);if(!(0,a.A)("parquetlayer-cache-enabled"))return t;try{await this._createOrResetCache(e,n)}catch(e){}return t}async fetchRange(e,t,n,r){const s={fileId:e,requestId:y++,range:{start:t,end:n+1}};this.events.emit("rangeRead",{...s,phase:"start"});try{const i=await this._fetchRangeWithCache(e,t,n,r);return this.events.emit("rangeRead",{...s,phase:"complete"}),i}catch(e){throw this.events.emit("rangeRead",{...s,phase:"error"}),e}}_getCacheFileName(e){return e}async _requestStatistics(e){const{data:t}=await(0,r.A)(e,{responseType:"json",query:this._getCustomParameters()});return t}async _fetchRange(e,t,n,r){const s={url:e,options:{responseType:"array-buffer",query:this._getCustomParameters()??{},cacheMode:"no-store",useQueue:!0,headers:{range:`bytes=${t}-${n}`}}},o=await p.push(s),a=n-t+1;if(o.byteLength!==a)throw new i.A("InvalidRangeRequest",`request returned ${o.byteLength} bytes for range ${t}-${n}, expected ${a}.`);return o}async _fetchLengthAndTag(e){if((0,u.w8)(e)){const{data:t}=await(0,r.A)(e,{responseType:"blob"});return{byteLength:t.size,cacheTag:null}}const t=await this._requestHead(e),n=t.headers.get("Content-Length");if(null==n)throw new Error("Unable to parse content length");const s=t.headers.get("etag")??t.headers.get("Last-Modified");return{byteLength:parseInt(n,10),cacheTag:s}}async _getInfoMap(){return this._infos||(this._infos=this._fetchParquetFiles()),this._infos}async _updateParquetFileInfos(e){const t=await this._getInfoMap(),n=new Set(e);for(const e of n)if(!t.get(e)){const n=t.size,r=await d.create(this.getGeometryInfo(),this,e,n,null);t.set(e,r)}for(const e of t.keys())if(!n.has(e))throw new Error("Deletion not supported")}async _getFileStatistics(e){this._statistics||(this._statistics=this._fetchStatistics());const t=await this._statistics,n=function(e){return e.split(/[?#]/)[0].split("/").at(-1)??e}(e);return t.get(n)}async _fetchParquetFiles(){const e=(await this._getParquetFileNames()).map(async(e,t)=>{const n=t,r=await this._getFileStatistics(e);return d.create(this.getGeometryInfo(),this,e,n,r)}),t=await Promise.all(e),n=new Map;for(const e of t)n.set(e.url,e);return n}async _fetchStatistics(){const e=await this._getStatisticsFileName();if(null==e)return new Map;const t=await this._resolveFileUrl(e),n=await this._requestStatistics(t);return(0,c.t8)(n)}async _requestHead(e){const{data:t}=await(0,r.A)(e,{responseType:"native",method:"head",query:this._getCustomParameters()});return t}async _openCache(e){return caches.open(this._getCacheName(e))}async _fetchRangeWithCache(e,t,n,r){if(!(0,a.A)("parquetlayer-cache-enabled"))return this._fetchRange(e,t,n,r);const s=new URL(this._getCacheFileName(e));s.searchParams.append("range",`${t}-${n}`);try{const i=await this._openCache(e),o=await i.match(s);if(o)return await o.arrayBuffer();const a=await this._fetchRange(e,t,n,r);return await i.put(s,new Response(a,{headers:{"Content-Type":"application/octet-stream","Content-Length":a.byteLength.toString()}})),a}catch(s){return this._fetchRange(e,t,n,r)}}_getCacheName(e){return`parquet.v1:${this._getCacheFileName(e)}`}async _createOrResetCache(e,t){const n=this._getCacheName(e),r=new URL(this._getCacheFileName(e));if(r.searchParams.append("metadata","true"),null==t)return void await caches.delete(n);let s=await caches.open(n);const i=await s.match(r),o=await(i?.json());o?.tag!==t&&(await caches.delete(n),s=await caches.open(n));const a=JSON.stringify({tag:t});await s.put(r,new Response(a,{headers:{"Content-Type":"application/json","Content-Length":a.length.toString()}}))}}function g(e){const t=e.split(/[?#]/)[0];return t===m||t.endsWith(m)}var _=n(39131);class w extends f{constructor(e,t,n){super(t,n),this._schema=e,this._isAgol=!!(0,_.py)(this._schema.itemUrl)}async update(e){throw new Error("Unsupported")}async _getParquetFileNames(){return[`${this._baseUrl}/data`]}async _getStatisticsFileName(){return null}_getCacheFileName(e){return`${this._baseUrl}/data`}async _resolveFileUrl(e){return this._resolvedUrl||(this._resolvedUrl=this._fetchResolvedUrl()),this._resolvedUrl}async _fetchLengthAndTag(e){const t=await super._fetchLengthAndTag(e);return t.cacheTag=this._schema.modified.getTime().toString(),t}async _fetchRange(e,t,n,r){try{const s=await this._resolveFileUrl(e);return await super._fetchRange(s,t,n,r)}catch{this._resolvedUrl=null}const s=await this._resolveFileUrl(e);return super._fetchRange(s,t,n,r)}get _baseUrl(){return this._schema.itemCdnUrl??this._schema.itemUrl}async _fetchResolvedUrl(){return this._isAgol?(await(0,r.A)(`${this._baseUrl}/data`,{query:{signedurl:!0,expiration:9,f:"json"}})).data.signedUrl:`${this._baseUrl}/data`}}var v=n(47828);class C extends f{constructor(e,t,n){super(t,n),this._schema=e,this._directoryChanged=!1}get _baseUrl(){return this._schema.itemCdnUrl??this._schema.itemUrl}async update(e){throw new Error("Unsupported")}async _getParquetFileNames(){const e=await this._getResources();return Array.from(e.keys()).filter(e=>e.endsWith(".parquet"))}async _getStatisticsFileName(){const e=await this._getResources();return Array.from(e.keys()).find(g)??null}_getCacheFileName(e){return`${this._baseUrl}/resources/${e}`}async _resolveFileUrl(e){const t=await this._getResource(e);return t.signedUrl?t.signedUrl:`${this._baseUrl}/resources/${e}`}async _fetchLengthAndTag(e){const t=await this._getResource(e),n=this._schema.itemMetadata.modified.getTime().toString();return{byteLength:t.size,cacheTag:n}}async _fetchRange(e,t,n,r){if(this._directoryChanged)throw(0,v.O)();try{const s=await this._resolveFileUrl(e);return await super._fetchRange(s,t,n,r)}catch{if("directory-changed"===await this._refetchResources())throw(0,v.O)()}const s=await this._resolveFileUrl(e);return super._fetchRange(s,t,n,r)}_refetchResources(){return this._directoryChanged?Promise.resolve("directory-changed"):(this._updateResourcesPromise||(this._updateResourcesPromise=this._executeRefetchResources().finally(()=>{this._updateResourcesPromise=null})),this._updateResourcesPromise)}async _executeRefetchResources(){return await this._refetchPortalItemMetadata()?(this.events.emit("sourceChanged"),this._directoryChanged=!0,"directory-changed"):(this._resources=this._fetchResources(),"ok")}async _refetchPortalItemMetadata(){const e=this._schema.itemMetadata.url,t=await(0,r.A)(this._schema.itemUrl,{responseType:"json",query:{f:"json"}}),{modified:n,url:s}=t.data;if(null==s)throw new Error("Portal item metadata must have a url defined.");if(null==n)throw new Error("Portal item metadata must have a modified timestamp defined.");return this._schema.itemMetadata={modified:new Date(n),url:s},e!==s}async _getResources(){return this._resources||(this._resources=this._fetchResources()),await this._resources}async _getResource(e){const t=(await this._getResources()).get(e);if(!t)throw new Error(`Resource ${e} not found.`);return t}async _fetchResources(){const e=new Map;let t=1;const n=function(e){const t=e.split("/").filter(Boolean),n=t.indexOf("resources");if(-1===n||n===t.length-1)throw new Error(`URL does not contain a resources directory name: ${e}`);return`${t.slice(n+1).map(e=>decodeURIComponent(e)).join("/")}/`}(this._schema.itemMetadata.url);for(;-1!==t;){const s=await(0,r.A)(`${this._baseUrl}/resources`,{query:{f:"json",start:t,num:100}});for(const t of s.data.resources)t.resource.startsWith(n)&&e.set(t.resource,t);t=s.data.nextStart}return e}}class b extends f{constructor(e,t=null,n=()=>{}){super(t,n),this._schema=e}async update(e){await this._updateParquetFileInfos(await this._getParquetFileNames()),this._schema=e}async _resolveFileUrl(e){return e}async _getParquetFileNames(){return this._schema.urls.filter(e=>!e.endsWith(".json"))}async _getStatisticsFileName(){return this._schema.urls.find(g)??null}}function x(e,t,n){switch(e.type){case"urls":return new b(e,t,n);case"portal-parquet-file":return new w(e,t,n);case"portal-parquet-layer":return new C(e,t,n)}}},47828(e,t,n){n.d(t,{O:()=>i,c:()=>s});var r=n(49186);function s(e){return null!=e&&"object"==typeof e&&"name"in e&&"FileProviderChangedError"===e.name}function i(e=""){return new r.A("FileProviderChangedError",e)}},9075(e,t,n){n.d(t,{A:()=>a});var r=n(5482),s=n(69540),i=n(25482),o=n(91429);let a=class extends((0,s.OU)(i.o)){constructor(e){super(e),this.type="location",this.xField=null,this.yField=null}};(0,r.Cg)([(0,o.MZ)({type:["location"],nonNullable:!0,readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],a.prototype,"type",void 0),(0,r.Cg)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"xField",void 0),(0,r.Cg)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"yField",void 0),a=(0,r.Cg)([(0,o.$K)("esri.layers.support.GeometryEncodingLocation")],a)},34582(e,t,n){n.d(t,{A:()=>a});var r=n(5482),s=n(69540),i=n(25482),o=n(91429);let a=class extends((0,s.OU)(i.o)){constructor(e){super(e),this.type="wkb",this.field=null}};(0,r.Cg)([(0,o.MZ)({type:["wkb"],nonNullable:!0,readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],a.prototype,"type",void 0),(0,r.Cg)([(0,o.MZ)({type:["counter-clockwise"],json:{write:!0}})],a.prototype,"orientation",void 0),(0,r.Cg)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"field",void 0),a=(0,r.Cg)([(0,o.$K)("esri.layers.support.GeometryEncodingWkb")],a)},56370(e,t,n){n.d(t,{A:()=>d});var r=n(5482),s=n(69540),i=n(7762),o=n(49186),a=n(25482),l=n(91429),u=n(64108),c=n(97159),h=n(43937);let d=class extends((0,a.T)(s.Pw)){constructor(e){super(e),this.type="files",this.urls=new i.A}writeUrls(e,t,n,r){const s=e.toArray().map(e=>(0,c.t)(e,r)).filter(e=>!!e);s.length?t.urls=s:r.messages?.push(new o.A("parquet-layer:missing-urls","Missing or empty 'urls'",{data:this}))}};(0,r.Cg)([(0,l.MZ)({type:["files"],nonNullable:!0,readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],d.prototype,"type",void 0),(0,r.Cg)([(0,l.MZ)({type:i.A.ofType(String),json:{write:{isRequired:!0}}})],d.prototype,"urls",void 0),(0,r.Cg)([(0,h.K)("urls")],d.prototype,"writeUrls",null),d=(0,r.Cg)([(0,u.$)("esri.layers.support.ParquetFilesData")],d)},54625(e,t,n){n.d(t,{i_:()=>s});var r=n(30524);function s(e,t,n){t=(0,r.rS)(t)?.toLowerCase(),n=(0,r.rS)(n)?.toLowerCase();const s=e.map(e=>e.toLowerCase()),a=t?e[s.indexOf(t)]:null,l=n?e[s.indexOf(n)]:null;return{longitudeFieldName:a||e[s.indexOf(o.find(e=>s.includes(e)))],latitudeFieldName:l||e[s.indexOf(i.find(e=>s.includes(e)))]}}const i=["lat","lat83","latitude","latitude83","latdecdeg","lat_dd","y","ycenter","point_y"],o=["lon","lng","lng83","long","long83","longitude","longitude83","longdecdeg","long_dd","x","xcenter","point_x"];n.d(t,["A0",0,o,"bD",0,i])},50639(e,t,n){n.d(t,{G:()=>i});var r=n(9075),s=n(34582);function i(e){switch(e.type){case"wkb":return s.A.fromJSON(e);case"location":return r.A.fromJSON(e)}}},42760(e,t,n){n.d(t,{Dt:()=>p,hG:()=>d,nc:()=>m,sA:()=>h}),n(7762);var r=n(49186),s=n(44208),i=n(66552),o=n(16930),a=(n(95031),n(20437)),l=n(30524),u=n(50639);n(56370);const c=new i.J({esriGeometryPoint:"point",esriGeometryPolygon:"polygon",esriGeometryPolyline:"polyline",esriGeometryMultipoint:"multipoint"});function h(e){return c.toJSON(e)}function d(e){return c.fromJSON(e)}async function m(e,t){if(t.geometryType&&t.spatialReference&&t.geometryEncoding&&t.fields&&t.displayOptimization)return t;if(!e)throw new r.A("parquet:bad-input","No metadata found");const n={...t},i=e.fields.map(e=>a.A.fromJSON(e));if(null==n.fields)n.fields=i;else{const e=new Set(n.fields.map(e=>e.name));if(!(0,s.A)("parquetlayer-legacy-field-overrides-enabled"))for(const t of i)e.has(t.name)||n.fields.push(t)}if(null!=n.geometryEncoding){const e=n.geometryEncoding;switch(e.type){case"wkb":{const t=i.find(t=>t.name===e.field);if(!t)throw new r.A("parquet:unsupported",`Geometry encoding references field ${e.field} which does not exist`);if("blob"!==t.type)throw new r.A("parquet:unsupported",`Invalid field type for geometry encoding. Found ${t.type} but expected 'blob'`);break}case"location":for(const t of[e.xField,e.yField])if(null!=t){const e=i.find(e=>e.name===t);if(!e)throw new r.A("parquet:unsupported",`Geometry encoding references field ${t} which does not exist`);if(!(0,l.WA)(e))throw new r.A("parquet:unsupported",`Invalid field type for location geometry encoding. Found ${e.type} but expected a numeric`)}}}return null==n.geometryEncoding&&(n.geometryEncoding=e.geometryEncoding?(0,u.G)(e.geometryEncoding):null),n.fields=function(e,t){const n=t.geoMetadata;if(null==n)return e;const r=new Set(Object.keys(n.columns));return e.filter(e=>!r.has(e.name))}(n.fields,e),!n.displayOptimization&&e.displayOptimization&&(n.displayOptimization=e.displayOptimization),!n.geometryType&&e.geometryType&&(n.geometryType=d(e.geometryType)),!n.spatialReference&&e.spatialReference&&(n.spatialReference=o.A.fromJSON(e.spatialReference)),n}async function p(e,t){switch(e.type){case"files":return{type:"urls",urls:e.urls.toArray()};case"portal-item":{const n=await e.portalItem.load(t);switch(n.type){case"Apache Parquet":return{type:"portal-parquet-file",itemUrl:n.itemUrl,itemCdnUrl:n.itemCdnUrl,modified:n.modified,size:n.size};case"Parquet layer":case"Parquet Layer":case"Parquet feature layer":case"Parquet Feature Layer":if(!n.url)throw new r.A("parquet:bad-item",`Item of type ${n.type} must have a url defined`,n);return{type:"portal-parquet-layer",itemUrl:n.itemUrl,itemCdnUrl:n.itemCdnUrl,itemMetadata:{modified:n.modified,url:n.url}};default:throw new r.A("parquet:bad-item",`Item of type ${n.type} is not supported`,n)}}}}n.d(t,["ye",0,c])},39412(e,t,n){n.d(t,{N:()=>i});var r=n(2741);let s=null;async function i(){return s||(s=async function(){const e=await n.e(1687).then(n.bind(n,31687));return await e.default({module_or_path:(0,r.s)("esri/libs/parquet/pkg/bundle_bg.wasm")}),e}()),s}},63892(e,t,n){n.d(t,{DV:()=>h,FG:()=>p,_6:()=>S});var r=n(49186),s=n(53966),i=n(54625),o=n(39412);const a=()=>s.A.getLogger("esri.layers.ParquetLayer"),l=new Set(["uncompressed","snappy","gzip"]),u=new Set(["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeBigInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong"]);function c(e,t){switch(t){case"esriGeometryPoint":return e.GeometryType.Point;case"esriGeometryPolygon":case"polygon":return e.GeometryType.Polygon;case"esriGeometryPolyline":case"polyline":return e.GeometryType.Polyline;case"esriGeometryMultipoint":case"multipoint":return e.GeometryType.Multipoint;default:throw new r.A("parquet",`Found unexpected GeometryType: ${t}`)}}async function h(e,t){const n=await(0,o.N)(),s=t.geometryInfo?function(e,t){const n=e.GeometryInfo.new();t.geometry&&n.setGeometry(function(e,t){const n=t.encoding,r=c(e,t.geometryType),s=t.spatialReference.wkid;if(null==s)throw new Error("InternalError: Wkid must be defined.");switch(n.type){case"wkb":return e.GeometryField.fromWkb(n.field,s,r);case"location":{const{yField:t,xField:i}=n;return e.GeometryField.fromLocation(t,i,s,r)}}}(e,t.geometry));const r=t.displayOptimization;if(r){const{index:t}=r;if("z"===t.type){const r=e.DisplayOptimizationZBuilder.new();r.setCodeField(p(t.code)),r.setXColumn(p(t.xColumn)),r.setYColumn(p(t.yColumn)),null!=t.zColumn&&r.setZColumn(p(t.zColumn)),null!=t.mColumn&&r.setMColumn(p(t.mColumn)),r.setCooordinatePrecision(t.coordinatePrecision),r.setFullExtent(t.fullExtent),r.setSpatialReference(t.wkid,null==t.wkid?t.wkt:void 0),r.setHasZ(!!t.zColumn),r.setHasM(!!t.mColumn),t.zColumn&&r.setZColumn(p(t.zColumn)),t.mColumn&&r.setMColumn(p(t.mColumn)),n.setOptmizationZ(r)}if("xz"===t.type){const r=c(e,t.geometryType),s=e.DisplayOptimizationXZBuilder.new();s.setCodeField(p(t.code)),s.setEncoding(t.encoding),s.setFullExtent(t.fullExtent),s.setGeometryType(r),s.setSpatialReference(t.wkid,null==t.wkid?t.wkt:void 0),s.setMaxLevel(t.maxLevel),s.setHasZ(t.hasZ??!1),s.setHasM(t.hasM??!1);for(const n of t.levels??[]){const t=new Float64Array(n.transform.translate),r=new Float64Array(n.transform.scale),i=p(n.column);s.addLevel(e.MultiscaleGeometryField.new(n.level,n.resolution,i,t,r))}n.setOptmizationXZ(s)}}return n}(n,t.geometryInfo):null,i=t.provider.fetchRange.bind(t.provider),a=t.provider.fetchLength.bind(t.provider);try{return await n.ParquetFile.fromUrl(e,i,a,s)}catch(e){throw new r.A("parquet","Failed to parse file",{error:e})}}function d(e){if(e.keyValueMetadata("esri"))throw new r.A("parquet:unsupported","File was created using an unsupported experimental display index. Please regenerate the file.");const t=e.keyValueMetadata("geodisplay");if(null!=t)return{present:!0,optimization:m({index:JSON.parse(t)})};const n=e.keyValueMetadata("org.apache.spark.sql.parquet.row.metadata");if(null!=n){const e=JSON.parse(n);for(const t of e.fields)if(null!=t.metadata&&g(t.metadata)){if(!_(t.metadata))return a().warn("parquet:protocol-violation","Ignoring display optimization, found invalid column path",{index:t.metadata}),{present:!0,optimization:null};const e=y(t.metadata,t.name);return null==e?(a().warn("parquet:protocol-violation","Ignoring display optimization, Spark display column paths must be non-empty strings",{index:t.metadata}),{present:!0,optimization:null}):{present:!0,optimization:m({index:e})}}}return{present:!1,optimization:null}}function m(e){if(!_(e.index))return a().warn("parquet:protocol-violation","Ignoring display optimization, found invalid column path",{index:e.index}),null;if("xz"===e.index.type&&(e.index.geometryType=function(e){switch(e.toLowerCase()){case"polygon":return"polygon";case"polyline":return"polyline";case"multipoint":return"multipoint";default:throw new r.A("parquet:unsupported",`Geometry type ${e} is unsupported`)}}(e.index.geometryType),"esri-pbf"===e.index.encoding&&(e.index.encoding="esriPBF"),"esriPBF"!==e.index.encoding))return a().warn("parquet:unsupported",`Encoding for display index must be of type esriPBF, but found ${e.index.encoding}`),null;const{xmin:t,ymin:n,xmax:s,ymax:i}=e.index.fullExtent;return Number.isFinite(t)&&Number.isFinite(n)&&Number.isFinite(s)&&Number.isFinite(i)?e:(a().warn("parquet:protocol-violation","Ignoring display optimization, found bad extent",{index:e.index}),null)}function p(e){return Array.isArray(e)?e.join("."):e}function y(e,t){if("z"===e.type){const n=f(e.code,t),r=f(e.xColumn,t),s=f(e.yColumn,t),i=null==e.zColumn?e.zColumn:f(e.zColumn,t),o=null==e.mColumn?e.mColumn:f(e.mColumn,t);return null==n||null==r||null==s||null===i||null===o?null:{...e,code:n,xColumn:r,yColumn:s,...null==i?{}:{zColumn:i},...null==o?{}:{mColumn:o}}}const n=f(e.code,t),r=[];for(const n of e.levels){const e=f(n.column,t);if(null==e)return null;r.push({...n,column:e})}return null==n?null:{...e,code:n,levels:r}}function f(e,t){return"string"==typeof e&&e.length>0?[t,e]:null}function g(e){return"object"==typeof e&&null!=e&&"type"in e&&("z"===e.type||"xz"===e.type)}function _(e){return"z"===e.type?w(e.code)&&w(e.xColumn)&&w(e.yColumn)&&(null==e.zColumn||w(e.zColumn))&&(null==e.mColumn||w(e.mColumn)):w(e.code)&&Array.isArray(e.levels)&&e.levels.every(e=>"object"==typeof e&&null!=e&&"column"in e&&w(e.column))}function w(e){return"string"==typeof e&&e.length>0||Array.isArray(e)&&2===e.length&&e.every(e=>"string"==typeof e&&e.length>0)}function v(e,t){return a().warn("parquet:protocol-violation",`Ignoring GeoParquet ordering and LOD extensions: ${t}`,{lod:e.lod,ordering:e.ordering}),null}function C(e){return Array.isArray(e)&&2===e.length&&"geolod"===e[0]&&"string"==typeof e[1]&&e[1].length>0}function b(e){return x(e?.scale,!0)&&x(e?.translate,!1)}function x(e,t){return Array.isArray(e)&&4===e.length&&e.every(e=>"number"==typeof e&&Number.isFinite(e)&&(!t||e>0))}function S(e){F(e);const t=function(e){return e.fields(!1).map(e=>({name:e.name,alias:e.name,type:e.type}))}(e),n=function(e){const t=e.keyValueMetadata("geo");return null!=t?JSON.parse(t):null}(e),s=d(e),i=s.present?s.optimization:function(e){if(null==e)return null;const t=e.ordering,n=e.lod;if(null==t&&null==n)return null;if("xz"!==t?.type||null==n||t.geometry_column!==e.primary_column||n.geometry_column!==e.primary_column||t.geometry_column!==n.geometry_column||20!==t.max_level||!function(e){return x(e,!1)&&e[0]<e[2]&&e[1]<e[3]}(t.extent)||"pbf"!==n.encoding)return v(e,"ordering and lod must form a valid primary-column XZ pair");const r=e.columns[e.primary_column],s=function(e){if(null==e||0===e.geometry_types.length)return null;let t,n;for(const r of e.geometry_types){const e=/^(LineString|MultiLineString|Polygon|MultiPolygon)(?: (Z|M|ZM))?$/.exec(r);if(null==e)return null;const s="LineString"===e[1]||"MultiLineString"===e[1]?"polyline":"polygon";if(null!=t&&t!==s||null!=n&&n!==(e[2]??""))return null;t=s,n=e[2]??""}return null==t||null==n?null:{geometryType:t,hasZ:"Z"===n||"ZM"===n,hasM:"M"===n||"ZM"===n}}(r);if(null==s||!function(e,t){return"polygon"===t?"clockwise"===e:null==e}(n.orientation,s.geometryType))return v(e,"geometry type, dimensions, or LOD orientation is invalid");const i=function(e){if(!Array.isArray(e)||0===e.length)return null;const t=new Set,n=e.slice().sort((e,t)=>t.resolution-e.resolution),r=[];for(const[e,s]of n.entries()){if(!C(s.column)||!Number.isFinite(s.resolution)||s.resolution<=0||t.has(s.resolution)||!b(s.transform))return null;t.add(s.resolution),r.push({column:s.column,level:e,resolution:s.resolution,transform:s.transform})}return r}(n.levels),o=R(r)?.wkid;if(null==i||null==o)return v(e,"LOD levels or spatial reference is invalid");const[a,l,u,c]=t.extent;return{index:{type:"xz",code:"geokey",wkid:o,wkt:null,encoding:"esriPBF",fullExtent:{xmin:a,ymin:l,xmax:u,ymax:c},geometryType:s.geometryType,maxLevel:t.max_level,hasZ:s.hasZ,hasM:s.hasM,levels:i}}}(n),o=q(n,t),{hasZ:a,hasM:l}=function(e,t){const n=t?.index;if("z"===n?.type)return{hasZ:null!=n.zColumn,hasM:null!=n.mColumn};if("xz"===n?.type)return{hasZ:!0===n.hasZ,hasM:!0===n.hasM};const r=e?.columns[e.primary_column]?.geometry_types??[];return{hasZ:r.some(e=>/ (?:Z|ZM)$/u.test(e)),hasM:r.some(e=>/ (?:M|ZM)$/u.test(e))}}(n,i);let u,c;if(o)switch(o.type){case"location":c={wkid:4326},u="esriGeometryPoint";break;case"wkb":if(n){const e=n.primary_column,t=n.columns[e];u=function(e){const{geometry_types:t}=e,n=new Set;for(const e of t){const t=M(e);t&&n.add(t)}if(n.size>1)throw new r.A("parquet:unsupported","Parquet mixed geometry types are not supported",{geometryTypes:n});return 1===n.size?n.values().next().value:void 0}(t),c=R(t)}}if(i){const e=i.index;!c&&e.wkid&&(c={wkid:e.wkid}),u||(u="z"===e.type?"esriGeometryPoint":function(e){switch(e){case"polygon":return"esriGeometryPolygon";case"polyline":return"esriGeometryPolyline";case"multipoint":return"esriGeometryMultipoint"}}(e.geometryType))}return{geoMetadata:n,displayOptimization:i,hasZ:a,hasM:l,geometryEncoding:o,geometryInfo:c&&u?{geometry:o?{geometryType:u,spatialReference:c,encoding:o}:null,displayOptimization:i}:null,geometryType:u,spatialReference:c,extent:A(n,i,c),fields:t}}function F(e){for(const t of e.compressionCodecs())if(!l.has(t))throw new r.A("parquet:unsupported",`Compression codec ${t} is unsupported. Must be of type ${Array.from(l).join(",")}`)}function q(e,t){if(null!=e){const t=e.primary_column;return{type:"wkb",field:t,orientation:"counterclockwise"===e.columns[t].orientation?"counter-clockwise":null}}const n=function(e){const t=e.map(e=>e.toLowerCase());return{longitudeFieldName:e[t.indexOf(i.A0.find(e=>t.includes(e)))],latitudeFieldName:e[t.indexOf(i.bD.find(e=>t.includes(e)))]}}(t.filter(e=>u.has(e.type)).map(e=>e.name));return n.latitudeFieldName&&n.longitudeFieldName?{type:"location",xField:n.longitudeFieldName,yField:n.latitudeFieldName}:null}function M(e){switch(e.replace(/ (?:Z|M|ZM)$/u,"")){case"Point":return"esriGeometryPoint";case"Polygon":case"MultiPolygon":return"esriGeometryPolygon";case"LineString":case"MultiLineString":return"esriGeometryPolyline";case"MultiPoint":return"esriGeometryMultipoint";default:return null}}function R(e){const t=e.crs?.id?.code;return"number"==typeof t?{wkid:t}:"OGC"===e.crs?.id?.authority&&"CRS84"===t?{wkid:4326}:void 0}function A(e,t,n){if(!n)return null;const r=e?e.columns[e.primary_column]:null,s=r?.bbox;if(s?.every(e=>Number.isFinite(e)))switch(s.length){case 4:return{xmin:s[0],ymin:s[1],xmax:s[2],ymax:s[3],spatialReference:n};case 6:return{xmin:s[0],ymin:s[1],xmax:s[3],ymax:s[4],spatialReference:n};default:a().warn("parquet:protocol-violation","Invalid Geoparquet file. BoundingBox size must be 4 or 6.",{geoMetadata:e})}const i=t?.index.fullExtent;return i?{...i,spatialReference:n}:null}},93470(e,t,n){const r=[252,146,31,255],s={type:"esriSMS",style:"esriSMSCircle",size:6,color:r,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},i={type:"esriSLS",style:"esriSLSSolid",width:.75,color:r};n.d(t,["Cb",0,s,"HW",0,{type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},"JR",0,[153,153,153,255],"JZ",0,{type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},"WR",0,{type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},"b6",0,{type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null},"fT",0,r,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,i])}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5141],{5141(e,t,l){l.r(t),l.d(t,{build:()=>s.b}),l(32680),l(34711),l(76597),l(2585),l(96336),l(53466),l(72824),l(35640),l(9169),l(77068),l(77695),l(72233),l(32971),l(98619),l(62602),l(22393),l(59469),l(32482),l(51406),l(43259),l(58614),l(77949),l(33079),l(31821),l(63761),l(27832),l(47630),l(14113);var s=l(28491)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2390],{11053(e,t,r){r.d(t,{c:()=>n,g:()=>i});var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{};function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}},22390(e,t,r){r.d(t,{isAnimatedPNG:()=>f,parseApng:()=>l});var n,i=r(11053),s=r(17676),a=r(78659),o={exports:{}};o.exports;const u=(0,i.g)((n||(n=1,h=function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={exports:{},id:n,loaded:!1};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}return r.m=e,r.c=t,r.p="",r(0)}([function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.isNotPNG=function(e){return e===s},t.isNotAPNG=function(e){return e===a},t.default=function(e){var t=new Uint8Array(e);if(Array.prototype.some.call(o,function(e,r){return e!==t[r]}))return s;var r=!1;if(u(t,function(e){return!(r="acTL"===e)}),!r)return a;var n=[],h=[],p=null,m=null,d=0,v=new i.APNG;if(u(t,function(e,t,r,s){var a=new DataView(t.buffer);switch(e){case"IHDR":p=t.subarray(r+8,r+8+s),v.width=a.getUint32(r+8),v.height=a.getUint32(r+12);break;case"acTL":v.numPlays=a.getUint32(r+8+4);break;case"fcTL":m&&(v.frames.push(m),d++),(m=new i.Frame).width=a.getUint32(r+8+4),m.height=a.getUint32(r+8+8),m.left=a.getUint32(r+8+12),m.top=a.getUint32(r+8+16);var o=a.getUint16(r+8+20),u=a.getUint16(r+8+22);0===u&&(u=100),m.delay=1e3*o/u,m.delay<=10&&(m.delay=100),v.playTime+=m.delay,m.disposeOp=a.getUint8(r+8+24),m.blendOp=a.getUint8(r+8+25),m.dataParts=[],0===d&&2===m.disposeOp&&(m.disposeOp=1);break;case"fdAT":m&&m.dataParts.push(t.subarray(r+8+4,r+8+s));break;case"IDAT":m&&m.dataParts.push(t.subarray(r+8,r+8+s));break;case"IEND":h.push(l(t,r,12+s));break;default:n.push(l(t,r,12+s))}}),m&&v.frames.push(m),0==v.frames.length)return a;var _=new Blob(n),g=new Blob(h);return v.frames.forEach(function(e){var t=[];t.push(o),p.set(f(e.width),0),p.set(f(e.height),4),t.push(c("IHDR",p)),t.push(_),e.dataParts.forEach(function(e){return t.push(c("IDAT",e))}),t.push(g),e.imageData=new Blob(t,{type:"image/png"}),delete e.dataParts,t=null}),v};var n=function(e){return e&&e.__esModule?e:{default:e}}(r(1)),i=r(2),s=new Error("Not a PNG"),a=new Error("Not an animated PNG"),o=new Uint8Array([137,80,78,71,13,10,26,10]);function u(e,t){var r=new DataView(e.buffer),n=8,i=void 0,s=void 0,a=void 0;do{s=r.getUint32(n),a=t(i=h(e,n+4,4),e,n,s),n+=12+s}while(!1!==a&&"IEND"!=i&&n<e.length)}function h(e,t,r){var n=Array.prototype.slice.call(e.subarray(t,t+r));return String.fromCharCode.apply(String,n)}function l(e,t,r){var n=new Uint8Array(r);return n.set(e.subarray(t,t+r)),n}var c=function(e,t){var r=e.length+t.length,i=new Uint8Array(r+8),s=new DataView(i.buffer);s.setUint32(0,t.length),i.set(function(e){for(var t=new Uint8Array(e.length),r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}(e),4),i.set(t,8);var a=(0,n.default)(i,4,r);return s.setUint32(r+4,a),i},f=function(e){return new Uint8Array([e>>>24&255,e>>>16&255,e>>>8&255,255&e])}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1,i=t,s=t+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length-t);i<s;i++)n=n>>>8^r[255&(n^e[i])];return-1^n};for(var r=new Uint32Array(256),n=0;n<256;n++){for(var i=n,s=0;s<8;s++)i=1&i?3988292384^i>>>1:i>>>1;r[n]=i}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.Frame=t.APNG=void 0;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function(e){return e&&e.__esModule?e:{default:e}}(r(3));function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.APNG=function(){function e(){s(this,e),this.width=0,this.height=0,this.numPlays=0,this.playTime=0,this.frames=[]}return n(e,[{key:"createImages",value:function(){return Promise.all(this.frames.map(function(e){return e.createImage()}))}},{key:"getPlayer",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.createImages().then(function(){return new i.default(t,e,r)})}}]),e}(),t.Frame=function(){function e(){s(this,e),this.left=0,this.top=0,this.width=0,this.height=0,this.delay=0,this.disposeOp=0,this.blendOp=0,this.imageData=null,this.imageElement=null}return n(e,[{key:"createImage",value:function(){var e=this;return this.imageElement?Promise.resolve():new Promise(function(t,r){var n=URL.createObjectURL(e.imageData);e.imageElement=document.createElement("img"),e.imageElement.onload=function(){URL.revokeObjectURL(n),t()},e.imageElement.onerror=function(){URL.revokeObjectURL(n),e.imageElement=null,r(new Error("Image creation error"))},e.imageElement.src=n})}}]),e}()},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function(e){function t(e,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return i.playbackRate=1,i._currentFrameNumber=0,i._ended=!1,i._paused=!0,i._numPlays=0,i._rafId=null,i._apng=e,i.context=r,i.stop(),n&&i.play(),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n(t,[{key:"renderNextFrame",value:function(){this._currentFrameNumber=(this._currentFrameNumber+1)%this._apng.frames.length,this._currentFrameNumber===this._apng.frames.length-1&&(this._numPlays++,0!==this._apng.numPlays&&this._numPlays>=this._apng.numPlays&&(this._ended=!0,this._paused=!0)),this._prevFrame&&1==this._prevFrame.disposeOp?this.context.clearRect(this._prevFrame.left,this._prevFrame.top,this._prevFrame.width,this._prevFrame.height):this._prevFrame&&2==this._prevFrame.disposeOp&&this.context.putImageData(this._prevFrameData,this._prevFrame.left,this._prevFrame.top);var e=this.currentFrame;this._prevFrame=e,this._prevFrameData=null,2==e.disposeOp&&(this._prevFrameData=this.context.getImageData(e.left,e.top,e.width,e.height)),0==e.blendOp&&this.context.clearRect(e.left,e.top,e.width,e.height),this.context.drawImage(e.imageElement,e.left,e.top),this.emit("frame",this._currentFrameNumber),this._ended&&this.emit("end")}},{key:"play",value:function(){var e=this;this._rafId&&cancelAnimationFrame(this._rafId),this.emit("play"),this._ended&&this.stop(),this._paused=!1;var t=performance.now()+this.currentFrame.delay/this.playbackRate;this._rafId=requestAnimationFrame(function r(n){if(!e._ended&&!e._paused){if(n>=t){for(;n-t>=e._apng.playTime/e.playbackRate;)t+=e._apng.playTime/e.playbackRate,e._numPlays++;do{e.renderNextFrame(),t+=e.currentFrame.delay/e.playbackRate}while(!e._ended&&!e._paused&&n>t)}e._rafId=requestAnimationFrame(r)}})}},{key:"pause",value:function(){this._paused||(this._rafId&&(cancelAnimationFrame(this._rafId),this._rafId=null),this.emit("pause"),this._paused=!0)}},{key:"stop",value:function(){this._rafId&&(cancelAnimationFrame(this._rafId),this._rafId=null),this.emit("stop"),this._numPlays=0,this._ended=!1,this._paused=!0,this._currentFrameNumber=-1,this.context.clearRect(0,0,this._apng.width,this._apng.height),this.renderNextFrame()}},{key:"currentFrameNumber",get:function(){return this._currentFrameNumber}},{key:"currentFrame",get:function(){return this._apng.frames[this._currentFrameNumber]}},{key:"paused",get:function(){return this._paused}},{key:"ended",get:function(){return this._ended}}]),t}(function(e){return e&&e.__esModule?e:{default:e}}(r(4)).default);t.default=i},function(e,t){function r(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function n(e){return"function"==typeof e}function i(e){return"object"==typeof e&&null!==e}function s(e){return void 0===e}e.exports=r,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._maxListeners=void 0,r.defaultMaxListeners=10,r.prototype.setMaxListeners=function(e){if(!function(e){return"number"==typeof e}(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},r.prototype.emit=function(e){var t,r,a,o,u,h;if(this._events||(this._events={}),"error"===e&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}if(s(r=this._events[e]))return!1;if(n(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:o=Array.prototype.slice.call(arguments,1),r.apply(this,o)}else if(i(r))for(o=Array.prototype.slice.call(arguments,1),a=(h=r.slice()).length,u=0;u<a;u++)h[u].apply(this,o);return!0},r.prototype.addListener=function(e,t){var a;if(!n(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,n(t.listener)?t.listener:t),this._events[e]?i(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,i(this._events[e])&&!this._events[e].warned&&(a=s(this._maxListeners)?r.defaultMaxListeners:this._maxListeners)&&a>0&&this._events[e].length>a&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(e,t){if(!n(t))throw TypeError("listener must be a function");var r=!1;function i(){this.removeListener(e,i),r||(r=!0,t.apply(this,arguments))}return i.listener=t,this.on(e,i),this},r.prototype.removeListener=function(e,t){var r,s,a,o;if(!n(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=(r=this._events[e]).length,s=-1,r===t||n(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(i(r)){for(o=a;o-- >0;)if(r[o]===t||r[o].listener&&r[o].listener===t){s=o;break}if(s<0)return this;1===r.length?(r.length=0,delete this._events[e]):r.splice(s,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},r.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n(r=this._events[e]))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},r.prototype.listeners=function(e){return this._events&&this._events[e]?n(this._events[e])?[this._events[e]]:this._events[e].slice():[]},r.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(n(t))return 1;if(t)return t.length}return 0},r.listenerCount=function(e,t){return e.listenerCount(t)}}])},o.exports=h()),o.exports));var h;async function l(e,t){const r=u(e);if(r instanceof Error)throw r;await r.createImages(),(0,s.Te)(t);const{frames:n,width:i,height:o}=r,h=document.createElement("canvas");h.width=i,h.height=o;const l=h.getContext("2d",{willReadFrequently:!0}),c=[],f=[];let p=0;for(const e of n){const t=(0,a.l5)(e.delay||100);f.push(t),p+=t;const r=e.imageElement;0===e.blendOp?l.globalCompositeOperation="copy":l.globalCompositeOperation="source-over";const n=2===e.disposeOp?l.getImageData(e.left,e.top,e.width,e.height):void 0;l.drawImage(r,e.left,e.top);const s=l.getImageData(0,0,i,o);c.push(s),0===e.disposeOp||(1===e.disposeOp?l.clearRect(e.left,e.top,e.width,e.height):2===e.disposeOp&&l.putImageData(n,e.left,e.top))}return{frameCount:n.length,duration:p,frameDurations:f,getFrame:e=>c[e],width:i,height:o}}const c=[137,80,78,71,13,10,26,10];function f(e){if(!function(e){const t=new Uint8Array(e);return!c.some((e,r)=>e!==t[r])}(e))return!1;const t=new DataView(e),r=new Uint8Array(e);let n,i=8;do{const e=t.getUint32(i);if(n=String.fromCharCode.apply(String,Array.prototype.slice.call(r.subarray(i+4,i+8))),"acTL"===n)return!0;i+=12+e}while("IEND"!==n&&i<r.length);return!1}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1687],{31687(e,t,_){_.r(t),_.d(t,{ColumnDescriptor:()=>r,ColumnId:()=>n,DisplayOptimizationXZBuilder:()=>s,DisplayOptimizationZBuilder:()=>o,Extent:()=>a,FieldMetadata:()=>u,GeometryField:()=>c,GeometryInfo:()=>l,MultiscaleGeometryField:()=>p,PageEncodingDescriptor:()=>b,ParquetChunk:()=>w,ParquetFile:()=>d,ParquetPatchChunk:()=>f,QuantizedGeometryBuffer:()=>y,Query:()=>h,QueryStream:()=>m,RangeProviderJs:()=>z,RowGroup:()=>F,RowGroupId:()=>q,default:()=>Oe,enableTracing:()=>x,getXZCodeRanges:()=>S,initSync:()=>Ce,queryIntersectsXYStatistics:()=>R,queryIntersectsXZStatistics:()=>v});class r{static __wrap(e){e>>>=0;const t=Object.create(r.prototype);return t.__wbg_ptr=e,T.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,T.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_columndescriptor_free(e,0)}compressedSize(){return Re.columndescriptor_compressedSize(this.__wbg_ptr)}compression(){let e,t;try{const _=Re.columndescriptor_compression(this.__wbg_ptr);return e=_[0],t=_[1],ue(_[0],_[1])}finally{Re.__wbindgen_free(e,t,1)}}distinctCount(){const e=Re.columndescriptor_distinctCount(this.__wbg_ptr);return 0===e[0]?void 0:e[1]}encodings(){return Re.columndescriptor_encodings(this.__wbg_ptr)}logicalType(){const e=Re.columndescriptor_logicalType(this.__wbg_ptr);let t;return 0!==e[0]&&(t=ue(e[0],e[1]).slice(),Re.__wbindgen_free(e[0],1*e[1],1)),t}maxValue(){return Re.columndescriptor_maxValue(this.__wbg_ptr)}minValue(){return Re.columndescriptor_minValue(this.__wbg_ptr)}name(){let e,t;try{const _=Re.columndescriptor_name(this.__wbg_ptr);return e=_[0],t=_[1],ue(_[0],_[1])}finally{Re.__wbindgen_free(e,t,1)}}nullCount(){const e=Re.columndescriptor_nullCount(this.__wbg_ptr);return 0===e[0]?void 0:e[1]}numValues(){return Re.columndescriptor_numValues(this.__wbg_ptr)}pageEncodings(){const e=Re.columndescriptor_pageEncodings(this.__wbg_ptr);let t;return 0!==e[0]&&(t=_e(e[0],e[1]).slice(),Re.__wbindgen_free(e[0],4*e[1],4)),t}physicalType(){const e=Re.columndescriptor_physicalType(this.__wbg_ptr);return O[e]}uncompressedSize(){return Re.columndescriptor_uncompressedSize(this.__wbg_ptr)}}Symbol.dispose&&(r.prototype[Symbol.dispose]=r.prototype.free);class n{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,P.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_columnid_free(e,0)}}Symbol.dispose&&(n.prototype[Symbol.dispose]=n.prototype.free);const i=Object.freeze({PBF:0,0:"PBF"});class s{static __wrap(e){e>>>=0;const t=Object.create(s.prototype);return t.__wbg_ptr=e,M.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,M.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_displayoptimizationxzbuilder_free(e,0)}addLevel(e){$(e,p);var t=e.__destroy_into_raw();Re.displayoptimizationxzbuilder_addLevel(this.__wbg_ptr,t)}static new(){const e=Re.displayoptimizationxzbuilder_new();return s.__wrap(e)}setCodeField(e){const t=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),_=ve;Re.displayoptimizationxzbuilder_setCodeField(this.__wbg_ptr,t,_)}setEncoding(e){const t=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),_=ve,r=Re.displayoptimizationxzbuilder_setEncoding(this.__wbg_ptr,t,_);if(r[1])throw ze(r[0])}setFullExtent(e){Re.displayoptimizationxzbuilder_setFullExtent(this.__wbg_ptr,e)}setGeometryType(e){Re.displayoptimizationxzbuilder_setGeometryType(this.__wbg_ptr,e)}setHasM(e){Re.displayoptimizationxzbuilder_setHasM(this.__wbg_ptr,e)}setHasZ(e){Re.displayoptimizationxzbuilder_setHasZ(this.__wbg_ptr,e)}setMaxLevel(e){Re.displayoptimizationxzbuilder_setMaxLevel(this.__wbg_ptr,e)}setSpatialReference(e,t){var _=we(t)?0:me(t,Re.__wbindgen_malloc,Re.__wbindgen_realloc),r=ve;const n=Re.displayoptimizationxzbuilder_setSpatialReference(this.__wbg_ptr,we(e)?4294967297:e>>>0,_,r);if(n[1])throw ze(n[0])}}Symbol.dispose&&(s.prototype[Symbol.dispose]=s.prototype.free);class o{static __wrap(e){e>>>=0;const t=Object.create(o.prototype);return t.__wbg_ptr=e,j.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,j.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_displayoptimizationzbuilder_free(e,0)}static new(){const e=Re.displayoptimizationzbuilder_new();return o.__wrap(e)}setCodeField(e){const t=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),_=ve;Re.displayoptimizationzbuilder_setCodeField(this.__wbg_ptr,t,_)}setCooordinatePrecision(e){Re.displayoptimizationzbuilder_setCooordinatePrecision(this.__wbg_ptr,e)}setFullExtent(e){Re.displayoptimizationzbuilder_setFullExtent(this.__wbg_ptr,e)}setHasM(e){Re.displayoptimizationzbuilder_setHasM(this.__wbg_ptr,e)}setHasZ(e){Re.displayoptimizationzbuilder_setHasZ(this.__wbg_ptr,e)}setMColumn(e){const t=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),_=ve;Re.displayoptimizationzbuilder_setMColumn(this.__wbg_ptr,t,_)}setSpatialReference(e,t){var _=we(t)?0:me(t,Re.__wbindgen_malloc,Re.__wbindgen_realloc),r=ve;const n=Re.displayoptimizationzbuilder_setSpatialReference(this.__wbg_ptr,we(e)?4294967297:e>>>0,_,r);if(n[1])throw ze(n[0])}setXColumn(e){const t=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),_=ve;Re.displayoptimizationzbuilder_setXColumn(this.__wbg_ptr,t,_)}setYColumn(e){const t=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),_=ve;Re.displayoptimizationzbuilder_setYColumn(this.__wbg_ptr,t,_)}setZColumn(e){const t=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),_=ve;Re.displayoptimizationzbuilder_setZColumn(this.__wbg_ptr,t,_)}}Symbol.dispose&&(o.prototype[Symbol.dispose]=o.prototype.free);class a{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,A.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_extent_free(e,0)}get xmax(){return Re.__wbg_get_extent_xmax(this.__wbg_ptr)}get xmin(){return Re.__wbg_get_extent_xmin(this.__wbg_ptr)}get ymax(){return Re.__wbg_get_extent_ymax(this.__wbg_ptr)}get ymin(){return Re.__wbg_get_extent_ymin(this.__wbg_ptr)}set xmax(e){Re.__wbg_set_extent_xmax(this.__wbg_ptr,e)}set xmin(e){Re.__wbg_set_extent_xmin(this.__wbg_ptr,e)}set ymax(e){Re.__wbg_set_extent_ymax(this.__wbg_ptr,e)}set ymin(e){Re.__wbg_set_extent_ymin(this.__wbg_ptr,e)}}Symbol.dispose&&(a.prototype[Symbol.dispose]=a.prototype.free);class u{static __wrap(e){e>>>=0;const t=Object.create(u.prototype);return t.__wbg_ptr=e,U.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,U.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_fieldmetadata_free(e,0)}get type(){const e=Re.fieldmetadata_esri_type(this.__wbg_ptr);return I[e]}get logicalType(){const e=Re.fieldmetadata_logical_type(this.__wbg_ptr);let t;return 0!==e[0]&&(t=ue(e[0],e[1]).slice(),Re.__wbindgen_free(e[0],1*e[1],1)),t}get name(){let e,t;try{const _=Re.fieldmetadata_name(this.__wbg_ptr);return e=_[0],t=_[1],ue(_[0],_[1])}finally{Re.__wbindgen_free(e,t,1)}}get physicalType(){const e=Re.fieldmetadata_physical_type(this.__wbg_ptr);let t;return 0!==e[0]&&(t=ue(e[0],e[1]).slice(),Re.__wbindgen_free(e[0],1*e[1],1)),t}get is_nested(){return 0!==Re.__wbg_get_fieldmetadata_is_nested(this.__wbg_ptr)}set is_nested(e){Re.__wbg_set_fieldmetadata_is_nested(this.__wbg_ptr,e)}}Symbol.dispose&&(u.prototype[Symbol.dispose]=u.prototype.free);class c{static __wrap(e){e>>>=0;const t=Object.create(c.prototype);return t.__wbg_ptr=e,L.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,L.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_geometryfield_free(e,0)}static fromLocation(e,t,_,r){const n=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),i=ve,s=me(t,Re.__wbindgen_malloc,Re.__wbindgen_realloc),o=ve,a=Re.geometryfield_fromLocation(n,i,s,o,_,r);if(a[2])throw ze(a[1]);return c.__wrap(a[0])}static fromWkb(e,t,_){const r=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),n=ve,i=Re.geometryfield_fromWkb(r,n,t,_);if(i[2])throw ze(i[1]);return c.__wrap(i[0])}}Symbol.dispose&&(c.prototype[Symbol.dispose]=c.prototype.free);class l{static __wrap(e){e>>>=0;const t=Object.create(l.prototype);return t.__wbg_ptr=e,G.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,G.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_geometryinfo_free(e,0)}static new(){const e=Re.geometryinfo_new();if(e[2])throw ze(e[1]);return l.__wrap(e[0])}setGeometry(e){$(e,c);var t=e.__destroy_into_raw();Re.geometryinfo_setGeometry(this.__wbg_ptr,t)}setOptmizationXZ(e){$(e,s);var t=e.__destroy_into_raw();const _=Re.geometryinfo_setOptmizationXZ(this.__wbg_ptr,t);if(_[1])throw ze(_[0])}setOptmizationZ(e){$(e,o);var t=e.__destroy_into_raw();const _=Re.geometryinfo_setOptmizationZ(this.__wbg_ptr,t);if(_[1])throw ze(_[0])}}Symbol.dispose&&(l.prototype[Symbol.dispose]=l.prototype.free);const g=Object.freeze({Point:0,0:"Point",Polygon:1,1:"Polygon",Polyline:2,2:"Polyline",Multipoint:3,3:"Multipoint"});class p{static __wrap(e){e>>>=0;const t=Object.create(p.prototype);return t.__wbg_ptr=e,E.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,E.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_multiscalegeometryfield_free(e,0)}get level(){return Re.__wbg_get_multiscalegeometryfield_level(this.__wbg_ptr)}get resolution(){return Re.__wbg_get_multiscalegeometryfield_resolution(this.__wbg_ptr)}has_field(e){const t=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),_=ve;return 0!==Re.multiscalegeometryfield_has_field(this.__wbg_ptr,t,_)}static new(e,t,_,r,n){const i=me(_,Re.__wbindgen_malloc,Re.__wbindgen_realloc),s=ve,o=ye(r,Re.__wbindgen_malloc),a=ve,u=ye(n,Re.__wbindgen_malloc),c=ve,l=Re.multiscalegeometryfield_new(e,t,i,s,o,a,u,c);return p.__wrap(l)}set level(e){Re.__wbg_set_multiscalegeometryfield_level(this.__wbg_ptr,e)}set resolution(e){Re.__wbg_set_multiscalegeometryfield_resolution(this.__wbg_ptr,e)}}Symbol.dispose&&(p.prototype[Symbol.dispose]=p.prototype.free);class b{static __wrap(e){e>>>=0;const t=Object.create(b.prototype);return t.__wbg_ptr=e,D.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,D.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_pageencodingdescriptor_free(e,0)}count(){return Re.pageencodingdescriptor_count(this.__wbg_ptr)}encoding(){let e,t;try{const _=Re.pageencodingdescriptor_encoding(this.__wbg_ptr);return e=_[0],t=_[1],ue(_[0],_[1])}finally{Re.__wbindgen_free(e,t,1)}}pageType(){let e,t;try{const _=Re.pageencodingdescriptor_pageType(this.__wbg_ptr);return e=_[0],t=_[1],ue(_[0],_[1])}finally{Re.__wbindgen_free(e,t,1)}}}Symbol.dispose&&(b.prototype[Symbol.dispose]=b.prototype.free);class w{static __wrap(e){e>>>=0;const t=Object.create(w.prototype);return t.__wbg_ptr=e,W.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,W.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_parquetchunk_free(e,0)}boundsXMax(e){const t=Re.parquetchunk_boundsXMax(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}boundsXMin(e){const t=Re.parquetchunk_boundsXMin(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}boundsYMax(e){const t=Re.parquetchunk_boundsYMax(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}boundsYMin(e){const t=Re.parquetchunk_boundsYMin(this.__wbg_ptr,e);return 0===t[0]?void 0:t[1]}coordinateStride(){return Re.parquetchunk_coordinateStride(this.__wbg_ptr)>>>0}static deserialize(e){const t=fe(e,Re.__wbindgen_malloc),_=ve,r=Re.parquetchunk_deserialize(t,_);return w.__wrap(r)}hasColumn(e){return 0!==Re.parquetchunk_hasColumn(this.__wbg_ptr,e)}hasM(){return 0!==Re.parquetchunk_hasM(this.__wbg_ptr)}hasZ(){return 0!==Re.parquetchunk_hasZ(this.__wbg_ptr)}insertPatch(e){$(e,f);var t=e.__destroy_into_raw();Re.parquetchunk_insertPatch(this.__wbg_ptr,t)}insertPatchBytes(e){const t=fe(e,Re.__wbindgen_malloc),_=ve;Re.parquetchunk_insertPatchBytes(this.__wbg_ptr,t,_)}readAttribute(e,t){return Re.parquetchunk_readAttribute(this.__wbg_ptr,e,t)}readCoordsUnsafe(e){return Re.parquetchunk_readCoordsUnsafe(this.__wbg_ptr,e)}readIdsUnsafe(){return Re.parquetchunk_readIdsUnsafe(this.__wbg_ptr)}readLengthsUnsafe(e){return Re.parquetchunk_readLengthsUnsafe(this.__wbg_ptr,e)}readPointCoordsQuantizedUnsafe(){return Re.parquetchunk_readPointCoordsQuantizedUnsafe(this.__wbg_ptr)}readPointCoordsUnsafe(){return Re.parquetchunk_readPointCoordsUnsafe(this.__wbg_ptr)}rowGroup(){return Re.parquetchunk_rowGroup(this.__wbg_ptr)>>>0}rowId(e){return Re.parquetchunk_rowId(this.__wbg_ptr,e)}serialize(){const e=Re.parquetchunk_serialize(this.__wbg_ptr);var t=re(e[0],e[1]).slice();return Re.__wbindgen_free(e[0],1*e[1],1),t}size(){return Re.parquetchunk_size(this.__wbg_ptr)>>>0}transformGeometry(e,t,_,r,n,i){$(e,y);const s=Re.parquetchunk_transformGeometry(this.__wbg_ptr,e.__wbg_ptr,t,_,r,n,i);return 16777215===s?void 0:0!==s}}Symbol.dispose&&(w.prototype[Symbol.dispose]=w.prototype.free);class d{static __wrap(e){e>>>=0;const t=Object.create(d.prototype);return t.__wbg_ptr=e,Z.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Z.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_parquetfile_free(e,0)}byteLength(){return Re.parquetfile_byteLength(this.__wbg_ptr)}columnIndex(e,t){return Re.parquetfile_columnIndex(this.__wbg_ptr,e,t)}compressionCodecs(){const e=Re.parquetfile_compressionCodecs(this.__wbg_ptr);var t=_e(e[0],e[1]).slice();return Re.__wbindgen_free(e[0],4*e[1],4),t}createChunkPatch(e,t,_,r){const n=de(t,Re.__wbindgen_malloc),i=ve,s=he(_,Re.__wbindgen_malloc),o=ve;return Re.parquetfile_createChunkPatch(this.__wbg_ptr,e,n,i,s,o,we(r)?0:N(r))}createdBy(){const e=Re.parquetfile_createdBy(this.__wbg_ptr);let t;return 0!==e[0]&&(t=ue(e[0],e[1]).slice(),Re.__wbindgen_free(e[0],1*e[1],1)),t}diagnosticsSnapshot(){const e=Re.parquetfile_diagnosticsSnapshot(this.__wbg_ptr);if(e[2])throw ze(e[1]);return ze(e[0])}executeQuery(e,t,_){return $(e,h),Re.parquetfile_executeQuery(this.__wbg_ptr,e.__wbg_ptr,t,we(_)?0:N(_))}fields(e){const t=Re.parquetfile_fields(this.__wbg_ptr,e);var _=_e(t[0],t[1]).slice();return Re.__wbindgen_free(t[0],4*t[1],4),_}static fromBinary(e,t){const _=fe(e,Re.__wbindgen_malloc),r=ve;let n=0;return we(t)||($(t,l),n=t.__destroy_into_raw()),Re.parquetfile_fromBinary(_,r,n)}static fromUrl(e,t,_,r){const n=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),i=ve;let s=0;return we(r)||($(r,l),s=r.__destroy_into_raw()),Re.parquetfile_fromUrl(n,i,t,_,s)}getColumnDescriptor(e){const t=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),_=ve,n=Re.parquetfile_getColumnDescriptor(this.__wbg_ptr,t,_);return r.__wrap(n)}getColumnDescriptors(){const e=Re.parquetfile_getColumnDescriptors(this.__wbg_ptr);var t=_e(e[0],e[1]).slice();return Re.__wbindgen_free(e[0],4*e[1],4),t}getColumnId(e){const t=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),_=ve,r=Re.parquetfile_getColumnId(this.__wbg_ptr,t,_);return 4294967297===r?void 0:r}keyValueMetadata(e){const t=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),_=ve,r=Re.parquetfile_keyValueMetadata(this.__wbg_ptr,t,_);let n;return 0!==r[0]&&(n=ue(r[0],r[1]).slice(),Re.__wbindgen_free(r[0],1*r[1],1)),n}keys(){const e=Re.parquetfile_keys(this.__wbg_ptr);let t;return 0!==e[0]&&(t=_e(e[0],e[1]).slice(),Re.__wbindgen_free(e[0],4*e[1],4)),t}numColumns(){return Re.parquetfile_numColumns(this.__wbg_ptr)>>>0}numFields(){return Re.parquetfile_numFields(this.__wbg_ptr)>>>0}numRows(){return Re.parquetfile_numRows(this.__wbg_ptr)>>>0}offsetIndex(e,t){return Re.parquetfile_offsetIndex(this.__wbg_ptr,e,t)}readAttribute(e,t,_){return Re.parquetfile_readAttribute(this.__wbg_ptr,e,t,_)}rowGroups(){const e=Re.parquetfile_rowGroups(this.__wbg_ptr);var t=_e(e[0],e[1]).slice();return Re.__wbindgen_free(e[0],4*e[1],4),t}updateChunkFields(e,t,_){$(e,w);const r=he(t,Re.__wbindgen_malloc),n=ve;return Re.parquetfile_updateChunkFields(this.__wbg_ptr,e.__wbg_ptr,r,n,we(_)?0:N(_))}version(){return Re.parquetfile_version(this.__wbg_ptr)}}Symbol.dispose&&(d.prototype[Symbol.dispose]=d.prototype.free);class f{static __wrap(e){e>>>=0;const t=Object.create(f.prototype);return t.__wbg_ptr=e,B.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,B.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_parquetpatchchunk_free(e,0)}static deserialize(e){const t=fe(e,Re.__wbindgen_malloc),_=ve,r=Re.parquetpatchchunk_deserialize(t,_);return f.__wrap(r)}serialize(){const e=Re.parquetpatchchunk_serialize(this.__wbg_ptr);var t=re(e[0],e[1]).slice();return Re.__wbindgen_free(e[0],1*e[1],1),t}}Symbol.dispose&&(f.prototype[Symbol.dispose]=f.prototype.free);class y{static __wrap(e){e>>>=0;const t=Object.create(y.prototype);return t.__wbg_ptr=e,X.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,X.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_quantizedgeometrybuffer_free(e,0)}static new(){const e=Re.quantizedgeometrybuffer_new();return y.__wrap(e)}readCoordsUnsafe(){return Re.quantizedgeometrybuffer_readCoordsUnsafe(this.__wbg_ptr)}readLengthsUnsafe(){return Re.quantizedgeometrybuffer_readLengthsUnsafe(this.__wbg_ptr)}}Symbol.dispose&&(y.prototype[Symbol.dispose]=y.prototype.free);class h{static __wrap(e){e>>>=0;const t=Object.create(h.prototype);return t.__wbg_ptr=e,H.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,H.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_query_free(e,0)}static new(){const e=Re.query_new();return h.__wrap(e)}setExtent(e){Re.query_setExtent(this.__wbg_ptr,e)}setIds(e){const t=de(e,Re.__wbindgen_malloc),_=ve;Re.query_setIds(this.__wbg_ptr,t,_)}setOutFields(e){const t=he(e,Re.__wbindgen_malloc),_=ve;Re.query_setOutFields(this.__wbg_ptr,t,_)}setOutSpatialReference(e){const t=Re.query_setOutSpatialReference(this.__wbg_ptr,e);if(t[1])throw ze(t[0])}setPostFilterCount(e){Re.query_setPostFilterCount(this.__wbg_ptr,e)}setPostFilterStart(e){Re.query_setPostFilterStart(this.__wbg_ptr,e)}setPreFilterCount(e){Re.query_setPreFilterCount(this.__wbg_ptr,e)}setPreFilterStart(e){Re.query_setPreFilterStart(this.__wbg_ptr,e)}setQuantizationTransform(e){Re.query_setQuantizationTransform(this.__wbg_ptr,e)}setReturnGeometry(e){Re.query_setReturnGeometry(this.__wbg_ptr,e)}setReturnM(e){Re.query_setReturnM(this.__wbg_ptr,e)}setReturnZ(e){Re.query_setReturnZ(this.__wbg_ptr,e)}setSourceResolution(e){Re.query_setSourceResolution(this.__wbg_ptr,e)}setWhere(e){const t=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),_=ve;Re.query_setWhere(this.__wbg_ptr,t,_)}setWhereEvaluator(e){Re.query_setWhereEvaluator(this.__wbg_ptr,e)}setWhereFields(e){const t=he(e,Re.__wbindgen_malloc),_=ve;Re.query_setWhereFields(this.__wbg_ptr,t,_)}}Symbol.dispose&&(h.prototype[Symbol.dispose]=h.prototype.free);class m{static __wrap(e){e>>>=0;const t=Object.create(m.prototype);return t.__wbg_ptr=e,Q.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Q.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_querystream_free(e,0)}next(e){return Re.querystream_next(this.__wbg_ptr,we(e)?0:N(e))}}Symbol.dispose&&(m.prototype[Symbol.dispose]=m.prototype.free);class z{static __wrap(e){e>>>=0;const t=Object.create(z.prototype);return t.__wbg_ptr=e,V.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,V.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_rangeproviderjs_free(e,0)}static new(e,t){const _=Re.rangeproviderjs_new(e,t);return z.__wrap(_)}static withFetch(){const e=Re.rangeproviderjs_withFetch();return z.__wrap(e)}}Symbol.dispose&&(z.prototype[Symbol.dispose]=z.prototype.free);class F{static __wrap(e){e>>>=0;const t=Object.create(F.prototype);return t.__wbg_ptr=e,Y.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Y.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_rowgroup_free(e,0)}columnDescriptorForAttribute(e){const t=me(e,Re.__wbindgen_malloc,Re.__wbindgen_realloc),_=ve,n=Re.rowgroup_columnDescriptorForAttribute(this.__wbg_ptr,t,_);return r.__wrap(n)}}Symbol.dispose&&(F.prototype[Symbol.dispose]=F.prototype.free);class q{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,J.unregister(this),e}free(){const e=this.__destroy_into_raw();Re.__wbg_rowgroupid_free(e,0)}}function x(){Re.enableTracing()}function S(e,t,_,r,n){const i=Re.getXZCodeRanges(e,t,_,r,n);if(i[2])throw ze(i[1]);return ze(i[0])}function R(e,t,_,r,n,i,s){const o=Re.queryIntersectsXYStatistics(e,t,_,r,n,i,s);if(o[2])throw ze(o[1]);return 0!==o[0]}function v(e,t,_,r,n,i,s){const o=Re.queryIntersectsXZStatistics(e,t,_,r,n,i,s);if(o[2])throw ze(o[1]);return 0!==o[0]}function k(){const e={__proto__:null,__wbg_String_8564e559799eccda:function(e,t){const _=me(String(t),Re.__wbindgen_malloc,Re.__wbindgen_realloc),r=ve;ie().setInt32(e+4,r,!0),ie().setInt32(e+0,_,!0)},__wbg___wbindgen_is_function_3baa9db1a987f47d:function(e){return"function"==typeof e},__wbg___wbindgen_is_undefined_29a43b4d42920abd:function(e){return void 0===e},__wbg___wbindgen_number_get_c7f42aed0525c451:function(e,t){const _="number"==typeof t?t:void 0;ie().setFloat64(e+8,we(_)?0:_,!0),ie().setInt32(e+0,!we(_),!0)},__wbg___wbindgen_string_get_7ed5322991caaec5:function(e,t){const _="string"==typeof t?t:void 0;var r=we(_)?0:me(_,Re.__wbindgen_malloc,Re.__wbindgen_realloc),n=ve;ie().setInt32(e+4,n,!0),ie().setInt32(e+0,r,!0)},__wbg___wbindgen_throw_6b64449b9b9ed33c:function(e,t){throw new Error(ue(e,t))},__wbg__wbg_cb_unref_b46c9b5a9f08ec37:function(e){e._wbg_cb_unref()},__wbg_aborted_072e5543dce0fc05:function(e){return e.aborted},__wbg_apply_4c35bd236dda9c14:function(){return be(function(e,t,_){return e.apply(t,_)},arguments)},__wbg_call_86e39d65afc3d9db:function(){return be(function(e,t,_,r,n){return e.call(t,_,r,n)},arguments)},__wbg_call_a24592a6f349a97e:function(){return be(function(e,t,_){return e.call(t,_)},arguments)},__wbg_columndescriptor_new:function(e){return r.__wrap(e)},__wbg_error_a6fa202b58aa1cd3:function(e,t){let _,r;try{_=e,r=t,console.error(ue(e,t))}finally{Re.__wbindgen_free(_,r,1)}},__wbg_fieldmetadata_new:function(e){return u.__wrap(e)},__wbg_get_6011fa3a58f61074:function(){return be(function(e,t){return Reflect.get(e,t)},arguments)},__wbg_get_unchecked_17f53dad852b9588:function(e,t){return e[t>>>0]},__wbg_length_3d4ecd04bd8d22f1:function(e){return e.length},__wbg_length_9f1775224cf1d815:function(e){return e.length},__wbg_new_0c7403db6e782f19:function(e){return new Uint8Array(e)},__wbg_new_227d7c05414eb861:function(){return new Error},__wbg_new_5e360d2ff7b9e1c3:function(e,t){return new Error(ue(e,t))},__wbg_new_682678e2f47e32bc:function(){return new Array},__wbg_new_8bc2b540bbfdbb81:function(e){return new Uint32Array(e)},__wbg_new_aa8d0fa9762c29bd:function(){return new Object},__wbg_new_from_slice_158b7b5c2056cc2c:function(e,t){return new Int16Array(te(e,t))},__wbg_new_from_slice_3115b094b1002246:function(e,t){return new Float64Array(ee(e,t))},__wbg_new_no_args_a5300b4b3ea60351:function(e,t){return new Function(ue(e,t))},__wbg_new_typed_323f37fd55ab048d:function(e,t){try{var _={a:e,b:t};return new Promise((e,t)=>{const r=_.a;_.a=0;try{return function(e,t,_,r){Re.wasm_bindgen__convert__closures_____invoke__h40273f30e88f7d49(e,t,_,r)}(r,_.b,e,t)}finally{_.a=r}})}finally{_.a=0}},__wbg_new_with_length_223c4ea248649e55:function(e){return new Array(e>>>0)},__wbg_pageencodingdescriptor_new:function(e){return b.__wrap(e)},__wbg_parquetchunk_new:function(e){return w.__wrap(e)},__wbg_parquetfile_new:function(e){return d.__wrap(e)},__wbg_parquetpatchchunk_new:function(e){return f.__wrap(e)},__wbg_prototypesetcall_a6b02eb00b0f4ce2:function(e,t,_){Uint8Array.prototype.set.call(re(e,t),_)},__wbg_push_471a5b068a5295f6:function(e,t){return e.push(t)},__wbg_querystream_new:function(e){return m.__wrap(e)},__wbg_queueMicrotask_5d15a957e6aa920e:function(e){queueMicrotask(e)},__wbg_queueMicrotask_f8819e5ffc402f36:function(e){return e.queueMicrotask},__wbg_resolve_e6c466bc1052f16c:function(e){return Promise.resolve(e)},__wbg_rowgroup_new:function(e){return F.__wrap(e)},__wbg_set_3bf1de9fab0cd644:function(e,t,_){e[t>>>0]=_},__wbg_set_6be42768c690e380:function(e,t,_){e[t]=_},__wbg_set_name_f49c6e6bbfc8a63b:function(e,t,_){e.name=ue(t,_)},__wbg_stack_3b0d974bbf31e44f:function(e,t){const _=me(t.stack,Re.__wbindgen_malloc,Re.__wbindgen_realloc),r=ve;ie().setInt32(e+4,r,!0),ie().setInt32(e+0,_,!0)},__wbg_static_accessor_GLOBAL_8cfadc87a297ca02:function(){const e=void 0===_.g?null:_.g;return we(e)?0:N(e)},__wbg_static_accessor_GLOBAL_THIS_602256ae5c8f42cf:function(){const e="undefined"==typeof globalThis?null:globalThis;return we(e)?0:N(e)},__wbg_static_accessor_SELF_e445c1c7484aecc3:function(){const e="undefined"==typeof self?null:self;return we(e)?0:N(e)},__wbg_static_accessor_WINDOW_f20e8576ef1e0f17:function(){const e="undefined"==typeof window?null:window;return we(e)?0:N(e)},__wbg_then_792e0c862b060889:function(e,t,_){return e.then(t,_)},__wbg_then_8e16ee11f05e4827:function(e,t){return e.then(t)},__wbg_valueOf_25e11684e38026ef:function(e){return e.valueOf()},__wbg_valueOf_91a54faf8ce0976a:function(e){return e.valueOf()},__wbindgen_cast_0000000000000001:function(e,t){return function(e,t,_){const r={a:e,b:t,cnt:1},n=(...e)=>{r.cnt++;const t=r.a;r.a=0;try{return _(t,r.b,...e)}finally{r.a=t,n._wbg_cb_unref()}};return n._wbg_cb_unref=()=>{0===--r.cnt&&(Re.__wbindgen_destroy_closure(r.a,r.b),r.a=0,K.unregister(r))},K.register(n,r,r),n}(e,t,C)},__wbindgen_cast_0000000000000002:function(e){return e},__wbindgen_cast_0000000000000003:function(e){return e},__wbindgen_cast_0000000000000004:function(e,t){return ee(e,t)},__wbindgen_cast_0000000000000005:function(e,t){return te(e,t)},__wbindgen_cast_0000000000000006:function(e,t){return function(e,t){return e>>>=0,le().subarray(e/4,e/4+t)}(e,t)},__wbindgen_cast_0000000000000007:function(e,t){return re(e,t)},__wbindgen_cast_0000000000000008:function(e,t){return ue(e,t)},__wbindgen_cast_0000000000000009:function(e,t){var _=re(e,t).slice();return Re.__wbindgen_free(e,1*t,1),_},__wbindgen_init_externref_table:function(){const e=Re.__wbindgen_externrefs,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)}};return{__proto__:null,"./bundle_bg.js":e}}function C(e,t,_){const r=Re.wasm_bindgen__convert__closures_____invoke__h0f8118aa5481cebe(e,t,_);if(r[1])throw ze(r[0])}Symbol.dispose&&(q.prototype[Symbol.dispose]=q.prototype.free);const O=["boolean","int32","int64","int96","float","double","byte-array","fixed-byte-array"],I=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeBigInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"],T="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_columndescriptor_free(e>>>0,1)),P="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_columnid_free(e>>>0,1)),M="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_displayoptimizationxzbuilder_free(e>>>0,1)),j="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_displayoptimizationzbuilder_free(e>>>0,1)),A="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_extent_free(e>>>0,1)),U="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_fieldmetadata_free(e>>>0,1)),L="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_geometryfield_free(e>>>0,1)),G="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_geometryinfo_free(e>>>0,1)),E="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_multiscalegeometryfield_free(e>>>0,1)),D="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_pageencodingdescriptor_free(e>>>0,1)),W="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_parquetchunk_free(e>>>0,1)),Z="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_parquetfile_free(e>>>0,1)),B="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_parquetpatchchunk_free(e>>>0,1)),X="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_quantizedgeometrybuffer_free(e>>>0,1)),H="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_query_free(e>>>0,1)),Q="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_querystream_free(e>>>0,1)),V="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_rangeproviderjs_free(e>>>0,1)),Y="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_rowgroup_free(e>>>0,1)),J="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbg_rowgroupid_free(e>>>0,1));function N(e){const t=Re.__externref_table_alloc();return Re.__wbindgen_externrefs.set(t,e),t}function $(e,t){if(!(e instanceof t))throw new Error(`expected instance of ${t.name}`)}const K="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Re.__wbindgen_destroy_closure(e.a,e.b));function ee(e,t){return e>>>=0,oe().subarray(e/8,e/8+t)}function te(e,t){return e>>>=0,(null!==ae&&0!==ae.byteLength||(ae=new Int16Array(Re.memory.buffer)),ae).subarray(e/2,e/2+t)}function _e(e,t){e>>>=0;const _=ie(),r=[];for(let n=e;n<e+4*t;n+=4)r.push(Re.__wbindgen_externrefs.get(_.getUint32(n,!0)));return Re.__externref_drop_slice(e,t),r}function re(e,t){return e>>>=0,pe().subarray(e/1,e/1+t)}let ne=null;function ie(){return(null===ne||!0===ne.buffer.detached||void 0===ne.buffer.detached&&ne.buffer!==Re.memory.buffer)&&(ne=new DataView(Re.memory.buffer)),ne}let se=null;function oe(){return null!==se&&0!==se.byteLength||(se=new Float64Array(Re.memory.buffer)),se}let ae=null;function ue(e,t){return function(e,t){return xe+=t,xe>=qe&&(Fe=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),Fe.decode(),xe=t),Fe.decode(pe().subarray(e,e+t))}(e>>>=0,t)}let ce=null;function le(){return null!==ce&&0!==ce.byteLength||(ce=new Uint32Array(Re.memory.buffer)),ce}let ge=null;function pe(){return null!==ge&&0!==ge.byteLength||(ge=new Uint8Array(Re.memory.buffer)),ge}function be(e,t){try{return e.apply(this,t)}catch(e){const t=N(e);Re.__wbindgen_exn_store(t)}}function we(e){return null==e}function de(e,t){const _=t(4*e.length,4)>>>0;return le().set(e,_/4),ve=e.length,_}function fe(e,t){const _=t(1*e.length,1)>>>0;return pe().set(e,_/1),ve=e.length,_}function ye(e,t){const _=t(8*e.length,8)>>>0;return oe().set(e,_/8),ve=e.length,_}function he(e,t){const _=t(4*e.length,4)>>>0;for(let t=0;t<e.length;t++){const r=N(e[t]);ie().setUint32(_+4*t,r,!0)}return ve=e.length,_}function me(e,t,_){if(void 0===_){const _=Se.encode(e),r=t(_.length,1)>>>0;return pe().subarray(r,r+_.length).set(_),ve=_.length,r}let r=e.length,n=t(r,1)>>>0;const i=pe();let s=0;for(;s<r;s++){const t=e.charCodeAt(s);if(t>127)break;i[n+s]=t}if(s!==r){0!==s&&(e=e.slice(s)),n=_(n,r,r=s+3*e.length,1)>>>0;const t=pe().subarray(n+s,n+r);s+=Se.encodeInto(e,t).written,n=_(n,r,s,1)>>>0}return ve=s,n}function ze(e){const t=Re.__wbindgen_externrefs.get(e);return Re.__externref_table_dealloc(e),t}let Fe=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});Fe.decode();const qe=2146435072;let xe=0;const Se=new TextEncoder;"encodeInto"in Se||(Se.encodeInto=function(e,t){const _=Se.encode(e);return t.set(_),{read:e.length,written:_.length}});let Re,ve=0;function ke(e,t){return Re=e.exports,ne=null,se=null,ae=null,ce=null,ge=null,Re.__wbindgen_start(),Re}function Ce(e){if(void 0!==Re)return Re;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?({module:e}=e):console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));const t=k();return e instanceof WebAssembly.Module||(e=new WebAssembly.Module(e)),ke(new WebAssembly.Instance(e,t))}async function Oe(e){if(void 0!==Re)return Re;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?({module_or_path:e}=e):console.warn("using deprecated parameters for the initialization function; pass a single object instead"));const t=k();("string"==typeof e||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=fetch(e));const{instance:_,module:r}=await async function(e,t){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if(!e.ok||!function(e){switch(e){case"basic":case"cors":case"default":return!0}return!1}(e.type)||"application/wasm"===e.headers.get("Content-Type"))throw t;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",t)}const _=await e.arrayBuffer();return await WebAssembly.instantiate(_,t)}{const _=await WebAssembly.instantiate(e,t);return _ instanceof WebAssembly.Instance?{instance:_,module:e}:_}}(await e,t);return ke(_)}_.d(t,["DisplayEncoding",0,i,"GeometryType",0,g])}}]);
|