@performant-software/geospatial 3.1.22-beta.11 → 3.1.22-beta.12

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 (387) hide show
  1. package/dist/index.cjs100.js +1 -1
  2. package/dist/index.cjs101.js +1 -1
  3. package/dist/index.cjs102.js +1 -1
  4. package/dist/index.cjs103.js +1 -1
  5. package/dist/index.cjs104.js +1 -1
  6. package/dist/index.cjs105.js +1 -1
  7. package/dist/index.cjs106.js +1 -1
  8. package/dist/index.cjs107.js +1 -1
  9. package/dist/index.cjs108.js +1 -1
  10. package/dist/index.cjs111.js +1 -1
  11. package/dist/index.cjs112.js +1 -1
  12. package/dist/index.cjs114.js +1 -1
  13. package/dist/index.cjs115.js +1 -1
  14. package/dist/index.cjs116.js +1 -1
  15. package/dist/index.cjs117.js +1 -1
  16. package/dist/index.cjs122.js +1 -1
  17. package/dist/index.cjs123.js +1 -1
  18. package/dist/index.cjs124.js +1 -1
  19. package/dist/index.cjs125.js +1 -1
  20. package/dist/index.cjs128.js +1 -1
  21. package/dist/index.cjs129.js +1 -1
  22. package/dist/index.cjs13.js +1 -1
  23. package/dist/index.cjs13.js.map +1 -1
  24. package/dist/index.cjs130.js +1 -1
  25. package/dist/index.cjs134.js +1 -1
  26. package/dist/index.cjs137.js +1 -1
  27. package/dist/index.cjs141.js +1 -1
  28. package/dist/index.cjs144.js +1 -1
  29. package/dist/index.cjs15.js +1 -1
  30. package/dist/index.cjs152.js +1 -1
  31. package/dist/index.cjs153.js +1 -1
  32. package/dist/index.cjs154.js +1 -1
  33. package/dist/index.cjs155.js +1 -1
  34. package/dist/index.cjs156.js +1 -1
  35. package/dist/index.cjs157.js +1 -1
  36. package/dist/index.cjs158.js +1 -1
  37. package/dist/index.cjs16.js +1 -1
  38. package/dist/index.cjs160.js +1 -1
  39. package/dist/index.cjs161.js +1 -1
  40. package/dist/index.cjs162.js +1 -1
  41. package/dist/index.cjs163.js +1 -1
  42. package/dist/index.cjs164.js +1 -1
  43. package/dist/index.cjs165.js +1 -1
  44. package/dist/index.cjs166.js +1 -1
  45. package/dist/index.cjs167.js +1 -1
  46. package/dist/index.cjs168.js +1 -1
  47. package/dist/index.cjs17.js +1 -1
  48. package/dist/index.cjs171.js +1 -1
  49. package/dist/index.cjs172.js +1 -1
  50. package/dist/index.cjs174.js +1 -1
  51. package/dist/index.cjs175.js +1 -1
  52. package/dist/index.cjs176.js +1 -1
  53. package/dist/index.cjs177.js +1 -1
  54. package/dist/index.cjs178.js +1 -1
  55. package/dist/index.cjs179.js +1 -1
  56. package/dist/index.cjs18.js +1 -1
  57. package/dist/index.cjs180.js +1 -1
  58. package/dist/index.cjs181.js +1 -1
  59. package/dist/index.cjs187.js +1 -1
  60. package/dist/index.cjs188.js +1 -1
  61. package/dist/index.cjs189.js +1 -1
  62. package/dist/index.cjs19.js +1 -1
  63. package/dist/index.cjs190.js +1 -1
  64. package/dist/index.cjs191.js +1 -1
  65. package/dist/index.cjs194.js +1 -1
  66. package/dist/index.cjs194.js.map +1 -1
  67. package/dist/index.cjs195.js +1 -1
  68. package/dist/index.cjs195.js.map +1 -1
  69. package/dist/index.cjs20.js +1 -1
  70. package/dist/index.cjs21.js +1 -1
  71. package/dist/index.cjs210.js +1 -1
  72. package/dist/index.cjs210.js.map +1 -1
  73. package/dist/index.cjs211.js +1 -1
  74. package/dist/index.cjs211.js.map +1 -1
  75. package/dist/index.cjs212.js +1 -1
  76. package/dist/index.cjs212.js.map +1 -1
  77. package/dist/index.cjs213.js +1 -1
  78. package/dist/index.cjs213.js.map +1 -1
  79. package/dist/index.cjs214.js +1 -1
  80. package/dist/index.cjs214.js.map +1 -1
  81. package/dist/index.cjs215.js +1 -1
  82. package/dist/index.cjs215.js.map +1 -1
  83. package/dist/index.cjs216.js +1 -1
  84. package/dist/index.cjs216.js.map +1 -1
  85. package/dist/index.cjs217.js +1 -1
  86. package/dist/index.cjs217.js.map +1 -1
  87. package/dist/index.cjs218.js +1 -1
  88. package/dist/index.cjs218.js.map +1 -1
  89. package/dist/index.cjs219.js +1 -1
  90. package/dist/index.cjs219.js.map +1 -1
  91. package/dist/index.cjs22.js +1 -1
  92. package/dist/index.cjs220.js +1 -1
  93. package/dist/index.cjs220.js.map +1 -1
  94. package/dist/index.cjs221.js +1 -1
  95. package/dist/index.cjs221.js.map +1 -1
  96. package/dist/index.cjs222.js +1 -1
  97. package/dist/index.cjs222.js.map +1 -1
  98. package/dist/index.cjs223.js +1 -1
  99. package/dist/index.cjs223.js.map +1 -1
  100. package/dist/index.cjs224.js +1 -1
  101. package/dist/index.cjs224.js.map +1 -1
  102. package/dist/index.cjs225.js +1 -1
  103. package/dist/index.cjs225.js.map +1 -1
  104. package/dist/index.cjs226.js +1 -1
  105. package/dist/index.cjs226.js.map +1 -1
  106. package/dist/index.cjs227.js +1 -1
  107. package/dist/index.cjs227.js.map +1 -1
  108. package/dist/index.cjs228.js +1 -1
  109. package/dist/index.cjs228.js.map +1 -1
  110. package/dist/index.cjs229.js +1 -1
  111. package/dist/index.cjs229.js.map +1 -1
  112. package/dist/index.cjs23.js +1 -1
  113. package/dist/index.cjs230.js +1 -1
  114. package/dist/index.cjs230.js.map +1 -1
  115. package/dist/index.cjs231.js +1 -1
  116. package/dist/index.cjs231.js.map +1 -1
  117. package/dist/index.cjs232.js +1 -1
  118. package/dist/index.cjs232.js.map +1 -1
  119. package/dist/index.cjs233.js +1 -1
  120. package/dist/index.cjs233.js.map +1 -1
  121. package/dist/index.cjs234.js +1 -1
  122. package/dist/index.cjs234.js.map +1 -1
  123. package/dist/index.cjs235.js +1 -1
  124. package/dist/index.cjs235.js.map +1 -1
  125. package/dist/index.cjs236.js +1 -1
  126. package/dist/index.cjs236.js.map +1 -1
  127. package/dist/index.cjs237.js +1 -1
  128. package/dist/index.cjs237.js.map +1 -1
  129. package/dist/index.cjs238.js +1 -1
  130. package/dist/index.cjs238.js.map +1 -1
  131. package/dist/index.cjs239.js +1 -1
  132. package/dist/index.cjs239.js.map +1 -1
  133. package/dist/index.cjs24.js +1 -1
  134. package/dist/index.cjs240.js +1 -1
  135. package/dist/index.cjs240.js.map +1 -1
  136. package/dist/index.cjs241.js +1 -1
  137. package/dist/index.cjs241.js.map +1 -1
  138. package/dist/index.cjs242.js +1 -1
  139. package/dist/index.cjs242.js.map +1 -1
  140. package/dist/index.cjs243.js +1 -1
  141. package/dist/index.cjs243.js.map +1 -1
  142. package/dist/index.cjs244.js +1 -1
  143. package/dist/index.cjs244.js.map +1 -1
  144. package/dist/index.cjs247.js +1 -1
  145. package/dist/index.cjs247.js.map +1 -1
  146. package/dist/index.cjs248.js +1 -1
  147. package/dist/index.cjs248.js.map +1 -1
  148. package/dist/index.cjs249.js +1 -1
  149. package/dist/index.cjs249.js.map +1 -1
  150. package/dist/index.cjs25.js +1 -1
  151. package/dist/index.cjs250.js +1 -1
  152. package/dist/index.cjs250.js.map +1 -1
  153. package/dist/index.cjs251.js +1 -1
  154. package/dist/index.cjs251.js.map +1 -1
  155. package/dist/index.cjs26.js +1 -1
  156. package/dist/index.cjs27.js +1 -1
  157. package/dist/index.cjs32.js +1 -1
  158. package/dist/index.cjs38.js +1 -1
  159. package/dist/index.cjs39.js +1 -1
  160. package/dist/index.cjs40.js +1 -1
  161. package/dist/index.cjs42.js +1 -1
  162. package/dist/index.cjs43.js +1 -1
  163. package/dist/index.cjs44.js +1 -1
  164. package/dist/index.cjs46.js +1 -1
  165. package/dist/index.cjs47.js +1 -1
  166. package/dist/index.cjs48.js +1 -1
  167. package/dist/index.cjs50.js +1 -1
  168. package/dist/index.cjs51.js +1 -1
  169. package/dist/index.cjs52.js +1 -1
  170. package/dist/index.cjs56.js +1 -1
  171. package/dist/index.cjs57.js +1 -1
  172. package/dist/index.cjs58.js +1 -1
  173. package/dist/index.cjs60.js +1 -1
  174. package/dist/index.cjs61.js +1 -1
  175. package/dist/index.cjs63.js +1 -1
  176. package/dist/index.cjs69.js +1 -1
  177. package/dist/index.cjs71.js +1 -1
  178. package/dist/index.cjs72.js +1 -1
  179. package/dist/index.cjs73.js +1 -1
  180. package/dist/index.cjs74.js +1 -1
  181. package/dist/index.cjs76.js +1 -1
  182. package/dist/index.cjs77.js +1 -1
  183. package/dist/index.cjs79.js +743 -1
  184. package/dist/index.cjs79.js.map +1 -1
  185. package/dist/index.cjs81.js +1 -9
  186. package/dist/index.cjs81.js.map +1 -1
  187. package/dist/index.cjs82.js +1 -17
  188. package/dist/index.cjs82.js.map +1 -1
  189. package/dist/index.cjs83.js +9 -743
  190. package/dist/index.cjs83.js.map +1 -1
  191. package/dist/index.cjs84.js +17 -1
  192. package/dist/index.cjs84.js.map +1 -1
  193. package/dist/index.cjs93.js +1 -1
  194. package/dist/index.es100.js +1 -1
  195. package/dist/index.es101.js +1 -1
  196. package/dist/index.es102.js +1 -1
  197. package/dist/index.es103.js +1 -1
  198. package/dist/index.es104.js +1 -1
  199. package/dist/index.es105.js +1 -1
  200. package/dist/index.es106.js +1 -1
  201. package/dist/index.es107.js +1 -1
  202. package/dist/index.es108.js +1 -1
  203. package/dist/index.es111.js +1 -1
  204. package/dist/index.es112.js +1 -1
  205. package/dist/index.es114.js +3 -3
  206. package/dist/index.es115.js +1 -1
  207. package/dist/index.es116.js +2 -2
  208. package/dist/index.es117.js +1 -1
  209. package/dist/index.es122.js +1 -1
  210. package/dist/index.es123.js +1 -1
  211. package/dist/index.es124.js +1 -1
  212. package/dist/index.es125.js +1 -1
  213. package/dist/index.es128.js +2 -2
  214. package/dist/index.es129.js +2 -2
  215. package/dist/index.es13.js +23 -24
  216. package/dist/index.es13.js.map +1 -1
  217. package/dist/index.es130.js +1 -1
  218. package/dist/index.es134.js +2 -2
  219. package/dist/index.es137.js +1 -1
  220. package/dist/index.es141.js +1 -1
  221. package/dist/index.es144.js +1 -1
  222. package/dist/index.es15.js +1 -1
  223. package/dist/index.es152.js +1 -1
  224. package/dist/index.es153.js +1 -1
  225. package/dist/index.es154.js +1 -1
  226. package/dist/index.es155.js +2 -2
  227. package/dist/index.es156.js +1 -1
  228. package/dist/index.es157.js +1 -1
  229. package/dist/index.es158.js +1 -1
  230. package/dist/index.es16.js +4 -4
  231. package/dist/index.es160.js +2 -2
  232. package/dist/index.es161.js +2 -2
  233. package/dist/index.es162.js +1 -1
  234. package/dist/index.es163.js +1 -1
  235. package/dist/index.es164.js +1 -1
  236. package/dist/index.es165.js +1 -1
  237. package/dist/index.es166.js +2 -2
  238. package/dist/index.es167.js +2 -2
  239. package/dist/index.es168.js +1 -1
  240. package/dist/index.es17.js +3 -3
  241. package/dist/index.es171.js +2 -2
  242. package/dist/index.es172.js +2 -2
  243. package/dist/index.es174.js +2 -2
  244. package/dist/index.es175.js +1 -1
  245. package/dist/index.es176.js +2 -2
  246. package/dist/index.es177.js +1 -1
  247. package/dist/index.es178.js +2 -2
  248. package/dist/index.es179.js +1 -1
  249. package/dist/index.es18.js +3 -3
  250. package/dist/index.es180.js +1 -1
  251. package/dist/index.es181.js +1 -1
  252. package/dist/index.es187.js +1 -1
  253. package/dist/index.es188.js +2 -2
  254. package/dist/index.es189.js +1 -1
  255. package/dist/index.es19.js +1 -1
  256. package/dist/index.es190.js +1 -1
  257. package/dist/index.es191.js +1 -1
  258. package/dist/index.es194.js +146 -16
  259. package/dist/index.es194.js.map +1 -1
  260. package/dist/index.es195.js +16 -146
  261. package/dist/index.es195.js.map +1 -1
  262. package/dist/index.es20.js +1 -1
  263. package/dist/index.es21.js +1 -1
  264. package/dist/index.es210.js +242 -7
  265. package/dist/index.es210.js.map +1 -1
  266. package/dist/index.es211.js +42 -4
  267. package/dist/index.es211.js.map +1 -1
  268. package/dist/index.es212.js +3 -4
  269. package/dist/index.es212.js.map +1 -1
  270. package/dist/index.es213.js +11 -3
  271. package/dist/index.es213.js.map +1 -1
  272. package/dist/index.es214.js +11 -3
  273. package/dist/index.es214.js.map +1 -1
  274. package/dist/index.es215.js +30 -8
  275. package/dist/index.es215.js.map +1 -1
  276. package/dist/index.es216.js +13 -18
  277. package/dist/index.es216.js.map +1 -1
  278. package/dist/index.es217.js +4 -20
  279. package/dist/index.es217.js.map +1 -1
  280. package/dist/index.es218.js +6 -11
  281. package/dist/index.es218.js.map +1 -1
  282. package/dist/index.es219.js +4 -14
  283. package/dist/index.es219.js.map +1 -1
  284. package/dist/index.es22.js +1 -1
  285. package/dist/index.es220.js +4 -6
  286. package/dist/index.es220.js.map +1 -1
  287. package/dist/index.es221.js +3 -8
  288. package/dist/index.es221.js.map +1 -1
  289. package/dist/index.es222.js +3 -7
  290. package/dist/index.es222.js.map +1 -1
  291. package/dist/index.es223.js +8 -21
  292. package/dist/index.es223.js.map +1 -1
  293. package/dist/index.es224.js +17 -8
  294. package/dist/index.es224.js.map +1 -1
  295. package/dist/index.es225.js +21 -9
  296. package/dist/index.es225.js.map +1 -1
  297. package/dist/index.es226.js +13 -4
  298. package/dist/index.es226.js.map +1 -1
  299. package/dist/index.es227.js +14 -10
  300. package/dist/index.es227.js.map +1 -1
  301. package/dist/index.es228.js +5 -7
  302. package/dist/index.es228.js.map +1 -1
  303. package/dist/index.es229.js +6 -19
  304. package/dist/index.es229.js.map +1 -1
  305. package/dist/index.es23.js +1 -1
  306. package/dist/index.es230.js +6 -10
  307. package/dist/index.es230.js.map +1 -1
  308. package/dist/index.es231.js +20 -16
  309. package/dist/index.es231.js.map +1 -1
  310. package/dist/index.es232.js +10 -4
  311. package/dist/index.es232.js.map +1 -1
  312. package/dist/index.es233.js +9 -18
  313. package/dist/index.es233.js.map +1 -1
  314. package/dist/index.es234.js +4 -12
  315. package/dist/index.es234.js.map +1 -1
  316. package/dist/index.es235.js +10 -3
  317. package/dist/index.es235.js.map +1 -1
  318. package/dist/index.es236.js +7 -4
  319. package/dist/index.es236.js.map +1 -1
  320. package/dist/index.es237.js +20 -242
  321. package/dist/index.es237.js.map +1 -1
  322. package/dist/index.es238.js +9 -41
  323. package/dist/index.es238.js.map +1 -1
  324. package/dist/index.es239.js +18 -3
  325. package/dist/index.es239.js.map +1 -1
  326. package/dist/index.es24.js +1 -1
  327. package/dist/index.es240.js +3 -10
  328. package/dist/index.es240.js.map +1 -1
  329. package/dist/index.es241.js +17 -10
  330. package/dist/index.es241.js.map +1 -1
  331. package/dist/index.es242.js +11 -30
  332. package/dist/index.es242.js.map +1 -1
  333. package/dist/index.es243.js +3 -13
  334. package/dist/index.es243.js.map +1 -1
  335. package/dist/index.es244.js +4 -4
  336. package/dist/index.es244.js.map +1 -1
  337. package/dist/index.es247.js +21 -3
  338. package/dist/index.es247.js.map +1 -1
  339. package/dist/index.es248.js +22 -5
  340. package/dist/index.es248.js.map +1 -1
  341. package/dist/index.es249.js +3 -8
  342. package/dist/index.es249.js.map +1 -1
  343. package/dist/index.es25.js +1 -1
  344. package/dist/index.es250.js +4 -19
  345. package/dist/index.es250.js.map +1 -1
  346. package/dist/index.es251.js +7 -22
  347. package/dist/index.es251.js.map +1 -1
  348. package/dist/index.es26.js +2 -2
  349. package/dist/index.es27.js +2 -2
  350. package/dist/index.es32.js +1 -1
  351. package/dist/index.es38.js +1 -1
  352. package/dist/index.es39.js +1 -1
  353. package/dist/index.es40.js +2 -2
  354. package/dist/index.es42.js +2 -2
  355. package/dist/index.es43.js +2 -2
  356. package/dist/index.es44.js +2 -2
  357. package/dist/index.es46.js +1 -1
  358. package/dist/index.es47.js +2 -2
  359. package/dist/index.es48.js +2 -2
  360. package/dist/index.es50.js +1 -1
  361. package/dist/index.es51.js +1 -1
  362. package/dist/index.es52.js +1 -1
  363. package/dist/index.es56.js +2 -2
  364. package/dist/index.es57.js +3 -3
  365. package/dist/index.es58.js +1 -1
  366. package/dist/index.es60.js +1 -1
  367. package/dist/index.es61.js +1 -1
  368. package/dist/index.es63.js +1 -1
  369. package/dist/index.es69.js +1 -1
  370. package/dist/index.es71.js +1 -1
  371. package/dist/index.es72.js +1 -1
  372. package/dist/index.es73.js +1 -1
  373. package/dist/index.es74.js +1 -1
  374. package/dist/index.es76.js +1 -1
  375. package/dist/index.es77.js +1 -1
  376. package/dist/index.es79.js +21351 -7
  377. package/dist/index.es79.js.map +1 -1
  378. package/dist/index.es81.js +7 -25
  379. package/dist/index.es81.js.map +1 -1
  380. package/dist/index.es82.js +2 -589
  381. package/dist/index.es82.js.map +1 -1
  382. package/dist/index.es83.js +25 -21351
  383. package/dist/index.es83.js.map +1 -1
  384. package/dist/index.es84.js +589 -2
  385. package/dist/index.es84.js.map +1 -1
  386. package/dist/index.es93.js +1 -1
  387. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
