@arcgis/core 5.0.0-next.22 → 5.0.0-next.24

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 (266) hide show
  1. package/analysis/DistanceMeasurementAnalysis.d.ts +4 -0
  2. package/applications/SceneViewer/sceneViewerUtils.d.ts +1 -0
  3. package/applications/SceneViewer/sceneViewerUtils.js +1 -1
  4. package/assets/esri/core/workers/RemoteClient.js +1 -1
  5. package/assets/esri/core/workers/chunks/01b8e680befff83e7d3e.js +1 -0
  6. package/assets/esri/core/workers/chunks/024104997daea0d74b38.js +1 -0
  7. package/assets/esri/core/workers/chunks/052ded41dc06c93ec0a7.js +1 -0
  8. package/assets/esri/core/workers/chunks/05b7720ab6bf0874f27c.js +1 -0
  9. package/assets/esri/core/workers/chunks/06d52a570d5d44f8c86e.js +1 -0
  10. package/assets/esri/core/workers/chunks/0ef9641069433fef3826.js +1 -0
  11. package/assets/esri/core/workers/chunks/155d74b9c0ef31dc2316.js +1 -0
  12. package/assets/esri/core/workers/chunks/19820cddba13a3585c0b.js +1 -0
  13. package/assets/esri/core/workers/chunks/219876879bc543568bcd.js +1 -0
  14. package/assets/esri/core/workers/chunks/231c0b583fa97f2ca675.js +1 -0
  15. package/assets/esri/core/workers/chunks/274f2b5e6dbc58505142.js +1 -0
  16. package/assets/esri/core/workers/chunks/{02cd03ffd024d3ac1aa7.js → 27ec791318e81285c222.js} +1 -1
  17. package/assets/esri/core/workers/chunks/2921f05a40fda12f9f81.js +1 -0
  18. package/assets/esri/core/workers/chunks/2a41283bba2361afa1fd.js +1 -0
  19. package/assets/esri/core/workers/chunks/2c4218306747f5d15575.js +1 -0
  20. package/assets/esri/core/workers/chunks/2c7038a7ffaf75344b02.js +1 -0
  21. package/assets/esri/core/workers/chunks/2de32649f8b0c6404d7c.js +1 -0
  22. package/assets/esri/core/workers/chunks/31b5747a254d13acc58e.js +1 -0
  23. package/assets/esri/core/workers/chunks/{f651c05604eab83aef5f.js → 3266c3392c24ce6cdd83.js} +2 -2
  24. package/assets/esri/core/workers/chunks/3777b41b4fa2f1418402.js +1 -0
  25. package/assets/esri/core/workers/chunks/3bacd904cd93c8013f6a.js +1 -0
  26. package/assets/esri/core/workers/chunks/41a00c77e6f7ce61e476.js +1 -0
  27. package/assets/esri/core/workers/chunks/45729d006db6a569715f.js +1 -0
  28. package/assets/esri/core/workers/chunks/4ab89c990a82c745c0fd.js +1 -0
  29. package/assets/esri/core/workers/chunks/4b14ee37b5ac50a734f9.js +1 -0
  30. package/assets/esri/core/workers/chunks/4cda42b94e9cb58dd372.js +1 -0
  31. package/assets/esri/core/workers/chunks/4ce28c936eaffe57c448.js +1 -0
  32. package/assets/esri/core/workers/chunks/538ddb267aa328814865.js +1 -0
  33. package/assets/esri/core/workers/chunks/58bbc8bc886c071b8ff3.js +1 -0
  34. package/assets/esri/core/workers/chunks/592afe1a41bed3b0cc31.js +1 -0
  35. package/assets/esri/core/workers/chunks/5aeda8a1f2ccabfdf40f.js +1 -0
  36. package/assets/esri/core/workers/chunks/5b290d18de61789417f9.js +1 -0
  37. package/assets/esri/core/workers/chunks/5b73c77587772120b209.js +1 -0
  38. package/assets/esri/core/workers/chunks/60eeeea671a523bb6b15.js +1 -0
  39. package/assets/esri/core/workers/chunks/6428e2f4fc0a6739cc9e.js +1 -0
  40. package/assets/esri/core/workers/chunks/69278d08a7d64917f826.js +2 -0
  41. package/assets/esri/core/workers/chunks/6e5d41f51572e3e7cf92.js +1 -0
  42. package/assets/esri/core/workers/chunks/{7565b382f6b3d2cb46a3.js → 6f3ffc04086bca30e55d.js} +2 -2
  43. package/assets/esri/core/workers/chunks/70e2804d3710c6af468e.js +2 -0
  44. package/assets/esri/core/workers/chunks/{1e5efacbbc8960f13472.js → 748ab87a25f23d94b662.js} +1 -1
  45. package/assets/esri/core/workers/chunks/{aa78b69219d9a0ef1c54.js → 78fc9a55e620602db1ff.js} +2 -2
  46. package/assets/esri/core/workers/chunks/7e6fae3660e7a6a0fa16.js +1 -0
  47. package/assets/esri/core/workers/chunks/7ffef8a19166f6b564d8.js +1 -0
  48. package/assets/esri/core/workers/chunks/{867a181969eeeb5f1856.js → 838b3ec88785ac7aa31b.js} +1 -1
  49. package/assets/esri/core/workers/chunks/83aa39fbb1fad3b9d143.js +1 -0
  50. package/assets/esri/core/workers/chunks/88aa71f02f43bb069345.js +1 -0
  51. package/assets/esri/core/workers/chunks/{74a251e7f5be72ca2a5a.js → 8b336a63737e917e50e2.js} +1 -1
  52. package/assets/esri/core/workers/chunks/8d4cc5f1d07b4aa3aea0.js +1 -0
  53. package/assets/esri/core/workers/chunks/8e9a5d38da40702def80.js +1 -0
  54. package/assets/esri/core/workers/chunks/{4f7b7587d7902355f2a1.js → 93fe46be3c7fe34b5361.js} +1 -1
  55. package/assets/esri/core/workers/chunks/9461cc37ab3397265270.js +1 -0
  56. package/assets/esri/core/workers/chunks/9527f1a611557a7af237.js +1 -0
  57. package/assets/esri/core/workers/chunks/97b01803d0c38541aa08.js +1 -0
  58. package/assets/esri/core/workers/chunks/9921c8d4487a0f580b93.js +1 -0
  59. package/assets/esri/core/workers/chunks/9d0f0d055ec25af037e0.js +1 -0
  60. package/assets/esri/core/workers/chunks/9f0172b83f25ef5f8d40.js +1 -0
  61. package/assets/esri/core/workers/chunks/a4f492aa5444e6381063.js +1 -0
  62. package/assets/esri/core/workers/chunks/{d6e0528eacee7ea4c1ce.js → a67c3958d76d10c04fa6.js} +2 -2
  63. package/assets/esri/core/workers/chunks/aac313257a8b1ae75b75.js +1 -0
  64. package/assets/esri/core/workers/chunks/b48bb38e5d60fc7a9097.js +1 -0
  65. package/assets/esri/core/workers/chunks/b4c0a53c46ce4671d4c3.js +1 -0
  66. package/assets/esri/core/workers/chunks/bd58c027408dc858f23c.js +1 -0
  67. package/assets/esri/core/workers/chunks/be06c8a58c217a17451b.js +1 -0
  68. package/assets/esri/core/workers/chunks/{ce16489cf7eb0d78c741.js → be631029691d9a320cb5.js} +2 -2
  69. package/assets/esri/core/workers/chunks/c5d6b416baf24e74b9ba.js +1 -0
  70. package/assets/esri/core/workers/chunks/cade149fa19b4d06dd24.js +1 -0
  71. package/assets/esri/core/workers/chunks/ccde4f65377228b017a8.js +1 -0
  72. package/assets/esri/core/workers/chunks/d21ae4980741be98f948.js +1 -0
  73. package/assets/esri/core/workers/chunks/d32aad968798948946e4.js +1 -0
  74. package/assets/esri/core/workers/chunks/d56548a994753b08403c.js +1 -0
  75. package/assets/esri/core/workers/chunks/{0f735b0dec173142f3b6.js → d9251c3c85c3ddd242c8.js} +2 -2
  76. package/assets/esri/core/workers/chunks/{6e9c88f66bcfc3476b44.js → db0f9267fbda893de043.js} +1 -1
  77. package/assets/esri/core/workers/chunks/e0369ce0d729c9656488.js +1 -0
  78. package/assets/esri/core/workers/chunks/e08a1934d98e7324776d.js +1 -0
  79. package/assets/esri/core/workers/chunks/e0b70652da4a7f672cfc.js +1 -0
  80. package/assets/esri/core/workers/chunks/{bfc171f630da9314d860.js → e5baa30944061418cb13.js} +1 -1
  81. package/assets/esri/core/workers/chunks/e689a4849f5af3f2f641.js +1 -0
  82. package/assets/esri/core/workers/chunks/e6df4327ac1d9b65b80d.js +1 -0
  83. package/assets/esri/core/workers/chunks/f4919950a9a3703d9da3.js +1 -0
  84. package/assets/esri/core/workers/chunks/f4eb5de69ad9b7763582.js +1 -0
  85. package/assets/esri/core/workers/chunks/f6ce485c082d0d640b01.js +1 -0
  86. package/assets/esri/core/workers/chunks/fd9ef4b8c969962cf72b.js +1 -0
  87. package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
  88. package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core-simd.wasm +0 -0
  89. package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core.wasm +0 -0
  90. package/assets/esri/themes/base/widgets/_FeatureTable.scss +0 -1
  91. package/assets/esri/themes/dark/main.css +1 -1
  92. package/assets/esri/themes/light/main.css +1 -1
  93. package/assets/esri/themes/light/view.css +1 -1
  94. package/assets/esri/widgets/support/GridControls/t9n/GridControls.json +1 -1
  95. package/assets/esri/widgets/support/GridControls/t9n/GridControls_en.json +1 -1
  96. package/chunks/arcgis-knowledge-client-core-simd.js +1 -1
  97. package/chunks/arcgis-knowledge-client-core.js +1 -1
  98. package/config.js +1 -1
  99. package/interfaces.d.ts +355 -73
  100. package/kernel.js +1 -1
  101. package/layers/BaseDynamicLayer.js +1 -1
  102. package/layers/BaseElevationLayer.js +1 -1
  103. package/layers/Lyr3DWasmPerSceneView.js +1 -1
  104. package/layers/VideoLayer.js +1 -1
  105. package/layers/graphics/sources/support/QueryTask.js +1 -1
  106. package/layers/mixins/ArcGISImageService.js +1 -1
  107. package/layers/support/PublishingInfo.js +1 -1
  108. package/layers/support/RasterBandInfo.js +1 -1
  109. package/layers/support/RasterSensorInfo.js +1 -1
  110. package/layers/support/SubtypeSublayer.js +1 -1
  111. package/layers/support/vectorTileLayerLoader.js +1 -1
  112. package/layers/voxel/VoxelVariable.js +1 -1
  113. package/package.json +6 -6
  114. package/rest/support/FindImagesResult.js +1 -1
  115. package/rest/support/ImageAreaResult.js +1 -1
  116. package/rest/support/ImageBoundaryResult.js +1 -1
  117. package/rest/support/ImageDistanceResult.js +1 -1
  118. package/rest/support/ImageGPSInfoResult.js +1 -1
  119. package/rest/support/ImageHeightResult.js +1 -1
  120. package/rest/support/ImageIdentifyResult.js +1 -1
  121. package/rest/support/ImagePixelLocationResult.js +1 -1
  122. package/rest/support/ImagePointResult.js +1 -1
  123. package/rest/support/ImageSampleResult.js +1 -1
  124. package/rest/support/ImageUrlResult.js +1 -1
  125. package/rest/support/ImageVolumeResult.js +1 -1
  126. package/rest/support/MeasureAreaFromImageResult.js +1 -1
  127. package/rest/support/MeasureLengthFromImageResult.js +1 -1
  128. package/support/revision.js +1 -1
  129. package/symbols/cim/CIMEffects.js +1 -1
  130. package/symbols/cim/CIMSymbolDrawHelper.js +1 -1
  131. package/symbols/cim/CIMSymbolHelper.js +1 -1
  132. package/symbols/cim/placements/PlacementAtMeasuredUnits.js +1 -1
  133. package/unionTypes.d.ts +0 -1
  134. package/views/2d/analysis/AreaMeasurement/AreaMeasurementAreaVisualization.js +1 -1
  135. package/views/2d/analysis/AreaMeasurement/AreaMeasurementController.js +1 -1
  136. package/views/2d/analysis/AreaMeasurement/utils.js +5 -0
  137. package/views/2d/analysis/AreaMeasurementAnalysisView2D.d.ts +4 -0
  138. package/views/2d/analysis/AreaMeasurementAnalysisView2D.js +1 -1
  139. package/views/2d/analysis/DistanceMeasurementAnalysisView2D.d.ts +4 -0
  140. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/GradientStrokeShader.js +1 -1
  141. package/views/2d/layers/features/layerAdapters/OGCFeatureLayerAdapter.js +1 -1
  142. package/views/3d/analysis/AreaMeasurementAnalysisView3D.js +1 -1
  143. package/views/3d/analysis/Dimension/types.d.ts +3 -0
  144. package/views/3d/analysis/Dimension/types.js +5 -0
  145. package/views/3d/analysis/DirectLineMeasurement/types.d.ts +4 -0
  146. package/views/3d/analysis/DirectLineMeasurement/types.js +5 -0
  147. package/views/3d/analysis/LineOfSight/types.d.ts +3 -0
  148. package/views/3d/analysis/LineOfSight/types.js +5 -0
  149. package/views/3d/analysis/Slice/types.d.ts +3 -0
  150. package/views/3d/analysis/Slice/types.js +5 -0
  151. package/views/3d/analysis/Viewshed/types.d.ts +3 -0
  152. package/views/3d/analysis/Viewshed/types.js +5 -0
  153. package/views/3d/analysis/VolumeMeasurement/types.d.ts +3 -0
  154. package/views/3d/analysis/VolumeMeasurement/types.js +5 -0
  155. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  156. package/views/3d/layers/PointCloudLayerView3D.js +1 -1
  157. package/views/3d/support/popupHitTest.js +1 -1
  158. package/views/3d/terrain/TerrainSurface.js +1 -1
  159. package/views/3d/terrain/Tile.js +1 -1
  160. package/views/LinkChartView.js +1 -1
  161. package/views/VideoView.js +1 -1
  162. package/views/analysis/AreaMeasurement/types.d.ts +4 -0
  163. package/views/analysis/AreaMeasurement/types.js +5 -0
  164. package/views/analysis/DistanceMeasurement/types.d.ts +4 -0
  165. package/views/analysis/DistanceMeasurement/types.js +5 -0
  166. package/views/analysis/types.d.ts +3 -0
  167. package/views/analysis/types.js +5 -0
  168. package/views/draw/support/Reshape.js +1 -1
  169. package/views/input/Input.js +1 -1
  170. package/views/layers/BuildingComponentSublayerView.js +1 -1
  171. package/views/layers/SceneLayerView.js +1 -1
  172. package/widgets/Editor/SplitFeatureWorkflow.js +1 -1
  173. package/widgets/Editor/UpdateFeatureWorkflow.js +1 -1
  174. package/widgets/Editor/UpdateRecordWorkflow.js +1 -1
  175. package/widgets/Editor/workflowUtils.js +1 -1
  176. package/widgets/FeatureTable/FieldColumn.js +1 -1
  177. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  178. package/widgets/OrientedImageryViewer/adapters/sketch/TriangulatedMeasurementAdapter.js +1 -1
  179. package/widgets/OrientedImageryViewer/adapters/view/MapViewAdapter.js +1 -1
  180. package/widgets/OrientedImageryViewer/imageMeasurementUtils.js +1 -1
  181. package/widgets/OrientedImageryViewer/mixins/TriangulatedImageMeasurementMixin.js +1 -1
  182. package/widgets/ScaleRangeSlider/ScaleRanges.js +1 -1
  183. package/widgets/Sketch/SketchViewModel.js +1 -1
  184. package/widgets/Sketch/support/ResponsiveToolbar/ResponsiveToolbar.js +1 -1
  185. package/widgets/Sketch.js +1 -1
  186. package/widgets/VideoPlayer/VideoPlayerViewModel.js +1 -1
  187. package/widgets/support/GridControls.js +1 -1
  188. package/widgets/support/SelectionToolbar.js +1 -1
  189. package/assets/esri/core/workers/chunks/038eba6d3a6bcf8ccd67.js +0 -1
  190. package/assets/esri/core/workers/chunks/03ed15ba64f1679b3d48.js +0 -1
  191. package/assets/esri/core/workers/chunks/04bac7bb3f794b33e2e4.js +0 -1
  192. package/assets/esri/core/workers/chunks/092d72caf3269e696d1c.js +0 -1
  193. package/assets/esri/core/workers/chunks/11fdcb8a74a80e9a47a3.js +0 -1
  194. package/assets/esri/core/workers/chunks/1466ab7bd500ba7a4025.js +0 -1
  195. package/assets/esri/core/workers/chunks/16f841f12b32d8a500a9.js +0 -1
  196. package/assets/esri/core/workers/chunks/1b9f93ab226232c5019a.js +0 -1
  197. package/assets/esri/core/workers/chunks/1beee2932154db83f79d.js +0 -1
  198. package/assets/esri/core/workers/chunks/1cae81089b50b7e43d70.js +0 -1
  199. package/assets/esri/core/workers/chunks/1fcd4d90a99e85d35dd2.js +0 -1
  200. package/assets/esri/core/workers/chunks/21d7f42c2033de987b97.js +0 -1
  201. package/assets/esri/core/workers/chunks/24ff9dad3fb64ab54970.js +0 -1
  202. package/assets/esri/core/workers/chunks/26282c67d2b066a76881.js +0 -1
  203. package/assets/esri/core/workers/chunks/2719865e28d577da7b2a.js +0 -1
  204. package/assets/esri/core/workers/chunks/2d3e7b41b225d905c7f4.js +0 -1
  205. package/assets/esri/core/workers/chunks/30a631c39c9372797b92.js +0 -1
  206. package/assets/esri/core/workers/chunks/388873be1dca91ccbc9d.js +0 -1
  207. package/assets/esri/core/workers/chunks/3a457e718a901a45902e.js +0 -2
  208. package/assets/esri/core/workers/chunks/44e08b49898a8fcbe031.js +0 -1
  209. package/assets/esri/core/workers/chunks/4731f507149940dde534.js +0 -1
  210. package/assets/esri/core/workers/chunks/48ca09958c3d50de48dc.js +0 -1
  211. package/assets/esri/core/workers/chunks/4d0e099f34639cda3a9b.js +0 -1
  212. package/assets/esri/core/workers/chunks/5a6b487b70ca85a45f57.js +0 -1
  213. package/assets/esri/core/workers/chunks/5b5f1f22de985dc6bbc0.js +0 -1
  214. package/assets/esri/core/workers/chunks/5c82b17f9990e6cd7d0b.js +0 -1
  215. package/assets/esri/core/workers/chunks/5cc023e1066641f9f20c.js +0 -1
  216. package/assets/esri/core/workers/chunks/61bb39597ccf89f99a72.js +0 -1
  217. package/assets/esri/core/workers/chunks/67bc5b87fd61095689d4.js +0 -1
  218. package/assets/esri/core/workers/chunks/6bf5b3c7129aa14b4fc6.js +0 -1
  219. package/assets/esri/core/workers/chunks/755e2ecd20b6bd1909be.js +0 -1
  220. package/assets/esri/core/workers/chunks/768e1ad2f06fdc9d5ef8.js +0 -1
  221. package/assets/esri/core/workers/chunks/7a957f2bca1438732338.js +0 -1
  222. package/assets/esri/core/workers/chunks/7d9773c87650856f2d9e.js +0 -1
  223. package/assets/esri/core/workers/chunks/809a9055da28c8fa58b0.js +0 -1
  224. package/assets/esri/core/workers/chunks/8af47cc9cee2f3031162.js +0 -1
  225. package/assets/esri/core/workers/chunks/8bbae8ac586e5c0819d2.js +0 -1
  226. package/assets/esri/core/workers/chunks/8cd03b54b2859b52fb81.js +0 -1
  227. package/assets/esri/core/workers/chunks/8f85039d76f03fbdd27a.js +0 -1
  228. package/assets/esri/core/workers/chunks/93f706acaa812bb3ac70.js +0 -1
  229. package/assets/esri/core/workers/chunks/976dd80e318266ab4c2c.js +0 -1
  230. package/assets/esri/core/workers/chunks/9a20be3b02c9d6349b8d.js +0 -1
  231. package/assets/esri/core/workers/chunks/9dae3e4e34096b3d82d7.js +0 -1
  232. package/assets/esri/core/workers/chunks/9e5e05d6430712b0b1bc.js +0 -1
  233. package/assets/esri/core/workers/chunks/9f9e20321ee44675e107.js +0 -1
  234. package/assets/esri/core/workers/chunks/a02ffa7916cf9da55608.js +0 -1
  235. package/assets/esri/core/workers/chunks/a0b0fe0d99df20fa9076.js +0 -1
  236. package/assets/esri/core/workers/chunks/a987731d1b5449d8fb0c.js +0 -1
  237. package/assets/esri/core/workers/chunks/ad9606164c694af0c61f.js +0 -1
  238. package/assets/esri/core/workers/chunks/b0e52c3775f05aaf7ff6.js +0 -1
  239. package/assets/esri/core/workers/chunks/bfd3d81e8e148be99686.js +0 -1
  240. package/assets/esri/core/workers/chunks/c1e4e9ab4a543e8b350d.js +0 -1
  241. package/assets/esri/core/workers/chunks/cbc5131723cbe29cb88f.js +0 -1
  242. package/assets/esri/core/workers/chunks/ce00509970e7e6eacbdf.js +0 -1
  243. package/assets/esri/core/workers/chunks/cec95ed69c86758d95ec.js +0 -1
  244. package/assets/esri/core/workers/chunks/d391bfbaf0e790cd10d6.js +0 -2
  245. package/assets/esri/core/workers/chunks/d622fb553babd515a21f.js +0 -1
  246. package/assets/esri/core/workers/chunks/dcd6ee9e00ebd519c4a7.js +0 -1
  247. package/assets/esri/core/workers/chunks/ddb55435adeda1e2a1bf.js +0 -1
  248. package/assets/esri/core/workers/chunks/e5208898910c1222b7e6.js +0 -1
  249. package/assets/esri/core/workers/chunks/e5a9c37de44508e9733b.js +0 -1
  250. package/assets/esri/core/workers/chunks/e5b42ddec8e424602e03.js +0 -1
  251. package/assets/esri/core/workers/chunks/eaabb5b010b7bb850b0a.js +0 -1
  252. package/assets/esri/core/workers/chunks/eafc4da265469e9e5e0b.js +0 -1
  253. package/assets/esri/core/workers/chunks/eb1b582a73111c8556c1.js +0 -1
  254. package/assets/esri/core/workers/chunks/f594df2f5ce6ca41a254.js +0 -1
  255. package/assets/esri/core/workers/chunks/f64037a88ab03662dc2a.js +0 -1
  256. package/assets/esri/core/workers/chunks/f888849b0236cc0d6f50.js +0 -1
  257. package/assets/esri/core/workers/chunks/fbcc4cbb221c0fbb90d4.js +0 -1
  258. package/views/2d/analysis/AreaMeasurement/AreaMeasurementLabelVisualization.js +0 -5
  259. /package/assets/esri/core/workers/chunks/{0f735b0dec173142f3b6.js.LICENSE.txt → 3266c3392c24ce6cdd83.js.LICENSE.txt} +0 -0
  260. /package/assets/esri/core/workers/chunks/{d391bfbaf0e790cd10d6.js.LICENSE.txt → 69278d08a7d64917f826.js.LICENSE.txt} +0 -0
  261. /package/assets/esri/core/workers/chunks/{7565b382f6b3d2cb46a3.js.LICENSE.txt → 6f3ffc04086bca30e55d.js.LICENSE.txt} +0 -0
  262. /package/assets/esri/core/workers/chunks/{3a457e718a901a45902e.js.LICENSE.txt → 70e2804d3710c6af468e.js.LICENSE.txt} +0 -0
  263. /package/assets/esri/core/workers/chunks/{aa78b69219d9a0ef1c54.js.LICENSE.txt → 78fc9a55e620602db1ff.js.LICENSE.txt} +0 -0
  264. /package/assets/esri/core/workers/chunks/{d6e0528eacee7ea4c1ce.js.LICENSE.txt → a67c3958d76d10c04fa6.js.LICENSE.txt} +0 -0
  265. /package/assets/esri/core/workers/chunks/{ce16489cf7eb0d78c741.js.LICENSE.txt → be631029691d9a320cb5.js.LICENSE.txt} +0 -0
  266. /package/assets/esri/core/workers/chunks/{f651c05604eab83aef5f.js.LICENSE.txt → d9251c3c85c3ddd242c8.js.LICENSE.txt} +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7048],{6797:(e,t,r)=>{r.d(t,{Ui:()=>p});var i=r(69622),s=r(7762),o=r(88620);const n=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function a(e){return e instanceof i.A}function l(e){return e instanceof s.A?Object.keys(e.items):a(e)?(0,o.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof s.A?e.items[t]:e[t]}function d(e){return e?e.declaredClass:null}function c(e,t){const r=e.diff;if(r&&"function"==typeof r)return r(e,t);const i=l(e),s=l(t);if(0===i.length&&0===s.length)return;if(!i.length||!s.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};const o=s.filter(e=>!i.includes(e)),p=i.filter(e=>!s.includes(e)),y=i.filter(r=>s.includes(r)&&u(e,r)!==u(t,r)).concat(o,p).sort(),h=d(e);if(h&&n.has(h)&&y.length)return{type:"complete",oldValue:e,newValue:t};let f;const m=a(e)&&a(t);for(const i of y){const s=u(e,i),o=u(t,i);let n;if((m||"function"!=typeof s&&"function"!=typeof o)&&s!==o&&(null!=s||null!=o)){if(r&&r[i]&&"function"==typeof r[i])n=r[i]?.(s,o);else if(s instanceof Date&&o instanceof Date){if(s.getTime()===o.getTime())continue;n={type:"complete",oldValue:s,newValue:o}}else n="object"==typeof s&&"object"==typeof o&&d(s)===d(o)?c(s,o):{type:"complete",oldValue:s,newValue:o};null!=n&&(null!=f?f.diff[i]=n:f={type:"partial",diff:{[i]:n}})}}return f}function p(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&d(e)!==d(t)?{type:"complete",oldValue:e,newValue:t}:c(e,t)}},15775:(e,t,r)=>{r.d(t,{A:()=>ce});var i=r(31635),s=r(37838),o=r(11254),n=r(7762),a=r(49186),l=r(44208),u=r(4902),d=r(4718),c=r(92474),p=r(53966),y=r(25728),h=r(39516),f=r(84952),m=r(91429),g=r(56507),b=r(35666),w=r(88620),v=r(5443),S=r(16930),_=r(50498),I=r(89808),x=r(99959);const C=Symbol("isMapImageGraphicOriginSymbol");var A;class F extends x.A{get[(A=C,I.Q)](){return this.layer}constructor(e,t){super(),this[A]=!0,this.type="map-image",this.layer=e,this.sublayer=t}get id(){return`${this.layer.id}:__${this.sublayer.id}__`}}const T=Symbol("isTileGraphicOriginSymbol");var M;class O extends x.A{get[(M=T,I.Q)](){return this.layer}constructor(e,t){super(),this[M]=!0,this.type="tile",this.layer=e,this.sublayer=t}get id(){return`${this.layer.id}:__${this.sublayer.id}__`}}var D,P=r(28132),Z=r(32756),j=r(15426),L=r(33143),E=r(20437),R=r(95466),q=r(30524),V=r(46499),N=r(39383),k=r(37352),$=r(91880),B=r(45067),Q=r(22453),z=r(27733),J=r(49053),G=r(41214),K=r(2272),U=r(54546),Y=r(61956),H=r(30291),X=r(33910),W=r(43440),ee=r(36005),te=r(43937);function re(e){return"esriSMS"===e?.type}function ie(e,t,r){const i=r.minimumWritableOrigin||r.origin;return!!i&&e.originIdOf(t)>=(0,b.aB)(i)}function se(e,t,r){const i=ie(this,t,r);return{ignoreOrigin:!0,allowNull:i,enabled:!!r&&"map-image"===r.layer?.type&&(r.writeSublayerStructure||i)}}function oe(e,t,r){return{enabled:!!r&&"tile"===r.layer?.type&&(ie(this,t,r)||this._isOverridden(t))}}function ne(e,t,r){return{ignoreOrigin:!0,enabled:r&&r.writeSublayerStructure||!1}}function ae(e,t,r){return{ignoreOrigin:!0,enabled:!!r?.writeSublayerStructure&&this.originIdOf(t)>2}}function le(e,t,r){return{ignoreOrigin:!0,enabled:!!r&&(r.writeSublayerStructure||ie(this,t,r))}}let ue=0;const de=new Set(["layer","parent","loaded","loadStatus","loadError","loadWarnings"]);let ce=class extends((0,y.P)((0,u.s)(c.x_))){static{D=this}constructor(e){super(e),this.attributeTableTemplate=null,this.capabilities=void 0,this.maxScaleRange={minScale:0,maxScale:0},this.fields=null,this.fullExtent=null,this.geometryType=null,this.globalIdField=null,this.isTable=!1,this.legendEnabled=!0,this.objectIdField=null,this.parent=null,this.popupEnabled=!0,this.popupTemplate=null,this.relationships=null,this.sourceJSON=null,this.spatialReference=null,this.title=null,this.typeIdField=null,this.type="sublayer",this.types=null,this._lastParsedUrl=null}async load(e){return this.addResolvingPromise(this.reload(e)),this}readCapabilities(e,t){t=t.layerDefinition||t;const{attachment:r,operations:{supportsQuery:i,supportsQueryAttachments:s},query:{supportsFormatPBF:o,supportsOrderBy:n,supportsPagination:a},data:{supportsAttachment:l},queryRelated:u}=(0,Q.S)(t,this.url);return{attachment:{supportsOrderByFields:r?.supportsOrderByFields??!1,supportsResize:r?.supportsResize??!1,supportsTypeWildcard:r?.supportsTypeWildcard??!1},exportMap:{supportsModification:!!t.canModifyLayer},operations:{supportsQuery:i,supportsQueryAttachments:s},data:{supportsAttachment:l},query:{supportsFormatPBF:o,supportsOrderBy:n,supportsPagination:a},queryRelated:u}}get defaultPopupTemplate(){return this.createPopupTemplate()}set definitionExpression(e){this._setAndNotifyLayer("definitionExpression",e)}get effectiveScaleRange(){const{minScale:e,maxScale:t}=this;return{minScale:e,maxScale:t}}readMaxScaleRange(e,t){return{minScale:(t=t.layerDefinition||t).minScale??0,maxScale:t.maxScale??0}}get fieldsIndex(){return new R.A(this.fields||[])}set floorInfo(e){this._setAndNotifyLayer("floorInfo",e)}readGlobalIdFieldFromService(e,t){if((t=t.layerDefinition||t).globalIdField)return t.globalIdField;if(t.fields)for(const e of t.fields)if("esriFieldTypeGlobalID"===e.type)return e.name}get graphicOrigin(){if(!this.layer)return null;switch(this.layer.type){case"tile":return new O(this.layer,this);case"map-image":return new F(this.layer,this)}}get id(){return this._get("id")??ue++}set id(e){this._get("id")!==e&&(!1!==this.layer?.capabilities?.exportMap?.supportsDynamicLayers?this._set("id",e):this._logLockedError("id","capability not available 'layer.capabilities.exportMap.supportsDynamicLayers'"))}readIsTable(e,t){return"Table"===t.type}set labelingInfo(e){this._setAndNotifyLayer("labelingInfo",e)}writeLabelingInfo(e,t,r,i){e&&e.length&&(t.layerDefinition={drawingInfo:{labelingInfo:e.map(e=>e.write({},i))}})}set labelsVisible(e){this._setAndNotifyLayer("labelsVisible",e)}set layer(e){this._set("layer",e),this.sublayers?.forEach(t=>t.layer=e)}set listMode(e){this._set("listMode",e)}set minScale(e){this._setAndNotifyLayer("minScale",e)}readMinScale(e,t){return t.minScale||t.layerDefinition?.minScale||0}set maxScale(e){this._setAndNotifyLayer("maxScale",e)}readMaxScale(e,t){return t.maxScale||t.layerDefinition?.maxScale||0}readObjectIdFieldFromService(e,t){if((t=t.layerDefinition||t).objectIdField)return t.objectIdField;const r=t.fields?.find(e=>"esriFieldTypeOID"===e.type);return r?.name}set opacity(e){this._setAndNotifyLayer("opacity",e)}readOpacity(e,t){const{layerDefinition:r}=t;return 1-.01*(r?.transparency??r?.drawingInfo?.transparency??0)}writeOpacity(e,t,r,i){t.layerDefinition={drawingInfo:{transparency:100-100*e}}}set orderBy(e){this._setAndNotifyLayer("orderBy",e)}writeParent(e,t){this.parent&&this.parent!==this.layer?t.parentLayerId=(0,g.Vr)(this.parent.id):t.parentLayerId=-1}get queryTask(){if(!this.layer)return null;const{capabilities:e,fieldsIndex:t,layer:r,url:i}=this,{spatialReference:s}=r,o="gdbVersion"in r?r.gdbVersion:void 0,n=(0,l.A)("featurelayer-pbf")&&e?.query.supportsFormatPBF;return new P.A({fieldsIndex:t,gdbVersion:o,pbfSupported:n,queryAttachmentsSupported:e?.operations?.supportsQueryAttachments??!1,sourceSpatialReference:s,url:i})}set renderer(e){if((0,q.yp)(e,this.fieldsIndex),e)for(const t of e.symbols)if((0,X.wk)(t)){p.A.getLogger(this).warn("Sublayer renderer should use 2D symbols");break}this._setAndNotifyLayer("renderer",e)}get source(){return this._get("source")||new J.f({mapLayerId:this.id})}set source(e){this._setAndNotifyLayer("source",e)}set sublayers(e){this._handleSublayersChange(e,this._get("sublayers")),this._set("sublayers",e)}castSublayers(e){return(0,g.dp)(n.A.ofType(D),e)}writeSublayers(e,t,r){this.sublayers?.length&&(t[r]=this.sublayers.map(e=>e.id).toArray().reverse())}readTitle(e,t){return t.layerDefinition?.name??t.name}readTypeIdField(e,t){let r=(t=t.layerDefinition||t).typeIdField;if(r&&t.fields){r=r.toLowerCase();const e=t.fields.find(e=>e.name.toLowerCase()===r);e&&(r=e.name)}return r}get url(){const e=this.layer?.parsedUrl??this._lastParsedUrl,t=this.source;if(!e)return null;if(this._lastParsedUrl=e,"map-layer"===t?.type)return`${e.path}/${t.mapLayerId}`;const r={layer:JSON.stringify({source:this.source})};return`${e.path}/dynamicLayer?${(0,f.x0)(r)}`}set url(e){this._overrideIfSome("url",e)}set visible(e){this._setAndNotifyLayer("visible",e)}writeVisible(e,t,r,i){t[r]=this.getAtOrigin("defaultVisibility","service")||e}clone(){const{store:e}=(0,w.oY)(this),t=new D;return(0,w.oY)(t).store=e.clone(de),this.commitProperty("url"),t._lastParsedUrl=this._lastParsedUrl,t}createPopupTemplate(e){return(0,H.tn)(this,e)}createQuery(){return new Y.A({returnGeometry:!0,where:this.definitionExpression||"1=1"})}async createFeatureLayer(){if(this.hasOwnProperty("sublayers"))return null;const e=(await Promise.all([r.e(7330),r.e(9953),r.e(1017),r.e(9708),r.e(8654),r.e(6647),r.e(7694)]).then(r.bind(r,68654))).default,{layer:t,url:i}=this;let s;if(i&&this.originIdOf("url")>2)s=new e({url:i});else{if(!t?.parsedUrl)throw new a.A("createFeatureLayer:missing-information","Cannot create a FeatureLayer without a url or a parent layer");{const r=t.parsedUrl;s=new e({url:r.path}),r&&this.source&&("map-layer"===this.source.type?s.layerId=this.source.mapLayerId:s.dynamicDataSource=this.source)}}return null!=t?.refreshInterval&&(s.refreshInterval=t.refreshInterval),this.definitionExpression&&(s.definitionExpression=this.definitionExpression),this.floorInfo&&(s.floorInfo=(0,d.o8)(this.floorInfo)),this.originIdOf("labelingInfo")>2&&(s.labelingInfo=(0,d.o8)(this.labelingInfo)),this.originIdOf("labelsVisible")>0&&(s.labelsVisible=this.labelsVisible),this.originIdOf("legendEnabled")>0&&(s.legendEnabled=this.legendEnabled),this.originIdOf("visible")>0&&(s.visible=this.visible),this.originIdOf("minScale")>0&&(s.minScale=this.minScale),this.originIdOf("maxScale")>0&&(s.maxScale=this.maxScale),this.originIdOf("opacity")>0&&(s.opacity=this.opacity),this.originIdOf("popupTemplate")>0&&(s.popupTemplate=(0,d.o8)(this.popupTemplate)),this.originIdOf("renderer")>2&&(s.renderer=(0,d.o8)(this.renderer)),"data-layer"===this.source?.type&&(s.dynamicDataSource=this.source.clone()),this.originIdOf("title")>0&&(s.title=this.title),"map-image"===t?.type&&t.originIdOf("customParameters")>0&&(s.customParameters=t.customParameters),"tile"===t?.type&&t.originIdOf("customParameters")>0&&(s.customParameters=t.customParameters),s}getField(e){return this.fieldsIndex.get(e)}getFeatureType(e){return(0,j.xd)(this.types,this.typeIdField,e)}getFieldDomain(e,t){const r=t?.feature,i=this.getFeatureType(r);if(i){const t=i.domains&&i.domains[e];if(t&&"inherited"!==t.type)return t}return this._getLayerDomain(e)}async queryAttachments(e,t){await this.load();let r=U.A.from(e);const i=this.capabilities;if(!i?.data?.supportsAttachment)throw new a.A("queryAttachments:not-supported","this layer doesn't support attachments");const{attachmentTypes:s,objectIds:o,globalIds:n,num:l,size:u,start:d,where:c}=r;if(!i?.operations?.supportsQueryAttachments&&(s?.length>0||n?.length>0||u?.length>0||l||d||c))throw new a.A("queryAttachments:option-not-supported","when 'capabilities.operations.supportsQueryAttachments' is false, only objectIds is supported",r);if(!(o?.length||n?.length||c))throw new a.A("queryAttachments:invalid-query","'objectIds', 'globalIds', or 'where' are required to perform attachment query",r);return!i?.attachment?.supportsOrderByFields&&r.orderByFields?.length&&(r=r.clone(),r.orderByFields=null),this.queryTask.executeAttachmentQuery(r,t)}async queryFeatureCount(e=this.createQuery(),t){if(await this.load(),!this.capabilities.operations.supportsQuery)throw new a.A("queryFeatureCount:not-supported","this layer doesn't support queries.");if(!this.url)throw new a.A("queryFeatureCount:not-supported","this layer has no url.");const r=this.layer?.apiKey;return await this.queryTask.executeForCount(e,{...t,query:{...this.layer?.customParameters,token:r}})}async queryFeatures(e=this.createQuery(),t){if(await this.load(),!this.capabilities.operations.supportsQuery)throw new a.A("queryFeatures:not-supported","this layer doesn't support queries.");if(!this.url)throw new a.A("queryFeatures:not-supported","this layer has no url.");const r=await this.queryTask.execute(e,{...t,query:{...this.layer?.customParameters,token:this.layer?.apiKey}});if(r?.features){const e=this.graphicOrigin;for(const t of r.features)t.sourceLayer=this,t.origin=e}return r}async queryObjectIds(e=this.createQuery(),t){if(await this.load(),!this.capabilities.operations.supportsQuery)throw new a.A("queryObjectIds:not-supported","this layer doesn't support queries.");if(!this.url)throw new a.A("queryObjectIds:not-supported","this layer has no url.");const r=this.layer?.apiKey;return await this.queryTask.executeForIds(e,{...t,query:{...this.layer?.customParameters,token:r}})}async queryRelatedFeatures(e,t){if(await this.load(),!this.capabilities.operations.supportsQuery)throw new a.A("queryRelatedFeatures:not-supported","this layer doesn't support queries.");if(!this.url)throw new a.A("queryRelatedFeatures:not-supported","this layer has no url.");const r=this.layer?.apiKey;return await this.queryTask.executeRelationshipQuery(e,{...t,query:{...this.layer?.customParameters,token:r}})}async queryRelatedFeaturesCount(e,t){if(await this.load(),!this.capabilities.operations.supportsQuery)throw new a.A("queryRelatedFeaturesCount:not-supported","this layer doesn't support queries.");if(!this.capabilities.queryRelated.supportsCount)throw new a.A("queryRelatedFeaturesCount:not-supported","this layer doesn't support query related counts.");if(!this.url)throw new a.A("queryRelatedFeaturesCount:not-supported","this layer has no url.");const r=this.layer?.apiKey;return await this.queryTask.executeRelationshipQueryForCount(e,{...t,query:{...this.layer?.customParameters,token:r}})}async reload(e){if("not-loaded"===this.loadStatus)return this.load(e).then(()=>{});const{layer:t,url:r}=this;if(!t&&!r)throw new a.A("sublayer:missing-layer","Sublayer can't be loaded without being part of a layer",{sublayer:this});const i=t?await t.fetchSublayerInfo(this,e):(await(0,o.A)(r,{query:{f:"json"},...e})).data;if(this.loaded&&this.originIdOf("url")>2){const e=new Set(["drawingInfo","maxScale","minScale","name"]);if(null!=i)for(const t of Object.keys(i))e.has(t)&&delete i[t]}i&&(this.sourceJSON={...this.sourceJSON,...i},this.read({layerDefinition:i},{origin:"service",layer:t,url:(0,K.Dl)(r)}))}toExportImageJSON(e){const t={id:this.id,source:this.source?.toJSON()||{mapLayerId:this.id,type:"mapLayer"}},r=(0,h.mA)(e,this.definitionExpression);null!=r&&(t.definitionExpression=r);const i=["renderer","labelingInfo","opacity","labelsVisible"].reduce((e,t)=>(e[t]=this.originIdOf(t),e),{}),s=Object.keys(i).some(e=>i[e]>2);if(s){const e=t.drawingInfo={};if(i.renderer>2&&(e.renderer=this.renderer?this.renderer.toJSON():null),i.labelsVisible>2&&(e.showLabels=this.labelsVisible),this.labelsVisible&&i.labelingInfo>2)if(this.labelingInfo){!this.loaded&&this.labelingInfo?.some(e=>!e.labelPlacement)&&p.A.getLogger(this).warnOnce(`A Sublayer (title: ${this.title}, id: ${this.id}) has an undefined 'labelPlacement' and so labels cannot be displayed. Either define a valid 'labelPlacement' or call Sublayer.load() to use a default value based on geometry type.`,{sublayer:this});let t=this.labelingInfo;null!=this.geometryType&&(t=(0,N.z)(this.labelingInfo,_.gy.toJSON(this.geometryType))),e.showLabels=!0,e.labelingInfo=t.filter(e=>e.labelPlacement).map(e=>e.toJSON({origin:"service",layer:this.layer}))}else e.showLabels=!1;i.opacity>2&&(e.transparency=100-100*this.opacity),this._assignDefaultSymbolColors(e.renderer)}return(this.layer?.capabilities?.exportMap?.supportsSublayerOrderBy??!1)&&this.originIdOf("orderBy")>2&&(t.orderBy=this.orderBy?.map(e=>e.toJSON())??null),t}_assignDefaultSymbolColors(e){this._forEachSimpleMarkerSymbols(e,e=>{e.color||"esriSMSX"!==e.style&&"esriSMSCross"!==e.style||(e.outline?.color?e.color=e.outline.color:e.color=[0,0,0,0])})}_forEachSimpleMarkerSymbols(e,t){if(e){const r=("uniqueValueInfos"in e?e.uniqueValueInfos:"classBreakInfos"in e?e.classBreakInfos:null)??[];for(const e of r)re(e.symbol)&&t(e.symbol);"symbol"in e&&re(e.symbol)&&t(e.symbol),"defaultSymbol"in e&&re(e.defaultSymbol)&&t(e.defaultSymbol)}}_setAndNotifyLayer(e,t){const r=this.layer,i=this._get(e);let s,o;switch(e){case"definitionExpression":case"floorInfo":s="supportsSublayerDefinitionExpression";break;case"minScale":case"maxScale":case"visible":s="supportsSublayerVisibility";break;case"labelingInfo":case"labelsVisible":case"opacity":case"renderer":case"source":s="supportsDynamicLayers",o="supportsModification";break;case"orderBy":s="supportsSublayerOrderBy",o="supportsModification"}const n=(0,w.oY)(this).getDefaultOrigin();if("service"!==n){if(s&&!1===this.layer?.capabilities?.exportMap?.[s])return void this._logLockedError(e,`capability not available 'layer.capabilities.exportMap.${s}'`);if(o&&!1===this.capabilities?.exportMap[o])return void this._logLockedError(e,`capability not available 'capabilities.exportMap.${o}'`)}"source"!==e||"not-loaded"===this.loadStatus?(this._set(e,t),"service"!==n&&i!==t&&r?.emit&&r.emit("sublayer-update",{propertyName:e,target:this})):this._logLockedError(e,"'source' can't be changed after calling sublayer.load()")}_handleSublayersChange(e,t){t&&(t.forEach(e=>{e.parent=null,e.layer=null}),this.removeAllHandles()),e&&(e.forEach(e=>{e.parent=this,e.layer=this.layer}),this.addHandles([e.on("after-add",({item:e})=>{e.parent=this,e.layer=this.layer}),e.on("after-remove",({item:e})=>{e.parent=null,e.layer=null}),e.on("before-changes",e=>{(this.layer?.capabilities?.exportMap?.supportsSublayersChanges??1)||(p.A.getLogger(this).error(new a.A("sublayer:sublayers-non-modifiable","Sublayer can't be added, moved, or removed from the layer's sublayers",{sublayer:this,layer:this.layer})),e.preventDefault())})]))}_logLockedError(e,t){const{layer:r,declaredClass:i}=this;p.A.getLogger(i).error(new a.A("sublayer:locked",`Property '${String(e)}' can't be changed on Sublayer from the layer '${r?.id}'`,{reason:t,sublayer:this,layer:r}))}_getLayerDomain(e){return this.fieldsIndex.get(e)?.domain??null}static{this.test={isMapImageLayerOverridePolicy:e=>e===ae||e===ne||e===se,isTileImageLayerOverridePolicy:e=>e===oe}}};(0,i.Cg)([(0,m.MZ)({type:W.A,json:{name:"attributeTableInfo",write:{overridePolicy:se},origins:{"web-scene":{write:!1}}}})],ce.prototype,"attributeTableTemplate",void 0),(0,i.Cg)([(0,m.MZ)({readOnly:!0})],ce.prototype,"capabilities",void 0),(0,i.Cg)([(0,ee.w)("service","capabilities",["layerDefinition.canModifyLayer","layerDefinition.capabilities"])],ce.prototype,"readCapabilities",null),(0,i.Cg)([(0,m.MZ)()],ce.prototype,"defaultPopupTemplate",null),(0,i.Cg)([(0,m.MZ)({type:String,value:null,json:{name:"layerDefinition.definitionExpression",write:{allowNull:!0,overridePolicy:se}}})],ce.prototype,"definitionExpression",null),(0,i.Cg)([(0,m.MZ)({readOnly:!0})],ce.prototype,"effectiveScaleRange",null),(0,i.Cg)([(0,ee.w)("service","maxScaleRange",["minScale","maxScale"])],ce.prototype,"readMaxScaleRange",null),(0,i.Cg)([(0,m.MZ)({type:[E.A],json:{origins:{service:{read:{source:"layerDefinition.fields"}}}}})],ce.prototype,"fields",void 0),(0,i.Cg)([(0,m.MZ)({readOnly:!0})],ce.prototype,"fieldsIndex",null),(0,i.Cg)([(0,m.MZ)({type:k.A,value:null,json:{name:"layerDefinition.floorInfo",read:{source:"layerDefinition.floorInfo"},write:{target:"layerDefinition.floorInfo",overridePolicy:se},origins:{"web-scene":{read:!1,write:!1}}}})],ce.prototype,"floorInfo",null),(0,i.Cg)([(0,m.MZ)({type:v.A,json:{read:{source:"layerDefinition.extent"}}})],ce.prototype,"fullExtent",void 0),(0,i.Cg)([(0,m.MZ)({type:_.gy.apiValues,json:{origins:{service:{name:"layerDefinition.geometryType",read:{reader:_.gy.read}}}}})],ce.prototype,"geometryType",void 0),(0,i.Cg)([(0,m.MZ)({type:String})],ce.prototype,"globalIdField",void 0),(0,i.Cg)([(0,ee.w)("service","globalIdField",["layerDefinition.globalIdField","layerDefinition.fields"])],ce.prototype,"readGlobalIdFieldFromService",null),(0,i.Cg)([(0,m.MZ)({readOnly:!0})],ce.prototype,"graphicOrigin",null),(0,i.Cg)([(0,m.MZ)({type:g.jz,json:{write:{ignoreOrigin:!0}}})],ce.prototype,"id",null),(0,i.Cg)([(0,m.MZ)({readOnly:!0})],ce.prototype,"isTable",void 0),(0,i.Cg)([(0,ee.w)("service","isTable",["type"])],ce.prototype,"readIsTable",null),(0,i.Cg)([(0,m.MZ)({value:null,type:[V.A],json:{read:{source:"layerDefinition.drawingInfo.labelingInfo"},write:{target:"layerDefinition.drawingInfo.labelingInfo",overridePolicy:ae}}})],ce.prototype,"labelingInfo",null),(0,i.Cg)([(0,te.K)("labelingInfo")],ce.prototype,"writeLabelingInfo",null),(0,i.Cg)([(0,m.MZ)({type:Boolean,value:!0,json:{read:{source:"layerDefinition.drawingInfo.showLabels"},write:{target:"layerDefinition.drawingInfo.showLabels",overridePolicy:ne}}})],ce.prototype,"labelsVisible",null),(0,i.Cg)([(0,m.MZ)({value:null})],ce.prototype,"layer",null),(0,i.Cg)([(0,m.MZ)({type:String,json:{write:{overridePolicy:oe}}})],ce.prototype,"layerItemId",void 0),(0,i.Cg)([(0,m.MZ)({type:Boolean,value:!0,json:{origins:{service:{read:{enabled:!1}}},read:{source:"showLegend"},write:{target:"showLegend",overridePolicy:le}}})],ce.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,m.MZ)({type:["show","hide","hide-children"],value:"show",json:{read:!1,write:!1,origins:{"web-scene":{read:!0,write:!0}}}})],ce.prototype,"listMode",null),(0,i.Cg)([(0,m.MZ)({type:Number,value:0,json:{write:{overridePolicy:ne}}})],ce.prototype,"minScale",null),(0,i.Cg)([(0,ee.w)("minScale",["minScale","layerDefinition.minScale"])],ce.prototype,"readMinScale",null),(0,i.Cg)([(0,m.MZ)({type:Number,value:0,json:{write:{overridePolicy:ne}}})],ce.prototype,"maxScale",null),(0,i.Cg)([(0,ee.w)("maxScale",["maxScale","layerDefinition.maxScale"])],ce.prototype,"readMaxScale",null),(0,i.Cg)([(0,m.MZ)()],ce.prototype,"objectIdField",void 0),(0,i.Cg)([(0,ee.w)("service","objectIdField",["layerDefinition.objectIdField","layerDefinition.fields"])],ce.prototype,"readObjectIdFieldFromService",null),(0,i.Cg)([(0,m.MZ)({type:Number,value:1,json:{write:{target:"layerDefinition.drawingInfo.transparency",overridePolicy:ne}}})],ce.prototype,"opacity",null),(0,i.Cg)([(0,ee.w)("opacity",["layerDefinition.drawingInfo.transparency","layerDefinition.transparency"])],ce.prototype,"readOpacity",null),(0,i.Cg)([(0,te.K)("opacity")],ce.prototype,"writeOpacity",null),(0,i.Cg)([(0,m.MZ)({value:null,type:[$.A],json:{name:"layerDefinition.orderBy",read:{reader:Z.Rr},write:{overridePolicy:se},origins:{"web-scene":{read:!1,write:!1}}}})],ce.prototype,"orderBy",null),(0,i.Cg)([(0,m.MZ)({json:{type:g.jz,write:{target:"parentLayerId",writerEnsuresNonNull:!0,overridePolicy:ne}}})],ce.prototype,"parent",void 0),(0,i.Cg)([(0,te.K)("parent")],ce.prototype,"writeParent",null),(0,i.Cg)([(0,m.MZ)({type:Boolean,value:!0,json:{read:{source:"disablePopup",reader:(e,t)=>!t.disablePopup},write:{target:"disablePopup",overridePolicy:le,writer(e,t,r){t[r]=!e}}}})],ce.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,m.MZ)({type:s.A,json:{read:{source:"popupInfo"},write:{target:"popupInfo",overridePolicy:le}}})],ce.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,m.MZ)({readOnly:!0})],ce.prototype,"queryTask",null),(0,i.Cg)([(0,m.MZ)({type:[B.A],readOnly:!0,json:{origins:{service:{read:{source:"layerDefinition.relationships"}}}}})],ce.prototype,"relationships",void 0),(0,i.Cg)([(0,m.MZ)({types:G.Hg,value:null,json:{name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy:ae},origins:{"web-scene":{types:G.XJ,name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy:ae}}}}})],ce.prototype,"renderer",null),(0,i.Cg)([(0,m.MZ)({types:{key:"type",base:null,typeMap:{"data-layer":z.L,"map-layer":J.f}},cast(e){if(e){if("mapLayerId"in e)return(0,g.PZ)(J.f,e);if("dataSource"in e)return(0,g.PZ)(z.L,e)}return e},json:{name:"layerDefinition.source",write:{overridePolicy:ne}}})],ce.prototype,"source",null),(0,i.Cg)([(0,m.MZ)()],ce.prototype,"sourceJSON",void 0),(0,i.Cg)([(0,m.MZ)({type:S.A,json:{origins:{service:{read:{source:"layerDefinition.extent.spatialReference"}}}}})],ce.prototype,"spatialReference",void 0),(0,i.Cg)([(0,m.MZ)({value:null,json:{type:[g.jz],write:{target:"subLayerIds",allowNull:!0,overridePolicy:ne}}})],ce.prototype,"sublayers",null),(0,i.Cg)([(0,m.wg)("sublayers")],ce.prototype,"castSublayers",null),(0,i.Cg)([(0,te.K)("sublayers")],ce.prototype,"writeSublayers",null),(0,i.Cg)([(0,m.MZ)({type:String,json:{name:"name",write:{overridePolicy:le}}})],ce.prototype,"title",void 0),(0,i.Cg)([(0,ee.w)("service","title",["name","layerDefinition.name"])],ce.prototype,"readTitle",null),(0,i.Cg)([(0,m.MZ)({type:String})],ce.prototype,"typeIdField",void 0),(0,i.Cg)([(0,m.MZ)({json:{read:!1},readOnly:!0,value:"sublayer"})],ce.prototype,"type",void 0),(0,i.Cg)([(0,ee.w)("typeIdField",["layerDefinition.typeIdField"])],ce.prototype,"readTypeIdField",null),(0,i.Cg)([(0,m.MZ)({type:[L.A],json:{origins:{service:{read:{source:"layerDefinition.types"}}}}})],ce.prototype,"types",void 0),(0,i.Cg)([(0,m.MZ)({type:String,json:{name:"layerUrl",write:{overridePolicy:oe}}})],ce.prototype,"url",null),(0,i.Cg)([(0,m.MZ)({type:Boolean,value:!0,json:{read:{source:"defaultVisibility"},write:{target:"defaultVisibility",overridePolicy:ne}}})],ce.prototype,"visible",null),(0,i.Cg)([(0,te.K)("visible")],ce.prototype,"writeVisible",null),ce=D=(0,i.Cg)([(0,m.$K)("esri.layers.support.Sublayer")],ce)},20615:(e,t,r)=>{r.d(t,{I:()=>n});var i=r(2272),s=r(80893),o=r(61956);function n(e,t,r,n){return(0,s.gW)((0,i.Dl)(e),o.A.from(t),r,n)}},28132:(e,t,r)=>{r.d(t,{A:()=>D});var i=r(31635),s=r(69622),o=r(49186),n=r(44208),a=r(74887),l=r(84952),u=r(91429),d=r(21325),c=r(20557),p=r(27733),y=r(2272),h=r(20615),f=r(5443),m=r(80893),g=r(61956),b=r(78286),w=r(99199),v=r(97768),S=r(62815),_=r(90708);function I(e,t){return t}function x(e,t,r,i){switch(r){case 0:return T(e,t+i,0);case 1:return"lowerLeft"===e.originPosition?T(e,t+i,1):function({translate:e,scale:t},r,i){return e[i]-r*t[i]}(e,t+i,1)}}function C(e,t,r,i){return 2===r?T(e,t,2):x(e,t,r,i)}function A(e,t,r,i){return 2===r?0===t?0:T(e,t,3):x(e,t,r,i)}function F(e,t,r,i){return 3===r?0===t?0:T(e,t,3):C(e,t,r,i)}function T({translate:e,scale:t},r,i){return e[i]+r*t[i]}class M{constructor(e){this._options=e,this.geometryTypes=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"],this._previousCoordinate=[0,0],this._transform=null,this._applyTransform=I,this._lengths=[],this._currentLengthIndex=0,this._toAddInCurrentPath=0,this._vertexDimension=0,this._mValueOffset=null,this._coordinateBuffer=null,this._coordinateBufferPtr=0,this._attributesConstructor=class{}}createFeatureResult(){return{fields:[],features:[]}}finishFeatureResult(e){if(this._options.applyTransform&&(e.transform=null),this._attributesConstructor=class{},this._coordinateBuffer=null,this._lengths.length=0,!e.hasZ)return;const t=(0,S.N)(e.geometryType,this._options.sourceSpatialReference,e.spatialReference);if(null!=t)for(const r of e.features)t(r.geometry)}createSpatialReference(){return{}}addField(e,t){const r=e.fields;(0,v.Lw)(r),r.push(t);const i=r.map(e=>e.name);this._attributesConstructor=function(){for(const e of i)this[e]=null}}addFeature(e,t){e.features.push(t)}prepareFeatures(e){switch(this._transform=e.transform,this._options.applyTransform&&e.transform&&(this._applyTransform=this._deriveApplyTransform(e)),this._mValueOffset=null,this._vertexDimension=2,e.hasZ&&this._vertexDimension++,e.hasM&&(this._mValueOffset=this._vertexDimension,this._vertexDimension++),e.geometryType){case"esriGeometryPoint":this.addCoordinate=(e,t,r)=>this.addCoordinatePoint(e,t,r),this.createGeometry=e=>this.createPointGeometry(e);break;case"esriGeometryPolygon":this.addCoordinate=(e,t,r)=>this._addCoordinatePolygon(e,t,r),this.createGeometry=e=>this._createPolygonGeometry(e);break;case"esriGeometryPolyline":this.addCoordinate=(e,t,r)=>this._addCoordinatePolyline(e,t,r),this.createGeometry=e=>this._createPolylineGeometry(e);break;case"esriGeometryMultipoint":this.addCoordinate=(e,t,r)=>this._addCoordinateMultipoint(e,t,r),this.createGeometry=e=>this._createMultipointGeometry(e)}}createFeature(){return this._lengths.length=0,this._currentLengthIndex=0,this._previousCoordinate[0]=0,this._previousCoordinate[1]=0,this._coordinateBuffer=null,this._coordinateBufferPtr=0,{attributes:new this._attributesConstructor}}allocateCoordinates(){}addLength(e,t,r){0===this._lengths.length&&(this._toAddInCurrentPath=t),this._lengths.push(t)}addQueryGeometry(e,t){const{queryGeometry:r,queryGeometryType:i}=t,s=r.justXY();this._transform&&(0,_.aQ)(s,this._transform);const o=(0,_.zv)(s,i,!1,!1);e.queryGeometryType=i,e.queryGeometry={...o}}createPointGeometry(e){const t={x:0,y:0,spatialReference:e.spatialReference};return e.hasZ&&(t.z=0),e.hasM&&(t.m=0),t}addCoordinatePoint(e,t,r){const i=this._transform;switch(t=this._applyTransform(i,t,r,0),r){case 0:e.x=t;break;case 1:e.y=t;break;case 2:"z"in e?e.z=t:e.m=t;break;case 3:e.m=t}}_transformPathLikeValue(e,t){let r=0;t<=1&&(r=this._previousCoordinate[t],this._previousCoordinate[t]+=e);const i=this._transform;return null!==this._mValueOffset&&0===e&&t>0&&!(t%this._mValueOffset)?0:this._applyTransform(i,e,t,r)}_addCoordinatePolyline(e,t,r){this._dehydratedAddPointsCoordinate(e.paths,t,r)}_addCoordinatePolygon(e,t,r){this._dehydratedAddPointsCoordinate(e.rings,t,r)}_addCoordinateMultipoint(e,t,r){0===r&&e.points.push([]);const i=this._transformPathLikeValue(t,r);e.points[e.points.length-1].push(i)}_createPolygonGeometry(e){return{rings:[[]],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_createPolylineGeometry(e){return{paths:[[]],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_createMultipointGeometry(e){return{points:[],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_dehydratedAddPointsCoordinate(e,t,r){0===r&&0===this._toAddInCurrentPath--&&(e.push([]),this._toAddInCurrentPath=this._lengths[++this._currentLengthIndex]-1,this._previousCoordinate[0]=0,this._previousCoordinate[1]=0);const i=this._transformPathLikeValue(t,r),s=e[e.length-1];0===r&&(this._coordinateBufferPtr=0,this._coordinateBuffer=new Array(this._vertexDimension),s.push(this._coordinateBuffer)),this._coordinateBuffer[this._coordinateBufferPtr++]=i}_deriveApplyTransform(e){const{hasZ:t,hasM:r}=e;return t&&r?F:t?C:r?A:x}}var O=r(22671);let D=class extends s.A{constructor(e){super(e),this.dynamicDataSource=null,this.fieldsIndex=null,this.gdbVersion=null,this.infoFor3D=null,this.pbfSupported=!1,this.queryAttachmentsSupported=!1,this.sourceSpatialReference=null,this.uniqueIdFields=null,this.url=null}get parsedUrl(){return(0,l.An)(this.url)}async execute(e,t){const r=await this.executeJSON(e,t);return this.featureSetFromJSON(e,r,t)}async executeJSON(e,t){const r=this._normalizeQuery(e),i=null!=e.outStatistics?.[0],s=(0,n.A)("featurelayer-pbf-statistics"),o=(!i||s)&&!0!==e.returnTrueCurves;let a;if(this.pbfSupported&&o)try{a=await async function(e,t,r,i){const s=(0,y.Dl)(e),o={...r},n=g.A.from(t),a=!n.quantizationParameters;return await(0,m.IJ)(s,n,new M({sourceSpatialReference:n.sourceSpatialReference,applyTransform:a}),o,i)}(this.url,r,t,{uniqueIdFields:this.uniqueIdFields})}catch(e){if("query:parsing-pbf"!==e.name)throw e;this.pbfSupported=!1}return this.pbfSupported&&o||(a=await(0,w.e)(this.url,r,t,{uniqueIdFields:this.uniqueIdFields})),this._normalizeFields(a.fields),a}async featureSetFromJSON(e,t,i){if(!this._queryIs3DObjectFormat(e)||null==this.infoFor3D||!t.features)return O.A.fromJSON(t);const{meshFeatureSetFromJSON:s}=await(0,a.qr)(Promise.all([r.e(8487),r.e(36),r.e(5066)]).then(r.bind(r,40050)),i);return s(e,this.infoFor3D,t)}executeForCount(e,t){return(0,h.I)(this.url,this._normalizeQuery(e),t,{uniqueIdFields:this.uniqueIdFields})}executeForExtent(e,t){return async function(e,t,r){const i=(0,y.Dl)(e),s=await(0,m.Jf)(i,g.A.from(t),{...r}),o=s.extent;return!o||isNaN(o.xmin)||isNaN(o.ymin)||isNaN(o.xmax)||isNaN(o.ymax)?{count:s.count,extent:null}:{count:s.count,extent:f.A.fromJSON(o)}}(this.url,this._normalizeQuery(e),t)}executeForIds(e,t){return(0,b.V)(this.url,this._normalizeQuery(e),t,{uniqueIdFields:this.uniqueIdFields})}async executeRelationshipQuery(e,t){const[{default:i},{executeRelationshipQuery:s}]=await(0,a.qr)(Promise.all([Promise.resolve().then(r.bind(r,26591)),r.e(1763).then(r.bind(r,71763))]),t);let o=i.from(e);return(this.gdbVersion||this.dynamicDataSource)&&(o=o.clone(),o.gdbVersion=o.gdbVersion||this.gdbVersion,o.dynamicDataSource=o.dynamicDataSource||this.dynamicDataSource),s(this.url,o,t)}async executeRelationshipQueryForCount(e,t){const[{default:i},{executeRelationshipQueryForCount:s}]=await(0,a.qr)(Promise.all([Promise.resolve().then(r.bind(r,26591)),r.e(1763).then(r.bind(r,71763))]),t);let o=i.from(e);return(this.gdbVersion||this.dynamicDataSource)&&(o=o.clone(),o.gdbVersion=o.gdbVersion||this.gdbVersion,o.dynamicDataSource=o.dynamicDataSource||this.dynamicDataSource),s(this.url,o,t)}async executeAttachmentQuery(e,t){const{executeAttachmentQuery:i,fetchAttachments:s,processAttachmentQueryResult:o}=await(0,a.qr)(r.e(9239).then(r.bind(r,9239)),t),n=(0,y.Dl)(this.url);return o(n,await(this.queryAttachmentsSupported?i(n,e,t):s(n,e,t)))}async executeAttributeBinsQuery(e,t){const{executeAttributeBinsQuery:i}=await(0,a.qr)(r.e(3103).then(r.bind(r,33103)),t);return i(this.parsedUrl,e,t)}async executePivotQuery(e,t){const{executePivotQuery:i}=await(0,a.qr)(r.e(566).then(r.bind(r,80566)),t);return i(this.parsedUrl,e,t)}async executeTopFeaturesQuery(e,t){const{executeTopFeaturesQuery:i}=await(0,a.qr)(r.e(1273).then(r.bind(r,11273)),t);return i(this.parsedUrl,e,this.sourceSpatialReference,t)}async executeForTopIds(e,t){const{executeForTopIds:i}=await(0,a.qr)(r.e(1277).then(r.bind(r,21277)),t);return i(this.parsedUrl,e,t)}async executeForTopExtents(e,t){const{executeForTopExtents:i}=await(0,a.qr)(r.e(8018).then(r.bind(r,8018)),t);return i(this.parsedUrl,e,t)}async executeForTopCount(e,t){const{executeForTopCount:i}=await(0,a.qr)(r.e(980).then(r.bind(r,10980)),t);return i(this.parsedUrl,e,t)}_normalizeQuery(e){let t=g.A.from(e);t.sourceSpatialReference=t.sourceSpatialReference||this.sourceSpatialReference,(this.gdbVersion||this.dynamicDataSource)&&(t=t===e?t.clone():t,t.gdbVersion=e.gdbVersion||this.gdbVersion,t.dynamicDataSource=e.dynamicDataSource?p.L.from(e.dynamicDataSource):this.dynamicDataSource);const{infoFor3D:r}=this;if(null!=r&&this._queryIs3DObjectFormat(e)){if(t=t===e?t.clone():t,t.formatOf3DObjects=(0,c.Hz)(r),!t.formatOf3DObjects)throw new o.A("query:unsupported-3d-query-formats","Could not find any supported 3D object query format. Only supported formats are 3D_glb and 3D_gltf");if(t.outSpatialReference&&!(0,d.aI)(t.outSpatialReference,this.sourceSpatialReference))throw new o.A("query:unsupported-out-spatial-reference","3D object feature services do not support projection of geometries");if(null==t.outFields||!t.outFields.includes("*")){t=t===e?t.clone():t,null==t.outFields&&(t.outFields=[]);const{originX:i,originY:s,originZ:o,translationX:n,translationY:a,translationZ:l,scaleX:u,scaleY:d,scaleZ:c,rotationX:p,rotationY:y,rotationZ:h,rotationDeg:f}=r.transformFieldRoles;t.outFields.push(i,s,o,n,a,l,u,d,c,p,y,h,f)}}return t}_normalizeFields(e){if(null!=this.fieldsIndex&&null!=e)for(const t of e){const e=this.fieldsIndex.get(t.name);e&&Object.assign(t,e.toJSON())}}_queryIs3DObjectFormat(e){return null!=this.infoFor3D&&!0===e.returnGeometry&&"xyFootprint"!==e.multipatchOption&&!e.outStatistics}};(0,i.Cg)([(0,u.MZ)({type:p.L})],D.prototype,"dynamicDataSource",void 0),(0,i.Cg)([(0,u.MZ)()],D.prototype,"fieldsIndex",void 0),(0,i.Cg)([(0,u.MZ)()],D.prototype,"gdbVersion",void 0),(0,i.Cg)([(0,u.MZ)()],D.prototype,"infoFor3D",void 0),(0,i.Cg)([(0,u.MZ)({readOnly:!0})],D.prototype,"parsedUrl",null),(0,i.Cg)([(0,u.MZ)()],D.prototype,"pbfSupported",void 0),(0,i.Cg)([(0,u.MZ)()],D.prototype,"queryAttachmentsSupported",void 0),(0,i.Cg)([(0,u.MZ)()],D.prototype,"sourceSpatialReference",void 0),(0,i.Cg)([(0,u.MZ)()],D.prototype,"uniqueIdFields",void 0),(0,i.Cg)([(0,u.MZ)({type:String})],D.prototype,"url",void 0),D=(0,i.Cg)([(0,u.$K)("esri.layers.graphics.sources.support.QueryTask")],D)},29005:(e,t,r)=>{r.d(t,{A:()=>u});var i=r(31635),s=r(69540),o=r(66552),n=r(25482),a=r(91429);const l=new o.J({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let u=class extends((0,s.OU)(n.o)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"name",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"description",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:l.read,write:l.write}})],u.prototype,"drawingTool",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"prototype",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"thumbnail",void 0),u=(0,i.Cg)([(0,a.$K)("esri.layers.support.FeatureTemplate")],u)},32730:(e,t,r)=>{r.d(t,{BI:()=>m,D3:()=>h,XJ:()=>f,lc:()=>y,mX:()=>b,rU:()=>g,tH:()=>I});var i=r(799);const s="__begin__",o="__end__",n=new RegExp(s,"ig"),a=new RegExp(o,"ig"),l=new RegExp("^"+s,"i"),u=new RegExp(o+"$","i"),d='"',c=d+" + ",p=" + "+d;function y(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function h(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function f(e){const t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=y(e.labelExpression),t.type="conventional"),t}function m(e){const t=f(e);if(!t)return null;switch(t.type){case"conventional":return b(t.expression);case"arcade":return t.expression}return null}function g(e){const t=f(e);if(!t)return null;switch(t.type){case"conventional":return function(e){const t=e?.match(w);return t?.[1].trim()||null}(t.expression);case"arcade":return I(t.expression)}return null}function b(e){let t;return e?(t=(0,i.HC)(e,e=>s+'$feature["'+e+'"]'+o),t=l.test(t)?t.replace(l,""):d+t,t=u.test(t)?t.replace(u,""):t+d,t=t.replaceAll(n,c).replaceAll(a,p)):t='""',t}const w=/^\s*\{([^}]+)\}\s*$/i,v=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,S=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,_=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function I(e){if(!e)return null;let t=v.exec(e)||S.exec(e);return t?t[1]||t[3]:(t=_.exec(e),t?t[2]:null)}},32756:(e,t,r)=>{r.d(t,{Rr:()=>a,fY:()=>u,ne:()=>l});var i=r(31635),s=r(93637),o=r(91429),n=r(91880);function a(e,t,r){if(!e)return null;const i=e.find(e=>!!e.field);if(!i)return null;const s=new n.A;return s.read(i,r),[s]}const l={type:[n.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:a},write:{writer:function(e,t,r,i){const o=e.find(e=>!!e.field);o&&(0,s.sM)(r,[o.toJSON()],t)}}}},u=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,i.Cg)([(0,o.MZ)(l)],r.prototype,"orderBy",void 0),r=(0,i.Cg)([(0,o.$K)("esri.layers.mixins.OrderedLayer")],r),r}},33143:(e,t,r)=>{r.d(t,{A:()=>c});var i=r(31635),s=r(69540),o=r(25482),n=r(91429),a=r(80451),l=r(29005),u=r(36005),d=r(43937);let c=class extends((0,s.OU)(o.o)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const r of Object.keys(e))t[r]=(0,a.rS)(e[r]);return t}writeDomains(e,t){const r={};for(const t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,i.Cg)([(0,n.MZ)({json:{write:!0}})],c.prototype,"id",void 0),(0,i.Cg)([(0,n.MZ)({json:{write:!0}})],c.prototype,"name",void 0),(0,i.Cg)([(0,n.MZ)({json:{write:!0}})],c.prototype,"domains",void 0),(0,i.Cg)([(0,u.w)("domains")],c.prototype,"readDomains",null),(0,i.Cg)([(0,d.K)("domains")],c.prototype,"writeDomains",null),(0,i.Cg)([(0,n.MZ)({type:[l.A],json:{write:!0}})],c.prototype,"templates",void 0),c=(0,i.Cg)([(0,n.$K)("esri.layers.support.FeatureType")],c)},33446:(e,t,r)=>{r.d(t,{C:()=>n,m:()=>o});var i=r(49186),s=r(74887);async function o(e,t,r){let o;try{o=await createImageBitmap(e)}catch(e){throw new i.A("request:server",`Unable to load ${t}`,{url:t,error:e})}return(0,s.Te)(r),o}async function n(e,t,r,o,n){let a;try{a=await createImageBitmap(e)}catch(e){throw new i.A("request:server",`Unable to load tile ${t}/${r}/${o}`,{error:e,level:t,row:r,col:o})}return(0,s.Te)(n),a}},37352:(e,t,r)=>{r.d(t,{A:()=>l});var i,s=r(31635),o=r(7762),n=r(25482),a=r(91429);let l=i=class extends n.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new o.A}clone(){return new i({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,s.Cg)([(0,a.MZ)({type:String,json:{write:{isRequired:!0}}})],l.prototype,"floorField",void 0),(0,s.Cg)([(0,a.MZ)({json:{read:!1,write:!1}})],l.prototype,"viewAllMode",void 0),(0,s.Cg)([(0,a.MZ)({json:{read:!1,write:!1}})],l.prototype,"viewAllLevelIds",void 0),l=i=(0,s.Cg)([(0,a.$K)("esri.layers.support.LayerFloorInfo")],l)},38961:(e,t,r)=>{r.d(t,{A:()=>u});var i=r(31635),s=r(7762),o=r(36708),n=r(10107),a=r(64108),l=r(80559);let u=class extends s.A{constructor(e){super(e),this.getCollections=null}initialize(){this.addHandles((0,l.fm)(()=>this._refresh(),o.OH))}destroy(){this.getCollections=null}_refresh(){const e=this.getCollections?.();if(null==e)return void this.removeAll();let t=0;for(const r of e)null!=r&&(t=this._processCollection(t,r));this.splice(t)}_createNewInstance(e){return new s.A(e)}_processCollection(e,t){if(!t)return e;const r=this.itemFilterFunction??(e=>!!e);for(const i of t)if(i){if(r(i)){const t=this.indexOf(i,e);t>=0?t!==e&&this.reorder(i,e):this.add(i,e),++e}if(this.getChildrenFunction){const t=this.getChildrenFunction(i);if(Array.isArray(t))for(const r of t)e=this._processCollection(e,r);else e=this._processCollection(e,t)}}return e}};(0,i.Cg)([(0,n.MZ)()],u.prototype,"getCollections",void 0),(0,i.Cg)([(0,n.MZ)()],u.prototype,"getChildrenFunction",void 0),(0,i.Cg)([(0,n.MZ)()],u.prototype,"itemFilterFunction",void 0),u=(0,i.Cg)([(0,a.$)("esri.core.CollectionFlattener")],u)},41366:(e,t,r)=>{r.d(t,{K:()=>c,Q:()=>l});var i=r(31635),s=r(66552),o=r(53966),n=r(91429),a=r(93223);const l=(0,s.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),u="percent-of-total",d="field",c=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,r=null!=this.normalizationTotal;return t||r?(e=t&&d||r&&u||null,t&&r&&o.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==d&&e!==u||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,i.Cg)([(0,n.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],r.prototype,"normalizationField",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],r.prototype,"normalizationMaxValue",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],r.prototype,"normalizationMinValue",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],r.prototype,"normalizationTotal",void 0),(0,i.Cg)([(0,a.e)(l,{name:"parameters.normalizationType"})],r.prototype,"normalizationType",null),r=(0,i.Cg)([(0,n.$K)("esri.rest.support.NormalizationBinParametersMixin")],r),r}},45067:(e,t,r)=>{r.d(t,{A:()=>d});var i=r(31635),s=r(69540),o=r(66552),n=r(25482),a=r(91429);const l=new o.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),u=new o.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let d=class extends((0,s.OU)(n.o)){constructor(e){super(e),this.cardinality=null,this.catalogId=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,i.Cg)([(0,a.MZ)({json:{read:l.read,write:l.write}})],d.prototype,"cardinality",void 0),(0,i.Cg)([(0,a.MZ)({json:{name:"catalogID"}})],d.prototype,"catalogId",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],d.prototype,"composite",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],d.prototype,"id",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],d.prototype,"keyField",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],d.prototype,"keyFieldInRelationshipTable",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],d.prototype,"name",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],d.prototype,"relatedTableId",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],d.prototype,"relationshipTableId",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:u.read,write:u.write}})],d.prototype,"role",void 0),d=(0,i.Cg)([(0,a.$K)("esri.layers.support.Relationship")],d)},46140:(e,t,r)=>{r.d(t,{R:()=>s});var i=r(49186);let s=class e{constructor(e,t,r=""){this.major=e,this.minor=t,this._context=r}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}greaterEqual(e,t){return!this.lessThan(e,t)}validate(e){if(this.major!==e.major){const t=this._context&&this._context+":",r=this._context&&this._context+" ";throw new i.A(t+"unsupported-version",`Required major ${r}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new e(this.major,this.minor,this._context)}static parse(t,r=""){const[s,o]=t.split("."),n=/^\s*\d+\s*$/;if(!s?.match||!n.test(s))throw new i.A((r&&r+":")+"invalid-version","Expected major version to be a number, but got '${version}'",{version:t});if(!o?.match||!n.test(o))throw new i.A((r&&r+":")+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:t});const a=parseInt(s,10),l=parseInt(o,10);return new e(a,l,r)}}},52136:(e,t,r)=>{r.d(t,{p:()=>o});var i=r(31635),s=r(91429);const o=e=>{const t=e;let r=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,i.Cg)([(0,s.MZ)({type:String})],r.prototype,"apiKey",null),r=(0,i.Cg)([(0,s.$K)("esri.layers.mixins.APIKeyMixin")],r),r}},55674:(e,t,r)=>{r.d(t,{Ad:()=>y,Gj:()=>m,QY:()=>p,lL:()=>g,xR:()=>h});var i=r(66131),s=r(49186),o=(r(44208),r(44729)),n=r(15032),a=r(65864),l=r(95466),u=r(43668),d=r(98623);const c=["geometry","scale","timeProperties"];function p(e,t){if(null!=t)for(const r of c)t.hasArcadeDependency(r)&&e.add(r);return e}function y(e,t){return f.create(e,t,null,["$feature","$view"])}function h(e,t,r){return f.create(e,t,r,["$feature","$view","$config"])}class f{static async create(e,t,r,i){const{arcade:o,Dictionary:n}=await(0,u.l)();let a;try{a=o.parseScript(e)}catch(t){throw new s.A("arcade-bad-expression","Failed to parse arcade script",{script:e,error:t})}const l=o.scriptUsesGeometryEngine(a);l&&await o.enableGeometrySupport(),await o.loadDependentModules(new Set,a,null,!1,l);const d={vars:i.reduce((e,t)=>({...e,[t]:null}),{}),spatialReference:t,useAsync:!1},c=o.compileScript(a,d);let p=null;null!=r&&(p=new n(r),p.immutable=!0);const y=new n;return y.immutable=!1,y.setField("scale",0),new f(e,o,a,c,t,y,p,n)}constructor(e,t,r,i,s,o,n,a){this.script=e,this._arcade=t,this._syntaxTree=r,this._compiled=i,this._spatialReference=s,this._viewDict=o,this._configDict=n,this._dictionaryCtor=a,this._dependencies=new Map,this._featureReader=new m,this._dependencies.set("geometry",t.scriptTouchesGeometry(this._syntaxTree)),this._dependencies.set("scale",this._arcade.referencesMember(this._syntaxTree,"scale")),this._dependencies.set("timeProperties",this._arcade.scriptUsesViewProperties(this._syntaxTree,["timeProperties"]))}evaluate(e,t){const r=t.$view?.timeZone;if(t.$view){let e;if(this._viewDict.setField("scale",t.$view.scale),null!=t.$view.timeProperties){const{currentStart:s,currentEnd:o}=t.$view.timeProperties;e=new this._dictionaryCtor({currentStart:null!=s?null!=r?i.lY.epochToArcadeDate(s,r):i.lY.unknownEpochToArcadeDate(s):void 0,currentEnd:null!=o?null!=r?i.lY.epochToArcadeDate(o,r):i.lY.unknownEpochToArcadeDate(o):void 0,startIncluded:!0,endIncluded:!0})}this._viewDict.setField("timeProperties",e)}return this._compiled({vars:{$view:this._viewDict,$config:this._configDict,$feature:e},spatialReference:this._spatialReference,timeZone:r})}repurposeFeature(e,t){return this._featureReader.bind(e,t,this._spatialReference),this._featureReader}references(e){return this._dependencies.get(e)??!1}}class m{constructor(){this._boundTarget=null,this._boundSchema={fields:null,fieldsIndex:null,spatialReference:null,get geometryType(){return null},get objectIdField(){return null}},this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}bind(e,t,r){const i=t??new l.A(g(e.attributes));this._boundTarget=e,this._boundSchema.fields=i.fields,this._boundSchema.fieldsIndex=i,this._boundSchema.spatialReference=r}_getField(e){return this._boundSchema.fieldsIndex.get(e)}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(e){this._contextTimeZone=e}readArcadeFeature(){return this}hasField(e){return this._boundSchema.fieldsIndex.has(e)}geometry(){if("fromJSON"in this._boundTarget)return this._boundTarget.geometry;const e=(0,a.rS)(this._boundTarget.geometry);if(e){if(!this._boundSchema.spatialReference)throw new Error("InternalError: Expected spatial reference to be defined");e.spatialReference=this._boundSchema.spatialReference}return e}_hasGeometry(){return null!=this._boundTarget.geometry}isUnknownDateTimeField(e){return this._boundSchema.fieldsIndex.getTimeZone(e)===d.L5}field(e,t=!0){const r=this._getField(e);if(r){const t=this._boundTarget.attributes[r.name];if(null==t)return null;switch(r.type){case"date-only":case"esriFieldTypeDateOnly":return o.n.fromReader(t);case"time-only":case"esriFieldTypeTimeOnly":return n.k.fromReader(t);case"esriFieldTypeTimestampOffset":case"timestamp-offset":return i.lY.fromReaderAsTimeStampOffset(t);case"date":case"esriFieldTypeDate":return this.isUnknownDateTimeField(e)?i.lY.unknownEpochToArcadeDate(t):i.lY.epochToArcadeDate(t,this.contextTimeZone??d.qU);default:return t}}if(t)throw new Error(`Field ${e} does not exist`);return null}setField(e,t){throw new Error("Unable to update feature attribute values, feature is readonly")}keys(){return this._boundSchema.fieldsIndex.fields.map(e=>e.name)}isEmpty(){return this._boundSchema.fields.length<=0&&!this._hasGeometry()}castToText(e=!1){return JSON.stringify(this._boundTarget)}gdbVersion(){return null}fullSchema(){return this._boundSchema}castAsJson(e=null){return{attributes:this._boundTarget.attributes,geometry:!0===e?.keepGeometryType?this.geometry():this.geometry()?.toJSON()??null}}castAsJsonAsync(e=null,t=null){return Promise.resolve(this.castAsJson(t))}}function g(e){const t=[];for(const r in e)t.push({name:r,alias:r,type:"string"==typeof e[r]?"esriFieldTypeString":"esriFieldTypeDouble"});return t}},58501:(e,t,r)=>{r.d(t,{q:()=>s});var i=r(62815);function s(e,t,r){if(!r?.features||!r.hasZ)return;const s=(0,i.N)(r.geometryType,t,e.outSpatialReference);if(s)for(const e of r.features)s(e.geometry)}},63389:(e,t,r)=>{function i(e,t,r){const i=t.flatten(({sublayers:e})=>e).length;return i!==e.length||!!e.some(e=>e.originIdOf("minScale")>r||e.originIdOf("maxScale")>r||e.originIdOf("renderer")>r||e.originIdOf("labelingInfo")>r||e.originIdOf("opacity")>r||e.originIdOf("labelsVisible")>r||e.originIdOf("source")>r)||!o(e,t)}function s(e,t,r){return!!e.some(e=>{const t=e.source,i=!t||"map-layer"===t.type&&t.mapLayerId===e.id&&(null==t.gdbVersion||t.gdbVersion===r);e.commitProperty("renderer"),e.commitProperty("labelingInfo"),e.commitProperty("opacity"),e.commitProperty("labelsVisible"),e.commitProperty("orderBy");const s=e.layer?.capabilities?.exportMap?.supportsSublayerOrderBy??!1;return!i||e.originIdOf("renderer")>2||e.originIdOf("labelingInfo")>2||e.originIdOf("opacity")>2||e.originIdOf("labelsVisible")>2||s&&e.originIdOf("orderBy")>2})||!o(e,t)}function o(e,t){if(!e?.length||null==t)return!0;const r=t.slice().reverse().flatten(({sublayers:e})=>e&&e.toArray().reverse()).map(e=>e.id).toArray();if(e.length>r.length)return!1;let i=0;const s=r.length;for(const{id:t}of e){for(;i<s&&r[i]!==t;)i++;if(i>=s)return!1}return!0}function n(e){return!!e&&e.some(e=>null!=e.minScale||null!=e.layerDefinition?.minScale)}r.d(t,{Sk:()=>s,Zx:()=>i,_X:()=>n})},73681:(e,t,r)=>{r.d(t,{n:()=>l});var i=r(49186),s=r(53966),o=r(46140),n=r(95466),a=r(55674);class l{static async from(e,t,r){const n=e.dictionary_version?o.R.parse(e.dictionary_version):null,d=new Set(e.itemsNames),c={};if(t)for(const e in t)c[e]=t[e];if(e.authoringInfo.configuration)for(const t of e.authoringInfo.configuration)c.hasOwnProperty(t.name)||(c[t.name]=t.value);const p=new Set(e.authoringInfo.symbol);for(const e of Object.keys(r))p.delete(e);p.size&&s.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:p});const y=await(0,a.xR)(e.expression,null,c);if(!y)throw new i.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");const h=!n||!n.greaterEqual(4,0);h&&s.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:n});const f=new u(r,h);return new l(h,d,y,f)}constructor(e,t,r,i){this._requiresFieldCoercionToString=e,this._itemNames=t,this._compiled=r,this._reader=i}get itemNames(){return this._itemNames}evaluate(e,t,r,i){try{return this._reader.bind(e,r,i),this._compiled.evaluate(this._reader,{$view:{scale:t}})}catch(e){s.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new n.A(e);const t=e.map(e=>({...e,type:"esriFieldTypeString"}));return new n.A(t)}}class u extends a.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){const t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);const t=this._getField(e);return null==t||null==this._boundTarget.attributes[t.name]?"":""+this._boundTarget.attributes[t.name]}}},78286:(e,t,r)=>{r.d(t,{V:()=>n});var i=r(2272),s=r(80893),o=r(61956);async function n(e,t,r,n){const a=(0,i.Dl)(e),l=await(0,s.Pk)(a,o.A.from(t),r,n);return l.objectIds??function(e){if(e)return function(e){return!Array.isArray(e[0])}(e)?e:e.map(e=>JSON.stringify(e))}(l.uniqueIds)??[]}},81583:(e,t,r)=>{r.d(t,{L:()=>a,g:()=>n});var i=r(60999),s=r(7762),o=r(92474);async function n(e,t){return await e.load(),a(e,t)}async function a(e,t){const r=[],n=(...e)=>{for(const t of e)null!=t&&(Array.isArray(t)?n(...t):s.A.isCollection(t)?t.forEach(e=>n(e)):(0,o.Zm)(t)&&r.push(t))};t(n);let a=null;if(await(0,i.Tj)(r,async e=>{const t=await(0,i.Ke)(function(e){return"loadAll"in e&&"function"==typeof e.loadAll}(e)?e.loadAll():e.load());!1!==t.ok||a||(a=t)}),a)throw a.error;return e}},91880:(e,t,r)=>{r.d(t,{A:()=>u});var i,s=r(31635),o=r(66552),n=r(25482),a=r(91429);const l=new o.J({asc:"ascending",desc:"descending"});let u=class extends n.o{static{i=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new i({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,s.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],u.prototype,"field",void 0),(0,s.Cg)([(0,a.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],u.prototype,"valueExpression",void 0),(0,s.Cg)([(0,a.MZ)({type:l.apiValues,json:{type:l.jsonValues,read:l.read,write:l.write}})],u.prototype,"order",void 0),u=i=(0,s.Cg)([(0,a.$K)("esri.layers.support.OrderByInfo")],u)},91921:(e,t,r)=>{r.d(t,{I:()=>m});var i=r(31635),s=r(7762),o=r(38961),n=r(49186),a=r(53966),l=r(36708),u=r(91429),d=r(35666),c=r(88620),p=r(15775),y=r(63389);const h=s.A.ofType(p.A);function f(e,t){e&&e.forEach(e=>{t(e),e.sublayers&&e.sublayers.length&&f(e.sublayers,t)})}const m=e=>{const t=e;let r=class extends t{constructor(...e){super(...e),this.allSublayers=new o.A({getCollections:()=>[this.sublayers],getChildrenFunction:e=>e.sublayers}),this.sublayersSourceJSON={2:{},3:{},4:{},5:{},6:{}},this.subtables=null,this.addHandles([(0,l.wB)(()=>this.sublayers,(e,t)=>this._handleSublayersChange(e,t),l.OH),(0,l.wB)(()=>this.subtables,(e,t)=>this._handleSublayersChange(e,t),l.OH)])}destroy(){this.allSublayers.destroy()}readSublayers(e,t){if(!t||!e)return;const{sublayersSourceJSON:r}=this,i=(0,d.aB)(t.origin);if(i<2)return;if(r[i]={context:t,visibleLayers:e.visibleLayers||r[i].visibleLayers,layers:e.layers||r[i].layers},i>2)return;this._set("serviceSublayers",this.createSublayersForOrigin("service").sublayers);const{sublayers:s,origin:o}=this.createSublayersForOrigin("web-document"),n=(0,c.oY)(this);n.setDefaultOrigin(o),this._set("sublayers",new h(s)),n.setDefaultOrigin("user")}findSublayerById(e){return this.allSublayers.find(t=>t.id===e)}createServiceSublayers(){return this.createSublayersForOrigin("service").sublayers}createSublayersForOrigin(e){let t;const r=(0,d.aB)("web-document"===e?"web-map":e);let i=2,s=this.sublayersSourceJSON[2].layers,o=this.sublayersSourceJSON[2].context,n=null;const a=[3,4,5].filter(e=>e<=r);for(const e of a){const t=this.sublayersSourceJSON[e];(0,y._X)(t.layers)&&(i=e,s=t.layers,o=t.context,t.visibleLayers&&(n={visibleLayers:t.visibleLayers,context:t.context}))}const l=[3,4,5].filter(e=>e>i&&e<=r);let u=null;for(const e of l){const{layers:r,visibleLayers:i,context:s}=this.sublayersSourceJSON[e];r&&(u={layers:r,context:s},t??=e),i&&(n={visibleLayers:i,context:s})}const c=function(e,t){const r=[],i={};return e?(e.forEach(e=>{const s=new p.A;if(s.read(e,t),i[s.id]=s,null!=e.parentLayerId&&-1!==e.parentLayerId){const t=i[e.parentLayerId];t.sublayers||(t.sublayers=[]),t.sublayers.unshift(s)}else r.unshift(s)}),r):r}(s,o),m=new Map,g=new Set;if(u)for(const e of u.layers)m.set(e.id,e);if(n?.visibleLayers)for(const e of n.visibleLayers)g.add(e);return f(c,e=>{u&&e.read(m.get(e.id),u.context),n&&e.read({defaultVisibility:g.has(e.id)},n.context)}),{origin:(0,d.OL)(i),originWithPartialOverrides:t?(0,d.OL)(t):null,sublayers:new h({items:c})}}read(e,t){super.read(e,t),this.readSublayers(e,t)}_handleSublayersChange(e,t){t&&(t.forEach(e=>{e.parent=null,e.layer=null}),this.removeHandles("sublayers-owner")),e&&(e.forEach(e=>{e.parent=this,e.layer=this}),this.addHandles([e.on("after-add",({item:e})=>{e.parent=this,e.layer=this}),e.on("after-remove",({item:e})=>{e.parent=null,e.layer=null})],"sublayers-owner"),"tile"===this.type&&this.addHandles(e.on("before-changes",e=>{a.A.getLogger("esri.layers.TileLayer").error(new n.A("tilelayer:sublayers-non-modifiable","Sublayer can't be added, moved, or removed from the layer's sublayers",{layer:this})),e.preventDefault()}),"sublayers-owner"))}};return(0,i.Cg)([(0,u.MZ)({readOnly:!0})],r.prototype,"allSublayers",void 0),(0,i.Cg)([(0,u.MZ)({readOnly:!0,type:s.A.ofType(p.A)})],r.prototype,"serviceSublayers",void 0),(0,i.Cg)([(0,u.MZ)({value:null,type:h,json:{read:!1,write:{allowNull:!0,ignoreOrigin:!0}}})],r.prototype,"sublayers",void 0),(0,i.Cg)([(0,u.MZ)({readOnly:!0})],r.prototype,"sublayersSourceJSON",void 0),(0,i.Cg)([(0,u.MZ)({type:h,json:{read:{source:"tables"}}})],r.prototype,"subtables",void 0),r=(0,i.Cg)([(0,u.$K)("esri.layers.mixins.SublayersOwner")],r),r}},98534:(e,t,r)=>{r.d(t,{V:()=>m});var i=r(31635),s=r(11254),o=r(91869),n=r(74887),a=r(84952),l=r(46140),u=r(91429),d=r(5443),c=r(16930),p=r(60694),y=r(10873),h=r(10407),f=r(36005);const m=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.capabilities=void 0,this.copyright=null,this.fullExtent=null,this.legendEnabled=!0,this.spatialReference=null,this.version=void 0,this._allLayersAndTablesMap=null}readCapabilities(e,t){const r=t.capabilities&&t.capabilities.split(",").map(e=>e.toLowerCase().trim());if(!r)return{operations:{supportsExportMap:!1,supportsExportTiles:!1,supportsIdentify:!1,supportsQuery:!1,supportsTileMap:!1},exportMap:null,exportTiles:null};const i=this.type,s="tile"!==i&&!!t.supportsDynamicLayers,o=r.includes("query"),n=r.includes("map"),a=!!t.exportTilesAllowed,u=r.includes("tilemap"),d=r.includes("data"),c="tile"!==i&&(!t.tileInfo||s),p="tile"!==i&&(!t.tileInfo||s),y="tile"!==i,h="tile"!==i&&s&&t.currentVersion>=11.1,f=t.cimVersion?l.R.parse(t.cimVersion):null,m=f?.greaterEqual(1,4)??!1,g=f?.greaterEqual(2,0)??!1;return{operations:{supportsExportMap:n,supportsExportTiles:a,supportsIdentify:o,supportsQuery:d,supportsTileMap:u},exportMap:n?{supportsArcadeExpressionForLabeling:m,supportsCIMSymbols:g,supportsDynamicLayers:s,supportsSublayerOrderBy:h,supportsSublayerDefinitionExpression:p,supportsSublayerVisibility:c,supportsSublayersChanges:y}:null,exportTiles:a?{maxExportTilesCount:+t.maxExportTilesCount}:null}}readVersion(e,t){let r=t.currentVersion;return r||(r=t.hasOwnProperty("capabilities")||t.hasOwnProperty("tables")?10:t.hasOwnProperty("supportedImageFormatTypes")?9.31:9.3),r}async fetchRelatedService(e){const t=this.portalItem;if(!t||!(0,h.bK)(t))return null;this._relatedFeatureServicePromise||(this._relatedFeatureServicePromise=t.fetchRelatedItems({relationshipType:"Service2Service",direction:"reverse"},e).then(e=>e.find(e=>"Feature Service"===e.type)??null,()=>null));const r=await this._relatedFeatureServicePromise;return(0,n.Te)(e),r?{itemId:r.id,url:r.url}:null}async fetchSublayerInfo(e,t){const{source:r}=e;if(this?.portalItem&&"tile"===this.type&&"map-layer"===r?.type&&(0,h.bK)(this.portalItem)&&e.originIdOf("url")<2){const i=await this.fetchRelatedService(t);i&&(e.url=(0,a.fj)(i.url,r.mapLayerId.toString()),e.layerItemId=i.itemId)}const{url:i}=e;let o;if("data-layer"===r.type)o=(await(0,s.A)(i,{responseType:"json",query:{f:"json",...this.customParameters,token:this.apiKey},...t})).data;else if(i&&e.originIdOf("url")>2)try{const e=await this._fetchAllLayersAndTablesFromService(i),t=(0,p.qg)(i)?.sublayer??r.mapLayerId;o=e.get(t)}catch{}else{let i=e.id;"map-layer"===r?.type&&(i=r.mapLayerId);try{o=(await this.fetchAllLayersAndTables(t)).get(i)}catch{}}return o}async fetchAllLayersAndTables(e){return this._fetchAllLayersAndTablesFromService(this.parsedUrl?.path,e)}async _fetchAllLayersAndTablesFromService(e,t){await this.load(t),this._allLayersAndTablesMap||=new Map;const r=(0,p.qg)(e),i=(0,o.tE)(this._allLayersAndTablesMap,r?.url.path,()=>(0,s.A)((0,a.fj)(r?.url.path,"/layers"),{responseType:"json",query:{f:"json",...this.customParameters,token:this.apiKey}}).then(e=>{const t=new Map,{layers:r,tables:i}=e.data,s=[...r??[],...i??[]];for(const e of s)t.set(e.id,e);return{result:t}},e=>({error:e}))),l=await i;if((0,n.Te)(t),"result"in l)return l.result;throw l.error}};return(0,i.Cg)([(0,u.MZ)({readOnly:!0})],r.prototype,"capabilities",void 0),(0,i.Cg)([(0,f.w)("service","capabilities",["capabilities","cimVersion","currentVersion","exportTilesAllowed","maxExportTilesCount","supportsDynamicLayers","tileInfo"])],r.prototype,"readCapabilities",null),(0,i.Cg)([(0,u.MZ)({json:{read:{source:"copyrightText"}}})],r.prototype,"copyright",void 0),(0,i.Cg)([(0,u.MZ)({type:d.A})],r.prototype,"fullExtent",void 0),(0,i.Cg)([(0,u.MZ)(y.id)],r.prototype,"id",void 0),(0,i.Cg)([(0,u.MZ)({type:Boolean,json:{origins:{service:{read:{enabled:!1}}},read:{source:"showLegend"},write:{target:"showLegend"}}})],r.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,u.MZ)(y.M6)],r.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,u.MZ)({type:c.A})],r.prototype,"spatialReference",void 0),(0,i.Cg)([(0,u.MZ)({readOnly:!0})],r.prototype,"version",void 0),(0,i.Cg)([(0,f.w)("service","version",["currentVersion","capabilities","tables","supportedImageFormatTypes"])],r.prototype,"readVersion",null),r=(0,i.Cg)([(0,u.$K)("esri.layers.mixins.ArcGISMapService")],r),r}},99199:(e,t,r)=>{r.d(t,{e:()=>l,s:()=>a});var i=r(2272),s=r(80893),o=r(22671),n=r(61956);async function a(e,t,r,i){const s=await l(e,t,r,i);return o.A.fromJSON(s)}function l(e,t,r,o){const a=(0,i.Dl)(e),l={...r},u=n.A.from(t);return(0,s.eW)(a,u,u.sourceSpatialReference,l,o)}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2343],{2343:(r,e,t)=>{t.r(e),t.d(e,{l:()=>s});var n,o=t(11053),a={exports:{}};const i=(0,o.g)(function(){return n||(n=1,r=a,e="undefined"!=typeof document?document.currentScript?.src:void 0,t=async function(r={}){var t,n=r,o="./this.program",a="";try{a=new URL(".",e).href}catch{}t=async r=>{var e=await fetch(r,{credentials:"same-origin"});if(e.ok)return e.arrayBuffer();throw new Error(e.status+" : "+e.url)};var i,s,u,l,d,c,f,m,h,p,v,w,y,g,E=console.log.bind(console),k=console.error.bind(console),_=!1,b=!1;function F(){var r=l.buffer;d=new Int8Array(r),f=new Int16Array(r),n.HEAPU8=c=new Uint8Array(r),m=new Uint16Array(r),h=new Int32Array(r),n.HEAPU32=p=new Uint32Array(r),v=new Float32Array(r),n.HEAPF64=w=new Float64Array(r),y=new BigInt64Array(r),g=new BigUint64Array(r)}var A,P=0,S=null;function D(r){P++,n.monitorRunDependencies?.(P)}function T(r){if(P--,n.monitorRunDependencies?.(P),0==P&&S){var e=S;S=null,e()}}function C(r){n.onAbort?.(r),k(r="Aborted("+r+")"),_=!0,r+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(r);throw u?.(e),e}async function x(r){if(!i)try{var e=await t(r);return new Uint8Array(e)}catch{}return function(r){if(r==A&&i)return new Uint8Array(i);throw"both async and sync fetching of the wasm failed"}(r)}class M{name="ExitStatus";constructor(r){this.message=`Program terminated with exit(${r})`,this.status=r}}var N=r=>{for(;r.length>0;)r.shift()(n)},R=[],B=r=>R.push(r),O=[],j=r=>O.push(r),W=!0,z=r=>Hr(r),$=()=>qr();class I{constructor(r){this.excPtr=r,this.ptr=r-24}set_type(r){p[this.ptr+4>>2]=r}get_type(){return p[this.ptr+4>>2]}set_destructor(r){p[this.ptr+8>>2]=r}get_destructor(){return p[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){p[this.ptr+16>>2]=r}get_adjusted_ptr(){return p[this.ptr+16>>2]}}var U=()=>{var r=h[+lr.varargs>>2];return lr.varargs+=4,r},L=U,V={isAbs:r=>"/"===r.charAt(0),splitPath:r=>/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(r).slice(1),normalizeArray:(r,e)=>{for(var t=0,n=r.length-1;n>=0;n--){var o=r[n];"."===o?r.splice(n,1):".."===o?(r.splice(n,1),t++):t&&(r.splice(n,1),t--)}if(e)for(;t;t--)r.unshift("..");return r},normalize:r=>{var e=V.isAbs(r),t="/"===r.slice(-1);return(r=V.normalizeArray(r.split("/").filter(r=>!!r),!e).join("/"))||e||(r="."),r&&t&&(r+="/"),(e?"/":"")+r},dirname:r=>{var e=V.splitPath(r),t=e[0],n=e[1];return t||n?(n&&(n=n.slice(0,-1)),t+n):"."},basename:r=>r&&r.match(/([^\/]+|\/)\/*$/)[1],join:(...r)=>V.normalize(r.join("/")),join2:(r,e)=>V.normalize(r+"/"+e)},H=r=>{(H=r=>crypto.getRandomValues(r))(r)},q={resolve:(...r)=>{for(var e="",t=!1,n=r.length-1;n>=-1&&!t;n--){var o=n>=0?r[n]:sr.cwd();if("string"!=typeof o)throw new TypeError("Arguments to path.resolve must be strings");if(!o)return"";e=o+"/"+e,t=V.isAbs(o)}return(t?"/":"")+(e=V.normalizeArray(e.split("/").filter(r=>!!r),!t).join("/"))||"."},relative:(r,e)=>{function t(r){for(var e=0;e<r.length&&""===r[e];e++);for(var t=r.length-1;t>=0&&""===r[t];t--);return e>t?[]:r.slice(e,t-e+1)}r=q.resolve(r).slice(1),e=q.resolve(e).slice(1);for(var n=t(r.split("/")),o=t(e.split("/")),a=Math.min(n.length,o.length),i=a,s=0;s<a;s++)if(n[s]!==o[s]){i=s;break}var u=[];for(s=i;s<n.length;s++)u.push("..");return(u=u.concat(o.slice(i))).join("/")}},X="undefined"!=typeof TextDecoder?new TextDecoder:void 0,G=(r,e=0,t=NaN)=>{for(var n=e+t,o=e;r[o]&&!(o>=n);)++o;if(o-e>16&&r.buffer&&X)return X.decode(r.subarray(e,o));for(var a="";e<o;){var i=r[e++];if(128&i){var s=63&r[e++];if(192!=(224&i)){var u=63&r[e++];if((i=224==(240&i)?(15&i)<<12|s<<6|u:(7&i)<<18|s<<12|u<<6|63&r[e++])<65536)a+=String.fromCharCode(i);else{var l=i-65536;a+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else a+=String.fromCharCode((31&i)<<6|s)}else a+=String.fromCharCode(i)}return a},Y=[],K=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},J=(r,e,t,n)=>{if(!(n>0))return 0;for(var o=t,a=t+n-1,i=0;i<r.length;++i){var s=r.codePointAt(i);if(s<=127){if(t>=a)break;e[t++]=s}else if(s<=2047){if(t+1>=a)break;e[t++]=192|s>>6,e[t++]=128|63&s}else if(s<=65535){if(t+2>=a)break;e[t++]=224|s>>12,e[t++]=128|s>>6&63,e[t++]=128|63&s}else{if(t+3>=a)break;e[t++]=240|s>>18,e[t++]=128|s>>12&63,e[t++]=128|s>>6&63,e[t++]=128|63&s,i++}}return e[t]=0,t-o},Q=(r,e,t)=>{var n=K(r)+1,o=new Array(n),a=J(r,o,0,o.length);return o.length=a,o},Z={ttys:[],init(){},shutdown(){},register(r,e){Z.ttys[r]={input:[],output:[],ops:e},sr.registerDevice(r,Z.stream_ops)},stream_ops:{open(r){var e=Z.ttys[r.node.rdev];if(!e)throw new sr.ErrnoError(43);r.tty=e,r.seekable=!1},close(r){r.tty.ops.fsync(r.tty)},fsync(r){r.tty.ops.fsync(r.tty)},read(r,e,t,n,o){if(!r.tty||!r.tty.ops.get_char)throw new sr.ErrnoError(60);for(var a=0,i=0;i<n;i++){var s;try{s=r.tty.ops.get_char(r.tty)}catch(r){throw new sr.ErrnoError(29)}if(void 0===s&&0===a)throw new sr.ErrnoError(6);if(null==s)break;a++,e[t+i]=s}return a&&(r.node.atime=Date.now()),a},write(r,e,t,n,o){if(!r.tty||!r.tty.ops.put_char)throw new sr.ErrnoError(60);try{for(var a=0;a<n;a++)r.tty.ops.put_char(r.tty,e[t+a])}catch(r){throw new sr.ErrnoError(29)}return n&&(r.node.mtime=r.node.ctime=Date.now()),a}},default_tty_ops:{get_char:r=>(()=>{if(!Y.length){var r=null;if("undefined"!=typeof window&&"function"==typeof window.prompt&&null!==(r=window.prompt("Input: "))&&(r+="\n"),!r)return null;Y=Q(r)}return Y.shift()})(),put_char(r,e){null===e||10===e?(E(G(r.output)),r.output=[]):0!=e&&r.output.push(e)},fsync(r){r.output?.length>0&&(E(G(r.output)),r.output=[])},ioctl_tcgets:r=>({c_iflag:25856,c_oflag:5,c_cflag:191,c_lflag:35387,c_cc:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}),ioctl_tcsets:(r,e,t)=>0,ioctl_tiocgwinsz:r=>[24,80]},default_tty1_ops:{put_char(r,e){null===e||10===e?(k(G(r.output)),r.output=[]):0!=e&&r.output.push(e)},fsync(r){r.output?.length>0&&(k(G(r.output)),r.output=[])}}},rr=r=>{C()},er={ops_table:null,mount:r=>er.createNode(null,"/",16895,0),createNode(r,e,t,n){if(sr.isBlkdev(t)||sr.isFIFO(t))throw new sr.ErrnoError(63);er.ops_table||={dir:{node:{getattr:er.node_ops.getattr,setattr:er.node_ops.setattr,lookup:er.node_ops.lookup,mknod:er.node_ops.mknod,rename:er.node_ops.rename,unlink:er.node_ops.unlink,rmdir:er.node_ops.rmdir,readdir:er.node_ops.readdir,symlink:er.node_ops.symlink},stream:{llseek:er.stream_ops.llseek}},file:{node:{getattr:er.node_ops.getattr,setattr:er.node_ops.setattr},stream:{llseek:er.stream_ops.llseek,read:er.stream_ops.read,write:er.stream_ops.write,mmap:er.stream_ops.mmap,msync:er.stream_ops.msync}},link:{node:{getattr:er.node_ops.getattr,setattr:er.node_ops.setattr,readlink:er.node_ops.readlink},stream:{}},chrdev:{node:{getattr:er.node_ops.getattr,setattr:er.node_ops.setattr},stream:sr.chrdev_stream_ops}};var o=sr.createNode(r,e,t,n);return sr.isDir(o.mode)?(o.node_ops=er.ops_table.dir.node,o.stream_ops=er.ops_table.dir.stream,o.contents={}):sr.isFile(o.mode)?(o.node_ops=er.ops_table.file.node,o.stream_ops=er.ops_table.file.stream,o.usedBytes=0,o.contents=null):sr.isLink(o.mode)?(o.node_ops=er.ops_table.link.node,o.stream_ops=er.ops_table.link.stream):sr.isChrdev(o.mode)&&(o.node_ops=er.ops_table.chrdev.node,o.stream_ops=er.ops_table.chrdev.stream),o.atime=o.mtime=o.ctime=Date.now(),r&&(r.contents[e]=o,r.atime=r.mtime=r.ctime=o.atime),o},getFileDataAsTypedArray:r=>r.contents?r.contents.subarray?r.contents.subarray(0,r.usedBytes):new Uint8Array(r.contents):new Uint8Array(0),expandFileStorage(r,e){var t=r.contents?r.contents.length:0;if(!(t>=e)){e=Math.max(e,t*(t<1048576?2:1.125)>>>0),0!=t&&(e=Math.max(e,256));var n=r.contents;r.contents=new Uint8Array(e),r.usedBytes>0&&r.contents.set(n.subarray(0,r.usedBytes),0)}},resizeFileStorage(r,e){if(r.usedBytes!=e)if(0==e)r.contents=null,r.usedBytes=0;else{var t=r.contents;r.contents=new Uint8Array(e),t&&r.contents.set(t.subarray(0,Math.min(e,r.usedBytes))),r.usedBytes=e}},node_ops:{getattr(r){var e={};return e.dev=sr.isChrdev(r.mode)?r.id:1,e.ino=r.id,e.mode=r.mode,e.nlink=1,e.uid=0,e.gid=0,e.rdev=r.rdev,sr.isDir(r.mode)?e.size=4096:sr.isFile(r.mode)?e.size=r.usedBytes:sr.isLink(r.mode)?e.size=r.link.length:e.size=0,e.atime=new Date(r.atime),e.mtime=new Date(r.mtime),e.ctime=new Date(r.ctime),e.blksize=4096,e.blocks=Math.ceil(e.size/e.blksize),e},setattr(r,e){for(const t of["mode","atime","mtime","ctime"])null!=e[t]&&(r[t]=e[t]);void 0!==e.size&&er.resizeFileStorage(r,e.size)},lookup(r,e){throw er.doesNotExistError},mknod:(r,e,t,n)=>er.createNode(r,e,t,n),rename(r,e,t){var n;try{n=sr.lookupNode(e,t)}catch(r){}if(n){if(sr.isDir(r.mode))for(var o in n.contents)throw new sr.ErrnoError(55);sr.hashRemoveNode(n)}delete r.parent.contents[r.name],e.contents[t]=r,r.name=t,e.ctime=e.mtime=r.parent.ctime=r.parent.mtime=Date.now()},unlink(r,e){delete r.contents[e],r.ctime=r.mtime=Date.now()},rmdir(r,e){var t=sr.lookupNode(r,e);for(var n in t.contents)throw new sr.ErrnoError(55);delete r.contents[e],r.ctime=r.mtime=Date.now()},readdir:r=>[".","..",...Object.keys(r.contents)],symlink(r,e,t){var n=er.createNode(r,e,41471,0);return n.link=t,n},readlink(r){if(!sr.isLink(r.mode))throw new sr.ErrnoError(28);return r.link}},stream_ops:{read(r,e,t,n,o){var a=r.node.contents;if(o>=r.node.usedBytes)return 0;var i=Math.min(r.node.usedBytes-o,n);if(i>8&&a.subarray)e.set(a.subarray(o,o+i),t);else for(var s=0;s<i;s++)e[t+s]=a[o+s];return i},write(r,e,t,n,o,a){if(e.buffer===d.buffer&&(a=!1),!n)return 0;var i=r.node;if(i.mtime=i.ctime=Date.now(),e.subarray&&(!i.contents||i.contents.subarray)){if(a)return i.contents=e.subarray(t,t+n),i.usedBytes=n,n;if(0===i.usedBytes&&0===o)return i.contents=e.slice(t,t+n),i.usedBytes=n,n;if(o+n<=i.usedBytes)return i.contents.set(e.subarray(t,t+n),o),n}if(er.expandFileStorage(i,o+n),i.contents.subarray&&e.subarray)i.contents.set(e.subarray(t,t+n),o);else for(var s=0;s<n;s++)i.contents[o+s]=e[t+s];return i.usedBytes=Math.max(i.usedBytes,o+n),n},llseek(r,e,t){var n=e;if(1===t?n+=r.position:2===t&&sr.isFile(r.node.mode)&&(n+=r.node.usedBytes),n<0)throw new sr.ErrnoError(28);return n},mmap(r,e,t,n,o){if(!sr.isFile(r.node.mode))throw new sr.ErrnoError(43);var a,i,s=r.node.contents;if(2&o||!s||s.buffer!==d.buffer){if(i=!0,!(a=rr()))throw new sr.ErrnoError(48);s&&((t>0||t+e<s.length)&&(s=s.subarray?s.subarray(t,t+e):Array.prototype.slice.call(s,t,t+e)),d.set(s,a))}else i=!1,a=s.byteOffset;return{ptr:a,allocated:i}},msync:(r,e,t,n,o)=>(er.stream_ops.write(r,e,0,n,t,!1),0)}},tr=async r=>{var e=await t(r);return new Uint8Array(e)},nr=(...r)=>sr.createDataFile(...r),or=[],ar=(r,e,t,n,o,a,i,s,u,l)=>{var d=e?q.resolve(V.join2(r,e)):r;function c(t){function c(t){l?.(),s||nr(r,e,t,n,o,u),a?.(),T()}((r,e,t,n)=>{"undefined"!=typeof Browser&&Browser.init();var o=!1;return or.forEach(a=>{o||a.canHandle(e)&&(a.handle(r,e,t,n),o=!0)}),o})(t,d,c,()=>{i?.(),T()})||c(t)}D(),"string"==typeof t?tr(t).then(c,i):c(t)},ir=(r,e)=>{var t=0;return r&&(t|=365),e&&(t|=146),t},sr={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,filesystems:null,syncFSRequests:0,readFiles:{},ErrnoError:class{name="ErrnoError";constructor(r){this.errno=r}},FSStream:class{shared={};get object(){return this.node}set object(r){this.node=r}get isRead(){return 1!=(2097155&this.flags)}get isWrite(){return!!(2097155&this.flags)}get isAppend(){return 1024&this.flags}get flags(){return this.shared.flags}set flags(r){this.shared.flags=r}get position(){return this.shared.position}set position(r){this.shared.position=r}},FSNode:class{node_ops={};stream_ops={};readMode=365;writeMode=146;mounted=null;constructor(r,e,t,n){r||(r=this),this.parent=r,this.mount=r.mount,this.id=sr.nextInode++,this.name=e,this.mode=t,this.rdev=n,this.atime=this.mtime=this.ctime=Date.now()}get read(){return(this.mode&this.readMode)===this.readMode}set read(r){r?this.mode|=this.readMode:this.mode&=~this.readMode}get write(){return(this.mode&this.writeMode)===this.writeMode}set write(r){r?this.mode|=this.writeMode:this.mode&=~this.writeMode}get isFolder(){return sr.isDir(this.mode)}get isDevice(){return sr.isChrdev(this.mode)}},lookupPath(r,e={}){if(!r)throw new sr.ErrnoError(44);e.follow_mount??=!0,V.isAbs(r)||(r=sr.cwd()+"/"+r);r:for(var t=0;t<40;t++){for(var n=r.split("/").filter(r=>!!r),o=sr.root,a="/",i=0;i<n.length;i++){var s=i===n.length-1;if(s&&e.parent)break;if("."!==n[i])if(".."!==n[i]){a=V.join2(a,n[i]);try{o=sr.lookupNode(o,n[i])}catch(r){if(44===r?.errno&&s&&e.noent_okay)return{path:a};throw r}if(!sr.isMountpoint(o)||s&&!e.follow_mount||(o=o.mounted.root),sr.isLink(o.mode)&&(!s||e.follow)){if(!o.node_ops.readlink)throw new sr.ErrnoError(52);var u=o.node_ops.readlink(o);V.isAbs(u)||(u=V.dirname(a)+"/"+u),r=u+"/"+n.slice(i+1).join("/");continue r}}else{if(a=V.dirname(a),sr.isRoot(o)){r=a+"/"+n.slice(i+1).join("/");continue r}o=o.parent}}return{path:a,node:o}}throw new sr.ErrnoError(32)},getPath(r){for(var e;;){if(sr.isRoot(r)){var t=r.mount.mountpoint;return e?"/"!==t[t.length-1]?`${t}/${e}`:t+e:t}e=e?`${r.name}/${e}`:r.name,r=r.parent}},hashName(r,e){for(var t=0,n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n)|0;return(r+t>>>0)%sr.nameTable.length},hashAddNode(r){var e=sr.hashName(r.parent.id,r.name);r.name_next=sr.nameTable[e],sr.nameTable[e]=r},hashRemoveNode(r){var e=sr.hashName(r.parent.id,r.name);if(sr.nameTable[e]===r)sr.nameTable[e]=r.name_next;else for(var t=sr.nameTable[e];t;){if(t.name_next===r){t.name_next=r.name_next;break}t=t.name_next}},lookupNode(r,e){var t=sr.mayLookup(r);if(t)throw new sr.ErrnoError(t);for(var n=sr.hashName(r.id,e),o=sr.nameTable[n];o;o=o.name_next){var a=o.name;if(o.parent.id===r.id&&a===e)return o}return sr.lookup(r,e)},createNode(r,e,t,n){var o=new sr.FSNode(r,e,t,n);return sr.hashAddNode(o),o},destroyNode(r){sr.hashRemoveNode(r)},isRoot:r=>r===r.parent,isMountpoint:r=>!!r.mounted,isFile:r=>32768==(61440&r),isDir:r=>16384==(61440&r),isLink:r=>40960==(61440&r),isChrdev:r=>8192==(61440&r),isBlkdev:r=>24576==(61440&r),isFIFO:r=>4096==(61440&r),isSocket:r=>!(49152&~r),flagsToPermissionString(r){var e=["r","w","rw"][3&r];return 512&r&&(e+="w"),e},nodePermissions:(r,e)=>sr.ignorePermissions||(!e.includes("r")||292&r.mode)&&(!e.includes("w")||146&r.mode)&&(!e.includes("x")||73&r.mode)?0:2,mayLookup:r=>sr.isDir(r.mode)?sr.nodePermissions(r,"x")||(r.node_ops.lookup?0:2):54,mayCreate(r,e){if(!sr.isDir(r.mode))return 54;try{return sr.lookupNode(r,e),20}catch(r){}return sr.nodePermissions(r,"wx")},mayDelete(r,e,t){var n;try{n=sr.lookupNode(r,e)}catch(r){return r.errno}var o=sr.nodePermissions(r,"wx");if(o)return o;if(t){if(!sr.isDir(n.mode))return 54;if(sr.isRoot(n)||sr.getPath(n)===sr.cwd())return 10}else if(sr.isDir(n.mode))return 31;return 0},mayOpen:(r,e)=>r?sr.isLink(r.mode)?32:sr.isDir(r.mode)&&("r"!==sr.flagsToPermissionString(e)||576&e)?31:sr.nodePermissions(r,sr.flagsToPermissionString(e)):44,checkOpExists(r,e){if(!r)throw new sr.ErrnoError(e);return r},MAX_OPEN_FDS:4096,nextfd(){for(var r=0;r<=sr.MAX_OPEN_FDS;r++)if(!sr.streams[r])return r;throw new sr.ErrnoError(33)},getStreamChecked(r){var e=sr.getStream(r);if(!e)throw new sr.ErrnoError(8);return e},getStream:r=>sr.streams[r],createStream:(r,e=-1)=>(r=Object.assign(new sr.FSStream,r),-1==e&&(e=sr.nextfd()),r.fd=e,sr.streams[e]=r,r),closeStream(r){sr.streams[r]=null},dupStream(r,e=-1){var t=sr.createStream(r,e);return t.stream_ops?.dup?.(t),t},doSetAttr(r,e,t){var n=r?.stream_ops.setattr,o=n?r:e;n??=e.node_ops.setattr,sr.checkOpExists(n,63),n(o,t)},chrdev_stream_ops:{open(r){var e=sr.getDevice(r.node.rdev);r.stream_ops=e.stream_ops,r.stream_ops.open?.(r)},llseek(){throw new sr.ErrnoError(70)}},major:r=>r>>8,minor:r=>255&r,makedev:(r,e)=>r<<8|e,registerDevice(r,e){sr.devices[r]={stream_ops:e}},getDevice:r=>sr.devices[r],getMounts(r){for(var e=[],t=[r];t.length;){var n=t.pop();e.push(n),t.push(...n.mounts)}return e},syncfs(r,e){"function"==typeof r&&(e=r,r=!1),sr.syncFSRequests++,sr.syncFSRequests>1&&k(`warning: ${sr.syncFSRequests} FS.syncfs operations in flight at once, probably just doing extra work`);var t=sr.getMounts(sr.root.mount),n=0;function o(r){return sr.syncFSRequests--,e(r)}function a(r){if(r)return a.errored?void 0:(a.errored=!0,o(r));++n>=t.length&&o(null)}t.forEach(e=>{if(!e.type.syncfs)return a(null);e.type.syncfs(e,r,a)})},mount(r,e,t){var n,o="/"===t,a=!t;if(o&&sr.root)throw new sr.ErrnoError(10);if(!o&&!a){var i=sr.lookupPath(t,{follow_mount:!1});if(t=i.path,n=i.node,sr.isMountpoint(n))throw new sr.ErrnoError(10);if(!sr.isDir(n.mode))throw new sr.ErrnoError(54)}var s={type:r,opts:e,mountpoint:t,mounts:[]},u=r.mount(s);return u.mount=s,s.root=u,o?sr.root=u:n&&(n.mounted=s,n.mount&&n.mount.mounts.push(s)),u},unmount(r){var e=sr.lookupPath(r,{follow_mount:!1});if(!sr.isMountpoint(e.node))throw new sr.ErrnoError(28);var t=e.node,n=t.mounted,o=sr.getMounts(n);Object.keys(sr.nameTable).forEach(r=>{for(var e=sr.nameTable[r];e;){var t=e.name_next;o.includes(e.mount)&&sr.destroyNode(e),e=t}}),t.mounted=null;var a=t.mount.mounts.indexOf(n);t.mount.mounts.splice(a,1)},lookup:(r,e)=>r.node_ops.lookup(r,e),mknod(r,e,t){var n=sr.lookupPath(r,{parent:!0}).node,o=V.basename(r);if(!o)throw new sr.ErrnoError(28);if("."===o||".."===o)throw new sr.ErrnoError(20);var a=sr.mayCreate(n,o);if(a)throw new sr.ErrnoError(a);if(!n.node_ops.mknod)throw new sr.ErrnoError(63);return n.node_ops.mknod(n,o,e,t)},statfs:r=>sr.statfsNode(sr.lookupPath(r,{follow:!0}).node),statfsStream:r=>sr.statfsNode(r.node),statfsNode(r){var e={bsize:4096,frsize:4096,blocks:1e6,bfree:5e5,bavail:5e5,files:sr.nextInode,ffree:sr.nextInode-1,fsid:42,flags:2,namelen:255};return r.node_ops.statfs&&Object.assign(e,r.node_ops.statfs(r.mount.opts.root)),e},create:(r,e=438)=>(e&=4095,e|=32768,sr.mknod(r,e,0)),mkdir:(r,e=511)=>(e&=1023,e|=16384,sr.mknod(r,e,0)),mkdirTree(r,e){var t=r.split("/"),n="";for(var o of t)if(o){(n||V.isAbs(r))&&(n+="/"),n+=o;try{sr.mkdir(n,e)}catch(r){if(20!=r.errno)throw r}}},mkdev:(r,e,t)=>(void 0===t&&(t=e,e=438),e|=8192,sr.mknod(r,e,t)),symlink(r,e){if(!q.resolve(r))throw new sr.ErrnoError(44);var t=sr.lookupPath(e,{parent:!0}).node;if(!t)throw new sr.ErrnoError(44);var n=V.basename(e),o=sr.mayCreate(t,n);if(o)throw new sr.ErrnoError(o);if(!t.node_ops.symlink)throw new sr.ErrnoError(63);return t.node_ops.symlink(t,n,r)},rename(r,e){var t,n,o=V.dirname(r),a=V.dirname(e),i=V.basename(r),s=V.basename(e);if(t=sr.lookupPath(r,{parent:!0}).node,n=sr.lookupPath(e,{parent:!0}).node,!t||!n)throw new sr.ErrnoError(44);if(t.mount!==n.mount)throw new sr.ErrnoError(75);var u,l=sr.lookupNode(t,i),d=q.relative(r,a);if("."!==d.charAt(0))throw new sr.ErrnoError(28);if("."!==(d=q.relative(e,o)).charAt(0))throw new sr.ErrnoError(55);try{u=sr.lookupNode(n,s)}catch(r){}if(l!==u){var c=sr.isDir(l.mode),f=sr.mayDelete(t,i,c);if(f)throw new sr.ErrnoError(f);if(f=u?sr.mayDelete(n,s,c):sr.mayCreate(n,s))throw new sr.ErrnoError(f);if(!t.node_ops.rename)throw new sr.ErrnoError(63);if(sr.isMountpoint(l)||u&&sr.isMountpoint(u))throw new sr.ErrnoError(10);if(n!==t&&(f=sr.nodePermissions(t,"w")))throw new sr.ErrnoError(f);sr.hashRemoveNode(l);try{t.node_ops.rename(l,n,s),l.parent=n}catch(r){throw r}finally{sr.hashAddNode(l)}}},rmdir(r){var e=sr.lookupPath(r,{parent:!0}).node,t=V.basename(r),n=sr.lookupNode(e,t),o=sr.mayDelete(e,t,!0);if(o)throw new sr.ErrnoError(o);if(!e.node_ops.rmdir)throw new sr.ErrnoError(63);if(sr.isMountpoint(n))throw new sr.ErrnoError(10);e.node_ops.rmdir(e,t),sr.destroyNode(n)},readdir(r){var e=sr.lookupPath(r,{follow:!0}).node;return sr.checkOpExists(e.node_ops.readdir,54)(e)},unlink(r){var e=sr.lookupPath(r,{parent:!0}).node;if(!e)throw new sr.ErrnoError(44);var t=V.basename(r),n=sr.lookupNode(e,t),o=sr.mayDelete(e,t,!1);if(o)throw new sr.ErrnoError(o);if(!e.node_ops.unlink)throw new sr.ErrnoError(63);if(sr.isMountpoint(n))throw new sr.ErrnoError(10);e.node_ops.unlink(e,t),sr.destroyNode(n)},readlink(r){var e=sr.lookupPath(r).node;if(!e)throw new sr.ErrnoError(44);if(!e.node_ops.readlink)throw new sr.ErrnoError(28);return e.node_ops.readlink(e)},stat(r,e){var t=sr.lookupPath(r,{follow:!e}).node;return sr.checkOpExists(t.node_ops.getattr,63)(t)},fstat(r){var e=sr.getStreamChecked(r),t=e.node,n=e.stream_ops.getattr,o=n?e:t;return n??=t.node_ops.getattr,sr.checkOpExists(n,63),n(o)},lstat:r=>sr.stat(r,!0),doChmod(r,e,t,n){sr.doSetAttr(r,e,{mode:4095&t|-4096&e.mode,ctime:Date.now(),dontFollow:n})},chmod(r,e,t){var n;n="string"==typeof r?sr.lookupPath(r,{follow:!t}).node:r,sr.doChmod(null,n,e,t)},lchmod(r,e){sr.chmod(r,e,!0)},fchmod(r,e){var t=sr.getStreamChecked(r);sr.doChmod(t,t.node,e,!1)},doChown(r,e,t){sr.doSetAttr(r,e,{timestamp:Date.now(),dontFollow:t})},chown(r,e,t,n){var o;o="string"==typeof r?sr.lookupPath(r,{follow:!n}).node:r,sr.doChown(null,o,n)},lchown(r,e,t){sr.chown(r,e,t,!0)},fchown(r,e,t){var n=sr.getStreamChecked(r);sr.doChown(n,n.node,!1)},doTruncate(r,e,t){if(sr.isDir(e.mode))throw new sr.ErrnoError(31);if(!sr.isFile(e.mode))throw new sr.ErrnoError(28);var n=sr.nodePermissions(e,"w");if(n)throw new sr.ErrnoError(n);sr.doSetAttr(r,e,{size:t,timestamp:Date.now()})},truncate(r,e){if(e<0)throw new sr.ErrnoError(28);var t;t="string"==typeof r?sr.lookupPath(r,{follow:!0}).node:r,sr.doTruncate(null,t,e)},ftruncate(r,e){var t=sr.getStreamChecked(r);if(e<0||!(2097155&t.flags))throw new sr.ErrnoError(28);sr.doTruncate(t,t.node,e)},utime(r,e,t){var n=sr.lookupPath(r,{follow:!0}).node;sr.checkOpExists(n.node_ops.setattr,63)(n,{atime:e,mtime:t})},open(r,e,t=438){if(""===r)throw new sr.ErrnoError(44);var o,a;if(t=64&(e="string"==typeof e?(r=>{var e={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[r];if(void 0===e)throw new Error(`Unknown file open mode: ${r}`);return e})(e):e)?4095&t|32768:0,"object"==typeof r)o=r;else{a=r.endsWith("/");var i=sr.lookupPath(r,{follow:!(131072&e),noent_okay:!0});o=i.node,r=i.path}var s=!1;if(64&e)if(o){if(128&e)throw new sr.ErrnoError(20)}else{if(a)throw new sr.ErrnoError(31);o=sr.mknod(r,511|t,0),s=!0}if(!o)throw new sr.ErrnoError(44);if(sr.isChrdev(o.mode)&&(e&=-513),65536&e&&!sr.isDir(o.mode))throw new sr.ErrnoError(54);if(!s){var u=sr.mayOpen(o,e);if(u)throw new sr.ErrnoError(u)}512&e&&!s&&sr.truncate(o,0),e&=-131713;var l=sr.createStream({node:o,path:sr.getPath(o),flags:e,seekable:!0,position:0,stream_ops:o.stream_ops,ungotten:[],error:!1});return l.stream_ops.open&&l.stream_ops.open(l),s&&sr.chmod(o,511&t),!n.logReadFiles||1&e||r in sr.readFiles||(sr.readFiles[r]=1),l},close(r){if(sr.isClosed(r))throw new sr.ErrnoError(8);r.getdents&&(r.getdents=null);try{r.stream_ops.close&&r.stream_ops.close(r)}catch(r){throw r}finally{sr.closeStream(r.fd)}r.fd=null},isClosed:r=>null===r.fd,llseek(r,e,t){if(sr.isClosed(r))throw new sr.ErrnoError(8);if(!r.seekable||!r.stream_ops.llseek)throw new sr.ErrnoError(70);if(0!=t&&1!=t&&2!=t)throw new sr.ErrnoError(28);return r.position=r.stream_ops.llseek(r,e,t),r.ungotten=[],r.position},read(r,e,t,n,o){if(n<0||o<0)throw new sr.ErrnoError(28);if(sr.isClosed(r))throw new sr.ErrnoError(8);if(1==(2097155&r.flags))throw new sr.ErrnoError(8);if(sr.isDir(r.node.mode))throw new sr.ErrnoError(31);if(!r.stream_ops.read)throw new sr.ErrnoError(28);var a=void 0!==o;if(a){if(!r.seekable)throw new sr.ErrnoError(70)}else o=r.position;var i=r.stream_ops.read(r,e,t,n,o);return a||(r.position+=i),i},write(r,e,t,n,o,a){if(n<0||o<0)throw new sr.ErrnoError(28);if(sr.isClosed(r))throw new sr.ErrnoError(8);if(!(2097155&r.flags))throw new sr.ErrnoError(8);if(sr.isDir(r.node.mode))throw new sr.ErrnoError(31);if(!r.stream_ops.write)throw new sr.ErrnoError(28);r.seekable&&1024&r.flags&&sr.llseek(r,0,2);var i=void 0!==o;if(i){if(!r.seekable)throw new sr.ErrnoError(70)}else o=r.position;var s=r.stream_ops.write(r,e,t,n,o,a);return i||(r.position+=s),s},mmap(r,e,t,n,o){if(2&n&&!(2&o)&&2!=(2097155&r.flags))throw new sr.ErrnoError(2);if(1==(2097155&r.flags))throw new sr.ErrnoError(2);if(!r.stream_ops.mmap)throw new sr.ErrnoError(43);if(!e)throw new sr.ErrnoError(28);return r.stream_ops.mmap(r,e,t,n,o)},msync:(r,e,t,n,o)=>r.stream_ops.msync?r.stream_ops.msync(r,e,t,n,o):0,ioctl(r,e,t){if(!r.stream_ops.ioctl)throw new sr.ErrnoError(59);return r.stream_ops.ioctl(r,e,t)},readFile(r,e={}){if(e.flags=e.flags||0,e.encoding=e.encoding||"binary","utf8"!==e.encoding&&"binary"!==e.encoding)throw new Error(`Invalid encoding type "${e.encoding}"`);var t=sr.open(r,e.flags),n=sr.stat(r).size,o=new Uint8Array(n);return sr.read(t,o,0,n,0),"utf8"===e.encoding&&(o=G(o)),sr.close(t),o},writeFile(r,e,t={}){t.flags=t.flags||577;var n=sr.open(r,t.flags,t.mode);if("string"==typeof e&&(e=new Uint8Array(Q(e))),!ArrayBuffer.isView(e))throw new Error("Unsupported data type");sr.write(n,e,0,e.byteLength,void 0,t.canOwn),sr.close(n)},cwd:()=>sr.currentPath,chdir(r){var e=sr.lookupPath(r,{follow:!0});if(null===e.node)throw new sr.ErrnoError(44);if(!sr.isDir(e.node.mode))throw new sr.ErrnoError(54);var t=sr.nodePermissions(e.node,"x");if(t)throw new sr.ErrnoError(t);sr.currentPath=e.path},createDefaultDirectories(){sr.mkdir("/tmp"),sr.mkdir("/home"),sr.mkdir("/home/web_user")},createDefaultDevices(){sr.mkdir("/dev"),sr.registerDevice(sr.makedev(1,3),{read:()=>0,write:(r,e,t,n,o)=>n,llseek:()=>0}),sr.mkdev("/dev/null",sr.makedev(1,3)),Z.register(sr.makedev(5,0),Z.default_tty_ops),Z.register(sr.makedev(6,0),Z.default_tty1_ops),sr.mkdev("/dev/tty",sr.makedev(5,0)),sr.mkdev("/dev/tty1",sr.makedev(6,0));var r=new Uint8Array(1024),e=0,t=()=>(0===e&&(H(r),e=r.byteLength),r[--e]);sr.createDevice("/dev","random",t),sr.createDevice("/dev","urandom",t),sr.mkdir("/dev/shm"),sr.mkdir("/dev/shm/tmp")},createSpecialDirectories(){sr.mkdir("/proc");var r=sr.mkdir("/proc/self");sr.mkdir("/proc/self/fd"),sr.mount({mount(){var e=sr.createNode(r,"fd",16895,73);return e.stream_ops={llseek:er.stream_ops.llseek},e.node_ops={lookup(r,e){var t=+e,n=sr.getStreamChecked(t),o={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>n.path},id:t+1};return o.parent=o,o},readdir:()=>Array.from(sr.streams.entries()).filter(([r,e])=>e).map(([r,e])=>r.toString())},e}},{},"/proc/self/fd")},createStandardStreams(r,e,t){r?sr.createDevice("/dev","stdin",r):sr.symlink("/dev/tty","/dev/stdin"),e?sr.createDevice("/dev","stdout",null,e):sr.symlink("/dev/tty","/dev/stdout"),t?sr.createDevice("/dev","stderr",null,t):sr.symlink("/dev/tty1","/dev/stderr"),sr.open("/dev/stdin",0),sr.open("/dev/stdout",1),sr.open("/dev/stderr",1)},staticInit(){sr.nameTable=new Array(4096),sr.mount(er,{},"/"),sr.createDefaultDirectories(),sr.createDefaultDevices(),sr.createSpecialDirectories(),sr.filesystems={MEMFS:er}},init(r,e,t){sr.initialized=!0,r??=n.stdin,e??=n.stdout,t??=n.stderr,sr.createStandardStreams(r,e,t)},quit(){for(var r of(sr.initialized=!1,sr.streams))r&&sr.close(r)},findObject(r,e){var t=sr.analyzePath(r,e);return t.exists?t.object:null},analyzePath(r,e){try{r=(n=sr.lookupPath(r,{follow:!e})).path}catch(r){}var t={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var n=sr.lookupPath(r,{parent:!0});t.parentExists=!0,t.parentPath=n.path,t.parentObject=n.node,t.name=V.basename(r),n=sr.lookupPath(r,{follow:!e}),t.exists=!0,t.path=n.path,t.object=n.node,t.name=n.node.name,t.isRoot="/"===n.path}catch(r){t.error=r.errno}return t},createPath(r,e,t,n){r="string"==typeof r?r:sr.getPath(r);for(var o=e.split("/").reverse();o.length;){var a=o.pop();if(a){var i=V.join2(r,a);try{sr.mkdir(i)}catch(r){if(20!=r.errno)throw r}r=i}}return i},createFile(r,e,t,n,o){var a=V.join2("string"==typeof r?r:sr.getPath(r),e),i=ir(n,o);return sr.create(a,i)},createDataFile(r,e,t,n,o,a){var i=e;r&&(r="string"==typeof r?r:sr.getPath(r),i=e?V.join2(r,e):r);var s=ir(n,o),u=sr.create(i,s);if(t){if("string"==typeof t){for(var l=new Array(t.length),d=0,c=t.length;d<c;++d)l[d]=t.charCodeAt(d);t=l}sr.chmod(u,146|s);var f=sr.open(u,577);sr.write(f,t,0,t.length,0,a),sr.close(f),sr.chmod(u,s)}},createDevice(r,e,t,n){var o=V.join2("string"==typeof r?r:sr.getPath(r),e),a=ir(!!t,!!n);sr.createDevice.major??=64;var i=sr.makedev(sr.createDevice.major++,0);return sr.registerDevice(i,{open(r){r.seekable=!1},close(r){n?.buffer?.length&&n(10)},read(r,e,n,o,a){for(var i=0,s=0;s<o;s++){var u;try{u=t()}catch(r){throw new sr.ErrnoError(29)}if(void 0===u&&0===i)throw new sr.ErrnoError(6);if(null==u)break;i++,e[n+s]=u}return i&&(r.node.atime=Date.now()),i},write(r,e,t,o,a){for(var i=0;i<o;i++)try{n(e[t+i])}catch(r){throw new sr.ErrnoError(29)}return o&&(r.node.mtime=r.node.ctime=Date.now()),i}}),sr.mkdev(o,a,i)},forceLoadFile(r){if(r.isDevice||r.isFolder||r.link||r.contents)return!0;if("undefined"!=typeof XMLHttpRequest)throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");try{r.contents=(void 0)(r.url),r.usedBytes=r.contents.length}catch(r){throw new sr.ErrnoError(29)}},createLazyFile(r,e,t,n,o){if("undefined"!=typeof XMLHttpRequest)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var a={isDevice:!1,url:t},i=sr.createFile(r,e,a,n,o);a.contents?i.contents=a.contents:a.url&&(i.contents=null,i.url=a.url),Object.defineProperties(i,{usedBytes:{get:function(){return this.contents.length}}});var s={};function u(r,e,t,n,o){var a=r.node.contents;if(o>=a.length)return 0;var i=Math.min(a.length-o,n);if(a.slice)for(var s=0;s<i;s++)e[t+s]=a[o+s];else for(s=0;s<i;s++)e[t+s]=a.get(o+s);return i}return Object.keys(i.stream_ops).forEach(r=>{var e=i.stream_ops[r];s[r]=(...r)=>(sr.forceLoadFile(i),e(...r))}),s.read=(r,e,t,n,o)=>(sr.forceLoadFile(i),u(r,e,t,n,o)),s.mmap=(r,e,t,n,o)=>{sr.forceLoadFile(i);var a=rr();if(!a)throw new sr.ErrnoError(48);return u(r,d,a,e,t),{ptr:a,allocated:!0}},i.stream_ops=s,i}},ur=(r,e)=>r?G(c,r,e):"",lr={DEFAULT_POLLMASK:5,calculateAt(r,e,t){if(V.isAbs(e))return e;var n;if(n=-100===r?sr.cwd():lr.getStreamFromFD(r).path,0==e.length){if(!t)throw new sr.ErrnoError(44);return n}return n+"/"+e},writeStat(r,e){h[r>>2]=e.dev,h[r+4>>2]=e.mode,p[r+8>>2]=e.nlink,h[r+12>>2]=e.uid,h[r+16>>2]=e.gid,h[r+20>>2]=e.rdev,y[r+24>>3]=BigInt(e.size),h[r+32>>2]=4096,h[r+36>>2]=e.blocks;var t=e.atime.getTime(),n=e.mtime.getTime(),o=e.ctime.getTime();return y[r+40>>3]=BigInt(Math.floor(t/1e3)),p[r+48>>2]=t%1e3*1e3*1e3,y[r+56>>3]=BigInt(Math.floor(n/1e3)),p[r+64>>2]=n%1e3*1e3*1e3,y[r+72>>3]=BigInt(Math.floor(o/1e3)),p[r+80>>2]=o%1e3*1e3*1e3,y[r+88>>3]=BigInt(e.ino),0},writeStatFs(r,e){h[r+4>>2]=e.bsize,h[r+40>>2]=e.bsize,h[r+8>>2]=e.blocks,h[r+12>>2]=e.bfree,h[r+16>>2]=e.bavail,h[r+20>>2]=e.files,h[r+24>>2]=e.ffree,h[r+28>>2]=e.fsid,h[r+44>>2]=e.flags,h[r+36>>2]=e.namelen},doMsync(r,e,t,n,o){if(!sr.isFile(e.node.mode))throw new sr.ErrnoError(43);if(2&n)return 0;var a=c.slice(r,r+t);sr.msync(e,a,o,t,n)},getStreamFromFD:r=>sr.getStreamChecked(r),varargs:void 0,getStr:r=>ur(r)},dr={},cr=r=>{for(;r.length;){var e=r.pop();r.pop()(e)}};function fr(r){return this.fromWireType(p[r>>2])}var mr={},hr={},pr={},vr=class extends Error{constructor(r){super(r),this.name="InternalError"}},wr=r=>{throw new vr(r)},yr=(r,e,t)=>{function n(e){var n=t(e);n.length!==r.length&&wr("Mismatched type converter count");for(var o=0;o<r.length;++o)_r(r[o],n[o])}r.forEach(r=>pr[r]=e);var o=new Array(e.length),a=[],i=0;e.forEach((r,e)=>{hr.hasOwnProperty(r)?o[e]=hr[r]:(a.push(r),mr.hasOwnProperty(r)||(mr[r]=[]),mr[r].push(()=>{o[e]=hr[r],++i===a.length&&n(o)}))}),0===a.length&&n(o)},gr=r=>{for(var e="";;){var t=c[r++];if(!t)return e;e+=String.fromCharCode(t)}},Er=class extends Error{constructor(r){super(r),this.name="BindingError"}},kr=r=>{throw new Er(r)};function _r(r,e,t={}){return function(r,e,t={}){var n=e.name;if(r||kr(`type "${n}" must have a positive integer typeid pointer`),hr.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;kr(`Cannot register type '${n}' twice`)}if(hr[r]=e,delete pr[r],mr.hasOwnProperty(r)){var o=mr[r];delete mr[r],o.forEach(r=>r())}}(r,e,t)}var br,Fr=(r,e,t)=>{switch(e){case 1:return t?r=>d[r]:r=>c[r];case 2:return t?r=>f[r>>1]:r=>m[r>>1];case 4:return t?r=>h[r>>2]:r=>p[r>>2];case 8:return t?r=>y[r>>3]:r=>g[r>>3];default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},Ar=[],Pr=[0,1,,1,null,1,!0,1,!1,1],Sr=r=>{r>9&&0===--Pr[r+1]&&(Pr[r]=void 0,Ar.push(r))},Dr=r=>(r||kr(`Cannot use deleted val. handle = ${r}`),Pr[r]),Tr=r=>{switch(r){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const e=Ar.pop()||Pr.length;return Pr[e]=r,Pr[e+1]=1,e}}},Cr={name:"emscripten::val",fromWireType:r=>{var e=Dr(r);return Sr(r),e},toWireType:(r,e)=>Tr(e),argPackAdvance:8,readValueFromPointer:fr,destructorFunction:null},xr=(r,e)=>{switch(e){case 4:return function(r){return this.fromWireType(v[r>>2])};case 8:return function(r){return this.fromWireType(w[r>>3])};default:throw new TypeError(`invalid float width (${e}): ${r}`)}},Mr=(r,e)=>Object.defineProperty(e,"name",{value:r}),Nr=(r,e,t)=>{if(void 0===r[e].overloadTable){var n=r[e];r[e]=function(...n){return r[e].overloadTable.hasOwnProperty(n.length)||kr(`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}},Rr=(r,e,t)=>{n.hasOwnProperty(r)?((void 0===t||void 0!==n[r].overloadTable&&void 0!==n[r].overloadTable[t])&&kr(`Cannot register public name '${r}' twice`),Nr(n,r,r),n[r].overloadTable.hasOwnProperty(t)&&kr(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),n[r].overloadTable[t]=e):(n[r]=e,n[r].argCount=t)},Br=(r,e,t)=>{n.hasOwnProperty(r)||wr("Replacing nonexistent public symbol"),void 0!==n[r].overloadTable&&void 0!==t?n[r].overloadTable[t]=e:(n[r]=e,n[r].argCount=t)},Or=[],jr=r=>{var e=Or[r];return e||(Or[r]=e=br.get(r)),e},Wr=(r,e,t=!1)=>{r=gr(r);var n=jr(e);return"function"!=typeof n&&kr(`unknown function pointer with signature ${r}: ${e}`),n};class zr extends Error{}var $r,Ir,Ur,Lr,Vr,Hr,qr,Xr=r=>{var e=Ir(r),t=gr(e);return Lr(e),t},Gr=(r,e,t)=>J(r,c,e,t),Yr="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,Kr=(r,e)=>{for(var t=r>>1,n=t+e/2,o=t;!(o>=n)&&m[o];)++o;if(o-t>16&&Yr)return Yr.decode(m.subarray(t,o));for(var a="",i=t;!(i>=n);++i){var s=m[i];if(0==s)break;a+=String.fromCharCode(s)}return a},Jr=(r,e,t)=>{if(t??=2147483647,t<2)return 0;for(var n=e,o=(t-=2)<2*r.length?t/2:r.length,a=0;a<o;++a){var i=r.charCodeAt(a);f[e>>1]=i,e+=2}return f[e>>1]=0,e-n},Qr=r=>2*r.length,Zr=(r,e)=>{for(var t="",n=0;!(n>=e/4);n++){var o=h[r+4*n>>2];if(!o)break;t+=String.fromCodePoint(o)}return t},re=(r,e,t)=>{if(t??=2147483647,t<4)return 0;for(var n=e,o=n+t-4,a=0;a<r.length;++a){var i=r.codePointAt(a);if(i>65535&&a++,h[e>>2]=i,(e+=4)+4>o)break}return h[e>>2]=0,e-n},ee=r=>{for(var e=0,t=0;t<r.length;++t)r.codePointAt(t)>65535&&t++,e+=4;return e},te=(r,e)=>{var t=hr[r];return void 0===t&&kr(`${e} has unknown type ${Xr(r)}`),t},ne=(r,e,t)=>{var n=[],o=r.toWireType(n,t);return n.length&&(p[e>>2]=Tr(n)),o},oe={},ae=r=>{var e=oe[r];return void 0===e?gr(r):e},ie=[],se=()=>globalThis,ue=(r,e)=>Math.ceil(r/e)*e,le=r=>{var e=(r-l.buffer.byteLength+65535)/65536|0;try{return l.grow(e),F(),1}catch(r){}},de={},ce=()=>{if(!ce.strings){var r={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.language||"C").replace("-","_")+".UTF-8",_:o||"./this.program"};for(var e in de)void 0===de[e]?delete r[e]:r[e]=de[e];var t=[];for(var e in r)t.push(`${e}=${r[e]}`);ce.strings=t}return ce.strings},fe=(r,e)=>{r<128?e.push(r):e.push(r%128|128,r>>7)},me=[],he=(r,e)=>{br.set(r,e),Or[r]=br.get(r)};sr.createPreloadedFile=ar,sr.staticInit(),er.doesNotExistError=new sr.ErrnoError(44),er.doesNotExistError.stack="<generic error, no stack>",n.noExitRuntime&&(W=n.noExitRuntime),n.preloadPlugins&&(or=n.preloadPlugins),n.print&&(E=n.print),n.printErr&&(k=n.printErr),n.wasmBinary&&(i=n.wasmBinary),n.arguments&&n.arguments,n.thisProgram&&(o=n.thisProgram),n.addRunDependency=D,n.removeRunDependency=T,n.addFunction=(r,e)=>{var t=(r=>($r||($r=new WeakMap,((r,e)=>{if($r)for(var t=0;t<0+e;t++){var n=jr(t);n&&$r.set(n,t)}})(0,br.length)),$r.get(r)||0))(r);if(t)return t;var n=(()=>{if(me.length)return me.pop();try{br.grow(1)}catch(r){if(!(r instanceof RangeError))throw r;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return br.length-1})();try{he(n,r)}catch(t){if(!(t instanceof TypeError))throw t;var o=((r,e)=>{if("function"==typeof WebAssembly.Function)return new WebAssembly.Function((r=>{for(var e={i:"i32",j:"i64",f:"f32",d:"f64",e:"externref",p:"i32"},t={parameters:[],results:"v"==r[0]?[]:[e[r[0]]]},n=1;n<r.length;++n)t.parameters.push(e[r[n]]);return t})(e),r);var t=[1];((r,e)=>{var t=r.slice(0,1),n=r.slice(1),o={i:127,p:127,j:126,f:125,d:124,e:111};for(var a of(e.push(96),fe(n.length,e),n))e.push(o[a]);"v"==t?e.push(0):e.push(1,o[t])})(e,t);var n=[0,97,115,109,1,0,0,0,1];fe(t.length,n),n.push(...t),n.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0);var o=new WebAssembly.Module(new Uint8Array(n));return new WebAssembly.Instance(o,{e:{f:r}}).exports.f})(r,e);he(n,o)}return $r.set(r,n),n},n.UTF8ToString=ur,n.FS_createPreloadedFile=ar,n.FS_unlink=(...r)=>sr.unlink(...r),n.FS_createPath=(...r)=>sr.createPath(...r),n.FS_createDevice=(...r)=>sr.createDevice(...r),n.FS_createDataFile=nr,n.FS_createLazyFile=(...r)=>sr.createLazyFile(...r);var pe={j:(r,e,t)=>{throw new I(r).init(e,t),r},w:function(r,e,t){lr.varargs=t;try{var n=lr.getStreamFromFD(r);switch(e){case 0:if((o=U())<0)return-28;for(;sr.streams[o];)o++;return sr.dupStream(n,o).fd;case 1:case 2:case 13:case 14:return 0;case 3:return n.flags;case 4:var o=U();return n.flags|=o,0;case 12:return o=L(),f[o+0>>1]=2,0}return-28}catch(r){if(void 0===sr||"ErrnoError"!==r.name)throw r;return-r.errno}},N:function(r,e,t){lr.varargs=t;try{var n=lr.getStreamFromFD(r);switch(e){case 21509:case 21510:case 21511:case 21512:case 21524:case 21515:return n.tty?0:-59;case 21505:if(!n.tty)return-59;if(n.tty.ops.ioctl_tcgets){var o=n.tty.ops.ioctl_tcgets(n),a=L();h[a>>2]=o.c_iflag||0,h[a+4>>2]=o.c_oflag||0,h[a+8>>2]=o.c_cflag||0,h[a+12>>2]=o.c_lflag||0;for(var i=0;i<32;i++)d[a+i+17]=o.c_cc[i]||0;return 0}return 0;case 21506:case 21507:case 21508:if(!n.tty)return-59;if(n.tty.ops.ioctl_tcsets){a=L();var s=h[a>>2],u=h[a+4>>2],l=h[a+8>>2],c=h[a+12>>2],m=[];for(i=0;i<32;i++)m.push(d[a+i+17]);return n.tty.ops.ioctl_tcsets(n.tty,e,{c_iflag:s,c_oflag:u,c_cflag:l,c_lflag:c,c_cc:m})}return 0;case 21519:return n.tty?(a=L(),h[a>>2]=0,0):-59;case 21520:return n.tty?-28:-59;case 21531:return a=L(),sr.ioctl(n,e,a);case 21523:if(!n.tty)return-59;if(n.tty.ops.ioctl_tiocgwinsz){var p=n.tty.ops.ioctl_tiocgwinsz(n.tty);a=L(),f[a>>1]=p[0],f[a+2>>1]=p[1]}return 0;default:return-28}}catch(r){if(void 0===sr||"ErrnoError"!==r.name)throw r;return-r.errno}},O:function(r,e,t,n){lr.varargs=n;try{e=lr.getStr(e),e=lr.calculateAt(r,e);var o=n?U():0;return sr.open(e,t,o).fd}catch(r){if(void 0===sr||"ErrnoError"!==r.name)throw r;return-r.errno}},P:()=>C(""),z:r=>{var e=dr[r];delete dr[r];var t=e.rawConstructor,n=e.rawDestructor,o=e.fields,a=o.map(r=>r.getterReturnType).concat(o.map(r=>r.setterArgumentType));yr([r],a,r=>{var a={};return o.forEach((e,t)=>{var n=e.fieldName,i=r[t],s=r[t].optional,u=e.getter,l=e.getterContext,d=r[t+o.length],c=e.setter,f=e.setterContext;a[n]={read:r=>i.fromWireType(u(l,r)),write:(r,e)=>{var t=[];c(f,r,d.toWireType(t,e)),cr(t)},optional:s}}),[{name:e.name,fromWireType:r=>{var e={};for(var t in a)e[t]=a[t].read(r);return n(r),e},toWireType:(r,e)=>{for(var o in a)if(!(o in e)&&!a[o].optional)throw new TypeError(`Missing field: "${o}"`);var i=t();for(o in a)a[o].write(i,e[o]);return null!==r&&r.push(n,i),i},argPackAdvance:8,readValueFromPointer:fr,destructorFunction:n}]})},y:(r,e,t,n,o)=>{e=gr(e);const a=0n===n;let i=r=>r;if(a){const r=8*t;i=e=>BigInt.asUintN(r,e),o=i(o)}_r(r,{name:e,fromWireType:i,toWireType:(r,e)=>("number"==typeof e&&(e=BigInt(e)),e),argPackAdvance:8,readValueFromPointer:Fr(e,t,!a),destructorFunction:null})},U:(r,e,t,n)=>{_r(r,{name:e=gr(e),fromWireType:function(r){return!!r},toWireType:function(r,e){return e?t:n},argPackAdvance:8,readValueFromPointer:function(r){return this.fromWireType(c[r])},destructorFunction:null})},S:r=>_r(r,Cr),x:(r,e,t)=>{_r(r,{name:e=gr(e),fromWireType:r=>r,toWireType:(r,e)=>e,argPackAdvance:8,readValueFromPointer:xr(e,t),destructorFunction:null})},n:(r,e,t,n,o,a,i,s)=>{var u=((r,e)=>{for(var t=[],n=0;n<r;n++)t.push(p[e+4*n>>2]);return t})(e,t);r=(r=>{const e=(r=r.trim()).indexOf("(");return-1===e?r:r.slice(0,e)})(r=gr(r)),o=Wr(n,o,i),Rr(r,function(){((r,e)=>{var t=[],n={};throw e.forEach(function r(e){n[e]||hr[e]||(pr[e]?pr[e].forEach(r):(t.push(e),n[e]=!0))}),new zr(`${r}: `+t.map(Xr).join([", "]))})(`Cannot call ${r} due to unbound types`,u)},e-1),yr([],u,t=>{var n=[t[0],null].concat(t.slice(1));return Br(r,function(r,e,t,n,o){var a=e.length;a<2&&kr("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),s="void"!==e[0].name,u=a-2,l=new Array(u),d=[],c=[];return Mr(r,function(...r){c.length=0,d.length=1,d[0]=o;for(var t=0;t<u;++t)l[t]=e[t+2].toWireType(c,r[t]),d.push(l[t]);return function(r){if(i)cr(c);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(s)return e[0].fromWireType(r)}(n(...d))})}(r,n,0,o,a),e-1),[]})},d:(r,e,t,n,o)=>{e=gr(e);let a=r=>r;if(0===n){var i=32-8*t;a=r=>r<<i>>>i,o=a(o)}_r(r,{name:e,fromWireType:a,toWireType:(r,e)=>e,argPackAdvance:8,readValueFromPointer:Fr(e,t,0!==n),destructorFunction:null})},b:(r,e,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,BigInt64Array,BigUint64Array][e];function o(r){var e=p[r>>2],t=p[r+4>>2];return new n(d.buffer,t,e)}_r(r,{name:t=gr(t),fromWireType:o,argPackAdvance:8,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},T:(r,e)=>{_r(r,{name:e=gr(e),fromWireType(r){for(var e,t=p[r>>2],n=r+4,o=n,a=0;a<=t;++a){var i=n+a;if(a==t||0==c[i]){var s=ur(o,i-o);void 0===e?e=s:(e+=String.fromCharCode(0),e+=s),o=i+1}}return Lr(r),e},toWireType(r,e){var t;e instanceof ArrayBuffer&&(e=new Uint8Array(e));var n="string"==typeof e;n||ArrayBuffer.isView(e)&&1==e.BYTES_PER_ELEMENT||kr("Cannot pass non-string to std::string"),t=n?K(e):e.length;var o=Ur(4+t+1),a=o+4;return p[o>>2]=t,n?Gr(e,a,t+1):c.set(e,a),null!==r&&r.push(Lr,o),o},argPackAdvance:8,readValueFromPointer:fr,destructorFunction(r){Lr(r)}})},r:(r,e,t)=>{var n,o,a,i;t=gr(t),2===e?(n=Kr,o=Jr,i=Qr,a=r=>m[r>>1]):4===e&&(n=Zr,o=re,i=ee,a=r=>p[r>>2]),_r(r,{name:t,fromWireType:r=>{for(var t,o=p[r>>2],i=r+4,s=0;s<=o;++s){var u=r+4+s*e;if(s==o||0==a(u)){var l=n(i,u-i);void 0===t?t=l:(t+=String.fromCharCode(0),t+=l),i=u+e}}return Lr(r),t},toWireType:(r,n)=>{"string"!=typeof n&&kr(`Cannot pass non-string to C++ string type ${t}`);var a=i(n),s=Ur(4+a+e);return p[s>>2]=a/e,o(n,s+4,a+e),null!==r&&r.push(Lr,s),s},argPackAdvance:8,readValueFromPointer:fr,destructorFunction(r){Lr(r)}})},A:(r,e,t,n,o,a)=>{dr[r]={name:gr(e),rawConstructor:Wr(t,n),rawDestructor:Wr(o,a),fields:[]}},c:(r,e,t,n,o,a,i,s,u,l)=>{dr[r].fields.push({fieldName:gr(e),getterReturnType:t,getter:Wr(n,o),getterContext:a,setterArgumentType:i,setter:Wr(s,u),setterContext:l})},V:(r,e)=>{_r(r,{isVoid:!0,name:e=gr(e),argPackAdvance:0,fromWireType:()=>{},toWireType:(r,e)=>{}})},R:r=>{do{var e=p[r>>2],t=p[(r+=4)>>2],n=p[(r+=4)>>2];r+=4;var o=ur(e);sr.createPath("/",V.dirname(o),!0,!0),sr.createDataFile(o,null,d.subarray(n,n+t),!0,!0,!0)}while(p[r>>2])},G:()=>{throw 1/0},X:(r,e,t)=>(r=Dr(r),e=te(e,"emval::as"),ne(e,t,r)),B:(r,e,t,n,o)=>(r=ie[r])(e=Dr(e),e[t=ae(t)],n,o),a:Sr,Y:r=>0===r?Tr(se()):(r=ae(r),Tr(se()[r])),C:(r,e,t)=>{var n=((r,e)=>{for(var t=new Array(r),n=0;n<r;++n)t[n]=te(p[e+4*n>>2],`parameter ${n}`);return t})(r,e),o=n.shift();r--;var a=new Array(r),i=`methodCaller<(${n.map(r=>r.name).join(", ")}) => ${o.name}>`;return(r=>{var e=ie.length;return ie.push(r),e})(Mr(i,(e,i,s,u)=>{for(var l=0,d=0;d<r;++d)a[d]=n[d].readValueFromPointer(u+l),l+=n[d].argPackAdvance;var c=1===t?Reflect.construct(i,a):i.apply(e,a);return ne(o,s,c)}))},m:(r,e)=>(r=Dr(r),e=Dr(e),Tr(r[e])),h:r=>{r>9&&(Pr[r+1]+=1)},D:()=>Tr([]),i:r=>Tr(ae(r)),s:r=>{var e=Dr(r);cr(e),Sr(r)},W:(r,e,t)=>{r=Dr(r),e=Dr(e),t=Dr(t),r[e]=t},l:(r,e)=>{var t=(r=te(r,"_emval_take_value")).readValueFromPointer(e);return Tr(t)},I:(r,e,t,n)=>{var o=(new Date).getFullYear(),a=new Date(o,0,1),i=new Date(o,6,1),s=a.getTimezoneOffset(),u=i.getTimezoneOffset(),l=Math.max(s,u);p[r>>2]=60*l,h[e>>2]=Number(s!=u);var d=r=>{var e=r>=0?"-":"+",t=Math.abs(r);return`UTC${e}${String(Math.floor(t/60)).padStart(2,"0")}${String(t%60).padStart(2,"0")}`},c=d(s),f=d(u);u<s?(Gr(c,t,17),Gr(f,n,17)):(Gr(c,n,17),Gr(f,t,17))},H:r=>{var e=c.length,t=2147483648;if((r>>>=0)>t)return!1;for(var n=1;n<=4;n*=2){var o=e*(1+.2/n);o=Math.min(o,r+100663296);var a=Math.min(t,ue(Math.max(r,o),65536));if(le(a))return!0}return!1},K:(r,e)=>{var t=0,n=0;for(var o of ce()){var a=e+t;p[r+n>>2]=a,t+=Gr(o,a,1/0)+1,n+=4}return 0},L:(r,e)=>{var t=ce();p[r>>2]=t.length;var n=0;for(var o of t)n+=K(o)+1;return p[e>>2]=n,0},Q:(r,e)=>{(r=>{W||(n.onExit?.(r),_=!0),((r,e)=>{throw e})(0,new M(r))})(r)},u:function(r){try{var e=lr.getStreamFromFD(r);return sr.close(e),0}catch(r){if(void 0===sr||"ErrnoError"!==r.name)throw r;return r.errno}},M:function(r,e,t,n){try{var o=((r,e,t)=>{for(var n=0,o=0;o<t;o++){var a=p[e>>2],i=p[e+4>>2];e+=8;var s=sr.read(r,d,a,i,undefined);if(s<0)return-1;if(n+=s,s<i)break}return n})(lr.getStreamFromFD(r),e,t);return p[n>>2]=o,0}catch(r){if(void 0===sr||"ErrnoError"!==r.name)throw r;return r.errno}},J:function(r,e,t,n){e=(r=>r<-9007199254740992||r>9007199254740992?NaN:Number(r))(e);try{if(isNaN(e))return 61;var o=lr.getStreamFromFD(r);return sr.llseek(o,e,t),y[n>>3]=BigInt(o.position),o.getdents&&0===e&&0===t&&(o.getdents=null),0}catch(r){if(void 0===sr||"ErrnoError"!==r.name)throw r;return r.errno}},v:function(r,e,t,n){try{var o=((r,e,t)=>{for(var n=0,o=0;o<t;o++){var a=p[e>>2],i=p[e+4>>2];e+=8;var s=sr.write(r,d,a,i,undefined);if(s<0)return-1;if(n+=s,s<i)break}return n})(lr.getStreamFromFD(r),e,t);return p[n>>2]=o,0}catch(r){if(void 0===sr||"ErrnoError"!==r.name)throw r;return r.errno}},o:function(r,e){var t=$();try{return jr(r)(e)}catch(r){if(z(t),r!==r+0)throw r;Vr(1,0)}},k:function(r,e,t){var n=$();try{return jr(r)(e,t)}catch(r){if(z(n),r!==r+0)throw r;Vr(1,0)}},p:function(r,e,t,n){var o=$();try{return jr(r)(e,t,n)}catch(r){if(z(o),r!==r+0)throw r;Vr(1,0)}},t:function(r,e,t,n,o){var a=$();try{return jr(r)(e,t,n,o)}catch(r){if(z(a),r!==r+0)throw r;Vr(1,0)}},F:function(r,e,t,n,o,a,i,s,u,l){var d=$();try{return jr(r)(e,t,n,o,a,i,s,u,l)}catch(r){if(z(d),r!==r+0)throw r;Vr(1,0)}},q:function(r){var e=$();try{jr(r)()}catch(r){if(z(e),r!==r+0)throw r;Vr(1,0)}},e:function(r,e){var t=$();try{jr(r)(e)}catch(r){if(z(t),r!==r+0)throw r;Vr(1,0)}},E:function(r,e,t,n){var o=$();try{jr(r)(e,t,n)}catch(r){if(z(o),r!==r+0)throw r;Vr(1,0)}},f:function(r,e,t){var n=$();try{jr(r)(e,t)}catch(r){if(z(n),r!==r+0)throw r;Vr(1,0)}},g:function(r,e,t,n){var o=$();try{jr(r)(e,t,n)}catch(r){if(z(o),r!==r+0)throw r;Vr(1,0)}}},ve=await async function(){function r(r,e){return ve=r.exports,l=ve.Z,F(),br=ve.aa,function(r){Ir=r.$,n._malloc=Ur=r.ba,n._free=Lr=r.ca,Vr=r.da,Hr=r.ea,qr=r.fa}(ve),T(),ve}D();var e={a:pe};return n.instantiateWasm?new Promise((t,o)=>{n.instantiateWasm(e,(e,n)=>{t(r(e))})}):(A??=function(r){return n.locateFile?n.locateFile(r,a):a+r}("lyr3DWorker.wasm"),function(e){return r(e.instance)}(await async function(r,e,t){if(!r&&"function"==typeof WebAssembly.instantiateStreaming)try{var n=fetch(e,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(n,t)}catch(r){k(`wasm streaming compile failed: ${r}`),k("falling back to ArrayBuffer instantiation")}return async function(r,e){try{var t=await x(r);return await WebAssembly.instantiate(t,e)}catch(r){k(`failed to asynchronously prepare wasm: ${r}`),C(r)}}(e,t)}(i,A,e)))}();return function(){if(n.preInit)for("function"==typeof n.preInit&&(n.preInit=[n.preInit]);n.preInit.length>0;)n.preInit.shift()()}(),function r(){function e(){n.calledRun=!0,_||(b=!0,n.noFSInit||sr.initialized||sr.init(),ve._(),sr.ignorePermissions=!1,s?.(n),n.onRuntimeInitialized?.(),function(){if(n.postRun)for("function"==typeof n.postRun&&(n.postRun=[n.postRun]);n.postRun.length;)B(n.postRun.shift());N(R)}())}P>0?S=r:(function(){if(n.preRun)for("function"==typeof n.preRun&&(n.preRun=[n.preRun]);n.preRun.length;)j(n.preRun.shift());N(O)}(),P>0?S=r:n.setStatus?(n.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>n.setStatus(""),1),e()},1)):e())}(),b?n:new Promise((r,e)=>{s=r,u=e})},r.exports=t,r.exports.default=t),a.exports;var r,e,t}()),s=Object.freeze(Object.defineProperty({__proto__:null,default:i},Symbol.toStringTag,{value:"Module"}))},11053:(r,e,t)=>{t.d(e,{c:()=>n,g:()=>o});var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1277,7561],{21277:(t,e,r)=>{r.r(e),r.d(e,{executeForTopIds:()=>n});var i=r(2272),o=r(24645),s=r(57561);async function n(t,e,r){const n=(0,i.Dl)(t);return(await(0,o.KW)(n,s.default.from(e),{...r})).data.objectIds}},24645:(t,e,r)=>{r.d(e,{$K:()=>h,KW:()=>c,Yb:()=>y,xs:()=>m});var i=r(11254),o=r(84952),s=r(65864),n=r(17136),l=r(21325),u=r(10536),p=r(58501);const a="Layer does not support extent calculation.";function d(t,e){const r=t.geometry,i=t.toJSON(),o=i;if(null!=r&&(o.geometry=JSON.stringify(r),o.geometryType=(0,s.$B)(r),o.inSR=(0,l.YX)(r.spatialReference)),i.topFilter?.groupByFields&&(o.topFilter.groupByFields=i.topFilter.groupByFields.join(",")),i.topFilter?.orderByFields&&(o.topFilter.orderByFields=i.topFilter.orderByFields.join(",")),i.topFilter&&(o.topFilter=JSON.stringify(o.topFilter)),i.objectIds&&(o.objectIds=i.objectIds.join(",")),i.orderByFields&&(o.orderByFields=i.orderByFields.join(",")),i.outFields&&!(e?.returnCountOnly||e?.returnExtentOnly||e?.returnIdsOnly)?i.outFields.includes("*")?o.outFields="*":o.outFields=i.outFields.join(","):delete o.outFields,i.outSR?o.outSR=(0,l.YX)(i.outSR):r&&i.returnGeometry&&(o.outSR=o.inSR),i.returnGeometry&&delete i.returnGeometry,i.timeExtent){const t=i.timeExtent,{start:e,end:r}=t;null==e&&null==r||(o.time=e===r?e:`${e??"null"},${r??"null"}`),delete i.timeExtent}return o}async function y(t,e,r,i){const o=await g(t,e,"json",i);return(0,p.q)(e,r,o.data),o}async function c(t,e,r){return null!=e.timeExtent&&e.timeExtent.isEmpty?{data:{objectIds:[]}}:g(t,e,"json",r,{returnIdsOnly:!0})}async function h(t,e,r){return null!=e.timeExtent&&e.timeExtent.isEmpty?{data:{count:0,extent:null}}:g(t,e,"json",r,{returnExtentOnly:!0,returnCountOnly:!0}).then(t=>{const e=t.data;if(e.hasOwnProperty("extent"))return t;if(e.features)throw new Error(a);if(e.hasOwnProperty("count"))throw new Error(a);return t})}function m(t,e,r){return null!=e.timeExtent&&e.timeExtent.isEmpty?Promise.resolve({data:{count:0}}):g(t,e,"json",r,{returnIdsOnly:!0,returnCountOnly:!0})}function g(t,e,r,s={},l={}){const p="string"==typeof t?(0,o.An)(t):t,a=e.geometry?[e.geometry]:[];return s.responseType="json",(0,n.el)(a,null,s).then(t=>{const n=t?.[0];null!=n&&((e=e.clone()).geometry=n);const a=(0,u.z)({...p.query,f:r,...l,...d(e,l)});return(0,i.A)((0,o.fj)(p.path,"queryTopFeatures"),{...s,query:{...a,...s.query}})})}},57561:(t,e,r)=>{r.r(e),r.d(e,{default:()=>S});var i,o=r(31635),s=r(66552),n=r(25482),l=r(4718),u=r(91429),p=r(56507),a=r(16930),d=r(65864),y=r(50498),c=r(77696);let h=i=class extends n.o{constructor(t){super(t),this.groupByFields=void 0,this.topCount=void 0,this.orderByFields=void 0}clone(){return new i({groupByFields:this.groupByFields,topCount:this.topCount,orderByFields:this.orderByFields})}};(0,o.Cg)([(0,u.MZ)({type:[String],json:{write:!0}})],h.prototype,"groupByFields",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],h.prototype,"topCount",void 0),(0,o.Cg)([(0,u.MZ)({type:[String],json:{write:!0}})],h.prototype,"orderByFields",void 0),h=i=(0,o.Cg)([(0,u.$K)("esri.rest.support.TopFilter")],h);const m=h;var g,w=r(79677),F=r(43937);const v=new s.J({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),j=new s.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let S=class extends((0,c.y)(n.o)){static{g=this}constructor(t){super(t),this.cacheHint=void 0,this.distance=void 0,this.geometry=null,this.geometryPrecision=void 0,this.maxAllowableOffset=void 0,this.num=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.resultType=null,this.returnGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.start=void 0,this.spatialRelationship="intersects",this.timeExtent=null,this.topFilter=void 0,this.units=null,this.where="1=1"}writeStart(t,e){e.resultOffset=this.start,e.resultRecordCount=this.num||10}clone(){return new g((0,l.o8)({cacheHint:this.cacheHint,distance:this.distance,geometry:this.geometry,geometryPrecision:this.geometryPrecision,maxAllowableOffset:this.maxAllowableOffset,num:this.num,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,resultType:this.resultType,returnGeometry:this.returnGeometry,returnZ:this.returnZ,returnM:this.returnM,start:this.start,spatialRelationship:this.spatialRelationship,timeExtent:this.timeExtent,topFilter:this.topFilter,units:this.units,where:this.where}))}};(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0}})],S.prototype,"cacheHint",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{write:{overridePolicy:t=>({enabled:t>0})}}})],S.prototype,"distance",void 0),(0,o.Cg)([(0,u.MZ)({types:y.yR,json:{read:d.rS,write:!0}})],S.prototype,"geometry",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],S.prototype,"geometryPrecision",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],S.prototype,"maxAllowableOffset",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{read:{source:"resultRecordCount"}}})],S.prototype,"num",void 0),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],S.prototype,"objectIds",void 0),(0,o.Cg)([(0,u.MZ)({type:[String],json:{write:!0}})],S.prototype,"orderByFields",void 0),(0,o.Cg)([(0,u.MZ)({type:[String],json:{write:!0}})],S.prototype,"outFields",void 0),(0,o.Cg)([(0,u.MZ)({type:a.A,json:{read:{source:"outSR"},write:{target:"outSR"}}})],S.prototype,"outSpatialReference",void 0),(0,o.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],S.prototype,"resultType",void 0),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],S.prototype,"returnGeometry",void 0),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],S.prototype,"returnM",void 0),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],S.prototype,"returnZ",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{read:{source:"resultOffset"}}})],S.prototype,"start",void 0),(0,o.Cg)([(0,F.K)("start"),(0,F.K)("num")],S.prototype,"writeStart",null),(0,o.Cg)([(0,u.MZ)({type:String,json:{read:{source:"spatialRel",reader:v.read},write:{target:"spatialRel",writer:v.write}}})],S.prototype,"spatialRelationship",void 0),(0,o.Cg)([(0,u.MZ)({type:w.A,json:{write:!0}})],S.prototype,"timeExtent",void 0),(0,o.Cg)([(0,u.MZ)({type:m,json:{write:!0}})],S.prototype,"topFilter",void 0),(0,o.Cg)([(0,u.MZ)({type:String,json:{read:j.read,write:{writer:j.write,overridePolicy(t){return{enabled:null!=t&&null!=this.distance}}}}})],S.prototype,"units",void 0),(0,o.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],S.prototype,"where",void 0),S=g=(0,o.Cg)([(0,u.$K)("esri.rest.support.TopFeaturesQuery")],S),S.from=(0,p.dp)(S)}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9958],{29958:(t,e,o)=>{o.r(e),o.d(e,{default:()=>M});var i=o(31635),r=o(69540),s=o(25482),n=o(91429),p=o(56507),a=o(16930),l=o(65864),d=o(50498),u=o(66552),v=o(7562),y=o(93223);const c=new u.J({asc:"ascending",desc:"descending"});let g=class extends((0,r.OU)(s.o)){constructor(t){super(t),this.fieldName=void 0,this.fieldOrder=void 0,this.outStatistic=void 0,this.type="pivot"}};(0,i.Cg)([(0,n.MZ)({type:String,json:{name:"pivotParameters.pivotFieldName",write:!0}})],g.prototype,"fieldName",void 0),(0,i.Cg)([(0,y.e)(c,{name:"pivotParameters.pivotFieldOrder"})],g.prototype,"fieldOrder",void 0),(0,i.Cg)([(0,n.MZ)({type:v.A,json:{name:"pivotParameters.outStatistic",write:!0}})],g.prototype,"outStatistic",void 0),(0,i.Cg)([(0,y.e)({Pivot:"pivot"},{name:"pivotType",readOnly:!0})],g.prototype,"type",void 0),g=(0,i.Cg)([(0,n.$K)("esri.rest.support.PivotDefinition")],g);const h=g;var m=o(27348),C=o(77696),S=o(58174);let w=class extends((0,r.OU)(s.o)){constructor(t){super(t),this.sourceFields=void 0,this.valueFieldName=void 0,this.targetFieldName=void 0,this.type="un-pivot"}};(0,i.Cg)([(0,n.MZ)({type:[String],json:{name:"unPivotParameters.sourceFields",write:!0}})],w.prototype,"sourceFields",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{name:"unPivotParameters.valueFieldName",write:!0}})],w.prototype,"valueFieldName",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{name:"unPivotParameters.targetFieldName",write:!0}})],w.prototype,"targetFieldName",void 0),(0,i.Cg)([(0,y.e)({Unpivot:"un-pivot"},{name:"pivotType",readOnly:!0})],w.prototype,"type",void 0),w=(0,i.Cg)([(0,n.$K)("esri.rest.support.UnPivotDefinition")],w);var f=o(43937);const P={key:"type",base:null,typeMap:{pivot:h,"un-pivot":w}};let M=class extends((0,r.OU)((0,C.y)(s.o))){constructor(t){super(t),this.cacheHint=void 0,this.defaultSpatialReferenceEnabled=!1,this.geometry=null,this.groupByFieldsForStatistics=null,this.num=void 0,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.outStatistics=null,this.outPivots=null,this.quantizationParameters=null,this.sourceSpatialReference=null,this.spatialRelationship="intersects",this.start=void 0,this.where=void 0}writeStart(t,e){e.resultOffset=this.start,e.resultRecordCount=this.num||10,e.where="1=1"}};(0,i.Cg)([(0,n.MZ)({type:Boolean,json:{write:!0}})],M.prototype,"cacheHint",void 0),(0,i.Cg)([(0,n.MZ)({type:Boolean,json:{default:!1,write:!0}})],M.prototype,"defaultSpatialReferenceEnabled",void 0),(0,i.Cg)([(0,n.MZ)({types:d.yR,json:{read:l.rS,write:!0}})],M.prototype,"geometry",void 0),(0,i.Cg)([(0,n.MZ)({type:[String],json:{write:!0}})],M.prototype,"groupByFieldsForStatistics",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{read:{source:"resultRecordCount"}}})],M.prototype,"num",void 0),(0,i.Cg)([(0,n.MZ)({type:[String],json:{write:!0}})],M.prototype,"orderByFields",void 0),(0,i.Cg)([(0,n.MZ)({type:[String],json:{write:!0}})],M.prototype,"outFields",void 0),(0,i.Cg)([(0,n.MZ)({type:a.A,json:{name:"outSR",write:!0}})],M.prototype,"outSpatialReference",void 0),(0,i.Cg)([(0,n.MZ)({type:[v.A],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.outStatistics&&this.outStatistics.length>0}}}}})],M.prototype,"outStatistics",void 0),(0,i.Cg)([(0,n.MZ)({types:[P],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.outPivots&&this.outPivots.length>0}}}}})],M.prototype,"outPivots",void 0),(0,i.Cg)([(0,n.MZ)({type:m.A,json:{write:!0}})],M.prototype,"quantizationParameters",void 0),(0,i.Cg)([(0,n.MZ)({type:a.A,json:{write:!0}})],M.prototype,"sourceSpatialReference",void 0),(0,i.Cg)([(0,y.e)(S.x,{ignoreUnknown:!1,name:"spatialRel"})],M.prototype,"spatialRelationship",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{read:{source:"resultOffset"}}})],M.prototype,"start",void 0),(0,i.Cg)([(0,f.K)("start"),(0,f.K)("num")],M.prototype,"writeStart",null),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],M.prototype,"where",void 0),M=(0,i.Cg)([(0,n.$K)("esri.rest.support.PivotQuery")],M),M.from=(0,p.dp)(M)}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3666],{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"}))},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}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[506,3169,5874,8125],{5874:(e,t,n)=>{n.r(t),n.d(t,{execute:()=>a,executeMany:()=>i,isSimple:()=>u,supportsCurves:()=>c});var r=n(76061);const s=new(n(98783).O);var o=n(78125);function a(e){const t=(0,o.getSpatialReference)(e);return(0,o.toGeometry)(function(e,t){return s.execute(e,t,!1,null)}((0,o.fromGeometry)(e),(0,o.fromSpatialReference)(t)),t)}function i(e){const t=e.map(o.fromGeometry),n=(0,o.getSpatialReference)(e);return function(e,t){const n=s.executeMany(new r.S(e),t,!1,null);return Array.from(n)}(t,(0,o.fromSpatialReference)(n)).map(e=>(0,o.toGeometry)(e,n))}function u(e,t){return function(e,t,n,r){return s.isSimple(e,t,n,r,null)}((0,o.fromGeometry)(e),(0,o.fromSpatialReference)((0,o.getSpatialReference)(e)),null!=t,t??null)}const c=s.supportsCurves()},76061:(e,t,n)=>{n.d(t,{G:()=>r,S:()=>s});class r{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}class s extends r{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}}},78125:(e,t,n)=>{n.r(t),n.d(t,{fromExtent:()=>C,fromGeometry:()=>G,fromMultipoint:()=>M,fromPoint:()=>R,fromPolygon:()=>w,fromPolyline:()=>V,fromSpatialReference:()=>_,getSpatialReference:()=>x,toExtent:()=>v,toGeometry:()=>d,toMultipoint:()=>S,toPoint:()=>P,toPolygon:()=>Z,toPolyline:()=>k});var r=n(83661),s=(n(79187),n(55537)),o=n(95213),a=n(88885),i=n(39117),u=n(5443),c=n(48526),l=n(86738),m=n(39829),f=n(82799),h=(n(90293),n(83299));const p="_gxVersion",y=2,g=1;function x(e){return Array.isArray(e)?e[0].spatialReference:e.spatialReference}function G(e){switch(e.type){case"point":return R(e);case"multipoint":return M(e);case"polyline":return V(e);case"polygon":return w(e);case"extent":return C(e);default:throw new Error(`Unsupported geometry type: ${e.type}`)}}function C(e){if(!e.getCacheValue(p)){const t=new o.E;t.setCoords(e.xmin,e.ymin,e.xmax,e.ymax),e.hasM&&t.setInterval(y,0,e.mmin,e.mmax),e.hasZ&&t.setInterval(g,0,e.zmin,e.zmax),e.setCacheValue(p,t)}return e.getCacheValue(p)}function M(e){if(!e.getCacheValue(p)){const t=new a.M,n=new o.P,r=e.points,s=e.hasM,i=e.hasZ,u=i?3:2;for(let e=0,o=r.length;e<o;e++){const o=r[e];n.setXYCoords(o[0],o[1]),i&&n.setZ(o[2]??0),s&&n.setM(o[u]??NaN),t.add(n)}e.setCacheValue(p,t)}return e.getCacheValue(p)}function R(e){if(!e.getCacheValue(p)){const t=new o.P;t.setXYCoords(e.x,e.y),e.hasM&&t.setM(e.m),e.hasZ&&t.setZ(e.z),e.setCacheValue(p,t)}return e.getCacheValue(p)}function w(e){if(!e.getCacheValue(p)){const{curveRings:t,hasM:n,hasZ:r,rings:s}=e,o=(0,h.fromGeometryToGXGeometry)({curveRings:t,hasM:n,hasZ:r,rings:s});e.setCacheValue(p,o)}return e.getCacheValue(p)}function V(e){if(!e.getCacheValue(p)){const{curvePaths:t,hasM:n,hasZ:r,paths:s}=e,o=(0,h.fromGeometryToGXGeometry)({curvePaths:t,hasM:n,hasZ:r,paths:s});e.setCacheValue(p,o)}return e.getCacheValue(p)}function _(e){if(e.wkid)return(0,i.c)(e.wkid);const t=e.wkt2||e.wkt;return t?(0,i.b)(t):null}function d(e,t){if(e)switch(e.getGeometryType()){case s.G.enumPoint:return P(e,t);case s.G.enumEnvelope:return v(e,t);case s.G.enumMultiPoint:return S(e,t);case s.G.enumPolyline:return k(e,t);case s.G.enumPolygon:return Z(e,t)}return null}function v(e,t){if(e.isEmpty())return null;const n=new u.A({xmin:e.getXMin(),ymin:e.getYMin(),xmax:e.getXMax(),ymax:e.getYMax(),spatialReference:t}),r=e.getDescription();if(r.hasM()){const t=e.queryInterval(y,0);n.mmin=t.vmin,n.mmax=t.vmax}if(r.hasZ()){const t=e.queryInterval(g,0);n.zmin=t.vmin,n.zmax=t.vmax}return n.setCacheValue(p,e),n}function S(e,t){if(e.isEmpty())return null;const n=e.getDescription(),r=n.hasM(),s=n.hasZ(),a=[],i=new o.P;for(let t=0,n=e.getPointCount();t<n;t++){e.getPointByVal(t,i);const n=[i.getX(),i.getY()];s&&n.push(i.getZ()),r&&n.push(i.getM()),a.push(n)}const u=new c.A({hasM:r,hasZ:s,points:a,spatialReference:t});return u.setCacheValue(p,e),u}function P(e,t){if(e instanceof r.P)return new l.A({x:e.x,y:e.y,spatialReference:t});if(e.isEmpty())return null;const n=new l.A({x:e.getX(),y:e.getY(),spatialReference:t}),s=e.getDescription();return s.hasM()&&(n.m=e.getM()),s.hasZ()&&(n.z=e.getZ()),n.setCacheValue(p,e),n}function Z(e,t){if(e.isEmpty())return null;const n=m.A.fromJSON({spatialReference:t,...(0,h.toGeometry)(e,null)});return n.setCacheValue(p,e),n}function k(e,t){if(e.isEmpty())return null;const n=f.A.fromJSON({spatialReference:t,...(0,h.toGeometry)(e,null)});return n.setCacheValue(p,e),n}},98783:(e,t,n)=>{n.d(t,{O:()=>a});var r=n(76061),s=n(55537),o=n(39117);class a{getOperatorType(){return 10104}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}isSimple(e,t,n,r,s){return 5===(0,o.M)(e,t,n,r,s)}executeMany(e,t,n,r){return new i(e,t,n,r)}execute(e,t,n,o){const a=new r.S([e]),i=this.executeMany(a,t,n,o).next();return i||(0,s.d)("null output"),i}}class i extends r.G{constructor(e,t,n,r){super(),e||(0,s.a)(""),this.m_progressTracker=r,this.m_bForceSimplify=n,this.m_index=-1,this.m_inputGeometryCursor=e,this.m_spatialReference=t}next(){const e=this.m_inputGeometryCursor.next();return e?((0,s.c)(e),this.m_index=this.m_inputGeometryCursor.getGeometryID(),this.simplify(e)):null}getGeometryID(){return this.m_index}tock(){return!1}getRank(){return 1}simplify(e){return e||(0,s.a)(""),(0,o.N)(e,this.m_spatialReference,this.m_bForceSimplify,this.m_progressTracker)}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[506,3169,5180,8125],{45328:(e,t,n)=>{n.r(t),n.d(t,{accelerateGeometry:()=>r.a,execute:()=>r.b,supportsCurves:()=>r.s});var r=n(90836);n(78125)},76061:(e,t,n)=>{n.d(t,{G:()=>r,S:()=>s});class r{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}class s extends r{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}}},78125:(e,t,n)=>{n.r(t),n.d(t,{fromExtent:()=>C,fromGeometry:()=>G,fromMultipoint:()=>M,fromPoint:()=>V,fromPolygon:()=>v,fromPolyline:()=>w,fromSpatialReference:()=>P,getSpatialReference:()=>x,toExtent:()=>d,toGeometry:()=>R,toMultipoint:()=>Z,toPoint:()=>_,toPolygon:()=>S,toPolyline:()=>k});var r=n(83661),s=(n(79187),n(55537)),a=n(95213),o=n(88885),u=n(39117),i=n(5443),c=n(48526),l=n(86738),m=n(39829),f=n(82799),h=(n(90293),n(83299));const p="_gxVersion",y=2,g=1;function x(e){return Array.isArray(e)?e[0].spatialReference:e.spatialReference}function G(e){switch(e.type){case"point":return V(e);case"multipoint":return M(e);case"polyline":return w(e);case"polygon":return v(e);case"extent":return C(e);default:throw new Error(`Unsupported geometry type: ${e.type}`)}}function C(e){if(!e.getCacheValue(p)){const t=new a.E;t.setCoords(e.xmin,e.ymin,e.xmax,e.ymax),e.hasM&&t.setInterval(y,0,e.mmin,e.mmax),e.hasZ&&t.setInterval(g,0,e.zmin,e.zmax),e.setCacheValue(p,t)}return e.getCacheValue(p)}function M(e){if(!e.getCacheValue(p)){const t=new o.M,n=new a.P,r=e.points,s=e.hasM,u=e.hasZ,i=u?3:2;for(let e=0,a=r.length;e<a;e++){const a=r[e];n.setXYCoords(a[0],a[1]),u&&n.setZ(a[2]??0),s&&n.setM(a[i]??NaN),t.add(n)}e.setCacheValue(p,t)}return e.getCacheValue(p)}function V(e){if(!e.getCacheValue(p)){const t=new a.P;t.setXYCoords(e.x,e.y),e.hasM&&t.setM(e.m),e.hasZ&&t.setZ(e.z),e.setCacheValue(p,t)}return e.getCacheValue(p)}function v(e){if(!e.getCacheValue(p)){const{curveRings:t,hasM:n,hasZ:r,rings:s}=e,a=(0,h.fromGeometryToGXGeometry)({curveRings:t,hasM:n,hasZ:r,rings:s});e.setCacheValue(p,a)}return e.getCacheValue(p)}function w(e){if(!e.getCacheValue(p)){const{curvePaths:t,hasM:n,hasZ:r,paths:s}=e,a=(0,h.fromGeometryToGXGeometry)({curvePaths:t,hasM:n,hasZ:r,paths:s});e.setCacheValue(p,a)}return e.getCacheValue(p)}function P(e){if(e.wkid)return(0,u.c)(e.wkid);const t=e.wkt2||e.wkt;return t?(0,u.b)(t):null}function R(e,t){if(e)switch(e.getGeometryType()){case s.G.enumPoint:return _(e,t);case s.G.enumEnvelope:return d(e,t);case s.G.enumMultiPoint:return Z(e,t);case s.G.enumPolyline:return k(e,t);case s.G.enumPolygon:return S(e,t)}return null}function d(e,t){if(e.isEmpty())return null;const n=new i.A({xmin:e.getXMin(),ymin:e.getYMin(),xmax:e.getXMax(),ymax:e.getYMax(),spatialReference:t}),r=e.getDescription();if(r.hasM()){const t=e.queryInterval(y,0);n.mmin=t.vmin,n.mmax=t.vmax}if(r.hasZ()){const t=e.queryInterval(g,0);n.zmin=t.vmin,n.zmax=t.vmax}return n.setCacheValue(p,e),n}function Z(e,t){if(e.isEmpty())return null;const n=e.getDescription(),r=n.hasM(),s=n.hasZ(),o=[],u=new a.P;for(let t=0,n=e.getPointCount();t<n;t++){e.getPointByVal(t,u);const n=[u.getX(),u.getY()];s&&n.push(u.getZ()),r&&n.push(u.getM()),o.push(n)}const i=new c.A({hasM:r,hasZ:s,points:o,spatialReference:t});return i.setCacheValue(p,e),i}function _(e,t){if(e instanceof r.P)return new l.A({x:e.x,y:e.y,spatialReference:t});if(e.isEmpty())return null;const n=new l.A({x:e.getX(),y:e.getY(),spatialReference:t}),s=e.getDescription();return s.hasM()&&(n.m=e.getM()),s.hasZ()&&(n.z=e.getZ()),n.setCacheValue(p,e),n}function S(e,t){if(e.isEmpty())return null;const n=m.A.fromJSON({spatialReference:t,...(0,h.toGeometry)(e,null)});return n.setCacheValue(p,e),n}function k(e,t){if(e.isEmpty())return null;const n=f.A.fromJSON({spatialReference:t,...(0,h.toGeometry)(e,null)});return n.setCacheValue(p,e),n}},90836:(e,t,n)=>{n.d(t,{a:()=>u,b:()=>i,e:()=>l,s:()=>c});var r=n(39117),s=n(78125);class a extends r.I{getOperatorType(){return 2}execute(e,t,n,s){return(0,r.J)(e,t,n,3,s)}}const o=new a;function u(e){const t=(0,s.getSpatialReference)(e);return o.accelerateGeometry((0,s.fromGeometry)(e),(0,s.fromSpatialReference)(t),1)}function i(e,t){return o.execute((0,s.fromGeometry)(e),(0,s.fromGeometry)(t),(0,s.fromSpatialReference)(e.spatialReference),null)}const c=o.supportsCurves(),l=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:u,execute:i,supportsCurves:c},Symbol.toStringTag,{value:"Module"}))}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[506,3169,4929,8125],{7817:(e,t,n)=>{n.d(t,{e:()=>a,l:()=>i,s:()=>o});var r=n(86211),s=n(78125);function a(e,t={}){const{unit:n}=t;let a=(0,s.fromGeometry)(e).calculateLength2D();if(a&&n){const t=(0,s.getSpatialReference)(e);a=(0,r.PQ)(a,t,n)}return a}const o=!0,i=Object.freeze(Object.defineProperty({__proto__:null,execute:a,supportsCurves:o},Symbol.toStringTag,{value:"Module"}))},23346:(e,t,n)=>{n.r(t),n.d(t,{execute:()=>r.e,supportsCurves:()=>r.s}),n(86211),n(78125);var r=n(7817)},76061:(e,t,n)=>{n.d(t,{G:()=>r,S:()=>s});class r{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}class s extends r{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}}},78125:(e,t,n)=>{n.r(t),n.d(t,{fromExtent:()=>G,fromGeometry:()=>C,fromMultipoint:()=>M,fromPoint:()=>V,fromPolygon:()=>P,fromPolyline:()=>v,fromSpatialReference:()=>w,getSpatialReference:()=>x,toExtent:()=>R,toGeometry:()=>d,toMultipoint:()=>Z,toPoint:()=>_,toPolygon:()=>k,toPolyline:()=>E});var r=n(83661),s=(n(79187),n(55537)),a=n(95213),o=n(88885),i=n(39117),u=n(5443),c=n(48526),l=n(86738),m=n(39829),h=n(82799),f=(n(90293),n(83299));const p="_gxVersion",g=2,y=1;function x(e){return Array.isArray(e)?e[0].spatialReference:e.spatialReference}function C(e){switch(e.type){case"point":return V(e);case"multipoint":return M(e);case"polyline":return v(e);case"polygon":return P(e);case"extent":return G(e);default:throw new Error(`Unsupported geometry type: ${e.type}`)}}function G(e){if(!e.getCacheValue(p)){const t=new a.E;t.setCoords(e.xmin,e.ymin,e.xmax,e.ymax),e.hasM&&t.setInterval(g,0,e.mmin,e.mmax),e.hasZ&&t.setInterval(y,0,e.zmin,e.zmax),e.setCacheValue(p,t)}return e.getCacheValue(p)}function M(e){if(!e.getCacheValue(p)){const t=new o.M,n=new a.P,r=e.points,s=e.hasM,i=e.hasZ,u=i?3:2;for(let e=0,a=r.length;e<a;e++){const a=r[e];n.setXYCoords(a[0],a[1]),i&&n.setZ(a[2]??0),s&&n.setM(a[u]??NaN),t.add(n)}e.setCacheValue(p,t)}return e.getCacheValue(p)}function V(e){if(!e.getCacheValue(p)){const t=new a.P;t.setXYCoords(e.x,e.y),e.hasM&&t.setM(e.m),e.hasZ&&t.setZ(e.z),e.setCacheValue(p,t)}return e.getCacheValue(p)}function P(e){if(!e.getCacheValue(p)){const{curveRings:t,hasM:n,hasZ:r,rings:s}=e,a=(0,f.fromGeometryToGXGeometry)({curveRings:t,hasM:n,hasZ:r,rings:s});e.setCacheValue(p,a)}return e.getCacheValue(p)}function v(e){if(!e.getCacheValue(p)){const{curvePaths:t,hasM:n,hasZ:r,paths:s}=e,a=(0,f.fromGeometryToGXGeometry)({curvePaths:t,hasM:n,hasZ:r,paths:s});e.setCacheValue(p,a)}return e.getCacheValue(p)}function w(e){if(e.wkid)return(0,i.c)(e.wkid);const t=e.wkt2||e.wkt;return t?(0,i.b)(t):null}function d(e,t){if(e)switch(e.getGeometryType()){case s.G.enumPoint:return _(e,t);case s.G.enumEnvelope:return R(e,t);case s.G.enumMultiPoint:return Z(e,t);case s.G.enumPolyline:return E(e,t);case s.G.enumPolygon:return k(e,t)}return null}function R(e,t){if(e.isEmpty())return null;const n=new u.A({xmin:e.getXMin(),ymin:e.getYMin(),xmax:e.getXMax(),ymax:e.getYMax(),spatialReference:t}),r=e.getDescription();if(r.hasM()){const t=e.queryInterval(g,0);n.mmin=t.vmin,n.mmax=t.vmax}if(r.hasZ()){const t=e.queryInterval(y,0);n.zmin=t.vmin,n.zmax=t.vmax}return n.setCacheValue(p,e),n}function Z(e,t){if(e.isEmpty())return null;const n=e.getDescription(),r=n.hasM(),s=n.hasZ(),o=[],i=new a.P;for(let t=0,n=e.getPointCount();t<n;t++){e.getPointByVal(t,i);const n=[i.getX(),i.getY()];s&&n.push(i.getZ()),r&&n.push(i.getM()),o.push(n)}const u=new c.A({hasM:r,hasZ:s,points:o,spatialReference:t});return u.setCacheValue(p,e),u}function _(e,t){if(e instanceof r.P)return new l.A({x:e.x,y:e.y,spatialReference:t});if(e.isEmpty())return null;const n=new l.A({x:e.getX(),y:e.getY(),spatialReference:t}),s=e.getDescription();return s.hasM()&&(n.m=e.getM()),s.hasZ()&&(n.z=e.getZ()),n.setCacheValue(p,e),n}function k(e,t){if(e.isEmpty())return null;const n=m.A.fromJSON({spatialReference:t,...(0,f.toGeometry)(e,null)});return n.setCacheValue(p,e),n}function E(e,t){if(e.isEmpty())return null;const n=h.A.fromJSON({spatialReference:t,...(0,f.toGeometry)(e,null)});return n.setCacheValue(p,e),n}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8714],{98714:(r,e,t)=>{t.r(e),t.d(e,{default:()=>o});var n,o=(n="undefined"!=typeof document?document.currentScript?.src:void 0,function(r={}){var e,t,o=r,a=new Promise((r,n)=>{e=r,t=n}),i="object"==typeof window,s="undefined"!=typeof WorkerGlobalScope;"object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node&&process.type;var u,l,d=Object.assign({},o),c="./this.program",f="";(i||s)&&(s?f=self.location.href:"undefined"!=typeof document&&document.currentScript&&(f=document.currentScript.src),n&&(f=n),f=f.startsWith("blob:")?"":f.substr(0,f.replace(/[?#].*/,"").lastIndexOf("/")+1),s&&(l=r=>{var e=new XMLHttpRequest;return e.open("GET",r,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),u=async r=>{var e=await fetch(r,{credentials:"same-origin"});if(e.ok)return e.arrayBuffer();throw new Error(e.status+" : "+e.url)});var h=o.print||console.log.bind(console),p=o.printErr||console.error.bind(console);Object.assign(o,d),d=null,o.arguments&&o.arguments,o.thisProgram&&(c=o.thisProgram);var m,v,w,y,g,E,k,b,_,A=o.wasmBinary,F=!1;function P(){var r=m.buffer;o.HEAP8=v=new Int8Array(r),o.HEAP16=y=new Int16Array(r),o.HEAPU8=w=new Uint8Array(r),o.HEAPU16=g=new Uint16Array(r),o.HEAP32=E=new Int32Array(r),o.HEAPU32=k=new Uint32Array(r),o.HEAPF32=b=new Float32Array(r),o.HEAPF64=_=new Float64Array(r)}var D=[],S=[],T=[];function C(r){D.unshift(r)}function M(r){T.unshift(r)}var j=0,R=null;function x(r){j++,o.monitorRunDependencies?.(j)}function $(r){if(j--,o.monitorRunDependencies?.(j),0==j&&R){var e=R;R=null,e()}}function N(r){o.onAbort?.(r),p(r="Aborted("+r+")"),F=!0,r+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(r);throw t(e),e}var z,O,W,B=r=>r.startsWith("data:application/octet-stream;base64,");async function U(r,e,t){if(!r&&"function"==typeof WebAssembly.instantiateStreaming&&!B(e)&&"function"==typeof fetch)try{var n=fetch(e,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(n,t)}catch(r){p(`wasm streaming compile failed: ${r}`),p("falling back to ArrayBuffer instantiation")}return async function(r,e){try{var t=await async function(r){if(!A)try{var e=await u(r);return new Uint8Array(e)}catch{}return function(r){if(r==z&&A)return new Uint8Array(A);if(l)return l(r);throw"both async and sync fetching of the wasm failed"}(r)}(r);return await WebAssembly.instantiate(t,e)}catch(r){p(`failed to asynchronously prepare wasm: ${r}`),N(r)}}(e,t)}var L=r=>{for(;r.length>0;)r.shift()(o)};o.noExitRuntime;class I{constructor(r){this.excPtr=r,this.ptr=r-24}set_type(r){k[this.ptr+4>>2]=r}get_type(){return k[this.ptr+4>>2]}set_destructor(r){k[this.ptr+8>>2]=r}get_destructor(){return k[this.ptr+8>>2]}set_caught(r){r=r?1:0,v[this.ptr+12]=r}get_caught(){return 0!=v[this.ptr+12]}set_rethrown(r){r=r?1:0,v[this.ptr+13]=r}get_rethrown(){return 0!=v[this.ptr+13]}init(r,e){this.set_adjusted_ptr(0),this.set_type(r),this.set_destructor(e)}set_adjusted_ptr(r){k[this.ptr+16>>2]=r}get_adjusted_ptr(){return k[this.ptr+16>>2]}}var H,V,q,X=r=>{for(var e="",t=r;w[t];)e+=H[w[t++]];return e},G={},K={},J={},Q=r=>{throw new V(r)},Y=r=>{throw new q(r)};function Z(r,e,t={}){return function(r,e,t={}){var n=e.name;if(r||Q(`type "${n}" must have a positive integer typeid pointer`),K.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;Q(`Cannot register type '${n}' twice`)}if(K[r]=e,delete J[r],G.hasOwnProperty(r)){var o=G[r];delete G[r],o.forEach(r=>r())}}(r,e,t)}var rr=[],er=[],tr=r=>{r>9&&0===--er[r+1]&&(er[r]=void 0,rr.push(r))},nr=r=>(r||Q("Cannot use deleted val. handle = "+r),er[r]),or=r=>{switch(r){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const e=rr.pop()||er.length;return er[e]=r,er[e+1]=1,e}}};function ar(r){return this.fromWireType(k[r>>2])}var ir={name:"emscripten::val",fromWireType:r=>{var e=nr(r);return tr(r),e},toWireType:(r,e)=>or(e),argPackAdvance:8,readValueFromPointer:ar,destructorFunction:null},sr=(r,e)=>{switch(e){case 4:return function(r){return this.fromWireType(b[r>>2])};case 8:return function(r){return this.fromWireType(_[r>>3])};default:throw new TypeError(`invalid float width (${e}): ${r}`)}},ur=(r,e)=>Object.defineProperty(e,"name",{value:r}),lr=r=>{for(;r.length;){var e=r.pop();r.pop()(e)}};function dr(r){for(var e=1;e<r.length;++e)if(null!==r[e]&&void 0===r[e].destructorFunction)return!0;return!1}function cr(r,e){if(!(r instanceof Function))throw new TypeError(`new_ called with constructor type ${typeof r} which is not a function`);var t=ur(r.name||"unknownFunctionName",function(){});t.prototype=r.prototype;var n=new t,o=r.apply(n,e);return o instanceof Object?o:n}var fr,hr,pr=(r,e,t)=>{if(void 0===r[e].overloadTable){var n=r[e];r[e]=function(...n){return r[e].overloadTable.hasOwnProperty(n.length)||Q(`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}},mr=(r,e,t)=>{o.hasOwnProperty(r)?((void 0===t||void 0!==o[r].overloadTable&&void 0!==o[r].overloadTable[t])&&Q(`Cannot register public name '${r}' twice`),pr(o,r,r),o[r].overloadTable.hasOwnProperty(t)&&Q(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),o[r].overloadTable[t]=e):(o[r]=e,o[r].argCount=t)},vr=(r,e,t)=>{o.hasOwnProperty(r)||Y("Replacing nonexistent public symbol"),void 0!==o[r].overloadTable&&void 0!==t?o[r].overloadTable[t]=e:(o[r]=e,o[r].argCount=t)},wr=[],yr=r=>{var e=wr[r];return e||(r>=wr.length&&(wr.length=r+1),wr[r]=e=fr.get(r)),e},gr=(r,e)=>{var t=(r=X(r)).includes("j")?((r,e)=>(...t)=>((r,e,t=[])=>r.includes("j")?((r,e,t)=>(r=r.replace(/p/g,"i"),(0,o["dynCall_"+r])(e,...t)))(r,e,t):yr(e)(...t))(r,e,t))(r,e):yr(e);return"function"!=typeof t&&Q(`unknown function pointer with signature ${r}: ${e}`),t},Er=r=>{var e=se(r),t=X(e);return le(e),t},kr=(r,e,t)=>{switch(e){case 1:return t?r=>v[r]:r=>w[r];case 2:return t?r=>y[r>>1]:r=>g[r>>1];case 4:return t?r=>E[r>>2]:r=>k[r>>2];default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},br=(r,e,t,n)=>{if(!(n>0))return 0;for(var o=t,a=t+n-1,i=0;i<r.length;++i){var s=r.charCodeAt(i);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&r.charCodeAt(++i)),s<=127){if(t>=a)break;e[t++]=s}else if(s<=2047){if(t+1>=a)break;e[t++]=192|s>>6,e[t++]=128|63&s}else if(s<=65535){if(t+2>=a)break;e[t++]=224|s>>12,e[t++]=128|s>>6&63,e[t++]=128|63&s}else{if(t+3>=a)break;e[t++]=240|s>>18,e[t++]=128|s>>12&63,e[t++]=128|s>>6&63,e[t++]=128|63&s}}return e[t]=0,t-o},_r=(r,e,t)=>br(r,w,e,t),Ar=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},Fr="undefined"!=typeof TextDecoder?new TextDecoder:void 0,Pr=(r,e=0,t=NaN)=>{for(var n=e+t,o=e;r[o]&&!(o>=n);)++o;if(o-e>16&&r.buffer&&Fr)return Fr.decode(r.subarray(e,o));for(var a="";e<o;){var i=r[e++];if(128&i){var s=63&r[e++];if(192!=(224&i)){var u=63&r[e++];if((i=224==(240&i)?(15&i)<<12|s<<6|u:(7&i)<<18|s<<12|u<<6|63&r[e++])<65536)a+=String.fromCharCode(i);else{var l=i-65536;a+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else a+=String.fromCharCode((31&i)<<6|s)}else a+=String.fromCharCode(i)}return a},Dr=(r,e)=>r?Pr(w,r,e):"",Sr="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,Tr=(r,e)=>{for(var t=r,n=t>>1,o=n+e/2;!(n>=o)&&g[n];)++n;if((t=n<<1)-r>32&&Sr)return Sr.decode(w.subarray(r,t));for(var a="",i=0;!(i>=e/2);++i){var s=y[r+2*i>>1];if(0==s)break;a+=String.fromCharCode(s)}return a},Cr=(r,e,t)=>{if(t??=2147483647,t<2)return 0;for(var n=e,o=(t-=2)<2*r.length?t/2:r.length,a=0;a<o;++a){var i=r.charCodeAt(a);y[e>>1]=i,e+=2}return y[e>>1]=0,e-n},Mr=r=>2*r.length,jr=(r,e)=>{for(var t=0,n="";!(t>=e/4);){var o=E[r+4*t>>2];if(0==o)break;if(++t,o>=65536){var a=o-65536;n+=String.fromCharCode(55296|a>>10,56320|1023&a)}else n+=String.fromCharCode(o)}return n},Rr=(r,e,t)=>{if(t??=2147483647,t<4)return 0;for(var n=e,o=n+t-4,a=0;a<r.length;++a){var i=r.charCodeAt(a);if(i>=55296&&i<=57343&&(i=65536+((1023&i)<<10)|1023&r.charCodeAt(++a)),E[e>>2]=i,(e+=4)+4>o)break}return E[e>>2]=0,e-n},xr=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},$r=(r,e)=>{var t=K[r];return void 0===t&&Q(`${e} has unknown type ${Er(r)}`),t},Nr=(r,e,t)=>{var n=[],o=r.toWireType(n,t);return n.length&&(k[e>>2]=or(n)),o},zr=[],Or={},Wr=r=>{var e=Or[r];return void 0===e?X(r):e},Br=()=>"object"==typeof globalThis?globalThis:Function("return this")(),Ur=(r,e)=>Math.ceil(r/e)*e,Lr=r=>{var e=(r-m.buffer.byteLength+65535)/65536|0;try{return m.grow(e),P(),1}catch(r){}},Ir={},Hr=()=>{if(!Hr.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",_:c||"./this.program"};for(var e in Ir)void 0===Ir[e]?delete r[e]:r[e]=Ir[e];var t=[];for(var e in r)t.push(`${e}=${r[e]}`);Hr.strings=t}return Hr.strings},Vr={isAbs:r=>"/"===r.charAt(0),splitPath:r=>/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(r).slice(1),normalizeArray:(r,e)=>{for(var t=0,n=r.length-1;n>=0;n--){var o=r[n];"."===o?r.splice(n,1):".."===o?(r.splice(n,1),t++):t&&(r.splice(n,1),t--)}if(e)for(;t;t--)r.unshift("..");return r},normalize:r=>{var e=Vr.isAbs(r),t="/"===r.substr(-1);return(r=Vr.normalizeArray(r.split("/").filter(r=>!!r),!e).join("/"))||e||(r="."),r&&t&&(r+="/"),(e?"/":"")+r},dirname:r=>{var e=Vr.splitPath(r),t=e[0],n=e[1];return t||n?(n&&(n=n.substr(0,n.length-1)),t+n):"."},basename:r=>{if("/"===r)return"/";var e=(r=(r=Vr.normalize(r)).replace(/\/$/,"")).lastIndexOf("/");return-1===e?r:r.substr(e+1)},join:(...r)=>Vr.normalize(r.join("/")),join2:(r,e)=>Vr.normalize(r+"/"+e)},qr=r=>(qr=(()=>{if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return r=>crypto.getRandomValues(r);N("initRandomDevice")})())(r),Xr={resolve:(...r)=>{for(var e="",t=!1,n=r.length-1;n>=-1&&!t;n--){var o=n>=0?r[n]:te.cwd();if("string"!=typeof o)throw new TypeError("Arguments to path.resolve must be strings");if(!o)return"";e=o+"/"+e,t=Vr.isAbs(o)}return(t?"/":"")+(e=Vr.normalizeArray(e.split("/").filter(r=>!!r),!t).join("/"))||"."},relative:(r,e)=>{function t(r){for(var e=0;e<r.length&&""===r[e];e++);for(var t=r.length-1;t>=0&&""===r[t];t--);return e>t?[]:r.slice(e,t-e+1)}r=Xr.resolve(r).substr(1),e=Xr.resolve(e).substr(1);for(var n=t(r.split("/")),o=t(e.split("/")),a=Math.min(n.length,o.length),i=a,s=0;s<a;s++)if(n[s]!==o[s]){i=s;break}var u=[];for(s=i;s<n.length;s++)u.push("..");return(u=u.concat(o.slice(i))).join("/")}},Gr=[];function Kr(r,e,t){var n=Ar(r)+1,o=new Array(n),a=br(r,o,0,o.length);return o.length=a,o}var Jr={ttys:[],init(){},shutdown(){},register(r,e){Jr.ttys[r]={input:[],output:[],ops:e},te.registerDevice(r,Jr.stream_ops)},stream_ops:{open(r){var e=Jr.ttys[r.node.rdev];if(!e)throw new te.ErrnoError(43);r.tty=e,r.seekable=!1},close(r){r.tty.ops.fsync(r.tty)},fsync(r){r.tty.ops.fsync(r.tty)},read(r,e,t,n,o){if(!r.tty||!r.tty.ops.get_char)throw new te.ErrnoError(60);for(var a=0,i=0;i<n;i++){var s;try{s=r.tty.ops.get_char(r.tty)}catch(r){throw new te.ErrnoError(29)}if(void 0===s&&0===a)throw new te.ErrnoError(6);if(null==s)break;a++,e[t+i]=s}return a&&(r.node.atime=Date.now()),a},write(r,e,t,n,o){if(!r.tty||!r.tty.ops.put_char)throw new te.ErrnoError(60);try{for(var a=0;a<n;a++)r.tty.ops.put_char(r.tty,e[t+a])}catch(r){throw new te.ErrnoError(29)}return n&&(r.node.mtime=r.node.ctime=Date.now()),a}},default_tty_ops:{get_char:r=>(()=>{if(!Gr.length){var r=null;if("undefined"!=typeof window&&"function"==typeof window.prompt&&null!==(r=window.prompt("Input: "))&&(r+="\n"),!r)return null;Gr=Kr(r)}return Gr.shift()})(),put_char(r,e){null===e||10===e?(h(Pr(r.output)),r.output=[]):0!=e&&r.output.push(e)},fsync(r){r.output&&r.output.length>0&&(h(Pr(r.output)),r.output=[])},ioctl_tcgets:r=>({c_iflag:25856,c_oflag:5,c_cflag:191,c_lflag:35387,c_cc:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}),ioctl_tcsets:(r,e,t)=>0,ioctl_tiocgwinsz:r=>[24,80]},default_tty1_ops:{put_char(r,e){null===e||10===e?(p(Pr(r.output)),r.output=[]):0!=e&&r.output.push(e)},fsync(r){r.output&&r.output.length>0&&(p(Pr(r.output)),r.output=[])}}},Qr=r=>{N()},Yr={ops_table:null,mount:r=>Yr.createNode(null,"/",16895,0),createNode(r,e,t,n){if(te.isBlkdev(t)||te.isFIFO(t))throw new te.ErrnoError(63);Yr.ops_table||={dir:{node:{getattr:Yr.node_ops.getattr,setattr:Yr.node_ops.setattr,lookup:Yr.node_ops.lookup,mknod:Yr.node_ops.mknod,rename:Yr.node_ops.rename,unlink:Yr.node_ops.unlink,rmdir:Yr.node_ops.rmdir,readdir:Yr.node_ops.readdir,symlink:Yr.node_ops.symlink},stream:{llseek:Yr.stream_ops.llseek}},file:{node:{getattr:Yr.node_ops.getattr,setattr:Yr.node_ops.setattr},stream:{llseek:Yr.stream_ops.llseek,read:Yr.stream_ops.read,write:Yr.stream_ops.write,allocate:Yr.stream_ops.allocate,mmap:Yr.stream_ops.mmap,msync:Yr.stream_ops.msync}},link:{node:{getattr:Yr.node_ops.getattr,setattr:Yr.node_ops.setattr,readlink:Yr.node_ops.readlink},stream:{}},chrdev:{node:{getattr:Yr.node_ops.getattr,setattr:Yr.node_ops.setattr},stream:te.chrdev_stream_ops}};var o=te.createNode(r,e,t,n);return te.isDir(o.mode)?(o.node_ops=Yr.ops_table.dir.node,o.stream_ops=Yr.ops_table.dir.stream,o.contents={}):te.isFile(o.mode)?(o.node_ops=Yr.ops_table.file.node,o.stream_ops=Yr.ops_table.file.stream,o.usedBytes=0,o.contents=null):te.isLink(o.mode)?(o.node_ops=Yr.ops_table.link.node,o.stream_ops=Yr.ops_table.link.stream):te.isChrdev(o.mode)&&(o.node_ops=Yr.ops_table.chrdev.node,o.stream_ops=Yr.ops_table.chrdev.stream),o.atime=o.mtime=o.ctime=Date.now(),r&&(r.contents[e]=o,r.atime=r.mtime=r.ctime=o.atime),o},getFileDataAsTypedArray:r=>r.contents?r.contents.subarray?r.contents.subarray(0,r.usedBytes):new Uint8Array(r.contents):new Uint8Array(0),expandFileStorage(r,e){var t=r.contents?r.contents.length:0;if(!(t>=e)){e=Math.max(e,t*(t<1048576?2:1.125)>>>0),0!=t&&(e=Math.max(e,256));var n=r.contents;r.contents=new Uint8Array(e),r.usedBytes>0&&r.contents.set(n.subarray(0,r.usedBytes),0)}},resizeFileStorage(r,e){if(r.usedBytes!=e)if(0==e)r.contents=null,r.usedBytes=0;else{var t=r.contents;r.contents=new Uint8Array(e),t&&r.contents.set(t.subarray(0,Math.min(e,r.usedBytes))),r.usedBytes=e}},node_ops:{getattr(r){var e={};return e.dev=te.isChrdev(r.mode)?r.id:1,e.ino=r.id,e.mode=r.mode,e.nlink=1,e.uid=0,e.gid=0,e.rdev=r.rdev,te.isDir(r.mode)?e.size=4096:te.isFile(r.mode)?e.size=r.usedBytes:te.isLink(r.mode)?e.size=r.link.length:e.size=0,e.atime=new Date(r.atime),e.mtime=new Date(r.mtime),e.ctime=new Date(r.ctime),e.blksize=4096,e.blocks=Math.ceil(e.size/e.blksize),e},setattr(r,e){for(const t of["mode","atime","mtime","ctime"])e[t]&&(r[t]=e[t]);void 0!==e.size&&Yr.resizeFileStorage(r,e.size)},lookup(r,e){throw Yr.doesNotExistError},mknod:(r,e,t,n)=>Yr.createNode(r,e,t,n),rename(r,e,t){var n;try{n=te.lookupNode(e,t)}catch(r){}if(n){if(te.isDir(r.mode))for(var o in n.contents)throw new te.ErrnoError(55);te.hashRemoveNode(n)}delete r.parent.contents[r.name],e.contents[t]=r,r.name=t,e.ctime=e.mtime=r.parent.ctime=r.parent.mtime=Date.now()},unlink(r,e){delete r.contents[e],r.ctime=r.mtime=Date.now()},rmdir(r,e){var t=te.lookupNode(r,e);for(var n in t.contents)throw new te.ErrnoError(55);delete r.contents[e],r.ctime=r.mtime=Date.now()},readdir:r=>[".","..",...Object.keys(r.contents)],symlink(r,e,t){var n=Yr.createNode(r,e,41471,0);return n.link=t,n},readlink(r){if(!te.isLink(r.mode))throw new te.ErrnoError(28);return r.link}},stream_ops:{read(r,e,t,n,o){var a=r.node.contents;if(o>=r.node.usedBytes)return 0;var i=Math.min(r.node.usedBytes-o,n);if(i>8&&a.subarray)e.set(a.subarray(o,o+i),t);else for(var s=0;s<i;s++)e[t+s]=a[o+s];return i},write(r,e,t,n,o,a){if(e.buffer===v.buffer&&(a=!1),!n)return 0;var i=r.node;if(i.mtime=i.ctime=Date.now(),e.subarray&&(!i.contents||i.contents.subarray)){if(a)return i.contents=e.subarray(t,t+n),i.usedBytes=n,n;if(0===i.usedBytes&&0===o)return i.contents=e.slice(t,t+n),i.usedBytes=n,n;if(o+n<=i.usedBytes)return i.contents.set(e.subarray(t,t+n),o),n}if(Yr.expandFileStorage(i,o+n),i.contents.subarray&&e.subarray)i.contents.set(e.subarray(t,t+n),o);else for(var s=0;s<n;s++)i.contents[o+s]=e[t+s];return i.usedBytes=Math.max(i.usedBytes,o+n),n},llseek(r,e,t){var n=e;if(1===t?n+=r.position:2===t&&te.isFile(r.node.mode)&&(n+=r.node.usedBytes),n<0)throw new te.ErrnoError(28);return n},allocate(r,e,t){Yr.expandFileStorage(r.node,e+t),r.node.usedBytes=Math.max(r.node.usedBytes,e+t)},mmap(r,e,t,n,o){if(!te.isFile(r.node.mode))throw new te.ErrnoError(43);var a,i,s=r.node.contents;if(2&o||!s||s.buffer!==v.buffer){if(i=!0,!(a=Qr()))throw new te.ErrnoError(48);s&&((t>0||t+e<s.length)&&(s=s.subarray?s.subarray(t,t+e):Array.prototype.slice.call(s,t,t+e)),v.set(s,a))}else i=!1,a=s.byteOffset;return{ptr:a,allocated:i}},msync:(r,e,t,n,o)=>(Yr.stream_ops.write(r,e,0,n,t,!1),0)}},Zr=async r=>{var e=await u(r);return new Uint8Array(e)},re=o.preloadPlugins||[],ee=(r,e)=>{var t=0;return r&&(t|=365),e&&(t|=146),t},te={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,ErrnoError:class{name="ErrnoError";constructor(r){this.errno=r}},filesystems:null,syncFSRequests:0,readFiles:{},FSStream:class{shared={};get object(){return this.node}set object(r){this.node=r}get isRead(){return 1!=(2097155&this.flags)}get isWrite(){return!!(2097155&this.flags)}get isAppend(){return 1024&this.flags}get flags(){return this.shared.flags}set flags(r){this.shared.flags=r}get position(){return this.shared.position}set position(r){this.shared.position=r}},FSNode:class{node_ops={};stream_ops={};readMode=365;writeMode=146;mounted=null;constructor(r,e,t,n){r||(r=this),this.parent=r,this.mount=r.mount,this.id=te.nextInode++,this.name=e,this.mode=t,this.rdev=n,this.atime=this.mtime=this.ctime=Date.now()}get read(){return(this.mode&this.readMode)===this.readMode}set read(r){r?this.mode|=this.readMode:this.mode&=~this.readMode}get write(){return(this.mode&this.writeMode)===this.writeMode}set write(r){r?this.mode|=this.writeMode:this.mode&=~this.writeMode}get isFolder(){return te.isDir(this.mode)}get isDevice(){return te.isChrdev(this.mode)}},lookupPath(r,e={}){if(!r)return{path:"",node:null};e.follow_mount??=!0,Vr.isAbs(r)||(r=te.cwd()+"/"+r);r:for(var t=0;t<40;t++){for(var n=r.split("/").filter(r=>!!r&&"."!==r),o=te.root,a="/",i=0;i<n.length;i++){var s=i===n.length-1;if(s&&e.parent)break;if(".."!==n[i]){a=Vr.join2(a,n[i]);try{o=te.lookupNode(o,n[i])}catch(r){if(44===r?.errno&&s&&e.noent_okay)return{path:a};throw r}if(!te.isMountpoint(o)||s&&!e.follow_mount||(o=o.mounted.root),te.isLink(o.mode)&&(!s||e.follow)){if(!o.node_ops.readlink)throw new te.ErrnoError(52);var u=o.node_ops.readlink(o);Vr.isAbs(u)||(u=Vr.dirname(a)+"/"+u),r=u+"/"+n.slice(i+1).join("/");continue r}}else a=Vr.dirname(a),o=o.parent}return{path:a,node:o}}throw new te.ErrnoError(32)},getPath(r){for(var e;;){if(te.isRoot(r)){var t=r.mount.mountpoint;return e?"/"!==t[t.length-1]?`${t}/${e}`:t+e:t}e=e?`${r.name}/${e}`:r.name,r=r.parent}},hashName(r,e){for(var t=0,n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n)|0;return(r+t>>>0)%te.nameTable.length},hashAddNode(r){var e=te.hashName(r.parent.id,r.name);r.name_next=te.nameTable[e],te.nameTable[e]=r},hashRemoveNode(r){var e=te.hashName(r.parent.id,r.name);if(te.nameTable[e]===r)te.nameTable[e]=r.name_next;else for(var t=te.nameTable[e];t;){if(t.name_next===r){t.name_next=r.name_next;break}t=t.name_next}},lookupNode(r,e){var t=te.mayLookup(r);if(t)throw new te.ErrnoError(t);for(var n=te.hashName(r.id,e),o=te.nameTable[n];o;o=o.name_next){var a=o.name;if(o.parent.id===r.id&&a===e)return o}return te.lookup(r,e)},createNode(r,e,t,n){var o=new te.FSNode(r,e,t,n);return te.hashAddNode(o),o},destroyNode(r){te.hashRemoveNode(r)},isRoot:r=>r===r.parent,isMountpoint:r=>!!r.mounted,isFile:r=>32768==(61440&r),isDir:r=>16384==(61440&r),isLink:r=>40960==(61440&r),isChrdev:r=>8192==(61440&r),isBlkdev:r=>24576==(61440&r),isFIFO:r=>4096==(61440&r),isSocket:r=>!(49152&~r),flagsToPermissionString(r){var e=["r","w","rw"][3&r];return 512&r&&(e+="w"),e},nodePermissions:(r,e)=>te.ignorePermissions||(!e.includes("r")||292&r.mode)&&(!e.includes("w")||146&r.mode)&&(!e.includes("x")||73&r.mode)?0:2,mayLookup:r=>te.isDir(r.mode)?te.nodePermissions(r,"x")||(r.node_ops.lookup?0:2):54,mayCreate(r,e){if(!te.isDir(r.mode))return 54;try{return te.lookupNode(r,e),20}catch(r){}return te.nodePermissions(r,"wx")},mayDelete(r,e,t){var n;try{n=te.lookupNode(r,e)}catch(r){return r.errno}var o=te.nodePermissions(r,"wx");if(o)return o;if(t){if(!te.isDir(n.mode))return 54;if(te.isRoot(n)||te.getPath(n)===te.cwd())return 10}else if(te.isDir(n.mode))return 31;return 0},mayOpen:(r,e)=>r?te.isLink(r.mode)?32:te.isDir(r.mode)&&("r"!==te.flagsToPermissionString(e)||512&e)?31:te.nodePermissions(r,te.flagsToPermissionString(e)):44,MAX_OPEN_FDS:4096,nextfd(){for(var r=0;r<=te.MAX_OPEN_FDS;r++)if(!te.streams[r])return r;throw new te.ErrnoError(33)},getStreamChecked(r){var e=te.getStream(r);if(!e)throw new te.ErrnoError(8);return e},getStream:r=>te.streams[r],createStream:(r,e=-1)=>(r=Object.assign(new te.FSStream,r),-1==e&&(e=te.nextfd()),r.fd=e,te.streams[e]=r,r),closeStream(r){te.streams[r]=null},dupStream(r,e=-1){var t=te.createStream(r,e);return t.stream_ops?.dup?.(t),t},chrdev_stream_ops:{open(r){var e=te.getDevice(r.node.rdev);r.stream_ops=e.stream_ops,r.stream_ops.open?.(r)},llseek(){throw new te.ErrnoError(70)}},major:r=>r>>8,minor:r=>255&r,makedev:(r,e)=>r<<8|e,registerDevice(r,e){te.devices[r]={stream_ops:e}},getDevice:r=>te.devices[r],getMounts(r){for(var e=[],t=[r];t.length;){var n=t.pop();e.push(n),t.push(...n.mounts)}return e},syncfs(r,e){"function"==typeof r&&(e=r,r=!1),te.syncFSRequests++,te.syncFSRequests>1&&p(`warning: ${te.syncFSRequests} FS.syncfs operations in flight at once, probably just doing extra work`);var t=te.getMounts(te.root.mount),n=0;function o(r){return te.syncFSRequests--,e(r)}function a(r){if(r)return a.errored?void 0:(a.errored=!0,o(r));++n>=t.length&&o(null)}t.forEach(e=>{if(!e.type.syncfs)return a(null);e.type.syncfs(e,r,a)})},mount(r,e,t){var n,o="/"===t,a=!t;if(o&&te.root)throw new te.ErrnoError(10);if(!o&&!a){var i=te.lookupPath(t,{follow_mount:!1});if(t=i.path,n=i.node,te.isMountpoint(n))throw new te.ErrnoError(10);if(!te.isDir(n.mode))throw new te.ErrnoError(54)}var s={type:r,opts:e,mountpoint:t,mounts:[]},u=r.mount(s);return u.mount=s,s.root=u,o?te.root=u:n&&(n.mounted=s,n.mount&&n.mount.mounts.push(s)),u},unmount(r){var e=te.lookupPath(r,{follow_mount:!1});if(!te.isMountpoint(e.node))throw new te.ErrnoError(28);var t=e.node,n=t.mounted,o=te.getMounts(n);Object.keys(te.nameTable).forEach(r=>{for(var e=te.nameTable[r];e;){var t=e.name_next;o.includes(e.mount)&&te.destroyNode(e),e=t}}),t.mounted=null;var a=t.mount.mounts.indexOf(n);t.mount.mounts.splice(a,1)},lookup:(r,e)=>r.node_ops.lookup(r,e),mknod(r,e,t){var n=te.lookupPath(r,{parent:!0}).node,o=Vr.basename(r);if(!o||"."===o||".."===o)throw new te.ErrnoError(28);var a=te.mayCreate(n,o);if(a)throw new te.ErrnoError(a);if(!n.node_ops.mknod)throw new te.ErrnoError(63);return n.node_ops.mknod(n,o,e,t)},statfs(r){var e={bsize:4096,frsize:4096,blocks:1e6,bfree:5e5,bavail:5e5,files:te.nextInode,ffree:te.nextInode-1,fsid:42,flags:2,namelen:255},t=te.lookupPath(r,{follow:!0}).node;return t?.node_ops.statfs&&Object.assign(e,t.node_ops.statfs(t.mount.opts.root)),e},create:(r,e=438)=>(e&=4095,e|=32768,te.mknod(r,e,0)),mkdir:(r,e=511)=>(e&=1023,e|=16384,te.mknod(r,e,0)),mkdirTree(r,e){for(var t=r.split("/"),n="",o=0;o<t.length;++o)if(t[o]){n+="/"+t[o];try{te.mkdir(n,e)}catch(r){if(20!=r.errno)throw r}}},mkdev:(r,e,t)=>(void 0===t&&(t=e,e=438),e|=8192,te.mknod(r,e,t)),symlink(r,e){if(!Xr.resolve(r))throw new te.ErrnoError(44);var t=te.lookupPath(e,{parent:!0}).node;if(!t)throw new te.ErrnoError(44);var n=Vr.basename(e),o=te.mayCreate(t,n);if(o)throw new te.ErrnoError(o);if(!t.node_ops.symlink)throw new te.ErrnoError(63);return t.node_ops.symlink(t,n,r)},rename(r,e){var t,n,o=Vr.dirname(r),a=Vr.dirname(e),i=Vr.basename(r),s=Vr.basename(e);if(t=te.lookupPath(r,{parent:!0}).node,n=te.lookupPath(e,{parent:!0}).node,!t||!n)throw new te.ErrnoError(44);if(t.mount!==n.mount)throw new te.ErrnoError(75);var u,l=te.lookupNode(t,i),d=Xr.relative(r,a);if("."!==d.charAt(0))throw new te.ErrnoError(28);if("."!==(d=Xr.relative(e,o)).charAt(0))throw new te.ErrnoError(55);try{u=te.lookupNode(n,s)}catch(r){}if(l!==u){var c=te.isDir(l.mode),f=te.mayDelete(t,i,c);if(f)throw new te.ErrnoError(f);if(f=u?te.mayDelete(n,s,c):te.mayCreate(n,s))throw new te.ErrnoError(f);if(!t.node_ops.rename)throw new te.ErrnoError(63);if(te.isMountpoint(l)||u&&te.isMountpoint(u))throw new te.ErrnoError(10);if(n!==t&&(f=te.nodePermissions(t,"w")))throw new te.ErrnoError(f);te.hashRemoveNode(l);try{t.node_ops.rename(l,n,s),l.parent=n}catch(r){throw r}finally{te.hashAddNode(l)}}},rmdir(r){var e=te.lookupPath(r,{parent:!0}).node,t=Vr.basename(r),n=te.lookupNode(e,t),o=te.mayDelete(e,t,!0);if(o)throw new te.ErrnoError(o);if(!e.node_ops.rmdir)throw new te.ErrnoError(63);if(te.isMountpoint(n))throw new te.ErrnoError(10);e.node_ops.rmdir(e,t),te.destroyNode(n)},readdir(r){var e=te.lookupPath(r,{follow:!0}).node;if(!e.node_ops.readdir)throw new te.ErrnoError(54);return e.node_ops.readdir(e)},unlink(r){var e=te.lookupPath(r,{parent:!0}).node;if(!e)throw new te.ErrnoError(44);var t=Vr.basename(r),n=te.lookupNode(e,t),o=te.mayDelete(e,t,!1);if(o)throw new te.ErrnoError(o);if(!e.node_ops.unlink)throw new te.ErrnoError(63);if(te.isMountpoint(n))throw new te.ErrnoError(10);e.node_ops.unlink(e,t),te.destroyNode(n)},readlink(r){var e=te.lookupPath(r).node;if(!e)throw new te.ErrnoError(44);if(!e.node_ops.readlink)throw new te.ErrnoError(28);return e.node_ops.readlink(e)},stat(r,e){var t=te.lookupPath(r,{follow:!e}).node;if(!t)throw new te.ErrnoError(44);if(!t.node_ops.getattr)throw new te.ErrnoError(63);return t.node_ops.getattr(t)},lstat:r=>te.stat(r,!0),chmod(r,e,t){var n;if(!(n="string"==typeof r?te.lookupPath(r,{follow:!t}).node:r).node_ops.setattr)throw new te.ErrnoError(63);n.node_ops.setattr(n,{mode:4095&e|-4096&n.mode,ctime:Date.now()})},lchmod(r,e){te.chmod(r,e,!0)},fchmod(r,e){var t=te.getStreamChecked(r);te.chmod(t.node,e)},chown(r,e,t,n){var o;if(!(o="string"==typeof r?te.lookupPath(r,{follow:!n}).node:r).node_ops.setattr)throw new te.ErrnoError(63);o.node_ops.setattr(o,{timestamp:Date.now()})},lchown(r,e,t){te.chown(r,e,t,!0)},fchown(r,e,t){var n=te.getStreamChecked(r);te.chown(n.node,e,t)},truncate(r,e){if(e<0)throw new te.ErrnoError(28);var t;if(!(t="string"==typeof r?te.lookupPath(r,{follow:!0}).node:r).node_ops.setattr)throw new te.ErrnoError(63);if(te.isDir(t.mode))throw new te.ErrnoError(31);if(!te.isFile(t.mode))throw new te.ErrnoError(28);var n=te.nodePermissions(t,"w");if(n)throw new te.ErrnoError(n);t.node_ops.setattr(t,{size:e,timestamp:Date.now()})},ftruncate(r,e){var t=te.getStreamChecked(r);if(!(2097155&t.flags))throw new te.ErrnoError(28);te.truncate(t.node,e)},utime(r,e,t){var n=te.lookupPath(r,{follow:!0}).node;n.node_ops.setattr(n,{atime:e,mtime:t})},open(r,e,t=438){if(""===r)throw new te.ErrnoError(44);var n;if(t=64&(e="string"==typeof e?(r=>{var e={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[r];if(void 0===e)throw new Error(`Unknown file open mode: ${r}`);return e})(e):e)?4095&t|32768:0,"object"==typeof r)n=r;else{var a=te.lookupPath(r,{follow:!(131072&e),noent_okay:!0});n=a.node,r=a.path}var i=!1;if(64&e)if(n){if(128&e)throw new te.ErrnoError(20)}else n=te.mknod(r,t,0),i=!0;if(!n)throw new te.ErrnoError(44);if(te.isChrdev(n.mode)&&(e&=-513),65536&e&&!te.isDir(n.mode))throw new te.ErrnoError(54);if(!i){var s=te.mayOpen(n,e);if(s)throw new te.ErrnoError(s)}512&e&&!i&&te.truncate(n,0),e&=-131713;var u=te.createStream({node:n,path:te.getPath(n),flags:e,seekable:!0,position:0,stream_ops:n.stream_ops,ungotten:[],error:!1});return u.stream_ops.open&&u.stream_ops.open(u),!o.logReadFiles||1&e||r in te.readFiles||(te.readFiles[r]=1),u},close(r){if(te.isClosed(r))throw new te.ErrnoError(8);r.getdents&&(r.getdents=null);try{r.stream_ops.close&&r.stream_ops.close(r)}catch(r){throw r}finally{te.closeStream(r.fd)}r.fd=null},isClosed:r=>null===r.fd,llseek(r,e,t){if(te.isClosed(r))throw new te.ErrnoError(8);if(!r.seekable||!r.stream_ops.llseek)throw new te.ErrnoError(70);if(0!=t&&1!=t&&2!=t)throw new te.ErrnoError(28);return r.position=r.stream_ops.llseek(r,e,t),r.ungotten=[],r.position},read(r,e,t,n,o){if(n<0||o<0)throw new te.ErrnoError(28);if(te.isClosed(r))throw new te.ErrnoError(8);if(1==(2097155&r.flags))throw new te.ErrnoError(8);if(te.isDir(r.node.mode))throw new te.ErrnoError(31);if(!r.stream_ops.read)throw new te.ErrnoError(28);var a=void 0!==o;if(a){if(!r.seekable)throw new te.ErrnoError(70)}else o=r.position;var i=r.stream_ops.read(r,e,t,n,o);return a||(r.position+=i),i},write(r,e,t,n,o,a){if(n<0||o<0)throw new te.ErrnoError(28);if(te.isClosed(r))throw new te.ErrnoError(8);if(!(2097155&r.flags))throw new te.ErrnoError(8);if(te.isDir(r.node.mode))throw new te.ErrnoError(31);if(!r.stream_ops.write)throw new te.ErrnoError(28);r.seekable&&1024&r.flags&&te.llseek(r,0,2);var i=void 0!==o;if(i){if(!r.seekable)throw new te.ErrnoError(70)}else o=r.position;var s=r.stream_ops.write(r,e,t,n,o,a);return i||(r.position+=s),s},allocate(r,e,t){if(te.isClosed(r))throw new te.ErrnoError(8);if(e<0||t<=0)throw new te.ErrnoError(28);if(!(2097155&r.flags))throw new te.ErrnoError(8);if(!te.isFile(r.node.mode)&&!te.isDir(r.node.mode))throw new te.ErrnoError(43);if(!r.stream_ops.allocate)throw new te.ErrnoError(138);r.stream_ops.allocate(r,e,t)},mmap(r,e,t,n,o){if(2&n&&!(2&o)&&2!=(2097155&r.flags))throw new te.ErrnoError(2);if(1==(2097155&r.flags))throw new te.ErrnoError(2);if(!r.stream_ops.mmap)throw new te.ErrnoError(43);if(!e)throw new te.ErrnoError(28);return r.stream_ops.mmap(r,e,t,n,o)},msync:(r,e,t,n,o)=>r.stream_ops.msync?r.stream_ops.msync(r,e,t,n,o):0,ioctl(r,e,t){if(!r.stream_ops.ioctl)throw new te.ErrnoError(59);return r.stream_ops.ioctl(r,e,t)},readFile(r,e={}){if(e.flags=e.flags||0,e.encoding=e.encoding||"binary","utf8"!==e.encoding&&"binary"!==e.encoding)throw new Error(`Invalid encoding type "${e.encoding}"`);var t,n=te.open(r,e.flags),o=te.stat(r).size,a=new Uint8Array(o);return te.read(n,a,0,o,0),"utf8"===e.encoding?t=Pr(a):"binary"===e.encoding&&(t=a),te.close(n),t},writeFile(r,e,t={}){t.flags=t.flags||577;var n=te.open(r,t.flags,t.mode);if("string"==typeof e){var o=new Uint8Array(Ar(e)+1),a=br(e,o,0,o.length);te.write(n,o,0,a,void 0,t.canOwn)}else{if(!ArrayBuffer.isView(e))throw new Error("Unsupported data type");te.write(n,e,0,e.byteLength,void 0,t.canOwn)}te.close(n)},cwd:()=>te.currentPath,chdir(r){var e=te.lookupPath(r,{follow:!0});if(null===e.node)throw new te.ErrnoError(44);if(!te.isDir(e.node.mode))throw new te.ErrnoError(54);var t=te.nodePermissions(e.node,"x");if(t)throw new te.ErrnoError(t);te.currentPath=e.path},createDefaultDirectories(){te.mkdir("/tmp"),te.mkdir("/home"),te.mkdir("/home/web_user")},createDefaultDevices(){te.mkdir("/dev"),te.registerDevice(te.makedev(1,3),{read:()=>0,write:(r,e,t,n,o)=>n,llseek:()=>0}),te.mkdev("/dev/null",te.makedev(1,3)),Jr.register(te.makedev(5,0),Jr.default_tty_ops),Jr.register(te.makedev(6,0),Jr.default_tty1_ops),te.mkdev("/dev/tty",te.makedev(5,0)),te.mkdev("/dev/tty1",te.makedev(6,0));var r=new Uint8Array(1024),e=0,t=()=>(0===e&&(e=qr(r).byteLength),r[--e]);te.createDevice("/dev","random",t),te.createDevice("/dev","urandom",t),te.mkdir("/dev/shm"),te.mkdir("/dev/shm/tmp")},createSpecialDirectories(){te.mkdir("/proc");var r=te.mkdir("/proc/self");te.mkdir("/proc/self/fd"),te.mount({mount(){var e=te.createNode(r,"fd",16895,73);return e.stream_ops={llseek:Yr.stream_ops.llseek},e.node_ops={lookup(r,e){var t=+e,n=te.getStreamChecked(t),o={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>n.path},id:t+1};return o.parent=o,o},readdir:()=>Array.from(te.streams.entries()).filter(([r,e])=>e).map(([r,e])=>r.toString())},e}},{},"/proc/self/fd")},createStandardStreams(r,e,t){r?te.createDevice("/dev","stdin",r):te.symlink("/dev/tty","/dev/stdin"),e?te.createDevice("/dev","stdout",null,e):te.symlink("/dev/tty","/dev/stdout"),t?te.createDevice("/dev","stderr",null,t):te.symlink("/dev/tty1","/dev/stderr"),te.open("/dev/stdin",0),te.open("/dev/stdout",1),te.open("/dev/stderr",1)},staticInit(){te.nameTable=new Array(4096),te.mount(Yr,{},"/"),te.createDefaultDirectories(),te.createDefaultDevices(),te.createSpecialDirectories(),te.filesystems={MEMFS:Yr}},init(r,e,t){te.initialized=!0,r??=o.stdin,e??=o.stdout,t??=o.stderr,te.createStandardStreams(r,e,t)},quit(){te.initialized=!1;for(var r=0;r<te.streams.length;r++){var e=te.streams[r];e&&te.close(e)}},findObject(r,e){var t=te.analyzePath(r,e);return t.exists?t.object:null},analyzePath(r,e){try{r=(n=te.lookupPath(r,{follow:!e})).path}catch(r){}var t={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var n=te.lookupPath(r,{parent:!0});t.parentExists=!0,t.parentPath=n.path,t.parentObject=n.node,t.name=Vr.basename(r),n=te.lookupPath(r,{follow:!e}),t.exists=!0,t.path=n.path,t.object=n.node,t.name=n.node.name,t.isRoot="/"===n.path}catch(r){t.error=r.errno}return t},createPath(r,e,t,n){r="string"==typeof r?r:te.getPath(r);for(var o=e.split("/").reverse();o.length;){var a=o.pop();if(a){var i=Vr.join2(r,a);try{te.mkdir(i)}catch(r){}r=i}}return i},createFile(r,e,t,n,o){var a=Vr.join2("string"==typeof r?r:te.getPath(r),e),i=ee(n,o);return te.create(a,i)},createDataFile(r,e,t,n,o,a){var i=e;r&&(r="string"==typeof r?r:te.getPath(r),i=e?Vr.join2(r,e):r);var s=ee(n,o),u=te.create(i,s);if(t){if("string"==typeof t){for(var l=new Array(t.length),d=0,c=t.length;d<c;++d)l[d]=t.charCodeAt(d);t=l}te.chmod(u,146|s);var f=te.open(u,577);te.write(f,t,0,t.length,0,a),te.close(f),te.chmod(u,s)}},createDevice(r,e,t,n){var o=Vr.join2("string"==typeof r?r:te.getPath(r),e),a=ee(!!t,!!n);te.createDevice.major??=64;var i=te.makedev(te.createDevice.major++,0);return te.registerDevice(i,{open(r){r.seekable=!1},close(r){n?.buffer?.length&&n(10)},read(r,e,n,o,a){for(var i=0,s=0;s<o;s++){var u;try{u=t()}catch(r){throw new te.ErrnoError(29)}if(void 0===u&&0===i)throw new te.ErrnoError(6);if(null==u)break;i++,e[n+s]=u}return i&&(r.node.atime=Date.now()),i},write(r,e,t,o,a){for(var i=0;i<o;i++)try{n(e[t+i])}catch(r){throw new te.ErrnoError(29)}return o&&(r.node.mtime=r.node.ctime=Date.now()),i}}),te.mkdev(o,a,i)},forceLoadFile(r){if(r.isDevice||r.isFolder||r.link||r.contents)return!0;if("undefined"!=typeof XMLHttpRequest)throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");try{r.contents=l(r.url),r.usedBytes=r.contents.length}catch(r){throw new te.ErrnoError(29)}},createLazyFile(r,e,t,n,o){class a{lengthKnown=!1;chunks=[];get(r){if(!(r>this.length-1||r<0)){var e=r%this.chunkSize,t=r/this.chunkSize|0;return this.getter(t)[e]}}setDataGetter(r){this.getter=r}cacheLength(){var r=new XMLHttpRequest;if(r.open("HEAD",t,!1),r.send(null),!(r.status>=200&&r.status<300||304===r.status))throw new Error("Couldn't load "+t+". Status: "+r.status);var e,n=Number(r.getResponseHeader("Content-length")),o=(e=r.getResponseHeader("Accept-Ranges"))&&"bytes"===e,a=(e=r.getResponseHeader("Content-Encoding"))&&"gzip"===e,i=1048576;o||(i=n);var s=(r,e)=>{if(r>e)throw new Error("invalid range ("+r+", "+e+") or no bytes requested!");if(e>n-1)throw new Error("only "+n+" bytes available! programmer error!");var o=new XMLHttpRequest;if(o.open("GET",t,!1),n!==i&&o.setRequestHeader("Range","bytes="+r+"-"+e),o.responseType="arraybuffer",o.overrideMimeType&&o.overrideMimeType("text/plain; charset=x-user-defined"),o.send(null),!(o.status>=200&&o.status<300||304===o.status))throw new Error("Couldn't load "+t+". Status: "+o.status);return void 0!==o.response?new Uint8Array(o.response||[]):Kr(o.responseText||"")},u=this;u.setDataGetter(r=>{var e=r*i,t=(r+1)*i-1;if(t=Math.min(t,n-1),void 0===u.chunks[r]&&(u.chunks[r]=s(e,t)),void 0===u.chunks[r])throw new Error("doXHR failed!");return u.chunks[r]}),!a&&n||(i=n=1,n=this.getter(0).length,i=n,h("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=n,this._chunkSize=i,this.lengthKnown=!0}get length(){return this.lengthKnown||this.cacheLength(),this._length}get chunkSize(){return this.lengthKnown||this.cacheLength(),this._chunkSize}}if("undefined"!=typeof XMLHttpRequest){if(!s)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var i={isDevice:!1,contents:new a}}else i={isDevice:!1,url:t};var u=te.createFile(r,e,i,n,o);i.contents?u.contents=i.contents:i.url&&(u.contents=null,u.url=i.url),Object.defineProperties(u,{usedBytes:{get:function(){return this.contents.length}}});var l={};function d(r,e,t,n,o){var a=r.node.contents;if(o>=a.length)return 0;var i=Math.min(a.length-o,n);if(a.slice)for(var s=0;s<i;s++)e[t+s]=a[o+s];else for(s=0;s<i;s++)e[t+s]=a.get(o+s);return i}return Object.keys(u.stream_ops).forEach(r=>{var e=u.stream_ops[r];l[r]=(...r)=>(te.forceLoadFile(u),e(...r))}),l.read=(r,e,t,n,o)=>(te.forceLoadFile(u),d(r,e,t,n,o)),l.mmap=(r,e,t,n,o)=>{te.forceLoadFile(u);var a=Qr();if(!a)throw new te.ErrnoError(48);return d(r,v,a,e,t),{ptr:a,allocated:!0}},u.stream_ops=l,u}},ne={DEFAULT_POLLMASK:5,calculateAt(r,e,t){if(Vr.isAbs(e))return e;var n;if(n=-100===r?te.cwd():ne.getStreamFromFD(r).path,0==e.length){if(!t)throw new te.ErrnoError(44);return n}return n+"/"+e},doStat(r,e,t){var n=r(e);E[t>>2]=n.dev,E[t+4>>2]=n.mode,k[t+8>>2]=n.nlink,E[t+12>>2]=n.uid,E[t+16>>2]=n.gid,E[t+20>>2]=n.rdev,W=[n.size>>>0,(O=n.size,+Math.abs(O)>=1?O>0?+Math.floor(O/4294967296)>>>0:~~+Math.ceil((O-+(~~O>>>0))/4294967296)>>>0:0)],E[t+24>>2]=W[0],E[t+28>>2]=W[1],E[t+32>>2]=4096,E[t+36>>2]=n.blocks;var o=n.atime.getTime(),a=n.mtime.getTime(),i=n.ctime.getTime();return W=[Math.floor(o/1e3)>>>0,(O=Math.floor(o/1e3),+Math.abs(O)>=1?O>0?+Math.floor(O/4294967296)>>>0:~~+Math.ceil((O-+(~~O>>>0))/4294967296)>>>0:0)],E[t+40>>2]=W[0],E[t+44>>2]=W[1],k[t+48>>2]=o%1e3*1e3*1e3,W=[Math.floor(a/1e3)>>>0,(O=Math.floor(a/1e3),+Math.abs(O)>=1?O>0?+Math.floor(O/4294967296)>>>0:~~+Math.ceil((O-+(~~O>>>0))/4294967296)>>>0:0)],E[t+56>>2]=W[0],E[t+60>>2]=W[1],k[t+64>>2]=a%1e3*1e3*1e3,W=[Math.floor(i/1e3)>>>0,(O=Math.floor(i/1e3),+Math.abs(O)>=1?O>0?+Math.floor(O/4294967296)>>>0:~~+Math.ceil((O-+(~~O>>>0))/4294967296)>>>0:0)],E[t+72>>2]=W[0],E[t+76>>2]=W[1],k[t+80>>2]=i%1e3*1e3*1e3,W=[n.ino>>>0,(O=n.ino,+Math.abs(O)>=1?O>0?+Math.floor(O/4294967296)>>>0:~~+Math.ceil((O-+(~~O>>>0))/4294967296)>>>0:0)],E[t+88>>2]=W[0],E[t+92>>2]=W[1],0},doMsync(r,e,t,n,o){if(!te.isFile(e.node.mode))throw new te.ErrnoError(43);if(2&n)return 0;var a=w.slice(r,r+t);te.msync(e,a,o,t,n)},getStreamFromFD:r=>te.getStreamChecked(r),varargs:void 0,getStr:r=>Dr(r)};(()=>{for(var r=new Array(256),e=0;e<256;++e)r[e]=String.fromCharCode(e);H=r})(),V=o.BindingError=class extends Error{constructor(r){super(r),this.name="BindingError"}},q=o.InternalError=class extends Error{constructor(r){super(r),this.name="InternalError"}},er.push(0,1,void 0,1,null,1,!0,1,!1,1),o.count_emval_handles=()=>er.length/2-5-rr.length,hr=o.UnboundTypeError=((r,e)=>{var t=ur(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"),te.createPreloadedFile=(r,e,t,n,o,a,i,s,u,l)=>{var d=e?Xr.resolve(Vr.join2(r,e)):r;function c(t){function c(t){l?.(),s||((r,e,t,n,o,a)=>{te.createDataFile(r,e,t,n,o,a)})(r,e,t,n,o,u),a?.(),$()}((r,e,t,n)=>{"undefined"!=typeof Browser&&Browser.init();var o=!1;return re.forEach(a=>{o||a.canHandle(e)&&(a.handle(r,e,t,n),o=!0)}),o})(t,d,c,()=>{i?.(),$()})||c(t)}x(),"string"==typeof t?Zr(t).then(c,i):c(t)},te.staticInit(),Yr.doesNotExistError=new te.ErrnoError(44),Yr.doesNotExistError.stack="<generic error, no stack>";var oe,ae={q:(r,e,t)=>{throw new I(r).init(e,t),r},w:()=>N(""),s:(r,e,t,n,o)=>{},D:(r,e,t,n)=>{Z(r,{name:e=X(e),fromWireType:function(r){return!!r},toWireType:function(r,e){return e?t:n},argPackAdvance:8,readValueFromPointer:function(r){return this.fromWireType(w[r])},destructorFunction:null})},B:r=>Z(r,ir),p:(r,e,t)=>{Z(r,{name:e=X(e),fromWireType:r=>r,toWireType:(r,e)=>e,argPackAdvance:8,readValueFromPointer:sr(e,t),destructorFunction:null})},i:(r,e,t,n,o,a,i,s)=>{var u=((r,e)=>{for(var t=[],n=0;n<r;n++)t.push(k[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=X(r)),o=gr(n,o),mr(r,function(){((r,e)=>{var t=[],n={};throw e.forEach(function r(e){n[e]||K[e]||(J[e]?J[e].forEach(r):(t.push(e),n[e]=!0))}),new hr(`${r}: `+t.map(Er).join([", "]))})(`Cannot call ${r} due to unbound types`,u)},e-1),((r,e,t)=>{function n(e){var n=t(e);n.length!==r.length&&Y("Mismatched type converter count");for(var o=0;o<r.length;++o)Z(r[o],n[o])}r.forEach(r=>J[r]=e);var o=new Array(e.length),a=[],i=0;e.forEach((r,e)=>{K.hasOwnProperty(r)?o[e]=K[r]:(a.push(r),G.hasOwnProperty(r)||(G[r]=[]),G[r].push(()=>{o[e]=K[r],++i===a.length&&n(o)}))}),0===a.length&&n(o)})([],u,t=>{var n=[t[0],null].concat(t.slice(1));return vr(r,function(r,e,t,n,o,a){var i=e.length;i<2&&Q("argTypes array size mismatch! Must at least get return value and 'this' types!"),e[1];for(var s=dr(e),u="void"!==e[0].name,l=[r,Q,n,o,lr,e[0],e[1]],d=0;d<i-2;++d)l.push(e[d+2]);if(!s)for(d=2;d<e.length;++d)null!==e[d].destructorFunction&&l.push(e[d].destructorFunction);let[c,f]=function(r,e,t,n){for(var o=dr(r),a=r.length-2,i=[],s=["fn"],u=0;u<a;++u)i.push(`arg${u}`),s.push(`arg${u}Wired`);i=i.join(","),s=s.join(",");var l=`return function (${i}) {\n`;o&&(l+="var destructors = [];\n");var d=o?"destructors":"null",c=["humanName","throwBindingError","invoker","fn","runDestructors","retType","classParam"];for(u=0;u<a;++u)l+=`var arg${u}Wired = argType${u}['toWireType'](${d}, arg${u});\n`,c.push(`argType${u}`);if(l+=(t||n?"var rv = ":"")+`invoker(${s});\n`,o)l+="runDestructors(destructors);\n";else for(u=2;u<r.length;++u){var f=1===u?"thisWired":"arg"+(u-2)+"Wired";null!==r[u].destructorFunction&&(l+=`${f}_dtor(${f});\n`,c.push(`${f}_dtor`))}return t&&(l+="var ret = retType['fromWireType'](rv);\nreturn ret;\n"),[c,l+="}\n"]}(e,0,u,a);c.push(f);var h=cr(Function,c)(...l);return ur(r,h)}(r,n,0,o,a,i),e-1),[]})},c:(r,e,t,n,o)=>{e=X(e);var a=r=>r;if(0===n){var i=32-8*t;a=r=>r<<i>>>i}var s=e.includes("unsigned");Z(r,{name:e,fromWireType:a,toWireType:s?function(r,e){return this.name,e>>>0}:function(r,e){return this.name,e},argPackAdvance:8,readValueFromPointer:kr(e,t,0!==n),destructorFunction:null})},a:(r,e,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][e];function o(r){var e=k[r>>2],t=k[r+4>>2];return new n(v.buffer,t,e)}Z(r,{name:t=X(t),fromWireType:o,argPackAdvance:8,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},C:(r,e)=>{Z(r,{name:e=X(e),fromWireType(r){for(var e,t=k[r>>2],n=r+4,o=n,a=0;a<=t;++a){var i=n+a;if(a==t||0==w[i]){var s=Dr(o,i-o);void 0===e?e=s:(e+=String.fromCharCode(0),e+=s),o=i+1}}return le(r),e},toWireType(r,e){var t;e instanceof ArrayBuffer&&(e=new Uint8Array(e));var n="string"==typeof e;n||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int8Array||Q("Cannot pass non-string to std::string"),t=n?Ar(e):e.length;var o=ue(4+t+1),a=o+4;if(k[o>>2]=t,n)_r(e,a,t+1);else if(n)for(var i=0;i<t;++i){var s=e.charCodeAt(i);s>255&&(le(a),Q("String has UTF-16 code units that do not fit in 8 bits")),w[a+i]=s}else for(i=0;i<t;++i)w[a+i]=e[i];return null!==r&&r.push(le,o),o},argPackAdvance:8,readValueFromPointer:ar,destructorFunction(r){le(r)}})},j:(r,e,t)=>{var n,o,a,i;t=X(t),2===e?(n=Tr,o=Cr,i=Mr,a=r=>g[r>>1]):4===e&&(n=jr,o=Rr,i=xr,a=r=>k[r>>2]),Z(r,{name:t,fromWireType:r=>{for(var t,o=k[r>>2],i=r+4,s=0;s<=o;++s){var u=r+4+s*e;if(s==o||0==a(u)){var l=n(i,u-i);void 0===t?t=l:(t+=String.fromCharCode(0),t+=l),i=u+e}}return le(r),t},toWireType:(r,n)=>{"string"!=typeof n&&Q(`Cannot pass non-string to C++ string type ${t}`);var a=i(n),s=ue(4+a+e);return k[s>>2]=a/e,o(n,s+4,a+e),null!==r&&r.push(le,s),s},argPackAdvance:8,readValueFromPointer:ar,destructorFunction(r){le(r)}})},E:(r,e)=>{Z(r,{isVoid:!0,name:e=X(e),argPackAdvance:0,fromWireType:()=>{},toWireType:(r,e)=>{}})},A:(r,e,t)=>w.copyWithin(r,e,e+t),n:(r,e,t)=>(r=nr(r),e=$r(e,"emval::as"),Nr(e,t,r)),l:(r,e,t,n)=>(r=zr[r])(null,e=nr(e),t,n),k:(r,e,t,n,o)=>(r=zr[r])(e=nr(e),e[t=Wr(t)],n,o),b:tr,F:r=>0===r?or(Br()):(r=Wr(r),or(Br()[r])),g:(r,e,t)=>{var n=((r,e)=>{for(var t=new Array(r),n=0;n<r;++n)t[n]=$r(k[e+4*n>>2],"parameter "+n);return t})(r,e),o=n.shift();r--;var a="return function (obj, func, destructorsRef, args) {\n",i=0,s=[];0===t&&s.push("obj");for(var u=["retType"],l=[o],d=0;d<r;++d)s.push("arg"+d),u.push("argType"+d),l.push(n[d]),a+=` var arg${d} = argType${d}.readValueFromPointer(args${i?"+"+i:""});\n`,i+=n[d].argPackAdvance;a+=` var rv = ${1===t?"new func":"func.call"}(${s.join(", ")});\n`,o.isVoid||(u.push("emval_returnValue"),l.push(Nr),a+=" return emval_returnValue(retType, destructorsRef, rv);\n"),a+="};\n",u.push(a);var c=cr(Function,u)(...l),f=`methodCaller<(${n.map(r=>r.name).join(", ")}) => ${o.name}>`;return(r=>{var e=zr.length;return zr.push(r),e})(ur(f,c))},m:r=>(r=Wr(r),or(o[r])),e:(r,e)=>(r=nr(r),e=nr(e),or(r[e])),h:r=>{r>9&&(er[r+1]+=1)},f:r=>or(Wr(r)),d:r=>{var e=nr(r);lr(e),tr(r)},t:(r,e,t,n)=>{var o=(new Date).getFullYear(),a=new Date(o,0,1),i=new Date(o,6,1),s=a.getTimezoneOffset(),u=i.getTimezoneOffset(),l=Math.max(s,u);k[r>>2]=60*l,E[e>>2]=Number(s!=u);var d=r=>{var e=r>=0?"-":"+",t=Math.abs(r);return`UTC${e}${String(Math.floor(t/60)).padStart(2,"0")}${String(t%60).padStart(2,"0")}`},c=d(s),f=d(u);u<s?(_r(c,t,17),_r(f,n,17)):(_r(c,n,17),_r(f,t,17))},z:r=>{var e=w.length,t=2147483648;if((r>>>=0)>t)return!1;for(var n=1;n<=4;n*=2){var o=e*(1+.2/n);o=Math.min(o,r+100663296);var a=Math.min(t,Ur(Math.max(r,o),65536));if(Lr(a))return!0}return!1},u:(r,e)=>{var t=0;return Hr().forEach((n,o)=>{var a=e+t;k[r+4*o>>2]=a,((r,e)=>{for(var t=0;t<r.length;++t)v[e++]=r.charCodeAt(t);v[e]=0})(n,a),t+=n.length+1}),0},v:(r,e)=>{var t=Hr();k[r>>2]=t.length;var n=0;return t.forEach(r=>n+=r.length+1),k[e>>2]=n,0},x:function(r){try{var e=ne.getStreamFromFD(r);return te.close(e),0}catch(r){if(void 0===te||"ErrnoError"!==r.name)throw r;return r.errno}},y:function(r,e,t,n){try{var o=((r,e,t)=>{for(var n=0,o=0;o<t;o++){var a=k[e>>2],i=k[e+4>>2];e+=8;var s=te.read(r,v,a,i,undefined);if(s<0)return-1;if(n+=s,s<i)break}return n})(ne.getStreamFromFD(r),e,t);return k[n>>2]=o,0}catch(r){if(void 0===te||"ErrnoError"!==r.name)throw r;return r.errno}},r:function(r,e,t,n,o){var a=((r,e)=>e+2097152>>>0<4194305-!!r?(r>>>0)+4294967296*e:NaN)(e,t);try{if(isNaN(a))return 61;var i=ne.getStreamFromFD(r);return te.llseek(i,a,n),W=[i.position>>>0,(O=i.position,+Math.abs(O)>=1?O>0?+Math.floor(O/4294967296)>>>0:~~+Math.ceil((O-+(~~O>>>0))/4294967296)>>>0:0)],E[o>>2]=W[0],E[o+4>>2]=W[1],i.getdents&&0===a&&0===n&&(i.getdents=null),0}catch(r){if(void 0===te||"ErrnoError"!==r.name)throw r;return r.errno}},o:function(r,e,t,n){try{var o=((r,e,t)=>{for(var n=0,o=0;o<t;o++){var a=k[e>>2],i=k[e+4>>2];e+=8;var s=te.write(r,v,a,i,undefined);if(s<0)return-1;if(n+=s,s<i)break}return n})(ne.getStreamFromFD(r),e,t);return k[n>>2]=o,0}catch(r){if(void 0===te||"ErrnoError"!==r.name)throw r;return r.errno}}};!async function(){function r(r,e){return oe=r.exports,m=oe.G,P(),fr=oe.J,function(r){S.unshift(r)}(oe.H),$(),oe}x();var e={a:ae};if(o.instantiateWasm)try{return o.instantiateWasm(e,r)}catch(r){p(`Module.instantiateWasm callback failed with error: ${r}`),t(r)}z??=function(){var r="dxt_encoder.wasm";return B(r)?r:function(r){return o.locateFile?o.locateFile(r,f):f+r}(r)}();try{var n=await U(A,z,e);return function(e){r(e.instance)}(n),n}catch(r){return void t(r)}}();var ie,se=r=>(se=oe.I)(r),ue=r=>(ue=oe.K)(r),le=r=>(le=oe.L)(r);function de(){function r(){ie||(ie=!0,o.calledRun=!0,F||(o.noFSInit||te.initialized||te.init(),te.ignorePermissions=!1,L(S),e(o),o.onRuntimeInitialized?.(),function(){if(o.postRun)for("function"==typeof o.postRun&&(o.postRun=[o.postRun]);o.postRun.length;)M(o.postRun.shift());L(T)}()))}j>0||(function(){if(o.preRun)for("function"==typeof o.preRun&&(o.preRun=[o.preRun]);o.preRun.length;)C(o.preRun.shift());L(D)}(),j>0||(o.setStatus?(o.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>o.setStatus(""),1),r()},1)):r()))}if(o.dynCall_jiji=(r,e,t,n,a)=>(o.dynCall_jiji=oe.M)(r,e,t,n,a),o.dynCall_viijii=(r,e,t,n,a,i,s)=>(o.dynCall_viijii=oe.N)(r,e,t,n,a,i,s),o.dynCall_iiiiij=(r,e,t,n,a,i,s)=>(o.dynCall_iiiiij=oe.O)(r,e,t,n,a,i,s),o.dynCall_iiiiijj=(r,e,t,n,a,i,s,u,l)=>(o.dynCall_iiiiijj=oe.P)(r,e,t,n,a,i,s,u,l),o.dynCall_iiiiiijj=(r,e,t,n,a,i,s,u,l,d)=>(o.dynCall_iiiiiijj=oe.Q)(r,e,t,n,a,i,s,u,l,d),R=function r(){ie||de(),ie||(R=r)},o.preInit)for("function"==typeof o.preInit&&(o.preInit=[o.preInit]);o.preInit.length>0;)o.preInit.pop()();return de(),a})}}]);