1import{q as f}from"./Collection.XTGzrw0m.js";import{h as M}from"./signal.CNCfU7Hw.js";import{e as b}from"./loadUtils.UXg7w8dj.js";import{a as m}from"./lazyLayerLoader.BvHMOApY.js";import S from"./PortalItem.D-ssY5nf.js";import{selectLayerClassPath as A}from"./portalLayers.kOQ8T3pI.js";import{a as w}from"./FeatureLayer.Rero7Yi6.js";import"./tslib.es6.DE7sHGTU.js";import"./watch.Bm7ppCyQ.js";import"./promiseUtils.B8iquLU0.js";import"./Evented.CYC2QHoA.js";import"./Accessor.BTL_h35l.js";import"./Handles.Gz6fbR5V.js";import"./ensureType.DOB94OB9.js";import"./MapUtils.ByGR5OEc.js";import"./jsonUtils.B-4OpQKo.js";import"./serviceJSON.BfSwko1x.js";import"./request.CL30k7wk.js";import"./preload-helper.DUy5TosT.js";import"./urlUtils.CUYiAP0x.js";import"./ApplicationBase.CrCQnyk-.js";import"./jsonUtils.B4QwgV9d.js";import"./Extent.BqDXmVIY.js";import"./decorators.BgJOoJ7q.js";import"./Point.DH4pkLkT.js";import"./JSONSupport.DlIM8mVi.js";import"./SpatialReference.BqDfd_Uw.js";import"./units.qx8n5Lm6.js";import"./jsonMap.Cj_zPzlf.js";import"./assets.DxUN0c1B.js";import"./writer.DVFEf-_U.js";import"./reader.C1yFEON7.js";import"./Multipoint.pqbk_gXW.js";import"./Polyline.rX0t6pLN.js";import"./aaBoundingRect.CNAcqwLK.js";import"./mathUtils.BVEoJObz.js";import"./common.DQOJ18NT.js";import"./curveUtils.DL9DIFF5.js";import"./jsonTypeUtils.BMajGMaz.js";import"./IdentityManager.Ci_Dn4wO.js";import"./intl.B9mfKCyc.js";import"./date.CKLmtBmt.js";import"./locale.DtyAsN1C.js";import"./UnknownTimeZone.BvgIZG-e.js";import"./messages.BJf5xWXE.js";import"./number.Bvj3uAgn.js";import"./modeUtils.B_pZ-XYS.js";import"./Widget.BTueAbYW.js";import"./Promise.DcnIWDIo.js";import"./reactiveUtils.C_AXm9l7.js";import"./uuid.KYjebW4v.js";import"./projector.DFSTkVWG.js";import"./sanitizerUtils.DUfgdzey.js";import"./index.DnGmZW0U.js";import"./widget.D60HGQRQ.js";import"./Portal.CIGKk9RT.js";import"./Loadable.Bws0x47-.js";import"./apiKeyUtils.CcBXifwy.js";import"./basemapUtils.DEq5cI9b.js";import"./utils.DkhaMEtM.js";import"./colorUtils.Ci6C1k20.js";import"./screenUtils.CL3Q5gEG.js";import"./mat4.BkgZZ2Bi.js";import"./vec3f64.DtVJxAlh.js";import"./BasemapToggleViewModel.B-kniBfQ.js";import"./projectionUtils.ZJ-CgySX.js";import"./Clonable.B-J2fbxH.js";import"./geodesicConstants.Lr4d7bqZ.js";import"./basemapEnsureType.DcBBenmD.js";import"./collectionUtils.eQQiBZ0d.js";import"./asyncUtils.C5cZVh_C.js";import"./layerUtils.B_duibac.js";import"./catalogUtils.Bweq3yo2.js";import"./Layer.CoF-yMUy.js";import"./Identifiable.DDDo_Jcn.js";import"./TimeExtent.CFa3Sa_e.js";import"./timeUtils.shqvsQfy.js";import"./globalCss.CiED4ZoB.js";import"./jsonContext.-ksYjGQY.js";import"./Viewpoint.BofC5yxi.js";import"./Cyclical.FO6PmvfA.js";import"./typeUtils.B8IsfDnv.js";import"./Bookmark.9kjN2m8d.js";import"./GoTo.7kIDwGBn.js";import"./goToUtils.BJYYMyE3.js";import"./Heading.CT6j1tcV.js";import"./LayerListItem.BiE8HxRE.js";import"./actionUtils.CRVWyCHf.js";import"./layerListUtils.CrO8uhQ1.js";import"./CollectionFlattener.CwrgrcCm.js";import"./MultiOriginJSONSupport.BT6e2kOS.js";import"./Graphic.BtKchjcE.js";import"./fieldUtils.CsMvl9_d.js";import"./ChartMediaInfoValueSeries.DuhTg7h0.js";import"./fieldFormatUtils.B4jNqjVG.js";import"./enumeration.DNqDobXp.js";import"./Color.BvNzw9r7.js";import"./ActionToggle.9WkG48xa.js";import"./createFeatureId.CVwTD0fV.js";import"./graphicInstanceUtils.DSSRnEsP.js";import"./typeUtils.pS-uRs69.js";import"./TextSymbol.BLxtbmpc.js";import"./utils.CwFMkuD-.js";import"./aaBoundingBox.BsicYnpi.js";import"./labelingInfo.DjhhMwRd.js";import"./layerContainerType.CSXZNpHb.js";import"./FeatureTemplate.COWR9Hch.js";import"./labelUtils.D_ZvDTiJ.js";import"./defaults.DJKeMwlc.js";import"./jsonUtils.CjidHrhG.js";import"./commonProperties.D41qggYx.js";import"./ElevationInfo.Duh_pnK0.js";import"./unitConversionUtils.CCKfawUO.js";import"./lengthUtils.ChTemyAT.js";import"./AttributeTableTemplate.DH6rSbYY.js";import"./featureLayerUtils.BVyHW_50.js";import"./Field.CC71sTDF.js";import"./featureQueryAll.BG9C2vwe.js";import"./Query.DiA5mvS2.js";import"./FullTextSearch.Dhn557m-.js";import"./UniqueValueRenderer.DCJ8N08m.js";import"./commonProperties.BlwdqSU8.js";import"./diffUtils.Bfkdmp8q.js";import"./SizeVariable.BG48TSgb.js";import"./visualVariableUtils.1AmapG1x.js";import"./ColorStop.DYJ0JSIT.js";import"./styleUtils.D1PR0Mx3.js";import"./AttachmentQuery.B_27sXi2.js";import"./fieldProperties.Bx5DildE.js";import"./formUtils.Bg497X7W.js";import"./scaleUtils.CCtwI2JK.js";import"./displayFilterUtils.DCmBvKFJ.js";import"./FeatureEffect.isgV3sC0.js";import"./jsonUtils.BCjHZQHX.js";import"./parser.YUJSy8hg.js";import"./FeatureReductionCluster.BSHnzBzL.js";import"./jsonUtils.BXbsQA9r.js";import"./typeUtils.lI2Y4mbR.js";import"./ClassBreakInfo.CX4JLnaA.js";import"./LRUCache.1Vg7BqYv.js";import"./Version.B7oHzJcQ.js";import"./ArcadeExpression.bSY605lI.js";import"./TimeOnly.DqoJSlHd.js";
1import"./utils.i-wn9JZr.js";import"./HeatmapColorStop.Bl2Nu4bo.js";import"./vec4.Gvka553n.js";import"./vec4f64.QIYyFL-Q.js";import"./MD5.MtSiOt06.js";import"./TimeInterval.DyoARUf-.js";import"./timeUnitKebabDictionary.cFhY4QZi.js";import"./popupUtils.CQ9etC0F.js";import"./vec3.7hVTg7VA.js";import"./projectVectorToVector.D-vCtmBh.js";import"./sunUtils.CrwRnuR2.js";import"./quat.DKw23qck.js";import"./quatf64.CCm9z-pX.js";import"./plane.jpRMpcae.js";import"./ray.BCvpp3eX.js";import"./vec2f64.rIxtbMRN.js";import"./glsl.CX8y9w8U.js";import"./layerViewUtils.tprjgwAQ.js";import"./FeatureType.d5e_Lh0m.js";import"./zscale.Cd00evd3.js";import"./OperationalLayer.B3b-Z60v.js";import"./PortalLayer.DLoHh3aD.js";import"./portalItemUtils.C8ceIUzd.js";import"./ScaleRangeLayer.71C3g4bx.js";import"./originUtils.CqikUR5u.js";import"./multiOriginJSONSupportUtils.C0wm8_Yw.js";import"./HeightModelInfo.Cyu3vfsq.js";import"./saveUtils.BwsE-W6d.js";import"./BuildingFilter.RMqnnC4t.js";import"./elevationInfoUtils.CsvfSkXr.js";import"./memoize.DmxaQ-k8.js";import"./Compass.BjqgF5IS.js";import"./CompassViewModel.B60rwmAp.js";import"./VirtualLighting.DdRh8Amb.js";import"./VirtualLighting.fEcfzzsK.js";import"./Slider.ByU1T4No.js";import"./Expand.Dq4B6bha.js";import"./FloorFilterViewModel.C7hXGxOs.js";import"./Widgets.DUnEKpMI.js";import"./utils.BIV1puVB.js";import"./LayerList.DaEWWWu5.js";import"./ReactiveMap.DPaNIxxM.js";import"./LayerListViewModel.Dlka7UQY.js";import"./utils.BQBvadb7.js";import"./ListItem.DLmCmFeG.js";import"./Legend.J0RgdYqH.js";import"./LegendViewModel.DqYpa-Av.js";import"./OverrideHelper.C1RvvQyR.js";import"./OptimizedGeometry.CUyzB9mu.js";import"./memoryEstimations.CHMitnlx.js";import"./densificationConstants.DEoenpp0.js";import"./definitions.Dz507dcR.js";import"./mat2d.D0tXWEV0.js";import"./mat2df32.Dpt2CT5P.js";import"./quantizationUtils.CtuFU78O.js";import"./colorUtils.B9gYYFGg.js";import"./pixelRangeUtils.BvOub3JO.js";import"./floorFilterUtils.DKzVzLpH.js";import"./sublayerUtils.BEQnBRaB.js";import"./cimSymbolUtils.PMFF3WSF.js";import"./symbolUtils.Ci_d01Ki.js";import"./gfxUtils.BGgJUzt5.js";import"./svgUtils.Cu1M7f7-.js";import"./utils.By6JILh5.js";import"./primitives.Bxh8jMf3.js";import"./utils.B3oZn0Zh.js";import"./utils.CBvl8tx2.js";import"./imageUtils.Brmy21sV.js";import"./densifyCurvedGeometry.CNsJhkRy.js";import"./utils.BgE3Soxq.js";import"./LineOfSightAnalysis.B77y59Ir.js";import"./Analysis.Bu2z2PeY.js";import"./AnalysisOriginWebScene.DxOXK2yg.js";import"./intersectorUtilsConversions.D4updRcR.js";import"./persistable.CfCyo_aU.js";import"./AnalysisViewModelMixin.DlpOGsFh.js";import"./actions.EcMdpRwd.js";import"./legacyIcon.CCFiKXBT.js";import"./GeolocationPositioning.BdOPuiIv.js";import"./geolocationUtils.ttpprvga.js";import"./project.BMdVf4sZ.js";import"./utils.DFIiMAlU.js";import"./utils.CvCO0RW8.js";import"./defaultUnit.C6mpEW0d.js";import"./getDefaultUnitForView.PtYS4sfq.js";import"./ScaleBarViewModel.Bnw-Ut9g.js";import"./geodesicUtils.Cf_Zrl_s.js";import"./normalizeUtils.CQ7ncpIw.js";import"./boundedPlane.CMvviIY7.js";import"./lineSegment.Y38tksI4.js";import"./throttle.DNEU4j9w.js";import"./SliceAnalysis.SnJVsEjL.js";import"./weather.BBix_uJx.js";import"./SunnyWeather.BmIH2IqX.js";import"./Zoom.D19Wr8JP.js";import"./Search.BrwWRoJ_.js";import"./popupAdapter.BY1Y7dUK.js";import"./SearchViewModel.CL2yNKlt.js";import"./geometryUtils.B6jxA83s.js";import"./SuggestLocationsParameters.CdmCpDGB.js";import"./fetchService.CrLS25DD.js";import"./PortalItemResource.B0CVSPHI.js";import"./isFeatureGraphicOrigin.YA2hudPe.js";import"./workers.C2gutYJJ.js";import"./workers.D9m60-6w.js";import"./Queue.BpwmYGnC.js";import"./EditBusLayer.Bm7VWd7x.js";import"./FeatureSet.pGBXuVKt.js";import"./serviceCapabilitiesUtils.B3fwU4ib.js";import"./sqlVisitor.Bl0dhg-G.js";import"./Subtype.BJIMvHiV.js";function v(r){return c(r,"notes")}function h(r){return c(r,"markup")}function C(r){return c(r,"route")}function c(r,e){return!(!r.layerType||r.layerType!=="ArcGISFeatureLayer")&&r.featureCollectionType===e}async function W(r,e,a){if(!e)return;const t=e.map(i=>E(i,a)),o=await Promise.allSettled(t);for(const i of o)i.status==="rejected"||i.value&&r.add(i.value)}const F={ArcGISDimensionLayer:"DimensionLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISSceneServiceLayer:"SceneLayer",ArcGISTiledElevationServiceLayer:"ElevationLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",BuildingSceneLayer:"BuildingSceneLayer",CatalogLayer:"CatalogLayer",CSV:"CSVLayer",DefaultTileLayer:"TileLayer",GaussianSplatLayer:"GaussianSplatLayer",GeoJSON:"GeoJSONLayer",GroupLayer:"GroupLayer",IntegratedMesh3DTilesLayer:"IntegratedMesh3DTilesLayer",Object3DTilesLayer:"UnsupportedLayer",IntegratedMeshLayer:"IntegratedMeshLayer",KML:"KMLLayer",LineOfSightLayer:"LineOfSightLayer",MediaLayer:"MediaLayer",OGCFeatureLayer:"OGCFeatureLayer",OrientedImageryLayer:"OrientedImageryLayer",PointCloudLayer:"PointCloudLayer",RasterDataLayer:"UnsupportedLayer",VectorTileLayer:"VectorTileLayer",ViewshedLayer:"ViewshedLayer",Voxel:"VoxelLayer",WCS:"WCSLayer",WFS:"WFSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},O={ArcGISTiledElevationServiceLayer:"ElevationLayer",DefaultTileLayer:"ElevationLayer",RasterDataElevationLayer:"UnsupportedLayer"},V={ArcGISFeatureLayer:"FeatureLayer"},k={ArcGISImageServiceLayer:"UnsupportedLayer",ArcGISMapServiceLayer:"UnsupportedLayer",ArcGISSceneServiceLayer:"SceneLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",DefaultTileLayer:"TileLayer",OpenStreetMap:"OpenStreetMapLayer",VectorTileLayer:"VectorTileLayer",WCS:"UnsupportedLayer",WMS:"UnsupportedLayer",WebTiledLayer:"WebTileLayer"},D={IntegratedMesh3DTilesLayer:"IntegratedMesh3DTilesLayer"},d={ArcGISAnnotationLayer:"UnsupportedLayer",ArcGISDimensionLayer:"UnsupportedLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISStreamLayer:"StreamLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",ArcGISVideoLayer:"VideoLayer",BingMapsAerial:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",CatalogLayer:"CatalogLayer",CSV:"CSVLayer",DefaultTileLayer:"TileLayer",GeoJSON:"GeoJSONLayer",GeoRSS:"GeoRSSLayer",GroupLayer:"GroupLayer",KML:"KMLLayer",KnowledgeGraphLayer:"KnowledgeGraphLayer",MediaLayer:"MediaLayer",OGCFeatureLayer:"OGCFeatureLayer",OrientedImageryLayer:"OrientedImageryLayer",get ParquetLayer(){return M("parquetlayer-persistence-en
1abled")?"ParquetLayer":"UnsupportedLayer"},SubtypeGroupLayer:"SubtypeGroupLayer",VectorTileLayer:"VectorTileLayer",WCS:"WCSLayer",WFS:"WFSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},I={ArcGISFeatureLayer:"FeatureLayer",SubtypeGroupTable:"SubtypeGroupLayer"},g={ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",BingMapsAerial:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",DefaultTileLayer:"TileLayer",OpenStreetMap:"OpenStreetMapLayer",VectorTileLayer:"VectorTileLayer",WCS:"WCSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},B={...d,LinkChartLayer:"LinkChartLayer"},U={...I},x={...g};async function E(r,e){return R(await K(r,e),r,e)}async function R(r,e,a){const t=new r;return t.read(e,a.context),t.type==="group"&&(e.layerType==="GroupLayer"?await P(t,e,a):s(e)?q(t,e,a.context):T(e)&&await J(t,e,a.context)),await w(t,a.context),t}async function K(r,e){const a=e.context,t=N(a);let o=r.layerType||r.type;!o&&e?.defaultLayerType&&(o=e.defaultLayerType);const i=t[o];let p=i?m[i]:m.UnknownLayer;if(s(r)){const n=a?.portal;if(r.itemId){const y=new S({id:r.itemId,portal:n});await y.load();const l=(await A(y,new b)).className||"UnknownLayer";p=m[l]}}else o==="ArcGISFeatureLayer"?v(r)||h(r)?p=m.MapNotesLayer:C(r)?p=m.RouteLayer:T(r)&&(p=m.GroupLayer):r.wmtsInfo?.url&&r.wmtsInfo.layerIdentifier?p=m.WMTSLayer:o==="WFS"&&r.wfsInfo?.version!=="2.0.0"&&(p=m.UnsupportedLayer);return p()}function T(r){return r.layerType!=="ArcGISFeatureLayer"||s(r)?!1:(r.featureCollection?.layers?.length??0)>1}function s(r){return r.type==="Feature Collection"}function N(r){let e;switch(r.origin){case"web-scene":switch(r.layerContainerType){case"basemap-base-layers":e=k;break;case"basemap-ground-layers":e=D;break;case"ground":e=O;break;case"tables":e=V;break;default:e=F}break;case"link-chart":switch(r.layerContainerType){case"basemap-base-layers":e=x;break;case"tables":e=U;break;default:e=B}break;default:switch(r.layerContainerType){case"basemap-base-layers":e=g;break;case"tables":e=I;break;default:e=d}}return e}async function P(r,e,a){const t=new f,o=W(t,Array.isArray(e.layers)?e.layers:[],a);try{try{if(await o,r.type==="group")return r.layers.addMany(t),r}catch(i){r.destroy();for(const p of t)p.destroy();throw i}}catch(i){throw i}}function q(r,e,a){e.itemId&&(r.portalItem=new S({id:e.itemId,portal:a?.portal}),r.when(()=>{const t=o=>{const i=o.layerId;G(o,r,e,i,a);const p=e.featureCollection?.layers?.[i];p&&o.read(p,a)};r.layers?.forEach(t),r.tables?.forEach(t)}))}async function J(r,e,a){const t=m.FeatureLayer,o=await t(),i=e.featureCollection,p=i?.showLegend,n=i?.layers?.map((y,l)=>{const L=new o;L.read(y,a);const u={...a,ignoreDefaults:!0};return G(L,r,e,l,u),p!=null&&L.read({showLegend:p},u),L});r.layers.addMany(n??[])}function G(r,e,a,t,o){r.read({id:`${e.id}-sublayer-${t}`,visibility:a.visibleLayers?.includes(t)??!0},o)}export{P as populateGroupLayer,W as populateOperationalLayers};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.