- "use strict";const t=require("./index.cjs210.js"),r=t("String");module.exports=r;
1
+ "use strict";const t=require("./index.cjs218.js"),r=t("String");module.exports=r;
2
2
  //# sourceMappingURL=index.cjs100.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("./index.cjs210.js"),r=e("Number");module.exports=r;
1
+ "use strict";const e=require("./index.cjs218.js"),r=e("Number");module.exports=r;
2
2
  //# sourceMappingURL=index.cjs101.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const t=require("./index.cjs210.js"),e=t("Date");module.exports=e;
1
+ "use strict";const t=require("./index.cjs218.js"),e=t("Date");module.exports=e;
2
2
  //# sourceMappingURL=index.cjs102.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("./index.cjs210.js"),s=e("RegExp");module.exports=s;
1
+ "use strict";const e=require("./index.cjs218.js"),s=e("RegExp");module.exports=s;
2
2
  //# sourceMappingURL=index.cjs103.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const r=require("./index.cjs210.js"),s=r("Error");module.exports=s;
1
+ "use strict";const r=require("./index.cjs218.js"),s=r("Error");module.exports=s;
2
2
  //# sourceMappingURL=index.cjs104.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const s=require("./index.cjs210.js"),t=s("Symbol");module.exports=t;
1
+ "use strict";const s=require("./index.cjs218.js"),t=s("Symbol");module.exports=t;
2
2
  //# sourceMappingURL=index.cjs105.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const r=require("./index.cjs210.js"),e=r("ArrayBuffer");module.exports=e;
1
+ "use strict";const r=require("./index.cjs218.js"),e=r("ArrayBuffer");module.exports=e;
2
2
  //# sourceMappingURL=index.cjs106.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const t=require("./index.cjs210.js"),r=require("./index.cjs38.js"),a=require("./index.cjs106.js"),i=require("./index.cjs39.js");var s=t("DataView");function n(e){return e!=null&&r(e.getInt8)&&a(e.buffer)}const u=i.hasDataViewBug?n:s;module.exports=u;
1
+ "use strict";const t=require("./index.cjs218.js"),r=require("./index.cjs38.js"),a=require("./index.cjs106.js"),i=require("./index.cjs39.js");var s=t("DataView");function n(e){return e!=null&&r(e.getInt8)&&a(e.buffer)}const u=i.hasDataViewBug?n:s;module.exports=u;
2
2
  //# sourceMappingURL=index.cjs107.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const r=require("./index.cjs37.js"),e=require("./index.cjs210.js"),s=r.nativeIsArray||e("Array");module.exports=s;
1
+ "use strict";const r=require("./index.cjs37.js"),e=require("./index.cjs218.js"),s=r.nativeIsArray||e("Array");module.exports=s;
2
2
  //# sourceMappingURL=index.cjs108.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("./index.cjs37.js"),r=require("./index.cjs107.js"),i=require("./index.cjs132.js"),s=require("./index.cjs212.js");var n=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function a(t){return e.nativeIsView?e.nativeIsView(t)&&!r(t):s(t)&&n.test(e.toString.call(t))}const u=e.supportsArrayBuffer?a:i(!1);module.exports=u;
1
+ "use strict";const e=require("./index.cjs37.js"),r=require("./index.cjs107.js"),i=require("./index.cjs132.js"),s=require("./index.cjs220.js");var n=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function a(t){return e.nativeIsView?e.nativeIsView(t)&&!r(t):s(t)&&n.test(e.toString.call(t))}const u=e.supportsArrayBuffer?a:i(!1);module.exports=u;
2
2
  //# sourceMappingURL=index.cjs111.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const t=require("./index.cjs213.js"),n=require("./index.cjs108.js"),i=require("./index.cjs100.js"),s=require("./index.cjs40.js"),u=require("./index.cjs116.js");function c(r){if(r==null)return!0;var e=t(r);return typeof e=="number"&&(n(r)||i(r)||s(r))?e===0:t(u(r))===0}module.exports=c;
1
+ "use strict";const t=require("./index.cjs221.js"),n=require("./index.cjs108.js"),i=require("./index.cjs100.js"),s=require("./index.cjs40.js"),u=require("./index.cjs116.js");function c(r){if(r==null)return!0;var e=t(r);return typeof e=="number"&&(n(r)||i(r)||s(r))?e===0:t(u(r))===0}module.exports=c;
2
2
  //# sourceMappingURL=index.cjs112.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const h=require("./index.cjs41.js"),l=require("./index.cjs37.js"),j=require("./index.cjs214.js"),m=require("./index.cjs111.js"),q=require("./index.cjs38.js"),D=require("./index.cjs39.js"),y=require("./index.cjs107.js"),w=require("./index.cjs116.js"),O=require("./index.cjs211.js"),v=require("./index.cjs215.js");var B="[object DataView]";function p(e,r,n,u){if(e===r)return e!==0||1/e===1/r;if(e==null||r==null)return!1;if(e!==e)return r!==r;var i=typeof e;return i!=="function"&&i!=="object"&&typeof r!="object"?!1:_(e,r,n,u)}function _(e,r,n,u){e instanceof h&&(e=e._wrapped),r instanceof h&&(r=r._wrapped);var i=l.toString.call(e);if(i!==l.toString.call(r))return!1;if(D.hasDataViewBug&&i=="[object Object]"&&y(e)){if(!y(r))return!1;i=B}switch(i){case"[object RegExp]":case"[object String]":return""+e==""+r;case"[object Number]":return+e!=+e?+r!=+r:+e==0?1/+e===1/r:+e==+r;case"[object Date]":case"[object Boolean]":return+e==+r;case"[object Symbol]":return l.SymbolProto.valueOf.call(e)===l.SymbolProto.valueOf.call(r);case"[object ArrayBuffer]":case B:return _(v(e),v(r),n,u)}var f=i==="[object Array]";if(!f&&m(e)){var d=j(e);if(d!==j(r))return!1;if(e.buffer===r.buffer&&e.byteOffset===r.byteOffset)return!0;f=!0}if(!f){if(typeof e!="object"||typeof r!="object")return!1;var s=e.constructor,o=r.constructor;if(s!==o&&!(q(s)&&s instanceof s&&q(o)&&o instanceof o)&&"constructor"in e&&"constructor"in r)return!1}n=n||[],u=u||[];for(var t=n.length;t--;)if(n[t]===e)return u[t]===r;if(n.push(e),u.push(r),f){if(t=e.length,t!==r.length)return!1;for(;t--;)if(!p(e[t],r[t],n,u))return!1}else{var g=w(e),c;if(t=g.length,w(r).length!==t)return!1;for(;t--;)if(c=g[t],!(O(r,c)&&p(e[c],r[c],n,u)))return!1}return n.pop(),u.pop(),!0}function V(e,r){return p(e,r)}module.exports=V;
1
+ "use strict";const h=require("./index.cjs41.js"),l=require("./index.cjs37.js"),j=require("./index.cjs222.js"),m=require("./index.cjs111.js"),q=require("./index.cjs38.js"),D=require("./index.cjs39.js"),y=require("./index.cjs107.js"),w=require("./index.cjs116.js"),O=require("./index.cjs219.js"),v=require("./index.cjs223.js");var B="[object DataView]";function p(e,r,n,u){if(e===r)return e!==0||1/e===1/r;if(e==null||r==null)return!1;if(e!==e)return r!==r;var i=typeof e;return i!=="function"&&i!=="object"&&typeof r!="object"?!1:_(e,r,n,u)}function _(e,r,n,u){e instanceof h&&(e=e._wrapped),r instanceof h&&(r=r._wrapped);var i=l.toString.call(e);if(i!==l.toString.call(r))return!1;if(D.hasDataViewBug&&i=="[object Object]"&&y(e)){if(!y(r))return!1;i=B}switch(i){case"[object RegExp]":case"[object String]":return""+e==""+r;case"[object Number]":return+e!=+e?+r!=+r:+e==0?1/+e===1/r:+e==+r;case"[object Date]":case"[object Boolean]":return+e==+r;case"[object Symbol]":return l.SymbolProto.valueOf.call(e)===l.SymbolProto.valueOf.call(r);case"[object ArrayBuffer]":case B:return _(v(e),v(r),n,u)}var f=i==="[object Array]";if(!f&&m(e)){var d=j(e);if(d!==j(r))return!1;if(e.buffer===r.buffer&&e.byteOffset===r.byteOffset)return!0;f=!0}if(!f){if(typeof e!="object"||typeof r!="object")return!1;var s=e.constructor,o=r.constructor;if(s!==o&&!(q(s)&&s instanceof s&&q(o)&&o instanceof o)&&"constructor"in e&&"constructor"in r)return!1}n=n||[],u=u||[];for(var t=n.length;t--;)if(n[t]===e)return u[t]===r;if(n.push(e),u.push(r),f){if(t=e.length,t!==r.length)return!1;for(;t--;)if(!p(e[t],r[t],n,u))return!1}else{var g=w(e),c;if(t=g.length,w(r).length!==t)return!1;for(;t--;)if(c=g[t],!(O(r,c)&&p(e[c],r[c],n,u)))return!1}return n.pop(),u.pop(),!0}function V(e,r){return p(e,r)}module.exports=V;
2
2
  //# sourceMappingURL=index.cjs114.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("./index.cjs210.js"),t=e("WeakSet");module.exports=t;
1
+ "use strict";const e=require("./index.cjs218.js"),t=e("WeakSet");module.exports=t;
2
2
  //# sourceMappingURL=index.cjs115.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const n=require("./index.cjs95.js"),s=require("./index.cjs37.js"),i=require("./index.cjs211.js"),u=require("./index.cjs217.js");function c(e){if(!n(e))return[];if(s.nativeKeys)return s.nativeKeys(e);var r=[];for(var t in e)i(e,t)&&r.push(t);return s.hasEnumBug&&u(e,r),r}module.exports=c;
1
+ "use strict";const n=require("./index.cjs95.js"),s=require("./index.cjs37.js"),i=require("./index.cjs219.js"),u=require("./index.cjs225.js");function c(e){if(!n(e))return[];if(s.nativeKeys)return s.nativeKeys(e);var r=[];for(var t in e)i(e,t)&&r.push(t);return s.hasEnumBug&&u(e,r),r}module.exports=c;
2
2
  //# sourceMappingURL=index.cjs116.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const t=require("./index.cjs95.js"),u=require("./index.cjs37.js"),n=require("./index.cjs217.js");function i(r){if(!t(r))return[];var e=[];for(var s in r)e.push(s);return u.hasEnumBug&&n(r,e),e}module.exports=i;
1
+ "use strict";const t=require("./index.cjs95.js"),u=require("./index.cjs37.js"),n=require("./index.cjs225.js");function i(r){if(!t(r))return[];var e=[];for(var s in r)e.push(s);return u.hasEnumBug&&n(r,e),e}module.exports=i;
2
2
  //# sourceMappingURL=index.cjs117.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("./index.cjs218.js"),s=require("./index.cjs117.js"),r=e(s);module.exports=r;
1
+ "use strict";const e=require("./index.cjs226.js"),s=require("./index.cjs117.js"),r=e(s);module.exports=r;
2
2
  //# sourceMappingURL=index.cjs122.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("./index.cjs218.js"),s=require("./index.cjs116.js"),r=e(s);module.exports=r;
