@arcgis/core 4.33.0-next.20250205 → 4.33.0-next.20250207

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.
Files changed (205) hide show
  1. package/arcade.js +1 -1
  2. package/assets/components/assets/icon/dualImageArea16.json +1 -0
  3. package/assets/components/assets/icon/dualImageArea24.json +1 -0
  4. package/assets/components/assets/icon/dualImageArea32.json +1 -0
  5. package/assets/components/assets/icon/dualImageDistance16.json +1 -0
  6. package/assets/components/assets/icon/dualImageDistance24.json +1 -0
  7. package/assets/components/assets/icon/dualImageDistance32.json +1 -0
  8. package/assets/components/assets/icon/dualImageLocation16.json +1 -0
  9. package/assets/components/assets/icon/dualImageLocation24.json +1 -0
  10. package/assets/components/assets/icon/dualImageLocation32.json +1 -0
  11. package/assets/esri/core/workers/RemoteClient.js +1 -1
  12. package/assets/esri/core/workers/chunks/{24a86c52c8bdd0b5eb4d.js → 09a99c556089c166d1f8.js} +1 -1
  13. package/assets/esri/core/workers/chunks/0a8e388e96af44deeabb.js +1 -0
  14. package/assets/esri/core/workers/chunks/12d6baeffd55a98a7c75.js +1 -0
  15. package/assets/esri/core/workers/chunks/143a193fa3a6e645c8ac.js +1 -0
  16. package/assets/esri/core/workers/chunks/{9b4f471fcd8a3b5e089f.js → 192569dfa7c0ea8dd864.js} +1 -1
  17. package/assets/esri/core/workers/chunks/{ad215219e5eef8598745.js → 28dbbfc44cc2bdcd221d.js} +1 -1
  18. package/assets/esri/core/workers/chunks/308ec51ff4a66f7fcb0d.js.LICENSE.txt +1 -1
  19. package/assets/esri/core/workers/chunks/{72cf9192292e5c85c6df.js → 32d3657dcae89b740f8b.js} +2 -2
  20. package/assets/esri/core/workers/chunks/{72cf9192292e5c85c6df.js.LICENSE.txt → 32d3657dcae89b740f8b.js.LICENSE.txt} +1 -1
  21. package/assets/esri/core/workers/chunks/333091ab2e267652ed56.js +1 -0
  22. package/assets/esri/core/workers/chunks/354531dc2f0dea2ad96f.js.LICENSE.txt +1 -1
  23. package/assets/esri/core/workers/chunks/35e4af82a08b4eadbfab.js +1 -0
  24. package/assets/esri/core/workers/chunks/369a2b8484a8807bde38.js +1 -0
  25. package/assets/esri/core/workers/chunks/4040158835f9036967cd.js +2 -0
  26. package/assets/esri/core/workers/chunks/{1a2e1a414e651e988435.js.LICENSE.txt → 4040158835f9036967cd.js.LICENSE.txt} +1 -6
  27. package/assets/esri/core/workers/chunks/{8a1e4f65fc81aba7a704.js → 4122d10bc910e888eee1.js} +1 -1
  28. package/assets/esri/core/workers/chunks/433576983754f690bcc7.js +1 -0
  29. package/assets/esri/core/workers/chunks/459af0c3d62c3ed11c19.js +1 -0
  30. package/assets/esri/core/workers/chunks/53810519ff5922b42cd2.js +1 -0
  31. package/assets/esri/core/workers/chunks/5721557a1d8eab23a55b.js +1 -0
  32. package/assets/esri/core/workers/chunks/594d923400fd74881833.js +1 -0
  33. package/assets/esri/core/workers/chunks/{7a0415db78c68d31733f.js → 6039da57a2adedd3b83f.js} +1 -1
  34. package/assets/esri/core/workers/chunks/62a1d60ad4bf6469c4dd.js +1 -0
  35. package/assets/esri/core/workers/chunks/{81aa8cc289fd02ca4da6.js → 7058001bf66f9f3d5d45.js} +1 -1
  36. package/assets/esri/core/workers/chunks/{e8ae8a11d8439e2a66ad.js → 706f867a9034d62a8ef7.js} +1 -1
  37. package/assets/esri/core/workers/chunks/73d03c208242778e67bf.js +1 -0
  38. package/assets/esri/core/workers/chunks/77764ca90bdd13ee2167.js.LICENSE.txt +1 -1
  39. package/assets/esri/core/workers/chunks/{1ab83753d9eec0463461.js → 7b367bb0ed9c218ca595.js} +1 -1
  40. package/assets/esri/core/workers/chunks/{723a9fba144e2fa6d017.js → 7cb09e58bcc537ec1f7a.js} +1 -1
  41. package/assets/esri/core/workers/chunks/8191dd3d7451b2e7b95e.js +1 -0
  42. package/assets/esri/core/workers/chunks/842db06ce62758fab1e7.js +1 -0
  43. package/assets/esri/core/workers/chunks/8c32cee395da0a7b9a8e.js +1 -0
  44. package/assets/esri/core/workers/chunks/8d8f5f08d730270e1165.js +1 -0
  45. package/assets/esri/core/workers/chunks/94225d92afbdb10dfedb.js +1 -0
  46. package/assets/esri/core/workers/chunks/94490937dca566fe2640.js +1 -0
  47. package/assets/esri/core/workers/chunks/{b9ce0049e27a3e1ed9f9.js → 9b2fab133786e5d47631.js} +1 -1
  48. package/assets/esri/core/workers/chunks/9d61590c4d21c7421925.js +1 -0
  49. package/assets/esri/core/workers/chunks/{610b33b7291cffcc4e5d.js → a42ae5d5e5f66d120b4d.js} +1 -1
  50. package/assets/esri/core/workers/chunks/a5e9ea13e844a62b2a7f.js +1 -0
  51. package/assets/esri/core/workers/chunks/b21b152fa15896577242.js.LICENSE.txt +1 -1
  52. package/assets/esri/core/workers/chunks/b43d88b6e7dc4ab13599.js +1 -0
  53. package/assets/esri/core/workers/chunks/{6d5bfcc7856cafe7b043.js → b765670b47d209d7655a.js} +2 -2
  54. package/assets/esri/core/workers/chunks/{6d5bfcc7856cafe7b043.js.LICENSE.txt → b765670b47d209d7655a.js.LICENSE.txt} +1 -1
  55. package/assets/esri/core/workers/chunks/d29c3bf29fcd7fa31f1a.js +1 -0
  56. package/assets/esri/core/workers/chunks/d339dee99c4820b63f39.js +1 -0
  57. package/assets/esri/core/workers/chunks/{9c5c6ecaf5be24279fa5.js → ddc30044f61a2c2df3fe.js} +1 -1
  58. package/assets/esri/core/workers/chunks/de1f3c4b8000c2d73013.js +1 -0
  59. package/assets/esri/core/workers/chunks/e4b3f2d5c43518b0cde7.js +1 -0
  60. package/assets/esri/core/workers/chunks/e5e3b6d00d27b5bb354f.js +1 -0
  61. package/assets/esri/core/workers/chunks/ef6279f5c63ab1e88c71.js +1 -0
  62. package/assets/esri/core/workers/chunks/{0711d3ad4d403bcfdcad.js → f117a89d1f4001a1f9f0.js} +1 -1
  63. package/assets/esri/core/workers/chunks/f14b318bab5efcf43419.js +1 -0
  64. package/assets/esri/core/workers/chunks/f32ca4381e804cc3481e.js +1 -0
  65. package/assets/esri/core/workers/chunks/f9070edd8e0b2a57af79.js +1 -0
  66. package/assets/esri/core/workers/chunks/f9e48205178a5a804d38.js +1 -0
  67. package/assets/esri/themes/base/widgets/_Directions.scss +15 -6
  68. package/assets/esri/themes/base/widgets/_ItemList.scss +6 -0
  69. package/assets/esri/themes/dark/main.css +1 -1
  70. package/assets/esri/themes/light/main.css +1 -1
  71. package/assets/esri/themes/light/view.css +1 -1
  72. package/chunks/WaterSurface.glsl.js +2 -2
  73. package/geometry/operators/projectOperator.js +1 -1
  74. package/geometry/operators/shapePreservingProjectOperator.js +1 -1
  75. package/geometry/support/meshUtils/elevation.js +1 -1
  76. package/interfaces.d.ts +121 -84
  77. package/layers/FeatureLayer.js +1 -1
  78. package/layers/Layer.js +1 -1
  79. package/layers/SubtypeGroupLayer.js +1 -1
  80. package/layers/WCSLayer.js +1 -1
  81. package/layers/graphics/data/FeatureStore.js +1 -1
  82. package/layers/graphics/data/QueryEngineCapabilities.js +1 -1
  83. package/layers/graphics/sources/FeatureLayerSource.js +1 -1
  84. package/layers/graphics/sources/geojson/GeoJSONSourceWorker.js +1 -1
  85. package/layers/graphics/sources/support/MemorySourceWorker.js +1 -1
  86. package/layers/graphics/sources/support/clientSideDefaults.js +1 -1
  87. package/layers/graphics/sources/support/sourceUtils.js +1 -1
  88. package/layers/mixins/BlendLayer.js +1 -1
  89. package/layers/mixins/FeatureLayerBase.js +1 -1
  90. package/layers/mixins/OperationalLayer.js +1 -1
  91. package/layers/mixins/operationalLayerModuleMap.js +1 -1
  92. package/layers/ogc/wcsUtils.js +1 -1
  93. package/layers/support/RasterFunctionTemplate.js +1 -1
  94. package/layers/support/SubtypeSublayer.js +1 -1
  95. package/layers/support/arcadeUtils.js +1 -1
  96. package/layers/support/commonProperties.js +1 -1
  97. package/layers/support/layersCreator.js +1 -1
  98. package/layers/support/rasterDatasets/WCSRaster.js +1 -1
  99. package/layers/support/rasterDatasets/multipartParser.js +1 -1
  100. package/layers/support/rasterDatasets/wcsCapabilitiesParser.js +1 -1
  101. package/layers/support/rasterFunctionUtils.d.ts +2 -1
  102. package/layers/support/rasterFunctionUtils.js +1 -1
  103. package/layers/support/rasterFunctions/creators/createDataManagementFunctions.js +1 -1
  104. package/package.json +2 -2
  105. package/portal/support/layersLoader.js +1 -1
  106. package/portal/support/loadUtils.js +1 -1
  107. package/rest/imageService.js +1 -1
  108. package/rest/support/ImageSampleParameters.js +1 -1
  109. package/rest/support/ImageSampleResult.js +1 -1
  110. package/rest/support/ImageVolumeResult.js +1 -1
  111. package/smartMapping/support/adapters/InMemoryLayerAdapter.js +1 -1
  112. package/smartMapping/support/adapters/support/histogramUtils.js +1 -1
  113. package/support/TablesMixin.js +1 -1
  114. package/support/revision.js +1 -1
  115. package/symbols/cim/CIMSymbolRasterizer.js +1 -1
  116. package/symbols/cim/cimAnalyzer.js +1 -1
  117. package/symbols/cim/fitVectorMarker.js +5 -0
  118. package/symbols/support/previewCIMSymbol.js +1 -1
  119. package/views/2d/engine/webgl/TextureManager.js +1 -1
  120. package/views/2d/engine/webgl/shaderGraph/techniques/heatmap/HeatmapResources.js +1 -1
  121. package/views/2d/layers/FeatureLayerView2D.js +1 -1
  122. package/views/2d/layers/GraphicsLayerView2D.js +1 -1
  123. package/views/2d/layers/ImageryLayerView2D.js +1 -1
  124. package/views/2d/layers/LayerView2D.js +1 -1
  125. package/views/2d/layers/MapImageLayerView2D.js +1 -1
  126. package/views/2d/layers/TileLayerView2D.js +1 -1
  127. package/views/2d/layers/features/schema/SourceSchema.js +1 -1
  128. package/views/2d/layers/features/sources/FeatureSource.js +1 -1
  129. package/views/2d/layers/features/sources/FeatureSourceQueryInfo.js +1 -1
  130. package/views/2d/layers/features/sources/strategies/DrillDownTileLoadStrategy.js +1 -1
  131. package/views/2d/layers/features/sources/strategies/PagedTileLoadStrategy.js +1 -1
  132. package/views/2d/layers/features/sources/strategies/ParquetLoadStrategy.js +1 -1
  133. package/views/2d/layers/features/sources/strategies/SnapshotLoadStrategy.js +1 -1
  134. package/views/2d/layers/features/sources/strategies/StreamLoadStrategy.js +1 -1
  135. package/views/2d/layers/graphics/HighlightGraphicContainer.js +1 -1
  136. package/views/2d/layers/imagery/BaseImageryTileSubView2D.js +1 -1
  137. package/views/2d/layers/support/util.js +1 -1
  138. package/views/3d/environment/ChapmanAtmosphere.js +1 -1
  139. package/views/3d/layers/MediaLayerView3D.js +1 -1
  140. package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
  141. package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
  142. package/views/3d/terrain/OverlayManager.js +1 -1
  143. package/views/3d/terrain/OverlayRenderer.js +1 -1
  144. package/views/3d/terrain/TerrainSurface.js +1 -1
  145. package/views/3d/webgl-engine/Stage.js +1 -1
  146. package/views/3d/webgl-engine/effects/haze/Haze.js +1 -1
  147. package/views/3d/webgl-engine/parts/RenderView.js +1 -1
  148. package/views/3d/webgl-engine/parts/ScreenshotManager.js +1 -1
  149. package/views/LayerViewManager.js +1 -1
  150. package/views/SceneView.js +1 -1
  151. package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceSnappingSourceWorker.js +1 -1
  152. package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTileCache.js +1 -1
  153. package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTileStore.js +1 -1
  154. package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiledFetcher.js +1 -1
  155. package/views/layers/support/MapServiceLayerViewHelper.js +1 -1
  156. package/widgets/Directions.js +1 -1
  157. package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
  158. package/widgets/Editor/EditorViewModel.js +1 -1
  159. package/widgets/Editor/UpdateWorkflow.js +1 -1
  160. package/widgets/Editor/VisibleElements.js +1 -1
  161. package/widgets/Editor/components/FeatureList.js +1 -1
  162. package/widgets/Editor/components/UpdateFeaturePanelContent.js +1 -1
  163. package/widgets/Editor/support/EditorItem.js +1 -1
  164. package/widgets/Editor/workflowUtils.js +1 -1
  165. package/widgets/Editor.js +1 -1
  166. package/widgets/Feature/FeatureExpression/FeatureExpressionViewModel.js +1 -1
  167. package/widgets/Feature/FeatureViewModel.js +1 -1
  168. package/widgets/Feature/support/arcadeFeatureUtils.js +1 -1
  169. package/widgets/OrientedImageryViewer/adapters/sketch/MeasurementAdapter.js +1 -1
  170. package/widgets/OrientedImageryViewer/components/ImageLocationWidget.js +1 -1
  171. package/widgets/Sketch.js +1 -1
  172. package/widgets/support/UtilityNetworkAssociations/UtilityNetworkAssociationsViewModel.js +1 -1
  173. package/assets/esri/core/workers/chunks/07bff9e742f3e5877f3f.js +0 -1
  174. package/assets/esri/core/workers/chunks/1a2e1a414e651e988435.js +0 -2
  175. package/assets/esri/core/workers/chunks/287362f9af132fafe4de.js +0 -1
  176. package/assets/esri/core/workers/chunks/2ea5e5e6c4660a06b516.js +0 -1
  177. package/assets/esri/core/workers/chunks/380d37ceb8cf52bad190.js +0 -1
  178. package/assets/esri/core/workers/chunks/3984bf01f055fc42bfbf.js +0 -1
  179. package/assets/esri/core/workers/chunks/39e38aab86dcee3f79be.js +0 -1
  180. package/assets/esri/core/workers/chunks/41cd1a5c99ab3bbd1fb4.js +0 -1
  181. package/assets/esri/core/workers/chunks/5e7f16b312077ca8c18d.js +0 -1
  182. package/assets/esri/core/workers/chunks/69d307758262e5d7a32e.js +0 -1
  183. package/assets/esri/core/workers/chunks/6ef2514a6b7bbfb8e37d.js +0 -1
  184. package/assets/esri/core/workers/chunks/7e4d72279cc599b7029c.js +0 -1
  185. package/assets/esri/core/workers/chunks/82d26884127ed772cc4b.js +0 -1
  186. package/assets/esri/core/workers/chunks/8438fba57e82e4cc7c11.js +0 -1
  187. package/assets/esri/core/workers/chunks/858b191c078d04232342.js +0 -1
  188. package/assets/esri/core/workers/chunks/918bdba41fa470cf77fd.js +0 -1
  189. package/assets/esri/core/workers/chunks/91d2bdfa6e34c10b7f50.js +0 -1
  190. package/assets/esri/core/workers/chunks/92155d112ebb6a4c6c6e.js +0 -1
  191. package/assets/esri/core/workers/chunks/991e0f619f1f81f94d56.js +0 -1
  192. package/assets/esri/core/workers/chunks/9a27824d94df702e6e28.js +0 -1
  193. package/assets/esri/core/workers/chunks/b1269b51cef3e11c85e3.js +0 -1
  194. package/assets/esri/core/workers/chunks/b33122adfd1fb68f7c0f.js +0 -1
  195. package/assets/esri/core/workers/chunks/bbbe5d6cb8b737811c84.js +0 -1
  196. package/assets/esri/core/workers/chunks/bf26f58210755875748c.js +0 -1
  197. package/assets/esri/core/workers/chunks/c1fd87af3129873369fd.js +0 -1
  198. package/assets/esri/core/workers/chunks/c4c2b94e5cee7b824093.js +0 -1
  199. package/assets/esri/core/workers/chunks/c85374360ac5e169af16.js +0 -1
  200. package/assets/esri/core/workers/chunks/c94ec324ecad77c53a87.js +0 -1
  201. package/assets/esri/core/workers/chunks/d175953337fa655dc6b0.js +0 -1
  202. package/assets/esri/core/workers/chunks/d8c762ca94e3a11b125d.js +0 -1
  203. package/assets/esri/core/workers/chunks/dbc447413ab40a79ba87.js +0 -1
  204. package/assets/esri/core/workers/chunks/e26dc0c1654316bb1558.js +0 -1
  205. package/assets/esri/core/workers/chunks/e410a09650530d7aad10.js +0 -1
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1056,8256],{45475:(t,e,n)=>{n.d(e,{A:()=>f});var i=n(90237),r=n(69622),o=n(4576),s=n(69540),a=n(4902),c=n(25482),u=n(10107),l=(n(44208),n(53966),n(40608));let d=0,g=class extends(c.A.JSONSupportMixin(s.A.ClonableMixin(a.A.IdentifiableMixin(r.A)))){constructor(t){super(t),this.id=`${Date.now().toString(16)}-analysis-${d++}`,this.title=null}get parent(){return this._get("parent")}set parent(t){const e=this.parent;if(null!=e)switch(e.type){case"line-of-sight":case"dimension":case"viewshed":e.releaseAnalysis(this);break;case"2d":case"3d":e.analyses.includes(this)&&e.analyses.remove(this)}this._set("parent",t)}get isEditable(){return this.requiredPropertiesForEditing.every(o.Ru)}};(0,i._)([(0,u.MZ)({type:String,constructOnly:!0,clonable:!1})],g.prototype,"id",void 0),(0,i._)([(0,u.MZ)({type:String})],g.prototype,"title",void 0),(0,i._)([(0,u.MZ)({clonable:!1,value:null})],g.prototype,"parent",null),(0,i._)([(0,u.MZ)({readOnly:!0})],g.prototype,"isEditable",null),g=(0,i._)([(0,l.$)("esri.analysis.Analysis")],g);const f=g},44612:(t,e,n)=>{n.d(e,{xH:()=>s,N1:()=>c}),n(38954);var i=n(51850),r=n(71351),o=(n(62258),n(58083),n(70328),n(97937),n(65215));function s(t,e){return a(t)===a(e)}function a(t){if(null==t)return null;const e=null!=t.layer?t.layer.id:"";let n=null;return n=null!=t.objectId?t.objectId:null!=t.layer&&"objectIdField"in t.layer&&null!=t.layer.objectIdField&&null!=t.attributes?t.attributes[t.layer.objectIdField]:t.uid,null==n?null:`o-${e}-${n}`}n(86305),o.R6,o.HE,o.R6,o.R6,o.R6,n(87582),(0,i.vt)();const c={json:{write:{writer:function(t,e){null!=t?.layer?.objectIdField&&null!=t.attributes&&(e.feature={layerId:t.layer.id,objectId:t.attributes[t.layer.objectIdField]})},target:{"feature.layerId":{type:[Number,String],isRequired:!0},"feature.objectId":{type:[Number,String],isRequired:!0}}},origins:{"web-scene":{read:function(t){if(null!=t.layerId&&null!=t.objectId)return{uid:null,layer:{id:t.layerId,objectIdField:"ObjectId"},attributes:{ObjectId:t.objectId}}}}}}};(0,r.vt)(),(0,i.vt)()},17352:(t,e,n)=>{n.d(e,{b:()=>$,f:()=>m}),n(44208);var i=n(53966),r=n(34727),o=n(4341),s=n(58083),a=n(9093),c=n(38954),u=n(51850),l=n(19419),d=n(88582),g=n(11964),f=n(27921),h=n(71351),p=n(44280),b=n(32114);const y=()=>i.A.getLogger("esri.views.3d.support.geometryUtils.boundedPlane");function v(t=C){return{plane:(0,f.vt)(t.plane),origin:(0,u.o8)(t.origin),basis1:(0,u.o8)(t.basis1),basis2:(0,u.o8)(t.basis2)}}function _(t,e=v()){return m(t.origin,t.basis1,t.basis2,e)}function m(t,e,n,i=v()){return(0,c.c)(i.origin,t),(0,c.c)(i.basis1,e),(0,c.c)(i.basis2,n),M(i),function(t,e){Math.abs((0,c.f)(t.basis1,t.basis2)/((0,c.l)(t.basis1)*(0,c.l)(t.basis2)))>1e-6&&y().warn(e,"Provided basis vectors are not perpendicular"),Math.abs((0,c.f)(t.basis1,L(t)))>1e-6&&y().warn(e,"Basis vectors and plane normal are not perpendicular"),Math.abs(-(0,c.f)(L(t),t.origin)-t.plane[3])>1e-6&&y().warn(e,"Plane offset is not consistent with plane origin")}(i,"fromValues()"),i}function M(t){(0,f.mR)(t.basis2,t.basis1,t.origin,t.plane)}function A(t,e,n){t!==n&&_(t,n);const i=(0,c.h)(b.rq.get(),L(t),e);return(0,c.g)(n.origin,n.origin,i),n.plane[3]-=e,n}function I(t,e=v()){const n=(t[2]-t[0])/2,i=(t[3]-t[1])/2;return(0,c.i)(e.origin,t[0]+n,t[1]+i,0),(0,c.i)(e.basis1,n,0,0),(0,c.i)(e.basis2,0,i,0),(0,f.fA)(0,0,1,0,e.plane),e}function S(t,e,n){return!!(0,f.Ui)(t.plane,e,n)&&P(t,n)}function O(t,e,n){const i=U.get();T(t,e,i,U.get());let o=Number.POSITIVE_INFINITY;for(const s of k){const a=j(t,s,Z.get()),u=b.rq.get();if((0,f.T7)(i,a,u)){const t=(0,c.o)(b.rq.get(),e.origin,u),i=Math.abs((0,r.XM)((0,c.f)(e.direction,t)));i<o&&(o=i,(0,c.c)(n,u))}}return o===Number.POSITIVE_INFINITY?w(t,e,n):n}function w(t,e,n){if(S(t,e,n))return n;const i=U.get(),r=U.get();T(t,e,i,r);let o=Number.POSITIVE_INFINITY;for(const s of k){const a=j(t,s,Z.get()),u=b.rq.get();if((0,f.gv)(i,a,u)){const t=(0,h.kb)(e,u);if(!(0,f.Tj)(r,u))continue;t<o&&(o=t,(0,c.c)(n,u))}}return N(t,e.origin)<o&&E(t,e.origin,n),n}function E(t,e,n){const i=(0,f._I)(t.plane,e,b.rq.get()),r=(0,g.H6)(R(t,t.basis1),i,-1,1,b.rq.get()),o=(0,g.H6)(R(t,t.basis2),i,-1,1,b.rq.get());return(0,c.d)(n,(0,c.g)(b.rq.get(),r,o),t.origin),n}function q(t,e,n){const{origin:i,basis1:r,basis2:o}=t,s=(0,c.d)(b.rq.get(),e,i),a=(0,p.gr)(r,s),u=(0,p.gr)(o,s),l=(0,p.gr)(L(t),s);return(0,c.i)(n,a,u,l)}function N(t,e){const n=q(t,e,b.rq.get()),{basis1:i,basis2:r}=t,o=(0,c.l)(i),s=(0,c.l)(r),a=Math.max(Math.abs(n[0])-o,0),u=Math.max(Math.abs(n[1])-s,0),l=n[2];return a*a+u*u+l*l}function x(t,e){const n=-t.plane[3];return(0,p.gr)(L(t),e)-n}function L(t){return(0,f.Qj)(t.plane)}function P(t,e){const n=(0,c.d)(b.rq.get(),e,t.origin),i=(0,c.k)(t.basis1),r=(0,c.k)(t.basis2),o=(0,c.f)(t.basis1,n),s=(0,c.f)(t.basis2,n);return-o-i<0&&o-i<0&&-s-r<0&&s-r<0}function R(t,e){const n=Z.get();return(0,c.c)(n.origin,t.origin),(0,c.c)(n.vector,e),n}function j(t,e,n){const{basis1:i,basis2:r,origin:o}=t,s=(0,c.h)(b.rq.get(),i,e.origin[0]),a=(0,c.h)(b.rq.get(),r,e.origin[1]);(0,c.g)(n.origin,s,a),(0,c.g)(n.origin,n.origin,o);const u=(0,c.h)(b.rq.get(),i,e.direction[0]),l=(0,c.h)(b.rq.get(),r,e.direction[1]);return(0,c.h)(n.vector,(0,c.g)(u,u,l),2),n}function T(t,e,n,i){const r=L(t);(0,f.mR)(r,e.direction,e.origin,n),(0,f.mR)((0,f.Qj)(n),r,e.origin,i)}const C={plane:(0,f.vt)(),origin:(0,u.fA)(0,0,0),basis1:(0,u.fA)(1,0,0),basis2:(0,u.fA)(0,1,0)},U=new o.I(f.vt),Z=new o.I(g.vt),V=(0,u.vt)(),D=new o.I((()=>v())),k=[{origin:[-1,-1],direction:[1,0]},{origin:[1,-1],direction:[0,1]},{origin:[1,1],direction:[-1,0]},{origin:[-1,1],direction:[0,-1]}],B=(0,a.vt)(),F=(0,a.vt)(),$=Object.freeze(Object.defineProperty({__proto__:null,BoundedPlaneClass:class{constructor(){this.plane=(0,f.vt)(),this.origin=(0,u.vt)(),this.basis1=(0,u.vt)(),this.basis2=(0,u.vt)()}},altitudeAt:x,axisAt:function(t,e,n,i){return function(t,e,n){switch(e){case d._.X:(0,c.c)(n,t.basis1),(0,c.n)(n,n);break;case d._.Y:(0,c.c)(n,t.basis2),(0,c.n)(n,n);break;case d._.Z:(0,c.c)(n,L(t))}return n}(t,n,i)},cameraFrustumCoverage:function(t,e){return(e-t)/e},closestPoint:w,closestPointOnSilhouette:O,copy:_,copyWithoutVerify:function(t,e){(0,c.c)(e.origin,t.origin),(0,c.c)(e.basis1,t.basis1),(0,c.c)(e.basis2,t.basis2),(0,f.C)(e.plane,t.plane)},create:v,distance:function(t,e){return Math.sqrt(N(t,e))},distance2:N,distanceToSilhouette:function(t,e){let n=Number.NEGATIVE_INFINITY;for(const i of k){const r=j(t,i,Z.get()),o=(0,g.kb)(r,e);o>n&&(n=o)}return Math.sqrt(n)},elevate:A,equals:function(t,e){return(0,c.p)(t.basis1,e.basis1)&&(0,c.p)(t.basis2,e.basis2)&&(0,c.p)(t.origin,e.origin)},extrusionContainsPoint:function(t,e){return(0,f.Tj)(t.plane,e)&&P(t,e)},fromAABoundingRect:I,fromValues:m,getExtent:function(t,e){const n=t.basis1[0],i=t.basis2[1],[r,o]=t.origin;return(0,l.fA)(r-n,o-i,r+n,o+i,e)},intersectRay:S,intersectRayClosestSilhouette:function(t,e,n){if(S(t,e,n))return n;const i=O(t,e,b.rq.get());return(0,c.g)(n,e.origin,(0,c.h)(b.rq.get(),e.direction,(0,c.j)(e.origin,i)/(0,c.l)(e.direction))),n},normal:L,projectPoint:E,projectPointLocal:q,rotate:function(t,e,n,i){return t!==i&&_(t,i),(0,s.$0)(F,e,n),(0,c.t)(i.basis1,t.basis1,F),(0,c.t)(i.basis2,t.basis2,F),M(i),i},setAltitudeAt:function(t,e,n,i){const r=x(t,e),o=(0,c.h)(V,L(t),n-r);return(0,c.g)(i,e,o),i},setExtent:function(t,e,n){return I(e,n),A(n,x(t,t.origin),n),n},transform:function(t,e,n){return t!==n&&_(t,n),(0,s.B8)(B,e),(0,s.mg)(B,B),(0,c.t)(n.basis1,t.basis1,B),(0,c.t)(n.basis2,t.basis2,B),(0,c.t)((0,f.Qj)(n.plane),(0,f.Qj)(t.plane),B),(0,c.t)(n.origin,t.origin,e),(0,f.mP)(n.plane,n.plane,n.origin),n},up:C,updateUnboundedPlane:M,wrap:function(t,e,n){const i=D.get();return i.origin=t,i.basis1=e,i.basis2=n,i.plane=(0,f.LV)(0,0,0,0),M(i),i}},Symbol.toStringTag,{value:"Module"}))},97937:(t,e,n)=>{n.d(e,{a:()=>A,c:()=>b,e:()=>_,f:()=>I,g:()=>M,i:()=>q,o:()=>T,s:()=>Z,w:()=>m}),n(44208),n(53966);var i=n(34727),r=n(58083),o=n(38954),s=n(51850),a=n(87317),c=n(91829),u=n(34304),l=n(88582),d=n(71351);function g(t,e){const n=(0,o.l)(t),r=(0,i.YN)(t[2]/n),s=Math.atan2(t[1]/n,t[0]/n);return(0,o.i)(e,n,r,s),e}var f=n(44280),h=n(32114);const p=b();function b(){return(0,c.vt)()}const y=a.e,v=a.e;function _(t,e){return(0,a.c)(e,t)}function m(t){return t}function M(t){return t[3]}function A(t){return t}function I(t,e,n,i){return(0,c.fA)(t,e,n,i)}function S(t,e,n){if(null==e)return!1;if(!w(t,e,O))return!1;let{t0:i,t1:r}=O;if((i<0||r<i&&r>0)&&(i=r),i<0)return!1;if(n){const{origin:t,direction:r}=e;n[0]=t[0]+r[0]*i,n[1]=t[1]+r[1]*i,n[2]=t[2]+r[2]*i}return!0}const O={t0:0,t1:0};function w(t,e,n){const{origin:i,direction:r}=e,o=E;o[0]=i[0]-t[0],o[1]=i[1]-t[1],o[2]=i[2]-t[2];const s=r[0]*r[0]+r[1]*r[1]+r[2]*r[2];if(0===s)return!1;const a=2*(r[0]*o[0]+r[1]*o[1]+r[2]*o[2]),c=a*a-4*s*(o[0]*o[0]+o[1]*o[1]+o[2]*o[2]-t[3]*t[3]);if(c<0)return!1;const u=Math.sqrt(c);return n.t0=(-a-u)/(2*s),n.t1=(-a+u)/(2*s),!0}const E=(0,s.vt)();function q(t,e){return S(t,e,null)}function N(t,e,n){const i=h.rq.get(),s=h.Rc.get();(0,o.e)(i,e.origin,e.direction);const a=M(t);(0,o.e)(n,i,e.origin),(0,o.h)(n,n,1/(0,o.l)(n)*a);const c=L(t,e.origin),u=(0,f.g7)(e.origin,n);return(0,r.$0)(s,u+c,i),(0,o.t)(n,n,s),n}function x(t,e,n){const i=(0,o.d)(h.rq.get(),e,t),r=(0,o.h)(h.rq.get(),i,t[3]/(0,o.l)(i));return(0,o.g)(n,r,t)}function L(t,e){const n=(0,o.d)(h.rq.get(),e,t),r=(0,o.l)(n),s=M(t),a=s+Math.abs(s-r);return(0,i.XM)(s/a)}const P=(0,s.vt)();function R(t,e,n,i){const r=(0,o.d)(P,e,t);switch(n){case l._.X:{const t=g(r,P)[2];return(0,o.i)(i,-Math.sin(t),Math.cos(t),0)}case l._.Y:{const t=g(r,P),e=t[1],n=t[2],s=Math.sin(e);return(0,o.i)(i,-s*Math.cos(n),-s*Math.sin(n),Math.cos(e))}case l._.Z:return(0,o.n)(i,r);default:return}}function j(t,e){const n=(0,o.d)(C,e,t);return(0,o.l)(n)-t[3]}function T(t,e){const n=(0,o.s)(t,e),i=M(t);return n<=i*i}const C=(0,s.vt)(),U=b(),Z=Object.freeze(Object.defineProperty({__proto__:null,NullSphere:p,altitudeAt:j,angleToSilhouette:L,axisAt:R,cameraFrustumCoverage:function(t,e,n,i){const r=M(t),o=r*r,s=e+.5*Math.PI,a=n*n+o-2*Math.cos(s)*n*r,c=Math.sqrt(a),u=a-o;if(u<=0)return.5;const l=Math.sqrt(u),d=Math.acos(l/c)-Math.asin(r/(c/Math.sin(s)));return Math.min(1,(d+.5*i)/i)},clear:function(t){t[0]=t[1]=t[2]=t[3]=0},closestPoint:function(t,e,n){return S(t,e,n)?n:((0,d.oC)(e,t,n),x(t,n,n))},closestPointOnSilhouette:N,containsPoint:T,copy:_,create:b,distanceToSilhouette:function(t,e){const n=(0,o.d)(h.rq.get(),e,t),i=(0,o.k)(n),r=t[3]*t[3];return Math.sqrt(Math.abs(i-r))},elevate:function(t,e,n){return t!==n&&(n[0]=t[0],n[1]=t[1],n[2]=t[2]),n[3]=t[3]+e,n},equals:v,exactEquals:y,fromCenterAndRadius:function(t,e){return(0,c.fA)(t[0],t[1],t[2],e)},fromRadius:function(t,e){return t[0]=t[1]=t[2]=0,t[3]=e,t},fromValues:I,getCenter:A,getExtent:function(t,e){return e},getRadius:M,intersectLine:function(t,e,n){const i=(0,d.Cr)(e,n);if(!w(t,i,O))return[];const{origin:r,direction:a}=i,{t0:c,t1:l}=O,g=e=>{const n=(0,s.vt)();return(0,o.b)(n,r,a,e),x(t,n,n)};return Math.abs(c-l)<(0,u.FD)()?[g(c)]:[g(c),g(l)]},intersectRay:S,intersectRayClosestSilhouette:function(t,e,n){if(S(t,e,n))return n;const i=N(t,e,h.rq.get());return(0,o.g)(n,e.origin,(0,o.h)(h.rq.get(),e.direction,(0,o.j)(e.origin,i)/(0,o.l)(e.direction))),n},intersectsRay:q,projectPoint:x,setAltitudeAt:function(t,e,n,i){const r=j(t,e),s=R(t,e,l._.Z,C),a=(0,o.h)(C,s,n-r);return(0,o.g)(i,e,a)},setExtent:function(t,e,n){return t!==n&&_(t,n),n},tmpSphere:U,union:function(t,e,n=(0,c.vt)()){const i=(0,o.j)(t,e),r=t[3],s=e[3];return i+s<r?((0,a.c)(n,t),n):i+r<s?((0,a.c)(n,e),n):((0,o.m)(n,t,e,(i+s-r)/(2*i)),n[3]=(i+r+s)/2,n)},wrap:m},Symbol.toStringTag,{value:"Module"}))},4902:(t,e,n)=>{n.d(e,{A:()=>l});var i=n(90237),r=n(40608);let o=0;const s=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+o++})}};return e=(0,i._)([(0,r.$)("esri.core.Identifiable")],e),e},a=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:o++})}};return e=(0,i._)([(0,r.$)("esri.core.Identifiable.NumericIdentifiable")],e),e};let c=class extends(s(class{})){};var u;c=(0,i._)([(0,r.$)("esri.core.Identifiable")],c),(u=c||(c={})).IdentifiableMixin=s,u.NumericIdentifiableMixin=a;const l=c},92071:(t,e,n)=>{n.d(e,{P:()=>_,L:()=>m});var i=n(90237),r=n(69622),o=n(76953),s=n(4718),a=n(35666);class c{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(a.AU),this._values=new Map,this.multipleOriginsSupported=!0}clone(t){const e=new c,n=this._originStores[a.Gr.DEFAULTS];n&&n.forEach(((t,n)=>{e.set(n,(0,s.o8)(t),a.Gr.DEFAULTS)}));for(let n=a.Gr.SERVICE;n<a.AU;n++){const i=this._originStores[n];i&&i.forEach(((i,r)=>{t&&t.has(r)||e.set(r,(0,s.o8)(i),n)}))}return e}get(t,e){const n=void 0===e?this._values:this._originStores[e];return n?n.get(t):void 0}keys(t){const e=null==t?this._values:this._originStores[t];return e?[...e.keys()]:[]}set(t,e,n=a.Gr.USER){let i=this._originStores[n];if(i||(i=new Map,this._originStores[n]=i),i.set(t,e),!this._values.has(t)||this._propertyOriginMap.get(t)<=n){const i=this._values.get(t);return this._values.set(t,e),this._propertyOriginMap.set(t,n),i!==e}return!1}delete(t,e=a.Gr.USER){const n=this._originStores[e];if(!n)return;const i=n.get(t);if(n.delete(t),this._values.has(t)&&this._propertyOriginMap.get(t)===e){this._values.delete(t);for(let n=e-1;n>=0;n--){const e=this._originStores[n];if(e&&e.has(t)){this._values.set(t,e.get(t)),this._propertyOriginMap.set(t,n);break}}}return i}has(t,e){const n=void 0===e?this._values:this._originStores[e];return!!n&&n.has(t)}revert(t,e){for(;e>0&&!this.has(t,e);)--e;const n=this._originStores[e],i=n?.get(t),r=this._values.get(t);return this._values.set(t,i),this._propertyOriginMap.set(t,e),r!==i}originOf(t){return this._propertyOriginMap.get(t)||a.Gr.DEFAULTS}forEach(t){this._values.forEach(t)}}var u=n(45917),l=n(88620),d=n(40608);const g=t=>{let e=class extends t{constructor(...t){super(...t);const e=(0,l.oY)(this),n=e.store,i=new c;e.store=i,(0,o.k)(e,n,i)}read(t,e){(0,u.L)(this,t,e)}getAtOrigin(t,e){const n=f(this),i=(0,a.aB)(e);if("string"==typeof t)return n.get(t,i);const r={};return t.forEach((t=>{r[t]=n.get(t,i)})),r}originOf(t){return(0,a.OL)(this.originIdOf(t))}originIdOf(t){return f(this).originOf(t)}revert(t,e){const n=f(this),i=(0,a.aB)(e),r=(0,l.oY)(this);let o;o="string"==typeof t?"*"===t?n.keys(i):[t]:t,o.forEach((t=>{r.invalidate(t),n.revert(t,i),r.commit(t)}))}};return e=(0,i._)([(0,d.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],e),e};function f(t){return(0,l.oY)(t).store}let h=class extends(g(r.A)){};h=(0,i._)([(0,d.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],h);var p=n(16649),b=n(49422);const y=t=>{let e=class extends t{constructor(...t){super(...t)}clear(t,e="user"){return v(this).delete(t,(0,a.aB)(e))}write(t,e){return(0,b.M)(this,t=t||{},e),t}setAtOrigin(t,e,n){(0,l.oY)(this).setAtOrigin(t,e,(0,a.aB)(n))}removeOrigin(t){const e=v(this),n=(0,a.aB)(t),i=e.keys(n);for(const t of i)e.originOf(t)===n&&e.set(t,e.get(t,n),a.Gr.USER)}updateOrigin(t,e){const n=v(this),i=(0,a.aB)(e),r=(0,p.Jt)(this,t);for(let e=i+1;e<a.AU;++e)n.delete(t,e);n.set(t,r,i)}toJSON(t){return this.write({},t)}};return e=(0,i._)([(0,d.$)("esri.core.MultiOriginJSONSupport.WriteableMultiOriginJSONSupport")],e),e.prototype.toJSON.isDefaultToJSON=!0,e};function v(t){return(0,l.oY)(t).store}const _=t=>{let e=class extends(y(g(t))){constructor(...t){super(...t)}};return e=(0,i._)([(0,d.$)("esri.core.MultiOriginJSONSupport")],e),e};let m=class extends(_(r.A)){};m=(0,i._)([(0,d.$)("esri.core.MultiOriginJSONSupport")],m)},4341:(t,e,n)=>{n.d(e,{I:()=>r});var i=n(26390);class r{constructor(t){this._allocator=t,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,i.d)((()=>this._reset())),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){const t=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*o);this._items.length=Math.min(t,this._items.length),this._itemsPtr=0}_grow(){for(let t=0;t<Math.max(8,Math.min(this._items.length,o));t++)this._items.push(this._allocator())}}const o=1024},62885:(t,e,n)=>{n.d(e,{H:()=>o,V:()=>r});var i=n(5503);function r(t,e,n=i.A){return e||(e=new n),e===t||(e.removeAll(),(r=t)&&(Array.isArray(r)||"items"in r&&Array.isArray(r.items))?e.addMany(t):t&&e.add(t)),e;var r}function o(t){return t}},36708:(t,e,n)=>{n.d(e,{C_:()=>g,OH:()=>p,Vh:()=>b,on:()=>d,pc:()=>y,wB:()=>c,z7:()=>u}),n(60999),n(5503);var i=n(37955),r=n(36563),o=n(97768),s=n(74887),a=n(14012);function c(t,e,n={}){return l(t,e,n,f)}function u(t,e,n={}){return l(t,e,n,h)}function l(t,e,n={},i){let r=null;const s=n.once?(t,n)=>{i(t)&&((0,o.xt)(r),e(t,n))}:(t,n)=>{i(t)&&e(t,n)};if(r=(0,a.Cn)(t,s,n.sync,n.equals),n.initial){const e=t();s(e,e)}return r}function d(t,e,n,s={}){let a=null,u=null,l=null;function d(){a&&u&&(u.remove(),s.onListenerRemove?.(a),a=null,u=null)}function g(t){s.once&&s.once&&(0,o.xt)(l),n(t)}const f=c(t,((t,n)=>{d(),(0,i.wb)(t)&&(a=t,u=(0,i.on)(t,e,g),s.onListenerAdd?.(t))}),{sync:s.sync,initial:!0});return l=(0,r.hA)((()=>{f.remove(),d()})),l}function g(t,e){return function(t,e,n){if((0,s.G4)(n))return Promise.reject((0,s.NK)());const i=t();if(e?.(i))return Promise.resolve(i);let a=null;function c(){a=(0,o.xt)(a)}return new Promise(((i,o)=>{a=(0,r.vE)([(0,s.u7)(n,(()=>{c(),o((0,s.NK)())})),l(t,(t=>{c(),i(t)}),{sync:!1,once:!0},e??f)])}))}(t,h,e)}function f(t){return!0}function h(t){return!!t}n(80559);const p={sync:!0},b={initial:!0},y={sync:!0,initial:!0}},11964:(t,e,n)=>{n.d(e,{Cr:()=>u,H6:()=>g,_I:()=>d,kb:()=>l,vt:()=>c});var i=n(34727),r=n(4341),o=n(38954),s=n(51850),a=n(32114);function c(t){return t?{origin:(0,s.o8)(t.origin),vector:(0,s.o8)(t.vector)}:{origin:(0,s.vt)(),vector:(0,s.vt)()}}function u(t,e,n=c()){return(0,o.c)(n.origin,t),(0,o.d)(n.vector,e,t),n}function l(t,e){const n=(0,o.d)(a.rq.get(),e,t.origin),r=(0,o.f)(t.vector,n),s=(0,o.f)(t.vector,t.vector),c=(0,i.qE)(r/s,0,1),u=(0,o.d)(a.rq.get(),(0,o.h)(a.rq.get(),t.vector,c),n);return(0,o.f)(u,u)}function d(t,e,n){return g(t,e,0,1,n)}function g(t,e,n,r,s){const{vector:c,origin:u}=t,l=(0,o.d)(a.rq.get(),e,u),d=(0,o.f)(c,l)/(0,o.k)(c);return(0,o.h)(s,c,(0,i.qE)(d,n,r)),(0,o.g)(s,s,t.origin)}(0,s.vt)(),(0,s.vt)(),new r.I((()=>c()))},71351:(t,e,n)=>{n.d(e,{C:()=>d,Cr:()=>g,LV:()=>l,kb:()=>f,oC:()=>h,vt:()=>c}),n(4576);var i=n(4341),r=(n(77690),n(29242)),o=n(38954),s=n(51850),a=n(32114);function c(t){return t?u((0,s.o8)(t.origin),(0,s.o8)(t.direction)):u((0,s.vt)(),(0,s.vt)())}function u(t,e){return{origin:t,direction:e}}function l(t,e){const n=p.get();return n.origin=t,n.direction=e,n}function d(t,e=c()){return function(t,e,n=c()){return(0,o.c)(n.origin,t),(0,o.c)(n.direction,e),n}(t.origin,t.direction,e)}function g(t,e,n=c()){return(0,o.c)(n.origin,t),(0,o.d)(n.direction,e,t),n}function f(t,e){const n=(0,o.e)(a.rq.get(),(0,o.n)(a.rq.get(),t.direction),(0,o.d)(a.rq.get(),e,t.origin));return(0,o.f)(n,n)}function h(t,e,n){const i=(0,o.f)(t.direction,(0,o.d)(n,e,t.origin));return(0,o.g)(n,t.origin,(0,o.h)(n,t.direction,i)),n}const p=new i.I((()=>c()));(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,r.vt)()},4146:(t,e,n)=>{n.d(e,{A:()=>m});var i=n(90237),r=n(78888),o=n(49186),s=n(65529),a=n(4902),c=n(92474),u=n(53966),l=n(74887),d=n(84952),g=n(10107),f=(n(44208),n(87811),n(40608)),h=n(5443),p=n(16930),b=n(92602),y=n(79677);let v=0,_=class extends(s.A.EventedMixin(a.A.IdentifiableMixin(c.A))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new h.A(-180,-90,180,90,p.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+v++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=p.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0,this.createLayerView=void 0}static async fromArcGISServerUrl(t){const e="string"==typeof t?{url:t}:t;return(await n.e(7982).then(n.bind(n,27982))).fromUrl(e)}static fromPortalItem(t){return async function(t){const e="portalItem"in t?t:{portalItem:t},{fromItem:i}=await n.e(5613).then(n.bind(n,45613));try{return await i(e)}catch(t){const n=e?.portalItem,i=n?.id||"unset",r=n?.portal?.url||b.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+r+"', id: '"+i+"')",t),t}}(t)}initialize(){this.when().catch((t=>{(0,l.zf)(t)||u.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:t})}))}destroy(){const t=this.parent;if(t){const e=this;"layers"in t&&t.layers.includes(e)?t.layers.remove(e):"tables"in t&&t.tables.includes(e)?t.tables.remove(e):"baseLayers"in t&&t.baseLayers.includes(e)?t.baseLayers.remove(e):"referenceLayers"in t&&t.referenceLayers.includes(e)&&t.referenceLayers.remove(e),this._set("parent",null)}}get effectiveVisible(){let t=this.visible;const e=this.parent;return t&&e&&"effectiveVisible"in e&&(t&&=e.effectiveVisible),t}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,d.An)(this.url)}async fetchAttributionData(){const t=this.attributionDataUrl;if(this.hasAttributionData&&t)return(await(0,r.A)(t,{query:{f:"json"},responseType:"json"})).data;throw new o.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,i._)([(0,g.MZ)({type:String})],_.prototype,"attributionDataUrl",void 0),(0,i._)([(0,g.MZ)({readOnly:!0})],_.prototype,"effectiveVisible",null),(0,i._)([(0,g.MZ)({type:h.A})],_.prototype,"fullExtent",void 0),(0,i._)([(0,g.MZ)({readOnly:!0})],_.prototype,"hasAttributionData",null),(0,i._)([(0,g.MZ)({type:String,clonable:!1})],_.prototype,"id",void 0),(0,i._)([(0,g.MZ)({type:Boolean,nonNullable:!0})],_.prototype,"legendEnabled",void 0),(0,i._)([(0,g.MZ)({type:["show","hide","hide-children"]})],_.prototype,"listMode",void 0),(0,i._)([(0,g.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],_.prototype,"opacity",void 0),(0,i._)([(0,g.MZ)({clonable:!1})],_.prototype,"parent",void 0),(0,i._)([(0,g.MZ)({readOnly:!0})],_.prototype,"parsedUrl",null),(0,i._)([(0,g.MZ)({type:Boolean,readOnly:!0})],_.prototype,"persistenceEnabled",void 0),(0,i._)([(0,g.MZ)({type:Boolean})],_.prototype,"popupEnabled",void 0),(0,i._)([(0,g.MZ)({type:Boolean})],_.prototype,"attributionVisible",void 0),(0,i._)([(0,g.MZ)({type:p.A})],_.prototype,"spatialReference",void 0),(0,i._)([(0,g.MZ)({type:String})],_.prototype,"title",void 0),(0,i._)([(0,g.MZ)({readOnly:!0,json:{read:!1}})],_.prototype,"type",void 0),(0,i._)([(0,g.MZ)()],_.prototype,"url",void 0),(0,i._)([(0,g.MZ)({type:y.A})],_.prototype,"visibilityTimeExtent",void 0),(0,i._)([(0,g.MZ)({type:Boolean,nonNullable:!0})],_.prototype,"visible",void 0),_=(0,i._)([(0,f.$)("esri.layers.Layer")],_);const m=_},62258:(t,e,n)=>{var i,r;n.d(e,{dz:()=>i,oH:()=>r}),function(t){t[t.OBJECT=0]="OBJECT",t[t.HUD=1]="HUD",t[t.TERRAIN=2]="TERRAIN",t[t.OVERLAY=3]="OVERLAY",t[t.I3S=4]="I3S",t[t.PCL=5]="PCL",t[t.LOD=6]="LOD",t[t.VOXEL=7]="VOXEL",t[t.TILES3D=8]="TILES3D"}(i||(i={})),function(t){t[t.MIN=0]="MIN",t[t.MINMAX=1]="MINMAX",t[t.ALL=2]="ALL"}(r||(r={}))},65215:(t,e,n)=>{n.d(e,{HE:()=>i,R6:()=>r}),n(51850);class i{constructor(t){this.layerUid=t}}class r extends i{constructor(t,e){super(t),this.graphicUid=e}}},86305:(t,e,n)=>{n.d(e,{i3:()=>r}),n(38954);var i=n(51850);function r(t){return null!=t?.dist}n(17352),n(62258),(0,i.vt)()},87582:(t,e,n)=>{n.d(e,{h:()=>r}),n(62258);var i=n(65215);n(86305);class r extends i.R6{constructor(t,e,n,i,r){super(t,e),this.layerUid=t,this.graphicUid=e,this.triangleNr=n,this.baseBoundingSphere=i,this.numLodLevels=r}}},78553:(t,e,n)=>{n.d(e,{D:()=>o,p:()=>r});var i=n(56507);function r(t){const e=(0,i.Vr)(100*(1-t));return Math.max(0,Math.min(e,100))}function o(t){const e=1-t/100;return Math.max(0,Math.min(e,1))}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1056,8256],{45475:(t,e,n)=>{n.d(e,{A:()=>f});var i=n(90237),r=n(69622),o=n(4576),s=n(69540),a=n(4902),c=n(25482),u=n(10107),l=(n(44208),n(53966),n(40608));let d=0,g=class extends(c.A.JSONSupportMixin(s.A.ClonableMixin(a.A.IdentifiableMixin(r.A)))){constructor(t){super(t),this.id=`${Date.now().toString(16)}-analysis-${d++}`,this.title=null}get parent(){return this._get("parent")}set parent(t){const e=this.parent;if(null!=e)switch(e.type){case"line-of-sight":case"dimension":case"viewshed":e.releaseAnalysis(this);break;case"2d":case"3d":e.analyses.includes(this)&&e.analyses.remove(this)}this._set("parent",t)}get isEditable(){return this.requiredPropertiesForEditing.every(o.Ru)}};(0,i._)([(0,u.MZ)({type:String,constructOnly:!0,clonable:!1})],g.prototype,"id",void 0),(0,i._)([(0,u.MZ)({type:String})],g.prototype,"title",void 0),(0,i._)([(0,u.MZ)({clonable:!1,value:null})],g.prototype,"parent",null),(0,i._)([(0,u.MZ)({readOnly:!0})],g.prototype,"isEditable",null),g=(0,i._)([(0,l.$)("esri.analysis.Analysis")],g);const f=g},44612:(t,e,n)=>{n.d(e,{xH:()=>s,N1:()=>c}),n(38954);var i=n(51850),r=n(71351),o=(n(62258),n(58083),n(70328),n(97937),n(65215));function s(t,e){return a(t)===a(e)}function a(t){if(null==t)return null;const e=null!=t.layer?t.layer.id:"";let n=null;return n=null!=t.objectId?t.objectId:null!=t.layer&&"objectIdField"in t.layer&&null!=t.layer.objectIdField&&null!=t.attributes?t.attributes[t.layer.objectIdField]:t.uid,null==n?null:`o-${e}-${n}`}n(86305),o.R6,o.HE,o.R6,o.R6,o.R6,n(87582),(0,i.vt)();const c={json:{write:{writer:function(t,e){null!=t?.layer?.objectIdField&&null!=t.attributes&&(e.feature={layerId:t.layer.id,objectId:t.attributes[t.layer.objectIdField]})},target:{"feature.layerId":{type:[Number,String],isRequired:!0},"feature.objectId":{type:[Number,String],isRequired:!0}}},origins:{"web-scene":{read:function(t){if(null!=t.layerId&&null!=t.objectId)return{uid:null,layer:{id:t.layerId,objectIdField:"ObjectId"},attributes:{ObjectId:t.objectId}}}}}}};(0,r.vt)(),(0,i.vt)()},17352:(t,e,n)=>{n.d(e,{b:()=>$,f:()=>m}),n(44208);var i=n(53966),r=n(34727),o=n(4341),s=n(58083),a=n(9093),c=n(38954),u=n(51850),l=n(19419),d=n(88582),g=n(11964),f=n(27921),h=n(71351),p=n(44280),b=n(32114);const y=()=>i.A.getLogger("esri.views.3d.support.geometryUtils.boundedPlane");function v(t=C){return{plane:(0,f.vt)(t.plane),origin:(0,u.o8)(t.origin),basis1:(0,u.o8)(t.basis1),basis2:(0,u.o8)(t.basis2)}}function _(t,e=v()){return m(t.origin,t.basis1,t.basis2,e)}function m(t,e,n,i=v()){return(0,c.c)(i.origin,t),(0,c.c)(i.basis1,e),(0,c.c)(i.basis2,n),M(i),function(t,e){Math.abs((0,c.f)(t.basis1,t.basis2)/((0,c.l)(t.basis1)*(0,c.l)(t.basis2)))>1e-6&&y().warn(e,"Provided basis vectors are not perpendicular"),Math.abs((0,c.f)(t.basis1,L(t)))>1e-6&&y().warn(e,"Basis vectors and plane normal are not perpendicular"),Math.abs(-(0,c.f)(L(t),t.origin)-t.plane[3])>1e-6&&y().warn(e,"Plane offset is not consistent with plane origin")}(i,"fromValues()"),i}function M(t){(0,f.mR)(t.basis2,t.basis1,t.origin,t.plane)}function A(t,e,n){t!==n&&_(t,n);const i=(0,c.h)(b.rq.get(),L(t),e);return(0,c.g)(n.origin,n.origin,i),n.plane[3]-=e,n}function I(t,e=v()){const n=(t[2]-t[0])/2,i=(t[3]-t[1])/2;return(0,c.i)(e.origin,t[0]+n,t[1]+i,0),(0,c.i)(e.basis1,n,0,0),(0,c.i)(e.basis2,0,i,0),(0,f.fA)(0,0,1,0,e.plane),e}function S(t,e,n){return!!(0,f.Ui)(t.plane,e,n)&&P(t,n)}function O(t,e,n){const i=U.get();T(t,e,i,U.get());let o=Number.POSITIVE_INFINITY;for(const s of k){const a=R(t,s,Z.get()),u=b.rq.get();if((0,f.T7)(i,a,u)){const t=(0,c.o)(b.rq.get(),e.origin,u),i=Math.abs((0,r.XM)((0,c.f)(e.direction,t)));i<o&&(o=i,(0,c.c)(n,u))}}return o===Number.POSITIVE_INFINITY?w(t,e,n):n}function w(t,e,n){if(S(t,e,n))return n;const i=U.get(),r=U.get();T(t,e,i,r);let o=Number.POSITIVE_INFINITY;for(const s of k){const a=R(t,s,Z.get()),u=b.rq.get();if((0,f.gv)(i,a,u)){const t=(0,h.kb)(e,u);if(!(0,f.Tj)(r,u))continue;t<o&&(o=t,(0,c.c)(n,u))}}return N(t,e.origin)<o&&E(t,e.origin,n),n}function E(t,e,n){const i=(0,f._I)(t.plane,e,b.rq.get()),r=(0,g.H6)(j(t,t.basis1),i,-1,1,b.rq.get()),o=(0,g.H6)(j(t,t.basis2),i,-1,1,b.rq.get());return(0,c.d)(n,(0,c.g)(b.rq.get(),r,o),t.origin),n}function q(t,e,n){const{origin:i,basis1:r,basis2:o}=t,s=(0,c.d)(b.rq.get(),e,i),a=(0,p.gr)(r,s),u=(0,p.gr)(o,s),l=(0,p.gr)(L(t),s);return(0,c.i)(n,a,u,l)}function N(t,e){const n=q(t,e,b.rq.get()),{basis1:i,basis2:r}=t,o=(0,c.l)(i),s=(0,c.l)(r),a=Math.max(Math.abs(n[0])-o,0),u=Math.max(Math.abs(n[1])-s,0),l=n[2];return a*a+u*u+l*l}function x(t,e){const n=-t.plane[3];return(0,p.gr)(L(t),e)-n}function L(t){return(0,f.Qj)(t.plane)}function P(t,e){const n=(0,c.d)(b.rq.get(),e,t.origin),i=(0,c.k)(t.basis1),r=(0,c.k)(t.basis2),o=(0,c.f)(t.basis1,n),s=(0,c.f)(t.basis2,n);return-o-i<0&&o-i<0&&-s-r<0&&s-r<0}function j(t,e){const n=Z.get();return(0,c.c)(n.origin,t.origin),(0,c.c)(n.vector,e),n}function R(t,e,n){const{basis1:i,basis2:r,origin:o}=t,s=(0,c.h)(b.rq.get(),i,e.origin[0]),a=(0,c.h)(b.rq.get(),r,e.origin[1]);(0,c.g)(n.origin,s,a),(0,c.g)(n.origin,n.origin,o);const u=(0,c.h)(b.rq.get(),i,e.direction[0]),l=(0,c.h)(b.rq.get(),r,e.direction[1]);return(0,c.h)(n.vector,(0,c.g)(u,u,l),2),n}function T(t,e,n,i){const r=L(t);(0,f.mR)(r,e.direction,e.origin,n),(0,f.mR)((0,f.Qj)(n),r,e.origin,i)}const C={plane:(0,f.vt)(),origin:(0,u.fA)(0,0,0),basis1:(0,u.fA)(1,0,0),basis2:(0,u.fA)(0,1,0)},U=new o.I(f.vt),Z=new o.I(g.vt),V=(0,u.vt)(),D=new o.I((()=>v())),k=[{origin:[-1,-1],direction:[1,0]},{origin:[1,-1],direction:[0,1]},{origin:[1,1],direction:[-1,0]},{origin:[-1,1],direction:[0,-1]}],B=(0,a.vt)(),F=(0,a.vt)(),$=Object.freeze(Object.defineProperty({__proto__:null,BoundedPlaneClass:class{constructor(){this.plane=(0,f.vt)(),this.origin=(0,u.vt)(),this.basis1=(0,u.vt)(),this.basis2=(0,u.vt)()}},altitudeAt:x,axisAt:function(t,e,n,i){return function(t,e,n){switch(e){case d._.X:(0,c.c)(n,t.basis1),(0,c.n)(n,n);break;case d._.Y:(0,c.c)(n,t.basis2),(0,c.n)(n,n);break;case d._.Z:(0,c.c)(n,L(t))}return n}(t,n,i)},cameraFrustumCoverage:function(t,e){return(e-t)/e},closestPoint:w,closestPointOnSilhouette:O,copy:_,copyWithoutVerify:function(t,e){(0,c.c)(e.origin,t.origin),(0,c.c)(e.basis1,t.basis1),(0,c.c)(e.basis2,t.basis2),(0,f.C)(e.plane,t.plane)},create:v,distance:function(t,e){return Math.sqrt(N(t,e))},distance2:N,distanceToSilhouette:function(t,e){let n=Number.NEGATIVE_INFINITY;for(const i of k){const r=R(t,i,Z.get()),o=(0,g.kb)(r,e);o>n&&(n=o)}return Math.sqrt(n)},elevate:A,equals:function(t,e){return(0,c.p)(t.basis1,e.basis1)&&(0,c.p)(t.basis2,e.basis2)&&(0,c.p)(t.origin,e.origin)},extrusionContainsPoint:function(t,e){return(0,f.Tj)(t.plane,e)&&P(t,e)},fromAABoundingRect:I,fromValues:m,getExtent:function(t,e){const n=t.basis1[0],i=t.basis2[1],[r,o]=t.origin;return(0,l.fA)(r-n,o-i,r+n,o+i,e)},intersectRay:S,intersectRayClosestSilhouette:function(t,e,n){if(S(t,e,n))return n;const i=O(t,e,b.rq.get());return(0,c.g)(n,e.origin,(0,c.h)(b.rq.get(),e.direction,(0,c.j)(e.origin,i)/(0,c.l)(e.direction))),n},normal:L,projectPoint:E,projectPointLocal:q,rotate:function(t,e,n,i){return t!==i&&_(t,i),(0,s.$0)(F,e,n),(0,c.t)(i.basis1,t.basis1,F),(0,c.t)(i.basis2,t.basis2,F),M(i),i},setAltitudeAt:function(t,e,n,i){const r=x(t,e),o=(0,c.h)(V,L(t),n-r);return(0,c.g)(i,e,o),i},setExtent:function(t,e,n){return I(e,n),A(n,x(t,t.origin),n),n},transform:function(t,e,n){return t!==n&&_(t,n),(0,s.B8)(B,e),(0,s.mg)(B,B),(0,c.t)(n.basis1,t.basis1,B),(0,c.t)(n.basis2,t.basis2,B),(0,c.t)((0,f.Qj)(n.plane),(0,f.Qj)(t.plane),B),(0,c.t)(n.origin,t.origin,e),(0,f.mP)(n.plane,n.plane,n.origin),n},up:C,updateUnboundedPlane:M,wrap:function(t,e,n){const i=D.get();return i.origin=t,i.basis1=e,i.basis2=n,i.plane=(0,f.LV)(0,0,0,0),M(i),i}},Symbol.toStringTag,{value:"Module"}))},97937:(t,e,n)=>{n.d(e,{a:()=>A,c:()=>b,e:()=>_,f:()=>I,g:()=>M,i:()=>q,o:()=>T,s:()=>Z,w:()=>m}),n(44208),n(53966);var i=n(34727),r=n(58083),o=n(38954),s=n(51850),a=n(87317),c=n(91829),u=n(34304),l=n(88582),d=n(71351);function g(t,e){const n=(0,o.l)(t),r=(0,i.YN)(t[2]/n),s=Math.atan2(t[1]/n,t[0]/n);return(0,o.i)(e,n,r,s),e}var f=n(44280),h=n(32114);const p=b();function b(){return(0,c.vt)()}const y=a.e,v=a.e;function _(t,e){return(0,a.c)(e,t)}function m(t){return t}function M(t){return t[3]}function A(t){return t}function I(t,e,n,i){return(0,c.fA)(t,e,n,i)}function S(t,e,n){if(null==e)return!1;if(!w(t,e,O))return!1;let{t0:i,t1:r}=O;if((i<0||r<i&&r>0)&&(i=r),i<0)return!1;if(n){const{origin:t,direction:r}=e;n[0]=t[0]+r[0]*i,n[1]=t[1]+r[1]*i,n[2]=t[2]+r[2]*i}return!0}const O={t0:0,t1:0};function w(t,e,n){const{origin:i,direction:r}=e,o=E;o[0]=i[0]-t[0],o[1]=i[1]-t[1],o[2]=i[2]-t[2];const s=r[0]*r[0]+r[1]*r[1]+r[2]*r[2];if(0===s)return!1;const a=2*(r[0]*o[0]+r[1]*o[1]+r[2]*o[2]),c=a*a-4*s*(o[0]*o[0]+o[1]*o[1]+o[2]*o[2]-t[3]*t[3]);if(c<0)return!1;const u=Math.sqrt(c);return n.t0=(-a-u)/(2*s),n.t1=(-a+u)/(2*s),!0}const E=(0,s.vt)();function q(t,e){return S(t,e,null)}function N(t,e,n){const i=h.rq.get(),s=h.Rc.get();(0,o.e)(i,e.origin,e.direction);const a=M(t);(0,o.e)(n,i,e.origin),(0,o.h)(n,n,1/(0,o.l)(n)*a);const c=L(t,e.origin),u=(0,f.g7)(e.origin,n);return(0,r.$0)(s,u+c,i),(0,o.t)(n,n,s),n}function x(t,e,n){const i=(0,o.d)(h.rq.get(),e,t),r=(0,o.h)(h.rq.get(),i,t[3]/(0,o.l)(i));return(0,o.g)(n,r,t)}function L(t,e){const n=(0,o.d)(h.rq.get(),e,t),r=(0,o.l)(n),s=M(t),a=s+Math.abs(s-r);return(0,i.XM)(s/a)}const P=(0,s.vt)();function j(t,e,n,i){const r=(0,o.d)(P,e,t);switch(n){case l._.X:{const t=g(r,P)[2];return(0,o.i)(i,-Math.sin(t),Math.cos(t),0)}case l._.Y:{const t=g(r,P),e=t[1],n=t[2],s=Math.sin(e);return(0,o.i)(i,-s*Math.cos(n),-s*Math.sin(n),Math.cos(e))}case l._.Z:return(0,o.n)(i,r);default:return}}function R(t,e){const n=(0,o.d)(C,e,t);return(0,o.l)(n)-t[3]}function T(t,e){const n=(0,o.s)(t,e),i=M(t);return n<=i*i}const C=(0,s.vt)(),U=b(),Z=Object.freeze(Object.defineProperty({__proto__:null,NullSphere:p,altitudeAt:R,angleToSilhouette:L,axisAt:j,cameraFrustumCoverage:function(t,e,n,i){const r=M(t),o=r*r,s=e+.5*Math.PI,a=n*n+o-2*Math.cos(s)*n*r,c=Math.sqrt(a),u=a-o;if(u<=0)return.5;const l=Math.sqrt(u),d=Math.acos(l/c)-Math.asin(r/(c/Math.sin(s)));return Math.min(1,(d+.5*i)/i)},clear:function(t){t[0]=t[1]=t[2]=t[3]=0},closestPoint:function(t,e,n){return S(t,e,n)?n:((0,d.oC)(e,t,n),x(t,n,n))},closestPointOnSilhouette:N,containsPoint:T,copy:_,create:b,distanceToSilhouette:function(t,e){const n=(0,o.d)(h.rq.get(),e,t),i=(0,o.k)(n),r=t[3]*t[3];return Math.sqrt(Math.abs(i-r))},elevate:function(t,e,n){return t!==n&&(n[0]=t[0],n[1]=t[1],n[2]=t[2]),n[3]=t[3]+e,n},equals:v,exactEquals:y,fromCenterAndRadius:function(t,e){return(0,c.fA)(t[0],t[1],t[2],e)},fromRadius:function(t,e){return t[0]=t[1]=t[2]=0,t[3]=e,t},fromValues:I,getCenter:A,getExtent:function(t,e){return e},getRadius:M,intersectLine:function(t,e,n){const i=(0,d.Cr)(e,n);if(!w(t,i,O))return[];const{origin:r,direction:a}=i,{t0:c,t1:l}=O,g=e=>{const n=(0,s.vt)();return(0,o.b)(n,r,a,e),x(t,n,n)};return Math.abs(c-l)<(0,u.FD)()?[g(c)]:[g(c),g(l)]},intersectRay:S,intersectRayClosestSilhouette:function(t,e,n){if(S(t,e,n))return n;const i=N(t,e,h.rq.get());return(0,o.g)(n,e.origin,(0,o.h)(h.rq.get(),e.direction,(0,o.j)(e.origin,i)/(0,o.l)(e.direction))),n},intersectsRay:q,projectPoint:x,setAltitudeAt:function(t,e,n,i){const r=R(t,e),s=j(t,e,l._.Z,C),a=(0,o.h)(C,s,n-r);return(0,o.g)(i,e,a)},setExtent:function(t,e,n){return t!==n&&_(t,n),n},tmpSphere:U,union:function(t,e,n=(0,c.vt)()){const i=(0,o.j)(t,e),r=t[3],s=e[3];return i+s<r?((0,a.c)(n,t),n):i+r<s?((0,a.c)(n,e),n):((0,o.m)(n,t,e,(i+s-r)/(2*i)),n[3]=(i+r+s)/2,n)},wrap:m},Symbol.toStringTag,{value:"Module"}))},4902:(t,e,n)=>{n.d(e,{A:()=>l});var i=n(90237),r=n(40608);let o=0;const s=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+o++})}};return e=(0,i._)([(0,r.$)("esri.core.Identifiable")],e),e},a=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:o++})}};return e=(0,i._)([(0,r.$)("esri.core.Identifiable.NumericIdentifiable")],e),e};let c=class extends(s(class{})){};var u;c=(0,i._)([(0,r.$)("esri.core.Identifiable")],c),(u=c||(c={})).IdentifiableMixin=s,u.NumericIdentifiableMixin=a;const l=c},92071:(t,e,n)=>{n.d(e,{P:()=>_,L:()=>m});var i=n(90237),r=n(69622),o=n(76953),s=n(4718),a=n(35666);class c{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(a.AU),this._values=new Map,this.multipleOriginsSupported=!0}clone(t){const e=new c,n=this._originStores[a.Gr.DEFAULTS];n&&n.forEach(((t,n)=>{e.set(n,(0,s.o8)(t),a.Gr.DEFAULTS)}));for(let n=a.Gr.SERVICE;n<a.AU;n++){const i=this._originStores[n];i&&i.forEach(((i,r)=>{t&&t.has(r)||e.set(r,(0,s.o8)(i),n)}))}return e}get(t,e){const n=void 0===e?this._values:this._originStores[e];return n?n.get(t):void 0}keys(t){const e=null==t?this._values:this._originStores[t];return e?[...e.keys()]:[]}set(t,e,n=a.Gr.USER){let i=this._originStores[n];if(i||(i=new Map,this._originStores[n]=i),i.set(t,e),!this._values.has(t)||this._propertyOriginMap.get(t)<=n){const i=this._values.get(t);return this._values.set(t,e),this._propertyOriginMap.set(t,n),i!==e}return!1}delete(t,e=a.Gr.USER){const n=this._originStores[e];if(!n)return;const i=n.get(t);if(n.delete(t),this._values.has(t)&&this._propertyOriginMap.get(t)===e){this._values.delete(t);for(let n=e-1;n>=0;n--){const e=this._originStores[n];if(e&&e.has(t)){this._values.set(t,e.get(t)),this._propertyOriginMap.set(t,n);break}}}return i}has(t,e){const n=void 0===e?this._values:this._originStores[e];return!!n&&n.has(t)}revert(t,e){for(;e>0&&!this.has(t,e);)--e;const n=this._originStores[e],i=n?.get(t),r=this._values.get(t);return this._values.set(t,i),this._propertyOriginMap.set(t,e),r!==i}originOf(t){return this._propertyOriginMap.get(t)||a.Gr.DEFAULTS}forEach(t){this._values.forEach(t)}}var u=n(45917),l=n(88620),d=n(40608);const g=t=>{let e=class extends t{constructor(...t){super(...t);const e=(0,l.oY)(this),n=e.store,i=new c;e.store=i,(0,o.k)(e,n,i)}read(t,e){(0,u.L)(this,t,e)}getAtOrigin(t,e){const n=f(this),i=(0,a.aB)(e);if("string"==typeof t)return n.get(t,i);const r={};return t.forEach((t=>{r[t]=n.get(t,i)})),r}originOf(t){return(0,a.OL)(this.originIdOf(t))}originIdOf(t){return f(this).originOf(t)}revert(t,e){const n=f(this),i=(0,a.aB)(e),r=(0,l.oY)(this);let o;o="string"==typeof t?"*"===t?n.keys(i):[t]:t,o.forEach((t=>{r.invalidate(t),n.revert(t,i),r.commit(t)}))}};return e=(0,i._)([(0,d.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],e),e};function f(t){return(0,l.oY)(t).store}let h=class extends(g(r.A)){};h=(0,i._)([(0,d.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],h);var p=n(16649),b=n(49422);const y=t=>{let e=class extends t{constructor(...t){super(...t)}clear(t,e="user"){return v(this).delete(t,(0,a.aB)(e))}write(t,e){return(0,b.M)(this,t=t||{},e),t}setAtOrigin(t,e,n){(0,l.oY)(this).setAtOrigin(t,e,(0,a.aB)(n))}removeOrigin(t){const e=v(this),n=(0,a.aB)(t),i=e.keys(n);for(const t of i)e.originOf(t)===n&&e.set(t,e.get(t,n),a.Gr.USER)}updateOrigin(t,e){const n=v(this),i=(0,a.aB)(e),r=(0,p.Jt)(this,t);for(let e=i+1;e<a.AU;++e)n.delete(t,e);n.set(t,r,i)}toJSON(t){return this.write({},t)}};return e=(0,i._)([(0,d.$)("esri.core.MultiOriginJSONSupport.WriteableMultiOriginJSONSupport")],e),e.prototype.toJSON.isDefaultToJSON=!0,e};function v(t){return(0,l.oY)(t).store}const _=t=>{let e=class extends(y(g(t))){constructor(...t){super(...t)}};return e=(0,i._)([(0,d.$)("esri.core.MultiOriginJSONSupport")],e),e};let m=class extends(_(r.A)){};m=(0,i._)([(0,d.$)("esri.core.MultiOriginJSONSupport")],m)},4341:(t,e,n)=>{n.d(e,{I:()=>r});var i=n(26390);class r{constructor(t){this._allocator=t,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,i.d)((()=>this._reset())),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){const t=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*o);this._items.length=Math.min(t,this._items.length),this._itemsPtr=0}_grow(){for(let t=0;t<Math.max(8,Math.min(this._items.length,o));t++)this._items.push(this._allocator())}}const o=1024},62885:(t,e,n)=>{n.d(e,{H:()=>o,V:()=>r});var i=n(5503);function r(t,e,n=i.A){return e||(e=new n),e===t||(e.removeAll(),(r=t)&&(Array.isArray(r)||"items"in r&&Array.isArray(r.items))?e.addMany(t):t&&e.add(t)),e;var r}function o(t){return t}},36708:(t,e,n)=>{n.d(e,{C_:()=>g,OH:()=>p,Vh:()=>b,on:()=>d,pc:()=>y,wB:()=>c,z7:()=>u}),n(60999),n(5503);var i=n(37955),r=n(36563),o=n(97768),s=n(74887),a=n(14012);function c(t,e,n={}){return l(t,e,n,f)}function u(t,e,n={}){return l(t,e,n,h)}function l(t,e,n={},i){let r=null;const s=n.once?(t,n)=>{i(t)&&((0,o.xt)(r),e(t,n))}:(t,n)=>{i(t)&&e(t,n)};if(r=(0,a.Cn)(t,s,n.sync,n.equals),n.initial){const e=t();s(e,e)}return r}function d(t,e,n,s={}){let a=null,u=null,l=null;function d(){a&&u&&(u.remove(),s.onListenerRemove?.(a),a=null,u=null)}function g(t){s.once&&s.once&&(0,o.xt)(l),n(t)}const f=c(t,((t,n)=>{d(),(0,i.wb)(t)&&(a=t,u=(0,i.on)(t,e,g),s.onListenerAdd?.(t))}),{sync:s.sync,initial:!0});return l=(0,r.hA)((()=>{f.remove(),d()})),l}function g(t,e){return function(t,e,n){if((0,s.G4)(n))return Promise.reject((0,s.NK)());const i=t();if(e?.(i))return Promise.resolve(i);let a=null;function c(){a=(0,o.xt)(a)}return new Promise(((i,o)=>{a=(0,r.vE)([(0,s.u7)(n,(()=>{c(),o((0,s.NK)())})),l(t,(t=>{c(),i(t)}),{sync:!1,once:!0},e??f)])}))}(t,h,e)}function f(t){return!0}function h(t){return!!t}n(80559);const p={sync:!0},b={initial:!0},y={sync:!0,initial:!0}},11964:(t,e,n)=>{n.d(e,{Cr:()=>u,H6:()=>g,_I:()=>d,kb:()=>l,vt:()=>c});var i=n(34727),r=n(4341),o=n(38954),s=n(51850),a=n(32114);function c(t){return t?{origin:(0,s.o8)(t.origin),vector:(0,s.o8)(t.vector)}:{origin:(0,s.vt)(),vector:(0,s.vt)()}}function u(t,e,n=c()){return(0,o.c)(n.origin,t),(0,o.d)(n.vector,e,t),n}function l(t,e){const n=(0,o.d)(a.rq.get(),e,t.origin),r=(0,o.f)(t.vector,n),s=(0,o.f)(t.vector,t.vector),c=(0,i.qE)(r/s,0,1),u=(0,o.d)(a.rq.get(),(0,o.h)(a.rq.get(),t.vector,c),n);return(0,o.f)(u,u)}function d(t,e,n){return g(t,e,0,1,n)}function g(t,e,n,r,s){const{vector:c,origin:u}=t,l=(0,o.d)(a.rq.get(),e,u),d=(0,o.f)(c,l)/(0,o.k)(c);return(0,o.h)(s,c,(0,i.qE)(d,n,r)),(0,o.g)(s,s,t.origin)}(0,s.vt)(),(0,s.vt)(),new r.I((()=>c()))},71351:(t,e,n)=>{n.d(e,{C:()=>d,Cr:()=>g,LV:()=>l,kb:()=>f,oC:()=>h,vt:()=>c}),n(4576);var i=n(4341),r=(n(77690),n(29242)),o=n(38954),s=n(51850),a=n(32114);function c(t){return t?u((0,s.o8)(t.origin),(0,s.o8)(t.direction)):u((0,s.vt)(),(0,s.vt)())}function u(t,e){return{origin:t,direction:e}}function l(t,e){const n=p.get();return n.origin=t,n.direction=e,n}function d(t,e=c()){return function(t,e,n=c()){return(0,o.c)(n.origin,t),(0,o.c)(n.direction,e),n}(t.origin,t.direction,e)}function g(t,e,n=c()){return(0,o.c)(n.origin,t),(0,o.d)(n.direction,e,t),n}function f(t,e){const n=(0,o.e)(a.rq.get(),(0,o.n)(a.rq.get(),t.direction),(0,o.d)(a.rq.get(),e,t.origin));return(0,o.f)(n,n)}function h(t,e,n){const i=(0,o.f)(t.direction,(0,o.d)(n,e,t.origin));return(0,o.g)(n,t.origin,(0,o.h)(n,t.direction,i)),n}const p=new i.I((()=>c()));(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,r.vt)()},4146:(t,e,n)=>{n.d(e,{A:()=>m});var i=n(90237),r=n(78888),o=n(49186),s=n(65529),a=n(4902),c=n(92474),u=n(53966),l=n(74887),d=n(84952),g=n(10107),f=(n(44208),n(87811),n(40608)),h=n(5443),p=n(16930),b=n(92602),y=n(79677);let v=0,_=class extends(s.A.EventedMixin(a.A.IdentifiableMixin(c.A))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new h.A(-180,-90,180,90,p.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+v++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=p.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(t){const e="string"==typeof t?{url:t}:t;return(await n.e(7982).then(n.bind(n,27982))).fromUrl(e)}static fromPortalItem(t){return async function(t){const e="portalItem"in t?t:{portalItem:t},{fromItem:i}=await n.e(5613).then(n.bind(n,45613));try{return await i(e)}catch(t){const n=e?.portalItem,i=n?.id||"unset",r=n?.portal?.url||b.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+r+"', id: '"+i+"')",t),t}}(t)}initialize(){this.when().catch((t=>{(0,l.zf)(t)||u.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:t})}))}destroy(){const t=this.parent;if(t){const e=this;"layers"in t&&t.layers.includes(e)?t.layers.remove(e):"tables"in t&&t.tables.includes(e)?t.tables.remove(e):"baseLayers"in t&&t.baseLayers.includes(e)?t.baseLayers.remove(e):"referenceLayers"in t&&t.referenceLayers.includes(e)&&t.referenceLayers.remove(e),this._set("parent",null)}}get effectiveVisible(){let t=this.visible;const e=this.parent;return t&&e&&"effectiveVisible"in e&&(t&&=e.effectiveVisible),t}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,d.An)(this.url)}createLayerView(t,e){return Promise.reject(new o.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const t=this.attributionDataUrl;if(this.hasAttributionData&&t)return(await(0,r.A)(t,{query:{f:"json"},responseType:"json"})).data;throw new o.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,i._)([(0,g.MZ)({type:String})],_.prototype,"attributionDataUrl",void 0),(0,i._)([(0,g.MZ)({readOnly:!0})],_.prototype,"effectiveVisible",null),(0,i._)([(0,g.MZ)({type:h.A})],_.prototype,"fullExtent",void 0),(0,i._)([(0,g.MZ)({readOnly:!0})],_.prototype,"hasAttributionData",null),(0,i._)([(0,g.MZ)({type:String,clonable:!1})],_.prototype,"id",void 0),(0,i._)([(0,g.MZ)({type:Boolean,nonNullable:!0})],_.prototype,"legendEnabled",void 0),(0,i._)([(0,g.MZ)({type:["show","hide","hide-children"]})],_.prototype,"listMode",void 0),(0,i._)([(0,g.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],_.prototype,"opacity",void 0),(0,i._)([(0,g.MZ)({clonable:!1})],_.prototype,"parent",void 0),(0,i._)([(0,g.MZ)({readOnly:!0})],_.prototype,"parsedUrl",null),(0,i._)([(0,g.MZ)({type:Boolean,readOnly:!0})],_.prototype,"persistenceEnabled",void 0),(0,i._)([(0,g.MZ)({type:Boolean})],_.prototype,"popupEnabled",void 0),(0,i._)([(0,g.MZ)({type:Boolean})],_.prototype,"attributionVisible",void 0),(0,i._)([(0,g.MZ)({type:p.A})],_.prototype,"spatialReference",void 0),(0,i._)([(0,g.MZ)({type:String})],_.prototype,"title",void 0),(0,i._)([(0,g.MZ)({readOnly:!0,json:{read:!1}})],_.prototype,"type",void 0),(0,i._)([(0,g.MZ)()],_.prototype,"url",void 0),(0,i._)([(0,g.MZ)({type:y.A})],_.prototype,"visibilityTimeExtent",void 0),(0,i._)([(0,g.MZ)({type:Boolean,nonNullable:!0})],_.prototype,"visible",void 0),_=(0,i._)([(0,f.$)("esri.layers.Layer")],_);const m=_},62258:(t,e,n)=>{var i,r;n.d(e,{dz:()=>i,oH:()=>r}),function(t){t[t.OBJECT=0]="OBJECT",t[t.HUD=1]="HUD",t[t.TERRAIN=2]="TERRAIN",t[t.OVERLAY=3]="OVERLAY",t[t.I3S=4]="I3S",t[t.PCL=5]="PCL",t[t.LOD=6]="LOD",t[t.VOXEL=7]="VOXEL",t[t.TILES3D=8]="TILES3D"}(i||(i={})),function(t){t[t.MIN=0]="MIN",t[t.MINMAX=1]="MINMAX",t[t.ALL=2]="ALL"}(r||(r={}))},65215:(t,e,n)=>{n.d(e,{HE:()=>i,R6:()=>r}),n(51850);class i{constructor(t){this.layerUid=t}}class r extends i{constructor(t,e){super(t),this.graphicUid=e}}},86305:(t,e,n)=>{n.d(e,{i3:()=>r}),n(38954);var i=n(51850);function r(t){return null!=t?.dist}n(17352),n(62258),(0,i.vt)()},87582:(t,e,n)=>{n.d(e,{h:()=>r}),n(62258);var i=n(65215);n(86305);class r extends i.R6{constructor(t,e,n,i,r){super(t,e),this.layerUid=t,this.graphicUid=e,this.triangleNr=n,this.baseBoundingSphere=i,this.numLodLevels=r}}},78553:(t,e,n)=>{n.d(e,{D:()=>o,p:()=>r});var i=n(56507);function r(t){const e=(0,i.Vr)(100*(1-t));return Math.max(0,Math.min(e,100))}function o(t){const e=1-t/100;return Math.max(0,Math.min(e,1))}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3816,8256],{4902:(e,t,i)=>{i.d(t,{A:()=>u});var r=i(90237),s=i(40608);let n=0;const o=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+n++})}};return t=(0,r._)([(0,s.$)("esri.core.Identifiable")],t),t},a=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:n++})}};return t=(0,r._)([(0,s.$)("esri.core.Identifiable.NumericIdentifiable")],t),t};let l=class extends(o(class{})){};var h;l=(0,r._)([(0,s.$)("esri.core.Identifiable")],l),(h=l||(l={})).IdentifiableMixin=o,h.NumericIdentifiableMixin=a;const u=l},66344:(e,t,i)=>{i.d(t,{q:()=>l});var r,s,n=i(3694);(s=r||(r={}))[s.ALL=0]="ALL",s[s.SOME=1]="SOME";class o{get size(){return this._size}constructor(e=10485760){this._maxSize=e,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._removeFuncs=new n.A,this._users=new n.A}destroy(){this.clearAll(),this._removeFuncs.clear(),this._users.clear()}register(e){this._users.push(e)}deregister(e){this._users.removeUnordered(e)}registerRemoveFunc(e,t){this._removeFuncs.push([e,t])}deregisterRemoveFunc(e){this._removeFuncs.filterInPlace((t=>t[0]!==e))}get maxSize(){return this._maxSize}set maxSize(e){this._maxSize=Math.max(e,-1),this._checkSize()}getSize(e,t){const i=this._db.get(e.id+t);return i?.size??0}put(e,t,i,s,n){t=e.id+t;const o=this._db.get(t);if(o&&(this._size-=o.size,e.size-=o.size,this._db.delete(t),o.entry!==i&&this._notifyRemove(t,o.entry,o.size,r.ALL)),s>this._maxSize)return void this._notifyRemove(t,i,s,r.ALL);if(void 0===i)return void console.warn("Refusing to cache undefined entry ");if(!s||s<0)return console.warn(`Refusing to cache entry with size ${s} for key ${t}`),void this._notifyRemove(t,i,0,r.ALL);const l=1+Math.max(n,-4)- -3;this._db.set(t,new a(i,s,l)),this._size+=s,e.size+=s,this._checkSize()}updateSize(e,t,i,s){t=e.id+t;const n=this._db.get(t);if(n&&n.entry===i){for(this._size-=n.size,e.size-=n.size;s>this._maxSize;){const e=this._notifyRemove(t,i,s,r.SOME);if(!(null!=e&&e>0))return void this._db.delete(t);s=e}n.size=s,this._size+=s,e.size+=s,this._checkSize()}}pop(e,t){t=e.id+t;const i=this._db.get(t);if(i)return this._size-=i.size,e.size-=i.size,this._db.delete(t),++this._hit,i.entry;++this._miss}get(e,t){t=e.id+t;const i=this._db.get(t);if(void 0!==i)return this._db.delete(t),i.lives=i.lifetime,this._db.set(t,i),++this._hit,i.entry;++this._miss}peek(e,t){const i=this._db.get(e.id+t);return i?++this._hit:++this._miss,i?.entry}get performanceInfo(){const e={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},t={},i=new Array;this._db.forEach(((e,r)=>{const s=e.lifetime;i[s]=(i[s]||0)+e.size,this._users.forAll((i=>{const{id:s,name:n}=i;if(r.startsWith(s)){const i=t[n]||0;t[n]=i+e.size}}))}));const r={};this._users.forAll((e=>{const i=e.name;if("hitRate"in e&&"number"==typeof e.hitRate&&!isNaN(e.hitRate)&&e.hitRate>0){const s=t[i]||0;t[i]=s,r[i]=Math.round(100*e.hitRate)+"%"}else r[i]="0%"}));const s=Object.keys(t);s.sort(((e,i)=>t[i]-t[e])),s.forEach((i=>e[i]=Math.round(t[i]/2**20)+"MB / "+r[i]));for(let t=i.length-1;t>=0;--t){const r=i[t];r&&(e["Priority "+(t+-3-1)]=Math.round(r/this._size*100)+"%")}return e}resetStats(){this._hit=this._miss=0,this._users.forAll((e=>e.resetHitRate()))}clear(e){const t=e.id;this._db.forEach(((e,i)=>{i.startsWith(t)&&(this._size-=e.size,this._db.delete(i),this._notifyRemove(i,e.entry,e.size,r.ALL))})),e.size=0}clearAll(){this._db.forEach(((e,t)=>this._notifyRemove(t,e.entry,e.size,r.ALL))),this._users.forAll((e=>e.size=0)),this._size=0,this._db.clear()}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,t,i,r){let s;return this._removeFuncs.some((n=>{if(e.startsWith(n[0])){const e=n[1](t,r,i);return"number"==typeof e&&(s=e),!0}return!1})),s}_checkSize(){this._users.forAll((e=>this._checkSizeLimits(e))),this._checkSizeLimits()}_checkSizeLimits(e){const t=e??this;if(t.maxSize<0||t.size<=t.maxSize)return;const i=e?.id;let r=!0;for(;r;){r=!1;for(const[s,n]of this._db)if(0===n.lifetime&&(!i||s.startsWith(i))){if(this._purgeItem(s,n,e),t.size<=.9*t.maxSize)return;r||=this._db.has(s)}}for(const[r,s]of this._db)if((!i||r.startsWith(i))&&(this._purgeItem(r,s,e),t.size<=.9*t.maxSize))return}_purgeItem(e,t,i=this._users.find((t=>e.startsWith(t.id)))){if(this._db.delete(e),t.lives<=1){this._size-=t.size,i&&(i.size-=t.size);const s=this._notifyRemove(e,t.entry,t.size,r.SOME);null!=s&&s>0&&(this._size+=s,i&&(i.size+=s),t.lives=t.lifetime,t.size=s,this._db.set(e,t))}else--t.lives,this._db.set(e,t)}}class a{constructor(e,t,i){this.entry=e,this.size=t,this.lifetime=i,this.lives=i}}class l{constructor(e,t){this._storage=new o,this.id="",this.name="",this.size=0,this._storage.maxSize=e,this._storage.register(this),t&&this._storage.registerRemoveFunc("",t)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(e,t,i=1){this._storage.put(this,e,t,i,1)}pop(e){return this._storage.pop(this,e)}get(e){return this._storage.get(this,e)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(e){this._storage.maxSize=e}resetHitRate(){}}},92071:(e,t,i)=>{i.d(t,{P:()=>v,L:()=>b});var r=i(90237),s=i(69622),n=i(76953),o=i(4718),a=i(35666);class l{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(a.AU),this._values=new Map,this.multipleOriginsSupported=!0}clone(e){const t=new l,i=this._originStores[a.Gr.DEFAULTS];i&&i.forEach(((e,i)=>{t.set(i,(0,o.o8)(e),a.Gr.DEFAULTS)}));for(let i=a.Gr.SERVICE;i<a.AU;i++){const r=this._originStores[i];r&&r.forEach(((r,s)=>{e&&e.has(s)||t.set(s,(0,o.o8)(r),i)}))}return t}get(e,t){const i=void 0===t?this._values:this._originStores[t];return i?i.get(e):void 0}keys(e){const t=null==e?this._values:this._originStores[e];return t?[...t.keys()]:[]}set(e,t,i=a.Gr.USER){let r=this._originStores[i];if(r||(r=new Map,this._originStores[i]=r),r.set(e,t),!this._values.has(e)||this._propertyOriginMap.get(e)<=i){const r=this._values.get(e);return this._values.set(e,t),this._propertyOriginMap.set(e,i),r!==t}return!1}delete(e,t=a.Gr.USER){const i=this._originStores[t];if(!i)return;const r=i.get(e);if(i.delete(e),this._values.has(e)&&this._propertyOriginMap.get(e)===t){this._values.delete(e);for(let i=t-1;i>=0;i--){const t=this._originStores[i];if(t&&t.has(e)){this._values.set(e,t.get(e)),this._propertyOriginMap.set(e,i);break}}}return r}has(e,t){const i=void 0===t?this._values:this._originStores[t];return!!i&&i.has(e)}revert(e,t){for(;t>0&&!this.has(e,t);)--t;const i=this._originStores[t],r=i?.get(e),s=this._values.get(e);return this._values.set(e,r),this._propertyOriginMap.set(e,t),s!==r}originOf(e){return this._propertyOriginMap.get(e)||a.Gr.DEFAULTS}forEach(e){this._values.forEach(e)}}var h=i(45917),u=i(88620),c=i(40608);const d=e=>{let t=class extends e{constructor(...e){super(...e);const t=(0,u.oY)(this),i=t.store,r=new l;t.store=r,(0,n.k)(t,i,r)}read(e,t){(0,h.L)(this,e,t)}getAtOrigin(e,t){const i=p(this),r=(0,a.aB)(t);if("string"==typeof e)return i.get(e,r);const s={};return e.forEach((e=>{s[e]=i.get(e,r)})),s}originOf(e){return(0,a.OL)(this.originIdOf(e))}originIdOf(e){return p(this).originOf(e)}revert(e,t){const i=p(this),r=(0,a.aB)(t),s=(0,u.oY)(this);let n;n="string"==typeof e?"*"===e?i.keys(r):[e]:e,n.forEach((e=>{s.invalidate(e),i.revert(e,r),s.commit(e)}))}};return t=(0,r._)([(0,c.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],t),t};function p(e){return(0,u.oY)(e).store}let y=class extends(d(s.A)){};y=(0,r._)([(0,c.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],y);var _=i(16649),g=i(49422);const f=e=>{let t=class extends e{constructor(...e){super(...e)}clear(e,t="user"){return m(this).delete(e,(0,a.aB)(t))}write(e,t){return(0,g.M)(this,e=e||{},t),e}setAtOrigin(e,t,i){(0,u.oY)(this).setAtOrigin(e,t,(0,a.aB)(i))}removeOrigin(e){const t=m(this),i=(0,a.aB)(e),r=t.keys(i);for(const e of r)t.originOf(e)===i&&t.set(e,t.get(e,i),a.Gr.USER)}updateOrigin(e,t){const i=m(this),r=(0,a.aB)(t),s=(0,_.Jt)(this,e);for(let t=r+1;t<a.AU;++t)i.delete(e,t);i.set(e,s,r)}toJSON(e){return this.write({},e)}};return t=(0,r._)([(0,c.$)("esri.core.MultiOriginJSONSupport.WriteableMultiOriginJSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};function m(e){return(0,u.oY)(e).store}const v=e=>{let t=class extends(f(d(e))){constructor(...e){super(...e)}};return t=(0,r._)([(0,c.$)("esri.core.MultiOriginJSONSupport")],t),t};let b=class extends(v(s.A)){};b=(0,r._)([(0,c.$)("esri.core.MultiOriginJSONSupport")],b)},36708:(e,t,i)=>{i.d(t,{C_:()=>d,OH:()=>_,Vh:()=>g,on:()=>c,pc:()=>f,wB:()=>l,z7:()=>h}),i(60999),i(5503);var r=i(37955),s=i(36563),n=i(97768),o=i(74887),a=i(14012);function l(e,t,i={}){return u(e,t,i,p)}function h(e,t,i={}){return u(e,t,i,y)}function u(e,t,i={},r){let s=null;const o=i.once?(e,i)=>{r(e)&&((0,n.xt)(s),t(e,i))}:(e,i)=>{r(e)&&t(e,i)};if(s=(0,a.Cn)(e,o,i.sync,i.equals),i.initial){const t=e();o(t,t)}return s}function c(e,t,i,o={}){let a=null,h=null,u=null;function c(){a&&h&&(h.remove(),o.onListenerRemove?.(a),a=null,h=null)}function d(e){o.once&&o.once&&(0,n.xt)(u),i(e)}const p=l(e,((e,i)=>{c(),(0,r.wb)(e)&&(a=e,h=(0,r.on)(e,t,d),o.onListenerAdd?.(e))}),{sync:o.sync,initial:!0});return u=(0,s.hA)((()=>{p.remove(),c()})),u}function d(e,t){return function(e,t,i){if((0,o.G4)(i))return Promise.reject((0,o.NK)());const r=e();if(t?.(r))return Promise.resolve(r);let a=null;function l(){a=(0,n.xt)(a)}return new Promise(((r,n)=>{a=(0,s.vE)([(0,o.u7)(i,(()=>{l(),n((0,o.NK)())})),u(e,(e=>{l(),r(e)}),{sync:!1,once:!0},t??p)])}))}(e,y,t)}function p(e){return!0}function y(e){return!!e}i(80559);const _={sync:!0},g={initial:!0},f={sync:!0,initial:!0}},35982:(e,t,i)=>{i.d(t,{B:()=>l});var r=i(4576),s=i(36563),n=i(53966),o=i(74887),a=i(29953);class l{constructor(e,t,i,r,s={}){this._mainMethod=t,this._transferLists=i,this._listeners=[],this._promise=(0,a.ho)(e,{...s,schedule:r}).then((e=>{if(void 0===this._thread){this._thread=e,this._promise=null,s.hasInitialize&&this.broadcast({},"initialize");for(const e of this._listeners)this._connectListener(e)}else e.close()})),this._promise.catch((t=>n.A.getLogger("esri.core.workers.WorkerHandle").error(`Failed to initialize ${e} worker: ${t}`)))}on(e,t){const i={removed:!1,eventName:e,callback:t,threadHandle:null};return this._listeners.push(i),this._connectListener(i),(0,s.hA)((()=>{i.removed=!0,(0,r.TF)(this._listeners,i),this._thread&&null!=i.threadHandle&&i.threadHandle.remove()}))}destroy(){this._thread&&(this._thread.close(),this._thread=null),this._promise=null,this._listeners.length=0,this._transferLists={}}invoke(e,t){return this.invokeMethod(this._mainMethod,e,t)}invokeMethod(e,t,i){if(this._thread){const r=this._transferLists[e],s=r?r(t):[];return this._thread.invoke(e,t,{transferList:s,signal:i})}return this._promise?this._promise.then((()=>((0,o.Te)(i),this.invokeMethod(e,t,i)))):Promise.reject(null)}broadcast(e,t){return this._thread?Promise.all(this._thread.broadcast(t,e)).then((()=>{})):this._promise?this._promise.then((()=>this.broadcast(e,t))):Promise.reject()}get promise(){return this._promise}_connectListener(e){this._thread&&this._thread.on(e.eventName,e.callback).then((t=>{e.removed||(e.threadHandle=t)}))}}},54239:(e,t,i)=>{i.d(t,{A:()=>v});var r,s=i(90237),n=i(4576),o=i(66552),a=i(25482),l=i(83047),h=i(67076),u=i(10107),c=(i(44208),i(53966),i(36005)),d=i(40608),p=i(43937);const y=(0,o.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),_=y.jsonValues.slice();(0,n.Xy)(_,"orthometric");const g=(0,o.O)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let f=r=class extends a.A{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,i){return y.write(e,t,i)}readHeightModel(e,t,i){return y.read(e)||(i?.messages&&i.messages.push(function(e,t){return new h.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:i})),null)}readHeightUnit(e,t,i){return g.read(e)||(i?.messages&&i.messages.push(m(e,{context:i})),null)}readHeightUnitService(e,t,i){return(0,l.LA)(e)||g.read(e)||(i?.messages&&i.messages.push(m(e,{context:i})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new r({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const i=(0,l.k1)(t);return new r({heightModel:e.heightModel,heightUnit:i??void 0,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new r;return t.read(e,{origin:"web-scene"}),t}};function m(e,t){return new h.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,s._)([(0,u.MZ)({type:y.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:_,default:"ellipsoidal",write:{isRequired:!0}}}}})],f.prototype,"heightModel",void 0),(0,s._)([(0,p.K)("web-scene","heightModel")],f.prototype,"writeHeightModel",null),(0,s._)([(0,c.w)(["web-scene","service"],"heightModel")],f.prototype,"readHeightModel",null),(0,s._)([(0,u.MZ)({type:g.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:g.jsonValues,write:{writer:g.write,isRequired:!0}}}}})],f.prototype,"heightUnit",void 0),(0,s._)([(0,c.w)("web-scene","heightUnit")],f.prototype,"readHeightUnit",null),(0,s._)([(0,c.w)("service","heightUnit")],f.prototype,"readHeightUnitService",null),(0,s._)([(0,u.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],f.prototype,"vertCRS",void 0),(0,s._)([(0,c.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],f.prototype,"readVertCRS",null),f=r=(0,s._)([(0,d.$)("esri.geometry.HeightModelInfo")],f);const v=f},68611:(e,t,i)=>{i.r(t),i.d(t,{default:()=>I});var r=i(90237),s=i(78888),n=i(49186),o=i(97768),a=i(92071),l=i(74887),h=i(84952),u=i(10107),c=(i(44208),i(53966),i(87811),i(36005)),d=i(40608),p=i(54239),y=i(4146),_=i(89186),g=i(18768),f=i(16131),m=i(8303),v=i(10873);class b{constructor(e,t,i,r){this._hasNoDataValues=null,this._minValue=null,this._maxValue=null,"pixelData"in e?(this.values=e.pixelData,this.width=e.width,this.height=e.height,this.noDataValue=e.noDataValue):(this.values=e,this.width=t,this.height=i,this.noDataValue=r)}get hasNoDataValues(){if(null==this._hasNoDataValues){const e=this.noDataValue;this._hasNoDataValues=this.values.includes(e)}return this._hasNoDataValues}get minValue(){return this._ensureBounds(),this._minValue}get maxValue(){return this._ensureBounds(),this._maxValue}get cachedMemory(){return this.values.byteLength+256}_ensureBounds(){if(null!=this._minValue)return;const{noDataValue:e,values:t}=this;let i=1/0,r=-1/0,s=!0;for(const n of t)n===e?this._hasNoDataValues=!0:(i=n<i?n:i,r=n>r?n:r,s=!1);s?(this._minValue=0,this._maxValue=0):(this._minValue=i,this._maxValue=r>-3e38?r:0)}}var w=i(35982);class S extends w.B{constructor(e=null){super("LercWorker","_decode",{_decode:e=>[e.buffer]},e,{strategy:"dedicated"}),this.schedule=e,this.ref=0}decode(e,t,i){return e&&0!==e.byteLength?this.invoke({buffer:e,options:t},i):Promise.resolve(null)}release(){--this.ref<=0&&(M.forEach(((e,t)=>{e===this&&M.delete(t)})),this.destroy())}}const M=new Map;let z=class extends((0,_.f)((0,g.b)((0,f.q)((0,m.A)((0,a.P)(y.A)))))){constructor(...e){super(...e),this.capabilities={operations:{supportsTileMap:!1}},this.copyright=null,this.heightModelInfo=null,this.path=null,this.minScale=void 0,this.maxScale=void 0,this.opacity=1,this.operationalLayerType="ArcGISTiledElevationServiceLayer",this.sourceJSON=null,this.type="elevation",this.url=null,this.version=null,this._lercDecoder=function(e=null){let t=M.get(e);return t||(null!=e?(t=new S((t=>e.immediate.schedule(t))),M.set(e,t)):(t=new S,M.set(null,t))),++t.ref,t}()}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){this._lercDecoder=(0,o.Gz)(this._lercDecoder)}readCapabilities(e,t){const i=t.capabilities&&t.capabilities.split(",").map((e=>e.toLowerCase().trim()));return i?{operations:{supportsTileMap:i.includes("tilemap")}}:{operations:{supportsTileMap:!1}}}readVersion(e,t){let i=t.currentVersion;return i||(i=9.3),i}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Image Service"],supportsData:!1,validateItem:e=>{if(e.typeKeywords)for(let t=0;t<e.typeKeywords.length;t++)if("elevation 3d layer"===e.typeKeywords[t].toLowerCase())return!0;throw new n.A("portal:invalid-layer-item-type","Invalid layer item type '${type}', expected '${expectedType}' ",{type:"Image Service",expectedType:"Image Service Elevation 3D Layer"})}},e).catch(l.QP).then((()=>this._fetchImageService(t)))),Promise.resolve(this)}fetchTile(e,t,i,r){const n=r?.signal,o={responseType:"array-buffer",signal:n},a={noDataValue:r?.noDataValue,returnFileInfo:!0};return this.load().then((()=>this._fetchTileAvailability(e,t,i,r))).then((()=>(0,s.A)(this.getTileUrl(e,t,i),o))).then((e=>this._lercDecoder.decode(e.data,a,n))).then((e=>new b(e)))}getTileUrl(e,t,i){const r=!this.capabilities.operations.supportsTileMap&&this.supportsBlankTile,s=(0,h.x0)({...this.parsedUrl.query,blankTile:!r&&null});return`${this.parsedUrl.path}/tile/${e}/${t}/${i}${s?"?"+s:""}`}async queryElevation(e,t){const{ElevationQuery:r}=await i.e(3492).then(i.bind(i,63492));return(0,l.Te)(t),(new r).query(this,e,t)}async createElevationSampler(e,t){const{ElevationQuery:r}=await i.e(3492).then(i.bind(i,63492));return(0,l.Te)(t),(new r).createSampler(this,e,t)}_fetchTileAvailability(e,t,i,r){return this.tilemapCache?this.tilemapCache.fetchAvailability(e,t,i,r):Promise.resolve("unknown")}async _fetchImageService(e){if(this.sourceJSON)return this.sourceJSON;const t={query:{f:"json",...this.parsedUrl.query},responseType:"json",signal:e},i=await(0,s.A)(this.parsedUrl.path,t);i.ssl&&(this.url=this.url?.replace(/^http:/i,"https:")),this.sourceJSON=i.data,this.read(i.data,{origin:"service",url:this.parsedUrl})}get hasOverriddenFetchTile(){return!this.fetchTile[A]}};(0,r._)([(0,u.MZ)({readOnly:!0})],z.prototype,"capabilities",void 0),(0,r._)([(0,c.w)("service","capabilities",["capabilities"])],z.prototype,"readCapabilities",null),(0,r._)([(0,u.MZ)({json:{read:{source:"copyrightText"}}})],z.prototype,"copyright",void 0),(0,r._)([(0,u.MZ)({readOnly:!0,type:p.A})],z.prototype,"heightModelInfo",void 0),(0,r._)([(0,u.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],z.prototype,"path",void 0),(0,r._)([(0,u.MZ)({type:["show","hide"]})],z.prototype,"listMode",void 0),(0,r._)([(0,u.MZ)({json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}},readOnly:!0})],z.prototype,"minScale",void 0),(0,r._)([(0,u.MZ)({json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}},readOnly:!0})],z.prototype,"maxScale",void 0),(0,r._)([(0,u.MZ)({json:{read:!1,write:!1,origins:{"web-document":{read:!1,write:!1}}}})],z.prototype,"opacity",void 0),(0,r._)([(0,u.MZ)({type:["ArcGISTiledElevationServiceLayer"]})],z.prototype,"operationalLayerType",void 0),(0,r._)([(0,u.MZ)()],z.prototype,"sourceJSON",void 0),(0,r._)([(0,u.MZ)({json:{read:!1},value:"elevation",readOnly:!0})],z.prototype,"type",void 0),(0,r._)([(0,u.MZ)(v.OZ)],z.prototype,"url",void 0),(0,r._)([(0,u.MZ)()],z.prototype,"version",void 0),(0,r._)([(0,c.w)("version",["currentVersion"])],z.prototype,"readVersion",null),z=(0,r._)([(0,d.$)("esri.layers.ElevationLayer")],z);const A=Symbol("default-fetch-tile");z.prototype.fetchTile[A]=!0;const I=z},4146:(e,t,i)=>{i.d(t,{A:()=>b});var r=i(90237),s=i(78888),n=i(49186),o=i(65529),a=i(4902),l=i(92474),h=i(53966),u=i(74887),c=i(84952),d=i(10107),p=(i(44208),i(87811),i(40608)),y=i(5443),_=i(16930),g=i(92602),f=i(79677);let m=0,v=class extends(o.A.EventedMixin(a.A.IdentifiableMixin(l.A))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new y.A(-180,-90,180,90,_.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+m++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=_.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0,this.createLayerView=void 0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await i.e(7982).then(i.bind(i,27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:r}=await i.e(5613).then(i.bind(i,45613));try{return await r(t)}catch(e){const i=t?.portalItem,r=i?.id||"unset",s=i?.portal?.url||g.A.portalUrl;throw h.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+s+"', id: '"+r+"')",e),e}}(e)}initialize(){this.when().catch((e=>{(0,u.zf)(e)||h.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})}))}destroy(){const e=this.parent;if(e){const t=this;"layers"in e&&e.layers.includes(t)?e.layers.remove(t):"tables"in e&&e.tables.includes(t)?e.tables.remove(t):"baseLayers"in e&&e.baseLayers.includes(t)?e.baseLayers.remove(t):"referenceLayers"in e&&e.referenceLayers.includes(t)&&e.referenceLayers.remove(t),this._set("parent",null)}}get effectiveVisible(){let e=this.visible;const t=this.parent;return e&&t&&"effectiveVisible"in t&&(e&&=t.effectiveVisible),e}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,c.An)(this.url)}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,s.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new n.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,r._)([(0,d.MZ)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,r._)([(0,d.MZ)({readOnly:!0})],v.prototype,"effectiveVisible",null),(0,r._)([(0,d.MZ)({type:y.A})],v.prototype,"fullExtent",void 0),(0,r._)([(0,d.MZ)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,r._)([(0,d.MZ)({type:String,clonable:!1})],v.prototype,"id",void 0),(0,r._)([(0,d.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,r._)([(0,d.MZ)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,r._)([(0,d.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,r._)([(0,d.MZ)({clonable:!1})],v.prototype,"parent",void 0),(0,r._)([(0,d.MZ)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,r._)([(0,d.MZ)({type:Boolean,readOnly:!0})],v.prototype,"persistenceEnabled",void 0),(0,r._)([(0,d.MZ)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,r._)([(0,d.MZ)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,r._)([(0,d.MZ)({type:_.A})],v.prototype,"spatialReference",void 0),(0,r._)([(0,d.MZ)({type:String})],v.prototype,"title",void 0),(0,r._)([(0,d.MZ)({readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,r._)([(0,d.MZ)()],v.prototype,"url",void 0),(0,r._)([(0,d.MZ)({type:f.A})],v.prototype,"visibilityTimeExtent",void 0),(0,r._)([(0,d.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,r._)([(0,p.$)("esri.layers.Layer")],v);const b=v},18768:(e,t,i)=>{i.d(t,{b:()=>l});var r=i(90237),s=i(53966),n=i(10107),o=(i(44208),i(87811),i(40608)),a=i(60694);const l=e=>{let t=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,a.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,a.Jf)(e,s.A.getLogger(this)))}};return(0,r._)([(0,n.MZ)()],t.prototype,"title",null),(0,r._)([(0,n.MZ)({type:String})],t.prototype,"url",null),t=(0,r._)([(0,o.$)("esri.layers.mixins.ArcGISService")],t),t}},8303:(e,t,i)=>{i.d(t,{A:()=>S});var r=i(90237),s=i(92602),n=i(70333),o=i(78888),a=i(60999),l=i(49186),h=i(53966),u=i(97768),c=i(74887),d=i(84952),p=i(10107),y=(i(44208),i(87811),i(36005)),_=i(40608),g=i(43937),f=i(83531),m=i(20655),v=i(80812),b=i(41318),w=i(10407);const S=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,u.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,i){if(t.itemId)return new v.default({id:t.itemId,portal:i?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:r}=await i.e(1204).then(i.bind(i,41204));return(0,c.Te)(t),await r({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,c.zf)(e)||h.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,c.QP)(e),!0))))}async setUserPrivileges(e,t){if(!s.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:i,fullEdit:r},content:{updateItem:s}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",i),this._set("userHasFullEditingPrivileges",r),this._set("userHasUpdateItemPrivileges",s)}catch(e){(0,c.QP)(e)}}async _fetchUserPrivileges(e,t){let i=this.portalItem;if(!e||!i||!i.loaded||i.sourceUrl)return this._fetchFallbackUserPrivileges(t);const r=!n.id?.findCredential(this.url),s=e===i.id;if(s&&i.portal.user)return this._getUserPrivileges(i,r);let o,a;if(s)o=i.portal.url;else try{o=await(0,f.wI)(this.url,t)}catch(e){(0,c.QP)(e)}if(!o||!(0,d.b8)(o,i.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;a=await(n.id?.getCredential(`${o}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,c.QP)(e)}const l=!0,h=!1,u=!1;if(!a)return{features:{edit:l,fullEdit:h},content:{updateItem:u}};try{if(s?await i.reload():(i=new v.default({id:e,portal:{url:o}}),await i.load(t)),i.portal.user)return this._getUserPrivileges(i,r)}catch(e){(0,c.QP)(e)}return{features:{edit:l,fullEdit:h},content:{updateItem:u}}}_getUserPrivileges(e,t){const i=(0,w.It)(e);return t&&(i.features.edit=!0),i}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,c.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?n.id?.findCredential(this.url):null;if(!t)return!0;const i=M.credential===t?M.user:await this._fetchEditingUser(e);return M.credential=t,M.user=i,null==i?.privileges||i.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const i=n.id?.findServerInfo(this.url??"");if(!i?.owningSystemUrl)return null;const r=`${i.owningSystemUrl}/sharing/rest`,s=m.A.getDefault();if(s&&s.loaded&&(0,d.S8)(s.restUrl)===(0,d.S8)(r))return s.user;const l=`${r}/community/self`,h=null!=e?e.signal:null,u=await(0,a.Ke)((0,o.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:h}));return u.ok?b.A.fromJSON(u.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const i=t?.portal,r=this.portalItem?.id&&(this.portalItem.portal||m.A.getDefault());return i&&r&&!(0,d.ut)(r.restUrl,i.restUrl)?(t.messages&&t.messages.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,r._)([(0,p.MZ)({type:v.default})],t.prototype,"portalItem",null),(0,r._)([(0,y.w)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,r._)([(0,g.K)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,r._)([(0,p.MZ)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,r._)([(0,p.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,r._)([(0,p.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,r._)([(0,p.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,r._)([(0,_.$)("esri.layers.mixins.PortalLayer")],t),t},M={credential:null,user:null}},78553:(e,t,i)=>{i.d(t,{D:()=>n,p:()=>s});var r=i(56507);function s(e){const t=(0,r.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
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3816,8256],{4902:(e,t,i)=>{i.d(t,{A:()=>u});var r=i(90237),s=i(40608);let n=0;const o=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+n++})}};return t=(0,r._)([(0,s.$)("esri.core.Identifiable")],t),t},a=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:n++})}};return t=(0,r._)([(0,s.$)("esri.core.Identifiable.NumericIdentifiable")],t),t};let l=class extends(o(class{})){};var h;l=(0,r._)([(0,s.$)("esri.core.Identifiable")],l),(h=l||(l={})).IdentifiableMixin=o,h.NumericIdentifiableMixin=a;const u=l},66344:(e,t,i)=>{i.d(t,{q:()=>l});var r,s,n=i(3694);(s=r||(r={}))[s.ALL=0]="ALL",s[s.SOME=1]="SOME";class o{get size(){return this._size}constructor(e=10485760){this._maxSize=e,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._removeFuncs=new n.A,this._users=new n.A}destroy(){this.clearAll(),this._removeFuncs.clear(),this._users.clear()}register(e){this._users.push(e)}deregister(e){this._users.removeUnordered(e)}registerRemoveFunc(e,t){this._removeFuncs.push([e,t])}deregisterRemoveFunc(e){this._removeFuncs.filterInPlace((t=>t[0]!==e))}get maxSize(){return this._maxSize}set maxSize(e){this._maxSize=Math.max(e,-1),this._checkSize()}getSize(e,t){const i=this._db.get(e.id+t);return i?.size??0}put(e,t,i,s,n){t=e.id+t;const o=this._db.get(t);if(o&&(this._size-=o.size,e.size-=o.size,this._db.delete(t),o.entry!==i&&this._notifyRemove(t,o.entry,o.size,r.ALL)),s>this._maxSize)return void this._notifyRemove(t,i,s,r.ALL);if(void 0===i)return void console.warn("Refusing to cache undefined entry ");if(!s||s<0)return console.warn(`Refusing to cache entry with size ${s} for key ${t}`),void this._notifyRemove(t,i,0,r.ALL);const l=1+Math.max(n,-4)- -3;this._db.set(t,new a(i,s,l)),this._size+=s,e.size+=s,this._checkSize()}updateSize(e,t,i,s){t=e.id+t;const n=this._db.get(t);if(n&&n.entry===i){for(this._size-=n.size,e.size-=n.size;s>this._maxSize;){const e=this._notifyRemove(t,i,s,r.SOME);if(!(null!=e&&e>0))return void this._db.delete(t);s=e}n.size=s,this._size+=s,e.size+=s,this._checkSize()}}pop(e,t){t=e.id+t;const i=this._db.get(t);if(i)return this._size-=i.size,e.size-=i.size,this._db.delete(t),++this._hit,i.entry;++this._miss}get(e,t){t=e.id+t;const i=this._db.get(t);if(void 0!==i)return this._db.delete(t),i.lives=i.lifetime,this._db.set(t,i),++this._hit,i.entry;++this._miss}peek(e,t){const i=this._db.get(e.id+t);return i?++this._hit:++this._miss,i?.entry}get performanceInfo(){const e={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},t={},i=new Array;this._db.forEach(((e,r)=>{const s=e.lifetime;i[s]=(i[s]||0)+e.size,this._users.forAll((i=>{const{id:s,name:n}=i;if(r.startsWith(s)){const i=t[n]||0;t[n]=i+e.size}}))}));const r={};this._users.forAll((e=>{const i=e.name;if("hitRate"in e&&"number"==typeof e.hitRate&&!isNaN(e.hitRate)&&e.hitRate>0){const s=t[i]||0;t[i]=s,r[i]=Math.round(100*e.hitRate)+"%"}else r[i]="0%"}));const s=Object.keys(t);s.sort(((e,i)=>t[i]-t[e])),s.forEach((i=>e[i]=Math.round(t[i]/2**20)+"MB / "+r[i]));for(let t=i.length-1;t>=0;--t){const r=i[t];r&&(e["Priority "+(t+-3-1)]=Math.round(r/this._size*100)+"%")}return e}resetStats(){this._hit=this._miss=0,this._users.forAll((e=>e.resetHitRate()))}clear(e){const t=e.id;this._db.forEach(((e,i)=>{i.startsWith(t)&&(this._size-=e.size,this._db.delete(i),this._notifyRemove(i,e.entry,e.size,r.ALL))})),e.size=0}clearAll(){this._db.forEach(((e,t)=>this._notifyRemove(t,e.entry,e.size,r.ALL))),this._users.forAll((e=>e.size=0)),this._size=0,this._db.clear()}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,t,i,r){let s;return this._removeFuncs.some((n=>{if(e.startsWith(n[0])){const e=n[1](t,r,i);return"number"==typeof e&&(s=e),!0}return!1})),s}_checkSize(){this._users.forAll((e=>this._checkSizeLimits(e))),this._checkSizeLimits()}_checkSizeLimits(e){const t=e??this;if(t.maxSize<0||t.size<=t.maxSize)return;const i=e?.id;let r=!0;for(;r;){r=!1;for(const[s,n]of this._db)if(0===n.lifetime&&(!i||s.startsWith(i))){if(this._purgeItem(s,n,e),t.size<=.9*t.maxSize)return;r||=this._db.has(s)}}for(const[r,s]of this._db)if((!i||r.startsWith(i))&&(this._purgeItem(r,s,e),t.size<=.9*t.maxSize))return}_purgeItem(e,t,i=this._users.find((t=>e.startsWith(t.id)))){if(this._db.delete(e),t.lives<=1){this._size-=t.size,i&&(i.size-=t.size);const s=this._notifyRemove(e,t.entry,t.size,r.SOME);null!=s&&s>0&&(this._size+=s,i&&(i.size+=s),t.lives=t.lifetime,t.size=s,this._db.set(e,t))}else--t.lives,this._db.set(e,t)}}class a{constructor(e,t,i){this.entry=e,this.size=t,this.lifetime=i,this.lives=i}}class l{constructor(e,t){this._storage=new o,this.id="",this.name="",this.size=0,this._storage.maxSize=e,this._storage.register(this),t&&this._storage.registerRemoveFunc("",t)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(e,t,i=1){this._storage.put(this,e,t,i,1)}pop(e){return this._storage.pop(this,e)}get(e){return this._storage.get(this,e)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(e){this._storage.maxSize=e}resetHitRate(){}}},92071:(e,t,i)=>{i.d(t,{P:()=>v,L:()=>b});var r=i(90237),s=i(69622),n=i(76953),o=i(4718),a=i(35666);class l{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(a.AU),this._values=new Map,this.multipleOriginsSupported=!0}clone(e){const t=new l,i=this._originStores[a.Gr.DEFAULTS];i&&i.forEach(((e,i)=>{t.set(i,(0,o.o8)(e),a.Gr.DEFAULTS)}));for(let i=a.Gr.SERVICE;i<a.AU;i++){const r=this._originStores[i];r&&r.forEach(((r,s)=>{e&&e.has(s)||t.set(s,(0,o.o8)(r),i)}))}return t}get(e,t){const i=void 0===t?this._values:this._originStores[t];return i?i.get(e):void 0}keys(e){const t=null==e?this._values:this._originStores[e];return t?[...t.keys()]:[]}set(e,t,i=a.Gr.USER){let r=this._originStores[i];if(r||(r=new Map,this._originStores[i]=r),r.set(e,t),!this._values.has(e)||this._propertyOriginMap.get(e)<=i){const r=this._values.get(e);return this._values.set(e,t),this._propertyOriginMap.set(e,i),r!==t}return!1}delete(e,t=a.Gr.USER){const i=this._originStores[t];if(!i)return;const r=i.get(e);if(i.delete(e),this._values.has(e)&&this._propertyOriginMap.get(e)===t){this._values.delete(e);for(let i=t-1;i>=0;i--){const t=this._originStores[i];if(t&&t.has(e)){this._values.set(e,t.get(e)),this._propertyOriginMap.set(e,i);break}}}return r}has(e,t){const i=void 0===t?this._values:this._originStores[t];return!!i&&i.has(e)}revert(e,t){for(;t>0&&!this.has(e,t);)--t;const i=this._originStores[t],r=i?.get(e),s=this._values.get(e);return this._values.set(e,r),this._propertyOriginMap.set(e,t),s!==r}originOf(e){return this._propertyOriginMap.get(e)||a.Gr.DEFAULTS}forEach(e){this._values.forEach(e)}}var h=i(45917),u=i(88620),c=i(40608);const d=e=>{let t=class extends e{constructor(...e){super(...e);const t=(0,u.oY)(this),i=t.store,r=new l;t.store=r,(0,n.k)(t,i,r)}read(e,t){(0,h.L)(this,e,t)}getAtOrigin(e,t){const i=p(this),r=(0,a.aB)(t);if("string"==typeof e)return i.get(e,r);const s={};return e.forEach((e=>{s[e]=i.get(e,r)})),s}originOf(e){return(0,a.OL)(this.originIdOf(e))}originIdOf(e){return p(this).originOf(e)}revert(e,t){const i=p(this),r=(0,a.aB)(t),s=(0,u.oY)(this);let n;n="string"==typeof e?"*"===e?i.keys(r):[e]:e,n.forEach((e=>{s.invalidate(e),i.revert(e,r),s.commit(e)}))}};return t=(0,r._)([(0,c.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],t),t};function p(e){return(0,u.oY)(e).store}let y=class extends(d(s.A)){};y=(0,r._)([(0,c.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],y);var _=i(16649),g=i(49422);const f=e=>{let t=class extends e{constructor(...e){super(...e)}clear(e,t="user"){return m(this).delete(e,(0,a.aB)(t))}write(e,t){return(0,g.M)(this,e=e||{},t),e}setAtOrigin(e,t,i){(0,u.oY)(this).setAtOrigin(e,t,(0,a.aB)(i))}removeOrigin(e){const t=m(this),i=(0,a.aB)(e),r=t.keys(i);for(const e of r)t.originOf(e)===i&&t.set(e,t.get(e,i),a.Gr.USER)}updateOrigin(e,t){const i=m(this),r=(0,a.aB)(t),s=(0,_.Jt)(this,e);for(let t=r+1;t<a.AU;++t)i.delete(e,t);i.set(e,s,r)}toJSON(e){return this.write({},e)}};return t=(0,r._)([(0,c.$)("esri.core.MultiOriginJSONSupport.WriteableMultiOriginJSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};function m(e){return(0,u.oY)(e).store}const v=e=>{let t=class extends(f(d(e))){constructor(...e){super(...e)}};return t=(0,r._)([(0,c.$)("esri.core.MultiOriginJSONSupport")],t),t};let b=class extends(v(s.A)){};b=(0,r._)([(0,c.$)("esri.core.MultiOriginJSONSupport")],b)},36708:(e,t,i)=>{i.d(t,{C_:()=>d,OH:()=>_,Vh:()=>g,on:()=>c,pc:()=>f,wB:()=>l,z7:()=>h}),i(60999),i(5503);var r=i(37955),s=i(36563),n=i(97768),o=i(74887),a=i(14012);function l(e,t,i={}){return u(e,t,i,p)}function h(e,t,i={}){return u(e,t,i,y)}function u(e,t,i={},r){let s=null;const o=i.once?(e,i)=>{r(e)&&((0,n.xt)(s),t(e,i))}:(e,i)=>{r(e)&&t(e,i)};if(s=(0,a.Cn)(e,o,i.sync,i.equals),i.initial){const t=e();o(t,t)}return s}function c(e,t,i,o={}){let a=null,h=null,u=null;function c(){a&&h&&(h.remove(),o.onListenerRemove?.(a),a=null,h=null)}function d(e){o.once&&o.once&&(0,n.xt)(u),i(e)}const p=l(e,((e,i)=>{c(),(0,r.wb)(e)&&(a=e,h=(0,r.on)(e,t,d),o.onListenerAdd?.(e))}),{sync:o.sync,initial:!0});return u=(0,s.hA)((()=>{p.remove(),c()})),u}function d(e,t){return function(e,t,i){if((0,o.G4)(i))return Promise.reject((0,o.NK)());const r=e();if(t?.(r))return Promise.resolve(r);let a=null;function l(){a=(0,n.xt)(a)}return new Promise(((r,n)=>{a=(0,s.vE)([(0,o.u7)(i,(()=>{l(),n((0,o.NK)())})),u(e,(e=>{l(),r(e)}),{sync:!1,once:!0},t??p)])}))}(e,y,t)}function p(e){return!0}function y(e){return!!e}i(80559);const _={sync:!0},g={initial:!0},f={sync:!0,initial:!0}},35982:(e,t,i)=>{i.d(t,{B:()=>l});var r=i(4576),s=i(36563),n=i(53966),o=i(74887),a=i(29953);class l{constructor(e,t,i,r,s={}){this._mainMethod=t,this._transferLists=i,this._listeners=[],this._promise=(0,a.ho)(e,{...s,schedule:r}).then((e=>{if(void 0===this._thread){this._thread=e,this._promise=null,s.hasInitialize&&this.broadcast({},"initialize");for(const e of this._listeners)this._connectListener(e)}else e.close()})),this._promise.catch((t=>n.A.getLogger("esri.core.workers.WorkerHandle").error(`Failed to initialize ${e} worker: ${t}`)))}on(e,t){const i={removed:!1,eventName:e,callback:t,threadHandle:null};return this._listeners.push(i),this._connectListener(i),(0,s.hA)((()=>{i.removed=!0,(0,r.TF)(this._listeners,i),this._thread&&null!=i.threadHandle&&i.threadHandle.remove()}))}destroy(){this._thread&&(this._thread.close(),this._thread=null),this._promise=null,this._listeners.length=0,this._transferLists={}}invoke(e,t){return this.invokeMethod(this._mainMethod,e,t)}invokeMethod(e,t,i){if(this._thread){const r=this._transferLists[e],s=r?r(t):[];return this._thread.invoke(e,t,{transferList:s,signal:i})}return this._promise?this._promise.then((()=>((0,o.Te)(i),this.invokeMethod(e,t,i)))):Promise.reject(null)}broadcast(e,t){return this._thread?Promise.all(this._thread.broadcast(t,e)).then((()=>{})):this._promise?this._promise.then((()=>this.broadcast(e,t))):Promise.reject()}get promise(){return this._promise}_connectListener(e){this._thread&&this._thread.on(e.eventName,e.callback).then((t=>{e.removed||(e.threadHandle=t)}))}}},54239:(e,t,i)=>{i.d(t,{A:()=>v});var r,s=i(90237),n=i(4576),o=i(66552),a=i(25482),l=i(83047),h=i(67076),u=i(10107),c=(i(44208),i(53966),i(36005)),d=i(40608),p=i(43937);const y=(0,o.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),_=y.jsonValues.slice();(0,n.Xy)(_,"orthometric");const g=(0,o.O)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let f=r=class extends a.A{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,i){return y.write(e,t,i)}readHeightModel(e,t,i){return y.read(e)||(i?.messages&&i.messages.push(function(e,t){return new h.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:i})),null)}readHeightUnit(e,t,i){return g.read(e)||(i?.messages&&i.messages.push(m(e,{context:i})),null)}readHeightUnitService(e,t,i){return(0,l.LA)(e)||g.read(e)||(i?.messages&&i.messages.push(m(e,{context:i})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new r({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const i=(0,l.k1)(t);return new r({heightModel:e.heightModel,heightUnit:i??void 0,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new r;return t.read(e,{origin:"web-scene"}),t}};function m(e,t){return new h.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,s._)([(0,u.MZ)({type:y.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:_,default:"ellipsoidal",write:{isRequired:!0}}}}})],f.prototype,"heightModel",void 0),(0,s._)([(0,p.K)("web-scene","heightModel")],f.prototype,"writeHeightModel",null),(0,s._)([(0,c.w)(["web-scene","service"],"heightModel")],f.prototype,"readHeightModel",null),(0,s._)([(0,u.MZ)({type:g.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:g.jsonValues,write:{writer:g.write,isRequired:!0}}}}})],f.prototype,"heightUnit",void 0),(0,s._)([(0,c.w)("web-scene","heightUnit")],f.prototype,"readHeightUnit",null),(0,s._)([(0,c.w)("service","heightUnit")],f.prototype,"readHeightUnitService",null),(0,s._)([(0,u.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],f.prototype,"vertCRS",void 0),(0,s._)([(0,c.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],f.prototype,"readVertCRS",null),f=r=(0,s._)([(0,d.$)("esri.geometry.HeightModelInfo")],f);const v=f},68611:(e,t,i)=>{i.r(t),i.d(t,{default:()=>I});var r=i(90237),s=i(78888),n=i(49186),o=i(97768),a=i(92071),l=i(74887),h=i(84952),u=i(10107),c=(i(44208),i(53966),i(87811),i(36005)),d=i(40608),p=i(54239),y=i(4146),_=i(89186),g=i(18768),f=i(16131),m=i(8303),v=i(10873);class b{constructor(e,t,i,r){this._hasNoDataValues=null,this._minValue=null,this._maxValue=null,"pixelData"in e?(this.values=e.pixelData,this.width=e.width,this.height=e.height,this.noDataValue=e.noDataValue):(this.values=e,this.width=t,this.height=i,this.noDataValue=r)}get hasNoDataValues(){if(null==this._hasNoDataValues){const e=this.noDataValue;this._hasNoDataValues=this.values.includes(e)}return this._hasNoDataValues}get minValue(){return this._ensureBounds(),this._minValue}get maxValue(){return this._ensureBounds(),this._maxValue}get cachedMemory(){return this.values.byteLength+256}_ensureBounds(){if(null!=this._minValue)return;const{noDataValue:e,values:t}=this;let i=1/0,r=-1/0,s=!0;for(const n of t)n===e?this._hasNoDataValues=!0:(i=n<i?n:i,r=n>r?n:r,s=!1);s?(this._minValue=0,this._maxValue=0):(this._minValue=i,this._maxValue=r>-3e38?r:0)}}var w=i(35982);class S extends w.B{constructor(e=null){super("LercWorker","_decode",{_decode:e=>[e.buffer]},e,{strategy:"dedicated"}),this.schedule=e,this.ref=0}decode(e,t,i){return e&&0!==e.byteLength?this.invoke({buffer:e,options:t},i):Promise.resolve(null)}release(){--this.ref<=0&&(M.forEach(((e,t)=>{e===this&&M.delete(t)})),this.destroy())}}const M=new Map;let A=class extends((0,_.f)((0,g.b)((0,f.q)((0,m.A)((0,a.P)(y.A)))))){constructor(...e){super(...e),this.capabilities={operations:{supportsTileMap:!1}},this.copyright=null,this.heightModelInfo=null,this.path=null,this.minScale=void 0,this.maxScale=void 0,this.opacity=1,this.operationalLayerType="ArcGISTiledElevationServiceLayer",this.sourceJSON=null,this.type="elevation",this.url=null,this.version=null,this._lercDecoder=function(e=null){let t=M.get(e);return t||(null!=e?(t=new S((t=>e.immediate.schedule(t))),M.set(e,t)):(t=new S,M.set(null,t))),++t.ref,t}()}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){this._lercDecoder=(0,o.Gz)(this._lercDecoder)}readCapabilities(e,t){const i=t.capabilities&&t.capabilities.split(",").map((e=>e.toLowerCase().trim()));return i?{operations:{supportsTileMap:i.includes("tilemap")}}:{operations:{supportsTileMap:!1}}}readVersion(e,t){let i=t.currentVersion;return i||(i=9.3),i}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Image Service"],supportsData:!1,validateItem:e=>{if(e.typeKeywords)for(let t=0;t<e.typeKeywords.length;t++)if("elevation 3d layer"===e.typeKeywords[t].toLowerCase())return!0;throw new n.A("portal:invalid-layer-item-type","Invalid layer item type '${type}', expected '${expectedType}' ",{type:"Image Service",expectedType:"Image Service Elevation 3D Layer"})}},e).catch(l.QP).then((()=>this._fetchImageService(t)))),Promise.resolve(this)}fetchTile(e,t,i,r){const n=r?.signal,o={responseType:"array-buffer",signal:n},a={noDataValue:r?.noDataValue,returnFileInfo:!0};return this.load().then((()=>this._fetchTileAvailability(e,t,i,r))).then((()=>(0,s.A)(this.getTileUrl(e,t,i),o))).then((e=>this._lercDecoder.decode(e.data,a,n))).then((e=>new b(e)))}getTileUrl(e,t,i){const r=!this.capabilities.operations.supportsTileMap&&this.supportsBlankTile,s=(0,h.x0)({...this.parsedUrl.query,blankTile:!r&&null});return`${this.parsedUrl.path}/tile/${e}/${t}/${i}${s?"?"+s:""}`}async queryElevation(e,t){const{ElevationQuery:r}=await i.e(3492).then(i.bind(i,63492));return(0,l.Te)(t),(new r).query(this,e,t)}async createElevationSampler(e,t){const{ElevationQuery:r}=await i.e(3492).then(i.bind(i,63492));return(0,l.Te)(t),(new r).createSampler(this,e,t)}_fetchTileAvailability(e,t,i,r){return this.tilemapCache?this.tilemapCache.fetchAvailability(e,t,i,r):Promise.resolve("unknown")}async _fetchImageService(e){if(this.sourceJSON)return this.sourceJSON;const t={query:{f:"json",...this.parsedUrl.query},responseType:"json",signal:e},i=await(0,s.A)(this.parsedUrl.path,t);i.ssl&&(this.url=this.url?.replace(/^http:/i,"https:")),this.sourceJSON=i.data,this.read(i.data,{origin:"service",url:this.parsedUrl})}get hasOverriddenFetchTile(){return!this.fetchTile[z]}};(0,r._)([(0,u.MZ)({readOnly:!0})],A.prototype,"capabilities",void 0),(0,r._)([(0,c.w)("service","capabilities",["capabilities"])],A.prototype,"readCapabilities",null),(0,r._)([(0,u.MZ)({json:{read:{source:"copyrightText"}}})],A.prototype,"copyright",void 0),(0,r._)([(0,u.MZ)({readOnly:!0,type:p.A})],A.prototype,"heightModelInfo",void 0),(0,r._)([(0,u.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],A.prototype,"path",void 0),(0,r._)([(0,u.MZ)({type:["show","hide"]})],A.prototype,"listMode",void 0),(0,r._)([(0,u.MZ)({json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}},readOnly:!0})],A.prototype,"minScale",void 0),(0,r._)([(0,u.MZ)({json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}},readOnly:!0})],A.prototype,"maxScale",void 0),(0,r._)([(0,u.MZ)({json:{read:!1,write:!1,origins:{"web-document":{read:!1,write:!1}}}})],A.prototype,"opacity",void 0),(0,r._)([(0,u.MZ)({type:["ArcGISTiledElevationServiceLayer"]})],A.prototype,"operationalLayerType",void 0),(0,r._)([(0,u.MZ)()],A.prototype,"sourceJSON",void 0),(0,r._)([(0,u.MZ)({json:{read:!1},value:"elevation",readOnly:!0})],A.prototype,"type",void 0),(0,r._)([(0,u.MZ)(v.OZ)],A.prototype,"url",void 0),(0,r._)([(0,u.MZ)()],A.prototype,"version",void 0),(0,r._)([(0,c.w)("version",["currentVersion"])],A.prototype,"readVersion",null),A=(0,r._)([(0,d.$)("esri.layers.ElevationLayer")],A);const z=Symbol("default-fetch-tile");A.prototype.fetchTile[z]=!0;const I=A},4146:(e,t,i)=>{i.d(t,{A:()=>b});var r=i(90237),s=i(78888),n=i(49186),o=i(65529),a=i(4902),l=i(92474),h=i(53966),u=i(74887),c=i(84952),d=i(10107),p=(i(44208),i(87811),i(40608)),y=i(5443),_=i(16930),g=i(92602),f=i(79677);let m=0,v=class extends(o.A.EventedMixin(a.A.IdentifiableMixin(l.A))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new y.A(-180,-90,180,90,_.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+m++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=_.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await i.e(7982).then(i.bind(i,27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:r}=await i.e(5613).then(i.bind(i,45613));try{return await r(t)}catch(e){const i=t?.portalItem,r=i?.id||"unset",s=i?.portal?.url||g.A.portalUrl;throw h.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+s+"', id: '"+r+"')",e),e}}(e)}initialize(){this.when().catch((e=>{(0,u.zf)(e)||h.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})}))}destroy(){const e=this.parent;if(e){const t=this;"layers"in e&&e.layers.includes(t)?e.layers.remove(t):"tables"in e&&e.tables.includes(t)?e.tables.remove(t):"baseLayers"in e&&e.baseLayers.includes(t)?e.baseLayers.remove(t):"referenceLayers"in e&&e.referenceLayers.includes(t)&&e.referenceLayers.remove(t),this._set("parent",null)}}get effectiveVisible(){let e=this.visible;const t=this.parent;return e&&t&&"effectiveVisible"in t&&(e&&=t.effectiveVisible),e}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,c.An)(this.url)}createLayerView(e,t){return Promise.reject(new n.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,s.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new n.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,r._)([(0,d.MZ)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,r._)([(0,d.MZ)({readOnly:!0})],v.prototype,"effectiveVisible",null),(0,r._)([(0,d.MZ)({type:y.A})],v.prototype,"fullExtent",void 0),(0,r._)([(0,d.MZ)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,r._)([(0,d.MZ)({type:String,clonable:!1})],v.prototype,"id",void 0),(0,r._)([(0,d.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,r._)([(0,d.MZ)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,r._)([(0,d.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,r._)([(0,d.MZ)({clonable:!1})],v.prototype,"parent",void 0),(0,r._)([(0,d.MZ)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,r._)([(0,d.MZ)({type:Boolean,readOnly:!0})],v.prototype,"persistenceEnabled",void 0),(0,r._)([(0,d.MZ)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,r._)([(0,d.MZ)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,r._)([(0,d.MZ)({type:_.A})],v.prototype,"spatialReference",void 0),(0,r._)([(0,d.MZ)({type:String})],v.prototype,"title",void 0),(0,r._)([(0,d.MZ)({readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,r._)([(0,d.MZ)()],v.prototype,"url",void 0),(0,r._)([(0,d.MZ)({type:f.A})],v.prototype,"visibilityTimeExtent",void 0),(0,r._)([(0,d.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,r._)([(0,p.$)("esri.layers.Layer")],v);const b=v},18768:(e,t,i)=>{i.d(t,{b:()=>l});var r=i(90237),s=i(53966),n=i(10107),o=(i(44208),i(87811),i(40608)),a=i(60694);const l=e=>{let t=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,a.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,a.Jf)(e,s.A.getLogger(this)))}};return(0,r._)([(0,n.MZ)()],t.prototype,"title",null),(0,r._)([(0,n.MZ)({type:String})],t.prototype,"url",null),t=(0,r._)([(0,o.$)("esri.layers.mixins.ArcGISService")],t),t}},8303:(e,t,i)=>{i.d(t,{A:()=>S});var r=i(90237),s=i(92602),n=i(70333),o=i(78888),a=i(60999),l=i(49186),h=i(53966),u=i(97768),c=i(74887),d=i(84952),p=i(10107),y=(i(44208),i(87811),i(36005)),_=i(40608),g=i(43937),f=i(83531),m=i(20655),v=i(80812),b=i(41318),w=i(10407);const S=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,u.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,i){if(t.itemId)return new v.default({id:t.itemId,portal:i?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:r}=await i.e(1204).then(i.bind(i,41204));return(0,c.Te)(t),await r({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,c.zf)(e)||h.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,c.QP)(e),!0))))}async setUserPrivileges(e,t){if(!s.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:i,fullEdit:r},content:{updateItem:s}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",i),this._set("userHasFullEditingPrivileges",r),this._set("userHasUpdateItemPrivileges",s)}catch(e){(0,c.QP)(e)}}async _fetchUserPrivileges(e,t){let i=this.portalItem;if(!e||!i||!i.loaded||i.sourceUrl)return this._fetchFallbackUserPrivileges(t);const r=!n.id?.findCredential(this.url),s=e===i.id;if(s&&i.portal.user)return this._getUserPrivileges(i,r);let o,a;if(s)o=i.portal.url;else try{o=await(0,f.wI)(this.url,t)}catch(e){(0,c.QP)(e)}if(!o||!(0,d.b8)(o,i.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;a=await(n.id?.getCredential(`${o}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,c.QP)(e)}const l=!0,h=!1,u=!1;if(!a)return{features:{edit:l,fullEdit:h},content:{updateItem:u}};try{if(s?await i.reload():(i=new v.default({id:e,portal:{url:o}}),await i.load(t)),i.portal.user)return this._getUserPrivileges(i,r)}catch(e){(0,c.QP)(e)}return{features:{edit:l,fullEdit:h},content:{updateItem:u}}}_getUserPrivileges(e,t){const i=(0,w.It)(e);return t&&(i.features.edit=!0),i}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,c.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?n.id?.findCredential(this.url):null;if(!t)return!0;const i=M.credential===t?M.user:await this._fetchEditingUser(e);return M.credential=t,M.user=i,null==i?.privileges||i.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const i=n.id?.findServerInfo(this.url??"");if(!i?.owningSystemUrl)return null;const r=`${i.owningSystemUrl}/sharing/rest`,s=m.A.getDefault();if(s&&s.loaded&&(0,d.S8)(s.restUrl)===(0,d.S8)(r))return s.user;const l=`${r}/community/self`,h=null!=e?e.signal:null,u=await(0,a.Ke)((0,o.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:h}));return u.ok?b.A.fromJSON(u.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const i=t?.portal,r=this.portalItem?.id&&(this.portalItem.portal||m.A.getDefault());return i&&r&&!(0,d.ut)(r.restUrl,i.restUrl)?(t.messages&&t.messages.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,r._)([(0,p.MZ)({type:v.default})],t.prototype,"portalItem",null),(0,r._)([(0,y.w)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,r._)([(0,g.K)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,r._)([(0,p.MZ)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,r._)([(0,p.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,r._)([(0,p.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,r._)([(0,p.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,r._)([(0,_.$)("esri.layers.mixins.PortalLayer")],t),t},M={credential:null,user:null}},78553:(e,t,i)=>{i.d(t,{D:()=>n,p:()=>s});var r=i(56507);function s(e){const t=(0,r.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,3 +1,3 @@
1
1
  /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2
2
  See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
3
- v3.0.0-next.126 */
3
+ v3.0.0-next.132 */
@@ -1,2 +1,2 @@
1
- /*! For license information please see 72cf9192292e5c85c6df.js.LICENSE.txt */
2
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7007],{83623:(t,e,n)=>{function i(t){return"l"===t?"m":"s"}n.d(e,{g:()=>i}),n(84137)},79e3:(t,e,n)=>{n.d(e,{D:()=>I,a:()=>R,b:()=>E,g:()=>w,h:()=>S,i:()=>T,k:()=>x,l:()=>z,m:()=>M,p:()=>y,q:()=>N,r:()=>k,s:()=>O,t:()=>_,u:()=>D,v:()=>C,w:()=>P}),n(34088);var i=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"].join(","),r=typeof Element>"u",o=r?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,s=!r&&Element.prototype.getRootNode?function(t){var e;return null==t||null===(e=t.getRootNode)||void 0===e?void 0:e.call(t)}:function(t){return t?.ownerDocument},a=function t(e,n){var i;void 0===n&&(n=!0);var r=null==e||null===(i=e.getAttribute)||void 0===i?void 0:i.call(e,"inert");return""===r||"true"===r||n&&e&&t(e.parentNode)},c=function t(e,n,r){for(var s=[],c=Array.from(e);c.length;){var l=c.shift();if(!a(l,!1))if("SLOT"===l.tagName){var u=l.assignedElements(),d=t(u.length?u:l.children,!0,r);r.flatten?s.push.apply(s,d):s.push({scopeParent:l,candidates:d})}else{o.call(l,i)&&r.filter(l)&&(n||!e.includes(l))&&s.push(l);var h=l.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(l),f=!a(h,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(l));if(h&&f){var p=t(!0===h?l.children:h.children,!0,r);r.flatten?s.push.apply(s,p):s.push({scopeParent:l,candidates:p})}else c.unshift.apply(c,l.children)}}return s},l=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},u=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||function(t){var e,n=null==t||null===(e=t.getAttribute)||void 0===e?void 0:e.call(t,"contenteditable");return""===n||"true"===n}(t))&&!l(t)?0:t.tabIndex},d=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},h=function(t){return"INPUT"===t.tagName},f=function(t){var e=t.getBoundingClientRect(),n=e.width,i=e.height;return 0===n&&0===i},p=function(t,e){return!(e.disabled||a(e)||function(t){return h(t)&&"hidden"===t.type}(e)||function(t,e){var n=e.displayCheck,i=e.getShadowRoot;if("hidden"===getComputedStyle(t).visibility)return!0;var r=o.call(t,"details>summary:first-of-type")?t.parentElement:t;if(o.call(r,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return f(t)}else{if("function"==typeof i){for(var a=t;t;){var c=t.parentElement,l=s(t);if(c&&!c.shadowRoot&&!0===i(c))return f(t);t=t.assignedSlot?t.assignedSlot:c||l===t.ownerDocument?c:l.host}t=a}if(function(t){var e,n,i,r,o=t&&s(t),a=null===(e=o)||void 0===e?void 0:e.host,c=!1;if(o&&o!==t)for(c=!!(null!==(n=a)&&void 0!==n&&null!==(i=n.ownerDocument)&&void 0!==i&&i.contains(a)||null!=t&&null!==(r=t.ownerDocument)&&void 0!==r&&r.contains(t));!c&&a;){var l,u,d;c=!(null===(u=a=null===(l=o=s(a))||void 0===l?void 0:l.host)||void 0===u||null===(d=u.ownerDocument)||void 0===d||!d.contains(a))}return c}(t))return!t.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(e,t)||function(t){return"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some((function(t){return"SUMMARY"===t.tagName}))}(e)||function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if("FIELDSET"===e.tagName&&e.disabled){for(var n=0;n<e.children.length;n++){var i=e.children.item(n);if("LEGEND"===i.tagName)return!!o.call(e,"fieldset[disabled] *")||!i.contains(t)}return!0}e=e.parentElement}return!1}(e))},v=function(t,e){return!(function(t){return function(t){return h(t)&&"radio"===t.type}(t)&&!function(t){if(!t.name)return!0;var e,n=t.form||s(t),i=function(t){return n.querySelectorAll('input[type="radio"][name="'+t+'"]')};if(typeof window<"u"&&typeof window.CSS<"u"&&"function"==typeof window.CSS.escape)e=i(window.CSS.escape(t.name));else try{e=i(t.name)}catch(t){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",t.message),!1}var r=function(t,e){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===e)return t[n]}(e,t.form);return!r||r===t}(t)}(e)||u(e)<0||!p(t,e))},m=function(t){var e=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(e)||e>=0)},g=function t(e){var n=[],i=[];return e.forEach((function(e,r){var o=!!e.scopeParent,s=o?e.scopeParent:e,a=function(t,e){var n=u(t);return n<0&&e&&!l(t)?0:n}(s,o),c=o?t(e.candidates):s;0===a?o?n.push.apply(n,c):n.push(s):i.push({documentOrder:r,tabIndex:a,item:e,isScope:o,content:c})})),i.sort(d).reduce((function(t,e){return e.isScope?t.push.apply(t,e.content):t.push(e.content),t}),[]).concat(n)},b=function(t,e){var n;return n=(e=e||{}).getShadowRoot?c([t],e.includeContainer,{filter:v.bind(null,e),flatten:!1,getShadowRoot:e.getShadowRoot,shadowRootFilter:m}):function(t,e,n){if(a(t))return[];var r=Array.prototype.slice.apply(t.querySelectorAll(i));return e&&o.call(t,i)&&r.unshift(t),r.filter(n)}(t,e.includeContainer,v.bind(null,e)),g(n)};const y={getShadowRoot:!0};function w(t){const e=x(t,"[dir]");return e?e.getAttribute("dir"):"ltr"}function $(t){return t.getRootNode()}function A(t){return t.host||null}function N(t,{selector:e,id:n}){if(!t)return null;t.assignedSlot&&(t=t.assignedSlot);const i=$(t);return(n?"getElementById"in i?i.getElementById(n):null:e?i.querySelector(e):null)||N(A(i),{selector:e,id:n})}function x(t,e){return t?t.closest(e)||x(A($(t)),e):null}async function E(t){if(t)return function(t){return"function"==typeof t?.setFocus}(t)?t.setFocus():t.focus()}function S(t){(function(t){if(t)return b(t,y)[0]??t})(t)?.focus()}function C(t,e,n){return"string"==typeof e&&""!==e?e:""===e||!0===e?t[n]:void 0}function _(t){return(!!t).toString()}function k(t){return R(t)||function(t){return!!function(t){return function(t){return t.currentTarget.assignedNodes({flatten:!0})}(t).filter((t=>t.nodeType===Node.TEXT_NODE)).map((t=>t.textContent)).join("").trim()}(t)}(t)}function I(t){for(const e of t.childNodes)if(e.nodeType===Node.TEXT_NODE&&""!==e.textContent?.trim()||e.nodeType===Node.ELEMENT_NODE)return!0;return!1}function R(t){return!!O(t).length}function O(t,e){return function(t,e){const n=t.assignedElements({flatten:!0});return e?function(t,e){return t.filter((t=>t.matches(e)))}(n,e):n}(t.target,e)}function T(t){return!(!t.isPrimary||0!==t.button)}function D(t){return 0===t.detail}function z(t,e){if(t.parentNode!==e.parentNode)return!1;const n=Array.from(t.parentNode.children);return n.indexOf(t)<n.indexOf(e)}async function P(t,e,n,i){return async function(t,e,n,i,r){let o=L(t,n,e);if(o||(await U(),o=L(t,n,e)),!o)return async function(t,e){await U(),t?.(),await U(),e?.()}(i,r);i?.();try{await o.finished}catch{}finally{r?.()}}(t,e,"transition",n,i)}function L(t,e,n){const i="transition"===e?"transitionProperty":"animationName";return t.getAnimations().find((t=>t[i]===n))}function U(){return new Promise((t=>requestAnimationFrame((()=>t()))))}function M(t){return t.endsWith("px")}},28786:(t,e,n)=>{n.d(e,{c:()=>r});var i=n(34088);async function r(t){if(await t.componentOnReady(),(0,i.i)())return t.requestUpdate(),new Promise((t=>requestAnimationFrame((()=>t()))))}},84137:(t,e,n)=>{n.d(e,{l:()=>c});var i=n(34088);const r=new Set,o={trace:0,debug:1,info:2,warn:4,error:8,off:10};function s(t,...e){(function(t){return o[t]>=o[i.l]})(t)&&console[t].call(this,"%ccalcite","background: #007AC2; color: #fff; border-radius: 4px; padding: 2px 4px;",...e)}let a;const c={debug:t=>s("debug",t),info:t=>s("info",t),warn:t=>s("warn",t),error:t=>s("error",t),trace:t=>s("trace",t),deprecated:function(t,{component:e,name:n,suggested:i,removalVersion:o}){const c=`${t}:${"component"===t?"":e}${n}`;if(r.has(c))return;r.add(c);const l=Array.isArray(i);l&&!a&&(a=new Intl.ListFormat("en",{style:"long",type:"disjunction"})),s("warn",`[${n}] ${t} is deprecated and will be removed in ${"future"===o?"a future version":`v${o}`}.${i?` Use ${l?a.format(i.map((t=>`"${t}"`))):`"${i}"`} instead.`:""}`)}}},4643:(t,e,n)=>{n.d(e,{c:()=>r});var i=n(34088);function r(t,e,n){if(!(0,i.i)())return;const r=function(t){class e extends window.MutationObserver{constructor(t){super(t),this.observedEntry=[],this.callback=t}observe(t,e){return this.observedEntry.push({target:t,options:e}),super.observe(t,e)}unobserve(t){const e=this.observedEntry.filter((e=>e.target!==t));this.observedEntry=[],this.callback(super.takeRecords(),this),this.disconnect(),e.forEach((t=>this.observe(t.target,t.options)))}}return"intersection"===t?window.IntersectionObserver:"mutation"===t?e:window.ResizeObserver}(t);return new r(e,n)}},75572:(t,e,n)=>{n.d(e,{u:()=>o});var i=n(90286),r=n(34088);const o=(0,i.yr)(r.g)},32239:(t,e,n)=>{var i=n(34088),r=n(12618),o=n(22900),s=n(79e3),a=n(4643),c=n(84137),l=n(33826);const u="flip-rtl",d={},h={},f={s:16,m:24,l:32};function p({icon:t,scale:e}){const n=f[e],i=function(t){const e=!isNaN(Number(t.charAt(0))),n=t.split("-");if(n.length>0){const e=/[a-z]/i;t=n.map(((t,n)=>t.replace(e,(function(t,e){return 0===n&&0===e?t:t.toUpperCase()})))).join("")}return e?`i${t}`:t}(t),r="F"===i.charAt(i.length-1);return`${r?i.substring(0,i.length-1):i}${n}${r?"F":""}`}function v(t){return d[t]}const m=l.AH`:host{display:inline-flex;color:var(--calcite-icon-color, var(--calcite-ui-icon-color, currentColor))}:host([scale=s]){inline-size:16px;block-size:16px;min-inline-size:16px;min-block-size:16px}:host([scale=m]){inline-size:24px;block-size:24px;min-inline-size:24px;min-block-size:24px}:host([scale=l]){inline-size:32px;block-size:32px;min-inline-size:32px;min-block-size:32px}.flip-rtl{transform:scaleX(-1)}.svg{display:block}:host([hidden]){display:none}[hidden]{display:none}`;class g extends o.WF{constructor(){super(...arguments),this.visible=!1,this.flipRtl=!1,this.icon=null,this.preload=!1,this.scale="m"}static{this.properties={pathData:16,visible:16,flipRtl:7,icon:3,preload:7,scale:3,textLabel:1}}static{this.styles=m}connectedCallback(){if(super.connectedCallback(),this.preload)return this.visible=!0,void this.loadIconPathData();this.visible||this.waitUntilVisible((()=>{this.visible=!0,this.loadIconPathData()}))}willUpdate(t){(t.has("icon")&&(this.hasUpdated||null!==this.icon)||t.has("scale")&&(this.hasUpdated||"m"!==this.scale))&&this.loadIconPathData()}disconnectedCallback(){super.disconnectedCallback(),this.intersectionObserver?.disconnect(),this.intersectionObserver=null}async loadIconPathData(){const{icon:t,scale:e,visible:n}=this;if(!(0,i.i)()||!t||!n)return;const r={icon:t,scale:e},o=v(p(r))||await async function(t){const e=p(t),n=v(e);if(n)return n;h[e]||(h[e]=fetch((0,i.g)(`./assets/icon/${e}.json`)).then((t=>t.json())).catch((()=>(c.l.error(`${t.icon} (${t.scale}) icon failed to load`),""))));const r=await h[e];return d[e]=r,r}(r);t===this.icon&&(this.pathData=o)}waitUntilVisible(t){this.intersectionObserver=(0,a.c)("intersection",(e=>{e.forEach((e=>{e.isIntersecting&&(this.intersectionObserver.disconnect(),this.intersectionObserver=null,t())}))}),{rootMargin:"50px"}),this.intersectionObserver?this.intersectionObserver.observe(this.el):t()}render(){const{el:t,flipRtl:e,pathData:n,scale:i,textLabel:a}=this,c=(0,s.g)(t),l=f[i],d=!!a,h=[].concat(n||"");return this.el.ariaHidden=(0,s.t)(!d),this.el.ariaLabel=d?a:null,this.el.role=d?"img":null,r.qy`<svg aria-hidden=true class=${(0,o.CP)({[u]:"rtl"===c&&e,svg:!0})} fill=currentColor height=100% viewBox=${`0 0 ${l} ${l}`} width=100% xmlns=http://www.w3.org/2000/svg>${h.map((t=>"string"==typeof t?r.JW`<path d=${t??r.s6} />`:r.JW`<path d=${t.d??r.s6} opacity=${("opacity"in t?t.opacity:1)??r.s6} />`))}</svg>`}}(0,i.c)("calcite-icon",g)},48015:(t,e,n)=>{n.d(e,{_:()=>f,K:()=>m});var i=n(36752),r=n(18504),o=n(7804);const s=(t,e)=>{const n=t._$AN;if(void 0===n)return!1;for(const t of n)t._$AO?.(e,!1),s(t,e);return!0},a=t=>{let e,n;do{if(void 0===(e=t._$AM))break;n=e._$AN,n.delete(t),t=e}while(0===n?.size)},c=t=>{for(let e;e=t._$AM;t=e){let n=e._$AN;if(void 0===n)e._$AN=n=new Set;else if(n.has(t))break;n.add(t),d(e)}};function l(t){void 0!==this._$AN?(a(this),this._$AM=t,c(this)):this._$AM=t}function u(t,e=!1,n=0){const i=this._$AH,r=this._$AN;if(void 0!==r&&0!==r.size)if(e)if(Array.isArray(i))for(let t=n;t<i.length;t++)s(i[t],!1),a(i[t]);else null!=i&&(s(i,!1),a(i));else s(this,t)}const d=t=>{t.type==o.OA.CHILD&&(t._$AP??=u,t._$AQ??=l)};class h extends o.WL{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,n){super._$AT(t,e,n),c(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(s(this,t),a(this))}setValue(t){if((0,r.Rt)(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}const f=()=>new p;class p{}const v=new WeakMap,m=(0,o.u$)(class extends h{render(t){return i.s6}update(t,[e]){const n=e!==this.Y;return n&&void 0!==this.Y&&this.rt(void 0),(n||this.lt!==this.ct)&&(this.Y=e,this.ht=t.options?.host,this.rt(this.ct=t.element)),i.s6}rt(t){if(this.isConnected||(t=void 0),"function"==typeof this.Y){const e=this.ht??globalThis;let n=v.get(e);void 0===n&&(n=new WeakMap,v.set(e,n)),void 0!==n.get(this.Y)&&this.Y.call(this.ht,void 0),n.set(this.Y,t),void 0!==t&&this.Y.call(this.ht,t)}else this.Y.value=t}get lt(){return"function"==typeof this.Y?v.get(this.ht??globalThis)?.get(this.Y):this.Y?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}})}}]);
1
+ /*! For license information please see 32d3657dcae89b740f8b.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7007],{83623:(t,e,n)=>{function i(t){return"l"===t?"m":"s"}n.d(e,{g:()=>i}),n(84137)},79e3:(t,e,n)=>{n.d(e,{D:()=>I,a:()=>R,b:()=>E,g:()=>w,h:()=>S,i:()=>T,k:()=>x,l:()=>z,m:()=>M,p:()=>y,q:()=>N,r:()=>k,s:()=>O,t:()=>_,u:()=>D,v:()=>C,w:()=>P}),n(34088);var i=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"].join(","),r=typeof Element>"u",o=r?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,s=!r&&Element.prototype.getRootNode?function(t){var e;return null==t||null===(e=t.getRootNode)||void 0===e?void 0:e.call(t)}:function(t){return t?.ownerDocument},a=function t(e,n){var i;void 0===n&&(n=!0);var r=null==e||null===(i=e.getAttribute)||void 0===i?void 0:i.call(e,"inert");return""===r||"true"===r||n&&e&&t(e.parentNode)},c=function t(e,n,r){for(var s=[],c=Array.from(e);c.length;){var l=c.shift();if(!a(l,!1))if("SLOT"===l.tagName){var u=l.assignedElements(),d=t(u.length?u:l.children,!0,r);r.flatten?s.push.apply(s,d):s.push({scopeParent:l,candidates:d})}else{o.call(l,i)&&r.filter(l)&&(n||!e.includes(l))&&s.push(l);var h=l.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(l),f=!a(h,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(l));if(h&&f){var p=t(!0===h?l.children:h.children,!0,r);r.flatten?s.push.apply(s,p):s.push({scopeParent:l,candidates:p})}else c.unshift.apply(c,l.children)}}return s},l=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},u=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||function(t){var e,n=null==t||null===(e=t.getAttribute)||void 0===e?void 0:e.call(t,"contenteditable");return""===n||"true"===n}(t))&&!l(t)?0:t.tabIndex},d=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},h=function(t){return"INPUT"===t.tagName},f=function(t){var e=t.getBoundingClientRect(),n=e.width,i=e.height;return 0===n&&0===i},p=function(t,e){return!(e.disabled||a(e)||function(t){return h(t)&&"hidden"===t.type}(e)||function(t,e){var n=e.displayCheck,i=e.getShadowRoot;if("hidden"===getComputedStyle(t).visibility)return!0;var r=o.call(t,"details>summary:first-of-type")?t.parentElement:t;if(o.call(r,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return f(t)}else{if("function"==typeof i){for(var a=t;t;){var c=t.parentElement,l=s(t);if(c&&!c.shadowRoot&&!0===i(c))return f(t);t=t.assignedSlot?t.assignedSlot:c||l===t.ownerDocument?c:l.host}t=a}if(function(t){var e,n,i,r,o=t&&s(t),a=null===(e=o)||void 0===e?void 0:e.host,c=!1;if(o&&o!==t)for(c=!!(null!==(n=a)&&void 0!==n&&null!==(i=n.ownerDocument)&&void 0!==i&&i.contains(a)||null!=t&&null!==(r=t.ownerDocument)&&void 0!==r&&r.contains(t));!c&&a;){var l,u,d;c=!(null===(u=a=null===(l=o=s(a))||void 0===l?void 0:l.host)||void 0===u||null===(d=u.ownerDocument)||void 0===d||!d.contains(a))}return c}(t))return!t.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(e,t)||function(t){return"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some((function(t){return"SUMMARY"===t.tagName}))}(e)||function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if("FIELDSET"===e.tagName&&e.disabled){for(var n=0;n<e.children.length;n++){var i=e.children.item(n);if("LEGEND"===i.tagName)return!!o.call(e,"fieldset[disabled] *")||!i.contains(t)}return!0}e=e.parentElement}return!1}(e))},v=function(t,e){return!(function(t){return function(t){return h(t)&&"radio"===t.type}(t)&&!function(t){if(!t.name)return!0;var e,n=t.form||s(t),i=function(t){return n.querySelectorAll('input[type="radio"][name="'+t+'"]')};if(typeof window<"u"&&typeof window.CSS<"u"&&"function"==typeof window.CSS.escape)e=i(window.CSS.escape(t.name));else try{e=i(t.name)}catch(t){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",t.message),!1}var r=function(t,e){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===e)return t[n]}(e,t.form);return!r||r===t}(t)}(e)||u(e)<0||!p(t,e))},m=function(t){var e=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(e)||e>=0)},g=function t(e){var n=[],i=[];return e.forEach((function(e,r){var o=!!e.scopeParent,s=o?e.scopeParent:e,a=function(t,e){var n=u(t);return n<0&&e&&!l(t)?0:n}(s,o),c=o?t(e.candidates):s;0===a?o?n.push.apply(n,c):n.push(s):i.push({documentOrder:r,tabIndex:a,item:e,isScope:o,content:c})})),i.sort(d).reduce((function(t,e){return e.isScope?t.push.apply(t,e.content):t.push(e.content),t}),[]).concat(n)},b=function(t,e){var n;return n=(e=e||{}).getShadowRoot?c([t],e.includeContainer,{filter:v.bind(null,e),flatten:!1,getShadowRoot:e.getShadowRoot,shadowRootFilter:m}):function(t,e,n){if(a(t))return[];var r=Array.prototype.slice.apply(t.querySelectorAll(i));return e&&o.call(t,i)&&r.unshift(t),r.filter(n)}(t,e.includeContainer,v.bind(null,e)),g(n)};const y={getShadowRoot:!0};function w(t){const e=x(t,"[dir]");return e?e.getAttribute("dir"):"ltr"}function $(t){return t.getRootNode()}function A(t){return t.host||null}function N(t,{selector:e,id:n}){if(!t)return null;t.assignedSlot&&(t=t.assignedSlot);const i=$(t);return(n?"getElementById"in i?i.getElementById(n):null:e?i.querySelector(e):null)||N(A(i),{selector:e,id:n})}function x(t,e){return t?t.closest(e)||x(A($(t)),e):null}async function E(t){if(t)return function(t){return"function"==typeof t?.setFocus}(t)?t.setFocus():t.focus()}function S(t){(function(t){if(t)return b(t,y)[0]??t})(t)?.focus()}function C(t,e,n){return"string"==typeof e&&""!==e?e:""===e||!0===e?t[n]:void 0}function _(t){return(!!t).toString()}function k(t){return R(t)||function(t){return!!function(t){return function(t){return t.currentTarget.assignedNodes({flatten:!0})}(t).filter((t=>t.nodeType===Node.TEXT_NODE)).map((t=>t.textContent)).join("").trim()}(t)}(t)}function I(t){for(const e of t.childNodes)if(e.nodeType===Node.TEXT_NODE&&""!==e.textContent?.trim()||e.nodeType===Node.ELEMENT_NODE)return!0;return!1}function R(t){return!!O(t).length}function O(t,e){return function(t,e){const n=t.assignedElements({flatten:!0});return e?function(t,e){return t.filter((t=>t.matches(e)))}(n,e):n}(t.target,e)}function T(t){return!(!t.isPrimary||0!==t.button)}function D(t){return 0===t.detail}function z(t,e){if(t.parentNode!==e.parentNode)return!1;const n=Array.from(t.parentNode.children);return n.indexOf(t)<n.indexOf(e)}async function P(t,e,n,i){return async function(t,e,n,i,r){let o=L(t,n,e);if(o||(await U(),o=L(t,n,e)),!o)return async function(t,e){await U(),t?.(),await U(),e?.()}(i,r);i?.();try{await o.finished}catch{}finally{r?.()}}(t,e,"transition",n,i)}function L(t,e,n){const i="transition"===e?"transitionProperty":"animationName";return t.getAnimations().find((t=>t[i]===n))}function U(){return new Promise((t=>requestAnimationFrame((()=>t()))))}function M(t){return t.endsWith("px")}},28786:(t,e,n)=>{n.d(e,{c:()=>r});var i=n(34088);async function r(t){if(await t.componentOnReady(),(0,i.i)())return t.requestUpdate(),new Promise((t=>requestAnimationFrame((()=>t()))))}},84137:(t,e,n)=>{n.d(e,{l:()=>c});var i=n(34088);const r=new Set,o={trace:0,debug:1,info:2,warn:4,error:8,off:10};function s(t,...e){(function(t){return o[t]>=o[i.l]})(t)&&console[t].call(this,"%ccalcite","background: #007AC2; color: #fff; border-radius: 4px; padding: 2px 4px;",...e)}let a;const c={debug:t=>s("debug",t),info:t=>s("info",t),warn:t=>s("warn",t),error:t=>s("error",t),trace:t=>s("trace",t),deprecated:function(t,{component:e,name:n,suggested:i,removalVersion:o}){const c=`${t}:${n}`;if(r.has(c))return;r.add(c);const l=Array.isArray(i);l&&!a&&(a=new Intl.ListFormat("en",{style:"long",type:"disjunction"})),s("warn",`[${n}] ${t} is deprecated and will be removed in v${o}.${i?` Use ${l?a.format(i.map((t=>`"${t}"`))):`"${i}"`} instead.`:""}`)}}},4643:(t,e,n)=>{n.d(e,{c:()=>r});var i=n(34088);function r(t,e,n){if(!(0,i.i)())return;const r=function(t){class e extends window.MutationObserver{constructor(t){super(t),this.observedEntry=[],this.callback=t}observe(t,e){return this.observedEntry.push({target:t,options:e}),super.observe(t,e)}unobserve(t){const e=this.observedEntry.filter((e=>e.target!==t));this.observedEntry=[],this.callback(super.takeRecords(),this),this.disconnect(),e.forEach((t=>this.observe(t.target,t.options)))}}return"intersection"===t?window.IntersectionObserver:"mutation"===t?e:window.ResizeObserver}(t);return new r(e,n)}},75572:(t,e,n)=>{n.d(e,{u:()=>o});var i=n(90286),r=n(34088);const o=(0,i.yr)(r.g)},32239:(t,e,n)=>{var i=n(34088),r=n(12618),o=n(22900),s=n(79e3),a=n(4643),c=n(84137),l=n(33826);const u="flip-rtl",d={},h={},f={s:16,m:24,l:32};function p({icon:t,scale:e}){const n=f[e],i=function(t){const e=!isNaN(Number(t.charAt(0))),n=t.split("-");if(n.length>0){const e=/[a-z]/i;t=n.map(((t,n)=>t.replace(e,(function(t,e){return 0===n&&0===e?t:t.toUpperCase()})))).join("")}return e?`i${t}`:t}(t),r="F"===i.charAt(i.length-1);return`${r?i.substring(0,i.length-1):i}${n}${r?"F":""}`}function v(t){return d[t]}const m=l.AH`:host{display:inline-flex;color:var(--calcite-icon-color, var(--calcite-ui-icon-color, currentColor))}:host([scale=s]){inline-size:16px;block-size:16px;min-inline-size:16px;min-block-size:16px}:host([scale=m]){inline-size:24px;block-size:24px;min-inline-size:24px;min-block-size:24px}:host([scale=l]){inline-size:32px;block-size:32px;min-inline-size:32px;min-block-size:32px}.flip-rtl{transform:scaleX(-1)}.svg{display:block}:host([hidden]){display:none}[hidden]{display:none}`;class g extends o.WF{constructor(){super(...arguments),this.visible=!1,this.flipRtl=!1,this.icon=null,this.preload=!1,this.scale="m"}static{this.properties={pathData:16,visible:16,flipRtl:7,icon:3,preload:7,scale:3,textLabel:1}}static{this.styles=m}connectedCallback(){if(super.connectedCallback(),this.preload)return this.visible=!0,void this.loadIconPathData();this.visible||this.waitUntilVisible((()=>{this.visible=!0,this.loadIconPathData()}))}willUpdate(t){(t.has("icon")&&(this.hasUpdated||null!==this.icon)||t.has("scale")&&(this.hasUpdated||"m"!==this.scale))&&this.loadIconPathData()}disconnectedCallback(){super.disconnectedCallback(),this.intersectionObserver?.disconnect(),this.intersectionObserver=null}async loadIconPathData(){const{icon:t,scale:e,visible:n}=this;if(!(0,i.i)()||!t||!n)return;const r={icon:t,scale:e},o=v(p(r))||await async function(t){const e=p(t),n=v(e);if(n)return n;h[e]||(h[e]=fetch((0,i.g)(`./assets/icon/${e}.json`)).then((t=>t.json())).catch((()=>(c.l.error(`${t.icon} (${t.scale}) icon failed to load`),""))));const r=await h[e];return d[e]=r,r}(r);t===this.icon&&(this.pathData=o)}waitUntilVisible(t){this.intersectionObserver=(0,a.c)("intersection",(e=>{e.forEach((e=>{e.isIntersecting&&(this.intersectionObserver.disconnect(),this.intersectionObserver=null,t())}))}),{rootMargin:"50px"}),this.intersectionObserver?this.intersectionObserver.observe(this.el):t()}render(){const{el:t,flipRtl:e,pathData:n,scale:i,textLabel:a}=this,c=(0,s.g)(t),l=f[i],d=!!a,h=[].concat(n||"");return this.el.ariaHidden=(0,s.t)(!d),this.el.ariaLabel=d?a:null,this.el.role=d?"img":null,r.qy`<svg aria-hidden=true class=${(0,o.CP)({[u]:"rtl"===c&&e,svg:!0})} fill=currentColor height=100% viewBox=${`0 0 ${l} ${l}`} width=100% xmlns=http://www.w3.org/2000/svg>${h.map((t=>"string"==typeof t?r.JW`<path d=${t??r.s6} />`:r.JW`<path d=${t.d??r.s6} opacity=${("opacity"in t?t.opacity:1)??r.s6} />`))}</svg>`}}(0,i.c)("calcite-icon",g)},48015:(t,e,n)=>{n.d(e,{_:()=>f,K:()=>m});var i=n(36752),r=n(18504),o=n(7804);const s=(t,e)=>{const n=t._$AN;if(void 0===n)return!1;for(const t of n)t._$AO?.(e,!1),s(t,e);return!0},a=t=>{let e,n;do{if(void 0===(e=t._$AM))break;n=e._$AN,n.delete(t),t=e}while(0===n?.size)},c=t=>{for(let e;e=t._$AM;t=e){let n=e._$AN;if(void 0===n)e._$AN=n=new Set;else if(n.has(t))break;n.add(t),d(e)}};function l(t){void 0!==this._$AN?(a(this),this._$AM=t,c(this)):this._$AM=t}function u(t,e=!1,n=0){const i=this._$AH,r=this._$AN;if(void 0!==r&&0!==r.size)if(e)if(Array.isArray(i))for(let t=n;t<i.length;t++)s(i[t],!1),a(i[t]);else null!=i&&(s(i,!1),a(i));else s(this,t)}const d=t=>{t.type==o.OA.CHILD&&(t._$AP??=u,t._$AQ??=l)};class h extends o.WL{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,n){super._$AT(t,e,n),c(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(s(this,t),a(this))}setValue(t){if((0,r.Rt)(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}const f=()=>new p;class p{}const v=new WeakMap,m=(0,o.u$)(class extends h{render(t){return i.s6}update(t,[e]){const n=e!==this.Y;return n&&void 0!==this.Y&&this.rt(void 0),(n||this.lt!==this.ct)&&(this.Y=e,this.ht=t.options?.host,this.rt(this.ct=t.element)),i.s6}rt(t){if(this.isConnected||(t=void 0),"function"==typeof this.Y){const e=this.ht??globalThis;let n=v.get(e);void 0===n&&(n=new WeakMap,v.set(e,n)),void 0!==n.get(this.Y)&&this.Y.call(this.ht,void 0),n.set(this.Y,t),void 0!==t&&this.Y.call(this.ht,t)}else this.Y.value=t}get lt(){return"function"==typeof this.Y?v.get(this.ht??globalThis)?.get(this.Y):this.Y?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}})}}]);
@@ -5,7 +5,7 @@
5
5
 
6
6
  /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
7
7
  See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
8
- v3.0.0-next.126 */
8
+ v3.0.0-next.132 */
9
9
 
10
10
  /**
11
11
  * @license
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[146,8256],{4902:(e,t,r)=>{r.d(t,{A:()=>u});var i=r(90237),s=r(40608);let o=0;const a=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+o++})}};return t=(0,i._)([(0,s.$)("esri.core.Identifiable")],t),t};let n=class extends(a(class{})){};var l;n=(0,i._)([(0,s.$)("esri.core.Identifiable")],n),(l=n||(n={})).IdentifiableMixin=a,l.NumericIdentifiableMixin=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:o++})}};return t=(0,i._)([(0,s.$)("esri.core.Identifiable.NumericIdentifiable")],t),t};const u=n},92071:(e,t,r)=>{r.d(t,{P:()=>m,L:()=>b});var i=r(90237),s=r(69622),o=r(76953),a=r(4718),n=r(35666);class l{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(n.AU),this._values=new Map,this.multipleOriginsSupported=!0}clone(e){const t=new l,r=this._originStores[n.Gr.DEFAULTS];r&&r.forEach(((e,r)=>{t.set(r,(0,a.o8)(e),n.Gr.DEFAULTS)}));for(let r=n.Gr.SERVICE;r<n.AU;r++){const i=this._originStores[r];i&&i.forEach(((i,s)=>{e&&e.has(s)||t.set(s,(0,a.o8)(i),r)}))}return t}get(e,t){const r=void 0===t?this._values:this._originStores[t];return r?r.get(e):void 0}keys(e){const t=null==e?this._values:this._originStores[e];return t?[...t.keys()]:[]}set(e,t,r=n.Gr.USER){let i=this._originStores[r];if(i||(i=new Map,this._originStores[r]=i),i.set(e,t),!this._values.has(e)||this._propertyOriginMap.get(e)<=r){const i=this._values.get(e);return this._values.set(e,t),this._propertyOriginMap.set(e,r),i!==t}return!1}delete(e,t=n.Gr.USER){const r=this._originStores[t];if(!r)return;const i=r.get(e);if(r.delete(e),this._values.has(e)&&this._propertyOriginMap.get(e)===t){this._values.delete(e);for(let r=t-1;r>=0;r--){const t=this._originStores[r];if(t&&t.has(e)){this._values.set(e,t.get(e)),this._propertyOriginMap.set(e,r);break}}}return i}has(e,t){const r=void 0===t?this._values:this._originStores[t];return!!r&&r.has(e)}revert(e,t){for(;t>0&&!this.has(e,t);)--t;const r=this._originStores[t],i=r?.get(e),s=this._values.get(e);return this._values.set(e,i),this._propertyOriginMap.set(e,t),s!==i}originOf(e){return this._propertyOriginMap.get(e)||n.Gr.DEFAULTS}forEach(e){this._values.forEach(e)}}var u=r(45917),p=r(88620),d=r(40608);const c=e=>{let t=class extends e{constructor(...e){super(...e);const t=(0,p.oY)(this),r=t.store,i=new l;t.store=i,(0,o.k)(t,r,i)}read(e,t){(0,u.L)(this,e,t)}getAtOrigin(e,t){const r=h(this),i=(0,n.aB)(t);if("string"==typeof e)return r.get(e,i);const s={};return e.forEach((e=>{s[e]=r.get(e,i)})),s}originOf(e){return(0,n.OL)(this.originIdOf(e))}originIdOf(e){return h(this).originOf(e)}revert(e,t){const r=h(this),i=(0,n.aB)(t),s=(0,p.oY)(this);let o;o="string"==typeof e?"*"===e?r.keys(i):[e]:e,o.forEach((e=>{s.invalidate(e),r.revert(e,i),s.commit(e)}))}};return t=(0,i._)([(0,d.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],t),t};function h(e){return(0,p.oY)(e).store}let y=class extends(c(s.A)){};y=(0,i._)([(0,d.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],y);var g=r(16649),f=r(49422);const v=e=>{let t=class extends e{constructor(...e){super(...e)}clear(e,t="user"){return _(this).delete(e,(0,n.aB)(t))}write(e,t){return(0,f.M)(this,e=e||{},t),e}setAtOrigin(e,t,r){(0,p.oY)(this).setAtOrigin(e,t,(0,n.aB)(r))}removeOrigin(e){const t=_(this),r=(0,n.aB)(e),i=t.keys(r);for(const e of i)t.originOf(e)===r&&t.set(e,t.get(e,r),n.Gr.USER)}updateOrigin(e,t){const r=_(this),i=(0,n.aB)(t),s=(0,g.Jt)(this,e);for(let t=i+1;t<n.AU;++t)r.delete(e,t);r.set(e,s,i)}toJSON(e){return this.write({},e)}};return t=(0,i._)([(0,d.$)("esri.core.MultiOriginJSONSupport.WriteableMultiOriginJSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};function _(e){return(0,p.oY)(e).store}const m=e=>{let t=class extends(v(c(e))){constructor(...e){super(...e)}};return t=(0,i._)([(0,d.$)("esri.core.MultiOriginJSONSupport")],t),t};let b=class extends(m(s.A)){};b=(0,i._)([(0,d.$)("esri.core.MultiOriginJSONSupport")],b)},4146:(e,t,r)=>{r.d(t,{A:()=>b});var i=r(90237),s=r(78888),o=r(49186),a=r(65529),n=r(4902),l=r(92474),u=r(53966),p=r(74887),d=r(84952),c=r(10107),h=(r(44208),r(87811),r(40608)),y=r(5443),g=r(16930),f=r(92602),v=r(79677);let _=0,m=class extends(a.A.EventedMixin(n.A.IdentifiableMixin(l.A))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new y.A(-180,-90,180,90,g.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+_++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=g.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await r.e(7982).then(r.bind(r,27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:i}=await r.e(5613).then(r.bind(r,45613));try{return await i(t)}catch(e){const r=t?.portalItem,i=r?.id||"unset",s=r?.portal?.url||f.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+s+"', id: '"+i+"')",e),e}}(e)}initialize(){this.when().catch((e=>{(0,p.zf)(e)||u.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})}))}destroy(){const e=this.parent;if(e){const t=this;"layers"in e&&e.layers.includes(t)?e.layers.remove(t):"tables"in e&&e.tables.includes(t)?e.tables.remove(t):"baseLayers"in e&&e.baseLayers.includes(t)?e.baseLayers.remove(t):"referenceLayers"in e&&e.referenceLayers.includes(t)&&e.referenceLayers.remove(t),this._set("parent",null)}}get effectiveVisible(){let e=this.visible;const t=this.parent;return e&&t&&"effectiveVisible"in t&&(e&&=t.effectiveVisible),e}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,d.An)(this.url)}createLayerView(e,t){return Promise.reject(new o.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,s.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new o.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,i._)([(0,c.MZ)({type:String})],m.prototype,"attributionDataUrl",void 0),(0,i._)([(0,c.MZ)({readOnly:!0})],m.prototype,"effectiveVisible",null),(0,i._)([(0,c.MZ)({type:y.A})],m.prototype,"fullExtent",void 0),(0,i._)([(0,c.MZ)({readOnly:!0})],m.prototype,"hasAttributionData",null),(0,i._)([(0,c.MZ)({type:String,clonable:!1})],m.prototype,"id",void 0),(0,i._)([(0,c.MZ)({type:Boolean,nonNullable:!0})],m.prototype,"legendEnabled",void 0),(0,i._)([(0,c.MZ)({type:["show","hide","hide-children"]})],m.prototype,"listMode",void 0),(0,i._)([(0,c.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],m.prototype,"opacity",void 0),(0,i._)([(0,c.MZ)({clonable:!1})],m.prototype,"parent",void 0),(0,i._)([(0,c.MZ)({readOnly:!0})],m.prototype,"parsedUrl",null),(0,i._)([(0,c.MZ)({type:Boolean,readOnly:!0})],m.prototype,"persistenceEnabled",void 0),(0,i._)([(0,c.MZ)({type:Boolean})],m.prototype,"popupEnabled",void 0),(0,i._)([(0,c.MZ)({type:Boolean})],m.prototype,"attributionVisible",void 0),(0,i._)([(0,c.MZ)({type:g.A})],m.prototype,"spatialReference",void 0),(0,i._)([(0,c.MZ)({type:String})],m.prototype,"title",void 0),(0,i._)([(0,c.MZ)({readOnly:!0,json:{read:!1}})],m.prototype,"type",void 0),(0,i._)([(0,c.MZ)()],m.prototype,"url",void 0),(0,i._)([(0,c.MZ)({type:v.A})],m.prototype,"visibilityTimeExtent",void 0),(0,i._)([(0,c.MZ)({type:Boolean,nonNullable:!0})],m.prototype,"visible",void 0),m=(0,i._)([(0,h.$)("esri.layers.Layer")],m);const b=m},146:(e,t,r)=>{r.r(t),r.d(t,{default:()=>c});var i=r(90237),s=r(49186),o=r(92071),a=r(11932),n=r(10107),l=(r(44208),r(53966),r(87811),r(40608)),u=r(4146),p=r(8303);let d=class extends((0,p.A)((0,o.P)(u.A))){constructor(e){super(e),this.resourceInfo=null,this.type="unknown"}initialize(){this.addResolvingPromise(new Promise(((e,t)=>{(0,a._)((()=>{const e=this.resourceInfo&&(this.resourceInfo.layerType||this.resourceInfo.type);let r="Unknown layer type";e&&(r+=" "+e),t(new s.A("layer:unknown-layer-type",r,{layerType:e}))}))})))}read(e,t){super.read({resourceInfo:e},t)}write(e,t){return null}};(0,i._)([(0,n.MZ)({readOnly:!0})],d.prototype,"resourceInfo",void 0),(0,i._)([(0,n.MZ)({type:["show","hide"]})],d.prototype,"listMode",void 0),(0,i._)([(0,n.MZ)({json:{read:!1},readOnly:!0,value:"unknown"})],d.prototype,"type",void 0),d=(0,i._)([(0,l.$)("esri.layers.UnknownLayer")],d);const c=d},8303:(e,t,r)=>{r.d(t,{A:()=>I});var i=r(90237),s=r(92602),o=r(70333),a=r(78888),n=r(60999),l=r(49186),u=r(53966),p=r(97768),d=r(74887),c=r(84952),h=r(10107),y=(r(44208),r(87811),r(36005)),g=r(40608),f=r(43937),v=r(83531),_=r(20655),m=r(80812),b=r(41318),w=r(10407);const I=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,p.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new m.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:i}=await r.e(1204).then(r.bind(r,41204));return(0,d.Te)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,d.zf)(e)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,d.QP)(e),!0))))}async setUserPrivileges(e,t){if(!s.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:s}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",s)}catch(e){(0,d.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=!o.id?.findCredential(this.url),s=e===r.id;if(s&&r.portal.user)return this._getUserPrivileges(r,i);let a,n;if(s)a=r.portal.url;else try{a=await(0,v.wI)(this.url,t)}catch(e){(0,d.QP)(e)}if(!a||!(0,c.b8)(a,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;n=await(o.id?.getCredential(`${a}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,d.QP)(e)}const l=!0,u=!1,p=!1;if(!n)return{features:{edit:l,fullEdit:u},content:{updateItem:p}};try{if(s?await r.reload():(r=new m.default({id:e,portal:{url:a}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,i)}catch(e){(0,d.QP)(e)}return{features:{edit:l,fullEdit:u},content:{updateItem:p}}}_getUserPrivileges(e,t){const r=(0,w.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,d.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?o.id?.findCredential(this.url):null;if(!t)return!0;const r=M.credential===t?M.user:await this._fetchEditingUser(e);return M.credential=t,M.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=o.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,s=_.A.getDefault();if(s&&s.loaded&&(0,c.S8)(s.restUrl)===(0,c.S8)(i))return s.user;const l=`${i}/community/self`,u=null!=e?e.signal:null,p=await(0,n.Ke)((0,a.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return p.ok?b.A.fromJSON(p.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,i=this.portalItem?.id&&(this.portalItem.portal||_.A.getDefault());return r&&i&&!(0,c.ut)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i._)([(0,h.MZ)({type:m.default})],t.prototype,"portalItem",null),(0,i._)([(0,y.w)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,i._)([(0,f.K)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,i._)([(0,h.MZ)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,i._)([(0,h.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,i._)([(0,h.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,i._)([(0,h.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,i._)([(0,g.$)("esri.layers.mixins.PortalLayer")],t),t},M={credential:null,user:null}}}]);
@@ -1,6 +1,6 @@
1
1
  /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2
2
  See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
3
- v3.0.0-next.126 */
3
+ v3.0.0-next.132 */
4
4
 
5
5
  /**
6
6
  * @license
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[377],{67482:(e,t,n)=>{function r(e){return null!=l(e)||null!=i(e)}function o(e){return a.test(e)}function s(e){return l(e)??i(e)}function i(e){const t=new Date(e);return function(e,t){if(Number.isNaN(e.getTime()))return!1;let n=!0;if(c&&/\d+\W*$/.test(t)){const e=t.match(/[a-zA-Z]{2,}/);if(e){let t=!1,r=0;for(;!t&&r<=e.length;)t=!u.test(e[r]),r++;n=!t}}return n}(t,e)?Number.isNaN(t.getTime())?null:t.getTime()-6e4*t.getTimezoneOffset():null}function l(e){const t=a.exec(e);if(!t?.groups)return null;const n=t.groups,r=+n.year,o=+n.month-1,s=+n.day,i=+(n.hours??"0"),l=+(n.minutes??"0"),u=+(n.seconds??"0");if(i>23)return null;if(l>59)return null;if(u>59)return null;const c=n.ms??"0",f=c?+c.padEnd(3,"0").slice(0,3):0;let p;if(n.isUTC||!n.offsetSign)p=Date.UTC(r,o,s,i,l,u,f);else{const e=+n.offsetHours,t=+n.offsetMinutes;p=6e4*("+"===n.offsetSign?-1:1)*(60*e+t)+Date.UTC(r,o,s,i,l,u,f)}return Number.isNaN(p)?null:p}n.d(t,{Br:()=>o,Cq:()=>r,_U:()=>s});const a=/^(?:(?<year>-?\d{4,})-(?<month>\d{2})-(?<day>\d{2}))(?:T(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})(?:\.(?<ms>\d+))?)?(?:(?<isUTC>Z)|(?:(?<offsetSign>\+|-)(?<offsetHours>\d{2}):(?<offsetMinutes>\d{2})))?$/,u=/^((jan(uary)?)|(feb(ruary)?)|(mar(ch)?)|(apr(il)?)|(may)|(jun(e)?)|(jul(y)?)|(aug(ust)?)|(sep(tember)?)|(oct(ober)?)|(nov(ember)?)|(dec(ember)?)|(am)|(pm)|(gmt)|(utc))$/i,c=!Number.isNaN(new Date("technology 10").getTime())},39516:(e,t,n)=>{let r;async function o(){return null==r&&(r=n.e(4123).then(n.bind(n,44123)).then((e=>new e.WhereClauseCache(500,500)))),r}async function s(e,t){const n=await o(),r=n.get(e,t);if(null==r)throw n.getError(e,t);return r}function i(e,t){return e||=null,t||=null,"1=1"===e?t??e:"1=1"===t?e??t:e&&t?`(${e}) AND (${t})`:e??t}function l(e,t){return e||=null,t||=null,"1=1"===e||"1=1"===t||e===t?"1=1"===e?e:t:e&&t?`(${e}) OR (${t})`:e??t}n.d(t,{GP:()=>s,IW:()=>l,mA:()=>i})},85113:(e,t,n)=>{n.d(t,{BM:()=>T,bd:()=>S,sO:()=>F,xD:()=>c});var r=n(67482),o=n(49186),s=n(21325),i=n(43334),l=n(92722),a=n(30524);const u={LineString:"esriGeometryPolyline",MultiLineString:"esriGeometryPolyline",MultiPoint:"esriGeometryMultipoint",Point:"esriGeometryPoint",Polygon:"esriGeometryPolygon",MultiPolygon:"esriGeometryPolygon"};function c(e){return u[e]}function*f(e){switch(e.type){case"Feature":yield e;break;case"FeatureCollection":for(const t of e.features)t&&(yield t)}}function*p(e){if(e)switch(e.type){case"Point":yield e.coordinates;break;case"LineString":case"MultiPoint":yield*e.coordinates;break;case"MultiLineString":case"Polygon":for(const t of e.coordinates)yield*t;break;case"MultiPolygon":for(const t of e.coordinates)for(const e of t)yield*e}}function d(e){for(const t of e)if(t.length>2)return!0;return!1}function m(e){let t=0;for(let n=0;n<e.length;n++){const r=e[n],o=e[(n+1)%e.length];t+=r[0]*o[1]-o[0]*r[1]}return t<=0}function y(e){const t=e[0],n=e[e.length-1];return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]||e.push(t),e}function g(e,t,n){switch(t.type){case"LineString":case"MultiPoint":return function(e,t,n){return b(e,t.coordinates,n),e}(e,t,n);case"MultiLineString":return function(e,t,n){for(const r of t.coordinates)b(e,r,n);return e}(e,t,n);case"MultiPolygon":return function(e,t,n){for(const r of t.coordinates){h(e,r[0],n);for(let t=1;t<r.length;t++)w(e,r[t],n)}return e}(e,t,n);case"Point":return function(e,t,n){return A(e,t.coordinates,n),e}(e,t,n);case"Polygon":return function(e,t,n){const r=t.coordinates;h(e,r[0],n);for(let t=1;t<r.length;t++)w(e,r[t],n);return e}(e,t,n)}}function h(e,t,n){const r=y(t);!function(e){return!m(e)}(r)?b(e,r,n):I(e,r,n)}function w(e,t,n){const r=y(t);!function(e){return m(e)}(r)?b(e,r,n):I(e,r,n)}function b(e,t,n){for(const r of t)A(e,r,n);e.lengths.push(t.length)}function I(e,t,n){for(let r=t.length-1;r>=0;r--)A(e,t[r],n);e.lengths.push(t.length)}function A(e,t,n){const[r,o,s]=t;e.coords.push(r,o),n.hasZ&&e.coords.push(s||0)}function x(e){switch(typeof e){case"string":return(0,r.Br)(e)?"esriFieldTypeDate":"esriFieldTypeString";case"number":return"esriFieldTypeDouble";default:return"unknown"}}function F(e,t=4326){if(!e)throw new o.A("geojson-layer:empty","GeoJSON data is empty");if("Feature"!==e.type&&"FeatureCollection"!==e.type)throw new o.A("geojson-layer:unsupported-geojson-object","missing or not supported GeoJSON object type",{data:e});const{crs:n}=e;if(!n)return;const r="string"==typeof n?n:"name"===n.type?n.properties.name:"EPSG"===n.type?n.properties.code:null,i=(0,s.oT)({wkid:t})?new RegExp(".*(CRS84H?|4326)$","i"):new RegExp(`.*(${t})$`,"i");if(!r||!i.test(r))throw new o.A("geojson:unsupported-crs","unsupported GeoJSON 'crs' member",{crs:n})}function T(e,t={}){const n=[],r=new Set,o=new Set;let s,i=!1,l=null,u=!1,{geometryType:m=null}=t;for(const t of f(e)){const{geometry:e,properties:f,id:y}=t;if((!e||(m||(m=c(e.type)),c(e.type)===m))&&(i||(i=d(p(e))),u||(u=null!=y,u&&(s=typeof y,f&&(l=Object.keys(f).filter((e=>f[e]===y))))),f&&l&&u&&null!=y&&(l.length>1?l=l.filter((e=>f[e]===y)):1===l.length&&(l=f[l[0]]===y?l:[])),f))for(const e in f){if(r.has(e))continue;const t=x(f[e]);if("unknown"===t){o.add(e);continue}o.delete(e),r.add(e);const s=(0,a.rS)(e);s&&n.push({name:s,alias:e,type:t})}}const y=(0,a.rS)(1===l?.length&&l[0]||null)??void 0;if(y)for(const e of n)if(e.name===y&&(0,a.WA)(e)){e.type="esriFieldTypeOID";break}return{fields:n,geometryType:m,hasZ:i,objectIdFieldName:y,objectIdFieldType:s,unknownFields:Array.from(o)}}function S(e,t){return Array.from(function*(e,t={}){const{geometryType:n,objectIdField:r}=t;for(const o of e){const{geometry:e,properties:s,id:a}=o;if(e&&c(e.type)!==n)continue;const u=s||{};let f;r&&(f=u[r],null==a||f||(u[r]=f=a));const p=new i.Om(e?g(new l.A,e,t):null,u,null,f);yield p}}(f(e),t))}},64714:(e,t,n)=>{n.d(t,{F0:()=>l,Vx:()=>c,e2:()=>p,f:()=>d});var r=n(44208),o=n(4718),s=n(99352),i=n(93470);function l(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?i.Cb:"esriGeometryPolyline"===e?i.yM:i.WR}}}const a=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let u=1;function c(e,t){if((0,r.A)("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let n=`this${f(t)} = null;`;for(const t in e)n+=`this${f(t)} = ${JSON.stringify(e[t])};`;const r=new Function(`\n return class AttributesClass$${u++} {\n constructor() {\n ${n};\n }\n }\n `)();return()=>new r}catch(n){return()=>({[t]:null,...e})}}function f(e){return a.test(e)?`.${e}`:`["${e}"]`}function p(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,o.o8)(e)}}]}function d(e,t){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!0,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:s.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:s.P,editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},82832:(e,t,n)=>{n.d(t,{$1:()=>g,CR:()=>y,MB:()=>p,PC:()=>h,Yx:()=>a,bP:()=>c});var r=n(67482),o=n(21325),s=n(30524);class i{constructor(){this.code=null,this.description=null}}class l{constructor(e){this.error=new i,this.globalId=null,this.objectId=null,this.success=!1,this.uniqueId=null,this.error.description=e}}function a(e){return new l(e)}class u{constructor(e){this.globalId=null,this.success=!0,this.objectId=this.uniqueId=e}}function c(e){return new u(e)}const f=new Set;function p(e,t,n,r=!1){f.clear();for(const o in n){const i=e.get(o);if(!i)continue;const l=d(i,n[o]);if(f.add(i.name),i&&(r||i.editable)){const e=(0,s.CJ)(i,l);if(e)return a((0,s.uo)(e,i,l));t[i.name]=l}}for(const t of e.requiredFields??[])if(!f.has(t.name))return a(`missing required field "${t.name}"`);return null}function d(e,t){let n=t;return(0,s.WA)(e)&&"string"==typeof t?n=parseFloat(t):(0,s.yM)(e)&&null!=t&&"string"!=typeof t?n=String(t):(0,s.vE)(e)&&"string"==typeof t&&(n=(0,r._U)(t)),(0,s.WX)(n)}let m;function y(e,t){if(!e||!(0,o.fn)(t))return e;if("rings"in e||"paths"in e){if(null==m)throw new TypeError("geometry engine not loaded");return m.simplify(t,e)}return e}async function g(e,t){!(0,o.fn)(e)||"esriGeometryPolygon"!==t&&"esriGeometryPolyline"!==t||await async function(){return null==m&&(m=await Promise.all([n.e(9930),n.e(1275)]).then(n.bind(n,47559))),m}()}const h={supportsAutoIntervalBin:!0,supportsFixedIntervalBin:!0,supportsFixedBoundariesBin:!0,supportsDateBin:!0,supportsStackBy:!0,supportsSplitBy:!0,supportsNormalization:!0,supportedStatisticTypes:["COUNT","SUM","AVG","VAR","STDDEV","MIN","MAX","PERCENTILE_CONT","PERCENTILE_DISC","CentroidAggregate","EnvelopeAggregate","ConvexHullAggregate"],supportedNormalizationTypes:["field","log","naturalLog","percentOfTotal","squareRoot"]}},75321:(e,t,n)=>{n.d(t,{GA:()=>P,GL:()=>S,I:()=>k,J0:()=>$,Ki:()=>C,Px:()=>N,QE:()=>x,bV:()=>j,bW:()=>v,vJ:()=>A});var r=n(78888),o=n(49186),s=n(53966),i=n(84952),l=n(16930),a=n(21325),u=n(28735),c=n(90708),f=n(58512),p=n(85113),d=n(64714),m=n(82832),y=n(95466),g=n(98453),h=n(56400);const w=()=>s.A.getLogger("esri.layers.ogc.ogcFeatureUtils"),b="startindex",I=new Set([b,"offset"]),A="http://www.opengis.net/def/crs/",x=`${A}OGC/1.3/CRS84`;var F,T;async function S(e,t,n={},s=5){const{links:l}=e,a=G(l,"items",F.geojson)||G(l,"http://www.opengis.net/def/rel/ogc/1.0/items",F.geojson);if(null==a)throw new o.A("ogc-feature-layer:missing-items-page","Missing items url");const{apiKey:u,customParameters:c,signal:f}=n,m=(0,i.s2)(a.href,e.landingPage.url),I={limit:s,...c,token:u},A=(0,i.a6)(m,I),x={accept:F.geojson},{data:T}=await(0,r.A)(A,{signal:f,headers:x}),S=D(A,s,T.links)??b;(0,p.sO)(T);const j=(0,p.BM)(T,{geometryType:t.geometryType}),N=t.fields||j.fields||[],C=null!=t.hasZ?t.hasZ:j.hasZ,P=j.geometryType,$=t.objectIdField||j.objectIdFieldName||"OBJECTID";let v=t.timeInfo;const k=N.find((({name:e})=>e===$));if(k)k.editable=!1,k.nullable=!1;else{if(!j.objectIdFieldType)throw new o.A("ogc-feature-layer:missing-feature-id","Collection geojson require a feature id as a unique identifier");N.unshift({name:$,alias:$,type:"number"===j.objectIdFieldType?"esriFieldTypeOID":"esriFieldTypeString",editable:!1,nullable:!1})}if($!==j.objectIdFieldName){const e=N.find((({name:e})=>e===j.objectIdFieldName));e&&(e.type="esriFieldTypeInteger")}N===j.fields&&j.unknownFields.length>0&&w().warn({name:"ogc-feature-layer:unknown-field-types",message:"Some fields types couldn't be inferred from the features and were dropped",details:{unknownFields:j.unknownFields}});for(const e of N){if(null==e.name&&(e.name=e.alias),null==e.alias&&(e.alias=e.name),"esriFieldTypeOID"!==e.type&&"esriFieldTypeGlobalID"!==e.type&&(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable),!e.name)throw new o.A("ogc-feature-layer:invalid-field-name","field name is missing",{field:e});if(!g.m.jsonValues.includes(e.type))throw new o.A("ogc-feature-layer:invalid-field-type",`invalid type for field "${e.name}"`,{field:e})}if(v){const e=new y.A(N);if(v.startTimeField){const t=e.get(v.startTimeField);t?(v.startTimeField=t.name,t.type="esriFieldTypeDate"):v.startTimeField=null}if(v.endTimeField){const t=e.get(v.endTimeField);t?(v.endTimeField=t.name,t.type="esriFieldTypeDate"):v.endTimeField=null}if(v.trackIdField){const t=e.get(v.trackIdField);t?v.trackIdField=t.name:(v.trackIdField=null,w().warn({name:"ogc-feature-layer:invalid-timeInfo-trackIdField",message:"trackIdField is missing",details:{timeInfo:v}}))}v.timeReference||={timeZoneIANA:h.n$},v.startTimeField||v.endTimeField||(w().warn({name:"ogc-feature-layer:invalid-timeInfo",message:"startTimeField and endTimeField are missing",details:{timeInfo:v}}),v=void 0)}return{drawingInfo:P?(0,d.F0)(P):null,extent:O(e),geometryType:P,fields:N,hasZ:!!C,objectIdField:$,paginationParameter:S,timeInfo:v}}async function j(e,t={}){const{links:n,url:s}=e,l=G(n,"data",F.json)||G(n,"http://www.opengis.net/def/rel/ogc/1.0/data",F.json);if(null==l)throw new o.A("ogc-feature-layer:missing-collections-page","Missing collections url");const{apiKey:a,customParameters:u,signal:c}=t,f=(0,i.s2)(l.href,s),{data:p}=await(0,r.A)(f,{signal:c,headers:{accept:F.json},query:{...u,token:a}});for(const t of p.collections)t.landingPage=e;return p}async function N(e,t={}){const{links:n,url:s}=e,l=G(n,"conformance",F.json)||G(n,"http://www.opengis.net/def/rel/ogc/1.0/conformance",F.json);if(null==l)throw new o.A("ogc-feature-layer:missing-conformance-page","Missing conformance url");const{apiKey:a,customParameters:u,signal:c}=t,f=(0,i.s2)(l.href,s),{data:p}=await(0,r.A)(f,{signal:c,headers:{accept:F.json},query:{...u,token:a}});return p}async function C(e,t={}){const{apiKey:n,customParameters:o,signal:s}=t,{data:i}=await(0,r.A)(e,{signal:s,headers:{accept:F.json},query:{...o,token:n}});return i.url=e,i}async function P(e,t={}){const{links:n,url:o}=e,s=G(n,"service-desc",F.openapi);if(null==s)return w().warn("ogc-feature-layer:missing-openapi-page","The OGC API-Features server does not have an OpenAPI page."),null;const{apiKey:l,customParameters:a,signal:u}=t,c=(0,i.s2)(s.href,o),{data:f}=await(0,r.A)(c,{signal:u,headers:{accept:F.openapi},query:{...a,token:l}});return f}function $(e){const t=/^http:\/\/www\.opengis.net\/def\/crs\/(?<authority>.*)\/(?<version>.*)\/(?<code>.*)$/i.exec(e),n=t?.groups;if(!n)return null;const{authority:r,code:o}=n;switch(r.toLowerCase()){case"ogc":switch(o.toLowerCase()){case"crs27":return l.A.GCS_NAD_1927.wkid;case"crs83":return 4269;case"crs84":case"crs84h":return l.A.WGS84.wkid;default:return null}case"esri":case"epsg":{const e=Number.parseInt(o,10);return Number.isNaN(e)?null:e}default:return null}}async function v(e,t,n){const r=await k(e,t,n);return(0,c.ZF)(r)}async function k(e,t,n){const{collection:{links:s,landingPage:{url:d}},layerDefinition:g,maxRecordCount:h,queryParameters:{apiKey:w,customParameters:b},spatialReference:I,supportedCrs:A}=e,x=G(s,"items",F.geojson)||G(s,"http://www.opengis.net/def/rel/ogc/1.0/items",F.geojson);if(null==x)throw new o.A("ogc-feature-layer:missing-items-page","Missing items url");const{geometry:T,num:S,start:j,timeExtent:N,where:C}=t;if(t.objectIds)throw new o.A("ogc-feature-layer:query-by-objectids-not-supported","Queries with object ids are not supported");const P=l.A.fromJSON(I),$=t.outSpatialReference??P,v=$.isWGS84?null:E($,A),k=R(T,A),M=function(e){if(null==e)return null;const{start:t,end:n}=e;return`${null!=t?t.toISOString():".."}/${null!=n?n.toISOString():".."}`}(N),O=null!=(K=C)&&K&&"1=1"!==K?K:null,D=S??(null==j?h:10),q=0===j?void 0:j,{fields:B,geometryType:W,hasZ:Z,objectIdField:_,paginationParameter:U}=g,L=(0,i.s2)(x.href,d),{data:H}=await(0,r.A)(L,{...n,query:{...b,...k,crs:v,datetime:M,query:O,limit:D,[U]:q,token:w},headers:{accept:F.geojson}}),J=(0,p.bd)(H,{geometryType:W,hasZ:Z,objectIdField:_}),V=J.length===D&&!!G(H.links??[],"next",F.geojson),z=new y.A(B);var K;for(const e of J){const t={};(0,m.MB)(z,t,e.attributes,!0);for(const e of z.fields)e.nullable&&!(e.name in t)&&(t[e.name]=null);t[_]=e.attributes[_],e.attributes=t}if(!v&&$.isWebMercator)for(const e of J)if(null!=e.geometry&&null!=W){const t=(0,c.zv)(e.geometry,W,Z,!1);t.spatialReference=l.A.WGS84,e.geometry=(0,c.Ux)((0,u.Cv)(t,$))}for(const e of J)e.objectId=e.attributes[_];const Q=v||!v&&$.isWebMercator?$.toJSON():a.KK,X=new f.A;return X.exceededTransferLimit=V,X.features=J,X.fields=B,X.geometryType=W,X.hasZ=Z,X.objectIdFieldName=_,X.spatialReference=Q,X}function E(e,t){const{isWebMercator:n,wkid:r}=e;if(!r)return null;const o=n?t[3857]??t[102100]??t[102113]??t[900913]:t[e.wkid];return o?`${A}${o}`:null}function M(e){if(null==e)return"";const{xmin:t,ymin:n,xmax:r,ymax:o}=e;return`${t},${n},${r},${o}`}function R(e,t){if(!function(e){return null!=e&&"extent"===e.type}(e))return null;const{spatialReference:n}=e;if(!n||n.isWGS84)return{bbox:M(e)};const r=E(n,t);return null!=r?{bbox:M(e),"bbox-crs":r}:n.isWebMercator?{bbox:M((0,u.Cv)(e,l.A.WGS84))}:null}function O(e){const t=e.extent?.spatial;if(!t)return null;const n=t.bbox[0],r=4===n.length,[o,s]=n,i=r?void 0:n[2];return{xmin:o,ymin:s,xmax:r?n[2]:n[3],ymax:r?n[3]:n[4],zmin:i,zmax:r?void 0:n[5],spatialReference:l.A.WGS84.toJSON()}}function G(e,t,n){return e.find((({rel:e,type:r})=>e===t&&r===n))??e.find((({rel:e,type:n})=>e===t&&!n))}function D(e,t,n){if(!n)return;const r=G(n,"next",F.geojson),o=(0,i.An)(r?.href)?.query;if(!o)return;const s=(0,i.An)(e).query,l=Object.keys(s??{}),a=Object.entries(o).filter((([e])=>!l.includes(e))).find((([e,n])=>I.has(e.toLowerCase())&&Number.parseInt(n,10)===t)),u=a?.[0];return u}(T=F||(F={})).json="application/json",T.geojson="application/geo+json",T.openapi="application/vnd.oai.openapi+json;version=3.0"},41560:(e,t,n)=>{n.d(t,{Ch:()=>i,mW:()=>s});var r=n(34727),o=n(39516);function s(e,t){return{...t,filterMode:e.mode}}function i(e,t,n){const s=function(e){if("manual"===u(e))return null;const t=[Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY];for(const{minScale:n,maxScale:r}of e.filters)t[0]=Math.max(t[0],c(n)),t[1]=Math.min(t[1],f(r));return t}(e);if(s&&((0,r.gg)(t,s[0])||(0,r.ZH)(n,s[1])))return"";const i=Array.from(l(e,t,n)),a=function(e,t,n){if(0===e.length)return!0;const o=c(e.at(0)?.minScale),s=f(e.at(-1)?.maxScale);if((0,r.ZH)(o,t)||(0,r.gg)(s,n))return!0;for(let t=0;t<e.length-1;t++){const n=e[t],o=e[t+1];if((0,r.ZH)(c(o.minScale),f(n.maxScale)))return!0}return!1}(i,t,n)?"1=1":i.map((e=>e.where||"1=1")).reduce(((e,t)=>(0,o.IW)(e,t)),"");return a&&"1=1"!==a?a:""}function*l(e,t,n){if("manual"===u(e)){const t=e.filters.find((t=>t.id===e.activeFilterId));t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(const r of e.filters)a(r.minScale,r.maxScale,t,n)&&(yield r)}}function a(e,t,n,o){return e=c(e),n=c(n),t=f(t),!(!(0,r.Sp)(n,e)&&(o??n)>e||(0,r.Hx)(t,n)||void 0!==o&&(0,r.Sp)(o,e))}function u(e){return"mode"in e?e.mode:e.filterMode}function c(e){return e||Number.POSITIVE_INFINITY}function f(e){return e||0}},32730:(e,t,n)=>{n.d(t,{BI:()=>g,D3:()=>m,XJ:()=>y,lc:()=>d,mX:()=>w,rU:()=>h,tH:()=>F});var r=n(799);const o="__begin__",s="__end__",i=new RegExp(o,"ig"),l=new RegExp(s,"ig"),a=new RegExp("^"+o,"i"),u=new RegExp(s+"$","i"),c='"',f=c+" + ",p=" + "+c;function d(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function m(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function y(e){const t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=d(e.labelExpression),t.type="conventional"),t}function g(e){const t=y(e);switch(t.type){case"conventional":return w(t.expression);case"arcade":return t.expression}return null}function h(e){const t=y(e);switch(t.type){case"conventional":return function(e){const t=e?.match(b);return t?.[1].trim()||null}(t.expression);case"arcade":return F(t.expression)}return null}function w(e){let t;return e?(t=(0,r.HC)(e,(e=>o+'$feature["'+e+'"]'+s)),t=a.test(t)?t.replace(a,""):c+t,t=u.test(t)?t.replace(u,""):t+c,t=t.replaceAll(i,f).replaceAll(l,p)):t='""',t}const b=/^\s*\{([^}]+)\}\s*$/i,I=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,A=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,x=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function F(e){if(!e)return null;let t=I.exec(e)||A.exec(e);return t?t[1]||t[3]:(t=x.exec(e),t?t[2]:null)}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6131],{89317:(e,t,r)=>{r.d(t,{K:()=>i});const i=["operational-layers","basemap","ground"]},16131:(e,t,r)=>{r.d(t,{q:()=>g});var i=r(90237),n=r(49186),s=r(84952),a=r(10107),o=r(56507),l=(r(44208),r(87811),r(36005)),p=r(40608),y=r(43937),u=r(89317),d=r(45917),c=r(49422);const m={ArcGISAnnotationLayer:!0,ArcGISDimensionLayer:!0,ArcGISFeatureLayer:!0,ArcGISImageServiceLayer:!0,ArcGISImageServiceVectorLayer:!0,ArcGISMapServiceLayer:!0,ArcGISStreamLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,BingMapsAerial:!0,BingMapsHybrid:!0,BingMapsRoad:!0,CatalogLayer:!0,CSV:!0,GeoJSON:!0,GeoRSS:!0,GroupLayer:!0,KML:!0,KnowledgeGraphLayer:!0,MediaLayer:!0,OGCFeatureLayer:!0,OrientedImageryLayer:!0,SubtypeGroupLayer:!0,VectorTileLayer:!0,WCS:!0,WFS:!0,WMS:!0,WebTiledLayer:!0},b={ArcGISImageServiceLayer:!0,ArcGISImageServiceVectorLayer:!0,ArcGISMapServiceLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,BingMapsAerial:!0,BingMapsHybrid:!0,BingMapsRoad:!0,OpenStreetMap:!0,VectorTileLayer:!0,WCS:!0,WMS:!0,WebTiledLayer:!0},w={ArcGISFeatureLayer:!0,SubtypeGroupTable:!0},h={"web-scene/operational-layers":{ArcGISDimensionLayer:!0,ArcGISFeatureLayer:!0,ArcGISImageServiceLayer:!0,ArcGISMapServiceLayer:!0,ArcGISSceneServiceLayer:!0,ArcGISTiledElevationServiceLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,BuildingSceneLayer:!0,CatalogLayer:!0,CSV:!0,GeoJSON:!0,GroupLayer:!0,IntegratedMesh3DTilesLayer:!0,IntegratedMeshLayer:!0,KML:!0,LineOfSightLayer:!0,MediaLayer:!0,OGCFeatureLayer:!0,OrientedImageryLayer:!0,PointCloudLayer:!0,RasterDataLayer:!0,VectorTileLayer:!0,ViewshedLayer:!0,Voxel:!0,WCS:!0,WFS:!0,WMS:!0,WebTiledLayer:!0},"web-scene/basemap":{ArcGISImageServiceLayer:!0,ArcGISMapServiceLayer:!0,ArcGISSceneServiceLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,OpenStreetMap:!0,VectorTileLayer:!0,WCS:!0,WMS:!0,WebTiledLayer:!0},"web-scene/ground":{ArcGISTiledElevationServiceLayer:!0,RasterDataElevationLayer:!0},"web-scene/tables":{ArcGISFeatureLayer:!0},"web-map/operational-layers":m,"web-map/basemap":b,"web-map/tables":w,"link-chart/operational-layers":{...m,LinkChartLayer:!0},"link-chart/basemap":b,"link-chart/tables":w,"portal-item/operational-layers":{ArcGISFeatureLayer:!0,ArcGISImageServiceLayer:!0,ArcGISSceneServiceLayer:!0,ArcGISStreamLayer:!0,ArcGISTiledImageServiceLayer:!0,BuildingSceneLayer:!0,IntegratedMesh3DTilesLayer:!0,IntegratedMeshLayer:!0,MediaLayer:!0,OrientedImageryLayer:!0,PointCloudLayer:!0,SubtypeGroupLayer:!0,WCS:!0}};var f=r(10873),v=r(79677);const g=e=>{let t=class extends e{constructor(){super(...arguments),this.persistenceEnabled=!0,this.title=null}readId(e,t,r){return"Group Layer"===r?.portalItem?.type?void 0:e}writeListMode(e,t,r,i){(i&&"ground"===i.layerContainerType||e&&(0,c.R)(this,r,{},i))&&(t[r]=e)}writeOperationalLayerType(e,t,r){e&&(t[r]=e)}writeTitle(e,t){t.title=e??"Layer"}readVisibilityTimeExtent(e){return e?v.A.fromArray(e):null}writeVisibilityTimeExtent(e,t,r,i){e&&"tables"!==i.layerContainerType&&(e.isEmpty?i?.messages&&i.messages.push(new n.A("layer:invalid-visibilityTimeExtent","visibilityTimeExtent cannot be empty")):t[r]=e.toArray())}read(e,t){t&&(t.layer=this),(0,d.t)(this,e,(t=>super.read(e,t)),t)}write(e,t){if(!this.persistenceEnabled&&!t?.ignorePersistenceEnabled)return null;if(t?.origin){const e=`${t.origin}/${t.layerContainerType||"operational-layers"}`,r=h[e];let i=!!r?.[this.operationalLayerType];if("ArcGISTiledElevationServiceLayer"===this.operationalLayerType&&"web-scene/operational-layers"===e&&(i=!1),"ArcGISDimensionLayer"===this.operationalLayerType&&"web-map/operational-layers"===e&&(i=!1),!i)return t.messages?.push(new n.A("layer:unsupported",`Layers (${this.title}, ${this.id}) of type '${this.declaredClass}' are not supported in the context of '${e}'`,{layer:this})),null}const r=super.write(e,{...t,layer:this}),i=!!t&&!!t.messages&&!!t.messages.filter((e=>e instanceof n.A&&"web-document-write:property-required"===e.name)).length;return(0,s.w8)(r?.url)?(t?.messages?.push(new n.A("layer:invalid-url",`Layer (${this.title}, ${this.id}) of type '${this.declaredClass}' using a Blob URL cannot be written to web scenes and web maps`,{layer:this})),null):!this.url&&i?null:r}beforeSave(){}};return(0,i._)([(0,a.MZ)({type:String,json:{write:{ignoreOrigin:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0}},"portal-item":{write:!1}}}})],t.prototype,"id",void 0),(0,i._)([(0,l.w)("id",["id"])],t.prototype,"readId",null),(0,i._)([(0,a.MZ)(f.C1)],t.prototype,"listMode",void 0),(0,i._)([(0,y.K)("listMode")],t.prototype,"writeListMode",null),(0,i._)([(0,a.MZ)({type:String,readOnly:!0,json:{read:!1,write:{target:"layerType",ignoreOrigin:!0},origins:{"portal-item":{write:!1},"web-scene":{name:"layerType",read:!1,write:{enabled:!0,ignoreOrigin:!0,layerContainerTypes:u.K,isRequired:!0}}}}})],t.prototype,"operationalLayerType",void 0),(0,i._)([(0,y.K)("operationalLayerType")],t.prototype,"writeOperationalLayerType",null),(0,i._)([(0,a.MZ)(f.ke)],t.prototype,"opacity",void 0),(0,i._)([(0,a.MZ)({type:Boolean,readOnly:!1})],t.prototype,"persistenceEnabled",void 0),(0,i._)([(0,a.MZ)({type:String,json:{write:{ignoreOrigin:!0,writerEnsuresNonNull:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}},"portal-item":{write:!1}}},value:"Layer"})],t.prototype,"title",void 0),(0,i._)([(0,y.K)("title"),(0,y.K)(["web-scene"],"title")],t.prototype,"writeTitle",null),(0,i._)([(0,a.MZ)({type:v.A,json:{origins:{"web-scene":{write:{layerContainerTypes:u.K}}}}})],t.prototype,"visibilityTimeExtent",void 0),(0,i._)([(0,l.w)("visibilityTimeExtent")],t.prototype,"readVisibilityTimeExtent",null),(0,i._)([(0,y.K)(["portal-item","web-map","web-scene"],"visibilityTimeExtent",{visibilityTimeExtent:{type:[[o.jz,o.Uv]]}})],t.prototype,"writeVisibilityTimeExtent",null),(0,i._)([(0,a.MZ)({type:Boolean,json:{name:"visibility",write:{layerContainerTypes:u.K}}})],t.prototype,"visible",void 0),t=(0,i._)([(0,p.$)("esri.layers.mixins.OperationalLayer")],t),t}},10873:(e,t,r)=>{r.d(t,{C1:()=>T,Fm:()=>g,Ih:()=>v,M6:()=>u,OZ:()=>c,PY:()=>y,Qo:()=>w,Yj:()=>b,fV:()=>m,hG:()=>L,hn:()=>I,id:()=>S,kF:()=>d,ke:()=>f,zQ:()=>E});var i=r(89317),n=r(5443),s=r(16930),a=r(97159),o=r(88625),l=r(85360),p=r(78553);const y={type:Boolean,value:!0,json:{origins:{service:{read:!1,write:!1},"web-map":{read:!1,write:!1}},name:"screenSizePerspective",write:{enabled:!0,layerContainerTypes:i.K}}},u={type:Boolean,value:!0,json:{name:"disablePopup",read:{reader:(e,t)=>!t.disablePopup},write:{enabled:!0,writer(e,t,r){t[r]=!e}}}},d={type:Boolean,value:!0,nonNullable:!0,json:{name:"showLabels",write:{enabled:!0,layerContainerTypes:i.K}}},c={type:String,json:{origins:{"portal-item":{write:!1}},write:{isRequired:!0,ignoreOrigin:!0,writer:a.w}}},m={type:Boolean,value:!0,nonNullable:!0,json:{origins:{service:{read:{enabled:!1}}},name:"showLegend",write:{enabled:!0,layerContainerTypes:i.K}}},b={value:null,type:o.A,json:{origins:{service:{name:"elevationInfo",write:!0}},name:"layerDefinition.elevationInfo",write:{enabled:!0,layerContainerTypes:i.K}}};function w(e){return{type:e,readOnly:!0,json:{origins:{service:{read:!0}},read:!1}}}const h={write:{enabled:!0,layerContainerTypes:i.K},read:!0},f={type:Number,json:{origins:{"web-document":h,"portal-item":{write:!0}}}},v={...f,json:{...f.json,origins:{"web-document":{...h,write:{enabled:!0,layerContainerTypes:i.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,p.D)(t.layerDefinition.drawingInfo.transparency):void 0:(0,p.D)(t.drawingInfo.transparency)}}},g={type:n.A,readOnly:!0,json:{origins:{service:{read:{source:["fullExtent","spatialReference"],reader:(e,t)=>{const r=n.A.fromJSON(e);return null!=t.spatialReference&&"object"==typeof t.spatialReference&&(r.spatialReference=s.A.fromJSON(t.spatialReference)),r}}}},read:!1}},S={type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}}}},I={type:Number,json:{origins:{service:{write:{enabled:!1}}},name:"layerDefinition.minScale",write:{layerContainerTypes:i.K}}},L={type:Number,json:{origins:{service:{write:{enabled:!1}}},name:"layerDefinition.maxScale",write:{layerContainerTypes:i.K}}},T={json:{write:{ignoreOrigin:!0,layerContainerTypes:i.K},origins:{"web-map":{read:!1,write:!1}}}},E={type:l.A,json:{name:"attributeTableInfo",write:!0,origins:{"web-scene":{read:!1,write:!1}}}}},31756:(e,t,r)=>{r.d(t,{j:()=>s});var i=r(83047),n=r(79258);const s={unknown:1,inches:(0,i.oU)(1,"meters","inches"),feet:(0,i.oU)(1,"meters","feet"),"us-feet":(0,i.oU)(1,"meters","us-feet"),yards:(0,i.oU)(1,"meters","yards"),miles:(0,i.oU)(1,"meters","miles"),"nautical-miles":(0,i.oU)(1,"meters","nautical-miles"),millimeters:(0,i.oU)(1,"meters","millimeters"),centimeters:(0,i.oU)(1,"meters","centimeters"),decimeters:(0,i.oU)(1,"meters","decimeters"),meters:(0,i.oU)(1,"meters","meters"),kilometers:(0,i.oU)(1,"meters","kilometers"),"decimal-degrees":1/(0,i.vl)(1,"meters",n.$O.radius)}},88625:(e,t,r)=>{r.d(t,{A:()=>g});var i,n=r(90237),s=r(66552),a=r(25482),o=r(97768),l=r(10107),p=(r(44208),r(53966),r(87811),r(36005)),y=r(40608),u=r(43937),d=r(30524);let c=i=class extends a.A{constructor(e){super(e)}async collectRequiredFields(e,t){return(0,d.Dx)(e,t,this.expression)}clone(){return new i({expression:this.expression,title:this.title})}equals(e){return this.expression===e.expression&&this.title===e.title}};(0,n._)([(0,l.MZ)({type:String,json:{write:{isRequired:!0}}})],c.prototype,"expression",void 0),(0,n._)([(0,l.MZ)({type:String,json:{write:!0}})],c.prototype,"title",void 0),c=i=(0,n._)([(0,y.$)("esri.symbols.support.FeatureExpressionInfo")],c);const m=c;var b,w=r(16271);const h=(0,s.O)()({onTheGround:"on-the-ground",relativeToGround:"relative-to-ground",relativeToScene:"relative-to-scene",absoluteHeight:"absolute-height"}),f=new s.J({foot:"feet",kilometer:"kilometers",meter:"meters",mile:"miles","us-foot":"us-feet",yard:"yards"});let v=b=class extends a.A{constructor(e){super(e),this.featureExpressionInfo=void 0,this.offset=null}readFeatureExpressionInfo(e,t){return null!=e?e:t.featureExpression&&0===t.featureExpression.value?{expression:"0"}:void 0}writeFeatureExpressionInfo(e,t,r,i){t[r]=e.write({},i),"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 b({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,o.CM)(this.featureExpressionInfo,e.featureExpressionInfo)}};(0,n._)([(0,l.MZ)({type:m,json:{write:!0}})],v.prototype,"featureExpressionInfo",void 0),(0,n._)([(0,p.w)("featureExpressionInfo",["featureExpressionInfo","featureExpression"])],v.prototype,"readFeatureExpressionInfo",null),(0,n._)([(0,u.K)("featureExpressionInfo",{featureExpressionInfo:{type:m},"featureExpression.value":{type:[0]}})],v.prototype,"writeFeatureExpressionInfo",null),(0,n._)([(0,l.MZ)({type:h.apiValues,nonNullable:!0,json:{type:h.jsonValues,read:h.read,write:{writer:h.write,isRequired:!0}}})],v.prototype,"mode",null),(0,n._)([(0,l.MZ)({type:Number,json:{write:!0}})],v.prototype,"offset",void 0),(0,n._)([(0,l.MZ)({type:w.KQ,json:{type:String,read:f.read,write:f.write}})],v.prototype,"unit",null),v=b=(0,n._)([(0,y.$)("esri.symbols.support.ElevationInfo")],v);const g=v},16271:(e,t,r)=>{r.d(t,{Ao:()=>s,KQ:()=>a});var i=r(4576),n=r(31756);function s(e){return 1/(n.j[e]||1)}const a=function(){const e=Object.keys(n.j);return(0,i.TF)(e,"decimal-degrees"),e.sort(),e}()},85360:(e,t,r)=>{r.d(t,{A:()=>O});var i=r(90237),n=r(25482),s=r(4718),a=r(10107),o=r(79901),l=r(36005),p=r(40608),y=r(43937);r(44208),r(53966),r(87811);let u=class extends n.A{constructor(e){super(e),this.description=null,this.label=null,this.type=null}};(0,i._)([(0,a.MZ)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,i._)([(0,a.MZ)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,i._)([(0,a.MZ)()],u.prototype,"type",void 0),u=(0,i._)([(0,p.$)("esri.tables.elements.AttributeTableElement")],u);const d=u;var c;let m=c=class extends d{constructor(e){super(e),this.displayType="auto",this.type="attachment"}clone(){return new c({description:this.description,displayType:this.displayType,label:this.label})}};(0,i._)([(0,a.MZ)({type:["auto"],json:{write:!0}})],m.prototype,"displayType",void 0),(0,i._)([(0,a.MZ)({type:["attachment"],readOnly:!0,json:{read:!1,write:!0}})],m.prototype,"type",void 0),m=c=(0,i._)([(0,p.$)("esri.tables.elements.AttributeTableAttachmentElement")],m);const b=m;var w;let h=w=class extends d{constructor(e){super(e),this.fieldName=null,this.type="field"}clone(){return new w({description:this.description,fieldName:this.fieldName,label:this.label})}};(0,i._)([(0,a.MZ)({type:String,json:{write:!0}})],h.prototype,"fieldName",void 0),(0,i._)([(0,a.MZ)({type:String,json:{read:!1,write:!0}})],h.prototype,"type",void 0),h=w=(0,i._)([(0,p.$)("esri.tables.elements.AttributeTableFieldElement")],h);const f=h;var v,g=r(56507);let S=v=class extends d{constructor(e){super(e),this.relationshipId=null,this.type="relationship"}clone(){return new v({description:this.description,label:this.label,relationshipId:this.relationshipId})}};(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],S.prototype,"relationshipId",void 0),(0,i._)([(0,a.MZ)({type:["relationship"],json:{read:!1,write:!0}})],S.prototype,"type",void 0),S=v=(0,i._)([(0,p.$)("esri.tables.elements.AttributeTableRelationshipElement")],S);const I=S;function L(e){return{typesWithGroup:{base:d,key:"type",typeMap:{attachment:b,field:f,group:e,relationship:I}},typesWithoutGroup:{base:d,key:"type",typeMap:{attachment:b,field:f,relationship:I}}}}function T(e,t,r=!0){if(!e)return null;const i=r?t.typesWithGroup.typeMap:t.typesWithoutGroup.typeMap;return e.filter((e=>i[e.type])).map((e=>i[e.type].fromJSON(e)))}function E(e,t,r=!0){if(!e)return null;const i=r?t.typesWithGroup.typeMap:t.typesWithoutGroup.typeMap;return e.filter((e=>i[e.type])).map((e=>e.toJSON()))}function M(e,t,r=!0){return e?e.map((e=>(0,g.aq)(r?t.typesWithGroup:t.typesWithoutGroup,e))):null}var A;let G=A=class extends d{constructor(e){super(e),this.elements=null,this.type="group"}castElements(e){return M(e,x,!1)}readElements(e,t){return T(t.attributeTableElements,x,!1)}writeElements(e,t){t.attributeTableElements=E(e,x,!1)}clone(){return new A({description:this.description,elements:(0,s.o8)(this.elements),label:this.label})}};(0,i._)([(0,a.MZ)({json:{write:!0}})],G.prototype,"elements",void 0),(0,i._)([(0,o.w)("elements")],G.prototype,"castElements",null),(0,i._)([(0,l.w)("elements",["attributeTableElements"])],G.prototype,"readElements",null),(0,i._)([(0,y.K)("elements")],G.prototype,"writeElements",null),(0,i._)([(0,a.MZ)({type:String,json:{read:!1,write:!0}})],G.prototype,"type",void 0),G=A=(0,i._)([(0,p.$)("esri.tables.elements.AttributeTableGroupElement")],G);const x=L(G);var _;const j=L(G);let C=_=class extends n.A{constructor(e){super(e),this.elements=null,this.orderByFields=null}castElements(e){return M(e,j)}readElements(e,t){return T(t.attributeTableElements,j)}writeElements(e,t){t.attributeTableElements=E(e,j)}clone(){return new _({elements:(0,s.o8)(this.elements),orderByFields:this.orderByFields})}};(0,i._)([(0,a.MZ)({json:{write:!0}})],C.prototype,"elements",void 0),(0,i._)([(0,o.w)("elements")],C.prototype,"castElements",null),(0,i._)([(0,l.w)("elements",["attributeTableElements"])],C.prototype,"readElements",null),(0,i._)([(0,y.K)("elements")],C.prototype,"writeElements",null),(0,i._)([(0,a.MZ)({type:[Object],json:{write:!0}})],C.prototype,"orderByFields",void 0),C=_=(0,i._)([(0,p.$)("esri.tables.AttributeTableTemplate")],C);const O=C}}]);