@mountaya/elements 0.1.0 → 0.2.0

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 (862) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/README.md +4 -3
  3. package/THIRD-PARTY-NOTICES.txt +1 -1
  4. package/dist/agent/index.cjs +1152 -1905
  5. package/dist/agent/index.cjs.map +1 -1
  6. package/dist/agent/index.d.cts +1152 -1202
  7. package/dist/agent/index.d.ts +1152 -1202
  8. package/dist/agent/index.js +1147 -1903
  9. package/dist/agent/index.js.map +1 -1
  10. package/dist/camera/index.cjs +2470 -3435
  11. package/dist/camera/index.cjs.map +1 -1
  12. package/dist/camera/index.d.cts +716 -744
  13. package/dist/camera/index.d.ts +716 -744
  14. package/dist/camera/index.js +2438 -3323
  15. package/dist/camera/index.js.map +1 -1
  16. package/dist/{units-D9mBrusY.d.cts → chunk-5pTPpv4v.d.cts} +38 -41
  17. package/dist/{units-D9mBrusY.d.ts → chunk-5pTPpv4v.d.ts} +38 -41
  18. package/dist/{order-BLhsGsH8.d.ts → chunk-6JzFMFHh.d.ts} +15 -28
  19. package/dist/chunk-6qyuJVvt.d.ts +513 -0
  20. package/dist/chunk-9fp0lDic.cjs +583 -0
  21. package/dist/chunk-9fp0lDic.cjs.map +1 -0
  22. package/dist/{zones-B05QA8fy.d.ts → chunk-A48H1rDg.d.cts} +2 -4
  23. package/dist/{zones-B05QA8fy.d.cts → chunk-A48H1rDg.d.ts} +2 -4
  24. package/dist/chunk-B-m1AchR.cjs +57 -0
  25. package/dist/chunk-B-m1AchR.cjs.map +1 -0
  26. package/dist/{bundle-xYrrbJTH.d.ts → chunk-B-qFTf04.d.ts} +51 -57
  27. package/dist/chunk-B0YROiZh.d.cts +1475 -0
  28. package/dist/chunk-B14wgOvH.d.cts +68 -0
  29. package/dist/chunk-B19l3j9r.cjs +150 -0
  30. package/dist/chunk-B19l3j9r.cjs.map +1 -0
  31. package/dist/chunk-B2PtjVKg.cjs +86 -0
  32. package/dist/chunk-B2PtjVKg.cjs.map +1 -0
  33. package/dist/chunk-B56Oyb7W.cjs +70 -0
  34. package/dist/chunk-B56Oyb7W.cjs.map +1 -0
  35. package/dist/chunk-B5WGMQwK.cjs +113 -0
  36. package/dist/chunk-B5WGMQwK.cjs.map +1 -0
  37. package/dist/{types-nO2joeRk.d.ts → chunk-B98mKrdu.d.cts} +103 -122
  38. package/dist/{videoOverlay-Dh_D5_Zs.d.ts → chunk-BB0PmqIM.d.cts} +10 -10
  39. package/dist/chunk-BBikve0Z.cjs +269 -0
  40. package/dist/chunk-BBikve0Z.cjs.map +1 -0
  41. package/dist/chunk-BHeXmM0X.js +37 -0
  42. package/dist/chunk-BHeXmM0X.js.map +1 -0
  43. package/dist/chunk-BI8WZLpU.cjs +281 -0
  44. package/dist/chunk-BI8WZLpU.cjs.map +1 -0
  45. package/dist/chunk-BIEc_SkR.cjs +29 -0
  46. package/dist/chunk-BIEc_SkR.cjs.map +1 -0
  47. package/dist/chunk-BJ6L6_W9.cjs +553 -0
  48. package/dist/chunk-BJ6L6_W9.cjs.map +1 -0
  49. package/dist/chunk-BJ91UCbB.js +11 -0
  50. package/dist/chunk-BJ91UCbB.js.map +1 -0
  51. package/dist/chunk-BJEZWTKj.cjs +166 -0
  52. package/dist/chunk-BJEZWTKj.cjs.map +1 -0
  53. package/dist/chunk-BJz54mfg.cjs +10 -0
  54. package/dist/chunk-BJz54mfg.cjs.map +1 -0
  55. package/dist/{sections-CVlc2Inr.d.cts → chunk-BNX5LAfN.d.cts} +289 -330
  56. package/dist/chunk-BP6KgA86.js +35 -0
  57. package/dist/chunk-BP6KgA86.js.map +1 -0
  58. package/dist/{segmentRoute-C5UL_5bp.d.ts → chunk-BRnjQq6K.d.cts} +44 -59
  59. package/dist/chunk-BSiMEwPS.js +46 -0
  60. package/dist/chunk-BSiMEwPS.js.map +1 -0
  61. package/dist/chunk-BTPjDw_y.cjs +16 -0
  62. package/dist/chunk-BTPjDw_y.cjs.map +1 -0
  63. package/dist/chunk-BTUUABGI.js +17 -0
  64. package/dist/chunk-BTUUABGI.js.map +1 -0
  65. package/dist/chunk-BUeL9y7s.cjs +45 -0
  66. package/dist/chunk-BUeL9y7s.cjs.map +1 -0
  67. package/dist/chunk-BWMuCNc9.cjs +172 -0
  68. package/dist/chunk-BWMuCNc9.cjs.map +1 -0
  69. package/dist/chunk-BWjRfhpF.js +126 -0
  70. package/dist/chunk-BWjRfhpF.js.map +1 -0
  71. package/dist/{types-CTQwbSdA.d.cts → chunk-BZ5KyZXI.d.ts} +103 -122
  72. package/dist/chunk-B_4SVmvh.js +94 -0
  73. package/dist/chunk-B_4SVmvh.js.map +1 -0
  74. package/dist/chunk-BcTUuZQ3.js +95 -0
  75. package/dist/chunk-BcTUuZQ3.js.map +1 -0
  76. package/dist/chunk-BdkqSsJe.cjs +140 -0
  77. package/dist/chunk-BdkqSsJe.cjs.map +1 -0
  78. package/dist/chunk-BfktMVmI.js +70 -0
  79. package/dist/chunk-BfktMVmI.js.map +1 -0
  80. package/dist/chunk-BfzQb0EK.cjs +6 -0
  81. package/dist/chunk-BhWfT-22.d.cts +808 -0
  82. package/dist/chunk-BjJcqX5J.cjs +60 -0
  83. package/dist/chunk-BjJcqX5J.cjs.map +1 -0
  84. package/dist/{geodesy-543qXKtI.d.ts → chunk-Bk0L8g5J.d.cts} +3 -4
  85. package/dist/{geodesy-543qXKtI.d.cts → chunk-Bk0L8g5J.d.ts} +3 -4
  86. package/dist/chunk-Bl4_uVa6.cjs +11 -0
  87. package/dist/chunk-Bl4_uVa6.cjs.map +1 -0
  88. package/dist/chunk-BlKF4lrp.js +43 -0
  89. package/dist/chunk-BlKF4lrp.js.map +1 -0
  90. package/dist/chunk-Bm1FieGR.js +4 -0
  91. package/dist/chunk-Bm1FieGR.js.map +1 -0
  92. package/dist/chunk-Bn6ZbxkS.cjs +27 -0
  93. package/dist/chunk-BpN3hr6a.cjs +541 -0
  94. package/dist/chunk-BpN3hr6a.cjs.map +1 -0
  95. package/dist/{order-BZkUwMou.d.cts → chunk-Bq_WHTfd.d.cts} +15 -28
  96. package/dist/chunk-Bqt4LBBz.cjs +648 -0
  97. package/dist/chunk-Bqt4LBBz.cjs.map +1 -0
  98. package/dist/{language-CEWQ5uYw.d.cts → chunk-Bqt97zwf.d.cts} +3 -18
  99. package/dist/{language-CEWQ5uYw.d.ts → chunk-Bqt97zwf.d.ts} +3 -18
  100. package/dist/chunk-BsBiN4w6.d.cts +245 -0
  101. package/dist/chunk-BvTpOUoC.cjs +207 -0
  102. package/dist/chunk-BvTpOUoC.cjs.map +1 -0
  103. package/dist/chunk-BwK6Hl3q.cjs +446 -0
  104. package/dist/chunk-BwK6Hl3q.cjs.map +1 -0
  105. package/dist/{elevationTiles-pmsb9wnU.d.cts → chunk-BxDQZDXR.d.cts} +26 -27
  106. package/dist/{elevationTiles-pmsb9wnU.d.ts → chunk-BxDQZDXR.d.ts} +26 -27
  107. package/dist/chunk-BxUio8kX.js +20 -0
  108. package/dist/chunk-BxUio8kX.js.map +1 -0
  109. package/dist/chunk-BxaocpFi.d.cts +1 -0
  110. package/dist/chunk-Bywi0K1N.js +36 -0
  111. package/dist/chunk-Bywi0K1N.js.map +1 -0
  112. package/dist/chunk-C-IlmkDl.js +59 -0
  113. package/dist/chunk-C-IlmkDl.js.map +1 -0
  114. package/dist/chunk-C5PtVewq.d.ts +389 -0
  115. package/dist/chunk-C5dpC7mQ.js +19 -0
  116. package/dist/chunk-C5dpC7mQ.js.map +1 -0
  117. package/dist/chunk-C5q1sgSa.js +46 -0
  118. package/dist/chunk-C5q1sgSa.js.map +1 -0
  119. package/dist/chunk-C6fU9G5I.cjs +221 -0
  120. package/dist/chunk-C6fU9G5I.cjs.map +1 -0
  121. package/dist/chunk-C71dpWUK.js +5 -0
  122. package/dist/chunk-C71dpWUK.js.map +1 -0
  123. package/dist/chunk-C82N1gQX.d.ts +1831 -0
  124. package/dist/chunk-C8HdaHpu.js +118 -0
  125. package/dist/chunk-C8HdaHpu.js.map +1 -0
  126. package/dist/chunk-C8ZGryck.js +236 -0
  127. package/dist/chunk-C8ZGryck.js.map +1 -0
  128. package/dist/chunk-C95NG0oD.cjs +43 -0
  129. package/dist/chunk-C95NG0oD.cjs.map +1 -0
  130. package/dist/chunk-C9aR8DXb.js +9 -0
  131. package/dist/chunk-C9aR8DXb.js.map +1 -0
  132. package/dist/{camera-C48Ykaxv.d.ts → chunk-CAUZnoCs.d.ts} +135 -159
  133. package/dist/chunk-CBXWWuM9.cjs +82 -0
  134. package/dist/chunk-CBXWWuM9.cjs.map +1 -0
  135. package/dist/chunk-CC_Kquu7.d.cts +125 -0
  136. package/dist/chunk-CC_Kquu7.d.ts +125 -0
  137. package/dist/chunk-CCp85vXg.cjs +60 -0
  138. package/dist/chunk-CCp85vXg.cjs.map +1 -0
  139. package/dist/chunk-CEcB1_uK.js +39 -0
  140. package/dist/chunk-CEcB1_uK.js.map +1 -0
  141. package/dist/{bundle-Je5zsRFg.d.cts → chunk-CFIo021l.d.cts} +51 -57
  142. package/dist/chunk-CH_IZoJE.js +33 -0
  143. package/dist/chunk-CH_IZoJE.js.map +1 -0
  144. package/dist/chunk-CHrasH_g.cjs +25 -0
  145. package/dist/chunk-CHrasH_g.cjs.map +1 -0
  146. package/dist/chunk-CJVoSaAE.cjs +3 -0
  147. package/dist/chunk-CJp8nGcb.js +96 -0
  148. package/dist/chunk-CJp8nGcb.js.map +1 -0
  149. package/dist/chunk-CJwUtkOt.js +112 -0
  150. package/dist/chunk-CJwUtkOt.js.map +1 -0
  151. package/dist/chunk-CKhCOVIf.d.cts +751 -0
  152. package/dist/chunk-CKiVSRYg.js +50 -0
  153. package/dist/chunk-CKiVSRYg.js.map +1 -0
  154. package/dist/chunk-CKtd19eD.cjs +59 -0
  155. package/dist/chunk-CKtd19eD.cjs.map +1 -0
  156. package/dist/chunk-CL92KE3j.d.ts +3188 -0
  157. package/dist/chunk-CLqUlkAe.js +54 -0
  158. package/dist/chunk-CLqUlkAe.js.map +1 -0
  159. package/dist/chunk-CMG5OV0q.cjs +4741 -0
  160. package/dist/chunk-CMG5OV0q.cjs.map +1 -0
  161. package/dist/chunk-CN_TKSgm.js +10 -0
  162. package/dist/chunk-CN_TKSgm.js.map +1 -0
  163. package/dist/chunk-CNe6MtqV.cjs +29 -0
  164. package/dist/chunk-CNe6MtqV.cjs.map +1 -0
  165. package/dist/chunk-COQkDTC5.js +83 -0
  166. package/dist/chunk-COQkDTC5.js.map +1 -0
  167. package/dist/chunk-CPBl6K4M.cjs +168 -0
  168. package/dist/chunk-CPBl6K4M.cjs.map +1 -0
  169. package/dist/chunk-CPx0ZYFB.d.ts +3 -0
  170. package/dist/chunk-CQQhcP_C.d.ts +197 -0
  171. package/dist/chunk-CTNoajFh.d.cts +389 -0
  172. package/dist/chunk-CTd-qgJc.cjs +384 -0
  173. package/dist/chunk-CTd-qgJc.cjs.map +1 -0
  174. package/dist/chunk-CW80YYtU.cjs +1056 -0
  175. package/dist/chunk-CW80YYtU.cjs.map +1 -0
  176. package/dist/{searchLimits-j99-NTXR.d.ts → chunk-CWpqBgkF.d.cts} +2 -2
  177. package/dist/{searchLimits-j99-NTXR.d.cts → chunk-CWpqBgkF.d.ts} +2 -2
  178. package/dist/chunk-CXjRArgy.d.ts +3 -0
  179. package/dist/chunk-CXonfH3-.cjs +14 -0
  180. package/dist/chunk-CXonfH3-.cjs.map +1 -0
  181. package/dist/chunk-CYcouGXN.d.ts +825 -0
  182. package/dist/chunk-CZDAzEBw.cjs +1621 -0
  183. package/dist/chunk-CZDAzEBw.cjs.map +1 -0
  184. package/dist/{amenities-B3-qAjxu.d.cts → chunk-C_fQFr70.d.cts} +40 -41
  185. package/dist/{amenities-B3-qAjxu.d.ts → chunk-C_fQFr70.d.ts} +40 -41
  186. package/dist/chunk-CbOtHnnB.cjs +359 -0
  187. package/dist/chunk-CbOtHnnB.cjs.map +1 -0
  188. package/dist/chunk-CdA6ZMGk.d.cts +825 -0
  189. package/dist/chunk-Ce1_thm7.js +146 -0
  190. package/dist/chunk-Ce1_thm7.js.map +1 -0
  191. package/dist/chunk-CeD8Hw0j.d.cts +3188 -0
  192. package/dist/{camera-BrFLU1DH.d.cts → chunk-CeiTuMyt.d.cts} +135 -159
  193. package/dist/chunk-Ch1OLzLi.js +1 -0
  194. package/dist/chunk-Cizu_j1N.cjs +87 -0
  195. package/dist/chunk-Cizu_j1N.cjs.map +1 -0
  196. package/dist/chunk-CjDe9z6A.d.cts +427 -0
  197. package/dist/chunk-Cl1etdlu.js +63 -0
  198. package/dist/chunk-Cl1etdlu.js.map +1 -0
  199. package/dist/chunk-CmoVJDoz.js +4 -0
  200. package/dist/chunk-CmoVJDoz.js.map +1 -0
  201. package/dist/chunk-CnLucxjG.cjs +197 -0
  202. package/dist/chunk-CnLucxjG.cjs.map +1 -0
  203. package/dist/chunk-CsWjBmdi.cjs +56 -0
  204. package/dist/chunk-CsWjBmdi.cjs.map +1 -0
  205. package/dist/chunk-CuseO5MZ.d.cts +3 -0
  206. package/dist/chunk-CvMHibbA.d.ts +427 -0
  207. package/dist/chunk-CwDeiN5U.js +870 -0
  208. package/dist/chunk-CwDeiN5U.js.map +1 -0
  209. package/dist/chunk-Cwdmx4tG.js +1 -0
  210. package/dist/{geolocation-DDkQdWMN.d.cts → chunk-D-4MxHTt.d.cts} +33 -34
  211. package/dist/{geolocation-DDkQdWMN.d.ts → chunk-D-4MxHTt.d.ts} +33 -34
  212. package/dist/chunk-D0LF-99V.js +1093 -0
  213. package/dist/chunk-D0LF-99V.js.map +1 -0
  214. package/dist/chunk-D1fe-0c_.js +367 -0
  215. package/dist/chunk-D1fe-0c_.js.map +1 -0
  216. package/dist/chunk-D21fEI6A.d.ts +1926 -0
  217. package/dist/chunk-D39gAxya.cjs +89 -0
  218. package/dist/chunk-D39gAxya.cjs.map +1 -0
  219. package/dist/chunk-D6KdIW5e.cjs +228 -0
  220. package/dist/chunk-D6KdIW5e.cjs.map +1 -0
  221. package/dist/chunk-D6qHYbgW.d.cts +36 -0
  222. package/dist/{videoOverlay-Dh_D5_Zs.d.cts → chunk-D89E-w70.d.ts} +10 -10
  223. package/dist/chunk-D8bdTysL.js +552 -0
  224. package/dist/chunk-D8bdTysL.js.map +1 -0
  225. package/dist/chunk-D96QJT24.cjs +109 -0
  226. package/dist/chunk-D96QJT24.cjs.map +1 -0
  227. package/dist/chunk-DAmkQl-i.js +119 -0
  228. package/dist/chunk-DAmkQl-i.js.map +1 -0
  229. package/dist/chunk-DEfsb2lc.cjs +10 -0
  230. package/dist/chunk-DEfsb2lc.cjs.map +1 -0
  231. package/dist/chunk-DIFjT5-V.d.cts +66 -0
  232. package/dist/{sections-CmtaduLc.d.ts → chunk-DJpUw8TN.d.ts} +289 -330
  233. package/dist/chunk-DK6lm2IZ.cjs +11 -0
  234. package/dist/chunk-DK6lm2IZ.cjs.map +1 -0
  235. package/dist/chunk-DKqgr31j.cjs +61 -0
  236. package/dist/chunk-DKqgr31j.cjs.map +1 -0
  237. package/dist/chunk-DLZ0QYm9.js +37 -0
  238. package/dist/chunk-DLZ0QYm9.js.map +1 -0
  239. package/dist/chunk-DLjS0uaC.js +4 -0
  240. package/dist/chunk-DLjS0uaC.js.map +1 -0
  241. package/dist/chunk-DMokwmOV.cjs +49 -0
  242. package/dist/chunk-DMokwmOV.cjs.map +1 -0
  243. package/dist/chunk-DMvWgBZL.d.cts +1831 -0
  244. package/dist/chunk-DNfGfIF3.js +31 -0
  245. package/dist/chunk-DNfGfIF3.js.map +1 -0
  246. package/dist/chunk-DQbSRe8D.d.ts +245 -0
  247. package/dist/chunk-DSGkP8_y.js +45 -0
  248. package/dist/chunk-DSGkP8_y.js.map +1 -0
  249. package/dist/chunk-DTctvfSd.d.cts +197 -0
  250. package/dist/chunk-DWe7igyw.cjs +206 -0
  251. package/dist/chunk-DWe7igyw.cjs.map +1 -0
  252. package/dist/chunk-DWsMP5JR.d.ts +68 -0
  253. package/dist/{provider-DM71XnLX.d.cts → chunk-DWsm3HIW.d.cts} +37 -38
  254. package/dist/{provider-DM71XnLX.d.ts → chunk-DWsm3HIW.d.ts} +37 -38
  255. package/dist/chunk-DXABHjLa.cjs +3 -0
  256. package/dist/chunk-D_BeqSbc.cjs +42 -0
  257. package/dist/chunk-D_BeqSbc.cjs.map +1 -0
  258. package/dist/chunk-D_svQNdW.d.ts +66 -0
  259. package/dist/chunk-Dav4xWrp.js +330 -0
  260. package/dist/chunk-Dav4xWrp.js.map +1 -0
  261. package/dist/chunk-DbCPhepL.js +293 -0
  262. package/dist/chunk-DbCPhepL.js.map +1 -0
  263. package/dist/chunk-DcrTy-y2.cjs +43 -0
  264. package/dist/chunk-DcrTy-y2.cjs.map +1 -0
  265. package/dist/chunk-Ddv484ld.js +487 -0
  266. package/dist/chunk-Ddv484ld.js.map +1 -0
  267. package/dist/chunk-De0bjnhY.cjs +88 -0
  268. package/dist/chunk-De0bjnhY.cjs.map +1 -0
  269. package/dist/chunk-De2FmNPu.cjs +32 -0
  270. package/dist/chunk-De2FmNPu.cjs.map +1 -0
  271. package/dist/{segmentRoute-CIo6dR8Y.d.cts → chunk-DeSjQXiI.d.ts} +44 -59
  272. package/dist/chunk-Den0Ta6C.js +132 -0
  273. package/dist/chunk-Den0Ta6C.js.map +1 -0
  274. package/dist/chunk-DiDKEeEa.js +8 -0
  275. package/dist/chunk-DiDKEeEa.js.map +1 -0
  276. package/dist/chunk-Dj60k5PU.js +197 -0
  277. package/dist/chunk-Dj60k5PU.js.map +1 -0
  278. package/dist/chunk-DjnYQBCN.js +4705 -0
  279. package/dist/chunk-DjnYQBCN.js.map +1 -0
  280. package/dist/chunk-Dk9VKvyq.d.ts +1 -0
  281. package/dist/chunk-Dor1ERI9.cjs +85 -0
  282. package/dist/chunk-Dor1ERI9.cjs.map +1 -0
  283. package/dist/chunk-DpMouOoH.js +451 -0
  284. package/dist/chunk-DpMouOoH.js.map +1 -0
  285. package/dist/chunk-DposgdNL.cjs +52 -0
  286. package/dist/chunk-DposgdNL.cjs.map +1 -0
  287. package/dist/chunk-DqLTG_5Q.d.cts +3 -0
  288. package/dist/{roadAccess-D_rOE4xW.d.cts → chunk-Dr5MCIpS.d.cts} +5 -28
  289. package/dist/{roadAccess-D_rOE4xW.d.ts → chunk-Dr5MCIpS.d.ts} +5 -28
  290. package/dist/chunk-DrudttCC.cjs +4 -0
  291. package/dist/chunk-DsDYVJQC.js +173 -0
  292. package/dist/chunk-DsDYVJQC.js.map +1 -0
  293. package/dist/chunk-Dw8ur6FJ.js +27 -0
  294. package/dist/chunk-Dw8ur6FJ.js.map +1 -0
  295. package/dist/chunk-DwG6M_0v.js +64 -0
  296. package/dist/chunk-DwG6M_0v.js.map +1 -0
  297. package/dist/chunk-Dy9a5ibO.js +284 -0
  298. package/dist/chunk-Dy9a5ibO.js.map +1 -0
  299. package/dist/chunk-DyayZlQJ.js +157 -0
  300. package/dist/chunk-DyayZlQJ.js.map +1 -0
  301. package/dist/chunk-DyhJZC2i.js +126 -0
  302. package/dist/chunk-DyhJZC2i.js.map +1 -0
  303. package/dist/chunk-F9zBzmmG.cjs +45 -0
  304. package/dist/chunk-F9zBzmmG.cjs.map +1 -0
  305. package/dist/chunk-FyCYofv2.js +116 -0
  306. package/dist/chunk-FyCYofv2.js.map +1 -0
  307. package/dist/chunk-GHJRjAk2.js +1 -0
  308. package/dist/chunk-H14isiSf.d.ts +751 -0
  309. package/dist/chunk-HIJzXoN4.js +7 -0
  310. package/dist/chunk-HIJzXoN4.js.map +1 -0
  311. package/dist/chunk-Id_8kRtu.d.ts +36 -0
  312. package/dist/chunk-KN60yxBQ.js +5 -0
  313. package/dist/chunk-KN60yxBQ.js.map +1 -0
  314. package/dist/chunk-NM5yg6bh.cjs +82 -0
  315. package/dist/chunk-NM5yg6bh.cjs.map +1 -0
  316. package/dist/chunk-OXr3zJfM.cjs +119 -0
  317. package/dist/chunk-OXr3zJfM.cjs.map +1 -0
  318. package/dist/chunk-QGqgNC4z.d.ts +928 -0
  319. package/dist/chunk-QJBtJrZ0.js +36 -0
  320. package/dist/chunk-QJBtJrZ0.js.map +1 -0
  321. package/dist/{routeProfile-BsSUABXv.d.cts → chunk-QKWhxfPv.d.cts} +196 -45
  322. package/dist/{routeProfile-BKfSfxx6.d.ts → chunk-QKWhxfPv.d.ts} +196 -45
  323. package/dist/chunk-QXW7b4Ev.d.cts +410 -0
  324. package/dist/chunk-RHZrxUrM.cjs +39 -0
  325. package/dist/chunk-RHZrxUrM.cjs.map +1 -0
  326. package/dist/chunk-RTxe2i66.js +91 -0
  327. package/dist/chunk-RTxe2i66.js.map +1 -0
  328. package/dist/chunk-RrKkJb6P.js +16 -0
  329. package/dist/chunk-RrKkJb6P.js.map +1 -0
  330. package/dist/chunk-VOJqpcnM.cjs +181 -0
  331. package/dist/chunk-VOJqpcnM.cjs.map +1 -0
  332. package/dist/chunk-VljGTrid.js +1 -0
  333. package/dist/chunk-X3UVwUEK.d.cts +513 -0
  334. package/dist/chunk-X9K2WChn.cjs +28 -0
  335. package/dist/chunk-X9K2WChn.cjs.map +1 -0
  336. package/dist/chunk-YrtOx6oy.js +251 -0
  337. package/dist/chunk-YrtOx6oy.js.map +1 -0
  338. package/dist/chunk-bY7ySujI.d.cts +928 -0
  339. package/dist/chunk-bYf1sBz5.d.cts +11 -0
  340. package/dist/chunk-bYf1sBz5.d.ts +11 -0
  341. package/dist/chunk-blfknWoM.d.cts +1926 -0
  342. package/dist/chunk-blqsohAb.js +113 -0
  343. package/dist/chunk-blqsohAb.js.map +1 -0
  344. package/dist/chunk-cDMCjodI.cjs +58 -0
  345. package/dist/chunk-cDMCjodI.cjs.map +1 -0
  346. package/dist/chunk-cWjE3qd6.cjs +10 -0
  347. package/dist/chunk-cWjE3qd6.cjs.map +1 -0
  348. package/dist/chunk-dfOgV3fu.js +26 -0
  349. package/dist/chunk-dfOgV3fu.js.map +1 -0
  350. package/dist/chunk-f9cTwUX1.cjs +125 -0
  351. package/dist/chunk-f9cTwUX1.cjs.map +1 -0
  352. package/dist/chunk-fHVYEZs4.cjs +28 -0
  353. package/dist/chunk-fHVYEZs4.cjs.map +1 -0
  354. package/dist/chunk-fWRUMgRI.js +22 -0
  355. package/dist/chunk-fWRUMgRI.js.map +1 -0
  356. package/dist/{types-BEv8V_8V.d.cts → chunk-fozLXfHY.d.cts} +8 -8
  357. package/dist/{types-BEv8V_8V.d.ts → chunk-fozLXfHY.d.ts} +8 -8
  358. package/dist/chunk-gWmB1l3A.cjs +3122 -0
  359. package/dist/chunk-gWmB1l3A.cjs.map +1 -0
  360. package/dist/chunk-gbj2R-_w.js +58 -0
  361. package/dist/chunk-gbj2R-_w.js.map +1 -0
  362. package/dist/chunk-iIWxsAXd.js +59 -0
  363. package/dist/chunk-iIWxsAXd.js.map +1 -0
  364. package/dist/chunk-lItIuOIS.cjs +137 -0
  365. package/dist/chunk-lItIuOIS.cjs.map +1 -0
  366. package/dist/chunk-m6Rh4PCe.cjs +798 -0
  367. package/dist/chunk-m6Rh4PCe.cjs.map +1 -0
  368. package/dist/chunk-o3IRANDf.cjs +99 -0
  369. package/dist/chunk-o3IRANDf.cjs.map +1 -0
  370. package/dist/chunk-obUcg3Sk.d.ts +808 -0
  371. package/dist/chunk-ohsf-6Rn.js +600 -0
  372. package/dist/chunk-ohsf-6Rn.js.map +1 -0
  373. package/dist/chunk-pBleU6Nv.js +3061 -0
  374. package/dist/chunk-pBleU6Nv.js.map +1 -0
  375. package/dist/chunk-px4e99cy.js +71 -0
  376. package/dist/chunk-px4e99cy.js.map +1 -0
  377. package/dist/chunk-qwYDLeXc.cjs +99 -0
  378. package/dist/chunk-qwYDLeXc.cjs.map +1 -0
  379. package/dist/chunk-rF_859Qk.cjs +101 -0
  380. package/dist/chunk-rF_859Qk.cjs.map +1 -0
  381. package/dist/chunk-rLJkqJ5j.d.ts +1475 -0
  382. package/dist/chunk-twQItIRg.cjs +338 -0
  383. package/dist/chunk-twQItIRg.cjs.map +1 -0
  384. package/dist/chunk-vnPrMVjY.js +10 -0
  385. package/dist/chunk-vnPrMVjY.js.map +1 -0
  386. package/dist/chunk-ws3bVwaS.d.ts +410 -0
  387. package/dist/chunk-xh3UkuVs.cjs +246 -0
  388. package/dist/chunk-xh3UkuVs.cjs.map +1 -0
  389. package/dist/chunk-yMzRr26E.js +153 -0
  390. package/dist/chunk-yMzRr26E.js.map +1 -0
  391. package/dist/collab/index.cjs +802 -1254
  392. package/dist/collab/index.cjs.map +1 -1
  393. package/dist/collab/index.d.cts +518 -544
  394. package/dist/collab/index.d.ts +518 -544
  395. package/dist/collab/index.js +797 -1252
  396. package/dist/collab/index.js.map +1 -1
  397. package/dist/data/index.cjs +39 -132
  398. package/dist/data/index.d.cts +6 -468
  399. package/dist/data/index.d.ts +6 -468
  400. package/dist/data/index.js +7 -15
  401. package/dist/editor/index.cjs +2631 -4424
  402. package/dist/editor/index.cjs.map +1 -1
  403. package/dist/editor/index.d.cts +10 -59
  404. package/dist/editor/index.d.ts +10 -59
  405. package/dist/editor/index.js +2619 -4403
  406. package/dist/editor/index.js.map +1 -1
  407. package/dist/errors/index.cjs +11 -28
  408. package/dist/errors/index.d.cts +2 -125
  409. package/dist/errors/index.d.ts +2 -125
  410. package/dist/errors/index.js +1 -3
  411. package/dist/geo/index.cjs +68 -232
  412. package/dist/geo/index.d.cts +6 -821
  413. package/dist/geo/index.d.ts +6 -821
  414. package/dist/geo/index.js +11 -15
  415. package/dist/i18n/fr/index.cjs +329 -334
  416. package/dist/i18n/fr/index.cjs.map +1 -1
  417. package/dist/i18n/fr/index.d.cts +3 -10
  418. package/dist/i18n/fr/index.d.ts +3 -10
  419. package/dist/i18n/fr/index.js +324 -332
  420. package/dist/i18n/fr/index.js.map +1 -1
  421. package/dist/i18n/index.cjs +434 -447
  422. package/dist/i18n/index.cjs.map +1 -1
  423. package/dist/i18n/index.d.cts +152 -111
  424. package/dist/i18n/index.d.ts +152 -111
  425. package/dist/i18n/index.js +420 -420
  426. package/dist/i18n/index.js.map +1 -1
  427. package/dist/icons/index.cjs +37 -116
  428. package/dist/icons/index.d.cts +4 -457
  429. package/dist/icons/index.d.ts +4 -457
  430. package/dist/icons/index.js +8 -11
  431. package/dist/index.cjs +515 -1867
  432. package/dist/index.cjs.map +1 -1
  433. package/dist/index.d.cts +44 -121
  434. package/dist/index.d.ts +44 -121
  435. package/dist/index.js +52 -65
  436. package/dist/index.js.map +1 -1
  437. package/dist/layers/index.cjs +83 -318
  438. package/dist/layers/index.d.cts +3 -1555
  439. package/dist/layers/index.d.ts +3 -1555
  440. package/dist/layers/index.js +5 -17
  441. package/dist/map-client/index.cjs +5 -4
  442. package/dist/map-client/index.d.cts +6 -1856
  443. package/dist/map-client/index.d.ts +6 -1856
  444. package/dist/map-client/index.js +0 -3
  445. package/dist/maplibre-worker.mjs +4 -4
  446. package/dist/navigation/index.cjs +584 -671
  447. package/dist/navigation/index.cjs.map +1 -1
  448. package/dist/navigation/index.d.cts +191 -272
  449. package/dist/navigation/index.d.ts +191 -272
  450. package/dist/navigation/index.js +579 -669
  451. package/dist/navigation/index.js.map +1 -1
  452. package/dist/profile/index.cjs +177 -675
  453. package/dist/profile/index.d.cts +8 -2086
  454. package/dist/profile/index.d.ts +8 -2086
  455. package/dist/profile/index.js +10 -18
  456. package/dist/seams/index.cjs +15 -39
  457. package/dist/seams/index.d.cts +4 -254
  458. package/dist/seams/index.d.ts +4 -254
  459. package/dist/seams/index.js +4 -6
  460. package/dist/search/index.cjs +39 -147
  461. package/dist/search/index.d.cts +6 -888
  462. package/dist/search/index.d.ts +6 -888
  463. package/dist/search/index.js +3 -14
  464. package/dist/style/index.cjs +34 -116
  465. package/dist/style/index.d.cts +5 -538
  466. package/dist/style/index.d.ts +5 -538
  467. package/dist/style/index.js +5 -11
  468. package/dist/testing/index.cjs +432 -617
  469. package/dist/testing/index.cjs.map +1 -1
  470. package/dist/testing/index.d.cts +61 -109
  471. package/dist/testing/index.d.ts +61 -109
  472. package/dist/testing/index.js +427 -615
  473. package/dist/testing/index.js.map +1 -1
  474. package/dist/timezone/index.cjs +1946 -752
  475. package/dist/timezone/index.cjs.map +1 -1
  476. package/dist/timezone/index.d.cts +4 -29
  477. package/dist/timezone/index.d.ts +4 -29
  478. package/dist/timezone/index.js +1941 -750
  479. package/dist/timezone/index.js.map +1 -1
  480. package/dist/units/index.cjs +29 -99
  481. package/dist/units/index.d.cts +3 -75
  482. package/dist/units/index.d.ts +3 -75
  483. package/dist/units/index.js +3 -6
  484. package/dist/video/index.cjs +1684 -2169
  485. package/dist/video/index.cjs.map +1 -1
  486. package/dist/video/index.d.cts +386 -413
  487. package/dist/video/index.d.ts +386 -413
  488. package/dist/video/index.js +1678 -2162
  489. package/dist/video/index.js.map +1 -1
  490. package/dist/view/index.cjs +6 -42
  491. package/dist/view/index.d.cts +3 -836
  492. package/dist/view/index.d.ts +3 -836
  493. package/dist/view/index.js +1 -34
  494. package/package.json +12 -12
  495. package/src/auth/rules/clientHeader.ts +1 -1
  496. package/src/camera/rules/modes.ts +38 -42
  497. package/src/camera/rules/routeContent.ts +1 -0
  498. package/src/collab/index.ts +1 -5
  499. package/src/compose/engines/mountayaMap.ts +16 -42
  500. package/src/compose/rules/developmentWarnings.ts +4 -3
  501. package/src/compose/rules/fitBox.ts +67 -0
  502. package/src/compose/rules/maplibreWorkerVersion.gen.ts +1 -1
  503. package/src/compose/rules/maxBounds.ts +5 -5
  504. package/src/compose/rules/types.ts +4 -11
  505. package/src/compose/rules/workerUrl.ts +41 -6
  506. package/src/editing/rules/engine.ts +4 -2
  507. package/src/editor/engines/viewClient.ts +8 -0
  508. package/src/editor/rules/contract.ts +1 -6
  509. package/src/errors/rules/errors.ts +1 -0
  510. package/src/geo/index.ts +1 -6
  511. package/src/i18n/index.ts +1 -0
  512. package/src/i18n/rules/dates.ts +165 -0
  513. package/src/index.ts +5 -24
  514. package/src/map-client/rules/mapClient.ts +4 -2
  515. package/src/profile/rules/scale.ts +1 -5
  516. package/src/profile/rules/waypointCard.ts +8 -11
  517. package/src/search/index.ts +3 -18
  518. package/src/video/index.ts +1 -1
  519. package/src/video/profileOverlay/rules/contract.ts +1 -3
  520. package/src/video/rules/videoEncoder.ts +1 -1
  521. package/dist/accentColor-GNKBD2CW.js +0 -4
  522. package/dist/accentColor-GNKBD2CW.js.map +0 -1
  523. package/dist/accentColor-VX2JSMGE.cjs +0 -17
  524. package/dist/accentColor-VX2JSMGE.cjs.map +0 -1
  525. package/dist/chunk-23PFRRB6.js +0 -3
  526. package/dist/chunk-23PFRRB6.js.map +0 -1
  527. package/dist/chunk-2GI5SAH2.js +0 -71
  528. package/dist/chunk-2GI5SAH2.js.map +0 -1
  529. package/dist/chunk-2MQK6A74.js +0 -39
  530. package/dist/chunk-2MQK6A74.js.map +0 -1
  531. package/dist/chunk-2RE7R4LD.js +0 -73
  532. package/dist/chunk-2RE7R4LD.js.map +0 -1
  533. package/dist/chunk-3JZQKN4O.js +0 -6
  534. package/dist/chunk-3JZQKN4O.js.map +0 -1
  535. package/dist/chunk-3NDXVUUI.js +0 -50
  536. package/dist/chunk-3NDXVUUI.js.map +0 -1
  537. package/dist/chunk-3R4GFTUM.cjs +0 -59
  538. package/dist/chunk-3R4GFTUM.cjs.map +0 -1
  539. package/dist/chunk-3RVUQ6JN.cjs +0 -22
  540. package/dist/chunk-3RVUQ6JN.cjs.map +0 -1
  541. package/dist/chunk-4F6BJMJC.cjs +0 -49
  542. package/dist/chunk-4F6BJMJC.cjs.map +0 -1
  543. package/dist/chunk-4NWQD4BX.js +0 -132
  544. package/dist/chunk-4NWQD4BX.js.map +0 -1
  545. package/dist/chunk-5K2MH3R6.js +0 -10
  546. package/dist/chunk-5K2MH3R6.js.map +0 -1
  547. package/dist/chunk-6ACRNQQQ.cjs +0 -8
  548. package/dist/chunk-6ACRNQQQ.cjs.map +0 -1
  549. package/dist/chunk-6D26E3IA.js +0 -66
  550. package/dist/chunk-6D26E3IA.js.map +0 -1
  551. package/dist/chunk-6ESAW35P.cjs +0 -80
  552. package/dist/chunk-6ESAW35P.cjs.map +0 -1
  553. package/dist/chunk-6LIW2A5M.cjs +0 -1176
  554. package/dist/chunk-6LIW2A5M.cjs.map +0 -1
  555. package/dist/chunk-6OTTWVCA.js +0 -57
  556. package/dist/chunk-6OTTWVCA.js.map +0 -1
  557. package/dist/chunk-6VROJ4UG.js +0 -862
  558. package/dist/chunk-6VROJ4UG.js.map +0 -1
  559. package/dist/chunk-6Y7FTGO4.js +0 -23
  560. package/dist/chunk-6Y7FTGO4.js.map +0 -1
  561. package/dist/chunk-75I4CG64.js +0 -104
  562. package/dist/chunk-75I4CG64.js.map +0 -1
  563. package/dist/chunk-7CUBXHAH.cjs +0 -14
  564. package/dist/chunk-7CUBXHAH.cjs.map +0 -1
  565. package/dist/chunk-7GTCURVY.js +0 -52
  566. package/dist/chunk-7GTCURVY.js.map +0 -1
  567. package/dist/chunk-7IWOL6AM.cjs +0 -100
  568. package/dist/chunk-7IWOL6AM.cjs.map +0 -1
  569. package/dist/chunk-7QN7M667.cjs +0 -151
  570. package/dist/chunk-7QN7M667.cjs.map +0 -1
  571. package/dist/chunk-A6KQDKLM.cjs +0 -1197
  572. package/dist/chunk-A6KQDKLM.cjs.map +0 -1
  573. package/dist/chunk-A77EA67G.js +0 -354
  574. package/dist/chunk-A77EA67G.js.map +0 -1
  575. package/dist/chunk-AFKOABJ4.cjs +0 -7194
  576. package/dist/chunk-AFKOABJ4.cjs.map +0 -1
  577. package/dist/chunk-AG6JV5Z2.cjs +0 -183
  578. package/dist/chunk-AG6JV5Z2.cjs.map +0 -1
  579. package/dist/chunk-APBK7NMS.js +0 -30
  580. package/dist/chunk-APBK7NMS.js.map +0 -1
  581. package/dist/chunk-AWO5YA7A.cjs +0 -33
  582. package/dist/chunk-AWO5YA7A.cjs.map +0 -1
  583. package/dist/chunk-AZATU6QW.js +0 -108
  584. package/dist/chunk-AZATU6QW.js.map +0 -1
  585. package/dist/chunk-BD2U3WST.cjs +0 -623
  586. package/dist/chunk-BD2U3WST.cjs.map +0 -1
  587. package/dist/chunk-BHBEOU6L.cjs +0 -65
  588. package/dist/chunk-BHBEOU6L.cjs.map +0 -1
  589. package/dist/chunk-CNOSNYNE.js +0 -8
  590. package/dist/chunk-CNOSNYNE.js.map +0 -1
  591. package/dist/chunk-CW3EFR4O.js +0 -12
  592. package/dist/chunk-CW3EFR4O.js.map +0 -1
  593. package/dist/chunk-DASVRNBK.js +0 -7187
  594. package/dist/chunk-DASVRNBK.js.map +0 -1
  595. package/dist/chunk-DJ6LCKYP.js +0 -42
  596. package/dist/chunk-DJ6LCKYP.js.map +0 -1
  597. package/dist/chunk-E5FHQAIO.cjs +0 -45
  598. package/dist/chunk-E5FHQAIO.cjs.map +0 -1
  599. package/dist/chunk-EOML5OTY.cjs +0 -360
  600. package/dist/chunk-EOML5OTY.cjs.map +0 -1
  601. package/dist/chunk-EP5CASHL.js +0 -613
  602. package/dist/chunk-EP5CASHL.js.map +0 -1
  603. package/dist/chunk-EP5OEEVZ.cjs +0 -14
  604. package/dist/chunk-EP5OEEVZ.cjs.map +0 -1
  605. package/dist/chunk-EUXI3FGQ.js +0 -150
  606. package/dist/chunk-EUXI3FGQ.js.map +0 -1
  607. package/dist/chunk-EWFSHCOS.js +0 -40
  608. package/dist/chunk-EWFSHCOS.js.map +0 -1
  609. package/dist/chunk-EX2C5K2T.cjs +0 -25
  610. package/dist/chunk-EX2C5K2T.cjs.map +0 -1
  611. package/dist/chunk-FEXWDQIZ.cjs +0 -8
  612. package/dist/chunk-FEXWDQIZ.cjs.map +0 -1
  613. package/dist/chunk-FEYBFY7H.cjs +0 -358
  614. package/dist/chunk-FEYBFY7H.cjs.map +0 -1
  615. package/dist/chunk-FRGAV6N6.cjs +0 -34
  616. package/dist/chunk-FRGAV6N6.cjs.map +0 -1
  617. package/dist/chunk-G5DHP5VF.js +0 -6
  618. package/dist/chunk-G5DHP5VF.js.map +0 -1
  619. package/dist/chunk-G5W2UHV2.js +0 -99
  620. package/dist/chunk-G5W2UHV2.js.map +0 -1
  621. package/dist/chunk-G7OP7O2C.cjs +0 -39
  622. package/dist/chunk-G7OP7O2C.cjs.map +0 -1
  623. package/dist/chunk-GE6CFCAM.cjs +0 -25
  624. package/dist/chunk-GE6CFCAM.cjs.map +0 -1
  625. package/dist/chunk-GIFALLHI.cjs +0 -111
  626. package/dist/chunk-GIFALLHI.cjs.map +0 -1
  627. package/dist/chunk-GLFET5GM.js +0 -129
  628. package/dist/chunk-GLFET5GM.js.map +0 -1
  629. package/dist/chunk-GQ6UFPFM.js +0 -22
  630. package/dist/chunk-GQ6UFPFM.js.map +0 -1
  631. package/dist/chunk-GQJWVMXS.js +0 -129
  632. package/dist/chunk-GQJWVMXS.js.map +0 -1
  633. package/dist/chunk-GVVJPUKC.js +0 -80
  634. package/dist/chunk-GVVJPUKC.js.map +0 -1
  635. package/dist/chunk-GZ2HOCQ2.cjs +0 -134
  636. package/dist/chunk-GZ2HOCQ2.cjs.map +0 -1
  637. package/dist/chunk-HCBOHXWP.js +0 -37
  638. package/dist/chunk-HCBOHXWP.js.map +0 -1
  639. package/dist/chunk-IBQJDVHF.cjs +0 -281
  640. package/dist/chunk-IBQJDVHF.cjs.map +0 -1
  641. package/dist/chunk-ISLB6Y5Q.cjs +0 -106
  642. package/dist/chunk-ISLB6Y5Q.cjs.map +0 -1
  643. package/dist/chunk-J55CRR4F.js +0 -105
  644. package/dist/chunk-J55CRR4F.js.map +0 -1
  645. package/dist/chunk-JBG6Z6MQ.cjs +0 -28
  646. package/dist/chunk-JBG6Z6MQ.cjs.map +0 -1
  647. package/dist/chunk-K3RQOZRU.js +0 -61
  648. package/dist/chunk-K3RQOZRU.js.map +0 -1
  649. package/dist/chunk-KDJYS4GB.cjs +0 -703
  650. package/dist/chunk-KDJYS4GB.cjs.map +0 -1
  651. package/dist/chunk-KMCAHUZM.cjs +0 -4
  652. package/dist/chunk-KMCAHUZM.cjs.map +0 -1
  653. package/dist/chunk-KUCBNPC6.js +0 -87
  654. package/dist/chunk-KUCBNPC6.js.map +0 -1
  655. package/dist/chunk-KV6UE5A4.js +0 -50
  656. package/dist/chunk-KV6UE5A4.js.map +0 -1
  657. package/dist/chunk-L6TZ2HQR.cjs +0 -18
  658. package/dist/chunk-L6TZ2HQR.cjs.map +0 -1
  659. package/dist/chunk-L7QHHGG2.cjs +0 -141
  660. package/dist/chunk-L7QHHGG2.cjs.map +0 -1
  661. package/dist/chunk-LHK3Y2AL.js +0 -271
  662. package/dist/chunk-LHK3Y2AL.js.map +0 -1
  663. package/dist/chunk-LO5RYRBH.cjs +0 -6317
  664. package/dist/chunk-LO5RYRBH.cjs.map +0 -1
  665. package/dist/chunk-LS5SJMUO.cjs +0 -194
  666. package/dist/chunk-LS5SJMUO.cjs.map +0 -1
  667. package/dist/chunk-LUGTMZFN.cjs +0 -42
  668. package/dist/chunk-LUGTMZFN.cjs.map +0 -1
  669. package/dist/chunk-LVUQU6D5.js +0 -32
  670. package/dist/chunk-LVUQU6D5.js.map +0 -1
  671. package/dist/chunk-M2QRC2GZ.js +0 -166
  672. package/dist/chunk-M2QRC2GZ.js.map +0 -1
  673. package/dist/chunk-M6QJYQIM.cjs +0 -53
  674. package/dist/chunk-M6QJYQIM.cjs.map +0 -1
  675. package/dist/chunk-MGCPH5EO.js +0 -12
  676. package/dist/chunk-MGCPH5EO.js.map +0 -1
  677. package/dist/chunk-MLVUWEZR.cjs +0 -474
  678. package/dist/chunk-MLVUWEZR.cjs.map +0 -1
  679. package/dist/chunk-MTAMJMZL.cjs +0 -707
  680. package/dist/chunk-MTAMJMZL.cjs.map +0 -1
  681. package/dist/chunk-MXL5AT3N.js +0 -48
  682. package/dist/chunk-MXL5AT3N.js.map +0 -1
  683. package/dist/chunk-MYEQSESM.cjs +0 -75
  684. package/dist/chunk-MYEQSESM.cjs.map +0 -1
  685. package/dist/chunk-N3VPF6ZD.js +0 -427
  686. package/dist/chunk-N3VPF6ZD.js.map +0 -1
  687. package/dist/chunk-N6VUAIGI.js +0 -7
  688. package/dist/chunk-N6VUAIGI.js.map +0 -1
  689. package/dist/chunk-N6XRLUN6.js +0 -6286
  690. package/dist/chunk-N6XRLUN6.js.map +0 -1
  691. package/dist/chunk-NOGDOZIT.cjs +0 -114
  692. package/dist/chunk-NOGDOZIT.cjs.map +0 -1
  693. package/dist/chunk-NUWXEISH.cjs +0 -10
  694. package/dist/chunk-NUWXEISH.cjs.map +0 -1
  695. package/dist/chunk-NZCZHXYN.cjs +0 -161
  696. package/dist/chunk-NZCZHXYN.cjs.map +0 -1
  697. package/dist/chunk-ODROSWQX.cjs +0 -53
  698. package/dist/chunk-ODROSWQX.cjs.map +0 -1
  699. package/dist/chunk-OE36AYKG.cjs +0 -82
  700. package/dist/chunk-OE36AYKG.cjs.map +0 -1
  701. package/dist/chunk-OLON7MO6.cjs +0 -437
  702. package/dist/chunk-OLON7MO6.cjs.map +0 -1
  703. package/dist/chunk-PBUOR2IT.js +0 -277
  704. package/dist/chunk-PBUOR2IT.js.map +0 -1
  705. package/dist/chunk-PC2ELXFF.cjs +0 -225
  706. package/dist/chunk-PC2ELXFF.cjs.map +0 -1
  707. package/dist/chunk-PCSGXLOC.js +0 -71
  708. package/dist/chunk-PCSGXLOC.js.map +0 -1
  709. package/dist/chunk-PFNMP6FQ.js +0 -56
  710. package/dist/chunk-PFNMP6FQ.js.map +0 -1
  711. package/dist/chunk-PIWSZTIP.js +0 -690
  712. package/dist/chunk-PIWSZTIP.js.map +0 -1
  713. package/dist/chunk-PKWHJ2GI.js +0 -136
  714. package/dist/chunk-PKWHJ2GI.js.map +0 -1
  715. package/dist/chunk-PLMVBX2A.cjs +0 -76
  716. package/dist/chunk-PLMVBX2A.cjs.map +0 -1
  717. package/dist/chunk-PM3XCD2G.cjs +0 -113
  718. package/dist/chunk-PM3XCD2G.cjs.map +0 -1
  719. package/dist/chunk-QAL4GZO7.cjs +0 -143
  720. package/dist/chunk-QAL4GZO7.cjs.map +0 -1
  721. package/dist/chunk-QDB2SEA2.js +0 -74
  722. package/dist/chunk-QDB2SEA2.js.map +0 -1
  723. package/dist/chunk-QOV7UNUN.js +0 -25
  724. package/dist/chunk-QOV7UNUN.js.map +0 -1
  725. package/dist/chunk-QQUWYLSF.cjs +0 -50
  726. package/dist/chunk-QQUWYLSF.cjs.map +0 -1
  727. package/dist/chunk-QUMBH3U4.cjs +0 -9
  728. package/dist/chunk-QUMBH3U4.cjs.map +0 -1
  729. package/dist/chunk-R4KA7OFQ.js +0 -12
  730. package/dist/chunk-R4KA7OFQ.js.map +0 -1
  731. package/dist/chunk-RBSGAZQQ.js +0 -17
  732. package/dist/chunk-RBSGAZQQ.js.map +0 -1
  733. package/dist/chunk-RM5YJWZI.js +0 -46
  734. package/dist/chunk-RM5YJWZI.js.map +0 -1
  735. package/dist/chunk-ROKNKXA4.cjs +0 -8
  736. package/dist/chunk-ROKNKXA4.cjs.map +0 -1
  737. package/dist/chunk-RQG6D546.cjs +0 -75
  738. package/dist/chunk-RQG6D546.cjs.map +0 -1
  739. package/dist/chunk-SG4YDD5L.cjs +0 -74
  740. package/dist/chunk-SG4YDD5L.cjs.map +0 -1
  741. package/dist/chunk-SNRCA7EO.js +0 -56
  742. package/dist/chunk-SNRCA7EO.js.map +0 -1
  743. package/dist/chunk-SO75R4WW.cjs +0 -22
  744. package/dist/chunk-SO75R4WW.cjs.map +0 -1
  745. package/dist/chunk-SP34NHFI.js +0 -45
  746. package/dist/chunk-SP34NHFI.js.map +0 -1
  747. package/dist/chunk-SSKSSBWJ.cjs +0 -179
  748. package/dist/chunk-SSKSSBWJ.cjs.map +0 -1
  749. package/dist/chunk-TB5663C2.js +0 -1108
  750. package/dist/chunk-TB5663C2.js.map +0 -1
  751. package/dist/chunk-TGH4NRES.js +0 -220
  752. package/dist/chunk-TGH4NRES.js.map +0 -1
  753. package/dist/chunk-TJ6ZPNID.js +0 -189
  754. package/dist/chunk-TJ6ZPNID.js.map +0 -1
  755. package/dist/chunk-U45T35N2.cjs +0 -90
  756. package/dist/chunk-U45T35N2.cjs.map +0 -1
  757. package/dist/chunk-UKVOPEZ2.js +0 -442
  758. package/dist/chunk-UKVOPEZ2.js.map +0 -1
  759. package/dist/chunk-UTB4NROA.cjs +0 -887
  760. package/dist/chunk-UTB4NROA.cjs.map +0 -1
  761. package/dist/chunk-UTW33B5V.js +0 -6
  762. package/dist/chunk-UTW33B5V.js.map +0 -1
  763. package/dist/chunk-UYUBSD2V.cjs +0 -33
  764. package/dist/chunk-UYUBSD2V.cjs.map +0 -1
  765. package/dist/chunk-V3JEP5AG.cjs +0 -59
  766. package/dist/chunk-V3JEP5AG.cjs.map +0 -1
  767. package/dist/chunk-VFAGJXHR.js +0 -18
  768. package/dist/chunk-VFAGJXHR.js.map +0 -1
  769. package/dist/chunk-VMEE57E5.cjs +0 -58
  770. package/dist/chunk-VMEE57E5.cjs.map +0 -1
  771. package/dist/chunk-VQVBEX3Y.cjs +0 -113
  772. package/dist/chunk-VQVBEX3Y.cjs.map +0 -1
  773. package/dist/chunk-VZDXX7TT.cjs +0 -64
  774. package/dist/chunk-VZDXX7TT.cjs.map +0 -1
  775. package/dist/chunk-WE5ZTI4D.js +0 -346
  776. package/dist/chunk-WE5ZTI4D.js.map +0 -1
  777. package/dist/chunk-WEFUVABP.js +0 -19
  778. package/dist/chunk-WEFUVABP.js.map +0 -1
  779. package/dist/chunk-WMU4LRKC.js +0 -28
  780. package/dist/chunk-WMU4LRKC.js.map +0 -1
  781. package/dist/chunk-WQ24RRHL.cjs +0 -354
  782. package/dist/chunk-WQ24RRHL.cjs.map +0 -1
  783. package/dist/chunk-WW4CGS7G.cjs +0 -26
  784. package/dist/chunk-WW4CGS7G.cjs.map +0 -1
  785. package/dist/chunk-WXE5WCTM.js +0 -1144
  786. package/dist/chunk-WXE5WCTM.js.map +0 -1
  787. package/dist/chunk-X23BGIYA.cjs +0 -37
  788. package/dist/chunk-X23BGIYA.cjs.map +0 -1
  789. package/dist/chunk-XEW4FTR2.js +0 -98
  790. package/dist/chunk-XEW4FTR2.js.map +0 -1
  791. package/dist/chunk-XIOI4IYW.js +0 -167
  792. package/dist/chunk-XIOI4IYW.js.map +0 -1
  793. package/dist/chunk-XLVPJ37V.cjs +0 -44
  794. package/dist/chunk-XLVPJ37V.cjs.map +0 -1
  795. package/dist/chunk-XOHAXXZA.cjs +0 -51
  796. package/dist/chunk-XOHAXXZA.cjs.map +0 -1
  797. package/dist/chunk-Y4NRIHK6.cjs +0 -313
  798. package/dist/chunk-Y4NRIHK6.cjs.map +0 -1
  799. package/dist/chunk-Y4YMMKL3.js +0 -23
  800. package/dist/chunk-Y4YMMKL3.js.map +0 -1
  801. package/dist/chunk-YJNYBVE3.cjs +0 -14
  802. package/dist/chunk-YJNYBVE3.cjs.map +0 -1
  803. package/dist/chunk-Z762QNQP.cjs +0 -60
  804. package/dist/chunk-Z762QNQP.cjs.map +0 -1
  805. package/dist/chunk-ZG5KMBOF.js +0 -669
  806. package/dist/chunk-ZG5KMBOF.js.map +0 -1
  807. package/dist/chunk-ZKONQEFA.js +0 -344
  808. package/dist/chunk-ZKONQEFA.js.map +0 -1
  809. package/dist/chunk-ZR5X7QMH.js +0 -39
  810. package/dist/chunk-ZR5X7QMH.js.map +0 -1
  811. package/dist/chunk-ZW4BJQ26.js +0 -84
  812. package/dist/chunk-ZW4BJQ26.js.map +0 -1
  813. package/dist/climbs-BhlWuu0x.d.ts +0 -70
  814. package/dist/climbs-DgBFwySV.d.cts +0 -70
  815. package/dist/data/index.cjs.map +0 -1
  816. package/dist/data/index.js.map +0 -1
  817. package/dist/errors/index.cjs.map +0 -1
  818. package/dist/errors/index.js.map +0 -1
  819. package/dist/geo/index.cjs.map +0 -1
  820. package/dist/geo/index.js.map +0 -1
  821. package/dist/icons/index.cjs.map +0 -1
  822. package/dist/icons/index.js.map +0 -1
  823. package/dist/itinerary-Dp2ZnqgD.d.cts +0 -178
  824. package/dist/itinerary-Dp2ZnqgD.d.ts +0 -178
  825. package/dist/layers/index.cjs.map +0 -1
  826. package/dist/layers/index.js.map +0 -1
  827. package/dist/map-client/index.cjs.map +0 -1
  828. package/dist/map-client/index.js.map +0 -1
  829. package/dist/markerSprite-DGBQF6PO.cjs +0 -49
  830. package/dist/markerSprite-DGBQF6PO.cjs.map +0 -1
  831. package/dist/markerSprite-DZLTR6F6.js +0 -8
  832. package/dist/markerSprite-DZLTR6F6.js.map +0 -1
  833. package/dist/mountayaMap-C9mxRFib.d.cts +0 -3277
  834. package/dist/mountayaMap-DgnlQ2fE.d.ts +0 -3277
  835. package/dist/paint-BgUcj8l7.d.cts +0 -118
  836. package/dist/paint-Dx_qGNE_.d.ts +0 -118
  837. package/dist/profile/index.cjs.map +0 -1
  838. package/dist/profile/index.js.map +0 -1
  839. package/dist/seams/index.cjs.map +0 -1
  840. package/dist/seams/index.js.map +0 -1
  841. package/dist/search/index.cjs.map +0 -1
  842. package/dist/search/index.js.map +0 -1
  843. package/dist/searchHighlight-DFE7LVIL.cjs +0 -33
  844. package/dist/searchHighlight-DFE7LVIL.cjs.map +0 -1
  845. package/dist/searchHighlight-MHAQZVWG.js +0 -12
  846. package/dist/searchHighlight-MHAQZVWG.js.map +0 -1
  847. package/dist/strings-30RSdIat.d.cts +0 -552
  848. package/dist/strings-DPTIbzT5.d.ts +0 -552
  849. package/dist/stripeImage-CQUXM2YI.js +0 -14
  850. package/dist/stripeImage-CQUXM2YI.js.map +0 -1
  851. package/dist/stripeImage-R43OPA6U.cjs +0 -39
  852. package/dist/stripeImage-R43OPA6U.cjs.map +0 -1
  853. package/dist/style/index.cjs.map +0 -1
  854. package/dist/style/index.js.map +0 -1
  855. package/dist/types-B034JMjl.d.ts +0 -973
  856. package/dist/types-B2NDLxQA.d.cts +0 -21
  857. package/dist/types-B2NDLxQA.d.ts +0 -21
  858. package/dist/types-C8aX5KMU.d.cts +0 -973
  859. package/dist/units/index.cjs.map +0 -1
  860. package/dist/units/index.js.map +0 -1
  861. package/dist/view/index.cjs.map +0 -1
  862. package/dist/view/index.js.map +0 -1