1
+ "use strict";const e=require("./index.cjs226.js"),s=require("./index.cjs116.js"),r=e(s);module.exports=r;
2
2
  //# sourceMappingURL=index.cjs123.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("./index.cjs218.js"),s=require("./index.cjs117.js"),r=e(s,!0);module.exports=r;
1
+ "use strict";const e=require("./index.cjs226.js"),s=require("./index.cjs117.js"),r=e(s,!0);module.exports=r;
2
2
  //# sourceMappingURL=index.cjs124.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const n=require("./index.cjs219.js"),s=require("./index.cjs123.js");function u(t,e){var r=n(t);return e&&s(r,e),r}module.exports=u;
1
+ "use strict";const n=require("./index.cjs227.js"),s=require("./index.cjs123.js");function u(t,e){var r=n(t);return e&&s(r,e),r}module.exports=u;
2
2
  //# sourceMappingURL=index.cjs125.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const i=require("./index.cjs220.js"),s=require("./index.cjs221.js"),u=require("./index.cjs97.js");function o(t,r,n){var e=s(t,i(r));return u(e)?n:e}module.exports=o;
1
+ "use strict";const i=require("./index.cjs228.js"),s=require("./index.cjs229.js"),u=require("./index.cjs97.js");function o(t,r,n){var e=s(t,i(r));return u(e)?n:e}module.exports=o;
2
2
  //# sourceMappingURL=index.cjs128.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const u=require("./index.cjs211.js"),a=require("./index.cjs220.js");function c(e,r){r=a(r);for(var n=r.length,t=0;t<n;t++){var s=r[t];if(!u(e,s))return!1;e=e[s]}return!!n}module.exports=c;
1
+ "use strict";const u=require("./index.cjs219.js"),a=require("./index.cjs228.js");function c(e,r){r=a(r);for(var n=r.length,t=0;t<n;t++){var s=r[t];if(!u(e,s))return!1;e=e[s]}return!!n}module.exports=c;
2
2
  //# sourceMappingURL=index.cjs129.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const C=require("./index.cjs68.js"),q=require("./index.cjs69.js"),L=require("./index.cjs70.js"),_=require("./index.cjs71.js"),$=require("./index.cjs72.js"),M=require("./index.cjs73.js"),v=require("./index.cjs74.js"),A=require("./index.cjs75.js"),B=require("./index.cjs76.js"),I=require("./index.cjs77.js"),s=require("./index.cjs67.js"),F=require("./index.cjs78.js"),y=require("./index.cjs36.js");require("./index.cjs37.js");require("./index.cjs38.js");require("./index.cjs39.js");require("./index.cjs40.js");require("./index.cjs41.js");require("./index.cjs42.js");require("./index.cjs43.js");require("./index.cjs44.js");require("./index.cjs45.js");require("./index.cjs46.js");require("./index.cjs47.js");require("./index.cjs48.js");require("./index.cjs49.js");require("./index.cjs50.js");require("./index.cjs51.js");require("./index.cjs52.js");require("./index.cjs53.js");require("./index.cjs54.js");require("./index.cjs55.js");require("./index.cjs56.js");require("./index.cjs57.js");require("./index.cjs58.js");require("./index.cjs59.js");require("./index.cjs60.js");require("./index.cjs61.js");require("./index.cjs62.js");require("./index.cjs63.js");const G=-90,T=90,U=-180,h=180,d=(e,n)=>A.default(e.coordinates,n,{units:"kilometers",steps:32}),P=(e,n)=>{if(e.geometry?.type==="FeatureCollection"){let r=[];for(const t of e.geometry.features)if(t.geometry?.type==="Point"){const{geometry:o,type:i}=d(t.geometry,n);r.push({...t,geometry:o,type:i})}return s.featureCollection(r)}else{if(e.geometry?.type==="GeometryCollection")return s.featureCollection(e.geometry.geometries.map(r=>r.type==="Point"?d(r,n):s.feature(r)));if(e.geometry?.type==="Point"){const{geometry:r,type:t}=d(e.geometry,n);return{...e,geometry:r,type:t}}}return e},D=(e,n,r={})=>{const t=new C.WarpedMapLayer(n);e.addLayer(t),r.url?t.addGeoreferenceAnnotationByUrl(r.url):r.manifest&&t.addGeoreferenceAnnotation(r.manifest),r.opacity&&t.setOpacity(r.opacity)},E=(e,n=null)=>{const r=q.bbox(e);if(!f(r))return null;const t=L.bboxPolygon(r);let o;return n?o=M.buffer(t,n,{units:"miles"}):o=t,q.bbox(o)},N=(e,n)=>e&&e.removeLayer(n),O=(e,n,r,t)=>{const o={id:e.record_id,ccode:[],title:e.name,uuid:e.uuid,record_id:e.record_id,name:e.name,names:e.names?.map(u=>({toponym:u})),type:e.type,items:[n],url:e.url,originalProperties:t||{}},i=parseInt(e.record_id,10);return s.feature(r,o,{id:i})},w=e=>s.featureCollection(e),f=e=>y.every(e,y.isFinite),S=e=>{let n=!1;if(e){const[r,t]=e;n=r>=G&&r<=T&&t>=U&&t<=h}return n},X=(e,n={})=>{const{curvature:r=-.2}=n,t=e.map(i=>v.centroid(i).geometry.coordinates),o=[];for(let i=0;i<t.length-1;i+=1){const u=t[i],c=t[i+1],p=I.distance(u,c),g=F.midpoint(u,c),a=_.bearing(u,c),m=a+90>180?a+90-360:a+90,x=B.destination(g,p*r,m),b=s.lineString([u,x.geometry.coordinates,c]),l=$.bezierSpline(b);l.properties={...l.properties,index:i},o.push(l)}return s.featureCollection(o)},k={addGeoreferenceLayer:D,toCertaintyCircle:P,getBoundingBox:E,removeLayer:N,toArcs:X,toFeature:O,toFeatureCollection:w,validateBoundingBox:f,validateCoordinates:S};module.exports=k;
1
+ "use strict";const C=require("./index.cjs68.js"),q=require("./index.cjs69.js"),L=require("./index.cjs70.js"),_=require("./index.cjs71.js"),$=require("./index.cjs72.js"),M=require("./index.cjs73.js"),v=require("./index.cjs74.js"),A=require("./index.cjs75.js"),B=require("./index.cjs76.js"),I=require("./index.cjs77.js"),o=require("./index.cjs67.js"),G=require("./index.cjs78.js"),y=require("./index.cjs36.js");require("./index.cjs37.js");require("./index.cjs38.js");require("./index.cjs39.js");require("./index.cjs40.js");require("./index.cjs41.js");require("./index.cjs42.js");require("./index.cjs43.js");require("./index.cjs44.js");require("./index.cjs45.js");require("./index.cjs46.js");require("./index.cjs47.js");require("./index.cjs48.js");require("./index.cjs49.js");require("./index.cjs50.js");require("./index.cjs51.js");require("./index.cjs52.js");require("./index.cjs53.js");require("./index.cjs54.js");require("./index.cjs55.js");require("./index.cjs56.js");require("./index.cjs57.js");require("./index.cjs58.js");require("./index.cjs59.js");require("./index.cjs60.js");require("./index.cjs61.js");require("./index.cjs62.js");require("./index.cjs63.js");const T=-90,U=90,F=-180,P=180,d=(e,n)=>A.default(e.coordinates,n,{units:"kilometers",steps:32}),D=(e,n)=>{if(e.geometry?.type==="FeatureCollection"){let r=[];for(const t of e.geometry.features)if(t.geometry?.type==="Point"){const{geometry:i,type:u}=d(t.geometry,n);r.push({...t,geometry:i,type:u})}return o.featureCollection(r)}else{if(e.geometry?.type==="GeometryCollection")return o.featureCollection(e.geometry.geometries.map(r=>r.type==="Point"?d(r,n):o.feature(r)));if(e.geometry?.type==="Point"){const{geometry:r,type:t}=d(e.geometry,n);return{...e,geometry:r,type:t}}}return e},E=(e,n,r={})=>{const t=new C.WarpedMapLayer(n);e.addLayer(t),r.url?t.addGeoreferenceAnnotationByUrl(r.url):r.manifest&&t.addGeoreferenceAnnotation(r.manifest),r.opacity&&t.setOpacity(r.opacity)},N=(e,n=null)=>{const r=q.bbox(e);if(!f(r))return null;const t=L.bboxPolygon(r);let i;return n?i=M.buffer(t,n,{units:"miles"}):i=t,q.bbox(i)},h=(e,n)=>e&&e.removeLayer(n),O=(e,n,r,t)=>{const i={id:e.record_id,ccode:[],title:e.name,uuid:e.uuid,record_id:e.record_id,name:e.name,names:e.names?.map(s=>({toponym:s})),type:e.type,items:[n],url:e.url,originalProperties:t||{}},u=parseInt(e.record_id,10);return o.feature(r,i,{id:u})},w=e=>o.featureCollection(e),f=e=>y.every(e,y.isFinite),S=e=>{let n=!1;if(e){const[r,t]=e;n=r>=T&&r<=U&&t>=F&&t<=P}return n},X=(e,n={})=>{const{curvature:r=-.2}=n;return o.featureCollection(e.map((t,i)=>{const u=v.centroid(t).geometry.coordinates,s=u[0],c=u[1],p=I.distance(s,c),g=G.midpoint(s,c),a=_.bearing(s,c),m=a+90>180?a+90-360:a+90,x=B.destination(g,p*r,m),b=o.lineString([s,x.geometry.coordinates,c]),l=$.bezierSpline(b);return l.properties={...l.properties,index:i},l}))},k={addGeoreferenceLayer:E,toCertaintyCircle:D,getBoundingBox:N,removeLayer:h,toArcs:X,toFeature:O,toFeatureCollection:w,validateBoundingBox:f,validateCoordinates:S};module.exports=k;
2
2
  //# sourceMappingURL=index.cjs13.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs13.js","sources":["../src/utils/Map.js"],"sourcesContent":["// @flow\n\nimport { WarpedMapLayer } from '@allmaps/maplibre';\nimport {\n bbox,\n bboxPolygon,\n bearing,\n bezierSpline,\n buffer,\n centroid,\n destination,\n distance,\n feature,\n featureCollection,\n lineString,\n midpoint\n} from '@turf/turf';\nimport _ from 'underscore';\nimport circle from '@turf/circle';\n\nconst MIN_LATITUDE = -90;\nconst MAX_LATITUDE = 90;\nconst MIN_LONGITUDE = -180;\nconst MAX_LONGITUDE = 180;\n\n/**\n * Returns a GeoJSON circle feature with the given center point and radius.\n * @param point - The center point of the circle.\n * @param radius - The radius of the circle in kilometers.\n * @returns {Feature<Geometry, Properties>} - The GeoJSON circle feature.\n */\nconst buildCircle = (point, radius) => (\n circle(point.coordinates, radius, { units: 'kilometers', steps: 32 })\n);\n\nconst toCertaintyCircle = (item, radius: number) => {\n if (item.geometry?.type === 'FeatureCollection') {\n let children = [];\n\n for (const childFeature of item.geometry.features) {\n if (childFeature.geometry?.type === 'Point') {\n const { geometry, type } = buildCircle(childFeature.geometry, radius);\n children.push({\n ...childFeature,\n geometry,\n type\n });\n }\n }\n\n return featureCollection(children);\n } else if (item.geometry?.type === 'GeometryCollection') {\n return featureCollection(item.geometry.geometries.map((geometry) => geometry.type === 'Point'\n ? buildCircle(geometry, radius)\n : feature(geometry)));\n } else if (item.geometry?.type === 'Point') {\n const { geometry, type } = buildCircle(item.geometry, radius);\n return {\n ...item,\n geometry,\n type\n };\n }\n\n return item;\n};\n\n/**\n * Adds the geo-referenced image layer to the passed map.\n *\n * @param map\n * @param layerId\n * @param options\n */\nconst addGeoreferenceLayer = (map, layerId, options = {}) => {\n const warpedMapLayer = new WarpedMapLayer(layerId);\n map.addLayer(warpedMapLayer);\n\n if (options.url) {\n warpedMapLayer.addGeoreferenceAnnotationByUrl(options.url);\n } else if (options.manifest) {\n warpedMapLayer.addGeoreferenceAnnotation(options.manifest);\n }\n\n if (options.opacity) {\n warpedMapLayer.setOpacity(options.opacity);\n }\n};\n\n/**\n * Returns a bounding box for the passed geometry (with optional buffer).\n *\n * @param data\n * @param bufferDistance\n *\n * @returns {BBox}\n */\nconst getBoundingBox = (data, bufferDistance = null) => {\n // Convert the GeoJSON into a bounding box\n const box = bbox(data);\n\n if (!validateBoundingBox(box)) {\n return null;\n }\n\n // Convert the bounding box to a polygon\n const polygon = bboxPolygon(box);\n\n // Create a buffer around the polygon (if a distance is provided)\n let polygonBuffer;\n\n if (bufferDistance) {\n polygonBuffer = buffer(polygon, bufferDistance, { units: 'miles' });\n } else {\n polygonBuffer = polygon;\n }\n\n // Convert the buffer to a bounding box\n return bbox(polygonBuffer);\n};\n\n/**\n * Removes a layer from the passed map.\n *\n * @param map\n * @param layerId\n *\n * @returns {*}\n */\nconst removeLayer = (map, layerId) => map && map.removeLayer(layerId);\n\n/**\n * Wraps the passed record in a feature.\n *\n * @param record\n * @param item\n * @param geometry\n * @param originalProperties\n *\n * @returns {Feature<Geometry, {\n * id: *,\n * ccode: [],\n * title: *,\n * uuid: *,\n * record_id: *,\n * name: *,\n * names: *,\n * type: *,\n * items: [*],\n * url: *\n * }>}\n */\nconst toFeature = (record: any, item: any, geometry: any, originalProperties?: any) => {\n const properties = {\n id: record.record_id,\n ccode: [],\n title: record.name,\n uuid: record.uuid,\n record_id: record.record_id,\n name: record.name,\n names: record.names?.map((toponym: string) => ({ toponym })),\n type: record.type,\n items: [item],\n url: record.url,\n originalProperties: originalProperties || {}\n };\n\n const id = parseInt(record.record_id, 10);\n return feature(geometry, properties, { id });\n};\n\n/**\n * Returns a feature collection for the passed set of features.\n *\n * @param features\n *\n * @returns {FeatureCollection<Geometry, GeoJsonProperties>}\n */\nconst toFeatureCollection = (features: Array<any>) => featureCollection(features);\n\n/**\n * Validates that the passed bounding box contains finite coordinates.\n *\n * @param boundingBox\n *\n * @returns {*}\n */\nconst validateBoundingBox = (boundingBox: Array<number>) => _.every(boundingBox, _.isFinite);\n\n/**\n * Returns true if the passed coordinates are valid.\n *\n * @param coordinates\n *\n * @returns {boolean}\n */\nconst validateCoordinates = (coordinates) => {\n let valid = false;\n\n if (coordinates) {\n const [latitude, longitude] = coordinates;\n\n valid = latitude >= MIN_LATITUDE\n && latitude <= MAX_LATITUDE\n && longitude >= MIN_LONGITUDE\n && longitude <= MAX_LONGITUDE;\n }\n\n return valid;\n};\n\n/**\n * Returns a GeoJSON FeatureCollection of LineStrings (arcs) for the passed coordinates.\n *\n * @param coordinates\n * @param options\n *\n * @returns {FeatureCollection<LineString, GeoJsonProperties>}\n */\nconst toArcs = (features, options = {}) => {\n const { curvature = -0.2 } = options;\n\n const coordinates = features.map(feature => centroid(feature).geometry.coordinates);\n\n const arcFeatures = [];\n\n for (let i = 0; i < coordinates.length - 1; i += 1) {\n const start = coordinates[i];\n const end = coordinates[i + 1];\n\n const d = distance(start, end);\n const m = midpoint(start, end);\n const b = bearing(start, end);\n\n const offsetBearing = b + 90 > 180 ? b + 90 - 360 : b + 90;\n const dest = destination(m, d * curvature, offsetBearing);\n\n const line = lineString([start, dest.geometry.coordinates, end]);\n const arc = bezierSpline(line);\n\n arc.properties = {\n ...arc.properties,\n index: i\n };\n\n arcFeatures.push(arc);\n }\n\n return featureCollection(arcFeatures);\n};\n\nexport default {\n addGeoreferenceLayer,\n toCertaintyCircle,\n getBoundingBox,\n removeLayer,\n toArcs,\n toFeature,\n toFeatureCollection,\n validateBoundingBox,\n validateCoordinates\n};\n"],"names":["MIN_LATITUDE","MAX_LATITUDE","MIN_LONGITUDE","MAX_LONGITUDE","buildCircle","point","radius","circle","toCertaintyCircle","item","children","childFeature","geometry","type","featureCollection","feature","addGeoreferenceLayer","map","layerId","options","warpedMapLayer","WarpedMapLayer","getBoundingBox","data","bufferDistance","box","bbox","validateBoundingBox","polygon","bboxPolygon","polygonBuffer","buffer","removeLayer","toFeature","record","originalProperties","properties","toponym","id","toFeatureCollection","features","boundingBox","_","validateCoordinates","coordinates","valid","latitude","longitude","toArcs","curvature","centroid","arcFeatures","start","end","d","distance","m","midpoint","b","bearing","offsetBearing","dest","destination","line","lineString","arc","bezierSpline","MapUtils"],"mappings":"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"}
