@arcgis/core 6.0.0-next.48 → 6.0.0-next.49
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/Ground.js +1 -1
- package/analysis/AreaMeasurementAnalysis.d.ts +12 -10
- package/analysis/AreaMeasurementAnalysis.js +1 -1
- package/applications/Components/formatUtils.d.ts +3 -2
- package/applications/MapViewer/templateUtils.d.ts +4 -1
- package/applications/SceneViewer/sceneViewerUtils.d.ts +12 -1
- package/applications/SceneViewer/sceneViewerUtils.js +1 -1
- package/arcade/featureset/actions/SpatialFilter.js +1 -1
- package/arcade/functions/featuresetgeom.js +1 -1
- package/arcade/functions/geomasync.js +1 -1
- package/arcade/geometry/operatorsWorker.js +1 -1
- package/arcade/geometry/operatorsWorkerConnection.js +1 -1
- package/arcgisGlobal.d.ts +4 -0
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/063cc462524646cd45e8.js +1 -0
- package/assets/esri/core/workers/chunks/119c62e9c9c7440a6129.js +1 -0
- package/assets/esri/core/workers/chunks/14c04fde8d33b739b415.js +1 -0
- package/assets/esri/core/workers/chunks/27a91b52d1bee92b6f20.js +1 -0
- package/assets/esri/core/workers/chunks/31eb09e96f31bced71ad.js +1 -0
- package/assets/esri/core/workers/chunks/{056a815273653271bf75.js → 3236e18921955450fc0d.js} +5 -5
- package/assets/esri/core/workers/chunks/3ce7120056040af3bab1.js +1 -0
- package/assets/esri/core/workers/chunks/435dacf493aec07ff6e3.js +1 -0
- package/assets/esri/core/workers/chunks/4c26d6408ee7a3b9d163.js +1 -0
- package/assets/esri/core/workers/chunks/{73bf76a3a0418edb26a5.js → 506954fb374ea528d020.js} +1 -1
- package/assets/esri/core/workers/chunks/55db28616f810ca063b7.js +1 -0
- package/assets/esri/core/workers/chunks/59ae5bd0ee1bae7a9fb3.js +1 -0
- package/assets/esri/core/workers/chunks/630a36c4817f33f4cad2.js +1 -0
- package/assets/esri/core/workers/chunks/6779afc2d6ee46c301b5.js +1 -0
- package/assets/esri/core/workers/chunks/6a509ffb4852d694a097.js +1 -0
- package/assets/esri/core/workers/chunks/6d25a7071fceb707858a.js +1 -0
- package/assets/esri/core/workers/chunks/7a97eec9823941fd210f.js +29 -0
- package/assets/esri/core/workers/chunks/82bbf0c5e18fc1c795f4.js +1 -0
- package/assets/esri/core/workers/chunks/91019e9dff63107f8cb4.js +1 -0
- package/assets/esri/core/workers/chunks/{1345413ec0b4128849b1.js → 954f9854a9bf4a852b81.js} +1 -1
- package/assets/esri/core/workers/chunks/9846abf2d3991a15b2b5.js +1 -0
- package/assets/esri/core/workers/chunks/9f74b3f0f453bc957e3a.js +1 -0
- package/assets/esri/core/workers/chunks/a0e2a1c6f37454547193.js +1 -0
- package/assets/esri/core/workers/chunks/a1c45e8f5bba471b3905.js +1 -0
- package/assets/esri/core/workers/chunks/a2825285d46f8cd5d814.js +1 -0
- package/assets/esri/core/workers/chunks/{d4f6be8290ad0243e1b8.js → b511b5c68defefccde0b.js} +1 -1
- package/assets/esri/core/workers/chunks/bf81b3670b5323621e2d.js +1 -0
- package/assets/esri/core/workers/chunks/c4794d692934098988e7.js +1 -0
- package/assets/esri/core/workers/chunks/d0900a901197948bd7df.js +1 -0
- package/assets/esri/core/workers/chunks/d2ed93bbfa98395bbed7.js +1 -0
- package/assets/esri/core/workers/chunks/d486a8a61ff993f8202a.js +1 -0
- package/assets/esri/core/workers/chunks/e06036392a982dbf3ae3.js +1 -0
- package/assets/esri/core/workers/chunks/{773ba0909ccd3a034c31.js → ed1db6571b0c61fe4f91.js} +1 -1
- package/chunks/BlendWeights.glsl.js +4 -5
- package/chunks/Blur.glsl.js +10 -7
- package/chunks/BlurEmission.glsl.js +27 -7
- package/chunks/Clouds.glsl.js +2 -2
- package/chunks/Component.glsl.js +1 -1
- package/chunks/EdgeDetect.glsl.js +1 -1
- package/chunks/EdgeShader.glsl.js +1 -1
- package/chunks/EmissionComposite.glsl.js +2 -2
- package/chunks/Fog.glsl.js +4 -4
- package/chunks/GlobalIlluminationBlur.glsl.js +1 -1
- package/chunks/HighlightSharpApply.glsl.js +4 -1
- package/chunks/LineMarker.glsl.js +4 -4
- package/chunks/Magnifier.glsl.js +1 -1
- package/chunks/NoiseTextureAtlas.glsl.js +3 -3
- package/chunks/Pattern.glsl.js +35 -32
- package/chunks/{ChapmanAtmosphere.glsl.js → RealisticAtmosphere.glsl.js} +18 -9
- package/chunks/RealisticAtmosphereCompositing.glsl.js +35 -0
- package/chunks/SSAO.glsl.js +2 -2
- package/chunks/SimpleAtmosphere.glsl.js +1 -1
- package/config.js +1 -1
- package/core/accessorSupport/ObservableBase.js +1 -1
- package/core/accessorSupport/tracking/ObservationHandle.js +1 -1
- package/core/accessorSupport/tracking/SimpleObservable.js +1 -1
- package/core/accessorSupport/tracking/SimpleTrackingTarget.js +1 -1
- package/core/accessorSupport/tracking/TrackingTarget.js +1 -1
- package/core/quantity.js +1 -1
- package/core/timeUtils.js +1 -1
- package/geometry/coordinateConversion/CoordinateConversionModel.d.ts +258 -0
- package/geometry/coordinateConversion/CoordinateConversionModel.js +2 -0
- package/geometry/coordinateConversion/support/Conversion.d.ts +73 -0
- package/geometry/coordinateConversion/support/Conversion.js +2 -0
- package/geometry/coordinateConversion/support/Format.d.ts +131 -0
- package/geometry/coordinateConversion/support/Format.js +2 -0
- package/geometry/coordinateConversion/support/coordinateConversionUtils.js +2 -0
- package/geometry/coordinateConversion/support/formatUtils.js +2 -0
- package/geometry/coordinateConversion/types.d.ts +116 -0
- package/kernel.js +1 -1
- package/layers/IntegratedMesh3DTilesLayer.js +1 -1
- package/layers/IntegratedMeshLayer.js +1 -1
- package/layers/catalog/CatalogFootprintLayer.d.ts +2 -2
- package/layers/knowledgeGraph/KnowledgeGraphLayerDataManager.js +1 -1
- package/layers/knowledgeGraph/cypherUtils.js +1 -1
- package/layers/mixins/FeatureLayerBase.d.ts +2 -2
- package/layers/raster/formats/Lzw.js +1 -1
- package/layers/raster/formats/TiffDecoder.js +1 -1
- package/layers/raster/formats/tiffParser.js +1 -1
- package/layers/raster/formats/tiffTag.js +1 -1
- package/layers/support/IntegratedMeshSemantics.js +2 -0
- package/layers/support/VideoElement.js +1 -1
- package/legend/ActiveLayerInfo.js +1 -1
- package/package.json +2 -2
- package/symbols/FillSymbol3DLayer.d.ts +1 -4
- package/time/daylightUtils.d.ts +29 -0
- package/time/daylightUtils.js +2 -0
- package/time/timeZoneUtils.js +1 -1
- package/time/types.d.ts +57 -1
- package/views/2d/analysis/AreaMeasurement/AreaMeasurementTool.js +1 -1
- package/views/2d/analysis/AreaMeasurementAnalysisView2D.js +1 -1
- package/views/2d/engine/webgl/mesh/templates/shapingUtils.js +1 -1
- package/views/2d/layers/GeospatialPDFLayerView2D.js +1 -1
- package/views/2d/layers/MediaLayerView2D.js +1 -1
- package/views/2d/layers/TileLayerView2D.js +1 -1
- package/views/3d/GroundView3D.js +1 -1
- package/views/3d/analysis/AreaMeasurement/support/AreaMeasurementVisualization.js +1 -1
- package/views/3d/analysis/AreaMeasurementAnalysisView3D.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightRayIntersector.js +1 -1
- package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementController.js +1 -1
- package/views/3d/interactive/Manipulator3D.js +1 -1
- package/views/3d/interactive/Manipulator3DBase.js +2 -0
- package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/OutlineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/ParallelLineVisualElement.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/IntegratedMeshLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
- package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DSymbol.js +1 -1
- package/views/3d/layers/graphics/Graphics3DWebStyleSymbol.js +1 -1
- package/views/3d/layers/graphics/SymbolComplexity.js +1 -1
- package/views/3d/layers/graphics/webStyleUtils.js +1 -1
- package/views/3d/layers/i3s/I3SIntersectionHandler.js +1 -1
- package/views/3d/layers/i3s/I3SMaterialUtil.js +1 -1
- package/views/3d/layers/support/Tiles3DMeshIntersectionHandler.js +1 -1
- package/views/3d/layers/support/patternUtils.js +1 -1
- package/views/3d/state/controllers/GamepadKeyboardController.js +1 -1
- package/views/3d/support/GroundAndIMSurface.js +1 -1
- package/views/3d/support/engineContent/line.js +1 -1
- package/views/3d/support/hitTest.js +1 -1
- package/views/3d/support/pointsOfInterest/StableSurfaceCenter.js +1 -1
- package/views/3d/terrain/OverlayRenderer.js +1 -1
- package/views/3d/terrain/PatchGeometryFactory.js +1 -1
- package/views/3d/terrain/PatchRenderDataWaterproofness.js +1 -1
- package/views/3d/terrain/SphericalPatch.js +1 -1
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentObject.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterialInitParameters.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterialRepository.js +1 -1
- package/views/3d/webgl-engine/core/renderPasses/RenderPass.js +1 -1
- package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ScreenSpaceRayMarching.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/WaterColor.glsl.js +6 -4
- package/views/3d/webgl-engine/core/shaderLibrary/util/BlendModes.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/util/CloudsParallaxShading.glsl.js +10 -9
- package/views/3d/webgl-engine/core/shaderLibrary/util/GaussianSplatUnpacking.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/util/cameraUniforms.js +1 -1
- package/views/3d/webgl-engine/effects/WeatherFader.js +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/ChapmanApproximation.glsl.js +3 -3
- package/views/3d/webgl-engine/effects/atmosphere/{ChapmanAtmosphere.glsl.js → RealisticAtmosphere.glsl.js} +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/RealisticAtmosphere.js +2 -0
- package/views/3d/webgl-engine/effects/atmosphere/RealisticAtmosphereCompositing.glsl.js +2 -0
- package/views/3d/webgl-engine/effects/atmosphere/RealisticAtmosphereCompositingTechnique.js +2 -0
- package/views/3d/webgl-engine/effects/atmosphere/RealisticAtmosphereTechnique.js +2 -0
- package/views/3d/webgl-engine/effects/fog/Fog.js +1 -1
- package/views/3d/webgl-engine/effects/glow/BlurEmission.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/glow/applyEmissiveGlow.glsl.js +87 -41
- package/views/3d/webgl-engine/effects/precipitation/Precipitation.js +1 -1
- package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
- package/views/3d/webgl-engine/lib/EmissionComposite.glsl.js +1 -1
- package/views/3d/webgl-engine/lib/EmissionComposite.js +1 -1
- package/views/3d/webgl-engine/lib/ManagedTexture.js +1 -1
- package/views/3d/webgl-engine/lib/Octree.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
- package/views/3d/webgl-engine/lib/intersectorUtilsConversions.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/InstanceOctree.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
- package/views/3d/webgl-engine/materials/PatternMaterial.js +1 -1
- package/views/3d/webgl-engine/parts/RenderView.js +1 -1
- package/views/3d/webgl-engine/shaders/Pattern.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/PatternLayouts.js +1 -1
- package/views/3d/webgl-engine/shaders/PatternTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/PatternTechniqueConfiguration.js +1 -1
- package/views/SceneView.js +1 -1
- package/views/VideoView.js +1 -1
- package/views/interactive/Tooltip.js +1 -1
- package/views/interactive/snapping/RightAngleTriangleSnapper.js +1 -1
- package/views/interactive/snapping/SnappingAlgorithm.js +1 -1
- package/views/interactive/tooltip/content/TooltipContent.js +1 -1
- package/widgets/CoordinateConversion/CoordinateConversionViewModel.d.ts +3 -0
- package/widgets/CoordinateConversion/CoordinateConversionViewModel.js +1 -1
- package/widgets/CoordinateConversion.js +1 -1
- package/widgets/Sketch/SketchViewModel.js +1 -1
- package/assets/esri/core/workers/chunks/022565ef98a702ab952f.js +0 -1
- package/assets/esri/core/workers/chunks/163e97987e1f75610009.js +0 -1
- package/assets/esri/core/workers/chunks/1d57b1445afec89a7941.js +0 -1
- package/assets/esri/core/workers/chunks/3654672d772d11484883.js +0 -1
- package/assets/esri/core/workers/chunks/3af0ff5a0b82872aac38.js +0 -1
- package/assets/esri/core/workers/chunks/3b9415dfd7546aeec261.js +0 -1
- package/assets/esri/core/workers/chunks/5109b48666138df14038.js +0 -1
- package/assets/esri/core/workers/chunks/6b73dfc9252b32f1eae2.js +0 -1
- package/assets/esri/core/workers/chunks/6e4698879e7d8fbc4d12.js +0 -1
- package/assets/esri/core/workers/chunks/71295afd21fc5bc5ddbc.js +0 -1
- package/assets/esri/core/workers/chunks/794a9f116c4700bb1210.js +0 -1
- package/assets/esri/core/workers/chunks/8e0ecc7f55dd8bf2cf16.js +0 -1
- package/assets/esri/core/workers/chunks/9dece842ada6278c33ef.js +0 -1
- package/assets/esri/core/workers/chunks/a12e29f2cb78fdaa0753.js +0 -1
- package/assets/esri/core/workers/chunks/b70af9fb974ef9836efd.js +0 -1
- package/assets/esri/core/workers/chunks/c0f2b6a10bcc766318f5.js +0 -1
- package/assets/esri/core/workers/chunks/c248db5e4d92cfb3c4d1.js +0 -1
- package/assets/esri/core/workers/chunks/ce02adb527389b90223d.js +0 -1
- package/assets/esri/core/workers/chunks/d8eea5ffe05c620fac9e.js +0 -1
- package/assets/esri/core/workers/chunks/d997d81d0965c05447d4.js +0 -1
- package/assets/esri/core/workers/chunks/e1645882f54818c4036a.js +0 -1
- package/assets/esri/core/workers/chunks/e44679a0d271c1efb60d.js +0 -1
- package/assets/esri/core/workers/chunks/f11f40017ec97a2a6b5f.js +0 -29
- package/assets/esri/core/workers/chunks/f7f5d8256e63d303cbcb.js +0 -1
- package/assets/esri/core/workers/chunks/f87d5450190896e61ff8.js +0 -1
- package/assets/esri/core/workers/chunks/fdee2255f49b43056e9d.js +0 -1
- package/assets/esri/core/workers/chunks/ff1e614fde01781360fa.js +0 -1
- package/chunks/AtmosphereCompositing.glsl.js +0 -25
- package/views/3d/analysis/ShadowCast/sunlightUtils.js +0 -2
- package/views/3d/webgl-engine/effects/atmosphere/ChapmanAtmosphere.js +0 -2
- package/views/3d/webgl-engine/effects/atmosphere/ChapmanAtmosphereTechnique.js +0 -2
- package/views/3d/webgl-engine/shaders/AtmosphereCompositing.glsl.js +0 -2
- package/views/3d/webgl-engine/shaders/AtmosphereCompositingTechnique.js +0 -2
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[1560,9459],{38961(e,t,r){var i=r(32198),o=r(7762),l=r(36708),s=r(10107),n=r(64108),a=r(80559);let p=class extends o.A{constructor(e){super(e),this.getCollections=null}initialize(){this.addHandles((0,a.fm)(()=>this._refresh(),l.OH))}destroy(){this.getCollections=null}_refresh(){let e=this.getCollections?.();if(null==e)return void this.removeAll();let t=0;for(let r of e)null!=r&&(t=this._processCollection(t,r));this.splice(t)}_createNewInstance(e){return new o.A(e)}_processCollection(e,t){if(!t)return e;let r=this.itemFilterFunction??(e=>!!e);for(let i of t)if(i){if(r(i)){let t=this.indexOf(i,e);t>=0?t!==e&&this.reorder(i,e):this.add(i,e),++e}if(this.getChildrenFunction){let t=this.getChildrenFunction(i);if(Array.isArray(t))for(let r of t)e=this._processCollection(e,r);else e=this._processCollection(e,t)}}return e}};(0,i.Cg)([(0,s.MZ)()],p.prototype,"getCollections",void 0),(0,i.Cg)([(0,s.MZ)()],p.prototype,"getChildrenFunction",void 0),(0,i.Cg)([(0,s.MZ)()],p.prototype,"itemFilterFunction",void 0),p=(0,i.Cg)([(0,n.$K)("esri.core.CollectionFlattener")],p);const u=p;r.d(t,["A",0,u])},48163(e,t,r){function i(){return[0,0]}function o(e){return[e[0],e[1]]}function l(e,t){return[e,t]}function s(){return l(1,1)}function n(){return l(-1,-1)}function a(){return l(1,0)}function p(){return l(0,1)}r.d(t,{IA:()=>d,Un:()=>u,fA:()=>l,o8:()=>o,vt:()=>i});const u=s(),d=n(),y=a(),c=p();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:d,ONES:u,UNIT_X:y,UNIT_Y:c,ZEROS:[0,0],clone:o,create:i,freeze:function(e,t){return[e,t]},fromArray:function(e,t=[0,0]){let r=Math.min(2,e.length);for(let i=0;i<r;++i)t[i]=e[i];return t},fromValues:l,negativeOnes:n,ones:s,unitX:a,unitY:p,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},81583(e,t,r){r.d(t,{L:()=>n,g:()=>s});var i=r(60999),o=r(7762),l=r(92474);async function s(e,t){return await e.load(),n(e,t)}async function n(e,t){let r=[],s=(...e)=>{for(let t of e)null!=t&&(Array.isArray(t)?s(...t):o.A.isCollection(t)?t.forEach(e=>s(e)):(0,l.Zm)(t)&&r.push(t))};t(s);let n=null;if(await(0,i.Tj)(r,async e=>{let t=await(0,i.Ke)(function(e){return"loadAll"in e&&"function"==typeof e.loadAll}(e)?e.loadAll():e.load());!1===t.ok&&!n&&(n=t)}),n)throw n.error;return e}},82411(e,t,r){r.r(t),r.d(t,{default:()=>rt});var i=r(32198),o=r(7762),l=r(38961),s=r(49186),n=r(36563),a=r(4718),p=r(81583),u=r(53966),d=r(25728),y=r(17676),c=r(36708),g=r(84952),h=r(91429),f=r(16930),m=r(4146),v=r(52106),C=r(40124),w=r(56507),b=r(66552),M=r(92474),Z=r(61893),S=r(5443),F=r(41910),A=r(55156),T=r(60950),x=r(89808),j=r(99959);const O=Symbol("isBuildingGraphicOrigin");var I;class L extends j.A{get[(I=O,T.ym)](){return this.sublayer}get[A.e](){return this.sublayer}get[x.Q](){return this.sublayer}get[F.e7](){return this.sublayer}constructor(e){super(),this[I]=!0,this.type="building",this.sublayer=e}get layer(){return this.sublayer.layer}get id(){return`${this.layer.id}:__${this.sublayer.id}__`}}var R=r(18589),E=r(56372),P=r(4902),_=r(78888),q=r(10873),B=r(36005);let N=class extends((0,P.s)((0,d.M)(E.A))){constructor(e){super(e),this.title="",this.id=-1,this.modelName=null,this.isEmpty=null,this.legendEnabled=!0,this.visible=!0,this.opacity=1}readTitle(e,t){return"string"==typeof t.alias?t.alias:"string"==typeof t.name?t.name:""}readIdOnlyOnce(e){return-1===this.id?"number"==typeof e?e:-1:this.id}};(0,i.Cg)([(0,h.MZ)({type:String,json:{origins:{"web-scene":{write:!0},"portal-item":{write:!0}}}})],N.prototype,"title",void 0),(0,i.Cg)([(0,B.w)("service","title",["alias","name"])],N.prototype,"readTitle",null),(0,i.Cg)([(0,h.MZ)()],N.prototype,"layer",void 0),(0,i.Cg)([(0,h.MZ)({type:_.jz,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,isRequired:!0}}})],N.prototype,"id",void 0),(0,i.Cg)([(0,B.w)("service","id")],N.prototype,"readIdOnlyOnce",null),(0,i.Cg)([(0,h.MZ)((0,q.Qo)(String))],N.prototype,"modelName",void 0),(0,i.Cg)([(0,h.MZ)((0,q.Qo)(Boolean))],N.prototype,"isEmpty",void 0),(0,i.Cg)([(0,h.MZ)({type:Boolean,nonNullable:!0})],N.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,h.MZ)({type:Boolean,json:{name:"visibility",write:!0}})],N.prototype,"visible",void 0),(0,i.Cg)([(0,h.MZ)({type:Number,json:{write:!0}})],N.prototype,"opacity",void 0),N=(0,i.Cg)([(0,h.$K)("esri.layers.buildingSublayers.BuildingSublayer")],N);var K=r(4071),$=r(15426),k=r(17036),D=r(95466),Q=r(30524),G=r(83898),U=r(50805),J=r(41214),z=r(97552),V=r(54218),H=r(30291),W=r(88625),X=r(66480),Y=r(45671),ee=r(93223);const te=(0,k.p)();let re=class extends((0,M.WV)((0,Z.g)(N))){constructor(e){super(e),this.type="building-component",this.nodePages=null,this.materialDefinitions=[],this.textureSetDefinitions=[],this.geometryDefinitions=[],this.indexInfo=null,this.serviceUpdateTimeStamp=null,this.store=null,this.attributeStorageInfo=[],this.fields=[],this.associatedLayer=null,this.outFields=null,this.listMode="show",this.renderer=null,this.definitionExpression=null,this.popupEnabled=!0,this.popupTemplate=null,this.layerType="3d-object"}initialize(){this._set("graphicOrigin",new L(this))}get parsedUrl(){return this.layer?{path:`${this.layer.parsedUrl?.path}/sublayers/${this.id}`,query:this.layer.parsedUrl?.query}:{path:""}}get fieldsIndex(){return new D.A(this.fields)}readAssociatedLayer(e,t){let r=this.layer.associatedFeatureServiceItem,i=t.associatedLayerID;return null!=r&&"number"==typeof i?new R.default({portalItem:r,customParameters:this.customParameters,layerId:i}):null}get objectIdField(){if(null!=this.fields)for(let e of this.fields)if("oid"===e.type)return e.name;return""}get globalIdField(){if(null!=this.fields)for(let e of this.fields)if("global-id"===e.type)return e.name;return""}get displayField(){return null==this.associatedLayer?void 0:this.associatedLayer.displayField}get apiKey(){return this.layer.apiKey}get customParameters(){return this.layer.customParameters}get fullExtent(){return this.layer.fullExtent}get spatialReference(){return this.layer.spatialReference}get version(){return this.layer.version}get elevationInfo(){return this.layer.elevationInfo}get minScale(){return this.layer.minScale}get maxScale(){return this.layer.maxScale}get effectiveScaleRange(){return this.layer.effectiveScaleRange}get defaultPopupTemplate(){return this.createPopupTemplate()}load(e){let t=null==e?null:e.signal,r=this._fetchService(t).then(()=>{this.indexInfo=(0,G.F)(this.parsedUrl.path,this.rootNode,this.nodePages,this.customParameters,this.apiKey,u.A.getLogger(this),t),this.indexInfo.catch(()=>{})});return this.addResolvingPromise(r),Promise.resolve(this)}createPopupTemplate(e){return(0,H.tn)(this,e)}async _fetchService(e){let t=(await(0,w.A)(this.parsedUrl.path,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e})).data;this.read(t,{origin:"service",url:this.parsedUrl})}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,t){let r=this.getField(e)?.domain??null;return this.associatedLayer?(0,$.Vq)(this.associatedLayer,e,t,r):r}getFeatureType(e){return e&&null!=this.associatedLayer?this.associatedLayer.getFeatureType(e):null}get types(){return null==this.associatedLayer?[]:this.associatedLayer.types??[]}get typeIdField(){return null==this.associatedLayer?null:this.associatedLayer.typeIdField}get geometryType(){return"3d-object"===this.layerType?"mesh":"point"}get profile(){return"3d-object"===this.layerType?"mesh-pyramids":"points"}get capabilities(){let{query:e,operations:{supportsQuery:t},data:{supportsZ:r,supportsM:i,isVersioned:o}}=null!=this.associatedLayer&&this.associatedLayer.capabilities?this.associatedLayer.capabilities:K.P;return{query:e,operations:{supportsQuery:t},data:{supportsZ:r,supportsM:i,isVersioned:o}}}createQuery(){let e=new z.A;return"mesh"!==this.geometryType&&(e.returnGeometry=!0,e.returnZ=!0),e.where=this.definitionExpression||"1=1",e.sqlFormat="standard",e}queryExtent(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryExtent(e||this.createQuery(),t))}queryFeatureCount(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryFeatureCount(e||this.createQuery(),t))}queryFeatures(e,t){return this._getAssociatedLayerForQuery().then(r=>r.queryFeatures(e||this.createQuery(),t)).then(e=>{if(e?.features)for(let t of e.features)t.layer=this.layer,t.sourceLayer=this,t.origin=this.graphicOrigin;return e})}async queryObjectIds(e,t){return(await(await this._getAssociatedLayerForQuery()).queryObjectIds(e||this.createQuery(),t)).filter(V.Et)}async queryCachedAttributes(e,t){let r=(0,Q.hL)(this.fieldsIndex,await(0,Y.TO)(this,(0,Y.D8)(this)));return(0,X.s1)(this.parsedUrl.path,this.attributeStorageInfo,e,t,r,this.apiKey,this.customParameters)}async queryCachedFeature(e,t){let r=await this.queryCachedAttributes(e,[t]);if(!r||0===r.length)throw new s.A("scenelayer:feature-not-in-cached-data","Feature not found in cached data");return new v.A({attributes:r[0],layer:this,sourceLayer:this})}getFieldUsageInfo(e){return this.fieldsIndex.has(e)?{supportsLabelingInfo:!1,supportsRenderer:!1,supportsPopupTemplate:!1,supportsLayerQuery:!1}:{supportsLabelingInfo:!1,supportsRenderer:!0,supportsPopupTemplate:!0,supportsLayerQuery:null!=this.associatedLayer}}get isUsedAsGroundLayer(){return!1}_getAssociatedLayerForQuery(){let e=this.associatedLayer;return null!=e&&e.loaded?Promise.resolve(e):this._loadAssociatedLayerForQuery()}async _loadAssociatedLayerForQuery(){if(await this.load(),null==this.associatedLayer)throw new s.A("buildingscenelayer:query-not-available","BuildingSceneLayer component layer queries are not available without an associated feature layer",{layer:this});try{await this.associatedLayer.load()}catch(e){throw new s.A("buildingscenelayer:query-not-available","BuildingSceneLayer associated feature layer could not be loaded",{layer:this,error:e})}return this.associatedLayer}};(0,i.Cg)([(0,h.MZ)({readOnly:!0})],re.prototype,"parsedUrl",null),(0,i.Cg)([(0,h.MZ)({type:U.W4,readOnly:!0})],re.prototype,"nodePages",void 0),(0,i.Cg)([(0,h.MZ)({type:[U.uV],readOnly:!0})],re.prototype,"materialDefinitions",void 0),(0,i.Cg)([(0,h.MZ)({type:[U.Ot],readOnly:!0})],re.prototype,"textureSetDefinitions",void 0),(0,i.Cg)([(0,h.MZ)({type:[U.L0],readOnly:!0})],re.prototype,"geometryDefinitions",void 0),(0,i.Cg)([(0,h.MZ)({readOnly:!0})],re.prototype,"serviceUpdateTimeStamp",void 0),(0,i.Cg)([(0,h.MZ)({readOnly:!0})],re.prototype,"store",void 0),(0,i.Cg)([(0,h.MZ)({type:String,readOnly:!0,json:{read:{source:"store.rootNode"}}})],re.prototype,"rootNode",void 0),(0,i.Cg)([(0,h.MZ)({readOnly:!0})],re.prototype,"attributeStorageInfo",void 0),(0,i.Cg)([(0,h.MZ)(te.fields)],re.prototype,"fields",void 0),(0,i.Cg)([(0,h.MZ)({readOnly:!0})],re.prototype,"fieldsIndex",null),(0,i.Cg)([(0,h.MZ)({readOnly:!0,type:R.default})],re.prototype,"associatedLayer",void 0),(0,i.Cg)([(0,B.w)("service","associatedLayer",["associatedLayerID"])],re.prototype,"readAssociatedLayer",null),(0,i.Cg)([(0,h.MZ)(te.outFields)],re.prototype,"outFields",void 0),(0,i.Cg)([(0,h.MZ)({type:String,readOnly:!0})],re.prototype,"objectIdField",null),(0,i.Cg)([(0,h.MZ)({type:String,readOnly:!0})],re.prototype,"globalIdField",null),(0,i.Cg)([(0,h.MZ)({readOnly:!0,type:String,json:{read:!1}})],re.prototype,"displayField",null),(0,i.Cg)([(0,h.MZ)({readOnly:!0,type:String})],re.prototype,"apiKey",null),(0,i.Cg)([(0,h.MZ)({readOnly:!0,type:String})],re.prototype,"customParameters",null),(0,i.Cg)([(0,h.MZ)({readOnly:!0,type:S.A})],re.prototype,"fullExtent",null),(0,i.Cg)([(0,h.MZ)({readOnly:!0,type:f.A})],re.prototype,"spatialReference",null),(0,i.Cg)([(0,h.MZ)({readOnly:!0})],re.prototype,"version",null),(0,i.Cg)([(0,h.MZ)({readOnly:!0,type:W.A})],re.prototype,"elevationInfo",null),(0,i.Cg)([(0,h.MZ)({readOnly:!0,type:Number})],re.prototype,"minScale",null),(0,i.Cg)([(0,h.MZ)({readOnly:!0,type:Number})],re.prototype,"maxScale",null),(0,i.Cg)([(0,h.MZ)({readOnly:!0,type:Number})],re.prototype,"effectiveScaleRange",null),(0,i.Cg)([(0,h.MZ)({type:["hide","show"],json:{write:!0}})],re.prototype,"listMode",void 0),(0,i.Cg)([(0,h.MZ)({types:J.XJ,json:{origins:{service:{read:{source:"drawingInfo.renderer"}}},name:"layerDefinition.drawingInfo.renderer",write:!0},value:null})],re.prototype,"renderer",void 0),(0,i.Cg)([(0,h.MZ)({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],re.prototype,"definitionExpression",void 0),(0,i.Cg)([(0,h.MZ)(q.M6)],re.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,h.MZ)({type:C.A,json:{read:{source:"popupInfo"},write:{target:"popupInfo"}}})],re.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,h.MZ)({readOnly:!0,type:String,json:{origins:{service:{read:{source:"store.normalReferenceFrame"}}},read:!1}})],re.prototype,"normalReferenceFrame",void 0),(0,i.Cg)([(0,h.MZ)({readOnly:!0,json:{read:!1}})],re.prototype,"defaultPopupTemplate",null),(0,i.Cg)([(0,h.MZ)({readOnly:!0})],re.prototype,"graphicOrigin",void 0),(0,i.Cg)([(0,h.MZ)()],re.prototype,"types",null),(0,i.Cg)([(0,h.MZ)()],re.prototype,"typeIdField",null),(0,i.Cg)([(0,h.MZ)({json:{write:!1}}),(0,ee.e)(new b.J({"3DObject":"3d-object",Point:"point"}))],re.prototype,"layerType",void 0),(0,i.Cg)([(0,h.MZ)()],re.prototype,"geometryType",null),(0,i.Cg)([(0,h.MZ)()],re.prototype,"profile",null),(0,i.Cg)([(0,h.MZ)({readOnly:!0,json:{read:!1}})],re.prototype,"capabilities",null),(0,i.Cg)([(0,h.MZ)({readOnly:!0})],re.prototype,"statisticsInfo",void 0),(0,i.Cg)([(0,h.MZ)()],re.prototype,"isUsedAsGroundLayer",null),re=(0,i.Cg)([(0,h.$K)("esri.layers.buildingSublayers.BuildingComponentSublayer")],re);var ie=r(67076);function oe(e,t){e.forEach(e=>{t(e),"building-group"===e.type&&oe(e.sublayers,t)})}const le={type:o.A,readOnly:!0,json:{origins:{service:{read:{source:"sublayers",reader:se}}},read:!1}};function se(e,t,r){if(e&&Array.isArray(e))return new o.A(e.map(e=>{let t=function(e){return"group"===e.layerType?ne:re}(e);if(t){let i=new t;return i.read(e,r),i}return r?.messages&&e&&r.messages.push(new ie.A("building-scene-layer:unsupported-sublayer-type","Building scene sublayer of type '"+(e.type||"unknown")+"' are not supported",{definition:e,context:r})),null}))}let ne=class extends N{constructor(e){super(e),this.type="building-group",this.listMode="show",this.sublayers=null}loadAll(){return(0,p.L)(this,e=>oe(this.sublayers,t=>{"building-group"!==t.type&&e(t)}))}static{this.sublayersProperty=le}static{this.readSublayers=se}};(0,i.Cg)([(0,h.MZ)({type:["hide","show","hide-children"],json:{write:!0}})],ne.prototype,"listMode",void 0),(0,i.Cg)([(0,h.MZ)(le)],ne.prototype,"sublayers",void 0),ne=(0,i.Cg)([(0,h.$K)("esri.layers.buildingSublayers.BuildingGroupSublayer")],ne);var ae=r(52136),pe=r(18768),ue=r(69208),de=r(34287),ye=r(8303),ce=r(25036),ge=r(58947),he=r(92009),fe=r(25482),me=r(13069);let ve=class extends fe.o{constructor(){super(...arguments),this.type=null}};(0,i.Cg)([(0,h.MZ)({type:String,readOnly:!0,json:{write:{isRequired:!0}}})],ve.prototype,"type",void 0),ve=(0,i.Cg)([(0,h.$K)("esri.layers.support.BuildingFilterAuthoringInfo")],ve);const Ce=ve;var we;let be=we=class extends fe.o{constructor(){super(...arguments),this.filterType=null,this.filterValues=null}clone(){return new we({filterType:this.filterType,filterValues:(0,a.o8)(this.filterValues)})}};(0,i.Cg)([(0,h.MZ)({type:String,json:{write:{isRequired:!0}}})],be.prototype,"filterType",void 0),(0,i.Cg)([(0,h.MZ)({type:[String],json:{write:{isRequired:!0}}})],be.prototype,"filterValues",void 0),be=we=(0,i.Cg)([(0,h.$K)("esri.layers.support.BuildingFilterAuthoringInfoType")],be);const Me=be;var Ze;const Se=o.A.ofType(Me);let Fe=Ze=class extends fe.o{clone(){return new Ze({filterTypes:(0,a.o8)(this.filterTypes)})}};(0,i.Cg)([(0,h.MZ)({type:Se,json:{write:{isRequired:!0}}})],Fe.prototype,"filterTypes",void 0),Fe=Ze=(0,i.Cg)([(0,h.$K)("esri.layers.support.BuildingFilterAuthoringInfoBlock")],Fe);const Ae=Fe;var Te;const xe=o.A.ofType(Ae);let je=Te=class extends Ce{constructor(){super(...arguments),this.type="checkbox"}clone(){return new Te({filterBlocks:(0,a.o8)(this.filterBlocks)})}};(0,i.Cg)([(0,h.MZ)({type:["checkbox"]})],je.prototype,"type",void 0),(0,i.Cg)([(0,h.MZ)({type:xe,json:{write:{isRequired:!0}}})],je.prototype,"filterBlocks",void 0),je=Te=(0,i.Cg)([(0,h.$K)("esri.layers.support.BuildingFilterAuthoringInfoCheckbox")],je);const Oe=je;var Ie=r(69540);let Le=class extends((0,Ie.OU)(fe.o)){};(0,i.Cg)([(0,h.MZ)({readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],Le.prototype,"type",void 0),Le=(0,i.Cg)([(0,h.$K)("esri.layers.support.BuildingFilterMode")],Le);const Re=Le;let Ee=class extends Re{constructor(e){super(e),this.type="solid"}};(0,i.Cg)([(0,h.MZ)({type:["solid"],readOnly:!0,json:{write:{isRequired:!0}}})],Ee.prototype,"type",void 0),Ee=(0,i.Cg)([(0,h.$K)("esri.layers.support.BuildingFilterModeSolid")],Ee);const Pe=Ee;var _e=r(51734);let qe=class extends Re{constructor(e){super(e),this.type="wire-frame",this.edges=null}};(0,i.Cg)([(0,ee.e)({wireFrame:"wire-frame"})],qe.prototype,"type",void 0),(0,i.Cg)([(0,h.MZ)(_e.J)],qe.prototype,"edges",void 0),qe=(0,i.Cg)([(0,h.$K)("esri.layers.support.BuildingFilterModeWireFrame")],qe);const Be=qe;let Ne=class extends Re{constructor(e){super(e),this.type="x-ray"}};(0,i.Cg)([(0,h.MZ)({type:["x-ray"],readOnly:!0,json:{write:{isRequired:!0}}})],Ne.prototype,"type",void 0),Ne=(0,i.Cg)([(0,h.$K)("esri.layers.support.BuildingFilterModeXRay")],Ne);const Ke=Ne;var $e;let ke=$e=class extends fe.o{constructor(e){super(e),this.filterExpression=null,this.filterMode=new Pe,this.title=""}clone(){return new $e({filterExpression:this.filterExpression,filterMode:(0,a.o8)(this.filterMode),title:this.title})}};(0,i.Cg)([(0,h.MZ)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],ke.prototype,"filterExpression",void 0),(0,i.Cg)([(0,h.MZ)({nonNullable:!0,types:{key:"type",base:Re,typeMap:{solid:Pe,"wire-frame":Be,"x-ray":Ke}},json:{read:e=>{switch(e?.type){case"solid":return Pe.fromJSON(e);case"wireFrame":return Be.fromJSON(e);case"x-ray":return Ke.fromJSON(e);default:return}},write:{enabled:!0,isRequired:!0}}})],ke.prototype,"filterMode",void 0),(0,i.Cg)([(0,h.MZ)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],ke.prototype,"title",void 0),ke=$e=(0,i.Cg)([(0,h.$K)("esri.layers.support.BuildingFilterBlock")],ke);const De=ke;var Qe;const Ge=o.A.ofType(De);let Ue=Qe=class extends fe.o{constructor(e){super(e),this.description=null,this.filterBlocks=null,this.id=(0,me.lk)(),this.name=null}clone(){return new Qe({description:this.description,filterBlocks:(0,a.o8)(this.filterBlocks),id:this.id,name:this.name,filterAuthoringInfo:(0,a.o8)(this.filterAuthoringInfo)})}};(0,i.Cg)([(0,h.MZ)({type:String,json:{write:!0}})],Ue.prototype,"description",void 0),(0,i.Cg)([(0,h.MZ)({type:Ge,json:{write:{enabled:!0,isRequired:!0}}})],Ue.prototype,"filterBlocks",void 0),(0,i.Cg)([(0,h.MZ)({types:{key:"type",base:Ce,typeMap:{checkbox:Oe}},json:{read:e=>"checkbox"===e?.type?Oe.fromJSON(e):null,write:!0}})],Ue.prototype,"filterAuthoringInfo",void 0),(0,i.Cg)([(0,h.MZ)({type:String,constructOnly:!0,json:{write:{enabled:!0,isRequired:!0}}})],Ue.prototype,"id",void 0),(0,i.Cg)([(0,h.MZ)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],Ue.prototype,"name",void 0),Ue=Qe=(0,i.Cg)([(0,h.$K)("esri.layers.support.BuildingFilter")],Ue);let Je=class extends fe.o{constructor(e){super(e),this.fieldName=null,this.modelName=null,this.label=null,this.min=null,this.max=null,this.mostFrequentValues=null,this.subLayerIds=null}};(0,i.Cg)([(0,h.MZ)({type:String})],Je.prototype,"fieldName",void 0),(0,i.Cg)([(0,h.MZ)({type:String})],Je.prototype,"modelName",void 0),(0,i.Cg)([(0,h.MZ)({type:String})],Je.prototype,"label",void 0),(0,i.Cg)([(0,h.MZ)({type:Number})],Je.prototype,"min",void 0),(0,i.Cg)([(0,h.MZ)({type:Number})],Je.prototype,"max",void 0),(0,i.Cg)([(0,h.MZ)({json:{read:e=>Array.isArray(e)&&(e.every(e=>"string"==typeof e)||e.every(e=>"number"==typeof e))?e.slice():null}})],Je.prototype,"mostFrequentValues",void 0),(0,i.Cg)([(0,h.MZ)({type:[Number]})],Je.prototype,"subLayerIds",void 0),Je=(0,i.Cg)([(0,h.$K)("esri.layers.support.BuildingFieldStatistics")],Je);const ze=Je;let Ve=class extends((0,M.WV)((0,Z.g)(fe.o))){constructor(e){super(e),this.url=null,this.customParameters=null}get fields(){return this.loaded||"loading"===this.loadStatus?this._get("fields"):(u.A.getLogger(this).error("building summary statistics are not loaded"),null)}load(e){let t=null==e?null:e.signal;return this.addResolvingPromise(this._fetchService(t)),Promise.resolve(this)}async _fetchService(e){let t=(await(0,w.A)(this.url,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e})).data;this.read(t,{origin:"service"})}};(0,i.Cg)([(0,h.MZ)({constructOnly:!0,type:String})],Ve.prototype,"url",void 0),(0,i.Cg)([(0,h.MZ)({constructOnly:!0})],Ve.prototype,"customParameters",void 0),(0,i.Cg)([(0,h.MZ)({constructOnly:!0})],Ve.prototype,"apiKey",void 0),(0,i.Cg)([(0,h.MZ)({readOnly:!0,type:[ze],json:{read:{source:"summary"}}})],Ve.prototype,"fields",null),Ve=(0,i.Cg)([(0,h.$K)("esri.layers.support.BuildingSummaryStatistics")],Ve);var He=r(24212);const We=o.A.ofType(Ue),Xe=(0,a.o8)(ne.sublayersProperty),Ye=Xe.json?.origins;Ye&&(Ye["web-scene"]={type:[re],write:{enabled:!0,overridePolicy:()=>({enabled:!1})}},Ye["portal-item"]={type:[re],write:{enabled:!0,overridePolicy:()=>({enabled:!1})}});let et=class extends((0,ge.w6)((0,pe.b)((0,de.q)((0,ye.A)((0,ce.j)((0,d.M)((0,ue.d)((0,ae.p)(m.A))))))))){constructor(e){super(e),this.operationalLayerType="BuildingSceneLayer",this.allSublayers=new l.A({getCollections:()=>[this.sublayers],getChildrenFunction:e=>"building-group"===e.type?e.sublayers:null}),this.sublayers=null,this._allSublayerOverrides=null,this.filters=new We,this.activeFilterId=null,this.summaryStatistics=null,this.outFields=null,this.legendEnabled=!0,this.type="building-scene"}destroy(){this.allSublayers.destroy()}readSublayers(e,t,r){let i=ne.readSublayers(e,t,r);return oe(i,e=>e.layer=this),this._allSublayerOverrides&&=(function(e,t){t.forEach(t=>tt(e,t))}(i,this._allSublayerOverrides),null),i}write(e,t){return e=super.write(e,t),t&&("web-scene"===t.origin||"portal-item"===t.origin)&&(this.sublayers?function(e,t,r){let i=[];oe(e,e=>{let t=e.write({},r);Object.keys(t).length>1&&i.push(t)}),i.length>0&&(t.sublayers=i)}(this.sublayers,e,t):this._allSublayerOverrides&&function(e,t,r){let i=r?.origin&&e.get(r.origin);i&&(t.sublayers=[],i.overrides.forEach(e=>{t.sublayers.push((0,a.o8)(e))}))}(this._allSublayerOverrides,e,t)),e}read(e,t){if(super.read(e,t),("web-scene"===t?.origin||"portal-item"===t?.origin)&&Array.isArray(e?.sublayers)){let r=function(e,t){let r=new Map;for(let i of e)"object"==typeof i&&i&&"number"==typeof i.id?r.set(i.id,i):t.messages?.push(new s.A("building-scene-layer:invalid-sublayer-override","Invalid value for sublayer override. Not an object or no id specified.",{value:i}));return{overrides:r,context:t}}(e.sublayers,t);this.sublayers?tt(this.sublayers,r):(this._allSublayerOverrides??=new Map,this._allSublayerOverrides.set(t.origin,r))}}readSummaryStatistics(e,t){if("string"==typeof t.statisticsHRef&&this.parsedUrl){let e=(0,g.fj)(this.parsedUrl.path,t.statisticsHRef);return new Ve({url:e,apiKey:this.apiKey,customParameters:this.customParameters})}return null}set elevationInfo(e){(null==e||"absolute-height"===e.mode)&&this._set("elevationInfo",e),this._validateElevationInfo(e)}load(e){let t=null==e?null:e.signal,r=this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(y.QP).then(()=>this._fetchService(t)).then(()=>this._fetchAssociatedFeatureService(t));return this.addResolvingPromise(r),Promise.resolve(this)}loadAll(){return(0,p.g)(this,e=>{oe(this.sublayers,t=>{"building-group"!==t.type&&e(t)}),this.summaryStatistics&&e(this.summaryStatistics)})}async saveAs(e,t){return this._debouncedSaveOperations(1,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"building-scene"},e)}async save(){return this._debouncedSaveOperations(0,{getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"building-scene"})}validateLayer(e){if(!e.layerType||"Building"!==e.layerType)throw new s.A("buildingscenelayer:layer-type-not-supported","BuildingSceneLayer does not support this layer type",{layerType:e.layerType})}_getTypeKeywords(){return["Building"]}async _fetchAssociatedFeatureService(e){try{let{portalItem:t}=await(0,he.L)(`${this.url}/layers/${this.layerId}`,{sceneLayerItem:this.portalItem,customParameters:this.customParameters,apiKey:this.apiKey,signal:e});this.associatedFeatureServiceItem=t}catch{(0,y.QZ)(this._logWarningOnPopupEnabled())}}async _logWarningOnPopupEnabled(){let e=new AbortController;this.addHandles((0,n.rE)(e)),await(0,c.C_)(()=>this.allSublayers.filter(e=>"building-component"===e.type).some(e=>e.popupEnabled&&null!=e.popupTemplate),e.signal);let t=this.allSublayers.filter(e=>"building-component"===e.type).filter(e=>e.popupEnabled&&null!=e.popupTemplate),r=[],i=[];for(let e of t){let t=e.title??`untitled ${e.id}`;e.attributeStorageInfo?r.push(t):i.push(t)}let o=r.length>0?`\nThe following sublayers will fall back to binary attributes for Popups:\n ${r.join("\n ")}`:"",l=i.length>0?`\nThe following sublayers have no binary attributes and will not work with Popups:\n ${i.join("\n ")}`:"";u.A.getLogger(this).warn(`Associated FeatureLayer could not be loaded for this BuildingSceneLayer: ${this.title}.`,o,l)}_validateElevationInfo(e){let t="Building scene layers";(0,He.XF)(u.A.getLogger(this),(0,He.B)(t,"absolute-height",e)),(0,He.XF)(u.A.getLogger(this),(0,He.tW)(t,e))}};function tt(e,t){let{overrides:r,context:i}=t;oe(e,e=>e.read(r.get(e.id),i))}(0,i.Cg)([(0,h.MZ)({type:["BuildingSceneLayer"]})],et.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,h.MZ)({readOnly:!0})],et.prototype,"allSublayers",void 0),(0,i.Cg)([(0,h.MZ)(Xe)],et.prototype,"sublayers",void 0),(0,i.Cg)([(0,B.w)("service","sublayers")],et.prototype,"readSublayers",null),(0,i.Cg)([(0,h.MZ)({type:We,nonNullable:!0,json:{write:!0}})],et.prototype,"filters",void 0),(0,i.Cg)([(0,h.MZ)({type:String,json:{write:!0}})],et.prototype,"activeFilterId",void 0),(0,i.Cg)([(0,h.MZ)({readOnly:!0,type:Ve})],et.prototype,"summaryStatistics",void 0),(0,i.Cg)([(0,B.w)("summaryStatistics",["statisticsHRef"])],et.prototype,"readSummaryStatistics",null),(0,i.Cg)([(0,h.MZ)({type:[String],json:{read:!1}})],et.prototype,"outFields",void 0),(0,i.Cg)([(0,h.MZ)(q.Fm)],et.prototype,"fullExtent",void 0),(0,i.Cg)([(0,h.MZ)(q.fV)],et.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,h.MZ)({type:["show","hide","hide-children"]})],et.prototype,"listMode",void 0),(0,i.Cg)([(0,h.MZ)((0,q.Qo)(f.A))],et.prototype,"spatialReference",void 0),(0,i.Cg)([(0,h.MZ)(q.Yj)],et.prototype,"elevationInfo",null),(0,i.Cg)([(0,h.MZ)({json:{read:!1},readOnly:!0})],et.prototype,"type",void 0),(0,i.Cg)([(0,h.MZ)()],et.prototype,"associatedFeatureServiceItem",void 0),et=(0,i.Cg)([(0,h.$K)("esri.layers.BuildingSceneLayer")],et);const rt=et},32756(e,t,r){r.d(t,{Rr:()=>n});var i=r(32198),o=r(93637),l=r(91429),s=r(91880);function n(e,t,r){if(!e)return null;let i=e.find(e=>!!e.field);if(!i)return null;let o=new s.A;return o.read(i,r),[o]}const a={type:[s.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:n},write:{writer:function(e,t,r,i){let l=e.find(e=>!!e.field);l&&(0,o.sM)(r,[l.toJSON()],t)}}}};r.d(t,["fY",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,i.Cg)([(0,l.MZ)(a)],r.prototype,"orderBy",void 0),r=(0,i.Cg)([(0,l.$K)("esri.layers.mixins.OrderedLayer")],r),r},"ne",0,a])},28032(e,t,r){r.d(t,{A:()=>a});var i=r(32198),o=r(69540),l=r(25482),s=r(91429),n=r(56400);let a=class extends((0,o.OU)(l.o)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,i.Cg)([(0,s.MZ)()],a.prototype,"creatorField",void 0),(0,i.Cg)([(0,s.MZ)()],a.prototype,"creationDateField",void 0),(0,i.Cg)([(0,s.MZ)()],a.prototype,"editorField",void 0),(0,i.Cg)([(0,s.MZ)()],a.prototype,"editDateField",void 0),(0,i.Cg)([(0,s.MZ)()],a.prototype,"realm",void 0),(0,i.Cg)([(0,s.MZ)((0,n.P6)("dateFieldsTimeReference",!0))],a.prototype,"timeZone",void 0),a=(0,i.Cg)([(0,s.$K)("esri.layers.support.EditFieldsInfo")],a)},29005(e,t,r){r.d(t,{A:()=>p});var i=r(32198),o=r(69540),l=r(66552),s=r(25482),n=r(91429);const a=new l.J({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let p=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,i.Cg)([(0,n.MZ)({json:{write:!0}})],p.prototype,"name",void 0),(0,i.Cg)([(0,n.MZ)({json:{write:!0}})],p.prototype,"description",void 0),(0,i.Cg)([(0,n.MZ)({json:{read:a.read,write:a.write}})],p.prototype,"drawingTool",void 0),(0,i.Cg)([(0,n.MZ)({json:{write:!0}})],p.prototype,"prototype",void 0),(0,i.Cg)([(0,n.MZ)({json:{write:!0}})],p.prototype,"thumbnail",void 0),p=(0,i.Cg)([(0,n.$K)("esri.layers.support.FeatureTemplate")],p)},33143(e,t,r){r.d(t,{A:()=>d});var i=r(32198),o=r(69540),l=r(25482),s=r(91429),n=r(8631),a=r(29005),p=r(36005),u=r(43937);let d=class extends((0,o.OU)(l.o)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){let t={};for(let r of Object.keys(e))t[r]=(0,n.r)(e[r]);return t}writeDomains(e,t){let r={};for(let t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],d.prototype,"id",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],d.prototype,"name",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],d.prototype,"domains",void 0),(0,i.Cg)([(0,p.w)("domains")],d.prototype,"readDomains",null),(0,i.Cg)([(0,u.K)("domains")],d.prototype,"writeDomains",null),(0,i.Cg)([(0,s.MZ)({type:[a.A],json:{write:!0}})],d.prototype,"templates",void 0),d=(0,i.Cg)([(0,s.$K)("esri.layers.support.FeatureType")],d)},37352(e,t,r){r.d(t,{A:()=>a});var i,o=r(32198),l=r(7762),s=r(25482),n=r(91429);let a=i=class extends s.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new l.A}clone(){return new i({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,o.Cg)([(0,n.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"floorField",void 0),(0,o.Cg)([(0,n.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllMode",void 0),(0,o.Cg)([(0,n.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllLevelIds",void 0),a=i=(0,o.Cg)([(0,n.$K)("esri.layers.support.LayerFloorInfo")],a)},91880(e,t,r){r.d(t,{A:()=>p});var i,o=r(32198),l=r(66552),s=r(25482),n=r(91429);const a=new l.J({asc:"ascending",desc:"descending"});let p=class extends s.o{static{i=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new i({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,o.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],p.prototype,"field",void 0),(0,o.Cg)([(0,n.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],p.prototype,"valueExpression",void 0),(0,o.Cg)([(0,n.MZ)({type:a.apiValues,json:{type:a.jsonValues,read:a.read,write:a.write}})],p.prototype,"order",void 0),p=i=(0,o.Cg)([(0,n.$K)("esri.layers.support.OrderByInfo")],p)},45067(e,t,r){r.d(t,{A:()=>u});var i=r(32198),o=r(69540),l=r(66552),s=r(25482),n=r(91429);const a=new l.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),p=new l.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let u=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.cardinality=null,this.catalogId=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,i.Cg)([(0,n.MZ)({json:{read:a.read,write:a.write}})],u.prototype,"cardinality",void 0),(0,i.Cg)([(0,n.MZ)({json:{name:"catalogID"}})],u.prototype,"catalogId",void 0),(0,i.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],u.prototype,"composite",void 0),(0,i.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],u.prototype,"id",void 0),(0,i.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],u.prototype,"keyField",void 0),(0,i.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],u.prototype,"keyFieldInRelationshipTable",void 0),(0,i.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],u.prototype,"name",void 0),(0,i.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],u.prototype,"relatedTableId",void 0),(0,i.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],u.prototype,"relationshipTableId",void 0),(0,i.Cg)([(0,n.MZ)({json:{read:p.read,write:p.write}})],u.prototype,"role",void 0),u=(0,i.Cg)([(0,n.$K)("esri.layers.support.Relationship")],u)},41560(e,t,r){r.d(t,{Ch:()=>s,mW:()=>l});var i=r(34727),o=r(39516);function l(e,t){return{...t,filterMode:e.mode}}function s(e,t,r){let l=function(e){if("manual"===p(e))return null;let t=[-1/0,1/0];for(let{minScale:r,maxScale:i}of e.filters)t[0]=Math.max(t[0],u(r)),t[1]=Math.min(t[1],d(i));return t}(e);if(l&&((0,i.gg)(t,l[0])||(0,i.ZH)(r,l[1])))return"";let s=Array.from(n(e,t,r)),a=function(e,t,r){if(0===e.length)return!0;let o=u(e.at(0)?.minScale),l=d(e.at(-1)?.maxScale);if((0,i.ZH)(o,t)||(0,i.gg)(l,r))return!0;for(let t=0;t<e.length-1;t++){let r=e[t],o=e[t+1];if((0,i.ZH)(u(o.minScale),d(r.maxScale)))return!0}return!1}(s,t,r)?"1=1":s.map(e=>e.where||"1=1").reduce((e,t)=>(0,o.IW)(e,t),"");return a&&"1=1"!==a?a:""}function*n(e,t,r){if("manual"===p(e)){let t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(let i of e.filters)a(i.minScale,i.maxScale,t,r)&&(yield i)}}function a(e,t,r,o){return e=u(e),r=u(r),t=d(t),!(!(0,i.Sp)(r,e)&&(o??r)>e||(0,i.Hx)(t,r)||void 0!==o&&(0,i.Sp)(o,e))}function p(e){return"mode"in e?e.mode:e.filterMode}function u(e){return e||1/0}function d(e){return e||0}},22671(e,t,r){r.d(t,{A:()=>v});var i,o=r(32198),l=r(52106),s=r(66552),n=r(25482),a=r(4718),p=r(91429),u=r(16930),d=r(60408),y=r(65864),c=r(50498),g=r(20437),h=r(36005),f=r(43937);const m=new s.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=i=class extends n.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,l.A)}writeGeometryType(e,t,r,i){if(e)return void m.write(e,t,r,i);let{features:o}=this;if(o)for(let e of o)if(null!=e?.geometry)return void m.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;let r=!!e.spatialReference,i=(0,y.rS)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=u.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());let{features:r}=this;if(r)for(let e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,a.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){let t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){let i=t.features[r];i.geometry&&=(e?.[r])?.toJSON()||i.geometry}return t}quantize(e){let{scale:[t,r],translate:[i,o]}=e,l=this.features,s=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-i)/t),e=>Math.round((o-e)/r));for(let e=0,t=l.length;e<t;e++)s?.(l[e].geometry)||(l.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){let{geometryType:e,features:t,transform:r}=this;if(!r)return this;let{translate:[i,o],scale:[l,s]}=r,n=null,a=null;if(this.hasZ&&null!=r?.scale?.[2]){let{translate:[,,e],scale:[,,t]}=r;n=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){let{translate:[,,,e],scale:[,,,t]}=r;a=r=>null==r?r:r*t+e}let p=this._getHydrationFunction(e,e=>e*l+i,e=>o-e*s,n,a);for(let{geometry:e}of t)null!=e&&p&&p(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){let i=u.A.fromJSON(t.spatialReference),o=[];for(let t=0;t<e.length;t++){let l=e[t],s=r.fromJSON(l),n=l.geometry?.spatialReference;null!=s.geometry&&!n&&(s.geometry.spatialReference=i);let a=l.aggregateGeometries,p=s.aggregateGeometries;if(a&&null!=p)for(let e in p){let t=p[e],r=a[e]?.spatialReference;null!=t&&!r&&(t.spatialReference=i)}o.push(s)}return o}_quantizePoints(e,t,r){let i,o,l=[];for(let s=0,n=e.length;s<n;s++){let n=e[s];if(s>0){let e=t(n[0]),s=r(n[1]);(e!==i||s!==o)&&(l.push([e-i,s-o]),i=e,o=s)}else i=t(n[0]),o=r(n[1]),l.push([i,o])}return l.length>0?l:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{let i=(0,d.Bi)(e)?e.rings:e.paths,o=[];for(let e=0,l=i.length;e<l;e++){let l=i[e],s=this._quantizePoints(l,t,r);s&&o.push(s)}return o.length>0?((0,d.Bi)(e)?e.rings=o:e.paths=o,e):null}:"multipoint"===e?e=>{let i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,o){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{let l,s,n=(0,d.Bi)(e)?e.rings:e.paths;for(let e=0,i=n.length;e<i;e++){let i=n[e];for(let e=0,o=i.length;e<o;e++){let o=i[e];e>0?(l+=o[0],s+=o[1]):(l=o[0],s=o[1]),o[0]=t(l),o[1]=r(s)}}if(i&&o)for(let e=0,t=n.length;e<t;e++){let t=n[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2]),r[3]=o(r[3])}}else if(i)for(let e=0,t=n.length;e<t;e++){let t=n[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2])}}else if(o)for(let e=0,t=n.length;e<t;e++){let t=n[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=o(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),o&&null!=e.mmax&&null!=e.mmin&&(e.mmax=o(e.mmax),e.mmin=o(e.mmin))}:"multipoint"===e?e=>{let l,s,n=e.points;for(let e=0,i=n.length;e<i;e++){let i=n[e];e>0?(l+=i[0],s+=i[1]):(l=i[0],s=i[1]),i[0]=t(l),i[1]=r(s)}if(i&&o)for(let e=0,t=n.length;e<t;e++){let t=n[e];t[2]=i(t[2]),t[3]=o(t[3])}else if(i)for(let e=0,t=n.length;e<t;e++){let t=n[e];t[2]=i(t[2])}else if(o)for(let e=0,t=n.length;e<t;e++){let t=n[e];t[2]=o(t[2])}}:null}};(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,o.Cg)([(0,p.MZ)({type:[l.A],json:{write:!0}})],v.prototype,"features",void 0),(0,o.Cg)([(0,h.w)("features")],v.prototype,"readFeatures",null),(0,o.Cg)([(0,p.MZ)({type:[g.A],json:{write:!0}})],v.prototype,"fields",void 0),(0,o.Cg)([(0,p.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:m.read}}})],v.prototype,"geometryType",void 0),(0,o.Cg)([(0,f.K)("geometryType")],v.prototype,"writeGeometryType",null),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,o.Cg)([(0,p.MZ)({types:c.yR,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,o.Cg)([(0,h.w)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,o.Cg)([(0,p.MZ)({type:u.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,o.Cg)([(0,f.K)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,o.Cg)([(0,p.MZ)({json:{write:!0}})],v.prototype,"transform",void 0),v=i=(0,o.Cg)([(0,p.$K)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0},2991(e,t,r){r.d(t,{G9:()=>p,RZ:()=>a});var i=r(39516);const o="=",l=">=",s="<=";function n(e,t,r,o){let l=o.get(e)?.type,s=o.getTimeZone(e);return`${(0,i.iA)(e)} ${t} ${(0,i.YG)(r,{type:"date"},{type:l,timeZone:s})}`}function a(e,t,r,a){if(!t||!r)return;let{startField:p,endField:u}=t,{start:d,end:y}=e;if(!d&&!y||!p&&!u)return;let c=p??u,g=u??p;if(c&&g){if(d&&y){if(d.getTime()===y.getTime())return(0,i.mA)(a,n(c,o,d,r));if(!p||!u){let e=n(c,l,d,r),t=n(c,s,y,r);return(0,i.mA)(a,(0,i.mA)(e,t))}let e=n(p,l,d,r),t=n(u,s,y,r);return(0,i.mA)(a,(0,i.mA)(e,t))}if(d)return(0,i.mA)(a,n(c,l,d,r));if(y)return(0,i.mA)(a,n(g,s,y,r))}}function p(e){let{start:t,end:r}=e;if(t||r){if(!t&&r)return`null,${r.getTime()}`;if(!r&&t)return`${t.getTime()},null`;if(r&&t)return t.getTime()===r.getTime()?`${t.getTime()}`:`${t.getTime()},${r.getTime()}`}}},45671(e,t,r){r.d(t,{D8:()=>l,TO:()=>o});var i=r(30524);async function o(e,t=e.popupTemplate){if(null==t)return[];let r=await t.getRequiredFields(e.fieldsIndex),{lastEditInfoEnabled:o}=t,{objectIdField:l,typeIdField:s,globalIdField:n,relationships:a}=e;if(r.includes("*"))return["*"];let p=o?(0,i.eX)(e):[],u=(0,i.DB)(e.fieldsIndex,[...r,...p]);return s&&u.push(s),u&&l&&e.fieldsIndex?.has(l)&&!u.includes(l)&&u.push(l),u&&n&&e.fieldsIndex?.has(n)&&!u.includes(n)&&u.push(n),a?.forEach(t=>{let{keyField:r}=t;u&&r&&e.fieldsIndex?.has(r)&&!u.includes(r)&&u.push(r)}),u}function l(e,t){return!e||"object"!=typeof e||t?.checkPopupEnabled&&"popupEnabled"in e&&!e.popupEnabled?null:"popupTemplate"in e&&e.popupTemplate?e.popupTemplate:null!=t&&t.defaultPopupTemplateEnabled&&"defaultPopupTemplate"in e&&e.defaultPopupTemplate?e.defaultPopupTemplate:null}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[563],{15142(t,e,s){s.d(e,{A:()=>o});var r=s(4576),i=s(21818);const l=(t,e,s,r)=>{let i=e,l=e,h=s>>>1,n=t[i-1];for(;l<=h;){l=i<<1,l<s&&r(t[l-1],t[l])<0&&++l;let e=t[l-1];if(r(e,n)<=0)break;t[i-1]=e,i=l}t[i-1]=n},h=(t,e)=>t<e?-1:+(t>e);function n(t,e,s,r){void 0===e&&(e=0),void 0===s&&(s=t.length),void 0===r&&(r=h);for(let i=s>>>1;i>e;i--)l(t,i,s,r);let i=e+1;for(let h=s-1;h>e;h--){let s=t[e];t[e]=t[h],t[h]=s,l(t,i,h,r)}}function*a(t,e,s,r){void 0===e&&(e=0),void 0===s&&(s=t.length),void 0===r&&(r=h);for(let i=s>>>1;i>e;i--)l(t,i,s,r),yield;let i=e+1;for(let h=s-1;h>e;h--){let s=t[e];t[e]=t[h],t[h]=s,l(t,i,h,r),yield}}class o{constructor(t){this.data=[],this._length=0,this._allocator=void 0,this._deallocator=()=>null,this._shrink=()=>{},this._hint=new r.vW,t&&(t.initialSize&&(this.data=Array(t.initialSize)),t.allocator&&(this._allocator=t.allocator),void 0!==t.deallocator&&(this._deallocator=t.deallocator),t.shrink&&(this._shrink=()=>c(this)))}toArray(){return this.data.slice(0,this.length)}filter(t){let e=[];for(let s=0;s<this._length;s++){let r=this.data[s];t(r)&&e.push(r)}return e}at(t){if((t=Math.trunc(t)||0)<0&&(t+=this._length),!(t<0||t>=this._length))return this.data[t]}includes(t,e){let s=this.data.indexOf(t,e);return-1!==s&&s<this.length}get length(){return this._length}set length(t){if(t>this._length){if(this._allocator){for(;this._length<t;)this.data[this._length++]=this._allocator(this.data[this._length]);return}this._length=t}else{if(this._deallocator)for(let e=t;e<this._length;++e)this.data[e]=this._deallocator(this.data[e]);this._length=t,this._shrink()}}clear(){this.length=0}prune(){this.clear(),this.data=[]}push(t){this.data[this._length++]=t}pushArray(t,e=t.length){for(let s=0;s<e;s++)this.data[this._length++]=t[s]}pushAll(t){for(let e of t)this.data[this._length++]=e}fill(t,e){for(let s=0;s<e;s++)this.data[this._length++]=t}pushNew(){this._allocator&&(this.data[this.length]=this._allocator(this.data[this.length]));let t=this.data[this._length];return++this._length,t}unshift(t){this.data.unshift(t),this._length++,c(this)}pop(){if(0===this.length)return;let t=this.data[this.length-1];return--this.length,this._shrink(),t}remove(t){let e=(0,r.qh)(this.data,(0,i.z)(t),this.length,this._hint);if(-1!==e)return this.data.splice(e,1),--this.length,t}removeUnordered(t){return this.removeUnorderedIndex((0,r.qh)(this.data,(0,i.z)(t),this.length,this._hint))}removeUnorderedIndex(t){if(!(t>=this.length||t<0))return this.swapElements(t,this.length-1),this.pop()}removeUnorderedMany(t,e=t.length,s){this.length=(0,r.mW)(this.data,t,this.length,e,this._hint,s),this._shrink()}front(){if(0!==this.length)return this.data[0]}back(){if(0!==this.length)return this.data[this.length-1]}swapElements(t,e){if(t>=this.length||e>=this.length||t===e)return;let s=this.data[t];this.data[t]=this.data[e],this.data[e]=s}sort(t){n(this.data,0,this.length,t)}stableSort(t){let e=this.toArray().sort(t);for(let t=0;t<e.length;++t)this.data[t]=e[t]}iterableSort(t){return a(this.data,0,this.length,t)}some(t,e){for(let s=0;s<this.length;++s)if(t.call(e,this.data[s],s,this.data))return!0;return!1}find(t,e){let{data:s,length:r}=this;for(let i=0;i<r;++i)if(t.call(e,s[i]))return s[i]}filterInPlace(t,e){let s=0;for(let r=0;r<this._length;++r){let i=this.data[r];t.call(e,i,r,this.data)&&(this.data[r]=this.data[s],this.data[s]=i,s++)}if(this._deallocator)for(let t=s;t<this._length;t++)this.data[t]=this._deallocator(this.data[t]);return this._length=s,this._shrink(),this}forAll(t,e){let{data:s,length:r}=this;for(let i=0;i<r;++i)t.call(e,s[i],i,s)}forEach(t,e){this.data.slice(0,this.length).forEach(t,e)}map(t,e){let s=Array(this.length);for(let r=0;r<this.length;++r)s[r]=t.call(e,this.data[r],r,this.data);return s}reduce(t,e){let s=e;for(let e=0;e<this.length;++e)s=t(s,this.data[e],e,this.data);return s}has(t){let e=this.length,s=this.data;for(let r=0;r<e;++r)if(s[r]===t)return!0;return!1}*[Symbol.iterator](){for(let t=0;t<this.length;++t)yield this.data[t]}}function c(t){t.data.length>1.5*t.length&&(t.data.length=Math.floor(1.1*t.length))}},9775(t,e,s){s.d(e,{A:()=>l});var r=s(62788),i=s(95488);class l{constructor(t=t=>t.values().next().value){this._peeker=t,this._observable=new i.I,this._items=new Set}get length(){return(0,r.gc)(this._observable),this._items.size}clear(){0!==this.length&&(this._items.clear(),this._observable.notify())}last(){if(0===this.length)return;let t;for(t of this._items);return t}peek(){if(0!==this.length)return this._peeker(this._items)}push(t){this.contains(t)||(this._items.add(t),this._observable.notify())}contains(t){return(0,r.gc)(this._observable),this._items.has(t)}pop(){if(0===this.length)return;let t=this.peek();return this._items.delete(t),this._observable.notify(),t}popLast(){if(0===this.length)return;let t=this.last();return this._items.delete(t),this._observable.notify(),t}remove(t){this.contains(t)&&(this._items.delete(t),this._observable.notify())}filter(t){let e=this.length;return this._items.forEach(e=>{t(e)||this._items.delete(e)}),e!==this._items.size&&this._observable.notify(),this}*[Symbol.iterator](){(0,r.gc)(this._observable),yield*this._items}}},563(t,e,s){s.d(e,{QueueProcessor:()=>o,SharedConcurrency:()=>u});var r=s(97768),i=s(17676),l=s(9775),h=s(32587),n=s(76030),a=s(44794);class o{constructor(t){this._schedule=null,this._deferreds=new h.A,this._controllers=new h.A,this._processingItems=new h.A,this._pausedSignal=(0,a.v)(!1),this.process=t.process,this.concurrency=t.concurrency,this.sharedConcurrency=t.sharedConcurrency??d,this._queue=new l.A(t.peeker)}destroy(){this.clear(),this._schedule=(0,r.xt)(this._schedule)}get updating(){return this.running}get length(){return this._processingItems.size+this._queue.length}get running(){return!this._pausedSignal.value&&this._queue.length>0&&!this.full}get full(){return this._processingItems.size>=this.concurrency||this.sharedConcurrency.full}abort(t){this._controllers.get(t)?.abort()}clear(){this._queue.clear();let t=Array.from(this._controllers.values());this._controllers.clear(),t.forEach(t=>t.abort()),this.sharedConcurrency.current.value-=this._processingItems.size,this._processingItems.clear(),this._cancelNext()}forEach(t){this._deferreds.forEach((e,s)=>t(s))}_get(t){return this._deferreds.get(t)?.promise}pause(){this._pausedSignal.value||(this._pausedSignal.value=!0,this._cancelNext())}push(t,e){let s=this._get(t);if(s)return s;let r=new AbortController,l=Promise.withResolvers(),h=e?(0,i.u7)(e,()=>r.abort()):null,n=(0,i.NY)(r.signal,()=>{let e=this._processingItems.get(t);e&&e.controller.abort(),a(),l.reject((0,i.NK)())}),a=()=>{n.remove(),h?.remove(),this._removeItem(t),this._queue.remove(t),this._scheduleNext()};return this._deferreds.set(t,l),this._controllers.set(t,r),l.promise.then(a,a),this._queue.push(t),this._scheduleNext(),l.promise}last(){return this._queue.last()}reset(){let t=Array.from(this._processingItems.values());this.sharedConcurrency.current.value-=this._processingItems.size,this._processingItems.clear();for(let e of t)this._queue.push(e.item),e.controller.abort();this._scheduleNext()}resume(){this._pausedSignal.value&&(this._pausedSignal.value=!1,this._scheduleNext())}takeAll(){let t=[];for(;this._queue.length;)t.push(this._queue.pop());return this.clear(),t}_removeItem(t){this._deferreds.delete(t),this._controllers.delete(t),this._processingItems.has(t)&&(this._processingItems.delete(t),--this.sharedConcurrency.current.value)}_scheduleNext(){this._pausedSignal.value||this._schedule||(this._schedule=(0,n._)(()=>{this._schedule=null,this._next()}))}_next(){for(;this._queue.length>0&&this._processingItems.size<this.concurrency&&!this.sharedConcurrency.full;)this._process(this._queue.pop())}_cancelNext(){this._schedule&&=(this._schedule.remove(),null)}_processResult(t,e){this._canProcessFulfillment(t)&&(this._scheduleNext(),this._deferreds.get(t.item).resolve(e))}_processError(t,e){this._canProcessFulfillment(t)&&(this._scheduleNext(),this._deferreds.get(t.item).reject(e))}_canProcessFulfillment(t){return!(!this._deferreds.get(t.item)||this._processingItems.get(t.item)!==t)}_process(t){if(null==t)return;let e,s=new AbortController,r=new c(t,s);this._processingItems.set(t,r),this.sharedConcurrency.current.value+=1;try{e=this.process(t,s.signal)}catch(t){this._processError(r,t)}(0,i.$X)(e)?(r.promise=e,e.then(t=>this._processResult(r,t),t=>this._processError(r,t))):this._processResult(r,e)}}class c{constructor(t,e){this.item=t,this.controller=e,this.promise=null}}class u{constructor(t){this.limit=t,this.current=(0,a.v)(0)}get full(){return this.current.value>=this.limit}}const d=new u(1/0)},32587(t,e,s){s.d(e,{A:()=>l});var r=s(62788),i=s(95488);class l{constructor(t){this._observable=new i.I,this._notifyPending=!1,this._batchDepth=0,this._map=new Map(t)}get size(){return(0,r.gc)(this._observable),this._map.size}batch(t){try{this._batchDepth++,t()}finally{this._batchDepth--,this._notifyPending&&0===this._batchDepth&&(this._notifyPending=!1,this._notify())}}clear(){this._map.size>0&&(this._map.clear(),this._notify())}delete(t){let e=this._map.delete(t);return e&&this._notify(),e}entries(){return(0,r.gc)(this._observable),this._map.entries()}forEach(t,e){(0,r.gc)(this._observable),this._map.forEach((s,r)=>t.call(e,s,r,this),e)}get(t){return(0,r.gc)(this._observable),this._map.get(t)}has(t){return(0,r.gc)(this._observable),this._map.has(t)}keys(){return(0,r.gc)(this._observable),this._map.keys()}set(t,e){return this._map.set(t,e),this._notify(),this}transformValues(t,e=this._map.keys()){this.batch(()=>{for(let s of e){if(!this._map.has(s))continue;let e=this._map.get(s),r=t(e,s);r!==e&&this.set(s,r)}})}values(){return(0,r.gc)(this._observable),this._map.values()}[Symbol.iterator](){return(0,r.gc)(this._observable),this._map[Symbol.iterator]()}[Symbol.dispose](){this._observable.destroy()}get[Symbol.toStringTag](){return this._map[Symbol.toStringTag]}_notify(){this._batchDepth>0?this._notifyPending=!0:this._observable.notify()}}},11406(t,e,s){s.d(e,{T:()=>l});var r=s(36563);class i{constructor(t,e){this._observers=t,this._observer=e}remove(){let{_observers:t,_observer:e}=this;if(t[t.length-1]===e)return void t.pop();let s=t.indexOf(this._observer);-1!==s&&t.splice(s,1)}}class l{constructor(){this._observers=null,this.destroyed=!1}observe(t){if(this.destroyed||t.destroyed)return h;this._observers??=[];let e=this._observers,s=!1,r=!1;for(let i of e)if(i.destroyed)r=!0;else if(i===t){s=!0;break}return s||(e.push(t),r&&this._removeDestroyedObservers()),new i(e,t)}_removeDestroyedObservers(){let t=this._observers;if(!t)return;let e=t.length;if(0===e)return;let s=0;for(let r=0;r<e;++r){for(;r+s<e&&t[r+s].destroyed;)++s;if(s>0){if(!(r+s<e))break;t[r]=t[r+s]}}t.length=e-s}destroy(){if(this.destroyed)return;this.destroyed=!0;let t=this._observers;if(null!=t){for(let e of t)e.onCommitted();this._observers=null}}}const h=(0,r.hA)()},62788(t,e,s){s.d(e,{F_:()=>_,Xr:()=>v,a:()=>d,fE:()=>p,gc:()=>o}),s(44208);var r=s(53966),i=s(88620),l=s(47328);const h=new(s(67867).R),n=[];let a=h;function o(t){a.onAccessed(t)}let c=!1,u=!1;function d(t,e,s){if(c)return f(t,e,s);let i;if(u){a=t,n.push(t);try{i=e.call(s)}catch(t){throw r.A.getLogger("esri.core.accessorSupport.tracking").error(t),t}finally{g()}}else{a=t,n.push(t);try{i=e.call(s)}finally{g()}}return i}function _(t,e){return d(h,t,e)}function f(t,e,s){let i,l=c;c=!0,a=t,n.push(t);try{i=e.call(s)}catch(t){u&&r.A.getLogger("esri.core.accessorSupport.tracking").error(t)}return g(),c=l,i}function g(){let t=n.length;if(t>1){let e=n.pop();a=n[t-2],e.onTrackingEnd()}else if(1===t){let t=n.pop();a=h,t.onTrackingEnd()}else a=h}function p(t,e){if(e.flags&l.i.DepTrackingInitialized)return;e.flags|=l.i.DepTrackingInitialized;let s=u;u=!1,e.flags&l.i.AutoTracked?f(e.trackingTarget,e.metadata.get,t):v(t,e),u=s}const m=[];function v(t,e){e.flags&l.i.ExplicitlyTracking||(e.flags|=l.i.ExplicitlyTracking,f(e.trackingTarget,()=>{let s=e.metadata.dependsOn||m;for(let e of s)if("string"!=typeof e||e.includes(".")){let s=(0,i.AH)(e);for(let e=0,r=t;e<s.length&&"object"==typeof r&&r;++e)r=y(r,s[e],e!==s.length-1)}else y(t,e,!1)}),e.flags&=~l.i.ExplicitlyTracking)}function y(t,e,s){let r=e.endsWith("?")?e.slice(0,-1):e;if(null!=t.getItemAt||Array.isArray(t)){let e=parseInt(r,10);if(!isNaN(e))return Array.isArray(t)?t[e]:t.at(e)}let l=(0,i.oY)(t);if(l){let e=l.propertiesByName.get(r);e&&(o(e),p(t,e))}return s?t[r]:void 0}},47328(t,e,s){s.d(e,["i",0,{Dirty:1,Overridden:2,Computing:4,NonNullable:8,HasDefaultValue:16,DepTrackingInitialized:32,AutoTracked:64,ExplicitlyTracking:128}])},95488(t,e,s){s.d(e,{I:()=>i});var r=s(11406);class i extends r.T{notify(){let t=this._observers;if(t&&t.length>0){let e=t.slice();for(let t of e)t.onInvalidated(),t.onCommitted()}}}},67867(t,e,s){s.d(e,{R:()=>r});class r{constructor(t){this.accessed=void 0,this._handles=void 0,this._observer=t}destroy(){this.clear(),this.accessed=void 0,this._observer=void 0}onAccessed(t){null!=this._observer&&t!==this._observer&&(this.accessed??=new Set,this.accessed.add(t))}onTrackingEnd(){null!=this._observer&&(this.clear(),null!=this.accessed&&(this._handles??=[],this.accessed.forEach(t=>{this._handles.push(t.observe(this._observer))}),this.accessed.clear()))}clear(){if(null!=this._handles)for(;this._handles.length;)this._handles.pop().remove()}}},88620(t,e,s){s.d(e,{AH:()=>o,h1:()=>n,oY:()=>l,qg:()=>u,yh:()=>h});var r=s(36563),i=s(4718);function l(t){return t.__accessor__??null}function h(t,e){return null!=t?.metadata?.[e]}function n(t,e,s){return a(t,e,s?{policy:s,path:""}:null)}function a(t,e,s){return e?Object.keys(e).reduce((t,r)=>{let l=r;if("__proto__"===l)return t;let h=null,n="merge";if(s&&(h=s.path?`${s.path}.${r}`:r,n=s.policy(h)),"replace"===n||"replace-arrays"===n&&Array.isArray(t[l]))return t[l]=e[l],t;if(void 0===t[l])return t[l]=(0,i.o8)(e[l]),t;let o=t[l],c=e[l];if(o===c)return t;if(Array.isArray(c)||Array.isArray(t))o=t[l]=o?Array.isArray(o)?o.slice():[o]:[],c&&(Array.isArray(c)||(c=[c]),c.forEach(t=>{o.includes(t)||o.push(t)}));else if(c&&"object"==typeof c)if(s){let e=s.path;s.path=h,t[l]=a(o,c,s),s.path=e}else t[l]=a(o,c,null);else(!t.hasOwnProperty(r)||e.hasOwnProperty(r))&&(t[l]=c);return t},t||{}):t}function o(t){return Array.isArray(t)?t:t.split(".")}function c(t){return t.includes(",")?t.split(",").map(t=>t.trim()):[t.trim()]}function u(t,e,s,i){let l=function(t){if(Array.isArray(t)){let e=[];for(let s of t)e.push(...c(s));return e}return c(t)}(e);if(1!==l.length){let e=l.map(e=>i(t,e,s));return(0,r.vE)(e)}return i(t,l[0],s)}},26390(t,e,s){s.d(e,{d:()=>i});const r=[];function i(t){r.push(t),1===r.length&&queueMicrotask(()=>{let t=r.slice();r.length=0;for(let e of t)e()})}},76030(t,e,s){s.d(e,{_:()=>p,$m:()=>w,md:()=>k});var r=s(26390);function i(t,e,s,r,i){console.timeStamp(t,e,s,i,r)}class l{constructor(t,e=30){this.name=t,this._counter=0,this._samples=Array(e)}push(t){null!=t&&(this._samples[++this._counter%this._samples.length]=t)}set(t){null!=t&&(this._samples[this._counter%this._samples.length]=t)}get median(){return this._samples.slice().sort((t,e)=>t-e)[Math.floor(this._samples.length/2)]}get average(){return this._samples.reduce((t,e)=>t+e,0)/this._samples.length}get last(){return this._samples[this._counter%this._samples.length]}}var h=s(15142),n=s(17676),a=s(78659);class o{constructor(t){this.callback=t,this.isActive=!0}remove(){this.isActive=!1}}let c=0;const u={time:(0,a.l5)(0),deltaTime:(0,a.l5)(0),elapsedFrameTime:(0,a.l5)(0),frameDuration:(0,a.l5)(0)},d=["prepare","preRender","render","postRender","update","finish"],_=[],f=new h.A,g={frameTasks:f,willDispatch:!1,clearFrameTasks:function(t=!1){f.forAll(t=>{t.removed=!0}),t&&b()},dispatch:A,executeFrameTasks:function(t){let e=(0,a.l5)(t-c);c=t;let s=1e3/60,r=Math.max(0,e-s);u.time=t,u.frameDuration=(0,a.l5)(s-r);for(let s=0;s<d.length;s++){let r=performance.now(),l=d[s];f.forAll(r=>{r.paused||r.removed||(0===s&&r.ticks++,!r.phases[l])||(u.elapsedFrameTime=(0,a.l5)(performance.now()-t),u.deltaTime=0===r.ticks?(0,a.l5)(0):e,r.phases[l]?.call(r,u))});let h=performance.now();S[s].push(h-r),i(l,r,h,"Maps SDK","Scheduling")}b();let l=performance.now();I.push(l-t),i("Animation Frame",t,l,"Maps SDK","Scheduling")},reschedule:function(){null!=m&&(cancelAnimationFrame(m),m=requestAnimationFrame(v))}};function p(t){let e=new o(t);return _.push(e),g.willDispatch||(g.willDispatch=!0,(0,r.d)(A)),e}let m=null;function v(){let t=performance.now();m=null,m=f.some(t=>!t.paused&&!t.removed)?requestAnimationFrame(v):null,g.executeFrameTasks(t)}const y=new h.A;function b(){f.forAll(t=>{t.removed&&y.push(t)}),f.removeUnorderedMany(y.data,y.length),y.clear()}function A(){for(;_.length;){let t=_.shift();t.isActive&&t.callback()}g.willDispatch=!1}function k(t=1,e){let s=Promise.withResolvers(),i=()=>{(0,n.G4)(e)?s.reject((0,n.NK)()):0===t?s.resolve():(--t,(0,r.d)(()=>i()))};return i(),s.promise}async function w(t){await function(t){return k(1,t)}(t),await new Promise(e=>requestAnimationFrame(()=>{t?.aborted||e()}))}const S=d.map(t=>new l(t)),I=new l("total")},44794(t,e,s){s.d(e,{v:()=>n});var r=s(4718),i=s(62788),l=s(95488);class h{constructor(t,e){this._observable=new l.I,this._value=t,this._equalityFunction=e}get value(){return(0,i.gc)(this._observable),this._value}set value(t){this._equalityFunction(t,this._value)||(this._value=t,this._observable.notify())}mutate(t){t(this._value),this._observable.notify()}}function n(t,e=r.gh){return new h(t,e)}},78659(t,e,s){function r(t){return t}function i(t){return 1e3*t}function l(t){return t}s.d(e,{Kp:()=>l,gr:()=>i,l5:()=>r})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[9521],{85978(e,t,r){r.d(t,{A:()=>s});var a=r(87449),n=r(11221);r(33325);class s extends n.t1{constructor(e){super(),this.declaredClass="esri.layers.featureset.sources.Empty",this._maxProcessing=1e3,this._parent=e.parentfeatureset,this._databaseType=0}async _queryAll(){return n.An.features}async query(e){return n.An}async queryStat(e){return await this._manualStat(e.stat,e.field,e.limit??1e3,e.abortSignal)}async canQueryAggregate(e){return!1}async queryAggregate(e){throw new a.dr("NeverReach")}async queryAttachments(){return[]}}},87817(e,t,r){r.r(t),r.d(t,{registerFunctions:()=>f});var a=r(85935),n=r(54639),s=r(78878),i=r(48938),l=r(87449),o=r(11221),u=(r(33325),r(71163)),c=r(90634);class p extends o.t1{constructor(e){super(),this.declaredClass="esri.arcade.featureset.actions.SpatialFilter",this._maxProcessing=40,this._parent=e.parentfeatureset,this._relation=e.relation,this._relationString=e.relationString??"",this._relationGeom=e.relationGeom}get _spatialFilter(){return{relation:"esriSpatialRelRelation"===this._relation?`esriSpatialRelRelation:${this._relationString}`:this._relation,geometry:this._relationGeom.asAccessorGeometry()}}async _queryAll(){return(await this.query({abortSignal:i._})).features}async query(e){await this._ensureLoaded();let t=await this._parent.query({...e,spatialFilter:this._spatialFilter,limit:null==e.spatialFilter?e.limit:null});return(0,l.dZ)(e.abortSignal),{...t,spatialFilterApplied:null==e.spatialFilter,features:t.spatialFilterApplied?t.features:this._applySpatialFilter(t.features,e.abortSignal)}}async*_applySpatialFilter(e,t){for await(let r of e){(0,l.dZ)(t);let e=[];for(let t of r)await this._executeSpatialRelationTest(t)&&e.push(t);e.length>0&&(yield e)}}async queryStat(e){if(null!=e.spatialFilter)return{calculated:!1};let t=await this._parent.queryStat({...e,spatialFilter:this._spatialFilter});return t.calculated?t:null==e.where&&null==e.spatialFilter?this._manualStat(e.stat,e.field,e.limit??1e3,e.abortSignal):{calculated:!1}}async canQueryAggregate(e){return null==e.spatialFilter&&this._parent.canQueryAggregate({...e,spatialFilter:this._spatialFilter})}async queryAggregate(e){if(null!=e.spatialFilter)throw new l.dr("NeverReach");return this._parent.queryAggregate({...e,spatialFilter:this._spatialFilter})}async _executeSpatialRelationTest(e){if(null==e.geometry)return!1;switch(this._relation){case"esriSpatialRelEnvelopeIntersects":{let t=(0,c.HA)(this._relationGeom.asJsonGeometry()),r=(0,c.HA)(e.geometry);return null!=t&&null!=r&&(0,u.C)("intersects",[t,r,(0,n.b)(this._relationGeom.spatialReference)])}case"esriSpatialRelIntersects":return(0,u.C)("intersects",[this._relationGeom.asJsonGeometry(),e.geometry,(0,n.b)(this._relationGeom.spatialReference)]);case"esriSpatialRelContains":return(0,u.C)("contains",[this._relationGeom.asJsonGeometry(),e.geometry,(0,n.b)(this._relationGeom.spatialReference)]);case"esriSpatialRelOverlaps":return(0,u.C)("overlaps",[this._relationGeom.asJsonGeometry(),e.geometry,(0,n.b)(this._relationGeom.spatialReference)]);case"esriSpatialRelWithin":return(0,u.C)("within",[this._relationGeom.asJsonGeometry(),e.geometry,(0,n.b)(this._relationGeom.spatialReference)]);case"esriSpatialRelTouches":return(0,u.C)("touches",[this._relationGeom.asJsonGeometry(),e.geometry,(0,n.b)(this._relationGeom.spatialReference)]);case"esriSpatialRelCrosses":return(0,u.C)("crosses",[this._relationGeom.asJsonGeometry(),e.geometry,(0,n.b)(this._relationGeom.spatialReference)]);case"esriSpatialRelRelation":return(0,u.C)("relate",[this._relationGeom.asJsonGeometry(),e.geometry,(0,n.b)(this._relationGeom.spatialReference),this._relationString]);default:return this._relation,!1}}getFieldsIndex(){return this._parent.getFieldsIndex()}}var h=r(85978);function y(e){return async(t,r,i)=>{if((0,s.E)(i,2,2,r),null===(i=(0,s.H)(i))[0]&&null===i[1])return!1;if((0,s.k)(i[0])){if((0,s.d)(i[1]))return new p({parentfeatureset:i[0],relation:e,relationGeom:i[1]});if(null===i[1])return new h.A({parentfeatureset:i[0]});throw new a.D$("InvalidParameter",r)}if((0,s.d)(i[0])){if((0,s.d)(i[1])){switch(e){case"esriSpatialRelEnvelopeIntersects":{let e=(0,c.HA)(i[0].asJsonGeometry()),t=(0,c.HA)(i[1].asJsonGeometry());return null!=e&&null!=t&&(0,u.C)("intersects",[e,t,(0,n.b)(i[0].spatialReference)])}case"esriSpatialRelIntersects":return(0,u.C)("intersects",[i[0].asJsonGeometry(),i[1].asJsonGeometry(),(0,n.b)(i[0].spatialReference)]);case"esriSpatialRelContains":return(0,u.C)("contains",[i[0].asJsonGeometry(),i[1].asJsonGeometry(),(0,n.b)(i[0].spatialReference)]);case"esriSpatialRelOverlaps":return(0,u.C)("overlaps",[i[0].asJsonGeometry(),i[1].asJsonGeometry(),(0,n.b)(i[0].spatialReference)]);case"esriSpatialRelWithin":return(0,u.C)("within",[i[0].asJsonGeometry(),i[1].asJsonGeometry(),(0,n.b)(i[0].spatialReference)]);case"esriSpatialRelTouches":return(0,u.C)("touches",[i[0].asJsonGeometry(),i[1].asJsonGeometry(),(0,n.b)(i[0].spatialReference)]);case"esriSpatialRelCrosses":return(0,u.C)("crosses",[i[0].asJsonGeometry(),i[1].asJsonGeometry(),(0,n.b)(i[0].spatialReference)])}throw new a.D$("InvalidParameter",r)}if((0,s.k)(i[1]))return new p({parentfeatureset:i[1],relation:e,relationGeom:i[0]});if(null===i[1])return!1;throw new a.D$("InvalidParameter",r)}if(null===i[0]){if((0,s.k)(i[1]))return new h.A({parentfeatureset:i[1]});if((0,s.d)(i[1])||null===i[1])return!1}throw new a.D$("InvalidParameter",r)}}function f(e){"async"===e.mode&&(e.functions.intersects=function(t,r){return e.standardFunctionAsync(t,r,y("esriSpatialRelIntersects"))},e.functions.envelopeintersects=function(t,r){return e.standardFunctionAsync(t,r,y("esriSpatialRelEnvelopeIntersects"))},e.signatures.push({name:"envelopeintersects",min:2,max:2}),e.functions.contains=function(t,r){return e.standardFunctionAsync(t,r,y("esriSpatialRelContains"))},e.functions.overlaps=function(t,r){return e.standardFunctionAsync(t,r,y("esriSpatialRelOverlaps"))},e.functions.within=function(t,r){return e.standardFunctionAsync(t,r,y("esriSpatialRelWithin"))},e.functions.touches=function(t,r){return e.standardFunctionAsync(t,r,y("esriSpatialRelTouches"))},e.functions.crosses=function(t,r){return e.standardFunctionAsync(t,r,y("esriSpatialRelCrosses"))},e.functions.relate=function(t,r){return e.standardFunctionAsync(t,r,async(e,t,i)=>{if(i=(0,s.H)(i),(0,s.E)(i,3,3,r),(0,s.d)(i[0])&&(0,s.d)(i[1]))return(0,u.C)("relate",[i[0].asJsonGeometry(),i[1].asJsonGeometry(),(0,n.b)(i[0].spatialReference),(0,s.w)(i[2])]);if((0,s.d)(i[0])&&null===i[1]||(0,s.d)(i[1])&&null===i[0])return!1;if((0,s.k)(i[0])&&null===i[1])return new h.A({parentfeatureset:i[0]});if((0,s.k)(i[1])&&null===i[0])return new h.A({parentfeatureset:i[1]});if((0,s.k)(i[0])&&(0,s.d)(i[1]))return new p({parentfeatureset:i[0],relation:"esriSpatialRelRelation",relationGeom:i[1],relationString:(0,s.w)(i[2])});if((0,s.k)(i[1])&&(0,s.d)(i[0]))return new p({parentfeatureset:i[1],relation:"esriSpatialRelRelation",relationGeom:i[0],relationString:(0,s.w)(i[2])});if(null===i[0]&&null===i[1])return!1;throw new a.D$("InvalidParameter",r)})})}},60999(e,t,r){r.d(t,{DZ:()=>f,Ke:()=>y,QA:()=>m,Tj:()=>c,UT:()=>d,aD:()=>g,jJ:()=>u});var a=r(32198),n=r(56372),s=r(97768),i=r(17676),l=r(10107),o=r(64108);function u(e,t,r){return(0,i.Lx)(e.map((e,a)=>t.apply(r,[e,a])))}async function c(e,t,r){return(await(0,i.Lx)(e.map((e,a)=>t.apply(r,[e,a])))).map(e=>e.value)}function p(e){return{ok:!0,value:e}}function h(e){return{ok:!1,error:e}}async function y(e){if(null==e)return{ok:!1,error:Error("no promise provided")};try{return p(await e)}catch(e){return h(e)}}async function f(e){try{return p(await e)}catch(e){return(0,i.QP)(e),h(e)}}function m(e){if(!0===e.ok)return e.value;throw e.error}function d(e,t){return new _(e,t)}let _=class extends n.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super(),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,s.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;let{signal:r}=this._abortController;this.promise=e(r),this.promise.then(e=>{this._result=p(e),this._cleanup()},e=>{this._result=h(e),this._cleanup()}),this._abortHandle=(0,i.u7)(t,this.abort)}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,s.xt)(this._abortHandle),this._abortController=null}};(0,a.Cg)([(0,l.MZ)()],_.prototype,"value",null),(0,a.Cg)([(0,l.MZ)()],_.prototype,"error",null),(0,a.Cg)([(0,l.MZ)()],_.prototype,"finished",null),(0,a.Cg)([(0,l.MZ)()],_.prototype,"promise",void 0),(0,a.Cg)([(0,l.MZ)()],_.prototype,"_result",void 0),_=(0,a.Cg)([(0,o.$K)("esri.core.asyncUtils.ReactiveTask")],_);class g{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});let t=await e;return{[Symbol.dispose]:t}}async run(e){let t={stack:[],error:void 0,hasError:!1};try{return(0,a.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,a.hk)(t)}}}},83027(e,t,r){const a=r(29953).ho;r.d(t,["h",0,a])}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[7915],{68197(e,t,r){r.d(t,{A:()=>h});var i=r(40876),n=r(4576),s=r(34727),a=r(78888);function o(e){return(0,s.qE)((0,a.Vr)(e),0,255)}function l(e,t){let r=e.toString(16).padStart(2,"0");return t?r.slice(0,1):r}function u(e){return.2126*(0,i.Q6)(e.r)+.7152*(0,i.Q6)(e.g)+.0722*(0,i.Q6)(e.b)}class h{static blendColors(e,t,r,i=new h){return i.r=Math.round(e.r+(t.r-e.r)*r),i.g=Math.round(e.g+(t.g-e.g)*r),i.b=Math.round(e.b+(t.b-e.b)*r),i.a=e.a+(t.a-e.a)*r,i._sanitize()}static fromRgb(e,t){let r=(0,i.lT)(e);return r?h.fromArray(r,t):null}static fromHex(e,t=new h){let r=(0,i.oW)(e);return r?h.fromArray(r,t):null}static fromArray(e,t=new h){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){let r=(0,i.Eq)(e);return r?h.fromArray(r,t):null}static fromJSON(e){return null==e?void 0:new h([e[0],e[1],e[2],(e[3]??255)/255])}toUnitRGB(){return[this.r/255,this.g/255,this.b/255]}toUnitRGBA(e){return e??=[0,0,0,0],e[0]=this.r/255,e[1]=this.g/255,e[2]=this.b/255,e[3]=null==this.a?1:this.a,e}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return this.toYiq()>=127}isLowContrastBlend(e,t=3){let r=e instanceof h?e:new h(e),i=u(this),n=u(r);return(Math.max(i,n)+.05)/(Math.min(i,n)+.05)<t}setColor(e){if("string"==typeof e)h.fromString(e,this);else if((0,n.yc)(e))h.fromArray(e,this);else{let t=e;this._set(t.r??0,t.g??0,t.b??0,t.a??1),e instanceof h||this._sanitize()}return this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(e){let t=e?.capitalize??!1,r=e?.digits??6,i=3===r||4===r,n=4===r||8===r,s=`#${l(this.r,i)}${l(this.g,i)}${l(this.b,i)}${n?l(Math.round(255*this.a),i):""}`;return t?s.toUpperCase():s}toYiq(){return.299*this.r+.587*this.g+.114*this.b}toCss(e=!1){let 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=0){let t=o(this.r),r=o(this.g),i=o(this.b);return 0===e||1!==this.a?[t,r,i,o(255*this.a)]:[t,r,i]}clone(){return new h(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=(0,i.c1)(this.r),this.g=(0,i.c1)(this.g),this.b=(0,i.c1)(this.b),this.a=(0,i.G1)(this.a),this}_set(e,t,r,i){this.r=e,this.g=t,this.b=r,this.a=i}}h.prototype.declaredClass="esri.Color"},40876(e,t,r){r.d(t,{Eq:()=>f,G1:()=>m,Q6:()=>E,TS:()=>s,V6:()=>n,Vm:()=>g,ay:()=>l,c1:()=>p,c4:()=>a,iw:()=>y,j5:()=>u,lT:()=>c,oW:()=>h,xV:()=>b});const i={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 n(e){return!!i[e]||!!i[e.toLowerCase()]}function s(e){return i[e]??i[e.toLowerCase()]}function a(e){return[...s(e)]}function o(e,t,r){r<0&&++r,r>1&&--r;let i=6*r;return i<1?e+(t-e)*i:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function l(e,t,r,i=1){let n=(e%360+360)%360/360,s=r<=.5?r*(t+1):r+t-r*t,a=2*r-s;return[Math.round(255*o(a,s,n+1/3)),Math.round(255*o(a,s,n)),Math.round(255*o(a,s,n-1/3)),i]}function u(e){let t=e.length>5,r=t?8:4,i=(1<<r)-1,n=t?1:17,s=t?9===e.length:5===e.length,a=Number("0x"+e.slice(1));if(isNaN(a))return null;let o,l=[0,0,0,1];return s&&(o=a&i,a>>=r,l[3]=n*o/255),o=a&i,a>>=r,l[2]=n*o,o=a&i,a>>=r,l[1]=n*o,o=a&i,a>>=r,l[0]=n*o,l}function h(e){if(!e.startsWith("#")||isNaN(Number(`0x${e.slice(1)}`)))return null;switch(e.length){case 4:case 5:{let t=parseInt(e.slice(1,2),16),r=parseInt(e.slice(2,3),16),i=parseInt(e.slice(3,4),16),n=4===e.length?15:parseInt(e.slice(4),16);return[t+16*t,r+16*r,i+16*i,(n+16*n)/255]}case 7:case 9:return[parseInt(e.slice(1,3),16),parseInt(e.slice(3,5),16),parseInt(e.slice(5,7),16),(7===e.length?255:parseInt(e.slice(7),16))/255];default:return null}}function c(e){let t=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(t){let e=t[2].split(/\s*,\s*/),r=t[1];if("rgb"===r&&3===e.length||"rgba"===r&&4===e.length){if(e[0].endsWith("%")){let t=e.map(e=>2.56*parseFloat(e));return 4===e.length&&(t[3]=parseFloat(e[3])),d(t)}return d(e.map(e=>parseFloat(e)))}if("hsl"===r&&3===e.length||"hsla"===r&&4===e.length)return l(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3]??"1"))}return null}function d(e){return e[0]=p(e[0]),e[1]=p(e[1]),e[2]=p(e[2]),e[3]=4===e.length?m(e[3]):1,e}function f(e){let t=n(e)?s(e):null;return t??=c(e),t??=h(e),t}function g(e){let t=f(e);return null==t?null:[t[0]/255,t[1]/255,t[2]/255,t[3]]}function m(e){return _(e,0,1)}function p(e){return Math.round(_(e,0,255))}function _(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}const y=1/2.2;function E(e){return e**2.2}function b(e){return e**y}},85334(e,t,r){r.d(t,{$:()=>y,IB:()=>o,Iy:()=>T,KV:()=>R,N2:()=>E,RH:()=>v,ZD:()=>b,sn:()=>I});var i=r(68197),n=r(4576),s=r(4718),a=r(34727);function o(e){return"r"in e&&"g"in e&&"b"in e}function l(e){return"h"in e&&"s"in e&&"v"in e}function u(e){return"l"in e&&"a"in e&&"b"in e}function h(e){return"l"in e&&"c"in e&&"h"in e}r(78955),r(91829);const c=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],d=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]];function f(e,t){let r,i,n=[];if(e[0].length!==t.length)throw Error("dimensions do not match");let s=e.length,a=e[0].length,o=0;for(r=0;r<s;r++){for(o=0,i=0;i<a;i++)o+=e[r][i]*t[i];n.push(o)}return n}function g(e){let t=[e.r/255,e.g/255,e.b/255].map(e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4),r=f(c,t);return{x:100*r[0],y:100*r[1],z:100*r[2]}}function m(e){let t=f(d,[e.x/100,e.y/100,e.z/100]).map(e=>{let t=e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055;return Math.min(1,Math.max(t,0))});return{r:Math.round(255*t[0]),g:Math.round(255*t[1]),b:Math.round(255*t[2])}}function p(e){let t=[e.x/95.047,e.y/100,e.z/108.883].map(e=>e>(6/29)**3?e**(1/3):1/3*(29/6)**2*e+4/29);return{l:116*t[1]-16,a:500*(t[0]-t[1]),b:200*(t[1]-t[2])}}function _(e){let t=e.l,r=[(t+16)/116+e.a/500,(t+16)/116,(t+16)/116-e.b/200].map(e=>e>6/29?e**3:3*(6/29)**2*(e-4/29));return{x:95.047*r[0],y:100*r[1],z:108.883*r[2]}}function y(e){return o(e)?e:h(e)?function(e){return m(_(function(e){let t=e.l,r=e.c,i=e.h;return{l:t,a:r*Math.cos(i),b:r*Math.sin(i)}}(e)))}(e):u(e)?function(e){return m(_(e))}(e):function(e){return"x"in e&&"y"in e&&"z"in e}(e)?m(e):l(e)?function(e){let t,r=(e.h+360)%360/60,i=e.s/100,n=e.v/100*255,s=n*i,a=s*(1-Math.abs(r%2-1));switch(Math.floor(r)){case 0:t={r:s,g:a,b:0};break;case 1:t={r:a,g:s,b:0};break;case 2:t={r:0,g:s,b:a};break;case 3:t={r:0,g:a,b:s};break;case 4:t={r:a,g:0,b:s};break;case 5:case 6:t={r:s,g:0,b:a};break;default:t={r:0,g:0,b:0}}return t.r=Math.round(t.r+n-s),t.g=Math.round(t.g+n-s),t.b=Math.round(t.b+n-s),t}(e):e}function E(e){return l(e)?e:function(e){let{r:t,g:r,b:i}=e,n=Math.max(t,r,i),s=n-Math.min(t,r,i),a=n,o=0===s?0:n===t?(r-i)/s%6:n===r?(i-t)/s+2:(t-r)/s+4,l=0===s?0:s/a;return o<0&&(o+=6),o*=60,l*=100,a*=100/255,{h:o,s:l,v:a}}(y(e))}function b(e){return u(e)?e:function(e){return p(g(e))}(y(e))}function v(e){return h(e)?e:function(e){return function(e){let t=e.l,r=e.a,i=e.b,n=Math.sqrt(r*r+i*i),s=Math.atan2(i,r);return s=s>0?s:s+2*Math.PI,{l:t,c:n,h:s}}(p(g(e)))}(y(e))}function R(e){return e[0]??=0,e[1]??=0,e[2]??=0,e}function I(e){return e.length=4,R(e),e[3]??=1,(0,a.qE)(e[3],0,1),e}function T(e,t,r={}){if(0===e.length||t<=0)return[];if(1===(e=e.map(e=>"string"==typeof e?new i.A(e):e)).length||1===t){let r=[],i=e[0];for(let e=0;e<t;e++)r.push(i.clone());return r}if(r.shuffle&&(e=(0,n.k4)((0,s.o8)(e),r.seed)),e.length>=t){let r=[],i=(e.length-1)/(t-1);for(let n=0;n<t;n++){let t=Math.round(n*i);r.push(e[t].clone())}return r}return function(e,t,r={}){let i=[],s=e.length-1,a=Math.ceil((t-e.length)/s);e:for(let n=0;n<s;n++){let s=e[n],o=e[n+1];for(let n=1;n<=a;n++){let l=n/(a+1);if(i.push(A(s,o,l,r)),i.length+e.length===t)break e}}return[...e.map(e=>e.clone()),...(0,n.k4)(i,r.seed??1)]}(e,t,r)}const S=(e,t)=>{let r=Math.floor(10*t())-5;return Math.min(255,Math.max(0,e+r))};function A(e,t,r,s={}){let a=e.r,o=e.g,l=e.b,u=t.r,h=t.g,c=t.b,d=Math.round(a+(u-a)*r),f=Math.round(o+(h-o)*r),g=Math.round(l+(c-l)*r);if(!s.offset)return new i.A([d,f,g]);let m=(0,n.Mo)(s.seed);return new i.A([S(d,m),S(f,m),S(g,m)])}},90629(e,t,r){r.d(t,{L7:()=>s,Lz:()=>a,PN:()=>o,cr:()=>l,gs:()=>h,ps:()=>n,r_:()=>c,tc:()=>u}),r(39829);const i=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i,n=o(1),s=a(1);function a(e){return e?e/72*96:0}function o(e){return e?72*e/96:0}function l(e){if("string"==typeof e){let t=e.match(i);if(t){let r=Number(t[1]),i=t[3]&&t[3].toLowerCase(),n=e.startsWith("-"),s="px"===i?o(r):r;return n?-s:s}return console.warn("screenUtils.toPt: input not recognized!"),null}return e}function u(e=0,t=0){return{x:e,y:t}}function h(e=0,t=0){return[e,t]}function c(e=0,t=0,r=0){return[e,t,r]}},4197(e,t,r){r.d(t,{Vj:()=>a,cj:()=>s,jh:()=>n});var i=r(9093);function n(e){return e<=1024?Array(e).fill(0):new Float64Array(e)}function s(e){return[...e]}function a(e){let t=(0,i.vt)();for(let r=0;r<16;++r)t[r]=e[r];return t}},70328(e,t,r){r.d(t,{BI:()=>M,C:()=>a,DC:()=>d,Dg:()=>g,Ej:()=>b,Ie:()=>A,Jt:()=>x,Lu:()=>R,Ne:()=>I,RF:()=>c,TF:()=>y,VL:()=>m,aI:()=>N,fA:()=>o,gE:()=>u,gX:()=>E,hZ:()=>S,iT:()=>f,is:()=>w,pg:()=>v,qv:()=>C,uJ:()=>_,vI:()=>T,vY:()=>l,v_:()=>O,vt:()=>s,w1:()=>h,yr:()=>p}),r(35522);var i=r(5443),n=(r(19419),r(4197));function s(e=O){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function a(e,t){for(let r=0;r<6;r++)e[r]=t[r];return e}function o(e,t,r,i,n,a,o=s()){return o[0]=e,o[1]=t,o[2]=r,o[3]=i,o[4]=n,o[5]=a,o}function l(e,t=s()){return function(e,t,r,i=s()){return S(i,C),function(e,t,r=0,i=t.length/3){let n=e[0],s=e[1],a=e[2],o=e[3],l=e[4],u=e[5];for(let e=0;e<i;e++)n=Math.min(n,t[r+3*e]),s=Math.min(s,t[r+3*e+1]),a=Math.min(a,t[r+3*e+2]),o=Math.max(o,t[r+3*e]),l=Math.max(l,t[r+3*e+1]),u=Math.max(u,t[r+3*e+2]);e[0]=n,e[1]=s,e[2]=a,e[3]=o,e[4]=l,e[5]=u}(i,e,t,r),i}(e,0,e.length/3,t)}function u(e,t=(0,n.jh)(24)){let[r,i,s,a,o,l]=e;return t[0]=r,t[1]=i,t[2]=s,t[3]=r,t[4]=i,t[5]=l,t[6]=r,t[7]=o,t[8]=s,t[9]=r,t[10]=o,t[11]=l,t[12]=a,t[13]=i,t[14]=s,t[15]=a,t[16]=i,t[17]=l,t[18]=a,t[19]=o,t[20]=s,t[21]=a,t[22]=o,t[23]=l,t}function h(e,t){return isFinite(e[2])||isFinite(e[5])?new i.A({xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}):new i.A({xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function c(e,t,r=e){r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r[2]=Math.min(e[2],t[2]),r[3]=Math.max(e[3],t[3]),r[4]=Math.max(e[4],t[4]),r[5]=Math.max(e[5],t[5])}function d(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function f(e,[t,r,i]){g(e,t,r,i)}function g(e,t,r,i){e[0]=Math.min(e[0],t),e[1]=Math.min(e[1],r),e[2]=Math.min(e[2],i),e[3]=Math.max(e[3],t),e[4]=Math.max(e[4],r),e[5]=Math.max(e[5],i)}function m(e){return e[0]>=e[3]?0:e[3]-e[0]}function p(e){return e[1]>=e[4]?0:e[4]-e[1]}function _(e){return e[2]>=e[5]?0:e[5]-e[2]}function y(e){let t=m(e),r=_(e),i=p(e);return t*t+r*r+i*i}function E(e,t=[0,0,0]){return t[0]=e[0]+m(e)/2,t[1]=e[1]+p(e)/2,t[2]=e[2]+_(e)/2,t}function b(e,t=[0,0,0]){return t[0]=m(e),t[1]=p(e),t[2]=_(e),t}function v(e,t){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function R(e,t){return t[0]=e[3],t[1]=e[4],t[2]=e[5],t}function I(e,t,r=e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==e&&(r[3]=e[3],r[4]=e[4],r[5]=e[5]),r}function T(e,t,r=e){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),e}function S(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function A(e){return e?S(e,C):s(C)}function x(e,t){return e[0]=t[0],e[1]=t[1],e[2]=-1/0,e[3]=t[2],e[4]=t[3],e[5]=1/0,e}function M(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=-1/0,e[3]=i,e[4]=n,e[5]=1/0,e}function w(e){return 6===e.length}function N(e,t,r){if(null==e||null==t)return e===t;if(!w(e)||!w(t))return!1;if(r){for(let i=0;i<e.length;i++)if(!r(e[i],t[i]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}const C=[1/0,1/0,1/0,-1/0,-1/0,-1/0],O=[0,0,0,0,0,0];s()},50498(e,t,r){var i=r(66552),n=r(5443),s=r(91075),a=r(48526),o=r(86738),l=r(39829),u=r(82799);const h=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),c=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),d={base:s.A,key:"type",typeMap:{extent:n.A,multipoint:a.A,point:o.A,polyline:u.A,polygon:l.A}},f=new i.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0});r.d(t,["Ye",0,c,"gy",0,h,"iI",0,f,"yR",0,d])},42521(e,t,r){r.r(t),r.d(t,{default:()=>We});var i=r(32198),n=r(4576),s=r(60999),a=r(69540),o=r(49186),l=r(36563),u=r(44208),h=r(53966),c=r(25728),d=r(17676),f=r(36708),g=r(91429),m=r(87024),p=r(4146),_=r(52136),y=r(18768),E=r(69208),b=r(34287),v=r(8303),R=r(25036),I=r(58947),T=r(10873),S=r(10292),A=r(58083),x=r(9093),M=r(35522),w=r(51850),N=r(34727),C=r(37539),O=r(79258);function L(e,t,r,i){let n=i+t;if(n<i/2||r>n)return Number.MAX_VALUE;let s=Math.abs(U*e)+Math.asin(r/n);return s>=Math.PI/2?Number.MAX_VALUE:r/Math.cos(s)}const D=(0,w.vt)(),U=(0,N.kU)(1);var F=r(27993),P=r(16930),k=r(98764);(0,w.vt)();var q=r(71351),G=r(28540),V=r(19419),Q=r(89707);class j extends Q.H{constructor(e,t){super(NaN,NaN),this.id=e,this.serviceMbsInIndexSR=t,this._serviceMbsInRenderSRElevationAdjusted=new G.i(0,0,0,-1),this._serviceMbsInRenderSR=new G.i(0,0,0,-1),this._serviceMbsElevationUpdateExtent=null,this._mbsConeInRenderSR=null}get serviceMbsInRenderSRElevationAdjusted(){return this._serviceMbsInRenderSRElevationAdjusted}updateServiceMbsInRenderSRElevationAdjusted(e){return this._serviceMbsInRenderSRElevationAdjusted.copyFrom(e),this._serviceMbsInRenderSRElevationAdjusted}get serviceMbsInRenderSR(){return this._serviceMbsInRenderSR}updateServiceMbsInRenderSR(e){return this._serviceMbsInRenderSR.copyFrom(e),null!=this._serviceMbsElevationUpdateExtent&&(0,V.Ie)(this._serviceMbsElevationUpdateExtent),this._serviceMbsInRenderSR}get serviceMbsElevationUpdateExtent(){return this._serviceMbsElevationUpdateExtent??=(0,V.Ie)()}get mbsConeInRenderSR(){return this._mbsConeInRenderSR}updateMbsConeInRenderSR(e){return this._mbsConeInRenderSR=e.clone(),this._mbsConeInRenderSR}invalidateServiceBVsInRenderSR(){this._serviceMbsInRenderSRElevationAdjusted.invalidate(),this._serviceMbsInRenderSR.invalidate(),null!=this._serviceMbsElevationUpdateExtent&&(0,V.Ie)(this._serviceMbsElevationUpdateExtent),this._mbsConeInRenderSR=null,this.serviceObbInRenderSR?.invalidate()}shareServiceBVsInRenderSRWith(e){this.serviceObbInRenderSR=e.serviceObbInRenderSR,this._serviceMbsInRenderSRElevationAdjusted=e._serviceMbsInRenderSRElevationAdjusted,this._serviceMbsInRenderSR=e._serviceMbsInRenderSR,this._serviceMbsElevationUpdateExtent=e._serviceMbsElevationUpdateExtent??=(0,V.Ie)(),this._mbsConeInRenderSR=e._mbsConeInRenderSR}}class H extends j{constructor(e,t,r,i,n,s,a,o,l,u,h){super(e,r),this.index=t,this.childCount=i,this.level=n,this.resources=s,this.version=a,this.lodMetric=o,this.maxError=l,this.numFeatures=u,this.failed=!1,this.cacheState=0,this.vertexCount=0,this.memory=0,this.childrenLoaded=0,this.hasModifications=!1,this.imModificationImpact=4,this.elevationAgnosticBoundingVolume=new W,this.serviceObbInIndexSR=h}invalidateServiceBVsInRenderSR(){super.invalidateServiceBVsInRenderSR(),this.elevationAgnosticBoundingVolume.invalidate()}}class W{constructor(){this._data=[0,0,0,W.invalidRadius]}static{this.invalidRadius=-2}invalidate(){this._data[3]=W.invalidRadius}get valid(){return this._data[3]!==W.invalidRadius}get radius(){return this._data[3]}getAxis(e){return e[0]=this._data[0],e[1]=this._data[1],e[2]=this._data[2],e}set(e,t){this._data[0]=e[0],this._data[1]=e[1],this._data[2]=e[2],this._data[3]=t}intersectsFrustumConservative(e,t,r){if(!this.valid)return!0;let i=this.getAxis($),{center:n,radius:s}=e.boundingSphere,a=s+r;return 1===t?this.radius>B||function(e,t,r,i){let n=(0,M.Bw)(r);if(n<=i)return!0;let s=(0,M.Om)(e,r);if(s<=0)return-s<=i;let a=(0,N.qE)(s/n,-1,1),o=Math.sqrt(1-a*a),l=(0,N.qE)(i/n,0,1);return o*Math.sqrt(1-l*l)-l*a<=t}(i,this.radius,n,a):function(e,t,r,i){let n=r[0]-e[0],s=r[1]-e[1],a=t+i;return n*n+s*s<=a*a}(i,this.radius,n,a)&&function(e,t,r,i,n){for(let s of n){let n=s[0],a=s[1],o=s[2],l=o>0?r:i;if(n*e[0]+a*e[1]+o*l+s[3]-Math.hypot(n,a)*t>0)return!1}return!0}(i,this.radius,n[2]-a,n[2]+a,e.planes)}}const $=(0,w.vt)(),B=.9;var z=r(25992),Z=r(66480),Y=r(57005),K=r(4431),X=r(62747),J=r(58682),ee=r(92359);class te{constructor(e){this.children=e.children,this.obb=Y.ab.fromJSON(e.obb),this.geometryResource=e.mesh?.geometry.resource,this.geometryDefinition=e.mesh?.geometry.definition}}class re{constructor(e){this.nodes=e.nodes.map(e=>new te(e))}}class ie{constructor(e,t,r){this.id=e,this.obb=null==r?null:Y.ab.fromJSON(r),this.mbs=null==this.obb?new G.i(t):null}}class ne extends ie{constructor(e){super(e.id,e.mbs,e.obb),this.mbs=new G.i(e.mbs),this.children=e.children?.map(e=>new ie(e.id,e.mbs,e.obb)),this.hasSharedResource=null!=e.sharedResource,this.hasGeometryData=(e.geometryData?.length??0)>0,this.version=e.version}}class se{constructor(e,t,r){this._layer=e,this._descriptor=t,this._options=r,this._queryRays=[],this._subtaskAbortController=new AbortController,this._highest=new Float64Array,this._signal=AbortSignal.any([r.signal,this._subtaskAbortController.signal]),this._indexSpatialReference=(0,Z.Rm)(e),this._vertexSpatialReference=(0,Z.Dd)(e),this._intersectionSpaceSpatialReference=function(e,t){return e?(0,k.lO)(t):t.isGeographic?P.A.PlateCarree:t}(this._indexSpatialReference.isGeographic,this._indexSpatialReference),this._indexToVertexProjector=(0,C.wy)(this._indexSpatialReference,this._vertexSpatialReference),this._vertexToIntersectionSpaceProjector=(0,C.wy)(this._vertexSpatialReference,this._intersectionSpaceSpatialReference),this.frameTask=r.scheduler.registerTask(ee.W6.ELEVATION_QUERY),this.promise=this._run()}async _run(){let e={stack:[],error:void 0,hasError:!1};try{(0,i.mS)(e,this.frameTask,!1);try{let e=this._descriptor;if("point"!==e.geometry.type&&"multipoint"!==e.geometry.type&&"polyline"!==e.geometry.type)throw new o.A("elevation-query:invalid-geometry","Only point, polyline and multipoint geometries can be used to query elevation");if(null==this._indexToVertexProjector||null==this._vertexToIntersectionSpaceProjector)throw new o.A("integrated-mesh-elevation-query:projection","Failed to create projection for elevation query.");let t=await e.project(this._indexSpatialReference,this._signal);(0,d.Te)(this._signal),t??this._throwSpatialReferenceMismatchError();for(let e of t.coordinates){let t=le(e.x,e.y,this.getRootRayOriginZ(),this._indexSpatialReference,this._intersectionSpaceSpatialReference);t??this._throwSpatialReferenceMismatchError(),this._queryRays.push(t)}this._highest=new Float64Array(this._queryRays.length).fill(-1/0),await this.visitRoot(this._queryRays.map((e,t)=>t)),(0,d.Te)(this._signal);for(let e=0;e<t.coordinates.length;++e){let r=this._highest[e];t.coordinates[e].z=r===-1/0?ue:r}return t}catch(e){throw this._subtaskAbortController.abort(),e}}catch(t){e.error=t,e.hasError=!0}finally{(0,i.hk)(e)}}_throwSpatialReferenceMismatchError(){throw new o.A("elevation-query:spatial-reference-mismatch",`Cannot query elevation in '${this._descriptor.spatialReference.wkid}' on an elevation service in '${this._indexSpatialReference.wkid}'`)}_intersectsQueryObb(e,t){let r=new Y.ab;return e.transform(r,this._indexSpatialReference,this._intersectionSpaceSpatialReference),t.filter(e=>{let t=this._queryRays[e];return r.intersectRay(t.origin,t.direction)})}intersectsQueryBounds(e,t){if(null==e)return t;if(null!=e.obb)return this._intersectsQueryObb(e.obb,t);let r=e.mbs;if(null==r)return t;let i=new G.i;return function(e,t,r,i){if(null==e||null==t||null==i)return!1;let n=(0,C.Tp)(t,i);if(null==n?.projector)return!1;if(n.projector===C.pO)return r.copyFrom(e),!0;let{source:s,dest:a,projector:o}=n;if(3===a.spatialReferenceId){let t=C.w5[s.spatialReferenceId][2];return null!=t&&(t(e.center,0,D,0),(0,C.s7)(D,0,r.center,0),r.radius=L(D[1],e.center[2],e.radius,O.$O.radius),!0)}if(2!==s.spatialReferenceId&&5!==s.spatialReferenceId||11!==a.spatialReferenceId){o(e.center,0,r.center,0);let t=s.metersPerUnit??1,i=a.metersPerUnit??1;r.radius=e.radius*t/i}else{let t=C.w5[s.spatialReferenceId][1],i=C.w5[1][11],n=e.radius;null!=t&&null!=i&&(n=L(e.center[1],e.center[2],e.radius,O.$O.radius)),o(e.center,0,r.center,0),r.radius=n}return!0}(r,this._indexSpatialReference,i,this._intersectionSpaceSpatialReference)?t.filter(e=>i.intersectRay(this._queryRays[e])):t}async _processLeafNode(e,t){let r=await this._loadGeometry(e);(0,d.Te)(this._signal),null!=r&&await this.frameTask.schedule(()=>{for(let e of t)this._highest[e]=this.intersectTransformedGeometry(r,this._queryRays[e],this._highest[e],this._options.elevationOffset)},this._signal)}async _loadGeometry(e){let t=await this._layer.elevationQueryNodeLoader.loadNodeData(e,this._signal);return(0,d.Te)(this._signal),null==t.geometryBuffer||null==t.geometryDescriptor?null:this.transformNode(e,t)}async transformNode(e,t){let r=e.serviceMbsInIndexSR;if(null==r)return null;let i=(0,z.C)(r,0,he,this._indexSpatialReference,this._intersectionSpaceSpatialReference),n={context:`i3s-elevation-query-${this._layer.uid}`,geometryBuffer:t.geometryBuffer,geometryData:null,geometryDescriptor:t.geometryDescriptor,layouts:[ce],globalTrafo:i,geometryElevationOffset:0,mbs:r.toJSON(),obbData:e.serviceObbInIndexSR?.data,elevationOffset:0,planetRadiusInGlobalMode:0,needNormals:!1,computeNormals:!1,normalReferenceFrame:he,indexToVertexProjector:this._indexToVertexProjector,vertexToRenderProjector:this._vertexToIntersectionSpaceProjector},s=await this._layer.processElevationQueryGeometry(n,this._signal);return(0,d.Te)(this._signal),s}intersectTransformedGeometry(e,t,r,i){let n=e.globalTrafo;if(null==(0,A.B8)(de,n))return r;let s=(0,M.Z0)(fe,t.origin,de),a=(0,M.WQ)(ge,t.origin,t.direction),o=(0,M.Z0)(me,a,de),l=(0,M.jb)(pe,o,s),{data:u,indices:h}=e.transformedGeometry.positionData,c=h.length/3,d=r;return(0,J.h7)(s,l,0,c,h,u,3,!1,e=>{let t=(0,M.hs)(_e,l,e);(0,M.WQ)(t,t,s);let r=(0,M.Z0)(ye,t,n),a=Ee;if((0,F.F)(r,this._intersectionSpaceSpatialReference,a,this._layer.spatialReference)){let e=a[2]+i;d=Math.max(d,e)}}),d}async requestJSON(e){let t=await this._layer.elevationQueryDataRequester.request(e,"json",this._signal);return(0,d.Te)(this._signal),t}}class ae extends se{constructor(e,t,r,i){super(e,t,r),this._pages=new Map,this._pageSize=i.pageSize,this._rootIndex=i.rootIndex,this._urlPrefix=i.urlPrefix;let n=this._pageId(this._rootIndex),s=this._rootIndex-n*this._pageSize;this._rootPage=new re(i.rootPage);let a=this._rootPage.nodes[s].obb;this._rootRayOriginZ=a.centerZ+a.radius+1}visitRoot(e){return this._visitNode(this._rootIndex,e)}getRootRayOriginZ(){return this._rootRayOriginZ}_pageId(e){return Math.floor(e/this._pageSize)}getPage(e){if(e===this._pageId(this._rootIndex))return Promise.resolve(this._rootPage);let t=this._pages.get(e);if(null==t){let r=`${this._urlPrefix}${e}`;t=this.requestJSON(r).then(e=>new re(e)),this._pages.set(e,t)}return t}async _visitNode(e,t){if(0===t.length)return;let r=this._pageId(e),i=await this.getPage(r);(0,d.Te)(this._signal);let n=i.nodes[e-r*this._pageSize],s=this._intersectsQueryObb(n.obb,t);if(0===s.length)return;let{children:a}=n;if(null!=a&&a.length>0)return await Promise.all(a.map(e=>this._visitNode(e,s))),void(0,d.Te)(this._signal);let o=this._createNode(e,n);null!=o&&(await this._processLeafNode(o,s),(0,d.Te)(this._signal))}_createNode(e,t){return null==t.geometryResource||null==t.geometryDefinition?null:new H(`${e}`,e,new G.i(t.obb.getCenter((0,w.vt)()),t.obb.radius),t.children?.length??0,0,{hasSharedResource:!1,isEmpty:!1,geometry:`${t.geometryResource}`,geometryDefinition:t.geometryDefinition,materialDefinition:-1},"",0,0,null,t.obb.clone())}}class oe extends se{constructor(e,t,r,i){super(e,t,r),this._rootNode=new ne(i.rootNode),this._urlPrefix=i.urlPrefix}visitRoot(e){let t=this.intersectsQueryBounds(this._rootNode,e);return 0===t.length?Promise.resolve():this._visitNodeData(this._rootNode,null!=this._rootNode.obb,t)}getRootRayOriginZ(){return this._rootNode.mbs.center[2]+this._rootNode.mbs.radius+1}_visitNode(e,t){let r=this.intersectsQueryBounds(e,t);return 0===r.length?Promise.resolve():this._visitNodeAsync(e,r)}async _visitNodeAsync(e,t){let r=`${this._urlPrefix}${e.id}`,i=new ne(await this.requestJSON(r));(0,d.Te)(this._signal),await this._visitNodeData(i,null!=e.obb,t),(0,d.Te)(this._signal)}async _visitNodeData(e,t,r){let i=t||null==e.obb?r:this._intersectsQueryObb(e.obb,r);if(0===i.length)return;let{children:n}=e;if(null!=n&&n.length>0)return await Promise.all(n.map(e=>this._visitNode(e,i))),void(0,d.Te)(this._signal);let s=this._createNode(e);null!=s&&(await this._processLeafNode(s,i),(0,d.Te)(this._signal))}_createNode(e){if(!e.hasGeometryData)return null;let{id:t}=e;return new H(t,0,e.mbs.clone(),e.children?.length??0,0,{hasSharedResource:e.hasSharedResource,isEmpty:!1,geometry:t,geometryDefinition:0},e.version??"",0,0,null,e.obb?.clone()??null)}}function le(e,t,r,i,n){let s=(0,w.fA)(e,t,r),a=(0,w.fA)(e,t,r-1e3),o=(0,w.vt)(),l=(0,w.vt)();return(0,F.F)(s,i,o,n)&&(0,F.F)(a,i,l,n)?(0,q.Cr)(o,l):null}const ue=Number.MAX_VALUE,he="none",ce=(0,K.U)((0,X.hH)(new X.W7(!1,!1,0))),de=(0,x.vt)(),fe=(0,w.vt)(),ge=(0,w.vt)(),me=(0,w.vt)(),pe=(0,w.vt)(),_e=(0,w.vt)(),ye=(0,w.vt)(),Ee=(0,w.vt)();var be=r(50805),ve=r(58325),Re=r(24212),Ie=r(80215),Te=r(97159),Se=r(16215),Ae=r(98697),xe=r(56507),Me=r(97768),we=r(50075);class Ne{constructor(e,t){this._customParameters=e,this._apiKey=t,this._activeRequests=new Set}isFull(e){return(0,we._i)(e)}request(e,t,r){let i=new AbortController,n=(0,d.NY)(r,()=>i.abort()),s={...we.Fz,signal:i.signal,responseType:t,query:{...this._customParameters,token:this._apiKey}},a=(0,xe.A)(e,s),o={abortController:i,abortHandle:n};return this._activeRequests.add(o),a.then(({data:e})=>e).finally(()=>{o.abortController=null,o.abortHandle=(0,Me.xt)(o.abortHandle),this._activeRequests.delete(o)})}cancelAll(){this._activeRequests.forEach(e=>{e.abortController=(0,Me.DC)(e.abortController),e.abortHandle=(0,Me.xt)(e.abortHandle)}),this._activeRequests.clear()}}var Ce=r(4718),Oe=r(84952),Le=r(59418),De=r(85334);r(91829),r(73941),r(76200);var Ue=r(74810),Fe=r(49788);function Pe(e){return e.sort((e,t)=>e.encoding-t.encoding)}const ke={ktx2:1,basis:2,dds:4,png:8,jpg:16,"ktx-etc2":32},qe={"image/ktx2":2,"image/x.basis":2,"image/vnd-ms.dds":4,"image/png":8,"image/jpg":16,"image/jpeg":16,"image/ktx":32};function Ge(e){let t=e?.materialDefinitions?Object.keys(e.materialDefinitions)[0]:null,r=e?.textureDefinitions?Object.keys(e.textureDefinitions)[0]:null,i=t?e.materialDefinitions?.[t]:null,n=r?e.textureDefinitions?.[r]:null,s=Ve();if(null!=i){let e=i.params;e.diffuse&&((0,De.KV)(e.diffuse),s.metallicRoughness.baseColorFactor=[e.diffuse[0],e.diffuse[1],e.diffuse[2],1]),null!=e.doubleSided&&(s.doubleSided=e.doubleSided,s.cullFace=e.doubleSided?0:2),("none"===e.cullFace||"front"===e.cullFace||"back"===e.cullFace)&&(s.cullFace="none"===e.cullFace?0:"back"===e.cullFace?2:1),e.transparency&&(s.metallicRoughness.baseColorFactor[3]=(0,N.qE)(1-e.transparency,0,1)),(e.useVertexColorAlpha||s.metallicRoughness.baseColorFactor[3]<1)&&(s.alphaMode="blend")}let a=[];if(null!=n){n.wrap&&("repeat"===n.wrap[0]||"repeat"===n.wrap[1])&&(s.wrapTextures=!0);let e=1;"rgba"===n.channels&&(s.alphaMode="blend",e|=32);let t=n.images.length-1,r=n.images[t],i=e=>e?.split("/").pop(),o=Array.isArray(n.encoding)?Pe(n.encoding.map((e,t)=>({name:i(r.href[t]),encoding:qe[e]||0}))):[{name:i(r.href),encoding:qe[n.encoding]||0}];a.push({id:0,usage:e,encodings:o}),s.metallicRoughness.baseColorTextureId=0}return{material:s,textures:a}}const Ve=()=>({alphaMode:"opaque",alphaCutoff:Fe.Q,doubleSided:!0,cullFace:0,normalTextureId:-1,emissiveTextureId:-1,occlusionTextureId:-1,emissiveFactor:[0,0,0],metallicRoughness:{baseColorFactor:[.8,.8,.8,1],baseColorTextureId:-1,metallicRoughnessTextureId:-1,metallicFactor:0,roughnessFactor:.6},wrapTextures:!1,hasParametersFromSource:!0});class Qe{constructor(e,t,r,i,n,s){if(this._requester=t,this._logger=r,this._defaultGeometrySchema=i,this._requiredAttributes=n,this._options=s,this._logLayer=e,this._layerUrl=e.parsedUrl.path,this._geometryDefinitions=e.geometryDefinitions,e.materialDefinitions){let t=e.textureSetDefinitions;this._materialAndTextures=e.materialDefinitions.map(r=>function(e,t,r){let i=new Map,n=(e,t)=>{if(null==e)return-1;let r=i.get(e.id);if(r)return r.usage|=t,r.id;let n=i.size;return i.set(e.id,{id:n,usage:t}),n},s=t.pbrMetallicRoughness,a=s?.baseColorFactor?(0,De.sn)(s.baseColorFactor):null,o=t.emissiveFactor,l=r&&0===s?.metallicFactor||(0,Ue.Jr)({normalTexture:t.normalTexture,emissiveTexture:t.emissiveTexture,emissiveFactor:t.emissiveFactor,occlusionTexture:t.occlusionTexture,metallicRoughnessTexture:s?.metallicRoughnessTexture,metallicFactor:s?.metallicFactor,roughnessFactor:s?.roughnessFactor}),u=l?Ue.Bt[0]:s?.metallicFactor??Ue.mb[0],h=l?Ue.Bt[1]:s?.roughnessFactor??Ue.mb[1],c="mask"===t.alphaMode?33:1,d={baseColorFactor:a?[a[0],a[1],a[2],a[3]]:[1,1,1,1],baseColorTextureId:n(s?.baseColorTexture,c),metallicRoughnessTextureId:n(s?.metallicRoughnessTexture,2),metallicFactor:u,roughnessFactor:h},f={alphaMode:t.alphaMode,alphaCutoff:t.alphaCutoff,doubleSided:t.doubleSided,cullFace:"none"===t.cullFace?0:"back"===t.cullFace?2:+("front"===t.cullFace),normalTextureId:n(t.normalTexture,4),emissiveTextureId:n(t.emissiveTexture,16),occlusionTextureId:n(t.occlusionTexture,8),emissiveFactor:o?[o[0],o[1],o[2]]:[0,0,0],metallicRoughness:d,wrapTextures:!1,hasParametersFromSource:l},g=[];return i.forEach(({usage:t},r)=>{let i=null!=e&&e[r]&&e[r].formats,n=i?Pe(i.map(({name:e,format:t})=>({name:e,encoding:ke[t]}))):[];g.push({id:r,usage:t,encodings:n})}),{material:f,textures:g}}(t,r,"integrated-mesh"===e.type))}}_loadAttribute(e,t,r){let i=`${this._layerUrl}/nodes/${e.resources.attributes}/attributes/${t.key}/0`;return this._requester.request(i,"array-buffer",r).then(e=>(0,Le.m0)(t,e))}async loadAttributes(e,t,r){let i=await Promise.allSettled(t.map(t=>this._loadAttribute(e,t.attributeStorageInfo,r))),n={};for(let r=0;r<t.length;++r){let s=i[r],a=t[r];if("fulfilled"===s.status){let e=s.value;n[a.name]=e}else{let t=s.reason;(0,d.QP)(t),this._logger.error("#loadAttributes",this._logLayer,`Failed to load attributeData for '${a.name}' on node '${e.id}'`,t)}}return n}async loadNodeData(e,t){let r=null!=this._requiredAttributes&&e.resources.attributes?(0,s.Ke)(this.loadAttributes(e,this._requiredAttributes,t)):null,{bufferDefinition:i,bufferIndex:n}=function(e,t){let r={bufferDefinition:null,bufferIndex:0},i=t.resources.geometryDefinition;if(null==e||null==i||i<0)return r;let n=i>=0?e[i].geometryBuffers:null;if(null==n)return r;for(let e=0;e<n.length;e++){let t=n[e];if(null!=t.compressedAttributes){if("draco"===t.compressedAttributes.encoding&&!(0,u.A)("disable-feature:i3s-draco"))return r.bufferIndex=e,r.bufferDefinition=t,r}else r.bufferIndex=e,r.bufferDefinition=n[e]}return r}(this._geometryDefinitions,e),a=!!e.resources.geometry,o=a?(0,s.Ke)(this._loadGeometry(e.resources.geometry,n,t)):null,l=e.resources.hasSharedResource?await this._loadShared(e,t):null,h=e.resources.materialDefinition,c=this._materialAndTextures&&null!=h&&h>=0?this._materialAndTextures[h]:null==l?null:Ge(l),d=c?.material,f=c?.textures??[],g=`${e.id}`,m=!a&&this._options.loadFeatureData,p=m?await this._loadFeatureData(g,t):null,_=m?function(e){if(!e)return null;for(let t of e.featureData){let e=t.geometries;if(null!=e)for(let r of e)return{featureIds:[t.id],featureDataPosition:t.position,geometries:[r]}}return null}(p):{featureIds:[],geometries:[{type:"ArrayBufferView",params:{material:d}}],featureDataPosition:[0,0,0]},y=null==_?function(e){if(!e)return null;let t=[];for(let r of e.featureData)null!=r.position&&t.push({featureIds:[r.id],featureDataPosition:r.position,geometries:[]});return t}(p):null,E=f.length>0?(0,s.Ke)(this.loadTextures(e,f,t)):null,b=null,v=null;if(o){b=(0,s.QA)(await o);let e=function(e,t){if(!e||!t?.materialDefinitions)return e;let r=Object.keys(t.materialDefinitions)[0];return!t.materialDefinitions[r].params.vertexRegions&&e.vertexAttributes.region&&delete(e=(0,Ce.o8)(e)).vertexAttributes.region,e}(this._defaultGeometrySchema,l);v=(0,Le.qs)(i,e)}let R=E?(0,s.QA)(await E):null,I=r?(0,s.QA)(await r):{},T=I?{attributeData:I,loadedAttributes:this._requiredAttributes}:null;if(null!=_)return{geometryData:_,attributeDataInfo:T,geometryBuffer:b,geometryDescriptor:v,requiredTextures:f,textureData:R};if(null!=y)return{pointData:y,attributeDataInfo:T,geometryBuffer:b,geometryDescriptor:v,requiredTextures:f,textureData:R};throw Error()}static _addAbsoluteHrefTexture(e,t){let r=e.textureDefinitions;if(null!=r)for(let e of Object.keys(r))for(let i of r[e].images)i.hrefConcat=Array.isArray(i.href)?i.href.map(e=>(0,Oe.s2)(e,t)):(0,Oe.s2)(i.href,t)}static _fixTextureEncodings(e){let t=e.textureDefinitions;if(null!=t)for(let e in t){let r=t[e];if(Array.isArray(r.encoding))for(let e=0;e<r.encoding.length;e++){let t=r.encoding[e];t.startsWith("data:")&&(r.encoding[e]=t.slice(5))}else{let e=r.encoding;e.startsWith("data:")&&(r.encoding=e.slice(5))}}}async _loadShared(e,t){if(null==e.resources.geometry)return{};let r=`${this._layerUrl}/nodes/${e.resources.geometry}/shared`,i=await this._requester.request(r,"json",t);return Qe._fixTextureEncodings(i),Qe._addAbsoluteHrefTexture(i,r),i}_loadTexture(e,t,r,i,n){return 4===i||1===i||2===i?this._requester.request(e,"array-buffer",n).then(e=>({id:t,usage:r,data:e,encoding:i})):this._requester.request(e,"image",n).then(e=>({id:t,usage:r,data:e,encoding:i}))}loadTextures(e,t,r){let i=this._options.textureUsageMask;return Promise.all(t.map(t=>{if(0===(t.usage&i))return null;let n=function(e,t){if(null!=t)return e.find(e=>0!==(e.encoding&t))}(t.encodings,this._options.textureEncodings);if(null==n)return this._logger.error("#loadTextures",this._logLayer,`No known encoding for texture found on node ${e.id}`),Promise.reject();let s=e.resources.texture||e.id,a=`${this._layerUrl}/nodes/${s}/textures/${n.name}`;return this._loadTexture(a,t.id,t.usage,n.encoding,r)}))}_loadFeatureData(e,t){let r=`${this._layerUrl}/nodes/${e}/features/0`;return this._requester.request(r,"json",t)}_loadGeometry(e,t,r){let i=`${this._layerUrl}/nodes/${e}/geometries/${t}`;return this._requester.request(i,"array-buffer",r)}}var je=r(36005);let He=class extends((0,I.w6)((0,y.b)((0,b.q)((0,v.A)((0,R.j)((0,c.M)((0,E.d)((0,_.p)((0,a.OU)(p.A)))))))))){constructor(e){super(e),this.geometryType="mesh",this.operationalLayerType="IntegratedMeshLayer",this.type="integrated-mesh",this.nodePages=null,this.materialDefinitions=null,this.textureSetDefinitions=null,this.geometryDefinitions=null,this.serviceUpdateTimeStamp=null,this.profile="mesh-pyramids",this.modifications=null,this._modificationsSource=null,this.path=null,this.definitionExpression=null,this._elevationQueryAbortController=new AbortController,this._elevationQueryWorkerContext=`i3s-elevation-query-${this.uid}`,this._elevationQueryWorkerHandle=null,this._elevationQueryWorkerSetup=null,this._modificationsGeneration=0}destroy(){this._elevationQueryAbortController.abort();let e=this._elevationQueryWorkerHandle;this._elevationQueryWorkerHandle=null,this._elevationQueryWorkerSetup=null,e?.destroyContextAndSelf(this._elevationQueryWorkerContext),super.destroy()}initialize(){this.addHandles([(0,f.on)(()=>this.modifications,"after-changes",()=>{this.modifications=this.modifications,this._modificationsGeneration++},f.OH),(0,f.wB)(()=>this.modifications,()=>this._modificationsGeneration++,f.OH),(0,f.wB)(()=>this.memoizedElevationQueryDependencies,()=>this._abortElevationQueriesAfterDependencyChange(),f.OH),(0,f.wB)(()=>this.elevationQueryDataRequester,()=>this._abortElevationQueriesAfterDependencyChange(),f.OH)])}readModifications(e,t,r){this._modificationsSource={url:(0,Te.f)(e,r),context:r}}set elevationInfo(e){(null==e||"absolute-height"===e.mode)&&this._set("elevationInfo",e),this._validateElevationInfo(e)}async load(e){return this.addResolvingPromise(this._doLoad(e)),this}get _elevationQueryWorker(){return this._elevationQueryWorkerHandle??=new Ae.Cm((e,t)=>ee.nu.schedule(e,t))}get memoizedElevationQueryDependencies(){return[this.elevationInfo?.offset,this._modificationsGeneration]}async queryElevation(e,t,r){let a={stack:[],error:void 0,hasError:!1};try{let u=r?.noDataValue??Number.MAX_VALUE,h=this._elevationQueryWorker,c=new AbortController;e.addHandles((0,l.rE)(c),c),(0,i.mS)(a,(0,l.Bf)((0,l.hA)(()=>e.removeHandles(c))),!1);let f=AbortSignal.any([r?.signal,this._elevationQueryAbortController.signal,c.signal].filter(n.Ru));await this.load({signal:f}),(0,d.Te)(f);let g=S.q.fromGeometry(t),m={signal:f,elevationOffset:this.elevationInfo?.offset??0,scheduler:e.resourceController.scheduler};if(null==this._elevationQueryWorkerSetup){let e=this.store?.defaultGeometrySchema;null!=e&&(this._elevationQueryWorkerSetup=(0,s.Ke)(h.setLegacySchema(this._elevationQueryWorkerContext,e)))}let p=await async function(e,t,r){let i=await e.indexInfo;if((0,d.Te)(r.signal),null==i)throw new o.A("integrated-mesh-elevation-query:index-missing","I3S index information is missing.");return"page"===i.type?new ae(e,t,r,i).promise:new oe(e,t,r,i).promise}(this,g,m);(0,d.Te)(f);let _=p.coordinates,y=Array(_.length);for(let e=0;e<_.length;++e){let t=_[e],r=t.z===ue;y[e]=r,r&&(t.z=u)}let E=await p.project(t.spatialReference,f);(0,d.Te)(f);let b=E??g.clone(),v={geometry:b.export(),noDataValue:u};return r?.returnSampleInfo&&(v.sampleInfo=b.coordinates.map((e,t)=>({demResolution:y[t]?-1:1}))),v}catch(e){a.error=e,a.hasError=!0}finally{(0,i.hk)(a)}}async queryElevationForGround(e,t){let r=S.q.fromGeometry(e),i=$e(e),{view:n,...s}=t;if(null!=i&&"3d"===n?.type){let e=await this.queryElevation(n,i,s),t=S.q.fromGeometry(e.geometry),a=t.coordinates.map((t,r)=>({demResolution:e.sampleInfo?.[r]?.demResolution??(t.z===e.noDataValue?-1:1),source:this}));return{geometry:r.clone(t.coordinates).export(),noDataValue:e.noDataValue,sampleInfo:a}}return{geometry:r.export(),noDataValue:Number.MAX_VALUE,sampleInfo:r.coordinates.map(()=>({demResolution:-1,source:this}))}}_abortElevationQueriesAfterDependencyChange(){let e=this._elevationQueryAbortController;this._elevationQueryAbortController=new AbortController,e.abort()}async processElevationQueryGeometry(e,t){let r=await this._elevationQueryWorkerSetup;return null!=r&&(0,s.QA)(r),(0,d.Te)(t),this._elevationQueryWorker.invoke(e,t)}async _doLoad(e){let t=e?.signal;try{await this.loadFromPortal({supportedTypes:["Scene Service"]},e)}catch(e){(0,d.QP)(e)}if((0,d.Te)(t),await this._fetchService(t),(0,d.Te)(t),null!=this._modificationsSource){let r=await ve.A.fromUrl(this._modificationsSource.url,this.spatialReference,e);(0,d.Te)(t),this.setAtOrigin("modifications",r,this._modificationsSource.context.origin),this._modificationsSource=null}await this._fetchIndexAndUpdateExtent(this.nodePages,t),(0,d.Te)(t)}beforeSave(){if(null!=this._modificationsSource)return this.load().then(()=>{},()=>{})}async saveAs(e,t){return this._debouncedSaveOperations(1,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"},e)}async save(){return this._debouncedSaveOperations(0,{getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"})}get isUsedAsGroundLayer(){return!(0,u.A)("enable-feature:im-as-ground")||(0,Se.S)(this.parent)||(0,Ie.Q)(this.parent)}get replacesTerrain(){return!1}validateLayer(e){if(e.layerType&&"IntegratedMesh"!==e.layerType)throw new o.A("integrated-mesh-layer:layer-type-not-supported","IntegratedMeshLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new o.A("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"});if(this.version.major>1)throw new o.A("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"})}_getTypeKeywords(){return["IntegratedMeshLayer"]}get elevationQueryDataRequester(){return new Ne(this.customParameters,this.apiKey)}get elevationQueryNodeLoader(){return new Qe(this,this.elevationQueryDataRequester,h.A.getLogger("esri.layers.IntegratedMeshLayer"),this.store?.defaultGeometrySchema,[],{loadFeatureData:!1,textureUsageMask:0})}_validateElevationInfo(e){let t="Integrated mesh layers";(0,Re.XF)(h.A.getLogger(this),(0,Re.B)(t,"absolute-height",e)),(0,Re.XF)(h.A.getLogger(this),(0,Re.tW)(t,e))}};(0,i.Cg)([(0,g.MZ)({type:String,readOnly:!0})],He.prototype,"geometryType",void 0),(0,i.Cg)([(0,g.MZ)({type:["show","hide"]})],He.prototype,"listMode",void 0),(0,i.Cg)([(0,g.MZ)({type:["IntegratedMeshLayer"]})],He.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:!1},readOnly:!0})],He.prototype,"type",void 0),(0,i.Cg)([(0,g.MZ)({type:be.W4,readOnly:!0,clonable:!1})],He.prototype,"nodePages",void 0),(0,i.Cg)([(0,g.MZ)({type:[be.uV],readOnly:!0,clonable:!1})],He.prototype,"materialDefinitions",void 0),(0,i.Cg)([(0,g.MZ)({type:[be.Ot],readOnly:!0,clonable:!1})],He.prototype,"textureSetDefinitions",void 0),(0,i.Cg)([(0,g.MZ)({type:[be.L0],readOnly:!0,clonable:!1})],He.prototype,"geometryDefinitions",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],He.prototype,"serviceUpdateTimeStamp",void 0),(0,i.Cg)([(0,g.MZ)({type:ve.A,clonable:e=>e?.clone()??e}),(0,m.P)({origins:["web-scene","portal-item"],type:"resource",prefix:"modifications"})],He.prototype,"modifications",void 0),(0,i.Cg)([(0,g.MZ)({clonable:e=>e?{...e}:null})],He.prototype,"_modificationsSource",void 0),(0,i.Cg)([(0,je.w)(["web-scene","portal-item"],"modifications")],He.prototype,"readModifications",null),(0,i.Cg)([(0,g.MZ)(T.Yj)],He.prototype,"elevationInfo",null),(0,i.Cg)([(0,g.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],He.prototype,"path",void 0),(0,i.Cg)([(0,g.MZ)({clonable:!1})],He.prototype,"_elevationQueryWorker",null),(0,i.Cg)([(0,g.MZ)()],He.prototype,"_modificationsGeneration",void 0),(0,i.Cg)([(0,g.MZ)()],He.prototype,"memoizedElevationQueryDependencies",null),(0,i.Cg)([(0,g.MZ)()],He.prototype,"isUsedAsGroundLayer",null),(0,i.Cg)([(0,g.MZ)()],He.prototype,"replacesTerrain",null),(0,i.Cg)([(0,g.MZ)({clonable:!1})],He.prototype,"elevationQueryDataRequester",null),(0,i.Cg)([(0,g.MZ)({clonable:!1})],He.prototype,"elevationQueryNodeLoader",null),He=(0,i.Cg)([(0,g.$K)("esri.layers.IntegratedMeshLayer")],He);const We=He;function $e(e){return e instanceof S.q?$e(e.export()):"point"===e.type||"multipoint"===e.type||"polyline"===e.type?e:null}},85707(e,t,r){var i=r(32198),n=r(91429),s=r(54239);r.d(t,["a",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.heightModelInfo=null}read(e,t){super.read(e,t),"service"===t?.origin&&2===this.heightModelInfo?.origin&&(this.heightModelInfo.associatedSpatialReference=this.getAtOrigin("spatialReference","service"))}};return(0,i.Cg)([(0,n.MZ)({readOnly:!0,type:s.A})],r.prototype,"heightModelInfo",void 0),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.HeightModelInfoMixin")],r),r}])},73179(e,t,r){r.d(t,{b:()=>l,h:()=>u});var i=r(4718),n=r(53966),s=r(84952),a=r(60694),o=r(10873);function l(e){let{nonStandardUrlAllowed:t=!1,separator:r}=e??{},s=(0,i.o8)(o.OZ),l=s.json?.write;return"object"==typeof l&&l&&(l.writer=function(e,t,i,n){(0,a.LS)(this,e,r,t,n)}),{...s,set:function(e){if(null==e)return void this._set("url",e);let r=(0,a.HZ)({layer:this,url:e,nonStandardUrlAllowed:t,logger:n.A.getLogger(this)});this._set("url",r.url),null!=r.layerId&&this._set("layerId",r.layerId)}}}function u(e,t){let{separator:r}=t??{},i=(0,s.An)(e.url);return null!=i&&(null==e.dynamicDataSource?null!=e.layerId&&(i.path=(0,s.fj)(i.path,r??"",e.layerId.toString())):i.path=(0,s.fj)(i.path,"dynamicLayer")),i}},89707(e,t,r){r.d(t,{H:()=>i});class i{constructor(e=1/0,t=-1/0){this.minElevation=e,this.maxElevation=t}get elevationRangeValid(){return!Number.isNaN(this.minElevation)}get isEmpty(){return!(this.minElevation<=this.maxElevation)}contains(e){return this.minElevation<=e.minElevation&&this.maxElevation>=e.maxElevation}invalidateElevationRange(){this.minElevation=NaN}initializeEmpty(){this.minElevation=1/0,this.maxElevation=-1/0}expandElevationRange(e){let t=Math.min(this.minElevation,e.minElevation),r=Math.max(this.maxElevation,e.maxElevation),i=t!==this.minElevation||r!==this.maxElevation;return this.minElevation=t,this.maxElevation=r,i}expandElevationRangeValues(e,t){let r=Math.min(this.minElevation,e),i=Math.max(this.maxElevation,t),n=r!==this.minElevation||i!==this.maxElevation;return this.minElevation=r,this.maxElevation=i,n}setElevationRange(e){this.minElevation=e.minElevation,this.maxElevation=e.maxElevation}setElevationRangeValues(e,t){this.minElevation=e,this.maxElevation=t}equals(e){return this.minElevation===e.minElevation&&this.maxElevation===e.maxElevation}}},62747(e,t,r){r.d(t,{W7:()=>s,hH:()=>a});var i=r(1843),n=r(65786);n.Y;class s extends n.Y{constructor(e,t,r){super(),this.hasVertexColors=e,this.hasNormals=t,this.textureCoordinateType=r}}function a(e){let t=(0,i.BP)().vec3f("position");return e.hasNormals&&t.vec2i16("normalCompressed",{glNormalized:!0}),1===e.textureCoordinateType?t.vec2f("uv0"):2===e.textureCoordinateType&&(t.vec2f("uv0"),t.vec4u16("uvRegion",{glNormalized:!0})),e.hasVertexColors&&t.vec4u8("color",{glNormalized:!0}),t.freeze()}},92359(e,t,r){r.d(t,{nu:()=>d,W6:()=>u}),r(4576),r(71511),r(44208),r(53966);var i=r(17676),n=(r(36708),r(44794),r(78659)),s=r(32198),a=r(56372),o=r(91429);let l=class extends a.A{constructor(){super(...arguments),this.SCHEDULER_LOG_SLOW_TASKS=!1,this.FEATURE_SERVICE_SNAPPING_SOURCE_TILE_TREE_SHOW_TILES=!1}};(0,s.Cg)([(0,o.MZ)()],l.prototype,"SCHEDULER_LOG_SLOW_TASKS",void 0),(0,s.Cg)([(0,o.MZ)()],l.prototype,"FEATURE_SERVICE_SNAPPING_SOURCE_TILE_TREE_SHOW_TILES",void 0),l=(0,s.Cg)([(0,o.$K)("esri.views.support.debugFlags")],l),new l,r(49186),Symbol("Yield");const u={RESOURCE_CONTROLLER_IMMEDIATE:"immediate",RESOURCE_CONTROLLER:"schedule",SLIDE:"slide",STREAM_DATA_LOADER:"stream loader",ELEVATION_QUERY:"elevation query",TERRAIN_SURFACE:"terrain",SURFACE_GEOMETRY_UPDATES:"surface geometry updates",LOD_RENDERER:"LoD renderer",GRAPHICS_CORE:"Graphics3D",I3S:"I3S",LYR3D:"Lyr3D",TILES3D:"3DTiles",POINT_CLOUD_LAYER:"point cloud",FEATURE_TILE_FETCHER:"feature fetcher",STREAM_CONTROLLER:"stream controller",SCREEN_POLYGON_INTERSECTION:"screen polygon intersection",OCCLUSION_QUERY:"occlusion query",OVERLAY:"overlay",OVERLAY_RENDERER:"overlay renderer",STAGE:"stage",GRAPHICS_DECONFLICTOR:"graphics deconflictor",FILTER_VISIBILITY:"graphics filter visibility",SCALE_VISIBILITY:"graphics scale visibility",FRUSTUM_VISIBILITY:"graphics frustum visibility",POINT_OF_INTEREST_FREQUENT:"POI frequent",POINT_OF_INTEREST_INFREQUENT:"POI infrequent",LABELER:"labeler",FEATURE_FILTER_HIGHLIGHT:"feature filter highlight",FEATURE_QUERY_ENGINE:"feature query",FEATURE_TILE_TREE:"feature tile tree",FEATURE_TILE_TREE_ACTIVE:"fast feature tile tree",ELEVATION_ALIGNMENT:"elevation alignment",ELEVATION_ALIGNMENT_SCENE:"elevation alignment scene",TEXT_TEXTURE_ATLAS:"text texture atlas",TEXTURE_UNLOAD:"texture unload",LINE_OF_SIGHT_TOOL:"line of sight tool",LINE_OF_SIGHT_TOOL_INTERACTIVE:"interactive line of sight tool",VOLUME_MEASUREMENT:"volume measurement",ELEVATION_PROFILE:"elevation profile",SNAPPING:"snapping",SHADOW_ACCUMULATOR:"shadow accumulator",CLOUDS_GENERATOR:"clouds generator",FLOW_GENERATOR:"flow generator",GAUSSIAN_SPLAT_SORTING:"gaussian splat sorting",GAUSSIAN_SPLAT_TEXTURE_ATLAS:"gaussian splat texture atlas",MAPVIEW_FETCH_QUEUE:"mapview fetch queue",MAPVIEW_LAYERVIEW_UPDATE:"mapview layerview update",MAPVIEW_VECTOR_TILE_PARSING_QUEUE:"mapview vector tile parsing queue",NONE:0,TEST_PRIO:1};new Map([[u.RESOURCE_CONTROLLER_IMMEDIATE,0],[u.RESOURCE_CONTROLLER,4],[u.SLIDE,0],[u.STREAM_DATA_LOADER,0],[u.ELEVATION_QUERY,0],[u.TERRAIN_SURFACE,1],[u.SURFACE_GEOMETRY_UPDATES,1],[u.LOD_RENDERER,2],[u.GRAPHICS_CORE,2],[u.I3S,2],[u.LYR3D,2],[u.TILES3D,3],[u.POINT_CLOUD_LAYER,2],[u.FEATURE_TILE_FETCHER,2],[u.STREAM_CONTROLLER,2],[u.SCREEN_POLYGON_INTERSECTION,0],[u.CLOUDS_GENERATOR,2],[u.OCCLUSION_QUERY,2],[u.OVERLAY,4],[u.OVERLAY_RENDERER,4],[u.STAGE,4],[u.GRAPHICS_DECONFLICTOR,4],[u.FILTER_VISIBILITY,4],[u.SCALE_VISIBILITY,4],[u.FRUSTUM_VISIBILITY,4],[u.POINT_OF_INTEREST_FREQUENT,6],[u.POINT_OF_INTEREST_INFREQUENT,30],[u.LABELER,8],[u.FEATURE_FILTER_HIGHLIGHT,2],[u.FEATURE_QUERY_ENGINE,8],[u.FEATURE_TILE_TREE,16],[u.FEATURE_TILE_TREE_ACTIVE,0],[u.ELEVATION_ALIGNMENT,12],[u.ELEVATION_ALIGNMENT_SCENE,14],[u.TEXT_TEXTURE_ATLAS,12],[u.TEXTURE_UNLOAD,12],[u.LINE_OF_SIGHT_TOOL,16],[u.LINE_OF_SIGHT_TOOL_INTERACTIVE,0],[u.VOLUME_MEASUREMENT,4],[u.SNAPPING,0],[u.SHADOW_ACCUMULATOR,30],[u.FLOW_GENERATOR,12],[u.GAUSSIAN_SPLAT_SORTING,2],[u.GAUSSIAN_SPLAT_TEXTURE_ATLAS,12],[u.MAPVIEW_FETCH_QUEUE,0],[u.MAPVIEW_LAYERVIEW_UPDATE,2],[u.MAPVIEW_VECTOR_TILE_PARSING_QUEUE,0]]),(0,n.l5)(6.5),(0,n.l5)(1),(0,n.l5)(30),(0,n.l5)(1e3/30),(0,n.l5)(100),Symbol.dispose;const h=new class{constructor(){this._begin=performance?.now()??0,this._budget=0,this._done=!1,this._progressed=!1,this._enabled=!0}run(e){return!this.done&&(!0===e()&&this.madeProgress(),!0)}get done(){return this._done}get budget(){return this._budget}madeProgress(){return this._progressed=!0,this._done=this._enabled&&this._budget!==1/0&&this.elapsed>=this._budget,this._done}get enabled(){return this._enabled}set enabled(e){this._enabled=e}reset(e){this._begin=this.now(),this._budget=e,this.resetProgress()}get remaining(){return Math.max(this._budget-this.elapsed,0)}now(){return performance.now()}get elapsed(){return this.now()-this._begin}resetProgress(){this._progressed=!1,this._done=!1}get hasProgressed(){return this._progressed}};h.enabled=!1;class c{remove(){}[Symbol.dispose](){this.remove()}processQueue(){}schedule(e,t,r){try{if((0,i.G4)(t)){let e=(0,i.NK)();return r?Promise.resolve(r(e)):Promise.reject(e)}return(0,i.z7)(e(h))}catch(e){return Promise.reject(e)}}reschedule(e,t,r){return this.schedule(e,t,r)}async scheduleGenerator(e,t,r){if((0,i.G4)(t)){let e=(0,i.NK)();if(r)return r(e);throw e}let n=e(h);for(;;){let e=n.next(h),s=(0,i.$X)(e)?await e:e;if((0,i.G4)(t)){let e=(0,i.NK)();if(r){let t=r(e),s=n.return(null);return(0,i.$X)(s)&&await(0,i.QZ)(s),t}let t=n.throw(e);throw(0,i.$X)(t)&&await(0,i.QZ)(t),e}if(s.done)return s.value}}}const d=new c}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[5359],{3483(e,t,a){function i(e,t){for(let a of e.values())if(t(a))return!0;return!1}function n(e,t){if(t)for(let a of t)null!=a&&e.add(a)}function r(e,t){null!=t&&e.add(t)}function l(e,t){let a=new Set;return n(a,e),n(a,t),a}function s(e,t){let a=new Set;for(let i of t)e.has(i)&&a.add(i);return a}function o(e,t){if(!e||!t)return!1;if(e===t)return!0;for(let a of e)if(!t.has(a))return!1;return!0}function d(e,t){if(null==e&&null==t)return!0;if(null==e||null==t||e.size!==t.size)return!1;for(let a of e)if(!t.has(a))return!1;return!0}function u(e,t){let a=new Set(e);for(let e of t)a.delete(e);return a}a.d(t,{E$:()=>s,FB:()=>n,KC:()=>l,Yy:()=>o,aI:()=>d,bw:()=>i,iv:()=>u,kb:()=>r})},95488(e,t,a){a.d(t,{I:()=>n});var i=a(11406);class n extends i.T{notify(){let e=this._observers;if(e&&e.length>0){let t=e.slice();for(let e of t)e.onInvalidated(),e.onCommitted()}}}},39516(e,t,a){a.d(t,{GP:()=>o,IW:()=>u,YG:()=>E,iA:()=>M,mA:()=>d});var i=a(3330),n=a(54218),r=a(56400),l=a(34747);let s;async function o(e,t){let i=await async function(){return s??=Promise.all([a.e(9696),a.e(1938)]).then(()=>a(44123)).then(e=>new e.WhereClauseCache(500,500)),s}(),n=i.get(e,t);if(null==n)throw i.getError(e,t);return n}function d(e,t){return e||=null,t||=null,"1=1"===e?t??e:"1=1"===t?e??t:e&&t?`(${e}) AND (${t})`:e??t}function u(e,t){return e||=null,t||=null,"1=1"===e||"1=1"===t||e===t?"1=1"===e?e:t:e&&t?`(${e}) OR (${t})`:e??t}function c(e,t){return null==e?"NULL":`${t??""}'${e.replaceAll("'","''")}'`}function m(e){return Number.isFinite(e)?String(e):"NULL"}function f(e){let[t,a]=e.split("T",2);return`${t} ${a.replace("Z","+00:00").replace(/[+-]/,e=>` ${e}`)}`}function T(e,t){let a=null==t?l.mQ.utcInstance:(0,r.S3)(t),i=l.c9.fromMillis(e,{zone:a});return i.isValid?i:null}function p(e,t){return T(e,t)?.toSQL({includeOffset:!1})}function g(e,t){return T(e,t)?.toSQL({includeOffset:!0})?.replace("Z","+00:00")}function y(e,t){return T(e,t)?.toSQLDate()}function S(e,t){return T(e,t)?.toSQLTime({includeOffset:!1})}function A(e){return"string"==typeof e?e:e?.type}function h(e,t){if(null==e)return"NULL";let a=A(t);switch(typeof e){case"string":switch(a){case"string":case"esriFieldTypeString":case void 0:return m(Number(e));default:throw Error(`Cannot convert ${a} to sql numeric literal.`)}case"boolean":return e?"1":"0";case"number":switch(a){case"small-integer":case"esriFieldTypeSmallInteger":case"integer":case"esriFieldTypeInteger":case"single":case"esriFieldTypeSingle":case"double":case"esriFieldTypeDouble":case"big-integer":case"esriFieldTypeBigInteger":case"long":case"esriFieldTypeLong":case"oid":case"esriFieldTypeOID":case void 0:return m(e);default:throw Error(`Cannot convert ${a} to sql numeric literal.`)}}throw Error("Cannot convert value to sql numeric literal.")}function F(e,t,a){if(null==e)return"NULL";let i=A(t);switch(typeof e){case"string":switch(i){case"timestamp-offset":case"esriFieldTypeTimestampOffset":return c(f(e));case"date-only":case"esriFieldTypeDateOnly":case"time-only":case"esriFieldTypeTimeOnly":case"string":case"esriFieldTypeString":case"global-id":case"esriFieldTypeGlobalID":case"guid":case"esriFieldTypeGUID":case"xml":case"esriFieldTypeXML":case void 0:return c(e);default:throw Error(`Cannot convert ${i} to sql string literal.`)}case"boolean":return e?"'true'":"'false'";case"number":switch(i){case"date":case"esriFieldTypeDate":return c(p(e,a));case"small-integer":case"esriFieldTypeSmallInteger":case"integer":case"esriFieldTypeInteger":case"single":case"esriFieldTypeSingle":case"double":case"esriFieldTypeDouble":case"big-integer":case"esriFieldTypeBigInteger":case"long":case"esriFieldTypeLong":case"oid":case"esriFieldTypeOID":case void 0:return Number.isFinite(e)?`'${e}'`:"NULL";default:throw Error(`Cannot convert ${i} to sql string literal.`)}case"object":if((0,n.$P)(e))return c(p(e.valueOf(),a))}throw Error("Cannot convert value to sql string literal.")}function b(e,t,a){if(null==e)return"NULL";let i=A(t);switch(typeof e){case"string":switch(i){case"timestamp-offset":case"esriFieldTypeTimestampOffset":return c(f(e),"TIMESTAMP");case"date-only":case"esriFieldTypeDateOnly":return c(`${e} 00:00:00`,"TIMESTAMP");case"string":case"esriFieldTypeString":case void 0:return c(e,"TIMESTAMP");default:throw Error(`Cannot convert ${i} to sql timestamp literal.`)}case"number":switch(i){case"date":case"esriFieldTypeDate":case void 0:return c(p(e,a),"TIMESTAMP");default:throw Error(`Cannot convert ${i} to sql timestamp literal.`)}case"object":if((0,n.$P)(e))return c(p(e.valueOf(),a),"TIMESTAMP")}throw Error("Cannot convert value to sql timestamp literal.")}function E(e,t,a){if(null==e)return"NULL";if(null==t&&null==a){switch(typeof e){case"string":return F(e);case"number":return h(e);case"boolean":return function(e){return null==e?"NULL":e?"TRUE":"FALSE"}(e);case"object":if((0,n.$P)(e))return b(e)}throw Error("Cannot convert value to sql literal.")}let r=function(e,t){return null==e?t:null==t||(0,i.Y4)(e)||(0,i.Y4)(t)?e:t}(t?.timeZone,a?.timeZone),l=A(t?.type);switch(A(a?.type)??l){case"small-integer":case"esriFieldTypeSmallInteger":case"integer":case"esriFieldTypeInteger":case"single":case"esriFieldTypeSingle":case"double":case"esriFieldTypeDouble":case"big-integer":case"esriFieldTypeBigInteger":case"long":case"esriFieldTypeLong":case"oid":case"esriFieldTypeOID":return h(e,l);case"global-id":case"esriFieldTypeGlobalID":case"guid":case"esriFieldTypeGUID":case"xml":case"esriFieldTypeXML":case"string":case"esriFieldTypeString":return F(e,l,r);case"date":case"esriFieldTypeDate":return b(e,l,r);case"timestamp-offset":case"esriFieldTypeTimestampOffset":return function(e,t,a){if(null==e)return"NULL";let i=A(t);switch(typeof e){case"string":switch(i){case"timestamp-offset":case"esriFieldTypeTimestampOffset":return c(f(e),"TIMESTAMP");case"string":case"esriFieldTypeString":case void 0:return c(e,"TIMESTAMP");default:throw Error(`Cannot convert ${i} to sql timestamp offset literal.`)}case"number":switch(i){case"date":case"esriFieldTypeDate":case void 0:return c(g(e,a),"TIMESTAMP");default:throw Error(`Cannot convert ${i} to sql timestamp offset literal.`)}case"object":if((0,n.$P)(e))return c(g(e.valueOf(),a),"TIMESTAMP")}throw Error("Cannot convert value to sql timestamp offset literal.")}(e,l,r);case"date-only":case"esriFieldTypeDateOnly":return function(e,t,a){if(null==e)return"NULL";let i=A(t);switch(typeof e){case"string":switch(i){case"timestamp-offset":case"esriFieldTypeTimestampOffset":return c(function(e){return e.split("T",1)[0]}(e),"DATE");case"date-only":case"esriFieldTypeDateOnly":case"string":case"esriFieldTypeString":case void 0:return c(e,"DATE");default:throw Error(`Cannot convert ${i} to sql date literal.`)}case"number":switch(i){case"date":case"esriFieldTypeDate":case void 0:return c(y(e,a),"DATE");default:throw Error(`Cannot convert ${i} to sql date literal.`)}case"object":if((0,n.$P)(e))return c(y(e.valueOf(),a),"DATE")}throw Error("Cannot convert value to sql date literal.")}(e,l,r);case"time-only":case"esriFieldTypeTimeOnly":return function(e,t,a){if(null==e)return"NULL";let i=A(t);switch(typeof e){case"string":switch(i){case"timestamp-offset":case"esriFieldTypeTimestampOffset":return c(function(e){let t=e.indexOf("T")+1,a=Math.max(e.indexOf("-",t),e.indexOf("+",t),e.indexOf("Z",t));return e.slice(t,a>0?a:void 0)}(e),"TIME");case"time-only":case"esriFieldTypeTimeOnly":case"string":case"esriFieldTypeString":case void 0:return c(e,"TIME");default:throw Error(`Cannot convert ${i} to sql time literal.`)}case"number":switch(i){case"date":case"esriFieldTypeDate":case void 0:return c(S(e,a),"TIME");default:throw Error(`Cannot convert ${i} to sql time literal.`)}case"object":if((0,n.$P)(e))return c(S(e.valueOf(),a),"TIME")}throw Error("Cannot convert value to sql time literal.")}(e,l,r);default:throw Error("Unsupported sql target type: "+l)}}function M(e){return/^[a-zA-Z_][a-zA-Z_0-9]*$/.test(e)?e:`"${e.replaceAll('"','""')}"`}},3330(e,t,a){a.d(t,{GB:()=>n,Qo:()=>l,Y4:()=>r});var i=a(34747);class n{static{this.instance=i.mQ.parseSpecifier("UTC")}}function r(e){return e instanceof i.bo?e===n.instance:"unknown"===e?.toString().toLowerCase()}function l(e){return r(e)?n.instance:e}},75994(e,t,a){a.d(t,{E:()=>i});class i{constructor(e,t){this._fieldNames=e,this.fieldsIndex=t}collect(e){if("string"!=typeof e)return;if(!this.fieldsIndex)return void this._fieldNames.add(e);let t=this.fieldsIndex.get(e);t&&this._fieldNames.add(t.name)}collectAll(e){if(e)if(this.fieldsIndex?.fields.length)if(e.includes("*"))for(let e of this.fieldsIndex.fields)this._fieldNames.add(e.name);else for(let t of e)this.collect(t);else if(e.includes("*"))this._fieldNames.clear(),this._fieldNames.add("*");else for(let t of e)null!=t&&this._fieldNames.add(t)}isComplete(){return null!=this.fieldsIndex&&this.fieldsIndex.fields.length===this._fieldNames.size}withFieldsIndex(e){return new i(this._fieldNames,e)}}},68463(e,t,a){a.d(t,{Mh:()=>c,A5:()=>y});var i=a(3483),n=a(97768),r=a(54218),l=a(34747);const s=["HH:mm:ss.SSS","HH:mm:ss","HH:mm","TT"];function o(e){if(!e||!(0,r.Kg)(e))return null;let t=l.c9.fromFormat(e,"yyyy-MM-dd");return t.isValid?t:null}function d(e){return e&&(0,r.Kg)(e)?(0,n.Pb)(s,t=>{let a=l.c9.fromFormat(e,t);return a.isValid?a:null})??null:null}function u(e){if(!e||!(0,r.Kg)(e))return null;let t=l.c9.fromISO(e);return t.isValid?t:null}const c={VALUE_OUT_OF_RANGE:"domain-validation-error::value-out-of-range",INVALID_CODED_VALUE:"domain-validation-error::invalid-coded-value"},m=new Set(["integer","small-integer","long","big-integer","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeLong","esriFieldTypeBigInteger"]);function f(e){return null!=e&&("date-only"===e.type||"esriFieldTypeDateOnly"===e.type)}function T(e){return null!=e&&("timestamp-offset"===e.type||"esriFieldTypeTimestampOffset"===e.type)}function p(e){return null!=e&&("time-only"===e.type||"esriFieldTypeTimeOnly"===e.type)}const g=new Set(["single","double","esriFieldTypeSingle","esriFieldTypeDouble"]);function y(e,t){let a=t??e?.domain;if(!a||"range"!==a.type)return;let i="range"in a?a.range[0]:a.minValue,n="range"in a?a.range[1]:a.maxValue,r=function(e){return null!=e&&m.has(e.type)}(e);return f(e)||p(e)||T(e)?{...S(e,n,i),isInteger:r}:{min:null!=i&&"number"==typeof i?i:null,max:null!=n&&"number"==typeof n?n:null,rawMin:i,rawMax:n,isInteger:r}}function S(e,t,a){return f(e)?{min:o(a)?.toMillis(),max:o(t)?.toMillis(),rawMin:a,rawMax:t}:p(e)?{min:d(a)?.toMillis(),max:d(t)?.toMillis(),rawMin:a,rawMax:t}:T(e)?{min:u(a)?.toMillis(),max:u(t)?.toMillis(),rawMin:a,rawMax:t}:{max:null,min:null}}(0,i.KC)(m,g)},30524(e,t,a){a.d(t,{Ah:()=>j,Bz:()=>$,CJ:()=>ie,DB:()=>A,Dx:()=>F,GZ:()=>he,JL:()=>pe,Jl:()=>N,Kl:()=>Te,NF:()=>Ae,OG:()=>J,OH:()=>H,R$:()=>_,R3:()=>q,Vb:()=>Se,WA:()=>z,WX:()=>te,XT:()=>ae,Xz:()=>Y,_b:()=>k,e7:()=>ye,eX:()=>M,hL:()=>h,lD:()=>U,mB:()=>b,nw:()=>ge,rS:()=>m,sv:()=>y,te:()=>Q,uo:()=>fe,vE:()=>R,yM:()=>K,yp:()=>p,zD:()=>W}),a(49186);var i=a(93637),n=a(3483),r=(a(39516),a(68463)),l=a(75994),s=a(69309),o=a(54218),d=a(43668);const u=/^([0-9_])/,c=/[^a-z0-9_\u0080-\uffff]+/gi;function m(e){return null==e?null:e.trim().replaceAll(c,"_").replace(u,"F$1")||null}const f=["field","field2","field3","normalizationField","rotationInfo.field","proportionalSymbolInfo.field","proportionalSymbolInfo.normalizationField","colorInfo.field","colorInfo.normalizationField"],T=["field","normalizationField"];function p(e,t){if(null!=e&&null!=t)for(let a of Array.isArray(e)?e:[e])if(g(f,a,t),"visualVariables"in a&&a.visualVariables)for(let e of a.visualVariables)g(T,e,t)}function g(e,t,a){if(e)for(let n of e){let e=(0,i.wc)(n,t),r=e&&"function"!=typeof e&&a.get(e);r&&(0,i.sM)(n,r.name,t)}}function y(e,t){if(null!=e&&t?.fields?.length){if("startField"in e){let a=t.get(e.startField),i=t.get(e.endField);e.startField=a?.name??null,e.endField=i?.name??null}else{let a=t.get(e.startTimeField),i=t.get(e.endTimeField);e.startTimeField=a?.name??null,e.endTimeField=i?.name??null}e.trackIdField=t.get(e.trackIdField)?.name??null}}const S=new Set;function A(e,t){return e&&t?(S.clear(),new l.E(S,e).collectAll(t),Array.from(S).sort()):[]}function h(e,t){return null==t||null==e?[]:t.includes("*")?(e.fields??[]).map(e=>e.name):t}async function F(e,t,a){let{fieldsIndex:i}=e;if(!a)return;let n=t?void 0:(0,s.o)(a);if(n)e.collect(n);else{let{arcadeUtils:n}=await(0,d.l)(),r=n.extractFieldNames(a,t?.partitions??i?.fields?.map(e=>e.name)),l=t?.index?e.withFieldsIndex(t.index):e;for(let e of r)l.collect(e)}}function b({displayField:e,fields:t}){return e||(t?.length?function(e){return E(e,"name-or-title")||E(e,"unique-identifier")||E(e,"type-or-category")||function(e){for(let t of e){if(!t?.name)continue;let e=t.name.toLowerCase();if(e.includes("name")||e.includes("title"))return t.name}return null}(e)}(t):null)}function E(e,t){for(let a of e)if(a?.valueType&&a.valueType===t)return a.name;return null}function M(e){return e?A(e.fieldsIndex,I(e)):[]}const w=new Set(["oid","global-id","guid"]),C=new Set(["oid","global-id"]),v=[/^fnode_$/i,/^tnode_$/i,/^lpoly_$/i,/^rpoly_$/i,/^poly_$/i,/^shape$/i,/^shape_$/i,/^subclass$/i,/^subclass_$/i,/^rings_ok$/i,/^rings_nok$/i,/objectid/i,/^perimeter_/i,/_perimeter$/i,/_i$/i];function I(e){if(!e)return[];let t="editFieldsInfo"in e&&e.editFieldsInfo;if(!t)return[];let{creationDateField:a,creatorField:i,editDateField:n,editorField:r}=t;return[a,i,n,r].filter(Boolean)}function L(e){return I(e).map(e=>e.toLowerCase())}function N(e){return!!e.type}function _(e,t){return!!e.editable&&N(e)&&!w.has(e.type)&&!L(t).includes(e.name?.toLowerCase()??"")}function $(e,t){let a=e.name?.toLowerCase()??"";return!(null!=t?.objectIdField&&a===t.objectIdField.toLowerCase()||null!=t?.globalIdField&&a===t.globalIdField.toLowerCase()||function(e){let t=new Set;L(e).forEach(e=>t.add(e)),function(e){if(!e)return[];let t=e.geometryFieldsInfo;return t?A(e.fieldsIndex,[t.shapeAreaField,t.shapeLengthField]):[]}(e).forEach(e=>t.add(e.toLowerCase()));let a=e&&"infoFor3D"in e?e.infoFor3D:void 0;return a&&(Object.values(a.assetMapFieldRoles).forEach(e=>t.add(e.toLowerCase())),Object.values(a.transformFieldRoles).forEach(e=>t.add(e.toLowerCase()))),Array.from(t)}(t).includes(a)||C.has(e.type)||v.some(e=>e.test(a)))}function U(e){let t=e.defaultValue;return void 0!==t&&G(e,t)?t:e.nullable?null:void 0}function k(e){let t="string"==typeof e?{type:e}:e;return K(t)?255:"esriFieldTypeDate"===t.type||"date"===t.type?8:void 0}function x(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function D(e){return null===e||x(e)}function O(e){return null===e||Number.isInteger(e)}function P(){return!0}function G(e,t){let a;switch(e.type){case"date":case"integer":case"long":case"small-integer":case"big-integer":case"esriFieldTypeDate":case"esriFieldTypeInteger":case"esriFieldTypeLong":case"esriFieldTypeSmallInteger":case"esriFieldTypeBigInteger":a=e.nullable?O:Number.isInteger;break;case"double":case"single":case"esriFieldTypeSingle":case"esriFieldTypeDouble":a=e.nullable?D:x;break;case"string":case"esriFieldTypeString":a=e.nullable?o.CO:o.Kg;break;default:a=P}return 1===arguments.length?a:a(t)}const B=new Set(["integer","small-integer","big-integer","long","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeLong","esriFieldTypeBigInteger"]),V=new Set(["single","double","esriFieldTypeSingle","esriFieldTypeDouble"]),Z=(0,n.KC)(B,V);function q(e){return null!=e&&B.has(e.type)}function z(e){return null!=e&&Z.has(e.type)}function K(e){return null!=e&&("string"===e.type||"esriFieldTypeString"===e.type)}function R(e){return null!=e&&("date"===e.type||"esriFieldTypeDate"===e.type)}function W(e){return null!=e&&("date-only"===e.type||"esriFieldTypeDateOnly"===e.type)}function j(e){return null!=e&&("timestamp-offset"===e.type||"esriFieldTypeTimestampOffset"===e.type)}function H(e){return null!=e&&("time-only"===e.type||"esriFieldTypeTimeOnly"===e.type)}function Q(e){return null!=e&&("oid"===e.type||"esriFieldTypeOID"===e.type)}function Y(e){return null!=e&&("global-id"===e.type||"esriFieldTypeGlobalID"===e.type)}function J(e,t){return null===ie(e,t)}const X="numeric-range-validation-error::out-of-range",ee="type-validation-error::invalid-type";function te(e){return null==e||"number"==typeof e&&isNaN(e)?null:e}function ae(e){return parseFloat(e.replaceAll("_",""))}function ie(e,t){return null==e||e.nullable&&null===t?null:G(e,t)?z(e)&&!function(e,t){let a="string"==typeof e?ne(e):e;if(!a)return!1;let i=a.min,n=a.max;return a.isInteger?Number.isInteger(t)&&t>=i&&t<=n:t>=i&&t<=n}(e.type,Number(t))?X:null:ee}function ne(e){switch(e){case"esriFieldTypeSmallInteger":case"small-integer":return re;case"esriFieldTypeInteger":case"esriFieldTypeLong":case"integer":case"long":return oe;case"esriFieldTypeBigInteger":case"big-integer":return de;case"esriFieldTypeSingle":case"single":return ce;case"esriFieldTypeDouble":case"double":return me}}const re={min:-32768,max:32767,isInteger:!0,rawMin:-32768,rawMax:32767},le=-2147483648,se=2**31-1,oe={min:le,max:se,isInteger:!0,rawMin:le,rawMax:se},de={min:-(2**53-1),max:2**53-1,isInteger:!0,rawMin:-(2**53-1),rawMax:2**53-1},ue=(2-2**-23)*2**127,ce={min:-ue,max:ue,isInteger:!1,rawMin:-ue,rawMax:ue},me={min:-Number.MAX_VALUE,max:Number.MAX_VALUE,isInteger:!1,rawMin:-Number.MAX_VALUE,rawMax:Number.MAX_VALUE};function fe(e,t,a){switch(e){case r.Mh.INVALID_CODED_VALUE:return`Value ${a} is not in the coded domain - field: ${t.name}, domain: ${JSON.stringify(t.domain)}`;case r.Mh.VALUE_OUT_OF_RANGE:return`Value ${a} is out of the range of valid values - field: ${t.name}, domain: ${JSON.stringify(t.domain)}`;case ee:return`Value ${a} is not a valid value for the field type - field: ${t.name}, type: ${t.type}, nullable: ${t.nullable}`;case X:{let{min:e,max:i}=ne(t.type);return`Value ${a} is out of range for the number type - field: ${t.name}, type: ${t.type}, value range is ${e} to ${i}`}}}function Te(e,t){return!function(e,t){if(!e?.attributes||!t)return!0;let a=new Set(Object.keys(e.attributes)),i=!1;for(let e of t)if(!a.has(e)){i=!0;break}return i}(e,t)}function pe(e){return!!e&&["raster.itempixelvalue","raster.servicepixelvalue"].some(t=>e.toLowerCase().startsWith(t))}function ge(e){let t=e?.match(/{[^}]+}/g);return t?t.map(e=>e.slice(1,-1).split(":",1)[0].trim()):[]}function ye(e,t){let{statisticType:a,onStatisticField:i,onStatisticExpression:n}=e,r=t.get(i),l=z(r),s=n?.returnType;switch(a){case"avg":case"avg_angle":return r?l||R(r)?"double":null:s&&"number"===s?"double":null;case"count":return"integer";case"min":case"max":return r?l||function(e){return null!=e&&("date"===e.type||"date-only"===e.type||"time-only"===e.type||"timestamp-offset"===e.type)}(r)?r?.type??null:null:s&&"number"===s?"double":null;case"sum":return r?l?r?.type??null:null:s&&"number"===s?"double":null;case"mode":return r?r?.type??null:s?"number"===s?"double":"string":null;default:return null}}function Se(e){let{fieldName:t,fieldsMap:a,normalizedFieldsMap:i}=e;if(!t)return;let n=a.get(t);return n||(n=a.get(Ae(t))??i.get(he(t)),n&&a.set(t,n),n)}function Ae(e){return e.trim().toLowerCase()}function he(e){return m(e)?.toLowerCase()??""}},69309(e,t,a){function i(e){if(!e)return;let t=e.match(n);return t?.groups?t.groups.doubleQuoted??t.groups.singleQuoted??t.groups.dotNotation:void 0}a.d(t,{D:()=>r,o:()=>i});const n=/^(\$feature\[(?:"(?<doubleQuoted>[^"]+)"|'(?<singleQuoted>[^']+)')\]|\$feature\.(?<dotNotation>[a-z_][a-z0-9_]*))$/i;function r(e){return e.match(l)?.[1]?.replaceAll("\\'","'")??null}const l=/^hash\(\$feature\['((\\'|[^'])+)'\]\) \* 8\.381e-8$/},54218(e,t,a){function i(e){return"number"==typeof e}function n(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}function r(e){return"boolean"==typeof e}function l(e){return"string"==typeof e||e instanceof String}function s(e){return null==e||l(e)}function o(e){return Array.isArray(e)}function d(e){return e instanceof Date}a.d(t,{$P:()=>d,CO:()=>s,Et:()=>i,Fq:()=>n,Kg:()=>l,Lm:()=>r,cy:()=>o})},43668(e,t,a){let i;function n(){return i||=Promise.all([a.e(9696),a.e(5879),a.e(3060),a.e(5606)]).then(()=>a(55606)).then(e=>({arcade:e.arcade,arcadeUtils:e,batchExec:e.batchExec,aiServices:e.aiServices,languageUtils:e.languageUtils,Dictionary:e.Dictionary,Feature:e.arcadeFeature,Voxel:e.Voxel,Pixel:e.Pixel})),i}a.d(t,{l:()=>n})},98623(e,t,a){const i=Intl.DateTimeFormat().resolvedOptions().timeZone;a.d(t,["L",0,"unknown","N",0,i])},84741(e,t,a){a.d(t,{p:()=>s});var i=a(44208),n=a(34747);class r extends n.oh{constructor(e){super(e),this._start=[],this._end=[],this._offset=[]}get type(){return"temporal"}equals(e){return"temporal"===e.type&&e.name===this.name}_findIndexOfLatestStartIncluding(e){let t=0,a=this._start.length;for(;t<a;){let i=t+a>>>1;this._start[i]>e?a=i:t=i+1}return t-1}offset(e){if(e<-864e13||864e13<e)return NaN;let t=this._findIndexOfLatestStartIncluding(e);if(t>=0&&e<this._end[t])return this._offset[t];let a=Temporal.Instant.fromEpochMilliseconds(e).toZonedDateTimeISO(this.name),i=a.offsetNanoseconds/6e10,n=a.add({nanoseconds:1}).getTimeZoneTransition("previous")?.epochMilliseconds??-1/0,r=a.getTimeZoneTransition("next")?.epochMilliseconds??1/0;return this._start.splice(t+1,0,n),this._end.splice(t+1,0,r),this._offset.splice(t+1,0,i),i}}const l=new Map;function s(e){if((0,i.A)("esri-temporal")){let t=l.get(e);return void 0===t&&(t=new r(e),l.set(e,t)),t}return n.oh.create(e)}},56400(e,t,a){a.d(t,{ZS:()=>d,S3:()=>m,hv:()=>u,wr:()=>c,P6:()=>o});var i=a(3330),n=a(98623),r=a(84741);const l=new Map([["AUS Central Standard Time","Australia/Darwin"],["AUS Eastern Standard Time","Australia/Sydney"],["Afghanistan Standard Time","Asia/Kabul"],["Alaskan Standard Time","America/Anchorage"],["Alberta Standard Time","America/Edmonton"],["Aleutian Standard Time","America/Adak"],["Altai Standard Time","Asia/Barnaul"],["Arab Standard Time","Asia/Riyadh"],["Arabian Standard Time","Asia/Dubai"],["Arabic Standard Time","Asia/Baghdad"],["Argentina Standard Time","America/Buenos_Aires"],["Astrakhan Standard Time","Europe/Astrakhan"],["Atlantic Standard Time","America/Halifax"],["Aus Central W. Standard Time","Australia/Eucla"],["Azerbaijan Standard Time","Asia/Baku"],["Azores Standard Time","Atlantic/Azores"],["Bahia Standard Time","America/Bahia"],["Bangladesh Standard Time","Asia/Dhaka"],["Belarus Standard Time","Europe/Minsk"],["Bougainville Standard Time","Pacific/Bougainville"],["British Columbia Standard Time","America/Vancouver"],["Canada Central Standard Time","America/Regina"],["Cape Verde Standard Time","Atlantic/Cape_Verde"],["Caucasus Standard Time","Asia/Yerevan"],["Cen. Australia Standard Time","Australia/Adelaide"],["Central America Standard Time","America/Guatemala"],["Central Asia Standard Time","Asia/Bishkek"],["Central Brazilian Standard Time","America/Cuiaba"],["Central Europe Standard Time","Europe/Budapest"],["Central European Standard Time","Europe/Warsaw"],["Central Pacific Standard Time","Pacific/Guadalcanal"],["Central Standard Time","America/Chicago"],["Central Standard Time (Mexico)","America/Mexico_City"],["Chatham Islands Standard Time","Pacific/Chatham"],["China Standard Time","Asia/Shanghai"],["Cuba Standard Time","America/Havana"],["Dateline Standard Time","Etc/GMT+12"],["E. Africa Standard Time","Africa/Nairobi"],["E. Australia Standard Time","Australia/Brisbane"],["E. Europe Standard Time","Europe/Chisinau"],["E. South America Standard Time","America/Sao_Paulo"],["Easter Island Standard Time","Pacific/Easter"],["Eastern Standard Time","America/New_York"],["Eastern Standard Time (Mexico)","America/Cancun"],["Egypt Standard Time","Africa/Cairo"],["Ekaterinburg Standard Time","Asia/Yekaterinburg"],["FLE Standard Time","Europe/Kiev"],["Fiji Standard Time","Pacific/Fiji"],["GMT Standard Time","Europe/London"],["GTB Standard Time","Europe/Bucharest"],["Georgian Standard Time","Asia/Tbilisi"],["Greenland Standard Time","America/Godthab"],["Greenwich Standard Time","Atlantic/Reykjavik"],["Haiti Standard Time","America/Port-au-Prince"],["Hawaiian Standard Time","Pacific/Honolulu"],["India Standard Time","Asia/Calcutta"],["Iran Standard Time","Asia/Tehran"],["Israel Standard Time","Asia/Jerusalem"],["Jordan Standard Time","Asia/Amman"],["Kaliningrad Standard Time","Europe/Kaliningrad"],["Korea Standard Time","Asia/Seoul"],["Libya Standard Time","Africa/Tripoli"],["Line Islands Standard Time","Pacific/Kiritimati"],["Lord Howe Standard Time","Australia/Lord_Howe"],["Magadan Standard Time","Asia/Magadan"],["Magallanes Standard Time","America/Punta_Arenas"],["Manitoba Standard Time","America/Winnipeg"],["Marquesas Standard Time","Pacific/Marquesas"],["Mauritius Standard Time","Indian/Mauritius"],["Middle East Standard Time","Asia/Beirut"],["Montevideo Standard Time","America/Montevideo"],["Morocco Standard Time","Africa/Casablanca"],["Mountain Standard Time","America/Denver"],["Mountain Standard Time (Mexico)","America/Mazatlan"],["Myanmar Standard Time","Asia/Rangoon"],["N. Central Asia Standard Time","Asia/Novosibirsk"],["Namibia Standard Time","Africa/Windhoek"],["Nepal Standard Time","Asia/Katmandu"],["New Zealand Standard Time","Pacific/Auckland"],["Newfoundland Standard Time","America/St_Johns"],["Norfolk Standard Time","Pacific/Norfolk"],["North Asia East Standard Time","Asia/Irkutsk"],["North Asia Standard Time","Asia/Krasnoyarsk"],["North Korea Standard Time","Asia/Pyongyang"],["Omsk Standard Time","Asia/Omsk"],["Pacific SA Standard Time","America/Santiago"],["Pacific Standard Time","America/Los_Angeles"],["Pacific Standard Time (Mexico)","America/Tijuana"],["Pakistan Standard Time","Asia/Karachi"],["Paraguay Standard Time","America/Asuncion"],["Qyzylorda Standard Time","Asia/Qyzylorda"],["Romance Standard Time","Europe/Paris"],["Russia Time Zone 10","Asia/Srednekolymsk"],["Russia Time Zone 11","Asia/Kamchatka"],["Russia Time Zone 3","Europe/Samara"],["Russian Standard Time","Europe/Moscow"],["SA Eastern Standard Time","America/Cayenne"],["SA Pacific Standard Time","America/Bogota"],["SA Western Standard Time","America/La_Paz"],["SE Asia Standard Time","Asia/Bangkok"],["Saint Pierre Standard Time","America/Miquelon"],["Sakhalin Standard Time","Asia/Sakhalin"],["Samoa Standard Time","Pacific/Apia"],["Sao Tome Standard Time","Africa/Sao_Tome"],["Saratov Standard Time","Europe/Saratov"],["Singapore Standard Time","Asia/Singapore"],["South Africa Standard Time","Africa/Johannesburg"],["South Sudan Standard Time","Africa/Juba"],["Sri Lanka Standard Time","Asia/Colombo"],["Sudan Standard Time","Africa/Khartoum"],["Syria Standard Time","Asia/Damascus"],["Taipei Standard Time","Asia/Taipei"],["Tasmania Standard Time","Australia/Hobart"],["Tocantins Standard Time","America/Araguaina"],["Tokyo Standard Time","Asia/Tokyo"],["Tomsk Standard Time","Asia/Tomsk"],["Tonga Standard Time","Pacific/Tongatapu"],["Transbaikal Standard Time","Asia/Chita"],["Turkey Standard Time","Europe/Istanbul"],["Turks And Caicos Standard Time","America/Grand_Turk"],["US Eastern Standard Time","America/Indianapolis"],["US Mountain Standard Time","America/Phoenix"],["UTC","Etc/GMT"],["UTC+01","Etc/GMT-1"],["UTC+02","Etc/GMT-2"],["UTC+03","Etc/GMT-3"],["UTC+04","Etc/GMT-4"],["UTC+05","Etc/GMT-5"],["UTC+06","Etc/GMT-6"],["UTC+07","Etc/GMT-7"],["UTC+08","Etc/GMT-8"],["UTC+09","Etc/GMT-9"],["UTC+10","Etc/GMT-10"],["UTC+11","Etc/GMT-11"],["UTC+12","Etc/GMT-12"],["UTC+13","Etc/GMT-13"],["UTC+14","Etc/GMT-14"],["UTC-01","Etc/GMT+1"],["UTC-02","Etc/GMT+2"],["UTC-03","Etc/GMT+3"],["UTC-04","Etc/GMT+4"],["UTC-05","Etc/GMT+5"],["UTC-06","Etc/GMT+6"],["UTC-07","Etc/GMT+7"],["UTC-08","Etc/GMT+8"],["UTC-09","Etc/GMT+9"],["UTC-10","Etc/GMT+10"],["UTC-11","Etc/GMT+11"],["UTC-12","Etc/GMT+12"],["Ulaanbaatar Standard Time","Asia/Ulaanbaatar"],["Venezuela Standard Time","America/Caracas"],["Vladivostok Standard Time","Asia/Vladivostok"],["Volgograd Standard Time","Europe/Volgograd"],["W. Australia Standard Time","Australia/Perth"],["W. Central Africa Standard Time","Africa/Lagos"],["W. Europe Standard Time","Europe/Berlin"],["W. Mongolia Standard Time","Asia/Hovd"],["West Asia Standard Time","Asia/Tashkent"],["West Bank Standard Time","Asia/Hebron"],["West Pacific Standard Time","Pacific/Port_Moresby"],["Yakutsk Standard Time","Asia/Yakutsk"],["Yukon Standard Time","America/Whitehorse"]]);var s=a(34747);function o(e,t=!1,a=!0){let i=!!t&&{allowNull:a,writer(t,a){a[e]=t?function(e){return{timeZoneIANA:e}}(t):null},target:{[`${e}.timeZoneIANA`]:{type:String}}};return{json:{read:{source:e,reader:(t,a)=>a[e]?d(a[e]):null},write:i}}}function d(e,t="system"){return e?function(e){return"timeZoneIANA"in e}(e)?e.timeZoneIANA:function(e,t="system"){if(!e||!l.has(e.timeZone))return t;let a=l.get(e.timeZone);return function(e){return e.startsWith("UTC")}(e.timeZone)||e.respectsDaylightSaving?a:function(e){let t=s.c9.local().setZone(e),a=Math.min(t.set({month:1,day:1}).offset,t.set({month:5}).offset);return 0===a?"Etc/UTC":`Etc/GMT${s.mQ.instance(-a).formatOffset(0,"narrow")}`}(a)}(e,t):t}function u(e,t,a,i,r){if(t&&"date"===r)return{timeZone:"UTC",timeZoneName:void 0};let l=i.hour,s="timestamp-offset"===r?void 0:e??"UTC",o=a===n.L;return{timeZone:o?s:a,timeZoneName:o&&l?"shortOffset":void 0}}function c(e){let t=new Set(["etc/utc","etc/gmt","gmt"]),a=new Set(Intl.supportedValuesOf("timeZone").map(e=>e.toLowerCase()));return"system"===e||e===n.L||t.has(e.toLowerCase())||a.has(e.toLowerCase())}function m(e){return e===n.L?i.GB.instance:"UTC"===e||"Etc/UTC"===e?s.mQ.utcInstance:(0,r.p)(e)}}}]);
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[5804,6553,9480],{46130(e,t,r){r.d(t,{v:()=>n});var o=r(76553);function n(e){e?.writtenProperties&&e.writtenProperties.forEach(({target:e,propName:t,newOrigin:r})=>{(0,o.H)(e)&&r&&e.originOf(t)!==r&&e.updateOrigin(t,r)})}},56512(e,t,r){function o(e){let t,r,o=[],n=!1;return function(...i){return n&&t===this&&function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(e[r]!==t[r])return!1;return!0}(i,o)||(r=e.apply(this,i),t=this,o=i,n=!0),r}}r.d(t,{B:()=>o})},76553(e,t,r){function o(e){return e&&"getAtOrigin"in e&&"originOf"in e}r.d(t,{H:()=>o})},65806(e,t,r){r.d(t,{g:()=>a});var o=r(51850),n=r(99917),i=r(9762);function a(e,t,r,o){if((0,n.canProjectWithoutEngine)(e.spatialReference,r))return s[0]=e.x,s[1]=e.y,s[2]=e.z??0,(0,i.projectBuffer)(s,e.spatialReference,0,t,r,0);let a=(0,n.tryProject)(e,r,o);return!!a&&(t[0]=a.x,t[1]=a.y,t[2]=a.z??0,!0)}const s=(0,o.vt)()},27993(e,t,r){r.d(t,{F:()=>s});var o=r(99917),n=r(16930),i=r(9762),a=r(65806);function s(e,t,r,n){return!(null==t||null==n||e.length<2)&&((0,o.canProjectWithoutEngine)(t,n)?(0,i.projectBuffer)(e,t,0,r,n,0,1):(l.x=e[0],l.y=e[1],l.z=e[2],l.spatialReference=t,(0,a.g)(l,r,n)))}const l={x:0,y:0,z:0,hasZ:!0,hasM:!1,spatialReference:n.A.WGS84,type:"point"}},52136(e,t,r){var o=r(32198),n=r(91429);r.d(t,["p",0,e=>{let t=e,r=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null==e?(this._clearOverride("apiKey"),this.clear("apiKey","user")):this._override("apiKey",e)}};return(0,o.Cg)([(0,n.MZ)({type:String})],r.prototype,"apiKey",null),r=(0,o.Cg)([(0,n.$K)("esri.layers.mixins.APIKeyMixin")],r),r}])},58947(e,t,r){r.d(t,{w6:()=>A,qM:()=>M});var o=r(32198),n=r(56507),i=r(49186),a=r(53966),s=r(17676),l=r(91429),u=r(46130),c=r(5443),d=r(16930),p=r(85707),f=r(60694),h=r(10873),y=r(83898),m=r(73179);var v=r(20655),g=r(80812),w=r(88788),b=r(91682),x=r(26121),C=r(36005);const A=e=>{let t=(0,p.a)(e),r=class extends t{constructor(){super(...arguments),this.spatialReference=null,this.fullExtent=null,this.minScale=0,this.maxScale=0,this.version={major:NaN,minor:NaN,versionString:""},this.copyright=null,this.sublayerTitleMode="item-title",this.title=null,this.layerId=null,this.url=null,this.indexInfo=null,this._debouncedSaveOperations=(0,s.sg)(async(e,t,r)=>{switch(e){case 0:return this._save(t);case 1:return this._saveAs(r,t)}})}readSpatialReference(e,t){return S(t)}readFullExtent(e,t,r){if("object"==typeof e&&e){let o=null==e.spatialReference?{...e,spatialReference:S(t)}:e;return c.A.fromJSON(o,r)}let o=t.store,n=S(t);return null==n||null==o?.extent||!Array.isArray(o.extent)||o.extent.some(e=>e<I)?null:new c.A({xmin:o.extent[0],ymin:o.extent[1],xmax:o.extent[2],ymax:o.extent[3],spatialReference:n})}parseVersionString(e){let t={major:NaN,minor:NaN,versionString:e},r=e.split(".");return r.length>=2&&(t.major=parseInt(r[0],10),t.minor=parseInt(r[1],10)),t}readVersion(e,t){let r=t.store,o=null==r.version?"":r.version.toString();return this.parseVersionString(o)}readTitlePortalItem(e){return"item-title"===this.sublayerTitleMode?e:void 0}readTitleService(e,t){if("item-title"===this.sublayerTitleMode)return this.url?(0,f.yG)(this.url,t.name):t.name;let r=t.name;if(!r&&this.url){let e=(0,f.qg)(this.url);null!=e&&(r=e.title)}let o=this.portalItem?.title;return"item-title-and-service-name"===this.sublayerTitleMode&&o&&(r=o+" - "+r),(0,f.cr)(r)}get parsedUrl(){return(0,m.h)(this,{separator:"layers"})}async _fetchIndexAndUpdateExtent(e,t){this.indexInfo=(0,y.F)(this.parsedUrl?.path??"",this.rootNode,e,this.customParameters,this.apiKey,a.A.getLogger(this),t),this.indexInfo.catch(()=>{});let{fullExtent:r}=this;null!=r&&!r.hasZ&&this._updateExtent(r,await this.indexInfo)}_updateExtent(e,t){if("page"===t?.type){let r=t.rootIndex%t.pageSize;M(e,t.rootPage?.nodes?.[r]?.obb)}else if("node"===t?.type){let r=t.rootNode?.mbs;if(!Array.isArray(r)||4!==r.length||r[0]<I)return;let o=r[2],n=r[3];e.zmin=o-n,e.zmax=o+n}}async _fetchService(e){if(null==this.url)throw new i.A("sceneservice:url-not-set","Scene service can not be loaded without valid portal item or url");if(null==this.layerId&&/SceneServer\/*$/i.test(this.url)){let t=await this._fetchFirstLayerId(e);null!=t&&(this.layerId=t)}return this._fetchServiceLayer(e)}async _fetchFirstLayerId(e){let t=await(0,n.A)(this.url??"",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e});if(t.data&&Array.isArray(t.data.layers)&&t.data.layers.length>0)return t.data.layers[0].id}async _fetchServiceLayer(e){let t=await(0,n.A)(this.parsedUrl?.path??"",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e});t.ssl&&this.url&&(this.url=this.url.replace(/^http:/i,"https:"));let r=!1;if(t.data.layerType&&"Voxel"===t.data.layerType&&(r=!0),r)return this._fetchVoxelServiceLayer();let o=t.data;this.read(o,this._getServiceContext()),this.validateLayer(o)}async _fetchVoxelServiceLayer(e){let t=(await(0,n.A)(this.parsedUrl?.path+"/layer",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e})).data;this.read(t,this._getServiceContext()),this.validateLayer(t)}_getServiceContext(){return{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl}}async _ensureLoadBeforeSave(){await this.load(),"beforeSave"in this&&"function"==typeof this.beforeSave&&await this.beforeSave()}validateLayer(e){}async _saveAs(e,t){let r={...T,...t},o=g.default.from(e);if(!o)throw new i.A("sceneservice:portal-item-required","_saveAs() requires a portal item to save to");o.id&&(o=o.clone(),o.id=null);let n=o.portal||v.A.getDefault();await this._ensureLoadBeforeSave(),o.type=R,o.portal=n;let a=(0,w.m)(o,"portal-item",{withResources:!0}),s={layers:[this.write({},a)]};return await Promise.all(a.resources.pendingOperations??[]),await this._validateAgainstJSONSchema(s,a,r),this.url&&(o.url=this.url),o.title||(o.title=this.title),U(o,r,1),await n.signIn(),await n.user.addItem({item:o,folder:r?.folder,data:s}),await(0,b.r)(this.resourceReferences,a),this.portalItem=o,(0,u.v)(a),a.portalItem=o,o}async _save(e){let t={...T,...e};if(!this.portalItem)throw new i.A("sceneservice:portal-item-not-set","Portal item to save to has not been set on this SceneService");if(this.portalItem.type!==R)throw new i.A("sceneservice:portal-item-wrong-type",`Portal item needs to have type "${R}"`);await this._ensureLoadBeforeSave();let r=(0,w.m)(this.portalItem,"portal-item",{withResources:!0}),o=this.write({},r),a=await async function(e,t){let r=await e.fetchData("json")??{};return Array.isArray(r.layers)||(r.layers=await async function(e,t){let r=await async function(e){let t=_(e.url);if(!t)return null;let r=(await(0,n.A)(t,{query:{f:"json"},responseType:"json"})).data.layers;if(!Array.isArray(r))return null;let o=r.filter(({id:e})=>null!=e).map(({id:e})=>({id:e}));return o.length?o:null}(e).catch(()=>null);return r?.some(({id:e})=>e===t.id)?r:[t]}(e,t)),function(e,t){let r=e.findIndex(({id:e})=>e===t.id);-1===r?e.push(t):e[r]=t}(r.layers,t),r}(this.portalItem,o);await Promise.all(r.resources.pendingOperations??[]),await this._validateAgainstJSONSchema(a,r,t);let s=function(e,t){return t&&function(e,t){let r=_(e);return!!r&&r===B(t).url}(e.url,t)?e.url:t}(this.portalItem,this.url);return s&&(this.portalItem.url=s),this.portalItem.title||(this.portalItem.title=this.title),U(this.portalItem,t,0),await(0,b.S)(this.portalItem,a,this.resourceReferences,r),(0,u.v)(r),this.portalItem}async _validateAgainstJSONSchema(e,t,r){let o=r?.validationOptions;(0,x.ci)(t,{errorName:"sceneservice:save"},{ignoreUnsupported:o?.ignoreUnsupported,supplementalUnsupportedErrors:["scenemodification:unsupported"]});let n=o?.enabled,s=null;if(n&&s){let t=(await s()).validate(e,r.portalItemLayerType);if(!t.length)return;let n=`Layer item did not validate:\n${t.join("\n")}`;if(a.A.getLogger(this).error(`_validateAgainstJSONSchema(): ${n}`),"throw"===o.failPolicy){let e=t.map(e=>new i.A("sceneservice:schema-validation",e));throw new i.A("sceneservice-validate:error","Failed to save layer item due to schema validation, see `details.errors`.",{validationErrors:e})}}}};return(0,o.Cg)([(0,l.MZ)(h.id)],r.prototype,"id",void 0),(0,o.Cg)([(0,l.MZ)({type:d.A})],r.prototype,"spatialReference",void 0),(0,o.Cg)([(0,C.w)("spatialReference",["spatialReference","store.indexCRS","store.geographicCRS"])],r.prototype,"readSpatialReference",null),(0,o.Cg)([(0,l.MZ)({type:c.A})],r.prototype,"fullExtent",void 0),(0,o.Cg)([(0,C.w)("fullExtent",["fullExtent","store.extent","spatialReference","store.indexCRS","store.geographicCRS"])],r.prototype,"readFullExtent",null),(0,o.Cg)([(0,l.MZ)({type:Number,json:{name:"layerDefinition.minScale",write:!0,origins:{service:{read:{source:"minScale"},write:!1}}}})],r.prototype,"minScale",void 0),(0,o.Cg)([(0,l.MZ)({type:Number,json:{name:"layerDefinition.maxScale",write:!0,origins:{service:{read:{source:"maxScale"},write:!1}}}})],r.prototype,"maxScale",void 0),(0,o.Cg)([(0,l.MZ)({readOnly:!0})],r.prototype,"version",void 0),(0,o.Cg)([(0,C.w)("version",["store.version"])],r.prototype,"readVersion",null),(0,o.Cg)([(0,l.MZ)({type:String,json:{read:{source:"copyrightText"}}})],r.prototype,"copyright",void 0),(0,o.Cg)([(0,l.MZ)({type:String,json:{read:!1}})],r.prototype,"sublayerTitleMode",void 0),(0,o.Cg)([(0,l.MZ)({type:String})],r.prototype,"title",void 0),(0,o.Cg)([(0,C.w)("portal-item","title")],r.prototype,"readTitlePortalItem",null),(0,o.Cg)([(0,C.w)("service","title",["name"])],r.prototype,"readTitleService",null),(0,o.Cg)([(0,l.MZ)({type:Number,json:{origins:{service:{read:{source:"id"}},"portal-item":{write:{target:"id",isRequired:!0,ignoreOrigin:!0},read:!1}}}})],r.prototype,"layerId",void 0),(0,o.Cg)([(0,l.MZ)((0,m.b)({separator:"layers"}))],r.prototype,"url",void 0),(0,o.Cg)([(0,l.MZ)({readOnly:!0})],r.prototype,"parsedUrl",null),(0,o.Cg)([(0,l.MZ)({readOnly:!0})],r.prototype,"store",void 0),(0,o.Cg)([(0,l.MZ)({type:String,readOnly:!0,json:{read:{source:"store.rootNode"}}})],r.prototype,"rootNode",void 0),r=(0,o.Cg)([(0,l.$K)("esri.layers.mixins.SceneService")],r),r},I=-1e38;function S(e){if(null!=e.spatialReference)return d.A.fromJSON(e.spatialReference);let t=e.store,r=t.indexCRS||t.geographicCRS,o=r&&parseInt(r.slice(r.lastIndexOf("/")+1),10);return null==o?null:new d.A(o)}function M(e,t){if(null==t?.center||null==t.halfSize)throw new i.A("sceneservice:invalid-node-page","Invalid node page.");if(t.center[0]<I)return;let r=t.halfSize,o=t.center[2],n=Math.sqrt(r[0]*r[0]+r[1]*r[1]+r[2]*r[2]);e.zmin=o-n,e.zmax=o+n}function U(e,t,r){e.typeKeywords||=[];let o=t.getTypeKeywords();for(let t of o)e.typeKeywords.push(t);e.typeKeywords&&(e.typeKeywords=e.typeKeywords.filter((e,t,r)=>r.indexOf(e)===t),1===r&&(e.typeKeywords=e.typeKeywords.filter(e=>"Hosted Service"!==e)))}const R="Scene Service",T={getTypeKeywords:()=>[],portalItemLayerType:"unknown",validationOptions:{enabled:!0,ignoreUnsupported:!1,failPolicy:"throw"}},F={layerId:null};function _(e){if(!e)return null;let t=B(e);if(null!=t.layerId)return null;let r=(0,f.qg)(t.url);return null==r||"SceneServer"===r.serverType?t.url:null}function B(e){return(0,f.HZ)({layer:F,url:e,nonStandardUrlAllowed:!0})}},83898(e,t,r){r.d(t,{F:()=>i});var o=r(56507),n=r(49186);async function i(e,t,r,i,a,s,l){let u=null;if(null!=r){let t=`${e}/nodepages/`,n=t+Math.floor(r.rootIndex/r.nodesPerPage);try{return{type:"page",rootPage:(await(0,o.A)(n,{query:{f:"json",...i,token:a},responseType:"json",signal:l})).data,rootIndex:r.rootIndex,pageSize:r.nodesPerPage,lodMetric:r.lodSelectionMetricType,urlPrefix:t}}catch(e){s?.warn("#fetchIndexInfo()","Failed to load root node page. Falling back to node documents.",n,e),u=e}}if(!t)return null;let c=t?.split("/").pop(),d=`${e}/nodes/`,p=d+c;try{return{type:"node",rootNode:(await(0,o.A)(p,{query:{f:"json",...i,token:a},responseType:"json",signal:l})).data,urlPrefix:d}}catch(e){throw new n.A("sceneservice:root-node-missing","Root node missing.",{pageError:u,nodeError:e,url:p})}}},50805(e,t,r){r.d(t,{L0:()=>m,Ot:()=>p,W4:()=>s,uV:()=>c});var o=r(32198),n=r(25482),i=r(91429),a=r(93223);let s=class extends n.o{constructor(){super(...arguments),this.nodesPerPage=null,this.rootIndex=0,this.lodSelectionMetricType=null}};(0,o.Cg)([(0,i.MZ)({type:Number})],s.prototype,"nodesPerPage",void 0),(0,o.Cg)([(0,i.MZ)({type:Number})],s.prototype,"rootIndex",void 0),(0,o.Cg)([(0,i.MZ)({type:String})],s.prototype,"lodSelectionMetricType",void 0),s=(0,o.Cg)([(0,i.$K)("esri.layers.support.I3SLayerDefinitions.I3SNodePageDefinition")],s);let l=class extends n.o{constructor(){super(...arguments),this.factor=1}};(0,o.Cg)([(0,i.MZ)({type:Number,json:{read:{source:"textureSetDefinitionId"}}})],l.prototype,"id",void 0),(0,o.Cg)([(0,i.MZ)({type:Number})],l.prototype,"factor",void 0),l=(0,o.Cg)([(0,i.$K)("esri.layers.support.I3SLayerDefinitions.I3SMaterialTexture")],l);let u=class extends n.o{constructor(){super(...arguments),this.baseColorFactor=[1,1,1,1],this.baseColorTexture=null,this.metallicRoughnessTexture=null,this.metallicFactor=1,this.roughnessFactor=1}};(0,o.Cg)([(0,i.MZ)({type:[Number]})],u.prototype,"baseColorFactor",void 0),(0,o.Cg)([(0,i.MZ)({type:l})],u.prototype,"baseColorTexture",void 0),(0,o.Cg)([(0,i.MZ)({type:l})],u.prototype,"metallicRoughnessTexture",void 0),(0,o.Cg)([(0,i.MZ)({type:Number})],u.prototype,"metallicFactor",void 0),(0,o.Cg)([(0,i.MZ)({type:Number})],u.prototype,"roughnessFactor",void 0),u=(0,o.Cg)([(0,i.$K)("esri.layers.support.I3SLayerDefinitions.I3SMaterialPBRMetallicRoughness")],u);let c=class extends n.o{constructor(){super(...arguments),this.alphaMode="opaque",this.alphaCutoff=.25,this.doubleSided=!1,this.cullFace="none",this.normalTexture=null,this.occlusionTexture=null,this.emissiveTexture=null,this.emissiveFactor=null,this.pbrMetallicRoughness=null}};(0,o.Cg)([(0,a.e)({opaque:"opaque",mask:"mask",blend:"blend"})],c.prototype,"alphaMode",void 0),(0,o.Cg)([(0,i.MZ)({type:Number})],c.prototype,"alphaCutoff",void 0),(0,o.Cg)([(0,i.MZ)({type:Boolean})],c.prototype,"doubleSided",void 0),(0,o.Cg)([(0,a.e)({none:"none",back:"back",front:"front"})],c.prototype,"cullFace",void 0),(0,o.Cg)([(0,i.MZ)({type:l})],c.prototype,"normalTexture",void 0),(0,o.Cg)([(0,i.MZ)({type:l})],c.prototype,"occlusionTexture",void 0),(0,o.Cg)([(0,i.MZ)({type:l})],c.prototype,"emissiveTexture",void 0),(0,o.Cg)([(0,i.MZ)({type:[Number]})],c.prototype,"emissiveFactor",void 0),(0,o.Cg)([(0,i.MZ)({type:u})],c.prototype,"pbrMetallicRoughness",void 0),c=(0,o.Cg)([(0,i.$K)("esri.layers.support.I3SLayerDefinitions.I3SMaterialDefinition")],c);let d=class extends n.o{};(0,o.Cg)([(0,i.MZ)({type:String,json:{read:{source:["name","index"],reader:(e,t)=>e??`${t.index}`}}})],d.prototype,"name",void 0),(0,o.Cg)([(0,a.e)({jpg:"jpg",png:"png",dds:"dds","ktx-etc2":"ktx-etc2",ktx2:"ktx2",basis:"basis"})],d.prototype,"format",void 0),d=(0,o.Cg)([(0,i.$K)("esri.layers.support.I3SLayerDefinitions.I3STextureFormat")],d);let p=class extends n.o{constructor(){super(...arguments),this.atlas=!1}};(0,o.Cg)([(0,i.MZ)({type:[d]})],p.prototype,"formats",void 0),(0,o.Cg)([(0,i.MZ)({type:Boolean})],p.prototype,"atlas",void 0),p=(0,o.Cg)([(0,i.$K)("esri.layers.support.I3SLayerDefinitions.I3STextureSetDefinition")],p);let f=class extends n.o{};(0,o.Cg)([(0,a.e)({Float32:"Float32",UInt64:"UInt64",UInt32:"UInt32",UInt16:"UInt16",UInt8:"UInt8"})],f.prototype,"type",void 0),(0,o.Cg)([(0,i.MZ)({type:Number})],f.prototype,"component",void 0),f=(0,o.Cg)([(0,i.$K)("esri.layers.support.I3SLayerDefinitions.I3SGeometryAttribute")],f);let h=class extends n.o{};(0,o.Cg)([(0,a.e)({draco:"draco"})],h.prototype,"encoding",void 0),(0,o.Cg)([(0,i.MZ)({type:[String]})],h.prototype,"attributes",void 0),h=(0,o.Cg)([(0,i.$K)("esri.layers.support.I3SLayerDefinitions.I3SGeometryCompressedAttributes")],h);let y=class extends n.o{constructor(){super(...arguments),this.offset=0}};(0,o.Cg)([(0,i.MZ)({type:Number})],y.prototype,"offset",void 0),(0,o.Cg)([(0,i.MZ)({type:f})],y.prototype,"position",void 0),(0,o.Cg)([(0,i.MZ)({type:f})],y.prototype,"normal",void 0),(0,o.Cg)([(0,i.MZ)({type:f})],y.prototype,"uv0",void 0),(0,o.Cg)([(0,i.MZ)({type:f})],y.prototype,"color",void 0),(0,o.Cg)([(0,i.MZ)({type:f})],y.prototype,"uvRegion",void 0),(0,o.Cg)([(0,i.MZ)({type:f})],y.prototype,"featureId",void 0),(0,o.Cg)([(0,i.MZ)({type:f})],y.prototype,"faceRange",void 0),(0,o.Cg)([(0,i.MZ)({type:h})],y.prototype,"compressedAttributes",void 0),y=(0,o.Cg)([(0,i.$K)("esri.layers.support.I3SLayerDefinitions.I3SGeometryBuffer")],y);let m=class extends n.o{};(0,o.Cg)([(0,a.e)({triangle:"triangle"})],m.prototype,"topology",void 0),(0,o.Cg)([(0,i.MZ)()],m.prototype,"geometryBuffers",void 0),m=(0,o.Cg)([(0,i.$K)("esri.layers.support.I3SLayerDefinitions.I3SGeometryDefinition")],m)},88788(e,t,r){r.d(t,{m:()=>a,v:()=>i});var o=r(84952),n=r(20655);function i(e,t){return{...s(e,t),readResourcePaths:[]}}function a(e,t,r){let n=(0,o.An)(r?.forceNewItemContext?null:e.itemUrl);return{...s(e,t,r),messages:[],writtenProperties:[],blockedRelativeUrls:[],verifyItemRelativeUrls:n?{rootPath:n.path,writtenUrls:[]}:null,resources:r?.withResources?{toAdd:[],toUpdate:[],toKeep:[],pendingOperations:[]}:null}}function s(e,t,r){return{origin:t,url:(0,o.An)(r?.forceNewItemContext?null:e.itemUrl),portal:e.portal||n.A.getDefault(),portalItem:e}}},15804(e,t,r){r.d(t,{addOrUpdateResources:()=>s,bg:()=>p,cL:()=>d,fetchResources:()=>a,removeAllResources:()=>u,removeResource:()=>l});var o=r(56507),n=r(49186),i=r(84952);async function a(e,t={},r){await e.load(r);let o=(0,i.fj)(e.itemUrl,"resources"),{start:n=1,num:a=10,sortOrder:s="asc",sortField:l="resource"}=t,u={query:{start:n,num:a,sortOrder:s,sortField:l,token:e.apiKey},signal:r?.signal},c=await e.portal.request(o,u);return{total:c.total,nextStart:c.nextStart,resources:c.resources.map(({created:t,size:r,resource:o})=>({created:new Date(t),size:r,resource:e.resourceFromPath(o)}))}}async function s(e,t,r,o){let a=new Map;for(let{resource:e,content:o,compress:i,access:s}of t){if(!e.hasPath())throw new n.A(`portal-item-resource-${r}:invalid-path`,"Resource does not have a valid path");let[t,l]=c(e.path),u=`${t}/${i??""}/${s??""}`;a.has(u)||a.set(u,{prefix:t,compress:i,access:s,files:[]}),a.get(u).files.push({fileName:l,content:o})}await e.load(o);let s=(0,i.fj)(e.userItemUrl,"add"===r?"addResources":"updateResources");for(let{prefix:t,compress:r,access:i,files:l}of a.values())for(let a=0;a<l.length;a+=25){let u=l.slice(a,a+25),c=new FormData;t&&"."!==t&&c.append("resourcesPrefix",t),r&&c.append("compress","true"),i&&c.append("access",i);let d=0;for(let{fileName:e,content:t}of u)c.append("file"+ ++d,t,e);c.append("f","json");try{await e.portal.request(s,{method:"post",body:c,signal:o?.signal})}catch(e){if(o?.ignoreResourceCopyErrors&&e instanceof n.A&&"CONT_00942"===e.details?.messageCode)continue;throw e}}}async function l(e,t,r){if(!t.hasPath())throw new n.A("portal-item-resources-remove:invalid-path","Resource does not have a valid path");await e.load(r);let o=(0,i.fj)(e.userItemUrl,"removeResources");await e.portal.request(o,{method:"post",query:{resource:t.path},signal:r?.signal}),t.portalItem=null}async function u(e,t){await e.load(t);let r=(0,i.fj)(e.userItemUrl,"removeResources");return e.portal.request(r,{method:"post",query:{deleteAll:!0},signal:t?.signal})}function c(e){let t=e.lastIndexOf("/");return-1===t?[".",e]:[e.slice(0,t),e.slice(t+1)]}async function d(e){return"blob"===e.type?e.blob:"json"===e.type?new Blob([e.jsonString],{type:"application/json"}):(await(0,o.A)(e.url,{responseType:"blob"})).data}function p(e,t){if(!e.hasPath())return null;let[r,,o]=function(e){let[t,r]=function(e){let t=(0,i.Zo)(e);return null==t?[e,""]:[e.slice(0,e.length-t.length-1),`.${t}`]}(e),[o,n]=c(t);return[o,n,r]}(e.path);return e.portalItem.resourceFromPath((0,i.fj)(r,t+o))}},24212(e,t,r){r.d(t,{$7:()=>l,B:()=>s,M7:()=>d,XF:()=>c,tW:()=>u,w7:()=>a});var o=r(56512),n=r(86211),i=r(16271);function a(e,t){return function(e,t){return t?.mode?t.mode:function(e){return e?p:f}(e).mode}(null==e||(e.hasZ??!1),t)}function s(e,t,r){return r&&r.mode!==t?`${e} only support ${t} elevation mode`:null}function l(e,t,r){return r?.mode===t?`${e} do not support ${t} elevation mode`:null}function u(e,t){return null!=t?.featureExpressionInfo&&"0"!==t.featureExpressionInfo.expression?`${e} do not support featureExpressionInfo`:null}function c(e,t){t&&e.warn(".elevationInfo=",t)}function d(e){return(e?.offset??0)*(0,i.Ao)(e?.unit)}(0,o.B)((e,t,r)=>{if(!e||"decimal-degrees"===t)return 0;let o="unknown"!==t&&t?t:"meters",i=(0,n.mq)(r);return i?(0,n.oU)(e,o,i):0});const p={mode:"absolute-height",offset:0},f={mode:"on-the-ground",offset:null}},59418(e,t,r){r.d(t,{qs:()=>m,wH:()=>y,MA:()=>p,E5:()=>f,m0:()=>g});var o=r(49186),n=r(4718),i=r(53966),a=r(34275),s=r(37203);const l=()=>i.A.getLogger("esri.views.3d.layers.i3s.I3SBinaryReader");function u(e,t,r){let n="",i=0;for(;i<r;){let a=e[t+i];if(a<128)n+=String.fromCharCode(a),i++;else if(a>=192&&a<224){if(i+1>=r)throw new o.A("utf8-decode-error","UTF-8 Decode failed. Two byte character was truncated.");let s=(31&a)<<6|63&e[t+i+1];n+=String.fromCharCode(s),i+=2}else if(a>=224&&a<240){if(i+2>=r)throw new o.A("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");let s=(15&a)<<12|(63&e[t+i+1])<<6|63&e[t+i+2];n+=String.fromCharCode(s),i+=3}else{if(!(a>=240&&a<248))throw new o.A("utf8-decode-error","UTF-8 Decode failed. Invalid multi byte sequence.");{if(i+3>=r)throw new o.A("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");let s=(7&a)<<18|(63&e[t+i+1])<<12|(63&e[t+i+2])<<6|63&e[t+i+3];if(s>=65536){let e=55296+(s-65536>>10),t=56320+(1023&s);n+=String.fromCharCode(e,t)}else n+=String.fromCharCode(s);i+=4}}}return n}function c(e,t){let r={byteOffset:0,byteCount:0,fields:Object.create(null)},o=0;for(let n=0;n<t.length;n++){let i=t[n],a=i.valueType||i.type,s=b[a];r.fields[i.property]=s(e,o),o+=w[a].BYTES_PER_ELEMENT}return r.byteCount=o,r}function d(e,t,r){let n,i=[],a=0,s=0;for(;s<e;s+=1){if(n=t[s],n>0){if(i.push(u(r,a,n-1)),0!==r[a+n-1])throw new o.A("string-array-error","Invalid string array: missing null termination.")}else i.push(null);a+=n}return i}function p(e,t){return new w[t.valueType](e,t.byteOffset,t.count*t.valuesPerElement)}function f(e,t){if(!e)return null;let r=e[t];return(0,a.IY)(e)?-32768===r?null:r:(0,a._G)(e)?r===a.h2?null:r:r==r?r:null}function h(e,t,r){if(t!==e&&l().error(`Invalid ${r} buffer size\n expected: ${e}, actual: ${t})`),t<e)throw new o.A("buffer-too-small","Binary buffer is too small",{expectedSize:e,actualSize:t})}function y(e,t){let r=c(e,t&&t.header),o=r.byteCount,n={isDraco:!1,header:r,byteOffset:r.byteCount,byteCount:0,vertexAttributes:{}},i=r.fields,a=null==i.vertexCount?i.count:i.vertexCount;for(let e of t.ordering){if(!t.vertexAttributes[e])continue;let r={...t.vertexAttributes[e],byteOffset:o,count:a},i=v[e]||"_"+e;n.vertexAttributes[i]=r,o+=C(r.valueType)*r.valuesPerElement*a}let s=i.faceCount;if(t.faces&&s){n.faces={};for(let e of t.ordering){if(!t.faces[e])continue;let r={...t.faces[e],byteOffset:o,count:s};n.faces[e]=r,o+=C(r.valueType)*r.valuesPerElement*s}}let l=i.featureCount;if(t.featureAttributes&&t.featureAttributeOrder&&l){n.featureAttributes={};for(let e of t.featureAttributeOrder){if(!t.featureAttributes[e])continue;let r={...t.featureAttributes[e],byteOffset:o,count:l};n.featureAttributes[e]=r,o+=("UInt64"===r.valueType?8:C(r.valueType))*r.valuesPerElement*l}}return h(o,e.byteLength,"geometry"),n.byteCount=o-n.byteOffset,n}function m(e,t){return e&&e.compressedAttributes&&"draco"===e.compressedAttributes.encoding?function(e){let t={isDraco:!0,isLegacy:!1,color:!1,normal:!1,uv0:!1,uvRegion:!1,featureIndex:!1};for(let r of e)switch(r){case"position":break;case"normal":t.normal=!0;break;case"uv0":t.uv0=!0;break;case"color":t.color=!0;break;case"uv-region":t.uvRegion=!0;break;case"feature-index":t.featureIndex=!0}return t}(e.compressedAttributes.attributes):e?function(e){return{isDraco:!1,isLegacy:!1,color:null!=e.color,normal:null!=e.normal,uv0:null!=e.uv0,uvRegion:null!=e.uvRegion,featureIndex:null!=e.faceRange&&null!=e.featureId}}(e):function(e){let t={isDraco:!1,isLegacy:!0,color:!1,normal:!1,uv0:!1,uvRegion:!1,featureIndex:!1};for(let r of e.ordering)if(e.vertexAttributes[r])switch(r){case"position":break;case"normal":t.normal=!0;break;case"color":t.color=!0;break;case"uv0":t.uv0=!0;break;case"region":t.uvRegion=!0}return e.featureAttributes&&e.featureAttributeOrder&&(t.featureIndex=!0),t}(t)}const v={position:"position",normal:"normal",color:"color",uv0:"uv0",region:"uvRegion"};function g(e,t,r,i=!1){if("lepcc-rgb"===e.encoding)return i?(0,s.mb)(t):function(e){return Array.isArray(e)?e.length<1024?e:new Uint8Array(e):e.length<1024?Array.from(e):e}((0,s.mb)(t));if("lepcc-intensity"===e.encoding)return i?(0,s.Ax)(t):function(e){return Array.isArray(e)?e.length<1024?e:new Uint16Array(e):e.length<1024?Array.from(e):e}((0,s.Ax)(t));if(null!=e.encoding&&""!==e.encoding)throw new o.A("unknown-attribute-storage-info-encoding","Unknown Attribute Storage Info Encoding");e["attributeByteCounts "]&&!e.attributeByteCounts&&(l().warn("Warning: Trailing space in 'attributeByteCounts '."),e.attributeByteCounts=e["attributeByteCounts "]),"ObjectIds"===e.ordering[0]&&e.hasOwnProperty("objectIds")&&(l().warn("Warning: Case error in objectIds"),e.ordering[0]="objectIds");let a=function(e,t,r){let i=null==t.header?{byteOffset:0,byteCount:0,fields:{count:r}}:c(e,t.header),a={header:i,byteOffset:i.byteCount,byteCount:0,entries:Object.create(null)},s=i.byteCount;for(let e=0;e<t.ordering.length;e++){let r=t.ordering[e],l=(0,n.o8)(t[r]);if(l.count=i.fields.count??0,"String"===l.valueType){if(l.byteOffset=s,l.byteCount=i.fields[r+"ByteCount"],"UTF-8"!==l.encoding)throw new o.A("unsupported-encoding","Unsupported String encoding.",{encoding:l.encoding});if(l.timeEncoding&&"ECMA_ISO8601"!==l.timeEncoding)throw new o.A("unsupported-time-encoding","Unsupported time encoding.",{timeEncoding:l.timeEncoding})}else{if(!x(l.valueType))throw new o.A("unsupported-value-type","Unsupported binary valueType",{valueType:l.valueType});{let e=C(l.valueType);s+=s%e===0?0:e-s%e,l.byteOffset=s,l.byteCount=e*l.valuesPerElement*l.count}}s+=l.byteCount??0,a.entries[r]=l}return a.byteCount=s-a.byteOffset,a}(t,e,r);h(a.byteOffset+a.byteCount,t.byteLength,"attribute");let u=a.entries.attributeValues||a.entries.objectIds;if(u){if("String"===u.valueType){let e=a.entries.attributeByteCounts,r=p(t,e),o=function(e,t){return new Uint8Array(e,t.byteOffset,t.byteCount)}(t,u);return u.timeEncoding?function(e,t,r){return d(e,t,r).map(e=>{let t=e?Date.parse(e):null;return null==t||Number.isNaN(t)?null:t})}(e.count,r,o):d(e.count,r,o)}return i?p(t,u):function(e,t){let r=p(e,t);if(r.length>=1024)return r;let o=[];return r.forEach((e,t)=>o.push(f(r,t))),o}(t,u)}throw new o.A("bad-attribute-storage-info","Bad attributeStorageInfo specification.")}const w={Float32:Float32Array,Float64:Float64Array,UInt8:Uint8Array,Int8:Int8Array,UInt16:Uint16Array,Int16:Int16Array,UInt32:Uint32Array,Int32:Int32Array},b={Float32:(e,t)=>new DataView(e,0).getFloat32(t,!0),Float64:(e,t)=>new DataView(e,0).getFloat64(t,!0),UInt8:(e,t)=>new DataView(e,0).getUint8(t),Int8:(e,t)=>new DataView(e,0).getInt8(t),UInt16:(e,t)=>new DataView(e,0).getUint16(t,!0),Int16:(e,t)=>new DataView(e,0).getInt16(t,!0),UInt32:(e,t)=>new DataView(e,0).getUint32(t,!0),Int32:(e,t)=>new DataView(e,0).getInt32(t,!0)};function x(e){return w.hasOwnProperty(e)}function C(e){return x(e)?w[e].BYTES_PER_ELEMENT:0}},25992(e,t,r){r.d(t,{C:()=>s});var o=r(9093),n=r(51850),i=r(73941),a=r(48353);function s(e,t,r,s,l){let u="east-north-up"===r?e.center:function(e,t,r){let o=(0,n.vt)(),a=e.radius,s=2**(4*Math.ceil(Math.log(a)*Math.LOG2E/4)+1);if(r.isGeographic){let t=s/(0,i.tO)(r).radius*180/Math.PI,n=Math.round(e.center[1]/t),a=Math.max(-90,Math.min(90,n*t)),l=t/Math.cos((Math.abs(a)-t/2)/180*Math.PI);o[0]=Math.round(e.center[0]/l)*l,o[1]=a}else{let t=Math.round(e.center[0]/s),r=Math.round(e.center[1]/s);o[0]=t*s,o[1]=r*s}let l=e.center[2]+t;return o[2]=Math.round(l/s)*s,o}(e,t,s),c=(0,o.vt)();return(0,a.l)(s,u,c,l),c}},66480(e,t,r){r.d(t,{Rm:()=>h,Dd:()=>y,s1:()=>f});var o=r(56507),n=(r(4576),r(49186)),i=(r(44208),r(58083),r(9093)),a=(r(35522),r(51850)),s=(r(99917),r(16930)),l=(r(27993),r(19419));r(39516),r(30524),r(97552);var u=r(59418),c=(r(25992),r(90629),r(91829));(0,c.fA)(0,0,0,.2);(0,c.fA)(0,0,0,.2),r(34727);var d=r(57005);function p(e){return e?parseInt(e.slice(e.lastIndexOf("/")+1),10):void 0}async function f(e,t,r,n,i,a,s,l){let c=[];for(let o of t)if(o&&i.includes(o.name)){let t=`${e}/nodes/${r}/attributes/${o.key}/0`;c.push({url:t,storageInfo:o})}let d=await Promise.allSettled(c.map(e=>(0,o.A)(e.url,{responseType:"array-buffer",query:{...s,token:a},signal:l?.signal}).then(t=>(0,u.m0)(e.storageInfo,t.data)))),p=[];for(let e of n){let t={};for(let r=0;r<d.length;r++){let o=d[r];if("fulfilled"===o.status){let n=o.value;t[c[r].storageInfo.name]=(0,u.E5)(n,e)}}p.push(t)}return p}function h(e){let t=e.store,r=t.indexCRS||t.geographicCRS,o=void 0===r?t.indexWKT:void 0;if(o){if(!e.spatialReference)throw new n.A("layerview:no-store-spatial-reference-wkt-index-and-no-layer-spatial-reference","Found indexWKT in the scene layer store but no layer spatial reference",{});if(o!==e.spatialReference.wkt)throw new n.A("layerview:store-spatial-reference-wkt-index-incompatible","The indexWKT of the scene layer store does not match the WKT of the layer spatial reference",{})}let i=r?new s.A(p(r)):e.spatialReference;return i.equals(e.spatialReference)?e.spatialReference:i}function y(e){let t=e.store,r=t.vertexCRS||t.projectedCRS,o=void 0===r?t.vertexWKT:void 0;if(o){if(!e.spatialReference)throw new n.A("layerview:no-store-spatial-reference-wkt-vertex-and-no-layer-spatial-reference","Found vertexWKT in the scene layer store but no layer spatial reference",{});if(o!==e.spatialReference.wkt)throw new n.A("layerview:store-spatial-reference-wkt-vertex-incompatible","The vertexWKT of the scene layer store does not match the WKT of the layer spatial reference",{})}let i=r?new s.A(p(r)):e.spatialReference;return i.equals(e.spatialReference)?e.spatialReference:i}r(47187),(0,l.vt)(),(0,a.vt)(),(0,a.vt)(),(0,a.vt)(),(0,a.vt)(),(0,a.vt)(),(0,a.vt)(),(0,a.vt)(),(0,a.vt)(),(0,l.vt)(),(0,l.vt)(),new d.ab,(0,a.vt)(),Array(72),(0,i.vt)()},37203(e,t,r){r.d(t,{Ax:()=>u,Me:()=>i,mb:()=>l});var o=r(49186);function n(e,t,r){return{identifier:String.fromCharCode.apply(null,new Uint8Array(e,r+0,10)),version:t.getUint16(r+10,!0),checksum:t.getUint32(r+12,!0)}}function i(e){let t=new DataView(e,0),r=0,{identifier:i,version:s}=n(e,t,r);if(r+=16,"LEPCC "!==i)throw new o.A("lepcc-decode-error","Bad identifier");if(s>1)throw new o.A("lepcc-decode-error","Unknown version");let l=(c=r,{sizeLo:(u=t).getUint32(c+0,!0),sizeHi:u.getUint32(c+4,!0),minX:u.getFloat64(c+8,!0),minY:u.getFloat64(c+16,!0),minZ:u.getFloat64(c+24,!0),maxX:u.getFloat64(c+32,!0),maxY:u.getFloat64(c+40,!0),maxZ:u.getFloat64(c+48,!0),errorX:u.getFloat64(c+56,!0),errorY:u.getFloat64(c+64,!0),errorZ:u.getFloat64(c+72,!0),count:u.getUint32(c+80,!0),reserved:u.getUint32(c+84,!0)});var u,c;if(r+=88,l.sizeHi*2**32+l.sizeLo!==e.byteLength)throw new o.A("lepcc-decode-error","Bad size");let d=new Float64Array(3*l.count),p=[],f=[],h=[],y=[];if(r=a(e,r,p),r=a(e,r,f),r=a(e,r,h),r=a(e,r,y),r!==e.byteLength)throw new o.A("lepcc-decode-error","Bad length");let m=0,v=0;for(let e=0;e<p.length;e++){v+=p[e];let t=0;for(let r=0;r<f[e];r++){t+=h[m];let e=y[m];d[3*m]=Math.min(l.maxX,l.minX+2*l.errorX*t),d[3*m+1]=Math.min(l.maxY,l.minY+2*l.errorY*v),d[3*m+2]=Math.min(l.maxZ,l.minZ+2*l.errorZ*e),m++}}return{errorX:l.errorX,errorY:l.errorY,errorZ:l.errorZ,result:d}}function a(e,t,r){let o=[];t=s(e,t,o);let n=[];for(let i=0;i<o.length;i++){n.length=0,t=s(e,t,n);for(let e=0;e<n.length;e++)r.push(n[e]+o[i])}return t}function s(e,t,r){let n=new DataView(e,t),i=n.getUint8(0),a=31&i,s=!!(32&i),l=(192&i)>>6,u=0;if(0===l)u=n.getUint32(1,!0),t+=5;else if(1===l)u=n.getUint16(1,!0),t+=3;else{if(2!==l)throw new o.A("lepcc-decode-error","Bad count type");u=n.getUint8(1),t+=2}if(s)throw new o.A("lepcc-decode-error","LUT not implemented");let c=Math.ceil(u*a/8),d=new Uint8Array(e,t,c),p=0,f=0,h=0,y=-1>>>32-a;for(let e=0;e<u;e++){for(;f<a;)p|=d[h]<<f,f+=8,h+=1;r[e]=p&y,p>>>=a,f-=a,f+a>32&&(p|=d[h-1]>>8-f)}return t+h}function l(e){let t=new DataView(e,0),r=0,{identifier:i,version:a}=n(e,t,r);if(r+=16,"ClusterRGB"!==i)throw new o.A("lepcc-decode-error","Bad identifier");if(a>1)throw new o.A("lepcc-decode-error","Unknown version");let s=(u=r,{sizeLo:(l=t).getUint32(u+0,!0),sizeHi:l.getUint32(u+4,!0),count:l.getUint32(u+8,!0),colorMapCount:l.getUint16(u+12,!0),lookupMethod:l.getUint8(u+14),compressionMethod:l.getUint8(u+15)});var l,u;if(r+=16,s.sizeHi*2**32+s.sizeLo!==e.byteLength)throw new o.A("lepcc-decode-error","Bad size");if((2===s.lookupMethod||1===s.lookupMethod)&&0===s.compressionMethod){if(3*s.colorMapCount+s.count+r!==e.byteLength||s.colorMapCount>256)throw new o.A("lepcc-decode-error","Bad count");let t=new Uint8Array(e,r,3*s.colorMapCount),n=new Uint8Array(e,r+3*s.colorMapCount,s.count),i=new Uint8Array(3*s.count);for(let e=0;e<s.count;e++){let r=n[e];i[3*e]=t[3*r],i[3*e+1]=t[3*r+1],i[3*e+2]=t[3*r+2]}return i}if(0===s.lookupMethod&&0===s.compressionMethod){if(3*s.count+r!==e.byteLength||0!==s.colorMapCount)throw new o.A("lepcc-decode-error","Bad count");return new Uint8Array(e,r).slice()}if(s.lookupMethod<=2&&1===s.compressionMethod){if(r+3!==e.byteLength||1!==s.colorMapCount)throw new o.A("lepcc-decode-error","Bad count");let n=t.getUint8(r),i=t.getUint8(r+1),a=t.getUint8(r+2),l=new Uint8Array(3*s.count);for(let e=0;e<s.count;e++)l[3*e]=n,l[3*e+1]=i,l[3*e+2]=a;return l}throw new o.A("lepcc-decode-error","Bad method "+s.lookupMethod+","+s.compressionMethod)}function u(e){let t=new DataView(e,0),r=0,{identifier:i,version:a}=n(e,t,r);if(r+=16,"Intensity "!==i)throw new o.A("lepcc-decode-error","Bad identifier");if(a>1)throw new o.A("lepcc-decode-error","Unknown version");let l=(c=r,{sizeLo:(u=t).getUint32(c+0,!0),sizeHi:u.getUint32(c+4,!0),count:u.getUint32(c+8,!0),scaleFactor:u.getUint16(c+12,!0),bitsPerPoint:u.getUint8(c+14),reserved:u.getUint8(c+15)});var u,c;if(r+=16,l.sizeHi*2**32+l.sizeLo!==e.byteLength)throw new o.A("lepcc-decode-error","Bad size");let d=new Uint16Array(l.count);if(8===l.bitsPerPoint){if(l.count+r!==e.byteLength)throw new o.A("lepcc-decode-error","Bad size");let t=new Uint8Array(e,r,l.count);for(let e=0;e<l.count;e++)d[e]=t[e]*l.scaleFactor}else if(16===l.bitsPerPoint){if(2*l.count+r!==e.byteLength)throw new o.A("lepcc-decode-error","Bad size");let t=new Uint16Array(e,r,l.count);for(let e=0;e<l.count;e++)d[e]=t[e]*l.scaleFactor}else{let t=[];if(s(e,r,t)!==e.byteLength)throw new o.A("lepcc-decode-error","Bad size");for(let e=0;e<l.count;e++)d[e]=t[e]*l.scaleFactor}return d}},49255(e,t,r){function o(e){return function(e){return function(e){return function(e){return a(e)||function(e){return 10===e||11===e}(e)}(e)||function(e){return 3===e}(e)}(e)||function(e){return 4===e}(e)}(e)||function(e){return 5===(t=e)||6===t||7===t||8===e||9===e;var t}(e)}function n(e){return 1===e}function i(e){return 2===e}function a(e){return 0===e||function(e){return n(e)||i(e)}(e)}r.d(t,{Rb:()=>i,_$:()=>n,_o:()=>a,uw:()=>o})},29941(e,t,r){r.d(t,{v:()=>i});var o=r(32198),n=r(51976);class i extends n.K{constructor(){super(...arguments),this.output=0,this.hasEmission=!1,this.useFloatBlend=!0}}(0,o.Cg)([(0,n.W)({count:12})],i.prototype,"output",void 0),(0,o.Cg)([(0,n.W)()],i.prototype,"hasEmission",void 0),(0,o.Cg)([(0,n.W)()],i.prototype,"useFloatBlend",void 0)},53466(e,t,r){r.d(t,{U:()=>n});var o=r(31821);function n(e,t){switch(t.textureCoordinateType){case 1:return e.attributes.add("uv0","vec2"),e.varyings.add("vuv0","vec2"),void e.vertex.code.add(o.H`void forwardTextureCoordinates() { vuv0 = uv0; }`);case 2:return e.attributes.add("uv0","vec2"),e.attributes.add("uvRegion","vec4"),e.varyings.add("vuv0","vec2"),e.varyings.add("vuvRegion","vec4"),void e.vertex.code.add(o.H`void forwardTextureCoordinates() {
|
|
2
|
-
vuv0 = uv0;
|
|
3
|
-
vuvRegion = uvRegion;
|
|
4
|
-
}`);default:t.textureCoordinateType;case 0:return void e.vertex.code.add(o.H`void forwardTextureCoordinates() {}`);case 3:return}}},99208(e,t,r){r.d(t,{r:()=>a});var o=r(53466),n=r(31821);function i(e){e.fragment.code.add(n.H`vec4 textureAtlasLookup(sampler2D tex, vec2 textureCoordinates, vec4 atlasRegion) {
|
|
5
|
-
vec2 atlasScale = atlasRegion.zw - atlasRegion.xy;
|
|
6
|
-
vec2 uvAtlas = fract(textureCoordinates) * atlasScale + atlasRegion.xy;
|
|
7
|
-
float maxdUV = 0.125;
|
|
8
|
-
vec2 dUVdx = clamp(dFdx(textureCoordinates), -maxdUV, maxdUV) * atlasScale;
|
|
9
|
-
vec2 dUVdy = clamp(dFdy(textureCoordinates), -maxdUV, maxdUV) * atlasScale;
|
|
10
|
-
return textureGrad(tex, uvAtlas, dUVdx, dUVdy);
|
|
11
|
-
}`)}function a(e,t){let{textureCoordinateType:r}=t;if(0===r||3===r)return;e.include(o.U,t);let a=2===r;a&&e.include(i),e.fragment.code.add(n.H`
|
|
12
|
-
vec4 textureLookup(sampler2D tex, vec2 uv) {
|
|
13
|
-
return ${a?"textureAtlasLookup(tex, uv, vuvRegion)":"texture(tex, uv)"};
|
|
14
|
-
}
|
|
15
|
-
`)}},47187(e,t,r){r.d(t,{zp:()=>g});var o=r(32198),n=r(34727),i=r(49255),a=r(29941),s=r(99208),l=r(65261),u=r(40710),c=r(33079),d=r(28421),p=r(20304),f=r(31821),h=r(15976),y=r(63761),m=r(51976);r(72458);class v extends a.v{constructor(){super(...arguments),this.emissionSource=0}}function g(e,t){let{hasEmission:r,emissionSource:o,hasEmissiveTextureTransform:a,bindType:m}=t;if(!(0,i._o)(t.output)||!r)return;let v=e.fragment;if(v.include(l.C),0===o)return void v.code.add("vec4 getEmissions(vec3 symbolColor) { return vec4(0.0);}");let g=3===o||4===o||5===o;g&&(e.include(s.r,t),v.uniforms.add(1===m?new y.N("texEmission",e=>e.textureEmissive):new h.o("texEmission",e=>e.textureEmissive)));let w=2===o||g;if(w&&v.uniforms.add(1===m?new c.t("emissiveBaseColor",e=>e.emissiveBaseColor):new u.W("emissiveBaseColor",e=>e.emissiveBaseColor)),function({emissionSource:e}){return 0===e||1===e||2===e||3===e}(t)){let e=e=>(0,n.qE)(e??0,0,16);v.uniforms.add(1===m?new p.m("emissiveStrength",t=>e(t.emissiveStrength)):new d.J("emissiveStrength",t=>e(t.emissiveStrength)))}let b=7===o,x=5===o,C=1===o||6===o||b;v.code.add(f.H`vec4 getEmissions(vec3 symbolColor) {
|
|
16
|
-
vec4 emissions =`),w?x?v.code.add("emissiveSource < 0.5 ? vec4(emissiveBaseColor, 1.0): vec4(linearizeGamma(symbolColor), 1.0)"):v.code.add("vec4(emissiveBaseColor, 1.0)"):C?b?v.code.add("emissiveSource < 0.5 ? vec4(0.0): vec4(linearizeGamma(symbolColor), 1.0)"):v.code.add("vec4(linearizeGamma(symbolColor), 1.0)"):v.code.add("vec4(0.0)"),v.code.add(";"),g&&(x?v.code.add(f.H`
|
|
17
|
-
if(emissiveSource < 0.5) {
|
|
18
|
-
vec4 emissiveFromTex = textureLookup(texEmission, ${a?"emissiveUV":"vuv0"});
|
|
19
|
-
emissions *= vec4(linearizeGamma(emissiveFromTex.rgb), emissiveFromTex.a);
|
|
20
|
-
}
|
|
21
|
-
`):v.code.add(`vec4 emissiveFromTex = textureLookup(texEmission, ${a?"emissiveUV":"vuv0"});\n emissions *= vec4(linearizeGamma(emissiveFromTex.rgb), emissiveFromTex.a);`),v.code.add("emissions.a = emissions.rgb == vec3(0.0) ? 0.0: emissions.a;")),v.code.add("\n emissions.rgb *= emissiveStrength;\n return emissions;\n }\n ")}(0,o.Cg)([(0,m.W)({count:8})],v.prototype,"emissionSource",void 0),(0,o.Cg)([(0,m.W)()],v.prototype,"hasEmissiveTextureTransform",void 0)},65261(e,t,r){r.d(t,{C:()=>i});var o=r(40876),n=r(31821);function i(e){e.constants.add("GAMMA","float",2.2).constants.add("INV_GAMMA","float",o.iw).code.add(n.H`vec3 delinearizeGamma(vec3 color) {
|
|
22
|
-
return pow(color, vec3(INV_GAMMA));
|
|
23
|
-
}
|
|
24
|
-
vec4 delinearizeGamma(vec4 color) {
|
|
25
|
-
return vec4(delinearizeGamma(color.rgb), color.a);
|
|
26
|
-
}
|
|
27
|
-
vec3 linearizeGamma(vec3 color) {
|
|
28
|
-
return pow(color, vec3(GAMMA));
|
|
29
|
-
}`)}},40710(e,t,r){r.d(t,{W:()=>n});var o=r(74333);class n extends o.n{constructor(e,t,r){super(e,"vec3",2,(o,n,i,a)=>o.setUniform3fv(e,t(n,i,a),r))}}},33079(e,t,r){r.d(t,{t:()=>n});var o=r(74333);class n extends o.n{constructor(e,t,r){super(e,"vec3",1,(o,n,i)=>o.setUniform3fv(e,t(n,i),r))}}},28421(e,t,r){r.d(t,{J:()=>n});var o=r(74333);class n extends o.n{constructor(e,t,r){super(e,"float",2,(o,n,i)=>o.setUniform1f(e,t(n,i),r))}}},20304(e,t,r){r.d(t,{m:()=>n});var o=r(74333);class n extends o.n{constructor(e,t,r){super(e,"float",1,(o,n,i)=>o.setUniform1f(e,t(n,i),r))}}},15976(e,t,r){r.d(t,{o:()=>n});var o=r(74333);class n extends o.n{constructor(e,t,r){super(e,"sampler2D",2,(o,n,i)=>o.bindTexture(e,t(n,i),r?.(n,i)))}}},63761(e,t,r){r.d(t,{N:()=>n});var o=r(74333);class n extends o.n{constructor(e,t){super(e,"sampler2D",1,(r,o,n)=>r.bindTexture(e,t(o,n)))}}},31821(e,t,r){r.d(t,{H:()=>o,If:()=>n});const o=(e,...t)=>{let r="";for(let o=0;o<t.length;o++)r+=e[o]+t[o];return r+=e[e.length-1],r};function n(e,t,r=""){return e?t:r}o.int=e=>e.toFixed(),o.uint=e=>`${Math.max(0,e).toFixed()}u`,o.hexuint=e=>`0x${Math.round(Math.max(0,e)).toString(16)}u`,o.float=e=>e.toPrecision(8)},51976(e,t,r){r.d(t,{K:()=>s,W:()=>l});var o=r(49186),n=r(4576);class i{constructor(e){this._bits=[...e]}equals(e){return(0,n.aI)(this._bits,e.bits)}get code(){return this._code??=String.fromCharCode(...this._bits),this._code}get bits(){return this._bits}}var a=r(65786);class s extends a.Y{constructor(){super(),this._parameterBits=this._parameterBits?.map(()=>0)??[],this._parameterNames??=[]}get key(){return this._key??=new i(this._parameterBits),this._key}decode(e=this.key){let t=this._parameterBits;this._parameterBits=[...e.bits];let r=this._parameterNames.map(e=>` ${e}: ${this[e]}`).join("\n");return this._parameterBits=t,r}}function l(e={}){return(t,r)=>{t.hasOwnProperty("_parameterNames")||Object.defineProperty(t,"_parameterNames",{value:t._parameterNames?.slice()??[],configurable:!0,writable:!0}),t.hasOwnProperty("_parameterBits")||Object.defineProperty(t,"_parameterBits",{value:t._parameterBits?.slice()??[0],configurable:!0,writable:!0}),t._parameterNames.push(r);let n=e.count||2,i=Math.ceil(Math.log2(n)),a=t._parameterBits,s=0;for(;a[s]+i>16;)s++,s>=a.length&&a.push(0);let l=a[s],u=(1<<i)-1<<l;a[s]+=i,e.count?Object.defineProperty(t,r,{get(){return(this._parameterBits[s]&u)>>l},set(t){let n=this._parameterBits[s];if((n&u)>>l!==t){if(this._key=null,this._parameterBits[s]=n&~u|+t<<l&u,"number"!=typeof t)throw new o.A("internal:invalid-shader-configuration",`Configuration value for ${r} must be a number, got ${typeof t}`);if(null==e.count)throw new o.A("internal:invalid-shader-configuration",`Configuration value for ${r} must provide a count option`)}}}):Object.defineProperty(t,r,{get(){return!!((this._parameterBits[s]&u)>>l)},set(e){let t=this._parameterBits[s];if(!!((t&u)>>l)!==e&&(this._key=null,this._parameterBits[s]=t&~u|+e<<l,"boolean"!=typeof e))throw new o.A("internal:invalid-shader-configurationx",`Configuration value for ${r} must be boolean, got ${typeof e}`)}})}}},72458(e,t,r){r.d(t,{Or:()=>a});var o=r(32198),n=r(51976);class i extends n.K{constructor(){super(...arguments),this.useFloatBlend=!0}}function a(e,t){t.useFloatBlend?(e.constants.add("floatBlendOutputScale","float",1),e.constants.add("floatBlendInputScale","float",1)):(e.constants.add("floatBlendOutputScale","float",1/16),e.constants.add("floatBlendInputScale","float",16)),e.constants.add("maxEmissiveStrength","float",16)}(0,o.Cg)([(0,n.W)()],i.prototype,"useFloatBlend",void 0)},65786(e,t,r){const o=class{};new o,r.d(t,["Y",0,o])},74333(e,t,r){r.d(t,{n:()=>o});class o{constructor(e,t,r,o,n=null){if(this.name=e,this.type=t,this.arraySize=n,this.bind={0:null,1:null,2:null},o)switch(r){case void 0:break;case 0:this.bind[0]=o;break;case 1:this.bind[1]=o;break;case 2:this.bind[2]=o}}equals(e){return this.type===e.type&&this.name===e.name&&this.arraySize===e.arraySize}}},91682(e,t,r){r.d(t,{S:()=>l,r:()=>s});var o=r(49186),n=r(17676),i=r(13069),a=r(15804);async function s(e,t,r){await c(await u(e,t,r),t,r)}async function l(e,t,r,o,n){let i=await u(r,o,n);await e.update({data:t}),await c(i,o,n)}async function u(e,t,s){if(!t?.resources)return;let l=function(e,t){let{portalItem:r,portalItemResourcePath:o}=e,{portalItem:n,portalItemResourcePath:i}=t;return r===n&&(!(o||i)||o===i)}(e,t)?new Set(e.paths):new Set;e.paths.length=0,e.portalItem=t.portalItem,e.portalItemResourcePath=t.portalItemResourcePath;let u=new Set(t.resources.toKeep.map(e=>e.resource.path)),c=new Set,d=[];u.forEach(t=>{l.delete(t),e.paths.push(t)});let p=[],f=[],h=[];for(let r of t.resources.toUpdate)if(l.delete(r.resource.path),u.has(r.resource.path)||c.has(r.resource.path)){let{resource:t,content:o,finish:n}=r,s=(0,a.bg)(t,(0,i.lk)());e.paths.push(s.path),p.push({resource:s,content:await(0,a.cL)(o),compress:r.compress}),n&&h.push(()=>n(s))}else{e.paths.push(r.resource.path),f.push({resource:r.resource,content:await(0,a.cL)(r.content),compress:r.compress});let t=r.finish;t&&h.push(()=>t(r.resource)),c.add(r.resource.path)}for(let r of t.resources.toAdd)if(e.paths.push(r.resource.path),l.has(r.resource.path))l.delete(r.resource.path);else{p.push({resource:r.resource,content:await(0,a.cL)(r.content),compress:r.compress});let e=r.finish;e&&h.push(()=>e(r.resource))}if(p.length||f.length){let{addOrUpdateResources:e}=await Promise.resolve().then(()=>r(15804));await e(t.portalItem,p,"add",s),await e(t.portalItem,f,"update",s)}if(h.forEach(e=>e()),0===d.length)return l;let y=await(0,n.Ol)(d);if((0,n.Te)(s),y.length>0)throw new o.A("save:resources","Failed to save one or more resources",{errors:y});return l}async function c(e,t,r){if(!e||!t.portalItem)return;let o=[];for(let n of e){let e=t.portalItem.resourceFromPath(n);o.push(e.portalItem.removeResource(e,r))}await(0,n.Lx)(o)}}}]);
|