@arcgis/core 4.34.0-next.86 → 4.34.0-next.88

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 (447) hide show
  1. package/Basemap.js +1 -1
  2. package/Ground.js +1 -1
  3. package/Map.js +1 -1
  4. package/analysis/ElevationProfile/ElevationProfileLineGround.d.ts +4 -0
  5. package/analysis/ElevationProfile/{ElevationProfileGroundLine.js → ElevationProfileLineGround.js} +1 -1
  6. package/analysis/ElevationProfile/ElevationProfileLineInput.d.ts +4 -0
  7. package/analysis/ElevationProfile/{ElevationProfileInputLine.js → ElevationProfileLineInput.js} +1 -1
  8. package/analysis/ElevationProfile/ElevationProfileLineQuery.d.ts +4 -0
  9. package/analysis/ElevationProfile/{ElevationProfileQueryLine.js → ElevationProfileLineQuery.js} +1 -1
  10. package/analysis/ElevationProfile/ElevationProfileLineScene.d.ts +4 -0
  11. package/analysis/ElevationProfile/{ElevationProfileSceneLine.js → ElevationProfileLineScene.js} +1 -1
  12. package/analysis/ElevationProfile/elevationProfileLineTypes.js +1 -1
  13. package/analysis/ElevationProfileAnalysis.js +1 -1
  14. package/assets/components/assets/accordion-item/t9n/messages.ar.json +1 -1
  15. package/assets/components/assets/accordion-item/t9n/messages.bg.json +1 -1
  16. package/assets/components/assets/accordion-item/t9n/messages.bs.json +1 -1
  17. package/assets/components/assets/accordion-item/t9n/messages.ca.json +1 -1
  18. package/assets/components/assets/accordion-item/t9n/messages.cs.json +1 -1
  19. package/assets/components/assets/accordion-item/t9n/messages.da.json +1 -1
  20. package/assets/components/assets/accordion-item/t9n/messages.de.json +1 -1
  21. package/assets/components/assets/accordion-item/t9n/messages.el.json +1 -1
  22. package/assets/components/assets/accordion-item/t9n/messages.es.json +1 -1
  23. package/assets/components/assets/accordion-item/t9n/messages.et.json +1 -1
  24. package/assets/components/assets/accordion-item/t9n/messages.fi.json +1 -1
  25. package/assets/components/assets/accordion-item/t9n/messages.fr.json +1 -1
  26. package/assets/components/assets/accordion-item/t9n/messages.he.json +1 -1
  27. package/assets/components/assets/accordion-item/t9n/messages.hr.json +1 -1
  28. package/assets/components/assets/accordion-item/t9n/messages.hu.json +1 -1
  29. package/assets/components/assets/accordion-item/t9n/messages.id.json +1 -1
  30. package/assets/components/assets/accordion-item/t9n/messages.it.json +1 -1
  31. package/assets/components/assets/accordion-item/t9n/messages.ja.json +1 -1
  32. package/assets/components/assets/accordion-item/t9n/messages.ko.json +1 -1
  33. package/assets/components/assets/accordion-item/t9n/messages.lt.json +1 -1
  34. package/assets/components/assets/accordion-item/t9n/messages.lv.json +1 -1
  35. package/assets/components/assets/accordion-item/t9n/messages.nl.json +1 -1
  36. package/assets/components/assets/accordion-item/t9n/messages.no.json +1 -1
  37. package/assets/components/assets/accordion-item/t9n/messages.pl.json +1 -1
  38. package/assets/components/assets/accordion-item/t9n/messages.pt-BR.json +1 -1
  39. package/assets/components/assets/accordion-item/t9n/messages.pt-PT.json +1 -1
  40. package/assets/components/assets/accordion-item/t9n/messages.ro.json +1 -1
  41. package/assets/components/assets/accordion-item/t9n/messages.ru.json +1 -1
  42. package/assets/components/assets/accordion-item/t9n/messages.sk.json +1 -1
  43. package/assets/components/assets/accordion-item/t9n/messages.sl.json +1 -1
  44. package/assets/components/assets/accordion-item/t9n/messages.sr.json +1 -1
  45. package/assets/components/assets/accordion-item/t9n/messages.sv.json +1 -1
  46. package/assets/components/assets/accordion-item/t9n/messages.th.json +1 -1
  47. package/assets/components/assets/accordion-item/t9n/messages.tr.json +1 -1
  48. package/assets/components/assets/accordion-item/t9n/messages.uk.json +1 -1
  49. package/assets/components/assets/accordion-item/t9n/messages.vi.json +1 -1
  50. package/assets/components/assets/accordion-item/t9n/messages.zh-CN.json +1 -1
  51. package/assets/components/assets/accordion-item/t9n/messages.zh-HK.json +1 -1
  52. package/assets/components/assets/accordion-item/t9n/messages.zh-TW.json +1 -1
  53. package/assets/components/assets/action-bar/t9n/messages.ar.json +1 -1
  54. package/assets/components/assets/action-bar/t9n/messages.bg.json +1 -1
  55. package/assets/components/assets/action-bar/t9n/messages.bs.json +1 -1
  56. package/assets/components/assets/action-bar/t9n/messages.ca.json +1 -1
  57. package/assets/components/assets/action-bar/t9n/messages.cs.json +1 -1
  58. package/assets/components/assets/action-bar/t9n/messages.da.json +1 -1
  59. package/assets/components/assets/action-bar/t9n/messages.de.json +1 -1
  60. package/assets/components/assets/action-bar/t9n/messages.el.json +1 -1
  61. package/assets/components/assets/action-bar/t9n/messages.es.json +1 -1
  62. package/assets/components/assets/action-bar/t9n/messages.et.json +1 -1
  63. package/assets/components/assets/action-bar/t9n/messages.fi.json +1 -1
  64. package/assets/components/assets/action-bar/t9n/messages.fr.json +1 -1
  65. package/assets/components/assets/action-bar/t9n/messages.he.json +1 -1
  66. package/assets/components/assets/action-bar/t9n/messages.hr.json +1 -1
  67. package/assets/components/assets/action-bar/t9n/messages.hu.json +1 -1
  68. package/assets/components/assets/action-bar/t9n/messages.id.json +1 -1
  69. package/assets/components/assets/action-bar/t9n/messages.it.json +1 -1
  70. package/assets/components/assets/action-bar/t9n/messages.ja.json +1 -1
  71. package/assets/components/assets/action-bar/t9n/messages.ko.json +1 -1
  72. package/assets/components/assets/action-bar/t9n/messages.lt.json +1 -1
  73. package/assets/components/assets/action-bar/t9n/messages.lv.json +1 -1
  74. package/assets/components/assets/action-bar/t9n/messages.nl.json +1 -1
  75. package/assets/components/assets/action-bar/t9n/messages.no.json +1 -1
  76. package/assets/components/assets/action-bar/t9n/messages.pl.json +1 -1
  77. package/assets/components/assets/action-bar/t9n/messages.pt-BR.json +1 -1
  78. package/assets/components/assets/action-bar/t9n/messages.pt-PT.json +1 -1
  79. package/assets/components/assets/action-bar/t9n/messages.ro.json +1 -1
  80. package/assets/components/assets/action-bar/t9n/messages.ru.json +1 -1
  81. package/assets/components/assets/action-bar/t9n/messages.sk.json +1 -1
  82. package/assets/components/assets/action-bar/t9n/messages.sl.json +1 -1
  83. package/assets/components/assets/action-bar/t9n/messages.sr.json +1 -1
  84. package/assets/components/assets/action-bar/t9n/messages.sv.json +1 -1
  85. package/assets/components/assets/action-bar/t9n/messages.th.json +1 -1
  86. package/assets/components/assets/action-bar/t9n/messages.tr.json +1 -1
  87. package/assets/components/assets/action-bar/t9n/messages.uk.json +1 -1
  88. package/assets/components/assets/action-bar/t9n/messages.vi.json +1 -1
  89. package/assets/components/assets/action-bar/t9n/messages.zh-CN.json +1 -1
  90. package/assets/components/assets/action-bar/t9n/messages.zh-HK.json +1 -1
  91. package/assets/components/assets/action-bar/t9n/messages.zh-TW.json +1 -1
  92. package/assets/components/assets/action-pad/t9n/messages.ar.json +1 -1
  93. package/assets/components/assets/action-pad/t9n/messages.bg.json +1 -1
  94. package/assets/components/assets/action-pad/t9n/messages.bs.json +1 -1
  95. package/assets/components/assets/action-pad/t9n/messages.ca.json +1 -1
  96. package/assets/components/assets/action-pad/t9n/messages.cs.json +1 -1
  97. package/assets/components/assets/action-pad/t9n/messages.da.json +1 -1
  98. package/assets/components/assets/action-pad/t9n/messages.de.json +1 -1
  99. package/assets/components/assets/action-pad/t9n/messages.el.json +1 -1
  100. package/assets/components/assets/action-pad/t9n/messages.es.json +1 -1
  101. package/assets/components/assets/action-pad/t9n/messages.et.json +1 -1
  102. package/assets/components/assets/action-pad/t9n/messages.fi.json +1 -1
  103. package/assets/components/assets/action-pad/t9n/messages.fr.json +1 -1
  104. package/assets/components/assets/action-pad/t9n/messages.he.json +1 -1
  105. package/assets/components/assets/action-pad/t9n/messages.hr.json +1 -1
  106. package/assets/components/assets/action-pad/t9n/messages.hu.json +1 -1
  107. package/assets/components/assets/action-pad/t9n/messages.id.json +1 -1
  108. package/assets/components/assets/action-pad/t9n/messages.it.json +1 -1
  109. package/assets/components/assets/action-pad/t9n/messages.ja.json +1 -1
  110. package/assets/components/assets/action-pad/t9n/messages.ko.json +1 -1
  111. package/assets/components/assets/action-pad/t9n/messages.lt.json +1 -1
  112. package/assets/components/assets/action-pad/t9n/messages.lv.json +1 -1
  113. package/assets/components/assets/action-pad/t9n/messages.nl.json +1 -1
  114. package/assets/components/assets/action-pad/t9n/messages.no.json +1 -1
  115. package/assets/components/assets/action-pad/t9n/messages.pl.json +1 -1
  116. package/assets/components/assets/action-pad/t9n/messages.pt-BR.json +1 -1
  117. package/assets/components/assets/action-pad/t9n/messages.pt-PT.json +1 -1
  118. package/assets/components/assets/action-pad/t9n/messages.ro.json +1 -1
  119. package/assets/components/assets/action-pad/t9n/messages.ru.json +1 -1
  120. package/assets/components/assets/action-pad/t9n/messages.sk.json +1 -1
  121. package/assets/components/assets/action-pad/t9n/messages.sl.json +1 -1
  122. package/assets/components/assets/action-pad/t9n/messages.sr.json +1 -1
  123. package/assets/components/assets/action-pad/t9n/messages.sv.json +1 -1
  124. package/assets/components/assets/action-pad/t9n/messages.th.json +1 -1
  125. package/assets/components/assets/action-pad/t9n/messages.tr.json +1 -1
  126. package/assets/components/assets/action-pad/t9n/messages.uk.json +1 -1
  127. package/assets/components/assets/action-pad/t9n/messages.vi.json +1 -1
  128. package/assets/components/assets/action-pad/t9n/messages.zh-CN.json +1 -1
  129. package/assets/components/assets/action-pad/t9n/messages.zh-HK.json +1 -1
  130. package/assets/components/assets/action-pad/t9n/messages.zh-TW.json +1 -1
  131. package/assets/components/assets/icon/layer3D16.json +1 -0
  132. package/assets/components/assets/icon/layer3D24.json +1 -0
  133. package/assets/components/assets/icon/layer3D32.json +1 -0
  134. package/assets/components/assets/sort-handle/t9n/messages.ar.json +1 -1
  135. package/assets/components/assets/sort-handle/t9n/messages.bg.json +1 -1
  136. package/assets/components/assets/sort-handle/t9n/messages.bs.json +1 -1
  137. package/assets/components/assets/sort-handle/t9n/messages.ca.json +1 -1
  138. package/assets/components/assets/sort-handle/t9n/messages.cs.json +1 -1
  139. package/assets/components/assets/sort-handle/t9n/messages.da.json +1 -1
  140. package/assets/components/assets/sort-handle/t9n/messages.de.json +1 -1
  141. package/assets/components/assets/sort-handle/t9n/messages.el.json +1 -1
  142. package/assets/components/assets/sort-handle/t9n/messages.es.json +1 -1
  143. package/assets/components/assets/sort-handle/t9n/messages.et.json +1 -1
  144. package/assets/components/assets/sort-handle/t9n/messages.fi.json +1 -1
  145. package/assets/components/assets/sort-handle/t9n/messages.fr.json +1 -1
  146. package/assets/components/assets/sort-handle/t9n/messages.he.json +1 -1
  147. package/assets/components/assets/sort-handle/t9n/messages.hr.json +1 -1
  148. package/assets/components/assets/sort-handle/t9n/messages.hu.json +1 -1
  149. package/assets/components/assets/sort-handle/t9n/messages.id.json +1 -1
  150. package/assets/components/assets/sort-handle/t9n/messages.it.json +1 -1
  151. package/assets/components/assets/sort-handle/t9n/messages.ja.json +1 -1
  152. package/assets/components/assets/sort-handle/t9n/messages.ko.json +1 -1
  153. package/assets/components/assets/sort-handle/t9n/messages.lt.json +1 -1
  154. package/assets/components/assets/sort-handle/t9n/messages.lv.json +1 -1
  155. package/assets/components/assets/sort-handle/t9n/messages.nl.json +1 -1
  156. package/assets/components/assets/sort-handle/t9n/messages.no.json +1 -1
  157. package/assets/components/assets/sort-handle/t9n/messages.pl.json +1 -1
  158. package/assets/components/assets/sort-handle/t9n/messages.pt-BR.json +1 -1
  159. package/assets/components/assets/sort-handle/t9n/messages.pt-PT.json +1 -1
  160. package/assets/components/assets/sort-handle/t9n/messages.ro.json +1 -1
  161. package/assets/components/assets/sort-handle/t9n/messages.ru.json +1 -1
  162. package/assets/components/assets/sort-handle/t9n/messages.sk.json +1 -1
  163. package/assets/components/assets/sort-handle/t9n/messages.sl.json +1 -1
  164. package/assets/components/assets/sort-handle/t9n/messages.sr.json +1 -1
  165. package/assets/components/assets/sort-handle/t9n/messages.sv.json +1 -1
  166. package/assets/components/assets/sort-handle/t9n/messages.th.json +1 -1
  167. package/assets/components/assets/sort-handle/t9n/messages.tr.json +1 -1
  168. package/assets/components/assets/sort-handle/t9n/messages.uk.json +1 -1
  169. package/assets/components/assets/sort-handle/t9n/messages.vi.json +1 -1
  170. package/assets/components/assets/sort-handle/t9n/messages.zh-CN.json +1 -1
  171. package/assets/components/assets/sort-handle/t9n/messages.zh-HK.json +1 -1
  172. package/assets/components/assets/sort-handle/t9n/messages.zh-TW.json +1 -1
  173. package/assets/esri/core/workers/RemoteClient.js +1 -1
  174. package/assets/esri/core/workers/chunks/0074f1836d7ff69ff6ec.js +1 -0
  175. package/assets/esri/core/workers/chunks/{c6d4b8d683a34fc0d111.js → 0103b70126bc5dffc55e.js} +1 -1
  176. package/assets/esri/core/workers/chunks/03ef19f0753d68770444.js +1 -0
  177. package/assets/esri/core/workers/chunks/{4a06ab00d095f63598b5.js → 09c2004126f4a5242b85.js} +1 -1
  178. package/assets/esri/core/workers/chunks/0f05425954578ac796ec.js +1 -0
  179. package/assets/esri/core/workers/chunks/109149c378aa4c5f8526.js +1 -0
  180. package/assets/esri/core/workers/chunks/{8307f635a5c0c4a95825.js → 143503f6eb270c4683f8.js} +1 -1
  181. package/assets/esri/core/workers/chunks/{6c36cef0b58b87a1f17f.js → 177840d5f0076c0de46b.js} +4 -4
  182. package/assets/esri/core/workers/chunks/1c1b0cc91fe9cb3fec61.js +1 -0
  183. package/assets/esri/core/workers/chunks/1fc6311d4f0d27e88737.js +1 -0
  184. package/assets/esri/core/workers/chunks/24921d31efa8d222ad2d.js +2 -0
  185. package/assets/esri/core/workers/chunks/{268f5b233640a9dbbf89.js.LICENSE.txt → 24921d31efa8d222ad2d.js.LICENSE.txt} +1 -1
  186. package/assets/esri/core/workers/chunks/257fd65786feb5951b90.js +1 -0
  187. package/assets/esri/core/workers/chunks/2dc88379ee94fabdaf52.js +1 -0
  188. package/assets/esri/core/workers/chunks/366db86914a63e6d0c68.js +1 -0
  189. package/assets/esri/core/workers/chunks/3a457e718a901a45902e.js +2 -0
  190. package/assets/esri/core/workers/chunks/{47e4f66c33bb697fbe6b.js.LICENSE.txt → 3a457e718a901a45902e.js.LICENSE.txt} +1 -1
  191. package/assets/esri/core/workers/chunks/46ef545d2b3b3f4e6d32.js +2 -0
  192. package/assets/esri/core/workers/chunks/{336b54144afec0c7d396.js.LICENSE.txt → 46ef545d2b3b3f4e6d32.js.LICENSE.txt} +1 -1
  193. package/assets/esri/core/workers/chunks/481c2b01e2fe92249698.js +1 -0
  194. package/assets/esri/core/workers/chunks/4e77b9cc1d9437bcbb0c.js +1 -0
  195. package/assets/esri/core/workers/chunks/5f0a50ebd2a08b9b9de2.js +1 -0
  196. package/assets/esri/core/workers/chunks/639d856cd217914dfe1f.js +1 -0
  197. package/assets/esri/core/workers/chunks/67d9cfe02613cb73ee37.js.LICENSE.txt +1 -1
  198. package/assets/esri/core/workers/chunks/7540b34e743a23e67729.js +1 -0
  199. package/assets/esri/core/workers/chunks/773d106f60f7dad1493d.js +1 -0
  200. package/assets/esri/core/workers/chunks/7be11a3ef1f49245089f.js +1 -0
  201. package/assets/esri/core/workers/chunks/819a8bc1f0a694017ee6.js +1 -0
  202. package/assets/esri/core/workers/chunks/{1537b02e674f8ef77f4a.js → 8d63b42aea32ce2e5d09.js} +1 -1
  203. package/assets/esri/core/workers/chunks/8de11aab65d91e7f1a4d.js +1 -0
  204. package/assets/esri/core/workers/chunks/9386a0ebff78b6303ed2.js +1 -0
  205. package/assets/esri/core/workers/chunks/{4d47187bc0821413492d.js → 95bae3c275f1483eb7ed.js} +1 -1
  206. package/assets/esri/core/workers/chunks/9ca55d33ae4bf25e8edd.js +1 -0
  207. package/assets/esri/core/workers/chunks/{47e4f66c33bb697fbe6b.js → a8f998b8ec8c56150479.js} +2 -2
  208. package/assets/esri/core/workers/chunks/{f6e18668f728dfd8ba5e.js.LICENSE.txt → a8f998b8ec8c56150479.js.LICENSE.txt} +1 -1
  209. package/assets/esri/core/workers/chunks/a9e133166e9200fe135e.js +1 -0
  210. package/assets/esri/core/workers/chunks/aa78b69219d9a0ef1c54.js.LICENSE.txt +1 -1
  211. package/assets/esri/core/workers/chunks/acb1c5dd987c801d7b31.js +1 -0
  212. package/assets/esri/core/workers/chunks/b09b34f64a6bc2b49e0a.js +1 -0
  213. package/assets/esri/core/workers/chunks/b0a03b6edbcf6e933431.js +1 -0
  214. package/assets/esri/core/workers/chunks/b8997ae5893afa0298d1.js +1 -0
  215. package/assets/esri/core/workers/chunks/c0ae186620b68d43b338.js +1 -0
  216. package/assets/esri/core/workers/chunks/c1d75c48558ed23c5b2b.js +1 -0
  217. package/assets/esri/core/workers/chunks/{9d7a22746dae1451deaf.js → c6cae8471c5d4ae40c65.js} +1 -1
  218. package/assets/esri/core/workers/chunks/{c50e8d5f554cf151865c.js → ce16489cf7eb0d78c741.js} +2 -2
  219. package/assets/esri/core/workers/chunks/{c50e8d5f554cf151865c.js.LICENSE.txt → ce16489cf7eb0d78c741.js.LICENSE.txt} +1 -1
  220. package/assets/esri/core/workers/chunks/d6e0528eacee7ea4c1ce.js.LICENSE.txt +1 -1
  221. package/assets/esri/core/workers/chunks/db5a985ccc6b7d0ad855.js +1 -0
  222. package/assets/esri/core/workers/chunks/f3ee035fa7bf638c8e60.js +1 -0
  223. package/assets/esri/core/workers/chunks/f651c05604eab83aef5f.js.LICENSE.txt +1 -1
  224. package/assets/esri/core/workers/chunks/fc5ac54aab66562c8463.js +1 -0
  225. package/assets/esri/themes/dark/main.css +1 -1
  226. package/assets/esri/themes/light/main.css +1 -1
  227. package/assets/esri/themes/light/view.css +1 -1
  228. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis.json +1 -0
  229. package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_en.json +1 -0
  230. package/assets/esri/widgets/Editor/t9n/Editor.json +1 -1
  231. package/assets/esri/widgets/Editor/t9n/Editor_ar.json +1 -1
  232. package/assets/esri/widgets/Editor/t9n/Editor_bg.json +1 -1
  233. package/assets/esri/widgets/Editor/t9n/Editor_bs.json +1 -1
  234. package/assets/esri/widgets/Editor/t9n/Editor_ca.json +1 -1
  235. package/assets/esri/widgets/Editor/t9n/Editor_cs.json +1 -1
  236. package/assets/esri/widgets/Editor/t9n/Editor_da.json +1 -1
  237. package/assets/esri/widgets/Editor/t9n/Editor_de.json +1 -1
  238. package/assets/esri/widgets/Editor/t9n/Editor_el.json +1 -1
  239. package/assets/esri/widgets/Editor/t9n/Editor_en.json +1 -1
  240. package/assets/esri/widgets/Editor/t9n/Editor_es.json +1 -1
  241. package/assets/esri/widgets/Editor/t9n/Editor_et.json +1 -1
  242. package/assets/esri/widgets/Editor/t9n/Editor_fi.json +1 -1
  243. package/assets/esri/widgets/Editor/t9n/Editor_fr.json +1 -1
  244. package/assets/esri/widgets/Editor/t9n/Editor_he.json +1 -1
  245. package/assets/esri/widgets/Editor/t9n/Editor_hr.json +1 -1
  246. package/assets/esri/widgets/Editor/t9n/Editor_hu.json +1 -1
  247. package/assets/esri/widgets/Editor/t9n/Editor_id.json +1 -1
  248. package/assets/esri/widgets/Editor/t9n/Editor_it.json +1 -1
  249. package/assets/esri/widgets/Editor/t9n/Editor_ja.json +1 -1
  250. package/assets/esri/widgets/Editor/t9n/Editor_ko.json +1 -1
  251. package/assets/esri/widgets/Editor/t9n/Editor_lt.json +1 -1
  252. package/assets/esri/widgets/Editor/t9n/Editor_lv.json +1 -1
  253. package/assets/esri/widgets/Editor/t9n/Editor_nl.json +1 -1
  254. package/assets/esri/widgets/Editor/t9n/Editor_no.json +1 -1
  255. package/assets/esri/widgets/Editor/t9n/Editor_pl.json +1 -1
  256. package/assets/esri/widgets/Editor/t9n/Editor_pt-BR.json +1 -1
  257. package/assets/esri/widgets/Editor/t9n/Editor_pt-PT.json +1 -1
  258. package/assets/esri/widgets/Editor/t9n/Editor_ro.json +1 -1
  259. package/assets/esri/widgets/Editor/t9n/Editor_ru.json +1 -1
  260. package/assets/esri/widgets/Editor/t9n/Editor_sk.json +1 -1
  261. package/assets/esri/widgets/Editor/t9n/Editor_sl.json +1 -1
  262. package/assets/esri/widgets/Editor/t9n/Editor_sr.json +1 -1
  263. package/assets/esri/widgets/Editor/t9n/Editor_sv.json +1 -1
  264. package/assets/esri/widgets/Editor/t9n/Editor_th.json +1 -1
  265. package/assets/esri/widgets/Editor/t9n/Editor_tr.json +1 -1
  266. package/assets/esri/widgets/Editor/t9n/Editor_uk.json +1 -1
  267. package/assets/esri/widgets/Editor/t9n/Editor_vi.json +1 -1
  268. package/assets/esri/widgets/Editor/t9n/Editor_zh-CN.json +1 -1
  269. package/assets/esri/widgets/Editor/t9n/Editor_zh-HK.json +1 -1
  270. package/assets/esri/widgets/Editor/t9n/Editor_zh-TW.json +1 -1
  271. package/config.js +1 -1
  272. package/geometry/support/curves/densifyCurvedGeometry.js +1 -1
  273. package/identity/IdentityManagerBase.js +1 -1
  274. package/interfaces.d.ts +199 -149
  275. package/kernel.js +1 -1
  276. package/layers/GaussianSplatLayer.js +1 -1
  277. package/layers/IntegratedMesh3DTilesLayer.js +1 -1
  278. package/layers/IntegratedMeshLayer.js +1 -1
  279. package/layers/ParquetLayer.js +1 -1
  280. package/layers/VectorTileLayer.js +1 -1
  281. package/layers/graphics/sources/ParquetSource.js +1 -1
  282. package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
  283. package/layers/support/BuildingFieldStatistics.js +5 -0
  284. package/layers/support/BuildingSummaryStatistics.js +1 -1
  285. package/layers/support/ControlPoint.js +5 -0
  286. package/layers/support/ControlPointsGeoreference.js +1 -1
  287. package/layers/support/FieldConfiguration.js +1 -1
  288. package/layers/support/VideoFrame.js +1 -1
  289. package/layers/support/fieldConfigUtils.js +1 -1
  290. package/layers/support/mediaUtils.js +1 -1
  291. package/layers/support/vectorTileLayerLoader.js +1 -1
  292. package/package.json +3 -3
  293. package/portal/schemas/definitions.js +1 -1
  294. package/renderers/support/RasterSymbolizer.js +1 -1
  295. package/rest/support/imageMeasureUtils.js +1 -1
  296. package/support/basemapEnsureType.js +1 -1
  297. package/support/revision.js +1 -1
  298. package/views/2d/analysis/ElevationProfileAnalysisView2D.js +1 -1
  299. package/views/2d/engine/webgl/OverlayMultipoint.js +1 -1
  300. package/views/2d/engine/webgl/shaderGraph/techniques/TextureStatisticsTechnique.js +1 -1
  301. package/views/2d/engine/webgl/shaderGraph/techniques/raster/RasterColorizerTechnique.js +1 -1
  302. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TextureStatisticsDiffShader.js +1 -1
  303. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TextureStatisticsMinMaxSumShader.js +1 -1
  304. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TextureStatisticsStdDevShader.js +1 -1
  305. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TextureStatisticsSumOfSquaredDiffShader.js +1 -1
  306. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/RasterColorizerStretchShader.js +1 -1
  307. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/math.js +1 -1
  308. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/stretch.js +1 -1
  309. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/utils.js +1 -1
  310. package/views/2d/layers/BaseLayerView2D.js +1 -1
  311. package/views/2d/layers/BaseLayerViewGL2D.js +1 -1
  312. package/views/2d/layers/FeatureLayerView2D.js +1 -1
  313. package/views/2d/layers/features/FeaturePipelineWorker.js +1 -1
  314. package/views/2d/layers/features/Processor.js +1 -1
  315. package/views/2d/layers/features/layerAdapters/CatalogFootprintLayerAdapter.js +1 -1
  316. package/views/2d/layers/features/layerAdapters/FeatureLayerAdapter.js +1 -1
  317. package/views/2d/layers/features/layerAdapters/InMemoryLayerAdapter.js +1 -1
  318. package/views/2d/layers/features/layerAdapters/KnowledgeGraphSublayerAdapter.js +1 -1
  319. package/views/2d/layers/features/layerAdapters/OGCFeatureLayerAdapter.js +1 -1
  320. package/views/2d/layers/features/layerAdapters/OrientedImageryLayerAdapter.js +1 -1
  321. package/views/2d/layers/features/layerAdapters/ParquetLayerAdapter.js +1 -1
  322. package/views/2d/layers/features/layerAdapters/StreamLayerAdapter.js +1 -1
  323. package/views/2d/layers/features/layerAdapters/SubtypeGroupLayerAdapter.js +1 -1
  324. package/views/2d/layers/features/layerAdapters/featureServiceUtils.js +1 -1
  325. package/views/2d/layers/features/schema/SourceSchema.js +1 -1
  326. package/views/2d/layers/features/sources/FeatureSource.js +1 -1
  327. package/views/2d/layers/features/sources/FeatureSourceQueryInfo.js +1 -1
  328. package/views/2d/layers/features/sources/strategies/AFeatureLoadStrategy.js +5 -0
  329. package/views/2d/layers/features/sources/strategies/AFeatureTileLoadStrategy.js +5 -0
  330. package/views/2d/layers/features/sources/strategies/ALoadStrategy.js +1 -1
  331. package/views/2d/layers/features/sources/strategies/FeatureDrillDownTileLoadStrategy.js +5 -0
  332. package/views/2d/layers/features/sources/strategies/FeaturePagedTileLoadStrategy.js +5 -0
  333. package/views/2d/layers/features/sources/strategies/FeatureSnapshotLoadStrategy.js +5 -0
  334. package/views/2d/layers/features/sources/strategies/ParquetSnapshotLoadStrategy.js +1 -1
  335. package/views/2d/layers/features/sources/strategies/ParquetTileLoadStrategy.js +1 -1
  336. package/views/2d/layers/features/sources/strategies/StreamLoadStrategy.js +1 -1
  337. package/views/2d/layers/features/sources/strategies/chunks/FeatureSnapshotSourceChunk.js +1 -1
  338. package/views/2d/layers/features/sources/strategies/chunks/SourceChunkStore.js +1 -1
  339. package/views/2d/layers/features/sources/strategies/support/queryAdapters.js +1 -1
  340. package/views/2d/layers/features/support/FeatureSetReaderParquet.js +1 -1
  341. package/views/3d/GroundView3D.js +5 -0
  342. package/views/3d/analysis/ElevationProfile/{ElevationProfileSceneLineComputation.js → ElevationProfileLineSceneComputation.js} +1 -1
  343. package/views/3d/analysis/ElevationProfileAnalysisView3D.js +1 -1
  344. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementConfiguration.js +1 -1
  345. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillVisualization.js +1 -1
  346. package/views/3d/analysis/VolumeMeasurementAnalysisView3D.js +1 -1
  347. package/views/3d/glTF/internal/Resource.js +1 -1
  348. package/views/3d/interactive/SnappingVisualizer3D.js +1 -1
  349. package/views/3d/interactive/visualElements/DrapedVisualElementResources.js +1 -1
  350. package/views/3d/interactive/visualElements/LabelVisualElement.js +1 -1
  351. package/views/3d/interactive/visualElements/ParallelLineVisualElement.js +1 -1
  352. package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
  353. package/views/3d/layers/DrapedSubView3D.js +1 -1
  354. package/views/3d/layers/FlowSubView3D.js +1 -1
  355. package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
  356. package/views/3d/layers/I3SMeshView3D.js +1 -1
  357. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  358. package/views/3d/layers/IntegratedMeshLayerView3D.js +1 -1
  359. package/views/3d/layers/MediaLayerView3D.js +1 -1
  360. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  361. package/views/3d/layers/support/HeatmapFeatureProcessor.js +1 -1
  362. package/views/3d/layers/support/MediaLayerInteractionOptions.js +1 -1
  363. package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
  364. package/views/3d/support/MemoryController.js +1 -1
  365. package/views/3d/support/QualitySettings.js +1 -1
  366. package/views/3d/support/pointsOfInterest/CenterOnSurface.js +1 -1
  367. package/views/3d/support/pointsOfInterest/PointsOfInterest.js +1 -1
  368. package/views/3d/support/popupHitTest.js +1 -1
  369. package/views/3d/terrain/OverlayManager.js +1 -1
  370. package/views/3d/terrain/OverlayRenderer.js +1 -1
  371. package/views/3d/webgl-engine/parts/RenderView.js +1 -1
  372. package/views/SceneView.js +1 -1
  373. package/views/analysis/ElevationProfile/ElevationProfileChart.js +1 -1
  374. package/views/analysis/ElevationProfile/ElevationProfileHoveredPointsVisualization.js +1 -1
  375. package/views/analysis/ElevationProfile/{ElevationProfileGroundLineComputation.js → ElevationProfileLineGroundComputation.js} +1 -1
  376. package/views/analysis/ElevationProfile/{ElevationProfileInputLineComputation.js → ElevationProfileLineInputComputation.js} +1 -1
  377. package/views/analysis/ElevationProfile/{ElevationProfileQueryLineComputation.js → ElevationProfileLineQueryComputation.js} +1 -1
  378. package/views/analysis/ElevationProfile/ElevationProfileTool.js +1 -1
  379. package/views/draw/input/DrawEvents.js +1 -1
  380. package/views/layers/ImageryTileLayerView.js +1 -1
  381. package/widgets/Editor/AddAssociationWorkflowData.js +1 -1
  382. package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
  383. package/widgets/Editor/EditorViewModel.js +1 -1
  384. package/widgets/Editor/SplitFeatureWorkflow.js +1 -1
  385. package/widgets/Editor/UpdateFeaturesWorkflow.js +1 -1
  386. package/widgets/Editor/UpdateRecordWorkflowData.js +1 -1
  387. package/widgets/Editor/UpdateWorkflow.js +1 -1
  388. package/widgets/Editor/UpdateWorkflowData.js +1 -1
  389. package/widgets/Editor/Upload.js +1 -1
  390. package/widgets/Editor/components/FeatureList.js +1 -1
  391. package/widgets/Editor/components/Notices.js +1 -1
  392. package/widgets/Editor/modelUploadUtils.js +1 -1
  393. package/widgets/Editor/workflowUtils.js +1 -1
  394. package/widgets/ElevationProfile/ElevationProfileLineGround.d.ts +2 -2
  395. package/widgets/ElevationProfile/ElevationProfileLineInput.d.ts +2 -2
  396. package/widgets/ElevationProfile/ElevationProfileLineQuery.d.ts +2 -2
  397. package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
  398. package/widgets/FeatureTable/support/FeatureStore.js +1 -1
  399. package/widgets/FeatureTable/support/templateUtils.js +1 -1
  400. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  401. package/widgets/OrientedImageryViewer/adapters/sketch/DataCaptureAdapter.js +1 -1
  402. package/widgets/OrientedImageryViewer/adapters/view/MapViewAdapter.js +1 -1
  403. package/widgets/OrientedImageryViewer.js +1 -1
  404. package/widgets/PanoramicVideoViewer.js +5 -0
  405. package/widgets/PanoramicViewer/PanoramicVideoViewerViewModel.js +5 -0
  406. package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
  407. package/analysis/ElevationProfile/ElevationProfileGroundLine.d.ts +0 -4
  408. package/analysis/ElevationProfile/ElevationProfileInputLine.d.ts +0 -4
  409. package/analysis/ElevationProfile/ElevationProfileQueryLine.d.ts +0 -4
  410. package/analysis/ElevationProfile/ElevationProfileSceneLine.d.ts +0 -4
  411. package/assets/esri/core/workers/chunks/03e5d1a00d85e4d16bff.js +0 -1
  412. package/assets/esri/core/workers/chunks/0914a52fb33af5d77fab.js +0 -1
  413. package/assets/esri/core/workers/chunks/0dd6b8b3e634bb5f0ca7.js +0 -1
  414. package/assets/esri/core/workers/chunks/1d491447b13f2f2b4399.js +0 -1
  415. package/assets/esri/core/workers/chunks/20850b0fdb55fb17bc90.js +0 -1
  416. package/assets/esri/core/workers/chunks/268f5b233640a9dbbf89.js +0 -2
  417. package/assets/esri/core/workers/chunks/336b54144afec0c7d396.js +0 -2
  418. package/assets/esri/core/workers/chunks/42bc1e981624ce9844a4.js +0 -1
  419. package/assets/esri/core/workers/chunks/436bbe99bedd7b331edb.js +0 -1
  420. package/assets/esri/core/workers/chunks/4840bd93d8fe15c7aefd.js +0 -1
  421. package/assets/esri/core/workers/chunks/486ea51306c619238e41.js +0 -1
  422. package/assets/esri/core/workers/chunks/49cb78c85de0102e5f02.js +0 -1
  423. package/assets/esri/core/workers/chunks/5610dfde4e636e2333a9.js +0 -1
  424. package/assets/esri/core/workers/chunks/655a878ddea4907d830e.js +0 -1
  425. package/assets/esri/core/workers/chunks/72fe4f1f789abb5b4035.js +0 -1
  426. package/assets/esri/core/workers/chunks/7402c2853f6aed8d1bc7.js +0 -1
  427. package/assets/esri/core/workers/chunks/79a9f47dfa9ebabb5dbd.js +0 -1
  428. package/assets/esri/core/workers/chunks/804e3b3df375177e6c86.js +0 -1
  429. package/assets/esri/core/workers/chunks/86378d4f4d7f9a370c22.js +0 -1
  430. package/assets/esri/core/workers/chunks/a2652d10bb0bc41c9a8d.js +0 -1
  431. package/assets/esri/core/workers/chunks/b19d723d09f5bea9ca27.js +0 -1
  432. package/assets/esri/core/workers/chunks/b78ea9cc4d5f2fd3d871.js +0 -1
  433. package/assets/esri/core/workers/chunks/bd4125d163f372a7e978.js +0 -1
  434. package/assets/esri/core/workers/chunks/d0a149050f7f1c1ada09.js +0 -1
  435. package/assets/esri/core/workers/chunks/d142a42755a78bb157ed.js +0 -1
  436. package/assets/esri/core/workers/chunks/da42cc4f6142846cb745.js +0 -1
  437. package/assets/esri/core/workers/chunks/dd84f630466a26722d57.js +0 -1
  438. package/assets/esri/core/workers/chunks/e17df11c98dbd869302b.js +0 -1
  439. package/assets/esri/core/workers/chunks/e1b3ae6426886e2fab07.js +0 -1
  440. package/assets/esri/core/workers/chunks/f35003a90163847fe1e2.js +0 -1
  441. package/assets/esri/core/workers/chunks/f6513ec888a7d927d948.js +0 -1
  442. package/assets/esri/core/workers/chunks/f6e18668f728dfd8ba5e.js +0 -2
  443. package/views/2d/layers/features/sources/strategies/AFetchLoadStrategy.js +0 -5
  444. package/views/2d/layers/features/sources/strategies/ATileLoadStrategy.js +0 -5
  445. package/views/2d/layers/features/sources/strategies/DrillDownTileLoadStrategy.js +0 -5
  446. package/views/2d/layers/features/sources/strategies/PagedTileLoadStrategy.js +0 -5
  447. package/views/2d/layers/features/sources/strategies/SnapshotLoadStrategy.js +0 -5