1
+ {"version":3,"file":"index.cjs13.js","sources":["../src/utils/Map.js"],"sourcesContent":["// @flow\n\nimport { WarpedMapLayer } from '@allmaps/maplibre';\nimport {\n bbox,\n bboxPolygon,\n bearing,\n bezierSpline,\n buffer,\n centroid,\n destination,\n distance,\n feature,\n featureCollection,\n lineString,\n midpoint\n} from '@turf/turf';\nimport _ from 'underscore';\nimport circle from '@turf/circle';\n\nconst MIN_LATITUDE = -90;\nconst MAX_LATITUDE = 90;\nconst MIN_LONGITUDE = -180;\nconst MAX_LONGITUDE = 180;\n\n/**\n * Returns a GeoJSON circle feature with the given center point and radius.\n * @param point - The center point of the circle.\n * @param radius - The radius of the circle in kilometers.\n * @returns {Feature<Geometry, Properties>} - The GeoJSON circle feature.\n */\nconst buildCircle = (point, radius) => (\n circle(point.coordinates, radius, { units: 'kilometers', steps: 32 })\n);\n\nconst toCertaintyCircle = (item, radius: number) => {\n if (item.geometry?.type === 'FeatureCollection') {\n let children = [];\n\n for (const childFeature of item.geometry.features) {\n if (childFeature.geometry?.type === 'Point') {\n const { geometry, type } = buildCircle(childFeature.geometry, radius);\n children.push({\n ...childFeature,\n geometry,\n type\n });\n }\n }\n\n return featureCollection(children);\n } else if (item.geometry?.type === 'GeometryCollection') {\n return featureCollection(item.geometry.geometries.map((geometry) => geometry.type === 'Point'\n ? buildCircle(geometry, radius)\n : feature(geometry)));\n } else if (item.geometry?.type === 'Point') {\n const { geometry, type } = buildCircle(item.geometry, radius);\n return {\n ...item,\n geometry,\n type\n };\n }\n\n return item;\n};\n\n/**\n * Adds the geo-referenced image layer to the passed map.\n *\n * @param map\n * @param layerId\n * @param options\n */\nconst addGeoreferenceLayer = (map, layerId, options = {}) => {\n const warpedMapLayer = new WarpedMapLayer(layerId);\n map.addLayer(warpedMapLayer);\n\n if (options.url) {\n warpedMapLayer.addGeoreferenceAnnotationByUrl(options.url);\n } else if (options.manifest) {\n warpedMapLayer.addGeoreferenceAnnotation(options.manifest);\n }\n\n if (options.opacity) {\n warpedMapLayer.setOpacity(options.opacity);\n }\n};\n\n/**\n * Returns a bounding box for the passed geometry (with optional buffer).\n *\n * @param data\n * @param bufferDistance\n *\n * @returns {BBox}\n */\nconst getBoundingBox = (data, bufferDistance = null) => {\n // Convert the GeoJSON into a bounding box\n const box = bbox(data);\n\n if (!validateBoundingBox(box)) {\n return null;\n }\n\n // Convert the bounding box to a polygon\n const polygon = bboxPolygon(box);\n\n // Create a buffer around the polygon (if a distance is provided)\n let polygonBuffer;\n\n if (bufferDistance) {\n polygonBuffer = buffer(polygon, bufferDistance, { units: 'miles' });\n } else {\n polygonBuffer = polygon;\n }\n\n // Convert the buffer to a bounding box\n return bbox(polygonBuffer);\n};\n\n/**\n * Removes a layer from the passed map.\n *\n * @param map\n * @param layerId\n *\n * @returns {*}\n */\nconst removeLayer = (map, layerId) => map && map.removeLayer(layerId);\n\n/**\n * Wraps the passed record in a feature.\n *\n * @param record\n * @param item\n * @param geometry\n * @param originalProperties\n *\n * @returns {Feature<Geometry, {\n * id: *,\n * ccode: [],\n * title: *,\n * uuid: *,\n * record_id: *,\n * name: *,\n * names: *,\n * type: *,\n * items: [*],\n * url: *\n * }>}\n */\nconst toFeature = (record: any, item: any, geometry: any, originalProperties?: any) => {\n const properties = {\n id: record.record_id,\n ccode: [],\n title: record.name,\n uuid: record.uuid,\n record_id: record.record_id,\n name: record.name,\n names: record.names?.map((toponym: string) => ({ toponym })),\n type: record.type,\n items: [item],\n url: record.url,\n originalProperties: originalProperties || {}\n };\n\n const id = parseInt(record.record_id, 10);\n return feature(geometry, properties, { id });\n};\n\n/**\n * Returns a feature collection for the passed set of features.\n *\n * @param features\n *\n * @returns {FeatureCollection<Geometry, GeoJsonProperties>}\n */\nconst toFeatureCollection = (features: Array<any>) => featureCollection(features);\n\n/**\n * Validates that the passed bounding box contains finite coordinates.\n *\n * @param boundingBox\n *\n * @returns {*}\n */\nconst validateBoundingBox = (boundingBox: Array<number>) => _.every(boundingBox, _.isFinite);\n\n/**\n * Returns true if the passed coordinates are valid.\n *\n * @param coordinates\n *\n * @returns {boolean}\n */\nconst validateCoordinates = (coordinates) => {\n let valid = false;\n\n if (coordinates) {\n const [latitude, longitude] = coordinates;\n\n valid = latitude >= MIN_LATITUDE\n && latitude <= MAX_LATITUDE\n && longitude >= MIN_LONGITUDE\n && longitude <= MAX_LONGITUDE;\n }\n\n return valid;\n};\n\n/**\n * Returns a GeoJSON FeatureCollection of LineStrings (arcs) for the passed coordinates.\n *\n * @param features\n * @param options\n *\n * @returns {FeatureCollection<LineString, GeoJsonProperties>}\n */\nconst toArcs = (features, options = {}) => {\n const { curvature = -0.2 } = options;\n\n return featureCollection(features.map((feature, idx) => {\n const coordinates = centroid(feature).geometry.coordinates;\n const start = coordinates[0];\n const end = coordinates[1];\n\n const d = distance(start, end);\n const m = midpoint(start, end);\n const b = bearing(start, end);\n\n const offsetBearing = b + 90 > 180 ? b + 90 - 360 : b + 90;\n const dest = destination(m, d * curvature, offsetBearing);\n\n const line = lineString([start, dest.geometry.coordinates, end]);\n const arc = bezierSpline(line);\n\n arc.properties = {\n ...arc.properties,\n index: idx\n };\n\n return arc;\n }));\n};\n\nexport default {\n addGeoreferenceLayer,\n toCertaintyCircle,\n getBoundingBox,\n removeLayer,\n toArcs,\n toFeature,\n toFeatureCollection,\n validateBoundingBox,\n validateCoordinates\n};\n"],"names":["MIN_LATITUDE","MAX_LATITUDE","MIN_LONGITUDE","MAX_LONGITUDE","buildCircle","point","radius","circle","toCertaintyCircle","item","children","childFeature","geometry","type","featureCollection","feature","addGeoreferenceLayer","map","layerId","options","warpedMapLayer","WarpedMapLayer","getBoundingBox","data","bufferDistance","box","bbox","validateBoundingBox","polygon","bboxPolygon","polygonBuffer","buffer","removeLayer","toFeature","record","originalProperties","properties","toponym","id","toFeatureCollection","features","boundingBox","_","validateCoordinates","coordinates","valid","latitude","longitude","toArcs","curvature","idx","centroid","start","end","d","distance","m","midpoint","b","bearing","offsetBearing","dest","destination","line","lineString","arc","bezierSpline","MapUtils"],"mappings":"6oCAoBA,MAAMA,EAAe,IACfC,EAAe,GACfC,EAAgB,KAChBC,EAAgB,IAQhBC,EAAc,CAACC,EAAOC,IAC1BC,EAAAA,QAAOF,EAAM,YAAaC,EAAQ,CAAE,MAAO,aAAc,MAAO,GAAI,EAGhEE,EAAoB,CAACC,EAAMH,IAAmB,CAClD,GAAIG,EAAK,UAAU,OAAS,oBAAqB,CAC/C,IAAIC,EAAW,CAAA,EAEf,UAAWC,KAAgBF,EAAK,SAAS,SACvC,GAAIE,EAAa,UAAU,OAAS,QAAS,CAC3C,KAAM,CAAE,SAAAC,EAAU,KAAAC,CAAA,EAAST,EAAYO,EAAa,SAAUL,CAAM,EACpEI,EAAS,KAAK,CACZ,GAAGC,EACH,SAAAC,EACA,KAAAC,CAAA,CACD,CACH,CAGF,OAAOC,EAAAA,kBAAkBJ,CAAQ,CACnC,KAAA,IAAWD,EAAK,UAAU,OAAS,qBACjC,OAAOK,EAAAA,kBAAkBL,EAAK,SAAS,WAAW,IAAKG,GAAaA,EAAS,OAAS,QAClFR,EAAYQ,EAAUN,CAAM,EAC5BS,EAAAA,QAAQH,CAAQ,CAAC,CAAC,EACxB,GAAWH,EAAK,UAAU,OAAS,QAAS,CAC1C,KAAM,CAAE,SAAAG,EAAU,KAAAC,CAAA,EAAST,EAAYK,EAAK,SAAUH,CAAM,EAC5D,MAAO,CACL,GAAGG,EACH,SAAAG,EACA,KAAAC,CAAA,CAEJ,EAEA,OAAOJ,CACT,EASMO,EAAuB,CAACC,EAAKC,EAASC,EAAU,CAAA,IAAO,CAC3D,MAAMC,EAAiB,IAAIC,EAAAA,eAAeH,CAAO,EACjDD,EAAI,SAASG,CAAc,EAEvBD,EAAQ,IACVC,EAAe,+BAA+BD,EAAQ,GAAG,EAChDA,EAAQ,UACjBC,EAAe,0BAA0BD,EAAQ,QAAQ,EAGvDA,EAAQ,SACVC,EAAe,WAAWD,EAAQ,OAAO,CAE7C,EAUMG,EAAiB,CAACC,EAAMC,EAAiB,OAAS,CAEtD,MAAMC,EAAMC,EAAAA,KAAKH,CAAI,EAErB,GAAI,CAACI,EAAoBF,CAAG,EAC1B,OAAO,KAIT,MAAMG,EAAUC,EAAAA,YAAYJ,CAAG,EAG/B,IAAIK,EAEJ,OAAIN,EACFM,EAAgBC,EAAAA,OAAOH,EAASJ,EAAgB,CAAE,MAAO,QAAS,EAElEM,EAAgBF,EAIXF,EAAAA,KAAKI,CAAa,CAC3B,EAUME,EAAc,CAACf,EAAKC,IAAYD,GAAOA,EAAI,YAAYC,CAAO,EAuB9De,EAAY,CAACC,EAAazB,EAAWG,EAAeuB,IAA6B,CACrF,MAAMC,EAAa,CACjB,GAAIF,EAAO,UACX,MAAO,CAAA,EACP,MAAOA,EAAO,KACd,KAAMA,EAAO,KACb,UAAWA,EAAO,UAClB,KAAMA,EAAO,KACb,MAAOA,EAAO,OAAO,IAAKG,IAAqB,CAAE,QAAAA,GAAU,EAC3D,KAAMH,EAAO,KACb,MAAO,CAACzB,CAAI,EACZ,IAAKyB,EAAO,IACZ,mBAAoBC,GAAsB,CAAA,CAAC,EAGvCG,EAAK,SAASJ,EAAO,UAAW,EAAE,EACxC,OAAOnB,EAAAA,QAAQH,EAAUwB,EAAY,CAAE,GAAAE,EAAI,CAC7C,EASMC,EAAuBC,GAAyB1B,EAAAA,kBAAkB0B,CAAQ,EAS1Eb,EAAuBc,GAA+BC,EAAE,MAAMD,EAAaC,EAAE,QAAQ,EASrFC,EAAuBC,GAAgB,CAC3C,IAAIC,EAAQ,GAEZ,GAAID,EAAa,CACf,KAAM,CAACE,EAAUC,CAAS,EAAIH,EAE9BC,EAAQC,GAAY9C,GACf8C,GAAY7C,GACZ8C,GAAa7C,GACb6C,GAAa5C,CACpB,CAEA,OAAO0C,CACT,EAUMG,EAAS,CAACR,EAAUrB,EAAU,KAAO,CACzC,KAAM,CAAE,UAAA8B,EAAY,GAAA,EAAS9B,EAE7B,OAAOL,EAAAA,kBAAkB0B,EAAS,IAAI,CAACzB,EAASmC,IAAQ,CACtD,MAAMN,EAAcO,EAAAA,SAASpC,CAAO,EAAE,SAAS,YACzCqC,EAAQR,EAAY,CAAC,EACrBS,EAAMT,EAAY,CAAC,EAEnBU,EAAIC,EAAAA,SAASH,EAAOC,CAAG,EACvBG,EAAIC,EAAAA,SAASL,EAAOC,CAAG,EACvBK,EAAIC,EAAAA,QAAQP,EAAOC,CAAG,EAEtBO,EAAgBF,EAAI,GAAK,IAAMA,EAAI,GAAK,IAAMA,EAAI,GAClDG,EAAOC,EAAAA,YAAYN,EAAGF,EAAIL,EAAWW,CAAa,EAElDG,EAAOC,EAAAA,WAAW,CAACZ,EAAOS,EAAK,SAAS,YAAaR,CAAG,CAAC,EACzDY,EAAMC,EAAAA,aAAaH,CAAI,EAE7B,OAAAE,EAAI,WAAa,CACf,GAAGA,EAAI,WACP,MAAOf,CAAA,EAGFe,CACT,CAAC,CAAC,CACJ,EAEAE,EAAe,CACb,qBAAAnD,EACA,kBAAAR,EACA,eAAAc,EACA,YAAAU,EACA,OAAAgB,EACA,UAAAf,EACA,oBAAAM,EACA,oBAAAZ,EACA,oBAAAgB,CACF"}
@@ -1,2 +1,2 @@
1
- "use strict";const v=require("./index.cjs222.js"),a=require("./index.cjs116.js");function f(s,r,n){r=v(r,n);for(var u=a(s),o=u.length,l={},t=0;t<o;t++){var c=u[t];l[c]=r(s[c],c,s)}return l}module.exports=f;
1
+ "use strict";const v=require("./index.cjs230.js"),a=require("./index.cjs116.js");function f(s,r,n){r=v(r,n);for(var u=a(s),o=u.length,l={},t=0;t<o;t++){var c=u[t];l[c]=r(s[c],c,s)}return l}module.exports=f;
2
2
  //# sourceMappingURL=index.cjs130.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const t=require("./index.cjs221.js"),n=require("./index.cjs220.js");function o(e){return e=n(e),function(r){return t(r,e)}}module.exports=o;
