@arcgis/core 4.32.0-next.20250203 → 4.32.0-next.20250204

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 (209) hide show
  1. package/WebScene.js +1 -1
  2. package/assets/esri/core/workers/RemoteClient.js +1 -1
  3. package/assets/esri/core/workers/chunks/{d3a8aabdbfb59dd433e3.js → 01c3507d78398baaf61b.js} +1 -1
  4. package/assets/esri/core/workers/chunks/06f693780f70e5a627c4.js +1 -0
  5. package/assets/esri/core/workers/chunks/{c4b0e3f7dcad6c7ea620.js → 08f76c75758a29158b13.js} +34 -34
  6. package/assets/esri/core/workers/chunks/1a2e1a414e651e988435.js +2 -0
  7. package/assets/esri/core/workers/chunks/{bf9bc52a3c559108c19a.js.LICENSE.txt → 1a2e1a414e651e988435.js.LICENSE.txt} +1 -1
  8. package/assets/esri/core/workers/chunks/{6e25742ceedea7fb1b97.js → 287362f9af132fafe4de.js} +1 -1
  9. package/assets/esri/core/workers/chunks/308ec51ff4a66f7fcb0d.js.LICENSE.txt +1 -1
  10. package/assets/esri/core/workers/chunks/354531dc2f0dea2ad96f.js +2 -0
  11. package/assets/esri/core/workers/chunks/{6e8905f20101c1f4509d.js.LICENSE.txt → 354531dc2f0dea2ad96f.js.LICENSE.txt} +1 -1
  12. package/assets/esri/core/workers/chunks/41cd1a5c99ab3bbd1fb4.js +1 -0
  13. package/assets/esri/core/workers/chunks/44abd2cd17aae3299ede.js +1 -0
  14. package/assets/esri/core/workers/chunks/{af2a70d33afb12bb536f.js → 4d0a6ccb8434f8898377.js} +44 -44
  15. package/assets/esri/core/workers/chunks/{e9f0402fa3ac5a249807.js → 5196c43dbce48d1b81ae.js} +1 -1
  16. package/assets/esri/core/workers/chunks/568bcf809fcfd4d9c713.js +1 -0
  17. package/assets/esri/core/workers/chunks/{f2fae056a81f12b56b04.js → 5e7f16b312077ca8c18d.js} +1 -1
  18. package/assets/esri/core/workers/chunks/61243217aed5de012e93.js +1 -0
  19. package/assets/esri/core/workers/chunks/69d307758262e5d7a32e.js +1 -0
  20. package/assets/esri/core/workers/chunks/6d5bfcc7856cafe7b043.js +2 -0
  21. package/assets/esri/core/workers/chunks/{7d3a441d2eb18d709ef9.js.LICENSE.txt → 6d5bfcc7856cafe7b043.js.LICENSE.txt} +1 -1
  22. package/assets/esri/core/workers/chunks/72cf9192292e5c85c6df.js.LICENSE.txt +1 -1
  23. package/assets/esri/core/workers/chunks/{bc50585615f07d5ec1a9.js → 746c964cf07e4306f21f.js} +1 -1
  24. package/assets/esri/core/workers/chunks/77764ca90bdd13ee2167.js +2 -0
  25. package/assets/esri/core/workers/chunks/{25c8cc30faade043c8dc.js.LICENSE.txt → 77764ca90bdd13ee2167.js.LICENSE.txt} +1 -1
  26. package/assets/esri/core/workers/chunks/{07360fde6ea65664e6ca.js → 82d26884127ed772cc4b.js} +1 -1
  27. package/assets/esri/core/workers/chunks/{ba3c18d1efde46461231.js → 8438fba57e82e4cc7c11.js} +1 -1
  28. package/assets/esri/core/workers/chunks/{d1678945cf6a58f76863.js → 858b191c078d04232342.js} +1 -1
  29. package/assets/esri/core/workers/chunks/{0ef5b0f8aa8a09acd6e0.js → 8e90c5fee4ad7c7275dc.js} +1 -1
  30. package/assets/esri/core/workers/chunks/918bdba41fa470cf77fd.js +1 -0
  31. package/assets/esri/core/workers/chunks/{3ec51b75d1a86dad6cb1.js → 91d2bdfa6e34c10b7f50.js} +1 -1
  32. package/assets/esri/core/workers/chunks/{12dd892cf61a76fb40ad.js → 991e0f619f1f81f94d56.js} +1 -1
  33. package/assets/esri/core/workers/chunks/9a27824d94df702e6e28.js +1 -0
  34. package/assets/esri/core/workers/chunks/a2409d4921c02614169a.js +1 -0
  35. package/assets/esri/core/workers/chunks/{7810579a5a780933cdc9.js → ad3e692681b50bd1acc2.js} +1 -1
  36. package/assets/esri/core/workers/chunks/{adfa126cea32298c28e9.js → b1269b51cef3e11c85e3.js} +1 -1
  37. package/assets/esri/core/workers/chunks/b21b152fa15896577242.js.LICENSE.txt +1 -1
  38. package/assets/esri/core/workers/chunks/{c7a94e569c905f97244a.js → b33122adfd1fb68f7c0f.js} +1 -1
  39. package/assets/esri/core/workers/chunks/{da77eefaad83c0644380.js → b8fae500c69ca2cff62a.js} +1 -1
  40. package/assets/esri/core/workers/chunks/b9d9a1dc3c5d799e2685.js +1 -0
  41. package/assets/esri/core/workers/chunks/{79afe4674a0557eb26e4.js → bf26f58210755875748c.js} +1 -1
  42. package/assets/esri/core/workers/chunks/{5adeb979f178944b9ce5.js → c4c2b94e5cee7b824093.js} +1 -1
  43. package/assets/esri/core/workers/chunks/{3e872e5e528dca7bee0c.js → cc75bbfd779f409943a3.js} +1 -1
  44. package/assets/esri/core/workers/chunks/{4c5279fedf982a174706.js → d175953337fa655dc6b0.js} +1 -1
  45. package/assets/esri/core/workers/chunks/d35efcbe439500bf18bc.js +1 -0
  46. package/assets/esri/core/workers/chunks/d3d1dcb440588a295eba.js +1 -0
  47. package/assets/esri/core/workers/chunks/e26dc0c1654316bb1558.js +1 -0
  48. package/assets/esri/core/workers/chunks/{448ee44c7f594e5b2551.js → e410a09650530d7aad10.js} +1 -1
  49. package/assets/esri/core/workers/chunks/{2345344be4b0e487d3a6.js → f198f4ba7d3d52882d98.js} +1 -1
  50. package/assets/esri/core/workers/chunks/{881ddbdeb40336208e90.js → f29715459ecd46180829.js} +1 -1
  51. package/assets/esri/core/workers/chunks/f4e48bbdbc9da10ec71a.js +1 -0
  52. package/assets/esri/themes/base/widgets/_Directions.scss +59 -11
  53. package/assets/esri/themes/dark/main.css +1 -1
  54. package/assets/esri/themes/light/main.css +1 -1
  55. package/assets/esri/themes/light/view.css +1 -1
  56. package/assets/esri/widgets/Directions/t9n/Directions_ar.json +1 -1
  57. package/assets/esri/widgets/Directions/t9n/Directions_bg.json +1 -1
  58. package/assets/esri/widgets/Directions/t9n/Directions_bs.json +1 -1
  59. package/assets/esri/widgets/Directions/t9n/Directions_ca.json +1 -1
  60. package/assets/esri/widgets/Directions/t9n/Directions_cs.json +1 -1
  61. package/assets/esri/widgets/Directions/t9n/Directions_da.json +1 -1
  62. package/assets/esri/widgets/Directions/t9n/Directions_de.json +1 -1
  63. package/assets/esri/widgets/Directions/t9n/Directions_el.json +1 -1
  64. package/assets/esri/widgets/Directions/t9n/Directions_es.json +1 -1
  65. package/assets/esri/widgets/Directions/t9n/Directions_et.json +1 -1
  66. package/assets/esri/widgets/Directions/t9n/Directions_fi.json +1 -1
  67. package/assets/esri/widgets/Directions/t9n/Directions_fr.json +1 -1
  68. package/assets/esri/widgets/Directions/t9n/Directions_he.json +1 -1
  69. package/assets/esri/widgets/Directions/t9n/Directions_hr.json +1 -1
  70. package/assets/esri/widgets/Directions/t9n/Directions_hu.json +1 -1
  71. package/assets/esri/widgets/Directions/t9n/Directions_id.json +1 -1
  72. package/assets/esri/widgets/Directions/t9n/Directions_it.json +1 -1
  73. package/assets/esri/widgets/Directions/t9n/Directions_ja.json +1 -1
  74. package/assets/esri/widgets/Directions/t9n/Directions_ko.json +1 -1
  75. package/assets/esri/widgets/Directions/t9n/Directions_lt.json +1 -1
  76. package/assets/esri/widgets/Directions/t9n/Directions_lv.json +1 -1
  77. package/assets/esri/widgets/Directions/t9n/Directions_nl.json +1 -1
  78. package/assets/esri/widgets/Directions/t9n/Directions_no.json +1 -1
  79. package/assets/esri/widgets/Directions/t9n/Directions_pl.json +1 -1
  80. package/assets/esri/widgets/Directions/t9n/Directions_pt-BR.json +1 -1
  81. package/assets/esri/widgets/Directions/t9n/Directions_pt-PT.json +1 -1
  82. package/assets/esri/widgets/Directions/t9n/Directions_ro.json +1 -1
  83. package/assets/esri/widgets/Directions/t9n/Directions_ru.json +1 -1
  84. package/assets/esri/widgets/Directions/t9n/Directions_sk.json +1 -1
  85. package/assets/esri/widgets/Directions/t9n/Directions_sl.json +1 -1
  86. package/assets/esri/widgets/Directions/t9n/Directions_sr.json +1 -1
  87. package/assets/esri/widgets/Directions/t9n/Directions_sv.json +1 -1
  88. package/assets/esri/widgets/Directions/t9n/Directions_th.json +1 -1
  89. package/assets/esri/widgets/Directions/t9n/Directions_tr.json +1 -1
  90. package/assets/esri/widgets/Directions/t9n/Directions_uk.json +1 -1
  91. package/assets/esri/widgets/Directions/t9n/Directions_vi.json +1 -1
  92. package/assets/esri/widgets/Directions/t9n/Directions_zh-CN.json +1 -1
  93. package/assets/esri/widgets/Directions/t9n/Directions_zh-HK.json +1 -1
  94. package/assets/esri/widgets/Directions/t9n/Directions_zh-TW.json +1 -1
  95. package/chunks/ComponentShader.glsl.js +30 -30
  96. package/chunks/DefaultMaterial.glsl.js +19 -19
  97. package/chunks/HUDMaterial.glsl.js +34 -34
  98. package/chunks/MeasurementArrow.glsl.js +6 -6
  99. package/chunks/NativeLine.glsl.js +4 -4
  100. package/chunks/QuadraticBezier.js +1 -1
  101. package/chunks/RealisticTree.glsl.js +14 -14
  102. package/chunks/RibbonLine.glsl.js +32 -32
  103. package/chunks/Terrain.glsl.js +31 -31
  104. package/chunks/WaterSurface.glsl.js +15 -15
  105. package/copyright.txt +0 -29
  106. package/core/Collection.js +1 -1
  107. package/core/has.js +1 -1
  108. package/geometry/support/centroid.js +1 -1
  109. package/interfaces.d.ts +107 -13
  110. package/layers/graphics/controllers/FeatureTileController3D.js +1 -1
  111. package/layers/graphics/sources/geojson/GeoJSONSourceWorker.js +1 -1
  112. package/layers/graphics/sources/support/MemorySourceWorker.js +1 -1
  113. package/layers/mixins/ArcGISImageService.js +1 -1
  114. package/layers/mixins/ImageryTileMixin.js +1 -1
  115. package/layers/support/Sublayer.js +1 -1
  116. package/layers/support/capabilities.js +1 -1
  117. package/layers/support/featureLayerUtils.js +1 -1
  118. package/layers/support/labelUtils.js +1 -1
  119. package/layers/support/rasterDatasets/WCSRaster.js +1 -1
  120. package/layers/support/rasterDatasets/multidimensionalUtils.js +1 -1
  121. package/layers/support/serviceCapabilitiesUtils.js +1 -1
  122. package/package.json +4 -5
  123. package/popup/content/AttachmentsContent.js +1 -1
  124. package/popup/support/AttachmentsOrderByInfo.d.ts +4 -0
  125. package/popup/support/AttachmentsOrderByInfo.js +5 -0
  126. package/portal/schemas/definitions.js +1 -1
  127. package/rest/imageService/fetchRasterInfo.js +1 -1
  128. package/rest/query/operations/queryAttachments.js +1 -1
  129. package/rest/support/AttachmentQuery.js +1 -1
  130. package/support/revision.js +1 -1
  131. package/support/timeUtils.d.ts +0 -1
  132. package/support/timeUtils.js +1 -1
  133. package/symbols/cim/CIMSymbolDrawHelper.js +1 -1
  134. package/views/2d/engine/webgl/mesh/factories/FeatureMeshFactory.js +1 -1
  135. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedShader.js +1 -1
  136. package/views/2d/engine/webgl/shaderGraph/techniques/line/GradientStrokeTechnique.js +1 -1
  137. package/views/2d/engine/webgl/shaderGraph/techniques/line/gradientStrokeConstants.js +1 -1
  138. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/GradientStrokeShader.js +1 -1
  139. package/views/2d/engine/webgl/util/LabelMatcher.js +1 -1
  140. package/views/2d/engine/webgl/util/createMatcher.js +1 -1
  141. package/views/3d/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiles3D.js +1 -1
  142. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  143. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  144. package/views/3d/layers/graphics/Graphics3DGraphicsPipeline.js +1 -1
  145. package/views/3d/layers/i3s/I3SClientMaterialUtil.js +1 -1
  146. package/views/3d/layers/i3s/I3SMaterialUtil.js +1 -1
  147. package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
  148. package/views/3d/layers/support/FeatureTileFetcher3DContext.js +1 -1
  149. package/views/3d/layers/support/FeatureTileTree3D.js +1 -1
  150. package/views/3d/layers/support/FeatureVisibilityFilter.js +1 -1
  151. package/views/3d/terrain/PatchRenderData.js +1 -1
  152. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  153. package/views/3d/webgl-engine/collections/Component/Material/shader/ComponentShader.glsl.js +1 -1
  154. package/views/3d/webgl-engine/core/shaderLibrary/util/DiscardOrAdjustAlpha.glsl.js +3 -3
  155. package/views/3d/webgl-engine/effects/debug/RenderNodeVisualizerNode.js +1 -1
  156. package/views/3d/webgl-engine/materials/CheckerBoardMaterial.js +1 -1
  157. package/views/3d/webgl-engine/materials/ColorMaterial.js +1 -1
  158. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  159. package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
  160. package/views/3d/webgl-engine/materials/LineCalloutMaterial.js +1 -1
  161. package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
  162. package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
  163. package/views/3d/webgl-engine/materials/NativeLineMaterial.js +1 -1
  164. package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
  165. package/views/3d/webgl-engine/materials/PatternMaterial.js +1 -1
  166. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  167. package/views/3d/webgl-engine/materials/ShadedColorMaterial.js +1 -1
  168. package/views/3d/webgl-engine/shaders/DefaultMaterial.glsl.js +1 -1
  169. package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
  170. package/views/3d/webgl-engine/shaders/HUDMaterial.glsl.js +1 -1
  171. package/views/3d/webgl-engine/shaders/MeasurementArrow.glsl.js +1 -1
  172. package/views/3d/webgl-engine/shaders/NativeLine.glsl.js +1 -1
  173. package/views/3d/webgl-engine/shaders/OutputColorHighlightOID.glsl.js +8 -8
  174. package/views/3d/webgl-engine/shaders/RealisticTree.glsl.js +1 -1
  175. package/views/3d/webgl-engine/shaders/RibbonLine.glsl.js +1 -1
  176. package/views/3d/webgl-engine/shaders/Terrain.glsl.js +1 -1
  177. package/views/3d/webgl-engine/shaders/WaterSurface.glsl.js +1 -1
  178. package/views/layers/FeatureLayerView.js +1 -1
  179. package/views/layers/ImageryTileLayerView.d.ts +4 -0
  180. package/views/layers/ImageryTileLayerView.js +1 -1
  181. package/webscene/spec-certification/index.js +1 -1
  182. package/widgets/BasemapLayerList.js +1 -1
  183. package/widgets/Directions/DirectionsViewModel.js +1 -1
  184. package/widgets/Directions.js +1 -1
  185. package/widgets/LayerList.js +1 -1
  186. package/widgets/Legend/LegendViewModel.js +1 -1
  187. package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
  188. package/widgets/Legend.js +1 -1
  189. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  190. package/widgets/support/geolocationUtils.js +1 -1
  191. package/assets/esri/core/workers/chunks/06d72622590dbd38c5de.js +0 -1
  192. package/assets/esri/core/workers/chunks/0a19e1aec6a5502e391a.js +0 -1
  193. package/assets/esri/core/workers/chunks/12964a4b16113cdc9c93.js +0 -1
  194. package/assets/esri/core/workers/chunks/1e3ab66d0e8a7f160f33.js +0 -1
  195. package/assets/esri/core/workers/chunks/25c8cc30faade043c8dc.js +0 -2
  196. package/assets/esri/core/workers/chunks/34d464dacee52739c98c.js +0 -1
  197. package/assets/esri/core/workers/chunks/402de76b5de05615e111.js +0 -1
  198. package/assets/esri/core/workers/chunks/4cab082b8432ddc05345.js +0 -1
  199. package/assets/esri/core/workers/chunks/613db14d698741886753.js +0 -1
  200. package/assets/esri/core/workers/chunks/6e8905f20101c1f4509d.js +0 -2
  201. package/assets/esri/core/workers/chunks/7d3a441d2eb18d709ef9.js +0 -2
  202. package/assets/esri/core/workers/chunks/ba37ab9e560644dc1f18.js +0 -1
  203. package/assets/esri/core/workers/chunks/bf9bc52a3c559108c19a.js +0 -2
  204. package/assets/esri/core/workers/chunks/c74441fbe0f63633796f.js +0 -1
  205. package/assets/esri/core/workers/chunks/dd46ec81cebe1a0a7b9c.js +0 -1
  206. package/assets/esri/core/workers/chunks/e444ec05a8a1dfbd21a8.js +0 -1
  207. package/assets/esri/core/workers/chunks/f8367c21fa91435c7c53.js +0 -1
  208. package/assets/esri/core/workers/chunks/ffa2b9d70830aed03a8f.js +0 -1
  209. /package/{views/3d/webgl-engine/core/shaderLibrary/util → webscene/support}/AlphaCutoff.js +0 -0
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[697,3200,6928,7136,8430,9340],{39516:(e,t,n)=>{let r;async function o(){return null==r&&(r=n.e(4123).then(n.bind(n,44123)).then((e=>new e.WhereClauseCache(500,500)))),r}async function i(e,t){const n=await o(),r=n.get(e,t);if(null==r)throw n.getError(e,t);return r}function s(e,t){return e||=null,t||=null,"1=1"===e?t??e:"1=1"===t?e??t:e&&t?`(${e}) AND (${t})`:e??t}function l(e,t){return e||=null,t||=null,"1=1"===e||"1=1"===t||e===t?"1=1"===e?e:t:e&&t?`(${e}) OR (${t})`:e??t}n.d(t,{GP:()=>i,IW:()=>l,mA:()=>s})},13069:(e,t,n)=>{n.d(t,{AG:()=>l,lk:()=>o,vD:()=>s,yS:()=>i});const r="randomUUID"in crypto;function o(){if(r)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function i(){return`{${o().toUpperCase()}}`}function s(){return`{${o()}}`}function l(e){const t=e.toUpperCase();return"{"!==e[0]?`{${t}}`:t}},17136:(e,t,n)=>{n.d(t,{O7:()=>M,el:()=>x});var r=n(92602),o=n(49186),i=n(53966),s=n(39829),l=n(82799),a=n(80754),p=n(21325),u=n(28735),y=n(78888),c=n(65864),f=n(2272),d=n(84952),m=n(92300);const h=()=>i.A.getLogger("esri.geometry.support.normalizeUtils");function g(e){return"polygon"===e[0].type}function w(e){return"polyline"===e[0].type}function S(e,t,n){if(t){const t=function(e,t){if(!(e instanceof l.A||e instanceof s.A)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw h().error(e),new o.A(e)}const n=(0,a.r8)(e),r=[];for(const e of n){const n=[];r.push(n),n.push([e[0][0],e[0][1]]);for(let r=0;r<e.length-1;r++){const o=e[r][0],i=e[r][1],s=e[r+1][0],l=e[r+1][1],a=Math.sqrt((s-o)*(s-o)+(l-i)*(l-i)),p=(l-i)/a,u=(s-o)/a,y=a/t;if(y>1){for(let e=1;e<=y-1;e++){const r=e*t,s=u*r+o,l=p*r+i;n.push([s,l])}const e=(a+Math.floor(y-1)*t)/2,r=u*e+o,s=p*e+i;n.push([r,s])}n.push([s,l])}}return function(e){return"polygon"===e.type}(e)?new s.A({rings:r,spatialReference:e.spatialReference}):new l.A({paths:r,spatialReference:e.spatialReference})}(e,1e6);e=(0,u.ci)(t,!0)}return n&&(e=(0,a.kS)(e,n)),e}function b(e,t,n){if(Array.isArray(e)){const r=e[0];if(r>t){const n=(0,a.kd)(r,t);e[0]=r+n*(-2*t)}else if(r<n){const t=(0,a.kd)(r,n);e[0]=r+t*(-2*n)}}else{const r=e.x;if(r>t){const n=(0,a.kd)(r,t);e=e.clone().offset(n*(-2*t),0)}else if(r<n){const t=(0,a.kd)(r,n);e=e.clone().offset(t*(-2*n),0)}}return e}function _(e,t){let n=-1;for(let r=0;r<t.cutIndexes.length;r++){const o=t.cutIndexes[r],i=t.geometries[r],s=(0,a.r8)(i);for(let e=0;e<s.length;e++){const t=s[e];t.some((n=>{if(n[0]<180)return!0;{let n=0;for(let e=0;e<t.length;e++){const r=t[e][0];n=r>n?r:n}n=Number(n.toFixed(9));const r=-360*(0,a.kd)(n,180);for(let n=0;n<t.length;n++){const t=i.getPoint(e,n);i.setPoint(e,n,t.clone().offset(r,0))}return!0}}))}if(o===n){if(g(e))for(const t of(0,a.r8)(i))e[o]=e[o].addRing(t);else if(w(e))for(const t of(0,a.r8)(i))e[o]=e[o].addPath(t)}else n=o,e[o]=i}return e}async function x(e,t,n){if(!Array.isArray(e))return x([e],t);t&&"string"!=typeof t&&h().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const o="string"==typeof t?t:t?.url??r.A.geometryServiceUrl;let i,g,w,M,v,A,N,O,T=0;const R=[],Z=[];for(const t of e)if(null!=t)if(i||(i=t.spatialReference,g=(0,p.Vp)(i),w=i.isWebMercator,A=w?102100:4326,M=a.j7[A].maxX,v=a.j7[A].minX,N=a.j7[A].plus180Line,O=a.j7[A].minus180Line),g)if("mesh"===t.type)Z.push(t);else if("point"===t.type)Z.push(b(t.clone(),M,v));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map((e=>b(e,M,v))),Z.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,g);Z.push(e.rings?new s.A(e):e)}else if(t.extent){const e=t.extent,n=(0,a.kd)(e.xmin,v)*(2*M);let r=0===n?t.clone():(0,a.kS)(t.clone(),n);e.offset(n,0);let{xmin:o,xmax:i}=e;o=Number(o.toFixed(9)),i=Number(i.toFixed(9)),e.intersects(N)&&i!==M?(T=i>T?i:T,r=S(r,w),R.push(r),Z.push("cut")):e.intersects(O)&&o!==v?(T=i*(2*M)>T?i*(2*M):T,r=S(r,w,360),R.push(r),Z.push("cut")):Z.push(r)}else Z.push(t.clone());else Z.push(t);else Z.push(t);let I=(0,a.kd)(T,M),j=-90;const J=I,L=new l.A;for(;I>0;){const e=360*I-180;L.addPath([[e,j],[e,-1*j]]),j*=-1,I--}if(R.length>0&&J>0){const t=_(R,await async function(e,t,n,r){const o=(0,f.Dl)(e),i=t[0].spatialReference,s={...r,responseType:"json",query:{...o.query,f:"json",sr:(0,p.YX)(i),target:JSON.stringify({geometryType:(0,c.$B)(t[0]),geometries:t}),cutter:JSON.stringify(n)}},l=await(0,y.A)(o.path+"/cut",s),{cutIndexes:a,geometries:u=[]}=l.data;return{cutIndexes:a,geometries:u.map((e=>{const t=(0,c.rS)(e);return t.spatialReference=i,t}))}}(o,R,L,n)),r=[],i=[];for(let n=0;n<Z.length;n++){const o=Z[n];if("cut"!==o)i.push(o);else{const o=t.shift(),s=e[n];null!=s&&"polygon"===s.type&&s.rings&&s.rings.length>1&&o.rings.length>=s.rings.length?(r.push(o),i.push("simplify")):i.push(w?(0,u.Gh)(o):o)}}if(!r.length)return i;const s=await async function(e,t,n){const r="string"==typeof e?(0,d.An)(e):e,o=t[0].spatialReference,i=(0,c.$B)(t[0]),s={...n,query:{...r.query,f:"json",sr:(0,p.YX)(o),geometries:JSON.stringify((0,m.X)(t))}},{data:l}=await(0,y.A)(r.path+"/simplify",s);return(0,m.V)(l.geometries,i,o)}(o,r,n),l=[];for(let e=0;e<i.length;e++){const t=i[e];"simplify"!==t?l.push(t):l.push(w?(0,u.Gh)(s.shift()):s.shift())}return l}const E=[];for(let e=0;e<Z.length;e++){const t=Z[e];if("cut"!==t)E.push(t);else{const e=R.shift();E.push(!0===w?(0,u.Gh)(e):e)}}return E}function M(e,t,n){const r=(0,p.Vp)(n);if(null==r)return e;const[o,i]=r.valid,s=2*i;let l=0,a=0;t>i?l=Math.ceil(Math.abs(t-i)/s):t<o&&(l=-Math.ceil(Math.abs(t-o)/s)),e>i?a=Math.ceil(Math.abs(e-i)/s):e<o&&(a=-Math.ceil(Math.abs(e-o)/s));let u=e+(l-a)*s;const y=u-t;return y>i?u-=s:y<o&&(u+=s),u}},80754:(e,t,n)=>{n.d(t,{j7:()=>s,kS:()=>a,kd:()=>l,r8:()=>p});var r=n(82799),o=n(16930),i=n(65864);const s={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:o.A.WebMercator}),minus180Line:new r.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:o.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.A({paths:[[[180,-180],[180,180]]],spatialReference:o.A.WGS84}),minus180Line:new r.A({paths:[[[-180,-180],[-180,180]]],spatialReference:o.A.WGS84})}};function l(e,t){return Math.ceil((e-t)/(2*t))}function a(e,t){const n=p(e);for(const e of n)for(const n of e)n[0]+=t;return e}function p(e){return(0,i.Bi)(e)?e.rings:e.paths}},94194:(e,t,n)=>{n.d(t,{A:()=>b});var r=n(90237),o=n(10107),i=(n(44208),n(53966),n(87811),n(40608)),s=n(5503),l=n(62885);let a=class extends s.A{constructor(e){super(e),this.addHandles([this.on("before-add",(e=>{null==e.item&&e.preventDefault()})),this.on("after-add",(e=>this._own(e.item))),this.on("after-remove",(e=>this._release(e.item)))])}get owner(){return this._get("owner")}set owner(e){e!==this._get("owner")&&(this._releaseAll(),this._set("owner",e),this._ownAll())}_ownAll(){for(const e of this.items)this._own(e)}_releaseAll(){for(const e of this.items)this._release(e)}_createNewInstance(e){return this.itemType?new(s.A.ofType(this.itemType.Type))(e):new s.A(e)}};(0,r._)([(0,o.MZ)()],a.prototype,"owner",null),a=(0,r._)([(0,i.$)("esri.core.support.OwningCollection")],a);var p=n(4146),u=n(63074),y=n(25036),c=n(52106),f=n(56507),d=(n(49186),n(7695));let m=class extends a{_own(e){e.layer&&"remove"in e.layer&&e.layer!==this.owner&&e.layer.remove(e),e.layer=this.owner}_release(e){e.layer===this.owner&&(e.layer=null)}};(0,r._)([(0,d.u)({Type:c.A,ensureType:(0,f.dp)(c.A)})],m.prototype,"itemType",void 0),m=(0,r._)([(0,i.$)("esri.support.GraphicsCollection")],m);var h=n(88625);let g=class extends((0,u.dM)((0,y.j)(p.A))){constructor(e){super(e),this.elevationInfo=null,this.graphics=new m,this.screenSizePerspectiveEnabled=!0,this.type="graphics",this.internal=!1}destroy(){this.removeAll(),this.graphics.destroy()}add(e){return this.graphics.add(e),this}addMany(e){return this.graphics.addMany(e),this}removeAll(){return this.graphics.removeAll(),this}remove(e){this.graphics.remove(e)}removeMany(e){this.graphics.removeMany(e)}on(e,t){return super.on(e,t)}graphicChanged(e){this.emit("graphic-update",e)}};var w,S;(0,r._)([(0,o.MZ)({type:h.A})],g.prototype,"elevationInfo",void 0),(0,r._)([(0,o.MZ)((w=m,S="graphics",{type:w,cast:l.H,set(e){const t=(0,l.V)(e,this._get(S),w);t.owner=this,this._set(S,t)}}))],g.prototype,"graphics",void 0),(0,r._)([(0,o.MZ)({type:["show","hide"]})],g.prototype,"listMode",void 0),(0,r._)([(0,o.MZ)()],g.prototype,"screenSizePerspectiveEnabled",void 0),(0,r._)([(0,o.MZ)({readOnly:!0})],g.prototype,"type",void 0),(0,r._)([(0,o.MZ)({constructOnly:!0})],g.prototype,"internal",void 0),g=(0,r._)([(0,i.$)("esri.layers.GraphicsLayer")],g);const b=g},96953:(e,t,n)=>{n.r(t),n.d(t,{default:()=>D});var r=n(90237),o=n(52106),i=n(5503),s=n(49186),l=n(4718),a=n(92071),p=n(93637),u=n(67076),y=n(10107),c=(n(44208),n(53966),n(36005)),f=n(40608),d=n(43937),m=n(5443),h=n(57251),g=n(16930),w=n(19419),S=n(17136),b=n(21325),_=n(13600),x=n(94194),M=n(4146),v=n(33032),A=n(63074),N=n(16131),O=n(8303),T=n(25036),R=n(20437),Z=n(94985),I=n(31593),j=n(53930),J=n(68249);function L(e){return"markup"===e.featureCollectionType||e.layers.some((e=>null!=e.layerDefinition.visibilityField||!E(e)))}function E({layerDefinition:e,featureSet:t}){const n=e.geometryType??t.geometryType;return P.find((t=>n===t.geometryTypeJSON&&e.drawingInfo?.renderer?.symbol?.type===t.identifyingSymbol.type))}function C(){return new m.A({xmin:-180,ymin:-90,xmax:180,ymax:90})}const z=new R.A({name:"OBJECTID",alias:"OBJECTID",type:"oid",nullable:!1,editable:!1}),F=new R.A({name:"title",alias:"Title",type:"string",nullable:!0,editable:!0,length:255});let G=class extends x.A{constructor(e){super(e),this.visibilityMode="inherited"}initialize(){for(const e of this.graphics)e.sourceLayer=this.layer;this.graphics.on("after-add",(e=>{e.item.sourceLayer=this.layer})),this.graphics.on("after-remove",(e=>{e.item.sourceLayer=null}))}get fullExtent(){const e=this.layer?.spatialReference,t=this.fullBounds;return e?null==t?(0,h.projectOrLoad)(C(),e).geometry:(0,w.w1)(t,e):null}get fullBounds(){const e=this.layer?.spatialReference;if(!e)return null;const t=(0,w.Ie)();return this.graphics.forEach((n=>{const r=null!=n.geometry?(0,h.projectOrLoad)(n.geometry,e).geometry:null;null!=r&&(0,w.fT)(t,"point"===r.type?r:r.extent,t)})),(0,w.aI)(t,w.qv)?null:t}get sublayers(){return this.graphics}};(0,r._)([(0,y.MZ)({readOnly:!0})],G.prototype,"fullExtent",null),(0,r._)([(0,y.MZ)({readOnly:!0})],G.prototype,"fullBounds",null),(0,r._)([(0,y.MZ)({readOnly:!0})],G.prototype,"sublayers",null),(0,r._)([(0,y.MZ)()],G.prototype,"layer",void 0),(0,r._)([(0,y.MZ)()],G.prototype,"layerId",void 0),(0,r._)([(0,y.MZ)({readOnly:!0})],G.prototype,"visibilityMode",void 0),G=(0,r._)([(0,f.$)("esri.layers.MapNotesLayer.MapNotesSublayer")],G);const P=[{geometryType:"polygon",geometryTypeJSON:"esriGeometryPolygon",id:"polygonLayer",layerId:0,title:"Polygons",identifyingSymbol:(new Z.A).toJSON()},{geometryType:"polyline",geometryTypeJSON:"esriGeometryPolyline",id:"polylineLayer",layerId:1,title:"Polylines",identifyingSymbol:(new I.A).toJSON()},{geometryType:"multipoint",geometryTypeJSON:"esriGeometryMultipoint",id:"multipointLayer",layerId:2,title:"Multipoints",identifyingSymbol:(new j.A).toJSON()},{geometryType:"point",geometryTypeJSON:"esriGeometryPoint",id:"pointLayer",layerId:3,title:"Points",identifyingSymbol:(new j.A).toJSON()},{geometryType:"point",geometryTypeJSON:"esriGeometryPoint",id:"textLayer",layerId:4,title:"Text",identifyingSymbol:(new J.A).toJSON()}];let $=class extends((0,A.dM)((0,T.j)((0,N.q)((0,O.A)((0,a.P)(M.A)))))){constructor(e){super(e),this.capabilities={operations:{supportsMapNotesEditing:!0}},this.featureCollections=null,this.featureCollectionJSON=null,this.featureCollectionType="notes",this.legendEnabled=!1,this.listMode="hide-children",this.minScale=0,this.maxScale=0,this.spatialReference=g.A.WGS84,this.sublayers=new i.A(P.map((e=>new G({id:e.id,layerId:e.layerId,title:e.title,layer:this})))),this.title="Map Notes",this.type="map-notes",this.visibilityMode="inherited"}readCapabilities(e,t,n){return{operations:{supportsMapNotesEditing:!L(t)&&"portal-item"!==n?.origin}}}readFeatureCollections(e,t,n){if(!L(t))return null;const r=t.layers.map((e=>{const t=new _.default;return t.read(e,n),t}));return new i.A({items:r})}readLegacyfeatureCollectionJSON(e,t){return L(t)?(0,l.o8)(t.featureCollection):null}get fullExtent(){const e=this.spatialReference,t=(0,w.Ie)();return null!=this.sublayers?this.sublayers.forEach((({fullBounds:e})=>null!=e?(0,w.fT)(t,e,t):t),t):this.featureCollectionJSON?.layers.some((e=>e.layerDefinition.extent))&&this.featureCollectionJSON.layers.forEach((n=>{const r=(0,h.projectOrLoad)(n.layerDefinition.extent,e).geometry;null!=r&&(0,w.fT)(t,r,t)})),(0,w.aI)(t,w.qv)?(0,h.projectOrLoad)(C(),e).geometry:(0,w.w1)(t,e)}readMinScale(e,t){for(const e of t.layers)if(null!=e.layerDefinition.minScale)return e.layerDefinition.minScale;return 0}readMaxScale(e,t){for(const e of t.layers)if(null!=e.layerDefinition.maxScale)return e.layerDefinition.maxScale;return 0}get multipointLayer(){return this._findSublayer("multipointLayer")}get pointLayer(){return this._findSublayer("pointLayer")}get polygonLayer(){return this._findSublayer("polygonLayer")}get polylineLayer(){return this._findSublayer("polylineLayer")}readSpatialReference(e,t){return t.layers.length?g.A.fromJSON(t.layers[0].layerDefinition.spatialReference):g.A.WGS84}readSublayers(e,t,n){if(L(t))return null;const r=[];let s=t.layers.reduce(((e,t)=>Math.max(e,t.layerDefinition.id??-1)),-1)+1;for(const e of t.layers){const{layerDefinition:t,featureSet:n}=e,i=t.id??s++,l=E(e);if(null!=l){const e=new G({id:l.id,title:t.name,layerId:i,layer:this,graphics:n.features.map((({geometry:e,symbol:t,attributes:n,popupInfo:r})=>o.A.fromJSON({attributes:n,geometry:e,symbol:t,popupTemplate:r})))});r.push(e)}}return new i.A(r)}writeSublayers(e,t,n,r){const{minScale:o,maxScale:i}=this;if(null==e)return;const l=e.some((e=>e.graphics.length>0));if(!this.capabilities.operations.supportsMapNotesEditing)return void(l&&r?.messages?.push(new s.A("map-notes-layer:editing-not-supported","New map notes cannot be added to this layer")));const a=[];let u=this.spatialReference.toJSON();e:for(const t of e)for(const e of t.graphics)if(null!=e.geometry){u=e.geometry.spatialReference.toJSON();break e}for(const t of P){const n=e.find((e=>t.id===e.id));this._writeMapNoteSublayer(a,n,t,o,i,u,r)}(0,p.sM)("featureCollection.layers",a,t)}get textLayer(){return this._findSublayer("textLayer")}load(e){return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Feature Collection"]},e)),Promise.resolve(this)}read(e,t){"featureCollection"in e&&(e=(0,l.o8)(e),Object.assign(e,e.featureCollection)),super.read(e,t)}async beforeSave(){if(null==this.sublayers)return;let e=null;const t=[];for(const n of this.sublayers)for(const r of n.graphics)if(null!=r.geometry){const n=r.geometry;e?(0,b.aI)(n.spatialReference,e)||((0,h.canProjectWithoutEngine)(n.spatialReference,e)||(0,h.isLoaded)()||await(0,h.load)(),r.geometry=(0,h.project)(n,e)):e=n.spatialReference,t.push(r)}const n=await(0,S.el)(t.map((e=>e.geometry)));t.forEach(((e,t)=>e.geometry=n[t]))}_findSublayer(e){return null==this.sublayers?null:this.sublayers?.find((t=>t.id===e))??null}_writeMapNoteSublayer(e,t,n,r,o,i,s){const a=[];if(null!=t){for(const e of t.graphics)this._writeMapNote(a,e,n.geometryType,s);this._normalizeObjectIds(a,z),e.push({layerDefinition:{name:t.title,drawingInfo:{renderer:{type:"simple",symbol:(0,l.o8)(n.identifyingSymbol)}},id:t.layerId,geometryType:n.geometryTypeJSON,minScale:r,maxScale:o,objectIdField:"OBJECTID",fields:[z.toJSON(),F.toJSON()],spatialReference:i},featureSet:{features:a,geometryType:n.geometryTypeJSON}})}}_writeMapNote(e,t,n,r){if(null==t)return;const{geometry:o,symbol:i,popupTemplate:s}=t;if(null==o)return;if(o.type!==n)return void r?.messages?.push(new u.A("map-notes-layer:invalid-geometry-type",`Geometry "${o.type}" cannot be saved in "${n}" layer`,{graphic:t}));if(null==i)return void r?.messages?.push(new u.A("map-notes-layer:no-symbol","Skipping map notes with no symbol",{graphic:t}));const l={attributes:{...t.attributes},geometry:o.toJSON(),symbol:i.toJSON()};null!=s&&(l.popupInfo=s.toJSON()),e.push(l)}_normalizeObjectIds(e,t){const n=t.name;let r=(0,v.H)(n,e)+1;const o=new Set;for(const t of e){t.attributes||(t.attributes={});const{attributes:e}=t;(null==e[n]||o.has(e[n]))&&(e[n]=r++),o.add(e[n])}}};(0,r._)([(0,y.MZ)({readOnly:!0})],$.prototype,"capabilities",void 0),(0,r._)([(0,c.w)(["portal-item","web-map"],"capabilities",["layers"])],$.prototype,"readCapabilities",null),(0,r._)([(0,y.MZ)({readOnly:!0})],$.prototype,"featureCollections",void 0),(0,r._)([(0,c.w)(["web-map","portal-item"],"featureCollections",["layers"])],$.prototype,"readFeatureCollections",null),(0,r._)([(0,y.MZ)({readOnly:!0,json:{origins:{"web-map":{write:{enabled:!0,target:"featureCollection"}}}}})],$.prototype,"featureCollectionJSON",void 0),(0,r._)([(0,c.w)(["web-map","portal-item"],"featureCollectionJSON",["featureCollection"])],$.prototype,"readLegacyfeatureCollectionJSON",null),(0,r._)([(0,y.MZ)({readOnly:!0,json:{read:!0,write:{enabled:!0,ignoreOrigin:!0}}})],$.prototype,"featureCollectionType",void 0),(0,r._)([(0,y.MZ)({readOnly:!0})],$.prototype,"fullExtent",null),(0,r._)([(0,y.MZ)({readOnly:!0,json:{origins:{"web-map":{write:{target:"featureCollection.showLegend",overridePolicy(){return{enabled:null!=this.featureCollectionJSON}}}}}}})],$.prototype,"legendEnabled",void 0),(0,r._)([(0,y.MZ)({type:["show","hide","hide-children"]})],$.prototype,"listMode",void 0),(0,r._)([(0,y.MZ)({type:Number,nonNullable:!0,json:{write:!1}})],$.prototype,"minScale",void 0),(0,r._)([(0,c.w)(["web-map","portal-item"],"minScale",["layers"])],$.prototype,"readMinScale",null),(0,r._)([(0,y.MZ)({type:Number,nonNullable:!0,json:{write:!1}})],$.prototype,"maxScale",void 0),(0,r._)([(0,c.w)(["web-map","portal-item"],"maxScale",["layers"])],$.prototype,"readMaxScale",null),(0,r._)([(0,y.MZ)({readOnly:!0})],$.prototype,"multipointLayer",null),(0,r._)([(0,y.MZ)({value:"ArcGISFeatureLayer",type:["ArcGISFeatureLayer"]})],$.prototype,"operationalLayerType",void 0),(0,r._)([(0,y.MZ)({readOnly:!0})],$.prototype,"pointLayer",null),(0,r._)([(0,y.MZ)({readOnly:!0})],$.prototype,"polygonLayer",null),(0,r._)([(0,y.MZ)({readOnly:!0})],$.prototype,"polylineLayer",null),(0,r._)([(0,y.MZ)({type:g.A})],$.prototype,"spatialReference",void 0),(0,r._)([(0,c.w)(["web-map","portal-item"],"spatialReference",["layers"])],$.prototype,"readSpatialReference",null),(0,r._)([(0,y.MZ)({readOnly:!0,json:{origins:{"web-map":{write:{ignoreOrigin:!0}}}}})],$.prototype,"sublayers",void 0),(0,r._)([(0,c.w)("web-map","sublayers",["layers"])],$.prototype,"readSublayers",null),(0,r._)([(0,d.K)("web-map","sublayers")],$.prototype,"writeSublayers",null),(0,r._)([(0,y.MZ)({readOnly:!0})],$.prototype,"textLayer",null),(0,r._)([(0,y.MZ)()],$.prototype,"title",void 0),(0,r._)([(0,y.MZ)({readOnly:!0,json:{read:!1}})],$.prototype,"type",void 0),$=(0,r._)([(0,f.$)("esri.layers.MapNotesLayer")],$);const D=$},33032:(e,t,n)=>{n.d(t,{H:()=>o,L:()=>r});const r=1;function o(e,t){let n=0;for(const r of t){const t=r.attributes?.[e];"number"==typeof t&&isFinite(t)&&(n=Math.max(n,t))}return n}},32756:(e,t,n)=>{n.d(t,{Rr:()=>a,fY:()=>u,ne:()=>p});var r=n(90237),o=n(93637),i=n(10107),s=(n(44208),n(53966),n(87811),n(40608)),l=n(91880);function a(e,t,n){if(!e)return null;const r=e.find((e=>!!e.field));if(!r)return null;const o=new l.A;return o.read(r,n),[o]}const p={type:[l.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:a},write:{writer:function(e,t,n,r){const i=e.find((e=>!!e.field));i&&(0,o.sM)(n,[i.toJSON()],t)}}}},u=e=>{let t=class extends e{constructor(){super(...arguments),this.orderBy=null}};return(0,r._)([(0,i.MZ)(p)],t.prototype,"orderBy",void 0),t=(0,r._)([(0,s.$)("esri.layers.mixins.OrderedLayer")],t),t}},33143:(e,t,n)=>{n.d(t,{A:()=>f});var r=n(90237),o=n(69540),i=n(25482),s=n(10107),l=(n(44208),n(53966),n(87811),n(36005)),a=n(40608),p=n(43937),u=n(80451),y=n(29005);let c=class extends(o.A.ClonableMixin(i.A)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const n of Object.keys(e))t[n]=(0,u.rS)(e[n]);return t}writeDomains(e,t){const n={};for(const t of Object.keys(e))e[t]&&(n[t]=e[t]?.toJSON());t.domains=n}};(0,r._)([(0,s.MZ)({json:{write:!0}})],c.prototype,"id",void 0),(0,r._)([(0,s.MZ)({json:{write:!0}})],c.prototype,"name",void 0),(0,r._)([(0,s.MZ)({json:{write:!0}})],c.prototype,"domains",void 0),(0,r._)([(0,l.w)("domains")],c.prototype,"readDomains",null),(0,r._)([(0,p.K)("domains")],c.prototype,"writeDomains",null),(0,r._)([(0,s.MZ)({type:[y.A],json:{write:!0}})],c.prototype,"templates",void 0),c=(0,r._)([(0,a.$)("esri.layers.support.FeatureType")],c);const f=c},91880:(e,t,n)=>{n.d(t,{A:()=>y});var r,o=n(90237),i=n(66552),s=n(25482),l=n(10107),a=(n(44208),n(53966),n(87811),n(40608));const p=new i.J({asc:"ascending",desc:"descending"});let u=r=class extends s.A{constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new r({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,o._)([(0,l.MZ)({type:String,json:{write:!0}})],u.prototype,"field",void 0),(0,o._)([(0,l.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],u.prototype,"valueExpression",void 0),(0,o._)([(0,l.MZ)({type:p.apiValues,json:{type:p.jsonValues,read:p.read,write:p.write}})],u.prototype,"order",void 0),u=r=(0,o._)([(0,a.$)("esri.layers.support.OrderByInfo")],u);const y=u},41560:(e,t,n)=>{n.d(t,{Ch:()=>s,mW:()=>i});var r=n(34727),o=n(39516);function i(e,t){return{...t,filterMode:e.mode}}function s(e,t,n){const i=function(e){if("manual"===p(e))return null;const t=[Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY];for(const{minScale:n,maxScale:r}of e.filters)t[0]=Math.max(t[0],u(n)),t[1]=Math.min(t[1],y(r));return t}(e);if(i&&((0,r.gg)(t,i[0])||(0,r.ZH)(n,i[1])))return"";const s=Array.from(l(e,t,n)),a=function(e,t,n){if(0===e.length)return!0;const o=u(e.at(0)?.minScale),i=y(e.at(-1)?.maxScale);if((0,r.ZH)(o,t)||(0,r.gg)(i,n))return!0;for(let t=0;t<e.length-1;t++){const n=e[t],o=e[t+1];if((0,r.ZH)(u(o.minScale),y(n.maxScale)))return!0}return!1}(s,t,n)?"1=1":s.map((e=>e.where||"1=1")).reduce(((e,t)=>(0,o.IW)(e,t)),"");return a&&"1=1"!==a?a:""}function*l(e,t,n){if("manual"===p(e)){const t=e.filters.find((t=>t.id===e.activeFilterId));t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(const r of e.filters)a(r.minScale,r.maxScale,t,n)&&(yield r)}}function a(e,t,n,o){return e=u(e),n=u(n),t=y(t),!(!(0,r.Sp)(n,e)&&(o??n)>e||(0,r.Hx)(t,n)||void 0!==o&&(0,r.Sp)(o,e))}function p(e){return"mode"in e?e.mode:e.filterMode}function u(e){return e||Number.POSITIVE_INFINITY}function y(e){return e||0}},32730:(e,t,n)=>{n.d(t,{BI:()=>h,D3:()=>d,XJ:()=>m,lc:()=>f,mX:()=>w,rU:()=>g,tH:()=>M});var r=n(799);const o="__begin__",i="__end__",s=new RegExp(o,"ig"),l=new RegExp(i,"ig"),a=new RegExp("^"+o,"i"),p=new RegExp(i+"$","i"),u='"',y=u+" + ",c=" + "+u;function f(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function d(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function m(e){const t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=f(e.labelExpression),t.type="conventional"),t}function h(e){const t=m(e);if(!t)return null;switch(t.type){case"conventional":return w(t.expression);case"arcade":return t.expression}return null}function g(e){const t=m(e);if(!t)return null;switch(t.type){case"conventional":return function(e){const t=e?.match(S);return t?.[1].trim()||null}(t.expression);case"arcade":return M(t.expression)}return null}function w(e){let t;return e?(t=(0,r.HC)(e,(e=>o+'$feature["'+e+'"]'+i)),t=a.test(t)?t.replace(a,""):u+t,t=p.test(t)?t.replace(p,""):t+u,t=t.replaceAll(s,y).replaceAll(l,c)):t='""',t}const S=/^\s*\{([^}]+)\}\s*$/i,b=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,_=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,x=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function M(e){if(!e)return null;let t=b.exec(e)||_.exec(e);return t?t[1]||t[3]:(t=x.exec(e),t?t[2]:null)}},92300:(e,t,n)=>{n.d(t,{V:()=>i,X:()=>o});var r=n(65864);function o(e){return{geometryType:(0,r.$B)(e[0]),geometries:e.map((e=>e.toJSON()))}}function i(e,t,n){const o=(0,r.xD)(t);return e.map((e=>{const t=o.fromJSON(e);return t.spatialReference=n,t}))}},58501:(e,t,n)=>{n.d(t,{q:()=>o});var r=n(62815);function o(e,t,n){if(!n?.features||!n.hasZ)return;const o=(0,r.N)(n.geometryType,t,e.outSpatialReference);if(null!=o)for(const e of n.features)o(e.geometry)}},22671:(e,t,n)=>{n.d(t,{A:()=>S});var r,o=n(90237),i=n(52106),s=n(66552),l=n(25482),a=n(4718),p=n(10107),u=(n(44208),n(53966),n(36005)),y=n(40608),c=n(43937),f=n(16930),d=n(65864),m=n(50498),h=n(20437);const g=new s.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let w=r=class extends l.A{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,i.A)}writeGeometryType(e,t,n,r){if(e)return void g.write(e,t,n,r);const{features:o}=this;if(o)for(const e of o)if(null!=e?.geometry)return void g.write(e.geometry.type,t,n,r)}readQueryGeometry(e,t){if(!e)return null;const n=!!e.spatialReference,r=(0,d.rS)(e);return r&&!n&&t.spatialReference&&(r.spatialReference=f.A.fromJSON(t.spatialReference)),r}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:n}=this;if(n)for(const e of n)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new r(this.cloneProperties())}cloneProperties(){return(0,a.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let n=0;n<t.features.length;n++){const r=t.features[n];if(r.geometry){const t=e?.[n];r.geometry=t?.toJSON()||r.geometry}}return t}quantize(e){const{scale:[t,n],translate:[r,o]}=e,i=this.features,s=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-r)/t)),(e=>Math.round((o-e)/n)));for(let e=0,t=i.length;e<t;e++)s?.(i[e].geometry)||(i.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:n}=this;if(!n)return this;const{translate:[r,o],scale:[i,s]}=n;let l=null,a=null;if(this.hasZ&&null!=n?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=n;l=n=>n*t+e}if(this.hasM&&null!=n?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=n;a=n=>null==n?n:n*t+e}const p=this._getHydrationFunction(e,(e=>e*i+r),(e=>o-e*s),l,a);for(const{geometry:e}of t)null!=e&&p&&p(e);return this.transform=null,this}readFeaturesWithClass(e,t,n){const r=f.A.fromJSON(t.spatialReference),o=[];for(let t=0;t<e.length;t++){const i=e[t],s=n.fromJSON(i),l=i.geometry?.spatialReference;null==s.geometry||l||(s.geometry.spatialReference=r);const a=i.aggregateGeometries,p=s.aggregateGeometries;if(a&&null!=p)for(const e in p){const t=p[e],n=a[e],o=n?.spatialReference;null==t||o||(t.spatialReference=r)}o.push(s)}return o}_quantizePoints(e,t,n){let r,o;const i=[];for(let s=0,l=e.length;s<l;s++){const l=e[s];if(s>0){const e=t(l[0]),s=n(l[1]);e===r&&s===o||(i.push([e-r,s-o]),r=e,o=s)}else r=t(l[0]),o=n(l[1]),i.push([r,o])}return i.length>0?i:null}_getQuantizationFunction(e,t,n){return"point"===e?e=>(e.x=t(e.x),e.y=n(e.y),e):"polyline"===e||"polygon"===e?e=>{const r=(0,d.Bi)(e)?e.rings:e.paths,o=[];for(let e=0,i=r.length;e<i;e++){const i=r[e],s=this._quantizePoints(i,t,n);s&&o.push(s)}return o.length>0?((0,d.Bi)(e)?e.rings=o:e.paths=o,e):null}:"multipoint"===e?e=>{const r=this._quantizePoints(e.points,t,n);return r&&r.length>0?(e.points=r,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,n,r,o){return"point"===e?e=>{e.x=t(e.x),e.y=n(e.y),r&&(e.z=r(e.z))}:"polyline"===e||"polygon"===e?e=>{const i=(0,d.Bi)(e)?e.rings:e.paths;let s,l;for(let e=0,r=i.length;e<r;e++){const r=i[e];for(let e=0,o=r.length;e<o;e++){const o=r[e];e>0?(s+=o[0],l+=o[1]):(s=o[0],l=o[1]),o[0]=t(s),o[1]=n(l)}}if(r&&o)for(let e=0,t=i.length;e<t;e++){const t=i[e];for(let e=0,n=t.length;e<n;e++){const n=t[e];n[2]=r(n[2]),n[3]=o(n[3])}}else if(r)for(let e=0,t=i.length;e<t;e++){const t=i[e];for(let e=0,n=t.length;e<n;e++){const n=t[e];n[2]=r(n[2])}}else if(o)for(let e=0,t=i.length;e<t;e++){const t=i[e];for(let e=0,n=t.length;e<n;e++){const n=t[e];n[2]=o(n[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=n(e.ymin),e.xmax=t(e.xmax),e.ymax=n(e.ymax),r&&null!=e.zmax&&null!=e.zmin&&(e.zmax=r(e.zmax),e.zmin=r(e.zmin)),o&&null!=e.mmax&&null!=e.mmin&&(e.mmax=o(e.mmax),e.mmin=o(e.mmin))}:"multipoint"===e?e=>{const i=e.points;let s,l;for(let e=0,r=i.length;e<r;e++){const r=i[e];e>0?(s+=r[0],l+=r[1]):(s=r[0],l=r[1]),r[0]=t(s),r[1]=n(l)}if(r&&o)for(let e=0,t=i.length;e<t;e++){const t=i[e];t[2]=r(t[2]),t[3]=o(t[3])}else if(r)for(let e=0,t=i.length;e<t;e++){const t=i[e];t[2]=r(t[2])}else if(o)for(let e=0,t=i.length;e<t;e++){const t=i[e];t[2]=o(t[2])}}:null}};(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],w.prototype,"displayFieldName",void 0),(0,o._)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"exceededTransferLimit",void 0),(0,o._)([(0,p.MZ)({type:[i.A],json:{write:!0}})],w.prototype,"features",void 0),(0,o._)([(0,u.w)("features")],w.prototype,"readFeatures",null),(0,o._)([(0,p.MZ)({type:[h.A],json:{write:!0}})],w.prototype,"fields",void 0),(0,o._)([(0,p.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],w.prototype,"geometryType",void 0),(0,o._)([(0,c.K)("geometryType")],w.prototype,"writeGeometryType",null),(0,o._)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasM",void 0),(0,o._)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasZ",void 0),(0,o._)([(0,p.MZ)({types:m.yR,json:{write:!0}})],w.prototype,"queryGeometry",void 0),(0,o._)([(0,u.w)("queryGeometry")],w.prototype,"readQueryGeometry",null),(0,o._)([(0,p.MZ)({type:f.A,json:{write:!0}})],w.prototype,"spatialReference",void 0),(0,o._)([(0,c.K)("spatialReference")],w.prototype,"writeSpatialReference",null),(0,o._)([(0,p.MZ)({json:{write:!0}})],w.prototype,"transform",void 0),w=r=(0,o._)([(0,y.$)("esri.rest.support.FeatureSet")],w),w.prototype.toJSON.isDefaultToJSON=!0;const S=w},41366:(e,t,n)=>{n.d(t,{K:()=>c,Q:()=>p});var r=n(90237),o=n(66552),i=n(53966),s=n(10107),l=(n(44208),n(87811),n(93223)),a=n(40608);const p=(0,o.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),u="percent-of-total",y="field",c=e=>{let t=class extends e{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,n=null!=this.normalizationTotal;return t||n?(e=t&&y||n&&u||null,t&&n&&i.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==y&&e!==u||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,r._)([(0,s.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],t.prototype,"normalizationField",void 0),(0,r._)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],t.prototype,"normalizationMaxValue",void 0),(0,r._)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],t.prototype,"normalizationMinValue",void 0),(0,r._)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],t.prototype,"normalizationTotal",void 0),(0,r._)([(0,l.e)(p,{name:"parameters.normalizationType"})],t.prototype,"normalizationType",null),t=(0,r._)([(0,a.$)("esri.rest.support.NormalizationBinParametersMixin")],t),t}},2272:(e,t,n)=>{n.d(t,{Dl:()=>s,jV:()=>i,lF:()=>l}),n(92602),n(70333);var r=n(4718),o=n(84952);function i(e,t){return t?{...t,query:{...e??{},...t.query}}:{query:e}}function s(e){return"string"==typeof e?(0,o.An)(e):(0,r.o8)(e)}function l(e,t,n){const r={};for(const o in e){if("declaredClass"===o)continue;const i=e[o];if(null!=i&&"function"!=typeof i)if(Array.isArray(i))r[o]=i.map((e=>l(e)));else if("object"==typeof i)if(i.toJSON){const e=i.toJSON(n?.[o]);r[o]=t?e:JSON.stringify(e)}else r[o]=t?i:JSON.stringify(i);else r[o]=i}return r}n(926)},92935:(e,t,n)=>{var r;n.d(t,{X:()=>r}),function(e){e[e.SAVE=0]="SAVE",e[e.SAVE_AS=1]="SAVE_AS"}(r||(r={}))}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[697,3200,6928,7136,8430,9340],{39516:(e,t,n)=>{let r;async function o(){return null==r&&(r=n.e(4123).then(n.bind(n,44123)).then((e=>new e.WhereClauseCache(500,500)))),r}async function i(e,t){const n=await o(),r=n.get(e,t);if(null==r)throw n.getError(e,t);return r}function s(e,t){return e||=null,t||=null,"1=1"===e?t??e:"1=1"===t?e??t:e&&t?`(${e}) AND (${t})`:e??t}function l(e,t){return e||=null,t||=null,"1=1"===e||"1=1"===t||e===t?"1=1"===e?e:t:e&&t?`(${e}) OR (${t})`:e??t}n.d(t,{GP:()=>i,IW:()=>l,mA:()=>s})},13069:(e,t,n)=>{n.d(t,{AG:()=>l,lk:()=>o,vD:()=>s,yS:()=>i});const r="randomUUID"in crypto;function o(){if(r)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function i(){return`{${o().toUpperCase()}}`}function s(){return`{${o()}}`}function l(e){const t=e.toUpperCase();return"{"!==e[0]?`{${t}}`:t}},17136:(e,t,n)=>{n.d(t,{O7:()=>M,el:()=>x});var r=n(92602),o=n(49186),i=n(53966),s=n(39829),l=n(82799),a=n(80754),p=n(21325),u=n(28735),y=n(78888),c=n(65864),f=n(2272),d=n(84952),m=n(92300);const h=()=>i.A.getLogger("esri.geometry.support.normalizeUtils");function g(e){return"polygon"===e[0].type}function w(e){return"polyline"===e[0].type}function S(e,t,n){if(t){const t=function(e,t){if(!(e instanceof l.A||e instanceof s.A)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw h().error(e),new o.A(e)}const n=(0,a.r8)(e),r=[];for(const e of n){const n=[];r.push(n),n.push([e[0][0],e[0][1]]);for(let r=0;r<e.length-1;r++){const o=e[r][0],i=e[r][1],s=e[r+1][0],l=e[r+1][1],a=Math.sqrt((s-o)*(s-o)+(l-i)*(l-i)),p=(l-i)/a,u=(s-o)/a,y=a/t;if(y>1){for(let e=1;e<=y-1;e++){const r=e*t,s=u*r+o,l=p*r+i;n.push([s,l])}const e=(a+Math.floor(y-1)*t)/2,r=u*e+o,s=p*e+i;n.push([r,s])}n.push([s,l])}}return function(e){return"polygon"===e.type}(e)?new s.A({rings:r,spatialReference:e.spatialReference}):new l.A({paths:r,spatialReference:e.spatialReference})}(e,1e6);e=(0,u.ci)(t,!0)}return n&&(e=(0,a.kS)(e,n)),e}function b(e,t,n){if(Array.isArray(e)){const r=e[0];if(r>t){const n=(0,a.kd)(r,t);e[0]=r+n*(-2*t)}else if(r<n){const t=(0,a.kd)(r,n);e[0]=r+t*(-2*n)}}else{const r=e.x;if(r>t){const n=(0,a.kd)(r,t);e=e.clone().offset(n*(-2*t),0)}else if(r<n){const t=(0,a.kd)(r,n);e=e.clone().offset(t*(-2*n),0)}}return e}function _(e,t){let n=-1;for(let r=0;r<t.cutIndexes.length;r++){const o=t.cutIndexes[r],i=t.geometries[r],s=(0,a.r8)(i);for(let e=0;e<s.length;e++){const t=s[e];t.some((n=>{if(n[0]<180)return!0;{let n=0;for(let e=0;e<t.length;e++){const r=t[e][0];n=r>n?r:n}n=Number(n.toFixed(9));const r=-360*(0,a.kd)(n,180);for(let n=0;n<t.length;n++){const t=i.getPoint(e,n);i.setPoint(e,n,t.clone().offset(r,0))}return!0}}))}if(o===n){if(g(e))for(const t of(0,a.r8)(i))e[o]=e[o].addRing(t);else if(w(e))for(const t of(0,a.r8)(i))e[o]=e[o].addPath(t)}else n=o,e[o]=i}return e}async function x(e,t,n){if(!Array.isArray(e))return x([e],t);t&&"string"!=typeof t&&h().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const o="string"==typeof t?t:t?.url??r.A.geometryServiceUrl;let i,g,w,M,v,A,N,O,T=0;const R=[],Z=[];for(const t of e)if(null!=t)if(i||(i=t.spatialReference,g=(0,p.Vp)(i),w=i.isWebMercator,A=w?102100:4326,M=a.j7[A].maxX,v=a.j7[A].minX,N=a.j7[A].plus180Line,O=a.j7[A].minus180Line),g)if("mesh"===t.type)Z.push(t);else if("point"===t.type)Z.push(b(t.clone(),M,v));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map((e=>b(e,M,v))),Z.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,g);Z.push(e.rings?new s.A(e):e)}else if(t.extent){const e=t.extent,n=(0,a.kd)(e.xmin,v)*(2*M);let r=0===n?t.clone():(0,a.kS)(t.clone(),n);e.offset(n,0);let{xmin:o,xmax:i}=e;o=Number(o.toFixed(9)),i=Number(i.toFixed(9)),e.intersects(N)&&i!==M?(T=i>T?i:T,r=S(r,w),R.push(r),Z.push("cut")):e.intersects(O)&&o!==v?(T=i*(2*M)>T?i*(2*M):T,r=S(r,w,360),R.push(r),Z.push("cut")):Z.push(r)}else Z.push(t.clone());else Z.push(t);else Z.push(t);let I=(0,a.kd)(T,M),j=-90;const J=I,L=new l.A;for(;I>0;){const e=360*I-180;L.addPath([[e,j],[e,-1*j]]),j*=-1,I--}if(R.length>0&&J>0){const t=_(R,await async function(e,t,n,r){const o=(0,f.Dl)(e),i=t[0].spatialReference,s={...r,responseType:"json",query:{...o.query,f:"json",sr:(0,p.YX)(i),target:JSON.stringify({geometryType:(0,c.$B)(t[0]),geometries:t}),cutter:JSON.stringify(n)}},l=await(0,y.A)(o.path+"/cut",s),{cutIndexes:a,geometries:u=[]}=l.data;return{cutIndexes:a,geometries:u.map((e=>{const t=(0,c.rS)(e);return t.spatialReference=i,t}))}}(o,R,L,n)),r=[],i=[];for(let n=0;n<Z.length;n++){const o=Z[n];if("cut"!==o)i.push(o);else{const o=t.shift(),s=e[n];null!=s&&"polygon"===s.type&&s.rings&&s.rings.length>1&&o.rings.length>=s.rings.length?(r.push(o),i.push("simplify")):i.push(w?(0,u.Gh)(o):o)}}if(!r.length)return i;const s=await async function(e,t,n){const r="string"==typeof e?(0,d.An)(e):e,o=t[0].spatialReference,i=(0,c.$B)(t[0]),s={...n,query:{...r.query,f:"json",sr:(0,p.YX)(o),geometries:JSON.stringify((0,m.X)(t))}},{data:l}=await(0,y.A)(r.path+"/simplify",s);return(0,m.V)(l.geometries,i,o)}(o,r,n),l=[];for(let e=0;e<i.length;e++){const t=i[e];"simplify"!==t?l.push(t):l.push(w?(0,u.Gh)(s.shift()):s.shift())}return l}const E=[];for(let e=0;e<Z.length;e++){const t=Z[e];if("cut"!==t)E.push(t);else{const e=R.shift();E.push(!0===w?(0,u.Gh)(e):e)}}return E}function M(e,t,n){const r=(0,p.Vp)(n);if(null==r)return e;const[o,i]=r.valid,s=2*i;let l=0,a=0;t>i?l=Math.ceil(Math.abs(t-i)/s):t<o&&(l=-Math.ceil(Math.abs(t-o)/s)),e>i?a=Math.ceil(Math.abs(e-i)/s):e<o&&(a=-Math.ceil(Math.abs(e-o)/s));let u=e+(l-a)*s;const y=u-t;return y>i?u-=s:y<o&&(u+=s),u}},80754:(e,t,n)=>{n.d(t,{j7:()=>s,kS:()=>a,kd:()=>l,r8:()=>p});var r=n(82799),o=n(16930),i=n(65864);const s={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:o.A.WebMercator}),minus180Line:new r.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:o.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.A({paths:[[[180,-180],[180,180]]],spatialReference:o.A.WGS84}),minus180Line:new r.A({paths:[[[-180,-180],[-180,180]]],spatialReference:o.A.WGS84})}};function l(e,t){return Math.ceil((e-t)/(2*t))}function a(e,t){const n=p(e);for(const e of n)for(const n of e)n[0]+=t;return e}function p(e){return(0,i.Bi)(e)?e.rings:e.paths}},94194:(e,t,n)=>{n.d(t,{A:()=>b});var r=n(90237),o=n(10107),i=(n(44208),n(53966),n(87811),n(40608)),s=n(5503),l=n(62885);let a=class extends s.A{constructor(e){super(e),this.addHandles([this.on("before-add",(e=>{null==e.item&&e.preventDefault()})),this.on("after-add",(e=>this._own(e.item))),this.on("after-remove",(e=>this._release(e.item)))])}get owner(){return this._get("owner")}set owner(e){e!==this._get("owner")&&(this._releaseAll(),this._set("owner",e),this._ownAll())}_ownAll(){for(const e of this.items)this._own(e)}_releaseAll(){for(const e of this.items)this._release(e)}_createNewInstance(e){return this.itemType?new(s.A.ofType(this.itemType.Type))(e):new s.A(e)}};(0,r._)([(0,o.MZ)()],a.prototype,"owner",null),a=(0,r._)([(0,i.$)("esri.core.support.OwningCollection")],a);var p=n(4146),u=n(63074),y=n(25036),c=n(52106),f=n(56507),d=(n(49186),n(7695));let m=class extends a{_own(e){e.layer&&"remove"in e.layer&&e.layer!==this.owner&&e.layer.remove(e),e.layer=this.owner}_release(e){e.layer===this.owner&&(e.layer=null)}};(0,r._)([(0,d.u)({Type:c.A,ensureType:(0,f.dp)(c.A)})],m.prototype,"itemType",void 0),m=(0,r._)([(0,i.$)("esri.support.GraphicsCollection")],m);var h=n(88625);let g=class extends((0,u.dM)((0,y.j)(p.A))){constructor(e){super(e),this.elevationInfo=null,this.graphics=new m,this.screenSizePerspectiveEnabled=!0,this.type="graphics",this.internal=!1}destroy(){this.removeAll(),this.graphics.destroy()}add(e){return this.graphics.add(e),this}addMany(e){return this.graphics.addMany(e),this}removeAll(){return this.graphics.removeAll(),this}remove(e){this.graphics.remove(e)}removeMany(e){this.graphics.removeMany(e)}on(e,t){return super.on(e,t)}graphicChanged(e){this.emit("graphic-update",e)}};var w,S;(0,r._)([(0,o.MZ)({type:h.A})],g.prototype,"elevationInfo",void 0),(0,r._)([(0,o.MZ)((w=m,S="graphics",{type:w,cast:l.H,set(e){const t=(0,l.V)(e,this._get(S),w);t.owner=this,this._set(S,t)}}))],g.prototype,"graphics",void 0),(0,r._)([(0,o.MZ)({type:["show","hide"]})],g.prototype,"listMode",void 0),(0,r._)([(0,o.MZ)()],g.prototype,"screenSizePerspectiveEnabled",void 0),(0,r._)([(0,o.MZ)({readOnly:!0})],g.prototype,"type",void 0),(0,r._)([(0,o.MZ)({constructOnly:!0})],g.prototype,"internal",void 0),g=(0,r._)([(0,i.$)("esri.layers.GraphicsLayer")],g);const b=g},96953:(e,t,n)=>{n.r(t),n.d(t,{default:()=>D});var r=n(90237),o=n(52106),i=n(5503),s=n(49186),l=n(4718),a=n(92071),p=n(93637),u=n(67076),y=n(10107),c=(n(44208),n(53966),n(36005)),f=n(40608),d=n(43937),m=n(5443),h=n(57251),g=n(16930),w=n(19419),S=n(17136),b=n(21325),_=n(13600),x=n(94194),M=n(4146),v=n(33032),A=n(63074),N=n(16131),O=n(8303),T=n(25036),R=n(20437),Z=n(94985),I=n(31593),j=n(53930),J=n(68249);function L(e){return"markup"===e.featureCollectionType||e.layers.some((e=>null!=e.layerDefinition.visibilityField||!E(e)))}function E({layerDefinition:e,featureSet:t}){const n=e.geometryType??t.geometryType;return P.find((t=>n===t.geometryTypeJSON&&e.drawingInfo?.renderer?.symbol?.type===t.identifyingSymbol.type))}function C(){return new m.A({xmin:-180,ymin:-90,xmax:180,ymax:90})}const z=new R.A({name:"OBJECTID",alias:"OBJECTID",type:"oid",nullable:!1,editable:!1}),F=new R.A({name:"title",alias:"Title",type:"string",nullable:!0,editable:!0,length:255});let G=class extends x.A{constructor(e){super(e),this.visibilityMode="inherited"}initialize(){for(const e of this.graphics)e.sourceLayer=this.layer;this.graphics.on("after-add",(e=>{e.item.sourceLayer=this.layer})),this.graphics.on("after-remove",(e=>{e.item.sourceLayer=null}))}get fullExtent(){const e=this.layer?.spatialReference,t=this.fullBounds;return e?null==t?(0,h.projectOrLoad)(C(),e).geometry:(0,w.w1)(t,e):null}get fullBounds(){const e=this.layer?.spatialReference;if(!e)return null;const t=(0,w.Ie)();return this.graphics.forEach((n=>{const r=null!=n.geometry?(0,h.projectOrLoad)(n.geometry,e).geometry:null;null!=r&&(0,w.fT)(t,"point"===r.type?r:r.extent,t)})),(0,w.aI)(t,w.qv)?null:t}get sublayers(){return this.graphics}};(0,r._)([(0,y.MZ)({readOnly:!0})],G.prototype,"fullExtent",null),(0,r._)([(0,y.MZ)({readOnly:!0})],G.prototype,"fullBounds",null),(0,r._)([(0,y.MZ)({readOnly:!0})],G.prototype,"sublayers",null),(0,r._)([(0,y.MZ)()],G.prototype,"layer",void 0),(0,r._)([(0,y.MZ)()],G.prototype,"layerId",void 0),(0,r._)([(0,y.MZ)({readOnly:!0})],G.prototype,"visibilityMode",void 0),G=(0,r._)([(0,f.$)("esri.layers.MapNotesLayer.MapNotesSublayer")],G);const P=[{geometryType:"polygon",geometryTypeJSON:"esriGeometryPolygon",id:"polygonLayer",layerId:0,title:"Polygons",identifyingSymbol:(new Z.A).toJSON()},{geometryType:"polyline",geometryTypeJSON:"esriGeometryPolyline",id:"polylineLayer",layerId:1,title:"Polylines",identifyingSymbol:(new I.A).toJSON()},{geometryType:"multipoint",geometryTypeJSON:"esriGeometryMultipoint",id:"multipointLayer",layerId:2,title:"Multipoints",identifyingSymbol:(new j.A).toJSON()},{geometryType:"point",geometryTypeJSON:"esriGeometryPoint",id:"pointLayer",layerId:3,title:"Points",identifyingSymbol:(new j.A).toJSON()},{geometryType:"point",geometryTypeJSON:"esriGeometryPoint",id:"textLayer",layerId:4,title:"Text",identifyingSymbol:(new J.A).toJSON()}];let $=class extends((0,A.dM)((0,T.j)((0,N.q)((0,O.A)((0,a.P)(M.A)))))){constructor(e){super(e),this.capabilities={operations:{supportsMapNotesEditing:!0}},this.featureCollections=null,this.featureCollectionJSON=null,this.featureCollectionType="notes",this.legendEnabled=!1,this.listMode="hide-children",this.minScale=0,this.maxScale=0,this.spatialReference=g.A.WGS84,this.sublayers=new i.A(P.map((e=>new G({id:e.id,layerId:e.layerId,title:e.title,layer:this})))),this.title="Map Notes",this.type="map-notes",this.visibilityMode="inherited"}readCapabilities(e,t,n){return{operations:{supportsMapNotesEditing:!L(t)&&"portal-item"!==n?.origin}}}readFeatureCollections(e,t,n){if(!L(t))return null;const r=t.layers.map((e=>{const t=new _.default;return t.read(e,n),t}));return new i.A({items:r})}readLegacyfeatureCollectionJSON(e,t){return L(t)?(0,l.o8)(t.featureCollection):null}get fullExtent(){const e=this.spatialReference,t=(0,w.Ie)();return null!=this.sublayers?this.sublayers.forEach((({fullBounds:e})=>null!=e?(0,w.fT)(t,e,t):t),t):this.featureCollectionJSON?.layers.some((e=>e.layerDefinition.extent))&&this.featureCollectionJSON.layers.forEach((n=>{const r=(0,h.projectOrLoad)(n.layerDefinition.extent,e).geometry;null!=r&&(0,w.fT)(t,r,t)})),(0,w.aI)(t,w.qv)?(0,h.projectOrLoad)(C(),e).geometry:(0,w.w1)(t,e)}readMinScale(e,t){for(const e of t.layers)if(null!=e.layerDefinition.minScale)return e.layerDefinition.minScale;return 0}readMaxScale(e,t){for(const e of t.layers)if(null!=e.layerDefinition.maxScale)return e.layerDefinition.maxScale;return 0}get multipointLayer(){return this._findSublayer("multipointLayer")}get pointLayer(){return this._findSublayer("pointLayer")}get polygonLayer(){return this._findSublayer("polygonLayer")}get polylineLayer(){return this._findSublayer("polylineLayer")}readSpatialReference(e,t){return t.layers.length?g.A.fromJSON(t.layers[0].layerDefinition.spatialReference):g.A.WGS84}readSublayers(e,t,n){if(L(t))return null;const r=[];let s=t.layers.reduce(((e,t)=>Math.max(e,t.layerDefinition.id??-1)),-1)+1;for(const e of t.layers){const{layerDefinition:t,featureSet:n}=e,i=t.id??s++,l=E(e);if(null!=l){const e=new G({id:l.id,title:t.name,layerId:i,layer:this,graphics:n.features.map((({geometry:e,symbol:t,attributes:n,popupInfo:r})=>o.A.fromJSON({attributes:n,geometry:e,symbol:t,popupTemplate:r})))});r.push(e)}}return new i.A(r)}writeSublayers(e,t,n,r){const{minScale:o,maxScale:i}=this;if(null==e)return;const l=e.some((e=>e.graphics.length>0));if(!this.capabilities.operations.supportsMapNotesEditing)return void(l&&r?.messages?.push(new s.A("map-notes-layer:editing-not-supported","New map notes cannot be added to this layer")));const a=[];let u=this.spatialReference.toJSON();e:for(const t of e)for(const e of t.graphics)if(null!=e.geometry){u=e.geometry.spatialReference.toJSON();break e}for(const t of P){const n=e.find((e=>t.id===e.id));this._writeMapNoteSublayer(a,n,t,o,i,u,r)}(0,p.sM)("featureCollection.layers",a,t)}get textLayer(){return this._findSublayer("textLayer")}load(e){return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Feature Collection"]},e)),Promise.resolve(this)}read(e,t){"featureCollection"in e&&(e=(0,l.o8)(e),Object.assign(e,e.featureCollection)),super.read(e,t)}async beforeSave(){if(null==this.sublayers)return;let e=null;const t=[];for(const n of this.sublayers)for(const r of n.graphics)if(null!=r.geometry){const n=r.geometry;e?(0,b.aI)(n.spatialReference,e)||((0,h.canProjectWithoutEngine)(n.spatialReference,e)||(0,h.isLoaded)()||await(0,h.load)(),r.geometry=(0,h.project)(n,e)):e=n.spatialReference,t.push(r)}const n=await(0,S.el)(t.map((e=>e.geometry)));t.forEach(((e,t)=>e.geometry=n[t]))}_findSublayer(e){return null==this.sublayers?null:this.sublayers?.find((t=>t.id===e))??null}_writeMapNoteSublayer(e,t,n,r,o,i,s){const a=[];if(null!=t){for(const e of t.graphics)this._writeMapNote(a,e,n.geometryType,s);this._normalizeObjectIds(a,z),e.push({layerDefinition:{name:t.title,drawingInfo:{renderer:{type:"simple",symbol:(0,l.o8)(n.identifyingSymbol)}},id:t.layerId,geometryType:n.geometryTypeJSON,minScale:r,maxScale:o,objectIdField:"OBJECTID",fields:[z.toJSON(),F.toJSON()],spatialReference:i},featureSet:{features:a,geometryType:n.geometryTypeJSON}})}}_writeMapNote(e,t,n,r){if(null==t)return;const{geometry:o,symbol:i,popupTemplate:s}=t;if(null==o)return;if(o.type!==n)return void r?.messages?.push(new u.A("map-notes-layer:invalid-geometry-type",`Geometry "${o.type}" cannot be saved in "${n}" layer`,{graphic:t}));if(null==i)return void r?.messages?.push(new u.A("map-notes-layer:no-symbol","Skipping map notes with no symbol",{graphic:t}));const l={attributes:{...t.attributes},geometry:o.toJSON(),symbol:i.toJSON()};null!=s&&(l.popupInfo=s.toJSON()),e.push(l)}_normalizeObjectIds(e,t){const n=t.name;let r=(0,v.H)(n,e)+1;const o=new Set;for(const t of e){t.attributes||(t.attributes={});const{attributes:e}=t;(null==e[n]||o.has(e[n]))&&(e[n]=r++),o.add(e[n])}}};(0,r._)([(0,y.MZ)({readOnly:!0})],$.prototype,"capabilities",void 0),(0,r._)([(0,c.w)(["portal-item","web-map"],"capabilities",["layers"])],$.prototype,"readCapabilities",null),(0,r._)([(0,y.MZ)({readOnly:!0})],$.prototype,"featureCollections",void 0),(0,r._)([(0,c.w)(["web-map","portal-item"],"featureCollections",["layers"])],$.prototype,"readFeatureCollections",null),(0,r._)([(0,y.MZ)({readOnly:!0,json:{origins:{"web-map":{write:{enabled:!0,target:"featureCollection"}}}}})],$.prototype,"featureCollectionJSON",void 0),(0,r._)([(0,c.w)(["web-map","portal-item"],"featureCollectionJSON",["featureCollection"])],$.prototype,"readLegacyfeatureCollectionJSON",null),(0,r._)([(0,y.MZ)({readOnly:!0,json:{read:!0,write:{enabled:!0,ignoreOrigin:!0}}})],$.prototype,"featureCollectionType",void 0),(0,r._)([(0,y.MZ)({readOnly:!0})],$.prototype,"fullExtent",null),(0,r._)([(0,y.MZ)({readOnly:!0,json:{origins:{"web-map":{write:{target:"featureCollection.showLegend",overridePolicy(){return{enabled:null!=this.featureCollectionJSON}}}}}}})],$.prototype,"legendEnabled",void 0),(0,r._)([(0,y.MZ)({type:["show","hide","hide-children"]})],$.prototype,"listMode",void 0),(0,r._)([(0,y.MZ)({type:Number,nonNullable:!0,json:{write:!1}})],$.prototype,"minScale",void 0),(0,r._)([(0,c.w)(["web-map","portal-item"],"minScale",["layers"])],$.prototype,"readMinScale",null),(0,r._)([(0,y.MZ)({type:Number,nonNullable:!0,json:{write:!1}})],$.prototype,"maxScale",void 0),(0,r._)([(0,c.w)(["web-map","portal-item"],"maxScale",["layers"])],$.prototype,"readMaxScale",null),(0,r._)([(0,y.MZ)({readOnly:!0})],$.prototype,"multipointLayer",null),(0,r._)([(0,y.MZ)({value:"ArcGISFeatureLayer",type:["ArcGISFeatureLayer"]})],$.prototype,"operationalLayerType",void 0),(0,r._)([(0,y.MZ)({readOnly:!0})],$.prototype,"pointLayer",null),(0,r._)([(0,y.MZ)({readOnly:!0})],$.prototype,"polygonLayer",null),(0,r._)([(0,y.MZ)({readOnly:!0})],$.prototype,"polylineLayer",null),(0,r._)([(0,y.MZ)({type:g.A})],$.prototype,"spatialReference",void 0),(0,r._)([(0,c.w)(["web-map","portal-item"],"spatialReference",["layers"])],$.prototype,"readSpatialReference",null),(0,r._)([(0,y.MZ)({readOnly:!0,json:{origins:{"web-map":{write:{ignoreOrigin:!0}}}}})],$.prototype,"sublayers",void 0),(0,r._)([(0,c.w)("web-map","sublayers",["layers"])],$.prototype,"readSublayers",null),(0,r._)([(0,d.K)("web-map","sublayers")],$.prototype,"writeSublayers",null),(0,r._)([(0,y.MZ)({readOnly:!0})],$.prototype,"textLayer",null),(0,r._)([(0,y.MZ)()],$.prototype,"title",void 0),(0,r._)([(0,y.MZ)({readOnly:!0,json:{read:!1}})],$.prototype,"type",void 0),$=(0,r._)([(0,f.$)("esri.layers.MapNotesLayer")],$);const D=$},33032:(e,t,n)=>{n.d(t,{H:()=>o,L:()=>r});const r=1;function o(e,t){let n=0;for(const r of t){const t=r.attributes?.[e];"number"==typeof t&&isFinite(t)&&(n=Math.max(n,t))}return n}},32756:(e,t,n)=>{n.d(t,{Rr:()=>a,fY:()=>u,ne:()=>p});var r=n(90237),o=n(93637),i=n(10107),s=(n(44208),n(53966),n(87811),n(40608)),l=n(91880);function a(e,t,n){if(!e)return null;const r=e.find((e=>!!e.field));if(!r)return null;const o=new l.A;return o.read(r,n),[o]}const p={type:[l.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:a},write:{writer:function(e,t,n,r){const i=e.find((e=>!!e.field));i&&(0,o.sM)(n,[i.toJSON()],t)}}}},u=e=>{let t=class extends e{constructor(){super(...arguments),this.orderBy=null}};return(0,r._)([(0,i.MZ)(p)],t.prototype,"orderBy",void 0),t=(0,r._)([(0,s.$)("esri.layers.mixins.OrderedLayer")],t),t}},33143:(e,t,n)=>{n.d(t,{A:()=>f});var r=n(90237),o=n(69540),i=n(25482),s=n(10107),l=(n(44208),n(53966),n(87811),n(36005)),a=n(40608),p=n(43937),u=n(80451),y=n(29005);let c=class extends(o.A.ClonableMixin(i.A)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const n of Object.keys(e))t[n]=(0,u.rS)(e[n]);return t}writeDomains(e,t){const n={};for(const t of Object.keys(e))e[t]&&(n[t]=e[t]?.toJSON());t.domains=n}};(0,r._)([(0,s.MZ)({json:{write:!0}})],c.prototype,"id",void 0),(0,r._)([(0,s.MZ)({json:{write:!0}})],c.prototype,"name",void 0),(0,r._)([(0,s.MZ)({json:{write:!0}})],c.prototype,"domains",void 0),(0,r._)([(0,l.w)("domains")],c.prototype,"readDomains",null),(0,r._)([(0,p.K)("domains")],c.prototype,"writeDomains",null),(0,r._)([(0,s.MZ)({type:[y.A],json:{write:!0}})],c.prototype,"templates",void 0),c=(0,r._)([(0,a.$)("esri.layers.support.FeatureType")],c);const f=c},91880:(e,t,n)=>{n.d(t,{A:()=>y});var r,o=n(90237),i=n(66552),s=n(25482),l=n(10107),a=(n(44208),n(53966),n(87811),n(40608));const p=new i.J({asc:"ascending",desc:"descending"});let u=r=class extends s.A{constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new r({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,o._)([(0,l.MZ)({type:String,json:{write:!0}})],u.prototype,"field",void 0),(0,o._)([(0,l.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],u.prototype,"valueExpression",void 0),(0,o._)([(0,l.MZ)({type:p.apiValues,json:{type:p.jsonValues,read:p.read,write:p.write}})],u.prototype,"order",void 0),u=r=(0,o._)([(0,a.$)("esri.layers.support.OrderByInfo")],u);const y=u},41560:(e,t,n)=>{n.d(t,{Ch:()=>s,mW:()=>i});var r=n(34727),o=n(39516);function i(e,t){return{...t,filterMode:e.mode}}function s(e,t,n){const i=function(e){if("manual"===p(e))return null;const t=[Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY];for(const{minScale:n,maxScale:r}of e.filters)t[0]=Math.max(t[0],u(n)),t[1]=Math.min(t[1],y(r));return t}(e);if(i&&((0,r.gg)(t,i[0])||(0,r.ZH)(n,i[1])))return"";const s=Array.from(l(e,t,n)),a=function(e,t,n){if(0===e.length)return!0;const o=u(e.at(0)?.minScale),i=y(e.at(-1)?.maxScale);if((0,r.ZH)(o,t)||(0,r.gg)(i,n))return!0;for(let t=0;t<e.length-1;t++){const n=e[t],o=e[t+1];if((0,r.ZH)(u(o.minScale),y(n.maxScale)))return!0}return!1}(s,t,n)?"1=1":s.map((e=>e.where||"1=1")).reduce(((e,t)=>(0,o.IW)(e,t)),"");return a&&"1=1"!==a?a:""}function*l(e,t,n){if("manual"===p(e)){const t=e.filters.find((t=>t.id===e.activeFilterId));t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(const r of e.filters)a(r.minScale,r.maxScale,t,n)&&(yield r)}}function a(e,t,n,o){return e=u(e),n=u(n),t=y(t),!(!(0,r.Sp)(n,e)&&(o??n)>e||(0,r.Hx)(t,n)||void 0!==o&&(0,r.Sp)(o,e))}function p(e){return"mode"in e?e.mode:e.filterMode}function u(e){return e||Number.POSITIVE_INFINITY}function y(e){return e||0}},32730:(e,t,n)=>{n.d(t,{BI:()=>h,D3:()=>d,XJ:()=>m,lc:()=>f,mX:()=>w,rU:()=>g,tH:()=>M});var r=n(799);const o="__begin__",i="__end__",s=new RegExp(o,"ig"),l=new RegExp(i,"ig"),a=new RegExp("^"+o,"i"),p=new RegExp(i+"$","i"),u='"',y=u+" + ",c=" + "+u;function f(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function d(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function m(e){const t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=f(e.labelExpression),t.type="conventional"),t}function h(e){const t=m(e);switch(t.type){case"conventional":return w(t.expression);case"arcade":return t.expression}return null}function g(e){const t=m(e);switch(t.type){case"conventional":return function(e){const t=e?.match(S);return t?.[1].trim()||null}(t.expression);case"arcade":return M(t.expression)}return null}function w(e){let t;return e?(t=(0,r.HC)(e,(e=>o+'$feature["'+e+'"]'+i)),t=a.test(t)?t.replace(a,""):u+t,t=p.test(t)?t.replace(p,""):t+u,t=t.replaceAll(s,y).replaceAll(l,c)):t='""',t}const S=/^\s*\{([^}]+)\}\s*$/i,b=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,_=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,x=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function M(e){if(!e)return null;let t=b.exec(e)||_.exec(e);return t?t[1]||t[3]:(t=x.exec(e),t?t[2]:null)}},92300:(e,t,n)=>{n.d(t,{V:()=>i,X:()=>o});var r=n(65864);function o(e){return{geometryType:(0,r.$B)(e[0]),geometries:e.map((e=>e.toJSON()))}}function i(e,t,n){const o=(0,r.xD)(t);return e.map((e=>{const t=o.fromJSON(e);return t.spatialReference=n,t}))}},58501:(e,t,n)=>{n.d(t,{q:()=>o});var r=n(62815);function o(e,t,n){if(!n?.features||!n.hasZ)return;const o=(0,r.N)(n.geometryType,t,e.outSpatialReference);if(null!=o)for(const e of n.features)o(e.geometry)}},22671:(e,t,n)=>{n.d(t,{A:()=>S});var r,o=n(90237),i=n(52106),s=n(66552),l=n(25482),a=n(4718),p=n(10107),u=(n(44208),n(53966),n(36005)),y=n(40608),c=n(43937),f=n(16930),d=n(65864),m=n(50498),h=n(20437);const g=new s.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let w=r=class extends l.A{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,i.A)}writeGeometryType(e,t,n,r){if(e)return void g.write(e,t,n,r);const{features:o}=this;if(o)for(const e of o)if(null!=e?.geometry)return void g.write(e.geometry.type,t,n,r)}readQueryGeometry(e,t){if(!e)return null;const n=!!e.spatialReference,r=(0,d.rS)(e);return r&&!n&&t.spatialReference&&(r.spatialReference=f.A.fromJSON(t.spatialReference)),r}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:n}=this;if(n)for(const e of n)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new r(this.cloneProperties())}cloneProperties(){return(0,a.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let n=0;n<t.features.length;n++){const r=t.features[n];if(r.geometry){const t=e?.[n];r.geometry=t?.toJSON()||r.geometry}}return t}quantize(e){const{scale:[t,n],translate:[r,o]}=e,i=this.features,s=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-r)/t)),(e=>Math.round((o-e)/n)));for(let e=0,t=i.length;e<t;e++)s?.(i[e].geometry)||(i.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:n}=this;if(!n)return this;const{translate:[r,o],scale:[i,s]}=n;let l=null,a=null;if(this.hasZ&&null!=n?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=n;l=n=>n*t+e}if(this.hasM&&null!=n?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=n;a=n=>null==n?n:n*t+e}const p=this._getHydrationFunction(e,(e=>e*i+r),(e=>o-e*s),l,a);for(const{geometry:e}of t)null!=e&&p&&p(e);return this.transform=null,this}readFeaturesWithClass(e,t,n){const r=f.A.fromJSON(t.spatialReference),o=[];for(let t=0;t<e.length;t++){const i=e[t],s=n.fromJSON(i),l=i.geometry?.spatialReference;null==s.geometry||l||(s.geometry.spatialReference=r);const a=i.aggregateGeometries,p=s.aggregateGeometries;if(a&&null!=p)for(const e in p){const t=p[e],n=a[e],o=n?.spatialReference;null==t||o||(t.spatialReference=r)}o.push(s)}return o}_quantizePoints(e,t,n){let r,o;const i=[];for(let s=0,l=e.length;s<l;s++){const l=e[s];if(s>0){const e=t(l[0]),s=n(l[1]);e===r&&s===o||(i.push([e-r,s-o]),r=e,o=s)}else r=t(l[0]),o=n(l[1]),i.push([r,o])}return i.length>0?i:null}_getQuantizationFunction(e,t,n){return"point"===e?e=>(e.x=t(e.x),e.y=n(e.y),e):"polyline"===e||"polygon"===e?e=>{const r=(0,d.Bi)(e)?e.rings:e.paths,o=[];for(let e=0,i=r.length;e<i;e++){const i=r[e],s=this._quantizePoints(i,t,n);s&&o.push(s)}return o.length>0?((0,d.Bi)(e)?e.rings=o:e.paths=o,e):null}:"multipoint"===e?e=>{const r=this._quantizePoints(e.points,t,n);return r&&r.length>0?(e.points=r,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,n,r,o){return"point"===e?e=>{e.x=t(e.x),e.y=n(e.y),r&&(e.z=r(e.z))}:"polyline"===e||"polygon"===e?e=>{const i=(0,d.Bi)(e)?e.rings:e.paths;let s,l;for(let e=0,r=i.length;e<r;e++){const r=i[e];for(let e=0,o=r.length;e<o;e++){const o=r[e];e>0?(s+=o[0],l+=o[1]):(s=o[0],l=o[1]),o[0]=t(s),o[1]=n(l)}}if(r&&o)for(let e=0,t=i.length;e<t;e++){const t=i[e];for(let e=0,n=t.length;e<n;e++){const n=t[e];n[2]=r(n[2]),n[3]=o(n[3])}}else if(r)for(let e=0,t=i.length;e<t;e++){const t=i[e];for(let e=0,n=t.length;e<n;e++){const n=t[e];n[2]=r(n[2])}}else if(o)for(let e=0,t=i.length;e<t;e++){const t=i[e];for(let e=0,n=t.length;e<n;e++){const n=t[e];n[2]=o(n[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=n(e.ymin),e.xmax=t(e.xmax),e.ymax=n(e.ymax),r&&null!=e.zmax&&null!=e.zmin&&(e.zmax=r(e.zmax),e.zmin=r(e.zmin)),o&&null!=e.mmax&&null!=e.mmin&&(e.mmax=o(e.mmax),e.mmin=o(e.mmin))}:"multipoint"===e?e=>{const i=e.points;let s,l;for(let e=0,r=i.length;e<r;e++){const r=i[e];e>0?(s+=r[0],l+=r[1]):(s=r[0],l=r[1]),r[0]=t(s),r[1]=n(l)}if(r&&o)for(let e=0,t=i.length;e<t;e++){const t=i[e];t[2]=r(t[2]),t[3]=o(t[3])}else if(r)for(let e=0,t=i.length;e<t;e++){const t=i[e];t[2]=r(t[2])}else if(o)for(let e=0,t=i.length;e<t;e++){const t=i[e];t[2]=o(t[2])}}:null}};(0,o._)([(0,p.MZ)({type:String,json:{write:!0}})],w.prototype,"displayFieldName",void 0),(0,o._)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"exceededTransferLimit",void 0),(0,o._)([(0,p.MZ)({type:[i.A],json:{write:!0}})],w.prototype,"features",void 0),(0,o._)([(0,u.w)("features")],w.prototype,"readFeatures",null),(0,o._)([(0,p.MZ)({type:[h.A],json:{write:!0}})],w.prototype,"fields",void 0),(0,o._)([(0,p.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],w.prototype,"geometryType",void 0),(0,o._)([(0,c.K)("geometryType")],w.prototype,"writeGeometryType",null),(0,o._)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasM",void 0),(0,o._)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasZ",void 0),(0,o._)([(0,p.MZ)({types:m.yR,json:{write:!0}})],w.prototype,"queryGeometry",void 0),(0,o._)([(0,u.w)("queryGeometry")],w.prototype,"readQueryGeometry",null),(0,o._)([(0,p.MZ)({type:f.A,json:{write:!0}})],w.prototype,"spatialReference",void 0),(0,o._)([(0,c.K)("spatialReference")],w.prototype,"writeSpatialReference",null),(0,o._)([(0,p.MZ)({json:{write:!0}})],w.prototype,"transform",void 0),w=r=(0,o._)([(0,y.$)("esri.rest.support.FeatureSet")],w),w.prototype.toJSON.isDefaultToJSON=!0;const S=w},41366:(e,t,n)=>{n.d(t,{K:()=>c,Q:()=>p});var r=n(90237),o=n(66552),i=n(53966),s=n(10107),l=(n(44208),n(87811),n(93223)),a=n(40608);const p=(0,o.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),u="percent-of-total",y="field",c=e=>{let t=class extends e{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,n=null!=this.normalizationTotal;return t||n?(e=t&&y||n&&u||null,t&&n&&i.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==y&&e!==u||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,r._)([(0,s.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],t.prototype,"normalizationField",void 0),(0,r._)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],t.prototype,"normalizationMaxValue",void 0),(0,r._)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],t.prototype,"normalizationMinValue",void 0),(0,r._)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],t.prototype,"normalizationTotal",void 0),(0,r._)([(0,l.e)(p,{name:"parameters.normalizationType"})],t.prototype,"normalizationType",null),t=(0,r._)([(0,a.$)("esri.rest.support.NormalizationBinParametersMixin")],t),t}},2272:(e,t,n)=>{n.d(t,{Dl:()=>s,jV:()=>i,lF:()=>l}),n(92602),n(70333);var r=n(4718),o=n(84952);function i(e,t){return t?{...t,query:{...e??{},...t.query}}:{query:e}}function s(e){return"string"==typeof e?(0,o.An)(e):(0,r.o8)(e)}function l(e,t,n){const r={};for(const o in e){if("declaredClass"===o)continue;const i=e[o];if(null!=i&&"function"!=typeof i)if(Array.isArray(i))r[o]=i.map((e=>l(e)));else if("object"==typeof i)if(i.toJSON){const e=i.toJSON(n?.[o]);r[o]=t?e:JSON.stringify(e)}else r[o]=t?i:JSON.stringify(i);else r[o]=i}return r}n(926)},92935:(e,t,n)=>{var r;n.d(t,{X:()=>r}),function(e){e[e.SAVE=0]="SAVE",e[e.SAVE_AS=1]="SAVE_AS"}(r||(r={}))}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9239],{9239:(t,e,o)=>{o.r(e),o.d(e,{executeAttachmentQuery:()=>b,fetchAttachments:()=>j,processAttachmentQueryResult:()=>I});var n,r=o(70333),i=o(78888),s=o(84952),a=o(10536),l=o(90237),d=o(25482),p=o(10107),c=o(56507),u=(o(44208),o(87811),o(40608));const h={1:{id:1,rotation:0,mirrored:!1},2:{id:2,rotation:0,mirrored:!0},3:{id:3,rotation:180,mirrored:!1},4:{id:4,rotation:180,mirrored:!0},5:{id:5,rotation:-90,mirrored:!0},6:{id:6,rotation:90,mirrored:!1},7:{id:7,rotation:90,mirrored:!0},8:{id:8,rotation:-90,mirrored:!1}};let y=n=class extends d.A{constructor(t){super(t),this.contentType=null,this.exifInfo=null,this.id=null,this.globalId=null,this.keywords=null,this.name=null,this.parentGlobalId=null,this.parentObjectId=null,this.size=null,this.url=null}get orientationInfo(){const{exifInfo:t}=this,e=function(t){const{exifInfo:e,exifName:o,tagName:n}=t;if(!e||!o||!n)return null;const r=e.find((t=>t.name===o));return r?function(t){const{tagName:e,tags:o}=t;if(!o||!e)return null;const n=o.find((t=>t.name===e));return n?.value||null}({tagName:n,tags:r.tags}):null}({exifName:"Exif IFD0",tagName:"Orientation",exifInfo:t});return h[e]||null}clone(){return new n({contentType:this.contentType,exifInfo:this.exifInfo,id:this.id,globalId:this.globalId,keywords:this.keywords,name:this.name,parentGlobalId:this.parentGlobalId,parentObjectId:this.parentObjectId,size:this.size,url:this.url})}};(0,l._)([(0,p.MZ)({type:String})],y.prototype,"contentType",void 0),(0,l._)([(0,p.MZ)()],y.prototype,"exifInfo",void 0),(0,l._)([(0,p.MZ)({readOnly:!0})],y.prototype,"orientationInfo",null),(0,l._)([(0,p.MZ)({type:c.jz})],y.prototype,"id",void 0),(0,l._)([(0,p.MZ)({type:String})],y.prototype,"globalId",void 0),(0,l._)([(0,p.MZ)({type:String})],y.prototype,"keywords",void 0),(0,l._)([(0,p.MZ)({type:String})],y.prototype,"name",void 0),(0,l._)([(0,p.MZ)({json:{read:!1}})],y.prototype,"parentGlobalId",void 0),(0,l._)([(0,p.MZ)({json:{read:!1}})],y.prototype,"parentObjectId",void 0),(0,l._)([(0,p.MZ)({type:c.jz})],y.prototype,"size",void 0),(0,l._)([(0,p.MZ)({json:{read:!1}})],y.prototype,"url",void 0),y=n=(0,l._)([(0,u.$)("esri.rest.query.support.AttachmentInfo")],y);const f=y;function m(t){const e=t.toJSON();return e.attachmentTypes&&(e.attachmentTypes=e.attachmentTypes.join(",")),e.keywords&&(e.keywords=e.keywords.join(",")),e.globalIds&&(e.globalIds=e.globalIds.join(",")),e.objectIds&&(e.objectIds=e.objectIds.join(",")),e.size&&(e.size=e.size.join(",")),e.orderByFields&&(e.orderByFields=e.orderByFields.join(",")),e}function I(t,e){const o={};for(const n of e){const{parentObjectId:e,parentGlobalId:i,attachmentInfos:a}=n;for(const n of a){const{id:a}=n,l=(0,s.yM)((0,r.Y3)(`${t.path}/${e}/attachments/${a}`)),d=f.fromJSON(n);d.set({url:l,parentObjectId:e,parentGlobalId:i}),o[e]?o[e].push(d):o[e]=[d]}}return o}function b(t,e,o){let n={query:(0,a.z)({...t.query,f:"json",...m(e)})};return o&&(n={...o,...n,query:{...o.query,...n.query}}),(0,i.A)(t.path+"/queryAttachments",n).then((t=>t.data.attachmentGroups))}async function j(t,e,o){const{objectIds:n}=e,r=[];for(const e of n)r.push((0,i.A)(t.path+"/"+e+"/attachments",o));return Promise.all(r).then((t=>n.map(((e,o)=>({parentObjectId:e,attachmentInfos:t[o].data.attachmentInfos})))))}}}]);