@arcgis/core 5.2.0-next.154 → 5.2.0-next.156

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 (240) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/{d994bcf0a65d1c07160f.js → 0320cbd825f9a4222042.js} +1 -1
  3. package/assets/esri/core/workers/chunks/0590857215c547e63b51.js +1 -0
  4. package/assets/esri/core/workers/chunks/08fe248e412bb170210d.js +1 -0
  5. package/assets/esri/core/workers/chunks/0cb50bc2b2125c5fedf2.js +1 -0
  6. package/assets/esri/core/workers/chunks/1201b8c5852830836eac.js +1 -0
  7. package/assets/esri/core/workers/chunks/129e04d24ced77c9bb6d.js +1 -0
  8. package/assets/esri/core/workers/chunks/15e1117a706a98b17ad5.js +1 -0
  9. package/assets/esri/core/workers/chunks/164e74d586297946a717.js +1 -0
  10. package/assets/esri/core/workers/chunks/168a523bdc3653081f8a.js +1 -0
  11. package/assets/esri/core/workers/chunks/{6f4e6022a52de0c54aab.js → 172cfeb5f415e4662432.js} +1 -1
  12. package/assets/esri/core/workers/chunks/1aa4f5394a596e544aeb.js +1 -0
  13. package/assets/esri/core/workers/chunks/22b01fe31bbf0bdc48db.js +1 -0
  14. package/assets/esri/core/workers/chunks/27c2da2e779def2ee08b.js +1 -0
  15. package/assets/esri/core/workers/chunks/28b74bc77f7c13080074.js +1 -0
  16. package/assets/esri/core/workers/chunks/{481589c3eddad6e026ad.js → 369780276b2755361f7d.js} +1 -1
  17. package/assets/esri/core/workers/chunks/3914d96147642a9d4b01.js +1 -0
  18. package/assets/esri/core/workers/chunks/{731018c0deffc41ffc97.js → 3e3e076fa5e8d5d5f33f.js} +1 -1
  19. package/assets/esri/core/workers/chunks/43cf862577bf37344ff4.js +1 -0
  20. package/assets/esri/core/workers/chunks/4932773663469919d10a.js +1 -0
  21. package/assets/esri/core/workers/chunks/4996869b9cbd8c8ddcfa.js +1 -0
  22. package/assets/esri/core/workers/chunks/4c389472b8cdb0c55154.js +1 -0
  23. package/assets/esri/core/workers/chunks/4e4f747de424941a0bfa.js +1 -0
  24. package/assets/esri/core/workers/chunks/{eb815148ae65388dd733.js → 544070198d2ca556103a.js} +1 -1
  25. package/assets/esri/core/workers/chunks/5736feefa261589b6273.js +1 -0
  26. package/assets/esri/core/workers/chunks/{aeaaff7a4b1a99540f52.js → 5cb26bbaa08114aec5ce.js} +1 -1
  27. package/assets/esri/core/workers/chunks/5f4feca26102088ea565.js +1 -0
  28. package/assets/esri/core/workers/chunks/{407f1e8176f3b0af73b4.js → 66867e523cc82f8fe35b.js} +1 -1
  29. package/assets/esri/core/workers/chunks/6f73e41e14817acfaead.js +1 -0
  30. package/assets/esri/core/workers/chunks/{320e5942a098dd104366.js → 74137ffec5265628c33b.js} +1 -1
  31. package/assets/esri/core/workers/chunks/7446d0dfebf93e86c098.js +1 -0
  32. package/assets/esri/core/workers/chunks/{688f2dbf784e66082308.js → 74c866e0b66e61751861.js} +1 -1
  33. package/assets/esri/core/workers/chunks/7711ae5612f685078fc8.js +1 -0
  34. package/assets/esri/core/workers/chunks/{5116b569a8dbda4910c8.js → 784a2fba3e18286958d1.js} +1 -1
  35. package/assets/esri/core/workers/chunks/{693873b3eb99fba58fa9.js → 78c4e43cfa1eda06b4d9.js} +1 -1
  36. package/assets/esri/core/workers/chunks/{f6e62d2d279a328cbed7.js → 7bcedf479b07a4b4a234.js} +1 -1
  37. package/assets/esri/core/workers/chunks/81cad8d2f62a5f671c55.js +1 -0
  38. package/assets/esri/core/workers/chunks/{588e677f33df86a595bf.js → 820c8aaf3632edb0150c.js} +1 -1
  39. package/assets/esri/core/workers/chunks/842893e75696428d536f.js +1 -0
  40. package/assets/esri/core/workers/chunks/8e19629899a5becf8e19.js +1 -0
  41. package/assets/esri/core/workers/chunks/950d4578dc450467404c.js +1 -0
  42. package/assets/esri/core/workers/chunks/{68be3fb88ca61f82fb90.js → 95dbbddac6581b9d671f.js} +1 -1
  43. package/assets/esri/core/workers/chunks/{a4162a8660bf763d542d.js → 967b4992b400517ee712.js} +1 -1
  44. package/assets/esri/core/workers/chunks/{adf25e5ed99615b83c68.js → a62c12925303ff802c3d.js} +1 -1
  45. package/assets/esri/core/workers/chunks/{900181f68449d8f82eeb.js → aa1ac7954e4f0fefe15b.js} +1 -1
  46. package/assets/esri/core/workers/chunks/ac24b4370dc7194a3107.js +1 -0
  47. package/assets/esri/core/workers/chunks/acdfd275dbf8533a67f3.js +1 -0
  48. package/assets/esri/core/workers/chunks/ace2e0a9d9013edd8624.js +1 -0
  49. package/assets/esri/core/workers/chunks/b1d5d236d5268fcbc74b.js +1 -0
  50. package/assets/esri/core/workers/chunks/b3007aedbf731dacaff1.js +1 -0
  51. package/assets/esri/core/workers/chunks/{53e2f2b922116a45fe8f.js → b573df59391ca41ee5a7.js} +1 -1
  52. package/assets/esri/core/workers/chunks/bac8c32665e982896ecc.js +1 -0
  53. package/assets/esri/core/workers/chunks/{f3da30d7300b92bd8bb0.js → befa32b9e7b3fbdd431e.js} +1 -1
  54. package/assets/esri/core/workers/chunks/c19f238b55ff2893f7c2.js +1 -0
  55. package/assets/esri/core/workers/chunks/c5ed67fdf261cbb1624b.js +1 -0
  56. package/assets/esri/core/workers/chunks/c72a904e01dc8c17d992.js +1 -0
  57. package/assets/esri/core/workers/chunks/d9b1aed88b205689cec6.js +1 -0
  58. package/assets/esri/core/workers/chunks/de6081df29183bf80787.js +1 -0
  59. package/assets/esri/core/workers/chunks/{c598b22f78ccc57f9d6d.js → dfd2dc5cdc97ffba8926.js} +1 -1
  60. package/assets/esri/core/workers/chunks/e1b7806ab3e1967b15f0.js +1 -0
  61. package/assets/esri/core/workers/chunks/e653c81ffb3d818645dd.js +1 -0
  62. package/assets/esri/core/workers/chunks/eaddffcc7004101fc230.js +1 -0
  63. package/assets/esri/core/workers/chunks/eb2652ec48faa78de3c5.js +1 -0
  64. package/assets/esri/core/workers/chunks/{c62738f84c914671b143.js → f4a7aa3cdbc0c429c359.js} +1 -1
  65. package/assets/esri/core/workers/chunks/fda83bcb8e40e8044c24.js +1 -0
  66. package/assets/esri/libs/pdfjs/wasm/openjpeg_nowasm_fallback.js +1 -0
  67. package/assets/esri/themes/base/widgets/_OrientedImageryViewer.scss +4 -0
  68. package/assets/esri/themes/dark/main.css +1 -1
  69. package/assets/esri/themes/light/main.css +1 -1
  70. package/assets/esri/themes/light/view.css +1 -1
  71. package/assets/esri/widgets/support/uriUtils/t9n/messages.fr.json +1 -1
  72. package/config.d.ts +2 -0
  73. package/config.js +1 -1
  74. package/core/ObjectPool.js +1 -1
  75. package/core/PooledArray.js +1 -1
  76. package/core/accessorSupport/tracking/SimpleTrackingTarget.js +1 -1
  77. package/geometry/support/buffer/BufferPool.js +1 -1
  78. package/geometry/support/coordsUtils.js +1 -1
  79. package/geometry/support/curves/ellipticArc7Utils.js +1 -1
  80. package/geometry/support/curves/mathUtils.js +1 -1
  81. package/interfaces.d.ts +18 -9
  82. package/kernel.js +1 -1
  83. package/layers/AnnotationFeatureLayer.d.ts +2 -2
  84. package/layers/AnnotationFeatureLayer.js +1 -1
  85. package/layers/CatalogLayer.d.ts +2 -2
  86. package/layers/CatalogLayer.js +1 -1
  87. package/layers/DimensionFeatureLayer.d.ts +2 -2
  88. package/layers/DimensionFeatureLayer.js +1 -1
  89. package/layers/FeatureLayer.d.ts +2 -2
  90. package/layers/FeatureLayer.js +1 -1
  91. package/layers/SubtypeGroupLayer.d.ts +2 -2
  92. package/layers/SubtypeGroupLayer.js +1 -1
  93. package/layers/geospatialPDF/GeospatialPDFFrame.js +1 -1
  94. package/layers/geospatialPDF/GeospatialPDFLayerWorker.js +9 -9
  95. package/layers/geospatialPDF/GeospatialPDFWorkerClient.js +1 -1
  96. package/layers/geospatialPDF/LGIDictMapFrame.js +1 -1
  97. package/layers/geospatialPDF/ViewportMeasureFrame.js +1 -1
  98. package/layers/geospatialPDF/geospatialPDFParserUtils.js +1 -1
  99. package/layers/graphics/controllers/FeatureTileController3D.js +1 -1
  100. package/layers/graphics/sources/GeoJSONSource.js +1 -1
  101. package/layers/graphics/sources/geojson/GeoJSONSourceWorker.js +1 -1
  102. package/layers/graphics/sources/parquet/FileProvider.js +1 -1
  103. package/layers/graphics/sources/support/MemorySourceWorker.js +1 -1
  104. package/layers/graphics/sources/support/clientSideDefaults.js +1 -1
  105. package/layers/graphics/sources/support/sourceUtils.js +1 -1
  106. package/layers/mixins/{FeatureLayerReload.d.ts → ReloadableLayer.d.ts} +5 -3
  107. package/layers/mixins/ReloadableLayer.js +2 -0
  108. package/layers/orientedImagery/core/coverageUtils.js +1 -1
  109. package/layers/raster/datasets/BaseRaster.js +1 -1
  110. package/layers/raster/datasets/GeospatialPDFRaster.js +1 -1
  111. package/layers/raster/datasets/ImageAuxRaster.js +1 -1
  112. package/layers/raster/datasets/ImageServerRaster.js +1 -1
  113. package/layers/raster/datasets/MRFRaster.js +1 -1
  114. package/layers/raster/datasets/TIFFRaster.js +1 -1
  115. package/layers/raster/datasets/WCSRaster.js +1 -1
  116. package/layers/raster/formats/ImageCanvasDecoder.js +1 -1
  117. package/layers/raster/formats/RasterCodec.js +1 -1
  118. package/layers/raster/formats/TiffDecoder.js +1 -1
  119. package/layers/raster/formats/Zlib.js +1 -1
  120. package/layers/support/RasterWorker.js +1 -1
  121. package/layers/support/fieldUtils.js +1 -1
  122. package/layers/support/vectorTileLayerLoader.js +1 -1
  123. package/package.json +2 -2
  124. package/popup/FeatureModel.js +1 -1
  125. package/popup/FeaturesModel.js +1 -1
  126. package/portal/schemas/definitions.js +1 -1
  127. package/request/process.js +1 -1
  128. package/request/types.d.ts +7 -0
  129. package/symbols/cim/cimAnalyzer.js +1 -1
  130. package/views/2d/engine/vectorTiles/TileHandler.js +1 -1
  131. package/views/2d/engine/vectorTiles/style/GeoJSONVectorTileSource.js +1 -1
  132. package/views/2d/engine/vectorTiles/style/GeoJSONVectorTileSourceWorker.js +1 -1
  133. package/views/2d/engine/vectorTiles/style/geoJSONVectorTileUtils.js +2 -0
  134. package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueBackground.js +1 -1
  135. package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueFill.js +1 -1
  136. package/views/2d/layers/VectorTileLayerView2D.js +1 -1
  137. package/views/2d/layers/features/schema/processor/symbols/ComplexSymbolSchema.js +1 -1
  138. package/views/3d/analysis/DirectLineMeasurementAnalysisView3D.js +1 -1
  139. package/views/3d/analysis/LineOfSight/LineOfSightItemTool.js +1 -1
  140. package/views/3d/analysis/LineOfSight/LineOfSightObserverPlugin.js +1 -1
  141. package/views/3d/analysis/LineOfSight/LineOfSightPlacementController.js +1 -1
  142. package/views/3d/analysis/LineOfSight/{LineOfSightRootPlugin.js → LineOfSightPlacementRootPlugin.js} +1 -1
  143. package/views/3d/analysis/LineOfSight/LineOfSightTargetPlugin.js +1 -1
  144. package/views/3d/analysis/LineOfSight/LineOfSightTool.js +1 -1
  145. package/views/3d/analysis/Viewshed/ViewshedPlacementPointPlugin.js +1 -1
  146. package/views/3d/analysis/Viewshed/ViewshedSubTool.js +1 -1
  147. package/views/3d/analysis/Viewshed/ViewshedTool.js +1 -1
  148. package/views/3d/interactive/editingTools/ManipulatedObject3DGraphic.js +1 -1
  149. package/views/3d/support/MemoryController.js +1 -1
  150. package/views/3d/webgl-engine/effects/RenderPluginManager.js +1 -1
  151. package/views/3d/webgl-engine/effects/geometry/RenderOccluded.js +1 -1
  152. package/views/3d/webgl-engine/lib/PathBuilder.js +1 -1
  153. package/views/3d/webgl-engine/lib/PathCapBuilder.js +1 -1
  154. package/views/3d/webgl-engine/lib/PathEvaluator.js +1 -1
  155. package/views/3d/webgl-engine/lib/PathExtruder.js +1 -1
  156. package/views/3d/webgl-engine/lib/PathProfile.js +1 -1
  157. package/views/3d/webgl-engine/lib/pathGeometryUtils.js +1 -1
  158. package/views/draw/DrawTool.js +1 -1
  159. package/views/draw/support/PluginContext.js +1 -1
  160. package/views/draw/support/managers/TooltipManager.js +1 -1
  161. package/views/draw/support/types.d.ts +5 -2
  162. package/webdoc/applicationProperties/SearchLayerField.d.ts +7 -1
  163. package/webdoc/applicationProperties/SearchLayerField.js +1 -1
  164. package/webdoc/applicationProperties/SearchTableField.d.ts +7 -1
  165. package/webdoc/applicationProperties/SearchTableField.js +1 -1
  166. package/webdoc/applicationProperties/searchMode.js +2 -0
  167. package/widgets/BatchAttributeForm/inputs/support/DynamicChoiceController.js +1 -1
  168. package/widgets/BatchAttributeForm/inputs/support/inputUtils.js +1 -1
  169. package/widgets/BatchAttributeForm.js +1 -1
  170. package/widgets/Editor/EditorViewModel.d.ts +10 -1
  171. package/widgets/Editor.d.ts +10 -1
  172. package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
  173. package/widgets/FeatureTable/support/FeatureStore.js +1 -1
  174. package/widgets/HistogramRangeSlider.d.ts +2 -2
  175. package/widgets/HistogramRangeSlider.js +1 -1
  176. package/widgets/Legend.d.ts +1 -0
  177. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  178. package/widgets/OrientedImageryViewer.js +2 -2
  179. package/widgets/PanoramicViewer/PanoramicVideoViewerViewModel.js +1 -1
  180. package/widgets/ScaleRangeSlider/ScaleRangeSliderViewModel.d.ts +5 -2
  181. package/widgets/ScaleRangeSlider/ScaleRangeSliderViewModel.js +1 -1
  182. package/widgets/ScaleRangeSlider.js +1 -1
  183. package/widgets/Search/LayerSearchSource.d.ts +23 -1
  184. package/widgets/Search/LayerSearchSource.js +1 -1
  185. package/widgets/Search/support/layerSearchUtils.js +1 -1
  186. package/widgets/Search/types.d.ts +7 -0
  187. package/widgets/ValuePicker/ValuePickerBaseComponent.d.ts +5 -1
  188. package/widgets/ValuePicker/ValuePickerCollection.d.ts +2 -0
  189. package/widgets/ValuePicker/ValuePickerCombobox.d.ts +7 -1
  190. package/widgets/ValuePicker/ValuePickerLabel.d.ts +7 -1
  191. package/widgets/ValuePicker/ValuePickerSlider.d.ts +2 -0
  192. package/widgets/ValuePicker/ValuePickerSliderVisibleElements.d.ts +5 -1
  193. package/widgets/ValuePicker/ValuePickerVisibleElements.d.ts +5 -1
  194. package/widgets/ValuePicker/types.d.ts +2 -0
  195. package/widgets/support/forms/formUtils.js +1 -1
  196. package/widgets/support/forms/types.d.ts +1 -1
  197. package/assets/esri/core/workers/chunks/03261b9451e293a0fac8.js +0 -1
  198. package/assets/esri/core/workers/chunks/03afeefb9d16b6f1d844.js +0 -1
  199. package/assets/esri/core/workers/chunks/09b9a886363bc1197785.js +0 -1
  200. package/assets/esri/core/workers/chunks/0ad0484ffcbe4ad21bd3.js +0 -1
  201. package/assets/esri/core/workers/chunks/19743dedaa40446259ec.js +0 -1
  202. package/assets/esri/core/workers/chunks/1c65ab9ed611c322ce27.js +0 -1
  203. package/assets/esri/core/workers/chunks/1f339247b68b061ab0a4.js +0 -1
  204. package/assets/esri/core/workers/chunks/251921cd10ecfbc89451.js +0 -1
  205. package/assets/esri/core/workers/chunks/3252b1fae363bb0129a0.js +0 -1
  206. package/assets/esri/core/workers/chunks/408e81c8f1eff8a7b379.js +0 -1
  207. package/assets/esri/core/workers/chunks/4fc337240e7cddd0e988.js +0 -1
  208. package/assets/esri/core/workers/chunks/50036a323c2e7f155311.js +0 -1
  209. package/assets/esri/core/workers/chunks/55dcbf296d8d0092e473.js +0 -1
  210. package/assets/esri/core/workers/chunks/5732fdf6d8b87739aeea.js +0 -1
  211. package/assets/esri/core/workers/chunks/5924ec3167a2941ebb1f.js +0 -1
  212. package/assets/esri/core/workers/chunks/59b216b60464611742d4.js +0 -1
  213. package/assets/esri/core/workers/chunks/5bfea0c55aca826de536.js +0 -1
  214. package/assets/esri/core/workers/chunks/5fa1ec357c3ad1f91bc7.js +0 -1
  215. package/assets/esri/core/workers/chunks/60d3056a31d982c9cad0.js +0 -1
  216. package/assets/esri/core/workers/chunks/6558488ea96620439f34.js +0 -1
  217. package/assets/esri/core/workers/chunks/6aebf7cfd294e88bf926.js +0 -1
  218. package/assets/esri/core/workers/chunks/6b43bb78f9839ed43135.js +0 -1
  219. package/assets/esri/core/workers/chunks/6c83398cf586ecea0eb1.js +0 -1
  220. package/assets/esri/core/workers/chunks/7267b17de212207142c9.js +0 -1
  221. package/assets/esri/core/workers/chunks/7d1fd2df579a4b535e0e.js +0 -1
  222. package/assets/esri/core/workers/chunks/7e0cf70c0eb5a2ddfcec.js +0 -1
  223. package/assets/esri/core/workers/chunks/879b2de825c1dfc8849d.js +0 -1
  224. package/assets/esri/core/workers/chunks/912080c90b5cc2e817cf.js +0 -1
  225. package/assets/esri/core/workers/chunks/917f53833b853898facc.js +0 -1
  226. package/assets/esri/core/workers/chunks/937824bc7948f7bc7845.js +0 -1
  227. package/assets/esri/core/workers/chunks/a97d85774f9a417202df.js +0 -1
  228. package/assets/esri/core/workers/chunks/aff32980d91dab07dfb7.js +0 -1
  229. package/assets/esri/core/workers/chunks/b132ffa7e8bb461b6786.js +0 -1
  230. package/assets/esri/core/workers/chunks/b1b4066e8d1c0c9656e5.js +0 -1
  231. package/assets/esri/core/workers/chunks/b6ba66a05030d3815dfd.js +0 -1
  232. package/assets/esri/core/workers/chunks/bbec9d2e3b75a5c59681.js +0 -1
  233. package/assets/esri/core/workers/chunks/bf69024804ac51c8f733.js +0 -1
  234. package/assets/esri/core/workers/chunks/d938987344bce83cc660.js +0 -1
  235. package/assets/esri/core/workers/chunks/db1ab9b9c8bf5c7635d3.js +0 -1
  236. package/assets/esri/core/workers/chunks/e01aeac34474540f61ee.js +0 -1
  237. package/assets/esri/core/workers/chunks/e15ba90af0faf873b42d.js +0 -1
  238. package/assets/esri/core/workers/chunks/fd9663952d5a94f3a83f.js +0 -1
  239. package/layers/mixins/FeatureLayerReload.js +0 -2
  240. /package/views/3d/analysis/LineOfSight/{lineOfSightPlacementUtils.js → placementUtils.js} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[563],{15142(t,e,s){s.d(e,{A:()=>o});var r=s(4576),i=s(21818);const l=(t,e,s,r)=>{let i=e,l=e,h=s>>>1,n=t[i-1];for(;l<=h;){l=i<<1,l<s&&r(t[l-1],t[l])<0&&++l;let e=t[l-1];if(r(e,n)<=0)break;t[i-1]=e,i=l}t[i-1]=n},h=(t,e)=>t<e?-1:+(t>e);function n(t,e,s,r){void 0===e&&(e=0),void 0===s&&(s=t.length),void 0===r&&(r=h);for(let i=s>>>1;i>e;i--)l(t,i,s,r);let i=e+1;for(let h=s-1;h>e;h--){let s=t[e];t[e]=t[h],t[h]=s,l(t,i,h,r)}}function*a(t,e,s,r){void 0===e&&(e=0),void 0===s&&(s=t.length),void 0===r&&(r=h);for(let i=s>>>1;i>e;i--)l(t,i,s,r),yield;let i=e+1;for(let h=s-1;h>e;h--){let s=t[e];t[e]=t[h],t[h]=s,l(t,i,h,r),yield}}class o{constructor(t){this.data=[],this._length=0,this._allocator=void 0,this._deallocator=()=>null,this._shrink=()=>{},this._hint=new r.vW,t&&(t.initialSize&&(this.data=Array(t.initialSize)),t.allocator&&(this._allocator=t.allocator),void 0!==t.deallocator&&(this._deallocator=t.deallocator),t.shrink&&(this._shrink=()=>c(this)))}toArray(){return this.data.slice(0,this.length)}filter(t){let e=[];for(let s=0;s<this._length;s++){let r=this.data[s];t(r)&&e.push(r)}return e}at(t){if((t=Math.trunc(t)||0)<0&&(t+=this._length),!(t<0||t>=this._length))return this.data[t]}includes(t,e){let s=this.data.indexOf(t,e);return-1!==s&&s<this.length}get length(){return this._length}set length(t){if(t>this._length){if(this._allocator){for(;this._length<t;)this.data[this._length++]=this._allocator(this.data[this._length]);return}this._length=t}else{if(this._deallocator)for(let e=t;e<this._length;++e)this.data[e]=this._deallocator(this.data[e]);this._length=t,this._shrink()}}clear(){this.length=0}prune(){this.clear(),this.data=[]}push(t){this.data[this._length++]=t}pushArray(t,e=t.length){for(let s=0;s<e;s++)this.data[this._length++]=t[s]}pushAll(t){for(let e of t)this.data[this._length++]=e}fill(t,e){for(let s=0;s<e;s++)this.data[this._length++]=t}pushNew(){this._allocator&&(this.data[this.length]=this._allocator(this.data[this.length]));let t=this.data[this._length];return++this._length,t}unshift(t){this.data.unshift(t),this._length++,c(this)}pop(){if(0===this.length)return;let t=this.data[this.length-1];return--this.length,this._shrink(),t}remove(t){let e=(0,r.qh)(this.data,(0,i.z)(t),this.length,this._hint);if(-1!==e)return this.data.splice(e,1),--this.length,t}removeUnordered(t){return this.removeUnorderedIndex((0,r.qh)(this.data,(0,i.z)(t),this.length,this._hint))}removeUnorderedIndex(t){if(!(t>=this.length||t<0))return this.swapElements(t,this.length-1),this.pop()}removeUnorderedMany(t,e=t.length,s){this.length=(0,r.mW)(this.data,t,this.length,e,this._hint,s),this._shrink()}front(){if(0!==this.length)return this.data[0]}back(){if(0!==this.length)return this.data[this.length-1]}swapElements(t,e){if(t>=this.length||e>=this.length||t===e)return;let s=this.data[t];this.data[t]=this.data[e],this.data[e]=s}sort(t){n(this.data,0,this.length,t)}stableSort(t){let e=this.toArray().sort(t);for(let t=0;t<e.length;++t)this.data[t]=e[t]}iterableSort(t){return a(this.data,0,this.length,t)}some(t,e){for(let s=0;s<this.length;++s)if(t.call(e,this.data[s],s,this.data))return!0;return!1}find(t,e){let{data:s,length:r}=this;for(let i=0;i<r;++i)if(t.call(e,s[i]))return s[i]}filterInPlace(t,e){let s=0;for(let r=0;r<this._length;++r){let i=this.data[r];t.call(e,i,r,this.data)&&(this.data[r]=this.data[s],this.data[s]=i,s++)}if(this._deallocator)for(let t=s;t<this._length;t++)this.data[t]=this._deallocator(this.data[t]);return this._length=s,this._shrink(),this}forAll(t,e){let{data:s,length:r}=this;for(let i=0;i<r;++i)t.call(e,s[i],i,s)}forEach(t,e){this.data.slice(0,this.length).forEach(t,e)}map(t,e){let s=Array(this.length);for(let r=0;r<this.length;++r)s[r]=t.call(e,this.data[r],r,this.data);return s}reduce(t,e){let s=e;for(let e=0;e<this.length;++e)s=t(s,this.data[e],e,this.data);return s}has(t){let e=this.length,s=this.data;for(let r=0;r<e;++r)if(s[r]===t)return!0;return!1}*[Symbol.iterator](){for(let t=0;t<this.length;++t)yield this.data[t]}}function c(t){t.data.length>1.5*t.length&&(t.data.length=Math.floor(1.1*t.length))}},9775(t,e,s){s.d(e,{A:()=>l});var r=s(62788),i=s(95488);class l{constructor(t=t=>t.values().next().value){this._peeker=t,this._observable=new i.I,this._items=new Set}get length(){return(0,r.gc)(this._observable),this._items.size}clear(){0!==this.length&&(this._items.clear(),this._observable.notify())}last(){if(0===this.length)return;let t;for(t of this._items);return t}peek(){if(0!==this.length)return this._peeker(this._items)}push(t){this.contains(t)||(this._items.add(t),this._observable.notify())}contains(t){return(0,r.gc)(this._observable),this._items.has(t)}pop(){if(0===this.length)return;let t=this.peek();return this._items.delete(t),this._observable.notify(),t}popLast(){if(0===this.length)return;let t=this.last();return this._items.delete(t),this._observable.notify(),t}remove(t){this.contains(t)&&(this._items.delete(t),this._observable.notify())}filter(t){let e=this.length;return this._items.forEach(e=>{t(e)||this._items.delete(e)}),e!==this._items.size&&this._observable.notify(),this}*[Symbol.iterator](){(0,r.gc)(this._observable),yield*this._items}}},563(t,e,s){s.d(e,{QueueProcessor:()=>o,SharedConcurrency:()=>u});var r=s(97768),i=s(17676),l=s(9775),h=s(32587),n=s(76030),a=s(44794);class o{constructor(t){this._schedule=null,this._deferreds=new h.A,this._controllers=new h.A,this._processingItems=new h.A,this._pausedSignal=(0,a.v)(!1),this.process=t.process,this.concurrency=t.concurrency,this.sharedConcurrency=t.sharedConcurrency??d,this._queue=new l.A(t.peeker)}destroy(){this.clear(),this._schedule=(0,r.xt)(this._schedule)}get updating(){return this.running}get length(){return this._processingItems.size+this._queue.length}get running(){return!this._pausedSignal.value&&this._queue.length>0&&!this.full}get full(){return this._processingItems.size>=this.concurrency||this.sharedConcurrency.full}abort(t){this._controllers.get(t)?.abort()}clear(){this._queue.clear();let t=Array.from(this._controllers.values());this._controllers.clear(),t.forEach(t=>t.abort()),this.sharedConcurrency.current.value-=this._processingItems.size,this._processingItems.clear(),this._cancelNext()}forEach(t){this._deferreds.forEach((e,s)=>t(s))}_get(t){return this._deferreds.get(t)?.promise}pause(){this._pausedSignal.value||(this._pausedSignal.value=!0,this._cancelNext())}push(t,e){let s=this._get(t);if(s)return s;let r=new AbortController,l=Promise.withResolvers(),h=e?(0,i.u7)(e,()=>r.abort()):null,n=(0,i.NY)(r.signal,()=>{let e=this._processingItems.get(t);e&&e.controller.abort(),a(),l.reject((0,i.NK)())}),a=()=>{n.remove(),h?.remove(),this._removeItem(t),this._queue.remove(t),this._scheduleNext()};return this._deferreds.set(t,l),this._controllers.set(t,r),l.promise.then(a,a),this._queue.push(t),this._scheduleNext(),l.promise}last(){return this._queue.last()}reset(){let t=Array.from(this._processingItems.values());this.sharedConcurrency.current.value-=this._processingItems.size,this._processingItems.clear();for(let e of t)this._queue.push(e.item),e.controller.abort();this._scheduleNext()}resume(){this._pausedSignal.value&&(this._pausedSignal.value=!1,this._scheduleNext())}takeAll(){let t=[];for(;this._queue.length;)t.push(this._queue.pop());return this.clear(),t}_removeItem(t){this._deferreds.delete(t),this._controllers.delete(t),this._processingItems.has(t)&&(this._processingItems.delete(t),--this.sharedConcurrency.current.value)}_scheduleNext(){this._pausedSignal.value||this._schedule||(this._schedule=(0,n._)(()=>{this._schedule=null,this._next()}))}_next(){for(;this._queue.length>0&&this._processingItems.size<this.concurrency&&!this.sharedConcurrency.full;)this._process(this._queue.pop())}_cancelNext(){this._schedule&&=(this._schedule.remove(),null)}_processResult(t,e){this._canProcessFulfillment(t)&&(this._scheduleNext(),this._deferreds.get(t.item).resolve(e))}_processError(t,e){this._canProcessFulfillment(t)&&(this._scheduleNext(),this._deferreds.get(t.item).reject(e))}_canProcessFulfillment(t){return!(!this._deferreds.get(t.item)||this._processingItems.get(t.item)!==t)}_process(t){if(null==t)return;let e,s=new AbortController,r=new c(t,s);this._processingItems.set(t,r),this.sharedConcurrency.current.value+=1;try{e=this.process(t,s.signal)}catch(t){this._processError(r,t)}(0,i.$X)(e)?(r.promise=e,e.then(t=>this._processResult(r,t),t=>this._processError(r,t))):this._processResult(r,e)}}class c{constructor(t,e){this.item=t,this.controller=e,this.promise=null}}class u{constructor(t){this.limit=t,this.current=(0,a.v)(0)}get full(){return this.current.value>=this.limit}}const d=new u(1/0)},32587(t,e,s){s.d(e,{A:()=>l});var r=s(62788),i=s(95488);class l{constructor(t){this._observable=new i.I,this._notifyPending=!1,this._batchDepth=0,this._map=new Map(t)}get size(){return(0,r.gc)(this._observable),this._map.size}batch(t){try{this._batchDepth++,t()}finally{this._batchDepth--,this._notifyPending&&0===this._batchDepth&&(this._notifyPending=!1,this._notify())}}clear(){this._map.size>0&&(this._map.clear(),this._notify())}delete(t){let e=this._map.delete(t);return e&&this._notify(),e}entries(){return(0,r.gc)(this._observable),this._map.entries()}forEach(t,e){(0,r.gc)(this._observable),this._map.forEach((s,r)=>t.call(e,s,r,this),e)}get(t){return(0,r.gc)(this._observable),this._map.get(t)}has(t){return(0,r.gc)(this._observable),this._map.has(t)}keys(){return(0,r.gc)(this._observable),this._map.keys()}set(t,e){return this._map.set(t,e),this._notify(),this}transformValues(t,e=this._map.keys()){this.batch(()=>{for(let s of e){if(!this._map.has(s))continue;let e=this._map.get(s),r=t(e,s);r!==e&&this.set(s,r)}})}values(){return(0,r.gc)(this._observable),this._map.values()}[Symbol.iterator](){return(0,r.gc)(this._observable),this._map[Symbol.iterator]()}[Symbol.dispose](){this._observable.destroy()}get[Symbol.toStringTag](){return this._map[Symbol.toStringTag]}_notify(){this._batchDepth>0?this._notifyPending=!0:this._observable.notify()}}},11406(t,e,s){s.d(e,{T:()=>l});var r=s(36563);class i{constructor(t,e){this._observers=t,this._observer=e}remove(){let{_observers:t,_observer:e}=this;if(t[t.length-1]===e)return void t.pop();let s=t.indexOf(this._observer);-1!==s&&t.splice(s,1)}}class l{constructor(){this._observers=null,this.destroyed=!1}observe(t){if(this.destroyed||t.destroyed)return h;this._observers??=[];let e=this._observers,s=!1,r=!1;for(let i of e)if(i.destroyed)r=!0;else if(i===t){s=!0;break}return s||(e.push(t),r&&this._removeDestroyedObservers()),new i(e,t)}_removeDestroyedObservers(){let t=this._observers;if(!t)return;let e=t.length;if(0===e)return;let s=0;for(let r=0;r<e;++r){for(;r+s<e&&t[r+s].destroyed;)++s;if(s>0){if(!(r+s<e))break;t[r]=t[r+s]}}t.length=e-s}destroy(){if(this.destroyed)return;this.destroyed=!0;let t=this._observers;if(null!=t){for(let e of t)e.onCommitted();this._observers=null}}}const h=(0,r.hA)()},62788(t,e,s){s.d(e,{F_:()=>_,Xr:()=>v,a:()=>d,fE:()=>p,gc:()=>o}),s(44208);var r=s(53966),i=s(88620),l=s(47328);const h=new(s(67867).R),n=[];let a=h;function o(t){a.onAccessed(t)}let c=!1,u=!1;function d(t,e,s){if(c)return f(t,e,s);let i;if(u){a=t,n.push(t);try{i=e.call(s)}catch(t){throw r.A.getLogger("esri.core.accessorSupport.tracking").error(t),t}finally{g()}}else{a=t,n.push(t);try{i=e.call(s)}finally{g()}}return i}function _(t,e){return d(h,t,e)}function f(t,e,s){let i,l=c;c=!0,a=t,n.push(t);try{i=e.call(s)}catch(t){u&&r.A.getLogger("esri.core.accessorSupport.tracking").error(t)}return g(),c=l,i}function g(){let t=n.length;if(t>1){let e=n.pop();a=n[t-2],e.onTrackingEnd()}else if(1===t){let t=n.pop();a=h,t.onTrackingEnd()}else a=h}function p(t,e){if(e.flags&l.i.DepTrackingInitialized)return;e.flags|=l.i.DepTrackingInitialized;let s=u;u=!1,e.flags&l.i.AutoTracked?f(e.trackingTarget,e.metadata.get,t):v(t,e),u=s}const m=[];function v(t,e){e.flags&l.i.ExplicitlyTracking||(e.flags|=l.i.ExplicitlyTracking,f(e.trackingTarget,()=>{let s=e.metadata.dependsOn||m;for(let e of s)if("string"!=typeof e||e.includes(".")){let s=(0,i.AH)(e);for(let e=0,r=t;e<s.length&&"object"==typeof r&&r;++e)r=y(r,s[e],e!==s.length-1)}else y(t,e,!1)}),e.flags&=~l.i.ExplicitlyTracking)}function y(t,e,s){let r=e.endsWith("?")?e.slice(0,-1):e;if(null!=t.getItemAt||Array.isArray(t)){let e=parseInt(r,10);if(!isNaN(e))return Array.isArray(t)?t[e]:t.at(e)}let l=(0,i.oY)(t);if(l){let e=l.propertiesByName.get(r);e&&(o(e),p(t,e))}return s?t[r]:void 0}},47328(t,e,s){s.d(e,["i",0,{Dirty:1,Overridden:2,Computing:4,NonNullable:8,HasDefaultValue:16,DepTrackingInitialized:32,AutoTracked:64,ExplicitlyTracking:128}])},95488(t,e,s){s.d(e,{I:()=>i});var r=s(11406);class i extends r.T{notify(){let t=this._observers;if(t&&t.length>0){let e=t.slice();for(let t of e)t.onInvalidated(),t.onCommitted()}}}},67867(t,e,s){s.d(e,{R:()=>r});class r{constructor(t){this.accessed=void 0,this._handles=void 0,this._observer=t}destroy(){this.clear(),this.accessed=void 0,this._observer=void 0}onAccessed(t){null!=this._observer&&t!==this._observer&&(this.accessed??=new Set,this.accessed.add(t))}onTrackingEnd(){null!=this._observer&&(this.clear(),null!=this.accessed&&(this._handles??=[],this.accessed.forEach(t=>{this._handles.push(t.observe(this._observer))}),this.accessed.clear()))}clear(){if(null!=this._handles)for(;this._handles.length;)this._handles.pop().remove()}}},88620(t,e,s){s.d(e,{AH:()=>o,h1:()=>n,oY:()=>l,qg:()=>u,yh:()=>h});var r=s(36563),i=s(4718);function l(t){return t.__accessor__??null}function h(t,e){return null!=t?.metadata?.[e]}function n(t,e,s){return a(t,e,s?{policy:s,path:""}:null)}function a(t,e,s){return e?Object.keys(e).reduce((t,r)=>{let l=r;if("__proto__"===l)return t;let h=null,n="merge";if(s&&(h=s.path?`${s.path}.${r}`:r,n=s.policy(h)),"replace"===n||"replace-arrays"===n&&Array.isArray(t[l]))return t[l]=e[l],t;if(void 0===t[l])return t[l]=(0,i.o8)(e[l]),t;let o=t[l],c=e[l];if(o===c)return t;if(Array.isArray(c)||Array.isArray(t))o=t[l]=o?Array.isArray(o)?o.slice():[o]:[],c&&(Array.isArray(c)||(c=[c]),c.forEach(t=>{o.includes(t)||o.push(t)}));else if(c&&"object"==typeof c)if(s){let e=s.path;s.path=h,t[l]=a(o,c,s),s.path=e}else t[l]=a(o,c,null);else(!t.hasOwnProperty(r)||e.hasOwnProperty(r))&&(t[l]=c);return t},t||{}):t}function o(t){return Array.isArray(t)?t:t.split(".")}function c(t){return t.includes(",")?t.split(",").map(t=>t.trim()):[t.trim()]}function u(t,e,s,i){let l=function(t){if(Array.isArray(t)){let e=[];for(let s of t)e.push(...c(s));return e}return c(t)}(e);if(1!==l.length){let e=l.map(e=>i(t,e,s));return(0,r.vE)(e)}return i(t,l[0],s)}},26390(t,e,s){s.d(e,{d:()=>i});const r=[];function i(t){r.push(t),1===r.length&&queueMicrotask(()=>{let t=r.slice();r.length=0;for(let e of t)e()})}},76030(t,e,s){s.d(e,{_:()=>p,$m:()=>w,md:()=>k});var r=s(26390);function i(t,e,s,r,i){console.timeStamp(t,e,s,i,r)}class l{constructor(t,e=30){this.name=t,this._counter=0,this._samples=Array(e)}push(t){null!=t&&(this._samples[++this._counter%this._samples.length]=t)}set(t){null!=t&&(this._samples[this._counter%this._samples.length]=t)}get median(){return this._samples.slice().sort((t,e)=>t-e)[Math.floor(this._samples.length/2)]}get average(){return this._samples.reduce((t,e)=>t+e,0)/this._samples.length}get last(){return this._samples[this._counter%this._samples.length]}}var h=s(15142),n=s(17676),a=s(78659);class o{constructor(t){this.callback=t,this.isActive=!0}remove(){this.isActive=!1}}let c=0;const u={time:(0,a.l5)(0),deltaTime:(0,a.l5)(0),elapsedFrameTime:(0,a.l5)(0),frameDuration:(0,a.l5)(0)},d=["prepare","preRender","render","postRender","update","finish"],_=[],f=new h.A,g={frameTasks:f,willDispatch:!1,clearFrameTasks:function(t=!1){f.forAll(t=>{t.removed=!0}),t&&b()},dispatch:A,executeFrameTasks:function(t){let e=(0,a.l5)(t-c);c=t;let s=1e3/60,r=Math.max(0,e-s);u.time=t,u.frameDuration=(0,a.l5)(s-r);for(let s=0;s<d.length;s++){let r=performance.now(),l=d[s];f.forAll(r=>{r.paused||r.removed||(0===s&&r.ticks++,!r.phases[l])||(u.elapsedFrameTime=(0,a.l5)(performance.now()-t),u.deltaTime=0===r.ticks?(0,a.l5)(0):e,r.phases[l]?.call(r,u))});let h=performance.now();S[s].push(h-r),i(l,r,h,"Maps SDK","Scheduling")}b();let l=performance.now();I.push(l-t),i("Animation Frame",t,l,"Maps SDK","Scheduling")},reschedule:function(){null!=m&&(cancelAnimationFrame(m),m=requestAnimationFrame(v))}};function p(t){let e=new o(t);return _.push(e),g.willDispatch||(g.willDispatch=!0,(0,r.d)(A)),e}let m=null;function v(){let t=performance.now();m=null,m=f.some(t=>!t.paused&&!t.removed)?requestAnimationFrame(v):null,g.executeFrameTasks(t)}const y=new h.A;function b(){f.forAll(t=>{t.removed&&y.push(t)}),f.removeUnorderedMany(y.data,y.length),y.clear()}function A(){for(;_.length;){let t=_.shift();t.isActive&&t.callback()}g.willDispatch=!1}function k(t=1,e){let s=Promise.withResolvers(),i=()=>{(0,n.G4)(e)?s.reject((0,n.NK)()):0===t?s.resolve():(--t,(0,r.d)(()=>i()))};return i(),s.promise}async function w(t){await function(t){return k(1,t)}(t),await new Promise(e=>requestAnimationFrame(()=>{t?.aborted||e()}))}const S=d.map(t=>new l(t)),I=new l("total")},44794(t,e,s){s.d(e,{v:()=>n});var r=s(4718),i=s(62788),l=s(95488);class h{constructor(t,e){this._observable=new l.I,this._value=t,this._equalityFunction=e}get value(){return(0,i.gc)(this._observable),this._value}set value(t){this._equalityFunction(t,this._value)||(this._value=t,this._observable.notify())}mutate(t){t(this._value),this._observable.notify()}}function n(t,e=r.gh){return new h(t,e)}},78659(t,e,s){function r(t){return t}function i(t){return 1e3*t}function l(t){return t}s.d(e,{Kp:()=>l,gr:()=>i,l5:()=>r})}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[506,895,1150,1359,1948,3354,4144,5223,6742,7085,8125,9096],{61691(e,t,r){r.d(t,{G:()=>i});class i{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}},76061(e,t,r){r.d(t,{S:()=>n});var i=r(61691);class n extends i.G{m_aGeoms;m_iGeom=-1;constructor(e){super(),this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){let e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},73354(e,t,r){r.d(t,{a:()=>c,b:()=>a,c:()=>n,d:()=>o,e:()=>d,f:()=>h,l:()=>u,n:()=>p,t:()=>s}),r(44208);var i=r(72727);function n(e,t,r){s(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function s(e,t,r,n=3,s=n){let o=(0,i.k)(e.length,n,3),a=(0,i.k)(t.length,s,3),l=Math.min(o,a),u=r[0],h=r[1],c=r[2],d=r[4],p=r[5],f=r[6],m=r[8],g=r[9],y=r[10],v=r[12],_=r[13],w=r[14],x=0,C=0;for(let r=0;r<l;r++){let r=t[x],i=t[x+1],o=t[x+2];e[C]=u*r+d*i+m*o+v,e[C+1]=h*r+p*i+g*o+_,e[C+2]=c*r+f*i+y*o+w,x+=s,C+=n}return e}function o(e,t,r){a(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function a(e,t,r,n=3,s=n){let o=(0,i.k)(e.length,n,3),a=(0,i.k)(t.length,s,3),l=Math.min(o,a),u=r[0],h=r[1],c=r[2],d=r[3],p=r[4],f=r[5],m=r[6],g=r[7],y=r[8],v=0,_=0;for(let r=0;r<l;r++){let r=t[v],i=t[v+1],o=t[v+2];e[_]=u*r+d*i+m*o,e[_+1]=h*r+p*i+g*o,e[_+2]=c*r+f*i+y*o,v+=s,_+=n}}function l(e,t,r,i=3,n=i){let s=Math.min(e.length/i,t.length/n),o=0,a=0;for(let l=0;l<s;l++)e[a]=r*t[o],e[a+1]=r*t[o+1],e[a+2]=r*t[o+2],o+=n,a+=i;return e}function u(e,t,r,i){h(e.typedBuffer,t.typedBuffer,r,i,e.typedBufferStride,t.typedBufferStride)}function h(e,t,r,i,n=3,s=n){let o=Math.min(e.length/n,t.length/s),a=0,l=0,u=1/2.2;for(let h=0;h<o;h++)e[l]=i*(r*t[a])**u,e[l+1]=i*(r*t[a+1])**u,e[l+2]=i*(r*t[a+2])**u,a+=s,l+=n}function c(e,t,r,n=3,s=n){let o=(0,i.k)(e.length,n,3),a=(0,i.k)(t.length,s,3),l=Math.min(o,a),u=0,h=0;for(let i=0;i<l;i++)e[h]=t[u]+r[0],e[h+1]=t[u+1]+r[1],e[h+2]=t[u+2]+r[2],u+=s,h+=n;return e}function d(e,t){p(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function p(e,t,r=3,i=r){let n=Math.min(e.length/r,t.length/i),s=0,o=0;for(let a=0;a<n;a++){let n=t[s],a=t[s+1],l=t[s+2],u=n*n+a*a+l*l;if(u>0){let t=1/Math.sqrt(u);e[o]=t*n,e[o+1]=t*a,e[o+2]=t*l}s+=i,o+=r}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:h,linearToSRGBView:u,normalize:p,normalizeView:d,scale:l,scaleView:function(e,t,r){l(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)},shiftRight:function(e,t,r){let i=Math.min(e.count,t.count),n=e.typedBuffer,s=e.typedBufferStride,o=t.typedBuffer,a=t.typedBufferStride,l=0,u=0;for(let e=0;e<i;e++)n[u]=o[l]>>r,n[u+1]=o[l+1]>>r,n[u+2]=o[l+2]>>r,l+=a,u+=s},transformMat3:a,transformMat3View:o,transformMat4:s,transformMat4View:n,translate:c},Symbol.toStringTag,{value:"Module"}))},69540(e,t,r){var i=r(32198),n=r(69622),s=(r(44208),r(4718)),o=(r(53966),r(97768)),a=r(88620),l=r(64108);const u=Symbol("ClonableMixin"),h=e=>{var t;let r=e,n=class extends r{constructor(){super(...arguments),this[t]=!0}static{t=u}clone(e){let t=(0,a.oY)(this);(0,o.Lw)(t,"unable to clone instance of non-accessor class");let r=t.metadata,i=t.store,n={},l=new Map;for(let t in r){let o=r[t],a=i?.originOf(t),u=o.clonable;if(o.readOnly||!1===u||7!==a&&0!==a&&5!==a&&4!==a)continue;let h=this[t],c=null;if("function"==typeof u)c=u(h,e);else if("reference"===u)c=h;else if(c=(0,s.TU)(h,e),null!=h&&null==c)continue;0===a?l.set(t,c):n[t]=c}let u=new(0,Object.getPrototypeOf(this).constructor)(n);if(l.size){let e=(0,a.oY)(u)?.store;if(e)for(let[t,r]of l)e.set(t,r,0)}return u}};return n=(0,i.Cg)([(0,l.$)("esri.core.Clonable")],n),n},c=h(n.A);r.d(t,["OU",0,h,"Pw",0,c])},7762(e,t,r){var i,n=r(32198),s=r(98291),o=r(4576),a=r(65529),l=r(36563),u=r(4718),h=r(53966),c=r(93687),d=r(76030),p=r(78888),f=r(62788),m=r(10107),g=r(7695),y=r(64108),v=r(95488),_=r(12195);class w{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(e){this.defaultPrevented=!1,this.item=e}}class x{constructor(e,t,r,i,n){this.target=e,this.added=t,this.removed=r,this.start=i,this.deleteCount=n}}const C=new c.A(()=>new w,void 0,e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1});function b(e){e&&"object"==typeof e&&"destroy"in e&&"function"==typeof e.destroy&&e.destroy()}function M(e){return e?e instanceof I?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function T(e){if(e?.length)return e[0]}function A(e,t,r,i){let n=Math.min(e.length-r,t.length-i),s=0;for(;s<n&&e[r+s]===t[i+s];)s++;return s}function R(e,t,r,i){t&&t.forEach((t,n,s)=>{e.push(t),R(e,r.call(i,t,n,s),r,i)})}const S=new Set,Z=new Set,P=new Set,E=new Map;let O=0,I=i=class extends a.nJ{static ofType(e){if(!e)return i;if(E.has(e))return E.get(e);let t=null;if("function"==typeof e)t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(let r in e.typeMap){let i=e.typeMap[r].prototype.declaredClass;t?t+=` | ${i}`:t=i}let r=class extends i{};return(0,n.Cg)([(0,g.u)({Type:e,ensureType:"function"==typeof e?(0,p.dp)(e):(0,p.aq)(e)})],r.prototype,"itemType",void 0),r=(0,n.Cg)([(0,y.$)(`esri.core.Collection<${t}>`)],r),E.set(e,r),r}static isCollection(e){return null!=e&&e instanceof i}constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new v.I,this._length=0,this._items=[],Object.defineProperty(this,"uid",{value:O++})}normalizeCtorArgs(e){return e?(0,o.yc)(e)||e instanceof i?{items:e}:e:{}}destroy(){this._removeAllRaw(),this._timer&&this._timer.remove(),super.destroy(),this._notifications=null}*[Symbol.iterator](){yield*this.items}get length(){return this._length}set length(e){e>this._length?h.A.getLogger(this).error("#length=","Cannot increase the length of the collection by assigning to the length property."):this.splice(e,Math.max(0,this._length-e))}get items(){return(0,f.gc)(this._observable),this._items}set items(e){this._emitBeforeChanges(1)||(this._splice(0,this.length,M(e)),this._emitAfterChanges(1))}hasEventListener(e){return!this.destroyed&&("change"===e?this._chgListeners.length>0:super.hasEventListener(e))}on(e,t){if(this.destroyed)return(0,l.hA)();if("change"===e){let e=this._chgListeners,r={removed:!1,callback:t};return e.push(r),this._notifications&&this._notifications.push({listeners:e.slice(),items:this._items.slice(),changes:[]}),(0,l.hA)(()=>{r.removed=!0,e.splice(e.indexOf(r),1)})}return super.on(e,t)}once(e,t){let r="deref"in t?()=>t.deref():()=>t,i=this.on(e,e=>{r()?.call(null,e),i.remove()});return i}add(e,t){if((0,f.gc)(this._observable),this._emitBeforeChanges(1))return this;let r=this.getNextIndex(t??null);return this._splice(r,0,[e]),this._emitAfterChanges(1),this}addMany(e,t=this._items.length){if((0,f.gc)(this._observable),!e?.length||this._emitBeforeChanges(1))return this;let r=this.getNextIndex(t);return this._splice(r,0,M(e)),this._emitAfterChanges(1),this}at(e){if((0,f.gc)(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return[];let e=this._removeAllRaw();return this._emitAfterChanges(2),e}_removeAllRaw(){return 0===this.length?[]:this._splice(0,this.length)||[]}clone(){return(0,f.gc)(this._observable),this._createNewInstance({items:this._items.map(u.o8)})}concat(...e){(0,f.gc)(this._observable);let t=e.map(M);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;let r=this._splice(0,this.length),i=r.length;for(let n=0;n<i;n++)e.call(t,r[n],n,r);this._emitAfterChanges(2)}destroyAll(){this.drain(b)}destroyMany(e){let t=this.removeMany(e);return t.forEach(b),t}every(e,t){return(0,f.gc)(this._observable),this._items.every(e,t)}filter(e,t){(0,f.gc)(this._observable);let r=2===arguments.length?this._items.filter(e,t):this._items.filter(e);return this._createNewInstance({items:r})}find(e,t){return(0,f.gc)(this._observable),this._items.find(e,t)}findIndex(e,t){return(0,f.gc)(this._observable),this._items.findIndex(e,t)}findLast(e,t){return(0,f.gc)(this._observable),this._items.findLast(e,t)}findLastIndex(e,t){return(0,f.gc)(this._observable),this._items.findLastIndex(e,t)}flatten(e,t){(0,f.gc)(this._observable);let r=[];return R(r,this,e,t),new i(r)}forEach(e,t){return(0,f.gc)(this._observable),this._items.forEach(e,t)}getItemAt(e){return(0,f.gc)(this._observable),this._items[e]}getNextIndex(e){(0,f.gc)(this._observable);let t=this.length;return e??=t,e<0?e=0:e>t&&(e=t),e}includes(e,t=0){return(0,f.gc)(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return(0,f.gc)(this._observable),this._items.indexOf(e,t)}join(e=","){return(0,f.gc)(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return(0,f.gc)(this._observable),this._items.lastIndexOf(e,t)}map(e,t){(0,f.gc)(this._observable);let r=this._items.map(e,t);return new i({items:r})}reorder(e,t=this.length-1){(0,f.gc)(this._observable);let r=this.indexOf(e);if(-1!==r){if(t<0?t=0:t>=this.length&&(t=this.length-1),r!==t){if(this._emitBeforeChanges(4))return e;this._splice(r,1),this._splice(t,0,[e]),this._emitAfterChanges(4)}return e}}pop(){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;let e=T(this._splice(this.length-1,1));return this._emitAfterChanges(2),e}push(...e){return(0,f.gc)(this._observable),this._emitBeforeChanges(1)||(this._splice(this.length,0,e),this._emitAfterChanges(1)),this.length}reduce(e,t){(0,f.gc)(this._observable);let r=this._items;return 2===arguments.length?r.reduce(e,t):r.reduce(e)}reduceRight(e,t){(0,f.gc)(this._observable);let r=this._items;return 2===arguments.length?r.reduceRight(e,t):r.reduceRight(e)}remove(e){return(0,f.gc)(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if((0,f.gc)(this._observable),e<0||e>=this.length||this._emitBeforeChanges(2))return;let t=T(this._splice(e,1));return this._emitAfterChanges(2),t}removeMany(e){if((0,f.gc)(this._observable),!e?.length||this._emitBeforeChanges(2))return[];let t=e instanceof i?e.toArray():e,r=this._items,n=[],s=t.length;for(let e=0;e<s;e++){let i=t[e],s=r.indexOf(i);if(s>-1){let i=1+A(t,r,e+1,s+1),o=this._splice(s,i);o&&o.length>0&&n.push.apply(n,o),e+=i-1}}return this._emitAfterChanges(2),n}reverse(){if((0,f.gc)(this._observable),this._emitBeforeChanges(4))return this;let e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(4),this}shift(){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;let e=T(this._splice(0,1));return this._emitAfterChanges(2),e}slice(e=0,t=this.length){return(0,f.gc)(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return(0,f.gc)(this._observable),this._items.some(e,t)}sort(e){if((0,f.gc)(this._observable),!this.length||this._emitBeforeChanges(4)||!this._requiresSort(e))return this;let t=this._splice(0,this.length);return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(4),this}_requiresSort(e=(e,t)=>e===t?0:e<t?-1:1){let t=this.length-1;for(let r=0;r<t;r++)if(e(this.items[r],this.items[r+1])>0)return!0;return!1}splice(e,t,...r){(0,f.gc)(this._observable),1===arguments.length&&(t=this.length),t??=0;let i=(t?2:0)|!!r.length;if(this._emitBeforeChanges(i))return[];let n=this._splice(e,t,r)||[];return this._emitAfterChanges(i),n}toArray(){return(0,f.gc)(this._observable),this._items.slice()}toJSON(e){return(0,f.gc)(this._observable),this.toArray().map(t=>(0,_.W)(t)?t.toJSON(e):t)}toLocaleString(){return(0,f.gc)(this._observable),this._items.toLocaleString()}toString(){return(0,f.gc)(this._observable),this._items.toString()}unshift(...e){return(0,f.gc)(this._observable),!e.length||this._emitBeforeChanges(1)||(this._splice(0,0,e),this._emitAfterChanges(1)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,r){let i,n,s=this._items,o=this.itemType;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._updating=!0,this._timer=(0,d._)(()=>this._dispatchChange())),e<0&&(e+=this.length),t){if(n=s.splice(e,t),this.hasEventListener("before-remove")){let t=C.acquire();t.target=this,t.cancellable=!0;for(let r=0,o=n.length;r<o;r++)i=n[r],t.reset(i),this.emit("before-remove",t),t.defaultPrevented&&(n.splice(r,1),s.splice(e,0,i),e+=1,--r,--o);C.release(t)}if(this._length=this._items.length,this.hasEventListener("after-remove")){let e=C.acquire();e.target=this,e.cancellable=!1;let t=n.length;for(let r=0;r<t;r++)e.reset(n[r]),this.emit("after-remove",e);C.release(e)}}if(r?.length){if(o){let e=[];for(let t of r){let r=o.ensureType(t);(null!=r||null==t)&&e.push(r)}r=e}let t=this.hasEventListener("before-add"),i=this.hasEventListener("after-add"),n=e===this.length;if(t||i){let o=C.acquire();o.target=this,o.cancellable=!0;let a=C.acquire();a.target=this,a.cancellable=!1;for(let l of r)t?(o.reset(l),this.emit("before-add",o),o.defaultPrevented||(n?s.push(l):s.splice(e++,0,l),this._length=s.length,i&&(a.reset(l),this.emit("after-add",a)))):(n?s.push(l):s.splice(e++,0,l),this._length=s.length,a.reset(l),this.emit("after-add",a));C.release(a),C.release(o)}else{if(n)for(let e of r)s.push(e);else s.splice(e,0,...r);this._length=s.length}}if((r?.length||n?.length)&&this._notifyChangeEvent(r,n),this.hasEventListener("after-splice")){let i=new x(this,r,n,e,t);this.emit("after-splice",i)}return n}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){let r=C.acquire();r.target=this,r.cancellable=!0,r.type=e,this.emit("before-changes",r),t=r.defaultPrevented,C.release(r)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){let t=C.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),C.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}get updating(){return this._updating}_dispatchChange(){if(this._timer&&=(this._timer.remove(),null),this._updating=!1,!this._notifications)return;let e=this._notifications;this._notifications=null;for(let t of e){let e=t.changes;S.clear(),Z.clear(),P.clear();for(let{added:t,removed:r}of e){if(t)if(0===P.size&&0===Z.size)for(let e of t)S.add(e);else for(let e of t)Z.has(e)?(P.add(e),Z.delete(e)):P.has(e)||S.add(e);if(r)if(0===P.size&&0===S.size)for(let e of r)Z.add(e);else for(let e of r)S.has(e)?S.delete(e):(P.delete(e),Z.add(e))}let r=s.A.acquire();S.forEach(e=>{r.push(e)});let i=s.A.acquire();Z.forEach(e=>{i.push(e)});let n=this._items,o=t.items,a=s.A.acquire();if(P.forEach(e=>{o.indexOf(e)!==n.indexOf(e)&&a.push(e)}),t.listeners&&(r.length||i.length||a.length)){let e={target:this,added:r,removed:i,moved:a},n=t.listeners.length;for(let r=0;r<n;r++){let i=t.listeners[r];i.removed||i.callback.call(this,e)}}s.A.release(r),s.A.release(i),s.A.release(a)}S.clear(),Z.clear(),P.clear()}};(0,n.Cg)([(0,m.MZ)()],I.prototype,"_updating",void 0),(0,n.Cg)([(0,m.MZ)()],I.prototype,"_length",void 0),(0,n.Cg)([(0,m.MZ)()],I.prototype,"length",null),(0,n.Cg)([(0,m.MZ)()],I.prototype,"items",null),(0,n.Cg)([(0,m.MZ)({readOnly:!0})],I.prototype,"updating",null),I=i=(0,n.Cg)([(0,y.$)("esri.core.Collection")],I);const N=I;r.d(t,["A",0,N])},4902(e,t,r){var i=r(32198),n=r(64108);let s=0;const o=e=>{let t=e,r=class extends t{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+s++})}};return r=(0,i.Cg)([(0,n.$)("esri.core.Identifiable")],r),r};o(class{}),r.d(t,["s",0,o])},9775(e,t,r){r.d(t,{A:()=>s});var i=r(62788),n=r(95488);class s{constructor(e=e=>e.values().next().value){this._peeker=e,this._observable=new n.I,this._items=new Set}get length(){return(0,i.gc)(this._observable),this._items.size}clear(){0!==this.length&&(this._items.clear(),this._observable.notify())}last(){if(0===this.length)return;let e;for(e of this._items);return e}peek(){if(0!==this.length)return this._peeker(this._items)}push(e){this.contains(e)||(this._items.add(e),this._observable.notify())}contains(e){return(0,i.gc)(this._observable),this._items.has(e)}pop(){if(0===this.length)return;let e=this.peek();return this._items.delete(e),this._observable.notify(),e}popLast(){if(0===this.length)return;let e=this.last();return this._items.delete(e),this._observable.notify(),e}remove(e){this.contains(e)&&(this._items.delete(e),this._observable.notify())}filter(e){let t=this.length;return this._items.forEach(t=>{e(t)||this._items.delete(t)}),t!==this._items.size&&this._observable.notify(),this}*[Symbol.iterator](){(0,i.gc)(this._observable),yield*this._items}}},563(e,t,r){r.d(t,{QueueProcessor:()=>u,SharedConcurrency:()=>c});var i=r(97768),n=r(17676),s=r(9775),o=r(32587),a=r(76030),l=r(44794);class u{constructor(e){this._schedule=null,this._deferreds=new o.A,this._controllers=new o.A,this._processingItems=new o.A,this._pausedSignal=(0,l.v)(!1),this.process=e.process,this.concurrency=e.concurrency,this.sharedConcurrency=e.sharedConcurrency??d,this._queue=new s.A(e.peeker)}destroy(){this.clear(),this._schedule=(0,i.xt)(this._schedule)}get updating(){return this.running}get length(){return this._processingItems.size+this._queue.length}get running(){return!this._pausedSignal.value&&this._queue.length>0&&!this.full}get full(){return this._processingItems.size>=this.concurrency||this.sharedConcurrency.full}abort(e){this._controllers.get(e)?.abort()}clear(){this._queue.clear();let e=Array.from(this._controllers.values());this._controllers.clear(),e.forEach(e=>e.abort()),this.sharedConcurrency.current.value-=this._processingItems.size,this._processingItems.clear(),this._cancelNext()}forEach(e){this._deferreds.forEach((t,r)=>e(r))}_get(e){return this._deferreds.get(e)?.promise}pause(){this._pausedSignal.value||(this._pausedSignal.value=!0,this._cancelNext())}push(e,t){let r=this._get(e);if(r)return r;let i=new AbortController,s=Promise.withResolvers(),o=t?(0,n.u7)(t,()=>i.abort()):null,a=(0,n.NY)(i.signal,()=>{let t=this._processingItems.get(e);t&&t.controller.abort(),l(),s.reject((0,n.NK)())}),l=()=>{a.remove(),o?.remove(),this._removeItem(e),this._queue.remove(e),this._scheduleNext()};return this._deferreds.set(e,s),this._controllers.set(e,i),s.promise.then(l,l),this._queue.push(e),this._scheduleNext(),s.promise}last(){return this._queue.last()}reset(){let e=Array.from(this._processingItems.values());this.sharedConcurrency.current.value-=this._processingItems.size,this._processingItems.clear();for(let t of e)this._queue.push(t.item),t.controller.abort();this._scheduleNext()}resume(){this._pausedSignal.value&&(this._pausedSignal.value=!1,this._scheduleNext())}takeAll(){let e=[];for(;this._queue.length;)e.push(this._queue.pop());return this.clear(),e}_removeItem(e){this._deferreds.delete(e),this._controllers.delete(e),this._processingItems.has(e)&&(this._processingItems.delete(e),--this.sharedConcurrency.current.value)}_scheduleNext(){this._pausedSignal.value||this._schedule||(this._schedule=(0,a._)(()=>{this._schedule=null,this._next()}))}_next(){for(;this._queue.length>0&&this._processingItems.size<this.concurrency&&!this.sharedConcurrency.full;)this._process(this._queue.pop())}_cancelNext(){this._schedule&&=(this._schedule.remove(),null)}_processResult(e,t){this._canProcessFulfillment(e)&&(this._scheduleNext(),this._deferreds.get(e.item).resolve(t))}_processError(e,t){this._canProcessFulfillment(e)&&(this._scheduleNext(),this._deferreds.get(e.item).reject(t))}_canProcessFulfillment(e){return!(!this._deferreds.get(e.item)||this._processingItems.get(e.item)!==e)}_process(e){if(null==e)return;let t,r=new AbortController,i=new h(e,r);this._processingItems.set(e,i),this.sharedConcurrency.current.value+=1;try{t=this.process(e,r.signal)}catch(e){this._processError(i,e)}(0,n.$X)(t)?(i.promise=t,t.then(e=>this._processResult(i,e),e=>this._processError(i,e))):this._processResult(i,t)}}class h{constructor(e,t){this.item=e,this.controller=t,this.promise=null}}class c{constructor(e){this.limit=e,this.current=(0,l.v)(0)}get full(){return this.current.value>=this.limit}}const d=new c(1/0)},32587(e,t,r){r.d(t,{A:()=>s});var i=r(62788),n=r(95488);class s{constructor(e){this._observable=new n.I,this._notifyPending=!1,this._batchDepth=0,this._map=new Map(e)}get size(){return(0,i.gc)(this._observable),this._map.size}batch(e){try{this._batchDepth++,e()}finally{this._batchDepth--,this._notifyPending&&0===this._batchDepth&&(this._notifyPending=!1,this._notify())}}clear(){this._map.size>0&&(this._map.clear(),this._notify())}delete(e){let t=this._map.delete(e);return t&&this._notify(),t}entries(){return(0,i.gc)(this._observable),this._map.entries()}forEach(e,t){(0,i.gc)(this._observable),this._map.forEach((r,i)=>e.call(t,r,i,this),t)}get(e){return(0,i.gc)(this._observable),this._map.get(e)}has(e){return(0,i.gc)(this._observable),this._map.has(e)}keys(){return(0,i.gc)(this._observable),this._map.keys()}set(e,t){return this._map.set(e,t),this._notify(),this}transformValues(e,t=this._map.keys()){this.batch(()=>{for(let r of t){if(!this._map.has(r))continue;let t=this._map.get(r),i=e(t,r);i!==t&&this.set(r,i)}})}values(){return(0,i.gc)(this._observable),this._map.values()}[Symbol.iterator](){return(0,i.gc)(this._observable),this._map[Symbol.iterator]()}[Symbol.dispose](){this._observable.destroy()}get[Symbol.toStringTag](){return this._map[Symbol.toStringTag]}_notify(){this._batchDepth>0?this._notifyPending=!0:this._observable.notify()}}},7695(e,t,r){function i(e){return(t,r)=>{t[r]=e}}r.d(t,{u:()=>i})},82534(e,t,r){function i(){return[0,0,0,1]}function n(e){return[e[0],e[1],e[2],e[3]]}r.d(t,{o8:()=>n,vt:()=>i});const s=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:n,create:i,fromValues:function(e,t,r,i){return[e,t,r,i]}},Symbol.toStringTag,{value:"Module"})),r.d(t,["zK",0,s])},48163(e,t,r){function i(){return[0,0]}function n(e){return[e[0],e[1]]}function s(e,t){return[e,t]}function o(){return s(1,1)}function a(){return s(-1,-1)}function l(){return s(1,0)}function u(){return s(0,1)}r.d(t,{fA:()=>s,o8:()=>n,vt:()=>i});const h=o(),c=a(),d=l(),p=u();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:c,ONES:h,UNIT_X:d,UNIT_Y:p,ZEROS:[0,0],clone:n,create:i,freeze:function(e,t){return[e,t]},fromArray:function(e,t=[0,0]){let r=Math.min(2,e.length);for(let i=0;i<r;++i)t[i]=e[i];return t},fromValues:s,negativeOnes:a,ones:o,unitX:l,unitY:u,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(t,["IA",0,c,"Un",0,h])},17799(e,t,r){r.d(t,{T9:()=>a,d_:()=>n,gT:()=>s});var i=r(86211);function n(e,t){return{type:(0,i.t$)(t),value:e,unit:t}}function s(e,t){return{type:(0,i.t$)(t),value:e,unit:t}}function o(e,t,r="arithmetic"){return{type:(0,i.t$)(t),value:e,unit:t,rotationType:r}}function a(e,t){return null==e?t:null==t||e.value>(0,i.oU)(t.value,t.unit,e.unit)?e:t}n(0,"meters"),s(0,"square-meters"),o(0,"radians"),o(0,"degrees"),o(0,"degrees","geographic")},36708(e,t,r){r.d(t,{C_:()=>d,on:()=>c,wB:()=>l,z7:()=>u});var i=r(37955),n=r(36563),s=r(97768),o=r(17676),a=r(14012);function l(e,t,r={}){return h(e,t,r,p)}function u(e,t,r={}){return h(e,t,r,f)}function h(e,t,r={},i){let n=null,o=r.once?(e,r)=>{i(e)&&((0,s.xt)(n),t(e,r))}:(e,r)=>{i(e)&&t(e,r)};if(n=(0,a.Cn)(e,o,r.sync,r.equals),r.initial){let t=e();o(t,t)}return n}function c(e,t,r,o={}){let a=null,u=null,h=null;function c(){a&&u&&(u.remove(),o.onListenerRemove?.(a),a=null,u=null)}function d(e){o.once&&o.once&&(0,s.xt)(h),r(e)}let p=l(e,(e,r)=>{c(),(0,i.wb)(e)&&(a=e,u=(0,i.on)(e,t,d),o.onListenerAdd?.(e))},{sync:o.sync,initial:!0});return h=(0,n.hA)(()=>{p.remove(),c()}),h}function d(e,t){return function(e,t,r){if((0,o.G4)(r))return Promise.reject((0,o.NK)());let i=e();if(t?.(i))return Promise.resolve(i);let a=null;function l(){a=(0,s.xt)(a)}return new Promise((i,s)=>{a=(0,n.vE)([(0,o.u7)(r,()=>{l(),s((0,o.NK)())}),h(e,e=>{l(),i(e)},{sync:!1,once:!0},t??p)])})}(e,f,t)}function p(e){return!0}function f(e){return!!e}r(80559),r.d(t,["OH",0,{sync:!0},"Vh",0,{initial:!0},"pc",0,{sync:!0,initial:!0}])},44794(e,t,r){r.d(t,{v:()=>a});var i=r(4718),n=r(62788),s=r(95488);class o{constructor(e,t){this._observable=new s.I,this._value=e,this._equalityFunction=t}get value(){return(0,n.gc)(this._observable),this._value}set value(e){this._equalityFunction(e,this._value)||(this._value=e,this._observable.notify())}mutate(e){e(this._value),this._observable.notify()}}function a(e,t=i.gh){return new o(e,t)}},88930(e,t,r){r.d(t,{S1:()=>a,VW:()=>l,lL:()=>u,rb:()=>h,t:()=>c});var i=r(97770),n=(r(98623),r(34747));const s=/^(?<hh>([01][0-9])|(2[0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?(\.(?<ms>\d+))?$/,o={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8,unknown:NaN};function a(e,t,r,s="system"){if("unknown"===r)return e;let o=new n.oh((0,i.wj)(s)),a=n.c9.fromJSDate(e,{zone:o}),l="decades"===r||"centuries"===r?"year":function(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}(r);return"decades"===r&&(t*=10),"centuries"===r&&(t*=100),a.plus({[l]:t}).toJSDate()}function l(e,t,r="milliseconds"){let i=e.getTime(),n=c(t,r,"milliseconds");return new Date(i+n)}function u(e,t,r="system"){let{unit:s}=t,o=Math.max(1,Math.trunc(t.value)),a=new n.oh((0,i.wj)(r)),l=n.c9.fromJSDate(e,{zone:a}),u=e=>e-e%o;switch(s){case"milliseconds":return l.startOf("second").plus({millisecond:u(l.millisecond)}).toJSDate();case"seconds":return l.startOf("minute").plus({second:u(l.second)}).toJSDate();case"minutes":return l.startOf("hour").plus({minute:u(l.minute)}).toJSDate();case"hours":return l.startOf("day").plus({hour:u(l.hour)}).toJSDate();case"days":return l.startOf("month").plus({day:u(l.day-1)}).toJSDate();case"weeks":{let e=l.startOf("year").startOf("week"),t=Math.floor(l.diff(e,"weeks").weeks);return e.plus({week:u(t)}).toJSDate()}case"months":return l.startOf("year").plus({month:u(l.month-1)}).toJSDate();case"years":case"decades":case"centuries":{let e=l.startOf("year"),t=("decades"===s?10:"centuries"===s?100:1)*o,r=e.year-e.year%t;return e.set({year:r}).toJSDate()}case"unknown":return e}}function h(e){let t=s.exec(e);if(!t)return null;let{hh:r,mm:i,ss:n,ms:a}=t.groups;return Number(r)*o.hours+Number(i)*o.minutes+Number(n||0)*o.seconds+Number(a||0)}function c(e,t,r){return 0===e?0:e*o[t]/o[r]}},87992(e,t,r){r.d(t,{JR:()=>M,ME:()=>x,MY:()=>A,NO:()=>w,Nh:()=>b,V2:()=>E,_s:()=>O,e6:()=>N,gh:()=>C,jm:()=>T,tr:()=>z,uX:()=>m});var i=r(32198),n=r(16930),s=r(19419),o=r(60408),a=r(21325),l=r(513),u=r(50954),h=r(79567),c=r(52006),d=r(49663),p=r(46068),f=r(92722);class m{constructor({type:e,spatialReference:t,vertexCount:r,vertexXY:i,vertexZ:n,vertexM:s,partCount:o,partOffsets:a,partFlags:l,segmentFlags:u,segmentIndices:h,segmentParams:c,segmentCountArc:d,segmentCountBezier:p}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=e,this.spatialReference=t,this.vertexCount=r,this.vertexXY=i,this.vertexZ=n,this.vertexM=s,this.partCount=o,this.partOffsets=a,this.partFlags=l,this.segmentFlags=u,this.segmentIndices=h,this.segmentParams=c,this.segmentCountArc=d,this.segmentCountBezier=p}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){let{segmentCount:e,segmentCountArc:t,segmentCountBezier:r}=this;return e&&e-t-r}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return this.segmentCountArc+this.segmentCountBezier>0}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function e(e){return e?64+e.byteLength:0}return e(this.vertexXY)+e(this.vertexZ)+e(this.vertexM)+e(this.partOffsets)+e(this.partFlags)+e(this.segmentFlags)+e(this.segmentIndices)+e(this.segmentParams)}clone(){let{type:e,vertexCount:t,partCount:r,hasZ:i,hasM:n,segmentCountArc:s,segmentCountBezier:o}=this,a=E(e,t,r,i,n,this.hasCurves(),s,o);a.spatialReference=this.spatialReference;let{vertexXY:l,vertexZ:u,vertexM:h}=this;if(a.vertexXY.set(l.subarray(0,2*t),0),a.vertexZ?.set(u.subarray(0,t),0),a.vertexM?.set(h.subarray(0,t),0),this.isMultipart()){let{partOffsets:e,partFlags:t}=this;a.partFlags.set(t.subarray(0,r+1)),a.partOffsets.set(e.subarray(0,r+1))}if(this.hasCurves()){let{segmentFlags:e,segmentIndices:r,segmentParams:i,segmentParamCount:n}=this;a.segmentFlags.set(e.subarray(0,t),0),a.segmentIndices.set(r.subarray(0,t),0),a.segmentParams.set(i.subarray(0,n),0)}return a}equals(e){return this.equalsWithinTolerance(e,0)}equalsWithinTolerance(e,t){if(null==e)return!1;if(this===e)return!0;if(!(0,a.aI)(this.spatialReference,e.spatialReference)||this.vertexCount!==e.vertexCount||this.partCount!==e.partCount||this.hasZ!==e.hasZ||this.hasM!==e.hasM||this.hasCurves()!==e.hasCurves()||this.segmentCountArc!==e.segmentCountArc||this.segmentCountBezier!==e.segmentCountBezier)return!1;let r=0===t?(e,t)=>e!==t||isNaN(e)!==isNaN(t):(e,r)=>Math.abs(e-r)>t||isNaN(e)!==isNaN(r);for(let t=0;t<this.vertexCount;++t)if(r(this.vertexXY[2*t],e.vertexXY[2*t])||r(this.vertexXY[2*t+1],e.vertexXY[2*t+1]))return!1;if(this.hasZ)for(let t=0;t<this.vertexCount;++t)if(r(this.vertexZ[t],e.vertexZ[t]))return!1;if(this.hasM)for(let t=0;t<this.vertexCount;++t)if(r(this.vertexM[t],e.vertexM[t]))return!1;for(let t=0;t<this.partCount;++t)if(this.partFlags[t]!==e.partFlags[t]||this.partOffsets[t]!==e.partOffsets[t])return!1;if(this.hasCurves()){for(let t=0;t<this.vertexCount;++t)if(this.segmentFlags[t]!==e.segmentFlags[t]||this.segmentIndices[t]!==e.segmentIndices[t])return!1;for(let t=0;t<this.segmentParamCount;++t)if(r(this.segmentParams[t],e.segmentParams[t]))return!1}return!0}get parts(){return this.isMultipart()?new g(this):[][Symbol.iterator]()}}class g{constructor(e){this.geometry=e,this.value=new y(e)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class y{constructor(e){this.geometry=e,this.index=-1,this._readVertex=Z(e),this._segments=new v(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){let e=this.geometry.partOffsets;return e[this.index+1]-e[this.index]}}class v{constructor(e){this._part=e,this._partStart=0,this._partEnd=0,this.value=new _(e.geometry)}get _partIsClosed(){return!!(1&this._part.geometry.partFlags?.[this._part.index])}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;let e=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=e&&this._partIsClosed?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){let{index:e}=this._part,t=this._part.geometry.partOffsets;this._partStart=t[e],this._partEnd=t[e+1]-(this._partIsClosed?1:2),this.value.indexOfStartVertex=this._partStart-1}}class _{constructor(e){this.geometry=e,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=Z(e)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){let e=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===e)return this.end;let t=this.geometry.segmentParams,r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===e){let e=t[r++],i=t[r++],n=t[r++],s=t[r++];return{b:[this.end,[e,i],[n,s]]}}let i=t[r++],n=t[r++],s=t[r++],o=t[r++],a=t[r++],l=t[r++];r++,r++;let u=t[r++],h=t[r++];if(!(4&i)&&1===s)return{c:[this.end,[u,h]]};let c=2&i?0:1,d=1&i?0:1;return{a:[this.end,[a,l],c,d,o,n,s]}}}function w(e,t){let r={stack:[],error:void 0,hasError:!1};try{return t??=(0,s.Ie)(),(0,i.mS)(r,new R(e,["vertexZ","vertexM","spatialReference"]),!1),(0,s.bx)(t,function(e){let t,{vertexCount:r,vertexXY:n,vertexZ:o,vertexM:a}=e,l=S(e);if(e.hasCurves()){let r={stack:[],error:void 0,hasError:!1};try{(0,i.mS)(r,new R(e,["vertexZ","vertexM"]),!1);let n=(0,s.Ie)();for(let t of e.parts){let e=t.startVertex;for(let{curve:r}of t.segments)(0,h.e)(n,e,r),e=(0,c.yP)(r)}let[o,a,u,d]=n;t={xmin:o,ymin:a,xmax:u,ymax:d,spatialReference:l}}catch(e){r.error=e,r.hasError=!0}finally{(0,i.hk)(r)}}else{let e,i,s,o;e=i=1/0,s=o=-1/0;for(let t=0;t<r;++t){let r=n[2*t],a=n[2*t+1];e=Math.min(e,r),s=Math.max(s,r),i=Math.min(i,a),o=Math.max(o,a)}t={xmin:e,ymin:i,xmax:s,ymax:o,spatialReference:l}}if(o){let e=1/0,r=-1/0;for(let t of o)e=Math.min(e,t),r=Math.max(r,t);t.zmin=e,t.zmax=r}if(a){let e=1/0,r=-1/0;for(let t of a)e=Math.min(e,t),r=Math.max(r,t);t.mmin=e,t.mmax=r}return t}(e)),t}catch(e){r.error=e,r.hasError=!0}finally{(0,i.hk)(r)}}function x(e){let t,r,i;if((0,o.fT)(e)){i="point";let{x:n,y:s,z:o,m:a}=e,l=[n,s];null!=o&&l.push(o),null!=a&&l.push(a),r=[[l]],t=1}else(0,o.U9)(e)?(i="multipoint",r=[e.points],t=e.points.length):(0,o.Rg)(e)?(i="polyline",r=e.curvePaths??e.paths,t=r.reduce((e,t)=>e+t.length,0)):(i="polygon",r=e.curveRings??e.rings,t=r.reduce((e,t)=>(0===t.length||(e+=t.length,P(t[0],(0,c.yP)(t.at(-1)))&&--e),e),0));let n=E(i,t,i.includes("point")?0:r.length,(0,o.Pv)(e),(0,o.W0)(e),(0,c.Ed)(e)),{hasZ:s,hasM:a,vertexXY:l,vertexZ:u,vertexM:h}=n;function d(e){l[2*f]=e[0],l[2*f+1]=e[1],s&&(u[f]=e[2]),a&&(h[f]=e[p]),++f}n.spatialReference=e.spatialReference??void 0;let p=n.hasZ?3:2,f=0;if(!n.isMultipart()){if(!s&&!a){for(let[e,t]of r[0])l[2*f]=e,l[2*f+1]=t,++f;return n}for(let e of r[0])d(e);return n}let m="polygon"===i,{partOffsets:g}=n,y=0;if(!(0,c.Ed)(e)){for(let e of r){if(g[y++]=f,0===e.length)continue;let t=e.length;if(m&&P(e[0],e.at(-1))&&--t,s||a)for(let r=0;r<t;++r)d(e[r]);else for(let r=0;r<t;++r){let[t,i]=e[r];l[2*f]=t,l[2*f+1]=i,++f}}return g[y]=f,n}function v(e){let t=_+e;if(t<=(n.segmentParams?.length??0))return;let r=t*F;r=20*Math.ceil(r/20);let i=n.segmentParams;n.segmentParams=new Float64Array(r),null!=i&&n.segmentParams.set(i)}let _=0;for(let e of r){if(n.partOffsets[y++]=f,0===e.length)continue;let t=e[0],r=t;for(let t=1;t<e.length;++t){let i=e[t];d(r);let s=f-1;(0,c.wY)(i)?(v(10),++n.segmentCountArc,_=O(r,i,n,s,_),r=i.a[0]):(0,c.DA)(i)?(v(10),++n.segmentCountArc,_=I(r,i,n,s,_),r=i.a[0]):(0,c.aO)(i)?(v(10),++n.segmentCountArc,_=N(r,i,n,s,_),r=i.c[0]):(0,c.n1)(i)?(v(4),++n.segmentCountBezier,_=z(0,i,n,s,_),r=i.b[0]):r=i}m&&P(t,r)||d(r)}return n.partOffsets[y]=f,n}function C(e){let t=Z(e),{vertexCount:r,partCount:i,hasZ:n,hasM:s}=e,o=S(e),a=0;if(!e.isMultipart()){if("point"===e.type){let[t,r]=e.vertexXY;return{x:t,y:r,z:e.vertexZ?.[0],m:e.vertexM?.[0],spatialReference:o}}let i=[];for(;a<r;)i.push(t(a++));return{points:i,spatialReference:o,hasZ:n,hasM:s}}if(!e.hasCurves()){let r=[];for(let n=0;n<i;++n){let i=!!(1&e.partFlags[n]),s=e.partOffsets[n+1],o=[];for(;a<s;)o.push(t(a++));i&&o.length>0&&o.push([...o[0]]),r.push(o)}return"polygon"===e.type?{rings:r,hasZ:n,hasM:s,spatialReference:o}:{paths:r,hasZ:n,hasM:s,spatialReference:o}}let l=[];for(let{segments:t,startVertex:r}of e.parts){let e=[r];for(let{curve:r}of t)e.push(r);l.push(e)}return"polygon"===e.type?{rings:[],curveRings:l,hasZ:n,hasM:s,spatialReference:o}:{paths:[],curvePaths:l,hasZ:n,hasM:s,spatialReference:o}}function b(e,{lengths:t,coords:r,hasZ:i,hasM:n},s){let o=e.includes("point")?0:t.length,a="polygon"===e,l="point"===e?1:t.reduce((e,t)=>e+t,0)-(a?o:0);i??=!1,n??=!1;let u=E(e,l,o,i,n,!1,0,0);if(u.spatialReference=s??void 0,!u.isMultipart()){for(let e=0,t=0;e<l;++e)u.vertexXY[2*e]=r[t++],u.vertexXY[2*e+1]=r[t++],i&&(u.vertexZ[e]=r[t++]),n&&(u.vertexM[e]=r[t++]);return u}let h=2+Number(i)+Number(n),c=0,d=0;u.partOffsets[0]=0;for(let e of t){let t=u.partOffsets[d],s=t+e-Number(a);u.partOffsets[++d]=s;for(let e=t;e<s;++e)u.vertexXY[2*e]=r[c++],u.vertexXY[2*e+1]=r[c++],i&&(u.vertexZ[e]=r[c++]),n&&(u.vertexM[e]=r[c++]);a&&(c+=h)}return u}function M({type:e,vertexCount:t,vertexXY:r,vertexZ:i,vertexM:n,partCount:s,partOffsets:o,partFlags:a,hasZ:l,hasM:u}){let h=new f.A([],[],l,u);s=Math.max(s,1);let c=0;for(let e=0;e<s;++e){let s=o?.[e+1]??t,d=h.coords.length;for(let e=c;e<s;++e)h.coords.push(r[2*e],r[2*e+1]),l&&h.coords.push(i[e]),u&&h.coords.push(n[e]);if(a&&1&a[e]){let e=c;h.coords.push(r[2*e],r[2*e+1]),l&&h.coords.push(i[e]),u&&h.coords.push(n[e])}h.lengths.push((h.coords.length-d)/h.stride),c=s}return"point"===e&&(h.lengths.length=0),h}function T(...e){let t=new Set;for(let r of e){if(!r)continue;let e=[r.vertexXY,r.vertexZ,r.vertexM,r.partOffsets,r.partFlags,r.segmentFlags,r.segmentIndices,r.segmentParams];for(let r of e){let e=r?.buffer;e&&t.add(e)}}return Array.from(t)}function A(e,t){return"getSpatialReference"in e&&(t=function(e){if(null==e)return;let t=e.getText()||void 0,r=e.isCustomWkid()?0:e.getOldID();if(r<=0)return{wkt:t};let i=e.getLatestID();(i<=0||i===r)&&(i=void 0);let n=e.getVCS();if(null==n)return{wkid:r,latestWkid:i,wkt:t};let s=n.isCustomWkid()?0:n.getOldID();if(s<=0)return{wkt:t};let o=e.getLatestVerticalID();return(o<=0||o===s)&&(o=void 0),{wkid:r,wkt:t,latestWkid:i,vcsWkid:s,latestVcsWkid:o}}(e.getSpatialReference()),e=e.getGeometry()),new m({...e.toFlatGeometry(),spatialReference:t})}class R{constructor(e,t){this.target=e,this.keys=t,this.oldValues=t.map(t=>e[t]);for(let r of t)e[r]=void 0}[Symbol.dispose](){this.keys.map((e,t)=>{this.target[e]=this.oldValues[t]})}}function S({spatialReference:e}){return e instanceof n.A?e.toJSON():e}function Z({vertexXY:e,vertexZ:t,vertexM:r}){return t?r?i=>[e[2*i],e[2*i+1],t[i],r[i]]:r=>[e[2*r],e[2*r+1],t[r]]:r?t=>[e[2*t],e[2*t+1],r[t]]:t=>[e[2*t],e[2*t+1]]}function P(e,t){return e.every((e,r)=>e===t[r])}function E(e,t,r,i,n,s,o,a){o??=0,a??=0;let l=new m({type:e,vertexCount:t,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:r,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:o,segmentCountBezier:a}),u=2*Float64Array.BYTES_PER_ELEMENT*t;i&&(u+=Float64Array.BYTES_PER_ELEMENT*t),n&&(u+=Float64Array.BYTES_PER_ELEMENT*t),l.isMultipart()&&(u+=(r+1)*Int32Array.BYTES_PER_ELEMENT,u+=(r+1)*Int8Array.BYTES_PER_ELEMENT),s&&(u+=t*Int8Array.BYTES_PER_ELEMENT,u+=t*Int32Array.BYTES_PER_ELEMENT,u+=l.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);let h=new ArrayBuffer(u),c=0;return l.vertexXY=new Float64Array(h,c,2*t),c+=l.vertexXY.byteLength,i&&(l.vertexZ=new Float64Array(h,c,t),c+=l.vertexZ.byteLength),n&&(l.vertexM=new Float64Array(h,c,t),c+=l.vertexM.byteLength),s&&(l.segmentParams=new Float64Array(h,c,l.segmentParamCount),c+=l.segmentParams.byteLength,l.segmentIndices=new Int32Array(h,c,t),l.segmentIndices.fill(V),c+=l.segmentIndices.byteLength),l.isMultipart()&&(l.partOffsets=new Int32Array(h,c,r+1),c+=l.partOffsets.byteLength,l.partFlags=new Int8Array(h,c,r+1),c+=l.partFlags.byteLength,"polygon"===l.type&&l.partFlags.subarray(0,r).fill(1)),s&&(l.segmentFlags=new Int8Array(h,c,t),l.segmentFlags.fill(1),c+=l.segmentFlags.byteLength),l}function O(e,t,{segmentFlags:r,segmentIndices:i,segmentParams:n},s,o){r[s]=4,i[s]=o;let[a,[l,u],h,c,d,f,m]=t.a,g=4;c||(g|=1),h||(g|=2);let y=(0,p.SW)(e,t),[v,_]=(0,p.Uk)(y,.5);return n[o++]=g,n[o++]=f,n[o++]=m,n[o++]=d,n[o++]=l,n[o++]=u,n[o++]=y.u2-y.u1,n[o++]=y.u1,n[o++]=v,n[o++]=_,o}function I(e,t,{segmentFlags:r,segmentIndices:i,segmentParams:n},s,o){r[s]=4,i[s]=o;let a=(0,d.io)(e,t);return D(a,4,...(0,l.mq)(a,.5),n,o)}function N(e,t,{segmentFlags:r,segmentIndices:i,segmentParams:n},s,o){return r[s]=4,i[s]=o,D((0,u.pM)(e,t),0,...t.c[1],n,o)}function D(e,t,r,i,n,s){let{cx:o,cy:a,thetaStart:l,thetaEnd:u,radius:h}=e;return l>u||(t|=1),Math.abs(u-l)<=Math.PI||(t|=2),n[s++]=t,n[s++]=h,n[s++]=1,n[s++]=0,n[s++]=o,n[s++]=a,n[s++]=u-l,n[s++]=l,n[s++]=r,n[s++]=i,s}function z(e,{b:[t,[r,i],[n,s]]},{segmentFlags:o,segmentIndices:a,segmentParams:l},u,h){return o[u]=2,a[u]=h,l[h++]=r,l[h++]=i,l[h++]=n,l[h++]=s,h}const F=1.61803,V=-1},48526(e,t,r){r.d(t,{A:()=>g});var i,n=r(32198),s=r(4576),o=r(4718),a=r(91429),l=r(5443),u=r(91075),h=r(86738),c=r(16930),d=r(90634),p=r(47610),f=r(56993),m=r(43937);let g=i=class extends u.A{constructor(e){super(function(e){if(!e)return;let{points:t,hasM:r,hasZ:i,spatialReference:n}=e;switch(t??=[],t?.at(0)?.length){case 4:i??=!0,r??=!0;break;case 3:i??=!0!==r,r??=!i;break;default:i??=!1,r??=!1}return n??=c.A.WGS84,{...e,hasM:r,hasZ:i,points:t,spatialReference:n}}(e)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){let e=(0,d.ge)(this);return e?new l.A({...e,spatialReference:this.spatialReference}):null}writePoints(e,t){t.points=(0,o.o8)(this.points)}clone(){let{points:e,spatialReference:t,hasM:r,hasZ:n}=this;return new i({points:(0,o.o8)(e),spatialReference:t.clone(),hasM:r,hasZ:n})}equals(e){if(this===e)return!0;if(null==e)return!1;let t=this.spatialReference,r=e.spatialReference;return!(null!=t!=(null!=r)||null!=t&&null!=r&&!t.equals(r))&&(0,s.aI)(this.points,e.points,p.v6)}addPoint(e){return(0,f.h)(this,e),Array.isArray(e)?this.points.push(e):this.points.push(e.toArray()),this.notifyChange("points"),this}getPoint(e){if(!this._validateInputs(e))return null;let t=this.points[e],r={x:t[0],y:t[1],spatialReference:this.spatialReference},i=2;return this.hasZ&&(r.z=t[2],i=3),this.hasM&&(r.m=t[i]),new h.A(r)}removePoint(e){if(!this._validateInputs(e))return null;let t=new h.A(this.points.splice(e,1)[0],this.spatialReference);return this.notifyChange("points"),t}setPoint(e,t){return this._validateInputs(e)?((0,f.h)(this,t),Array.isArray(t)||(t=t.toArray()),this.points[e]=t,this.notifyChange("points"),this):this}toJSON(e){return this.write({},e)}_validateInputs(e){return null!=e&&e>=0&&e<this.points.length}};(0,n.Cg)([(0,a.MZ)({readOnly:!0})],g.prototype,"cache",null),(0,n.Cg)([(0,a.MZ)({readOnly:!0})],g.prototype,"extent",null),(0,n.Cg)([(0,a.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],g.prototype,"points",void 0),(0,n.Cg)([(0,m.K)("points")],g.prototype,"writePoints",null),g=i=(0,n.Cg)([(0,a.$K)("esri.geometry.Multipoint")],g),g.prototype.toJSON.isDefaultToJSON=!0},82799(e,t,r){r.d(t,{A:()=>f});var i,n=r(32198),s=r(4718),o=r(91429),a=r(5443),l=r(91075),u=r(86738),h=r(16930),c=r(90634),d=r(56993),p=r(43937);let f=i=class extends l.A{constructor(e){super(function(e){if(!e)return;let{paths:t,hasM:r,hasZ:i,spatialReference:n}=e;switch(t??=[],function(e){return"number"==typeof e[0]?.[0]}(t)&&(t=[t]),t[0]?.[0]?.length){case 4:i??=!0,r??=!0;break;case 3:i??=!0!==r,r??=!i;break;default:i??=!1,r??=!1}return n??=h.A.WGS84,{...e,hasM:r,hasZ:i,paths:t,spatialReference:n}}(e)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(e,t){t.curvePaths=(0,s.o8)(e)}get extent(){let e=(0,c.Z3)(this),{spatialReference:t}=this;return e?new a.A({...e,spatialReference:t}):null}writePaths(e,t){t.paths=(0,s.o8)(this.paths)}addPath(e){if(!e)return;let t=this.paths,r=t.length;if(function(e){return!Array.isArray(e[0])}(e)){let i=[];for(let t=0,r=e.length;t<r;t++)i[t]=e[t].toArray();t[r]=i}else t[r]=e.slice();return this.notifyChange("paths"),this}clone(){let e=new i;return e.spatialReference=this.spatialReference,e.paths=(0,s.o8)(this.paths),e.curvePaths=(0,s.o8)(this.curvePaths),e.hasZ=this.hasZ,e.hasM=this.hasM,e}getPoint(e,t){if(!this._validateInputs(e,t))return null;let r=this.paths[e][t],i=this.hasZ,n=this.hasM;return i&&!n?new u.A(r[0],r[1],r[2],void 0,this.spatialReference):n&&!i?new u.A(r[0],r[1],void 0,r[2],this.spatialReference):i&&n?new u.A(r[0],r[1],r[2],r[3],this.spatialReference):new u.A(r[0],r[1],this.spatialReference)}insertPoint(e,t,r){return this._validateInputs(e,t,!0)?((0,d.h)(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[e].splice(t,0,r),this.notifyChange("paths"),this):this}removePath(e){if(!this._validateInputs(e,null))return null;let t=this.paths.splice(e,1)[0],r=this.spatialReference,i=t.map(e=>new u.A(e,r));return this.notifyChange("paths"),i}removePoint(e,t){if(!this._validateInputs(e,t))return null;let r=new u.A(this.paths[e].splice(t,1)[0],this.spatialReference);return this.notifyChange("paths"),r}setPoint(e,t,r){return this._validateInputs(e,t)?((0,d.h)(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[e][t]=r,this.notifyChange("paths"),this):this}_validateInputs(e,t,r=!1){if(null==e||e<0||e>=this.paths.length)return!1;if(null!=t){let i=this.paths[e];if(r&&(t<0||t>i.length)||!r&&(t<0||t>=i.length))return!1}return!0}toJSON(e){return this.write({},e)}};(0,n.Cg)([(0,o.MZ)({readOnly:!0})],f.prototype,"cache",null),(0,n.Cg)([(0,o.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],f.prototype,"curvePaths",void 0),(0,n.Cg)([(0,p.K)("curvePaths")],f.prototype,"writeCurvePaths",null),(0,n.Cg)([(0,o.MZ)({readOnly:!0})],f.prototype,"extent",null),(0,n.Cg)([(0,o.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],f.prototype,"paths",void 0),(0,n.Cg)([(0,p.K)("paths")],f.prototype,"writePaths",null),f=i=(0,n.Cg)([(0,o.$K)("esri.geometry.Polyline")],f),f.prototype.toJSON.isDefaultToJSON=!0},89506(e,t,r){r.d(t,{WP:()=>u}),r(86211);var i=r(86742);let n,s,o,a,l;async function u(){if(!n||!(0,i.s)()){let[e]=await Promise.all([r.e(506).then(()=>r(78125)),(0,i.load)()]);n=e.fromGeometry,s=e.fromSpatialReference,o=e.getSpatialReference,a=(0,i.f)(),l=a}}r(85036)},40427(e,t,r){r.d(t,{nG:()=>u}),r(86211);var i=r(35223);let n,s,o,a,l;async function u(){if(!n||!(0,i.s)()){let[e]=await Promise.all([r.e(506).then(()=>r(78125)),(0,i.load)()]);n=e.fromGeometry,s=e.fromSpatialReference,o=e.getSpatialReference,a=(0,i.f)(),l=a}}r(85036)},86742(e,t,r){r.d(t,{execute:()=>a,f:()=>l,load:()=>o,s:()=>s});var i=r(83290);let n;function s(){return!!n&&(0,i.i)()}async function o(){if(!s()){let[e,t]=await Promise.all([Promise.all([r.e(2024),r.e(6558)]).then(()=>r(6558)),r.e(3375).then(()=>r(15756)).then(({injectPe:e})=>e),(0,i.l)()]);n=new e.OperatorGeodeticArea,t(i.p)}}function a(e,t,r){return n.execute(e,t,r,null)}function l(){return n.supportsCurves()}},77085(e,t,r){r.d(t,{execute:()=>o,load:()=>s}),r(76061);var i=r(83290);let n;async function s(){if(!n||!(0,i.i)()){let[e,t]=await Promise.all([Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(1088)]).then(()=>r(31088)),Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(5756)]).then(()=>r(15756)).then(({injectPe:e})=>e),(0,i.l)()]);n=new e.OperatorGeodeticDensifyByLength,t(i.p)}}function o(e,t,r,i){return n.execute(e,t,r,i,null)}},35223(e,t,r){r.d(t,{execute:()=>a,f:()=>l,load:()=>o,s:()=>s});var i=r(83290);let n;function s(){return!!n&&(0,i.i)()}async function o(){if(!s()){let[e,t]=await Promise.all([r.e(8879).then(()=>r(28879)),r.e(3375).then(()=>r(15756)).then(({injectPe:e})=>e),(0,i.l)()]);n=new e.OperatorGeodeticLength,t(i.p)}}function a(e,t,r){return n.execute(e,t,r,null)}function l(){return n.supportsCurves()}},4144(e,t,r){r.r(t),r.d(t,{clipToSpatialReference:()=>l,execute:()=>u,executeMany:()=>h,foldInto360Range:()=>c,foldInto360RangeGeodetic:()=>d,isLoaded:()=>o,load:()=>a,normalizeGeometry:()=>p,supportsCurves:()=>f,transform:()=>m});var i=r(76061),n=r(83290);let s;function o(){return!!s&&(0,n.i)()}async function a(){if(!o()){let[e,t]=await Promise.all([Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(9192)]).then(()=>r(9192)),Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(5756)]).then(()=>r(15756)).then(({injectPe:e})=>e),(0,n.l)()]);s=new e.OperatorProject,t(n.p)}}function l(e,t,r){return s.clipToSpatialReference(e,t,null,r)}function u(e,t){return s.execute(e,t,null)}function h(e,t){let r=s.executeMany(new i.S(e),t,null);return Array.from(r)}function c(e,t){return s.foldInto360Range(e,t)}function d(e,t,r){return s.foldInto360RangeGeodetic(e,t,r)}function p(e,t,r){return s.normalizeGeometry(e,t,r)}function f(){return s.supportsCurves()}function m(e,t,r,i,n){return s.transform(e,t,r,i,n)}},81150(e,t,r){r.d(t,{execute:()=>o,f:()=>u,isSimpleAsFeature:()=>l,z:()=>a});var i=r(76061),n=(r(55537),r(88885),r(39117));r(95213);const s=new n.J;function o(e,t,r){return s.execute(e,t,r,null)}function a(e,t,r){let n=s.executeMany(new i.S(e),t,r,null);return Array.from(n)}function l(e,t,r){return s.isSimpleAsFeature(e,t,r,null,null)}function u(){return s.supportsCurves()}},965(e,t,r){r.d(t,{lengthExecute:()=>s});var i=r(86211),n=r(78125);function s(e,t={}){let{unit:r}=t,s=(0,n.fromGeometry)(e).calculateLength2D();if(s&&r){let t=(0,n.getSpatialReference)(e);s=(0,i.PQ)(s,t,r)}return s}r(85036)},83276(e,t,r){r.r(t),r.d(t,{execute:()=>v,executeMany:()=>w,isLoaded:()=>f,load:()=>g,projectExecute:()=>y,projectExecuteMany:()=>_,projectIsLoaded:()=>p,projectLoad:()=>m,projectSupportsCurves:()=>c,supportsCurves:()=>d});var i=r(4144),n=r(85036),s=r(17499);let o,a,l,u,h,c,d;function p(){return!!o&&(0,i.isLoaded)()}function f(){return(0,n.Q)("projectOperator","isLoaded","projectIsLoaded"),p()}async function m(){if(!p()){let[e,t]=await Promise.all([Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(1666)]).then(()=>r(78125)),Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(6129)]).then(()=>r(86129)),(0,i.load)()]);o=e.fromGeometry,a=e.fromSpatialReference,l=e.getSpatialReference,u=e.toGeometry,h=t.createProjectionTransformation,c=(0,i.supportsCurves)(),d=c}}function g(){return(0,n.Q)("projectOperator","load","projectLoad"),m()}function y(e,t,r){let n=l(e),c=h(a(n),a(t),r),d=u((0,i.execute)(o(e),c),t);return!r?.zConversionDisabled&&d?.hasZ&&(0,s.g)([d],n,t),d}function v(e,t,r){return(0,n.Q)("projectOperator","execute","projectExecute"),y(e,t,r)}function _(e,t,r){let n=e.map(o),c=l(e),d=h(a(c),a(t),r),p=(0,i.executeMany)(n,d).map(e=>u(e,t));return!r?.zConversionDisabled&&p&&(0,s.g)(p,c,t),p}function w(e,t,r){return(0,n.Q)("projectOperator","executeMany","projectExecuteMany"),_(e,t,r)}},78125(e,t,r){r.r(t),r.d(t,{fromExtent:()=>g,fromGeometry:()=>m,fromMultipoint:()=>y,fromPoint:()=>v,fromPolygon:()=>_,fromPolyline:()=>w,fromPolylineUsingImportOperator:()=>x,fromSpatialReference:()=>C,getSpatialReference:()=>f,toExtent:()=>M,toGeometry:()=>b,toMultipoint:()=>T,toPoint:()=>A,toPolygon:()=>R,toPolyline:()=>S});var i=r(83661),n=r(55537),s=r(95213),o=r(88885),a=r(5443),l=r(48526),u=r(86738),h=r(39829),c=r(82799),d=(r(90293),r(83299));const p="_gxVersion";function f(e){return Array.isArray(e)?e[0].spatialReference:e.spatialReference}function m(e){switch(e.type){case"point":return v(e);case"multipoint":return y(e);case"polyline":return w(e);case"polygon":return _(e);case"extent":return g(e);default:throw Error(`Unsupported geometry type: ${e.type}`)}}function g(e){if(!e.getCacheValue(p)){let t=new s.E;t.setCoords(e.xmin,e.ymin,e.xmax,e.ymax),e.hasM&&t.setInterval(2,0,e.mmin,e.mmax),e.hasZ&&t.setInterval(1,0,e.zmin,e.zmax),e.setCacheValue(p,t)}return e.getCacheValue(p)}function y(e){if(!e.getCacheValue(p)){let t=new o.M,r=new s.P,i=e.points,n=e.hasM,a=e.hasZ,l=a?3:2;for(let e=0,s=i.length;e<s;e++){let s=i[e];r.setXYCoords(s[0],s[1]),a&&r.setZ(s[2]??0),n&&r.setM(s[l]??NaN),t.add(r)}e.setCacheValue(p,t)}return e.getCacheValue(p)}function v(e){if(!e.getCacheValue(p)){let t=new s.P;t.setXYCoords(e.x,e.y),e.hasM&&t.setM(e.m),e.hasZ&&t.setZ(e.z),e.setCacheValue(p,t)}return e.getCacheValue(p)}function _(e){if(!e.getCacheValue(p)){let{curveRings:t,hasM:r,hasZ:i,rings:n}=e,s=(0,d.fromGeometryToGXGeometry)({curveRings:t,hasM:r,hasZ:i,rings:n});e.setCacheValue(p,s)}return e.getCacheValue(p)}function w(e){if(!e.getCacheValue(p)){let{curvePaths:t,hasM:r,hasZ:i,paths:n}=e,s=(0,d.fromGeometryToGXGeometry)({curvePaths:t,hasM:r,hasZ:i,paths:n});e.setCacheValue(p,s)}return e.getCacheValue(p)}function x(e){if(!e.getCacheValue(p)){let{curvePaths:t,hasM:r,hasZ:i,paths:n}=e,s=(0,d.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:t,hasM:r,hasZ:i,paths:n});e.setCacheValue(p,s)}return e.getCacheValue(p)}function C(e){return e.cache?(e.cache[p]??=(0,d.fromSpatialReference)(e),e.cache[p]):(0,d.fromSpatialReference)(e)}function b(e,t){if(e)switch(e.getGeometryType()){case n.G.enumPoint:return A(e,t);case n.G.enumEnvelope:return M(e,t);case n.G.enumMultiPoint:return T(e,t);case n.G.enumPolyline:return S(e,t);case n.G.enumPolygon:return R(e,t)}return null}function M(e,t){if(e.isEmpty())return null;let r=new a.A({xmin:e.getXMin(),ymin:e.getYMin(),xmax:e.getXMax(),ymax:e.getYMax(),spatialReference:t}),i=e.getDescription();if(i.hasM()){let t=e.queryInterval(2,0);r.mmin=t.vmin,r.mmax=t.vmax}if(i.hasZ()){let t=e.queryInterval(1,0);r.zmin=t.vmin,r.zmax=t.vmax}return r.setCacheValue(p,e),r}function T(e,t){if(e.isEmpty())return null;let r=e.getDescription(),i=r.hasM(),n=r.hasZ(),o=[],a=new s.P;for(let t=0,r=e.getPointCount();t<r;t++){e.getPointByVal(t,a);let r=[a.getX(),a.getY()];n&&r.push(a.getZ()),i&&r.push(a.getM()),o.push(r)}let u=new l.A({hasM:i,hasZ:n,points:o,spatialReference:t});return u.setCacheValue(p,e),u}function A(e,t){if(e instanceof i.P)return new u.A({x:e.x,y:e.y,spatialReference:t});if(e.isEmpty())return null;let r=new u.A({x:e.getX(),y:e.getY(),spatialReference:t}),n=e.getDescription();return n.hasM()&&(r.m=e.getM()),n.hasZ()&&(r.z=e.getZ()),r.setCacheValue(p,e),r}function R(e,t){if(e.isEmpty())return null;let r=h.A.fromJSON({...(0,d.toGeometry)(e,null),spatialReference:t});return r.setCacheValue(p,e),r}function S(e,t){if(e.isEmpty())return null;let r=c.A.fromJSON({...(0,d.toGeometry)(e,null),spatialReference:t});return r.setCacheValue(p,e),r}},85036(e,t,r){r.d(t,{Q:()=>s});var i=r(51447),n=r(53966);function s(e,t,r){(0,i.io)(n.A.getLogger(`esri.geometry.operators.${e}`),`${t} is deprecated. Refactor using @arcgis/codemod or manually replace usages with ${r} instead.`,{replacement:r,warnOnce:!0})}},17499(e,t,r){r.d(t,{g:()=>s});var i=r(60408),n=r(62815);function s(e,t,r){let s;for(let o of e)if(o&&(0,i.Pv)(o)&&!("vertexAttributes"in o)){if(!s){let e="type"in o?o.type:(0,i.$B)(o);if(s=(0,n.N)(e,t,r),!s)return}s(o)}}},72727(e,t,r){function i(e,t,r){if(t<=0)return 0;let i=e-r;return i<0?0:Math.floor(i/t)+1}r.d(t,{k:()=>i}),r(53966)},60408(e,t,r){function i(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function n(e){return void 0!==e.points}function s(e){return void 0!==e.x&&void 0!==e.y}function o(e){return void 0!==e.paths||void 0!==e.curvePaths}function a(e){return void 0!==e.rings||void 0!==e.curveRings}function l(e){return"object"==typeof e&&"vertexAttributes"in e}function u(e){return e?s(e)?"esriGeometryPoint":o(e)?"esriGeometryPolyline":a(e)?"esriGeometryPolygon":i(e)?"esriGeometryEnvelope":n(e)?"esriGeometryMultipoint":null:null}function h(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function c(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}r.d(t,{$B:()=>u,Bi:()=>a,Pv:()=>h,Rg:()=>o,U9:()=>n,W0:()=>c,ZC:()=>i,fT:()=>s,uW:()=>l})},65864(e,t,r){r.d(t,{rS:()=>h,xD:()=>d});var i=r(5443),n=r(91075),s=r(48526),o=r(86738),a=r(39829),l=r(82799),u=r(60408);function h(e){return null==e?null:e instanceof n.A?e:(0,u.fT)(e)?o.A.fromJSON(e):(0,u.Rg)(e)?l.A.fromJSON(e):(0,u.Bi)(e)?a.A.fromJSON(e):(0,u.U9)(e)?s.A.fromJSON(e):(0,u.ZC)(e)?i.A.fromJSON(e):null}const c={esriGeometryPoint:o.A,esriGeometryPolyline:l.A,esriGeometryPolygon:a.A,esriGeometryEnvelope:i.A,esriGeometryMultipoint:s.A,esriGeometryMultiPatch:a.A};function d(e){return e&&c[e]||null}},27921(e,t,r){r.d(t,{$Q:()=>S,BX:()=>R,C:()=>u,Cr:()=>p,H:()=>P,LV:()=>l,O_:()=>d,Qj:()=>h,T7:()=>M,Ui:()=>b,_I:()=>E,fA:()=>c,gv:()=>T,lU:()=>f,mN:()=>O,mP:()=>x,mR:()=>C,vE:()=>D,vt:()=>a,wE:()=>I});var i=r(34727),n=r(35522),s=r(51850),o=(r(78955),r(44280),r(32114));function a(e=z){return[e[0],e[1],e[2],e[3]]}function l(e=z[0],t=z[1],r=z[2],i=z[3]){return c(e,t,r,i,o.Km.get())}function u(e,t){return c(t[0],t[1],t[2],t[3],e)}function h(e){return e}function c(e,t,r,i,n=a()){return n[0]=e,n[1]=t,n[2]=r,n[3]=i,n}function d(e,t,r){let i=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],n=Math.abs(i-1)>1e-5&&i>1e-12?1/Math.sqrt(i):1;return r[0]=t[0]*n,r[1]=t[1]*n,r[2]=t[2]*n,r[3]=-(r[0]*e[0]+r[1]*e[1]+r[2]*e[2]),r}function p(e,t,r,i=a()){let n=r[0]-t[0],s=r[1]-t[1],o=r[2]-t[2],l=e[0]-t[0],u=e[1]-t[1],h=e[2]-t[2],c=s*h-o*u,d=o*l-n*h,p=n*u-s*l,f=c*c+d*d+p*p,m=Math.abs(f-1)>1e-5&&f>1e-12?1/Math.sqrt(f):1;return i[0]=c*m,i[1]=d*m,i[2]=p*m,i[3]=-(i[0]*e[0]+i[1]*e[1]+i[2]*e[2]),i}function f(e,t,r,i=0,s=Math.floor(1/3*r),o=Math.floor(2/3*r)){if(r<3)return!1;t(g,i);let a=s,l=!1;for(;a<r-1&&!l;)t(y,a),a++,l=!(0,n.t2)(g,y);if(!l)return!1;for(a=Math.max(a,o),l=!1;a<r&&!l;)t(v,a),a++,(0,n.Re)(_,g,y),(0,n.S8)(_,_),(0,n.Re)(w,y,v),(0,n.S8)(w,w),l=!(0,n.t2)(g,v)&&!(0,n.t2)(y,v)&&Math.abs((0,n.Om)(_,w))<m;return l?(p(g,y,v,e),!0):(0!==i||1!==s||2!==o)&&f(e,t,r,0,1,2)}r(32728);const m=.99619469809,g=(0,s.vt)(),y=(0,s.vt)(),v=(0,s.vt)(),_=(0,s.vt)(),w=(0,s.vt)();function x(e,t,r){return t!==e&&u(e,t),e[3]=-(0,n.Om)(e,r),e}function C(e,t,r,i){return(0,n.$A)(v,t,e),d(r,v,i)}function b(e,t,r){return null!=t&&N(D(e,t.origin,t.direction,F,r))}function M(e,t,r){return N(D(e,t.origin,t.vector,0,r))}function T(e,t,r){return N(D(e,t.origin,t.vector,1,r))}function A(e,t){return O(e,t)<=0}function R(e,t){return O(e,t)>=0}function S(e,t){return function(e,t,r,i,s,o,a){let l=(0,n.Om)(e,r),u=O(e,t);if(l>-1e-6&&l<1e-6)return Z(u,s,o);let h=-u/l,c=Z(l,s,!1);return!(a&&!c&&!Z(u,s,o))&&(c?h>i.c0&&(i.c0=h):h<i.c1&&(i.c1=h),i.c0<=i.c1)}(e,t.ray.origin,t.ray.direction,t,!1,!1,!0)}function Z(e,t,r){return r?t?e>=0:e<=0:t?e>0:e<0}function P(e,t,r,i=!1){let s=t.at(-1),o=O(e,s),a=i?o>0:o<=0;for(let l=0;l<t.length;l++){let u=t.at(l),h=O(e,u),c=i?h>0:h<=0;a!==c&&(0,n.Cc)(r(),s,u,o/(o-h)),c&&(0,n.C)(r(),u),s=u,o=h,a=c}}function E(e,t,r){let i=(0,n.hs)(o.rq.get(),e,-e[3]),s=function(e,t,r){let i=(0,n.hs)(o.rq.get(),e,(0,n.Om)(e,t));return(0,n.Re)(r,t,i),r}(e,(0,n.Re)(o.rq.get(),t,i),o.rq.get());return(0,n.WQ)(r,s,i),r}function O(e,t){return(0,n.Om)(e,t)+e[3]}function I(e,t,r){for(let i=0;i<r;++i)if(A(e,t[i]))return!1;return!0}function N(e){return 0===e||1===e}function D(e,t,r,s,o){let a=(0,n.Om)(e,r),l=O(e,t);if(0===a)return l>=0?2:3;let u=-l/a;return 1&s&&(u=(0,i.qE)(u,0,1)),!(4&s)&&u<0||!(8&s)&&u>1?l>=0?2:3:((0,n.WQ)(o,t,(0,n.hs)(o,r,u)),l>=0?0:1)}const z=[0,0,1,0],F=8;(0,s.vt)()},44280(e,t,r){r.d(t,{g7:()=>a,gr:()=>o});var i=r(34727),n=r(35522),s=r(51850);function o(e,t){return(0,n.Om)(e,t)/(0,n.Bw)(e)}function a(e,t){let r=(0,n.Om)(e,t)/((0,n.Bw)(e)*(0,n.Bw)(t));return-(0,i.XM)(r)}(0,s.vt)(),(0,s.vt)()},32114(e,t,r){r.d(t,{Rc:()=>p,rq:()=>c,Km:()=>d}),r(44208);var i=r(26390),n=r(29242),s=r(9093),o=r(82534),a=r(48163),l=r(51850),u=r(91829);class h{constructor(e){this._create=e,this._items=[],this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,i.d)(()=>this._reset()),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){let e=2*this._itemsPtr;this._items.length>e&&(this._items.length=e),this._itemsPtr=0}static createVec2f64(){return new h(a.vt)}static createVec3f64(){return new h(l.vt)}static createVec4f64(){return new h(u.vt)}static createMat3f64(){return new h(n.vt)}static createMat4f64(){return new h(s.vt)}static createQuatf64(){return new h(o.vt)}get test(){}}h.createVec2f64();const c=h.createVec3f64(),d=h.createVec4f64(),p=(h.createMat3f64(),h.createMat4f64());h.createQuatf64()},97770(e,t,r){r.d(t,{Ey:()=>P,F8:()=>Z,J2:()=>T,Yq:()=>R,_m:()=>A,iS:()=>S,wj:()=>E});var i=r(66552),n=r(73444),s=r(98623),o=r(34747);const a={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},l={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},u={timeZone:"UTC"},h={year:"numeric",month:"numeric",day:"numeric"},c={year:"numeric",month:"long",day:"numeric"},d={year:"numeric",month:"short",day:"numeric"},p={year:"numeric",month:"long",weekday:"long",day:"numeric"},f={hour:"numeric",minute:"numeric"},m={...f,second:"numeric"},g={hourCycle:"h23"},y={...f,...g},v={...m,...g},_={"short-date":h,"short-date-short-time":{...h,...f},"short-date-short-time-24":{...h,...y},"short-date-long-time":{...h,...m},"short-date-long-time-24":{...h,...v},"short-date-le":h,"short-date-le-short-time":{...h,...f},"short-date-le-short-time-24":{...h,...y},"short-date-le-long-time":{...h,...m},"short-date-le-long-time-24":{...h,...v},"long-month-day-year":c,"long-month-day-year-short-time":{...c,...f},"long-month-day-year-short-time-24":{...c,...y},"long-month-day-year-long-time":{...c,...m},"long-month-day-year-long-time-24":{...c,...v},"day-short-month-year":d,"day-short-month-year-short-time":{...d,...f},"day-short-month-year-short-time-24":{...d,...y},"day-short-month-year-long-time":{...d,...m},"day-short-month-year-long-time-24":{...d,...v},"long-date":p,"long-date-short-time":{...p,...f},"long-date-short-time-24":{...p,...y},"long-date-long-time":{...p,...m},"long-date-long-time-24":{...p,...v},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":f,"long-time":m},w=(0,i.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),x={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"};function C(){let e=(0,n.lR)();return(e&&x[e])??(0,n.QC)()}"mart"!==new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)).find(({type:e})=>"month"===e)?.value.toLowerCase()&&(x.bs="sr-Latn-CS");let b=new WeakMap;const M=_["short-date-short-time"];function T(e){return _[e]}function A(e){let{dateStyle:t,timeStyle:r,hour12:i,year:n,month:s}=e,o={};return t?o.dateStyle=t:n&&(o.year=n,o.month=s||void 0),r&&!o.year&&(o.timeStyle=r,o.hour12="auto"===i?void 0:"always"===i),o}function R(e,t=M){return function(e){let t=b.get(e);if(!t){let r=C(),i=E(e.timeZone??"system"),n={...e,timeZone:i};t=new Intl.DateTimeFormat(r,n),b.set(e,t)}return t}(t).format(e)}function S(e,t=M){return R(new Date(e),{...t,...u,...l})}function Z(e,t=M){return R(new Date(`1970-01-01T${e}Z`),{...t,...u,...a})}function P(e,t=M){let r=o.c9.fromISO(e,{setZone:!0});if(!r.isValid)return e;if(t.timeZone)return R(r.toJSDate(),t);let i=0===r.offset?"UTC":t.timeZone,n={...t,timeZone:i};return r.toLocaleString(n,{locale:C()})}function E(e){switch(e){case"system":return s.N;case s.L:return"UTC";default:return e}}(0,n.Ml)(()=>{b=new WeakMap}),r.d(t,["_v",0,w])},73444(e,t,r){r.d(t,{JK:()=>l,Ml:()=>g,QC:()=>c,lR:()=>h,oQ:()=>f});var i=r(36563);let n;r(44208);const s=globalThis.esriConfig?.locale,o=globalThis.document?.documentElement;function a(){let e=o?.getAttribute("lang"),t=globalThis.navigator?.language;return s??e??t??"en"}function l(){return void 0===n&&(n=a()),n}const u=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function h(e=l()){return d(e)?.language}function c(e=l()){let t=d(e);return t?.language&&t?.extlang?e.replace(`${t.language}-`,""):e}function d(e=l()){return u.exec(e)?.groups}const p=[];function f(e){return p.push(e),(0,i.hA)(()=>{p.splice(p.indexOf(e),1)})}new Map;const m=[];function g(e){return m.push(e),(0,i.hA)(()=>m.splice(m.indexOf(e),1))}function y(){let e=a();n!==e&&([...m].forEach(t=>t(e)),n=e,[...p].forEach(t=>t(e)))}globalThis.addEventListener?.("languagechange",y),o&&new MutationObserver(()=>{y()}).observe(o,{attributeFilter:["lang"]})},4146(e,t,r){r.d(t,{A:()=>v});var i=r(32198),n=r(56507),s=r(49186),o=r(65529),a=r(4902),l=r(92474),u=r(53966),h=r(17676),c=r(84952),d=r(91429),p=r(5443),f=r(16930),m=r(92602),g=r(79677);let y=0,v=class extends((0,o.Zt)((0,a.s)(l.x_))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new p.A(-180,-90,180,90,f.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+y++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=f.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){let t="string"==typeof e?{url:e}:e;return(await Promise.all([r.e(812),r.e(7982)]).then(()=>r(27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){let t="portalItem"in e?e:{portalItem:e},{fromItem:i}=await Promise.all([r.e(9917),r.e(812),r.e(5613)]).then(()=>r(45613));try{return await i(t)}catch(e){let r=t?.portalItem,i=r?.id||"unset",n=r?.portal?.url||m.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+n+"', id: '"+i+"')",e),e}}(e)}initialize(){this.when().catch(e=>{(0,h.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(){let{parent:e}=this;e&&(this.parent=null,e.removeChildLayer?.(this))}get effectiveVisible(){return this.visible&&(this.parent?.effectiveVisible??!0)}get hasAttributionData(){return null!=this.attributionDataUrl}get loaded(){return super.loaded}removeFromParent(){let{parent:e}=this;e&&(e.removeChildLayer?.(this),this.parent=null)}get parsedUrl(){return(0,c.An)(this.url)}createLayerView(e,t){return Promise.reject(new s.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){let e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,n.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new s.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,i.Cg)([(0,d.MZ)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,i.Cg)([(0,d.MZ)({readOnly:!0})],v.prototype,"effectiveVisible",null),(0,i.Cg)([(0,d.MZ)({type:p.A})],v.prototype,"fullExtent",void 0),(0,i.Cg)([(0,d.MZ)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,i.Cg)([(0,d.MZ)({type:String,clonable:!1})],v.prototype,"id",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,d.MZ)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,i.Cg)([(0,d.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,i.Cg)([(0,d.MZ)({clonable:!1})],v.prototype,"parent",void 0),(0,i.Cg)([(0,d.MZ)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,i.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],v.prototype,"persistenceEnabled",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,i.Cg)([(0,d.MZ)({type:f.A})],v.prototype,"spatialReference",void 0),(0,i.Cg)([(0,d.MZ)({type:String})],v.prototype,"title",void 0),(0,i.Cg)([(0,d.MZ)({readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,i.Cg)([(0,d.MZ)()],v.prototype,"url",void 0),(0,i.Cg)([(0,d.MZ)({type:g.A})],v.prototype,"visibilityTimeExtent",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,i.Cg)([(0,d.$K)("esri.layers.Layer")],v)},92722(e,t,r){r.d(t,{A:()=>n});var i=r(69397);class n{constructor(e=[],t=[],r=!1,i=!1){this.lengths=e??[],this.coords=t??[],this.hasZ=r,this.hasM=i}static fromJSON({lengths:e,coords:t,hasZ:r,hasM:i}){return new n(e,t,r||!1,i||!1)}static fromRect([e,t,r,i]){let s=r-e,o=i-t;return new n([5],[e,t,s,0,0,o,-s,0,0,-o])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((e,t)=>e+t,0)}get usedMemory(){return 64+(0,i.Qf)(this.lengths,this.coords)}get stride(){return+!!this.hasZ+2+ +!!this.hasM}area(){if(this.isPoint)return 0;let e=0,t=0;for(let r of this.lengths){if(r<3)continue;let{stride:i}=this,n=this.coords[i*t],s=this.coords[i*t+1];for(let o=1;o<r;o+=1){let r=i*(t+o),a=this.coords[r],l=this.coords[r+1];e+=-.5*(a-n)*(l+s),n=a,s=l}t+=r}return e}forEachVertex(e){let t=0;if(this.isPoint)return e(this.coords[0],this.coords[1]);let{stride:r}=this;for(let i of this.lengths){for(let n=0;n<i;n++){let i=r*(t+n);e(this.coords[i],this.coords[i+1])}t+=i}}deltaDecode(){let e=this.clone(),{coords:t,lengths:r}=e,i=0,{stride:n}=this;for(let e of r){for(let r=1;r<e;r++){let e=n*(i+r);t[e]+=t[e-n],t[e+1]+=t[e+1-n]}i+=e}return e}clone(e){if(this.isPoint)return new n([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);let t=Array.from(this.lengths),{stride:r,size:i}=this,s=this.coords.slice(0,i*r);return e?(e.set(s),new n(t,e,this.hasZ,this.hasM)):new n(t,Array.from(s),this.hasZ,this.hasM)}justXY(){let{stride:e,size:t}=this;if(2===e)return this;let r=Array(t*e);for(let t=0,i=0;t<r.length;t+=e)r[i++]=this.coords[t],r[i++]=this.coords[t+1];return new n(this.lengths,r,!1,!1)}}},63490(e,t,r){r.d(t,{Mr:()=>l,TH:()=>a});var i=r(32198),n=r(69540),s=r(25482),o=r(91429);let a=class extends((0,n.OU)(s.o)){constructor(){super(...arguments),this.url=null}};(0,i.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],a.prototype,"lod",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"rasterFunction",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"url",void 0),a=(0,i.Cg)([(0,o.$K)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ElevationSource")],a);let l=class extends((0,n.OU)(s.o)){constructor(e){super(e),this.constantElevation=null}};(0,i.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],l.prototype,"constantElevation",void 0),l=(0,i.Cg)([(0,o.$K)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ConstantElevation")],l),r.d(t,["E1",0,e=>null!=e&&"number"==typeof e.constantElevation])},23281(e,t,r){r.d(t,{eR:()=>C,yP:()=>T,R:()=>Z,o:()=>P,RR:()=>b,l6:()=>M});var i=r(66552),n=(r(86211),r(28735),r(32198)),s=r(69540),o=r(25482),a=r(91429),l=r(69622),u=r(21325);let h=class extends l.A{set horizontalWKID(e){e?(0,u.fn)({wkid:+e})?this._set("horizontalWKID",+e):this._set("horizontalWKID",e):this._set("horizontalWKID",null)}set verticalWKID(e){e?this._set("verticalWKID",isFinite(e)&&(0,u.fn)({wkid:+e})?+e:null):this._set("verticalWKID",null)}get isAdvanced(){let{affineTransformations:e,focalLength:t,principalOffsetPoint:r,radialDistortionCoefficients:i,tangentialDistortionCoefficients:n}=this;return e?.length>1&&!Number.isNaN(t)&&r?.length>1&&i?.length>1&&n?.length>1}};(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],h.prototype,"affineTransformations",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],h.prototype,"focalLength",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],h.prototype,"principalOffsetPoint",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],h.prototype,"radialDistortionCoefficients",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],h.prototype,"tangentialDistortionCoefficients",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],h.prototype,"horizontalWKID",null),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],h.prototype,"verticalWKID",null),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],h.prototype,"x",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],h.prototype,"y",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],h.prototype,"z",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],h.prototype,"type",void 0),h=(0,n.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientation")],h);const c=h;let d=class extends((0,s.OU)((0,o.T)(c))){constructor(){super(...arguments),this.type=1}toString(){let{type:e,horizontalWKID:t,verticalWKID:r,x:i,y:n,z:s,heading:o,pitch:a,roll:l,affineTransformations:u,focalLength:h,principalOffsetPoint:c,radialDistortionCoefficients:d,tangentialDistortionCoefficients:p}=this,f=[e,t,r,i,n,s,o,a,l];return this.isAdvanced&&(u?.forEach(e=>f.push(e)),f.push(h),c?.forEach(e=>f.push(e)),d?.forEach(e=>f.push(e)),p?.forEach(e=>f.push(e))),f.map(e=>Number.isNaN(e)?"":e).join("|")}};(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],d.prototype,"type",void 0),(0,n.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],d.prototype,"affineTransformations",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"focalLength",void 0),(0,n.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],d.prototype,"principalOffsetPoint",void 0),(0,n.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],d.prototype,"radialDistortionCoefficients",void 0),(0,n.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],d.prototype,"tangentialDistortionCoefficients",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"heading",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"pitch",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"roll",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"x",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"y",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],d.prototype,"z",void 0),d=(0,n.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientationHPR")],d);const p=d;let f=class extends((0,s.OU)((0,o.T)(c))){constructor(){super(...arguments),this.type=4}toString(){let{type:e,latitude:t,longitude:r,ellipsoidRadius:i,squaredEccentricity:n,properties:s}=this,o=`${s}`.split("|");return o.splice(1,1),`${e}|${t}|${r}|${i}|${n}|${o.join("|")}`}};(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],f.prototype,"type",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0},type:Number})],f.prototype,"latitude",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0},type:Number})],f.prototype,"longitude",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0},type:Number})],f.prototype,"ellipsoidRadius",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0},type:Number})],f.prototype,"squaredEccentricity",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],f.prototype,"properties",void 0),f=(0,n.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientationLTP")],f);const m=f;let g=class extends((0,s.OU)((0,o.T)(c))){constructor(){super(...arguments),this.type=2}toString(){let{type:e,horizontalWKID:t,verticalWKID:r,x:i,y:n,z:s,omega:o,phi:a,kappa:l,affineTransformations:u,focalLength:h,principalOffsetPoint:c,radialDistortionCoefficients:d,tangentialDistortionCoefficients:p}=this,f=[e,t,r,i,n,s,o,a,l];return this.isAdvanced&&(u?.forEach(e=>f.push(e)),f.push(h),c?.forEach(e=>f.push(e)),d?.forEach(e=>f.push(e)),p?.forEach(e=>f.push(e))),f.map(e=>isNaN(e)?"":e).join("|")}};(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],g.prototype,"type",void 0),(0,n.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],g.prototype,"affineTransformations",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"focalLength",void 0),(0,n.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],g.prototype,"principalOffsetPoint",void 0),(0,n.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],g.prototype,"radialDistortionCoefficients",void 0),(0,n.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],g.prototype,"tangentialDistortionCoefficients",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"omega",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"phi",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"kappa",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"x",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"y",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],g.prototype,"z",void 0),g=(0,n.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientationOPK")],g);const y=g;let v=class extends((0,s.OU)((0,o.T)(c))){constructor(){super(...arguments),this.type=3}get isAdvanced(){let{affineTransformations:e,focalLength:t,principalOffsetPoint:r,radialDistortionCoefficients:i,tangentialDistortionCoefficients:n}=this;return e?.length>1||!Number.isNaN(t)||r?.length>1||i?.length>1||n?.length>1}toString(){let{type:e,horizontalWKID:t,verticalWKID:r,x:i,y:n,z:s,yaw:o,pitch:a,roll:l,affineTransformations:u,focalLength:h,principalOffsetPoint:c,radialDistortionCoefficients:d,tangentialDistortionCoefficients:p}=this,f=[e,t,r,i,n,s,o,a,l];return this.isAdvanced&&(u?.forEach(e=>f.push(e)),f.push(h),c?.forEach(e=>f.push(e)),c?.forEach(e=>f.push(e)),d?.forEach(e=>f.push(e)),p?.forEach(e=>f.push(e))),f.map(e=>Number.isNaN(e)?"":e).join("|")}};(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],v.prototype,"type",void 0),(0,n.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"affineTransformations",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"focalLength",void 0),(0,n.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"principalOffsetPoint",void 0),(0,n.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"radialDistortionCoefficients",void 0),(0,n.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"tangentialDistortionCoefficients",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"yaw",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"pitch",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"roll",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"x",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"y",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"z",void 0),v=(0,n.Cg)([(0,a.$K)("esri.layers.orientedImagery.core.CameraOrientationYPR")],v);const _=v,w=new Map;w.set("2",{desc:"Using Omega Phi Kappa",constructor:y}),w.set("1",{desc:"Using Heading, Pitch and Roll",constructor:p}),w.set("3",{desc:"Using Yaw, Pitch and Roll",constructor:_}),w.set("4",{desc:"Using Local Tangent Plane",constructor:m});var x=r(63490);function C(e,t,r){return e&&((0,x.E1)(e)?new x.Mr(e):function(e,t,r){let{url:i}=e;return i?(i=function(e,t,r){return t&&(e=`${t}${e}`),r&&(e+=`${r}`),e}(i,t,r),new x.TH({...e,url:i})):null}(e,t,r))}const b=new i.J({Minutes:"minutes",Hours:"hours",Days:"days",Weeks:"weeks",Months:"months",Years:"years"}),M=new i.J({Feet:"feet",Meter:"meter"}),T=new i.J({360:"360",Horizontal:"horizontal",Inspection:"inspection",Nadir:"nadir",Oblique:"oblique",Terrestrial360Video:"terrestrial-360-video",TerrestrialFrameVideo:"terrestrial-frame-video",Aerial360Video:"aerial-360-video",AerialFrameVideo:"aerial-frame-video","":null}),A=new Map;A.set("1",function(e){let[t,r,i,n,s,o,a,l,u,h,c,d,p,f,m,g,y,v,_,w,x,C]=e.slice(1);return{horizontalWKID:t,verticalWKID:r,x:i,y:n,z:s,heading:o,pitch:a,roll:l,...S([u,h,c,d,p,f],[g,y],[v,_,w],[x,C],m)}}),A.set("3",function(e){let[t,r,i,n,s,o,a,l,u,h,c,d,p,f,m,g,y,v,_,w,x,C]=e.slice(1);return{horizontalWKID:t,verticalWKID:r,x:i,y:n,z:s,yaw:o,pitch:a,roll:l,...S([u,h,c,d,p,f],[g,y],[v,_,w],[x,C],m)}}),A.set("2",function(e){let[t,r,i,n,s,o,a,l,u,h,c,d,p,f,m,g,y,v,_,w,x,C]=e.slice(1);return{horizontalWKID:t,verticalWKID:r,x:i,y:n,z:s,omega:o,phi:a,kappa:l,...S([u,h,c,d,p,f],[g,y],[v,_,w],[x,C],m)}}),A.set("4",function(e){let[t,r,i,n,s,...o]=e.slice(1),a=A.get(s),l=w.get(s)?.constructor;return a&&l?{latitude:t,longitude:r,ellipsoidRadius:i,squaredEccentricity:n,properties:new l(a([s,"",...o]))}:null});const R=e=>{let t=e.map(e=>parseFloat(e)).filter(e=>!isNaN(e));if(t.length===e.length)return t};function S(e,t,r,i,n){let s=R(e),o=R(t),a=R(r),l=R(i);return{affineTransformations:6===s?.length?s:void 0,focalLength:6===s?.length?parseFloat(n):void 0,principalOffsetPoint:2===o?.length?o:[0,0],radialDistortionCoefficients:3===a?.length?a:[0,0,0],tangentialDistortionCoefficients:2===l?.length?l:[0,0]}}function Z(e){if("string"!=typeof e)return null;let t=e.split(";");return t.some(e=>!/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?$/.test(e.trim()))?null:function(e){return function(e){if(!Array.isArray(e)||e.length<=5)return!1;for(let t of e)if("number"!=typeof t||!Number.isFinite(t)||t<0)return!1;return!0}(e)?function(e){for(e=e.slice(0,8);e.length<8;)e.push(0);return e}(e):null}(t.map(e=>Number(e.trim())))}function P(e,t,r){let i=function(e,t){return e?.length?e.map(({field:e,order:r})=>{let i=t.find(t=>t.name.toLowerCase()===e.toLowerCase());return i?{fieldName:i.name,sortOrder:"desc"===r?.toLowerCase()?"desc":"asc"}:null}).filter(e=>null!=e):null}(r,t);if(i?.length)return i;if(!e){let e=t.find(e=>e.name.toLocaleLowerCase()==="sequenceorder".toLocaleLowerCase());return e?[{fieldName:e.name,sortOrder:"asc"}]:null}let n=t.find(t=>t.name.toLowerCase()===e.trim().toLowerCase());return n?[{fieldName:n.name,sortOrder:"asc"}]:null}},39357(e,t,r){r.d(t,{A:()=>a});var i,n=r(32198),s=r(25482),o=r(91429);let a=i=class extends s.o{constructor(e){super(e),this.name=null,this.code=null}clone(){return new i({name:this.name,code:this.code})}};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"name",void 0),(0,n.Cg)([(0,o.MZ)({type:[String,Number],json:{write:{isRequired:!0}}})],a.prototype,"code",void 0),a=i=(0,n.Cg)([(0,o.$K)("esri.layers.support.CodedValue")],a)},53177(e,t,r){r.d(t,{A:()=>h});var i,n=r(32198),s=r(4718),o=r(91429),a=r(39357),l=r(76357),u=r(93223);let h=class extends l.A{static{i=this}constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){let r=String(e);this.codedValues.some(e=>(String(e.code)===r&&(t=e.name),!!t))}return t}clone(){return new i({codedValues:(0,s.o8)(this.codedValues),name:this.name})}};(0,n.Cg)([(0,o.MZ)({type:[a.A],json:{write:{isRequired:!0}}})],h.prototype,"codedValues",void 0),(0,n.Cg)([(0,u.e)({codedValue:"coded-value"})],h.prototype,"type",void 0),h=i=(0,n.Cg)([(0,o.$K)("esri.layers.support.CodedValueDomain")],h)},76357(e,t,r){r.d(t,{A:()=>u});var i=r(32198),n=r(66552),s=r(25482),o=r(91429),a=r(93223);const l=new n.J({inherited:"inherited",codedValue:"coded-value",range:"range"});let u=class extends s.o{constructor(e){super(e),this.name=null,this.type=null}};(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"name",void 0),(0,i.Cg)([(0,a.e)(l),(0,o.MZ)({json:{write:{isRequired:!0}}})],u.prototype,"type",void 0),u=(0,i.Cg)([(0,o.$K)("esri.layers.support.Domain")],u)},1359(e,t,r){r.d(t,{createSampler:()=>A,query:()=>T});var i=r(60999),n=r(49186),s=r(44208),o=r(97768),a=r(17676),l=r(86211),u=r(99917),h=r(19419),c=r(4576),d=r(72802);class p{constructor(e,t){this.layer=e,this.parameters=t}}class f extends p{constructor(e,t,r){super(e,r),this.outSpatialReference=t,this.type="geometry"}selectTilesAtLOD(e){if(e<0)this.geometry.coordinates.forEach(e=>e.tile=null);else{let{tileInfo:t,tilemapCache:r}=this.layer,i=y(t,r)[e].level;this.geometry.coordinates.forEach(e=>e.tile=t.tileAt(i,e.x,e.y))}}allElevationTilesFetched(){return!this.geometry.coordinates.some(e=>!e.elevationTile)}clearElevationTiles(){for(let e of this.geometry.coordinates)e.elevationTile!==this.outsideExtentTile&&(e.elevationTile=null)}populateElevationTiles(e){for(let t of this.geometry.coordinates)!t.elevationTile&&t.tile?.id&&(t.elevationTile=e[t.tile.id])}remapTiles(e){for(let t of this.geometry.coordinates){let r=t.tile?.id;t.tile=r?e[r]:null}}getTilesToFetch(){return(0,c.Am)(this.geometry.coordinates.filter(({tile:e,elevationTile:t})=>e?.id&&!t),(e,t)=>e.tile?.id===t.tile?.id).map(({tile:e})=>e)}forEachTileToFetch(e){for(let t of this.geometry.coordinates)t.tile&&!t.elevationTile&&e(t.tile,()=>t.tile=null)}}class m extends p{constructor(e,t,r,i){super(e,r),this.maskExtents=i,this.type="extent",this.elevationTiles=[],this._candidateTiles=[],this._fetchedCandidates=new Set,this.extent=t.clone().intersection(e.fullExtent)}selectTilesAtLOD(e,t){let r=this._maximumLodForRequests(t),i=Math.min(r,e);i<0?this._candidateTiles.length=0:this._selectCandidateTilesCoveringExtentAt(i)}_maximumLodForRequests(e){let{tileInfo:t,tilemapCache:r}=this.layer,i=y(t,r);if(!e)return i.length-1;let n=this.extent;if(null==n)return-1;for(let r=i.length-1;r>=0;r--){let s=i[r],o=s.resolution*t.size[0],a=s.resolution*t.size[1];if(Math.ceil(n.width/o)*Math.ceil(n.height/a)<=e)return r}return-1}allElevationTilesFetched(){return this._candidateTiles.length===this.elevationTiles.length}clearElevationTiles(){this.elevationTiles.length=0,this._fetchedCandidates.clear()}populateElevationTiles(e){for(let t of this._candidateTiles){let r=t.id&&e[t.id];r&&(this._fetchedCandidates.add(t),this.elevationTiles.push(r))}}remapTiles(e){this._candidateTiles=v(this._candidateTiles.map(t=>e[t.id]))}getTilesToFetch(){return this._candidateTiles}forEachTileToFetch(e,t){let r=this._candidateTiles;this._candidateTiles=[],r.forEach(r=>{if(this._fetchedCandidates.has(r))return void t?.(r);let i=!1;e(r,()=>i=!0),i?t?.(r):this._candidateTiles.push(r)}),this._candidateTiles=v(this._candidateTiles,t)}_selectCandidateTilesCoveringExtentAt(e){this._candidateTiles.length=0;let t=this.extent;if(null==t)return;let{tileInfo:r,tilemapCache:i}=this.layer,n=y(r,i)[e],s=r.tileAt(n.level,t.xmin,t.ymin),o=s.extent,a=n.resolution*r.size[0],l=n.resolution*r.size[1],u=Math.ceil((t.xmax-o[0])/a),h=Math.ceil((t.ymax-o[1])/l);for(let e=0;e<h;e++)for(let t=0;t<u;t++){let i=new d.U(s.level,s.row-e,s.col+t);r.updateTileInfo(i),this._tileIsMasked(i)||this._candidateTiles.push(i)}}_tileIsMasked(e){return this.maskExtents?.some(t=>(0,h.gR)(t,e.extent))??!1}}function g(e){return null!=e?.tileInfo}function y(e,t){let r=e.lods;if(g(t)){let{effectiveMinLOD:e,effectiveMaxLOD:i}=t;return r.filter(t=>t.level>=e&&t.level<=i)}return r}function v(e,t){let r={},i=[];for(let n of e){let e=n.id;e&&!r[e]?(r[e]=n,i.push(n)):t?.(n)}let n=i.sort((e,t)=>e.level-t.level);return n.filter((e,r)=>{for(let i=0;i<r;i++){let r=n[i].extent;if(r&&(0,h.gR)(r,e.extent))return t?.(e),!1}return!0})}class _{constructor(e,t){this.data=e,this.safeWidth=.99999999*(e.width-1),this.dx=(e.width-1)/(t[2]-t[0]),this.dy=(e.width-1)/(t[3]-t[1]),this.x0=t[0],this.y1=t[3]}}class w{constructor(e,t=null){if(this.key=e,null!=t){let r=e.extent;this._samplerData=new _(t,r)}}get zmin(){return null==this._samplerData?0:this._samplerData.data.minValue}get zmax(){return null==this._samplerData?0:this._samplerData.data.maxValue}get hasNoDataValues(){return!!this._samplerData?.data.hasNoDataValues}sample(e,t){if(null==this._samplerData)return;let{safeWidth:r,data:i,dx:n,dy:s,y1:o,x0:a}=this._samplerData,{width:l,values:u,noDataValue:h}=i,c=x(s*(o-t),0,r),d=x(n*(e-a),0,r),p=Math.floor(c),f=Math.floor(d),m=p*l+f,g=m+l,y=u[m],v=u[g],_=u[m+1],w=u[g+1];if(y!==h&&v!==h&&_!==h&&w!==h){let e=d-f,t=y+(_-y)*e;return t+(v+(w-v)*e-t)*(c-p)}}}function x(e,t,r){return e<t?t:e>r?r:e}var C=r(87378),b=r(10292),M=r(57984);async function T(e,t,r){if(!e)throw new n.A(D,"Elevation queries require an elevation layer to fetch tiles from");if(!t||!(t instanceof b.q)&&"point"!==t.type&&"multipoint"!==t.type&&"polyline"!==t.type)throw new n.A("elevation-query:invalid-geometry","Only point, polyline and multipoint geometries can be used to query elevation");let i={...I,...r},a=i.signal;if("integrated-mesh-3dtiles"===e.type){let n=b.q.fromGeometry(t);if(e.queryElevationCallback&&((0,s.A)("enable-feature:im-as-ground")?e.isUsedAsGroundLayer:e.replacesTerrain)){let s=12.9*(r?.minDemResolution||0)+.71,o=await(await e.queryElevationCallback(n,{signal:a,maxGeometricError:s})).project(t.spatialReference,a);if(o){if(void 0!==i.noDataValue&&i.noDataValue!==Number.MAX_VALUE)for(let e of o.coordinates)e.z===Number.MAX_VALUE&&(e.z=i.noDataValue);let t=i.noDataValue??Number.MAX_VALUE,r=o.coordinates.map(r=>({demResolution:r.z===t?-1:1,source:e}));return{geometry:o.export(),noDataValue:t,sampleInfo:r}}}let o=n.coordinates.map(()=>({demResolution:-1,source:e}));return{geometry:n.export(),noDataValue:Number.MAX_VALUE,sampleInfo:o}}if("integrated-mesh"===e.type){let r=b.q.fromGeometry(t),i=r.coordinates.map(()=>({demResolution:-1,source:e}));return{geometry:r.export(),noDataValue:Number.MAX_VALUE,sampleInfo:i}}let h=new f(e,t.spatialReference,i);return await e.load({signal:a}),await async function(e,t,r){let i,s=e.layer.tileInfo.spatialReference;if(t instanceof b.q?i=await t.project(s,r):(await(0,u.initializeProjection)([{source:t.spatialReference,dest:s}],{signal:r}),i=(0,u.project)(t,s)),!i)throw new n.A("elevation-query:spatial-reference-mismatch",`Cannot query elevation in '${t.spatialReference.wkid}' on an elevation service in '${s.wkid}'`);e.geometry=b.q.fromGeometry(i)}(h,t,a),await Z(h,a),await N(h,a),function(e){e.geometry.coordinates.forEach(t=>{let r=t.elevationTile,i=e.parameters.noDataValue;if(r){let e=r.sample(t.x,t.y);null==e?t.elevationTile=null:i=e}t.z=i})}(h),async function(e,t){let r=await e.geometry.project(e.outSpatialReference,t);(0,o.Lw)(r);let i={geometry:r.export(),noDataValue:e.parameters.noDataValue};return e.parameters.returnSampleInfo&&(i.sampleInfo=function(e){let t=e.layer.tileInfo,r=(0,l.GA)(t.spatialReference);return e.geometry.coordinates.map(i=>{let n=-1;return i.elevationTile&&i.elevationTile!==e.outsideExtentTile&&(n=t.lodAt(i.elevationTile.key.level).resolution*r),{demResolution:n,source:-1===n?void 0:e.layer}})}(e)),e.geometry.coordinates.forEach(e=>{e.tile=null,e.elevationTile=null}),i}(h,a)}async function A(e,t,r){if(e=Array.isArray(e)?e:[e],0===(e=r?.ignoreInvisibleLayers?e.filter(e=>e.visible):e.slice()).length)throw new n.A(D,"Elevation queries require at least one elevation layer to fetch tiles from");if(!t||"extent"!==t.type)throw new n.A("elevation-query:invalid-extent","Invalid or undefined extent");let i={...I,...r,returnSampleInfo:!0},s=R(e[e.length-1],t,i);return 1===e.length?s:S(e,t,await s,i)}async function R(e,t,r,i){let n=r.signal;await e.load({signal:n});let s=t.spatialReference,o=e.tileInfo.spatialReference;s.equals(o)||(await(0,u.initializeProjection)([{source:s,dest:o}],{signal:n}),t=(0,u.project)(t,o));let a=new m(e,t,r,i);await Z(a,n),await N(a,n);let l=a.elevationTiles,h=a.layer.tileInfo,c=a.parameters.noDataValue;return new M.C({noDataValue:c,tiles:l,tileInfo:h})}async function S(e,t,r,i){if(e.pop(),!e.length)return r;let n=r.samplers.filter(e=>!e.tile.hasNoDataValues).map(e=>(0,h.VY)(e.extent)),s=await R(e[e.length-1],t,i,n);if(0===s.samplers.length)return r;let o=r.samplers.concat(s.samplers),a=i.noDataValue;return S(e,t,new M.C({samplers:o,noDataValue:a}),i)}async function Z(e,t){"geometry"===e.type&&function(e){if(null==e.layer.fullExtent)return;let t=new w(new d.U(-1,-1,-1));t.sample=()=>e.parameters.noDataValue,e.outsideExtentTile=t;let r=e.layer.fullExtent;e.geometry.coordinates.forEach(e=>{let i=e.x,n=e.y;(i<r.xmin||i>r.xmax||n<r.ymin||n>r.ymax)&&(e.elevationTile=t)})}(e);let r=e.parameters.demResolution;if("number"==typeof r)!function(e,t){let r=function(e,t){let{tileInfo:r,tilemapCache:i}=e.layer,n=t/(0,l.GA)(r.spatialReference),s=y(r,i),o=s[0],a=0;for(let e=1;e<s.length;e++){let t=s[e];Math.abs(t.resolution-n)<Math.abs(o.resolution-n)&&(o=t,a=e)}return a}(e,t);e.selectTilesAtLOD(r)}(e,r);else if("finest-contiguous"===r)await async function(e,t){let{tileInfo:r,tilemapCache:i}=e.layer;await P(e,O(r,i,e.parameters.minDemResolution),t)}(e,t);else{if("auto"!==r)throw new n.A("elevation-query:invalid-dem-resolution",`Invalid dem resolution value '${r}', expected a number, "finest-contiguous" or "auto"`);await async function(e,t){(function(e){let{tileInfo:t,tilemapCache:r}=e.layer,i=O(t,r,e.parameters.minDemResolution);e.selectTilesAtLOD(i,e.parameters.maximumAutoTileRequests)})(e),function(e){let t=e.layer.tileInfo,r=0,i={},n=e=>{null!=e.id&&(e.id in i?i[e.id]++:(i[e.id]=1,r++))},s=e=>{if(null==e.id)return;let t=i[e.id];1===t?(delete i[e.id],r--):i[e.id]=t-1};e.forEachTileToFetch(n,s);let o=!0;for(;o&&(o=!1,e.forEachTileToFetch(i=>{r<=e.parameters.maximumAutoTileRequests||(s(i),t.upsampleTile(i)&&(o=!0),n(i))},s),o););}(e);let r=e.layer.tilemapCache;if(!r||g(r))return E(e,t);let n=e.getTilesToFetch(),s={},o=n.map(async e=>{let n=new d.U(0,0,0),o=await(0,i.Ke)(r.fetchAvailabilityUpsample(e.level,e.row,e.col,n,{signal:t}));!1!==o.ok?null!=e.id&&(s[e.id]=n):(0,a.QP)(o.error)});await(0,a.qr)(Promise.all(o),t),e.remapTiles(s)}(e,t)}}async function P(e,t,r){let i=e.layer;if(e.selectTilesAtLOD(t),t<0)return;let s=i.tilemapCache,o=e.getTilesToFetch();try{if(s&&!g(s))await(0,a.qr)(Promise.all(o.map(e=>s.fetchAvailability(e.level,e.row,e.col,{signal:r}))),r);else if(await N(e,r),!e.allElevationTilesFetched())throw e.clearElevationTiles(),new n.A("elevation-query:has-unavailable-tiles","Some elevation tiles are unavailable")}catch(i){(0,a.QP)(i),await P(e,t-1,r)}}async function E(e,t){let r=e.layer.tileInfo;await N(e,t);let i=!1;e.forEachTileToFetch((e,t)=>{r.upsampleTile(e)?i=!0:t()}),i&&await E(e,t)}function O(e,t,r=0){let i=y(e,t),n=i.length-1;if(r>0){let t=r/(0,l.GA)(e.spatialReference),s=i.findIndex(e=>e.resolution<t);0===s?n=0:s>0&&(n=s-1)}return n}const I={maximumAutoTileRequests:20,noDataValue:0,returnSampleInfo:!1,demResolution:"auto",minDemResolution:0,signal:null};async function N(e,t){let r=e.getTilesToFetch(),i={},n=e.parameters.cache,s=e.parameters.noDataValue,o={noDataValue:s,signal:t},l=r.map(async t=>{if(null==t.id)return;let r=`${e.layer.uid}:${t.id}:${s}`,a=n?.get(r)??C.A.from(await e.layer.fetchTile(t.level,t.row,t.col,o));n?.put(r,a),i[t.id]=new w(t,a)});await(0,a.qr)(Promise.allSettled(l),t),e.populateElevationTiles(i)}const D="elevation-query:invalid-layer"},7236(e,t,r){r.d(t,{A:()=>u});var i=r(32198),n=r(65529),s=r(53966),o=r(91429),a=r(86738),l=r(28735);let u=class extends n.nJ{queryElevation(e){let t=this.projectIfRequired(e,this.spatialReference);if(!t)return null;switch(e.type){case"point":return function(e,t,r){return e.hasZ=!0,e.z=r.elevationAt(t.x,t.y),e}(e,t,this);case"polyline":return function(e,t,r){h.spatialReference=t.spatialReference;let i=e.hasM&&!e.hasZ;for(let n=0;n<e.paths.length;n++){let s=e.paths[n],o=t.paths[n];for(let e=0;e<s.length;e++){let t=s[e],n=o[e];h.x=n[0],h.y=n[1],i&&(t[3]=t[2]),t[2]=r.elevationAt(h.x,h.y)}}return e.hasZ=!0,e}(e,t,this);case"multipoint":return function(e,t,r){h.spatialReference=t.spatialReference;let i=e.hasM&&!e.hasZ;for(let n=0;n<e.points.length;n++){let s=e.points[n],o=t.points[n];h.x=o[0],h.y=o[1],i&&(s[3]=s[2]),s[2]=r.elevationAt(h.x,h.y)}return e.hasZ=!0,e}(e,t,this);default:return null}}projectIfRequired(e,t){if(null==e)return null;let r=e.spatialReference;if(r.equals(t))return e;let i=(0,l.Cv)(e,t);return i||s.A.getLogger(this).error(`Cannot project geometry spatial reference (wkid:${r.wkid}) to elevation sampler spatial reference (wkid:${t.wkid})`),i}};u=(0,i.Cg)([(0,o.$K)("esri.layers.support.ElevationSampler")],u);const h=new a.A},20437(e,t,r){r.d(t,{A:()=>f});var i,n=r(32198),s=r(66552),o=r(25482),a=r(91429),l=r(78888),u=r(8631),h=r(98453),c=r(36005),d=r(93223);const p=new s.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",currency:"currency",dateAndTime:"date-and-time",description:"description",emailAddress:"email-address",locationOrPlaceName:"location-or-place-name",marginOfError:"margin-of-error",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",phoneNumber:"phone-number",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier",url:"url"});let f=class extends o.o{static{i=this}constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch{}return r?.value??null}readValueType(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch{}return r?p.fromJSON(r.fieldValueType):null}clone(){return new i({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,n.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],f.prototype,"alias",void 0),(0,n.Cg)([(0,a.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],f.prototype,"defaultValue",void 0),(0,n.Cg)([(0,a.MZ)()],f.prototype,"description",void 0),(0,n.Cg)([(0,c.w)("description")],f.prototype,"readDescription",null),(0,n.Cg)([(0,a.MZ)({types:u.g,json:{read:{reader:u.r},write:!0}})],f.prototype,"domain",void 0),(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],f.prototype,"editable",void 0),(0,n.Cg)([(0,a.MZ)({type:l.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],f.prototype,"length",void 0),(0,n.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],f.prototype,"name",void 0),(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],f.prototype,"nullable",void 0),(0,n.Cg)([(0,d.e)(h.m)],f.prototype,"type",void 0),(0,n.Cg)([(0,a.MZ)()],f.prototype,"valueType",void 0),(0,n.Cg)([(0,c.w)("valueType",["description"])],f.prototype,"readValueType",null),(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{read:!1}})],f.prototype,"visible",void 0),f=i=(0,n.Cg)([(0,a.$K)("esri.layers.support.Field")],f)},95466(e,t,r){r.d(t,{A:()=>u});var i=r(49186),n=r(53966),s=r(12195),o=r(30524),a=r(98623),l=r(56400);class u{static fromJSON(e){return new u(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new u(e.fields??[],c(e))}static fromLayerJSON(e){return new u(e.fields??[],c(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;let r=[];for(let e of this.fields){let t=e?.name,i=(0,o.GZ)(t);if(t&&i){let n=(0,o.NF)(t);this._fieldsMap.set(t,e),this._fieldsMap.set(n,e),this._normalizedFieldsMap.set(i,e),r.push(`${n}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,o.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,o.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),!(0,o.te)(e)&&!(0,o.Xz)(e)&&(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}r.sort(),this.uid=r.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(let e of this.fields)!(0,o.te)(e)&&!(0,o.Xz)(e)&&!e.nullable&&void 0===(0,o.lD)(e)&&this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){return(0,o.Vb)({fieldName:e,fieldsMap:this._fieldsMap,normalizedFieldsMap:this._normalizedFieldsMap})}getTimeZone(e){let t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(n.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new i.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),"UTC"):h.has(t.type)?a.L:null:null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,o.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map(e=>(0,s.W)(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}const h=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function c(e){let t=new Map;if(!e.fields)return t;let r=!0===e.datesInUnknownTimezone,{timeInfo:i,editFieldsInfo:n}=e,s=(i?"startField"in i?i.startField:i.startTimeField:"")??"",u=(i?"endField"in i?i.endField:i.endTimeField:"")??"",c=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,l.ZS)(e.dateFieldsTimeReference):null,d=n?function(e){return"timeZone"in e}(n)?n.timeZone??c:n.dateFieldsTimeReference?(0,l.ZS)(n.dateFieldsTimeReference):c??"UTC":null,p=i?function(e){return"timeZone"in e}(i)?i.timeZone??c:i.timeReference?(0,l.ZS)(i.timeReference):c:null,f=new Map([[(0,o.NF)(n?.creationDateField??""),d],[(0,o.NF)(n?.editDateField??""),d],[(0,o.NF)(s),p],[(0,o.NF)(u),p]]);for(let{name:i,type:n}of e.fields)if(h.has(n))t.set(i,a.L);else if("date"!==n&&"esriFieldTypeDate"!==n)t.set(i,null);else if(r)t.set(i,a.L);else{let e=f.get((0,o.NF)(i??""))??c;t.set(i,e)}return t}},10292(e,t,r){r.d(t,{q:()=>a});var i=r(48526),n=r(86738),s=r(82799),o=r(99917);class a{constructor(e){this.geometry=e,this.spatialReference=e.spatialReference}export(){return this._exporter(this.coordinates,this.spatialReference)}clone(e){let t=new a(this.geometry);return t.spatialReference=this.spatialReference,t.coordinates=e??this.coordinates.map(e=>e.clone()),t._exporter=this._exporter,t}async project(e,t){if(this.spatialReference.equals(e))return this.clone();await(0,o.initializeProjection)([{source:this.spatialReference,dest:e}],{signal:t});let r=new i.A({spatialReference:this.spatialReference,points:this.coordinates.map(e=>[e.x,e.y])}),n=(0,o.project)(r,e);if(!n)return null;let s=this.coordinates.map((e,t)=>{let r=e.clone(),i=n.points[t];return r.x=i[0],r.y=i[1],r}),a=this.clone(s);return a.spatialReference=e,a}projectSync(e){if(this.spatialReference.equals(e))return this.clone();let t=new i.A({spatialReference:this.spatialReference,points:this.coordinates.map(e=>[e.x,e.y])}),r=(0,o.project)(t,e);if(!r)return null;let n=this.coordinates.map((e,t)=>{let i=e.clone(),n=r.points[t];return i.x=n[0],i.y=n[1],i}),s=this.clone(n);return s.spatialReference=e,s}static fromGeometry(e){let t=new a(e);if(e instanceof a)return t.coordinates=e.coordinates.map(e=>e.clone()),t._exporter=(t,r)=>{let i=e.clone(t);return i.spatialReference=r,i},t;switch(e.type){case"point":{let r=e,{hasZ:i,hasM:s}=r;return t.coordinates=i&&s?[new l(r.x,r.y,r.z,r.m)]:i?[new l(r.x,r.y,r.z)]:s?[new l(r.x,r.y,null,r.m)]:[new l(r.x,r.y)],t._exporter=(t,r)=>e.hasM?new n.A(t[0].x,t[0].y,t[0].z,t[0].m,r):new n.A(t[0].x,t[0].y,t[0].z,r),t}case"multipoint":{let r=e,{hasZ:n,hasM:s}=r;return t.coordinates=n&&s?r.points.map(e=>new l(e[0],e[1],e[2],e[3])):n?r.points.map(e=>new l(e[0],e[1],e[2])):s?r.points.map(e=>new l(e[0],e[1],null,e[2])):r.points.map(e=>new l(e[0],e[1])),t._exporter=(t,r)=>e.hasM?new i.A({points:t.map(e=>[e.x,e.y,e.z??0,e.m??0]),hasZ:!0,hasM:!0,spatialReference:r}):new i.A({points:t.map(e=>[e.x,e.y,e.z??0]),spatialReference:r}),t}case"polyline":{let r=e,i=[],n=[],{hasZ:o,hasM:a}=e,u=0;for(let e of r.paths)if(n.push([u,u+e.length]),u+=e.length,o&&a)for(let t of e)i.push(new l(t[0],t[1],t[2],t[3]));else if(o)for(let t of e)i.push(new l(t[0],t[1],t[2]));else if(a)for(let t of e)i.push(new l(t[0],t[1],null,t[2]));else for(let t of e)i.push(new l(t[0],t[1]));return t.coordinates=i,t._exporter=(t,r)=>{let i=e.hasM?t.map(e=>[e.x,e.y,e.z??0,e.m??0]):t.map(e=>[e.x,e.y,e.z??0]),o=n.map(e=>i.slice(e[0],e[1]));return new s.A({paths:o,hasM:e.hasM,hasZ:!0,spatialReference:r})},t}}}}class l{constructor(e,t,r=null,i=null,n=null,s=null){this.x=e,this.y=t,this.z=r,this.m=i,this.tile=n,this.elevationTile=s}clone(){return new l(this.x,this.y,this.z,this.m)}}},41628(e,t,r){r.d(t,{A:()=>l});var i,n=r(32198),s=r(91429),o=r(76357),a=r(93223);let l=class extends o.A{static{i=this}constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new i({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,n.Cg)([(0,s.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,r){t[r]=[this.minValue||0,e]},isRequired:!0}}})],l.prototype,"maxValue",void 0),(0,n.Cg)([(0,s.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,r){t[r]=[e,this.maxValue||0]},isRequired:!0}}})],l.prototype,"minValue",void 0),(0,n.Cg)([(0,a.e)({range:"range"})],l.prototype,"type",void 0),l=i=(0,n.Cg)([(0,s.$K)("esri.layers.support.RangeDomain")],l)},57984(e,t,r){r.d(t,{C:()=>h});var i=r(32198),n=r(53966),s=r(86211),o=r(91429),a=r(16930),l=r(19419),u=r(7236);let h=class extends u.A{get spatialReference(){return this.extent.spatialReference}constructor(e){let t=e.noDataValue,r="tiles"in e?e.tiles.map(r=>new c({tile:r,tileInfo:e.tileInfo,noDataValue:t})):e.samplers;super({noDataValue:t,samplers:r});let i=r[0];if(i){this.extent=i.extent.clone();let{min:e,max:t}=i.demResolution;this.demResolution={min:e,max:t};for(let e=1;e<r.length;e++){let t=r[e];this.extent.union(t.extent),this.demResolution.min=Math.min(this.demResolution.min,t.demResolution.min),this.demResolution.max=Math.max(this.demResolution.max,t.demResolution.max)}}else{let t="tileInfo"in e?e.tileInfo:null;this.extent=(0,l.w1)((0,l.vt)(),t?.spatialReference??a.A.WGS84),this.demResolution={min:0,max:0}}}elevationAt(e,t){let r;for(let i of this.samplers)if(i.containsAt(e,t)&&(r=i.elevationAt(e,t),r!==i.noDataValue))return r;return r??(n.A.getLogger(this).warn("#elevationAt()",`Point used to sample elevation (${e}, ${t}) is outside of the sampler`),this.noDataValue)}};(0,i.Cg)([(0,o.MZ)({constructOnly:!0})],h.prototype,"noDataValue",void 0),(0,i.Cg)([(0,o.MZ)({constructOnly:!0})],h.prototype,"samplers",void 0),h=(0,i.Cg)([(0,o.$K)("esri.layers.support.TileElevationSampler")],h);let c=class extends u.A{get spatialReference(){return this.extent.spatialReference}constructor(e){super(e);let t=e.tile.key.extent;this.extent=(0,l.w1)(t,e.tileInfo.spatialReference),this.extent.zmin=e.tile.zmin,this.extent.zmax=e.tile.zmax;let r=(0,s.GA)(e.tileInfo.spatialReference),i=e.tileInfo.lodAt(e.tile.key.level).resolution*r;this.demResolution={min:i,max:i}}contains(e){let t=this.projectIfRequired(e,this.spatialReference);return null!=t&&this.containsAt(t.x,t.y)}containsAt(e,t){return(0,l.Rj)(this.tile.key.extent,e,t)}elevationAt(e,t){return this.containsAt(e,t)?this.tile.sample(e,t)??this.noDataValue:this.noDataValue}};(0,i.Cg)([(0,o.MZ)({constructOnly:!0})],c.prototype,"tile",void 0),(0,i.Cg)([(0,o.MZ)({constructOnly:!0})],c.prototype,"noDataValue",void 0),(0,i.Cg)([(0,o.MZ)({constructOnly:!0})],c.prototype,"tileInfo",void 0),c=(0,i.Cg)([(0,o.$K)("esri.layers.support.TileElevationSampler.SingleTileElevationSampler")],c)},8631(e,t,r){r.d(t,{r:()=>d,g:()=>c});var i,n=r(53177),s=r(76357),o=r(32198),a=r(91429),l=r(93223);let u=class extends s.A{static{i=this}constructor(e){super(e),this.type="inherited"}clone(){return new i}};(0,o.Cg)([(0,l.e)({inherited:"inherited"})],u.prototype,"type",void 0),u=i=(0,o.Cg)([(0,a.$K)("esri.layers.support.InheritedDomain")],u);var h=r(41628);const c={key:"type",base:s.A,typeMap:{range:h.A,"coded-value":n.A,inherited:u}};function d(e){if(!e?.type)return null;switch(e.type){case"range":return h.A.fromJSON(e);case"codedValue":return n.A.fromJSON(e);case"inherited":return u.fromJSON(e)}return null}},98453(e,t,r){const i=new(r(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"});r.d(t,["m",0,i])},77548(e,t,r){r.d(t,{Gh:()=>E,tk:()=>A,BR:()=>T,p2:()=>b,qd:()=>R,wI:()=>M,G$:()=>Z,$x:()=>S,Ov:()=>_,cM:()=>d,UC:()=>p,Qz:()=>f,OP:()=>P,TU:()=>v,F2:()=>m,XX:()=>y,Qi:()=>w,jy:()=>x});var i=r(70333),n=r(56507),s=r(7762),o=(r(84952),r(36563)),a=r(36708),l=r(4146);const u=new WeakMap;function h(e){return!e.destroyed&&(u.has(e)||e.addHandles([(0,a.wB)(()=>{let{parent:t}=e;return!!(t&&t instanceof l.A)&&("catalog-dynamic-group"===t.type||h(t))},t=>u.set(e,t),a.pc),(0,o.hA)(()=>u.delete(e))]),u.get(e))}function c(e,t){return"object"==typeof e&&!!e&&"type"in e&&e.type===t}function d(e){return c(e,"knowledge-graph")&&"layers"in e}function p(e){return c(e,"knowledge-graph-sublayer")}function f(e){return c(e,"link-chart")&&"layers"in e}function m(e){return c(e,"subtype-group")&&"sublayers"in e}function g(e){let t=e.parent;return function(e){return"group"===e?.type}(t)&&t.tables.includes(e)}r(16215);const y={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};function v(e){let t=e?.type;return"building-scene"===t||"integrated-mesh"===t||"point-cloud"===t||"scene"===t}function _(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function w(e){return"object"==typeof e&&!!e&&"featureReduction"in e}function x(e){return function(e){return c(e,"catalog-footprint")}(e)||function(e){return c(e,"feature")}(e)&&function(e){return"feature"===e?.type&&"feature-layer"===e.source?.type}(e)||function(e){return c(e,"oriented-imagery")}(e)||function(e){return"subtype-sublayer"===e?.type}(e)}function C(e){let t=e?.type;return"binning"===t||"cluster"===t}function b(e,t){if(!x(e))return;let r=t?.graphic,i="featureReduction"in e?e.featureReduction:null;if(r){if(r.isAggregate){let e=r.origin;return e&&"featureReductionProvider"in e&&i?C(i)?i:null:void 0}return e}return t?.checkFeatureReduction&&i?C(i)?i:null:e}async function M(e,t){let r=i.id?.findServerInfo(e);if(null!=r?.currentVersion)return r.owningSystemUrl||null;let s=e.toLowerCase().indexOf("/rest/services");if(-1===s)return null;let o=`${e.slice(0,s)}/rest/info`,a=null==t?null:t.signal,{data:l}=await(0,n.A)(o,{query:{f:"json"},responseType:"json",signal:a});return l?.owningSystemUrl||null}function T(e){return function(e){if(!("capabilities"in e))return!1;switch(e.type){case"annotation-feature":case"catalog":case"catalog-footprint":case"csv":case"dimension-feature":case"feature":case"geojson":case"imagery":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"parquet":case"scene":case"sublayer":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}(e)?"effectiveCapabilities"in e?e.effectiveCapabilities:e.capabilities:null}function A(e){return!!function(e){if(!("editingEnabled"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":case"knowledge-graph-sublayer":return!0;default:return!1}}(e)&&("effectiveEditingEnabled"in e?e.effectiveEditingEnabled:e.editingEnabled)}function R(e){let t=new s.A;for(let r of e.allLayers.concat(e.allTables))h(r)||g(r)||"annotation-feature"===r.type||"dimension-feature"===r.type||("charts"in r&&t.push(r),"subtype-group"===r.type&&t.push(...r.sublayers));return t}function S(e,t){return null}function Z(e){return null}function P(e){return!e||"Feature Service"===e.type&&!e.sourceUrl}function E(e,t){if(!t||!P(e))return;let r=(e.url,null);r&&(e.url=r)}},38969(e,t,r){r.d(t,{i:()=>n});var i=r(37955);function n(e,t){return new Promise((r,n)=>{e.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA?r():(t((0,i.Oo)(e,"canplay",r)),t((0,i.Oo)(e,"error",n)))})}},73133(e,t,r){const i=(0,r(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:"unknown"});r.d(t,["j",0,i])},7861(e,t,r){r.d(t,{L:()=>n});var i=r(56507);async function n(e,t){return(await(0,i.A)(e,{responseType:"json",query:{f:"json",...t?.customParameters,token:t?.apiKey}})).data}},16215(e,t,r){r.d(t,{S:()=>n});const i=Symbol("BasemapInstance");function n(e){return"object"==typeof e&&!!e&&i in e}r.d(t,["Y",0,i])},79677(e,t,r){r.d(t,{A:()=>c});var i,n=r(32198),s=r(25482),o=r(88930),a=r(91429),l=(r(98623),r(10184)),u=r(36005),h=r(43937);let c=class extends s.o{static{i=this}static get allTime(){return d}static get empty(){return p}static fromArray(e){return new i({start:null==e[0]?e[0]:new Date(e[0]),end:null==e[1]?e[1]:new Date(e[1])})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null==t.end?null:new Date(t.end)}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(i.allTime)}get isEmpty(){return this.equals(i.empty)}readStart(e,t){return null==t.start?null:new Date(t.start)}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new i({end:this.end,start:this.start})}equals(e){if(!e)return!1;let t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,i=e.start?.getTime()??e.start,n=e.end?.getTime()??e.end;return t===i&&r===n}expandTo(e,t="system"){if(this.isEmpty||this.isAllTime||"unknown"===e)return this.clone();let r=this.start;r&&=(0,o.lL)(r,new l.A({value:1,unit:e}),t);let n=this.end;if(n){let r=(0,o.lL)(n,new l.A({value:1,unit:e}),t);n=n.getTime()===r.getTime()?r:(0,o.S1)(r,1,e,t)}return new i({start:r,end:n})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return i.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();let t,r,n=this.start?.getTime()??-1/0,s=this.end?.getTime()??1/0,o=e.start?.getTime()??-1/0,a=e.end?.getTime()??1/0;return o>=n&&o<=s?t=o:n>=o&&n<=a&&(t=n),s>=o&&s<=a?r=s:a>=n&&a<=s&&(r=a),null==t||null==r||isNaN(t)||isNaN(r)?i.empty:new i({start:t===-1/0?null:new Date(t),end:r===1/0?null:new Date(r)})}offset(e,t,r="system"){if(this.isEmpty||this.isAllTime||"unknown"===t)return this.clone();let n=new i,{start:s,end:a}=this;return null!=s&&(n.start=(0,o.S1)(s,e,t,r)),null!=a&&(n.end=(0,o.S1)(a,e,t,r)),n}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return d.clone();let t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new i({start:t,end:r})}};(0,n.Cg)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],c.prototype,"end",void 0),(0,n.Cg)([(0,u.w)("end")],c.prototype,"readEnd",null),(0,n.Cg)([(0,h.K)("end")],c.prototype,"writeEnd",null),(0,n.Cg)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],c.prototype,"isAllTime",null),(0,n.Cg)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],c.prototype,"isEmpty",null),(0,n.Cg)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],c.prototype,"start",void 0),(0,n.Cg)([(0,u.w)("start")],c.prototype,"readStart",null),(0,n.Cg)([(0,h.K)("start")],c.prototype,"writeStart",null),c=i=(0,n.Cg)([(0,a.$K)("esri.time.TimeExtent")],c);const d=new c,p=new c({start:void 0,end:void 0})},10184(e,t,r){r.d(t,{A:()=>h});var i=r(32198),n=r(69540),s=r(25482),o=r(88930),a=r(91429),l=r(73133),u=r(93223);let h=class extends((0,n.OU)(s.o)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,o.t)(this.value,this.unit,"milliseconds")}};(0,i.Cg)([(0,u.e)(l.j,{nonNullable:!0})],h.prototype,"unit",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0},nonNullable:!0})],h.prototype,"value",void 0),h=(0,i.Cg)([(0,a.$K)("esri.time.TimeInterval")],h)},32728(e,t,r){r.d(t,{YH:()=>o,nu:()=>a,wp:()=>s}),r(34727);var i=r(35522),n=r(51850);function s(e,t){let r=Math.sqrt(t[0]*t[0]+t[4]*t[4]+t[8]*t[8]),n=Math.sqrt(t[1]*t[1]+t[5]*t[5]+t[9]*t[9]),s=Math.sqrt(t[2]*t[2]+t[6]*t[6]+t[10]*t[10]);return(0,i.hZ)(e,r,n,s),e}function o(e,t,r){r||=e;let n=(0,i.Om)(e,t);(0,i.hZ)(r,e[0]-n*t[0],e[1]-n*t[1],e[2]-n*t[2]),(0,i.S8)(r,r)}function a(e,t,r,s=(0,n.vt)()){let o=(0,i.Bw)(e),a=(0,i.Bw)(t),h=(0,i.Om)(e,t)/(o*a);if(h<.9999999999999999){let n=Math.acos(h),c=((1-r)*o+r*a)/Math.sin(n),d=c/o*Math.sin((1-r)*n),p=c/a*Math.sin(r*n);return(0,i.hs)(l,e,d),(0,i.hs)(u,t,p),(0,i.WQ)(s,l,u)}return(0,i.Cc)(s,e,t,r)}(0,n.vt)(),(0,n.vt)(),(0,n.vt)();const l=(0,n.vt)(),u=(0,n.vt)()},44012(e,t,r){r.r(t),r.d(t,{generateCombinationsPanoramicWorker:()=>T,generateCombinationsWorker:()=>M});var i=r(34727),n=r(17676);r(17799),r(69052),r(799),r(86211),r(18047),new Map,r(77690),r(29242),r(51850),r(37585),r(35522);var s=r(49186),o=(r(78888),r(86738),r(39829),r(82799),r(16930));r(34403),r(21325),r(99917),r(78125),r(85036),r(89506),r(77085),r(40427),r(965),(0,r(81150).f)(),r(4576),r(87811);var a=r(53966),l=(r(44208),r(27921),r(5443));r(83276),r(19419),r(38732),r(87772),r(23281),r(1359),r(87378),r(22796),r(57984),r(87045),r(72802),r(7861);const u=[1920,1080],h={xmin:-150,ymin:1,xmax:20,ymax:80,spatialReference:{wkid:4326}},c=(o.A.fromJSON(h.spatialReference),.001);new l.A({xmin:h.xmin+c,ymin:h.ymin+c,xmax:h.xmax-c,ymax:h.ymax-c,spatialReference:h.spatialReference}),(0,i.KJ)(Math.acos(.05));var d=r(32198),p=r(97768),f=r(61893),m=r(10107),g=r(64108);let y=class extends f.Z{constructor(e){super(e),this.autoLoad=!1,this.customParameters=null,this.datasetFormat=null,this.url=null,this.rotation=null}destroy(){this._cache=(0,p.pR)(this._cache)}get layer(){return this._cache}get size(){if(!this._cache?.loaded||!this._cache.serviceRasterInfo)return;let{serviceRasterInfo:e}=this._cache;return[e.width,e.height]}async load(e){if(this._cache?.loaded)return await this._cache.load(e),{layer:this._cache,size:this.size};let{url:t,customParameters:i}=this,s=this.datasetFormat;if(!t)throw Error("URL is required to load NonPanoramicMedia.");let o=await r.e(7835).then(()=>r(97835));if((0,n.Te)(e),s||=o.guessExtensionFromURI(t),!s){try{s=await o.getDatasetFormat(t)}catch(e){a.A.getLogger(this).warn("non-panoramic-media:dataset-format",e)}(0,n.Te)(e)}s??="UNKNOWN FORMAT",this.datasetFormat=s;let l=(await Promise.all([r.e(2754),r.e(9235),r.e(3500),r.e(1003),r.e(2806),r.e(124)]).then(()=>r(90124))).default;(0,n.Te)(e),this._cache=new l({url:t,ioConfig:{skipExtensions:["aux.xml","jgw"],skipMapInfo:!0,datasetFormat:s},customParameters:i??void 0});let u=this._cache.load(e);return this.addResolvingPromise(u),await u,(0,n.Te)(e),{layer:this._cache,size:this.size}}};(0,d.Cg)([(0,m.MZ)()],y.prototype,"_cache",void 0),(0,d.Cg)([(0,m.MZ)()],y.prototype,"autoLoad",void 0),(0,d.Cg)([(0,m.MZ)()],y.prototype,"customParameters",void 0),(0,d.Cg)([(0,m.MZ)()],y.prototype,"datasetFormat",void 0),(0,d.Cg)([(0,m.MZ)()],y.prototype,"url",void 0),(0,d.Cg)([(0,m.MZ)()],y.prototype,"layer",null),(0,d.Cg)([(0,m.MZ)()],y.prototype,"rotation",void 0),(0,d.Cg)([(0,m.MZ)()],y.prototype,"size",null),y=(0,d.Cg)([(0,g.$)("esri.widgets.OrientedImageryViewer.support.NonPanoramicMedia")],y);var v=r(37955),_=r(38969);class w extends s.A{constructor(e,t,r){super(e,t,r),this.name="unknown",this.name=e}}const x=new Set(["JPG","JPEG","TIFF","TIF","MRF"]),C=new Set(["MRF","TIFF","TIF"]);let b=class extends f.Z{constructor(e){super(e),this._size=[0,0],this._cache=null,this.autoLoad=!1,this.cameraHeading=null,this.extension=null,this.imagePyramid=null,this.type="image",this.uiStrings={}}destroy(){this._cache=null}get horizonPitch(){let{matrix:e}=this;return e?(0,i.KJ)(Math.asin(-e[6])):0}get horizonRoll(){let{matrix:e}=this;return e?(0,i.KJ)(Math.atan(e[7]/e[8])):0}get horizonYaw(){let{matrix:e,cameraHeading:t}=this;return e?(0,i.KJ)(Math.atan2(e[3],e[0])):t?-t:0}get size(){return this._size}async load(e){let{guessExtensionFromURI:t}=await r.e(7835).then(()=>r(97835));if((0,n.Te)(e),"video"===this.type)return this.loadVideoMesh(e);let i=this.extension;if(i||=t(this.url),!i||!x.has(i))throw new w("unsupported-format",this.uiStrings["unsupported-format"]??"Unsupported image format: {extension}",{datasetFormat:i??"UNKNOWN FORMAT"});return C.has(i)?this.loadOptimizedImageMesh(e):this.loadImageMesh(e)}async loadOptimizedImageMesh(e){let{loadMeshes:t,loadPyramid:i,loadRaster:s}=await Promise.all([r.e(2258),r.e(118),r.e(3494)]).then(()=>r(21060)),o=await s(this.url,e);(0,n.Te)(e),this.imagePyramid=await i(o,{pitch:this.horizonPitch,yaw:this.horizonYaw,roll:this.horizonRoll},e),(0,n.Te)(e);let a=this.imagePyramid.getLowResolutionTiles(),l=await t(a,e);return(0,n.Te)(e),this._size=this.imagePyramid.imageSize,{meshOrMeshes:l,size:this._size,tileKeys:a?.map(e=>e.key)}}async loadVideoMesh(e){let{createImageSphere:t}=await Promise.all([r.e(2258),r.e(118),r.e(3494)]).then(()=>r(21060));if((0,n.Te)(e),this._cache){let r=await t({data:this._cache,horizonPitch:this.horizonPitch,horizonRoll:this.horizonRoll,horizonYaw:this.horizonYaw}).load(e);return(0,n.Te)(e),{meshOrMeshes:r,size:this._size}}let i=await this._resolveMedia(e);(0,n.Te)(e),this._cache=i.media,this._size=[...u];let s=await t({data:this._cache,horizonPitch:this.horizonPitch,horizonRoll:this.horizonRoll,horizonYaw:this.horizonYaw}).load(e);return(0,n.Te)(e),{meshOrMeshes:s,size:this._size}}async loadImageMesh(e){let{createImageSphere:t}=await Promise.all([r.e(2258),r.e(118),r.e(3494)]).then(()=>r(21060));if((0,n.Te)(e),this._cache){let r=await t({data:this._cache,horizonPitch:this.horizonPitch,horizonRoll:this.horizonRoll,horizonYaw:this.horizonYaw}).load(e);return(0,n.Te)(e),{meshOrMeshes:r,size:this._size}}let i=await this._resolveMedia(e);(0,n.Te)(e),this._cache=i.media;let s=i.mesh;return this._size=[i.media.width,i.media.height],{meshOrMeshes:s,size:this._size}}async _resolveMedia(e){let t=Promise.withResolvers(),i=(0,n.u7)(e?.signal,t.resolve),s="video"===this.type?document.createElement("video"):document.createElement("img");s.crossOrigin="anonymous",s.src=this.url;let o=null,a="video"===this.type?(0,_.i)(s,this.addHandles):await new Promise((e,t)=>{o=[(0,v.on)(s,"error",e=>{t(e)}),(0,v.on)(s,"load",e)]}).finally(()=>{o?.forEach(e=>e.remove()),o=null}),l=Promise.race([a,t.promise]);this.addResolvingPromise(l);try{await l}finally{i?.remove()}(0,n.Te)(e);let u=s;if(!u)throw new w("unknown","Could not load media",{url:this.url});let{createImageSphere:h}=await Promise.all([r.e(2258),r.e(118),r.e(3494)]).then(()=>r(21060));(0,n.Te)(e);let c=await h({data:s,horizonPitch:this.horizonPitch,horizonRoll:this.horizonRoll,horizonYaw:this.horizonYaw}).load(e);return(0,n.Te)(e),{media:u,mesh:c}}};function M(e){return function(e,t){let{cameraPitch:r,cameraRoll:i,cameraLocation:n}=e,{x:s,y:o,z:a,spatialReference:l}=n;if(t.every(e=>0===e)||!t||!t.length||!l)throw Error("Invalid parameters");let[u,h,,c,d]=t,p=[-c,0,c],f=[-d,0,d],m=[-u,0,u],g=[-h,0,h],y=[];for(let t of p)for(let n of f)for(let u of m)for(let h of m)for(let c of g){let d={...e};d.cameraPitch=r+t,d.cameraRoll=i+n,d.cameraLocation={x:s+u,y:o+h,z:a?a+c:0,spatialReference:{wkid:l.wkid}},y.push(d)}return y}(e.imageToWorldProps,e.accuracyParameters)}function T(e){return function(e,t){let{cameraHeading:r,cameraLocation:i}=e,{x:n,y:s,z:o,spatialReference:a}=i;if(!t||t.every(e=>0===e)||!t.length||!a)throw Error("Invalid parameters");let[l,u,h]=t,c=h>0?[-h,0,h]:[],d=l>0?[-l,0,l]:[],p=u>0?[-u,0,u]:[],f=[];for(let t of c)for(let i of d)for(let l of d)for(let u of p){let h={...e};h.cameraHeading=r+t,h.cameraLocation={x:n+i,y:s+l,z:o?o+u:0,spatialReference:{wkid:a.wkid}},f.push(h)}return f}(e.imageToWorldProps,e.accuracyParameters)}(0,d.Cg)([(0,m.MZ)()],b.prototype,"_size",void 0),(0,d.Cg)([(0,m.MZ)()],b.prototype,"autoLoad",void 0),(0,d.Cg)([(0,m.MZ)()],b.prototype,"cameraHeading",void 0),(0,d.Cg)([(0,m.MZ)()],b.prototype,"extension",void 0),(0,d.Cg)([(0,m.MZ)()],b.prototype,"horizonPitch",null),(0,d.Cg)([(0,m.MZ)()],b.prototype,"horizonRoll",null),(0,d.Cg)([(0,m.MZ)()],b.prototype,"horizonYaw",null),(0,d.Cg)([(0,m.MZ)()],b.prototype,"id",void 0),(0,d.Cg)([(0,m.MZ)()],b.prototype,"imagePyramid",void 0),(0,d.Cg)([(0,m.MZ)()],b.prototype,"matrix",void 0),(0,d.Cg)([(0,m.MZ)()],b.prototype,"size",null),(0,d.Cg)([(0,m.MZ)()],b.prototype,"type",void 0),(0,d.Cg)([(0,m.MZ)()],b.prototype,"uiStrings",void 0),(0,d.Cg)([(0,m.MZ)()],b.prototype,"url",void 0),b=(0,d.Cg)([(0,g.$)("esri.widgets.PanoramicViewer.support.PanoramicMedia")],b),r(9093),r(91829),r(58083),r(79258),r(73354),r(63490),r(28208),r(28735)},28208(e,t,r){var i=r(86738),n=r(16930);const s=new i.A({x:0,y:0,z:0,spatialReference:n.A.WebMercator});r.d(t,["NU",0,.3515625,"ZH",0,s])}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3354,9038],{32198(t,e,n){function r(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}function i(t,e,n){if(null!=e){if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("Object expected.");var r,i;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=e[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=e[Symbol.dispose],n&&(i=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");i&&(r=function(){try{i.call(this)}catch(t){return Promise.reject(t)}}),t.stack.push({value:e,dispose:r,async:n})}else n&&t.stack.push({async:!0});return e}n.d(e,{Cg:()=>r,hk:()=>o,mS:()=>i}),Object.create,Object.create;var a="function"==typeof SuppressedError?SuppressedError:function(t,e,n){var r=new Error(n);return r.name="SuppressedError",r.error=t,r.suppressed=e,r};function o(t){function e(e){t.error=t.hasError?new a(e,t.error,"An error was suppressed during disposal."):e,t.hasError=!0}var n,r=0;return function i(){for(;n=t.stack.pop();)try{if(!n.async&&1===r)return r=0,t.stack.push(n),Promise.resolve().then(i);if(n.dispose){var a=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(a).then(i,function(t){return e(t),i()})}else r|=1}catch(t){e(t)}if(1===r)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}},11006(t,e,n){function r(t,e,n,r,a){i(t,e,n||0,r||t.length-1,a||o)}function i(t,e,n,r,o){for(;r>n;){if(r-n>600){var s=r-n+1,u=e-n+1,l=Math.log(s),h=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*h*(s-h)/s)*(u-s/2<0?-1:1);i(t,e,Math.max(n,Math.floor(e-u*h/s+c)),Math.min(r,Math.floor(e+(s-u)*h/s+c)),o)}var f=t[e],p=n,M=r;for(a(t,n,e),o(t[r],f)>0&&a(t,n,r);p<M;){for(a(t,p,M),p++,M--;o(t[p],f)<0;)p++;for(;o(t[M],f)>0;)M--}0===o(t[n],f)?a(t,n,M):a(t,++M,r),M<=e&&(n=M+1),e<=M&&(r=M-1)}}function a(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function o(t,e){return t<e?-1:+(t>e)}n.d(e,{q:()=>r})},73354(t,e,n){n.d(e,{a:()=>c,b:()=>s,c:()=>i,d:()=>o,e:()=>f,f:()=>h,l:()=>l,n:()=>p,t:()=>a}),n(44208);var r=n(72727);function i(t,e,n){a(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function a(t,e,n,i=3,a=i){let o=(0,r.k)(t.length,i,3),s=(0,r.k)(e.length,a,3),u=Math.min(o,s),l=n[0],h=n[1],c=n[2],f=n[4],p=n[5],M=n[6],m=n[8],d=n[9],y=n[10],g=n[12],b=n[13],x=n[14],v=0,_=0;for(let n=0;n<u;n++){let n=e[v],r=e[v+1],o=e[v+2];t[_]=l*n+f*r+m*o+g,t[_+1]=h*n+p*r+d*o+b,t[_+2]=c*n+M*r+y*o+x,v+=a,_+=i}return t}function o(t,e,n){s(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function s(t,e,n,i=3,a=i){let o=(0,r.k)(t.length,i,3),s=(0,r.k)(e.length,a,3),u=Math.min(o,s),l=n[0],h=n[1],c=n[2],f=n[3],p=n[4],M=n[5],m=n[6],d=n[7],y=n[8],g=0,b=0;for(let n=0;n<u;n++){let n=e[g],r=e[g+1],o=e[g+2];t[b]=l*n+f*r+m*o,t[b+1]=h*n+p*r+d*o,t[b+2]=c*n+M*r+y*o,g+=a,b+=i}}function u(t,e,n,r=3,i=r){let a=Math.min(t.length/r,e.length/i),o=0,s=0;for(let u=0;u<a;u++)t[s]=n*e[o],t[s+1]=n*e[o+1],t[s+2]=n*e[o+2],o+=i,s+=r;return t}function l(t,e,n,r){h(t.typedBuffer,e.typedBuffer,n,r,t.typedBufferStride,e.typedBufferStride)}function h(t,e,n,r,i=3,a=i){let o=Math.min(t.length/i,e.length/a),s=0,u=0,l=1/2.2;for(let h=0;h<o;h++)t[u]=r*(n*e[s])**l,t[u+1]=r*(n*e[s+1])**l,t[u+2]=r*(n*e[s+2])**l,s+=a,u+=i}function c(t,e,n,i=3,a=i){let o=(0,r.k)(t.length,i,3),s=(0,r.k)(e.length,a,3),u=Math.min(o,s),l=0,h=0;for(let r=0;r<u;r++)t[h]=e[l]+n[0],t[h+1]=e[l+1]+n[1],t[h+2]=e[l+2]+n[2],l+=a,h+=i;return t}function f(t,e){p(t.typedBuffer,e.typedBuffer,t.typedBufferStride,e.typedBufferStride)}function p(t,e,n=3,r=n){let i=Math.min(t.length/n,e.length/r),a=0,o=0;for(let s=0;s<i;s++){let i=e[a],s=e[a+1],u=e[a+2],l=i*i+s*s+u*u;if(l>0){let e=1/Math.sqrt(l);t[o]=e*i,t[o+1]=e*s,t[o+2]=e*u}a+=r,o+=n}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:h,linearToSRGBView:l,normalize:p,normalizeView:f,scale:u,scaleView:function(t,e,n){u(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)},shiftRight:function(t,e,n){let r=Math.min(t.count,e.count),i=t.typedBuffer,a=t.typedBufferStride,o=e.typedBuffer,s=e.typedBufferStride,u=0,l=0;for(let t=0;t<r;t++)i[l]=o[u]>>n,i[l+1]=o[u+1]>>n,i[l+2]=o[u+2]>>n,u+=s,l+=a},transformMat3:s,transformMat3View:o,transformMat4:a,transformMat4View:i,translate:c},Symbol.toStringTag,{value:"Module"}))},69540(t,e,n){var r=n(32198),i=n(69622),a=(n(44208),n(4718)),o=(n(53966),n(97768)),s=n(88620),u=n(64108);const l=Symbol("ClonableMixin"),h=t=>{var e;let n=t,i=class extends n{constructor(){super(...arguments),this[e]=!0}static{e=l}clone(t){let e=(0,s.oY)(this);(0,o.Lw)(e,"unable to clone instance of non-accessor class");let n=e.metadata,r=e.store,i={},u=new Map;for(let e in n){let o=n[e],s=r?.originOf(e),l=o.clonable;if(o.readOnly||!1===l||7!==s&&0!==s&&5!==s&&4!==s)continue;let h=this[e],c=null;if("function"==typeof l)c=l(h,t);else if("reference"===l)c=h;else if(c=(0,a.TU)(h,t),null!=h&&null==c)continue;0===s?u.set(e,c):i[e]=c}let l=new(0,Object.getPrototypeOf(this).constructor)(i);if(u.size){let t=(0,s.oY)(l)?.store;if(t)for(let[e,n]of u)t.set(e,n,0)}return l}};return i=(0,r.Cg)([(0,u.$)("esri.core.Clonable")],i),i},c=h(i.A);n.d(e,["OU",0,h,"Pw",0,c])},95488(t,e,n){n.d(e,{I:()=>i});var r=n(11406);class i extends r.T{notify(){let t=this._observers;if(t&&t.length>0){let e=t.slice();for(let t of e)t.onInvalidated(),t.onCommitted()}}}},9093(t,e,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}n.d(e,{o8:()=>i,vt:()=>r});const a=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:i,create:r,fromValues:function(t,e,n,r,i,a,o,s,u,l,h,c,f,p,M,m){return[t,e,n,r,i,a,o,s,u,l,h,c,f,p,M,m]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["zK",0,a])},48163(t,e,n){function r(){return[0,0]}function i(t){return[t[0],t[1]]}function a(t,e){return[t,e]}function o(){return a(1,1)}function s(){return a(-1,-1)}function u(){return a(1,0)}function l(){return a(0,1)}n.d(e,{fA:()=>a,o8:()=>i,vt:()=>r});const h=o(),c=s(),f=u(),p=l();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:c,ONES:h,UNIT_X:f,UNIT_Y:p,ZEROS:[0,0],clone:i,create:r,freeze:function(t,e){return[t,e]},fromArray:function(t,e=[0,0]){let n=Math.min(2,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e},fromValues:a,negativeOnes:s,ones:o,unitX:u,unitY:l,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["IA",0,c,"Un",0,h])},91829(t,e,n){function r(){return[0,0,0,0]}function i(t,e,n,r){return[t,e,n,r]}function a(){return i(1,1,1,1)}function o(){return i(1,0,0,0)}function s(){return i(0,1,0,0)}function u(){return i(0,0,1,0)}function l(){return i(0,0,0,1)}n.d(e,{_Y:()=>l,fA:()=>i,vt:()=>r});const h=[0,0,0,0],c=a(),f=o(),p=s(),M=u(),m=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_W:m,UNIT_X:f,UNIT_Y:p,UNIT_Z:M,ZEROS:h,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:r,freeze:function(t,e,n,r){return[t,e,n,r]},fromArray:function(t,e=[0,0,0,0]){let n=Math.min(4,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e},fromValues:i,ones:a,unitW:l,unitX:o,unitY:s,unitZ:u,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["Un",0,c,"uY",0,h])},58083(t,e,n){n.d(e,{$0:()=>y,$h:()=>P,B8:()=>h,C:()=>a,D_:()=>s,N9:()=>b,O7:()=>B,Qw:()=>l,Tl:()=>f,X_:()=>w,e$:()=>M,eL:()=>m,hM:()=>g,hZ:()=>o,hs:()=>p,kN:()=>d,l:()=>S,lw:()=>c,mg:()=>u,o1:()=>A,sC:()=>_,t2:()=>q,t5:()=>R,tZ:()=>X,ut:()=>Y});var r=n(51850),i=n(34304);function a(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function o(t,e,n,r,i,a,o,s,u,l,h,c,f,p,M,m,d){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=u,t[8]=l,t[9]=h,t[10]=c,t[11]=f,t[12]=p,t[13]=M,t[14]=m,t[15]=d,t}function s(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function u(t,e){if(t===e){let n=e[1],r=e[2],i=e[3],a=e[6],o=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=a,t[11]=e[14],t[12]=i,t[13]=o,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function l(t,e){return h(t,e)||s(t),t}function h(t,e){let n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],u=e[6],l=e[7],h=e[8],c=e[9],f=e[10],p=e[11],M=e[12],m=e[13],d=e[14],y=e[15],g=n*s-r*o,b=n*u-i*o,x=n*l-a*o,v=r*u-i*s,_=r*l-a*s,w=i*l-a*u,S=h*m-c*M,A=h*d-f*M,B=h*y-p*M,P=c*d-f*m,R=c*y-p*m,O=f*y-p*d,q=g*O-b*R+x*P+v*B-_*A+w*S;return q?(q=1/q,t[0]=(s*O-u*R+l*P)*q,t[1]=(i*R-r*O-a*P)*q,t[2]=(m*w-d*_+y*v)*q,t[3]=(f*_-c*w-p*v)*q,t[4]=(u*B-o*O-l*A)*q,t[5]=(n*O-i*B+a*A)*q,t[6]=(d*x-M*w-y*b)*q,t[7]=(h*w-f*x+p*b)*q,t[8]=(o*R-s*B+l*S)*q,t[9]=(r*B-n*R-a*S)*q,t[10]=(M*_-m*x+y*g)*q,t[11]=(c*x-h*_-p*g)*q,t[12]=(s*A-o*P-u*S)*q,t[13]=(n*P-r*A+i*S)*q,t[14]=(m*b-M*v-d*g)*q,t[15]=(h*v-c*b+f*g)*q,t):null}function c(t,e,n){let r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],u=e[5],l=e[6],h=e[7],c=e[8],f=e[9],p=e[10],M=e[11],m=e[12],d=e[13],y=e[14],g=e[15],b=n[0],x=n[1],v=n[2],_=n[3];return t[0]=b*r+x*s+v*c+_*m,t[1]=b*i+x*u+v*f+_*d,t[2]=b*a+x*l+v*p+_*y,t[3]=b*o+x*h+v*M+_*g,b=n[4],x=n[5],v=n[6],_=n[7],t[4]=b*r+x*s+v*c+_*m,t[5]=b*i+x*u+v*f+_*d,t[6]=b*a+x*l+v*p+_*y,t[7]=b*o+x*h+v*M+_*g,b=n[8],x=n[9],v=n[10],_=n[11],t[8]=b*r+x*s+v*c+_*m,t[9]=b*i+x*u+v*f+_*d,t[10]=b*a+x*l+v*p+_*y,t[11]=b*o+x*h+v*M+_*g,b=n[12],x=n[13],v=n[14],_=n[15],t[12]=b*r+x*s+v*c+_*m,t[13]=b*i+x*u+v*f+_*d,t[14]=b*a+x*l+v*p+_*y,t[15]=b*o+x*h+v*M+_*g,t}function f(t,e,n){let r=n[0],i=n[1],a=n[2];if(e===t)t[12]=e[0]*r+e[4]*i+e[8]*a+e[12],t[13]=e[1]*r+e[5]*i+e[9]*a+e[13],t[14]=e[2]*r+e[6]*i+e[10]*a+e[14],t[15]=e[3]*r+e[7]*i+e[11]*a+e[15];else{let n=e[0],o=e[1],s=e[2],u=e[3],l=e[4],h=e[5],c=e[6],f=e[7],p=e[8],M=e[9],m=e[10],d=e[11];t[0]=n,t[1]=o,t[2]=s,t[3]=u,t[4]=l,t[5]=h,t[6]=c,t[7]=f,t[8]=p,t[9]=M,t[10]=m,t[11]=d,t[12]=n*r+l*i+p*a+e[12],t[13]=o*r+h*i+M*a+e[13],t[14]=s*r+c*i+m*a+e[14],t[15]=u*r+f*i+d*a+e[15]}return t}function p(t,e,n){let r=n[0],i=n[1],a=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function M(t,e,n,r){let o=r[0],s=r[1],u=r[2],l=Math.sqrt(o*o+s*s+u*u);if(l<=(0,i.FD)())return void a(t,e);l=1/l,o*=l,s*=l,u*=l;let h=Math.sin(n),c=Math.cos(n),f=1-c,p=e[0],M=e[1],m=e[2],d=e[3],y=e[4],g=e[5],b=e[6],x=e[7],v=e[8],_=e[9],w=e[10],S=e[11],A=o*o*f+c,B=s*o*f+u*h,P=u*o*f-s*h,R=o*s*f-u*h,O=s*s*f+c,q=u*s*f+o*h,Y=o*u*f+s*h,X=s*u*f-o*h,I=u*u*f+c;t[0]=p*A+y*B+v*P,t[1]=M*A+g*B+_*P,t[2]=m*A+b*B+w*P,t[3]=d*A+x*B+S*P,t[4]=p*R+y*O+v*q,t[5]=M*R+g*O+_*q,t[6]=m*R+b*O+w*q,t[7]=d*R+x*O+S*q,t[8]=p*Y+y*X+v*I,t[9]=M*Y+g*X+_*I,t[10]=m*Y+b*X+w*I,t[11]=d*Y+x*X+S*I,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15])}function m(t,e,n){let r=Math.sin(n),i=Math.cos(n),a=e[4],o=e[5],s=e[6],u=e[7],l=e[8],h=e[9],c=e[10],f=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=a*i+l*r,t[5]=o*i+h*r,t[6]=s*i+c*r,t[7]=u*i+f*r,t[8]=l*i-a*r,t[9]=h*i-o*r,t[10]=c*i-s*r,t[11]=f*i-u*r,t}function d(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function y(t,e,n){if(0===e)return s(t);let r=n[0],a=n[1],o=n[2],u=Math.sqrt(r*r+a*a+o*o);if(u<=(0,i.FD)())return null;u=1/u,r*=u,a*=u,o*=u;let l=Math.sin(e),h=Math.cos(e),c=1-h;return t[0]=r*r*c+h,t[1]=a*r*c+o*l,t[2]=o*r*c-a*l,t[3]=0,t[4]=r*a*c-o*l,t[5]=a*a*c+h,t[6]=o*a*c+r*l,t[7]=0,t[8]=r*o*c+a*l,t[9]=a*o*c-r*l,t[10]=o*o*c+h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function g(t,e){let n=Math.sin(e),r=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function b(t,e){let n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function x(t,e,n){let r=e[0],i=e[1],a=e[2],o=e[3],s=r+r,u=i+i,l=a+a,h=r*s,c=r*u,f=r*l,p=i*u,M=i*l,m=a*l,d=o*s,y=o*u,g=o*l;return t[0]=1-(p+m),t[1]=c+g,t[2]=f-y,t[3]=0,t[4]=c-g,t[5]=1-(h+m),t[6]=M+d,t[7]=0,t[8]=f+y,t[9]=M-d,t[10]=1-(h+p),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}const v=(0,r.vt)();function _(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function w(t,e){let n=e[0],r=e[1],i=e[2],a=e[4],o=e[5],s=e[6],u=e[8],l=e[9],h=e[10];return t[0]=Math.sqrt(n*n+r*r+i*i),t[1]=Math.sqrt(a*a+o*o+s*s),t[2]=Math.sqrt(u*u+l*l+h*h),t}function S(t,e){let n=e[0]+e[5]+e[10],r=0;return n>0?(r=2*Math.sqrt(n+1),t[3]=.25*r,t[0]=(e[6]-e[9])/r,t[1]=(e[8]-e[2])/r,t[2]=(e[1]-e[4])/r):e[0]>e[5]&&e[0]>e[10]?(r=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/r,t[0]=.25*r,t[1]=(e[1]+e[4])/r,t[2]=(e[8]+e[2])/r):e[5]>e[10]?(r=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/r,t[0]=(e[1]+e[4])/r,t[1]=.25*r,t[2]=(e[6]+e[9])/r):(r=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/r,t[0]=(e[8]+e[2])/r,t[1]=(e[6]+e[9])/r,t[2]=.25*r),t}function A(t,e,n,r){let i=e[0],a=e[1],o=e[2],s=e[3],u=i+i,l=a+a,h=o+o,c=i*u,f=i*l,p=i*h,M=a*l,m=a*h,d=o*h,y=s*u,g=s*l,b=s*h,x=r[0],v=r[1],_=r[2];return t[0]=(1-(M+d))*x,t[1]=(f+b)*x,t[2]=(p-g)*x,t[3]=0,t[4]=(f-b)*v,t[5]=(1-(c+d))*v,t[6]=(m+y)*v,t[7]=0,t[8]=(p+g)*_,t[9]=(m-y)*_,t[10]=(1-(c+M))*_,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function B(t,e,n,r,i){let a=e[0],o=e[1],s=e[2],u=e[3],l=a+a,h=o+o,c=s+s,f=a*l,p=a*h,M=a*c,m=o*h,d=o*c,y=s*c,g=u*l,b=u*h,x=u*c,v=r[0],_=r[1],w=r[2],S=i[0],A=i[1],B=i[2],P=(1-(m+y))*v,R=(p+x)*v,O=(M-b)*v,q=(p-x)*_,Y=(1-(f+y))*_,X=(d+g)*_,I=(M+b)*w,C=(d-g)*w,T=(1-(f+m))*w;return t[0]=P,t[1]=R,t[2]=O,t[3]=0,t[4]=q,t[5]=Y,t[6]=X,t[7]=0,t[8]=I,t[9]=C,t[10]=T,t[11]=0,t[12]=n[0]+S-(P*S+q*A+I*B),t[13]=n[1]+A-(R*S+Y*A+C*B),t[14]=n[2]+B-(O*S+X*A+T*B),t[15]=1,t}function P(t,e,n,r,i,a,o){let s=1/(n-e),u=1/(i-r),l=1/(a-o);return t[0]=2*a*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*a*u,t[6]=0,t[7]=0,t[8]=(n+e)*s,t[9]=(i+r)*u,t[10]=(o+a)*l,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*a*2*l,t[15]=0,t}function R(t,e,n,r){let a=e[0],o=e[1],u=e[2],l=a-n[0],h=o-n[1],c=u-n[2],f=(0,i.FD)();if(Math.abs(l)<f&&Math.abs(h)<f&&Math.abs(c)<f)return void s(t);let p=1/Math.sqrt(l*l+h*h+c*c);l*=p,h*=p,c*=p;let M=r[0],m=r[1],d=r[2],y=m*c-d*h,g=d*l-M*c,b=M*h-m*l;p=Math.sqrt(y*y+g*g+b*b),p?(p=1/p,y*=p,g*=p,b*=p):(y=0,g=0,b=0);let x=h*b-c*g,v=c*y-l*b,_=l*g-h*y;p=Math.sqrt(x*x+v*v+_*_),p?(p=1/p,x*=p,v*=p,_*=p):(x=0,v=0,_=0),t[0]=y,t[1]=x,t[2]=l,t[3]=0,t[4]=g,t[5]=v,t[6]=h,t[7]=0,t[8]=b,t[9]=_,t[10]=c,t[11]=0,t[12]=-(y*a+g*o+b*u),t[13]=-(x*a+v*o+_*u),t[14]=-(l*a+h*o+c*u),t[15]=1}function O(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function q(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function Y(t){let e=(0,i.FD)(),n=t[0],r=t[1],a=t[2],o=t[4],s=t[5],u=t[6],l=t[8],h=t[9],c=t[10];return Math.abs(1-(n*n+o*o+l*l))<=e&&Math.abs(1-(r*r+s*s+h*h))<=e&&Math.abs(1-(a*a+u*u+c*c))<=e}function X(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[8]&&0===t[9]&&1===t[10]}const I=c,C=O;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t},adjoint:function(t,e){let n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],u=e[6],l=e[7],h=e[8],c=e[9],f=e[10],p=e[11],M=e[12],m=e[13],d=e[14],y=e[15];return t[0]=s*(f*y-p*d)-c*(u*y-l*d)+m*(u*p-l*f),t[1]=-(r*(f*y-p*d)-c*(i*y-a*d)+m*(i*p-a*f)),t[2]=r*(u*y-l*d)-s*(i*y-a*d)+m*(i*l-a*u),t[3]=-(r*(u*p-l*f)-s*(i*p-a*f)+c*(i*l-a*u)),t[4]=-(o*(f*y-p*d)-h*(u*y-l*d)+M*(u*p-l*f)),t[5]=n*(f*y-p*d)-h*(i*y-a*d)+M*(i*p-a*f),t[6]=-(n*(u*y-l*d)-o*(i*y-a*d)+M*(i*l-a*u)),t[7]=n*(u*p-l*f)-o*(i*p-a*f)+h*(i*l-a*u),t[8]=o*(c*y-p*m)-h*(s*y-l*m)+M*(s*p-l*c),t[9]=-(n*(c*y-p*m)-h*(r*y-a*m)+M*(r*p-a*c)),t[10]=n*(s*y-l*m)-o*(r*y-a*m)+M*(r*l-a*s),t[11]=-(n*(s*p-l*c)-o*(r*p-a*c)+h*(r*l-a*s)),t[12]=-(o*(c*d-f*m)-h*(s*d-u*m)+M*(s*f-u*c)),t[13]=n*(c*d-f*m)-h*(r*d-i*m)+M*(r*f-i*c),t[14]=-(n*(s*d-u*m)-o*(r*d-i*m)+M*(r*u-i*s)),t[15]=n*(s*f-u*c)-o*(r*f-i*c)+h*(r*u-i*s),t},copy:a,determinant:function(t){let e=t[0],n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],u=t[7],l=t[8],h=t[9],c=t[10],f=t[11],p=t[12],M=t[13],m=t[14],d=t[15];return(e*o-n*a)*(c*d-f*m)-(e*s-r*a)*(h*d-f*M)+(e*u-i*a)*(h*m-c*M)+(n*s-r*o)*(l*d-f*p)-(n*u-i*o)*(l*m-c*p)+(r*u-i*s)*(l*M-h*p)},equals:function(t,e){if(t===e)return!0;let n=t[0],r=t[1],a=t[2],o=t[3],s=t[4],u=t[5],l=t[6],h=t[7],c=t[8],f=t[9],p=t[10],M=t[11],m=t[12],d=t[13],y=t[14],g=t[15],b=e[0],x=e[1],v=e[2],_=e[3],w=e[4],S=e[5],A=e[6],B=e[7],P=e[8],R=e[9],O=e[10],q=e[11],Y=e[12],X=e[13],I=e[14],C=e[15],T=(0,i.FD)();return Math.abs(n-b)<=T*Math.max(1,Math.abs(n),Math.abs(b))&&Math.abs(r-x)<=T*Math.max(1,Math.abs(r),Math.abs(x))&&Math.abs(a-v)<=T*Math.max(1,Math.abs(a),Math.abs(v))&&Math.abs(o-_)<=T*Math.max(1,Math.abs(o),Math.abs(_))&&Math.abs(s-w)<=T*Math.max(1,Math.abs(s),Math.abs(w))&&Math.abs(u-S)<=T*Math.max(1,Math.abs(u),Math.abs(S))&&Math.abs(l-A)<=T*Math.max(1,Math.abs(l),Math.abs(A))&&Math.abs(h-B)<=T*Math.max(1,Math.abs(h),Math.abs(B))&&Math.abs(c-P)<=T*Math.max(1,Math.abs(c),Math.abs(P))&&Math.abs(f-R)<=T*Math.max(1,Math.abs(f),Math.abs(R))&&Math.abs(p-O)<=T*Math.max(1,Math.abs(p),Math.abs(O))&&Math.abs(M-q)<=T*Math.max(1,Math.abs(M),Math.abs(q))&&Math.abs(m-Y)<=T*Math.max(1,Math.abs(m),Math.abs(Y))&&Math.abs(d-X)<=T*Math.max(1,Math.abs(d),Math.abs(X))&&Math.abs(y-I)<=T*Math.max(1,Math.abs(y),Math.abs(I))&&Math.abs(g-C)<=T*Math.max(1,Math.abs(g),Math.abs(C))},exactEquals:q,frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},fromQuat:function(t,e){let n=e[0],r=e[1],i=e[2],a=e[3],o=n+n,s=r+r,u=i+i,l=n*o,h=r*o,c=r*s,f=i*o,p=i*s,M=i*u,m=a*o,d=a*s,y=a*u;return t[0]=1-c-M,t[1]=h+y,t[2]=f-d,t[3]=0,t[4]=h-y,t[5]=1-l-M,t[6]=p+m,t[7]=0,t[8]=f+d,t[9]=p-m,t[10]=1-l-c,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,e){let n=v,r=-e[0],i=-e[1],a=-e[2],o=e[3],s=e[4],u=e[5],l=e[6],h=e[7],c=r*r+i*i+a*a+o*o;return c>0?(n[0]=2*(s*o+h*r+u*a-l*i)/c,n[1]=2*(u*o+h*i+l*r-s*a)/c,n[2]=2*(l*o+h*a+s*i-u*r)/c):(n[0]=2*(s*o+h*r+u*a-l*i),n[1]=2*(u*o+h*i+l*r-s*a),n[2]=2*(l*o+h*a+s*i-u*r)),x(t,e,n),t},fromRotation:y,fromRotationTranslation:x,fromRotationTranslationScale:A,fromRotationTranslationScaleOrigin:B,fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:d,fromXRotation:g,fromYRotation:function(t,e){let n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:b,frustum:P,getRotation:S,getScale:w,getTranslation:_,hasIdentityRotation:X,identity:s,invert:h,invertOrIdentity:l,isOrthoNormal:Y,lookAt:R,mul:I,multiply:c,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t},ortho:function(t,e,n,r,i,a,o){let s=1/(e-n),u=1/(r-i),l=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*l,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*u,t[14]=(o+a)*l,t[15]=1,t},perspective:function(t,e,n,r,i){let a,o=1/Math.tan(e/2);return t[0]=o/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(a=1/(r-i),t[10]=(i+r)*a,t[14]=2*i*r*a):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,e,n,r){let i=Math.tan(e.upDegrees*Math.PI/180),a=Math.tan(e.downDegrees*Math.PI/180),o=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),u=2/(o+s),l=2/(i+a);return t[0]=u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=l,t[6]=0,t[7]=0,t[8]=-(o-s)*u*.5,t[9]=(i-a)*l*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t},rotate:M,rotateX:m,rotateY:function(t,e,n){let r=Math.sin(n),i=Math.cos(n),a=e[0],o=e[1],s=e[2],u=e[3],l=e[8],h=e[9],c=e[10],f=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*i-l*r,t[1]=o*i-h*r,t[2]=s*i-c*r,t[3]=u*i-f*r,t[8]=a*r+l*i,t[9]=o*r+h*i,t[10]=s*r+c*i,t[11]=u*r+f*i,t},rotateZ:function(t,e,n){let r=Math.sin(n),i=Math.cos(n),a=e[0],o=e[1],s=e[2],u=e[3],l=e[4],h=e[5],c=e[6],f=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*i+l*r,t[1]=o*i+h*r,t[2]=s*i+c*r,t[3]=u*i+f*r,t[4]=l*i-a*r,t[5]=h*i-o*r,t[6]=c*i-s*r,t[7]=f*i-u*r,t},scale:p,set:o,str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},sub:C,subtract:O,targetTo:function(t,e,n,r){let i=e[0],a=e[1],o=e[2],s=r[0],u=r[1],l=r[2],h=i-n[0],c=a-n[1],f=o-n[2],p=h*h+c*c+f*f;p>0&&(p=1/Math.sqrt(p),h*=p,c*=p,f*=p);let M=u*f-l*c,m=l*h-s*f,d=s*c-u*h;return p=M*M+m*m+d*d,p>0&&(p=1/Math.sqrt(p),M*=p,m*=p,d*=p),t[0]=M,t[1]=m,t[2]=d,t[3]=0,t[4]=c*d-f*m,t[5]=f*M-h*d,t[6]=h*m-c*M,t[7]=0,t[8]=h,t[9]=c,t[10]=f,t[11]=0,t[12]=i,t[13]=a,t[14]=o,t[15]=1,t},translate:f,transpose:u},Symbol.toStringTag,{value:"Module"}))},35522(t,e,n){n.d(e,{$A:()=>A,Bw:()=>a,C:()=>o,Cc:()=>B,DI:()=>_,Io:()=>g,Ln:()=>y,Om:()=>S,Qr:()=>c,Re:()=>l,S8:()=>w,T9:()=>m,WQ:()=>u,Z0:()=>P,_S:()=>p,aI:()=>C,ei:()=>R,fw:()=>q,gL:()=>O,hG:()=>b,hZ:()=>s,hs:()=>d,jk:()=>M,lw:()=>h,m3:()=>x,oW:()=>T,t2:()=>I,tn:()=>f,ze:()=>v});var r=n(51850),i=n(34304);function a(t){let e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function s(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function u(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function l(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function h(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function c(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function f(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function p(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function M(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function m(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function d(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function y(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function g(t,e){let n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return Math.sqrt(n*n+r*r+i*i)}function b(t,e){let n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return n*n+r*r+i*i}function x(t){let e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function v(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function _(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function w(t,e=t){let n=e[0],r=e[1],i=e[2],a=n*n+r*r+i*i;return a>0&&(a=1/Math.sqrt(a),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a),t}function S(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function A(t,e,n){let r=e[0],i=e[1],a=e[2],o=n[0],s=n[1],u=n[2];return t[0]=i*u-a*s,t[1]=a*o-r*u,t[2]=r*s-i*o,t}function B(t,e,n,r){let i=e[0],a=e[1],o=e[2];return t[0]=i+r*(n[0]-i),t[1]=a+r*(n[1]-a),t[2]=o+r*(n[2]-o),t}function P(t,e,n){let r=e[0],i=e[1],a=e[2];return t[0]=n[0]*r+n[4]*i+n[8]*a+n[12],t[1]=n[1]*r+n[5]*i+n[9]*a+n[13],t[2]=n[2]*r+n[6]*i+n[10]*a+n[14],t}function R(t,e,n){let r=e[0],i=e[1],a=e[2];return t[0]=r*n[0]+i*n[3]+a*n[6],t[1]=r*n[1]+i*n[4]+a*n[7],t[2]=r*n[2]+i*n[5]+a*n[8],t}function O(t,e,n){return q(t,e,n[0],n[1],n[2],n[3])}function q(t,e,n,r,i,a){let o=e[0],s=e[1],u=e[2],l=r*u-i*s,h=i*o-n*u,c=n*s-r*o,f=r*c-i*h,p=i*l-n*c,M=n*h-r*l,m=2*a;return t[0]=o+l*m+2*f,t[1]=s+h*m+2*p,t[2]=u+c*m+2*M,t}const Y=(0,r.vt)(),X=(0,r.vt)();function I(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function C(t,e){if(t===e)return!0;let n=t[0],r=t[1],a=t[2],o=e[0],s=e[1],u=e[2],l=(0,i.FD)();return Math.abs(n-o)<=l*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-s)<=l*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(a-u)<=l*Math.max(1,Math.abs(a),Math.abs(u))}function T(t,e,n){let r=n[0]-e[0],i=n[1]-e[1],a=n[2]-e[2],o=r*r+i*i+a*a;return o>0?(o=1/Math.sqrt(o),t[0]=r*o,t[1]=i*o,t[2]=a*o,t):(t[0]=0,t[1]=0,t[2]=0,t)}const j=l,Z=h,E=c,N=g,z=b,D=a,k=x;Object.freeze(Object.defineProperty({__proto__:null,abs:f,add:u,angle:function(t,e){w(Y,t),w(X,e);let n=S(Y,X);return n>1?0:n<-1?Math.PI:Math.acos(n)},bezier:function(t,e,n,r,i,a){let o=1-a,s=o*o,u=a*a,l=s*o,h=3*a*s,c=3*u*o,f=u*a;return t[0]=e[0]*l+n[0]*h+r[0]*c+i[0]*f,t[1]=e[1]*l+n[1]*h+r[1]*c+i[1]*f,t[2]=e[2]*l+n[2]*h+r[2]*c+i[2]*f,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,n=1){return t[0]=Math.min(Math.max(t[0],e),n),t[1]=Math.min(Math.max(t[1],e),n),t[2]=Math.min(Math.max(t[2],e),n),t},copy:o,cross:A,crossAndNormalize:function(t,e,n){let r=e[0],i=e[1],a=e[2],o=n[0],s=n[1],u=n[2],l=i*u-a*s,h=a*o-r*u,c=r*s-i*o,f=Math.sqrt(l*l+h*h+c*c);return t[0]=l/f,t[1]=h/f,t[2]=c/f,t},direction:T,dist:N,distance:g,div:E,divide:c,dot:S,equals:C,exactEquals:I,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,n,r,i,a){let o=a*a,s=o*(2*a-3)+1,u=o*(a-2)+a,l=o*(a-1),h=o*(3-2*a);return t[0]=e[0]*s+n[0]*u+r[0]*l+i[0]*h,t[1]=e[1]*s+n[1]*u+r[1]*l+i[1]*h,t[2]=e[2]*s+n[2]*u+r[2]*l+i[2]*h,t},inverse:_,len:D,length:a,lerp:B,max:m,min:M,mul:Z,multiply:h,negate:v,normalize:w,random:function(t,e=1){let n=i.Ov,r=2*n()*Math.PI,a=2*n()-1,o=Math.sqrt(1-a*a)*e;return t[0]=Math.cos(r)*o,t[1]=Math.sin(r)*o,t[2]=a*e,t},rotateX:function(t,e,n,r){let i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[0],a[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),a[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},rotateY:function(t,e,n,r){let i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),a[1]=i[1],a[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},rotateZ:function(t,e,n,r){let i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),a[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),a[2]=i[2],t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:d,scaleAndAdd:y,scaleTo:function(t,e){return d(t,t,e/D(t))},set:s,sign:p,sqrDist:z,sqrLen:k,squaredDistance:b,squaredLength:x,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:j,subtract:l,transformMat3:R,transformMat4:P,transformMat4Z:function(t,e){return e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]},transformQuat:O,transformQuatValues:q},Symbol.toStringTag,{value:"Module"})),n.d(e,["Il",0,D,"jb",0,j,"lo",0,z,"uE",0,k])},78955(t,e,n){n.d(e,{Bw:()=>d,C:()=>i,Cc:()=>x,LI:()=>f,Om:()=>b,S8:()=>g,T9:()=>c,WQ:()=>o,Z0:()=>v,aI:()=>w,hG:()=>m,hZ:()=>a,hs:()=>p,jk:()=>h,m3:()=>y,t2:()=>_});var r=n(34304);function i(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function a(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function o(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t}function s(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t}function u(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t[3]=e[3]*n[3],t}function l(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t[3]=e[3]/n[3],t}function h(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t[3]=Math.min(e[3],n[3]),t}function c(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t[3]=Math.max(e[3],n[3]),t}function f(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t[3]=Math.round(e[3]),t}function p(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t}function M(t,e){let n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return Math.sqrt(n*n+r*r+i*i+a*a)}function m(t,e){let n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return n*n+r*r+i*i+a*a}function d(t){let e=t[0],n=t[1],r=t[2],i=t[3];return Math.sqrt(e*e+n*n+r*r+i*i)}function y(t){let e=t[0],n=t[1],r=t[2],i=t[3];return e*e+n*n+r*r+i*i}function g(t,e){let n=e[0],r=e[1],i=e[2],a=e[3],o=n*n+r*r+i*i+a*a;return o>0&&(o=1/Math.sqrt(o),t[0]=n*o,t[1]=r*o,t[2]=i*o,t[3]=a*o),t}function b(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function x(t,e,n,r){let i=e[0],a=e[1],o=e[2],s=e[3];return t[0]=i+r*(n[0]-i),t[1]=a+r*(n[1]-a),t[2]=o+r*(n[2]-o),t[3]=s+r*(n[3]-s),t}function v(t,e,n){let r=e[0],i=e[1],a=e[2],o=e[3];return t[0]=n[0]*r+n[4]*i+n[8]*a+n[12]*o,t[1]=n[1]*r+n[5]*i+n[9]*a+n[13]*o,t[2]=n[2]*r+n[6]*i+n[10]*a+n[14]*o,t[3]=n[3]*r+n[7]*i+n[11]*a+n[15]*o,t}function _(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function w(t,e){let n=t[0],i=t[1],a=t[2],o=t[3],s=e[0],u=e[1],l=e[2],h=e[3],c=(0,r.FD)();return Math.abs(n-s)<=c*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(i-u)<=c*Math.max(1,Math.abs(i),Math.abs(u))&&Math.abs(a-l)<=c*Math.max(1,Math.abs(a),Math.abs(l))&&Math.abs(o-h)<=c*Math.max(1,Math.abs(o),Math.abs(h))}const S=s,A=u,B=l,P=M,R=m,O=d,q=y;Object.freeze(Object.defineProperty({__proto__:null,add:o,ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t[3]=Math.ceil(e[3]),t},copy:i,copyVec3:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},dist:P,distance:M,div:B,divide:l,dot:b,equals:w,exactEquals:_,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t[3]=Math.floor(e[3]),t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t},len:O,length:d,lerp:x,max:c,min:h,mul:A,multiply:u,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t},normalize:g,random:function(t,e=1){let n,i,a,o,s,u,l=r.Ov;do{n=2*l()-1,i=2*l()-1,s=n*n+i*i}while(s>=1);do{a=2*l()-1,o=2*l()-1,u=a*a+o*o}while(u>=1);let h=Math.sqrt((1-s)/u);return t[0]=e*n,t[1]=e*i,t[2]=e*a*h,t[3]=e*o*h,t},round:f,scale:p,scaleAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t},set:a,sqrDist:R,sqrLen:q,squaredDistance:m,squaredLength:y,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:S,subtract:s,transformMat4:v,transformQuat:function(t,e,n){let r=e[0],i=e[1],a=e[2],o=n[0],s=n[1],u=n[2],l=n[3],h=l*r+s*a-u*i,c=l*i+u*r-o*a,f=l*a+o*i-s*r,p=-o*r-s*i-u*a;return t[0]=h*l+p*-o+c*-u-f*-s,t[1]=c*l+p*-s+f*-o-h*-u,t[2]=f*l+p*-u+h*-s-c*-o,t[3]=e[3],t}},Symbol.toStringTag,{value:"Module"}))},75503(t,e,n){n.d(e,{wq:()=>s});var r=n(4576),i=n(21818),a=(n(44208),n(15142)),o=n(11006);class s{constructor(t=9,e){this._compareMinX=f,this._compareMinY=p,this._toBBox=t=>t,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&("function"==typeof e?this._toBBox=e:this._initFormat(e)),this.clear()}destroy(){this.clear(),v.prune(),_.prune(),w.prune(),S.prune()}all(t){u(this._data,t)}search(t,e){let n=this._data,r=this._toBBox;if(b(t,n))for(v.clear();n;){for(let i=0,a=n.children.length;i<a;i++){let a=n.children[i],o=n.leaf?r(a):a;b(t,o)&&(n.leaf?e(a):g(t,o)?u(a,e):v.push(a))}n=v.pop()}}collides(t){let e=this._data,n=this._toBBox;if(!b(t,e))return!1;for(v.clear();e;){for(let r=0,i=e.children.length;r<i;r++){let i=e.children[r],a=e.leaf?n(i):i;if(b(t,a)){if(e.leaf||g(t,a))return!0;v.push(i)}}e=v.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let e=0,n=t.length;e<n;e++)this.insert(t[e]);return this}let e=this._build(t.slice(),0,t.length-1,0);if(this._data.children.length)if(this._data.height===e.height)this._splitRoot(this._data,e);else{if(this._data.height<e.height){let t=this._data;this._data=e,e=t}this._insert(e,this._data.height-e.height-1,!0)}else this._data=e;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new P([]),this}remove(t){if(!t)return this;let e,n=this._data,a=null,o=0,s=!1,u=this._toBBox(t);for(w.clear(),S.clear();n||w.length>0;){if(n||(n=w.pop(),a=w.data[w.length-1],o=S.pop()??0,s=!0),n.leaf&&(e=(0,r.qh)(n.children,(0,i.z)(t),n.children.length,n.indexHint),-1!==e))return n.children.splice(e,1),w.push(n),this._condense(w),this;s||n.leaf||!g(n,u)?a?(o++,n=a.children[o],s=!1):n=null:(w.push(n),S.push(o),o=0,a=n,n=n.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_build(t,e,n,r){let i=n-e+1,a=this._maxEntries;if(i<=a){let r=new P(t.slice(e,n+1));return l(r,this._toBBox),r}r||(r=Math.ceil(Math.log(i)/Math.log(a)),a=Math.ceil(i/a**(r-1)));let o=new R([]);o.height=r;let s=Math.ceil(i/a),u=s*Math.ceil(Math.sqrt(a));x(t,e,n,u,this._compareMinX);for(let i=e;i<=n;i+=u){let e=Math.min(i+u-1,n);x(t,i,e,s,this._compareMinY);for(let n=i;n<=e;n+=s){let i=Math.min(n+s-1,e);o.children.push(this._build(t,n,i,r-1))}}return l(o,this._toBBox),o}_insert(t,e,n){let r=this._toBBox,i=n?t:r(t);w.clear();let a=function(t,e,n,r){for(;r.push(e),!0!==e.leaf&&r.length-1!==n;){let n,r=1/0,i=1/0;for(let a=0,o=e.children.length;a<o;a++){let o=e.children[a],s=M(o),u=d(t,o)-s;u<i?(i=u,r=s<r?s:r,n=o):u===i&&s<r&&(r=s,n=o)}e=n||e.children[0]}return e}(i,this._data,e,w);for(a.children.push(t),c(a,i);e>=0&&w.data[e].children.length>this._maxEntries;)this._split(w,e),e--;!function(t,e,n){for(let r=n;r>=0;r--)c(e.data[r],t)}(i,w,e)}_split(t,e){let n=t.data[e],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);let a=this._chooseSplitIndex(n,i,r);if(!a)return;let o=n.children.splice(a,n.children.length-a),s=n.leaf?new P(o):new R(o);s.height=n.height,l(n,this._toBBox),l(s,this._toBBox),e?t.data[e-1].children.push(s):this._splitRoot(n,s)}_splitRoot(t,e){this._data=new R([t,e]),this._data.height=t.height+1,l(this._data,this._toBBox)}_chooseSplitIndex(t,e,n){let r,i,a;r=i=1/0;for(let o=e;o<=n-e;o++){let e=h(t,0,o,this._toBBox),s=h(t,o,n,this._toBBox),u=y(e,s),l=M(e)+M(s);u<r?(r=u,a=o,i=l<i?l:i):u===r&&l<i&&(i=l,a=o)}return a}_chooseSplitAxis(t,e,n){let r=t.leaf?this._compareMinX:f,i=t.leaf?this._compareMinY:p;this._allDistMargin(t,e,n,r)<this._allDistMargin(t,e,n,i)&&t.children.sort(r)}_allDistMargin(t,e,n,r){t.children.sort(r);let i=this._toBBox,a=h(t,0,e,i),o=h(t,n-e,n,i),s=m(a)+m(o);for(let r=e;r<n-e;r++){let e=t.children[r];c(a,t.leaf?i(e):e),s+=m(a)}for(let r=n-e-1;r>=e;r--){let e=t.children[r];c(o,t.leaf?i(e):e),s+=m(o)}return s}_condense(t){for(let e=t.length-1;e>=0;e--){let n=t.data[e];if(0===n.children.length)if(e>0){let i=t.data[e-1],a=i.children;a.splice((0,r.qh)(a,n,a.length,i.indexHint),1)}else this.clear();else l(n,this._toBBox)}}_initFormat(t){let e=["return a"," - b",";"];this._compareMinX=Function("a","b",e.join(t[0])),this._compareMinY=Function("a","b",e.join(t[1])),this._toBBox=Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}function u(t,e){let n=t;for(_.clear();n;){if(!0===n.leaf)for(let t of n.children)e((0,i.z)(t));else _.pushArray(n.children);n=_.pop()??null}}function l(t,e){h(t,0,t.children.length,e,t)}function h(t,e,n,r,i){i||=new P([]),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(let a,o=e;o<n;o++)a=t.children[o],c(i,t.leaf?r(a):a);return i}function c(t,e){t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY)}function f(t,e){return t.minX-e.minX}function p(t,e){return t.minY-e.minY}function M(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function m(t){return t.maxX-t.minX+(t.maxY-t.minY)}function d(t,e){return(Math.max(e.maxX,t.maxX)-Math.min(e.minX,t.minX))*(Math.max(e.maxY,t.maxY)-Math.min(e.minY,t.minY))}function y(t,e){let n=Math.max(t.minX,e.minX),r=Math.max(t.minY,e.minY),i=Math.min(t.maxX,e.maxX),a=Math.min(t.maxY,e.maxY);return Math.max(0,i-n)*Math.max(0,a-r)}function g(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function b(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function x(t,e,n,r,i){let a=[e,n];for(;a.length;){let e=a.pop(),n=a.pop();if(e-n<=r)continue;let s=n+Math.ceil((e-n)/r/2)*r;(0,o.q)(t,s,n,e,i),a.push(n,s,s,e)}}const v=new a.A,_=new a.A,w=new a.A,S=new a.A({deallocator:void 0});class A{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class B extends A{constructor(){super(...arguments),this.height=1,this.indexHint=new r.vW}}class P extends B{constructor(t){super(),this.children=t,this.leaf=!0}}class R extends B{constructor(t){super(),this.children=t,this.leaf=!1}}},48526(t,e,n){n.d(e,{A:()=>d});var r,i=n(32198),a=n(4576),o=n(4718),s=n(91429),u=n(5443),l=n(91075),h=n(86738),c=n(16930),f=n(90634),p=n(47610),M=n(56993),m=n(43937);let d=r=class extends l.A{constructor(t){super(function(t){if(!t)return;let{points:e,hasM:n,hasZ:r,spatialReference:i}=t;switch(e??=[],e?.at(0)?.length){case 4:r??=!0,n??=!0;break;case 3:r??=!0!==n,n??=!r;break;default:r??=!1,n??=!1}return i??=c.A.WGS84,{...t,hasM:n,hasZ:r,points:e,spatialReference:i}}(t)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){let t=(0,f.ge)(this);return t?new u.A({...t,spatialReference:this.spatialReference}):null}writePoints(t,e){e.points=(0,o.o8)(this.points)}clone(){let{points:t,spatialReference:e,hasM:n,hasZ:i}=this;return new r({points:(0,o.o8)(t),spatialReference:e.clone(),hasM:n,hasZ:i})}equals(t){if(this===t)return!0;if(null==t)return!1;let e=this.spatialReference,n=t.spatialReference;return!(null!=e!=(null!=n)||null!=e&&null!=n&&!e.equals(n))&&(0,a.aI)(this.points,t.points,p.v6)}addPoint(t){return(0,M.h)(this,t),Array.isArray(t)?this.points.push(t):this.points.push(t.toArray()),this.notifyChange("points"),this}getPoint(t){if(!this._validateInputs(t))return null;let e=this.points[t],n={x:e[0],y:e[1],spatialReference:this.spatialReference},r=2;return this.hasZ&&(n.z=e[2],r=3),this.hasM&&(n.m=e[r]),new h.A(n)}removePoint(t){if(!this._validateInputs(t))return null;let e=new h.A(this.points.splice(t,1)[0],this.spatialReference);return this.notifyChange("points"),e}setPoint(t,e){return this._validateInputs(t)?((0,M.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.points[t]=e,this.notifyChange("points"),this):this}toJSON(t){return this.write({},t)}_validateInputs(t){return null!=t&&t>=0&&t<this.points.length}};(0,i.Cg)([(0,s.MZ)({readOnly:!0})],d.prototype,"cache",null),(0,i.Cg)([(0,s.MZ)({readOnly:!0})],d.prototype,"extent",null),(0,i.Cg)([(0,s.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],d.prototype,"points",void 0),(0,i.Cg)([(0,m.K)("points")],d.prototype,"writePoints",null),d=r=(0,i.Cg)([(0,s.$K)("esri.geometry.Multipoint")],d),d.prototype.toJSON.isDefaultToJSON=!0},82799(t,e,n){n.d(e,{A:()=>M});var r,i=n(32198),a=n(4718),o=n(91429),s=n(5443),u=n(91075),l=n(86738),h=n(16930),c=n(90634),f=n(56993),p=n(43937);let M=r=class extends u.A{constructor(t){super(function(t){if(!t)return;let{paths:e,hasM:n,hasZ:r,spatialReference:i}=t;switch(e??=[],function(t){return"number"==typeof t[0]?.[0]}(e)&&(e=[e]),e[0]?.[0]?.length){case 4:r??=!0,n??=!0;break;case 3:r??=!0!==n,n??=!r;break;default:r??=!1,n??=!1}return i??=h.A.WGS84,{...t,hasM:n,hasZ:r,paths:e,spatialReference:i}}(t)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(t,e){e.curvePaths=(0,a.o8)(t)}get extent(){let t=(0,c.Z3)(this),{spatialReference:e}=this;return t?new s.A({...t,spatialReference:e}):null}writePaths(t,e){e.paths=(0,a.o8)(this.paths)}addPath(t){if(!t)return;let e=this.paths,n=e.length;if(function(t){return!Array.isArray(t[0])}(t)){let r=[];for(let e=0,n=t.length;e<n;e++)r[e]=t[e].toArray();e[n]=r}else e[n]=t.slice();return this.notifyChange("paths"),this}clone(){let t=new r;return t.spatialReference=this.spatialReference,t.paths=(0,a.o8)(this.paths),t.curvePaths=(0,a.o8)(this.curvePaths),t.hasZ=this.hasZ,t.hasM=this.hasM,t}getPoint(t,e){if(!this._validateInputs(t,e))return null;let n=this.paths[t][e],r=this.hasZ,i=this.hasM;return r&&!i?new l.A(n[0],n[1],n[2],void 0,this.spatialReference):i&&!r?new l.A(n[0],n[1],void 0,n[2],this.spatialReference):r&&i?new l.A(n[0],n[1],n[2],n[3],this.spatialReference):new l.A(n[0],n[1],this.spatialReference)}insertPoint(t,e,n){return this._validateInputs(t,e,!0)?((0,f.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[t].splice(e,0,n),this.notifyChange("paths"),this):this}removePath(t){if(!this._validateInputs(t,null))return null;let e=this.paths.splice(t,1)[0],n=this.spatialReference,r=e.map(t=>new l.A(t,n));return this.notifyChange("paths"),r}removePoint(t,e){if(!this._validateInputs(t,e))return null;let n=new l.A(this.paths[t].splice(e,1)[0],this.spatialReference);return this.notifyChange("paths"),n}setPoint(t,e,n){return this._validateInputs(t,e)?((0,f.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[t][e]=n,this.notifyChange("paths"),this):this}_validateInputs(t,e,n=!1){if(null==t||t<0||t>=this.paths.length)return!1;if(null!=e){let r=this.paths[t];if(n&&(e<0||e>r.length)||!n&&(e<0||e>=r.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,i.Cg)([(0,o.MZ)({readOnly:!0})],M.prototype,"cache",null),(0,i.Cg)([(0,o.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],M.prototype,"curvePaths",void 0),(0,i.Cg)([(0,p.K)("curvePaths")],M.prototype,"writeCurvePaths",null),(0,i.Cg)([(0,o.MZ)({readOnly:!0})],M.prototype,"extent",null),(0,i.Cg)([(0,o.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],M.prototype,"paths",void 0),(0,i.Cg)([(0,p.K)("paths")],M.prototype,"writePaths",null),M=r=(0,i.Cg)([(0,o.$K)("esri.geometry.Polyline")],M),M.prototype.toJSON.isDefaultToJSON=!0},48353(t,e,n){n.d(e,{l:()=>l});var r=n(34727),i=n(58083),a=n(51850);function o(t,e,n){let r=Math.sin(t),i=Math.cos(t),a=Math.sin(e),o=Math.cos(e),s=n;return s[0]=-r,s[4]=-a*i,s[8]=o*i,s[12]=0,s[1]=i,s[5]=-a*r,s[9]=o*r,s[13]=0,s[2]=0,s[6]=o,s[10]=a,s[14]=0,s[3]=0,s[7]=0,s[11]=0,s[15]=1,s}var s=n(49208),u=n(21325);function l(t,e,n,r){let a=(0,s.Tp)(t,r);if(null==a)return!1;let l=a.source.spatialReferenceId,M=a.dest.spatialReferenceId;if(l===M&&!h(M)&&(0!==l||(0,u.aI)(t,r)))return(0,i.kN)(n,e),!0;if(h(M)){let t=s.w5[l][10],r=s.w5[10][M];return null!=t&&null!=r&&(t(e,0,f,0),r(f,0,p,0),o(c*f[0],c*f[1],n),n[12]=p[0],n[13]=p[1],n[14]=p[2],!0)}let m=h(l);if((3===M||11===M||2===M||5===M)&&(2===l||m||3===l||5===l)){let t=s.w5[l][10],r=s.w5[10][M];return null!=t&&null!=r&&(t(e,0,f,0),r(f,0,p,0),m?function(t,e,n){o(t,e,n),(0,i.mg)(n,n)}(c*f[0],c*f[1],n):(0,i.D_)(n),n[12]=p[0],n[13]=p[1],n[14]=p[2],!0)}return!1}function h(t){return 1===t||6===t||8===t||4===t}const c=(0,r.kU)(1),f=(0,a.vt)(),p=(0,a.vt)()},65806(t,e,n){n.d(e,{g:()=>o});var r=n(51850),i=n(99917),a=n(9762);function o(t,e,n,r){if((0,i.canProjectWithoutEngine)(t.spatialReference,n))return s[0]=t.x,s[1]=t.y,s[2]=t.z??0,(0,a.projectBuffer)(s,t.spatialReference,0,e,n,0);let o=(0,i.tryProject)(t,n,r);return!!o&&(e[0]=o.x,e[1]=o.y,e[2]=o.z??0,!0)}const s=(0,r.vt)()},95696(t,e,n){n.d(e,{A:()=>l});var r,i=n(32198),a=n(69540),o=n(25482),s=n(91429),u=n(93223);let l=class extends((0,a.OU)(o.o)){static{r=this}constructor(t){super(t),this.type="georeferenced",this.origin=null}static{this.absolute=new r}};(0,i.Cg)([(0,u.e)({georeferenced:"georeferenced"},{readOnly:!0})],l.prototype,"type",void 0),(0,i.Cg)([(0,s.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],l.prototype,"origin",void 0),l=r=(0,i.Cg)([(0,s.$K)("esri.geometry.support.MeshGeoreferencedVertexSpace")],l)},18251(t,e,n){n.d(e,{A:()=>l});var r=n(32198),i=n(69540),a=n(25482),o=n(91429),s=n(51850),u=n(93223);let l=class extends((0,i.OU)(a.o)){constructor(t){super(t),this.type="local",this.origin=(0,s.vt)()}};(0,r.Cg)([(0,u.e)({local:"local"},{readOnly:!0})],l.prototype,"type",void 0),(0,r.Cg)([(0,o.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],l.prototype,"origin",void 0),l=(0,r.Cg)([(0,o.$K)("esri.geometry.support.MeshLocalVertexSpace")],l)},72727(t,e,n){function r(t,e,n){if(e<=0)return 0;let r=t-n;return r<0?0:Math.floor(r/e)+1}n.d(e,{k:()=>r}),n(53966)},60408(t,e,n){function r(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function i(t){return void 0!==t.points}function a(t){return void 0!==t.x&&void 0!==t.y}function o(t){return void 0!==t.paths||void 0!==t.curvePaths}function s(t){return void 0!==t.rings||void 0!==t.curveRings}function u(t){return"object"==typeof t&&"vertexAttributes"in t}function l(t){return t?a(t)?"esriGeometryPoint":o(t)?"esriGeometryPolyline":s(t)?"esriGeometryPolygon":r(t)?"esriGeometryEnvelope":i(t)?"esriGeometryMultipoint":null:null}function h(t){return null!=t&&("hasZ"in t&&t.hasZ||"z"in t&&null!=t.z)}function c(t){return null!=t&&("hasM"in t&&t.hasM||"m"in t&&null!=t.m)}n.d(e,{$B:()=>l,Bi:()=>s,Pv:()=>h,Rg:()=>o,U9:()=>i,W0:()=>c,ZC:()=>r,fT:()=>a,uW:()=>u})},38419(t,e,n){n.r(e),n.d(e,{default:()=>s});var r=n(44208),i=n(75503),a=n(95696),o=n(72258);class s{async createIndex(t,e){if(!t.vertexAttributes?.position)return new i.wq;let n=function(t){let{vertexAttributes:{position:e},vertexSpace:n,spatialReference:r,transform:i}=t,s=(0,o.UR)({vertexAttributes:{position:e},vertexSpace:n,spatialReference:r,transform:i},a.A.absolute,{allowBufferReuse:!0})?.position;return s?!t.components||t.components.some(t=>!t.faces)?{position:s.buffer}:{position:s.buffer,components:t.components.map(t=>t.faces)}:null}(t),r=null==e?this.createIndexThread(n).result:await e.invoke("createIndexThread",n,{transferList:[]});return u().fromJSON(r)}createIndexThread(t){let e=u();if(!t)return{result:e.toJSON()};let n=new Float64Array(t.position);return t.components?function(t,e,n){let r=0;for(let t of n)r+=t.length/3;let i=Array(r),a=0;for(let t of n)for(let n=0;n<t.length;n+=3)i[a++]=l(e,3*t[n],3*t[n+1],3*t[n+2]);return t.load(i),{result:t.toJSON()}}(e,n,t.components.map(t=>new Uint32Array(t))):function(t,e){let n=Array(e.length/9),r=0;for(let t=0;t<e.length;t+=9)n[r++]=l(e,t,t+3,t+6);return t.load(n),{result:t.toJSON()}}(e,n)}}function u(){return new i.wq(9,(0,r.A)("esri-csp-restrictions")?t=>t:[".minX",".minY",".maxX",".maxY"])}function l(t,e,n,r){return{minX:Math.min(t[e],t[n],t[r]),maxX:Math.max(t[e],t[n],t[r]),minY:Math.min(t[e+1],t[n+1],t[r+1]),maxY:Math.max(t[e+1],t[n+1],t[r+1]),p0:[t[e],t[e+1],t[e+2]],p1:[t[n],t[n+1],t[n+2]],p2:[t[r],t[r+1],t[r+2]]}}},27615(t,e,n){n.d(e,{CK:()=>u,Hq:()=>s,MW:()=>l,TE:()=>h,yJ:()=>c});var r=n(35522),i=n(86738),a=n(95696),o=n(18251);function s(t){return null!=t.origin}function u(t){return s(t.vertexSpace)}function l(t,e){if(!s(t))return null;let[n,r,a]=t.origin;return new i.A({x:n,y:r,z:a,spatialReference:e})}function h(t,e){let{x:n,y:r,z:i,spatialReference:s}=t,u=[n,r,i??0];return"local"===(e?.vertexSpace??function(t){return t.isGeographic||t.isWebMercator?"local":"georeferenced"}(s))?new o.A({origin:u}):new a.A({origin:u})}function c(t,e){return t.type===e.type&&(t.origin===e.origin||null!=t.origin&&null!=e.origin&&(0,r.t2)(t.origin,e.origin))}}}]);