@performant-software/geospatial 3.1.18-beta.8 → 3.1.18-beta.9

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 (463) 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.cjs106.js +1 -1
  6. package/dist/index.cjs107.js +1 -1
  7. package/dist/index.cjs109.js +1 -1
  8. package/dist/index.cjs110.js +1 -1
  9. package/dist/index.cjs111.js +1 -1
  10. package/dist/index.cjs112.js +1 -1
  11. package/dist/index.cjs117.js +1 -1
  12. package/dist/index.cjs118.js +1 -1
  13. package/dist/index.cjs119.js +1 -1
  14. package/dist/index.cjs120.js +1 -1
  15. package/dist/index.cjs123.js +1 -1
  16. package/dist/index.cjs124.js +1 -1
  17. package/dist/index.cjs125.js +1 -1
  18. package/dist/index.cjs129.js +1 -1
  19. package/dist/index.cjs13.js +1 -1
  20. package/dist/index.cjs13.js.map +1 -1
  21. package/dist/index.cjs132.js +1 -1
  22. package/dist/index.cjs136.js +1 -1
  23. package/dist/index.cjs139.js +1 -1
  24. package/dist/index.cjs147.js +1 -1
  25. package/dist/index.cjs148.js +1 -1
  26. package/dist/index.cjs149.js +1 -1
  27. package/dist/index.cjs150.js +1 -1
  28. package/dist/index.cjs151.js +1 -1
  29. package/dist/index.cjs152.js +1 -1
  30. package/dist/index.cjs153.js +1 -1
  31. package/dist/index.cjs155.js +1 -1
  32. package/dist/index.cjs156.js +1 -1
  33. package/dist/index.cjs157.js +1 -1
  34. package/dist/index.cjs158.js +1 -1
  35. package/dist/index.cjs159.js +1 -1
  36. package/dist/index.cjs16.js +1 -1
  37. package/dist/index.cjs160.js +1 -1
  38. package/dist/index.cjs161.js +1 -1
  39. package/dist/index.cjs162.js +1 -1
  40. package/dist/index.cjs163.js +1 -1
  41. package/dist/index.cjs166.js +1 -1
  42. package/dist/index.cjs167.js +1 -1
  43. package/dist/index.cjs169.js +1 -1
  44. package/dist/index.cjs17.js +1 -1
  45. package/dist/index.cjs170.js +1 -1
  46. package/dist/index.cjs171.js +1 -1
  47. package/dist/index.cjs172.js +1 -1
  48. package/dist/index.cjs173.js +1 -1
  49. package/dist/index.cjs174.js +1 -1
  50. package/dist/index.cjs175.js +1 -1
  51. package/dist/index.cjs176.js +1 -1
  52. package/dist/index.cjs18.js +1 -1
  53. package/dist/index.cjs182.js +1 -1
  54. package/dist/index.cjs183.js +1 -1
  55. package/dist/index.cjs184.js +1 -1
  56. package/dist/index.cjs185.js +1 -1
  57. package/dist/index.cjs186.js +1 -1
  58. package/dist/index.cjs189.js +1 -1
  59. package/dist/index.cjs189.js.map +1 -1
  60. package/dist/index.cjs19.js +1 -1
  61. package/dist/index.cjs190.js +1 -1
  62. package/dist/index.cjs190.js.map +1 -1
  63. package/dist/index.cjs191.js +1 -1
  64. package/dist/index.cjs191.js.map +1 -1
  65. package/dist/index.cjs192.js +1 -1
  66. package/dist/index.cjs192.js.map +1 -1
  67. package/dist/index.cjs193.js +1 -1
  68. package/dist/index.cjs193.js.map +1 -1
  69. package/dist/index.cjs194.js +1 -1
  70. package/dist/index.cjs194.js.map +1 -1
  71. package/dist/index.cjs195.js +1 -1
  72. package/dist/index.cjs195.js.map +1 -1
  73. package/dist/index.cjs196.js +1 -1
  74. package/dist/index.cjs196.js.map +1 -1
  75. package/dist/index.cjs197.js +1 -1
  76. package/dist/index.cjs197.js.map +1 -1
  77. package/dist/index.cjs198.js +1 -1
  78. package/dist/index.cjs198.js.map +1 -1
  79. package/dist/index.cjs199.js +1 -1
  80. package/dist/index.cjs199.js.map +1 -1
  81. package/dist/index.cjs20.js +1 -1
  82. package/dist/index.cjs200.js +1 -1
  83. package/dist/index.cjs200.js.map +1 -1
  84. package/dist/index.cjs201.js +1 -1
  85. package/dist/index.cjs201.js.map +1 -1
  86. package/dist/index.cjs202.js +1 -1
  87. package/dist/index.cjs202.js.map +1 -1
  88. package/dist/index.cjs203.js +1 -1
  89. package/dist/index.cjs203.js.map +1 -1
  90. package/dist/index.cjs204.js +1 -1
  91. package/dist/index.cjs204.js.map +1 -1
  92. package/dist/index.cjs205.js +1 -1
  93. package/dist/index.cjs205.js.map +1 -1
  94. package/dist/index.cjs206.js +1 -1
  95. package/dist/index.cjs206.js.map +1 -1
  96. package/dist/index.cjs207.js +1 -1
  97. package/dist/index.cjs207.js.map +1 -1
  98. package/dist/index.cjs208.js +1 -1
  99. package/dist/index.cjs208.js.map +1 -1
  100. package/dist/index.cjs209.js +1 -1
  101. package/dist/index.cjs209.js.map +1 -1
  102. package/dist/index.cjs21.js +1 -1
  103. package/dist/index.cjs210.js +1 -1
  104. package/dist/index.cjs210.js.map +1 -1
  105. package/dist/index.cjs211.js +1 -1
  106. package/dist/index.cjs211.js.map +1 -1
  107. package/dist/index.cjs212.js +1 -1
  108. package/dist/index.cjs212.js.map +1 -1
  109. package/dist/index.cjs213.js +1 -1
  110. package/dist/index.cjs213.js.map +1 -1
  111. package/dist/index.cjs214.js +1 -1
  112. package/dist/index.cjs214.js.map +1 -1
  113. package/dist/index.cjs215.js +1 -1
  114. package/dist/index.cjs215.js.map +1 -1
  115. package/dist/index.cjs216.js +1 -1
  116. package/dist/index.cjs216.js.map +1 -1
  117. package/dist/index.cjs217.js +1 -1
  118. package/dist/index.cjs217.js.map +1 -1
  119. package/dist/index.cjs218.js +1 -1
  120. package/dist/index.cjs218.js.map +1 -1
  121. package/dist/index.cjs219.js +1 -1
  122. package/dist/index.cjs219.js.map +1 -1
  123. package/dist/index.cjs22.js +1 -1
  124. package/dist/index.cjs220.js +1 -1
  125. package/dist/index.cjs220.js.map +1 -1
  126. package/dist/index.cjs221.js +1 -1
  127. package/dist/index.cjs221.js.map +1 -1
  128. package/dist/index.cjs222.js +1 -1
  129. package/dist/index.cjs222.js.map +1 -1
  130. package/dist/index.cjs223.js +1 -1
  131. package/dist/index.cjs223.js.map +1 -1
  132. package/dist/index.cjs224.js +1 -1
  133. package/dist/index.cjs224.js.map +1 -1
  134. package/dist/index.cjs225.js +1 -1
  135. package/dist/index.cjs225.js.map +1 -1
  136. package/dist/index.cjs226.js +1 -1
  137. package/dist/index.cjs226.js.map +1 -1
  138. package/dist/index.cjs227.js +1 -1
  139. package/dist/index.cjs227.js.map +1 -1
  140. package/dist/index.cjs228.js +1 -1
  141. package/dist/index.cjs228.js.map +1 -1
  142. package/dist/index.cjs229.js +1 -1
  143. package/dist/index.cjs229.js.map +1 -1
  144. package/dist/index.cjs23.js +1 -1
  145. package/dist/index.cjs230.js +1 -1
  146. package/dist/index.cjs230.js.map +1 -1
  147. package/dist/index.cjs231.js +1 -1
  148. package/dist/index.cjs231.js.map +1 -1
  149. package/dist/index.cjs232.js +1 -1
  150. package/dist/index.cjs232.js.map +1 -1
  151. package/dist/index.cjs233.js +1 -1
  152. package/dist/index.cjs233.js.map +1 -1
  153. package/dist/index.cjs234.js +1 -1
  154. package/dist/index.cjs234.js.map +1 -1
  155. package/dist/index.cjs235.js +1 -1
  156. package/dist/index.cjs235.js.map +1 -1
  157. package/dist/index.cjs236.js +1 -1
  158. package/dist/index.cjs236.js.map +1 -1
  159. package/dist/index.cjs237.js +1 -1
  160. package/dist/index.cjs237.js.map +1 -1
  161. package/dist/index.cjs238.js +1 -1
  162. package/dist/index.cjs238.js.map +1 -1
  163. package/dist/index.cjs239.js +1 -1
  164. package/dist/index.cjs239.js.map +1 -1
  165. package/dist/index.cjs24.js +1 -1
  166. package/dist/index.cjs242.js +1 -1
  167. package/dist/index.cjs242.js.map +1 -1
  168. package/dist/index.cjs243.js +1 -1
  169. package/dist/index.cjs243.js.map +1 -1
  170. package/dist/index.cjs244.js +1 -1
  171. package/dist/index.cjs244.js.map +1 -1
  172. package/dist/index.cjs245.js +1 -1
  173. package/dist/index.cjs245.js.map +1 -1
  174. package/dist/index.cjs246.js +1 -1
  175. package/dist/index.cjs246.js.map +1 -1
  176. package/dist/index.cjs248.js +1 -1
  177. package/dist/index.cjs25.js +1 -1
  178. package/dist/index.cjs251.js +1 -1
  179. package/dist/index.cjs252.js +1 -1
  180. package/dist/index.cjs254.js +1 -1
  181. package/dist/index.cjs257.js +1 -1
  182. package/dist/index.cjs258.js +1 -1
  183. package/dist/index.cjs259.js +1 -1
  184. package/dist/index.cjs26.js +1 -1
  185. package/dist/index.cjs262.js +1 -1
  186. package/dist/index.cjs263.js +1 -1
  187. package/dist/index.cjs265.js +1 -1
  188. package/dist/index.cjs265.js.map +1 -1
  189. package/dist/index.cjs266.js +1 -1
  190. package/dist/index.cjs266.js.map +1 -1
  191. package/dist/index.cjs267.js +1 -1
  192. package/dist/index.cjs267.js.map +1 -1
  193. package/dist/index.cjs268.js +1 -1
  194. package/dist/index.cjs268.js.map +1 -1
  195. package/dist/index.cjs27.js +1 -1
  196. package/dist/index.cjs34.js +1 -1
  197. package/dist/index.cjs35.js +1 -1
  198. package/dist/index.cjs38.js +1 -1
  199. package/dist/index.cjs39.js +1 -1
  200. package/dist/index.cjs40.js +1 -1
  201. package/dist/index.cjs42.js +1 -1
  202. package/dist/index.cjs43.js +1 -1
  203. package/dist/index.cjs44.js +1 -1
  204. package/dist/index.cjs46.js +1 -1
  205. package/dist/index.cjs47.js +1 -1
  206. package/dist/index.cjs48.js +1 -1
  207. package/dist/index.cjs50.js +1 -1
  208. package/dist/index.cjs51.js +1 -1
  209. package/dist/index.cjs52.js +1 -1
  210. package/dist/index.cjs56.js +1 -1
  211. package/dist/index.cjs57.js +1 -1
  212. package/dist/index.cjs58.js +1 -1
  213. package/dist/index.cjs60.js +1 -1
  214. package/dist/index.cjs61.js +1 -1
  215. package/dist/index.cjs63.js +1 -1
  216. package/dist/index.cjs69.js +1 -1
  217. package/dist/index.cjs71.js +1 -1
  218. package/dist/index.cjs72.js +1 -1
  219. package/dist/index.cjs82.js +1 -1
  220. package/dist/index.cjs82.js.map +1 -1
  221. package/dist/index.cjs83.js +1 -1
  222. package/dist/index.cjs83.js.map +1 -1
  223. package/dist/index.cjs84.js +1 -1
  224. package/dist/index.cjs84.js.map +1 -1
  225. package/dist/index.cjs88.js +1 -1
  226. package/dist/index.cjs95.js +1 -1
  227. package/dist/index.cjs96.js +1 -1
  228. package/dist/index.cjs97.js +1 -1
  229. package/dist/index.cjs98.js +1 -1
  230. package/dist/index.cjs99.js +1 -1
  231. package/dist/index.es100.js +1 -1
  232. package/dist/index.es101.js +1 -1
  233. package/dist/index.es102.js +1 -1
  234. package/dist/index.es103.js +1 -1
  235. package/dist/index.es106.js +1 -1
  236. package/dist/index.es107.js +1 -1
  237. package/dist/index.es109.js +3 -3
  238. package/dist/index.es110.js +1 -1
  239. package/dist/index.es111.js +2 -2
  240. package/dist/index.es112.js +1 -1
  241. package/dist/index.es117.js +1 -1
  242. package/dist/index.es118.js +1 -1
  243. package/dist/index.es119.js +1 -1
  244. package/dist/index.es120.js +1 -1
  245. package/dist/index.es123.js +2 -2
  246. package/dist/index.es124.js +2 -2
  247. package/dist/index.es125.js +1 -1
  248. package/dist/index.es129.js +2 -2
  249. package/dist/index.es13.js +25 -26
  250. package/dist/index.es13.js.map +1 -1
  251. package/dist/index.es132.js +1 -1
  252. package/dist/index.es136.js +1 -1
  253. package/dist/index.es139.js +1 -1
  254. package/dist/index.es147.js +1 -1
  255. package/dist/index.es148.js +1 -1
  256. package/dist/index.es149.js +1 -1
  257. package/dist/index.es150.js +2 -2
  258. package/dist/index.es151.js +1 -1
  259. package/dist/index.es152.js +1 -1
  260. package/dist/index.es153.js +1 -1
  261. package/dist/index.es155.js +2 -2
  262. package/dist/index.es156.js +2 -2
  263. package/dist/index.es157.js +1 -1
  264. package/dist/index.es158.js +1 -1
  265. package/dist/index.es159.js +1 -1
  266. package/dist/index.es16.js +4 -4
  267. package/dist/index.es160.js +1 -1
  268. package/dist/index.es161.js +2 -2
  269. package/dist/index.es162.js +2 -2
  270. package/dist/index.es163.js +1 -1
  271. package/dist/index.es166.js +2 -2
  272. package/dist/index.es167.js +2 -2
  273. package/dist/index.es169.js +2 -2
  274. package/dist/index.es17.js +3 -3
  275. package/dist/index.es170.js +1 -1
  276. package/dist/index.es171.js +2 -2
  277. package/dist/index.es172.js +1 -1
  278. package/dist/index.es173.js +2 -2
  279. package/dist/index.es174.js +1 -1
  280. package/dist/index.es175.js +1 -1
  281. package/dist/index.es176.js +1 -1
  282. package/dist/index.es18.js +3 -3
  283. package/dist/index.es182.js +1 -1
  284. package/dist/index.es183.js +2 -2
  285. package/dist/index.es184.js +1 -1
  286. package/dist/index.es185.js +1 -1
  287. package/dist/index.es186.js +1 -1
  288. package/dist/index.es189.js +12 -146
  289. package/dist/index.es189.js.map +1 -1
  290. package/dist/index.es19.js +1 -1
  291. package/dist/index.es190.js +147 -6
  292. package/dist/index.es190.js.map +1 -1
  293. package/dist/index.es191.js +7 -5
  294. package/dist/index.es191.js.map +1 -1
  295. package/dist/index.es192.js +7 -3
  296. package/dist/index.es192.js.map +1 -1
  297. package/dist/index.es193.js +1 -1
  298. package/dist/index.es193.js.map +1 -1
  299. package/dist/index.es194.js +3 -38
  300. package/dist/index.es194.js.map +1 -1
  301. package/dist/index.es195.js +38 -3
  302. package/dist/index.es195.js.map +1 -1
  303. package/dist/index.es196.js +3 -25
  304. package/dist/index.es196.js.map +1 -1
  305. package/dist/index.es197.js +25 -2
  306. package/dist/index.es197.js.map +1 -1
  307. package/dist/index.es198.js +0 -1
  308. package/dist/index.es198.js.map +1 -1
  309. package/dist/index.es199.js +1 -0
  310. package/dist/index.es199.js.map +1 -1
  311. package/dist/index.es20.js +1 -1
  312. package/dist/index.es200.js +2 -33
  313. package/dist/index.es200.js.map +1 -1
  314. package/dist/index.es201.js +31 -13
  315. package/dist/index.es201.js.map +1 -1
  316. package/dist/index.es202.js +11 -12
  317. package/dist/index.es202.js.map +1 -1
  318. package/dist/index.es203.js +13 -8
  319. package/dist/index.es203.js.map +1 -1
  320. package/dist/index.es204.js +8 -13
  321. package/dist/index.es204.js.map +1 -1
  322. package/dist/index.es205.js +242 -7
  323. package/dist/index.es205.js.map +1 -1
  324. package/dist/index.es206.js +42 -4
  325. package/dist/index.es206.js.map +1 -1
  326. package/dist/index.es207.js +3 -4
  327. package/dist/index.es207.js.map +1 -1
  328. package/dist/index.es208.js +11 -3
  329. package/dist/index.es208.js.map +1 -1
  330. package/dist/index.es209.js +11 -3
  331. package/dist/index.es209.js.map +1 -1
  332. package/dist/index.es21.js +1 -1
  333. package/dist/index.es210.js +30 -8
  334. package/dist/index.es210.js.map +1 -1
  335. package/dist/index.es211.js +13 -18
  336. package/dist/index.es211.js.map +1 -1
  337. package/dist/index.es212.js +4 -20
  338. package/dist/index.es212.js.map +1 -1
  339. package/dist/index.es213.js +6 -11
  340. package/dist/index.es213.js.map +1 -1
  341. package/dist/index.es214.js +4 -14
  342. package/dist/index.es214.js.map +1 -1
  343. package/dist/index.es215.js +4 -6
  344. package/dist/index.es215.js.map +1 -1
  345. package/dist/index.es216.js +3 -8
  346. package/dist/index.es216.js.map +1 -1
  347. package/dist/index.es217.js +3 -7
  348. package/dist/index.es217.js.map +1 -1
  349. package/dist/index.es218.js +8 -21
  350. package/dist/index.es218.js.map +1 -1
  351. package/dist/index.es219.js +17 -8
  352. package/dist/index.es219.js.map +1 -1
  353. package/dist/index.es22.js +1 -1
  354. package/dist/index.es220.js +21 -9
  355. package/dist/index.es220.js.map +1 -1
  356. package/dist/index.es221.js +13 -4
  357. package/dist/index.es221.js.map +1 -1
  358. package/dist/index.es222.js +14 -10
  359. package/dist/index.es222.js.map +1 -1
  360. package/dist/index.es223.js +5 -7
  361. package/dist/index.es223.js.map +1 -1
  362. package/dist/index.es224.js +6 -19
  363. package/dist/index.es224.js.map +1 -1
  364. package/dist/index.es225.js +6 -10
  365. package/dist/index.es225.js.map +1 -1
  366. package/dist/index.es226.js +20 -16
  367. package/dist/index.es226.js.map +1 -1
  368. package/dist/index.es227.js +10 -4
  369. package/dist/index.es227.js.map +1 -1
  370. package/dist/index.es228.js +9 -18
  371. package/dist/index.es228.js.map +1 -1
  372. package/dist/index.es229.js +4 -12
  373. package/dist/index.es229.js.map +1 -1
  374. package/dist/index.es23.js +1 -1
  375. package/dist/index.es230.js +10 -3
  376. package/dist/index.es230.js.map +1 -1
  377. package/dist/index.es231.js +7 -4
  378. package/dist/index.es231.js.map +1 -1
  379. package/dist/index.es232.js +20 -242
  380. package/dist/index.es232.js.map +1 -1
  381. package/dist/index.es233.js +9 -41
  382. package/dist/index.es233.js.map +1 -1
  383. package/dist/index.es234.js +18 -3
  384. package/dist/index.es234.js.map +1 -1
  385. package/dist/index.es235.js +3 -10
  386. package/dist/index.es235.js.map +1 -1
  387. package/dist/index.es236.js +17 -10
  388. package/dist/index.es236.js.map +1 -1
  389. package/dist/index.es237.js +11 -30
  390. package/dist/index.es237.js.map +1 -1
  391. package/dist/index.es238.js +3 -13
  392. package/dist/index.es238.js.map +1 -1
  393. package/dist/index.es239.js +4 -4
  394. package/dist/index.es239.js.map +1 -1
  395. package/dist/index.es24.js +1 -1
  396. package/dist/index.es242.js +6 -3
  397. package/dist/index.es242.js.map +1 -1
  398. package/dist/index.es243.js +3 -8
  399. package/dist/index.es243.js.map +1 -1
  400. package/dist/index.es244.js +19 -4
  401. package/dist/index.es244.js.map +1 -1
  402. package/dist/index.es245.js +22 -20
  403. package/dist/index.es245.js.map +1 -1
  404. package/dist/index.es246.js +7 -22
  405. package/dist/index.es246.js.map +1 -1
  406. package/dist/index.es248.js +1 -1
  407. package/dist/index.es25.js +1 -1
  408. package/dist/index.es251.js +1 -1
  409. package/dist/index.es252.js +1 -1
  410. package/dist/index.es254.js +1 -1
  411. package/dist/index.es257.js +2 -2
  412. package/dist/index.es258.js +1 -1
  413. package/dist/index.es259.js +2 -2
  414. package/dist/index.es26.js +2 -2
  415. package/dist/index.es262.js +1 -1
  416. package/dist/index.es263.js +1 -1
  417. package/dist/index.es265.js +2 -69
  418. package/dist/index.es265.js.map +1 -1
  419. package/dist/index.es266.js +15 -4
  420. package/dist/index.es266.js.map +1 -1
  421. package/dist/index.es267.js +4 -15
  422. package/dist/index.es267.js.map +1 -1
  423. package/dist/index.es268.js +69 -2
  424. package/dist/index.es268.js.map +1 -1
  425. package/dist/index.es27.js +2 -2
  426. package/dist/index.es34.js +2 -2
  427. package/dist/index.es35.js +2 -2
  428. package/dist/index.es38.js +1 -1
  429. package/dist/index.es39.js +1 -1
  430. package/dist/index.es40.js +2 -2
  431. package/dist/index.es42.js +2 -2
  432. package/dist/index.es43.js +2 -2
  433. package/dist/index.es44.js +2 -2
  434. package/dist/index.es46.js +1 -1
  435. package/dist/index.es47.js +2 -2
  436. package/dist/index.es48.js +2 -2
  437. package/dist/index.es50.js +1 -1
  438. package/dist/index.es51.js +1 -1
  439. package/dist/index.es52.js +1 -1
  440. package/dist/index.es56.js +2 -2
  441. package/dist/index.es57.js +3 -3
  442. package/dist/index.es58.js +1 -1
  443. package/dist/index.es60.js +1 -1
  444. package/dist/index.es61.js +1 -1
  445. package/dist/index.es63.js +1 -1
  446. package/dist/index.es69.js +1 -1
  447. package/dist/index.es71.js +6 -6
  448. package/dist/index.es72.js +1 -1
  449. package/dist/index.es82.js +11 -105
  450. package/dist/index.es82.js.map +1 -1
  451. package/dist/index.es83.js +106 -10
  452. package/dist/index.es83.js.map +1 -1
  453. package/dist/index.es84.js +10 -12
  454. package/dist/index.es84.js.map +1 -1
  455. package/dist/index.es88.js +1 -1
  456. package/dist/index.es95.js +1 -1
  457. package/dist/index.es96.js +1 -1
  458. package/dist/index.es97.js +1 -1
  459. package/dist/index.es98.js +1 -1
  460. package/dist/index.es99.js +1 -1
  461. package/package.json +1 -1
  462. package/src/utils/Map.js +3 -9
  463. package/types/utils/Map.js.flow +3 -9
