@arcgis/core 4.32.0-next.20241218 → 4.32.0-next.20241220

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 (277) hide show
  1. package/Basemap.js +1 -1
  2. package/arcade.js +1 -1
  3. package/assets/components/assets/text-area/t9n/messages.en.json +1 -1
  4. package/assets/components/assets/text-area/t9n/messages.json +1 -1
  5. package/assets/esri/core/workers/RemoteClient.js +1 -1
  6. package/assets/esri/core/workers/chunks/{6ceafd4420d21110d820.js → 015285436ca965f94e17.js} +1 -1
  7. package/assets/esri/core/workers/chunks/{57aa1fcef6587305b347.js → 0191142d5f55cc8cf37a.js} +93 -93
  8. package/assets/esri/core/workers/chunks/{7a0ddaf2c279a2d24c86.js → 0837a630e12a21fc2e50.js} +1 -1
  9. package/assets/esri/core/workers/chunks/0b3e1e903120da297641.js +1 -0
  10. package/assets/esri/core/workers/chunks/0f1a7aeec18db5323365.js +1 -0
  11. package/assets/esri/core/workers/chunks/{cca47dab8c1b8ae49fab.js → 11052103efe3d53a784e.js} +1 -1
  12. package/assets/esri/core/workers/chunks/19d72185d50ba1ebff50.js +1 -0
  13. package/assets/esri/core/workers/chunks/{b99de19b6930ba6dad98.js → 1d8609ba413e8a172719.js} +1 -1
  14. package/assets/esri/core/workers/chunks/{d05fab1af651b7e92442.js → 23fe65988dbc9e5d7842.js} +1 -1
  15. package/assets/esri/core/workers/chunks/2427a01678f3d9fbf30b.js +1 -0
  16. package/assets/esri/core/workers/chunks/2c084c0c324e3af56424.js +1 -0
  17. package/assets/esri/core/workers/chunks/3a90163b76b0bc7f21d2.js +1 -0
  18. package/assets/esri/core/workers/chunks/48266c87363e7dcaefb3.js +1 -0
  19. package/assets/esri/core/workers/chunks/{d3790bd1a644eae1005b.js → 48f6eb3b63fec1d3312d.js} +4 -5
  20. package/assets/esri/core/workers/chunks/5a0eb9dfe668cf290462.js +1 -0
  21. package/assets/esri/core/workers/chunks/668679baf519ada9ae28.js +1 -0
  22. package/assets/esri/core/workers/chunks/69efc716991a407c3d23.js +1 -0
  23. package/assets/esri/core/workers/chunks/7156d2ae914e1add0109.js +1 -0
  24. package/assets/esri/core/workers/chunks/737f381f2cfeddb96d15.js +1 -0
  25. package/assets/esri/core/workers/chunks/{b77d294ad7064734d015.js → 741d5dadfab2a7689054.js} +1 -1
  26. package/assets/esri/core/workers/chunks/756c2f7c8659deab6c96.js.LICENSE.txt +1 -1
  27. package/assets/esri/core/workers/chunks/{1cee35ea0a80737730d5.js → 770d233254419b741616.js} +1 -1
  28. package/assets/esri/core/workers/chunks/8249351daa45ca82ca0c.js +1 -0
  29. package/assets/esri/core/workers/chunks/9372d08ba8bf3342c48f.js +1 -0
  30. package/assets/esri/core/workers/chunks/{fb43c44a7d6b61f31e75.js → 94432e04de01ee7adc0e.js} +1 -1
  31. package/assets/esri/core/workers/chunks/95af4dee29eb196b8ada.js +1 -0
  32. package/assets/esri/core/workers/chunks/{80ac74da0b0e45e74beb.js → 9a498f2c007f4d78d4dd.js} +1 -1
  33. package/assets/esri/core/workers/chunks/9cc9bac6e02ab241e852.js +1 -0
  34. package/assets/esri/core/workers/chunks/{d347dd19a37ba2f19970.js → 9fc49968dea8e2b64f3e.js} +1 -1
  35. package/assets/esri/core/workers/chunks/a776f71b4c7b8728a973.js +1 -0
  36. package/assets/esri/core/workers/chunks/a77aa86896bbb0e088df.js +1 -0
  37. package/assets/esri/core/workers/chunks/{7c9e4d479d740723304b.js → b1e4813f0c73fc2a483c.js} +2 -2
  38. package/assets/esri/core/workers/chunks/{7c9e4d479d740723304b.js.LICENSE.txt → b1e4813f0c73fc2a483c.js.LICENSE.txt} +1 -1
  39. package/assets/esri/core/workers/chunks/bd37c9cc720587665fd3.js +1 -0
  40. package/assets/esri/core/workers/chunks/bf0a0ca7fdac98f06a89.js.LICENSE.txt +1 -1
  41. package/assets/esri/core/workers/chunks/{eddab4dc706e75c6637f.js → bff74200a0df0950cf08.js} +1 -1
  42. package/assets/esri/core/workers/chunks/{8f2ffb6944c9028d3bea.js → c08cb75c3eef6c45f604.js} +1 -1
  43. package/assets/esri/core/workers/chunks/cb3af81e1fe6405c4885.js +1 -0
  44. package/assets/esri/core/workers/chunks/cc427e8f1b17744b6ea4.js +1 -0
  45. package/assets/esri/core/workers/chunks/cfe4b8101ea96d6996d3.js +2 -0
  46. package/assets/esri/core/workers/chunks/{f3f5c5138de8428bd30f.js.LICENSE.txt → cfe4b8101ea96d6996d3.js.LICENSE.txt} +1 -1
  47. package/assets/esri/core/workers/chunks/d7b76bc7bff34abc2253.js +1 -0
  48. package/assets/esri/core/workers/chunks/dce55e7f76adecc055c3.js +1 -0
  49. package/assets/esri/core/workers/chunks/dd34df14eb4940e2497b.js +1 -0
  50. package/assets/esri/core/workers/chunks/dfd9432ba01881d0a4d9.js +2 -0
  51. package/assets/esri/core/workers/chunks/{ed2ebe42d6483470939a.js.LICENSE.txt → dfd9432ba01881d0a4d9.js.LICENSE.txt} +1 -1
  52. package/assets/esri/core/workers/chunks/e1913990f30d285b3b15.js +2 -0
  53. package/assets/esri/core/workers/chunks/{aff820b27ca9585e297e.js.LICENSE.txt → e1913990f30d285b3b15.js.LICENSE.txt} +1 -1
  54. package/assets/esri/core/workers/chunks/{e6490fe7c87c1d649ea6.js → e5d55a35dace70239902.js} +1 -1
  55. package/assets/esri/core/workers/chunks/ebf9caf2dc8af89afec2.js +2 -0
  56. package/assets/esri/core/workers/chunks/{2eb36a16de1a823513cd.js.LICENSE.txt → ebf9caf2dc8af89afec2.js.LICENSE.txt} +1 -1
  57. package/assets/esri/core/workers/chunks/f25c04cf1a4bc1d2636a.js +1 -0
  58. package/assets/esri/core/workers/chunks/f2cdb7be3fd65f65c30b.js +1 -0
  59. package/assets/esri/themes/base/widgets/_FeatureTable.scss +3 -3
  60. package/assets/esri/themes/dark/main.css +1 -1
  61. package/assets/esri/themes/light/main.css +1 -1
  62. package/assets/esri/themes/light/view.css +1 -1
  63. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ar.json +1 -1
  64. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_bg.json +1 -1
  65. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_bs.json +1 -1
  66. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ca.json +1 -1
  67. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_cs.json +1 -1
  68. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_da.json +1 -1
  69. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_de.json +1 -1
  70. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_el.json +1 -1
  71. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_es.json +1 -1
  72. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_et.json +1 -1
  73. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_fi.json +1 -1
  74. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_fr.json +1 -1
  75. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_he.json +1 -1
  76. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_hr.json +1 -1
  77. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_hu.json +1 -1
  78. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_id.json +1 -1
  79. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_it.json +1 -1
  80. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ja.json +1 -1
  81. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ko.json +1 -1
  82. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_lt.json +1 -1
  83. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_lv.json +1 -1
  84. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_nl.json +1 -1
  85. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_no.json +1 -1
  86. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pl.json +1 -1
  87. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pt-BR.json +1 -1
  88. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pt-PT.json +1 -1
  89. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ro.json +1 -1
  90. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ru.json +1 -1
  91. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sk.json +1 -1
  92. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sl.json +1 -1
  93. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sr.json +1 -1
  94. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sv.json +1 -1
  95. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_th.json +1 -1
  96. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_tr.json +1 -1
  97. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_uk.json +1 -1
  98. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_vi.json +1 -1
  99. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-CN.json +1 -1
  100. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-HK.json +1 -1
  101. package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-TW.json +1 -1
  102. package/chunks/HUDMaterial.glsl.js +41 -42
  103. package/chunks/OITBlend.glsl.js +3 -3
  104. package/chunks/OperatorProject.js +1 -1
  105. package/chunks/QuadraticBezier.js +1 -1
  106. package/chunks/chartUtilsAm5.js +1 -1
  107. package/core/number.js +1 -1
  108. package/geometry/operators/affineTransformOperator.js +1 -1
  109. package/geometry/operators/alphaShapeOperator.js +1 -1
  110. package/geometry/operators/areaOperator.js +1 -1
  111. package/geometry/operators/autoCompleteOperator.js +1 -1
  112. package/geometry/operators/boundaryOperator.js +1 -1
  113. package/geometry/operators/bufferOperator.js +1 -1
  114. package/geometry/operators/centroidOperator.js +1 -1
  115. package/geometry/operators/clipOperator.js +1 -1
  116. package/geometry/operators/containsOperator.js +1 -1
  117. package/geometry/operators/convexHullOperator.js +1 -1
  118. package/geometry/operators/crossesOperator.js +1 -1
  119. package/geometry/operators/cutOperator.js +1 -1
  120. package/geometry/operators/densifyOperator.js +1 -1
  121. package/geometry/operators/differenceOperator.js +1 -1
  122. package/geometry/operators/disjointOperator.js +1 -1
  123. package/geometry/operators/distanceOperator.js +1 -1
  124. package/geometry/operators/equalsOperator.js +1 -1
  125. package/geometry/operators/extendOperator.js +1 -1
  126. package/geometry/operators/generalizeOperator.js +1 -1
  127. package/geometry/operators/geodesicBufferOperator.js +1 -1
  128. package/geometry/operators/geodesicProximityOperator.js +1 -1
  129. package/geometry/operators/geodeticAreaOperator.js +1 -1
  130. package/geometry/operators/geodeticDensifyOperator.js +1 -1
  131. package/geometry/operators/geodeticDistanceOperator.js +1 -1
  132. package/geometry/operators/geodeticLengthOperator.js +1 -1
  133. package/geometry/operators/graphicBufferOperator.js +1 -1
  134. package/geometry/operators/gx/operatorOffset.js +1 -1
  135. package/geometry/operators/integrateOperator.js +1 -1
  136. package/geometry/operators/intersectionOperator.js +1 -1
  137. package/geometry/operators/intersectsOperator.js +1 -1
  138. package/geometry/operators/isNearOperator.js +1 -1
  139. package/geometry/operators/labelPointOperator.js +1 -1
  140. package/geometry/operators/lengthOperator.js +1 -1
  141. package/geometry/operators/linesToPolygonsOperator.js +1 -1
  142. package/geometry/operators/locateBetweenOperator.js +1 -1
  143. package/geometry/operators/minimumBoundingCircleOperator.js +1 -1
  144. package/geometry/operators/multiPartToSinglePartOperator.js +1 -1
  145. package/geometry/operators/offsetOperator.js +1 -1
  146. package/geometry/operators/overlapsOperator.js +1 -1
  147. package/geometry/operators/polygonOverlayOperator.js +1 -1
  148. package/geometry/operators/polygonSlicerOperator.js +1 -1
  149. package/geometry/operators/projectOperator.js +1 -1
  150. package/geometry/operators/proximityOperator.js +1 -1
  151. package/geometry/operators/relateOperator.js +1 -1
  152. package/geometry/operators/reshapeOperator.js +1 -1
  153. package/geometry/operators/simplifyOperator.js +1 -1
  154. package/geometry/operators/singlePartToMultiPartOperator.js +1 -1
  155. package/geometry/operators/support/jsonConverter.js +1 -1
  156. package/geometry/operators/symmetricDifferenceOperator.js +1 -1
  157. package/geometry/operators/touchesOperator.js +1 -1
  158. package/geometry/operators/unionOperator.js +1 -1
  159. package/geometry/operators/withinOperator.js +1 -1
  160. package/interfaces.d.ts +1020 -735
  161. package/intl/messages.js +1 -1
  162. package/layers/graphics/OptimizedFeature.js +1 -1
  163. package/layers/graphics/sources/geojson/geojson.js +1 -1
  164. package/layers/support/Sublayer.js +1 -1
  165. package/layers/support/domainUtils.js +1 -1
  166. package/layers/support/fieldUtils.js +1 -1
  167. package/package.json +2 -2
  168. package/renderers/support/RendererLegendOptions.js +1 -1
  169. package/rest/featureService/utils.js +1 -1
  170. package/rest/query/operations/pbfOptimizedFeatureSet.js +1 -1
  171. package/rest/support/AddressToLocationsParameters.js +1 -1
  172. package/rest/support/LocationToAddressParameters.js +1 -1
  173. package/smartMapping/popup/classBreaks.js +1 -1
  174. package/smartMapping/popup/clusters.js +1 -1
  175. package/smartMapping/popup/dotDensity.js +1 -1
  176. package/smartMapping/popup/heatmap.js +1 -1
  177. package/smartMapping/popup/predominance.js +1 -1
  178. package/smartMapping/popup/relationship.js +1 -1
  179. package/smartMapping/popup/simple.js +1 -1
  180. package/smartMapping/popup/support/utils.js +1 -1
  181. package/smartMapping/popup/templates.js +1 -1
  182. package/smartMapping/popup/uniqueValues.js +1 -1
  183. package/smartMapping/raster/renderers/flow.js +1 -1
  184. package/smartMapping/renderers/pieChart.js +1 -1
  185. package/smartMapping/symbology/support/utils.js +1 -1
  186. package/support/BasemapStyle.js +1 -1
  187. package/support/revision.js +1 -1
  188. package/versionManagement/versionAdapters/utils.js +1 -1
  189. package/views/2d/engine/webgl/mesh/factories/ResourceProxy.js +1 -1
  190. package/views/2d/input/MapViewInputManager.js +1 -1
  191. package/views/2d/input/handlers/KeyRotate.js +1 -1
  192. package/views/2d/layers/FeatureLayerView2D.js +1 -1
  193. package/views/2d/layers/features/FeatureContainer.js +1 -1
  194. package/views/2d/layers/features/FeaturePipelineWorker.js +1 -1
  195. package/views/2d/layers/features/Processor.js +1 -1
  196. package/views/2d/layers/features/processor/AProcessorStrategy.js +1 -1
  197. package/views/2d/layers/features/processor/BinningStrategy.js +1 -1
  198. package/views/2d/layers/features/processor/ClusterStrategy.js +1 -1
  199. package/views/2d/layers/features/processor/FeatureUpdateStrategy.js +1 -1
  200. package/views/2d/layers/features/sources/FeatureSource.js +1 -1
  201. package/views/2d/layers/features/sources/strategies/ALoadStrategy.js +1 -1
  202. package/views/2d/layers/features/sources/strategies/chunks/ASourceChunk.js +1 -1
  203. package/views/2d/layers/features/sources/strategies/chunks/Overrides.js +5 -0
  204. package/views/2d/layers/features/sources/strategies/chunks/SourceChunkStore.js +1 -1
  205. package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
  206. package/views/2d/layers/features/support/FeatureSetReaderJSON.js +1 -1
  207. package/views/2d/layers/support/DebouncedFeatureOverride.js +5 -0
  208. package/views/2d/layers/support/FeatureCommandQueue.js +1 -1
  209. package/views/3d/input/SceneInputManager.js +1 -1
  210. package/views/3d/input/handlers/KeyboardNavigation.js +1 -1
  211. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  212. package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
  213. package/views/3d/webgl-engine/effects/transparency/OITBlend.js +1 -1
  214. package/views/3d/webgl-engine/lib/OrderIndependentTransparency.js +1 -1
  215. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  216. package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
  217. package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
  218. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  219. package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
  220. package/views/3d/webgl-engine/shaders/OutputColorHighlightOID.glsl.js +2 -2
  221. package/views/3d/webgl.js +1 -1
  222. package/views/SelectionManager.js +1 -1
  223. package/views/interactive/snapping/featureSources/FeatureServiceSnappingSource.js +1 -1
  224. package/views/layers/FeatureLayerView.js +1 -1
  225. package/widgets/Directions/DirectionsViewModel.js +1 -1
  226. package/widgets/FeatureTable/FieldColumn.js +1 -1
  227. package/widgets/Features/FeaturesViewModel.js +1 -1
  228. package/widgets/Features.js +1 -1
  229. package/widgets/LayerList/LayerListItem.js +1 -1
  230. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  231. package/widgets/OrientedImageryViewer/adapters/sketch/DigitizationAdapter.js +1 -1
  232. package/widgets/OrientedImageryViewer/components/ImageOverlays.js +1 -1
  233. package/widgets/OrientedImageryViewer/digitizationUtils.js +1 -1
  234. package/widgets/OrientedImageryViewer.js +1 -1
  235. package/widgets/Popup.js +1 -1
  236. package/widgets/ShadowCast.js +1 -1
  237. package/widgets/VersionManagement/VersionManagementViewModel.js +1 -1
  238. package/widgets/support/forms/formUtils.js +1 -1
  239. package/widgets/support/widget.js +1 -1
  240. package/widgets/support/widgetUtils.js +1 -1
  241. package/applications/Components/CollectionFlattener.d.ts +0 -4
  242. package/applications/Components/CollectionFlattener.js +0 -5
  243. package/assets/esri/core/workers/chunks/062da071fd27022f6cb1.js +0 -1
  244. package/assets/esri/core/workers/chunks/0f0cc8150326ca7bcd6f.js +0 -1
  245. package/assets/esri/core/workers/chunks/1808a2b023fa04c6ee6c.js +0 -1
  246. package/assets/esri/core/workers/chunks/1d31b07805af85a4ba7b.js +0 -1
  247. package/assets/esri/core/workers/chunks/1fb142a533e4ee492a50.js +0 -1
  248. package/assets/esri/core/workers/chunks/28f3e139a4e3b70d84a4.js +0 -1
  249. package/assets/esri/core/workers/chunks/2daf5f46e4b137d33f12.js +0 -1
  250. package/assets/esri/core/workers/chunks/2eb36a16de1a823513cd.js +0 -2
  251. package/assets/esri/core/workers/chunks/382c3da5ce9b3231f57c.js +0 -1
  252. package/assets/esri/core/workers/chunks/433798a25dd688cef327.js +0 -1
  253. package/assets/esri/core/workers/chunks/56a04f5976b926de448e.js +0 -1
  254. package/assets/esri/core/workers/chunks/5786b190ad3e2d933245.js +0 -1
  255. package/assets/esri/core/workers/chunks/6bd6c280c741f8917cc8.js +0 -1
  256. package/assets/esri/core/workers/chunks/70153bb44fd5b7cfecb8.js +0 -1
  257. package/assets/esri/core/workers/chunks/78981dee7b5403c32517.js +0 -1
  258. package/assets/esri/core/workers/chunks/7bb52be0a02fb2a2631c.js +0 -1
  259. package/assets/esri/core/workers/chunks/80f1f967646f7a7d37ec.js +0 -1
  260. package/assets/esri/core/workers/chunks/820bb7ea30ad30ce8f42.js +0 -1
  261. package/assets/esri/core/workers/chunks/8f2f2d497b875e2b4139.js +0 -1
  262. package/assets/esri/core/workers/chunks/95ea191f6a307b73b545.js +0 -1
  263. package/assets/esri/core/workers/chunks/9fab71f1041c40d976af.js +0 -1
  264. package/assets/esri/core/workers/chunks/a0a37c238863ffc1b768.js +0 -1
  265. package/assets/esri/core/workers/chunks/aa31073c7fe3b0e4e499.js +0 -1
  266. package/assets/esri/core/workers/chunks/af5d74311cec22601f73.js +0 -1
  267. package/assets/esri/core/workers/chunks/aff820b27ca9585e297e.js +0 -2
  268. package/assets/esri/core/workers/chunks/bf2d1a700fff4ae0db33.js +0 -1
  269. package/assets/esri/core/workers/chunks/da6c0c894e7e281169fa.js +0 -1
  270. package/assets/esri/core/workers/chunks/ed2ebe42d6483470939a.js +0 -2
  271. package/assets/esri/core/workers/chunks/f3f5c5138de8428bd30f.js +0 -2
  272. package/assets/esri/core/workers/chunks/f429d95eb986f3d215f3.js +0 -1
  273. package/assets/esri/core/workers/chunks/fce1158755f959730602.js +0 -1
  274. package/views/2d/layers/features/sources/strategies/chunks/OverrideChunk.js +0 -5
  275. package/views/3d/input/handlers/SingleKey.js +0 -5
  276. package/views/3d/input/handlers/SingleKeyResetHeading.js +0 -5
  277. package/views/3d/input/handlers/SingleKeyResetTilt.js +0 -5
