@arcgis/core 4.32.0-next.20241219 → 4.32.0-next.20241221
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/WebLinkChart.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{0da2aaca3f0b4fe910e3.js → 015285436ca965f94e17.js} +1 -1
- package/assets/esri/core/workers/chunks/127c82cdb229434883b6.js +1 -0
- package/assets/esri/core/workers/chunks/16530347bd78dc6c2fcd.js +1 -0
- package/assets/esri/core/workers/chunks/{5119811063bfc97fb725.js → 1a713cc601c6fcd97d2f.js} +1 -1
- package/assets/esri/core/workers/chunks/{48f6eb3b63fec1d3312d.js → 2d908c115ea18e813b95.js} +1 -1
- package/assets/esri/core/workers/chunks/{11052103efe3d53a784e.js → 31d9f0a37a5d0a1c450b.js} +1 -1
- package/assets/esri/core/workers/chunks/{e7c3199813070ff30a3d.js → 3bb94da29dac3367ecc6.js} +1 -1
- package/assets/esri/core/workers/chunks/3ed7c8138231de3a3b96.js +1 -0
- package/assets/esri/core/workers/chunks/{9cc9bac6e02ab241e852.js → 4746b7afa90ea3641e60.js} +1 -1
- package/assets/esri/core/workers/chunks/{ce33d2b5f22a5c566661.js → 4b5dbdcad438cb2dd4bf.js} +1 -1
- package/assets/esri/core/workers/chunks/5a0eb9dfe668cf290462.js +1 -0
- package/assets/esri/core/workers/chunks/{ee1ddf56549bb169509c.js → 6332da54159d72a6ce66.js} +1 -1
- package/assets/esri/core/workers/chunks/648d7d8fa19a2e772c89.js +1 -0
- package/assets/esri/core/workers/chunks/66b411119b8ffb99b9dc.js +1 -0
- package/assets/esri/core/workers/chunks/69efc716991a407c3d23.js +1 -0
- package/assets/esri/core/workers/chunks/88c68881cbdf4e911832.js +1 -0
- package/assets/esri/core/workers/chunks/8e60de347b209a753c73.js +1 -0
- package/assets/esri/core/workers/chunks/{fb43c44a7d6b61f31e75.js → 94432e04de01ee7adc0e.js} +1 -1
- package/assets/esri/core/workers/chunks/{80ac74da0b0e45e74beb.js → 9a498f2c007f4d78d4dd.js} +1 -1
- package/assets/esri/core/workers/chunks/{770d233254419b741616.js → 9ad7d095e614e7e8d7f5.js} +1 -1
- package/assets/esri/core/workers/chunks/9dd167db3f2e68b71cea.js +1 -0
- package/assets/esri/core/workers/chunks/{b15894bff153e0793ef4.js → 9f495ad57cdbfa90c5b8.js} +1 -1
- package/assets/esri/core/workers/chunks/{d7b76bc7bff34abc2253.js → a0b3d70a1b0360084593.js} +1 -1
- package/assets/esri/core/workers/chunks/a90611cdc86190799560.js +1 -0
- package/assets/esri/core/workers/chunks/{e213f4a1c95a33f80cdc.js → aedff36d3fec86abb9fb.js} +1 -1
- package/assets/esri/core/workers/chunks/{194013d377e7dd00845f.js → b611f46835edcd6eefcc.js} +1 -1
- package/assets/esri/core/workers/chunks/{eddab4dc706e75c6637f.js → bff74200a0df0950cf08.js} +1 -1
- package/assets/esri/core/workers/chunks/{8f2ffb6944c9028d3bea.js → c08cb75c3eef6c45f604.js} +1 -1
- package/assets/esri/core/workers/chunks/c1c216b0aebe86311fae.js +1 -0
- package/assets/esri/core/workers/chunks/{f2b195d04414417682d4.js → cbf57abb537e86c1dd7f.js} +1 -1
- package/assets/esri/core/workers/chunks/dce55e7f76adecc055c3.js +1 -0
- package/assets/esri/core/workers/chunks/f2cdb7be3fd65f65c30b.js +1 -0
- package/assets/esri/core/workers/chunks/f9af0473878d960a02f2.js +1 -0
- package/assets/esri/core/workers/chunks/fa1c68f2ffcdff7986b6.js +1 -0
- package/assets/esri/core/workers/chunks/{0f1a7aeec18db5323365.js → fdd8a5eb07466541f1f9.js} +1 -1
- package/assets/esri/themes/base/widgets/_FeatureTable.scss +3 -3
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/chunks/OperatorProject.js +1 -1
- package/chunks/QuadraticBezier.js +1 -1
- package/form/elements/GroupElement.js +1 -1
- package/form/elements/UtilityNetworkAssociationsElement.d.ts +4 -0
- package/form/elements/{UtilityNetworkAssociationElement.js → UtilityNetworkAssociationsElement.js} +1 -1
- package/form/elements.js +1 -1
- package/form/support/formUtils.js +1 -1
- package/geometry/operators/affineTransformOperator.js +1 -1
- package/geometry/operators/alphaShapeOperator.js +1 -1
- package/geometry/operators/areaOperator.js +1 -1
- package/geometry/operators/autoCompleteOperator.js +1 -1
- package/geometry/operators/boundaryOperator.js +1 -1
- package/geometry/operators/bufferOperator.js +1 -1
- package/geometry/operators/centroidOperator.js +1 -1
- package/geometry/operators/clipOperator.js +1 -1
- package/geometry/operators/containsOperator.js +1 -1
- package/geometry/operators/convexHullOperator.js +1 -1
- package/geometry/operators/crossesOperator.js +1 -1
- package/geometry/operators/cutOperator.js +1 -1
- package/geometry/operators/densifyOperator.js +1 -1
- package/geometry/operators/differenceOperator.js +1 -1
- package/geometry/operators/disjointOperator.js +1 -1
- package/geometry/operators/distanceOperator.js +1 -1
- package/geometry/operators/equalsOperator.js +1 -1
- package/geometry/operators/extendOperator.js +1 -1
- package/geometry/operators/generalizeOperator.js +1 -1
- package/geometry/operators/geodesicBufferOperator.js +1 -1
- package/geometry/operators/geodesicProximityOperator.js +1 -1
- package/geometry/operators/geodeticAreaOperator.js +1 -1
- package/geometry/operators/geodeticDensifyOperator.js +1 -1
- package/geometry/operators/geodeticDistanceOperator.js +1 -1
- package/geometry/operators/geodeticLengthOperator.js +1 -1
- package/geometry/operators/graphicBufferOperator.js +1 -1
- package/geometry/operators/integrateOperator.js +1 -1
- package/geometry/operators/intersectionOperator.js +1 -1
- package/geometry/operators/intersectsOperator.js +1 -1
- package/geometry/operators/isNearOperator.js +1 -1
- package/geometry/operators/labelPointOperator.js +1 -1
- package/geometry/operators/lengthOperator.js +1 -1
- package/geometry/operators/linesToPolygonsOperator.js +1 -1
- package/geometry/operators/locateBetweenOperator.js +1 -1
- package/geometry/operators/minimumBoundingCircleOperator.js +1 -1
- package/geometry/operators/multiPartToSinglePartOperator.js +1 -1
- package/geometry/operators/offsetOperator.js +1 -1
- package/geometry/operators/overlapsOperator.js +1 -1
- package/geometry/operators/polygonOverlayOperator.js +1 -1
- package/geometry/operators/polygonSlicerOperator.js +1 -1
- package/geometry/operators/projectOperator.js +1 -1
- package/geometry/operators/proximityOperator.js +1 -1
- package/geometry/operators/relateOperator.js +1 -1
- package/geometry/operators/reshapeOperator.js +1 -1
- package/geometry/operators/simplifyOperator.js +1 -1
- package/geometry/operators/singlePartToMultiPartOperator.js +1 -1
- package/geometry/operators/symmetricDifferenceOperator.js +1 -1
- package/geometry/operators/touchesOperator.js +1 -1
- package/geometry/operators/unionOperator.js +1 -1
- package/geometry/operators/withinOperator.js +1 -1
- package/interfaces.d.ts +231 -71
- package/layers/LinkChartLayer.js +1 -1
- package/layers/graphics/OptimizedFeature.js +1 -1
- package/layers/graphics/sources/geojson/geojson.js +1 -1
- package/layers/knowledgeGraph/supportUtils.js +1 -1
- package/layers/support/Sublayer.js +1 -1
- package/layers/support/VideoElement.js +1 -1
- package/layers/support/domainUtils.js +1 -1
- package/layers/support/fieldUtils.js +1 -1
- package/linkChart/OrganicLayoutSettings.js +1 -1
- package/package.json +1 -1
- package/portal/schemas/definitions.js +1 -1
- package/rest/knowledgeGraphService.js +1 -1
- package/rest/query/operations/pbfOptimizedFeatureSet.js +1 -1
- package/rest/support/fileFormat.js +1 -1
- package/support/revision.js +1 -1
- package/views/2d/engine/webgl/mesh/factories/ResourceProxy.js +1 -1
- package/views/2d/input/MapViewInputManager.js +1 -1
- package/views/2d/input/handlers/KeyRotate.js +1 -1
- package/views/2d/layers/FeatureLayerView2D.js +1 -1
- package/views/2d/layers/features/FeatureContainer.js +1 -1
- package/views/2d/layers/features/FeaturePipelineWorker.js +1 -1
- package/views/2d/layers/features/Processor.js +1 -1
- package/views/2d/layers/features/processor/AProcessorStrategy.js +1 -1
- package/views/2d/layers/features/processor/BinningStrategy.js +1 -1
- package/views/2d/layers/features/processor/ClusterStrategy.js +1 -1
- package/views/2d/layers/features/processor/FeatureUpdateStrategy.js +1 -1
- package/views/2d/layers/features/sources/FeatureSource.js +1 -1
- package/views/2d/layers/features/sources/strategies/ALoadStrategy.js +1 -1
- package/views/2d/layers/features/sources/strategies/chunks/ASourceChunk.js +1 -1
- package/views/2d/layers/features/sources/strategies/chunks/Overrides.js +5 -0
- package/views/2d/layers/features/sources/strategies/chunks/SourceChunkStore.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReaderJSON.js +1 -1
- package/views/2d/layers/support/DebouncedFeatureOverride.js +5 -0
- package/views/2d/layers/support/FeatureCommandQueue.js +1 -1
- package/views/3d/input/SceneInputManager.js +1 -1
- package/views/3d/input/handlers/KeyboardNavigation.js +1 -1
- package/views/3d/terrain/TileTexture.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
- package/views/3d/webgl-engine/collections/Component/RenderSubmitSystem.js +1 -1
- package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
- package/views/3d/webgl-engine/lib/TextureCompressionWorker.js +1 -1
- package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
- package/views/layers/FeatureLayerView.js +1 -1
- package/views/support/TextureCompressionHelper.js +1 -1
- package/views/webgl/Texture.js +1 -1
- package/webscene/Slide.js +1 -1
- package/webscene/SlideLegend.d.ts +4 -0
- package/webscene/SlideLegend.js +5 -0
- package/widgets/FeatureForm/FeatureFormViewModel.js +1 -1
- package/widgets/FeatureForm.js +1 -1
- package/widgets/FeatureTable/FieldColumn.js +1 -1
- package/widgets/Features/FeaturesViewModel.js +1 -1
- package/widgets/Features.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/adapters/sketch/DigitizationAdapter.js +1 -1
- package/widgets/OrientedImageryViewer/components/ImageOverlays.js +1 -1
- package/widgets/OrientedImageryViewer/digitizationUtils.js +1 -1
- package/widgets/OrientedImageryViewer.js +1 -1
- package/widgets/Popup.js +1 -1
- package/widgets/Print/PrintViewModel.js +1 -1
- package/widgets/Print/TemplateOptions.js +1 -1
- package/widgets/Print.js +1 -1
- package/widgets/ShadowCast.js +1 -1
- package/widgets/support/forms/formUtils.js +1 -1
- package/assets/esri/core/workers/chunks/0e9bd990a8d0691fb9c8.js +0 -1
- package/assets/esri/core/workers/chunks/27933d6ffeebb5c13ab7.js +0 -1
- package/assets/esri/core/workers/chunks/3ef5002b21b1a5b97e11.js +0 -1
- package/assets/esri/core/workers/chunks/48266c87363e7dcaefb3.js +0 -1
- package/assets/esri/core/workers/chunks/5786b190ad3e2d933245.js +0 -1
- package/assets/esri/core/workers/chunks/668679baf519ada9ae28.js +0 -1
- package/assets/esri/core/workers/chunks/737f381f2cfeddb96d15.js +0 -1
- package/assets/esri/core/workers/chunks/84d26c6c805f5855ffd3.js +0 -1
- package/assets/esri/core/workers/chunks/8f2f2d497b875e2b4139.js +0 -1
- package/assets/esri/core/workers/chunks/a4c8b773283ea8f0e256.js +0 -1
- package/assets/esri/core/workers/chunks/a68068b3151a14c4a0ad.js +0 -1
- package/assets/esri/core/workers/chunks/ad99308fb9678cdce917.js +0 -1
- package/assets/esri/core/workers/chunks/cc427e8f1b17744b6ea4.js +0 -1
- package/assets/esri/core/workers/chunks/dd4bd96dfb7f9921b774.js +0 -1
- package/assets/esri/core/workers/chunks/e1a03231e24293e66418.js +0 -1
- package/assets/esri/core/workers/chunks/fce1158755f959730602.js +0 -1
- package/views/2d/layers/features/sources/strategies/chunks/OverrideChunk.js +0 -5
- package/views/3d/input/handlers/SingleKey.js +0 -5
- package/views/3d/input/handlers/SingleKeyResetHeading.js +0 -5
- package/views/3d/input/handlers/SingleKeyResetTilt.js +0 -5
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5613],{22429:(e,a,t)=>{t.d(a,{v:()=>n});var r=t(24183);class n{constructor(){this._serviceMetadatas=new Map,this._itemDatas=new Map}async fetchServiceMetadata(e,a){const t=this._serviceMetadatas.get(e);if(t)return t;const n=await(0,r.V)(e,a);return this._serviceMetadatas.set(e,n),n}async fetchItemData(e){const{id:a}=e;if(!a)return null;const{_itemDatas:t}=this;if(t.has(a))return t.get(a);const r=await e.fetchData();return t.set(a,r),r}async fetchCustomParameters(e,a){const t=await this.fetchItemData(e);return t&&"object"==typeof t&&(a?a(t):t.customParameters)||null}}},92009:(e,a,t)=>{t.d(a,{L:()=>u});var r=t(70333),n=t(78888),s=t(49186),i=t(74887),l=t(60694),c=t(20655),o=t(80812);async function u(e,a){const t=(0,l.qg)(e);if(!t)throw new s.A("invalid-url","Invalid scene service url");const u={...a,sceneServerUrl:t.url.path,layerId:t.sublayer??void 0};if(u.sceneLayerItem??=await async function(e){const a=(await y(e)).serviceItemId;if(!a)return null;const t=new o.default({id:a,apiKey:e.apiKey}),s=await async function(e){const a=r.id?.findServerInfo(e.sceneServerUrl);if(a?.owningSystemUrl)return a.owningSystemUrl;const t=e.sceneServerUrl.replace(/(.*\/rest)\/.*/i,"$1")+"/info";try{const a=(await(0,n.A)(t,{query:{f:"json"},responseType:"json",signal:e.signal})).data.owningSystemUrl;if(a)return a}catch(e){(0,i.QP)(e)}return null}(e);null!=s&&(t.portal=new c.A({url:s}));try{return await t.load({signal:e.signal})}catch(e){return(0,i.QP)(e),null}}(u),null==u.sceneLayerItem)return d(u.sceneServerUrl.replace("/SceneServer","/FeatureServer"),u);const f=await async function({sceneLayerItem:e,signal:a}){if(!e)return null;try{const t=(await e.fetchRelatedItems({relationshipType:"Service2Service",direction:"reverse"},{signal:a})).find((e=>"Feature Service"===e.type))||null;if(!t)return null;const r=new o.default({portal:t.portal,id:t.id});return await r.load(),r}catch(e){return(0,i.QP)(e),null}}(u);if(!f?.url)throw new s.A("related-service-not-found","Could not find feature service through portal item relationship");u.featureServiceItem=f;const m=await d(f.url,u);return m.portalItem=f,m}async function y(e){if(e.rootDocument)return e.rootDocument;const a={query:{f:"json",...e.customParameters,token:e.apiKey},responseType:"json",signal:e.signal};try{const t=await(0,n.A)(e.sceneServerUrl,a);e.rootDocument=t.data}catch{e.rootDocument={}}return e.rootDocument}async function d(e,a){const t=(0,l.qg)(e);if(!t)throw new s.A("invalid-feature-service-url","Invalid feature service url");const r=t.url.path,i=a.layerId;if(null==i)return{serverUrl:r};const c=y(a),o=a.featureServiceItem?await a.featureServiceItem.fetchData("json"):null,u=(o?.layers?.[0]||o?.tables?.[0])?.customParameters,d=e=>{const t={query:{f:"json",...u},responseType:"json",authMode:e,signal:a.signal};return(0,n.A)(r,t)},f=d("anonymous").catch((()=>d("no-prompt"))),[m,w]=await Promise.all([f,c]),h=w?.layers,p=m.data&&m.data.layers;if(!Array.isArray(p))throw new Error("expected layers array");if(Array.isArray(h)){for(let e=0;e<Math.min(h.length,p.length);e++)if(h[e].id===i)return{serverUrl:r,layerId:p[e].id}}else if(null!=i&&i<p.length)return{serverUrl:r,layerId:p[i].id};throw new Error("could not find matching associated sublayer")}},23154:(e,a,t)=>{t.d(a,{K:()=>d,Q:()=>s});var r=t(24183);const n=new Set(["Catalog Layer","Feature Layer","Oriented Imagery Layer"]);async function s(e,a){const{loadContext:t,...n}=a||{},s=t?await t.fetchServiceMetadata(e,n):await(0,r.V)(e,n);y(s),c(s);const i={serviceJSON:s};if((s.currentVersion??0)<10.5)return i;const l=`${e}/layers`,o=t?await t.fetchServiceMetadata(l,n):await(0,r.V)(l,n);return y(o),c(o),i.layersJSON={layers:o.layers,tables:o.tables},i}function i(e){const{type:a}=e;return!!a&&n.has(a)}function l(e){return"Table"===e.type}function c(e){e.layers=e.layers?.filter(i),e.tables=e.tables?.filter(l)}function o(e){e.type||="Feature Layer"}function u(e){e.type||="Table"}function y(e){e.layers?.forEach(o),e.tables?.forEach(u)}function d(e){switch(e){case"Feature Layer":case"Table":return"FeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Catalog Layer":return"CatalogLayer"}return"FeatureLayer"}},4513:(e,a,t)=>{t.d(a,{S:()=>r});const r={BingMapsLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(5178)]).then(t.bind(t,17029))).default,BuildingSceneLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(3874),t.e(1147),t.e(587),t.e(13),t.e(6311),t.e(5494),t.e(4796),t.e(3029),t.e(4111),t.e(777),t.e(3600),t.e(690),t.e(2944),t.e(9868),t.e(4654),t.e(6298),t.e(6676)]).then(t.bind(t,88303))).default,CSVLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(3874),t.e(1147),t.e(587),t.e(13),t.e(6311),t.e(5494),t.e(4796),t.e(3029),t.e(4111),t.e(777),t.e(3600),t.e(4727)]).then(t.bind(t,72256))).default,CatalogLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(3874),t.e(1147),t.e(587),t.e(13),t.e(6311),t.e(5494),t.e(4796),t.e(4111),t.e(777),t.e(893),t.e(2593),t.e(3334)]).then(t.bind(t,79003))).default,DimensionLayer:async()=>(await Promise.all([t.e(6131),t.e(1493)]).then(t.bind(t,71493))).default,ElevationLayer:async()=>(await Promise.all([t.e(6131),t.e(9186),t.e(8463)]).then(t.bind(t,68611))).default,FeatureLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(3874),t.e(1147),t.e(587),t.e(13),t.e(6311),t.e(5494),t.e(4796),t.e(3029),t.e(4111),t.e(777),t.e(3600),t.e(8928)]).then(t.bind(t,13600))).default,GeoJSONLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(3874),t.e(1147),t.e(587),t.e(13),t.e(6311),t.e(5494),t.e(4796),t.e(3029),t.e(6343)]).then(t.bind(t,17625))).default,GeoRSSLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(1147),t.e(587),t.e(3201)]).then(t.bind(t,63201))).default,GroupLayer:async()=>(await Promise.all([t.e(6131),t.e(5989),t.e(8256)]).then(t.bind(t,85989))).default,ImageryLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(3874),t.e(1147),t.e(587),t.e(13),t.e(6311),t.e(893),t.e(984),t.e(8301),t.e(8969)]).then(t.bind(t,87773))).default,ImageryTileLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(3874),t.e(1147),t.e(587),t.e(13),t.e(6311),t.e(984),t.e(6049),t.e(8301),t.e(8480),t.e(5943)]).then(t.bind(t,35943))).default,IntegratedMesh3DTilesLayer:async()=>(await Promise.all([t.e(6131),t.e(1528)]).then(t.bind(t,61528))).default,IntegratedMeshLayer:async()=>(await Promise.all([t.e(6131),t.e(6298),t.e(8003)]).then(t.bind(t,84453))).default,KMLLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(3874),t.e(1147),t.e(587),t.e(13),t.e(6311),t.e(5494),t.e(9465)]).then(t.bind(t,79465))).default,KnowledgeGraphLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(3874),t.e(1147),t.e(587),t.e(13),t.e(6311),t.e(5494),t.e(4796),t.e(3029),t.e(8368),t.e(7339),t.e(1402),t.e(3166),t.e(2083),t.e(8692)]).then(t.bind(t,28692))).default,LineOfSightLayer:async()=>(await Promise.all([t.e(6131),t.e(690),t.e(4374),t.e(9695)]).then(t.bind(t,49695))).default,LinkChartLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(3874),t.e(1147),t.e(587),t.e(13),t.e(6311),t.e(5494),t.e(4796),t.e(3029),t.e(8368),t.e(7339),t.e(1402),t.e(3166),t.e(2083),t.e(3812)]).then(t.bind(t,73812))).default,MapImageLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(3874),t.e(1147),t.e(587),t.e(13),t.e(6311),t.e(5494),t.e(4796),t.e(4111),t.e(893),t.e(4612),t.e(7656)]).then(t.bind(t,7656))).default,MapNotesLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(3874),t.e(1147),t.e(587),t.e(13),t.e(6311),t.e(5494),t.e(4796),t.e(3029),t.e(4111),t.e(777),t.e(3600),t.e(3166),t.e(2029)]).then(t.bind(t,96953))).default,MediaLayer:async()=>(await Promise.all([t.e(6131),t.e(183),t.e(7899)]).then(t.bind(t,87899))).default,OGCFeatureLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(3874),t.e(1147),t.e(587),t.e(13),t.e(6311),t.e(5494),t.e(4796),t.e(3029),t.e(821),t.e(1469)]).then(t.bind(t,87152))).default,OpenStreetMapLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(4405),t.e(349)]).then(t.bind(t,40349))).default,OrientedImageryLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(3874),t.e(1147),t.e(587),t.e(13),t.e(6311),t.e(5494),t.e(4796),t.e(3029),t.e(4111),t.e(777),t.e(3600),t.e(3618)]).then(t.bind(t,97927))).default,PointCloudLayer:async()=>(await Promise.all([t.e(6131),t.e(3874),t.e(7984),t.e(6742)]).then(t.bind(t,76742))).default,RouteLayer:async()=>(await Promise.all([t.e(6131),t.e(3874),t.e(1147),t.e(587),t.e(13),t.e(6311),t.e(5494),t.e(7550)]).then(t.bind(t,97550))).default,SceneLayer:async()=>(await Promise.all([t.e(6131),t.e(3874),t.e(1147),t.e(587),t.e(13),t.e(6311),t.e(5494),t.e(4796),t.e(690),t.e(2944),t.e(9868),t.e(4654),t.e(6298),t.e(2153)]).then(t.bind(t,13899))).default,StreamLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(3874),t.e(1147),t.e(587),t.e(13),t.e(6311),t.e(5494),t.e(4796),t.e(3029),t.e(9035)]).then(t.bind(t,60683))).default,SubtypeGroupLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(3874),t.e(1147),t.e(587),t.e(13),t.e(6311),t.e(5494),t.e(4796),t.e(4111),t.e(777),t.e(8958)]).then(t.bind(t,59929))).default,TileLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(3874),t.e(1147),t.e(587),t.e(13),t.e(6311),t.e(5494),t.e(4796),t.e(4111),t.e(893),t.e(9186),t.e(4612),t.e(1756)]).then(t.bind(t,71756))).default,UnknownLayer:async()=>(await t.e(146).then(t.bind(t,146))).default,UnsupportedLayer:async()=>(await t.e(5165).then(t.bind(t,45165))).default,VectorTileLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(9186),t.e(9949),t.e(5013),t.e(8153)]).then(t.bind(t,48757))).default,VideoLayer:async()=>(await Promise.all([t.e(183),t.e(1689)]).then(t.bind(t,1689))).default,ViewshedLayer:async()=>(await Promise.all([t.e(6131),t.e(690),t.e(4374),t.e(6650)]).then(t.bind(t,96650))).default,VoxelLayer:async()=>(await Promise.all([t.e(6131),t.e(3874),t.e(6183)]).then(t.bind(t,16183))).default,WCSLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(3874),t.e(1147),t.e(587),t.e(13),t.e(6311),t.e(984),t.e(6049),t.e(8301),t.e(8480),t.e(9547)]).then(t.bind(t,19547))).default,WFSLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(3874),t.e(1147),t.e(587),t.e(13),t.e(6311),t.e(5494),t.e(4796),t.e(3029),t.e(3582)]).then(t.bind(t,16350))).default,WMSLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(3874),t.e(1147),t.e(587),t.e(1904)]).then(t.bind(t,51904))).default,WMTSLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(4405),t.e(309)]).then(t.bind(t,20309))).default,WebTileLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(4405)]).then(t.bind(t,47314))).default}},66964:(e,a,t)=>{t.d(a,{Ju:()=>o,K8:()=>d,XH:()=>u,_r:()=>s,bO:()=>i,iK:()=>y,nu:()=>f,pJ:()=>l,rc:()=>c});var r=t(92009),n=t(23154);function s(e){const a={id:e.id,name:e.name},t=(0,n.K)(e.type);return"FeatureLayer"!==t&&(a.layerType=t),a}async function i(e,a,t){if(null==e?.layers||null==e?.tables){const r=await t.fetchServiceMetadata(a,{customParameters:l(e)?.customParameters});(e=e||{}).layers=e.layers||r?.layers?.map(s),e.tables=e.tables||r?.tables?.map(s)}return e}function l(e){if(!e)return null;const{layers:a,tables:t}=e;return a?.length?a[0]:t?.length?t[0]:null}function c(e,a){return null==a?null:[...e.layers||[],...e.tables||[]].find((e=>e.id===a))}function o(e,a){return[...e.layers||[],...e.tables||[]].filter((({layerType:e})=>e?e===a:"ArcGISFeatureLayer"===a))}function u(e){return(e?.layers?.length??0)+(e?.tables?.length??0)}function y(e){switch(e){case"catalog":return"CatalogLayer";case"feature":return"ArcGISFeatureLayer";case"oriented-imagery":return"OrientedImageryLayer";case"subtype-group":return"SubtypeGroupLayer"}return null}function d(e){switch(e){case"CatalogLayer":return"CatalogLayer";case"OrientedImageryLayer":return"OrientedImageryLayer";case"SubtypeGroupLayer":return"SubtypeGroupLayer"}return"FeatureLayer"}async function f(e,a,t){if(!e?.url)return a??{};if(a??={},!a.layers){const r=await t.fetchServiceMetadata(e.url);a.layers=r.layers?.map(s)}const{serverUrl:n,portalItem:i}=await(0,r.L)(e.url,{sceneLayerItem:e,customParameters:l(a)?.customParameters}).catch((()=>({serverUrl:null,portalItem:null})));if(null==n)return a.tables=[],a;if(!a.tables&&i){const e=await i.fetchData().catch((()=>null));if(e?.tables)a.tables=e.tables.map(s);else{const r=await t.fetchServiceMetadata(n,{customParameters:l(e)?.customParameters}).catch((()=>null));a.tables=r?.tables?.map(s)}}if(a.tables)for(const e of a.tables)e.url=`${n}/${e.id}`;return a}},45613:(e,a,t)=>{t.d(a,{fromItem:()=>d,n:()=>f});var r=t(49186),n=t(92009),s=t(23154),i=t(22429),l=t(83531),c=t(4513),o=t(80812),u=t(66964),y=t(10407);async function d(e){let{portalItem:a}=e;!a||a instanceof o.default||(a=new o.default(a));const t=await async function(e){await e.load();const a=new i.v;return async function(e){const a=e.className,t=c.S[a];return{constructor:await t(),properties:e.properties}}(await f(e,a))}(a);return new(0,t.constructor)({portalItem:a,...t.properties})}async function f(e,a){switch(e.type){case"3DTiles Service":return{className:"IntegratedMesh3DTilesLayer"};case"CSV":return{className:"CSVLayer"};case"Feature Collection":return async function(e){await e.load();const a=(0,y.Y)(e,"Map Notes"),t=(0,y.Y)(e,"Markup");if(a||t)return{className:"MapNotesLayer"};if((0,y.Y)(e,"Route Layer"))return{className:"RouteLayer"};const r=await e.fetchData();return 1===(0,u.XH)(r)?{className:"FeatureLayer"}:{className:"GroupLayer"}}(e);case"Feature Service":return async function(e,a){const t=await m(e,a);if("object"==typeof t){const{sourceJSON:e,className:a}=t,r={sourceJSON:e};return null!=t.id&&(r.layerId=t.id),{className:a||"FeatureLayer",properties:r}}return{className:"GroupLayer"}}(e,a);case"Feed":case"Stream Service":return{className:"StreamLayer"};case"GeoJson":return{className:"GeoJSONLayer"};case"Group Layer":return{className:"GroupLayer"};case"Image Service":return async function(e,a){await e.load();const t=e.typeKeywords?.map((e=>e.toLowerCase()))??[];if(t.includes("elevation 3d layer"))return{className:"ElevationLayer"};if(t.includes("tiled imagery"))return{className:"ImageryTileLayer"};const r=await a.fetchItemData(e),n=r?.layerType;if("ArcGISTiledImageServiceLayer"===n)return{className:"ImageryTileLayer"};if("ArcGISImageServiceLayer"===n)return{className:"ImageryLayer"};const s=await a.fetchServiceMetadata(e.url,{customParameters:await a.fetchCustomParameters(e)}),i=s.cacheType?.toLowerCase(),l=s.capabilities?.toLowerCase().includes("tilesonly"),c=s.tileInfo?.format?.toLowerCase()??"",o=null==i&&["jpg","jpeg","png","png8","png24","png32","mixed"].includes(c);return"map"===i||o||l?{className:"ImageryTileLayer"}:{className:"ImageryLayer"}}(e,a);case"KML":return{className:"KMLLayer"};case"Knowledge Graph Layer":return{className:"KnowledgeGraphLayer"};case"Map Service":return async function(e,a){return await async function(e,a){const{tileInfo:t}=await a.fetchServiceMetadata(e.url,{customParameters:await a.fetchCustomParameters(e)});return t}(e,a)?{className:"TileLayer"}:{className:"MapImageLayer"}}(e,a);case"Media Layer":return{className:"MediaLayer"};case"Scene Service":return async function(e,a){const t=await m(e,a,(async()=>{try{if(!e.url)return[];const{serverUrl:t}=await(0,n.L)(e.url,{sceneLayerItem:e}),r=await a.fetchServiceMetadata(t);return r?.tables??[]}catch{return[]}}));if("object"==typeof t){const r={};let n;if(null!=t.id?(r.layerId=t.id,n=`${e.url}/layers/${t.id}`):n=e.url,e.typeKeywords?.length)for(const a of Object.keys(l.XX))if(e.typeKeywords.includes(a))return{className:l.XX[a]};const s=await a.fetchServiceMetadata(n,{customParameters:await a.fetchCustomParameters(e,(e=>(0,u.pJ)(e)?.customParameters))});return{className:l.XX[s?.layerType]||"SceneLayer",properties:r}}if(!1===t){const t=await a.fetchServiceMetadata(e.url);if("Voxel"===t?.layerType)return{className:"VoxelLayer"}}return{className:"GroupLayer"}}(e,a);case"Vector Tile Service":return{className:"VectorTileLayer"};case"WCS":return{className:"WCSLayer"};case"WFS":return{className:"WFSLayer"};case"WMS":return{className:"WMSLayer"};case"WMTS":return{className:"WMTSLayer"};default:throw new r.A("portal:unknown-item-type","Unknown item type '${type}'",{type:e.type})}}async function m(e,a,t){const{url:r,type:n}=e,i="Feature Service"===n;if(!r)return{};if(/\/\d+$/.test(r)){if(i){const t=await a.fetchServiceMetadata(r,{customParameters:await a.fetchCustomParameters(e,(e=>(0,u.pJ)(e)?.customParameters))});return{id:t.id,className:(0,s.K)(t.type),sourceJSON:t}}return{}}await e.load();let l=await a.fetchItemData(e);if(i){const e=await(0,u.bO)(l,r,a),t=w(e);if("object"==typeof t){const a=(0,u.rc)(e,t.id);t.className=(0,u.K8)(a?.layerType)}return t}if("Scene Service"===n&&(l=await(0,u.nu)(e,l,a)),(0,u.XH)(l)>0)return w(l);const c=await a.fetchServiceMetadata(r);return t&&(c.tables=await t()),w(c)}function w(e){return 1===(0,u.XH)(e)&&{id:(0,u.pJ)(e)?.id}}},24183:(e,a,t)=>{t.d(a,{V:()=>n});var r=t(78888);async function n(e,a){const{data:t}=await(0,r.A)(e,{responseType:"json",query:{f:"json",...a?.customParameters,token:a?.apiKey}});return t}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1689],{89317:(e,t,r)=>{r.d(t,{K:()=>o});const o=["operational-layers","basemap","ground"]},1689:(e,t,r)=>{r.r(t),r.d(t,{default:()=>D});var o=r(90237),s=(r(59456),r(78888)),n=r(49186),i=r(34727),p=r(92071),a=r(36708),l=r(10107),u=(r(44208),r(53966),r(87811),r(36005)),d=r(40608),c=r(82799),y=r(16930),m=r(4146),h=r(63074),f=r(69208),v=r(25036),g=r(60694),w=r(10873),b=r(69540),_=r(25482);let M=class extends(b.A.ClonableMixin(_.A)){constructor(e){super(e),this.framerate=null,this.containerFormat=null,this.gop=null,this.aspectRatio=null,this.klv=null}};(0,o._)([(0,l.MZ)({type:String})],M.prototype,"framerate",void 0),(0,o._)([(0,l.MZ)({type:String})],M.prototype,"containerFormat",void 0),(0,o._)([(0,l.MZ)({type:Number})],M.prototype,"gop",void 0),(0,o._)([(0,l.MZ)({type:String})],M.prototype,"aspectRatio",void 0),(0,o._)([(0,l.MZ)({type:Object})],M.prototype,"klv",void 0),M=(0,o._)([(0,d.$)("esri.layers.support.PlaybackInfo")],M);const C=M;var x=r(22453),S=r(64422);let Z=class extends(b.A.ClonableMixin(_.A)){constructor(e){super(e),this.frame=null,this.frameCenter=null,this.frameOutline=null,this.lineOfSight=null,this.sensorLocation=null,this.sensorTrail=null}};(0,o._)([(0,l.MZ)({type:Boolean})],Z.prototype,"frame",void 0),(0,o._)([(0,l.MZ)({type:Boolean})],Z.prototype,"frameCenter",void 0),(0,o._)([(0,l.MZ)({type:Boolean})],Z.prototype,"frameOutline",void 0),(0,o._)([(0,l.MZ)({type:Boolean})],Z.prototype,"lineOfSight",void 0),(0,o._)([(0,l.MZ)({type:Boolean})],Z.prototype,"sensorLocation",void 0),(0,o._)([(0,l.MZ)({type:Boolean})],Z.prototype,"sensorTrail",void 0),Z=(0,o._)([(0,d.$)("esri.layers.support.TelemetryDisplay")],Z);const A=Z;var T=r(69622),E=r(43937),O=r(86738);let I=class extends T.A{constructor(){super(...arguments),this.sourcePoint=null,this.mapPoint=null}};(0,o._)([(0,l.MZ)()],I.prototype,"sourcePoint",void 0),(0,o._)([(0,l.MZ)({type:O.A})],I.prototype,"mapPoint",void 0),I=(0,o._)([(0,d.$)("esri.layers.support.VideoFrame.ControlPoint")],I);let F=class extends(b.A.ClonableMixin(_.A)){constructor(e){super(e),this.frame=null,this.controlPoints=null}readControlPoints(e){return e.map((e=>({sourcePoint:{x:e.frameX,y:e.frameY},mapPoint:new O.A(e.point)})))}writeControlPoints(e,t){null!=e&&function(e){return null!=e?.sourcePoint&&null!=e.mapPoint}(e[0])&&(t.controlPoints=e.map((e=>{const t=e.sourcePoint,r=e.mapPoint;return{frameX:t.x,frameY:t.y,point:r.toJSON()}})))}};(0,o._)([(0,l.MZ)({type:String})],F.prototype,"frame",void 0),(0,o._)([(0,l.MZ)({type:[I],json:{write:{allowNull:!1,isRequired:!0}}})],F.prototype,"controlPoints",void 0),(0,o._)([(0,u.w)("controlPoints")],F.prototype,"readControlPoints",null),(0,o._)([(0,E.K)("controlPoints")],F.prototype,"writeControlPoints",null),F=(0,o._)([(0,d.$)("esri.layers.support.VideoFrame")],F);const j=F;var R=r(3930),P=r(48457),Q=r(5443);let B=class extends((0,h.dM)((0,v.j)((0,p.P)((0,f.d)(m.A))))){constructor(e){super(e),this._trailPoints=[],this.capabilities=null,this.connectionInfo=null,this.controller=new R.A,this.copyright=null,this.created=null,this.description=null,this.elevationSource=null,this.frame=null,this.frameCount=null,this.fullExtent=null,this.initialExtent=null,this.layerId=null,this.playbackInfo=null,this.posterUrl=null,this.qualities=null,this.serviceItemId=null,this.sourceJSON=null,this.sourceQuality=null,this.sourceType=null,this.spatialReference=y.A.WGS84,this.telemetryDisplay=null,this.title=null,this.type="video",this.url=null,this.videoLayersInfo=null,this.videoTimeExtent=null}initialize(){this.telemetryDisplay=new A({frame:!1,frameCenter:!1,frameOutline:!0,lineOfSight:!0,sensorLocation:!0,sensorTrail:!0}),this.addHandles([(0,a.wB)((()=>this.metadata),(()=>{this.notifyChange("telemetry"),this.notifyChange("groundControlPoints"),this.notifyChange("frameHorizonPoints")})),(0,a.wB)((()=>this.telemetry?.sensorLocation),(e=>this._setSensorTrail(e)),a.Vh)])}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this._fetchService(t)),Promise.resolve(this)}get buffered(){return this.controller.buffered}readCapabilitiesFromService(e,t){return(0,x.d)(t)}readConnectionInfo(e,t){const r=Object.values(t.connectionUrl);return r?.length&&(this.controller.playerUrl=r[0]),t.connectionUrl}get currentTime(){return this.controller.currentTime}get duration(){return this.controller.duration}get ended(){return this.controller.ended}get frameHorizonPoints(){return(0,P.SC)(this.metadata)}get groundControlPoints(){return(0,P.I0)(this.metadata)}get loop(){return this.controller.loop}set loop(e){this.controller.loop=e}get metadata(){return this.controller?.currentMetadata}get mimeType(){return this.controller?.mimeType}get muted(){return this.controller.muted}set muted(e){this.controller.muted=e}get playbackRate(){return this.controller.rate}set playbackRate(e){this.controller.rate=e}get playerUrl(){return this.controller.playerUrl}get playing(){return this.controller.playing}get state(){return this.controller.state}get telemetry(){return(0,P.YI)(this.metadata)}get videoElement(){return this.controller?.element}get videoHeight(){return this.controller?.videoHeight}readLayerInfosFromService(e,t){return(0,P.Yv)(t)}get videoWidth(){return this.controller?.videoWidth}get waiting(){return this.controller.waiting}play(){this.controller.play()}pause(){this.controller.pause()}reset(){this.controller.reset()}setCurrentTime(e){if(!this.duration)return;const t=(0,i.qE)(e,0,this.duration);this.controller.setCurrentTime(t)}toGround(e,t){return this.controller?.sensorModel?.metadataSupportsTransforms?this.controller.sensorModel.transformImageToGeo(e,t):null}toVideo(e){if(!this.controller?.sensorModel?.metadataSupportsTransforms)return null;const t=this.controller.sensorModel.transformGeoToImage(e.x,e.y,e.z);return{x:t[0],y:t[1]}}async _fetchService(e){if(this.sourceJSON)return void this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl});const t=(0,g.qg)(this.parsedUrl?.path);if(null==t)throw new n.A("arcgis-layers:url-mismatch","The url is not a valid arcgis resource");let r=null;const{data:o,ssl:i}=await(0,s.A)(t.url.path,{query:{f:"json",...this.parsedUrl.query,...this.customParameters},signal:e}),p=o;if(this.url=t.url.path,i&&(this.url=this.url.replace(/^http:/i,"https:")),!p?.currentVersion)return p.currentVersion="11.2",this.sourceJSON=p,void this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl});let a=t?.sublayer;if(null==a&&p.layers?.length&&(a=p.layers[0].id),null==a)throw new n.A("arcgis-layers:url-mismatch","The url is not a valid arcgis resource");this.url=`${t.url.path}/${a}`,r=await(0,s.A)(this.url,{query:{f:"json",...this.customParameters},signal:e});const l={...p,...r.data};this.sourceJSON=l,this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl})}_setSensorTrail(e){if(!e)return;const t=(0,P.yQ)(e,this._trailPoints);this._trailPoints=[...t];const r=this._trailPoints.map((e=>e.toArray())),o=new c.A({hasZ:e.hasZ,paths:[r]});this.telemetry.sensorTrail=o.clone()}};(0,o._)([(0,l.MZ)({readOnly:!0})],B.prototype,"buffered",null),(0,o._)([(0,l.MZ)({readOnly:!0,json:{read:!1}})],B.prototype,"capabilities",void 0),(0,o._)([(0,u.w)("service","capabilities",["supportsAppend","supportsCoverageQuery","supportsExportClip","supportsExportFrameset","supportsMensuration","supportsUpdate"])],B.prototype,"readCapabilitiesFromService",null),(0,o._)([(0,l.MZ)({readOnly:!0})],B.prototype,"connectionInfo",void 0),(0,o._)([(0,u.w)("connectionInfo",["connectionUrl"])],B.prototype,"readConnectionInfo",null),(0,o._)([(0,l.MZ)()],B.prototype,"controller",void 0),(0,o._)([(0,l.MZ)({type:String})],B.prototype,"copyright",void 0),(0,o._)([(0,l.MZ)({readOnly:!0,type:Date})],B.prototype,"created",void 0),(0,o._)([(0,l.MZ)({type:Number})],B.prototype,"currentTime",null),(0,o._)([(0,l.MZ)({type:String})],B.prototype,"description",void 0),(0,o._)([(0,l.MZ)({type:Number})],B.prototype,"duration",null),(0,o._)([(0,l.MZ)({readOnly:!0})],B.prototype,"elevationSource",void 0),(0,o._)([(0,l.MZ)({type:Boolean})],B.prototype,"ended",null),(0,o._)([(0,l.MZ)({type:j})],B.prototype,"frame",void 0),(0,o._)([(0,l.MZ)({readOnly:!0,type:Number})],B.prototype,"frameCount",void 0),(0,o._)([(0,l.MZ)({type:Q.A})],B.prototype,"fullExtent",void 0),(0,o._)([(0,l.MZ)({readOnly:!0})],B.prototype,"frameHorizonPoints",null),(0,o._)([(0,l.MZ)({readOnly:!0})],B.prototype,"groundControlPoints",null),(0,o._)([(0,l.MZ)({type:Q.A})],B.prototype,"initialExtent",void 0),(0,o._)([(0,l.MZ)({readOnly:!0,json:{read:{source:"id"}}})],B.prototype,"layerId",void 0),(0,o._)([(0,l.MZ)({type:Boolean})],B.prototype,"loop",null),(0,o._)([(0,l.MZ)({readOnly:!0})],B.prototype,"metadata",null),(0,o._)([(0,l.MZ)({readOnly:!0})],B.prototype,"mimeType",null),(0,o._)([(0,l.MZ)({type:Boolean})],B.prototype,"muted",null),(0,o._)([(0,l.MZ)({type:C})],B.prototype,"playbackInfo",void 0),(0,o._)([(0,l.MZ)({type:Number})],B.prototype,"playbackRate",null),(0,o._)([(0,l.MZ)({type:String})],B.prototype,"playerUrl",null),(0,o._)([(0,l.MZ)({readOnly:!0})],B.prototype,"playing",null),(0,o._)([(0,l.MZ)({readOnly:!0,json:{read:{source:"poster"}}})],B.prototype,"posterUrl",void 0),(0,o._)([(0,l.MZ)({readOnly:!0})],B.prototype,"qualities",void 0),(0,o._)([(0,l.MZ)({readOnly:!0})],B.prototype,"serviceItemId",void 0),(0,o._)([(0,l.MZ)()],B.prototype,"sourceJSON",void 0),(0,o._)([(0,l.MZ)({readOnly:!0})],B.prototype,"sourceQuality",void 0),(0,o._)([(0,l.MZ)({readOnly:!0,json:{name:"serviceType"}})],B.prototype,"sourceType",void 0),(0,o._)([(0,l.MZ)()],B.prototype,"spatialReference",void 0),(0,o._)([(0,l.MZ)({readOnly:!0,type:String})],B.prototype,"state",null),(0,o._)([(0,l.MZ)({readOnly:!0,type:S.A})],B.prototype,"telemetry",null),(0,o._)([(0,l.MZ)({type:A})],B.prototype,"telemetryDisplay",void 0),(0,o._)([(0,l.MZ)({readOnly:!1,json:{read:{source:"name"}}})],B.prototype,"title",void 0),(0,o._)([(0,l.MZ)({readOnly:!0})],B.prototype,"type",void 0),(0,o._)([(0,l.MZ)(w.OZ)],B.prototype,"url",void 0),(0,o._)([(0,l.MZ)({readOnly:!0})],B.prototype,"videoElement",null),(0,o._)([(0,l.MZ)({readOnly:!0})],B.prototype,"videoHeight",null),(0,o._)([(0,l.MZ)({readOnly:!0,json:{read:!1}})],B.prototype,"videoLayersInfo",void 0),(0,o._)([(0,u.w)("service","videoLayersInfo",["id","name","poster","serviceType","type"])],B.prototype,"readLayerInfosFromService",null),(0,o._)([(0,l.MZ)({readOnly:!0,nonNullable:!1,json:{read:{reader:P.nX,source:"time"}}})],B.prototype,"videoTimeExtent",void 0),(0,o._)([(0,l.MZ)({readOnly:!0})],B.prototype,"videoWidth",null),(0,o._)([(0,l.MZ)({readOnly:!0})],B.prototype,"waiting",null),B=(0,o._)([(0,d.$)("esri.layers.VideoLayer")],B);const D=B},69208:(e,t,r)=>{r.d(t,{d:()=>i});var o=r(90237),s=r(10107),n=(r(44208),r(53966),r(87811),r(40608));const i=e=>{let t=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,o._)([(0,s.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],t.prototype,"customParameters",void 0),t=(0,o._)([(0,n.$)("esri.layers.mixins.CustomParametersMixin")],t),t}},10873:(e,t,r)=>{r.d(t,{C1:()=>x,Fm:()=>b,Ih:()=>w,M6:()=>d,OZ:()=>y,PY:()=>u,Qo:()=>f,Yj:()=>h,fV:()=>m,hG:()=>C,hn:()=>M,id:()=>_,kF:()=>c,ke:()=>g,zQ:()=>S});var o=r(89317),s=r(5443),n=r(16930),i=r(97159),p=r(88625),a=r(85360),l=r(78553);const u={type:Boolean,value:!0,json:{origins:{service:{read:!1,write:!1},"web-map":{read:!1,write:!1}},name:"screenSizePerspective",write:{enabled:!0,layerContainerTypes:o.K}}},d={type:Boolean,value:!0,json:{name:"disablePopup",read:{reader:(e,t)=>!t.disablePopup},write:{enabled:!0,writer(e,t,r){t[r]=!e}}}},c={type:Boolean,value:!0,nonNullable:!0,json:{name:"showLabels",write:{enabled:!0,layerContainerTypes:o.K}}},y={type:String,json:{origins:{"portal-item":{write:!1}},write:{isRequired:!0,ignoreOrigin:!0,writer:i.w}}},m={type:Boolean,value:!0,nonNullable:!0,json:{origins:{service:{read:{enabled:!1}}},name:"showLegend",write:{enabled:!0,layerContainerTypes:o.K}}},h={value:null,type:p.A,json:{origins:{service:{name:"elevationInfo",write:!0}},name:"layerDefinition.elevationInfo",write:{enabled:!0,layerContainerTypes:o.K}}};function f(e){return{type:e,readOnly:!0,json:{origins:{service:{read:!0}},read:!1}}}const v={write:{enabled:!0,layerContainerTypes:o.K},read:!0},g={type:Number,json:{origins:{"web-document":v,"portal-item":{write:!0}}}},w={...g,json:{...g.json,origins:{"web-document":{...v,write:{enabled:!0,layerContainerTypes:o.K,target:{opacity:{type:Number},"layerDefinition.drawingInfo.transparency":{type:Number}}}}},read:{source:["layerDefinition.drawingInfo.transparency","drawingInfo.transparency"],reader:(e,t,r)=>r&&"service"!==r.origin||!t.drawingInfo||void 0===t.drawingInfo.transparency?t.layerDefinition?.drawingInfo&&void 0!==t.layerDefinition.drawingInfo.transparency?(0,l.D)(t.layerDefinition.drawingInfo.transparency):void 0:(0,l.D)(t.drawingInfo.transparency)}}},b={type:s.A,readOnly:!0,json:{origins:{service:{read:{source:["fullExtent","spatialReference"],reader:(e,t)=>{const r=s.A.fromJSON(e);return null!=t.spatialReference&&"object"==typeof t.spatialReference&&(r.spatialReference=n.A.fromJSON(t.spatialReference)),r}}}},read:!1}},_={type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}}}},M={type:Number,json:{origins:{service:{write:{enabled:!1}},"web-scene":{name:"layerDefinition.minScale",write:{enabled:!0,layerContainerTypes:o.K}}},name:"layerDefinition.minScale",write:!0}},C={type:Number,json:{origins:{service:{write:{enabled:!1}},"web-scene":{name:"layerDefinition.maxScale",write:{enabled:!0,layerContainerTypes:o.K}}},name:"layerDefinition.maxScale",write:!0}},x={json:{write:{ignoreOrigin:!0,layerContainerTypes:o.K},origins:{"web-map":{read:!1,write:!1}}}},S={type:a.A,json:{name:"attributeTableInfo",write:!0,origins:{"web-scene":{read:!1,write:!1}}}}},20557:(e,t,r)=>{r.d(t,{Fm:()=>a,Hz:()=>y,JQ:()=>c,JZ:()=>b,ND:()=>h,R_:()=>i,U9:()=>d,fu:()=>s,nr:()=>m,oF:()=>n,rq:()=>l,z$:()=>u});const o=[["binary","application/octet-stream","bin",""]];function s(e,t){return null!=v(t.name,e?.supportedFormats??[])}function n(e,t){if(!e)return!1;const r=l(t,e.supportedFormats??[]);return null!=r&&e.editFormats.includes(r)}function i(e,t){return g(function(e,t){const r=e.toLowerCase();return f(t).find((e=>w(e)===r))}(e,t))}function p(e,t){return g(v(e,t))}function a(e,t){return w(function(e,t){return f(t).find((t=>g(t)===e))}(e,t))}function l(e,t){return p(e.name,t)??i(e.type,t)}function u(e,t,r){return i(e,r)??p(t,r)}function d({supportedFormats:e}){return u("model/gltf-binary","glb",e)}function c(e){const t=d(e);return null!=t&&e.editFormats.includes(t)}function y(e){if(!e)return null;const t=d(e),r=function({supportedFormats:e}){return u("model/gltf+json","gltf",e)}(e);let o=null;for(const s of e.queryFormats){if(s===t)return s;s===r&&(o=s)}return o}function m({supportedFormats:e}){return u("application/esri3do-SR_world","wld",e)}function h({supportedFormats:e}){return u("application/esri3do-SR_prj","prj",e)}function f(e){return[...o,...e]}function v(e,t){const r=e.toLowerCase();return f(t).find((e=>function(e){return e?.[2].split(",").map((e=>e.toLowerCase()))??[]}(e).some((e=>r.endsWith(e)))))}function g(e){return e?.[0]}function w(e){return e?.[1].toLowerCase()}function b(e){return e.tables?.find((e=>"assetMaps"===e.role))}},22453:(e,t,r)=>{r.d(t,{S:()=>y,d:()=>x});var o=r(44208),s=r(60694),n=r(20557);function i(e,t,r){return!!a(e,t,r)}function p(e,t,r){return a(e,t,r)}function a(e,t,r){return e&&e.hasOwnProperty(t)?e[t]:r}const l={name:"supportsName",size:"supportsSize",contentType:"supportsContentType",keywords:"supportsKeywords",exifInfo:"supportsExifInfo"};function u(e){const t=e?.supportedSpatialAggregationStatistics?.map((e=>e.toLowerCase()));return{envelope:!!t?.includes("envelopeaggregate"),centroid:!!t?.includes("centroidaggregate"),convexHull:!!t?.includes("convexhullaggregate")}}function d(e,t){const r=e?.supportedOperationsWithCacheHint?.map((e=>e.toLowerCase()));return!!r?.includes(t.toLowerCase())}function c(e){const t=e?.supportedStatisticTypes?.map((e=>e.toLowerCase()));return{count:!!t?.includes("count"),sum:!!t?.includes("sum"),min:!!t?.includes("min"),max:!!t?.includes("max"),avg:!!t?.includes("avg"),var:!!t?.includes("var"),stddev:!!t?.includes("stddev"),percentileContinuous:!!t?.includes("percentile_continuous"),percentileDiscrete:!!t?.includes("percentile_discrete"),envelope:!!t?.includes("envelopeaggregate"),centroid:!!t?.includes("centroidaggregate"),convexHull:!!t?.includes("convexhullaggregate")}}function y(e,t){return{analytics:m(e),attachment:h(e),data:f(e),metadata:v(e),operations:g(e.capabilities,e,t),query:w(e,t),queryAttributeBins:M(e),queryRelated:b(e),queryTopFeatures:_(e),editing:C(e)}}function m(e){return{supportsCacheHint:d(e.advancedQueryCapabilities,"queryAnalytics")}}function h(e){const t=e.attachmentProperties,r={supportsName:!1,supportsSize:!1,supportsContentType:!1,supportsKeywords:!1,supportsExifInfo:!1,supportsCacheHint:d(e.advancedQueryCapabilities,"queryAttachments"),supportsResize:i(e,"supportsAttachmentsResizing",!1)};return t&&Array.isArray(t)&&t.forEach((e=>{const t=l[e.name];t&&(r[t]=!!e.isEnabled)})),r}function f(e){return{isVersioned:i(e,"isDataVersioned",!1),isBranchVersioned:i(e,"isDataBranchVersioned",!1),supportsAttachment:i(e,"hasAttachments",!1),supportsM:i(e,"hasM",!1),supportsZ:i(e,"hasZ",!1)}}function v(e){return{supportsAdvancedFieldProperties:i(e,"supportsFieldDescriptionProperty",!1)}}function g(e,t,r){const o=e?e.toLowerCase().split(",").map((e=>e.trim())):[],n=r?(0,s.qg)(r):null,p=o.includes(null!=n&&"MapServer"===n.serverType?"data":"query"),a=o.includes("editing")&&!t.datesInUnknownTimezone;let l=a&&o.includes("create"),u=a&&o.includes("delete"),d=a&&o.includes("update");const c=o.includes("changetracking"),y=t.advancedQueryCapabilities;return a&&!(l||u||d)&&(l=u=d=!0),{supportsCalculate:i(t,"supportsCalculate",!1),supportsTruncate:i(t,"supportsTruncate",!1),supportsValidateSql:i(t,"supportsValidateSql",!1),supportsAdd:l,supportsDelete:u,supportsEditing:a,supportsChangeTracking:c,supportsQuery:p,supportsQueryAnalytics:i(y,"supportsQueryAnalytic",!1),supportsQueryAttachments:i(y,"supportsQueryAttachments",!1),supportsQueryBins:i(y,"supportsQueryBins",!1),supportsQueryTopFeatures:i(y,"supportsTopFeaturesQuery",!1),supportsResizeAttachments:i(t,"supportsAttachmentsResizing",!1),supportsSync:o.includes("sync"),supportsUpdate:d,supportsExceedsLimitStatistics:i(t,"supportsExceedsLimitStatistics",!1),supportsAsyncConvert3D:i(t,"supportsAsyncConvert3D",!1)}}function w(e,t){const r=e.advancedQueryCapabilities,a=e.ownershipBasedAccessControlForFeatures,l=e.archivingInfo,c=e.currentVersion,y=t?.includes("MapServer"),m=!y||c>=(0,o.A)("mapserver-pbf-version-support"),h=(0,s.Wo)(t),f=new Set((e.supportedQueryFormats??"").split(",").map((e=>e.toLowerCase().trim())));return{maxRecordCount:p(e,"maxRecordCount",void 0),maxRecordCountFactor:p(e,"maxRecordCountFactor",void 0),standardMaxRecordCount:p(e,"standardMaxRecordCount",void 0),supportedSpatialAggregationStatistics:u(r),supportsCacheHint:i(r,"supportsQueryWithCacheHint",!1)||d(r,"query"),supportsCentroid:i(r,"supportsReturningGeometryCentroid",!1),supportsCompactGeometry:h,supportsCurrentUser:i(r,"supportsCurrentUserQueries",!1),supportsDefaultSpatialReference:i(r,"supportsDefaultSR",!1),supportsDisjointSpatialRelationship:i(r,"supportsDisjointSpatialRel",!1),supportsDistance:i(r,"supportsQueryWithDistance",!1),supportsDistinct:i(r,"supportsDistinct",e.supportsAdvancedQueries),supportsExtent:i(r,"supportsReturningQueryExtent",!1),supportsFormatPBF:m&&f.has("pbf"),supportsFullTextSearch:i(r,"supportsFullTextSearch",!1),supportsGeometryProperties:i(r,"supportsReturningGeometryProperties",!1),supportsHavingClause:i(r,"supportsHavingClause",!1),supportsHistoricMoment:i(l,"supportsQueryWithHistoricMoment",!1),supportsMaxRecordCountFactor:i(r,"supportsMaxRecordCountFactor",!1),supportsOrderBy:i(r,"supportsOrderBy",e.supportsAdvancedQueries),supportsPagination:i(r,"supportsPagination",!1),supportsPercentileStatistics:i(r,"supportsPercentileStatistics",!1),supportsQuantization:i(e,"supportsCoordinatesQuantization",!1),supportsQuantizationEditMode:i(e,"supportsQuantizationEditMode",!1),supportsQueryByAnonymous:i(a,"allowAnonymousToQuery",!0),supportsQueryByOthers:i(a,"allowOthersToQuery",!0),supportsQueryGeometry:i(e,"supportsReturningQueryGeometry",!1),supportsResultType:i(r,"supportsQueryWithResultType",!1),supportsReturnMesh:!!(0,n.Hz)(e.infoFor3D),supportsSpatialAggregationStatistics:i(r,"supportsSpatialAggregationStatistics",!1),supportsSqlExpression:i(r,"supportsSqlExpression",!1),supportsStandardizedQueriesOnly:i(e,"useStandardizedQueries",!1),supportsStatistics:i(r,"supportsStatistics",e.supportsStatistics),supportsTopFeaturesQuery:i(r,"supportsTopFeaturesQuery",!1),supportsTrueCurve:i(r,"supportsTrueCurve",!1),tileMaxRecordCount:p(e,"tileMaxRecordCount",void 0)}}function b(e){const t=e.advancedQueryCapabilities,r=i(t,"supportsAdvancedQueryRelated",!1);return{supportsPagination:i(t,"supportsQueryRelatedPagination",!1),supportsCount:r,supportsOrderBy:r,supportsCacheHint:d(t,"queryRelated")}}function _(e){return{supportsCacheHint:d(e.advancedQueryCapabilities,"queryTopFilter")}}function M(e){const t=e?e.queryBinsCapabilities:void 0;return{supportsDate:i(t,"supportsDateBin",!1),supportsFixedInterval:i(t,"supportsFixedIntervalBin",!1),supportsAutoInterval:i(t,"supportsAutoIntervalBin",!1),supportsFixedBoundaries:i(t,"supportsFixedBoundariesBin",!1),supportedStatistics:c(t)}}function C(e){const t=e.ownershipBasedAccessControlForFeatures,r=e?e.advancedEditingCapabilities:void 0;return{supportsGeometryUpdate:i(e,"allowGeometryUpdates",!0),supportsGlobalId:i(e,"supportsApplyEditsWithGlobalIds",!1),supportsReturnServiceEditsInSourceSpatialReference:i(e,"supportsReturnServiceEditsInSourceSR",!1),supportsRollbackOnFailure:i(e,"supportsRollbackOnFailureParameter",!1),supportsUpdateWithoutM:i(e,"allowUpdateWithoutMValues",!1),supportsUploadWithItemId:i(e,"supportsAttachmentsByUploadId",!1),supportsDeleteByAnonymous:i(t,"allowAnonymousToDelete",!0),supportsDeleteByOthers:i(t,"allowOthersToDelete",!0),supportsUpdateByAnonymous:i(t,"allowAnonymousToUpdate",!0),supportsUpdateByOthers:i(t,"allowOthersToUpdate",!0),supportsAsyncApplyEdits:i(r,"supportsAsyncApplyEdits",!1),zDefault:p(e,"zDefault",void 0)}}function x(e){return{operations:{supportsAppend:i(e,"supportsAppend",!1),supportsCoverageQuery:e?.playbackInfo?.klv["0601"]??!1,supportsExportClip:i(e,"supportsExportClip",!1),supportsExportFrameset:i(e,"supportsExportFrameset",!1),supportsMensuration:i(e,"supportsMensuration",!1),supportsUpdate:i(e,"supportsUpdate",!1)}}}},31756:(e,t,r)=>{r.d(t,{j:()=>n});var o=r(83047),s=r(79258);const n={unknown:1,inches:(0,o.oU)(1,"meters","inches"),feet:(0,o.oU)(1,"meters","feet"),"us-feet":(0,o.oU)(1,"meters","us-feet"),yards:(0,o.oU)(1,"meters","yards"),miles:(0,o.oU)(1,"meters","miles"),"nautical-miles":(0,o.oU)(1,"meters","nautical-miles"),millimeters:(0,o.oU)(1,"meters","millimeters"),centimeters:(0,o.oU)(1,"meters","centimeters"),decimeters:(0,o.oU)(1,"meters","decimeters"),meters:(0,o.oU)(1,"meters","meters"),kilometers:(0,o.oU)(1,"meters","kilometers"),"decimal-degrees":1/(0,o.vl)(1,"meters",s.$O.radius)}},88625:(e,t,r)=>{r.d(t,{A:()=>b});var o,s=r(90237),n=r(66552),i=r(25482),p=r(97768),a=r(10107),l=(r(44208),r(53966),r(87811),r(36005)),u=r(40608),d=r(43937),c=r(30524);let y=o=class extends i.A{constructor(e){super(e)}async collectRequiredFields(e,t){return(0,c.Dx)(e,t,this.expression)}clone(){return new o({expression:this.expression,title:this.title})}equals(e){return this.expression===e.expression&&this.title===e.title}};(0,s._)([(0,a.MZ)({type:String,json:{write:{isRequired:!0}}})],y.prototype,"expression",void 0),(0,s._)([(0,a.MZ)({type:String,json:{write:!0}})],y.prototype,"title",void 0),y=o=(0,s._)([(0,u.$)("esri.symbols.support.FeatureExpressionInfo")],y);const m=y;var h,f=r(16271);const v=(0,n.O)()({onTheGround:"on-the-ground",relativeToGround:"relative-to-ground",relativeToScene:"relative-to-scene",absoluteHeight:"absolute-height"}),g=new n.J({foot:"feet",kilometer:"kilometers",meter:"meters",mile:"miles","us-foot":"us-feet",yard:"yards"});let w=h=class extends i.A{constructor(e){super(e),this.offset=null}readFeatureExpressionInfo(e,t){return null!=e?e:t.featureExpression&&0===t.featureExpression.value?{expression:"0"}:void 0}writeFeatureExpressionInfo(e,t,r,o){t[r]=e.write({},o),"0"===e.expression&&(t.featureExpression={value:0})}get mode(){const{offset:e,featureExpressionInfo:t}=this;return this._isOverridden("mode")?this._get("mode"):null!=e||t?"relative-to-ground":"on-the-ground"}set mode(e){this._override("mode",e)}set unit(e){this._set("unit",e)}write(e,t){return this.offset||this.mode||this.featureExpressionInfo||this.unit?super.write(e,t):null}clone(){return new h({mode:this.mode,offset:this.offset,featureExpressionInfo:this.featureExpressionInfo?this.featureExpressionInfo.clone():void 0,unit:this.unit})}equals(e){return this.mode===e.mode&&this.offset===e.offset&&this.unit===e.unit&&(0,p.CM)(this.featureExpressionInfo,e.featureExpressionInfo)}};(0,s._)([(0,a.MZ)({type:m,json:{write:!0}})],w.prototype,"featureExpressionInfo",void 0),(0,s._)([(0,l.w)("featureExpressionInfo",["featureExpressionInfo","featureExpression"])],w.prototype,"readFeatureExpressionInfo",null),(0,s._)([(0,d.K)("featureExpressionInfo",{featureExpressionInfo:{type:m},"featureExpression.value":{type:[0]}})],w.prototype,"writeFeatureExpressionInfo",null),(0,s._)([(0,a.MZ)({type:v.apiValues,nonNullable:!0,json:{type:v.jsonValues,read:v.read,write:{writer:v.write,isRequired:!0}}})],w.prototype,"mode",null),(0,s._)([(0,a.MZ)({type:Number,json:{write:!0}})],w.prototype,"offset",void 0),(0,s._)([(0,a.MZ)({type:f.KQ,json:{type:String,read:g.read,write:g.write}})],w.prototype,"unit",null),w=h=(0,s._)([(0,u.$)("esri.symbols.support.ElevationInfo")],w);const b=w},16271:(e,t,r)=>{r.d(t,{Ao:()=>n,KQ:()=>i});var o=r(4576),s=r(31756);function n(e){return 1/(s.j[e]||1)}const i=function(){const e=Object.keys(s.j);return(0,o.TF)(e,"decimal-degrees"),e.sort(),e}()},85360:(e,t,r)=>{r.d(t,{A:()=>j});var o=r(90237),s=r(25482),n=r(4718),i=r(10107),p=r(79901),a=r(36005),l=r(40608),u=r(43937);r(44208),r(53966),r(87811);let d=class extends s.A{constructor(e){super(e),this.description=null,this.label=null,this.type=null}};(0,o._)([(0,i.MZ)({type:String,json:{write:!0}})],d.prototype,"description",void 0),(0,o._)([(0,i.MZ)({type:String,json:{write:!0}})],d.prototype,"label",void 0),(0,o._)([(0,i.MZ)()],d.prototype,"type",void 0),d=(0,o._)([(0,l.$)("esri.tables.elements.AttributeTableElement")],d);const c=d;var y;let m=y=class extends c{constructor(e){super(e),this.displayType="auto",this.type="attachment"}clone(){return new y({description:this.description,displayType:this.displayType,label:this.label})}};(0,o._)([(0,i.MZ)({type:["auto"],json:{write:!0}})],m.prototype,"displayType",void 0),(0,o._)([(0,i.MZ)({type:["attachment"],readOnly:!0,json:{read:!1,write:!0}})],m.prototype,"type",void 0),m=y=(0,o._)([(0,l.$)("esri.tables.elements.AttributeTableAttachmentElement")],m);const h=m;var f;let v=f=class extends c{constructor(e){super(e),this.fieldName=null,this.type="field"}clone(){return new f({description:this.description,fieldName:this.fieldName,label:this.label})}};(0,o._)([(0,i.MZ)({type:String,json:{write:!0}})],v.prototype,"fieldName",void 0),(0,o._)([(0,i.MZ)({type:String,json:{read:!1,write:!0}})],v.prototype,"type",void 0),v=f=(0,o._)([(0,l.$)("esri.tables.elements.AttributeTableFieldElement")],v);const g=v;var w,b=r(56507);let _=w=class extends c{constructor(e){super(e),this.relationshipId=null,this.type="relationship"}clone(){return new w({description:this.description,label:this.label,relationshipId:this.relationshipId})}};(0,o._)([(0,i.MZ)({type:Number,json:{write:!0}})],_.prototype,"relationshipId",void 0),(0,o._)([(0,i.MZ)({type:["relationship"],json:{read:!1,write:!0}})],_.prototype,"type",void 0),_=w=(0,o._)([(0,l.$)("esri.tables.elements.AttributeTableRelationshipElement")],_);const M=_;function C(e){return{typesWithGroup:{base:c,key:"type",typeMap:{attachment:h,field:g,group:e,relationship:M}},typesWithoutGroup:{base:c,key:"type",typeMap:{attachment:h,field:g,relationship:M}}}}function x(e,t,r=!0){if(!e)return null;const o=r?t.typesWithGroup.typeMap:t.typesWithoutGroup.typeMap;return e.filter((e=>o[e.type])).map((e=>o[e.type].fromJSON(e)))}function S(e,t,r=!0){if(!e)return null;const o=r?t.typesWithGroup.typeMap:t.typesWithoutGroup.typeMap;return e.filter((e=>o[e.type])).map((e=>e.toJSON()))}function Z(e,t,r=!0){return e?e.map((e=>(0,b.aq)(r?t.typesWithGroup:t.typesWithoutGroup,e))):null}var A;let T=A=class extends c{constructor(e){super(e),this.elements=null,this.type="group"}castElements(e){return Z(e,E,!1)}readElements(e,t){return x(t.attributeTableElements,E,!1)}writeElements(e,t){t.attributeTableElements=S(e,E,!1)}clone(){return new A({description:this.description,elements:(0,n.o8)(this.elements),label:this.label})}};(0,o._)([(0,i.MZ)({json:{write:!0}})],T.prototype,"elements",void 0),(0,o._)([(0,p.w)("elements")],T.prototype,"castElements",null),(0,o._)([(0,a.w)("elements",["attributeTableElements"])],T.prototype,"readElements",null),(0,o._)([(0,u.K)("elements")],T.prototype,"writeElements",null),(0,o._)([(0,i.MZ)({type:String,json:{read:!1,write:!0}})],T.prototype,"type",void 0),T=A=(0,o._)([(0,l.$)("esri.tables.elements.AttributeTableGroupElement")],T);const E=C(T);var O;const I=C(T);let F=O=class extends s.A{constructor(e){super(e),this.elements=null,this.orderByFields=null}castElements(e){return Z(e,I)}readElements(e,t){return x(t.attributeTableElements,I)}writeElements(e,t){t.attributeTableElements=S(e,I)}clone(){return new O({elements:(0,n.o8)(this.elements),orderByFields:this.orderByFields})}};(0,o._)([(0,i.MZ)({json:{write:!0}})],F.prototype,"elements",void 0),(0,o._)([(0,p.w)("elements")],F.prototype,"castElements",null),(0,o._)([(0,a.w)("elements",["attributeTableElements"])],F.prototype,"readElements",null),(0,o._)([(0,u.K)("elements")],F.prototype,"writeElements",null),(0,o._)([(0,i.MZ)({type:[Object],json:{write:!0}})],F.prototype,"orderByFields",void 0),F=O=(0,o._)([(0,l.$)("esri.tables.AttributeTableTemplate")],F);const j=F},78553:(e,t,r)=>{r.d(t,{D:()=>n,p:()=>s});var o=r(56507);function s(e){const t=(0,o.Vr)(100*(1-e));return Math.max(0,Math.min(t,100))}function n(e){const t=1-e/100;return Math.max(0,Math.min(t,1))}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1402],{35448:(e,t,r)=>{var n,o,i,a,s,l,p;r.d(t,{Eq:()=>n,bV:()=>i,nP:()=>s,r5:()=>o,ti:()=>l,vy:()=>p,wr:()=>a}),function(e){e[e.Regular=0]="Regular",e[e.Provenance=1]="Provenance",e[e.Document=2]="Document"}(n||(n={})),function(e){e[e.esriFieldTypeSmallInteger=0]="esriFieldTypeSmallInteger",e[e.esriFieldTypeInteger=1]="esriFieldTypeInteger",e[e.esriFieldTypeSingle=2]="esriFieldTypeSingle",e[e.esriFieldTypeDouble=3]="esriFieldTypeDouble",e[e.esriFieldTypeString=4]="esriFieldTypeString",e[e.esriFieldTypeDate=5]="esriFieldTypeDate",e[e.esriFieldTypeOID=6]="esriFieldTypeOID",e[e.esriFieldTypeGeometry=7]="esriFieldTypeGeometry",e[e.esriFieldTypeBlob=8]="esriFieldTypeBlob",e[e.esriFieldTypeRaster=9]="esriFieldTypeRaster",e[e.esriFieldTypeGUID=10]="esriFieldTypeGUID",e[e.esriFieldTypeGlobalID=11]="esriFieldTypeGlobalID",e[e.esriFieldTypeXML=12]="esriFieldTypeXML",e[e.esriFieldTypeBigInteger=13]="esriFieldTypeBigInteger",e[e.esriFieldTypeDateOnly=14]="esriFieldTypeDateOnly",e[e.esriFieldTypeTimeOnly=15]="esriFieldTypeTimeOnly",e[e.esriFieldTypeTimestampOffset=16]="esriFieldTypeTimestampOffset"}(o||(o={})),function(e){e[e.esriGeometryNull=0]="esriGeometryNull",e[e.esriGeometryPoint=1]="esriGeometryPoint",e[e.esriGeometryMultipoint=2]="esriGeometryMultipoint",e[e.esriGeometryPolyline=3]="esriGeometryPolyline",e[e.esriGeometryPolygon=4]="esriGeometryPolygon",e[e.esriGeometryEnvelope=5]="esriGeometryEnvelope",e[e.esriGeometryAny=6]="esriGeometryAny",e[e.esriGeometryMultiPatch=7]="esriGeometryMultiPatch"}(i||(i={})),function(e){e[e.esriMethodHintUNSPECIFIED=0]="esriMethodHintUNSPECIFIED",e[e.esriUUIDESRI=1]="esriUUIDESRI",e[e.esriUUIDRFC4122=2]="esriUUIDRFC4122"}(a||(a={})),function(e){e[e.esriTypeUNSPECIFIED=0]="esriTypeUNSPECIFIED",e[e.esriTypeEntity=1]="esriTypeEntity",e[e.esriTypeRelationship=2]="esriTypeRelationship",e[e.esriTypeBoth=4]="esriTypeBoth"}(s||(s={})),function(e){e[e.esriGraphPropertyUNSPECIFIED=0]="esriGraphPropertyUNSPECIFIED",e[e.esriGraphPropertyRegular=1]="esriGraphPropertyRegular",e[e.esriGraphPropertyDocumentName=2]="esriGraphPropertyDocumentName",e[e.esriGraphPropertyDocumentTitle=3]="esriGraphPropertyDocumentTitle",e[e.esriGraphPropertyDocumentUrl=4]="esriGraphPropertyDocumentUrl",e[e.esriGraphPropertyDocumentText=5]="esriGraphPropertyDocumentText",e[e.esriGraphPropertyDocumentKeywords=6]="esriGraphPropertyDocumentKeywords",e[e.esriGraphPropertyDocumentContentType=7]="esriGraphPropertyDocumentContentType",e[e.esriGraphPropertyDocumentMetadata=8]="esriGraphPropertyDocumentMetadata",e[e.esriGraphPropertyDocumentFileExtension=9]="esriGraphPropertyDocumentFileExtension",e[e.esriGraphPropertyProvenanceInstanceId=10]="esriGraphPropertyProvenanceInstanceId",e[e.esriGraphPropertyProvenanceSourceType=11]="esriGraphPropertyProvenanceSourceType",e[e.esriGraphPropertyProvenanceSourceName=12]="esriGraphPropertyProvenanceSourceName",e[e.esriGraphPropertyProvenanceSource=13]="esriGraphPropertyProvenanceSource",e[e.esriGraphPropertyProvenanceComment=14]="esriGraphPropertyProvenanceComment",e[e.esriGraphPropertyProvenanceTypeName=15]="esriGraphPropertyProvenanceTypeName",e[e.esriGraphPropertyProvenancePropertyName=16]="esriGraphPropertyProvenancePropertyName"}(l||(l={})),function(e){e[e.esriIdentifierInfoTypeUNSPECIFIED=0]="esriIdentifierInfoTypeUNSPECIFIED",e[e.esriIdentifierInfoTypeDatabaseNative=1]="esriIdentifierInfoTypeDatabaseNative",e[e.esriIdentifierInfoTypeUniformProperty=2]="esriIdentifierInfoTypeUniformProperty"}(p||(p={}))},45724:(e,t,r)=>{r.d(t,{I:()=>l});var n=r(2741),o=r(44208);const i="esri/rest/knowledgeGraph/wasmInterface/";let a,s=null;async function l(){const e=s??a;if(e)return e;const t=!!(0,o.A)("wasm-simd");return a=p(t),a}async function p(e){if(e){const{default:e}=await r.e(5367).then(r.bind(r,15367)).then((e=>e.a));return e({locateFile:e=>(0,n.s)(i+e)})}const{default:t}=await r.e(9013).then(r.bind(r,29013)).then((e=>e.a));return t({locateFile:e=>(0,n.s)(i+e)})}},71402:(e,t,r)=>{r.r(t),r.d(t,{_fetchWrapper:()=>We,_getClientDataCacheCopy:()=>je,_setMaxQueryParsingDurationForTesting:()=>rt,clearClientDataCache:()=>$e,clientDataCache:()=>Ze,executeApplyEdits:()=>Le,executeQuery:()=>ze,executeQueryStreaming:()=>Ue,executeSearch:()=>qe,executeSearchStreaming:()=>Ye,fetchAllClientDataKeys:()=>Be,fetchClientDataAtKeys:()=>Qe,fetchKnowledgeGraph:()=>He,kgRestServices:()=>Ne,refreshDataModel:()=>Ke,refreshServiceDefinition:()=>Ve}),r(59456);var n=r(70333),o=r(78888),i=r(49186),a=r(53966),s=r(90237),l=r(69622),p=r(10107),d=(r(44208),r(87811),r(40608));let u=class extends l.A{constructor(e){super(e),this.headerKeys=[],this.outSpatialReference=null,this.exceededTransferLimit=!1}};(0,s._)([(0,p.MZ)()],u.prototype,"headerKeys",void 0),(0,s._)([(0,p.MZ)()],u.prototype,"outSpatialReference",void 0),(0,s._)([(0,p.MZ)()],u.prototype,"exceededTransferLimit",void 0),u=(0,s._)([(0,d.$)("esri.rest.knowledgeGraph.GraphQueryResultHeader")],u);const c=u;let y=class extends l.A{constructor(e){super(e),this.resultRows=[],this.resultHeader=new c}};(0,s._)([(0,p.MZ)()],y.prototype,"resultRows",void 0),(0,s._)([(0,p.MZ)()],y.prototype,"resultHeader",void 0),y=(0,s._)([(0,d.$)("esri.rest.knowledgeGraph.GraphQueryResult")],y);const h=y;let f=class extends l.A{constructor(e){super(e),this.resultRowsStream=new ReadableStream,this.resultHeader=new c}};(0,s._)([(0,p.MZ)()],f.prototype,"resultRowsStream",void 0),(0,s._)([(0,p.MZ)()],f.prototype,"resultHeader",void 0),f=(0,s._)([(0,d.$)("esri.rest.knowledgeGraph.GraphQueryStreamingResult")],f);const g=f;var _=r(25482),w=r(16930);let m=class extends _.A{constructor(e){super(e),this.name=null,this.unique=null,this.ascending=null,this.description=null,this.fieldNames=null}};(0,s._)([(0,p.MZ)({type:String,json:{write:!0}})],m.prototype,"name",void 0),(0,s._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"unique",void 0),(0,s._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"ascending",void 0),(0,s._)([(0,p.MZ)({type:String,json:{write:!0}})],m.prototype,"description",void 0),(0,s._)([(0,p.MZ)({type:[String],json:{write:!0}})],m.prototype,"fieldNames",void 0),m=(0,s._)([(0,d.$)("esri.rest.knowledgeGraph.FieldIndex")],m);const v=m;let T=class extends _.A{constructor(e){super(e),this.name=null,this.alias=null,this.fieldType=null,this.geometryType=null,this.hasM=null,this.hasZ=null,this.nullable=null,this.editable=null,this.required=null,this.defaultVisibility=null,this.systemMaintained=null,this.role=null,this.defaultValue=null}};(0,s._)([(0,p.MZ)({type:String,json:{write:!0}})],T.prototype,"name",void 0),(0,s._)([(0,p.MZ)({type:String,json:{write:!0}})],T.prototype,"alias",void 0),(0,s._)([(0,p.MZ)({type:String,json:{write:!0}})],T.prototype,"fieldType",void 0),(0,s._)([(0,p.MZ)({type:String,json:{write:!0}})],T.prototype,"geometryType",void 0),(0,s._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],T.prototype,"hasM",void 0),(0,s._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],T.prototype,"hasZ",void 0),(0,s._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],T.prototype,"nullable",void 0),(0,s._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],T.prototype,"editable",void 0),(0,s._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],T.prototype,"required",void 0),(0,s._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],T.prototype,"defaultVisibility",void 0),(0,s._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],T.prototype,"systemMaintained",void 0),(0,s._)([(0,p.MZ)({type:String,json:{write:!0}})],T.prototype,"role",void 0),(0,s._)([(0,p.MZ)({json:{write:!0}})],T.prototype,"defaultValue",void 0),T=(0,s._)([(0,d.$)("esri.rest.knowledgeGraph.GraphProperty")],T);const E=T;let M=class extends _.A{constructor(e){super(e),this.name=null,this.alias=null,this.role=null,this.strict=null,this.properties=null,this.fieldIndexes=null,this.type=null}};(0,s._)([(0,p.MZ)({type:String,json:{write:!0}})],M.prototype,"name",void 0),(0,s._)([(0,p.MZ)({type:String,json:{write:!0}})],M.prototype,"alias",void 0),(0,s._)([(0,p.MZ)({type:String,json:{write:!0}})],M.prototype,"role",void 0),(0,s._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],M.prototype,"strict",void 0),(0,s._)([(0,p.MZ)({type:[E],json:{write:!0}})],M.prototype,"properties",void 0),(0,s._)([(0,p.MZ)({type:[v],json:{write:!0}})],M.prototype,"fieldIndexes",void 0),M=(0,s._)([(0,d.$)("esri.rest.knowledgeGraph.GraphObjectType")],M);const A=M;let I=class extends A{constructor(e){super(e),this.type="entity"}};I=(0,s._)([(0,d.$)("esri.rest.knowledgeGraph.EntityType")],I);const G=I;let S=class extends A{constructor(e){super(e),this.endPoints=[],this.type="relationship"}};(0,s._)([(0,p.MZ)({json:{write:!0}})],S.prototype,"endPoints",void 0),S=(0,s._)([(0,d.$)("esri.rest.knowledgeGraph.RelationshipType")],S);const R=S;let P=class extends _.A{constructor(e){super(e),this.value=null,this.behavior=null}};(0,s._)([(0,p.MZ)({type:String,json:{write:!0}})],P.prototype,"value",void 0),(0,s._)([(0,p.MZ)({type:String,json:{write:!0}})],P.prototype,"behavior",void 0),P=(0,s._)([(0,d.$)("esri.rest.knowledgeGraph.SourceTypeValueBehavior")],P);const b=P;let k=class extends _.A{constructor(e){super(e),this.timestamp=null,this.spatialReference=null,this.strict=null,this.objectIdField=null,this.globalIdField=null,this.arcgisManaged=null,this.identifierInfo=null,this.searchIndexes=null,this.entityTypes=null,this.relationshipTypes=null,this.metaEntityTypes=null,this.provenanceSourceTypeValues=null}};(0,s._)([(0,p.MZ)({type:Date,json:{type:Number,write:{writer:(e,t)=>{t.timestamp=e?.getTime()}}}})],k.prototype,"timestamp",void 0),(0,s._)([(0,p.MZ)({type:w.A,json:{write:!0}})],k.prototype,"spatialReference",void 0),(0,s._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],k.prototype,"strict",void 0),(0,s._)([(0,p.MZ)({type:String,json:{write:!0}})],k.prototype,"objectIdField",void 0),(0,s._)([(0,p.MZ)({type:String,json:{write:!0}})],k.prototype,"globalIdField",void 0),(0,s._)([(0,p.MZ)()],k.prototype,"arcgisManaged",void 0),(0,s._)([(0,p.MZ)()],k.prototype,"identifierInfo",void 0),(0,s._)([(0,p.MZ)()],k.prototype,"searchIndexes",void 0),(0,s._)([(0,p.MZ)({type:[G],json:{write:!0}})],k.prototype,"entityTypes",void 0),(0,s._)([(0,p.MZ)({type:[R],json:{write:!0}})],k.prototype,"relationshipTypes",void 0),(0,s._)([(0,p.MZ)({type:[G],json:{write:!0}})],k.prototype,"metaEntityTypes",void 0),(0,s._)([(0,p.MZ)({type:[b],json:{write:!0}})],k.prototype,"provenanceSourceTypeValues",void 0),k=(0,s._)([(0,d.$)("esri.rest.knowledgeGraph.DataModel")],k);const D=k;let x=class extends _.A{constructor(e){super(e),this.capabilities=[],this.supportsSearch=!1,this.supportedQueryFormats=[],this.allowGeometryUpdates=!1,this.searchMaxRecordCount=null,this.serviceCapabilities=null,this.maxRecordCount=null,this.description="",this.copyrightText="",this.units="",this.spatialReference=null,this.currentVersion=null,this.dateFieldsTimeReference=null,this.serviceItemId="",this.supportsDocuments=!1,this.dataEditingNotSupported=!1,this.schemaEditingNotSupported=!1,this.supportsProvenance=!1}};(0,s._)([(0,p.MZ)({type:[String],json:{write:!0}})],x.prototype,"capabilities",void 0),(0,s._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],x.prototype,"supportsSearch",void 0),(0,s._)([(0,p.MZ)({type:[String],json:{write:!0}})],x.prototype,"supportedQueryFormats",void 0),(0,s._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],x.prototype,"allowGeometryUpdates",void 0),(0,s._)([(0,p.MZ)({type:Number,json:{write:!0}})],x.prototype,"searchMaxRecordCount",void 0),(0,s._)([(0,p.MZ)({type:Object,json:{write:!0}})],x.prototype,"serviceCapabilities",void 0),(0,s._)([(0,p.MZ)({type:Number,json:{write:!0}})],x.prototype,"maxRecordCount",void 0),(0,s._)([(0,p.MZ)({type:String,json:{write:!0}})],x.prototype,"description",void 0),(0,s._)([(0,p.MZ)({type:String,json:{write:!0}})],x.prototype,"copyrightText",void 0),(0,s._)([(0,p.MZ)({type:String,json:{write:!0}})],x.prototype,"units",void 0),(0,s._)([(0,p.MZ)({type:w.A,json:{write:!0}})],x.prototype,"spatialReference",void 0),(0,s._)([(0,p.MZ)({type:Number,json:{write:!0}})],x.prototype,"currentVersion",void 0),(0,s._)([(0,p.MZ)({type:Object,json:{write:!0}})],x.prototype,"dateFieldsTimeReference",void 0),(0,s._)([(0,p.MZ)({type:String,json:{write:!0}})],x.prototype,"serviceItemId",void 0),(0,s._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],x.prototype,"supportsDocuments",void 0),(0,s._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],x.prototype,"dataEditingNotSupported",void 0),(0,s._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],x.prototype,"schemaEditingNotSupported",void 0),(0,s._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],x.prototype,"supportsProvenance",void 0),x=(0,s._)([(0,d.$)("esri.rest.knowledgeGraph.ServiceDefinition")],x);const C=x;let O=class extends _.A{constructor(e){super(e),this.dataModel=null,this.serviceDefinition=null}};(0,s._)([(0,p.MZ)({type:String,json:{write:!0}})],O.prototype,"url",void 0),(0,s._)([(0,p.MZ)({type:D,json:{write:!0}})],O.prototype,"dataModel",void 0),(0,s._)([(0,p.MZ)({type:C,json:{write:!0}})],O.prototype,"serviceDefinition",void 0),O=(0,s._)([(0,d.$)("esri.rest.knowledgeGraph.KnowledgeGraph")],O);const F=O;function Z(e,t,r){if(0!==e.error_code)throw new i.A(t,r,{errorCode:e.error_code,errorMessage:e.error_message})}function j(e,t,r,n=!1){const o=new r.ClientDataFetchRequestEncoder;o.deleteLater();for(const i of e){const e=N(i,t,r,n);o.add_client_data_fetch_request_parameter(e)}o.encode();const i=o.get_encoding_result();return Z(i.error,"knowledge-graph:fetchClientDataAtKeys-encoding-failed","Attempting to encode the fetchClientDataAtKeys failed"),structuredClone(i.get_byte_buffer())}function N(e,t,r,n){const o=new r.ClientDataKey;o.deleteLater(),o.key_string=e;const i=new r.ClientDataFetchRequestParameter;i.deleteLater(),i.set_key(o);const a=t.get(e);return a&&!n&&(i.v_tag={v_tag:a.version}),i}var L,z,U,q=r(45724),Y=r(48526),B=r(86738),Q=r(39829),H=r(82799);!function(e){e[e.OBJECT=0]="OBJECT",e[e.ENTITY=1]="ENTITY",e[e.RELATIONSHIP=2]="RELATIONSHIP",e[e.PATH=3]="PATH",e[e.ARRAY=4]="ARRAY"}(L||(L={})),function(e){e[e.view=0]="view",e[e.edit=1]="edit"}(z||(z={})),function(e){e[e.exclude=0]="exclude",e[e.include=1]="include"}(U||(U={}));var K=r(91075);function V(e,t){const r=new t.ArrayValue;return r.deleteLater(),e.forEach((e=>{r.add_value(J(e,t))})),r}function $(e,t){const r=new t.ObjectValue;r.deleteLater();for(const[n,o]of Object.entries(e))r.set_key_value(n,J(o,t));return r}function W(e,t){if(e instanceof Y.A)return function(e,t){const r=new t.GeometryValue;r.deleteLater(),r.geometry_type=r.geometry_type=t.esriGeometryType.esriGeometryMultipoint,r.has_z=e.hasZ,r.has_m=e.hasM;const n=[],o=[];o[0]=e.points.length;let i=0;return e.points.forEach((e=>{e.forEach((e=>{n[i]=e,i++}))})),r.coords=new Float64Array(n),r.lengths=new Uint32Array(o),r}(e,t);if(e instanceof B.A)return function(e,t){const r=new t.GeometryValue;r.deleteLater(),r.geometry_type=t.esriGeometryType.esriGeometryPoint,r.has_z=e.hasZ,r.has_m=e.hasM;const n=[],o=[];o[0]=1,n[0]=e.x,n[1]=e.y;let i=2;return e.hasZ&&(n[i]=e.z,i++),e.hasM&&(n[i]=e.m,i++),r.coords=new Float64Array(n),r.lengths=new Uint32Array(o),r}(e,t);if(e instanceof H.A||e instanceof Q.A)return function(e,t){const r=new t.GeometryValue;r.deleteLater(),r.has_z=e.hasZ,r.has_m=e.hasM;const n=[],o=[];let i=[];e instanceof H.A?(r.geometry_type=t.esriGeometryType.esriGeometryPolyline,i=e.paths):e instanceof Q.A&&(r.geometry_type=t.esriGeometryType.esriGeometryPolygon,i=e.rings);let a=0,s=0;return i.forEach((e=>{let t=0;e.forEach((e=>{t++,e.forEach((e=>{n[s]=e,s++}))})),o[a]=t,a++})),r.coords=new Float64Array(n),r.lengths=new Uint32Array(o),r}(e,t);throw new i.A("knowledge-graph:unsupported-geometry","Only Point, Multipoint, Polyline, and Polygon geometry are supported by ArcGIS Knowledge",{geometry:e})}function J(e,t){if(null==e)return"";if("object"!=typeof e)return e;if(e instanceof Date)return e;if(e instanceof K.A)return W(e,t);if(Array.isArray(e)){const r=new t.ArrayValue;return r.deleteLater(),e.forEach((e=>{r.add_value(J(e,t))})),r}return $(e,t)}var X,ee,te,re,ne=r(25927),oe=r(23150);function ie(e,t){if(!e.typeName)throw new i.A("knowledge-graph:no-type-name","You must indicate the entity/relationship named object type to apply edits");if(e instanceof ne.A){const r=new t.EntityValue;r.deleteLater(),r.type_name=e.typeName;for(const[n,o]of Object.entries(e.properties))r.set_key_value(n,ae(o,t));return e.id&&r.set_id(e.id),r}if(e instanceof oe.A){const r=new t.RelationshipValue;r.deleteLater(),r.type_name=e.typeName;for(const[n,o]of Object.entries(e.properties))r.set_key_value(n,ae(o,t));return e.id&&r.set_id(e.id),e.originId&&e.destinationId&&r.set_related_entity_ids(e.originId,e.destinationId),r}throw new i.A("knowledge-graph:applyEdits-encoding-failure","Could not determine the type of a named graph object passed to the encoder")}function ae(e,t){return null==e?null:"object"!=typeof e||e instanceof Date?e:e instanceof K.A?W(e,t):null}!function(e){e[e.ClientDataKeyTypeUNSPECIFIED=0]="ClientDataKeyTypeUNSPECIFIED",e[e.ClientDataKeyTypeString=1]="ClientDataKeyTypeString"}(X||(X={})),function(e){e[e.ClientDataTypeUNSPECIFIED=0]="ClientDataTypeUNSPECIFIED",e[e.ClientDataTypeString=1]="ClientDataTypeString"}(ee||(ee={})),function(e){e[e.Unspecified=0]="Unspecified",e[e.ClientData=1]="ClientData",e[e.NotModified=2]="NotModified"}(te||(te={})),function(e){e[e.Unspecified=0]="Unspecified",e[e.Error=1]="Error",e[e.ClientDataValue=2]="ClientDataValue"}(re||(re={}));let se=class extends l.A{constructor(e){super(e),this.name=null,this.supportedCategory=null,this.analyzers=[],this.searchProperties=new Map}};(0,s._)([(0,p.MZ)()],se.prototype,"name",void 0),(0,s._)([(0,p.MZ)()],se.prototype,"supportedCategory",void 0),(0,s._)([(0,p.MZ)()],se.prototype,"analyzers",void 0),(0,s._)([(0,p.MZ)()],se.prototype,"searchProperties",void 0),se=(0,s._)([(0,d.$)("esri.rest.knowledgeGraph.SearchIndex")],se);const le=se;var pe=r(35448);let de=!1;function ue(e){return e.deleteLater(),new G(ye(e))}function ce(e){return e.deleteLater(),new v({name:e.name,unique:e.unique,ascending:e.ascending,description:e.description,fieldNames:we(e.fields)})}function ye(e){return{name:e.name,alias:e.alias,role:pe.Eq[e.role.value]?pe.Eq[e.role.value]:null,strict:e.strict,properties:me(e.properties),fieldIndexes:ve(e.field_indexes)}}function he(e){return e.deleteLater(),new E({alias:e.alias,name:e.name,fieldType:pe.r5[e.field_type.value]?pe.r5[e.field_type.value]:null,geometryType:pe.bV[e.geometry_type.value]?pe.bV[e.geometry_type.value]:null,hasM:e.has_m,hasZ:e.has_z,nullable:e.nullable,editable:e.editable,required:e.required,defaultVisibility:e.default_visibility,systemMaintained:e.system_maintained,role:pe.ti[e.role.value],defaultValue:e.default_value})}function fe(e){e.deleteLater();const t=ye(e),r=[];for(let t=0;t<e.end_points.size();t++){const n=e.end_points.get(t);r.push({originEntityType:n.origin_entity_type,destinationEntityType:n.dest_entity_type})}return e.end_points.delete(),new R(Object.assign({endPoints:r},t))}function ge(e){return new b({behavior:e.behavior,value:e.value})}function _e(e){const t=[];for(let r=0;r<e.size();r++)t.push(ue(e.get(r)));return e.delete(),t}function we(e){const t=[];for(let r=0;r<e.size();r++)t.push(e.get(r));return e.delete(),t}function me(e){const t=[];for(let r=0;r<e.size();r++){const n=he(e.get(r));"esriFieldTypeBigInteger"===n.fieldType&&(de=!0),t.push(n)}return e.delete(),t}function ve(e){const t=[];for(let r=0;r<e.size();r++)t.push(ce(e.get(r)));return e.delete(),t}function Te(e){const t=[];for(let r=0;r<e.size();r++)t.push(fe(e.get(r)));return e.delete(),t}function Ee(e){const t=[];for(let r=0;r<e.size();r++){const n=e.get(r);n.deleteLater(),t.push(ge(n))}return e.delete(),t}function Me(e){const t=[];for(let r=0;r<e.size();r++){const r=new le,n=e.get(0);r.name=n.name,r.supportedCategory=pe.nP[n.supported_category.value];const o=n.analyzers.size();for(let e=0;e<o;e++)r.analyzers.push({name:n.analyzers.get(e).name});n.analyzers.delete();for(let e=0;e<n.search_properties.keys().size();e++){const t=n.search_properties.keys().get(e),o=n.search_properties.get(t),i=[];for(let e=0;e<o.property_names.size();e++)i.push(o.property_names.get(e));r.searchProperties.set(t,{propertyNames:i})}t.push(r)}return e.delete(),t}r(77901);var Ae,Ie=r(40662),Ge=r(42095);function Se(e,t){const r={paths:[],hasM:!1,hasZ:!1},n=Re(e,r),{coords:o,geometry_type:a,lengths:s}=e;if(a.value!==t)throw new i.A("KnowledgeGraph:illegal-geometry-type","Illegal Geometry type for multipath conversion");let l=0;return s.forEach((e=>{const t=[];for(let r=0;r<e;r++){const e=[];for(let t=0;t<n;t++)e[t]=o[l],l++;t.push(e)}r.paths.push(t)})),r}function Re(e,t){let r=2;return e.has_z?(t.hasZ=e.has_z,r++):t.hasZ=!1,e.has_m?(t.hasM=e.has_m,r++):t.hasM=!1,r}!function(e){e[e.ESRI_GEOMETRY_NULL=0]="ESRI_GEOMETRY_NULL",e[e.ESRI_GEOMETRY_POINT=1]="ESRI_GEOMETRY_POINT",e[e.ESRI_GEOMETRY_MULTIPOINT=2]="ESRI_GEOMETRY_MULTIPOINT",e[e.ESRI_GEOMETRY_POLYLINE=3]="ESRI_GEOMETRY_POLYLINE",e[e.ESRI_GEOMETRY_POLYGON=4]="ESRI_GEOMETRY_POLYGON",e[e.ESRI_GEOMETRY_ENVELOPE=5]="ESRI_GEOMETRY_ENVELOPE",e[e.ESRI_GEOMETRY_ANY=6]="ESRI_GEOMETRY_ANY",e[e.ESRI_GEOMETRY_MULTI_PATCH=7]="ESRI_GEOMETRY_MULTI_PATCH"}(Ae||(Ae={}));const Pe=()=>a.A.getLogger("esri.rest.knowledgeGraph.WasmToQueryResponseObjConstructors");function be(e,t,r){return((e,t,r)=>{if(null==e)return null;if("object"!=typeof e)return e;if("getDate"in e)return e;if("geometry_type"in e)switch(e.geometry_type.value){case null:return null;case Ae.ESRI_GEOMETRY_POINT:return function(e,t){const r={spatialReference:t};let n=2;Re(e,r);const o=e.coords;return r.x=o[0],r.y=o[1],e.has_z&&(r.z=o[n],n++),e.has_m&&(r.m=o[n]),new B.A(r)}(e,r);case Ae.ESRI_GEOMETRY_MULTIPOINT:return function(e,t){const r={spatialReference:t},n=Re(e,r),o=e.lengths,i=e.coords,a=o[0];r.points=[];let s=0;for(let e=0;e<a;e++){const e=[];for(let t=0;t<n;t++)e[t]=i[s],s++;r.points.push(e)}return new Y.A(r)}(e,r);case Ae.ESRI_GEOMETRY_POLYLINE:return function(e,t){const{paths:r,hasM:n,hasZ:o}=Se(e,Ae.ESRI_GEOMETRY_POLYLINE);return new H.A({paths:r,hasM:n,hasZ:o,spatialReference:t})}(e,r);case Ae.ESRI_GEOMETRY_POLYGON:return function(e,t){const{paths:r,hasM:n,hasZ:o}=Se(e,Ae.ESRI_GEOMETRY_POLYGON);return new Q.A({rings:r,hasM:n,hasZ:o,spatialReference:t})}(e,r);case Ae.ESRI_GEOMETRY_ENVELOPE:case Ae.ESRI_GEOMETRY_MULTI_PATCH:return Pe().warnOnce("Envelope and Multipatch are not supported on knowledge entities, but one of those geometry types was detected. Result interpreted as null"),null;case Ae.ESRI_GEOMETRY_NULL:case Ae.ESRI_GEOMETRY_ANY:default:return Pe().warnOnce("Unknown or blank geometry type returned - Result interpreted as null"),null}else{if(!("object_value_type"in e))return Pe().warnOnce("A decoded value came back of a type that is not supported. Result interpreted as null"),null;switch(e.object_value_type.value){case L.OBJECT:return function(e,t,r){return new Ie.A(De(e,t,r))}(e,t,r);case L.ENTITY:return ke(e,t,r);case L.RELATIONSHIP:return xe(e,t,r);case L.PATH:return function(e,t,r){const n=e.entity_count(),o=e.relationship_count(),i=[];for(let a=0;a<n;a++)i.push(ke(e.get_entity_at(a),t,r)),a<o&&i.push(xe(e.get_relationship_at(a),t,r));return new Ge.A({path:i})}(e,t,r);case L.ARRAY:return function(e,t,r){const n=[],o=e.count();for(let i=0;i<o;i++){const o=e.get_value_at(i);n.push(be(o,t,r))}return n}(e,t,r);default:return Pe().warnOnce("Unknown graph object type detected! Result interpreted as null"),null}}})(e,t,r)}function ke(e,t,r){const n=e.type_name,o=De(e,t,r),i=e.get_id();return new ne.A(Object.assign({typeName:n,id:i},o))}function De(e,t,r){const n={},o=e.key_count();for(let i=0;i<o;i++)n[e.get_key_at(i)]=be(e.get_value_at(i),t,r);return{properties:n}}function xe(e,t,r){const n=e.type_name,o=De(e,t,r);return new oe.A(Object.assign({typeName:n,id:e.get_id(),originId:e.get_origin_entity_id(),destinationId:e.get_destination_entity_id()},o))}function Ce(e){const t=[];for(let r=0;r<e.get_header_keys().size();r++)t.push(e.get_header_keys().get(r));const r=new w.A(e.get_out_sr());return new c({headerKeys:t,outSpatialReference:r,exceededTransferLimit:e.exceeded_transfer_limit()})}let Oe=class extends l.A{constructor(e){super(e),this.hasError=null,this.error=null,this.editResults=[]}};(0,s._)([(0,p.MZ)()],Oe.prototype,"hasError",void 0),(0,s._)([(0,p.MZ)()],Oe.prototype,"error",void 0),(0,s._)([(0,p.MZ)()],Oe.prototype,"editResults",void 0),Oe=(0,s._)([(0,d.$)("esri.rest.knowledgeGraph.GraphApplyEditsResult")],Oe);const Fe=Oe,Ze=new Map,je=()=>new Map(Ze.entries()),Ne={fetchKnowledgeGraph:async e=>{const t=new F({url:e}),r=[];return r.push(Ke(t)),r.push(Ve(t)),await Promise.all(r),t},refreshDataModel:async e=>{e.dataModel=await it(e)},refreshServiceDefinition:async e=>{const t=(await(0,o.A)(e.url,{query:{f:"json"}})).data;return t.capabilities=t?.capabilities?.split(","),t.supportedQueryFormats=t?.supportedQueryFormats?.split(","),e.serviceDefinition=new C(t),e.serviceDefinition},executeQueryStreaming:async(e,t,r)=>{const n=`${e.url}/graph/query`;await Je(e);const o=await et(n,r);if(!e.serviceDefinition?.supportsProvenance&&"include"===t.provenanceBehavior)throw new i.A("knowledge-graph:provenance-not-supported","The Knowledge Graph Service definition indicated that provenance is not supported");o.data.body=await async function(e,t){const r=await(0,q.I)(),n=new r.GraphQueryRequestEncoder;if(n.deleteLater(),e.outputSpatialReference?n.output_spatial_reference={wkid:e.outputSpatialReference.wkid,latestWkid:e.outputSpatialReference.latestWkid,vcsWkid:e.outputSpatialReference.vcsWkid,latestVcsWkid:e.outputSpatialReference.latestVcsWkid,wkt:e.outputSpatialReference.wkt??""}:n.output_spatial_reference=r.SpatialReferenceUtil.WGS84(),n.open_cypher_query=e.openCypherQuery,e.bindParameters)for(const[t,o]of Object.entries(e.bindParameters))Xe(t,o,n,r);if(e.bindGeometryQuantizationParameters)!function(e,t){t.input_quantization_parameters={xy_resolution:e.xyResolution,x_false_origin:e.xFalseOrigin,y_false_origin:e.yFalseOrigin,z_resolution:e.zResolution,z_false_origin:e.zFalseOrigin,m_resolution:e.mResolution,m_false_origin:e.mFalseOrigin}}(e.bindGeometryQuantizationParameters,n);else{if(t.dataModel||await Ke(t),4326!==t.dataModel?.spatialReference?.wkid)throw new i.A("knowledge-graph:SR-quantization-mismatch","If the DataModel indicates a coordinate system other than WGS84, inputQuantizationParameters must be provided to the query encoder");n.input_quantization_parameters=r.InputQuantizationUtil.WGS84_lossless()}e.outputQuantizationParameters&&function(e,t,r){if(!e.extent)throw new i.A("knowledge-graph:illegal-output-quantization","The Output quantization provided to the encoder had an illegal value as part of its extent",e.extent);if(!e.quantizeMode)throw new i.A("knowledge-graph:illegal-output-quantization","The Output quantization contained an illegal mode setting",e.quantizeMode);if(!e.tolerance)throw new i.A("knowledge-graph:illegal-output-quantization","The Output quantization contained an illegal tolerance setting",e.quantizeMode);t.output_quantization_parameters={extent:{xmax:e.extent.xmax,ymax:e.extent.ymax,xmin:e.extent.xmin,ymin:e.extent.ymin},quantize_mode:r.esriQuantizeMode[e.quantizeMode],tolerance:e.tolerance}}(e.outputQuantizationParameters,n,r),e.provenanceBehavior&&function(e,t){t.provenance_behavior={value:U[e]}}(e.provenanceBehavior,n);try{n.encode()}catch(e){throw new i.A("knowledge-graph:query-encoding-failed","Attempting to encode the query failed",{error:e})}const o=n.get_encoding_result();if(0!==o.error.error_code)throw new i.A("knowledge-graph:query-encoding-failed","Attempting to encode the query failed",{errorCode:o.error.error_code,errorMessage:o.error.error_message});return structuredClone(o.get_byte_buffer())}(t,e);const a=await We(o.data.url,o.data);if(e.dataModel){const t=await ot(a,e.dataModel);return new g({resultRowsStream:t.readableStream,resultHeader:t.resultHeader})}throw new i.A("knowledge-graph:undefined-data-model","The KnowledgeGraph supplied did not have a data model")},executeApplyEdits:async(e,t,r)=>{if(e.serviceDefinition?.dataEditingNotSupported)throw new i.A("knowledge-graph:data-editing-not-supported","The Knowledge Graph Service definition indicated that data editing is not supported");const n=`${e.url}/graph/applyEdits`;await Je(e);const o=await et(n,r);return o.data.body=await async function(e,t){if(t.dataModel||await Ke(t),!t.dataModel)throw new i.A("knowledge-graph:data-model-undefined","Encoding could not proceed because a data model was not provided and it could not be determined from the service");const r=await(0,q.I)(),n=!!e.options?.cascadeDelete,o=new r.GraphApplyEditsEncoder(r.SpatialReferenceUtil.WGS84(),e.options?.inputQuantizationParameters?function(e){return{xy_resolution:e.xyResolution,x_false_origin:e.xFalseOrigin,y_false_origin:e.yFalseOrigin,z_resolution:e.zResolution,z_false_origin:e.zFalseOrigin,m_resolution:e.mResolution,m_false_origin:e.mFalseOrigin}}(e.options?.inputQuantizationParameters):r.InputQuantizationUtil.WGS84_lossless());o.deleteLater(),o.cascade_delete=n;try{let t;e.entityAdds?.forEach((e=>{t=o.add_entity(ie(e,r)),Z(t,"knowledge-graph:applyEdits-encoding-failed","Attempting to encode the applyEdits - an entity failed to be added to the encoder")})),e.relationshipAdds?.forEach((e=>{if(!e.originId||!e.destinationId)throw new i.A("knowledge-graph:relationship-origin-destination-missing","When adding a new relationship, you must provide both an origin and destination id on the appropriate class property");t=o.add_relationship(ie(e,r)),Z(t,"knowledge-graph:applyEdits-encoding-failed","Attempting to encode the applyEdits - a relationship failed to be added to the encoder")})),e.entityUpdates?.forEach((e=>{if(!e.id)throw new i.A("knowledge-graph:entity-id-missing","When updating an entity or relationship, you must specify the id on the class level property");t=o.update_entity(ie(e,r)),Z(t,"knowledge-graph:applyEdits-encoding-failed","Attempting to encode the applyEdits - an entity failed to be added to the encoder")})),e.relationshipUpdates?.forEach((e=>{if(!e.id)throw new i.A("knowledge-graph:relationship-id-missing","When updating an entity or relationship, you must specify the id on the class level property");t=o.update_relationship(ie(e,r)),Z(t,"knowledge-graph:applyEdits-encoding-failed","Attempting to encode the applyEdits - a relationship failed to be added to the encoder")})),e.entityDeletes?.forEach((e=>{if(!e.typeName)throw new i.A("knowledge-graph:no-type-name","You must indicate the entity/relationship named object type to apply edits - delete");const t=o.make_delete_helper(e.typeName,!0);t.deleteLater(),e.ids?.forEach((e=>{t.delete_by_id(e)}))})),e.relationshipDeletes?.forEach((e=>{if(!e.typeName)throw new i.A("knowledge-graph:no-type-name","You must indicate the entity/relationship named object type to apply edits - delete");const t=o.make_delete_helper(e.typeName,!1);e.ids?.forEach((e=>{t.delete_by_id(e)}))})),o.encode()}catch(e){throw new i.A("knowledge-graph:applyEdits-encoding-failed","Attempting to encode the applyEdits failed",{error:e})}const a=o.get_encoding_result();return Z(a.error,"knowledge-graph:applyEdits-encoding-failed","Attempting to encode the applyEdits failed"),structuredClone(a.get_byte_buffer())}(t,e),async function(e){const t=e.headers.get("content-type");if(t?.includes("application/x-protobuf")){const t=await e.arrayBuffer(),r=new((await(0,q.I)()).GraphApplyEditsDecoder);return r.deleteLater(),r.decode(new Uint8Array(t)),function(e){const t=e.has_error(),r=new Fe({hasError:t,error:t?{errorCode:e.error.error_code,errorMessage:e.error.error_message}:null}),n=e.get_edit_results_count();for(let t=0;t<n;t++){const n=e.get_edit_results_at(t),o=e.get_edit_results_type_name_at(t),i=[],a=[],s=[],l=n.get_add_results_count(),p=n.get_update_results_count(),d=n.get_delete_results_count();for(let e=0;e<l;e++){const t=n.get_add_result_at(e);i.push({id:t.id,error:{errorCode:t.error.error_code,errorMessage:t.error.error_message}})}for(let e=0;e<p;e++){const t=n.get_update_result_at(e);a.push({id:t.id,error:{errorCode:t.error.error_code,errorMessage:t.error.error_message}})}for(let e=0;e<d;e++){const t=n.get_delete_result_at(e);s.push({id:t.id,error:{errorCode:t.error.error_code,errorMessage:t.error.error_message}})}r.editResults.push({typeName:o,adds:i,updates:a,deletes:s})}return r}(r)}throw new i.A("knowledge-graph:unexpected-server-response","server returned an unexpected response",{responseType:t,data:e.text()})}(await We(o.data.url,o.data))},executeQuery:async(e,t,r)=>{const n=`${e.url}/graph/query`,a=await(0,o.A)(n,{responseType:"array-buffer",query:{f:"pbf",openCypherQuery:t.openCypherQuery,...r?.query},signal:r?.signal,timeout:r?.timeout}),s=a.getHeader?.("content-type"),l=a.data;if(s?.includes("application/x-protobuf")){const t=new((await(0,q.I)()).GraphQueryDecoder);if(t.deleteLater(),e.dataModel){const r=nt({wasmQueryDecoder:t,newArrayBufferToParse:l,dataModel:e.dataModel});return new h({resultRows:r.resultRows,resultHeader:r.resultHeader})}throw new i.A("knowledge-graph:undefined-data-model","The KnowledgeGraph supplied did not have a data model")}throw new i.A("knowledge-graph:unexpected-server-response","server returned an unexpected response",{responseType:s,data:a.data})},executeSearch:async(e,t,r)=>{const n=t.typeCategoryFilter,a=`${e.url}/graph/search`,s=await(0,o.A)(a,{responseType:"array-buffer",query:{f:"pbf",searchQuery:`"${t.searchQuery}"`,typeCategoryFilter:n,...r?.query},signal:r?.signal,timeout:r?.timeout}),l=s.getHeader?.("content-type"),p=s.data;if(l?.includes("application/x-protobuf")){const t=new((await(0,q.I)()).GraphQueryDecoder);if(t.deleteLater(),e.dataModel){const r=nt({wasmQueryDecoder:t,newArrayBufferToParse:p,dataModel:e.dataModel});return new h({resultRows:r.resultRows,resultHeader:r.resultHeader})}throw new i.A("knowledge-graph:undefined-data-model","The KnowledgeGraph supplied did not have a data model")}throw new i.A("knowledge-graph:unexpected-server-response","server returned an unexpected response",{responseType:l,data:s.data})},executeSearchStreaming:async(e,t,r)=>{const n=`${e.url}/graph/search`;await Je(e);const o=await et(n,r);o.data.body=await async function(e){const t=await(0,q.I)(),r=new t.GraphSearchRequestEncoder;if(r.deleteLater(),r.search_query=e.searchQuery,r.type_category_filter=t.esriNamedTypeCategory[e.typeCategoryFilter],!0===e.returnSearchContext&&(r.return_search_context=e.returnSearchContext),null!=e.start&&e.start>0&&(r.start_index=e.start),null!=e.num&&(r.max_num_results=e.num),null!=e.idsFilter&&Array.isArray(e.idsFilter)&&e.idsFilter.length>0)try{r.set_ids_filter(V(e.idsFilter,t))}catch(e){throw new i.A("knowledge-graph:ids-format-error","Attempting to set ids filter failed. This is usually caused by an incorrectly formatted UUID string",{error:e})}e.namedTypesFilter?.forEach((e=>{r.add_named_type_filter(e)}));try{r.encode()}catch(e){throw new i.A("knowledge-graph:search-encoding-failed","Attempting to encode the search failed",{error:e})}const n=r.get_encoding_result();if(0!==n.error.error_code)throw new i.A("knowledge-graph:search-encoding-failed","Attempting to get encoding result from the query failed",{errorCode:n.error.error_code,errorMessage:n.error.error_message});return structuredClone(n.get_byte_buffer())}(t);const a=await We(o.data.url,o.data);if(e.dataModel){const t=await ot(a,e.dataModel);return new g({resultRowsStream:t.readableStream,resultHeader:t.resultHeader})}throw new i.A("knowledge-graph:undefined-data-model","The KnowledgeGraph supplied did not have a data model")},fetchClientDataAtKeys:async(e,t,r={ignoreCache:!1})=>{if(!t.length)return new Map;let n=Ze.get(e.url||"");n||(n=new Map,Ze.set(e.url||"",n));const o=new Map(n.entries()),a=`${e.url}/clientData/fetch`;t=Array.from(new Set(t));const s=await(0,q.I)(),l=j(t,n,s,r.ignoreCache),p=await et(a,r.requestOptions);p.data.body=l;const d=await We(p.data.url,p.data),u=d.headers.get("content-type");if(u?.includes("application/x-protobuf")){const e=new s.ClientDataFetchResponseDecoder;e.deleteLater();const t=await d.arrayBuffer();return e.decode(new Uint8Array(t)),e.has_error()&&Z(e.error,"knowledge-graph:fetchClientDataAtKeys-decoding-error","An error occurred while decoding the client data keys response"),function(e,t,r,n=!1){const o=new Map;for(let i=0;i<e.get_results_count();i++){const a=e.get_result_at(i);if(a.get_fetch_result_case().value!==re.ClientDataValue||0!==a.error().error_code){const e=a.get_key().key_string;r.has(e)&&t.delete(e);continue}const s=a.get_value(),l=a.get_key().key_string,p=r.get(l);let d;if(s.get_data_case().value===te.NotModified&&p)d=p.value;else{if(s.get_data_case().value!==te.ClientData)continue;{d=s.get_data().client_data_string;const e=a.get_value().get_v_tag().v_tag;n||t.set(l,{key:l,version:e,value:d})}}o.set(l,d)}return o}(e,n,o,r.ignoreCache)}throw new i.A("knowledge-graph:unexpected-server-response","server returned an unexpected response when fetching client data",{responseType:u,data:d})},fetchAllClientDataKeys:async(e,t)=>{const r=`${e.url}/clientData`,n=await(0,o.A)(r,{responseType:"array-buffer",query:{f:"pbf"},signal:t?.signal,timeout:t?.timeout}),a=n.getHeader?.("content-type"),s=n.data;if(a?.includes("application/x-protobuf")){const e=new((await(0,q.I)()).ClientDataKeysResponseDecoder);return e.deleteLater(),e.decode(new Uint8Array(s)),e.has_error()&&Z(e.error,"knowledge-graph:fetchAllClientDataKeys-decoding-error","An error occurred while decoding the client data keys response"),function(e){const t=e.get_keys(),r=new Array;for(let e=0;e<t.get_keys_count();e++){const n=t.get_key_at(e);n.get_client_data_key_type().value===X.ClientDataKeyTypeString&&r.push(n.key_string)}return r}(e)}throw new i.A("knowledge-graph:unexpected-server-response","server returned an unexpected response",{responseType:a,data:n.data})},clearClientDataCache:()=>Ze.clear(),_fetchWrapper:async(e,t)=>fetch(e,t)};async function Le(e,t,r){return Ne.executeApplyEdits(e,t,r)}async function ze(e,t,r){return Ne.executeQuery(e,t,r)}async function Ue(e,t,r){return Ne.executeQueryStreaming(e,t,r)}async function qe(e,t,r){return Ne.executeSearch(e,t,r)}async function Ye(e,t,r){return Ne.executeSearchStreaming(e,t,r)}function Be(e,t){return Ne.fetchAllClientDataKeys(e,t)}function Qe(e,t,r){return Ne.fetchClientDataAtKeys(e,t,r)}async function He(e){return Ne.fetchKnowledgeGraph(e)}async function Ke(e){return Ne.refreshDataModel(e)}async function Ve(e){return Ne.refreshServiceDefinition(e)}function $e(){return Ne.clearClientDataCache()}async function We(e,t){return Ne._fetchWrapper(e,t)}async function Je(e){const t=n.id?.findCredential(e.url);t||(e.dataModel?await it(e):await Ke(e))}function Xe(e,t,r,n){null==t?r.set_param_key_value(e,""):"object"!=typeof t||t instanceof Date?r.set_param_key_value(e,t):t instanceof K.A?r.set_param_key_value(e,W(t,n)):Array.isArray(t)?r.set_param_key_value(e,V(t,n)):r.set_param_key_value(e,$(t,n))}async function et(e,t){return(0,o.A)(e,{responseType:"native-request-init",method:"post",query:{f:"pbf",...t?.query},body:"x",headers:{"Content-Type":"application/octet-stream"},signal:t?.signal,timeout:t?.timeout})}let tt=50;function rt(e){tt=e}function nt({wasmQueryDecoder:e,newArrayBufferToParse:t,dataModel:r,decodedHeader:n,limitMaxProcessingTime:o=!1}){t&&e.push_buffer(new Uint8Array(t));const a=[];let s,l,p=0;const d=Date.now();let u=!0;for(;e.next_row();){s&&l||(s=n??Ce(e),l=s.outSpatialReference??new w.A({wkid:4326})),p||(p=e.get_header_keys().size());const t=new Array(p);for(let n=0;n<p;n++){const o=e.get_value(n);t[n]=be(o,r,l)}if(a.push(t),o&&Date.now()-d>tt){u=!1;break}}if(e.has_error())throw new i.A("knowledge-graph:stream-decoding-error","One or more result rows were not successfully decoded - inner row decoding",{errorCode:e.error.error_code,errorMessage:e.error.error_message});return{resultHeader:s,resultRows:a,parsedAllResultsFromBuffer:u}}async function ot(e,t){const r=e.headers.get("content-type");if(e.headers.get("content-length")&&a.A.getLogger("esri.rest.knowledgeGraph.knowledgeGraphService").warnOnce("Found `Content-Length` header when expecting a streaming HTTP response! Please investigate whether all intermediate HTTP proxies and/or load balancers are configured such that they don't forcefully buffer the entire response before returning it to the client. A valid HTTP streaming response should use Chunked Transfer Encoding and not have a Content Length defined."),r?.includes("application/x-protobuf")){const r=e.body?.getReader(),n=new((await(0,q.I)()).GraphQueryDecoder);let o,s,l;n.deleteLater();const p=new Promise(((e,t)=>{s=e,l=t}));let d=!1,u=null;const y=new ReadableStream({pull:async function e(p){if(!r){const e=new i.A("knowledge-graph:stream-decoding-error","Error reading from stream - reader is undefined");throw l(e),e}const{done:y,value:h}=u?{done:!1,value:null}:await r.read().catch((e=>{throw l(e),r.releaseLock(),e}));h&&(u=h);try{if(y){let e;if(n.has_error()?e=new i.A("knowledge-graph:stream-decoding-error","One or more result rows were not successfully decoded - query stream done",{errorCode:n.error.error_code,errorMessage:n.error.error_message}):d||s(new c),r.releaseLock(),e)throw p.error(e),l(e),e;return void p.close()}const{resultHeader:a,resultRows:f,parsedAllResultsFromBuffer:g}=nt({wasmQueryDecoder:n,newArrayBufferToParse:h,dataModel:t,decodedHeader:o,limitMaxProcessingTime:!0});return g&&(u=null),!o&&a&&(o=a,s(a),d=!0),f.length>0?void p.enqueue(f):await e(p)}catch(e){throw a.A.getLogger("esri.rest.knowledgeGraph.knowledgeGraphService").error(e),l(e),r.releaseLock(),new i.A("knowledge-graph:unexpected-server-response","Error inside streaming data return parsing",{error:e})}}});return{readableStream:y,resultHeader:await p}}throw new i.A("knowledge-graph:unexpected-server-response","server returned an unexpected response",{responseType:r,data:e.text()})}async function it(e){const t=`${e.url}/dataModel/queryDataModel`,r=await(0,o.A)(t,{responseType:"array-buffer",query:{f:"pbf"}}),n=r.getHeader?.("content-type"),s=r.data;if(n?.includes("application/x-protobuf")){const e=(await(0,q.I)()).decode_data_model_from_protocol_buffer(new Uint8Array(s));if(!e)throw new i.A("knowledge-graph:data-model-decode-failure","The server responded to the data model query, but the response failed to be decoded. This typically occurs when the Knowledge JS API (4.26 or later) is used with an unsupported backend (11.0 or earlier)");return function(e){e.deleteLater(),de=!1;const t=new D({timestamp:e.timestamp,spatialReference:new w.A(e.spatial_reference),strict:e.strict,objectIdField:e.objectid_property,globalIdField:e.globalid_property,arcgisManaged:e.arcgis_managed,identifierInfo:{identifierMappingInfo:{identifierInfoType:pe.vy[e.identifier_info?.identifier_mapping_info?.identifier_info_type?.value],databaseNativeIdentifier:e.identifier_info?.identifier_mapping_info?.database_native_identifier,uniformPropertyIdentifier:{identifierPropertyName:e.identifier_info?.identifier_mapping_info?.uniform_property_identifier?.identifier_property_name}},identifierGenerationInfo:{uuidMethodHint:pe.wr[e.identifier_info?.identifier_generation_info?.uuid_method_hint?.value]}},searchIndexes:Me(e.search_indexes),entityTypes:_e(e.entity_types),relationshipTypes:Te(e.relationship_types),metaEntityTypes:_e(e.meta_entity_types),provenanceSourceTypeValues:Ee(e.provenance_source_type_values.value_behavior_array)});return de&&a.A.getLogger("esri.rest.knowledgeGraph.knowledgeGraphService").warnOnce("A big integer field was detected in the retrieved data model. The `big-integer` field type is not fully supported in web clients. Please see https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Field.html#type"),t}(e)}throw new i.A("knowledge-graph:unexpected-server-response","server returned an unexpected response",{responseType:n,data:r.data})}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[201],{66131:(e,t,r)=>{r.d(t,{lY:()=>d,mT:()=>h});var s,i=r(799),a=r(3330),n=r(96285);(s||(s={})).TimeZoneNotRecognized="TimeZoneNotRecognized";const l={[s.TimeZoneNotRecognized]:"Timezone identifier has not been recognized."};class o extends Error{constructor(e,t){super((0,i.HC)(l[e],t)),this.declaredRootClass="esri.arcade.arcadedate.dateerror",Error.captureStackTrace&&Error.captureStackTrace(this,o)}}function c(e,t,r){return e<t?e-t:e>r?e-r:0}function u(e,t,r){return e<t?t:e>r?r:e}class d{constructor(e){this._date=e,this.declaredRootClass="esri.arcade.arcadedate"}static fromParts(e=0,t=1,r=1,s=0,i=0,a=0,l=0,o){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(s)||isNaN(i)||isNaN(a)||isNaN(l))return null;const p=n.c9.local(e,t).daysInMonth;let m=n.c9.fromObject({day:u(r,1,p),year:e,month:u(t,1,12),hour:u(s,0,23),minute:u(i,0,59),second:u(a,0,59),millisecond:u(l,0,999)},{zone:h(o)});return m=m.plus({months:c(t,1,12),days:c(r,1,p),hours:c(s,0,23),minutes:c(i,0,59),seconds:c(a,0,59),milliseconds:c(l,0,999)}),new d(m)}static get systemTimeZoneCanonicalName(){return Intl.DateTimeFormat().resolvedOptions().timeZone??"system"}static arcadeDateAndZoneToArcadeDate(e,t){const r=h(t);return e.isUnknownTimeZone||r===a.GB.instance?d.fromParts(e.year,e.monthJS+1,e.day,e.hour,e.minute,e.second,e.millisecond,r):new d(e._date.setZone(r))}static dateJSToArcadeDate(e){return new d(n.c9.fromJSDate(e,{zone:"system"}))}static dateJSAndZoneToArcadeDate(e,t="system"){const r=h(t);return new d(n.c9.fromJSDate(e,{zone:r}))}static unknownEpochToArcadeDate(e){return new d(n.c9.fromMillis(e,{zone:a.GB.instance}))}static unknownDateJSToArcadeDate(e){return new d(n.c9.fromMillis(e.getTime(),{zone:a.GB.instance}))}static epochToArcadeDate(e,t="system"){const r=h(t);return new d(n.c9.fromMillis(e,{zone:r}))}static dateTimeToArcadeDate(e){return new d(e)}clone(){return new d(this._date)}changeTimeZone(e){const t=h(e);return d.dateTimeToArcadeDate(this._date.setZone(t))}static dateTimeAndZoneToArcadeDate(e,t){const r=h(t);return e.zone===a.GB.instance||r===a.GB.instance?d.fromParts(e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond,r):new d(e.setZone(r))}static nowToArcadeDate(e){const t=h(e);return new d(n.c9.fromJSDate(new Date,{zone:t}))}static nowUTCToArcadeDate(){return new d(n.c9.utc())}get isSystem(){return"system"===this.timeZone||this.timeZone===d.systemTimeZoneCanonicalName}equals(e){return this.isSystem&&e.isSystem?this.toNumber()===e.toNumber():this.isUnknownTimeZone===e.isUnknownTimeZone&&this._date.equals(e._date)}get isUnknownTimeZone(){return this._date.zone===a.GB.instance}get isValid(){return this._date.isValid}get hour(){return this._date.hour}get second(){return this._date.second}get day(){return this._date.day}get dayOfWeekISO(){return this._date.weekday}get dayOfWeekJS(){let e=this._date.weekday;return e>6&&(e=0),e}get millisecond(){return this._date.millisecond}get monthISO(){return this._date.month}get weekISO(){return this._date.weekNumber}get yearISO(){return this._date.weekYear}get monthJS(){return this._date.month-1}get year(){return this._date.year}get minute(){return this._date.minute}get zone(){return this._date.zone}get timeZoneOffset(){return this.isUnknownTimeZone?0:this._date.offset}get timeZone(){if(this.isUnknownTimeZone)return"unknown";if("system"===this._date.zone.type)return"system";const e=this.zone;return"fixed"===e.type?0===e.fixed?"UTC":e.formatOffset(0,"short"):e.name}stringify(){return JSON.stringify(this.toJSDate())}plus(e){return new d(this._date.plus(e))}diff(e,t="milliseconds"){return this._date.diff(e._date,t)[t]}toISODate(){return this._date.toISODate()}toISOString(e){return e?this._date.toISO({suppressMilliseconds:!0,includeOffset:!this.isUnknownTimeZone}):this._date.toISO({includeOffset:!this.isUnknownTimeZone})}toISOTime(e,t){return this._date.toISOTime({suppressMilliseconds:e,includeOffset:t&&!this.isUnknownTimeZone})}toFormat(e,t){return this.isUnknownTimeZone&&(e=e.replaceAll("Z","")),this._date.toFormat(e,t)}toJSDate(){return this._date.toJSDate()}toSQLValue(){return this._date.toFormat("yyyy-LL-dd HH:mm:ss")}toSQLWithKeyword(){return`timestamp '${this.toSQLValue()}'`}toDateTime(){return this._date}toNumber(){return this._date.toMillis()}getTime(){return this._date.toMillis()}toUTC(){return new d(this._date.toUTC())}toLocal(){return new d(this._date.toLocal())}toString(){return this.toISOString(!0)}static fromReaderAsTimeStampOffset(e){if(!e)return null;const t=n.c9.fromISO(e,{setZone:!0});return new d(t)}}function h(e,t=!0){if(e instanceof n.bo)return e;if("system"===e.toLowerCase())return"system";if("utc"===e.toLowerCase())return"UTC";if("unknown"===e.toLowerCase())return a.GB.instance;if(/^[+-]?[0-9]{1,2}([:][0-9]{2})?$/.test(e)){const t=n.mQ.parseSpecifier("UTC"+(e.startsWith("+")||e.startsWith("-")?"":"+")+e);if(t)return t}const r=n.oh.create(e);if(!r.isValid){if(t)throw new o(s.TimeZoneNotRecognized);return null}return r}},5503:(e,t,r)=>{r.d(t,{A:()=>x});var s,i=r(90237),a=r(98291),n=r(65529),l=r(36563),o=r(4718),c=r(93687);!function(e){e[e.ADD=1]="ADD",e[e.REMOVE=2]="REMOVE",e[e.MOVE=4]="MOVE"}(s||(s={}));var u,d=r(11932),h=r(56507),p=r(62788),m=r(10107),y=r(7695),g=r(40608),f=r(95488);class b{constructor(e,t,r,s,i){this.target=e,this.added=t,this.removed=r,this.start=s,this.deleteCount=i}}const v=new c.A(class{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(e){this.defaultPrevented=!1,this.item=e}},void 0,(e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1}));function _(e){e&&"object"==typeof e&&"destroy"in e&&"function"==typeof e.destroy&&e.destroy()}function S(e){return e?e instanceof O?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function T(e){if(e?.length)return e[0]}function M(e,t,r,s){const i=Math.min(e.length-r,t.length-s);let a=0;for(;a<i&&e[r+a]===t[s+a];)a++;return a}function L(e,t,r,s){t&&t.forEach(((t,i,a)=>{e.push(t),L(e,r.call(s,t,i,a),r,s)}))}const w=new Set,I=new Set,A=new Set,V=new Map;let D=0,O=u=class extends n.A.EventedAccessor{static isCollection(e){return null!=e&&e instanceof u}constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new f.I,this.length=0,this._items=[],Object.defineProperty(this,"uid",{value:D++})}normalizeCtorArgs(e){return e?Array.isArray(e)||e instanceof u?{items:e}:e:{}}destroy(){this._removeAllRaw(),this._timer&&this._timer.remove(),this._emitter.destroy(),this._notifications=null}*[Symbol.iterator](){yield*this.items}get items(){return(0,p.gc)(this._observable),this._items}set items(e){this._emitBeforeChanges(s.ADD)||(this._splice(0,this.length,S(e)),this._emitAfterChanges(s.ADD))}hasEventListener(e){return!this.destroyed&&("change"===e?this._chgListeners.length>0:this._emitter.hasEventListener(e))}on(e,t){if(this.destroyed)return(0,l.hA)();if("change"===e){const e=this._chgListeners,r={removed:!1,callback:t};return e.push(r),this._notifications&&this._notifications.push({listeners:e.slice(),items:this._items.slice(),changes:[]}),(0,l.hA)((()=>{r.removed=!0,e.splice(e.indexOf(r),1)}))}return this._emitter.on(e,t)}once(e,t){const r="deref"in t?()=>t.deref():()=>t,s=this.on(e,(e=>{r()?.call(null,e),s.remove()}));return s}add(e,t){if((0,p.gc)(this._observable),this._emitBeforeChanges(s.ADD))return this;const r=this.getNextIndex(t??null);return this._splice(r,0,[e]),this._emitAfterChanges(s.ADD),this}addMany(e,t=this._items.length){if((0,p.gc)(this._observable),!e?.length)return this;if(this._emitBeforeChanges(s.ADD))return this;const r=this.getNextIndex(t);return this._splice(r,0,S(e)),this._emitAfterChanges(s.ADD),this}at(e){if((0,p.gc)(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if((0,p.gc)(this._observable),!this.length||this._emitBeforeChanges(s.REMOVE))return[];const e=this._removeAllRaw();return this._emitAfterChanges(s.REMOVE),e}_removeAllRaw(){return 0===this.length?[]:this._splice(0,this.length)||[]}clone(){return(0,p.gc)(this._observable),this._createNewInstance({items:this._items.map(o.o8)})}concat(...e){(0,p.gc)(this._observable);const t=e.map(S);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if((0,p.gc)(this._observable),!this.length||this._emitBeforeChanges(s.REMOVE))return;const r=this._splice(0,this.length),i=r.length;for(let s=0;s<i;s++)e.call(t,r[s],s,r);this._emitAfterChanges(s.REMOVE)}destroyAll(){this.drain(_)}destroyMany(e){const t=this.removeMany(e);return t.forEach(_),t}every(e,t){return(0,p.gc)(this._observable),this._items.every(e,t)}filter(e,t){(0,p.gc)(this._observable);const r=2===arguments.length?this._items.filter(e,t):this._items.filter(e);return this._createNewInstance({items:r})}find(e,t){return(0,p.gc)(this._observable),this._items.find(e,t)}findIndex(e,t){return(0,p.gc)(this._observable),this._items.findIndex(e,t)}flatten(e,t){(0,p.gc)(this._observable);const r=[];return L(r,this,e,t),new u(r)}forEach(e,t){return(0,p.gc)(this._observable),this._items.forEach(e,t)}getItemAt(e){return(0,p.gc)(this._observable),this._items[e]}getNextIndex(e){(0,p.gc)(this._observable);const t=this.length;return(e=e??t)<0?e=0:e>t&&(e=t),e}includes(e,t=0){return(0,p.gc)(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return(0,p.gc)(this._observable),this._items.indexOf(e,t)}join(e=","){return(0,p.gc)(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return(0,p.gc)(this._observable),this._items.lastIndexOf(e,t)}map(e,t){(0,p.gc)(this._observable);const r=this._items.map(e,t);return new u({items:r})}reorder(e,t=this.length-1){(0,p.gc)(this._observable);const r=this.indexOf(e);if(-1!==r){if(t<0?t=0:t>=this.length&&(t=this.length-1),r!==t){if(this._emitBeforeChanges(s.MOVE))return e;this._splice(r,1),this._splice(t,0,[e]),this._emitAfterChanges(s.MOVE)}return e}}pop(){if((0,p.gc)(this._observable),!this.length||this._emitBeforeChanges(s.REMOVE))return;const e=T(this._splice(this.length-1,1));return this._emitAfterChanges(s.REMOVE),e}push(...e){return(0,p.gc)(this._observable),this._emitBeforeChanges(s.ADD)||(this._splice(this.length,0,e),this._emitAfterChanges(s.ADD)),this.length}reduce(e,t){(0,p.gc)(this._observable);const r=this._items;return 2===arguments.length?r.reduce(e,t):r.reduce(e)}reduceRight(e,t){(0,p.gc)(this._observable);const r=this._items;return 2===arguments.length?r.reduceRight(e,t):r.reduceRight(e)}remove(e){return(0,p.gc)(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if((0,p.gc)(this._observable),e<0||e>=this.length||this._emitBeforeChanges(s.REMOVE))return;const t=T(this._splice(e,1));return this._emitAfterChanges(s.REMOVE),t}removeMany(e){if((0,p.gc)(this._observable),!e?.length||this._emitBeforeChanges(s.REMOVE))return[];const t=e instanceof u?e.toArray():e,r=this._items,i=[],a=t.length;for(let e=0;e<a;e++){const s=t[e],a=r.indexOf(s);if(a>-1){const s=1+M(t,r,e+1,a+1),n=this._splice(a,s);n&&n.length>0&&i.push.apply(i,n),e+=s-1}}return this._emitAfterChanges(s.REMOVE),i}reverse(){if((0,p.gc)(this._observable),this._emitBeforeChanges(s.MOVE))return this;const e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(s.MOVE),this}shift(){if((0,p.gc)(this._observable),!this.length||this._emitBeforeChanges(s.REMOVE))return;const e=T(this._splice(0,1));return this._emitAfterChanges(s.REMOVE),e}slice(e=0,t=this.length){return(0,p.gc)(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return(0,p.gc)(this._observable),this._items.some(e,t)}sort(e){if((0,p.gc)(this._observable),!this.length||this._emitBeforeChanges(s.MOVE))return this;const t=this._splice(0,this.length);return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(s.MOVE),this}splice(e,t,...r){(0,p.gc)(this._observable);const i=(t?s.REMOVE:0)|(r.length?s.ADD:0);if(this._emitBeforeChanges(i))return[];const a=this._splice(e,t,r)||[];return this._emitAfterChanges(i),a}toArray(){return(0,p.gc)(this._observable),this._items.slice()}toJSON(){return(0,p.gc)(this._observable),this.toArray()}toLocaleString(){return(0,p.gc)(this._observable),this._items.toLocaleString()}toString(){return(0,p.gc)(this._observable),this._items.toString()}unshift(...e){return(0,p.gc)(this._observable),!e.length||this._emitBeforeChanges(s.ADD)||(this._splice(0,0,e),this._emitAfterChanges(s.ADD)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,r){const s=this._items,i=this.itemType;let a,n;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._updating=!0,this._timer=(0,d._)((()=>this._dispatchChange()))),e<0&&(e+=this.length),t){if(n=s.splice(e,t),this.hasEventListener("before-remove")){const t=v.acquire();t.target=this,t.cancellable=!0;for(let r=0,i=n.length;r<i;r++)a=n[r],t.reset(a),this.emit("before-remove",t),t.defaultPrevented&&(n.splice(r,1),s.splice(e,0,a),e+=1,r-=1,i-=1);v.release(t)}if(this.length=this._items.length,this.hasEventListener("after-remove")){const e=v.acquire();e.target=this,e.cancellable=!1;const t=n.length;for(let r=0;r<t;r++)e.reset(n[r]),this.emit("after-remove",e);v.release(e)}}if(r?.length){if(i){const e=[];for(const t of r){const r=i.ensureType(t);null==r&&null!=t||e.push(r)}r=e}const t=this.hasEventListener("before-add"),a=this.hasEventListener("after-add"),n=e===this.length;if(t||a){const i=v.acquire();i.target=this,i.cancellable=!0;const l=v.acquire();l.target=this,l.cancellable=!1;for(const o of r)t?(i.reset(o),this.emit("before-add",i),i.defaultPrevented||(n?s.push(o):s.splice(e++,0,o),this._set("length",s.length),a&&(l.reset(o),this.emit("after-add",l)))):(n?s.push(o):s.splice(e++,0,o),this._set("length",s.length),l.reset(o),this.emit("after-add",l));v.release(l),v.release(i)}else{if(n)for(const e of r)s.push(e);else s.splice(e,0,...r);this._set("length",s.length)}}if((r?.length||n?.length)&&this._notifyChangeEvent(r,n),this.hasEventListener("after-splice")){const s=new b(this,r,n,e,t);this.emit("after-splice",s)}return n}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){const r=v.acquire();r.target=this,r.cancellable=!0,r.type=e,this.emit("before-changes",r),t=r.defaultPrevented,v.release(r)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){const t=v.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),v.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}get updating(){return this._updating}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),this._updating=!1,!this._notifications)return;const e=this._notifications;this._notifications=null;for(const t of e){const e=t.changes;w.clear(),I.clear(),A.clear();for(const{added:t,removed:r}of e){if(t)if(0===A.size&&0===I.size)for(const e of t)w.add(e);else for(const e of t)I.has(e)?(A.add(e),I.delete(e)):A.has(e)||w.add(e);if(r)if(0===A.size&&0===w.size)for(const e of r)I.add(e);else for(const e of r)w.has(e)?w.delete(e):(A.delete(e),I.add(e))}const r=a.A.acquire();w.forEach((e=>{r.push(e)}));const s=a.A.acquire();I.forEach((e=>{s.push(e)}));const i=this._items,n=t.items,l=a.A.acquire();if(A.forEach((e=>{n.indexOf(e)!==i.indexOf(e)&&l.push(e)})),t.listeners&&(r.length||s.length||l.length)){const e={target:this,added:r,removed:s,moved:l},i=t.listeners.length;for(let r=0;r<i;r++){const s=t.listeners[r];s.removed||s.callback.call(this,e)}}a.A.release(r),a.A.release(s),a.A.release(l)}w.clear(),I.clear(),A.clear()}};O.ofType=e=>{if(!e)return u;if(V.has(e))return V.get(e);let t=null;if("function"==typeof e)t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(const r in e.typeMap){const s=e.typeMap[r].prototype.declaredClass;t?t+=` | ${s}`:t=s}let r=class extends u{};return(0,i._)([(0,y.u)({Type:e,ensureType:"function"==typeof e?(0,h.dp)(e):(0,h.aq)(e)})],r.prototype,"itemType",void 0),r=(0,i._)([(0,g.$)(`esri.core.Collection<${t}>`)],r),V.set(e,r),r},(0,i._)([(0,m.MZ)()],O.prototype,"_updating",void 0),(0,i._)([(0,m.MZ)()],O.prototype,"length",void 0),(0,i._)([(0,m.MZ)()],O.prototype,"items",null),(0,i._)([(0,m.MZ)({readOnly:!0})],O.prototype,"updating",null),O=u=(0,i._)([(0,g.$)("esri.core.Collection")],O);const x=O},65529:(e,t,r)=>{r.d(t,{A:()=>o});var s=r(90237),i=r(69622),a=r(36563),n=r(40608);class l{constructor(){this._emitter=new l.EventEmitter(this)}emit(e,t){return this._emitter.emit(e,t)}on(e,t){return this._emitter.on(e,t)}once(e,t){return this._emitter.once(e,t)}hasEventListener(e){return this._emitter.hasEventListener(e)}}!function(e){class t{constructor(e=null){this._target=e,this._listenersMap=null}clear(){this._listenersMap?.clear(),this._listenersMap=null}destroy(){this.clear()}emit(e,t){let r=this._listenersMap?.get(e);if(!r)return!1;const s=this._target||this;let i=!1;for(const e of r.slice()){const r="deref"in e?e.deref():e;r?r?.call(s,t):i=!0}return i&&(r=r.filter((e=>!("deref"in e)||null!=e.deref())),this._listenersMap.set(e,r)),r.length>0}on(e,t){if(Array.isArray(e)){const r=e.map((e=>this.on(e,t)));return(0,a.vE)(r)}if(e.includes(","))throw new TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap??=new Map;const r=this._listenersMap.get(e)||[];return r.push(t),this._listenersMap.set(e,r),(0,a.hA)((()=>{const r=this._listenersMap?.get(e),s=r?.indexOf(t)??-1;s>=0&&r.splice(s,1)}))}once(e,t){const r=this.on(e,(e=>{r.remove();const s="deref"in t?t.deref():t;s?.call(null,e)}));return r}hasEventListener(e){const t=this._listenersMap?.get(e);return null!=t&&t.length>0}}e.EventEmitter=t,e.EventedMixin=e=>{let r=class extends e{constructor(){super(...arguments),this._emitter=new t}destroy(){this._emitter.clear()}emit(e,t){return this._emitter.emit(e,t)}on(e,t){return this._emitter.on(e,t)}once(e,t){return this._emitter.once(e,t)}hasEventListener(e){return this._emitter.hasEventListener(e)}};return r=(0,s._)([(0,n.$)("esri.core.Evented")],r),r};let r=class extends i.A{constructor(){super(...arguments),this._emitter=new l.EventEmitter(this)}destroy(){this._emitter.clear()}emit(e,t){return this._emitter.emit(e,t)}on(e,t){return this._emitter.on(e,t)}once(e,t){return this._emitter.once(e,t)}hasEventListener(e){return this._emitter.hasEventListener(e)}};r=(0,s._)([(0,n.$)("esri.core.Evented.EventedAccessor")],r),e.EventedAccessor=r}(l||(l={}));const o=l},3483:(e,t,r)=>{function s(e,t){for(const r of e.values())if(t(r))return!0;return!1}function i(e,t){if(!t)return e;for(const r of t)null!=r&&e.add(r);return e}function a(e,t){return null!=t&&e.add(t),e}function n(e,t){const r=new Set;return i(r,e),i(r,t),r}function l(e,t){const r=new Set;for(const s of t)e.has(s)&&r.add(s);return r}function o(e,t){if(!e||!t)return!1;if(e===t)return!0;for(const r of e)if(!t.has(r))return!1;return!0}function c(e,t){if(null==e&&null==t)return!0;if(null==e||null==t||e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}function u(e,t){const r=new Set(e);for(const e of t)r.delete(e);return r}r.d(t,{E$:()=>l,FB:()=>i,KC:()=>n,Yy:()=>o,aI:()=>c,bw:()=>s,iv:()=>u,kb:()=>a})},7695:(e,t,r)=>{function s(e){return(t,r)=>{t[r]=e}}r.d(t,{u:()=>s})},90629:(e,t,r)=>{r.d(t,{Lz:()=>n,PN:()=>l,cr:()=>o,gs:()=>u,r_:()=>d,tc:()=>c});const s=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i,i="screenUtils.toPt: input not recognized!",a=96;function n(e){return e?e/72*a:0}function l(e){return e?72*e/a:0}function o(e){if("string"==typeof e){const t=e.match(s);if(t){const r=Number(t[1]),s=t[3]&&t[3].toLowerCase(),i="-"===e.charAt(0),a="px"===s?l(r):r;return i?-a:a}return console.warn(i),null}return e}function c(e=0,t=0){return{x:e,y:t}}function u(e=0,t=0){return[e,t]}function d(e=0,t=0,r=0){return[e,t,r]}},3330:(e,t,r)=>{r.d(t,{GB:()=>i,Qo:()=>n,Y4:()=>a});var s=r(96285);class i{}function a(e){return e instanceof s.bo?e===i.instance:"unknown"===e?.toString().toLowerCase()}function n(e){return a(e)?i.instance:e}i.instance=new s.oh("Etc/UTC")},62577:(e,t,r)=>{function s(e){return e?{originPosition:"upper-left"===e.originPosition?"upperLeft":"lower-left"===e.originPosition?"lowerLeft":e.originPosition,scale:e.tolerance?[e.tolerance,e.tolerance,1,1]:[1,1,1,1],translate:null!=e.extent?[e.extent.xmin,e.extent.ymax,e.extent.zmin??0,e.extent.mmin??0]:[0,0,0,0]}:null}function i(e){if(function(e){return"lowerLeft"===e.originPosition&&4===e.scale.length&&4===e.translate.length}(e))return e;const{originPosition:t,scale:r,translate:s}=e,i=r[0]??1,a=r[1]??1;return{originPosition:"lowerLeft",scale:[i,"lowerLeft"===t?a:-a,r[2]??1,r[3]??1],translate:[s[0]??0,s[1]??0,s[2]??0,s[3]??0]}}function a({scale:e,translate:t},r){return r*e[0]+t[0]}function n({scale:e,translate:t},r){return r*e[1]+t[1]}function l({scale:e,translate:t},r){return(r??0)*e[2]+t[2]}function o({scale:e,translate:t},r){return r?r*e[3]+t[3]:0}function c(e,t){return e&&t?p:e&&!t?d:!e&&t?h:u}r.d(t,{$X:()=>b,Gy:()=>y,P5:()=>v,Q1:()=>i,SW:()=>g,Tr:()=>f,VV:()=>s}),r(65864);const u=(e,t)=>{const r=new Array(t.length);if(!t.length)return r;const s=t[0];let i=a(e,s[0]),l=n(e,s[1]);r[0]=[i,l];const{scale:o,originPosition:c}=e,u=o[0],d="lowerLeft"===c?o[1]:-o[1];for(let e=1;e<t.length;e++){const[s,a]=t[e];i+=u*s,l+=d*a,r[e]=[i,l]}return r},d=(e,t)=>{const r=new Array(t.length);if(!t.length)return r;const s=t[0];let i=a(e,s[0]),o=n(e,s[1]);r[0]=[i,o,l(e,s[2])];const{scale:c,originPosition:u}=e,d=c[0],h="lowerLeft"===u?c[1]:-c[1];for(let s=1;s<t.length;s++){const[a,n,c]=t[s];i+=d*a,o+=h*n,r[s]=[i,o,l(e,c)]}return r},h=(e,t)=>{const r=new Array(t.length);if(!t.length)return r;const s=t[0];let i=a(e,s[0]),l=n(e,s[1]);r[0]=[i,l,o(e,s[2])];const{scale:c,originPosition:u}=e,d=c[0],h="lowerLeft"===u?c[1]:-c[1];for(let s=1;s<t.length;s++){const[a,n,c]=t[s];i+=d*a,l+=h*n,r[s]=[i,l,o(e,c)]}return r},p=(e,t)=>{const r=new Array(t.length);if(!t.length)return r;const s=t[0];let i=a(e,s[0]),c=n(e,s[1]);r[0]=[i,c,l(e,s[2]),o(e,s[3])];const{scale:u,originPosition:d}=e,h=u[0],p="lowerLeft"===d?u[1]:-u[1];for(let s=1;s<t.length;s++){const[a,n,u,d]=t[s];i+=h*a,c+=p*n,r[s]=[i,c,l(e,u),o(e,d)]}return r};function m(e,t,r){const s=new Array(r.length);for(let i=0;i<r.length;i++)s[i]=t(e,r[i]);return s}function y(e,t,r){const s=i(e);return t.x=function({scale:e,translate:t},r){return Math.round((r-t[0])/e[0])}(s,r.x),t.y=function({scale:e,translate:t},r){return Math.round((r-t[1])/e[1])}(s,r.y),null!=r.z&&(t.z=function({scale:e,translate:t},r){return Math.round(((r??0)-t[2])/e[2])}(s,r.z)),null!=r.m&&(t.m=function({scale:e,translate:t},r){return r?Math.round((r-t[3])/e[3]):0}(s,r.m)),t}function g(e,t,r,s=r?.hasZ??!1,a=r?.hasM??!1){if(null!=r){const n=i(e);t.points=c(s,a)(n,r.points),t.hasZ=s,t.hasM=a}return t}function f(e,t,r,s=null!=r?.z,c=null!=r?.m){if(null==r)return t;const u=i(e);return t.x=a(u,r.x),t.y=n(u,r.y),s&&(t.z=l(u,r.z)),c&&(t.m=o(u,r.m)),t}function b(e,t,r,s=r?.hasZ??!1,a=r?.hasM??!1){if(null!=r){const n=i(e);t.rings=m(n,c(s,a),r.rings),t.hasZ=s,t.hasM=a}return t}function v(e,t,r,s=r?.hasZ??!1,a=r?.hasM??!1){if(null!=r){const n=i(e);t.paths=m(n,c(s,a),r.paths),t.hasZ=s,t.hasM=a}return t}},59247:(e,t,r)=>{r.d(t,{bv:()=>o,Fk:()=>c,yG:()=>u,$b:()=>d,Nd:()=>h,jm:()=>p,sK:()=>g});var s=r(40876),i=r(90629);function a(){const e=new Float32Array(16);return e[0]=1,e[5]=1,e[10]=1,e[15]=1,e}const n=a();Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:n,clone:function(e){const t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},create:a,createView:function(e,t){return new Float32Array(e,t,16)},fromValues:function(e,t,r,s,i,a,n,l,o,c,u,d,h,p,m,y){const g=new Float32Array(16);return g[0]=e,g[1]=t,g[2]=r,g[3]=s,g[4]=i,g[5]=a,g[6]=n,g[7]=l,g[8]=o,g[9]=c,g[10]=u,g[11]=d,g[12]=h,g[13]=p,g[14]=m,g[15]=y,g}},Symbol.toStringTag,{value:"Module"}));var l=r(58083);class o{constructor(e,t,r){this.strength=e,this.radius=t,this.threshold=r,this.type="bloom"}interpolate(e,t,r){this.strength=m(e.strength,t.strength,r),this.radius=m(e.radius,t.radius,r),this.threshold=m(e.threshold,t.threshold,r)}clone(){return new o(this.strength,this.radius,this.threshold)}toJSON(){return{type:"bloom",radius:y(this.radius),strength:this.strength,threshold:this.threshold}}}class c{constructor(e){this.radius=e,this.type="blur"}interpolate(e,t,r){this.radius=Math.round(m(e.radius,t.radius,r))}clone(){return new c(this.radius)}toJSON(){return{type:"blur",radius:y(this.radius)}}}class u{constructor(e,t){this.type=e,this.amount=t,"invert"!==this.type&&"grayscale"!==this.type&&"sepia"!==this.type||(this.amount=Math.min(this.amount,1))}get colorMatrix(){return this._colorMatrix||this._updateMatrix(),this._colorMatrix}interpolate(e,t,r){this.amount=m(e.amount,t.amount,r),this._updateMatrix()}clone(){return new u(this.type,this.amount)}toJSON(){return{type:this.type,amount:this.amount}}_updateMatrix(){const e=this._colorMatrix||a();switch(this.type){case"brightness":this._colorMatrix=((e,t)=>{const r=(0,l.hZ)(e,t,0,0,0,0,t,0,0,0,0,t,0,0,0,0,1);return(0,l.mg)(r,r)})(e,this.amount);break;case"contrast":this._colorMatrix=((e,t)=>{const r=(0,l.hZ)(e,t,0,0,.5-.5*t,0,t,0,.5-.5*t,0,0,t,.5-.5*t,0,0,0,1);return(0,l.mg)(r,r)})(e,this.amount);break;case"grayscale":this._colorMatrix=(e=>{const t=1-this.amount,r=(0,l.hZ)(e,.2126+.7874*t,.7152-.7152*t,.0722-.0722*t,0,.2126-.2126*t,.7152+.2848*t,.0722-.0722*t,0,.2126-.2126*t,.7152-.7152*t,.0722+.9278*t,0,0,0,0,1);return(0,l.mg)(r,r)})(e);break;case"invert":this._colorMatrix=((e,t)=>{const r=1-2*t,s=(0,l.hZ)(e,r,0,0,t,0,r,0,t,0,0,r,t,0,0,0,1);return(0,l.mg)(s,s)})(e,this.amount);break;case"saturate":this._colorMatrix=((e,t)=>{const r=(0,l.hZ)(e,.213+.787*t,.715-.715*t,.072-.072*t,0,.213-.213*t,.715+.285*t,.072-.072*t,0,.213-.213*t,.715-.715*t,.072+.928*t,0,0,0,0,1);return(0,l.mg)(r,r)})(e,this.amount);break;case"sepia":this._colorMatrix=(e=>{const t=1-this.amount,r=(0,l.hZ)(e,.393+.607*t,.769-.769*t,.189-.189*t,0,.349-.349*t,.686+.314*t,.168-.168*t,0,.272-.272*t,.534-.534*t,.131+.869*t,0,0,0,0,1);return(0,l.mg)(r,r)})(e)}}}class d{constructor(e,t,r,s){this.offsetX=e,this.offsetY=t,this.blurRadius=r,this.color=s,this.type="drop-shadow"}interpolate(e,t,r){this.offsetX=m(e.offsetX,t.offsetX,r),this.offsetY=m(e.offsetY,t.offsetY,r),this.blurRadius=m(e.blurRadius,t.blurRadius,r),this.color[0]=Math.round(m(e.color[0],t.color[0],r)),this.color[1]=Math.round(m(e.color[1],t.color[1],r)),this.color[2]=Math.round(m(e.color[2],t.color[2],r)),this.color[3]=m(e.color[3],t.color[3],r)}clone(){return new d(this.offsetX,this.offsetY,this.blurRadius,[...this.color])}toJSON(){const e=[...this.color];return e[3]*=255,{type:"drop-shadow",xoffset:y(this.offsetX),yoffset:y(this.offsetY),blurRadius:y(this.blurRadius),color:e}}}class h{constructor(e){this.angle=e,this.type="hue-rotate"}get colorMatrix(){return this._colorMatrix||this._updateMatrix(),this._colorMatrix}interpolate(e,t,r){this.angle=m(e.angle,t.angle,r),this._updateMatrix()}clone(){return new h(this.angle)}toJSON(){return{type:"hue-rotate",angle:this.angle}}_updateMatrix(){const e=this._colorMatrix||a();this._colorMatrix=((e,t)=>{const r=Math.sin(t*Math.PI/180),s=Math.cos(t*Math.PI/180),i=(0,l.hZ)(e,.213+.787*s-.213*r,.715-.715*s-.715*r,.072-.072*s+.928*r,0,.213-.213*s+.143*r,.715+.285*s+.14*r,.072-.072*s-.283*r,0,.213-.213*s-.787*r,.715-.715*s+.715*r,.072+.928*s+.072*r,0,0,0,0,1);return(0,l.mg)(i,i)})(e,this.angle)}}class p{constructor(e){this.amount=e,this.type="opacity",this.amount=Math.min(this.amount,1)}interpolate(e,t,r){this.amount=m(e.amount,t.amount,r)}clone(){return new p(this.amount)}toJSON(){return{type:"opacity",amount:this.amount}}}function m(e,t,r){return e+(t-e)*r}function y(e){return Math.round(1e3*(0,i.PN)(e))/1e3}function g(e){switch(e.type){case"grayscale":case"sepia":case"invert":return new u(e.type,0);case"saturate":case"brightness":case"contrast":return new u(e.type,1);case"opacity":return new p(1);case"hue-rotate":return new h(0);case"blur":return new c(0);case"drop-shadow":return new d(0,0,0,[...(0,s.TS)("transparent")]);case"bloom":return new o(0,0,1)}}},27865:(e,t,r)=>{r.d(t,{O9:()=>a,dw:()=>n,mj:()=>i});var s=r(59247);function i(e,t){const r=e.length>t.length?e:t;return(e.length>t.length?t:e).every(((e,t)=>e.type===r[t].type))}function a(e,t){const r=e.length>t.length?e:t,i=e.length>t.length?t:e;for(let e=i.length;e<r.length;e++)i.push((0,s.sK)(r[e]))}function n(e){const t=e[0];return!!t&&"type"in t}},68463:(e,t,r)=>{r.d(t,{Mh:()=>d,A5:()=>f,wb:()=>g});var s=r(97768),i=r(54218),a=r(96285);const n=["HH:mm:ss.SSS","HH:mm:ss","HH:mm","TT"],l="yyyy-MM-dd";function o(e){if(!e||!(0,i.Kg)(e))return null;const t=a.c9.fromFormat(e,l);return t.isValid?t:null}function c(e){return e&&(0,i.Kg)(e)?(0,s.Pb)(n,(t=>{const r=a.c9.fromFormat(e,t);return r.isValid?r:null}))??null:null}function u(e){if(!e||!(0,i.Kg)(e))return null;const t=a.c9.fromISO(e);return t.isValid?t:null}var d;!function(e){e.VALUE_OUT_OF_RANGE="domain-validation-error::value-out-of-range",e.INVALID_CODED_VALUE="domain-validation-error::invalid-coded-value"}(d||(d={}));const h=new Set(["integer","small-integer","big-integer","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeBigInteger"]);function p(e){return null!=e&&("date-only"===e.type||"esriFieldTypeDateOnly"===e.type)}function m(e){return null!=e&&("timestamp-offset"===e.type||"esriFieldTypeTimestampOffset"===e.type)}function y(e){return null!=e&&("time-only"===e.type||"esriFieldTypeTimeOnly"===e.type)}function g(e,t,r){const s=r??e?.domain;if(!s)return null;switch(s.type){case"range":{const{min:s,max:i}=f(e,r);if(null!=s&&+t<s||null!=i&&+t>i)return d.VALUE_OUT_OF_RANGE;break}case"coded-value":case"codedValue":if(null==s.codedValues||s.codedValues.every((e=>null==e||e.code!==t)))return d.INVALID_CODED_VALUE}return null}function f(e,t){const r=t??e?.domain;if(!r||"range"!==r.type)return;const s="range"in r?r.range[0]:r.minValue,i="range"in r?r.range[1]:r.maxValue,a=function(e){return null!=e&&h.has(e.type)}(e);return p(e)||y(e)||m(e)?{...b(e,i,s),isInteger:a}:{min:null!=s&&"number"==typeof s?s:null,max:null!=i&&"number"==typeof i?i:null,rawMin:s,rawMax:i,isInteger:a}}function b(e,t,r){return p(e)?{min:o(r)?.toMillis(),max:o(t)?.toMillis(),rawMin:r,rawMax:t}:y(e)?{min:c(r)?.toMillis(),max:c(t)?.toMillis(),rawMin:r,rawMax:t}:m(e)?{min:u(r)?.toMillis(),max:u(t)?.toMillis(),rawMin:r,rawMax:t}:{max:null,min:null}}},30524:(e,t,r)=>{r.d(t,{Ah:()=>q,Bz:()=>E,CJ:()=>re,DB:()=>b,Dx:()=>T,JL:()=>ue,OG:()=>Q,OH:()=>J,R$:()=>x,R3:()=>P,WA:()=>j,WX:()=>te,Xz:()=>X,_b:()=>G,_w:()=>v,eX:()=>w,hL:()=>S,lD:()=>F,mB:()=>M,nw:()=>de,rS:()=>d,rq:()=>_,sv:()=>g,te:()=>Y,uo:()=>ce,vE:()=>Z,yM:()=>W,yp:()=>m,zD:()=>H}),r(49186);var s=r(93637),i=r(3483),a=r(68463),n=r(69309),l=r(71386),o=r(54218);const c=/^([0-9_])/,u=/[^a-z0-9_\u0080-\uffff]+/gi;function d(e){return null==e?null:e.trim().replaceAll(u,"_").replace(c,"F$1")||null}const h=["field","field2","field3","normalizationField","rotationInfo.field","proportionalSymbolInfo.field","proportionalSymbolInfo.normalizationField","colorInfo.field","colorInfo.normalizationField"],p=["field","normalizationField"];function m(e,t){if(null!=e&&null!=t)for(const r of Array.isArray(e)?e:[e])if(y(h,r,t),"visualVariables"in r&&r.visualVariables)for(const e of r.visualVariables)y(p,e,t)}function y(e,t,r){if(e)for(const i of e){const e=(0,s.wc)(i,t),a=e&&"function"!=typeof e&&r.get(e);a&&(0,s.sM)(i,a.name,t)}}function g(e,t){if(null!=e&&t?.fields?.length)if("startField"in e){const r=t.get(e.startField),s=t.get(e.endField);e.startField=r?.name??null,e.endField=s?.name??null}else{const r=t.get(e.startTimeField),s=t.get(e.endTimeField);e.startTimeField=r?.name??null,e.endTimeField=s?.name??null}}const f=new Set;function b(e,t){return e&&t?(f.clear(),v(f,e,t),Array.from(f).sort()):[]}function v(e,t,r){if(r)if(t?.fields?.length)if(r.includes("*"))for(const{name:r}of t.fields)e.add(r);else for(const s of r)_(e,t,s);else{if(r.includes("*"))return e.clear(),void e.add("*");for(const t of r)null!=t&&e.add(t)}}function _(e,t,r){if("string"==typeof r)if(t){const s=t.get(r);s&&e.add(s.name)}else e.add(r)}function S(e,t){return null==t||null==e?[]:t.includes("*")?(e.fields??[]).map((e=>e.name)):t}async function T(e,t,r){if(!r)return;let s;const i=(0,n.o)(r);if(i)s=[i];else{const{arcadeUtils:e}=await(0,l.lw)();s=e.extractFieldNames(r,t?.fields?.map((e=>e.name)))}for(const r of s)_(e,t,r)}function M({displayField:e,fields:t}){return e||(t?.length?L(t,"name-or-title")||L(t,"unique-identifier")||L(t,"type-or-category")||function(e){for(const t of e){if(!t?.name)continue;const e=t.name.toLowerCase();if(e.includes("name")||e.includes("title"))return t.name}return null}(t):null)}function L(e,t){for(const r of e)if(r?.valueType&&r.valueType===t)return r.name;return null}function w(e){return e?b(e.fieldsIndex,D(e)):[]}const I=new Set(["oid","global-id","guid"]),A=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,/perimeter/i,/objectid/i,/_i$/i];function D(e){if(!e)return[];const t="editFieldsInfo"in e&&e.editFieldsInfo;if(!t)return[];const{creationDateField:r,creatorField:s,editDateField:i,editorField:a}=t;return[r,s,i,a].filter(Boolean)}function O(e){return D(e).map((e=>e.toLowerCase()))}function x(e,t){return e.editable&&!I.has(e.type)&&!O(t).includes(e.name?.toLowerCase()??"")}function E(e,t){const r=e.name?.toLowerCase()??"";return!(null!=t?.objectIdField&&r===t.objectIdField.toLowerCase()||null!=t?.globalIdField&&r===t.globalIdField.toLowerCase()||function(e){const t=new Set;O(e).forEach((e=>t.add(e))),function(e){if(!e)return[];const t=e.geometryFieldsInfo;return t?b(e.fieldsIndex,[t.shapeAreaField,t.shapeLengthField]):[]}(e).forEach((e=>t.add(e.toLowerCase())));const r=e&&"infoFor3D"in e?e.infoFor3D:void 0;return r&&(Object.values(r.assetMapFieldRoles).forEach((e=>t.add(e.toLowerCase()))),Object.values(r.transformFieldRoles).forEach((e=>t.add(e.toLowerCase())))),Array.from(t)}(t).includes(r)||A.has(e.type)||V.some((e=>e.test(r))))}function F(e){const t=e.defaultValue;return void 0!==t&&R(e,t)?t:e.nullable?null:void 0}function G(e){const t="string"==typeof e?{type:e}:e;return W(t)?255:"esriFieldTypeDate"===t.type||"date"===t.type?8:void 0}function N(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function k(e){return null===e||N(e)}function C(e){return null===e||Number.isInteger(e)}function U(){return!0}function R(e,t){let r;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":r=e.nullable?C:Number.isInteger;break;case"double":case"single":case"esriFieldTypeSingle":case"esriFieldTypeDouble":r=e.nullable?k:N;break;case"string":case"esriFieldTypeString":r=e.nullable?o.CO:o.Kg;break;default:r=U}return 1===arguments.length?r:r(t)}const B=new Set(["integer","small-integer","big-integer","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeBigInteger"]),z=new Set(["single","double","esriFieldTypeSingle","esriFieldTypeDouble"]),$=(0,i.KC)(B,z);function P(e){return null!=e&&B.has(e.type)}function j(e){return null!=e&&$.has(e.type)}function W(e){return null!=e&&("string"===e.type||"esriFieldTypeString"===e.type)}function Z(e){return null!=e&&("date"===e.type||"esriFieldTypeDate"===e.type)}function H(e){return null!=e&&("date-only"===e.type||"esriFieldTypeDateOnly"===e.type)}function q(e){return null!=e&&("timestamp-offset"===e.type||"esriFieldTypeTimestampOffset"===e.type)}function J(e){return null!=e&&("time-only"===e.type||"esriFieldTypeTimeOnly"===e.type)}function Y(e){return null!=e&&("oid"===e.type||"esriFieldTypeOID"===e.type)}function X(e){return null!=e&&("global-id"===e.type||"esriFieldTypeGlobalID"===e.type)}function Q(e,t){return null===re(e,t)}var K,ee;function te(e){return null==e||"number"==typeof e&&isNaN(e)?null:e}function re(e,t){return null==e||e.nullable&&null===t?null:j(e)&&!function(e,t){const r="string"==typeof e?se(e):e;if(!r)return!1;const s=r.min,i=r.max;return r.isInteger?Number.isInteger(t)&&t>=s&&t<=i:t>=s&&t<=i}(e.type,Number(t))?K.OUT_OF_RANGE:R(e,t)?e.domain?(0,a.wb)(e,t):null:ee.INVALID_TYPE}function se(e){switch(e){case"esriFieldTypeSmallInteger":case"small-integer":return ie;case"esriFieldTypeInteger":case"integer":return ae;case"esriFieldTypeBigInteger":case"big-integer":return ne;case"esriFieldTypeSingle":case"single":return le;case"esriFieldTypeDouble":case"double":return oe}}(K||(K={})).OUT_OF_RANGE="numeric-range-validation-error::out-of-range",function(e){e.INVALID_TYPE="type-validation-error::invalid-type"}(ee||(ee={}));const ie={min:-32768,max:32767,isInteger:!0,rawMin:-32768,rawMax:32767},ae={min:-2147483648,max:2147483647,isInteger:!0,rawMin:-2147483648,rawMax:2147483647},ne={min:-Number.MAX_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,isInteger:!0,rawMin:-Number.MAX_SAFE_INTEGER,rawMax:Number.MAX_SAFE_INTEGER},le={min:-34e37,max:12e37,isInteger:!1,rawMin:-34e37,rawMax:12e37},oe={min:-Number.MAX_VALUE,max:Number.MAX_VALUE,isInteger:!1,rawMin:-Number.MAX_VALUE,rawMax:Number.MAX_VALUE};function ce(e,t,r){switch(e){case a.Mh.INVALID_CODED_VALUE:return`Value ${r} is not in the coded domain - field: ${t.name}, domain: ${JSON.stringify(t.domain)}`;case a.Mh.VALUE_OUT_OF_RANGE:return`Value ${r} is out of the range of valid values - field: ${t.name}, domain: ${JSON.stringify(t.domain)}`;case ee.INVALID_TYPE:return`Value ${r} is not a valid value for the field type - field: ${t.name}, type: ${t.type}, nullable: ${t.nullable}`;case K.OUT_OF_RANGE:{const{min:e,max:s}=se(t.type);return`Value ${r} is out of range for the number type - field: ${t.name}, type: ${t.type}, value range is ${e} to ${s}`}}}function ue(e){return!!e&&["raster.itempixelvalue","raster.servicepixelvalue"].some((t=>e.toLowerCase().startsWith(t)))}function de(e){const t=e?.match(/{[^}]+}/g);return t?t.map((e=>e.slice(1,-1).split(":")[0].trim())):[]}},61760:(e,t,r)=>{r.d(t,{PU:()=>n,YW:()=>o,ex:()=>i,hv:()=>l,zp:()=>a}),r(34727);var s=r(90629);r(87317),r(91829);const i=2.4;function a(e){return(0,s.PN)(e*i)}function n(e){return(0,s.Lz)(e)/i}function l(e,t,r){const s=Math.sqrt(e**2+t**2)/r;return s>1?0:3/(Math.PI*r**2)*(1-s**2)**2}function o(e){return"function"==typeof e?e:e?t=>+t[e]:()=>1}},9760:(e,t,r)=>{r.d(t,{A:()=>h});var s=r(90237),i=r(66552),a=r(25482),n=r(10107),l=(r(44208),r(53966),r(87811),r(93223)),o=r(40608);const c=new i.J({esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation",esriClassifyDefinedInterval:"defined-interval"}),u=new i.J({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:"percent-of-total",esriNormalizeByField:"field"});let d=class extends a.A{constructor(e){super(e),this.type="class-breaks-definition",this.breakCount=null,this.classificationField=null,this.classificationMethod=null,this.normalizationField=null,this.normalizationType=null}set standardDeviationInterval(e){"standard-deviation"===this.classificationMethod&&this._set("standardDeviationInterval",e)}set definedInterval(e){"defined-interval"===this.classificationMethod&&this._set("definedInterval",e)}};(0,s._)([(0,l.e)({classBreaksDef:"class-breaks-definition"})],d.prototype,"type",void 0),(0,s._)([(0,n.MZ)({json:{write:!0}})],d.prototype,"breakCount",void 0),(0,s._)([(0,n.MZ)({json:{write:!0}})],d.prototype,"classificationField",void 0),(0,s._)([(0,n.MZ)({type:String,json:{read:c.read,write:c.write}})],d.prototype,"classificationMethod",void 0),(0,s._)([(0,n.MZ)({json:{write:!0}})],d.prototype,"normalizationField",void 0),(0,s._)([(0,n.MZ)({json:{read:u.read,write:u.write}})],d.prototype,"normalizationType",void 0),(0,s._)([(0,n.MZ)({value:null,json:{write:!0}})],d.prototype,"standardDeviationInterval",null),(0,s._)([(0,n.MZ)({value:null,json:{write:!0}})],d.prototype,"definedInterval",null),d=(0,s._)([(0,o.$)("esri.rest.support.ClassBreaksDefinition")],d);const h=d},84892:(e,t,r)=>{r.d(t,{t:()=>n});var s=r(53966);const i=()=>s.A.getLogger("esri.rest.support.generateRendererUtils");function a(e,t){return Number(e.toFixed(t))}function n(e,t){const{normalizationTotal:r}=e;return{classBreaks:l(e,t),normalizationTotal:r}}function l(e,t){const r=e.definition,{classificationMethod:s,normalizationType:i,definedInterval:n}=r,l=r.breakCount??1,u=[];let d=e.values;if(0===d.length)return[];d=d.sort(((e,t)=>e-t));const[h,p]=t??[d.at(0),d.at(-1)];if("equal-interval"===s)if(d.length>=l){const e=(p-h)/l;let t=h;for(let r=1;r<l;r++){const s=a(h+r*e,6);u.push({minValue:t,maxValue:s,label:o(t,s,i)}),t=s}u.push({minValue:t,maxValue:p,label:o(t,p,i)})}else d.forEach((e=>{u.push({minValue:e,maxValue:e,label:o(e,e,i)})}));else if("natural-breaks"===s){const t=function(e){const t=[],r=[];let s=Number.MIN_VALUE,i=1,a=-1;for(let n=0;n<e.length;n++){const l=e[n];l===s?(i++,r[a]=i):null!==l&&(t.push(l),s=l,i=1,r.push(i),a++)}return{uniqueValues:t,valueFrequency:r}}(d),r=e.valueFrequency||t.valueFrequency,s=c(t.uniqueValues,r,l);let n=h;for(let e=1;e<l;e++)if(t.uniqueValues.length>e){const r=a(t.uniqueValues[s[e]],6);u.push({minValue:n,maxValue:r,label:o(n,r,i)}),n=r}u.push({minValue:n,maxValue:p,label:o(n,p,i)})}else if("quantile"===s)if(d.length>=l&&h!==p){let e=h,t=Math.ceil(d.length/l),r=0;for(let s=1;s<l;s++){let a=t+r-1;a>d.length&&(a=d.length-1),a<0&&(a=0),u.push({minValue:e,maxValue:d[a],label:o(e,d[a],i)}),e=d[a],r+=t,t=Math.ceil((d.length-r)/(l-s))}u.push({minValue:e,maxValue:p,label:o(e,p,i)})}else{let e=-1;for(let t=0;t<d.length;t++){const r=d[t];r!==e&&(e=r,u.push({minValue:e,maxValue:r,label:o(e,r,i)}),e=r)}}else if("standard-deviation"===s){const e=function(e){let t=0;for(let r=0;r<e.length;r++)t+=e[r];return t/=e.length,t}(d),t=function(e,t){let r=0;for(let s=0;s<e.length;s++){const i=e[s];r+=(i-t)*(i-t)}return r/=e.length,Math.sqrt(r)}(d,e);if(0===t)u.push({minValue:d[0],maxValue:d[0],label:o(d[0],d[0],i)});else{const r=function(e,t,r,s,i){let a=Math.max(s-e,t-s)/i/r;return a=a>=1?1:a>=.5?.5:.25,a}(h,p,l,e,t)*t;let s=0,n=h;for(let t=l;t>=1;t--){const l=a(e-(t-.5)*r,6);u.push({minValue:n,maxValue:l,label:o(n,l,i)}),n=l,s++}let c=a(e+.5*r,6);u.push({minValue:n,maxValue:c,label:o(n,c,i)}),n=c,s++;for(let t=1;t<=l;t++)c=s===2*l?p:a(e+(t+.5)*r,6),u.push({minValue:n,maxValue:c,label:o(n,c,i)}),n=c,s++}}else if("defined-interval"===s){if(!n)return u;const[e,r]=t??[d.at(0),d.at(-1)],s=Math.ceil((r-e)/n);let l=e;for(let t=1;t<s;t++){const r=a(e+t*n,6);u.push({minValue:l,maxValue:r,label:o(l,r,i)}),l=r}u.push({minValue:l,maxValue:r,label:o(l,r,i)})}return u}function o(e,t,r){let s=null;return s=e===t?r&&"percent-of-total"===r?e+"%":e.toString():r&&"percent-of-total"===r?e+"% - "+t+"%":e+" - "+t,s}function c(e,t,r){const s=e.length,i=[];r>s&&(r=s);for(let e=0;e<r;e++)i.push(Math.round(e*s/r-1));i.push(s-1);let a=u(i,e,t,r);return function(e,t,r,s,i,a){let n=0,l=0,o=0,c=0,u=!0;for(let h=0;h<2&&u;h++){0===h&&(u=!1);for(let h=0;h<a-1;h++)for(;r[h+1]+1!==r[h+2];){r[h+1]=r[h+1]+1;const a=d(h,r,s,i);o=a.sbMean,n=a.sbSdcm;const p=d(h+1,r,s,i);if(c=p.sbMean,l=p.sbSdcm,!(n+l<t[h]+t[h+1])){r[h+1]=r[h+1]-1;break}t[h]=n,t[h+1]=l,e[h]=o,e[h+1]=c,u=!0}for(let h=a-1;h>0;h--)for(;r[h]!==r[h-1]+1;){r[h]=r[h]-1;const a=d(h-1,r,s,i);o=a.sbMean,n=a.sbSdcm;const p=d(h,r,s,i);if(c=p.sbMean,l=p.sbSdcm,!(n+l<t[h-1]+t[h])){r[h]=r[h]+1;break}t[h-1]=n,t[h]=l,e[h-1]=o,e[h]=c,u=!0}}return u}(a.mean,a.sdcm,i,e,t,r)&&(a=u(i,e,t,r)),i}function u(e,t,r,s){let i=[],a=[],n=[],l=0;const o=[],c=[];for(let i=0;i<s;i++){const s=d(i,e,t,r);o.push(s.sbMean),c.push(s.sbSdcm),l+=c[i]}let u,h=l,p=!0;for(;p||l<h;){p=!1,i=[];for(let t=0;t<s;t++)i.push(e[t]);for(let r=0;r<s;r++)for(let i=e[r]+1;i<=e[r+1];i++)if(u=t[i],r>0&&i!==e[r+1]&&Math.abs(u-o[r])>Math.abs(u-o[r-1]))e[r]=i;else if(r<s-1&&e[r]!==i-1&&Math.abs(u-o[r])>Math.abs(u-o[r+1])){e[r+1]=i-1;break}h=l,l=0,a=[],n=[];for(let i=0;i<s;i++){a.push(o[i]),n.push(c[i]);const s=d(i,e,t,r);o[i]=s.sbMean,c[i]=s.sbSdcm,l+=c[i]}}if(l>h){for(let t=0;t<s;t++)e[t]=i[t],o[t]=a[t],c[t]=n[t];l=h}return{mean:o,sdcm:c}}function d(e,t,r,s){let a=0,n=0;for(let i=t[e]+1;i<=t[e+1];i++){const e=s[i];a+=r[i]*e,n+=e}n<=0&&i().warn("Exception in Natural Breaks calculation");const l=a/n;let o=0;for(let i=t[e]+1;i<=t[e+1];i++)o+=s[i]*(r[i]-l)**2;return{sbMean:l,sbSdcm:o}}},50201:(e,t,r)=>{r.d(t,{gV:()=>g,Jc:()=>b,$r:()=>y,rb:()=>f}),r(59456),r(49186);var s=r(90629),i=r(88930),a=r(16930),n=r(62577),l=r(21325),o=r(30524),c=r(61760),u=(r(97770),r(71386));r(5503),r(84952),r(27865),r(43281),r(56400),new Set(["integer","small-integer"]);var d=r(1873),h=r(86738);let p=null;const m=/^(?<hh>([0-1][0-9])|([2][0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?([.](?<ms>\d+))?$/;function y(e,t,r,s){const i=(0,l.d9)(r)?(0,l.Vp)(r):null,a=i?Math.round((i.valid[1]-i.valid[0])/t.scale[0]):null;return e.map((e=>{const r=new h.A(e.geometry);return(0,n.Gy)(t,r,r),e.geometry=i?function(e,t,r){return e.x<0?e.x+=t:e.x>r&&(e.x-=t),e}(r,a??0,s[0]):r,e}))}function g(e,t=18,r,i,a){const n=new Float64Array(i*a);t=Math.round((0,s.Lz)(t));let l=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY;const u=(0,c.YW)(r);for(const{geometry:r,attributes:s}of e){const{x:e,y:d}=r,h=Math.max(0,e-t),p=Math.max(0,d-t),m=Math.min(a,d+t),y=Math.min(i,e+t),g=+u(s);for(let r=p;r<m;r++)for(let s=h;s<y;s++){const a=r*i+s,u=(0,c.hv)(s-e,r-d,t)*g,h=n[a]+=u;l=Math.min(l,h),o=Math.max(o,h)}}return{min:l,max:o}}function f(e){const t=m.exec(e);if(!t)return null;const{hh:r,mm:s,ss:a,ms:n}=t.groups;return Number(r)*i.vf.hours+Number(s)*i.vf.minutes+Number(a)*i.vf.seconds+Number(n||0)}async function b(e,t,r=!0){if(!t)return[];const{field:s,field2:i,field3:n,fieldDelimiter:l,fieldInfos:c,timeZone:h}=e,m=s&&c?.find((e=>e.name.toLowerCase()===s.toLowerCase())),y=!!m&&(0,o.OH)(m),g=!!m&&function(e){return(0,o.vE)(e)||(0,o.zD)(e)||(0,o.Ah)(e)}(m),b=e.valueExpression,v=e.normalizationType,_=e.normalizationField,S=e.normalizationTotal,T=[],M=e.viewInfoParams;let L=null,w=null;if(b){if(!p){const{arcadeUtils:e}=await(0,u.lw)();p=e}p.hasGeometryOperations(b)&&await p.enableGeometryOperations(),L=p.createFunction(b),w=M?p.getViewInfo({viewingMode:M.viewingMode,scale:M.scale,spatialReference:new a.A(M.spatialReference)}):null}const I=e.fieldInfos,A=t[0]&&"declaredClass"in t[0]&&"esri.Graphic"===t[0].declaredClass||!I?null:{fields:I};return t.forEach((e=>{const t=e.attributes;let a;if(b){const t=A?{...e,layer:A}:e,r=p.createExecContext(t,w,h);a=p.executeFunction(L,r)}else t&&(a=t[s],i?(a=`${(0,d.gJ)(a)}${l}${(0,d.gJ)(t[i])}`,n&&(a=`${a}${l}${(0,d.gJ)(t[n])}`)):"string"==typeof a&&r&&(g?a=a?new Date(a).getTime():null:y&&(a=a?f(a):null)));if(v&&"number"==typeof a&&isFinite(a)){const e=t&&parseFloat(t[_]);a=(0,d.zS)(a,v,e,S)}T.push(a)})),T}},1873:(e,t,r)=>{r.d(t,{$y:()=>B,Ak:()=>$,FM:()=>v,G_:()=>f,Rw:()=>C,Vb:()=>y,b3:()=>F,gJ:()=>m,jM:()=>R,lv:()=>N,oZ:()=>E,qg:()=>b,sU:()=>z,z9:()=>g,zS:()=>k});var s=r(9760),i=r(84892);const a="<Null>",n="equal-interval",l=1,o=5,c=10,u=/\s*(\+|-)?((\d+(\.\d+)?)|(\.\d+))\s*/gi,d=new Set(["esriFieldTypeDate","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong","esriFieldTypeOID","esriFieldTypeBigInteger"]),h=new Set(["esriFieldTypeTimeOnly","esriFieldTypeDateOnly"]),p=["min","max","avg","stddev","count","sum","variance","nullcount","median"];function m(e){return null==e||"string"==typeof e&&!e?a:e}function y(e){const t=null!=e.normalizationField||null!=e.normalizationType,r=null!=e.minValue||null!=e.maxValue,s=!!e.sqlExpression&&e.supportsSQLExpression;return!t&&!r&&!s}function g(e){const{outStatisticTypes:t}=e,r=e.returnDistinct?[...new Set(e.values)]:e.values,s=r.filter((e=>null!=e)).sort(),i=s.length,a={count:i,min:s[0],max:s[i-1]};return e.supportsNullCount&&(a.nullcount=r.length-i),!e.percentileParams||t?.include?.length&&!t.include.includes("median")||t?.exclude?.length&&t.exclude.includes("median")||(a.median=b(r,e.percentileParams)),a}function f(e){const{values:t,useSampleStdDev:r,supportsNullCount:s,outStatisticTypes:i}=e;let a=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY,l=null,o=null,c=null,u=null,d=0;const h=null==e.minValue?-1/0:e.minValue,p=null==e.maxValue?1/0:e.maxValue;for(const e of t)Number.isFinite(e)?e>=h&&e<=p&&(l=null===l?e:l+e,a=Math.min(a,e),n=Math.max(n,e),d++):"string"==typeof e&&d++;if(d&&null!=l){o=l/d;let e=0;for(const r of t)Number.isFinite(r)&&r>=h&&r<=p&&(e+=(r-o)**2);u=r?d>1?e/(d-1):0:d>0?e/d:0,c=Math.sqrt(u)}else a=null,n=null;const m={avg:o,count:d,max:n,min:a,stddev:c,sum:l,variance:u};return s&&(m.nullcount=t.length-d),!e.percentileParams||i?.include?.length&&!i.include.includes("median")||i?.exclude?.length&&i.exclude.includes("median")||(m.median=b(t,e.percentileParams)),m}function b(e,t){const{fieldType:r,value:s,orderBy:i,isDiscrete:a}=t,n=v(r,"desc"===i);if(0===(e=[...e].filter((e=>null!=e)).sort(((e,t)=>n(e,t)))).length)return null;if(s<=0)return e[0];if(s>=1)return e[e.length-1];const l=(e.length-1)*s,o=Math.floor(l),c=o+1,u=l%1,d=e[o],h=e[c];return c>=e.length||a||"string"==typeof d||"string"==typeof h?d:d*(1-u)+h*u}function v(e,t){if(e){if(d.has(e))return O(t);if(h.has(e))return A(t,!1);if("esriFieldTypeTimestampOffset"===e)return function(e){return e?L:M}(t);const r=A(t,!0);if("esriFieldTypeString"===e)return r;if("esriFieldTypeGUID"===e||"esriFieldTypeGlobalID"===e)return(e,t)=>r(x(e),x(t))}const r=t?1:-1,s=O(t),i=A(t,!0),a=T(t);return(e,t)=>"number"==typeof e&&"number"==typeof t?s(e,t):"string"==typeof e&&"string"==typeof t?i(e,t):a(e,t)??r}const _=(e,t)=>null==e?null==t?0:1:null==t?-1:null,S=(e,t)=>null==e?null==t?0:-1:null==t?1:null;function T(e){return e?_:S}const M=(e,t)=>S(e,t)??(e===t?0:new Date(e).getTime()-new Date(t).getTime()),L=(e,t)=>_(e,t)??(e===t?0:new Date(t).getTime()-new Date(e).getTime()),w=(e,t)=>S(e,t)??(e===t?0:e<t?-1:1),I=(e,t)=>_(e,t)??(e===t?0:e<t?1:-1);function A(e,t){if(!t)return e?I:w;const r=T(e);return e?(e,t)=>{const s=r(e,t);return null!=s?s:(e=e.toUpperCase())>(t=t.toUpperCase())?-1:e<t?1:0}:(e,t)=>{const s=r(e,t);return null!=s?s:(e=e.toUpperCase())<(t=t.toUpperCase())?-1:e>t?1:0}}const V=(e,t)=>_(e,t)??t-e,D=(e,t)=>S(e,t)??e-t;function O(e){return e?V:D}function x(e){return e.slice(24,36)+e.slice(19,23)+e.slice(16,18)+e.slice(14,16)+e.slice(11,13)+e.slice(9,11)+e.slice(6,8)+e.slice(4,6)+e.slice(2,4)+e.slice(0,2)}function E(e,t,r){let s;for(s in e)t?.include?.length&&!t.include.includes(s)||t?.exclude?.length&&t.exclude.includes(s)?delete e[s]:p.includes(s)&&(Number.isFinite(e[s])||(e[s]=null));return r?(["avg","stddev","variance"].forEach((t=>{null!=e[t]&&(e[t]=Math.ceil(e[t]??0))})),e):e}function F(e){const t={};for(let r of e)(null==r||"string"==typeof r&&""===r.trim())&&(r=null),null==t[r]?t[r]={count:1,data:r}:t[r].count++;return{count:t}}function G(e){return"coded-value"!==e?.type?[]:e.codedValues.map((e=>e.code))}function N(e,t,r,s){const i=e.count,a=[];if(r&&t){const e=[],r=G(t[0]);for(const i of r)if(t[1]){const r=G(t[1]);for(const a of r)if(t[2]){const r=G(t[2]);for(const t of r)e.push(`${m(i)}${s}${m(a)}${s}${m(t)}`)}else e.push(`${m(i)}${s}${m(a)}`)}else e.push(i);for(const t of e)i.hasOwnProperty(t)||(i[t]={data:t,count:0})}for(const e in i){const t=i[e];a.push({value:t.data,count:t.count,label:t.label})}return{uniqueValueInfos:a}}function k(e,t,r,s){let i=null;switch(t){case"log":0!==e&&(i=Math.log(e)*Math.LOG10E);break;case"percent-of-total":Number.isFinite(s)&&0!==s&&(i=e/s*100);break;case"field":Number.isFinite(r)&&0!==r&&(i=e/r);break;case"natural-log":e>0&&(i=Math.log(e));break;case"square-root":e>0&&(i=e**.5)}return i}function C(e,t,r){const s=U({field:t.field,normalizationType:t.normalizationType,normalizationField:t.normalizationField,classificationMethod:t.classificationMethod,standardDeviationInterval:t.standardDeviationInterval,definedInterval:t.definedInterval,breakCount:t.numClasses||o});return e=function(e,t,r){const s=t??-1/0,i=r??1/0;return e.filter((e=>Number.isFinite(e)&&e>=s&&e<=i))}(e,t.minValue,t.maxValue),(0,i.t)({definition:s,values:e,normalizationTotal:t.normalizationTotal},r)}function U(e){const{breakCount:t,field:r,normalizationField:i,normalizationType:a}=e,o=e.classificationMethod||n,c="standard-deviation"===o?e.standardDeviationInterval||l:void 0,u="defined-interval"===o?e.definedInterval:void 0;return new s.A({breakCount:t,classificationField:r,classificationMethod:o,normalizationField:"field"===a?i:void 0,normalizationType:a,standardDeviationInterval:c,definedInterval:u})}function R(e,t){let r=e.classBreaks;const s=r.length,i=r[0]?.minValue,a=r[s-1]?.maxValue,n="standard-deviation"===t,l=u;return r=r.map((e=>{const t=e.label,r={minValue:e.minValue,maxValue:e.maxValue,label:t};if(n&&t){const e=t.match(l),s=e?.map((e=>+e.trim()))??[];2===s.length?(r.minStdDev=s[0],r.maxStdDev=s[1],s[0]<0&&s[1]>0&&(r.hasAvg=!0)):1===s.length&&(t.includes("<")?(r.minStdDev=null,r.maxStdDev=s[0]):t.includes(">")&&(r.minStdDev=s[0],r.maxStdDev=null))}return r})),{minValue:i,maxValue:a,classBreakInfos:r,normalizationTotal:e.normalizationTotal}}function B(e,t){const r=z(e,t);if(null==r.min&&null==r.max)return{bins:[],minValue:r.min,maxValue:r.max,normalizationTotal:t.normalizationTotal};const s=r.intervals,i=r.min??0,a=r.max??0,n=s.map(((e,t)=>({minValue:s[t][0],maxValue:s[t][1],count:0})));for(const t of e)if(null!=t&&t>=i&&t<=a){const e=$(s,t);e>-1&&n[e].count++}return{bins:n,minValue:i,maxValue:a,normalizationTotal:t.normalizationTotal}}function z(e,t,r=!1){const{field:s,classificationMethod:i,standardDeviationInterval:a,definedInterval:n,normalizationType:l,normalizationField:o,normalizationTotal:u,minValue:d,maxValue:h}=t,p=t.numBins||c;let m=null,g=null,b=null;if(i&&"equal-interval"!==i||l){const{classBreaks:t}=C(e,{field:s,normalizationType:l,normalizationField:o,normalizationTotal:u,classificationMethod:i,standardDeviationInterval:a,definedInterval:n,minValue:d,maxValue:h,numClasses:p},null!=d&&null!=h?[d,h]:void 0);m=t[0].minValue,g=t[t.length-1].maxValue,b=t.map((e=>[e.minValue,e.maxValue]))}else{if(null!=d&&null!=h)m=d,g=h;else{const t=f({values:e,minValue:d,maxValue:h,useSampleStdDev:!l,supportsNullCount:y({normalizationType:l,normalizationField:o,minValue:d,maxValue:h})});m=t.min??null,g=t.max??null}b=function(e,t,r){const s=(t-e)/r,i=[];let a,n=e;for(let e=1;e<=r;e++)a=n+s,a=Number(a.toFixed(16)),i.push([n,e===r?t:a]),n=a;return i}(m??0,g??0,p)}if(r){const e=b.at(-1)[1];b.push([e,e])}return{min:m,max:g,intervals:b}}function $(e,t){let r=-1;for(let s=e.length-1;s>=0;s--)if(t>=e[s][0]){r=s;break}return r}},69309:(e,t,r)=>{function s(e){if(!e)return;const t=e.match(i);return t?.groups?t.groups.doubleQuoted??t.groups.singleQuoted??t.groups.dotNotation:void 0}r.d(t,{D:()=>a,o:()=>s});const i=/^(\$feature\[(?:"(?<doubleQuoted>[^"]+)"|'(?<singleQuoted>[^']+)')\]|\$feature\.(?<dotNotation>[a-zA-Z_][a-zA-Z0-9_]*))$/i;function a(e){return e.match(n)?.[1]?.replace(/\\'/g,"'")??null}const n=/^hash\(\$feature\['((\\'|[^'])+)'\]\) \* 8\.381e-8$/},71386:(e,t,r)=>{r.d(t,{Ad:()=>d,QY:()=>o,lw:()=>u,xR:()=>h}),r(59456);var s=r(66131),i=r(49186),a=r(53966),n=r(16930);const l=["geometry","scale","timeProperties"];function o(e,t){if(null!=t)for(const r of l)t.hasArcadeDependency(r)&&e.add(r);return e}let c;function u(){return c||(c=(async()=>{const e=await Promise.all([r.e(708),r.e(655),r.e(9564)]).then(r.bind(r,59564));return{arcade:e.arcade,arcadeUtils:e,Dictionary:e.Dictionary,Feature:e.arcadeFeature}})()),c}const d=(e,t,r)=>p.create(e,t,r,null,["$feature","$view"],[]),h=(e,t,r,s)=>p.create(e,t,r,s,["$feature","$view"],[]);class p{constructor(e,t,r,s,i,a,n){this._dependencies=new Map,this.services=null,this.script=e,this.evaluate=s;const l=Array.isArray(a)?a:a?.fields;this.fields=l??[],this._syntaxTree=r,this._arcade=t,this._arcadeFeature=i,this._spatialReference=n,this._dependencies.set("geometry",t.scriptTouchesGeometry(this._syntaxTree)),this._dependencies.set("scale",this._arcade.referencesMember(this._syntaxTree,"scale")),this._dependencies.set("timeProperties",this._arcade.scriptUsesViewProperties(this._syntaxTree,["timeProperties"]))}static async create(e,t,r,l,o,c){const{arcade:d,Feature:h,Dictionary:m}=await u(),y=t instanceof n.A?t:n.A.fromJSON(t);let g;try{g=d.parseScript(e,c)}catch(t){return a.A.getLogger("esri.support.arcadeOnDemand").error(new i.A("arcade-bad-expression","Failed to parse arcade script",{script:e,error:t})),null}const f=o.reduce(((e,t)=>({...e,[t]:null})),{});let b=null;null!=l&&(b=new m(l),b.immutable=!0,f.$config=null);const v=d.scriptUsesGeometryEngine(g),_=v&&d.enableGeometrySupport(),S=d.scriptUsesFeatureSet(g)&&d.enableFeatureSetSupport(),T=d.scriptIsAsync(g),M=T&&d.enableAsyncSupport(),L={vars:f,spatialReference:y,useAsync:!!M};await Promise.all([_,S,M]);const w=new Set;await d.loadDependentModules(w,g,null,T,v);const I=new m;I.immutable=!1,I.setField("scale",0);const A=d.compileScript(g,L);return new p(e,d,g,((e,t)=>{const r=e.$view?.timeZone;if("$view"in e&&e.$view){let t;if(I.setField("scale","object"==typeof e.$view&&"scale"in e.$view?e.$view.scale:void 0),"object"==typeof e.$view&&"timeProperties"in e.$view&&null!=e.$view.timeProperties){const{currentStart:i,currentEnd:a}=e.$view.timeProperties;t=new m({currentStart:null!=i?null!=r?s.lY.epochToArcadeDate(i,r):s.lY.unknownEpochToArcadeDate(i):void 0,currentEnd:null!=a?null!=r?s.lY.epochToArcadeDate(a,r):s.lY.unknownEpochToArcadeDate(a):void 0,startIncluded:!0,endIncluded:!0})}I.setField("timeProperties",t),e.$view=I}return b&&(e.$config=b),A({vars:e,spatialReference:y,services:t,timeZone:r})}),new h,r,y)}repurposeFeature(e){return e.geometry&&!e.geometry.spatialReference&&(e.geometry.spatialReference=this._spatialReference),this._arcadeFeature.repurposeFromGraphicLikeObject(e.geometry,e.attributes,{fields:this.fields}),this._arcadeFeature}references(e){return this._dependencies.get(e)??!1}}},43281:(e,t,r)=>{r.d(t,{H:()=>n,q:()=>a});var s=r(2741),i=r(10838);async function a(e){if(!e)return;const t=e.includes("-vector")?e.slice(0,e.indexOf("-vector")):e.includes("-3d")?e.slice(0,e.indexOf("-3d")):e,r=await(0,i.ud)("esri/t9n/basemaps");return r[e]||r[t]}const n={satellite:{id:"satellite",classic:!0,get thumbnailUrl(){return(0,s.s)("esri/images/basemap/satellite.jpg")},baseMapLayers:[{id:"satellite-base-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Imagery",showLegend:!1,visibility:!0,opacity:1}]},hybrid:{id:"hybrid",classic:!0,get thumbnailUrl(){return(0,s.s)("esri/images/basemap/hybrid.jpg")},baseMapLayers:[{id:"hybrid-base-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Imagery",showLegend:!1,visibility:!0,opacity:1},{id:"hybrid-reference-layer",styleUrl:"https://cdn.arcgis.com/sharing/rest/content/items/30d6b8271e1849cd9c3042060001f425/resources/styles/root.json",layerType:"VectorTileLayer",title:"Hybrid Reference Layer",isReference:!0,showLegend:!1,visibility:!0,opacity:1}]},terrain:{id:"terrain",classic:!0,get thumbnailUrl(){return(0,s.s)("esri/images/basemap/terrain.jpg")},baseMapLayers:[{id:"terrain-base-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/World_Terrain_Base/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Terrain Base",showLegend:!1,visibility:!0,opacity:1},{id:"terrain-reference-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/Reference/World_Reference_Overlay/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Reference Overlay",isReference:!0,showLegend:!1,visibility:!0,opacity:1}]},oceans:{id:"oceans",classic:!0,get thumbnailUrl(){return(0,s.s)("esri/images/basemap/oceans.jpg")},baseMapLayers:[{id:"oceans-base-layer",url:"//services.arcgisonline.com/arcgis/rest/services/Ocean/World_Ocean_Base/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Ocean Base",showLegend:!1,visibility:!0,opacity:1},{id:"oceans-reference-layer",url:"//services.arcgisonline.com/arcgis/rest/services/Ocean/World_Ocean_Reference/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Ocean Reference",isReference:!0,showLegend:!1,visibility:!0,opacity:1}]},osm:{id:"osm",classic:!0,get thumbnailUrl(){return(0,s.s)("esri/images/basemap/osm.jpg")},baseMapLayers:[{id:"osm-base-layer",layerType:"OpenStreetMap",title:"Open Street Map",showLegend:!1,visibility:!0,opacity:1}]},"dark-gray-vector":{id:"dark-gray-vector",classic:!0,get thumbnailUrl(){return(0,s.s)("esri/images/basemap/dark-gray-vector.jpg")},baseMapLayers:[{id:"dark-gray-base-layer",styleUrl:"https://cdn.arcgis.com/sharing/rest/content/items/5e9b3685f4c24d8781073dd928ebda50/resources/styles/root.json",layerType:"VectorTileLayer",title:"Dark Gray Base",visibility:!0,opacity:1},{id:"dark-gray-reference-layer",styleUrl:"https://cdn.arcgis.com/sharing/rest/content/items/747cb7a5329c478cbe6981076cc879c5/resources/styles/root.json",layerType:"VectorTileLayer",title:"Dark Gray Reference",isReference:!0,visibility:!0,opacity:1}]},get"dark-gray"(){return{...this["dark-gray-vector"],id:"dark-gray"}},"gray-vector":{id:"gray-vector",classic:!0,get thumbnailUrl(){return(0,s.s)("esri/images/basemap/gray-vector.jpg")},baseMapLayers:[{id:"gray-base-layer",styleUrl:"https://cdn.arcgis.com/sharing/rest/content/items/291da5eab3a0412593b66d384379f89f/resources/styles/root.json",layerType:"VectorTileLayer",title:"Light Gray Base",visibility:!0,opacity:1},{id:"gray-reference-layer",styleUrl:"https://cdn.arcgis.com/sharing/rest/content/items/1768e8369a214dfab4e2167d5c5f2454/resources/styles/root.json",layerType:"VectorTileLayer",title:"Light Gray Reference",isReference:!0,visibility:!0,opacity:1}]},get gray(){return{...this["gray-vector"],id:"gray"}},"streets-vector":{id:"streets-vector",classic:!0,get thumbnailUrl(){return(0,s.s)("esri/images/basemap/streets-vector.jpg")},baseMapLayers:[{id:"streets-vector-base-layer",styleUrl:"//cdn.arcgis.com/sharing/rest/content/items/de26a3cf4cc9451298ea173c4b324736/resources/styles/root.json",layerType:"VectorTileLayer",title:"World Streets",visibility:!0,opacity:1}]},get streets(){return{...this["streets-vector"],id:"streets"}},"topo-vector":{id:"topo-vector",classic:!0,get thumbnailUrl(){return(0,s.s)("esri/images/basemap/topo-vector.jpg")},baseMapLayers:[{id:"world-hillshade-layer",url:"//services.arcgisonline.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Hillshade",showLegend:!1,visibility:!0,opacity:1},{id:"topo-vector-base-layer",styleUrl:"//cdn.arcgis.com/sharing/rest/content/items/7dc6cea0b1764a1f9af2e679f642f0f5/resources/styles/root.json",layerType:"VectorTileLayer",title:"World Topo",visibility:!0,opacity:1}]},get topo(){return{...this["topo-vector"],id:"topo"}},"streets-night-vector":{id:"streets-night-vector",classic:!0,get thumbnailUrl(){return(0,s.s)("esri/images/basemap/streets-night.jpg")},baseMapLayers:[{id:"streets-night-vector-base-layer",styleUrl:"//cdn.arcgis.com/sharing/rest/content/items/86f556a2d1fd468181855a35e344567f/resources/styles/root.json",layerType:"VectorTileLayer",title:"World Streets Night",visibility:!0,opacity:1}]},"streets-relief-vector":{id:"streets-relief-vector",classic:!0,get thumbnailUrl(){return(0,s.s)("esri/images/basemap/streets-relief.jpg")},baseMapLayers:[{id:"world-hillshade-layer",url:"//services.arcgisonline.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Hillshade",showLegend:!1,visibility:!0,opacity:1},{id:"streets-relief-vector-base-layer",styleUrl:"//www.arcgis.com/sharing/rest/content/items/b266e6d17fc345b498345613930fbd76/resources/styles/root.json",title:"World Streets Relief",layerType:"VectorTileLayer",visibility:!0,opacity:1}]},"streets-navigation-vector":{id:"streets-navigation-vector",classic:!0,get thumbnailUrl(){return(0,s.s)("esri/images/basemap/streets-navigation.jpg")},baseMapLayers:[{id:"streets-navigation-vector-base-layer",styleUrl:"//cdn.arcgis.com/sharing/rest/content/items/63c47b7177f946b49902c24129b87252/resources/styles/root.json",layerType:"VectorTileLayer",title:"World Streets Navigation",visibility:!0,opacity:1}]},"topo-3d":{id:"topo-3d",is3d:!0,get thumbnailUrl(){return(0,s.s)("esri/images/basemap/topo-3d.png")},baseMapLayers:[{id:"topo-3d-base-layer",styleUrl:"https://www.arcgis.com/sharing/rest/content/items/1e7d1784d1ef4b79ba6764d0bd6c3150/resources/styles/root.json",layerType:"VectorTileLayer",title:"Topographic",visibility:!0,opacity:1},{id:"topo-3d-trees",title:"Trees",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_Trees_Thematic_v1/SceneServer",itemId:"f75fef56b2d944fe92ef9f7737b4f953",layerType:"ArcGISSceneServiceLayer"},{id:"topo-3d-places-and-labels",title:"Places and Labels",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_DarkLabels_v1/SceneServer",itemId:"a84404ad39c64c328d0596e361ec459b",layerType:"ArcGISSceneServiceLayer"},{id:"topo-3d-buildings",title:"Buildings",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_Buildings_v1/SceneServer",itemId:"ca0470dbbddb4db28bad74ed39949e25",layerType:"ArcGISSceneServiceLayer"}]},"navigation-3d":{id:"navigation-3d",is3d:!0,get thumbnailUrl(){return(0,s.s)("esri/images/basemap/navigation-3d.jpg")},baseMapLayers:[{id:"navigation-3d-base-layer",styleUrl:"https://www.arcgis.com/sharing/rest/content/items/ccc904ff872b4144b94934e55e32784b/resources/styles/root.json",layerType:"VectorTileLayer",title:"Navigation",visibility:!0,opacity:1},{id:"navigation-3d-places-and-labels",title:"Places and Labels",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_DarkLabels_v1/SceneServer",itemId:"a84404ad39c64c328d0596e361ec459b",layerType:"ArcGISSceneServiceLayer"},{id:"navigation-3d-buildings",title:"Buildings",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_Buildings_v1/SceneServer",itemId:"ca0470dbbddb4db28bad74ed39949e25",layerType:"ArcGISSceneServiceLayer"}]},"streets-3d":{id:"streets-3d",is3d:!0,get thumbnailUrl(){return(0,s.s)("esri/images/basemap/streets-3d.png")},baseMapLayers:[{id:"streets-3d-base-layer",styleUrl:"https://www.arcgis.com/sharing/rest/content/items/198298c4c64c4cb19de5b46aa00c198d/resources/styles/root.json",layerType:"VectorTileLayer",title:"Streets",visibility:!0,opacity:1},{id:"streets-3d-places-and-labels",title:"Places and Labels",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_DarkLabels_v1/SceneServer",itemId:"a84404ad39c64c328d0596e361ec459b",layerType:"ArcGISSceneServiceLayer"},{id:"streets-3d-buildings",title:"Buildings",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_Buildings_v1/SceneServer",itemId:"ca0470dbbddb4db28bad74ed39949e25",layerType:"ArcGISSceneServiceLayer"}]},"osm-3d":{id:"osm-3d",is3d:!0,get thumbnailUrl(){return(0,s.s)("esri/images/basemap/osm-3d.png")},baseMapLayers:[{id:"osm-3d-base-layer",styleUrl:"https://www.arcgis.com/sharing/rest/content/items/8628d259c9d14bdc848771c23c513940/resources/styles/root.json",layerType:"VectorTileLayer",title:"OpenStreetMap",visibility:!0,opacity:1},{id:"osm-3d-trees",title:"Trees",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_Trees_Thematic_v1/SceneServer",itemId:"f75fef56b2d944fe92ef9f7737b4f953",layerType:"ArcGISSceneServiceLayer"},{id:"osm-3d-places-and-labels",title:"Places and Labels",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_DarkLabels_v1/SceneServer",itemId:"a84404ad39c64c328d0596e361ec459b",layerType:"ArcGISSceneServiceLayer"},{id:"osm-3d-buildings",title:"Buildings",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_Buildings_v1/SceneServer",itemId:"ca0470dbbddb4db28bad74ed39949e25",layerType:"ArcGISSceneServiceLayer"}]},"gray-3d":{id:"gray-3d",is3d:!0,get thumbnailUrl(){return(0,s.s)("esri/images/basemap/gray-3d.png")},baseMapLayers:[{id:"gray-3d-base-layer",styleUrl:"https://www.arcgis.com/sharing/rest/content/items/01a14b466345455ba4176d2e6390db92/resources/styles/root.json",layerType:"VectorTileLayer",title:"Streets",visibility:!0,opacity:1},{id:"gray-3d-places-and-labels",title:"Places and Labels",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_DarkLabels_v1/SceneServer",itemId:"a84404ad39c64c328d0596e361ec459b",layerType:"ArcGISSceneServiceLayer"},{id:"gray-3d-buildings",title:"Buildings",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_Buildings_v1/SceneServer",itemId:"ca0470dbbddb4db28bad74ed39949e25",layerType:"ArcGISSceneServiceLayer"}]},"navigation-dark-3d":{id:"navigation-dark-3d",itemId:"5a1365328b4943f09a54cf5fd1205707",is3d:!0,baseMapLayers:[{id:"navigation-dark-3d-base-layer",styleUrl:"https://www.arcgis.com/sharing/rest/content/items/451a1777ab3f4bf095fae24a117439d9/resources/styles/root.json",layerType:"VectorTileLayer",title:"Navigation Dark"},{id:"navigation-dark-3d-places-and-labels",title:"Places and Labels",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_LightLabels_v1/SceneServer/layers/0",itemId:"f364b70b012a4da5a4b5921e193eac4a",layerType:"ArcGISSceneServiceLayer"},{id:"navigation-dark-3d-buildings",title:"Buildings",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_Buildings_v1/SceneServer",itemId:"ca0470dbbddb4db28bad74ed39949e25",layerType:"ArcGISSceneServiceLayer"}]},"streets-dark-3d":{id:"streets-dark-3d",itemId:"8a4efa2c20484ec9b4557895e65736ff",is3d:!0,baseMapLayers:[{id:"streets-dark-3d-base-layer",styleUrl:"https://www.arcgis.com/sharing/rest/content/items/bc599b6d741a4ac084b7eea7bf8c5938/resources/styles/root.json",layerType:"VectorTileLayer",title:"OpenStreetMap Streets Night (for 3D)"},{id:"streets-dark-3d-places-and-labels",title:"Places and Labels",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_LightLabels_v1/SceneServer",itemId:"f364b70b012a4da5a4b5921e193eac4a",layerType:"ArcGISSceneServiceLayer"},{id:"streets-dark-3d-buildings",title:"Buildings",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_Buildings_v1/SceneServer",itemId:"ca0470dbbddb4db28bad74ed39949e25",layerType:"ArcGISSceneServiceLayer"}]},"dark-gray-3d":{id:"dark-gray-3d",itemId:"a8b7322a5fe94002bb0f5e0eeb0c5c18",is3d:!0,baseMapLayers:[{id:"dark-gray-3d-base-layer",styleUrl:"https://www.arcgis.com/sharing/rest/content/items/4178f71acb934fb89f169e7d667c20c6/resources/styles/root.json",layerType:"VectorTileLayer",title:"OpenStreetMap Dark Gray Canvas (for 3D)"},{id:"dark-gray-3d-places-and-labels",title:"Places and Labels",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_LightLabels_v1/SceneServer/layers/0",itemId:"f364b70b012a4da5a4b5921e193eac4a",layerType:"ArcGISSceneServiceLayer"},{id:"dark-gray-3d-buildings",title:"Buildings",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_Buildings_v1/SceneServer",itemId:"ca0470dbbddb4db28bad74ed39949e25",layerType:"ArcGISSceneServiceLayer"}]},"arcgis-imagery":{get thumbnailUrl(){return(0,s.s)("esri/images/basemap/hybrid.jpg")},title:"Imagery Hybrid",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Imagery",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/World_Imagery/MapServer"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Imagery:Labels",title:"Hybrid Reference Layer",isReference:!0}]},"arcgis-imagery-standard":{get thumbnailUrl(){return(0,s.s)("esri/images/basemap/satellite.jpg")},title:"Imagery",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Imagery",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/World_Imagery/MapServer"}]},"arcgis-imagery-labels":{title:"Hybrid [Reference]",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Imagery:Labels",title:"Hybrid Reference Layer",isReference:!0}]},"arcgis-light-gray":{get thumbnailUrl(){return(0,s.s)("esri/images/basemap/gray-vector.jpg")},title:"Light Gray Canvas",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:LightGray:Base",title:"Light Gray Canvas Base"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:LightGray:Labels",title:"Light Gray Canvas Labels",isReference:!0}]},"arcgis-dark-gray":{get thumbnailUrl(){return(0,s.s)("esri/images/basemap/dark-gray.jpg")},title:"Dark Gray Canvas",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:DarkGray:Base",title:"Dark Gray Canvas Base"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:DarkGray:Labels",title:"Dark Gray Canvas Labels",isReference:!0}]},"arcgis-navigation":{get thumbnailUrl(){return(0,s.s)("esri/images/basemap/streets-navigation.jpg")},title:"Navigation",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Navigation",title:"World Navigation Map"}]},"arcgis-navigation-night":{title:"Navigation (Dark Mode)",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:NavigationNight",title:"World Navigation Map (Dark Mode)"}]},"arcgis-streets":{get thumbnailUrl(){return(0,s.s)("esri/images/basemap/streets-vector.jpg")},title:"Streets",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Streets",title:"World Street Map"}]},"arcgis-streets-night":{get thumbnailUrl(){return(0,s.s)("esri/images/basemap/streets-night.jpg")},title:"Streets (Night)",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:StreetsNight",title:"World Street Map (Night)"}]},"arcgis-streets-relief":{get thumbnailUrl(){return(0,s.s)("esri/images/basemap/streets-relief.jpg")},title:"Streets (with Relief)",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:StreetsRelief:Base",title:"World Street Map (with Relief)"}]},"arcgis-topographic":{get thumbnailUrl(){return(0,s.s)("esri/images/basemap/topo.jpg")},title:"Topographic",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Topographic:Base",title:"World Topographic Map"}]},"arcgis-oceans":{get thumbnailUrl(){return(0,s.s)("esri/images/basemap/oceans.jpg")},title:"Oceans",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Ocean Base",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Ocean/World_Ocean_Base/MapServer"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Oceans:Labels",title:"World Ocean Reference",isReference:!0}]},"osm-standard":{title:"OpenStreetMap",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:Standard",title:"OpenStreetMap"}]},"osm-standard-relief":{title:"OpenStreetMap (with relief)",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},{styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:StandardRelief:Base",layerType:"VectorTileLayer",title:"OpenStreetMap Relief Base"}]},"osm-streets":{title:"OpenStreetMap (Streets)",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:Streets",title:"OpenStreetMap (Streets)"}]},"osm-streets-relief":{title:"OpenStreetMap (Streets with relief)",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},{styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:StreetsRelief:Base",layerType:"VectorTileLayer",title:"OpenStreetMap Relief Base"}]},"osm-light-gray":{title:"OpenStreetMap (Light Gray Canvas)",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:LightGray:Base",title:"OSM (Light Gray Base)"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:LightGray:Labels",title:"OSM (Light Gray Reference)",isReference:!0}]},"osm-dark-gray":{title:"OpenStreetMap (Dark Gray Canvas)",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:DarkGray:Base",title:"OSM (Dark Gray Base)"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:DarkGray:Labels",title:"OSM (Dark Gray Reference)",isReference:!0}]},"arcgis-terrain":{title:"Terrain with Labels",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Terrain:Base",title:"World Terrain Base"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Terrain:Detail",title:"World Terrain Reference",isReference:!0}]},"arcgis-community":{title:"Community",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Community",title:"Community"}]},"arcgis-charted-territory":{title:"Charted Territory",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:ChartedTerritory:Base",title:"Charted Territory"}]},"arcgis-colored-pencil":{title:"Colored Pencil",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:ColoredPencil",title:"Colored Pencil"}]},"arcgis-nova":{title:"Nova",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Nova",title:"Nova"}]},"arcgis-modern-antique":{title:"Modern Antique",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:ModernAntique:Base",title:"Modern Antique"}]},"arcgis-midcentury":{title:"Mid-Century",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Midcentury",title:"Mid-Century"}]},"arcgis-newspaper":{title:"Newspaper",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Newspaper",title:"Newspaper"}]},"arcgis-hillshade-light":{title:"Hillshade",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"}]},"arcgis-hillshade-dark":{title:"Hillshade (Dark)",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade (Dark)",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade_Dark/MapServer"}]},"arcgis-human-geography":{title:"Human Geography",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:HumanGeography:Base",title:"Human Geography Base"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:HumanGeography:Detail",title:"Human Geography Detail",isReference:!0},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:HumanGeography:Label",title:"Human Geography Label",isReference:!0}]},"arcgis-human-geography-dark":{title:"Human Geography (Dark)",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:HumanGeographyDark:Base",title:"Human Geography Dark Base"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:HumanGeographyDark:Detail",title:"Human Geography Dark Detail",isReference:!0},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:HumanGeographyDark:Label",title:"Human Geography Dark Label",isReference:!0}]}}},54218:(e,t,r)=>{function s(e){return"number"==typeof e}function i(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}function a(e){return"boolean"==typeof e}function n(e){return"string"==typeof e||e instanceof String}function l(e){return null==e||n(e)}function o(e){return Array.isArray(e)}function c(e){return"esri.Graphic"===e?.declaredClass}function u(e){return e instanceof Date}r.d(t,{$P:()=>u,CO:()=>l,DU:()=>c,Et:()=>s,Fq:()=>i,Kg:()=>n,Lm:()=>a,cy:()=>o}),r(61956)}}]);
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
-
*/
|
|
5
|
-
import{ASourceChunk as e}from"./ASourceChunk.js";import{FeatureSetReaderJSON as t}from"../../../support/FeatureSetReaderJSON.js";function r(e){return"localEdit"===e.chunkId}class s extends e{constructor(e,t){super(),this.metadata=e,this.removed=new Set,this.overriddenIds=new Set,this._features=[],this.chunkId=t,this.normalizedChunkId=t}get reader(){return t.fromOptimizedFeatures(this._features,this.metadata)}get queryInfo(){return{}}get first(){return!1}get end(){return!1}get isTiled(){return!1}get lastLocalEditDropped(){return this._lastLocalEditDropped}applyOverrides(e){this._onChange();const{reader:t,removed:r}=e,s=[],d=new Set,o=t.getCursor(),n=new Set(r);for(this.overriddenIds.clear();o.next();){const e=o.readOptimizedFeatureWorldSpace(),t=e.objectId;s.push(e),d.add(t),this.overriddenIds.add(t),this.removed.delete(t)}for(const i of this._features){const e=i.objectId;n.has(e)||d.has(e)||(s.push(i),this.overriddenIds.add(e))}this._features=s;for(const i of d.values())this.removed.delete(i);for(const i of r)this.removed.add(i),this.overriddenIds.add(i)}removeOverrides(e){this._lastLocalEditDropped=performance.now(),this._onChange();const t=e.reader.getCursor(),r=new Set;for(;t.next();){const e=t.getObjectId();this.overriddenIds.has(e)&&(r.add(e),this.overriddenIds.delete(e))}this._features=this._features.filter((e=>!r.has(e.objectId)))}getTileReader(e){if(!this._features.length)return null;const t=this.queryFeaturesInBounds(e.bounds);return t.setTransformForDisplay(e.transform),t}_onChange(){this.invalidate()}}export{s as OverrideChunk,r as isLocalEditChunk};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
-
*/
|
|
5
|
-
import{InputHandler as t}from"../../../input/InputHandler.js";class e extends t{constructor(t,e){super(!0),this.key=t,this.registerIncoming("key-down",e,(t=>this._handleKeyDown(t)))}_handleKeyDown(t){t.data.key===this.key&&(this.activate(),t.stopPropagation())}}export{e as SingleKey};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
-
*/
|
|
5
|
-
import{SingleKey as e}from"./SingleKey.js";class t extends e{constructor(e,t,i){super(t,i),this.view=e}activate(){this.view.goTo({heading:0}).catch((()=>{}))}}export{t as SingleKeyResetHeading};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
-
*/
|
|
5
|
-
import{SingleKey as t}from"./SingleKey.js";class e extends t{constructor(t,e,i){super(e,i),this.view=t}activate(){this.view.goTo({tilt:0}).catch((()=>{}))}}export{e as SingleKeyResetTilt};
|