@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,5 +1,5 @@
1
- import v from "./index.es222.js";
2
- import g from "./index.es213.js";
1
+ import v from "./index.es230.js";
2
+ import g from "./index.es221.js";
3
3
  function a(h, n, o, t) {
4
4
  o = v(o, t, 1);
5
5
  for (var u = o(n), r = 0, f = g(h); r < f; ) {
@@ -1,6 +1,6 @@
1
1
  import e from "./index.es155.js";
2
2
  import r from "./index.es153.js";
3
- import o from "./index.es231.js";
3
+ import o from "./index.es239.js";
4
4
  const f = o(1, r, e);
5
5
  export {
6
6
  f as default
@@ -1,5 +1,5 @@
1
1
  import e from "./index.es154.js";
2
- import t from "./index.es231.js";
2
+ import t from "./index.es239.js";
3
3
  const n = t(-1, e);
4
4
  export {
5
5
  n as default
@@ -1,4 +1,4 @@
1
- import d from "./index.es232.js";
1
+ import d from "./index.es240.js";
2
2
  import o from "./index.es153.js";
3
3
  import t from "./index.es152.js";
4
4
  function y(r, e, f) {
@@ -1,10 +1,10 @@
1
1
  import * as i from "react";
2
2
  import { useContext as b, useState as E, useRef as s, useEffect as v, useImperativeHandle as L, useMemo as x } from "react";
3
3
  import { MountedMapsContext as y } from "./index.es28.js";
4
- import u from "./index.es237.js";
5
- import I from "./index.es238.js";
6
- import w from "./index.es239.js";
7
- import C from "./index.es240.js";
4
+ import u from "./index.es210.js";
5
+ import I from "./index.es211.js";
6
+ import w from "./index.es212.js";
7
+ import C from "./index.es213.js";
8
8
  const g = i.createContext(null);
9
9
  function R(e, f) {
10
10
  const c = b(y), [o, M] = E(null), l = s(), { current: a } = s({ mapLib: null, map: null });
@@ -1,5 +1,5 @@
1
- import p from "./index.es223.js";
2
- import t from "./index.es232.js";
1
+ import p from "./index.es231.js";
2
+ import t from "./index.es240.js";
3
3
  import h from "./index.es116.js";
4
4
  function u(f, i, l) {
5
5
  i = p(i, l);
@@ -1,5 +1,5 @@
1
- import l from "./index.es222.js";
2
- import k from "./index.es232.js";
1
+ import l from "./index.es230.js";
2
+ import k from "./index.es240.js";
3
3
  import u from "./index.es116.js";
4
4
  function h(r, a, t) {
5
5
  a = l(a, t);
@@ -1,4 +1,4 @@
1
- import e from "./index.es233.js";
1
+ import e from "./index.es241.js";
2
2
  const t = e(1);
3
3
  export {
4
4
  t as default
@@ -1,4 +1,4 @@
1
- import e from "./index.es233.js";
1
+ import e from "./index.es241.js";
2
2
  const r = e(-1);
3
3
  export {
4
4
  r as default
@@ -1,4 +1,4 @@
1
- import m from "./index.es222.js";
1
+ import m from "./index.es230.js";
2
2
  import s from "./index.es160.js";
3
3
  function l(t, r, n) {
4
4
  var f = [];
@@ -1,6 +1,6 @@
1
1
  import o from "./index.es164.js";
2
2
  import f from "./index.es148.js";
3
- import m from "./index.es222.js";
3
+ import m from "./index.es230.js";
4
4
  function a(r, t, e) {
5
5
  return o(r, f(m(t)), e);
6
6
  }
@@ -1,5 +1,5 @@
1
- import e from "./index.es222.js";
2
- import l from "./index.es232.js";
1
+ import e from "./index.es230.js";
2
+ import l from "./index.es240.js";
3
3
  import u from "./index.es116.js";
4
4
  function g(r, t, o) {
5
5
  t = e(t, o);
@@ -1,5 +1,5 @@
1
- import l from "./index.es222.js";
2
- import u from "./index.es232.js";
1
+ import l from "./index.es230.js";
2
+ import u from "./index.es240.js";
3
3
  import e from "./index.es116.js";
4
4
  function h(r, t, s) {
5
5
  t = l(t, s);
@@ -1,4 +1,4 @@
1
- import e from "./index.es232.js";
1
+ import e from "./index.es240.js";
2
2
  import a from "./index.es118.js";
3
3
  import m from "./index.es156.js";
4
4
  function u(i, t, r, f) {
@@ -1,10 +1,10 @@
1
1
  import * as k from "react";
2
2
  import { memo as A, forwardRef as D, useContext as N, useRef as b, useMemo as y, useEffect as h, useImperativeHandle as M } from "react";
3
3
  import { createPortal as w } from "react-dom";
4
- import { applyReactStyle as x } from "./index.es241.js";
4
+ import { applyReactStyle as x } from "./index.es214.js";
5
5
  import { MapContext as O } from "./index.es16.js";
6
- import { arePointsEqual as S } from "./index.es242.js";
7
- import { compareClassNames as q } from "./index.es243.js";
6
+ import { arePointsEqual as S } from "./index.es215.js";
7
+ import { compareClassNames as q } from "./index.es216.js";
8
8
  A(D((e, E) => {
9
9
  const { map: v, mapLib: R } = N(O), r = b({ props: e }), t = y(() => {
10
10
  let i = !1;
@@ -1,6 +1,6 @@
1
- import c from "./index.es232.js";
1
+ import c from "./index.es240.js";
2
2
  import s from "./index.es118.js";
3
- import e from "./index.es222.js";
3
+ import e from "./index.es230.js";
4
4
  import I from "./index.es160.js";
5
5
  function g(n, f, o) {
6
6
  var r = -1 / 0, u = -1 / 0, i, l;
@@ -1,6 +1,6 @@
1
- import s from "./index.es232.js";
1
+ import s from "./index.es240.js";
2
2
  import a from "./index.es118.js";
3
- import e from "./index.es222.js";
3
+ import e from "./index.es230.js";
4
4
  import I from "./index.es160.js";
5
5
  function k(n, f, o) {
6
6
  var i = 1 / 0, u = 1 / 0, r, l;
@@ -1,6 +1,6 @@
1
- import s from "./index.es232.js";
1
+ import s from "./index.es240.js";
2
2
  import v from "./index.es118.js";
3
- import u from "./index.es213.js";
3
+ import u from "./index.es221.js";
4
4
  import o from "./index.es138.js";
5
5
  import h from "./index.es180.js";
6
6
  function M(r, a, e) {
@@ -1,4 +1,4 @@
1
- import c from "./index.es222.js";
1
+ import c from "./index.es230.js";
2
2
  import d from "./index.es169.js";
3
3
  import e from "./index.es161.js";
4
4
  function x(u, t, f) {
@@ -1,5 +1,5 @@
1
- import r from "./index.es234.js";
2
- import i from "./index.es211.js";
1
+ import r from "./index.es242.js";
2
+ import i from "./index.es219.js";
3
3
  const n = r(function(o, f, p) {
4
4
  i(o, p) ? o[p].push(f) : o[p] = [f];
5
5
  });
@@ -1,4 +1,4 @@
1
- import r from "./index.es234.js";
1
+ import r from "./index.es242.js";
2
2
  const f = r(function(o, t, n) {
3
3
  o[n] = t;
4
4
  });
@@ -1,5 +1,5 @@
1
- import t from "./index.es234.js";
2
- import a from "./index.es211.js";
1
+ import t from "./index.es242.js";
2
+ import a from "./index.es219.js";
3
3
  const p = t(function(o, i, f) {
4
4
  a(o, f) ? o[f]++ : o[f] = 1;
5
5
  });
@@ -1,4 +1,4 @@
1
- import p from "./index.es234.js";
1
+ import p from "./index.es242.js";
2
2
  const i = p(function(t, o, r) {
3
3
  t[r ? 0 : 1].push(o);
4
4
  }, !0);
@@ -1,9 +1,9 @@
1
1
  import { createPortal as u } from "react-dom";
2
2
  import { memo as d, forwardRef as g, useContext as h, useMemo as i, useRef as L, useEffect as s, useImperativeHandle as C } from "react";
3
- import { applyReactStyle as x } from "./index.es241.js";
3
+ import { applyReactStyle as x } from "./index.es214.js";
4
4
  import { MapContext as M } from "./index.es16.js";
5
- import { deepEqual as N } from "./index.es242.js";
6
- import { compareClassNames as O } from "./index.es243.js";
5
+ import { deepEqual as N } from "./index.es215.js";
6
+ import { compareClassNames as O } from "./index.es216.js";
7
7
  d(g((e, m) => {
8
8
  const { map: l, mapLib: r } = h(M), c = i(() => document.createElement("div"), []), a = L({ props: e }), t = i(() => {
9
9
  const n = { ...e }, o = new r.Popup(n);
@@ -1,7 +1,7 @@
1
1
  import f from "./index.es108.js";
2
2
  import { slice as t } from "./index.es37.js";
3
3
  import i from "./index.es100.js";
4
- import m from "./index.es232.js";
4
+ import m from "./index.es240.js";
5
5
  import u from "./index.es161.js";
6
6
  import e from "./index.es131.js";
7
7
  import o from "./index.es118.js";
@@ -1,4 +1,4 @@
1
- import e from "./index.es232.js";
1
+ import e from "./index.es240.js";
2
2
  import t from "./index.es116.js";
3
3
  function f(r) {
4
4
  return r == null ? 0 : e(r) ? r.length : t(r).length;
@@ -1,4 +1,4 @@
1
- import f from "./index.es229.js";
1
+ import f from "./index.es237.js";
2
2
  function n(t, e) {
3
3
  return f(t, e, !1);
4
4
  }
@@ -1,6 +1,6 @@
1
1
  import b from "./index.es98.js";
2
- import q from "./index.es222.js";
3
- import B from "./index.es213.js";
2
+ import q from "./index.es230.js";
3
+ import B from "./index.es221.js";
4
4
  import r from "./index.es168.js";
5
5
  function w(l, p, f, g) {
6
6
  b(p) || (g = f, f = p, p = !1), f != null && (f = q(f, g));
@@ -1,4 +1,4 @@
1
- import u from "./index.es213.js";
1
+ import u from "./index.es221.js";
2
2
  import f from "./index.es168.js";
3
3
  function v(o) {
4
4
  for (var t = [], a = arguments.length, n = 0, s = u(o); n < s; n++) {
@@ -1,5 +1,5 @@
1
1
  import { memo as i, useEffect as r } from "react";
2
- import { applyReactStyle as e } from "./index.es241.js";
2
+ import { applyReactStyle as e } from "./index.es214.js";
3
3
  import { useControl as l } from "./index.es30.js";
4
4
  function m(t) {
5
5
  const o = l(({ mapLib: n }) => new n.AttributionControl(t), {
@@ -1,5 +1,5 @@
1
1
  import f from "./index.es171.js";
2
- import p from "./index.es213.js";
2
+ import p from "./index.es221.js";
3
3
  import u from "./index.es169.js";
4
4
  function n(t) {
5
5
  for (var o = t && f(t, p).length || 0, m = Array(o), r = 0; r < o; r++)
@@ -1,4 +1,4 @@
1
- import n from "./index.es213.js";
1
+ import n from "./index.es221.js";
2
2
  function u(e, t) {
3
3
  for (var o = {}, r = 0, f = n(e); r < f; r++)
4
4
  t ? o[e[r]] = t[r] : o[e[r][0]] = e[r][1];
@@ -1,21 +1,151 @@
1
- function e(r) {
2
- if (!r)
3
- throw new Error("coord is required");
4
- if (!Array.isArray(r)) {
5
- if (r.type === "Feature" && r.geometry !== null && r.geometry.type === "Point")
6
- return [...r.geometry.coordinates];
7
- if (r.type === "Point")
8
- return [...r.coordinates];
9
- }
10
- if (Array.isArray(r) && r.length >= 2 && !Array.isArray(r[0]) && !Array.isArray(r[1]))
11
- return [...r];
12
- throw new Error("coord must be GeoJSON Point or an Array of numbers");
1
+ function b(e, o, r) {
2
+ if (e !== null)
3
+ for (var t, l, a, u, c, i, s, y = 0, f = 0, h, p = e.type, C = p === "FeatureCollection", v = p === "Feature", w = C ? e.features.length : 1, M = 0; M < w; M++) {
4
+ s = C ? e.features[M].geometry : v ? e.geometry : e, h = s ? s.type === "GeometryCollection" : !1, c = h ? s.geometries.length : 1;
5
+ for (var G = 0; G < c; G++) {
6
+ var n = 0, g = 0;
7
+ if (u = h ? s.geometries[G] : s, u !== null) {
8
+ i = u.coordinates;
9
+ var P = u.type;
10
+ switch (y = r && (P === "Polygon" || P === "MultiPolygon") ? 1 : 0, P) {
11
+ case null:
12
+ break;
13
+ case "Point":
14
+ if (o(
15
+ i,
16
+ f,
17
+ M,
18
+ n,
19
+ g
20
+ ) === !1)
21
+ return !1;
22
+ f++, n++;
23
+ break;
24
+ case "LineString":
25
+ case "MultiPoint":
26
+ for (t = 0; t < i.length; t++) {
27
+ if (o(
28
+ i[t],
29
+ f,
30
+ M,
31
+ n,
32
+ g
33
+ ) === !1)
34
+ return !1;
35
+ f++, P === "MultiPoint" && n++;
36
+ }
37
+ P === "LineString" && n++;
38
+ break;
39
+ case "Polygon":
40
+ case "MultiLineString":
41
+ for (t = 0; t < i.length; t++) {
42
+ for (l = 0; l < i[t].length - y; l++) {
43
+ if (o(
44
+ i[t][l],
45
+ f,
46
+ M,
47
+ n,
48
+ g
49
+ ) === !1)
50
+ return !1;
51
+ f++;
52
+ }
53
+ P === "MultiLineString" && n++, P === "Polygon" && g++;
54
+ }
55
+ P === "Polygon" && n++;
56
+ break;
57
+ case "MultiPolygon":
58
+ for (t = 0; t < i.length; t++) {
59
+ for (g = 0, l = 0; l < i[t].length; l++) {
60
+ for (a = 0; a < i[t][l].length - y; a++) {
61
+ if (o(
62
+ i[t][l][a],
63
+ f,
64
+ M,
65
+ n,
66
+ g
67
+ ) === !1)
68
+ return !1;
69
+ f++;
70
+ }
71
+ g++;
72
+ }
73
+ n++;
74
+ }
75
+ break;
76
+ case "GeometryCollection":
77
+ for (t = 0; t < u.geometries.length; t++)
78
+ if (b(u.geometries[t], o, r) === !1)
79
+ return !1;
80
+ break;
81
+ default:
82
+ throw new Error("Unknown Geometry Type");
83
+ }
84
+ }
85
+ }
86
+ }
87
+ }
88
+ function S(e, o) {
89
+ if (e.type === "Feature")
90
+ o(e, 0);
91
+ else if (e.type === "FeatureCollection")
92
+ for (var r = 0; r < e.features.length && o(e.features[r], r) !== !1; r++)
93
+ ;
13
94
  }
14
- function t(r) {
15
- return r.type === "Feature" ? r.geometry : r;
95
+ function k(e, o) {
96
+ var r, t, l, a, u, c, i, s, y, f, h = 0, p = e.type === "FeatureCollection", C = e.type === "Feature", v = p ? e.features.length : 1;
97
+ for (r = 0; r < v; r++) {
98
+ for (c = p ? e.features[r].geometry : C ? e.geometry : e, s = p ? e.features[r].properties : C ? e.properties : {}, y = p ? e.features[r].bbox : C ? e.bbox : void 0, f = p ? e.features[r].id : C ? e.id : void 0, i = c ? c.type === "GeometryCollection" : !1, u = i ? c.geometries.length : 1, l = 0; l < u; l++) {
99
+ if (a = i ? c.geometries[l] : c, a === null) {
100
+ if (o(
101
+ null,
102
+ h,
103
+ s,
104
+ y,
105
+ f
106
+ ) === !1)
107
+ return !1;
108
+ continue;
109
+ }
110
+ switch (a.type) {
111
+ case "Point":
112
+ case "LineString":
113
+ case "MultiPoint":
114
+ case "Polygon":
115
+ case "MultiLineString":
116
+ case "MultiPolygon": {
117
+ if (o(
118
+ a,
119
+ h,
120
+ s,
121
+ y,
122
+ f
123
+ ) === !1)
124
+ return !1;
125
+ break;
126
+ }
127
+ case "GeometryCollection": {
128
+ for (t = 0; t < a.geometries.length; t++)
129
+ if (o(
130
+ a.geometries[t],
131
+ h,
132
+ s,
133
+ y,
134
+ f
135
+ ) === !1)
136
+ return !1;
137
+ break;
138
+ }
139
+ default:
140
+ throw new Error("Unknown Geometry Type");
141
+ }
142
+ }
143
+ h++;
144
+ }
16
145
  }
17
146
  export {
18
- e as getCoord,
19
- t as getGeom
147
+ b as coordEach,
148
+ S as featureEach,
149
+ k as geomEach
20
150
  };
21
151
  //# sourceMappingURL=index.es194.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es194.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":"AAEA,SAASA,EAASC,GAAO;AACvB,MAAI,CAACA;AACH,UAAM,IAAI,MAAM,mBAAmB;AAErC,MAAI,CAAC,MAAM,QAAQA,CAAK,GAAG;AACzB,QAAIA,EAAM,SAAS,aAAaA,EAAM,aAAa,QAAQA,EAAM,SAAS,SAAS;AACjF,aAAO,CAAC,GAAGA,EAAM,SAAS,WAAW;AAEvC,QAAIA,EAAM,SAAS;AACjB,aAAO,CAAC,GAAGA,EAAM,WAAW;AAAA,EAEhC;AACA,MAAI,MAAM,QAAQA,CAAK,KAAKA,EAAM,UAAU,KAAK,CAAC,MAAM,QAAQA,EAAM,CAAC,CAAC,KAAK,CAAC,MAAM,QAAQA,EAAM,CAAC,CAAC;AAClG,WAAO,CAAC,GAAGA,CAAK;AAElB,QAAM,IAAI,MAAM,oDAAoD;AACtE;AAgFA,SAASC,EAAQC,GAAS;AACxB,SAAIA,EAAQ,SAAS,YACZA,EAAQ,WAEVA;AACT;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es194.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":"AAEA,SAASA,EAAUC,G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