package/kernel.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.34/esri/copyright.txt for details.
4
4
  */
5
- import has from"./core/has.js";import{addQueryParameter as o}from"./core/urlUtils.js";export{buildDate,commitHash as revision}from"./support/revision.js";Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");const e="4.34";let s,r=e;function i(o){s=o}function t(e){const r=s?.findCredential(e);return r?.token?o(e,"token",r.token):e}r="4.34.0-next.86",has("host-webworker")||globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),has("host-webworker");export{t as addTokenParameter,r as fullVersion,s as id,i as setId,e as version};
5
+ import has from"./core/has.js";import{addQueryParameter as o}from"./core/urlUtils.js";export{buildDate,commitHash as revision}from"./support/revision.js";Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");const e="4.34";let s,r=e;function i(o){s=o}function t(e){const r=s?.findCredential(e);return r?.token?o(e,"token",r.token):e}r="4.34.0-next.88",has("host-webworker")||globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),has("host-webworker");export{t as addTokenParameter,r as fullVersion,s as id,i as setId,e as version};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
4
  */
5
- import{__decorate as e}from"tslib";import t from"../request.js";import i from"../core/Error.js";import r from"../core/Logger.js";import{MultiOriginJSONMixin as s}from"../core/MultiOriginJSONSupport.js";import{throwIfAbortError as o}from"../core/promiseUtils.js";import{property as a}from"../core/accessorSupport/decorators/property.js";import"../core/has.js";import"../core/RandomLCG.js";import{subclass as l}from"../core/accessorSupport/decorators/subclass.js";import p from"../geometry/Extent.js";import n from"../geometry/SpatialReference.js";import m from"./Layer.js";import{APIKeyMixin as c}from"./mixins/APIKeyMixin.js";import{CustomParametersMixin as u}from"./mixins/CustomParametersMixin.js";import{OperationalLayer as y}from"./mixins/OperationalLayer.js";import{PortalLayer as h}from"./mixins/PortalLayer.js";import{ScaleRangeLayer as f}from"./mixins/ScaleRangeLayer.js";import{url as d,elevationInfo as x}from"./support/commonProperties.js";import{hasEsriCrs as S,initFullExtent as v}from"./support/tiles3DUtils.js";import{logInvalidElevationInfoWarning as j,elevationModeRequiredMessage as g,featureExpressionUnsupportedMessage as R}from"../support/elevationInfoUtils.js";let w=class extends(y(h(f(s(u(c(m))))))){constructor(e){super(e),this.operationalLayerType="GaussianSplatLayer",this.type="gaussian-splat",this.opacity=1,this.minScale=0,this.maxScale=0,this.url=null,this.rootTilesetJSON=null,this.fullExtent=new p(-180,-90,180,90,this.spatialReference),this.spatialReference=new n({wkid:4326,vcsWkid:115700}),this.esriCrsSpatialReference=null,this.esriCrsFullExtent=null}get supportedSpatialReferences(){return this.initialized&&this.esriCrsSpatialReference?[this.spatialReference,this.esriCrsSpatialReference]:[this.spatialReference]}get fullExtents(){return this.initialized&&this.esriCrsFullExtent?[this.fullExtent,this.esriCrsFullExtent]:[this.fullExtent]}set elevationInfo(e){null!=e&&"absolute-height"!==e.mode||this._set("elevationInfo",e),this._validateElevationInfo(e)}async load(e){return this.addResolvingPromise(this._doLoad(e)),this}async _doLoad(e){const r=null!=e?e.signal:null;try{await this.loadFromPortal({supportedTypes:["3DTiles Service"],validateItem:e=>{throw new i("portal:invalid-layer-item-type","Invalid layer item, expected '${expectedType}' ",{expectedType:"3DTiles Service"})}},e)}catch(s){o(s)}if(this.url){const e=t(this.url,{query:{...this.customParameters,token:this.apiKey},responseType:"json",signal:r}).then(e=>{this.rootTilesetJSON=e.data;const t=S(this.rootTilesetJSON);this.fullExtent=v(this.rootTilesetJSON,!1),this.spatialReference=this.fullExtent.spatialReference,t&&(this.esriCrsFullExtent=v(this.rootTilesetJSON,!0),this.esriCrsSpatialReference=this.esriCrsFullExtent.spatialReference)},e=>{o(e)});await e}}_validateElevationInfo(e){const t="Gaussian Splat layers";j(r.getLogger(this),g(t,"absolute-height",e)),j(r.getLogger(this),R(t,e))}};e([a({type:["GaussianSplatLayer"]})],w.prototype,"operationalLayerType",void 0),e([a({readOnly:!0})],w.prototype,"type",void 0),e([a({readOnly:!0,json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}}})],w.prototype,"opacity",void 0),e([a({type:Number,json:{name:"layerDefinition.minScale",write:!0,origins:{service:{read:!1,write:!1}}}})],w.prototype,"minScale",void 0),e([a({type:Number,json:{name:"layerDefinition.maxScale",write:!0,origins:{service:{read:!1,write:!1}}}})],w.prototype,"maxScale",void 0),e([a(d)],w.prototype,"url",void 0),e([a({type:p})],w.prototype,"fullExtent",void 0),e([a({type:n})],w.prototype,"spatialReference",void 0),e([a({readOnly:!0})],w.prototype,"supportedSpatialReferences",null),e([a({type:[p]})],w.prototype,"fullExtents",null),e([a({type:["show","hide"]})],w.prototype,"listMode",void 0),e([a(x)],w.prototype,"elevationInfo",null),w=e([l("esri.layers.GaussianSplatLayer")],w);const E=w;export{E as default};
5
+ import{__decorate as e}from"tslib";import t from"../request.js";import i from"../core/Error.js";import r from"../core/Logger.js";import{MultiOriginJSONMixin as s}from"../core/MultiOriginJSONSupport.js";import{throwIfAbortError as o}from"../core/promiseUtils.js";import{property as a}from"../core/accessorSupport/decorators/property.js";import"../core/has.js";import"../core/RandomLCG.js";import{subclass as l}from"../core/accessorSupport/decorators/subclass.js";import p from"../geometry/Extent.js";import n from"../geometry/SpatialReference.js";import m from"./Layer.js";import{APIKeyMixin as c}from"./mixins/APIKeyMixin.js";import{CustomParametersMixin as u}from"./mixins/CustomParametersMixin.js";import{OperationalLayer as y}from"./mixins/OperationalLayer.js";import{PortalLayer as h}from"./mixins/PortalLayer.js";import{ScaleRangeLayer as d}from"./mixins/ScaleRangeLayer.js";import{url as f,elevationInfo as S}from"./support/commonProperties.js";import{hasEsriCrs as x,initFullExtent as v}from"./support/tiles3DUtils.js";import{logInvalidElevationInfoWarning as j,elevationModeRequiredMessage as g,featureExpressionUnsupportedMessage as w}from"../support/elevationInfoUtils.js";let R=class extends(y(h(d(s(u(c(m))))))){constructor(e){super(e),this.operationalLayerType="GaussianSplatLayer",this.type="gaussian-splat",this.opacity=1,this.minScale=0,this.maxScale=0,this.url=null,this.rootTilesetJSON=null,this.fullExtent=new p(-180,-90,180,90,this.spatialReference),this.spatialReference=new n({wkid:4326,vcsWkid:115700}),this.esriCrsSpatialReference=null,this.esriCrsFullExtent=null}get supportedSpatialReferences(){return this.initialized&&this.esriCrsSpatialReference?[this.spatialReference,this.esriCrsSpatialReference]:[this.spatialReference]}get fullExtents(){return this.initialized&&this.esriCrsFullExtent?[this.fullExtent,this.esriCrsFullExtent]:[this.fullExtent]}set elevationInfo(e){null!=e&&"absolute-height"!==e.mode||this._set("elevationInfo",e),this._validateElevationInfo(e)}async load(e){return this.addResolvingPromise(this._doLoad(e)),this}async _doLoad(e){const r=null!=e?e.signal:null;try{await this.loadFromPortal({supportedTypes:["3DTiles Service"],validateItem:e=>{if(e.typeKeywords?.includes("GaussianSplat"))return!0;throw new i("portal:invalid-layer-item-type","Invalid layer item, expected '${expectedType}' ",{expectedType:"3DTiles Service"})}},e)}catch(s){o(s)}if(this.url){const e=t(this.url,{query:{...this.customParameters,token:this.apiKey},responseType:"json",signal:r}).then(e=>{this.rootTilesetJSON=e.data;const t=x(this.rootTilesetJSON);this.fullExtent=v(this.rootTilesetJSON,!1),this.spatialReference=this.fullExtent.spatialReference,t&&(this.esriCrsFullExtent=v(this.rootTilesetJSON,!0),this.esriCrsSpatialReference=this.esriCrsFullExtent.spatialReference)},e=>{o(e)});await e}}_validateElevationInfo(e){const t="Gaussian Splat layers";j(r.getLogger(this),g(t,"absolute-height",e)),j(r.getLogger(this),w(t,e))}};e([a({type:["GaussianSplatLayer"]})],R.prototype,"operationalLayerType",void 0),e([a({readOnly:!0})],R.prototype,"type",void 0),e([a({readOnly:!0,json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}}})],R.prototype,"opacity",void 0),e([a({type:Number,json:{name:"layerDefinition.minScale",write:!0,origins:{service:{read:!1,write:!1}}}})],R.prototype,"minScale",void 0),e([a({type:Number,json:{name:"layerDefinition.maxScale",write:!0,origins:{service:{read:!1,write:!1}}}})],R.prototype,"maxScale",void 0),e([a(f)],R.prototype,"url",void 0),e([a({type:p})],R.prototype,"fullExtent",void 0),e([a({type:n})],R.prototype,"spatialReference",void 0),e([a({readOnly:!0})],R.prototype,"supportedSpatialReferences",null),e([a({type:[p]})],R.prototype,"fullExtents",null),e([a({type:["show","hide"]})],R.prototype,"listMode",void 0),e([a(S)],R.prototype,"elevationInfo",null),R=e([l("esri.layers.GaussianSplatLayer")],R);const E=R;export{E as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
4
  */
5
- import{__decorate as e}from"tslib";import t from"../request.js";import o from"../core/Error.js";import r from"../core/Logger.js";import{MultiOriginJSONMixin as i}from"../core/MultiOriginJSONSupport.js";import{throwIfAbortError as s}from"../core/promiseUtils.js";import{on as n,sync as a}from"../core/reactiveUtils.js";import{property as l}from"../core/accessorSupport/decorators/property.js";import"../core/has.js";import"../core/RandomLCG.js";import{reader as p}from"../core/accessorSupport/decorators/reader.js";import{subclass as m}from"../core/accessorSupport/decorators/subclass.js";import{persistable as c}from"../core/accessorSupport/decorators/persistable.js";import d from"../geometry/Extent.js";import u from"../geometry/SpatialReference.js";import h from"./Layer.js";import{APIKeyMixin as f}from"./mixins/APIKeyMixin.js";import{ArcGISService as y}from"./mixins/ArcGISService.js";import{CustomParametersMixin as g}from"./mixins/CustomParametersMixin.js";import{OperationalLayer as S}from"./mixins/OperationalLayer.js";import{PortalLayer as _}from"./mixins/PortalLayer.js";import{ScaleRangeLayer as j}from"./mixins/ScaleRangeLayer.js";import{elevationInfo as T,url as v}from"./support/commonProperties.js";import L from"./support/SceneModifications.js";import{initFullExtent as w}from"./support/tiles3DUtils.js";import x from"../portal/Portal.js";import{logInvalidElevationInfoWarning as b,elevationModeRequiredMessage as I,featureExpressionUnsupportedMessage as P}from"../support/elevationInfoUtils.js";import{f as R}from"../chunks/persistableUrlUtils.js";import{isBasemap as k}from"../support/userTypeGuards/isBasemap.js";let O=class extends(y(S(_(j(i(g(f(h)))))))){readModifications(e,t,o){this._modificationsSource={url:R(e,o),context:o}}initialize(){this.addHandles(n(()=>this.modifications,"after-changes",()=>this.modifications=this.modifications,a))}constructor(e){super(e),this.operationalLayerType="IntegratedMesh3DTilesLayer",this.modifications=null,this._modificationsSource=null,this.spatialReference=new u({wkid:4326,vcsWkid:115700}),this.fullExtent=new d(-180,-90,180,90,this.spatialReference),this.url=null,this.type="integrated-mesh-3dtiles",this.path=null,this.minScale=0,this.maxScale=0,this._rootTilesetJSON=null,this._rootTileset=null,this._key=null,this._session=null,this._rootRequestPromise=null}set elevationInfo(e){null!=e&&"absolute-height"!==e.mode||this._set("elevationInfo",e),this._validateElevationInfo(e)}async load(e){return this.addResolvingPromise(this._doLoad(e)),this}get rootTilesetJSON(){return this._rootTilesetJSON}get rootTileset(){return this._rootTileset}get key(){return this._key}get session(){return this._session}_findSessionParameter(e){const t=[e];for(;t?.length>0;){const e=t.pop();if(!e)return;for(const[r,i]of Object.entries(e)){if("uri"===r)try{const e=new URL("https://tmp"+i).searchParams.get("session");if(e)return e}catch(o){}"object"==typeof i&&null!==i&&t.push(i)}}return null}async requestRootAndSession(e){const i=(e,t)=>new o("request-root-and-session:"+e,"requestRootAndSession: "+t);return this._rootRequestPromise||(this._rootRequestPromise=new Promise((o,n)=>{this.url||n(i("url-missing","requestRootAndSession: url missing")),this._key=this.customParameters?this.customParameters.key:null;new Promise((e,o)=>{if(this.replacesTerrain&&!this._key){const r=this.portalItem?.portal||this.parent?.portalItem?.portal||x.getDefault();r.signIn().then(()=>{r.g3dTilesEnabled||o(i("g3dTilesEnabled-false","g3dTilesEnabled is false")),t(r.restUrl+"/portals/self/modules/g3dtiles",{responseType:"json",query:{f:"json"}}).then(t=>{this._key=t.data.keyString,e()},()=>o(i("session-key-not-found","can't get session key")))},()=>o(i("sign-in.failed","can't sign in to portal")))}else e()}).then(()=>{t(this.url,{query:this._key?{key:this._key,token:this.apiKey}:{token:this.apiKey},responseType:"array-buffer",signal:e}).then(e=>{this._rootTilesetJSON=JSON.parse((new TextDecoder).decode(e.data)),this._rootTilesetJSON?(this._session=this._findSessionParameter(this._rootTilesetJSON),this._rootTileset=e.data,this.fullExtent=w(this._rootTilesetJSON),o(),this._rootRequestPromise=null):n(i("root-parse-failed","Error parsing root tile"))},e=>{s(e),n(e),this._rootRequestPromise=null,r.getLogger("IntegratedMesh3DTilesLayer").error("Layer loading failed",e)})},e=>n(e))})),this._rootRequestPromise}async _doLoad(e){const t=null!=e?e.signal:null;try{await this.loadFromPortal({supportedTypes:["3DTiles Service"],validateItem:e=>{if(e.typeKeywords?.includes("IntegratedMesh"))return!0;throw new o("portal:invalid-layer-item-type","Invalid layer item, expected '${expectedType}' ",{expectedType:"3DTiles Service containing IntegratedMesh"})}},e)}catch(r){s(r)}if(null!=this._modificationsSource){const t=await L.fromUrl(this._modificationsSource.url,this.spatialReference,e);this.setAtOrigin("modifications",t,this._modificationsSource.context.origin),this._modificationsSource=null}await this.requestRootAndSession(t)}beforeSave(){if(null!=this._modificationsSource)return this.load().then(()=>{},e=>{r.getLogger("IntegratedMesh3DTilesLayer").error("Layer loading failed",e)})}get hasAttributionData(){return!1}async fetchAttributionData(){return{}}_validateElevationInfo(e){const t="Integrated mesh 3d tiles layers";b(r.getLogger(this),I(t,"absolute-height",e)),b(r.getLogger(this),P(t,e))}get replacesTerrain(){return this.hasGoogleUrl&&this._isUsedAsGroundLayer}get _isUsedAsGroundLayer(){return k(this.parent)}get hasGoogleUrl(){return!!this.url?.match(/.+\.googleapis.com/)}};e([l({type:["IntegratedMesh3DTilesLayer"]})],O.prototype,"operationalLayerType",void 0),e([l({type:L,clonable:e=>e.clone()}),c({origins:["web-scene","portal-item"],type:"resource",prefix:"modifications"})],O.prototype,"modifications",void 0),e([p(["web-scene","portal-item"],"modifications")],O.prototype,"readModifications",null),e([l({type:u})],O.prototype,"spatialReference",void 0),e([l({type:d})],O.prototype,"fullExtent",void 0),e([l(T)],O.prototype,"elevationInfo",null),e([l({type:["show","hide"]})],O.prototype,"listMode",void 0),e([l(v)],O.prototype,"url",void 0),e([l({readOnly:!0})],O.prototype,"type",void 0),e([l({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],O.prototype,"path",void 0),e([l({type:Number,json:{name:"layerDefinition.minScale",write:!0,origins:{service:{read:!1,write:!1}}}})],O.prototype,"minScale",void 0),e([l({type:Number,json:{name:"layerDefinition.maxScale",write:!0,origins:{service:{read:!1,write:!1}}}})],O.prototype,"maxScale",void 0),e([l({readOnly:!0})],O.prototype,"replacesTerrain",null),e([l({readOnly:!0})],O.prototype,"_isUsedAsGroundLayer",null),e([l()],O.prototype,"hasGoogleUrl",null),O=e([m("esri.layers.IntegratedMesh3DTilesLayer")],O);const U=O;export{U as default};
5
+ import{__decorate as e}from"tslib";import t from"../request.js";import o from"../core/Error.js";import r from"../core/Logger.js";import{MultiOriginJSONMixin as i}from"../core/MultiOriginJSONSupport.js";import{throwIfAbortError as s}from"../core/promiseUtils.js";import{on as n,sync as a}from"../core/reactiveUtils.js";import{property as l}from"../core/accessorSupport/decorators/property.js";import"../core/has.js";import"../core/RandomLCG.js";import{reader as p}from"../core/accessorSupport/decorators/reader.js";import{subclass as m}from"../core/accessorSupport/decorators/subclass.js";import{persistable as c}from"../core/accessorSupport/decorators/persistable.js";import d from"../geometry/Extent.js";import u from"../geometry/SpatialReference.js";import h from"./Layer.js";import{APIKeyMixin as f}from"./mixins/APIKeyMixin.js";import{ArcGISService as y}from"./mixins/ArcGISService.js";import{CustomParametersMixin as g}from"./mixins/CustomParametersMixin.js";import{OperationalLayer as S}from"./mixins/OperationalLayer.js";import{PortalLayer as _}from"./mixins/PortalLayer.js";import{ScaleRangeLayer as j}from"./mixins/ScaleRangeLayer.js";import{elevationInfo as T,url as v}from"./support/commonProperties.js";import L from"./support/SceneModifications.js";import{initFullExtent as w}from"./support/tiles3DUtils.js";import x from"../portal/Portal.js";import{logInvalidElevationInfoWarning as b,elevationModeRequiredMessage as I,featureExpressionUnsupportedMessage as P}from"../support/elevationInfoUtils.js";import{f as R}from"../chunks/persistableUrlUtils.js";import{isBasemap as k}from"../support/userTypeGuards/isBasemap.js";let U=class extends(y(S(_(j(i(g(f(h)))))))){readModifications(e,t,o){this._modificationsSource={url:R(e,o),context:o}}initialize(){this.addHandles(n(()=>this.modifications,"after-changes",()=>this.modifications=this.modifications,a))}constructor(e){super(e),this.operationalLayerType="IntegratedMesh3DTilesLayer",this.modifications=null,this._modificationsSource=null,this.spatialReference=new u({wkid:4326,vcsWkid:115700}),this.fullExtent=new d(-180,-90,180,90,this.spatialReference),this.url=null,this.type="integrated-mesh-3dtiles",this.path=null,this.minScale=0,this.maxScale=0,this._rootTilesetJSON=null,this._rootTileset=null,this._key=null,this._session=null,this._rootRequestPromise=null}set elevationInfo(e){null!=e&&"absolute-height"!==e.mode||this._set("elevationInfo",e),this._validateElevationInfo(e)}async load(e){return this.addResolvingPromise(this._doLoad(e)),this}get rootTilesetJSON(){return this._rootTilesetJSON}get rootTileset(){return this._rootTileset}get key(){return this._key}get session(){return this._session}_findSessionParameter(e){const t=[e];for(;t?.length>0;){const e=t.pop();if(!e)return;for(const[r,i]of Object.entries(e)){if("uri"===r)try{const e=new URL("https://tmp"+i).searchParams.get("session");if(e)return e}catch(o){}"object"==typeof i&&null!==i&&t.push(i)}}return null}async requestRootAndSession(e){const i=(e,t)=>new o("request-root-and-session:"+e,"requestRootAndSession: "+t);return this._rootRequestPromise||(this._rootRequestPromise=new Promise((o,n)=>{this.url||n(i("url-missing","requestRootAndSession: url missing")),this._key=this.customParameters?this.customParameters.key:null;new Promise((e,o)=>{if(this.replacesTerrain&&!this._key){const r=this.portalItem?.portal||this.parent?.portalItem?.portal||x.getDefault();r.signIn().then(()=>{r.g3dTilesEnabled||o(i("g3dTilesEnabled-false","g3dTilesEnabled is false")),t(r.restUrl+"/portals/self/modules/g3dtiles",{responseType:"json",query:{f:"json"}}).then(t=>{this._key=t.data.keyString,e()},()=>o(i("session-key-not-found","can't get session key")))},()=>o(i("sign-in.failed","can't sign in to portal")))}else e()}).then(()=>{t(this.url,{query:this._key?{key:this._key,token:this.apiKey}:{token:this.apiKey},responseType:"array-buffer",signal:e}).then(e=>{this._rootTilesetJSON=JSON.parse((new TextDecoder).decode(e.data)),this._rootTilesetJSON?(this._session=this._findSessionParameter(this._rootTilesetJSON),this._rootTileset=e.data,this.fullExtent=w(this._rootTilesetJSON),o(),this._rootRequestPromise=null):n(i("root-parse-failed","Error parsing root tile"))},e=>{s(e),n(e),this._rootRequestPromise=null,r.getLogger("IntegratedMesh3DTilesLayer").error("Layer loading failed",e)})},e=>n(e))})),this._rootRequestPromise}async _doLoad(e){const t=null!=e?e.signal:null;try{await this.loadFromPortal({supportedTypes:["3DTiles Service"],validateItem:e=>{if(e.typeKeywords?.includes("IntegratedMesh"))return!0;throw new o("portal:invalid-layer-item-type","Invalid layer item, expected '${expectedType}' ",{expectedType:"3DTiles Service containing IntegratedMesh"})}},e)}catch(r){s(r)}if(null!=this._modificationsSource){const t=await L.fromUrl(this._modificationsSource.url,this.spatialReference,e);this.setAtOrigin("modifications",t,this._modificationsSource.context.origin),this._modificationsSource=null}await this.requestRootAndSession(t)}beforeSave(){if(null!=this._modificationsSource)return this.load().then(()=>{},e=>{r.getLogger("IntegratedMesh3DTilesLayer").error("Layer loading failed",e)})}get hasAttributionData(){return!1}async fetchAttributionData(){return{}}_validateElevationInfo(e){const t="Integrated mesh 3d tiles layers";b(r.getLogger(this),I(t,"absolute-height",e)),b(r.getLogger(this),P(t,e))}get replacesTerrain(){return this.hasGoogleUrl&&this._isUsedAsGroundLayer}get _isUsedAsGroundLayer(){return k(this.parent)}get hasGoogleUrl(){return!!this.url?.match(/.+\.googleapis.com/)}};e([l({type:["IntegratedMesh3DTilesLayer"]})],U.prototype,"operationalLayerType",void 0),e([l({type:L,clonable:e=>e.clone()}),c({origins:["web-scene","portal-item"],type:"resource",prefix:"modifications"})],U.prototype,"modifications",void 0),e([p(["web-scene","portal-item"],"modifications")],U.prototype,"readModifications",null),e([l({type:u})],U.prototype,"spatialReference",void 0),e([l({type:d})],U.prototype,"fullExtent",void 0),e([l(T)],U.prototype,"elevationInfo",null),e([l({type:["show","hide"]})],U.prototype,"listMode",void 0),e([l(v)],U.prototype,"url",void 0),e([l({readOnly:!0})],U.prototype,"type",void 0),e([l({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],U.prototype,"path",void 0),e([l({type:Number,json:{name:"layerDefinition.minScale",write:!0,origins:{service:{read:!1,write:!1}}}})],U.prototype,"minScale",void 0),e([l({type:Number,json:{name:"layerDefinition.maxScale",write:!0,origins:{service:{read:!1,write:!1}}}})],U.prototype,"maxScale",void 0),e([l()],U.prototype,"replacesTerrain",null),e([l()],U.prototype,"_isUsedAsGroundLayer",null),e([l()],U.prototype,"hasGoogleUrl",null),U=e([m("esri.layers.IntegratedMesh3DTilesLayer")],U);const q=U;export{q as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
4
  */
5
- import{__decorate as e}from"tslib";import{ClonableMixin as t}from"../core/Clonable.js";import r from"../core/Error.js";import o from"../core/Logger.js";import{MultiOriginJSONMixin as i}from"../core/MultiOriginJSONSupport.js";import{throwIfAbortError as s}from"../core/promiseUtils.js";import{on as a,sync as n}from"../core/reactiveUtils.js";import{property as p}from"../core/accessorSupport/decorators/property.js";import"../core/has.js";import"../core/RandomLCG.js";import{reader as l}from"../core/accessorSupport/decorators/reader.js";import{subclass as d}from"../core/accessorSupport/decorators/subclass.js";import{persistable as m}from"../core/accessorSupport/decorators/persistable.js";import c from"./Layer.js";import{APIKeyMixin as y}from"./mixins/APIKeyMixin.js";import{ArcGISService as h}from"./mixins/ArcGISService.js";import{CustomParametersMixin as f}from"./mixins/CustomParametersMixin.js";import{OperationalLayer as u}from"./mixins/OperationalLayer.js";import{PortalLayer as v}from"./mixins/PortalLayer.js";import{ScaleRangeLayer as g}from"./mixins/ScaleRangeLayer.js";import{SceneService as S}from"./mixins/SceneService.js";import{elevationInfo as j}from"./support/commonProperties.js";import{I3SNodePageDefinition as L,I3SMaterialDefinition as T,I3STextureSetDefinition as _,I3SGeometryDefinition as w}from"./support/I3SLayerDefinitions.js";import x from"./support/SceneModifications.js";import{logInvalidElevationInfoWarning as I,elevationModeRequiredMessage as b,featureExpressionUnsupportedMessage as O}from"../support/elevationInfoUtils.js";import{f as M}from"../chunks/persistableUrlUtils.js";import{isBasemap as U}from"../support/userTypeGuards/isBasemap.js";let A=class extends(S(h(u(v(g(i(f(y(t(c)))))))))){constructor(...e){super(...e),this.geometryType="mesh",this.operationalLayerType="IntegratedMeshLayer",this.type="integrated-mesh",this.nodePages=null,this.materialDefinitions=null,this.textureSetDefinitions=null,this.geometryDefinitions=null,this.serviceUpdateTimeStamp=null,this.profile="mesh-pyramids",this.modifications=null,this.path=null,this.definitionExpression=null,this._canReplaceTerrain=!1}initialize(){this.addHandles(a(()=>this.modifications,"after-changes",()=>this.modifications=this.modifications,n))}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}readModifications(e,t,r){this._modificationsSource={url:M(e,r),context:r}}set elevationInfo(e){null!=e&&"absolute-height"!==e.mode||this._set("elevationInfo",e),this._validateElevationInfo(e)}async load(e){return this.addResolvingPromise(this._doLoad(e)),this}async _doLoad(e){const t=e?.signal;try{await this.loadFromPortal({supportedTypes:["Scene Service"]},e)}catch(r){s(r)}if(await this._fetchService(t),null!=this._modificationsSource){const t=await x.fromUrl(this._modificationsSource.url,this.spatialReference,e);this.setAtOrigin("modifications",t,this._modificationsSource.context.origin),this._modificationsSource=null}await this._fetchIndexAndUpdateExtent(this.nodePages,t)}beforeSave(){if(null!=this._modificationsSource)return this.load().then(()=>{},()=>{})}async saveAs(e,t){return this._debouncedSaveOperations(1,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"};return this._debouncedSaveOperations(0,e)}validateLayer(e){if(e.layerType&&"IntegratedMesh"!==e.layerType)throw new r("integrated-mesh-layer:layer-type-not-supported","IntegratedMeshLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new r("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"});if(this.version.major>1)throw new r("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"})}_getTypeKeywords(){return["IntegratedMeshLayer"]}_validateElevationInfo(e){const t="Integrated mesh layers";I(o.getLogger(this),b(t,"absolute-height",e)),I(o.getLogger(this),O(t,e))}get replacesTerrain(){return this._canReplaceTerrain&&this._isUsedAsGroundLayer}get _isUsedAsGroundLayer(){return U(this.parent)}};e([p({type:String,readOnly:!0})],A.prototype,"geometryType",void 0),e([p({type:["show","hide"]})],A.prototype,"listMode",void 0),e([p({type:["IntegratedMeshLayer"]})],A.prototype,"operationalLayerType",void 0),e([p({json:{read:!1},readOnly:!0})],A.prototype,"type",void 0),e([p({type:L,readOnly:!0,clonable:!1})],A.prototype,"nodePages",void 0),e([p({type:[T],readOnly:!0,clonable:!1})],A.prototype,"materialDefinitions",void 0),e([p({type:[_],readOnly:!0,clonable:!1})],A.prototype,"textureSetDefinitions",void 0),e([p({type:[w],readOnly:!0,clonable:!1})],A.prototype,"geometryDefinitions",void 0),e([p({readOnly:!0})],A.prototype,"serviceUpdateTimeStamp",void 0),e([p({type:x,clonable:e=>e?.clone()??e}),m({origins:["web-scene","portal-item"],type:"resource",prefix:"modifications"})],A.prototype,"modifications",void 0),e([l(["web-scene","portal-item"],"modifications")],A.prototype,"readModifications",null),e([p(j)],A.prototype,"elevationInfo",null),e([p({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],A.prototype,"path",void 0),e([p({readOnly:!0})],A.prototype,"replacesTerrain",null),e([p({readOnly:!0})],A.prototype,"_isUsedAsGroundLayer",null),e([p()],A.prototype,"_canReplaceTerrain",void 0),A=e([d("esri.layers.IntegratedMeshLayer")],A);const P=A;export{P as default};
5
+ import{__decorate as e}from"tslib";import{ClonableMixin as t}from"../core/Clonable.js";import r from"../core/Error.js";import o from"../core/Logger.js";import{MultiOriginJSONMixin as i}from"../core/MultiOriginJSONSupport.js";import{throwIfAbortError as s}from"../core/promiseUtils.js";import{on as a,sync as n}from"../core/reactiveUtils.js";import{property as p}from"../core/accessorSupport/decorators/property.js";import"../core/has.js";import"../core/RandomLCG.js";import{reader as l}from"../core/accessorSupport/decorators/reader.js";import{subclass as d}from"../core/accessorSupport/decorators/subclass.js";import{persistable as m}from"../core/accessorSupport/decorators/persistable.js";import c from"./Layer.js";import{APIKeyMixin as y}from"./mixins/APIKeyMixin.js";import{ArcGISService as h}from"./mixins/ArcGISService.js";import{CustomParametersMixin as f}from"./mixins/CustomParametersMixin.js";import{OperationalLayer as u}from"./mixins/OperationalLayer.js";import{PortalLayer as v}from"./mixins/PortalLayer.js";import{ScaleRangeLayer as g}from"./mixins/ScaleRangeLayer.js";import{SceneService as S}from"./mixins/SceneService.js";import{elevationInfo as j}from"./support/commonProperties.js";import{I3SNodePageDefinition as L,I3SMaterialDefinition as T,I3STextureSetDefinition as _,I3SGeometryDefinition as w}from"./support/I3SLayerDefinitions.js";import x from"./support/SceneModifications.js";import{logInvalidElevationInfoWarning as I,elevationModeRequiredMessage as b,featureExpressionUnsupportedMessage as M}from"../support/elevationInfoUtils.js";import{f as O}from"../chunks/persistableUrlUtils.js";import{isBasemap as U}from"../support/userTypeGuards/isBasemap.js";let A=class extends(S(h(u(v(g(i(f(y(t(c)))))))))){constructor(...e){super(...e),this.geometryType="mesh",this.operationalLayerType="IntegratedMeshLayer",this.type="integrated-mesh",this.nodePages=null,this.materialDefinitions=null,this.textureSetDefinitions=null,this.geometryDefinitions=null,this.serviceUpdateTimeStamp=null,this.profile="mesh-pyramids",this.modifications=null,this.path=null,this.definitionExpression=null,this._canReplaceTerrain=!1}initialize(){this.addHandles(a(()=>this.modifications,"after-changes",()=>this.modifications=this.modifications,n))}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}readModifications(e,t,r){this._modificationsSource={url:O(e,r),context:r}}set elevationInfo(e){null!=e&&"absolute-height"!==e.mode||this._set("elevationInfo",e),this._validateElevationInfo(e)}async load(e){return this.addResolvingPromise(this._doLoad(e)),this}async _doLoad(e){const t=e?.signal;try{await this.loadFromPortal({supportedTypes:["Scene Service"]},e)}catch(r){s(r)}if(await this._fetchService(t),null!=this._modificationsSource){const t=await x.fromUrl(this._modificationsSource.url,this.spatialReference,e);this.setAtOrigin("modifications",t,this._modificationsSource.context.origin),this._modificationsSource=null}await this._fetchIndexAndUpdateExtent(this.nodePages,t)}beforeSave(){if(null!=this._modificationsSource)return this.load().then(()=>{},()=>{})}async saveAs(e,t){return this._debouncedSaveOperations(1,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"};return this._debouncedSaveOperations(0,e)}validateLayer(e){if(e.layerType&&"IntegratedMesh"!==e.layerType)throw new r("integrated-mesh-layer:layer-type-not-supported","IntegratedMeshLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new r("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"});if(this.version.major>1)throw new r("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"})}_getTypeKeywords(){return["IntegratedMeshLayer"]}_validateElevationInfo(e){const t="Integrated mesh layers";I(o.getLogger(this),b(t,"absolute-height",e)),I(o.getLogger(this),M(t,e))}get replacesTerrain(){return this._canReplaceTerrain&&this._isUsedAsGroundLayer}get _isUsedAsGroundLayer(){return U(this.parent)}};e([p({type:String,readOnly:!0})],A.prototype,"geometryType",void 0),e([p({type:["show","hide"]})],A.prototype,"listMode",void 0),e([p({type:["IntegratedMeshLayer"]})],A.prototype,"operationalLayerType",void 0),e([p({json:{read:!1},readOnly:!0})],A.prototype,"type",void 0),e([p({type:L,readOnly:!0,clonable:!1})],A.prototype,"nodePages",void 0),e([p({type:[T],readOnly:!0,clonable:!1})],A.prototype,"materialDefinitions",void 0),e([p({type:[_],readOnly:!0,clonable:!1})],A.prototype,"textureSetDefinitions",void 0),e([p({type:[w],readOnly:!0,clonable:!1})],A.prototype,"geometryDefinitions",void 0),e([p({readOnly:!0})],A.prototype,"serviceUpdateTimeStamp",void 0),e([p({type:x,clonable:e=>e?.clone()??e}),m({origins:["web-scene","portal-item"],type:"resource",prefix:"modifications"})],A.prototype,"modifications",void 0),e([l(["web-scene","portal-item"],"modifications")],A.prototype,"readModifications",null),e([p(j)],A.prototype,"elevationInfo",null),e([p({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],A.prototype,"path",void 0),e([p()],A.prototype,"replacesTerrain",null),e([p()],A.prototype,"_isUsedAsGroundLayer",null),e([p()],A.prototype,"_canReplaceTerrain",void 0),A=e([d("esri.layers.IntegratedMeshLayer")],A);const P=A;export{P as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
4
  */
5
- import{__decorate as e}from"tslib";import t from"../PopupTemplate.js";import{ClonableMixin as r}from"../core/Clonable.js";import s from"../core/Collection.js";import o from"../core/Error.js";import i from"../core/Logger.js";import{MultiOriginJSONMixin as p}from"../core/MultiOriginJSONSupport.js";import{watch as a}from"../core/reactiveUtils.js";import{property as n}from"../core/accessorSupport/decorators/property.js";import{subclass as u}from"../core/accessorSupport/decorators/subclass.js";import l from"../geometry/SpatialReference.js";import d from"../graphic/ParquetGraphicOrigin.js";import m from"./Layer.js";import{ParquetSource as c}from"./graphics/sources/ParquetSource.js";import{BlendLayer as y}from"./mixins/BlendLayer.js";import{CustomParametersMixin as f}from"./mixins/CustomParametersMixin.js";import{DisplayFilteredLayer as h}from"./mixins/DisplayFilteredLayer.js";import{FeatureEffectLayer as g}from"./mixins/FeatureEffectLayer.js";import{FeatureReductionLayer as j}from"./mixins/FeatureReductionLayer.js";import{OperationalLayer as v}from"./mixins/OperationalLayer.js";import{OrderedLayer as x}from"./mixins/OrderedLayer.js";import{PortalLayer as F}from"./mixins/PortalLayer.js";import{ScaleRangeLayer as S}from"./mixins/ScaleRangeLayer.js";import{TemporalLayer as b}from"./mixins/TemporalLayer.js";import{labelsVisible as I}from"./support/commonProperties.js";import O from"./support/FeatureTemplate.js";import R from"./support/Field.js";import{defineFieldProperties as q}from"./support/fieldProperties.js";import{fixRendererFields as P,fixTimeInfoFields as T}from"./support/fieldUtils.js";import w from"./support/LabelClass.js";import{reader as C}from"./support/labelingInfo.js";import{ParquetEncodingBase as Q}from"./support/ParquetEncodingBase.js";import D from"./support/ParquetEncodingLocation.js";import z from"./support/ParquetEncodingWkb.js";import{completeParquetLayerInfo as B,parquetGeometryTypeKebabDict as E}from"./support/parquetUtils.js";import{rendererTypes as A}from"../renderers/support/typeUtils.js";import L from"../rest/support/Query.js";import{createPopupTemplate as G}from"../support/popupUtils.js";const U=q(),M="__OBJECTID",W={types:{key:"type",base:Q,typeMap:{wkb:z,location:D}}};let _=class extends(h(j(g(y(x(b(S(v(F(p(f(r(m))))))))))))){constructor(e){super(e),this.capabilities=k(),this.copyright=null,this.displayOptimization=null,this.fields=null,this.fieldsIndex=null,this.encoding=null,this.geometryType=null,this.graphicOrigin=new d(this),this.labelsVisible=!0,this.labelingInfo=null,this.objectIdField=M,this.outFields=null,this.popupTemplate=null,this.source=null,this.spatialReference=l.WGS84,this.templates=null,this.title="Parquet",this.type="parquet",this.urls=new s}async load(e){return this.addResolvingPromise(this._load(e)),this.addHandles([a(()=>this.customParameters,e=>this.source?.setCustomParameters(e))]),this}get defaultPopupTemplate(){return this.createPopupTemplate()}get isTable(){return null==this.geometryType}set renderer(e){P(e,this.fieldsIndex),this._set("renderer",e)}createPopupTemplate(e){return G(this,e)}createQuery(){const e=new L;return e.returnGeometry=!0,e.outFields=["*"],e}async createSource(e){const t=await B({urls:this.urls,fields:this.fields,encoding:this.encoding,geometryType:this.geometryType,spatialReference:this.spatialReference,file:this.file},{customParameters:this.customParameters});let{fields:r,geometryType:s,encoding:p,spatialReference:a,urls:n,file:u,displayOptimization:d}=t;if(null==r)throw new o("parquet-layer:missing-metadata","Unable to create parquet source: cannot infer fields",t);if(a){if(!a.isGeographic&&!a.isWebMercator)throw new o("parquet-layer:unsupported","Unable to create parquet source: currently only geographic and Web Mercator supported",t);a.isGeographic&&!a.isWGS84&&(i.getLogger("parquet-layer").warn("Found a geographic projection that is not WGS84. Handling as WGS84.",{spatialReference:t.spatialReference}),a=l.WGS84)}r.push(new R({name:M,type:"oid",alias:M}));const m=new c({urls:n.items,fields:r,objectIdField:M,spatialReference:a,encoding:p,geometryType:s,file:u,customParameters:this.customParameters??void 0,displayOptimization:d});return await m.load(e),m}getFieldDomain(e,t){return null}getField(e){return this.fieldsIndex.get(e)}async queryFeatures(e,t){await this.load();const r=await this.source.queryFeatures(this._normalizeQuery(e),t),s=this.graphicOrigin;if(r?.features)for(const o of r.features)o.layer=o.sourceLayer=this,o.origin=s;return r}async queryObjectIds(e,t){return await this.load(),this.source.queryObjectIds(this._normalizeQuery(e),t)}async queryFeatureCount(e,t){return await this.load(),this.source.queryFeatureCount(this._normalizeQuery(e),t)}async queryExtent(e,t){return await this.load(),this.source.queryExtent(this._normalizeQuery(e),t)}_normalizeQuery(e){return L.from(e)??this.createQuery()}async _load(e){const t=await this.createSource(e);this._set("source",t),this.fields=t.fields,this.objectIdField=t.objectIdField,this.encoding=t.encoding,this.file=t.file,this.geometryType=t.geometryType,t.spatialReference&&(this.spatialReference=t.spatialReference),this.displayOptimization=t.displayOptimization,t.fullExtent&&(this.fullExtent=t.fullExtent),P(this.renderer,this.fieldsIndex),T(this.timeInfo,this.fieldsIndex)}};e([n({readOnly:!0,json:{read:!1,write:!1}})],_.prototype,"capabilities",void 0),e([n({type:String})],_.prototype,"copyright",void 0),e([n({readOnly:!0})],_.prototype,"defaultPopupTemplate",null),e([n()],_.prototype,"displayOptimization",void 0),e([n({type:[R],json:{name:"layerDefinition.fields",write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"fields"}}}})],_.prototype,"fields",void 0),e([n(U.fieldsIndex)],_.prototype,"fieldsIndex",void 0),e([n(W)],_.prototype,"encoding",void 0),e([n({json:{read:{reader:E.read}}})],_.prototype,"geometryType",void 0),e([n({readOnly:!0,clonable:!1})],_.prototype,"graphicOrigin",void 0),e([n(I)],_.prototype,"labelsVisible",void 0),e([n({type:[w],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:C},write:!0}})],_.prototype,"labelingInfo",void 0),e([n()],_.prototype,"file",void 0),e([n({type:String,json:{name:"layerDefinition.objectIdField",write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"objectIdField"}}}})],_.prototype,"objectIdField",void 0),e([n(U.outFields)],_.prototype,"outFields",void 0),e([n({type:t,json:{name:"popupInfo",write:!0}})],_.prototype,"popupTemplate",void 0),e([n({types:A,json:{name:"layerDefinition.drawingInfo.renderer",write:!0,origins:{service:{name:"drawingInfo.renderer"}}}})],_.prototype,"renderer",null),e([n({json:{read:!1},cast:null,type:c,readOnly:!0})],_.prototype,"source",void 0),e([n({type:l})],_.prototype,"spatialReference",void 0),e([n({type:[O]})],_.prototype,"templates",void 0),e([n()],_.prototype,"title",void 0),e([n({json:{read:!1},readOnly:!0})],_.prototype,"type",void 0),e([n({type:s.ofType(String)})],_.prototype,"urls",void 0),_=e([u("esri.layers.ParquetLayer")],_);const H=_;function k(){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:!1},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:!1,supportsDelete:!1,supportsEditing:!1,supportsChangeTracking:!1,supportsQuery:!1,supportsQueryBins:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:!1,supportsExceedsLimitStatistics:!1,supportsAsyncConvert3D:!1},query:{maxRecordCount:8e3,maxRecordCountFactor:void 0,maxUniqueIDCount:void 0,standardMaxRecordCount:void 0,supportsCacheHint:!1,supportsCentroid:!1,supportsCentroidOnDegeneratedQuantizedGeometry:!1,supportsCurrentUser:!1,supportsDegeneratedQuantizedGeometry:!1,supportsDisjointSpatialRelationship:!1,supportsDistance:!1,supportsDistinct:!1,supportsExtent:!1,supportsFormatPBF:!1,supportsGeometryProperties:!1,supportsHavingClause:!1,supportsHistoricMoment:!1,supportsMaxRecordCountFactor:!1,supportsOrderBy:!1,supportsPagination:!0,supportsPaginationOnAggregatedQueries:!1,supportsPercentileStatistics:!1,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryByAnonymous:!1,supportsQueryByOthers:!1,supportsQueryGeometry:!1,supportsResultType:!1,supportsReturnMesh:!1,supportsStandardizedQueriesOnly:!1,supportsTopFeaturesQuery:!1,supportsStatistics:!1,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,supportsSqlExpression:!1,supportsTrueCurve:!1,tileMaxRecordCount:void 0},queryAttributeBins:{supportsDate:!1,supportsFixedInterval:!1,supportsAutoInterval:!1,supportsFixedBoundaries:!1,supportsStackBy:!1,supportsSplitBy:!1,supportsSnapToData:!1,supportsReturnFullIntervalBin:!1,supportsFirstDayOfWeek:!1,supportsNormalization:!1},queryRelated:{supportsCount:!1,supportsOrderBy:!1,supportsPagination:!1,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},editing:{supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsGeometryUpdate:!1,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsUploadWithItemId:!1,supportsUpdateWithoutM:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}export{H as default};
5
+ import{__decorate as e}from"tslib";import t from"../PopupTemplate.js";import{ClonableMixin as r}from"../core/Clonable.js";import s from"../core/Collection.js";import o from"../core/Error.js";import i from"../core/Logger.js";import{MultiOriginJSONMixin as p}from"../core/MultiOriginJSONSupport.js";import{watch as a}from"../core/reactiveUtils.js";import{property as n}from"../core/accessorSupport/decorators/property.js";import{subclass as u}from"../core/accessorSupport/decorators/subclass.js";import l from"../geometry/SpatialReference.js";import d from"../graphic/ParquetGraphicOrigin.js";import m from"./Layer.js";import{ParquetSource as c}from"./graphics/sources/ParquetSource.js";import{BlendLayer as y}from"./mixins/BlendLayer.js";import{CustomParametersMixin as f}from"./mixins/CustomParametersMixin.js";import{DisplayFilteredLayer as h}from"./mixins/DisplayFilteredLayer.js";import{FeatureEffectLayer as g}from"./mixins/FeatureEffectLayer.js";import{FeatureReductionLayer as j}from"./mixins/FeatureReductionLayer.js";import{OperationalLayer as v}from"./mixins/OperationalLayer.js";import{OrderedLayer as x}from"./mixins/OrderedLayer.js";import{PortalLayer as F}from"./mixins/PortalLayer.js";import{ScaleRangeLayer as S}from"./mixins/ScaleRangeLayer.js";import{TemporalLayer as b}from"./mixins/TemporalLayer.js";import{labelsVisible as I}from"./support/commonProperties.js";import O from"./support/FeatureTemplate.js";import R from"./support/Field.js";import{defineFieldProperties as q}from"./support/fieldProperties.js";import{fixRendererFields as P,fixTimeInfoFields as T}from"./support/fieldUtils.js";import w from"./support/LabelClass.js";import{reader as C}from"./support/labelingInfo.js";import{ParquetEncodingBase as Q}from"./support/ParquetEncodingBase.js";import D from"./support/ParquetEncodingLocation.js";import z from"./support/ParquetEncodingWkb.js";import{completeParquetLayerInfo as B,parquetGeometryTypeKebabDict as E}from"./support/parquetUtils.js";import{rendererTypes as A}from"../renderers/support/typeUtils.js";import L from"../rest/support/Query.js";import{createPopupTemplate as G}from"../support/popupUtils.js";const U=q(),M="__OBJECTID",W={types:{key:"type",base:Q,typeMap:{wkb:z,location:D}}};let _=class extends(h(j(g(y(x(b(S(v(F(p(f(r(m))))))))))))){constructor(e){super(e),this.capabilities=k(),this.copyright=null,this.displayOptimization=null,this.fields=null,this.fieldsIndex=null,this.encoding=null,this.geometryType=null,this.graphicOrigin=new d(this),this.labelsVisible=!0,this.labelingInfo=null,this.objectIdField=M,this.outFields=null,this.popupTemplate=null,this.source=null,this.spatialReference=l.WGS84,this.templates=null,this.title="Parquet",this.type="parquet",this.urls=new s}async load(e){return this.addResolvingPromise(this._load(e)),this.addHandles([a(()=>this.urls,e=>this.source?.updateFiles(e.items)),a(()=>this.customParameters,e=>this.source?.setCustomParameters(e))]),this}get defaultPopupTemplate(){return this.createPopupTemplate()}get isTable(){return null==this.geometryType}set renderer(e){P(e,this.fieldsIndex),this._set("renderer",e)}createPopupTemplate(e){return G(this,e)}createQuery(){const e=new L;return e.returnGeometry=!0,e.outFields=["*"],e}async createSource(e){const t=await B({urls:this.urls,fields:this.fields,encoding:this.encoding,geometryType:this.geometryType,spatialReference:this.spatialReference,file:this.file},{customParameters:this.customParameters});let{fields:r,geometryType:s,encoding:p,spatialReference:a,urls:n,file:u,displayOptimization:d}=t;if(null==r)throw new o("parquet-layer:missing-metadata","Unable to create parquet source: cannot infer fields",t);if(a){if(!a.isGeographic&&!a.isWebMercator)throw new o("parquet-layer:unsupported","Unable to create parquet source: currently only geographic and Web Mercator supported",t);a.isGeographic&&!a.isWGS84&&(i.getLogger("parquet-layer").warn("Found a geographic projection that is not WGS84. Handling as WGS84.",{spatialReference:t.spatialReference}),a=l.WGS84)}r.push(new R({name:M,type:"oid",alias:M}));const m=new c({urls:n.items,fields:r,objectIdField:M,spatialReference:a,encoding:p,geometryType:s,file:u,customParameters:this.customParameters??void 0,displayOptimization:d});return await m.load(e),m}getFieldDomain(e,t){return null}getField(e){return this.fieldsIndex.get(e)}async queryFeatures(e,t){await this.load();const r=await this.source.queryFeatures(this._normalizeQuery(e),t),s=this.graphicOrigin;if(r?.features)for(const o of r.features)o.layer=o.sourceLayer=this,o.origin=s;return r}async queryObjectIds(e,t){return await this.load(),this.source.queryObjectIds(this._normalizeQuery(e),t)}async queryFeatureCount(e,t){return await this.load(),this.source.queryFeatureCount(this._normalizeQuery(e),t)}async queryExtent(e,t){return await this.load(),this.source.queryExtent(this._normalizeQuery(e),t)}_normalizeQuery(e){return L.from(e)??this.createQuery()}async _load(e){const t=await this.createSource(e);this._set("source",t),this.fields=t.fields,this.objectIdField=t.objectIdField,this.encoding=t.encoding,this.file=t.file,this.geometryType=t.geometryType,t.spatialReference&&(this.spatialReference=t.spatialReference),this.displayOptimization=t.displayOptimization,t.fullExtent&&(this.fullExtent=t.fullExtent),P(this.renderer,this.fieldsIndex),T(this.timeInfo,this.fieldsIndex)}};e([n({readOnly:!0,json:{read:!1,write:!1}})],_.prototype,"capabilities",void 0),e([n({type:String})],_.prototype,"copyright",void 0),e([n({readOnly:!0})],_.prototype,"defaultPopupTemplate",null),e([n()],_.prototype,"displayOptimization",void 0),e([n({type:[R],json:{name:"layerDefinition.fields",write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"fields"}}}})],_.prototype,"fields",void 0),e([n(U.fieldsIndex)],_.prototype,"fieldsIndex",void 0),e([n(W)],_.prototype,"encoding",void 0),e([n({json:{read:{reader:E.read}}})],_.prototype,"geometryType",void 0),e([n({readOnly:!0,clonable:!1})],_.prototype,"graphicOrigin",void 0),e([n(I)],_.prototype,"labelsVisible",void 0),e([n({type:[w],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:C},write:!0}})],_.prototype,"labelingInfo",void 0),e([n()],_.prototype,"file",void 0),e([n({type:String,json:{name:"layerDefinition.objectIdField",write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"objectIdField"}}}})],_.prototype,"objectIdField",void 0),e([n(U.outFields)],_.prototype,"outFields",void 0),e([n({type:t,json:{name:"popupInfo",write:!0}})],_.prototype,"popupTemplate",void 0),e([n({types:A,json:{name:"layerDefinition.drawingInfo.renderer",write:!0,origins:{service:{name:"drawingInfo.renderer"}}}})],_.prototype,"renderer",null),e([n({json:{read:!1},cast:null,type:c,readOnly:!0})],_.prototype,"source",void 0),e([n({type:l})],_.prototype,"spatialReference",void 0),e([n({type:[O]})],_.prototype,"templates",void 0),e([n()],_.prototype,"title",void 0),e([n({json:{read:!1},readOnly:!0})],_.prototype,"type",void 0),e([n({type:s.ofType(String)})],_.prototype,"urls",void 0),_=e([u("esri.layers.ParquetLayer")],_);const H=_;function k(){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:!1},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:!1,supportsDelete:!1,supportsEditing:!1,supportsChangeTracking:!1,supportsQuery:!1,supportsQueryBins:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:!1,supportsExceedsLimitStatistics:!1,supportsAsyncConvert3D:!1},query:{maxRecordCount:8e3,maxRecordCountFactor:void 0,maxUniqueIDCount:void 0,standardMaxRecordCount:void 0,supportsCacheHint:!1,supportsCentroid:!1,supportsCentroidOnDegeneratedQuantizedGeometry:!1,supportsCurrentUser:!1,supportsDegeneratedQuantizedGeometry:!1,supportsDisjointSpatialRelationship:!1,supportsDistance:!1,supportsDistinct:!1,supportsExtent:!1,supportsFormatPBF:!1,supportsGeometryProperties:!1,supportsHavingClause:!1,supportsHistoricMoment:!1,supportsMaxRecordCountFactor:!1,supportsOrderBy:!1,supportsPagination:!0,supportsPaginationOnAggregatedQueries:!1,supportsPercentileStatistics:!1,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryByAnonymous:!1,supportsQueryByOthers:!1,supportsQueryGeometry:!1,supportsResultType:!1,supportsReturnMesh:!1,supportsStandardizedQueriesOnly:!1,supportsTopFeaturesQuery:!1,supportsStatistics:!1,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,supportsSqlExpression:!1,supportsTrueCurve:!1,tileMaxRecordCount:void 0},queryAttributeBins:{supportsDate:!1,supportsFixedInterval:!1,supportsAutoInterval:!1,supportsFixedBoundaries:!1,supportsStackBy:!1,supportsSplitBy:!1,supportsSnapToData:!1,supportsReturnFullIntervalBin:!1,supportsFirstDayOfWeek:!1,supportsNormalization:!1},queryRelated:{supportsCount:!1,supportsOrderBy:!1,supportsPagination:!1,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},editing:{supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsGeometryUpdate:!1,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsUploadWithItemId:!1,supportsUpdateWithoutM:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}export{H as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
4
  */
5
- import{__decorate as e}from"tslib";import t from"../request.js";import{createTask as r}from"../core/asyncUtils.js";import i from"../core/Error.js";import{clone as o}from"../core/lang.js";import{MultiOriginJSONMixin as s}from"../core/MultiOriginJSONSupport.js";import{throwIfAbortError as l}from"../core/promiseUtils.js";import{urlToObject as a,addQueryParameters as n,isProtocolRelative as p,normalize as y}from"../core/urlUtils.js";import{property as u}from"../core/accessorSupport/decorators/property.js";import"../core/has.js";import"../core/Logger.js";import{reader as c}from"../core/accessorSupport/decorators/reader.js";import{subclass as m}from"../core/accessorSupport/decorators/subclass.js";import{writer as h}from"../core/accessorSupport/decorators/writer.js";import d from"../geometry/Extent.js";import S from"../geometry/SpatialReference.js";import f from"./Layer.js";import{APIKeyMixin as g}from"./mixins/APIKeyMixin.js";import{ArcGISCachedService as v}from"./mixins/ArcGISCachedService.js";import{ArcGISService as j}from"./mixins/ArcGISService.js";import{BlendLayer as _}from"./mixins/BlendLayer.js";import{CustomParametersMixin as w}from"./mixins/CustomParametersMixin.js";import{OperationalLayer as b}from"./mixins/OperationalLayer.js";import{PortalLayer as T}from"./mixins/PortalLayer.js";import{RefreshableLayer as x}from"./mixins/RefreshableLayer.js";import{ScaleRangeLayer as I}from"./mixins/ScaleRangeLayer.js";import{checkWebPSupport as L}from"./support/imageUtils.js";import U from"./support/SpriteSource.js";import R from"./support/TileInfo.js";import{TilemapCache as O}from"./support/TilemapCache.js";import{loadMetadata as P}from"./support/vectorTileLayerLoader.js";import{createForItemRead as M}from"../portal/support/jsonContext.js";import{parseKnownArcGISOnlineDomain as C}from"../portal/support/urlUtils.js";import{e as V}from"../chunks/persistableUrlUtils.js";import{areSchemasOverlapping as D,unionTileInfos as E}from"../views/2d/engine/vectorTiles/tileInfoUtils.js";import N from"../views/2d/engine/vectorTiles/style/StyleRepository.js";import{getWebGLCapabilities as k}from"../views/webgl/capabilities.js";let K=class extends(_(I(x(v(j(b(T(w(g(s(f))))))))))){constructor(...e){super(...e),this._spriteSourceMap=new Map,this.currentStyleInfo=null,this.isReference=null,this.operationalLayerType="VectorTileLayer",this.path=null,this.refreshInterval=0,this.style=null,this.tilemapCache=null,this.type="vector-tile",this.url=null}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){if(this.sourceNameToSource)for(const e of Object.values(this.sourceNameToSource))e?.destroy();this.primarySource?.destroy(),this._spriteSourceMap.clear()}async prefetchResources(e){await this.loadSpriteSource(globalThis.devicePixelRatio||1,e)}load(e){const r=this.loadFromPortal({supportedTypes:["Vector Tile Service"],supportsData:!1},e).catch(l).then(async()=>{if(!this.portalItem?.id)return;const r=`${this.portalItem.itemCdnUrl}/resources/styles/root.json`;(await t(r,{...e,query:{f:"json",...this.customParameters,token:this.apiKey},authMode:this.portalItem.portal.authMode})).data&&this.read({url:r},M(this.portalItem,"portal-item"))}).catch(l).then(()=>this._loadStyle(e));return this.addResolvingPromise(r),Promise.resolve(this)}get apiKey(){return super.apiKey}set apiKey(e){super.apiKey=e}set portalItem(e){super.portalItem=e}get attributionDataUrl(){const e=this.currentStyleInfo,t=e?.serviceUrl&&a(e.serviceUrl);if(!t)return null;const r=this._getDefaultAttribution(t.path);return r?n(r,{...this.customParameters,token:this.apiKey}):null}get capabilities(){const e=this.primarySource;return e?e.capabilities:{operations:{supportsExportTiles:!1,supportsTileMap:!1},exportTiles:null}}get fullExtent(){return this.primarySource?.fullExtent||null}get initialExtent(){return this.primarySource?.initialExtent||null}get parsedUrl(){return this.serviceUrl?a(this.serviceUrl):null}get serviceUrl(){return this.currentStyleInfo?.serviceUrl||null}get spatialReference(){return this.tileInfo?.spatialReference??null}get styleUrl(){return this.currentStyleInfo?.styleUrl||null}writeStyleUrl(e,t){e&&p(e)&&(e=`https:${e}`);const r=C(e);t.styleUrl=V(e,r)}get tileInfo(){const e=[];for(const r in this.sourceNameToSource)e.push(this.sourceNameToSource[r]);let t=this.primarySource?.tileInfo||new R;if(e.length>1)for(let r=0;r<e.length;r++)D(t,e[r].tileInfo)&&(t=E(t,e[r].tileInfo));return t}readTilemapCache(e,t){const r=t.capabilities?.includes("Tilemap");return r?new O({layer:this}):null}readVersion(e,t){return t.version?parseFloat(t.version):parseFloat(t.currentVersion)}async loadSpriteSource(e=1,t){if(!this._spriteSourceMap.has(e)){const r=k().maxTextureSize,i=this.currentStyleInfo?.spriteUrl?n(this.currentStyleInfo.spriteUrl,{...this.customParameters,token:this.apiKey}):null,o=new U({type:"url",spriteUrl:i,pixelRatio:e,spriteFormat:this.currentStyleInfo?.spriteFormat},r);await o.load(t),this._spriteSourceMap.set(e,o)}return this._spriteSourceMap.get(e)}async setSpriteSource(e,t){if(!e)return null;const r=k().maxTextureSize,i=e.spriteUrl,o=i?n(i,{...this.customParameters,token:this.apiKey}):null;if(!o&&"url"===e.type)return null;const s=new U(e,r);try{await s.load(t);const r=e.pixelRatio||1;return this._spriteSourceMap.clear(),this._spriteSourceMap.set(r,s),o&&this.currentStyleInfo&&(this.currentStyleInfo.spriteUrl=o),this.emit("spriteSource-change",{spriteSource:s}),s}catch(a){l(a)}return null}async loadStyle(e,t){const i=e||this.style||this.url;return this._loadingTask&&"string"==typeof i&&this.url===i||(this._loadingTask?.abort(),this._loadingTask=r(e=>(this._spriteSourceMap.clear(),this._getSourceAndStyle(i,{signal:e})),t)),this._loadingTask.promise}getStyleLayerId(e){return this.styleRepository.getStyleLayerId(e)}getStyleLayerIndex(e){return this.styleRepository.getStyleLayerIndex(e)}getPaintProperties(e){return o(this.styleRepository?.getPaintProperties(e))}setPaintProperties(e,t){const r=this.styleRepository.isPainterDataDriven(e);this.styleRepository.setPaintProperties(e,t);const i=this.styleRepository.isPainterDataDriven(e);this.emit("paint-change",{layer:e,paint:t,isDataDriven:r||i})}getStyleLayer(e){return o(this.styleRepository.getStyleLayer(e))}setStyleLayer(e,t){this.styleRepository.setStyleLayer(e,t),this.emit("style-layer-change",{layer:e,index:t})}deleteStyleLayer(e){this.styleRepository.deleteStyleLayer(e),this.emit("delete-style-layer",{layer:e})}getLayoutProperties(e){return o(this.styleRepository.getLayoutProperties(e))}setLayoutProperties(e,t){this.styleRepository.setLayoutProperties(e,t),this.emit("layout-change",{layer:e,layout:t})}setStyleLayerVisibility(e,t){this.styleRepository.setStyleLayerVisibility(e,t),this.emit("style-layer-visibility-change",{layer:e,visibility:t})}getStyleLayerVisibility(e){return this.styleRepository.getStyleLayerVisibility(e)}write(e,t){return t?.origin&&!this.styleUrl?(t.messages&&t.messages.push(new i("vectortilelayer:unsupported",`VectorTileLayer (${this.title}, ${this.id}) with style defined by JSON only are not supported`,{layer:this})),null):super.write(e,t)}getTileUrl(e,t,r){return null}async _getSourceAndStyle(e,t){if(!e)throw new Error("invalid style!");const r=await P(e,{...t,query:{...this.customParameters,token:this.apiKey}});if("webp"===r.spriteFormat){await L("lossy")||(r.spriteFormat="png")}this._set("currentStyleInfo",{...r}),"string"==typeof e?(this.url=e,this.style=null):(this.url=null,this.style=e),this._set("sourceNameToSource",r.sourceNameToSource),this._set("primarySource",r.sourceNameToSource[r.primarySourceName]),this._set("styleRepository",new N(r.style,!1)),this.read(r.layerDefinition,{origin:"service"}),this.emit("load-style")}_getDefaultAttribution(e){const t=e.match(/^https?:\/\/(?:basemaps|basemapsbeta|basemapsdev)(?:-api)?\.arcgis\.com(\/[^/]+)?\/arcgis\/rest\/services\/([^/]+(\/[^/]+)*)\/vectortileserver/i),r=["OpenBasemap_v2","OpenBasemap_GCS_v2","OpenStreetMap_v2","OpenStreetMap_Daylight_v2","OpenStreetMap_Export_v2","OpenStreetMap_FTS_v2","OpenStreetMap_GCS_v2","World_Basemap","World_Basemap_v2","World_Basemap_Export_v2","World_Basemap_GCS_v2","World_Basemap_WGS84","World_Contours_v2","World_Hillshade_v2"];if(!t)return;const i=t[2]&&t[2].toLowerCase();if(!i)return;const o=t[1]||"";for(const s of r)if(s.toLowerCase().includes(i))return y(`//static.arcgis.com/attribution/Vector${o}/${s}`)}async _loadStyle(e){return this._loadingTask?.promise??this.loadStyle(null,e)}};e([u({readOnly:!0})],K.prototype,"attributionDataUrl",null),e([u({type:["show","hide"]})],K.prototype,"listMode",void 0),e([u({json:{read:!0,write:!0}})],K.prototype,"blendMode",void 0),e([u({readOnly:!0,json:{read:!1}})],K.prototype,"capabilities",null),e([u({readOnly:!0})],K.prototype,"currentStyleInfo",void 0),e([u({json:{read:!1},readOnly:!0,type:d})],K.prototype,"fullExtent",null),e([u({json:{read:!1},readOnly:!0,type:d})],K.prototype,"initialExtent",null),e([u({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],K.prototype,"isReference",void 0),e([u({type:["VectorTileLayer"]})],K.prototype,"operationalLayerType",void 0),e([u({readOnly:!0})],K.prototype,"parsedUrl",null),e([u({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],K.prototype,"path",void 0),e([u({type:Number,json:{write:!1,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],K.prototype,"refreshInterval",void 0),e([u()],K.prototype,"style",void 0),e([u({readOnly:!0})],K.prototype,"serviceUrl",null),e([u({type:S,readOnly:!0})],K.prototype,"spatialReference",null),e([u({readOnly:!0})],K.prototype,"styleRepository",void 0),e([u({readOnly:!0})],K.prototype,"sourceNameToSource",void 0),e([u({readOnly:!0})],K.prototype,"primarySource",void 0),e([u({type:String,readOnly:!0,json:{write:{ignoreOrigin:!0},origins:{"web-document":{write:{ignoreOrigin:!0,isRequired:!0}}}}})],K.prototype,"styleUrl",null),e([h(["portal-item","web-document"],"styleUrl")],K.prototype,"writeStyleUrl",null),e([u({json:{read:!1,origins:{service:{read:!1}}},readOnly:!0,type:R})],K.prototype,"tileInfo",null),e([u()],K.prototype,"tilemapCache",void 0),e([c("service","tilemapCache",["capabilities","tileInfo"])],K.prototype,"readTilemapCache",null),e([u({json:{read:!1},readOnly:!0,value:"vector-tile"})],K.prototype,"type",void 0),e([u({json:{origins:{"web-document":{read:{source:"styleUrl"}},"portal-item":{read:{source:"url"}}},write:!1,read:!1}})],K.prototype,"url",void 0),e([u({readOnly:!0})],K.prototype,"version",void 0),e([c("version",["version","currentVersion"])],K.prototype,"readVersion",null),K=e([m("esri.layers.VectorTileLayer")],K);const B=K;export{B as default};
5
+ import{__decorate as e}from"tslib";import t from"../request.js";import{createTask as r}from"../core/asyncUtils.js";import i from"../core/Error.js";import{clone as o}from"../core/lang.js";import{MultiOriginJSONMixin as s}from"../core/MultiOriginJSONSupport.js";import{throwIfAbortError as l}from"../core/promiseUtils.js";import{urlToObject as a,addQueryParameters as n,isProtocolRelative as p,normalize as y}from"../core/urlUtils.js";import{property as u}from"../core/accessorSupport/decorators/property.js";import"../core/has.js";import"../core/Logger.js";import{reader as c}from"../core/accessorSupport/decorators/reader.js";import{subclass as m}from"../core/accessorSupport/decorators/subclass.js";import{writer as h}from"../core/accessorSupport/decorators/writer.js";import d from"../geometry/Extent.js";import S from"../geometry/SpatialReference.js";import f from"./Layer.js";import{APIKeyMixin as g}from"./mixins/APIKeyMixin.js";import{ArcGISCachedService as v}from"./mixins/ArcGISCachedService.js";import{ArcGISService as j}from"./mixins/ArcGISService.js";import{BlendLayer as _}from"./mixins/BlendLayer.js";import{CustomParametersMixin as w}from"./mixins/CustomParametersMixin.js";import{OperationalLayer as b}from"./mixins/OperationalLayer.js";import{PortalLayer as T}from"./mixins/PortalLayer.js";import{RefreshableLayer as x}from"./mixins/RefreshableLayer.js";import{ScaleRangeLayer as I}from"./mixins/ScaleRangeLayer.js";import{url as L}from"./support/commonProperties.js";import{checkWebPSupport as U}from"./support/imageUtils.js";import P from"./support/SpriteSource.js";import R from"./support/TileInfo.js";import{TilemapCache as O}from"./support/TilemapCache.js";import{loadMetadata as M}from"./support/vectorTileLayerLoader.js";import{createForItemRead as C}from"../portal/support/jsonContext.js";import{parseKnownArcGISOnlineDomain as V}from"../portal/support/urlUtils.js";import{e as D}from"../chunks/persistableUrlUtils.js";import{areSchemasOverlapping as E,unionTileInfos as N}from"../views/2d/engine/vectorTiles/tileInfoUtils.js";import k from"../views/2d/engine/vectorTiles/style/StyleRepository.js";import{getWebGLCapabilities as K}from"../views/webgl/capabilities.js";let B=class extends(_(I(x(v(j(b(T(w(g(s(f))))))))))){constructor(...e){super(...e),this._spriteSourceMap=new Map,this.currentStyleInfo=null,this.isReference=null,this.operationalLayerType="VectorTileLayer",this.path=null,this.refreshInterval=0,this.style=null,this.tilemapCache=null,this.type="vector-tile"}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){if(this.sourceNameToSource)for(const e of Object.values(this.sourceNameToSource))e?.destroy();this.primarySource?.destroy(),this._spriteSourceMap.clear()}async prefetchResources(e){await this.loadSpriteSource(globalThis.devicePixelRatio||1,e)}load(e){const r=this.loadFromPortal({supportedTypes:["Vector Tile Service"],supportsData:!1},e).catch(l).then(async()=>{if(!this.portalItem?.id)return;const r=`${this.portalItem.itemCdnUrl}/resources/styles/root.json`;(await t(r,{...e,query:{f:"json",...this.customParameters,token:this.apiKey},authMode:this.portalItem.portal.authMode})).data&&this.read({url:r},C(this.portalItem,"portal-item"))}).catch(l).then(()=>this._loadStyle(e));return this.addResolvingPromise(r),Promise.resolve(this)}get apiKey(){return super.apiKey}set apiKey(e){super.apiKey=e}set portalItem(e){super.portalItem=e}get attributionDataUrl(){const e=this.currentStyleInfo,t=e?.serviceUrl&&a(e.serviceUrl);if(!t)return null;const r=this._getDefaultAttribution(t.path);return r?n(r,{...this.customParameters,token:this.apiKey}):null}get capabilities(){const e=this.primarySource;return e?e.capabilities:{operations:{supportsExportTiles:!1,supportsTileMap:!1},exportTiles:null}}get fullExtent(){return this.primarySource?.fullExtent||null}get initialExtent(){return this.primarySource?.initialExtent||null}get parsedUrl(){return this.serviceUrl?a(this.serviceUrl):null}get serviceUrl(){return this.currentStyleInfo?.serviceUrl||null}get spatialReference(){return this.tileInfo?.spatialReference??null}get styleUrl(){return this.currentStyleInfo?.styleUrl||null}writeStyleUrl(e,t){e&&p(e)&&(e=`https:${e}`);const r=V(e);t.styleUrl=D(e,r)}get tileInfo(){const e=[];for(const r in this.sourceNameToSource)e.push(this.sourceNameToSource[r]);let t=this.primarySource?.tileInfo||new R;if(e.length>1)for(let r=0;r<e.length;r++)E(t,e[r].tileInfo)&&(t=N(t,e[r].tileInfo));return t}readTilemapCache(e,t){const r=t.capabilities?.includes("Tilemap");return r?new O({layer:this}):null}set url(e){if(!e)return void this._set("url",e);const t=a(e);this._set("url",t.path),t.query&&(this.customParameters={...this.customParameters,...t.query})}readVersion(e,t){return t.version?parseFloat(t.version):parseFloat(t.currentVersion)}async loadSpriteSource(e=1,t){if(!this._spriteSourceMap.has(e)){const r=K().maxTextureSize,i=this.currentStyleInfo?.spriteUrl?n(this.currentStyleInfo.spriteUrl,{...this.customParameters,token:this.apiKey}):null,o=new P({type:"url",spriteUrl:i,pixelRatio:e,spriteFormat:this.currentStyleInfo?.spriteFormat},r);await o.load(t),this._spriteSourceMap.set(e,o)}return this._spriteSourceMap.get(e)}async setSpriteSource(e,t){if(!e)return null;const r=K().maxTextureSize,i=e.spriteUrl,o=i?n(i,{...this.customParameters,token:this.apiKey}):null;if(!o&&"url"===e.type)return null;const s=new P(e,r);try{await s.load(t);const r=e.pixelRatio||1;return this._spriteSourceMap.clear(),this._spriteSourceMap.set(r,s),o&&this.currentStyleInfo&&(this.currentStyleInfo.spriteUrl=o),this.emit("spriteSource-change",{spriteSource:s}),s}catch(a){l(a)}return null}async loadStyle(e,t){const i=e||this.style||this.url;return this._loadingTask&&"string"==typeof i&&this.url===i||(this._loadingTask?.abort(),this._loadingTask=r(e=>(this._spriteSourceMap.clear(),this._getSourceAndStyle(i,{signal:e})),t)),this._loadingTask.promise}getStyleLayerId(e){return this.styleRepository.getStyleLayerId(e)}getStyleLayerIndex(e){return this.styleRepository.getStyleLayerIndex(e)}getPaintProperties(e){return o(this.styleRepository?.getPaintProperties(e))}setPaintProperties(e,t){const r=this.styleRepository.isPainterDataDriven(e);this.styleRepository.setPaintProperties(e,t);const i=this.styleRepository.isPainterDataDriven(e);this.emit("paint-change",{layer:e,paint:t,isDataDriven:r||i})}getStyleLayer(e){return o(this.styleRepository.getStyleLayer(e))}setStyleLayer(e,t){this.styleRepository.setStyleLayer(e,t),this.emit("style-layer-change",{layer:e,index:t})}deleteStyleLayer(e){this.styleRepository.deleteStyleLayer(e),this.emit("delete-style-layer",{layer:e})}getLayoutProperties(e){return o(this.styleRepository.getLayoutProperties(e))}setLayoutProperties(e,t){this.styleRepository.setLayoutProperties(e,t),this.emit("layout-change",{layer:e,layout:t})}setStyleLayerVisibility(e,t){this.styleRepository.setStyleLayerVisibility(e,t),this.emit("style-layer-visibility-change",{layer:e,visibility:t})}getStyleLayerVisibility(e){return this.styleRepository.getStyleLayerVisibility(e)}write(e,t){return t?.origin&&!this.styleUrl?(t.messages&&t.messages.push(new i("vectortilelayer:unsupported",`VectorTileLayer (${this.title}, ${this.id}) with style defined by JSON only are not supported`,{layer:this})),null):super.write(e,t)}getTileUrl(e,t,r){return null}async _getSourceAndStyle(e,t){if(!e)throw new Error("invalid style!");const r=await M(e,{...t,query:{...this.customParameters,token:this.apiKey}});if("webp"===r.spriteFormat){await U("lossy")||(r.spriteFormat="png")}this._set("currentStyleInfo",{...r}),"string"==typeof e?(this.url=e,this.style=null):(this.url=null,this.style=e),this._set("sourceNameToSource",r.sourceNameToSource),this._set("primarySource",r.sourceNameToSource[r.primarySourceName]),this._set("styleRepository",new k(r.style,!1)),this.read(r.layerDefinition,{origin:"service"}),this.emit("load-style")}_getDefaultAttribution(e){const t=e.match(/^https?:\/\/(?:basemaps|basemapsbeta|basemapsdev)(?:-api)?\.arcgis\.com(\/[^/]+)?\/arcgis\/rest\/services\/([^/]+(\/[^/]+)*)\/vectortileserver/i),r=["OpenBasemap_v2","OpenBasemap_GCS_v2","OpenStreetMap_v2","OpenStreetMap_Daylight_v2","OpenStreetMap_Export_v2","OpenStreetMap_FTS_v2","OpenStreetMap_GCS_v2","World_Basemap","World_Basemap_v2","World_Basemap_Export_v2","World_Basemap_GCS_v2","World_Basemap_WGS84","World_Contours_v2","World_Hillshade_v2"];if(!t)return;const i=t[2]&&t[2].toLowerCase();if(!i)return;const o=t[1]||"";for(const s of r)if(s.toLowerCase().includes(i))return y(`//static.arcgis.com/attribution/Vector${o}/${s}`)}async _loadStyle(e){return this._loadingTask?.promise??this.loadStyle(null,e)}};e([u({readOnly:!0})],B.prototype,"attributionDataUrl",null),e([u({type:["show","hide"]})],B.prototype,"listMode",void 0),e([u({json:{read:!0,write:!0}})],B.prototype,"blendMode",void 0),e([u({readOnly:!0,json:{read:!1}})],B.prototype,"capabilities",null),e([u({readOnly:!0})],B.prototype,"currentStyleInfo",void 0),e([u({json:{read:!1},readOnly:!0,type:d})],B.prototype,"fullExtent",null),e([u({json:{read:!1},readOnly:!0,type:d})],B.prototype,"initialExtent",null),e([u({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],B.prototype,"isReference",void 0),e([u({type:["VectorTileLayer"]})],B.prototype,"operationalLayerType",void 0),e([u({readOnly:!0})],B.prototype,"parsedUrl",null),e([u({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],B.prototype,"path",void 0),e([u({type:Number,json:{write:!1,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],B.prototype,"refreshInterval",void 0),e([u()],B.prototype,"style",void 0),e([u({readOnly:!0})],B.prototype,"serviceUrl",null),e([u({type:S,readOnly:!0})],B.prototype,"spatialReference",null),e([u({readOnly:!0})],B.prototype,"styleRepository",void 0),e([u({readOnly:!0})],B.prototype,"sourceNameToSource",void 0),e([u({readOnly:!0})],B.prototype,"primarySource",void 0),e([u({type:String,readOnly:!0,json:{write:{ignoreOrigin:!0},origins:{"web-document":{write:{ignoreOrigin:!0,isRequired:!0}}}}})],B.prototype,"styleUrl",null),e([h(["portal-item","web-document"],"styleUrl")],B.prototype,"writeStyleUrl",null),e([u({json:{read:!1,origins:{service:{read:!1}}},readOnly:!0,type:R})],B.prototype,"tileInfo",null),e([u()],B.prototype,"tilemapCache",void 0),e([c("service","tilemapCache",["capabilities","tileInfo"])],B.prototype,"readTilemapCache",null),e([u({json:{read:!1},readOnly:!0,value:"vector-tile"})],B.prototype,"type",void 0),e([u({json:{origins:{"web-document":{read:{source:"styleUrl"}},"portal-item":{read:{source:"url"}}},write:!1,read:!1}}),u(L)],B.prototype,"url",null),e([u({readOnly:!0})],B.prototype,"version",void 0),e([c("version",["version","currentVersion"])],B.prototype,"readVersion",null),B=e([m("esri.layers.VectorTileLayer")],B);const A=B;export{A as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
4
  */
5
- import{__decorate as e}from"tslib";import t from"../../../core/Error.js";import{Loadable as r}from"../../../core/Loadable.js";import o from"../../../core/Logger.js";import{open as s}from"../../../core/workers/workers.js";import{property as i}from"../../../core/accessorSupport/decorators/property.js";import{subclass as n}from"../../../core/accessorSupport/decorators/subclass.js";import a from"../../../geometry/Extent.js";import l from"../../support/FieldsIndex.js";import{toParquetJSONGeometryType as u}from"../../support/parquetUtils.js";import p from"../../../rest/support/FeatureSet.js";let c=class extends r{constructor(e){super(e),this.type="parquet",this.urls=null,this.fields=null,this.objectIdField=null,this.spatialReference=null}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this._initialize(t)),Promise.resolve(this)}destroy(){this._connection.destroy()}setCustomParameters(e){this.customParameters=e,this._proxy.setCustomParameters(this.customParameters).catch(()=>{o.getLogger(this).warn("Failed to update customParameters")})}async queryFeaturesJSON(e,t={}){return await this.load(t),this._proxy.queryFeatures(e.toJSON(),{signal:t?.signal})}async queryFeatures(e,t={}){const r=await this.queryFeaturesJSON(e,{signal:t?.signal});return p.fromJSON(r)}async queryObjectIds(e,t){return await this._proxy.queryObjectIds(e.toJSON(),{signal:t?.signal})}async queryFeatureCount(e,t){return this._proxy.queryFeatureCount(e.toJSON(),{signal:t?.signal})}async queryExtent(e,t){if(null==this.encoding)return o.getLogger(this).warn("Tried to queryExtent, but source does not have a geometry. Returning null extent."),{count:0,extent:null};const r=await this._proxy.queryExtent(e.toJSON(),{signal:t?.signal});return{count:r.count,extent:a.fromJSON(r.extent)}}async _initialize(e){let r;if(this._connection=await s("ParquetSourceWorker",{strategy:"dedicated"}),this._proxy=this._connection.createInvokeProxy(),this.geometryType&&this.encoding){if(!this.spatialReference)throw new t("parquet:unsupported","SpatialReference must be defined");r={geometryType:u(this.geometryType),spatialReference:this.spatialReference.toJSON(),encoding:this.encoding.toJSON(),displayOptimization:this.displayOptimization}}const o=new l(this.fields).toJSON(),{extent:i}=await this._proxy.load({urls:this.urls,metadata:{fieldsIndex:o,geometryType:r?.geometryType??"esriGeometryPoint",featureIdInfo:{type:"object-id",fieldName:"rowId"},subtypes:null,subtypeField:null,types:null,typeIdField:null,globalIdField:null,spatialReference:r?.spatialReference,outSpatialReference:null,timeInfo:null,timeReferenceUnknownClient:null,dateFieldsTimeZone:null},geometryInfo:r,customParameters:this.customParameters});this.fullExtent=i?a.fromJSON(i):null}};e([i()],c.prototype,"type",void 0),e([i()],c.prototype,"urls",void 0),e([i()],c.prototype,"fields",void 0),e([i()],c.prototype,"encoding",void 0),e([i()],c.prototype,"geometryType",void 0),e([i()],c.prototype,"objectIdField",void 0),e([i()],c.prototype,"spatialReference",void 0),e([i()],c.prototype,"file",void 0),e([i()],c.prototype,"customParameters",void 0),e([i()],c.prototype,"displayOptimization",void 0),e([i()],c.prototype,"fullExtent",void 0),c=e([n("esri.layers.graphics.sources.ParquetSource")],c);export{c as ParquetSource};
5
+ import{__decorate as e}from"tslib";import t from"../../../core/Error.js";import{Loadable as r}from"../../../core/Loadable.js";import o from"../../../core/Logger.js";import{open as s}from"../../../core/workers/workers.js";import{property as i}from"../../../core/accessorSupport/decorators/property.js";import{subclass as n}from"../../../core/accessorSupport/decorators/subclass.js";import a from"../../../geometry/Extent.js";import l from"../../support/FieldsIndex.js";import{toParquetJSONGeometryType as u}from"../../support/parquetUtils.js";import p from"../../../rest/support/FeatureSet.js";let c=class extends r{constructor(e){super(e),this.type="parquet",this.urls=null,this.fields=null,this.objectIdField=null,this.spatialReference=null}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this._initialize(t)),Promise.resolve(this)}destroy(){this._connection.destroy()}setCustomParameters(e){this.customParameters=e,this._proxy.setCustomParameters(this.customParameters).catch(()=>{o.getLogger(this).warn("Failed to update customParameters")})}async updateFiles(e){this.urls=e,await this._proxy.updateFiles(e)}async queryFeaturesJSON(e,t={}){return await this.load(t),this._proxy.queryFeatures(e.toJSON(),{signal:t?.signal})}async queryFeatures(e,t={}){const r=await this.queryFeaturesJSON(e,{signal:t?.signal});return p.fromJSON(r)}async queryObjectIds(e,t){return await this._proxy.queryObjectIds(e.toJSON(),{signal:t?.signal})}async queryFeatureCount(e,t){return this._proxy.queryFeatureCount(e.toJSON(),{signal:t?.signal})}async queryExtent(e,t){if(null==this.encoding)return o.getLogger(this).warn("Tried to queryExtent, but source does not have a geometry. Returning null extent."),{count:0,extent:null};const r=await this._proxy.queryExtent(e.toJSON(),{signal:t?.signal});return{count:r.count,extent:a.fromJSON(r.extent)}}async _initialize(e){let r;if(this._connection=await s("ParquetSourceWorker",{strategy:"dedicated"}),this._proxy=this._connection.createInvokeProxy(),this.geometryType&&this.encoding){if(!this.spatialReference)throw new t("parquet:unsupported","SpatialReference must be defined");r={geometryType:u(this.geometryType),spatialReference:this.spatialReference.toJSON(),encoding:this.encoding.toJSON(),displayOptimization:this.displayOptimization}}const o=new l(this.fields).toJSON(),{extent:i}=await this._proxy.load({urls:this.urls,metadata:{fieldsIndex:o,geometryType:r?.geometryType??"esriGeometryPoint",featureIdInfo:{type:"object-id",fieldName:"rowId"},subtypes:null,subtypeField:null,types:null,typeIdField:null,globalIdField:null,spatialReference:r?.spatialReference,outSpatialReference:null,timeInfo:null,timeReferenceUnknownClient:null,dateFieldsTimeZone:null},geometryInfo:r,customParameters:this.customParameters});this.fullExtent=i?a.fromJSON(i):null}};e([i()],c.prototype,"type",void 0),e([i()],c.prototype,"urls",void 0),e([i()],c.prototype,"fields",void 0),e([i()],c.prototype,"encoding",void 0),e([i()],c.prototype,"geometryType",void 0),e([i()],c.prototype,"objectIdField",void 0),e([i()],c.prototype,"spatialReference",void 0),e([i()],c.prototype,"file",void 0),e([i()],c.prototype,"customParameters",void 0),e([i()],c.prototype,"displayOptimization",void 0),e([i()],c.prototype,"fullExtent",void 0),c=e([n("esri.layers.graphics.sources.ParquetSource")],c);export{c as ParquetSource};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
4
  */
5
- import{__addDisposableResource as e,__disposeResources as t}from"tslib";import{toConst as r}from"../../../../core/compilerUtils.js";import s from"../../../../core/Error.js";import{assertIsSome as o}from"../../../../core/maybe.js";import{QueueProcessor as n}from"../../../../core/QueueProcessor.js";import a from"../../../../geometry/SpatialReference.js";import{set as i,create as u,expandWithRect as l,expandWithAABB as f,negativeInfinity as d,fromRect as c}from"../../../../geometry/support/aaBoundingBox.js";import{getQueryResultExtent as m,QueryEngine as h}from"../../data/QueryEngine.js";import{QueryEngineResult as y}from"../../data/QueryEngineResult.js";import p from"../../../support/FieldsIndex.js";import{collectSQLFieldNames as _}from"../../../support/fieldUtils.js";import{createParquetFile as g,readGeoMetadata as w}from"../../../../libs/parquet/parquet.js";import{FeatureStoreQueryAdapter as x}from"../../../../views/2d/layers/features/FeatureStoreQueryAdapter.js";import{FeatureSnapshotSourceChunk as I}from"../../../../views/2d/layers/features/sources/strategies/chunks/FeatureSnapshotSourceChunk.js";import{FeatureSourceChunkStore as R}from"../../../../views/2d/layers/features/sources/strategies/chunks/SourceChunkStore.js";import{FeatureMetadata as F}from"../../../../views/2d/layers/features/support/FeatureMetadata.js";import{FeatureSetReaderParquet as C}from"../../../../views/2d/layers/features/support/FeatureSetReaderParquet.js";const q=new x,j=8e3;class b{constructor(){this._files=[],this._queue=new n({concurrency:1,process:(e,t)=>this._executeQuery(e,t)})}async load(r){this.setCustomParameters(r.customParameters),this._files=await Promise.all(r.urls.map(e=>g(e,{geometryInfo:r.geometryInfo,outSpatialReference:null,getCustomParameters:()=>this._customParameters}))),this._metadata=F.createFeature(r.metadata),this._queryEngineParams={fieldsIndex:this._metadata.fieldsIndex,geometryType:r.geometryInfo?.geometryType??"esriGeometryPoint",featureIdInfo:{type:"object-id",fieldName:"rowId"},hasM:!1,hasZ:!1,spatialReference:a.fromJSON(r.geometryInfo?.spatialReference),aggregateAdapter:null,timeInfo:null,definitionExpression:null};const s=this._files[0];if(!s)return{extent:null};const{fields:o,timeZoneByFieldName:n}=r.metadata.fieldsIndex,f=o.map(e=>({...e,column:s.columnForFieldName(e.name)})),c=p.fromJSON({fields:f,timeZoneByFieldName:n});if(this._fieldsIndex=c,r.metadata.spatialReference&&(this._fullExtent=A(this._files,r.metadata.spatialReference)),null==this._fullExtent&&"location"===r.geometryInfo?.encoding.type){const{latitudeFieldName:s,longitudeFieldName:o}=r.geometryInfo.encoding,n=this._fieldsIndex.get(s)?.column,a=this._fieldsIndex.get(o)?.column,f=i(u(),d);for(const r of this._files)for(const s of r.rowGroups()){const r={stack:[],error:void 0,hasError:!1};try{const t=e(r,s.columnDescriptorForAttribute(n),!1),o=e(r,s.columnDescriptorForAttribute(a),!1),i=[o.minValue(),t.minValue(),o.maxValue(),t.maxValue()];l(f,i),s.free()}catch(m){r.error=m,r.hasError=!0}finally{t(r)}}this._fullExtent={xmin:f[0],ymin:f[1],xmax:f[3],ymax:f[4],spatialReference:r.metadata.spatialReference}}return{extent:this._fullExtent}}destroy(){for(const e of this._files)e.free();this._queue.destroy()}setCustomParameters(e){this._customParameters=e}async queryFeatures(e,t){if(this._validateQuery(e),e.objectIds?.length){return(await this._enqueueQuery(e,t)).createQueryResponse()}e.resultRecordCount=e.resultRecordCount?Math.min(e.resultRecordCount,8e3):8e3,e.resultOffset=e.resultOffset??0;return(await this._enqueueQuery(e,t)).createQueryResponse()}async queryFeatureCount(e,t){if(this._validateQuery(e),!Q(e))return this._getFeatureCount();e.resultRecordCount=e.resultRecordCount??this._getFeatureCount(),e.resultOffset=e.resultOffset??0,delete e.outFields,delete e.returnGeometry;return(await this._enqueueQuery(e,t)).createQueryResponseForCount()}async queryObjectIds(e,t){if(this._validateQuery(e),!Q(e))return Array.from({length:this._getFeatureCount()},(e,t)=>t);e.resultRecordCount=e.resultRecordCount?Math.min(e.resultRecordCount,8e3):8e3,e.resultOffset=e.resultOffset??0,delete e.returnGeometry,delete e.outFields;return(await this._enqueueQuery(e,t)).items.map(e=>e.getObjectId())}async queryExtent(e,t){if(this._validateQuery(e),this._fullExtent&&!Q(e))return{count:this._getFeatureCount(),extent:this._fullExtent};const s=r(this._metadata.spatialReference);e.resultOffset=e.resultOffset??0,e.resultRecordCount=e.resultRecordCount??this._getFeatureCount(),e.returnGeometry=!0,delete e.outFields;const o=i(u(),d),n=u(),a=await this._enqueueQuery(e,t);let l=0;for(const r of a.items)r.getBounds(n)&&(f(o,n),l+=1);return{count:l,extent:m(o,s,e.outSR?r(e.outSR):s,s,!1)}}_getFeatureCount(){return this._files.reduce((e,t)=>e+t.numRows(),0)}_validateQuery(e){if(e.outStatistics)throw new s("parquet:unsupported","Statistics queries are not supported",{query:e});if(e.orderByFields?.length)throw new s("parquet:unsupported","Queries using orderBy are not supported",{query:e})}async*_fetchChunks(e,t){const r=this._files[0].numRows(),s=Math.ceil(r/j);for(let o=0;o<s;o++){const r=o*j,s=await this._files[0].readChunk(r,j,e.fields,e.returnGeometry,t);for(const e of s){const t=new C(this._metadata,this._fieldsIndex,e,0),r=new I(t,null,0,!1),s=O(this._metadata,[r],this._queryEngineParams);yield s}}}_enqueueQuery(e,t){return this._queue.push(e,t)}async _executeQuery(e,t){const r=await this._getReadParams(e);if(e.objectIds?.length){const s=[],o=(await this._files[0].readChunksByRowId(new Uint32Array(e.objectIds),r.fields,r.returnGeometry,t)).map((e,t)=>new C(this._metadata,this._fieldsIndex,e,t)).map((e,t)=>new I(e,null,t,!1)),n=O(this._metadata,o,this._queryEngineParams),a=await n.executeQueryForOpaqueFeatures(e,t);for(const e of a)s.push(e);return new y(s,e,{fieldsIndex:this._fieldsIndex,geometryType:this._metadata.geometryType,spatialReference:this._metadata.spatialReference,objectIdField:"rowId",hasM:!1,hasZ:!1,featureAdapter:q})}let s=e.resultRecordCount,n=e.resultOffset;o(s),o(n),delete e.resultRecordCount,delete e.resultOffset;const a=[];for await(const o of this._fetchChunks(r,t)){const r=await o.executeQueryForOpaqueFeatures(e,t);if(r.length>n){const t=r.slice(n,Math.min(n+s,r.length));for(const e of t)a.push(e);if(n=0,s-=t.length,0===s)return new y(a,e,{fieldsIndex:this._fieldsIndex,geometryType:this._metadata.geometryType,spatialReference:this._metadata.spatialReference,objectIdField:"rowId",hasM:!1,hasZ:!1,featureAdapter:q})}else n-=r.length}return new y(a,e,{fieldsIndex:this._fieldsIndex,geometryType:this._metadata.geometryType,spatialReference:this._metadata.spatialReference,objectIdField:"rowId",hasM:!1,hasZ:!1,featureAdapter:q})}async _getReadParams(e){const t=new Set;if(e.where&&await _(t,this._fieldsIndex,e.where),e.outStatistics)for(const r of e.outStatistics)null!=r.onStatisticField&&t.add(r.onStatisticField);if(e.outFields)for(const r of e.outFields)t.add(r);return{fields:this._getAttributeIds(Array.from(t)),returnGeometry:!!e.returnGeometry||!!e.geometry}}_getAttributeIds(e){if(null==e)return new Uint32Array;if(e.includes("*"))return new Uint32Array(this._fieldsIndex.fields.map(e=>e.column).filter(e=>null!=e));const t=[];for(const r of e){const e=this._fieldsIndex.get(r);if(null==e)throw new s("unknown-field",`Field ${r} does not exist`);null==e.column||t.push(e.column)}return new Uint32Array(t)}}function Q(e){return Object.keys(e).some(e=>S(e))}function S(e){switch(e){case"resultOffset":case"resultRecordCount":case"aggregateIds":case"distance":case"gdbVersion":case"geometry":case"having":case"timeExtent":case"where":case"objectIds":case"historicMoment":return!0;default:return!1}}function O(e,t,r){const s=new R(e);for(const o of t)s.insert(o);return new h({...r,featureStore:s})}function E(e){switch(e.length){case 4:return c(u(),e);case 6:return e;default:throw new s("parquet:protocol-violation","Invalid Geoparquet file. BoundingBox size must be 4 or 6.",{bbox:e})}}function A(e,t){const r=i(u(),d);for(const s of e){const e=w(s);if(!e)return null;const t=e.columns[e.primary_column];if(!t.bbox)return null;const o=E(t.bbox);f(r,o)}return{xmin:r[0],ymin:r[1],xmax:r[3],ymax:r[4],spatialReference:t}}export{b as default};
5
+ import{__addDisposableResource as e,__disposeResources as t}from"tslib";import{toConst as r}from"../../../../core/compilerUtils.js";import s from"../../../../core/Error.js";import{assertIsSome as o}from"../../../../core/maybe.js";import{QueueProcessor as n}from"../../../../core/QueueProcessor.js";import a from"../../../../geometry/SpatialReference.js";import{set as i,create as u,expandWithRect as l,expandWithAABB as f,negativeInfinity as c,fromRect as d}from"../../../../geometry/support/aaBoundingBox.js";import{getQueryResultExtent as m,QueryEngine as h}from"../../data/QueryEngine.js";import{QueryEngineResult as y}from"../../data/QueryEngineResult.js";import p from"../../../support/FieldsIndex.js";import{collectSQLFieldNames as _}from"../../../support/fieldUtils.js";import{createParquetFile as g,readGeoMetadata as I}from"../../../../libs/parquet/parquet.js";import{FeatureStoreQueryAdapter as w}from"../../../../views/2d/layers/features/FeatureStoreQueryAdapter.js";import{FeatureSnapshotSourceChunk as x}from"../../../../views/2d/layers/features/sources/strategies/chunks/FeatureSnapshotSourceChunk.js";import{FeatureSourceChunkStore as R}from"../../../../views/2d/layers/features/sources/strategies/chunks/SourceChunkStore.js";import{FeatureMetadata as F}from"../../../../views/2d/layers/features/support/FeatureMetadata.js";import{FeatureSetReaderParquet as C}from"../../../../views/2d/layers/features/support/FeatureSetReaderParquet.js";const q=new w,j=8e3;class b{constructor(){this._fileInfos=new Map,this._queue=new n({concurrency:1,process:(e,t)=>this._executeQuery(e,t)})}async load(r){this.setCustomParameters(r.customParameters),this._geometryInfo=r.geometryInfo;for(const e of r.urls){const t=await g(e,{geometryInfo:r.geometryInfo,outSpatialReference:null,getCustomParameters:()=>this._customParameters});this._fileInfos.set(e,{index:this._fileInfos.size,file:t})}this._metadata=F.createFeature(r.metadata),this._queryEngineParams={fieldsIndex:this._metadata.fieldsIndex,geometryType:r.geometryInfo?.geometryType??"esriGeometryPoint",featureIdInfo:{type:"object-id",fieldName:"rowId"},hasM:!1,hasZ:!1,spatialReference:a.fromJSON(r.geometryInfo?.spatialReference),aggregateAdapter:null,timeInfo:null,definitionExpression:null};const s=this._fileInfos.values().next().value;if(!s)return{extent:null};const{fields:o,timeZoneByFieldName:n}=r.metadata.fieldsIndex,f=o.map(e=>({...e,column:s.file.columnForFieldName(e.name)})),d=p.fromJSON({fields:f,timeZoneByFieldName:n});if(this._fieldsIndex=d,r.metadata.spatialReference&&(this._fullExtent=E(this._fileInfos.values(),r.metadata.spatialReference)),null==this._fullExtent&&"location"===r.geometryInfo?.encoding.type){const{latitudeFieldName:s,longitudeFieldName:o}=r.geometryInfo.encoding,n=this._fieldsIndex.get(s)?.column,a=this._fieldsIndex.get(o)?.column,f=i(u(),c);for(const r of this._fileInfos.values())for(const s of r.file.rowGroups()){const r={stack:[],error:void 0,hasError:!1};try{const t=e(r,s.columnDescriptorForAttribute(n),!1),o=e(r,s.columnDescriptorForAttribute(a),!1),i=[o.minValue(),t.minValue(),o.maxValue(),t.maxValue()];l(f,i),s.free()}catch(m){r.error=m,r.hasError=!0}finally{t(r)}}this._fullExtent={xmin:f[0],ymin:f[1],xmax:f[3],ymax:f[4],spatialReference:r.metadata.spatialReference}}return{extent:this._fullExtent}}destroy(){for(const e of this._fileInfos.values())e.file.free();this._fileInfos.clear(),this._queue.destroy()}setCustomParameters(e){this._customParameters=e}async updateFiles(e){const t=new Set(e);for(const[r,s]of this._fileInfos.entries())t.has(r)?t.delete(r):(s.file.free(),this._fileInfos.delete(r));for(const r of t){const e=await g(r,{geometryInfo:this._geometryInfo,outSpatialReference:null,getCustomParameters:()=>this._customParameters});this._fileInfos.set(r,{index:this._fileInfos.size,file:e})}}async queryFeatures(e,t){if(this._validateQuery(e),e.objectIds?.length){return(await this._enqueueQuery(e,t)).createQueryResponse()}e.resultRecordCount=e.resultRecordCount?Math.min(e.resultRecordCount,8e3):8e3,e.resultOffset=e.resultOffset??0;return(await this._enqueueQuery(e,t)).createQueryResponse()}async queryFeatureCount(e,t){if(this._validateQuery(e),!Q(e))return this._getFeatureCount();e.resultRecordCount=e.resultRecordCount??this._getFeatureCount(),e.resultOffset=e.resultOffset??0,delete e.outFields,delete e.returnGeometry;return(await this._enqueueQuery(e,t)).createQueryResponseForCount()}async queryObjectIds(e,t){if(this._validateQuery(e),!Q(e))return Array.from({length:this._getFeatureCount()},(e,t)=>t);e.resultRecordCount=e.resultRecordCount?Math.min(e.resultRecordCount,8e3):8e3,e.resultOffset=e.resultOffset??0,delete e.returnGeometry,delete e.outFields;return(await this._enqueueQuery(e,t)).items.map(e=>e.getObjectId())}async queryExtent(e,t){if(this._validateQuery(e),this._fullExtent&&!Q(e))return{count:this._getFeatureCount(),extent:this._fullExtent};const s=r(this._metadata.spatialReference);e.resultOffset=e.resultOffset??0,e.resultRecordCount=e.resultRecordCount??this._getFeatureCount(),e.returnGeometry=!0,delete e.outFields;const o=i(u(),c),n=u(),a=await this._enqueueQuery(e,t);let l=0;for(const r of a.items)r.getBounds(n)&&(f(o,n),l+=1);return{count:l,extent:m(o,s,e.outSR?r(e.outSR):s,s,!1)}}_getFeatureCount(){return Array.from(this._fileInfos.values()).reduce((e,t)=>e+t.file.numRows(),0)}_validateQuery(e){if(e.outStatistics)throw new s("parquet:unsupported","Statistics queries are not supported",{query:e});if(e.orderByFields?.length)throw new s("parquet:unsupported","Queries using orderBy are not supported",{query:e})}async*_fetchChunks(e,t){for(const r of this._fileInfos.values()){const s=r.file.numRows(),o=Math.ceil(s/j);for(let n=0;n<o;n++){const s=n*j,o=await r.file.readChunk(s,j,e.fields,e.returnGeometry,t);for(const e of o){const t=new C(this._metadata,this._fieldsIndex,e,0,r.index),s=new x(t,null,0,!1),o=S(this._metadata,[s],this._queryEngineParams);yield o}}}}_enqueueQuery(e,t){return this._queue.push(e,t)}async _executeQuery(e,t){const r=await this._getReadParams(e);if(e.objectIds?.length)for(const o of this._fileInfos.values()){const s=[],n=(await o.file.readChunksByRowId(new Uint32Array(e.objectIds),r.fields,r.returnGeometry,t)).map((e,t)=>new C(this._metadata,this._fieldsIndex,e,t,o.index)).map((e,t)=>new x(e,null,t,!1)),a=S(this._metadata,n,this._queryEngineParams),i=await a.executeQueryForOpaqueFeatures(e,t);for(const e of i)s.push(e);return new y(s,e,{fieldsIndex:this._fieldsIndex,geometryType:this._metadata.geometryType,spatialReference:this._metadata.spatialReference,objectIdField:"rowId",hasM:!1,hasZ:!1,featureAdapter:q})}let s=e.resultRecordCount,n=e.resultOffset;o(s),o(n),delete e.resultRecordCount,delete e.resultOffset;const a=[];for await(const o of this._fetchChunks(r,t)){const r=await o.executeQueryForOpaqueFeatures(e,t);if(r.length>n){const t=r.slice(n,Math.min(n+s,r.length));for(const e of t)a.push(e);if(n=0,s-=t.length,0===s)return new y(a,e,{fieldsIndex:this._fieldsIndex,geometryType:this._metadata.geometryType,spatialReference:this._metadata.spatialReference,objectIdField:"rowId",hasM:!1,hasZ:!1,featureAdapter:q})}else n-=r.length}return new y(a,e,{fieldsIndex:this._fieldsIndex,geometryType:this._metadata.geometryType,spatialReference:this._metadata.spatialReference,objectIdField:"rowId",hasM:!1,hasZ:!1,featureAdapter:q})}async _getReadParams(e){const t=new Set;if(e.where&&await _(t,this._fieldsIndex,e.where),e.outStatistics)for(const r of e.outStatistics)null!=r.onStatisticField&&t.add(r.onStatisticField);if(e.outFields)for(const r of e.outFields)t.add(r);return{fields:this._getAttributeIds(Array.from(t)),returnGeometry:!!e.returnGeometry||!!e.geometry}}_getAttributeIds(e){if(null==e)return new Uint32Array;if(e.includes("*"))return new Uint32Array(this._fieldsIndex.fields.map(e=>e.column).filter(e=>null!=e));const t=[];for(const r of e){const e=this._fieldsIndex.get(r);if(null==e)throw new s("unknown-field",`Field ${r} does not exist`);null==e.column||t.push(e.column)}return new Uint32Array(t)}}function Q(e){return Object.keys(e).some(e=>v(e))}function v(e){switch(e){case"resultOffset":case"resultRecordCount":case"aggregateIds":case"distance":case"gdbVersion":case"geometry":case"having":case"timeExtent":case"where":case"objectIds":case"historicMoment":return!0;default:return!1}}function S(e,t,r){const s=new R(()=>e);for(const o of t)s.insert(o);return new h({...r,featureStore:s})}function O(e){switch(e.length){case 4:return d(u(),e);case 6:return e;default:throw new s("parquet:protocol-violation","Invalid Geoparquet file. BoundingBox size must be 4 or 6.",{bbox:e})}}function E(e,t){const r=i(u(),c);for(const s of e){const e=I(s.file);if(!e)return null;const t=e.columns[e.primary_column];if(!t.bbox)return null;const o=O(t.bbox);f(r,o)}return{xmin:r[0],ymin:r[1],xmax:r[3],ymax:r[4],spatialReference:t}}export{b as default};
@@ -0,0 +1,5 @@
1
+ /*
2
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
+ */
5
+ import{__decorate as e}from"tslib";import{JSONSupport as o}from"../../core/JSONSupport.js";import{property as r}from"../../core/accessorSupport/decorators/property.js";import"../../core/has.js";import"../../core/Logger.js";import"../../core/RandomLCG.js";import{subclass as t}from"../../core/accessorSupport/decorators/subclass.js";let s=class extends o{constructor(){super(...arguments),this.fieldName=null,this.modelName=null,this.label=null,this.min=null,this.max=null,this.mostFrequentValues=null,this.subLayerIds=null}};e([r({type:String})],s.prototype,"fieldName",void 0),e([r({type:String})],s.prototype,"modelName",void 0),e([r({type:String})],s.prototype,"label",void 0),e([r({type:Number})],s.prototype,"min",void 0),e([r({type:Number})],s.prototype,"max",void 0),e([r({json:{read:e=>Array.isArray(e)&&(e.every(e=>"string"==typeof e)||e.every(e=>"number"==typeof e))?e.slice():null}})],s.prototype,"mostFrequentValues",void 0),e([r({type:[Number]})],s.prototype,"subLayerIds",void 0),s=e([t("esri.layers.support.BuildingFieldStatistics")],s);const p=s;export{p as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
4
  */
5
- import{__decorate as t}from"tslib";import e from"../../request.js";import{JSONSupport as r}from"../../core/JSONSupport.js";import{LoadableMixin as o}from"../../core/Loadable.js";import s from"../../core/Logger.js";import{EsriPromiseMixin as i}from"../../core/Promise.js";import{property as l}from"../../core/accessorSupport/decorators/property.js";import"../../core/has.js";import"../../core/RandomLCG.js";import{subclass as a}from"../../core/accessorSupport/decorators/subclass.js";let p=class extends r{constructor(){super(...arguments),this.fieldName=null,this.modelName=null,this.label=null,this.min=null,this.max=null,this.mostFrequentValues=null,this.subLayerIds=null}};t([l({type:String})],p.prototype,"fieldName",void 0),t([l({type:String})],p.prototype,"modelName",void 0),t([l({type:String})],p.prototype,"label",void 0),t([l({type:Number})],p.prototype,"min",void 0),t([l({type:Number})],p.prototype,"max",void 0),t([l({json:{read:t=>Array.isArray(t)&&(t.every(t=>"string"==typeof t)||t.every(t=>"number"==typeof t))?t.slice():null}})],p.prototype,"mostFrequentValues",void 0),t([l({type:[Number]})],p.prototype,"subLayerIds",void 0),p=t([a("esri.layers.support.BuildingSummaryStatistics.BuildingFieldStatistics")],p);let u=class extends(o(i(r))){constructor(t){super(t),this.url=null,this.customParameters=null}get fields(){return this.loaded||"loading"===this.loadStatus?this._get("fields"):(s.getLogger(this).error("building summary statistics are not loaded"),null)}load(t){const e=null!=t?t.signal:null;return this.addResolvingPromise(this._fetchService(e)),Promise.resolve(this)}async _fetchService(t){const r=(await e(this.url,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:t})).data;this.read(r,{origin:"service"})}};t([l({constructOnly:!0,type:String})],u.prototype,"url",void 0),t([l({constructOnly:!0})],u.prototype,"customParameters",void 0),t([l({constructOnly:!0})],u.prototype,"apiKey",void 0),t([l({readOnly:!0,type:[p],json:{read:{source:"summary"}}})],u.prototype,"fields",null),u=t([a("esri.layers.support.BuildingSummaryStatistics")],u);export{u as default};
5
+ import{__decorate as r}from"tslib";import t from"../../request.js";import{JSONSupport as o}from"../../core/JSONSupport.js";import{LoadableMixin as s}from"../../core/Loadable.js";import e from"../../core/Logger.js";import{EsriPromiseMixin as i}from"../../core/Promise.js";import{property as a}from"../../core/accessorSupport/decorators/property.js";import"../../core/has.js";import"../../core/RandomLCG.js";import{subclass as l}from"../../core/accessorSupport/decorators/subclass.js";import c from"./BuildingFieldStatistics.js";let p=class extends(s(i(o))){constructor(r){super(r),this.url=null,this.customParameters=null}get fields(){return this.loaded||"loading"===this.loadStatus?this._get("fields"):(e.getLogger(this).error("building summary statistics are not loaded"),null)}load(r){const t=null!=r?r.signal:null;return this.addResolvingPromise(this._fetchService(t)),Promise.resolve(this)}async _fetchService(r){const o=(await t(this.url,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:r})).data;this.read(o,{origin:"service"})}};r([a({constructOnly:!0,type:String})],p.prototype,"url",void 0),r([a({constructOnly:!0})],p.prototype,"customParameters",void 0),r([a({constructOnly:!0})],p.prototype,"apiKey",void 0),r([a({readOnly:!0,type:[c],json:{read:{source:"summary"}}})],p.prototype,"fields",null),p=r([l("esri.layers.support.BuildingSummaryStatistics")],p);export{p as default};
@@ -0,0 +1,5 @@
1
+ /*
2
+ All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
+ */
5
+ import{__decorate as o}from"tslib";import{Clonable as r}from"../../core/Clonable.js";import{property as t}from"../../core/accessorSupport/decorators/property.js";import"../../core/has.js";import"../../core/Logger.js";import"../../core/RandomLCG.js";import{subclass as s}from"../../core/accessorSupport/decorators/subclass.js";import e from"../../geometry/Point.js";let p=class extends r{constructor(o){super(o),this.sourcePoint=null,this.mapPoint=null}};o([t()],p.prototype,"sourcePoint",void 0),o([t({type:e})],p.prototype,"mapPoint",void 0),p=o([s("esri.layers.support.ControlPoint")],p);export{p as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
4
  */
5
- import{__decorate as t}from"tslib";import{Clonable as o}from"../../core/Clonable.js";import e from"../../core/Error.js";import{JSONSupportMixin as r,JSONSupport as n}from"../../core/JSONSupport.js";import i from"../../core/Logger.js";import{transformProjective as s,getProjectiveTransform as l}from"../../core/perspectiveUtils.js";import{createScreenPoint as c}from"../../core/screenUtils.js";import{property as a}from"../../core/accessorSupport/decorators/property.js";import"../../core/has.js";import"../../core/RandomLCG.js";import{reader as p}from"../../core/accessorSupport/decorators/reader.js";import{subclass as u}from"../../core/accessorSupport/decorators/subclass.js";import{writer as m}from"../../core/accessorSupport/decorators/writer.js";import{invert as f}from"../../core/libs/gl-matrix-2/math/mat3.js";import{fromValues as P,create as h}from"../../core/libs/gl-matrix-2/factories/mat3f64.js";import{set as d,lerp as y,rotate as g}from"../../core/libs/gl-matrix-2/math/vec2.js";import{create as j,fromValues as w}from"../../core/libs/gl-matrix-2/factories/vec2f64.js";import R from"../../geometry/Point.js";import v from"../../geometry/Polygon.js";import{projectOrLoad as x}from"../../geometry/projectionUtils.js";import b from"../../geometry/SpatialReference.js";import C from"./GeoreferenceBase.js";const S=h(),N=j();let q=class extends n{};t([a({type:Number,json:{write:{isRequired:!0}}})],q.prototype,"x",void 0),t([a({type:Number,json:{write:{isRequired:!0}}})],q.prototype,"y",void 0),q=t([u("esri.layers.support.ControlPointsGeoreference.ControlPointJSONType")],q);let T=class extends o{constructor(){super(...arguments),this.sourcePoint=null,this.mapPoint=null}};t([a()],T.prototype,"sourcePoint",void 0),t([a({type:R})],T.prototype,"mapPoint",void 0),T=t([u("esri.layers.support.ControlPointsGeoreference.ControlPoint")],T);let O=class extends(r(C)){constructor(t){super(t),this.controlPoints=null,this.height=0,this.type="control-points",this.width=0}readControlPoints(t,o){const e=b.fromJSON(o.spatialReference),r=P(...o.coefficients,1);return t.map(t=>(d(N,t.x,t.y),s(N,N,r),{sourcePoint:t,mapPoint:new R({x:N[0],y:N[1],spatialReference:e})}))}writeControlPoints(t,o,r,n){if(null==this.transform){const t=new e("web-document-write:invalid-georeference","Invalid 'controlPoints', 'width', 'height' configuration. Make sure the parent media element is loaded i.e. the ImageElement or VideoElement set as 'MediaLayer.source'.",{layer:n?.layer,georeference:this});return void(n?.messages?n.messages.push(t):i.getLogger(this).error(t.name,t.message))}null!=t&&_(t[0])&&(o.controlPoints=t.map(t=>{const o=t.sourcePoint;return{x:o.x,y:o.y}}),o.spatialReference=t[0].mapPoint.spatialReference.toJSON(),o.coefficients=this.transform.slice(0,8))}get coords(){if(null==this.controlPoints)return null;const t=this._updateTransform(S);if(null==t||!_(this.controlPoints[0]))return null;const o=this.controlPoints[0].mapPoint.spatialReference;return Q(t,this.width,this.height,o)}set coords(t){if(null==this.controlPoints||!_(this.controlPoints[0]))return;const o=this.controlPoints[0].mapPoint.spatialReference;if(null==(t=this.projectOrWarn(t,o)))return;const{width:e,height:r}=this,{rings:[[n,i,l,a]]}=t,p={sourcePoint:c(0,r),mapPoint:new R({x:n[0],y:n[1],spatialReference:o})},u={sourcePoint:c(0,0),mapPoint:new R({x:i[0],y:i[1],spatialReference:o})},m={sourcePoint:c(e,0),mapPoint:new R({x:l[0],y:l[1],spatialReference:o})},f={sourcePoint:c(e,r),mapPoint:new R({x:a[0],y:a[1],spatialReference:o})};_(p)&&_(u)&&_(m)&&_(f)&&(W(S,p,u,m,f),this.controlPoints=this.controlPoints.map(({sourcePoint:t})=>(d(N,t.x,t.y),s(N,N,S),{sourcePoint:t,mapPoint:new R({x:N[0],y:N[1],spatialReference:o})})))}get inverseTransform(){return null==this.transform?null:f(h(),this.transform)}get transform(){return this._updateTransform()}toMap(t){if(null==t||null==this.transform||null==this.controlPoints||!_(this.controlPoints[0]))return null;d(N,t.x,t.y);const o=this.controlPoints[0].mapPoint.spatialReference;return s(N,N,this.transform),new R({x:N[0],y:N[1],spatialReference:o})}toSource(t){if(null==t||null==this.inverseTransform||null==this.controlPoints||!_(this.controlPoints[0]))return null;const o=this.controlPoints[0].mapPoint.spatialReference;return t=t.normalize(),null==(t=x(t,o).geometry)?null:(d(N,t.x,t.y),s(N,N,this.inverseTransform),c(N[0],N[1]))}toSourceNormalized(t){const o=this.toSource(t);return null!=o&&(o.x/=this.width,o.y/=this.height),o}_updateTransform(t){const{controlPoints:o,width:e,height:r}=this;if(!(null!=o&&e>0&&r>0))return null;const[n,i,s,l]=o;if(!_(n))return null;const c=n.mapPoint.spatialReference,a=this._projectControlPoint(i,c),p=this._projectControlPoint(s,c),u=this._projectControlPoint(l,c);if(!a.valid||!p.valid||!u.valid)return null;if(!_(a.controlPoint))return null;null==t&&(t=h());let m=null;return m=_(p.controlPoint)&&_(u.controlPoint)?W(t,n,a.controlPoint,p.controlPoint,u.controlPoint):_(p.controlPoint)?B(t,n,a.controlPoint,p.controlPoint):k(t,n,a.controlPoint),m.every(t=>0===t)?null:m}_projectControlPoint(t,o){if(!_(t))return{valid:!0,controlPoint:t};const{sourcePoint:e,mapPoint:r}=t,{geometry:n,pending:s}=x(r,o);return s?{valid:!1,controlPoint:null}:s||n?{valid:!0,controlPoint:{sourcePoint:e,mapPoint:n}}:(i.getLogger(this).warn("map point could not be projected to the spatial reference",{georeference:this,controlPoint:t,sourceSpatialReference:r.spatialReference,targetSpatialReference:o}),{valid:!1,controlPoint:null})}};function _(t){return null!=t?.sourcePoint&&null!=t.mapPoint}t([a({type:[T],json:{write:{allowNull:!1,isRequired:!0,target:{controlPoints:{type:[q],isRequired:!0},coefficients:{type:[Number],isRequired:!0},spatialReference:{type:b,isRequired:!0}}}}})],O.prototype,"controlPoints",void 0),t([p("controlPoints")],O.prototype,"readControlPoints",null),t([m("controlPoints")],O.prototype,"writeControlPoints",null),t([a({clonable:!1})],O.prototype,"coords",null),t([a({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}})],O.prototype,"height",void 0),t([a({readOnly:!0})],O.prototype,"inverseTransform",null),t([a({readOnly:!0})],O.prototype,"transform",null),t([a({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}})],O.prototype,"width",void 0),O=t([u("esri.layers.support.ControlPointsGeoreference")],O);const M=j(),G=j(),I=j(),L=j(),J=j(),E=j(),U=j(),z=j(),A=Math.PI/2;function V(t,o,e){d(t,e.sourcePoint.x,e.sourcePoint.y),d(o,e.mapPoint.x,e.mapPoint.y)}function k(t,o,e){return V(M,J,o),V(G,E,e),g(I,G,M,A),g(L,M,G,A),g(U,E,J,-A),g(z,J,E,-A),K(t,M,G,I,L,J,E,U,z)}function B(t,o,e,r){return V(M,J,o),V(G,E,e),V(I,U,r),y(L,M,G,.5),g(L,I,L,Math.PI),y(z,J,E,.5),g(z,U,z,Math.PI),K(t,M,G,I,L,J,E,U,z)}function W(t,o,e,r,n){return V(M,J,o),V(G,E,e),V(I,U,r),V(L,z,n),K(t,M,G,I,L,J,E,U,z)}const D=new Array(8).fill(0),F=new Array(8).fill(0);function H(t,o,e,r,n){return t[0]=o[0],t[1]=o[1],t[2]=e[0],t[3]=e[1],t[4]=r[0],t[5]=r[1],t[6]=n[0],t[7]=n[1],t}function K(t,o,e,r,n,i,s,c,a){return l(t,H(D,o,e,r,n),H(F,i,s,c,a))}function Q(t,o,e,r){const n=w(0,e),i=w(0,0),l=w(o,0),c=w(o,e);return s(n,n,t),s(i,i,t),s(l,l,t),s(c,c,t),new v({rings:[[n,i,l,c,n]],spatialReference:r})}export{O as default};
5
+ import{__decorate as t}from"tslib";import o from"../../core/Error.js";import{JSONSupportMixin as e,JSONSupport as r}from"../../core/JSONSupport.js";import n from"../../core/Logger.js";import{transformProjective as i,getProjectiveTransform as s}from"../../core/perspectiveUtils.js";import{createScreenPoint as l}from"../../core/screenUtils.js";import{property as c}from"../../core/accessorSupport/decorators/property.js";import"../../core/has.js";import"../../core/RandomLCG.js";import{reader as a}from"../../core/accessorSupport/decorators/reader.js";import{subclass as p}from"../../core/accessorSupport/decorators/subclass.js";import{writer as u}from"../../core/accessorSupport/decorators/writer.js";import{invert as m}from"../../core/libs/gl-matrix-2/math/mat3.js";import{fromValues as f,create as P}from"../../core/libs/gl-matrix-2/factories/mat3f64.js";import{set as h,lerp as d,rotate as y}from"../../core/libs/gl-matrix-2/math/vec2.js";import{create as g,fromValues as w}from"../../core/libs/gl-matrix-2/factories/vec2f64.js";import j from"../../geometry/Point.js";import R from"../../geometry/Polygon.js";import{projectOrLoad as x}from"../../geometry/projectionUtils.js";import v from"../../geometry/SpatialReference.js";import b from"./ControlPoint.js";import S from"./GeoreferenceBase.js";const C=P(),N=g();let q=class extends r{};t([c({type:Number,json:{write:{isRequired:!0}}})],q.prototype,"x",void 0),t([c({type:Number,json:{write:{isRequired:!0}}})],q.prototype,"y",void 0),q=t([p("esri.layers.support.ControlPointsGeoreference.ControlPointJSONType")],q);let T=class extends(e(S)){constructor(t){super(t),this.controlPoints=null,this.height=0,this.type="control-points",this.width=0}readControlPoints(t,o){const e=v.fromJSON(o.spatialReference),r=f(...o.coefficients,1);return t.map(t=>(h(N,t.x,t.y),i(N,N,r),{sourcePoint:t,mapPoint:new j({x:N[0],y:N[1],spatialReference:e})}))}writeControlPoints(t,e,r,i){if(null==this.transform){const t=new o("web-document-write:invalid-georeference","Invalid 'controlPoints', 'width', 'height' configuration. Make sure the parent media element is loaded i.e. the ImageElement or VideoElement set as 'MediaLayer.source'.",{layer:i?.layer,georeference:this});return void(i?.messages?i.messages.push(t):n.getLogger(this).error(t.name,t.message))}null!=t&&O(t[0])&&(e.controlPoints=t.map(t=>{const o=t.sourcePoint;return{x:o.x,y:o.y}}),e.spatialReference=t[0].mapPoint.spatialReference.toJSON(),e.coefficients=this.transform.slice(0,8))}get coords(){if(null==this.controlPoints)return null;const t=this._updateTransform(C);if(null==t||!O(this.controlPoints[0]))return null;const o=this.controlPoints[0].mapPoint.spatialReference;return K(t,this.width,this.height,o)}set coords(t){if(null==this.controlPoints||!O(this.controlPoints[0]))return;const o=this.controlPoints[0].mapPoint.spatialReference;if(null==(t=this.projectOrWarn(t,o)))return;const{width:e,height:r}=this,{rings:[[n,s,c,a]]}=t,p=new b({sourcePoint:l(0,r),mapPoint:new j({x:n[0],y:n[1],spatialReference:o})}),u=new b({sourcePoint:l(0,0),mapPoint:new j({x:s[0],y:s[1],spatialReference:o})}),m=new b({sourcePoint:l(e,0),mapPoint:new j({x:c[0],y:c[1],spatialReference:o})}),f=new b({sourcePoint:l(e,r),mapPoint:new j({x:a[0],y:a[1],spatialReference:o})});O(p)&&O(u)&&O(m)&&O(f)&&(B(C,p,u,m,f),this.controlPoints=this.controlPoints.map(({sourcePoint:t})=>(h(N,t.x,t.y),i(N,N,C),{sourcePoint:t,mapPoint:new j({x:N[0],y:N[1],spatialReference:o})})))}get inverseTransform(){return null==this.transform?null:m(P(),this.transform)}get transform(){return this._updateTransform()}toMap(t){if(null==t||null==this.transform||null==this.controlPoints||!O(this.controlPoints[0]))return null;h(N,t.x,t.y);const o=this.controlPoints[0].mapPoint.spatialReference;return i(N,N,this.transform),new j({x:N[0],y:N[1],spatialReference:o})}toSource(t){if(null==t||null==this.inverseTransform||null==this.controlPoints||!O(this.controlPoints[0]))return null;const o=this.controlPoints[0].mapPoint.spatialReference;return t=t.normalize(),null==(t=x(t,o).geometry)?null:(h(N,t.x,t.y),i(N,N,this.inverseTransform),l(N[0],N[1]))}toSourceNormalized(t){const o=this.toSource(t);return null!=o&&(o.x/=this.width,o.y/=this.height),o}_updateTransform(t){const{controlPoints:o,width:e,height:r}=this;if(!(null!=o&&e>0&&r>0))return null;const[n,i,s,l]=o;if(!O(n))return null;const c=n.mapPoint.spatialReference,a=this._projectControlPoint(i,c),p=this._projectControlPoint(s,c),u=this._projectControlPoint(l,c);if(!a.valid||!p.valid||!u.valid)return null;if(!O(a.controlPoint))return null;null==t&&(t=P());let m=null;return m=O(p.controlPoint)&&O(u.controlPoint)?B(t,n,a.controlPoint,p.controlPoint,u.controlPoint):O(p.controlPoint)?k(t,n,a.controlPoint,p.controlPoint):V(t,n,a.controlPoint),m.every(t=>0===t)?null:m}_projectControlPoint(t,o){if(!O(t))return{valid:!0,controlPoint:t};const{sourcePoint:e,mapPoint:r}=t,{geometry:i,pending:s}=x(r,o);return s?{valid:!1,controlPoint:null}:s||i?{valid:!0,controlPoint:new b({sourcePoint:e,mapPoint:i})}:(n.getLogger(this).warn("map point could not be projected to the spatial reference",{georeference:this,controlPoint:t,sourceSpatialReference:r.spatialReference,targetSpatialReference:o}),{valid:!1,controlPoint:null})}};function O(t){return null!=t?.sourcePoint&&null!=t.mapPoint}t([c({type:[b],json:{write:{allowNull:!1,isRequired:!0,target:{controlPoints:{type:[q],isRequired:!0},coefficients:{type:[Number],isRequired:!0},spatialReference:{type:v,isRequired:!0}}}}})],T.prototype,"controlPoints",void 0),t([a("controlPoints")],T.prototype,"readControlPoints",null),t([u("controlPoints")],T.prototype,"writeControlPoints",null),t([c({clonable:!1})],T.prototype,"coords",null),t([c({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}})],T.prototype,"height",void 0),t([c({readOnly:!0})],T.prototype,"inverseTransform",null),t([c({readOnly:!0})],T.prototype,"transform",null),t([c({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}})],T.prototype,"width",void 0),T=t([p("esri.layers.support.ControlPointsGeoreference")],T);const _=g(),M=g(),I=g(),L=g(),G=g(),J=g(),E=g(),U=g(),z=Math.PI/2;function A(t,o,e){h(t,e.sourcePoint.x,e.sourcePoint.y),h(o,e.mapPoint.x,e.mapPoint.y)}function V(t,o,e){return A(_,G,o),A(M,J,e),y(I,M,_,z),y(L,_,M,z),y(E,J,G,-z),y(U,G,J,-z),H(t,_,M,I,L,G,J,E,U)}function k(t,o,e,r){return A(_,G,o),A(M,J,e),A(I,E,r),d(L,_,M,.5),y(L,I,L,Math.PI),d(U,G,J,.5),y(U,E,U,Math.PI),H(t,_,M,I,L,G,J,E,U)}function B(t,o,e,r,n){return A(_,G,o),A(M,J,e),A(I,E,r),A(L,U,n),H(t,_,M,I,L,G,J,E,U)}const W=new Array(8).fill(0),D=new Array(8).fill(0);function F(t,o,e,r,n){return t[0]=o[0],t[1]=o[1],t[2]=e[0],t[3]=e[1],t[4]=r[0],t[5]=r[1],t[6]=n[0],t[7]=n[1],t}function H(t,o,e,r,n,i,l,c,a){return s(t,F(W,o,e,r,n),F(D,i,l,c,a))}function K(t,o,e,r){const n=w(0,e),s=w(0,0),l=w(o,0),c=w(o,e);return i(n,n,t),i(s,s,t),i(l,l,t),i(c,c,t),new R({rings:[[n,s,l,c,n]],spatialReference:r})}export{T as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
4
  */
5
- import{__decorate as o}from"tslib";import{ClonableMixin as r}from"../../core/Clonable.js";import{JSONSupport as t}from"../../core/JSONSupport.js";import{property as e}from"../../core/accessorSupport/decorators/property.js";import{subclass as s}from"../../core/accessorSupport/decorators/subclass.js";import i from"./DateTimeFieldFormat.js";import p from"./FieldFormat.js";import a from"./NumberFieldFormat.js";const m={base:p,key:"type",errorContext:"field-configuration-format",typeMap:{"date-time":i,number:a}};let l=class extends(r(t)){constructor(o){super(o),this.alias=null,this.name=void 0,this.format=null}};o([e({type:String,json:{write:!0}})],l.prototype,"alias",void 0),o([e({type:String,nonNullable:!0,json:{write:{isRequired:!0}}})],l.prototype,"name",void 0),o([e({types:m,json:{write:!0}})],l.prototype,"format",void 0),l=o([s("esri.layers.support.FieldConfiguration")],l);export{l as default};
5
+ import{__decorate as o}from"tslib";import{ClonableMixin as r}from"../../core/Clonable.js";import{JSONSupport as t}from"../../core/JSONSupport.js";import{property as e}from"../../core/accessorSupport/decorators/property.js";import{subclass as i}from"../../core/accessorSupport/decorators/subclass.js";import s from"./DateTimeFieldFormat.js";import p from"./FieldFormat.js";import a from"./NumberFieldFormat.js";const m={base:p,key:"type",errorContext:"field-configuration-field-format",typeMap:{"date-time":s,number:a}};let l=class extends(r(t)){constructor(o){super(o),this.alias=null,this.name=void 0,this.fieldFormat=null}};o([e({type:String,json:{write:!0}})],l.prototype,"alias",void 0),o([e({type:String,nonNullable:!0,json:{write:{isRequired:!0}}})],l.prototype,"name",void 0),o([e({types:m,json:{write:!0}})],l.prototype,"fieldFormat",void 0),l=o([i("esri.layers.support.FieldConfiguration")],l);export{l as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
4
  */
5
- import{__decorate as o}from"tslib";import r from"../../core/Accessor.js";import{ClonableMixin as t}from"../../core/Clonable.js";import{JSONSupport as e}from"../../core/JSONSupport.js";import{property as s}from"../../core/accessorSupport/decorators/property.js";import"../../core/has.js";import"../../core/Logger.js";import"../../core/RandomLCG.js";import{reader as n}from"../../core/accessorSupport/decorators/reader.js";import{subclass as i}from"../../core/accessorSupport/decorators/subclass.js";import{writer as p}from"../../core/accessorSupport/decorators/writer.js";import c from"../../geometry/Point.js";let l=class extends r{constructor(){super(...arguments),this.sourcePoint=null,this.mapPoint=null}};function m(o){return null!=o?.sourcePoint&&null!=o.mapPoint}o([s()],l.prototype,"sourcePoint",void 0),o([s({type:c})],l.prototype,"mapPoint",void 0),l=o([i("esri.layers.support.VideoFrame.ControlPoint")],l);let a=class extends(t(e)){constructor(o){super(o),this.frame=null,this.controlPoints=null}readControlPoints(o){return o.map(o=>({sourcePoint:{x:o.frameX,y:o.frameY},mapPoint:new c(o.point)}))}writeControlPoints(o,r){null!=o&&m(o[0])&&(r.controlPoints=o.map(o=>{const r=o.sourcePoint,t=o.mapPoint;return{frameX:r.x,frameY:r.y,point:t.toJSON()}}))}};o([s({type:String})],a.prototype,"frame",void 0),o([s({type:[l],json:{write:{allowNull:!1,isRequired:!0}}})],a.prototype,"controlPoints",void 0),o([n("controlPoints")],a.prototype,"readControlPoints",null),o([p("controlPoints")],a.prototype,"writeControlPoints",null),a=o([i("esri.layers.support.VideoFrame")],a);const u=a;export{u as default};
5
+ import{__decorate as o}from"tslib";import{ClonableMixin as r}from"../../core/Clonable.js";import{JSONSupport as t}from"../../core/JSONSupport.js";import{property as e}from"../../core/accessorSupport/decorators/property.js";import"../../core/has.js";import"../../core/Logger.js";import"../../core/RandomLCG.js";import{reader as s}from"../../core/accessorSupport/decorators/reader.js";import{subclass as n}from"../../core/accessorSupport/decorators/subclass.js";import{writer as i}from"../../core/accessorSupport/decorators/writer.js";import p from"../../geometry/Point.js";import c from"./ControlPoint.js";function l(o){return null!=o?.sourcePoint&&null!=o.mapPoint}let m=class extends(r(t)){constructor(o){super(o),this.frame=null,this.controlPoints=null}readControlPoints(o){return o.map(o=>({sourcePoint:{x:o.frameX,y:o.frameY},mapPoint:new p(o.point)}))}writeControlPoints(o,r){null!=o&&l(o[0])&&(r.controlPoints=o.map(o=>{const r=o.sourcePoint,t=o.mapPoint;return{frameX:r.x,frameY:r.y,point:t.toJSON()}}))}};o([e({type:String})],m.prototype,"frame",void 0),o([e({type:[c],json:{write:{allowNull:!1,isRequired:!0}}})],m.prototype,"controlPoints",void 0),o([s("controlPoints")],m.prototype,"readControlPoints",null),o([i("controlPoints")],m.prototype,"writeControlPoints",null),m=o([n("esri.layers.support.VideoFrame")],m);const a=m;export{a as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
4
  */
5
- import{clone as t}from"../../core/lang.js";import e from"./DateTimeFieldFormat.js";import n from"./FieldConfiguration.js";import{isNumericField as r,isDateField as o,isDateOnlyField as a,isTimeOnlyField as i,isTimestampOffsetField as s,isFieldEditable as l}from"./fieldUtils.js";import u from"./NumberFieldFormat.js";import c from"../../popup/FieldInfo.js";import m from"../../popup/support/FieldInfoFormat.js";function f(t){const{popupTemplate:e,fieldsIndex:r}=t,o=e?.fieldInfos;if(!o?.length||!r)return;const a=[];for(const{fieldName:i,label:s,format:l}of o){const t=r.get(i);if(!t)continue;const e=s&&s!==t.alias?s:null,o=I(t)?l?d(l,t):j(t):null;(e||o)&&a.push(new n({name:t.name,alias:e,format:o}))}return a.length?a:null}function d(t,e){if(I(e))switch(e.type){case"integer":case"small-integer":case"big-integer":case"long":return h(t);case"single":case"double":return g(t);case"date":case"timestamp-offset":return p(t);case"date-only":return y(t);case"time-only":return w(t)}}function h(t){return new u({useGrouping:t.digitSeparator?"always":"never"})}function g(t){const e=h(t);return null!=t.places&&(e.maximumFractionDigits=e.minimumFractionDigits=t.places),e}function p(t){return new e({dateStyle:F(t),year:$(t),month:S(t),timeStyle:x(t),hour12:b(t)})}function y(t){return new e({dateStyle:F(t),year:$(t),month:S(t)})}function w(t){return new e({timeStyle:x(t),hour12:b(t)})}function F(t){const{dateFormat:e}=t;return e?e.startsWith("short-date")?"short":e.startsWith("day-short-month-year")?"medium":e.startsWith("long-month-day-year")?"long":e.startsWith("long-date")?"full":null:null}function b(t){return t.dateFormat?.endsWith("-24")?"never":"always"}function S(t){switch(t.dateFormat){case"short-month-year":return"short";case"long-month-year":return"long";default:return null}}function x(t){const{dateFormat:e}=t;return e?e.includes("short-time")?"short":e.includes("long-time")?"medium":null:null}function $(t){switch(t.dateFormat){case"short-month-year":case"long-month-year":case"year":return"numeric";default:return null}}function D(t){const{fields:e}=t;if(!e?.length)return;const r=[];for(const o of e){const t=I(o)?j(o,{maximumFractionDigits:2}):null;t&&r.push(new n({name:o.name,format:t}))}return r.length?r:null}function I(t){return r(t)||o(t)||a(t)||i(t)||s(t)}function j(t,n){if(!I(t))return;const r=n?.maximumFractionDigits??3;switch(t.type){case"integer":case"small-integer":case"big-integer":case"long":return new u({maximumFractionDigits:0,minimumFractionDigits:0});case"single":case"double":return new u({maximumFractionDigits:r,minimumFractionDigits:0});case"date":case"timestamp-offset":return new e({dateStyle:"short",timeStyle:"short"});case"date-only":return new e({dateStyle:"short"});case"time-only":return new e({timeStyle:"short"})}}function v(t,e){const{popupTemplate:n,fieldsIndex:r}=t;if(!n||!r)return;const o=W(t,e,n.fieldInfos);if(!o)return;const a=n.clone();return a.fieldInfos=o,a}function W(e,n,r){n??=[],r=r?t(r):[];let o=!1;const a=new Map;for(const t of n){const n=e.fieldsIndex.get(t.name);n&&a.set(n.name,t)}for(const t of r){const n=e.fieldsIndex.get(t.fieldName);if(!n)continue;const r=a.get(n.name);t.label=r?.alias||n.alias,t.format=I(n)&&r?.format?T(r.format,n):null,o=!0,a.delete(n.name)}for(const t of a.values()){const n=N(e,t);n&&(r.push(n),o=!0)}return o?r:null}function N(t,e){const{name:n,alias:r,format:o}=e,a=t.fieldsIndex.get(n);if(!a||!r&&!o)return;const i=r||a.alias,s=I(a)&&o?T(o,a):null;return new c({fieldName:a.name,label:i,format:s,visible:!1,isEditable:l(a,t)})}function T(t,e){if(!I(e))return;const n="number"===t.type,r="date-time"===t.type;switch(e.type){case"integer":case"small-integer":case"big-integer":case"long":return n?G(t):null;case"single":case"double":return n?C(t):null;case"date":case"timestamp-offset":return r?E(t):null;case"date-only":return r?M(t):null;case"time-only":return r?U(t):null}}function G(t){return new m({digitSeparator:"never"!==t.useGrouping})}function C(t){const e=G(t);return e.places=t.maximumFractionDigits,e}function E(t){let e;const n=k(t),r=q(t),o="never"===t.hour12?"24":null,a="numeric"===t.year?"year":null,i=z(t);return n&&r&&o?e=`${n}-${r}-${o}`:n&&r?e=`${n}-${r}`:n?e=n:a&&i?e=`${i}-${a}`:a&&(e=a),e?new m({dateFormat:e}):null}function M(t){let e;const n=k(t),r="numeric"===t.year?"year":null,o=z(t);return n?e=n:r&&o?e=`${o}-${r}`:r&&(e=r),e?new m({dateFormat:e}):null}function U(t){let e;const n=q(t),r="never"===t.hour12?"24":null;return n&&r?e=`short-date-${n}-${r}`:n&&(e=`short-date-${n}`),e?new m({dateFormat:e}):null}function k(t){switch(t.dateStyle){case"short":return"short-date";case"medium":return"day-short-month-year";case"long":return"long-month-day-year";case"full":return"long-date";default:return}}function q(t){return t.timeStyle&&("short"===t.timeStyle?"short-time":"long-time")}function z(t){switch(t.month){case"short":return"short-month";case"long":return"long-month";default:return}}export{j as defaultFieldFormat,D as fieldConfigurationsFromFields,f as fieldConfigurationsFromPopupTemplate,d as fieldFormatFromFieldInfoFormat,T as fieldInfoFormatFromFieldFormat,I as isFormattableField,v as popupTemplateWithFieldConfigurations};
5
+ import{clone as e}from"../../core/lang.js";import t from"./DateTimeFieldFormat.js";import n from"./FieldConfiguration.js";import{isNumericField as r,isDateField as o,isDateOnlyField as a,isTimeOnlyField as i,isTimestampOffsetField as s,isFieldEditable as l}from"./fieldUtils.js";import u from"./NumberFieldFormat.js";import c from"../../popup/FieldInfo.js";import m from"../../popup/support/FieldInfoFormat.js";function f(e){const{popupTemplate:t,fieldsIndex:r}=e,o=t?.fieldInfos;if(!o?.length||!r)return;const a=[];for(const{fieldName:i,label:s,format:l}of o){const e=r.get(i);if(!e)continue;const t=s&&s!==e.alias?s:null,o=I(e)?l?d(l,e):j(e):null;(t||o)&&a.push(new n({name:e.name,alias:t,fieldFormat:o}))}return a.length?a:null}function d(e,t){if(I(t))switch(t.type){case"integer":case"small-integer":case"big-integer":case"long":return h(e);case"single":case"double":return g(e);case"date":case"timestamp-offset":return p(e);case"date-only":return y(e);case"time-only":return F(e)}}function h(e){return new u({useGrouping:e.digitSeparator?"always":"never"})}function g(e){const t=h(e);return null!=e.places&&(t.maximumFractionDigits=t.minimumFractionDigits=e.places),t}function p(e){return new t({dateStyle:w(e),year:$(e),month:S(e),timeStyle:x(e),hour12:b(e)})}function y(e){return new t({dateStyle:w(e),year:$(e),month:S(e)})}function F(e){return new t({timeStyle:x(e),hour12:b(e)})}function w(e){const{dateFormat:t}=e;return t?t.startsWith("short-date")?"short":t.startsWith("day-short-month-year")?"medium":t.startsWith("long-month-day-year")?"long":t.startsWith("long-date")?"full":null:null}function b(e){return e.dateFormat?.endsWith("-24")?"never":"always"}function S(e){switch(e.dateFormat){case"short-month-year":return"short";case"long-month-year":return"long";default:return null}}function x(e){const{dateFormat:t}=e;return t?t.includes("short-time")?"short":t.includes("long-time")?"medium":null:null}function $(e){switch(e.dateFormat){case"short-month-year":case"long-month-year":case"year":return"numeric";default:return null}}function D(e){const{fields:t}=e;if(!t?.length)return;const r=[];for(const o of t){const e=I(o)?j(o,{maximumFractionDigits:2}):null;e&&r.push(new n({name:o.name,fieldFormat:e}))}return r.length?r:null}function I(e){return r(e)||o(e)||a(e)||i(e)||s(e)}function j(e,n){if(!I(e))return;const r=n?.maximumFractionDigits??3;switch(e.type){case"integer":case"small-integer":case"big-integer":case"long":return new u({maximumFractionDigits:0,minimumFractionDigits:0});case"single":case"double":return new u({maximumFractionDigits:r,minimumFractionDigits:0});case"date":case"timestamp-offset":return new t({dateStyle:"short",timeStyle:"short"});case"date-only":return new t({dateStyle:"short"});case"time-only":return new t({timeStyle:"short"})}}function v(e,t){const{popupTemplate:n,fieldsIndex:r}=e;if(!n||!r)return;const o=W(e,t,n.fieldInfos);if(!o)return;const a=n.clone();return a.fieldInfos=o,a}function W(t,n,r){n??=[],r=r?e(r):[];let o=!1;const a=new Map;for(const e of n){const n=t.fieldsIndex.get(e.name);n&&a.set(n.name,e)}for(const e of r){const n=t.fieldsIndex.get(e.fieldName);if(!n)continue;const r=a.get(n.name);e.label=r?.alias||n.alias,e.format=I(n)&&r?.fieldFormat?T(r.fieldFormat,n):null,o=!0,a.delete(n.name)}for(const e of a.values()){const n=N(t,e);n&&(r.push(n),o=!0)}return o?r:null}function N(e,t){const{name:n,alias:r,fieldFormat:o}=t,a=e.fieldsIndex.get(n);if(!a||!r&&!o)return;const i=r||a.alias,s=I(a)&&o?T(o,a):null;return new c({fieldName:a.name,label:i,format:s,visible:!1,isEditable:l(a,e)})}function T(e,t){if(!I(t))return;const n="number"===e.type,r="date-time"===e.type;switch(t.type){case"integer":case"small-integer":case"big-integer":case"long":return n?G(e):null;case"single":case"double":return n?C(e):null;case"date":case"timestamp-offset":return r?E(e):null;case"date-only":return r?M(e):null;case"time-only":return r?U(e):null}}function G(e){return new m({digitSeparator:"never"!==e.useGrouping})}function C(e){const t=G(e);return t.places=e.maximumFractionDigits,t}function E(e){let t;const n=k(e),r=q(e),o="never"===e.hour12?"24":null,a="numeric"===e.year?"year":null,i=z(e);return n&&r&&o?t=`${n}-${r}-${o}`:n&&r?t=`${n}-${r}`:n?t=n:a&&i?t=`${i}-${a}`:a&&(t=a),t?new m({dateFormat:t}):null}function M(e){let t;const n=k(e),r="numeric"===e.year?"year":null,o=z(e);return n?t=n:r&&o?t=`${o}-${r}`:r&&(t=r),t?new m({dateFormat:t}):null}function U(e){let t;const n=q(e),r="never"===e.hour12?"24":null;return n&&r?t=`short-date-${n}-${r}`:n&&(t=`short-date-${n}`),t?new m({dateFormat:t}):null}function k(e){switch(e.dateStyle){case"short":return"short-date";case"medium":return"day-short-month-year";case"long":return"long-month-day-year";case"full":return"long-date";default:return}}function q(e){return e.timeStyle&&("short"===e.timeStyle?"short-time":"long-time")}function z(e){switch(e.month){case"short":return"short-month";case"long":return"long-month";default:return}}export{j as defaultFieldFormat,D as fieldConfigurationsFromFields,f as fieldConfigurationsFromPopupTemplate,d as fieldFormatFromFieldInfoFormat,T as fieldInfoFormatFromFieldFormat,I as isFormattableField,v as popupTemplateWithFieldConfigurations};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
4
  */
5
- import{createScreenPoint as e}from"../../core/screenUtils.js";import{nameToId as t}from"../../core/accessorSupport/PropertyOrigin.js";import n from"../../geometry/Extent.js";import o from"../../geometry/Point.js";import{getInfo as r}from"../../geometry/support/spatialReferenceUtils.js";import i from"./ControlPointsGeoreference.js";import s from"./CornersGeoreference.js";import a from"./ExtentAndRotationGeoreference.js";import c from"./GeoreferenceBase.js";const p=100,l=.5;async function y(e,t){e.loaded||await e.load();const{contentWidth:s,contentHeight:a}=e,{spatialReference:c}=t,y=r(c);let m=!1;if(y){const e=y.valid[1]-y.valid[0];t.width>e&&(t=new n({xmin:y.valid[0],ymin:t.ymin,xmax:y.valid[1],ymax:t.ymax,spatialReference:t.spatialReference}),m=!0)}const f=t.expand(l),{center:u,width:P,height:d}=f,x=s/a,w=m||x>1,g=w?p:p*x,h=w?p/x:p,R=w?P:d*x,j=w?P/x:d,v=u.x-R/2,b=u.x+R/2,G=u.y+j/2,O=u.y-j/2;return new i({controlPoints:[{sourcePoint:{x:g,y:a-h},mapPoint:new o({x:v,y:O,spatialReference:c})},{sourcePoint:{x:g,y:h},mapPoint:new o({x:v,y:G,spatialReference:c})},{sourcePoint:{x:s-g,y:h},mapPoint:new o({x:b,y:G,spatialReference:c})},{sourcePoint:{x:s-g,y:a-h},mapPoint:new o({x:b,y:O,spatialReference:c})}],width:s,height:a})}function m(e){const t=e.georeference;if("control-points"!==t.type)return null;const n={wkid:0},{width:r,height:s}=t,a=t.controlPoints;return new i({controlPoints:a.map(e=>{const{x:t,y:r}=e.sourcePoint;return{sourcePoint:{x:t,y:r},mapPoint:new o({x:t,y:s-r,spatialReference:n})}}),width:r,height:s})}function f(e){return"media"===e?.type}function u(e,n){const o=t(n);return f(e)&&!!e.portalItem&&null!=o&&o>3}function P(t,n,r){if(!t||"control-points"===t.type)return t;const{coords:s}=t;if(5!==s?.rings[0]?.length)return null;const[a,c,p,l]=s.rings[0],{spatialReference:y}=s;return new i({controlPoints:[{mapPoint:new o({x:a[0],y:a[1],spatialReference:y}),sourcePoint:e(0,r)},{mapPoint:new o({x:c[0],y:c[1],spatialReference:y}),sourcePoint:e(0,0)},{mapPoint:new o({x:p[0],y:p[1],spatialReference:y}),sourcePoint:e(n,0)},{mapPoint:new o({x:l[0],y:l[1],spatialReference:y}),sourcePoint:e(n,r)}],width:n,height:r})}function d(e,t,n){return{enabled:!u(n?.layer,n?.origin),ignoreOrigin:!0}}const x={json:{name:"url",type:String,write:{overridePolicy:d}}},w={readOnly:!0,json:{read:!1,write:{target:"mediaType",overridePolicy:d}}},g={types:{key:"type",base:c,typeMap:{"control-points":i,corners:s,"extent-and-rotation":a}},json:{types:{key:"type",base:c,typeMap:{"control-points":i}},write:{overridePolicy:()=>({enabled:!0,ignoreOrigin:!0})}}};export{y as createDefaultControlPointsGeoreference,m as createLocalModeControlPointsGeoreference,u as isWritingLayerFromItemToWebDocument,x as mediaElementUrlProperty,g as mediaGeoreferenceProperty,w as mediaTypeProperty,P as toControlPointsGeoreference};
5
+ import{createScreenPoint as e}from"../../core/screenUtils.js";import{nameToId as n}from"../../core/accessorSupport/PropertyOrigin.js";import t from"../../geometry/Extent.js";import o from"../../geometry/Point.js";import{getInfo as r}from"../../geometry/support/spatialReferenceUtils.js";import i from"./ControlPoint.js";import s from"./ControlPointsGeoreference.js";import a from"./CornersGeoreference.js";import c from"./ExtentAndRotationGeoreference.js";import p from"./GeoreferenceBase.js";const l=100,y=.5;async function m(e,n){e.loaded||await e.load();const{contentWidth:a,contentHeight:c}=e,{spatialReference:p}=n,m=r(p);let f=!1;if(m){const e=m.valid[1]-m.valid[0];n.width>e&&(n=new t({xmin:m.valid[0],ymin:n.ymin,xmax:m.valid[1],ymax:n.ymax,spatialReference:n.spatialReference}),f=!0)}const u=n.expand(y),{center:w,width:P,height:d}=u,x=a/c,g=f||x>1,h=g?l:l*x,R=g?l/x:l,j=g?P:d*x,v=g?P/x:d,b=w.x-j/2,G=w.x+j/2,O=w.y+v/2,k=w.y-v/2;return new s({controlPoints:[new i({sourcePoint:{x:h,y:c-R},mapPoint:new o({x:b,y:k,spatialReference:p})}),new i({sourcePoint:{x:h,y:R},mapPoint:new o({x:b,y:O,spatialReference:p})}),new i({sourcePoint:{x:a-h,y:R},mapPoint:new o({x:G,y:O,spatialReference:p})}),new i({sourcePoint:{x:a-h,y:c-R},mapPoint:new o({x:G,y:k,spatialReference:p})})],width:a,height:c})}function f(e){const n=e.georeference;if("control-points"!==n.type)return null;const t={wkid:0},{width:r,height:i}=n,a=n.controlPoints;return new s({controlPoints:a.map(e=>{const{x:n,y:r}=e.sourcePoint;return{sourcePoint:{x:n,y:r},mapPoint:new o({x:n,y:i-r,spatialReference:t})}}),width:r,height:i})}function u(e){return"media"===e?.type}function w(e,t){const o=n(t);return u(e)&&!!e.portalItem&&null!=o&&o>3}function P(n,t,r){if(!n||"control-points"===n.type)return n;const{coords:a}=n;if(5!==a?.rings[0]?.length)return null;const[c,p,l,y]=a.rings[0],{spatialReference:m}=a;return new s({controlPoints:[new i({mapPoint:new o({x:c[0],y:c[1],spatialReference:m}),sourcePoint:e(0,r)}),new i({mapPoint:new o({x:p[0],y:p[1],spatialReference:m}),sourcePoint:e(0,0)}),new i({mapPoint:new o({x:l[0],y:l[1],spatialReference:m}),sourcePoint:e(t,0)}),new i({mapPoint:new o({x:y[0],y:y[1],spatialReference:m}),sourcePoint:e(t,r)})],width:t,height:r})}function d(e,n,t){return{enabled:!w(t?.layer,t?.origin),ignoreOrigin:!0}}const x={json:{name:"url",type:String,write:{overridePolicy:d}}},g={readOnly:!0,json:{read:!1,write:{target:"mediaType",overridePolicy:d}}},h={types:{key:"type",base:p,typeMap:{"control-points":s,corners:a,"extent-and-rotation":c}},json:{types:{key:"type",base:p,typeMap:{"control-points":s}},write:{overridePolicy:()=>({enabled:!0,ignoreOrigin:!0})}}};export{m as createDefaultControlPointsGeoreference,f as createLocalModeControlPointsGeoreference,w as isWritingLayerFromItemToWebDocument,x as mediaElementUrlProperty,h as mediaGeoreferenceProperty,g as mediaTypeProperty,P as toControlPointsGeoreference};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
4
  */
5
- import e from"../../request.js";import{clone as t}from"../../core/lang.js";import{throwIfAborted as r}from"../../core/promiseUtils.js";import{normalize as o,isProtocolRelative as s,isAbsolute as l,join as n,removeTrailingSlash as i,removeFile as u,getAppBaseUrl as c,addQueryParameters as a}from"../../core/urlUtils.js";import{wgs84 as f,webMercator as p}from"../../geometry/support/spatialReferenceUtils.js";import{geographicToWebMercator as y}from"../../geometry/support/webMercatorUtils.js";import m from"../../views/2d/engine/vectorTiles/style/VectorTileSource.js";async function x(e,t){const r={source:null,sourceBase:null,sourceUrl:null,validatedSource:null,style:null,styleBase:null,styleUrl:null,sourceNameToSource:{},primarySourceName:"",spriteFormat:"png"},[o,s]="string"==typeof e?[e,null]:[null,e.jsonUrl];await S(r,"esri",e,s,t);return{layerDefinition:r.validatedSource,url:o,serviceUrl:r.sourceUrl,style:r.style,styleUrl:r.styleUrl,spriteUrl:r.style.sprite&&d(r.styleBase,r.style.sprite),spriteFormat:r.spriteFormat,glyphsUrl:r.style.glyphs&&d(r.styleBase,r.style.glyphs),sourceNameToSource:r.sourceNameToSource,primarySourceName:r.primarySourceName}}function d(...e){let t;for(const r of e)if(null!=r)if(s(r)){if(t){const e=t.split("://")[0];t=e+":"+r.trim()}}else t=l(r)?r:n(t,r);return t?i(t):void 0}async function S(t,s,l,n,i){let u,c,a;if(r(i),"string"==typeof l){const t=o(l);a=await e(t,{...i,responseType:"json",query:{f:"json",...i?.query}}),a.ssl&&(u&&(u=u.replace(/^http:/i,"https:")),c&&(c=c.replace(/^http:/i,"https:"))),u=t,c=t}else null!=l&&(a={data:l},u=l.jsonUrl||null,c=n);const f=a?.data;if(w(f))return t.styleUrl=u||null,j(t,f,c,i);if(U(f))return t.sourceUrl?g(t,f,c,!1,s,i):(t.sourceUrl=u||null,g(t,f,c,!0,s,i));throw new Error("You must specify the URL or the JSON for a service or for a style.")}function h(e){return"object"==typeof e&&!!e&&"tilejson"in e&&null!=e.tilejson}function w(e){return!!e&&"sources"in e&&!!e.sources}function U(e){return!w(e)}async function j(e,t,r,o){const s=r?u(r):c();e.styleBase=s,e.style=t,t["sprite-format"]&&"webp"===t["sprite-format"].toLowerCase()&&(e.spriteFormat="webp");const l=[];if(t.sources&&t.sources.esri){const r=t.sources.esri;r.url?await S(e,"esri",d(s,r.url),void 0,o):l.push(S(e,"esri",r,s,o))}for(const n of Object.keys(t.sources))"esri"!==n&&"vector"===t.sources[n].type&&(t.sources[n].url?l.push(S(e,n,d(s,t.sources[n].url),void 0,o)):t.sources[n].tiles&&l.push(S(e,n,t.sources[n],s,o)));await Promise.all(l)}async function g(e,t,r,o,s,l){const n=r?i(r)+"/":c(),u=v(t),f=new m(s,a(n,l?.query??{}),u);if(!o&&e.primarySourceName in e.sourceNameToSource){const t=e.sourceNameToSource[e.primarySourceName];if(!t.isCompatibleWith(f))return;null!=f.fullExtent&&(null!=t.fullExtent?t.fullExtent.union(f.fullExtent):t.fullExtent=f.fullExtent.clone()),t.tileInfo&&f.tileInfo&&t.tileInfo.lods.length<f.tileInfo.lods.length&&(t.tileInfo=f.tileInfo)}if(o&&(e.sourceBase=n,e.source=t,e.validatedSource=u,e.primarySourceName=s),e.sourceNameToSource[s]=f,!h(e)&&"defaultStyles"in t&&!e.style){if(null==t.defaultStyles)throw new Error;return"string"==typeof t.defaultStyles?S(e,"",d(n,t.defaultStyles,"root.json"),void 0,l):S(e,"",t.defaultStyles,d(n,"root.json"),l)}}function v(e){const r=512;if(N(e)){const t=e?.tileInfo;return null!=t&&(null==t.rows&&(t.rows=r),null==t.cols&&(t.cols=r)),e}const o={xmin:-20037507.067161843,ymin:-20037507.067161843,xmax:20037507.067161843,ymax:20037507.067161843,spatialReference:{wkid:102100,latestWkid:3857}};let s=null;if(h(e)){const{bounds:r}=e;if(r){const e=y({x:r[0],y:r[1],spatialReference:t(f)}),o=y({x:r[2],y:r[3],spatialReference:t(f)});s={xmin:e.x,ymin:e.y,xmax:o.x,ymax:o.y,spatialReference:t(p)}}}null===s&&(s=o);let l=78271.51696400007,n=295828763.7957775;const i=[],u=e.hasOwnProperty("maxzoom")&&null!=e.maxzoom?+e.maxzoom:22,c=0,a=0;for(let t=0;t<=u;t++)i.push({level:t,scale:n,resolution:l}),l/=2,n/=2;return{capabilities:"TilesOnly",initialExtent:s,fullExtent:o,minScale:c,maxScale:a,tiles:e.tiles,tileInfo:{rows:r,cols:r,dpi:96,format:"pbf",origin:{x:-20037508.342787,y:20037508.342787},lods:i,spatialReference:t(p)}}}function N(e){return e.hasOwnProperty("tileInfo")}export{x as loadMetadata};
5
+ import e from"../../request.js";import{clone as t}from"../../core/lang.js";import{throwIfAborted as o}from"../../core/promiseUtils.js";import{normalize as r,removeFile as l,getAppBaseUrl as s,removeTrailingSlash as n,addQueryParameters as i,isProtocolRelative as u,isAbsolute as c,join as a}from"../../core/urlUtils.js";import{wgs84 as f,webMercator as p}from"../../geometry/support/spatialReferenceUtils.js";import{geographicToWebMercator as y}from"../../geometry/support/webMercatorUtils.js";import m from"../../views/2d/engine/vectorTiles/style/VectorTileSource.js";async function d(e,t){const o={source:null,sourceBase:null,sourceUrl:null,validatedSource:null,style:null,styleBase:null,styleUrl:null,sourceNameToSource:{},primarySourceName:"",spriteFormat:"png"},[r,l]="string"==typeof e?[e,null]:[null,e.jsonUrl];await x(o,"esri",e,l,t);return{layerDefinition:o.validatedSource,url:r,serviceUrl:o.sourceUrl,style:o.style,styleUrl:o.styleUrl,spriteUrl:o.style?.sprite&&h(o.styleBase,o.style.sprite),spriteFormat:o.spriteFormat,glyphsUrl:o.style?.glyphs&&h(o.styleBase,o.style.glyphs),sourceNameToSource:o.sourceNameToSource,primarySourceName:o.primarySourceName}}function h(...e){let t;for(const o of e)if(null!=o)if(u(o)){if(t){const e=t.split("://")[0];t=e+":"+o.trim()}}else t=c(o)?o:a(t,o);return t?n(t):void 0}async function x(t,l,s,n,i){let u,c,a;if(o(i),"string"==typeof s){const t=r(s);a=await e(t,{...i,responseType:"json",query:{f:"json",...i?.query}}),a.ssl&&(u&&(u=u.replace(/^http:/i,"https:")),c&&(c=c.replace(/^http:/i,"https:"))),u=t,c=t}else null!=s&&(a={data:s},u=s.jsonUrl||null,c=n);const f=a?.data;if(g(f))return t.styleUrl=u||null,w(t,f,c,i);if(j(f))return t.sourceUrl?U(t,f,c,!1,l,i):(t.sourceUrl=u||null,S(f)&&(l="tilejson"),U(t,f,c,!0,l,i));throw new Error("You must specify the URL or the JSON for a service or for a style.")}function S(e){return"object"==typeof e&&!!e&&"tilejson"in e&&null!=e.tilejson}function g(e){return!!e&&"sources"in e&&!!e.sources}function j(e){return!g(e)}async function w(e,t,o,r){const n=o?l(o):s();e.styleBase=n,e.style=t,t["sprite-format"]&&"webp"===t["sprite-format"].toLowerCase()&&(e.spriteFormat="webp");const i=[];if(t.sources&&t.sources.esri){const o=t.sources.esri;o.url?await x(e,"esri",h(n,o.url),void 0,r):i.push(x(e,"esri",o,n,r))}for(const l of Object.keys(t.sources))"esri"!==l&&"tilejson"!==l&&"vector"===t.sources[l].type&&(t.sources[l].url?i.push(x(e,l,h(n,t.sources[l].url),void 0,r)):t.sources[l].tiles&&i.push(x(e,l,t.sources[l],n,r)));await Promise.all(i)}async function U(e,t,o,r,l,u){const c=o?n(o)+"/":s(),a=v(t),f=new m(l,i(c,u?.query??{}),a);if(!r&&e.primarySourceName in e.sourceNameToSource){const t=e.sourceNameToSource[e.primarySourceName];if(!t.isCompatibleWith(f))return;null!=f.fullExtent&&(null!=t.fullExtent?t.fullExtent.union(f.fullExtent):t.fullExtent=f.fullExtent.clone()),t.tileInfo&&f.tileInfo&&t.tileInfo.lods.length<f.tileInfo.lods.length&&(t.tileInfo=f.tileInfo)}if(r&&(e.sourceBase=c,e.source=t,e.validatedSource=a,e.primarySourceName=l),e.sourceNameToSource[l]=f,!S(e)&&"defaultStyles"in t&&!e.style){if(null==t.defaultStyles)throw new Error;return"string"==typeof t.defaultStyles?x(e,"",h(c,t.defaultStyles,"root.json"),void 0,u):x(e,"",t.defaultStyles,h(c,"root.json"),u)}if(S(t)&&a.defaultStyles)return x(e,"",a.defaultStyles,h(c,"root.json"),u)}function v(e){const o=512;if(N(e)){const t=e?.tileInfo;return null!=t&&(null==t.rows&&(t.rows=o),null==t.cols&&(t.cols=o)),e}const r={xmin:-20037507.067161843,ymin:-20037507.067161843,xmax:20037507.067161843,ymax:20037507.067161843,spatialReference:{wkid:102100,latestWkid:3857}};let l,s=null;if(S(e)){const{bounds:o,vector_layers:r}=e;if(o){const e=y({x:o[0],y:o[1],spatialReference:t(f)}),r=y({x:o[2],y:o[3],spatialReference:t(f)});s={xmin:e.x,ymin:e.y,xmax:r.x,ymax:r.y,spatialReference:t(p)}}r&&r.length>0&&(l={version:8,sprite:"",glyphs:"",sources:{tilejson:{type:"vector",url:e.tilejson}},layers:b(r)})}null===s&&(s=r);let n=78271.51696400007,i=295828763.7957775;const u=[],c=e.hasOwnProperty("maxzoom")&&null!=e.maxzoom?Math.abs(+e.maxzoom):22,a=0,m=0;for(let t=0;t<=c;t++)u.push({level:t,scale:i,resolution:n}),n/=2,i/=2;return{capabilities:"TilesOnly",initialExtent:s,fullExtent:r,minScale:a,maxScale:m,tiles:e.tiles,tileInfo:{rows:o,cols:o,dpi:96,format:"pbf",origin:{x:-20037508.342787,y:20037508.342787},lods:u,spatialReference:t(p)},defaultStyles:l}}function N(e){return e.hasOwnProperty("tileInfo")}function b(e){const t=[];for(const o of e)o.geometry_type?t.push(E(o.geometry_type.toLowerCase(),o,!1)):(t.push(E("polygon",o,!0)),t.push(E("line",o,!0)),t.push(E("circle",o,!0)));return t}function E(e,t,o){const{id:r,minzoom:l,maxzoom:s}=t,n={type:"polygon"===e?"fill":"line"===e?"line":"circle",id:r,source:"tilejson","source-layer":r,minzoom:l,maxzoom:s};switch(e){case"polygon":case"fill":o&&(n.id+="_polygon",n.filter='(["==", "$type", "Polygon"])'),n.paint={"fill-color":"#808080"};break;case"line":o&&(n.id+="_line",n.filter='(["==", "$type", "LineString"])');break;case"circle":case"point":o&&(n.id+="_point",n.filter='(["==", "$type", "Point"])')}return n}export{d as loadMetadata};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/core",
3
- "version": "4.34.0-next.86",
3
+ "version": "4.34.0-next.88",
4
4
  "homepage": "https://js.arcgis.com",
5
5
  "description": "ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API",
6
6
  "keywords": [
@@ -18,9 +18,9 @@
18
18
  ],
19
19
  "license": "SEE LICENSE IN copyright.txt",
20
20
  "dependencies": {
21
- "@arcgis/toolkit": "^4.34.0-next.132",
21
+ "@arcgis/toolkit": "^4.34.0-next.133",
22
22
  "@esri/arcgis-html-sanitizer": "~4.1.0",
23
- "@esri/calcite-components": "^3.3.0-next.95",
23
+ "@esri/calcite-components": "^3.3.0",
24
24
  "@vaadin/grid": "~24.9.0",
25
25
  "@zip.js/zip.js": "~2.8.2",
26
26
  "luxon": "~3.7.2",