1
+ "use strict";const t=require("./index.cjs229.js"),n=require("./index.cjs228.js");function o(e){return e=n(e),function(r){return t(r,e)}}module.exports=o;
2
2
  //# sourceMappingURL=index.cjs134.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const u=require("./index.cjs223.js");function a(o,c,t){var s=Array(Math.max(0,o));c=u(c,t,1);for(var r=0;r<o;r++)s[r]=c(r);return s}module.exports=a;
1
+ "use strict";const u=require("./index.cjs231.js");function a(o,c,t){var s=Array(Math.max(0,o));c=u(c,t,1);for(var r=0;r<o;r++)s[r]=c(r);return s}module.exports=a;
2
2
  //# sourceMappingURL=index.cjs137.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const s=require("./index.cjs38.js"),v=require("./index.cjs220.js");function c(e,r,t){r=v(r);var i=r.length;if(!i)return s(t)?t.call(e):t;for(var u=0;u<i;u++){var n=e?.[r[u]];n===void 0&&(n=t,u=i),e=s(n)?n.call(e):n}return e}module.exports=c;
1
+ "use strict";const s=require("./index.cjs38.js"),v=require("./index.cjs228.js");function c(e,r,t){r=v(r);var i=r.length;if(!i)return s(t)?t.call(e):t;for(var u=0;u<i;u++){var n=e?.[r[u]];n===void 0&&(n=t,u=i),e=s(n)?n.call(e):n}return e}module.exports=c;
2
2
  //# sourceMappingURL=index.cjs141.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const i=require("./index.cjs211.js");function n(c,a){var e=function(s){var r=e.cache,t=""+(a?a.apply(this,arguments):s);return i(r,t)||(r[t]=c.apply(this,arguments)),r[t]};return e.cache={},e}module.exports=n;
1
+ "use strict";const i=require("./index.cjs219.js");function n(c,a){var e=function(s){var r=e.cache,t=""+(a?a.apply(this,arguments):s);return i(r,t)||(r[t]=c.apply(this,arguments)),r[t]};return e.cache={},e}module.exports=n;
2
2
  //# sourceMappingURL=index.cjs144.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs79.js");var t=e.__require();exports.jsxRuntimeExports=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs81.js");var t=e.__require();exports.jsxRuntimeExports=t;
2
2
  //# sourceMappingURL=index.cjs15.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const y=require("./index.cjs222.js"),c=require("./index.cjs116.js");function k(e,n,u){n=y(n,u);for(var t=c(e),r,s=0,f=t.length;s<f;s++)if(r=t[s],n(e[r],r,e))return r}module.exports=k;
1
+ "use strict";const y=require("./index.cjs230.js"),c=require("./index.cjs116.js");function k(e,n,u){n=y(n,u);for(var t=c(e),r,s=0,f=t.length;s<f;s++)if(r=t[s],n(e[r],r,e))return r}module.exports=k;
2
2
  //# sourceMappingURL=index.cjs152.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("./index.cjs230.js"),r=e(1);module.exports=r;
1
+ "use strict";const e=require("./index.cjs238.js"),r=e(1);module.exports=r;
2
2
  //# sourceMappingURL=index.cjs153.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("./index.cjs230.js"),t=e(-1);module.exports=t;
1
+ "use strict";const e=require("./index.cjs238.js"),t=e(-1);module.exports=t;
2
2
  //# sourceMappingURL=index.cjs154.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const l=require("./index.cjs222.js"),t=require("./index.cjs213.js");function v(e,u,o,c){o=l(o,c,1);for(var h=o(u),r=0,n=t(e);r<n;){var s=Math.floor((r+n)/2);o(e[s])<h?r=s+1:n=s}return r}module.exports=v;
1
+ "use strict";const l=require("./index.cjs230.js"),t=require("./index.cjs221.js");function v(e,u,o,c){o=l(o,c,1);for(var h=o(u),r=0,n=t(e);r<n;){var s=Math.floor((r+n)/2);o(e[s])<h?r=s+1:n=s}return r}module.exports=v;
2
2
  //# sourceMappingURL=index.cjs155.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("./index.cjs155.js"),r=require("./index.cjs153.js"),n=require("./index.cjs231.js"),t=n(1,r,e);module.exports=t;
1
+ "use strict";const e=require("./index.cjs155.js"),r=require("./index.cjs153.js"),n=require("./index.cjs239.js"),t=n(1,r,e);module.exports=t;
2
2
  //# sourceMappingURL=index.cjs156.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("./index.cjs154.js"),t=require("./index.cjs231.js"),n=t(-1,e);module.exports=n;
1
+ "use strict";const e=require("./index.cjs154.js"),t=require("./index.cjs239.js"),n=t(-1,e);module.exports=n;
2
2
  //# sourceMappingURL=index.cjs157.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const s=require("./index.cjs232.js"),d=require("./index.cjs153.js"),u=require("./index.cjs152.js");function c(e,i,n){var t=s(e)?d:u,r=t(e,i,n);if(r!==void 0&&r!==-1)return e[r]}module.exports=c;
1
+ "use strict";const s=require("./index.cjs240.js"),d=require("./index.cjs153.js"),u=require("./index.cjs152.js");function c(e,i,n){var t=s(e)?d:u,r=t(e,i,n);if(r!==void 0&&r!==-1)return e[r]}module.exports=c;
2
2
  //# sourceMappingURL=index.cjs158.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react"),g=require("./index.cjs28.js"),m=require("./index.cjs237.js"),v=require("./index.cjs238.js"),y=require("./index.cjs239.js"),E=require("./index.cjs240.js");function L(e){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const i=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(c,a,i.get?i:{enumerable:!0,get:()=>e[a]})}}return c.default=e,Object.freeze(c)}const s=L(r),d=s.createContext(null);function x(e,c){const a=r.useContext(g.MountedMapsContext),[i,M]=r.useState(null),u=r.useRef(),{current:l}=r.useRef({mapLib:null,map:null});r.useEffect(()=>{const h=e.mapLib;let f=!0,n;return Promise.resolve(h||Promise.resolve().then(()=>require("./index.cjs32.js")).then(t=>t.Li)).then(t=>{if(!f)return;if(!t)throw new Error("Invalid mapLib");const o="Map"in t?t:t.default;if(!o.Map)throw new Error("Invalid mapLib");E(o,e),e.reuseMaps&&(n=m.reuse(e,u.current)),n||(n=new m(o.Map,e,u.current)),l.map=v(n),l.mapLib=o,M(n),a?.onMapMount(l.map,e.id)}).catch(t=>{const{onError:o}=e;o?o({type:"error",target:null,originalEvent:null,error:t}):console.error(t)}),()=>{f=!1,n&&(a?.onMapUnmount(e.id),e.reuseMaps?n.recycle():n.destroy())}},[]),y(()=>{i&&i.setProps(e)}),r.useImperativeHandle(c,()=>l.map,[i]);const b=r.useMemo(()=>({position:"relative",width:"100%",height:"100%",...e.style}),[e.style]),p={height:"100%"};return s.createElement("div",{id:e.id,ref:u,style:b},i&&s.createElement(d.Provider,{value:l},s.createElement("div",{"mapboxgl-children":"",style:p},e.children)))}const w=s.forwardRef(x);exports.Map=w;exports.MapContext=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react"),g=require("./index.cjs28.js"),m=require("./index.cjs210.js"),v=require("./index.cjs211.js"),y=require("./index.cjs212.js"),E=require("./index.cjs213.js");function L(e){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const i=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(c,a,i.get?i:{enumerable:!0,get:()=>e[a]})}}return c.default=e,Object.freeze(c)}const s=L(r),d=s.createContext(null);function x(e,c){const a=r.useContext(g.MountedMapsContext),[i,M]=r.useState(null),u=r.useRef(),{current:l}=r.useRef({mapLib:null,map:null});r.useEffect(()=>{const h=e.mapLib;let f=!0,n;return Promise.resolve(h||Promise.resolve().then(()=>require("./index.cjs32.js")).then(t=>t.Li)).then(t=>{if(!f)return;if(!t)throw new Error("Invalid mapLib");const o="Map"in t?t:t.default;if(!o.Map)throw new Error("Invalid mapLib");E(o,e),e.reuseMaps&&(n=m.reuse(e,u.current)),n||(n=new m(o.Map,e,u.current)),l.map=v(n),l.mapLib=o,M(n),a?.onMapMount(l.map,e.id)}).catch(t=>{const{onError:o}=e;o?o({type:"error",target:null,originalEvent:null,error:t}):console.error(t)}),()=>{f=!1,n&&(a?.onMapUnmount(e.id),e.reuseMaps?n.recycle():n.destroy())}},[]),y(()=>{i&&i.setProps(e)}),r.useImperativeHandle(c,()=>l.map,[i]);const b=r.useMemo(()=>({position:"relative",width:"100%",height:"100%",...e.style}),[e.style]),p={height:"100%"};return s.createElement("div",{id:e.id,ref:u,style:b},i&&s.createElement(d.Provider,{value:l},s.createElement("div",{"mapboxgl-children":"",style:p},e.children)))}const w=s.forwardRef(x);exports.Map=w;exports.MapContext=d;
2
2
  //# sourceMappingURL=index.cjs16.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const t=require("./index.cjs223.js"),u=require("./index.cjs232.js"),f=require("./index.cjs116.js");function h(n,i,c){i=t(i,c);var r,e;if(u(n))for(r=0,e=n.length;r<e;r++)i(n[r],r,n);else{var s=f(n);for(r=0,e=s.length;r<e;r++)i(n[s[r]],s[r],n)}return n}module.exports=h;
1
+ "use strict";const t=require("./index.cjs231.js"),u=require("./index.cjs240.js"),f=require("./index.cjs116.js");function h(n,i,c){i=t(i,c);var r,e;if(u(n))for(r=0,e=n.length;r<e;r++)i(n[r],r,n);else{var s=f(n);for(r=0,e=s.length;r<e;r++)i(n[s[r]],s[r],n)}return n}module.exports=h;
2
2
  //# sourceMappingURL=index.cjs160.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const l=require("./index.cjs222.js"),n=require("./index.cjs232.js"),q=require("./index.cjs116.js");function v(r,t,k){t=l(t,k);for(var u=!n(r)&&q(r),c=(u||r).length,a=Array(c),s=0;s<c;s++){var e=u?u[s]:s;a[s]=t(r[e],e,r)}return a}module.exports=v;
1
+ "use strict";const l=require("./index.cjs230.js"),n=require("./index.cjs240.js"),q=require("./index.cjs116.js");function v(r,t,k){t=l(t,k);for(var u=!n(r)&&q(r),c=(u||r).length,a=Array(c),s=0;s<c;s++){var e=u?u[s]:s;a[s]=t(r[e],e,r)}return a}module.exports=v;
2
2
  //# sourceMappingURL=index.cjs161.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("./index.cjs233.js"),c=e(1);module.exports=c;
1
+ "use strict";const e=require("./index.cjs241.js"),c=e(1);module.exports=c;
2
2
  //# sourceMappingURL=index.cjs162.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("./index.cjs233.js"),t=e(-1);module.exports=t;
1
+ "use strict";const e=require("./index.cjs241.js"),t=e(-1);module.exports=t;
2
2
  //# sourceMappingURL=index.cjs163.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const i=require("./index.cjs222.js"),o=require("./index.cjs160.js");function f(n,r,u){var s=[];return r=i(r,u),o(n,function(t,c,e){r(t,c,e)&&s.push(t)}),s}module.exports=f;
1
+ "use strict";const i=require("./index.cjs230.js"),o=require("./index.cjs160.js");function f(n,r,u){var s=[];return r=i(r,u),o(n,function(t,c,e){r(t,c,e)&&s.push(t)}),s}module.exports=f;
2
2
  //# sourceMappingURL=index.cjs164.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const c=require("./index.cjs164.js"),n=require("./index.cjs148.js"),i=require("./index.cjs222.js");function s(e,r,t){return c(e,n(i(r)),t)}module.exports=s;
1
+ "use strict";const c=require("./index.cjs164.js"),n=require("./index.cjs148.js"),i=require("./index.cjs230.js");function s(e,r,t){return c(e,n(i(r)),t)}module.exports=s;
2
2
  //# sourceMappingURL=index.cjs165.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const v=require("./index.cjs222.js"),a=require("./index.cjs232.js"),c=require("./index.cjs116.js");function i(r,s,n){s=v(s,n);for(var t=!a(r)&&c(r),f=(t||r).length,e=0;e<f;e++){var u=t?t[e]:e;if(!s(r[u],u,r))return!1}return!0}module.exports=i;
1
+ "use strict";const v=require("./index.cjs230.js"),a=require("./index.cjs240.js"),c=require("./index.cjs116.js");function i(r,s,n){s=v(s,n);for(var t=!a(r)&&c(r),f=(t||r).length,e=0;e<f;e++){var u=t?t[e]:e;if(!s(r[u],u,r))return!1}return!0}module.exports=i;
2
2
  //# sourceMappingURL=index.cjs166.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const a=require("./index.cjs222.js"),c=require("./index.cjs232.js"),i=require("./index.cjs116.js");function k(r,e,n){e=a(e,n);for(var t=!c(r)&&i(r),f=(t||r).length,s=0;s<f;s++){var u=t?t[s]:s;if(e(r[u],u,r))return!0}return!1}module.exports=k;
1
+ "use strict";const a=require("./index.cjs230.js"),c=require("./index.cjs240.js"),i=require("./index.cjs116.js");function k(r,e,n){e=a(e,n);for(var t=!c(r)&&i(r),f=(t||r).length,s=0;s<f;s++){var u=t?t[s]:s;if(e(r[u],u,r))return!0}return!1}module.exports=k;
2
2
  //# sourceMappingURL=index.cjs167.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const s=require("./index.cjs232.js"),n=require("./index.cjs118.js"),u=require("./index.cjs156.js");function c(e,r,i,t){return s(e)||(e=n(e)),(typeof i!="number"||t)&&(i=0),u(e,r,i)>=0}module.exports=c;
