@arcgis/core 4.25.0-next.20220821 → 4.25.0-next.20220824
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/analysis/DimensioningAnalysis.d.ts +4 -0
- package/analysis/LengthDimension.d.ts +4 -0
- package/arcade/featureset/support/shared.js +1 -1
- package/arcade/kernel.js +1 -1
- package/arcade.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/0455c2cc352743827b6f.js +1 -0
- package/assets/esri/core/workers/chunks/{da13db62d54cbca350c3.js → 2909c5e28c05ddb007a0.js} +1 -1
- package/assets/esri/core/workers/chunks/2a2cad4a163777419b88.js +1 -0
- package/assets/esri/core/workers/chunks/2c783124624070505cf9.js +1 -0
- package/assets/esri/core/workers/chunks/31eab53447f47774354e.js +1 -0
- package/assets/esri/core/workers/chunks/{9dbe94a70624a5592690.js → 3e108ee81b5684f81cea.js} +1 -1
- package/assets/esri/core/workers/chunks/40bb4e2acbe5c3323715.js +1 -0
- package/assets/esri/core/workers/chunks/45397532008f955faf6f.js +2 -0
- package/assets/esri/core/workers/chunks/45397532008f955faf6f.js.LICENSE.txt +20 -0
- package/assets/esri/core/workers/chunks/4e045b0b3f49fcdecce0.js +1 -0
- package/assets/esri/core/workers/chunks/616a20dfd38f25453765.js +1 -0
- package/assets/esri/core/workers/chunks/{94784576d519d2440184.js → 69b8fef9bd487b8fb7c9.js} +1 -1
- package/assets/esri/core/workers/chunks/{32c7ea6e2068d5646988.js → 6e38ba64131c36edec43.js} +1 -1
- package/assets/esri/core/workers/chunks/6f99d0cdee66275cc68e.js +1 -0
- package/assets/esri/core/workers/chunks/{3485e2342f44e4d760a2.js → 70171492b13071b68db0.js} +1 -1
- package/assets/esri/core/workers/chunks/{b81c0d35f169a7df25c0.js → 8543c2f0a0eb67b101d7.js} +1 -1
- package/assets/esri/core/workers/chunks/8ba83fee56dd4f306d87.js +1 -0
- package/assets/esri/core/workers/chunks/{0f1fae79b5311d55c0da.js → 92f10a6f8eae3ecf5ac2.js} +1 -1
- package/assets/esri/core/workers/chunks/96673467342935d3d99a.js +1 -0
- package/assets/esri/core/workers/chunks/9f9418e4b1c39fe4571d.js +1 -0
- package/assets/esri/core/workers/chunks/a507e85f388b0504bb6a.js +1 -0
- package/assets/esri/core/workers/chunks/{8c2c1909359d794ac8fa.js → b0afc51c778d752488c6.js} +1 -1
- package/assets/esri/core/workers/chunks/{70dd8b67e69b084422a3.js → bfea5f112dc5bc08bb11.js} +1 -1
- package/assets/esri/core/workers/chunks/{2407a32902f012997e6a.js → c12c6d10edb4953145fa.js} +1 -1
- package/assets/esri/core/workers/chunks/{495dfd24894e8d5149c6.js → cfb3cfbc508840d2ea60.js} +1 -1
- package/assets/esri/core/workers/chunks/e8d0dbb6b6b241138fcf.js +1 -0
- package/assets/esri/core/workers/chunks/{a32c618ad62db6ecba67.js → e97ac86180a3381baf33.js} +1 -1
- package/assets/esri/core/workers/chunks/ef174d2fbcca4c3844d7.js +1 -0
- package/assets/esri/core/workers/chunks/f2cca221d9bea32f7594.js +1 -0
- package/assets/esri/core/workers/chunks/ff729a122ddffd95a6b5.js +1 -0
- package/chunks/Clouds.glsl.js +12 -12
- package/core/PerformanceSampler.js +1 -1
- package/core/imageUtils.js +5 -0
- package/geometry/support/MeshTexture.js +1 -1
- package/geometry/support/meshUtils/exporters/gltf/buffer.js +1 -1
- package/geometry/support/meshUtils/exporters/gltf/gltf.js +1 -1
- package/geometry/support/meshUtils/exporters/gltf/imageutils.js +1 -1
- package/geometry/support/meshUtils/exporters/gltf/index.js +1 -1
- package/geometry/support/meshUtils/loadExternal.js +1 -1
- package/geometry/support/meshUtils/loadGLTFMesh.js +1 -1
- package/geometry/support/meshUtils/merge.js +1 -1
- package/geometry/support/meshUtils/offset.js +1 -1
- package/geometry/support/meshUtils/rotate.js +1 -1
- package/geometry/support/meshUtils/scale.js +1 -1
- package/interfaces.d.ts +147 -4
- package/layers/RouteLayer.js +1 -1
- package/layers/graphics/data/projectionSupport.js +1 -1
- package/layers/graphics/data/spatialQuerySupport.js +1 -1
- package/layers/graphics/data/utils.js +1 -1
- package/layers/graphics/featureConversionUtils.js +1 -1
- package/layers/ogc/crsUtils.js +1 -1
- package/layers/support/FieldsIndex.js +1 -1
- package/layers/support/PromiseQueue.js +1 -1
- package/layers/support/TileInfo.js +1 -1
- package/layers/support/infoFor3D.js +0 -1
- package/layers/support/mediaUtils.js +1 -1
- package/layers/support/rasterDatasets/FunctionRaster.js +1 -1
- package/layers/support/rasterDatasets/pamParser.js +1 -1
- package/layers/support/rasterDatasets/wcsCapabilitiesParser.js +1 -1
- package/layers/support/rasterFunctions/AspectFunction.js +1 -1
- package/layers/support/rasterFunctions/BandArithmeticFunction.js +5 -0
- package/layers/support/rasterFunctions/BandArithmeticFunctionArguments.js +5 -0
- package/layers/support/rasterFunctions/BaseRasterFunction.js +1 -1
- package/layers/support/rasterFunctions/ColormapFunction.js +1 -1
- package/layers/support/rasterFunctions/LocalFunction.js +5 -0
- package/layers/support/rasterFunctions/LocalFunctionArguments.js +5 -0
- package/layers/support/rasterFunctions/SlopeFunction.js +1 -1
- package/layers/support/rasterFunctions/StretchFunction.js +1 -1
- package/layers/support/rasterFunctions/bandIndexUtils.js +1 -1
- package/layers/support/rasterFunctions/customBandIndexUtils.js +5 -0
- package/layers/support/rasterFunctions/localUtils.js +1 -1
- package/layers/support/rasterFunctions/rasterFunctionHelper.js +1 -1
- package/layers/support/wmtsUtils.js +1 -1
- package/networks/Network.js +1 -1
- package/networks/UtilityNetwork.js +1 -1
- package/networks/support/NamedTraceConfiguration.js +1 -1
- package/package.json +3 -3
- package/portal/AssetMapFieldRole.js +5 -0
- package/renderers/DotDensityRenderer.js +1 -1
- package/renderers/support/utils.js +1 -1
- package/rest/networks/queryNamedTraceConfigurations.js +5 -0
- package/rest/networks/support/QueryNamedTraceConfigurationsParameters.js +5 -0
- package/rest/networks/support/QueryNamedTraceConfigurationsResult.js +5 -0
- package/rest/print.js +1 -1
- package/rest/support/GeneralizeParameters.js +1 -1
- package/rest/support/ImagePixelLocationParameters.js +1 -1
- package/rest/support/OffsetParameters.js +1 -1
- package/rest/support/PrintTemplate.js +1 -1
- package/rest/support/RelationParameters.js +1 -1
- package/rest/support/TopFeaturesQuery.js +1 -1
- package/rest/support/meshFeatureSet.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/cim/GeometryWalker.js +1 -1
- package/symbols/cim/effects/EffectDashes.js +1 -1
- package/symbols/cim/effects/EffectWave.js +1 -1
- package/symbols/cim/placements/PlacementAlongLineSameSize.js +1 -1
- package/symbols/cim/placements/PlacementAtRatioPositions.js +1 -1
- package/views/2d/constraints/ZoomConstraint.js +1 -1
- package/views/2d/engine/Stage.js +1 -1
- package/views/2d/engine/webgl/mesh/templates/WGLDynamicMarkerTemplate.js +1 -1
- package/views/2d/engine/webgl/mesh/templates/WGLMarkerTemplate.js +1 -1
- package/views/2d/tiling/TileCache.js +1 -1
- package/views/2d/tiling/TileInfoView.js +1 -1
- package/views/3d/analysis/Dimensioning/LengthDimensionComputation.js +1 -1
- package/views/3d/analysis/Dimensioning/LengthDimensionSubTool.js +1 -1
- package/views/3d/analysis/Dimensioning/settings.js +1 -1
- package/views/3d/environment/CloudsComposition.js +1 -1
- package/views/3d/environment/CloudsCompositionParameters.js +1 -1
- package/views/3d/environment/CloudsData.js +1 -1
- package/views/3d/environment/CloudsGenerator.js +1 -1
- package/views/3d/environment/CloudsTechnique.js +1 -1
- package/views/3d/environment/CloudsTechniqueConfiguration.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/support/StreamDataLoader.js +1 -1
- package/views/3d/support/earthUtils.js +1 -1
- package/views/3d/terrain/PatchGeometry.js +1 -1
- package/views/3d/terrain/PatchGeometryFactory.js +1 -1
- package/views/3d/terrain/PatchGeometryLUT.js +1 -1
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexNormal.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ScreenSpaceReflections.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/util/CloudsParallaxShading.glsl.js +22 -13
- package/views/3d/webgl-engine/lib/OffscreenRendering.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
- package/views/3d/webgl-engine/parts/ScreenshotManager.js +1 -1
- package/views/3d/webgl-engine/statistics/RendererPerformanceInfo.js +1 -1
- package/views/LayerViewManager.js +1 -1
- package/views/ViewAnimation.js +1 -1
- package/views/interactive/editGeometry/operations/AppendVertex.js +1 -1
- package/views/interactive/editGeometry/operations/RemoveVertices.js +1 -1
- package/views/interactive/editGeometry/operations/SplitEdge.js +1 -1
- package/views/layers/MapImageLayerView.js +1 -1
- package/views/layers/support/Geometry.js +1 -1
- package/views/support/screenshotUtils.js +1 -1
- package/views/webgl/Measurement.js +1 -1
- package/views/webgl/TimerPool.js +5 -0
- package/views/webgl/capabilities/DisjointTimerQuery.js +1 -1
- package/widgets/Editor/EditorViewModel.js +1 -1
- package/widgets/Editor.js +1 -1
- package/widgets/FeatureForm/support/formTemplateUtils.js +1 -1
- package/assets/esri/core/workers/chunks/0c625803648e554f1fcf.js +0 -1
- package/assets/esri/core/workers/chunks/172c15e3dfa53554f591.js +0 -1
- package/assets/esri/core/workers/chunks/1e8e9967904da93c687e.js +0 -1
- package/assets/esri/core/workers/chunks/2efadbb06bf4a7f83f16.js +0 -1
- package/assets/esri/core/workers/chunks/30d7796ee6f7e4a6a3e1.js +0 -2
- package/assets/esri/core/workers/chunks/30d7796ee6f7e4a6a3e1.js.LICENSE.txt +0 -9
- package/assets/esri/core/workers/chunks/3281656a9bd3627e41ff.js +0 -1
- package/assets/esri/core/workers/chunks/3381b5454cd530cf940a.js +0 -1
- package/assets/esri/core/workers/chunks/4f4cb6d5b226ab5a38a1.js +0 -1
- package/assets/esri/core/workers/chunks/821a0754eae11421e56a.js +0 -1
- package/assets/esri/core/workers/chunks/8befbb2679e8285a8acd.js +0 -1
- package/assets/esri/core/workers/chunks/9e4c125d37ce66638b22.js +0 -1
- package/assets/esri/core/workers/chunks/a0750175b499a89fd07d.js +0 -1
- package/assets/esri/core/workers/chunks/c93d6bbe1af74d7bd7f9.js +0 -1
- package/assets/esri/core/workers/chunks/cc0a0782b8b9f6ec511e.js +0 -1
- package/assets/esri/core/workers/chunks/ef885b22ac8ec2695ad7.js +0 -1
- package/assets/esri/core/workers/chunks/f10379f663177a0150e9.js +0 -1
- package/assets/esri/core/workers/chunks/f351cccf879ba295acbc.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6942],{95401:(e,t,n)=>{n.d(t,{e:()=>a});var r,o,i,s={exports:{}};r=s,o=function(){function e(e,n,o){o=o||2;var i,s,a,c,u,p,h,f=n&&n.length,g=f?n[0]*o:e.length,x=t(e,0,g,o,!0),d=[];if(!x||x.next===x.prev)return d;if(f&&(x=l(e,n,x,o)),e.length>80*o){i=a=e[0],s=c=e[1];for(var m=o;m<g;m+=o)(u=e[m])<i&&(i=u),(p=e[m+1])<s&&(s=p),u>a&&(a=u),p>c&&(c=p);h=0!==(h=Math.max(a-i,c-s))?1/h:0}return r(x,d,o,i,s,h),d}function t(e,t,n,r,o){var i,s;if(o===F(e,t,n,r)>0)for(i=t;i<n;i+=r)s=Z(i,e[i],e[i+1],s);else for(i=n-r;i>=t;i-=r)s=Z(i,e[i],e[i+1],s);if(s&&v(s,s.next)){var a=s.next;M(s),s=a}return s}function n(e,t){if(!e)return e;t||(t=e);var n,r=e;do{if(n=!1,r.steiner||!v(r,r.next)&&0!==y(r.prev,r,r.next))r=r.next;else{var o=r.prev;if(M(r),(r=t=o)===r.next)break;n=!0}}while(n||r!==t);return t}function r(e,t,l,c,u,p,h){if(e){!h&&p&&f(e,c,u,p);for(var g,x,d=e;e.prev!==e.next;)if(g=e.prev,x=e.next,p?i(e,c,u,p):o(e))t.push(g.i/l),t.push(e.i/l),t.push(x.i/l),M(e),e=x.next,d=x.next;else if((e=x)===d){h?1===h?r(e=s(n(e),t,l),t,l,c,u,p,2):2===h&&a(e,t,l,c,u,p):r(n(e),t,l,c,u,p,1);break}}}function o(e){var t=e.prev,n=e,r=e.next;if(y(t,n,r)>=0)return!1;for(var o=e.next.next;o!==e.prev;){if(d(t.x,t.y,n.x,n.y,r.x,r.y,o.x,o.y)&&y(o.prev,o,o.next)>=0)return!1;o=o.next}return!0}function i(e,t,n,r){var o=e.prev,i=e,s=e.next;if(y(o,i,s)>=0)return!1;for(var a=o.x<i.x?o.x<s.x?o.x:s.x:i.x<s.x?i.x:s.x,l=o.y<i.y?o.y<s.y?o.y:s.y:i.y<s.y?i.y:s.y,c=o.x>i.x?o.x>s.x?o.x:s.x:i.x>s.x?i.x:s.x,u=o.y>i.y?o.y>s.y?o.y:s.y:i.y>s.y?i.y:s.y,p=g(a,l,t,n,r),h=g(c,u,t,n,r),f=e.prevZ,x=e.nextZ;f&&f.z>=p&&x&&x.z<=h;){if(f!==e.prev&&f!==e.next&&d(o.x,o.y,i.x,i.y,s.x,s.y,f.x,f.y)&&y(f.prev,f,f.next)>=0)return!1;if(f=f.prevZ,x!==e.prev&&x!==e.next&&d(o.x,o.y,i.x,i.y,s.x,s.y,x.x,x.y)&&y(x.prev,x,x.next)>=0)return!1;x=x.nextZ}for(;f&&f.z>=p;){if(f!==e.prev&&f!==e.next&&d(o.x,o.y,i.x,i.y,s.x,s.y,f.x,f.y)&&y(f.prev,f,f.next)>=0)return!1;f=f.prevZ}for(;x&&x.z<=h;){if(x!==e.prev&&x!==e.next&&d(o.x,o.y,i.x,i.y,s.x,s.y,x.x,x.y)&&y(x.prev,x,x.next)>=0)return!1;x=x.nextZ}return!0}function s(e,t,r){var o=e;do{var i=o.prev,s=o.next.next;!v(i,s)&&w(i,o,o.next,s)&&A(i,s)&&A(s,i)&&(t.push(i.i/r),t.push(o.i/r),t.push(s.i/r),M(o),M(o.next),o=e=s),o=o.next}while(o!==e);return n(o)}function a(e,t,o,i,s,a){var l=e;do{for(var c=l.next.next;c!==l.prev;){if(l.i!==c.i&&m(l,c)){var u=T(l,c);return l=n(l,l.next),u=n(u,u.next),r(l,t,o,i,s,a),void r(u,t,o,i,s,a)}c=c.next}l=l.next}while(l!==e)}function l(e,r,o,i){var s,a,l,u=[];for(s=0,a=r.length;s<a;s++)(l=t(e,r[s]*i,s<a-1?r[s+1]*i:e.length,i,!1))===l.next&&(l.steiner=!0),u.push(x(l));for(u.sort(c),s=0;s<u.length;s++)o=n(o=p(u[s],o),o.next);return o}function c(e,t){return e.x-t.x}function u(e){if(e.next.prev===e)return e;let t=e;for(;;){const n=t.next;if(n.prev===t||n===t||n===e)break;t=n}return t}function p(e,t){var r=function(e,t){var n,r=t,o=e.x,i=e.y,s=-1/0;do{if(i<=r.y&&i>=r.next.y&&r.next.y!==r.y){var a=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(a<=o&&a>s){if(s=a,a===o){if(i===r.y)return r;if(i===r.next.y)return r.next}n=r.x<r.next.x?r:r.next}}r=r.next}while(r!==t);if(!n)return null;if(o===s)return n;var l,c=n,u=n.x,p=n.y,f=1/0;r=n;do{o>=r.x&&r.x>=u&&o!==r.x&&d(i<p?o:s,i,u,p,i<p?s:o,i,r.x,r.y)&&(l=Math.abs(i-r.y)/(o-r.x),A(r,e)&&(l<f||l===f&&(r.x>n.x||r.x===n.x&&h(n,r)))&&(n=r,f=l)),r=r.next}while(r!==c);return n}(e,t);if(!r)return t;var o=T(r,e),i=n(r,r.next);let s=u(o);return n(s,s.next),i=u(i),u(t===r?i:t)}function h(e,t){return y(e.prev,e,t.prev)<0&&y(t.next,e,e.next)<0}function f(e,t,n,r){var o=e;do{null===o.z&&(o.z=g(o.x,o.y,t,n,r)),o.prevZ=o.prev,o.nextZ=o.next,o=o.next}while(o!==e);o.prevZ.nextZ=null,o.prevZ=null,function(e){var t,n,r,o,i,s,a,l,c=1;do{for(n=e,e=null,i=null,s=0;n;){for(s++,r=n,a=0,t=0;t<c&&(a++,r=r.nextZ);t++);for(l=c;a>0||l>0&&r;)0!==a&&(0===l||!r||n.z<=r.z)?(o=n,n=n.nextZ,a--):(o=r,r=r.nextZ,l--),i?i.nextZ=o:e=o,o.prevZ=i,i=o;n=r}i.nextZ=null,c*=2}while(s>1)}(o)}function g(e,t,n,r,o){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*o)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-r)*o)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function x(e){var t=e,n=e;do{(t.x<n.x||t.x===n.x&&t.y<n.y)&&(n=t),t=t.next}while(t!==e);return n}function d(e,t,n,r,o,i,s,a){return(o-s)*(t-a)-(e-s)*(i-a)>=0&&(e-s)*(r-a)-(n-s)*(t-a)>=0&&(n-s)*(i-a)-(o-s)*(r-a)>=0}function m(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&w(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}(e,t)&&(A(e,t)&&A(t,e)&&function(e,t){var n=e,r=!1,o=(e.x+t.x)/2,i=(e.y+t.y)/2;do{n.y>i!=n.next.y>i&&n.next.y!==n.y&&o<(n.next.x-n.x)*(i-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==e);return r}(e,t)&&(y(e.prev,e,t.prev)||y(e,t.prev,t))||v(e,t)&&y(e.prev,e,e.next)>0&&y(t.prev,t,t.next)>0)}function y(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function v(e,t){return e.x===t.x&&e.y===t.y}function w(e,t,n,r){var o=b(y(e,t,n)),i=b(y(e,t,r)),s=b(y(n,r,e)),a=b(y(n,r,t));return o!==i&&s!==a||!(0!==o||!C(e,n,t))||!(0!==i||!C(e,r,t))||!(0!==s||!C(n,e,r))||!(0!==a||!C(n,t,r))}function C(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function b(e){return e>0?1:e<0?-1:0}function A(e,t){return y(e.prev,e,e.next)<0?y(e,t,e.next)>=0&&y(e,e.prev,t)>=0:y(e,t,e.prev)<0||y(e,e.next,t)<0}function T(e,t){var n=new _(e.i,e.x,e.y),r=new _(t.i,t.x,t.y),o=e.next,i=t.prev;return e.next=t,t.prev=e,n.next=o,o.prev=n,r.next=n,n.prev=r,i.next=r,r.prev=i,r}function Z(e,t,n,r){var o=new _(e,t,n);return r?(o.next=r.next,o.prev=r,r.next.prev=o,r.next=o):(o.prev=o,o.next=o),o}function M(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function _(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function F(e,t,n,r){for(var o=0,i=t,s=n-r;i<n;i+=r)o+=(e[s]-e[i])*(e[i+1]+e[s+1]),s=i;return o}return e.deviation=function(e,t,n,r){var o=t&&t.length,i=o?t[0]*n:e.length,s=Math.abs(F(e,0,i,n));if(o)for(var a=0,l=t.length;a<l;a++){var c=t[a]*n,u=a<l-1?t[a+1]*n:e.length;s-=Math.abs(F(e,c,u,n))}var p=0;for(a=0;a<r.length;a+=3){var h=r[a]*n,f=r[a+1]*n,g=r[a+2]*n;p+=Math.abs((e[h]-e[g])*(e[f+1]-e[h+1])-(e[h]-e[f])*(e[g+1]-e[h+1]))}return 0===s&&0===p?0:Math.abs((p-s)/s)},e.flatten=function(e){for(var t=e[0][0].length,n={vertices:[],holes:[],dimensions:t},r=0,o=0;o<e.length;o++){for(var i=0;i<e[o].length;i++)for(var s=0;s<t;s++)n.vertices.push(e[o][i][s]);o>0&&(r+=e[o-1].length,n.holes.push(r))}return n},e},void 0!==(i=o())&&(r.exports=i);const a=s.exports},62540:(e,t,n)=>{n.d(t,{Z:()=>y});var r,o=n(43697),i=n(96674),s=n(22974),a=n(92604),l=n(5600),c=n(90578),u=n(52011),p=n(75215),h=n(65542),f=n(60746),g=n(71630);const x="esri.geometry.support.MeshComponent",d=a.Z.getLogger(x);let m=r=class extends i.wq{constructor(e){super(e),this.faces=null,this.material=null,this.shading="source",this.trustSourceNormals=!1}static from(e){return(0,p.TJ)(r,e)}castFaces(e){return(0,g.X)(e,Uint32Array,[Uint16Array],{loggerTag:".faces=",stride:3},d)}castMaterial(e){return(0,p.TJ)(e&&"object"==typeof e&&("metallic"in e||"roughness"in e||"metallicRoughnessTexture"in e)?f.Z:h.Z,e)}clone(){return new r({faces:(0,s.d9)(this.faces),shading:this.shading,material:(0,s.d9)(this.material),trustSourceNormals:this.trustSourceNormals})}cloneWithDeduplication(e,t){const n={faces:(0,s.d9)(this.faces),shading:this.shading,material:this.material?this.material.cloneWithDeduplication(e,t):null,trustSourceNormals:this.trustSourceNormals};return new r(n)}};(0,o._)([(0,l.Cb)({json:{write:!0}})],m.prototype,"faces",void 0),(0,o._)([(0,c.p)("faces")],m.prototype,"castFaces",null),(0,o._)([(0,l.Cb)({type:h.Z,json:{write:!0}})],m.prototype,"material",void 0),(0,o._)([(0,c.p)("material")],m.prototype,"castMaterial",null),(0,o._)([(0,l.Cb)({type:String,json:{write:!0}})],m.prototype,"shading",void 0),(0,o._)([(0,l.Cb)({type:Boolean})],m.prototype,"trustSourceNormals",void 0),m=r=(0,o._)([(0,u.j)(x)],m);const y=m},65542:(e,t,n)=>{n.d(t,{Z:()=>h});var r,o=n(43697),i=n(22303),s=n(96674),a=n(70586),l=n(5600),c=(n(67676),n(80442),n(75215),n(52011)),u=n(91024);let p=r=class extends s.wq{constructor(e){super(e),this.color=null,this.colorTexture=null,this.normalTexture=null,this.alphaMode="auto",this.alphaCutoff=.5,this.doubleSided=!0}clone(){return this.cloneWithDeduplication(null,new Map)}cloneWithDeduplication(e,t){const n=(0,a.pC)(e)?e.get(this):null;if(n)return n;const o=new r(this.clonePropertiesWithDeduplication(t));return(0,a.pC)(e)&&e.set(this,o),o}clonePropertiesWithDeduplication(e){return{color:(0,a.pC)(this.color)?this.color.clone():null,colorTexture:(0,a.pC)(this.colorTexture)?this.colorTexture.cloneWithDeduplication(e):null,normalTexture:(0,a.pC)(this.normalTexture)?this.normalTexture.cloneWithDeduplication(e):null,alphaMode:this.alphaMode,alphaCutoff:this.alphaCutoff,doubleSided:this.doubleSided,colorTextureTransform:(0,a.pC)(this.colorTextureTransform)?this.colorTextureTransform:null,normalTextureTransform:(0,a.pC)(this.normalTextureTransform)?this.normalTextureTransform:null}}};(0,o._)([(0,l.Cb)({type:i.Z,json:{write:!0}})],p.prototype,"color",void 0),(0,o._)([(0,l.Cb)({type:u.Z,json:{write:!0}})],p.prototype,"colorTexture",void 0),(0,o._)([(0,l.Cb)({type:u.Z,json:{write:!0}})],p.prototype,"normalTexture",void 0),(0,o._)([(0,l.Cb)({nonNullable:!0,json:{write:!0}})],p.prototype,"alphaMode",void 0),(0,o._)([(0,l.Cb)({nonNullable:!0,json:{write:!0}})],p.prototype,"alphaCutoff",void 0),(0,o._)([(0,l.Cb)({nonNullable:!0,json:{write:!0}})],p.prototype,"doubleSided",void 0),(0,o._)([(0,l.Cb)()],p.prototype,"colorTextureTransform",void 0),(0,o._)([(0,l.Cb)()],p.prototype,"normalTextureTransform",void 0),p=r=(0,o._)([(0,c.j)("esri.geometry.support.MeshMaterial")],p);const h=p},60746:(e,t,n)=>{n.d(t,{Z:()=>h});var r,o=n(43697),i=n(22303),s=n(70586),a=n(5600),l=(n(67676),n(80442),n(75215),n(52011)),c=n(65542),u=n(91024);let p=r=class extends c.Z{constructor(e){super(e),this.emissiveColor=null,this.emissiveTexture=null,this.occlusionTexture=null,this.metallic=1,this.roughness=1,this.metallicRoughnessTexture=null}clone(){return this.cloneWithDeduplication(null,new Map)}cloneWithDeduplication(e,t){const n=(0,s.pC)(e)?e.get(this):null;if(n)return n;const o=new r(this.clonePropertiesWithDeduplication(t));return(0,s.pC)(e)&&e.set(this,o),o}clonePropertiesWithDeduplication(e){return{...super.clonePropertiesWithDeduplication(e),emissiveColor:(0,s.pC)(this.emissiveColor)?this.emissiveColor.clone():null,emissiveTexture:(0,s.pC)(this.emissiveTexture)?this.emissiveTexture.cloneWithDeduplication(e):null,occlusionTexture:(0,s.pC)(this.occlusionTexture)?this.occlusionTexture.cloneWithDeduplication(e):null,metallic:this.metallic,roughness:this.roughness,metallicRoughnessTexture:(0,s.pC)(this.metallicRoughnessTexture)?this.metallicRoughnessTexture.cloneWithDeduplication(e):null,occlusionTextureTransform:(0,s.pC)(this.occlusionTextureTransform)?this.occlusionTextureTransform:null,emissiveTextureTransform:(0,s.pC)(this.emissiveTextureTransform)?this.emissiveTextureTransform:null,metallicRoughnessTextureTransform:(0,s.pC)(this.metallicRoughnessTextureTransform)?this.metallicRoughnessTextureTransform:null}}};(0,o._)([(0,a.Cb)({type:i.Z,json:{write:!0}})],p.prototype,"emissiveColor",void 0),(0,o._)([(0,a.Cb)({type:u.Z,json:{write:!0}})],p.prototype,"emissiveTexture",void 0),(0,o._)([(0,a.Cb)({type:u.Z,json:{write:!0}})],p.prototype,"occlusionTexture",void 0),(0,o._)([(0,a.Cb)({type:Number,nonNullable:!0,json:{write:!0},range:{min:0,max:1}})],p.prototype,"metallic",void 0),(0,o._)([(0,a.Cb)({type:Number,nonNullable:!0,json:{write:!0},range:{min:0,max:1}})],p.prototype,"roughness",void 0),(0,o._)([(0,a.Cb)({type:u.Z,json:{write:!0}})],p.prototype,"metallicRoughnessTexture",void 0),(0,o._)([(0,a.Cb)()],p.prototype,"occlusionTextureTransform",void 0),(0,o._)([(0,a.Cb)()],p.prototype,"emissiveTextureTransform",void 0),(0,o._)([(0,a.Cb)()],p.prototype,"metallicRoughnessTextureTransform",void 0),p=r=(0,o._)([(0,l.j)("esri.geometry.support.MeshMaterialMetallicRoughness")],p);const h=p},91024:(e,t,n)=>{n.d(t,{Z:()=>v});var r=n(43697);n(80442);let o=null,i=!0;function s(){return o||(o=document.createElement("canvas"),o.width=1,o.height=1),o}function a(e,t,n){return n||(n=s()),n.getContext("2d").createImageData(e,t)}var l,c=n(96674),u=n(5600),p=(n(67676),n(75215)),h=n(71715),f=n(52011),g=n(30556),x=n(25929);const d=new WeakMap;let m=0,y=l=class extends c.wq{constructor(e){super(e),this.wrap="repeat"}get url(){return this._get("url")||null}set url(e){this._set("url",e),e&&this._set("data",null)}get data(){return this._get("data")||null}set data(e){this._set("data",e),e&&this._set("url",null)}writeData(e,t,n,r){if(e instanceof HTMLImageElement){const o={type:"image-element",src:(0,x.t)(e.src,r),crossOrigin:e.crossOrigin};t[n]=o}else if(e instanceof HTMLCanvasElement){const r=e.getContext("2d").getImageData(0,0,e.width,e.height),o={type:"canvas-element",imageData:this._encodeImageData(r)};t[n]=o}else if(e instanceof HTMLVideoElement){const o={type:"video-element",src:(0,x.t)(e.src,r),autoplay:e.autoplay,loop:e.loop,muted:e.muted,crossOrigin:e.crossOrigin,preload:e.preload};t[n]=o}else{const r={type:"image-data",imageData:this._encodeImageData(e)};t[n]=r}}readData(e){switch(e.type){case"image-element":{const t=new Image;return t.src=e.src,t.crossOrigin=e.crossOrigin,t}case"canvas-element":{const t=this._decodeImageData(e.imageData),n=document.createElement("canvas");return n.width=t.width,n.height=t.height,n.getContext("2d").putImageData(t,0,0),n}case"image-data":return this._decodeImageData(e.imageData);case"video-element":{const t=document.createElement("video");return t.src=e.src,t.crossOrigin=e.crossOrigin,t.autoplay=e.autoplay,t.loop=e.loop,t.muted=e.muted,t.preload=e.preload,t}default:return}}get transparent(){const e=this.data,t=this.url;if(e instanceof HTMLCanvasElement)return this._imageDataContainsTransparent(e.getContext("2d").getImageData(0,0,e.width,e.height));if(e instanceof ImageData)return this._imageDataContainsTransparent(e);if(t){const e=t.substr(t.length-4,4).toLowerCase(),n=t.substr(0,15).toLocaleLowerCase();if(".png"===e||"data:image/png;"===n)return!0}return!1}set transparent(e){this._overrideIfSome("transparent",e)}get contentHash(){const e="string"==typeof this.wrap?this.wrap:"object"==typeof this.wrap?`${this.wrap.horizontal}/${this.wrap.vertical}`:"",t=(t="")=>`d:${t},t:${this.transparent},w:${e}`;return null!=this.url?t(this.url):null!=this.data?this.data instanceof HTMLImageElement||this.data instanceof HTMLVideoElement?t(this.data.src):(d.has(this.data)||d.set(this.data,++m),t(d.get(this.data))):t()}clone(){const e={url:this.url,data:this.data,wrap:this._cloneWrap()};return new l(e)}cloneWithDeduplication(e){const t=e.get(this);if(t)return t;const n=this.clone();return e.set(this,n),n}_cloneWrap(){return"string"==typeof this.wrap?this.wrap:{horizontal:this.wrap.horizontal,vertical:this.wrap.vertical}}_encodeImageData(e){let t="";for(let n=0;n<e.data.length;n++)t+=String.fromCharCode(e.data[n]);return{data:btoa(t),width:e.width,height:e.height}}_decodeImageData(e){const t=atob(e.data),n=new Uint8ClampedArray(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return function(e,t,n,r){if(!t||!n)throw new Error("Cannot construct image data without dimensions");if(i)try{return new ImageData(e,t,n)}catch(e){i=!1}const o=a(t,n,void 0);return o.data.set(e,0),o}(n,e.width,e.height)}_imageDataContainsTransparent(e){for(let t=3;t<e.data.length;t+=4)if(255!==e.data[t])return!0;return!1}static from(e){return"string"==typeof e?new l({url:e}):e instanceof HTMLImageElement||e instanceof HTMLCanvasElement||e instanceof ImageData||e instanceof HTMLVideoElement?new l({data:e}):(0,p.TJ)(l,e)}};(0,r._)([(0,u.Cb)({type:String,json:{write:x.w}})],y.prototype,"url",null),(0,r._)([(0,u.Cb)({json:{write:{overridePolicy(){return{enabled:!this.url}}}}}),(0,u.Cb)()],y.prototype,"data",null),(0,r._)([(0,g.c)("data")],y.prototype,"writeData",null),(0,r._)([(0,h.r)("data")],y.prototype,"readData",null),(0,r._)([(0,u.Cb)({type:Boolean,json:{write:{overridePolicy(){return{enabled:this._isOverridden("transparent")}}}}})],y.prototype,"transparent",null),(0,r._)([(0,u.Cb)({json:{write:!0}})],y.prototype,"wrap",void 0),(0,r._)([(0,u.Cb)({readOnly:!0})],y.prototype,"contentHash",null),y=l=(0,r._)([(0,f.j)("esri.geometry.support.MeshTexture")],y);const v=y},71630:(e,t,n)=>{n.d(t,{Q:()=>f,X:()=>x});var r,o=n(43697),i=n(96674),s=n(22974),a=n(92604),l=n(5600),c=n(90578),u=n(52011);const p="esri.geometry.support.MeshVertexAttributes",h=a.Z.getLogger(p);let f=r=class extends i.wq{constructor(e){super(e),this.color=null,this.position=new Float64Array(0),this.uv=null,this.normal=null,this.tangent=null}castColor(e){return x(e,Uint8Array,[Uint8ClampedArray],{loggerTag:".color=",stride:4},h)}castPosition(e){return e&&e instanceof Float32Array&&h.warn(".position=","Setting position attribute from a Float32Array may cause precision problems. Consider storing data in a Float64Array or a regular number array"),x(e,Float64Array,[Float32Array],{loggerTag:".position=",stride:3},h)}castUv(e){return x(e,Float32Array,[Float64Array],{loggerTag:".uv=",stride:2},h)}castNormal(e){return x(e,Float32Array,[Float64Array],{loggerTag:".normal=",stride:3},h)}castTangent(e){return x(e,Float32Array,[Float64Array],{loggerTag:".tangent=",stride:4},h)}clone(){const e={position:(0,s.d9)(this.position),uv:(0,s.d9)(this.uv),normal:(0,s.d9)(this.normal),tangent:(0,s.d9)(this.tangent),color:(0,s.d9)(this.color)};return new r(e)}clonePositional(){const e={position:(0,s.d9)(this.position),normal:(0,s.d9)(this.normal),tangent:(0,s.d9)(this.tangent),uv:this.uv,color:this.color};return new r(e)}};function g(e,t,n,r){const{loggerTag:o,stride:i}=t;return e.length%i!=0?(r.error(o,`Invalid array length, expected a multiple of ${i}`),new n([])):e}function x(e,t,n,r,o){if(!e)return e;if(e instanceof t)return g(e,r,t,o);for(const i of n)if(e instanceof i)return g(new t(e),r,t,o);if(Array.isArray(e))return g(new t(e),r,t,o);{const r=n.map((e=>`'${e.name}'`));return o.error(`Failed to set property, expected one of ${r}, but got ${e.constructor.name}`),new t([])}}function d(e,t,n){t[n]=function(e){const t=new Array(e.length);for(let n=0;n<e.length;n++)t[n]=e[n];return t}(e)}(0,o._)([(0,l.Cb)({json:{write:d}})],f.prototype,"color",void 0),(0,o._)([(0,c.p)("color")],f.prototype,"castColor",null),(0,o._)([(0,l.Cb)({nonNullable:!0,json:{write:d}})],f.prototype,"position",void 0),(0,o._)([(0,c.p)("position")],f.prototype,"castPosition",null),(0,o._)([(0,l.Cb)({json:{write:d}})],f.prototype,"uv",void 0),(0,o._)([(0,c.p)("uv")],f.prototype,"castUv",null),(0,o._)([(0,l.Cb)({json:{write:d}})],f.prototype,"normal",void 0),(0,o._)([(0,c.p)("normal")],f.prototype,"castNormal",null),(0,o._)([(0,l.Cb)({json:{write:d}})],f.prototype,"tangent",void 0),(0,o._)([(0,c.p)("tangent")],f.prototype,"castTangent",null),f=r=(0,o._)([(0,u.j)(p)],f)},47545:(e,t,n)=>{n.d(t,{d:()=>o});var r=n(22021);function o(e,t,n){const o=e.byteLength/(4*t),c=new Uint32Array(e,0,o*t);let u=new Uint32Array(o);const p=n?.minReduction??0,h=n?.originalIndices||null,f=h?h.length:0,g=n?.componentOffsets||null;let x=0;if(g)for(let e=0;e<g.length-1;e++){const t=g[e+1]-g[e];t>x&&(x=t)}else x=o;const d=Math.floor(1.1*x)+1;(null==l||l.length<2*d)&&(l=new Uint32Array((0,r.Sf)(2*d)));for(let e=0;e<2*d;e++)l[e]=0;let m=0;const y=!!g&&!!h,v=y?f:o,w=y?new Uint32Array(f):null,C=1.96;let b=0!==p?Math.ceil(4*C*C/(p*p)*p*(1-p)):v,A=1,T=g?g[1]:v;for(let e=0;e<v;e++){if(e===b){const t=1-m/e;if(t+C*Math.sqrt(t*(1-t)/e)<p)return null;b*=2}if(e===T){for(let e=0;e<2*d;e++)l[e]=0;if(h)for(let e=g[A-1];e<g[A];e++)w[e]=u[h[e]];T=g[++A]}const n=y?h[e]:e,r=n*t,o=a(c,r,t);let s=o%d,f=m;for(;0!==l[2*s+1];){if(l[2*s]===o){const e=l[2*s+1]-1;if(i(c,r,e*t,t)){f=u[e];break}}s++,s>=d&&(s-=d)}f===m&&(l[2*s]=o,l[2*s+1]=n+1,m++),u[n]=f}if(0!==p&&1-m/o<p)return null;if(y){for(let e=g[A-1];e<w.length;e++)w[e]=u[h[e]];u=w}const Z=new Uint32Array(t*m);m=0;for(let e=0;e<v;e++)u[e]===m&&(s(c,(y?h[e]:e)*t,Z,m*t,t),m++);if(h&&!y){const e=new Uint32Array(f);for(let t=0;t<e.length;t++)e[t]=u[h[t]];u=e}return{buffer:Z.buffer,indices:u,uniqueCount:m}}function i(e,t,n,r){for(let o=0;o<r;o++)if(e[t+o]!==e[n+o])return!1;return!0}function s(e,t,n,r,o){for(let i=0;i<o;i++)n[r+i]=e[t+i]}function a(e,t,n){let r=0;for(let o=0;o<n;o++)r=e[t+o]+r|0,r=r+(r<<11)+(r>>>2)|0;return r>>>0}let l=null},36942:(e,t,n)=>{n.r(t),n.d(t,{meshFeatureSetFromJSON:()=>Ie});var r,o,i=n(38171),s=n(70586),a=n(6570),l=n(43697),c=n(20102),u=n(3920),p=n(83379),h=n(92604),f=n(609),g=n(95330),x=n(17445),d=n(5600),m=(n(67676),n(80442),n(75215),n(52011)),y=n(65617),v=n(9361),w=n(94139),C=n(38913),b=n(3709),A=n(62540),T=n(2674),Z=n(71630),M=n(95401),_=n(86662),F=n(47545);function R(e,t,n){const o=e.length,i=new Array(o),s=new Array(o),a=new Array(o);let l=0,c=0,u=0,p=0;for(let t=0;t<o;++t)p+=e[t].length;const h=new Float64Array(3*p);let f=0;for(let p=o-1;p>=0;p--){const g=e[p],x=n===r.CCW_IS_HOLE&&D(g);if(x&&1!==o)i[l++]=g;else{let e=g.length;for(let t=0;t<l;++t)e+=i[t].length;const n={index:f,pathLengths:new Array(l+1),count:e,holeIndices:new Array(l)};n.pathLengths[0]=g.length,g.length>0&&(a[u++]={index:f,count:g.length}),f=x?L(g,g.length-1,-1,h,f,g.length,t):L(g,0,1,h,f,g.length,t);for(let e=0;e<l;++e){const r=i[e];n.holeIndices[e]=f,n.pathLengths[e+1]=r.length,r.length>0&&(a[u++]={index:f,count:r.length}),f=L(r,0,1,h,f,r.length,t)}l=0,n.count>0&&(s[c++]=n)}}for(let e=0;e<l;++e){const n=i[e];n.length>0&&(a[u++]={index:f,count:n.length}),f=L(n,0,1,h,f,n.length,t)}return c<o&&(s.length=c),u<o&&(a.length=u),{position:h,polygons:s,outlines:a}}function L(e,t,n,r,o,i,s){o*=3;for(let a=0;a<i;++a){const i=e[t];r[o++]=i[0],r[o++]=i[1],r[o++]=s?i[2]:0,t+=n}return o/3}function D(e){return!(0,_.bu)(e,!1,!1)}(o=r||(r={}))[o.NONE=0]="NONE",o[o.CCW_IS_HOLE=1]="CCW_IS_HOLE";var I=n(44547),E=n(13442),O=n(66459);const P=h.Z.getLogger("esri.geometry.support.meshUtils.centerAt");const S=(0,y.c)(),j=(0,y.c)();var z=n(17452);function N(e){const t=(0,z.Yd)(e.url);return n=>{const r=(0,z.PF)(n,t,t),o=r?r.replace(/^ *\.\//,""):null;return(o?e.files.get(o):null)??n}}async function U(e,t){return e instanceof Blob?W.fromBlob(e):"string"==typeof e?new W(e):Array.isArray(e)?async function(e,t){const n=new Map;let r=null;const o=await(0,g.WW)(e.map((async e=>({name:e.name,source:await U(e instanceof Blob?e:e.source,t)})))),i=[];for(const e of o)e&&((0,g.Hc)(t)?e.source.dispose():i.push(e));(0,g.k_)(t);for(const{name:e,source:t}of i)((0,s.Wi)(r)||/\.(gltf|glb)/i.test(e))&&(r=t.url),n.set(e,t.url),t.files&&t.files.forEach(((e,t)=>n.set(t,e)));if((0,s.Wi)(r))throw new c.Z("mesh-load-external:missing-files","Missing files to load external mesh source");return new W(r,(()=>i.forEach((({source:e})=>e.dispose()))),n)}(e,t):async function(e,t){const{default:r}=await(0,g.Hl)(Promise.resolve().then(n.bind(n,3172)),t),o="string"==typeof e.multipart[0]?await Promise.all(e.multipart.map((async e=>(await r(e,{responseType:"array-buffer"})).data))):e.multipart;return W.fromBlob(new Blob(o))}(e,t)}class W{constructor(e,t=(()=>{}),n=new Map){this.url=e,this.dispose=t,this.files=n}static fromBlob(e){const t=URL.createObjectURL(e);return new W(t,(()=>URL.revokeObjectURL(t)))}}var k=n(21787),$=n(46521),H=n(13598),B=n(17896),G=n(24678),q=n(56493);function Y(e,t){if(e)for(let n=0;n<e.length;n+=3)for(let r=0;r<3;r++)e[n+r]+=t[r]}const X=(0,y.c)(),K=(0,H.c)(),J=(0,$.c)(),V={position:[-.5,-.5,0,.5,-.5,0,.5,.5,0,-.5,.5,0],normal:[0,0,1,0,0,1,0,0,1,0,0,1],uv:[0,1,1,1,1,0,0,0],faces:[0,1,2,0,2,3],facingAxisOrderSwap:{east:[3,1,2],west:[-3,-1,2],north:[-1,3,2],south:[1,-3,2],up:[1,2,3],down:[1,-2,-3]}};function Q(e,t,n){e.isPlane||function(e){for(let t=0;t<e.position.length;t+=3)e.position[t+2]+=.5}(e),function(e,t){if(null==t)return;const n="number"==typeof t?[t,t,t]:[null!=t.width?t.width:1,null!=t.depth?t.depth:1,null!=t.height?t.height:1];re[0]=n[0],re[4]=n[1],re[8]=n[2];for(let t=0;t<e.position.length;t+=3){for(let n=0;n<3;n++)ne[n]=e.position[t+n];(0,B.t)(ne,ne,re);for(let n=0;n<3;n++)e.position[t+n]=ne[n]}if(n[0]!==n[1]||n[1]!==n[2]){re[0]=1/n[0],re[4]=1/n[1],re[8]=1/n[2];for(let t=0;t<e.normal.length;t+=3){for(let n=0;n<3;n++)ne[n]=e.normal[t+n];(0,B.t)(ne,ne,re),(0,B.n)(ne,ne);for(let n=0;n<3;n++)e.normal[t+n]=ne[n]}}}(e,n?.size);const{vertexAttributes:r,transform:o}=(0,O.w1)(e,t,n);return{vertexAttributes:new Z.Q({...r,uv:e.uv}),transform:o,components:[new A.Z({faces:e.faces,material:n&&n.material||null})],spatialReference:t.spatialReference}}const ee={faceDescriptions:[{axis:[0,-1,0],uvOrigin:[0,.625],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[1,0,0],uvOrigin:[.25,.625],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[0,1,0],uvOrigin:[.5,.625],corners:[[1,-1],[-1,-1],[-1,1],[1,1]]},{axis:[-1,0,0],uvOrigin:[.75,.625],corners:[[1,-1],[-1,-1],[-1,1],[1,1]]},{axis:[0,0,1],uvOrigin:[0,.375],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[0,0,-1],uvOrigin:[0,.875],corners:[[-1,1],[1,1],[1,-1],[-1,-1]]}],uvScales:[[0,0],[1,0],[1,1],[0,1]],faceVertexOffsets:[0,1,2,0,2,3]},te={south:0,east:1,north:2,west:3,up:4,down:5},ne=(0,y.c)(),re=(0,$.c)();var oe=n(52138);const ie=h.Z.getLogger("esri.geometry.support.meshUtils.rotate");function se(e,t,n,r=y.Z){if(!(0,s.Wi)(e)){(0,oe.d)(ue,(0,b.WH)(t),(0,b.ZZ)(t));for(let t=0;t<e.length;t+=n){for(let n=0;n<3;n++)ae[n]=e[t+n]-r[n];(0,B.m)(ae,ae,ue);for(let n=0;n<3;n++)e[t+n]=ae[n]+r[n]}}}const ae=(0,y.c)(),le=(0,y.c)(),ce=(0,b.Ue)(),ue=(0,H.c)(),pe=(0,$.c)(),he=(0,y.c)(),fe=h.Z.getLogger("esri.geometry.support.meshUtils.scale");function ge(e,t,n=y.Z){if(e)for(let r=0;r<e.length;r+=3){for(let t=0;t<3;t++)xe[t]=e[r+t]-n[t];(0,B.g)(xe,xe,t);for(let t=0;t<3;t++)e[r+t]=xe[t]+n[t]}}const xe=(0,y.c)(),de=(0,y.c)(),me=(0,y.c)();var ye;const ve="esri.geometry.Mesh";let we=ye=class extends((0,u.p)(p.Z.LoadableMixin((0,f.v)(v.Z)))){constructor(e){super(e),this.components=null,this.transform=null,this.external=null,this.hasZ=!0,this.hasM=!1,this.vertexAttributes=new Z.Q,this.type="mesh"}initialize(){((0,s.Wi)(this.external)||this.vertexAttributes.position.length)&&(this.loadStatus="loaded"),this.when((()=>{this.handles.add((0,x.YP)((()=>({vertexAttributes:this.vertexAttributes,components:this.components?.map((e=>e.clone())),transform:(0,s.pC)(this.transform)?this.transform.clone():null})),(()=>this._set("external",null)),{once:!0,sync:!0}))}))}get hasExtent(){return!this.loaded&&(0,s.pC)(this.external)&&(0,s.pC)(this.external.extent)||this.loaded&&this.vertexAttributes.position.length>0&&(!this.components||this.components.length>0)}get _boundingInfo(){const e=this.vertexAttributes.position,t=this.spatialReference;if(0===e.length||this.components&&0===this.components.length)return{extent:new a.Z({xmin:0,ymin:0,zmin:0,xmax:0,ymax:0,zmax:0,spatialReference:t}),center:new w.Z({x:0,y:0,z:0,spatialReference:t})};const n=(0,s.pC)(this.transform)?this.transform.project(e,t):e;let r=1/0,o=1/0,i=1/0,l=-1/0,c=-1/0,u=-1/0,p=0,h=0,f=0;const g=n.length,x=1/(g/3);let d=0;for(;d<g;){const e=n[d++],t=n[d++],s=n[d++];r=Math.min(r,e),o=Math.min(o,t),i=Math.min(i,s),l=Math.max(l,e),c=Math.max(c,t),u=Math.max(u,s),p+=x*e,h+=x*t,f+=x*s}return{extent:new a.Z({xmin:r,ymin:o,zmin:i,xmax:l,ymax:c,zmax:u,spatialReference:t}),center:new w.Z({x:p,y:h,z:f,spatialReference:t})}}get anchor(){if((0,s.pC)(this.transform))return this.transform.getOriginPoint(this.spatialReference);const e=this._boundingInfo;return new w.Z({x:e.center.x,y:e.center.y,z:e.extent.zmin,spatialReference:this.spatialReference})}get origin(){return(0,s.pC)(this.transform)?this.transform.getOriginPoint(this.spatialReference):this._boundingInfo.center}get extent(){return!this.loaded&&(0,s.pC)(this.external)&&(0,s.pC)(this.external.extent)?this.external.extent.clone():this._boundingInfo.extent}addComponent(e){this.loaded?(this.components||(this.components=[]),this.components.push(A.Z.from(e)),this.notifyChange("components")):h.Z.getLogger(this.declaredClass).error("addComponent()","Mesh must be loaded before applying operations")}removeComponent(e){if(this.loaded){if(this.components){const t=this.components.indexOf(e);if(-1!==t)return this.components.splice(t,1),void this.notifyChange("components")}h.Z.getLogger(this.declaredClass).error("removeComponent()","Provided component is not part of the list of components")}else h.Z.getLogger(this.declaredClass).error("removeComponent()","Mesh must be loaded before applying operations")}rotate(e,t,n,r){return(0,b.uT)(Ce.x,e,be),(0,b.uT)(Ce.y,t,Ae),(0,b.uT)(Ce.z,n,Te),(0,b.qC)(be,Ae,be),(0,b.qC)(be,Te,be),function(e,t,n){if(!e.vertexAttributes||!e.vertexAttributes.position||0===t[3])return;const r=e.spatialReference;if((0,s.pC)(e.transform)){null!=n?.geographic&&n.geographic!==e.transform.geographic&&ie.warn(`Specifying the 'geographic' parameter (${n.geographic}) different from the Mesh transform setting (${e.transform.geographic}) is not supported`);const o=n?.origin??e.transform.getOriginPoint(r);!function(e,t,n){const r=(0,B.s)(ae,n.x,n.y,n.z),o=(0,B.b)(ae,r,e.origin);e.applyLocalInverse(o,le),e.rotation=(0,b.qC)(e.rotation,t,(0,b.Ue)()),e.applyLocalInverse(o,o),(0,B.b)(o,o,le),e.translation=(0,B.a)((0,y.c)(),e.translation,o)}(e.transform,t,o)}else{const r=n?.origin??e.origin;(0,E.h)(e.spatialReference,n)?function(e,t,n){const r=e.spatialReference,o=(0,G.rS)(r),i=he;(0,I.KC)(n,i,o)||(0,I.KC)(e.origin,i,o);const a=e.vertexAttributes.position,l=e.vertexAttributes.normal,c=e.vertexAttributes.tangent,u=new Float64Array(a.length),p=(0,s.pC)(l)?new Float32Array(l.length):null,h=(0,s.pC)(c)?new Float32Array(c.length):null;(0,I.Bm)(o,i,ue,o),(0,k.f)(pe,ue);const f=ce;(0,B.t)((0,b.ZZ)(ce),(0,b.ZZ)(t),pe),f[3]=t[3],(0,q.XO)(a,r,u),(0,s.pC)(l)&&(0,s.pC)(p)&&(0,q.Iz)(l,a,u,r,p),(0,s.pC)(c)&&(0,s.pC)(h)&&(0,q.wi)(c,a,u,r,h),se(u,f,3,i),(0,q.To)(u,a,r),(0,s.pC)(l)&&(0,s.pC)(p)&&(se(p,f,3),(0,q.Yk)(p,a,u,r,l)),(0,s.pC)(c)&&(0,s.pC)(h)&&(se(h,f,4),(0,q.M2)(h,a,u,r,c)),e.vertexAttributesChanged()}(e,t,r):function(e,t,n){const r=he;if(!(0,I.KC)(n,r,e.spatialReference)){const t=e.origin;r[0]=t.x,r[1]=t.y,r[2]=t.z,ie.error(`Failed to project specified origin (wkid:${n.spatialReference.wkid}) to mesh spatial reference (wkid:${e.spatialReference.wkid}).`)}se(e.vertexAttributes.position,t,3,r),se(e.vertexAttributes.normal,t,3),se(e.vertexAttributes.tangent,t,4),e.vertexAttributesChanged()}(e,t,r)}}(this,be,r),this}offset(e,t,n,r){return this.loaded?(Ze[0]=e,Ze[1]=t,Ze[2]=n,function(e,t,n){e.vertexAttributes&&e.vertexAttributes.position&&((0,s.pC)(e.transform)?(null!=n?.geographic&&n.geographic!==e.transform.geographic&&h.Z.getLogger("esri.geometry.support.meshUtils.offset").warn(`Specifying the 'geographic' parameter (${n.geographic}) different from the Mesh transform setting (${e.transform.geographic}) is not supported`),function(e,t){const n=e.origin;e.origin=(0,B.a)((0,y.c)(),n,t)}(e.transform,t)):(0,E.h)(e.spatialReference,n)?function(e,t){const n=e.spatialReference,r=e.vertexAttributes.position,o=e.vertexAttributes.normal,i=e.vertexAttributes.tangent,a=new Float64Array(r.length),l=(0,s.pC)(o)?new Float32Array(o.length):null,c=(0,s.pC)(i)?new Float32Array(i.length):null,u=e.extent.center,p=X;(0,I.Bm)(n,[u.x,u.y,u.z],K,(0,G.rS)(n)),(0,k.f)(J,K),(0,B.t)(p,t,J),(0,q.XO)(r,n,a),(0,s.pC)(o)&&(0,s.pC)(l)&&(0,q.Iz)(o,r,a,n,l),(0,s.pC)(i)&&(0,s.pC)(c)&&(0,q.wi)(i,r,a,n,c),Y(a,p),(0,q.To)(a,r,n),(0,s.pC)(o)&&(0,s.pC)(l)&&(0,q.Yk)(l,r,a,n,o),(0,s.pC)(i)&&(0,s.pC)(c)&&(0,q.M2)(c,r,a,n,i),e.vertexAttributesChanged()}(e,t):function(e,t){Y(e.vertexAttributes.position,t),e.vertexAttributesChanged()}(e,t))}(this,Ze,r),this):(h.Z.getLogger(this.declaredClass).error("offset()","Mesh must be loaded before applying operations"),this)}scale(e,t){return this.loaded?(function(e,t,n){if(!e.vertexAttributes||!e.vertexAttributes.position)return;const r=e.spatialReference;if((0,s.pC)(e.transform)){null!=n?.geographic&&n.geographic!==e.transform.geographic&&fe.warn(`Specifying the 'geographic' parameter (${n.geographic}) different from the Mesh transform setting (${e.transform.geographic}) is not supported`);const o=n?.origin??e.transform.getOriginPoint(r);!function(e,t,n){const r=(0,B.s)(xe,n.x,n.y,n.z),o=(0,B.b)(xe,r,e.origin);e.applyLocalInverse(o,de);const i=(0,B.g)((0,y.c)(),e.scale,t);e.scale=i,e.applyLocalInverse(o,o),(0,B.b)(o,o,de),e.translation=(0,B.a)((0,y.c)(),e.translation,o)}(e.transform,t,o)}else{const r=(0,E.h)(e.spatialReference,n),o=n&&n.origin||e.origin;r?function(e,t,n){const r=e.spatialReference,o=(0,G.rS)(r),i=me;(0,I.KC)(n,i,o)||(0,I.KC)(e.origin,i,o);const a=e.vertexAttributes.position,l=e.vertexAttributes.normal,c=e.vertexAttributes.tangent,u=new Float64Array(a.length),p=(0,s.pC)(l)?new Float32Array(l.length):null,h=(0,s.pC)(c)?new Float32Array(c.length):null;(0,q.XO)(a,r,u),(0,s.pC)(l)&&(0,s.pC)(p)&&(0,q.Iz)(l,a,u,r,p),(0,s.pC)(c)&&(0,s.pC)(h)&&(0,q.wi)(c,a,u,r,h),ge(u,t,i),(0,q.To)(u,a,r),(0,s.pC)(l)&&(0,s.pC)(p)&&(0,q.Yk)(p,a,u,r,l),(0,s.pC)(c)&&(0,s.pC)(h)&&(0,q.M2)(h,a,u,r,c),e.vertexAttributesChanged()}(e,t,o):function(e,t,n){const r=me;if(!(0,I.KC)(n,r,e.spatialReference)){const t=e.origin;r[0]=t.x,r[1]=t.y,r[2]=t.z,fe.error(`Failed to project specified origin (wkid:${n.spatialReference.wkid}) to mesh spatial reference (wkid:${e.spatialReference.wkid}).`)}ge(e.vertexAttributes.position,t,r),e.vertexAttributesChanged()}(e,t,o)}}(this,e,t),this):(h.Z.getLogger(this.declaredClass).error("scale()","Mesh must be loaded before applying operations"),this)}centerAt(e,t){return this.loaded?(function(e,t,n){if(!e.vertexAttributes||!e.vertexAttributes.position)return;const r=n?.origin??e.origin;(0,s.pC)(e.transform)?(null!=n?.geographic&&n.geographic!==e.transform.geographic&&P.warn(`Specifying the 'geographic' parameter (${n.geographic}) different from the Mesh transform setting (${e.transform.geographic}) is not supported`),function(e,t,n){const r=t.x-n.x,o=t.y-n.y,i=t.hasZ&&n.hasZ?t.z-n.z:0,s=e.origin;e.origin=[s[0]+r,s[1]+o,s[2]+i]}(e.transform,t,r)):(0,E.h)(e.spatialReference,n)?function(e,t,n){const r=(0,O.FF)(e.vertexAttributes,n,{geographic:!0}),{position:o,normal:i,tangent:s}=(0,O.iv)(r,t,{geographic:!0});e.vertexAttributes.position=o,e.vertexAttributes.normal=i,e.vertexAttributes.tangent=s,e.vertexAttributesChanged()}(e,t,r):function(e,t,n){const r=j,o=S;if((0,I.KC)(t,o,e.spatialReference)){if(!(0,I.KC)(n,r,e.spatialReference)){const t=e.origin;r[0]=t.x,r[1]=t.y,r[2]=t.z,P.error(`Failed to project specified origin (wkid:${n.spatialReference.wkid}) to mesh spatial reference (wkid:${e.spatialReference.wkid}).`)}(function(e,t,n){if(e)for(let r=0;r<e.length;r+=3)for(let o=0;o<3;o++)e[r+o]+=t[o]-n[o]})(e.vertexAttributes.position,o,r),e.vertexAttributesChanged()}else P.error(`Failed to project centerAt location (wkid:${t.spatialReference.wkid}) to mesh spatial reference (wkid:${e.spatialReference.wkid})`)}(e,t,r)}(this,e,t),this):(h.Z.getLogger(this.declaredClass).error("centerAt()","Mesh must be loaded before applying operations"),this)}load(e){return(0,s.pC)(this.external)&&this.addResolvingPromise(async function(e,t,r){const{loadGLTFMesh:o}=await(0,g.Hl)(Promise.all([n.e(2631),n.e(2133),n.e(9070)]).then(n.bind(n,99070)),r),i=await U(t,r),a=o(new w.Z({x:0,y:0,z:0,spatialReference:e.spatialReference}),i.url,{resolveFile:N(i),useTransform:!0,signal:(0,s.pC)(r)?r.signal:null});a.then((()=>i.dispose()),(()=>i.dispose()));const{vertexAttributes:l,components:c}=await a;e.vertexAttributes=l,e.components=c}(this,this.external.source,e)),Promise.resolve(this)}clone(){let e=null;if(this.components){const t=new Map,n=new Map;e=this.components.map((e=>e.cloneWithDeduplication(t,n)))}const t={components:e,spatialReference:this.spatialReference,vertexAttributes:this.vertexAttributes.clone(),transform:(0,s.pC)(this.transform)?this.transform.clone():null,external:(0,s.pC)(this.external)?{source:this.external.source,extent:(0,s.pC)(this.external.extent)?this.external.extent.clone():null}:null};return new ye(t)}vertexAttributesChanged(){this.notifyChange("vertexAttributes")}async toBinaryGLTF(e){const{toBinaryGLTF:t}=await n.e(7277).then(n.bind(n,7277));return t(this,e)}static createBox(e,t){if(!(e instanceof w.Z))return h.Z.getLogger(ve).error(".createBox()","expected location to be a Point instance"),null;const n=new ye(Q(function(){const{faceDescriptions:e,faceVertexOffsets:t,uvScales:n}=ee,r=4*e.length,o=new Float64Array(3*r),i=new Float32Array(3*r),s=new Float32Array(2*r),a=new Uint32Array(2*e.length*3);let l=0,c=0,u=0,p=0;for(let r=0;r<e.length;r++){const h=e[r],f=l/3;for(const e of t)a[p++]=f+e;const g=h.corners;for(let e=0;e<4;e++){const t=g[e];let r=0;s[u++]=.25*n[e][0]+h.uvOrigin[0],s[u++]=h.uvOrigin[1]-.25*n[e][1];for(let e=0;e<3;e++)0!==h.axis[e]?(o[l++]=.5*h.axis[e],i[c++]=h.axis[e]):(o[l++]=.5*t[r++],i[c++]=0)}}return{position:o,normal:i,uv:s,faces:a}}(),e,t));return t&&t.imageFace&&"all"!==t.imageFace?function(e,t){const n=e.components[0],r=n.faces,o=te[t],i=6*o,a=new Uint32Array(6),l=new Uint32Array(r.length-6);let c=0,u=0;for(let e=0;e<r.length;e++)e>=i&&e<i+6?a[c++]=r[e]:l[u++]=r[e];if((0,s.pC)(e.vertexAttributes.uv)){const t=new Float32Array(e.vertexAttributes.uv),n=4*o*2,r=[0,1,1,1,1,0,0,0];for(let e=0;e<r.length;e++)t[n+e]=r[e];e.vertexAttributes.uv=t}return e.components=[new A.Z({faces:a,material:n.material}),new A.Z({faces:l})],e}(n,t.imageFace):n}static createSphere(e,t){return e instanceof w.Z?new ye(Q(function(e=0){const t=Math.round(8*2**e),n=2*t,r=(t-1)*(n+1)+2*n,o=new Float64Array(3*r),i=new Float32Array(3*r),s=new Float32Array(2*r),a=new Uint32Array((t-1)*n*2*3);let l=0,c=0,u=0,p=0;for(let e=0;e<=t;e++){const r=e/t*Math.PI+.5*Math.PI,h=Math.cos(r),f=Math.sin(r);ne[2]=f;const g=0===e||e===t,x=g?n-1:n;for(let r=0;r<=x;r++){const f=r/x*2*Math.PI;ne[0]=-Math.sin(f)*h,ne[1]=Math.cos(f)*h;for(let e=0;e<3;e++)o[l]=.5*ne[e],i[l]=ne[e],++l;s[c++]=(r+(g?.5:0))/n,s[c++]=e/t,0!==e&&r!==n&&(e!==t&&(a[u++]=p,a[u++]=p+1,a[u++]=p-n),1!==e&&(a[u++]=p,a[u++]=p-n,a[u++]=p-n-1)),p++}}return{position:o,normal:i,uv:s,faces:a}}(t&&t.densificationFactor||0),e,t)):(h.Z.getLogger(ve).error(".createSphere()","expected location to be a Point instance"),null)}static createCylinder(e,t){return e instanceof w.Z?new ye(Q(function(e=0){const t=Math.round(16*2**e),n=4*(t+1)+2*t,r=new Float64Array(3*n),o=new Float32Array(3*n),i=new Float32Array(2*n),s=new Uint32Array(4*t*3);let a=0,l=0,c=0,u=0,p=0;for(let e=0;e<=5;e++){const n=0===e||5===e,h=e<=1||e>=4,f=2===e||4===e,g=n?t-1:t;for(let x=0;x<=g;x++){const d=x/g*2*Math.PI,m=n?0:.5;ne[0]=m*Math.sin(d),ne[1]=m*-Math.cos(d),ne[2]=e<=2?.5:-.5;for(let t=0;t<3;t++)r[a++]=ne[t],o[l++]=h?2===t?e<=1?1:-1:0:2===t?0:ne[t]/m;i[c++]=(x+(n?.5:0))/t,i[c++]=e<=1?1*e/3:e<=3?1*(e-2)/3+1/3:1*(e-4)/3+2/3,f||0===e||x===t||(5!==e&&(s[u++]=p,s[u++]=p+1,s[u++]=p-t),1!==e&&(s[u++]=p,s[u++]=p-t,s[u++]=p-t-1)),p++}}return{position:r,normal:o,uv:i,faces:s}}(t&&t.densificationFactor||0),e,t)):(h.Z.getLogger(ve).error(".createCylinder()","expected location to be a Point instance"),null)}static createPlane(e,t){if(!(e instanceof w.Z))return h.Z.getLogger(ve).error(".createPlane()","expected location to be a Point instance"),null;const n=t?.facing??"up",r=function(e,t){const n="number"==typeof t?t:null!=t?t.width:1,r="number"==typeof t?t:null!=t?t.height:1;switch(e){case"up":case"down":return{width:n,depth:r};case"north":case"south":return{width:n,height:r};case"east":case"west":return{depth:n,height:r}}}(n,t?.size);return new ye(Q(function(e){const t=V.facingAxisOrderSwap[e],n=V.position,r=V.normal,o=new Float64Array(n.length),i=new Float32Array(r.length);let s=0;for(let e=0;e<4;e++){const e=s;for(let a=0;a<3;a++){const l=t[a],c=Math.abs(l)-1,u=l>=0?1:-1;o[s]=n[e+c]*u,i[s]=r[e+c]*u,s++}}return{position:o,normal:i,uv:new Float32Array(V.uv),faces:new Uint32Array(V.faces),isPlane:!0}}(n),e,{...t,size:r}))}static createFromPolygon(e,t){if(!(e instanceof C.Z))return h.Z.getLogger(ve).error(".createFromPolygon()","expected polygon to be a Polygon instance"),null;const n=function(e){const t=R(e.rings,e.hasZ,r.CCW_IS_HOLE),n=[];let o=0,i=0;for(const e of t.polygons){const r=e.count,s=e.index,a=new Float64Array(t.position.buffer,3*s*t.position.BYTES_PER_ELEMENT,3*r),l=e.holeIndices.map((e=>e-s)),c=new Uint32Array((0,M.e)(a,l,3));n.push({position:a,faces:c}),o+=a.length,i+=c.length}const s=function(e,t,n){if(1===e.length)return e[0];const r=new Float64Array(t),o=new Uint32Array(n);let i=0,s=0,a=0;for(const t of e){for(let e=0;e<t.position.length;e++)r[i++]=t.position[e];for(let e=0;e<t.faces.length;e++)o[s++]=t.faces[e]+a;a=i/3}return{position:r,faces:o}}(n,o,i),a=(0,F.d)(s.position.buffer,6,{originalIndices:s.faces});return s.position=new Float64Array(a.buffer),s.faces=a.indices,s}(e);return new ye({vertexAttributes:new Z.Q({position:n.position}),components:[new A.Z({faces:n.faces,shading:"flat",material:t?.material??null})],spatialReference:e.spatialReference})}static async createFromGLTF(e,t,r){if(!(e instanceof w.Z))throw h.Z.getLogger(ve).error(".createfromGLTF()","expected location to be a Point instance"),new c.Z("invalid-input","Expected location to be a Point instance");const{loadGLTFMesh:o}=await(0,g.Hl)(Promise.all([n.e(2631),n.e(2133),n.e(9070)]).then(n.bind(n,99070)),r);return new ye(await o(e,t,r))}static createWithExternalSource(e,t,n){const r=n?.extent??null,o=n?.transform?.clone()??new T.Z;o.origin=[e.x,e.y,e.z??0];const i=e.spatialReference;return new ye({external:{source:t,extent:r},transform:o,spatialReference:i})}static createIncomplete(e,t){const n=t?.transform?.clone()??new T.Z;n.origin=[e.x,e.y,e.z??0];const r=e.spatialReference,o=new ye({transform:n,spatialReference:r});return o.addResolvingPromise(Promise.reject(new c.Z("mesh-incomplete","Mesh resources are not complete"))),o}};(0,l._)([(0,d.Cb)({type:[A.Z],json:{write:!0}})],we.prototype,"components",void 0),(0,l._)([(0,d.Cb)({type:T.Z,json:{write:!0}})],we.prototype,"transform",void 0),(0,l._)([(0,d.Cb)({constructOnly:!0})],we.prototype,"external",void 0),(0,l._)([(0,d.Cb)({readOnly:!0})],we.prototype,"hasExtent",null),(0,l._)([(0,d.Cb)({readOnly:!0})],we.prototype,"_boundingInfo",null),(0,l._)([(0,d.Cb)({readOnly:!0})],we.prototype,"anchor",null),(0,l._)([(0,d.Cb)({readOnly:!0})],we.prototype,"origin",null),(0,l._)([(0,d.Cb)({readOnly:!0,json:{read:!1}})],we.prototype,"extent",null),(0,l._)([(0,d.Cb)({readOnly:!0,json:{read:!1,write:!0,default:!0}})],we.prototype,"hasZ",void 0),(0,l._)([(0,d.Cb)({readOnly:!0,json:{read:!1,write:!0,default:!1}})],we.prototype,"hasM",void 0),(0,l._)([(0,d.Cb)({type:Z.Q,nonNullable:!0,json:{write:!0}})],we.prototype,"vertexAttributes",void 0),we=ye=(0,l._)([(0,m.j)(ve)],we);const Ce={x:(0,y.f)(1,0,0),y:(0,y.f)(0,1,0),z:(0,y.f)(0,0,1)},be=(0,b.Ue)(),Ae=(0,b.Ue)(),Te=(0,b.Ue)(),Ze=(0,y.c)(),Me=we;var _e,Fe;!function(e){e.featureGUID="featureGUID",e.assetName="assetName",e.hash="hash",e.type="type",e.conversionStatus="conversionStatus",e.flags="flags",e.complexity="complexity",e.size="size",e.seqNo="seqNo",e.sourceHash="sourceHash",e.assetURL="assetURL"}(_e||(_e={})),function(e){e.SUBMITTED="SUBMITTED",e.INPROGRESS="INPROGRESS",e.FAILED="FAILED",e.COMPLETED="COMPLETED"}(Fe||(Fe={}));var Re,Le,De=n(74889);function Ie(e,t,n){const r=n.features;n.features=[],delete n.geometryType;const o=De.default.fromJSON(n);o.geometryType="mesh";const a=o.spatialReference,l=(0,s.Wi)(e.outFields)||!e.outFields.length?()=>({}):(c=e.outFields.includes("*")?null:new Set(e.outFields),({attributes:e})=>{if(!e)return{};if(!c)return e;for(const t in e)c.has(t)||delete e[t];return e});var c;for(const e of r){const n=Ee(e,a,t);(0,s.pC)(n)&&o.features.push(new i.Z({geometry:n,attributes:l(e)}))}return o}function Ee(e,t,n){const{status:r,source:o}=function(e){if(!e.assetMappings)return{status:Re.FAILED};const t=[],n=new Map;for(const r of e.assetMappings){const e=r[_e.seqNo],o=r[_e.assetName],i=r[_e.assetURL],s=r[_e.conversionStatus];if(s===Fe.FAILED)return{status:Re.FAILED};if(s!==Fe.COMPLETED)return{status:Re.PENDING};if(null==e)t.push({name:o,source:i});else{const r=n.get(o);let s;r?s=r.multipart:(s=[],t.push({name:o,source:{multipart:s}}),n.set(o,{multipart:s})),s[e]=i}}return{status:Re.COMPLETED,source:t}}(e);if(r===Re.FAILED)return null;const i=function({attributes:e},t,{transformFieldRoles:n}){return new w.Z({x:e[n.originX],y:e[n.originY],z:e[n.originZ],spatialReference:t})}(e,t,n),s=a.Z.fromJSON(e.geometry);s.spatialReference=t;const l=function({attributes:e,assetMappings:t},{transformFieldRoles:n}){return new T.Z({translation:[e[n.translationX],e[n.translationY],e[n.translationZ]],rotation:(0,b.uT)([e[n.rotationX],e[n.rotationY],e[n.rotationZ]],e[n.rotationDeg]),scale:[e[n.scaleX],e[n.scaleY],e[n.scaleZ]],geographic:!t[_e.flags]?.includes("PROJECT_VERTICES")})}(e,n);return r===Re.PENDING?Me.createIncomplete(i,{extent:s,transform:l}):Me.createWithExternalSource(i,o,{extent:s,transform:l})}(Le=Re||(Re={}))[Le.FAILED=0]="FAILED",Le[Le.PENDING=1]="PENDING",Le[Le.COMPLETED=2]="COMPLETED"}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[24,8008,8062],{70024:(e,a,r)=>{r.r(a),r.d(a,{populateOperationalLayers:()=>c});var t=r(46791),n=(r(80442),r(95330)),i=r(87344),l=r(15235);function s(e,a){return!(!e.layerType||"ArcGISFeatureLayer"!==e.layerType)&&e.featureCollectionType===a}var y=r(28008),o=r(40555);async function c(e,a,r){if(!a)return;const t=[];for(const e of a){const a=S(e,r);"GroupLayer"===e.layerType?t.push(h(a,e,r)):t.push(a)}const i=await(0,n.as)(t);for(const a of i)!a.value||r.filter&&!r.filter(a.value)||e.add(a.value)}const u={ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",PointCloudLayer:"PointCloudLayer",ArcGISSceneServiceLayer:"SceneLayer",IntegratedMeshLayer:"IntegratedMeshLayer",OGCFeatureLayer:"OGCFeatureLayer",BuildingSceneLayer:"BuildingSceneLayer",ArcGISTiledElevationServiceLayer:"ElevationLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",GroupLayer:"GroupLayer",GeoJSON:"GeoJSONLayer",WebTiledLayer:"WebTileLayer",CSV:"CSVLayer",VectorTileLayer:"VectorTileLayer",WFS:"WFSLayer",WMS:"WMSLayer",DefaultTileLayer:"TileLayer",KML:"KMLLayer",RasterDataLayer:"UnsupportedLayer",Voxel:"VoxelLayer",LineOfSightLayer:"LineOfSightLayer"},L={ArcGISTiledElevationServiceLayer:"ElevationLayer",DefaultTileLayer:"ElevationLayer",RasterDataElevationLayer:"UnsupportedLayer"},d={ArcGISTiledMapServiceLayer:"TileLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",OpenStreetMap:"OpenStreetMapLayer",WebTiledLayer:"WebTileLayer",VectorTileLayer:"VectorTileLayer",ArcGISImageServiceLayer:"UnsupportedLayer",WMS:"UnsupportedLayer",ArcGISMapServiceLayer:"UnsupportedLayer",DefaultTileLayer:"TileLayer"},p={ArcGISAnnotationLayer:"UnsupportedLayer",ArcGISDimensionLayer:"UnsupportedLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISStreamLayer:"StreamLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",BingMapsAerial:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",CSV:"CSVLayer",DefaultTileLayer:"TileLayer",GeoRSS:"GeoRSSLayer",GeoJSON:"GeoJSONLayer",GroupLayer:"GroupLayer",KML:"KMLLayer",OGCFeatureLayer:"OGCFeatureLayer",SubtypeGroupLayer:"UnsupportedLayer",VectorTileLayer:"VectorTileLayer",WFS:"WFSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},f={ArcGISFeatureLayer:"FeatureLayer"},m={ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",OpenStreetMap:"OpenStreetMapLayer",VectorTileLayer:"VectorTileLayer",WebTiledLayer:"WebTileLayer",BingMapsAerial:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",WMS:"WMSLayer",DefaultTileLayer:"TileLayer"};async function S(e,a){return async function(e,a,r){const t=new e;return t.read(a,r.context),"group"===t.type&&I(a)&&await async function(e,a,r){const t=i.T.FeatureLayer,n=await t(),l=a.featureCollection,s=l.showLegend,y=l.layers.map(((t,i)=>{const l=new n;l.read(t,r);const y={...r,ignoreDefaults:!0};return l.read({id:`${e.id}-sublayer-${i}`,visibility:a.visibleLayers?.includes(i)??!0},y),null!=s&&l.read({showLegend:s},y),l}));e.layers.addMany(y)}(t,a,r.context),await(0,o.y)(t,r.context),t}(await async function(e,a){const r=a.context,t=T(r);let n=e.layerType||e.type;!n&&a&&a.defaultLayerType&&(n=a.defaultLayerType);const o=t[n];let c=o?i.T[o]:i.T.UnknownLayer;if(g(e)){const a=r?.portal;if(e.itemId){const r=new l.default({id:e.itemId,portal:a});await r.load();const t=(await(0,y.selectLayerClassPath)(r)).className||"UnknownLayer";c=i.T[t]}}else"ArcGISFeatureLayer"===n?function(e){return s(e,"notes")}(e)||function(e){return s(e,"markup")}(e)?c=i.T.MapNotesLayer:function(e){return s(e,"route")}(e)?c=i.T.RouteLayer:I(e)&&(c=i.T.GroupLayer):e.wmtsInfo&&e.wmtsInfo.url&&e.wmtsInfo.layerIdentifier?c=i.T.WMTSLayer:"WFS"===n&&"2.0.0"!==e.wfsInfo.version&&(c=i.T.UnsupportedLayer);return c()}(e,a),e,a)}function I(e){return"ArcGISFeatureLayer"===e.layerType&&!g(e)&&(e.featureCollection?.layers?.length??0)>1}function g(e){return"Feature Collection"===e.type}function T(e){let a;if("web-scene"===e.origin)switch(e.layerContainerType){case"basemap":a=d;break;case"ground":a=L;break;default:a=u}else switch(e.layerContainerType){case"basemap":a=m;break;case"tables":a=f;break;default:a=p}return a}async function h(e,a,r){const n=new t.Z,i=c(n,Array.isArray(a.layers)?a.layers:[],r),l=await e;if(await i,"group"===l.type)return l.layers.addMany(n),l}},87344:(e,a,r)=>{r.d(a,{T:()=>t});const t={BingMapsLayer:async()=>(await Promise.all([r.e(6968),r.e(2723)]).then(r.bind(r,2723))).default,BuildingSceneLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(8244),r.e(1423),r.e(1819),r.e(1491),r.e(8326),r.e(3121),r.e(4133),r.e(2485)]).then(r.bind(r,30223))).default,CSVLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(8244),r.e(1423),r.e(1819),r.e(1491),r.e(8326),r.e(3121),r.e(4910)]).then(r.bind(r,45425))).default,ElevationLayer:async()=>(await Promise.all([r.e(1938),r.e(9932)]).then(r.bind(r,49932))).default,FeatureLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(8244),r.e(1423),r.e(1819),r.e(1491),r.e(8326),r.e(3121),r.e(4477)]).then(r.bind(r,3121))).default,GroupLayer:async()=>(await Promise.all([r.e(6968),r.e(9348)]).then(r.bind(r,89348))).default,GeoRSSLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(3723)]).then(r.bind(r,3723))).default,GeoJSONLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(8244),r.e(1423),r.e(1819),r.e(1491),r.e(7202)]).then(r.bind(r,23477))).default,ImageryLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(8244),r.e(8326),r.e(6610),r.e(4242),r.e(6210)]).then(r.bind(r,66210))).default,ImageryTileLayer:async()=>(await Promise.all([r.e(6968),r.e(4547),r.e(9454),r.e(1773),r.e(8244),r.e(1938),r.e(6610),r.e(4242),r.e(9926),r.e(9416)]).then(r.bind(r,92045))).default,IntegratedMeshLayer:async()=>(await Promise.all([r.e(4547),r.e(4133),r.e(734)]).then(r.bind(r,9310))).default,KMLLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(8244),r.e(1423),r.e(739)]).then(r.bind(r,42756))).default,LineOfSightLayer:async()=>(await Promise.all([r.e(4547),r.e(9454),r.e(1773),r.e(9779)]).then(r.bind(r,99779))).default,MapImageLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(8244),r.e(1423),r.e(1491),r.e(3128),r.e(7374)]).then(r.bind(r,27374))).default,MapNotesLayer:async()=>(await Promise.all([r.e(6968),r.e(4547),r.e(9454),r.e(1773),r.e(8244),r.e(1423),r.e(1819),r.e(1491),r.e(8326),r.e(3121),r.e(3750)]).then(r.bind(r,62128))).default,OGCFeatureLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(8244),r.e(1423),r.e(1819),r.e(1491),r.e(2855)]).then(r.bind(r,88068))).default,OpenStreetMapLayer:async()=>(await Promise.all([r.e(6968),r.e(6199),r.e(6237)]).then(r.bind(r,66237))).default,PointCloudLayer:async()=>(await Promise.all([r.e(1773),r.e(4133),r.e(4148)]).then(r.bind(r,10608))).default,RouteLayer:async()=>(await Promise.all([r.e(6968),r.e(4547),r.e(9454),r.e(1773),r.e(8244),r.e(1423),r.e(4286)]).then(r.bind(r,40153))).default,SceneLayer:async()=>(await Promise.all([r.e(6968),r.e(4547),r.e(9454),r.e(1773),r.e(8244),r.e(1423),r.e(1819),r.e(1491),r.e(8326),r.e(3121),r.e(4133),r.e(8238),r.e(1380)]).then(r.bind(r,10586))).default,StreamLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(8244),r.e(1423),r.e(1819),r.e(1408)]).then(r.bind(r,88387))).default,TileLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(8244),r.e(1423),r.e(1491),r.e(1938),r.e(3128),r.e(8636)]).then(r.bind(r,98636))).default,UnknownLayer:async()=>(await r.e(4166).then(r.bind(r,44166))).default,UnsupportedLayer:async()=>(await r.e(9296).then(r.bind(r,39296))).default,VectorTileLayer:async()=>(await Promise.all([r.e(6968),r.e(1938),r.e(4325),r.e(1785),r.e(4109)]).then(r.bind(r,24109))).default,VoxelLayer:async()=>(await Promise.all([r.e(4133),r.e(7304)]).then(r.bind(r,91398))).default,WebTileLayer:async()=>(await Promise.all([r.e(6968),r.e(6199)]).then(r.bind(r,16199))).default,WFSLayer:async()=>(await Promise.all([r.e(6968),r.e(4547),r.e(9454),r.e(1773),r.e(8244),r.e(1423),r.e(1819),r.e(3974)]).then(r.bind(r,12653))).default,WMSLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(5906)]).then(r.bind(r,25906))).default,WMTSLayer:async()=>(await Promise.all([r.e(6968),r.e(6199),r.e(5853)]).then(r.bind(r,55853))).default}},33516:(e,a,r)=>{r.d(a,{Y:()=>l,h:()=>i});var t=r(17452),n=r(65587);function i(e){return{origin:"portal-item",url:(0,t.mN)(e.itemUrl),portal:e.portal||n.Z.getDefault(),portalItem:e,readResourcePaths:[]}}function l(e){return{origin:"portal-item",messages:[],writtenProperties:[],url:e.itemUrl?(0,t.mN)(e.itemUrl):null,portal:e.portal||n.Z.getDefault(),portalItem:e}}},18062:(e,a,r)=>{r.r(a),r.d(a,{getFirstLayerOrTableId:()=>p,getNumLayersAndTables:()=>f,load:()=>y,preprocessFSItemData:()=>d});var t=r(20102),n=r(65587),i=r(33516),l=r(40555),s=r(96187);async function y(e,a){const r=e.instance.portalItem;if(r&&r.id)return await r.load(a),function(e){const a=e.instance.portalItem;if(!e.supportedTypes.includes(a.type))throw new t.Z("portal:invalid-layer-item-type","Invalid layer item type '${type}', expected '${expectedType}'",{type:a.type,expectedType:e.supportedTypes.join(", ")})}(e),async function(e,a){const r=e.instance,t=r.portalItem,{url:n,title:s}=t,y=(0,i.h)(t);if("group"===r.type)return r.read({title:s},y),o(r,e);n&&r.read({url:n},y);const c=await L(e,a);return c&&r.read(c,y),r.resourceReferences={portalItem:t,paths:y.readResourcePaths},r.read({title:s},y),(0,l.y)(r,y)}(e,a)}function o(e,a){let r;const n=e.portalItem.type,i=a.layerModuleTypeMap;switch(n){case"Feature Service":case"Feature Collection":r=i.FeatureLayer;break;case"Stream Service":r=i.StreamLayer;break;case"Scene Service":r=i.SceneLayer;break;default:throw new t.Z("portal:unsupported-item-type-as-group",`The item type '${n}' is not supported as a 'IGroupLayer'`)}let l;return r().then((e=>(l=e,L(a)))).then((async a=>"Feature Service"===n?(a=await d(a,e.portalItem.url),c(e,l,a)):f(a)>0?c(e,l,a):function(e,a){return e.portalItem.url?(0,s.b)(e.portalItem.url).then((r=>{function t(e){return{id:e.id,name:e.name}}r&&c(e,a,{layers:r.layers?.map(t),tables:r.tables?.map(t)})})):Promise.resolve()}(e,l)))}function c(e,a,r){let t=r.layers||[];const n=r.tables||[];"Feature Collection"===e.portalItem.type&&(t.forEach((e=>{"Table"===e?.layerDefinition?.type&&n.push(e)})),t=t.filter((e=>"Table"!==e?.layerDefinition?.type))),t.reverse().forEach((t=>{const n=u(e,a,r,t);e.add(n)})),n.reverse().forEach((t=>{const n=u(e,a,r,t);e.tables.add(n)}))}function u(e,a,r,t){const i=new a({portalItem:e.portalItem.clone(),layerId:t.id,sublayerTitleMode:"service-name"});if("Feature Collection"===e.portalItem.type){const a={origin:"portal-item",portal:e.portalItem.portal||n.Z.getDefault()};i.read(t,a);const l=r.showLegend;null!=l&&i.read({showLegend:l},a)}return i}function L(e,a){if(!1===e.supportsData)return Promise.resolve(void 0);const r=e.instance;return r.portalItem.fetchData("json",a).catch((()=>null)).then((async e=>{if(function(e){return"stream"!==e.type&&"layerId"in e}(r)){let a,t=!0;return e&&f(e)>0&&(null==r.layerId&&(r.layerId=p(e)),a=function(e,a){const r=e.layers;if(r)for(let e=0;e<r.length;e++)if(r[e].id===a)return r[e];const t=e.tables;if(t)for(let e=0;e<t.length;e++)if(t[e].id===a)return t[e];return null}(e,r.layerId),a&&(1===f(e)&&(t=!1),null!=e.showLegend&&(a.showLegend=e.showLegend))),t&&"service-name"!==r.sublayerTitleMode&&(r.sublayerTitleMode="item-title-and-service-name"),a}return e}))}async function d(e,a){if(null==e?.layers||null==e?.tables){const r=await(0,s.b)(a);(e=e||{}).layers=e.layers||r?.layers,e.tables=e.tables||r?.tables}return e}function p(e){const a=e.layers;if(a&&a.length)return a[0].id;const r=e.tables;return r&&r.length?r[0].id:null}function f(e){return(e?.layers?.length??0)+(e?.tables?.length??0)}},14661:(e,a,r)=>{r.d(a,{$o:()=>o,Kz:()=>c,_$:()=>s,ck:()=>y,qj:()=>l});var t=r(44547),n=r(82971),i=r(40488);function l(e,a){if(!s(e,a)){const r=e.typeKeywords;r?r.push(a):e.typeKeywords=[a]}}function s(e,a){return!!e.typeKeywords?.includes(a)}function y(e,a){const r=e.typeKeywords;if(r){const e=r.indexOf(a);e>-1&&r.splice(e,1)}}async function o(e){const a=e.clone().normalize();let r;if(a.length>1)for(const e of a)r?e.width>r.width&&(r=e):r=e;else r=a[0];return async function(e){const a=e.spatialReference;if(a.isWGS84)return e.clone();if(a.isWebMercator)return(0,i.Sx)(e);const r=n.Z.WGS84;return await(0,t.iQ)(a,r),(0,t.iV)(e,r)}(r)}const c={DEVELOPER_BASEMAP:"DeveloperBasemap",JSAPI:"ArcGIS API for JavaScript",METADATA:"Metadata",MULTI_LAYER:"Multilayer",SINGLE_LAYER:"Singlelayer",TABLE:"Table"}},28008:(e,a,r)=>{r.r(a),r.d(a,{fromItem:()=>o,selectLayerClassPath:()=>c});var t=r(20102),n=r(87344),i=r(15235),l=r(18062),s=r(14661),y=r(96187);function o(e){return!e.portalItem||e.portalItem instanceof i.default||(e={...e,portalItem:new i.default(e.portalItem)}),function(e){return e.load().then(c).then(u)}(e.portalItem).then((a=>{const r={portalItem:e.portalItem,...a.properties};return new(0,a.constructor)(r)}))}function c(e){switch(e.type){case"Map Service":return(a=e,(0,y.b)(a.url).then((e=>e.tileInfo))).then((e=>e?{className:"TileLayer"}:{className:"MapImageLayer"}));case"Feature Service":return function(e){return L(e).then((e=>{if("object"==typeof e){const a={};return null!=e.id&&(a.layerId=e.id),{className:"FeatureLayer",properties:a}}return{className:"GroupLayer"}}))}(e);case"Feature Collection":return async function(e){await e.load();const a=(0,s._$)(e,"Map Notes"),r=(0,s._$)(e,"Markup");if(a||r)return{className:"MapNotesLayer"};if((0,s._$)(e,"Route Layer"))return{className:"RouteLayer"};const t=await e.fetchData();return 1===(0,l.getNumLayersAndTables)(t)?{className:"FeatureLayer"}:{className:"GroupLayer"}}(e);case"Scene Service":return function(e){return L(e).then((a=>{if("object"==typeof a){const r={};let t;if(null!=a.id?(r.layerId=a.id,t=`${e.url}/layers/${a.id}`):t=e.url,Array.isArray(e.typeKeywords)&&e.typeKeywords.length>0){const a={IntegratedMesh:"IntegratedMeshLayer","3DObject":"SceneLayer",Point:"SceneLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};for(const r of Object.keys(a))if(e.typeKeywords.includes(r))return{className:a[r]}}return(0,y.b)(t).then((e=>{let a="SceneLayer";const t={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};return e&&e.layerType&&t[e.layerType]&&(a=t[e.layerType]),{className:a,properties:r}}))}return!1===a?(0,y.b)(e.url).then((e=>"Voxel"===e?.layerType?{className:"VoxelLayer"}:{className:"GroupLayer"})):{className:"GroupLayer"}}))}(e);case"Image Service":return async function(e){await e.load();const a=e.typeKeywords?.map((e=>e.toLowerCase()))??[];if(a.includes("elevation 3d layer"))return{className:"ElevationLayer"};if(a.includes("tiled imagery"))return{className:"ImageryTileLayer"};const r=(await e.fetchData())?.layerType;if("ArcGISTiledImageServiceLayer"===r)return{className:"ImageryTileLayer"};if("ArcGISImageServiceLayer"===r)return{className:"ImageryLayer"};const t=(await(0,y.b)(e.url)).cacheType?.toLowerCase();return"map"===t?{className:"ImageryTileLayer"}:{className:"ImageryLayer"}}(e);case"Stream Service":case"Feed":return{className:"StreamLayer"};case"Vector Tile Service":return{className:"VectorTileLayer"};case"KML":return{className:"KMLLayer"};case"WFS":return{className:"WFSLayer"};case"WMTS":return{className:"WMTSLayer"};case"WMS":return{className:"WMSLayer"};default:return Promise.reject(new t.Z("portal:unknown-item-type","Unknown item type '${type}'",{type:e.type}))}var a}function u(e){return(0,n.T[e.className])().then((a=>({constructor:a,properties:e.properties})))}function L(e){return!e.url||e.url.match(/\/\d+$/)?Promise.resolve({}):e.load().then((()=>e.fetchData())).then((async a=>"Feature Service"===e.type?d(a=await(0,l.preprocessFSItemData)(a,e.url)):(0,l.getNumLayersAndTables)(a)>0?d(a):(0,y.b)(e.url).then(d)))}function d(e){return 1===(0,l.getNumLayersAndTables)(e)&&{id:(0,l.getFirstLayerOrTableId)(e)}}},40555:(e,a,r)=>{r.d(a,{y:()=>l});var t=r(66643),n=r(95330),i=r(20941);async function l(e,a,r){const l=e&&e.getAtOrigin&&e.getAtOrigin("renderer",a.origin);if(l&&"unique-value"===l.type&&l.styleOrigin){const s=await(0,t.q6)(l.populateFromStyle());if((0,n.k_)(r),!1===s.ok){const r=s.error;a&&a.messages&&a.messages.push(new i.Z("renderer:style-reference",`Failed to create unique value renderer from style reference: ${r.message}`,{error:r,context:a})),e.clear("renderer",a.origin)}}}},96187:(e,a,r)=>{r.d(a,{b:()=>n});var t=r(3172);async function n(e){const{data:a}=await(0,t.default)(e,{responseType:"json",query:{f:"json"}});return a}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[24,8008,8062],{70024:(e,a,r)=>{r.r(a),r.d(a,{populateOperationalLayers:()=>c});var t=r(46791),n=(r(80442),r(95330)),i=r(87344),l=r(15235);function s(e,a){return!(!e.layerType||"ArcGISFeatureLayer"!==e.layerType)&&e.featureCollectionType===a}var y=r(28008),o=r(40555);async function c(e,a,r){if(!a)return;const t=[];for(const e of a){const a=S(e,r);"GroupLayer"===e.layerType?t.push(h(a,e,r)):t.push(a)}const i=await(0,n.as)(t);for(const a of i)!a.value||r.filter&&!r.filter(a.value)||e.add(a.value)}const u={ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",PointCloudLayer:"PointCloudLayer",ArcGISSceneServiceLayer:"SceneLayer",IntegratedMeshLayer:"IntegratedMeshLayer",OGCFeatureLayer:"OGCFeatureLayer",BuildingSceneLayer:"BuildingSceneLayer",ArcGISTiledElevationServiceLayer:"ElevationLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",GroupLayer:"GroupLayer",GeoJSON:"GeoJSONLayer",WebTiledLayer:"WebTileLayer",CSV:"CSVLayer",VectorTileLayer:"VectorTileLayer",WFS:"WFSLayer",WMS:"WMSLayer",DefaultTileLayer:"TileLayer",KML:"KMLLayer",RasterDataLayer:"UnsupportedLayer",Voxel:"VoxelLayer",LineOfSightLayer:"LineOfSightLayer"},L={ArcGISTiledElevationServiceLayer:"ElevationLayer",DefaultTileLayer:"ElevationLayer",RasterDataElevationLayer:"UnsupportedLayer"},d={ArcGISTiledMapServiceLayer:"TileLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",OpenStreetMap:"OpenStreetMapLayer",WebTiledLayer:"WebTileLayer",VectorTileLayer:"VectorTileLayer",ArcGISImageServiceLayer:"UnsupportedLayer",WMS:"UnsupportedLayer",ArcGISMapServiceLayer:"UnsupportedLayer",DefaultTileLayer:"TileLayer"},p={ArcGISAnnotationLayer:"UnsupportedLayer",ArcGISDimensionLayer:"UnsupportedLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISStreamLayer:"StreamLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",BingMapsAerial:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",CSV:"CSVLayer",DefaultTileLayer:"TileLayer",GeoRSS:"GeoRSSLayer",GeoJSON:"GeoJSONLayer",GroupLayer:"GroupLayer",KML:"KMLLayer",OGCFeatureLayer:"OGCFeatureLayer",SubtypeGroupLayer:"UnsupportedLayer",VectorTileLayer:"VectorTileLayer",WFS:"WFSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},f={ArcGISFeatureLayer:"FeatureLayer"},m={ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",OpenStreetMap:"OpenStreetMapLayer",VectorTileLayer:"VectorTileLayer",WebTiledLayer:"WebTileLayer",BingMapsAerial:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",WMS:"WMSLayer",DefaultTileLayer:"TileLayer"};async function S(e,a){return async function(e,a,r){const t=new e;return t.read(a,r.context),"group"===t.type&&I(a)&&await async function(e,a,r){const t=i.T.FeatureLayer,n=await t(),l=a.featureCollection,s=l.showLegend,y=l.layers.map(((t,i)=>{const l=new n;l.read(t,r);const y={...r,ignoreDefaults:!0};return l.read({id:`${e.id}-sublayer-${i}`,visibility:a.visibleLayers?.includes(i)??!0},y),null!=s&&l.read({showLegend:s},y),l}));e.layers.addMany(y)}(t,a,r.context),await(0,o.y)(t,r.context),t}(await async function(e,a){const r=a.context,t=T(r);let n=e.layerType||e.type;!n&&a&&a.defaultLayerType&&(n=a.defaultLayerType);const o=t[n];let c=o?i.T[o]:i.T.UnknownLayer;if(g(e)){const a=r?.portal;if(e.itemId){const r=new l.default({id:e.itemId,portal:a});await r.load();const t=(await(0,y.selectLayerClassPath)(r)).className||"UnknownLayer";c=i.T[t]}}else"ArcGISFeatureLayer"===n?function(e){return s(e,"notes")}(e)||function(e){return s(e,"markup")}(e)?c=i.T.MapNotesLayer:function(e){return s(e,"route")}(e)?c=i.T.RouteLayer:I(e)&&(c=i.T.GroupLayer):e.wmtsInfo&&e.wmtsInfo.url&&e.wmtsInfo.layerIdentifier?c=i.T.WMTSLayer:"WFS"===n&&"2.0.0"!==e.wfsInfo.version&&(c=i.T.UnsupportedLayer);return c()}(e,a),e,a)}function I(e){return"ArcGISFeatureLayer"===e.layerType&&!g(e)&&(e.featureCollection?.layers?.length??0)>1}function g(e){return"Feature Collection"===e.type}function T(e){let a;if("web-scene"===e.origin)switch(e.layerContainerType){case"basemap":a=d;break;case"ground":a=L;break;default:a=u}else switch(e.layerContainerType){case"basemap":a=m;break;case"tables":a=f;break;default:a=p}return a}async function h(e,a,r){const n=new t.Z,i=c(n,Array.isArray(a.layers)?a.layers:[],r),l=await e;if(await i,"group"===l.type)return l.layers.addMany(n),l}},87344:(e,a,r)=>{r.d(a,{T:()=>t});const t={BingMapsLayer:async()=>(await Promise.all([r.e(6968),r.e(2723)]).then(r.bind(r,2723))).default,BuildingSceneLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(8244),r.e(1423),r.e(1819),r.e(1491),r.e(8326),r.e(3121),r.e(4133),r.e(2485)]).then(r.bind(r,30223))).default,CSVLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(8244),r.e(1423),r.e(1819),r.e(1491),r.e(8326),r.e(3121),r.e(4910)]).then(r.bind(r,45425))).default,ElevationLayer:async()=>(await Promise.all([r.e(1938),r.e(9932)]).then(r.bind(r,49932))).default,FeatureLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(8244),r.e(1423),r.e(1819),r.e(1491),r.e(8326),r.e(3121),r.e(4477)]).then(r.bind(r,3121))).default,GroupLayer:async()=>(await Promise.all([r.e(6968),r.e(9348)]).then(r.bind(r,89348))).default,GeoRSSLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(3723)]).then(r.bind(r,3723))).default,GeoJSONLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(8244),r.e(1423),r.e(1819),r.e(1491),r.e(7202)]).then(r.bind(r,23477))).default,ImageryLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(8244),r.e(8326),r.e(6610),r.e(4242),r.e(6210)]).then(r.bind(r,66210))).default,ImageryTileLayer:async()=>(await Promise.all([r.e(6968),r.e(4547),r.e(9454),r.e(1773),r.e(8244),r.e(1938),r.e(6610),r.e(4242),r.e(1065),r.e(9416)]).then(r.bind(r,92045))).default,IntegratedMeshLayer:async()=>(await Promise.all([r.e(4547),r.e(4133),r.e(734)]).then(r.bind(r,9310))).default,KMLLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(8244),r.e(1423),r.e(739)]).then(r.bind(r,42756))).default,LineOfSightLayer:async()=>(await Promise.all([r.e(4547),r.e(9454),r.e(1773),r.e(9779)]).then(r.bind(r,99779))).default,MapImageLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(8244),r.e(1423),r.e(1491),r.e(3128),r.e(7374)]).then(r.bind(r,27374))).default,MapNotesLayer:async()=>(await Promise.all([r.e(6968),r.e(4547),r.e(9454),r.e(1773),r.e(8244),r.e(1423),r.e(1819),r.e(1491),r.e(8326),r.e(3121),r.e(3750)]).then(r.bind(r,62128))).default,OGCFeatureLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(8244),r.e(1423),r.e(1819),r.e(1491),r.e(2855)]).then(r.bind(r,88068))).default,OpenStreetMapLayer:async()=>(await Promise.all([r.e(6968),r.e(6199),r.e(6237)]).then(r.bind(r,66237))).default,PointCloudLayer:async()=>(await Promise.all([r.e(1773),r.e(4133),r.e(4148)]).then(r.bind(r,10608))).default,RouteLayer:async()=>(await Promise.all([r.e(6968),r.e(4547),r.e(9454),r.e(1773),r.e(8244),r.e(1423),r.e(4286)]).then(r.bind(r,40153))).default,SceneLayer:async()=>(await Promise.all([r.e(6968),r.e(4547),r.e(9454),r.e(1773),r.e(8244),r.e(1423),r.e(1819),r.e(1491),r.e(8326),r.e(3121),r.e(4133),r.e(8238),r.e(1380)]).then(r.bind(r,10586))).default,StreamLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(8244),r.e(1423),r.e(1819),r.e(1408)]).then(r.bind(r,88387))).default,TileLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(8244),r.e(1423),r.e(1491),r.e(1938),r.e(3128),r.e(8636)]).then(r.bind(r,98636))).default,UnknownLayer:async()=>(await r.e(4166).then(r.bind(r,44166))).default,UnsupportedLayer:async()=>(await r.e(9296).then(r.bind(r,39296))).default,VectorTileLayer:async()=>(await Promise.all([r.e(6968),r.e(1938),r.e(4325),r.e(1785),r.e(4109)]).then(r.bind(r,24109))).default,VoxelLayer:async()=>(await Promise.all([r.e(4133),r.e(7304)]).then(r.bind(r,91398))).default,WebTileLayer:async()=>(await Promise.all([r.e(6968),r.e(6199)]).then(r.bind(r,16199))).default,WFSLayer:async()=>(await Promise.all([r.e(6968),r.e(4547),r.e(9454),r.e(1773),r.e(8244),r.e(1423),r.e(1819),r.e(3974)]).then(r.bind(r,12653))).default,WMSLayer:async()=>(await Promise.all([r.e(6968),r.e(9454),r.e(1773),r.e(5906)]).then(r.bind(r,25906))).default,WMTSLayer:async()=>(await Promise.all([r.e(6968),r.e(6199),r.e(5853)]).then(r.bind(r,55853))).default}},33516:(e,a,r)=>{r.d(a,{Y:()=>l,h:()=>i});var t=r(17452),n=r(65587);function i(e){return{origin:"portal-item",url:(0,t.mN)(e.itemUrl),portal:e.portal||n.Z.getDefault(),portalItem:e,readResourcePaths:[]}}function l(e){return{origin:"portal-item",messages:[],writtenProperties:[],url:e.itemUrl?(0,t.mN)(e.itemUrl):null,portal:e.portal||n.Z.getDefault(),portalItem:e}}},18062:(e,a,r)=>{r.r(a),r.d(a,{getFirstLayerOrTableId:()=>p,getNumLayersAndTables:()=>f,load:()=>y,preprocessFSItemData:()=>d});var t=r(20102),n=r(65587),i=r(33516),l=r(40555),s=r(96187);async function y(e,a){const r=e.instance.portalItem;if(r&&r.id)return await r.load(a),function(e){const a=e.instance.portalItem;if(!e.supportedTypes.includes(a.type))throw new t.Z("portal:invalid-layer-item-type","Invalid layer item type '${type}', expected '${expectedType}'",{type:a.type,expectedType:e.supportedTypes.join(", ")})}(e),async function(e,a){const r=e.instance,t=r.portalItem,{url:n,title:s}=t,y=(0,i.h)(t);if("group"===r.type)return r.read({title:s},y),o(r,e);n&&r.read({url:n},y);const c=await L(e,a);return c&&r.read(c,y),r.resourceReferences={portalItem:t,paths:y.readResourcePaths},r.read({title:s},y),(0,l.y)(r,y)}(e,a)}function o(e,a){let r;const n=e.portalItem.type,i=a.layerModuleTypeMap;switch(n){case"Feature Service":case"Feature Collection":r=i.FeatureLayer;break;case"Stream Service":r=i.StreamLayer;break;case"Scene Service":r=i.SceneLayer;break;default:throw new t.Z("portal:unsupported-item-type-as-group",`The item type '${n}' is not supported as a 'IGroupLayer'`)}let l;return r().then((e=>(l=e,L(a)))).then((async a=>"Feature Service"===n?(a=await d(a,e.portalItem.url),c(e,l,a)):f(a)>0?c(e,l,a):function(e,a){return e.portalItem.url?(0,s.b)(e.portalItem.url).then((r=>{function t(e){return{id:e.id,name:e.name}}r&&c(e,a,{layers:r.layers?.map(t),tables:r.tables?.map(t)})})):Promise.resolve()}(e,l)))}function c(e,a,r){let t=r.layers||[];const n=r.tables||[];"Feature Collection"===e.portalItem.type&&(t.forEach((e=>{"Table"===e?.layerDefinition?.type&&n.push(e)})),t=t.filter((e=>"Table"!==e?.layerDefinition?.type))),t.reverse().forEach((t=>{const n=u(e,a,r,t);e.add(n)})),n.reverse().forEach((t=>{const n=u(e,a,r,t);e.tables.add(n)}))}function u(e,a,r,t){const i=new a({portalItem:e.portalItem.clone(),layerId:t.id,sublayerTitleMode:"service-name"});if("Feature Collection"===e.portalItem.type){const a={origin:"portal-item",portal:e.portalItem.portal||n.Z.getDefault()};i.read(t,a);const l=r.showLegend;null!=l&&i.read({showLegend:l},a)}return i}function L(e,a){if(!1===e.supportsData)return Promise.resolve(void 0);const r=e.instance;return r.portalItem.fetchData("json",a).catch((()=>null)).then((async e=>{if(function(e){return"stream"!==e.type&&"layerId"in e}(r)){let a,t=!0;return e&&f(e)>0&&(null==r.layerId&&(r.layerId=p(e)),a=function(e,a){const r=e.layers;if(r)for(let e=0;e<r.length;e++)if(r[e].id===a)return r[e];const t=e.tables;if(t)for(let e=0;e<t.length;e++)if(t[e].id===a)return t[e];return null}(e,r.layerId),a&&(1===f(e)&&(t=!1),null!=e.showLegend&&(a.showLegend=e.showLegend))),t&&"service-name"!==r.sublayerTitleMode&&(r.sublayerTitleMode="item-title-and-service-name"),a}return e}))}async function d(e,a){if(null==e?.layers||null==e?.tables){const r=await(0,s.b)(a);(e=e||{}).layers=e.layers||r?.layers,e.tables=e.tables||r?.tables}return e}function p(e){const a=e.layers;if(a&&a.length)return a[0].id;const r=e.tables;return r&&r.length?r[0].id:null}function f(e){return(e?.layers?.length??0)+(e?.tables?.length??0)}},14661:(e,a,r)=>{r.d(a,{$o:()=>o,Kz:()=>c,_$:()=>s,ck:()=>y,qj:()=>l});var t=r(44547),n=r(82971),i=r(40488);function l(e,a){if(!s(e,a)){const r=e.typeKeywords;r?r.push(a):e.typeKeywords=[a]}}function s(e,a){return!!e.typeKeywords?.includes(a)}function y(e,a){const r=e.typeKeywords;if(r){const e=r.indexOf(a);e>-1&&r.splice(e,1)}}async function o(e){const a=e.clone().normalize();let r;if(a.length>1)for(const e of a)r?e.width>r.width&&(r=e):r=e;else r=a[0];return async function(e){const a=e.spatialReference;if(a.isWGS84)return e.clone();if(a.isWebMercator)return(0,i.Sx)(e);const r=n.Z.WGS84;return await(0,t.iQ)(a,r),(0,t.iV)(e,r)}(r)}const c={DEVELOPER_BASEMAP:"DeveloperBasemap",JSAPI:"ArcGIS API for JavaScript",METADATA:"Metadata",MULTI_LAYER:"Multilayer",SINGLE_LAYER:"Singlelayer",TABLE:"Table"}},28008:(e,a,r)=>{r.r(a),r.d(a,{fromItem:()=>o,selectLayerClassPath:()=>c});var t=r(20102),n=r(87344),i=r(15235),l=r(18062),s=r(14661),y=r(96187);function o(e){return!e.portalItem||e.portalItem instanceof i.default||(e={...e,portalItem:new i.default(e.portalItem)}),function(e){return e.load().then(c).then(u)}(e.portalItem).then((a=>{const r={portalItem:e.portalItem,...a.properties};return new(0,a.constructor)(r)}))}function c(e){switch(e.type){case"Map Service":return(a=e,(0,y.b)(a.url).then((e=>e.tileInfo))).then((e=>e?{className:"TileLayer"}:{className:"MapImageLayer"}));case"Feature Service":return function(e){return L(e).then((e=>{if("object"==typeof e){const a={};return null!=e.id&&(a.layerId=e.id),{className:"FeatureLayer",properties:a}}return{className:"GroupLayer"}}))}(e);case"Feature Collection":return async function(e){await e.load();const a=(0,s._$)(e,"Map Notes"),r=(0,s._$)(e,"Markup");if(a||r)return{className:"MapNotesLayer"};if((0,s._$)(e,"Route Layer"))return{className:"RouteLayer"};const t=await e.fetchData();return 1===(0,l.getNumLayersAndTables)(t)?{className:"FeatureLayer"}:{className:"GroupLayer"}}(e);case"Scene Service":return function(e){return L(e).then((a=>{if("object"==typeof a){const r={};let t;if(null!=a.id?(r.layerId=a.id,t=`${e.url}/layers/${a.id}`):t=e.url,Array.isArray(e.typeKeywords)&&e.typeKeywords.length>0){const a={IntegratedMesh:"IntegratedMeshLayer","3DObject":"SceneLayer",Point:"SceneLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};for(const r of Object.keys(a))if(e.typeKeywords.includes(r))return{className:a[r]}}return(0,y.b)(t).then((e=>{let a="SceneLayer";const t={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};return e&&e.layerType&&t[e.layerType]&&(a=t[e.layerType]),{className:a,properties:r}}))}return!1===a?(0,y.b)(e.url).then((e=>"Voxel"===e?.layerType?{className:"VoxelLayer"}:{className:"GroupLayer"})):{className:"GroupLayer"}}))}(e);case"Image Service":return async function(e){await e.load();const a=e.typeKeywords?.map((e=>e.toLowerCase()))??[];if(a.includes("elevation 3d layer"))return{className:"ElevationLayer"};if(a.includes("tiled imagery"))return{className:"ImageryTileLayer"};const r=(await e.fetchData())?.layerType;if("ArcGISTiledImageServiceLayer"===r)return{className:"ImageryTileLayer"};if("ArcGISImageServiceLayer"===r)return{className:"ImageryLayer"};const t=(await(0,y.b)(e.url)).cacheType?.toLowerCase();return"map"===t?{className:"ImageryTileLayer"}:{className:"ImageryLayer"}}(e);case"Stream Service":case"Feed":return{className:"StreamLayer"};case"Vector Tile Service":return{className:"VectorTileLayer"};case"KML":return{className:"KMLLayer"};case"WFS":return{className:"WFSLayer"};case"WMTS":return{className:"WMTSLayer"};case"WMS":return{className:"WMSLayer"};default:return Promise.reject(new t.Z("portal:unknown-item-type","Unknown item type '${type}'",{type:e.type}))}var a}function u(e){return(0,n.T[e.className])().then((a=>({constructor:a,properties:e.properties})))}function L(e){return!e.url||e.url.match(/\/\d+$/)?Promise.resolve({}):e.load().then((()=>e.fetchData())).then((async a=>"Feature Service"===e.type?d(a=await(0,l.preprocessFSItemData)(a,e.url)):(0,l.getNumLayersAndTables)(a)>0?d(a):(0,y.b)(e.url).then(d)))}function d(e){return 1===(0,l.getNumLayersAndTables)(e)&&{id:(0,l.getFirstLayerOrTableId)(e)}}},40555:(e,a,r)=>{r.d(a,{y:()=>l});var t=r(66643),n=r(95330),i=r(20941);async function l(e,a,r){const l=e&&e.getAtOrigin&&e.getAtOrigin("renderer",a.origin);if(l&&"unique-value"===l.type&&l.styleOrigin){const s=await(0,t.q6)(l.populateFromStyle());if((0,n.k_)(r),!1===s.ok){const r=s.error;a&&a.messages&&a.messages.push(new i.Z("renderer:style-reference",`Failed to create unique value renderer from style reference: ${r.message}`,{error:r,context:a})),e.clear("renderer",a.origin)}}}},96187:(e,a,r)=>{r.d(a,{b:()=>n});var t=r(3172);async function n(e){const{data:a}=await(0,t.default)(e,{responseType:"json",query:{f:"json"}});return a}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4314],{22303:(e,t,r)=>{r.d(t,{Z:()=>h});var n,i,s=r(35270),o=r(22021),a=r(70586),l=r(75215);function u(e){return(0,o.uZ)((0,l.vU)(e),0,255)}function c(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}class m{constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}static blendColors(e,t,r,n=new m){return n.r=Math.round(e.r+(t.r-e.r)*r),n.g=Math.round(e.g+(t.g-e.g)*r),n.b=Math.round(e.b+(t.b-e.b)*r),n.a=e.a+(t.a-e.a)*r,n._sanitize()}static fromRgb(e,t){const r=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);if(r){const e=r[2].split(/\s*,\s*/),n=r[1];if("rgb"===n&&3===e.length||"rgba"===n&&4===e.length){const r=e[0];if("%"===r.charAt(r.length-1)){const r=e.map((e=>2.56*parseFloat(e)));return 4===e.length&&(r[3]=parseFloat(e[3])),m.fromArray(r,t)}return m.fromArray(e.map((e=>parseFloat(e))),t)}if("hsl"===n&&3===e.length||"hsla"===n&&4===e.length)return m.fromArray((0,s.B7)(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3])),t)}return null}static fromHex(e,t=new m){if(4!==e.length&&7!==e.length||"#"!==e[0])return null;const r=4===e.length?4:8,n=(1<<r)-1;let i=Number("0x"+e.substr(1));return isNaN(i)?null:(["b","g","r"].forEach((e=>{const s=i&n;i>>=r,t[e]=4===r?17*s:s})),t.a=1,t)}static fromArray(e,t=new m){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){const r=(0,s.St)(e)?(0,s.h$)(e):null;return r&&m.fromArray(r,t)||m.fromRgb(e,t)||m.fromHex(e,t)}static fromJSON(e){return e&&new m([e[0],e[1],e[2],e[3]/255])}static toUnitRGB(e){return(0,a.pC)(e)?[e.r/255,e.g/255,e.b/255]:null}static toUnitRGBA(e){return(0,a.pC)(e)?[e.r/255,e.g/255,e.b/255,null!=e.a?e.a:1]:null}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(e){return"string"==typeof e?m.fromString(e,this):Array.isArray(e)?m.fromArray(e,this):(this._set(e.r??0,e.g??0,e.b??0,e.a??1),e instanceof m||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(){const e=this.r.toString(16),t=this.g.toString(16),r=this.b.toString(16);return`#${e.length<2?"0"+e:e}${t.length<2?"0"+t:t}${r.length<2?"0"+r:r}`}toCss(e=!1){const t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=m.AlphaMode.ALWAYS){const t=u(this.r),r=u(this.g),n=u(this.b);return e===m.AlphaMode.ALWAYS||1!==this.a?[t,r,n,u(255*this.a)]:[t,r,n]}clone(){return new m(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return(0,a.pC)(e)&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=Math.round(c(this.r,0,255)),this.g=Math.round(c(this.g,0,255)),this.b=Math.round(c(this.b,0,255)),this.a=c(this.a,0,1),this}_set(e,t,r,n){this.r=e,this.g=t,this.b=r,this.a=n}}m.prototype.declaredClass="esri.Color",n=m||(m={}),(i=n.AlphaMode||(n.AlphaMode={}))[i.ALWAYS=0]="ALWAYS",i[i.UNLESS_OPAQUE=1]="UNLESS_OPAQUE";const h=m},35270:(e,t,r)=>{r.d(t,{B7:()=>l,St:()=>i,VL:()=>o,h$:()=>s,rW:()=>u});const n={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function i(e){return n[e]||n[e.toLowerCase()]}function s(e){return n[e]??n[e.toLowerCase()]}function o(e){return[...s(e)]}function a(e,t,r){r<0&&++r,r>1&&--r;const n=6*r;return n<1?e+(t-e)*n:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function l(e,t,r,n=1){const i=(e%360+360)%360/360,s=r<=.5?r*(t+1):r+t-r*t,o=2*r-s;return[Math.round(255*a(o,s,i+1/3)),Math.round(255*a(o,s,i)),Math.round(255*a(o,s,i-1/3)),n]}function u(e){const t=e.length>5,r=t?8:4,n=(1<<r)-1,i=t?1:17,s=t?9===e.length:5===e.length;let o=Number("0x"+e.substr(1));if(isNaN(o))return null;const a=[0,0,0,1];let l;return s&&(l=o&n,o>>=r,a[3]=i*l/255),l=o&n,o>>=r,a[2]=i*l,l=o&n,o>>=r,a[1]=i*l,l=o&n,o>>=r,a[0]=i*l,a}},36030:(e,t,r)=>{r.d(t,{J:()=>s});var n=r(35454),i=r(5600);function s(e,t={}){const r=e instanceof n.X?e:new n.X(e,t),s={type:t?.ignoreUnknown??1?r.apiValues:String,json:{type:r.jsonValues,read:!t?.readOnly&&{reader:r.read},write:{writer:r.write}}};return void 0!==t?.readOnly&&(s.readOnly=!!t.readOnly),void 0!==t?.default&&(s.json.default=t.default),void 0!==t?.name&&(s.json.name=t.name),(0,i.Cb)(s)}},10661:(e,t,r)=>{r.d(t,{s:()=>i});var n=r(39020);class i{constructor(){this._observers=[]}observe(e){return this._observers.includes(e)||this._observers.push(e),new n.X(this._observers,e)}notify(){const e=this._observers.slice();for(let t=0;t<e.length;++t){const r=e[t];r.onInvalidated(),r.onCommitted()}}}},67900:(e,t,r)=>{r.d(t,{$C:()=>C,En:()=>v,Jo:()=>R,_R:()=>B,c9:()=>O,cM:()=>N,gV:()=>_,hd:()=>u,qE:()=>G,ty:()=>U}),r(80442);var n=r(35454),i=r(70586),s=r(24678),o=r(68441),a=r(8744),l=r(58116);const u=39.37,c=o.sv.radius*Math.PI/200,m=/UNIT\[([^\]]+)\]\]$/i,h=l.Z,f=/UNIT\[([^\]]+)\]/i,d=new Set([4261,4305,4807,4810,4811,4812,4816,4819,4821,4901,4902,37225,104139,104140]),p=(0,n.w)()({meter:"meters",foot:"feet",foot_us:"us-feet",foot_clarke:"clarke-feet",yard_clarke:"clarke-yards",link_clarke:"clarke-links",yard_sears:"sears-yards",foot_sears:"sears-feet",chain_sears:"sears-chains",chain_benoit_1895_b:"benoit-1895-b-chains",yard_indian:"indian-yards",yard_indian_1937:"indian-1937-yards",foot_gold_coast:"gold-coast-feet",chain_sears_1922_truncated:"sears-1922-truncated-chains","50_kilometers":"50-kilometers","150_kilometers":"150-kilometers"}),y=e=>e*e,g=e=>e*e*e,b={length:{baseUnit:"meters",units:{millimeters:{inBaseUnits:.001},centimeters:{inBaseUnits:.01},decimeters:{inBaseUnits:.1},meters:{inBaseUnits:1},kilometers:{inBaseUnits:1e3},inches:{inBaseUnits:.0254},feet:{inBaseUnits:.3048},yards:{inBaseUnits:.9144},miles:{inBaseUnits:1609.344},"nautical-miles":{inBaseUnits:1852},"us-feet":{inBaseUnits:1200/3937}}},area:{baseUnit:"square-meters",units:{"square-millimeters":{inBaseUnits:y(.001)},"square-centimeters":{inBaseUnits:y(.01)},"square-decimeters":{inBaseUnits:y(.1)},"square-meters":{inBaseUnits:1},"square-kilometers":{inBaseUnits:y(1e3)},"square-inches":{inBaseUnits:y(.0254)},"square-feet":{inBaseUnits:y(.3048)},"square-yards":{inBaseUnits:y(.9144)},"square-miles":{inBaseUnits:y(1609.344)},"square-us-feet":{inBaseUnits:y(1200/3937)},acres:{inBaseUnits:.0015625*y(1609.344)},ares:{inBaseUnits:100},hectares:{inBaseUnits:1e4}}},volume:{baseUnit:"liters",units:{liters:{inBaseUnits:1},"cubic-millimeters":{inBaseUnits:1e3*g(.001)},"cubic-centimeters":{inBaseUnits:1e3*g(.01)},"cubic-decimeters":{inBaseUnits:1e3*g(.1)},"cubic-meters":{inBaseUnits:1e3},"cubic-kilometers":{inBaseUnits:1e3*g(1e3)},"cubic-inches":{inBaseUnits:1e3*g(.0254)},"cubic-feet":{inBaseUnits:1e3*g(.3048)},"cubic-yards":{inBaseUnits:1e3*g(.9144)},"cubic-miles":{inBaseUnits:1e3*g(1609.344)}}},angle:{baseUnit:"radians",units:{radians:{inBaseUnits:1},degrees:{inBaseUnits:Math.PI/180}}}},S=(()=>{const e={};for(const t in b)for(const r in b[t].units)e[r]=t;return e})();function w(e){const t=S[e];if(!t)throw new Error("unknown type");return t}function k(e,t=null){return t=t||w(e),b[t].baseUnit===e}function v(e,t,r){if(t===r)return e;const n=w(t);if(n!==w(r))throw new Error("incompatible units");const i=k(t,n)?e:function(e,t,r){return e*b[r].units[t].inBaseUnits}(e,t,n);return k(r,n)?i:function(e,t,r){return e/b[r].units[t].inBaseUnits}(i,r,n)}function U(e,t,r){return v(e,t,"meters")/(r*Math.PI/180)}function C(e){return p.fromJSON(e.toLowerCase())||null}function B(e){if((0,i.pC)(e)&&!(0,a.N$)(e))return 1;const t=O(e);return t>1e5?1:t}function N(e){return O(e)>=(0,s.Iu)(e).metersPerDegree?"meters":G(e)}function O(e,t=o.sv.metersPerDegree){return(0,i.Pt)(function(e,t=!1){const r=(0,i.pC)(e)?e.wkid:null,n=(0,i.pC)(e)?e.wkt:null;let s=null;if(r){if((0,a.o$)(r))return o.yr.metersPerDegree;if((0,a.ME)(r))return o.Z1.metersPerDegree;s=h.values[h[r]],!s&&t&&d.has(r)&&(s=c)}else n&&(P(n)?s=x(m.exec(n),s):M(n)&&(s=x(f.exec(n),s)));return s}(e,!0),t)}function x(e,t){return e&&e[1]?Z(e[1]):t}function Z(e){return parseFloat(e.split(",")[1])}function G(e){const t=(0,i.pC)(e)?e.wkid:null,r=(0,i.pC)(e)?e.wkt:null;let n=null;if(t)n=h.units[h[t]];else if(r){const e=P(r)?m:M(r)?f:null;if(e){const t=e.exec(r);t&&t[1]&&(n=function(e){const t=/[\\"\\']{1}([^\\"\\']+)/.exec(e);let r=t&&t[1];if(!r||!h.units.includes(r)){const t=Z(e);r=null;const n=h.values;for(let e=0;e<n.length;++e)if(Math.abs(t-n[e])<1e-7){r=h.units[e];break}}return r}(t[1]))}}return(0,i.pC)(n)?C(n):null}function M(e){return/^GEOCCS/i.test(e)}function P(e){return/^PROJCS/i.test(e)}new Map([["meters","square-meters"],["feet","square-feet"],["us-feet","square-us-feet"]]);const A={esriAcres:"acres",esriAres:"ares",esriHectares:"hectares",esriSquareCentimeters:"square-centimeters",esriSquareDecimeters:"square-decimeters",esriSquareFeet:"square-feet",esriSquareInches:"square-inches",esriSquareKilometers:"square-kilometers",esriSquareMeters:"square-meters",esriSquareMiles:"square-miles",esriSquareMillimeters:"square-millimeters",esriSquareUsFeet:"square-us-feet",esriSquareYards:"square-yards"},q={esriCentimeters:"centimeters",esriDecimeters:"decimeters",esriFeet:"feet",esriInches:"inches",esriKilometers:"kilometers",esriMeters:"meters",esriMiles:"miles",esriMillimeters:"millimeters",esriNauticalMiles:"nautical-miles",esriYards:"yards"},_=(0,n.w)()(A),R=(0,n.w)()(q);(0,n.w)()({...A,...q})},66577:(e,t,r)=>{r.d(t,{qM:()=>c});var n=r(75215),i=r(6570),s=r(9361),o=r(65091),a=r(94139),l=r(38913),u=r(58901);r(82971),r(86973),r(33955);const c={base:s.Z,key:"type",typeMap:{extent:i.Z,multipoint:o.Z,point:a.Z,polyline:u.Z,polygon:l.Z}};(0,n.N7)(c)},24678:(e,t,r)=>{r.d(t,{GG:()=>l,HQ:()=>u,Iu:()=>f,VY:()=>c,e8:()=>d,rS:()=>h,wY:()=>m});var n=r(70586),i=r(82971),s=r(68441),o=r(8744);function a(e){return new i.Z({wkt:`GEOCCS["Spherical geocentric",\n DATUM["Not specified",\n SPHEROID["Sphere",${e.radius},0]],\n PRIMEM["Greenwich",0.0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",EAST],\n AXIS["Geocentric Z",NORTH]\n ]`})}const l=a(s.sv),u=a(s.yr),c=a(s.Z1),m=new i.Z({wkt:`GEOCCS["WGS 84",\n DATUM["WGS_1984",\n SPHEROID["WGS 84",${s.sv.radius},298.257223563,\n AUTHORITY["EPSG","7030"]],\n AUTHORITY["EPSG","6326"]],\n PRIMEM["Greenwich",0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0,\n AUTHORITY["EPSG","9001"]],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",OTHER],\n AXIS["Geocentric Z",NORTH],\n AUTHORITY["EPSG","4978"]\n]`});function h(e){return e&&((0,o.BZ)(e)||e===u)?u:e&&((0,o.V2)(e)||e===c)?c:l}function f(e){return(0,n.pC)(e)&&((0,o.BZ)(e)||e===u)?s.yr:(0,n.pC)(e)&&((0,o.V2)(e)||e===c)?s.Z1:s.sv}function d(e){return(0,o.o$)(e)?s.yr:(0,o.ME)(e)?s.Z1:s.sv}},24470:(e,t,r)=>{r.d(t,{HH:()=>l,SO:()=>u,Ue:()=>s,al:()=>o,cS:()=>f,jE:()=>c,kK:()=>m,oJ:()=>a,r3:()=>h}),r(80442),r(22021);var n=r(70586),i=r(6570);function s(e=p){return[e[0],e[1],e[2],e[3]]}function o(e,t,r,n,i=s()){return i[0]=e,i[1]=t,i[2]=r,i[3]=n,i}function a(e,t=s()){return t[0]=e.xmin,t[1]=e.ymin,t[2]=e.xmax,t[3]=e.ymax,t}function l(e,t){return new i.Z({xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3],spatialReference:t})}function u(e){return function(e){return(0,n.Wi)(e)||e[0]>=e[2]?0:e[2]-e[0]}(e)*function(e){return e[1]>=e[3]?0:e[3]-e[1]}(e)}function c(e,t,r){return t>=e[0]&&r>=e[1]&&t<=e[2]&&r<=e[3]}function m(e,t){return Math.max(t[0],e[0])<=Math.min(t[2],e[2])&&Math.max(t[1],e[1])<=Math.min(t[3],e[3])}function h(e,t){return t[0]>=e[0]&&t[2]<=e[2]&&t[1]>=e[1]&&t[3]<=e[3]}function f(e){return e?function(e,t){return e!==t&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3]),e}(e,d):s(d)}const d=[1/0,1/0,-1/0,-1/0],p=[0,0,0,0]},33955:(e,t,r)=>{r.d(t,{Ji:()=>y,YX:()=>c,aW:()=>m,im:()=>p,l9:()=>f,oU:()=>d,q9:()=>b,wp:()=>h});var n=r(70586),i=r(6570),s=r(9361),o=r(65091),a=r(94139),l=r(38913),u=r(58901);function c(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function m(e){return void 0!==e.points}function h(e){return void 0!==e.x&&void 0!==e.y}function f(e){return void 0!==e.paths}function d(e){return void 0!==e.rings}function p(e){return(0,n.Wi)(e)?null:e instanceof s.Z?e:h(e)?a.Z.fromJSON(e):f(e)?u.Z.fromJSON(e):d(e)?l.Z.fromJSON(e):m(e)?o.Z.fromJSON(e):c(e)?i.Z.fromJSON(e):null}function y(e){return e?h(e)?"esriGeometryPoint":f(e)?"esriGeometryPolyline":d(e)?"esriGeometryPolygon":c(e)?"esriGeometryEnvelope":m(e)?"esriGeometryMultipoint":null:null}const g={esriGeometryPoint:a.Z,esriGeometryPolyline:u.Z,esriGeometryPolygon:l.Z,esriGeometryEnvelope:i.Z,esriGeometryMultipoint:o.Z};function b(e){return e&&g[e]||null}},86973:(e,t,r)=>{r.d(t,{Mk:()=>i,P$:()=>s});var n=r(35454);const i=(0,n.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),s=(0,n.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})},69285:(e,t,r)=>{r.d(t,{k:()=>o});var n=r(70586),i=r(67900),s=r(8744);function o(e,t,r){if((0,n.Wi)(t)||(0,n.Wi)(r)||r.vcsWkid||(0,s.fS)(t,r))return null;const o=(0,i._R)(t)/(0,i._R)(r);if(1===o)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){e&&null!=e.z&&(e.z*=t)}(e,o);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const r of e.paths)for(const e of r)e.length>2&&(e[2]*=t)}(e,o);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const r of e.rings)for(const e of r)e.length>2&&(e[2]*=t)}(e,o);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const r of e.points)r.length>2&&(r[2]*=t)}(e,o);case"extent":case"esriGeometryExtent":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,o);default:return null}}},61576:(e,t,r)=>{r.r(t),r.d(t,{default:()=>y}),r(66577);var n=r(70586),i=r(18571),s=r(5847),o=r(75993),a=r(55914),l=r(69194),u=r(73506),c=r(15612),m=r(80676),h=r(87521),f=r(72758),d=r(23808),p=r(6570);class y{convertVectorFieldData(e){const t=s.Z.fromJSON(e.pixelBlock),r=(0,m.KC)(t,e.type);return Promise.resolve((0,n.pC)(r)&&r.toJSON())}async decode(e){const t=await(0,o.J)(e.data,e.options);return t&&t.toJSON()}symbolize(e){e.pixelBlock=s.Z.fromJSON(e.pixelBlock),e.extent=e.extent?p.Z.fromJSON(e.extent):null;const t=this.symbolizer.symbolize(e);return Promise.resolve((0,n.pC)(t)&&t.toJSON())}async updateSymbolizer(e){this.symbolizer=f.Z.fromJSON(e.symbolizerJSON),e.histograms&&"rasterStretch"===this.symbolizer?.rendererJSON.type&&(this.symbolizer.rendererJSON.histograms=e.histograms)}async updateRasterFunction(e){this.rasterFunction=(0,l.U)(e.rasterFunctionJSON)}async process(e){const t=this.rasterFunction.process({extent:p.Z.fromJSON(e.extent),primaryPixelBlocks:e.primaryPixelBlocks.map((e=>(0,n.pC)(e)?s.Z.fromJSON(e):null)),primaryRasterIds:e.primaryRasterIds});return(0,n.pC)(t)?t.toJSON():null}stretch(e){const t=this.symbolizer.simpleStretch(s.Z.fromJSON(e.srcPixelBlock),e.stretchParams);return Promise.resolve((0,n.pC)(t)&&t.toJSON())}estimateStatisticsHistograms(e){const t=(0,c.Hv)(s.Z.fromJSON(e.srcPixelBlock));return Promise.resolve(t)}split(e){const t=(0,a.Vl)(s.Z.fromJSON(e.srcPixelBlock),e.tileSize,e.maximumPyramidLevel);return t&&t.forEach(((e,r)=>{t.set(r,e?.toJSON())})),Promise.resolve(t)}async mosaicAndTransform(e){const t=e.srcPixelBlocks.map((e=>e?new s.Z(e):null)),r=(0,a.us)(t,e.srcMosaicSize,{blockWidths:e.blockWidths,alignmentInfo:e.alignmentInfo,clipOffset:e.clipOffset,clipSize:e.clipSize});let i,o=r;return e.coefs&&(o=(0,a.Uk)(r,e.destDimension,e.coefs,e.sampleSpacing,e.interpolation)),e.projectDirections&&e.gcsGrid&&(i=(0,a.Qh)(e.destDimension,e.gcsGrid),o=(0,n.Wg)((0,m.xQ)(o,e.isUV?"vector-uv":"vector-magdir",i))),{pixelBlock:o?.toJSON(),localNorthDirections:i}}async createFlowMesh(e,t){const r={data:new Float32Array(e.flowData.buffer),mask:new Uint8Array(e.flowData.maskBuffer),width:e.flowData.width,height:e.flowData.height},{vertexData:n,indexData:i}=await(0,d.GE)(e.meshType,e.simulationSettings,r,t.signal);return{result:{vertexBuffer:n.buffer,indexBuffer:i.buffer},transferList:[n.buffer,i.buffer]}}async getProjectionOffsetGrid(e){const t=p.Z.fromJSON(e.projectedExtent),r=p.Z.fromJSON(e.srcBufferExtent);let n=null;e.datumTransformationSteps&&(n=new i.Z({steps:e.datumTransformationSteps})),(e.includeGCSGrid||(0,u.Mk)(t.spatialReference,r.spatialReference,n))&&await(0,u.zD)();const s=e.rasterTransform?(0,h.c)(e.rasterTransform):null;return(0,u.Qp)({...e,projectedExtent:t,srcBufferExtent:r,datumTransformation:n,rasterTransform:s})}}},98046:(e,t,r)=>{r.d(t,{Z:()=>f});var n,i=r(43697),s=r(22303),o=r(22974),a=r(5600),l=r(75215),u=r(36030),c=r(52011),m=r(899);let h=n=class extends m.Z{constructor(e){super(e),this.algorithm=null,this.fromColor=null,this.toColor=null,this.type="algorithmic"}clone(){return new n({fromColor:(0,o.d9)(this.fromColor),toColor:(0,o.d9)(this.toColor),algorithm:this.algorithm})}};(0,i._)([(0,u.J)({esriCIELabAlgorithm:"cie-lab",esriHSVAlgorithm:"hsv",esriLabLChAlgorithm:"lab-lch"})],h.prototype,"algorithm",void 0),(0,i._)([(0,a.Cb)({type:s.Z,json:{type:[l.z8],write:!0}})],h.prototype,"fromColor",void 0),(0,i._)([(0,a.Cb)({type:s.Z,json:{type:[l.z8],write:!0}})],h.prototype,"toColor",void 0),(0,i._)([(0,a.Cb)({type:["algorithmic"]})],h.prototype,"type",void 0),h=n=(0,i._)([(0,c.j)("esri.rest.support.AlgorithmicColorRamp")],h);const f=h},899:(e,t,r)=>{r.d(t,{Z:()=>l});var n=r(43697),i=r(96674),s=r(5600),o=(r(67676),r(80442),r(75215),r(52011));let a=class extends i.wq{constructor(e){super(e),this.type=null}};(0,n._)([(0,s.Cb)({readOnly:!0,json:{read:!1,write:!0}})],a.prototype,"type",void 0),a=(0,n._)([(0,o.j)("esri.rest.support.ColorRamp")],a);const l=a},1515:(e,t,r)=>{r.d(t,{Z:()=>m});var n,i=r(43697),s=r(22974),o=r(5600),a=(r(75215),r(52011)),l=r(98046),u=r(899);let c=n=class extends u.Z{constructor(e){super(e),this.colorRamps=null,this.type="multipart"}clone(){return new n({colorRamps:(0,s.d9)(this.colorRamps)})}};(0,i._)([(0,o.Cb)({type:[l.Z],json:{write:!0}})],c.prototype,"colorRamps",void 0),(0,i._)([(0,o.Cb)({type:["multipart"]})],c.prototype,"type",void 0),c=n=(0,i._)([(0,a.j)("esri.rest.support.MultipartColorRamp")],c);const m=c},94593:(e,t,r)=>{r.d(t,{V:()=>o,i:()=>a});var n=r(98046),i=r(899),s=r(1515);const o={key:"type",base:i.Z,typeMap:{algorithmic:n.Z,multipart:s.Z}};function a(e){return e&&e.type?"algorithmic"===e.type?n.Z.fromJSON(e):"multipart"===e.type?s.Z.fromJSON(e):null:null}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4314],{22303:(e,t,r)=>{r.d(t,{Z:()=>h});var n,i,s=r(35270),o=r(22021),a=r(70586),l=r(75215);function u(e){return(0,o.uZ)((0,l.vU)(e),0,255)}function c(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}class m{constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}static blendColors(e,t,r,n=new m){return n.r=Math.round(e.r+(t.r-e.r)*r),n.g=Math.round(e.g+(t.g-e.g)*r),n.b=Math.round(e.b+(t.b-e.b)*r),n.a=e.a+(t.a-e.a)*r,n._sanitize()}static fromRgb(e,t){const r=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);if(r){const e=r[2].split(/\s*,\s*/),n=r[1];if("rgb"===n&&3===e.length||"rgba"===n&&4===e.length){const r=e[0];if("%"===r.charAt(r.length-1)){const r=e.map((e=>2.56*parseFloat(e)));return 4===e.length&&(r[3]=parseFloat(e[3])),m.fromArray(r,t)}return m.fromArray(e.map((e=>parseFloat(e))),t)}if("hsl"===n&&3===e.length||"hsla"===n&&4===e.length)return m.fromArray((0,s.B7)(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3])),t)}return null}static fromHex(e,t=new m){if(4!==e.length&&7!==e.length||"#"!==e[0])return null;const r=4===e.length?4:8,n=(1<<r)-1;let i=Number("0x"+e.substr(1));return isNaN(i)?null:(["b","g","r"].forEach((e=>{const s=i&n;i>>=r,t[e]=4===r?17*s:s})),t.a=1,t)}static fromArray(e,t=new m){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){const r=(0,s.St)(e)?(0,s.h$)(e):null;return r&&m.fromArray(r,t)||m.fromRgb(e,t)||m.fromHex(e,t)}static fromJSON(e){return e&&new m([e[0],e[1],e[2],e[3]/255])}static toUnitRGB(e){return(0,a.pC)(e)?[e.r/255,e.g/255,e.b/255]:null}static toUnitRGBA(e){return(0,a.pC)(e)?[e.r/255,e.g/255,e.b/255,null!=e.a?e.a:1]:null}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(e){return"string"==typeof e?m.fromString(e,this):Array.isArray(e)?m.fromArray(e,this):(this._set(e.r??0,e.g??0,e.b??0,e.a??1),e instanceof m||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(){const e=this.r.toString(16),t=this.g.toString(16),r=this.b.toString(16);return`#${e.length<2?"0"+e:e}${t.length<2?"0"+t:t}${r.length<2?"0"+r:r}`}toCss(e=!1){const t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=m.AlphaMode.ALWAYS){const t=u(this.r),r=u(this.g),n=u(this.b);return e===m.AlphaMode.ALWAYS||1!==this.a?[t,r,n,u(255*this.a)]:[t,r,n]}clone(){return new m(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return(0,a.pC)(e)&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=Math.round(c(this.r,0,255)),this.g=Math.round(c(this.g,0,255)),this.b=Math.round(c(this.b,0,255)),this.a=c(this.a,0,1),this}_set(e,t,r,n){this.r=e,this.g=t,this.b=r,this.a=n}}m.prototype.declaredClass="esri.Color",n=m||(m={}),(i=n.AlphaMode||(n.AlphaMode={}))[i.ALWAYS=0]="ALWAYS",i[i.UNLESS_OPAQUE=1]="UNLESS_OPAQUE";const h=m},35270:(e,t,r)=>{r.d(t,{B7:()=>l,St:()=>i,VL:()=>o,h$:()=>s,rW:()=>u});const n={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function i(e){return n[e]||n[e.toLowerCase()]}function s(e){return n[e]??n[e.toLowerCase()]}function o(e){return[...s(e)]}function a(e,t,r){r<0&&++r,r>1&&--r;const n=6*r;return n<1?e+(t-e)*n:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function l(e,t,r,n=1){const i=(e%360+360)%360/360,s=r<=.5?r*(t+1):r+t-r*t,o=2*r-s;return[Math.round(255*a(o,s,i+1/3)),Math.round(255*a(o,s,i)),Math.round(255*a(o,s,i-1/3)),n]}function u(e){const t=e.length>5,r=t?8:4,n=(1<<r)-1,i=t?1:17,s=t?9===e.length:5===e.length;let o=Number("0x"+e.substr(1));if(isNaN(o))return null;const a=[0,0,0,1];let l;return s&&(l=o&n,o>>=r,a[3]=i*l/255),l=o&n,o>>=r,a[2]=i*l,l=o&n,o>>=r,a[1]=i*l,l=o&n,o>>=r,a[0]=i*l,a}},36030:(e,t,r)=>{r.d(t,{J:()=>s});var n=r(35454),i=r(5600);function s(e,t={}){const r=e instanceof n.X?e:new n.X(e,t),s={type:t?.ignoreUnknown??1?r.apiValues:String,json:{type:r.jsonValues,read:!t?.readOnly&&{reader:r.read},write:{writer:r.write}}};return void 0!==t?.readOnly&&(s.readOnly=!!t.readOnly),void 0!==t?.default&&(s.json.default=t.default),void 0!==t?.name&&(s.json.name=t.name),(0,i.Cb)(s)}},10661:(e,t,r)=>{r.d(t,{s:()=>i});var n=r(39020);class i{constructor(){this._observers=[]}observe(e){return this._observers.includes(e)||this._observers.push(e),new n.X(this._observers,e)}notify(){const e=this._observers.slice();for(let t=0;t<e.length;++t){const r=e[t];r.onInvalidated(),r.onCommitted()}}}},67900:(e,t,r)=>{r.d(t,{$C:()=>C,En:()=>v,Jo:()=>R,_R:()=>B,c9:()=>O,cM:()=>N,gV:()=>_,hd:()=>u,qE:()=>G,ty:()=>U}),r(80442);var n=r(35454),i=r(70586),s=r(24678),o=r(68441),a=r(8744),l=r(58116);const u=39.37,c=o.sv.radius*Math.PI/200,m=/UNIT\[([^\]]+)\]\]$/i,h=l.Z,f=/UNIT\[([^\]]+)\]/i,d=new Set([4261,4305,4807,4810,4811,4812,4816,4819,4821,4901,4902,37225,104139,104140]),p=(0,n.w)()({meter:"meters",foot:"feet",foot_us:"us-feet",foot_clarke:"clarke-feet",yard_clarke:"clarke-yards",link_clarke:"clarke-links",yard_sears:"sears-yards",foot_sears:"sears-feet",chain_sears:"sears-chains",chain_benoit_1895_b:"benoit-1895-b-chains",yard_indian:"indian-yards",yard_indian_1937:"indian-1937-yards",foot_gold_coast:"gold-coast-feet",chain_sears_1922_truncated:"sears-1922-truncated-chains","50_kilometers":"50-kilometers","150_kilometers":"150-kilometers"}),y=e=>e*e,g=e=>e*e*e,b={length:{baseUnit:"meters",units:{millimeters:{inBaseUnits:.001},centimeters:{inBaseUnits:.01},decimeters:{inBaseUnits:.1},meters:{inBaseUnits:1},kilometers:{inBaseUnits:1e3},inches:{inBaseUnits:.0254},feet:{inBaseUnits:.3048},yards:{inBaseUnits:.9144},miles:{inBaseUnits:1609.344},"nautical-miles":{inBaseUnits:1852},"us-feet":{inBaseUnits:1200/3937}}},area:{baseUnit:"square-meters",units:{"square-millimeters":{inBaseUnits:y(.001)},"square-centimeters":{inBaseUnits:y(.01)},"square-decimeters":{inBaseUnits:y(.1)},"square-meters":{inBaseUnits:1},"square-kilometers":{inBaseUnits:y(1e3)},"square-inches":{inBaseUnits:y(.0254)},"square-feet":{inBaseUnits:y(.3048)},"square-yards":{inBaseUnits:y(.9144)},"square-miles":{inBaseUnits:y(1609.344)},"square-us-feet":{inBaseUnits:y(1200/3937)},acres:{inBaseUnits:.0015625*y(1609.344)},ares:{inBaseUnits:100},hectares:{inBaseUnits:1e4}}},volume:{baseUnit:"liters",units:{liters:{inBaseUnits:1},"cubic-millimeters":{inBaseUnits:1e3*g(.001)},"cubic-centimeters":{inBaseUnits:1e3*g(.01)},"cubic-decimeters":{inBaseUnits:1e3*g(.1)},"cubic-meters":{inBaseUnits:1e3},"cubic-kilometers":{inBaseUnits:1e3*g(1e3)},"cubic-inches":{inBaseUnits:1e3*g(.0254)},"cubic-feet":{inBaseUnits:1e3*g(.3048)},"cubic-yards":{inBaseUnits:1e3*g(.9144)},"cubic-miles":{inBaseUnits:1e3*g(1609.344)}}},angle:{baseUnit:"radians",units:{radians:{inBaseUnits:1},degrees:{inBaseUnits:Math.PI/180}}}},S=(()=>{const e={};for(const t in b)for(const r in b[t].units)e[r]=t;return e})();function w(e){const t=S[e];if(!t)throw new Error("unknown type");return t}function k(e,t=null){return t=t||w(e),b[t].baseUnit===e}function v(e,t,r){if(t===r)return e;const n=w(t);if(n!==w(r))throw new Error("incompatible units");const i=k(t,n)?e:function(e,t,r){return e*b[r].units[t].inBaseUnits}(e,t,n);return k(r,n)?i:function(e,t,r){return e/b[r].units[t].inBaseUnits}(i,r,n)}function U(e,t,r){return v(e,t,"meters")/(r*Math.PI/180)}function C(e){return p.fromJSON(e.toLowerCase())||null}function B(e){if((0,i.pC)(e)&&!(0,a.N$)(e))return 1;const t=O(e);return t>1e5?1:t}function N(e){return O(e)>=(0,s.Iu)(e).metersPerDegree?"meters":G(e)}function O(e,t=o.sv.metersPerDegree){return(0,i.Pt)(function(e,t=!1){const r=(0,i.pC)(e)?e.wkid:null,n=(0,i.pC)(e)?e.wkt:null;let s=null;if(r){if((0,a.o$)(r))return o.yr.metersPerDegree;if((0,a.ME)(r))return o.Z1.metersPerDegree;s=h.values[h[r]],!s&&t&&d.has(r)&&(s=c)}else n&&(P(n)?s=x(m.exec(n),s):M(n)&&(s=x(f.exec(n),s)));return s}(e,!0),t)}function x(e,t){return e&&e[1]?Z(e[1]):t}function Z(e){return parseFloat(e.split(",")[1])}function G(e){const t=(0,i.pC)(e)?e.wkid:null,r=(0,i.pC)(e)?e.wkt:null;let n=null;if(t)n=h.units[h[t]];else if(r){const e=P(r)?m:M(r)?f:null;if(e){const t=e.exec(r);t&&t[1]&&(n=function(e){const t=/[\\"\\']{1}([^\\"\\']+)/.exec(e);let r=t&&t[1];if(!r||!h.units.includes(r)){const t=Z(e);r=null;const n=h.values;for(let e=0;e<n.length;++e)if(Math.abs(t-n[e])<1e-7){r=h.units[e];break}}return r}(t[1]))}}return(0,i.pC)(n)?C(n):null}function M(e){return/^GEOCCS/i.test(e)}function P(e){return/^PROJCS/i.test(e)}new Map([["meters","square-meters"],["feet","square-feet"],["us-feet","square-us-feet"]]);const A={esriAcres:"acres",esriAres:"ares",esriHectares:"hectares",esriSquareCentimeters:"square-centimeters",esriSquareDecimeters:"square-decimeters",esriSquareFeet:"square-feet",esriSquareInches:"square-inches",esriSquareKilometers:"square-kilometers",esriSquareMeters:"square-meters",esriSquareMiles:"square-miles",esriSquareMillimeters:"square-millimeters",esriSquareUsFeet:"square-us-feet",esriSquareYards:"square-yards"},q={esriCentimeters:"centimeters",esriDecimeters:"decimeters",esriFeet:"feet",esriInches:"inches",esriKilometers:"kilometers",esriMeters:"meters",esriMiles:"miles",esriMillimeters:"millimeters",esriNauticalMiles:"nautical-miles",esriYards:"yards"},_=(0,n.w)()(A),R=(0,n.w)()(q);(0,n.w)()({...A,...q})},66577:(e,t,r)=>{r.d(t,{qM:()=>c});var n=r(75215),i=r(6570),s=r(9361),o=r(65091),a=r(94139),l=r(38913),u=r(58901);r(82971),r(86973),r(33955);const c={base:s.Z,key:"type",typeMap:{extent:i.Z,multipoint:o.Z,point:a.Z,polyline:u.Z,polygon:l.Z}};(0,n.N7)(c)},24678:(e,t,r)=>{r.d(t,{GG:()=>l,HQ:()=>u,Iu:()=>f,VY:()=>c,e8:()=>d,rS:()=>h,wY:()=>m});var n=r(70586),i=r(82971),s=r(68441),o=r(8744);function a(e){return new i.Z({wkt:`GEOCCS["Spherical geocentric",\n DATUM["Not specified",\n SPHEROID["Sphere",${e.radius},0]],\n PRIMEM["Greenwich",0.0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",EAST],\n AXIS["Geocentric Z",NORTH]\n ]`})}const l=a(s.sv),u=a(s.yr),c=a(s.Z1),m=new i.Z({wkt:`GEOCCS["WGS 84",\n DATUM["WGS_1984",\n SPHEROID["WGS 84",${s.sv.radius},298.257223563,\n AUTHORITY["EPSG","7030"]],\n AUTHORITY["EPSG","6326"]],\n PRIMEM["Greenwich",0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0,\n AUTHORITY["EPSG","9001"]],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",OTHER],\n AXIS["Geocentric Z",NORTH],\n AUTHORITY["EPSG","4978"]\n]`});function h(e){return e&&((0,o.BZ)(e)||e===u)?u:e&&((0,o.V2)(e)||e===c)?c:l}function f(e){return(0,n.pC)(e)&&((0,o.BZ)(e)||e===u)?s.yr:(0,n.pC)(e)&&((0,o.V2)(e)||e===c)?s.Z1:s.sv}function d(e){return(0,o.o$)(e)?s.yr:(0,o.ME)(e)?s.Z1:s.sv}},24470:(e,t,r)=>{r.d(t,{HH:()=>l,SO:()=>u,Ue:()=>s,al:()=>o,cS:()=>f,jE:()=>c,kK:()=>m,oJ:()=>a,r3:()=>h}),r(80442),r(22021);var n=r(70586),i=r(6570);function s(e=p){return[e[0],e[1],e[2],e[3]]}function o(e,t,r,n,i=s()){return i[0]=e,i[1]=t,i[2]=r,i[3]=n,i}function a(e,t=s()){return t[0]=e.xmin,t[1]=e.ymin,t[2]=e.xmax,t[3]=e.ymax,t}function l(e,t){return new i.Z({xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3],spatialReference:t})}function u(e){return function(e){return(0,n.Wi)(e)||e[0]>=e[2]?0:e[2]-e[0]}(e)*function(e){return e[1]>=e[3]?0:e[3]-e[1]}(e)}function c(e,t,r){return t>=e[0]&&r>=e[1]&&t<=e[2]&&r<=e[3]}function m(e,t){return Math.max(t[0],e[0])<=Math.min(t[2],e[2])&&Math.max(t[1],e[1])<=Math.min(t[3],e[3])}function h(e,t){return t[0]>=e[0]&&t[2]<=e[2]&&t[1]>=e[1]&&t[3]<=e[3]}function f(e){return e?function(e,t){return e!==t&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3]),e}(e,d):s(d)}const d=[1/0,1/0,-1/0,-1/0],p=[0,0,0,0]},33955:(e,t,r)=>{r.d(t,{Ji:()=>y,YX:()=>c,aW:()=>m,im:()=>p,l9:()=>f,oU:()=>d,q9:()=>b,wp:()=>h});var n=r(70586),i=r(6570),s=r(9361),o=r(65091),a=r(94139),l=r(38913),u=r(58901);function c(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function m(e){return void 0!==e.points}function h(e){return void 0!==e.x&&void 0!==e.y}function f(e){return void 0!==e.paths}function d(e){return void 0!==e.rings}function p(e){return(0,n.Wi)(e)?null:e instanceof s.Z?e:h(e)?a.Z.fromJSON(e):f(e)?u.Z.fromJSON(e):d(e)?l.Z.fromJSON(e):m(e)?o.Z.fromJSON(e):c(e)?i.Z.fromJSON(e):null}function y(e){return e?h(e)?"esriGeometryPoint":f(e)?"esriGeometryPolyline":d(e)?"esriGeometryPolygon":c(e)?"esriGeometryEnvelope":m(e)?"esriGeometryMultipoint":null:null}const g={esriGeometryPoint:a.Z,esriGeometryPolyline:u.Z,esriGeometryPolygon:l.Z,esriGeometryEnvelope:i.Z,esriGeometryMultipoint:o.Z};function b(e){return e&&g[e]||null}},86973:(e,t,r)=>{r.d(t,{Mk:()=>i,P$:()=>s});var n=r(35454);const i=(0,n.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),s=(0,n.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})},69285:(e,t,r)=>{r.d(t,{k:()=>o});var n=r(70586),i=r(67900),s=r(8744);function o(e,t,r){if((0,n.Wi)(t)||(0,n.Wi)(r)||r.vcsWkid||(0,s.fS)(t,r))return null;const o=(0,i._R)(t)/(0,i._R)(r);if(1===o)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){e&&null!=e.z&&(e.z*=t)}(e,o);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const r of e.paths)for(const e of r)e.length>2&&(e[2]*=t)}(e,o);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const r of e.rings)for(const e of r)e.length>2&&(e[2]*=t)}(e,o);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const r of e.points)r.length>2&&(r[2]*=t)}(e,o);case"extent":case"esriGeometryExtent":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,o);default:return null}}},61576:(e,t,r)=>{r.r(t),r.d(t,{default:()=>y}),r(66577);var n=r(70586),i=r(18571),s=r(5847),o=r(75993),a=r(55914),l=r(91231),u=r(73506),c=r(15612),m=r(80676),h=r(87521),f=r(72758),d=r(23808),p=r(6570);class y{convertVectorFieldData(e){const t=s.Z.fromJSON(e.pixelBlock),r=(0,m.KC)(t,e.type);return Promise.resolve((0,n.pC)(r)&&r.toJSON())}async decode(e){const t=await(0,o.J)(e.data,e.options);return t&&t.toJSON()}symbolize(e){e.pixelBlock=s.Z.fromJSON(e.pixelBlock),e.extent=e.extent?p.Z.fromJSON(e.extent):null;const t=this.symbolizer.symbolize(e);return Promise.resolve((0,n.pC)(t)&&t.toJSON())}async updateSymbolizer(e){this.symbolizer=f.Z.fromJSON(e.symbolizerJSON),e.histograms&&"rasterStretch"===this.symbolizer?.rendererJSON.type&&(this.symbolizer.rendererJSON.histograms=e.histograms)}async updateRasterFunction(e){this.rasterFunction=(0,l.Ue)(e.rasterFunctionJSON)}async process(e){const t=this.rasterFunction.process({extent:p.Z.fromJSON(e.extent),primaryPixelBlocks:e.primaryPixelBlocks.map((e=>(0,n.pC)(e)?s.Z.fromJSON(e):null)),primaryRasterIds:e.primaryRasterIds});return(0,n.pC)(t)?t.toJSON():null}stretch(e){const t=this.symbolizer.simpleStretch(s.Z.fromJSON(e.srcPixelBlock),e.stretchParams);return Promise.resolve((0,n.pC)(t)&&t.toJSON())}estimateStatisticsHistograms(e){const t=(0,c.Hv)(s.Z.fromJSON(e.srcPixelBlock));return Promise.resolve(t)}split(e){const t=(0,a.Vl)(s.Z.fromJSON(e.srcPixelBlock),e.tileSize,e.maximumPyramidLevel);return t&&t.forEach(((e,r)=>{t.set(r,e?.toJSON())})),Promise.resolve(t)}async mosaicAndTransform(e){const t=e.srcPixelBlocks.map((e=>e?new s.Z(e):null)),r=(0,a.us)(t,e.srcMosaicSize,{blockWidths:e.blockWidths,alignmentInfo:e.alignmentInfo,clipOffset:e.clipOffset,clipSize:e.clipSize});let i,o=r;return e.coefs&&(o=(0,a.Uk)(r,e.destDimension,e.coefs,e.sampleSpacing,e.interpolation)),e.projectDirections&&e.gcsGrid&&(i=(0,a.Qh)(e.destDimension,e.gcsGrid),o=(0,n.Wg)((0,m.xQ)(o,e.isUV?"vector-uv":"vector-magdir",i))),{pixelBlock:o?.toJSON(),localNorthDirections:i}}async createFlowMesh(e,t){const r={data:new Float32Array(e.flowData.buffer),mask:new Uint8Array(e.flowData.maskBuffer),width:e.flowData.width,height:e.flowData.height},{vertexData:n,indexData:i}=await(0,d.GE)(e.meshType,e.simulationSettings,r,t.signal);return{result:{vertexBuffer:n.buffer,indexBuffer:i.buffer},transferList:[n.buffer,i.buffer]}}async getProjectionOffsetGrid(e){const t=p.Z.fromJSON(e.projectedExtent),r=p.Z.fromJSON(e.srcBufferExtent);let n=null;e.datumTransformationSteps&&(n=new i.Z({steps:e.datumTransformationSteps})),(e.includeGCSGrid||(0,u.Mk)(t.spatialReference,r.spatialReference,n))&&await(0,u.zD)();const s=e.rasterTransform?(0,h.c)(e.rasterTransform):null;return(0,u.Qp)({...e,projectedExtent:t,srcBufferExtent:r,datumTransformation:n,rasterTransform:s})}}},98046:(e,t,r)=>{r.d(t,{Z:()=>f});var n,i=r(43697),s=r(22303),o=r(22974),a=r(5600),l=r(75215),u=r(36030),c=r(52011),m=r(899);let h=n=class extends m.Z{constructor(e){super(e),this.algorithm=null,this.fromColor=null,this.toColor=null,this.type="algorithmic"}clone(){return new n({fromColor:(0,o.d9)(this.fromColor),toColor:(0,o.d9)(this.toColor),algorithm:this.algorithm})}};(0,i._)([(0,u.J)({esriCIELabAlgorithm:"cie-lab",esriHSVAlgorithm:"hsv",esriLabLChAlgorithm:"lab-lch"})],h.prototype,"algorithm",void 0),(0,i._)([(0,a.Cb)({type:s.Z,json:{type:[l.z8],write:!0}})],h.prototype,"fromColor",void 0),(0,i._)([(0,a.Cb)({type:s.Z,json:{type:[l.z8],write:!0}})],h.prototype,"toColor",void 0),(0,i._)([(0,a.Cb)({type:["algorithmic"]})],h.prototype,"type",void 0),h=n=(0,i._)([(0,c.j)("esri.rest.support.AlgorithmicColorRamp")],h);const f=h},899:(e,t,r)=>{r.d(t,{Z:()=>l});var n=r(43697),i=r(96674),s=r(5600),o=(r(67676),r(80442),r(75215),r(52011));let a=class extends i.wq{constructor(e){super(e),this.type=null}};(0,n._)([(0,s.Cb)({readOnly:!0,json:{read:!1,write:!0}})],a.prototype,"type",void 0),a=(0,n._)([(0,o.j)("esri.rest.support.ColorRamp")],a);const l=a},1515:(e,t,r)=>{r.d(t,{Z:()=>m});var n,i=r(43697),s=r(22974),o=r(5600),a=(r(75215),r(52011)),l=r(98046),u=r(899);let c=n=class extends u.Z{constructor(e){super(e),this.colorRamps=null,this.type="multipart"}clone(){return new n({colorRamps:(0,s.d9)(this.colorRamps)})}};(0,i._)([(0,o.Cb)({type:[l.Z],json:{write:!0}})],c.prototype,"colorRamps",void 0),(0,i._)([(0,o.Cb)({type:["multipart"]})],c.prototype,"type",void 0),c=n=(0,i._)([(0,a.j)("esri.rest.support.MultipartColorRamp")],c);const m=c},94593:(e,t,r)=>{r.d(t,{V:()=>o,i:()=>a});var n=r(98046),i=r(899),s=r(1515);const o={key:"type",base:i.Z,typeMap:{algorithmic:n.Z,multipart:s.Z}};function a(e){return e&&e.type?"algorithmic"===e.type?n.Z.fromJSON(e):"multipart"===e.type?s.Z.fromJSON(e):null:null}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5886],{67900:(e,t,n)=>{n.d(t,{$C:()=>T,En:()=>G,Jo:()=>R,_R:()=>q,c9:()=>N,cM:()=>Z,gV:()=>E,hd:()=>c,qE:()=>P,ty:()=>M}),n(80442);var r=n(35454),s=n(70586),o=n(24678),i=n(68441),u=n(8744),l=n(58116);const c=39.37,a=i.sv.radius*Math.PI/200,h=/UNIT\[([^\]]+)\]\]$/i,f=l.Z,d=/UNIT\[([^\]]+)\]/i,m=new Set([4261,4305,4807,4810,4811,4812,4816,4819,4821,4901,4902,37225,104139,104140]),g=(0,r.w)()({meter:"meters",foot:"feet",foot_us:"us-feet",foot_clarke:"clarke-feet",yard_clarke:"clarke-yards",link_clarke:"clarke-links",yard_sears:"sears-yards",foot_sears:"sears-feet",chain_sears:"sears-chains",chain_benoit_1895_b:"benoit-1895-b-chains",yard_indian:"indian-yards",yard_indian_1937:"indian-1937-yards",foot_gold_coast:"gold-coast-feet",chain_sears_1922_truncated:"sears-1922-truncated-chains","50_kilometers":"50-kilometers","150_kilometers":"150-kilometers"}),y=e=>e*e,p=e=>e*e*e,I={length:{baseUnit:"meters",units:{millimeters:{inBaseUnits:.001},centimeters:{inBaseUnits:.01},decimeters:{inBaseUnits:.1},meters:{inBaseUnits:1},kilometers:{inBaseUnits:1e3},inches:{inBaseUnits:.0254},feet:{inBaseUnits:.3048},yards:{inBaseUnits:.9144},miles:{inBaseUnits:1609.344},"nautical-miles":{inBaseUnits:1852},"us-feet":{inBaseUnits:1200/3937}}},area:{baseUnit:"square-meters",units:{"square-millimeters":{inBaseUnits:y(.001)},"square-centimeters":{inBaseUnits:y(.01)},"square-decimeters":{inBaseUnits:y(.1)},"square-meters":{inBaseUnits:1},"square-kilometers":{inBaseUnits:y(1e3)},"square-inches":{inBaseUnits:y(.0254)},"square-feet":{inBaseUnits:y(.3048)},"square-yards":{inBaseUnits:y(.9144)},"square-miles":{inBaseUnits:y(1609.344)},"square-us-feet":{inBaseUnits:y(1200/3937)},acres:{inBaseUnits:.0015625*y(1609.344)},ares:{inBaseUnits:100},hectares:{inBaseUnits:1e4}}},volume:{baseUnit:"liters",units:{liters:{inBaseUnits:1},"cubic-millimeters":{inBaseUnits:1e3*p(.001)},"cubic-centimeters":{inBaseUnits:1e3*p(.01)},"cubic-decimeters":{inBaseUnits:1e3*p(.1)},"cubic-meters":{inBaseUnits:1e3},"cubic-kilometers":{inBaseUnits:1e3*p(1e3)},"cubic-inches":{inBaseUnits:1e3*p(.0254)},"cubic-feet":{inBaseUnits:1e3*p(.3048)},"cubic-yards":{inBaseUnits:1e3*p(.9144)},"cubic-miles":{inBaseUnits:1e3*p(1609.344)}}},angle:{baseUnit:"radians",units:{radians:{inBaseUnits:1},degrees:{inBaseUnits:Math.PI/180}}}},b=(()=>{const e={};for(const t in I)for(const n in I[t].units)e[n]=t;return e})();function w(e){const t=b[e];if(!t)throw new Error("unknown type");return t}function U(e,t=null){return t=t||w(e),I[t].baseUnit===e}function G(e,t,n){if(t===n)return e;const r=w(t);if(r!==w(n))throw new Error("incompatible units");const s=U(t,r)?e:function(e,t,n){return e*I[n].units[t].inBaseUnits}(e,t,r);return U(n,r)?s:function(e,t,n){return e/I[n].units[t].inBaseUnits}(s,n,r)}function M(e,t,n){return G(e,t,"meters")/(n*Math.PI/180)}function T(e){return g.fromJSON(e.toLowerCase())||null}function q(e){if((0,s.pC)(e)&&!(0,u.N$)(e))return 1;const t=N(e);return t>1e5?1:t}function Z(e){return N(e)>=(0,o.Iu)(e).metersPerDegree?"meters":P(e)}function N(e,t=i.sv.metersPerDegree){return(0,s.Pt)(function(e,t=!1){const n=(0,s.pC)(e)?e.wkid:null,r=(0,s.pC)(e)?e.wkt:null;let o=null;if(n){if((0,u.o$)(n))return i.yr.metersPerDegree;if((0,u.ME)(n))return i.Z1.metersPerDegree;o=f.values[f[n]],!o&&t&&m.has(n)&&(o=a)}else r&&(C(r)?o=S(h.exec(r),o):k(r)&&(o=S(d.exec(r),o)));return o}(e,!0),t)}function S(e,t){return e&&e[1]?B(e[1]):t}function B(e){return parseFloat(e.split(",")[1])}function P(e){const t=(0,s.pC)(e)?e.wkid:null,n=(0,s.pC)(e)?e.wkt:null;let r=null;if(t)r=f.units[f[t]];else if(n){const e=C(n)?h:k(n)?d:null;if(e){const t=e.exec(n);t&&t[1]&&(r=function(e){const t=/[\\"\\']{1}([^\\"\\']+)/.exec(e);let n=t&&t[1];if(!n||!f.units.includes(n)){const t=B(e);n=null;const r=f.values;for(let e=0;e<r.length;++e)if(Math.abs(t-r[e])<1e-7){n=f.units[e];break}}return n}(t[1]))}}return(0,s.pC)(r)?T(r):null}function k(e){return/^GEOCCS/i.test(e)}function C(e){return/^PROJCS/i.test(e)}new Map([["meters","square-meters"],["feet","square-feet"],["us-feet","square-us-feet"]]);const _={esriAcres:"acres",esriAres:"ares",esriHectares:"hectares",esriSquareCentimeters:"square-centimeters",esriSquareDecimeters:"square-decimeters",esriSquareFeet:"square-feet",esriSquareInches:"square-inches",esriSquareKilometers:"square-kilometers",esriSquareMeters:"square-meters",esriSquareMiles:"square-miles",esriSquareMillimeters:"square-millimeters",esriSquareUsFeet:"square-us-feet",esriSquareYards:"square-yards"},F={esriCentimeters:"centimeters",esriDecimeters:"decimeters",esriFeet:"feet",esriInches:"inches",esriKilometers:"kilometers",esriMeters:"meters",esriMiles:"miles",esriMillimeters:"millimeters",esriNauticalMiles:"nautical-miles",esriYards:"yards"},E=(0,r.w)()(_),R=(0,r.w)()(F);(0,r.w)()({..._,...F})},24678:(e,t,n)=>{n.d(t,{GG:()=>l,HQ:()=>c,Iu:()=>d,VY:()=>a,e8:()=>m,rS:()=>f,wY:()=>h});var r=n(70586),s=n(82971),o=n(68441),i=n(8744);function u(e){return new s.Z({wkt:`GEOCCS["Spherical geocentric",\n DATUM["Not specified",\n SPHEROID["Sphere",${e.radius},0]],\n PRIMEM["Greenwich",0.0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",EAST],\n AXIS["Geocentric Z",NORTH]\n ]`})}const l=u(o.sv),c=u(o.yr),a=u(o.Z1),h=new s.Z({wkt:`GEOCCS["WGS 84",\n DATUM["WGS_1984",\n SPHEROID["WGS 84",${o.sv.radius},298.257223563,\n AUTHORITY["EPSG","7030"]],\n AUTHORITY["EPSG","6326"]],\n PRIMEM["Greenwich",0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0,\n AUTHORITY["EPSG","9001"]],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",OTHER],\n AXIS["Geocentric Z",NORTH],\n AUTHORITY["EPSG","4978"]\n]`});function f(e){return e&&((0,i.BZ)(e)||e===c)?c:e&&((0,i.V2)(e)||e===a)?a:l}function d(e){return(0,r.pC)(e)&&((0,i.BZ)(e)||e===c)?o.yr:(0,r.pC)(e)&&((0,i.V2)(e)||e===a)?o.Z1:o.sv}function m(e){return(0,i.o$)(e)?o.yr:(0,i.ME)(e)?o.Z1:o.sv}},70272:(e,t,n)=>{n.d(t,{S6:()=>o,nd:()=>i,u_:()=>s});var r=n(70586);class s{constructor(e=null,t={},n,r){this.geometry=e,this.attributes=t,this.centroid=n,this.objectId=r,this.displayId=0,this.geohashX=0,this.geohashY=0}weakClone(){const e=new s(this.geometry,this.attributes,this.centroid,this.objectId);return e.displayId=this.displayId,e.geohashX=this.geohashX,e.geohashY=this.geohashY,e}}function o(e){return!((0,r.Wi)(e.geometry)||!e.geometry.coords||!e.geometry.coords.length)}class i extends s{}},44876:(e,t,n)=>{n.d(t,{Z:()=>r});class r{constructor(){this.objectIdFieldName=null,this.globalIdFieldName=null,this.geohashFieldName=null,this.geometryProperties=null,this.geometryType=null,this.spatialReference=null,this.hasZ=!1,this.hasM=!1,this.features=[],this.fields=[],this.transform=null,this.exceededTransferLimit=!1,this.uniqueIdField=null,this.queryGeometryType=null,this.queryGeometry=null}weakClone(){const e=new r;return e.objectIdFieldName=this.objectIdFieldName,e.globalIdFieldName=this.globalIdFieldName,e.geohashFieldName=this.geohashFieldName,e.geometryProperties=this.geometryProperties,e.geometryType=this.geometryType,e.spatialReference=this.spatialReference,e.hasZ=this.hasZ,e.hasM=this.hasM,e.features=this.features,e.fields=this.fields,e.transform=this.transform,e.exceededTransferLimit=this.exceededTransferLimit,e.uniqueIdField=this.uniqueIdField,e.queryGeometry=this.queryGeometry,e.queryGeometryType=this.queryGeometryType,e}}},5428:(e,t,n)=>{n.d(t,{Z:()=>r});class r{constructor(e=[],t=[],n=!1){this.lengths=e??[],this.coords=t??[],this.hasIndeterminateRingOrder=n}static fromRect(e){const[t,n,s,o]=e,i=s-t,u=o-n;return new r([5],[t,n,i,0,0,u,-i,0,0,-u])}get isPoint(){return 0===this.lengths.length}get maxLength(){return Math.max(...this.lengths)}get size(){return this.lengths.reduce(((e,t)=>e+t))}forEachVertex(e){let t=0;this.lengths.length||e(this.coords[0],this.coords[1]);for(let n=0;n<this.lengths.length;n++){const r=this.lengths[n];for(let n=0;n<r;n++)e(this.coords[2*(n+t)],this.coords[2*(n+t)+1]);t+=r}}clone(e){return e?(e.set(this.coords),new r(this.lengths.slice(),e,this.hasIndeterminateRingOrder)):new r(this.lengths.slice(),this.coords.slice(),this.hasIndeterminateRingOrder)}}},98732:(e,t,n)=>{n.d(t,{$:()=>Q,$g:()=>ee,EI:()=>A,GH:()=>H,IN:()=>b,Iv:()=>k,J6:()=>_,Jd:()=>I,Nh:()=>z,RZ:()=>D,Uy:()=>R,XA:()=>O,Yn:()=>Y,cn:()=>W,di:()=>j,eG:()=>E,fQ:()=>U,hY:()=>te,h_:()=>X,lM:()=>L,lz:()=>re,oB:()=>se,zj:()=>V});var r=n(20102),s=n(92604),o=n(70586),i=n(33955),u=n(70272),l=n(44876),c=n(5428);function a(e,t){return e?t?4:3:t?3:2}const h=s.Z.getLogger("esri.layers.graphics.featureConversionUtils"),f={esriGeometryPoint:0,esriGeometryPolyline:2,esriGeometryPolygon:3,esriGeometryMultipoint:0},d=(e,t,n,r,s,o)=>{e[n]=s,e[n+1]=o},m=(e,t,n,r,s,o)=>{e[n]=s,e[n+1]=o,e[n+2]=t[r+2]},g=(e,t,n,r,s,o)=>{e[n]=s,e[n+1]=o,e[n+2]=t[r+3]},y=(e,t,n,r,s,o)=>{e[n]=s,e[n+1]=o,e[n+2]=t[r+2],e[n+3]=t[r+3]};function p(e,t,n,r){if(e){if(n)return t&&r?y:m;if(t&&r)return g}else if(t&&r)return m;return d}function I({scale:e,translate:t},n){return Math.round((n-t[0])/e[0])}function b({scale:e,translate:t},n){return Math.round((t[1]-n)/e[1])}function w({scale:e,translate:t},n,r){return n*e[r]+t[r]}function U(e,t,n){return e?t?n?S(e):T(e):n?Z(e):G(e):null}function G(e){const t=e.coords;return{x:t[0],y:t[1]}}function M(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e}function T(e){const t=e.coords;return{x:t[0],y:t[1],z:t[2]}}function q(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.z,e}function Z(e){const t=e.coords;return{x:t[0],y:t[1],m:t[2]}}function N(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.m,e}function S(e){const t=e.coords;return{x:t[0],y:t[1],z:t[2],m:t[3]}}function B(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.z,e.coords[3]=t.m,e}function P(e,t){return e&&t?B:e?q:t?N:M}function k(e,t,n){if((0,o.Wi)(e))return null;const r=a(t,n),s=[];for(let t=0;t<e.coords.length;t+=r){const n=[];for(let s=0;s<r;s++)n.push(e.coords[t+s]);s.push(n)}return t?n?{points:s,hasZ:t,hasM:n}:{points:s,hasZ:t}:n?{points:s,hasM:n}:{points:s}}function C(e,t,n=a(t.hasZ,t.hasM)){e.lengths[0]=t.points.length;const r=e.coords;let s=0;for(const e of t.points)for(let t=0;t<n;t++)r[s++]=e[t];return e}function _(e,t,n){if(!e)return null;const r=a(t,n),{coords:s,lengths:o}=e,i=[];let u=0;for(const e of o){const t=[];for(let n=0;n<e;n++){const e=[];for(let t=0;t<r;t++)e.push(s[u++]);t.push(e)}i.push(t)}return t?n?{paths:i,hasZ:t,hasM:n}:{paths:i,hasZ:t}:n?{paths:i,hasM:n}:{paths:i}}function F(e,t,n=a(t.hasZ,t.hasM)){const{lengths:r,coords:s}=e;let o=0;for(const e of t.paths){for(const t of e)for(let e=0;e<n;e++)s[o++]=t[e];r.push(e.length)}return e}function E(e,t,n){if(!e)return null;const r=a(t,n),{coords:s,lengths:o}=e,i=[];let u=0;for(const e of o){const t=[];for(let n=0;n<e;n++){const e=[];for(let t=0;t<r;t++)e.push(s[u++]);t.push(e)}i.push(t)}return t?n?{rings:i,hasZ:t,hasM:n}:{rings:i,hasZ:t}:n?{rings:i,hasM:n}:{rings:i}}function R(e,t,n=t.hasZ,r=t.hasM){return function(e,t,n,r){const s=a(n,r),{lengths:o,coords:i}=e;let u=0;o.length=i.length=0;for(const e of t){for(const t of e)for(let e=0;e<s;e++)i[u++]=t[e];o.push(e.length)}}(e,t.rings,n,r),e}const v=[],x=[];function O(e,t,n,r,s){v[0]=e;const[o]=Y(x,v,t,n,r,s);return v.length=x.length=0,o}function Y(e,t,n,s,i,l){if(e.length=0,!n){for(const n of t){const t=l?n.attributes[l]:void 0;e.push(new u.u_(null,n.attributes,null,t))}return e}switch(n){case"esriGeometryPoint":return function(e,t,n,r,s){const i=P(n,r);for(const{geometry:n,attributes:r}of t){const t=(0,o.pC)(n)?i(new c.Z,n):null;e.push(new u.u_(t,r,null,s?r[s]:void 0))}return e}(e,t,s,i,l);case"esriGeometryMultipoint":return function(e,t,n,r,s){const i=a(n,r);for(const{geometry:n,attributes:r}of t){const t=(0,o.pC)(n)?C(new c.Z,n,i):null;e.push(new u.u_(t,r,null,s?r[s]:void 0))}return e}(e,t,s,i,l);case"esriGeometryPolyline":return function(e,t,n,r,s){const i=a(n,r);for(const{geometry:n,attributes:r}of t){const t=(0,o.pC)(n)?F(new c.Z,n,i):null;e.push(new u.u_(t,r,null,s?r[s]:void 0))}return e}(e,t,s,i,l);case"esriGeometryPolygon":return function(e,t,n,r,s){for(const{geometry:i,centroid:l,attributes:a}of t){const t=(0,o.pC)(i)?R(new c.Z,i,n,r):null,h=s?a[s]:void 0;(0,o.pC)(l)?e.push(new u.u_(t,a,M(new c.Z,l),h)):e.push(new u.u_(t,a,null,h))}return e}(e,t,s,i,l);default:h.error("convertToFeatureSet:unknown-geometry",new r.Z(`Unable to parse unknown geometry type '${n}'`)),e.length=0}return e}function A(e,t,n,r){x[0]=e,$(v,x,t,n,r);const s=v[0];return v.length=x.length=0,s}function H(e,t,n){if((0,o.Wi)(e))return null;const s=new c.Z;return"hasZ"in e&&null==t&&(t=e.hasZ),"hasM"in e&&null==n&&(n=e.hasM),(0,i.wp)(e)?P(null!=t?t:null!=e.z,null!=n?n:null!=e.m)(s,e):(0,i.oU)(e)?R(s,e,t,n):(0,i.l9)(e)?F(s,e,a(t,n)):(0,i.aW)(e)?C(s,e,a(t,n)):void h.error("convertFromGeometry:unknown-geometry",new r.Z(`Unable to parse unknown geometry type '${e}'`))}function j(e,t,n,s){const i=e&&("coords"in e?e:e.geometry);if((0,o.Wi)(i))return null;switch(t){case"esriGeometryPoint":{let e=G;return n&&s?e=S:n?e=T:s&&(e=Z),e(i)}case"esriGeometryMultipoint":return k(i,n,s);case"esriGeometryPolyline":return _(i,n,s);case"esriGeometryPolygon":return E(i,n,s);default:return void h.error("convertToGeometry:unknown-geometry",new r.Z(`Unable to parse unknown geometry type '${t}'`))}}function $(e,t,n,s,i){if(e.length=0,(0,o.Wi)(n))return function(e,t){for(const n of t)e.push({attributes:n.attributes});return e}(e,t);switch(n){case"esriGeometryPoint":return function(e,t,n,r){let s=G;n&&r?s=S:n?s=T:r&&(s=Z);for(const n of t){const{geometry:t,attributes:r}=n,i=(0,o.pC)(t)?s(t):null;e.push({attributes:r,geometry:i})}return e}(e,t,s,i);case"esriGeometryMultipoint":return function(e,t,n,r){for(const{geometry:s,attributes:i}of t)e.push({attributes:i,geometry:(0,o.pC)(s)?k(s,n,r):null});return e}(e,t,s,i);case"esriGeometryPolyline":return function(e,t,n,r){for(const{geometry:s,attributes:i}of t)e.push({attributes:i,geometry:(0,o.pC)(s)?_(s,n,r):null});return e}(e,t,s,i);case"esriGeometryPolygon":return function(e,t,n,r){for(const{geometry:s,attributes:i,centroid:u}of t){const t=(0,o.pC)(s)?E(s,n,r):null;if((0,o.pC)(u)){const n=G(u);e.push({attributes:i,centroid:n,geometry:t})}else e.push({attributes:i,geometry:t})}return e}(e,t,s,i);default:h.error("convertToFeatureSet:unknown-geometry",new r.Z(`Unable to parse unknown geometry type '${n}'`))}return e}function W(e){const{objectIdFieldName:t,spatialReference:n,transform:r,fields:s,hasM:o,hasZ:i,features:u,geometryType:l,exceededTransferLimit:c,uniqueIdField:a,queryGeometry:h,queryGeometryType:f}=e,d={features:$([],u,l,i,o),fields:s,geometryType:l,objectIdFieldName:t,spatialReference:n,uniqueIdField:a,queryGeometry:j(h,f,!1,!1)};return r&&(d.transform=r),c&&(d.exceededTransferLimit=c),o&&(d.hasM=o),i&&(d.hasZ=i),d}function X(e,t){const n=new l.Z,{hasM:s,hasZ:o,features:i,objectIdFieldName:u,spatialReference:c,geometryType:a,exceededTransferLimit:f,transform:d,fields:m}=e;return m&&(n.fields=m),n.geometryType=a??null,n.objectIdFieldName=u??t??null,n.spatialReference=c??null,n.objectIdFieldName?(i&&Y(n.features,i,a,o,s,n.objectIdFieldName),f&&(n.exceededTransferLimit=f),s&&(n.hasM=s),o&&(n.hasZ=o),d&&(n.transform=d),n):(h.error(new r.Z("optimized-features:invalid-objectIdFieldName","objectIdFieldName is missing")),n)}function L(e){const{transform:t,features:n,hasM:r,hasZ:s}=e;if(!t)return e;for(const e of n)(0,o.pC)(e.geometry)&&ee(e.geometry,e.geometry,r,s,t),(0,o.pC)(e.centroid)&&ee(e.centroid,e.centroid,r,s,t);return e.transform=null,e}function D(e,t){const{geometryType:n,features:r,hasM:s,hasZ:o}=t;if(!e)return t;for(let t=0;t<r.length;t++){const i=r[t],u=i.weakClone();u.geometry=new c.Z,z(u.geometry,i.geometry,s,o,n,e),i.centroid&&(u.centroid=new c.Z,z(u.centroid,i.centroid,s,o,"esriGeometryPoint",e)),r[t]=u}return t.transform=e,t}function z(e,t,n,r,s,i,u=n,l=r){if(e.lengths.length&&(e.lengths.length=0),e.coords.length&&(e.coords.length=0),(0,o.Wi)(t)||!t.coords.length)return null;const c=f[s],{coords:h,lengths:d}=t,m=a(n,r),g=a(n&&u,r&&l),y=p(n,r,u,l);if(!d.length)return y(e.coords,h,0,0,I(i,h[0]),b(i,h[1])),e.lengths.length&&(e.lengths.length=0),e.coords.length=m,e;let w,U,G,M,T=0,q=0,Z=q;for(const t of d){if(t<c)continue;let n=0;q=Z,G=w=I(i,h[T]),M=U=b(i,h[T+1]),y(e.coords,h,q,T,G,M),n++,T+=m,q+=g;for(let r=1;r<t;r++,T+=m)G=I(i,h[T]),M=b(i,h[T+1]),G===w&&M===U||(y(e.coords,h,q,T,G-w,M-U),q+=g,n++,w=G,U=M);n>=c&&(e.lengths.push(n),Z=q)}return e.coords.length=Z,e.coords.length?e:null}function V(e,t,n,r,s,o,i=n,u=r){if(e.lengths.length&&(e.lengths.length=0),e.coords.length&&(e.coords.length=0),!t||!t.coords.length)return null;const l=f[s],{coords:c,lengths:h}=t,d=a(n,r),m=a(n&&i,r&&u),g=p(n,r,i,u);if(!h.length)return g(e.coords,c,0,0,c[0],c[1]),e.lengths.length&&(e.lengths.length=0),e.coords.length=d,e;let y=0;const I=o*o;for(const t of h){if(t<l){y+=t*d;continue}const n=e.coords.length/m,r=y,s=y+(t-1)*d;g(e.coords,c,e.coords.length,r,c[r],c[r+1]),K(e.coords,c,d,I,g,r,s),g(e.coords,c,e.coords.length,s,c[s],c[s+1]);const o=e.coords.length/m-n;o>=l?e.lengths.push(o):e.coords.length=n*m,y+=t*d}return e.coords.length?e:null}function J(e,t,n,r){const s=e[t],o=e[t+1],i=e[n],u=e[n+1],l=e[r],c=e[r+1];let a=i,h=u,f=l-a,d=c-h;if(0!==f||0!==d){const e=((s-a)*f+(o-h)*d)/(f*f+d*d);e>1?(a=l,h=c):e>0&&(a+=f*e,h+=d*e)}return f=s-a,d=o-h,f*f+d*d}function K(e,t,n,r,s,o,i){let u,l=r,c=0;for(let e=o+n;e<i;e+=n)u=J(t,e,o,i),u>l&&(c=e,l=u);l>r&&(c-o>n&&K(e,t,n,r,s,o,c),s(e,t,e.length,c,t[c],t[c+1]),i-c>n&&K(e,t,n,r,s,c,i))}function Q(e,t,n,r){if((0,o.Wi)(t)||!t.coords||!t.coords.length)return null;const s=a(n,r);let i=Number.POSITIVE_INFINITY,u=Number.POSITIVE_INFINITY,l=Number.NEGATIVE_INFINITY,c=Number.NEGATIVE_INFINITY;if(t&&t.coords){const e=t.coords;for(let t=0;t<e.length;t+=s){const n=e[t],r=e[t+1];i=Math.min(i,n),l=Math.max(l,n),u=Math.min(u,r),c=Math.max(c,r)}}return e[0]=i,e[1]=u,e[2]=l,e[3]=c,e}function ee(e,t,n,r,s){const{coords:o,lengths:i}=t,u=a(n,r);if(!o.length)return e!==t&&(e.lengths.length=0,e.coords.length=0),e;const{originPosition:l,scale:c,translate:h}=s,f=oe;f.originPosition=l;const d=f.scale;d[0]=c[0]??1,d[1]=-(c[1]??1),d[2]=c[2]??1,d[3]=c[3]??1;const m=f.translate;if(m[0]=h[0]??0,m[1]=h[1]??0,m[2]=h[2]??0,m[3]=h[3]??0,!i.length){for(let t=0;t<u;++t)e.coords[t]=w(f,o[t],t);return e!==t&&(e.lengths.length=0,e.coords.length=u),e}let g=0;for(let t=0;t<i.length;t++){const n=i[t];e.lengths[t]=n;for(let t=0;t<u;++t)e.coords[g+t]=w(f,o[g+t],t);let r=e.coords[g],s=e.coords[g+1];g+=u;for(let t=1;t<n;t++,g+=u){r+=o[g]*d[0],s+=o[g+1]*d[1],e.coords[g]=r,e.coords[g+1]=s;for(let t=2;t<u;++t)e.coords[g+t]=w(f,o[g+t],t)}}return e!==t&&(e.lengths.length=i.length,e.coords.length=o.length),e}function te(e,t,n,r,s,o){const i=a(n,r),u=p(n,r,s,o),l=t.coords;e.coords.length=0,e.lengths.length=0,e.lengths.push(...t.lengths);for(let t=0;t<l.length;t+=i)u(e.coords,l,e.coords.length,t,l[t],l[t+1]);return e}function ne(e,t,n,r){let s=0,o=e[r*t],i=e[r*(t+1)];for(let u=1;u<n;u++){const n=o+e[r*(t+u)],l=i+e[r*(t+u)+1],c=(n-o)*(l+i);o=n,i=l,s+=c}return.5*s}function re(e,t){const{coords:n,lengths:r}=e;let s=0,o=0;for(let e=0;e<r.length;e++)o+=ne(n,s,r[e],t),s+=e;return Math.abs(o)}function se(e,t){if((0,o.Wi)(e))return null;const n=e.clone(),r=e.coords,s=e.lengths;let i=0;for(let e=0;e<s.length;e++){const o=s[e];let u=r[t*i],l=r[t*i+1];for(let e=1;e<o;e++){const s=u+r[t*(i+e)],o=l+r[t*(i+e)+1];n.coords[t*(i+e)]=s,n.coords[t*(i+e)+1]=o,u=s,l=o}i+=o}return n}const oe={originPosition:"lowerLeft",scale:[1,1,1,1],translate:[0,0,0,0]}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2916],{74669:(e,t,s)=>{s.d(t,{Z:()=>n});var i=s(69801);class n{constructor(e,t){this._storage=new i.WJ,this._storage.maxSize=e,t&&this._storage.registerRemoveFunc("",t)}put(e,t){this._storage.put(e,t,1,1)}pop(e){return this._storage.pop(e)}get(e){return this._storage.get(e)}clear(){this._storage.clearAll()}destroy(){this._storage.destroy()}}},69801:(e,t,s)=>{s.d(t,{WJ:()=>l,Xq:()=>o});var i,n,r=s(70586),a=s(44553);(n=i||(i={}))[n.ALL=0]="ALL",n[n.SOME=1]="SOME";class o{constructor(e,t,s){this._namespace=e,this._storage=t,this._removeFunc=!1,this._hit=0,this._miss=0,this._storage.register(this),this._namespace+=":",s&&(this._storage.registerRemoveFunc(this._namespace,s),this._removeFunc=!0)}destroy(){this._storage.clear(this._namespace),this._removeFunc&&this._storage.deregisterRemoveFunc(this._namespace),this._storage.deregister(this),this._storage=null}get namespace(){return this._namespace.slice(0,-1)}get hitRate(){return this._hit/(this._hit+this._miss)}get size(){return this._storage.size}get maxSize(){return this._storage.maxSize}resetHitRate(){this._hit=this._miss=0}put(e,t,s,i=0){this._storage.put(this._namespace+e,t,s,i)}get(e){const t=this._storage.get(this._namespace+e);return void 0===t?++this._miss:++this._hit,t}pop(e){const t=this._storage.pop(this._namespace+e);return void 0===t?++this._miss:++this._hit,t}updateSize(e,t,s){this._storage.updateSize(this._namespace+e,t,s)}clear(){this._storage.clear(this._namespace)}clearAll(){this._storage.clearAll()}getStats(){return this._storage.getStats()}resetStats(){this._storage.resetStats()}}class l{constructor(e=10485760){this._maxSize=e,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._removeFuncs=new a.Z,this._users=new a.Z}destroy(){this.clearAll(),this._removeFuncs.clear(),this._users.clear(),this._db=null}register(e){this._users.push(e)}deregister(e){this._users.removeUnordered(e)}registerRemoveFunc(e,t){this._removeFuncs.push([e,t])}deregisterRemoveFunc(e){this._removeFuncs.filterInPlace((t=>t[0]!==e))}get size(){return this._size}get maxSize(){return this._maxSize}set maxSize(e){this._maxSize=Math.max(e,0),this._checkSizeLimit()}put(e,t,s,n){const r=this._db.get(e);if(r&&(this._size-=r.size,this._db.delete(e),r.entry!==t&&this._notifyRemove(e,r.entry,i.ALL)),s>this._maxSize)return void this._notifyRemove(e,t,i.ALL);if(void 0===t)return void console.warn("Refusing to cache undefined entry ");if(!s||s<0)return void console.warn("Refusing to cache entry with invalid size "+s);const a=1+Math.max(n,-3)- -3;this._db.set(e,{entry:t,size:s,lifetime:a,lives:a}),this._size+=s,this._checkSizeLimit()}updateSize(e,t,s){const n=this._db.get(e);if(n&&n.entry===t){for(this._size-=n.size;s>this._maxSize;){const n=this._notifyRemove(e,t,i.SOME);if(!((0,r.pC)(n)&&n>0))return void this._db.delete(e);s=n}n.size=s,this._size+=s,this._checkSizeLimit()}}pop(e){const t=this._db.get(e);if(t)return this._size-=t.size,this._db.delete(e),++this._hit,t.entry;++this._miss}get(e){const t=this._db.get(e);if(void 0!==t)return this._db.delete(e),t.lives=t.lifetime,this._db.set(e,t),++this._hit,t.entry;++this._miss}getStats(){const e={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},t={},s=new Array;this._db.forEach(((e,i)=>{const n=e.lifetime;s[n]=(s[n]||0)+e.size,this._users.forAll((s=>{const n=s.namespace;if(i.startsWith(n)){const s=t[n]||0;t[n]=s+e.size}}))}));const i={};this._users.forAll((e=>{const s=e.namespace;if(!isNaN(e.hitRate)&&e.hitRate>0){const n=t[s]||0;t[s]=n,i[s]=Math.round(100*e.hitRate)+"%"}else i[s]="0%"}));const n=Object.keys(t);n.sort(((e,s)=>t[s]-t[e])),n.forEach((s=>e[s]=Math.round(t[s]/2**20)+"MB / "+i[s]));for(let t=s.length-1;t>=0;--t){const i=s[t];i&&(e["Priority "+(t+-3-1)]=Math.round(i/this.size*100)+"%")}return e}resetStats(){this._hit=this._miss=0,this._users.forAll((e=>e.resetHitRate()))}clear(e){this._db.forEach(((t,s)=>{s.startsWith(e)&&(this._size-=t.size,this._db.delete(s),this._notifyRemove(s,t.entry,i.ALL))}))}clearAll(){this._db.forEach(((e,t)=>this._notifyRemove(t,e.entry,i.ALL))),this._size=0,this._db.clear()}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,t,s){let i;return this._removeFuncs.some((n=>{if(e.startsWith(n[0])){const e=n[1](t,s);return"number"==typeof e&&(i=e),!0}return!1})),i}_checkSizeLimit(){if(!(this._size<=this._maxSize))for(const[e,t]of this._db){if(this._db.delete(e),t.lives<=1){this._size-=t.size;const s=this._notifyRemove(e,t.entry,i.SOME);(0,r.pC)(s)&&s>0&&(this._size+=s,t.lives=t.lifetime,t.size=s,this._db.set(e,t))}else--t.lives,this._db.set(e,t);if(this._size<=.9*this.maxSize)return}}}},10661:(e,t,s)=>{s.d(t,{s:()=>n});var i=s(39020);class n{constructor(){this._observers=[]}observe(e){return this._observers.includes(e)||this._observers.push(e),new i.X(this._observers,e)}notify(){const e=this._observers.slice();for(let t=0;t<e.length;++t){const s=e[t];s.onInvalidated(),s.onCommitted()}}}},37455:(e,t,s)=>{s.d(t,{N:()=>i});const i={convertToGEGeometry:function(e,t){return null==t?null:e.convertJSONToGeometry(t)},exportPoint:function(e,t,s){const i=new n(e.getPointX(t),e.getPointY(t),s),r=e.hasZ(t),a=e.hasM(t);return r&&(i.z=e.getPointZ(t)),a&&(i.m=e.getPointM(t)),i},exportPolygon:function(e,t,s){return new r(e.exportPaths(t),s,e.hasZ(t),e.hasM(t))},exportPolyline:function(e,t,s){return new a(e.exportPaths(t),s,e.hasZ(t),e.hasM(t))},exportMultipoint:function(e,t,s){return new o(e.exportPoints(t),s,e.hasZ(t),e.hasM(t))},exportExtent:function(e,t,s){const i=e.hasZ(t),n=e.hasM(t),r=new l(e.getXMin(t),e.getYMin(t),e.getXMax(t),e.getYMax(t),s);if(i){const s=e.getZExtent(t);r.zmin=s.vmin,r.zmax=s.vmax}if(n){const s=e.getMExtent(t);r.mmin=s.vmin,r.mmax=s.vmax}return r}};class n{constructor(e,t,s){this.x=e,this.y=t,this.spatialReference=s,this.z=void 0,this.m=void 0}}class r{constructor(e,t,s,i){this.rings=e,this.spatialReference=t,this.hasZ=void 0,this.hasM=void 0,s&&(this.hasZ=s),i&&(this.hasM=i)}}class a{constructor(e,t,s,i){this.paths=e,this.spatialReference=t,this.hasZ=void 0,this.hasM=void 0,s&&(this.hasZ=s),i&&(this.hasM=i)}}class o{constructor(e,t,s,i){this.points=e,this.spatialReference=t,this.hasZ=void 0,this.hasM=void 0,s&&(this.hasZ=s),i&&(this.hasM=i)}}class l{constructor(e,t,s,i,n){this.xmin=e,this.ymin=t,this.xmax=s,this.ymax=i,this.spatialReference=n,this.zmin=void 0,this.zmax=void 0,this.mmin=void 0,this.mmax=void 0}}},24470:(e,t,s)=>{s.d(t,{HH:()=>l,SO:()=>u,Ue:()=>r,al:()=>a,cS:()=>m,jE:()=>c,kK:()=>h,oJ:()=>o,r3:()=>f}),s(80442),s(22021);var i=s(70586),n=s(6570);function r(e=p){return[e[0],e[1],e[2],e[3]]}function a(e,t,s,i,n=r()){return n[0]=e,n[1]=t,n[2]=s,n[3]=i,n}function o(e,t=r()){return t[0]=e.xmin,t[1]=e.ymin,t[2]=e.xmax,t[3]=e.ymax,t}function l(e,t){return new n.Z({xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3],spatialReference:t})}function u(e){return function(e){return(0,i.Wi)(e)||e[0]>=e[2]?0:e[2]-e[0]}(e)*function(e){return e[1]>=e[3]?0:e[3]-e[1]}(e)}function c(e,t,s){return t>=e[0]&&s>=e[1]&&t<=e[2]&&s<=e[3]}function h(e,t){return Math.max(t[0],e[0])<=Math.min(t[2],e[2])&&Math.max(t[1],e[1])<=Math.min(t[3],e[3])}function f(e,t){return t[0]>=e[0]&&t[2]<=e[2]&&t[1]>=e[1]&&t[3]<=e[3]}function m(e){return e?function(e,t){return e!==t&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3]),e}(e,d):r(d)}const d=[1/0,1/0,-1/0,-1/0],p=[0,0,0,0]},82526:(e,t,s)=>{s.d(t,{aX:()=>b});var i=s(68773),n=s(20102),r=s(92604),a=s(70586),o=s(38913),l=s(58901),u=s(82971),c=s(33955);const h={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new l.Z({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:u.Z.WebMercator}),minus180Line:new l.Z({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:u.Z.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new l.Z({paths:[[[180,-180],[180,180]]],spatialReference:u.Z.WGS84}),minus180Line:new l.Z({paths:[[[-180,-180],[-180,180]]],spatialReference:u.Z.WGS84})}};function f(e,t){return Math.ceil((e-t)/(2*t))}function m(e,t){const s=d(e);for(const e of s)for(const s of e)s[0]+=t;return e}function d(e){return(0,c.oU)(e)?e.rings:e.paths}var p=s(8744),g=s(40488),y=(s(66577),s(3172)),_=s(17452);function x(e){return{geometryType:(0,c.Ji)(e[0]),geometries:e.map((e=>e.toJSON()))}}const v=r.Z.getLogger("esri.geometry.support.normalizeUtils");function S(e){return"polygon"===e[0].type}function z(e){return"polyline"===e[0].type}function F(e,t,s){if(t){const t=function(e,t){if(!(e instanceof l.Z||e instanceof o.Z)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw v.error(e),new n.Z(e)}const s=d(e),i=[];for(const e of s){const s=[];i.push(s),s.push([e[0][0],e[0][1]]);for(let i=0;i<e.length-1;i++){const n=e[i][0],r=e[i][1],a=e[i+1][0],o=e[i+1][1],l=Math.sqrt((a-n)*(a-n)+(o-r)*(o-r)),u=(o-r)/l,c=(a-n)/l,h=l/t;if(h>1){for(let e=1;e<=h-1;e++){const i=e*t,a=c*i+n,o=u*i+r;s.push([a,o])}const e=(l+Math.floor(h-1)*t)/2,i=c*e+n,a=u*e+r;s.push([i,a])}s.push([a,o])}}return function(e){return"polygon"===e.type}(e)?new o.Z({rings:i,spatialReference:e.spatialReference}):new l.Z({paths:i,spatialReference:e.spatialReference})}(e,1e6);e=(0,g.Sx)(t,!0)}return s&&(e=m(e,s)),e}function R(e,t,s){if(Array.isArray(e)){const i=e[0];if(i>t){const s=f(i,t);e[0]=i+s*(-2*t)}else if(i<s){const t=f(i,s);e[0]=i+t*(-2*s)}}else{const i=e.x;if(i>t){const s=f(i,t);e=e.clone().offset(s*(-2*t),0)}else if(i<s){const t=f(i,s);e=e.clone().offset(t*(-2*s),0)}}return e}function w(e,t){let s=-1;for(let i=0;i<t.cutIndexes.length;i++){const n=t.cutIndexes[i],r=t.geometries[i],a=d(r);for(let e=0;e<a.length;e++){const t=a[e];t.some((s=>{if(s[0]<180)return!0;{let s=0;for(let e=0;e<t.length;e++){const i=t[e][0];s=i>s?i:s}s=Number(s.toFixed(9));const i=-360*f(s,180);for(let s=0;s<t.length;s++){const t=r.getPoint(e,s);r.setPoint(e,s,t.clone().offset(i,0))}return!0}}))}if(n===s){if(S(e))for(const t of d(r))e[n]=e[n].addRing(t);else if(z(e))for(const t of d(r))e[n]=e[n].addPath(t)}else s=n,e[n]=r}return e}async function b(e,t,s){if(!Array.isArray(e))return b([e],t);t&&"string"!=typeof t&&v.warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const n="string"==typeof t?t:t?.url??i.Z.geometryServiceUrl;let r,u,d,S,z,M,I,V,T=0;const A=[],Z=[];for(const t of e)if((0,a.Wi)(t))Z.push(t);else if(r||(r=t.spatialReference,u=(0,p.C5)(r),d=r.isWebMercator,M=d?102100:4326,S=h[M].maxX,z=h[M].minX,I=h[M].plus180Line,V=h[M].minus180Line),u)if("mesh"===t.type)Z.push(t);else if("point"===t.type)Z.push(R(t.clone(),S,z));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map((e=>R(e,S,z))),Z.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,u);Z.push(e.rings?new o.Z(e):e)}else if(t.extent){const e=t.extent,s=f(e.xmin,z)*(2*S);let i=0===s?t.clone():m(t.clone(),s);e.offset(s,0),e.intersects(I)&&e.xmax!==S?(T=e.xmax>T?e.xmax:T,i=F(i,d),A.push(i),Z.push("cut")):e.intersects(V)&&e.xmin!==z?(T=e.xmax*(2*S)>T?e.xmax*(2*S):T,i=F(i,d,360),A.push(i),Z.push("cut")):Z.push(i)}else Z.push(t.clone());else Z.push(t);let N=f(T,S),E=-90;const C=N,P=new l.Z;for(;N>0;){const e=360*N-180;P.addPath([[e,E],[e,-1*E]]),E*=-1,N--}if(A.length>0&&C>0){const t=w(A,await async function(e,t,s,i){const n="string"==typeof e?(0,_.mN)(e):e,r=t[0].spatialReference,a={...i,query:{...n.query,f:"json",sr:JSON.stringify(r),target:JSON.stringify({geometryType:(0,c.Ji)(t[0]),geometries:t}),cutter:JSON.stringify(s)}},o=await(0,y.default)(n.path+"/cut",a),{cutIndexes:l,geometries:u=[]}=o.data;return{cutIndexes:l,geometries:u.map((e=>{const t=(0,c.im)(e);return t.spatialReference=r,t}))}}(n,A,P,s)),i=[],r=[];for(let s=0;s<Z.length;s++){const n=Z[s];if("cut"!==n)r.push(n);else{const n=t.shift(),o=e[s];(0,a.pC)(o)&&"polygon"===o.type&&o.rings&&o.rings.length>1&&n.rings.length>=o.rings.length?(i.push(n),r.push("simplify")):r.push(d?(0,g.$)(n):n)}}if(!i.length)return r;const o=await async function(e,t,s){const i="string"==typeof e?(0,_.mN)(e):e,n=t[0].spatialReference,r=(0,c.Ji)(t[0]),a={...s,query:{...i.query,f:"json",sr:n.wkid?n.wkid:JSON.stringify(n),geometries:JSON.stringify(x(t))}};return function(e,t,s){const i=(0,c.q9)(t);return e.map((e=>{const t=i.fromJSON(e);return t.spatialReference=s,t}))}((await(0,y.default)(i.path+"/simplify",a)).data,r,n)}(n,i,s),l=[];for(let e=0;e<r.length;e++){const t=r[e];"simplify"!==t?l.push(t):l.push(d?(0,g.$)(o.shift()):o.shift())}return l}const D=[];for(let e=0;e<Z.length;e++){const t=Z[e];if("cut"!==t)D.push(t);else{const e=A.shift();D.push(!0===d?(0,g.$)(e):e)}}return D}},69285:(e,t,s)=>{s.d(t,{k:()=>a});var i=s(70586),n=s(67900),r=s(8744);function a(e,t,s){if((0,i.Wi)(t)||(0,i.Wi)(s)||s.vcsWkid||(0,r.fS)(t,s))return null;const a=(0,n._R)(t)/(0,n._R)(s);if(1===a)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){e&&null!=e.z&&(e.z*=t)}(e,a);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const s of e.paths)for(const e of s)e.length>2&&(e[2]*=t)}(e,a);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const s of e.rings)for(const e of s)e.length>2&&(e[2]*=t)}(e,a);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const s of e.points)s.length>2&&(s[2]*=t)}(e,a);case"extent":case"esriGeometryExtent":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,a);default:return null}}},98370:(e,t,s)=>{s.d(t,{y:()=>y,r:()=>h});var i=s(70586),n=s(35308),r=s(49600),a=s(82397),o=s(8744),l=s(62432),u=s(8418);class c{constructor(e,t,s){this._fieldDataCache=new Map,this._returnDistinctMap=new Map,this.returnDistinctValues=e.returnDistinctValues,this.fieldsIndex=s,this.featureAdapter=t;const i=e.outFields;if(i&&!i.includes("*")){this.outFields=i;let e=0;for(const t of i){const i=(0,l.hr)(t),n=this.fieldsIndex.get(i),r=n?null:(0,l.Jc)(i,s),a=n?n.name:(0,l.nu)(t)||"FIELD_EXP_"+e++;this._fieldDataCache.set(t,{alias:a,clause:r})}}}countDistinctValues(e){return this.returnDistinctValues?(e.forEach((e=>this.getAttributes(e))),this._returnDistinctMap.size):e.length}getAttributes(e){const t=this._processAttributesForOutFields(e);return this._processAttributesForDistinctValues(t)}getFieldValue(e,t,s){const i=s?s.name:t;let n=null;return this._fieldDataCache.has(i)?n=this._fieldDataCache.get(i).clause:s||(n=(0,l.Jc)(t,this.fieldsIndex),this._fieldDataCache.set(i,{alias:i,clause:n})),s?this.featureAdapter.getAttribute(e,i):n.calculateValue(e,this.featureAdapter)}getNormalizedValue(e,t){const s=t.normalizationType,i=t.normalizationTotal;let n=this.getFieldValue(e,t.field,t.fieldInfo);if(s&&Number.isFinite(n)){const r=this.getFieldValue(e,t.normalizationField,t.normalizationFieldInfo);n=(0,u.fk)(n,s,r,i)}return n}getExpressionValue(e,t,s,i){const n={attributes:this.featureAdapter.getAttributes(e),layer:{fields:this.fieldsIndex.fields}},r=i.createExecContext(n,s);return i.executeFunction(t,r)}getExpressionValues(e,t,s,i){const n={fields:this.fieldsIndex.fields};return e.map((e=>{const r={attributes:this.featureAdapter.getAttributes(e),layer:n},a=i.createExecContext(r,s);return i.executeFunction(t,a)}))}validateItem(e,t){return this._fieldDataCache.has(t)||this._fieldDataCache.set(t,{alias:t,clause:(0,l.Jc)(t,this.fieldsIndex)}),this._fieldDataCache.get(t).clause.testFeature(e,this.featureAdapter)}validateItems(e,t){return this._fieldDataCache.has(t)||this._fieldDataCache.set(t,{alias:t,clause:(0,l.Jc)(t,this.fieldsIndex)}),this._fieldDataCache.get(t).clause.testSet(e,this.featureAdapter)}_processAttributesForOutFields(e){const t=this.outFields;if(!t||!t.length)return this.featureAdapter.getAttributes(e);const s={};for(const i of t){const{alias:t,clause:n}=this._fieldDataCache.get(i);s[t]=n?n.calculateValue(e,this.featureAdapter):this.featureAdapter.getAttribute(e,t)}return s}_processAttributesForDistinctValues(e){if((0,i.Wi)(e)||!this.returnDistinctValues)return e;const t=this.outFields,s=[];if(t)for(const i of t){const{alias:t}=this._fieldDataCache.get(i);s.push(e[t])}else for(const t in e)s.push(e[t]);const n=`${(t||["*"]).join(",")}=${s.join(",")}`;let r=this._returnDistinctMap.get(n)||0;return this._returnDistinctMap.set(n,++r),r>1?null:e}}var h,f,m=s(37427),d=s(11490),p=s(35671),g=s(59266);class y{constructor(e,t,s){this.items=e,this.query=t,this.geometryType=s.geometryType,this.hasM=s.hasM,this.hasZ=s.hasZ,this.fieldsIndex=s.fieldsIndex,this.objectIdField=s.objectIdField,this.spatialReference=s.spatialReference,this.featureAdapter=s.featureAdapter}get size(){return this.items.length}createQueryResponseForCount(){const e=new c(this.query,this.featureAdapter,this.fieldsIndex);if(!this.query.outStatistics)return e.countDistinctValues(this.items);const{groupByFieldsForStatistics:t,having:s,outStatistics:i}=this.query,n=t?.length;if(!n)return 1;const r=new Map,a=new Map,o=new Set;for(const n of i){const{statisticType:i}=n,l="exceedslimit"!==i?n.onStatisticField:void 0;if(!a.has(l)){const s=[];for(const i of t){const t=this._getAttributeValues(e,i,r);s.push(t)}a.set(l,this._calculateUniqueValues(s,e.returnDistinctValues))}const u=a.get(l);for(const t in u){const{data:i,items:n}=u[t],r=i.join(",");s&&!e.validateItems(n,s)||o.add(r)}}return o.size}async createQueryResponse(){let e;return e=this.query.outStatistics?this.query.outStatistics.some((e=>"exceedslimit"===e.statisticType))?this._createExceedsLimitQueryResponse(this.query):await this._createStatisticsQueryResponse(this.query):this._createFeatureQueryResponse(this.query),this.query.returnQueryGeometry&&((0,o.JY)(this.query.outSR)&&!(0,o.fS)(this.query.geometry.spatialReference,this.query.outSR)?e.queryGeometry=(0,d.S2)({spatialReference:this.query.outSR,...(0,m.iV)(this.query.geometry,this.query.geometry.spatialReference,this.query.outSR)}):e.queryGeometry=(0,d.S2)({spatialReference:this.query.outSR,...this.query.geometry})),e}createSnappingResponse(e,t){const s=this.featureAdapter,n=function(e,t){return e?t?4:3:t?3:2}(this.hasZ,this.hasM),{x:r,y:a}=e.point,o="number"==typeof e.distance?e.distance:e.distance.x,l="number"==typeof e.distance?e.distance:e.distance.y,u={candidates:[]},c="esriGeometryPolygon"===this.geometryType,f=this._getPointCreator(e.point,this.spatialReference,t);for(const t of this.items){const m=s.getGeometry(t);if((0,i.Wi)(m))continue;const{coords:d,lengths:p}=m;if(e.types&h.EDGE){let e=0;for(let i=0;i<p.length;i++){const c=p[i];for(let i=0;i<c;i++,e+=n){const h=d[e],m=d[e+1];if(i!==c-1){const i=d[e+n],c=d[e+n+1],{x:p,y:g}=_(r,a,h,m,i,c),y=(r-p)/o,x=(a-g)/l,v=y*y+x*x;v<=1&&u.candidates.push({type:"edge",objectId:s.getObjectId(t),distance:Math.sqrt(v),target:f(p,g),start:f(h,m),end:f(i,c)})}}}}if(e.types&h.VERTEX){const e=c?d.length-n:d.length;for(let i=0;i<e;i+=n){const e=d[i],n=d[i+1],c=(r-e)/o,h=(a-n)/l,m=c*c+h*h;m<=1&&u.candidates.push({type:"vertex",objectId:s.getObjectId(t),distance:Math.sqrt(m),target:f(e,n)})}}}return u.candidates.sort(((e,t)=>e.distance-t.distance)),u}_getPointCreator(e,t,s){const n=(0,i.pC)(s)&&!(0,o.fS)(t,s)?e=>(0,m.iV)(e,t,s):e=>e;return null!=e.z&&null!=e.m?(t,s)=>n({x:t,y:s,z:e.z,m:e.m}):null!=e.z?(t,s)=>n({x:t,y:s,z:e.z}):null!=e.m?(t,s)=>n({x:t,y:s,m:e.m}):(e,t)=>n({x:e,y:t})}async createSummaryStatisticsResponse(e){const{field:t,valueExpression:s,normalizationField:i,normalizationType:n,normalizationTotal:r,minValue:a,maxValue:o,scale:l}=e,c=this.fieldsIndex.isDateField(t),h=await this._getDataValues({field:t,valueExpression:s,normalizationField:i,normalizationType:n,normalizationTotal:r,scale:l}),f=(0,u.S5)({normalizationType:n,normalizationField:i,minValue:a,maxValue:o}),m=this.fieldsIndex.get(t),d={value:.5,fieldType:m?.type},g=(0,p.qN)(m)?(0,u.H0)({values:h,supportsNullCount:f,percentileParams:d}):(0,u.i5)({values:h,minValue:a,maxValue:o,useSampleStdDev:!n,supportsNullCount:f,percentileParams:d});return(0,u.F_)(g,c)}async createUniqueValuesResponse(e){const{field:t,valueExpression:s,domain:i,returnAllCodedValues:n,scale:r}=e,a=await this._getDataValues({field:t,valueExpression:s,scale:r}),o=(0,u.eT)(a);return(0,u.Qm)(o,i,n)}async createClassBreaksResponse(e){const{field:t,valueExpression:s,normalizationField:i,normalizationType:n,normalizationTotal:r,classificationMethod:a,standardDeviationInterval:o,minValue:l,maxValue:c,numClasses:h,scale:f}=e,m=await this._getDataValues({field:t,valueExpression:s,normalizationField:i,normalizationType:n,normalizationTotal:r,scale:f}),d=(0,u.G2)(m,{field:t,normalizationField:i,normalizationType:n,normalizationTotal:r,classificationMethod:a,standardDeviationInterval:o,minValue:l,maxValue:c,numClasses:h});return(0,u.DL)(d,a)}async createHistogramResponse(e){const{field:t,valueExpression:s,normalizationField:i,normalizationType:n,normalizationTotal:r,classificationMethod:a,standardDeviationInterval:o,minValue:l,maxValue:c,numBins:h,scale:f}=e,m=await this._getDataValues({field:t,valueExpression:s,normalizationField:i,normalizationType:n,normalizationTotal:r,scale:f});return(0,u.oF)(m,{field:t,normalizationField:i,normalizationType:n,normalizationTotal:r,classificationMethod:a,standardDeviationInterval:o,minValue:l,maxValue:c,numBins:h})}_sortFeatures(e,t,s){if(e.length>1&&t&&t.length)for(const i of t.reverse()){const t=i.split(" "),n=t[0],r=this.fieldsIndex.get(n),a=t[1]&&"desc"===t[1].toLowerCase(),o=(0,u.Lq)(r?.type,a);e.sort(((e,t)=>{const i=s(e,n,r),a=s(t,n,r);return o(i,a)}))}}_createFeatureQueryResponse(e){const t=this.items,{geometryType:s,hasM:i,hasZ:n,objectIdField:r,spatialReference:o}=this,{outFields:l,outSR:u,quantizationParameters:c,resultRecordCount:h,resultOffset:f,returnZ:m,returnM:p}=e,g=null!=h&&t.length>(f||0)+h,y=l&&(l.includes("*")?[...this.fieldsIndex.fields]:l.map((e=>this.fieldsIndex.get(e))));return{exceededTransferLimit:g,features:this._createFeatures(e,t),fields:y,geometryType:s,hasM:i&&p,hasZ:n&&m,objectIdFieldName:r,spatialReference:(0,d.S2)(u||o),transform:c&&(0,a.vY)(c)||null}}_createFeatures(e,t){const s=new c(e,this.featureAdapter,this.fieldsIndex),{hasM:i,hasZ:n}=this,{orderByFields:r,quantizationParameters:o,returnGeometry:l,returnCentroid:u,maxAllowableOffset:h,resultOffset:f,resultRecordCount:m,returnZ:p=!1,returnM:g=!1}=e,y=n&&p,_=i&&g;let x=[],v=0;const S=[...t];if(this._sortFeatures(S,r,((e,t,i)=>s.getFieldValue(e,t,i))),l||u){const e=(0,a.vY)(o);if(l&&!u)for(const t of S)x[v++]={attributes:s.getAttributes(t),geometry:(0,d.Op)(this.geometryType,this.hasZ,this.hasM,this.featureAdapter.getGeometry(t),h,e,y,_)};else if(!l&&u)for(const t of S)x[v++]={attributes:s.getAttributes(t),centroid:(0,d.EG)(this,this.featureAdapter.getCentroid(t,this),e)};else for(const t of S)x[v++]={attributes:s.getAttributes(t),centroid:(0,d.EG)(this,this.featureAdapter.getCentroid(t,this),e),geometry:(0,d.Op)(this.geometryType,this.hasZ,this.hasM,this.featureAdapter.getGeometry(t),h,e,y,_)}}else for(const e of S){const t=s.getAttributes(e);t&&(x[v++]={attributes:t})}const z=f||0;if(null!=m){const e=z+m;x=x.slice(z,Math.min(x.length,e))}return x}_createExceedsLimitQueryResponse(e){let t=!1,s=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY,r=Number.POSITIVE_INFINITY;for(const t of e.outStatistics)if("exceedslimit"===t.statisticType){s=null!=t.maxPointCount?t.maxPointCount:Number.POSITIVE_INFINITY,n=null!=t.maxRecordCount?t.maxRecordCount:Number.POSITIVE_INFINITY,r=null!=t.maxVertexCount?t.maxVertexCount:Number.POSITIVE_INFINITY;break}if("esriGeometryPoint"===this.geometryType)t=this.items.length>s;else if(this.items.length>n)t=!0;else{const e=this.hasZ?this.hasM?4:3:this.hasM?3:2,s=this.featureAdapter;t=this.items.reduce(((e,t)=>{const n=s.getGeometry(t);return e+((0,i.pC)(n)&&n.coords.length||0)}),0)/e>r}return{fields:[{name:"exceedslimit",type:"esriFieldTypeInteger",alias:"exceedslimit",sqlType:"sqlTypeInteger",domain:null,defaultValue:null}],features:[{attributes:{exceedslimit:Number(t)}}]}}async _createStatisticsQueryResponse(e){const t={attributes:{}},s=[],i=new Map,n=new Map,r=new Map,a=new Map,o=new c(e,this.featureAdapter,this.fieldsIndex),l=e.outStatistics,{groupByFieldsForStatistics:u,having:h,orderByFields:f}=e,m=u&&u.length,d=!!m,p=d&&u[0],g=d&&!this.fieldsIndex.get(p);for(const e of l){const{outStatisticFieldName:l,statisticType:c}=e,f=e,y="exceedslimit"!==c?e.onStatisticField:void 0,_="percentile_disc"===c||"percentile_cont"===c,x="EnvelopeAggregate"===c||"CentroidAggregate"===c||"ConvexHullAggregate"===c,v=d&&1===m&&(y===p||g)&&"count"===c;if(d){if(!r.has(y)){const e=[];for(const t of u){const s=this._getAttributeValues(o,t,i);e.push(s)}r.set(y,this._calculateUniqueValues(e,o.returnDistinctValues))}const e=r.get(y);for(const t in e){const{count:s,data:n,items:r,itemPositions:c}=e[t],m=n.join(",");if(!h||o.validateItems(r,h)){const e=a.get(m)||{attributes:{}};if(x){e.aggregateGeometries||(e.aggregateGeometries={});const{aggregateGeometries:t,outStatisticFieldName:s}=await this._getAggregateGeometry(f,r);e.aggregateGeometries[s]=t}else{let t=null;if(v)t=s;else{const e=this._getAttributeValues(o,y,i),s=c.map((t=>e[t]));t=_&&"statisticParameters"in f?this._getPercentileValue(f,s):this._getStatisticValue(f,s,null,o.returnDistinctValues)}e.attributes[l]=t}u.forEach(((t,s)=>e.attributes[this.fieldsIndex.get(t)?t:`EXPR_${s+1}`]=n[s])),a.set(m,e)}}}else if(x){t.aggregateGeometries||(t.aggregateGeometries={});const{aggregateGeometries:e,outStatisticFieldName:s}=await this._getAggregateGeometry(f,this.items);t.aggregateGeometries[s]=e}else{const e=this._getAttributeValues(o,y,i);t.attributes[l]=_&&"statisticParameters"in f?this._getPercentileValue(f,e):this._getStatisticValue(f,e,n,o.returnDistinctValues)}s.push({name:l,alias:l,type:"esriFieldTypeDouble"})}const y=d?Array.from(a.values()):[t];return this._sortFeatures(y,f,((e,t)=>e.attributes[t])),{fields:s,features:y}}async _getAggregateGeometry(e,t){const i=await Promise.all([s.e(5837),s.e(247)]).then(s.bind(s,30247)),{statisticType:a,outStatisticFieldName:o}=e,{featureAdapter:l,spatialReference:u,geometryType:c,hasZ:h,hasM:f}=this,m=t.map((e=>(0,d.Op)(c,h,f,l.getGeometry(e)))),p=i.convexHull(u,m,!0)[0],g={aggregateGeometries:null,outStatisticFieldName:null};if("EnvelopeAggregate"===a){const e=p?(0,r._w)(p):(0,r.aO)(i.union(u,m));g.aggregateGeometries={...e,spatialReference:u},g.outStatisticFieldName=o||"extent"}else if("CentroidAggregate"===a){const e=p?(0,n.tO)(p):(0,n.$G)((0,r.aO)(i.union(u,m)));g.aggregateGeometries={x:e[0],y:e[1],spatialReference:u},g.outStatisticFieldName=o||"centroid"}else"ConvexHullAggregate"===a&&(g.aggregateGeometries=p,g.outStatisticFieldName=o||"convexHull");return g}_getStatisticValue(e,t,s,i){const{onStatisticField:n,statisticType:r}=e;let a=null;return a=s?.has(n)?s.get(n):(0,p.qN)(this.fieldsIndex.get(n))?(0,u.H0)({values:t,returnDistinct:i}):(0,u.i5)({values:t,minValue:null,maxValue:null,useSampleStdDev:!0}),s&&s.set(n,a),a["var"===r?"variance":r]}_getPercentileValue(e,t){const{onStatisticField:s,statisticParameters:i,statisticType:n}=e,{value:r,orderBy:a}=i,o=this.fieldsIndex.get(s);return(0,u.XL)(t,{value:r,orderBy:a,fieldType:o?.type,isDiscrete:"percentile_disc"===n})}_getAttributeValues(e,t,s){if(s.has(t))return s.get(t);const i=this.fieldsIndex.get(t),n=this.items.map((s=>e.getFieldValue(s,t,i)));return s.set(t,n),n}_getAttributeNormalizedValues(e,t){return this.items.map((s=>e.getNormalizedValue(s,{field:t.field,fieldInfo:this.fieldsIndex.get(t.field),normalizationField:t.normalizationField,normalizationFieldInfo:this.fieldsIndex.get(t.normalizationField),normalizationType:t.normalizationType,normalizationTotal:t.normalizationTotal})))}async _getAttributeExpressionValues(e,t,s){const{arcadeUtils:i}=await(0,g.LC)(),n=i.createFunction(t),r=s&&i.getViewInfo(s);return e.getExpressionValues(this.items,n,r,i)}_calculateUniqueValues(e,t){const s={},i=this.items,n=i.length;for(let r=0;r<n;r++){const n=i[r],a=[];for(const t of e)a.push(t[r]);const o=a.join(",");t?null==s[o]&&(s[o]={count:1,data:a,items:[n],itemPositions:[r]}):null==s[o]?s[o]={count:1,data:a,items:[n],itemPositions:[r]}:(s[o].count++,s[o].items.push(n),s[o].itemPositions.push(r))}return s}async _getDataValues(e){const t=new c(this.query,this.featureAdapter,this.fieldsIndex),{valueExpression:s,field:i,normalizationField:n,normalizationType:r,normalizationTotal:a,scale:o}=e,l=s?{viewingMode:"map",scale:o,spatialReference:this.query.outSR||this.spatialReference}:null;return s?this._getAttributeExpressionValues(t,s,l):this._getAttributeNormalizedValues(t,{field:i,normalizationField:n,normalizationType:r,normalizationTotal:a})}}function _(e,t,s,i,n,r){const a=n-s,o=r-i,l=a*a+o*o,u=(e-s)*a+(t-i)*o,c=Math.min(1,Math.max(0,u/l));return{x:s+a*c,y:i+o*c}}(f=h||(h={}))[f.NONE=0]="NONE",f[f.EDGE=1]="EDGE",f[f.VERTEX=2]="VERTEX"},62432:(e,t,s)=>{s.d(t,{nu:()=>p,hr:()=>d,Jc:()=>f,G3:()=>g,Of:()=>m,z4:()=>h,hO:()=>c});var i=s(20102),n=s(74669),r=s(41534);const a=new class{constructor(e,t){this._cache=new n.Z(e),this._invalidCache=new n.Z(t)}get(e,t){const s=`${t.uid}:${e}`,i=this._cache.get(s);if(i)return i;if(void 0!==this._invalidCache.get(s))return null;try{const i=r.WhereClause.create(e,t);return this._cache.put(s,i),i}catch{return this._invalidCache.put(s,null),null}}}(50,500),o="feature-store:unsupported-query",l=" as ",u=new Set(["esriFieldTypeOID","esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong","esriFieldTypeDate"]);function c(e,t){if(!t)return!0;const s=a.get(t,e);if(!s)throw new i.Z(o,"invalid SQL expression",{where:t});if(!s.isStandardized)throw new i.Z(o,"where clause is not standard",{where:t});return m(e,s.fieldNames,"where clause contains missing fields"),!0}function h(e,t,s){if(!t)return!0;const n=a.get(t,e);if(!n)throw new i.Z(o,"invalid SQL expression",{having:t});if(!n.isAggregate)throw new i.Z(o,"having does not contain a valid aggregate function",{having:t});const r=n.fieldNames;if(m(e,r,"having contains missing fields"),!n.getExpressions().every((t=>{const{aggregateType:i,field:n}=t,r=e.has(n)&&e.get(n).name;return s.some((t=>{const{onStatisticField:s,statisticType:n}=t;return(e.has(s)&&e.get(s).name)===r&&n.toLowerCase().trim()===i}))})))throw new i.Z(o,"expressions in having should also exist in outStatistics",{having:t});return!0}function f(e,t){return e?a.get(e,t):null}function m(e,t,s,n=!0){const r=[];for(const s of t)if("*"!==s&&!e.has(s))if(n){const t=d(s);try{const s=f(t,e);if(!s)throw new i.Z(o,"invalid SQL expression",{where:t});if(!s.isStandardized)throw new i.Z(o,"expression is not standard",{clause:s});m(e,s.fieldNames,"expression contains missing fields")}catch(e){const t=e&&e.details;if(t&&(t.clause||t.where))throw e;t&&t.missingFields?r.push(...t.missingFields):r.push(s)}}else r.push(s);if(r.length)throw new i.Z(o,s,{missingFields:r})}function d(e){return e.split(l)[0]}function p(e){return e.split(l)[1]}function g(e,t){const s=t.get(e);return!!s&&!u.has(s.type)}},37427:(e,t,s)=>{s.d(t,{_W:()=>f,iV:()=>p,oj:()=>y});var i=s(70586),n=s(44547),r=s(37455),a=s(8744),o=s(40488);const l=[0,0];function u(e,t){if(!t)return null;if("x"in t){const s={x:0,y:0};return[s.x,s.y]=e(t.x,t.y,l),null!=t.z&&(s.z=t.z),null!=t.m&&(s.m=t.m),s}if("xmin"in t){const s={xmin:0,ymin:0,xmax:0,ymax:0};return[s.xmin,s.ymin]=e(t.xmin,t.ymin,l),[s.xmax,s.ymax]=e(t.xmax,t.ymax,l),t.hasZ&&(s.zmin=t.zmin,s.zmax=t.zmax,s.hasZ=!0),t.hasM&&(s.mmin=t.mmin,s.mmax=t.mmax,s.hasM=!0),s}return"rings"in t?{rings:c(t.rings,e),hasM:t.hasM,hasZ:t.hasZ}:"paths"in t?{paths:c(t.paths,e),hasM:t.hasM,hasZ:t.hasZ}:"points"in t?{points:h(t.points,e),hasM:t.hasM,hasZ:t.hasZ}:void 0}function c(e,t){const s=[];for(const i of e)s.push(h(i,t));return s}function h(e,t){const s=[];for(const i of e){const e=t(i[0],i[1],[0,0]);s.push(e),i.length>2&&e.push(i[2]),i.length>3&&e.push(i[3])}return s}async function f(e,t){if(!t)return;const s=Array.isArray(e)?e.map((e=>(0,i.pC)(e.geometry)&&e.geometry.spatialReference)):[e];await(0,n.iQ)(s.map((e=>({source:e,dest:t}))))}const m=u.bind(null,o.hG),d=u.bind(null,o.R6);function p(e,t,s,i){if(!e)return e;if(s||(s=t,t=e.spatialReference),!(0,a.JY)(t)||!(0,a.JY)(s)||(0,a.fS)(t,s))return e;if((0,o.Q8)(t,s)){const t=(0,a.sS)(s)?m(e):d(e);return t.spatialReference=s,t}return(0,n.oj)(r.N,[e],t,s,null,i)[0]}const g=new class{constructor(){this._jobs=[],this._timer=null,this._process=this._process.bind(this)}async push(e,t,s){if(!e||!e.length||!t||!s||(0,a.fS)(t,s))return e;const i={geometries:e,inSpatialReference:t,outSpatialReference:s,resolve:null};return this._jobs.push(i),new Promise((e=>{i.resolve=e,null===this._timer&&(this._timer=setTimeout(this._process,10))}))}_process(){this._timer=null;const e=this._jobs.shift();if(!e)return;const{geometries:t,inSpatialReference:s,outSpatialReference:i,resolve:l}=e;(0,o.Q8)(s,i)?(0,a.sS)(i)?l(t.map(m)):l(t.map(d)):l((0,n.oj)(r.N,t,s,i,null,null)),this._jobs.length>0&&(this._timer=setTimeout(this._process,10))}};function y(e,t,s){return g.push(e,t,s)}},11490:(e,t,s)=>{s.d(t,{EG:()=>x,Op:()=>v,S2:()=>F,Up:()=>S,j6:()=>z,vF:()=>d});var i=s(35454),n=s(70586),r=s(67900),a=s(49600),o=s(33955),l=s(82526),u=s(8744),c=s(98732),h=s(5428),f=s(37427);const m=new i.X({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"}),d=Object.freeze({}),p=new h.Z,g=new h.Z,y=new h.Z,_={esriGeometryPoint:c.fQ,esriGeometryPolyline:c.J6,esriGeometryPolygon:c.eG,esriGeometryMultipoint:c.Iv};function x(e,t,s,i=e.hasZ,r=e.hasM){if((0,n.Wi)(t))return null;const a=e.hasZ&&i,o=e.hasM&&r;if(s){const n=(0,c.Nh)(y,t,e.hasZ,e.hasM,"esriGeometryPoint",s,i,r);return(0,c.fQ)(n,a,o)}return(0,c.fQ)(t,a,o)}function v(e,t,s,i,r,a,o=t,l=s){const u=t&&o,h=s&&l,f=(0,n.pC)(i)?"coords"in i?i:i.geometry:null;if((0,n.Wi)(f))return null;if(r){let i=(0,c.zj)(g,f,t,s,e,r,o,l);return a&&(i=(0,c.Nh)(y,i,u,h,e,a)),_[e](i,u,h)}if(a){const i=(0,c.Nh)(y,f,t,s,e,a,o,l);return _[e](i,u,h)}return(0,c.hY)(p,f,t,s,o,l),_[e](p,u,h)}async function S(e,t,s){const{outFields:i,orderByFields:n,groupByFieldsForStatistics:r,outStatistics:a}=e;if(i)for(let e=0;e<i.length;e++)i[e]=i[e].trim();if(n)for(let e=0;e<n.length;e++)n[e]=n[e].trim();if(r)for(let e=0;e<r.length;e++)r[e]=r[e].trim();if(a)for(let e=0;e<a.length;e++)a[e].onStatisticField&&(a[e].onStatisticField=a[e].onStatisticField.trim());return e.geometry&&!e.outSR&&(e.outSR=e.geometry.spatialReference),z(e,t,s)}async function z(e,t,i){if(!e)return null;let{where:c}=e;if(e.where=c=c&&c.trim(),(!c||/^1 *= *1$/.test(c)||t&&t===c)&&(e.where=null),!e.geometry)return e;let h=await async function(e){const{geometry:t,distance:i,units:n}=e;if(null==i||"vertexAttributes"in t)return t;const a=t.spatialReference,o=n?m.fromJSON(n):(0,r.qE)(a),l=a&&((0,u.sT)(a)||(0,u.sS)(a))?t:await(0,f._W)(a,u.Zn).then((()=>(0,f.iV)(t,u.Zn)));return(await async function(){return(await Promise.all([s.e(5837),s.e(247)]).then(s.bind(s,30247))).geodesicBuffer}())(l.spatialReference,l,i,o)}(e);if(e.distance=0,e.units=null,"esriSpatialRelEnvelopeIntersects"===e.spatialRel){const{spatialReference:t}=e.geometry;h=(0,a.aO)(h),h.spatialReference=t}e.geometry=h,await(0,f._W)(h.spatialReference,i);const p=(await(0,l.aX)((0,o.im)(h)))[0];if((0,n.Wi)(p))throw d;const g=p.toJSON(),y=await(0,f.iV)(g,g.spatialReference,i);if(!y)throw d;return y.spatialReference=i,e.geometry=y,e}function F(e){return e&&R in e?JSON.parse(JSON.stringify(e,w)):e}const R="_geVersion",w=(e,t)=>e!==R?t:void 0}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2916],{74669:(e,t,s)=>{s.d(t,{Z:()=>n});var i=s(69801);class n{constructor(e,t){this._storage=new i.WJ,this._storage.maxSize=e,t&&this._storage.registerRemoveFunc("",t)}put(e,t){this._storage.put(e,t,1,1)}pop(e){return this._storage.pop(e)}get(e){return this._storage.get(e)}clear(){this._storage.clearAll()}destroy(){this._storage.destroy()}}},69801:(e,t,s)=>{s.d(t,{WJ:()=>l,Xq:()=>o});var i,n,r=s(70586),a=s(44553);(n=i||(i={}))[n.ALL=0]="ALL",n[n.SOME=1]="SOME";class o{constructor(e,t,s){this._namespace=e,this._storage=t,this._removeFunc=!1,this._hit=0,this._miss=0,this._storage.register(this),this._namespace+=":",s&&(this._storage.registerRemoveFunc(this._namespace,s),this._removeFunc=!0)}destroy(){this._storage.clear(this._namespace),this._removeFunc&&this._storage.deregisterRemoveFunc(this._namespace),this._storage.deregister(this),this._storage=null}get namespace(){return this._namespace.slice(0,-1)}get hitRate(){return this._hit/(this._hit+this._miss)}get size(){return this._storage.size}get maxSize(){return this._storage.maxSize}resetHitRate(){this._hit=this._miss=0}put(e,t,s,i=0){this._storage.put(this._namespace+e,t,s,i)}get(e){const t=this._storage.get(this._namespace+e);return void 0===t?++this._miss:++this._hit,t}pop(e){const t=this._storage.pop(this._namespace+e);return void 0===t?++this._miss:++this._hit,t}updateSize(e,t,s){this._storage.updateSize(this._namespace+e,t,s)}clear(){this._storage.clear(this._namespace)}clearAll(){this._storage.clearAll()}getStats(){return this._storage.getStats()}resetStats(){this._storage.resetStats()}}class l{constructor(e=10485760){this._maxSize=e,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._removeFuncs=new a.Z,this._users=new a.Z}destroy(){this.clearAll(),this._removeFuncs.clear(),this._users.clear(),this._db=null}register(e){this._users.push(e)}deregister(e){this._users.removeUnordered(e)}registerRemoveFunc(e,t){this._removeFuncs.push([e,t])}deregisterRemoveFunc(e){this._removeFuncs.filterInPlace((t=>t[0]!==e))}get size(){return this._size}get maxSize(){return this._maxSize}set maxSize(e){this._maxSize=Math.max(e,0),this._checkSizeLimit()}put(e,t,s,n){const r=this._db.get(e);if(r&&(this._size-=r.size,this._db.delete(e),r.entry!==t&&this._notifyRemove(e,r.entry,i.ALL)),s>this._maxSize)return void this._notifyRemove(e,t,i.ALL);if(void 0===t)return void console.warn("Refusing to cache undefined entry ");if(!s||s<0)return void console.warn("Refusing to cache entry with invalid size "+s);const a=1+Math.max(n,-3)- -3;this._db.set(e,{entry:t,size:s,lifetime:a,lives:a}),this._size+=s,this._checkSizeLimit()}updateSize(e,t,s){const n=this._db.get(e);if(n&&n.entry===t){for(this._size-=n.size;s>this._maxSize;){const n=this._notifyRemove(e,t,i.SOME);if(!((0,r.pC)(n)&&n>0))return void this._db.delete(e);s=n}n.size=s,this._size+=s,this._checkSizeLimit()}}pop(e){const t=this._db.get(e);if(t)return this._size-=t.size,this._db.delete(e),++this._hit,t.entry;++this._miss}get(e){const t=this._db.get(e);if(void 0!==t)return this._db.delete(e),t.lives=t.lifetime,this._db.set(e,t),++this._hit,t.entry;++this._miss}getStats(){const e={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},t={},s=new Array;this._db.forEach(((e,i)=>{const n=e.lifetime;s[n]=(s[n]||0)+e.size,this._users.forAll((s=>{const n=s.namespace;if(i.startsWith(n)){const s=t[n]||0;t[n]=s+e.size}}))}));const i={};this._users.forAll((e=>{const s=e.namespace;if(!isNaN(e.hitRate)&&e.hitRate>0){const n=t[s]||0;t[s]=n,i[s]=Math.round(100*e.hitRate)+"%"}else i[s]="0%"}));const n=Object.keys(t);n.sort(((e,s)=>t[s]-t[e])),n.forEach((s=>e[s]=Math.round(t[s]/2**20)+"MB / "+i[s]));for(let t=s.length-1;t>=0;--t){const i=s[t];i&&(e["Priority "+(t+-3-1)]=Math.round(i/this.size*100)+"%")}return e}resetStats(){this._hit=this._miss=0,this._users.forAll((e=>e.resetHitRate()))}clear(e){this._db.forEach(((t,s)=>{s.startsWith(e)&&(this._size-=t.size,this._db.delete(s),this._notifyRemove(s,t.entry,i.ALL))}))}clearAll(){this._db.forEach(((e,t)=>this._notifyRemove(t,e.entry,i.ALL))),this._size=0,this._db.clear()}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,t,s){let i;return this._removeFuncs.some((n=>{if(e.startsWith(n[0])){const e=n[1](t,s);return"number"==typeof e&&(i=e),!0}return!1})),i}_checkSizeLimit(){if(!(this._size<=this._maxSize))for(const[e,t]of this._db){if(this._db.delete(e),t.lives<=1){this._size-=t.size;const s=this._notifyRemove(e,t.entry,i.SOME);(0,r.pC)(s)&&s>0&&(this._size+=s,t.lives=t.lifetime,t.size=s,this._db.set(e,t))}else--t.lives,this._db.set(e,t);if(this._size<=.9*this.maxSize)return}}}},10661:(e,t,s)=>{s.d(t,{s:()=>n});var i=s(39020);class n{constructor(){this._observers=[]}observe(e){return this._observers.includes(e)||this._observers.push(e),new i.X(this._observers,e)}notify(){const e=this._observers.slice();for(let t=0;t<e.length;++t){const s=e[t];s.onInvalidated(),s.onCommitted()}}}},37455:(e,t,s)=>{s.d(t,{N:()=>i});const i={convertToGEGeometry:function(e,t){return null==t?null:e.convertJSONToGeometry(t)},exportPoint:function(e,t,s){const i=new n(e.getPointX(t),e.getPointY(t),s),r=e.hasZ(t),a=e.hasM(t);return r&&(i.z=e.getPointZ(t)),a&&(i.m=e.getPointM(t)),i},exportPolygon:function(e,t,s){return new r(e.exportPaths(t),s,e.hasZ(t),e.hasM(t))},exportPolyline:function(e,t,s){return new a(e.exportPaths(t),s,e.hasZ(t),e.hasM(t))},exportMultipoint:function(e,t,s){return new o(e.exportPoints(t),s,e.hasZ(t),e.hasM(t))},exportExtent:function(e,t,s){const i=e.hasZ(t),n=e.hasM(t),r=new l(e.getXMin(t),e.getYMin(t),e.getXMax(t),e.getYMax(t),s);if(i){const s=e.getZExtent(t);r.zmin=s.vmin,r.zmax=s.vmax}if(n){const s=e.getMExtent(t);r.mmin=s.vmin,r.mmax=s.vmax}return r}};class n{constructor(e,t,s){this.x=e,this.y=t,this.spatialReference=s,this.z=void 0,this.m=void 0}}class r{constructor(e,t,s,i){this.rings=e,this.spatialReference=t,this.hasZ=void 0,this.hasM=void 0,s&&(this.hasZ=s),i&&(this.hasM=i)}}class a{constructor(e,t,s,i){this.paths=e,this.spatialReference=t,this.hasZ=void 0,this.hasM=void 0,s&&(this.hasZ=s),i&&(this.hasM=i)}}class o{constructor(e,t,s,i){this.points=e,this.spatialReference=t,this.hasZ=void 0,this.hasM=void 0,s&&(this.hasZ=s),i&&(this.hasM=i)}}class l{constructor(e,t,s,i,n){this.xmin=e,this.ymin=t,this.xmax=s,this.ymax=i,this.spatialReference=n,this.zmin=void 0,this.zmax=void 0,this.mmin=void 0,this.mmax=void 0}}},24470:(e,t,s)=>{s.d(t,{HH:()=>l,SO:()=>u,Ue:()=>r,al:()=>a,cS:()=>m,jE:()=>c,kK:()=>h,oJ:()=>o,r3:()=>f}),s(80442),s(22021);var i=s(70586),n=s(6570);function r(e=p){return[e[0],e[1],e[2],e[3]]}function a(e,t,s,i,n=r()){return n[0]=e,n[1]=t,n[2]=s,n[3]=i,n}function o(e,t=r()){return t[0]=e.xmin,t[1]=e.ymin,t[2]=e.xmax,t[3]=e.ymax,t}function l(e,t){return new n.Z({xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3],spatialReference:t})}function u(e){return function(e){return(0,i.Wi)(e)||e[0]>=e[2]?0:e[2]-e[0]}(e)*function(e){return e[1]>=e[3]?0:e[3]-e[1]}(e)}function c(e,t,s){return t>=e[0]&&s>=e[1]&&t<=e[2]&&s<=e[3]}function h(e,t){return Math.max(t[0],e[0])<=Math.min(t[2],e[2])&&Math.max(t[1],e[1])<=Math.min(t[3],e[3])}function f(e,t){return t[0]>=e[0]&&t[2]<=e[2]&&t[1]>=e[1]&&t[3]<=e[3]}function m(e){return e?function(e,t){return e!==t&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3]),e}(e,d):r(d)}const d=[1/0,1/0,-1/0,-1/0],p=[0,0,0,0]},82526:(e,t,s)=>{s.d(t,{aX:()=>b});var i=s(68773),n=s(20102),r=s(92604),a=s(70586),o=s(38913),l=s(58901),u=s(82971),c=s(33955);const h={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new l.Z({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:u.Z.WebMercator}),minus180Line:new l.Z({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:u.Z.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new l.Z({paths:[[[180,-180],[180,180]]],spatialReference:u.Z.WGS84}),minus180Line:new l.Z({paths:[[[-180,-180],[-180,180]]],spatialReference:u.Z.WGS84})}};function f(e,t){return Math.ceil((e-t)/(2*t))}function m(e,t){const s=d(e);for(const e of s)for(const s of e)s[0]+=t;return e}function d(e){return(0,c.oU)(e)?e.rings:e.paths}var p=s(8744),g=s(40488),y=(s(66577),s(3172)),_=s(17452);function x(e){return{geometryType:(0,c.Ji)(e[0]),geometries:e.map((e=>e.toJSON()))}}const v=r.Z.getLogger("esri.geometry.support.normalizeUtils");function S(e){return"polygon"===e[0].type}function z(e){return"polyline"===e[0].type}function F(e,t,s){if(t){const t=function(e,t){if(!(e instanceof l.Z||e instanceof o.Z)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw v.error(e),new n.Z(e)}const s=d(e),i=[];for(const e of s){const s=[];i.push(s),s.push([e[0][0],e[0][1]]);for(let i=0;i<e.length-1;i++){const n=e[i][0],r=e[i][1],a=e[i+1][0],o=e[i+1][1],l=Math.sqrt((a-n)*(a-n)+(o-r)*(o-r)),u=(o-r)/l,c=(a-n)/l,h=l/t;if(h>1){for(let e=1;e<=h-1;e++){const i=e*t,a=c*i+n,o=u*i+r;s.push([a,o])}const e=(l+Math.floor(h-1)*t)/2,i=c*e+n,a=u*e+r;s.push([i,a])}s.push([a,o])}}return function(e){return"polygon"===e.type}(e)?new o.Z({rings:i,spatialReference:e.spatialReference}):new l.Z({paths:i,spatialReference:e.spatialReference})}(e,1e6);e=(0,g.Sx)(t,!0)}return s&&(e=m(e,s)),e}function R(e,t,s){if(Array.isArray(e)){const i=e[0];if(i>t){const s=f(i,t);e[0]=i+s*(-2*t)}else if(i<s){const t=f(i,s);e[0]=i+t*(-2*s)}}else{const i=e.x;if(i>t){const s=f(i,t);e=e.clone().offset(s*(-2*t),0)}else if(i<s){const t=f(i,s);e=e.clone().offset(t*(-2*s),0)}}return e}function w(e,t){let s=-1;for(let i=0;i<t.cutIndexes.length;i++){const n=t.cutIndexes[i],r=t.geometries[i],a=d(r);for(let e=0;e<a.length;e++){const t=a[e];t.some((s=>{if(s[0]<180)return!0;{let s=0;for(let e=0;e<t.length;e++){const i=t[e][0];s=i>s?i:s}s=Number(s.toFixed(9));const i=-360*f(s,180);for(let s=0;s<t.length;s++){const t=r.getPoint(e,s);r.setPoint(e,s,t.clone().offset(i,0))}return!0}}))}if(n===s){if(S(e))for(const t of d(r))e[n]=e[n].addRing(t);else if(z(e))for(const t of d(r))e[n]=e[n].addPath(t)}else s=n,e[n]=r}return e}async function b(e,t,s){if(!Array.isArray(e))return b([e],t);t&&"string"!=typeof t&&v.warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const n="string"==typeof t?t:t?.url??i.Z.geometryServiceUrl;let r,u,d,S,z,M,I,V,T=0;const A=[],Z=[];for(const t of e)if((0,a.Wi)(t))Z.push(t);else if(r||(r=t.spatialReference,u=(0,p.C5)(r),d=r.isWebMercator,M=d?102100:4326,S=h[M].maxX,z=h[M].minX,I=h[M].plus180Line,V=h[M].minus180Line),u)if("mesh"===t.type)Z.push(t);else if("point"===t.type)Z.push(R(t.clone(),S,z));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map((e=>R(e,S,z))),Z.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,u);Z.push(e.rings?new o.Z(e):e)}else if(t.extent){const e=t.extent,s=f(e.xmin,z)*(2*S);let i=0===s?t.clone():m(t.clone(),s);e.offset(s,0),e.intersects(I)&&e.xmax!==S?(T=e.xmax>T?e.xmax:T,i=F(i,d),A.push(i),Z.push("cut")):e.intersects(V)&&e.xmin!==z?(T=e.xmax*(2*S)>T?e.xmax*(2*S):T,i=F(i,d,360),A.push(i),Z.push("cut")):Z.push(i)}else Z.push(t.clone());else Z.push(t);let N=f(T,S),E=-90;const C=N,P=new l.Z;for(;N>0;){const e=360*N-180;P.addPath([[e,E],[e,-1*E]]),E*=-1,N--}if(A.length>0&&C>0){const t=w(A,await async function(e,t,s,i){const n="string"==typeof e?(0,_.mN)(e):e,r=t[0].spatialReference,a={...i,query:{...n.query,f:"json",sr:JSON.stringify(r),target:JSON.stringify({geometryType:(0,c.Ji)(t[0]),geometries:t}),cutter:JSON.stringify(s)}},o=await(0,y.default)(n.path+"/cut",a),{cutIndexes:l,geometries:u=[]}=o.data;return{cutIndexes:l,geometries:u.map((e=>{const t=(0,c.im)(e);return t.spatialReference=r,t}))}}(n,A,P,s)),i=[],r=[];for(let s=0;s<Z.length;s++){const n=Z[s];if("cut"!==n)r.push(n);else{const n=t.shift(),o=e[s];(0,a.pC)(o)&&"polygon"===o.type&&o.rings&&o.rings.length>1&&n.rings.length>=o.rings.length?(i.push(n),r.push("simplify")):r.push(d?(0,g.$)(n):n)}}if(!i.length)return r;const o=await async function(e,t,s){const i="string"==typeof e?(0,_.mN)(e):e,n=t[0].spatialReference,r=(0,c.Ji)(t[0]),a={...s,query:{...i.query,f:"json",sr:n.wkid?n.wkid:JSON.stringify(n),geometries:JSON.stringify(x(t))}};return function(e,t,s){const i=(0,c.q9)(t);return e.map((e=>{const t=i.fromJSON(e);return t.spatialReference=s,t}))}((await(0,y.default)(i.path+"/simplify",a)).data,r,n)}(n,i,s),l=[];for(let e=0;e<r.length;e++){const t=r[e];"simplify"!==t?l.push(t):l.push(d?(0,g.$)(o.shift()):o.shift())}return l}const D=[];for(let e=0;e<Z.length;e++){const t=Z[e];if("cut"!==t)D.push(t);else{const e=A.shift();D.push(!0===d?(0,g.$)(e):e)}}return D}},69285:(e,t,s)=>{s.d(t,{k:()=>a});var i=s(70586),n=s(67900),r=s(8744);function a(e,t,s){if((0,i.Wi)(t)||(0,i.Wi)(s)||s.vcsWkid||(0,r.fS)(t,s))return null;const a=(0,n._R)(t)/(0,n._R)(s);if(1===a)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){e&&null!=e.z&&(e.z*=t)}(e,a);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const s of e.paths)for(const e of s)e.length>2&&(e[2]*=t)}(e,a);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const s of e.rings)for(const e of s)e.length>2&&(e[2]*=t)}(e,a);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const s of e.points)s.length>2&&(s[2]*=t)}(e,a);case"extent":case"esriGeometryExtent":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,a);default:return null}}},98370:(e,t,s)=>{s.d(t,{y:()=>y,r:()=>h});var i=s(70586),n=s(35308),r=s(49600),a=s(82397),o=s(8744),l=s(62432),u=s(8418);class c{constructor(e,t,s){this._fieldDataCache=new Map,this._returnDistinctMap=new Map,this.returnDistinctValues=e.returnDistinctValues,this.fieldsIndex=s,this.featureAdapter=t;const i=e.outFields;if(i&&!i.includes("*")){this.outFields=i;let e=0;for(const t of i){const i=(0,l.hr)(t),n=this.fieldsIndex.get(i),r=n?null:(0,l.Jc)(i,s),a=n?n.name:(0,l.nu)(t)||"FIELD_EXP_"+e++;this._fieldDataCache.set(t,{alias:a,clause:r})}}}countDistinctValues(e){return this.returnDistinctValues?(e.forEach((e=>this.getAttributes(e))),this._returnDistinctMap.size):e.length}getAttributes(e){const t=this._processAttributesForOutFields(e);return this._processAttributesForDistinctValues(t)}getFieldValue(e,t,s){const i=s?s.name:t;let n=null;return this._fieldDataCache.has(i)?n=this._fieldDataCache.get(i).clause:s||(n=(0,l.Jc)(t,this.fieldsIndex),this._fieldDataCache.set(i,{alias:i,clause:n})),s?this.featureAdapter.getAttribute(e,i):n.calculateValue(e,this.featureAdapter)}getNormalizedValue(e,t){const s=t.normalizationType,i=t.normalizationTotal;let n=this.getFieldValue(e,t.field,t.fieldInfo);if(s&&Number.isFinite(n)){const r=this.getFieldValue(e,t.normalizationField,t.normalizationFieldInfo);n=(0,u.fk)(n,s,r,i)}return n}getExpressionValue(e,t,s,i){const n={attributes:this.featureAdapter.getAttributes(e),layer:{fields:this.fieldsIndex.fields}},r=i.createExecContext(n,s);return i.executeFunction(t,r)}getExpressionValues(e,t,s,i){const n={fields:this.fieldsIndex.fields};return e.map((e=>{const r={attributes:this.featureAdapter.getAttributes(e),layer:n},a=i.createExecContext(r,s);return i.executeFunction(t,a)}))}validateItem(e,t){return this._fieldDataCache.has(t)||this._fieldDataCache.set(t,{alias:t,clause:(0,l.Jc)(t,this.fieldsIndex)}),this._fieldDataCache.get(t).clause.testFeature(e,this.featureAdapter)}validateItems(e,t){return this._fieldDataCache.has(t)||this._fieldDataCache.set(t,{alias:t,clause:(0,l.Jc)(t,this.fieldsIndex)}),this._fieldDataCache.get(t).clause.testSet(e,this.featureAdapter)}_processAttributesForOutFields(e){const t=this.outFields;if(!t||!t.length)return this.featureAdapter.getAttributes(e);const s={};for(const i of t){const{alias:t,clause:n}=this._fieldDataCache.get(i);s[t]=n?n.calculateValue(e,this.featureAdapter):this.featureAdapter.getAttribute(e,t)}return s}_processAttributesForDistinctValues(e){if((0,i.Wi)(e)||!this.returnDistinctValues)return e;const t=this.outFields,s=[];if(t)for(const i of t){const{alias:t}=this._fieldDataCache.get(i);s.push(e[t])}else for(const t in e)s.push(e[t]);const n=`${(t||["*"]).join(",")}=${s.join(",")}`;let r=this._returnDistinctMap.get(n)||0;return this._returnDistinctMap.set(n,++r),r>1?null:e}}var h,f,m=s(37427),d=s(11490),p=s(35671),g=s(59266);class y{constructor(e,t,s){this.items=e,this.query=t,this.geometryType=s.geometryType,this.hasM=s.hasM,this.hasZ=s.hasZ,this.fieldsIndex=s.fieldsIndex,this.objectIdField=s.objectIdField,this.spatialReference=s.spatialReference,this.featureAdapter=s.featureAdapter}get size(){return this.items.length}createQueryResponseForCount(){const e=new c(this.query,this.featureAdapter,this.fieldsIndex);if(!this.query.outStatistics)return e.countDistinctValues(this.items);const{groupByFieldsForStatistics:t,having:s,outStatistics:i}=this.query,n=t?.length;if(!n)return 1;const r=new Map,a=new Map,o=new Set;for(const n of i){const{statisticType:i}=n,l="exceedslimit"!==i?n.onStatisticField:void 0;if(!a.has(l)){const s=[];for(const i of t){const t=this._getAttributeValues(e,i,r);s.push(t)}a.set(l,this._calculateUniqueValues(s,e.returnDistinctValues))}const u=a.get(l);for(const t in u){const{data:i,items:n}=u[t],r=i.join(",");s&&!e.validateItems(n,s)||o.add(r)}}return o.size}async createQueryResponse(){let e;return e=this.query.outStatistics?this.query.outStatistics.some((e=>"exceedslimit"===e.statisticType))?this._createExceedsLimitQueryResponse(this.query):await this._createStatisticsQueryResponse(this.query):this._createFeatureQueryResponse(this.query),this.query.returnQueryGeometry&&((0,o.JY)(this.query.outSR)&&!(0,o.fS)(this.query.geometry.spatialReference,this.query.outSR)?e.queryGeometry=(0,d.S2)({spatialReference:this.query.outSR,...(0,m.iV)(this.query.geometry,this.query.geometry.spatialReference,this.query.outSR)}):e.queryGeometry=(0,d.S2)({spatialReference:this.query.outSR,...this.query.geometry})),e}createSnappingResponse(e,t){const s=this.featureAdapter,n=function(e,t){return e?t?4:3:t?3:2}(this.hasZ,this.hasM),{x:r,y:a}=e.point,o="number"==typeof e.distance?e.distance:e.distance.x,l="number"==typeof e.distance?e.distance:e.distance.y,u={candidates:[]},c="esriGeometryPolygon"===this.geometryType,f=this._getPointCreator(e.point,this.spatialReference,t);for(const t of this.items){const m=s.getGeometry(t);if((0,i.Wi)(m))continue;const{coords:d,lengths:p}=m;if(e.types&h.EDGE){let e=0;for(let i=0;i<p.length;i++){const c=p[i];for(let i=0;i<c;i++,e+=n){const h=d[e],m=d[e+1];if(i!==c-1){const i=d[e+n],c=d[e+n+1],{x:p,y:g}=_(r,a,h,m,i,c),y=(r-p)/o,x=(a-g)/l,v=y*y+x*x;v<=1&&u.candidates.push({type:"edge",objectId:s.getObjectId(t),distance:Math.sqrt(v),target:f(p,g),start:f(h,m),end:f(i,c)})}}}}if(e.types&h.VERTEX){const e=c?d.length-n:d.length;for(let i=0;i<e;i+=n){const e=d[i],n=d[i+1],c=(r-e)/o,h=(a-n)/l,m=c*c+h*h;m<=1&&u.candidates.push({type:"vertex",objectId:s.getObjectId(t),distance:Math.sqrt(m),target:f(e,n)})}}}return u.candidates.sort(((e,t)=>e.distance-t.distance)),u}_getPointCreator(e,t,s){const n=(0,i.pC)(s)&&!(0,o.fS)(t,s)?e=>(0,m.iV)(e,t,s):e=>e;return null!=e.z&&null!=e.m?(t,s)=>n({x:t,y:s,z:e.z,m:e.m}):null!=e.z?(t,s)=>n({x:t,y:s,z:e.z}):null!=e.m?(t,s)=>n({x:t,y:s,m:e.m}):(e,t)=>n({x:e,y:t})}async createSummaryStatisticsResponse(e){const{field:t,valueExpression:s,normalizationField:i,normalizationType:n,normalizationTotal:r,minValue:a,maxValue:o,scale:l}=e,c=this.fieldsIndex.isDateField(t),h=await this._getDataValues({field:t,valueExpression:s,normalizationField:i,normalizationType:n,normalizationTotal:r,scale:l}),f=(0,u.S5)({normalizationType:n,normalizationField:i,minValue:a,maxValue:o}),m=this.fieldsIndex.get(t),d={value:.5,fieldType:m?.type},g=(0,p.qN)(m)?(0,u.H0)({values:h,supportsNullCount:f,percentileParams:d}):(0,u.i5)({values:h,minValue:a,maxValue:o,useSampleStdDev:!n,supportsNullCount:f,percentileParams:d});return(0,u.F_)(g,c)}async createUniqueValuesResponse(e){const{field:t,valueExpression:s,domain:i,returnAllCodedValues:n,scale:r}=e,a=await this._getDataValues({field:t,valueExpression:s,scale:r}),o=(0,u.eT)(a);return(0,u.Qm)(o,i,n)}async createClassBreaksResponse(e){const{field:t,valueExpression:s,normalizationField:i,normalizationType:n,normalizationTotal:r,classificationMethod:a,standardDeviationInterval:o,minValue:l,maxValue:c,numClasses:h,scale:f}=e,m=await this._getDataValues({field:t,valueExpression:s,normalizationField:i,normalizationType:n,normalizationTotal:r,scale:f}),d=(0,u.G2)(m,{field:t,normalizationField:i,normalizationType:n,normalizationTotal:r,classificationMethod:a,standardDeviationInterval:o,minValue:l,maxValue:c,numClasses:h});return(0,u.DL)(d,a)}async createHistogramResponse(e){const{field:t,valueExpression:s,normalizationField:i,normalizationType:n,normalizationTotal:r,classificationMethod:a,standardDeviationInterval:o,minValue:l,maxValue:c,numBins:h,scale:f}=e,m=await this._getDataValues({field:t,valueExpression:s,normalizationField:i,normalizationType:n,normalizationTotal:r,scale:f});return(0,u.oF)(m,{field:t,normalizationField:i,normalizationType:n,normalizationTotal:r,classificationMethod:a,standardDeviationInterval:o,minValue:l,maxValue:c,numBins:h})}_sortFeatures(e,t,s){if(e.length>1&&t&&t.length)for(const i of t.reverse()){const t=i.split(" "),n=t[0],r=this.fieldsIndex.get(n),a=t[1]&&"desc"===t[1].toLowerCase(),o=(0,u.Lq)(r?.type,a);e.sort(((e,t)=>{const i=s(e,n,r),a=s(t,n,r);return o(i,a)}))}}_createFeatureQueryResponse(e){const t=this.items,{geometryType:s,hasM:i,hasZ:n,objectIdField:r,spatialReference:o}=this,{outFields:l,outSR:u,quantizationParameters:c,resultRecordCount:h,resultOffset:f,returnZ:m,returnM:p}=e,g=null!=h&&t.length>(f||0)+h,y=l&&(l.includes("*")?[...this.fieldsIndex.fields]:l.map((e=>this.fieldsIndex.get(e))));return{exceededTransferLimit:g,features:this._createFeatures(e,t),fields:y,geometryType:s,hasM:i&&p,hasZ:n&&m,objectIdFieldName:r,spatialReference:(0,d.S2)(u||o),transform:c&&(0,a.vY)(c)||null}}_createFeatures(e,t){const s=new c(e,this.featureAdapter,this.fieldsIndex),{hasM:i,hasZ:n}=this,{orderByFields:r,quantizationParameters:o,returnGeometry:l,returnCentroid:u,maxAllowableOffset:h,resultOffset:f,resultRecordCount:m,returnZ:p=!1,returnM:g=!1}=e,y=n&&p,_=i&&g;let x=[],v=0;const S=[...t];if(this._sortFeatures(S,r,((e,t,i)=>s.getFieldValue(e,t,i))),l||u){const e=(0,a.vY)(o);if(l&&!u)for(const t of S)x[v++]={attributes:s.getAttributes(t),geometry:(0,d.Op)(this.geometryType,this.hasZ,this.hasM,this.featureAdapter.getGeometry(t),h,e,y,_)};else if(!l&&u)for(const t of S)x[v++]={attributes:s.getAttributes(t),centroid:(0,d.EG)(this,this.featureAdapter.getCentroid(t,this),e)};else for(const t of S)x[v++]={attributes:s.getAttributes(t),centroid:(0,d.EG)(this,this.featureAdapter.getCentroid(t,this),e),geometry:(0,d.Op)(this.geometryType,this.hasZ,this.hasM,this.featureAdapter.getGeometry(t),h,e,y,_)}}else for(const e of S){const t=s.getAttributes(e);t&&(x[v++]={attributes:t})}const z=f||0;if(null!=m){const e=z+m;x=x.slice(z,Math.min(x.length,e))}return x}_createExceedsLimitQueryResponse(e){let t=!1,s=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY,r=Number.POSITIVE_INFINITY;for(const t of e.outStatistics)if("exceedslimit"===t.statisticType){s=null!=t.maxPointCount?t.maxPointCount:Number.POSITIVE_INFINITY,n=null!=t.maxRecordCount?t.maxRecordCount:Number.POSITIVE_INFINITY,r=null!=t.maxVertexCount?t.maxVertexCount:Number.POSITIVE_INFINITY;break}if("esriGeometryPoint"===this.geometryType)t=this.items.length>s;else if(this.items.length>n)t=!0;else{const e=this.hasZ?this.hasM?4:3:this.hasM?3:2,s=this.featureAdapter;t=this.items.reduce(((e,t)=>{const n=s.getGeometry(t);return e+((0,i.pC)(n)&&n.coords.length||0)}),0)/e>r}return{fields:[{name:"exceedslimit",type:"esriFieldTypeInteger",alias:"exceedslimit",sqlType:"sqlTypeInteger",domain:null,defaultValue:null}],features:[{attributes:{exceedslimit:Number(t)}}]}}async _createStatisticsQueryResponse(e){const t={attributes:{}},s=[],i=new Map,n=new Map,r=new Map,a=new Map,o=new c(e,this.featureAdapter,this.fieldsIndex),l=e.outStatistics,{groupByFieldsForStatistics:u,having:h,orderByFields:f}=e,m=u&&u.length,d=!!m,p=d&&u[0],g=d&&!this.fieldsIndex.get(p);for(const e of l){const{outStatisticFieldName:l,statisticType:c}=e,f=e,y="exceedslimit"!==c?e.onStatisticField:void 0,_="percentile_disc"===c||"percentile_cont"===c,x="EnvelopeAggregate"===c||"CentroidAggregate"===c||"ConvexHullAggregate"===c,v=d&&1===m&&(y===p||g)&&"count"===c;if(d){if(!r.has(y)){const e=[];for(const t of u){const s=this._getAttributeValues(o,t,i);e.push(s)}r.set(y,this._calculateUniqueValues(e,o.returnDistinctValues))}const e=r.get(y);for(const t in e){const{count:s,data:n,items:r,itemPositions:c}=e[t],m=n.join(",");if(!h||o.validateItems(r,h)){const e=a.get(m)||{attributes:{}};if(x){e.aggregateGeometries||(e.aggregateGeometries={});const{aggregateGeometries:t,outStatisticFieldName:s}=await this._getAggregateGeometry(f,r);e.aggregateGeometries[s]=t}else{let t=null;if(v)t=s;else{const e=this._getAttributeValues(o,y,i),s=c.map((t=>e[t]));t=_&&"statisticParameters"in f?this._getPercentileValue(f,s):this._getStatisticValue(f,s,null,o.returnDistinctValues)}e.attributes[l]=t}u.forEach(((t,s)=>e.attributes[this.fieldsIndex.get(t)?t:`EXPR_${s+1}`]=n[s])),a.set(m,e)}}}else if(x){t.aggregateGeometries||(t.aggregateGeometries={});const{aggregateGeometries:e,outStatisticFieldName:s}=await this._getAggregateGeometry(f,this.items);t.aggregateGeometries[s]=e}else{const e=this._getAttributeValues(o,y,i);t.attributes[l]=_&&"statisticParameters"in f?this._getPercentileValue(f,e):this._getStatisticValue(f,e,n,o.returnDistinctValues)}s.push({name:l,alias:l,type:"esriFieldTypeDouble"})}const y=d?Array.from(a.values()):[t];return this._sortFeatures(y,f,((e,t)=>e.attributes[t])),{fields:s,features:y}}async _getAggregateGeometry(e,t){const i=await Promise.all([s.e(5837),s.e(247)]).then(s.bind(s,30247)),{statisticType:a,outStatisticFieldName:o}=e,{featureAdapter:l,spatialReference:u,geometryType:c,hasZ:h,hasM:f}=this,m=t.map((e=>(0,d.Op)(c,h,f,l.getGeometry(e)))),p=i.convexHull(u,m,!0)[0],g={aggregateGeometries:null,outStatisticFieldName:null};if("EnvelopeAggregate"===a){const e=p?(0,r._w)(p):(0,r.aO)(i.union(u,m));g.aggregateGeometries={...e,spatialReference:u},g.outStatisticFieldName=o||"extent"}else if("CentroidAggregate"===a){const e=p?(0,n.tO)(p):(0,n.$G)((0,r.aO)(i.union(u,m)));g.aggregateGeometries={x:e[0],y:e[1],spatialReference:u},g.outStatisticFieldName=o||"centroid"}else"ConvexHullAggregate"===a&&(g.aggregateGeometries=p,g.outStatisticFieldName=o||"convexHull");return g}_getStatisticValue(e,t,s,i){const{onStatisticField:n,statisticType:r}=e;let a=null;return a=s?.has(n)?s.get(n):(0,p.qN)(this.fieldsIndex.get(n))?(0,u.H0)({values:t,returnDistinct:i}):(0,u.i5)({values:t,minValue:null,maxValue:null,useSampleStdDev:!0}),s&&s.set(n,a),a["var"===r?"variance":r]}_getPercentileValue(e,t){const{onStatisticField:s,statisticParameters:i,statisticType:n}=e,{value:r,orderBy:a}=i,o=this.fieldsIndex.get(s);return(0,u.XL)(t,{value:r,orderBy:a,fieldType:o?.type,isDiscrete:"percentile_disc"===n})}_getAttributeValues(e,t,s){if(s.has(t))return s.get(t);const i=this.fieldsIndex.get(t),n=this.items.map((s=>e.getFieldValue(s,t,i)));return s.set(t,n),n}_getAttributeNormalizedValues(e,t){return this.items.map((s=>e.getNormalizedValue(s,{field:t.field,fieldInfo:this.fieldsIndex.get(t.field),normalizationField:t.normalizationField,normalizationFieldInfo:this.fieldsIndex.get(t.normalizationField),normalizationType:t.normalizationType,normalizationTotal:t.normalizationTotal})))}async _getAttributeExpressionValues(e,t,s){const{arcadeUtils:i}=await(0,g.LC)(),n=i.createFunction(t),r=s&&i.getViewInfo(s);return e.getExpressionValues(this.items,n,r,i)}_calculateUniqueValues(e,t){const s={},i=this.items,n=i.length;for(let r=0;r<n;r++){const n=i[r],a=[];for(const t of e)a.push(t[r]);const o=a.join(",");t?null==s[o]&&(s[o]={count:1,data:a,items:[n],itemPositions:[r]}):null==s[o]?s[o]={count:1,data:a,items:[n],itemPositions:[r]}:(s[o].count++,s[o].items.push(n),s[o].itemPositions.push(r))}return s}async _getDataValues(e){const t=new c(this.query,this.featureAdapter,this.fieldsIndex),{valueExpression:s,field:i,normalizationField:n,normalizationType:r,normalizationTotal:a,scale:o}=e,l=s?{viewingMode:"map",scale:o,spatialReference:this.query.outSR||this.spatialReference}:null;return s?this._getAttributeExpressionValues(t,s,l):this._getAttributeNormalizedValues(t,{field:i,normalizationField:n,normalizationType:r,normalizationTotal:a})}}function _(e,t,s,i,n,r){const a=n-s,o=r-i,l=a*a+o*o,u=(e-s)*a+(t-i)*o,c=Math.min(1,Math.max(0,u/l));return{x:s+a*c,y:i+o*c}}(f=h||(h={}))[f.NONE=0]="NONE",f[f.EDGE=1]="EDGE",f[f.VERTEX=2]="VERTEX"},62432:(e,t,s)=>{s.d(t,{nu:()=>p,hr:()=>d,Jc:()=>f,G3:()=>g,Of:()=>m,z4:()=>h,hO:()=>c});var i=s(20102),n=s(74669),r=s(41534);const a=new class{constructor(e,t){this._cache=new n.Z(e),this._invalidCache=new n.Z(t)}get(e,t){const s=`${t.uid}:${e}`,i=this._cache.get(s);if(i)return i;if(void 0!==this._invalidCache.get(s))return null;try{const i=r.WhereClause.create(e,t);return this._cache.put(s,i),i}catch{return this._invalidCache.put(s,null),null}}}(50,500),o="feature-store:unsupported-query",l=" as ",u=new Set(["esriFieldTypeOID","esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong","esriFieldTypeDate"]);function c(e,t){if(!t)return!0;const s=a.get(t,e);if(!s)throw new i.Z(o,"invalid SQL expression",{where:t});if(!s.isStandardized)throw new i.Z(o,"where clause is not standard",{where:t});return m(e,s.fieldNames,"where clause contains missing fields"),!0}function h(e,t,s){if(!t)return!0;const n=a.get(t,e);if(!n)throw new i.Z(o,"invalid SQL expression",{having:t});if(!n.isAggregate)throw new i.Z(o,"having does not contain a valid aggregate function",{having:t});const r=n.fieldNames;if(m(e,r,"having contains missing fields"),!n.getExpressions().every((t=>{const{aggregateType:i,field:n}=t,r=e.has(n)&&e.get(n).name;return s.some((t=>{const{onStatisticField:s,statisticType:n}=t;return(e.has(s)&&e.get(s).name)===r&&n.toLowerCase().trim()===i}))})))throw new i.Z(o,"expressions in having should also exist in outStatistics",{having:t});return!0}function f(e,t){return e?a.get(e,t):null}function m(e,t,s,n=!0){const r=[];for(const s of t)if("*"!==s&&!e.has(s))if(n){const t=d(s);try{const s=f(t,e);if(!s)throw new i.Z(o,"invalid SQL expression",{where:t});if(!s.isStandardized)throw new i.Z(o,"expression is not standard",{clause:s});m(e,s.fieldNames,"expression contains missing fields")}catch(e){const t=e&&e.details;if(t&&(t.clause||t.where))throw e;t&&t.missingFields?r.push(...t.missingFields):r.push(s)}}else r.push(s);if(r.length)throw new i.Z(o,s,{missingFields:r})}function d(e){return e.split(l)[0]}function p(e){return e.split(l)[1]}function g(e,t){const s=t.get(e);return!!s&&!u.has(s.type)}},37427:(e,t,s)=>{s.d(t,{_W:()=>f,iV:()=>p,oj:()=>y});var i=s(70586),n=s(44547),r=s(37455),a=s(8744),o=s(40488);const l=[0,0];function u(e,t){if(!t)return null;if("x"in t){const s={x:0,y:0};return[s.x,s.y]=e(t.x,t.y,l),null!=t.z&&(s.z=t.z),null!=t.m&&(s.m=t.m),s}if("xmin"in t){const s={xmin:0,ymin:0,xmax:0,ymax:0};return[s.xmin,s.ymin]=e(t.xmin,t.ymin,l),[s.xmax,s.ymax]=e(t.xmax,t.ymax,l),t.hasZ&&(s.zmin=t.zmin,s.zmax=t.zmax,s.hasZ=!0),t.hasM&&(s.mmin=t.mmin,s.mmax=t.mmax,s.hasM=!0),s}return"rings"in t?{rings:c(t.rings,e),hasM:t.hasM,hasZ:t.hasZ}:"paths"in t?{paths:c(t.paths,e),hasM:t.hasM,hasZ:t.hasZ}:"points"in t?{points:h(t.points,e),hasM:t.hasM,hasZ:t.hasZ}:null}function c(e,t){const s=[];for(const i of e)s.push(h(i,t));return s}function h(e,t){const s=[];for(const i of e){const e=t(i[0],i[1],[0,0]);s.push(e),i.length>2&&e.push(i[2]),i.length>3&&e.push(i[3])}return s}async function f(e,t){if(!e||!t)return;const s=Array.isArray(e)?e.map((e=>(0,i.pC)(e.geometry)?e.geometry.spatialReference:null)).filter(i.pC):[e];await(0,n.iQ)(s.map((e=>({source:e,dest:t}))))}const m=u.bind(null,o.hG),d=u.bind(null,o.R6);function p(e,t,s,i){if(!e)return e;if(s||(s=t,t=e.spatialReference),!(0,a.JY)(t)||!(0,a.JY)(s)||(0,a.fS)(t,s))return e;if((0,o.Q8)(t,s)){const t=(0,a.sS)(s)?m(e):d(e);return t.spatialReference=s,t}return(0,n.oj)(r.N,[e],t,s,null,i)[0]}const g=new class{constructor(){this._jobs=[],this._timer=null,this._process=this._process.bind(this)}async push(e,t,s){if(!e||!e.length||!t||!s||(0,a.fS)(t,s))return e;const i={geometries:e,inSpatialReference:t,outSpatialReference:s,resolve:null};return this._jobs.push(i),new Promise((e=>{i.resolve=e,null===this._timer&&(this._timer=setTimeout(this._process,10))}))}_process(){this._timer=null;const e=this._jobs.shift();if(!e)return;const{geometries:t,inSpatialReference:s,outSpatialReference:i,resolve:l}=e;(0,o.Q8)(s,i)?(0,a.sS)(i)?l(t.map(m)):l(t.map(d)):l((0,n.oj)(r.N,t,s,i,null,null)),this._jobs.length>0&&(this._timer=setTimeout(this._process,10))}};function y(e,t,s){return g.push(e,t,s)}},11490:(e,t,s)=>{s.d(t,{EG:()=>x,Op:()=>v,S2:()=>F,Up:()=>S,j6:()=>z,vF:()=>d});var i=s(35454),n=s(70586),r=s(67900),a=s(49600),o=s(33955),l=s(82526),u=s(8744),c=s(98732),h=s(5428),f=s(37427);const m=new i.X({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"}),d=Object.freeze({}),p=new h.Z,g=new h.Z,y=new h.Z,_={esriGeometryPoint:c.fQ,esriGeometryPolyline:c.J6,esriGeometryPolygon:c.eG,esriGeometryMultipoint:c.Iv};function x(e,t,s,i=e.hasZ,r=e.hasM){if((0,n.Wi)(t))return null;const a=e.hasZ&&i,o=e.hasM&&r;if(s){const n=(0,c.Nh)(y,t,e.hasZ,e.hasM,"esriGeometryPoint",s,i,r);return(0,c.fQ)(n,a,o)}return(0,c.fQ)(t,a,o)}function v(e,t,s,i,r,a,o=t,l=s){const u=t&&o,h=s&&l,f=(0,n.pC)(i)?"coords"in i?i:i.geometry:null;if((0,n.Wi)(f))return null;if(r){let i=(0,c.zj)(g,f,t,s,e,r,o,l);return a&&(i=(0,c.Nh)(y,i,u,h,e,a)),_[e]?.(i,u,h)??null}if(a){const i=(0,c.Nh)(y,f,t,s,e,a,o,l);return _[e]?.(i,u,h)??null}return(0,c.hY)(p,f,t,s,o,l),_[e]?.(p,u,h)??null}async function S(e,t,s){const{outFields:i,orderByFields:n,groupByFieldsForStatistics:r,outStatistics:a}=e;if(i)for(let e=0;e<i.length;e++)i[e]=i[e].trim();if(n)for(let e=0;e<n.length;e++)n[e]=n[e].trim();if(r)for(let e=0;e<r.length;e++)r[e]=r[e].trim();if(a)for(let e=0;e<a.length;e++)a[e].onStatisticField&&(a[e].onStatisticField=a[e].onStatisticField.trim());return e.geometry&&!e.outSR&&(e.outSR=e.geometry.spatialReference),z(e,t,s)}async function z(e,t,i){if(!e)return null;let{where:c}=e;if(e.where=c=c&&c.trim(),(!c||/^1 *= *1$/.test(c)||t&&t===c)&&(e.where=null),!e.geometry)return e;let h=await async function(e){const{distance:t,units:i}=e,n=e.geometry;if(null==t||"vertexAttributes"in n)return n;const a=n.spatialReference,o=i?m.fromJSON(i):(0,r.qE)(a),l=a&&((0,u.sT)(a)||(0,u.sS)(a))?n:await(0,f._W)(a,u.Zn).then((()=>(0,f.iV)(n,u.Zn)));return(await async function(){return(await Promise.all([s.e(5837),s.e(247)]).then(s.bind(s,30247))).geodesicBuffer}())(l.spatialReference,l,t,o)}(e);if(e.distance=0,e.units=null,"esriSpatialRelEnvelopeIntersects"===e.spatialRel){const{spatialReference:t}=e.geometry;h=(0,a.aO)(h),h.spatialReference=t}e.geometry=h,await(0,f._W)(h.spatialReference,i);const p=(await(0,l.aX)((0,o.im)(h)))[0];if((0,n.Wi)(p))throw d;const g=p.toJSON(),y=await(0,f.iV)(g,g.spatialReference,i);if(!y)throw d;return y.spatialReference=i,e.geometry=y,e}function F(e){return e&&R in e?JSON.parse(JSON.stringify(e,w)):e}const R="_geVersion",w=(e,t)=>e!==R?t:void 0}}]);
|