@@ -1 +1 @@
1
- {"version":3,"file":"index.es232.js","sources":["../../../node_modules/@vis.gl/react-maplibre/dist/maplibre/maplibre.js"],"sourcesContent":["import { transformToViewState, applyViewStateToTransform } from \"../utils/transform.js\";\nimport { normalizeStyle } from \"../utils/style-utils.js\";\nimport { deepEqual } from \"../utils/deep-equal.js\";\nconst DEFAULT_STYLE = { version: 8, sources: {}, layers: [] };\nconst pointerEvents = {\n mousedown: 'onMouseDown',\n mouseup: 'onMouseUp',\n mouseover: 'onMouseOver',\n mousemove: 'onMouseMove',\n click: 'onClick',\n dblclick: 'onDblClick',\n mouseenter: 'onMouseEnter',\n mouseleave: 'onMouseLeave',\n mouseout: 'onMouseOut',\n contextmenu: 'onContextMenu',\n touchstart: 'onTouchStart',\n touchend: 'onTouchEnd',\n touchmove: 'onTouchMove',\n touchcancel: 'onTouchCancel'\n};\nconst cameraEvents = {\n movestart: 'onMoveStart',\n move: 'onMove',\n moveend: 'onMoveEnd',\n dragstart: 'onDragStart',\n drag: 'onDrag',\n dragend: 'onDragEnd',\n zoomstart: 'onZoomStart',\n zoom: 'onZoom',\n zoomend: 'onZoomEnd',\n rotatestart: 'onRotateStart',\n rotate: 'onRotate',\n rotateend: 'onRotateEnd',\n pitchstart: 'onPitchStart',\n pitch: 'onPitch',\n pitchend: 'onPitchEnd'\n};\nconst otherEvents = {\n wheel: 'onWheel',\n boxzoomstart: 'onBoxZoomStart',\n boxzoomend: 'onBoxZoomEnd',\n boxzoomcancel: 'onBoxZoomCancel',\n resize: 'onResize',\n load: 'onLoad',\n render: 'onRender',\n idle: 'onIdle',\n remove: 'onRemove',\n data: 'onData',\n styledata: 'onStyleData',\n sourcedata: 'onSourceData',\n error: 'onError'\n};\nconst settingNames = [\n 'minZoom',\n 'maxZoom',\n 'minPitch',\n 'maxPitch',\n 'maxBounds',\n 'projection',\n 'renderWorldCopies'\n];\nconst handlerNames = [\n 'scrollZoom',\n 'boxZoom',\n 'dragRotate',\n 'dragPan',\n 'keyboard',\n 'doubleClickZoom',\n 'touchZoomRotate',\n 'touchPitch'\n];\n/**\n * A wrapper for mapbox-gl's Map class\n */\nclass Maplibre {\n constructor(MapClass, props, container) {\n // mapboxgl.Map instance\n this._map = null;\n // Internal states\n this._internalUpdate = false;\n this._hoveredFeatures = null;\n this._propsedCameraUpdate = null;\n this._styleComponents = {};\n this._onEvent = (e) => {\n // @ts-ignore\n const cb = this.props[otherEvents[e.type]];\n if (cb) {\n cb(e);\n }\n else if (e.type === 'error') {\n console.error(e.error); // eslint-disable-line\n }\n };\n this._onCameraEvent = (e) => {\n if (this._internalUpdate) {\n return;\n }\n e.viewState = this._propsedCameraUpdate || transformToViewState(this._map.transform);\n // @ts-ignore\n const cb = this.props[cameraEvents[e.type]];\n if (cb) {\n cb(e);\n }\n };\n this._onCameraUpdate = (tr) => {\n if (this._internalUpdate) {\n return tr;\n }\n this._propsedCameraUpdate = transformToViewState(tr);\n return applyViewStateToTransform(tr, this.props);\n };\n this._onPointerEvent = (e) => {\n if (e.type === 'mousemove' || e.type === 'mouseout') {\n this._updateHover(e);\n }\n // @ts-ignore\n const cb = this.props[pointerEvents[e.type]];\n if (cb) {\n if (this.props.interactiveLayerIds && e.type !== 'mouseover' && e.type !== 'mouseout') {\n e.features = this._hoveredFeatures || this._queryRenderedFeatures(e.point);\n }\n cb(e);\n delete e.features;\n }\n };\n this._MapClass = MapClass;\n this.props = props;\n this._initialize(container);\n }\n get map() {\n return this._map;\n }\n setProps(props) {\n const oldProps = this.props;\n this.props = props;\n const settingsChanged = this._updateSettings(props, oldProps);\n const sizeChanged = this._updateSize(props);\n const viewStateChanged = this._updateViewState(props);\n this._updateStyle(props, oldProps);\n this._updateStyleComponents(props);\n this._updateHandlers(props, oldProps);\n // If 1) view state has changed to match props and\n // 2) the props change is not triggered by map events,\n // it's driven by an external state change. Redraw immediately\n if (settingsChanged || sizeChanged || (viewStateChanged && !this._map.isMoving())) {\n this.redraw();\n }\n }\n static reuse(props, container) {\n const that = Maplibre.savedMaps.pop();\n if (!that) {\n return null;\n }\n const map = that.map;\n // When reusing the saved map, we need to reparent the map(canvas) and other child nodes\n // intoto the new container from the props.\n // Step 1: reparenting child nodes from old container to new container\n const oldContainer = map.getContainer();\n container.className = oldContainer.className;\n while (oldContainer.childNodes.length > 0) {\n container.appendChild(oldContainer.childNodes[0]);\n }\n // Step 2: replace the internal container with new container from the react component\n // @ts-ignore\n map._container = container;\n // With maplibre-gl as mapLib, map uses ResizeObserver to observe when its container resizes.\n // When reusing the saved map, we need to disconnect the observer and observe the new container.\n // Step 3: telling the ResizeObserver to disconnect and observe the new container\n // @ts-ignore\n const resizeObserver = map._resizeObserver;\n if (resizeObserver) {\n resizeObserver.disconnect();\n resizeObserver.observe(container);\n }\n // Step 4: apply new props\n that.setProps({ ...props, styleDiffing: false });\n map.resize();\n const { initialViewState } = props;\n if (initialViewState) {\n if (initialViewState.bounds) {\n map.fitBounds(initialViewState.bounds, { ...initialViewState.fitBoundsOptions, duration: 0 });\n }\n else {\n that._updateViewState(initialViewState);\n }\n }\n // Simulate load event\n if (map.isStyleLoaded()) {\n map.fire('load');\n }\n else {\n map.once('style.load', () => map.fire('load'));\n }\n // Force reload\n // @ts-ignore\n map._update();\n return that;\n }\n /* eslint-disable complexity,max-statements */\n _initialize(container) {\n const { props } = this;\n const { mapStyle = DEFAULT_STYLE } = props;\n const mapOptions = {\n ...props,\n ...props.initialViewState,\n container,\n style: normalizeStyle(mapStyle)\n };\n const viewState = mapOptions.initialViewState || mapOptions.viewState || mapOptions;\n Object.assign(mapOptions, {\n center: [viewState.longitude || 0, viewState.latitude || 0],\n zoom: viewState.zoom || 0,\n pitch: viewState.pitch || 0,\n bearing: viewState.bearing || 0\n });\n if (props.gl) {\n // eslint-disable-next-line\n const getContext = HTMLCanvasElement.prototype.getContext;\n // Hijack canvas.getContext to return our own WebGLContext\n // This will be called inside the mapboxgl.Map constructor\n // @ts-expect-error\n HTMLCanvasElement.prototype.getContext = () => {\n // Unhijack immediately\n HTMLCanvasElement.prototype.getContext = getContext;\n return props.gl;\n };\n }\n const map = new this._MapClass(mapOptions);\n // Props that are not part of constructor options\n if (viewState.padding) {\n map.setPadding(viewState.padding);\n }\n if (props.cursor) {\n map.getCanvas().style.cursor = props.cursor;\n }\n // add listeners\n map.transformCameraUpdate = this._onCameraUpdate;\n map.on('style.load', () => {\n // Map style has changed, this would have wiped out all settings from props\n this._styleComponents = {\n light: map.getLight(),\n sky: map.getSky(),\n // @ts-ignore getProjection() does not exist in v4\n projection: map.getProjection?.(),\n terrain: map.getTerrain()\n };\n this._updateStyleComponents(this.props);\n });\n map.on('sourcedata', () => {\n // Some sources have loaded, we may need them to attach terrain\n this._updateStyleComponents(this.props);\n });\n for (const eventName in pointerEvents) {\n map.on(eventName, this._onPointerEvent);\n }\n for (const eventName in cameraEvents) {\n map.on(eventName, this._onCameraEvent);\n }\n for (const eventName in otherEvents) {\n map.on(eventName, this._onEvent);\n }\n this._map = map;\n }\n /* eslint-enable complexity,max-statements */\n recycle() {\n // Clean up unnecessary elements before storing for reuse.\n const container = this.map.getContainer();\n const children = container.querySelector('[mapboxgl-children]');\n children?.remove();\n Maplibre.savedMaps.push(this);\n }\n destroy() {\n this._map.remove();\n }\n // Force redraw the map now. Typically resize() and jumpTo() is reflected in the next\n // render cycle, which is managed by Mapbox's animation loop.\n // This removes the synchronization issue caused by requestAnimationFrame.\n redraw() {\n const map = this._map;\n // map._render will throw error if style does not exist\n // https://github.com/mapbox/mapbox-gl-js/blob/fb9fc316da14e99ff4368f3e4faa3888fb43c513\n // /src/ui/map.js#L1834\n if (map.style) {\n // cancel the scheduled update\n if (map._frame) {\n map._frame.cancel();\n map._frame = null;\n }\n // the order is important - render() may schedule another update\n map._render();\n }\n }\n /* Trigger map resize if size is controlled\n @param {object} nextProps\n @returns {bool} true if size has changed\n */\n _updateSize(nextProps) {\n // Check if size is controlled\n const { viewState } = nextProps;\n if (viewState) {\n const map = this._map;\n if (viewState.width !== map.transform.width || viewState.height !== map.transform.height) {\n map.resize();\n return true;\n }\n }\n return false;\n }\n // Adapted from map.jumpTo\n /* Update camera to match props\n @param {object} nextProps\n @param {bool} triggerEvents - should fire camera events\n @returns {bool} true if anything is changed\n */\n _updateViewState(nextProps) {\n const map = this._map;\n const tr = map.transform;\n const isMoving = map.isMoving();\n // Avoid manipulating the real transform when interaction/animation is ongoing\n // as it would interfere with Mapbox's handlers\n if (!isMoving) {\n const changes = applyViewStateToTransform(tr, nextProps);\n if (Object.keys(changes).length > 0) {\n this._internalUpdate = true;\n map.jumpTo(changes);\n this._internalUpdate = false;\n return true;\n }\n }\n return false;\n }\n /* Update camera constraints and projection settings to match props\n @param {object} nextProps\n @param {object} currProps\n @returns {bool} true if anything is changed\n */\n _updateSettings(nextProps, currProps) {\n const map = this._map;\n let changed = false;\n for (const propName of settingNames) {\n if (propName in nextProps && !deepEqual(nextProps[propName], currProps[propName])) {\n changed = true;\n const setter = map[`set${propName[0].toUpperCase()}${propName.slice(1)}`];\n setter?.call(map, nextProps[propName]);\n }\n }\n return changed;\n }\n /* Update map style to match props */\n _updateStyle(nextProps, currProps) {\n if (nextProps.cursor !== currProps.cursor) {\n this._map.getCanvas().style.cursor = nextProps.cursor || '';\n }\n if (nextProps.mapStyle !== currProps.mapStyle) {\n const { mapStyle = DEFAULT_STYLE, styleDiffing = true } = nextProps;\n const options = {\n diff: styleDiffing\n };\n if ('localIdeographFontFamily' in nextProps) {\n // @ts-ignore Mapbox specific prop\n options.localIdeographFontFamily = nextProps.localIdeographFontFamily;\n }\n this._map.setStyle(normalizeStyle(mapStyle), options);\n }\n }\n /* Update fog, light, projection and terrain to match props\n * These props are special because\n * 1. They can not be applied right away. Certain conditions (style loaded, source loaded, etc.) must be met\n * 2. They can be overwritten by mapStyle\n */\n _updateStyleComponents({ light, projection, sky, terrain }) {\n const map = this._map;\n const currProps = this._styleComponents;\n // We can safely manipulate map style once it's loaded\n if (map.style._loaded) {\n if (light && !deepEqual(light, currProps.light)) {\n currProps.light = light;\n map.setLight(light);\n }\n if (projection &&\n !deepEqual(projection, currProps.projection) &&\n projection !== currProps.projection?.type) {\n currProps.projection = typeof projection === 'string' ? { type: projection } : projection;\n // @ts-ignore setProjection does not exist in v4\n map.setProjection?.(currProps.projection);\n }\n if (sky && !deepEqual(sky, currProps.sky)) {\n currProps.sky = sky;\n map.setSky(sky);\n }\n if (terrain !== undefined && !deepEqual(terrain, currProps.terrain)) {\n if (!terrain || map.getSource(terrain.source)) {\n currProps.terrain = terrain;\n map.setTerrain(terrain);\n }\n }\n }\n }\n /* Update interaction handlers to match props */\n _updateHandlers(nextProps, currProps) {\n const map = this._map;\n for (const propName of handlerNames) {\n const newValue = nextProps[propName] ?? true;\n const oldValue = currProps[propName] ?? true;\n if (!deepEqual(newValue, oldValue)) {\n if (newValue) {\n map[propName].enable(newValue);\n }\n else {\n map[propName].disable();\n }\n }\n }\n }\n _queryRenderedFeatures(point) {\n const map = this._map;\n const { interactiveLayerIds = [] } = this.props;\n try {\n return map.queryRenderedFeatures(point, {\n layers: interactiveLayerIds.filter(map.getLayer.bind(map))\n });\n }\n catch {\n // May fail if style is not loaded\n return [];\n }\n }\n _updateHover(e) {\n const { props } = this;\n const shouldTrackHoveredFeatures = props.interactiveLayerIds && (props.onMouseMove || props.onMouseEnter || props.onMouseLeave);\n if (shouldTrackHoveredFeatures) {\n const eventType = e.type;\n const wasHovering = this._hoveredFeatures?.length > 0;\n const features = this._queryRenderedFeatures(e.point);\n const isHovering = features.length > 0;\n if (!isHovering && wasHovering) {\n e.type = 'mouseleave';\n this._onPointerEvent(e);\n }\n this._hoveredFeatures = features;\n if (isHovering && !wasHovering) {\n e.type = 'mouseenter';\n this._onPointerEvent(e);\n }\n e.type = eventType;\n }\n else {\n this._hoveredFeatures = null;\n }\n }\n}\nMaplibre.savedMaps = [];\nexport default Maplibre;\n//# sourceMappingURL=maplibre.js.map"],"names":["DEFAULT_STYLE","pointerEvents","cameraEvents","otherEvents","settingNames","handlerNames","Maplibre","MapClass","props","container","cb","transformToViewState","tr","applyViewStateToTransform","oldProps","settingsChanged","sizeChanged","viewStateChanged","that","map","oldContainer","resizeObserver","initialViewState","mapStyle","mapOptions","normalizeStyle","viewState","getContext","eventName","nextProps","changes","currProps","changed","propName","deepEqual","styleDiffing","options","light","projection","sky","terrain","newValue","oldValue","point","interactiveLayerIds","e","eventType","wasHovering","features","isHovering"],"mappings":";;;AAGA,MAAMA,IAAgB,EAAE,SAAS,GAAG,SAAS,CAAA,GAAI,QAAQ,GAAC,GACpDC,IAAgB;AAAA,EAClB,WAAW;AAAA,EACX,SAAS;AAAA,EACT,WAAW;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AAAA,EACP,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,UAAU;AAAA,EACV,aAAa;AAAA,EACb,YAAY;AAAA,EACZ,UAAU;AAAA,EACV,WAAW;AAAA,EACX,aAAa;AACjB,GACMC,IAAe;AAAA,EACjB,WAAW;AAAA,EACX,MAAM;AAAA,EACN,SAAS;AAAA,EACT,WAAW;AAAA,EACX,MAAM;AAAA,EACN,SAAS;AAAA,EACT,WAAW;AAAA,EACX,MAAM;AAAA,EACN,SAAS;AAAA,EACT,aAAa;AAAA,EACb,QAAQ;AAAA,EACR,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,OAAO;AAAA,EACP,UAAU;AACd,GACMC,IAAc;AAAA,EAChB,OAAO;AAAA,EACP,cAAc;AAAA,EACd,YAAY;AAAA,EACZ,eAAe;AAAA,EACf,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,OAAO;AACX,GACMC,IAAe;AAAA,EACjB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACJ,GACMC,IAAe;AAAA,EACjB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACJ;AAIA,MAAMC,EAAS;AAAA,EACX,YAAYC,GAAUC,GAAOC,GAAW;AAEpC,SAAK,OAAO,MAEZ,KAAK,kBAAkB,IACvB,KAAK,mBAAmB,MACx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,MACzBD,IACAtB,EAAIc,CAAQ,EAAE,OAAOQ,CAAQ,IAG7BtB,EAAIc,CAAQ,EAAE,QAAA;AAAA,IAG1B;AAAA,EACJ;AAAA,EACA,uBAAuBU,GAAO;AAC1B,UAAMxB,IAAM,KAAK,MACX,EAAE,qBAAAyB,IAAsB,GAAC,IAAM,KAAK;AAC1C,QAAI;AACA,aAAOzB,EAAI,sBAAsBwB,GAAO;AAAA,QACpC,QAAQC,EAAoB,OAAOzB,EAAI,SAAS,KAAKA,CAAG,CAAC;AAAA,MAAA,CAC5D;AAAA,IACL,QACM;AAEF,aAAO,CAAA;AAAA,IACX;AAAA,EACJ;AAAA,EACA,aAAa0B,GAAG;AACZ,UAAM,EAAE,OAAArC,MAAU;AAElB,QADmCA,EAAM,wBAAwBA,EAAM,eAAeA,EAAM,gBAAgBA,EAAM,eAClF;AAC5B,YAAMsC,IAAYD,EAAE,MACdE,IAAc,KAAK,kBAAkB,SAAS,GAC9CC,IAAW,KAAK,uBAAuBH,EAAE,KAAK,GAC9CI,IAAaD,EAAS,SAAS;AACrC,MAAI,CAACC,KAAcF,MACfF,EAAE,OAAO,cACT,KAAK,gBAAgBA,CAAC,IAE1B,KAAK,mBAAmBG,GACpBC,KAAc,CAACF,MACfF,EAAE,OAAO,cACT,KAAK,gBAAgBA,CAAC,IAE1BA,EAAE,OAAOC;AAAA,IACb;AAEI,WAAK,mBAAmB;AAAA,EAEhC;AACJ;AACAxC,EAAS,YAAY,CAAA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es232.js","sources":["../node_modules/underscore/modules/_flatten.js"],"sourcesContent":["import getLength from './_getLength.js';\nimport isArrayLike from './_isArrayLike.js';\nimport isArray from './isArray.js';\nimport isArguments from './isArguments.js';\n\n// Internal implementation of a recursive `flatten` function.\nexport default function flatten(input, depth, strict, output) {\n output = output || [];\n if (!depth && depth !== 0) {\n depth = Infinity;\n } else if (depth <= 0) {\n return output.concat(input);\n }\n var idx = output.length;\n for (var i = 0, length = getLength(input); i < length; i++) {\n var value = input[i];\n if (isArrayLike(value) && (isArray(value) || isArguments(value))) {\n // Flatten current level of array or arguments object.\n if (depth > 1) {\n flatten(value, depth - 1, strict, output);\n idx = output.length;\n } else {\n var j = 0, len = value.length;\n while (j < len) output[idx++] = value[j++];\n }\n } else if (!strict) {\n output[idx++] = value;\n }\n }\n return output;\n}\n"],"names":["flatten","input","depth","strict","output","idx","i","length","getLength","value","isArrayLike","isArray","isArguments","j","len"],"mappings":";;;;AAMA,SAAwBA,EAAQC,GAAOC,GAAOC,GAAQC,GAAQ;AAE5D,MADAA,IAASA,KAAU,CAAA,GACf,CAACF,KAASA,MAAU;AACtB,IAAAA,IAAQ;AAAA,WACCA,KAAS;AAClB,WAAOE,EAAO,OAAOH,CAAK;AAG5B,WADII,IAAMD,EAAO,QACRE,IAAI,GAAGC,IAASC,EAAUP,CAAK,GAAGK,IAAIC,GAAQD,KAAK;AAC1D,QAAIG,IAAQR,EAAMK,CAAC;AACnB,QAAII,EAAYD,CAAK,MAAME,EAAQF,CAAK,KAAKG,EAAYH,CAAK;AAE5D,UAAIP,IAAQ;AACV,QAAAF,EAAQS,GAAOP,IAAQ,GAAGC,GAAQC,CAAM,GACxCC,IAAMD,EAAO;AAAA;AAGb,iBADIS,IAAI,GAAGC,IAAML,EAAM,QAChBI,IAAIC,IAAK,CAAAV,EAAOC,GAAK,IAAII,EAAMI,GAAG;AAAA,QAE7C,CAAYV,MACVC,EAAOC,GAAK,IAAII;AAAA,EAEpB;AACA,SAAOL;AACT;","x_google_ignoreList":[0]}
@@ -1,46 +1,14 @@
1
- const s = [
2
- "setMaxBounds",
3
- "setMinZoom",
4
- "setMaxZoom",
5
- "setMinPitch",
6
- "setMaxPitch",
7
- "setRenderWorldCopies",
8
- "setProjection",
9
- "setStyle",
10
- "addSource",
11
- "removeSource",
12
- "addLayer",
13
- "removeLayer",
14
- "setLayerZoomRange",
15
- "setFilter",
16
- "setPaintProperty",
17
- "setLayoutProperty",
18
- "setLight",
19
- "setTerrain",
20
- "setFog",
21
- "remove"
22
- ];
23
- function i(r) {
24
- if (!r)
25
- return null;
26
- const o = r.map, t = {
27
- getMap: () => o
1
+ import u from "./index.es225.js";
2
+ import i from "./index.es216.js";
3
+ function g(r) {
4
+ return function(t, e, f) {
5
+ e = u(e, f);
6
+ for (var o = i(t), n = r > 0 ? 0 : o - 1; n >= 0 && n < o; n += r)
7
+ if (e(t[n], n, t)) return n;
8
+ return -1;
28
9
  };
29
- for (const e of n(o))
30
- !(e in t) && !s.includes(e) && (t[e] = o[e].bind(o));
31
- return t;
32
- }
33
- function n(r) {
34
- const o = /* @__PURE__ */ new Set();
35
- let t = r;
36
- for (; t; ) {
37
- for (const e of Object.getOwnPropertyNames(t))
38
- e[0] !== "_" && typeof r[e] == "function" && e !== "fire" && e !== "setEventedParent" && o.add(e);
39
- t = Object.getPrototypeOf(t);
40
- }
41
- return Array.from(o);
42
10
  }
43
11
  export {
44
- i as default
12
+ g as default
45
13
  };
46
14
  //# sourceMappingURL=index.es233.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es233.js","sources":["../../../node_modules/@vis.gl/react-maplibre/dist/maplibre/create-ref.js"],"sourcesContent":["/** These methods may break the react binding if called directly */\nconst skipMethods = [\n 'setMaxBounds',\n 'setMinZoom',\n 'setMaxZoom',\n 'setMinPitch',\n 'setMaxPitch',\n 'setRenderWorldCopies',\n 'setProjection',\n 'setStyle',\n 'addSource',\n 'removeSource',\n 'addLayer',\n 'removeLayer',\n 'setLayerZoomRange',\n 'setFilter',\n 'setPaintProperty',\n 'setLayoutProperty',\n 'setLight',\n 'setTerrain',\n 'setFog',\n 'remove'\n];\nexport default function createRef(mapInstance) {\n if (!mapInstance) {\n return null;\n }\n const map = mapInstance.map;\n const result = {\n getMap: () => map\n };\n for (const key of getMethodNames(map)) {\n // @ts-expect-error\n if (!(key in result) && !skipMethods.includes(key)) {\n result[key] = map[key].bind(map);\n }\n }\n return result;\n}\nfunction getMethodNames(obj) {\n const result = new Set();\n let proto = obj;\n while (proto) {\n for (const key of Object.getOwnPropertyNames(proto)) {\n if (key[0] !== '_' &&\n typeof obj[key] === 'function' &&\n key !== 'fire' &&\n key !== 'setEventedParent') {\n result.add(key);\n }\n }\n proto = Object.getPrototypeOf(proto);\n }\n return Array.from(result);\n}\n//# sourceMappingURL=create-ref.js.map"],"names":["skipMethods","createRef","mapInstance","map","result","key","getMethodNames","obj","proto"],"mappings":"AACA,MAAMA,IAAc;AAAA,EAChB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACJ;AACA,SAAwBC,EAAUC,GAAa;AAC3C,MAAI,CAACA;AACD,WAAO;AAEX,QAAMC,IAAMD,EAAY,KAClBE,IAAS;AAAA,IACX,QAAQ,MAAMD;AAAA,EAAA;AAElB,aAAWE,KAAOC,EAAeH,CAAG;AAEhC,IAAI,EAAEE,KAAOD,MAAW,CAACJ,EAAY,SAASK,CAAG,MAC7CD,EAAOC,CAAG,IAAIF,EAAIE,CAAG,EAAE,KAAKF,CAAG;AAGvC,SAAOC;AACX;AACA,SAASE,EAAeC,GAAK;AACzB,QAAMH,wBAAa,IAAA;AACnB,MAAII,IAAQD;AACZ,SAAOC,KAAO;AACV,eAAWH,KAAO,OAAO,oBAAoBG,CAAK;AAC9C,MAAIH,EAAI,CAAC,MAAM,OACX,OAAOE,EAAIF,CAAG,KAAM,cACpBA,MAAQ,UACRA,MAAQ,sBACRD,EAAO,IAAIC,CAAG;AAGtB,IAAAG,IAAQ,OAAO,eAAeA,CAAK;AAAA,EACvC;AACA,SAAO,MAAM,KAAKJ,CAAM;AAC5B;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es233.js","sources":["../node_modules/underscore/modules/_createPredicateIndexFinder.js"],"sourcesContent":["import cb from './_cb.js';\nimport getLength from './_getLength.js';\n\n// Internal function to generate `_.findIndex` and `_.findLastIndex`.\nexport default function createPredicateIndexFinder(dir) {\n return function(array, predicate, context) {\n predicate = cb(predicate, context);\n var length = getLength(array);\n var index = dir > 0 ? 0 : length - 1;\n for (; index >= 0 && index < length; index += dir) {\n if (predicate(array[index], index, array)) return index;\n }\n return -1;\n };\n}\n"],"names":["createPredicateIndexFinder","dir","array","predicate","context","cb","length","getLength","index"],"mappings":";;AAIA,SAAwBA,EAA2BC,GAAK;AACtD,SAAO,SAASC,GAAOC,GAAWC,GAAS;AACzC,IAAAD,IAAYE,EAAGF,GAAWC,CAAO;AAGjC,aAFIE,IAASC,EAAUL,CAAK,GACxBM,IAAQP,IAAM,IAAI,IAAIK,IAAS,GAC5BE,KAAS,KAAKA,IAAQF,GAAQE,KAASP;AAC5C,UAAIE,EAAUD,EAAMM,CAAK,GAAGA,GAAON,CAAK,EAAG,QAAOM;AAEpD,WAAO;AAAA,EACT;AACF;","x_google_ignoreList":[0]}
@@ -1,6 +1,21 @@
1
- import { useLayoutEffect as e, useEffect as t } from "react";
2
- const o = typeof document < "u" ? e : t;
1
+ import c from "./index.es216.js";
2
+ import { slice as m } from "./index.es37.js";
3
+ import p from "./index.es105.js";
4
+ function M(o, l, u) {
5
+ return function(t, f, e) {
6
+ var r = 0, n = c(t);
7
+ if (typeof e == "number")
8
+ o > 0 ? r = e >= 0 ? e : Math.max(e + n, r) : n = e >= 0 ? Math.min(e + 1, n) : e + n + 1;
9
+ else if (u && e && n)
10
+ return e = u(t, f), t[e] === f ? e : -1;
11
+ if (f !== f)
12
+ return e = l(m.call(t, r, n), p), e >= 0 ? e + r : -1;
13
+ for (e = o > 0 ? r : n - 1; e >= 0 && e < n; e += o)
14
+ if (t[e] === f) return e;
15
+ return -1;
16
+ };
17
+ }
3
18
  export {
4
- o as default
19
+ M as default
5
20
  };
6
21
  //# sourceMappingURL=index.es234.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es234.js","sources":["../../../node_modules/@vis.gl/react-maplibre/dist/utils/use-isomorphic-layout-effect.js"],"sourcesContent":["// From https://github.com/streamich/react-use/blob/master/src/useIsomorphicLayoutEffect.ts\n// useLayoutEffect but does not trigger warning in server-side rendering\nimport { useEffect, useLayoutEffect } from 'react';\nconst useIsomorphicLayoutEffect = typeof document !== 'undefined' ? useLayoutEffect : useEffect;\nexport default useIsomorphicLayoutEffect;\n//# sourceMappingURL=use-isomorphic-layout-effect.js.map"],"names":["useIsomorphicLayoutEffect","useLayoutEffect","useEffect"],"mappings":";AAGA,MAAMA,IAA4B,OAAO,WAAa,MAAcC,IAAkBC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es234.js","sources":["../node_modules/underscore/modules/_createIndexFinder.js"],"sourcesContent":["import getLength from './_getLength.js';\nimport { slice } from './_setup.js';\nimport isNaN from './isNaN.js';\n\n// Internal function to generate the `_.indexOf` and `_.lastIndexOf` functions.\nexport default function createIndexFinder(dir, predicateFind, sortedIndex) {\n return function(array, item, idx) {\n var i = 0, length = getLength(array);\n if (typeof idx == 'number') {\n if (dir > 0) {\n i = idx >= 0 ? idx : Math.max(idx + length, i);\n } else {\n length = idx >= 0 ? Math.min(idx + 1, length) : idx + length + 1;\n }\n } else if (sortedIndex && idx && length) {\n idx = sortedIndex(array, item);\n return array[idx] === item ? idx : -1;\n }\n if (item !== item) {\n idx = predicateFind(slice.call(array, i, length), isNaN);\n return idx >= 0 ? idx + i : -1;\n }\n for (idx = dir > 0 ? i : length - 1; idx >= 0 && idx < length; idx += dir) {\n if (array[idx] === item) return idx;\n }\n return -1;\n };\n}\n"],"names":["createIndexFinder","dir","predicateFind","sortedIndex","array","item","idx","i","length","getLength","slice","isNaN"],"mappings":";;;AAKA,SAAwBA,EAAkBC,GAAKC,GAAeC,GAAa;AACzE,SAAO,SAASC,GAAOC,GAAMC,GAAK;AAChC,QAAIC,IAAI,GAAGC,IAASC,EAAUL,CAAK;AACnC,QAAI,OAAOE,KAAO;AAChB,MAAIL,IAAM,IACRM,IAAID,KAAO,IAAIA,IAAM,KAAK,IAAIA,IAAME,GAAQD,CAAC,IAE7CC,IAASF,KAAO,IAAI,KAAK,IAAIA,IAAM,GAAGE,CAAM,IAAIF,IAAME,IAAS;AAAA,aAExDL,KAAeG,KAAOE;AAC/B,aAAAF,IAAMH,EAAYC,GAAOC,CAAI,GACtBD,EAAME,CAAG,MAAMD,IAAOC,IAAM;AAErC,QAAID,MAASA;AACX,aAAAC,IAAMJ,EAAcQ,EAAM,KAAKN,GAAOG,GAAGC,CAAM,GAAGG,CAAK,GAChDL,KAAO,IAAIA,IAAMC,IAAI;AAE9B,SAAKD,IAAML,IAAM,IAAIM,IAAIC,IAAS,GAAGF,KAAO,KAAKA,IAAME,GAAQF,KAAOL;AACpE,UAAIG,EAAME,CAAG,MAAMD,EAAM,QAAOC;AAElC,WAAO;AAAA,EACT;AACF;","x_google_ignoreList":[0]}
@@ -1,13 +1,6 @@
1
- function i(e, u) {
2
- const { RTLTextPlugin: t, maxParallelImageRequests: l, workerCount: o, workerUrl: r } = u;
3
- if (t && e.getRTLTextPluginStatus && e.getRTLTextPluginStatus() === "unavailable") {
4
- const { pluginUrl: n, lazy: a = !0 } = typeof t == "string" ? { pluginUrl: t } : t;
5
- e.setRTLTextPlugin(n, (s) => {
6
- s && console.error(s);
7
- }, a);
8
- }
9
- l !== void 0 && e.setMaxParallelImageRequests(l), o !== void 0 && e.setWorkerCount(o), r !== void 0 && e.setWorkerUrl(r);
10
- }
1
+ import e from "./index.es246.js";
2
+ import r from "./index.es216.js";
3
+ const i = e(r);
11
4
  export {
12
5
  i as default
13
6
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.es235.js","sources":["../../../node_modules/@vis.gl/react-maplibre/dist/utils/set-globals.js"],"sourcesContent":["export default function setGlobals(mapLib, props) {\n const { RTLTextPlugin, maxParallelImageRequests, workerCount, workerUrl } = props;\n if (RTLTextPlugin &&\n mapLib.getRTLTextPluginStatus &&\n mapLib.getRTLTextPluginStatus() === 'unavailable') {\n const { pluginUrl, lazy = true } = typeof RTLTextPlugin === 'string' ? { pluginUrl: RTLTextPlugin } : RTLTextPlugin;\n mapLib.setRTLTextPlugin(pluginUrl, (error) => {\n if (error) {\n // eslint-disable-next-line\n console.error(error);\n }\n }, lazy);\n }\n if (maxParallelImageRequests !== undefined) {\n mapLib.setMaxParallelImageRequests(maxParallelImageRequests);\n }\n if (workerCount !== undefined) {\n mapLib.setWorkerCount(workerCount);\n }\n if (workerUrl !== undefined) {\n mapLib.setWorkerUrl(workerUrl);\n }\n}\n//# sourceMappingURL=set-globals.js.map"],"names":["setGlobals","mapLib","props","RTLTextPlugin","maxParallelImageRequests","workerCount","workerUrl","pluginUrl","lazy","error"],"mappings":"AAAA,SAAwBA,EAAWC,GAAQC,GAAO;AAC9C,QAAM,EAAE,eAAAC,GAAe,0BAAAC,GAA0B,aAAAC,GAAa,WAAAC,MAAcJ;AAC5E,MAAIC,KACAF,EAAO,0BACPA,EAAO,uBAAA,MAA6B,eAAe;AACnD,UAAM,EAAE,WAAAM,GAAW,MAAAC,IAAO,OAAS,OAAOL,KAAkB,WAAW,EAAE,WAAWA,EAAA,IAAkBA;AACtG,IAAAF,EAAO,iBAAiBM,GAAW,CAACE,MAAU;AAC1C,MAAIA,KAEA,QAAQ,MAAMA,CAAK;AAAA,IAE3B,GAAGD,CAAI;AAAA,EACX;AACA,EAAIJ,MAA6B,UAC7BH,EAAO,4BAA4BG,CAAwB,GAE3DC,MAAgB,UAChBJ,EAAO,eAAeI,CAAW,GAEjCC,MAAc,UACdL,EAAO,aAAaK,CAAS;AAErC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es235.js","sources":["../node_modules/underscore/modules/_isArrayLike.js"],"sourcesContent":["import createSizePropertyCheck from './_createSizePropertyCheck.js';\nimport getLength from './_getLength.js';\n\n// Internal helper for collection methods to determine whether a collection\n// should be iterated as an array or as an object.\n// Related: https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength\n// Avoids a very nasty iOS 8 JIT bug on ARM-64. #2094\nexport default createSizePropertyCheck(getLength);\n"],"names":["isArrayLike","createSizePropertyCheck","getLength"],"mappings":";;AAOA,MAAAA,IAAeC,EAAwBC,CAAS;","x_google_ignoreList":[0]}
@@ -1,14 +1,21 @@
1
- const r = /box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;
2
- function c(n, t) {
3
- if (!n || !t)
4
- return;
5
- const o = n.style;
6
- for (const e in t) {
7
- const i = t[e];
8
- Number.isFinite(i) && !r.test(e) ? o[e] = `${i}px` : o[e] = i;
9
- }
1
+ import p from "./index.es235.js";
2
+ import s from "./index.es111.js";
3
+ import g from "./index.es226.js";
4
+ function k(i) {
5
+ var l = function(r, a, n, f) {
6
+ var e = !p(r) && s(r), u = (e || r).length, t = i > 0 ? 0 : u - 1;
7
+ for (f || (n = r[e ? e[t] : t], t += i); t >= 0 && t < u; t += i) {
8
+ var c = e ? e[t] : t;
9
+ n = a(n, r[c], c, r);
10
+ }
11
+ return n;
12
+ };
13
+ return function(r, a, n, f) {
14
+ var e = arguments.length >= 3;
15
+ return l(r, g(a, f, 4), n, e);
16
+ };
10
17
  }
11
18
  export {
12
- c as applyReactStyle
19
+ k as default
13
20
  };
14
21
  //# sourceMappingURL=index.es236.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es236.js","sources":["../../../node_modules/@vis.gl/react-maplibre/dist/utils/apply-react-style.js"],"sourcesContent":["// This is a simplified version of\n// https://github.com/facebook/react/blob/4131af3e4bf52f3a003537ec95a1655147c81270/src/renderers/dom/shared/CSSPropertyOperations.js#L62\nconst unitlessNumber = /box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;\nexport function applyReactStyle(element, styles) {\n if (!element || !styles) {\n return;\n }\n const style = element.style;\n for (const key in styles) {\n const value = styles[key];\n if (Number.isFinite(value) && !unitlessNumber.test(key)) {\n style[key] = `${value}px`;\n }\n else {\n style[key] = value;\n }\n }\n}\n//# sourceMappingURL=apply-react-style.js.map"],"names":["unitlessNumber","applyReactStyle","element","styles","style","key","value"],"mappings":"AAEA,MAAMA,IAAiB;AAChB,SAASC,EAAgBC,GAASC,GAAQ;AAC7C,MAAI,CAACD,KAAW,CAACC;AACb;AAEJ,QAAMC,IAAQF,EAAQ;AACtB,aAAWG,KAAOF,GAAQ;AACtB,UAAMG,IAAQH,EAAOE,CAAG;AACxB,IAAI,OAAO,SAASC,CAAK,KAAK,CAACN,EAAe,KAAKK,CAAG,IAClDD,EAAMC,CAAG,IAAI,GAAGC,CAAK,OAGrBF,EAAMC,CAAG,IAAIC;AAAA,EAErB;AACJ;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es236.js","sources":["../node_modules/underscore/modules/_createReduce.js"],"sourcesContent":["import isArrayLike from './_isArrayLike.js';\nimport keys from './keys.js';\nimport optimizeCb from './_optimizeCb.js';\n\n// Internal helper to create a reducing function, iterating left or right.\nexport default function createReduce(dir) {\n // Wrap code that reassigns argument variables in a separate function than\n // the one that accesses `arguments.length` to avoid a perf hit. (#1991)\n var reducer = function(obj, iteratee, memo, initial) {\n var _keys = !isArrayLike(obj) && keys(obj),\n length = (_keys || obj).length,\n index = dir > 0 ? 0 : length - 1;\n if (!initial) {\n memo = obj[_keys ? _keys[index] : index];\n index += dir;\n }\n for (; index >= 0 && index < length; index += dir) {\n var currentKey = _keys ? _keys[index] : index;\n memo = iteratee(memo, obj[currentKey], currentKey, obj);\n }\n return memo;\n };\n\n return function(obj, iteratee, memo, context) {\n var initial = arguments.length >= 3;\n return reducer(obj, optimizeCb(iteratee, context, 4), memo, initial);\n };\n}\n"],"names":["createReduce","dir","reducer","obj","iteratee","memo","initial","_keys","isArrayLike","keys","length","index","currentKey","context","optimizeCb"],"mappings":";;;AAKA,SAAwBA,EAAaC,GAAK;AAGxC,MAAIC,IAAU,SAASC,GAAKC,GAAUC,GAAMC,GAAS;AACnD,QAAIC,IAAQ,CAACC,EAAYL,CAAG,KAAKM,EAAKN,CAAG,GACrCO,KAAUH,KAASJ,GAAK,QACxBQ,IAAQV,IAAM,IAAI,IAAIS,IAAS;AAKnC,SAJKJ,MACHD,IAAOF,EAAII,IAAQA,EAAMI,CAAK,IAAIA,CAAK,GACvCA,KAASV,IAEJU,KAAS,KAAKA,IAAQD,GAAQC,KAASV,GAAK;AACjD,UAAIW,IAAaL,IAAQA,EAAMI,CAAK,IAAIA;AACxC,MAAAN,IAAOD,EAASC,GAAMF,EAAIS,CAAU,GAAGA,GAAYT,CAAG;AAAA,IACxD;AACA,WAAOE;AAAA,EACT;AAEA,SAAO,SAASF,GAAKC,GAAUC,GAAMQ,GAAS;AAC5C,QAAIP,IAAU,UAAU,UAAU;AAClC,WAAOJ,EAAQC,GAAKW,EAAWV,GAAUS,GAAS,CAAC,GAAGR,GAAMC,CAAO;AAAA,EACrE;AACF;","x_google_ignoreList":[0]}
@@ -1,34 +1,15 @@
1
- function i(e, r) {
2
- const t = Array.isArray(e) ? e[0] : e ? e.x : 0, s = Array.isArray(e) ? e[1] : e ? e.y : 0, n = Array.isArray(r) ? r[0] : r ? r.x : 0, f = Array.isArray(r) ? r[1] : r ? r.y : 0;
3
- return t === n && s === f;
4
- }
5
- function y(e, r) {
6
- if (e === r)
7
- return !0;
8
- if (!e || !r)
9
- return !1;
10
- if (Array.isArray(e)) {
11
- if (!Array.isArray(r) || e.length !== r.length)
12
- return !1;
13
- for (let t = 0; t < e.length; t++)
14
- if (!y(e[t], r[t]))
15
- return !1;
16
- return !0;
17
- } else if (Array.isArray(r))
18
- return !1;
19
- if (typeof e == "object" && typeof r == "object") {
20
- const t = Object.keys(e), s = Object.keys(r);
21
- if (t.length !== s.length)
22
- return !1;
23
- for (const n of t)
24
- if (!r.hasOwnProperty(n) || !y(e[n], r[n]))
25
- return !1;
26
- return !0;
27
- }
28
- return !1;
1
+ import i from "./index.es225.js";
2
+ import a from "./index.es155.js";
3
+ function g(f, t) {
4
+ return function(n, r, c) {
5
+ var o = t ? [[], []] : {};
6
+ return r = i(r, c), a(n, function(u, m) {
7
+ var p = r(u, m, n);
8
+ f(o, u, p);
9
+ }), o;
10
+ };
29
11
  }
30
12
  export {
31
- i as arePointsEqual,
32
- y as deepEqual
13
+ g as default
33
14
  };
34
15
  //# sourceMappingURL=index.es237.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es237.js","sources":["../../../node_modules/@vis.gl/react-maplibre/dist/utils/deep-equal.js"],"sourcesContent":["/**\n * Compare two points\n * @param a\n * @param b\n * @returns true if the points are equal\n */\nexport function arePointsEqual(a, b) {\n const ax = Array.isArray(a) ? a[0] : a ? a.x : 0;\n const ay = Array.isArray(a) ? a[1] : a ? a.y : 0;\n const bx = Array.isArray(b) ? b[0] : b ? b.x : 0;\n const by = Array.isArray(b) ? b[1] : b ? b.y : 0;\n return ax === bx && ay === by;\n}\n/* eslint-disable complexity */\n/**\n * Compare any two objects\n * @param a\n * @param b\n * @returns true if the objects are deep equal\n */\nexport function deepEqual(a, b) {\n if (a === b) {\n return true;\n }\n if (!a || !b) {\n return false;\n }\n if (Array.isArray(a)) {\n if (!Array.isArray(b) || a.length !== b.length) {\n return false;\n }\n for (let i = 0; i < a.length; i++) {\n if (!deepEqual(a[i], b[i])) {\n return false;\n }\n }\n return true;\n }\n else if (Array.isArray(b)) {\n return false;\n }\n if (typeof a === 'object' && typeof b === 'object') {\n const aKeys = Object.keys(a);\n const bKeys = Object.keys(b);\n if (aKeys.length !== bKeys.length) {\n return false;\n }\n for (const key of aKeys) {\n if (!b.hasOwnProperty(key)) {\n return false;\n }\n if (!deepEqual(a[key], b[key])) {\n return false;\n }\n }\n return true;\n }\n return false;\n}\n//# sourceMappingURL=deep-equal.js.map"],"names":["arePointsEqual","a","b","ax","ay","bx","by","deepEqual","i","aKeys","bKeys","key"],"mappings":"AAMO,SAASA,EAAeC,GAAGC,GAAG;AACjC,QAAMC,IAAK,MAAM,QAAQF,CAAC,IAAIA,EAAE,CAAC,IAAIA,IAAIA,EAAE,IAAI,GACzCG,IAAK,MAAM,QAAQH,CAAC,IAAIA,EAAE,CAAC,IAAIA,IAAIA,EAAE,IAAI,GACzCI,IAAK,MAAM,QAAQH,CAAC,IAAIA,EAAE,CAAC,IAAIA,IAAIA,EAAE,IAAI,GACzCI,IAAK,MAAM,QAAQJ,CAAC,IAAIA,EAAE,CAAC,IAAIA,IAAIA,EAAE,IAAI;AAC/C,SAAOC,MAAOE,KAAMD,MAAOE;AAC/B;AAQO,SAASC,EAAUN,GAAGC,GAAG;AAC5B,MAAID,MAAMC;AACN,WAAO;AAEX,MAAI,CAACD,KAAK,CAACC;AACP,WAAO;AAEX,MAAI,MAAM,QAAQD,CAAC,GAAG;AAClB,QAAI,CAAC,MAAM,QAAQC,CAAC,KAAKD,EAAE,WAAWC,EAAE;AACpC,aAAO;AAEX,aAASM,IAAI,GAAGA,IAAIP,EAAE,QAAQO;AAC1B,UAAI,CAACD,EAAUN,EAAEO,CAAC,GAAGN,EAAEM,CAAC,CAAC;AACrB,eAAO;AAGf,WAAO;AAAA,EACX,WACS,MAAM,QAAQN,CAAC;AACpB,WAAO;AAEX,MAAI,OAAOD,KAAM,YAAY,OAAOC,KAAM,UAAU;AAChD,UAAMO,IAAQ,OAAO,KAAKR,CAAC,GACrBS,IAAQ,OAAO,KAAKR,CAAC;AAC3B,QAAIO,EAAM,WAAWC,EAAM;AACvB,aAAO;AAEX,eAAWC,KAAOF;AAId,UAHI,CAACP,EAAE,eAAeS,CAAG,KAGrB,CAACJ,EAAUN,EAAEU,CAAG,GAAGT,EAAES,CAAG,CAAC;AACzB,eAAO;AAGf,WAAO;AAAA,EACX;AACA,SAAO;AACX;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es237.js","sources":["../node_modules/underscore/modules/_group.js"],"sourcesContent":["import cb from './_cb.js';\nimport each from './each.js';\n\n// An internal function used for aggregate \"group by\" operations.\nexport default function group(behavior, partition) {\n return function(obj, iteratee, context) {\n var result = partition ? [[], []] : {};\n iteratee = cb(iteratee, context);\n each(obj, function(value, index) {\n var key = iteratee(value, index, obj);\n behavior(result, value, key);\n });\n return result;\n };\n}\n"],"names":["group","behavior","partition","obj","iteratee","context","result","cb","each","value","index","key"],"mappings":";;AAIA,SAAwBA,EAAMC,GAAUC,GAAW;AACjD,SAAO,SAASC,GAAKC,GAAUC,GAAS;AACtC,QAAIC,IAASJ,IAAY,CAAC,CAAA,GAAI,CAAA,CAAE,IAAI,CAAA;AACpC,WAAAE,IAAWG,EAAGH,GAAUC,CAAO,GAC/BG,EAAKL,GAAK,SAASM,GAAOC,GAAO;AAC/B,UAAIC,IAAMP,EAASK,GAAOC,GAAOP,CAAG;AACpC,MAAAF,EAASK,GAAQG,GAAOE,CAAG;AAAA,IAC7B,CAAC,GACML;AAAA,EACT;AACF;","x_google_ignoreList":[0]}
@@ -1,17 +1,7 @@
1
- function c(t, o) {
2
- if (t === o)
3
- return null;
4
- const f = r(t), i = r(o), n = [];
5
- for (const s of i)
6
- f.has(s) || n.push(s);
7
- for (const s of f)
8
- i.has(s) || n.push(s);
9
- return n.length === 0 ? null : n;
10
- }
11
- function r(t) {
12
- return new Set(t ? t.trim().split(/\s+/) : []);
1
+ function u(t, e, n) {
2
+ return e in n;
13
3
  }
14
4
  export {
15
- c as compareClassNames
5
+ u as default
16
6
  };
17
7
  //# sourceMappingURL=index.es238.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es238.js","sources":["../../../node_modules/@vis.gl/react-maplibre/dist/utils/compare-class-names.js"],"sourcesContent":["/** Compare two classNames string and return the difference */\nexport function compareClassNames(prevClassName, nextClassName) {\n if (prevClassName === nextClassName) {\n return null;\n }\n const prevClassList = getClassList(prevClassName);\n const nextClassList = getClassList(nextClassName);\n const diff = [];\n for (const c of nextClassList) {\n if (!prevClassList.has(c)) {\n diff.push(c);\n }\n }\n for (const c of prevClassList) {\n if (!nextClassList.has(c)) {\n diff.push(c);\n }\n }\n return diff.length === 0 ? null : diff;\n}\nfunction getClassList(className) {\n return new Set(className ? className.trim().split(/\\s+/) : []);\n}\n//# sourceMappingURL=compare-class-names.js.map"],"names":["compareClassNames","prevClassName","nextClassName","prevClassList","getClassList","nextClassList","diff","c","className"],"mappings":"AACO,SAASA,EAAkBC,GAAeC,GAAe;AAC5D,MAAID,MAAkBC;AAClB,WAAO;AAEX,QAAMC,IAAgBC,EAAaH,CAAa,GAC1CI,IAAgBD,EAAaF,CAAa,GAC1CI,IAAO,CAAA;AACb,aAAWC,KAAKF;AACZ,IAAKF,EAAc,IAAII,CAAC,KACpBD,EAAK,KAAKC,CAAC;AAGnB,aAAWA,KAAKJ;AACZ,IAAKE,EAAc,IAAIE,CAAC,KACpBD,EAAK,KAAKC,CAAC;AAGnB,SAAOD,EAAK,WAAW,IAAI,OAAOA;AACtC;AACA,SAASF,EAAaI,GAAW;AAC7B,SAAO,IAAI,IAAIA,IAAYA,EAAU,KAAA,EAAO,MAAM,KAAK,IAAI,EAAE;AACjE;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es238.js","sources":["../node_modules/underscore/modules/_keyInObj.js"],"sourcesContent":["// Internal `_.pick` helper function to determine whether `key` is an enumerable\n// property name of `obj`.\nexport default function keyInObj(value, key, obj) {\n return key in obj;\n}\n"],"names":["keyInObj","value","key","obj"],"mappings":"AAEA,SAAwBA,EAASC,GAAOC,GAAKC,GAAK;AAChD,SAAOD,KAAOC;AAChB;","x_google_ignoreList":[0]}
@@ -1,8 +1,8 @@
1
- function e(r, t) {
2
- if (!r)
3
- throw new Error(t);
1
+ import a from "./index.es41.js";
2
+ function r(t, n) {
3
+ return t._chain ? a(n).chain() : n;
4
4
  }
5
5
  export {
6
- e as default
6
+ r as default
7
7
  };
8
8
  //# sourceMappingURL=index.es239.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es239.js","sources":["../../../node_modules/@vis.gl/react-maplibre/dist/utils/assert.js"],"sourcesContent":["export default function assert(condition, message) {\n if (!condition) {\n throw new Error(message);\n }\n}\n//# sourceMappingURL=assert.js.map"],"names":["assert","condition","message"],"mappings":"AAAA,SAAwBA,EAAOC,GAAWC,GAAS;AAC/C,MAAI,CAACD;AACD,UAAM,IAAI,MAAMC,CAAO;AAE/B;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es239.js","sources":["../node_modules/underscore/modules/_chainResult.js"],"sourcesContent":["import _ from './underscore.js';\n\n// Helper function to continue chaining intermediate results.\nexport default function chainResult(instance, obj) {\n return instance._chain ? _(obj).chain() : obj;\n}\n"],"names":["chainResult","instance","obj","_"],"mappings":";AAGA,SAAwBA,EAAYC,GAAUC,GAAK;AACjD,SAAOD,EAAS,SAASE,EAAED,CAAG,EAAE,UAAUA;AAC5C;","x_google_ignoreList":[0]}
@@ -1,5 +1,5 @@
1
1
  import { memo as r, useEffect as e } from "react";
2
- import { applyReactStyle as i } from "./index.es236.js";
2
+ import { applyReactStyle as i } from "./index.es209.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.TerrainControl(t), {
@@ -1,6 +1,9 @@
1
- import t from "./index.es205.js";
2
- const a = t("Object");
1
+ function t(r) {
2
+ return function(n) {
3
+ return n?.[r];
4
+ };
5
+ }
3
6
  export {
4
- a as default
7
+ t as default
5
8
  };
6
9
  //# sourceMappingURL=index.es242.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es242.js","sources":["../node_modules/underscore/modules/_hasObjectTag.js"],"sourcesContent":["import tagTester from './_tagTester.js';\n\nexport default tagTester('Object');\n"],"names":["hasObjectTag","tagTester"],"mappings":";AAEA,MAAAA,IAAeC,EAAU,QAAQ;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es242.js","sources":["../node_modules/underscore/modules/_shallowProperty.js"],"sourcesContent":["// Internal helper to generate a function to obtain property `key` from `obj`.\nexport default function shallowProperty(key) {\n return function(obj) {\n return obj == null ? void 0 : obj[key];\n };\n}\n"],"names":["shallowProperty","key","obj"],"mappings":"AACA,SAAwBA,EAAgBC,GAAK;AAC3C,SAAO,SAASC,GAAK;AACnB,WAA8BA,IAAID,CAAG;AAAA,EACvC;AACF;","x_google_ignoreList":[0]}
@@ -1,11 +1,6 @@
1
- import { MAX_ARRAY_INDEX as o } from "./index.es37.js";
2
- function u(e) {
3
- return function(t) {
4
- var r = e(t);
5
- return typeof r == "number" && r >= 0 && r <= o;
6
- };
7
- }
1
+ import t from "./index.es213.js";
2
+ const a = t("Object");
8
3
  export {
9
- u as default
4
+ a as default
10
5
  };
11
6
  //# sourceMappingURL=index.es243.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es243.js","sources":["../node_modules/underscore/modules/_createSizePropertyCheck.js"],"sourcesContent":["import { MAX_ARRAY_INDEX } from './_setup.js';\n\n// Common internal logic for `isArrayLike` and `isBufferLike`.\nexport default function createSizePropertyCheck(getSizeProperty) {\n return function(collection) {\n var sizeProperty = getSizeProperty(collection);\n return typeof sizeProperty == 'number' && sizeProperty >= 0 && sizeProperty <= MAX_ARRAY_INDEX;\n }\n}\n"],"names":["createSizePropertyCheck","getSizeProperty","collection","sizeProperty","MAX_ARRAY_INDEX"],"mappings":";AAGA,SAAwBA,EAAwBC,GAAiB;AAC/D,SAAO,SAASC,GAAY;AAC1B,QAAIC,IAAeF,EAAgBC,CAAU;AAC7C,WAAO,OAAOC,KAAgB,YAAYA,KAAgB,KAAKA,KAAgBC;AAAA,EACjF;AACF;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es243.js","sources":["../node_modules/underscore/modules/_hasObjectTag.js"],"sourcesContent":["import tagTester from './_tagTester.js';\n\nexport default tagTester('Object');\n"],"names":["hasObjectTag","tagTester"],"mappings":";AAEA,MAAAA,IAAeC,EAAU,QAAQ;","x_google_ignoreList":[0]}
@@ -1,9 +1,24 @@
1
- function t(r) {
2
- return function(n) {
3
- return n?.[r];
1
+ import { deepEqual as a } from "./index.es210.js";
2
+ function g(i) {
3
+ return {
4
+ longitude: i.center.lng,
5
+ latitude: i.center.lat,
6
+ zoom: i.zoom,
7
+ pitch: i.pitch,
8
+ bearing: i.bearing,
9
+ padding: i.padding
4
10
  };
5
11
  }
12
+ function c(i, t) {
13
+ const n = t.viewState || t, e = {};
14
+ if ("longitude" in n && "latitude" in n && (n.longitude !== i.center.lng || n.latitude !== i.center.lat)) {
15
+ const o = i.center.constructor;
16
+ e.center = new o(n.longitude, n.latitude);
17
+ }
18
+ return "zoom" in n && n.zoom !== i.zoom && (e.zoom = n.zoom), "bearing" in n && n.bearing !== i.bearing && (e.bearing = n.bearing), "pitch" in n && n.pitch !== i.pitch && (e.pitch = n.pitch), n.padding && i.padding && !a(n.padding, i.padding) && (e.padding = n.padding), e;
19
+ }
6
20
  export {
7
- t as default
21
+ c as applyViewStateToTransform,
22
+ g as transformToViewState
8
23
  };
9
24
  //# sourceMappingURL=index.es244.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es244.js","sources":["../node_modules/underscore/modules/_shallowProperty.js"],"sourcesContent":["// Internal helper to generate a function to obtain property `key` from `obj`.\nexport default function shallowProperty(key) {\n return function(obj) {\n return obj == null ? void 0 : obj[key];\n };\n}\n"],"names":["shallowProperty","key","obj"],"mappings":"AACA,SAAwBA,EAAgBC,GAAK;AAC3C,SAAO,SAASC,GAAK;AACnB,WAA8BA,IAAID,CAAG;AAAA,EACvC;AACF;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es244.js","sources":["../../../node_modules/@vis.gl/react-maplibre/dist/utils/transform.js"],"sourcesContent":["import { deepEqual } from \"./deep-equal.js\";\n/**\n * Capture a transform's current state\n * @param transform\n * @returns descriptor of the view state\n */\nexport function transformToViewState(tr) {\n return {\n longitude: tr.center.lng,\n latitude: tr.center.lat,\n zoom: tr.zoom,\n pitch: tr.pitch,\n bearing: tr.bearing,\n padding: tr.padding\n };\n}\n/* eslint-disable complexity */\n/**\n * Applies requested view state to a transform\n * @returns an object containing detected changes\n */\nexport function applyViewStateToTransform(\n/** An object that describes Maplibre's camera state */\ntr, \n/** Props from Map component */\nprops) {\n const v = props.viewState || props;\n const changes = {};\n if ('longitude' in v &&\n 'latitude' in v &&\n (v.longitude !== tr.center.lng || v.latitude !== tr.center.lat)) {\n const LngLat = tr.center.constructor;\n // @ts-expect-error we should not import LngLat class from maplibre-gl because we don't know the source of mapLib\n changes.center = new LngLat(v.longitude, v.latitude);\n }\n if ('zoom' in v && v.zoom !== tr.zoom) {\n changes.zoom = v.zoom;\n }\n if ('bearing' in v && v.bearing !== tr.bearing) {\n changes.bearing = v.bearing;\n }\n if ('pitch' in v && v.pitch !== tr.pitch) {\n changes.pitch = v.pitch;\n }\n if (v.padding && tr.padding && !deepEqual(v.padding, tr.padding)) {\n changes.padding = v.padding;\n }\n return changes;\n}\n//# sourceMappingURL=transform.js.map"],"names":["transformToViewState","tr","applyViewStateToTransform","props","v","changes","LngLat","deepEqual"],"mappings":";AAMO,SAASA,EAAqBC,GAAI;AACrC,SAAO;AAAA,IACH,WAAWA,EAAG,OAAO;AAAA,IACrB,UAAUA,EAAG,OAAO;AAAA,IACpB,MAAMA,EAAG;AAAA,IACT,OAAOA,EAAG;AAAA,IACV,SAASA,EAAG;AAAA,IACZ,SAASA,EAAG;AAAA,EAAA;AAEpB;AAMO,SAASC,EAEhBD,GAEAE,GAAO;AACH,QAAMC,IAAID,EAAM,aAAaA,GACvBE,IAAU,CAAA;AAChB,MAAI,eAAeD,KACf,cAAcA,MACbA,EAAE,cAAcH,EAAG,OAAO,OAAOG,EAAE,aAAaH,EAAG,OAAO,MAAM;AACjE,UAAMK,IAASL,EAAG,OAAO;AAEzB,IAAAI,EAAQ,SAAS,IAAIC,EAAOF,EAAE,WAAWA,EAAE,QAAQ;AAAA,EACvD;AACA,SAAI,UAAUA,KAAKA,EAAE,SAASH,EAAG,SAC7BI,EAAQ,OAAOD,EAAE,OAEjB,aAAaA,KAAKA,EAAE,YAAYH,EAAG,YACnCI,EAAQ,UAAUD,EAAE,UAEpB,WAAWA,KAAKA,EAAE,UAAUH,EAAG,UAC/BI,EAAQ,QAAQD,EAAE,QAElBA,EAAE,WAAWH,EAAG,WAAW,CAACM,EAAUH,EAAE,SAASH,EAAG,OAAO,MAC3DI,EAAQ,UAAUD,EAAE,UAEjBC;AACX;","x_google_ignoreList":[0]}
@@ -1,24 +1,26 @@
1
- import { deepEqual as a } from "./index.es237.js";
2
- function g(i) {
3
- return {
4
- longitude: i.center.lng,
5
- latitude: i.center.lat,
6
- zoom: i.zoom,
7
- pitch: i.pitch,
8
- bearing: i.bearing,
9
- padding: i.padding
10
- };
11
- }
12
- function c(i, t) {
13
- const n = t.viewState || t, e = {};
14
- if ("longitude" in n && "latitude" in n && (n.longitude !== i.center.lng || n.latitude !== i.center.lat)) {
15
- const o = i.center.constructor;
16
- e.center = new o(n.longitude, n.latitude);
17
- }
18
- return "zoom" in n && n.zoom !== i.zoom && (e.zoom = n.zoom), "bearing" in n && n.bearing !== i.bearing && (e.bearing = n.bearing), "pitch" in n && n.pitch !== i.pitch && (e.pitch = n.pitch), n.padding && i.padding && !a(n.padding, i.padding) && (e.padding = n.padding), e;
1
+ const a = ["type", "source", "source-layer", "minzoom", "maxzoom", "filter", "layout"];
2
+ function c(r) {
3
+ if (!r)
4
+ return null;
5
+ if (typeof r == "string" || ("toJS" in r && (r = r.toJS()), !r.layers))
6
+ return r;
7
+ const t = {};
8
+ for (const e of r.layers)
9
+ t[e.id] = e;
10
+ const f = r.layers.map((e) => {
11
+ let n = null;
12
+ "interactive" in e && (n = Object.assign({}, e), delete n.interactive);
13
+ const o = t[e.ref];
14
+ if (o) {
15
+ n = n || Object.assign({}, e), delete n.ref;
16
+ for (const i of a)
17
+ i in o && (n[i] = o[i]);
18
+ }
19
+ return n || e;
20
+ });
21
+ return { ...r, layers: f };
19
22
  }
20
23
  export {
21
- c as applyViewStateToTransform,
22
- g as transformToViewState
24
+ c as normalizeStyle
23
25
  };
24
26
  //# sourceMappingURL=index.es245.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es245.js","sources":["../../../node_modules/@vis.gl/react-maplibre/dist/utils/transform.js"],"sourcesContent":["import { deepEqual } from \"./deep-equal.js\";\n/**\n * Capture a transform's current state\n * @param transform\n * @returns descriptor of the view state\n */\nexport function transformToViewState(tr) {\n return {\n longitude: tr.center.lng,\n latitude: tr.center.lat,\n zoom: tr.zoom,\n pitch: tr.pitch,\n bearing: tr.bearing,\n padding: tr.padding\n };\n}\n/* eslint-disable complexity */\n/**\n * Applies requested view state to a transform\n * @returns an object containing detected changes\n */\nexport function applyViewStateToTransform(\n/** An object that describes Maplibre's camera state */\ntr, \n/** Props from Map component */\nprops) {\n const v = props.viewState || props;\n const changes = {};\n if ('longitude' in v &&\n 'latitude' in v &&\n (v.longitude !== tr.center.lng || v.latitude !== tr.center.lat)) {\n const LngLat = tr.center.constructor;\n // @ts-expect-error we should not import LngLat class from maplibre-gl because we don't know the source of mapLib\n changes.center = new LngLat(v.longitude, v.latitude);\n }\n if ('zoom' in v && v.zoom !== tr.zoom) {\n changes.zoom = v.zoom;\n }\n if ('bearing' in v && v.bearing !== tr.bearing) {\n changes.bearing = v.bearing;\n }\n if ('pitch' in v && v.pitch !== tr.pitch) {\n changes.pitch = v.pitch;\n }\n if (v.padding && tr.padding && !deepEqual(v.padding, tr.padding)) {\n changes.padding = v.padding;\n }\n return changes;\n}\n//# sourceMappingURL=transform.js.map"],"names":["transformToViewState","tr","applyViewStateToTransform","props","v","changes","LngLat","deepEqual"],"mappings":";AAMO,SAASA,EAAqBC,GAAI;AACrC,SAAO;AAAA,IACH,WAAWA,EAAG,OAAO;AAAA,IACrB,UAAUA,EAAG,OAAO;AAAA,IACpB,MAAMA,EAAG;AAAA,IACT,OAAOA,EAAG;AAAA,IACV,SAASA,EAAG;AAAA,IACZ,SAASA,EAAG;AAAA,EAAA;AAEpB;AAMO,SAASC,EAEhBD,GAEAE,GAAO;AACH,QAAMC,IAAID,EAAM,aAAaA,GACvBE,IAAU,CAAA;AAChB,MAAI,eAAeD,KACf,cAAcA,MACbA,EAAE,cAAcH,EAAG,OAAO,OAAOG,EAAE,aAAaH,EAAG,OAAO,MAAM;AACjE,UAAMK,IAASL,EAAG,OAAO;AAEzB,IAAAI,EAAQ,SAAS,IAAIC,EAAOF,EAAE,WAAWA,EAAE,QAAQ;AAAA,EACvD;AACA,SAAI,UAAUA,KAAKA,EAAE,SAASH,EAAG,SAC7BI,EAAQ,OAAOD,EAAE,OAEjB,aAAaA,KAAKA,EAAE,YAAYH,EAAG,YACnCI,EAAQ,UAAUD,EAAE,UAEpB,WAAWA,KAAKA,EAAE,UAAUH,EAAG,UAC/BI,EAAQ,QAAQD,EAAE,QAElBA,EAAE,WAAWH,EAAG,WAAW,CAACM,EAAUH,EAAE,SAASH,EAAG,OAAO,MAC3DI,EAAQ,UAAUD,EAAE,UAEjBC;AACX;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es245.js","sources":["../../../node_modules/@vis.gl/react-maplibre/dist/utils/style-utils.js"],"sourcesContent":["const refProps = ['type', 'source', 'source-layer', 'minzoom', 'maxzoom', 'filter', 'layout'];\n// Prepare a map style object for diffing\n// If immutable - convert to plain object\n// Work around some issues in older styles that would fail Mapbox's diffing\nexport function normalizeStyle(style) {\n if (!style) {\n return null;\n }\n if (typeof style === 'string') {\n return style;\n }\n if ('toJS' in style) {\n style = style.toJS();\n }\n if (!style.layers) {\n return style;\n }\n const layerIndex = {};\n for (const layer of style.layers) {\n layerIndex[layer.id] = layer;\n }\n const layers = style.layers.map(layer => {\n let normalizedLayer = null;\n if ('interactive' in layer) {\n normalizedLayer = Object.assign({}, layer);\n // Breaks style diffing :(\n // @ts-ignore legacy field not typed\n delete normalizedLayer.interactive;\n }\n // Style diffing doesn't work with refs so expand them out manually before diffing.\n // @ts-ignore legacy field not typed\n const layerRef = layerIndex[layer.ref];\n if (layerRef) {\n normalizedLayer = normalizedLayer || Object.assign({}, layer);\n // @ts-ignore\n delete normalizedLayer.ref;\n // https://github.com/mapbox/mapbox-gl-js/blob/master/src/style-spec/deref.js\n for (const propName of refProps) {\n if (propName in layerRef) {\n normalizedLayer[propName] = layerRef[propName];\n }\n }\n }\n return normalizedLayer || layer;\n });\n // Do not mutate the style object provided by the user\n return { ...style, layers };\n}\n//# sourceMappingURL=style-utils.js.map"],"names":["refProps","normalizeStyle","style","layerIndex","layer","layers","normalizedLayer","layerRef","propName"],"mappings":"AAAA,MAAMA,IAAW,CAAC,QAAQ,UAAU,gBAAgB,WAAW,WAAW,UAAU,QAAQ;AAIrF,SAASC,EAAeC,GAAO;AAClC,MAAI,CAACA;AACD,WAAO;AAQX,MANI,OAAOA,KAAU,aAGjB,UAAUA,MACVA,IAAQA,EAAM,KAAA,IAEd,CAACA,EAAM;AACP,WAAOA;AAEX,QAAMC,IAAa,CAAA;AACnB,aAAWC,KAASF,EAAM;AACtB,IAAAC,EAAWC,EAAM,EAAE,IAAIA;AAE3B,QAAMC,IAASH,EAAM,OAAO,IAAI,CAAAE,MAAS;AACrC,QAAIE,IAAkB;AACtB,IAAI,iBAAiBF,MACjBE,IAAkB,OAAO,OAAO,CAAA,GAAIF,CAAK,GAGzC,OAAOE,EAAgB;AAI3B,UAAMC,IAAWJ,EAAWC,EAAM,GAAG;AACrC,QAAIG,GAAU;AACV,MAAAD,IAAkBA,KAAmB,OAAO,OAAO,CAAA,GAAIF,CAAK,GAE5D,OAAOE,EAAgB;AAEvB,iBAAWE,KAAYR;AACnB,QAAIQ,KAAYD,MACZD,EAAgBE,CAAQ,IAAID,EAASC,CAAQ;AAAA,IAGzD;AACA,WAAOF,KAAmBF;AAAA,EAC9B,CAAC;AAED,SAAO,EAAE,GAAGF,GAAO,QAAAG,EAAA;AACvB;","x_google_ignoreList":[0]}
@@ -1,26 +1,11 @@
1
- const a = ["type", "source", "source-layer", "minzoom", "maxzoom", "filter", "layout"];
2
- function c(r) {
3
- if (!r)
4
- return null;
5
- if (typeof r == "string" || ("toJS" in r && (r = r.toJS()), !r.layers))
6
- return r;
7
- const t = {};
8
- for (const e of r.layers)
9
- t[e.id] = e;
10
- const f = r.layers.map((e) => {
11
- let n = null;
12
- "interactive" in e && (n = Object.assign({}, e), delete n.interactive);
13
- const o = t[e.ref];
14
- if (o) {
15
- n = n || Object.assign({}, e), delete n.ref;
16
- for (const i of a)
17
- i in o && (n[i] = o[i]);
18
- }
19
- return n || e;
20
- });
21
- return { ...r, layers: f };
1
+ import { MAX_ARRAY_INDEX as o } from "./index.es37.js";
2
+ function u(e) {
3
+ return function(t) {
4
+ var r = e(t);
5
+ return typeof r == "number" && r >= 0 && r <= o;
6
+ };
22
7
  }
23
8
  export {
24
- c as normalizeStyle
9
+ u as default
25
10
  };
26
11
  //# sourceMappingURL=index.es246.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es246.js","sources":["../../../node_modules/@vis.gl/react-maplibre/dist/utils/style-utils.js"],"sourcesContent":["const refProps = ['type', 'source', 'source-layer', 'minzoom', 'maxzoom', 'filter', 'layout'];\n// Prepare a map style object for diffing\n// If immutable - convert to plain object\n// Work around some issues in older styles that would fail Mapbox's diffing\nexport function normalizeStyle(style) {\n if (!style) {\n return null;\n }\n if (typeof style === 'string') {\n return style;\n }\n if ('toJS' in style) {\n style = style.toJS();\n }\n if (!style.layers) {\n return style;\n }\n const layerIndex = {};\n for (const layer of style.layers) {\n layerIndex[layer.id] = layer;\n }\n const layers = style.layers.map(layer => {\n let normalizedLayer = null;\n if ('interactive' in layer) {\n normalizedLayer = Object.assign({}, layer);\n // Breaks style diffing :(\n // @ts-ignore legacy field not typed\n delete normalizedLayer.interactive;\n }\n // Style diffing doesn't work with refs so expand them out manually before diffing.\n // @ts-ignore legacy field not typed\n const layerRef = layerIndex[layer.ref];\n if (layerRef) {\n normalizedLayer = normalizedLayer || Object.assign({}, layer);\n // @ts-ignore\n delete normalizedLayer.ref;\n // https://github.com/mapbox/mapbox-gl-js/blob/master/src/style-spec/deref.js\n for (const propName of refProps) {\n if (propName in layerRef) {\n normalizedLayer[propName] = layerRef[propName];\n }\n }\n }\n return normalizedLayer || layer;\n });\n // Do not mutate the style object provided by the user\n return { ...style, layers };\n}\n//# sourceMappingURL=style-utils.js.map"],"names":["refProps","normalizeStyle","style","layerIndex","layer","layers","normalizedLayer","layerRef","propName"],"mappings":"AAAA,MAAMA,IAAW,CAAC,QAAQ,UAAU,gBAAgB,WAAW,WAAW,UAAU,QAAQ;AAIrF,SAASC,EAAeC,GAAO;AAClC,MAAI,CAACA;AACD,WAAO;AAQX,MANI,OAAOA,KAAU,aAGjB,UAAUA,MACVA,IAAQA,EAAM,KAAA,IAEd,CAACA,EAAM;AACP,WAAOA;AAEX,QAAMC,IAAa,CAAA;AACnB,aAAWC,KAASF,EAAM;AACtB,IAAAC,EAAWC,EAAM,EAAE,IAAIA;AAE3B,QAAMC,IAASH,EAAM,OAAO,IAAI,CAAAE,MAAS;AACrC,QAAIE,IAAkB;AACtB,IAAI,iBAAiBF,MACjBE,IAAkB,OAAO,OAAO,CAAA,GAAIF,CAAK,GAGzC,OAAOE,EAAgB;AAI3B,UAAMC,IAAWJ,EAAWC,EAAM,GAAG;AACrC,QAAIG,GAAU;AACV,MAAAD,IAAkBA,KAAmB,OAAO,OAAO,CAAA,GAAIF,CAAK,GAE5D,OAAOE,EAAgB;AAEvB,iBAAWE,KAAYR;AACnB,QAAIQ,KAAYD,MACZD,EAAgBE,CAAQ,IAAID,EAASC,CAAQ;AAAA,IAGzD;AACA,WAAOF,KAAmBF;AAAA,EAC9B,CAAC;AAED,SAAO,EAAE,GAAGF,GAAO,QAAAG,EAAA;AACvB;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es246.js","sources":["../node_modules/underscore/modules/_createSizePropertyCheck.js"],"sourcesContent":["import { MAX_ARRAY_INDEX } from './_setup.js';\n\n// Common internal logic for `isArrayLike` and `isBufferLike`.\nexport default function createSizePropertyCheck(getSizeProperty) {\n return function(collection) {\n var sizeProperty = getSizeProperty(collection);\n return typeof sizeProperty == 'number' && sizeProperty >= 0 && sizeProperty <= MAX_ARRAY_INDEX;\n }\n}\n"],"names":["createSizePropertyCheck","getSizeProperty","collection","sizeProperty","MAX_ARRAY_INDEX"],"mappings":";AAGA,SAAwBA,EAAwBC,GAAiB;AAC/D,SAAO,SAASC,GAAY;AAC1B,QAAIC,IAAeF,EAAgBC,CAAU;AAC7C,WAAO,OAAOC,KAAgB,YAAYA,KAAgB,KAAKA,KAAgBC;AAAA,EACjF;AACF;","x_google_ignoreList":[0]}