1
+ "use strict";const s=require("./index.cjs240.js"),n=require("./index.cjs118.js"),u=require("./index.cjs156.js");function c(e,r,i,t){return s(e)||(e=n(e)),(typeof i!="number"||t)&&(i=0),u(e,r,i)>=0}module.exports=c;
2
2
  //# sourceMappingURL=index.cjs168.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const a=require("react"),D=require("react-dom"),P=require("./index.cjs241.js"),q=require("./index.cjs16.js"),C=require("./index.cjs242.js"),k=require("./index.cjs243.js");function N(t){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const s in t)if(s!=="default"){const l=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(i,s,l.get?l:{enumerable:!0,get:()=>t[s]})}}return i.default=t,Object.freeze(i)}const O=N(a);a.memo(a.forwardRef((t,i)=>{const{map:s,mapLib:l}=a.useContext(q.MapContext),c=a.useRef({props:t}),e=a.useMemo(()=>{let g=!1;O.Children.forEach(t.children,n=>{n&&(g=!0)});const y={...t,element:g?document.createElement("div"):void 0},o=new l.Marker(y);return o.setLngLat([t.longitude,t.latitude]),o.getElement().addEventListener("click",n=>{c.current.props.onClick?.({type:"click",target:o,originalEvent:n})}),o.on("dragstart",n=>{const r=n;r.lngLat=e.getLngLat(),c.current.props.onDragStart?.(r)}),o.on("drag",n=>{const r=n;r.lngLat=e.getLngLat(),c.current.props.onDrag?.(r)}),o.on("dragend",n=>{const r=n;r.lngLat=e.getLngLat(),c.current.props.onDragEnd?.(r)}),o},[]);a.useEffect(()=>(e.addTo(s.getMap()),()=>{e.remove()}),[]);const{longitude:f,latitude:m,offset:u,style:d,draggable:p=!1,popup:L=null,rotation:E=0,rotationAlignment:R="auto",pitchAlignment:b="auto"}=t;a.useEffect(()=>{P.applyReactStyle(e.getElement(),d)},[d]),a.useImperativeHandle(i,()=>e,[]);const v=c.current.props;(e.getLngLat().lng!==f||e.getLngLat().lat!==m)&&e.setLngLat([f,m]),u&&!C.arePointsEqual(e.getOffset(),u)&&e.setOffset(u),e.isDraggable()!==p&&e.setDraggable(p),e.getRotation()!==E&&e.setRotation(E),e.getRotationAlignment()!==R&&e.setRotationAlignment(R),e.getPitchAlignment()!==b&&e.setPitchAlignment(b),e.getPopup()!==L&&e.setPopup(L);const h=k.compareClassNames(v.className,t.className);if(h)for(const g of h)e.toggleClassName(g);return c.current.props=t,D.createPortal(t.children,e.getElement())}));
1
+ "use strict";const a=require("react"),D=require("react-dom"),P=require("./index.cjs214.js"),q=require("./index.cjs16.js"),C=require("./index.cjs215.js"),k=require("./index.cjs216.js");function N(t){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const s in t)if(s!=="default"){const l=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(i,s,l.get?l:{enumerable:!0,get:()=>t[s]})}}return i.default=t,Object.freeze(i)}const O=N(a);a.memo(a.forwardRef((t,i)=>{const{map:s,mapLib:l}=a.useContext(q.MapContext),c=a.useRef({props:t}),e=a.useMemo(()=>{let g=!1;O.Children.forEach(t.children,n=>{n&&(g=!0)});const y={...t,element:g?document.createElement("div"):void 0},o=new l.Marker(y);return o.setLngLat([t.longitude,t.latitude]),o.getElement().addEventListener("click",n=>{c.current.props.onClick?.({type:"click",target:o,originalEvent:n})}),o.on("dragstart",n=>{const r=n;r.lngLat=e.getLngLat(),c.current.props.onDragStart?.(r)}),o.on("drag",n=>{const r=n;r.lngLat=e.getLngLat(),c.current.props.onDrag?.(r)}),o.on("dragend",n=>{const r=n;r.lngLat=e.getLngLat(),c.current.props.onDragEnd?.(r)}),o},[]);a.useEffect(()=>(e.addTo(s.getMap()),()=>{e.remove()}),[]);const{longitude:f,latitude:m,offset:u,style:d,draggable:p=!1,popup:L=null,rotation:E=0,rotationAlignment:R="auto",pitchAlignment:b="auto"}=t;a.useEffect(()=>{P.applyReactStyle(e.getElement(),d)},[d]),a.useImperativeHandle(i,()=>e,[]);const v=c.current.props;(e.getLngLat().lng!==f||e.getLngLat().lat!==m)&&e.setLngLat([f,m]),u&&!C.arePointsEqual(e.getOffset(),u)&&e.setOffset(u),e.isDraggable()!==p&&e.setDraggable(p),e.getRotation()!==E&&e.setRotation(E),e.getRotationAlignment()!==R&&e.setRotationAlignment(R),e.getPitchAlignment()!==b&&e.setPitchAlignment(b),e.getPopup()!==L&&e.setPopup(L);const h=k.compareClassNames(v.className,t.className);if(h)for(const g of h)e.toggleClassName(g);return c.current.props=t,D.createPortal(t.children,e.getElement())}));
2
2
  //# sourceMappingURL=index.cjs17.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const p=require("./index.cjs232.js"),a=require("./index.cjs118.js"),m=require("./index.cjs222.js"),q=require("./index.cjs160.js");function I(n,u,s){var r=-1/0,f=-1/0,i,t;if(u==null||typeof u=="number"&&typeof n[0]!="object"&&n!=null){n=p(n)?n:a(n);for(var e=0,c=n.length;e<c;e++)i=n[e],i!=null&&i>r&&(r=i)}else u=m(u,s),q(n,function(l,y,o){t=u(l,y,o),(t>f||t===-1/0&&r===-1/0)&&(r=l,f=t)});return r}module.exports=I;
1
+ "use strict";const p=require("./index.cjs240.js"),a=require("./index.cjs118.js"),m=require("./index.cjs230.js"),q=require("./index.cjs160.js");function I(n,u,s){var r=-1/0,f=-1/0,i,t;if(u==null||typeof u=="number"&&typeof n[0]!="object"&&n!=null){n=p(n)?n:a(n);for(var e=0,c=n.length;e<c;e++)i=n[e],i!=null&&i>r&&(r=i)}else u=m(u,s),q(n,function(l,y,o){t=u(l,y,o),(t>f||t===-1/0&&r===-1/0)&&(r=l,f=t)});return r}module.exports=I;
2
2
  //# sourceMappingURL=index.cjs171.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const p=require("./index.cjs232.js"),m=require("./index.cjs118.js"),q=require("./index.cjs222.js"),I=require("./index.cjs160.js");function a(n,u,s){var i=1/0,f=1/0,r,t;if(u==null||typeof u=="number"&&typeof n[0]!="object"&&n!=null){n=p(n)?n:m(n);for(var e=0,c=n.length;e<c;e++)r=n[e],r!=null&&r<i&&(i=r)}else u=q(u,s),I(n,function(l,y,o){t=u(l,y,o),(t<f||t===1/0&&i===1/0)&&(i=l,f=t)});return i}module.exports=a;
1
+ "use strict";const p=require("./index.cjs240.js"),m=require("./index.cjs118.js"),q=require("./index.cjs230.js"),I=require("./index.cjs160.js");function a(n,u,s){var i=1/0,f=1/0,r,t;if(u==null||typeof u=="number"&&typeof n[0]!="object"&&n!=null){n=p(n)?n:m(n);for(var e=0,c=n.length;e<c;e++)r=n[e],r!=null&&r<i&&(i=r)}else u=q(u,s),I(n,function(l,y,o){t=u(l,y,o),(t<f||t===1/0&&i===1/0)&&(i=l,f=t)});return i}module.exports=a;
2
2
  //# sourceMappingURL=index.cjs172.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const n=require("./index.cjs232.js"),h=require("./index.cjs118.js"),m=require("./index.cjs213.js"),i=require("./index.cjs138.js"),o=require("./index.cjs180.js");function q(r,t,l){if(t==null||l)return n(r)||(r=h(r)),r[i(r.length-1)];var e=o(r),s=m(e);t=Math.max(Math.min(t,s),0);for(var c=s-1,a=0;a<t;a++){var u=i(a,c),v=e[a];e[a]=e[u],e[u]=v}return e.slice(0,t)}module.exports=q;
1
+ "use strict";const n=require("./index.cjs240.js"),h=require("./index.cjs118.js"),m=require("./index.cjs221.js"),i=require("./index.cjs138.js"),o=require("./index.cjs180.js");function q(r,t,l){if(t==null||l)return n(r)||(r=h(r)),r[i(r.length-1)];var e=o(r),s=m(e);t=Math.max(Math.min(t,s),0);for(var c=s-1,a=0;a<t;a++){var u=i(a,c),v=e[a];e[a]=e[u],e[u]=v}return e.slice(0,t)}module.exports=q;
2
2
  //# sourceMappingURL=index.cjs174.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const s=require("./index.cjs222.js"),a=require("./index.cjs169.js"),d=require("./index.cjs161.js");function f(u,t,c){var o=0;return t=s(t,c),a(d(u,function(i,n,r){return{value:i,index:o++,criteria:t(i,n,r)}}).sort(function(i,n){var r=i.criteria,e=n.criteria;if(r!==e){if(r>e||r===void 0)return 1;if(r<e||e===void 0)return-1}return i.index-n.index}),"value")}module.exports=f;
1
+ "use strict";const s=require("./index.cjs230.js"),a=require("./index.cjs169.js"),d=require("./index.cjs161.js");function f(u,t,c){var o=0;return t=s(t,c),a(d(u,function(i,n,r){return{value:i,index:o++,criteria:t(i,n,r)}}).sort(function(i,n){var r=i.criteria,e=n.criteria;if(r!==e){if(r>e||r===void 0)return 1;if(r<e||e===void 0)return-1}return i.index-n.index}),"value")}module.exports=f;
2
2
  //# sourceMappingURL=index.cjs175.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const c=require("./index.cjs234.js"),i=require("./index.cjs211.js"),n=c(function(o,r,s){i(o,s)?o[s].push(r):o[s]=[r]});module.exports=n;
1
+ "use strict";const c=require("./index.cjs242.js"),i=require("./index.cjs219.js"),n=c(function(o,r,s){i(o,s)?o[s].push(r):o[s]=[r]});module.exports=n;
2
2
  //# sourceMappingURL=index.cjs176.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const o=require("./index.cjs234.js"),r=o(function(t,e,n){t[n]=e});module.exports=r;
1
+ "use strict";const o=require("./index.cjs242.js"),r=o(function(t,e,n){t[n]=e});module.exports=r;
2
2
  //# sourceMappingURL=index.cjs177.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const n=require("./index.cjs234.js"),s=require("./index.cjs211.js"),t=n(function(o,e,c){s(o,c)?o[c]++:o[c]=1});module.exports=t;
1
+ "use strict";const n=require("./index.cjs242.js"),s=require("./index.cjs219.js"),t=n(function(o,e,c){s(o,c)?o[c]++:o[c]=1});module.exports=t;
2
2
  //# sourceMappingURL=index.cjs178.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const s=require("./index.cjs234.js"),u=s(function(t,r,o){t[o?0:1].push(r)},!0);module.exports=u;
1
+ "use strict";const s=require("./index.cjs242.js"),u=s(function(t,r,o){t[o?0:1].push(r)},!0);module.exports=u;
2
2
  //# sourceMappingURL=index.cjs179.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const f=require("react-dom"),a=require("react"),m=require("./index.cjs241.js"),d=require("./index.cjs16.js"),g=require("./index.cjs242.js"),h=require("./index.cjs243.js");a.memo(a.forwardRef((e,l)=>{const{map:u,mapLib:r}=a.useContext(d.MapContext),i=a.useMemo(()=>document.createElement("div"),[]),s=a.useRef({props:e}),t=a.useMemo(()=>{const n={...e},o=new r.Popup(n);return o.setLngLat([e.longitude,e.latitude]),o.once("open",c=>{s.current.props.onOpen?.(c)}),o},[]);if(a.useEffect(()=>{const n=o=>{s.current.props.onClose?.(o)};return t.on("close",n),t.setDOMContent(i).addTo(u.getMap()),()=>{t.off("close",n),t.isOpen()&&t.remove()}},[]),a.useEffect(()=>{m.applyReactStyle(t.getElement(),e.style)},[e.style]),a.useImperativeHandle(l,()=>t,[]),t.isOpen()){const n=s.current.props;(t.getLngLat().lng!==e.longitude||t.getLngLat().lat!==e.latitude)&&t.setLngLat([e.longitude,e.latitude]),e.offset&&!g.deepEqual(n.offset,e.offset)&&t.setOffset(e.offset),(n.anchor!==e.anchor||n.maxWidth!==e.maxWidth)&&(t.options.anchor=e.anchor,t.setMaxWidth(e.maxWidth));const o=h.compareClassNames(n.className,e.className);if(o)for(const c of o)t.toggleClassName(c);s.current.props=e}return f.createPortal(e.children,i)}));
1
+ "use strict";const f=require("react-dom"),a=require("react"),m=require("./index.cjs214.js"),d=require("./index.cjs16.js"),g=require("./index.cjs215.js"),h=require("./index.cjs216.js");a.memo(a.forwardRef((e,l)=>{const{map:u,mapLib:r}=a.useContext(d.MapContext),i=a.useMemo(()=>document.createElement("div"),[]),s=a.useRef({props:e}),t=a.useMemo(()=>{const n={...e},o=new r.Popup(n);return o.setLngLat([e.longitude,e.latitude]),o.once("open",c=>{s.current.props.onOpen?.(c)}),o},[]);if(a.useEffect(()=>{const n=o=>{s.current.props.onClose?.(o)};return t.on("close",n),t.setDOMContent(i).addTo(u.getMap()),()=>{t.off("close",n),t.isOpen()&&t.remove()}},[]),a.useEffect(()=>{m.applyReactStyle(t.getElement(),e.style)},[e.style]),a.useImperativeHandle(l,()=>t,[]),t.isOpen()){const n=s.current.props;(t.getLngLat().lng!==e.longitude||t.getLngLat().lat!==e.latitude)&&t.setLngLat([e.longitude,e.latitude]),e.offset&&!g.deepEqual(n.offset,e.offset)&&t.setOffset(e.offset),(n.anchor!==e.anchor||n.maxWidth!==e.maxWidth)&&(t.options.anchor=e.anchor,t.setMaxWidth(e.maxWidth));const o=h.compareClassNames(n.className,e.className);if(o)for(const c of o)t.toggleClassName(c);s.current.props=e}return f.createPortal(e.children,i)}));
2
2
  //# sourceMappingURL=index.cjs18.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("./index.cjs108.js"),u=require("./index.cjs37.js"),t=require("./index.cjs100.js"),i=require("./index.cjs232.js"),f=require("./index.cjs161.js"),n=require("./index.cjs131.js"),s=require("./index.cjs118.js");var c=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function d(r){return r?e(r)?u.slice.call(r):t(r)?r.match(c):i(r)?f(r,n):s(r):[]}module.exports=d;
1
+ "use strict";const e=require("./index.cjs108.js"),u=require("./index.cjs37.js"),t=require("./index.cjs100.js"),i=require("./index.cjs240.js"),f=require("./index.cjs161.js"),n=require("./index.cjs131.js"),s=require("./index.cjs118.js");var c=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function d(r){return r?e(r)?u.slice.call(r):t(r)?r.match(c):i(r)?f(r,n):s(r):[]}module.exports=d;
2
2
  //# sourceMappingURL=index.cjs180.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const r=require("./index.cjs232.js"),t=require("./index.cjs116.js");function n(e){return e==null?0:r(e)?e.length:t(e).length}module.exports=n;
1
+ "use strict";const r=require("./index.cjs240.js"),t=require("./index.cjs116.js");function n(e){return e==null?0:r(e)?e.length:t(e).length}module.exports=n;
2
2
  //# sourceMappingURL=index.cjs181.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const n=require("./index.cjs229.js");function r(t,e){return n(t,e,!1)}module.exports=r;
1
+ "use strict";const n=require("./index.cjs237.js");function r(t,e){return n(t,e,!1)}module.exports=r;
2
2
  //# sourceMappingURL=index.cjs187.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const p=require("./index.cjs98.js"),_=require("./index.cjs222.js"),b=require("./index.cjs213.js"),g=require("./index.cjs168.js");function i(o,h,s,r){p(h)||(r=s,s=h,h=!1),s!=null&&(s=_(s,r));for(var f=[],q=[],u=0,l=b(o);u<l;u++){var n=o[u],c=s?s(n,u,o):n;h&&!s?((!u||q!==c)&&f.push(n),q=c):s?g(q,c)||(q.push(c),f.push(n)):g(f,n)||f.push(n)}return f}module.exports=i;