package/core/number.js CHANGED
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{escapeRegExpString as e}from"./string.js";import{getLocale as t}from"../intl/locale.js";const n={ar:[".",","],bg:[","," "],bs:[",","."],ca:[",","."],cs:[","," "],da:[",","."],de:[",","."],"de-ch":[".","’"],el:[",","."],en:[".",","],"en-au":[".",","],es:[",","."],"es-mx":[".",","],et:[","," "],fi:[","," "],fr:[","," "],"fr-ch":[","," "],he:[".",","],hi:[".",",","#,##,##0.###"],hr:[",","."],hu:[","," "],id:[",","."],it:[",","."],"it-ch":[".","’"],ja:[".",","],ko:[".",","],lt:[","," "],lv:[","," "],mk:[",","."],nb:[","," "],nl:[",","."],pl:[","," "],pt:[",","."],"pt-pt":[","," "],ro:[",","."],ru:[","," "],sk:[","," "],sl:[",","."],sr:[",","."],sv:[","," "],th:[".",","],tr:[",","."],uk:[","," "],vi:[",","."],zh:[".",","]};function r(e=t()){let r=(e=e.toLowerCase())in n;if(!r){const t=e.split("-");t.length>1&&t[0]in n&&(e=t[0],r=!0),r||(e="en")}const[l,s,i="#,##0.###"]=n[e];return{decimal:l,group:s,pattern:i}}function l(e,t){const n=r((t={...t}).locale);t.customs=n;const l=t.pattern||n.pattern;return isNaN(e)||Math.abs(e)===1/0?null:i(e,l,t)}const s=/[#0,]*[#0](?:\.0*#*)?/;function i(e,t,n){const r=(n=n||{}).customs.group,l=n.customs.decimal,i=t.split(";"),a=i[0];if((t=i[e<0?1:0]||"-"+a).includes("%"))e*=100;else if(t.includes("‰"))e*=1e3;else{if(t.includes("¤"))throw new Error("currency notation not supported");if(t.includes("E"))throw new Error("exponential notation not supported")}const c=s,p=a.match(c);if(!p)throw new Error("unable to find a number expression in pattern: "+t);return!1===n.fractional&&(n.places=0),t.replace(c,o(e,p[0],{decimal:l,group:r,places:n.places,round:n.round}))}function o(e,t,n){!0===(n=n||{}).places&&(n.places=0),n.places===1/0&&(n.places=6);const r=t.split("."),l="string"==typeof n.places&&n.places.indexOf(",");let s=n.places;l?s=n.places.slice(l+1):+s>=0||(s=(r[1]||[]).length),n.round<0||(e=Number(e.toFixed(Number(s))));const i=String(Math.abs(e)).split("."),o=i[1]||"";if(r[1]||n.places){l&&(n.places=n.places.slice(0,Math.max(0,l)));const e=void 0!==n.places?n.places:r[1]&&r[1].lastIndexOf("0")+1;+e>o.length&&(i[1]=o.padEnd(Number(e),"0")),+s<o.length&&(i[1]=o.slice(0,Math.max(0,Number(s))))}else i[1]&&i.pop();const a=r[0].replace(",","");let c=a.indexOf("0");-1!==c&&(c=a.length-c,c>i[0].length&&(i[0]=i[0].padStart(c,"0")),a.includes("#")||(i[0]=i[0].slice(-c)));let p,u,d=r[0].lastIndexOf(",");if(-1!==d){p=r[0].length-d-1;const e=r[0].slice(0,d);d=e.lastIndexOf(","),-1!==d&&(u=e.length-d-1)}const f=[];for(let g=i[0];g;){const e=g.length-p;f.push(e>0?g.slice(Math.max(0,e)):g),g=e>0?g.slice(0,e):"",u&&(p=u,u=void 0)}return i[0]=f.reverse().join(n.group||","),i.join(n.decimal||".")}function a(e){return c(e).regexp}function c(t){const n=r((t=t||{}).locale),l=t.pattern||n.pattern,i=n.group,o=n.decimal;let a=1;if(l.includes("%"))a/=100;else if(l.includes("‰"))a/=1e3;else if(l.includes("¤"))throw new Error("currency notation not supported");const c=l.split(";");1===c.length&&c.push("-"+c[0]);const p=f(c,(n=>(n="(?:"+e(n,".")+")").replace(s,(e=>{const n={signed:!1,separator:t.strict?i:[i,""],fractional:t.fractional,decimal:o,exponent:!1},r=e.split(".");let l=t.places;1===r.length&&1!==a&&(r[1]="###"),1===r.length||0===l?n.fractional=!1:(void 0===l&&(l=t.pattern?r[1].lastIndexOf("0")+1:1/0),l&&null==t.fractional&&(n.fractional=!0),!t.places&&+l<r[1].length&&(l+=","+r[1].length),n.places=l);const s=r[0].split(",");return s.length>1&&(n.groupSize=s.pop().length,s.length>1&&(n.groupSize2=s.pop().length)),"("+u(n)+")"}))),!0);return{regexp:p.replaceAll(/[\xa0 ]/g,"[\\s\\xa0]"),group:i,decimal:o,factor:a}}function p(e,t){const n=c(t),r=new RegExp("^"+n.regexp+"$").exec(e);if(!r)return NaN;let l=r[1];if(!r[1]){if(!r[2])return NaN;l=r[2],n.factor*=-1}return l=l.replaceAll(new RegExp("["+n.group+"\\s\\xa0]","g"),"").replace(n.decimal,"."),Number(l)*n.factor}function u(e){"places"in(e=e||{})||(e.places=1/0),"string"!=typeof e.decimal&&(e.decimal="."),"fractional"in e&&!String(e.places).startsWith("0")||(e.fractional=[!0,!1]),"exponent"in e||(e.exponent=[!0,!1]),"eSigned"in e||(e.eSigned=[!0,!1]);const t=d(e),n=f(e.fractional,(t=>{let n="";return t&&0!==e.places&&(n="\\"+e.decimal,e.places===1/0?n="(?:"+n+"\\d+)?":n+="\\d{"+e.places+"}"),n}),!0);let r=t+n;return n&&(r="(?:(?:"+r+")|(?:"+n+"))"),r+f(e.exponent,(t=>t?"([eE]"+d({signed:e.eSigned})+")":""))}function d(t){"signed"in(t=t||{})||(t.signed=[!0,!1]),"separator"in t?"groupSize"in t||(t.groupSize=3):t.separator="";return f(t.signed,(e=>e?"[-+]":""),!0)+f(t.separator,(n=>{if(!n)return"(?:\\d+)";" "===(n=e(n))?n="\\s":" "===n&&(n="\\s\\xa0");const r=t.groupSize,l=t.groupSize2;if(l){const e="(?:0|[1-9]\\d{0,"+(l-1)+"}(?:["+n+"]\\d{"+l+"})*["+n+"]\\d{"+r+"})";return r-l>0?"(?:"+e+"|(?:0|[1-9]\\d{0,"+(r-1)+"}))":e}return"(?:0|[1-9]\\d{0,"+(r-1)+"}(?:["+n+"]\\d{"+r+"})*)"}),!0)}const f=(e,t,n)=>{if(!Array.isArray(e))return t(e);const r=[];for(let l=0;l<e.length;l++)r.push(t(e[l]));return g(r.join("|"),Boolean(n))},g=(e,t)=>"("+(t?"?:":"")+e+")";export{c as _parseInfo,l as format,r as getCustoms,p as parse,a as regexp};
5
+ import{escapeRegExpString as e}from"./string.js";import{getLocale as t}from"../intl/locale.js";const n={ar:[".",","],bg:[","," "],bs:[",","."],ca:[",","."],cs:[","," "],da:[",","."],de:[",","."],"de-ch":[".","’"],el:[",","."],en:[".",","],"en-au":[".",","],es:[",","."],"es-mx":[".",","],et:[","," "],fi:[","," "],fr:[","," "],"fr-ch":[","," "],he:[".",","],hi:[".",",","#,##,##0.###"],hr:[",","."],hu:[","," "],id:[",","."],it:[",","."],"it-ch":[".","’"],ja:[".",","],ko:[".",","],lt:[","," "],lv:[","," "],mk:[",","."],nb:[","," "],nl:[",","."],no:[","," "],pl:[","," "],pt:[",","."],"pt-pt":[","," "],ro:[",","."],ru:[","," "],sk:[","," "],sl:[",","."],sr:[",","."],sv:[","," "],th:[".",","],tr:[",","."],uk:[","," "],vi:[",","."],zh:[".",","]};function r(e=t()){let r=(e=e.toLowerCase())in n;if(!r){const t=e.split("-");t.length>1&&t[0]in n&&(e=t[0],r=!0),r||(e="en")}const[l,s,o="#,##0.###"]=n[e];return{decimal:l,group:s,pattern:o}}function l(e,t){const n=r((t={...t}).locale);t.customs=n;const l=t.pattern||n.pattern;return isNaN(e)||Math.abs(e)===1/0?null:o(e,l,t)}const s=/[#0,]*[#0](?:\.0*#*)?/;function o(e,t,n){const r=(n=n||{}).customs.group,l=n.customs.decimal,o=t.split(";"),a=o[0];if((t=o[e<0?1:0]||"-"+a).includes("%"))e*=100;else if(t.includes("‰"))e*=1e3;else{if(t.includes("¤"))throw new Error("currency notation not supported");if(t.includes("E"))throw new Error("exponential notation not supported")}const c=s,p=a.match(c);if(!p)throw new Error("unable to find a number expression in pattern: "+t);return!1===n.fractional&&(n.places=0),t.replace(c,i(e,p[0],{decimal:l,group:r,places:n.places,round:n.round}))}function i(e,t,n){!0===(n=n||{}).places&&(n.places=0),n.places===1/0&&(n.places=6);const r=t.split("."),l="string"==typeof n.places&&n.places.indexOf(",");let s=n.places;l?s=n.places.slice(l+1):+s>=0||(s=(r[1]||[]).length),n.round<0||(e=Number(e.toFixed(Number(s))));const o=String(Math.abs(e)).split("."),i=o[1]||"";if(r[1]||n.places){l&&(n.places=n.places.slice(0,Math.max(0,l)));const e=void 0!==n.places?n.places:r[1]&&r[1].lastIndexOf("0")+1;+e>i.length&&(o[1]=i.padEnd(Number(e),"0")),+s<i.length&&(o[1]=i.slice(0,Math.max(0,Number(s))))}else o[1]&&o.pop();const a=r[0].replace(",","");let c=a.indexOf("0");-1!==c&&(c=a.length-c,c>o[0].length&&(o[0]=o[0].padStart(c,"0")),a.includes("#")||(o[0]=o[0].slice(-c)));let p,u,d=r[0].lastIndexOf(",");if(-1!==d){p=r[0].length-d-1;const e=r[0].slice(0,d);d=e.lastIndexOf(","),-1!==d&&(u=e.length-d-1)}const f=[];for(let g=o[0];g;){const e=g.length-p;f.push(e>0?g.slice(Math.max(0,e)):g),g=e>0?g.slice(0,e):"",u&&(p=u,u=void 0)}return o[0]=f.reverse().join(n.group||","),o.join(n.decimal||".")}function a(e){return c(e).regexp}function c(t){const n=r((t=t||{}).locale),l=t.pattern||n.pattern,o=n.group,i=n.decimal;let a=1;if(l.includes("%"))a/=100;else if(l.includes("‰"))a/=1e3;else if(l.includes("¤"))throw new Error("currency notation not supported");const c=l.split(";");1===c.length&&c.push("-"+c[0]);const p=f(c,(n=>(n="(?:"+e(n,".")+")").replace(s,(e=>{const n={signed:!1,separator:t.strict?o:[o,""],fractional:t.fractional,decimal:i,exponent:!1},r=e.split(".");let l=t.places;1===r.length&&1!==a&&(r[1]="###"),1===r.length||0===l?n.fractional=!1:(void 0===l&&(l=t.pattern?r[1].lastIndexOf("0")+1:1/0),l&&null==t.fractional&&(n.fractional=!0),!t.places&&+l<r[1].length&&(l+=","+r[1].length),n.places=l);const s=r[0].split(",");return s.length>1&&(n.groupSize=s.pop().length,s.length>1&&(n.groupSize2=s.pop().length)),"("+u(n)+")"}))),!0);return{regexp:p.replaceAll(/[\xa0 ]/g,"[\\s\\xa0]"),group:o,decimal:i,factor:a}}function p(e,t){const n=c(t),r=new RegExp("^"+n.regexp+"$").exec(e);if(!r)return NaN;let l=r[1];if(!r[1]){if(!r[2])return NaN;l=r[2],n.factor*=-1}return l=l.replaceAll(new RegExp("["+n.group+"\\s\\xa0]","g"),"").replace(n.decimal,"."),Number(l)*n.factor}function u(e){"places"in(e=e||{})||(e.places=1/0),"string"!=typeof e.decimal&&(e.decimal="."),"fractional"in e&&!String(e.places).startsWith("0")||(e.fractional=[!0,!1]),"exponent"in e||(e.exponent=[!0,!1]),"eSigned"in e||(e.eSigned=[!0,!1]);const t=d(e),n=f(e.fractional,(t=>{let n="";return t&&0!==e.places&&(n="\\"+e.decimal,e.places===1/0?n="(?:"+n+"\\d+)?":n+="\\d{"+e.places+"}"),n}),!0);let r=t+n;return n&&(r="(?:(?:"+r+")|(?:"+n+"))"),r+f(e.exponent,(t=>t?"([eE]"+d({signed:e.eSigned})+")":""))}function d(t){"signed"in(t=t||{})||(t.signed=[!0,!1]),"separator"in t?"groupSize"in t||(t.groupSize=3):t.separator="";return f(t.signed,(e=>e?"[-+]":""),!0)+f(t.separator,(n=>{if(!n)return"(?:\\d+)";" "===(n=e(n))?n="\\s":" "===n&&(n="\\s\\xa0");const r=t.groupSize,l=t.groupSize2;if(l){const e="(?:0|[1-9]\\d{0,"+(l-1)+"}(?:["+n+"]\\d{"+l+"})*["+n+"]\\d{"+r+"})";return r-l>0?"(?:"+e+"|(?:0|[1-9]\\d{0,"+(r-1)+"}))":e}return"(?:0|[1-9]\\d{0,"+(r-1)+"}(?:["+n+"]\\d{"+r+"})*)"}),!0)}const f=(e,t,n)=>{if(!Array.isArray(e))return t(e);const r=[];for(let l=0;l<e.length;l++)r.push(t(e[l]));return g(r.join("|"),Boolean(n))},g=(e,t)=>"("+(t?"?:":"")+e+")";export{c as _parseInfo,l as format,r as getCustoms,p as parse,a as regexp};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{isSome as r}from"../../core/arrayUtils.js";import{execute as t,executeMany as o}from"./gx/operatorAffineTransform.js";import{getSpatialReference as n,toGeometry as e,fromGeometry as a}from"./support/apiConverter.js";function f(r,o){const f=n(r);return e(t(a(r),o.transform),f)}function s(t,f){const s=t.map(a),m=n(t);return o(s,f.transform).map((r=>e(r,m))).filter(r)}function m(){return!0}export{f as execute,s as executeMany,m as supportsCurves};
5
+ import{isSome as r}from"../../core/arrayUtils.js";import{supportsCurves as o,execute as t,executeMany as s}from"./gx/operatorAffineTransform.js";import{getSpatialReference as e,toGeometry as n,fromGeometry as a}from"./support/apiConverter.js";function p(r,o){const s=e(r);return n(t(a(r),o.transform),s)}function f(o,t){const p=o.map(a),f=e(o);return s(p,t.transform).map((r=>n(r,f))).filter(r)}const m=o();export{p as execute,f as executeMany,m as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{execute as e,executeMany as r,supportsCurves as t}from"./gx/operatorAlphaShape.js";import{getSpatialReference as a,toPolygon as p,fromGeometry as o}from"./support/apiConverter.js";function n(r,t){const n=a(r),u=[0];return{alphaShape:p(e(o(r),t,u),n),calculatedAlpha:u[0]}}function u(e,t,n={}){const{merge:u=!1}=n,s=e.map(o),c=a(e);return r(s,t,u).map((e=>p(e,c)))}function s(){return t()}export{n as execute,u as executeMany,s as supportsCurves};
5
+ import{supportsCurves as e,execute as r,executeMany as t}from"./gx/operatorAlphaShape.js";import{getSpatialReference as a,toPolygon as p,fromGeometry as o}from"./support/apiConverter.js";function s(e,t){const s=a(e),n=[0];return{alphaShape:p(r(o(e),t,n),s),calculatedAlpha:n[0]}}function n(e,r,s={}){const{merge:n=!1}=s,u=e.map(o),c=a(e);return t(u,r,n).map((e=>p(e,c)))}const u=e();export{s as execute,n as executeMany,u as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{areaUnitFromSpatialReference as r,convertUnit as t,getMetersPerUnitForSR as n}from"../../core/unitUtils.js";import{fromGeometry as o,getSpatialReference as e}from"./support/apiConverter.js";function a(a,i={}){const{unit:u}=i;let s=o(a).calculateArea2D();if(s&&u){const o=e(a);if(o.isGeographic)throw new Error("Unable to convert from an angular area unit to a linear area unit.");const i=r(o);i!==u&&(i?s=t(s,i,u):(s=Math.sqrt(s),s*=n(o),s**=2,s=t(s,"square-meters",u)))}return s}function i(){return!0}export{a as execute,i as supportsCurves};
5
+ import{areaUnitFromSpatialReference as r,convertUnit as t,getMetersPerUnitForSR as o}from"../../core/unitUtils.js";import{fromGeometry as e,getSpatialReference as n}from"./support/apiConverter.js";function a(a,i={}){const{unit:s}=i;let c=e(a).calculateArea2D();if(c&&s){const e=n(a);if(e.isGeographic)throw new Error("Unable to convert from an angular area unit to a linear area unit.");const i=r(e);i!==s&&(i?c=t(c,i,s):(c=Math.sqrt(c),c*=o(e),c**=2,c=t(c,"square-meters",s)))}return c}const i=!0;export{a as execute,i as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{isSome as r}from"../../core/arrayUtils.js";import{execute as o,supportsCurves as t}from"./gx/operatorAutoComplete.js";import{getSpatialReference as e,fromSpatialReference as p,fromPolyline as s,fromPolygon as m,toPolygon as a}from"./support/apiConverter.js";function u(t,u){const i=e(t);return o(t.map(m),u.map(s),p(i)).map((r=>a(r,i))).filter(r)}function i(){return t()}export{u as execute,i as supportsCurves};
5
+ import{isSome as r}from"../../core/arrayUtils.js";import{supportsCurves as o,execute as t}from"./gx/operatorAutoComplete.js";import{getSpatialReference as p,fromSpatialReference as e,fromPolyline as s,fromPolygon as m,toPolygon as a}from"./support/apiConverter.js";function i(o,i){const u=p(o);return t(o.map(m),i.map(s),e(u)).map((r=>a(r,u))).filter(r)}const u=o();export{i as execute,u as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{execute as r,executeMany as t,supportsCurves as o}from"./gx/operatorBoundary.js";import{getSpatialReference as e,toGeometry as n,fromGeometry as u}from"./support/apiConverter.js";function p(t){const o=e(t);return n(r(u(t)),o)}function s(r){const o=r.map(u),p=e(r);return t(o).map((r=>n(r,p)))}function a(){return o()}export{p as execute,s as executeMany,a as supportsCurves};
5
+ import{supportsCurves as r,execute as o,executeMany as t}from"./gx/operatorBoundary.js";import{getSpatialReference as e,toGeometry as n,fromGeometry as s}from"./support/apiConverter.js";function p(r){const t=e(r);return n(o(s(r)),t)}function u(r){const o=r.map(s),p=e(r);return t(o).map((r=>n(r,p)))}const a=r();export{p as execute,u as executeMany,a as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{isSome as r}from"../../core/arrayUtils.js";import{convertToSpatialReferenceUnit as t}from"../../core/unitUtils.js";import{execute as o,executeManyEx as e,supportsCurves as n}from"./gx/operatorBuffer.js";import{getSpatialReference as i,toGeometry as s,fromSpatialReference as u,fromGeometry as p}from"./support/apiConverter.js";function a(r,e,n={}){const{unit:a}=n,m=i(r);return a&&(e=t(e,a,m)),s(o(p(r),u(m),e),m)}function m(o,n,a={}){let{maxDeviation:m=NaN,maxVerticesInFullCircle:c=96,union:f=!1,unit:l}=a;const x=i(o);l&&(n=n.map((r=>t(r,l,x))),m&&(m=t(m,l,x)));const j=o.map(p);return e(j,u(x),n,m,c,f).map((r=>s(r,x))).filter(r)}function c(){return n()}export{a as execute,m as executeMany,c as supportsCurves};
5
+ import{isSome as r}from"../../core/arrayUtils.js";import{convertToSpatialReferenceUnit as t}from"../../core/unitUtils.js";import{supportsCurves as o,execute as e,executeManyEx as i}from"./gx/operatorBuffer.js";import{getSpatialReference as n,toGeometry as s,fromSpatialReference as p,fromGeometry as u}from"./support/apiConverter.js";function a(r,o,i={}){const{unit:a}=i,m=n(r);return a&&(o=t(o,a,m)),s(e(u(r),p(m),o),m)}function m(o,e,a={}){let{maxDeviation:m=NaN,maxVerticesInFullCircle:c=96,union:f=!1,unit:l}=a;const x=n(o);l&&(e=e.map((r=>t(r,l,x))),m&&(m=t(m,l,x)));const j=o.map(u);return i(j,p(x),e,m,c,f).map((r=>s(r,x))).filter(r)}const c=o();export{a as execute,m as executeMany,c as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{c as e}from"../../chunks/Centroid-DZi-eb9F.js";import{fromGeometry as r,toPoint as t,getSpatialReference as n}from"./support/apiConverter.js";class u{getOperatorType(){return 10205}accelerateGeometry(e,r,t){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}execute(r,t){return e(r)}}const o=new u;function s(e){const u=o.execute(r(e),null);return t(u,n(e))}function c(){return o.supportsCurves()}export{s as execute,c as supportsCurves};
5
+ import{c as e}from"../../chunks/Centroid-DZi-eb9F.js";import{fromGeometry as r,toPoint as t,getSpatialReference as n}from"./support/apiConverter.js";class o{getOperatorType(){return 10205}accelerateGeometry(e,r,t){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}execute(r,t){return e(r)}}const s=new o;function u(e){const o=s.execute(r(e),null);return t(o,n(e))}const c=s.supportsCurves();export{u as execute,c as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{execute as e,executeMany as r,supportsCurves as o}from"./gx/operatorClip.js";import{getSpatialReference as t,fromExtent as n,toGeometry as p,fromSpatialReference as s,fromGeometry as u}from"./support/apiConverter.js";function a(r,o){const a=t(r),c=n(o).asEnvelope2D();return p(e(u(r),c,s(a)),a)}function c(e,o){const a=e.map(u),c=t(e),i=n(o).asEnvelope2D();return r(a,i,s(c)).map((e=>p(e,c)))}function i(){return o()}export{a as execute,c as executeMany,i as supportsCurves};
5
+ import{supportsCurves as e,execute as o,executeMany as r}from"./gx/operatorClip.js";import{getSpatialReference as t,fromExtent as p,toGeometry as s,fromSpatialReference as n,fromGeometry as a}from"./support/apiConverter.js";function u(e,r){const u=t(e),c=p(r).asEnvelope2D();return s(o(a(e),c,n(u)),u)}function c(e,o){const u=e.map(a),c=t(e),i=p(o).asEnvelope2D();return r(u,i,n(c)).map((e=>s(e,c)))}const i=e();export{u as execute,c as executeMany,i as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{O as e}from"../../chunks/OperatorProject.js";import{getSpatialReference as r,fromGeometry as t,fromSpatialReference as n}from"./support/apiConverter.js";const o=new e;function u(e){const u=r(e);return o.accelerateGeometry(t(e),n(u),1)}function c(e,r){return o.execute(t(e),t(r),n(e.spatialReference),null)}function s(){return o.supportsCurves()}export{u as accelerateGeometry,c as execute,s as supportsCurves};
5
+ import{O as e}from"../../chunks/OperatorProject.js";import{getSpatialReference as r,fromGeometry as t,fromSpatialReference as o}from"./support/apiConverter.js";const n=new e;function s(e){const s=r(e);return n.accelerateGeometry(t(e),o(s),1)}function c(e,r){return n.execute(t(e),t(r),o(e.spatialReference),null)}const p=n.supportsCurves();export{s as accelerateGeometry,c as execute,p as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{execute as r,executeMany as e,isConvex as t,supportsCurves as n}from"./gx/operatorConvexHull.js";import{getSpatialReference as o,toGeometry as u,fromGeometry as s}from"./support/apiConverter.js";function p(e){const t=o(e);return u(r(s(e)),t)}function a(r,t={}){const{merge:n=!1}=t,p=r.map(s),a=o(r);return e(p,n).map((r=>u(r,a)))}function c(r){return t(s(r))}function i(){return n()}export{p as execute,a as executeMany,c as isConvex,i as supportsCurves};
5
+ import{supportsCurves as r,execute as e,executeMany as o,isConvex as t}from"./gx/operatorConvexHull.js";import{getSpatialReference as n,toGeometry as s,fromGeometry as u}from"./support/apiConverter.js";function p(r){const o=n(r);return s(e(u(r)),o)}function a(r,e={}){const{merge:t=!1}=e,p=r.map(u),a=n(r);return o(p,t).map((r=>s(r,a)))}function c(r){return t(u(r))}const i=r();export{p as execute,a as executeMany,c as isConvex,i as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{O as e}from"../../chunks/OperatorCrosses.js";import{getSpatialReference as r,fromGeometry as t,fromSpatialReference as n}from"./support/apiConverter.js";const o=new e;function s(e){const s=r(e);return o.accelerateGeometry(t(e),n(s),1)}function u(e,r){return o.execute(t(e),t(r),n(e.spatialReference),null)}function c(){return o.supportsCurves()}export{s as accelerateGeometry,u as execute,c as supportsCurves};
5
+ import{O as e}from"../../chunks/OperatorCrosses.js";import{getSpatialReference as r,fromGeometry as t,fromSpatialReference as o}from"./support/apiConverter.js";const s=new e;function n(e){const n=r(e);return s.accelerateGeometry(t(e),o(n),1)}function c(e,r){return s.execute(t(e),t(r),o(e.spatialReference),null)}const p=s.supportsCurves();export{n as accelerateGeometry,c as execute,p as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{isSome as r}from"../../core/arrayUtils.js";import{execute as t,supportsCurves as o}from"./gx/operatorCut.js";import{getSpatialReference as e,fromSpatialReference as p,fromPolyline as s,fromGeometry as u,toGeometry as i}from"./support/apiConverter.js";function n(o,n){const a=e(o);return t(u(o),s(n),p(a)).map((r=>i(r,a))).filter(r)}function a(){return o()}export{n as execute,a as supportsCurves};
5
+ import{isSome as r}from"../../core/arrayUtils.js";import{supportsCurves as o,execute as t}from"./gx/operatorCut.js";import{getSpatialReference as s,fromSpatialReference as e,fromPolyline as p,fromGeometry as a,toGeometry as i}from"./support/apiConverter.js";function m(o,m){const u=s(o);return t(a(o),p(m),e(u)).map((r=>i(r,u))).filter(r)}const u=o();export{m as execute,u as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{isSome as r}from"../../core/arrayUtils.js";import{deg2rad as t}from"../../core/mathUtils.js";import{convertToSpatialReferenceUnit as e}from"../../core/unitUtils.js";import{execute as o,executeMany as n,supportsCurves as i}from"./gx/operatorDensify.js";import{getSpatialReference as s,toGeometry as a,fromGeometry as m}from"./support/apiConverter.js";function p(r,n,i={}){let{maxAngleInDegrees:p=0,maxDeviation:u=0,unit:c}=i;const f=s(r);return c&&(n=e(n,c,f),u&&(u=e(u,c,f))),a(o(m(r),n,u,t(p)),f)}function u(o,i,p={}){let{maxAngleInDegrees:u=0,maxDeviation:c=0,unit:f}=p;const l=o.map(m),x=s(o);return f&&(i=e(i,f,x),c&&(c=e(c,f,x))),n(l,i,c,t(u)).map((r=>a(r,x))).filter(r)}function c(){return i()}export{p as execute,u as executeMany,c as supportsCurves};
5
+ import{isSome as t}from"../../core/arrayUtils.js";import{deg2rad as e}from"../../core/mathUtils.js";import{convertToSpatialReferenceUnit as r}from"../../core/unitUtils.js";import{supportsCurves as o,execute as n,executeMany as s}from"./gx/operatorDensify.js";import{getSpatialReference as i,toGeometry as a,fromGeometry as m}from"./support/apiConverter.js";function p(t,o,s={}){let{maxAngleInDegrees:p=0,maxDeviation:u=0,unit:c}=s;const f=i(t);return c&&(o=r(o,c,f),u&&(u=r(u,c,f))),a(n(m(t),o,u,e(p)),f)}function u(o,n,p={}){let{maxAngleInDegrees:u=0,maxDeviation:c=0,unit:f}=p;const l=o.map(m),x=i(o);return f&&(n=r(n,f,x),c&&(c=r(c,f,x))),s(l,n,c,e(u)).map((t=>a(t,x))).filter(t)}const c=o();export{p as execute,u as executeMany,c as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{execute as r,executeMany as e,supportsCurves as t}from"./gx/operatorDifference.js";import{getSpatialReference as o,toGeometry as n,fromSpatialReference as p,fromGeometry as s}from"./support/apiConverter.js";function u(e,t){const u=o(e);return n(r(s(e),s(t),p(u)),u)}function a(r,t){const u=r.map(s),a=o(r);return e(u,s(t),p(a)).map((r=>n(r,a)))}function c(){return t()}export{u as execute,a as executeMany,c as supportsCurves};
5
+ import{supportsCurves as r,execute as e,executeMany as t}from"./gx/operatorDifference.js";import{getSpatialReference as o,toGeometry as n,fromSpatialReference as s,fromGeometry as p}from"./support/apiConverter.js";function u(r,t){const u=o(r);return n(e(p(r),p(t),s(u)),u)}function a(r,e){const u=r.map(p),a=o(r);return t(u,p(e),s(a)).map((r=>n(r,a)))}const c=r();export{u as execute,a as executeMany,c as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{d as e}from"../../chunks/OperatorProject.js";import{getSpatialReference as r,fromGeometry as t,fromSpatialReference as o}from"./support/apiConverter.js";const n=new e;function c(e){const c=r(e);return n.accelerateGeometry(t(e),o(c),1)}function s(e,r){return n.execute(t(e),t(r),o(e.spatialReference))}function u(){return n.supportsCurves()}export{c as accelerateGeometry,s as execute,u as supportsCurves};
5
+ import{d as e}from"../../chunks/OperatorProject.js";import{getSpatialReference as r,fromGeometry as t,fromSpatialReference as o}from"./support/apiConverter.js";const n=new e;function s(e){const s=r(e);return n.accelerateGeometry(t(e),o(s),1)}function c(e,r){return n.execute(t(e),t(r),o(e.spatialReference))}const p=n.supportsCurves();export{s as accelerateGeometry,c as execute,p as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{b as e}from"../../chunks/Geometry.js";import{D as r}from"../../chunks/Distance2DCalculator-eS0piaux.js";import{convertFromSpatialReferenceUnit as t}from"../../core/unitUtils.js";import{fromGeometry as u,getSpatialReference as n}from"./support/apiConverter.js";class s{getOperatorType(){return 10100}supportsCurves(){return!0}accelerateGeometry(e,r,t){return!1}canAccelerateGeometry(e){return!1}execute(e,r,t){return this.executeEx(e,r,t,null,null,Number.NaN)}executeEx(t,u,n,s,o,c){if(t.isEmpty()||u.isEmpty())return Number.NaN;e(t),e(u);const i=t,a=u;Number.isNaN(c)&&(c=Number.POSITIVE_INFINITY);const m=new r(c,n).calculate(i,a,s,o);return Number.isFinite(m)?m:Number.NaN}}const o=new s;function c(e,r,s={}){const{unit:c}=s;let i=o.execute(u(e),u(r),null);if(i&&c){const r=n(e);i=t(i,r,c)}return i}function i(){return o.supportsCurves()}export{c as execute,i as supportsCurves};
5
+ import{b as e}from"../../chunks/Geometry.js";import{D as r}from"../../chunks/Distance2DCalculator-eS0piaux.js";import{convertFromSpatialReferenceUnit as t}from"../../core/unitUtils.js";import{fromGeometry as u,getSpatialReference as s}from"./support/apiConverter.js";class n{getOperatorType(){return 10100}supportsCurves(){return!0}accelerateGeometry(e,r,t){return!1}canAccelerateGeometry(e){return!1}execute(e,r,t){return this.executeEx(e,r,t,null,null,Number.NaN)}executeEx(t,u,s,n,o,c){if(t.isEmpty()||u.isEmpty())return Number.NaN;e(t),e(u);const i=t,a=u;Number.isNaN(c)&&(c=Number.POSITIVE_INFINITY);const m=new r(c,s).calculate(i,a,n,o);return Number.isFinite(m)?m:Number.NaN}}const o=new n;function c(e,r,n={}){const{unit:c}=n;let i=o.execute(u(e),u(r),null);if(i&&c){const r=s(e);i=t(i,r,c)}return i}const i=o.supportsCurves();export{c as execute,i as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{b as e,r}from"../../chunks/OperatorProject.js";import{getSpatialReference as t,fromGeometry as n,fromSpatialReference as o}from"./support/apiConverter.js";class s extends e{getOperatorType(){return 2}execute(e,t,n,o){return r(e,t,n,3,o)}}const u=new s;function c(e){const r=t(e);return u.accelerateGeometry(n(e),o(r),1)}function p(e,r){return u.execute(n(e),n(r),o(e.spatialReference),null)}function a(){return u.supportsCurves()}export{c as accelerateGeometry,p as execute,a as supportsCurves};
5
+ import{b as e,r}from"../../chunks/OperatorProject.js";import{getSpatialReference as t,fromGeometry as n,fromSpatialReference as o}from"./support/apiConverter.js";class s extends e{getOperatorType(){return 2}execute(e,t,n,o){return r(e,t,n,3,o)}}const c=new s;function u(e){const r=t(e);return c.accelerateGeometry(n(e),o(r),1)}function p(e,r){return c.execute(n(e),n(r),o(e.spatialReference),null)}const a=c.supportsCurves();export{u as accelerateGeometry,p as execute,a as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{t as e,p as t,G as n,k as r}from"../../chunks/Geometry.js";import{a as o,c as s,S as a,P as i,$ as g,A as u,B as m}from"../../chunks/QuadraticBezier.js";import{getSpatialReference as c,fromPolyline as l,fromSpatialReference as d,toPolyline as p}from"./support/apiConverter.js";function h(t,n,r,a,i){if(t.isEmpty()||n.isEmpty())return null;if(8&a&&16&a)return null;2&a&&4&a&&e("");const g=new o,u=new o;t.queryEnvelope(g),n.queryEnvelope(u),g.mergeEnvelope2D(u);return f(t,n,s(r,g,!0).total(),a)}function f(e,o,s,u){t(e),t(o);let m,c=!1;const l=e.querySegmentIterator(),d=o.querySegmentIterator();let p=0;const h=new a,f=new i({vd:e.getDescription()}),P=new i({vd:e.getDescription()}),S=[],x=[];for(y(e,S,x);l.nextPath();){let t=!0,o=0;for(;2!==o;){if(0===o){l.nextSegment().getGeometryType()!==n.enumLine&&r(""),o++}else{l.resetToLastSegment();if(l.previousSegment().getGeometryType()!==n.enumLine&&r(""),c&&t){const n=l.getPathIndex();m.addSegmentsFromPath(e,n,0,e.getSegmentCountPath(n),!0),t=!1}o++}let a=!1;if(p<x.length){const e=x[S[p]],t=l.getPathIndex();if(e.m_path===t){const t=1===o?l.getStartPointIndex():l.getEndPointIndex();e.m_pointIndex===t&&(a=!0,p++)}}if(1===o){if(8&u)continue}else if(16&u)continue;if(!a){1===o?l.previousSegment():l.nextSegment();const a=1===o?l.nextSegment():l.previousSegment(),i=a,p=i.calculateLength2D();d.resetToFirstPath();let y=!1,S=Number.NaN;for(;d.nextPath();){for(;d.hasNextSegment();){const e=d.nextSegment();e.getGeometryType()!==n.enumLine&&r("");const t=e,{bIntersect:a,t1:u,t2:m}=g(i,t);if(a){const e=t.calculateLength2D();if(m*e>=-s&&(1-m)*e>=-s)if(1===o){if(u*p<=-s)(Number.isNaN(S)||u>S)&&(S=u);else if(u*p<=s){S=Number.NaN,y=!0;break}}else if((1-u)*p<=-s)(Number.isNaN(S)||u<S)&&(S=u);else if((1-u)*p<=s){S=Number.NaN,y=!0;break}}}if(y)break}if(!Number.isNaN(S)){if(!c){m=e.createInstance();for(let t=0;t<l.getPathIndex();t++)m.addPath(e,t,!0)}if(1===o){a.queryCoord(S,f);const n=l.getPathIndex();if(2&u?e.getPointByVal(e.getPathStart(n),P):4&u&&P.setEmpty(),1&u||(h.create(a.getGeometryType()),a.copyTo(h.get()),h.get().setEnd(f),h.get().reverse(),m.addSegment(h.get(),!0),t=!1),m.addSegmentsFromPath(e,n,0,e.getSegmentCountPath(n),t),1&u){const e=m.getPathStart(n);m.setPointByVal(e,f)}if(2&u||4&u){const e=m.getPathStart(n),t=f.getXY();P.setXY(t),m.setPointByVal(e,P)}c=!0,t=!1}else{const n=l.getPathIndex();if(t&&(m.addSegmentsFromPath(e,n,0,e.getSegmentCountPath(n),!0),t=!1),2&u?e.getPointByVal(e.getPathEnd(n)-1,P):4&u&&P.setEmpty(),a.queryCoord(S,f),1&u){const e=m.getPathEnd(n);m.setPointByVal(e-1,f)}else h.create(a.getGeometryType()),a.copyTo(h.get()),h.get().setEnd(f),m.addSegment(h.get(),!1);if(2&u||4&u){const e=m.getPathEnd(n),t=f.getXY();P.setXY(t),m.setPointByVal(e-1,P)}c=!0}}}}}return c?m:null}function P(e,t){return{m_path:e,m_pointIndex:t}}function y(e,t,n){const r=[],o=[],s=e.querySegmentIterator();for(;s.nextPath();){s.resetToFirstSegment();const e=s.nextSegment().getStartXY(),t=s.getPathIndex(),n=s.getStartPointIndex();r.push(e),o.push(P(t,n)),s.resetToLastSegment();const a=s.previousSegment().getEndXY(),i=s.getPathIndex(),g=s.getEndPointIndex();r.push(a),o.push(P(i,g))}const a=new u(0);for(let g=0;g<r.length;g++)a.add(g);const i={userSort(e,t,n){n.sort(e,t,((e,t)=>r[e].compare(r[t])))},getValue:e=>r[e].y};(new m).sort(a,0,a.size(),i);for(let g=0;g<a.size()-1;g++){const e=r[a.read(g)];if(e.equals(r[a.read(g+1)])){do{const e=o[a.read(g)];n.push(e),g++}while(g<a.size()&&e.equals(r[a.read(g)]));g--}}t.length=n.length;for(let g=0;g<n.length;g++)t[g]=g;t.sort(((e,t)=>{const r=n[e],o=n[t];return r.m_path<o.m_path?-1:r.m_path>o.m_path?1:r.m_pointIndex<o.m_pointIndex?-1:1}))}class S{getOperatorType(){return 10007}supportsCurves(){return!1}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}execute(e,t,n,r,o){return h(e,t,n,r)}}const x=new S;function E(e,t,n){let r=0;n&&(n.relocateEnds&&(r|=1),n.keepEndAttributes&&(r|=2),n.noEndAttributes&&(r|=4),n.noExtendAtFrom&&(r|=8),n.noExtendAtTo&&(r|=16));const o=c(e),s=x.execute(l(e),l(t),d(o),r,null);return s?p(s,o):null}function I(){return x.supportsCurves()}export{E as execute,I as supportsCurves};
5
+ import{t as e,p as t,G as n,k as r}from"../../chunks/Geometry.js";import{a as o,c as s,S as a,P as i,$ as g,A as u,B as m}from"../../chunks/QuadraticBezier.js";import{getSpatialReference as c,fromPolyline as l,fromSpatialReference as d,toPolyline as p}from"./support/apiConverter.js";function h(t,n,r,a,i){if(t.isEmpty()||n.isEmpty())return null;if(8&a&&16&a)return null;2&a&&4&a&&e("");const g=new o,u=new o;t.queryEnvelope(g),n.queryEnvelope(u),g.mergeEnvelope2D(u);return f(t,n,s(r,g,!0).total(),a)}function f(e,o,s,u){t(e),t(o);let m,c=!1;const l=e.querySegmentIterator(),d=o.querySegmentIterator();let p=0;const h=new a,f=new i({vd:e.getDescription()}),P=new i({vd:e.getDescription()}),S=[],x=[];for(y(e,S,x);l.nextPath();){let t=!0,o=0;for(;2!==o;){if(0===o){l.nextSegment().getGeometryType()!==n.enumLine&&r(""),o++}else{l.resetToLastSegment();if(l.previousSegment().getGeometryType()!==n.enumLine&&r(""),c&&t){const n=l.getPathIndex();m.addSegmentsFromPath(e,n,0,e.getSegmentCountPath(n),!0),t=!1}o++}let a=!1;if(p<x.length){const e=x[S[p]],t=l.getPathIndex();if(e.m_path===t){const t=1===o?l.getStartPointIndex():l.getEndPointIndex();e.m_pointIndex===t&&(a=!0,p++)}}if(1===o){if(8&u)continue}else if(16&u)continue;if(!a){1===o?l.previousSegment():l.nextSegment();const a=1===o?l.nextSegment():l.previousSegment(),i=a,p=i.calculateLength2D();d.resetToFirstPath();let y=!1,S=Number.NaN;for(;d.nextPath();){for(;d.hasNextSegment();){const e=d.nextSegment();e.getGeometryType()!==n.enumLine&&r("");const t=e,{bIntersect:a,t1:u,t2:m}=g(i,t);if(a){const e=t.calculateLength2D();if(m*e>=-s&&(1-m)*e>=-s)if(1===o){if(u*p<=-s)(Number.isNaN(S)||u>S)&&(S=u);else if(u*p<=s){S=Number.NaN,y=!0;break}}else if((1-u)*p<=-s)(Number.isNaN(S)||u<S)&&(S=u);else if((1-u)*p<=s){S=Number.NaN,y=!0;break}}}if(y)break}if(!Number.isNaN(S)){if(!c){m=e.createInstance();for(let t=0;t<l.getPathIndex();t++)m.addPath(e,t,!0)}if(1===o){a.queryCoord(S,f);const n=l.getPathIndex();if(2&u?e.getPointByVal(e.getPathStart(n),P):4&u&&P.setEmpty(),1&u||(h.create(a.getGeometryType()),a.copyTo(h.get()),h.get().setEnd(f),h.get().reverse(),m.addSegment(h.get(),!0),t=!1),m.addSegmentsFromPath(e,n,0,e.getSegmentCountPath(n),t),1&u){const e=m.getPathStart(n);m.setPointByVal(e,f)}if(2&u||4&u){const e=m.getPathStart(n),t=f.getXY();P.setXY(t),m.setPointByVal(e,P)}c=!0,t=!1}else{const n=l.getPathIndex();if(t&&(m.addSegmentsFromPath(e,n,0,e.getSegmentCountPath(n),!0),t=!1),2&u?e.getPointByVal(e.getPathEnd(n)-1,P):4&u&&P.setEmpty(),a.queryCoord(S,f),1&u){const e=m.getPathEnd(n);m.setPointByVal(e-1,f)}else h.create(a.getGeometryType()),a.copyTo(h.get()),h.get().setEnd(f),m.addSegment(h.get(),!1);if(2&u||4&u){const e=m.getPathEnd(n),t=f.getXY();P.setXY(t),m.setPointByVal(e-1,P)}c=!0}}}}}return c?m:null}function P(e,t){return{m_path:e,m_pointIndex:t}}function y(e,t,n){const r=[],o=[],s=e.querySegmentIterator();for(;s.nextPath();){s.resetToFirstSegment();const e=s.nextSegment().getStartXY(),t=s.getPathIndex(),n=s.getStartPointIndex();r.push(e),o.push(P(t,n)),s.resetToLastSegment();const a=s.previousSegment().getEndXY(),i=s.getPathIndex(),g=s.getEndPointIndex();r.push(a),o.push(P(i,g))}const a=new u(0);for(let g=0;g<r.length;g++)a.add(g);const i={userSort(e,t,n){n.sort(e,t,((e,t)=>r[e].compare(r[t])))},getValue:e=>r[e].y};(new m).sort(a,0,a.size(),i);for(let g=0;g<a.size()-1;g++){const e=r[a.read(g)];if(e.equals(r[a.read(g+1)])){do{const e=o[a.read(g)];n.push(e),g++}while(g<a.size()&&e.equals(r[a.read(g)]));g--}}t.length=n.length;for(let g=0;g<n.length;g++)t[g]=g;t.sort(((e,t)=>{const r=n[e],o=n[t];return r.m_path<o.m_path?-1:r.m_path>o.m_path?1:r.m_pointIndex<o.m_pointIndex?-1:1}))}class S{getOperatorType(){return 10007}supportsCurves(){return!1}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}execute(e,t,n,r,o){return h(e,t,n,r)}}const x=new S;function E(e,t,n){let r=0;n&&(n.relocateEnds&&(r|=1),n.keepEndAttributes&&(r|=2),n.noEndAttributes&&(r|=4),n.noExtendAtFrom&&(r|=8),n.noExtendAtTo&&(r|=16));const o=c(e),s=x.execute(l(e),l(t),d(o),r,null);return s?p(s,o):null}const I=x.supportsCurves();export{E as execute,I as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{isSome as r}from"../../core/arrayUtils.js";import{convertToSpatialReferenceUnit as e}from"../../core/unitUtils.js";import{execute as t,executeMany as o,supportsCurves as n}from"./gx/operatorGeneralize.js";import{getSpatialReference as s,toGeometry as a,fromGeometry as i}from"./support/apiConverter.js";function u(r,o,n={}){const{removeDegenerateParts:u=!1,unit:p}=n,m=s(r);return p&&(o=e(o,p,m)),a(t(i(r),o,u),m)}function p(t,n,u={}){const{removeDegenerateParts:p=!1,unit:m}=u,c=t.map(i),f=s(t);return m&&(n=e(n,m,f)),o(c,n,p).map((r=>a(r,f))).filter(r)}function m(){return n()}export{u as execute,p as executeMany,m as supportsCurves};
5
+ import{isSome as r}from"../../core/arrayUtils.js";import{convertToSpatialReferenceUnit as e}from"../../core/unitUtils.js";import{supportsCurves as t,execute as o,executeMany as s}from"./gx/operatorGeneralize.js";import{getSpatialReference as n,toGeometry as a,fromGeometry as i}from"./support/apiConverter.js";function p(r,t,s={}){const{removeDegenerateParts:p=!1,unit:m}=s,u=n(r);return m&&(t=e(t,m,u)),a(o(i(r),t,p),u)}function m(t,o,p={}){const{removeDegenerateParts:m=!1,unit:u}=p,c=t.map(i),f=n(t);return u&&(o=e(o,u,f)),s(c,o,m).map((r=>a(r,f))).filter(r)}const u=t();export{p as execute,m as executeMany,u as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{isSome as e}from"../../core/arrayUtils.js";import{convertUnit as t}from"../../core/unitUtils.js";import{load as r,execute as o,executeMany as i,supportsCurves as s,isLoaded as a}from"./gx/operatorGeodesicBuffer.js";import{geodeticCurveType as n}from"./support/geodeticCurveType.js";let m,u,p,c;function f(){return!!m&&a()}async function l(){if(!f()){const[e]=await Promise.all([import("./support/apiConverter.js"),r()]);m=e.fromGeometry,u=e.fromSpatialReference,p=e.getSpatialReference,c=e.toGeometry}}function y(e,r,i={}){let{curveType:s="geodesic",maxDeviation:a=NaN,unit:f}=i;f&&(r=t(r,f,"meters"),a&&(a=t(a,f,"meters")));const l=p(e);return c(o(m(e),u(l),n[s],r,a),l)}function d(r,o,s={}){let{curveType:a="geodesic",maxDeviation:f=NaN,union:l=!1,unit:y}=s;y&&(o=o.map((e=>t(e,y,"meters"))),f&&(f=t(f,y,"meters")));const d=r.map(m),v=p(r);return i(d,u(v),n[a],o,f,l).map((e=>c(e,v))).filter(e)}function v(){return s()}export{y as execute,d as executeMany,f as isLoaded,l as load,v as supportsCurves};
5
+ import{isSome as e}from"../../core/arrayUtils.js";import{convertUnit as t}from"../../core/unitUtils.js";import{load as r,supportsCurves as o,execute as i,executeMany as s,isLoaded as a}from"./gx/operatorGeodesicBuffer.js";import{geodeticCurveType as n}from"./support/geodeticCurveType.js";let m,p,u,c,f;function l(){return!!m&&a()}async function y(){if(!l()){const[e]=await Promise.all([import("./support/apiConverter.js"),r()]);m=e.fromGeometry,p=e.fromSpatialReference,u=e.getSpatialReference,c=e.toGeometry,f=o()}}function d(e,r,o={}){let{curveType:s="geodesic",maxDeviation:a=NaN,unit:f}=o;f&&(r=t(r,f,"meters"),a&&(a=t(a,f,"meters")));const l=u(e);return c(i(m(e),p(l),n[s],r,a),l)}function v(r,o,i={}){let{curveType:a="geodesic",maxDeviation:f=NaN,union:l=!1,unit:y}=i;y&&(o=o.map((e=>t(e,y,"meters"))),f&&(f=t(f,y,"meters")));const d=r.map(m),v=u(r);return s(d,p(v),n[a],o,f,l).map((e=>c(e,v))).filter(e)}export{d as execute,v as executeMany,l as isLoaded,y as load,f as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{convertUnit as t}from"../../core/unitUtils.js";import{load as e,getNearestCoordinate as r,getNearestVertex as i,getNearestVertices as s,supportsCurves as n,isLoaded as o}from"./gx/operatorProximityGeodesic.js";let a,m,c,u,p;function d(){return!!a&&o()}async function f(){if(!d()){const[t,r]=await Promise.all([import("./support/apiConverter.js"),import("./support/proximityResult.js"),e()]);a=t.fromGeometry,m=t.fromPoint,c=t.fromSpatialReference,u=t.getSpatialReference,p=r.toProximityResult}}function l(e,i,s={}){let{calculateLeftRightSide:n=!1,maxDeviation:o=NaN,testPolygonInterior:d=!0,unit:f}=s;f&&o&&(o=t(o,f,"meters"));const l=u(e),g=r(a(e),m(i).getXY(),c(l),o,d,n);return f&&g.m_distance&&(g.m_distance=t(g.m_distance,"meters",f)),p(g,e,n)}function g(e,r,s={}){const{unit:n}=s,o=u(e),d=i(a(e),m(r).getXY(),c(o));return n&&d.m_distance&&(d.m_distance=t(d.m_distance,"meters",n)),p(d,e)}function _(e,r,i,n,o={}){const{unit:d}=o;d&&i&&(i=t(i,d,"meters"));const f=u(e);return s(a(e),m(r).getXY(),c(f),i,n).map((r=>(d&&r.m_distance&&(r.m_distance=t(r.m_distance,"meters",d)),p(r,e))))}function x(){return n()}export{l as getNearestCoordinate,g as getNearestVertex,_ as getNearestVertices,d as isLoaded,f as load,x as supportsCurves};
5
+ import{convertUnit as t}from"../../core/unitUtils.js";import{load as e,supportsCurves as r,getNearestCoordinate as s,getNearestVertex as i,getNearestVertices as o,isLoaded as n}from"./gx/operatorProximityGeodesic.js";let a,m,c,u,p,d;function f(){return!!a&&n()}async function l(){if(!f()){const[t,s]=await Promise.all([import("./support/apiConverter.js"),import("./support/proximityResult.js"),e()]);a=t.fromGeometry,m=t.fromPoint,c=t.fromSpatialReference,u=t.getSpatialReference,p=s.toProximityResult,d=r()}}function g(e,r,i={}){let{calculateLeftRightSide:o=!1,maxDeviation:n=NaN,testPolygonInterior:d=!0,unit:f}=i;f&&n&&(n=t(n,f,"meters"));const l=u(e),g=s(a(e),m(r).getXY(),c(l),n,d,o);return f&&g.m_distance&&(g.m_distance=t(g.m_distance,"meters",f)),p(g,e,o)}function _(e,r,s={}){const{unit:o}=s,n=u(e),d=i(a(e),m(r).getXY(),c(n));return o&&d.m_distance&&(d.m_distance=t(d.m_distance,"meters",o)),p(d,e)}function x(e,r,s,i,n={}){const{unit:d}=n;d&&s&&(s=t(s,d,"meters"));const f=u(e);return o(a(e),m(r).getXY(),c(f),s,i).map((r=>(d&&r.m_distance&&(r.m_distance=t(r.m_distance,"meters",d)),p(r,e))))}export{g as getNearestCoordinate,_ as getNearestVertex,x as getNearestVertices,f as isLoaded,l as load,d as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{convertUnit as e}from"../../core/unitUtils.js";import{load as r,execute as t,supportsCurves as o,isLoaded as s}from"./gx/operatorGeodeticArea.js";import{geodeticCurveType as i}from"./support/geodeticCurveType.js";let n,a,p;function u(){return!!n&&s()}async function c(){if(!u()){const[e]=await Promise.all([import("./support/apiConverter.js"),r()]);n=e.fromGeometry,a=e.fromSpatialReference,p=e.getSpatialReference}}function f(r,o={}){const{curveType:s="geodesic",unit:u}=o,c=p(r);let f=t(n(r),a(c),i[s]);return f&&u&&(f=e(f,"square-meters",u)),f}function m(){return o()}export{f as execute,u as isLoaded,c as load,m as supportsCurves};
5
+ import{convertUnit as e}from"../../core/unitUtils.js";import{load as r,supportsCurves as t,execute as o,isLoaded as s}from"./gx/operatorGeodeticArea.js";import{geodeticCurveType as i}from"./support/geodeticCurveType.js";let a,p,n,u;function c(){return!!a&&s()}async function m(){if(!c()){const[e]=await Promise.all([import("./support/apiConverter.js"),r()]);a=e.fromGeometry,p=e.fromSpatialReference,n=e.getSpatialReference,u=t()}}function f(r,t={}){const{curveType:s="geodesic",unit:u}=t,c=n(r);let m=o(a(r),p(c),i[s]);return m&&u&&(m=e(m,"square-meters",u)),m}export{f as execute,c as isLoaded,m as load,u as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{convertUnit as e}from"../../core/unitUtils.js";import{load as t,execute as o,executeMany as r,supportsCurves as n,isLoaded as s}from"./gx/operatorGeodeticDensify.js";import{geodeticCurveType as i}from"./support/geodeticCurveType.js";let c,u,a,p;function m(){return!!c&&s()}async function f(){if(!m()){const[e]=await Promise.all([import("./support/apiConverter.js"),t()]);c=e.fromGeometry,u=e.fromSpatialReference,a=e.getSpatialReference,p=e.toGeometry}}function y(t,r,n={}){const{curveType:s="geodesic",unit:m}=n;m&&(r=e(r,m,"meters"));const f=a(t);return p(o(c(t),r,u(f),i[s]),f)}function d(t,o,n={}){const{curveType:s="geodesic",unit:m}=n;m&&(o=e(o,m,"meters"));const f=t.map(c),y=a(t);return r(f,o,u(y),i[s]).map((e=>p(e,y)))}function l(){return n()}export{y as execute,d as executeMany,m as isLoaded,f as load,l as supportsCurves};
5
+ import{convertUnit as e}from"../../core/unitUtils.js";import{load as t,supportsCurves as o,execute as r,executeMany as s,isLoaded as n}from"./gx/operatorGeodeticDensify.js";import{geodeticCurveType as i}from"./support/geodeticCurveType.js";let c,a,p,u,m;function f(){return!!c&&n()}async function y(){if(!f()){const[e]=await Promise.all([import("./support/apiConverter.js"),t()]);c=e.fromGeometry,a=e.fromSpatialReference,p=e.getSpatialReference,u=e.toGeometry,m=o()}}function d(t,o,s={}){const{curveType:n="geodesic",unit:m}=s;m&&(o=e(o,m,"meters"));const f=p(t);return u(r(c(t),o,a(f),i[n]),f)}function l(t,o,r={}){const{curveType:n="geodesic",unit:m}=r;m&&(o=e(o,m,"meters"));const f=t.map(c),y=p(t);return s(f,o,a(y),i[n]).map((e=>u(e,y)))}export{d as execute,l as executeMany,f as isLoaded,y as load,m as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{convertUnit as e}from"../../core/unitUtils.js";import{load as t,execute as r,supportsCurves as o,isLoaded as i}from"./gx/operatorGeodeticDistance.js";import{geodeticCurveType as s}from"./support/geodeticCurveType.js";let n,a,p;function c(){return!!n&&i()}async function u(){if(!c()){const[e]=await Promise.all([import("./support/apiConverter.js"),t()]);n=e.fromGeometry,a=e.fromSpatialReference,p=e.getSpatialReference}}function f(t,o,i={}){const{curveType:c="geodesic",unit:u}=i,f=p(t);let m=r(n(t),n(o),a(f),s[c]);return m&&u&&(m=e(m,"meters",u)),m}function m(){return o()}export{f as execute,c as isLoaded,u as load,m as supportsCurves};
5
+ import{convertUnit as e}from"../../core/unitUtils.js";import{load as t,supportsCurves as r,execute as o,isLoaded as s}from"./gx/operatorGeodeticDistance.js";import{geodeticCurveType as i}from"./support/geodeticCurveType.js";let a,n,p,c;function u(){return!!a&&s()}async function m(){if(!u()){const[e]=await Promise.all([import("./support/apiConverter.js"),t()]);a=e.fromGeometry,n=e.fromSpatialReference,p=e.getSpatialReference,c=r()}}function f(t,r,s={}){const{curveType:c="geodesic",unit:u}=s,m=p(t);let f=o(a(t),a(r),n(m),i[c]);return f&&u&&(f=e(f,"meters",u)),f}export{f as execute,u as isLoaded,m as load,c as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{convertUnit as e}from"../../core/unitUtils.js";import{load as t,execute as r,supportsCurves as o,isLoaded as i}from"./gx/operatorGeodeticLength.js";import{geodeticCurveType as s}from"./support/geodeticCurveType.js";let n,p,a;function u(){return!!n&&i()}async function c(){if(!u()){const[e]=await Promise.all([import("./support/apiConverter.js"),t()]);n=e.fromGeometry,p=e.fromSpatialReference,a=e.getSpatialReference}}function f(t,o={}){const{curveType:i="geodesic",unit:u}=o,c=a(t);let f=r(n(t),p(c),s[i]);return f&&u&&(f=e(f,"meters",u)),f}function m(){return o()}export{f as execute,u as isLoaded,c as load,m as supportsCurves};
5
+ import{convertUnit as e}from"../../core/unitUtils.js";import{load as t,supportsCurves as r,execute as o,isLoaded as s}from"./gx/operatorGeodeticLength.js";import{geodeticCurveType as i}from"./support/geodeticCurveType.js";let n,p,a,c;function u(){return!!n&&s()}async function m(){if(!u()){const[e]=await Promise.all([import("./support/apiConverter.js"),t()]);n=e.fromGeometry,p=e.fromSpatialReference,a=e.getSpatialReference,c=r()}}function f(t,r={}){const{curveType:s="geodesic",unit:c}=r,u=a(t);let m=o(n(t),p(u),i[s]);return m&&c&&(m=e(m,"meters",c)),m}export{f as execute,u as isLoaded,m as load,c as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{isSome as r}from"../../core/arrayUtils.js";import{convertToSpatialReferenceUnit as t}from"../../core/unitUtils.js";import{executeMany as e,supportsCurves as o}from"./gx/operatorGraphicBuffer.js";import{fromGeometry as i,getSpatialReference as n,fromSpatialReference as u,toGeometry as a}from"./support/apiConverter.js";const m={round:0,miter:1,bevel:2},s={round:0,butt:1,square:2};function p(o,p,c,f,l={}){let{maxDeviation:x=NaN,maxVerticesInFullCircle:j=96,miterLimit:v=10,union:C=!1,unit:b}=l;const d=o.map(i),y=n(o);return b&&(p=p.map((r=>t(r,b,y))),x&&(x=t(x,b,y))),e(d,u(y),p,m[c],s[f],v,x,j,C).map((r=>a(r,y))).filter(r)}function c(){return o()}export{p as executeMany,c as supportsCurves};
5
+ import{isSome as r}from"../../core/arrayUtils.js";import{convertToSpatialReferenceUnit as t}from"../../core/unitUtils.js";import{supportsCurves as o,executeMany as e}from"./gx/operatorGraphicBuffer.js";import{fromGeometry as i,getSpatialReference as s,fromSpatialReference as a,toGeometry as m}from"./support/apiConverter.js";const n={round:0,miter:1,bevel:2},p={round:0,butt:1,square:2};function u(o,u,c,f,l={}){let{maxDeviation:x=NaN,maxVerticesInFullCircle:j=96,miterLimit:v=10,union:C=!1,unit:b}=l;const d=o.map(i),y=s(o);return b&&(u=u.map((r=>t(r,b,y))),x&&(x=t(x,b,y))),e(d,a(y),u,n[c],p[f],v,x,j,C).map((r=>m(r,y))).filter(r)}const c=o();export{u as executeMany,c as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{G as t,S as s}from"../../../chunks/SimpleGeometryCursor.js";import{t as e,h as i,g as n,d as o}from"../../../chunks/QuadraticBezier.js";import{b as h,t as r,G as m,d as a,k as f}from"../../../chunks/Geometry.js";import{q as _,P as c,p as d,w as P,s as u}from"../../../chunks/Transformation2D.js";function l(t,s,e,i,n,o){if(null===t&&r(""),t.getDimension()<1&&r(""),n>0||r(""),h(t),0===s||t.isEmpty())return t;const m=new A(o);return m.m_bUseZ=t.hasAttribute(1),m.m_bUseM=t.hasAttribute(2),m.m_inputGeometry=t,m.m_distance=s,m.m_tolerance=n,m.m_joins=e,m.m_miterLimit=i,m.m_progressCounter=0,m.constructOffset()}const y=1.4142135623730951,x=.017453292519943295,p=256,b=512,M=1024;class g{static construct(t,s,e){const i=new g;return i.x=t.x,i.y=t.y,i.m_next=-1,i.m_prev=-1,i.z=s,i.m=e,i.type=0,i}clone(){const t=new g;return t.x=this.x,t.y=this.y,t.m_next=this.m_next,t.m_prev=this.m_prev,t.z=this.z,t.m=this.m,t.type=this.type,t}asPoint2D(){return new c(this.x,this.y)}}function C(){return{pt:new g,bAtExistingPt:!1}}class A{constructor(t){this.m_distance=-1,this.m_tolerance=-1,this.m_miterLimit=10,this.m_joins=0,this.m_progressCounter=0,this.m_bUseZ=!1,this.m_bUseM=!1,this.m_srcPts=[],this.m_srcPtCount=0,this.m_offsetPts=[],this.m_offsetPtCount=0,this.m_a1=0,this.m_a2=0,this.m_progressTracker=t}constructOffset(){const t=this.m_inputGeometry.getGeometryType();if(t===m.enumLine)return this.offsetLine();if(t===m.enumEnvelope)return this.offsetEnvelope();if(a(t)){const t=new i;return t.addSegment(this.m_inputGeometry,!0),this.m_inputGeometry=t,this.constructOffset()}if(t===m.enumPolyline){const t=new i;return this.offsetMultiPath(t),t}if(t===m.enumPolygon){const t=new n;return this.offsetMultiPath(t),t}f("")}offsetLine(){const t=this.m_inputGeometry,s=t.getStartXY(),e=t.getEndXY(),i=new c;i.setSub(e,s),i.normalize(),i.leftPerpendicularThis(),i.scale(this.m_distance),s.addThis(i),e.addThis(i);const n=t.clone();return n.setStartXY(s),n.setEndXY(e),n}offsetEnvelope(){const t=this.m_inputGeometry;if(this.m_distance>0&&2!==this.m_joins){const s=new n;return s.addEnvelope(t,!1),this.m_inputGeometry=s,this.constructOffset()}const s=t.clone();return s.inflateCoords(this.m_distance,this.m_distance),s}progress(){}static buildPoint(t,s,e,i){i.x=t.x+s*Math.cos(e),i.y=t.y+s*Math.sin(e),i.type=t.type,i.z=t.z,i.m=t.m,i.m_next=-1,i.m_prev=-1}addPoint(t){this.m_offsetPts.push(t.clone()),this.m_offsetPtCount++}addPointEx(t,s){if(0===this.m_offsetPtCount)return void this.addPoint(t);const e=this.m_srcPtCount,i=this.m_srcPts[0===s?e-1:s-1],n=this.m_srcPts[s],o=A.dotSign(i,n,this.m_offsetPts[this.m_offsetPtCount-1],t);if(o>0)this.addPoint(t);else if(o<0)if(A.dotSign(i,n,n,this.m_offsetPts[this.m_offsetPtCount-1])>0){const n=new g;let o;o=0===s?e-2:1===s?e-1:s-2;const h=this.m_srcPts[o],r=Math.atan2(i.y-h.y,i.x-h.x);if(A.buildPoint(i,this.m_distance,r-_,n),this.m_offsetPts[this.m_offsetPtCount-1]=n,1===this.m_joins||2===this.m_joins){n.x=.5*(n.x+i.x),n.y=.5*(n.y+i.y),this.addPoint(n),A.buildPoint(i,this.m_distance,this.m_a1+_,n);const t=n.clone();t.x=.5*(t.x+i.x),t.y=.5*(t.y+i.y),t.type|=p,this.addPoint(t),this.addPoint(n)}else A.buildPoint(i,this.m_distance,this.m_a1+_,n),n.type|=p,this.addPoint(n);this.addPointEx(t,s)}else{const t=new g;if(A.buildPoint(n,this.m_distance,this.m_a1+_,t),this.addPoint(t),1===this.m_joins||2===this.m_joins){t.x=.5*(t.x+n.x),t.y=.5*(t.y+n.y),this.addPoint(t),A.buildPoint(n,this.m_distance,this.m_a2-_,t);const s=t.clone();s.x=.5*(s.x+n.x),s.y=.5*(s.y+n.y),s.type|=p,this.addPoint(s),this.addPoint(t)}else A.buildPoint(n,this.m_distance,this.m_a2-_,t),t.type|=p,this.addPoint(t)}}buildOffset(){const t=new g,s=this.m_srcPtCount;this.m_offsetPtCount=0;const e=.5*this.m_tolerance;let i=0,n=0;for(let o=0;o<s;o++){const h=this.m_srcPts[o],r=0===o?this.m_srcPts[s-1]:this.m_srcPts[o-1],m=o===s-1?this.m_srcPts[0]:this.m_srcPts[o+1];let a,f,P=0;{const t=r.x-h.x,s=r.y-h.y,e=m.x-h.x,_=m.y-h.y;a=Math.atan2(s,t),f=Math.atan2(_,e),this.m_a1=a,this.m_a2=f,0===o&&(i=a,n=f),P=c.orientationRobust(h.asPoint2D(),r.asPoint2D(),m.asPoint2D())}const u=f;if(f<a&&(f+=d),P*this.m_distance>0)if(1===this.m_joins||2===this.m_joins){A.buildPoint(h,this.m_distance,a+_,t),this.addPoint(t);const s=.001;t.x=h.x+(t.x-h.x)*s,t.y=h.y+(t.y-h.y)*s,this.addPoint(t),A.buildPoint(h,this.m_distance,f-_,t);const e=t.clone();e.x=h.x+(e.x-h.x)*s,e.y=h.y+(e.y-h.y)*s,e.type|=p,this.addPoint(e),this.addPoint(t)}else{const s=.5*(f-a),e=0===s?this.m_distance:this.m_distance/Math.abs(Math.sin(s));A.buildPoint(h,e,.5*(a+f),t),this.addPointEx(t,o)}else if(h.type&b){const s=1-e/Math.abs(this.m_distance);let i=1,n=this.m_distance<0?-Math.PI:Math.PI;if(s>-1&&s<1){let t=2*Math.acos(s);t<x&&(t=x),i=Math.trunc(Math.PI/t+1.5),i>1&&(n/=i)}i<=1&&(i=2,n/=2);let r=a+_;A.buildPoint(h,this.m_distance,r,t),0===o&&(t.type|=M),this.addPointEx(t,o);const m=this.m_distance/Math.cos(n/2);for(r+=n/2,A.buildPoint(h,m,r,t),t.type|=M,this.addPoint(t);--i>0;)r+=n,A.buildPoint(h,m,r,t),t.type|=M,this.addPoint(t);A.buildPoint(h,this.m_distance,f-_,t),t.type|=M,this.addPoint(t)}else if(1!==this.m_joins)if(0!==this.m_joins)if(2!==this.m_joins){let s;if(f=u,this.m_distance>0?(f>a&&(f-=d),s=a-f<_):(f<a&&(f+=d),s=f-a<_),s){const s=this.m_distance*y;let e;e=s<0?a+.25*Math.PI:a+3*Math.PI*.25,A.buildPoint(h,s,e,t),this.addPointEx(t,o),e=s<0?f-.25*Math.PI:f-3*Math.PI*.25,A.buildPoint(h,s,e,t),this.addPoint(t)}else{const s=.5*(f-a),e=this.m_distance/Math.abs(Math.sin(s));f<a&&(f+=d),A.buildPoint(h,e,(a+f)/2,t),this.addPointEx(t,o)}}else{const s=r.x-h.x,e=r.y-h.y,i=m.x-h.x,n=m.y-h.y,_=(s*i+e*n)/Math.sqrt(s*s+e*e)/Math.sqrt(i*i+n*n);if(_>1-1e-8){A.buildPoint(h,y*this.m_distance,f-.25*Math.PI,t),this.addPointEx(t,o),A.buildPoint(h,y*this.m_distance,f+.25*Math.PI,t),this.addPoint(t);continue}const d=Math.abs(this.m_distance/Math.sin(.5*Math.acos(_))),P=Math.abs(this.m_miterLimit*this.m_distance);if(d>P){const s=.5*(f-a),e=this.m_distance/Math.abs(Math.sin(s));A.buildPoint(h,e,.5*(a+f),t);const i=c.construct(t.x,t.y),n=c.construct(h.x,h.y),r=new c;r.setSub(i,n);const m=new c;m.setScaleAdd(P/r.length(),r,n);const _=Math.sqrt(d*d-this.m_distance*this.m_distance),u=(d-P)*Math.abs(this.m_distance)/_;this.m_distance>0?r.leftPerpendicularThis():r.rightPerpendicularThis(),r.scale(u/r.length());const l=new c;l.setAdd(m,r);const y=new c;y.setSub(m,r),t.x=l.x,t.y=l.y,this.addPointEx(t,o),t.x=y.x,t.y=y.y,this.addPoint(t);continue}const u=.5*(f-a),l=this.m_distance/Math.abs(Math.sin(u));A.buildPoint(h,l,.5*(a+f),t),this.addPointEx(t,o)}else{const s=1-e/Math.abs(this.m_distance);let i=1,n=f-_-(a+_);if(s>-1&&s<1){let t=2*Math.acos(s);t<x&&(t=x),i=Math.trunc(Math.abs(n)/t+1.5),i>1&&(n/=i)}const r=this.m_distance/Math.cos(.5*n);let m=a+_+.5*n;for(A.buildPoint(h,r,m,t),this.addPointEx(t,o);--i>0;)m+=n,A.buildPoint(h,r,m,t),this.addPoint(t)}else A.buildPoint(h,this.m_distance,a+_,t),this.addPointEx(t,o),A.buildPoint(h,this.m_distance,f-_,t),this.addPoint(t)}return this.m_a1=i,this.m_a2=n,this.addPointEx(this.m_offsetPts[0],0),this.m_offsetPts[0]=this.m_offsetPts[this.m_offsetPtCount-1].clone(),this.removeBadSegsFast()}removeBadSegsFast(){let t=!1;for(let e=0;e<this.m_offsetPtCount;e++){const t=this.m_offsetPts[e];t.m_next=e+1,t.m_prev=e-1}this.m_offsetPts[0].m_prev=this.m_offsetPtCount-2,this.m_offsetPts[this.m_offsetPtCount-2].m_next=0;let s=0;for(let e=0;e<this.m_offsetPtCount;e++)if(this.m_offsetPts[s].type&p){const e=this.deleteClosedSeg(s);if(-1===e){t=!0;break}s=e}else s=this.m_offsetPts[s].m_next;return!t&&(this.compressOffsetArray(s),!0)}deleteClosedSeg(t){const s=this.m_offsetPtCount-1;let e,i,n=t;for(let o=1;o<=s-2;o++){n=this.m_offsetPts[n].m_next,e=n,i=t;for(let t=1;t<=o;t++){if(i=this.m_offsetPts[i].m_prev,!(this.m_offsetPts[i].type&p||this.m_offsetPts[e].type&p)){const t=this.handleClosedIntersection(i,e);if(-1!==t)return t}e=this.m_offsetPts[e].m_prev}}return-1}handleClosedIntersection(t,s){const e=this.m_offsetPts[this.m_offsetPts[t].m_prev],i=this.m_offsetPts[t],n=this.m_offsetPts[this.m_offsetPts[s].m_prev],o=this.m_offsetPts[s];if(!this.sectGraphicRect(e,i,n,o))return-1;const h=C();if(((i.x-e.x)*(o.y-n.y)-(i.y-e.y)*(o.x-n.x))*this.m_distance<0){if(this.findIntersection(e,i,n,o,h)&&!h.bAtExistingPt){const r=1e-8,m=Math.sqrt((i.x-e.x)*(i.x-e.x)+(i.y-e.y)*(i.y-e.y)),a=(i.x-e.x)/m,f=(i.y-e.y)/m,_=Math.sqrt((o.x-n.x)*(o.x-n.x)+(o.y-n.y)*(o.y-n.y)),c=(o.x-n.x)/_,d=(o.y-n.y)/_;let P=!1;const u=h.pt.clone();u.x+=(a+c)*r,u.y+=(f+d)*r;let l=n,y=h.pt,x=this.m_offsetPts[t].m_prev;for(;y.y>u.y!=l.y>u.y&&u.x<(l.x-y.x)*(u.y-y.y)/(l.y-y.y)+y.x&&(P=!P),l=y,x=this.m_offsetPts[x].m_next,x!==s;)y=this.m_offsetPts[x];if(P)return-1;const p=this.m_offsetPts[t].m_prev;return h.pt.type=i.type,h.pt.m_next=s,h.pt.m_prev=p,this.m_offsetPts[t]=h.pt,this.m_offsetPts[s].m_prev=t,s}}return-1}sectGraphicRect(t,s,e,i){return Math.max(t.x,s.x)>=Math.min(e.x,i.x)&&Math.max(e.x,i.x)>=Math.min(t.x,s.x)&&Math.max(t.y,s.y)>=Math.min(e.y,i.y)&&Math.max(e.y,i.y)>=Math.min(t.y,s.y)}findIntersection(t,s,e,i,n){let o,h,r,m;return n.bAtExistingPt=!1,o=(s.y-t.y)*(i.x-e.x)-(s.x-t.x)*(i.y-e.y),h=(e.y-t.y)*(s.x-t.x)-(e.x-t.x)*(s.y-t.y),r=0===o?2:h/o,r>=0&&r<=1&&(m=r,o=(i.y-e.y)*(s.x-t.x)-(i.x-e.x)*(s.y-t.y),h=(t.y-e.y)*(i.x-e.x)-(t.x-e.x)*(i.y-e.y),r=0===o?2:h/o,r>=0&&r<=1)&&(n.pt.x=t.x+r*(s.x-t.x),n.pt.y=t.y+r*(s.y-t.y),this.m_bUseZ&&(n.pt.z=e.z+m*(i.z-e.z)),this.m_bUseM&&(n.pt.m=e.m+m*(i.m-e.m)),0!==m&&1!==m||0!==r&&1!==r||(n.bAtExistingPt=!0),!((0===m||1===m)&&r>0&&r<1||(0===r||1===r)&&m>0&&m<1))}compressOffsetArray(t){for(;this.m_offsetPts[t].m_prev<t;)t=this.m_offsetPts[t].m_prev;let s=0,e=t;do{const t=this.m_offsetPts[e].clone();this.m_offsetPts[s]=t,e=t.m_next,s++}while(e!==t);this.m_offsetPts[s]=this.m_offsetPts[0].clone(),this.m_offsetPtCount=s+1}addPart(t,s){if(!(s<2))for(let e=0;e<s;e++){const s=this.m_offsetPts[t+e];if(e?this.m_bUseZ?this.m_resultPath.lineTo3DCoords(s.x,s.y,s.z):this.m_resultPath.lineToCoords(s.x,s.y):this.m_bUseZ?this.m_resultPath.startPath3DCoords(s.x,s.y,s.z):this.m_resultPath.startPathCoords(s.x,s.y),this.m_bUseM){const t=this.m_resultPath.getPointCount()-1;this.m_resultPath.setAttribute(2,t,0,s.m)}}}offsetMultiPath(t){const s=o(this.m_inputGeometry,0,this.m_tolerance,0,this.m_progressTracker,12e3),e=s.querySegmentIterator();e.resetToFirstPath();let i=-1;for(;e.nextPath();)i++,this.offsetPath(s,i,t)}offsetPath(t,s,e){let i=t.getPathStart(s),n=t.getPathEnd(s);if(this.m_resultPath=e,t.isClosedPath(s)){const s=t.getXY(i);for(;n>i&&t.getXY(n-1).equals(s);)n--;if(n-i>=2){this.m_srcPtCount=n-i,this.m_srcPts.length=this.m_srcPtCount;for(let s=i;s<n;s++)this.progress(),this.m_srcPts[s-i]=g.construct(t.getXY(s),this.m_bUseZ?t.getAttributeAsDbl(1,s,0):0,this.m_bUseM?t.getAttributeAsDbl(2,s,0):0);this.buildOffset()&&this.addPart(0,this.m_offsetPtCount-1)}}else{const s=t.getXY(i);for(;i<n-1&&t.getXY(i+1).equals(s);)i++;const e=t.getXY(n-1);for(;i<n-1&&t.getXY(n-2).equals(e);)n--;if(n-i>=2){this.m_srcPtCount=2*(n-i)-2,this.m_srcPts.length=this.m_srcPtCount;let e=g.construct(s,this.m_bUseZ?t.getAttributeAsDbl(1,i,0):0,this.m_bUseM?t.getAttributeAsDbl(2,i,0):0);e.type|=b+M,this.m_srcPts[0]=e;let o=1,h=this.m_srcPtCount-1;for(let s=i+1;s<n-1;s++,o++,h--)this.progress(),e=g.construct(t.getXY(s),this.m_bUseZ?t.getAttributeAsDbl(1,s,0):0,this.m_bUseM?t.getAttributeAsDbl(2,s,0):0),this.m_srcPts[o]=e.clone(),e.type|=M,this.m_srcPts[h]=e.clone();if(e=g.construct(t.getXY(n-1),this.m_bUseZ?t.getAttributeAsDbl(1,n-1,0):0,this.m_bUseM?t.getAttributeAsDbl(2,n-1,0):0),e.type|=b,this.m_srcPts[o]=e.clone(),this.buildOffset())if(this.m_offsetPts.length>=2){let t=-1,s=-1,e=!!(this.m_offsetPts[this.m_offsetPtCount-1].type&M);e||(t=0);for(let i=1;i<this.m_offsetPtCount;i++){this.progress();const n=!!(this.m_offsetPts[i].type&M);n?e||(s=i-1,s-t+1>1&&this.addPart(t,s-t+1)):e&&(t=i-1),e=n}e||(s=this.m_offsetPtCount-1,s-t+1>1&&this.addPart(t,s-t+1))}else{const t=0,s=this.m_offsetPtCount-1;s-t>=1&&this.addPart(t,s-t+1)}}}this.m_srcPts.length=0,this.m_srcPtCount=0,this.m_offsetPts.length=0,this.m_offsetPtCount=0}static dotSign(t,s,e,i){const n=s.x-t.x,o=s.y-t.y,h=i.x-e.x,r=i.y-e.y,m=P(n,o,h,r);return u(m)}}class E{getOperatorType(){return 10108}accelerateGeometry(t,s,e){return!1}canAccelerateGeometry(t){return!1}supportsCurves(){return!0}executeMany(t,s,e,i,n,o,h){return new v(t,s,e,i,n,o,h)}execute(t,s,e,i,n,o,h){return new v(null,s,e,i,n,o,h).offset(t)}}class v extends t{constructor(t,s,e,i,n,o,h){super(),this.m_progressTracker=h,this.m_index=-1,this.m_inputGeoms=t,this.m_spatialReference=s,this.m_distance=e,this.m_joins=i,this.m_miterLimit=n,this.m_flattenError=o}tock(){return!0}getRank(){return 1}next(){if(!this.m_inputGeoms)return null;let t;for(;t=this.m_inputGeoms.next();)return this.m_index=this.m_inputGeoms.getGeometryID(),this.offset(t);return null}getGeometryID(){return this.m_index}offset(t){let s;return h(t),s=this.m_flattenError<=0?e(this.m_spatialReference,t,!0).total():this.m_flattenError,l(t,this.m_distance,this.m_joins,this.m_miterLimit,s,this.m_progressTracker)}}const w=new E;function G(t,s,e,i,n,o){return w.execute(t,s,e,i,n,o,null)}function j(t,e,i,n,o,h){const r=w.executeMany(new s(t),e,i,n,o,h,null);return Array.from(r)}function D(){return w.supportsCurves()}export{G as execute,j as executeMany,D as supportsCurves};
5
+ import{G as t,S as s}from"../../../chunks/SimpleGeometryCursor.js";import{t as e,h as i,g as n,d as o}from"../../../chunks/QuadraticBezier.js";import{b as h,t as r,G as m,d as a,k as f}from"../../../chunks/Geometry.js";import{q as _,P as c,p as d,w as P,s as u}from"../../../chunks/Transformation2D.js";function l(t,s,e,i,n,o){if(null===t&&r(""),t.getDimension()<1&&r(""),n>0||r(""),h(t),0===s||t.isEmpty())return t;const m=new A(o);return m.m_bUseZ=t.hasAttribute(1),m.m_bUseM=t.hasAttribute(2),m.m_inputGeometry=t,m.m_distance=s,m.m_tolerance=n,m.m_joins=e,m.m_miterLimit=i>1?i:1,m.m_progressCounter=0,m.constructOffset()}const y=1.4142135623730951,x=.017453292519943295,p=256,b=512,M=1024;class g{static construct(t,s,e){const i=new g;return i.x=t.x,i.y=t.y,i.m_next=-1,i.m_prev=-1,i.z=s,i.m=e,i.type=0,i}clone(){const t=new g;return t.x=this.x,t.y=this.y,t.m_next=this.m_next,t.m_prev=this.m_prev,t.z=this.z,t.m=this.m,t.type=this.type,t}asPoint2D(){return new c(this.x,this.y)}}function C(){return{pt:new g,bAtExistingPt:!1}}class A{constructor(t){this.m_distance=-1,this.m_tolerance=-1,this.m_miterLimit=10,this.m_joins=0,this.m_progressCounter=0,this.m_bUseZ=!1,this.m_bUseM=!1,this.m_srcPts=[],this.m_srcPtCount=0,this.m_offsetPts=[],this.m_offsetPtCount=0,this.m_a1=0,this.m_a2=0,this.m_progressTracker=t}constructOffset(){const t=this.m_inputGeometry.getGeometryType();if(t===m.enumLine)return this.offsetLine();if(t===m.enumEnvelope)return this.offsetEnvelope();if(a(t)){const t=new i;return t.addSegment(this.m_inputGeometry,!0),this.m_inputGeometry=t,this.constructOffset()}if(t===m.enumPolyline){const t=new i;return this.offsetMultiPath(t),t}if(t===m.enumPolygon){const t=new n;return this.offsetMultiPath(t),t}f("")}offsetLine(){const t=this.m_inputGeometry,s=t.getStartXY(),e=t.getEndXY(),i=new c;i.setSub(e,s),i.normalize(),i.leftPerpendicularThis(),i.scale(this.m_distance),s.addThis(i),e.addThis(i);const n=t.clone();return n.setStartXY(s),n.setEndXY(e),n}offsetEnvelope(){const t=this.m_inputGeometry;if(this.m_distance>0&&2!==this.m_joins){const s=new n;return s.addEnvelope(t,!1),this.m_inputGeometry=s,this.constructOffset()}const s=t.clone();return s.inflateCoords(this.m_distance,this.m_distance),s}progress(){}static buildPoint(t,s,e,i){i.x=t.x+s*Math.cos(e),i.y=t.y+s*Math.sin(e),i.type=t.type,i.z=t.z,i.m=t.m,i.m_next=-1,i.m_prev=-1}addPoint(t){this.m_offsetPts.push(t.clone()),this.m_offsetPtCount++}addPointEx(t,s){if(0===this.m_offsetPtCount)return void this.addPoint(t);const e=this.m_srcPtCount,i=this.m_srcPts[0===s?e-1:s-1],n=this.m_srcPts[s],o=A.dotSign(i,n,this.m_offsetPts[this.m_offsetPtCount-1],t);if(o>0)this.addPoint(t);else if(o<0)if(A.dotSign(i,n,n,this.m_offsetPts[this.m_offsetPtCount-1])>0){const n=new g;let o;o=0===s?e-2:1===s?e-1:s-2;const h=this.m_srcPts[o],r=Math.atan2(i.y-h.y,i.x-h.x);if(A.buildPoint(i,this.m_distance,r-_,n),this.m_offsetPts[this.m_offsetPtCount-1]=n,1===this.m_joins||2===this.m_joins){n.x=.5*(n.x+i.x),n.y=.5*(n.y+i.y),this.addPoint(n),A.buildPoint(i,this.m_distance,this.m_a1+_,n);const t=n.clone();t.x=.5*(t.x+i.x),t.y=.5*(t.y+i.y),t.type|=p,this.addPoint(t),this.addPoint(n)}else A.buildPoint(i,this.m_distance,this.m_a1+_,n),n.type|=p,this.addPoint(n);this.addPointEx(t,s)}else{const t=new g;if(A.buildPoint(n,this.m_distance,this.m_a1+_,t),this.addPoint(t),1===this.m_joins||2===this.m_joins){t.x=.5*(t.x+n.x),t.y=.5*(t.y+n.y),this.addPoint(t),A.buildPoint(n,this.m_distance,this.m_a2-_,t);const s=t.clone();s.x=.5*(s.x+n.x),s.y=.5*(s.y+n.y),s.type|=p,this.addPoint(s),this.addPoint(t)}else A.buildPoint(n,this.m_distance,this.m_a2-_,t),t.type|=p,this.addPoint(t)}}buildOffset(){const t=new g,s=this.m_srcPtCount;this.m_offsetPtCount=0;const e=.5*this.m_tolerance;let i=0,n=0;for(let o=0;o<s;o++){const h=this.m_srcPts[o],r=0===o?this.m_srcPts[s-1]:this.m_srcPts[o-1],m=o===s-1?this.m_srcPts[0]:this.m_srcPts[o+1];let a,f,P=0;{const t=r.x-h.x,s=r.y-h.y,e=m.x-h.x,_=m.y-h.y;a=Math.atan2(s,t),f=Math.atan2(_,e),this.m_a1=a,this.m_a2=f,0===o&&(i=a,n=f),P=c.orientationRobust(h.asPoint2D(),r.asPoint2D(),m.asPoint2D())}const u=f;if(f<a&&(f+=d),P*this.m_distance>0)if(1===this.m_joins||2===this.m_joins){A.buildPoint(h,this.m_distance,a+_,t),this.addPoint(t);const s=.001;t.x=h.x+(t.x-h.x)*s,t.y=h.y+(t.y-h.y)*s,this.addPoint(t),A.buildPoint(h,this.m_distance,f-_,t);const e=t.clone();e.x=h.x+(e.x-h.x)*s,e.y=h.y+(e.y-h.y)*s,e.type|=p,this.addPoint(e),this.addPoint(t)}else{const s=.5*(f-a),e=0===s?this.m_distance:this.m_distance/Math.abs(Math.sin(s));A.buildPoint(h,e,.5*(a+f),t),this.addPointEx(t,o)}else if(h.type&b){const s=1-e/Math.abs(this.m_distance);let i=1,n=this.m_distance<0?-Math.PI:Math.PI;if(s>-1&&s<1){let t=2*Math.acos(s);t<x&&(t=x),i=Math.trunc(Math.PI/t+1.5),i>1&&(n/=i)}i<=1&&(i=2,n/=2);let r=a+_;A.buildPoint(h,this.m_distance,r,t),0===o&&(t.type|=M),this.addPointEx(t,o);const m=this.m_distance/Math.cos(n/2);for(r+=n/2,A.buildPoint(h,m,r,t),t.type|=M,this.addPoint(t);--i>0;)r+=n,A.buildPoint(h,m,r,t),t.type|=M,this.addPoint(t);A.buildPoint(h,this.m_distance,f-_,t),t.type|=M,this.addPoint(t)}else if(1!==this.m_joins)if(0!==this.m_joins)if(2!==this.m_joins){let s;if(f=u,this.m_distance>0?(f>a&&(f-=d),s=a-f<_):(f<a&&(f+=d),s=f-a<_),s){const s=this.m_distance*y;let e;e=s<0?a+.25*Math.PI:a+3*Math.PI*.25,A.buildPoint(h,s,e,t),this.addPointEx(t,o),e=s<0?f-.25*Math.PI:f-3*Math.PI*.25,A.buildPoint(h,s,e,t),this.addPoint(t)}else{const s=.5*(f-a),e=this.m_distance/Math.abs(Math.sin(s));f<a&&(f+=d),A.buildPoint(h,e,(a+f)/2,t),this.addPointEx(t,o)}}else{const s=r.x-h.x,e=r.y-h.y,i=m.x-h.x,n=m.y-h.y,_=(s*i+e*n)/Math.sqrt(s*s+e*e)/Math.sqrt(i*i+n*n);if(_>1-1e-8){A.buildPoint(h,y*this.m_distance,f-.25*Math.PI,t),this.addPointEx(t,o),A.buildPoint(h,y*this.m_distance,f+.25*Math.PI,t),this.addPoint(t);continue}const d=Math.abs(this.m_distance/Math.sin(.5*Math.acos(_))),P=Math.abs(this.m_miterLimit*this.m_distance);if(d>P){const s=.5*(f-a),e=this.m_distance/Math.abs(Math.sin(s));A.buildPoint(h,e,.5*(a+f),t);const i=c.construct(t.x,t.y),n=c.construct(h.x,h.y),r=new c;r.setSub(i,n);const m=new c;m.setScaleAdd(P/r.length(),r,n);const _=Math.sqrt(d*d-this.m_distance*this.m_distance),u=(d-P)*Math.abs(this.m_distance)/_;this.m_distance>0?r.leftPerpendicularThis():r.rightPerpendicularThis(),r.scale(u/r.length());const l=new c;l.setAdd(m,r);const y=new c;y.setSub(m,r),t.x=l.x,t.y=l.y,this.addPointEx(t,o),t.x=y.x,t.y=y.y,this.addPoint(t);continue}const u=.5*(f-a),l=this.m_distance/Math.abs(Math.sin(u));A.buildPoint(h,l,.5*(a+f),t),this.addPointEx(t,o)}else{const s=1-e/Math.abs(this.m_distance);let i=1,n=f-_-(a+_);if(s>-1&&s<1){let t=2*Math.acos(s);t<x&&(t=x),i=Math.trunc(Math.abs(n)/t+1.5),i>1&&(n/=i)}const r=this.m_distance/Math.cos(.5*n);let m=a+_+.5*n;for(A.buildPoint(h,r,m,t),this.addPointEx(t,o);--i>0;)m+=n,A.buildPoint(h,r,m,t),this.addPoint(t)}else A.buildPoint(h,this.m_distance,a+_,t),this.addPointEx(t,o),A.buildPoint(h,this.m_distance,f-_,t),this.addPoint(t)}return this.m_a1=i,this.m_a2=n,this.addPointEx(this.m_offsetPts[0],0),this.m_offsetPts[0]=this.m_offsetPts[this.m_offsetPtCount-1].clone(),this.removeBadSegsFast()}removeBadSegsFast(){let t=!1;for(let e=0;e<this.m_offsetPtCount;e++){const t=this.m_offsetPts[e];t.m_next=e+1,t.m_prev=e-1}this.m_offsetPts[0].m_prev=this.m_offsetPtCount-2,this.m_offsetPts[this.m_offsetPtCount-2].m_next=0;let s=0;for(let e=0;e<this.m_offsetPtCount;e++)if(this.m_offsetPts[s].type&p){const e=this.deleteClosedSeg(s);if(-1===e){t=!0;break}s=e}else s=this.m_offsetPts[s].m_next;return!t&&(this.compressOffsetArray(s),!0)}deleteClosedSeg(t){const s=this.m_offsetPtCount-1;let e,i,n=t;for(let o=1;o<=s-2;o++){n=this.m_offsetPts[n].m_next,e=n,i=t;for(let t=1;t<=o;t++){if(i=this.m_offsetPts[i].m_prev,!(this.m_offsetPts[i].type&p||this.m_offsetPts[e].type&p)){const t=this.handleClosedIntersection(i,e);if(-1!==t)return t}e=this.m_offsetPts[e].m_prev}}return-1}handleClosedIntersection(t,s){const e=this.m_offsetPts[this.m_offsetPts[t].m_prev],i=this.m_offsetPts[t],n=this.m_offsetPts[this.m_offsetPts[s].m_prev],o=this.m_offsetPts[s];if(!this.sectGraphicRect(e,i,n,o))return-1;const h=C();if(((i.x-e.x)*(o.y-n.y)-(i.y-e.y)*(o.x-n.x))*this.m_distance<0){if(this.findIntersection(e,i,n,o,h)&&!h.bAtExistingPt){const r=1e-8,m=Math.sqrt((i.x-e.x)*(i.x-e.x)+(i.y-e.y)*(i.y-e.y)),a=(i.x-e.x)/m,f=(i.y-e.y)/m,_=Math.sqrt((o.x-n.x)*(o.x-n.x)+(o.y-n.y)*(o.y-n.y)),c=(o.x-n.x)/_,d=(o.y-n.y)/_;let P=!1;const u=h.pt.clone();u.x+=(a+c)*r,u.y+=(f+d)*r;let l=n,y=h.pt,x=this.m_offsetPts[t].m_prev;for(;y.y>u.y!=l.y>u.y&&u.x<(l.x-y.x)*(u.y-y.y)/(l.y-y.y)+y.x&&(P=!P),l=y,x=this.m_offsetPts[x].m_next,x!==s;)y=this.m_offsetPts[x];if(P)return-1;const p=this.m_offsetPts[t].m_prev;return h.pt.type=i.type,h.pt.m_next=s,h.pt.m_prev=p,this.m_offsetPts[t]=h.pt,this.m_offsetPts[s].m_prev=t,s}}return-1}sectGraphicRect(t,s,e,i){return Math.max(t.x,s.x)>=Math.min(e.x,i.x)&&Math.max(e.x,i.x)>=Math.min(t.x,s.x)&&Math.max(t.y,s.y)>=Math.min(e.y,i.y)&&Math.max(e.y,i.y)>=Math.min(t.y,s.y)}findIntersection(t,s,e,i,n){let o,h,r,m;return n.bAtExistingPt=!1,o=(s.y-t.y)*(i.x-e.x)-(s.x-t.x)*(i.y-e.y),h=(e.y-t.y)*(s.x-t.x)-(e.x-t.x)*(s.y-t.y),r=0===o?2:h/o,r>=0&&r<=1&&(m=r,o=(i.y-e.y)*(s.x-t.x)-(i.x-e.x)*(s.y-t.y),h=(t.y-e.y)*(i.x-e.x)-(t.x-e.x)*(i.y-e.y),r=0===o?2:h/o,r>=0&&r<=1)&&(n.pt.x=t.x+r*(s.x-t.x),n.pt.y=t.y+r*(s.y-t.y),this.m_bUseZ&&(n.pt.z=e.z+m*(i.z-e.z)),this.m_bUseM&&(n.pt.m=e.m+m*(i.m-e.m)),0!==m&&1!==m||0!==r&&1!==r||(n.bAtExistingPt=!0),!((0===m||1===m)&&r>0&&r<1||(0===r||1===r)&&m>0&&m<1))}compressOffsetArray(t){for(;this.m_offsetPts[t].m_prev<t;)t=this.m_offsetPts[t].m_prev;let s=0,e=t;do{const t=this.m_offsetPts[e].clone();this.m_offsetPts[s]=t,e=t.m_next,s++}while(e!==t);this.m_offsetPts[s]=this.m_offsetPts[0].clone(),this.m_offsetPtCount=s+1}addPart(t,s){if(!(s<2))for(let e=0;e<s;e++){const s=this.m_offsetPts[t+e];if(e?this.m_bUseZ?this.m_resultPath.lineTo3DCoords(s.x,s.y,s.z):this.m_resultPath.lineToCoords(s.x,s.y):this.m_bUseZ?this.m_resultPath.startPath3DCoords(s.x,s.y,s.z):this.m_resultPath.startPathCoords(s.x,s.y),this.m_bUseM){const t=this.m_resultPath.getPointCount()-1;this.m_resultPath.setAttribute(2,t,0,s.m)}}}offsetMultiPath(t){const s=o(this.m_inputGeometry,0,this.m_tolerance,0,this.m_progressTracker,12e3),e=s.querySegmentIterator();e.resetToFirstPath();let i=-1;for(;e.nextPath();)i++,this.offsetPath(s,i,t)}offsetPath(t,s,e){let i=t.getPathStart(s),n=t.getPathEnd(s);if(this.m_resultPath=e,t.isClosedPath(s)){const s=t.getXY(i);for(;n>i&&t.getXY(n-1).equals(s);)n--;if(n-i>=2){this.m_srcPtCount=n-i,this.m_srcPts.length=this.m_srcPtCount;for(let s=i;s<n;s++)this.progress(),this.m_srcPts[s-i]=g.construct(t.getXY(s),this.m_bUseZ?t.getAttributeAsDbl(1,s,0):0,this.m_bUseM?t.getAttributeAsDbl(2,s,0):0);this.buildOffset()&&this.addPart(0,this.m_offsetPtCount-1)}}else{const s=t.getXY(i);for(;i<n-1&&t.getXY(i+1).equals(s);)i++;const e=t.getXY(n-1);for(;i<n-1&&t.getXY(n-2).equals(e);)n--;if(n-i>=2){this.m_srcPtCount=2*(n-i)-2,this.m_srcPts.length=this.m_srcPtCount;let e=g.construct(s,this.m_bUseZ?t.getAttributeAsDbl(1,i,0):0,this.m_bUseM?t.getAttributeAsDbl(2,i,0):0);e.type|=b+M,this.m_srcPts[0]=e;let o=1,h=this.m_srcPtCount-1;for(let s=i+1;s<n-1;s++,o++,h--)this.progress(),e=g.construct(t.getXY(s),this.m_bUseZ?t.getAttributeAsDbl(1,s,0):0,this.m_bUseM?t.getAttributeAsDbl(2,s,0):0),this.m_srcPts[o]=e.clone(),e.type|=M,this.m_srcPts[h]=e.clone();if(e=g.construct(t.getXY(n-1),this.m_bUseZ?t.getAttributeAsDbl(1,n-1,0):0,this.m_bUseM?t.getAttributeAsDbl(2,n-1,0):0),e.type|=b,this.m_srcPts[o]=e.clone(),this.buildOffset())if(this.m_offsetPts.length>=2){let t=-1,s=-1,e=!!(this.m_offsetPts[this.m_offsetPtCount-1].type&M);e||(t=0);for(let i=1;i<this.m_offsetPtCount;i++){this.progress();const n=!!(this.m_offsetPts[i].type&M);n?e||(s=i-1,s-t+1>1&&this.addPart(t,s-t+1)):e&&(t=i-1),e=n}e||(s=this.m_offsetPtCount-1,s-t+1>1&&this.addPart(t,s-t+1))}else{const t=0,s=this.m_offsetPtCount-1;s-t>=1&&this.addPart(t,s-t+1)}}}this.m_srcPts.length=0,this.m_srcPtCount=0,this.m_offsetPts.length=0,this.m_offsetPtCount=0}static dotSign(t,s,e,i){const n=s.x-t.x,o=s.y-t.y,h=i.x-e.x,r=i.y-e.y,m=P(n,o,h,r);return u(m)}}class E{getOperatorType(){return 10108}accelerateGeometry(t,s,e){return!1}canAccelerateGeometry(t){return!1}supportsCurves(){return!0}executeMany(t,s,e,i,n,o,h){return new v(t,s,e,i,n,o,h)}execute(t,s,e,i,n,o,h){return new v(null,s,e,i,n,o,h).offset(t)}}class v extends t{constructor(t,s,e,i,n,o,h){super(),this.m_progressTracker=h,this.m_index=-1,this.m_inputGeoms=t,this.m_spatialReference=s,this.m_distance=e,this.m_joins=i,this.m_miterLimit=n,this.m_flattenError=o}tock(){return!0}getRank(){return 1}next(){if(!this.m_inputGeoms)return null;let t;for(;t=this.m_inputGeoms.next();)return this.m_index=this.m_inputGeoms.getGeometryID(),this.offset(t);return null}getGeometryID(){return this.m_index}offset(t){let s;return h(t),s=this.m_flattenError<=0?e(this.m_spatialReference,t,!0).total():this.m_flattenError,l(t,this.m_distance,this.m_joins,this.m_miterLimit,s,this.m_progressTracker)}}const w=new E;function G(t,s,e,i,n,o){return w.execute(t,s,e,i,n,o,null)}function j(t,e,i,n,o,h){const r=w.executeMany(new s(t),e,i,n,o,h,null);return Array.from(r)}function D(){return w.supportsCurves()}export{G as execute,j as executeMany,D as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{isSome as r}from"../../core/arrayUtils.js";import{executeMany as t,supportsCurves as o}from"./gx/operatorIntegrate.js";import{fromGeometry as e,getSpatialReference as p,fromSpatialReference as s,toGeometry as a}from"./support/apiConverter.js";function n(o){const n=o.map(e),i=p(o);return t(n,s(i)).map((r=>a(r,i))).filter(r)}function i(){return o()}export{n as executeMany,i as supportsCurves};
5
+ import{isSome as r}from"../../core/arrayUtils.js";import{supportsCurves as t,executeMany as o}from"./gx/operatorIntegrate.js";import{fromGeometry as e,getSpatialReference as p,fromSpatialReference as s,toGeometry as a}from"./support/apiConverter.js";function m(t){const m=t.map(e),n=p(t);return o(m,s(n)).map((r=>a(r,n))).filter(r)}const n=t();export{m as executeMany,n as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{isSome as r}from"../../core/arrayUtils.js";import{accelerateGeometry as t,execute as e,executeMany as o,supportsCurves as n}from"./gx/operatorIntersection.js";import{getSpatialReference as s,fromSpatialReference as a,fromGeometry as c,toGeometry as u}from"./support/apiConverter.js";function p(r){const e=s(r);return t(c(r),a(e))}function i(r,t){const o=s(r);return u(e(c(r),c(t),a(o)),o)}function m(t,e){const n=t.map(c),p=s(t);return o(n,c(e),a(p),7).map((r=>u(r,p))).filter(r)}function f(){return n()}export{p as accelerateGeometry,i as execute,m as executeMany,f as supportsCurves};
5
+ import{isSome as r}from"../../core/arrayUtils.js";import{supportsCurves as t,accelerateGeometry as e,execute as o,executeMany as n}from"./gx/operatorIntersection.js";import{getSpatialReference as s,fromSpatialReference as a,fromGeometry as c,toGeometry as p}from"./support/apiConverter.js";function u(r){const t=s(r);return e(c(r),a(t))}function i(r,t){const e=s(r);return p(o(c(r),c(t),a(e)),e)}function m(t,e){const o=t.map(c),u=s(t);return n(o,c(e),a(u),7).map((r=>p(r,u))).filter(r)}const f=t();export{u as accelerateGeometry,i as execute,m as executeMany,f as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{O as e}from"../../chunks/OperatorIntersects.js";import{getSpatialReference as r,fromGeometry as t,fromSpatialReference as n}from"./support/apiConverter.js";const o=new e;function s(e){const s=r(e);return o.accelerateGeometry(t(e),n(s),1)}function u(e,r){return o.execute(t(e),t(r),n(e.spatialReference),null)}function c(){return o.supportsCurves()}export{s as accelerateGeometry,u as execute,c as supportsCurves};
5
+ import{O as e}from"../../chunks/OperatorIntersects.js";import{getSpatialReference as r,fromGeometry as t,fromSpatialReference as n}from"./support/apiConverter.js";const o=new e;function s(e){const s=r(e);return o.accelerateGeometry(t(e),n(s),1)}function c(e,r){return o.execute(t(e),t(r),n(e.spatialReference),null)}const p=o.supportsCurves();export{s as accelerateGeometry,c as execute,p as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{t as r,b as e}from"../../chunks/Geometry.js";import{D as t}from"../../chunks/Distance2DCalculator-eS0piaux.js";import{convertToSpatialReferenceUnit as s}from"../../core/unitUtils.js";import{getSpatialReference as n,fromGeometry as u}from"./support/apiConverter.js";class o{getOperatorType(){return 10}accelerateGeometry(r,e,t){return!1}canAccelerateGeometry(r){return!1}supportsCurves(){return!0}execute(s,n,u,o){if(s.isEmpty()||n.isEmpty())return!1;u<0&&r("distance"),e(s),e(n);const c=s,i=n;Number.isNaN(u)&&(u=Number.POSITIVE_INFINITY);return new t(u,o).isNear(c,i)}}const c=new o;function i(r,e,t,o={}){const{unit:i}=o;if(i){const e=n(r);t=s(t,i,e)}return c.execute(u(r),u(e),t,null)}function a(){return c.supportsCurves()}export{i as execute,a as supportsCurves};
5
+ import{t as e,b as r}from"../../chunks/Geometry.js";import{D as t}from"../../chunks/Distance2DCalculator-eS0piaux.js";import{convertToSpatialReferenceUnit as s}from"../../core/unitUtils.js";import{getSpatialReference as n,fromGeometry as o}from"./support/apiConverter.js";class u{getOperatorType(){return 10}accelerateGeometry(e,r,t){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}execute(s,n,o,u){if(s.isEmpty()||n.isEmpty())return!1;o<0&&e("distance"),r(s),r(n);const c=s,i=n;Number.isNaN(o)&&(o=Number.POSITIVE_INFINITY);return new t(o,u).isNear(c,i)}}const c=new u;function i(e,r,t,u={}){const{unit:i}=u;if(i){const r=n(e);t=s(t,i,r)}return c.execute(o(e),o(r),t,null)}const a=c.supportsCurves();export{i as execute,a as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{execute as r,executeMany as t,supportsCurves as e}from"./gx/operatorLabelPoint.js";import{toPoint as o,getSpatialReference as n,fromGeometry as p}from"./support/apiConverter.js";function u(t){return o(r(p(t)),n(t))}function s(r){const e=r.map(p),u=n(r);return t(e).map((r=>o(r,u)))}function a(){return e()}export{u as execute,s as executeMany,a as supportsCurves};
5
+ import{supportsCurves as r,execute as t,executeMany as o}from"./gx/operatorLabelPoint.js";import{toPoint as e,getSpatialReference as n,fromGeometry as p}from"./support/apiConverter.js";function s(r){return e(t(p(r)),n(r))}function a(r){const t=r.map(p),s=n(r);return o(t).map((r=>e(r,s)))}const u=r();export{s as execute,a as executeMany,u as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{convertFromSpatialReferenceUnit as t}from"../../core/unitUtils.js";import{fromGeometry as r,getSpatialReference as n}from"./support/apiConverter.js";function o(o,e={}){const{unit:i}=e;let u=r(o).calculateLength2D();if(u&&i){const r=n(o);u=t(u,r,i)}return u}function e(){return!0}export{o as execute,e as supportsCurves};
5
+ import{convertFromSpatialReferenceUnit as t}from"../../core/unitUtils.js";import{fromGeometry as o,getSpatialReference as r}from"./support/apiConverter.js";function n(n,e={}){const{unit:i}=e;let c=o(n).calculateLength2D();if(c&&i){const o=r(n);c=t(c,o,i)}return c}const e=!0;export{n as execute,e as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{isSome as r}from"../../core/arrayUtils.js";import{executeMany as o,supportsCurves as t}from"./gx/operatorLinesToPolygons.js";import{fromGeometry as e,getSpatialReference as s,fromSpatialReference as p,toPolygon as n}from"./support/apiConverter.js";function a(t){const a=t.map(e),i=s(t);return o(a,p(i)).map((r=>n(r,i))).filter(r)}function i(){return t()}export{a as executeMany,i as supportsCurves};
5
+ import{isSome as r}from"../../core/arrayUtils.js";import{supportsCurves as o,executeMany as t}from"./gx/operatorLinesToPolygons.js";import{fromGeometry as s,getSpatialReference as e,fromSpatialReference as p,toPolygon as a}from"./support/apiConverter.js";function n(o){const n=o.map(s),i=e(o);return t(n,p(i)).map((r=>a(r,i))).filter(r)}const i=o();export{n as executeMany,i as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{E as r}from"../../chunks/Transformation2D.js";import{executeMany as o,supportsCurves as t}from"./gx/operatorLocateBetween.js";import{fromGeometry as e,getSpatialReference as n,toGeometry as s}from"./support/apiConverter.js";function p(t,p,a){const m=t.map(e),u=n(t);return o(m,new r(p,a)).map((r=>s(r,u)))}function a(){return t()}export{p as executeMany,a as supportsCurves};
5
+ import{E as o}from"../../chunks/Transformation2D.js";import{supportsCurves as r,executeMany as t}from"./gx/operatorLocateBetween.js";import{fromGeometry as e,getSpatialReference as s,toGeometry as n}from"./support/apiConverter.js";function p(r,p,a){const m=r.map(e),u=s(r);return t(m,new o(p,a)).map((o=>n(o,u)))}const a=r();export{p as executeMany,a as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{isSome as r}from"../../core/arrayUtils.js";import{executeMany as o,supportsCurves as t}from"./gx/operatorMinimumBoundingCircle.js";import{fromGeometry as e,getSpatialReference as n,toPolygon as i}from"./support/apiConverter.js";function p(r){return u([r])[0]}function u(t,p={}){const{merge:u=!1}=p,m=t.map(e),s=n(t);return o(m,u).map((r=>i(r,s))).filter(r)}function m(){return t()}export{p as execute,u as executeMany,m as supportsCurves};
5
+ import{isSome as r}from"../../core/arrayUtils.js";import{supportsCurves as o,executeMany as t}from"./gx/operatorMinimumBoundingCircle.js";import{fromGeometry as e,getSpatialReference as n,toPolygon as i}from"./support/apiConverter.js";function p(r){return s([r])[0]}function s(o,p={}){const{merge:s=!1}=p,m=o.map(e),u=n(o);return t(m,s).map((r=>i(r,u))).filter(r)}const m=o();export{p as execute,s as executeMany,m as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{isSome as r}from"../../core/arrayUtils.js";import{executeMany as o,supportsCurves as t}from"./gx/operatorMultiPartToSinglePart.js";import{fromGeometry as e,getSpatialReference as p,fromSpatialReference as s,toGeometry as i}from"./support/apiConverter.js";function a(t,a={}){const{simplifyPolygons:n=!0}=a,m=n?1:2,u=t.map(e),f=p(t);return o(u,s(f),m).map((r=>i(r,f))).filter(r)}function n(){return t()}export{a as executeMany,n as supportsCurves};
5
+ import{isSome as r}from"../../core/arrayUtils.js";import{supportsCurves as o,executeMany as t}from"./gx/operatorMultiPartToSinglePart.js";import{fromGeometry as s,getSpatialReference as p,fromSpatialReference as e,toGeometry as a}from"./support/apiConverter.js";function i(o,i={}){const{simplifyPolygons:m=!0}=i,n=m?1:2,u=o.map(s),f=p(o);return t(u,e(f),n).map((r=>a(r,f))).filter(r)}const m=o();export{i as executeMany,m as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{isSome as r}from"../../core/arrayUtils.js";import{convertToSpatialReferenceUnit as t}from"../../core/unitUtils.js";import{execute as o,executeMany as e,supportsCurves as n}from"./gx/operatorOffset.js";import{getSpatialReference as i,toGeometry as s,fromSpatialReference as u,fromGeometry as m}from"./support/apiConverter.js";const a={round:0,bevel:1,miter:2,square:3};function p(r,e,n={}){const{miterLimit:p=10,flattenError:f=0,joins:c="round",unit:j}=n,l=i(r);return j&&(e=t(e,j,l)),s(o(m(r),u(l),e,a[c],p,f),l)}function f(o,n,p={}){const{miterLimit:f=10,flattenError:c=0,joins:j="round",unit:l}=p,x=i(o);l&&(n=t(n,l,x));const d=o.map(m);return e(d,u(x),n,a[j],f,c).map((r=>s(r,x))).filter(r)}function c(){return n()}export{p as execute,f as executeMany,c as supportsCurves};
5
+ import{isSome as r}from"../../core/arrayUtils.js";import{convertToSpatialReferenceUnit as t}from"../../core/unitUtils.js";import{supportsCurves as o,execute as e,executeMany as n}from"./gx/operatorOffset.js";import{getSpatialReference as i,toGeometry as s,fromSpatialReference as u,fromGeometry as m}from"./support/apiConverter.js";const a={round:0,bevel:1,miter:2,square:3};function p(r,o,n={}){const{miterLimit:p=10,flattenError:c=0,joins:f="round",unit:j}=n,l=i(r);return j&&(o=t(o,j,l)),s(e(m(r),u(l),o,a[f],p,c),l)}function c(o,e,p={}){const{miterLimit:c=10,flattenError:f=0,joins:j="round",unit:l}=p,x=i(o);l&&(e=t(e,l,x));const d=o.map(m);return n(d,u(x),e,a[j],c,f).map((r=>s(r,x))).filter(r)}const f=o();export{p as execute,c as executeMany,f as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{O as e}from"../../chunks/OperatorOverlaps.js";import{getSpatialReference as r,fromGeometry as t,fromSpatialReference as n}from"./support/apiConverter.js";const o=new e;function s(e){const s=r(e);return o.accelerateGeometry(t(e),n(s),1)}function u(e,r){return o.execute(t(e),t(r),n(e.spatialReference),null)}function p(){return o.supportsCurves()}export{s as accelerateGeometry,u as execute,p as supportsCurves};
5
+ import{O as e}from"../../chunks/OperatorOverlaps.js";import{getSpatialReference as r,fromGeometry as t,fromSpatialReference as o}from"./support/apiConverter.js";const n=new e;function s(e){const s=r(e);return n.accelerateGeometry(t(e),o(s),1)}function p(e,r){return n.execute(t(e),t(r),o(e.spatialReference),null)}const c=n.supportsCurves();export{s as accelerateGeometry,p as execute,c as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{isSome as r}from"../../core/arrayUtils.js";import{executeMany as o,supportsCurves as t}from"./gx/operatorPolygonOverlay.js";import{fromGeometry as e,getSpatialReference as p,fromSpatialReference as s,toGeometry as a}from"./support/apiConverter.js";function n(t,n){let i=0;n&&(n.overlaps&&(i|=1),n.noOverlaps&&(i|=2),n.gaps&&(i|=4),n.holes&&(i|=8),n.multiPart&&(i|=16));const l=t.map(e),m=p(t);return o(l,s(m),i).map((r=>a(r,m))).filter(r)}function i(){return t()}export{n as executeMany,i as supportsCurves};
5
+ import{isSome as r}from"../../core/arrayUtils.js";import{supportsCurves as o,executeMany as t}from"./gx/operatorPolygonOverlay.js";import{fromGeometry as e,getSpatialReference as s,fromSpatialReference as p,toGeometry as a}from"./support/apiConverter.js";function l(o,l){let m=0;l&&(l.overlaps&&(m|=1),l.noOverlaps&&(m|=2),l.gaps&&(m|=4),l.holes&&(m|=8),l.multiPart&&(m|=16));const n=o.map(e),i=s(o);return t(n,p(i),m).map((r=>a(r,i))).filter(r)}const m=o();export{l as executeMany,m as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{areaUnitFromSpatialReference as r,convertUnit as t,getMetersPerUnitForSR as n}from"../../core/unitUtils.js";import{findSlicesByArea as o,recursiveSliceEqualArea as a,sliceIntoStrips as s,supportsCurves as e}from"./gx/operatorPolygonSlicer.js";import{getSpatialReference as i,fromSpatialReference as u,fromPolygon as f,toPolygon as c}from"./support/apiConverter.js";function l(a,s,e,c={}){const{transform:l,unit:m}=c,p=i(a);if(e&&m){if(p.isGeographic)throw new Error("Unable to convert from an angular area unit to a linear area unit.");const o=r(p);o!==m&&(o?e=t(e,m,o):(e=t(e,m,"square-meters"),e=Math.sqrt(e),e/=n(p),e**=2))}return o(f(a),u(p),s,e,l?.transform??null)}function m(r,t,n={}){const{transform:o}=n,s=i(r);return a(f(r),u(s),t,o?.transform??null).map((r=>c(r,s)))}function p(r,t,n={}){const{transform:o}=n,a=i(r);return s(f(r),u(a),t,o?.transform??null).map((r=>c(r,a)))}function g(){return e()}export{l as findSlicesByArea,m as recursiveSliceEqualArea,p as sliceIntoStrips,g as supportsCurves};
5
+ import{areaUnitFromSpatialReference as r,convertUnit as t,getMetersPerUnitForSR as n}from"../../core/unitUtils.js";import{supportsCurves as o,findSlicesByArea as s,recursiveSliceEqualArea as a,sliceIntoStrips as e}from"./gx/operatorPolygonSlicer.js";import{getSpatialReference as i,fromSpatialReference as u,fromPolygon as c,toPolygon as f}from"./support/apiConverter.js";function l(o,a,e,f={}){const{transform:l,unit:m}=f,p=i(o);if(e&&m){if(p.isGeographic)throw new Error("Unable to convert from an angular area unit to a linear area unit.");const o=r(p);o!==m&&(o?e=t(e,m,o):(e=t(e,m,"square-meters"),e=Math.sqrt(e),e/=n(p),e**=2))}return s(c(o),u(p),a,e,l?.transform??null)}function m(r,t,n={}){const{transform:o}=n,s=i(r);return a(c(r),u(s),t,o?.transform??null).map((r=>f(r,s)))}function p(r,t,n={}){const{transform:o}=n,s=i(r);return e(c(r),u(s),t,o?.transform??null).map((r=>f(r,s)))}const g=o();export{l as findSlicesByArea,m as recursiveSliceEqualArea,p as sliceIntoStrips,g as supportsCurves};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
4
  */
5
- import{isSome as t}from"../../core/arrayUtils.js";import{load as r,execute as e,executeMany as o,supportsCurves as n,isLoaded as a}from"./gx/operatorProject.js";let s,i,c;function u(){return!!s&&a()}async function p(){if(!u()){const[t]=await Promise.all([import("./support/apiConverter.js"),r()]);s=t.fromGeometry,i=t.getSpatialReference,c=t.toGeometry}}function f(t,r){const o=i(t);return c(e(s(t),r),o)}function m(r,e){const n=r.map(s),a=i(r);return o(n,e).map((t=>c(t,a))).filter(t)}function l(){return n()}export{f as execute,m as executeMany,u as isLoaded,p as load,l as supportsCurves};
5
+ import{isSome as t}from"../../core/arrayUtils.js";import{load as e,supportsCurves as r,execute as o,executeMany as a,isLoaded as s}from"./gx/operatorProject.js";let n,i,c,p;function u(){return!!n&&s()}async function m(){if(!u()){const[t]=await Promise.all([import("./support/apiConverter.js"),e()]);n=t.fromGeometry,i=t.getSpatialReference,c=t.toGeometry,p=r()}}function f(t,e){const r=i(t);return c(o(n(t),e),r)}function l(e,r){const o=e.map(n),s=i(e);return a(o,r).map((t=>c(t,s))).filter(t)}export{f as execute,l as executeMany,u as isLoaded,m as load,p as supportsCurves};