@@ -0,0 +1,1831 @@
1
+ import { V as Overlay, _ as CameraPose, a as SegmentEditOptions, c as WaypointEditOptions, f as ZoneDraft, i as SegmentDraft, l as WaypointEngineDraftChange, n as BoundaryEditOptions, o as SegmentViaPromptEvent, p as ZoneEditOptions, s as WaypointDraftSnapshot, t as BoundaryDraft } from "./chunk-QGqgNC4z.js";
2
+ import { n as IconProvider } from "./chunk-DWsm3HIW.js";
3
+ import { a as VideoRecordingResult, i as VideoProgress, n as RecordProfile, r as RecordingCamera, t as RecordOutput } from "./chunk-CAUZnoCs.js";
4
+ import { i as MapViewport, n as FitBoundsPadding, t as BoundingBox } from "./chunk-fozLXfHY.js";
5
+ import { c as SearchHighlight } from "./chunk-BZ5KyZXI.js";
6
+ import { TileSchema } from "@mountaya/client";
7
+ import { Geometry, Polygon, Position } from "geojson";
8
+ /**
9
+ * WaypointCursorInput names what the cursor draws: the draft's icon and colour, the glyph set
10
+ * to draw the icon from, and the canvas size in CSS pixels.
11
+ *
12
+ * `size` is stated rather than assumed because it has to equal the marker sprite's own size for
13
+ * the cursor to be a preview rather than an approximation, and only the caller rendering the
14
+ * sprite knows that number.
15
+ */
16
+ interface WaypointCursorInput {
17
+ readonly color: string;
18
+ readonly icon: string;
19
+ readonly provider: IconProvider;
20
+ readonly size: number;
21
+ }
22
+ /**
23
+ * PoiInfo is one point of interest a right-click query resolves under the cursor: the feature's
24
+ * display `name` (null when the tile carries none), its `category`, the OpenMapTiles class or
25
+ * subclass that names what the feature is (for example "restaurant", "hotel", "parking"), and the
26
+ * `id` the tile gives the feature (null when it gives none).
27
+ *
28
+ * The value crosses from the map to a tool, then to the store and the UI: the map client produces
29
+ * it from the renderer, and the context-menu tool validates it before it lands in the store. It
30
+ * carries no icon or color, because the Tile API's POI overlay owns how a tile POI is styled, so
31
+ * the popup shows the name and category as text rather than inventing a parallel marker style.
32
+ */
33
+ interface PoiInfo {
34
+ category: string;
35
+ id: string | null;
36
+ name: string | null;
37
+ }
38
+ /**
39
+ * OverlayFeature is one active-overlay vector feature resolved under a right-click: a flat map of
40
+ * the feature's display properties (a weather overlay's temperature, wind speed and wind
41
+ * direction, for instance). Each value is a primitive the popup can render as text: a string, a
42
+ * number, a boolean, or null when the tile carries the key with no value.
43
+ *
44
+ * It crosses from the map to a tool, then to the store and the UI, the way {@link PoiInfo} does:
45
+ * the map client produces it from the renderer, and the context-menu tool validates it before it
46
+ * lands in the store. The value carries the raw properties, and unit-aware formatting (degrees
47
+ * Celsius or Fahrenheit, km/h, a wind-direction arrow) is left to a formatter that knows each
48
+ * property by its key.
49
+ */
50
+ type OverlayFeature = Record<string, string | number | boolean | null>;
51
+ /**
52
+ * MapContextMenuEvent is the readout emitted on a right-click (MapLibre's `contextmenu` event): the
53
+ * `[lng, lat]` under the cursor and the container pixel it sits at. The pixel positions the
54
+ * context-menu popup inside the studio root; the coordinate seeds the POI query and the popup's
55
+ * links.
56
+ */
57
+ interface MapContextMenuEvent {
58
+ lngLat: [number, number];
59
+ point: [number, number];
60
+ }
61
+ /**
62
+ * MapPointerMove is the readout emitted as the pointer moves over the map (MapLibre's `mousemove`
63
+ * event): the `[lng, lat]` under the cursor and the container pixel it sits at. The pixel positions
64
+ * a cursor-following overlay (the editing tooltip) inside the studio root without the move ever
65
+ * entering reactive state; the coordinate is there for a consumer that needs the geographic
66
+ * position. It mirrors {@link MapContextMenuEvent}'s shape, so a follower and a right-click popup
67
+ * anchor the same way.
68
+ */
69
+ interface MapPointerMove {
70
+ lngLat: [number, number];
71
+ point: [number, number];
72
+ }
73
+ /**
74
+ * FeatureHit is one tile feature resolved under a click or hover on a scoped set of layers: the
75
+ * feature's `id` (the tile feature id, which is a segment or waypoint id for the itinerary layers,
76
+ * or null when the tile carries none) and a flat `properties` map of its tile attributes. Each
77
+ * value is a primitive a caller can branch on: a string, a number, a boolean, or null.
78
+ *
79
+ * It is platform-neutral for the reason {@link PoiInfo} is: the value crosses from the map to the
80
+ * application and a tool, so the raw renderer feature stays inside the map package and never
81
+ * leaks through {@link MapClient}. The application reads the id and properties to decide which
82
+ * tool to dispatch (select a segment, or a waypoint).
83
+ */
84
+ interface FeatureHit {
85
+ /**
86
+ * How many clicks in a row the click that made this hit closes, as the browser counts them on
87
+ * one spot: 1 for a click, 2 for the second click of a double-click, and so on. It tells a
88
+ * click that starts a gesture from one that ends a double-click the first click already
89
+ * answered. Absent for a hit no click made (a hover), and for a click that counts none.
90
+ */
91
+ clickCount?: number | undefined;
92
+ id: string | number | null;
93
+ properties: Record<string, string | number | boolean | null>;
94
+ /**
95
+ * The vector source-layer the feature was drawn from (`itinerary_lines`, `itinerary_points`,
96
+ * `itinerary_restrictions`), so a subscription over layers that draw several of them tells
97
+ * the features apart by what the tiles state they are. Absent for a feature of a GeoJSON
98
+ * source, which has no source-layer.
99
+ */
100
+ sourceLayer?: string | undefined;
101
+ }
102
+ /**
103
+ * FeatureHoverHandlers are the two callbacks a layer-scoped hover subscription fires: `onEnter`
104
+ * when the pointer moves onto a feature in the scoped layers (carrying the feature under it), and
105
+ * `onLeave` when it moves off. A consumer drives a focus or an emphasis on enter and clears it on
106
+ * leave. The enter is told again on each hit-test while the pointer stays on a feature, so what
107
+ * it drives is idempotent.
108
+ */
109
+ interface FeatureHoverHandlers {
110
+ onEnter: (hit: FeatureHit) => void;
111
+ onLeave: () => void;
112
+ }
113
+ /**
114
+ * FeatureSubscriptionOptions narrow a feature subscription below the layers it names: which of
115
+ * the features on those layers it answers.
116
+ *
117
+ * A layer often draws features a surface treats differently. One layer draws every itinerary
118
+ * the map shows, and a surface with one of them open answers that one's lines and markers and
119
+ * none of the others, though all of them sit on the same layer.
120
+ */
121
+ interface FeatureSubscriptionOptions {
122
+ /**
123
+ * Whether the subscription answers the feature under the pointer: true to answer it, false to
124
+ * treat it as if it were not on the subscription's layers at all.
125
+ *
126
+ * The pointer is read as hitting the topmost feature this accepts, so a feature it refuses
127
+ * drawn over one it accepts never hides it. A refused feature sets no pointer cursor and
128
+ * fires no click and no hover. It is asked on every hit-test, so it reads the surface's state
129
+ * as it stands when the pointer moves, and it should be cheap. Left out, every feature on the
130
+ * layers is answered.
131
+ */
132
+ readonly accepts?: ((hit: FeatureHit) => boolean) | undefined;
133
+ }
134
+ /**
135
+ * TileRequest is the platform-agnostic shape a {@link TileRequestTransform} returns for a request
136
+ * URL: the url, rewritten or not, and optional auth, either headers (an API key or a session token
137
+ * for an embed) or `credentials: "include"` (the session cookie an authenticated studio carries).
138
+ * It is a structural subset of the web renderer's request-parameters type, so a host builds the
139
+ * transform without importing MapLibre at all (the renderer stays in the entries of
140
+ * `@mountaya/elements` that draw), and the client hands it straight through.
141
+ */
142
+ interface TileRequest {
143
+ /**
144
+ * Whether the page's cookies ride the request: `"include"` sends them to the request's origin
145
+ * whatever it is, and `"same-origin"` to the page's own alone.
146
+ *
147
+ * The member is typed as the web renderer types it, so a transform written against this type
148
+ * is handed to the renderer as it is, and the renderer names only the two values that send
149
+ * cookies somewhere. A request the package's own transform claims without the cookie flag
150
+ * carries `"omit"`, the third value `fetch` takes, so a key or a share token is never joined
151
+ * by the page's session (`TransformedRequest.credentials` says the same). A transform of your
152
+ * own gets that request from `createTransformRequest`, which a host chains its own through
153
+ * `next`.
154
+ */
155
+ credentials?: "same-origin" | "include" | undefined;
156
+ headers?: Record<string, string> | undefined;
157
+ url: string;
158
+ }
159
+ /**
160
+ * TileRequestTransform rewrites a request URL before the map fetches it, to attach Tile API auth:
161
+ * the map fetches tile URLs outside the REST client, so auth is wired here at map construction
162
+ * rather than per request. It returns undefined to leave a URL that is not a tile's untouched. The
163
+ * application builds it (it owns the auth strategy and the Tile API base) and passes it to the
164
+ * map, and the renderer's client adapts it to its own request-transform hook.
165
+ *
166
+ * `@mountaya/elements` publishes `RequestTransform` for the same position in the pipeline, and
167
+ * this is deliberately not it. The published one takes MapLibre's `resourceType` and answers a
168
+ * `TransformedRequest`; this one is the narrower contract between the application and the map: a
169
+ * URL in, an optional rewrite out, with the resource kind irrelevant because the only URLs it
170
+ * claims are the Tile API's. Naming the same job twice is not the duplication that matters:
171
+ * nothing stateful lives on either side of this seam, and the adaptation happens once, where the
172
+ * map is constructed.
173
+ */
174
+ type TileRequestTransform = (url: string) => TileRequest | undefined;
175
+ /**
176
+ * BaseTerrainConfig is the base layer resolved from the GET /v1/tile-layers manifest: `styleUrl`
177
+ * is the terrain variant's vector style document, loaded whole as the base map, and `demUrl`,
178
+ * when present, is the raster-dem TileJSON that drives the always-on 3D relief. The renderer
179
+ * loads the vector style and bakes the relief into that style document, so the 3D survives every
180
+ * base-map switch.
181
+ *
182
+ * It is platform-agnostic: the application resolves a terrain slug and variant to this shape, and
183
+ * the client loads the base style from it. The URLs carry their own credentials, so no key lives
184
+ * on this config; section and overlay layers are added on top again once the style loads.
185
+ */
186
+ interface BaseTerrainConfig {
187
+ /**
188
+ * demUrl is the raster-dem TileJSON URL for the always-on 3D terrain. Absent, the base map stays
189
+ * flat with no relief.
190
+ */
191
+ demUrl?: string | undefined;
192
+ /** styleUrl is the terrain variant's vector style document URL, loaded whole as the base map. */
193
+ styleUrl: string;
194
+ }
195
+ /**
196
+ * MapViewportChange is the camera readout emitted on every viewport move: the current bearing (in
197
+ * degrees), zoom and center. Passive overlays (a compass, a scale) subscribe to it through
198
+ * {@link MapClient.onViewportChange}, and {@link MapClient.onViewportSettle} hands the same
199
+ * readout once, as a move ends.
200
+ *
201
+ * It is a strict subset of the `Camera` the package root publishes, and it keeps its own name
202
+ * because the two answer different questions. `Camera` is every channel resolved, pitch included,
203
+ * which is what a caller restoring a view needs; this is what a passive readout reads, and pitch
204
+ * is not one of them, since a compass that re-rendered on a tilt would re-render for nothing. The
205
+ * three channels it does carry are pinned to the published ones in `cameraVocabulary.test.ts`, so
206
+ * the subset stays a subset rather than becoming a second spelling.
207
+ */
208
+ interface MapViewportChange {
209
+ bearing: number;
210
+ center: [number, number];
211
+ zoom: number;
212
+ }
213
+ /**
214
+ * ContextMenuZone is one zone as the right-click context menu shows it: its id, its name and
215
+ * description, the level it carries, the window it applies over, and the organization that owns it
216
+ * (null for a personal zone, which belongs to no organization).
217
+ *
218
+ * It is declared here for the reason {@link ItineraryEmphasis} is: it describes what a POPUP DRAWS,
219
+ * and the popup is a rendering concern. The studio's store holds it, and the schema that validates
220
+ * a zone arriving in the store is pinned to this shape in `@mountaya/studio` with `satisfies`, so
221
+ * both ends read one declaration.
222
+ */
223
+ interface ContextMenuZone {
224
+ description: string;
225
+ endAt: number | null;
226
+ id: string;
227
+ level: string;
228
+ name: string;
229
+ organizationId: string | null;
230
+ startAt: number | null;
231
+ }
232
+ /**
233
+ * ItineraryEmphasis is the focus state the itinerary tile geometries render under: nothing dimmed,
234
+ * everything dimmed, or one itinerary, segment, set of segments or waypoint lit while the rest
235
+ * dims.
236
+ *
237
+ * It is published because it is a tool INPUT: `studio.itinerary.emphasis.set` takes it, and the
238
+ * contract that declares that tool declares this shape. It is a transient, high-frequency
239
+ * interaction (a cursor moving over a list), so it is driven imperatively on the client rather
240
+ * than held as reactive state, and still issued through the bus so a human hover and an agent call
241
+ * drive the same path.
242
+ *
243
+ * Declared here rather than inferred from the studio's schema, which is the direction the
244
+ * tie-break rule names: emphasis is DISPLAY STATE (what the map dims and what it lights), so a
245
+ * consumer driving their own renderer needs the shape without a studio to hold it. The schema that
246
+ * validates an emphasis arriving over the tool seam stays in `@mountaya/studio` and is pinned to
247
+ * this union with `satisfies`, so the two cannot drift.
248
+ */
249
+ type ItineraryEmphasis = {
250
+ mode: "none";
251
+ } | {
252
+ mode: "dimAll";
253
+ } | {
254
+ id: string;
255
+ mode: "itinerary";
256
+ } | {
257
+ id: string;
258
+ mode: "segment";
259
+ } | {
260
+ ids: string[];
261
+ mode: "segments";
262
+ } | {
263
+ id: string;
264
+ mode: "waypoint";
265
+ };
266
+ /**
267
+ * ProfileMarkerIcon fills the follow-marker pin's head, in one of two ways.
268
+ *
269
+ * `url` masks an imported silhouette in the glyph color: the plain-DOM twin of the CSS mask
270
+ * ActivityIcon paints, which the elevation profile uses to stamp the itinerary's activity. `glyph`
271
+ * names an entry in the generated marker-glyph table and is inlined directly, so a caller that
272
+ * wants a glyph the package already compiles does not ship a second copy of it as a standalone
273
+ * asset.
274
+ *
275
+ * Two shapes rather than one optional-both object: exactly one source must be present, and a union
276
+ * says so at the call site instead of leaving a both-null or both-set state to handle at render
277
+ * time.
278
+ *
279
+ * `rotate` turns a GLYPH clockwise by that many degrees about its own centre, and it belongs to the
280
+ * descriptor rather than to the glyph table because orientation is the caller's business: the
281
+ * compiled marker glyph is drawn once, at the angle the icon set ships it, and a surface that wants
282
+ * it pointing another way says so here instead of committing every other consumer to the same
283
+ * turn. The `url` form has no counterpart: an imported silhouette is the application's own asset
284
+ * and is authored at the angle it wants.
285
+ */
286
+ type ProfileMarkerIcon = {
287
+ background: string;
288
+ color: string;
289
+ url: string;
290
+ } | {
291
+ background: string;
292
+ color: string;
293
+ glyph: string;
294
+ rotate?: number | undefined;
295
+ };
296
+ /**
297
+ * PeerDraftKind names the entity family a collaborator's live-draft ghost renders for: a segment
298
+ * (a dashed line), a waypoint (a marker ghost), or a zone (a polygon outline). It mirrors the
299
+ * collaboration lock and draft entity family, spelled here because the map package depends on no
300
+ * application type, so the render surface stays platform-neutral.
301
+ */
302
+ type PeerDraftKind = "segment" | "waypoint" | "zone";
303
+ /**
304
+ * PeerDraftEntity is the `{ kind, id }` a peer-draft ghost is keyed on, so a per-entity set of
305
+ * sources and layers is added, updated and cleared independently, and many collaborators' ghosts
306
+ * can be on screen at once.
307
+ */
308
+ interface PeerDraftEntity {
309
+ id: string;
310
+ kind: PeerDraftKind;
311
+ }
312
+ /**
313
+ * ItineraryPreviewLine is one line the itinerary preview overlay paints: a coordinate list, the CSS
314
+ * `color` to stroke it in, and whether it renders `dashed`. The DTO is policy-free (it paints
315
+ * exactly the lines it is handed, solid or dashed), so the ours-versus-theirs decision (which
316
+ * candidate is the chosen one and which is the muted alternative) lives in the sync hook that
317
+ * builds the DTO, not in the renderer.
318
+ */
319
+ interface ItineraryPreviewLine {
320
+ color: string;
321
+ coordinates: Position[];
322
+ dashed: boolean;
323
+ }
324
+ /**
325
+ * ItineraryPreviewWaypoint is one waypoint the itinerary preview overlay paints: the `[lng, lat]`
326
+ * it sits at plus the `icon` glyph and `color` the symbol layer stamps, reusing the sprite contract
327
+ * the persisted itinerary tiles paint with (a `section-icon-<icon>-<hex>` id rasterized by the
328
+ * shared image-missing handler), so a preview waypoint matches, pixel for pixel, the tile it
329
+ * becomes on confirm.
330
+ */
331
+ interface ItineraryPreviewWaypoint {
332
+ color: string;
333
+ icon: string;
334
+ lngLat: [number, number];
335
+ }
336
+ /**
337
+ * ItineraryPreviewRender is the render-free DTO for a NON-PERSISTED itinerary draft (an import
338
+ * preview): the lines and waypoints to paint as a read-only GeoJSON overlay. A persisted itinerary
339
+ * paints through the always-on vector tiles, so this overlay exists only for a draft that has no
340
+ * tiles yet.
341
+ *
342
+ * It is policy-free: it carries fully styled lines (solid or dashed, a color per line) and
343
+ * waypoints, leaving the ours-versus-theirs styling to the caller that builds it. It is
344
+ * platform-agnostic too, so no map SDK type leaks through {@link MapClient}.
345
+ */
346
+ interface ItineraryPreviewRender {
347
+ lines: ItineraryPreviewLine[];
348
+ waypoints: ItineraryPreviewWaypoint[];
349
+ }
350
+ /**
351
+ * ItineraryExclusions lists the itinerary features the tile render must suppress: the segment ids
352
+ * dropped from the line layers and the waypoint ids dropped from the point layers. A feature is
353
+ * hidden from the tiles when it is being drawn as an editable element elsewhere, so the editable
354
+ * copy is the only one on screen and the two never double up. Empty lists draw the full itinerary.
355
+ */
356
+ interface ItineraryExclusions {
357
+ segmentIds: string[];
358
+ waypointIds: string[];
359
+ }
360
+ /**
361
+ * PointPickChange is the discrete event a point pick emits on each map click while armed: the
362
+ * `[lng, lat]` coordinate the click resolved to. It is a render-free DTO (no map SDK type leaks
363
+ * through it), fanned out through the client's `onPointPickChange` registry. There is no "miss"
364
+ * variant: a point pick captures a raw coordinate, not a feature, so every click produces one.
365
+ */
366
+ interface PointPickChange {
367
+ lngLat: [number, number];
368
+ }
369
+ /**
370
+ * PointPickOptions arms a point pick. `target` names what the captured coordinate stands for: the
371
+ * `start` or the `end` of a route being assembled, the `split` point an existing segment is cut at,
372
+ * or the `origin` a reachability zone is measured from. The map engine itself is target-agnostic
373
+ * (it only captures clicks); `target` rides through for symmetry with the begin and end edit
374
+ * families and for telemetry, and it lets the application's driver pick the right cursor tooltip
375
+ * ("set the starting point", "set the ending point", "click the route where you want to split it",
376
+ * "click to set the origin").
377
+ *
378
+ * The union is deliberately WIDER than the suggest flow's own `PickTarget`: the two route endpoints
379
+ * are one surface's vocabulary, while this is every surface that captures a raw coordinate.
380
+ */
381
+ interface PointPickOptions {
382
+ target: "end" | "origin" | "split" | "start";
383
+ }
384
+ /**
385
+ * OverlayZoomRange is the minimal shape `ensureOverlayInZoomRange` reads: a slug and the zoom range
386
+ * it paints at. It is a structural subset of the manifest's overlay catalogue entry, so a caller
387
+ * can pass that entry as it is; the helper only ever inspects `minzoom` and `maxzoom`.
388
+ */
389
+ interface OverlayZoomRange {
390
+ maxzoom: number;
391
+ minzoom: number;
392
+ slug: string;
393
+ }
394
+ /**
395
+ * MapConstraints bound the camera: a minimum and maximum zoom, and a max-bounds box the center
396
+ * cannot leave. Every field is optional so a caller asserts only what it knows, and a field
397
+ * stated as `null` releases a bound set earlier: a null `maxBounds` lifts the lock, a null
398
+ * `minZoom` puts the floor back at -2 and a null `maxZoom` the ceiling back at 22, the window a
399
+ * map is built with when it is given none. Applied on load and asserted again after a base-layer
400
+ * swap, so a terrain switch never drops them. A `maxBounds` holds an area: `setConstraints`
401
+ * refuses one with no width, no height or an edge at no finite coordinate.
402
+ */
403
+ interface MapConstraints {
404
+ maxBounds?: BoundingBox | null | undefined;
405
+ maxZoom?: number | null | undefined;
406
+ minZoom?: number | null | undefined;
407
+ }
408
+ /**
409
+ * GeolocateResult is the structured outcome of a `tryGeolocate` attempt. `ok: true` means the
410
+ * device fix landed and the camera framed it; `ok: false` carries the reason the attempt did not
411
+ * produce one (the viewer denied the permission, the sensor was unavailable, or the browser has no
412
+ * geolocation API at all), so the caller branches on the user-visible toast copy (a
413
+ * request-permissions hint, or an unavailable note) without driving a separate state machine. The
414
+ * map client never throws this: a denied permission is a resolved result, not a rejection.
415
+ */
416
+ type GeolocateResult = {
417
+ ok: true;
418
+ } | {
419
+ ok: false;
420
+ reason: "denied" | "no_api" | "unavailable";
421
+ };
422
+ /**
423
+ * WaypointCursorOptions is the glyph set and canvas size the visible waypoint cursor is drawn with,
424
+ * supplied by the host rather than bundled.
425
+ *
426
+ * The glyph markup belongs to whoever licensed it, so a map client cannot ship a table of path
427
+ * data: it draws whatever an `IconProvider` gives it. `size` travels with the provider because it
428
+ * has to equal the marker sprite's own size for the cursor to read as a preview of the marker the
429
+ * next click lands, and only the host knows that. It is a finite number of CSS pixels above 6,
430
+ * twice the inset of the cursor's ring, and an engine handed any other refuses it by name.
431
+ *
432
+ * Derived from the published cursor input by picking exactly the two fields the host supplies,
433
+ * rather than restated. A second declaration would compile, and would stop matching the day the
434
+ * published shape changed either one.
435
+ */
436
+ type WaypointCursorOptions = Pick<WaypointCursorInput, "provider" | "size">;
437
+ /**
438
+ * VideoSeam is the recording subsystem, injected into a map client rather than owned by it. It
439
+ * orchestrates one preview or record flight: the camera snapshot and restore, the abort-signal
440
+ * lifecycle, the frame capture and encode, and the moving "you are here" dot the flight drives
441
+ * along the route.
442
+ *
443
+ * It is a seam and not a field because recording is an optional capability with the heaviest
444
+ * dependency behind it: a video encoder. A map that only draws a route should not carry a codec,
445
+ * so the client takes the seam when a host supplies one and reports the recording methods
446
+ * unsupported when it does not. The map is the whole of what the seam needs: it holds no
447
+ * back-reference to the client.
448
+ *
449
+ * `warmPoses` is deliberately NOT here. It jumps the camera through a strided subset of the flight
450
+ * and waits for tiles to settle, which is the map's own work, as useful before a recording as
451
+ * before any scripted camera tour.
452
+ */
453
+ interface VideoSeam {
454
+ /**
455
+ * dispose aborts any in-flight run, restores the camera and the renderer clock, and drops the
456
+ * focus marker. The client calls it first in its own dispose, ahead of the event engine
457
+ * teardown that detaches the recorder's render listener.
458
+ */
459
+ dispose: () => void;
460
+ /** previewPoses flies the camera along the poses live, encoding nothing. */
461
+ previewPoses: (poses: RecordingCamera[], options: {
462
+ focusGlyphUrl?: string | undefined;
463
+ markers?: [number, number][] | undefined;
464
+ onProgress?: ((progress: VideoProgress) => void) | undefined;
465
+ planDurationMs?: number | undefined;
466
+ signal: AbortSignal;
467
+ }) => Promise<void>;
468
+ /** recordPoses captures and encodes one frame per pose into a video. */
469
+ recordPoses: (poses: readonly RecordingCamera[], output: RecordOutput, options: {
470
+ focusGlyphUrl?: string | undefined;
471
+ markers?: [number, number][] | undefined;
472
+ onProgress?: ((progress: VideoProgress) => void) | undefined;
473
+ profile?: RecordProfile | undefined;
474
+ signal: AbortSignal;
475
+ /**
476
+ * Whether the caller has just warmed these very poses' viewports, every frame's zoom and
477
+ * pitch included, so no warm pass runs.
478
+ *
479
+ * @default false
480
+ */
481
+ warmed?: boolean | undefined;
482
+ }) => Promise<VideoRecordingResult>;
483
+ /** setVideoFocusMarker drops, or with null clears, the moving "you are here" dot. */
484
+ setVideoFocusMarker: (lngLat: [number, number] | null) => void;
485
+ }
486
+ /**
487
+ * MapClient is the platform-agnostic command surface each renderer's client implements
488
+ * (`MapLibreClient` on the web, a native renderer's own client elsewhere). The tool bus issues
489
+ * these commands, and the client translates them to the underlying SDK. Render-free: no platform
490
+ * type leaks through this interface.
491
+ */
492
+ interface MapClient {
493
+ /**
494
+ * addTileSources adds vector and raster tile sources (from the GET /v1/tile-layers manifest) and
495
+ * their layers to the map. `zoom_min` and `zoom_max` map onto the source's and the layers'
496
+ * `minzoom` and `maxzoom`. Restating a source unchanged is a no-op, so a caller may declare the
497
+ * manifest on every render; restating one whose content CHANGED under the same id redraws it
498
+ * from the incoming manifest. Tile-request auth is wired separately, at map construction (the
499
+ * request transform), not per source.
500
+ */
501
+ addTileSources: (sources: TileSchema.TileSource[]) => void;
502
+ /**
503
+ * setCategoryOverlay draws the one active category overlay from the GET /v1/tile-layers manifest,
504
+ * replacing whichever was drawn before; `null` clears it.
505
+ *
506
+ * Category overlays are exclusive by contract (slope, snow depth and avalanche risk each repaint
507
+ * the same ground), which is why this is a `set` against one slot rather than an `add` against a
508
+ * bucket. The camera eases into the sources' zoom window on the way in, so an overlay whose tiles
509
+ * only paint above (or below) the current zoom never reads as "I picked it but nothing appeared".
510
+ *
511
+ * Distinct from {@link addTileSources}, which takes a bare source list and carries the studio's
512
+ * own itinerary and zone cartography. An overlay has neither, so it rides the slot instead: the
513
+ * slot replaces rather than accumulates, and it survives a base-map switch on its own.
514
+ */
515
+ setCategoryOverlay: (overlay: Overlay | null) => void;
516
+ /**
517
+ * addEnrichmentOverlay stacks one enrichment overlay on top of whatever is already drawn, keyed
518
+ * on the overlay's own slug.
519
+ *
520
+ * `add`, not `set`, because enrichments compose: hillshade under a slope overlay under a route is
521
+ * the ordinary case, so each holds its own slot and a second never disturbs the first. Adding a
522
+ * slug already drawn restates it rather than stacking a second copy. The camera eases into the
523
+ * sources' zoom window exactly as {@link setCategoryOverlay} does.
524
+ */
525
+ addEnrichmentOverlay: (overlay: Overlay) => void;
526
+ /**
527
+ * removeEnrichmentOverlay removes the enrichment drawn for `slug`, leaving every other enrichment
528
+ * and the category overlay untouched. A slug holding nothing is a no-op.
529
+ */
530
+ removeEnrichmentOverlay: (slug: string) => void;
531
+ /**
532
+ * setTileLayerVisibility shows or hides one tile layer already added, by id: the per-layer toggle
533
+ * the POI overlay menu drives (a POI group maps to one or more manifest layer ids). The desired
534
+ * value is intent rather than a paint: it outlives the layer, and every redraw bakes it into the
535
+ * layer's layout, so a hidden layer stays hidden across a base-map switch. It is recorded just the
536
+ * same against a layer that is not on the map yet, which is how a category toggled before its
537
+ * source arrives is born hidden.
538
+ */
539
+ setTileLayerVisibility: (layerId: string, visible: boolean) => void;
540
+ /**
541
+ * applyCursor sets the map's cursor to the given CSS value, unless a cursor lock is held: then
542
+ * the locked cursor stays, and the requested value is only remembered as the base to restore when
543
+ * the lock releases. It is the single cursor-write seam: the layer hover handlers (a pointer over
544
+ * a clickable feature, cleared to "" on leave) call it, so a hover firing its leave during an edit
545
+ * cannot wipe the edit's pinned cursor. An empty string resets to the default cursor.
546
+ */
547
+ applyCursor: (cursor: string) => void;
548
+ /**
549
+ * applySegmentDraft replaces the editing feature's geometry with the given draft and pins the
550
+ * start again to the new head: the swap an undo or redo restore performs (restoring a known-good
551
+ * geometry rather than an incremental edit). It is a programmatic write, so the change it
552
+ * triggers is flagged programmatic through `onSegmentDraftChange`. A subscriber records its own
553
+ * interactive edits in history but must not record this replay again, or an undo would itself
554
+ * push a history entry and the stack could never unwind. In directions mode the engine routes the
555
+ * restored vias again internally. `vias` are the editable handle coordinates in the active mode
556
+ * (directions vias, or freehand vertices). A no-op when no segment edit is active.
557
+ *
558
+ * A freehand edit draws each via as its longitude and latitude alone, at nine decimals, so a
559
+ * third ordinate and a tenth decimal are dropped and `getSegmentDraft` answers the line as drawn.
560
+ * On a freehand edit that has drawn nothing yet, the draft is the line's first and is seeded.
561
+ *
562
+ * @throws {MountayaElementsError} From a freehand edit, when its drawing library refuses the
563
+ * line (a longitude past 180, a number that is not finite). Nothing is written and the draft
564
+ * stays as it was.
565
+ */
566
+ applySegmentDraft: (vias: Position[]) => void;
567
+ /**
568
+ * applyWaypointDraft writes a new draft snapshot (position, icon and color) onto the active
569
+ * waypoint engine's rendered marker. It is a programmatic write: the change does NOT fire
570
+ * `onWaypointDraftChange` (the seam carries interactive clicks only), so the store's undo and
571
+ * redo can paint the engine again without looping its own restore back through the change
572
+ * subscribers. A no-op when no waypoint edit is active.
573
+ */
574
+ applyWaypointDraft: (snapshot: WaypointDraftSnapshot) => void;
575
+ /**
576
+ * clearWaypointDraft takes the active waypoint engine's dropped marker off the map, for an undo
577
+ * back past a create's first placement: the store's draft holds no position, and the map shows
578
+ * none either. The engine stays armed, so the next click places again. A programmatic write,
579
+ * like {@link applyWaypointDraft}: it fires no `onWaypointDraftChange`. A no-op when no waypoint
580
+ * edit is active or nothing is placed.
581
+ */
582
+ clearWaypointDraft: () => void;
583
+ /**
584
+ * reseedWaypointEdit moves the armed waypoint engine's rendered marker to a new coordinate,
585
+ * keeping its current icon and color.
586
+ *
587
+ * It is the agent-iteration seam. The co-pilot proposing a new position for a waypoint whose edit
588
+ * session is already open must move the live marker, but the waypoint editing hook keys its
589
+ * arming effect on the session IDENTITY (the waypoint id and the mode) and deliberately holds the
590
+ * seed OUT of its dependencies, since folding the live draft in would rebuild the engine
591
+ * mid-drag. So a second begin with a new position never arms the engine again, and this seam
592
+ * seeds the position directly instead.
593
+ *
594
+ * It is a programmatic write: it does NOT fire `onWaypointDraftChange`, so it never loops back
595
+ * through the placement subscribers, mirroring {@link applyWaypointDraft}. A no-op when no
596
+ * waypoint edit is active or no placement has landed yet (nothing to move). The first proposal
597
+ * needs no seeding, because the hook arms the engine from the fresh session, so only an
598
+ * iteration on a session already open calls it.
599
+ */
600
+ reseedWaypointEdit: (lngLat: [number, number]) => void;
601
+ /**
602
+ * beginSegmentEdit starts an editable segment, building the engine for its mode (the directions
603
+ * SDK for vias, TerraDraw for a freehand line). It draws the seeded handles in the segment color
604
+ * with the start pinned to `pinnedStart`, hides the segment's tile copy so the editable copy is
605
+ * the only one on screen, and locks the map for the edit. The editable feature is keyed on the
606
+ * segment id, so its draft maps straight back to the store. A directions edit routes through the
607
+ * injected `routeFn`; edits flow out through `onSegmentDraftChange`.
608
+ *
609
+ * The lock has two halves: drag-pan is disabled, so a drag reshapes the line rather than panning,
610
+ * and a base-map switch is refused, so a terrain swap cannot wipe the editable feature.
611
+ * `endSegmentEdit` tears the engine down, restores the tile copy and releases both. Calling this
612
+ * while another segment edit is active replaces that edit: the active engine is disposed before
613
+ * the next is built, so at most one engine is ever attached. Mutual exclusion across waypoint
614
+ * edits is enforced one level up, at the tool layer.
615
+ *
616
+ * A `directions` seed whose first or last via stands further from its pin than the backend's
617
+ * tolerance opens with the pin in its place; a freehand seed of two vias or more must start at
618
+ * `pinnedStart` and end at `pinnedEnd`.
619
+ *
620
+ * What the engine refuses is read first, a call that repeats the edit that stands included.
621
+ *
622
+ * @throws {MountayaElementsError} When the client holds no edit engine, as `MapLibreViewClient`
623
+ * does; when a `directions` edit states no `routeFn` or no `activitySlug`; when a pin or a seed
624
+ * via is a position no map can place (named as `seedVias[i]`), or `seedVias` is no list; when
625
+ * a freehand seed disagrees with its pins; or when `color` is neither `#rrggbb` nor `#rgb`.
626
+ * Each is read before anything changes: no edit is started, the map is not locked, and an edit
627
+ * the call would have replaced stays open.
628
+ */
629
+ beginSegmentEdit: (options: SegmentEditOptions) => void;
630
+ /**
631
+ * beginWaypointEdit starts an editable waypoint, building the engine for its mode (a TerraDraw
632
+ * point drop, or a POI pick that subscribes to map clicks and queries POIs). The shared draft
633
+ * marker paints the active draft in the session's icon and color; an `update` session seeds the
634
+ * marker at the saved coordinate, and a `create` session shows nothing until the first click
635
+ * lands. The waypoint engine fires `onWaypointDraftChange` on every click that produces a draft
636
+ * change.
637
+ *
638
+ * It refuses a base-map switch for the duration of the edit, so a terrain swap cannot wipe the
639
+ * editable marker (released by `endWaypointEdit`), but leaves drag-pan enabled so the user can
640
+ * roam the map to a fresh POI or drop spot. Calling it while another waypoint edit is active
641
+ * replaces that edit: the active engine is disposed before the next is built, so at most one
642
+ * waypoint engine is ever attached. Idempotent for an unchanged `(waypointId, mode)`: calling it
643
+ * again leaves the engine in place, once what the engine refuses has been read, as on a first
644
+ * call. Mutual exclusion across segment edits is enforced one level up, at the tool layer.
645
+ *
646
+ * @throws {MountayaElementsError} When the client holds no edit engine, as `MapLibreViewClient`
647
+ * does, or when `initialLngLat` is a position no map can place. Both are read before anything
648
+ * changes: no edit is started, the map is not locked, and an edit the call would have replaced
649
+ * stays open.
650
+ */
651
+ beginWaypointEdit: (options: WaypointEditOptions) => void;
652
+ /**
653
+ * beginPointPick arms a generic point pick: while armed, each left click on the map emits the
654
+ * clicked `[lng, lat]` through `onPointPickChange`. `target` names what the coordinate stands for
655
+ * (a route endpoint, or a segment's split point); the map engine itself is target-agnostic and
656
+ * only captures clicks. The cursor and tooltip the user sees are mounted on the application's
657
+ * side by the shared edit-engine driver, exactly as the segment family's are.
658
+ *
659
+ * Each click the pick captures is taken: `onFeatureClick` reports none of them, so a click aimed
660
+ * at a line because the point is on it does not also select the feature under it. `onMapClick`
661
+ * still hears every click.
662
+ *
663
+ * It refuses a base-map switch for the duration of the pick, so a terrain swap cannot interrupt
664
+ * it (released by `endPointPick`), but leaves drag-pan enabled so the user can roam the map to the
665
+ * target before clicking. Calling it while a pick is already armed replaces it (the active engine
666
+ * is disposed before the next is built, so at most one is ever armed). Mutual exclusion against
667
+ * segment and waypoint edits is enforced one level up, at the tool layer. The pick renders
668
+ * nothing of its own: start and end pins paint through `setItineraryPreview`.
669
+ */
670
+ beginPointPick: (options: PointPickOptions) => void;
671
+ /**
672
+ * beginZoneEdit starts an editable zone, building the TerraDraw zone engine for its mode. It arms
673
+ * the matching draw mode (circle, polygon, sector, sensor or freehand) alongside TerraDraw's
674
+ * select mode, draws any seeded shape in the level color, and locks the map for the edit (a
675
+ * base-map switch is refused, so a terrain swap cannot wipe the editable feature). The editable
676
+ * feature is keyed on the zone id, so its draft maps straight back to the store; edits flow out
677
+ * through `onZoneDraftChange`.
678
+ *
679
+ * It also suppresses the edited zone's persisted tile copy, filtering the feature whose `id`
680
+ * property is the zone id out of the zone geometry layers, so the saved copy does not paint
681
+ * underneath the live editable feature. That is the dual-render guard `beginSegmentEdit` applies,
682
+ * here a filter (the reshape replaces the zone) rather than a paint dim.
683
+ *
684
+ * The "+" create cursor (`ZONE_CREATE_CURSOR`) is locked one level up by the zone editing hook
685
+ * for the duration, so a click reads as "draw the zone" rather than the default grab. That is
686
+ * the split the segment edit uses: the client raises the terrain block and hides the tile copy
687
+ * here, and the hook locks the cursor. `endZoneEdit` tears the engine down, restores the tile
688
+ * copy and lowers the terrain block. Calling this while another zone edit is active replaces
689
+ * that edit: the active engine is disposed before the next is built, so at most one zone engine
690
+ * is ever attached. Mutual exclusion against segment and waypoint edits (one authoring surface
691
+ * owns the engine at a time) is enforced one level up, at the tool layer.
692
+ *
693
+ * What the engine refuses is read first, a call that repeats the edit that stands included. A
694
+ * call for the zone that stands, in the same mode, keeps its engine and draws it in the colour
695
+ * the call states. A call under a new id, in the same mode and with a seed equal to the drawn
696
+ * shape (the first save of a new zone), keeps the engine under the new id and draws it in the
697
+ * colour the call states.
698
+ *
699
+ * @throws {MountayaElementsError} When the client holds no edit engine, as `MapLibreViewClient`
700
+ * does; when the seed is not a Polygon of one ring with no hole, or holds no coordinates; or
701
+ * when `color` is neither `#rrggbb` nor `#rgb`. Each is read before anything changes: no edit
702
+ * is started, the map is not locked, and an edit the call would have replaced stays open. When
703
+ * the drawing library refuses a seed past those (an open ring, longitudes more than half a turn
704
+ * apart), no edit is started and an edit the call would have replaced has ended. A zone astride
705
+ * the antimeridian is one continuous ring, its longitudes running past 180 or below -180, and
706
+ * it is drawn and answered as that ring.
707
+ */
708
+ beginZoneEdit: (options: ZoneEditOptions) => void;
709
+ /**
710
+ * beginBoundaryEdit starts an editable boundary box: it arms TerraDraw's rectangle mode alongside
711
+ * its select mode, draws any seeded box in the given color, and locks the map for the edit (a
712
+ * base-map switch is refused, so a terrain swap cannot wipe the editable feature). Exactly one box
713
+ * exists at a time (drawing a second replaces the first), and every change flows out through
714
+ * `onBoundaryDraftChange`.
715
+ *
716
+ * Unlike the zone family this seam owns its own create cursor: a boundary is edited in a
717
+ * self-contained surface with no hook layer above it to lock one. It is also deliberately
718
+ * narrower, with no per-level restyle, because a boundary carries no level.
719
+ *
720
+ * Calling it while another boundary edit is active replaces that edit; the active engine is
721
+ * disposed before the next is built, so at most one is ever attached. What the engine refuses
722
+ * is read first, a call that repeats the edit that stands included.
723
+ *
724
+ * @throws {MountayaElementsError} When the client holds no edit engine, as `MapLibreViewClient`
725
+ * does, or when `color` is neither `#rrggbb` nor `#rgb`, both read before the open boundary
726
+ * edit ends, which then stays open; or when the drawing library refuses the seeded box, one
727
+ * that holds `NaN`, after an edit the call would have replaced has ended. No edit is started
728
+ * and the map is not locked.
729
+ */
730
+ beginBoundaryEdit: (options: BoundaryEditOptions) => void;
731
+ /**
732
+ * endBoundaryEdit tears down the active boundary edit, disposing the engine (its rendered layers,
733
+ * sources and library-internal listeners, and the cursor lock it holds) and lowering the
734
+ * base-map-switch block, even on a defensive call when no engine is active.
735
+ */
736
+ endBoundaryEdit: () => void;
737
+ /**
738
+ * applyBoundaryDraft replaces the editing feature with the given box, in canonical form. A box
739
+ * that crosses the antimeridian is drawn up to the line from the side of its west edge, and one
740
+ * whose west edge is on the line is drawn whole from -180. The change it triggers carries the box
741
+ * as drawn and is flagged programmatic through `onBoundaryDraftChange`, so a subscriber skips its
742
+ * own echo unless it gave a box across the line. Each corner is drawn at nine decimals, so
743
+ * `getBoundaryDraft` answers the box as drawn. On an edit that has drawn nothing yet, the box is
744
+ * the edit's first and is seeded and selected. A no-op when no boundary edit is active.
745
+ *
746
+ * @throws {MountayaElementsError} When the drawing library refuses the box, one that holds `NaN`.
747
+ * Nothing is written and the draft stays as it was.
748
+ */
749
+ applyBoundaryDraft: (bbox: BoundingBox) => void;
750
+ /**
751
+ * clearBoundaryDraft removes the drawn box and arms the draw mode again, so the surface returns to
752
+ * its empty "drag to draw" state. It is how a resize by redrawing starts, and it emits a draft with
753
+ * a null bbox so the consumer's confirm disables again.
754
+ */
755
+ clearBoundaryDraft: () => void;
756
+ /**
757
+ * getBoundaryDraft returns the drawn box, or null before the first draw and after a clear. Read
758
+ * for a persist that must not depend on having observed every change.
759
+ */
760
+ getBoundaryDraft: () => BoundingBox | null;
761
+ /** isBoundaryEditing reports whether a boundary edit is currently armed. */
762
+ isBoundaryEditing: () => boolean;
763
+ /**
764
+ * onBoundaryDraftChange subscribes to every change to the active boundary edit: the draw, the
765
+ * corner resizes, the whole-box moves and the clears. Returns an unsubscribe. Subscribing before
766
+ * `beginBoundaryEdit` is valid: the client fans changes out to whoever is listening when they
767
+ * happen.
768
+ */
769
+ onBoundaryDraftChange: (cb: (draft: BoundaryDraft) => void) => () => void;
770
+ /**
771
+ * endZoneEdit tears down the active zone edit: it disposes the engine (its rendered layers,
772
+ * sources and library-internal listeners, and any cursor override it pushed), restores the
773
+ * edited zone's suppressed tile copy (dropping the exclusion filter, so the persisted geometry
774
+ * paints again), and lowers the base-map-switch block the edit held, even on a defensive call
775
+ * when no engine is active. A no-op beyond that release when no zone edit is active. After it no
776
+ * zone engine is attached and the saved zone paints again; the hook releases the cursor lock.
777
+ *
778
+ * It runs before the edit teardown's tile refetch (`editCancel` and the cross-family teardown
779
+ * call `refreshZoneTiles` right after this), so a reshape saved during the still-armed edit
780
+ * paints again against a layer whose suppression filter is already back to the manifest base.
781
+ */
782
+ endZoneEdit: () => void;
783
+ /**
784
+ * applyZoneDraft replaces the editing feature's geometry with the given draft shape: the swap an
785
+ * undo or redo restore performs. It is a programmatic write, so the change it triggers is
786
+ * flagged programmatic through `onZoneDraftChange`. A subscriber records its own interactive
787
+ * edits but must not record this replay again, or an undo would itself push a history entry and
788
+ * the stack could never unwind. A no-op when no zone edit is active, or when the geometry is not
789
+ * a Polygon (the shape every zone mode draws).
790
+ *
791
+ * The shape is drawn with each position as its longitude and latitude alone, at nine decimals,
792
+ * so a third ordinate and a tenth decimal are dropped and `getZoneDraft` answers the shape as
793
+ * drawn. On an edit that has drawn nothing yet (a create), the shape is the zone's first and is
794
+ * seeded and selected.
795
+ *
796
+ * @throws {MountayaElementsError} When the drawing library refuses the shape (a hole,
797
+ * longitudes more than half a turn apart, a number that is not finite). Nothing is written
798
+ * and the draft stays as it was. A zone astride the antimeridian is one continuous ring, its
799
+ * longitudes running past 180 or below -180, and it is drawn and answered as that ring.
800
+ */
801
+ applyZoneDraft: (geometry: Polygon) => void;
802
+ /**
803
+ * getZoneDraft returns the editing feature's current drawn shape and mode, or null when no zone
804
+ * edit is active or no shape has been drawn yet. A caller reads it to snapshot the draft for the
805
+ * history stack, or to build the geometry to persist.
806
+ */
807
+ getZoneDraft: () => ZoneDraft | null;
808
+ /**
809
+ * isZoneEditing reports whether a zone edit is currently armed on the client. With no argument
810
+ * it returns true while ANY zone engine is attached; with a `zoneId` it narrows the answer to
811
+ * whether the engine targets that specific id. It mirrors `isSegmentEditing` and
812
+ * `isWaypointEditing`, so callers read the three authoring families through one shape.
813
+ */
814
+ isZoneEditing: (zoneId?: string) => boolean;
815
+ /**
816
+ * setZoneDraftStyle recolors the active zone edit live (the engine's drawn area or line, and its
817
+ * handles) to the given level color. The zone's tile copy is hidden during the edit, so the
818
+ * editable render cannot rely on a tile refresh to pick up a recolor; this is the seam a mid-edit
819
+ * level change drives. A no-op when no zone edit is active, and when the colour is the one
820
+ * already drawn.
821
+ */
822
+ setZoneDraftStyle: (style: {
823
+ color: string;
824
+ }) => void;
825
+ /**
826
+ * onZoneDraftChange subscribes to every change to the active zone edit's geometry, emitting the
827
+ * current draft (the drawn shape and mode) with a flag telling an interactive edit (a draw, a
828
+ * vertex drag) from a programmatic write (`applyZoneDraft`, an undo or redo restore). A
829
+ * subscriber records an interactive change in history and skips its own programmatic echo, so an
830
+ * applied draft does not loop back into the history.
831
+ *
832
+ * A drag reaches it as `live` frames, one per pointer frame, closed by one `settled` draft when
833
+ * the pointer lets go (see `DraftPhase`), so a subscriber previews the frames and records the
834
+ * settled draft: one history step per gesture.
835
+ *
836
+ * Returns an unsubscribe. The subscription outlives individual edits and engine swaps (the
837
+ * `MapLibreClient` owns the registry, not the per-edit engine), so a caller subscribes once and
838
+ * unsubscribes when it stops editing entirely. The name parallels `onSegmentDraftChange`, so the
839
+ * authoring families read through one shape.
840
+ */
841
+ onZoneDraftChange: (cb: (draft: ZoneDraft) => void) => () => void;
842
+ /**
843
+ * setZoneTimeReference sets the epoch, in seconds, the zone tile layers evaluate their
844
+ * time-bound styling against: "now". MapLibre expressions cannot read the wall clock, so the
845
+ * renderer injects this value as a literal into the opacity and clock-symbol-visibility
846
+ * expressions: a zone whose `[start_at, end_at]` window does not contain the reference paints
847
+ * dimmed with a clock glyph, and an in-window (or unbounded) zone paints normally.
848
+ *
849
+ * The studio writes it as each clock minute turns, and on a camera move once the minute has
850
+ * turned, so the styling tracks real time while the tiles stay cached (a paint-property write,
851
+ * never a per-feature state or a tile refetch). The last reference is remembered and asserted
852
+ * again after a base-map switch replays the zone layers. A no-op when no zone tile layers are
853
+ * mounted.
854
+ */
855
+ setZoneTimeReference: (epochSeconds: number) => void;
856
+ /**
857
+ * ensureOverlayInZoomRange eases the camera's zoom into the overlay's `[minzoom, maxzoom]` range
858
+ * when the current zoom falls outside it. A pure helper with no state: it reads the current
859
+ * zoom, compares it against the overlay's range, and when needed eases to the nearest in-range
860
+ * value over a short animation, so an overlay turned on at the wrong zoom paints something
861
+ * visible right away. A no-op when the current zoom is already in range.
862
+ */
863
+ ensureOverlayInZoomRange: (overlay: OverlayZoomRange) => void;
864
+ /**
865
+ * endSegmentEdit tears down the active segment edit, disposing the engine (its rendered layers,
866
+ * sources and library-internal listeners) and restoring the segment's hidden tile copy, and
867
+ * releases both locks the edit held: it enables drag-pan again and lowers the base-map-switch
868
+ * block. It releases them even on a defensive call when no engine is active, so an end always
869
+ * lands the locks down. A no-op beyond that release when no segment edit is active. After it the
870
+ * tile render is the only copy on screen and no engine is attached.
871
+ */
872
+ endSegmentEdit: () => void;
873
+ /**
874
+ * endWaypointEdit tears down the active waypoint edit, disposing the engine (its marker source and
875
+ * layer, and any TerraDraw instance it owns), and lowers the base-map-switch block the edit held,
876
+ * even on a defensive call when no engine is active. A no-op beyond that release when no waypoint
877
+ * edit is active. After it no waypoint engine is attached.
878
+ */
879
+ endWaypointEdit: () => void;
880
+ /**
881
+ * endPointPick tears down the active point pick, disposing the engine (its click subscription),
882
+ * and lowers the base-map-switch block the pick held, even on a defensive call when no pick is
883
+ * armed. A no-op beyond that release when none is armed. After it no point-pick engine is
884
+ * attached.
885
+ */
886
+ endPointPick: () => void;
887
+ /**
888
+ * applyCamera applies a partial view (center, zoom, bearing, pitch, or any of them), leaving each
889
+ * omitted channel at its present value. It is the embed's default-view seam: a publisher captures
890
+ * the full anchor (center, zoom, bearing and pitch) and this applies every channel they set.
891
+ *
892
+ * When `center` is present the camera JUMPS to the whole view at once, with no animation: the
893
+ * captured anchor is the framing, so there is no fit-then-pan two-step. When `center` is absent it
894
+ * EASES only the named angle and zoom on the current center (a tilt, rotation or zoom overlay),
895
+ * matching `fitBounds`' easing. A view with no channels set is a no-op.
896
+ */
897
+ applyCamera: (view: CameraPose) => void;
898
+ /**
899
+ * fitBounds eases the camera to frame a `[west, south, east, north]` box.
900
+ *
901
+ * `padding` is an optional inset, in CSS pixels, kept between the box and the viewport edges:
902
+ * a single number for all four sides, or a per-edge object the embed uses to reserve extra room
903
+ * at the bottom for the docked elevation panel. `maxZoom` is an optional ceiling on the zoom the
904
+ * fit may reach, so a short route frames with surrounding context instead of zooming to street
905
+ * level. `animate` defaults to the renderer's animated ease; the embed's cold-load framing passes
906
+ * false, so the FIRST painted frame jumps straight to the route (no visible pan) under its loading
907
+ * cover and the reveal costs no latency. Any of them may be omitted; with all omitted the camera
908
+ * eases to the bare box under the zoom window's ceiling.
909
+ *
910
+ * The camera lands where the contract's fit computes it, as `cameraForBounds` of
911
+ * `@mountaya/elements/camera` answers it for the canvas and the zoom window the map holds, and
912
+ * as a map's own `fitBounds` lands it. A box whose west edge lies east of its east edge is read
913
+ * across the antimeridian. A padding that leaves the canvas no room moves nothing, and so does a
914
+ * box with an edge that is no number, where a map's own `fitBounds` refuses it.
915
+ */
916
+ fitBounds: (bounds: BoundingBox, padding?: FitBoundsPadding, maxZoom?: number, animate?: boolean) => void;
917
+ /**
918
+ * cameraForBounds resolves the camera a `fitBounds` with the SAME inputs would land on (the
919
+ * center and zoom that frame a `[west, south, east, north]` box under the given padding and zoom
920
+ * ceiling) WITHOUT moving the map. It mirrors `fitBounds`' arguments, and either the padding or
921
+ * the ceiling may be omitted.
922
+ *
923
+ * The camera is held under the zoom window's ceiling and not by its floor: a box past the floor
924
+ * answers the zoom it fits at, and a `fitBounds` of it lands on this camera once the floor stands
925
+ * at or under that zoom. The embed reads the resolved zoom to lower its pan floor to it, so the
926
+ * initial framing is never clamped above the route's fit zoom in a short viewport (a 480 px
927
+ * preview with a heavy bottom inset). Returns null when the padding leaves the canvas no room to
928
+ * frame the box in, and for a box with an edge that is no number, so the caller falls back to its
929
+ * unrelaxed default.
930
+ */
931
+ cameraForBounds: (bounds: BoundingBox, padding?: FitBoundsPadding, maxZoom?: number) => MapViewport | null;
932
+ /**
933
+ * hadInitialViewHash reports whether the map was CONSTRUCTED with a MapLibre `#view` hash on the
934
+ * URL: a genuine publisher default view, captured before the map writes its own `#view` on the
935
+ * first move.
936
+ *
937
+ * It is the signal the embed reads to decide whether to frame the route. A preview (whose source
938
+ * carries no `#view`) reports false and always frames, while a published embed that pasted a
939
+ * captured view reports true and defers to it, whatever the live hash a read of
940
+ * `window.location.hash` would see after the map wrote its own or a remount polluted it. A surface
941
+ * not bound to the hash never owns `#view`, so it reports false.
942
+ */
943
+ hadInitialViewHash: () => boolean;
944
+ /**
945
+ * prewarmTerrain frames the given bounds, padded generously so the camera eye and its sightline
946
+ * samples (which sit well outside the route) fall inside loaded coverage, and resolves once the
947
+ * DEM tiles for the route and its surroundings are loaded and painted. The video pipeline awaits
948
+ * it before resolving a flight, so the clearance pass's terrain reads (`sampleTerrainElevation`)
949
+ * hit warm tiles rather than null. Best-effort: it resolves even when no DEM is configured (the
950
+ * sampler then returns null and the clearance pass does nothing), so a caller never stalls
951
+ * waiting for terrain that will not arrive.
952
+ *
953
+ * The box is padded by its own span on each side, with a floor for a short route. It is read in
954
+ * canonical form (`normalizeBoundingBox`): a box across the antimeridian runs past 180 and is
955
+ * padded by its width across the line, and the padded box is held inside the latitudes the
956
+ * renderer frames, so a route that ends near a pole is warmed and never refused. A box with an
957
+ * edge at no finite coordinate frames nothing, and the call still resolves.
958
+ */
959
+ prewarmTerrain: (bounds: BoundingBox) => Promise<void>;
960
+ /**
961
+ * warmPoses jumps the camera through a STRIDED subset of the given flight poses, awaiting tile
962
+ * readiness at each stop, so the flight-zoom basemap, itinerary vector and DEM tiles the record
963
+ * (and the clearance sampler) needs are loaded and resident before the capture loop runs.
964
+ *
965
+ * `prewarmTerrain` warms only the whole-route fit zoom, while the flight records at a much closer
966
+ * zoom whose tiles were never requested; this visits the actual flight viewports, so no frame
967
+ * captures empty or black tiles for a zoom that was never warmed. It strides the poses (every Nth,
968
+ * capped so a long route warms a bounded number of viewports) and at each stop waits for the
969
+ * renderer to settle (the idle seam `waitForRender` uses), bounded per stop so a stalled tile
970
+ * fetch cannot hang the warm pass.
971
+ *
972
+ * Pair it with a generous map tile cache, so the warmed tiles stay resident through the flight
973
+ * rather than being evicted. The video pipeline calls it both before resolving the DEM-aware
974
+ * camera track (so the clearance sampler reads warm flight-zoom DEM) and before the record or
975
+ * preview flight. It honors `signal`: an abort stops the warm pass at the next stop and resolves.
976
+ * It never rejects: a best-effort warm that cannot complete still resolves, so the caller
977
+ * proceeds to the flight.
978
+ */
979
+ warmPoses: (poses: readonly RecordingCamera[], signal?: AbortSignal) => Promise<void>;
980
+ /**
981
+ * sampleTerrainElevation reads the DEM elevation, in meters, at the given `[lng, lat]` through
982
+ * the always-on 3D terrain, or null when terrain is not loaded there (off coverage, or no DEM
983
+ * configured). It is the render-free readout the camera clearance pass samples to keep the flight
984
+ * above the surrounding terrain; unlike `sampleOverlayAt` it returns the bare elevation with no
985
+ * slope or aspect, since the clearance maths needs only the height. Pair it with `prewarmTerrain`,
986
+ * so the tiles it reads are loaded before the sampling runs.
987
+ */
988
+ sampleTerrainElevation: (lngLat: [number, number]) => number | null;
989
+ /**
990
+ * isSegmentEditing reports whether a segment edit is currently armed on the client. With no
991
+ * argument it returns true while ANY segment engine is attached; with a `segmentId` it narrows the
992
+ * answer to whether the engine targets that specific id.
993
+ */
994
+ isSegmentEditing: (segmentId?: string) => boolean;
995
+ /**
996
+ * isWaypointEditing reports whether a waypoint edit is currently armed on the client. With no
997
+ * argument it returns true while ANY waypoint engine is attached; with a `waypointId` it narrows
998
+ * the answer to whether the engine targets that specific id. It mirrors `isSegmentEditing`, so
999
+ * callers read the two families through one shape.
1000
+ */
1001
+ isWaypointEditing: (waypointId?: string) => boolean;
1002
+ /**
1003
+ * getSegmentDraft returns the editing feature's current handle coordinates (the directions vias,
1004
+ * or the freehand vertices), or null when no segment edit is active. A caller reads it to
1005
+ * snapshot the draft for the history stack, or to build the geometry to persist.
1006
+ */
1007
+ getSegmentDraft: () => Position[] | null;
1008
+ /**
1009
+ * getWaypointDraft returns the active waypoint engine's current draft snapshot (position, icon
1010
+ * and color), or null when no waypoint edit is active or no draft has landed yet.
1011
+ */
1012
+ getWaypointDraft: () => WaypointDraftSnapshot | null;
1013
+ /** getViewport returns the map's current center and zoom. */
1014
+ getViewport: () => MapViewport;
1015
+ /**
1016
+ * getBearing returns the map's current bearing in degrees (0 is north, clockwise). It is the
1017
+ * synchronous companion to `getViewport` for the one reader, the studio snapshot, that needs the
1018
+ * rotation beside the center and zoom. `getViewport` is a center and zoom pair for its many
1019
+ * callers, and the continuous bearing readout rides `onViewportChange`.
1020
+ */
1021
+ getBearing: () => number;
1022
+ /**
1023
+ * getCameraPose returns the map's full current camera state (center, zoom, pitch and bearing) as
1024
+ * a render-free {@link RecordingCamera}. It is the snapshot a recording session captures before a
1025
+ * flight, so the view from before the run is restored afterwards, and the seed a wizard reads to
1026
+ * frame its dedicated map. It completes the synchronous camera readout beside `getViewport` and
1027
+ * `getBearing` for the one caller, the video pipeline, that needs every channel at once.
1028
+ */
1029
+ getCameraPose: () => RecordingCamera;
1030
+ /**
1031
+ * jumpToPose snaps the camera to a full pose (center, zoom, pitch and bearing) with no animation.
1032
+ * It is the synchronous companion to the preview and record flights for a one-off seek: where
1033
+ * `previewPoses` and `recordPoses` step a whole pose array over time, this lands the camera on a
1034
+ * single pose at once, so a scrubbed preview frame matches the pitch and bearing it would play or
1035
+ * record at that fraction rather than flattening to a plain center and zoom move.
1036
+ */
1037
+ jumpToPose: (pose: RecordingCamera) => void;
1038
+ /**
1039
+ * previewPoses flies the camera along the given fully resolved poses on THIS map, with no frame
1040
+ * capture: the live rehearsal of a recording. It steps the poses over the plan's wall-clock
1041
+ * duration on an animation-frame loop, reporting progress through `onProgress` (the `recording`
1042
+ * phase, a fraction from 0 to 1), and restores the camera from before the preview on completion
1043
+ * or abort. It honors `options.signal`: an abort stops the loop at the next frame, restores the
1044
+ * camera and resolves, so a cancelled preview is a clean resolve and never a thrown error. A
1045
+ * preview that finishes resolves too, and so does one asked of a map with no recorder, which
1046
+ * does not fly. It rejects in one case: a throw inside a frame (of the map, of the marker or of
1047
+ * `onProgress`) rejects with what was thrown, once the camera is restored and the dot is
1048
+ * cleared. So a caller that must settle its own state awaits it in a `try` with a `finally`.
1049
+ * The map does no track maths; the poses arrive resolved.
1050
+ *
1051
+ * `options.markers`, when supplied, are the per-frame route-marker positions aligned to the poses
1052
+ * (marker i for pose i): the map sets the moving "you are here" dot to each on its frame and
1053
+ * clears it when the flight settles, so the dot tracks the trail. `options.planDurationMs` is the
1054
+ * plan's wall-clock length (the base duration plus every hold): the rehearsal plays for that long
1055
+ * and dwells on holds, so the preview matches the recording's speed rather than racing the
1056
+ * fixed-cadence grid. The pose count alone undercounts the holds (they extend the wall-clock time
1057
+ * the frames span, not their number), so the duration is threaded from the caller that resolved
1058
+ * the plan. `options.focusGlyphUrl`, when set, is the activity silhouette the moving dot masks
1059
+ * over its white disc, so the preview marker carries the itinerary's activity; absent, the dot
1060
+ * renders as a plain disc.
1061
+ */
1062
+ previewPoses: (poses: RecordingCamera[], options: {
1063
+ focusGlyphUrl?: string | undefined;
1064
+ markers?: [number, number][] | undefined;
1065
+ onProgress?: ((progress: VideoProgress) => void) | undefined;
1066
+ planDurationMs?: number | undefined;
1067
+ signal: AbortSignal;
1068
+ }) => Promise<void>;
1069
+ /**
1070
+ * recordPoses captures and encodes the given fully resolved poses into a video, one frame per
1071
+ * pose, on THIS map. It asserts the map was built with `preserveDrawingBuffer` (the WebGL back
1072
+ * buffer must survive the present step for a per-frame read), freezes the renderer clock, and
1073
+ * for each pose sets the virtual clock, jumps the camera, awaits the render, reads the back
1074
+ * buffer, composites the watermark and encodes the frame, checking `options.signal` between
1075
+ * frames so an abort leaves the loop. It reports progress through `onProgress` (preparing, then
1076
+ * recording, then encoding) and resolves to a `VideoRecordingResult`: the encoded blob and its
1077
+ * extension; a cancelled result when aborted; a cancelled result with `reason: "unavailable"`
1078
+ * for a run that could not start, a map with no recorder among them; or, when the recording
1079
+ * fails, no blob, `cancelled: false` and the `error` it stopped on. A result with no blob names
1080
+ * the extension its output's container resolves to: `mp4`, or `webm` for each WebM output. The camera and the
1081
+ * renderer clock are restored on finish, abort or failure. It NEVER rejects: a capture failure, a missing
1082
+ * `mediabunny` or a cancellation resolves to a structured result. `output` is the render-free
1083
+ * encoder configuration the recording targets.
1084
+ *
1085
+ * `options.markers`, when supplied, are the per-frame route-marker positions aligned to the poses
1086
+ * (marker i for pose i): the map sets the moving "you are here" dot to each before capturing its
1087
+ * frame and clears it on every exit path, so the dot is captured moving along the trail.
1088
+ * `options.profile`, when supplied, is the live profile overlay's recording input (the per-frame
1089
+ * samples, the design and the video-scoped format): the recorder composites the chosen design's
1090
+ * data band onto each captured frame, so a recording matches the live preview overlay frame for
1091
+ * frame. Absent, no overlay is composited and the run is byte for byte the run without one.
1092
+ * `options.focusGlyphUrl`, when set, is the activity silhouette the recorder tints and stamps on
1093
+ * the moving dot each frame, so the recorded marker matches the preview's; absent, the dot is a
1094
+ * plain disc. Whether the frames carry the Mountaya watermark is the map's organization's to
1095
+ * answer, as `MountayaMap.loadOrganization` reads it: no option takes the mark off. It governs
1096
+ * the MARK only: tile attribution is a licence obligation of the sources the map draws, the
1097
+ * renderer composites it, and no organization removes it.
1098
+ */
1099
+ recordPoses: (poses: readonly RecordingCamera[], output: RecordOutput, options: {
1100
+ focusGlyphUrl?: string | undefined;
1101
+ markers?: [number, number][] | undefined;
1102
+ onProgress?: ((progress: VideoProgress) => void) | undefined;
1103
+ profile?: RecordProfile | undefined;
1104
+ signal: AbortSignal;
1105
+ /**
1106
+ * Whether the caller has just warmed these very poses' viewports, every frame's zoom and
1107
+ * pitch included, so no warm pass runs.
1108
+ *
1109
+ * @default false
1110
+ */
1111
+ warmed?: boolean | undefined;
1112
+ }) => Promise<VideoRecordingResult>;
1113
+ /**
1114
+ * tryGeolocate centers the map on the device location (framing the accuracy radius) when a fix
1115
+ * lands, and reports the outcome through a structured `GeolocateResult`, so a caller branches on
1116
+ * the failure reason without driving a separate state machine: `denied` for a refused permission,
1117
+ * `unavailable` for an unreachable sensor or a timeout, `no_api` for an environment without a
1118
+ * geolocation API. It never rejects: every failure mode resolves to `{ ok: false, reason }`, so
1119
+ * the studio stays usable without a fix.
1120
+ */
1121
+ tryGeolocate: () => Promise<GeolocateResult>;
1122
+ /**
1123
+ * lockCursor pins the given CSS cursor on the map for the duration of an edit (a larger blue cross
1124
+ * while adding the next point, a "+" while hovering the line to insert one). While locked,
1125
+ * `applyCursor` only records its value as the base, so the layer hover handlers cannot clear the
1126
+ * pinned cursor when the pointer leaves a feature. The lock also sets a `data-cursor-lock`
1127
+ * attribute on the map container for CSS targeting, and survives the pointer leaving and entering
1128
+ * the canvas again. It takes any cursor string, because the editor decides the specific edit
1129
+ * cursor, not the map. A second lock overrides the first; `unlockCursor` releases it.
1130
+ */
1131
+ lockCursor: (cursor: string) => void;
1132
+ /**
1133
+ * onMapClick subscribes to left clicks on the map canvas, emitting the `[lng, lat]` the click
1134
+ * landed at. It fires for every click, whatever layers are under the cursor; feature-scoped click
1135
+ * routing rides `onFeatureClick` instead. The waypoint-from-POI flow uses this unscoped seam: the
1136
+ * placement hook queries POIs at the clicked coordinate and dispatches a create when one resolves.
1137
+ * Returns an unsubscribe that detaches the listener. The listener survives a base-map switch (the
1138
+ * event engine holds it and attaches nothing again on a restyle) and is swept on dispose.
1139
+ *
1140
+ * The longitude is within [-180, 180], over a copy of the world too: a click on the meridian
1141
+ * at -170 reads -170 where the camera, panned across the antimeridian, counts it as 190.
1142
+ */
1143
+ onMapClick: (cb: (lngLat: [number, number]) => void) => () => void;
1144
+ /**
1145
+ * onFeatureClick subscribes to clicks on the features of the given layers, emitting a
1146
+ * platform-neutral `FeatureHit` (the feature's id and properties) for the topmost feature under
1147
+ * the click. It scopes the hit-test to those layer ids, so a click off all of them does not fire,
1148
+ * and a caller subscribes to the itinerary line and point layers and learns which segment or
1149
+ * waypoint was clicked without inspecting the renderer.
1150
+ *
1151
+ * One click calls back at most once per subscription, however many of its layers hold a feature
1152
+ * under the click: a waypoint that sits on its route reports the waypoint. A click another
1153
+ * listener took is not reported, as {@link MapClient.onContextMenu} states it, so the callback
1154
+ * runs a microtask after the click, in the same task. An armed point pick
1155
+ * ({@link MapClient.beginPointPick}) takes every click it captures.
1156
+ *
1157
+ * `options.accepts` narrows the subscription to some of its layers' features: the click
1158
+ * reports the topmost one it accepts, and a click on none of them does not fire.
1159
+ *
1160
+ * Returns an unsubscribe that detaches the listener. The listener survives a base-map switch
1161
+ * (the event engine holds it and attaches nothing again on a restyle) and is swept on dispose
1162
+ * even if a caller never unsubscribes. An empty list of layer ids is a subscription that does
1163
+ * nothing, and its unsubscribe does nothing either.
1164
+ */
1165
+ onFeatureClick: (layerIds: string[], cb: (hit: FeatureHit) => void, options?: FeatureSubscriptionOptions | undefined) => () => void;
1166
+ /**
1167
+ * onFeatureHover subscribes to the pointer entering and leaving the features of the given layers,
1168
+ * firing `onEnter` with the `FeatureHit` under the pointer and `onLeave` when it moves off them
1169
+ * or out of the map.
1170
+ *
1171
+ * The pointer is hit-tested at most once per animation frame, for every subscription at once,
1172
+ * and each one hears the topmost feature on its own layers: `onEnter` again on every hit-test
1173
+ * that still finds one, so a consumer acts on it idempotently, and a leave before the enters of
1174
+ * the same hit-test. The pointer cursor is set while any subscription has a feature and cleared
1175
+ * once none has, through the cursor seam, so an edit's pinned cursor lock is never wiped by a
1176
+ * hover.
1177
+ *
1178
+ * A subscription made while the pointer rests over the map is told what is under it on the next
1179
+ * frame, with no pointer move.
1180
+ *
1181
+ * `options.accepts` narrows the subscription to some of its layers' features: a feature it
1182
+ * refuses is read as no feature, so it fires no enter and sets no pointer cursor.
1183
+ *
1184
+ * Returns an unsubscribe that ends this subscription, and reports no leave to it. When the last
1185
+ * subscription ends with the pointer cursor set, the cursor is cleared one animation frame
1186
+ * later, unless a subscription is made before that frame: a caller that remakes its subscription
1187
+ * in one task keeps the cursor, with no flicker. Subscriptions survive a base-map switch and are
1188
+ * swept on dispose. An empty list of layer ids is a subscription that does nothing.
1189
+ */
1190
+ onFeatureHover: (layerIds: string[], handlers: FeatureHoverHandlers, options?: FeatureSubscriptionOptions | undefined) => () => void;
1191
+ /**
1192
+ * onContextMenu subscribes to right-clicks on the map, emitting the `[lng, lat]` under the cursor
1193
+ * and the container pixel it sits at. The browser's native context menu is suppressed for as
1194
+ * long as a subscription stands, so the studio's own popup takes its place. Returns an
1195
+ * unsubscribe that removes the listener. It mirrors `onViewportChange`: a discrete user gesture
1196
+ * surfaced through one subscription, so a human right-click and an agent-issued open share the
1197
+ * one context-menu path.
1198
+ *
1199
+ * A right-click another listener took is not reported. An edit that handles a right-click
1200
+ * itself (one on a handle of the line being edited) marks the renderer's event as prevented,
1201
+ * and the callback is skipped for it, whichever of the two listeners was attached first. The
1202
+ * callback therefore runs once the gesture has been dispatched to every listener: in the same
1203
+ * task, a microtask after the right-click.
1204
+ *
1205
+ * The longitude is within [-180, 180], over a copy of the world too, as
1206
+ * {@link MapClient.onMapClick} states it; the pixel is the one the pointer read.
1207
+ */
1208
+ onContextMenu: (cb: (event: MapContextMenuEvent) => void) => () => void;
1209
+ /**
1210
+ * onPointerMove subscribes to pointer moves over the map, emitting the `[lng, lat]` under the
1211
+ * cursor and the container pixel it sits at on every move. Returns an unsubscribe that removes the
1212
+ * listener. It is the seam a cursor-following overlay (the editing tooltip) reads to track the
1213
+ * pointer without the high-frequency move ever entering reactive state; like `onViewportChange`
1214
+ * it is a passive readout, and several consumers may subscribe independently.
1215
+ *
1216
+ * The longitude is within [-180, 180], over a copy of the world too, as
1217
+ * {@link MapClient.onMapClick} states it; the pixel is the one the pointer read.
1218
+ */
1219
+ onPointerMove: (cb: (move: MapPointerMove) => void) => () => void;
1220
+ /**
1221
+ * onPointerLeave fires once when the pointer crosses out of the map canvas element. Listeners
1222
+ * receive no point: the move stream already gave them the last position they need. It is the
1223
+ * companion to `onPointerMove` a cursor-following overlay reads to hide itself when the pointer
1224
+ * enters a panel or exits the map, so the overlay never stays glued to the last pixel. Returns an
1225
+ * unsubscribe that detaches the listener.
1226
+ */
1227
+ onPointerLeave: (cb: () => void) => () => void;
1228
+ /**
1229
+ * onViewportChange subscribes to camera moves, emitting the bearing, zoom and center on every
1230
+ * move. Returns an unsubscribe that removes the listener.
1231
+ */
1232
+ onViewportChange: (cb: (viewport: MapViewportChange) => void) => () => void;
1233
+ /**
1234
+ * onViewportSettle subscribes to the end of a camera move: it calls back once as the camera
1235
+ * comes to rest, with the bearing, zoom and center it rests at.
1236
+ *
1237
+ * It is the renderer's `moveend`, reported for every move whatever began it: a pan, a zoom, a
1238
+ * rotation or a tilt by the reader, and a move a call made (`applyCamera`, `fitBounds`,
1239
+ * `setViewport`, an ease into an overlay's zoom range). A move that eases is reported once, as
1240
+ * it ends, and a jump is reported in the step it is made.
1241
+ *
1242
+ * It is the companion of {@link MapClient.onViewportChange}, which calls back on every frame
1243
+ * of the move: what a frame cannot afford belongs here. And it states what
1244
+ * {@link MapClient.waitForRender} does not: that one resolves as soon as the map has nothing
1245
+ * to load, the middle of a gesture included.
1246
+ *
1247
+ * @param cb Called with the camera as each move ends. A listener that throws stops no other.
1248
+ * @returns An unsubscribe that removes the listener.
1249
+ */
1250
+ onViewportSettle: (cb: (viewport: MapViewportChange) => void) => () => void;
1251
+ /**
1252
+ * onResize calls back each time the renderer has resized its canvas to its container: after
1253
+ * the renderer's own observer of the container has resized it, and after a call that resizes
1254
+ * it. The canvas holds its new size by the time the callback runs, so a caller that frames the
1255
+ * view for the canvas, as an embed fitting itself to a resized frame does, reads the size from
1256
+ * the container then.
1257
+ *
1258
+ * A container change is told once the renderer resizes for it, which it may hold back by a
1259
+ * moment to take a burst of changes in one resize. A renderer that has lost its drawing
1260
+ * context resizes nothing and tells nothing until the context returns.
1261
+ *
1262
+ * @param cb Called after each resize. A listener that throws stops no other.
1263
+ * @returns An unsubscribe that removes the listener.
1264
+ */
1265
+ onResize: (cb: () => void) => () => void;
1266
+ /**
1267
+ * onTilesAccessRequired subscribes to the tile-fetch failures the application must surface as
1268
+ * product state: a refusal of access on a tile or source request, which the Tile API answers
1269
+ * with a 401 for a credential it does not accept, a 402 for a Tile API entitlement the
1270
+ * agreement does not include (talk to us at https://mountaya.com/en/contact/ to add one), and a
1271
+ * 403 for a resource the credential may not read.
1272
+ *
1273
+ * The renderer fetches tiles outside the REST client (auth rides the request transform set at
1274
+ * construction), so no response status is observed there. The client reads it off the renderer's
1275
+ * error stream and calls back for those three statuses, the ones `MountayaMap` reports as
1276
+ * `accessrequired`, and never for a transient tile error (a dropped connection, a 404, a 5xx),
1277
+ * which is normal and recoverable. Nor does it call back for a refusal the map tells nobody of:
1278
+ * a 401 or a 403 of a request that left with a session token the client has replaced since, or
1279
+ * under the key alone before its first token arrived. The callback carries no status: an
1280
+ * application that words an expired credential apart from an entitlement the agreement does not
1281
+ * include listens to `accessrequired` on the map, which carries it. The application raises an
1282
+ * access notice from it, and lowers it from {@link MapClient.onTilesAccessRestored}.
1283
+ *
1284
+ * @returns An unsubscribe that removes the listener.
1285
+ */
1286
+ onTilesAccessRequired: (cb: () => void) => () => void;
1287
+ /**
1288
+ * onTilesAccessRestored subscribes to the end of the refusals
1289
+ * {@link MapClient.onTilesAccessRequired} reports: it calls back when the last source the API
1290
+ * was refusing loads a tile.
1291
+ *
1292
+ * A refusal stands per source, for as long as that source's latest answer is one, and a tile
1293
+ * of the source that loads ends it. So one tile sent with a session token that had just
1294
+ * expired is answered by the next tile sent with the fresh one, and an account with no
1295
+ * entitlement, whose every tile is refused, stays refused however many tiles its itineraries
1296
+ * load beside them. A source that leaves the style takes its refusal with it, which the next
1297
+ * tile to load from any source finds. A refusal that names no source, a style or a sprite,
1298
+ * belongs to a request made once per style and ends when the next style loads.
1299
+ *
1300
+ * The callback runs once as the last standing refusal ends, and again only after a later
1301
+ * refusal has ended in turn. The refusals are the client's own, kept from its construction: a
1302
+ * subscription made while one stands is told when it ends, whether or not it heard it begin.
1303
+ *
1304
+ * @returns An unsubscribe that removes the listener.
1305
+ */
1306
+ onTilesAccessRestored: (cb: () => void) => () => void;
1307
+ /**
1308
+ * isTilesAccessRequired answers whether a refusal of access stands now: `true` from the first
1309
+ * refusal {@link MapClient.onTilesAccessRequired} reports until
1310
+ * {@link MapClient.onTilesAccessRestored} reports them over, and `false` otherwise.
1311
+ *
1312
+ * It is the standing answer the two subscriptions report the changes of. The client keeps it
1313
+ * from its construction, subscribed to or not, because a host is handed the client after the
1314
+ * map's first requests went out and a refusal among them is reported to nobody. So read it
1315
+ * once when subscribing, then follow the two signals. It is already `true` when the required
1316
+ * signal calls back and already `false` when the restored one does, and it answers `false` on
1317
+ * a disposed client.
1318
+ */
1319
+ isTilesAccessRequired: () => boolean;
1320
+ /**
1321
+ * onSegmentDraftChange subscribes to every change to the active segment edit's geometry,
1322
+ * emitting the current draft (the handle coordinates) with a flag telling an interactive edit (a
1323
+ * drag, an insert) from a programmatic write (`applySegmentDraft`, an undo or redo restore). A
1324
+ * subscriber records an interactive change in history and skips its own programmatic echo, so an
1325
+ * applied draft does not loop back into the history. CONTINUOUS: it fires per drag frame, each
1326
+ * frame `live`, and the drag closes with one `settled` draft when the pointer lets go (see
1327
+ * `DraftPhase`), so a subscriber previews the frames and records the settled draft: one history
1328
+ * step per gesture.
1329
+ *
1330
+ * Returns an unsubscribe. The subscription outlives individual edits and engine swaps (it is the
1331
+ * seam the editor reads for the whole session, and the `MapLibreClient` owns the registry, not
1332
+ * the per-edit engine), so a caller subscribes once and unsubscribes when it stops editing
1333
+ * entirely.
1334
+ */
1335
+ onSegmentDraftChange: (cb: (draft: SegmentDraft) => void) => () => void;
1336
+ /**
1337
+ * onSegmentViaPrompt subscribes to the active segment edit's ask-the-user seam: the engine emits a
1338
+ * {@link SegmentViaPromptEvent} when a gesture lands on an existing handle, INSTEAD of acting on
1339
+ * it, and waits for the application to resolve the ambiguity. DISCRETE: it fires once per such
1340
+ * gesture. Returns an unsubscribe; like `onSegmentDraftChange` the subscription is owned by the
1341
+ * client, so it outlives individual edits and engine swaps and a caller subscribes once.
1342
+ */
1343
+ onSegmentViaPrompt: (cb: (prompt: SegmentViaPromptEvent) => void) => () => void;
1344
+ /**
1345
+ * onWaypointDraftChange subscribes to the waypoint engine's draft-change seam, emitting the
1346
+ * coordinate the click landed at and, in `poi-pick` mode, the optional POI seed, each time the
1347
+ * engine resolves a placement. DISCRETE: it fires once per click that produces a change, not per
1348
+ * pointer move. The name parallels `onSegmentDraftChange` so both families read through one
1349
+ * shape; the difference in cadence is the one stated here. Returns an unsubscribe; the
1350
+ * subscription outlives individual edits and engine swaps.
1351
+ */
1352
+ onWaypointDraftChange: (cb: (change: WaypointEngineDraftChange) => void) => () => void;
1353
+ /**
1354
+ * onPointPickChange subscribes to the active point pick's capture seam, emitting the `[lng, lat]`
1355
+ * each armed click resolves to. DISCRETE: it fires once per click, not per pointer move. The name
1356
+ * parallels `onWaypointDraftChange`, so the families read through one shape. Returns an
1357
+ * unsubscribe; the subscription is held on the client (not the per-pick engine), so it outlives an
1358
+ * engine swap and a caller subscribes once for the whole session.
1359
+ */
1360
+ onPointPickChange: (cb: (change: PointPickChange) => void) => () => void;
1361
+ /**
1362
+ * project converts a `[lng, lat]` map coordinate to its container pixel, the inverse of
1363
+ * `unproject`. It positions the context-menu popup when an open is driven by a coordinate alone
1364
+ * (an agent-issued open carries no pixel), so the popup anchors at the spot a right-click there
1365
+ * would.
1366
+ */
1367
+ project: (lngLat: [number, number]) => [number, number];
1368
+ /**
1369
+ * queryOverlayFeaturesAt returns the active overlay's vector features rendered at the given
1370
+ * `[lng, lat]`, read from the layers set by `setOverlayQueryLayers`. It scopes the query to those
1371
+ * layers, so it surfaces the active overlay's own features (a weather cell's temperature and wind,
1372
+ * for instance) rather than every rendered feature. It is best-effort: with no overlay query
1373
+ * layers set (a raster overlay, or no overlay) it yields an empty list, so the readout does
1374
+ * nothing then. The results feed the right-click context menu's overlay readout.
1375
+ *
1376
+ * The place is read on the copy of the world the camera shows, as {@link MapClient.queryPoisAt}
1377
+ * reads it.
1378
+ */
1379
+ queryOverlayFeaturesAt: (lngLat: [number, number]) => OverlayFeature[];
1380
+ /**
1381
+ * queryPoisAt returns the points of interest rendered at the given `[lng, lat]`, read from the
1382
+ * vector tiles under that point. It is best-effort: a basemap (or a zoom) with no POI vector layer
1383
+ * there yields an empty list, leaving the coordinate-only floor. The results feed the right-click
1384
+ * context menu's name and category readout.
1385
+ *
1386
+ * The place is read on the copy of the world the camera shows, whichever turn its longitude is
1387
+ * written in, so a position inside [-180, 180] and the one a pointer reads past it over a copy
1388
+ * of the world answer alike.
1389
+ */
1390
+ queryPoisAt: (lngLat: [number, number]) => PoiInfo[];
1391
+ /**
1392
+ * zoneAtPoint returns the zone rendered under the given `[lng, lat]`, read from the mounted zone
1393
+ * geometry layers (fills, lines and points), or null when no zone is there. It mirrors
1394
+ * `queryPoisAt` and `queryOverlayFeaturesAt`: the MapLibre client projects the coordinate to a
1395
+ * pixel and scopes a rendered-feature query to the zone layer ids (resolved at runtime from the
1396
+ * live manifest by their stable source layer), so the renderer stays inside the map package and
1397
+ * the raw renderer feature never crosses {@link MapClient}; only the cleaned `ContextMenuZone`
1398
+ * does. The result feeds the right-click context menu's zone section. It returns the TOPMOST zone
1399
+ * when several overlap (the first rendered feature), keeping the readout to a single zone the way
1400
+ * the POI readout shows the first place.
1401
+ *
1402
+ * The place is read on the copy of the world the camera shows, as {@link MapClient.queryPoisAt}
1403
+ * reads it.
1404
+ */
1405
+ zoneAtPoint: (lngLat: [number, number]) => ContextMenuZone | null;
1406
+ /**
1407
+ * sampleOverlayAt returns a per-cursor terrain readout (elevation in meters, slope in degrees,
1408
+ * aspect as a compass bearing, a whole number from 0 to 359) whenever 3D terrain is loaded
1409
+ * under the cursor, whichever overlay (if any) is active. Each value is a whole number. On flat
1410
+ * ground the slope is 0 and the readout holds no `aspect` member, since no direction is
1411
+ * downhill there: an aspect of 0 is a north-facing slope. The studio bakes terrain into every
1412
+ * session, so the readout is on in effect always. It complements `queryOverlayFeaturesAt`, which
1413
+ * reads the vector-tile features the active overlay paints. Returns null only when terrain is not
1414
+ * enabled or the cursor falls outside loaded terrain coverage, and the right-click readout reads
1415
+ * null as "no terrain sample". Overlay-specific classification (the steepness band, for
1416
+ * instance) is layered on by the context-menu tool after it reads the active overlay's slug.
1417
+ *
1418
+ * The terrain is read on the copy of the world the camera shows, as
1419
+ * {@link MapClient.queryPoisAt} reads a place, so a place inside [-180, 180] reads the elevation
1420
+ * drawn under it over a map panned across the antimeridian.
1421
+ */
1422
+ sampleOverlayAt: (lngLat: [number, number]) => OverlayFeature | null;
1423
+ /** removeTileSources removes the layers and sources for the given tile-source ids. */
1424
+ removeTileSources: (ids: string[]) => void;
1425
+ /**
1426
+ * refreshItineraryTiles tells MapLibre to refetch every tile of the itinerary tile sources
1427
+ * currently mounted (the manifest entries whose layers paint the itinerary line and point source
1428
+ * layers). It is the post-commit seam the write-through path drives, so a freshly persisted
1429
+ * segment or waypoint shows up at the current camera without a pan or a zoom change to evict the
1430
+ * tile cache. A no-op when no itinerary tile sources are mounted (a render-free test, a base map
1431
+ * that has not replayed them yet). It is independent of every other overlay, so a tile refresh
1432
+ * is scoped to the itinerary geometry and other tiled overlays keep their cached tiles.
1433
+ *
1434
+ * `bustToken`, when given (a collaboration change frame's stream id), scopes the refetch to a
1435
+ * deterministic per-change URL every peer shares, unique per change where a bare entity revision
1436
+ * would collide across entities. Absent, a wall-clock token forces a plain cache miss: the local
1437
+ * post-commit path, which has no change frame to key on.
1438
+ */
1439
+ refreshItineraryTiles: (bustToken?: string) => void;
1440
+ /**
1441
+ * refreshItineraryTilesWhenSettled is the deferred sibling of `refreshItineraryTiles`: it runs the
1442
+ * same itinerary tile-cache bust, but only once the map has SETTLED rather than on the frame an
1443
+ * edit teardown leaves still rendering. The itinerary edit-teardown paths (a segment or waypoint
1444
+ * commit or cancel, the navigate-away teardown) call THIS, so the bust lands on an idle frame,
1445
+ * where MapLibre's `setTiles` reliably refetches the tile at the current zoom. That is the idle
1446
+ * constraint `refreshZoneTiles` documents, met here by the client deferring the bust instead of
1447
+ * the caller sequencing it after a teardown.
1448
+ *
1449
+ * It is guaranteed to run exactly once, and it can never hang. Use it after a teardown; the
1450
+ * synchronous `refreshItineraryTiles` stays for the recolor, delete and speed write-throughs that
1451
+ * run while the map is already idle. A no-op when no itinerary tile sources are mounted.
1452
+ * `bustToken` threads through to the deferred bust as it does for `refreshItineraryTiles`.
1453
+ */
1454
+ refreshItineraryTilesWhenSettled: (bustToken?: string) => void;
1455
+ /**
1456
+ * refreshZoneTiles tells MapLibre to refetch every tile of the zone tile sources currently mounted
1457
+ * (the manifest entries whose layers paint the zone fill, line and point source layers). It is the
1458
+ * post-mutation seam the zone write paths drive (a create, a delete, and the edit TEARDOWN after a
1459
+ * reshape commit), so a freshly persisted or deleted zone shows up at the current camera without a
1460
+ * pan or a zoom change to evict the tile cache. It mirrors `refreshItineraryTiles` exactly (the
1461
+ * same `setTiles` bust); only the source predicate differs. A no-op when no zone tile sources are
1462
+ * mounted.
1463
+ *
1464
+ * It must run when the map is idle, never mid-edit: the `setTiles` bust does not paint again while
1465
+ * the live draw engine owns the zone's render. The `editCommit` tool keeps the edit armed and does
1466
+ * NOT refetch (the live draft covers the in-edit view); the refetch is owned by `editCancel` and
1467
+ * the cross-family teardown (the panel-close path), which call it right after `endZoneEdit`
1468
+ * disposes the engine.
1469
+ */
1470
+ refreshZoneTiles: () => void;
1471
+ /**
1472
+ * clearMiniBearingMarker removes the bearing marker the Street View mini-map draws, and does
1473
+ * nothing when that marker is not present. It pairs with `setMiniBearingMarker`: the panorama's
1474
+ * unmount calls it, so the marker never outlives the modal.
1475
+ */
1476
+ clearMiniBearingMarker: () => void;
1477
+ /**
1478
+ * setMiniBearingMarker drops, or moves, a single arrow marker echoing the Street View panorama's
1479
+ * current position and heading: the arrow rotates by `headingDeg` from north, so the same map
1480
+ * orientation reads as a walker's facing direction. A second call moves the one marker rather
1481
+ * than stacking, so a panorama sweep never accumulates markers. It is independent of the segment
1482
+ * edit, the search highlight and the profile marker, so it neither begins nor disturbs any of
1483
+ * them. Best-effort and render-only: it never throws.
1484
+ */
1485
+ setMiniBearingMarker: (position: [number, number], headingDeg: number) => void;
1486
+ /**
1487
+ * setMiniCenter centers the Street View mini-map on the given `[lng, lat]` without touching the
1488
+ * camera's zoom, pitch or bearing: the mini-map is pinned to its initial zoom and to a top-down,
1489
+ * north-up framing for the life of the panorama, so this is a position-only move. It pairs with
1490
+ * `setMiniBearingMarker`: the panorama walking forward updates both the marker (the bearing
1491
+ * arrow's anchor) and the camera, so the surrounding context follows the walker. Render-only and
1492
+ * best-effort: it never throws.
1493
+ */
1494
+ setMiniCenter: (position: [number, number]) => void;
1495
+ /** resetNorth resets the bearing and pitch to 0 (true north, top-down). */
1496
+ resetNorth: () => void;
1497
+ /**
1498
+ * setBaseTerrain swaps the base layer to the given terrain config (resolved from the layers
1499
+ * manifest). It tears down the overlay tile sources and replays them across the style reload, and
1500
+ * asserts the active constraints, itinerary emphasis and exclusions again once the replayed layers
1501
+ * land. It swaps nothing while an authoring edit or a point pick is active, since the style
1502
+ * reload would wipe the editable feature mid-edit; every begin call raises that block and every
1503
+ * end call lowers it. A switch asked for meanwhile is held, the last one when there are several,
1504
+ * and applied when the edit ends, so a caller issues it once and never again. A begin call that
1505
+ * throws after it ended the edit it replaces applies the switch that edit held. On a disposed
1506
+ * client it swaps nothing and holds nothing.
1507
+ */
1508
+ setBaseTerrain: (config: BaseTerrainConfig) => void;
1509
+ /**
1510
+ * setConstraints applies the given camera bounds, setting only the fields present. They survive a
1511
+ * style reload and are asserted again after `setBaseTerrain`, so a terrain switch never drops
1512
+ * them. A `maxBounds` box is read in canonical form (`normalizeBoundingBox`), and one a turn or
1513
+ * more wide is handed to MapLibre as the whole world a hair under a turn wide, centred on the
1514
+ * box, as `MountayaMap.setConstraints` hands it.
1515
+ *
1516
+ * A `maxBounds` with no area leaves the camera nowhere to stand and is refused, and the call
1517
+ * applies nothing, its zoom limits included.
1518
+ *
1519
+ * A zoom limit is read with the one already in force: a call that states one limit keeps the
1520
+ * other, and the two must leave a window that holds a zoom. A call that states both moves the
1521
+ * window whole, upward or downward, whatever the last call left. A window that cannot hold is
1522
+ * refused before anything is applied or kept, so the window in force stands and is the one a
1523
+ * later `setBaseTerrain` asserts.
1524
+ *
1525
+ * @throws {MountayaElementsError} When `maxBounds` has no width, no height or an edge at no
1526
+ * finite coordinate; when `minZoom` or `maxZoom` is no finite number; when the minimum the
1527
+ * call leaves is above the maximum it leaves; or when the renderer refuses a zoom outside the
1528
+ * range it draws, with the renderer's own error as the cause.
1529
+ */
1530
+ setConstraints: (constraints: MapConstraints) => void;
1531
+ /**
1532
+ * setSegmentDraftStyle recolors the active segment edit live (the engine's draggable handles and,
1533
+ * in directions mode, the routed line) to the given segment color. The segment's tile copy is
1534
+ * hidden during the edit, so the editable render cannot rely on a tile refresh to pick up a
1535
+ * recolor; this is the seam a mid-edit color change drives. A no-op when no segment edit is
1536
+ * active.
1537
+ */
1538
+ setSegmentDraftStyle: (style: {
1539
+ color: string;
1540
+ }) => void;
1541
+ /**
1542
+ * setSegmentViaPromptPending suspends (true) or resumes (false) the active segment engine's own
1543
+ * click grammar while a {@link SegmentViaPromptEvent} is open. Without it the very click that
1544
+ * dismisses the prompt would also add the next point, since the engine treats a click on an empty
1545
+ * map as an append, so the application raises this as it opens the prompt and lowers it as it
1546
+ * resolves or dismisses it. A no-op when no segment edit is active.
1547
+ */
1548
+ setSegmentViaPromptPending: (pending: boolean) => void;
1549
+ /**
1550
+ * setWaypointDraftStyle updates the rendered draft marker's icon glyph and color live, so a
1551
+ * side-panel attribute change shows on the map without a full apply round trip. It resolves the
1552
+ * catalog sprite id `section-icon-<icon>-<hex>`, so the image-missing handler rasterizes it on
1553
+ * demand. A no-op when no waypoint edit is active.
1554
+ */
1555
+ setWaypointDraftStyle: (style: {
1556
+ color: string;
1557
+ icon: string;
1558
+ }) => void;
1559
+ /**
1560
+ * setHillshadeIllumination sets the illumination direction, in degrees, on the hillshade layers
1561
+ * (the sun's azimuth at the selected time, for instance), so terrain shading tracks the time of
1562
+ * day the user picks.
1563
+ *
1564
+ * `direction` is a compass bearing: 0 lights from the north and 90 from the east. Any finite
1565
+ * number is taken and wrapped into one turn, so 495 and -225 both light from 135. The renderer
1566
+ * takes a direction from 0 to 359, so a bearing between 359 and 360 lights from the nearer of
1567
+ * the two ends: 359 below the half degree and 0 from it on. A `direction` that is no finite
1568
+ * number leaves the lighting as it is.
1569
+ */
1570
+ setHillshadeIllumination: (direction: number) => void;
1571
+ /**
1572
+ * setMapLanguage switches the base map's label language. The base style's symbol layers carry a
1573
+ * `name:{lang}` field per language (the OpenMapTiles schema), so each label-bearing layer's text
1574
+ * field is rewritten to `["coalesce", ["get", "name:" + language], ["get", "name"]]`: the
1575
+ * localized name when present, the default `name` otherwise. Symbol layers whose label does not
1576
+ * read a name field (road shields, icon-only markers) are left untouched. The choice persists and
1577
+ * is asserted again after a base-map switch, so a terrain swap keeps the selected language.
1578
+ * `language` is one of `MAP_LANGUAGES` (a lowercase code); an unknown one still coalesces back to
1579
+ * `name`.
1580
+ */
1581
+ setMapLanguage: (language: string) => void;
1582
+ /**
1583
+ * setOverlayQueryLayers sets which layer ids a right-click overlay-feature query inspects: the
1584
+ * active overlay's vector layers. The active-overlay hook sets it when an overlay resolves and
1585
+ * clears it (an empty array) on cleanup or when no overlay is active, so `queryOverlayFeaturesAt`
1586
+ * scopes its query to the current overlay rather than every rendered feature. An empty set makes
1587
+ * that query return nothing (a raster overlay, or no overlay, surfaces nothing).
1588
+ */
1589
+ setOverlayQueryLayers: (layerIds: string[]) => void;
1590
+ /**
1591
+ * prewarmItineraryIcons asks the map to register ahead of time the waypoint and endpoint sprites
1592
+ * the active itinerary's tiles will paint. Each entry pairs a Nucleo glyph name (every name the
1593
+ * itinerary tile overlay can emit: droplet, tent, flag-start, flag-end, and the rest) with the hex
1594
+ * color the sprite is stamped in (a waypoint's own color, or a segment's color for the
1595
+ * automatically emitted flag-start and flag-end endpoints).
1596
+ *
1597
+ * The image-missing handler stays as the safety net for sprites that slip through (a waypoint an
1598
+ * agent added, a dynamic recolor), but the warm pass means the first paint of an itinerary never
1599
+ * logs `Image … could not be loaded` for a sprite the tiles always reference. Best-effort and
1600
+ * render-only: it never throws, and an unknown glyph is skipped without a word.
1601
+ */
1602
+ prewarmItineraryIcons: (icons: {
1603
+ color: string;
1604
+ icon: string;
1605
+ }[]) => void;
1606
+ /**
1607
+ * setItineraryEmphasis rebuilds the opacity of the itinerary tile geometries to reflect the given
1608
+ * focus, dimming the unfocused ones. It only touches the itinerary layers (other overlays keep
1609
+ * their opacity), and it keeps the last emphasis so it is asserted again after the tile layers are
1610
+ * added again on a base-terrain switch. Imperative, because the cursor that drives it is a
1611
+ * transient, high-frequency value.
1612
+ */
1613
+ setItineraryEmphasis: (target: ItineraryEmphasis) => void;
1614
+ /**
1615
+ * setItineraryExclusions suppresses the given itinerary features from the tile render (the segment
1616
+ * ids dropped from the line layers, the waypoint ids dropped from the point layers) by filtering
1617
+ * them out of the matching tile layers. A feature is excluded while it is drawn as an editable
1618
+ * element elsewhere, so the tile copy and the editable copy never double up. It only touches the
1619
+ * itinerary layers, and it keeps the last set so it is asserted again after the tile layers are
1620
+ * added again on a base-terrain switch. Empty lists restore the full itinerary.
1621
+ */
1622
+ setItineraryExclusions: (exclusions: ItineraryExclusions) => void;
1623
+ /**
1624
+ * setItineraryPreview paints a NON-PERSISTED itinerary draft (an import preview) as a read-only
1625
+ * GeoJSON overlay (the lines and waypoints the DTO carries), or clears it with `null`. A persisted
1626
+ * itinerary paints through the always-on vector tiles, so this is the only render on the map a
1627
+ * draft (which has no tiles yet) gets.
1628
+ *
1629
+ * The render is idempotent (a second call updates the one source in place rather than stacking),
1630
+ * survives a base-terrain style reload (the last preview is replayed onto the fresh style), and
1631
+ * lives on its own source and layers, so it never touches the itinerary tiles or any other
1632
+ * overlay. The DTO is policy-free: it paints exactly the lines it is given (solid or dashed), so
1633
+ * the ours-versus-theirs styling is the caller's decision, not the renderer's. `null` removes the
1634
+ * layers and the source, idempotently.
1635
+ */
1636
+ setItineraryPreview: (preview: ItineraryPreviewRender | null) => void;
1637
+ /**
1638
+ * setItinerarySegmentColor paints every itinerary segment in ONE color instead of each segment's
1639
+ * own (the segment lines plus the derived start and end flag markers, which carry the segment's
1640
+ * color), or restores the per-segment colors with `null`. An author's own waypoint pins keep the
1641
+ * colors they chose either way.
1642
+ *
1643
+ * This is the embedded studio's organization branding: a publisher whose site is one accent color
1644
+ * wants their embedded maps to read that way, while the same itinerary keeps its authoring colors
1645
+ * in the studio and in a shared view. It only touches the itinerary layers, and it keeps the last
1646
+ * color so it is asserted again after the tile layers are added again on a base-terrain switch. A
1647
+ * color must be a hex string, because it is written as it is into a paint property and into a
1648
+ * marker sprite id, and an unchanged value is a no-op.
1649
+ */
1650
+ setItinerarySegmentColor: (color: string | null) => void;
1651
+ /**
1652
+ * setAccessRestrictionsVisibility shows or hides the restricted stretches of every itinerary the
1653
+ * map draws from its tiles: the stripes over a route where its access is restricted, and their
1654
+ * warning icons. A hidden icon answers no click.
1655
+ *
1656
+ * This is the embedded studio's `with_access_restrictions`: a publisher may draw their routes
1657
+ * without the warnings, while the studio and a shared view always draw them. The choice is kept
1658
+ * across a base-map switch, the layers stay in the style while hidden so showing them again
1659
+ * fetches nothing, and an unchanged value is a no-op. The stretches of a segment under edit are
1660
+ * the edit's, and are drawn whatever this says.
1661
+ */
1662
+ setAccessRestrictionsVisibility: (visible: boolean) => void;
1663
+ /**
1664
+ * setActiveItinerarySegments registers the LineString coordinate arrays the waypoint magnet
1665
+ * snaps onto (the active itinerary's segment geometries), so a click near one of them lands the
1666
+ * draft marker on the line. The studio writes it from `useStudioMapSync` whenever the active
1667
+ * itinerary, or its segments, change; an empty list disables the magnet, so a fresh studio session
1668
+ * with no itinerary open drops points freely. The geometries are kept on the client, so the engine
1669
+ * constructor needs no fresh injection each time it is armed.
1670
+ */
1671
+ setActiveItinerarySegments: (lines: readonly Position[][]) => void;
1672
+ /**
1673
+ * setProfileMarker drops (or, with null, clears) a single marker at the given `[lng, lat]`: the
1674
+ * map's echo of the elevation profile's hovered position. The profile drives it as the cursor
1675
+ * sweeps the chart, so the point under the chart cursor is shown on the map; passing a new
1676
+ * coordinate moves the one marker rather than stacking, and null removes it (the cursor left the
1677
+ * chart).
1678
+ *
1679
+ * The marker is a white teardrop pin anchored at its tip, so its point marks the exact coordinate.
1680
+ * The optional `icon` descriptor fills the pin's head (the elevation profile passes the
1681
+ * itinerary's activity silhouette, and an armed map gesture passes its own verb's glyph), while
1682
+ * null or omitted renders the plain white pin. A later call carrying a DIFFERENT descriptor
1683
+ * repaints the head rather than only moving the pin, so a surface that takes the marker over from
1684
+ * another is not left wearing the previous gesture's glyph. Only strings cross this seam, so the
1685
+ * map package needs no application type. It is independent of a segment edit and of the location
1686
+ * marker, so it neither begins nor disturbs either. Best-effort and render-only: it never throws.
1687
+ */
1688
+ setProfileMarker: (lngLat: [number, number] | null, icon?: ProfileMarkerIcon | null) => void;
1689
+ /**
1690
+ * setVideoFocusMarker drops (or, with null, clears) the moving "you are here" dot the video
1691
+ * preview and record drive along the route: the point on the trail under the camera for the
1692
+ * current frame. The preview and record loop sets it each frame, so the dot tracks the route, and
1693
+ * clears it when the flight settles, so the recording captures a moving cursor on the trail.
1694
+ *
1695
+ * It is a small centered dot rather than the teardrop `setProfileMarker` anchors at its tip, since
1696
+ * the video flight is shot from a tilted, nearly overhead camera. It is independent of the
1697
+ * profile, search and mini-map markers, so it neither begins nor disturbs any of them. Best-effort
1698
+ * and render-only: it never throws.
1699
+ */
1700
+ setVideoFocusMarker: (lngLat: [number, number] | null) => void;
1701
+ /**
1702
+ * setSearchHighlight renders the transient search-result overlay for the most recent selection (a
1703
+ * place pin, a POI category icon, or the chain from a way's polyline to its dashed bounds
1704
+ * rectangle to a pin), tearing down any previous render first so only the latest selection is
1705
+ * visible. Passing `null` clears the current highlight, idempotently: a clear with nothing on
1706
+ * screen does nothing.
1707
+ *
1708
+ * The render is render-only and lives on its own transient source and layers, so it never
1709
+ * interacts with the itinerary tiles or any other overlay; the POI variant reuses the tile
1710
+ * overlay's icon and color contract, so a search-result POI marker overlaps the tile-rendered POI
1711
+ * pixel for pixel at the zoom levels where both are visible.
1712
+ */
1713
+ setSearchHighlight: (payload: SearchHighlight | null) => void;
1714
+ /**
1715
+ * setPeerDraft renders, or updates, the read-only ghost of a collaborator's in-flight edit for
1716
+ * one entity, in the peer's own color, as a LIVE edit someone owns: a segment glows (a blurred
1717
+ * halo under a solid core) with an endpoint puck at its leading vertex, a zone tints its fill under
1718
+ * the same glow outline, and a waypoint is a solid ring under a pulsing halo. The halo breathes on
1719
+ * a shared animation loop, held still for a reader who prefers reduced motion.
1720
+ *
1721
+ * It is a plain GeoJSON overlay that NEVER arms TerraDraw: the local user cannot grab a peer's
1722
+ * ghost, which only shows what the peer is drawing. `geometry` is the GeoJSON for the kind (a
1723
+ * LineString, a Point or MultiPoint, or a Polygon), and a mismatched type is skipped. The optional
1724
+ * `label` is the peer's name, painted above a segment's endpoint puck when the active style
1725
+ * exposes glyphs; with no glyphs (or no label) the puck stands alone rather than rendering broken
1726
+ * text.
1727
+ *
1728
+ * Calling it again for the same entity moves the ghost in place, and the ghost survives a base-map
1729
+ * or terrain switch (it renders again on the new style, like the tile overlays). There is one
1730
+ * ghost per entity, keyed by {@link PeerDraftEntity}, so many collaborators' drafts coexist.
1731
+ * Render-only and best-effort: it never throws, and never disturbs the itinerary tiles, the local
1732
+ * edit, or another ghost.
1733
+ */
1734
+ setPeerDraft: (entity: PeerDraftEntity, geometry: Geometry, color: string, label?: string) => void;
1735
+ /**
1736
+ * clearPeerDraft removes the ghost for one entity (the collaborator committed, cancelled, or
1737
+ * left). Idempotent: clearing an entity with no ghost on screen does nothing. Render-only and
1738
+ * best-effort: it never throws.
1739
+ */
1740
+ clearPeerDraft: (entity: PeerDraftEntity) => void;
1741
+ /**
1742
+ * setSourceTiles refreshes a tile source's URLs in place (an overlay's timestamp change, for
1743
+ * instance) without a remove and add, so the tiles refetch with no flicker. The URLs stand for
1744
+ * the overlay they were set on: across a base-map switch, and across a clear and a mount of
1745
+ * the same overlay in the same slot. Another overlay mounted on the source id is drawn from
1746
+ * the manifest's URLs.
1747
+ */
1748
+ setSourceTiles: (sourceId: string, tiles: string[]) => void;
1749
+ /**
1750
+ * setStreetviewCoverage shows or hides the Street View coverage raster overlay (drawn during a
1751
+ * pegman drag).
1752
+ */
1753
+ setStreetviewCoverage: (visible: boolean) => void;
1754
+ /**
1755
+ * setStreetviewCorridor draws (or, on null, clears) a soft band along the given route lines during
1756
+ * a pegman drag: the embed surface's droppable zone, shown beside the Street View coverage overlay
1757
+ * so a visitor sees where they may drop and where imagery exists. Each line is a `[lng, lat]`
1758
+ * coordinate array, and `radiusMeters` is the drop-gate radius, so the band is drawn at that true
1759
+ * ground width on each side. A draw over a band already on the map replaces it, its lines and
1760
+ * its width, so a caller redraws on a moved route with no clear in between. An empty list clears
1761
+ * as `null` does, and a clear reads no radius.
1762
+ *
1763
+ * @throws {MountayaElementsError} On a draw whose `radiusMeters` is not a finite number above 0.
1764
+ * It is thrown before anything is drawn, and the message names the argument and its value.
1765
+ */
1766
+ setStreetviewCorridor: (lines: [number, number][][] | null, radiusMeters: number) => void;
1767
+ /** setViewport moves the camera to the given center and zoom. */
1768
+ setViewport: (viewport: MapViewport) => void;
1769
+ /**
1770
+ * unlockCursor releases the cursor lock `lockCursor` set, removes the `data-cursor-lock`
1771
+ * attribute, and restores the cursor to the last value `applyCursor` was asked for, so ending an
1772
+ * edit lands the cursor on the natural hover state for the pointer's current position. A no-op
1773
+ * when nothing is locked.
1774
+ */
1775
+ unlockCursor: () => void;
1776
+ /**
1777
+ * unproject converts a pixel coordinate (a pegman drop point, for instance) to its `[lng, lat]`
1778
+ * map coordinate.
1779
+ */
1780
+ unproject: (point: [number, number]) => [number, number];
1781
+ /**
1782
+ * waitForCategoryOverlay answers once the category overlay of the given slug is on the map:
1783
+ * `true` when it is drawn, at once when it already is, and `false` when the signal aborts or
1784
+ * the client is disposed first.
1785
+ *
1786
+ * It is the wait of a caller that selected an overlay and did not mount it. A studio tool
1787
+ * writes the selection to a store and a binding calls {@link MapClient.setCategoryOverlay} in
1788
+ * reaction, a turn or more after the tool's own. Until then nothing is queued and nothing is
1789
+ * in flight, so {@link MapClient.waitForRender} resolves within a frame over a map that holds
1790
+ * none of the overlay. Wait for the overlay first, then for the render of its tiles.
1791
+ *
1792
+ * The wait ends on the mount of that overlay and on no other: another overlay drawn in the
1793
+ * slot meanwhile, a clear, and an enrichment of the same slug leave it waiting. The answer is
1794
+ * read once every overlay write asked for so far has run. It never rejects, and it runs no
1795
+ * timer of its own: pass a signal to bound it.
1796
+ *
1797
+ * The answer says the client holds the overlay as its category overlay, and is never read off
1798
+ * the style. A base-map switch in flight draws the overlay again on the style it brings, so a
1799
+ * wait asked meanwhile answers `true` while the map holds none of the overlay's sources yet.
1800
+ * The {@link MapClient.waitForRender} made next waits for the switch and for what it draws
1801
+ * again.
1802
+ *
1803
+ * @param slug The slug of the overlay awaited, as its manifest entry states it.
1804
+ * @param options.signal Ends the wait when it aborts, with `false`.
1805
+ * @returns `true` once the client holds the overlay as its category overlay, `false` when the
1806
+ * wait ended first.
1807
+ */
1808
+ waitForCategoryOverlay: (slug: string, options?: {
1809
+ signal?: AbortSignal | undefined;
1810
+ }) => Promise<boolean>;
1811
+ /**
1812
+ * waitForRender resolves once the overlay enabled most recently has rendered, so a caller can read
1813
+ * a sample of it: every requested tile for the current view is loaded and painted and no
1814
+ * transition is in flight. It resolves once the map has nothing in flight and no resize of its
1815
+ * canvas on its way, read again in the next animation frame, and otherwise on the next render
1816
+ * settle that has neither; a style reload in flight (a base-map switch) defers the resolve until
1817
+ * the new style loads, so the sample reads the replayed layers rather than the ones being torn
1818
+ * down. An overlay whose drawing is still queued behind an earlier one is waited for first, so the
1819
+ * resolve never comes before its sources are on the map. The listener never leaks: it clears
1820
+ * itself on resolve and is swept on dispose. It never rejects, and it resolves when the client is
1821
+ * disposed. Overlay perception awaits it before sampling rendered features, so a tiles-first read
1822
+ * happens after the tiles it reads are on screen.
1823
+ */
1824
+ waitForRender: () => Promise<void>;
1825
+ /** zoomIn increments the zoom by one step, animated. */
1826
+ zoomIn: () => void;
1827
+ /** zoomOut decrements the zoom by one step, animated. */
1828
+ zoomOut: () => void;
1829
+ }
1830
+ export { PointPickOptions as C, VideoSeam as D, TileRequestTransform as E, WaypointCursorOptions as O, PointPickChange as S, TileRequest as T, OverlayFeature as _, FeatureSubscriptionOptions as a, PeerDraftKind as b, ItineraryExclusions as c, ItineraryPreviewWaypoint as d, MapClient as f, MapViewportChange as g, MapPointerMove as h, FeatureHoverHandlers as i, ItineraryPreviewLine as l, MapContextMenuEvent as m, ContextMenuZone as n, GeolocateResult as o, MapConstraints as p, FeatureHit as r, ItineraryEmphasis as s, BaseTerrainConfig as t, ItineraryPreviewRender as u, OverlayZoomRange as v, ProfileMarkerIcon as w, PoiInfo as x, PeerDraftEntity as y };
1831
+ //# sourceMappingURL=chunk-C82N1gQX.d.ts.map