1
+ "use strict";const p=require("./index.cjs98.js"),_=require("./index.cjs230.js"),b=require("./index.cjs221.js"),g=require("./index.cjs168.js");function i(o,h,s,r){p(h)||(r=s,s=h,h=!1),s!=null&&(s=_(s,r));for(var f=[],q=[],u=0,l=b(o);u<l;u++){var n=o[u],c=s?s(n,u,o):n;h&&!s?((!u||q!==c)&&f.push(n),q=c):s?g(q,c)||(q.push(c),f.push(n)):g(f,n)||f.push(n)}return f}module.exports=i;
2
2
  //# sourceMappingURL=index.cjs188.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const c=require("./index.cjs213.js"),o=require("./index.cjs168.js");function g(s){for(var e=[],u=arguments.length,n=0,a=c(s);n<a;n++){var t=s[n];if(!o(e,t)){var r;for(r=1;r<u&&o(arguments[r],t);r++);r===u&&e.push(t)}}return e}module.exports=g;
1
+ "use strict";const c=require("./index.cjs221.js"),o=require("./index.cjs168.js");function g(s){for(var e=[],u=arguments.length,n=0,a=c(s);n<a;n++){var t=s[n];if(!o(e,t)){var r;for(r=1;r<u&&o(arguments[r],t);r++);r===u&&e.push(t)}}return e}module.exports=g;
2
2
  //# sourceMappingURL=index.cjs189.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("react"),i=require("./index.cjs241.js"),r=require("./index.cjs30.js");function l(t){const n=r.useControl(({mapLib:o})=>new o.AttributionControl(t),{position:t.position});return e.useEffect(()=>{i.applyReactStyle(n._container,t.style)},[t.style]),null}e.memo(l);
1
+ "use strict";const e=require("react"),i=require("./index.cjs214.js"),r=require("./index.cjs30.js");function l(t){const n=r.useControl(({mapLib:o})=>new o.AttributionControl(t),{position:t.position});return e.useEffect(()=>{i.applyReactStyle(n._container,t.style)},[t.style]),null}e.memo(l);
2
2
  //# sourceMappingURL=index.cjs19.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const n=require("./index.cjs171.js"),s=require("./index.cjs213.js"),c=require("./index.cjs169.js");function o(t){for(var e=t&&n(t,s).length||0,u=Array(e),r=0;r<e;r++)u[r]=c(t,r);return u}module.exports=o;
1
+ "use strict";const n=require("./index.cjs171.js"),s=require("./index.cjs221.js"),c=require("./index.cjs169.js");function o(t){for(var e=t&&n(t,s).length||0,u=Array(e),r=0;r<e;r++)u[r]=c(t,r);return u}module.exports=o;
2
2
  //# sourceMappingURL=index.cjs190.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const c=require("./index.cjs213.js");function u(r,n){for(var t={},e=0,o=c(r);e<o;e++)n?t[r[e]]=n[e]:t[r[e][0]]=r[e][1];return t}module.exports=u;
1
+ "use strict";const c=require("./index.cjs221.js");function u(r,n){for(var t={},e=0,o=c(r);e<o;e++)n?t[r[e]]=n[e]:t[r[e][0]]=r[e][1];return t}module.exports=u;
2
2
  //# sourceMappingURL=index.cjs191.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function e(r){if(!r)throw new Error("coord is required");if(!Array.isArray(r)){if(r.type==="Feature"&&r.geometry!==null&&r.geometry.type==="Point")return[...r.geometry.coordinates];if(r.type==="Point")return[...r.coordinates]}if(Array.isArray(r)&&r.length>=2&&!Array.isArray(r[0])&&!Array.isArray(r[1]))return[...r];throw new Error("coord must be GeoJSON Point or an Array of numbers")}function t(r){return r.type==="Feature"?r.geometry:r}exports.getCoord=e;exports.getGeom=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function G(e,o,r){if(e!==null)for(var t,l,a,c,u,i,s,y=0,f=0,h,p=e.type,g=p==="FeatureCollection",v=p==="Feature",w=g?e.features.length:1,C=0;C<w;C++){s=g?e.features[C].geometry:v?e.geometry:e,h=s?s.type==="GeometryCollection":!1,u=h?s.geometries.length:1;for(var b=0;b<u;b++){var n=0,M=0;if(c=h?s.geometries[b]:s,c!==null){i=c.coordinates;var P=c.type;switch(y=r&&(P==="Polygon"||P==="MultiPolygon")?1:0,P){case null:break;case"Point":if(o(i,f,C,n,M)===!1)return!1;f++,n++;break;case"LineString":case"MultiPoint":for(t=0;t<i.length;t++){if(o(i[t],f,C,n,M)===!1)return!1;f++,P==="MultiPoint"&&n++}P==="LineString"&&n++;break;case"Polygon":case"MultiLineString":for(t=0;t<i.length;t++){for(l=0;l<i[t].length-y;l++){if(o(i[t][l],f,C,n,M)===!1)return!1;f++}P==="MultiLineString"&&n++,P==="Polygon"&&M++}P==="Polygon"&&n++;break;case"MultiPolygon":for(t=0;t<i.length;t++){for(M=0,l=0;l<i[t].length;l++){for(a=0;a<i[t][l].length-y;a++){if(o(i[t][l][a],f,C,n,M)===!1)return!1;f++}M++}n++}break;case"GeometryCollection":for(t=0;t<c.geometries.length;t++)if(G(c.geometries[t],o,r)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function S(e,o){if(e.type==="Feature")o(e,0);else if(e.type==="FeatureCollection")for(var r=0;r<e.features.length&&o(e.features[r],r)!==!1;r++);}function E(e,o){var r,t,l,a,c,u,i,s,y,f,h=0,p=e.type==="FeatureCollection",g=e.type==="Feature",v=p?e.features.length:1;for(r=0;r<v;r++){for(u=p?e.features[r].geometry:g?e.geometry:e,s=p?e.features[r].properties:g?e.properties:{},y=p?e.features[r].bbox:g?e.bbox:void 0,f=p?e.features[r].id:g?e.id:void 0,i=u?u.type==="GeometryCollection":!1,c=i?u.geometries.length:1,l=0;l<c;l++){if(a=i?u.geometries[l]:u,a===null){if(o(null,h,s,y,f)===!1)return!1;continue}switch(a.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":{if(o(a,h,s,y,f)===!1)return!1;break}case"GeometryCollection":{for(t=0;t<a.geometries.length;t++)if(o(a.geometries[t],h,s,y,f)===!1)return!1;break}default:throw new Error("Unknown Geometry Type")}}h++}}exports.coordEach=G;exports.featureEach=S;exports.geomEach=E;
