@arcgis/core 4.32.0-next.20250102 → 4.32.0-next.20250104

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 (276) hide show
  1. package/Color.js +1 -1
  2. package/PopupTemplate.js +1 -1
  3. package/arcade/functions/date.js +1 -1
  4. package/arcade/functions/featuresetbase.js +1 -1
  5. package/arcade/functions/featuresetstats.js +1 -1
  6. package/arcade/functions/featuresetstring.js +1 -1
  7. package/arcade/functions/geomasync.js +1 -1
  8. package/arcade/functions/geometry.js +1 -1
  9. package/arcade/functions/geomsync.js +1 -1
  10. package/arcade/functions/knowledgegraph.js +1 -1
  11. package/arcade/functions/string.js +1 -1
  12. package/arcade/geometry/extendedUnitData.js +5 -0
  13. package/arcade/geometry/functions.js +5 -0
  14. package/arcade/geometry/operators.js +5 -0
  15. package/arcade/geometry/unitConversion.js +5 -0
  16. package/arcade/geometry/wkt.js +5 -0
  17. package/arcade/languageUtils.js +1 -1
  18. package/assets/esri/core/workers/RemoteClient.js +1 -1
  19. package/assets/esri/core/workers/chunks/{e371f4f0eb3c22f222df.js → 005727711cca0614c2ab.js} +2 -2
  20. package/assets/esri/core/workers/chunks/{e371f4f0eb3c22f222df.js.LICENSE.txt → 005727711cca0614c2ab.js.LICENSE.txt} +1 -1
  21. package/assets/esri/core/workers/chunks/{2d908c115ea18e813b95.js → 00c0fbe19c12691cf2c3.js} +1 -1
  22. package/assets/esri/core/workers/chunks/08e28328385066c519c2.js +1 -0
  23. package/assets/esri/core/workers/chunks/{0e735d01296d340b393e.js → 0b95ec12218f3c04df18.js} +1 -1
  24. package/assets/esri/core/workers/chunks/{59bf879b4802a5ba431e.js → 0ee669947c23f469e357.js} +1 -1
  25. package/assets/esri/core/workers/chunks/116103ecec27cce47a2f.js +1 -0
  26. package/assets/esri/core/workers/chunks/11f00218905f0db447ff.js +1 -0
  27. package/assets/esri/core/workers/chunks/14b87f3dd9942e6b19d0.js +1 -0
  28. package/assets/esri/core/workers/chunks/16d7c07e1c11b88dae84.js +1 -0
  29. package/assets/esri/core/workers/chunks/1d04fe800cb98e4d6bc4.js +1 -0
  30. package/assets/esri/core/workers/chunks/{71f6e5742cf0c482066b.js → 1dc6b5b177022b80c473.js} +1 -1
  31. package/assets/esri/core/workers/chunks/{59455e2dd44b4c01cc76.js → 2586741c359057b3f626.js} +1 -1
  32. package/assets/esri/core/workers/chunks/{250a810dd4e1ff293564.js → 318a39b56851e707edad.js} +1 -1
  33. package/assets/esri/core/workers/chunks/{648d7d8fa19a2e772c89.js → 3582836342fa78873fe4.js} +1 -1
  34. package/assets/esri/core/workers/chunks/{b1e4813f0c73fc2a483c.js → 370b230fd2d7703d0698.js} +2 -2
  35. package/assets/esri/core/workers/chunks/{b1e4813f0c73fc2a483c.js.LICENSE.txt → 370b230fd2d7703d0698.js.LICENSE.txt} +1 -1
  36. package/assets/esri/core/workers/chunks/{ebf9caf2dc8af89afec2.js → 42aa697b4718b75b8cb2.js} +2 -2
  37. package/assets/esri/core/workers/chunks/{ebf9caf2dc8af89afec2.js.LICENSE.txt → 42aa697b4718b75b8cb2.js.LICENSE.txt} +1 -1
  38. package/assets/esri/core/workers/chunks/44cc3ea8cec8ddd1e3ab.js +1 -0
  39. package/assets/esri/core/workers/chunks/{801dbea20966806db1c9.js → 53cd990b2c988518de6d.js} +1 -1
  40. package/assets/esri/core/workers/chunks/5a1eb0d1e25ff5574c43.js +1 -0
  41. package/assets/esri/core/workers/chunks/6157c49e7431f5868c77.js +1 -0
  42. package/assets/esri/core/workers/chunks/{eef2d94a73064f9bc085.js → 61d64f163840563017d5.js} +1 -1
  43. package/assets/esri/core/workers/chunks/6ed57d01be6bc054c7cd.js +1 -0
  44. package/assets/esri/core/workers/chunks/7254956381e823219db0.js +1 -0
  45. package/assets/esri/core/workers/chunks/740e6bdb3b76f2ea6d61.js +1 -0
  46. package/assets/esri/core/workers/chunks/756c2f7c8659deab6c96.js.LICENSE.txt +1 -1
  47. package/assets/esri/core/workers/chunks/{56fc353421252f2d0a99.js → 75e8ba7e02647b7216ae.js} +1 -1
  48. package/assets/esri/core/workers/chunks/89d7eec47e5b29935d92.js +1 -0
  49. package/assets/esri/core/workers/chunks/8cd2c9ec1e541836b81c.js +1 -0
  50. package/assets/esri/core/workers/chunks/{0b3e1e903120da297641.js → 932375de79e3d33bc4d7.js} +1 -1
  51. package/assets/esri/core/workers/chunks/{263adfd1c2641ef5c0f5.js → 95f23bd17ce9e07fc8ef.js} +1 -1
  52. package/assets/esri/core/workers/chunks/{7de9c01849c4aa1940e7.js → 986889cea53c4a470347.js} +1 -1
  53. package/assets/esri/core/workers/chunks/{cc6160e8ab3cea4040c2.js → 9e9b2fd958e816b1b5f6.js} +1 -1
  54. package/assets/esri/core/workers/chunks/a57cead317eb2fc9afd8.js +1 -0
  55. package/assets/esri/core/workers/chunks/acec58a7f23b2cc938ee.js +1 -0
  56. package/assets/esri/core/workers/chunks/b0f4254d8a32dd713009.js +1 -0
  57. package/assets/esri/core/workers/chunks/b277b8c2f556918e4f9a.js +1 -0
  58. package/assets/esri/core/workers/chunks/{deffd56e39ce725ce377.js → b30046a40bcfbec8abe4.js} +1 -1
  59. package/assets/esri/core/workers/chunks/{5c11e2e65b97565e5003.js → b7db64b07edb0b37ece1.js} +1 -1
  60. package/assets/esri/core/workers/chunks/bd1fb82e8bac439d05ea.js +1 -0
  61. package/assets/esri/core/workers/chunks/bf0a0ca7fdac98f06a89.js.LICENSE.txt +1 -1
  62. package/assets/esri/core/workers/chunks/c44ce0302dc82fb66ada.js +1 -0
  63. package/assets/esri/core/workers/chunks/c52872a50a5989121388.js +1 -0
  64. package/assets/esri/core/workers/chunks/c8cd6ba5600d8ff8db0b.js +2 -0
  65. package/assets/esri/core/workers/chunks/{a100fb789d72410f8d4f.js.LICENSE.txt → c8cd6ba5600d8ff8db0b.js.LICENSE.txt} +1 -1
  66. package/assets/esri/core/workers/chunks/{57c1370b310768c0790a.js → ca1e186f136abb23ae4b.js} +1 -1
  67. package/assets/esri/core/workers/chunks/{d14e4fc82ad772899336.js → ca4a37bdc0f7fb705146.js} +1 -1
  68. package/assets/esri/core/workers/chunks/cb94fc9b0f613ad50b3f.js +1 -0
  69. package/assets/esri/core/workers/chunks/d20764cc99fcabcb7cbf.js +1 -0
  70. package/assets/esri/core/workers/chunks/df18a72e3625cbe31935.js +1 -0
  71. package/assets/esri/core/workers/chunks/eff8fcb6393cd1193cbc.js +1 -0
  72. package/assets/esri/core/workers/chunks/f19d3c855f6e93544918.js +1 -0
  73. package/assets/esri/core/workers/chunks/f4e3db71d1adae717535.js +2 -0
  74. package/assets/esri/core/workers/chunks/{d82b3e2905cab511ff3a.js.LICENSE.txt → f4e3db71d1adae717535.js.LICENSE.txt} +1 -1
  75. package/assets/esri/core/workers/chunks/{60b40b2319d1651dd150.js → f7e50a8284d12da21355.js} +1 -1
  76. package/assets/esri/core/workers/chunks/f9c0d571f62e611ffe2b.js +1 -0
  77. package/assets/esri/core/workers/chunks/fdfe8e0d942b78f08191.js +1 -0
  78. package/assets/esri/core/workers/chunks/ff21207f46a354786eed.js +1 -0
  79. package/assets/esri/libs/parquet/pkg/arcgis_parquet_bg.wasm +0 -0
  80. package/chunks/Bufferer-BiY2mtjI.js +1 -1
  81. package/chunks/Centroid-DZi-eb9F.js +1 -1
  82. package/chunks/Clipper-a9xfvRaw.js +1 -1
  83. package/chunks/CrackAndCluster-CfzXpEle.js +1 -1
  84. package/chunks/Distance2DCalculator-eS0piaux.js +1 -1
  85. package/chunks/GeodeticDistanceCalculator-bNilDneE.js +1 -1
  86. package/chunks/Geometry.js +1 -1
  87. package/chunks/GeometryCleaner-DVgW95-D.js +1 -1
  88. package/chunks/Intersector-K1VmdfQW.js +1 -1
  89. package/chunks/LineSeries.js +1 -1
  90. package/chunks/OperatorClip.js +1 -1
  91. package/chunks/OperatorCrosses.js +1 -1
  92. package/chunks/OperatorCut.js +1 -1
  93. package/chunks/OperatorDensify.js +1 -1
  94. package/chunks/OperatorDifference.js +1 -1
  95. package/chunks/OperatorGeneralize.js +1 -1
  96. package/chunks/OperatorGeodesicBuffer.js +1 -1
  97. package/chunks/OperatorGeodeticArea.js +1 -1
  98. package/chunks/OperatorGeodeticDensifyByLength.js +1 -1
  99. package/chunks/OperatorGeodeticDistance.js +1 -1
  100. package/chunks/OperatorGeodeticLength.js +1 -1
  101. package/chunks/OperatorIntersection.js +1 -1
  102. package/chunks/OperatorIntersects.js +1 -1
  103. package/chunks/OperatorMultiPartToSinglePart.js +1 -1
  104. package/chunks/OperatorOverlaps.js +1 -1
  105. package/chunks/OperatorProject.js +1 -1
  106. package/chunks/OperatorProximity.js +1 -1
  107. package/chunks/OperatorProximityGeodesic.js +1 -1
  108. package/chunks/OperatorShapePreservingDensify.js +1 -1
  109. package/chunks/OperatorShapePreservingLength.js +1 -1
  110. package/chunks/OperatorSimplify.js +1 -1
  111. package/chunks/OperatorTouches.js +1 -1
  112. package/chunks/OperatorUnion.js +1 -1
  113. package/chunks/OperatorWithin.js +1 -1
  114. package/chunks/QuadraticBezier.js +1 -1
  115. package/chunks/SideCalculator2D-Bf4QCxCR.js +1 -1
  116. package/chunks/Theme.js +1 -1
  117. package/chunks/Tick.js +1 -1
  118. package/chunks/Transformation2D.js +1 -1
  119. package/chunks/arcade.js +1 -1
  120. package/chunks/areaOperator.js +5 -0
  121. package/chunks/array.js +1 -1
  122. package/chunks/bufferOperator.js +5 -0
  123. package/chunks/centroidOperator.js +5 -0
  124. package/chunks/chartUtilsAm5.js +1 -1
  125. package/chunks/clipOperator.js +5 -0
  126. package/chunks/containsOperator.js +5 -0
  127. package/chunks/convexHullOperator.js +5 -0
  128. package/chunks/crossesOperator.js +5 -0
  129. package/chunks/cutOperator.js +5 -0
  130. package/chunks/densifyOperator.js +5 -0
  131. package/chunks/differenceOperator.js +5 -0
  132. package/chunks/disjointOperator.js +5 -0
  133. package/chunks/distanceOperator.js +5 -0
  134. package/chunks/equalsOperator.js +5 -0
  135. package/chunks/generalizeOperator.js +5 -0
  136. package/chunks/geodesicBufferOperator.js +5 -0
  137. package/chunks/geodeticAreaOperator.js +5 -0
  138. package/chunks/geodeticDensifyOperator.js +5 -0
  139. package/chunks/geodeticLengthOperator.js +5 -0
  140. package/chunks/i3s.js +1 -1
  141. package/chunks/intersectionOperator.js +5 -0
  142. package/chunks/intersectsOperator.js +5 -0
  143. package/chunks/languageUtils.js +1 -1
  144. package/chunks/lclayout.js +1 -1
  145. package/chunks/lengthOperator.js +5 -0
  146. package/chunks/lyr3DMain.js +1 -1
  147. package/chunks/lyr3DWorker.js +1 -1
  148. package/chunks/offsetOperator.js +5 -0
  149. package/chunks/overlapsOperator.js +5 -0
  150. package/chunks/pe-wasm.js +1 -1
  151. package/chunks/proximityOperator.js +5 -0
  152. package/chunks/relateOperator.js +5 -0
  153. package/chunks/simplifyOperator.js +5 -0
  154. package/chunks/symmetricDifferenceOperator.js +5 -0
  155. package/chunks/touchesOperator.js +5 -0
  156. package/chunks/unionOperator.js +5 -0
  157. package/chunks/vxlLayer.js +1 -1
  158. package/chunks/withinOperator.js +5 -0
  159. package/copyright.txt +2 -2
  160. package/core/Evented.js +1 -1
  161. package/geometry/operators/areaOperator.js +1 -1
  162. package/geometry/operators/bufferOperator.js +1 -1
  163. package/geometry/operators/centroidOperator.js +1 -1
  164. package/geometry/operators/clipOperator.js +1 -1
  165. package/geometry/operators/containsOperator.js +1 -1
  166. package/geometry/operators/convexHullOperator.js +1 -1
  167. package/geometry/operators/crossesOperator.js +1 -1
  168. package/geometry/operators/cutOperator.js +1 -1
  169. package/geometry/operators/densifyOperator.js +1 -1
  170. package/geometry/operators/differenceOperator.js +1 -1
  171. package/geometry/operators/disjointOperator.js +1 -1
  172. package/geometry/operators/distanceOperator.js +1 -1
  173. package/geometry/operators/equalsOperator.js +1 -1
  174. package/geometry/operators/extendOperator.js +1 -1
  175. package/geometry/operators/generalizeOperator.js +1 -1
  176. package/geometry/operators/geodesicBufferOperator.js +1 -1
  177. package/geometry/operators/geodeticAreaOperator.js +1 -1
  178. package/geometry/operators/geodeticDensifyOperator.js +1 -1
  179. package/geometry/operators/geodeticLengthOperator.js +1 -1
  180. package/geometry/operators/gx/operatorAffineTransform.js +1 -1
  181. package/geometry/operators/gx/operatorAlphaShape.js +1 -1
  182. package/geometry/operators/gx/operatorAutoComplete.js +1 -1
  183. package/geometry/operators/gx/operatorBoundary.js +1 -1
  184. package/geometry/operators/gx/operatorBuffer.js +1 -1
  185. package/geometry/operators/gx/operatorConvexHull.js +1 -1
  186. package/geometry/operators/gx/operatorGraphicBuffer.js +1 -1
  187. package/geometry/operators/gx/operatorIntegrate.js +1 -1
  188. package/geometry/operators/gx/operatorLabelPoint.js +1 -1
  189. package/geometry/operators/gx/operatorLinesToPolygons.js +1 -1
  190. package/geometry/operators/gx/operatorLocateBetween.js +1 -1
  191. package/geometry/operators/gx/operatorMinimumBoundingCircle.js +1 -1
  192. package/geometry/operators/gx/operatorOffset.js +1 -1
  193. package/geometry/operators/gx/operatorPolygonOverlay.js +1 -1
  194. package/geometry/operators/gx/operatorPolygonSlicer.js +1 -1
  195. package/geometry/operators/gx/operatorSinglePartToMultiPart.js +1 -1
  196. package/geometry/operators/gx/operatorSymmetricDifference.js +1 -1
  197. package/geometry/operators/intersectionOperator.js +1 -1
  198. package/geometry/operators/intersectsOperator.js +1 -1
  199. package/geometry/operators/isNearOperator.js +1 -1
  200. package/geometry/operators/json/disjointOperator.js +1 -1
  201. package/geometry/operators/lengthOperator.js +1 -1
  202. package/geometry/operators/offsetOperator.js +1 -1
  203. package/geometry/operators/overlapsOperator.js +1 -1
  204. package/geometry/operators/proximityOperator.js +1 -1
  205. package/geometry/operators/relateOperator.js +1 -1
  206. package/geometry/operators/reshapeOperator.js +1 -1
  207. package/geometry/operators/simplifyOperator.js +1 -1
  208. package/geometry/operators/support/apiConverter.js +1 -1
  209. package/geometry/operators/support/jsonConverter.js +1 -1
  210. package/geometry/operators/symmetricDifferenceOperator.js +1 -1
  211. package/geometry/operators/touchesOperator.js +1 -1
  212. package/geometry/operators/unionOperator.js +1 -1
  213. package/geometry/operators/withinOperator.js +1 -1
  214. package/geometry/support/contains.js +1 -1
  215. package/interfaces.d.ts +56 -0
  216. package/kernel.js +1 -1
  217. package/layers/KMLLayer.js +1 -1
  218. package/layers/WCSLayer.js +1 -1
  219. package/layers/graphics/sources/ParquetSource.js +1 -1
  220. package/layers/support/parquetLayerUtils.js +1 -1
  221. package/layers/support/rasterDatasets/WCSRaster.js +1 -1
  222. package/layers/support/rasterFormats/RasterCodec.js +1 -1
  223. package/layers/support/rasterFormats/TiffDecoder.js +1 -1
  224. package/layers/support/wmtsUtils.js +1 -1
  225. package/libs/parquet/parquet.js +1 -1
  226. package/package.json +3 -3
  227. package/smartMapping/renderers/support/utils.js +1 -1
  228. package/smartMapping/symbology/support/Theme.js +1 -1
  229. package/support/revision.js +1 -1
  230. package/views/2d/layers/features/FeatureContainer.js +1 -1
  231. package/views/2d/layers/features/FeaturePipelineWorker.js +1 -1
  232. package/views/2d/layers/features/Processor.js +1 -1
  233. package/views/2d/layers/features/sources/FeatureSource.js +1 -1
  234. package/views/2d/layers/features/sources/strategies/ParquetLoadStrategy.js +1 -1
  235. package/views/2d/layers/features/sources/strategies/chunks/SourceChunkStore.js +1 -1
  236. package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DView.js +1 -1
  237. package/views/3d/support/DisplayQualityProfile.js +1 -1
  238. package/views/3d/webgl-engine/core/shaderModules/interfaces.js +1 -1
  239. package/views/3d/webgl-engine/lib/Octree.js +1 -1
  240. package/views/SelectionManager.js +1 -1
  241. package/widgets/BatchAttributeForm.js +1 -1
  242. package/widgets/Feature/support/featureUtils.js +1 -1
  243. package/widgets/LayerList/LayerListItem.js +1 -1
  244. package/widgets/LayerList/support/layerListUtils.js +1 -1
  245. package/widgets/Legend/support/heatmapRampUtils.js +1 -1
  246. package/widgets/OrientedImageryViewer/OrientedImageryViewerVisibleElements.js +1 -1
  247. package/widgets/OrientedImageryViewer.js +1 -1
  248. package/widgets/support/widgetUtils.js +1 -1
  249. package/assets/esri/core/workers/chunks/015285436ca965f94e17.js +0 -1
  250. package/assets/esri/core/workers/chunks/048d296efa26ccd79056.js +0 -1
  251. package/assets/esri/core/workers/chunks/0e0b978459d70b15acb5.js +0 -1
  252. package/assets/esri/core/workers/chunks/10fa211987b16fd71a1a.js +0 -1
  253. package/assets/esri/core/workers/chunks/200a5f1864c2c2f7536c.js +0 -1
  254. package/assets/esri/core/workers/chunks/23a697d48f6e45cc033e.js +0 -1
  255. package/assets/esri/core/workers/chunks/29b610ff44708e044cbd.js +0 -1
  256. package/assets/esri/core/workers/chunks/3600125c58d5d04c515a.js +0 -1
  257. package/assets/esri/core/workers/chunks/457d4abc938d14f28e31.js +0 -1
  258. package/assets/esri/core/workers/chunks/4b5dbdcad438cb2dd4bf.js +0 -1
  259. package/assets/esri/core/workers/chunks/69efc716991a407c3d23.js +0 -1
  260. package/assets/esri/core/workers/chunks/6e254e846e284223ef63.js +0 -1
  261. package/assets/esri/core/workers/chunks/785610aa615198fd3815.js +0 -1
  262. package/assets/esri/core/workers/chunks/7bf7aace72f81f5de4e4.js +0 -1
  263. package/assets/esri/core/workers/chunks/7ea3d652536e1d79dfc6.js +0 -1
  264. package/assets/esri/core/workers/chunks/816c9c81352cd0ca8ce8.js +0 -1
  265. package/assets/esri/core/workers/chunks/9291508232b23f030178.js +0 -1
  266. package/assets/esri/core/workers/chunks/9fc49968dea8e2b64f3e.js +0 -1
  267. package/assets/esri/core/workers/chunks/a0b3d70a1b0360084593.js +0 -1
  268. package/assets/esri/core/workers/chunks/a100fb789d72410f8d4f.js +0 -2
  269. package/assets/esri/core/workers/chunks/b4d76d46661aba356ea3.js +0 -1
  270. package/assets/esri/core/workers/chunks/cb3af81e1fe6405c4885.js +0 -1
  271. package/assets/esri/core/workers/chunks/cbf57abb537e86c1dd7f.js +0 -1
  272. package/assets/esri/core/workers/chunks/cebdf2f88c4d2ad8baab.js +0 -1
  273. package/assets/esri/core/workers/chunks/d56d77125798beb7e493.js +0 -1
  274. package/assets/esri/core/workers/chunks/d82b3e2905cab511ff3a.js +0 -2
  275. package/assets/esri/core/workers/chunks/e2f91098793b8742fae6.js +0 -1
  276. package/assets/esri/core/workers/chunks/f25c04cf1a4bc1d2636a.js +0 -1
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4575],{7320:(t,e,i)=>{i.d(e,{g:()=>n});const n={convertToGEGeometry:function(t,e){return null==e?null:t.convertJSONToGeometry(e)},exportPoint:function(t,e,i){const n=new r(t.getPointX(e),t.getPointY(e),i),s=t.hasZ(e),o=t.hasM(e);return s&&(n.z=t.getPointZ(e)),o&&(n.m=t.getPointM(e)),n},exportPolygon:function(t,e,i){return new s(t.exportPaths(e),i,t.hasZ(e),t.hasM(e))},exportPolyline:function(t,e,i){return new o(t.exportPaths(e),i,t.hasZ(e),t.hasM(e))},exportMultipoint:function(t,e,i){return new a(t.exportPoints(e),i,t.hasZ(e),t.hasM(e))},exportExtent:function(t,e,i){const n=t.hasZ(e),r=t.hasM(e),s=new l(t.getXMin(e),t.getYMin(e),t.getXMax(e),t.getYMax(e),i);if(n){const i=t.getZExtent(e);s.zmin=i.vmin,s.zmax=i.vmax}if(r){const i=t.getMExtent(e);s.mmin=i.vmin,s.mmax=i.vmax}return s}};class r{constructor(t,e,i){this.x=t,this.y=e,this.spatialReference=i,this.z=void 0,this.m=void 0}}class s{constructor(t,e,i,n){this.rings=t,this.spatialReference=e,this.hasZ=void 0,this.hasM=void 0,i&&(this.hasZ=i),n&&(this.hasM=n)}}class o{constructor(t,e,i,n){this.paths=t,this.spatialReference=e,this.hasZ=void 0,this.hasM=void 0,i&&(this.hasZ=i),n&&(this.hasM=n)}}class a{constructor(t,e,i,n){this.points=t,this.spatialReference=e,this.hasZ=void 0,this.hasM=void 0,i&&(this.hasZ=i),n&&(this.hasM=n)}}class l{constructor(t,e,i,n,r){this.xmin=t,this.ymin=e,this.xmax=i,this.ymax=n,this.spatialReference=r,this.zmin=void 0,this.zmax=void 0,this.mmin=void 0,this.mmax=void 0}}},31464:(t,e,i)=>{i.d(e,{Cv:()=>f,Nk:()=>d,lK:()=>g});var n=i(4576),r=i(74887),s=i(57251),o=i(7320),a=i(21325),l=i(28735);const p=[0,0];function u(t,e){if(!e)return null;if("x"in e){const i={x:0,y:0};return[i.x,i.y]=t(e.x,e.y,p),null!=e.z&&(i.z=e.z),null!=e.m&&(i.m=e.m),i}if("xmin"in e){const i={xmin:0,ymin:0,xmax:0,ymax:0};return[i.xmin,i.ymin]=t(e.xmin,e.ymin,p),[i.xmax,i.ymax]=t(e.xmax,e.ymax,p),e.hasZ&&(i.zmin=e.zmin,i.zmax=e.zmax,i.hasZ=!0),e.hasM&&(i.mmin=e.mmin,i.mmax=e.mmax,i.hasM=!0),i}return"rings"in e?{rings:c(e.rings,t),hasM:e.hasM,hasZ:e.hasZ}:"paths"in e?{paths:c(e.paths,t),hasM:e.hasM,hasZ:e.hasZ}:"points"in e?{points:m(e.points,t),hasM:e.hasM,hasZ:e.hasZ}:null}function c(t,e){const i=[];for(const n of t)i.push(m(n,e));return i}function m(t,e){const i=[];for(const n of t){const t=e(n[0],n[1],[0,0]);i.push(t),n.length>2&&t.push(n[2]),n.length>3&&t.push(n[3])}return i}async function d(t,e){if(!t||!e)return;const i=Array.isArray(t)?t.map((t=>null!=t.geometry?t.geometry.spatialReference:null)).filter(n.Ru):[t];await(0,s.initializeProjection)(i.map((t=>({source:t,dest:e}))))}const y=u.bind(null,l.je),h=u.bind(null,l.tD);function f(t,e,i,n){if(!t)return null;if(i||(i=e,e=t.spatialReference),!(0,a.fn)(e)||!(0,a.fn)(i)||(0,a.aI)(e,i))return t;if((0,l.y7)(e,i)){const e=(0,a.K8)(i)?y(t):h(t);return e.spatialReference=i,e}return(0,s.projectMany)(o.g,[t],e,i,null,n)[0]}const v=new class{constructor(){this._jobs=[],this._timer=null,this._process=this._process.bind(this)}async push(t,e,i,n){if(!t?.length||!e||!i||(0,a.aI)(e,i))return t;const s={geometries:t,inSpatialReference:e,outSpatialReference:i,geographicTransformation:n,resolve:(0,r.Tw)()};return this._jobs.push(s),this._timer??=setTimeout(this._process,10),s.resolve.promise}_process(){this._timer=null;const t=this._jobs.shift();if(!t)return;const{geometries:e,inSpatialReference:i,outSpatialReference:n,resolve:r,geographicTransformation:p}=t;(0,l.y7)(i,n)?(0,a.K8)(n)?r(e.map(y)):r(e.map(h)):r((0,s.projectMany)(o.g,e,i,n,p,null)),this._jobs.length>0&&(this._timer=setTimeout(this._process,10))}};function g(t,e,i,n){return v.push(t,e,i,n)}},58727:(t,e,i)=>{i.d(e,{GC:()=>y,T2:()=>h,VY:()=>c,dO:()=>v,iJ:()=>d,v8:()=>m});var n=i(66552),r=i(83047),s=i(57251),o=i(90634),a=i(65864),l=i(17136),p=i(21325),u=i(31464);const c=new n.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"}),m=Object.freeze({});async function d(t,e,i){const n=t.bin,{onField:r,expression:s,splitBy:o,splitByField:a,splitByAlias:l,stackBy:p,stackByField:u,stackByAlias:c}=n;return r&&(n.onField=r.trim()),s&&(n.expression=s.trim()),o&&(n.splitBy=o.trim()),a&&(n.splitByField=a.trim()),l&&(n.splitByAlias=l.trim()),p&&(n.stackBy=p.trim()),u&&(n.stackByField=u.trim()),c&&(n.stackByAlias=c.trim()),"normalizationField"in n.parameters&&n.parameters.normalizationField&&(n.parameters.normalizationField=n.parameters.normalizationField.trim()),y(t,e,i)}async function y(t,e,i){const{outFields:n,orderByFields:r,groupByFieldsForStatistics:s,outStatistics:o}=t;if(n)for(let t=0;t<n.length;t++)n[t]=n[t].trim();if(r)for(let t=0;t<r.length;t++)r[t]=r[t].trim();if(s)for(let t=0;t<s.length;t++)s[t]=s[t].trim();if(o)for(let t=0;t<o.length;t++)o[t].onStatisticField&&(o[t].onStatisticField=o[t].onStatisticField.trim());return t.geometry&&!t.outSR&&(t.outSR=t.geometry.spatialReference),h(t,e,i)}async function h(t,e,n){if(!t)return null;let{where:s}=t;if(t.where=s=s?.trim(),(!s||/^1 *= *1$/.test(s)||e&&e===s)&&(t.where=null),!t.geometry)return t;let d=await async function(t){const{distance:e,units:n}=t,s=t.geometry;if(null==e||"vertexAttributes"in s)return s;const o=s.spatialReference,a=n?c.fromJSON(n):(0,r.Ij)(o),l=o&&((0,p.EA)(o)||(0,p.K8)(o))?s:await(0,u.Nk)(o,p.KK).then((()=>(0,u.Cv)(s,p.KK))),m=await i.e(6165).then(i.bind(i,86165));return await m.load(),m.execute(l,e,{unit:a})??void 0}(t);if(t.distance=0,t.units=null,"esriSpatialRelEnvelopeIntersects"===t.spatialRel){const{spatialReference:e}=t.geometry;d=(0,o.HA)(d),d.spatialReference=e}if(d){await(0,u.Nk)(d.spatialReference,n),d=function(t,e){const i=t.spatialReference;return f(t,e)&&(0,a.ZC)(t)?{spatialReference:i,rings:[[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]]]}:t}(d,n);const e=(await(0,l.el)((0,a.rS)(d)))[0];if(null==e)throw m;const i="quantizationParameters"in t&&t.quantizationParameters?.tolerance||"maxAllowableOffset"in t&&t.maxAllowableOffset||0,r=i&&f(d,n)?{densificationStep:8*i}:void 0,s=e.toJSON(),o=(0,u.Cv)(s,s.spatialReference,n,r);if(!o)throw m;o.spatialReference=n,t.geometry=o}return t}function f(t,e){if(!t)return!1;const i=t.spatialReference;return((0,a.ZC)(t)||(0,a.Bi)(t)||(0,a.Rg)(t))&&!(0,p.aI)(i,e)&&!(0,s.canProjectWithoutEngine)(i,e)}function v(t,e){return null==t?null:"string"==typeof t?e?new Date(`1970-01-01T${t}Z`).getTime():new Date(t).getTime():t instanceof Date?t.getTime():t}},14575:(t,e,i)=>{i.r(e),i.d(e,{default:()=>b});var n=i(90237),r=i(59456),s=i(69540),o=i(66552),a=i(25482),l=i(53966),p=i(10107),u=i(56507),c=(i(87811),i(44208),i(93223)),m=i(40608),d=i(65864),y=i(58727),h=i(5834),f=i(53275),v=i(59977),g=i(11440),x=i(60909),w=i(58174),M=i(7562),_=i(56400),B=i(16930);const Z=new o.J({asc:"ascending",desc:"descending"}),A={base:f.A,key:"type",typeMap:{"auto-interval":h.A,date:v.A,"fixed-boundaries":g.A,"fixed-interval":x.A}};let S=class extends(s.A.ClonableMixin(a.A)){constructor(t){super(t),this.binParameters=null,this.binOrder="ascending",this.cacheHint=void 0,this.datumTransformation=null,this.defaultSpatialReference=null,this.distance=void 0,this.geometry=null,this.lowerBoundaryAlias=null,this.outSpatialReference=null,this.outStatistics=null,this.returnDistinctValues=null,this.spatialRelationship="intersects",this.upperBoundaryAlias=null,this.units=null,this.where="1=1"}set outTimeZone(t){this._set("outTimeZone",t),t&&!(0,_.wr)(t)&&l.A.getLogger(this).warn("#outTimeZone",`the parsed value '${t}' may not be a valid IANA time zone`)}};(0,n._)([(0,p.MZ)({types:A,json:{name:"bin",write:!0}})],S.prototype,"binParameters",void 0),(0,n._)([(0,c.e)(Z)],S.prototype,"binOrder",void 0),(0,n._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],S.prototype,"cacheHint",void 0),(0,n._)([(0,p.MZ)({json:{write:!0}})],S.prototype,"datumTransformation",void 0),(0,n._)([(0,p.MZ)({type:B.A,json:{name:"defaultSR",write:!0}})],S.prototype,"defaultSpatialReference",void 0),(0,n._)([(0,p.MZ)({type:Number,json:{write:{overridePolicy:t=>({enabled:t>0})}}})],S.prototype,"distance",void 0),(0,n._)([(0,p.MZ)({types:r.yR,json:{read:d.rS,write:!0}})],S.prototype,"geometry",void 0),(0,n._)([(0,p.MZ)({type:String,json:{write:!0}})],S.prototype,"lowerBoundaryAlias",void 0),(0,n._)([(0,p.MZ)({type:B.A,json:{name:"outSR",write:!0}})],S.prototype,"outSpatialReference",void 0),(0,n._)([(0,p.MZ)({type:[M.A],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.outStatistics&&this.outStatistics.length>0}}}}})],S.prototype,"outStatistics",void 0),(0,n._)([(0,p.MZ)({value:null,json:{name:"outTimeReference",read:{reader:t=>t.ianaTimeZone},write:{writer:(t,e,i)=>{t&&(e[i]={ianaTimeZone:t})}}}})],S.prototype,"outTimeZone",null),(0,n._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],S.prototype,"returnDistinctValues",void 0),(0,n._)([(0,c.e)(w.x,{name:"spatialRel"})],S.prototype,"spatialRelationship",void 0),(0,n._)([(0,p.MZ)({type:String,json:{write:!0}})],S.prototype,"upperBoundaryAlias",void 0),(0,n._)([(0,p.MZ)({type:String,json:{read:y.VY.read,write:{writer:y.VY.write,overridePolicy(t){return{enabled:null!=t&&null!=this.distance&&this.distance>0}}}}})],S.prototype,"units",void 0),(0,n._)([(0,p.MZ)({type:String,json:{write:!0}})],S.prototype,"where",void 0),S=(0,n._)([(0,m.$)("esri.rest.support.AttributeBinsQuery")],S);const b=S;S.from=(0,u.dp)(S)},5834:(t,e,i)=>{i.d(e,{A:()=>d});var n=i(90237),r=i(93637),s=i(10107),o=i(56507),a=(i(87811),i(44208),i(93223)),l=i(40608),p=i(53275),u=i(41366);function c(t,e,i){(0,r.sM)(i,t instanceof Date?t.getTime():t,e)}let m=class extends((0,u.K)(p.A)){constructor(t){super(t),this.numBins=null,this.end=null,this.start=null,this.type="auto-interval"}};(0,n._)([(0,s.MZ)({type:Number,json:{name:"parameters.numberOfBins",write:!0}})],m.prototype,"numBins",void 0),(0,n._)([(0,s.MZ)({json:{name:"parameters.end",write:{writer:c}}})],m.prototype,"end",void 0),(0,n._)([(0,s.MZ)({json:{name:"parameters.start",write:{writer:c}}})],m.prototype,"start",void 0),(0,n._)([(0,a.e)({autoIntervalBin:"auto-interval"},{readOnly:!0})],m.prototype,"type",void 0),m=(0,n._)([(0,l.$)("esri.rest.support.AutoIntervalBinParameters")],m);const d=m;m.from=(0,o.dp)(m)},53275:(t,e,i)=>{i.d(e,{A:()=>h});var n=i(90237),r=i(69540),s=i(66552),o=i(25482),a=i(10107),l=(i(44208),i(53966),i(87811),i(93223)),p=i(40608),u=i(56507);let c=class extends(r.A.ClonableMixin(o.A)){constructor(t){super(t),this.alias=null,this.expression=null,this.field=null,this.responseType=null}};(0,n._)([(0,a.MZ)({type:String,json:{write:!0}})],c.prototype,"alias",void 0),(0,n._)([(0,a.MZ)({type:String,json:{write:!0}})],c.prototype,"expression",void 0),(0,n._)([(0,a.MZ)({type:String,json:{write:!0}})],c.prototype,"field",void 0),(0,n._)([(0,a.MZ)({type:String,json:{write:!0}})],c.prototype,"responseType",void 0),c=(0,n._)([(0,p.$)("esri.rest.support.BinParametersAttributes")],c);const m=c;c.from=(0,u.dp)(c);const d=new s.J({naturalLog:"natural-log",squareRoot:"square-root"});let y=class extends(r.A.ClonableMixin(o.A)){constructor(t){super(t),this.expression=null,this.field=null,this.firstDayOfWeek=null,this.hideUpperBound=null,this.splitByAttributes=null,this.stackByAttributes=null,this.transformation=null}};(0,n._)([(0,a.MZ)({type:String,json:{write:!0}})],y.prototype,"expression",void 0),(0,n._)([(0,a.MZ)({type:String,json:{name:"onField",write:!0}})],y.prototype,"field",void 0),(0,n._)([(0,a.MZ)({type:String,json:{write:!0}})],y.prototype,"firstDayOfWeek",void 0),(0,n._)([(0,a.MZ)({type:String,json:{write:!0}})],y.prototype,"hideUpperBound",void 0),(0,n._)([(0,a.MZ)({type:m,json:{write:{target:{splitBy:{type:String},splitByField:{type:String},splitByAlias:{type:String}},writer:(t,e)=>{null!=t.field&&(e.splitByField=t.field),null!=t.expression&&(e.splitBy=t.expression),null!=t.alias&&(e.splitByAlias=t.alias)}},read:{source:["splitBy","splitByField","splitByAlias"],reader:(t,e)=>new m({field:e.splitByField,expression:e.splitBy,alias:e.splitByAlias})}}})],y.prototype,"splitByAttributes",void 0),(0,n._)([(0,a.MZ)({type:m,json:{write:{target:{stackBy:{type:String},stackByField:{type:String},stackByAlias:{type:String},jsonStyle:{type:String}},writer:(t,e)=>{null!=t.field&&(e.stackByField=t.field),null!=t.expression&&(e.stackBy=t.expression),null!=t.alias&&(e.stackByAlias=t.alias),null!=t.responseType&&(e.jsonStyle=t.responseType)},overridePolicy(){return{enabled:null!=this.stackByAttributes?.field||null!=this.stackByAttributes?.expression}}},read:{source:["stackBy","stackByField","stackByAlias","jsonStyle"],reader:(t,e)=>new m({field:e.stackByField,expression:e.stackBy,alias:e.stackByAlias,responseType:e.jsonStyle})}}})],y.prototype,"stackByAttributes",void 0),(0,n._)([(0,l.e)(d)],y.prototype,"transformation",void 0),y=(0,n._)([(0,p.$)("esri.rest.support.BinParametersBase")],y);const h=y},59977:(t,e,i)=>{i.d(e,{A:()=>x});var n=i(90237),r=i(93637),s=i(10107),o=i(56507),a=(i(87811),i(44208),i(93223)),l=i(40608),p=i(53275),u=i(69540),c=i(66552),m=i(25482);const d=(0,c.O)()({year:"years",quarter:"quarters",month:"months",week:"weeks",day:"days",hour:"hours",minute:"minutes",second:"seconds"});let y=class extends(u.A.ClonableMixin(m.A)){constructor(t){super(t),this.value=null,this.unit=null}};(0,n._)([(0,s.MZ)({type:Number,json:{name:"number",write:!0}})],y.prototype,"value",void 0),(0,n._)([(0,a.e)(d)],y.prototype,"unit",void 0),y=(0,n._)([(0,l.$)("esri.rest.support.DateBinTimeInterval")],y);const h=y;function f(t,e,i){(0,r.sM)(i,"string"==typeof t?t:t?.getTime(),e)}function v(t,e){const i=t.parameters[e];return i?"string"==typeof i?i:new Date(i):null}y.from=(0,o.dp)(y);let g=class extends p.A{constructor(t){super(t),this.end=null,this.interval=null,this.offset=null,this.start=null,this.type="date"}};(0,n._)([(0,s.MZ)({cast:t=>t?"string"==typeof t?t:new Date(t):null,json:{name:"parameters.end",read:{reader:(t,e)=>v(e,"end")},write:{writer:f}}})],g.prototype,"end",void 0),(0,n._)([(0,s.MZ)({type:h,json:{name:"parameters",write:!0}})],g.prototype,"interval",void 0),(0,n._)([(0,s.MZ)({type:h,json:{name:"parameters.offset",write:!0}})],g.prototype,"offset",void 0),(0,n._)([(0,s.MZ)({cast:t=>t?"string"==typeof t?t:new Date(t):null,json:{name:"parameters.start",read:{reader:(t,e)=>v(e,"start")},write:{writer:f}}})],g.prototype,"start",void 0),(0,n._)([(0,a.e)({dateBin:"date"},{readOnly:!0})],g.prototype,"type",void 0),g=(0,n._)([(0,l.$)("esri.rest.support.DateBinParameters")],g);const x=g;g.from=(0,o.dp)(g)},11440:(t,e,i)=>{i.d(e,{A:()=>c});var n=i(90237),r=i(93637),s=i(10107),o=i(56507),a=(i(87811),i(44208),i(93223)),l=i(40608),p=i(53275);let u=class extends p.A{constructor(t){super(t),this.boundaries=[],this.type="fixed-boundaries"}};(0,n._)([(0,s.MZ)({json:{name:"parameters.boundaries",write:{writer:function(t,e,i){(0,r.sM)(i,t&&function(t){return t[0]instanceof Date}(t)?t.map((t=>t.getTime())):t,e)}}}})],u.prototype,"boundaries",void 0),(0,n._)([(0,a.e)({fixedBoundariesBin:"fixed-boundaries"},{readOnly:!0})],u.prototype,"type",void 0),u=(0,n._)([(0,l.$)("esri.rest.support.FixedBoundariesBinParameters")],u);const c=u;u.from=(0,o.dp)(u)},60909:(t,e,i)=>{i.d(e,{A:()=>d});var n=i(90237),r=i(93637),s=i(10107),o=i(56507),a=(i(87811),i(44208),i(93223)),l=i(40608),p=i(53275),u=i(41366);function c(t,e,i){(0,r.sM)(i,t instanceof Date?t.getTime():t,e)}let m=class extends((0,u.K)(p.A)){constructor(t){super(t),this.end=null,this.interval=null,this.start=null,this.type="fixed-interval"}};(0,n._)([(0,s.MZ)({json:{name:"parameters.end",write:{writer:c}}})],m.prototype,"end",void 0),(0,n._)([(0,s.MZ)({type:Number,json:{name:"parameters.interval",write:!0}})],m.prototype,"interval",void 0),(0,n._)([(0,s.MZ)({json:{name:"parameters.start",write:{writer:c}}})],m.prototype,"start",void 0),(0,n._)([(0,a.e)({fixedIntervalBin:"fixed-interval"},{readOnly:!0})],m.prototype,"type",void 0),m=(0,n._)([(0,l.$)("esri.rest.support.FixedIntervalBinParameters")],m);const d=m;m.from=(0,o.dp)(m)},41366:(t,e,i)=>{i.d(e,{K:()=>m});var n=i(90237),r=i(66552),s=i(53966),o=i(10107),a=(i(44208),i(87811),i(93223)),l=i(40608);const p=(0,r.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),u="percent-of-total",c="field",m=t=>{let e=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let t=this._get("normalizationType");const e=!!this.normalizationField,i=null!=this.normalizationTotal;return e||i?(t=e&&c||i&&u||null,e&&i&&s.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):t!==c&&t!==u||(t=null),t}set normalizationType(t){this._set("normalizationType",t)}};return(0,n._)([(0,o.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],e.prototype,"normalizationField",void 0),(0,n._)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],e.prototype,"normalizationMaxValue",void 0),(0,n._)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],e.prototype,"normalizationMinValue",void 0),(0,n._)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],e.prototype,"normalizationTotal",void 0),(0,n._)([(0,a.e)(p,{name:"parameters.normalizationType"})],e.prototype,"normalizationType",null),e=(0,n._)([(0,l.$)("esri.rest.support.NormalizationBinParametersMixin")],e),e}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4575],{7320:(t,e,i)=>{i.d(e,{g:()=>n});const n={convertToGEGeometry:function(t,e){return null==e?null:t.convertJSONToGeometry(e)},exportPoint:function(t,e,i){const n=new r(t.getPointX(e),t.getPointY(e),i),s=t.hasZ(e),o=t.hasM(e);return s&&(n.z=t.getPointZ(e)),o&&(n.m=t.getPointM(e)),n},exportPolygon:function(t,e,i){return new s(t.exportPaths(e),i,t.hasZ(e),t.hasM(e))},exportPolyline:function(t,e,i){return new o(t.exportPaths(e),i,t.hasZ(e),t.hasM(e))},exportMultipoint:function(t,e,i){return new a(t.exportPoints(e),i,t.hasZ(e),t.hasM(e))},exportExtent:function(t,e,i){const n=t.hasZ(e),r=t.hasM(e),s=new l(t.getXMin(e),t.getYMin(e),t.getXMax(e),t.getYMax(e),i);if(n){const i=t.getZExtent(e);s.zmin=i.vmin,s.zmax=i.vmax}if(r){const i=t.getMExtent(e);s.mmin=i.vmin,s.mmax=i.vmax}return s}};class r{constructor(t,e,i){this.x=t,this.y=e,this.spatialReference=i,this.z=void 0,this.m=void 0}}class s{constructor(t,e,i,n){this.rings=t,this.spatialReference=e,this.hasZ=void 0,this.hasM=void 0,i&&(this.hasZ=i),n&&(this.hasM=n)}}class o{constructor(t,e,i,n){this.paths=t,this.spatialReference=e,this.hasZ=void 0,this.hasM=void 0,i&&(this.hasZ=i),n&&(this.hasM=n)}}class a{constructor(t,e,i,n){this.points=t,this.spatialReference=e,this.hasZ=void 0,this.hasM=void 0,i&&(this.hasZ=i),n&&(this.hasM=n)}}class l{constructor(t,e,i,n,r){this.xmin=t,this.ymin=e,this.xmax=i,this.ymax=n,this.spatialReference=r,this.zmin=void 0,this.zmax=void 0,this.mmin=void 0,this.mmax=void 0}}},31464:(t,e,i)=>{i.d(e,{Cv:()=>f,Nk:()=>d,lK:()=>g});var n=i(4576),r=i(74887),s=i(57251),o=i(7320),a=i(21325),l=i(28735);const p=[0,0];function u(t,e){if(!e)return null;if("x"in e){const i={x:0,y:0};return[i.x,i.y]=t(e.x,e.y,p),null!=e.z&&(i.z=e.z),null!=e.m&&(i.m=e.m),i}if("xmin"in e){const i={xmin:0,ymin:0,xmax:0,ymax:0};return[i.xmin,i.ymin]=t(e.xmin,e.ymin,p),[i.xmax,i.ymax]=t(e.xmax,e.ymax,p),e.hasZ&&(i.zmin=e.zmin,i.zmax=e.zmax,i.hasZ=!0),e.hasM&&(i.mmin=e.mmin,i.mmax=e.mmax,i.hasM=!0),i}return"rings"in e?{rings:c(e.rings,t),hasM:e.hasM,hasZ:e.hasZ}:"paths"in e?{paths:c(e.paths,t),hasM:e.hasM,hasZ:e.hasZ}:"points"in e?{points:m(e.points,t),hasM:e.hasM,hasZ:e.hasZ}:null}function c(t,e){const i=[];for(const n of t)i.push(m(n,e));return i}function m(t,e){const i=[];for(const n of t){const t=e(n[0],n[1],[0,0]);i.push(t),n.length>2&&t.push(n[2]),n.length>3&&t.push(n[3])}return i}async function d(t,e){if(!t||!e)return;const i=Array.isArray(t)?t.map((t=>null!=t.geometry?t.geometry.spatialReference:null)).filter(n.Ru):[t];await(0,s.initializeProjection)(i.map((t=>({source:t,dest:e}))))}const y=u.bind(null,l.je),h=u.bind(null,l.tD);function f(t,e,i,n){if(!t)return null;if(i||(i=e,e=t.spatialReference),!(0,a.fn)(e)||!(0,a.fn)(i)||(0,a.aI)(e,i))return t;if((0,l.y7)(e,i)){const e=(0,a.K8)(i)?y(t):h(t);return e.spatialReference=i,e}return(0,s.projectMany)(o.g,[t],e,i,null,n)[0]}const v=new class{constructor(){this._jobs=[],this._timer=null,this._process=this._process.bind(this)}async push(t,e,i,n){if(!t?.length||!e||!i||(0,a.aI)(e,i))return t;const s={geometries:t,inSpatialReference:e,outSpatialReference:i,geographicTransformation:n,resolve:(0,r.Tw)()};return this._jobs.push(s),this._timer??=setTimeout(this._process,10),s.resolve.promise}_process(){this._timer=null;const t=this._jobs.shift();if(!t)return;const{geometries:e,inSpatialReference:i,outSpatialReference:n,resolve:r,geographicTransformation:p}=t;(0,l.y7)(i,n)?(0,a.K8)(n)?r(e.map(y)):r(e.map(h)):r((0,s.projectMany)(o.g,e,i,n,p,null)),this._jobs.length>0&&(this._timer=setTimeout(this._process,10))}};function g(t,e,i,n){return v.push(t,e,i,n)}},58727:(t,e,i)=>{i.d(e,{GC:()=>y,T2:()=>h,VY:()=>c,dO:()=>v,iJ:()=>d,v8:()=>m});var n=i(66552),r=i(83047),s=i(57251),o=i(90634),a=i(65864),l=i(17136),p=i(21325),u=i(31464);const c=new n.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"}),m=Object.freeze({});async function d(t,e,i){const n=t.bin,{onField:r,expression:s,splitBy:o,splitByField:a,splitByAlias:l,stackBy:p,stackByField:u,stackByAlias:c}=n;return r&&(n.onField=r.trim()),s&&(n.expression=s.trim()),o&&(n.splitBy=o.trim()),a&&(n.splitByField=a.trim()),l&&(n.splitByAlias=l.trim()),p&&(n.stackBy=p.trim()),u&&(n.stackByField=u.trim()),c&&(n.stackByAlias=c.trim()),"normalizationField"in n.parameters&&n.parameters.normalizationField&&(n.parameters.normalizationField=n.parameters.normalizationField.trim()),y(t,e,i)}async function y(t,e,i){const{outFields:n,orderByFields:r,groupByFieldsForStatistics:s,outStatistics:o}=t;if(n)for(let t=0;t<n.length;t++)n[t]=n[t].trim();if(r)for(let t=0;t<r.length;t++)r[t]=r[t].trim();if(s)for(let t=0;t<s.length;t++)s[t]=s[t].trim();if(o)for(let t=0;t<o.length;t++)o[t].onStatisticField&&(o[t].onStatisticField=o[t].onStatisticField.trim());return t.geometry&&!t.outSR&&(t.outSR=t.geometry.spatialReference),h(t,e,i)}async function h(t,e,n){if(!t)return null;let{where:s}=t;if(t.where=s=s?.trim(),(!s||/^1 *= *1$/.test(s)||e&&e===s)&&(t.where=null),!t.geometry)return t;let d=await async function(t){const{distance:e,units:n}=t,s=t.geometry;if(null==e||"vertexAttributes"in s)return s;const o=s.spatialReference,a=n?c.fromJSON(n):(0,r.Ij)(o),l=o&&((0,p.EA)(o)||(0,p.K8)(o))?s:await(0,u.Nk)(o,p.KK).then((()=>(0,u.Cv)(s,p.KK))),m=await i.e(9159).then(i.bind(i,49159));return await m.load(),m.execute(l,e,{unit:a})??void 0}(t);if(t.distance=0,t.units=null,"esriSpatialRelEnvelopeIntersects"===t.spatialRel){const{spatialReference:e}=t.geometry;d=(0,o.HA)(d),d.spatialReference=e}if(d){await(0,u.Nk)(d.spatialReference,n),d=function(t,e){const i=t.spatialReference;return f(t,e)&&(0,a.ZC)(t)?{spatialReference:i,rings:[[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]]]}:t}(d,n);const e=(await(0,l.el)((0,a.rS)(d)))[0];if(null==e)throw m;const i="quantizationParameters"in t&&t.quantizationParameters?.tolerance||"maxAllowableOffset"in t&&t.maxAllowableOffset||0,r=i&&f(d,n)?{densificationStep:8*i}:void 0,s=e.toJSON(),o=(0,u.Cv)(s,s.spatialReference,n,r);if(!o)throw m;o.spatialReference=n,t.geometry=o}return t}function f(t,e){if(!t)return!1;const i=t.spatialReference;return((0,a.ZC)(t)||(0,a.Bi)(t)||(0,a.Rg)(t))&&!(0,p.aI)(i,e)&&!(0,s.canProjectWithoutEngine)(i,e)}function v(t,e){return null==t?null:"string"==typeof t?e?new Date(`1970-01-01T${t}Z`).getTime():new Date(t).getTime():t instanceof Date?t.getTime():t}},14575:(t,e,i)=>{i.r(e),i.d(e,{default:()=>b});var n=i(90237),r=i(59456),s=i(69540),o=i(66552),a=i(25482),l=i(53966),p=i(10107),u=i(56507),c=(i(87811),i(44208),i(93223)),m=i(40608),d=i(65864),y=i(58727),h=i(5834),f=i(53275),v=i(59977),g=i(11440),x=i(60909),w=i(58174),M=i(7562),_=i(56400),B=i(16930);const Z=new o.J({asc:"ascending",desc:"descending"}),A={base:f.A,key:"type",typeMap:{"auto-interval":h.A,date:v.A,"fixed-boundaries":g.A,"fixed-interval":x.A}};let S=class extends(s.A.ClonableMixin(a.A)){constructor(t){super(t),this.binParameters=null,this.binOrder="ascending",this.cacheHint=void 0,this.datumTransformation=null,this.defaultSpatialReference=null,this.distance=void 0,this.geometry=null,this.lowerBoundaryAlias=null,this.outSpatialReference=null,this.outStatistics=null,this.returnDistinctValues=null,this.spatialRelationship="intersects",this.upperBoundaryAlias=null,this.units=null,this.where="1=1"}set outTimeZone(t){this._set("outTimeZone",t),t&&!(0,_.wr)(t)&&l.A.getLogger(this).warn("#outTimeZone",`the parsed value '${t}' may not be a valid IANA time zone`)}};(0,n._)([(0,p.MZ)({types:A,json:{name:"bin",write:!0}})],S.prototype,"binParameters",void 0),(0,n._)([(0,c.e)(Z)],S.prototype,"binOrder",void 0),(0,n._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],S.prototype,"cacheHint",void 0),(0,n._)([(0,p.MZ)({json:{write:!0}})],S.prototype,"datumTransformation",void 0),(0,n._)([(0,p.MZ)({type:B.A,json:{name:"defaultSR",write:!0}})],S.prototype,"defaultSpatialReference",void 0),(0,n._)([(0,p.MZ)({type:Number,json:{write:{overridePolicy:t=>({enabled:t>0})}}})],S.prototype,"distance",void 0),(0,n._)([(0,p.MZ)({types:r.yR,json:{read:d.rS,write:!0}})],S.prototype,"geometry",void 0),(0,n._)([(0,p.MZ)({type:String,json:{write:!0}})],S.prototype,"lowerBoundaryAlias",void 0),(0,n._)([(0,p.MZ)({type:B.A,json:{name:"outSR",write:!0}})],S.prototype,"outSpatialReference",void 0),(0,n._)([(0,p.MZ)({type:[M.A],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.outStatistics&&this.outStatistics.length>0}}}}})],S.prototype,"outStatistics",void 0),(0,n._)([(0,p.MZ)({value:null,json:{name:"outTimeReference",read:{reader:t=>t.ianaTimeZone},write:{writer:(t,e,i)=>{t&&(e[i]={ianaTimeZone:t})}}}})],S.prototype,"outTimeZone",null),(0,n._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],S.prototype,"returnDistinctValues",void 0),(0,n._)([(0,c.e)(w.x,{name:"spatialRel"})],S.prototype,"spatialRelationship",void 0),(0,n._)([(0,p.MZ)({type:String,json:{write:!0}})],S.prototype,"upperBoundaryAlias",void 0),(0,n._)([(0,p.MZ)({type:String,json:{read:y.VY.read,write:{writer:y.VY.write,overridePolicy(t){return{enabled:null!=t&&null!=this.distance&&this.distance>0}}}}})],S.prototype,"units",void 0),(0,n._)([(0,p.MZ)({type:String,json:{write:!0}})],S.prototype,"where",void 0),S=(0,n._)([(0,m.$)("esri.rest.support.AttributeBinsQuery")],S);const b=S;S.from=(0,u.dp)(S)},5834:(t,e,i)=>{i.d(e,{A:()=>d});var n=i(90237),r=i(93637),s=i(10107),o=i(56507),a=(i(87811),i(44208),i(93223)),l=i(40608),p=i(53275),u=i(41366);function c(t,e,i){(0,r.sM)(i,t instanceof Date?t.getTime():t,e)}let m=class extends((0,u.K)(p.A)){constructor(t){super(t),this.numBins=null,this.end=null,this.start=null,this.type="auto-interval"}};(0,n._)([(0,s.MZ)({type:Number,json:{name:"parameters.numberOfBins",write:!0}})],m.prototype,"numBins",void 0),(0,n._)([(0,s.MZ)({json:{name:"parameters.end",write:{writer:c}}})],m.prototype,"end",void 0),(0,n._)([(0,s.MZ)({json:{name:"parameters.start",write:{writer:c}}})],m.prototype,"start",void 0),(0,n._)([(0,a.e)({autoIntervalBin:"auto-interval"},{readOnly:!0})],m.prototype,"type",void 0),m=(0,n._)([(0,l.$)("esri.rest.support.AutoIntervalBinParameters")],m);const d=m;m.from=(0,o.dp)(m)},53275:(t,e,i)=>{i.d(e,{A:()=>h});var n=i(90237),r=i(69540),s=i(66552),o=i(25482),a=i(10107),l=(i(44208),i(53966),i(87811),i(93223)),p=i(40608),u=i(56507);let c=class extends(r.A.ClonableMixin(o.A)){constructor(t){super(t),this.alias=null,this.expression=null,this.field=null,this.responseType=null}};(0,n._)([(0,a.MZ)({type:String,json:{write:!0}})],c.prototype,"alias",void 0),(0,n._)([(0,a.MZ)({type:String,json:{write:!0}})],c.prototype,"expression",void 0),(0,n._)([(0,a.MZ)({type:String,json:{write:!0}})],c.prototype,"field",void 0),(0,n._)([(0,a.MZ)({type:String,json:{write:!0}})],c.prototype,"responseType",void 0),c=(0,n._)([(0,p.$)("esri.rest.support.BinParametersAttributes")],c);const m=c;c.from=(0,u.dp)(c);const d=new s.J({naturalLog:"natural-log",squareRoot:"square-root"});let y=class extends(r.A.ClonableMixin(o.A)){constructor(t){super(t),this.expression=null,this.field=null,this.firstDayOfWeek=null,this.hideUpperBound=null,this.splitByAttributes=null,this.stackByAttributes=null,this.transformation=null}};(0,n._)([(0,a.MZ)({type:String,json:{write:!0}})],y.prototype,"expression",void 0),(0,n._)([(0,a.MZ)({type:String,json:{name:"onField",write:!0}})],y.prototype,"field",void 0),(0,n._)([(0,a.MZ)({type:String,json:{write:!0}})],y.prototype,"firstDayOfWeek",void 0),(0,n._)([(0,a.MZ)({type:String,json:{write:!0}})],y.prototype,"hideUpperBound",void 0),(0,n._)([(0,a.MZ)({type:m,json:{write:{target:{splitBy:{type:String},splitByField:{type:String},splitByAlias:{type:String}},writer:(t,e)=>{null!=t.field&&(e.splitByField=t.field),null!=t.expression&&(e.splitBy=t.expression),null!=t.alias&&(e.splitByAlias=t.alias)}},read:{source:["splitBy","splitByField","splitByAlias"],reader:(t,e)=>new m({field:e.splitByField,expression:e.splitBy,alias:e.splitByAlias})}}})],y.prototype,"splitByAttributes",void 0),(0,n._)([(0,a.MZ)({type:m,json:{write:{target:{stackBy:{type:String},stackByField:{type:String},stackByAlias:{type:String},jsonStyle:{type:String}},writer:(t,e)=>{null!=t.field&&(e.stackByField=t.field),null!=t.expression&&(e.stackBy=t.expression),null!=t.alias&&(e.stackByAlias=t.alias),null!=t.responseType&&(e.jsonStyle=t.responseType)},overridePolicy(){return{enabled:null!=this.stackByAttributes?.field||null!=this.stackByAttributes?.expression}}},read:{source:["stackBy","stackByField","stackByAlias","jsonStyle"],reader:(t,e)=>new m({field:e.stackByField,expression:e.stackBy,alias:e.stackByAlias,responseType:e.jsonStyle})}}})],y.prototype,"stackByAttributes",void 0),(0,n._)([(0,l.e)(d)],y.prototype,"transformation",void 0),y=(0,n._)([(0,p.$)("esri.rest.support.BinParametersBase")],y);const h=y},59977:(t,e,i)=>{i.d(e,{A:()=>x});var n=i(90237),r=i(93637),s=i(10107),o=i(56507),a=(i(87811),i(44208),i(93223)),l=i(40608),p=i(53275),u=i(69540),c=i(66552),m=i(25482);const d=(0,c.O)()({year:"years",quarter:"quarters",month:"months",week:"weeks",day:"days",hour:"hours",minute:"minutes",second:"seconds"});let y=class extends(u.A.ClonableMixin(m.A)){constructor(t){super(t),this.value=null,this.unit=null}};(0,n._)([(0,s.MZ)({type:Number,json:{name:"number",write:!0}})],y.prototype,"value",void 0),(0,n._)([(0,a.e)(d)],y.prototype,"unit",void 0),y=(0,n._)([(0,l.$)("esri.rest.support.DateBinTimeInterval")],y);const h=y;function f(t,e,i){(0,r.sM)(i,"string"==typeof t?t:t?.getTime(),e)}function v(t,e){const i=t.parameters[e];return i?"string"==typeof i?i:new Date(i):null}y.from=(0,o.dp)(y);let g=class extends p.A{constructor(t){super(t),this.end=null,this.interval=null,this.offset=null,this.start=null,this.type="date"}};(0,n._)([(0,s.MZ)({cast:t=>t?"string"==typeof t?t:new Date(t):null,json:{name:"parameters.end",read:{reader:(t,e)=>v(e,"end")},write:{writer:f}}})],g.prototype,"end",void 0),(0,n._)([(0,s.MZ)({type:h,json:{name:"parameters",write:!0}})],g.prototype,"interval",void 0),(0,n._)([(0,s.MZ)({type:h,json:{name:"parameters.offset",write:!0}})],g.prototype,"offset",void 0),(0,n._)([(0,s.MZ)({cast:t=>t?"string"==typeof t?t:new Date(t):null,json:{name:"parameters.start",read:{reader:(t,e)=>v(e,"start")},write:{writer:f}}})],g.prototype,"start",void 0),(0,n._)([(0,a.e)({dateBin:"date"},{readOnly:!0})],g.prototype,"type",void 0),g=(0,n._)([(0,l.$)("esri.rest.support.DateBinParameters")],g);const x=g;g.from=(0,o.dp)(g)},11440:(t,e,i)=>{i.d(e,{A:()=>c});var n=i(90237),r=i(93637),s=i(10107),o=i(56507),a=(i(87811),i(44208),i(93223)),l=i(40608),p=i(53275);let u=class extends p.A{constructor(t){super(t),this.boundaries=[],this.type="fixed-boundaries"}};(0,n._)([(0,s.MZ)({json:{name:"parameters.boundaries",write:{writer:function(t,e,i){(0,r.sM)(i,t&&function(t){return t[0]instanceof Date}(t)?t.map((t=>t.getTime())):t,e)}}}})],u.prototype,"boundaries",void 0),(0,n._)([(0,a.e)({fixedBoundariesBin:"fixed-boundaries"},{readOnly:!0})],u.prototype,"type",void 0),u=(0,n._)([(0,l.$)("esri.rest.support.FixedBoundariesBinParameters")],u);const c=u;u.from=(0,o.dp)(u)},60909:(t,e,i)=>{i.d(e,{A:()=>d});var n=i(90237),r=i(93637),s=i(10107),o=i(56507),a=(i(87811),i(44208),i(93223)),l=i(40608),p=i(53275),u=i(41366);function c(t,e,i){(0,r.sM)(i,t instanceof Date?t.getTime():t,e)}let m=class extends((0,u.K)(p.A)){constructor(t){super(t),this.end=null,this.interval=null,this.start=null,this.type="fixed-interval"}};(0,n._)([(0,s.MZ)({json:{name:"parameters.end",write:{writer:c}}})],m.prototype,"end",void 0),(0,n._)([(0,s.MZ)({type:Number,json:{name:"parameters.interval",write:!0}})],m.prototype,"interval",void 0),(0,n._)([(0,s.MZ)({json:{name:"parameters.start",write:{writer:c}}})],m.prototype,"start",void 0),(0,n._)([(0,a.e)({fixedIntervalBin:"fixed-interval"},{readOnly:!0})],m.prototype,"type",void 0),m=(0,n._)([(0,l.$)("esri.rest.support.FixedIntervalBinParameters")],m);const d=m;m.from=(0,o.dp)(m)},41366:(t,e,i)=>{i.d(e,{K:()=>m});var n=i(90237),r=i(66552),s=i(53966),o=i(10107),a=(i(44208),i(87811),i(93223)),l=i(40608);const p=(0,r.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),u="percent-of-total",c="field",m=t=>{let e=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let t=this._get("normalizationType");const e=!!this.normalizationField,i=null!=this.normalizationTotal;return e||i?(t=e&&c||i&&u||null,e&&i&&s.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):t!==c&&t!==u||(t=null),t}set normalizationType(t){this._set("normalizationType",t)}};return(0,n._)([(0,o.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],e.prototype,"normalizationField",void 0),(0,n._)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],e.prototype,"normalizationMaxValue",void 0),(0,n._)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],e.prototype,"normalizationMinValue",void 0),(0,n._)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],e.prototype,"normalizationTotal",void 0),(0,n._)([(0,a.e)(p,{name:"parameters.normalizationType"})],e.prototype,"normalizationType",null),e=(0,n._)([(0,l.$)("esri.rest.support.NormalizationBinParametersMixin")],e),e}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8879],{28879:(e,t,n)=>{n.r(t),n.d(t,{OperatorGeodeticLength:()=>u});var s=n(90237),o=n(55537),r=n(47591),a=n(35368),c=n(11878),i=n(9192),g=n(5247);class u{getOperatorType(){return 10311}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}execute(e,t,n,s){if(4===n)return(new r.O).execute(e,t,s);if(0===t.getCoordinateSystemType()&&(0,o.t)(""),(0,o.c)(e),e.isEmpty()||e.getDimension()<1)return 0;const u=t.getGCS(),m=(0,i.s)();u.querySpheroidData(m);const l=m.majorSemiAxis,h=m.e2,y=u.getUnit().getUnitToBaseFactor();let p;const x=e.getGeometryType();if(x===o.G.enumPolygon?p=e.getBoundary():x===o.G.enumEnvelope?p=(0,a.Q)(e):(0,o.e)(x)?(p=new a.i({vd:e.getDescription()}),p.addSegment(e,!0)):p=e,p.hasNonLinearSegments()&&(p=(new g.O).execute(p,0,t.getTolerance(0),0,s)),u!==t){const n=t.getSRToGCSTransform();if(t.isPannable()){p=(0,i.h)(p,t),x===o.G.enumPolyline&&p===e&&(p=e.clone());const n=new c.E;t.getPannableExtent().queryIntervalX(n);for(let e=0,t=p.getPointCount();e<t;e++){const t=p.getXY(e);t.x=(0,i.H)(t.x,n),p.setXY(e,t)}}const r=p.createInstance();p=(0,i.I)(n,p,r,s)?r:(new i.g).execute(p,n,s)}return this._ExecuteMultiPathGeodeticLength(p,n,l,h,y)}_ExecuteMultiPathGeodeticLength(e,t,n,o,r){const a={stack:[],error:void 0,hasError:!1};try{const c=(0,s.b)(a,new i.o,!1);let g=0;const u=e.querySegmentIterator();for(;u.nextPath();)for(;u.hasNextSegment();){const e=u.nextSegment(),s=e.getStartXY(),a=e.getEndXY();s.scale(r),a.scale(r),i.q.geodeticDistance(n,o,s.x,s.y,a.x,a.y,c,null,null,t),g+=c.val}return g}catch(e){a.error=e,a.hasError=!0}finally{(0,s.c)(a)}}}},47591:(e,t,n)=>{n.d(t,{O:()=>y});var s=n(55537),o=n(9192),r=n(35368),a=n(11878),c=n(5247),i=n(31139),g=n(32932);function u(){return{m_pGcs:new a.P,m_xyz:new r.O,m_factor:Number.NaN,m_geoLength:Number.NaN,setValues:m,setLength:l,assign:h}}function m(e,t,n,s){this.m_factor=e,this.m_pGcs.assign(t),this.m_xyz.assign(s),this.m_geoLength=n}function l(e){this.m_geoLength=e}function h(e){this.m_pGcs.assign(e.m_pGcs),this.m_xyz.assign(e.m_xyz),this.m_factor=e.m_factor,this.m_geoLength=e.m_geoLength}class y{getOperatorType(){return 10315}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}_ExecuteShapePreservingLength(e,t,n,s,a){if(e.hasNonLinearSegments()&&(e=(new c.O).execute(e,0,t.getTolerance(0),0,a)),t.isPannable()){let s=90,c=-90;if(1===n.getUnit().getUnitToBaseFactor()&&(s*=Math.PI/180,c*=Math.PI/180),2===t.getCoordinateSystemType()){let e=null;const n=[0,0,0,0];e=t.getPECoordSys(),n[0]=0,n[1]=s,n[2]=0,n[3]=c,o.F.geogToProj(e,2,n),s=n[1],c=n[3]}const g=new r.a;e.queryEnvelope(g),g.ymin=c,g.ymax=s,e=(new i.O).execute(e,g,t,a)}else{const n=t.getPCSHorizon();if((e=(new g.O).execute(e,n,t,a))===n){const t=e.clone();e=t}}return e.isEmpty()?0:this._ExecuteIterativeApproach(e,t,n,s,1,a)}_ExecuteIterativeApproach(e,t,n,c,i,g){const m=(0,o.s)();n.querySpheroidData(m);const l=m.majorSemiAxis,h=m.e2,y=n.getUnit().getUnitToBaseFactor(),d=(0,a.t)(u,40),f=new Array(40),_=u(),S=u();let P;const w=[0,0,0,0],C=t.getPECoordSys(),G=new a.P,E=new a.P,T=new a.P,v=new a.P,L=new a.P;let N=0;const b=e.querySegmentIterator();for(;b.nextPath();)for(;b.hasNextSegment();){const e=b.nextSegment();G.assign(e.getStartXY()),E.assign(e.getEndXY()),2===t.getCoordinateSystemType()?(w[0]=G.x,w[1]=G.y,w[2]=E.x,w[3]=E.y,o.F.projToGeog(C,2,w),T.x=w[0]*y,T.y=w[1]*y,v.x=w[2]*y,v.y=w[3]*y):(T.setCoordsPoint2D(G),v.setCoordsPoint2D(E),T.scale(y),v.scale(y));const n=new r.O,a=new r.O;p(l,h,T,n),p(l,h,v,a);let c=x(l,n,a);_.setValues(0,T,Number.NaN,n),S.setValues(1,v,c,a),P=i,d[0].assign(S),f[0]=i;let g=0;for(;;){g>128&&(0,s.b)("iterations exceeded");const n=.5*(_.m_factor+S.m_factor),a=e.getCoord2D(n);2===t.getCoordinateSystemType()?(w[0]=a.x,w[1]=a.y,o.F.projToGeog(C,1,w),L.x=w[0]*y,L.y=w[1]*y):(L.setCoordsPoint2D(a),L.scale(y)),T.setCoordsPoint2D(_.m_pGcs),v.setCoordsPoint2D(S.m_pGcs);const u=new r.O;p(l,h,L,u);const m=x(l,_.m_xyz,u),G=x(l,S.m_xyz,u);c=S.m_geoLength,Number.isNaN(c)&&(c=x(l,_.m_xyz,S.m_xyz));const E=m+G,b=P===i&&E>=20&&Math.abs(E-c)>1e-8*(c+E);if(g+2<40&&(b||Math.abs(E-c)>0&&P>0))S.setLength(G),d[g].assign(S),S.setValues(n,L,m,u),d[++g].assign(S),b?(P=i,f[g]=i):(P--,f[g-1]=P,f[g]=P);else{if(N+=E,0===g)break;_.assign(S),S.assign(d[--g]),P=f[g]}}}return N}execute(e,t,n){if(t&&0!==t.getCoordinateSystemType()||(0,s.t)(""),e.isEmpty()||e.getDimension()<1)return 0;let a=null;const c=t.getGCS();c!==t&&(a=(0,o.e)(t,c,null));const i=e.getGeometryType();if(i===s.G.enumEnvelope){const s=new r.h;return s.addEnvelope(e,!1),this._ExecuteShapePreservingLength(s,t,c,a,n)}if((0,s.e)(i)){const s=new r.i;return s.addSegment(e,!0),this._ExecuteShapePreservingLength(s,t,c,a,n)}return this._ExecuteShapePreservingLength(e,t,c,a,n)}}function p(e,t,n,s){s.assign((0,o.y)(e,t,n))}function x(e,t,n){const s=e,o=new r.O;o.setSub(t,n);const a=o.length();return 2*s*Math.asin(a/(2*s))}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3874],{13874:(t,e,i)=>{i.d(e,{A:()=>it});var o=i(90237),s=i(69540),r=i(5503),n=i(25482),p=i(4718),l=i(53966),a=i(74887),d=i(10107),c=i(79901),y=i(36005),u=i(40608),h=i(43937),f=i(56507),v=i(30524),_=i(28122),m=i(84424),w=i(80737),A=i(96808),x=i(66159),M=i(67336),I=i(92094),Z=i(23721),g=i(47582);const j={base:null,key:"type",typeMap:{attachment:_.A,media:M.A,text:Z.A,expression:A.A,field:x.A,relationship:I.A,utilityNetworkAssociations:g.A}},F={base:null,key:"type",typeMap:{attachment:_.A,media:M.A,text:Z.A,expression:A.A,field:x.A,relationship:I.A}};var b,N=i(93705),R=i(41227);i(44208),i(87811);let S=b=class extends n.A{constructor(t){super(t),this.returnTopmostRaster=null,this.showNoDataRecords=null}clone(){return new b({showNoDataRecords:this.showNoDataRecords,returnTopmostRaster:this.returnTopmostRaster})}};(0,o._)([(0,d.MZ)({type:Boolean,json:{write:!0}})],S.prototype,"returnTopmostRaster",void 0),(0,o._)([(0,d.MZ)({type:Boolean,json:{write:!0}})],S.prototype,"showNoDataRecords",void 0),S=b=(0,o._)([(0,u.$)("esri.popup.LayerOptions")],S);const C=S;var T,O=i(49852);let $=T=class extends n.A{constructor(t){super(t),this.showRelatedRecords=null,this.orderByFields=null}clone(){return new T({showRelatedRecords:this.showRelatedRecords,orderByFields:this.orderByFields?(0,p.o8)(this.orderByFields):null})}};(0,o._)([(0,d.MZ)({type:Boolean,json:{write:!0}})],$.prototype,"showRelatedRecords",void 0),(0,o._)([(0,d.MZ)({type:[O.A],json:{write:!0}})],$.prototype,"orderByFields",void 0),$=T=(0,o._)([(0,u.$)("esri.popup.RelatedRecordsInfo")],$);const E=$;var B,k=i(58280),J=i(69622),q=i(4902);let L=B=class extends(q.A.IdentifiableMixin(J.A)){constructor(t){super(t),this.active=!1,this.className=null,this.disabled=!1,this.icon=null,this.id=null,this.indicator=!1,this.title=null,this.type=null,this.visible=!0}clone(){return new B({active:this.active,className:this.className,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible})}};(0,o._)([(0,d.MZ)()],L.prototype,"active",void 0),(0,o._)([(0,d.MZ)()],L.prototype,"className",void 0),(0,o._)([(0,d.MZ)()],L.prototype,"disabled",void 0),(0,o._)([(0,d.MZ)()],L.prototype,"icon",void 0),(0,o._)([(0,d.MZ)()],L.prototype,"id",void 0),(0,o._)([(0,d.MZ)()],L.prototype,"indicator",void 0),(0,o._)([(0,d.MZ)()],L.prototype,"title",void 0),(0,o._)([(0,d.MZ)()],L.prototype,"type",void 0),(0,o._)([(0,d.MZ)()],L.prototype,"visible",void 0),L=B=(0,o._)([(0,u.$)("esri.support.actions.ActionBase")],L);const U=L;var z;let P=z=class extends U{constructor(t){super(t),this.image=null,this.type="button"}clone(){return new z({active:this.active,className:this.className,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image})}};(0,o._)([(0,d.MZ)()],P.prototype,"image",void 0),P=z=(0,o._)([(0,u.$)("esri.support.actions.ActionButton")],P);const K=P;var W;let D=W=class extends U{constructor(t){super(t),this.image=null,this.type="toggle",this.value=!1}clone(){return new W({active:this.active,className:this.className,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image,value:this.value})}};(0,o._)([(0,d.MZ)()],D.prototype,"image",void 0),(0,o._)([(0,d.MZ)()],D.prototype,"value",void 0),D=W=(0,o._)([(0,u.$)("esri.support.actions.ActionToggle")],D);const V=D,G="relationships/",H="expression/",X=r.A.ofType({key:"type",defaultKeyValue:"button",base:U,typeMap:{button:K,toggle:V}}),Q={base:m.A,key:"type",typeMap:{media:M.A,custom:w.A,text:Z.A,attachments:_.A,fields:x.A,expression:A.A,relationship:I.A,utilityNetworkAssociations:g.A}},Y=new Set(["attachments","fields","media","text","expression","relationship"]),tt=new Set([...Y,"utility-network-associations"]);let et=class extends(s.A.ClonableMixin(n.A)){constructor(){super(...arguments),this.actions=null,this.content="",this.expressionInfos=null,this.fieldInfos=null,this.layerOptions=null,this.lastEditInfoEnabled=!0,this.outFields=null,this.overwriteActions=!1,this.returnGeometry=!1,this.title=""}castContent(t){return Array.isArray(t)?t.map((t=>(0,f.aq)(Q,t))):"string"==typeof t||"function"==typeof t||t instanceof HTMLElement||(0,a.$X)(t)?t:(l.A.getLogger(this).error("content error","unsupported content value",{value:t}),null)}readContent(t,e){const{popupElements:i}=e;return Array.isArray(i)&&i.length>0?this._readPopupInfoElements(e.description,e.mediaInfos,i):this._readPopupInfo(e)}writeWebSceneContent(t,e,i,o){this._writePopupTemplateContent(t,e,o)}writeWebMapContent(t,e,i,o){this._writePopupTemplateContent(t,e,o)}writeFieldInfos(t,e,i,o){const{content:s}=this,r=Array.isArray(s)?s:null;if(t){const i=r?r.filter((t=>"fields"===t.type)):[],s=i.length&&i.every((t=>t.fieldInfos?.length));e.fieldInfos=t.filter(Boolean).map((t=>{const e=t.toJSON(o);return s&&(e.visible=!1),e}))}if(r)for(const t of r)"fields"===t.type&&this._writeFieldsContent(t,e)}writeLayerOptions(t,e,i,o){e[i]=!t||null===t.showNoDataRecords&&null===t.returnTopmostRaster?null:t.toJSON(o)}writeTitle(t,e){e.title=t||""}async collectRequiredFields(t,e){const i=this.expressionInfos||[];await this._collectExpressionInfoFields(t,e,[...i,...this._getContentExpressionInfos(this.content,i)]),(0,v._w)(t,e,[...this.outFields||[],...this._getActionsFields(this.actions),...this._getTitleFields(this.title),...this._getContentFields(this.content)])}async getRequiredFields(t){const e=new Set;return await this.collectRequiredFields(e,t),[...e].sort()}_writePopupTemplateContent(t,e,i){"string"!=typeof t?Array.isArray(t)&&(e.popupElements=t.filter((t=>"web-scene"===i?.origin?Y.has(t.type):tt.has(t.type))).map((t=>t?.toJSON(i))),e.popupElements.forEach((t=>{"attachments"===t.type?this._writeAttachmentContent(e):"media"===t.type?this._writeMediaContent(t,e):"text"===t.type?this._writeTextContent(t,e):"relationship"===t.type&&this._writeRelationshipContent(t,e)}))):e.description=t}_writeFieldsContent(t,e){if(!Array.isArray(t.fieldInfos)||!t.fieldInfos.length)return;const i=(0,p.o8)(t.fieldInfos);Array.isArray(e.fieldInfos)?i.forEach((t=>{const i=e.fieldInfos.find((e=>e.fieldName?.toLowerCase()===t.fieldName?.toLowerCase()));i?i.visible=!0:e.fieldInfos.push(t)})):e.fieldInfos=i}_writeAttachmentContent(t){t.showAttachments||(t.showAttachments=!0)}_writeRelationshipContent(t,e){const i=t.orderByFields?.map((e=>this._toFieldOrderJSON(e,t.relationshipId)))||[],o=[...e.relatedRecordsInfo?.orderByFields||[],...i];e.relatedRecordsInfo={showRelatedRecords:!0,...o?.length&&{orderByFields:o}}}_writeTextContent(t,e){!e.description&&t.text&&(e.description=t.text)}_writeMediaContent(t,e){if(!Array.isArray(t.mediaInfos)||!t.mediaInfos.length)return;const i=(0,p.o8)(t.mediaInfos);Array.isArray(e.mediaInfos)?e.mediaInfos=[...e.mediaInfos,...i]:e.mediaInfos=i}_readPopupInfoElements(t,e,i){const o={description:!1,mediaInfos:!1};return i.map((i=>"media"===i.type?(i.mediaInfos||!e||o.mediaInfos||(i.mediaInfos=e,o.mediaInfos=!0),M.A.fromJSON(i)):"text"===i.type?(i.text||!t||o.description||(i.text=t,o.description=!0),Z.A.fromJSON(i)):"attachments"===i.type?_.A.fromJSON(i):"fields"===i.type?x.A.fromJSON(i):"expression"===i.type?A.A.fromJSON(i):"relationship"===i.type?I.A.fromJSON(i):"utilityNetworkAssociations"===i.type?g.A.fromJSON(i):void 0)).filter(Boolean)}_toRelationshipContent(t){const{field:e,order:i}=t;if(!e?.startsWith(G))return null;const o=e.replace(G,"").split("/");if(2!==o.length)return null;const s=parseInt(o[0],10),r=o[1];return!Number.isNaN(s)&&r?I.A.fromJSON({relationshipId:s,orderByFields:[{field:r,order:i}]}):null}_toFieldOrderJSON(t,e){const{order:i,field:o}=t;return{field:`${G}${e}/${o}`,order:i}}_readPopupInfo({description:t,mediaInfos:e,showAttachments:i,relatedRecordsInfo:o={showRelatedRecords:!1}}){const s=[];t?s.push(new Z.A({text:t})):s.push(new x.A),Array.isArray(e)&&e.length&&s.push(M.A.fromJSON({mediaInfos:e})),i&&s.push(_.A.fromJSON({displayType:"auto"}));const{showRelatedRecords:r,orderByFields:n}=o;return r&&n?.length&&n.forEach((t=>{const e=this._toRelationshipContent(t);e&&s.push(e)})),s.length?s:t}_getContentElementFields(t){const e=t?.type;if("attachments"===e)return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description)];if("custom"===e)return t.outFields||[];if("fields"===e)return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description),...this._getFieldInfoFields(t.fieldInfos??this.fieldInfos)];if("media"===e){const e=t.mediaInfos||[];return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description),...e.reduce(((t,e)=>[...t,...this._getMediaInfoFields(e)]),[])]}return"text"===e?this._extractFieldNames(t.text):"relationship"===e||"utility-network-associations"===e?[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description)]:[]}_getMediaInfoFields(t){const{caption:e,title:i,value:o}=t,s=o||{},{fields:r,normalizeField:n,tooltipField:p,sourceURL:l,linkURL:a}=s,d=[...this._extractFieldNames(i),...this._extractFieldNames(e),...this._extractFieldNames(l),...this._extractFieldNames(a),...r??[]];return n&&d.push(n),p&&d.push(p),d}_getContentExpressionInfos(t,e){return Array.isArray(t)?t.reduce(((t,e)=>[...t,..."expression"===e.type&&e.expressionInfo?[e.expressionInfo]:[]]),e):[]}_getContentFields(t){return"string"==typeof t?this._extractFieldNames(t):Array.isArray(t)?t.reduce(((t,e)=>[...t,...this._getContentElementFields(e)]),[]):[]}async _collectExpressionInfoFields(t,e,i){i&&await Promise.all(i.map((i=>(0,v.Dx)(t,e,i.expression))))}_getFieldInfoFields(t){return t?t.filter((({fieldName:t,visible:e})=>!(void 0!==e&&!e||!t||t.startsWith(G)||t.startsWith(H)))).map((t=>t.fieldName)):[]}_getActionsFields(t){return t?t.toArray().reduce(((t,e)=>[...t,...this._getActionFields(e)]),[]):[]}_getActionFields(t){const{className:e,title:i,type:o}=t,s="button"===o||"toggle"===o?t.image:"";return[...this._extractFieldNames(i),...this._extractFieldNames(e),...this._extractFieldNames(s)]}_getTitleFields(t){return"string"==typeof t?this._extractFieldNames(t):[]}_extractFieldNames(t){return(0,v.nw)(t).filter((t=>!(0===t.indexOf(G)||0===t.indexOf(H))))}};(0,o._)([(0,d.MZ)({type:X})],et.prototype,"actions",void 0),(0,o._)([(0,d.MZ)()],et.prototype,"content",void 0),(0,o._)([(0,c.w)("content")],et.prototype,"castContent",null),(0,o._)([(0,y.w)("content",["description","fieldInfos","popupElements","mediaInfos","showAttachments","relatedRecordsInfo"])],et.prototype,"readContent",null),(0,o._)([(0,h.K)("web-scene","content",{popupElements:{type:r.A.ofType(F)},showAttachments:{type:Boolean},mediaInfos:{type:r.A.ofType(k.g)},description:{type:String},relatedRecordsInfo:{type:E}})],et.prototype,"writeWebSceneContent",null),(0,o._)([(0,h.K)("content",{popupElements:{type:r.A.ofType(j)},showAttachments:{type:Boolean},mediaInfos:{type:r.A.ofType(k.g)},description:{type:String},relatedRecordsInfo:{type:E}})],et.prototype,"writeWebMapContent",null),(0,o._)([(0,d.MZ)({type:[N.A],json:{write:!0}})],et.prototype,"expressionInfos",void 0),(0,o._)([(0,d.MZ)({type:[R.A]})],et.prototype,"fieldInfos",void 0),(0,o._)([(0,h.K)("fieldInfos")],et.prototype,"writeFieldInfos",null),(0,o._)([(0,d.MZ)({type:C})],et.prototype,"layerOptions",void 0),(0,o._)([(0,h.K)("layerOptions")],et.prototype,"writeLayerOptions",null),(0,o._)([(0,d.MZ)({type:Boolean,json:{read:{source:"showLastEditInfo"},write:{target:"showLastEditInfo"},default:!0}})],et.prototype,"lastEditInfoEnabled",void 0),(0,o._)([(0,d.MZ)()],et.prototype,"outFields",void 0),(0,o._)([(0,d.MZ)()],et.prototype,"overwriteActions",void 0),(0,o._)([(0,d.MZ)()],et.prototype,"returnGeometry",void 0),(0,o._)([(0,d.MZ)({json:{type:String}})],et.prototype,"title",void 0),(0,o._)([(0,h.K)("title")],et.prototype,"writeTitle",null),et=(0,o._)([(0,u.$)("esri.PopupTemplate")],et);const it=et},93705:(t,e,i)=>{i.d(e,{A:()=>a});var o,s=i(90237),r=i(25482),n=i(10107),p=(i(44208),i(53966),i(87811),i(40608));let l=o=class extends r.A{constructor(t){super(t),this.name=null,this.title=null,this.expression=null,this.returnType=null}clone(){return new o({name:this.name,title:this.title,expression:this.expression,returnType:this.returnType})}};(0,s._)([(0,n.MZ)({type:String,json:{write:!0}})],l.prototype,"name",void 0),(0,s._)([(0,n.MZ)({type:String,json:{write:!0}})],l.prototype,"title",void 0),(0,s._)([(0,n.MZ)({type:String,json:{write:!0}})],l.prototype,"expression",void 0),(0,s._)([(0,n.MZ)({type:["string","number"],json:{write:!0}})],l.prototype,"returnType",void 0),l=o=(0,s._)([(0,p.$)("esri.popup.ExpressionInfo")],l);const a=l},41227:(t,e,i)=>{i.d(e,{A:()=>y});var o,s=i(90237),r=i(66552),n=i(25482),p=i(10107),l=(i(44208),i(53966),i(87811),i(93223)),a=i(40608),d=i(68780);let c=o=class extends n.A{constructor(t){super(t),this.fieldName=null,this.format=void 0,this.isEditable=!0,this.label=null,this.stringFieldOption="text-box",this.statisticType=null,this.tooltip=null,this.visible=!0}clone(){return new o({fieldName:this.fieldName,format:this.format?.clone(),isEditable:this.isEditable,label:this.label,stringFieldOption:this.stringFieldOption,statisticType:this.statisticType,tooltip:this.tooltip,visible:this.visible})}};(0,s._)([(0,p.MZ)({type:String,json:{write:!0}})],c.prototype,"fieldName",void 0),(0,s._)([(0,p.MZ)({type:d.A,json:{write:!0}})],c.prototype,"format",void 0),(0,s._)([(0,p.MZ)({type:Boolean,json:{write:{alwaysWriteDefaults:!0},default:!0}})],c.prototype,"isEditable",void 0),(0,s._)([(0,p.MZ)({type:String,json:{write:!0}})],c.prototype,"label",void 0),(0,s._)([(0,l.e)(new r.J({richtext:"rich-text",textarea:"text-area",textbox:"text-box"}),{default:"text-box"})],c.prototype,"stringFieldOption",void 0),(0,s._)([(0,p.MZ)({type:["count","sum","min","max","avg","stddev","var"],json:{write:!0}})],c.prototype,"statisticType",void 0),(0,s._)([(0,p.MZ)({type:String,json:{write:!0}})],c.prototype,"tooltip",void 0),(0,s._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],c.prototype,"visible",void 0),c=o=(0,s._)([(0,a.$)("esri.popup.FieldInfo")],c);const y=c},28122:(t,e,i)=>{i.d(e,{A:()=>a});var o,s=i(90237),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),p=i(84424);let l=o=class extends p.A{constructor(t){super(t),this.description=null,this.displayType="auto",this.title=null,this.type="attachments"}clone(){return new o({description:this.description,displayType:this.displayType,title:this.title})}};(0,s._)([(0,r.MZ)({type:String,json:{write:!0}})],l.prototype,"description",void 0),(0,s._)([(0,r.MZ)({type:["auto","preview","list"],json:{write:!0}})],l.prototype,"displayType",void 0),(0,s._)([(0,r.MZ)({type:String,json:{write:!0}})],l.prototype,"title",void 0),(0,s._)([(0,r.MZ)({type:["attachments"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],l.prototype,"type",void 0),l=o=(0,s._)([(0,n.$)("esri.popup.content.AttachmentsContent")],l);const a=l},71468:(t,e,i)=>{i.d(e,{A:()=>d});var o,s=i(90237),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),p=i(39740),l=i(38152);let a=o=class extends p.A{constructor(t){super(t),this.type="bar-chart"}clone(){return new o({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,s._)([(0,r.MZ)({type:["bar-chart"],readOnly:!0,json:{type:["barchart"],read:!1,write:{writer:l.U.write,isRequired:!0}}})],a.prototype,"type",void 0),a=o=(0,s._)([(0,n.$)("esri.popup.content.BarChartMediaInfo")],a);const d=a},81663:(t,e,i)=>{i.d(e,{A:()=>d});var o,s=i(90237),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),p=i(39740),l=i(38152);let a=o=class extends p.A{constructor(t){super(t),this.type="column-chart"}clone(){return new o({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,s._)([(0,r.MZ)({type:["column-chart"],readOnly:!0,json:{type:["columnchart"],read:!1,write:{writer:l.U.write,isRequired:!0}}})],a.prototype,"type",void 0),a=o=(0,s._)([(0,n.$)("esri.popup.content.ColumnChartMediaInfo")],a);const d=a},84424:(t,e,i)=>{i.d(e,{A:()=>l});var o=i(90237),s=i(25482),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608));let p=class extends s.A{constructor(t){super(t),this.type=null}};(0,o._)([(0,r.MZ)({type:["attachments","custom","fields","media","text","expression","relationship","utility-network-associations"],readOnly:!0,json:{read:!1,write:!0}})],p.prototype,"type",void 0),p=(0,o._)([(0,n.$)("esri.popup.content.Content")],p);const l=p},80737:(t,e,i)=>{i.d(e,{A:()=>d});var o,s=i(90237),r=i(4718),n=i(10107),p=(i(44208),i(53966),i(40608)),l=i(84424);let a=o=class extends l.A{constructor(t){super(t),this.creator=null,this.destroyer=null,this.outFields=null,this.type="custom"}clone(){return new o({creator:this.creator,destroyer:this.destroyer,outFields:Array.isArray(this.outFields)?(0,r.o8)(this.outFields):null})}};(0,s._)([(0,n.MZ)()],a.prototype,"creator",void 0),(0,s._)([(0,n.MZ)()],a.prototype,"destroyer",void 0),(0,s._)([(0,n.MZ)()],a.prototype,"outFields",void 0),(0,s._)([(0,n.MZ)({type:["custom"],readOnly:!0})],a.prototype,"type",void 0),a=o=(0,s._)([(0,p.$)("esri.popup.content.CustomContent")],a);const d=a},96808:(t,e,i)=>{i.d(e,{A:()=>u});var o,s=i(90237),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),p=i(25482);let l=o=class extends p.A{constructor(t){super(t),this.title=null,this.expression=null,this.returnType="dictionary"}clone(){return new o({title:this.title,expression:this.expression})}};(0,s._)([(0,r.MZ)({type:String,json:{write:!0}})],l.prototype,"title",void 0),(0,s._)([(0,r.MZ)({type:String,json:{write:!0}})],l.prototype,"expression",void 0),(0,s._)([(0,r.MZ)({type:["dictionary"],readOnly:!0,json:{read:!1,write:!0}})],l.prototype,"returnType",void 0),l=o=(0,s._)([(0,n.$)("esri.popup.ElementExpressionInfo")],l);const a=l;var d,c=i(84424);let y=d=class extends c.A{constructor(t){super(t),this.expressionInfo=null,this.type="expression"}clone(){return new d({expressionInfo:this.expressionInfo?.clone()})}};(0,s._)([(0,r.MZ)({type:a,json:{write:!0}})],y.prototype,"expressionInfo",void 0),(0,s._)([(0,r.MZ)({type:["expression"],readOnly:!0,json:{read:!1,write:!0}})],y.prototype,"type",void 0),y=d=(0,s._)([(0,n.$)("esri.popup.content.ExpressionContent")],y);const u=y},66159:(t,e,i)=>{i.d(e,{A:()=>y});var o,s=i(90237),r=i(4718),n=i(10107),p=(i(44208),i(53966),i(40608)),l=i(43937),a=i(41227),d=i(84424);let c=o=class extends d.A{constructor(t){super(t),this.attributes=null,this.description=null,this.fieldInfos=null,this.title=null,this.type="fields"}writeFieldInfos(t,e){e.fieldInfos=t&&t.map((t=>t.toJSON()))}clone(){return new o((0,r.o8)({attributes:this.attributes,description:this.description,fieldInfos:this.fieldInfos,title:this.title}))}};(0,s._)([(0,n.MZ)({type:Object,json:{write:!0}})],c.prototype,"attributes",void 0),(0,s._)([(0,n.MZ)({type:String,json:{write:!0}})],c.prototype,"description",void 0),(0,s._)([(0,n.MZ)({type:[a.A]})],c.prototype,"fieldInfos",void 0),(0,s._)([(0,l.K)("fieldInfos")],c.prototype,"writeFieldInfos",null),(0,s._)([(0,n.MZ)({type:String,json:{write:!0}})],c.prototype,"title",void 0),(0,s._)([(0,n.MZ)({type:["fields"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],c.prototype,"type",void 0),c=o=(0,s._)([(0,p.$)("esri.popup.content.FieldsContent")],c);const y=c},96922:(t,e,i)=>{i.d(e,{A:()=>u});var o,s=i(90237),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),p=i(22756),l=i(25482);let a=o=class extends l.A{constructor(t){super(t),this.linkURL=null,this.sourceURL=null}clone(){return new o({linkURL:this.linkURL,sourceURL:this.sourceURL})}};(0,s._)([(0,r.MZ)({type:String,json:{write:!0}})],a.prototype,"linkURL",void 0),(0,s._)([(0,r.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"sourceURL",void 0),a=o=(0,s._)([(0,n.$)("esri.popup.content.support.ImageMediaInfoValue")],a);const d=a;var c;let y=c=class extends p.A{constructor(t){super(t),this.refreshInterval=0,this.type="image",this.value=void 0}clone(){return new c({altText:this.altText,title:this.title,caption:this.caption,refreshInterval:this.refreshInterval,value:this.value?.clone()})}};(0,s._)([(0,r.MZ)({type:Number,json:{write:!0}})],y.prototype,"refreshInterval",void 0),(0,s._)([(0,r.MZ)({type:["image"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],y.prototype,"type",void 0),(0,s._)([(0,r.MZ)({type:d,json:{write:{isRequired:!0}}})],y.prototype,"value",void 0),y=c=(0,s._)([(0,n.$)("esri.popup.content.ImageMediaInfo")],y);const u=y},92799:(t,e,i)=>{i.d(e,{A:()=>d});var o,s=i(90237),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),p=i(39740),l=i(38152);let a=o=class extends p.A{constructor(t){super(t),this.type="line-chart"}clone(){return new o({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,s._)([(0,r.MZ)({type:["line-chart"],readOnly:!0,json:{type:["linechart"],read:!1,write:{writer:l.U.write,isRequired:!0}}})],a.prototype,"type",void 0),a=o=(0,s._)([(0,n.$)("esri.popup.content.LineChartMediaInfo")],a);const d=a},67336:(t,e,i)=>{i.d(e,{A:()=>m});var o,s=i(90237),r=i(4718),n=i(10107),p=(i(44208),i(53966),i(36005)),l=i(40608),a=i(43937),d=i(71468),c=i(81663),y=i(84424),u=i(96922),h=i(92799),f=i(53535),v=i(58280);let _=o=class extends y.A{constructor(t){super(t),this.activeMediaInfoIndex=null,this.attributes=null,this.description=null,this.mediaInfos=null,this.title=null,this.type="media"}readMediaInfos(t){return t&&t.map((t=>"image"===t.type?u.A.fromJSON(t):"barchart"===t.type?d.A.fromJSON(t):"columnchart"===t.type?c.A.fromJSON(t):"linechart"===t.type?h.A.fromJSON(t):"piechart"===t.type?f.A.fromJSON(t):void 0)).filter(Boolean)}writeMediaInfos(t,e){e.mediaInfos=t&&t.map((t=>t.toJSON()))}clone(){return new o((0,r.o8)({activeMediaInfoIndex:this.activeMediaInfoIndex,attributes:this.attributes,description:this.description,mediaInfos:this.mediaInfos,title:this.title}))}};(0,s._)([(0,n.MZ)()],_.prototype,"activeMediaInfoIndex",void 0),(0,s._)([(0,n.MZ)({type:Object,json:{write:!0}})],_.prototype,"attributes",void 0),(0,s._)([(0,n.MZ)({type:String,json:{write:!0}})],_.prototype,"description",void 0),(0,s._)([(0,n.MZ)({types:[v.g]})],_.prototype,"mediaInfos",void 0),(0,s._)([(0,p.w)("mediaInfos")],_.prototype,"readMediaInfos",null),(0,s._)([(0,a.K)("mediaInfos")],_.prototype,"writeMediaInfos",null),(0,s._)([(0,n.MZ)({type:String,json:{write:!0}})],_.prototype,"title",void 0),(0,s._)([(0,n.MZ)({type:["media"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],_.prototype,"type",void 0),_=o=(0,s._)([(0,l.$)("esri.popup.content.MediaContent")],_);const m=_},53535:(t,e,i)=>{i.d(e,{A:()=>d});var o,s=i(90237),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),p=i(39740),l=i(38152);let a=o=class extends p.A{constructor(t){super(t),this.type="pie-chart"}clone(){return new o({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,s._)([(0,r.MZ)({type:["pie-chart"],readOnly:!0,json:{type:["piechart"],read:!1,write:{writer:l.U.write,isRequired:!0}}})],a.prototype,"type",void 0),a=o=(0,s._)([(0,n.$)("esri.popup.content.PieChartMediaInfo")],a);const d=a},92094:(t,e,i)=>{i.d(e,{A:()=>c});var o=i(90237),s=i(69540),r=i(10107),n=i(56507),p=(i(87811),i(44208),i(40608)),l=i(84424),a=i(49852);let d=class extends(s.A.ClonableMixin(l.A)){constructor(t){super(t),this.description=null,this.displayCount=null,this.displayType="list",this.orderByFields=null,this.relationshipId=null,this.title=null,this.type="relationship"}};(0,o._)([(0,r.MZ)({type:String,json:{write:!0}})],d.prototype,"description",void 0),(0,o._)([(0,r.MZ)({type:Number,json:{type:n.jz,write:!0}})],d.prototype,"displayCount",void 0),(0,o._)([(0,r.MZ)({type:["list"],json:{write:{isRequired:!0}}})],d.prototype,"displayType",void 0),(0,o._)([(0,r.MZ)({type:[a.A],json:{write:!0}})],d.prototype,"orderByFields",void 0),(0,o._)([(0,r.MZ)({type:Number,json:{type:n.jz,write:{isRequired:!0}}})],d.prototype,"relationshipId",void 0),(0,o._)([(0,r.MZ)({type:String,json:{write:!0}})],d.prototype,"title",void 0),(0,o._)([(0,r.MZ)({type:["relationship"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],d.prototype,"type",void 0),d=(0,o._)([(0,p.$)("esri.popup.content.RelationshipContent")],d);const c=d},23721:(t,e,i)=>{i.d(e,{A:()=>a});var o,s=i(90237),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),p=i(84424);let l=o=class extends p.A{constructor(t){super(t),this.text=null,this.type="text"}clone(){return new o({text:this.text})}};(0,s._)([(0,r.MZ)({type:String,json:{write:!0}})],l.prototype,"text",void 0),(0,s._)([(0,r.MZ)({type:["text"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],l.prototype,"type",void 0),l=o=(0,s._)([(0,n.$)("esri.popup.content.TextContent")],l);const a=l},47582:(t,e,i)=>{i.d(e,{A:()=>y});var o=i(90237),s=i(69540),r=i(10107),n=i(56507),p=(i(87811),i(44208),i(93223)),l=i(40608),a=i(84424),d=i(83342);let c=class extends(s.A.ClonableMixin(a.A)){constructor(t){super(t),this.description=null,this.displayCount=null,this.title=null,this.associationTypes=[],this.type="utility-network-associations"}};(0,o._)([(0,r.MZ)({type:String,json:{write:!0}})],c.prototype,"description",void 0),(0,o._)([(0,r.MZ)({type:Number,json:{type:n.jz,write:!0}})],c.prototype,"displayCount",void 0),(0,o._)([(0,r.MZ)({type:String,json:{write:!0}})],c.prototype,"title",void 0),(0,o._)([(0,r.MZ)({type:[d.A],json:{write:!0}})],c.prototype,"associationTypes",void 0),(0,o._)([(0,p.e)({utilityNetworkAssociations:"utility-network-associations"})],c.prototype,"type",void 0),c=(0,o._)([(0,l.$)("esri.popup.content.UtilityNetworkAssociationsContent")],c);const y=c},39740:(t,e,i)=>{i.d(e,{A:()=>w});var o,s=i(90237),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),p=i(22756),l=i(68197),a=i(25482),d=i(4718),c=i(56507),y=i(69622);let u=o=class extends y.A{constructor(t){super(t),this.color=null,this.fieldName=null,this.tooltip=null,this.value=null}clone(){return new o({color:this.color?.clone(),fieldName:this.fieldName,tooltip:this.tooltip,value:this.value})}};(0,s._)([(0,r.MZ)()],u.prototype,"color",void 0),(0,s._)([(0,r.MZ)()],u.prototype,"fieldName",void 0),(0,s._)([(0,r.MZ)()],u.prototype,"tooltip",void 0),(0,s._)([(0,r.MZ)()],u.prototype,"value",void 0),u=o=(0,s._)([(0,n.$)("esri.popup.content.support.ChartMediaInfoValueSeries")],u);const h=u;var f;let v=f=class extends a.A{constructor(t){super(t),this.colors=null,this.fields=[],this.normalizeField=null,this.series=[],this.tooltipField=null}clone(){return new f({colors:(0,d.o8)(this.colors),fields:(0,d.o8)(this.fields),normalizeField:this.normalizeField,series:(0,d.o8)(this.series),tooltipField:this.tooltipField})}};(0,s._)([(0,r.MZ)({type:[l.A],json:{type:[[c.jz]],write:!0}})],v.prototype,"colors",void 0),(0,s._)([(0,r.MZ)({type:[String],json:{write:{isRequired:!0}}})],v.prototype,"fields",void 0),(0,s._)([(0,r.MZ)({type:String,json:{write:!0}})],v.prototype,"normalizeField",void 0),(0,s._)([(0,r.MZ)({type:[h],json:{read:!1}})],v.prototype,"series",void 0),(0,s._)([(0,r.MZ)({type:String,json:{write:!0}})],v.prototype,"tooltipField",void 0),v=f=(0,s._)([(0,n.$)("esri.popup.content.support.ChartMediaInfoValue")],v);const _=v;let m=class extends p.A{constructor(t){super(t),this.type=null,this.value=void 0}};(0,s._)([(0,r.MZ)({type:["bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],m.prototype,"type",void 0),(0,s._)([(0,r.MZ)({type:_,json:{write:{isRequired:!0}}})],m.prototype,"value",void 0),m=(0,s._)([(0,n.$)("esri.popup.content.mixins.ChartMediaInfo")],m);const w=m},22756:(t,e,i)=>{i.d(e,{A:()=>l});var o=i(90237),s=i(25482),r=i(10107),n=(i(44208),i(53966),i(87811),i(40608));let p=class extends s.A{constructor(t){super(t),this.altText=null,this.caption="",this.title="",this.type=null}};(0,o._)([(0,r.MZ)({type:String,json:{write:!0}})],p.prototype,"altText",void 0),(0,o._)([(0,r.MZ)({type:String,json:{write:!0}})],p.prototype,"caption",void 0),(0,o._)([(0,r.MZ)({type:String,json:{write:!0}})],p.prototype,"title",void 0),(0,o._)([(0,r.MZ)({type:["image","bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],p.prototype,"type",void 0),p=(0,o._)([(0,n.$)("esri.popup.content.mixins.MediaInfo")],p);const l=p},38152:(t,e,i)=>{i.d(e,{U:()=>o});const o=(0,i(66552).O)()({barchart:"bar-chart",columnchart:"column-chart",linechart:"line-chart",piechart:"pie-chart"})},58280:(t,e,i)=>{i.d(e,{g:()=>l});var o=i(71468),s=i(81663),r=i(96922),n=i(92799),p=i(53535);const l={base:i(22756).A,key:"type",defaultKeyValue:"image",typeMap:{"bar-chart":o.A,"column-chart":s.A,"line-chart":n.A,"pie-chart":p.A,image:r.A}}},68780:(t,e,i)=>{i.d(e,{A:()=>y});var o=i(90237),s=i(69540),r=i(25482),n=i(10107),p=i(56507),l=(i(87811),i(44208),i(93223)),a=i(40608),d=i(97770);let c=class extends(s.A.ClonableMixin(r.A)){constructor(t){super(t),this.dateFormat=null,this.digitSeparator=!1,this.places=null}};(0,o._)([(0,l.e)(d._v)],c.prototype,"dateFormat",void 0),(0,o._)([(0,n.MZ)({type:Boolean,json:{write:!0}})],c.prototype,"digitSeparator",void 0),(0,o._)([(0,n.MZ)({type:p.jz,json:{write:!0}})],c.prototype,"places",void 0),c=(0,o._)([(0,a.$)("esri.popup.support.FieldInfoFormat")],c);const y=c},49852:(t,e,i)=>{i.d(e,{A:()=>a});var o,s=i(90237),r=i(25482),n=i(10107),p=(i(44208),i(53966),i(87811),i(40608));let l=o=class extends r.A{constructor(t){super(t),this.field=null,this.order=null}clone(){return new o({field:this.field,order:this.order})}};(0,s._)([(0,n.MZ)({type:String,json:{write:!0}})],l.prototype,"field",void 0),(0,s._)([(0,n.MZ)({type:["asc","desc"],json:{write:!0}})],l.prototype,"order",void 0),l=o=(0,s._)([(0,p.$)("esri.popup.support.RelatedRecordsInfoFieldOrder")],l);const a=l},83342:(t,e,i)=>{i.d(e,{A:()=>d});var o=i(90237),s=i(69540),r=i(25482),n=i(10107),p=i(56507),l=(i(87811),i(44208),i(40608));let a=class extends(s.A.ClonableMixin(r.A)){constructor(t){super(t),this.title=null,this.description=null,this.type=null,this.open=!1,this.associatedNetworkSourceId=null,this.associatedAssetGroup=null,this.associatedAssetType=null}};(0,o._)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"title",void 0),(0,o._)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"description",void 0),(0,o._)([(0,n.MZ)({type:["attachment","connectivity","container","content","structure"],json:{write:!0}})],a.prototype,"type",void 0),(0,o._)([(0,n.MZ)({type:Boolean,json:{read:!1}})],a.prototype,"open",void 0),(0,o._)([(0,n.MZ)({type:Number,json:{type:p.jz,write:!0}})],a.prototype,"associatedNetworkSourceId",void 0),(0,o._)([(0,n.MZ)({type:Number,json:{type:p.jz,write:!0}})],a.prototype,"associatedAssetGroup",void 0),(0,o._)([(0,n.MZ)({type:Number,json:{type:p.jz,write:!0}})],a.prototype,"associatedAssetType",void 0),a=(0,o._)([(0,l.$)("esri.popup.support.UtilityNetworkAssociationType")],a);const d=a}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1053,3666],{11053:(r,e,t)=>{t.d(e,{c:()=>n,g:()=>a});var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function a(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}},3666:(r,e,t)=>{t.r(e),t.d(e,{l:()=>u});var n,a=t(11053),o={exports:{}};const i=(0,a.g)(function(){return n||(n=1,r=o,e="undefined"!=typeof document?document.currentScript?.src:void 0,t=function(r={}){var t,n,a=Object.assign({},r),o=new Promise(((r,e)=>{t=r,n=e})),i=Object.assign({},a),u="./this.program",s="";"undefined"!=typeof document&&document.currentScript&&(s=document.currentScript.src),e&&(s=e),s=s.startsWith("blob:")?"":s.substr(0,s.replace(/[?#].*/,"").lastIndexOf("/")+1),a.print||console.log.bind(console);var l,c,f=a.printErr||console.error.bind(console);Object.assign(a,i),i=null,a.arguments&&a.arguments,a.thisProgram&&(u=a.thisProgram),a.quit&&a.quit,a.wasmBinary&&(l=a.wasmBinary);var d,h,m,p,v,y,g,w,_=!1;function b(){var r=c.buffer;a.HEAP8=d=new Int8Array(r),a.HEAP16=m=new Int16Array(r),a.HEAPU8=h=new Uint8Array(r),a.HEAPU16=p=new Uint16Array(r),a.HEAP32=v=new Int32Array(r),a.HEAPU32=y=new Uint32Array(r),a.HEAPF32=g=new Float32Array(r),a.HEAPF64=w=new Float64Array(r)}var A=[],T=[],C=[];function P(r){A.unshift(r)}function F(r){C.unshift(r)}var W=0,E=null;function S(r){a.onAbort?.(r),f(r="Aborted("+r+")"),_=!0,r+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(r);throw n(e),e}var O,$=r=>r.startsWith("data:application/octet-stream;base64,");function M(r){if(r==O&&l)return new Uint8Array(l);throw"both async and sync fetching of the wasm failed"}function R(r,e,t){return function(r){return l||"function"!=typeof fetch?Promise.resolve().then((()=>M(r))):fetch(r,{credentials:"same-origin"}).then((e=>{if(!e.ok)throw`failed to load wasm binary file at '${r}'`;return e.arrayBuffer()})).catch((()=>M(r)))}(r).then((r=>WebAssembly.instantiate(r,e))).then(t,(r=>{f(`failed to asynchronously prepare wasm: ${r}`),S(r)}))}$(O="lclayout.wasm")||(O=function(r){return a.locateFile?a.locateFile(r,s):s+r}(O));var j=r=>{for(;r.length>0;)r.shift()(a)};a.noExitRuntime;class k{constructor(r){this.excPtr=r,this.ptr=r-24}set_type(r){y[this.ptr+4>>2]=r}get_type(){return y[this.ptr+4>>2]}set_destructor(r){y[this.ptr+8>>2]=r}get_destructor(){return y[this.ptr+8>>2]}set_caught(r){r=r?1:0,d[this.ptr+12]=r}get_caught(){return 0!=d[this.ptr+12]}set_rethrown(r){r=r?1:0,d[this.ptr+13]=r}get_rethrown(){return 0!=d[this.ptr+13]}init(r,e){this.set_adjusted_ptr(0),this.set_type(r),this.set_destructor(e)}set_adjusted_ptr(r){y[this.ptr+16>>2]=r}get_adjusted_ptr(){return y[this.ptr+16>>2]}get_exception_ptr(){if(Gr(this.get_type()))return y[this.excPtr>>2];var r=this.get_adjusted_ptr();return 0!==r?r:this.excPtr}}var D={},x=r=>{for(;r.length;){var e=r.pop();r.pop()(e)}};function I(r){return this.fromWireType(y[r>>2])}var U,Y,H,V={},B={},z={},N=r=>{throw new U(r)},q=(r,e,t)=>{function n(e){var n=t(e);n.length!==r.length&&N("Mismatched type converter count");for(var a=0;a<r.length;++a)L(r[a],n[a])}r.forEach((function(r){z[r]=e}));var a=new Array(e.length),o=[],i=0;e.forEach(((r,e)=>{B.hasOwnProperty(r)?a[e]=B[r]:(o.push(r),V.hasOwnProperty(r)||(V[r]=[]),V[r].push((()=>{a[e]=B[r],++i===o.length&&n(a)})))})),0===o.length&&n(a)},G=r=>{for(var e="",t=r;h[t];)e+=Y[h[t++]];return e},J=r=>{throw new H(r)};function L(r,e,t={}){if(!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");return function(r,e,t={}){var n=e.name;if(r||J(`type "${n}" must have a positive integer typeid pointer`),B.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;J(`Cannot register type '${n}' twice`)}if(B[r]=e,delete z[r],V.hasOwnProperty(r)){var a=V[r];delete V[r],a.forEach((r=>r()))}}(r,e,t)}var X,K,Q,Z=[],rr=[],er=r=>{r>9&&0==--rr[r+1]&&(rr[r]=void 0,Z.push(r))},tr=r=>(r||J("Cannot use deleted val. handle = "+r),rr[r]),nr=r=>{switch(r){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const e=Z.pop()||rr.length;return rr[e]=r,rr[e+1]=1,e}}},ar={name:"emscripten::val",fromWireType:r=>{var e=tr(r);return er(r),e},toWireType:(r,e)=>nr(e),argPackAdvance:8,readValueFromPointer:I,destructorFunction:null},or=r=>L(r,ar),ir=(r,e,t)=>{if(void 0===r[e].overloadTable){var n=r[e];r[e]=function(...n){return r[e].overloadTable.hasOwnProperty(n.length)||J(`Function '${t}' called with an invalid number of arguments (${n.length}) - expects one of (${r[e].overloadTable})!`),r[e].overloadTable[n.length].apply(this,n)},r[e].overloadTable=[],r[e].overloadTable[n.argCount]=n}},ur=(r,e,t)=>{a.hasOwnProperty(r)?((void 0===t||void 0!==a[r].overloadTable&&void 0!==a[r].overloadTable[t])&&J(`Cannot register public name '${r}' twice`),ir(a,r,r),a.hasOwnProperty(t)&&J(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),a[r].overloadTable[t]=e):(a[r]=e,void 0!==t&&(a[r].numArguments=t))},sr=(r,e,t)=>{switch(e){case 1:return t?function(r){return this.fromWireType(d[r])}:function(r){return this.fromWireType(h[r])};case 2:return t?function(r){return this.fromWireType(m[r>>1])}:function(r){return this.fromWireType(p[r>>1])};case 4:return t?function(r){return this.fromWireType(v[r>>2])}:function(r){return this.fromWireType(y[r>>2])};default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},lr=(r,e)=>Object.defineProperty(e,"name",{value:r}),cr=r=>{var e=zr(r),t=G(e);return qr(e),t},fr=(r,e)=>{var t=B[r];return void 0===t&&J(`${e} has unknown type ${cr(r)}`),t},dr=(r,e)=>{switch(e){case 4:return function(r){return this.fromWireType(g[r>>2])};case 8:return function(r){return this.fromWireType(w[r>>3])};default:throw new TypeError(`invalid float width (${e}): ${r}`)}},hr=(r,e,t)=>{a.hasOwnProperty(r)||N("Replacing nonexistent public symbol"),void 0!==a[r].overloadTable&&void 0!==t?a[r].overloadTable[t]=e:(a[r]=e,a[r].argCount=t)},mr=[],pr=r=>{var e=mr[r];return e||(r>=mr.length&&(mr.length=r+1),mr[r]=e=X.get(r)),e},vr=(r,e)=>{var t=(r=G(r)).includes("j")?((r,e)=>(...t)=>((r,e,t=[])=>r.includes("j")?((r,e,t)=>(r=r.replace(/p/g,"i"),(0,a["dynCall_"+r])(e,...t)))(r,e,t):pr(e)(...t))(r,e,t))(r,e):pr(e);return"function"!=typeof t&&J(`unknown function pointer with signature ${r}: ${e}`),t},yr=(r,e,t)=>{switch(e){case 1:return t?r=>d[r]:r=>h[r];case 2:return t?r=>m[r>>1]:r=>p[r>>1];case 4:return t?r=>v[r>>2]:r=>y[r>>2];default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},gr=(r,e,t,n)=>{if(!(n>0))return 0;for(var a=t,o=t+n-1,i=0;i<r.length;++i){var u=r.charCodeAt(i);if(u>=55296&&u<=57343&&(u=65536+((1023&u)<<10)|1023&r.charCodeAt(++i)),u<=127){if(t>=o)break;e[t++]=u}else if(u<=2047){if(t+1>=o)break;e[t++]=192|u>>6,e[t++]=128|63&u}else if(u<=65535){if(t+2>=o)break;e[t++]=224|u>>12,e[t++]=128|u>>6&63,e[t++]=128|63&u}else{if(t+3>=o)break;e[t++]=240|u>>18,e[t++]=128|u>>12&63,e[t++]=128|u>>6&63,e[t++]=128|63&u}}return e[t]=0,t-a},wr=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n<=127?e++:n<=2047?e+=2:n>=55296&&n<=57343?(e+=4,++t):e+=3}return e},_r="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,br=(r,e)=>r?((r,e,t)=>{for(var n=e+t,a=e;r[a]&&!(a>=n);)++a;if(a-e>16&&r.buffer&&_r)return _r.decode(r.subarray(e,a));for(var o="";e<a;){var i=r[e++];if(128&i){var u=63&r[e++];if(192!=(224&i)){var s=63&r[e++];if((i=224==(240&i)?(15&i)<<12|u<<6|s:(7&i)<<18|u<<12|s<<6|63&r[e++])<65536)o+=String.fromCharCode(i);else{var l=i-65536;o+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else o+=String.fromCharCode((31&i)<<6|u)}else o+=String.fromCharCode(i)}return o})(h,r,e):"",Ar="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,Tr=(r,e)=>{for(var t=r,n=t>>1,a=n+e/2;!(n>=a)&&p[n];)++n;if((t=n<<1)-r>32&&Ar)return Ar.decode(h.subarray(r,t));for(var o="",i=0;!(i>=e/2);++i){var u=m[r+2*i>>1];if(0==u)break;o+=String.fromCharCode(u)}return o},Cr=(r,e,t)=>{if(t??=2147483647,t<2)return 0;for(var n=e,a=(t-=2)<2*r.length?t/2:r.length,o=0;o<a;++o){var i=r.charCodeAt(o);m[e>>1]=i,e+=2}return m[e>>1]=0,e-n},Pr=r=>2*r.length,Fr=(r,e)=>{for(var t=0,n="";!(t>=e/4);){var a=v[r+4*t>>2];if(0==a)break;if(++t,a>=65536){var o=a-65536;n+=String.fromCharCode(55296|o>>10,56320|1023&o)}else n+=String.fromCharCode(a)}return n},Wr=(r,e,t)=>{if(t??=2147483647,t<4)return 0;for(var n=e,a=n+t-4,o=0;o<r.length;++o){var i=r.charCodeAt(o);if(i>=55296&&i<=57343&&(i=65536+((1023&i)<<10)|1023&r.charCodeAt(++o)),v[e>>2]=i,(e+=4)+4>a)break}return v[e>>2]=0,e-n},Er=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n>=55296&&n<=57343&&++t,e+=4}return e},Sr=(r,e,t)=>{var n=[],a=r.toWireType(n,t);return n.length&&(y[e>>2]=nr(n)),a},Or=[],$r={},Mr=r=>{var e=$r[r];return void 0===e?G(r):e},Rr=Reflect.construct;Q=()=>performance.now();var jr=r=>{var e=(r-c.buffer.byteLength+65535)/65536;try{return c.grow(e),b(),1}catch(r){}},kr={},Dr=()=>{if(!Dr.strings){var r={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:u||"./this.program"};for(var e in kr)void 0===kr[e]?delete r[e]:r[e]=kr[e];var t=[];for(var e in r)t.push(`${e}=${r[e]}`);Dr.strings=t}return Dr.strings},xr=r=>r%4==0&&(r%100!=0||r%400==0),Ir=[31,29,31,30,31,30,31,31,30,31,30,31],Ur=[31,28,31,30,31,30,31,31,30,31,30,31],Yr=(r,e)=>{d.set(r,e)};U=a.InternalError=class extends Error{constructor(r){super(r),this.name="InternalError"}},(()=>{for(var r=new Array(256),e=0;e<256;++e)r[e]=String.fromCharCode(e);Y=r})(),H=a.BindingError=class extends Error{constructor(r){super(r),this.name="BindingError"}},rr.push(0,1,void 0,1,null,1,!0,1,!1,1),a.count_emval_handles=()=>rr.length/2-5-Z.length,K=a.UnboundTypeError=((r,e)=>{var t=lr(e,(function(r){this.name=e,this.message=r;var t=new Error(r).stack;void 0!==t&&(this.stack=this.toString()+"\n"+t.replace(/^Error(:[^\n]*)?\n/,""))}));return t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},t})(Error,"UnboundTypeError");var Hr,Vr={a:(r,e,t)=>{throw new k(r).init(e,t),r},k:r=>{var e=D[r];delete D[r];var t=e.rawConstructor,n=e.rawDestructor,a=e.fields,o=a.map((r=>r.getterReturnType)).concat(a.map((r=>r.setterArgumentType)));q([r],o,(r=>{var o={};return a.forEach(((e,t)=>{var n=e.fieldName,i=r[t],u=e.getter,s=e.getterContext,l=r[t+a.length],c=e.setter,f=e.setterContext;o[n]={read:r=>i.fromWireType(u(s,r)),write:(r,e)=>{var t=[];c(f,r,l.toWireType(t,e)),x(t)}}})),[{name:e.name,fromWireType:r=>{var e={};for(var t in o)e[t]=o[t].read(r);return n(r),e},toWireType:(r,e)=>{for(var a in o)if(!(a in e))throw new TypeError(`Missing field: "${a}"`);var i=t();for(a in o)o[a].write(i,e[a]);return null!==r&&r.push(n,i),i},argPackAdvance:8,readValueFromPointer:I,destructorFunction:n}]}))},z:(r,e,t,n,a)=>{},w:(r,e,t,n)=>{L(r,{name:e=G(e),fromWireType:function(r){return!!r},toWireType:function(r,e){return e?t:n},argPackAdvance:8,readValueFromPointer:function(r){return this.fromWireType(h[r])},destructorFunction:null})},t:(r,e,t)=>{r=G(r),q([],[e],(e=>(e=e[0],a[r]=e.fromWireType(t),[])))},M:or,r:(r,e,t,n)=>{function a(){}e=G(e),a.values={},L(r,{name:e,constructor:a,fromWireType:function(r){return this.constructor.values[r]},toWireType:(r,e)=>e.value,argPackAdvance:8,readValueFromPointer:sr(e,t,n),destructorFunction:null}),ur(e,a)},j:(r,e,t)=>{var n=fr(r,"enum");e=G(e);var a=n.constructor,o=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:lr(`${n.name}_${e}`,(function(){}))}});a.values[t]=o,a[e]=o},v:(r,e,t)=>{L(r,{name:e=G(e),fromWireType:r=>r,toWireType:(r,e)=>e,argPackAdvance:8,readValueFromPointer:dr(e,t),destructorFunction:null})},e:(r,e,t,n,a,o,i)=>{var u=((r,e)=>{for(var t=[],n=0;n<r;n++)t.push(y[e+4*n>>2]);return t})(e,t);r=(r=>{const e=(r=r.trim()).indexOf("(");return-1!==e?r.substr(0,e):r})(r=G(r)),a=vr(n,a),ur(r,(function(){((r,e)=>{var t=[],n={};throw e.forEach((function r(e){n[e]||B[e]||(z[e]?z[e].forEach(r):(t.push(e),n[e]=!0))})),new K(`${r}: `+t.map(cr).join([", "]))})(`Cannot call ${r} due to unbound types`,u)}),e-1),q([],u,(t=>{var n=[t[0],null].concat(t.slice(1));return hr(r,function(r,e,t,n,a){var o=e.length;o<2&&J("argTypes array size mismatch! Must at least get return value and 'this' types!");var i=null!==e[1]&&!1,u=function(r){for(var e=1;e<r.length;++e)if(null!==r[e]&&void 0===r[e].destructorFunction)return!0;return!1}(e),s="void"!==e[0].name,l=o-2,c=new Array(l),f=[],d=[];return lr(r,(function(...t){var o;t.length!==l&&J(`function ${r} called with ${t.length} arguments, expected ${l}`),d.length=0,f.length=i?2:1,f[0]=a,i&&(o=e[1].toWireType(d,this),f[1]=o);for(var h=0;h<l;++h)c[h]=e[h+2].toWireType(d,t[h]),f.push(c[h]);return function(r){if(u)x(d);else for(var t=i?1:2;t<e.length;t++){var n=1===t?o:c[t-2];null!==e[t].destructorFunction&&e[t].destructorFunction(n)}if(s)return e[0].fromWireType(r)}(n(...f))}))}(r,n,0,a,o),e-1),[]}))},m:(r,e,t,n,a)=>{e=G(e);var o=r=>r;if(0===n){var i=32-8*t;o=r=>r<<i>>>i}var u=e.includes("unsigned");L(r,{name:e,fromWireType:o,toWireType:u?function(r,e){return this.name,e>>>0}:function(r,e){return this.name,e},argPackAdvance:8,readValueFromPointer:yr(e,t,0!==n),destructorFunction:null})},f:(r,e,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][e];function a(r){var e=y[r>>2],t=y[r+4>>2];return new n(d.buffer,t,e)}L(r,{name:t=G(t),fromWireType:a,argPackAdvance:8,readValueFromPointer:a},{ignoreDuplicateRegistrations:!0})},L:(r,e)=>{or(r)},u:(r,e)=>{var t="std::string"===(e=G(e));L(r,{name:e,fromWireType(r){var e,n=y[r>>2],a=r+4;if(t)for(var o=a,i=0;i<=n;++i){var u=a+i;if(i==n||0==h[u]){var s=br(o,u-o);void 0===e?e=s:(e+=String.fromCharCode(0),e+=s),o=u+1}}else{var l=new Array(n);for(i=0;i<n;++i)l[i]=String.fromCharCode(h[a+i]);e=l.join("")}return qr(r),e},toWireType(r,e){var n;e instanceof ArrayBuffer&&(e=new Uint8Array(e));var a="string"==typeof e;a||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int8Array||J("Cannot pass non-string to std::string"),n=t&&a?wr(e):e.length;var o=Nr(4+n+1),i=o+4;if(y[o>>2]=n,t&&a)((r,e,t)=>{gr(r,h,e,t)})(e,i,n+1);else if(a)for(var u=0;u<n;++u){var s=e.charCodeAt(u);s>255&&(qr(i),J("String has UTF-16 code units that do not fit in 8 bits")),h[i+u]=s}else for(u=0;u<n;++u)h[i+u]=e[u];return null!==r&&r.push(qr,o),o},argPackAdvance:8,readValueFromPointer:I,destructorFunction(r){qr(r)}})},s:(r,e,t)=>{var n,a,o,i;t=G(t),2===e?(n=Tr,a=Cr,i=Pr,o=r=>p[r>>1]):4===e&&(n=Fr,a=Wr,i=Er,o=r=>y[r>>2]),L(r,{name:t,fromWireType:r=>{for(var t,a=y[r>>2],i=r+4,u=0;u<=a;++u){var s=r+4+u*e;if(u==a||0==o(s)){var l=n(i,s-i);void 0===t?t=l:(t+=String.fromCharCode(0),t+=l),i=s+e}}return qr(r),t},toWireType:(r,n)=>{"string"!=typeof n&&J(`Cannot pass non-string to C++ string type ${t}`);var o=i(n),u=Nr(4+o+e);return y[u>>2]=o/e,a(n,u+4,o+e),null!==r&&r.push(qr,u),u},argPackAdvance:8,readValueFromPointer:I,destructorFunction(r){qr(r)}})},l:(r,e,t,n,a,o)=>{D[r]={name:G(e),rawConstructor:vr(t,n),rawDestructor:vr(a,o),fields:[]}},c:(r,e,t,n,a,o,i,u,s,l)=>{D[r].fields.push({fieldName:G(e),getterReturnType:t,getter:vr(n,a),getterContext:o,setterArgumentType:i,setter:vr(u,s),setterContext:l})},x:(r,e)=>{L(r,{isVoid:!0,name:e=G(e),argPackAdvance:0,fromWireType:()=>{},toWireType:(r,e)=>{}})},F:()=>1,J:(r,e,t)=>h.copyWithin(r,e,e+t),g:(r,e,t)=>(r=tr(r),e=fr(e,"emval::as"),Sr(e,t,r)),y:(r,e,t,n)=>(r=Or[r])(null,e=tr(e),t,n),p:(r,e,t,n,a)=>(r=Or[r])(e=tr(e),e[t=Mr(t)],n,a),b:er,n:(r,e,t)=>{var n=((r,e)=>{for(var t=new Array(r),n=0;n<r;++n)t[n]=fr(y[e+4*n>>2],"parameter "+n);return t})(r,e),a=n.shift();r--;var o=new Array(r),i=`methodCaller<(${n.map((r=>r.name)).join(", ")}) => ${a.name}>`;return(r=>{var e=Or.length;return Or.push(r),e})(lr(i,((e,i,u,s)=>{for(var l=0,c=0;c<r;++c)o[c]=n[c].readValueFromPointer(s+l),l+=n[c].argPackAdvance;var f=1===t?Rr(i,o):i.apply(e,o);return Sr(a,u,f)})))},h:(r,e)=>(r=tr(r),e=tr(e),nr(r[e])),q:()=>nr([]),K:r=>{r=tr(r);for(var e=new Array(r.length),t=0;t<r.length;t++)e[t]=r[t];return nr(e)},o:r=>nr(Mr(r)),d:r=>{var e=tr(r);x(e),er(r)},i:(r,e)=>{var t=(r=fr(r,"_emval_take_value")).readValueFromPointer(e);return nr(t)},E:()=>{S("")},G:()=>Date.now(),A:()=>2147483648,I:Q,H:r=>{var e=h.length,t=2147483648;if((r>>>=0)>t)return!1;for(var n=(r,e)=>r+(e-r%e)%e,a=1;a<=4;a*=2){var o=e*(1+.2/a);o=Math.min(o,r+100663296);var i=Math.min(t,n(Math.max(r,o),65536));if(jr(i))return!0}return!1},C:(r,e)=>{var t=0;return Dr().forEach(((n,a)=>{var o=e+t;y[r+4*a>>2]=o,((r,e)=>{for(var t=0;t<r.length;++t)d[e++]=r.charCodeAt(t);d[e]=0})(n,o),t+=n.length+1})),0},D:(r,e)=>{var t=Dr();y[r>>2]=t.length;var n=0;return t.forEach((r=>n+=r.length+1)),y[e>>2]=n,0},B:(r,e,t,n,a)=>((r,e,t,n)=>{var a=y[n+40>>2],o={tm_sec:v[n>>2],tm_min:v[n+4>>2],tm_hour:v[n+8>>2],tm_mday:v[n+12>>2],tm_mon:v[n+16>>2],tm_year:v[n+20>>2],tm_wday:v[n+24>>2],tm_yday:v[n+28>>2],tm_isdst:v[n+32>>2],tm_gmtoff:v[n+36>>2],tm_zone:a?br(a):""},i=br(t),u={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var s in u)i=i.replace(new RegExp(s,"g"),u[s]);var l=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],c=["January","February","March","April","May","June","July","August","September","October","November","December"];function f(r,e,t){for(var n="number"==typeof r?r.toString():r||"";n.length<e;)n=t[0]+n;return n}function d(r,e){return f(r,e,"0")}function h(r,e){function t(r){return r<0?-1:r>0?1:0}var n;return 0===(n=t(r.getFullYear()-e.getFullYear()))&&0===(n=t(r.getMonth()-e.getMonth()))&&(n=t(r.getDate()-e.getDate())),n}function m(r){switch(r.getDay()){case 0:return new Date(r.getFullYear()-1,11,29);case 1:return r;case 2:return new Date(r.getFullYear(),0,3);case 3:return new Date(r.getFullYear(),0,2);case 4:return new Date(r.getFullYear(),0,1);case 5:return new Date(r.getFullYear()-1,11,31);case 6:return new Date(r.getFullYear()-1,11,30)}}function p(r){var e=((r,e)=>{for(var t=new Date(r.getTime());e>0;){var n=xr(t.getFullYear()),a=t.getMonth(),o=(n?Ir:Ur)[a];if(!(e>o-t.getDate()))return t.setDate(t.getDate()+e),t;e-=o-t.getDate()+1,t.setDate(1),a<11?t.setMonth(a+1):(t.setMonth(0),t.setFullYear(t.getFullYear()+1))}return t})(new Date(r.tm_year+1900,0,1),r.tm_yday),t=new Date(e.getFullYear(),0,4),n=new Date(e.getFullYear()+1,0,4),a=m(t),o=m(n);return h(a,e)<=0?h(o,e)<=0?e.getFullYear()+1:e.getFullYear():e.getFullYear()-1}var g={"%a":r=>l[r.tm_wday].substring(0,3),"%A":r=>l[r.tm_wday],"%b":r=>c[r.tm_mon].substring(0,3),"%B":r=>c[r.tm_mon],"%C":r=>d((r.tm_year+1900)/100|0,2),"%d":r=>d(r.tm_mday,2),"%e":r=>f(r.tm_mday,2," "),"%g":r=>p(r).toString().substring(2),"%G":p,"%H":r=>d(r.tm_hour,2),"%I":r=>{var e=r.tm_hour;return 0==e?e=12:e>12&&(e-=12),d(e,2)},"%j":r=>d(r.tm_mday+((r,e)=>{for(var t=0,n=0;n<=e;t+=r[n++]);return t})(xr(r.tm_year+1900)?Ir:Ur,r.tm_mon-1),3),"%m":r=>d(r.tm_mon+1,2),"%M":r=>d(r.tm_min,2),"%n":()=>"\n","%p":r=>r.tm_hour>=0&&r.tm_hour<12?"AM":"PM","%S":r=>d(r.tm_sec,2),"%t":()=>"\t","%u":r=>r.tm_wday||7,"%U":r=>{var e=r.tm_yday+7-r.tm_wday;return d(Math.floor(e/7),2)},"%V":r=>{var e=Math.floor((r.tm_yday+7-(r.tm_wday+6)%7)/7);if((r.tm_wday+371-r.tm_yday-2)%7<=2&&e++,e){if(53==e){var t=(r.tm_wday+371-r.tm_yday)%7;4==t||3==t&&xr(r.tm_year)||(e=1)}}else{e=52;var n=(r.tm_wday+7-r.tm_yday-1)%7;(4==n||5==n&&xr(r.tm_year%400-1))&&e++}return d(e,2)},"%w":r=>r.tm_wday,"%W":r=>{var e=r.tm_yday+7-(r.tm_wday+6)%7;return d(Math.floor(e/7),2)},"%y":r=>(r.tm_year+1900).toString().substring(2),"%Y":r=>r.tm_year+1900,"%z":r=>{var e=r.tm_gmtoff,t=e>=0;return e=(e=Math.abs(e)/60)/60*100+e%60,(t?"+":"-")+String("0000"+e).slice(-4)},"%Z":r=>r.tm_zone,"%%":()=>"%"};for(var s in i=i.replace(/%%/g,"\0\0"),g)i.includes(s)&&(i=i.replace(new RegExp(s,"g"),g[s](o)));var w=function(r){var e=wr(r)+1,t=new Array(e);return gr(r,t,0,t.length),t}(i=i.replace(/\0\0/g,"%"));return w.length>e?0:(Yr(w,r),w.length-1)})(r,e,t,n)},Br=function(){var r={a:Vr};function e(r,e){return Br=r.exports,c=Br.N,b(),X=Br.Q,function(r){T.unshift(r)}(Br.O),function(){if(W--,a.monitorRunDependencies?.(W),0==W&&E){var r=E;E=null,r()}}(),Br}if(W++,a.monitorRunDependencies?.(W),a.instantiateWasm)try{return a.instantiateWasm(r,e)}catch(r){f(`Module.instantiateWasm callback failed with error: ${r}`),n(r)}return function(r,e,t,n){return r||"function"!=typeof WebAssembly.instantiateStreaming||$(e)||"function"!=typeof fetch?R(e,t,n):fetch(e,{credentials:"same-origin"}).then((r=>WebAssembly.instantiateStreaming(r,t).then(n,(function(r){return f(`wasm streaming compile failed: ${r}`),f("falling back to ArrayBuffer instantiation"),R(e,t,n)}))))}(l,O,r,(function(r){e(r.instance)})).catch(n),{}}(),zr=r=>(zr=Br.P)(r),Nr=a._malloc=r=>(Nr=a._malloc=Br.R)(r),qr=a._free=r=>(qr=a._free=Br.S)(r),Gr=r=>(Gr=Br.T)(r);function Jr(){function r(){Hr||(Hr=!0,a.calledRun=!0,_||(j(T),t(a),a.onRuntimeInitialized&&a.onRuntimeInitialized(),function(){if(a.postRun)for("function"==typeof a.postRun&&(a.postRun=[a.postRun]);a.postRun.length;)F(a.postRun.shift());j(C)}()))}W>0||(function(){if(a.preRun)for("function"==typeof a.preRun&&(a.preRun=[a.preRun]);a.preRun.length;)P(a.preRun.shift());j(A)}(),W>0||(a.setStatus?(a.setStatus("Running..."),setTimeout((function(){setTimeout((function(){a.setStatus("")}),1),r()}),1)):r()))}if(a.dynCall_viijii=(r,e,t,n,o,i,u)=>(a.dynCall_viijii=Br.U)(r,e,t,n,o,i,u),a.dynCall_iiiiij=(r,e,t,n,o,i,u)=>(a.dynCall_iiiiij=Br.V)(r,e,t,n,o,i,u),a.dynCall_iiiiijj=(r,e,t,n,o,i,u,s,l)=>(a.dynCall_iiiiijj=Br.W)(r,e,t,n,o,i,u,s,l),a.dynCall_iiiiiijj=(r,e,t,n,o,i,u,s,l,c)=>(a.dynCall_iiiiiijj=Br.X)(r,e,t,n,o,i,u,s,l,c),E=function r(){Hr||Jr(),Hr||(E=r)},a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);a.preInit.length>0;)a.preInit.pop()();return Jr(),o},r.exports=t),o.exports;var r,e,t}()),u=Object.freeze(Object.defineProperty({__proto__:null,default:i},Symbol.toStringTag,{value:"Module"}))}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1053,3666],{11053:(r,e,t)=>{t.d(e,{c:()=>n,g:()=>a});var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function a(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}},3666:(r,e,t)=>{t.r(e),t.d(e,{l:()=>u});var n,a=t(11053),o={exports:{}};const i=(0,a.g)(function(){return n||(n=1,r=o,e="undefined"!=typeof document?document.currentScript?.src:void 0,t=function(r={}){var t,n,a=Object.assign({},r),o=new Promise(((r,e)=>{t=r,n=e})),i=Object.assign({},a),u="./this.program",s="";"undefined"!=typeof document&&document.currentScript&&(s=document.currentScript.src),e&&(s=e),s=s.startsWith("blob:")?"":s.substr(0,s.replace(/[?#].*/,"").lastIndexOf("/")+1),a.print||console.log.bind(console);var l,c,f=a.printErr||console.error.bind(console);Object.assign(a,i),i=null,a.arguments&&a.arguments,a.thisProgram&&(u=a.thisProgram),a.quit&&a.quit,a.wasmBinary&&(l=a.wasmBinary);var d,h,m,p,v,y,g,w,_=!1;function b(){var r=c.buffer;a.HEAP8=d=new Int8Array(r),a.HEAP16=m=new Int16Array(r),a.HEAPU8=h=new Uint8Array(r),a.HEAPU16=p=new Uint16Array(r),a.HEAP32=v=new Int32Array(r),a.HEAPU32=y=new Uint32Array(r),a.HEAPF32=g=new Float32Array(r),a.HEAPF64=w=new Float64Array(r)}var A=[],T=[],C=[];function P(r){A.unshift(r)}function F(r){C.unshift(r)}var W=0,E=null;function S(r){a.onAbort?.(r),f(r="Aborted("+r+")"),_=!0,r+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(r);throw n(e),e}var O,$=r=>r.startsWith("data:application/octet-stream;base64,");function M(r){if(r==O&&l)return new Uint8Array(l);throw"both async and sync fetching of the wasm failed"}function R(r,e,t){return function(r){return l||"function"!=typeof fetch?Promise.resolve().then((()=>M(r))):fetch(r,{credentials:"same-origin"}).then((e=>{if(!e.ok)throw`failed to load wasm binary file at '${r}'`;return e.arrayBuffer()})).catch((()=>M(r)))}(r).then((r=>WebAssembly.instantiate(r,e))).then(t,(r=>{f(`failed to asynchronously prepare wasm: ${r}`),S(r)}))}$(O="lclayout.wasm")||(O=function(r){return a.locateFile?a.locateFile(r,s):s+r}(O));var j=r=>{for(;r.length>0;)r.shift()(a)};a.noExitRuntime;class k{constructor(r){this.excPtr=r,this.ptr=r-24}set_type(r){y[this.ptr+4>>2]=r}get_type(){return y[this.ptr+4>>2]}set_destructor(r){y[this.ptr+8>>2]=r}get_destructor(){return y[this.ptr+8>>2]}set_caught(r){r=r?1:0,d[this.ptr+12]=r}get_caught(){return 0!=d[this.ptr+12]}set_rethrown(r){r=r?1:0,d[this.ptr+13]=r}get_rethrown(){return 0!=d[this.ptr+13]}init(r,e){this.set_adjusted_ptr(0),this.set_type(r),this.set_destructor(e)}set_adjusted_ptr(r){y[this.ptr+16>>2]=r}get_adjusted_ptr(){return y[this.ptr+16>>2]}get_exception_ptr(){if(Gr(this.get_type()))return y[this.excPtr>>2];var r=this.get_adjusted_ptr();return 0!==r?r:this.excPtr}}var D={},x=r=>{for(;r.length;){var e=r.pop();r.pop()(e)}};function I(r){return this.fromWireType(y[r>>2])}var U,Y,H,V={},B={},z={},N=r=>{throw new U(r)},q=(r,e,t)=>{function n(e){var n=t(e);n.length!==r.length&&N("Mismatched type converter count");for(var a=0;a<r.length;++a)L(r[a],n[a])}r.forEach((function(r){z[r]=e}));var a=new Array(e.length),o=[],i=0;e.forEach(((r,e)=>{B.hasOwnProperty(r)?a[e]=B[r]:(o.push(r),V.hasOwnProperty(r)||(V[r]=[]),V[r].push((()=>{a[e]=B[r],++i===o.length&&n(a)})))})),0===o.length&&n(a)},G=r=>{for(var e="",t=r;h[t];)e+=Y[h[t++]];return e},J=r=>{throw new H(r)};function L(r,e,t={}){if(!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");return function(r,e,t={}){var n=e.name;if(r||J(`type "${n}" must have a positive integer typeid pointer`),B.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;J(`Cannot register type '${n}' twice`)}if(B[r]=e,delete z[r],V.hasOwnProperty(r)){var a=V[r];delete V[r],a.forEach((r=>r()))}}(r,e,t)}var X,K,Q,Z=[],rr=[],er=r=>{r>9&&0==--rr[r+1]&&(rr[r]=void 0,Z.push(r))},tr=r=>(r||J("Cannot use deleted val. handle = "+r),rr[r]),nr=r=>{switch(r){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const e=Z.pop()||rr.length;return rr[e]=r,rr[e+1]=1,e}}},ar={name:"emscripten::val",fromWireType:r=>{var e=tr(r);return er(r),e},toWireType:(r,e)=>nr(e),argPackAdvance:8,readValueFromPointer:I,destructorFunction:null},or=r=>L(r,ar),ir=(r,e,t)=>{if(void 0===r[e].overloadTable){var n=r[e];r[e]=function(...n){return r[e].overloadTable.hasOwnProperty(n.length)||J(`Function '${t}' called with an invalid number of arguments (${n.length}) - expects one of (${r[e].overloadTable})!`),r[e].overloadTable[n.length].apply(this,n)},r[e].overloadTable=[],r[e].overloadTable[n.argCount]=n}},ur=(r,e,t)=>{a.hasOwnProperty(r)?((void 0===t||void 0!==a[r].overloadTable&&void 0!==a[r].overloadTable[t])&&J(`Cannot register public name '${r}' twice`),ir(a,r,r),a.hasOwnProperty(t)&&J(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),a[r].overloadTable[t]=e):(a[r]=e,void 0!==t&&(a[r].numArguments=t))},sr=(r,e,t)=>{switch(e){case 1:return t?function(r){return this.fromWireType(d[r])}:function(r){return this.fromWireType(h[r])};case 2:return t?function(r){return this.fromWireType(m[r>>1])}:function(r){return this.fromWireType(p[r>>1])};case 4:return t?function(r){return this.fromWireType(v[r>>2])}:function(r){return this.fromWireType(y[r>>2])};default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},lr=(r,e)=>Object.defineProperty(e,"name",{value:r}),cr=r=>{var e=zr(r),t=G(e);return qr(e),t},fr=(r,e)=>{var t=B[r];return void 0===t&&J(`${e} has unknown type ${cr(r)}`),t},dr=(r,e)=>{switch(e){case 4:return function(r){return this.fromWireType(g[r>>2])};case 8:return function(r){return this.fromWireType(w[r>>3])};default:throw new TypeError(`invalid float width (${e}): ${r}`)}},hr=(r,e,t)=>{a.hasOwnProperty(r)||N("Replacing nonexistent public symbol"),void 0!==a[r].overloadTable&&void 0!==t?a[r].overloadTable[t]=e:(a[r]=e,a[r].argCount=t)},mr=[],pr=r=>{var e=mr[r];return e||(r>=mr.length&&(mr.length=r+1),mr[r]=e=X.get(r)),e},vr=(r,e)=>{var t=(r=G(r)).includes("j")?((r,e)=>(...t)=>((r,e,t=[])=>r.includes("j")?((r,e,t)=>(r=r.replace(/p/g,"i"),(0,a["dynCall_"+r])(e,...t)))(r,e,t):pr(e)(...t))(r,e,t))(r,e):pr(e);return"function"!=typeof t&&J(`unknown function pointer with signature ${r}: ${e}`),t},yr=(r,e,t)=>{switch(e){case 1:return t?r=>d[r]:r=>h[r];case 2:return t?r=>m[r>>1]:r=>p[r>>1];case 4:return t?r=>v[r>>2]:r=>y[r>>2];default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},gr=(r,e,t,n)=>{if(!(n>0))return 0;for(var a=t,o=t+n-1,i=0;i<r.length;++i){var u=r.charCodeAt(i);if(u>=55296&&u<=57343&&(u=65536+((1023&u)<<10)|1023&r.charCodeAt(++i)),u<=127){if(t>=o)break;e[t++]=u}else if(u<=2047){if(t+1>=o)break;e[t++]=192|u>>6,e[t++]=128|63&u}else if(u<=65535){if(t+2>=o)break;e[t++]=224|u>>12,e[t++]=128|u>>6&63,e[t++]=128|63&u}else{if(t+3>=o)break;e[t++]=240|u>>18,e[t++]=128|u>>12&63,e[t++]=128|u>>6&63,e[t++]=128|63&u}}return e[t]=0,t-a},wr=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n<=127?e++:n<=2047?e+=2:n>=55296&&n<=57343?(e+=4,++t):e+=3}return e},_r="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,br=(r,e)=>r?((r,e,t)=>{for(var n=e+t,a=e;r[a]&&!(a>=n);)++a;if(a-e>16&&r.buffer&&_r)return _r.decode(r.subarray(e,a));for(var o="";e<a;){var i=r[e++];if(128&i){var u=63&r[e++];if(192!=(224&i)){var s=63&r[e++];if((i=224==(240&i)?(15&i)<<12|u<<6|s:(7&i)<<18|u<<12|s<<6|63&r[e++])<65536)o+=String.fromCharCode(i);else{var l=i-65536;o+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else o+=String.fromCharCode((31&i)<<6|u)}else o+=String.fromCharCode(i)}return o})(h,r,e):"",Ar="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,Tr=(r,e)=>{for(var t=r,n=t>>1,a=n+e/2;!(n>=a)&&p[n];)++n;if((t=n<<1)-r>32&&Ar)return Ar.decode(h.subarray(r,t));for(var o="",i=0;!(i>=e/2);++i){var u=m[r+2*i>>1];if(0==u)break;o+=String.fromCharCode(u)}return o},Cr=(r,e,t)=>{if(t??=2147483647,t<2)return 0;for(var n=e,a=(t-=2)<2*r.length?t/2:r.length,o=0;o<a;++o){var i=r.charCodeAt(o);m[e>>1]=i,e+=2}return m[e>>1]=0,e-n},Pr=r=>2*r.length,Fr=(r,e)=>{for(var t=0,n="";!(t>=e/4);){var a=v[r+4*t>>2];if(0==a)break;if(++t,a>=65536){var o=a-65536;n+=String.fromCharCode(55296|o>>10,56320|1023&o)}else n+=String.fromCharCode(a)}return n},Wr=(r,e,t)=>{if(t??=2147483647,t<4)return 0;for(var n=e,a=n+t-4,o=0;o<r.length;++o){var i=r.charCodeAt(o);if(i>=55296&&i<=57343&&(i=65536+((1023&i)<<10)|1023&r.charCodeAt(++o)),v[e>>2]=i,(e+=4)+4>a)break}return v[e>>2]=0,e-n},Er=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n>=55296&&n<=57343&&++t,e+=4}return e},Sr=(r,e,t)=>{var n=[],a=r.toWireType(n,t);return n.length&&(y[e>>2]=nr(n)),a},Or=[],$r={},Mr=r=>{var e=$r[r];return void 0===e?G(r):e},Rr=Reflect.construct;Q=()=>performance.now();var jr=r=>{var e=(r-c.buffer.byteLength+65535)/65536;try{return c.grow(e),b(),1}catch(r){}},kr={},Dr=()=>{if(!Dr.strings){var r={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:u||"./this.program"};for(var e in kr)void 0===kr[e]?delete r[e]:r[e]=kr[e];var t=[];for(var e in r)t.push(`${e}=${r[e]}`);Dr.strings=t}return Dr.strings},xr=r=>r%4==0&&(r%100!=0||r%400==0),Ir=[31,29,31,30,31,30,31,31,30,31,30,31],Ur=[31,28,31,30,31,30,31,31,30,31,30,31],Yr=(r,e)=>{d.set(r,e)};U=a.InternalError=class extends Error{constructor(r){super(r),this.name="InternalError"}},(()=>{for(var r=new Array(256),e=0;e<256;++e)r[e]=String.fromCharCode(e);Y=r})(),H=a.BindingError=class extends Error{constructor(r){super(r),this.name="BindingError"}},rr.push(0,1,void 0,1,null,1,!0,1,!1,1),a.count_emval_handles=()=>rr.length/2-5-Z.length,K=a.UnboundTypeError=((r,e)=>{var t=lr(e,(function(r){this.name=e,this.message=r;var t=new Error(r).stack;void 0!==t&&(this.stack=this.toString()+"\n"+t.replace(/^Error(:[^\n]*)?\n/,""))}));return t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},t})(Error,"UnboundTypeError");var Hr,Vr={a:(r,e,t)=>{throw new k(r).init(e,t),r},k:r=>{var e=D[r];delete D[r];var t=e.rawConstructor,n=e.rawDestructor,a=e.fields,o=a.map((r=>r.getterReturnType)).concat(a.map((r=>r.setterArgumentType)));q([r],o,(r=>{var o={};return a.forEach(((e,t)=>{var n=e.fieldName,i=r[t],u=e.getter,s=e.getterContext,l=r[t+a.length],c=e.setter,f=e.setterContext;o[n]={read:r=>i.fromWireType(u(s,r)),write:(r,e)=>{var t=[];c(f,r,l.toWireType(t,e)),x(t)}}})),[{name:e.name,fromWireType:r=>{var e={};for(var t in o)e[t]=o[t].read(r);return n(r),e},toWireType:(r,e)=>{for(var a in o)if(!(a in e))throw new TypeError(`Missing field: "${a}"`);var i=t();for(a in o)o[a].write(i,e[a]);return null!==r&&r.push(n,i),i},argPackAdvance:8,readValueFromPointer:I,destructorFunction:n}]}))},z:(r,e,t,n,a)=>{},w:(r,e,t,n)=>{L(r,{name:e=G(e),fromWireType:function(r){return!!r},toWireType:function(r,e){return e?t:n},argPackAdvance:8,readValueFromPointer:function(r){return this.fromWireType(h[r])},destructorFunction:null})},t:(r,e,t)=>{r=G(r),q([],[e],(e=>(e=e[0],a[r]=e.fromWireType(t),[])))},M:or,r:(r,e,t,n)=>{function a(){}e=G(e),a.values={},L(r,{name:e,constructor:a,fromWireType:function(r){return this.constructor.values[r]},toWireType:(r,e)=>e.value,argPackAdvance:8,readValueFromPointer:sr(e,t,n),destructorFunction:null}),ur(e,a)},j:(r,e,t)=>{var n=fr(r,"enum");e=G(e);var a=n.constructor,o=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:lr(`${n.name}_${e}`,(function(){}))}});a.values[t]=o,a[e]=o},v:(r,e,t)=>{L(r,{name:e=G(e),fromWireType:r=>r,toWireType:(r,e)=>e,argPackAdvance:8,readValueFromPointer:dr(e,t),destructorFunction:null})},e:(r,e,t,n,a,o,i)=>{var u=((r,e)=>{for(var t=[],n=0;n<r;n++)t.push(y[e+4*n>>2]);return t})(e,t);r=(r=>{const e=(r=r.trim()).indexOf("(");return-1!==e?r.substr(0,e):r})(r=G(r)),a=vr(n,a),ur(r,(function(){((r,e)=>{var t=[],n={};throw e.forEach((function r(e){n[e]||B[e]||(z[e]?z[e].forEach(r):(t.push(e),n[e]=!0))})),new K(`${r}: `+t.map(cr).join([", "]))})(`Cannot call ${r} due to unbound types`,u)}),e-1),q([],u,(t=>{var n=[t[0],null].concat(t.slice(1));return hr(r,function(r,e,t,n,a){var o=e.length;o<2&&J("argTypes array size mismatch! Must at least get return value and 'this' types!"),e[1];var i=function(r){for(var e=1;e<r.length;++e)if(null!==r[e]&&void 0===r[e].destructorFunction)return!0;return!1}(e),u="void"!==e[0].name,s=o-2,l=new Array(s),c=[],f=[];return lr(r,(function(...t){t.length!==s&&J(`function ${r} called with ${t.length} arguments, expected ${s}`),f.length=0,c.length=1,c[0]=a;for(var o=0;o<s;++o)l[o]=e[o+2].toWireType(f,t[o]),c.push(l[o]);return function(r){if(i)x(f);else for(var t=2;t<e.length;t++){var n=1===t?void 0:l[t-2];null!==e[t].destructorFunction&&e[t].destructorFunction(n)}if(u)return e[0].fromWireType(r)}(n(...c))}))}(r,n,0,a,o),e-1),[]}))},m:(r,e,t,n,a)=>{e=G(e);var o=r=>r;if(0===n){var i=32-8*t;o=r=>r<<i>>>i}var u=e.includes("unsigned");L(r,{name:e,fromWireType:o,toWireType:u?function(r,e){return this.name,e>>>0}:function(r,e){return this.name,e},argPackAdvance:8,readValueFromPointer:yr(e,t,0!==n),destructorFunction:null})},f:(r,e,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][e];function a(r){var e=y[r>>2],t=y[r+4>>2];return new n(d.buffer,t,e)}L(r,{name:t=G(t),fromWireType:a,argPackAdvance:8,readValueFromPointer:a},{ignoreDuplicateRegistrations:!0})},L:(r,e)=>{or(r)},u:(r,e)=>{var t="std::string"===(e=G(e));L(r,{name:e,fromWireType(r){var e,n=y[r>>2],a=r+4;if(t)for(var o=a,i=0;i<=n;++i){var u=a+i;if(i==n||0==h[u]){var s=br(o,u-o);void 0===e?e=s:(e+=String.fromCharCode(0),e+=s),o=u+1}}else{var l=new Array(n);for(i=0;i<n;++i)l[i]=String.fromCharCode(h[a+i]);e=l.join("")}return qr(r),e},toWireType(r,e){var n;e instanceof ArrayBuffer&&(e=new Uint8Array(e));var a="string"==typeof e;a||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int8Array||J("Cannot pass non-string to std::string"),n=t&&a?wr(e):e.length;var o=Nr(4+n+1),i=o+4;if(y[o>>2]=n,t&&a)((r,e,t)=>{gr(r,h,e,t)})(e,i,n+1);else if(a)for(var u=0;u<n;++u){var s=e.charCodeAt(u);s>255&&(qr(i),J("String has UTF-16 code units that do not fit in 8 bits")),h[i+u]=s}else for(u=0;u<n;++u)h[i+u]=e[u];return null!==r&&r.push(qr,o),o},argPackAdvance:8,readValueFromPointer:I,destructorFunction(r){qr(r)}})},s:(r,e,t)=>{var n,a,o,i;t=G(t),2===e?(n=Tr,a=Cr,i=Pr,o=r=>p[r>>1]):4===e&&(n=Fr,a=Wr,i=Er,o=r=>y[r>>2]),L(r,{name:t,fromWireType:r=>{for(var t,a=y[r>>2],i=r+4,u=0;u<=a;++u){var s=r+4+u*e;if(u==a||0==o(s)){var l=n(i,s-i);void 0===t?t=l:(t+=String.fromCharCode(0),t+=l),i=s+e}}return qr(r),t},toWireType:(r,n)=>{"string"!=typeof n&&J(`Cannot pass non-string to C++ string type ${t}`);var o=i(n),u=Nr(4+o+e);return y[u>>2]=o/e,a(n,u+4,o+e),null!==r&&r.push(qr,u),u},argPackAdvance:8,readValueFromPointer:I,destructorFunction(r){qr(r)}})},l:(r,e,t,n,a,o)=>{D[r]={name:G(e),rawConstructor:vr(t,n),rawDestructor:vr(a,o),fields:[]}},c:(r,e,t,n,a,o,i,u,s,l)=>{D[r].fields.push({fieldName:G(e),getterReturnType:t,getter:vr(n,a),getterContext:o,setterArgumentType:i,setter:vr(u,s),setterContext:l})},x:(r,e)=>{L(r,{isVoid:!0,name:e=G(e),argPackAdvance:0,fromWireType:()=>{},toWireType:(r,e)=>{}})},F:()=>1,J:(r,e,t)=>h.copyWithin(r,e,e+t),g:(r,e,t)=>(r=tr(r),e=fr(e,"emval::as"),Sr(e,t,r)),y:(r,e,t,n)=>(r=Or[r])(null,e=tr(e),t,n),p:(r,e,t,n,a)=>(r=Or[r])(e=tr(e),e[t=Mr(t)],n,a),b:er,n:(r,e,t)=>{var n=((r,e)=>{for(var t=new Array(r),n=0;n<r;++n)t[n]=fr(y[e+4*n>>2],"parameter "+n);return t})(r,e),a=n.shift();r--;var o=new Array(r),i=`methodCaller<(${n.map((r=>r.name)).join(", ")}) => ${a.name}>`;return(r=>{var e=Or.length;return Or.push(r),e})(lr(i,((e,i,u,s)=>{for(var l=0,c=0;c<r;++c)o[c]=n[c].readValueFromPointer(s+l),l+=n[c].argPackAdvance;var f=1===t?Rr(i,o):i.apply(e,o);return Sr(a,u,f)})))},h:(r,e)=>(r=tr(r),e=tr(e),nr(r[e])),q:()=>nr([]),K:r=>{r=tr(r);for(var e=new Array(r.length),t=0;t<r.length;t++)e[t]=r[t];return nr(e)},o:r=>nr(Mr(r)),d:r=>{var e=tr(r);x(e),er(r)},i:(r,e)=>{var t=(r=fr(r,"_emval_take_value")).readValueFromPointer(e);return nr(t)},E:()=>{S("")},G:()=>Date.now(),A:()=>2147483648,I:Q,H:r=>{var e=h.length,t=2147483648;if((r>>>=0)>t)return!1;for(var n=(r,e)=>r+(e-r%e)%e,a=1;a<=4;a*=2){var o=e*(1+.2/a);o=Math.min(o,r+100663296);var i=Math.min(t,n(Math.max(r,o),65536));if(jr(i))return!0}return!1},C:(r,e)=>{var t=0;return Dr().forEach(((n,a)=>{var o=e+t;y[r+4*a>>2]=o,((r,e)=>{for(var t=0;t<r.length;++t)d[e++]=r.charCodeAt(t);d[e]=0})(n,o),t+=n.length+1})),0},D:(r,e)=>{var t=Dr();y[r>>2]=t.length;var n=0;return t.forEach((r=>n+=r.length+1)),y[e>>2]=n,0},B:(r,e,t,n,a)=>((r,e,t,n)=>{var a=y[n+40>>2],o={tm_sec:v[n>>2],tm_min:v[n+4>>2],tm_hour:v[n+8>>2],tm_mday:v[n+12>>2],tm_mon:v[n+16>>2],tm_year:v[n+20>>2],tm_wday:v[n+24>>2],tm_yday:v[n+28>>2],tm_isdst:v[n+32>>2],tm_gmtoff:v[n+36>>2],tm_zone:a?br(a):""},i=br(t),u={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var s in u)i=i.replace(new RegExp(s,"g"),u[s]);var l=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],c=["January","February","March","April","May","June","July","August","September","October","November","December"];function f(r,e,t){for(var n="number"==typeof r?r.toString():r||"";n.length<e;)n=t[0]+n;return n}function d(r,e){return f(r,e,"0")}function h(r,e){function t(r){return r<0?-1:r>0?1:0}var n;return 0===(n=t(r.getFullYear()-e.getFullYear()))&&0===(n=t(r.getMonth()-e.getMonth()))&&(n=t(r.getDate()-e.getDate())),n}function m(r){switch(r.getDay()){case 0:return new Date(r.getFullYear()-1,11,29);case 1:return r;case 2:return new Date(r.getFullYear(),0,3);case 3:return new Date(r.getFullYear(),0,2);case 4:return new Date(r.getFullYear(),0,1);case 5:return new Date(r.getFullYear()-1,11,31);case 6:return new Date(r.getFullYear()-1,11,30)}}function p(r){var e=((r,e)=>{for(var t=new Date(r.getTime());e>0;){var n=xr(t.getFullYear()),a=t.getMonth(),o=(n?Ir:Ur)[a];if(!(e>o-t.getDate()))return t.setDate(t.getDate()+e),t;e-=o-t.getDate()+1,t.setDate(1),a<11?t.setMonth(a+1):(t.setMonth(0),t.setFullYear(t.getFullYear()+1))}return t})(new Date(r.tm_year+1900,0,1),r.tm_yday),t=new Date(e.getFullYear(),0,4),n=new Date(e.getFullYear()+1,0,4),a=m(t),o=m(n);return h(a,e)<=0?h(o,e)<=0?e.getFullYear()+1:e.getFullYear():e.getFullYear()-1}var g={"%a":r=>l[r.tm_wday].substring(0,3),"%A":r=>l[r.tm_wday],"%b":r=>c[r.tm_mon].substring(0,3),"%B":r=>c[r.tm_mon],"%C":r=>d((r.tm_year+1900)/100|0,2),"%d":r=>d(r.tm_mday,2),"%e":r=>f(r.tm_mday,2," "),"%g":r=>p(r).toString().substring(2),"%G":p,"%H":r=>d(r.tm_hour,2),"%I":r=>{var e=r.tm_hour;return 0==e?e=12:e>12&&(e-=12),d(e,2)},"%j":r=>d(r.tm_mday+((r,e)=>{for(var t=0,n=0;n<=e;t+=r[n++]);return t})(xr(r.tm_year+1900)?Ir:Ur,r.tm_mon-1),3),"%m":r=>d(r.tm_mon+1,2),"%M":r=>d(r.tm_min,2),"%n":()=>"\n","%p":r=>r.tm_hour>=0&&r.tm_hour<12?"AM":"PM","%S":r=>d(r.tm_sec,2),"%t":()=>"\t","%u":r=>r.tm_wday||7,"%U":r=>{var e=r.tm_yday+7-r.tm_wday;return d(Math.floor(e/7),2)},"%V":r=>{var e=Math.floor((r.tm_yday+7-(r.tm_wday+6)%7)/7);if((r.tm_wday+371-r.tm_yday-2)%7<=2&&e++,e){if(53==e){var t=(r.tm_wday+371-r.tm_yday)%7;4==t||3==t&&xr(r.tm_year)||(e=1)}}else{e=52;var n=(r.tm_wday+7-r.tm_yday-1)%7;(4==n||5==n&&xr(r.tm_year%400-1))&&e++}return d(e,2)},"%w":r=>r.tm_wday,"%W":r=>{var e=r.tm_yday+7-(r.tm_wday+6)%7;return d(Math.floor(e/7),2)},"%y":r=>(r.tm_year+1900).toString().substring(2),"%Y":r=>r.tm_year+1900,"%z":r=>{var e=r.tm_gmtoff,t=e>=0;return e=(e=Math.abs(e)/60)/60*100+e%60,(t?"+":"-")+String("0000"+e).slice(-4)},"%Z":r=>r.tm_zone,"%%":()=>"%"};for(var s in i=i.replace(/%%/g,"\0\0"),g)i.includes(s)&&(i=i.replace(new RegExp(s,"g"),g[s](o)));var w=function(r){var e=wr(r)+1,t=new Array(e);return gr(r,t,0,t.length),t}(i=i.replace(/\0\0/g,"%"));return w.length>e?0:(Yr(w,r),w.length-1)})(r,e,t,n)},Br=function(){var r={a:Vr};function e(r,e){return Br=r.exports,c=Br.N,b(),X=Br.Q,function(r){T.unshift(r)}(Br.O),function(){if(W--,a.monitorRunDependencies?.(W),0==W&&E){var r=E;E=null,r()}}(),Br}if(W++,a.monitorRunDependencies?.(W),a.instantiateWasm)try{return a.instantiateWasm(r,e)}catch(r){f(`Module.instantiateWasm callback failed with error: ${r}`),n(r)}return function(r,e,t,n){return r||"function"!=typeof WebAssembly.instantiateStreaming||$(e)||"function"!=typeof fetch?R(e,t,n):fetch(e,{credentials:"same-origin"}).then((r=>WebAssembly.instantiateStreaming(r,t).then(n,(function(r){return f(`wasm streaming compile failed: ${r}`),f("falling back to ArrayBuffer instantiation"),R(e,t,n)}))))}(l,O,r,(function(r){e(r.instance)})).catch(n),{}}(),zr=r=>(zr=Br.P)(r),Nr=a._malloc=r=>(Nr=a._malloc=Br.R)(r),qr=a._free=r=>(qr=a._free=Br.S)(r),Gr=r=>(Gr=Br.T)(r);function Jr(){function r(){Hr||(Hr=!0,a.calledRun=!0,_||(j(T),t(a),a.onRuntimeInitialized&&a.onRuntimeInitialized(),function(){if(a.postRun)for("function"==typeof a.postRun&&(a.postRun=[a.postRun]);a.postRun.length;)F(a.postRun.shift());j(C)}()))}W>0||(function(){if(a.preRun)for("function"==typeof a.preRun&&(a.preRun=[a.preRun]);a.preRun.length;)P(a.preRun.shift());j(A)}(),W>0||(a.setStatus?(a.setStatus("Running..."),setTimeout((function(){setTimeout((function(){a.setStatus("")}),1),r()}),1)):r()))}if(a.dynCall_viijii=(r,e,t,n,o,i,u)=>(a.dynCall_viijii=Br.U)(r,e,t,n,o,i,u),a.dynCall_iiiiij=(r,e,t,n,o,i,u)=>(a.dynCall_iiiiij=Br.V)(r,e,t,n,o,i,u),a.dynCall_iiiiijj=(r,e,t,n,o,i,u,s,l)=>(a.dynCall_iiiiijj=Br.W)(r,e,t,n,o,i,u,s,l),a.dynCall_iiiiiijj=(r,e,t,n,o,i,u,s,l,c)=>(a.dynCall_iiiiiijj=Br.X)(r,e,t,n,o,i,u,s,l,c),E=function r(){Hr||Jr(),Hr||(E=r)},a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);a.preInit.length>0;)a.preInit.pop()();return Jr(),o},r.exports=t),o.exports;var r,e,t}()),u=Object.freeze(Object.defineProperty({__proto__:null,default:i},Symbol.toStringTag,{value:"Module"}))}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9159],{76061:(e,t,n)=>{n.d(t,{G:()=>o,S:()=>r});class o{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}class r extends o{constructor(e){super(),this.m_iGeom=-1,this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const 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}}},24988:(e,t,n)=>{n.d(t,{Hh:()=>u,fz:()=>c,g7:()=>m,s1:()=>s,zo:()=>a});var o=n(76061),r=n(83290);let i;function s(){return!!i&&(0,r.i)()}async function u(){if(!s()){const[e,t]=await Promise.all([Promise.all([n.e(9192),n.e(7444)]).then(n.bind(n,37444)),n.e(9192).then(n.bind(n,9192)).then((e=>e.a8)).then((({injectPe:e})=>e)),(0,r.l)()]);i=new e.OperatorGeodesicBuffer,t(r.p)}}function m(e,t,n,o,r){return i.execute(e,t,n,o,r,!1,null)}function a(e,t,n,r,s,u){const m=i.executeMany(new o.S(e),t,n,r,s,!1,u,null);return Array.from(m)}function c(){return i.supportsCurves()}},49159:(e,t,n)=>{n.r(t),n.d(t,{execute:()=>f,executeMany:()=>h,isLoaded:()=>c,load:()=>l});var o=n(4576),r=n(83047),i=n(24988),s=n(5808);let u,m,a;function c(){return!!u&&(0,i.s1)()}async function l(){if(!c()){const[e]=await Promise.all([Promise.all([n.e(9192),n.e(3299)]).then(n.bind(n,83299)),(0,i.Hh)()]);u=e.fromGeometries,m=e.fromGeometry,a=e.toGeometry}}function f(e,t,n={}){let{curveType:o="geodesic",maxDeviation:u=NaN,unit:c}=n;c&&(t=(0,r.oU)(t,c,"meters"),u&&(u=(0,r.oU)(u,c,"meters")));const l=m(e),f=l.getSpatialReference();return a((0,i.g7)(l.getGeometry(),f,s.O[o],t,u),f)}function h(e,t,n={}){let{curveType:m="geodesic",maxDeviation:c=NaN,union:l=!1,unit:f}=n;f&&(t=t.map((e=>(0,r.oU)(e,f,"meters"))),c&&(c=(0,r.oU)(c,f,"meters")));const[h,d]=u(e);return(0,i.zo)(h,d,s.O[m],t,c,l).map((e=>a(e,d))).filter(o.Ru)}},5808:(e,t,n)=>{n.d(t,{O:()=>o});const o={geodesic:0,loxodrome:1,"great-elliptic":2,"normal-section":3,"shape-preserving":4}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1088,7066],{37066:(e,t,s)=>{s.r(t),s.d(t,{OperatorGeodeticArea:()=>w});var i=s(55537),n=s(35368),a=s(5247),_=s(9192),r=s(32406),h=s(11878),o=s(31139),m=s(47591),u=s(90237);s(77592),s(22194),s(76061),s(31088),Symbol.dispose;class c{constructor(e,t,s,i,a=0,r=4){this.m_ptDistFrom=new h.P,this.m_segStartPt=new h.P,this.m_segEndPt=new h.P,this.m_geodeticLength=new _.o,this.m_az12=new _.o,this.m_minGeodeticDist=new _.o,this.m_segStartPt3d=new n.O,this.m_segEndPt3d=new n.O,this.m_sr=i,this.m_distCurveType=a,this.m_segCurveType=r,this.m_inputGCS=this.m_sr.getGCS(),this.m_rpu=this.m_inputGCS.getUnit().getUnitToBaseFactor(),this.m_bIsPannablePcs=2===this.m_sr.getCoordinateSystemType()&&this.m_sr.isPannable();const o=(0,_.s)();this.m_inputGCS.querySpheroidData(o),this.m_a=o.majorSemiAxis,this.m_eSquared=o.e2,this.setPointDistFrom(e),this.setSegmentEndPoints(t,s)}setSegmentEndPoints(e,t){this.m_segStartPt.assign(e),this.m_segEndPt.assign(t),this.m_bIsPannablePcs||(this.m_segStartPt.mulThis(this.m_rpu),this.m_segEndPt.mulThis(this.m_rpu)),2===this.m_segCurveType&&(this.m_segStartPt3d.assign((0,_.y)(this.m_a,this.m_eSquared,this.m_segStartPt)),this.m_segEndPt3d.assign((0,_.y)(this.m_a,this.m_eSquared,this.m_segEndPt))),this.calculateAndUpdateSegmentLength()}setPointDistFrom(e){this.m_ptDistFrom.assign(e),this.m_ptDistFrom.scale(this.m_rpu)}setSegmentCurveType(e){this.m_segCurveType=e}setDistanceCurveType(e){this.m_distCurveType=e}makeFunctor(){return e=>{let t;switch(this.m_segCurveType){case 0:case 1:case 3:{const s={stack:[],error:void 0,hasError:!1};try{const i=(0,u.b)(s,new _.o,!1),n=(0,u.b)(s,new _.o,!1);_.q.geodeticCoordinate(this.m_a,this.m_eSquared,this.m_segStartPt.x,this.m_segStartPt.y,this.m_geodeticLength.val*e,this.m_az12.val,i,n,this.m_segCurveType),t=new h.P(i.val,n.val);break}catch(e){s.error=e,s.hasError=!0}finally{(0,u.c)(s)}}case 2:{const s=n.O.lerp(this.m_segStartPt3d,this.m_segEndPt3d,e);t=(0,_.E)(this.m_a,this.m_eSquared,s);break}case 4:t=h.P.lerp(this.m_segStartPt,this.m_segEndPt,e),this.m_bIsPannablePcs&&((0,_.A)(this.m_sr,0,[t],1),t.mulThis(this.m_rpu));break;default:(0,i.b)("Invalid curve type")}return _.q.geodeticDistance(this.m_a,this.m_eSquared,this.m_ptDistFrom.x,this.m_ptDistFrom.y,t.x,t.y,this.m_minGeodeticDist,null,null,this.m_distCurveType),this.m_minGeodeticDist.val}}calculateAndUpdateSegmentLength(){switch(this.m_segCurveType){case 0:case 2:case 1:case 3:_.q.geodeticDistance(this.m_a,this.m_eSquared,this.m_segStartPt.x,this.m_segStartPt.y,this.m_segEndPt.x,this.m_segEndPt.y,this.m_geodeticLength,this.m_az12,null,this.m_segCurveType);break;case 4:this.m_geodeticLength.val=h.P.distance(this.m_segStartPt,this.m_segEndPt);break;default:(0,i.b)("Invalid curve type")}}[Symbol.dispose](){this.m_geodeticLength[Symbol.dispose](),this.m_az12[Symbol.dispose](),this.m_minGeodeticDist[Symbol.dispose]()}}Symbol.dispose;class l{constructor(e,t,s,i,n=100){this.m_startPt=e.clone(),this.m_endPt=t.clone(),this.m_cE2=i,this.m_cE=Math.sqrt(this.m_cE2),this.m_c1By2e=1/(2*this.m_cE),this.m_cRpu=s.getGCS().getUnit().getUnitToBaseFactor(),this.isPcs=2===s.getCoordinateSystemType(),this.PEProjcs=s.getPECoordSys(),this.m_points=new Array(2*n)}setSegmentEndPoints(e,t){this.m_startPt.assign(e),this.m_endPt.assign(t)}makeFunctor(){return e=>{const t=[0,0];t[0]=this.m_startPt.x*(1-e)+this.m_endPt.x*e,t[1]=this.m_startPt.y*(1-e)+this.m_endPt.y*e,this.isPcs&&_.F.projToGeogCenter(this.PEProjcs,1,t,0);const s=Math.sin(t[1]*this.m_cRpu);return 0===this.m_cE2?s:-Math.log((1-this.m_cE*s)/(1+this.m_cE*s))*this.m_c1By2e+s/(1-this.m_cE2*s*s)}}}function p(e,t,s,i,r){const h=(new a.O).execute(e,t,0,0,r);let o;o=i?(new _.g).execute(h,i,r):h;const m=1===s.getUnit().getUnitToBaseFactor()?Math.PI/180:1,u=new n.a;o.queryEnvelope(u);const c=new n.a,l=new n.a,p=new n.a;c.setCoords({xmin:u.xmin,ymin:75*m,xmax:u.xmax,ymax:90*m}),l.setCoords({xmin:u.xmin,ymin:-60*m,xmax:u.xmax,ymax:75*m}),p.setCoords({xmin:u.xmin,ymin:-90*m,xmax:u.xmax,ymax:-60*m}),c.inflateCoords(.01*c.width(),0),l.inflateCoords(.01*l.width(),0),p.inflateCoords(.01*p.width(),0);let d=0;return d+=g(o,c,s,r),d+=g(o,l,s,r),d+=g(o,p,s,r),d}function g(e,t,s,a){const r=(new o.O).execute(e,t,s,a);if(null!==r&&!r.isEmpty()){const e=new n.a;r.queryEnvelope(e);const{first:t,second:o}=function(e,t){const s=function(e,t){const s=e.getUnit().getUnitToBaseFactor(),n=t.getCenter();n.scale(180*s/Math.PI);const a=new h.P;a.x=0,a.y=0;let r=0;if(0===r){n.y>45?(a.y=h.q,r=0):n.y<-45?(a.y=-h.q,r=1):n.x>=45&&n.x<135?(a.x=h.q,r=2):n.x>=135||n.x<-135?(a.x=h.q,r=3):n.x<-45&&n.x>=-135?(a.x=-h.q,r=4):(a.x=0,r=5);const e=s*Math.sqrt((0,h.e)(t.xmin-t.xmax)+(0,h.e)(t.ymin-t.ymax)),i=a.clone(),_=t.getCenter();if(_.scale(s),r<2&&(i.x=_.x),h.P.distance(i,_)+.5*e>h.q)return null}const o=d[r];if(null!==o&&o.getGCS().equalHorizontal(e))return o;const m=e.getText(),u=a.x,c=a.y;let l=0,p=-1;6!==r?p=_.Q.PE_PRJ_LAMBERT_AZIMUTHAL_EQAREA:((0,i.g)(false),l=0,p=_.Q.PE_PRJ_CYLINDRICAL_EQAREA);const g=(0,_.$)("EqualAreaPCS");let P;p===_.Q.PE_PRJ_LAMBERT_AZIMUTHAL_EQAREA?P=`PROJCS["${g}",${m},PROJECTION["Lambert_Azimuthal_Equal_Area"],PARAMETER["False_Easting",0],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",${u}],PARAMETER["Latitude_of_Origin",${c}],UNIT["Meter",1.0]]`:p===_.Q.PE_PRJ_CYLINDRICAL_EQAREA?P=`PROJCS["${g}",${m},PROJECTION["Cylindrical_Equal_Area"],PARAMETER["False_Easting",0],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",${u}],PARAMETER["Standard_Parallel_1",${l}],PARAMETER["Latitude_of_Origin",${c}],UNIT["Meter",1.0]]`:(0,i.b)("getEqualAreaPcsFixed");const y=(0,_.b)(P);return d[r]&&d[r].destroy(),d[r]=y,y}(e,t);if(null!==s)return(0,h.d)(s,!1);const n=e.getText(),a=e.getUnit().getUnitToBaseFactor(),r=(t.xmin+t.width()/2)*a,o=(t.ymin+t.height()/2)*a;let m=0,u=0,c=-1;t.ymin*a>=75*Math.PI/180||t.ymax*a<=-60*Math.PI/180?c=_.Q.PE_PRJ_LAMBERT_AZIMUTHAL_EQAREA:t.ymin>0||t.ymax<0?(m=(t.ymin+1/3*t.height())*a,u=(t.ymin+2/3*t.height())*a,c=_.Q.PE_PRJ_ALBERS):(m=(t.ymin+2/3*t.height())*a,c=_.Q.PE_PRJ_CYLINDRICAL_EQAREA);const l=(0,_.$)("EqualAreaPCS");let p;return c===_.Q.PE_PRJ_LAMBERT_AZIMUTHAL_EQAREA?p=`PROJCS["${l}",${n},PROJECTION["Lambert_Azimuthal_Equal_Area"],PARAMETER["False_Easting",0],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",${r}],PARAMETER["Latitude_of_Origin",${o}],UNIT["Meter",1.0]]`:c===_.Q.PE_PRJ_ALBERS?p=`PROJCS["${l}",${n},PROJECTION["Albers"],PARAMETER["False_Easting",0],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",${r}],PARAMETER["Standard_Parallel_1",${m}],PARAMETER["Standard_Parallel_2",${u}],PARAMETER["Latitude_of_Origin",${o}],UNIT["Meter",1.0]]`:c===_.Q.PE_PRJ_CYLINDRICAL_EQAREA?p=`PROJCS["${l}",${n},PROJECTION["Cylindrical_Equal_Area"],PARAMETER["False_Easting",0],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",${r}],PARAMETER["Standard_Parallel_1",${m}],PARAMETER["Latitude_of_Origin",${o}],UNIT["Meter",1.0]]`:(0,i.b)("getEqualAreaPCSInstance"),(0,h.d)((0,_.b)(p),!0)}(s,e),m=(0,_.e)(s,t,null),u=(new _.g).execute(r,m,a).calculateArea2D();return o&&t.destroy(),u}return 0}const d=[null,null,null,null,null,null,null];class P{getOperatorType(){return 10314}supportsCurves(){return!0}accelerateGeometry(e,t,s){return!1}canAccelerateGeometry(e){return!1}execute(e,t,s){if(0===t.getCoordinateSystemType()&&(0,i.t)(""),e.isEmpty()||e.getDimension()<2)return 0;if((0,i.c)(e),e.getGeometryType()===i.G.enumEnvelope){const i=new n.h;return i.addEnvelope(e,!1),this.execute(i,t,s)}let u=e;e.getDescription().getAttributeCount()>1&&(u=e.clone(),u.dropAllAttributes());const c=(new a.O).execute(u,0,t.getTolerance(0),0,s);let g=null;const d=t.getGCS();d!==t&&(g=(0,_.e)(t,d));let P=(new r.O).execute(c,t,!1,s);return P.isEmpty()?0:(P===e&&(P=e.clone()),t.isPannable()?function(e,t,s){const i=new n.a;e.queryEnvelope(i);const a=(0,n.b)(t,i,!0).total(),r=t.getPannableExtent();r.xmin=i.xmin-10*a,r.xmax=i.xmax+10*a;const m=(new o.O).execute(e,r,t,s).getImpl().querySegmentIterator();m.stripAttributes();const u=(0,_.s)();t.querySpheroidData(u);const c=u.e2,p=0===c?2:1,g=new h.P(0,0),d=new h.P(0,0),P=new h.K(0),y=new l(g,d,t,c,100);for(;m.nextPath();)for(;m.hasNextSegment();){const e=m.nextSegment();g.assign(e.getStartXY()),d.assign(e.getEndXY()),y.setSegmentEndPoints(g,d);const t=(0,n.ab)(6,0,1,1e-12,1e-15,y.makeFunctor());P.pe((d.x-g.x)*t)}const E=u.majorSemiAxis;return p*E*E*(1-c)*Math.PI*P.getResult()/t.getPannableExtent().width()}(P,t,s):function(e,t,s,i,n){const a=function(e,t,s){const i=e.calculateLength2D(),n=(new m.O).execute(e,t,s)/25e3,a=i/e.getSegmentCount()*2;let _=Math.min(a,i/n);return 0===_&&(_=1),(0,h.d)(_,i/_)}(e,t,n);let _=p(e,a.first,s,i,n),r=1,o=0,u=0;do{if(r++,a.first*=.5,a.first<50*t.getTolerance(0))return _;a.second*=2,u=p(e,a.first,s,i,n),o=Math.abs(u-_),_=u}while(Math.abs(_)>1&&o>1e-8*Math.abs(_)&&(a.second<65e3&&r<8||r<4));return u}(P,t,d,g,s))}}function y(){return{m_p_PCS:new h.P,m_factor:Number.NaN,setValues:E,assign:S}}function E(e,t){this.m_factor=e,this.m_p_PCS.assign(t)}function S(e){this.m_factor=e.m_factor,this.m_p_PCS.assign(e.m_p_PCS)}class f{constructor(e,t,s,i){this.m_ptStart=new n.O,this.m_ptEnd=new n.O,this.m_ptStart.assign(t),this.m_ptEnd.assign(s),this.m_deltaX=this.m_ptEnd.x-this.m_ptStart.x,this.m_deltaY=this.m_ptEnd.y-this.m_ptStart.y,this.m_e=Math.sqrt(e),this.m_e2=e,this.m_c1MinusE2=1-e;const a=Math.sin(i);let _;_=0===this.m_e2?2*a:a*((0,h.y)(this.m_e*a)+1/(1-this.m_e2*a*a)),this.m_baseA=_}setSegmentEndPoints(e,t){this.m_ptStart.assign(e),this.m_ptEnd.assign(t),this.m_deltaX=this.m_ptEnd.x-this.m_ptStart.x,this.m_deltaY=this.m_ptEnd.y-this.m_ptStart.y}makeFunctor(){return e=>{const t=1-e,s=t*this.m_ptStart.x+e*this.m_ptEnd.x,i=t*this.m_ptStart.y+e*this.m_ptEnd.y,n=t*this.m_ptStart.z+e*this.m_ptEnd.z,a=s*s+i*i,_=n/Math.sqrt(n*n+this.m_c1MinusE2*this.m_c1MinusE2*a);let r;return r=0===this.m_e2?2*_:_*((0,h.y)(this.m_e*_)+1/(1-this.m_e2*_*_)),(this.m_deltaY*s-this.m_deltaX*i)/a*(r-this.m_baseA)}}}function x(){return{sin_phi:Number.NaN,one_p_sin_phi:Number.NaN,one_m_sin_phi:Number.NaN,one_m_e_2_sin_2_phi:Number.NaN,sin_half_phi_pf:Number.NaN,sin_half_phi_pz:Number.NaN,sin_half_asin_e_sin_phi_pf:Number.NaN,sin_half_asin_e_sin_phi_pz:Number.NaN,atanh_sin_phi:Number.NaN,atanh_esin_phi:Number.NaN,make_negative:!1,initialize:A,changeSign:C,assign:T,clone:R}}function A(e,t,s,i){const n=.5*e;this.sin_phi=Math.sin(e);const a=t*this.sin_phi,_=.5*Math.asin(a);this.one_p_sin_phi=1+this.sin_phi,this.one_m_sin_phi=1-this.sin_phi,this.one_m_e_2_sin_2_phi=(1+a)*(1-a),this.sin_half_phi_pf=Math.sin(n+s),this.sin_half_phi_pz=Math.sin(n+i),this.sin_half_asin_e_sin_phi_pf=Math.sin(_+s),this.sin_half_asin_e_sin_phi_pz=Math.sin(_+i),this.atanh_sin_phi=Math.log(this.sin_half_phi_pf/this.sin_half_phi_pz),this.atanh_esin_phi=Math.log(this.sin_half_asin_e_sin_phi_pf/this.sin_half_asin_e_sin_phi_pz)}function C(){this.sin_phi=-this.sin_phi;let e=this.one_p_sin_phi;this.one_p_sin_phi=this.one_m_sin_phi,this.one_m_sin_phi=e,e=this.sin_half_phi_pf,this.sin_half_phi_pf=this.sin_half_phi_pz,this.sin_half_phi_pz=e,e=this.sin_half_asin_e_sin_phi_pf,this.sin_half_asin_e_sin_phi_pf=this.sin_half_asin_e_sin_phi_pz,this.sin_half_asin_e_sin_phi_pz=e,this.atanh_sin_phi=-this.atanh_sin_phi,this.atanh_esin_phi=-this.atanh_esin_phi}function T(e){this.sin_phi=e.sin_phi,this.one_p_sin_phi=e.one_p_sin_phi,this.one_m_sin_phi=e.one_m_sin_phi,this.one_m_e_2_sin_2_phi=e.one_m_e_2_sin_2_phi,this.sin_half_phi_pf=e.sin_half_phi_pf,this.sin_half_phi_pz=e.sin_half_phi_pz,this.sin_half_asin_e_sin_phi_pf=e.sin_half_asin_e_sin_phi_pf,this.sin_half_asin_e_sin_phi_pz=e.sin_half_asin_e_sin_phi_pz,this.atanh_sin_phi=e.atanh_sin_phi,this.atanh_esin_phi=e.atanh_esin_phi,this.make_negative=e.make_negative}function R(){return{...this}}class M{constructor(e,t,s){this.m_transformPCS2GCS=null,this.m_scaleToRadians=new h.T,this.m_scaleToDegrees=new h.T,this.m_progressTracker=s,(0,i.g)(4!==t),this.m_curveType=t,this.m_inputSR=e,e&&0!==e.getCoordinateSystemType()||(0,i.t)(""),this.m_inputGCS=e.getGCS(),this.m_a=0,this.m_eSquared=0,this.m_b=0,this.m_rpu=0}executePolygonGeodeticArea(e){let t,s=e.clone();if(s.dropAllAttributes(),e.hasNonLinearSegments()&&(s=(new a.O).execute(s,0,this.m_inputSR.getTolerance(0),0,this.m_progressTracker)),this.m_inputSR.isPannable()){const e=new n.a;s.queryEnvelope(e);const t=this.m_inputSR.getPannableExtent();if(!t.containsEnvelope(e)){const i=t.getCenterX()-e.getCenterX(),n=new h.T;n.setShiftCoords(i,0),s.applyTransformation(n),e.move(i,0);const a=new h.E;t.queryIntervalX(a);const r=new h.E;e.queryIntervalX(r),s=a.contains(r)?(0,_.h)(s,this.m_inputSR):(new _.g).foldInto360RangeGeodetic(s,this.m_inputSR,this.m_curveType)}}if(this.m_transformPCS2GCS?(s=(new r.O).execute(s,this.m_inputSR,!1,this.m_progressTracker),t=s.createInstance(),(0,_.I)(this.m_transformPCS2GCS,s,t,this.m_progressTracker)||(t=(new _.g).execute(s,this.m_transformPCS2GCS,this.m_progressTracker))):t=(new r.O).execute(s,this.m_inputGCS,!1,this.m_progressTracker),t.isEmpty())return 0;if(1===this.m_curveType){const e=(0,_.s)();return this.m_inputGCS.querySpheroidData(e),this.m_a=e.majorSemiAxis,this.m_eSquared=e.e2,this.loxodromeArea(t)}const i=t.getImpl();this.m_rpu=this.m_inputGCS.getUnit().getUnitToBaseFactor(),this.m_scaleToRadians.setScale(this.m_rpu),i.applyTransformation(this.m_scaleToRadians),this.m_scaleToDegrees=this.m_scaleToRadians,this.m_scaleToDegrees.invertThis();const o=(0,_.s)();if(this.m_inputGCS.querySpheroidData(o),this.m_a=o.majorSemiAxis,this.m_b=o.minorSemiAxis,this.m_eSquared=o.e2,2===this.m_curveType)return this.executeClippedPolygonGreatEllipticArea(t);{const e={stack:[],error:void 0,hasError:!1};try{const s=_.a0.unit(9101),i=this.m_inputGCS.getPECoordSys(),n=(0,u.b)(e,i.cloneAlterUnits(s),!1);let a,r,h=this.executeClippedPolygonGeodeticArea(t,n,0),o=0;do{o++,a=this.executeClippedPolygonGeodeticArea(t,n,o),r=Math.abs(a-h),h=a}while(Math.abs(a)>1&&r>1e-8*Math.abs(a)&&o<7);return a}catch(t){e.error=t,e.hasError=!0}finally{(0,u.c)(e)}}}executeClippedPolygonGeodeticArea(e,t,s){const i={stack:[],error:void 0,hasError:!1};try{const a=new n.a;e.queryEnvelope(a);const r=(0,u.b)(i,this.getEqualAreaPCSInstance(t,a),!1),o=e.clone();(0,_.a1)(r,o);const m=50,c=o.getImpl().getAttributeStreamRef(0),l=e.getImpl().getAttributeStreamRef(0),p=(0,u.b)(i,new _.o,!1),g=(0,u.b)(i,new _.o,!1),d=40,P=[0,0],E=(0,h.t)(y,d),S=(0,h.a)(d,-1),f=y(),x=y();let A,C;const T=r;let R=o.calculateArea2D();const M=new h.K(0),w=.5*Math.PI,b=1e-10*Math.abs(R)+1e-6,q=e.getPathCount();let N,v,O,I;const G=new h.P,L=new h.P,D=new h.P,z=new h.P,k=new h.P,F=new h.P;let $,U;for(v=e.getPathStart(0),N=0;N<q;N++,v=O)for(O=e.getPathEnd(N),c.queryPoint2D(O-1<<1,D),l.queryPoint2D(O-1<<1,G),Math.abs(G.y)>w&&(G.y=(0,h.c)(w,G.y)),I=v;I<O;I++,D.assign(z),G.assign(L)){if(c.queryPoint2D(I<<1,z),l.queryPoint2D(I<<1,L),Math.abs(L.y)>w&&(L.y=(0,h.c)(w,L.y)),$=h.P.distance(D,z),$<m||0===G.y&&0===L.y)continue;_.q.geodeticDistance(this.m_a,this.m_eSquared,G.x,G.y,L.x,L.y,p,g,null,this.m_curveType);const e=p.val,t=g.val;for(f.setValues(0,D),x.setValues(1,z),C=s,E[0].assign(x),S[0]=s,A=0;A>=0;){U=.5*(f.m_factor+x.m_factor),_.q.geodeticCoordinate(this.m_a,this.m_eSquared,G.x,G.y,e*U,t,p,g,this.m_curveType),k.x=p.val,k.y=g.val,P[0]=k.x,P[1]=k.y,_.F.geogToProj(T,1,P),F.x=P[0],F.y=P[1];const s=.5*-F.offset(f.m_p_PCS,x.m_p_PCS)*h.P.distance(f.m_p_PCS,x.m_p_PCS);if(M.pe(s),Math.abs(s)>b||Math.abs(s)>0&&C>0)x.setValues(U,F),A++,E[A].assign(x),Math.abs(s)<=b?(C--,S[A-1]=C,S[A]=C):(C=S[A-1],S[A]=C);else{if(A<=0)break;f.assign(x),A--,x.assign(E[A]),C=S[A]}}}return R+=M.getResult(),Math.abs(R)}catch(e){i.error=e,i.hasError=!0}finally{(0,u.c)(i)}}executeClippedPolygonGreatEllipticArea(e){const t=[],s=[],i=new h.P,a=new h.P,r=(0,_.y)(1,this.m_eSquared,new h.P(0,.5*Math.PI)),o=new h.K(0),m=new h.K(0),u=new h.K(0),c=new n.O,l=new n.O,p=new n.a;e.queryLooseEnvelope(p);let g=0;p.containsCoords(p.xmin,0)||(g=Math.abs(p.ymin)<Math.abs(p.ymax)?p.ymin:p.ymax);const d=new f(this.m_eSquared,c,l,g),P=this.m_a*this.m_a,y=e.getImpl().querySegmentIterator();for(y.stripAttributes();y.nextPath();)for(;y.hasNextSegment();){const e=y.nextSegment();i.assign(e.getStartXY()),a.assign(e.getEndXY()),a.x-i.x>Math.PI?i.x+=2*Math.PI:a.x-i.x<-Math.PI&&(a.x+=2*Math.PI),this.splitSegmentCrossingItegralThreshold(e,t,s);for(let e of t)c.assign((0,_.y)(this.m_a,this.m_eSquared,e.getStartXY())),l.assign((0,_.y)(this.m_a,this.m_eSquared,e.getEndXY())),d.setSegmentEndPoints(c,l),this.adaptiveIntegrationWithRomberg(d,o);for(let e of s){let t=e.getStartXY(),s=e.getEndXY(),i=g;t.y<0&&(s=(0,h.b)(t,t=s),t.y=-t.y,s.y=-s.y,i=-i);const a=(0,_.y)(1,this.m_eSquared,t),o=(0,_.y)(1,this.m_eSquared,s),c=Math.min(t.y,s.y),l=(0,_.a2)(this.m_eSquared,t.x,s.x,i,c);m.pe(l);const p=Math.abs((0,_.a2)(this.m_eSquared,t.x,s.x,c,h.q)),d=new n.O;d.setSub(a,r);const y=new n.O;y.setSub(o,r);const E=new n.O;E.setCrossProductVector(d,y);let S=P*(p-.5*E.length());S=(0,h.c)(S,s.x-t.x),u.pe(S)}t.length=0,s.length=0}return u.getResult()+P*(.5*(1-this.m_eSquared)*o.getResult()+m.getResult())}getEqualAreaPCSInstance(e,t){const s=t.getCenterX();let i,n;const a=t.height();let r,o;(r=t.ymin>45*Math.PI/180||t.ymax<45*-Math.PI/180)?i=(0,h.c)(.5*Math.PI,t.getCenterY()):(i=t.getCenterY(),n=t.ymin+a*(2/3));const m=(0,_.$)("EqualAreaPCS"),u=e.toString();return o=r?_.a0.fromString(_.Q.PE_TYPE_PROJCS,`PROJCS["${m}", ${u}, PROJECTION["Lambert_Azimuthal_Equal_Area"],PARAMETER["False_Easting",0],PARAMETER["False_Northing", 0],PARAMETER["Central_Meridian", ${s}], PARAMETER["Latitude_of_Origin", ${i}], UNIT["Meter",1.0]]`):_.a0.fromString(_.Q.PE_TYPE_PROJCS,`PROJCS["${m}", ${u}, PROJECTION["Cylindrical_Equal_Area"],PARAMETER["False_Easting", 0],PARAMETER["False_Northing", 0],PARAMETER["Central_Meridian", ${s}],PARAMETER["Standard_Parallel_1", ${n}],PARAMETER["Latitude_of_Origin", ${i}],UNIT["Meter",1.0]]`),o}splitSegmentCrossingItegralThreshold(e,t,s){const i=100,a=400,r=(0,_.y)(this.m_a,this.m_eSquared,new h.P(0,h.q)),o=(0,_.y)(this.m_a,this.m_eSquared,new h.P(0,-h.q)),m=this.splitSegmentPassingThroughPole(e);for(let e of m){const m=e.getStartXY(),u=e.getEndXY(),c=(0,_.y)(this.m_a,this.m_eSquared,m),l=(0,_.y)(this.m_a,this.m_eSquared,u),p=new h.P,g=new n.O;let d=n.O.sqrDistance(r,c),P=n.O.sqrDistance(c,l);if(d<=i){if(!(P>a)){s.push(new n.L({start:m,end:u}));continue}g.assign(l.sub(c)),g.normalizeThis(),g.assign(c.add(g.mul(20))),p.assign((0,_.E)(this.m_a,this.m_eSquared,g)),s.push(new n.L({start:m,end:p})),m.assign(p)}if(c.assign((0,_.y)(this.m_a,this.m_eSquared,m)),d=n.O.sqrDistance(r,l),P=n.O.sqrDistance(c,l),d<=i){if(!(P>a)){s.push(new n.L({start:m,end:u}));continue}g.assign(l.sub(c)),g.normalizeThis(),g.assign(l.sub(g.mul(20))),p.assign((0,_.E)(this.m_a,this.m_eSquared,g)),s.push(new n.L({start:p,end:u})),u.assign(p)}if(c.assign((0,_.y)(this.m_a,this.m_eSquared,m)),l.assign((0,_.y)(this.m_a,this.m_eSquared,u)),d=n.O.sqrDistance(o,c),P=n.O.sqrDistance(c,l),d<=i){if(!(P>a)){s.push(new n.L({start:m,end:u}));continue}g.assign(l.sub(c)),g.normalizeThis(),g.assign(c.add(g.mul(20))),p.assign((0,_.E)(this.m_a,this.m_eSquared,g)),s.push(new n.L({start:m,end:p})),m.assign(p)}if(c.assign((0,_.y)(this.m_a,this.m_eSquared,m)),l.assign((0,_.y)(this.m_a,this.m_eSquared,u)),d=n.O.sqrDistance(o,l),P=n.O.sqrDistance(c,l),d<=i){if(!(P>a)){s.push(new n.L({start:m,end:u}));continue}g.assign(l.sub(c)),g.normalizeThis(),g.assign(l.sub(g.mul(20))),p.assign((0,_.E)(this.m_a,this.m_eSquared,g)),s.push(new n.L({start:p,end:u})),u.assign(p)}t.push(new n.L({start:m,end:u}))}}splitSegmentPassingThroughPole(e){const t={stack:[],error:void 0,hasError:!1};try{const s=[],i=new n.O,a=new n.O,r=new n.O,o=new h.P,m=20,l=3.124139361,p=10,g=e.getStartXY(),d=e.getEndXY(),P=(0,u.b)(t,new _.o,!1);if(_.q.geodeticDistance(this.m_a,this.m_eSquared,g.x,g.y,d.x,d.y,P,null,null,2),Math.abs(d.x-g.x)>l&&P.val>m){const e=new c(new h.P(0,90),g.divide(this.m_rpu),d.divide(this.m_rpu),this.m_inputGCS,2,2);let t=(0,_.B)(e.makeFunctor(),0,1,1e-10);if(t.second<=p&&t.first>0&&t.first<1)return i.assign((0,_.y)(this.m_a,this.m_eSquared,g)),a.assign((0,_.y)(this.m_a,this.m_eSquared,d)),(0,h.x)(i,a,t.first,r),o.assign((0,_.E)(this.m_a,this.m_eSquared,r)),s.push(new n.L({start:g,end:o})),s.push(new n.L({start:o,end:d})),s;if(e.setPointDistFrom(new h.P(0,-90)),t=(0,_.B)(e.makeFunctor(),0,1,1e-10),t.second<=p&&t.first>0&&t.first<1)return i.assign((0,_.y)(this.m_a,this.m_eSquared,g)),a.assign((0,_.y)(this.m_a,this.m_eSquared,d)),(0,h.x)(i,a,t.first,r),o.assign((0,_.E)(this.m_a,this.m_eSquared,r)),s.push(new n.L({start:g,end:o})),s.push(new n.L({start:o,end:d})),s}return s.push(new n.L({start:g,end:d})),s}catch(e){t.error=e,t.hasError=!0}finally{(0,u.c)(t)}}adaptiveIntegrationWithRomberg(e,t){const s=e.makeFunctor();let i=0,a=1,_=s(i),r=s(a);const h=1e-17,o=1e-14;let m=(i+a)/2,u=s(m),c=Math.abs(u-_),l=Math.abs(r-u),p=0;for(;p++<32&&(c/l<.1||l/c<.1);)c<l?(t.pe((0,n.ab)(5,i,m,o,h,s)),i=m,_=u):(t.pe((0,n.ab)(5,m,a,o,h,s)),a=m,r=u),m=(i+a)/2,u=Math.abs(s(m)),c=Math.abs(u-_),l=Math.abs(r-u);t.pe((0,n.ab)(5,i,a,o,h,s))}loxodromeAreaHemi(e,t,s,i,n){const a=s.clone(),_=n.clone();let r,o,m,u,c,l,p,g,d,P,y,E,S,f,x,A;return a.make_negative&&a.changeSign(),_.make_negative&&_.changeSign(),y=i-t,1===Math.abs(a.sin_phi)||1===Math.abs(_.sin_phi)?e.half_qp*y:a.sin_phi===_.sin_phi?(P=.5*e.one_m_e_2*a.sin_phi*(1/a.one_m_e_2_sin_2_phi+(0,h.y)(e.e*a.sin_phi))*y,P):(x=Math.log(_.sin_half_phi_pf*a.sin_half_phi_pz/(_.sin_half_phi_pz*a.sin_half_phi_pf)),A=Math.log(_.sin_half_asin_e_sin_phi_pf*a.sin_half_asin_e_sin_phi_pz/(_.sin_half_asin_e_sin_phi_pz*a.sin_half_asin_e_sin_phi_pf)),1===this.m_eSquared?(c=0,r=.5*(x+_.sin_phi/_.one_m_e_2_sin_2_phi-a.sin_phi/a.one_m_e_2_sin_2_phi),o=0):(c=-2*e.atanh_e_over_e*(Math.log(_.one_p_sin_phi/a.one_p_sin_phi)-e.e*A),r=(x-e.e*A)/e.one_m_e_2,o=(Math.log(_.one_m_e_2_sin_2_phi/a.one_m_e_2_sin_2_phi)+c/e.atanh_e_over_e)/e.one_m_e_2),m=-A*(a.atanh_esin_phi+_.atanh_esin_phi),u=1/a.one_m_e_2_sin_2_phi-1/_.one_m_e_2_sin_2_phi,l=(0,h.z)(_.one_m_sin_phi/e.one_p_e,e.e)-(0,h.z)(a.one_m_sin_phi/e.one_p_e,e.e),p=(0,h.z)(_.one_p_sin_phi/e.one_p_e,e.e)-(0,h.z)(a.one_p_sin_phi/e.one_p_e,e.e),g=(0,h.z)(a.one_m_sin_phi/-e.one_m_e,e.e)-(0,h.z)(_.one_m_sin_phi/-e.one_m_e,e.e),d=(0,h.z)(a.one_p_sin_phi/-e.one_m_e,e.e)-(0,h.z)(_.one_p_sin_phi/-e.one_m_e,e.e),P=.25/r*(o+m+u+c+.5*(l+p+g+d)),P+=e.half_qp,E=.5*e.one_m_e_2*a.sin_phi*(1/a.one_m_e_2_sin_2_phi+(0,h.y)(e.e*a.sin_phi)),S=.5*e.one_m_e_2*_.sin_phi*(1/_.one_m_e_2_sin_2_phi+(0,h.y)(e.e*_.sin_phi)),S<E&&(f=E,E=S,S=f),P<E&&(P=E),P>S&&(P=S),P*=y,P)}loxodromeArea(e){const t=Math.PI/180;let s=0;const i={e:Number.NaN,one_p_e:Number.NaN,one_m_e:Number.NaN,one_m_e_2:Number.NaN,atanh_e_over_e:Number.NaN,half_qp:Number.NaN,f:Number.NaN,z:Number.NaN},n=x(),a=x();i.e=Math.sqrt(this.m_eSquared),i.one_p_e=1+i.e,i.one_m_e=1-i.e,i.one_m_e_2=1-this.m_eSquared,i.atanh_e_over_e=(0,h.y)(i.e),this.m_eSquared>=1?i.half_qp=1:i.half_qp=.5*(1+i.atanh_e_over_e*i.one_m_e_2),i.f=.25*Math.PI,i.z=.75*Math.PI,a.initialize(0,i.e,i.f,i.z);const _=e.getPathCount(),r=new h.P,o=new h.P,m=e.getImpl().getAttributeStreamRef(0);for(let h=0;h<_;h++){const _=e.getPathStart(h),u=e.getPathEnd(h);if(!(u-_<=1)){m.queryPoint2D(2*(u-1),r);for(let e=_;e<u;e++){m.queryPoint2D(2*e,o);const h=r.y*t,u=o.y*t;if(e===_?(n.initialize(h,i.e,i.f,i.z),n.make_negative=!1):n.assign(a),a.initialize(u,i.e,i.f,i.z),a.make_negative=!1,r.y*o.y<0){if(r.y>=90&&o.y<=-90||o.y>=90&&r.y<=-90)return Number.NaN;const e=x();e.initialize(0,i.e,i.f,i.z),e.make_negative=!1;const _=n.atanh_sin_phi-i.e*n.atanh_esin_phi,m=a.atanh_sin_phi-i.e*a.atanh_esin_phi,u=(m*r.x-_*o.x)/(m-_);h<0?(n.make_negative=!0,s-=this.loxodromeAreaHemi(i,r.x*t,n,u*t,e),n.make_negative=!1,s+=this.loxodromeAreaHemi(i,u*t,e,o.x*t,a)):(s+=this.loxodromeAreaHemi(i,r.x*t,n,u*t,e),a.make_negative=!0,s-=this.loxodromeAreaHemi(i,u*t,e,o.x*t,a),a.make_negative=!1)}else r.y>=0?s+=this.loxodromeAreaHemi(i,r.x*t,n,o.x*t,a):(n.make_negative=!0,a.make_negative=!0,s-=this.loxodromeAreaHemi(i,r.x*t,n,o.x*t,a),n.make_negative=!1,a.make_negative=!1);r.assign(o)}}}return this.m_a*s*this.m_a}calculate(e){if(e.isEmpty()||e.getDimension()<2)return 0;if(e.getGeometryType()===i.G.enumEnvelope){const t=new n.h;return t.addEnvelope(e,!1),this.calculate(t)}return this.m_inputSR!==this.m_inputGCS&&null===this.m_transformPCS2GCS&&(this.m_transformPCS2GCS=(0,_.e)(this.m_inputSR,this.m_inputGCS,null)),this.executePolygonGeodeticArea(e)}}class w{getOperatorType(){return 10311}supportsCurves(){return!0}accelerateGeometry(e,t,s){return!1}canAccelerateGeometry(e){return!1}execute(e,t,s,n){return(0,i.c)(e),4===s?(new P).execute(e,t,n):new M(t,s,n).calculate(e)}}},31088:(e,t,s)=>{s.r(t),s.d(t,{OperatorGeodeticDensifyByLength:()=>_,OperatorGeodeticDensifyCursor:()=>r});var i=s(76061),n=s(55537),a=s(9192);class _{getOperatorType(){return 10310}supportsCurves(){return!0}accelerateGeometry(e,t,s){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,s,i,n){return new r(e,s,i,t,-1,-1,n)}execute(e,t,s,a,_){const r=new i.S([e]),h=this.executeMany(r,t,s,a,_).next();return h||(0,n.b)("null output"),h}}class r extends i.G{constructor(e,t,s,i,a,_,r){super(),this.m_progressTracker=r,_>0&&(0,n.a)(""),4!==s&&a>0&&(0,n.a)(""),t||(0,n.t)(""),0===t.getCoordinateSystemType()&&(0,n.t)(""),i>0||a>0||(0,n.t)(""),this.m_index=-1,this.m_inputGeoms=e,this.m_spatialReference=t,this.m_curveType=s,this.m_maxLengthMeters=i,this.m_maxDeviationMeters=a,this.m_maxAngle=_}next(){{let e;for(;e=this.m_inputGeoms.next();)return(0,n.c)(e),this.m_index=this.m_inputGeoms.getGeometryID(),this.geodeticDensify(e);return null}}getGeometryID(){return this.m_index}tock(){return!0}getRank(){return 1}geodeticDensify(e){return(0,a.f)(e,this.m_spatialReference,this.m_curveType,this.m_maxLengthMeters,this.m_maxDeviationMeters,this.m_progressTracker)}}},47591:(e,t,s)=>{s.d(t,{O:()=>p});var i=s(55537),n=s(9192),a=s(35368),_=s(11878),r=s(5247),h=s(31139),o=s(32932);function m(){return{m_pGcs:new _.P,m_xyz:new a.O,m_factor:Number.NaN,m_geoLength:Number.NaN,setValues:u,setLength:c,assign:l}}function u(e,t,s,i){this.m_factor=e,this.m_pGcs.assign(t),this.m_xyz.assign(i),this.m_geoLength=s}function c(e){this.m_geoLength=e}function l(e){this.m_pGcs.assign(e.m_pGcs),this.m_xyz.assign(e.m_xyz),this.m_factor=e.m_factor,this.m_geoLength=e.m_geoLength}class p{getOperatorType(){return 10315}supportsCurves(){return!0}accelerateGeometry(e,t,s){return!1}canAccelerateGeometry(e){return!1}_ExecuteShapePreservingLength(e,t,s,i,_){if(e.hasNonLinearSegments()&&(e=(new r.O).execute(e,0,t.getTolerance(0),0,_)),t.isPannable()){let i=90,r=-90;if(1===s.getUnit().getUnitToBaseFactor()&&(i*=Math.PI/180,r*=Math.PI/180),2===t.getCoordinateSystemType()){let e=null;const s=[0,0,0,0];e=t.getPECoordSys(),s[0]=0,s[1]=i,s[2]=0,s[3]=r,n.F.geogToProj(e,2,s),i=s[1],r=s[3]}const o=new a.a;e.queryEnvelope(o),o.ymin=r,o.ymax=i,e=(new h.O).execute(e,o,t,_)}else{const s=t.getPCSHorizon();if((e=(new o.O).execute(e,s,t,_))===s){const t=e.clone();e=t}}return e.isEmpty()?0:this._ExecuteIterativeApproach(e,t,s,i,1,_)}_ExecuteIterativeApproach(e,t,s,r,h,o){const u=(0,n.s)();s.querySpheroidData(u);const c=u.majorSemiAxis,l=u.e2,p=s.getUnit().getUnitToBaseFactor(),P=(0,_.t)(m,40),y=new Array(40),E=m(),S=m();let f;const x=[0,0,0,0],A=t.getPECoordSys(),C=new _.P,T=new _.P,R=new _.P,M=new _.P,w=new _.P;let b=0;const q=e.querySegmentIterator();for(;q.nextPath();)for(;q.hasNextSegment();){const e=q.nextSegment();C.assign(e.getStartXY()),T.assign(e.getEndXY()),2===t.getCoordinateSystemType()?(x[0]=C.x,x[1]=C.y,x[2]=T.x,x[3]=T.y,n.F.projToGeog(A,2,x),R.x=x[0]*p,R.y=x[1]*p,M.x=x[2]*p,M.y=x[3]*p):(R.setCoordsPoint2D(C),M.setCoordsPoint2D(T),R.scale(p),M.scale(p));const s=new a.O,_=new a.O;g(c,l,R,s),g(c,l,M,_);let r=d(c,s,_);E.setValues(0,R,Number.NaN,s),S.setValues(1,M,r,_),f=h,P[0].assign(S),y[0]=h;let o=0;for(;;){o>128&&(0,i.b)("iterations exceeded");const s=.5*(E.m_factor+S.m_factor),_=e.getCoord2D(s);2===t.getCoordinateSystemType()?(x[0]=_.x,x[1]=_.y,n.F.projToGeog(A,1,x),w.x=x[0]*p,w.y=x[1]*p):(w.setCoordsPoint2D(_),w.scale(p)),R.setCoordsPoint2D(E.m_pGcs),M.setCoordsPoint2D(S.m_pGcs);const m=new a.O;g(c,l,w,m);const u=d(c,E.m_xyz,m),C=d(c,S.m_xyz,m);r=S.m_geoLength,Number.isNaN(r)&&(r=d(c,E.m_xyz,S.m_xyz));const T=u+C,q=f===h&&T>=20&&Math.abs(T-r)>1e-8*(r+T);if(o+2<40&&(q||Math.abs(T-r)>0&&f>0))S.setLength(C),P[o].assign(S),S.setValues(s,w,u,m),P[++o].assign(S),q?(f=h,y[o]=h):(f--,y[o-1]=f,y[o]=f);else{if(b+=T,0===o)break;E.assign(S),S.assign(P[--o]),f=y[o]}}}return b}execute(e,t,s){if(t&&0!==t.getCoordinateSystemType()||(0,i.t)(""),e.isEmpty()||e.getDimension()<1)return 0;let _=null;const r=t.getGCS();r!==t&&(_=(0,n.e)(t,r,null));const h=e.getGeometryType();if(h===i.G.enumEnvelope){const i=new a.h;return i.addEnvelope(e,!1),this._ExecuteShapePreservingLength(i,t,r,_,s)}if((0,i.e)(h)){const i=new a.i;return i.addSegment(e,!0),this._ExecuteShapePreservingLength(i,t,r,_,s)}return this._ExecuteShapePreservingLength(e,t,r,_,s)}}function g(e,t,s,i){i.assign((0,n.y)(e,t,s))}function d(e,t,s){const i=e,n=new a.O;n.setSub(t,s);const _=n.length();return 2*i*Math.asin(_/(2*i))}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1414],{85181:(e,t,r)=>{r.d(t,{O:()=>n});var s=r(9192);class n extends s.d{getOperatorType(){return 9}execute(e,t,r,n){return(0,s.r)(e,t,r,32,n)}}},76061:(e,t,r)=>{r.d(t,{G:()=>s,S:()=>n});class s{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}class n extends s{constructor(e){super(),this.m_iGeom=-1,this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const 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}}},46178:(e,t,r)=>{r.r(t),r.d(t,{execute:()=>m});var s=r(85181),n=r(83299);const o=new s.O;function m(e,t){const r=(0,n.fromGeometry)(e);return o.execute(r.getGeometry(),(0,n.fromGeometryToGXGeometry)(t),r.getSpatialReference(),null)}}}]);
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.82
4
+ * v3.0.0-next.87
5
5
  */
6
6
 
7
7
  /*!
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7159,8342],{92288:(e,t,r)=>{r.r(t),r.d(t,{registerFunctions:()=>J});var n=r(92602),o=(r(59456),r(47609)),i=r(66395),s=r(85935),a=r(78878),l=r(80672),c=r(91075),u=r(57251),p=r(28735),f=r(20655),d=r(80812),h=r(78888),m=r(56507),y=r(65864),g=r(2272),v=r(92300),w=r(90237),S=r(25482),A=r(10107),R=(r(44208),r(53966),r(87811),r(40608)),x=r(21325);let _=class extends S.A{constructor(e){super(e),this.geometries=[],this.outSpatialReference=null,this.transformation=null,this.transformForward=null}toJSON(){const e=this.geometries.map((e=>e.toJSON())),t=this.geometries[0],r={};return r.outSR=(0,x.YX)(this.outSpatialReference),r.inSR=(0,x.YX)(t.spatialReference),r.geometries=JSON.stringify({geometryType:(0,y.$B)(t),geometries:e}),this.transformation&&(r.transformation=this.transformation.wkid||JSON.stringify(this.transformation)),null!=this.transformForward&&(r.transformForward=this.transformForward),r}};(0,w._)([(0,A.MZ)()],_.prototype,"geometries",void 0),(0,w._)([(0,A.MZ)({json:{read:{source:"outSR"}}})],_.prototype,"outSpatialReference",void 0),(0,w._)([(0,A.MZ)()],_.prototype,"transformation",void 0),(0,w._)([(0,A.MZ)()],_.prototype,"transformForward",void 0),_=(0,w._)([(0,R.$)("esri.rest.support.ProjectParameters")],_);const P=_,G=(0,m.dp)(P);var b=r(25927),$=r(42538),M=r(40662),N=r(42095),j=r(23150),I=r(16930),O=r(54218);let k=null;async function T(e){const t=n.A.geometryServiceUrl??"";if(!t){(0,u.isLoaded)()||await(0,u.load)();for(const t of e)t.container[t.indexer]=(0,u.project)(t.container[t.indexer],I.A.WGS84);return}const r=e.map((e=>e.container[e.indexer])),o=new P({geometries:r,outSpatialReference:I.A.WGS84}),i=await async function(e,t){t=G(t);const r=(0,g.Dl)(e),n={...r.query,f:"json",...t.toJSON()},o=t.outSpatialReference,i=(0,y.$B)(t.geometries[0]),s=(0,g.jV)(n,void 0);return(0,h.A)(r.path+"/project",s).then((({data:{geometries:e}})=>(0,v.V)(e,i,o)))}(t,o);for(let t=0;t<i.length;t++){const r=e[t];r.container[r.indexer]=i[t]}}async function D(e,t){const n=new d.default({portal:e,id:t});return await n.load(),null===k&&(k=await r.e(1402).then(r.bind(r,71402))),await k.fetchKnowledgeGraph(n.url)}function Z(e,t,r,n,o){if(null===e)return null;if((0,O.Kg)(e)||(0,O.Et)(e))return e;if((0,a.g)(e))return e.toJSDate();if((0,a.g)(e))return e.toJSDate();if((0,a.j)(e))return e.toStorageFormat();if((0,a.k)(e))return e.toStorageString();if((0,a.q)(e)){const i={};for(const s of e.keys())i[s]=Z(e.field(s),t,r,n,o),i[s]instanceof c.A&&o.push({container:i,indexer:s});return i}if((0,O.cy)(e)){const i=e.map((e=>Z(e,t,r,n,o)));for(let e=0;e<i.length;e++)i[e]instanceof c.A&&o.push({container:i,indexer:e});return i}return(0,a.l)(e)?e.spatialReference.isWGS84?e:e.spatialReference.isWebMercator&&t?(0,p.ci)(e):e:void 0}function q(e,t){if(!e)return null;const r={};for(const n in e)r[n]=F(e[n],t);return r}function F(e,t){return null===e?null:(0,O.cy)(e)?e.map((e=>F(e,t))):e instanceof b.A?{graphTypeName:e.typeName,id:e.id,graphType:"entity",properties:q(e.properties,t)}:e instanceof M.A?{graphType:"object",properties:q(e.properties,t)}:e instanceof j.A?{graphTypeName:e.typeName,id:e.id,graphType:"relationship",originId:e.originId??null,destinationId:e.destinationId??null,properties:q(e.properties,t)}:e instanceof N.A?{graphType:"path",path:e.path?e.path.map((e=>F(e,t))):null}:(0,a.l)(e)?function(e,t){if(!e)return e;if(e.spatialReference.isWGS84&&t.spatialReference.isWebMercator)return(0,p.Gh)(e);if(e.spatialReference.equals(t.spatialReference))return e;throw new s.D$(t,s.TX.WrongSpatialReference,null)}(e,t):(0,O.Kg)(e)||(0,O.Et)(e)||(0,O.$P)(e)?e:null}function J(e){"async"===e.mode&&(e.functions.knowledgegraphbyportalitem=function(t,r){return e.standardFunctionAsync(t,r,((e,n,i)=>{if((0,a.B)(i,2,2,t,r),null===i[0])throw new s.D$(t,s.TX.PortalRequired,r);if(i[0]instanceof o.A){const e=(0,a.f)(i[1]);let r;return r=t.services?.portal?t.services.portal:f.A.getDefault(),D((0,l.R)(i[0],r),e)}if(!1===(0,O.Kg)(i[0]))throw new s.D$(t,s.TX.InvalidParameter,r);const c=(0,a.f)(i[0]);return D(t.services?.portal??f.A.getDefault(),c)}))},e.signatures.push({name:"knowledgegraphbyportalitem",min:2,max:2}),e.functions.querygraph=function(t,n){return e.standardFunctionAsync(t,n,(async(e,o,l)=>{(0,a.B)(l,2,4,t,n);const c=l[0];if(!(0,a.r)(c))throw new s.D$(t,s.TX.InvalidParameter,n);const u=l[1];if(!(0,O.Kg)(u))throw new s.D$(t,s.TX.InvalidParameter,n);null===k&&(k=await r.e(1402).then(r.bind(r,71402)));let p=null;const f=(0,a.E)(l[2],null);if(!(f instanceof i.A||null===f))throw new s.D$(t,s.TX.InvalidParameter,n);if(f){let e=[];p=Z(f,!0,!1,t,e),e=e.filter((e=>!e.container[e.indexer].spatialReference.isWGS84)),e.length>0&&await T(e)}const d=new $.A({openCypherQuery:u,bindParameters:p});(c?.serviceDefinition?.currentVersion??11.3)>11.2&&(d.outputSpatialReference=t.spatialReference);const h=(await k.executeQueryStreaming(c,d)).resultRowsStream.getReader(),m=[];try{for(;;){const{done:e,value:r}=await h.read();if(e)break;if((0,O.cy)(r))for(const e of r)m.push(F(e,t));else{const e=[];for(const n of r)e.push(F(r[n],t));m.push(e)}}}catch(e){throw e}return i.A.convertJsonToArcade(m,(0,a.H)(t),!1,!0)}))},e.signatures.push({name:"querygraph",min:2,max:4}))}},80672:(e,t,r)=>{r.d(t,{R:()=>o});var n=r(20655);function o(e,t){return null===e?t:new n.A({url:e.field("url")})}},97159:(e,t,r)=>{r.d(t,{M:()=>v,a:()=>y,b:()=>S,e:()=>h,f:()=>s,i:()=>f,p:()=>d,r:()=>l,t:()=>a,w:()=>c});var n=r(70333),o=r(84952),i=r(39131);function s(e,t){const r=t?.url?.path;if(e&&r&&(e=(0,o.s2)(e,r,{preserveProtocolRelative:!0}),t.portalItem&&t.readResourcePaths)){const r=(0,o.V1)(e,t.portalItem.itemUrl);null!=r&&p.test(r)&&t.readResourcePaths.push(t.portalItem.resourceFromPath(r).path)}return(e=m(e,t?.portal))&&u.test(e)?y(e):e}function a(e,t,r=v.YES){if(null==(e=e&&u.test(e)?g(e):e))return e;!(0,o.oP)(e)&&t?.blockedRelativeUrls&&t.blockedRelativeUrls.push(e);let n=(0,o.s2)(e);if(t){const r=t.verifyItemRelativeUrls?.rootPath||t.url?.path;if(r){const i=m(r,t.portal),s=m(n,t.portal);n=(0,o.V1)(s,i,i),null!=n&&n!==s&&n!==e&&t.verifyItemRelativeUrls&&t.verifyItemRelativeUrls.writtenUrls.push(n)}}return n=h(n,t?.portal),(0,o.oP)(n)&&(n=(0,o.S8)(n)),t?.resources&&t?.portalItem&&!(0,o.oP)(n)&&!(0,o.DB)(n)&&r===v.YES&&t.resources.toKeep.push({resource:t.portalItem.resourceFromPath(n),compress:!1}),n}function l(e,t,r){return s(e,r)}function c(e,t,r,n){const o=a(e,n);void 0!==o&&(t[r]=o)}const u=/\/items\/([^/]+)\/resources\/(.*)/,p=/^\.\/resources\//;function f(e){const t=e?.match(u)??null;return t?.[1]??null}function d(e){const t=e?.match(u)??null;if(null==t)return null;const r=t[2],n=r.lastIndexOf("/");if(-1===n){const{path:e,extension:t}=(0,o.xw)(r);return{prefix:null,filename:e,extension:t}}const{path:i,extension:s}=(0,o.xw)(r.slice(n+1));return{prefix:r.slice(0,n),filename:i,extension:s}}function h(e,t){return t&&!t.isPortal&&t.urlKey&&t.customBaseUrl?(0,o.T1)(e,`${t.urlKey}.${t.customBaseUrl}`,t.portalHostname):e}function m(e,t){if(!t||t.isPortal||!t.urlKey||!t.customBaseUrl)return e;const r=`${t.urlKey}.${t.customBaseUrl}`,n=(0,o.Xq)();return(0,o.FX)(n,`${n.scheme}://${r}`)?(0,o.T1)(e,t.portalHostname,r):(0,o.T1)(e,r,t.portalHostname)}function y(e){if(!e)return e||null;let t=e;return t&&n.id&&!n.id.findCredential(t)&&(t=(0,i.qG)(t),t=t.replace(/^https?:\/\/www\.arcgis\.com/,"https://cdn.arcgis.com"),t=t.replace(/^https?:\/\/devext\.arcgis\.com/,"https://cdndev.arcgis.com"),t=t.replace(/^https?:\/\/qaext\.arcgis\.com/,"https://cdnqa.arcgis.com")),t}function g(e){if(!e)return e||null;let t=e;return t=t.replace(/^https?:\/\/cdn\.arcgis\.com/,"https://www.arcgis.com"),t=t.replace(/^https?:\/\/cdndev\.arcgis\.com/,"https://devext.arcgis.com"),t=t.replace(/^https?:\/\/cdnqa\.arcgis\.com/,"https://qaext.arcgis.com"),t&&n.id&&!n.id.findCredential(t)&&(t=(0,i.qG)(t)),t}var v,w;(w=v||(v={}))[w.YES=0]="YES",w[w.NO=1]="NO";const S=Object.freeze(Object.defineProperty({__proto__:null,get MarkKeep(){return v},ensureMainOnlineDomain:h,fromCDNUrl:g,fromJSON:s,itemIdFromResourceUrl:f,prefixAndFilenameFromResourceUrl:d,read:l,toCDNUrl:y,toJSON:a,write:c},Symbol.toStringTag,{value:"Module"}))},92300:(e,t,r)=>{r.d(t,{V:()=>i,X:()=>o});var n=r(65864);function o(e){return{geometryType:(0,n.$B)(e[0]),geometries:e.map((e=>e.toJSON()))}}function i(e,t,r){const o=(0,n.xD)(t);return e.map((e=>{const t=o.fromJSON(e);return t.spatialReference=r,t}))}},25927:(e,t,r)=>{r.d(t,{A:()=>c});var n=r(90237),o=(r(59456),r(10107)),i=(r(44208),r(53966),r(87811),r(40608)),s=r(54238),a=r(86738);let l=class extends s.A{constructor(e){super(e),this.layoutGeometry=null}};(0,n._)([(0,o.MZ)({type:a.A,json:{write:!0}})],l.prototype,"layoutGeometry",void 0),l=(0,n._)([(0,i.$)("esri.rest.knowledgeGraph.Entity")],l);const c=l},54238:(e,t,r)=>{r.d(t,{A:()=>l});var n=r(90237),o=r(10107),i=(r(44208),r(53966),r(87811),r(40608)),s=r(77901);let a=class extends s.A{constructor(e){super(e),this.typeName=null,this.id=null}};(0,n._)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"typeName",void 0),(0,n._)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"id",void 0),a=(0,n._)([(0,i.$)("esri.rest.knowledgeGraph.GraphNamedObject")],a);const l=a},77901:(e,t,r)=>{r.d(t,{A:()=>l});var n=r(90237),o=r(25482),i=r(10107),s=(r(44208),r(53966),r(87811),r(40608));let a=class extends o.A{constructor(e){super(e),this.properties=null}};(0,n._)([(0,i.MZ)({json:{write:!0}})],a.prototype,"properties",void 0),a=(0,n._)([(0,s.$)("esri.rest.knowledgeGraph.GraphObject")],a);const l=a},42538:(e,t,r)=>{r.d(t,{A:()=>u});var n=r(90237),o=r(10107),i=(r(44208),r(53966),r(87811),r(40608)),s=r(69622);let a=class extends s.A{constructor(e){super(e),this.openCypherQuery=""}};(0,n._)([(0,o.MZ)()],a.prototype,"openCypherQuery",void 0),a=(0,n._)([(0,i.$)("esri.rest.knowledgeGraph.GraphQuery")],a);const l=a;let c=class extends l{constructor(e){super(e),this.bindParameters=null,this.bindGeometryQuantizationParameters=null,this.outputQuantizationParameters=null,this.outputSpatialReference=null,this.provenanceBehavior=null}};(0,n._)([(0,o.MZ)()],c.prototype,"bindParameters",void 0),(0,n._)([(0,o.MZ)()],c.prototype,"bindGeometryQuantizationParameters",void 0),(0,n._)([(0,o.MZ)()],c.prototype,"outputQuantizationParameters",void 0),(0,n._)([(0,o.MZ)()],c.prototype,"outputSpatialReference",void 0),(0,n._)([(0,o.MZ)()],c.prototype,"provenanceBehavior",void 0),c=(0,n._)([(0,i.$)("esri.rest.knowledgeGraph.GraphQueryStreaming")],c);const u=c},40662:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(90237),o=(r(53966),r(44208),r(87811),r(49186),r(40608)),i=r(77901);let s=class extends i.A{constructor(e){super(e)}};s=(0,n._)([(0,o.$)("esri.rest.knowledgeGraph.ObjectValue")],s);const a=s},42095:(e,t,r)=>{r.d(t,{A:()=>c});var n=r(90237),o=r(25482),i=r(10107),s=(r(44208),r(53966),r(87811),r(40608)),a=r(77901);let l=class extends o.A{constructor(e){super(e),this.path=null}};(0,n._)([(0,i.MZ)({type:[a.A],json:{write:!0}})],l.prototype,"path",void 0),l=(0,n._)([(0,s.$)("esri.rest.knowledgeGraph.Path")],l);const c=l},23150:(e,t,r)=>{r.d(t,{A:()=>c});var n=r(90237),o=(r(59456),r(10107)),i=(r(44208),r(53966),r(87811),r(40608)),s=r(54238),a=r(82799);let l=class extends s.A{constructor(e){super(e),this.originId=null,this.destinationId=null,this.layoutGeometry=null}};(0,n._)([(0,o.MZ)({type:String,json:{write:!0}})],l.prototype,"originId",void 0),(0,n._)([(0,o.MZ)({type:String,json:{write:!0}})],l.prototype,"destinationId",void 0),(0,n._)([(0,o.MZ)({type:a.A,json:{write:!0}})],l.prototype,"layoutGeometry",void 0),l=(0,n._)([(0,i.$)("esri.rest.knowledgeGraph.Relationship")],l);const c=l},2272:(e,t,r)=>{r.d(t,{Dl:()=>s,jV:()=>i,lF:()=>a}),r(92602),r(70333);var n=r(4718),o=r(84952);function i(e,t){return t?{...t,query:{...e??{},...t.query}}:{query:e}}function s(e){return"string"==typeof e?(0,o.An)(e):(0,n.o8)(e)}function a(e,t,r){const n={};for(const o in e){if("declaredClass"===o)continue;const i=e[o];if(null!=i&&"function"!=typeof i)if(Array.isArray(i))n[o]=i.map((e=>a(e)));else if("object"==typeof i)if(i.toJSON){const e=i.toJSON(r?.[o]);n[o]=t?e:JSON.stringify(e)}else n[o]=t?i:JSON.stringify(i);else n[o]=i}return n}r(926)}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7159,8342],{92288:(e,t,r)=>{r.r(t),r.d(t,{registerFunctions:()=>J});var n=r(92602),o=(r(59456),r(47609)),i=r(66395),s=r(85935),a=r(78878),l=r(80672),c=r(91075),u=r(57251),p=r(28735),f=r(20655),d=r(80812),h=r(78888),m=r(56507),y=r(65864),g=r(2272),v=r(92300),w=r(90237),S=r(25482),A=r(10107),R=(r(44208),r(53966),r(87811),r(40608)),x=r(21325);let _=class extends S.A{constructor(e){super(e),this.geometries=[],this.outSpatialReference=null,this.transformation=null,this.transformForward=null}toJSON(){const e=this.geometries.map((e=>e.toJSON())),t=this.geometries[0],r={};return r.outSR=(0,x.YX)(this.outSpatialReference),r.inSR=(0,x.YX)(t.spatialReference),r.geometries=JSON.stringify({geometryType:(0,y.$B)(t),geometries:e}),this.transformation&&(r.transformation=this.transformation.wkid||JSON.stringify(this.transformation)),null!=this.transformForward&&(r.transformForward=this.transformForward),r}};(0,w._)([(0,A.MZ)()],_.prototype,"geometries",void 0),(0,w._)([(0,A.MZ)({json:{read:{source:"outSR"}}})],_.prototype,"outSpatialReference",void 0),(0,w._)([(0,A.MZ)()],_.prototype,"transformation",void 0),(0,w._)([(0,A.MZ)()],_.prototype,"transformForward",void 0),_=(0,w._)([(0,R.$)("esri.rest.support.ProjectParameters")],_);const G=_,P=(0,m.dp)(G);var b=r(25927),$=r(42538),M=r(40662),N=r(42095),j=r(23150),I=r(16930),O=r(54218);let k=null;async function T(e){const t=n.A.geometryServiceUrl??"";if(!t){(0,u.isLoaded)()||await(0,u.load)();for(const t of e)t.container[t.indexer]=(0,u.project)(t.container[t.indexer],I.A.WGS84);return}const r=e.map((e=>e.container[e.indexer])),o=new G({geometries:r,outSpatialReference:I.A.WGS84}),i=await async function(e,t){t=P(t);const r=(0,g.Dl)(e),n={...r.query,f:"json",...t.toJSON()},o=t.outSpatialReference,i=(0,y.$B)(t.geometries[0]),s=(0,g.jV)(n,void 0);return(0,h.A)(r.path+"/project",s).then((({data:{geometries:e}})=>(0,v.V)(e,i,o)))}(t,o);for(let t=0;t<i.length;t++){const r=e[t];r.container[r.indexer]=i[t]}}async function D(e,t){const n=new d.default({portal:e,id:t});return await n.load(),null===k&&(k=await r.e(1402).then(r.bind(r,71402))),await k.fetchKnowledgeGraph(n.url)}function Z(e,t,r,n,o){if(null===e)return null;if((0,O.Kg)(e)||(0,O.Et)(e))return e;if((0,a.g)(e))return e.toJSDate();if((0,a.g)(e))return e.toJSDate();if((0,a.j)(e))return e.toStorageFormat();if((0,a.k)(e))return e.toStorageString();if((0,a.q)(e)){const i={};for(const s of e.keys())i[s]=Z(e.field(s),t,r,n,o),i[s]instanceof c.A&&o.push({container:i,indexer:s});return i}if((0,O.cy)(e)){const i=e.map((e=>Z(e,t,r,n,o)));for(let e=0;e<i.length;e++)i[e]instanceof c.A&&o.push({container:i,indexer:e});return i}return(0,a.l)(e)?e.spatialReference.isWGS84?e:e.spatialReference.isWebMercator&&t?(0,p.ci)(e):e:void 0}function q(e,t){if(!e)return null;const r={};for(const n in e)r[n]=F(e[n],t);return r}function F(e,t){return null===e?null:(0,O.cy)(e)?e.map((e=>F(e,t))):e instanceof b.A?{graphTypeName:e.typeName,id:e.id,graphType:"entity",properties:q(e.properties,t)}:e instanceof M.A?{graphType:"object",properties:q(e.properties,t)}:e instanceof j.A?{graphTypeName:e.typeName,id:e.id,graphType:"relationship",originId:e.originId??null,destinationId:e.destinationId??null,properties:q(e.properties,t)}:e instanceof N.A?{graphType:"path",path:e.path?e.path.map((e=>F(e,t))):null}:(0,a.l)(e)?function(e,t){if(!e)return e;if(e.spatialReference.isWGS84&&t.spatialReference.isWebMercator)return(0,p.Gh)(e);if(e.spatialReference.equals(t.spatialReference))return e;throw new s.D$(t,s.TX.WrongSpatialReference,null)}(e,t):(0,O.Kg)(e)||(0,O.Et)(e)||(0,O.$P)(e)?e:null}function J(e){"async"===e.mode&&(e.functions.knowledgegraphbyportalitem=function(t,r){return e.standardFunctionAsync(t,r,((e,n,i)=>{if((0,a.B)(i,2,2,t,r),null===i[0])throw new s.D$(t,s.TX.PortalRequired,r);if(i[0]instanceof o.A){const e=(0,a.f)(i[1]);let r;return r=t.services?.portal?t.services.portal:f.A.getDefault(),D((0,l.R)(i[0],r),e)}if(!1===(0,O.Kg)(i[0]))throw new s.D$(t,s.TX.InvalidParameter,r);const c=(0,a.f)(i[0]);return D(t.services?.portal??f.A.getDefault(),c)}))},e.signatures.push({name:"knowledgegraphbyportalitem",min:2,max:2}),e.functions.querygraph=function(t,n){return e.standardFunctionAsync(t,n,(async(e,o,l)=>{(0,a.B)(l,2,4,t,n);const c=l[0];if(!(0,a.r)(c))throw new s.D$(t,s.TX.InvalidParameter,n);const u=l[1];if(!(0,O.Kg)(u))throw new s.D$(t,s.TX.InvalidParameter,n);null===k&&(k=await r.e(1402).then(r.bind(r,71402)));let p=null;const f=(0,a.G)(l[2],null);if(!(f instanceof i.A||null===f))throw new s.D$(t,s.TX.InvalidParameter,n);if(f){let e=[];p=Z(f,!0,!1,t,e),e=e.filter((e=>!e.container[e.indexer].spatialReference.isWGS84)),e.length>0&&await T(e)}const d=new $.A({openCypherQuery:u,bindParameters:p});(c?.serviceDefinition?.currentVersion??11.3)>11.2&&(d.outputSpatialReference=t.spatialReference);const h=(await k.executeQueryStreaming(c,d)).resultRowsStream.getReader(),m=[];try{for(;;){const{done:e,value:r}=await h.read();if(e)break;if((0,O.cy)(r))for(const e of r)m.push(F(e,t));else{const e=[];for(const n of r)e.push(F(r[n],t));m.push(e)}}}catch(e){throw e}return i.A.convertJsonToArcade(m,(0,a.H)(t),!1,!0)}))},e.signatures.push({name:"querygraph",min:2,max:4}))}},80672:(e,t,r)=>{r.d(t,{R:()=>o});var n=r(20655);function o(e,t){return null===e?t:new n.A({url:e.field("url")})}},97159:(e,t,r)=>{r.d(t,{M:()=>v,a:()=>y,b:()=>S,e:()=>h,f:()=>s,i:()=>f,p:()=>d,r:()=>l,t:()=>a,w:()=>c});var n=r(70333),o=r(84952),i=r(39131);function s(e,t){const r=t?.url?.path;if(e&&r&&(e=(0,o.s2)(e,r,{preserveProtocolRelative:!0}),t.portalItem&&t.readResourcePaths)){const r=(0,o.V1)(e,t.portalItem.itemUrl);null!=r&&p.test(r)&&t.readResourcePaths.push(t.portalItem.resourceFromPath(r).path)}return(e=m(e,t?.portal))&&u.test(e)?y(e):e}function a(e,t,r=v.YES){if(null==(e=e&&u.test(e)?g(e):e))return e;!(0,o.oP)(e)&&t?.blockedRelativeUrls&&t.blockedRelativeUrls.push(e);let n=(0,o.s2)(e);if(t){const r=t.verifyItemRelativeUrls?.rootPath||t.url?.path;if(r){const i=m(r,t.portal),s=m(n,t.portal);n=(0,o.V1)(s,i,i),null!=n&&n!==s&&n!==e&&t.verifyItemRelativeUrls&&t.verifyItemRelativeUrls.writtenUrls.push(n)}}return n=h(n,t?.portal),(0,o.oP)(n)&&(n=(0,o.S8)(n)),t?.resources&&t?.portalItem&&!(0,o.oP)(n)&&!(0,o.DB)(n)&&r===v.YES&&t.resources.toKeep.push({resource:t.portalItem.resourceFromPath(n),compress:!1}),n}function l(e,t,r){return s(e,r)}function c(e,t,r,n){const o=a(e,n);void 0!==o&&(t[r]=o)}const u=/\/items\/([^/]+)\/resources\/(.*)/,p=/^\.\/resources\//;function f(e){const t=e?.match(u)??null;return t?.[1]??null}function d(e){const t=e?.match(u)??null;if(null==t)return null;const r=t[2],n=r.lastIndexOf("/");if(-1===n){const{path:e,extension:t}=(0,o.xw)(r);return{prefix:null,filename:e,extension:t}}const{path:i,extension:s}=(0,o.xw)(r.slice(n+1));return{prefix:r.slice(0,n),filename:i,extension:s}}function h(e,t){return t&&!t.isPortal&&t.urlKey&&t.customBaseUrl?(0,o.T1)(e,`${t.urlKey}.${t.customBaseUrl}`,t.portalHostname):e}function m(e,t){if(!t||t.isPortal||!t.urlKey||!t.customBaseUrl)return e;const r=`${t.urlKey}.${t.customBaseUrl}`,n=(0,o.Xq)();return(0,o.FX)(n,`${n.scheme}://${r}`)?(0,o.T1)(e,t.portalHostname,r):(0,o.T1)(e,r,t.portalHostname)}function y(e){if(!e)return e||null;let t=e;return t&&n.id&&!n.id.findCredential(t)&&(t=(0,i.qG)(t),t=t.replace(/^https?:\/\/www\.arcgis\.com/,"https://cdn.arcgis.com"),t=t.replace(/^https?:\/\/devext\.arcgis\.com/,"https://cdndev.arcgis.com"),t=t.replace(/^https?:\/\/qaext\.arcgis\.com/,"https://cdnqa.arcgis.com")),t}function g(e){if(!e)return e||null;let t=e;return t=t.replace(/^https?:\/\/cdn\.arcgis\.com/,"https://www.arcgis.com"),t=t.replace(/^https?:\/\/cdndev\.arcgis\.com/,"https://devext.arcgis.com"),t=t.replace(/^https?:\/\/cdnqa\.arcgis\.com/,"https://qaext.arcgis.com"),t&&n.id&&!n.id.findCredential(t)&&(t=(0,i.qG)(t)),t}var v,w;(w=v||(v={}))[w.YES=0]="YES",w[w.NO=1]="NO";const S=Object.freeze(Object.defineProperty({__proto__:null,get MarkKeep(){return v},ensureMainOnlineDomain:h,fromCDNUrl:g,fromJSON:s,itemIdFromResourceUrl:f,prefixAndFilenameFromResourceUrl:d,read:l,toCDNUrl:y,toJSON:a,write:c},Symbol.toStringTag,{value:"Module"}))},92300:(e,t,r)=>{r.d(t,{V:()=>i,X:()=>o});var n=r(65864);function o(e){return{geometryType:(0,n.$B)(e[0]),geometries:e.map((e=>e.toJSON()))}}function i(e,t,r){const o=(0,n.xD)(t);return e.map((e=>{const t=o.fromJSON(e);return t.spatialReference=r,t}))}},25927:(e,t,r)=>{r.d(t,{A:()=>c});var n=r(90237),o=(r(59456),r(10107)),i=(r(44208),r(53966),r(87811),r(40608)),s=r(54238),a=r(86738);let l=class extends s.A{constructor(e){super(e),this.layoutGeometry=null}};(0,n._)([(0,o.MZ)({type:a.A,json:{write:!0}})],l.prototype,"layoutGeometry",void 0),l=(0,n._)([(0,i.$)("esri.rest.knowledgeGraph.Entity")],l);const c=l},54238:(e,t,r)=>{r.d(t,{A:()=>l});var n=r(90237),o=r(10107),i=(r(44208),r(53966),r(87811),r(40608)),s=r(77901);let a=class extends s.A{constructor(e){super(e),this.typeName=null,this.id=null}};(0,n._)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"typeName",void 0),(0,n._)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"id",void 0),a=(0,n._)([(0,i.$)("esri.rest.knowledgeGraph.GraphNamedObject")],a);const l=a},77901:(e,t,r)=>{r.d(t,{A:()=>l});var n=r(90237),o=r(25482),i=r(10107),s=(r(44208),r(53966),r(87811),r(40608));let a=class extends o.A{constructor(e){super(e),this.properties=null}};(0,n._)([(0,i.MZ)({json:{write:!0}})],a.prototype,"properties",void 0),a=(0,n._)([(0,s.$)("esri.rest.knowledgeGraph.GraphObject")],a);const l=a},42538:(e,t,r)=>{r.d(t,{A:()=>u});var n=r(90237),o=r(10107),i=(r(44208),r(53966),r(87811),r(40608)),s=r(69622);let a=class extends s.A{constructor(e){super(e),this.openCypherQuery=""}};(0,n._)([(0,o.MZ)()],a.prototype,"openCypherQuery",void 0),a=(0,n._)([(0,i.$)("esri.rest.knowledgeGraph.GraphQuery")],a);const l=a;let c=class extends l{constructor(e){super(e),this.bindParameters=null,this.bindGeometryQuantizationParameters=null,this.outputQuantizationParameters=null,this.outputSpatialReference=null,this.provenanceBehavior=null}};(0,n._)([(0,o.MZ)()],c.prototype,"bindParameters",void 0),(0,n._)([(0,o.MZ)()],c.prototype,"bindGeometryQuantizationParameters",void 0),(0,n._)([(0,o.MZ)()],c.prototype,"outputQuantizationParameters",void 0),(0,n._)([(0,o.MZ)()],c.prototype,"outputSpatialReference",void 0),(0,n._)([(0,o.MZ)()],c.prototype,"provenanceBehavior",void 0),c=(0,n._)([(0,i.$)("esri.rest.knowledgeGraph.GraphQueryStreaming")],c);const u=c},40662:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(90237),o=(r(53966),r(44208),r(87811),r(49186),r(40608)),i=r(77901);let s=class extends i.A{constructor(e){super(e)}};s=(0,n._)([(0,o.$)("esri.rest.knowledgeGraph.ObjectValue")],s);const a=s},42095:(e,t,r)=>{r.d(t,{A:()=>c});var n=r(90237),o=r(25482),i=r(10107),s=(r(44208),r(53966),r(87811),r(40608)),a=r(77901);let l=class extends o.A{constructor(e){super(e),this.path=null}};(0,n._)([(0,i.MZ)({type:[a.A],json:{write:!0}})],l.prototype,"path",void 0),l=(0,n._)([(0,s.$)("esri.rest.knowledgeGraph.Path")],l);const c=l},23150:(e,t,r)=>{r.d(t,{A:()=>c});var n=r(90237),o=(r(59456),r(10107)),i=(r(44208),r(53966),r(87811),r(40608)),s=r(54238),a=r(82799);let l=class extends s.A{constructor(e){super(e),this.originId=null,this.destinationId=null,this.layoutGeometry=null}};(0,n._)([(0,o.MZ)({type:String,json:{write:!0}})],l.prototype,"originId",void 0),(0,n._)([(0,o.MZ)({type:String,json:{write:!0}})],l.prototype,"destinationId",void 0),(0,n._)([(0,o.MZ)({type:a.A,json:{write:!0}})],l.prototype,"layoutGeometry",void 0),l=(0,n._)([(0,i.$)("esri.rest.knowledgeGraph.Relationship")],l);const c=l},2272:(e,t,r)=>{r.d(t,{Dl:()=>s,jV:()=>i,lF:()=>a}),r(92602),r(70333);var n=r(4718),o=r(84952);function i(e,t){return t?{...t,query:{...e??{},...t.query}}:{query:e}}function s(e){return"string"==typeof e?(0,o.An)(e):(0,n.o8)(e)}function a(e,t,r){const n={};for(const o in e){if("declaredClass"===o)continue;const i=e[o];if(null!=i&&"function"!=typeof i)if(Array.isArray(i))n[o]=i.map((e=>a(e)));else if("object"==typeof i)if(i.toJSON){const e=i.toJSON(r?.[o]);n[o]=t?e:JSON.stringify(e)}else n[o]=t?i:JSON.stringify(i);else n[o]=i}return n}r(926)}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4055],{68197:(e,t,r)=>{r.d(t,{A:()=>p});var n,o,i=r(40876),s=r(34727),a=r(56507);function l(e){return(0,s.qE)((0,a.Vr)(e),0,255)}function u(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}function c(e,t){const r=e.toString(16).padStart(2,"0");return t?r.slice(0,1):r}class p{static blendColors(e,t,r,n=new p){return n.r=Math.round(e.r+(t.r-e.r)*r),n.g=Math.round(e.g+(t.g-e.g)*r),n.b=Math.round(e.b+(t.b-e.b)*r),n.a=e.a+(t.a-e.a)*r,n._sanitize()}static fromRgb(e,t){const r=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(r){const e=r[2].split(/\s*,\s*/),n=r[1];if("rgb"===n&&3===e.length||"rgba"===n&&4===e.length){const r=e[0];if("%"===r.charAt(r.length-1)){const r=e.map((e=>2.56*parseFloat(e)));return 4===e.length&&(r[3]=parseFloat(e[3])),p.fromArray(r,t)}return p.fromArray(e.map((e=>parseFloat(e))),t)}if("hsl"===n&&3===e.length||"hsla"===n&&4===e.length)return p.fromArray((0,i.z$)(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3])),t)}return null}static fromHex(e,t=new p){if("#"!==e[0]||isNaN(Number(`0x${e.slice(1)}`)))return null;switch(e.length){case 4:case 5:{const r=parseInt(e.slice(1,2),16),n=parseInt(e.slice(2,3),16),o=parseInt(e.slice(3,4),16),i=5===e.length?15:parseInt(e.slice(4),16);return p.fromArray([r+16*r,n+16*n,o+16*o,(i+16*i)/255],t)}case 7:case 9:{const r=parseInt(e.slice(1,3),16),n=parseInt(e.slice(3,5),16),o=parseInt(e.slice(5,7),16),i=7===e.length?255:parseInt(e.slice(7),16);return p.fromArray([r,n,o,i/255],t)}default:return null}}static fromArray(e,t=new p){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){const r=(0,i.V6)(e)?(0,i.TS)(e):null;return r&&p.fromArray(r,t)||p.fromRgb(e,t)||p.fromHex(e,t)}static fromJSON(e){return null!=e?new p([e[0],e[1],e[2],(e[3]??255)/255]):void 0}static toUnitRGB(e){return null!=e?[e.r/255,e.g/255,e.b/255]:null}static toUnitRGBA(e){return null!=e?[e.r/255,e.g/255,e.b/255,null!=e.a?e.a:1]:null}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(e){return"string"==typeof e?p.fromString(e,this):Array.isArray(e)?p.fromArray(e,this):(this._set(e.r??0,e.g??0,e.b??0,e.a??1),e instanceof p||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(e){const t=e?.capitalize??!1,r=e?.digits??6,n=3===r||4===r,o=4===r||8===r,i=`#${c(this.r,n)}${c(this.g,n)}${c(this.b,n)}${o?c(Math.round(255*this.a),n):""}`;return t?i.toUpperCase():i}toCss(e=!1){const t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=p.AlphaMode.ALWAYS){const t=l(this.r),r=l(this.g),n=l(this.b);return e===p.AlphaMode.ALWAYS||1!==this.a?[t,r,n,l(255*this.a)]:[t,r,n]}clone(){return new p(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=Math.round(u(this.r,0,255)),this.g=Math.round(u(this.g,0,255)),this.b=Math.round(u(this.b,0,255)),this.a=u(this.a,0,1),this}_set(e,t,r,n){this.r=e,this.g=t,this.b=r,this.a=n}}p.prototype.declaredClass="esri.Color",(o=(n=p).AlphaMode||(n.AlphaMode={}))[o.ALWAYS=0]="ALWAYS",o[o.UNLESS_OPAQUE=1]="UNLESS_OPAQUE"},87317:(e,t,r)=>{r.d(t,{a:()=>b,b:()=>c,c:()=>o,d:()=>d,e:()=>x,f:()=>h,g:()=>s,h:()=>y,j:()=>f,l:()=>g,n:()=>m,s:()=>i,t:()=>v});var n=r(34304);function o(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function i(e,t,r,n,o){return e[0]=t,e[1]=r,e[2]=n,e[3]=o,e}function s(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e}function a(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e}function l(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e[3]=t[3]*r[3],e}function u(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e[3]=t[3]/r[3],e}function c(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e}function p(e,t){const r=t[0]-e[0],n=t[1]-e[1],o=t[2]-e[2],i=t[3]-e[3];return Math.sqrt(r*r+n*n+o*o+i*i)}function d(e,t){const r=t[0]-e[0],n=t[1]-e[1],o=t[2]-e[2],i=t[3]-e[3];return r*r+n*n+o*o+i*i}function f(e){const t=e[0],r=e[1],n=e[2],o=e[3];return Math.sqrt(t*t+r*r+n*n+o*o)}function h(e){const t=e[0],r=e[1],n=e[2],o=e[3];return t*t+r*r+n*n+o*o}function m(e,t){const r=t[0],n=t[1],o=t[2],i=t[3];let s=r*r+n*n+o*o+i*i;return s>0&&(s=1/Math.sqrt(s),e[0]=r*s,e[1]=n*s,e[2]=o*s,e[3]=i*s),e}function y(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}function g(e,t,r,n){const o=t[0],i=t[1],s=t[2],a=t[3];return e[0]=o+n*(r[0]-o),e[1]=i+n*(r[1]-i),e[2]=s+n*(r[2]-s),e[3]=a+n*(r[3]-a),e}function v(e,t,r){const n=t[0],o=t[1],i=t[2],s=t[3];return e[0]=r[0]*n+r[4]*o+r[8]*i+r[12]*s,e[1]=r[1]*n+r[5]*o+r[9]*i+r[13]*s,e[2]=r[2]*n+r[6]*o+r[10]*i+r[14]*s,e[3]=r[3]*n+r[7]*o+r[11]*i+r[15]*s,e}function b(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]}function x(e,t){const r=e[0],o=e[1],i=e[2],s=e[3],a=t[0],l=t[1],u=t[2],c=t[3],p=(0,n.FD)();return Math.abs(r-a)<=p*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(o-l)<=p*Math.max(1,Math.abs(o),Math.abs(l))&&Math.abs(i-u)<=p*Math.max(1,Math.abs(i),Math.abs(u))&&Math.abs(s-c)<=p*Math.max(1,Math.abs(s),Math.abs(c))}const w=a,A=l,M=u,S=p,_=d,O=f,N=h;Object.freeze(Object.defineProperty({__proto__:null,add:s,ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e[3]=Math.ceil(t[3]),e},copy:o,copyVec3:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},dist:S,distance:p,div:M,divide:u,dot:y,equals:x,exactEquals:b,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e[3]=Math.floor(t[3]),e},inverse:function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e},len:O,length:f,lerp:g,max:function(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e[3]=Math.max(t[3],r[3]),e},min:function(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e[3]=Math.min(t[3],r[3]),e},mul:A,multiply:l,negate:function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e},normalize:m,random:function(e,t=1){const r=n.Ov;let o,i,s,a,l,u;do{o=2*r()-1,i=2*r()-1,l=o*o+i*i}while(l>=1);do{s=2*r()-1,a=2*r()-1,u=s*s+a*a}while(u>=1);const c=Math.sqrt((1-l)/u);return e[0]=t*o,e[1]=t*i,e[2]=t*s*c,e[3]=t*a*c,e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e[3]=Math.round(t[3]),e},scale:c,scaleAndAdd:function(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e[3]=t[3]+r[3]*n,e},set:i,sqrDist:_,sqrLen:N,squaredDistance:d,squaredLength:h,str:function(e){return"vec4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"},sub:w,subtract:a,transformMat4:v,transformQuat:function(e,t,r){const n=t[0],o=t[1],i=t[2],s=r[0],a=r[1],l=r[2],u=r[3],c=u*n+a*i-l*o,p=u*o+l*n-s*i,d=u*i+s*o-a*n,f=-s*n-a*o-l*i;return e[0]=c*u+f*-s+p*-l-d*-a,e[1]=p*u+f*-a+d*-s-c*-l,e[2]=d*u+f*-l+c*-a-p*-s,e[3]=t[3],e}},Symbol.toStringTag,{value:"Module"}))},40876:(e,t,r)=>{r.d(t,{TS:()=>i,Tf:()=>c,V6:()=>o,c4:()=>s,qh:()=>u,z$:()=>l});const n={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function o(e){return!!n[e]||!!n[e.toLowerCase()]}function i(e){return n[e]??n[e.toLowerCase()]}function s(e){return[...i(e)]}function a(e,t,r){r<0&&++r,r>1&&--r;const n=6*r;return n<1?e+(t-e)*n:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function l(e,t,r,n=1){const o=(e%360+360)%360/360,i=r<=.5?r*(t+1):r+t-r*t,s=2*r-i;return[Math.round(255*a(s,i,o+1/3)),Math.round(255*a(s,i,o)),Math.round(255*a(s,i,o-1/3)),n]}function u(e){const t=e.length>5,r=t?8:4,n=(1<<r)-1,o=t?1:17,i=t?9===e.length:5===e.length;let s=Number("0x"+e.slice(1));if(isNaN(s))return null;const a=[0,0,0,1];let l;return i&&(l=s&n,s>>=r,a[3]=o*l/255),l=s&n,s>>=r,a[2]=o*l,l=s&n,s>>=r,a[1]=o*l,l=s&n,s>>=r,a[0]=o*l,a}const c=2.2},95488:(e,t,r)=>{r.d(t,{I:()=>o});var n=r(11406);class o extends n.T{notify(){const e=this._observers;if(e&&e.length>0){const t=e.slice();for(const e of t)e.onInvalidated(),e.onCommitted()}}}},51850:(e,t,r)=>{function n(){return[0,0,0]}function o(e){return[e[0],e[1],e[2]]}function i(e,t,r){return[e,t,r]}function s(e,t,r){return[e,t,r]}function a(e,t=[0,0,0]){const r=Math.min(3,e.length);for(let n=0;n<r;++n)t[n]=e[n];return t}function l(){return i(1,1,1)}function u(){return i(1,0,0)}function c(){return i(0,1,0)}function p(){return i(0,0,1)}r.d(t,{CN:()=>s,Cb:()=>y,Cw:()=>h,JP:()=>m,Un:()=>f,ci:()=>a,fA:()=>i,o8:()=>o,uY:()=>d,vt:()=>n});const d=[0,0,0],f=l(),h=u(),m=c(),y=p();Object.freeze(Object.defineProperty({__proto__:null,ONES:f,UNIT_X:h,UNIT_Y:m,UNIT_Z:y,ZEROS:d,clone:o,create:n,createView:function(e,t){return new Float64Array(e,t,3)},freeze:s,fromArray:a,fromValues:i,ones:l,unitX:u,unitY:c,unitZ:p,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"}))},91829:(e,t,r)=>{function n(){return[0,0,0,0]}function o(e,t,r,n){return[e,t,r,n]}function i(e,t,r,n){return[e,t,r,n]}function s(e,t=[0,0,0,0]){const r=Math.min(4,e.length);for(let n=0;n<r;++n)t[n]=e[n];return t}function a(){return o(1,1,1,1)}function l(){return o(1,0,0,0)}function u(){return o(0,1,0,0)}function c(){return o(0,0,1,0)}function p(){return o(0,0,0,1)}r.d(t,{CN:()=>i,Un:()=>f,ci:()=>s,fA:()=>o,uY:()=>d,vt:()=>n});const d=[0,0,0,0],f=a(),h=l(),m=u(),y=c(),g=p();Object.freeze(Object.defineProperty({__proto__:null,ONES:f,UNIT_W:g,UNIT_X:h,UNIT_Y:m,UNIT_Z:y,ZEROS:d,clone:function(e){return[e[0],e[1],e[2],e[3]]},create:n,createView:function(e,t){return new Float64Array(e,t,4)},freeze:i,fromArray:s,fromValues:o,ones:a,unitW:p,unitX:l,unitY:u,unitZ:c,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))},34304:(e,t,r)=>{r.d(t,{DF:()=>l,FD:()=>o,Ov:()=>i,ct:()=>u});let n=1e-6;function o(){return n}const i=Math.random,s=Math.PI/180,a=180/Math.PI;function l(e){return e*s}function u(e){return e*a}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:i,equals:function(e,t){return Math.abs(e-t)<=n*Math.max(1,Math.abs(e),Math.abs(t))},getEpsilon:o,setEpsilon:function(e){n=e},toDegree:u,toRadian:l},Symbol.toStringTag,{value:"Module"}))},59456:(e,t,r)=>{r.d(t,{yR:()=>c});var n=r(56507),o=r(5443),i=r(91075),s=r(48526),a=r(86738),l=r(39829),u=r(82799);r(16930),r(50498),r(65864);const c={base:i.A,key:"type",typeMap:{extent:o.A,multipoint:s.A,point:a.A,polyline:u.A,polygon:l.A}};(0,n.aq)(c)},65864:(e,t,r)=>{r.d(t,{$B:()=>m,Bi:()=>f,Rg:()=>d,U9:()=>c,ZC:()=>u,fT:()=>p,rS:()=>h,xD:()=>g});var n=r(5443),o=r(91075),i=r(48526),s=r(86738),a=r(39829),l=r(82799);function u(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function c(e){return void 0!==e.points}function p(e){return void 0!==e.x&&void 0!==e.y}function d(e){return void 0!==e.paths||void 0!==e.curvePaths}function f(e){return void 0!==e.rings||void 0!==e.curveRings}function h(e){return null==e?null:e instanceof o.A?e:p(e)?s.A.fromJSON(e):d(e)?l.A.fromJSON(e):f(e)?a.A.fromJSON(e):c(e)?i.A.fromJSON(e):u(e)?n.A.fromJSON(e):null}function m(e){return e?p(e)?"esriGeometryPoint":d(e)?"esriGeometryPolyline":f(e)?"esriGeometryPolygon":u(e)?"esriGeometryEnvelope":c(e)?"esriGeometryMultipoint":null:null}const y={esriGeometryPoint:s.A,esriGeometryPolyline:l.A,esriGeometryPolygon:a.A,esriGeometryEnvelope:n.A,esriGeometryMultipoint:i.A,esriGeometryMultiPatch:a.A};function g(e){return e&&y[e]||null}},50498:(e,t,r)=>{r.d(t,{Y:()=>i,g:()=>o});var n=r(66552);const o=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),i=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})},39357:(e,t,r)=>{r.d(t,{H:()=>l});var n,o=r(90237),i=r(25482),s=r(10107),a=(r(44208),r(53966),r(87811),r(40608));let l=n=class extends i.A{constructor(e){super(e),this.name=null,this.code=null}clone(){return new n({name:this.name,code:this.code})}};(0,o._)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],l.prototype,"name",void 0),(0,o._)([(0,s.MZ)({type:[String,Number],json:{write:{isRequired:!0}}})],l.prototype,"code",void 0),l=n=(0,o._)([(0,a.$)("esri.layers.support.CodedValue")],l)},53177:(e,t,r)=>{r.d(t,{A:()=>d});var n,o=r(90237),i=r(4718),s=r(10107),a=(r(44208),r(53966),r(93223)),l=r(40608),u=r(39357),c=r(76357);let p=n=class extends c.A{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const r=String(e);this.codedValues.some((e=>(String(e.code)===r&&(t=e.name),!!t)))}return t}clone(){return new n({codedValues:(0,i.o8)(this.codedValues),name:this.name})}};(0,o._)([(0,s.MZ)({type:[u.H],json:{write:{isRequired:!0}}})],p.prototype,"codedValues",void 0),(0,o._)([(0,a.e)({codedValue:"coded-value"})],p.prototype,"type",void 0),p=n=(0,o._)([(0,l.$)("esri.layers.support.CodedValueDomain")],p);const d=p},76357:(e,t,r)=>{r.d(t,{A:()=>p});var n=r(90237),o=r(66552),i=r(25482),s=r(10107),a=(r(44208),r(53966),r(87811),r(93223)),l=r(40608);const u=new o.J({inherited:"inherited",codedValue:"coded-value",range:"range"});let c=class extends i.A{constructor(e){super(e),this.name=null,this.type=null}};(0,n._)([(0,s.MZ)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,n._)([(0,a.e)(u),(0,s.MZ)({json:{write:{isRequired:!0}}})],c.prototype,"type",void 0),c=(0,n._)([(0,l.$)("esri.layers.support.Domain")],c);const p=c},20437:(e,t,r)=>{r.d(t,{A:()=>y});var n,o=r(90237),i=r(66552),s=r(25482),a=r(10107),l=r(56507),u=(r(87811),r(44208),r(93223)),c=r(36005),p=r(40608),d=r(80451),f=r(98453);const h=new i.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let m=n=class extends s.A{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(e){}return r?.value??null}readValueType(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?h.fromJSON(r.fieldValueType):null}clone(){return new n({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,o._)([(0,a.MZ)({type:String,json:{write:!0}})],m.prototype,"alias",void 0),(0,o._)([(0,a.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],m.prototype,"defaultValue",void 0),(0,o._)([(0,a.MZ)()],m.prototype,"description",void 0),(0,o._)([(0,c.w)("description")],m.prototype,"readDescription",null),(0,o._)([(0,a.MZ)({types:d.gK,json:{read:{reader:d.rS},write:!0}})],m.prototype,"domain",void 0),(0,o._)([(0,a.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"editable",void 0),(0,o._)([(0,a.MZ)({type:l.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],m.prototype,"length",void 0),(0,o._)([(0,a.MZ)({type:String,json:{write:!0}})],m.prototype,"name",void 0),(0,o._)([(0,a.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"nullable",void 0),(0,o._)([(0,u.e)(f.m)],m.prototype,"type",void 0),(0,o._)([(0,a.MZ)()],m.prototype,"valueType",void 0),(0,o._)([(0,c.w)("valueType",["description"])],m.prototype,"readValueType",null),(0,o._)([(0,a.MZ)({type:Boolean,json:{read:!1}})],m.prototype,"visible",void 0),m=n=(0,o._)([(0,p.$)("esri.layers.support.Field")],m);const y=m},30139:(e,t,r)=>{r.r(t),r.d(t,{default:()=>_}),r(59456);var n,o=r(31644),i=r(14140),s=r(51244),a=r(28435),l=r(6049),u=r(70834),c=r(6952),p=r(14636),d=r(73037),f=r(90237),h=(r(53966),r(44208),r(87811),r(49186),r(93223)),m=r(40608),y=r(82434);let g=n=class extends y.A{constructor(){super(...arguments),this.type="identity"}clone(){return new n}};(0,f._)([(0,h.e)({IdentityXform:"identity"})],g.prototype,"type",void 0),g=n=(0,f._)([(0,m.$)("esri.layers.support.rasterTransforms.IdentityTransform")],g);const v=g;var b=r(21312);const x={GCSShiftXform:d.A,IdentityXform:v,PolynomialXform:b.A};var w=r(85676),A=r(4095),M=r(5443),S=r(86738);class _{convertVectorFieldData(e){const t=i.A.fromJSON(e.pixelBlock),r=(0,p.FI)(t,e.type);return Promise.resolve(null!=r?r.toJSON():null)}computeStatisticsHistograms(e){const t=i.A.fromJSON(e.pixelBlock),r=(0,c.eH)(t);return Promise.resolve(r)}async decode(e){const t=await(0,s.D)(e.data,e.options);return t&&t.toJSON()}symbolize(e){e.pixelBlock=i.A.fromJSON(e.pixelBlock),e.extent=e.extent?M.A.fromJSON(e.extent):null;const t=this.symbolizer.symbolize(e);return Promise.resolve(null!=t?t.toJSON():null)}async updateSymbolizer(e){this.symbolizer=w.A.fromJSON(e.symbolizerJSON),e.histograms&&"rasterStretch"===this.symbolizer?.rendererJSON.type&&(this.symbolizer.rendererJSON.histograms=e.histograms)}async updateRasterFunction(e){this.rasterFunction=(0,l.vt)(e.rasterFunctionJSON)}async process(e){const t=this.rasterFunction.process({extent:M.A.fromJSON(e.extent),primaryPixelBlocks:e.primaryPixelBlocks.map((e=>null!=e?i.A.fromJSON(e):null)),primaryPixelSizes:e.primaryPixelSizes?.map((e=>null!=e?S.A.fromJSON(e):null)),primaryRasterIds:e.primaryRasterIds});return null!=t?t.toJSON():null}stretch(e){const t=this.symbolizer.simpleStretch(i.A.fromJSON(e.srcPixelBlock),e.stretchParams);return Promise.resolve(t?.toJSON())}estimateStatisticsHistograms(e){const t=(0,c.f4)(i.A.fromJSON(e.srcPixelBlock));return Promise.resolve(t)}split(e){const t=(0,a.lD)(i.A.fromJSON(e.srcPixelBlock),e.tileSize,e.maximumPyramidLevel??0,!1===e.useBilinear);return t&&t.forEach(((e,r)=>{t.set(r,e?.toJSON())})),Promise.resolve(t)}clipTile(e){const t=i.A.fromJSON(e.pixelBlock),r=(0,a.J$)({...e,pixelBlock:t});return Promise.resolve(r?.toJSON())}async mosaicAndTransform(e){const t=e.srcPixelBlocks.map((e=>e?new i.A(e):null)),r=(0,a.z7)(t,e.srcMosaicSize,{blockWidths:e.blockWidths,alignmentInfo:e.alignmentInfo,clipOffset:e.clipOffset,clipSize:e.clipSize});let n,o=r;return e.coefs&&(o=(0,a.$i)(r,e.destDimension,e.coefs,e.sampleSpacing,e.interpolation)),e.projectDirections&&e.gcsGrid&&(n=(0,a.QF)(e.destDimension,e.gcsGrid),o=(0,p.Y2)(o,e.isUV?"vector-uv":"vector-magdir",n)),{pixelBlock:o?.toJSON(),localNorthDirections:n}}async createFlowMesh(e,t){const r={data:new Float32Array(e.flowData.buffer),mask:new Uint8Array(e.flowData.maskBuffer),width:e.flowData.width,height:e.flowData.height},{vertexData:n,indexData:o}=await(0,A.CW)(e.meshType,e.simulationSettings,r,t.signal);return{result:{vertexBuffer:n.buffer,indexBuffer:o.buffer},transferList:[n.buffer,o.buffer]}}async getProjectionOffsetGrid(e){const t=M.A.fromJSON(e.projectedExtent),r=M.A.fromJSON(e.srcBufferExtent);let n=null;e.datumTransformationSteps&&(n=new o.A({steps:e.datumTransformationSteps})),(e.includeGCSGrid||(0,u.xh)(t.spatialReference,r.spatialReference,n))&&await(0,u.Hh)();const i=e.rasterTransform?function(e){const t=e?.type;if(!t)return null;const r=x[e?.type];if(r){const t=new r;return t.read(e),t}return null}(e.rasterTransform):null;return(0,u.l0)({...e,projectedExtent:t,srcBufferExtent:r,datumTransformation:n,rasterTransform:i})}}},80451:(e,t,r)=>{r.d(t,{rS:()=>y,gK:()=>m}),r(44208);var n,o=r(53177),i=r(76357),s=r(90237),a=(r(53966),r(87811),r(49186),r(93223)),l=r(40608);let u=n=class extends i.A{constructor(e){super(e),this.type="inherited"}clone(){return new n}};(0,s._)([(0,a.e)({inherited:"inherited"})],u.prototype,"type",void 0),u=n=(0,s._)([(0,l.$)("esri.layers.support.InheritedDomain")],u);const c=u;var p,d=r(10107);let f=p=class extends i.A{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new p({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,s._)([(0,d.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}}})],f.prototype,"maxValue",void 0),(0,s._)([(0,d.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}}})],f.prototype,"minValue",void 0),(0,s._)([(0,a.e)({range:"range"})],f.prototype,"type",void 0),f=p=(0,s._)([(0,l.$)("esri.layers.support.RangeDomain")],f);const h=f,m={key:"type",base:i.A,typeMap:{range:h,"coded-value":o.A,inherited:c}};function y(e){if(!e?.type)return null;switch(e.type){case"range":return h.fromJSON(e);case"codedValue":return o.A.fromJSON(e);case"inherited":return c.fromJSON(e)}return null}},98453:(e,t,r)=>{r.d(t,{m:()=>n});const n=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"})},82434:(e,t,r)=>{r.d(t,{A:()=>l});var n=r(90237),o=r(25482),i=r(10107),s=(r(44208),r(53966),r(87811),r(40608));let a=class extends o.A{get affectsPixelSize(){return!1}forwardTransform(e){return e}inverseTransform(e){return e}};(0,n._)([(0,i.MZ)()],a.prototype,"affectsPixelSize",null),(0,n._)([(0,i.MZ)({json:{write:!0}})],a.prototype,"spatialReference",void 0),a=(0,n._)([(0,s.$)("esri.layers.support.rasterTransforms.BaseRasterTransform")],a);const l=a},73037:(e,t,r)=>{r.d(t,{A:()=>c});var n,o=r(90237),i=r(10107),s=(r(44208),r(53966),r(87811),r(93223)),a=r(40608),l=r(82434);let u=n=class extends l.A{constructor(){super(...arguments),this.type="gcs-shift",this.tolerance=1e-8}forwardTransform(e){return"point"===(e=e.clone()).type?(e.x>180+this.tolerance&&(e.x-=360),e):(e.xmin>=180-this.tolerance?(e.xmax-=360,e.xmin-=360):e.xmax>180+this.tolerance&&(e.xmin=-180,e.xmax=180),e)}inverseTransform(e){return"point"===(e=e.clone()).type?(e.x<-this.tolerance&&(e.x+=360),e):(e.xmin<-this.tolerance&&(e.xmin+=360,e.xmax+=360),e)}clone(){return new n({tolerance:this.tolerance})}};(0,o._)([(0,s.e)({GCSShiftXform:"gcs-shift"})],u.prototype,"type",void 0),(0,o._)([(0,i.MZ)()],u.prototype,"tolerance",void 0),u=n=(0,o._)([(0,a.$)("esri.layers.support.rasterTransforms.GCSShiftTransform")],u);const c=u},21312:(e,t,r)=>{r.d(t,{A:()=>y});var n,o=r(90237),i=(r(59456),r(10107)),s=(r(44208),r(53966),r(87811),r(93223)),a=r(36005),l=r(40608),u=r(43937),c=r(82434),p=r(86738),d=r(5443);function f(e,t,r){const{x:n,y:o}=t;if(r<2)return{x:e[0]+n*e[2]+o*e[4],y:e[1]+n*e[3]+o*e[5]};if(2===r){const t=n*n,r=o*o,i=n*o;return{x:e[0]+n*e[2]+o*e[4]+t*e[6]+i*e[8]+r*e[10],y:e[1]+n*e[3]+o*e[5]+t*e[7]+i*e[9]+r*e[11]}}const i=n*n,s=o*o,a=n*o,l=i*n,u=i*o,c=n*s,p=o*s;return{x:e[0]+n*e[2]+o*e[4]+i*e[6]+a*e[8]+s*e[10]+l*e[12]+u*e[14]+c*e[16]+p*e[18],y:e[1]+n*e[3]+o*e[5]+i*e[7]+a*e[9]+s*e[11]+l*e[13]+u*e[15]+c*e[17]+p*e[19]}}function h(e,t,r){const{xmin:n,ymin:o,xmax:i,ymax:s,spatialReference:a}=t;let l=[];if(r<2)l.push({x:n,y:s}),l.push({x:i,y:s}),l.push({x:n,y:o}),l.push({x:i,y:o});else{let e=10;for(let t=0;t<e;t++)l.push({x:n,y:o+(s-o)*t/(e-1)}),l.push({x:i,y:o+(s-o)*t/(e-1)});e=8;for(let t=1;t<=e;t++)l.push({x:n+(i-n)*t/e,y:o}),l.push({x:n+(i-n)*t/e,y:s})}l=l.map((t=>f(e,t,r)));const u=l.map((e=>e.x)),c=l.map((e=>e.y));return new d.A({xmin:Math.min.apply(null,u),xmax:Math.max.apply(null,u),ymin:Math.min.apply(null,c),ymax:Math.max.apply(null,c),spatialReference:a})}let m=n=class extends c.A{constructor(){super(...arguments),this.polynomialOrder=1,this.type="polynomial"}readForwardCoefficients(e,t){const{coeffX:r,coeffY:n}=t;if(!r?.length||!n?.length||r.length!==n.length)return null;const o=[];for(let e=0;e<r.length;e++)o.push(r[e]),o.push(n[e]);return o}writeForwardCoefficients(e,t,r){const n=[],o=[];for(let t=0;t<e?.length;t++)t%2==0?n.push(e[t]):o.push(e[t]);t.coeffX=n,t.coeffY=o}get inverseCoefficients(){let e=this._get("inverseCoefficients");const t=this._get("forwardCoefficients");return!e&&t&&this.polynomialOrder<2&&(e=function(e){const[t,r,n,o,i,s]=e,a=n*s-i*o,l=i*o-n*s;return[(i*r-t*s)/a,(n*r-t*o)/l,s/a,o/l,-i/a,-n/l]}(t)),e}set inverseCoefficients(e){this._set("inverseCoefficients",e)}readInverseCoefficients(e,t){const{inverseCoeffX:r,inverseCoeffY:n}=t;if(!r?.length||!n?.length||r.length!==n.length)return null;const o=[];for(let e=0;e<r.length;e++)o.push(r[e]),o.push(n[e]);return o}writeInverseCoefficients(e,t,r){const n=[],o=[];for(let t=0;t<e?.length;t++)t%2==0?n.push(e[t]):o.push(e[t]);t.inverseCoeffX=n,t.inverseCoeffY=o}get affectsPixelSize(){return this.polynomialOrder>0}forwardTransform(e){if("point"===e.type){const t=f(this.forwardCoefficients,e,this.polynomialOrder);return new p.A({x:t.x,y:t.y,spatialReference:e.spatialReference})}return h(this.forwardCoefficients,e,this.polynomialOrder)}inverseTransform(e){if("point"===e.type){const t=f(this.inverseCoefficients,e,this.polynomialOrder);return new p.A({x:t.x,y:t.y,spatialReference:e.spatialReference})}return h(this.inverseCoefficients,e,this.polynomialOrder)}clone(){return new n({polynomialOrder:this.polynomialOrder,forwardCoefficients:this.forwardCoefficients?[...this.forwardCoefficients]:null,inverseCoefficients:this.inverseCoefficients?[...this.inverseCoefficients]:null})}};(0,o._)([(0,i.MZ)({json:{write:!0}})],m.prototype,"polynomialOrder",void 0),(0,o._)([(0,i.MZ)()],m.prototype,"forwardCoefficients",void 0),(0,o._)([(0,a.w)("forwardCoefficients",["coeffX","coeffY"])],m.prototype,"readForwardCoefficients",null),(0,o._)([(0,u.K)("forwardCoefficients")],m.prototype,"writeForwardCoefficients",null),(0,o._)([(0,i.MZ)({json:{write:!0}})],m.prototype,"inverseCoefficients",null),(0,o._)([(0,a.w)("inverseCoefficients",["inverseCoeffX","inverseCoeffY"])],m.prototype,"readInverseCoefficients",null),(0,o._)([(0,u.K)("inverseCoefficients")],m.prototype,"writeInverseCoefficients",null),(0,o._)([(0,i.MZ)()],m.prototype,"affectsPixelSize",null),(0,o._)([(0,s.e)({PolynomialXform:"polynomial"})],m.prototype,"type",void 0),m=n=(0,o._)([(0,l.$)("esri.layers.support.rasterTransforms.PolynomialTransform")],m);const y=m},2485:(e,t,r)=>{r.d(t,{A:()=>f});var n,o=r(90237),i=r(68197),s=r(4718),a=r(10107),l=r(56507),u=r(93223),c=r(40608),p=r(72606);let d=n=class extends p.A{constructor(e){super(e),this.algorithm=null,this.fromColor=null,this.toColor=null,this.type="algorithmic"}clone(){return new n({fromColor:(0,s.o8)(this.fromColor),toColor:(0,s.o8)(this.toColor),algorithm:this.algorithm})}};(0,o._)([(0,u.e)({esriCIELabAlgorithm:"cie-lab",esriHSVAlgorithm:"hsv",esriLabLChAlgorithm:"lab-lch"})],d.prototype,"algorithm",void 0),(0,o._)([(0,a.MZ)({type:i.A,json:{type:[l.jz],write:!0}})],d.prototype,"fromColor",void 0),(0,o._)([(0,a.MZ)({type:i.A,json:{type:[l.jz],write:!0}})],d.prototype,"toColor",void 0),(0,o._)([(0,a.MZ)({type:["algorithmic"]})],d.prototype,"type",void 0),d=n=(0,o._)([(0,c.$)("esri.rest.support.AlgorithmicColorRamp")],d);const f=d},72606:(e,t,r)=>{r.d(t,{A:()=>l});var n=r(90237),o=r(25482),i=r(10107),s=(r(44208),r(53966),r(87811),r(40608));let a=class extends o.A{constructor(e){super(e),this.type=null}};(0,n._)([(0,i.MZ)({readOnly:!0,json:{read:!1,write:!0}})],a.prototype,"type",void 0),a=(0,n._)([(0,s.$)("esri.rest.support.ColorRamp")],a);const l=a},1626:(e,t,r)=>{r.d(t,{A:()=>p});var n,o=r(90237),i=r(4718),s=r(10107),a=(r(44208),r(53966),r(40608)),l=r(2485),u=r(72606);let c=n=class extends u.A{constructor(e){super(e),this.colorRamps=null,this.type="multipart"}clone(){return new n({colorRamps:(0,i.o8)(this.colorRamps)})}};(0,o._)([(0,s.MZ)({type:[l.A],json:{write:!0}})],c.prototype,"colorRamps",void 0),(0,o._)([(0,s.MZ)({type:["multipart"]})],c.prototype,"type",void 0),c=n=(0,o._)([(0,a.$)("esri.rest.support.MultipartColorRamp")],c);const p=c},95349:(e,t,r)=>{r.d(t,{g:()=>s,r:()=>a});var n=r(2485),o=r(72606),i=r(1626);const s={key:"type",base:o.A,typeMap:{algorithmic:n.A,multipart:i.A}};function a(e){return e?.type?"algorithmic"===e.type?n.A.fromJSON(e):"multipart"===e.type?i.A.fromJSON(e):null:null}}}]);