@performant-software/geospatial 3.1.5-beta.0 → 3.1.5

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 (739) hide show
  1. package/dist/index.cjs100.js +1 -1
  2. package/dist/index.cjs100.js.map +1 -1
  3. package/dist/index.cjs101.js +1 -1
  4. package/dist/index.cjs101.js.map +1 -1
  5. package/dist/index.cjs102.js +1 -1
  6. package/dist/index.cjs102.js.map +1 -1
  7. package/dist/index.cjs103.js +1 -1
  8. package/dist/index.cjs103.js.map +1 -1
  9. package/dist/index.cjs104.js +1 -1
  10. package/dist/index.cjs104.js.map +1 -1
  11. package/dist/index.cjs105.js +1 -1
  12. package/dist/index.cjs105.js.map +1 -1
  13. package/dist/index.cjs106.js +1 -1
  14. package/dist/index.cjs106.js.map +1 -1
  15. package/dist/index.cjs107.js +1 -1
  16. package/dist/index.cjs107.js.map +1 -1
  17. package/dist/index.cjs108.js +1 -1
  18. package/dist/index.cjs108.js.map +1 -1
  19. package/dist/index.cjs109.js +1 -1
  20. package/dist/index.cjs109.js.map +1 -1
  21. package/dist/index.cjs110.js +1 -1
  22. package/dist/index.cjs110.js.map +1 -1
  23. package/dist/index.cjs111.js +1 -1
  24. package/dist/index.cjs111.js.map +1 -1
  25. package/dist/index.cjs112.js +1 -1
  26. package/dist/index.cjs112.js.map +1 -1
  27. package/dist/index.cjs113.js +1 -1
  28. package/dist/index.cjs113.js.map +1 -1
  29. package/dist/index.cjs114.js +1 -1
  30. package/dist/index.cjs114.js.map +1 -1
  31. package/dist/index.cjs115.js +1 -1
  32. package/dist/index.cjs115.js.map +1 -1
  33. package/dist/index.cjs116.js +1 -1
  34. package/dist/index.cjs116.js.map +1 -1
  35. package/dist/index.cjs117.js +1 -1
  36. package/dist/index.cjs117.js.map +1 -1
  37. package/dist/index.cjs118.js +1 -1
  38. package/dist/index.cjs118.js.map +1 -1
  39. package/dist/index.cjs119.js +1 -1
  40. package/dist/index.cjs119.js.map +1 -1
  41. package/dist/index.cjs120.js +1 -1
  42. package/dist/index.cjs120.js.map +1 -1
  43. package/dist/index.cjs121.js +1 -1
  44. package/dist/index.cjs121.js.map +1 -1
  45. package/dist/index.cjs122.js +1 -1
  46. package/dist/index.cjs122.js.map +1 -1
  47. package/dist/index.cjs123.js +1 -1
  48. package/dist/index.cjs123.js.map +1 -1
  49. package/dist/index.cjs124.js +1 -1
  50. package/dist/index.cjs124.js.map +1 -1
  51. package/dist/index.cjs125.js +1 -1
  52. package/dist/index.cjs125.js.map +1 -1
  53. package/dist/index.cjs126.js +1 -1
  54. package/dist/index.cjs126.js.map +1 -1
  55. package/dist/index.cjs127.js +1 -1
  56. package/dist/index.cjs127.js.map +1 -1
  57. package/dist/index.cjs128.js +1 -1
  58. package/dist/index.cjs128.js.map +1 -1
  59. package/dist/index.cjs129.js +1 -1
  60. package/dist/index.cjs129.js.map +1 -1
  61. package/dist/index.cjs130.js +1 -1
  62. package/dist/index.cjs130.js.map +1 -1
  63. package/dist/index.cjs131.js +1 -1
  64. package/dist/index.cjs131.js.map +1 -1
  65. package/dist/index.cjs132.js +13 -1
  66. package/dist/index.cjs132.js.map +1 -1
  67. package/dist/index.cjs133.js +1 -1
  68. package/dist/index.cjs133.js.map +1 -1
  69. package/dist/index.cjs134.js +1 -1
  70. package/dist/index.cjs134.js.map +1 -1
  71. package/dist/index.cjs135.js +1 -1
  72. package/dist/index.cjs135.js.map +1 -1
  73. package/dist/index.cjs136.js +1 -1
  74. package/dist/index.cjs136.js.map +1 -1
  75. package/dist/index.cjs137.js +1 -1
  76. package/dist/index.cjs137.js.map +1 -1
  77. package/dist/index.cjs138.js +1 -1
  78. package/dist/index.cjs138.js.map +1 -1
  79. package/dist/index.cjs139.js +1 -1
  80. package/dist/index.cjs139.js.map +1 -1
  81. package/dist/index.cjs14.js +1 -1
  82. package/dist/index.cjs140.js +1 -13
  83. package/dist/index.cjs140.js.map +1 -1
  84. package/dist/index.cjs141.js +1 -1
  85. package/dist/index.cjs141.js.map +1 -1
  86. package/dist/index.cjs142.js +1 -1
  87. package/dist/index.cjs142.js.map +1 -1
  88. package/dist/index.cjs143.js +1 -1
  89. package/dist/index.cjs143.js.map +1 -1
  90. package/dist/index.cjs144.js +1 -1
  91. package/dist/index.cjs144.js.map +1 -1
  92. package/dist/index.cjs145.js +1 -1
  93. package/dist/index.cjs145.js.map +1 -1
  94. package/dist/index.cjs146.js +1 -1
  95. package/dist/index.cjs146.js.map +1 -1
  96. package/dist/index.cjs147.js +1 -1
  97. package/dist/index.cjs147.js.map +1 -1
  98. package/dist/index.cjs148.js +1 -1
  99. package/dist/index.cjs148.js.map +1 -1
  100. package/dist/index.cjs149.js +1 -1
  101. package/dist/index.cjs149.js.map +1 -1
  102. package/dist/index.cjs15.js +1 -1
  103. package/dist/index.cjs15.js.map +1 -1
  104. package/dist/index.cjs150.js +1 -1
  105. package/dist/index.cjs150.js.map +1 -1
  106. package/dist/index.cjs151.js +1 -1
  107. package/dist/index.cjs151.js.map +1 -1
  108. package/dist/index.cjs152.js +1 -1
  109. package/dist/index.cjs152.js.map +1 -1
  110. package/dist/index.cjs153.js +1 -1
  111. package/dist/index.cjs153.js.map +1 -1
  112. package/dist/index.cjs154.js +1 -1
  113. package/dist/index.cjs154.js.map +1 -1
  114. package/dist/index.cjs155.js +1 -1
  115. package/dist/index.cjs155.js.map +1 -1
  116. package/dist/index.cjs156.js +1 -1
  117. package/dist/index.cjs156.js.map +1 -1
  118. package/dist/index.cjs157.js +1 -1
  119. package/dist/index.cjs157.js.map +1 -1
  120. package/dist/index.cjs158.js +1 -1
  121. package/dist/index.cjs158.js.map +1 -1
  122. package/dist/index.cjs159.js +1 -1
  123. package/dist/index.cjs159.js.map +1 -1
  124. package/dist/index.cjs16.js +1 -1
  125. package/dist/index.cjs16.js.map +1 -1
  126. package/dist/index.cjs160.js +1 -1
  127. package/dist/index.cjs160.js.map +1 -1
  128. package/dist/index.cjs161.js +1 -1
  129. package/dist/index.cjs161.js.map +1 -1
  130. package/dist/index.cjs162.js +1 -1
  131. package/dist/index.cjs162.js.map +1 -1
  132. package/dist/index.cjs163.js +1 -1
  133. package/dist/index.cjs163.js.map +1 -1
  134. package/dist/index.cjs164.js +1 -1
  135. package/dist/index.cjs164.js.map +1 -1
  136. package/dist/index.cjs165.js +1 -1
  137. package/dist/index.cjs165.js.map +1 -1
  138. package/dist/index.cjs166.js +1 -1
  139. package/dist/index.cjs166.js.map +1 -1
  140. package/dist/index.cjs167.js +1 -1
  141. package/dist/index.cjs167.js.map +1 -1
  142. package/dist/index.cjs168.js +1 -1
  143. package/dist/index.cjs168.js.map +1 -1
  144. package/dist/index.cjs169.js +1 -1
  145. package/dist/index.cjs169.js.map +1 -1
  146. package/dist/index.cjs17.js +1 -1
  147. package/dist/index.cjs17.js.map +1 -1
  148. package/dist/index.cjs170.js +1 -1
  149. package/dist/index.cjs170.js.map +1 -1
  150. package/dist/index.cjs171.js +1 -1
  151. package/dist/index.cjs171.js.map +1 -1
  152. package/dist/index.cjs172.js +1 -1
  153. package/dist/index.cjs172.js.map +1 -1
  154. package/dist/index.cjs173.js +1 -1
  155. package/dist/index.cjs173.js.map +1 -1
  156. package/dist/index.cjs174.js +1 -1
  157. package/dist/index.cjs174.js.map +1 -1
  158. package/dist/index.cjs175.js +1 -1
  159. package/dist/index.cjs175.js.map +1 -1
  160. package/dist/index.cjs176.js +1 -1
  161. package/dist/index.cjs176.js.map +1 -1
  162. package/dist/index.cjs177.js +1 -1
  163. package/dist/index.cjs177.js.map +1 -1
  164. package/dist/index.cjs178.js +1 -1
  165. package/dist/index.cjs178.js.map +1 -1
  166. package/dist/index.cjs179.js +1 -1
  167. package/dist/index.cjs179.js.map +1 -1
  168. package/dist/index.cjs18.js +1 -1
  169. package/dist/index.cjs18.js.map +1 -1
  170. package/dist/index.cjs180.js +1 -1
  171. package/dist/index.cjs180.js.map +1 -1
  172. package/dist/index.cjs181.js +1 -1
  173. package/dist/index.cjs181.js.map +1 -1
  174. package/dist/index.cjs182.js +1 -1
  175. package/dist/index.cjs182.js.map +1 -1
  176. package/dist/index.cjs183.js +1 -1
  177. package/dist/index.cjs183.js.map +1 -1
  178. package/dist/index.cjs184.js +1 -1
  179. package/dist/index.cjs184.js.map +1 -1
  180. package/dist/index.cjs185.js +1 -1
  181. package/dist/index.cjs185.js.map +1 -1
  182. package/dist/index.cjs186.js +1 -1
  183. package/dist/index.cjs186.js.map +1 -1
  184. package/dist/index.cjs187.js +1 -1
  185. package/dist/index.cjs187.js.map +1 -1
  186. package/dist/index.cjs188.js +1 -1
  187. package/dist/index.cjs188.js.map +1 -1
  188. package/dist/index.cjs189.js +1 -1
  189. package/dist/index.cjs189.js.map +1 -1
  190. package/dist/index.cjs19.js +1 -1
  191. package/dist/index.cjs19.js.map +1 -1
  192. package/dist/index.cjs190.js +1 -1
  193. package/dist/index.cjs190.js.map +1 -1
  194. package/dist/index.cjs191.js +1 -1
  195. package/dist/index.cjs191.js.map +1 -1
  196. package/dist/index.cjs192.js +1 -1
  197. package/dist/index.cjs192.js.map +1 -1
  198. package/dist/index.cjs193.js +1 -1
  199. package/dist/index.cjs193.js.map +1 -1
  200. package/dist/index.cjs194.js +1 -1
  201. package/dist/index.cjs194.js.map +1 -1
  202. package/dist/index.cjs195.js +1 -1
  203. package/dist/index.cjs195.js.map +1 -1
  204. package/dist/index.cjs196.js +1 -1
  205. package/dist/index.cjs196.js.map +1 -1
  206. package/dist/index.cjs197.js +1 -1
  207. package/dist/index.cjs197.js.map +1 -1
  208. package/dist/index.cjs198.js +1 -1
  209. package/dist/index.cjs198.js.map +1 -1
  210. package/dist/index.cjs199.js +1 -1
  211. package/dist/index.cjs199.js.map +1 -1
  212. package/dist/index.cjs20.js +1 -1
  213. package/dist/index.cjs20.js.map +1 -1
  214. package/dist/index.cjs200.js +1 -1
  215. package/dist/index.cjs200.js.map +1 -1
  216. package/dist/index.cjs201.js +1 -1
  217. package/dist/index.cjs201.js.map +1 -1
  218. package/dist/index.cjs202.js +1 -1
  219. package/dist/index.cjs202.js.map +1 -1
  220. package/dist/index.cjs203.js +1 -1
  221. package/dist/index.cjs203.js.map +1 -1
  222. package/dist/index.cjs204.js +1 -1
  223. package/dist/index.cjs204.js.map +1 -1
  224. package/dist/index.cjs205.js +1 -1
  225. package/dist/index.cjs205.js.map +1 -1
  226. package/dist/index.cjs206.js +1 -1
  227. package/dist/index.cjs206.js.map +1 -1
  228. package/dist/index.cjs207.js +1 -1
  229. package/dist/index.cjs207.js.map +1 -1
  230. package/dist/index.cjs208.js +1 -1
  231. package/dist/index.cjs208.js.map +1 -1
  232. package/dist/index.cjs209.js +7 -1
  233. package/dist/index.cjs209.js.map +1 -1
  234. package/dist/index.cjs21.js +1 -1
  235. package/dist/index.cjs21.js.map +1 -1
  236. package/dist/index.cjs210.js +1 -1
  237. package/dist/index.cjs210.js.map +1 -1
  238. package/dist/index.cjs213.js +1 -1
  239. package/dist/index.cjs214.js +1 -1
  240. package/dist/index.cjs215.js +1 -1
  241. package/dist/index.cjs217.js +1 -1
  242. package/dist/index.cjs22.js +1 -1
  243. package/dist/index.cjs22.js.map +1 -1
  244. package/dist/index.cjs220.js +1 -1
  245. package/dist/index.cjs225.js +1 -1
  246. package/dist/index.cjs227.js +1 -1
  247. package/dist/index.cjs228.js +1 -1
  248. package/dist/index.cjs229.js +1 -1
  249. package/dist/index.cjs23.js +1 -1
  250. package/dist/index.cjs23.js.map +1 -1
  251. package/dist/index.cjs230.js +1 -1
  252. package/dist/index.cjs232.js +1 -1
  253. package/dist/index.cjs233.js +1 -1
  254. package/dist/index.cjs234.js +1 -1
  255. package/dist/index.cjs235.js +1 -1
  256. package/dist/index.cjs238.js +1 -7
  257. package/dist/index.cjs238.js.map +1 -1
  258. package/dist/index.cjs239.js +1 -1
  259. package/dist/index.cjs239.js.map +1 -1
  260. package/dist/index.cjs24.js +1 -1
  261. package/dist/index.cjs24.js.map +1 -1
  262. package/dist/index.cjs240.js +1 -1
  263. package/dist/index.cjs240.js.map +1 -1
  264. package/dist/index.cjs241.js +1 -1
  265. package/dist/index.cjs241.js.map +1 -1
  266. package/dist/index.cjs242.js +1 -1
  267. package/dist/index.cjs242.js.map +1 -1
  268. package/dist/index.cjs243.js +1 -1
  269. package/dist/index.cjs243.js.map +1 -1
  270. package/dist/index.cjs244.js +1 -1
  271. package/dist/index.cjs244.js.map +1 -1
  272. package/dist/index.cjs245.js +1 -1
  273. package/dist/index.cjs245.js.map +1 -1
  274. package/dist/index.cjs246.js +1 -1
  275. package/dist/index.cjs246.js.map +1 -1
  276. package/dist/index.cjs247.js +1 -1
  277. package/dist/index.cjs247.js.map +1 -1
  278. package/dist/index.cjs248.js +1 -1
  279. package/dist/index.cjs248.js.map +1 -1
  280. package/dist/index.cjs249.js +1 -1
  281. package/dist/index.cjs249.js.map +1 -1
  282. package/dist/index.cjs250.js +1 -1
  283. package/dist/index.cjs250.js.map +1 -1
  284. package/dist/index.cjs251.js +1 -1
  285. package/dist/index.cjs251.js.map +1 -1
  286. package/dist/index.cjs252.js +1 -1
  287. package/dist/index.cjs252.js.map +1 -1
  288. package/dist/index.cjs253.js +1 -1
  289. package/dist/index.cjs253.js.map +1 -1
  290. package/dist/index.cjs254.js +1 -1
  291. package/dist/index.cjs254.js.map +1 -1
  292. package/dist/index.cjs255.js +1 -1
  293. package/dist/index.cjs255.js.map +1 -1
  294. package/dist/index.cjs256.js +1 -1
  295. package/dist/index.cjs256.js.map +1 -1
  296. package/dist/index.cjs257.js +1 -1
  297. package/dist/index.cjs257.js.map +1 -1
  298. package/dist/index.cjs258.js +1 -1
  299. package/dist/index.cjs258.js.map +1 -1
  300. package/dist/index.cjs259.js +1 -1
  301. package/dist/index.cjs259.js.map +1 -1
  302. package/dist/index.cjs260.js +1 -1
  303. package/dist/index.cjs260.js.map +1 -1
  304. package/dist/index.cjs263.js +1 -1
  305. package/dist/index.cjs264.js +1 -1
  306. package/dist/index.cjs27.js +1 -1
  307. package/dist/index.cjs28.js +1 -1
  308. package/dist/index.cjs28.js.map +1 -1
  309. package/dist/index.cjs29.js +1 -1
  310. package/dist/index.cjs29.js.map +1 -1
  311. package/dist/index.cjs31.js +1 -1
  312. package/dist/index.cjs35.js +1 -1
  313. package/dist/index.cjs38.js +1 -1
  314. package/dist/index.cjs44.js +1 -1
  315. package/dist/index.cjs49.js +1 -1
  316. package/dist/index.cjs50.js +1 -1
  317. package/dist/index.cjs51.js +1 -1
  318. package/dist/index.cjs52.js +1 -1
  319. package/dist/index.cjs54.js +1 -1
  320. package/dist/index.cjs55.js +1 -1
  321. package/dist/index.cjs56.js +1 -1
  322. package/dist/index.cjs57.js +1 -1
  323. package/dist/index.cjs58.js +1 -1
  324. package/dist/index.cjs59.js +1 -1
  325. package/dist/index.cjs60.js +1 -1
  326. package/dist/index.cjs61.js +1 -1
  327. package/dist/index.cjs62.js +1 -1
  328. package/dist/index.cjs68.js +1 -1
  329. package/dist/index.cjs70.js +1 -1
  330. package/dist/index.cjs71.js +1 -1
  331. package/dist/index.cjs71.js.map +1 -1
  332. package/dist/index.cjs72.js +1 -1
  333. package/dist/index.cjs73.js +1 -9
  334. package/dist/index.cjs73.js.map +1 -1
  335. package/dist/index.cjs74.js +1 -17
  336. package/dist/index.cjs74.js.map +1 -1
  337. package/dist/index.cjs75.js +1 -1
  338. package/dist/index.cjs75.js.map +1 -1
  339. package/dist/index.cjs76.js +9 -1
  340. package/dist/index.cjs76.js.map +1 -1
  341. package/dist/index.cjs77.js +17 -1
  342. package/dist/index.cjs77.js.map +1 -1
  343. package/dist/index.cjs84.js +1 -1
  344. package/dist/index.cjs84.js.map +1 -1
  345. package/dist/index.cjs85.js +1 -1
  346. package/dist/index.cjs85.js.map +1 -1
  347. package/dist/index.cjs86.js +1 -1
  348. package/dist/index.cjs86.js.map +1 -1
  349. package/dist/index.cjs87.js +1 -1
  350. package/dist/index.cjs87.js.map +1 -1
  351. package/dist/index.cjs88.js +1 -1
  352. package/dist/index.cjs88.js.map +1 -1
  353. package/dist/index.cjs89.js +1 -1
  354. package/dist/index.cjs89.js.map +1 -1
  355. package/dist/index.cjs90.js +1 -1
  356. package/dist/index.cjs90.js.map +1 -1
  357. package/dist/index.cjs91.js +1 -1
  358. package/dist/index.cjs91.js.map +1 -1
  359. package/dist/index.cjs92.js +1 -1
  360. package/dist/index.cjs92.js.map +1 -1
  361. package/dist/index.cjs93.js +1 -1
  362. package/dist/index.cjs93.js.map +1 -1
  363. package/dist/index.cjs94.js +1 -1
  364. package/dist/index.cjs94.js.map +1 -1
  365. package/dist/index.cjs95.js +1 -1
  366. package/dist/index.cjs95.js.map +1 -1
  367. package/dist/index.cjs96.js +1 -1
  368. package/dist/index.cjs96.js.map +1 -1
  369. package/dist/index.cjs97.js +1 -1
  370. package/dist/index.cjs97.js.map +1 -1
  371. package/dist/index.cjs98.js +1 -1
  372. package/dist/index.cjs98.js.map +1 -1
  373. package/dist/index.cjs99.js +1 -1
  374. package/dist/index.cjs99.js.map +1 -1
  375. package/dist/index.es100.js +2 -1
  376. package/dist/index.es100.js.map +1 -1
  377. package/dist/index.es101.js +6 -3
  378. package/dist/index.es101.js.map +1 -1
  379. package/dist/index.es102.js +6 -3
  380. package/dist/index.es102.js.map +1 -1
  381. package/dist/index.es103.js +10 -3
  382. package/dist/index.es103.js.map +1 -1
  383. package/dist/index.es104.js +11 -3
  384. package/dist/index.es104.js.map +1 -1
  385. package/dist/index.es105.js +11 -3
  386. package/dist/index.es105.js.map +1 -1
  387. package/dist/index.es106.js +75 -3
  388. package/dist/index.es106.js.map +1 -1
  389. package/dist/index.es107.js +3 -10
  390. package/dist/index.es107.js.map +1 -1
  391. package/dist/index.es108.js +12 -4
  392. package/dist/index.es108.js.map +1 -1
  393. package/dist/index.es109.js +8 -4
  394. package/dist/index.es109.js.map +1 -1
  395. package/dist/index.es110.js +6 -5
  396. package/dist/index.es110.js.map +1 -1
  397. package/dist/index.es111.js +6 -9
  398. package/dist/index.es111.js.map +1 -1
  399. package/dist/index.es112.js +6 -10
  400. package/dist/index.es112.js.map +1 -1
  401. package/dist/index.es113.js +7 -10
  402. package/dist/index.es113.js.map +1 -1
  403. package/dist/index.es114.js +4 -75
  404. package/dist/index.es114.js.map +1 -1
  405. package/dist/index.es115.js +4 -3
  406. package/dist/index.es115.js.map +1 -1
  407. package/dist/index.es116.js +4 -12
  408. package/dist/index.es116.js.map +1 -1
  409. package/dist/index.es117.js +6 -9
  410. package/dist/index.es117.js.map +1 -1
  411. package/dist/index.es118.js +6 -6
  412. package/dist/index.es118.js.map +1 -1
  413. package/dist/index.es119.js +3 -6
  414. package/dist/index.es119.js.map +1 -1
  415. package/dist/index.es120.js +7 -6
  416. package/dist/index.es120.js.map +1 -1
  417. package/dist/index.es121.js +11 -7
  418. package/dist/index.es121.js.map +1 -1
  419. package/dist/index.es122.js +11 -4
  420. package/dist/index.es122.js.map +1 -1
  421. package/dist/index.es123.js +4 -4
  422. package/dist/index.es123.js.map +1 -1
  423. package/dist/index.es124.js +6 -4
  424. package/dist/index.es124.js.map +1 -1
  425. package/dist/index.es125.js +2 -6
  426. package/dist/index.es125.js.map +1 -1
  427. package/dist/index.es126.js +7 -6
  428. package/dist/index.es126.js.map +1 -1
  429. package/dist/index.es127.js +7 -3
  430. package/dist/index.es127.js.map +1 -1
  431. package/dist/index.es128.js +7 -7
  432. package/dist/index.es128.js.map +1 -1
  433. package/dist/index.es129.js +7 -11
  434. package/dist/index.es129.js.map +1 -1
  435. package/dist/index.es130.js +3 -10
  436. package/dist/index.es130.js.map +1 -1
  437. package/dist/index.es131.js +3 -3
  438. package/dist/index.es131.js.map +1 -1
  439. package/dist/index.es132.js +55 -4
  440. package/dist/index.es132.js.map +1 -1
  441. package/dist/index.es133.js +13 -2
  442. package/dist/index.es133.js.map +1 -1
  443. package/dist/index.es134.js +5 -7
  444. package/dist/index.es134.js.map +1 -1
  445. package/dist/index.es135.js +5 -7
  446. package/dist/index.es135.js.map +1 -1
  447. package/dist/index.es136.js +7 -6
  448. package/dist/index.es136.js.map +1 -1
  449. package/dist/index.es137.js +16 -7
  450. package/dist/index.es137.js.map +1 -1
  451. package/dist/index.es138.js +13 -3
  452. package/dist/index.es138.js.map +1 -1
  453. package/dist/index.es139.js +5 -4
  454. package/dist/index.es139.js.map +1 -1
  455. package/dist/index.es14.js +2 -2
  456. package/dist/index.es140.js +4 -55
  457. package/dist/index.es140.js.map +1 -1
  458. package/dist/index.es141.js +7 -13
  459. package/dist/index.es141.js.map +1 -1
  460. package/dist/index.es142.js +6 -5
  461. package/dist/index.es142.js.map +1 -1
  462. package/dist/index.es143.js +6 -5
  463. package/dist/index.es143.js.map +1 -1
  464. package/dist/index.es144.js +7 -8
  465. package/dist/index.es144.js.map +1 -1
  466. package/dist/index.es145.js +3 -17
  467. package/dist/index.es145.js.map +1 -1
  468. package/dist/index.es146.js +2 -13
  469. package/dist/index.es146.js.map +1 -1
  470. package/dist/index.es147.js +10 -4
  471. package/dist/index.es147.js.map +1 -1
  472. package/dist/index.es148.js +5 -6
  473. package/dist/index.es148.js.map +1 -1
  474. package/dist/index.es149.js +3 -7
  475. package/dist/index.es149.js.map +1 -1
  476. package/dist/index.es15.js +4 -4
  477. package/dist/index.es150.js +7 -6
  478. package/dist/index.es150.js.map +1 -1
  479. package/dist/index.es151.js +5 -6
  480. package/dist/index.es151.js.map +1 -1
  481. package/dist/index.es152.js +16 -7
  482. package/dist/index.es152.js.map +1 -1
  483. package/dist/index.es153.js +12 -3
  484. package/dist/index.es153.js.map +1 -1
  485. package/dist/index.es154.js +3 -3
  486. package/dist/index.es154.js.map +1 -1
  487. package/dist/index.es155.js +3 -11
  488. package/dist/index.es155.js.map +1 -1
  489. package/dist/index.es156.js +9 -5
  490. package/dist/index.es156.js.map +1 -1
  491. package/dist/index.es157.js +7 -4
  492. package/dist/index.es157.js.map +1 -1
  493. package/dist/index.es158.js +11 -7
  494. package/dist/index.es158.js.map +1 -1
  495. package/dist/index.es159.js +11 -5
  496. package/dist/index.es159.js.map +1 -1
  497. package/dist/index.es16.js +3 -3
  498. package/dist/index.es160.js +5 -15
  499. package/dist/index.es160.js.map +1 -1
  500. package/dist/index.es161.js +5 -11
  501. package/dist/index.es161.js.map +1 -1
  502. package/dist/index.es162.js +6 -3
  503. package/dist/index.es162.js.map +1 -1
  504. package/dist/index.es163.js +17 -3
  505. package/dist/index.es163.js.map +1 -1
  506. package/dist/index.es164.js +16 -8
  507. package/dist/index.es164.js.map +1 -1
  508. package/dist/index.es165.js +4 -6
  509. package/dist/index.es165.js.map +1 -1
  510. package/dist/index.es166.js +15 -10
  511. package/dist/index.es166.js.map +1 -1
  512. package/dist/index.es167.js +20 -11
  513. package/dist/index.es167.js.map +1 -1
  514. package/dist/index.es168.js +6 -7
  515. package/dist/index.es168.js.map +1 -1
  516. package/dist/index.es169.js +4 -5
  517. package/dist/index.es169.js.map +1 -1
  518. package/dist/index.es17.js +3 -3
  519. package/dist/index.es170.js +6 -6
  520. package/dist/index.es170.js.map +1 -1
  521. package/dist/index.es171.js +5 -17
  522. package/dist/index.es171.js.map +1 -1
  523. package/dist/index.es172.js +11 -16
  524. package/dist/index.es172.js.map +1 -1
  525. package/dist/index.es173.js +5 -4
  526. package/dist/index.es173.js.map +1 -1
  527. package/dist/index.es174.js +4 -16
  528. package/dist/index.es174.js.map +1 -1
  529. package/dist/index.es175.js +4 -20
  530. package/dist/index.es175.js.map +1 -1
  531. package/dist/index.es176.js +5 -6
  532. package/dist/index.es176.js.map +1 -1
  533. package/dist/index.es177.js +5 -5
  534. package/dist/index.es177.js.map +1 -1
  535. package/dist/index.es178.js +5 -6
  536. package/dist/index.es178.js.map +1 -1
  537. package/dist/index.es179.js +5 -5
  538. package/dist/index.es179.js.map +1 -1
  539. package/dist/index.es18.js +1 -1
  540. package/dist/index.es180.js +12 -11
  541. package/dist/index.es180.js.map +1 -1
  542. package/dist/index.es181.js +14 -5
  543. package/dist/index.es181.js.map +1 -1
  544. package/dist/index.es182.js +8 -4
  545. package/dist/index.es182.js.map +1 -1
  546. package/dist/index.es183.js +6 -4
  547. package/dist/index.es183.js.map +1 -1
  548. package/dist/index.es184.js +6 -4
  549. package/dist/index.es184.js.map +1 -1
  550. package/dist/index.es185.js +7 -4
  551. package/dist/index.es185.js.map +1 -1
  552. package/dist/index.es186.js +147 -4
  553. package/dist/index.es186.js.map +1 -1
  554. package/dist/index.es187.js +6 -4
  555. package/dist/index.es187.js.map +1 -1
  556. package/dist/index.es188.js +5 -13
  557. package/dist/index.es188.js.map +1 -1
  558. package/dist/index.es189.js +3 -17
  559. package/dist/index.es189.js.map +1 -1
  560. package/dist/index.es19.js +1 -1
  561. package/dist/index.es190.js +3 -11
  562. package/dist/index.es190.js.map +1 -1
  563. package/dist/index.es191.js +35 -6
  564. package/dist/index.es191.js.map +1 -1
  565. package/dist/index.es192.js +3 -9
  566. package/dist/index.es192.js.map +1 -1
  567. package/dist/index.es193.js +22 -7
  568. package/dist/index.es193.js.map +1 -1
  569. package/dist/index.es194.js +2 -150
  570. package/dist/index.es194.js.map +1 -1
  571. package/dist/index.es195.js +3 -9
  572. package/dist/index.es195.js.map +1 -1
  573. package/dist/index.es196.js +2 -7
  574. package/dist/index.es196.js.map +1 -1
  575. package/dist/index.es197.js +33 -3
  576. package/dist/index.es197.js.map +1 -1
  577. package/dist/index.es198.js +14 -2
  578. package/dist/index.es198.js.map +1 -1
  579. package/dist/index.es199.js +13 -35
  580. package/dist/index.es199.js.map +1 -1
  581. package/dist/index.es20.js +1 -1
  582. package/dist/index.es200.js +11 -3
  583. package/dist/index.es200.js.map +1 -1
  584. package/dist/index.es201.js +242 -22
  585. package/dist/index.es201.js.map +1 -1
  586. package/dist/index.es202.js +45 -2
  587. package/dist/index.es202.js.map +1 -1
  588. package/dist/index.es203.js +5 -3
  589. package/dist/index.es203.js.map +1 -1
  590. package/dist/index.es204.js +13 -2
  591. package/dist/index.es204.js.map +1 -1
  592. package/dist/index.es205.js +10 -30
  593. package/dist/index.es205.js.map +1 -1
  594. package/dist/index.es206.js +31 -13
  595. package/dist/index.es206.js.map +1 -1
  596. package/dist/index.es207.js +13 -13
  597. package/dist/index.es207.js.map +1 -1
  598. package/dist/index.es208.js +4 -8
  599. package/dist/index.es208.js.map +1 -1
  600. package/dist/index.es209.js +7506 -20
  601. package/dist/index.es209.js.map +1 -1
  602. package/dist/index.es21.js +1 -1
  603. package/dist/index.es210.js +2 -23
  604. package/dist/index.es210.js.map +1 -1
  605. package/dist/index.es213.js +1 -1
  606. package/dist/index.es214.js +1 -1
  607. package/dist/index.es215.js +1 -1
  608. package/dist/index.es217.js +1 -1
  609. package/dist/index.es22.js +1 -1
  610. package/dist/index.es220.js +1 -1
  611. package/dist/index.es225.js +1 -1
  612. package/dist/index.es227.js +1 -1
  613. package/dist/index.es228.js +5 -5
  614. package/dist/index.es229.js +1 -1
  615. package/dist/index.es23.js +1 -1
  616. package/dist/index.es230.js +1 -1
  617. package/dist/index.es232.js +1 -1
  618. package/dist/index.es233.js +1 -1
  619. package/dist/index.es234.js +1 -1
  620. package/dist/index.es235.js +1 -1
  621. package/dist/index.es238.js +24 -7506
  622. package/dist/index.es238.js.map +1 -1
  623. package/dist/index.es239.js +17 -2
  624. package/dist/index.es239.js.map +1 -1
  625. package/dist/index.es24.js +1 -1
  626. package/dist/index.es240.js +31 -3
  627. package/dist/index.es240.js.map +1 -1
  628. package/dist/index.es241.js +21 -5
  629. package/dist/index.es241.js.map +1 -1
  630. package/dist/index.es242.js +73 -23
  631. package/dist/index.es242.js.map +1 -1
  632. package/dist/index.es243.js +20 -16
  633. package/dist/index.es243.js.map +1 -1
  634. package/dist/index.es244.js +40 -30
  635. package/dist/index.es244.js.map +1 -1
  636. package/dist/index.es245.js +48 -20
  637. package/dist/index.es245.js.map +1 -1
  638. package/dist/index.es246.js +7 -74
  639. package/dist/index.es246.js.map +1 -1
  640. package/dist/index.es247.js +19 -19
  641. package/dist/index.es247.js.map +1 -1
  642. package/dist/index.es248.js +64 -39
  643. package/dist/index.es248.js.map +1 -1
  644. package/dist/index.es249.js +40 -47
  645. package/dist/index.es249.js.map +1 -1
  646. package/dist/index.es250.js +63 -7
  647. package/dist/index.es250.js.map +1 -1
  648. package/dist/index.es251.js +8 -20
  649. package/dist/index.es251.js.map +1 -1
  650. package/dist/index.es252.js +3 -65
  651. package/dist/index.es252.js.map +1 -1
  652. package/dist/index.es253.js +11 -41
  653. package/dist/index.es253.js.map +1 -1
  654. package/dist/index.es254.js +54 -58
  655. package/dist/index.es254.js.map +1 -1
  656. package/dist/index.es255.js +48 -7
  657. package/dist/index.es255.js.map +1 -1
  658. package/dist/index.es256.js +20 -3
  659. package/dist/index.es256.js.map +1 -1
  660. package/dist/index.es257.js +22 -12
  661. package/dist/index.es257.js.map +1 -1
  662. package/dist/index.es258.js +3 -60
  663. package/dist/index.es258.js.map +1 -1
  664. package/dist/index.es259.js +7 -49
  665. package/dist/index.es259.js.map +1 -1
  666. package/dist/index.es260.js +4 -6
  667. package/dist/index.es260.js.map +1 -1
  668. package/dist/index.es263.js +6 -6
  669. package/dist/index.es264.js +1 -1
  670. package/dist/index.es27.js +1 -1
  671. package/dist/index.es28.js +2 -2
  672. package/dist/index.es29.js +2 -2
  673. package/dist/index.es31.js +1 -1
  674. package/dist/index.es35.js +2 -2
  675. package/dist/index.es38.js +1 -1
  676. package/dist/index.es44.js +1 -1
  677. package/dist/index.es49.js +1 -1
  678. package/dist/index.es50.js +1 -1
  679. package/dist/index.es51.js +1 -1
  680. package/dist/index.es52.js +1 -1
  681. package/dist/index.es54.js +1 -1
  682. package/dist/index.es55.js +2 -2
  683. package/dist/index.es56.js +2 -2
  684. package/dist/index.es57.js +4 -4
  685. package/dist/index.es58.js +1 -1
  686. package/dist/index.es59.js +2 -2
  687. package/dist/index.es60.js +3 -3
  688. package/dist/index.es61.js +2 -2
  689. package/dist/index.es62.js +1 -1
  690. package/dist/index.es68.js +1 -1
  691. package/dist/index.es70.js +12 -12
  692. package/dist/index.es71.js +1992 -7
  693. package/dist/index.es71.js.map +1 -1
  694. package/dist/index.es72.js +6 -2
  695. package/dist/index.es72.js.map +1 -1
  696. package/dist/index.es73.js +2 -26
  697. package/dist/index.es73.js.map +1 -1
  698. package/dist/index.es74.js +7 -588
  699. package/dist/index.es74.js.map +1 -1
  700. package/dist/index.es75.js +2 -1993
  701. package/dist/index.es75.js.map +1 -1
  702. package/dist/index.es76.js +25 -5
  703. package/dist/index.es76.js.map +1 -1
  704. package/dist/index.es77.js +589 -2
  705. package/dist/index.es77.js.map +1 -1
  706. package/dist/index.es84.js +273 -243
  707. package/dist/index.es84.js.map +1 -1
  708. package/dist/index.es85.js +14 -42
  709. package/dist/index.es85.js.map +1 -1
  710. package/dist/index.es86.js +19 -3
  711. package/dist/index.es86.js.map +1 -1
  712. package/dist/index.es87.js +4 -10
  713. package/dist/index.es87.js.map +1 -1
  714. package/dist/index.es88.js +3 -10
  715. package/dist/index.es88.js.map +1 -1
  716. package/dist/index.es89.js +3 -30
  717. package/dist/index.es89.js.map +1 -1
  718. package/dist/index.es90.js +3 -12
  719. package/dist/index.es90.js.map +1 -1
  720. package/dist/index.es91.js +3 -4
  721. package/dist/index.es91.js.map +1 -1
  722. package/dist/index.es92.js +3 -273
  723. package/dist/index.es92.js.map +1 -1
  724. package/dist/index.es93.js +3 -15
  725. package/dist/index.es93.js.map +1 -1
  726. package/dist/index.es94.js +3 -19
  727. package/dist/index.es94.js.map +1 -1
  728. package/dist/index.es95.js +3 -5
  729. package/dist/index.es95.js.map +1 -1
  730. package/dist/index.es96.js +3 -4
  731. package/dist/index.es96.js.map +1 -1
  732. package/dist/index.es97.js +3 -4
  733. package/dist/index.es97.js.map +1 -1
  734. package/dist/index.es98.js +3 -5
  735. package/dist/index.es98.js.map +1 -1
  736. package/dist/index.es99.js +9 -3
  737. package/dist/index.es99.js.map +1 -1
  738. package/package.json +1 -1
  739. package/types/components/LocationMarker.js.flow +82 -0
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs72.js"),t=require("./index.cjs73.js"),u=require("./index.cjs74.js");var r;function i(){return r||(r=1,process.env.NODE_ENV==="production"?e.__module.exports=t.__require():e.__module.exports=u.__require()),e.__module.exports}exports.__require=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const bt=require("./index.cjs72.js"),Et=require("./index.cjs73.js");var io=Et.__module.exports,Wn;function ao(){return Wn||(Wn=1,function(Kn,so){(function(Je,de){Kn.exports=de()})(io,function(){var Je=function(e,t){var n={drag:[],click:[],mousemove:[],mousedown:[],mouseup:[],mouseout:[],keydown:[],keyup:[],touchstart:[],touchmove:[],touchend:[],tap:[]},r={on:function(i,a,l){if(n[i]===void 0)throw new Error("Invalid event type: "+i);n[i].push({selector:a,fn:l})},render:function(i){t.store.featureChanged(i)}},o=function(i,a){for(var l=n[i],d=l.length;d--;){var h=l[d];if(h.selector(a)){h.fn.call(r,a)||t.store.render(),t.ui.updateMapClasses();break}}};return e.start.call(r),{render:e.render,stop:function(){e.stop&&e.stop()},trash:function(){e.trash&&(e.trash(),t.store.render())},combineFeatures:function(){e.combineFeatures&&e.combineFeatures()},uncombineFeatures:function(){e.uncombineFeatures&&e.uncombineFeatures()},drag:function(i){o("drag",i)},click:function(i){o("click",i)},mousemove:function(i){o("mousemove",i)},mousedown:function(i){o("mousedown",i)},mouseup:function(i){o("mouseup",i)},mouseout:function(i){o("mouseout",i)},keydown:function(i){o("keydown",i)},keyup:function(i){o("keyup",i)},touchstart:function(i){o("touchstart",i)},touchmove:function(i){o("touchmove",i)},touchend:function(i){o("touchend",i)},tap:function(i){o("tap",i)}}};function de(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Qn(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){if(this instanceof r){var o=[null];o.push.apply(o,arguments);var i=Function.bind.apply(t,o);return new i}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Tt={},er={RADIUS:6378137},Zt=er;function Wt(e){var t=0;if(e&&e.length>0){t+=Math.abs(Ct(e[0]));for(var n=1;n<e.length;n++)t-=Math.abs(Ct(e[n]))}return t}function Ct(e){var t,n,r,o,i,a,l=0,d=e.length;if(d>2){for(a=0;a<d;a++)a===d-2?(r=d-2,o=d-1,i=0):a===d-1?(r=d-1,o=0,i=1):(r=a,o=a+1,i=a+2),t=e[r],n=e[o],l+=(Ot(e[i][0])-Ot(t[0]))*Math.sin(Ot(n[1]));l=l*Zt.RADIUS*Zt.RADIUS/2}return l}function Ot(e){return e*Math.PI/180}Tt.geometry=function e(t){var n,r=0;switch(t.type){case"Polygon":return Wt(t.coordinates);case"MultiPolygon":for(n=0;n<t.coordinates.length;n++)r+=Wt(t.coordinates[n]);return r;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0;case"GeometryCollection":for(n=0;n<t.geometries.length;n++)r+=e(t.geometries[n]);return r}},Tt.ring=Ct;var q={CONTROL_BASE:"mapboxgl-ctrl",CONTROL_PREFIX:"mapboxgl-ctrl-",CONTROL_BUTTON:"mapbox-gl-draw_ctrl-draw-btn",CONTROL_BUTTON_LINE:"mapbox-gl-draw_line",CONTROL_BUTTON_POLYGON:"mapbox-gl-draw_polygon",CONTROL_BUTTON_POINT:"mapbox-gl-draw_point",CONTROL_BUTTON_TRASH:"mapbox-gl-draw_trash",CONTROL_BUTTON_COMBINE_FEATURES:"mapbox-gl-draw_combine",CONTROL_BUTTON_UNCOMBINE_FEATURES:"mapbox-gl-draw_uncombine",CONTROL_GROUP:"mapboxgl-ctrl-group",ATTRIBUTION:"mapboxgl-ctrl-attrib",ACTIVE_BUTTON:"active",BOX_SELECT:"mapbox-gl-draw_boxselect"},X={HOT:"mapbox-gl-draw-hot",COLD:"mapbox-gl-draw-cold"},N={ADD:"add",MOVE:"move",DRAG:"drag",POINTER:"pointer",NONE:"none"},Y={POLYGON:"polygon",LINE:"line_string",POINT:"point"},m={FEATURE:"Feature",POLYGON:"Polygon",LINE_STRING:"LineString",POINT:"Point",FEATURE_COLLECTION:"FeatureCollection",MULTI_PREFIX:"Multi",MULTI_POINT:"MultiPoint",MULTI_LINE_STRING:"MultiLineString",MULTI_POLYGON:"MultiPolygon"},T={DRAW_LINE_STRING:"draw_line_string",DRAW_POLYGON:"draw_polygon",DRAW_POINT:"draw_point",SIMPLE_SELECT:"simple_select",DIRECT_SELECT:"direct_select",STATIC:"static"},H={CREATE:"draw.create",DELETE:"draw.delete",UPDATE:"draw.update",SELECTION_CHANGE:"draw.selectionchange",MODE_CHANGE:"draw.modechange",ACTIONABLE:"draw.actionable",RENDER:"draw.render",COMBINE_FEATURES:"draw.combine",UNCOMBINE_FEATURES:"draw.uncombine"},St={MOVE:"move",CHANGE_COORDINATES:"change_coordinates"},B={FEATURE:"feature",MIDPOINT:"midpoint",VERTEX:"vertex"},j={ACTIVE:"true",INACTIVE:"false"},Kt=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate"],It=-85,tr=Object.freeze({__proto__:null,classes:q,sources:X,cursors:N,types:Y,geojsonTypes:m,modes:T,events:H,updateActions:St,meta:B,activeStates:j,interactions:Kt,LAT_MIN:-90,LAT_RENDERED_MIN:It,LAT_MAX:90,LAT_RENDERED_MAX:85,LNG_MIN:-270,LNG_MAX:270}),Qt={Point:0,LineString:1,MultiLineString:1,Polygon:2};function nr(e,t){var n=Qt[e.geometry.type]-Qt[t.geometry.type];return n===0&&e.geometry.type===m.POLYGON?e.area-t.area:n}function en(e){return e.map(function(t){return t.geometry.type===m.POLYGON&&(t.area=Tt.geometry({type:m.FEATURE,property:{},geometry:t.geometry})),t}).sort(nr).map(function(t){return delete t.area,t})}function tn(e,t){return t===void 0&&(t=0),[[e.point.x-t,e.point.y-t],[e.point.x+t,e.point.y+t]]}function Z(e){if(this._items={},this._nums={},this._length=e?e.length:0,e)for(var t=0,n=e.length;t<n;t++)this.add(e[t]),e[t]!==void 0&&(typeof e[t]=="string"?this._items[e[t]]=t:this._nums[e[t]]=t)}Z.prototype.add=function(e){return this.has(e)||(this._length++,typeof e=="string"?this._items[e]=this._length:this._nums[e]=this._length),this},Z.prototype.delete=function(e){return this.has(e)===!1||(this._length--,delete this._items[e],delete this._nums[e]),this},Z.prototype.has=function(e){return(typeof e=="string"||typeof e=="number")&&(this._items[e]!==void 0||this._nums[e]!==void 0)},Z.prototype.values=function(){var e=this,t=[];return Object.keys(this._items).forEach(function(n){t.push({k:n,v:e._items[n]})}),Object.keys(this._nums).forEach(function(n){t.push({k:JSON.parse(n),v:e._nums[n]})}),t.sort(function(n,r){return n.v-r.v}).map(function(n){return n.k})},Z.prototype.clear=function(){return this._length=0,this._items={},this._nums={},this};var rr=[B.FEATURE,B.MIDPOINT,B.VERTEX],xe={click:function(e,t,n){return nn(e,t,n,n.options.clickBuffer)},touch:function(e,t,n){return nn(e,t,n,n.options.touchBuffer)}};function nn(e,t,n,r){if(n.map===null)return[];var o=e?tn(e,r):t,i={};n.options.styles&&(i.layers=n.options.styles.map(function(h){return h.id}).filter(function(h){return n.map.getLayer(h)!=null}));var a=n.map.queryRenderedFeatures(o,i).filter(function(h){return rr.indexOf(h.properties.meta)!==-1}),l=new Z,d=[];return a.forEach(function(h){var g=h.properties.id;l.has(g)||(l.add(g),d.push(h))}),en(d)}function ze(e,t){var n=xe.click(e,null,t),r={mouse:N.NONE};return n[0]&&(r.mouse=n[0].properties.active===j.ACTIVE?N.MOVE:N.POINTER,r.feature=n[0].properties.meta),t.events.currentModeName().indexOf("draw")!==-1&&(r.mouse=N.ADD),t.ui.queueMapClasses(r),t.ui.updateMapClasses(),n[0]}function xt(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function Mt(e,t,n){n===void 0&&(n={});var r=n.fineTolerance!=null?n.fineTolerance:4,o=n.grossTolerance!=null?n.grossTolerance:12,i=n.interval!=null?n.interval:500;e.point=e.point||t.point,e.time=e.time||t.time;var a=xt(e.point,t.point);return a<r||a<o&&t.time-e.time<i}function Lt(e,t,n){n===void 0&&(n={});var r=n.tolerance!=null?n.tolerance:25,o=n.interval!=null?n.interval:250;return e.point=e.point||t.point,e.time=e.time||t.time,xt(e.point,t.point)<r&&t.time-e.time<o}var rn={exports:{}},Nt=rn.exports=function(e,t){if(t||(t=16),e===void 0&&(e=128),e<=0)return"0";for(var n=Math.log(Math.pow(2,e))/Math.log(t),r=2;n===1/0;r*=2)n=Math.log(Math.pow(2,e/r))/Math.log(t)*r;var o=n-Math.floor(n),i="";for(r=0;r<Math.floor(n);r++)i=Math.floor(Math.random()*t).toString(t)+i;if(o){var a=Math.pow(t,o);i=Math.floor(Math.random()*a).toString(t)+i}var l=parseInt(i,t);return l!==1/0&&l>=Math.pow(2,e)?Nt(e,t):i};Nt.rack=function(e,t,n){var r=function(i){var a=0;do{if(a++>10){if(!n)throw new Error("too many ID collisions, use more bits");e+=n}var l=Nt(e,t)}while(Object.hasOwnProperty.call(o,l));return o[l]=i,l},o=r.hats={};return r.get=function(i){return r.hats[i]},r.set=function(i,a){return r.hats[i]=a,r},r.bits=e||128,r.base=t||16,r};var Pt=de(rn.exports),G=function(e,t){this.ctx=e,this.properties=t.properties||{},this.coordinates=t.geometry.coordinates,this.id=t.id||Pt(),this.type=t.geometry.type};G.prototype.changed=function(){this.ctx.store.featureChanged(this.id)},G.prototype.incomingCoords=function(e){this.setCoordinates(e)},G.prototype.setCoordinates=function(e){this.coordinates=e,this.changed()},G.prototype.getCoordinates=function(){return JSON.parse(JSON.stringify(this.coordinates))},G.prototype.setProperty=function(e,t){this.properties[e]=t},G.prototype.toGeoJSON=function(){return JSON.parse(JSON.stringify({id:this.id,type:m.FEATURE,properties:this.properties,geometry:{coordinates:this.getCoordinates(),type:this.type}}))},G.prototype.internal=function(e){var t={id:this.id,meta:B.FEATURE,"meta:type":this.type,active:j.INACTIVE,mode:e};if(this.ctx.options.userProperties)for(var n in this.properties)t["user_"+n]=this.properties[n];return{type:m.FEATURE,properties:t,geometry:{coordinates:this.getCoordinates(),type:this.type}}};var me=function(e,t){G.call(this,e,t)};(me.prototype=Object.create(G.prototype)).isValid=function(){return typeof this.coordinates[0]=="number"&&typeof this.coordinates[1]=="number"},me.prototype.updateCoordinate=function(e,t,n){this.coordinates=arguments.length===3?[t,n]:[e,t],this.changed()},me.prototype.getCoordinate=function(){return this.getCoordinates()};var ie=function(e,t){G.call(this,e,t)};(ie.prototype=Object.create(G.prototype)).isValid=function(){return this.coordinates.length>1},ie.prototype.addCoordinate=function(e,t,n){this.changed();var r=parseInt(e,10);this.coordinates.splice(r,0,[t,n])},ie.prototype.getCoordinate=function(e){var t=parseInt(e,10);return JSON.parse(JSON.stringify(this.coordinates[t]))},ie.prototype.removeCoordinate=function(e){this.changed(),this.coordinates.splice(parseInt(e,10),1)},ie.prototype.updateCoordinate=function(e,t,n){var r=parseInt(e,10);this.coordinates[r]=[t,n],this.changed()};var W=function(e,t){G.call(this,e,t),this.coordinates=this.coordinates.map(function(n){return n.slice(0,-1)})};(W.prototype=Object.create(G.prototype)).isValid=function(){return this.coordinates.length!==0&&this.coordinates.every(function(e){return e.length>2})},W.prototype.incomingCoords=function(e){this.coordinates=e.map(function(t){return t.slice(0,-1)}),this.changed()},W.prototype.setCoordinates=function(e){this.coordinates=e,this.changed()},W.prototype.addCoordinate=function(e,t,n){this.changed();var r=e.split(".").map(function(o){return parseInt(o,10)});this.coordinates[r[0]].splice(r[1],0,[t,n])},W.prototype.removeCoordinate=function(e){this.changed();var t=e.split(".").map(function(r){return parseInt(r,10)}),n=this.coordinates[t[0]];n&&(n.splice(t[1],1),n.length<3&&this.coordinates.splice(t[0],1))},W.prototype.getCoordinate=function(e){var t=e.split(".").map(function(r){return parseInt(r,10)}),n=this.coordinates[t[0]];return JSON.parse(JSON.stringify(n[t[1]]))},W.prototype.getCoordinates=function(){return this.coordinates.map(function(e){return e.concat([e[0]])})},W.prototype.updateCoordinate=function(e,t,n){this.changed();var r=e.split("."),o=parseInt(r[0],10),i=parseInt(r[1],10);this.coordinates[o]===void 0&&(this.coordinates[o]=[]),this.coordinates[o][i]=[t,n]};var or={MultiPoint:me,MultiLineString:ie,MultiPolygon:W},Ye=function(e,t,n,r,o){var i=n.split("."),a=parseInt(i[0],10),l=i[1]?i.slice(1).join("."):null;return e[a][t](l,r,o)},$=function(e,t){if(G.call(this,e,t),delete this.coordinates,this.model=or[t.geometry.type],this.model===void 0)throw new TypeError(t.geometry.type+" is not a valid type");this.features=this._coordinatesToFeatures(t.geometry.coordinates)};function E(e){this.map=e.map,this.drawConfig=JSON.parse(JSON.stringify(e.options||{})),this._ctx=e}($.prototype=Object.create(G.prototype))._coordinatesToFeatures=function(e){var t=this,n=this.model.bind(this);return e.map(function(r){return new n(t.ctx,{id:Pt(),type:m.FEATURE,properties:{},geometry:{coordinates:r,type:t.type.replace("Multi","")}})})},$.prototype.isValid=function(){return this.features.every(function(e){return e.isValid()})},$.prototype.setCoordinates=function(e){this.features=this._coordinatesToFeatures(e),this.changed()},$.prototype.getCoordinate=function(e){return Ye(this.features,"getCoordinate",e)},$.prototype.getCoordinates=function(){return JSON.parse(JSON.stringify(this.features.map(function(e){return e.type===m.POLYGON?e.getCoordinates():e.coordinates})))},$.prototype.updateCoordinate=function(e,t,n){Ye(this.features,"updateCoordinate",e,t,n),this.changed()},$.prototype.addCoordinate=function(e,t,n){Ye(this.features,"addCoordinate",e,t,n),this.changed()},$.prototype.removeCoordinate=function(e){Ye(this.features,"removeCoordinate",e),this.changed()},$.prototype.getFeatures=function(){return this.features},E.prototype.setSelected=function(e){return this._ctx.store.setSelected(e)},E.prototype.setSelectedCoordinates=function(e){var t=this;this._ctx.store.setSelectedCoordinates(e),e.reduce(function(n,r){return n[r.feature_id]===void 0&&(n[r.feature_id]=!0,t._ctx.store.get(r.feature_id).changed()),n},{})},E.prototype.getSelected=function(){return this._ctx.store.getSelected()},E.prototype.getSelectedIds=function(){return this._ctx.store.getSelectedIds()},E.prototype.isSelected=function(e){return this._ctx.store.isSelected(e)},E.prototype.getFeature=function(e){return this._ctx.store.get(e)},E.prototype.select=function(e){return this._ctx.store.select(e)},E.prototype.deselect=function(e){return this._ctx.store.deselect(e)},E.prototype.deleteFeature=function(e,t){return t===void 0&&(t={}),this._ctx.store.delete(e,t)},E.prototype.addFeature=function(e){return this._ctx.store.add(e)},E.prototype.clearSelectedFeatures=function(){return this._ctx.store.clearSelected()},E.prototype.clearSelectedCoordinates=function(){return this._ctx.store.clearSelectedCoordinates()},E.prototype.setActionableState=function(e){e===void 0&&(e={});var t={trash:e.trash||!1,combineFeatures:e.combineFeatures||!1,uncombineFeatures:e.uncombineFeatures||!1};return this._ctx.events.actionable(t)},E.prototype.changeMode=function(e,t,n){return t===void 0&&(t={}),n===void 0&&(n={}),this._ctx.events.changeMode(e,t,n)},E.prototype.updateUIClasses=function(e){return this._ctx.ui.queueMapClasses(e)},E.prototype.activateUIButton=function(e){return this._ctx.ui.setActiveButton(e)},E.prototype.featuresAt=function(e,t,n){if(n===void 0&&(n="click"),n!=="click"&&n!=="touch")throw new Error("invalid buffer type");return xe[n](e,t,this._ctx)},E.prototype.newFeature=function(e){var t=e.geometry.type;return t===m.POINT?new me(this._ctx,e):t===m.LINE_STRING?new ie(this._ctx,e):t===m.POLYGON?new W(this._ctx,e):new $(this._ctx,e)},E.prototype.isInstanceOf=function(e,t){if(e===m.POINT)return t instanceof me;if(e===m.LINE_STRING)return t instanceof ie;if(e===m.POLYGON)return t instanceof W;if(e==="MultiFeature")return t instanceof $;throw new Error("Unknown feature class: "+e)},E.prototype.doRender=function(e){return this._ctx.store.featureChanged(e)},E.prototype.onSetup=function(){},E.prototype.onDrag=function(){},E.prototype.onClick=function(){},E.prototype.onMouseMove=function(){},E.prototype.onMouseDown=function(){},E.prototype.onMouseUp=function(){},E.prototype.onMouseOut=function(){},E.prototype.onKeyUp=function(){},E.prototype.onKeyDown=function(){},E.prototype.onTouchStart=function(){},E.prototype.onTouchMove=function(){},E.prototype.onTouchEnd=function(){},E.prototype.onTap=function(){},E.prototype.onStop=function(){},E.prototype.onTrash=function(){},E.prototype.onCombineFeature=function(){},E.prototype.onUncombineFeature=function(){},E.prototype.toDisplayFeatures=function(){throw new Error("You must overwrite toDisplayFeatures")};var on={drag:"onDrag",click:"onClick",mousemove:"onMouseMove",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseout:"onMouseOut",keyup:"onKeyUp",keydown:"onKeyDown",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onTouchEnd",tap:"onTap"},ir=Object.keys(on);function ar(e){var t=Object.keys(e);return function(n,r){r===void 0&&(r={});var o={},i=t.reduce(function(a,l){return a[l]=e[l],a},new E(n));return{start:function(){var a=this;o=i.onSetup(r),ir.forEach(function(l){var d,h=on[l],g=function(){return!1};e[h]&&(g=function(){return!0}),a.on(l,g,(d=h,function(p){return i[d](o,p)}))})},stop:function(){i.onStop(o)},trash:function(){i.onTrash(o)},combineFeatures:function(){i.onCombineFeatures(o)},uncombineFeatures:function(){i.onUncombineFeatures(o)},render:function(a,l){i.toDisplayFeatures(o,a,l)}}}}function Re(e){return[].concat(e).filter(function(t){return t!==void 0})}function sr(){var e=this;if(!(e.ctx.map&&e.ctx.map.getSource(X.HOT)!==void 0))return d();var t=e.ctx.events.currentModeName();e.ctx.ui.queueMapClasses({mode:t});var n=[],r=[];e.isDirty?r=e.getAllIds():(n=e.getChangedIds().filter(function(h){return e.get(h)!==void 0}),r=e.sources.hot.filter(function(h){return h.properties.id&&n.indexOf(h.properties.id)===-1&&e.get(h.properties.id)!==void 0}).map(function(h){return h.properties.id})),e.sources.hot=[];var o=e.sources.cold.length;e.sources.cold=e.isDirty?[]:e.sources.cold.filter(function(h){var g=h.properties.id||h.properties.parent;return n.indexOf(g)===-1});var i=o!==e.sources.cold.length||r.length>0;function a(h,g){var p=e.get(h).internal(t);e.ctx.events.currentModeRender(p,function(_){e.sources[g].push(_)})}if(n.forEach(function(h){return a(h,"hot")}),r.forEach(function(h){return a(h,"cold")}),i&&e.ctx.map.getSource(X.COLD).setData({type:m.FEATURE_COLLECTION,features:e.sources.cold}),e.ctx.map.getSource(X.HOT).setData({type:m.FEATURE_COLLECTION,features:e.sources.hot}),e._emitSelectionChange&&(e.ctx.map.fire(H.SELECTION_CHANGE,{features:e.getSelected().map(function(h){return h.toGeoJSON()}),points:e.getSelectedCoordinates().map(function(h){return{type:m.FEATURE,properties:{},geometry:{type:m.POINT,coordinates:h.coordinates}}})}),e._emitSelectionChange=!1),e._deletedFeaturesToEmit.length){var l=e._deletedFeaturesToEmit.map(function(h){return h.toGeoJSON()});e._deletedFeaturesToEmit=[],e.ctx.map.fire(H.DELETE,{features:l})}function d(){e.isDirty=!1,e.clearChangedIds()}d(),e.ctx.map.fire(H.RENDER,{})}function x(e){var t,n=this;this._features={},this._featureIds=new Z,this._selectedFeatureIds=new Z,this._selectedCoordinates=[],this._changedFeatureIds=new Z,this._deletedFeaturesToEmit=[],this._emitSelectionChange=!1,this._mapInitialConfig={},this.ctx=e,this.sources={hot:[],cold:[]},this.render=function(){t||(t=requestAnimationFrame(function(){t=null,sr.call(n)}))},this.isDirty=!1}function an(e,t){var n=e._selectedCoordinates.filter(function(r){return e._selectedFeatureIds.has(r.feature_id)});e._selectedCoordinates.length===n.length||t.silent||(e._emitSelectionChange=!0),e._selectedCoordinates=n}x.prototype.createRenderBatch=function(){var e=this,t=this.render,n=0;return this.render=function(){n++},function(){e.render=t,n>0&&e.render()}},x.prototype.setDirty=function(){return this.isDirty=!0,this},x.prototype.featureChanged=function(e){return this._changedFeatureIds.add(e),this},x.prototype.getChangedIds=function(){return this._changedFeatureIds.values()},x.prototype.clearChangedIds=function(){return this._changedFeatureIds.clear(),this},x.prototype.getAllIds=function(){return this._featureIds.values()},x.prototype.add=function(e){return this.featureChanged(e.id),this._features[e.id]=e,this._featureIds.add(e.id),this},x.prototype.delete=function(e,t){var n=this;return t===void 0&&(t={}),Re(e).forEach(function(r){n._featureIds.has(r)&&(n._featureIds.delete(r),n._selectedFeatureIds.delete(r),t.silent||n._deletedFeaturesToEmit.indexOf(n._features[r])===-1&&n._deletedFeaturesToEmit.push(n._features[r]),delete n._features[r],n.isDirty=!0)}),an(this,t),this},x.prototype.get=function(e){return this._features[e]},x.prototype.getAll=function(){var e=this;return Object.keys(this._features).map(function(t){return e._features[t]})},x.prototype.select=function(e,t){var n=this;return t===void 0&&(t={}),Re(e).forEach(function(r){n._selectedFeatureIds.has(r)||(n._selectedFeatureIds.add(r),n._changedFeatureIds.add(r),t.silent||(n._emitSelectionChange=!0))}),this},x.prototype.deselect=function(e,t){var n=this;return t===void 0&&(t={}),Re(e).forEach(function(r){n._selectedFeatureIds.has(r)&&(n._selectedFeatureIds.delete(r),n._changedFeatureIds.add(r),t.silent||(n._emitSelectionChange=!0))}),an(this,t),this},x.prototype.clearSelected=function(e){return e===void 0&&(e={}),this.deselect(this._selectedFeatureIds.values(),{silent:e.silent}),this},x.prototype.setSelected=function(e,t){var n=this;return t===void 0&&(t={}),e=Re(e),this.deselect(this._selectedFeatureIds.values().filter(function(r){return e.indexOf(r)===-1}),{silent:t.silent}),this.select(e.filter(function(r){return!n._selectedFeatureIds.has(r)}),{silent:t.silent}),this},x.prototype.setSelectedCoordinates=function(e){return this._selectedCoordinates=e,this._emitSelectionChange=!0,this},x.prototype.clearSelectedCoordinates=function(){return this._selectedCoordinates=[],this._emitSelectionChange=!0,this},x.prototype.getSelectedIds=function(){return this._selectedFeatureIds.values()},x.prototype.getSelected=function(){var e=this;return this._selectedFeatureIds.values().map(function(t){return e.get(t)})},x.prototype.getSelectedCoordinates=function(){var e=this;return this._selectedCoordinates.map(function(t){return{coordinates:e.get(t.feature_id).getCoordinate(t.coord_path)}})},x.prototype.isSelected=function(e){return this._selectedFeatureIds.has(e)},x.prototype.setFeatureProperty=function(e,t,n){this.get(e).setProperty(t,n),this.featureChanged(e)},x.prototype.storeMapConfig=function(){var e=this;Kt.forEach(function(t){e.ctx.map[t]&&(e._mapInitialConfig[t]=e.ctx.map[t].isEnabled())})},x.prototype.restoreMapConfig=function(){var e=this;Object.keys(this._mapInitialConfig).forEach(function(t){e._mapInitialConfig[t]?e.ctx.map[t].enable():e.ctx.map[t].disable()})},x.prototype.getInitialConfigValue=function(e){return this._mapInitialConfig[e]===void 0||this._mapInitialConfig[e]};var ur=function(){for(var e=arguments,t={},n=0;n<arguments.length;n++){var r=e[n];for(var o in r)cr.call(r,o)&&(t[o]=r[o])}return t},cr=Object.prototype.hasOwnProperty,pe=de(ur),lr=["mode","feature","mouse"];function dr(e){var t=null,n=null,r={onRemove:function(){return e.map.off("load",r.connect),clearInterval(n),r.removeLayers(),e.store.restoreMapConfig(),e.ui.removeButtons(),e.events.removeEventListeners(),e.ui.clearMapClasses(),e.boxZoomInitial&&e.map.boxZoom.enable(),e.map=null,e.container=null,e.store=null,t&&t.parentNode&&t.parentNode.removeChild(t),t=null,this},connect:function(){e.map.off("load",r.connect),clearInterval(n),r.addLayers(),e.store.storeMapConfig(),e.events.addEventListeners()},onAdd:function(o){var i=o.fire;return o.fire=function(a,l){var d=arguments;return i.length===1&&arguments.length!==1&&(d=[pe({},{type:a},l)]),i.apply(o,d)},e.map=o,e.events=function(a){var l=Object.keys(a.options.modes).reduce(function(c,y){return c[y]=ar(a.options.modes[y]),c},{}),d={},h={},g={},p=null,_=null;g.drag=function(c,y){y({point:c.point,time:new Date().getTime()})?(a.ui.queueMapClasses({mouse:N.DRAG}),_.drag(c)):c.originalEvent.stopPropagation()},g.mousedrag=function(c){g.drag(c,function(y){return!Mt(d,y)})},g.touchdrag=function(c){g.drag(c,function(y){return!Lt(h,y)})},g.mousemove=function(c){if((c.originalEvent.buttons!==void 0?c.originalEvent.buttons:c.originalEvent.which)===1)return g.mousedrag(c);var y=ze(c,a);c.featureTarget=y,_.mousemove(c)},g.mousedown=function(c){d={time:new Date().getTime(),point:c.point};var y=ze(c,a);c.featureTarget=y,_.mousedown(c)},g.mouseup=function(c){var y=ze(c,a);c.featureTarget=y,Mt(d,{point:c.point,time:new Date().getTime()})?_.click(c):_.mouseup(c)},g.mouseout=function(c){_.mouseout(c)},g.touchstart=function(c){if(a.options.touchEnabled){h={time:new Date().getTime(),point:c.point};var y=xe.touch(c,null,a)[0];c.featureTarget=y,_.touchstart(c)}},g.touchmove=function(c){if(a.options.touchEnabled)return _.touchmove(c),g.touchdrag(c)},g.touchend=function(c){if(c.originalEvent.preventDefault(),a.options.touchEnabled){var y=xe.touch(c,null,a)[0];c.featureTarget=y,Lt(h,{time:new Date().getTime(),point:c.point})?_.tap(c):_.touchend(c)}};var P=function(c){return!(c===8||c===46||c>=48&&c<=57)};function b(c,y,O){O===void 0&&(O={}),_.stop();var V=l[c];if(V===void 0)throw new Error(c+" is not valid");p=c;var F=V(a,y);_=Je(F,a),O.silent||a.map.fire(H.MODE_CHANGE,{mode:c}),a.store.setDirty(),a.store.render()}g.keydown=function(c){(c.srcElement||c.target).classList.contains("mapboxgl-canvas")&&(c.keyCode!==8&&c.keyCode!==46||!a.options.controls.trash?P(c.keyCode)?_.keydown(c):c.keyCode===49&&a.options.controls.point?b(T.DRAW_POINT):c.keyCode===50&&a.options.controls.line_string?b(T.DRAW_LINE_STRING):c.keyCode===51&&a.options.controls.polygon&&b(T.DRAW_POLYGON):(c.preventDefault(),_.trash()))},g.keyup=function(c){P(c.keyCode)&&_.keyup(c)},g.zoomend=function(){a.store.changeZoom()},g.data=function(c){if(c.dataType==="style"){var y=a.setup,O=a.map,V=a.options,F=a.store;V.styles.some(function(jt){return O.getLayer(jt.id)})||(y.addLayers(),F.setDirty(),F.render())}};var w={trash:!1,combineFeatures:!1,uncombineFeatures:!1};return{start:function(){p=a.options.defaultMode,_=Je(l[p](a),a)},changeMode:b,actionable:function(c){var y=!1;Object.keys(c).forEach(function(O){if(w[O]===void 0)throw new Error("Invalid action type");w[O]!==c[O]&&(y=!0),w[O]=c[O]}),y&&a.map.fire(H.ACTIONABLE,{actions:w})},currentModeName:function(){return p},currentModeRender:function(c,y){return _.render(c,y)},fire:function(c,y){g[c]&&g[c](y)},addEventListeners:function(){a.map.on("mousemove",g.mousemove),a.map.on("mousedown",g.mousedown),a.map.on("mouseup",g.mouseup),a.map.on("data",g.data),a.map.on("touchmove",g.touchmove),a.map.on("touchstart",g.touchstart),a.map.on("touchend",g.touchend),a.container.addEventListener("mouseout",g.mouseout),a.options.keybindings&&(a.container.addEventListener("keydown",g.keydown),a.container.addEventListener("keyup",g.keyup))},removeEventListeners:function(){a.map.off("mousemove",g.mousemove),a.map.off("mousedown",g.mousedown),a.map.off("mouseup",g.mouseup),a.map.off("data",g.data),a.map.off("touchmove",g.touchmove),a.map.off("touchstart",g.touchstart),a.map.off("touchend",g.touchend),a.container.removeEventListener("mouseout",g.mouseout),a.options.keybindings&&(a.container.removeEventListener("keydown",g.keydown),a.container.removeEventListener("keyup",g.keyup))},trash:function(c){_.trash(c)},combineFeatures:function(){_.combineFeatures()},uncombineFeatures:function(){_.uncombineFeatures()},getMode:function(){return p}}}(e),e.ui=function(a){var l={},d=null,h={mode:null,feature:null,mouse:null},g={mode:null,feature:null,mouse:null};function p(c){g=pe(g,c)}function _(){var c,y;if(a.container){var O=[],V=[];lr.forEach(function(F){g[F]!==h[F]&&(O.push(F+"-"+h[F]),g[F]!==null&&V.push(F+"-"+g[F]))}),O.length>0&&(c=a.container.classList).remove.apply(c,O),V.length>0&&(y=a.container.classList).add.apply(y,V),h=pe(h,g)}}function P(c,y){y===void 0&&(y={});var O=document.createElement("button");return O.className=q.CONTROL_BUTTON+" "+y.className,O.setAttribute("title",y.title),y.container.appendChild(O),O.addEventListener("click",function(V){if(V.preventDefault(),V.stopPropagation(),V.target===d)return b(),void y.onDeactivate();w(c),y.onActivate()},!0),O}function b(){d&&(d.classList.remove(q.ACTIVE_BUTTON),d=null)}function w(c){b();var y=l[c];y&&y&&c!=="trash"&&(y.classList.add(q.ACTIVE_BUTTON),d=y)}return{setActiveButton:w,queueMapClasses:p,updateMapClasses:_,clearMapClasses:function(){p({mode:null,feature:null,mouse:null}),_()},addButtons:function(){var c=a.options.controls,y=document.createElement("div");return y.className=q.CONTROL_GROUP+" "+q.CONTROL_BASE,c&&(c[Y.LINE]&&(l[Y.LINE]=P(Y.LINE,{container:y,className:q.CONTROL_BUTTON_LINE,title:"LineString tool "+(a.options.keybindings?"(l)":""),onActivate:function(){return a.events.changeMode(T.DRAW_LINE_STRING)},onDeactivate:function(){return a.events.trash()}})),c[Y.POLYGON]&&(l[Y.POLYGON]=P(Y.POLYGON,{container:y,className:q.CONTROL_BUTTON_POLYGON,title:"Polygon tool "+(a.options.keybindings?"(p)":""),onActivate:function(){return a.events.changeMode(T.DRAW_POLYGON)},onDeactivate:function(){return a.events.trash()}})),c[Y.POINT]&&(l[Y.POINT]=P(Y.POINT,{container:y,className:q.CONTROL_BUTTON_POINT,title:"Marker tool "+(a.options.keybindings?"(m)":""),onActivate:function(){return a.events.changeMode(T.DRAW_POINT)},onDeactivate:function(){return a.events.trash()}})),c.trash&&(l.trash=P("trash",{container:y,className:q.CONTROL_BUTTON_TRASH,title:"Delete",onActivate:function(){a.events.trash()}})),c.combine_features&&(l.combine_features=P("combineFeatures",{container:y,className:q.CONTROL_BUTTON_COMBINE_FEATURES,title:"Combine",onActivate:function(){a.events.combineFeatures()}})),c.uncombine_features&&(l.uncombine_features=P("uncombineFeatures",{container:y,className:q.CONTROL_BUTTON_UNCOMBINE_FEATURES,title:"Uncombine",onActivate:function(){a.events.uncombineFeatures()}}))),y},removeButtons:function(){Object.keys(l).forEach(function(c){var y=l[c];y.parentNode&&y.parentNode.removeChild(y),delete l[c]})}}}(e),e.container=o.getContainer(),e.store=new x(e),t=e.ui.addButtons(),e.options.boxSelect&&(e.boxZoomInitial=o.boxZoom.isEnabled(),o.boxZoom.disable(),o.dragPan.disable(),o.dragPan.enable()),o.loaded()?r.connect():(o.on("load",r.connect),n=setInterval(function(){o.loaded()&&r.connect()},16)),e.events.start(),t},addLayers:function(){e.map.addSource(X.COLD,{data:{type:m.FEATURE_COLLECTION,features:[]},type:"geojson"}),e.map.addSource(X.HOT,{data:{type:m.FEATURE_COLLECTION,features:[]},type:"geojson"}),e.options.styles.forEach(function(o){e.map.addLayer(o)}),e.store.setDirty(!0),e.store.render()},removeLayers:function(){e.options.styles.forEach(function(o){e.map.getLayer(o.id)&&e.map.removeLayer(o.id)}),e.map.getSource(X.COLD)&&e.map.removeSource(X.COLD),e.map.getSource(X.HOT)&&e.map.removeSource(X.HOT)}};return e.setup=r,r}var sn=[{id:"gl-draw-polygon-fill-inactive",type:"fill",filter:["all",["==","active","false"],["==","$type","Polygon"],["!=","mode","static"]],paint:{"fill-color":"#3bb2d0","fill-outline-color":"#3bb2d0","fill-opacity":.1}},{id:"gl-draw-polygon-fill-active",type:"fill",filter:["all",["==","active","true"],["==","$type","Polygon"]],paint:{"fill-color":"#fbb03b","fill-outline-color":"#fbb03b","fill-opacity":.1}},{id:"gl-draw-polygon-midpoint",type:"circle",filter:["all",["==","$type","Point"],["==","meta","midpoint"]],paint:{"circle-radius":3,"circle-color":"#fbb03b"}},{id:"gl-draw-polygon-stroke-inactive",type:"line",filter:["all",["==","active","false"],["==","$type","Polygon"],["!=","mode","static"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#3bb2d0","line-width":2}},{id:"gl-draw-polygon-stroke-active",type:"line",filter:["all",["==","active","true"],["==","$type","Polygon"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fbb03b","line-dasharray":[.2,2],"line-width":2}},{id:"gl-draw-line-inactive",type:"line",filter:["all",["==","active","false"],["==","$type","LineString"],["!=","mode","static"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#3bb2d0","line-width":2}},{id:"gl-draw-line-active",type:"line",filter:["all",["==","$type","LineString"],["==","active","true"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fbb03b","line-dasharray":[.2,2],"line-width":2}},{id:"gl-draw-polygon-and-line-vertex-stroke-inactive",type:"circle",filter:["all",["==","meta","vertex"],["==","$type","Point"],["!=","mode","static"]],paint:{"circle-radius":5,"circle-color":"#fff"}},{id:"gl-draw-polygon-and-line-vertex-inactive",type:"circle",filter:["all",["==","meta","vertex"],["==","$type","Point"],["!=","mode","static"]],paint:{"circle-radius":3,"circle-color":"#fbb03b"}},{id:"gl-draw-point-point-stroke-inactive",type:"circle",filter:["all",["==","active","false"],["==","$type","Point"],["==","meta","feature"],["!=","mode","static"]],paint:{"circle-radius":5,"circle-opacity":1,"circle-color":"#fff"}},{id:"gl-draw-point-inactive",type:"circle",filter:["all",["==","active","false"],["==","$type","Point"],["==","meta","feature"],["!=","mode","static"]],paint:{"circle-radius":3,"circle-color":"#3bb2d0"}},{id:"gl-draw-point-stroke-active",type:"circle",filter:["all",["==","$type","Point"],["==","active","true"],["!=","meta","midpoint"]],paint:{"circle-radius":7,"circle-color":"#fff"}},{id:"gl-draw-point-active",type:"circle",filter:["all",["==","$type","Point"],["!=","meta","midpoint"],["==","active","true"]],paint:{"circle-radius":5,"circle-color":"#fbb03b"}},{id:"gl-draw-polygon-fill-static",type:"fill",filter:["all",["==","mode","static"],["==","$type","Polygon"]],paint:{"fill-color":"#404040","fill-outline-color":"#404040","fill-opacity":.1}},{id:"gl-draw-polygon-stroke-static",type:"line",filter:["all",["==","mode","static"],["==","$type","Polygon"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#404040","line-width":2}},{id:"gl-draw-line-static",type:"line",filter:["all",["==","mode","static"],["==","$type","LineString"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#404040","line-width":2}},{id:"gl-draw-point-static",type:"circle",filter:["all",["==","mode","static"],["==","$type","Point"]],paint:{"circle-radius":5,"circle-color":"#404040"}}];function $e(e){return function(t){var n=t.featureTarget;return!!n&&!!n.properties&&n.properties.meta===e}}function un(e){return!!e.originalEvent&&!!e.originalEvent.shiftKey&&e.originalEvent.button===0}function _e(e){return!!e.featureTarget&&!!e.featureTarget.properties&&e.featureTarget.properties.active===j.ACTIVE&&e.featureTarget.properties.meta===B.FEATURE}function At(e){return!!e.featureTarget&&!!e.featureTarget.properties&&e.featureTarget.properties.active===j.INACTIVE&&e.featureTarget.properties.meta===B.FEATURE}function qe(e){return e.featureTarget===void 0}function wt(e){return!!e.featureTarget&&!!e.featureTarget.properties&&e.featureTarget.properties.meta===B.FEATURE}function De(e){var t=e.featureTarget;return!!t&&!!t.properties&&t.properties.meta===B.VERTEX}function He(e){return!!e.originalEvent&&e.originalEvent.shiftKey===!0}function Xe(e){return e.keyCode===27}function Ze(e){return e.keyCode===13}var pr=Object.freeze({__proto__:null,isOfMetaType:$e,isShiftMousedown:un,isActiveFeature:_e,isInactiveFeature:At,noTarget:qe,isFeature:wt,isVertex:De,isShiftDown:He,isEscapeKey:Xe,isEnterKey:Ze,isTrue:function(){return!0}}),fr=Me;function Me(e,t){this.x=e,this.y=t}Me.prototype={clone:function(){return new Me(this.x,this.y)},add:function(e){return this.clone()._add(e)},sub:function(e){return this.clone()._sub(e)},multByPoint:function(e){return this.clone()._multByPoint(e)},divByPoint:function(e){return this.clone()._divByPoint(e)},mult:function(e){return this.clone()._mult(e)},div:function(e){return this.clone()._div(e)},rotate:function(e){return this.clone()._rotate(e)},rotateAround:function(e,t){return this.clone()._rotateAround(e,t)},matMult:function(e){return this.clone()._matMult(e)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(e){return this.x===e.x&&this.y===e.y},dist:function(e){return Math.sqrt(this.distSqr(e))},distSqr:function(e){var t=e.x-this.x,n=e.y-this.y;return t*t+n*n},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(e){return Math.atan2(this.y-e.y,this.x-e.x)},angleWith:function(e){return this.angleWithSep(e.x,e.y)},angleWithSep:function(e,t){return Math.atan2(this.x*t-this.y*e,this.x*e+this.y*t)},_matMult:function(e){var t=e[0]*this.x+e[1]*this.y,n=e[2]*this.x+e[3]*this.y;return this.x=t,this.y=n,this},_add:function(e){return this.x+=e.x,this.y+=e.y,this},_sub:function(e){return this.x-=e.x,this.y-=e.y,this},_mult:function(e){return this.x*=e,this.y*=e,this},_div:function(e){return this.x/=e,this.y/=e,this},_multByPoint:function(e){return this.x*=e.x,this.y*=e.y,this},_divByPoint:function(e){return this.x/=e.x,this.y/=e.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var e=this.y;return this.y=this.x,this.x=-e,this},_rotate:function(e){var t=Math.cos(e),n=Math.sin(e),r=t*this.x-n*this.y,o=n*this.x+t*this.y;return this.x=r,this.y=o,this},_rotateAround:function(e,t){var n=Math.cos(e),r=Math.sin(e),o=t.x+n*(this.x-t.x)-r*(this.y-t.y),i=t.y+r*(this.x-t.x)+n*(this.y-t.y);return this.x=o,this.y=i,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},Me.convert=function(e){return e instanceof Me?e:Array.isArray(e)?new Me(e[0],e[1]):e};var hr=de(fr);function Ft(e,t){var n=t.getBoundingClientRect();return new hr(e.clientX-n.left-(t.clientLeft||0),e.clientY-n.top-(t.clientTop||0))}function Le(e,t,n,r){return{type:m.FEATURE,properties:{meta:B.VERTEX,parent:e,coord_path:n,active:r?j.ACTIVE:j.INACTIVE},geometry:{type:m.POINT,coordinates:t}}}function cn(e,t,n){var r=t.geometry.coordinates,o=n.geometry.coordinates;if(r[1]>85||r[1]<It||o[1]>85||o[1]<It)return null;var i={lng:(r[0]+o[0])/2,lat:(r[1]+o[1])/2};return{type:m.FEATURE,properties:{meta:B.MIDPOINT,parent:e,lng:i.lng,lat:i.lat,coord_path:n.properties.coord_path},geometry:{type:m.POINT,coordinates:[i.lng,i.lat]}}}function We(e,t,n){t===void 0&&(t={}),n===void 0&&(n=null);var r,o=e.geometry,i=o.type,a=o.coordinates,l=e.properties&&e.properties.id,d=[];function h(p,_){var P="",b=null;p.forEach(function(w,c){var y=_!=null?_+"."+c:String(c),O=Le(l,w,y,g(y));if(t.midpoints&&b){var V=cn(l,b,O);V&&d.push(V)}b=O;var F=JSON.stringify(w);P!==F&&d.push(O),c===0&&(P=F)})}function g(p){return!!t.selectedPaths&&t.selectedPaths.indexOf(p)!==-1}return i===m.POINT?d.push(Le(l,a,n,g(n))):i===m.POLYGON?a.forEach(function(p,_){h(p,n!==null?n+"."+_:String(_))}):i===m.LINE_STRING?h(a,n):i.indexOf(m.MULTI_PREFIX)===0&&(r=i.replace(m.MULTI_PREFIX,""),a.forEach(function(p,_){var P={type:m.FEATURE,properties:e.properties,geometry:{type:r,coordinates:p}};d=d.concat(We(P,t,_))})),d}var ee={enable:function(e){setTimeout(function(){e.map&&e.map.doubleClickZoom&&e._ctx&&e._ctx.store&&e._ctx.store.getInitialConfigValue&&e._ctx.store.getInitialConfigValue("doubleClickZoom")&&e.map.doubleClickZoom.enable()},0)},disable:function(e){setTimeout(function(){e.map&&e.map.doubleClickZoom&&e.map.doubleClickZoom.disable()},0)}},Ke={exports:{}},ln=function(e){if(!e||!e.type)return null;var t=gr[e.type];if(!t)return null;if(t==="geometry")return{type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:e}]};if(t==="feature")return{type:"FeatureCollection",features:[e]};if(t==="featurecollection")return e},gr={Point:"geometry",MultiPoint:"geometry",LineString:"geometry",MultiLineString:"geometry",Polygon:"geometry",MultiPolygon:"geometry",GeometryCollection:"geometry",Feature:"feature",FeatureCollection:"featurecollection"},yr=de(ln),vr=Object.freeze({__proto__:null,default:function e(t){switch(t&&t.type||null){case"FeatureCollection":return t.features=t.features.reduce(function(n,r){return n.concat(e(r))},[]),t;case"Feature":return t.geometry?e(t.geometry).map(function(n){var r={type:"Feature",properties:JSON.parse(JSON.stringify(t.properties)),geometry:n};return t.id!==void 0&&(r.id=t.id),r}):[t];case"MultiPoint":return t.coordinates.map(function(n){return{type:"Point",coordinates:n}});case"MultiPolygon":return t.coordinates.map(function(n){return{type:"Polygon",coordinates:n}});case"MultiLineString":return t.coordinates.map(function(n){return{type:"LineString",coordinates:n}});case"GeometryCollection":return t.geometries.map(e).reduce(function(n,r){return n.concat(r)},[]);case"Point":case"Polygon":case"LineString":return[t]}}}),mr=ln,Qe=Qn(vr),_r=function(e){return function t(n){return Array.isArray(n)&&n.length&&typeof n[0]=="number"?[n]:n.reduce(function(r,o){return Array.isArray(o)&&Array.isArray(o[0])?r.concat(t(o)):(r.push(o),r)},[])}(e)};Qe instanceof Function||(Qe=Qe.default);var dn={exports:{}},br=dn.exports=function(e){return new K(e)};function K(e){this.value=e}function pn(e,t,n){var r=[],o=[],i=!0;return function a(l){var d=n?fn(l):l,h={},g=!0,p={node:d,node_:l,path:[].concat(r),parent:o[o.length-1],parents:o,key:r.slice(-1)[0],isRoot:r.length===0,level:r.length,circular:null,update:function(b,w){p.isRoot||(p.parent.node[p.key]=b),p.node=b,w&&(g=!1)},delete:function(b){delete p.parent.node[p.key],b&&(g=!1)},remove:function(b){hn(p.parent.node)?p.parent.node.splice(p.key,1):delete p.parent.node[p.key],b&&(g=!1)},keys:null,before:function(b){h.before=b},after:function(b){h.after=b},pre:function(b){h.pre=b},post:function(b){h.post=b},stop:function(){i=!1},block:function(){g=!1}};if(!i)return p;function _(){if(typeof p.node=="object"&&p.node!==null){p.keys&&p.node_===p.node||(p.keys=et(p.node)),p.isLeaf=p.keys.length==0;for(var b=0;b<o.length;b++)if(o[b].node_===l){p.circular=o[b];break}}else p.isLeaf=!0,p.keys=null;p.notLeaf=!p.isLeaf,p.notRoot=!p.isRoot}_();var P=t.call(p,p.node);return P!==void 0&&p.update&&p.update(P),h.before&&h.before.call(p,p.node),g&&(typeof p.node!="object"||p.node===null||p.circular||(o.push(p),_(),tt(p.keys,function(b,w){r.push(b),h.pre&&h.pre.call(p,p.node[b],b);var c=a(p.node[b]);n&&nt.call(p.node,b)&&(p.node[b]=c.node),c.isLast=w==p.keys.length-1,c.isFirst=w==0,h.post&&h.post.call(p,c),r.pop()}),o.pop()),h.after&&h.after.call(p,p.node)),p}(e).node}function fn(e){if(typeof e=="object"&&e!==null){var t;if(hn(e))t=[];else if(Ne(e)==="[object Date]")t=new Date(e.getTime?e.getTime():e);else if(function(o){return Ne(o)==="[object RegExp]"}(e))t=new RegExp(e);else if(function(o){return Ne(o)==="[object Error]"}(e))t={message:e.message};else if(function(o){return Ne(o)==="[object Boolean]"}(e))t=new Boolean(e);else if(function(o){return Ne(o)==="[object Number]"}(e))t=new Number(e);else if(function(o){return Ne(o)==="[object String]"}(e))t=new String(e);else if(Object.create&&Object.getPrototypeOf)t=Object.create(Object.getPrototypeOf(e));else if(e.constructor===Object)t={};else{var n=e.constructor&&e.constructor.prototype||e.__proto__||{},r=function(){};r.prototype=n,t=new r}return tt(et(e),function(o){t[o]=e[o]}),t}return e}K.prototype.get=function(e){for(var t=this.value,n=0;n<e.length;n++){var r=e[n];if(!t||!nt.call(t,r)){t=void 0;break}t=t[r]}return t},K.prototype.has=function(e){for(var t=this.value,n=0;n<e.length;n++){var r=e[n];if(!t||!nt.call(t,r))return!1;t=t[r]}return!0},K.prototype.set=function(e,t){for(var n=this.value,r=0;r<e.length-1;r++){var o=e[r];nt.call(n,o)||(n[o]={}),n=n[o]}return n[e[r]]=t,t},K.prototype.map=function(e){return pn(this.value,e,!0)},K.prototype.forEach=function(e){return this.value=pn(this.value,e,!1),this.value},K.prototype.reduce=function(e,t){var n=arguments.length===1,r=n?this.value:t;return this.forEach(function(o){this.isRoot&&n||(r=e.call(this,r,o))}),r},K.prototype.paths=function(){var e=[];return this.forEach(function(t){e.push(this.path)}),e},K.prototype.nodes=function(){var e=[];return this.forEach(function(t){e.push(this.node)}),e},K.prototype.clone=function(){var e=[],t=[];return function n(r){for(var o=0;o<e.length;o++)if(e[o]===r)return t[o];if(typeof r=="object"&&r!==null){var i=fn(r);return e.push(r),t.push(i),tt(et(r),function(a){i[a]=n(r[a])}),e.pop(),t.pop(),i}return r}(this.value)};var et=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};function Ne(e){return Object.prototype.toString.call(e)}var hn=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"},tt=function(e,t){if(e.forEach)return e.forEach(t);for(var n=0;n<e.length;n++)t(e[n],n,e)};tt(et(K.prototype),function(e){br[e]=function(t){var n=[].slice.call(arguments,1),r=new K(t);return r[e].apply(r,n)}});var nt=Object.hasOwnProperty||function(e,t){return t in e},Er=dn.exports,Tr=J;function J(e){if(!(this instanceof J))return new J(e);this._bbox=e||[1/0,1/0,-1/0,-1/0],this._valid=!!e}J.prototype.include=function(e){return this._valid=!0,this._bbox[0]=Math.min(this._bbox[0],e[0]),this._bbox[1]=Math.min(this._bbox[1],e[1]),this._bbox[2]=Math.max(this._bbox[2],e[0]),this._bbox[3]=Math.max(this._bbox[3],e[1]),this},J.prototype.equals=function(e){var t;return t=e instanceof J?e.bbox():e,this._bbox[0]==t[0]&&this._bbox[1]==t[1]&&this._bbox[2]==t[2]&&this._bbox[3]==t[3]},J.prototype.center=function(e){return this._valid?[(this._bbox[0]+this._bbox[2])/2,(this._bbox[1]+this._bbox[3])/2]:null},J.prototype.union=function(e){var t;return this._valid=!0,t=e instanceof J?e.bbox():e,this._bbox[0]=Math.min(this._bbox[0],t[0]),this._bbox[1]=Math.min(this._bbox[1],t[1]),this._bbox[2]=Math.max(this._bbox[2],t[2]),this._bbox[3]=Math.max(this._bbox[3],t[3]),this},J.prototype.bbox=function(){return this._valid?this._bbox:null},J.prototype.contains=function(e){if(!e)return this._fastContains();if(!this._valid)return null;var t=e[0],n=e[1];return this._bbox[0]<=t&&this._bbox[1]<=n&&this._bbox[2]>=t&&this._bbox[3]>=n},J.prototype.intersect=function(e){return this._valid?(t=e instanceof J?e.bbox():e,!(this._bbox[0]>t[2]||this._bbox[2]<t[0]||this._bbox[3]<t[1]||this._bbox[1]>t[3])):null;var t},J.prototype._fastContains=function(){if(!this._valid)return new Function("return null;");var e="return "+this._bbox[0]+"<= ll[0] &&"+this._bbox[1]+"<= ll[1] &&"+this._bbox[2]+">= ll[0] &&"+this._bbox[3]+">= ll[1]";return new Function("ll",e)},J.prototype.polygon=function(){return this._valid?{type:"Polygon",coordinates:[[[this._bbox[0],this._bbox[1]],[this._bbox[2],this._bbox[1]],[this._bbox[2],this._bbox[3]],[this._bbox[0],this._bbox[3]],[this._bbox[0],this._bbox[1]]]]}:null};var Cr=function(e){if(!e)return[];var t=Qe(mr(e)),n=[];return t.features.forEach(function(r){r.geometry&&(n=n.concat(_r(r.geometry.coordinates)))}),n},Or=Er,Sr=Tr,gn={features:["FeatureCollection"],coordinates:["Point","MultiPoint","LineString","MultiLineString","Polygon","MultiPolygon"],geometry:["Feature"],geometries:["GeometryCollection"]},Ir=Object.keys(gn);function Rt(e){for(var t=Sr(),n=Cr(e),r=0;r<n.length;r++)t.include(n[r]);return t}Ke.exports=function(e){return Rt(e).bbox()},Ke.exports.polygon=function(e){return Rt(e).polygon()},Ke.exports.bboxify=function(e){return Or(e).map(function(t){t&&Ir.some(function(n){return!!t[n]&&gn[n].indexOf(t.type)!==-1})&&(t.bbox=Rt(t).bbox(),this.update(t))})};var xr=de(Ke.exports),rt=-90;function Dt(e,t){var n=rt,r=90,o=rt,i=90,a=270,l=-270;e.forEach(function(h){var g=xr(h),p=g[1],_=g[3],P=g[0],b=g[2];p>n&&(n=p),_<r&&(r=_),_>o&&(o=_),p<i&&(i=p),P<a&&(a=P),b>l&&(l=b)});var d=t;return n+d.lat>85&&(d.lat=85-n),o+d.lat>90&&(d.lat=90-o),r+d.lat<-85&&(d.lat=-85-r),i+d.lat<rt&&(d.lat=rt-i),a+d.lng<=-270&&(d.lng+=360*Math.ceil(Math.abs(d.lng)/360)),l+d.lng>=270&&(d.lng-=360*Math.ceil(Math.abs(d.lng)/360)),d}function kt(e,t){var n=Dt(e.map(function(r){return r.toGeoJSON()}),t);e.forEach(function(r){var o,i=r.getCoordinates(),a=function(d){var h={lng:d[0]+n.lng,lat:d[1]+n.lat};return[h.lng,h.lat]},l=function(d){return d.map(function(h){return a(h)})};r.type===m.POINT?o=a(i):r.type===m.LINE_STRING||r.type===m.MULTI_POINT?o=i.map(a):r.type===m.POLYGON||r.type===m.MULTI_LINE_STRING?o=i.map(l):r.type===m.MULTI_POLYGON&&(o=i.map(function(d){return d.map(function(h){return l(h)})})),r.incomingCoords(o)})}var D={onSetup:function(e){var t=this,n={dragMoveLocation:null,boxSelectStartLocation:null,boxSelectElement:void 0,boxSelecting:!1,canBoxSelect:!1,dragMoving:!1,canDragMove:!1,initiallySelectedFeatureIds:e.featureIds||[]};return this.setSelected(n.initiallySelectedFeatureIds.filter(function(r){return t.getFeature(r)!==void 0})),this.fireActionable(),this.setActionableState({combineFeatures:!0,uncombineFeatures:!0,trash:!0}),n},fireUpdate:function(){this.map.fire(H.UPDATE,{action:St.MOVE,features:this.getSelected().map(function(e){return e.toGeoJSON()})})},fireActionable:function(){var e=this,t=this.getSelected(),n=t.filter(function(l){return e.isInstanceOf("MultiFeature",l)}),r=!1;if(t.length>1){r=!0;var o=t[0].type.replace("Multi","");t.forEach(function(l){l.type.replace("Multi","")!==o&&(r=!1)})}var i=n.length>0,a=t.length>0;this.setActionableState({combineFeatures:r,uncombineFeatures:i,trash:a})},getUniqueIds:function(e){return e.length?e.map(function(t){return t.properties.id}).filter(function(t){return t!==void 0}).reduce(function(t,n){return t.add(n),t},new Z).values():[]},stopExtendedInteractions:function(e){e.boxSelectElement&&(e.boxSelectElement.parentNode&&e.boxSelectElement.parentNode.removeChild(e.boxSelectElement),e.boxSelectElement=null),this.map.dragPan.enable(),e.boxSelecting=!1,e.canBoxSelect=!1,e.dragMoving=!1,e.canDragMove=!1},onStop:function(){ee.enable(this)},onMouseMove:function(e,t){return wt(t)&&e.dragMoving&&this.fireUpdate(),this.stopExtendedInteractions(e),!0},onMouseOut:function(e){return!e.dragMoving||this.fireUpdate()}};D.onTap=D.onClick=function(e,t){return qe(t)?this.clickAnywhere(e,t):$e(B.VERTEX)(t)?this.clickOnVertex(e,t):wt(t)?this.clickOnFeature(e,t):void 0},D.clickAnywhere=function(e){var t=this,n=this.getSelectedIds();n.length&&(this.clearSelectedFeatures(),n.forEach(function(r){return t.doRender(r)})),ee.enable(this),this.stopExtendedInteractions(e)},D.clickOnVertex=function(e,t){this.changeMode(T.DIRECT_SELECT,{featureId:t.featureTarget.properties.parent,coordPath:t.featureTarget.properties.coord_path,startPos:t.lngLat}),this.updateUIClasses({mouse:N.MOVE})},D.startOnActiveFeature=function(e,t){this.stopExtendedInteractions(e),this.map.dragPan.disable(),this.doRender(t.featureTarget.properties.id),e.canDragMove=!0,e.dragMoveLocation=t.lngLat},D.clickOnFeature=function(e,t){var n=this;ee.disable(this),this.stopExtendedInteractions(e);var r=He(t),o=this.getSelectedIds(),i=t.featureTarget.properties.id,a=this.isSelected(i);if(!r&&a&&this.getFeature(i).type!==m.POINT)return this.changeMode(T.DIRECT_SELECT,{featureId:i});a&&r?(this.deselect(i),this.updateUIClasses({mouse:N.POINTER}),o.length===1&&ee.enable(this)):!a&&r?(this.select(i),this.updateUIClasses({mouse:N.MOVE})):a||r||(o.forEach(function(l){return n.doRender(l)}),this.setSelected(i),this.updateUIClasses({mouse:N.MOVE})),this.doRender(i)},D.onMouseDown=function(e,t){return _e(t)?this.startOnActiveFeature(e,t):this.drawConfig.boxSelect&&un(t)?this.startBoxSelect(e,t):void 0},D.startBoxSelect=function(e,t){this.stopExtendedInteractions(e),this.map.dragPan.disable(),e.boxSelectStartLocation=Ft(t.originalEvent,this.map.getContainer()),e.canBoxSelect=!0},D.onTouchStart=function(e,t){if(_e(t))return this.startOnActiveFeature(e,t)},D.onDrag=function(e,t){return e.canDragMove?this.dragMove(e,t):this.drawConfig.boxSelect&&e.canBoxSelect?this.whileBoxSelect(e,t):void 0},D.whileBoxSelect=function(e,t){e.boxSelecting=!0,this.updateUIClasses({mouse:N.ADD}),e.boxSelectElement||(e.boxSelectElement=document.createElement("div"),e.boxSelectElement.classList.add(q.BOX_SELECT),this.map.getContainer().appendChild(e.boxSelectElement));var n=Ft(t.originalEvent,this.map.getContainer()),r=Math.min(e.boxSelectStartLocation.x,n.x),o=Math.max(e.boxSelectStartLocation.x,n.x),i=Math.min(e.boxSelectStartLocation.y,n.y),a=Math.max(e.boxSelectStartLocation.y,n.y),l="translate("+r+"px, "+i+"px)";e.boxSelectElement.style.transform=l,e.boxSelectElement.style.WebkitTransform=l,e.boxSelectElement.style.width=o-r+"px",e.boxSelectElement.style.height=a-i+"px"},D.dragMove=function(e,t){e.dragMoving=!0,t.originalEvent.stopPropagation();var n={lng:t.lngLat.lng-e.dragMoveLocation.lng,lat:t.lngLat.lat-e.dragMoveLocation.lat};kt(this.getSelected(),n),e.dragMoveLocation=t.lngLat},D.onTouchEnd=D.onMouseUp=function(e,t){var n=this;if(e.dragMoving)this.fireUpdate();else if(e.boxSelecting){var r=[e.boxSelectStartLocation,Ft(t.originalEvent,this.map.getContainer())],o=this.featuresAt(null,r,"click"),i=this.getUniqueIds(o).filter(function(a){return!n.isSelected(a)});i.length&&(this.select(i),i.forEach(function(a){return n.doRender(a)}),this.updateUIClasses({mouse:N.MOVE}))}this.stopExtendedInteractions(e)},D.toDisplayFeatures=function(e,t,n){t.properties.active=this.isSelected(t.properties.id)?j.ACTIVE:j.INACTIVE,n(t),this.fireActionable(),t.properties.active===j.ACTIVE&&t.geometry.type!==m.POINT&&We(t).forEach(n)},D.onTrash=function(){this.deleteFeature(this.getSelectedIds()),this.fireActionable()},D.onCombineFeatures=function(){var e=this.getSelected();if(!(e.length===0||e.length<2)){for(var t=[],n=[],r=e[0].type.replace("Multi",""),o=0;o<e.length;o++){var i=e[o];if(i.type.replace("Multi","")!==r)return;i.type.includes("Multi")?i.getCoordinates().forEach(function(l){t.push(l)}):t.push(i.getCoordinates()),n.push(i.toGeoJSON())}if(n.length>1){var a=this.newFeature({type:m.FEATURE,properties:n[0].properties,geometry:{type:"Multi"+r,coordinates:t}});this.addFeature(a),this.deleteFeature(this.getSelectedIds(),{silent:!0}),this.setSelected([a.id]),this.map.fire(H.COMBINE_FEATURES,{createdFeatures:[a.toGeoJSON()],deletedFeatures:n})}this.fireActionable()}},D.onUncombineFeatures=function(){var e=this,t=this.getSelected();if(t.length!==0){for(var n=[],r=[],o=function(a){var l=t[a];e.isInstanceOf("MultiFeature",l)&&(l.getFeatures().forEach(function(d){e.addFeature(d),d.properties=l.properties,n.push(d.toGeoJSON()),e.select([d.id])}),e.deleteFeature(l.id,{silent:!0}),r.push(l.toGeoJSON()))},i=0;i<t.length;i++)o(i);n.length>1&&this.map.fire(H.UNCOMBINE_FEATURES,{createdFeatures:n,deletedFeatures:r}),this.fireActionable()}};var yn=$e(B.VERTEX),vn=$e(B.MIDPOINT),fe={fireUpdate:function(){this.map.fire(H.UPDATE,{action:St.CHANGE_COORDINATES,features:this.getSelected().map(function(e){return e.toGeoJSON()})})},fireActionable:function(e){this.setActionableState({combineFeatures:!1,uncombineFeatures:!1,trash:e.selectedCoordPaths.length>0})},startDragging:function(e,t){this.map.dragPan.disable(),e.canDragMove=!0,e.dragMoveLocation=t.lngLat},stopDragging:function(e){this.map.dragPan.enable(),e.dragMoving=!1,e.canDragMove=!1,e.dragMoveLocation=null},onVertex:function(e,t){this.startDragging(e,t);var n=t.featureTarget.properties,r=e.selectedCoordPaths.indexOf(n.coord_path);He(t)||r!==-1?He(t)&&r===-1&&e.selectedCoordPaths.push(n.coord_path):e.selectedCoordPaths=[n.coord_path];var o=this.pathsToCoordinates(e.featureId,e.selectedCoordPaths);this.setSelectedCoordinates(o)},onMidpoint:function(e,t){this.startDragging(e,t);var n=t.featureTarget.properties;e.feature.addCoordinate(n.coord_path,n.lng,n.lat),this.fireUpdate(),e.selectedCoordPaths=[n.coord_path]},pathsToCoordinates:function(e,t){return t.map(function(n){return{feature_id:e,coord_path:n}})},onFeature:function(e,t){e.selectedCoordPaths.length===0?this.startDragging(e,t):this.stopDragging(e)},dragFeature:function(e,t,n){kt(this.getSelected(),n),e.dragMoveLocation=t.lngLat},dragVertex:function(e,t,n){for(var r=e.selectedCoordPaths.map(function(l){return e.feature.getCoordinate(l)}),o=Dt(r.map(function(l){return{type:m.FEATURE,properties:{},geometry:{type:m.POINT,coordinates:l}}}),n),i=0;i<r.length;i++){var a=r[i];e.feature.updateCoordinate(e.selectedCoordPaths[i],a[0]+o.lng,a[1]+o.lat)}},clickNoTarget:function(){this.changeMode(T.SIMPLE_SELECT)},clickInactive:function(){this.changeMode(T.SIMPLE_SELECT)},clickActiveFeature:function(e){e.selectedCoordPaths=[],this.clearSelectedCoordinates(),e.feature.changed()},onSetup:function(e){var t=e.featureId,n=this.getFeature(t);if(!n)throw new Error("You must provide a featureId to enter direct_select mode");if(n.type===m.POINT)throw new TypeError("direct_select mode doesn't handle point features");var r={featureId:t,feature:n,dragMoveLocation:e.startPos||null,dragMoving:!1,canDragMove:!1,selectedCoordPaths:e.coordPath?[e.coordPath]:[]};return this.setSelectedCoordinates(this.pathsToCoordinates(t,r.selectedCoordPaths)),this.setSelected(t),ee.disable(this),this.setActionableState({trash:!0}),r},onStop:function(){ee.enable(this),this.clearSelectedCoordinates()},toDisplayFeatures:function(e,t,n){e.featureId===t.properties.id?(t.properties.active=j.ACTIVE,n(t),We(t,{map:this.map,midpoints:!0,selectedPaths:e.selectedCoordPaths}).forEach(n)):(t.properties.active=j.INACTIVE,n(t)),this.fireActionable(e)},onTrash:function(e){e.selectedCoordPaths.sort(function(t,n){return n.localeCompare(t,"en",{numeric:!0})}).forEach(function(t){return e.feature.removeCoordinate(t)}),this.fireUpdate(),e.selectedCoordPaths=[],this.clearSelectedCoordinates(),this.fireActionable(e),e.feature.isValid()===!1&&(this.deleteFeature([e.featureId]),this.changeMode(T.SIMPLE_SELECT,{}))},onMouseMove:function(e,t){var n=_e(t),r=yn(t),o=vn(t),i=e.selectedCoordPaths.length===0;return n&&i||r&&!i?this.updateUIClasses({mouse:N.MOVE}):this.updateUIClasses({mouse:N.NONE}),(r||n||o)&&e.dragMoving&&this.fireUpdate(),this.stopDragging(e),!0},onMouseOut:function(e){return e.dragMoving&&this.fireUpdate(),!0}};fe.onTouchStart=fe.onMouseDown=function(e,t){return yn(t)?this.onVertex(e,t):_e(t)?this.onFeature(e,t):vn(t)?this.onMidpoint(e,t):void 0},fe.onDrag=function(e,t){if(e.canDragMove===!0){e.dragMoving=!0,t.originalEvent.stopPropagation();var n={lng:t.lngLat.lng-e.dragMoveLocation.lng,lat:t.lngLat.lat-e.dragMoveLocation.lat};e.selectedCoordPaths.length>0?this.dragVertex(e,t,n):this.dragFeature(e,t,n),e.dragMoveLocation=t.lngLat}},fe.onClick=function(e,t){return qe(t)?this.clickNoTarget(e,t):_e(t)?this.clickActiveFeature(e,t):At(t)?this.clickInactive(e,t):void this.stopDragging(e)},fe.onTap=function(e,t){return qe(t)?this.clickNoTarget(e,t):_e(t)?this.clickActiveFeature(e,t):At(t)?this.clickInactive(e,t):void 0},fe.onTouchEnd=fe.onMouseUp=function(e){e.dragMoving&&this.fireUpdate(),this.stopDragging(e)};var ne={};function ot(e,t){return!!e.lngLat&&e.lngLat.lng===t[0]&&e.lngLat.lat===t[1]}ne.onSetup=function(){var e=this.newFeature({type:m.FEATURE,properties:{},geometry:{type:m.POINT,coordinates:[]}});return this.addFeature(e),this.clearSelectedFeatures(),this.updateUIClasses({mouse:N.ADD}),this.activateUIButton(Y.POINT),this.setActionableState({trash:!0}),{point:e}},ne.stopDrawingAndRemove=function(e){this.deleteFeature([e.point.id],{silent:!0}),this.changeMode(T.SIMPLE_SELECT)},ne.onTap=ne.onClick=function(e,t){this.updateUIClasses({mouse:N.MOVE}),e.point.updateCoordinate("",t.lngLat.lng,t.lngLat.lat),this.map.fire(H.CREATE,{features:[e.point.toGeoJSON()]}),this.changeMode(T.SIMPLE_SELECT,{featureIds:[e.point.id]})},ne.onStop=function(e){this.activateUIButton(),e.point.getCoordinate().length||this.deleteFeature([e.point.id],{silent:!0})},ne.toDisplayFeatures=function(e,t,n){var r=t.properties.id===e.point.id;if(t.properties.active=r?j.ACTIVE:j.INACTIVE,!r)return n(t)},ne.onTrash=ne.stopDrawingAndRemove,ne.onKeyUp=function(e,t){if(Xe(t)||Ze(t))return this.stopDrawingAndRemove(e,t)};var be={onSetup:function(){var e=this.newFeature({type:m.FEATURE,properties:{},geometry:{type:m.POLYGON,coordinates:[[]]}});return this.addFeature(e),this.clearSelectedFeatures(),ee.disable(this),this.updateUIClasses({mouse:N.ADD}),this.activateUIButton(Y.POLYGON),this.setActionableState({trash:!0}),{polygon:e,currentVertexPosition:0}},clickAnywhere:function(e,t){if(e.currentVertexPosition>0&&ot(t,e.polygon.coordinates[0][e.currentVertexPosition-1]))return this.changeMode(T.SIMPLE_SELECT,{featureIds:[e.polygon.id]});this.updateUIClasses({mouse:N.ADD}),e.polygon.updateCoordinate("0."+e.currentVertexPosition,t.lngLat.lng,t.lngLat.lat),e.currentVertexPosition++,e.polygon.updateCoordinate("0."+e.currentVertexPosition,t.lngLat.lng,t.lngLat.lat)},clickOnVertex:function(e){return this.changeMode(T.SIMPLE_SELECT,{featureIds:[e.polygon.id]})},onMouseMove:function(e,t){e.polygon.updateCoordinate("0."+e.currentVertexPosition,t.lngLat.lng,t.lngLat.lat),De(t)&&this.updateUIClasses({mouse:N.POINTER})}};be.onTap=be.onClick=function(e,t){return De(t)?this.clickOnVertex(e,t):this.clickAnywhere(e,t)},be.onKeyUp=function(e,t){Xe(t)?(this.deleteFeature([e.polygon.id],{silent:!0}),this.changeMode(T.SIMPLE_SELECT)):Ze(t)&&this.changeMode(T.SIMPLE_SELECT,{featureIds:[e.polygon.id]})},be.onStop=function(e){this.updateUIClasses({mouse:N.NONE}),ee.enable(this),this.activateUIButton(),this.getFeature(e.polygon.id)!==void 0&&(e.polygon.removeCoordinate("0."+e.currentVertexPosition),e.polygon.isValid()?this.map.fire(H.CREATE,{features:[e.polygon.toGeoJSON()]}):(this.deleteFeature([e.polygon.id],{silent:!0}),this.changeMode(T.SIMPLE_SELECT,{},{silent:!0})))},be.toDisplayFeatures=function(e,t,n){var r=t.properties.id===e.polygon.id;if(t.properties.active=r?j.ACTIVE:j.INACTIVE,!r)return n(t);if(t.geometry.coordinates.length!==0){var o=t.geometry.coordinates[0].length;if(!(o<3)){if(t.properties.meta=B.FEATURE,n(Le(e.polygon.id,t.geometry.coordinates[0][0],"0.0",!1)),o>3){var i=t.geometry.coordinates[0].length-3;n(Le(e.polygon.id,t.geometry.coordinates[0][i],"0."+i,!1))}if(o<=4){var a=[[t.geometry.coordinates[0][0][0],t.geometry.coordinates[0][0][1]],[t.geometry.coordinates[0][1][0],t.geometry.coordinates[0][1][1]]];if(n({type:m.FEATURE,properties:t.properties,geometry:{coordinates:a,type:m.LINE_STRING}}),o===3)return}return n(t)}}},be.onTrash=function(e){this.deleteFeature([e.polygon.id],{silent:!0}),this.changeMode(T.SIMPLE_SELECT)};var Ee={onSetup:function(e){var t,n,r=(e=e||{}).featureId,o="forward";if(r){if(!(t=this.getFeature(r)))throw new Error("Could not find a feature with the provided featureId");var i=e.from;if(i&&i.type==="Feature"&&i.geometry&&i.geometry.type==="Point"&&(i=i.geometry),i&&i.type==="Point"&&i.coordinates&&i.coordinates.length===2&&(i=i.coordinates),!i||!Array.isArray(i))throw new Error("Please use the `from` property to indicate which point to continue the line from");var a=t.coordinates.length-1;if(t.coordinates[a][0]===i[0]&&t.coordinates[a][1]===i[1])n=a+1,t.addCoordinate.apply(t,[n].concat(t.coordinates[a]));else{if(t.coordinates[0][0]!==i[0]||t.coordinates[0][1]!==i[1])throw new Error("`from` should match the point at either the start or the end of the provided LineString");o="backwards",n=0,t.addCoordinate.apply(t,[n].concat(t.coordinates[0]))}}else t=this.newFeature({type:m.FEATURE,properties:{},geometry:{type:m.LINE_STRING,coordinates:[]}}),n=0,this.addFeature(t);return this.clearSelectedFeatures(),ee.disable(this),this.updateUIClasses({mouse:N.ADD}),this.activateUIButton(Y.LINE),this.setActionableState({trash:!0}),{line:t,currentVertexPosition:n,direction:o}},clickAnywhere:function(e,t){if(e.currentVertexPosition>0&&ot(t,e.line.coordinates[e.currentVertexPosition-1])||e.direction==="backwards"&&ot(t,e.line.coordinates[e.currentVertexPosition+1]))return this.changeMode(T.SIMPLE_SELECT,{featureIds:[e.line.id]});this.updateUIClasses({mouse:N.ADD}),e.line.updateCoordinate(e.currentVertexPosition,t.lngLat.lng,t.lngLat.lat),e.direction==="forward"?(e.currentVertexPosition++,e.line.updateCoordinate(e.currentVertexPosition,t.lngLat.lng,t.lngLat.lat)):e.line.addCoordinate(0,t.lngLat.lng,t.lngLat.lat)},clickOnVertex:function(e){return this.changeMode(T.SIMPLE_SELECT,{featureIds:[e.line.id]})},onMouseMove:function(e,t){e.line.updateCoordinate(e.currentVertexPosition,t.lngLat.lng,t.lngLat.lat),De(t)&&this.updateUIClasses({mouse:N.POINTER})}};Ee.onTap=Ee.onClick=function(e,t){if(De(t))return this.clickOnVertex(e,t);this.clickAnywhere(e,t)},Ee.onKeyUp=function(e,t){Ze(t)?this.changeMode(T.SIMPLE_SELECT,{featureIds:[e.line.id]}):Xe(t)&&(this.deleteFeature([e.line.id],{silent:!0}),this.changeMode(T.SIMPLE_SELECT))},Ee.onStop=function(e){ee.enable(this),this.activateUIButton(),this.getFeature(e.line.id)!==void 0&&(e.line.removeCoordinate(""+e.currentVertexPosition),e.line.isValid()?this.map.fire(H.CREATE,{features:[e.line.toGeoJSON()]}):(this.deleteFeature([e.line.id],{silent:!0}),this.changeMode(T.SIMPLE_SELECT,{},{silent:!0})))},Ee.onTrash=function(e){this.deleteFeature([e.line.id],{silent:!0}),this.changeMode(T.SIMPLE_SELECT)},Ee.toDisplayFeatures=function(e,t,n){var r=t.properties.id===e.line.id;if(t.properties.active=r?j.ACTIVE:j.INACTIVE,!r)return n(t);t.geometry.coordinates.length<2||(t.properties.meta=B.FEATURE,n(Le(e.line.id,t.geometry.coordinates[e.direction==="forward"?t.geometry.coordinates.length-2:1],""+(e.direction==="forward"?t.geometry.coordinates.length-2:1),!1)),n(t))};var mn={simple_select:D,direct_select:fe,draw_point:ne,draw_polygon:be,draw_line_string:Ee},Mr={defaultMode:T.SIMPLE_SELECT,keybindings:!0,touchEnabled:!0,clickBuffer:2,touchBuffer:25,boxSelect:!0,displayControlsDefault:!0,styles:sn,modes:mn,controls:{},userProperties:!1},Lr={point:!0,line_string:!0,polygon:!0,trash:!0,combine_features:!0,uncombine_features:!0},Nr={point:!1,line_string:!1,polygon:!1,trash:!1,combine_features:!1,uncombine_features:!1};function _n(e,t){return e.map(function(n){return n.source?n:pe(n,{id:n.id+"."+t,source:t==="hot"?X.HOT:X.COLD})})}var Ut={exports:{}};(function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Array]",a="[object Boolean]",l="[object Date]",d="[object Error]",h="[object Function]",g="[object Map]",p="[object Number]",_="[object Object]",P="[object Promise]",b="[object RegExp]",w="[object Set]",c="[object String]",y="[object Symbol]",O="[object WeakMap]",V="[object ArrayBuffer]",F="[object DataView]",jt=/^\[object .+?Constructor\]$/,Fr=/^(?:0|[1-9]\d*)$/,M={};M["[object Float32Array]"]=M["[object Float64Array]"]=M["[object Int8Array]"]=M["[object Int16Array]"]=M["[object Int32Array]"]=M["[object Uint8Array]"]=M["[object Uint8ClampedArray]"]=M["[object Uint16Array]"]=M["[object Uint32Array]"]=!0,M[o]=M[i]=M[V]=M[a]=M[F]=M[l]=M[d]=M[h]=M[g]=M[p]=M[_]=M[b]=M[w]=M[c]=M[O]=!1;var Tn=typeof bt.commonjsGlobal=="object"&&bt.commonjsGlobal&&bt.commonjsGlobal.Object===Object&&bt.commonjsGlobal,Rr=typeof self=="object"&&self&&self.Object===Object&&self,ae=Tn||Rr||Function("return this")(),Cn=t&&!t.nodeType&&t,On=Cn&&e&&!e.nodeType&&e,Sn=On&&On.exports===Cn,Vt=Sn&&Tn.process,In=function(){try{return Vt&&Vt.binding&&Vt.binding("util")}catch{}}(),xn=In&&In.isTypedArray;function Dr(s,u){for(var f=-1,v=s==null?0:s.length;++f<v;)if(u(s[f],f,s))return!0;return!1}function kr(s){var u=-1,f=Array(s.size);return s.forEach(function(v,L){f[++u]=[L,v]}),f}function Ur(s){var u=-1,f=Array(s.size);return s.forEach(function(v){f[++u]=v}),f}var Mn,Ln,Nn,jr=Array.prototype,Vr=Function.prototype,at=Object.prototype,Bt=ae["__core-js_shared__"],Pn=Vr.toString,re=at.hasOwnProperty,An=(Mn=/[^.]+$/.exec(Bt&&Bt.keys&&Bt.keys.IE_PROTO||""))?"Symbol(src)_1."+Mn:"",wn=at.toString,Br=RegExp("^"+Pn.call(re).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Fn=Sn?ae.Buffer:void 0,st=ae.Symbol,Rn=ae.Uint8Array,Dn=at.propertyIsEnumerable,Gr=jr.splice,Te=st?st.toStringTag:void 0,kn=Object.getOwnPropertySymbols,Jr=Fn?Fn.isBuffer:void 0,zr=(Ln=Object.keys,Nn=Object,function(s){return Ln(Nn(s))}),Gt=Pe(ae,"DataView"),ke=Pe(ae,"Map"),Jt=Pe(ae,"Promise"),zt=Pe(ae,"Set"),Yt=Pe(ae,"WeakMap"),Ue=Pe(Object,"create"),Yr=Se(Gt),$r=Se(ke),qr=Se(Jt),Hr=Se(zt),Xr=Se(Yt),Un=st?st.prototype:void 0,$t=Un?Un.valueOf:void 0;function Ce(s){var u=-1,f=s==null?0:s.length;for(this.clear();++u<f;){var v=s[u];this.set(v[0],v[1])}}function se(s){var u=-1,f=s==null?0:s.length;for(this.clear();++u<f;){var v=s[u];this.set(v[0],v[1])}}function Oe(s){var u=-1,f=s==null?0:s.length;for(this.clear();++u<f;){var v=s[u];this.set(v[0],v[1])}}function ut(s){var u=-1,f=s==null?0:s.length;for(this.__data__=new Oe;++u<f;)this.add(s[u])}function he(s){var u=this.__data__=new se(s);this.size=u.size}function Zr(s,u){var f=dt(s),v=!f&&to(s),L=!f&&!v&&qt(s),C=!f&&!v&&!L&&qn(s),A=f||v||L||C,R=A?function(U,oe){for(var ue=-1,z=Array(U);++ue<U;)z[ue]=oe(ue);return z}(s.length,String):[],te=R.length;for(var k in s)!re.call(s,k)||A&&(k=="length"||L&&(k=="offset"||k=="parent")||C&&(k=="buffer"||k=="byteLength"||k=="byteOffset")||eo(k,te))||R.push(k);return R}function ct(s,u){for(var f=s.length;f--;)if(Jn(s[f][0],u))return f;return-1}function je(s){return s==null?s===void 0?"[object Undefined]":"[object Null]":Te&&Te in Object(s)?function(u){var f=re.call(u,Te),v=u[Te];try{u[Te]=void 0;var L=!0}catch{}var C=wn.call(u);return L&&(f?u[Te]=v:delete u[Te]),C}(s):function(u){return wn.call(u)}(s)}function jn(s){return Ve(s)&&je(s)==o}function Vn(s,u,f,v,L){return s===u||(s==null||u==null||!Ve(s)&&!Ve(u)?s!=s&&u!=u:function(C,A,R,te,k,U){var oe=dt(C),ue=dt(A),z=oe?i:ge(C),ce=ue?i:ge(A),Ae=(z=z==o?_:z)==_,pt=(ce=ce==o?_:ce)==_,we=z==ce;if(we&&qt(C)){if(!qt(A))return!1;oe=!0,Ae=!1}if(we&&!Ae)return U||(U=new he),oe||qn(C)?Bn(C,A,R,te,k,U):function(I,S,ft,ye,Ht,Q,le){switch(ft){case F:if(I.byteLength!=S.byteLength||I.byteOffset!=S.byteOffset)return!1;I=I.buffer,S=S.buffer;case V:return!(I.byteLength!=S.byteLength||!Q(new Rn(I),new Rn(S)));case a:case l:case p:return Jn(+I,+S);case d:return I.name==S.name&&I.message==S.message;case b:case c:return I==S+"";case g:var ve=kr;case w:var Ge=1&ye;if(ve||(ve=Ur),I.size!=S.size&&!Ge)return!1;var ht=le.get(I);if(ht)return ht==S;ye|=2,le.set(I,S);var Fe=Bn(ve(I),ve(S),ye,Ht,Q,le);return le.delete(I),Fe;case y:if($t)return $t.call(I)==$t.call(S)}return!1}(C,A,z,R,te,k,U);if(!(1&R)){var Be=Ae&&re.call(C,"__wrapped__"),Hn=pt&&re.call(A,"__wrapped__");if(Be||Hn){var ro=Be?C.value():C,oo=Hn?A.value():A;return U||(U=new he),k(ro,oo,R,te,U)}}return we?(U||(U=new he),function(I,S,ft,ye,Ht,Q){var le=1&ft,ve=Gn(I),Ge=ve.length,ht=Gn(S).length;if(Ge!=ht&&!le)return!1;for(var Fe=Ge;Fe--;){var Ie=ve[Fe];if(!(le?Ie in S:re.call(S,Ie)))return!1}var Xn=Q.get(I);if(Xn&&Q.get(S))return Xn==S;var gt=!0;Q.set(I,S),Q.set(S,I);for(var Xt=le;++Fe<Ge;){var yt=I[Ie=ve[Fe]],vt=S[Ie];if(ye)var Zn=le?ye(vt,yt,Ie,S,I,Q):ye(yt,vt,Ie,I,S,Q);if(!(Zn===void 0?yt===vt||Ht(yt,vt,ft,ye,Q):Zn)){gt=!1;break}Xt||(Xt=Ie=="constructor")}if(gt&&!Xt){var mt=I.constructor,_t=S.constructor;mt==_t||!("constructor"in I)||!("constructor"in S)||typeof mt=="function"&&mt instanceof mt&&typeof _t=="function"&&_t instanceof _t||(gt=!1)}return Q.delete(I),Q.delete(S),gt}(C,A,R,te,k,U)):!1}(s,u,f,v,Vn,L))}function Wr(s){return!(!$n(s)||function(u){return!!An&&An in u}(s))&&(zn(s)?Br:jt).test(Se(s))}function Kr(s){if(f=(u=s)&&u.constructor,v=typeof f=="function"&&f.prototype||at,u!==v)return zr(s);var u,f,v,L=[];for(var C in Object(s))re.call(s,C)&&C!="constructor"&&L.push(C);return L}function Bn(s,u,f,v,L,C){var A=1&f,R=s.length,te=u.length;if(R!=te&&!(A&&te>R))return!1;var k=C.get(s);if(k&&C.get(u))return k==u;var U=-1,oe=!0,ue=2&f?new ut:void 0;for(C.set(s,u),C.set(u,s);++U<R;){var z=s[U],ce=u[U];if(v)var Ae=A?v(ce,z,U,u,s,C):v(z,ce,U,s,u,C);if(Ae!==void 0){if(Ae)continue;oe=!1;break}if(ue){if(!Dr(u,function(pt,we){if(Be=we,!ue.has(Be)&&(z===pt||L(z,pt,f,v,C)))return ue.push(we);var Be})){oe=!1;break}}else if(z!==ce&&!L(z,ce,f,v,C)){oe=!1;break}}return C.delete(s),C.delete(u),oe}function Gn(s){return function(u,f,v){var L=f(u);return dt(u)?L:function(C,A){for(var R=-1,te=A.length,k=C.length;++R<te;)C[k+R]=A[R];return C}(L,v(u))}(s,no,Qr)}function lt(s,u){var f,v,L=s.__data__;return((v=typeof(f=u))=="string"||v=="number"||v=="symbol"||v=="boolean"?f!=="__proto__":f===null)?L[typeof u=="string"?"string":"hash"]:L.map}function Pe(s,u){var f=function(v,L){return v?.[L]}(s,u);return Wr(f)?f:void 0}Ce.prototype.clear=function(){this.__data__=Ue?Ue(null):{},this.size=0},Ce.prototype.delete=function(s){var u=this.has(s)&&delete this.__data__[s];return this.size-=u?1:0,u},Ce.prototype.get=function(s){var u=this.__data__;if(Ue){var f=u[s];return f===n?void 0:f}return re.call(u,s)?u[s]:void 0},Ce.prototype.has=function(s){var u=this.__data__;return Ue?u[s]!==void 0:re.call(u,s)},Ce.prototype.set=function(s,u){var f=this.__data__;return this.size+=this.has(s)?0:1,f[s]=Ue&&u===void 0?n:u,this},se.prototype.clear=function(){this.__data__=[],this.size=0},se.prototype.delete=function(s){var u=this.__data__,f=ct(u,s);return!(f<0)&&(f==u.length-1?u.pop():Gr.call(u,f,1),--this.size,!0)},se.prototype.get=function(s){var u=this.__data__,f=ct(u,s);return f<0?void 0:u[f][1]},se.prototype.has=function(s){return ct(this.__data__,s)>-1},se.prototype.set=function(s,u){var f=this.__data__,v=ct(f,s);return v<0?(++this.size,f.push([s,u])):f[v][1]=u,this},Oe.prototype.clear=function(){this.size=0,this.__data__={hash:new Ce,map:new(ke||se),string:new Ce}},Oe.prototype.delete=function(s){var u=lt(this,s).delete(s);return this.size-=u?1:0,u},Oe.prototype.get=function(s){return lt(this,s).get(s)},Oe.prototype.has=function(s){return lt(this,s).has(s)},Oe.prototype.set=function(s,u){var f=lt(this,s),v=f.size;return f.set(s,u),this.size+=f.size==v?0:1,this},ut.prototype.add=ut.prototype.push=function(s){return this.__data__.set(s,n),this},ut.prototype.has=function(s){return this.__data__.has(s)},he.prototype.clear=function(){this.__data__=new se,this.size=0},he.prototype.delete=function(s){var u=this.__data__,f=u.delete(s);return this.size=u.size,f},he.prototype.get=function(s){return this.__data__.get(s)},he.prototype.has=function(s){return this.__data__.has(s)},he.prototype.set=function(s,u){var f=this.__data__;if(f instanceof se){var v=f.__data__;if(!ke||v.length<199)return v.push([s,u]),this.size=++f.size,this;f=this.__data__=new Oe(v)}return f.set(s,u),this.size=f.size,this};var Qr=kn?function(s){return s==null?[]:(s=Object(s),function(u,f){for(var v=-1,L=u==null?0:u.length,C=0,A=[];++v<L;){var R=u[v];f(R,v,u)&&(A[C++]=R)}return A}(kn(s),function(u){return Dn.call(s,u)}))}:function(){return[]},ge=je;function eo(s,u){return!!(u=u??r)&&(typeof s=="number"||Fr.test(s))&&s>-1&&s%1==0&&s<u}function Se(s){if(s!=null){try{return Pn.call(s)}catch{}try{return s+""}catch{}}return""}function Jn(s,u){return s===u||s!=s&&u!=u}(Gt&&ge(new Gt(new ArrayBuffer(1)))!=F||ke&&ge(new ke)!=g||Jt&&ge(Jt.resolve())!=P||zt&&ge(new zt)!=w||Yt&&ge(new Yt)!=O)&&(ge=function(s){var u=je(s),f=u==_?s.constructor:void 0,v=f?Se(f):"";if(v)switch(v){case Yr:return F;case $r:return g;case qr:return P;case Hr:return w;case Xr:return O}return u});var to=jn(function(){return arguments}())?jn:function(s){return Ve(s)&&re.call(s,"callee")&&!Dn.call(s,"callee")},dt=Array.isArray,qt=Jr||function(){return!1};function zn(s){if(!$n(s))return!1;var u=je(s);return u==h||u=="[object GeneratorFunction]"||u=="[object AsyncFunction]"||u=="[object Proxy]"}function Yn(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=r}function $n(s){var u=typeof s;return s!=null&&(u=="object"||u=="function")}function Ve(s){return s!=null&&typeof s=="object"}var qn=xn?function(s){return function(u){return s(u)}}(xn):function(s){return Ve(s)&&Yn(s.length)&&!!M[je(s)]};function no(s){return(u=s)!=null&&Yn(u.length)&&!zn(u)?Zr(s):Kr(s);var u}e.exports=function(s,u){return Vn(s,u)}})(Ut,Ut.exports);var bn=de(Ut.exports);function En(e,t){return e.length===t.length&&JSON.stringify(e.map(function(n){return n}).sort())===JSON.stringify(t.map(function(n){return n}).sort())}var Pr={Polygon:W,LineString:ie,Point:me,MultiPolygon:$,MultiLineString:$,MultiPoint:$},Ar=Object.freeze({__proto__:null,CommonSelectors:pr,constrainFeatureMovement:Dt,createMidPoint:cn,createSupplementaryPoints:We,createVertex:Le,doubleClickZoom:ee,euclideanDistance:xt,featuresAt:xe,getFeatureAtAndSetCursors:ze,isClick:Mt,isEventAtCoordinates:ot,isTap:Lt,mapEventToBoundingBox:tn,ModeHandler:Je,moveFeatures:kt,sortFeatures:en,stringSetsAreEqual:En,StringSet:Z,theme:sn,toDenseArray:Re}),wr=function(e,t){var n={options:e=function(o){o===void 0&&(o={});var i=pe(o);return o.controls||(i.controls={}),o.displayControlsDefault===!1?i.controls=pe(Nr,o.controls):i.controls=pe(Lr,o.controls),(i=pe(Mr,i)).styles=_n(i.styles,"cold").concat(_n(i.styles,"hot")),i}(e)};t=function(o,i){return i.modes=T,i.getFeatureIdsAt=function(a){return xe.click({point:a},null,o).map(function(l){return l.properties.id})},i.getSelectedIds=function(){return o.store.getSelectedIds()},i.getSelected=function(){return{type:m.FEATURE_COLLECTION,features:o.store.getSelectedIds().map(function(a){return o.store.get(a)}).map(function(a){return a.toGeoJSON()})}},i.getSelectedPoints=function(){return{type:m.FEATURE_COLLECTION,features:o.store.getSelectedCoordinates().map(function(a){return{type:m.FEATURE,properties:{},geometry:{type:m.POINT,coordinates:a.coordinates}}})}},i.set=function(a){if(a.type===void 0||a.type!==m.FEATURE_COLLECTION||!Array.isArray(a.features))throw new Error("Invalid FeatureCollection");var l=o.store.createRenderBatch(),d=o.store.getAllIds().slice(),h=i.add(a),g=new Z(h);return(d=d.filter(function(p){return!g.has(p)})).length&&i.delete(d),l(),h},i.add=function(a){var l=JSON.parse(JSON.stringify(yr(a))).features.map(function(d){if(d.id=d.id||Pt(),d.geometry===null)throw new Error("Invalid geometry: null");if(o.store.get(d.id)===void 0||o.store.get(d.id).type!==d.geometry.type){var h=Pr[d.geometry.type];if(h===void 0)throw new Error("Invalid geometry type: "+d.geometry.type+".");var g=new h(o,d);o.store.add(g)}else{var p=o.store.get(d.id);p.properties=d.properties,bn(p.properties,d.properties)||o.store.featureChanged(p.id),bn(p.getCoordinates(),d.geometry.coordinates)||p.incomingCoords(d.geometry.coordinates)}return d.id});return o.store.render(),l},i.get=function(a){var l=o.store.get(a);if(l)return l.toGeoJSON()},i.getAll=function(){return{type:m.FEATURE_COLLECTION,features:o.store.getAll().map(function(a){return a.toGeoJSON()})}},i.delete=function(a){return o.store.delete(a,{silent:!0}),i.getMode()!==T.DIRECT_SELECT||o.store.getSelectedIds().length?o.store.render():o.events.changeMode(T.SIMPLE_SELECT,void 0,{silent:!0}),i},i.deleteAll=function(){return o.store.delete(o.store.getAllIds(),{silent:!0}),i.getMode()===T.DIRECT_SELECT?o.events.changeMode(T.SIMPLE_SELECT,void 0,{silent:!0}):o.store.render(),i},i.changeMode=function(a,l){return l===void 0&&(l={}),a===T.SIMPLE_SELECT&&i.getMode()===T.SIMPLE_SELECT?(En(l.featureIds||[],o.store.getSelectedIds())||(o.store.setSelected(l.featureIds,{silent:!0}),o.store.render()),i):(a===T.DIRECT_SELECT&&i.getMode()===T.DIRECT_SELECT&&l.featureId===o.store.getSelectedIds()[0]||o.events.changeMode(a,l,{silent:!0}),i)},i.getMode=function(){return o.events.getMode()},i.trash=function(){return o.events.trash({silent:!0}),i},i.combineFeatures=function(){return o.events.combineFeatures({silent:!0}),i},i.uncombineFeatures=function(){return o.events.uncombineFeatures({silent:!0}),i},i.setFeatureProperty=function(a,l,d){return o.store.setFeatureProperty(a,l,d),i},i}(n,t),n.api=t;var r=dr(n);return t.onAdd=r.onAdd,t.onRemove=r.onRemove,t.types=Y,t.options=e,t};function it(e){wr(e,this)}return it.modes=mn,it.constants=tr,it.lib=Ar,it})}(Et.__module)),Et.__module.exports}exports.__require=ao;
2
2
  //# sourceMappingURL=index.cjs71.js.map