2
2
  //# sourceMappingURL=index.cjs194.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs194.js","sources":["../../../node_modules/@turf/invariant/dist/esm/index.js"],"sourcesContent":["// index.ts\nimport { isNumber } from \"@turf/helpers\";\nfunction getCoord(coord) {\n if (!coord) {\n throw new Error(\"coord is required\");\n }\n if (!Array.isArray(coord)) {\n if (coord.type === \"Feature\" && coord.geometry !== null && coord.geometry.type === \"Point\") {\n return [...coord.geometry.coordinates];\n }\n if (coord.type === \"Point\") {\n return [...coord.coordinates];\n }\n }\n if (Array.isArray(coord) && coord.length >= 2 && !Array.isArray(coord[0]) && !Array.isArray(coord[1])) {\n return [...coord];\n }\n throw new Error(\"coord must be GeoJSON Point or an Array of numbers\");\n}\nfunction getCoords(coords) {\n if (Array.isArray(coords)) {\n return coords;\n }\n if (coords.type === \"Feature\") {\n if (coords.geometry !== null) {\n return coords.geometry.coordinates;\n }\n } else {\n if (coords.coordinates) {\n return coords.coordinates;\n }\n }\n throw new Error(\n \"coords must be GeoJSON Feature, Geometry Object or an Array\"\n );\n}\nfunction containsNumber(coordinates) {\n if (coordinates.length > 1 && isNumber(coordinates[0]) && isNumber(coordinates[1])) {\n return true;\n }\n if (Array.isArray(coordinates[0]) && coordinates[0].length) {\n return containsNumber(coordinates[0]);\n }\n throw new Error(\"coordinates must only contain numbers\");\n}\nfunction geojsonType(value, type, name) {\n if (!type || !name) {\n throw new Error(\"type and name required\");\n }\n if (!value || value.type !== type) {\n throw new Error(\n \"Invalid input to \" + name + \": must be a \" + type + \", given \" + value.type\n );\n }\n}\nfunction featureOf(feature, type, name) {\n if (!feature) {\n throw new Error(\"No feature passed\");\n }\n if (!name) {\n throw new Error(\".featureOf() requires a name\");\n }\n if (!feature || feature.type !== \"Feature\" || !feature.geometry) {\n throw new Error(\n \"Invalid input to \" + name + \", Feature with geometry required\"\n );\n }\n if (!feature.geometry || feature.geometry.type !== type) {\n throw new Error(\n \"Invalid input to \" + name + \": must be a \" + type + \", given \" + feature.geometry.type\n );\n }\n}\nfunction collectionOf(featureCollection, type, name) {\n if (!featureCollection) {\n throw new Error(\"No featureCollection passed\");\n }\n if (!name) {\n throw new Error(\".collectionOf() requires a name\");\n }\n if (!featureCollection || featureCollection.type !== \"FeatureCollection\") {\n throw new Error(\n \"Invalid input to \" + name + \", FeatureCollection required\"\n );\n }\n for (const feature of featureCollection.features) {\n if (!feature || feature.type !== \"Feature\" || !feature.geometry) {\n throw new Error(\n \"Invalid input to \" + name + \", Feature with geometry required\"\n );\n }\n if (!feature.geometry || feature.geometry.type !== type) {\n throw new Error(\n \"Invalid input to \" + name + \": must be a \" + type + \", given \" + feature.geometry.type\n );\n }\n }\n}\nfunction getGeom(geojson) {\n if (geojson.type === \"Feature\") {\n return geojson.geometry;\n }\n return geojson;\n}\nfunction getType(geojson, _name) {\n if (geojson.type === \"FeatureCollection\") {\n return \"FeatureCollection\";\n }\n if (geojson.type === \"GeometryCollection\") {\n return \"GeometryCollection\";\n }\n if (geojson.type === \"Feature\" && geojson.geometry !== null) {\n return geojson.geometry.type;\n }\n return geojson.type;\n}\nexport {\n collectionOf,\n containsNumber,\n featureOf,\n geojsonType,\n getCoord,\n getCoords,\n getGeom,\n getType\n};\n//# sourceMappingURL=index.js.map"],"names":["getCoord","coord","getGeom","geojson"],"mappings":"gFAEA,SAASA,EAASC,EAAO,CACvB,GAAI,CAACA,EACH,MAAM,IAAI,MAAM,mBAAmB,EAErC,GAAI,CAAC,MAAM,QAAQA,CAAK,EAAG,CACzB,GAAIA,EAAM,OAAS,WAAaA,EAAM,WAAa,MAAQA,EAAM,SAAS,OAAS,QACjF,MAAO,CAAC,GAAGA,EAAM,SAAS,WAAW,EAEvC,GAAIA,EAAM,OAAS,QACjB,MAAO,CAAC,GAAGA,EAAM,WAAW,CAEhC,CACA,GAAI,MAAM,QAAQA,CAAK,GAAKA,EAAM,QAAU,GAAK,CAAC,MAAM,QAAQA,EAAM,CAAC,CAAC,GAAK,CAAC,MAAM,QAAQA,EAAM,CAAC,CAAC,EAClG,MAAO,CAAC,GAAGA,CAAK,EAElB,MAAM,IAAI,MAAM,oDAAoD,CACtE,CAgFA,SAASC,EAAQC,EAAS,CACxB,OAAIA,EAAQ,OAAS,UACZA,EAAQ,SAEVA,CACT","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs194.js","sources":["../../../node_modules/@turf/meta/dist/esm/index.js"],"sourcesContent":["// index.js\nimport { feature, point, lineString, isObject } from \"@turf/helpers\";\nfunction coordEach(geojson, callback, excludeWrapCoord) {\n if (geojson === null) return;\n var j, k, l, geometry, stopG, coords, geometryMaybeCollection, wrapShrink = 0, coordIndex = 0, isGeometryCollection, type = geojson.type, isFeatureCollection = type === \"FeatureCollection\", isFeature = type === \"Feature\", stop = isFeatureCollection ? geojson.features.length : 1;\n for (var featureIndex = 0; featureIndex < stop; featureIndex++) {\n geometryMaybeCollection = isFeatureCollection ? geojson.features[featureIndex].geometry : isFeature ? geojson.geometry : geojson;\n isGeometryCollection = geometryMaybeCollection ? geometryMaybeCollection.type === \"GeometryCollection\" : false;\n stopG = isGeometryCollection ? geometryMaybeCollection.geometries.length : 1;\n for (var geomIndex = 0; geomIndex < stopG; geomIndex++) {\n var multiFeatureIndex = 0;\n var geometryIndex = 0;\n geometry = isGeometryCollection ? geometryMaybeCollection.geometries[geomIndex] : geometryMaybeCollection;\n if (geometry === null) continue;\n coords = geometry.coordinates;\n var geomType = geometry.type;\n wrapShrink = excludeWrapCoord && (geomType === \"Polygon\" || geomType === \"MultiPolygon\") ? 1 : 0;\n switch (geomType) {\n case null:\n break;\n case \"Point\":\n if (callback(\n coords,\n coordIndex,\n featureIndex,\n multiFeatureIndex,\n geometryIndex\n ) === false)\n return false;\n coordIndex++;\n multiFeatureIndex++;\n break;\n case \"LineString\":\n case \"MultiPoint\":\n for (j = 0; j < coords.length; j++) {\n if (callback(\n coords[j],\n coordIndex,\n featureIndex,\n multiFeatureIndex,\n geometryIndex\n ) === false)\n return false;\n coordIndex++;\n if (geomType === \"MultiPoint\") multiFeatureIndex++;\n }\n if (geomType === \"LineString\") multiFeatureIndex++;\n break;\n case \"Polygon\":\n case \"MultiLineString\":\n for (j = 0; j < coords.length; j++) {\n for (k = 0; k < coords[j].length - wrapShrink; k++) {\n if (callback(\n coords[j][k],\n coordIndex,\n featureIndex,\n multiFeatureIndex,\n geometryIndex\n ) === false)\n return false;\n coordIndex++;\n }\n if (geomType === \"MultiLineString\") multiFeatureIndex++;\n if (geomType === \"Polygon\") geometryIndex++;\n }\n if (geomType === \"Polygon\") multiFeatureIndex++;\n break;\n case \"MultiPolygon\":\n for (j = 0; j < coords.length; j++) {\n geometryIndex = 0;\n for (k = 0; k < coords[j].length; k++) {\n for (l = 0; l < coords[j][k].length - wrapShrink; l++) {\n if (callback(\n coords[j][k][l],\n coordIndex,\n featureIndex,\n multiFeatureIndex,\n geometryIndex\n ) === false)\n return false;\n coordIndex++;\n }\n geometryIndex++;\n }\n multiFeatureIndex++;\n }\n break;\n case \"GeometryCollection\":\n for (j = 0; j < geometry.geometries.length; j++)\n if (coordEach(geometry.geometries[j], callback, excludeWrapCoord) === false)\n return false;\n break;\n default:\n throw new Error(\"Unknown Geometry Type\");\n }\n }\n }\n}\nfunction coordReduce(geojson, callback, initialValue, excludeWrapCoord) {\n var previousValue = initialValue;\n coordEach(\n geojson,\n function(currentCoord, coordIndex, featureIndex, multiFeatureIndex, geometryIndex) {\n if (coordIndex === 0 && initialValue === void 0)\n previousValue = currentCoord;\n else\n previousValue = callback(\n previousValue,\n currentCoord,\n coordIndex,\n featureIndex,\n multiFeatureIndex,\n geometryIndex\n );\n },\n excludeWrapCoord\n );\n return previousValue;\n}\nfunction propEach(geojson, callback) {\n var i;\n switch (geojson.type) {\n case \"FeatureCollection\":\n for (i = 0; i < geojson.features.length; i++) {\n if (callback(geojson.features[i].properties, i) === false) break;\n }\n break;\n case \"Feature\":\n callback(geojson.properties, 0);\n break;\n }\n}\nfunction propReduce(geojson, callback, initialValue) {\n var previousValue = initialValue;\n propEach(geojson, function(currentProperties, featureIndex) {\n if (featureIndex === 0 && initialValue === void 0)\n previousValue = currentProperties;\n else\n previousValue = callback(previousValue, currentProperties, featureIndex);\n });\n return previousValue;\n}\nfunction featureEach(geojson, callback) {\n if (geojson.type === \"Feature\") {\n callback(geojson, 0);\n } else if (geojson.type === \"FeatureCollection\") {\n for (var i = 0; i < geojson.features.length; i++) {\n if (callback(geojson.features[i], i) === false) break;\n }\n }\n}\nfunction featureReduce(geojson, callback, initialValue) {\n var previousValue = initialValue;\n featureEach(geojson, function(currentFeature, featureIndex) {\n if (featureIndex === 0 && initialValue === void 0)\n previousValue = currentFeature;\n else previousValue = callback(previousValue, currentFeature, featureIndex);\n });\n return previousValue;\n}\nfunction coordAll(geojson) {\n var coords = [];\n coordEach(geojson, function(coord) {\n coords.push(coord);\n });\n return coords;\n}\nfunction geomEach(geojson, callback) {\n var i, j, g, geometry, stopG, geometryMaybeCollection, isGeometryCollection, featureProperties, featureBBox, featureId, featureIndex = 0, isFeatureCollection = geojson.type === \"FeatureCollection\", isFeature = geojson.type === \"Feature\", stop = isFeatureCollection ? geojson.features.length : 1;\n for (i = 0; i < stop; i++) {\n geometryMaybeCollection = isFeatureCollection ? geojson.features[i].geometry : isFeature ? geojson.geometry : geojson;\n featureProperties = isFeatureCollection ? geojson.features[i].properties : isFeature ? geojson.properties : {};\n featureBBox = isFeatureCollection ? geojson.features[i].bbox : isFeature ? geojson.bbox : void 0;\n featureId = isFeatureCollection ? geojson.features[i].id : isFeature ? geojson.id : void 0;\n isGeometryCollection = geometryMaybeCollection ? geometryMaybeCollection.type === \"GeometryCollection\" : false;\n stopG = isGeometryCollection ? geometryMaybeCollection.geometries.length : 1;\n for (g = 0; g < stopG; g++) {\n geometry = isGeometryCollection ? geometryMaybeCollection.geometries[g] : geometryMaybeCollection;\n if (geometry === null) {\n if (callback(\n null,\n featureIndex,\n featureProperties,\n featureBBox,\n featureId\n ) === false)\n return false;\n continue;\n }\n switch (geometry.type) {\n case \"Point\":\n case \"LineString\":\n case \"MultiPoint\":\n case \"Polygon\":\n case \"MultiLineString\":\n case \"MultiPolygon\": {\n if (callback(\n geometry,\n featureIndex,\n featureProperties,\n featureBBox,\n featureId\n ) === false)\n return false;\n break;\n }\n case \"GeometryCollection\": {\n for (j = 0; j < geometry.geometries.length; j++) {\n if (callback(\n geometry.geometries[j],\n featureIndex,\n featureProperties,\n featureBBox,\n featureId\n ) === false)\n return false;\n }\n break;\n }\n default:\n throw new Error(\"Unknown Geometry Type\");\n }\n }\n featureIndex++;\n }\n}\nfunction geomReduce(geojson, callback, initialValue) {\n var previousValue = initialValue;\n geomEach(\n geojson,\n function(currentGeometry, featureIndex, featureProperties, featureBBox, featureId) {\n if (featureIndex === 0 && initialValue === void 0)\n previousValue = currentGeometry;\n else\n previousValue = callback(\n previousValue,\n currentGeometry,\n featureIndex,\n featureProperties,\n featureBBox,\n featureId\n );\n }\n );\n return previousValue;\n}\nfunction flattenEach(geojson, callback) {\n geomEach(geojson, function(geometry, featureIndex, properties, bbox, id) {\n var type = geometry === null ? null : geometry.type;\n switch (type) {\n case null:\n case \"Point\":\n case \"LineString\":\n case \"Polygon\":\n if (callback(\n feature(geometry, properties, { bbox, id }),\n featureIndex,\n 0\n ) === false)\n return false;\n return;\n }\n var geomType;\n switch (type) {\n case \"MultiPoint\":\n geomType = \"Point\";\n break;\n case \"MultiLineString\":\n geomType = \"LineString\";\n break;\n case \"MultiPolygon\":\n geomType = \"Polygon\";\n break;\n }\n for (var multiFeatureIndex = 0; multiFeatureIndex < geometry.coordinates.length; multiFeatureIndex++) {\n var coordinate = geometry.coordinates[multiFeatureIndex];\n var geom = {\n type: geomType,\n coordinates: coordinate\n };\n if (callback(feature(geom, properties), featureIndex, multiFeatureIndex) === false)\n return false;\n }\n });\n}\nfunction flattenReduce(geojson, callback, initialValue) {\n var previousValue = initialValue;\n flattenEach(\n geojson,\n function(currentFeature, featureIndex, multiFeatureIndex) {\n if (featureIndex === 0 && multiFeatureIndex === 0 && initialValue === void 0)\n previousValue = currentFeature;\n else\n previousValue = callback(\n previousValue,\n currentFeature,\n featureIndex,\n multiFeatureIndex\n );\n }\n );\n return previousValue;\n}\nfunction segmentEach(geojson, callback) {\n flattenEach(geojson, function(feature2, featureIndex, multiFeatureIndex) {\n var segmentIndex = 0;\n if (!feature2.geometry) return;\n var type = feature2.geometry.type;\n if (type === \"Point\" || type === \"MultiPoint\") return;\n var previousCoords;\n var previousFeatureIndex = 0;\n var previousMultiIndex = 0;\n var prevGeomIndex = 0;\n if (coordEach(\n feature2,\n function(currentCoord, coordIndex, featureIndexCoord, multiPartIndexCoord, geometryIndex) {\n if (previousCoords === void 0 || featureIndex > previousFeatureIndex || multiPartIndexCoord > previousMultiIndex || geometryIndex > prevGeomIndex) {\n previousCoords = currentCoord;\n previousFeatureIndex = featureIndex;\n previousMultiIndex = multiPartIndexCoord;\n prevGeomIndex = geometryIndex;\n segmentIndex = 0;\n return;\n }\n var currentSegment = lineString(\n [previousCoords, currentCoord],\n feature2.properties\n );\n if (callback(\n currentSegment,\n featureIndex,\n multiFeatureIndex,\n geometryIndex,\n segmentIndex\n ) === false)\n return false;\n segmentIndex++;\n previousCoords = currentCoord;\n }\n ) === false)\n return false;\n });\n}\nfunction segmentReduce(geojson, callback, initialValue) {\n var previousValue = initialValue;\n var started = false;\n segmentEach(\n geojson,\n function(currentSegment, featureIndex, multiFeatureIndex, geometryIndex, segmentIndex) {\n if (started === false && initialValue === void 0)\n previousValue = currentSegment;\n else\n previousValue = callback(\n previousValue,\n currentSegment,\n featureIndex,\n multiFeatureIndex,\n geometryIndex,\n segmentIndex\n );\n started = true;\n }\n );\n return previousValue;\n}\nfunction lineEach(geojson, callback) {\n if (!geojson) throw new Error(\"geojson is required\");\n flattenEach(geojson, function(feature2, featureIndex, multiFeatureIndex) {\n if (feature2.geometry === null) return;\n var type = feature2.geometry.type;\n var coords = feature2.geometry.coordinates;\n switch (type) {\n case \"LineString\":\n if (callback(feature2, featureIndex, multiFeatureIndex, 0, 0) === false)\n return false;\n break;\n case \"Polygon\":\n for (var geometryIndex = 0; geometryIndex < coords.length; geometryIndex++) {\n if (callback(\n lineString(coords[geometryIndex], feature2.properties),\n featureIndex,\n multiFeatureIndex,\n geometryIndex\n ) === false)\n return false;\n }\n break;\n }\n });\n}\nfunction lineReduce(geojson, callback, initialValue) {\n var previousValue = initialValue;\n lineEach(\n geojson,\n function(currentLine, featureIndex, multiFeatureIndex, geometryIndex) {\n if (featureIndex === 0 && initialValue === void 0)\n previousValue = currentLine;\n else\n previousValue = callback(\n previousValue,\n currentLine,\n featureIndex,\n multiFeatureIndex,\n geometryIndex\n );\n }\n );\n return previousValue;\n}\nfunction findSegment(geojson, options) {\n options = options || {};\n if (!isObject(options)) throw new Error(\"options is invalid\");\n var featureIndex = options.featureIndex || 0;\n var multiFeatureIndex = options.multiFeatureIndex || 0;\n var geometryIndex = options.geometryIndex || 0;\n var segmentIndex = options.segmentIndex || 0;\n var properties = options.properties;\n var geometry;\n switch (geojson.type) {\n case \"FeatureCollection\":\n if (featureIndex < 0)\n featureIndex = geojson.features.length + featureIndex;\n properties = properties || geojson.features[featureIndex].properties;\n geometry = geojson.features[featureIndex].geometry;\n break;\n case \"Feature\":\n properties = properties || geojson.properties;\n geometry = geojson.geometry;\n break;\n case \"Point\":\n case \"MultiPoint\":\n return null;\n case \"LineString\":\n case \"Polygon\":\n case \"MultiLineString\":\n case \"MultiPolygon\":\n geometry = geojson;\n break;\n default:\n throw new Error(\"geojson is invalid\");\n }\n if (geometry === null) return null;\n var coords = geometry.coordinates;\n switch (geometry.type) {\n case \"Point\":\n case \"MultiPoint\":\n return null;\n case \"LineString\":\n if (segmentIndex < 0) segmentIndex = coords.length + segmentIndex - 1;\n return lineString(\n [coords[segmentIndex], coords[segmentIndex + 1]],\n properties,\n options\n );\n case \"Polygon\":\n if (geometryIndex < 0) geometryIndex = coords.length + geometryIndex;\n if (segmentIndex < 0)\n segmentIndex = coords[geometryIndex].length + segmentIndex - 1;\n return lineString(\n [\n coords[geometryIndex][segmentIndex],\n coords[geometryIndex][segmentIndex + 1]\n ],\n properties,\n options\n );\n case \"MultiLineString\":\n if (multiFeatureIndex < 0)\n multiFeatureIndex = coords.length + multiFeatureIndex;\n if (segmentIndex < 0)\n segmentIndex = coords[multiFeatureIndex].length + segmentIndex - 1;\n return lineString(\n [\n coords[multiFeatureIndex][segmentIndex],\n coords[multiFeatureIndex][segmentIndex + 1]\n ],\n properties,\n options\n );\n case \"MultiPolygon\":\n if (multiFeatureIndex < 0)\n multiFeatureIndex = coords.length + multiFeatureIndex;\n if (geometryIndex < 0)\n geometryIndex = coords[multiFeatureIndex].length + geometryIndex;\n if (segmentIndex < 0)\n segmentIndex = coords[multiFeatureIndex][geometryIndex].length - segmentIndex - 1;\n return lineString(\n [\n coords[multiFeatureIndex][geometryIndex][segmentIndex],\n coords[multiFeatureIndex][geometryIndex][segmentIndex + 1]\n ],\n properties,\n options\n );\n }\n throw new Error(\"geojson is invalid\");\n}\nfunction findPoint(geojson, options) {\n options = options || {};\n if (!isObject(options)) throw new Error(\"options is invalid\");\n var featureIndex = options.featureIndex || 0;\n var multiFeatureIndex = options.multiFeatureIndex || 0;\n var geometryIndex = options.geometryIndex || 0;\n var coordIndex = options.coordIndex || 0;\n var properties = options.properties;\n var geometry;\n switch (geojson.type) {\n case \"FeatureCollection\":\n if (featureIndex < 0)\n featureIndex = geojson.features.length + featureIndex;\n properties = properties || geojson.features[featureIndex].properties;\n geometry = geojson.features[featureIndex].geometry;\n break;\n case \"Feature\":\n properties = properties || geojson.properties;\n geometry = geojson.geometry;\n break;\n case \"Point\":\n case \"MultiPoint\":\n return null;\n case \"LineString\":\n case \"Polygon\":\n case \"MultiLineString\":\n case \"MultiPolygon\":\n geometry = geojson;\n break;\n default:\n throw new Error(\"geojson is invalid\");\n }\n if (geometry === null) return null;\n var coords = geometry.coordinates;\n switch (geometry.type) {\n case \"Point\":\n return point(coords, properties, options);\n case \"MultiPoint\":\n if (multiFeatureIndex < 0)\n multiFeatureIndex = coords.length + multiFeatureIndex;\n return point(coords[multiFeatureIndex], properties, options);\n case \"LineString\":\n if (coordIndex < 0) coordIndex = coords.length + coordIndex;\n return point(coords[coordIndex], properties, options);\n case \"Polygon\":\n if (geometryIndex < 0) geometryIndex = coords.length + geometryIndex;\n if (coordIndex < 0)\n coordIndex = coords[geometryIndex].length + coordIndex;\n return point(coords[geometryIndex][coordIndex], properties, options);\n case \"MultiLineString\":\n if (multiFeatureIndex < 0)\n multiFeatureIndex = coords.length + multiFeatureIndex;\n if (coordIndex < 0)\n coordIndex = coords[multiFeatureIndex].length + coordIndex;\n return point(coords[multiFeatureIndex][coordIndex], properties, options);\n case \"MultiPolygon\":\n if (multiFeatureIndex < 0)\n multiFeatureIndex = coords.length + multiFeatureIndex;\n if (geometryIndex < 0)\n geometryIndex = coords[multiFeatureIndex].length + geometryIndex;\n if (coordIndex < 0)\n coordIndex = coords[multiFeatureIndex][geometryIndex].length - coordIndex;\n return point(\n coords[multiFeatureIndex][geometryIndex][coordIndex],\n properties,\n options\n );\n }\n throw new Error(\"geojson is invalid\");\n}\nexport {\n coordAll,\n coordEach,\n coordReduce,\n featureEach,\n featureReduce,\n findPoint,\n findSegment,\n flattenEach,\n flattenReduce,\n geomEach,\n geomReduce,\n lineEach,\n lineReduce,\n propEach,\n propReduce,\n segmentEach,\n segmentReduce\n};\n//# sourceMappingURL=index.js.map"],"names":["coordEach","geojson","callback","excludeWrapCoord","j","k","l","geometry","stopG","coords","geometryMaybeCollection","wrapShrink","coordIndex","isGeometryCollection","type","isFeatureCollection","isFeature","stop","featureIndex","geomIndex","multiFeatureIndex","geometryIndex","geomType","featureEach","i","geomEach","g","featureProperties","featureBBox","featureId"],"mappings":"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","x_google_ignoreList":[0]}