@performant-software/geospatial 3.1.25-beta.1 → 3.1.25-beta.2

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 (1985) 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.cjs12.js +1 -1
  17. package/dist/index.cjs12.js.map +1 -1
  18. package/dist/index.cjs122.js +1 -1
  19. package/dist/index.cjs123.js +1 -1
  20. package/dist/index.cjs124.js +1 -1
  21. package/dist/index.cjs125.js +1 -1
  22. package/dist/index.cjs128.js +1 -1
  23. package/dist/index.cjs129.js +1 -1
  24. package/dist/index.cjs13.js +1 -1
  25. package/dist/index.cjs13.js.map +1 -1
  26. package/dist/index.cjs130.js +1 -1
  27. package/dist/index.cjs134.js +1 -1
  28. package/dist/index.cjs137.js +1 -1
  29. package/dist/index.cjs141.js +1 -1
  30. package/dist/index.cjs144.js +1 -1
  31. package/dist/index.cjs152.js +1 -1
  32. package/dist/index.cjs153.js +1 -1
  33. package/dist/index.cjs154.js +1 -1
  34. package/dist/index.cjs155.js +1 -1
  35. package/dist/index.cjs156.js +1 -1
  36. package/dist/index.cjs157.js +1 -1
  37. package/dist/index.cjs158.js +1 -1
  38. package/dist/index.cjs16.js +1 -1
  39. package/dist/index.cjs160.js +1 -1
  40. package/dist/index.cjs161.js +1 -1
  41. package/dist/index.cjs162.js +1 -1
  42. package/dist/index.cjs163.js +1 -1
  43. package/dist/index.cjs164.js +1 -1
  44. package/dist/index.cjs165.js +1 -1
  45. package/dist/index.cjs166.js +1 -1
  46. package/dist/index.cjs167.js +1 -1
  47. package/dist/index.cjs168.js +1 -1
  48. package/dist/index.cjs17.js +1 -1
  49. package/dist/index.cjs171.js +1 -1
  50. package/dist/index.cjs172.js +1 -1
  51. package/dist/index.cjs174.js +1 -1
  52. package/dist/index.cjs175.js +1 -1
  53. package/dist/index.cjs176.js +1 -1
  54. package/dist/index.cjs177.js +1 -1
  55. package/dist/index.cjs178.js +1 -1
  56. package/dist/index.cjs179.js +1 -1
  57. package/dist/index.cjs18.js +1 -1
  58. package/dist/index.cjs180.js +1 -1
  59. package/dist/index.cjs181.js +1 -1
  60. package/dist/index.cjs187.js +1 -1
  61. package/dist/index.cjs188.js +1 -1
  62. package/dist/index.cjs189.js +1 -1
  63. package/dist/index.cjs19.js +1 -1
  64. package/dist/index.cjs190.js +1 -1
  65. package/dist/index.cjs191.js +1 -1
  66. package/dist/index.cjs194.js +1 -1
  67. package/dist/index.cjs194.js.map +1 -1
  68. package/dist/index.cjs195.js +1 -1
  69. package/dist/index.cjs195.js.map +1 -1
  70. package/dist/index.cjs196.js +1 -1
  71. package/dist/index.cjs196.js.map +1 -1
  72. package/dist/index.cjs197.js +1 -1
  73. package/dist/index.cjs197.js.map +1 -1
  74. package/dist/index.cjs198.js +1 -1
  75. package/dist/index.cjs198.js.map +1 -1
  76. package/dist/index.cjs199.js +1 -1
  77. package/dist/index.cjs199.js.map +1 -1
  78. package/dist/index.cjs20.js +1 -1
  79. package/dist/index.cjs200.js +1 -1
  80. package/dist/index.cjs200.js.map +1 -1
  81. package/dist/index.cjs201.js +1 -1
  82. package/dist/index.cjs201.js.map +1 -1
  83. package/dist/index.cjs202.js +1 -1
  84. package/dist/index.cjs202.js.map +1 -1
  85. package/dist/index.cjs203.js +1 -1
  86. package/dist/index.cjs203.js.map +1 -1
  87. package/dist/index.cjs204.js +1 -1
  88. package/dist/index.cjs204.js.map +1 -1
  89. package/dist/index.cjs205.js +1 -1
  90. package/dist/index.cjs205.js.map +1 -1
  91. package/dist/index.cjs206.js +1 -1
  92. package/dist/index.cjs206.js.map +1 -1
  93. package/dist/index.cjs207.js +1 -1
  94. package/dist/index.cjs207.js.map +1 -1
  95. package/dist/index.cjs208.js +1 -1
  96. package/dist/index.cjs208.js.map +1 -1
  97. package/dist/index.cjs209.js +1 -1
  98. package/dist/index.cjs209.js.map +1 -1
  99. package/dist/index.cjs21.js +1 -1
  100. package/dist/index.cjs210.js +1 -1
  101. package/dist/index.cjs210.js.map +1 -1
  102. package/dist/index.cjs211.js +1 -1
  103. package/dist/index.cjs211.js.map +1 -1
  104. package/dist/index.cjs212.js +1 -1
  105. package/dist/index.cjs212.js.map +1 -1
  106. package/dist/index.cjs213.js +1 -1
  107. package/dist/index.cjs213.js.map +1 -1
  108. package/dist/index.cjs214.js +1 -1
  109. package/dist/index.cjs214.js.map +1 -1
  110. package/dist/index.cjs215.js +1 -1
  111. package/dist/index.cjs215.js.map +1 -1
  112. package/dist/index.cjs216.js +1 -1
  113. package/dist/index.cjs216.js.map +1 -1
  114. package/dist/index.cjs217.js +1 -1
  115. package/dist/index.cjs217.js.map +1 -1
  116. package/dist/index.cjs218.js +1 -1
  117. package/dist/index.cjs218.js.map +1 -1
  118. package/dist/index.cjs219.js +1 -1
  119. package/dist/index.cjs219.js.map +1 -1
  120. package/dist/index.cjs22.js +1 -1
  121. package/dist/index.cjs220.js +1 -1
  122. package/dist/index.cjs220.js.map +1 -1
  123. package/dist/index.cjs221.js +1 -1
  124. package/dist/index.cjs221.js.map +1 -1
  125. package/dist/index.cjs222.js +1 -1
  126. package/dist/index.cjs222.js.map +1 -1
  127. package/dist/index.cjs223.js +1 -1
  128. package/dist/index.cjs223.js.map +1 -1
  129. package/dist/index.cjs224.js +1 -1
  130. package/dist/index.cjs224.js.map +1 -1
  131. package/dist/index.cjs225.js +1 -1
  132. package/dist/index.cjs225.js.map +1 -1
  133. package/dist/index.cjs226.js +1 -1
  134. package/dist/index.cjs226.js.map +1 -1
  135. package/dist/index.cjs227.js +1 -1
  136. package/dist/index.cjs227.js.map +1 -1
  137. package/dist/index.cjs228.js +1 -1
  138. package/dist/index.cjs228.js.map +1 -1
  139. package/dist/index.cjs229.js +1 -1
  140. package/dist/index.cjs229.js.map +1 -1
  141. package/dist/index.cjs23.js +1 -1
  142. package/dist/index.cjs230.js +1 -1
  143. package/dist/index.cjs230.js.map +1 -1
  144. package/dist/index.cjs231.js +1 -1
  145. package/dist/index.cjs231.js.map +1 -1
  146. package/dist/index.cjs232.js +1 -1
  147. package/dist/index.cjs232.js.map +1 -1
  148. package/dist/index.cjs233.js +1 -1
  149. package/dist/index.cjs233.js.map +1 -1
  150. package/dist/index.cjs234.js +1 -1
  151. package/dist/index.cjs234.js.map +1 -1
  152. package/dist/index.cjs235.js +1 -1
  153. package/dist/index.cjs235.js.map +1 -1
  154. package/dist/index.cjs236.js +1 -1
  155. package/dist/index.cjs236.js.map +1 -1
  156. package/dist/index.cjs237.js +1 -1
  157. package/dist/index.cjs237.js.map +1 -1
  158. package/dist/index.cjs238.js +1 -1
  159. package/dist/index.cjs238.js.map +1 -1
  160. package/dist/index.cjs239.js +1 -1
  161. package/dist/index.cjs239.js.map +1 -1
  162. package/dist/index.cjs24.js +1 -1
  163. package/dist/index.cjs240.js +1 -1
  164. package/dist/index.cjs240.js.map +1 -1
  165. package/dist/index.cjs241.js +1 -1
  166. package/dist/index.cjs241.js.map +1 -1
  167. package/dist/index.cjs242.js +1 -1
  168. package/dist/index.cjs242.js.map +1 -1
  169. package/dist/index.cjs243.js +1 -1
  170. package/dist/index.cjs243.js.map +1 -1
  171. package/dist/index.cjs244.js +1 -1
  172. package/dist/index.cjs244.js.map +1 -1
  173. package/dist/index.cjs245.js +1 -7
  174. package/dist/index.cjs245.js.map +1 -1
  175. package/dist/index.cjs246.js +1 -1
  176. package/dist/index.cjs246.js.map +1 -1
  177. package/dist/index.cjs247.js +1 -1
  178. package/dist/index.cjs247.js.map +1 -1
  179. package/dist/index.cjs248.js +1 -1
  180. package/dist/index.cjs248.js.map +1 -1
  181. package/dist/index.cjs249.js +1 -1
  182. package/dist/index.cjs249.js.map +1 -1
  183. package/dist/index.cjs25.js +1 -1
  184. package/dist/index.cjs250.js +1 -1
  185. package/dist/index.cjs250.js.map +1 -1
  186. package/dist/index.cjs251.js +1 -1
  187. package/dist/index.cjs251.js.map +1 -1
  188. package/dist/index.cjs252.js +1 -1
  189. package/dist/index.cjs252.js.map +1 -1
  190. package/dist/index.cjs253.js +1 -1
  191. package/dist/index.cjs253.js.map +1 -1
  192. package/dist/index.cjs254.js +1 -1
  193. package/dist/index.cjs254.js.map +1 -1
  194. package/dist/index.cjs255.js +1 -1
  195. package/dist/index.cjs255.js.map +1 -1
  196. package/dist/index.cjs256.js +1 -1
  197. package/dist/index.cjs256.js.map +1 -1
  198. package/dist/index.cjs257.js +1 -1
  199. package/dist/index.cjs257.js.map +1 -1
  200. package/dist/index.cjs258.js +1 -1
  201. package/dist/index.cjs258.js.map +1 -1
  202. package/dist/index.cjs259.js +1 -1
  203. package/dist/index.cjs259.js.map +1 -1
  204. package/dist/index.cjs26.js +1 -1
  205. package/dist/index.cjs260.js +1 -1
  206. package/dist/index.cjs260.js.map +1 -1
  207. package/dist/index.cjs261.js +1 -1
  208. package/dist/index.cjs261.js.map +1 -1
  209. package/dist/index.cjs262.js +1 -1
  210. package/dist/index.cjs262.js.map +1 -1
  211. package/dist/index.cjs263.js +1 -1
  212. package/dist/index.cjs263.js.map +1 -1
  213. package/dist/index.cjs264.js +1 -1
  214. package/dist/index.cjs264.js.map +1 -1
  215. package/dist/index.cjs265.js +1 -1
  216. package/dist/index.cjs265.js.map +1 -1
  217. package/dist/index.cjs266.js +1 -1
  218. package/dist/index.cjs266.js.map +1 -1
  219. package/dist/index.cjs267.js +1 -1
  220. package/dist/index.cjs267.js.map +1 -1
  221. package/dist/index.cjs268.js +1 -1
  222. package/dist/index.cjs268.js.map +1 -1
  223. package/dist/index.cjs269.js +1 -1
  224. package/dist/index.cjs269.js.map +1 -1
  225. package/dist/index.cjs27.js +1 -1
  226. package/dist/index.cjs270.js +1 -1
  227. package/dist/index.cjs270.js.map +1 -1
  228. package/dist/index.cjs271.js +1 -1
  229. package/dist/index.cjs271.js.map +1 -1
  230. package/dist/index.cjs272.js +7 -1
  231. package/dist/index.cjs272.js.map +1 -1
  232. package/dist/index.cjs273.js +1 -1
  233. package/dist/index.cjs273.js.map +1 -1
  234. package/dist/index.cjs274.js +1 -1
  235. package/dist/index.cjs274.js.map +1 -1
  236. package/dist/index.cjs275.js +1 -1
  237. package/dist/index.cjs275.js.map +1 -1
  238. package/dist/index.cjs276.js +2 -0
  239. package/dist/index.cjs276.js.map +1 -0
  240. package/dist/index.cjs277.js +2 -0
  241. package/dist/index.cjs277.js.map +1 -0
  242. package/dist/index.cjs278.js +2 -0
  243. package/dist/index.cjs278.js.map +1 -0
  244. package/dist/index.cjs279.js +2 -0
  245. package/dist/index.cjs279.js.map +1 -0
  246. package/dist/index.cjs280.js +2 -0
  247. package/dist/index.cjs280.js.map +1 -0
  248. package/dist/index.cjs281.js +2 -0
  249. package/dist/index.cjs281.js.map +1 -0
  250. package/dist/index.cjs282.js +2 -0
  251. package/dist/index.cjs282.js.map +1 -0
  252. package/dist/index.cjs283.js +2 -0
  253. package/dist/index.cjs283.js.map +1 -0
  254. package/dist/index.cjs284.js +2 -0
  255. package/dist/index.cjs284.js.map +1 -0
  256. package/dist/index.cjs285.js +2 -0
  257. package/dist/index.cjs285.js.map +1 -0
  258. package/dist/index.cjs286.js +2 -0
  259. package/dist/index.cjs286.js.map +1 -0
  260. package/dist/index.cjs287.js +2 -0
  261. package/dist/index.cjs287.js.map +1 -0
  262. package/dist/index.cjs288.js +2 -0
  263. package/dist/index.cjs288.js.map +1 -0
  264. package/dist/index.cjs289.js +2 -0
  265. package/dist/index.cjs289.js.map +1 -0
  266. package/dist/index.cjs290.js +2 -0
  267. package/dist/index.cjs290.js.map +1 -0
  268. package/dist/index.cjs291.js +2 -0
  269. package/dist/index.cjs291.js.map +1 -0
  270. package/dist/index.cjs292.js +2 -0
  271. package/dist/index.cjs292.js.map +1 -0
  272. package/dist/index.cjs293.js +2 -0
  273. package/dist/index.cjs293.js.map +1 -0
  274. package/dist/index.cjs294.js +2 -0
  275. package/dist/index.cjs294.js.map +1 -0
  276. package/dist/index.cjs295.js +2 -0
  277. package/dist/index.cjs295.js.map +1 -0
  278. package/dist/index.cjs296.js +2 -0
  279. package/dist/index.cjs296.js.map +1 -0
  280. package/dist/index.cjs297.js +2 -0
  281. package/dist/index.cjs297.js.map +1 -0
  282. package/dist/index.cjs298.js +2 -0
  283. package/dist/index.cjs298.js.map +1 -0
  284. package/dist/index.cjs299.js +2 -0
  285. package/dist/index.cjs299.js.map +1 -0
  286. package/dist/index.cjs300.js +2 -0
  287. package/dist/index.cjs300.js.map +1 -0
  288. package/dist/index.cjs301.js +2 -0
  289. package/dist/index.cjs301.js.map +1 -0
  290. package/dist/index.cjs302.js +2 -0
  291. package/dist/index.cjs302.js.map +1 -0
  292. package/dist/index.cjs303.js +2 -0
  293. package/dist/index.cjs303.js.map +1 -0
  294. package/dist/index.cjs304.js +2 -0
  295. package/dist/index.cjs304.js.map +1 -0
  296. package/dist/index.cjs305.js +2 -0
  297. package/dist/index.cjs305.js.map +1 -0
  298. package/dist/index.cjs306.js +2 -0
  299. package/dist/index.cjs306.js.map +1 -0
  300. package/dist/index.cjs307.js +2 -0
  301. package/dist/index.cjs307.js.map +1 -0
  302. package/dist/index.cjs308.js +47 -0
  303. package/dist/index.cjs308.js.map +1 -0
  304. package/dist/index.cjs309.js +212 -0
  305. package/dist/index.cjs309.js.map +1 -0
  306. package/dist/index.cjs310.js +62 -0
  307. package/dist/index.cjs310.js.map +1 -0
  308. package/dist/index.cjs311.js +60 -0
  309. package/dist/index.cjs311.js.map +1 -0
  310. package/dist/index.cjs312.js +46 -0
  311. package/dist/index.cjs312.js.map +1 -0
  312. package/dist/index.cjs313.js +52 -0
  313. package/dist/index.cjs313.js.map +1 -0
  314. package/dist/index.cjs314.js +308 -0
  315. package/dist/index.cjs314.js.map +1 -0
  316. package/dist/index.cjs315.js +293 -0
  317. package/dist/index.cjs315.js.map +1 -0
  318. package/dist/index.cjs316.js +6 -0
  319. package/dist/index.cjs316.js.map +1 -0
  320. package/dist/index.cjs317.js +2 -0
  321. package/dist/index.cjs317.js.map +1 -0
  322. package/dist/index.cjs318.js +2 -0
  323. package/dist/index.cjs318.js.map +1 -0
  324. package/dist/index.cjs319.js +2 -0
  325. package/dist/index.cjs319.js.map +1 -0
  326. package/dist/index.cjs320.js +2 -0
  327. package/dist/index.cjs320.js.map +1 -0
  328. package/dist/index.cjs321.js +2 -0
  329. package/dist/index.cjs321.js.map +1 -0
  330. package/dist/index.cjs322.js +2 -0
  331. package/dist/index.cjs322.js.map +1 -0
  332. package/dist/index.cjs323.js +2 -0
  333. package/dist/index.cjs323.js.map +1 -0
  334. package/dist/index.cjs324.js +2 -0
  335. package/dist/index.cjs324.js.map +1 -0
  336. package/dist/index.cjs325.js +2 -0
  337. package/dist/index.cjs325.js.map +1 -0
  338. package/dist/index.cjs326.js +2 -0
  339. package/dist/index.cjs326.js.map +1 -0
  340. package/dist/index.cjs327.js +2 -0
  341. package/dist/index.cjs327.js.map +1 -0
  342. package/dist/index.cjs328.js +2 -0
  343. package/dist/index.cjs328.js.map +1 -0
  344. package/dist/index.cjs329.js +2 -0
  345. package/dist/index.cjs329.js.map +1 -0
  346. package/dist/index.cjs330.js +2 -0
  347. package/dist/index.cjs330.js.map +1 -0
  348. package/dist/index.cjs331.js +2 -0
  349. package/dist/index.cjs331.js.map +1 -0
  350. package/dist/index.cjs332.js +2 -0
  351. package/dist/index.cjs332.js.map +1 -0
  352. package/dist/index.cjs333.js +2 -0
  353. package/dist/index.cjs333.js.map +1 -0
  354. package/dist/index.cjs334.js +5 -0
  355. package/dist/index.cjs334.js.map +1 -0
  356. package/dist/index.cjs335.js +6 -0
  357. package/dist/index.cjs335.js.map +1 -0
  358. package/dist/index.cjs336.js +2 -0
  359. package/dist/index.cjs336.js.map +1 -0
  360. package/dist/index.cjs337.js +2 -0
  361. package/dist/index.cjs337.js.map +1 -0
  362. package/dist/index.cjs338.js +2 -0
  363. package/dist/index.cjs338.js.map +1 -0
  364. package/dist/index.cjs339.js +2 -0
  365. package/dist/index.cjs339.js.map +1 -0
  366. package/dist/index.cjs340.js +2 -0
  367. package/dist/index.cjs340.js.map +1 -0
  368. package/dist/index.cjs341.js +2 -0
  369. package/dist/index.cjs341.js.map +1 -0
  370. package/dist/index.cjs342.js +2 -0
  371. package/dist/index.cjs342.js.map +1 -0
  372. package/dist/index.cjs343.js +2 -0
  373. package/dist/index.cjs343.js.map +1 -0
  374. package/dist/index.cjs344.js +2 -0
  375. package/dist/index.cjs344.js.map +1 -0
  376. package/dist/index.cjs345.js +2 -0
  377. package/dist/index.cjs345.js.map +1 -0
  378. package/dist/index.cjs346.js +2 -0
  379. package/dist/index.cjs346.js.map +1 -0
  380. package/dist/index.cjs347.js +2 -0
  381. package/dist/index.cjs347.js.map +1 -0
  382. package/dist/index.cjs348.js +5 -0
  383. package/dist/index.cjs348.js.map +1 -0
  384. package/dist/index.cjs349.js +2 -0
  385. package/dist/index.cjs349.js.map +1 -0
  386. package/dist/index.cjs350.js +2 -0
  387. package/dist/index.cjs350.js.map +1 -0
  388. package/dist/index.cjs351.js +2 -0
  389. package/dist/index.cjs351.js.map +1 -0
  390. package/dist/index.cjs352.js +2 -0
  391. package/dist/index.cjs352.js.map +1 -0
  392. package/dist/index.cjs353.js +2 -0
  393. package/dist/index.cjs353.js.map +1 -0
  394. package/dist/index.cjs354.js +2 -0
  395. package/dist/index.cjs354.js.map +1 -0
  396. package/dist/index.cjs355.js +2 -0
  397. package/dist/index.cjs355.js.map +1 -0
  398. package/dist/index.cjs356.js +2 -0
  399. package/dist/index.cjs356.js.map +1 -0
  400. package/dist/index.cjs357.js +2 -0
  401. package/dist/index.cjs357.js.map +1 -0
  402. package/dist/index.cjs358.js +2 -0
  403. package/dist/index.cjs358.js.map +1 -0
  404. package/dist/index.cjs359.js +2 -0
  405. package/dist/index.cjs359.js.map +1 -0
  406. package/dist/index.cjs360.js +2 -0
  407. package/dist/index.cjs360.js.map +1 -0
  408. package/dist/index.cjs361.js +2 -0
  409. package/dist/index.cjs361.js.map +1 -0
  410. package/dist/index.cjs362.js +2 -0
  411. package/dist/index.cjs362.js.map +1 -0
  412. package/dist/index.cjs363.js +2 -0
  413. package/dist/index.cjs363.js.map +1 -0
  414. package/dist/index.cjs364.js +2 -0
  415. package/dist/index.cjs364.js.map +1 -0
  416. package/dist/index.cjs365.js +2 -0
  417. package/dist/index.cjs365.js.map +1 -0
  418. package/dist/index.cjs366.js +2 -0
  419. package/dist/index.cjs366.js.map +1 -0
  420. package/dist/index.cjs367.js +2 -0
  421. package/dist/index.cjs367.js.map +1 -0
  422. package/dist/index.cjs368.js +2 -0
  423. package/dist/index.cjs368.js.map +1 -0
  424. package/dist/index.cjs369.js +2 -0
  425. package/dist/index.cjs369.js.map +1 -0
  426. package/dist/index.cjs370.js +2 -0
  427. package/dist/index.cjs370.js.map +1 -0
  428. package/dist/index.cjs371.js +2 -0
  429. package/dist/index.cjs371.js.map +1 -0
  430. package/dist/index.cjs372.js +2 -0
  431. package/dist/index.cjs372.js.map +1 -0
  432. package/dist/index.cjs373.js +2 -0
  433. package/dist/index.cjs373.js.map +1 -0
  434. package/dist/index.cjs374.js +2 -0
  435. package/dist/index.cjs374.js.map +1 -0
  436. package/dist/index.cjs375.js +2 -0
  437. package/dist/index.cjs375.js.map +1 -0
  438. package/dist/index.cjs376.js +2 -0
  439. package/dist/index.cjs376.js.map +1 -0
  440. package/dist/index.cjs377.js +2 -0
  441. package/dist/index.cjs377.js.map +1 -0
  442. package/dist/index.cjs378.js +2 -0
  443. package/dist/index.cjs378.js.map +1 -0
  444. package/dist/index.cjs379.js +2 -0
  445. package/dist/index.cjs379.js.map +1 -0
  446. package/dist/index.cjs38.js +1 -1
  447. package/dist/index.cjs380.js +2 -0
  448. package/dist/index.cjs380.js.map +1 -0
  449. package/dist/index.cjs381.js +2 -0
  450. package/dist/index.cjs381.js.map +1 -0
  451. package/dist/index.cjs382.js +2 -0
  452. package/dist/index.cjs382.js.map +1 -0
  453. package/dist/index.cjs383.js +2 -0
  454. package/dist/index.cjs383.js.map +1 -0
  455. package/dist/index.cjs384.js +2 -0
  456. package/dist/index.cjs384.js.map +1 -0
  457. package/dist/index.cjs385.js +2 -0
  458. package/dist/index.cjs385.js.map +1 -0
  459. package/dist/index.cjs386.js +2 -0
  460. package/dist/index.cjs386.js.map +1 -0
  461. package/dist/index.cjs387.js +2 -0
  462. package/dist/index.cjs387.js.map +1 -0
  463. package/dist/index.cjs388.js +2 -0
  464. package/dist/index.cjs388.js.map +1 -0
  465. package/dist/index.cjs389.js +2 -0
  466. package/dist/index.cjs389.js.map +1 -0
  467. package/dist/index.cjs39.js +1 -1
  468. package/dist/index.cjs390.js +2 -0
  469. package/dist/index.cjs390.js.map +1 -0
  470. package/dist/index.cjs391.js +2 -0
  471. package/dist/index.cjs391.js.map +1 -0
  472. package/dist/index.cjs392.js +2 -0
  473. package/dist/index.cjs392.js.map +1 -0
  474. package/dist/index.cjs393.js +2 -0
  475. package/dist/index.cjs393.js.map +1 -0
  476. package/dist/index.cjs394.js +2 -0
  477. package/dist/index.cjs394.js.map +1 -0
  478. package/dist/index.cjs395.js +2 -0
  479. package/dist/index.cjs395.js.map +1 -0
  480. package/dist/index.cjs396.js +2 -0
  481. package/dist/index.cjs396.js.map +1 -0
  482. package/dist/index.cjs397.js +2 -0
  483. package/dist/index.cjs397.js.map +1 -0
  484. package/dist/index.cjs398.js +2 -0
  485. package/dist/index.cjs398.js.map +1 -0
  486. package/dist/index.cjs399.js +2 -0
  487. package/dist/index.cjs399.js.map +1 -0
  488. package/dist/index.cjs40.js +1 -1
  489. package/dist/index.cjs400.js +2 -0
  490. package/dist/index.cjs400.js.map +1 -0
  491. package/dist/index.cjs401.js +2 -0
  492. package/dist/index.cjs401.js.map +1 -0
  493. package/dist/index.cjs402.js +2 -0
  494. package/dist/index.cjs402.js.map +1 -0
  495. package/dist/index.cjs403.js +2 -0
  496. package/dist/index.cjs403.js.map +1 -0
  497. package/dist/index.cjs404.js +2 -0
  498. package/dist/index.cjs404.js.map +1 -0
  499. package/dist/index.cjs405.js +2 -0
  500. package/dist/index.cjs405.js.map +1 -0
  501. package/dist/index.cjs406.js +2 -0
  502. package/dist/index.cjs406.js.map +1 -0
  503. package/dist/index.cjs407.js +2 -0
  504. package/dist/index.cjs407.js.map +1 -0
  505. package/dist/index.cjs408.js +2 -0
  506. package/dist/index.cjs408.js.map +1 -0
  507. package/dist/index.cjs409.js +2 -0
  508. package/dist/index.cjs409.js.map +1 -0
  509. package/dist/index.cjs410.js +2 -0
  510. package/dist/index.cjs410.js.map +1 -0
  511. package/dist/index.cjs411.js +2 -0
  512. package/dist/index.cjs411.js.map +1 -0
  513. package/dist/index.cjs412.js +2 -0
  514. package/dist/index.cjs412.js.map +1 -0
  515. package/dist/index.cjs413.js +2 -0
  516. package/dist/index.cjs413.js.map +1 -0
  517. package/dist/index.cjs414.js +2 -0
  518. package/dist/index.cjs414.js.map +1 -0
  519. package/dist/index.cjs415.js +2 -0
  520. package/dist/index.cjs415.js.map +1 -0
  521. package/dist/index.cjs416.js +2 -0
  522. package/dist/index.cjs416.js.map +1 -0
  523. package/dist/index.cjs417.js +2 -0
  524. package/dist/index.cjs417.js.map +1 -0
  525. package/dist/index.cjs418.js +2 -0
  526. package/dist/index.cjs418.js.map +1 -0
  527. package/dist/index.cjs419.js +2 -0
  528. package/dist/index.cjs419.js.map +1 -0
  529. package/dist/index.cjs42.js +1 -1
  530. package/dist/index.cjs420.js +2 -0
  531. package/dist/index.cjs420.js.map +1 -0
  532. package/dist/index.cjs421.js +2 -0
  533. package/dist/index.cjs421.js.map +1 -0
  534. package/dist/index.cjs422.js +2 -0
  535. package/dist/index.cjs422.js.map +1 -0
  536. package/dist/index.cjs423.js +2 -0
  537. package/dist/index.cjs423.js.map +1 -0
  538. package/dist/index.cjs424.js +2 -0
  539. package/dist/index.cjs424.js.map +1 -0
  540. package/dist/index.cjs425.js +2 -0
  541. package/dist/index.cjs425.js.map +1 -0
  542. package/dist/index.cjs426.js +2 -0
  543. package/dist/index.cjs426.js.map +1 -0
  544. package/dist/index.cjs427.js +2 -0
  545. package/dist/index.cjs427.js.map +1 -0
  546. package/dist/index.cjs428.js +2 -0
  547. package/dist/index.cjs428.js.map +1 -0
  548. package/dist/index.cjs429.js +2 -0
  549. package/dist/index.cjs429.js.map +1 -0
  550. package/dist/index.cjs43.js +1 -1
  551. package/dist/index.cjs430.js +2 -0
  552. package/dist/index.cjs430.js.map +1 -0
  553. package/dist/index.cjs431.js +2 -0
  554. package/dist/index.cjs431.js.map +1 -0
  555. package/dist/index.cjs432.js +2 -0
  556. package/dist/index.cjs432.js.map +1 -0
  557. package/dist/index.cjs433.js +2 -0
  558. package/dist/index.cjs433.js.map +1 -0
  559. package/dist/index.cjs434.js +2 -0
  560. package/dist/index.cjs434.js.map +1 -0
  561. package/dist/index.cjs435.js +2 -0
  562. package/dist/index.cjs435.js.map +1 -0
  563. package/dist/index.cjs436.js +2 -0
  564. package/dist/index.cjs436.js.map +1 -0
  565. package/dist/index.cjs437.js +2 -0
  566. package/dist/index.cjs437.js.map +1 -0
  567. package/dist/index.cjs438.js +2 -0
  568. package/dist/index.cjs438.js.map +1 -0
  569. package/dist/index.cjs439.js +2 -0
  570. package/dist/index.cjs439.js.map +1 -0
  571. package/dist/index.cjs44.js +1 -1
  572. package/dist/index.cjs440.js +2 -0
  573. package/dist/index.cjs440.js.map +1 -0
  574. package/dist/index.cjs441.js +2 -0
  575. package/dist/index.cjs441.js.map +1 -0
  576. package/dist/index.cjs442.js +2 -0
  577. package/dist/index.cjs442.js.map +1 -0
  578. package/dist/index.cjs443.js +2 -0
  579. package/dist/index.cjs443.js.map +1 -0
  580. package/dist/index.cjs444.js +2 -0
  581. package/dist/index.cjs444.js.map +1 -0
  582. package/dist/index.cjs445.js +2 -0
  583. package/dist/index.cjs445.js.map +1 -0
  584. package/dist/index.cjs446.js +2 -0
  585. package/dist/index.cjs446.js.map +1 -0
  586. package/dist/index.cjs447.js +2 -0
  587. package/dist/index.cjs447.js.map +1 -0
  588. package/dist/index.cjs448.js +2 -0
  589. package/dist/index.cjs448.js.map +1 -0
  590. package/dist/index.cjs449.js +2 -0
  591. package/dist/index.cjs449.js.map +1 -0
  592. package/dist/index.cjs450.js +2 -0
  593. package/dist/index.cjs450.js.map +1 -0
  594. package/dist/index.cjs451.js +2 -0
  595. package/dist/index.cjs451.js.map +1 -0
  596. package/dist/index.cjs452.js +2 -0
  597. package/dist/index.cjs452.js.map +1 -0
  598. package/dist/index.cjs453.js +2 -0
  599. package/dist/index.cjs453.js.map +1 -0
  600. package/dist/index.cjs454.js +2 -0
  601. package/dist/index.cjs454.js.map +1 -0
  602. package/dist/index.cjs455.js +2 -0
  603. package/dist/index.cjs455.js.map +1 -0
  604. package/dist/index.cjs456.js +2 -0
  605. package/dist/index.cjs456.js.map +1 -0
  606. package/dist/index.cjs457.js +2 -0
  607. package/dist/index.cjs457.js.map +1 -0
  608. package/dist/index.cjs458.js +2 -0
  609. package/dist/index.cjs458.js.map +1 -0
  610. package/dist/index.cjs459.js +2 -0
  611. package/dist/index.cjs459.js.map +1 -0
  612. package/dist/index.cjs46.js +1 -1
  613. package/dist/index.cjs460.js +2 -0
  614. package/dist/index.cjs460.js.map +1 -0
  615. package/dist/index.cjs461.js +2 -0
  616. package/dist/index.cjs461.js.map +1 -0
  617. package/dist/index.cjs462.js +2 -0
  618. package/dist/index.cjs462.js.map +1 -0
  619. package/dist/index.cjs463.js +2 -0
  620. package/dist/index.cjs463.js.map +1 -0
  621. package/dist/index.cjs464.js +2 -0
  622. package/dist/index.cjs464.js.map +1 -0
  623. package/dist/index.cjs465.js +2 -0
  624. package/dist/index.cjs465.js.map +1 -0
  625. package/dist/index.cjs466.js +2 -0
  626. package/dist/index.cjs466.js.map +1 -0
  627. package/dist/index.cjs467.js +2 -0
  628. package/dist/index.cjs467.js.map +1 -0
  629. package/dist/index.cjs468.js +2 -0
  630. package/dist/index.cjs468.js.map +1 -0
  631. package/dist/index.cjs469.js +2 -0
  632. package/dist/index.cjs469.js.map +1 -0
  633. package/dist/index.cjs47.js +1 -1
  634. package/dist/index.cjs470.js +2 -0
  635. package/dist/index.cjs470.js.map +1 -0
  636. package/dist/index.cjs471.js +2 -0
  637. package/dist/index.cjs471.js.map +1 -0
  638. package/dist/index.cjs472.js +2 -0
  639. package/dist/index.cjs472.js.map +1 -0
  640. package/dist/index.cjs473.js +2 -0
  641. package/dist/index.cjs473.js.map +1 -0
  642. package/dist/index.cjs474.js +2 -0
  643. package/dist/index.cjs474.js.map +1 -0
  644. package/dist/index.cjs475.js +2 -0
  645. package/dist/index.cjs475.js.map +1 -0
  646. package/dist/index.cjs476.js +2 -0
  647. package/dist/index.cjs476.js.map +1 -0
  648. package/dist/index.cjs477.js +2 -0
  649. package/dist/index.cjs477.js.map +1 -0
  650. package/dist/index.cjs478.js +2 -0
  651. package/dist/index.cjs478.js.map +1 -0
  652. package/dist/index.cjs479.js +2 -0
  653. package/dist/index.cjs479.js.map +1 -0
  654. package/dist/index.cjs48.js +1 -1
  655. package/dist/index.cjs480.js +2 -0
  656. package/dist/index.cjs480.js.map +1 -0
  657. package/dist/index.cjs481.js +2 -0
  658. package/dist/index.cjs481.js.map +1 -0
  659. package/dist/index.cjs482.js +2 -0
  660. package/dist/index.cjs482.js.map +1 -0
  661. package/dist/index.cjs483.js +2 -0
  662. package/dist/index.cjs483.js.map +1 -0
  663. package/dist/index.cjs484.js +2 -0
  664. package/dist/index.cjs484.js.map +1 -0
  665. package/dist/index.cjs485.js +2 -0
  666. package/dist/index.cjs485.js.map +1 -0
  667. package/dist/index.cjs486.js +2 -0
  668. package/dist/index.cjs486.js.map +1 -0
  669. package/dist/index.cjs487.js +2 -0
  670. package/dist/index.cjs487.js.map +1 -0
  671. package/dist/index.cjs488.js +2 -0
  672. package/dist/index.cjs488.js.map +1 -0
  673. package/dist/index.cjs489.js +2 -0
  674. package/dist/index.cjs489.js.map +1 -0
  675. package/dist/index.cjs490.js +2 -0
  676. package/dist/index.cjs490.js.map +1 -0
  677. package/dist/index.cjs491.js +2 -0
  678. package/dist/index.cjs491.js.map +1 -0
  679. package/dist/index.cjs492.js +2 -0
  680. package/dist/index.cjs492.js.map +1 -0
  681. package/dist/index.cjs493.js +2 -0
  682. package/dist/index.cjs493.js.map +1 -0
  683. package/dist/index.cjs494.js +2 -0
  684. package/dist/index.cjs494.js.map +1 -0
  685. package/dist/index.cjs495.js +2 -0
  686. package/dist/index.cjs495.js.map +1 -0
  687. package/dist/index.cjs496.js +2 -0
  688. package/dist/index.cjs496.js.map +1 -0
  689. package/dist/index.cjs497.js +2 -0
  690. package/dist/index.cjs497.js.map +1 -0
  691. package/dist/index.cjs498.js +2 -0
  692. package/dist/index.cjs498.js.map +1 -0
  693. package/dist/index.cjs499.js +2 -0
  694. package/dist/index.cjs499.js.map +1 -0
  695. package/dist/index.cjs50.js +1 -1
  696. package/dist/index.cjs500.js +2 -0
  697. package/dist/index.cjs500.js.map +1 -0
  698. package/dist/index.cjs501.js +2 -0
  699. package/dist/index.cjs501.js.map +1 -0
  700. package/dist/index.cjs502.js +2 -0
  701. package/dist/index.cjs502.js.map +1 -0
  702. package/dist/index.cjs503.js +2 -0
  703. package/dist/index.cjs503.js.map +1 -0
  704. package/dist/index.cjs504.js +2 -0
  705. package/dist/index.cjs504.js.map +1 -0
  706. package/dist/index.cjs505.js +2 -0
  707. package/dist/index.cjs505.js.map +1 -0
  708. package/dist/index.cjs506.js +2 -0
  709. package/dist/index.cjs506.js.map +1 -0
  710. package/dist/index.cjs507.js +2 -0
  711. package/dist/index.cjs507.js.map +1 -0
  712. package/dist/index.cjs508.js +2 -0
  713. package/dist/index.cjs508.js.map +1 -0
  714. package/dist/index.cjs509.js +2 -0
  715. package/dist/index.cjs509.js.map +1 -0
  716. package/dist/index.cjs51.js +1 -1
  717. package/dist/index.cjs510.js +2 -0
  718. package/dist/index.cjs510.js.map +1 -0
  719. package/dist/index.cjs511.js +2 -0
  720. package/dist/index.cjs511.js.map +1 -0
  721. package/dist/index.cjs512.js +2 -0
  722. package/dist/index.cjs512.js.map +1 -0
  723. package/dist/index.cjs513.js +2 -0
  724. package/dist/index.cjs513.js.map +1 -0
  725. package/dist/index.cjs514.js +2 -0
  726. package/dist/index.cjs514.js.map +1 -0
  727. package/dist/index.cjs515.js +2 -0
  728. package/dist/index.cjs515.js.map +1 -0
  729. package/dist/index.cjs516.js +2 -0
  730. package/dist/index.cjs516.js.map +1 -0
  731. package/dist/index.cjs517.js +2 -0
  732. package/dist/index.cjs517.js.map +1 -0
  733. package/dist/index.cjs518.js +2 -0
  734. package/dist/index.cjs518.js.map +1 -0
  735. package/dist/index.cjs519.js +2 -0
  736. package/dist/index.cjs519.js.map +1 -0
  737. package/dist/index.cjs52.js +1 -1
  738. package/dist/index.cjs520.js +2 -0
  739. package/dist/index.cjs520.js.map +1 -0
  740. package/dist/index.cjs521.js +2 -0
  741. package/dist/index.cjs521.js.map +1 -0
  742. package/dist/index.cjs522.js +2 -0
  743. package/dist/index.cjs522.js.map +1 -0
  744. package/dist/index.cjs523.js +2 -0
  745. package/dist/index.cjs523.js.map +1 -0
  746. package/dist/index.cjs524.js +2 -0
  747. package/dist/index.cjs524.js.map +1 -0
  748. package/dist/index.cjs525.js +2 -0
  749. package/dist/index.cjs525.js.map +1 -0
  750. package/dist/index.cjs526.js +2 -0
  751. package/dist/index.cjs526.js.map +1 -0
  752. package/dist/index.cjs527.js +2 -0
  753. package/dist/index.cjs527.js.map +1 -0
  754. package/dist/index.cjs528.js +2 -0
  755. package/dist/index.cjs528.js.map +1 -0
  756. package/dist/index.cjs529.js +2 -0
  757. package/dist/index.cjs529.js.map +1 -0
  758. package/dist/index.cjs530.js +2 -0
  759. package/dist/index.cjs530.js.map +1 -0
  760. package/dist/index.cjs531.js +2 -0
  761. package/dist/index.cjs531.js.map +1 -0
  762. package/dist/index.cjs532.js +2 -0
  763. package/dist/index.cjs532.js.map +1 -0
  764. package/dist/index.cjs533.js +2 -0
  765. package/dist/index.cjs533.js.map +1 -0
  766. package/dist/index.cjs534.js +2 -0
  767. package/dist/index.cjs534.js.map +1 -0
  768. package/dist/index.cjs535.js +2 -0
  769. package/dist/index.cjs535.js.map +1 -0
  770. package/dist/index.cjs536.js +2 -0
  771. package/dist/index.cjs536.js.map +1 -0
  772. package/dist/index.cjs537.js +2 -0
  773. package/dist/index.cjs537.js.map +1 -0
  774. package/dist/index.cjs538.js +2 -0
  775. package/dist/index.cjs538.js.map +1 -0
  776. package/dist/index.cjs539.js +2 -0
  777. package/dist/index.cjs539.js.map +1 -0
  778. package/dist/index.cjs540.js +2 -0
  779. package/dist/index.cjs540.js.map +1 -0
  780. package/dist/index.cjs541.js +2 -0
  781. package/dist/index.cjs541.js.map +1 -0
  782. package/dist/index.cjs542.js +2 -0
  783. package/dist/index.cjs542.js.map +1 -0
  784. package/dist/index.cjs543.js +2 -0
  785. package/dist/index.cjs543.js.map +1 -0
  786. package/dist/index.cjs544.js +2 -0
  787. package/dist/index.cjs544.js.map +1 -0
  788. package/dist/index.cjs545.js +2 -0
  789. package/dist/index.cjs545.js.map +1 -0
  790. package/dist/index.cjs546.js +2 -0
  791. package/dist/index.cjs546.js.map +1 -0
  792. package/dist/index.cjs547.js +2 -0
  793. package/dist/index.cjs547.js.map +1 -0
  794. package/dist/index.cjs548.js +2 -0
  795. package/dist/index.cjs548.js.map +1 -0
  796. package/dist/index.cjs549.js +2 -0
  797. package/dist/index.cjs549.js.map +1 -0
  798. package/dist/index.cjs550.js +2 -0
  799. package/dist/index.cjs550.js.map +1 -0
  800. package/dist/index.cjs551.js +2 -0
  801. package/dist/index.cjs551.js.map +1 -0
  802. package/dist/index.cjs552.js +2 -0
  803. package/dist/index.cjs552.js.map +1 -0
  804. package/dist/index.cjs553.js +2 -0
  805. package/dist/index.cjs553.js.map +1 -0
  806. package/dist/index.cjs554.js +2 -0
  807. package/dist/index.cjs554.js.map +1 -0
  808. package/dist/index.cjs555.js +2 -0
  809. package/dist/index.cjs555.js.map +1 -0
  810. package/dist/index.cjs556.js +2 -0
  811. package/dist/index.cjs556.js.map +1 -0
  812. package/dist/index.cjs557.js +2 -0
  813. package/dist/index.cjs557.js.map +1 -0
  814. package/dist/index.cjs558.js +2 -0
  815. package/dist/index.cjs558.js.map +1 -0
  816. package/dist/index.cjs559.js +2 -0
  817. package/dist/index.cjs559.js.map +1 -0
  818. package/dist/index.cjs56.js +1 -1
  819. package/dist/index.cjs560.js +2 -0
  820. package/dist/index.cjs560.js.map +1 -0
  821. package/dist/index.cjs561.js +2 -0
  822. package/dist/index.cjs561.js.map +1 -0
  823. package/dist/index.cjs562.js +2 -0
  824. package/dist/index.cjs562.js.map +1 -0
  825. package/dist/index.cjs563.js +2 -0
  826. package/dist/index.cjs563.js.map +1 -0
  827. package/dist/index.cjs564.js +9 -0
  828. package/dist/index.cjs564.js.map +1 -0
  829. package/dist/index.cjs565.js +2 -0
  830. package/dist/index.cjs565.js.map +1 -0
  831. package/dist/index.cjs566.js +2 -0
  832. package/dist/index.cjs566.js.map +1 -0
  833. package/dist/index.cjs567.js +2 -0
  834. package/dist/index.cjs567.js.map +1 -0
  835. package/dist/index.cjs568.js +2 -0
  836. package/dist/index.cjs568.js.map +1 -0
  837. package/dist/index.cjs569.js +2 -0
  838. package/dist/index.cjs569.js.map +1 -0
  839. package/dist/index.cjs57.js +1 -1
  840. package/dist/index.cjs570.js +2 -0
  841. package/dist/index.cjs570.js.map +1 -0
  842. package/dist/index.cjs571.js +2 -0
  843. package/dist/index.cjs571.js.map +1 -0
  844. package/dist/index.cjs572.js +2 -0
  845. package/dist/index.cjs572.js.map +1 -0
  846. package/dist/index.cjs573.js +2 -0
  847. package/dist/index.cjs573.js.map +1 -0
  848. package/dist/index.cjs574.js +2 -0
  849. package/dist/index.cjs574.js.map +1 -0
  850. package/dist/index.cjs575.js +2 -0
  851. package/dist/index.cjs575.js.map +1 -0
  852. package/dist/index.cjs576.js +2 -0
  853. package/dist/index.cjs576.js.map +1 -0
  854. package/dist/index.cjs577.js +2 -0
  855. package/dist/index.cjs577.js.map +1 -0
  856. package/dist/index.cjs578.js +2 -0
  857. package/dist/index.cjs578.js.map +1 -0
  858. package/dist/index.cjs579.js +2 -0
  859. package/dist/index.cjs579.js.map +1 -0
  860. package/dist/index.cjs58.js +1 -1
  861. package/dist/index.cjs580.js +2 -0
  862. package/dist/index.cjs580.js.map +1 -0
  863. package/dist/index.cjs581.js +2 -0
  864. package/dist/index.cjs581.js.map +1 -0
  865. package/dist/index.cjs582.js +2 -0
  866. package/dist/index.cjs582.js.map +1 -0
  867. package/dist/index.cjs583.js +2 -0
  868. package/dist/index.cjs583.js.map +1 -0
  869. package/dist/index.cjs584.js +2 -0
  870. package/dist/index.cjs584.js.map +1 -0
  871. package/dist/index.cjs585.js +2 -0
  872. package/dist/index.cjs585.js.map +1 -0
  873. package/dist/index.cjs586.js +2 -0
  874. package/dist/index.cjs586.js.map +1 -0
  875. package/dist/index.cjs587.js +2 -0
  876. package/dist/index.cjs587.js.map +1 -0
  877. package/dist/index.cjs588.js +2 -0
  878. package/dist/index.cjs588.js.map +1 -0
  879. package/dist/index.cjs589.js +2 -0
  880. package/dist/index.cjs589.js.map +1 -0
  881. package/dist/index.cjs590.js +2 -0
  882. package/dist/index.cjs590.js.map +1 -0
  883. package/dist/index.cjs591.js +2 -0
  884. package/dist/index.cjs591.js.map +1 -0
  885. package/dist/index.cjs592.js +2 -0
  886. package/dist/index.cjs592.js.map +1 -0
  887. package/dist/index.cjs593.js +2 -0
  888. package/dist/index.cjs593.js.map +1 -0
  889. package/dist/index.cjs594.js +2 -0
  890. package/dist/index.cjs594.js.map +1 -0
  891. package/dist/index.cjs595.js +2 -0
  892. package/dist/index.cjs595.js.map +1 -0
  893. package/dist/index.cjs596.js +2 -0
  894. package/dist/index.cjs596.js.map +1 -0
  895. package/dist/index.cjs597.js +2 -0
  896. package/dist/index.cjs597.js.map +1 -0
  897. package/dist/index.cjs598.js +2 -0
  898. package/dist/index.cjs598.js.map +1 -0
  899. package/dist/index.cjs599.js +2 -0
  900. package/dist/index.cjs599.js.map +1 -0
  901. package/dist/index.cjs60.js +1 -1
  902. package/dist/index.cjs600.js +2 -0
  903. package/dist/index.cjs600.js.map +1 -0
  904. package/dist/index.cjs601.js +2 -0
  905. package/dist/index.cjs601.js.map +1 -0
  906. package/dist/index.cjs602.js +2 -0
  907. package/dist/index.cjs602.js.map +1 -0
  908. package/dist/index.cjs603.js +2 -0
  909. package/dist/index.cjs603.js.map +1 -0
  910. package/dist/index.cjs604.js +2 -0
  911. package/dist/index.cjs604.js.map +1 -0
  912. package/dist/index.cjs605.js +2 -0
  913. package/dist/index.cjs605.js.map +1 -0
  914. package/dist/index.cjs606.js +2 -0
  915. package/dist/index.cjs606.js.map +1 -0
  916. package/dist/index.cjs607.js +2 -0
  917. package/dist/index.cjs607.js.map +1 -0
  918. package/dist/index.cjs608.js +2 -0
  919. package/dist/index.cjs608.js.map +1 -0
  920. package/dist/index.cjs609.js +2 -0
  921. package/dist/index.cjs609.js.map +1 -0
  922. package/dist/index.cjs61.js +1 -1
  923. package/dist/index.cjs610.js +2 -0
  924. package/dist/index.cjs610.js.map +1 -0
  925. package/dist/index.cjs611.js +2 -0
  926. package/dist/index.cjs611.js.map +1 -0
  927. package/dist/index.cjs612.js +2 -0
  928. package/dist/index.cjs612.js.map +1 -0
  929. package/dist/index.cjs613.js +2 -0
  930. package/dist/index.cjs613.js.map +1 -0
  931. package/dist/index.cjs614.js +2 -0
  932. package/dist/index.cjs614.js.map +1 -0
  933. package/dist/index.cjs615.js +2 -0
  934. package/dist/index.cjs615.js.map +1 -0
  935. package/dist/index.cjs616.js +4 -0
  936. package/dist/index.cjs616.js.map +1 -0
  937. package/dist/index.cjs617.js +2 -0
  938. package/dist/index.cjs617.js.map +1 -0
  939. package/dist/index.cjs618.js +2 -0
  940. package/dist/index.cjs618.js.map +1 -0
  941. package/dist/index.cjs619.js +2 -0
  942. package/dist/index.cjs619.js.map +1 -0
  943. package/dist/index.cjs620.js +2 -0
  944. package/dist/index.cjs620.js.map +1 -0
  945. package/dist/index.cjs621.js +2 -0
  946. package/dist/index.cjs621.js.map +1 -0
  947. package/dist/index.cjs622.js +61 -0
  948. package/dist/index.cjs622.js.map +1 -0
  949. package/dist/index.cjs623.js +2 -0
  950. package/dist/index.cjs623.js.map +1 -0
  951. package/dist/index.cjs624.js +2 -0
  952. package/dist/index.cjs624.js.map +1 -0
  953. package/dist/index.cjs625.js +2 -0
  954. package/dist/index.cjs625.js.map +1 -0
  955. package/dist/index.cjs626.js +2 -0
  956. package/dist/index.cjs626.js.map +1 -0
  957. package/dist/index.cjs627.js +2 -0
  958. package/dist/index.cjs627.js.map +1 -0
  959. package/dist/index.cjs628.js +2 -0
  960. package/dist/index.cjs628.js.map +1 -0
  961. package/dist/index.cjs629.js +2 -0
  962. package/dist/index.cjs629.js.map +1 -0
  963. package/dist/index.cjs63.js +1 -1
  964. package/dist/index.cjs630.js +4 -0
  965. package/dist/index.cjs630.js.map +1 -0
  966. package/dist/index.cjs631.js +2 -0
  967. package/dist/index.cjs631.js.map +1 -0
  968. package/dist/index.cjs632.js +2 -0
  969. package/dist/index.cjs632.js.map +1 -0
  970. package/dist/index.cjs67.js +1 -1
  971. package/dist/index.cjs67.js.map +1 -1
  972. package/dist/index.cjs68.js +1 -440
  973. package/dist/index.cjs68.js.map +1 -1
  974. package/dist/index.cjs69.js +1 -1
  975. package/dist/index.cjs69.js.map +1 -1
  976. package/dist/index.cjs70.js.map +1 -1
  977. package/dist/index.cjs71.js +1 -1
  978. package/dist/index.cjs71.js.map +1 -1
  979. package/dist/index.cjs72.js +1 -1
  980. package/dist/index.cjs72.js.map +1 -1
  981. package/dist/index.cjs73.js +1 -1
  982. package/dist/index.cjs73.js.map +1 -1
  983. package/dist/index.cjs74.js +1 -1
  984. package/dist/index.cjs74.js.map +1 -1
  985. package/dist/index.cjs75.js +1 -1
  986. package/dist/index.cjs75.js.map +1 -1
  987. package/dist/index.cjs76.js +1 -1
  988. package/dist/index.cjs76.js.map +1 -1
  989. package/dist/index.cjs77.js +1 -1
  990. package/dist/index.cjs77.js.map +1 -1
  991. package/dist/index.cjs78.js.map +1 -1
  992. package/dist/index.cjs93.js +1 -1
  993. package/dist/index.es100.js +1 -1
  994. package/dist/index.es101.js +1 -1
  995. package/dist/index.es102.js +1 -1
  996. package/dist/index.es103.js +1 -1
  997. package/dist/index.es104.js +1 -1
  998. package/dist/index.es105.js +1 -1
  999. package/dist/index.es106.js +1 -1
  1000. package/dist/index.es107.js +1 -1
  1001. package/dist/index.es108.js +1 -1
  1002. package/dist/index.es111.js +1 -1
  1003. package/dist/index.es112.js +1 -1
  1004. package/dist/index.es114.js +3 -3
  1005. package/dist/index.es115.js +1 -1
  1006. package/dist/index.es116.js +2 -2
  1007. package/dist/index.es117.js +1 -1
  1008. package/dist/index.es12.js +6 -7
  1009. package/dist/index.es12.js.map +1 -1
  1010. package/dist/index.es122.js +1 -1
  1011. package/dist/index.es123.js +1 -1
  1012. package/dist/index.es124.js +1 -1
  1013. package/dist/index.es125.js +1 -1
  1014. package/dist/index.es128.js +2 -2
  1015. package/dist/index.es129.js +2 -2
  1016. package/dist/index.es13.js +8 -8
  1017. package/dist/index.es13.js.map +1 -1
  1018. package/dist/index.es130.js +1 -1
  1019. package/dist/index.es134.js +2 -2
  1020. package/dist/index.es137.js +1 -1
  1021. package/dist/index.es141.js +1 -1
  1022. package/dist/index.es144.js +1 -1
  1023. package/dist/index.es152.js +1 -1
  1024. package/dist/index.es153.js +1 -1
  1025. package/dist/index.es154.js +1 -1
  1026. package/dist/index.es155.js +2 -2
  1027. package/dist/index.es156.js +1 -1
  1028. package/dist/index.es157.js +1 -1
  1029. package/dist/index.es158.js +1 -1
  1030. package/dist/index.es16.js +4 -4
  1031. package/dist/index.es160.js +2 -2
  1032. package/dist/index.es161.js +2 -2
  1033. package/dist/index.es162.js +1 -1
  1034. package/dist/index.es163.js +1 -1
  1035. package/dist/index.es164.js +1 -1
  1036. package/dist/index.es165.js +1 -1
  1037. package/dist/index.es166.js +2 -2
  1038. package/dist/index.es167.js +2 -2
  1039. package/dist/index.es168.js +1 -1
  1040. package/dist/index.es17.js +3 -3
  1041. package/dist/index.es171.js +2 -2
  1042. package/dist/index.es172.js +2 -2
  1043. package/dist/index.es174.js +2 -2
  1044. package/dist/index.es175.js +1 -1
  1045. package/dist/index.es176.js +2 -2
  1046. package/dist/index.es177.js +1 -1
  1047. package/dist/index.es178.js +2 -2
  1048. package/dist/index.es179.js +1 -1
  1049. package/dist/index.es18.js +3 -3
  1050. package/dist/index.es180.js +1 -1
  1051. package/dist/index.es181.js +1 -1
  1052. package/dist/index.es187.js +1 -1
  1053. package/dist/index.es188.js +2 -2
  1054. package/dist/index.es189.js +1 -1
  1055. package/dist/index.es19.js +1 -1
  1056. package/dist/index.es190.js +1 -1
  1057. package/dist/index.es191.js +1 -1
  1058. package/dist/index.es194.js +28 -145
  1059. package/dist/index.es194.js.map +1 -1
  1060. package/dist/index.es195.js +201 -16
  1061. package/dist/index.es195.js.map +1 -1
  1062. package/dist/index.es196.js +8 -6
  1063. package/dist/index.es196.js.map +1 -1
  1064. package/dist/index.es197.js +7 -5
  1065. package/dist/index.es197.js.map +1 -1
  1066. package/dist/index.es198.js +7 -3
  1067. package/dist/index.es198.js.map +1 -1
  1068. package/dist/index.es199.js +2 -2
  1069. package/dist/index.es199.js.map +1 -1
  1070. package/dist/index.es20.js +1 -1
  1071. package/dist/index.es200.js +3 -38
  1072. package/dist/index.es200.js.map +1 -1
  1073. package/dist/index.es201.js +38 -3
  1074. package/dist/index.es201.js.map +1 -1
  1075. package/dist/index.es202.js +3 -25
  1076. package/dist/index.es202.js.map +1 -1
  1077. package/dist/index.es203.js +25 -2
  1078. package/dist/index.es203.js.map +1 -1
  1079. package/dist/index.es204.js +1 -2
  1080. package/dist/index.es204.js.map +1 -1
  1081. package/dist/index.es205.js +2 -1
  1082. package/dist/index.es205.js.map +1 -1
  1083. package/dist/index.es206.js +2 -33
  1084. package/dist/index.es206.js.map +1 -1
  1085. package/dist/index.es207.js +31 -13
  1086. package/dist/index.es207.js.map +1 -1
  1087. package/dist/index.es208.js +11 -12
  1088. package/dist/index.es208.js.map +1 -1
  1089. package/dist/index.es209.js +13 -8
  1090. package/dist/index.es209.js.map +1 -1
  1091. package/dist/index.es21.js +1 -1
  1092. package/dist/index.es210.js +8 -242
  1093. package/dist/index.es210.js.map +1 -1
  1094. package/dist/index.es211.js +60 -41
  1095. package/dist/index.es211.js.map +1 -1
  1096. package/dist/index.es212.js +63 -3
  1097. package/dist/index.es212.js.map +1 -1
  1098. package/dist/index.es213.js +36 -10
  1099. package/dist/index.es213.js.map +1 -1
  1100. package/dist/index.es214.js +476 -10
  1101. package/dist/index.es214.js.map +1 -1
  1102. package/dist/index.es215.js +164 -30
  1103. package/dist/index.es215.js.map +1 -1
  1104. package/dist/index.es216.js +71 -13
  1105. package/dist/index.es216.js.map +1 -1
  1106. package/dist/index.es217.js +49 -4
  1107. package/dist/index.es217.js.map +1 -1
  1108. package/dist/index.es218.js +379 -7
  1109. package/dist/index.es218.js.map +1 -1
  1110. package/dist/index.es219.js +18 -6
  1111. package/dist/index.es219.js.map +1 -1
  1112. package/dist/index.es22.js +1 -1
  1113. package/dist/index.es220.js +124 -4
  1114. package/dist/index.es220.js.map +1 -1
  1115. package/dist/index.es221.js +355 -3
  1116. package/dist/index.es221.js.map +1 -1
  1117. package/dist/index.es222.js +218 -3
  1118. package/dist/index.es222.js.map +1 -1
  1119. package/dist/index.es223.js +23 -9
  1120. package/dist/index.es223.js.map +1 -1
  1121. package/dist/index.es224.js +58 -18
  1122. package/dist/index.es224.js.map +1 -1
  1123. package/dist/index.es225.js +104 -19
  1124. package/dist/index.es225.js.map +1 -1
  1125. package/dist/index.es226.js +29 -13
  1126. package/dist/index.es226.js.map +1 -1
  1127. package/dist/index.es227.js +29 -15
  1128. package/dist/index.es227.js.map +1 -1
  1129. package/dist/index.es228.js +96 -5
  1130. package/dist/index.es228.js.map +1 -1
  1131. package/dist/index.es229.js +35 -8
  1132. package/dist/index.es229.js.map +1 -1
  1133. package/dist/index.es23.js +1 -1
  1134. package/dist/index.es230.js +18 -7
  1135. package/dist/index.es230.js.map +1 -1
  1136. package/dist/index.es231.js +52 -21
  1137. package/dist/index.es231.js.map +1 -1
  1138. package/dist/index.es232.js +7 -10
  1139. package/dist/index.es232.js.map +1 -1
  1140. package/dist/index.es233.js +527 -9
  1141. package/dist/index.es233.js.map +1 -1
  1142. package/dist/index.es234.js +26 -4
  1143. package/dist/index.es234.js.map +1 -1
  1144. package/dist/index.es235.js +7 -10
  1145. package/dist/index.es235.js.map +1 -1
  1146. package/dist/index.es236.js +4 -7
  1147. package/dist/index.es236.js.map +1 -1
  1148. package/dist/index.es237.js +4 -21
  1149. package/dist/index.es237.js.map +1 -1
  1150. package/dist/index.es238.js +3 -11
  1151. package/dist/index.es238.js.map +1 -1
  1152. package/dist/index.es239.js +3 -18
  1153. package/dist/index.es239.js.map +1 -1
  1154. package/dist/index.es24.js +1 -1
  1155. package/dist/index.es240.js +8 -3
  1156. package/dist/index.es240.js.map +1 -1
  1157. package/dist/index.es241.js +17 -16
  1158. package/dist/index.es241.js.map +1 -1
  1159. package/dist/index.es242.js +19 -10
  1160. package/dist/index.es242.js.map +1 -1
  1161. package/dist/index.es243.js +12 -3
  1162. package/dist/index.es243.js.map +1 -1
  1163. package/dist/index.es244.js +14 -4
  1164. package/dist/index.es244.js.map +1 -1
  1165. package/dist/index.es245.js +5 -7506
  1166. package/dist/index.es245.js.map +1 -1
  1167. package/dist/index.es246.js +8 -2
  1168. package/dist/index.es246.js.map +1 -1
  1169. package/dist/index.es247.js +6 -20
  1170. package/dist/index.es247.js.map +1 -1
  1171. package/dist/index.es248.js +21 -22
  1172. package/dist/index.es248.js.map +1 -1
  1173. package/dist/index.es249.js +8 -6
  1174. package/dist/index.es249.js.map +1 -1
  1175. package/dist/index.es25.js +1 -1
  1176. package/dist/index.es250.js +8 -5
  1177. package/dist/index.es250.js.map +1 -1
  1178. package/dist/index.es251.js +4 -3
  1179. package/dist/index.es251.js.map +1 -1
  1180. package/dist/index.es252.js +10 -24
  1181. package/dist/index.es252.js.map +1 -1
  1182. package/dist/index.es253.js +7 -16
  1183. package/dist/index.es253.js.map +1 -1
  1184. package/dist/index.es254.js +20 -30
  1185. package/dist/index.es254.js.map +1 -1
  1186. package/dist/index.es255.js +10 -21
  1187. package/dist/index.es255.js.map +1 -1
  1188. package/dist/index.es256.js +16 -73
  1189. package/dist/index.es256.js.map +1 -1
  1190. package/dist/index.es257.js +4 -21
  1191. package/dist/index.es257.js.map +1 -1
  1192. package/dist/index.es258.js +16 -39
  1193. package/dist/index.es258.js.map +1 -1
  1194. package/dist/index.es259.js +11 -49
  1195. package/dist/index.es259.js.map +1 -1
  1196. package/dist/index.es26.js +2 -2
  1197. package/dist/index.es260.js +3 -7
  1198. package/dist/index.es260.js.map +1 -1
  1199. package/dist/index.es261.js +4 -20
  1200. package/dist/index.es261.js.map +1 -1
  1201. package/dist/index.es262.js +242 -65
  1202. package/dist/index.es262.js.map +1 -1
  1203. package/dist/index.es263.js +40 -40
  1204. package/dist/index.es263.js.map +1 -1
  1205. package/dist/index.es264.js +3 -64
  1206. package/dist/index.es264.js.map +1 -1
  1207. package/dist/index.es265.js +9 -7
  1208. package/dist/index.es265.js.map +1 -1
  1209. package/dist/index.es266.js +10 -3
  1210. package/dist/index.es266.js.map +1 -1
  1211. package/dist/index.es267.js +29 -11
  1212. package/dist/index.es267.js.map +1 -1
  1213. package/dist/index.es268.js +12 -58
  1214. package/dist/index.es268.js.map +1 -1
  1215. package/dist/index.es269.js +4 -49
  1216. package/dist/index.es269.js.map +1 -1
  1217. package/dist/index.es27.js +2 -2
  1218. package/dist/index.es270.js +21 -14
  1219. package/dist/index.es270.js.map +1 -1
  1220. package/dist/index.es271.js +20 -2
  1221. package/dist/index.es271.js.map +1 -1
  1222. package/dist/index.es272.js +7506 -4
  1223. package/dist/index.es272.js.map +1 -1
  1224. package/dist/index.es273.js +2 -70
  1225. package/dist/index.es273.js.map +1 -1
  1226. package/dist/index.es274.js +3 -4
  1227. package/dist/index.es274.js.map +1 -1
  1228. package/dist/index.es275.js +268 -21
  1229. package/dist/index.es275.js.map +1 -1
  1230. package/dist/index.es276.js +11 -0
  1231. package/dist/index.es276.js.map +1 -0
  1232. package/dist/index.es277.js +9 -0
  1233. package/dist/index.es277.js.map +1 -0
  1234. package/dist/index.es278.js +24 -0
  1235. package/dist/index.es278.js.map +1 -0
  1236. package/dist/index.es279.js +26 -0
  1237. package/dist/index.es279.js.map +1 -0
  1238. package/dist/index.es280.js +28 -0
  1239. package/dist/index.es280.js.map +1 -0
  1240. package/dist/index.es281.js +20 -0
  1241. package/dist/index.es281.js.map +1 -0
  1242. package/dist/index.es282.js +34 -0
  1243. package/dist/index.es282.js.map +1 -0
  1244. package/dist/index.es283.js +25 -0
  1245. package/dist/index.es283.js.map +1 -0
  1246. package/dist/index.es284.js +78 -0
  1247. package/dist/index.es284.js.map +1 -0
  1248. package/dist/index.es285.js +24 -0
  1249. package/dist/index.es285.js.map +1 -0
  1250. package/dist/index.es286.js +44 -0
  1251. package/dist/index.es286.js.map +1 -0
  1252. package/dist/index.es287.js +53 -0
  1253. package/dist/index.es287.js.map +1 -0
  1254. package/dist/index.es288.js +11 -0
  1255. package/dist/index.es288.js.map +1 -0
  1256. package/dist/index.es289.js +24 -0
  1257. package/dist/index.es289.js.map +1 -0
  1258. package/dist/index.es290.js +69 -0
  1259. package/dist/index.es290.js.map +1 -0
  1260. package/dist/index.es291.js +46 -0
  1261. package/dist/index.es291.js.map +1 -0
  1262. package/dist/index.es292.js +67 -0
  1263. package/dist/index.es292.js.map +1 -0
  1264. package/dist/index.es293.js +12 -0
  1265. package/dist/index.es293.js.map +1 -0
  1266. package/dist/index.es294.js +7 -0
  1267. package/dist/index.es294.js.map +1 -0
  1268. package/dist/index.es295.js +16 -0
  1269. package/dist/index.es295.js.map +1 -0
  1270. package/dist/index.es296.js +63 -0
  1271. package/dist/index.es296.js.map +1 -0
  1272. package/dist/index.es297.js +53 -0
  1273. package/dist/index.es297.js.map +1 -0
  1274. package/dist/index.es298.js +418 -0
  1275. package/dist/index.es298.js.map +1 -0
  1276. package/dist/index.es299.js +80 -0
  1277. package/dist/index.es299.js.map +1 -0
  1278. package/dist/index.es300.js +246 -0
  1279. package/dist/index.es300.js.map +1 -0
  1280. package/dist/index.es301.js +33 -0
  1281. package/dist/index.es301.js.map +1 -0
  1282. package/dist/index.es302.js +157 -0
  1283. package/dist/index.es302.js.map +1 -0
  1284. package/dist/index.es303.js +21 -0
  1285. package/dist/index.es303.js.map +1 -0
  1286. package/dist/index.es304.js +17 -0
  1287. package/dist/index.es304.js.map +1 -0
  1288. package/dist/index.es305.js +565 -0
  1289. package/dist/index.es305.js.map +1 -0
  1290. package/dist/index.es306.js +354 -0
  1291. package/dist/index.es306.js.map +1 -0
  1292. package/dist/index.es307.js +67 -0
  1293. package/dist/index.es307.js.map +1 -0
  1294. package/dist/index.es308.js +50 -0
  1295. package/dist/index.es308.js.map +1 -0
  1296. package/dist/index.es309.js +215 -0
  1297. package/dist/index.es309.js.map +1 -0
  1298. package/dist/index.es310.js +65 -0
  1299. package/dist/index.es310.js.map +1 -0
  1300. package/dist/index.es311.js +63 -0
  1301. package/dist/index.es311.js.map +1 -0
  1302. package/dist/index.es312.js +49 -0
  1303. package/dist/index.es312.js.map +1 -0
  1304. package/dist/index.es313.js +55 -0
  1305. package/dist/index.es313.js.map +1 -0
  1306. package/dist/index.es314.js +329 -0
  1307. package/dist/index.es314.js.map +1 -0
  1308. package/dist/index.es315.js +314 -0
  1309. package/dist/index.es315.js.map +1 -0
  1310. package/dist/index.es316.js +259 -0
  1311. package/dist/index.es316.js.map +1 -0
  1312. package/dist/index.es317.js +60 -0
  1313. package/dist/index.es317.js.map +1 -0
  1314. package/dist/index.es318.js +218 -0
  1315. package/dist/index.es318.js.map +1 -0
  1316. package/dist/index.es319.js +204 -0
  1317. package/dist/index.es319.js.map +1 -0
  1318. package/dist/index.es320.js +20 -0
  1319. package/dist/index.es320.js.map +1 -0
  1320. package/dist/index.es321.js +30 -0
  1321. package/dist/index.es321.js.map +1 -0
  1322. package/dist/index.es322.js +204 -0
  1323. package/dist/index.es322.js.map +1 -0
  1324. package/dist/index.es323.js +9 -0
  1325. package/dist/index.es323.js.map +1 -0
  1326. package/dist/index.es324.js +89 -0
  1327. package/dist/index.es324.js.map +1 -0
  1328. package/dist/index.es325.js +62 -0
  1329. package/dist/index.es325.js.map +1 -0
  1330. package/dist/index.es326.js +17 -0
  1331. package/dist/index.es326.js.map +1 -0
  1332. package/dist/index.es327.js +107 -0
  1333. package/dist/index.es327.js.map +1 -0
  1334. package/dist/index.es328.js +19 -0
  1335. package/dist/index.es328.js.map +1 -0
  1336. package/dist/index.es329.js +30 -0
  1337. package/dist/index.es329.js.map +1 -0
  1338. package/dist/index.es330.js +132 -0
  1339. package/dist/index.es330.js.map +1 -0
  1340. package/dist/index.es331.js +20 -0
  1341. package/dist/index.es331.js.map +1 -0
  1342. package/dist/index.es332.js +8 -0
  1343. package/dist/index.es332.js.map +1 -0
  1344. package/dist/index.es333.js +69 -0
  1345. package/dist/index.es333.js.map +1 -0
  1346. package/dist/index.es334.js +164 -0
  1347. package/dist/index.es334.js.map +1 -0
  1348. package/dist/index.es335.js +142 -0
  1349. package/dist/index.es335.js.map +1 -0
  1350. package/dist/index.es336.js +31 -0
  1351. package/dist/index.es336.js.map +1 -0
  1352. package/dist/index.es337.js +6 -0
  1353. package/dist/index.es337.js.map +1 -0
  1354. package/dist/index.es338.js +8 -0
  1355. package/dist/index.es338.js.map +1 -0
  1356. package/dist/index.es339.js +73 -0
  1357. package/dist/index.es339.js.map +1 -0
  1358. package/dist/index.es340.js +19 -0
  1359. package/dist/index.es340.js.map +1 -0
  1360. package/dist/index.es341.js +65 -0
  1361. package/dist/index.es341.js.map +1 -0
  1362. package/dist/index.es342.js +47 -0
  1363. package/dist/index.es342.js.map +1 -0
  1364. package/dist/index.es343.js +25 -0
  1365. package/dist/index.es343.js.map +1 -0
  1366. package/dist/index.es344.js +11 -0
  1367. package/dist/index.es344.js.map +1 -0
  1368. package/dist/index.es345.js +40 -0
  1369. package/dist/index.es345.js.map +1 -0
  1370. package/dist/index.es346.js +132 -0
  1371. package/dist/index.es346.js.map +1 -0
  1372. package/dist/index.es347.js +48 -0
  1373. package/dist/index.es347.js.map +1 -0
  1374. package/dist/index.es348.js +223 -0
  1375. package/dist/index.es348.js.map +1 -0
  1376. package/dist/index.es349.js +40 -0
  1377. package/dist/index.es349.js.map +1 -0
  1378. package/dist/index.es350.js +286 -0
  1379. package/dist/index.es350.js.map +1 -0
  1380. package/dist/index.es351.js +63 -0
  1381. package/dist/index.es351.js.map +1 -0
  1382. package/dist/index.es352.js +54 -0
  1383. package/dist/index.es352.js.map +1 -0
  1384. package/dist/index.es353.js +251 -0
  1385. package/dist/index.es353.js.map +1 -0
  1386. package/dist/index.es354.js +30 -0
  1387. package/dist/index.es354.js.map +1 -0
  1388. package/dist/index.es355.js +7 -0
  1389. package/dist/index.es355.js.map +1 -0
  1390. package/dist/index.es356.js +7 -0
  1391. package/dist/index.es356.js.map +1 -0
  1392. package/dist/index.es357.js +28 -0
  1393. package/dist/index.es357.js.map +1 -0
  1394. package/dist/index.es358.js +261 -0
  1395. package/dist/index.es358.js.map +1 -0
  1396. package/dist/index.es359.js +108 -0
  1397. package/dist/index.es359.js.map +1 -0
  1398. package/dist/index.es360.js +206 -0
  1399. package/dist/index.es360.js.map +1 -0
  1400. package/dist/index.es361.js +45 -0
  1401. package/dist/index.es361.js.map +1 -0
  1402. package/dist/index.es362.js +18 -0
  1403. package/dist/index.es362.js.map +1 -0
  1404. package/dist/index.es363.js +11 -0
  1405. package/dist/index.es363.js.map +1 -0
  1406. package/dist/index.es364.js +64 -0
  1407. package/dist/index.es364.js.map +1 -0
  1408. package/dist/index.es365.js +50 -0
  1409. package/dist/index.es365.js.map +1 -0
  1410. package/dist/index.es366.js +45 -0
  1411. package/dist/index.es366.js.map +1 -0
  1412. package/dist/index.es367.js +92 -0
  1413. package/dist/index.es367.js.map +1 -0
  1414. package/dist/index.es368.js +89 -0
  1415. package/dist/index.es368.js.map +1 -0
  1416. package/dist/index.es369.js +57 -0
  1417. package/dist/index.es369.js.map +1 -0
  1418. package/dist/index.es370.js +61 -0
  1419. package/dist/index.es370.js.map +1 -0
  1420. package/dist/index.es371.js +58 -0
  1421. package/dist/index.es371.js.map +1 -0
  1422. package/dist/index.es372.js +147 -0
  1423. package/dist/index.es372.js.map +1 -0
  1424. package/dist/index.es373.js +58 -0
  1425. package/dist/index.es373.js.map +1 -0
  1426. package/dist/index.es374.js +85 -0
  1427. package/dist/index.es374.js.map +1 -0
  1428. package/dist/index.es375.js +9 -0
  1429. package/dist/index.es375.js.map +1 -0
  1430. package/dist/index.es376.js +48 -0
  1431. package/dist/index.es376.js.map +1 -0
  1432. package/dist/index.es377.js +13 -0
  1433. package/dist/index.es377.js.map +1 -0
  1434. package/dist/index.es378.js +35 -0
  1435. package/dist/index.es378.js.map +1 -0
  1436. package/dist/index.es379.js +31 -0
  1437. package/dist/index.es379.js.map +1 -0
  1438. package/dist/index.es38.js +1 -1
  1439. package/dist/index.es380.js +1360 -0
  1440. package/dist/index.es380.js.map +1 -0
  1441. package/dist/index.es381.js +9 -0
  1442. package/dist/index.es381.js.map +1 -0
  1443. package/dist/index.es382.js +12 -0
  1444. package/dist/index.es382.js.map +1 -0
  1445. package/dist/index.es383.js +10 -0
  1446. package/dist/index.es383.js.map +1 -0
  1447. package/dist/index.es384.js +120 -0
  1448. package/dist/index.es384.js.map +1 -0
  1449. package/dist/index.es385.js +105 -0
  1450. package/dist/index.es385.js.map +1 -0
  1451. package/dist/index.es386.js +23 -0
  1452. package/dist/index.es386.js.map +1 -0
  1453. package/dist/index.es387.js +95 -0
  1454. package/dist/index.es387.js.map +1 -0
  1455. package/dist/index.es388.js +68 -0
  1456. package/dist/index.es388.js.map +1 -0
  1457. package/dist/index.es389.js +16 -0
  1458. package/dist/index.es389.js.map +1 -0
  1459. package/dist/index.es39.js +1 -1
  1460. package/dist/index.es390.js +61 -0
  1461. package/dist/index.es390.js.map +1 -0
  1462. package/dist/index.es391.js +55 -0
  1463. package/dist/index.es391.js.map +1 -0
  1464. package/dist/index.es392.js +23 -0
  1465. package/dist/index.es392.js.map +1 -0
  1466. package/dist/index.es393.js +34 -0
  1467. package/dist/index.es393.js.map +1 -0
  1468. package/dist/index.es394.js +47 -0
  1469. package/dist/index.es394.js.map +1 -0
  1470. package/dist/index.es395.js +35 -0
  1471. package/dist/index.es395.js.map +1 -0
  1472. package/dist/index.es396.js +59 -0
  1473. package/dist/index.es396.js.map +1 -0
  1474. package/dist/index.es397.js +62 -0
  1475. package/dist/index.es397.js.map +1 -0
  1476. package/dist/index.es398.js +32 -0
  1477. package/dist/index.es398.js.map +1 -0
  1478. package/dist/index.es399.js +53 -0
  1479. package/dist/index.es399.js.map +1 -0
  1480. package/dist/index.es40.js +2 -2
  1481. package/dist/index.es400.js +128 -0
  1482. package/dist/index.es400.js.map +1 -0
  1483. package/dist/index.es401.js +44 -0
  1484. package/dist/index.es401.js.map +1 -0
  1485. package/dist/index.es402.js +29 -0
  1486. package/dist/index.es402.js.map +1 -0
  1487. package/dist/index.es403.js +37 -0
  1488. package/dist/index.es403.js.map +1 -0
  1489. package/dist/index.es404.js +28 -0
  1490. package/dist/index.es404.js.map +1 -0
  1491. package/dist/index.es405.js +69 -0
  1492. package/dist/index.es405.js.map +1 -0
  1493. package/dist/index.es406.js +49 -0
  1494. package/dist/index.es406.js.map +1 -0
  1495. package/dist/index.es407.js +27 -0
  1496. package/dist/index.es407.js.map +1 -0
  1497. package/dist/index.es408.js +48 -0
  1498. package/dist/index.es408.js.map +1 -0
  1499. package/dist/index.es409.js +19 -0
  1500. package/dist/index.es409.js.map +1 -0
  1501. package/dist/index.es410.js +38 -0
  1502. package/dist/index.es410.js.map +1 -0
  1503. package/dist/index.es411.js +49 -0
  1504. package/dist/index.es411.js.map +1 -0
  1505. package/dist/index.es412.js +35 -0
  1506. package/dist/index.es412.js.map +1 -0
  1507. package/dist/index.es413.js +37 -0
  1508. package/dist/index.es413.js.map +1 -0
  1509. package/dist/index.es414.js +29 -0
  1510. package/dist/index.es414.js.map +1 -0
  1511. package/dist/index.es415.js +68 -0
  1512. package/dist/index.es415.js.map +1 -0
  1513. package/dist/index.es416.js +105 -0
  1514. package/dist/index.es416.js.map +1 -0
  1515. package/dist/index.es417.js +27 -0
  1516. package/dist/index.es417.js.map +1 -0
  1517. package/dist/index.es418.js +111 -0
  1518. package/dist/index.es418.js.map +1 -0
  1519. package/dist/index.es419.js +50 -0
  1520. package/dist/index.es419.js.map +1 -0
  1521. package/dist/index.es42.js +2 -2
  1522. package/dist/index.es420.js +36 -0
  1523. package/dist/index.es420.js.map +1 -0
  1524. package/dist/index.es421.js +56 -0
  1525. package/dist/index.es421.js.map +1 -0
  1526. package/dist/index.es422.js +174 -0
  1527. package/dist/index.es422.js.map +1 -0
  1528. package/dist/index.es423.js +61 -0
  1529. package/dist/index.es423.js.map +1 -0
  1530. package/dist/index.es424.js +62 -0
  1531. package/dist/index.es424.js.map +1 -0
  1532. package/dist/index.es425.js +87 -0
  1533. package/dist/index.es425.js.map +1 -0
  1534. package/dist/index.es426.js +26 -0
  1535. package/dist/index.es426.js.map +1 -0
  1536. package/dist/index.es427.js +56 -0
  1537. package/dist/index.es427.js.map +1 -0
  1538. package/dist/index.es428.js +55 -0
  1539. package/dist/index.es428.js.map +1 -0
  1540. package/dist/index.es429.js +8 -0
  1541. package/dist/index.es429.js.map +1 -0
  1542. package/dist/index.es43.js +2 -2
  1543. package/dist/index.es430.js +8 -0
  1544. package/dist/index.es430.js.map +1 -0
  1545. package/dist/index.es431.js +23 -0
  1546. package/dist/index.es431.js.map +1 -0
  1547. package/dist/index.es432.js +7 -0
  1548. package/dist/index.es432.js.map +1 -0
  1549. package/dist/index.es433.js +11 -0
  1550. package/dist/index.es433.js.map +1 -0
  1551. package/dist/index.es434.js +10 -0
  1552. package/dist/index.es434.js.map +1 -0
  1553. package/dist/index.es435.js +7 -0
  1554. package/dist/index.es435.js.map +1 -0
  1555. package/dist/index.es436.js +5 -0
  1556. package/dist/index.es436.js.map +1 -0
  1557. package/dist/index.es437.js +9 -0
  1558. package/dist/index.es437.js.map +1 -0
  1559. package/dist/index.es438.js +13 -0
  1560. package/dist/index.es438.js.map +1 -0
  1561. package/dist/index.es439.js +8 -0
  1562. package/dist/index.es439.js.map +1 -0
  1563. package/dist/index.es44.js +2 -2
  1564. package/dist/index.es440.js +7 -0
  1565. package/dist/index.es440.js.map +1 -0
  1566. package/dist/index.es441.js +6 -0
  1567. package/dist/index.es441.js.map +1 -0
  1568. package/dist/index.es442.js +7 -0
  1569. package/dist/index.es442.js.map +1 -0
  1570. package/dist/index.es443.js +9 -0
  1571. package/dist/index.es443.js.map +1 -0
  1572. package/dist/index.es444.js +11 -0
  1573. package/dist/index.es444.js.map +1 -0
  1574. package/dist/index.es445.js +8 -0
  1575. package/dist/index.es445.js.map +1 -0
  1576. package/dist/index.es446.js +10 -0
  1577. package/dist/index.es446.js.map +1 -0
  1578. package/dist/index.es447.js +9 -0
  1579. package/dist/index.es447.js.map +1 -0
  1580. package/dist/index.es448.js +12 -0
  1581. package/dist/index.es448.js.map +1 -0
  1582. package/dist/index.es449.js +8 -0
  1583. package/dist/index.es449.js.map +1 -0
  1584. package/dist/index.es450.js +10 -0
  1585. package/dist/index.es450.js.map +1 -0
  1586. package/dist/index.es451.js +10 -0
  1587. package/dist/index.es451.js.map +1 -0
  1588. package/dist/index.es452.js +8 -0
  1589. package/dist/index.es452.js.map +1 -0
  1590. package/dist/index.es453.js +13 -0
  1591. package/dist/index.es453.js.map +1 -0
  1592. package/dist/index.es454.js +10 -0
  1593. package/dist/index.es454.js.map +1 -0
  1594. package/dist/index.es455.js +21 -0
  1595. package/dist/index.es455.js.map +1 -0
  1596. package/dist/index.es456.js +15 -0
  1597. package/dist/index.es456.js.map +1 -0
  1598. package/dist/index.es457.js +7 -0
  1599. package/dist/index.es457.js.map +1 -0
  1600. package/dist/index.es458.js +9 -0
  1601. package/dist/index.es458.js.map +1 -0
  1602. package/dist/index.es459.js +19 -0
  1603. package/dist/index.es459.js.map +1 -0
  1604. package/dist/index.es46.js +1 -1
  1605. package/dist/index.es460.js +11 -0
  1606. package/dist/index.es460.js.map +1 -0
  1607. package/dist/index.es461.js +44 -0
  1608. package/dist/index.es461.js.map +1 -0
  1609. package/dist/index.es462.js +80 -0
  1610. package/dist/index.es462.js.map +1 -0
  1611. package/dist/index.es463.js +108 -0
  1612. package/dist/index.es463.js.map +1 -0
  1613. package/dist/index.es464.js +34 -0
  1614. package/dist/index.es464.js.map +1 -0
  1615. package/dist/index.es465.js +25 -0
  1616. package/dist/index.es465.js.map +1 -0
  1617. package/dist/index.es466.js +14 -0
  1618. package/dist/index.es466.js.map +1 -0
  1619. package/dist/index.es467.js +721 -0
  1620. package/dist/index.es467.js.map +1 -0
  1621. package/dist/index.es468.js +26 -0
  1622. package/dist/index.es468.js.map +1 -0
  1623. package/dist/index.es469.js +24 -0
  1624. package/dist/index.es469.js.map +1 -0
  1625. package/dist/index.es47.js +2 -2
  1626. package/dist/index.es470.js +178 -0
  1627. package/dist/index.es470.js.map +1 -0
  1628. package/dist/index.es471.js +24 -0
  1629. package/dist/index.es471.js.map +1 -0
  1630. package/dist/index.es472.js +241 -0
  1631. package/dist/index.es472.js.map +1 -0
  1632. package/dist/index.es473.js +11 -0
  1633. package/dist/index.es473.js.map +1 -0
  1634. package/dist/index.es474.js +13 -0
  1635. package/dist/index.es474.js.map +1 -0
  1636. package/dist/index.es475.js +9 -0
  1637. package/dist/index.es475.js.map +1 -0
  1638. package/dist/index.es476.js +18 -0
  1639. package/dist/index.es476.js.map +1 -0
  1640. package/dist/index.es477.js +26 -0
  1641. package/dist/index.es477.js.map +1 -0
  1642. package/dist/index.es478.js +12 -0
  1643. package/dist/index.es478.js.map +1 -0
  1644. package/dist/index.es479.js +8 -0
  1645. package/dist/index.es479.js.map +1 -0
  1646. package/dist/index.es48.js +2 -2
  1647. package/dist/index.es480.js +118 -0
  1648. package/dist/index.es480.js.map +1 -0
  1649. package/dist/index.es481.js +90 -0
  1650. package/dist/index.es481.js.map +1 -0
  1651. package/dist/index.es482.js +78 -0
  1652. package/dist/index.es482.js.map +1 -0
  1653. package/dist/index.es483.js +13 -0
  1654. package/dist/index.es483.js.map +1 -0
  1655. package/dist/index.es484.js +158 -0
  1656. package/dist/index.es484.js.map +1 -0
  1657. package/dist/index.es485.js +160 -0
  1658. package/dist/index.es485.js.map +1 -0
  1659. package/dist/index.es486.js +18 -0
  1660. package/dist/index.es486.js.map +1 -0
  1661. package/dist/index.es487.js +19 -0
  1662. package/dist/index.es487.js.map +1 -0
  1663. package/dist/index.es488.js +9 -0
  1664. package/dist/index.es488.js.map +1 -0
  1665. package/dist/index.es489.js +10 -0
  1666. package/dist/index.es489.js.map +1 -0
  1667. package/dist/index.es490.js +10 -0
  1668. package/dist/index.es490.js.map +1 -0
  1669. package/dist/index.es491.js +29 -0
  1670. package/dist/index.es491.js.map +1 -0
  1671. package/dist/index.es492.js +9 -0
  1672. package/dist/index.es492.js.map +1 -0
  1673. package/dist/index.es493.js +43 -0
  1674. package/dist/index.es493.js.map +1 -0
  1675. package/dist/index.es494.js +10 -0
  1676. package/dist/index.es494.js.map +1 -0
  1677. package/dist/index.es495.js +11 -0
  1678. package/dist/index.es495.js.map +1 -0
  1679. package/dist/index.es496.js +9 -0
  1680. package/dist/index.es496.js.map +1 -0
  1681. package/dist/index.es497.js +9 -0
  1682. package/dist/index.es497.js.map +1 -0
  1683. package/dist/index.es498.js +6 -0
  1684. package/dist/index.es498.js.map +1 -0
  1685. package/dist/index.es499.js +42 -0
  1686. package/dist/index.es499.js.map +1 -0
  1687. package/dist/index.es50.js +1 -1
  1688. package/dist/index.es500.js +6 -0
  1689. package/dist/index.es500.js.map +1 -0
  1690. package/dist/index.es501.js +16 -0
  1691. package/dist/index.es501.js.map +1 -0
  1692. package/dist/index.es502.js +8 -0
  1693. package/dist/index.es502.js.map +1 -0
  1694. package/dist/index.es503.js +12 -0
  1695. package/dist/index.es503.js.map +1 -0
  1696. package/dist/index.es504.js +5 -0
  1697. package/dist/index.es504.js.map +1 -0
  1698. package/dist/index.es505.js +33 -0
  1699. package/dist/index.es505.js.map +1 -0
  1700. package/dist/index.es506.js +19 -0
  1701. package/dist/index.es506.js.map +1 -0
  1702. package/dist/index.es507.js +8 -0
  1703. package/dist/index.es507.js.map +1 -0
  1704. package/dist/index.es508.js +6 -0
  1705. package/dist/index.es508.js.map +1 -0
  1706. package/dist/index.es509.js +9 -0
  1707. package/dist/index.es509.js.map +1 -0
  1708. package/dist/index.es51.js +1 -1
  1709. package/dist/index.es510.js +9 -0
  1710. package/dist/index.es510.js.map +1 -0
  1711. package/dist/index.es511.js +9 -0
  1712. package/dist/index.es511.js.map +1 -0
  1713. package/dist/index.es512.js +7 -0
  1714. package/dist/index.es512.js.map +1 -0
  1715. package/dist/index.es513.js +7 -0
  1716. package/dist/index.es513.js.map +1 -0
  1717. package/dist/index.es514.js +7 -0
  1718. package/dist/index.es514.js.map +1 -0
  1719. package/dist/index.es515.js +7 -0
  1720. package/dist/index.es515.js.map +1 -0
  1721. package/dist/index.es516.js +7 -0
  1722. package/dist/index.es516.js.map +1 -0
  1723. package/dist/index.es517.js +18 -0
  1724. package/dist/index.es517.js.map +1 -0
  1725. package/dist/index.es518.js +11 -0
  1726. package/dist/index.es518.js.map +1 -0
  1727. package/dist/index.es519.js +7 -0
  1728. package/dist/index.es519.js.map +1 -0
  1729. package/dist/index.es52.js +1 -1
  1730. package/dist/index.es520.js +15 -0
  1731. package/dist/index.es520.js.map +1 -0
  1732. package/dist/index.es521.js +9 -0
  1733. package/dist/index.es521.js.map +1 -0
  1734. package/dist/index.es522.js +7 -0
  1735. package/dist/index.es522.js.map +1 -0
  1736. package/dist/index.es523.js +8 -0
  1737. package/dist/index.es523.js.map +1 -0
  1738. package/dist/index.es524.js +9 -0
  1739. package/dist/index.es524.js.map +1 -0
  1740. package/dist/index.es525.js +10 -0
  1741. package/dist/index.es525.js.map +1 -0
  1742. package/dist/index.es526.js +9 -0
  1743. package/dist/index.es526.js.map +1 -0
  1744. package/dist/index.es527.js +9 -0
  1745. package/dist/index.es527.js.map +1 -0
  1746. package/dist/index.es528.js +11 -0
  1747. package/dist/index.es528.js.map +1 -0
  1748. package/dist/index.es529.js +14 -0
  1749. package/dist/index.es529.js.map +1 -0
  1750. package/dist/index.es530.js +28 -0
  1751. package/dist/index.es530.js.map +1 -0
  1752. package/dist/index.es531.js +8 -0
  1753. package/dist/index.es531.js.map +1 -0
  1754. package/dist/index.es532.js +9 -0
  1755. package/dist/index.es532.js.map +1 -0
  1756. package/dist/index.es533.js +11 -0
  1757. package/dist/index.es533.js.map +1 -0
  1758. package/dist/index.es534.js +7 -0
  1759. package/dist/index.es534.js.map +1 -0
  1760. package/dist/index.es535.js +7 -0
  1761. package/dist/index.es535.js.map +1 -0
  1762. package/dist/index.es536.js +7 -0
  1763. package/dist/index.es536.js.map +1 -0
  1764. package/dist/index.es537.js +7 -0
  1765. package/dist/index.es537.js.map +1 -0
  1766. package/dist/index.es538.js +7 -0
  1767. package/dist/index.es538.js.map +1 -0
  1768. package/dist/index.es539.js +8 -0
  1769. package/dist/index.es539.js.map +1 -0
  1770. package/dist/index.es540.js +9 -0
  1771. package/dist/index.es540.js.map +1 -0
  1772. package/dist/index.es541.js +12 -0
  1773. package/dist/index.es541.js.map +1 -0
  1774. package/dist/index.es542.js +8 -0
  1775. package/dist/index.es542.js.map +1 -0
  1776. package/dist/index.es543.js +9 -0
  1777. package/dist/index.es543.js.map +1 -0
  1778. package/dist/index.es544.js +8 -0
  1779. package/dist/index.es544.js.map +1 -0
  1780. package/dist/index.es545.js +7 -0
  1781. package/dist/index.es545.js.map +1 -0
  1782. package/dist/index.es546.js +14 -0
  1783. package/dist/index.es546.js.map +1 -0
  1784. package/dist/index.es547.js +34 -0
  1785. package/dist/index.es547.js.map +1 -0
  1786. package/dist/index.es548.js +83 -0
  1787. package/dist/index.es548.js.map +1 -0
  1788. package/dist/index.es549.js +20 -0
  1789. package/dist/index.es549.js.map +1 -0
  1790. package/dist/index.es550.js +50 -0
  1791. package/dist/index.es550.js.map +1 -0
  1792. package/dist/index.es551.js +227 -0
  1793. package/dist/index.es551.js.map +1 -0
  1794. package/dist/index.es552.js +21 -0
  1795. package/dist/index.es552.js.map +1 -0
  1796. package/dist/index.es553.js +14 -0
  1797. package/dist/index.es553.js.map +1 -0
  1798. package/dist/index.es554.js +9 -0
  1799. package/dist/index.es554.js.map +1 -0
  1800. package/dist/index.es555.js +8 -0
  1801. package/dist/index.es555.js.map +1 -0
  1802. package/dist/index.es556.js +8 -0
  1803. package/dist/index.es556.js.map +1 -0
  1804. package/dist/index.es557.js +9 -0
  1805. package/dist/index.es557.js.map +1 -0
  1806. package/dist/index.es558.js +10 -0
  1807. package/dist/index.es558.js.map +1 -0
  1808. package/dist/index.es559.js +10 -0
  1809. package/dist/index.es559.js.map +1 -0
  1810. package/dist/index.es56.js +2 -2
  1811. package/dist/index.es560.js +10 -0
  1812. package/dist/index.es560.js.map +1 -0
  1813. package/dist/index.es561.js +10 -0
  1814. package/dist/index.es561.js.map +1 -0
  1815. package/dist/index.es562.js +17 -0
  1816. package/dist/index.es562.js.map +1 -0
  1817. package/dist/index.es563.js +12 -0
  1818. package/dist/index.es563.js.map +1 -0
  1819. package/dist/index.es564.js +3029 -0
  1820. package/dist/index.es564.js.map +1 -0
  1821. package/dist/index.es565.js +5 -0
  1822. package/dist/index.es565.js.map +1 -0
  1823. package/dist/index.es566.js +11 -0
  1824. package/dist/index.es566.js.map +1 -0
  1825. package/dist/index.es567.js +10 -0
  1826. package/dist/index.es567.js.map +1 -0
  1827. package/dist/index.es568.js +21 -0
  1828. package/dist/index.es568.js.map +1 -0
  1829. package/dist/index.es569.js +14 -0
  1830. package/dist/index.es569.js.map +1 -0
  1831. package/dist/index.es57.js +3 -3
  1832. package/dist/index.es570.js +8 -0
  1833. package/dist/index.es570.js.map +1 -0
  1834. package/dist/index.es571.js +7 -0
  1835. package/dist/index.es571.js.map +1 -0
  1836. package/dist/index.es572.js +7 -0
  1837. package/dist/index.es572.js.map +1 -0
  1838. package/dist/index.es573.js +21 -0
  1839. package/dist/index.es573.js.map +1 -0
  1840. package/dist/index.es574.js +8 -0
  1841. package/dist/index.es574.js.map +1 -0
  1842. package/dist/index.es575.js +8 -0
  1843. package/dist/index.es575.js.map +1 -0
  1844. package/dist/index.es576.js +7 -0
  1845. package/dist/index.es576.js.map +1 -0
  1846. package/dist/index.es577.js +7 -0
  1847. package/dist/index.es577.js.map +1 -0
  1848. package/dist/index.es578.js +18 -0
  1849. package/dist/index.es578.js.map +1 -0
  1850. package/dist/index.es579.js +10 -0
  1851. package/dist/index.es579.js.map +1 -0
  1852. package/dist/index.es58.js +1 -1
  1853. package/dist/index.es580.js +11 -0
  1854. package/dist/index.es580.js.map +1 -0
  1855. package/dist/index.es581.js +9 -0
  1856. package/dist/index.es581.js.map +1 -0
  1857. package/dist/index.es582.js +9 -0
  1858. package/dist/index.es582.js.map +1 -0
  1859. package/dist/index.es583.js +9 -0
  1860. package/dist/index.es583.js.map +1 -0
  1861. package/dist/index.es584.js +9 -0
  1862. package/dist/index.es584.js.map +1 -0
  1863. package/dist/index.es585.js +9 -0
  1864. package/dist/index.es585.js.map +1 -0
  1865. package/dist/index.es586.js +9 -0
  1866. package/dist/index.es586.js.map +1 -0
  1867. package/dist/index.es587.js +10 -0
  1868. package/dist/index.es587.js.map +1 -0
  1869. package/dist/index.es588.js +41 -0
  1870. package/dist/index.es588.js.map +1 -0
  1871. package/dist/index.es589.js +46 -0
  1872. package/dist/index.es589.js.map +1 -0
  1873. package/dist/index.es590.js +37 -0
  1874. package/dist/index.es590.js.map +1 -0
  1875. package/dist/index.es591.js +8 -0
  1876. package/dist/index.es591.js.map +1 -0
  1877. package/dist/index.es592.js +8 -0
  1878. package/dist/index.es592.js.map +1 -0
  1879. package/dist/index.es593.js +7 -0
  1880. package/dist/index.es593.js.map +1 -0
  1881. package/dist/index.es594.js +21 -0
  1882. package/dist/index.es594.js.map +1 -0
  1883. package/dist/index.es595.js +9 -0
  1884. package/dist/index.es595.js.map +1 -0
  1885. package/dist/index.es596.js +47 -0
  1886. package/dist/index.es596.js.map +1 -0
  1887. package/dist/index.es597.js +6 -0
  1888. package/dist/index.es597.js.map +1 -0
  1889. package/dist/index.es598.js +25 -0
  1890. package/dist/index.es598.js.map +1 -0
  1891. package/dist/index.es599.js +37 -0
  1892. package/dist/index.es599.js.map +1 -0
  1893. package/dist/index.es60.js +1 -1
  1894. package/dist/index.es600.js +174 -0
  1895. package/dist/index.es600.js.map +1 -0
  1896. package/dist/index.es601.js +31 -0
  1897. package/dist/index.es601.js.map +1 -0
  1898. package/dist/index.es602.js +7 -0
  1899. package/dist/index.es602.js.map +1 -0
  1900. package/dist/index.es603.js +13 -0
  1901. package/dist/index.es603.js.map +1 -0
  1902. package/dist/index.es604.js +9 -0
  1903. package/dist/index.es604.js.map +1 -0
  1904. package/dist/index.es605.js +8 -0
  1905. package/dist/index.es605.js.map +1 -0
  1906. package/dist/index.es606.js +9 -0
  1907. package/dist/index.es606.js.map +1 -0
  1908. package/dist/index.es607.js +6 -0
  1909. package/dist/index.es607.js.map +1 -0
  1910. package/dist/index.es608.js +7 -0
  1911. package/dist/index.es608.js.map +1 -0
  1912. package/dist/index.es609.js +8 -0
  1913. package/dist/index.es609.js.map +1 -0
  1914. package/dist/index.es61.js +1 -1
  1915. package/dist/index.es610.js +8 -0
  1916. package/dist/index.es610.js.map +1 -0
  1917. package/dist/index.es611.js +14 -0
  1918. package/dist/index.es611.js.map +1 -0
  1919. package/dist/index.es612.js +10 -0
  1920. package/dist/index.es612.js.map +1 -0
  1921. package/dist/index.es613.js +10 -0
  1922. package/dist/index.es613.js.map +1 -0
  1923. package/dist/index.es614.js +8 -0
  1924. package/dist/index.es614.js.map +1 -0
  1925. package/dist/index.es615.js +215 -0
  1926. package/dist/index.es615.js.map +1 -0
  1927. package/dist/index.es616.js +246 -0
  1928. package/dist/index.es616.js.map +1 -0
  1929. package/dist/index.es617.js +39 -0
  1930. package/dist/index.es617.js.map +1 -0
  1931. package/dist/index.es618.js +18 -0
  1932. package/dist/index.es618.js.map +1 -0
  1933. package/dist/index.es619.js +567 -0
  1934. package/dist/index.es619.js.map +1 -0
  1935. package/dist/index.es620.js +59 -0
  1936. package/dist/index.es620.js.map +1 -0
  1937. package/dist/index.es621.js +338 -0
  1938. package/dist/index.es621.js.map +1 -0
  1939. package/dist/index.es622.js +1103 -0
  1940. package/dist/index.es622.js.map +1 -0
  1941. package/dist/index.es623.js +41 -0
  1942. package/dist/index.es623.js.map +1 -0
  1943. package/dist/index.es624.js +39 -0
  1944. package/dist/index.es624.js.map +1 -0
  1945. package/dist/index.es625.js +51 -0
  1946. package/dist/index.es625.js.map +1 -0
  1947. package/dist/index.es626.js +65 -0
  1948. package/dist/index.es626.js.map +1 -0
  1949. package/dist/index.es627.js +11 -0
  1950. package/dist/index.es627.js.map +1 -0
  1951. package/dist/index.es628.js +6 -0
  1952. package/dist/index.es628.js.map +1 -0
  1953. package/dist/index.es629.js +298 -0
  1954. package/dist/index.es629.js.map +1 -0
  1955. package/dist/index.es63.js +1 -1
  1956. package/dist/index.es630.js +27 -0
  1957. package/dist/index.es630.js.map +1 -0
  1958. package/dist/index.es631.js +53 -0
  1959. package/dist/index.es631.js.map +1 -0
  1960. package/dist/index.es632.js +9 -0
  1961. package/dist/index.es632.js.map +1 -0
  1962. package/dist/index.es67.js +10 -6
  1963. package/dist/index.es67.js.map +1 -1
  1964. package/dist/index.es68.js +163 -13731
  1965. package/dist/index.es68.js.map +1 -1
  1966. package/dist/index.es69.js +1 -1
  1967. package/dist/index.es69.js.map +1 -1
  1968. package/dist/index.es70.js.map +1 -1
  1969. package/dist/index.es71.js +1 -1
  1970. package/dist/index.es71.js.map +1 -1
  1971. package/dist/index.es72.js +1 -1
  1972. package/dist/index.es72.js.map +1 -1
  1973. package/dist/index.es73.js +6 -6
  1974. package/dist/index.es73.js.map +1 -1
  1975. package/dist/index.es74.js +1 -1
  1976. package/dist/index.es74.js.map +1 -1
  1977. package/dist/index.es75.js +4 -4
  1978. package/dist/index.es75.js.map +1 -1
  1979. package/dist/index.es76.js +10 -10
  1980. package/dist/index.es76.js.map +1 -1
  1981. package/dist/index.es77.js +1 -1
  1982. package/dist/index.es77.js.map +1 -1
  1983. package/dist/index.es78.js.map +1 -1
  1984. package/dist/index.es93.js +1 -1
  1985. package/package.json +3 -3
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs298.js","sources":["../../../node_modules/@allmaps/render/dist/maps/WebGL2WarpedMap.js"],"sourcesContent":["import { applyHomogeneousTransform, createHomogeneousTransform, invertHomogeneousTransform } from \"../shared/homogeneous-transform.js\";\nimport { WarpedMapEvent, WarpedMapEventType } from \"../shared/events.js\";\nimport { TriangulatedWarpedMap } from \"./TriangulatedWarpedMap.js\";\nimport { createBuffer } from \"../shared/webgl2.js\";\nimport { getTilesAtOtherScaleFactors, tileKey } from \"../shared/tiles.js\";\nimport { hexToFractionalOpaqueRgba, lineStringToLines, mergeOptions, pointsAndPointsToLines, subSetArray } from \"@allmaps/stdlib\";\nimport { throttle } from \"lodash-es\";\nimport { black, blue, darkblue, green, pink, red, white, yellow } from \"@allmaps/tailwind\";\n//#region src/maps/WebGL2WarpedMap.ts\nvar THROTTLE_UPDATE_TEXTURES_WAIT_MS = 200;\nvar THROTTLE_UPDATE_TEXTURES_OPTIONS = {\n\tleading: true,\n\ttrailing: true\n};\nvar DEFAULT_RENDER_LINE_GROUP_OPTIONS = {\n\tviewportSize: 6,\n\tcolor: black,\n\tviewportBorderSize: 0,\n\tborderColor: white\n};\nvar DEFAULT_RENDER_POINT_GROUP_OPTION = {\n\tviewportSize: 10,\n\tcolor: black,\n\tviewportBorderSize: 1,\n\tborderColor: white\n};\nvar DEFAULT_SPECIFIC_WEBGL2_WARPED_MAP_OPTIONS = {\n\trenderGcps: false,\n\trenderGcpsColor: blue,\n\trenderTransformedGcps: false,\n\trenderTransformedGcpsColor: pink,\n\trenderVectors: false,\n\trenderVectorsSize: 4,\n\trenderVectorsColor: black,\n\trenderFullMask: false,\n\trenderFullMaskSize: 4,\n\trenderFullMaskColor: green,\n\trenderMask: false,\n\trenderMaskSize: 4,\n\trenderMaskColor: pink,\n\trenderAppliedMask: false,\n\trenderAppliedMaskSize: 4,\n\trenderAppliedMaskColor: pink,\n\topacity: 1,\n\tsaturation: 1,\n\tremoveColor: false,\n\tremoveColorColor: black,\n\tremoveColorThreshold: .3,\n\tremoveColorHardness: .7,\n\tcolorize: false,\n\tcolorizeColor: pink,\n\trenderGrid: false,\n\trenderGridColor: black,\n\tdistortionColor00: red,\n\tdistortionColor01: darkblue,\n\tdistortionColor1: green,\n\tdistortionColor2: yellow,\n\tdistortionColor3: red,\n\tdebugTiles: false,\n\tdebugTriangles: false\n};\nvar DEFAULT_SHOULD_RENDER_OPTIONS = { checkOpacity: false };\nvar TEXTURES_MAX_HIGHER_LOG2_SCALE_FACTOR_DIFF = 5;\nvar TEXTURES_MAX_LOWER_LOG2_SCALE_FACTOR_DIFF = 1;\nfunction createWebGL2WarpedMapFactory(gl, mapProgram, linesProgram, pointsProgram) {\n\treturn (mapId, georeferencedMap, listOptions, mapOptions) => new WebGL2WarpedMap(mapId, georeferencedMap, gl, mapProgram, linesProgram, pointsProgram, listOptions, mapOptions);\n}\n/**\n* Class for WarpedMaps that are rendered with WebGL 2\n*/\nvar WebGL2WarpedMap = class WebGL2WarpedMap extends TriangulatedWarpedMap {\n\tgl;\n\tmapProgram;\n\tlinesProgram;\n\tpointsProgram;\n\tmapVao = null;\n\tlinesVao = null;\n\tpointsVao = null;\n\tlineGroups = [];\n\tpointGroups = [];\n\tcachedTilesByTileKey;\n\tcachedTilesByTileUrl;\n\tcachedTilesForTexture = [];\n\tpreviousCachedTilesForTexture = [];\n\tcachedTilesTextureArray = null;\n\tcachedTilesResourceOriginPointsAndSizesTexture = null;\n\tcachedTilesScaleFactorsTexture = null;\n\tinvertedRenderHomogeneousTransform;\n\tthrottledUpdateTextures;\n\t/**\n\t* Creates an instance of WebGL2WarpedMap.\n\t*\n\t* @constructor\n\t* @param mapId - ID of the map\n\t* @param georeferencedMap - Georeferenced map used to construct the WarpedMap\n\t* @param gl - WebGL rendering context\n\t* @param mapProgram - WebGL program for map\n\t* @param options - WarpedMapOptions\n\t*/\n\tconstructor(mapId, georeferencedMap, gl, mapProgram, linesProgram, pointsProgram, listOptions, mapOptions) {\n\t\tsuper(mapId, georeferencedMap, listOptions, mapOptions);\n\t\tthis.cachedTilesByTileKey = /* @__PURE__ */ new Map();\n\t\tthis.cachedTilesByTileUrl = /* @__PURE__ */ new Map();\n\t\tthis.gl = gl;\n\t\tthis.initializeWebGL(mapProgram, linesProgram, pointsProgram);\n\t\tthis.invertedRenderHomogeneousTransform = createHomogeneousTransform();\n\t\tthis.throttledUpdateTextures = throttle(this.updateTextures.bind(this), THROTTLE_UPDATE_TEXTURES_WAIT_MS, THROTTLE_UPDATE_TEXTURES_OPTIONS);\n\t}\n\tinitializeWebGL(mapProgram, linesProgram, pointsProgram) {\n\t\tthis.mapProgram = mapProgram;\n\t\tthis.linesProgram = linesProgram;\n\t\tthis.pointsProgram = pointsProgram;\n\t\tthis.mapVao = this.gl.createVertexArray();\n\t\tthis.linesVao = this.gl.createVertexArray();\n\t\tthis.pointsVao = this.gl.createVertexArray();\n\t\tthis.cachedTilesTextureArray = this.gl.createTexture();\n\t\tthis.cachedTilesScaleFactorsTexture = this.gl.createTexture();\n\t\tthis.cachedTilesResourceOriginPointsAndSizesTexture = this.gl.createTexture();\n\t}\n\t/**\n\t* Get default options\n\t*/\n\tstatic getDefaultOptions() {\n\t\treturn mergeOptions(DEFAULT_SPECIFIC_WEBGL2_WARPED_MAP_OPTIONS, super.getDefaultOptions());\n\t}\n\t/**\n\t* Get default options without the options overwritten by the georeferenced map\n\t*/\n\tstatic getDefaultWithoutGeoreferencedMapOptions() {\n\t\treturn mergeOptions(DEFAULT_SPECIFIC_WEBGL2_WARPED_MAP_OPTIONS, super.getDefaultWithoutGeoreferencedMapOptions());\n\t}\n\t/**\n\t* Set the defaultOptions\n\t*/\n\tsetDefaultOptions() {\n\t\tthis.defaultOptions = WebGL2WarpedMap.getDefaultOptions();\n\t}\n\t/**\n\t* Set the list options\n\t*\n\t* @param listOptions - list options\n\t* @param animationOptions - Animation options\n\t*/\n\tsetListOptions(listOptions, animationOptions) {\n\t\treturn super.setListOptions(listOptions, animationOptions);\n\t}\n\t/**\n\t* Set the map-specific options\n\t*\n\t* @param mapOptions - Map-specific options\n\t* @param animationOptions - Animation options\n\t*/\n\tsetMapOptions(mapOptions, animationOptions) {\n\t\treturn super.setMapOptions(mapOptions, animationOptions);\n\t}\n\t/**\n\t* Set the map-specific options, and the list options\n\t*\n\t* @param mapOptions - Map-specific options\n\t* @param listOptions - list options\n\t* @param animationOptions - Animation options\n\t*/\n\tsetMapAndListOptions(mapOptions, listOptions, animationOptions) {\n\t\treturn super.setMapAndListOptions(mapOptions, listOptions, animationOptions);\n\t}\n\tapplyOptions(animationOptions) {\n\t\tconst changedOptions = super.applyOptions(animationOptions);\n\t\tthis.options.opacity = (this.listOptions?.opacity ?? this.defaultOptions.opacity) * (this.mapOptions?.opacity ?? 1);\n\t\tthis.options.saturation = (this.listOptions?.saturation ?? this.defaultOptions.saturation) * (this.mapOptions?.saturation ?? 1);\n\t\treturn changedOptions;\n\t}\n\tshouldRenderMap(partialOptions) {\n\t\tconst options = mergeOptions(DEFAULT_SHOULD_RENDER_OPTIONS, partialOptions);\n\t\treturn super.shouldRenderMap(partialOptions) && this.options.renderMaps !== false && (options.checkOpacity ? this.options.opacity !== 0 : true);\n\t}\n\tshouldRenderLines() {\n\t\treturn super.shouldRenderLines() && this.options.renderLines !== false && (this.options.renderFullMask || this.options.renderMask || this.options.renderAppliedMask || this.options.renderVectors);\n\t}\n\tshouldRenderPoints() {\n\t\treturn super.shouldRenderPoints() && this.options.renderPoints !== false && (this.options.renderGcps || this.options.renderTransformedGcps);\n\t}\n\t/**\n\t* Update the vertex buffers of this warped map\n\t*\n\t* @param projectedGeoToClipHomogeneousTransform - Transform from projected geo coordinates to webgl2 coordinates in the [-1, 1] range. Equivalent to OpenLayers' projectionTransform.\n\t*/\n\tupdateVertexBuffers(projectedGeoToClipHomogeneousTransform) {\n\t\tthis.invertedRenderHomogeneousTransform = invertHomogeneousTransform(projectedGeoToClipHomogeneousTransform);\n\t\tif (this.shouldRenderMap()) this.updateVertexBuffersMap(projectedGeoToClipHomogeneousTransform);\n\t\tif (this.shouldRenderLines()) this.updateVertexBuffersLines(projectedGeoToClipHomogeneousTransform);\n\t\tif (this.shouldRenderPoints()) this.updateVertexBuffersPoints(projectedGeoToClipHomogeneousTransform);\n\t}\n\t/**\n\t* Clear textures for this map\n\t*/\n\tclearTextures() {}\n\t/**\n\t* Add cached tile to the textures of this map and update textures\n\t*\n\t* @param cachedTile\n\t*/\n\taddCachedTileAndUpdateTextures(cachedTile) {\n\t\tthis.cachedTilesByTileKey.set(cachedTile.fetchableTile.tileKey, cachedTile);\n\t\tthis.cachedTilesByTileUrl.set(cachedTile.fetchableTile.tileUrl, cachedTile);\n\t\tthis.throttledUpdateTextures();\n\t}\n\t/**\n\t* Remove cached tile from the textures of this map and update textures\n\t*\n\t* @param tileUrl\n\t*/\n\tremoveCachedTileAndUpdateTextures(tileUrl) {\n\t\tconst cachedTile = this.cachedTilesByTileUrl.get(tileUrl);\n\t\tif (!cachedTile) return;\n\t\tthis.cachedTilesByTileKey.delete(cachedTile.fetchableTile.tileKey);\n\t\tthis.cachedTilesByTileUrl.delete(tileUrl);\n\t\tthis.throttledUpdateTextures();\n\t}\n\tcancelThrottledFunctions() {\n\t\tthis.throttledUpdateTextures.cancel();\n\t}\n\tdestroy() {\n\t\tthis.gl.deleteVertexArray(this.mapVao);\n\t\tthis.gl.deleteVertexArray(this.linesVao);\n\t\tthis.gl.deleteVertexArray(this.pointsVao);\n\t\tthis.gl.deleteTexture(this.cachedTilesTextureArray);\n\t\tthis.gl.deleteTexture(this.cachedTilesScaleFactorsTexture);\n\t\tthis.gl.deleteTexture(this.cachedTilesResourceOriginPointsAndSizesTexture);\n\t\tthis.cancelThrottledFunctions();\n\t\tsuper.destroy();\n\t}\n\tsetLineGroups() {\n\t\tthis.lineGroups = [];\n\t\tif (this.options.renderFullMask) this.lineGroups.push({\n\t\t\tprojectedGeoLines: lineStringToLines(this.projectedGeoTriangulationFullMask),\n\t\t\tprojectedGeoPreviousLines: lineStringToLines(this.projectedGeoPreviousTriangulationFullMask),\n\t\t\tviewportSize: this.options.renderFullMaskSize,\n\t\t\tcolor: this.options.renderFullMaskColor,\n\t\t\tviewportBorderSize: this.options.renderFullMaskBorderSize,\n\t\t\tborderColor: this.options.renderFullMaskBorderColor\n\t\t});\n\t\tif (this.options.renderAppliedMask) this.lineGroups.push({\n\t\t\tprojectedGeoLines: lineStringToLines(this.projectedGeoTriangulationAppliedMask),\n\t\t\tprojectedGeoPreviousLines: lineStringToLines(this.projectedGeoPreviousTriangulationAppliedMask),\n\t\t\tviewportSize: this.options.renderAppliedMaskSize,\n\t\t\tcolor: this.options.renderAppliedMaskColor,\n\t\t\tviewportBorderSize: this.options.renderAppliedMaskBorderSize,\n\t\t\tborderColor: this.options.renderAppliedMaskBorderColor\n\t\t});\n\t\tif (this.options.renderMask) this.lineGroups.push({\n\t\t\tprojectedGeoLines: lineStringToLines(this.projectedGeoTriangulationMask),\n\t\t\tprojectedGeoPreviousLines: lineStringToLines(this.projectedGeoPreviousTriangulationMask),\n\t\t\tviewportSize: this.options.renderMaskSize,\n\t\t\tcolor: this.options.renderMaskColor,\n\t\t\tviewportBorderSize: this.options.renderMaskBorderSize,\n\t\t\tborderColor: this.options.renderMaskBorderColor\n\t\t});\n\t\tif (this.options.renderVectors) this.lineGroups.push({\n\t\t\tprojectedGeoLines: pointsAndPointsToLines(this.projectedGeoPoints, this.projectedGeoTransformedResourcePoints),\n\t\t\tprojectedGeoPreviousLines: pointsAndPointsToLines(this.projectedGeoPoints, this.projectedGeoPreviousTransformedResourcePoints),\n\t\t\tviewportSize: this.options.renderVectorsSize,\n\t\t\tcolor: this.options.renderVectorsColor,\n\t\t\tviewportBorderSize: this.options.renderVectorsBorderSize,\n\t\t\tborderColor: this.options.renderVectorsBorderColor\n\t\t});\n\t}\n\tsetPointGroups() {\n\t\tthis.pointGroups = [];\n\t\tif (this.options.renderGcps) this.pointGroups.push({\n\t\t\tprojectedGeoPoints: this.projectedGeoPoints,\n\t\t\tviewportSize: this.options.renderGcpsSize,\n\t\t\tcolor: this.options.renderGcpsColor,\n\t\t\tviewportBorderSize: this.options.renderGcpsBorderSize,\n\t\t\tborderColor: this.options.renderGcpsBorderColor\n\t\t});\n\t\tif (this.options.renderTransformedGcps) this.pointGroups.push({\n\t\t\tprojectedGeoPoints: this.projectedGeoTransformedResourcePoints,\n\t\t\tprojectedGeoPreviousPoints: this.projectedGeoPreviousTransformedResourcePoints,\n\t\t\tviewportSize: this.options.renderTransformedGcpsSize,\n\t\t\tcolor: this.options.renderTransformedGcpsColor,\n\t\t\tviewportBorderSize: this.options.renderTransformedGcpsBorderSize,\n\t\t\tborderColor: this.options.renderTransformedGcpsBorderColor\n\t\t});\n\t}\n\tupdateVertexBuffersMap(projectedGeoToClipHomogeneousTransform) {\n\t\tif (!this.mapVao) return;\n\t\tconst gl = this.gl;\n\t\tconst program = this.mapProgram;\n\t\tgl.bindVertexArray(this.mapVao);\n\t\tcreateBuffer(gl, program, new Float32Array(this.resourceTrianglePoints.flat()), 2, \"a_resourceTrianglePoint\");\n\t\tconst clipPreviousTrianglePoints = this.projectedGeoPreviousTrianglePoints.map((point) => applyHomogeneousTransform(projectedGeoToClipHomogeneousTransform, point));\n\t\tcreateBuffer(gl, program, new Float32Array(clipPreviousTrianglePoints.flat()), 2, \"a_clipPreviousTrianglePoint\");\n\t\tconst clipTrianglePoints = this.projectedGeoTrianglePoints.map((point) => applyHomogeneousTransform(projectedGeoToClipHomogeneousTransform, point));\n\t\tcreateBuffer(gl, program, new Float32Array(clipTrianglePoints.flat()), 2, \"a_clipTrianglePoint\");\n\t\tcreateBuffer(gl, program, new Float32Array(this.previousTrianglePointsDistortion), 1, \"a_previousTrianglePointDistortion\");\n\t\tcreateBuffer(gl, program, new Float32Array(this.trianglePointsDistortion), 1, \"a_trianglePointDistortion\");\n\t\tcreateBuffer(gl, program, new Float32Array(this.resourceTrianglePoints.length).map((_v, i) => {\n\t\t\treturn i;\n\t\t}), 1, \"a_trianglePointIndex\");\n\t\tcreateBuffer(gl, program, new Float32Array(this.trianglePointsInside.map((inside) => inside ? 1 : 0)), 1, \"a_trianglePointInside\");\n\t}\n\tupdateVertexBuffersLines(projectedGeoToClipHomogeneousTransform) {\n\t\tif (!this.linesVao) return;\n\t\tconst gl = this.gl;\n\t\tconst program = this.linesProgram;\n\t\tgl.bindVertexArray(this.linesVao);\n\t\tthis.setLineGroups();\n\t\tconst clipSixPoints = this.lineGroups.reduce((accumulator, lineGroup) => accumulator.concat(lineGroup.projectedGeoLines), []).map((projectedGeoLine) => [\n\t\t\tprojectedGeoLine[0],\n\t\t\tprojectedGeoLine[0],\n\t\t\tprojectedGeoLine[0],\n\t\t\tprojectedGeoLine[1],\n\t\t\tprojectedGeoLine[1],\n\t\t\tprojectedGeoLine[1]\n\t\t]).flat().map((point) => applyHomogeneousTransform(projectedGeoToClipHomogeneousTransform, point));\n\t\tcreateBuffer(gl, program, new Float32Array(clipSixPoints.flat()), 2, \"a_clipPoint\");\n\t\tconst clipSixOtherPoints = this.lineGroups.reduce((accumulator, lineGroup) => accumulator.concat(lineGroup.projectedGeoLines), []).map((projectedGeoLine) => [\n\t\t\tprojectedGeoLine[1],\n\t\t\tprojectedGeoLine[1],\n\t\t\tprojectedGeoLine[1],\n\t\t\tprojectedGeoLine[0],\n\t\t\tprojectedGeoLine[0],\n\t\t\tprojectedGeoLine[0]\n\t\t]).flat().map((point) => applyHomogeneousTransform(projectedGeoToClipHomogeneousTransform, point));\n\t\tcreateBuffer(gl, program, new Float32Array(clipSixOtherPoints.flat()), 2, \"a_clipOtherPoint\");\n\t\tconst clipSixPreviousPoints = this.lineGroups.reduce((accumulator, lineGroup) => accumulator.concat(lineGroup.projectedGeoPreviousLines || lineGroup.projectedGeoLines), []).map((projectedGeoLine) => [\n\t\t\tprojectedGeoLine[0],\n\t\t\tprojectedGeoLine[0],\n\t\t\tprojectedGeoLine[0],\n\t\t\tprojectedGeoLine[1],\n\t\t\tprojectedGeoLine[1],\n\t\t\tprojectedGeoLine[1]\n\t\t]).flat().map((point) => applyHomogeneousTransform(projectedGeoToClipHomogeneousTransform, point));\n\t\tcreateBuffer(gl, program, new Float32Array(clipSixPreviousPoints.flat()), 2, \"a_clipPreviousPoint\");\n\t\tconst clipSixPreviousOtherPoints = this.lineGroups.reduce((accumulator, lineGroup) => accumulator.concat(lineGroup.projectedGeoPreviousLines || lineGroup.projectedGeoLines), []).map((projectedGeoLine) => [\n\t\t\tprojectedGeoLine[1],\n\t\t\tprojectedGeoLine[1],\n\t\t\tprojectedGeoLine[1],\n\t\t\tprojectedGeoLine[0],\n\t\t\tprojectedGeoLine[0],\n\t\t\tprojectedGeoLine[0]\n\t\t]).flat().map((point) => applyHomogeneousTransform(projectedGeoToClipHomogeneousTransform, point));\n\t\tcreateBuffer(gl, program, new Float32Array(clipSixPreviousOtherPoints.flat()), 2, \"a_clipPreviousOtherPoint\");\n\t\tconst sixIsOtherPoints = this.lineGroups.reduce((accumulator, lineGroup) => accumulator.concat(lineGroup.projectedGeoLines.flatMap((_projectedGeoLine) => [\n\t\t\t0,\n\t\t\t0,\n\t\t\t1,\n\t\t\t0,\n\t\t\t0,\n\t\t\t1\n\t\t])), []);\n\t\tcreateBuffer(gl, program, new Float32Array(sixIsOtherPoints), 1, \"a_isOtherPoint\");\n\t\tconst sixNormalSigns = this.lineGroups.reduce((accumulator, lineGroup) => accumulator.concat(lineGroup.projectedGeoLines.flatMap((_projectedGeoLine) => [\n\t\t\t1,\n\t\t\t-1,\n\t\t\t1,\n\t\t\t1,\n\t\t\t-1,\n\t\t\t1\n\t\t])), []);\n\t\tcreateBuffer(gl, program, new Float32Array(sixNormalSigns), 1, \"a_normalSign\");\n\t\tconst viewportSizes = this.lineGroups.reduce((accumulator, lineGroup) => accumulator.concat(lineGroup.projectedGeoLines.flatMap((_projectedGeoLine) => Array(6).fill(lineGroup.viewportSize ?? DEFAULT_RENDER_LINE_GROUP_OPTIONS.viewportSize))), []);\n\t\tcreateBuffer(gl, program, new Float32Array(viewportSizes), 1, \"a_viewportSize\");\n\t\tconst colors = this.lineGroups.reduce((accumulator, lineGroup) => {\n\t\t\tconst color = hexToFractionalOpaqueRgba(lineGroup.color ?? DEFAULT_RENDER_LINE_GROUP_OPTIONS.color);\n\t\t\treturn accumulator.concat(lineGroup.projectedGeoLines.flatMap((_projectedGeoLine) => Array(6).fill(color)));\n\t\t}, []);\n\t\tcreateBuffer(gl, program, new Float32Array(colors.flat()), 4, \"a_color\");\n\t\tconst viewportBorderSizes = this.lineGroups.reduce((accumulator, lineGroup) => accumulator.concat(lineGroup.projectedGeoLines.flatMap((_projectedGeoLine) => Array(6).fill(lineGroup.viewportBorderSize ?? DEFAULT_RENDER_LINE_GROUP_OPTIONS.viewportBorderSize))), []);\n\t\tcreateBuffer(gl, program, new Float32Array(viewportBorderSizes), 1, \"a_viewportBorderSize\");\n\t\tconst borderColors = this.lineGroups.reduce((accumulator, lineGroup) => {\n\t\t\tconst color = hexToFractionalOpaqueRgba(lineGroup.borderColor ?? DEFAULT_RENDER_LINE_GROUP_OPTIONS.borderColor);\n\t\t\treturn accumulator.concat(lineGroup.projectedGeoLines.flatMap((_projectedGeoLine) => Array(6).fill(color)));\n\t\t}, []);\n\t\tcreateBuffer(gl, program, new Float32Array(borderColors.flat()), 4, \"a_borderColor\");\n\t}\n\tupdateVertexBuffersPoints(projectedGeoToClipHomogeneousTransform) {\n\t\tif (!this.pointsVao) return;\n\t\tconst gl = this.gl;\n\t\tconst program = this.pointsProgram;\n\t\tgl.bindVertexArray(this.pointsVao);\n\t\tthis.setPointGroups();\n\t\tconst clipPoints = this.pointGroups.reduce((accumulator, pointGroup) => accumulator.concat(pointGroup.projectedGeoPoints), []).map((point) => applyHomogeneousTransform(projectedGeoToClipHomogeneousTransform, point));\n\t\tcreateBuffer(gl, program, new Float32Array(clipPoints.flat()), 2, \"a_clipPoint\");\n\t\tconst clipPreviousPoints = this.pointGroups.reduce((accumulator, pointGroup) => accumulator.concat(pointGroup.projectedGeoPreviousPoints || pointGroup.projectedGeoPoints), []).map((point) => applyHomogeneousTransform(projectedGeoToClipHomogeneousTransform, point));\n\t\tcreateBuffer(gl, program, new Float32Array(clipPreviousPoints.flat()), 2, \"a_clipPreviousPoint\");\n\t\tconst viewportSizes = this.pointGroups.reduce((accumulator, pointGroup) => accumulator.concat(pointGroup.projectedGeoPoints.map((_projectedGeoPoint) => pointGroup.viewportSize ?? DEFAULT_RENDER_POINT_GROUP_OPTION.viewportSize)), []);\n\t\tcreateBuffer(gl, program, new Float32Array(viewportSizes), 1, \"a_viewportSize\");\n\t\tconst colors = this.pointGroups.reduce((accumulator, pointGroup) => {\n\t\t\tconst color = hexToFractionalOpaqueRgba(pointGroup.color ?? DEFAULT_RENDER_POINT_GROUP_OPTION.color);\n\t\t\treturn accumulator.concat(pointGroup.projectedGeoPoints.map((_projectedGeoPoint) => color));\n\t\t}, []);\n\t\tcreateBuffer(gl, program, new Float32Array(colors.flat()), 4, \"a_color\");\n\t\tconst viewportBorderSizes = this.pointGroups.reduce((accumulator, pointGroup) => accumulator.concat(pointGroup.projectedGeoPoints.map((_projectedGeoPoint) => pointGroup.viewportBorderSize ?? DEFAULT_RENDER_POINT_GROUP_OPTION.viewportBorderSize)), []);\n\t\tcreateBuffer(gl, program, new Float32Array(viewportBorderSizes), 1, \"a_viewportBorderSize\");\n\t\tconst borderColors = this.pointGroups.reduce((accumulator, pointGroup) => {\n\t\t\tconst color = hexToFractionalOpaqueRgba(pointGroup.borderColor ?? DEFAULT_RENDER_POINT_GROUP_OPTION.borderColor);\n\t\t\treturn accumulator.concat(pointGroup.projectedGeoPoints.map((_projectedGeoPoint) => color));\n\t\t}, []);\n\t\tcreateBuffer(gl, program, new Float32Array(borderColors.flat()), 4, \"a_borderColor\");\n\t}\n\tasync updateTextures() {\n\t\tconst gl = this.gl;\n\t\tthis.updateCachedTilesForTextures();\n\t\tif (this.cachedTilesForTexture.length == 0 || this.cachedTilesForTexture.length !== 0 && subSetArray(this.previousCachedTilesForTexture.map((textureTile) => textureTile.fetchableTile.tileUrl), this.cachedTilesForTexture.map((textureTile) => textureTile.fetchableTile.tileUrl))) return;\n\t\tif (!this.image) return;\n\t\tconst requiredTextureWidth = this.tileSize[0];\n\t\tconst requiredTextureHeight = this.tileSize[1];\n\t\tconst requiredTextureDepth = this.cachedTilesForTexture.length;\n\t\tgl.pixelStorei(gl.UNPACK_ALIGNMENT, 4);\n\t\tgl.bindTexture(gl.TEXTURE_2D_ARRAY, this.cachedTilesTextureArray);\n\t\tgl.texImage3D(gl.TEXTURE_2D_ARRAY, 0, gl.RGBA, requiredTextureWidth, requiredTextureHeight, requiredTextureDepth, 0, gl.RGBA, gl.UNSIGNED_BYTE, null);\n\t\tfor (let i = 0; i < this.cachedTilesForTexture.length; i++) {\n\t\t\tconst imageData = this.cachedTilesForTexture[i].data;\n\t\t\tif (imageData.width > requiredTextureWidth || imageData.height > requiredTextureHeight) throw new Error(\"Cached tile doesn't fit in texture\");\n\t\t\tconst pbo = gl.createBuffer();\n\t\t\tgl.bindBuffer(gl.PIXEL_UNPACK_BUFFER, pbo);\n\t\t\tgl.bufferData(gl.PIXEL_UNPACK_BUFFER, imageData.data, gl.STATIC_DRAW);\n\t\t\tgl.texSubImage3D(gl.TEXTURE_2D_ARRAY, 0, 0, 0, i, imageData.width, imageData.height, 1, gl.RGBA, gl.UNSIGNED_BYTE, 0);\n\t\t\tgl.bindBuffer(gl.PIXEL_UNPACK_BUFFER, null);\n\t\t}\n\t\tgl.texParameteri(gl.TEXTURE_2D_ARRAY, gl.TEXTURE_MIN_FILTER, gl.LINEAR);\n\t\tgl.texParameteri(gl.TEXTURE_2D_ARRAY, gl.TEXTURE_MAG_FILTER, gl.LINEAR);\n\t\tgl.texParameteri(gl.TEXTURE_2D_ARRAY, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE);\n\t\tgl.texParameteri(gl.TEXTURE_2D_ARRAY, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE);\n\t\tconst cachedTilesResourceOriginPointsAndSizes = this.cachedTilesForTexture.map((textureTile) => {\n\t\t\tif (textureTile && textureTile.fetchableTile && textureTile.fetchableTile.options && textureTile.fetchableTile.options.imageRequest && textureTile.fetchableTile.options.imageRequest.region) return [\n\t\t\t\ttextureTile.fetchableTile.options.imageRequest.region.x,\n\t\t\t\ttextureTile.fetchableTile.options.imageRequest.region.y,\n\t\t\t\ttextureTile.fetchableTile.options.imageRequest.region.width,\n\t\t\t\ttextureTile.fetchableTile.options.imageRequest.region.height\n\t\t\t];\n\t\t\telse throw new Error(\"Missing resource origin points and sizes\");\n\t\t});\n\t\tgl.bindTexture(gl.TEXTURE_2D, this.cachedTilesResourceOriginPointsAndSizesTexture);\n\t\tgl.texImage2D(gl.TEXTURE_2D, 0, gl.R32I, 1, this.cachedTilesForTexture.length * 4, 0, gl.RED_INTEGER, gl.INT, new Int32Array(cachedTilesResourceOriginPointsAndSizes.flat()));\n\t\tgl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.NEAREST);\n\t\tgl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.NEAREST);\n\t\tgl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE);\n\t\tgl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE);\n\t\tconst cachedTilesScaleFactors = this.cachedTilesForTexture.map((textureTile) => textureTile.fetchableTile.tile.tileZoomLevel.scaleFactor);\n\t\tgl.bindTexture(gl.TEXTURE_2D, this.cachedTilesScaleFactorsTexture);\n\t\tgl.texImage2D(gl.TEXTURE_2D, 0, gl.R32I, 1, this.cachedTilesForTexture.length, 0, gl.RED_INTEGER, gl.INT, new Int32Array(cachedTilesScaleFactors));\n\t\tgl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.NEAREST);\n\t\tgl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.NEAREST);\n\t\tgl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE);\n\t\tgl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE);\n\t\tthis.dispatchEvent(new WarpedMapEvent(WarpedMapEventType.TEXTURESUPDATED));\n\t}\n\tupdateCachedTilesForTextures() {\n\t\tconst cachedTiles = [];\n\t\tconst cachedTilesAtOtherScaleFactors = [];\n\t\tconst overviewCachedTiles = [];\n\t\tconst spriteCachedTiles = [];\n\t\tfor (const fetchableTile of this.fetchableTilesForViewport) {\n\t\t\tconst cachedTile = this.cachedTilesByTileUrl.get(fetchableTile.tileUrl);\n\t\t\tif (cachedTile) cachedTiles.push(cachedTile);\n\t\t\telse for (const cachedTile of this.getCachedTilesAtOtherScaleFactors(fetchableTile.tile)) cachedTilesAtOtherScaleFactors.push(cachedTile);\n\t\t}\n\t\tspriteCachedTiles.push(...Array.from(this.cachedTilesByTileUrl.values()).filter((cachedTile) => cachedTile.isTileFromSprites()));\n\t\tfor (const fetchableTile of this.overviewFetchableTilesForViewport) {\n\t\t\tconst cachedTile = this.cachedTilesByTileUrl.get(fetchableTile.tileUrl);\n\t\t\tif (cachedTile) {\n\t\t\t\tconst tileZoomLevelTilesCount = this.tileZoomLevelForViewport ? this.tileZoomLevelForViewport.rows * this.tileZoomLevelForViewport.columns : void 0;\n\t\t\t\tif (cachedTiles.length === 0 || tileZoomLevelTilesCount && cachedTiles.length < tileZoomLevelTilesCount) overviewCachedTiles.push(cachedTile);\n\t\t\t}\n\t\t}\n\t\tlet cachedTilesForTextures = [\n\t\t\t...cachedTiles,\n\t\t\t...cachedTilesAtOtherScaleFactors,\n\t\t\t...spriteCachedTiles,\n\t\t\t...overviewCachedTiles\n\t\t];\n\t\tconst cachedTilesForTexturesByTileUrl = /* @__PURE__ */ new Map();\n\t\tcachedTilesForTextures.forEach((cachedTile) => cachedTilesForTexturesByTileUrl.set(cachedTile.fetchableTile.tileUrl, cachedTile));\n\t\tcachedTilesForTextures = [...cachedTilesForTexturesByTileUrl.values()];\n\t\tthis.previousCachedTilesForTexture = this.cachedTilesForTexture;\n\t\tthis.cachedTilesForTexture = cachedTilesForTextures;\n\t}\n\tgetCachedTilesAtOtherScaleFactors(tile) {\n\t\tif (this.cachedTilesByTileUrl.size === 0) return [];\n\t\tif (!this.tileZoomLevelForViewport) return [];\n\t\tconst cachedTiles = [];\n\t\tfor (tile of getTilesAtOtherScaleFactors(tile, this.image, this.tileZoomLevelForViewport.scaleFactor, TEXTURES_MAX_LOWER_LOG2_SCALE_FACTOR_DIFF, TEXTURES_MAX_HIGHER_LOG2_SCALE_FACTOR_DIFF, this.tileInCachedTiles.bind(this))) {\n\t\t\tconst cachedTile = this.tileToCachedTile(tile);\n\t\t\tif (cachedTile) cachedTiles.push(cachedTile);\n\t\t\telse throw new Error(\"Tile supposed to be in cache isn't.\");\n\t\t}\n\t\treturn cachedTiles;\n\t}\n\ttileToCachedTile(tile) {\n\t\treturn this.cachedTilesByTileKey.get(tileKey(tile));\n\t}\n\ttileInCachedTiles(tile) {\n\t\treturn this.cachedTilesByTileKey.has(tileKey(tile));\n\t}\n};\n//#endregion\nexport { WebGL2WarpedMap, createWebGL2WarpedMapFactory };\n\n//# sourceMappingURL=WebGL2WarpedMap.js.map"],"names":["THROTTLE_UPDATE_TEXTURES_WAIT_MS","THROTTLE_UPDATE_TEXTURES_OPTIONS","DEFAULT_RENDER_LINE_GROUP_OPTIONS","black","white","DEFAULT_RENDER_POINT_GROUP_OPTION","DEFAULT_SPECIFIC_WEBGL2_WARPED_MAP_OPTIONS","blue","pink","green","red","darkblue","yellow","DEFAULT_SHOULD_RENDER_OPTIONS","TEXTURES_MAX_HIGHER_LOG2_SCALE_FACTOR_DIFF","TEXTURES_MAX_LOWER_LOG2_SCALE_FACTOR_DIFF","createWebGL2WarpedMapFactory","gl","mapProgram","linesProgram","pointsProgram","mapId","georeferencedMap","listOptions","mapOptions","WebGL2WarpedMap","TriangulatedWarpedMap","createHomogeneousTransform","throttle","mergeOptions","animationOptions","changedOptions","partialOptions","options","projectedGeoToClipHomogeneousTransform","invertHomogeneousTransform","cachedTile","tileUrl","lineStringToLines","pointsAndPointsToLines","program","createBuffer","clipPreviousTrianglePoints","point","applyHomogeneousTransform","clipTrianglePoints","_v","i","inside","clipSixPoints","accumulator","lineGroup","projectedGeoLine","clipSixOtherPoints","clipSixPreviousPoints","clipSixPreviousOtherPoints","sixIsOtherPoints","_projectedGeoLine","sixNormalSigns","viewportSizes","colors","color","hexToFractionalOpaqueRgba","viewportBorderSizes","borderColors","clipPoints","pointGroup","clipPreviousPoints","_projectedGeoPoint","subSetArray","textureTile","requiredTextureWidth","requiredTextureHeight","requiredTextureDepth","imageData","pbo","cachedTilesResourceOriginPointsAndSizes","cachedTilesScaleFactors","WarpedMapEvent","WarpedMapEventType","cachedTiles","cachedTilesAtOtherScaleFactors","overviewCachedTiles","spriteCachedTiles","fetchableTile","tileZoomLevelTilesCount","cachedTilesForTextures","cachedTilesForTexturesByTileUrl","tile","getTilesAtOtherScaleFactors","tileKey"],"mappings":"8cASA,IAAIA,EAAmC,IACnCC,EAAmC,CACtC,QAAS,GACT,SAAU,EACX,EACIC,EAAoC,CACvC,aAAc,EACd,MAAOC,EAAAA,MACP,mBAAoB,EACpB,YAAaC,EAAAA,KACd,EACIC,EAAoC,CACvC,aAAc,GACd,MAAOF,EAAAA,MACP,mBAAoB,EACpB,YAAaC,EAAAA,KACd,EACIE,EAA6C,CAChD,WAAY,GACZ,gBAAiBC,EAAAA,KACjB,sBAAuB,GACvB,2BAA4BC,EAAAA,KAC5B,cAAe,GACf,kBAAmB,EACnB,mBAAoBL,EAAAA,MACpB,eAAgB,GAChB,mBAAoB,EACpB,oBAAqBM,EAAAA,MACrB,WAAY,GACZ,eAAgB,EAChB,gBAAiBD,EAAAA,KACjB,kBAAmB,GACnB,sBAAuB,EACvB,uBAAwBA,EAAAA,KACxB,QAAS,EACT,WAAY,EACZ,YAAa,GACb,iBAAkBL,EAAAA,MAClB,qBAAsB,GACtB,oBAAqB,GACrB,SAAU,GACV,cAAeK,EAAAA,KACf,WAAY,GACZ,gBAAiBL,EAAAA,MACjB,kBAAmBO,EAAAA,IACnB,kBAAmBC,EAAAA,SACnB,iBAAkBF,EAAAA,MAClB,iBAAkBG,EAAAA,OAClB,iBAAkBF,EAAAA,IAClB,WAAY,GACZ,eAAgB,EACjB,EACIG,EAAgC,CAAE,aAAc,EAAA,EAChDC,EAA6C,EAC7CC,EAA4C,EAChD,SAASC,EAA6BC,EAAIC,EAAYC,EAAcC,EAAe,CAClF,MAAO,CAACC,EAAOC,EAAkBC,EAAaC,IAAe,IAAIC,EAAgBJ,EAAOC,EAAkBL,EAAIC,EAAYC,EAAcC,EAAeG,E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7C,GAAIpD,EAAY4C,EAAY,KAAK5C,CAAU,MACtC,OAAM,IAAI,MAAM,qCAAqC,CAC3D,CACA,OAAO4C,CACR,CACA,iBAAiBQ,EAAM,CACtB,OAAO,KAAK,qBAAqB,IAAIE,EAAAA,QAAQF,CAAI,CAAC,CACnD,CACA,kBAAkBA,EAAM,CACvB,OAAO,KAAK,qBAAqB,IAAIE,EAAAA,QAAQF,CAAI,CAAC,CACnD,CACD","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function d(t,n){const c=n[0],i=n[1];return[t[0]*c+t[2]*i+t[4],t[1]*c+t[3]*i+t[5]]}function f(){return[1,0,0,1,0,0]}function o(t,n){const c=t[0],i=t[1],H=t[2],p=t[3],e=t[4],l=t[5],b=n[0],u=n[1],M=n[2],r=n[3],s=n[4],a=n[5];return[c*b+H*u,i*b+p*u,c*M+H*r,i*M+p*r,c*s+H*a+e,i*s+p*a+l]}function v(t,n,c,i,H,p,e){const l=Math.sin(H),b=Math.cos(H);return[c*b,i*l,-c*l,i*b,p*c*b-e*c*l+t,p*i*l+e*i*b+n]}function y(t){const n=S(t),c=t[0],i=t[1],H=t[2],p=t[3],e=t[4],l=t[5];return[p/n,-i/n,-H/n,c/n,(H*l-p*e)/n,-(c*l-i*e)/n]}function S(t){return t[0]*t[3]-t[1]*t[2]}function j(t){const n=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return n[0]=t[0],n[1]=t[1],n[4]=t[2],n[5]=t[3],n[12]=t[4],n[13]=t[5],n}exports.applyHomogeneousTransform=d;exports.composeHomogeneousTransform=v;exports.createHomogeneousTransform=f;exports.homogeneousTransformToMatrix4=j;exports.invertHomogeneousTransform=y;exports.multiplyHomogeneousTransform=o;
2
+ //# sourceMappingURL=index.cjs299.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs299.js","sources":["../../../node_modules/@allmaps/render/dist/shared/homogeneous-transform.js"],"sourcesContent":["//#region src/shared/homogeneous-transform.ts\nfunction applyHomogeneousTransform(homogeneousTransform, coordinate) {\n\tconst x = coordinate[0];\n\tconst y = coordinate[1];\n\treturn [homogeneousTransform[0] * x + homogeneousTransform[2] * y + homogeneousTransform[4], homogeneousTransform[1] * x + homogeneousTransform[3] * y + homogeneousTransform[5]];\n}\nfunction createHomogeneousTransform() {\n\treturn [\n\t\t1,\n\t\t0,\n\t\t0,\n\t\t1,\n\t\t0,\n\t\t0\n\t];\n}\nfunction multiplyHomogeneousTransform(homogeneousTransform1, homogeneousTransform2) {\n\tconst a1 = homogeneousTransform1[0];\n\tconst b1 = homogeneousTransform1[1];\n\tconst c1 = homogeneousTransform1[2];\n\tconst d1 = homogeneousTransform1[3];\n\tconst e1 = homogeneousTransform1[4];\n\tconst f1 = homogeneousTransform1[5];\n\tconst a2 = homogeneousTransform2[0];\n\tconst b2 = homogeneousTransform2[1];\n\tconst c2 = homogeneousTransform2[2];\n\tconst d2 = homogeneousTransform2[3];\n\tconst e2 = homogeneousTransform2[4];\n\tconst f2 = homogeneousTransform2[5];\n\treturn [\n\t\ta1 * a2 + c1 * b2,\n\t\tb1 * a2 + d1 * b2,\n\t\ta1 * c2 + c1 * d2,\n\t\tb1 * c2 + d1 * d2,\n\t\ta1 * e2 + c1 * f2 + e1,\n\t\tb1 * e2 + d1 * f2 + f1\n\t];\n}\nfunction composeHomogeneousTransform(dx1, dy1, sx, sy, angle, dx2, dy2) {\n\tconst sin = Math.sin(angle);\n\tconst cos = Math.cos(angle);\n\treturn [\n\t\tsx * cos,\n\t\tsy * sin,\n\t\t-sx * sin,\n\t\tsy * cos,\n\t\tdx2 * sx * cos - dy2 * sx * sin + dx1,\n\t\tdx2 * sy * sin + dy2 * sy * cos + dy1\n\t];\n}\nfunction invertHomogeneousTransform(source) {\n\tconst determinant = getDeterminant(source);\n\tconst a = source[0];\n\tconst b = source[1];\n\tconst c = source[2];\n\tconst d = source[3];\n\tconst e = source[4];\n\tconst f = source[5];\n\treturn [\n\t\td / determinant,\n\t\t-b / determinant,\n\t\t-c / determinant,\n\t\ta / determinant,\n\t\t(c * f - d * e) / determinant,\n\t\t-(a * f - b * e) / determinant\n\t];\n}\nfunction getDeterminant(mat) {\n\treturn mat[0] * mat[3] - mat[1] * mat[2];\n}\nfunction homogeneousTransformToMatrix4(homogeneousTransform) {\n\tconst matrix4 = [\n\t\t1,\n\t\t0,\n\t\t0,\n\t\t0,\n\t\t0,\n\t\t1,\n\t\t0,\n\t\t0,\n\t\t0,\n\t\t0,\n\t\t1,\n\t\t0,\n\t\t0,\n\t\t0,\n\t\t0,\n\t\t1\n\t];\n\tmatrix4[0] = homogeneousTransform[0];\n\tmatrix4[1] = homogeneousTransform[1];\n\tmatrix4[4] = homogeneousTransform[2];\n\tmatrix4[5] = homogeneousTransform[3];\n\tmatrix4[12] = homogeneousTransform[4];\n\tmatrix4[13] = homogeneousTransform[5];\n\treturn matrix4;\n}\n//#endregion\nexport { applyHomogeneousTransform, composeHomogeneousTransform, createHomogeneousTransform, homogeneousTransformToMatrix4, invertHomogeneousTransform, multiplyHomogeneousTransform };\n\n//# sourceMappingURL=homogeneous-transform.js.map"],"names":["applyHomogeneousTransform","homogeneousTransform","coordinate","x","y","createHomogeneousTransform","multiplyHomogeneousTransform","homogeneousTransform1","homogeneousTransform2","a1","b1","c1","d1","e1","f1","a2","b2","c2","d2","e2","f2","composeHomogeneousTransform","dx1","dy1","sx","sy","angle","dx2","dy2","sin","cos","invertHomogeneousTransform","source","determinant","getDeterminant","a","b","c","d","f","mat","homogeneousTransformToMatrix4","matrix4"],"mappings":"gFACA,SAASA,EAA0BC,EAAsBC,EAAY,CACpE,MAAMC,EAAID,EAAW,CAAC,EAChBE,EAAIF,EAAW,CAAC,EACtB,MAAO,CAACD,EAAqB,CAAC,EAAIE,EAAIF,EAAqB,CAAC,EAAIG,EAAIH,EAAqB,CAAC,EAAGA,EAAqB,CAAC,EAAIE,EAAIF,EAAqB,CAAC,EAA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,EAAIP,EAAO,CAAC,EAClB,MAAO,CACNM,EAAIL,EACJ,CAACG,EAAIH,EACL,CAACI,EAAIJ,EACLE,EAAIF,GACHI,EAAIE,EAAID,EAAI,GAAKL,EAClB,EAAEE,EAAII,EAAIH,EAAI,GAAKH,CAAA,CAErB,CACA,SAASC,EAAeM,EAAK,CAC5B,OAAOA,EAAI,CAAC,EAAIA,EAAI,CAAC,EAAIA,EAAI,CAAC,EAAIA,EAAI,CAAC,CACxC,CACA,SAASC,EAA8BxC,EAAsB,CAC5D,MAAMyC,EAAU,CACf,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,CAAA,EAED,OAAAA,EAAQ,CAAC,EAAIzC,EAAqB,CAAC,EACnCyC,EAAQ,CAAC,EAAIzC,EAAqB,CAAC,EACnCyC,EAAQ,CAAC,EAAIzC,EAAqB,CAAC,EACnCyC,EAAQ,CAAC,EAAIzC,EAAqB,CAAC,EACnCyC,EAAQ,EAAE,EAAIzC,EAAqB,CAAC,EACpCyC,EAAQ,EAAE,EAAIzC,EAAqB,CAAC,EAC7ByC,CACR","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("./index.cjs214.js"),s=require("./index.cjs215.js"),u=require("./index.cjs321.js"),a=require("./index.cjs275.js"),p=require("./index.cjs217.js"),j=require("./index.cjs324.js");var c={distortionMeasures:[]},G=class l extends T.WarpedMap{previousResourceResolution;resourceResolution;triangulateErrorCount=0;projectedGcpPreviousTriangulation;projectedGcpTriangulation;resourceTriangulationCache;projectedGcpTriangulationCache;resourceTrianglePoints=[];projectedGeoPreviousTrianglePoints=[];projectedGeoTrianglePoints=[];previousTrianglePointsDistortion=[];trianglePointsDistortion=[];previousTrianglePointsInside=[];trianglePointsInside=[];projectedGeoPreviousTriangulationFullMask=[];projectedGeoTriangulationFullMask=[];projectedGeoPreviousTriangulationMask=[];projectedGeoTriangulationMask=[];projectedGeoPreviousTriangulationAppliedMask=[];projectedGeoTriangulationAppliedMask=[];constructor(e,t,i,o){super(e,t,i,o),this.resourceTriangulationCache=new Map,this.projectedGcpTriangulationCache=new Map,this.updateTriangulation()}static getDefaultOptions(){return p.mergeOptions(c,super.getDefaultOptions())}static getDefaultWithoutGeoreferencedMapOptions(){return p.mergeOptions(c,super.getDefaultWithoutGeoreferencedMapOptions())}setDefaultOptions(){this.defaultOptions=l.getDefaultOptions()}setListOptions(e,t){return super.setListOptions(e,t)}setMapOptions(e,t){return super.setMapOptions(e,t)}setMapAndListOptions(e,t,i){return super.setMapAndListOptions(e,t,i)}setGcps(e){super.setGcps(e),this.clearResourceTriangulationCaches(),this.updateTriangulation()}setResourceMask(){super.setResourceMask(),this.updateTriangulation()}setDistortionMeasure(e){super.setDistortionMeasure(e),e&&!this.options.distortionMeasures.includes(e)&&this.options.distortionMeasures.push(e),this.updateTriangulation()}setInternalProjection(e){super.setInternalProjection(e),this.updateTriangulation()}setProjection(e){super.setProjection(e),this.clearProjectedTriangulationCaches(),this.updateTriangulation()}resetPrevious(){super.resetPrevious(),this.previousResourceResolution=this.resourceResolution,this.projectedGcpPreviousTriangulation=this.projectedGcpTriangulation,this.projectedGeoPreviousTrianglePoints=this.projectedGeoTrianglePoints,this.previousTrianglePointsDistortion=this.trianglePointsDistortion,this.previousTrianglePointsInside=this.trianglePointsInside,this.projectedGeoPreviousTriangulationFullMask=this.projectedGeoTriangulationFullMask,this.projectedGeoPreviousTriangulationMask=this.projectedGeoTriangulationMask,this.projectedGeoPreviousTriangulationAppliedMask=this.projectedGeoTriangulationAppliedMask}mixPreviousAndNew(e){if(super.mixPreviousAndNew(e),this.projectedGcpPreviousTriangulation&&this.projectedGcpTriangulation){const t=this.projectedGcpPreviousTriangulation,i=this.projectedGcpTriangulation;this.previousResourceResolution=this.resourceResolution,this.projectedGcpPreviousTriangulation={resourceResolution:t.resourceResolution,gcpUniquePoints:t.gcpUniquePoints.map((o,n)=>({resource:o.resource,geo:a.mixPoints(i.gcpUniquePoints[n].geo,o.geo,e),distortions:i.gcpUniquePoints[n].distortions,distortion:a.mixNumbers(i.gcpUniquePoints[n].distortion||0,o.distortion||0,e)})),uniquePointIndices:t.uniquePointIndices,uniquePointIndexInterpolatedPolygon:t.uniquePointIndexInterpolatedPolygon,uniquePointIndexInterpolatedSteinerPolygons:t.uniquePointIndexInterpolatedSteinerPolygons,insideSteinerPolygonsTriangles:t.insideSteinerPolygonsTriangles},this.projectedGeoPreviousTrianglePoints=t.uniquePointIndices.map(o=>t.gcpUniquePoints[o].geo),this.previousTrianglePointsDistortion=t.uniquePointIndices.map(o=>t.gcpUniquePoints[o].distortion)}this.projectedGeoPreviousTriangulationFullMask=a.mixLineStrings(this.projectedGeoTriangulationFullMask,this.projectedGeoPreviousTriangulationFullMask,e),this.projectedGeoPreviousTriangulationMask=a.mixLineStrings(this.projectedGeoTriangulationMask,this.projectedGeoPreviousTriangulationMask,e),this.projectedGeoPreviousTriangulationAppliedMask=a.mixLineStrings(this.projectedGeoTriangulationAppliedMask,this.projectedGeoPreviousTriangulationAppliedMask,e)}updateTriangulation(){if(!this.resourceTriangulationCache||!this.projectedGcpTriangulationCache)return;const e=this.options.resourceResolution||this.projectedTransformer.getToGeoTransformationResolution(this.resourceMaskBbox);let t=!1;e&&this.previousResourceResolution&&(t=this.previousResourceResolution<e,this.resourceResolution=Math.min(e,this.previousResourceResolution)),e&&!this.previousResourceResolution&&(t=!0,this.resourceResolution=e),!e&&this.previousResourceResolution?this.resourceResolution=this.previousResourceResolution:!e&&!this.previousResourceResolution&&(this.resourceResolution=void 0),this.projectedGcpTriangulation=u.getPropertyFromQuintupleCacheOrComputation(this.projectedGcpTriangulationCache,this.resourceResolution,String(this.resourceMask),this.transformationType,this.internalProjection.definition,String(this.options.distortionMeasures),()=>{const{uniquePoints:i,uniquePointIndexTriangles:o,uniquePointIndexInterpolatedPolygon:n,uniquePointIndexInterpolatedSteinerPolygons:g,insideSteinerPolygonsTriangles:d}=u.getPropertyFromDoubleCacheOrComputation(this.resourceTriangulationCache,this.resourceResolution,String(this.resourceMask),()=>{try{return j.triangulateToUnique(s.bboxToPolygon(s.combineBboxes(s.computeBbox(this.resourceFullMask),s.bufferBbox(s.computeBbox(this.resourceMask),1))),this.resourceResolution,{steinerPoints:this.gcps.map(r=>r.resource),steinerPolygons:[[this.resourceMask]],computeInsideSteinerPolygons:!0})}catch(r){throw r instanceof Error?(r.message=`Failed to triangulate map ${this.mapId}: `+r.message,r):new Error(`Failed to triangulate map ${this.mapId}`)}}),h=this.resourceResolution,P=i;return{resourceResolution:h,gcpUniquePoints:this.projectedTransformer.transformToProjectedGeo(P,{distortionMeasures:this.options.distortionMeasures,referenceScale:this.getReferenceScale(),isMultiGeometry:!0},r=>r),uniquePointIndices:o.flat(),uniquePointIndexInterpolatedPolygon:n,uniquePointIndexInterpolatedSteinerPolygons:g,insideSteinerPolygonsTriangles:d}}),this.projectedGcpPreviousTriangulation||(this.projectedGcpPreviousTriangulation=this.projectedGcpTriangulation),t&&(this.previousResourceResolution=this.resourceResolution,this.projectedGcpPreviousTriangulation=u.getPropertyFromQuintupleCacheOrComputation(this.projectedGcpTriangulationCache,this.previousResourceResolution,String(this.resourceMask),this.previousTransformationType,this.previousInternalProjection.definition,String(this.options.distortionMeasures),()=>{if(!this.projectedGcpTriangulation)throw new Error("No projectedGcpTriangulation");const i=this.projectedGcpTriangulation;return{resourceResolution:this.projectedGcpTriangulation.resourceResolution,gcpUniquePoints:this.projectedPreviousTransformer.transformToProjectedGeo(this.projectedGcpTriangulation.gcpUniquePoints.map(o=>o.resource),{distortionMeasures:this.options.distortionMeasures,referenceScale:this.getReferenceScale(),isMultiGeometry:!0},o=>o),uniquePointIndices:this.projectedGcpTriangulation.uniquePointIndices,uniquePointIndexInterpolatedPolygon:i.uniquePointIndexInterpolatedPolygon,uniquePointIndexInterpolatedSteinerPolygons:i.uniquePointIndexInterpolatedSteinerPolygons,insideSteinerPolygonsTriangles:i.insideSteinerPolygonsTriangles}},()=>!this.mixed,()=>!this.mixed)),this.updateTrianglePoints()}updateTrianglePoints(){if(!this.projectedGcpPreviousTriangulation||!this.projectedGcpTriangulation)return;const e=this.projectedGcpPreviousTriangulation,t=this.projectedGcpTriangulation;this.trianglePointsInside=t.insideSteinerPolygonsTriangles.map(i=>[i,i,i]).flat(),this.resourceTrianglePoints=this.projectedGcpTriangulation.uniquePointIndices.map(i=>t.gcpUniquePoints[i].resource),this.projectedGeoPreviousTrianglePoints=this.projectedGcpPreviousTriangulation.uniquePointIndices.map(i=>e.gcpUniquePoints[i].geo),this.projectedGeoTrianglePoints=this.projectedGcpTriangulation.uniquePointIndices.map(i=>t.gcpUniquePoints[i].geo),this.projectedGeoPreviousTriangulationFullMask=this.projectedGcpPreviousTriangulation.uniquePointIndexInterpolatedPolygon.map(i=>i.map(o=>e.gcpUniquePoints[o].geo)).flat(),this.projectedGeoTriangulationFullMask=this.projectedGcpTriangulation.uniquePointIndexInterpolatedPolygon.map(i=>i.map(o=>t.gcpUniquePoints[o].geo)).flat(),this.projectedGeoPreviousTriangulationMask=this.projectedGcpPreviousTriangulation.uniquePointIndexInterpolatedSteinerPolygons[0].map(i=>i.map(o=>e.gcpUniquePoints[o].geo)).flat(),this.projectedGeoTriangulationMask=this.projectedGcpTriangulation.uniquePointIndexInterpolatedSteinerPolygons[0].map(i=>i.map(o=>t.gcpUniquePoints[o].geo)).flat(),this.projectedGeoPreviousTriangulationAppliedMask=this.applyMask?this.projectedGeoPreviousTriangulationMask:this.projectedGeoPreviousTriangulationFullMask,this.projectedGeoTriangulationAppliedMask=this.applyMask?this.projectedGeoTriangulationMask:this.projectedGeoTriangulationFullMask,this.updateTrianglePointsDistortion()}updateTrianglePointsDistortion(){if(!this.projectedGcpPreviousTriangulation||!this.projectedGcpTriangulation)return;const e=this.projectedGcpPreviousTriangulation,t=this.projectedGcpTriangulation;this.previousTrianglePointsDistortion=e.uniquePointIndices.map(i=>{const o=e.gcpUniquePoints[i].distortions;return!this.previousDistortionMeasure||!o?0:o.get(this.previousDistortionMeasure)}),this.trianglePointsDistortion=t.uniquePointIndices.map(i=>{const o=t.gcpUniquePoints[i].distortions;return!this.distortionMeasure||!o?0:o.get(this.distortionMeasure)})}updateProjectedTransformerProperties(){super.updateProjectedTransformerProperties(),this.updateTriangulation()}clearProjectedTransformerCaches(){super.clearProjectedTransformerCaches(),this.clearResourceTriangulationCaches()}clearResourceTriangulationCaches(){this.resourceTriangulationCache=new Map,this.clearProjectedTriangulationCaches()}clearProjectedTriangulationCaches(){this.projectedGcpTriangulationCache=new Map}};exports.TriangulatedWarpedMap=G;
2
+ //# sourceMappingURL=index.cjs300.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs300.js","sources":["../../../node_modules/@allmaps/render/dist/maps/TriangulatedWarpedMap.js"],"sourcesContent":["import { WarpedMap } from \"./WarpedMap.js\";\nimport { bboxToPolygon, bufferBbox, combineBboxes, computeBbox, getPropertyFromDoubleCacheOrComputation, getPropertyFromQuintupleCacheOrComputation, mergeOptions, mixLineStrings, mixNumbers, mixPoints } from \"@allmaps/stdlib\";\nimport { triangulateToUnique } from \"@allmaps/triangulate\";\n//#region src/maps/TriangulatedWarpedMap.ts\nvar DEFAULT_SPECIFIC_TRIANGULATED_WARPED_MAP_OPTIONS = { distortionMeasures: [] };\n/**\n* Class for triangulated WarpedMaps.\n*\n* @param resourcePreviousResolution - Resolution (or 'distance') used during the previous triangulation of the resource mask\n* @param resourceResolution - Resolution (or 'distance') used during the triangulation of the resource mask, computed as the finest resource segment resulting from a resource-to-geo transformation of the horizontal and vertical midline of the resource bbox using the current transformation type\n* @param triangulateErrorCount - Number of time the triangulation has resulted in an error\n* @param projectedGcpPreviousTriangulation - Previous triangulation of the resource mask\n* @param projectedGcpTriangulation - Triangulation of the resource mask of a specific resource resolution, with unique points in resource and projected geospatial coordinates with distortions, and indices pointing to the triangles points and indices pointing to the triangulation-refined resource mask\n* @param resourceTrianglePoints - Triangle points of the triangles the triangulated resourceMask\n* @param projectedGeoPreviousTrianglePoints - The projectedGeoTrianglePoints of the previous transformation type, used during transformation transitions\n* @param projectedGeoTrianglePoints - The resourceTrianglePoints in projected geospatial coordinates\n* @param previousTrianglePointsDistortion - The trianglePointsDistortion of the previous transformation type, used during transformation transitions\n* @param trianglePointsDistortion - Distortion amount of the distortionMeasure at the projectedGeoTrianglePoints\n* @param projectedGeoPreviousTriangulationFullMask - The resource full mask refined by the previous triangulation, in projected geospatial coordinates\n* @param projectedGeoPreviousTriangulationMask - The resource mask refined by the previous triangulation, in projected geospatial coordinates\n* @param projectedGeoTriangulationMask - The resource mask refined by the triangulation, in projected geospatial coordinates\n* @param projectedGeoPreviousTriangulationAppliedMask - The resource applied mask refined by the previous triangulation, in projected geospatial coordinates\n* @param projectedGeoTriangulationAppliedMask - The resource applied mask refined by the triangulation, in projected geospatial coordinates\n*/\nvar TriangulatedWarpedMap = class TriangulatedWarpedMap extends WarpedMap {\n\tpreviousResourceResolution;\n\tresourceResolution;\n\ttriangulateErrorCount = 0;\n\tprojectedGcpPreviousTriangulation;\n\tprojectedGcpTriangulation;\n\tresourceTriangulationCache;\n\tprojectedGcpTriangulationCache;\n\tresourceTrianglePoints = [];\n\tprojectedGeoPreviousTrianglePoints = [];\n\tprojectedGeoTrianglePoints = [];\n\tpreviousTrianglePointsDistortion = [];\n\ttrianglePointsDistortion = [];\n\tpreviousTrianglePointsInside = [];\n\ttrianglePointsInside = [];\n\tprojectedGeoPreviousTriangulationFullMask = [];\n\tprojectedGeoTriangulationFullMask = [];\n\tprojectedGeoPreviousTriangulationMask = [];\n\tprojectedGeoTriangulationMask = [];\n\tprojectedGeoPreviousTriangulationAppliedMask = [];\n\tprojectedGeoTriangulationAppliedMask = [];\n\t/**\n\t* Creates an instance of a TriangulatedWarpedMap.\n\t*\n\t* @param mapId - ID of the map\n\t* @param georeferencedMap - Georeferenced map used to construct the WarpedMap\n\t* @param options - Options\n\t*/\n\tconstructor(mapId, georeferencedMap, listOptions, mapOptions) {\n\t\tsuper(mapId, georeferencedMap, listOptions, mapOptions);\n\t\tthis.resourceTriangulationCache = /* @__PURE__ */ new Map();\n\t\tthis.projectedGcpTriangulationCache = /* @__PURE__ */ new Map();\n\t\tthis.updateTriangulation();\n\t}\n\t/**\n\t* Get default options\n\t*/\n\tstatic getDefaultOptions() {\n\t\treturn mergeOptions(DEFAULT_SPECIFIC_TRIANGULATED_WARPED_MAP_OPTIONS, super.getDefaultOptions());\n\t}\n\t/**\n\t* Get default options without the options overwritten by the georeferenced map\n\t*/\n\tstatic getDefaultWithoutGeoreferencedMapOptions() {\n\t\treturn mergeOptions(DEFAULT_SPECIFIC_TRIANGULATED_WARPED_MAP_OPTIONS, super.getDefaultWithoutGeoreferencedMapOptions());\n\t}\n\t/**\n\t* Set the defaultOptions\n\t*/\n\tsetDefaultOptions() {\n\t\tthis.defaultOptions = TriangulatedWarpedMap.getDefaultOptions();\n\t}\n\t/**\n\t* Set the list options\n\t*\n\t* @param listOptions - list options\n\t* @param animationOptions - Animation options\n\t*/\n\tsetListOptions(listOptions, animationOptions) {\n\t\treturn super.setListOptions(listOptions, animationOptions);\n\t}\n\t/**\n\t* Set the map-specific options\n\t*\n\t* @param mapOptions - Map-specific options\n\t* @param animationOptions - Animation options\n\t*/\n\tsetMapOptions(mapOptions, animationOptions) {\n\t\treturn super.setMapOptions(mapOptions, animationOptions);\n\t}\n\t/**\n\t* Set the map-specific options, and the list options\n\t*\n\t* @param mapOptions - Map-specific options\n\t* @param listOptions - list options\n\t* @param animationOptions - Animation options\n\t*/\n\tsetMapAndListOptions(mapOptions, listOptions, animationOptions) {\n\t\treturn super.setMapAndListOptions(mapOptions, listOptions, animationOptions);\n\t}\n\t/**\n\t* Update the ground control points loaded from a georeferenced map to new ground control points.\n\t*\n\t* @param gcps - the new ground control points\n\t*/\n\tsetGcps(gcps) {\n\t\tsuper.setGcps(gcps);\n\t\tthis.clearResourceTriangulationCaches();\n\t\tthis.updateTriangulation();\n\t}\n\t/**\n\t* Update the resource mask loaded from a georeferenced map to a new mask.\n\t*\n\t* @param resourceMask - the new mask\n\t*/\n\tsetResourceMask() {\n\t\tsuper.setResourceMask();\n\t\tthis.updateTriangulation();\n\t}\n\t/**\n\t* Set the distortionMeasure\n\t*\n\t* @param distortionMeasure - the disortion measure\n\t*/\n\tsetDistortionMeasure(distortionMeasure) {\n\t\tsuper.setDistortionMeasure(distortionMeasure);\n\t\tif (distortionMeasure && !this.options.distortionMeasures.includes(distortionMeasure)) this.options.distortionMeasures.push(distortionMeasure);\n\t\tthis.updateTriangulation();\n\t}\n\t/**\n\t* Set the internal projection\n\t*\n\t* @param projection - the internal projection\n\t*/\n\tsetInternalProjection(projection) {\n\t\tsuper.setInternalProjection(projection);\n\t\tthis.updateTriangulation();\n\t}\n\t/**\n\t* Set the projection\n\t*\n\t* @param projection - the projection\n\t*/\n\tsetProjection(projection) {\n\t\tsuper.setProjection(projection);\n\t\tthis.clearProjectedTriangulationCaches();\n\t\tthis.updateTriangulation();\n\t}\n\t/**\n\t* Reset previous transform properties to new ones (when completing an animation).\n\t*/\n\tresetPrevious() {\n\t\tsuper.resetPrevious();\n\t\tthis.previousResourceResolution = this.resourceResolution;\n\t\tthis.projectedGcpPreviousTriangulation = this.projectedGcpTriangulation;\n\t\tthis.projectedGeoPreviousTrianglePoints = this.projectedGeoTrianglePoints;\n\t\tthis.previousTrianglePointsDistortion = this.trianglePointsDistortion;\n\t\tthis.previousTrianglePointsInside = this.trianglePointsInside;\n\t\tthis.projectedGeoPreviousTriangulationFullMask = this.projectedGeoTriangulationFullMask;\n\t\tthis.projectedGeoPreviousTriangulationMask = this.projectedGeoTriangulationMask;\n\t\tthis.projectedGeoPreviousTriangulationAppliedMask = this.projectedGeoTriangulationAppliedMask;\n\t}\n\t/**\n\t* Mix previous transform properties with new ones (when changing an ongoing animation).\n\t*\n\t* @param t - animation progress\n\t*/\n\tmixPreviousAndNew(t) {\n\t\tsuper.mixPreviousAndNew(t);\n\t\tif (this.projectedGcpPreviousTriangulation && this.projectedGcpTriangulation) {\n\t\t\tconst projectedGcpPreviousTriangulation = this.projectedGcpPreviousTriangulation;\n\t\t\tconst projectedGcpTriangulation = this.projectedGcpTriangulation;\n\t\t\tthis.previousResourceResolution = this.resourceResolution;\n\t\t\tthis.projectedGcpPreviousTriangulation = {\n\t\t\t\tresourceResolution: projectedGcpPreviousTriangulation.resourceResolution,\n\t\t\t\tgcpUniquePoints: projectedGcpPreviousTriangulation.gcpUniquePoints.map((projectedGcp, index) => {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tresource: projectedGcp.resource,\n\t\t\t\t\t\tgeo: mixPoints(projectedGcpTriangulation.gcpUniquePoints[index].geo, projectedGcp.geo, t),\n\t\t\t\t\t\tdistortions: projectedGcpTriangulation.gcpUniquePoints[index].distortions,\n\t\t\t\t\t\tdistortion: mixNumbers(projectedGcpTriangulation.gcpUniquePoints[index].distortion || 0, projectedGcp.distortion || 0, t)\n\t\t\t\t\t};\n\t\t\t\t}),\n\t\t\t\tuniquePointIndices: projectedGcpPreviousTriangulation.uniquePointIndices,\n\t\t\t\tuniquePointIndexInterpolatedPolygon: projectedGcpPreviousTriangulation.uniquePointIndexInterpolatedPolygon,\n\t\t\t\tuniquePointIndexInterpolatedSteinerPolygons: projectedGcpPreviousTriangulation.uniquePointIndexInterpolatedSteinerPolygons,\n\t\t\t\tinsideSteinerPolygonsTriangles: projectedGcpPreviousTriangulation.insideSteinerPolygonsTriangles\n\t\t\t};\n\t\t\tthis.projectedGeoPreviousTrianglePoints = projectedGcpPreviousTriangulation.uniquePointIndices.map((i) => projectedGcpPreviousTriangulation.gcpUniquePoints[i].geo);\n\t\t\tthis.previousTrianglePointsDistortion = projectedGcpPreviousTriangulation.uniquePointIndices.map((i) => projectedGcpPreviousTriangulation.gcpUniquePoints[i].distortion);\n\t\t}\n\t\tthis.projectedGeoPreviousTriangulationFullMask = mixLineStrings(this.projectedGeoTriangulationFullMask, this.projectedGeoPreviousTriangulationFullMask, t);\n\t\tthis.projectedGeoPreviousTriangulationMask = mixLineStrings(this.projectedGeoTriangulationMask, this.projectedGeoPreviousTriangulationMask, t);\n\t\tthis.projectedGeoPreviousTriangulationAppliedMask = mixLineStrings(this.projectedGeoTriangulationAppliedMask, this.projectedGeoPreviousTriangulationAppliedMask, t);\n\t}\n\t/**\n\t* Update the (previous and new) triangulation of the resourceMask. Use cache if available.\n\t*/\n\tupdateTriangulation() {\n\t\tif (!this.resourceTriangulationCache || !this.projectedGcpTriangulationCache) return;\n\t\tconst resourceResolution = this.options.resourceResolution || this.projectedTransformer.getToGeoTransformationResolution(this.resourceMaskBbox);\n\t\tlet refinePrevious = false;\n\t\tif (resourceResolution && this.previousResourceResolution) {\n\t\t\trefinePrevious = this.previousResourceResolution < resourceResolution;\n\t\t\tthis.resourceResolution = Math.min(resourceResolution, this.previousResourceResolution);\n\t\t}\n\t\tif (resourceResolution && !this.previousResourceResolution) {\n\t\t\trefinePrevious = true;\n\t\t\tthis.resourceResolution = resourceResolution;\n\t\t}\n\t\tif (!resourceResolution && this.previousResourceResolution) this.resourceResolution = this.previousResourceResolution;\n\t\telse if (!resourceResolution && !this.previousResourceResolution) this.resourceResolution = void 0;\n\t\tthis.projectedGcpTriangulation = getPropertyFromQuintupleCacheOrComputation(this.projectedGcpTriangulationCache, this.resourceResolution, String(this.resourceMask), this.transformationType, this.internalProjection.definition, String(this.options.distortionMeasures), () => {\n\t\t\tconst { uniquePoints, uniquePointIndexTriangles, uniquePointIndexInterpolatedPolygon, uniquePointIndexInterpolatedSteinerPolygons, insideSteinerPolygonsTriangles } = getPropertyFromDoubleCacheOrComputation(this.resourceTriangulationCache, this.resourceResolution, String(this.resourceMask), () => {\n\t\t\t\ttry {\n\t\t\t\t\treturn triangulateToUnique(bboxToPolygon(combineBboxes(computeBbox(this.resourceFullMask), bufferBbox(computeBbox(this.resourceMask), 1))), this.resourceResolution, {\n\t\t\t\t\t\tsteinerPoints: this.gcps.map((gcp) => gcp.resource),\n\t\t\t\t\t\tsteinerPolygons: [[this.resourceMask]],\n\t\t\t\t\t\tcomputeInsideSteinerPolygons: true\n\t\t\t\t\t});\n\t\t\t\t} catch (error) {\n\t\t\t\t\tif (error instanceof Error) {\n\t\t\t\t\t\terror.message = `Failed to triangulate map ${this.mapId}: ` + error.message;\n\t\t\t\t\t\tthrow error;\n\t\t\t\t\t} else throw new Error(`Failed to triangulate map ${this.mapId}`);\n\t\t\t\t}\n\t\t\t});\n\t\t\tconst resourceResolution = this.resourceResolution;\n\t\t\tconst resourceUniquePoints = uniquePoints;\n\t\t\treturn {\n\t\t\t\tresourceResolution,\n\t\t\t\tgcpUniquePoints: this.projectedTransformer.transformToProjectedGeo(resourceUniquePoints, {\n\t\t\t\t\tdistortionMeasures: this.options.distortionMeasures,\n\t\t\t\t\treferenceScale: this.getReferenceScale(),\n\t\t\t\t\tisMultiGeometry: true\n\t\t\t\t}, (gcpPartialDistortion) => gcpPartialDistortion),\n\t\t\t\tuniquePointIndices: uniquePointIndexTriangles.flat(),\n\t\t\t\tuniquePointIndexInterpolatedPolygon,\n\t\t\t\tuniquePointIndexInterpolatedSteinerPolygons,\n\t\t\t\tinsideSteinerPolygonsTriangles\n\t\t\t};\n\t\t});\n\t\tif (!this.projectedGcpPreviousTriangulation) this.projectedGcpPreviousTriangulation = this.projectedGcpTriangulation;\n\t\tif (refinePrevious) {\n\t\t\tthis.previousResourceResolution = this.resourceResolution;\n\t\t\tthis.projectedGcpPreviousTriangulation = getPropertyFromQuintupleCacheOrComputation(this.projectedGcpTriangulationCache, this.previousResourceResolution, String(this.resourceMask), this.previousTransformationType, this.previousInternalProjection.definition, String(this.options.distortionMeasures), () => {\n\t\t\t\tif (!this.projectedGcpTriangulation) throw new Error(\"No projectedGcpTriangulation\");\n\t\t\t\tconst projectedGcpTriangulation = this.projectedGcpTriangulation;\n\t\t\t\treturn {\n\t\t\t\t\tresourceResolution: this.projectedGcpTriangulation.resourceResolution,\n\t\t\t\t\tgcpUniquePoints: this.projectedPreviousTransformer.transformToProjectedGeo(this.projectedGcpTriangulation.gcpUniquePoints.map((projectedGcp) => projectedGcp.resource), {\n\t\t\t\t\t\tdistortionMeasures: this.options.distortionMeasures,\n\t\t\t\t\t\treferenceScale: this.getReferenceScale(),\n\t\t\t\t\t\tisMultiGeometry: true\n\t\t\t\t\t}, (gcpPartialDistortion) => gcpPartialDistortion),\n\t\t\t\t\tuniquePointIndices: this.projectedGcpTriangulation.uniquePointIndices,\n\t\t\t\t\tuniquePointIndexInterpolatedPolygon: projectedGcpTriangulation.uniquePointIndexInterpolatedPolygon,\n\t\t\t\t\tuniquePointIndexInterpolatedSteinerPolygons: projectedGcpTriangulation.uniquePointIndexInterpolatedSteinerPolygons,\n\t\t\t\t\tinsideSteinerPolygonsTriangles: projectedGcpTriangulation.insideSteinerPolygonsTriangles\n\t\t\t\t};\n\t\t\t}, () => !this.mixed, () => !this.mixed);\n\t\t}\n\t\tthis.updateTrianglePoints();\n\t}\n\t/**\n\t* Derive the (previous and new) resource and projectedGeo points from their corresponding triangulations.\n\t*\n\t* Also derive the (previous and new) triangulation-refined resource and projectedGeo mask\n\t*/\n\tupdateTrianglePoints() {\n\t\tif (!this.projectedGcpPreviousTriangulation || !this.projectedGcpTriangulation) return;\n\t\tconst projectedGcpPreviousTriangulation = this.projectedGcpPreviousTriangulation;\n\t\tconst projectedGcpTriangulation = this.projectedGcpTriangulation;\n\t\tthis.trianglePointsInside = projectedGcpTriangulation.insideSteinerPolygonsTriangles.map((inside) => [\n\t\t\tinside,\n\t\t\tinside,\n\t\t\tinside\n\t\t]).flat();\n\t\tthis.resourceTrianglePoints = this.projectedGcpTriangulation.uniquePointIndices.map((i) => projectedGcpTriangulation.gcpUniquePoints[i].resource);\n\t\tthis.projectedGeoPreviousTrianglePoints = this.projectedGcpPreviousTriangulation.uniquePointIndices.map((i) => projectedGcpPreviousTriangulation.gcpUniquePoints[i].geo);\n\t\tthis.projectedGeoTrianglePoints = this.projectedGcpTriangulation.uniquePointIndices.map((i) => projectedGcpTriangulation.gcpUniquePoints[i].geo);\n\t\tthis.projectedGeoPreviousTriangulationFullMask = this.projectedGcpPreviousTriangulation.uniquePointIndexInterpolatedPolygon.map((typedRing) => typedRing.map((i) => projectedGcpPreviousTriangulation.gcpUniquePoints[i].geo)).flat();\n\t\tthis.projectedGeoTriangulationFullMask = this.projectedGcpTriangulation.uniquePointIndexInterpolatedPolygon.map((typedRing) => typedRing.map((i) => projectedGcpTriangulation.gcpUniquePoints[i].geo)).flat();\n\t\tthis.projectedGeoPreviousTriangulationMask = this.projectedGcpPreviousTriangulation.uniquePointIndexInterpolatedSteinerPolygons[0].map((typedRing) => typedRing.map((i) => projectedGcpPreviousTriangulation.gcpUniquePoints[i].geo)).flat();\n\t\tthis.projectedGeoTriangulationMask = this.projectedGcpTriangulation.uniquePointIndexInterpolatedSteinerPolygons[0].map((typedRing) => typedRing.map((i) => projectedGcpTriangulation.gcpUniquePoints[i].geo)).flat();\n\t\tthis.projectedGeoPreviousTriangulationAppliedMask = this.applyMask ? this.projectedGeoPreviousTriangulationMask : this.projectedGeoPreviousTriangulationFullMask;\n\t\tthis.projectedGeoTriangulationAppliedMask = this.applyMask ? this.projectedGeoTriangulationMask : this.projectedGeoTriangulationFullMask;\n\t\tthis.updateTrianglePointsDistortion();\n\t}\n\t/**\n\t* Derive the (previous and new) distortions from their corresponding triangulations.\n\t*/\n\tupdateTrianglePointsDistortion() {\n\t\tif (!this.projectedGcpPreviousTriangulation || !this.projectedGcpTriangulation) return;\n\t\tconst projectedGcpPreviousTriangulation = this.projectedGcpPreviousTriangulation;\n\t\tconst projectedGcpTriangulation = this.projectedGcpTriangulation;\n\t\tthis.previousTrianglePointsDistortion = projectedGcpPreviousTriangulation.uniquePointIndices.map((i) => {\n\t\t\tconst distortions = projectedGcpPreviousTriangulation.gcpUniquePoints[i].distortions;\n\t\t\tif (!this.previousDistortionMeasure || !distortions) return 0;\n\t\t\telse return distortions.get(this.previousDistortionMeasure);\n\t\t});\n\t\tthis.trianglePointsDistortion = projectedGcpTriangulation.uniquePointIndices.map((i) => {\n\t\t\tconst distortions = projectedGcpTriangulation.gcpUniquePoints[i].distortions;\n\t\t\tif (!this.distortionMeasure || !distortions) return 0;\n\t\t\telse return distortions.get(this.distortionMeasure);\n\t\t});\n\t}\n\tupdateProjectedTransformerProperties() {\n\t\tsuper.updateProjectedTransformerProperties();\n\t\tthis.updateTriangulation();\n\t}\n\tclearProjectedTransformerCaches() {\n\t\tsuper.clearProjectedTransformerCaches();\n\t\tthis.clearResourceTriangulationCaches();\n\t}\n\tclearResourceTriangulationCaches() {\n\t\tthis.resourceTriangulationCache = /* @__PURE__ */ new Map();\n\t\tthis.clearProjectedTriangulationCaches();\n\t}\n\tclearProjectedTriangulationCaches() {\n\t\tthis.projectedGcpTriangulationCache = /* @__PURE__ */ new Map();\n\t}\n};\n//#endregion\nexport { TriangulatedWarpedMap };\n\n//# sourceMappingURL=TriangulatedWarpedMap.js.map"],"names":["DEFAULT_SPECIFIC_TRIANGULATED_WARPED_MAP_OPTIONS","TriangulatedWarpedMap","WarpedMap","mapId","georeferencedMap","listOptions","mapOptions","mergeOptions","animationOptions","gcps","distortionMeasure","projection","t","projectedGcpPreviousTriangulation","projectedGcpTriangulation","projectedGcp","index","mixPoints","mixNumbers","i","mixLineStrings","resourceResolution","refinePrevious","getPropertyFromQuintupleCacheOrComputation","uniquePoints","uniquePointIndexTriangles","uniquePointIndexInterpolatedPolygon","uniquePointIndexInterpolatedSteinerPolygons","insideSteinerPolygonsTriangles","getPropertyFromDoubleCacheOrComputation","triangulateToUnique","bboxToPolygon","combineBboxes","computeBbox","bufferBbox","gcp","error","resourceUniquePoints","gcpPartialDistortion","inside","typedRing","distortions"],"mappings":"gRAIA,IAAIA,EAAmD,CAAE,mBAAoB,EAAC,EAoB1EC,EAAwB,MAAMA,UAA8BC,WAAU,CACzE,2BACA,mBACA,sBAAwB,EACxB,kCACA,0BACA,2BACA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AAC,KAAK,0BAA2B,OAChF,MAAMN,EAAoC,KAAK,kCACzCC,EAA4B,KAAK,0BACvC,KAAK,iCAAmCD,EAAkC,mBAAmB,IAAK,GAAM,CACvG,MAAM4B,EAAc5B,EAAkC,gBAAgB,CAAC,EAAE,YACzE,MAAI,CAAC,KAAK,2BAA6B,CAAC4B,EAAoB,EAChDA,EAAY,IAAI,KAAK,yBAAyB,CAC3D,CAAC,EACD,KAAK,yBAA2B3B,EAA0B,mBAAmB,IAAK,GAAM,CACvF,MAAM2B,EAAc3B,EAA0B,gBAAgB,CAAC,EAAE,YACjE,MAAI,CAAC,KAAK,mBAAqB,CAAC2B,EAAoB,EACxCA,EAAY,IAAI,KAAK,iBAAiB,CACnD,CAAC,CACF,CACA,sCAAuC,CACtC,MAAM,qCAAA,EACN,KAAK,oBAAA,CACN,CACA,iCAAkC,CACjC,MAAM,gCAAA,EACN,KAAK,iCAAA,CACN,CACA,kCAAmC,CAClC,KAAK,+BAAiD,IACtD,KAAK,kCAAA,CACN,CACA,mCAAoC,CACnC,KAAK,mCAAqD,GAC3D,CACD","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function h(e,t,a){const r=e.createShader(t);if(r){if(e.shaderSource(r,a),e.compileShader(r),e.getShaderParameter(r,e.COMPILE_STATUS))return r;{const o=e.getShaderInfoLog(r);throw e.deleteShader(r),new Error("Failed to compile shader: "+o)}}else throw new Error("Failed to create shader")}function m(e,t,a){const r=e.createProgram();if(r){if(e.attachShader(r,t),e.attachShader(r,a),e.linkProgram(r),e.getProgramParameter(r,e.LINK_STATUS))return r;{const o=e.getProgramInfoLog(r);throw e.deleteProgram(r),new Error("Failed to link program: "+o)}}else throw new Error("Failed to create program")}function u(e,t,a,r,o){const n=e.createBuffer();if(!n)throw new Error("Failed to create buffer");e.bindBuffer(e.ARRAY_BUFFER,n),e.bufferData(e.ARRAY_BUFFER,a,e.STATIC_DRAW);const i=e.FLOAT,f=!1,s=0,d=0,c=e.getAttribLocation(t,o);return e.vertexAttribPointer(c,r,i,f,s,d),e.enableVertexAttribArray(c),n}exports.createBuffer=u;exports.createProgram=m;exports.createShader=h;
2
+ //# sourceMappingURL=index.cjs301.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs301.js","sources":["../../../node_modules/@allmaps/render/dist/shared/webgl2.js"],"sourcesContent":["//#region src/shared/webgl2.ts\nfunction createShader(gl, type, source) {\n\tconst shader = gl.createShader(type);\n\tif (shader) {\n\t\tgl.shaderSource(shader, source);\n\t\tgl.compileShader(shader);\n\t\tif (gl.getShaderParameter(shader, gl.COMPILE_STATUS)) return shader;\n\t\telse {\n\t\t\tconst message = gl.getShaderInfoLog(shader);\n\t\t\tgl.deleteShader(shader);\n\t\t\tthrow new Error(\"Failed to compile shader: \" + message);\n\t\t}\n\t} else throw new Error(\"Failed to create shader\");\n}\nfunction createProgram(gl, vertexShader, fragmentShader) {\n\tconst program = gl.createProgram();\n\tif (program) {\n\t\tgl.attachShader(program, vertexShader);\n\t\tgl.attachShader(program, fragmentShader);\n\t\tgl.linkProgram(program);\n\t\tif (gl.getProgramParameter(program, gl.LINK_STATUS)) return program;\n\t\telse {\n\t\t\tconst message = gl.getProgramInfoLog(program);\n\t\t\tgl.deleteProgram(program);\n\t\t\tthrow new Error(\"Failed to link program: \" + message);\n\t\t}\n\t} else throw new Error(\"Failed to create program\");\n}\nfunction createBuffer(gl, program, data, size, name) {\n\tconst buffer = gl.createBuffer();\n\tif (!buffer) throw new Error(\"Failed to create buffer\");\n\tgl.bindBuffer(gl.ARRAY_BUFFER, buffer);\n\tgl.bufferData(gl.ARRAY_BUFFER, data, gl.STATIC_DRAW);\n\tconst type = gl.FLOAT;\n\tconst normalize = false;\n\tconst stride = 0;\n\tconst offset = 0;\n\tconst positionAttributeLocation = gl.getAttribLocation(program, name);\n\tgl.vertexAttribPointer(positionAttributeLocation, size, type, normalize, stride, offset);\n\tgl.enableVertexAttribArray(positionAttributeLocation);\n\treturn buffer;\n}\n//#endregion\nexport { createBuffer, createProgram, createShader };\n\n//# sourceMappingURL=webgl2.js.map"],"names":["createShader","gl","type","source","shader","message","createProgram","vertexShader","fragmentShader","program","createBuffer","data","size","name","buffer","normalize","stride","offset","positionAttributeLocation"],"mappings":"gFACA,SAASA,EAAaC,EAAIC,EAAMC,EAAQ,CACvC,MAAMC,EAASH,EAAG,aAAaC,CAAI,EACnC,GAAIE,EAAQ,CAGX,GAFAH,EAAG,aAAaG,EAAQD,CAAM,EAC9BF,EAAG,cAAcG,CAAM,EACnBH,EAAG,mBAAmBG,EAAQH,EAAG,cAAc,EAAG,OAAOG,EACxD,CACJ,MAAMC,EAAUJ,EAAG,iBAAiBG,CAAM,EAC1C,MAAAH,EAAG,aAAaG,CAAM,EAChB,IAAI,MAAM,6BAA+BC,CAAO,CACvD,CACD,KAAO,OAAM,IAAI,MAAM,yBAAyB,CACjD,CACA,SAASC,EAAcL,EAAIM,EAAcC,EAAgB,CACxD,MAAMC,EAAUR,EAAG,cAAA,EACnB,GAAIQ,EAAS,CAIZ,GAHAR,EAAG,aAAaQ,EAASF,CAAY,EACrCN,EAAG,aAAaQ,EAASD,CAAc,EACvCP,EAAG,YAAYQ,CAAO,EAClBR,EAAG,oBAAoBQ,EAASR,EAAG,WAAW,EAAG,OAAOQ,EACvD,CACJ,MAAMJ,EAAUJ,EAAG,kBAAkBQ,CAAO,EAC5C,MAAAR,EAAG,cAAcQ,CAAO,EAClB,IAAI,MAAM,2BAA6BJ,CAAO,CACrD,CACD,KAAO,OAAM,IAAI,MAAM,0BAA0B,CAClD,CACA,SAASK,EAAaT,EAAIQ,EAASE,EAAMC,EAAMC,EAAM,CACpD,MAAMC,EAASb,EAAG,aAAA,EAClB,GAAI,CAACa,EAAQ,MAAM,IAAI,MAAM,yBAAyB,EACtDb,EAAG,WAAWA,EAAG,aAAca,CAAM,EACrCb,EAAG,WAAWA,EAAG,aAAcU,EAAMV,EAAG,WAAW,EACnD,MAAMC,EAAOD,EAAG,MACVc,EAAY,GACZC,EAAS,EACTC,EAAS,EACTC,EAA4BjB,EAAG,kBAAkBQ,EAASI,CAAI,EACpE,OAAAZ,EAAG,oBAAoBiB,EAA2BN,EAAMV,EAAMa,EAAWC,EAAQC,CAAM,EACvFhB,EAAG,wBAAwBiB,CAAyB,EAC7CJ,CACR","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("./index.cjs215.js"),I=require("./index.cjs275.js");function Z(e,t,o,r){let n=Number.POSITIVE_INFINITY,i=e.at(-1);for(const l of e){const c=Math.abs(Math.log2(l.scaleFactor)-(Math.log2(t+o)+r));(c<n||c==n&&l.width*l.height>i.width*i.height)&&(n=c,i=l)}return i}function Y(e,t,o){return d(y(x(e,t)),t,o)}function x(e,t){return e.map(o=>[o[0]/t.originalWidth,o[1]/t.originalHeight])}function y(e){const t={};for(let o=0;o<e.length;o++)N([e[o],e[(o+1)%e.length]]).forEach(([r,n])=>{t[r]||(t[r]=[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY]),n<t[r][0]&&(t[r][0]=n),n>t[r][1]&&(t[r][1]=n)});return t}function N([e,t]){let o=Math.floor(e[0]),r=Math.floor(e[1]);const n=Math.floor(t[0]),i=Math.floor(t[1]),l=[[o,r]];if(o===n&&r===i)return l;const c=Math.sign(t[0]-e[0]),s=Math.sign(t[1]-e[1]),h=Math.abs(e[0]-o-Math.max(0,c)),u=Math.abs(e[1]-r-Math.max(0,s)),a=Math.abs(e[0]-t[0]),f=Math.abs(e[1]-t[1]);let g=h/a,T=u/f;const b=1/a,v=1/f;for(;!(o===n&&r===i);)f===0?o=o+c:a===0?r=r+s:g<T?(g=g+b,o=o+c):(T=T+v,r=r+s),l.push([o,r]);return l}function d(e,t,o){const r=[];for(const n in e){const i=parseInt(n);if(i<0||i>=t.columns)break;const l=Math.max(e[i][0],0),c=Math.min(e[i][1],t.rows-1);for(let s=l;s<=c;s++)r.push({column:i,row:s,tileZoomLevel:t,imageSize:o})}return r}function M(e,t,o,r){let n=Math.floor(e.column*e.tileZoomLevel.scaleFactor/o);n=n>=0?n:0;const i=Math.ceil((e.column+1)*e.tileZoomLevel.scaleFactor/o);let l=Math.floor(e.row*e.tileZoomLevel.scaleFactor/o);l=l>=0?l:0;const c=Math.ceil((e.row+1)*e.tileZoomLevel.scaleFactor/o);return F(o,t,n,i,l,c,r)}function F(e,t,o,r,n,i,l=c=>!0){const c=t.tileZoomLevels.find(u=>u.scaleFactor===e),s=[t.width,t.height];if(!c)return[];o=o||0,r=r||c.columns,n=n||0,i=i||c.rows;const h=[];for(let u=o;u<r;u++)for(let a=n;a<i;a++){const f={column:u,row:a,tileZoomLevel:c,imageSize:s};l(f)&&h.push(f)}return h}function O(e,t){return I.squaredDistance(R(e),t)}function R(e){const t=p(e);return[(t[2]-t[0])/2+t[0],(t[3]-t[1])/2+t[1]]}function S(e){return[e.column*e.tileZoomLevel.originalWidth,e.row*e.tileZoomLevel.originalHeight]}function p(e){const t=S(e),o=Math.min(t[0]+e.tileZoomLevel.originalWidth,e.imageSize[0]),r=Math.min(t[1]+e.tileZoomLevel.originalHeight,e.imageSize[1]);return[t[0],t[1],o,r]}function H(e){return[e.tileZoomLevel.width,e.tileZoomLevel.height]}function X(e){return w.sizeToResolution(H(e))}function C(e){return e.rows*e.width*e.columns*e.height}function P(e,t,o,r,n,i){const l=[],c=A(e,t,o,r,i);for(const s of c)s&&l.push(s);if(l.length===0){const s=L(e,t,o,n,Math.max(...t.tileZoomLevels.map(h=>h.scaleFactor)),i);s&&l.push(s)}return l}function L(e,t,o,r,n,i){const l=2**(Math.log2(o)+1);if(l>n||r<=0)return;const c=q(e,t,l,i);return c!==void 0?c:L(e,t,l,r--,n,i)}function A(e,t,o,r,n){const i=2**(Math.log2(o)-1);if(i<=0||r<=0)return[];const l=m(e,t,i,n),c=m(e,t,i,s=>!0);return l.length===c.length?l:[...l,...A(e,t,i,r--,n)]}function q(e,t,o,r){const n=M(e,t,o,r);if(n.length!==0)return n[0]}function m(e,t,o,r){return M(e,t,o,r)}function z(e){return K(e.mapId,e.tileUrl)}function K(e,t){return`${e}:${t}`}function _(e){return $(e.tileZoomLevel.scaleFactor,e.row,e.column)}function $(e,t,o){return`${e}:${t}:${o}`}exports.computeBboxTile=p;exports.computeTilesCoveringRingAtTileZoomLevel=Y;exports.fetchableTileKey=z;exports.getTileResolution=X;exports.getTileZoomLevelForScale=Z;exports.getTileZoomLevelResolution=C;exports.getTilesAtOtherScaleFactors=P;exports.getTilesAtScaleFactor=F;exports.squaredDistanceTileToPoint=O;exports.tileKey=_;exports.tileToTileOriginPoint=S;
2
+ //# sourceMappingURL=index.cjs302.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs302.js","sources":["../../../node_modules/@allmaps/render/dist/shared/tiles.js"],"sourcesContent":["import { sizeToResolution, squaredDistance } from \"@allmaps/stdlib\";\n//#region src/shared/tiles.ts\n/**\n* Returns the best TileZoomLevel for a given resource-to-canvas scale.\n*\n* @export\n* @param image - A parsed IIIF Image\n* @param resourceToCanvasScale - The resource to canvas scale, relating resource pixels to canvas pixels.\n* @returns\n*/\nfunction getTileZoomLevelForScale(tileZoomLevels, resourceToCanvasScale, scaleFactorCorrection, log2ScaleFactorCorrection) {\n\tlet smallestLog2ScaleFactorDiff = Number.POSITIVE_INFINITY;\n\tlet bestTileZoomLevel = tileZoomLevels.at(-1);\n\tfor (const tileZoomLevel of tileZoomLevels) {\n\t\tconst log2ScaleFactorDiff = Math.abs(Math.log2(tileZoomLevel.scaleFactor) - (Math.log2(resourceToCanvasScale + scaleFactorCorrection) + log2ScaleFactorCorrection));\n\t\tif (log2ScaleFactorDiff < smallestLog2ScaleFactorDiff || log2ScaleFactorDiff == smallestLog2ScaleFactorDiff && tileZoomLevel.width * tileZoomLevel.height > bestTileZoomLevel.width * bestTileZoomLevel.height) {\n\t\t\tsmallestLog2ScaleFactorDiff = log2ScaleFactorDiff;\n\t\t\tbestTileZoomLevel = tileZoomLevel;\n\t\t}\n\t}\n\treturn bestTileZoomLevel;\n}\nfunction computeTilesCoveringRingAtTileZoomLevel(resourceRing, tileZoomLevel, imageSize) {\n\treturn tilesByColumnToTiles(ringToTilesByColumn(scaleResourcePoints(resourceRing, tileZoomLevel)), tileZoomLevel, imageSize);\n}\nfunction scaleResourcePoints(resourcePoints, tileZoomLevel) {\n\treturn resourcePoints.map((point) => [point[0] / tileZoomLevel.originalWidth, point[1] / tileZoomLevel.originalHeight]);\n}\nfunction ringToTilesByColumn(ring) {\n\tconst tilesByColumn = {};\n\tfor (let i = 0; i < ring.length; i++) lineToPixels([ring[i], ring[(i + 1) % ring.length]]).forEach(([x, y]) => {\n\t\tif (!tilesByColumn[x]) tilesByColumn[x] = [Number.POSITIVE_INFINITY, Number.NEGATIVE_INFINITY];\n\t\tif (y < tilesByColumn[x][0]) tilesByColumn[x][0] = y;\n\t\tif (y > tilesByColumn[x][1]) tilesByColumn[x][1] = y;\n\t});\n\treturn tilesByColumn;\n}\nfunction lineToPixels([startPoint, endPoint]) {\n\tlet startPixelX = Math.floor(startPoint[0]);\n\tlet startPixelY = Math.floor(startPoint[1]);\n\tconst endPixelX = Math.floor(endPoint[0]);\n\tconst endPixelY = Math.floor(endPoint[1]);\n\tconst points = [[startPixelX, startPixelY]];\n\tif (startPixelX === endPixelX && startPixelY === endPixelY) return points;\n\tconst stepX = Math.sign(endPoint[0] - startPoint[0]);\n\tconst stepY = Math.sign(endPoint[1] - startPoint[1]);\n\tconst restX = Math.abs(startPoint[0] - startPixelX - Math.max(0, stepX));\n\tconst restY = Math.abs(startPoint[1] - startPixelY - Math.max(0, stepY));\n\tconst distanceX = Math.abs(startPoint[0] - endPoint[0]);\n\tconst distanceY = Math.abs(startPoint[1] - endPoint[1]);\n\tlet restPerStepX = restX / distanceX;\n\tlet restPerStepY = restY / distanceY;\n\tconst onePerStepX = 1 / distanceX;\n\tconst onePerStepY = 1 / distanceY;\n\twhile (!(startPixelX === endPixelX && startPixelY === endPixelY)) {\n\t\tif (distanceY === 0) startPixelX = startPixelX + stepX;\n\t\telse if (distanceX === 0) startPixelY = startPixelY + stepY;\n\t\telse if (restPerStepX < restPerStepY) {\n\t\t\trestPerStepX = restPerStepX + onePerStepX;\n\t\t\tstartPixelX = startPixelX + stepX;\n\t\t} else {\n\t\t\trestPerStepY = restPerStepY + onePerStepY;\n\t\t\tstartPixelY = startPixelY + stepY;\n\t\t}\n\t\tpoints.push([startPixelX, startPixelY]);\n\t}\n\treturn points;\n}\nfunction tilesByColumnToTiles(tilesByColumn, tileZoomLevel, imageSize) {\n\tconst tiles = [];\n\tfor (const xKey in tilesByColumn) {\n\t\tconst x = parseInt(xKey);\n\t\tif (x < 0 || x >= tileZoomLevel.columns) break;\n\t\tconst fromY = Math.max(tilesByColumn[x][0], 0);\n\t\tconst toY = Math.min(tilesByColumn[x][1], tileZoomLevel.rows - 1);\n\t\tfor (let y = fromY; y <= toY; y++) tiles.push({\n\t\t\tcolumn: x,\n\t\t\trow: y,\n\t\t\ttileZoomLevel,\n\t\t\timageSize\n\t\t});\n\t}\n\treturn tiles;\n}\nfunction getTilesCoveringTileAtScaleFactor(tile, image, scaleFactor, validTile) {\n\tlet columnStart = Math.floor(tile.column * tile.tileZoomLevel.scaleFactor / scaleFactor);\n\tcolumnStart = columnStart >= 0 ? columnStart : 0;\n\tconst columnEnd = Math.ceil((tile.column + 1) * tile.tileZoomLevel.scaleFactor / scaleFactor);\n\tlet rowStart = Math.floor(tile.row * tile.tileZoomLevel.scaleFactor / scaleFactor);\n\trowStart = rowStart >= 0 ? rowStart : 0;\n\tconst rowEnd = Math.ceil((tile.row + 1) * tile.tileZoomLevel.scaleFactor / scaleFactor);\n\treturn getTilesAtScaleFactor(scaleFactor, image, columnStart, columnEnd, rowStart, rowEnd, validTile);\n}\nfunction getTilesAtScaleFactor(scaleFactor, image, columnStart, columnEnd, rowStart, rowEnd, validTile = (_tile) => true) {\n\tconst tileZoomLevel = image.tileZoomLevels.find((tileZoomLevel) => tileZoomLevel.scaleFactor === scaleFactor);\n\tconst imageSize = [image.width, image.height];\n\tif (!tileZoomLevel) return [];\n\tcolumnStart = columnStart ? columnStart : 0;\n\tcolumnEnd = columnEnd ? columnEnd : tileZoomLevel.columns;\n\trowStart = rowStart ? rowStart : 0;\n\trowEnd = rowEnd ? rowEnd : tileZoomLevel.rows;\n\tconst tiles = [];\n\tfor (let column = columnStart; column < columnEnd; column++) for (let row = rowStart; row < rowEnd; row++) {\n\t\tconst tile = {\n\t\t\tcolumn,\n\t\t\trow,\n\t\t\ttileZoomLevel,\n\t\t\timageSize\n\t\t};\n\t\tif (validTile(tile)) tiles.push(tile);\n\t}\n\treturn tiles;\n}\nfunction squaredDistanceTileToPoint(tile, point) {\n\treturn squaredDistance(tileCenter(tile), point);\n}\nfunction tileCenter(tile) {\n\tconst bbox = computeBboxTile(tile);\n\treturn [(bbox[2] - bbox[0]) / 2 + bbox[0], (bbox[3] - bbox[1]) / 2 + bbox[1]];\n}\n/**\n* Returns the resource coordinates of the tile's origin point\n*\n* @export\n* @param tile\n* @returns\n*/\nfunction tileToTileOriginPoint(tile) {\n\treturn [tile.column * tile.tileZoomLevel.originalWidth, tile.row * tile.tileZoomLevel.originalHeight];\n}\nfunction clipTilePointToTile(tilePoint, tile) {\n\tconst tileSize = [tile.tileZoomLevel.width, tile.tileZoomLevel.height];\n\treturn tilePoint.map((coordinate, index) => {\n\t\tcoordinate = Math.max(coordinate, 0);\n\t\tcoordinate = Math.min(coordinate, tileSize[index] - 1);\n\t\treturn coordinate;\n\t});\n}\nfunction resourcePointInTile(resourcePoint, tile) {\n\tconst resourceTileOrigin = tileToTileOriginPoint(tile);\n\treturn resourcePoint[0] >= resourceTileOrigin[0] && resourcePoint[0] <= resourceTileOrigin[0] + tile.tileZoomLevel.originalWidth && resourcePoint[1] >= resourceTileOrigin[1] && resourcePoint[1] <= resourceTileOrigin[1] + tile.tileZoomLevel.originalHeight;\n}\nfunction computeBboxTile(tile) {\n\tconst resourceTileOriginPoint = tileToTileOriginPoint(tile);\n\tconst resourceTileMaxX = Math.min(resourceTileOriginPoint[0] + tile.tileZoomLevel.originalWidth, tile.imageSize[0]);\n\tconst resourceTileMaxY = Math.min(resourceTileOriginPoint[1] + tile.tileZoomLevel.originalHeight, tile.imageSize[1]);\n\treturn [\n\t\tresourceTileOriginPoint[0],\n\t\tresourceTileOriginPoint[1],\n\t\tresourceTileMaxX,\n\t\tresourceTileMaxY\n\t];\n}\nfunction getTileSize(tile) {\n\treturn [tile.tileZoomLevel.width, tile.tileZoomLevel.height];\n}\nfunction getTileResolution(tile) {\n\treturn sizeToResolution(getTileSize(tile));\n}\nfunction getTileZoomLevelResolution(tileZoomLevel) {\n\treturn tileZoomLevel.rows * tileZoomLevel.width * tileZoomLevel.columns * tileZoomLevel.height;\n}\nfunction getTilesAtOtherScaleFactors(tile, image, scaleFactor, maxLowerLog2ScaleFactorDiff, maxHigherLog2ScaleFactorDiff, validTile) {\n\tconst tilesAtOtherScaleFactors = [];\n\tconst tilesAtLowerScaleFactor = recursivelyGetTilesAtLowerScaleFactor(tile, image, scaleFactor, maxLowerLog2ScaleFactorDiff, validTile);\n\tfor (const tileAtLowerScaleFactor of tilesAtLowerScaleFactor) if (tileAtLowerScaleFactor) tilesAtOtherScaleFactors.push(tileAtLowerScaleFactor);\n\tif (tilesAtOtherScaleFactors.length === 0) {\n\t\tconst tileAtHigherScaleFactor = recursivelyGetTilesAtHigherScaleFactor(tile, image, scaleFactor, maxHigherLog2ScaleFactorDiff, Math.max(...image.tileZoomLevels.map((tileZoomLevel) => tileZoomLevel.scaleFactor)), validTile);\n\t\tif (tileAtHigherScaleFactor) tilesAtOtherScaleFactors.push(tileAtHigherScaleFactor);\n\t}\n\treturn tilesAtOtherScaleFactors;\n}\nfunction recursivelyGetTilesAtHigherScaleFactor(tile, image, scaleFactor, log2ScaleFactorDiff, maxScaleFactor, validTile) {\n\tconst higherScaleFactor = 2 ** (Math.log2(scaleFactor) + 1);\n\tif (higherScaleFactor > maxScaleFactor || log2ScaleFactorDiff <= 0) return;\n\tconst tileAtHigherScaleFactor = getTileAtHigherScaleFactor(tile, image, higherScaleFactor, validTile);\n\tif (tileAtHigherScaleFactor !== void 0) return tileAtHigherScaleFactor;\n\telse return recursivelyGetTilesAtHigherScaleFactor(tile, image, higherScaleFactor, log2ScaleFactorDiff--, maxScaleFactor, validTile);\n}\nfunction recursivelyGetTilesAtLowerScaleFactor(tile, image, scaleFactor, log2ScaleFactorDiff, validTile) {\n\tconst lowerScaleFactor = 2 ** (Math.log2(scaleFactor) - 1);\n\tif (lowerScaleFactor <= 0 || log2ScaleFactorDiff <= 0) return [];\n\tconst tilesAtLowerScaleFactor = getTilesAtLowerScaleFactor(tile, image, lowerScaleFactor, validTile);\n\tconst allTilesAtLowerScaleFactor = getTilesAtLowerScaleFactor(tile, image, lowerScaleFactor, (_tile) => true);\n\tif (tilesAtLowerScaleFactor.length === allTilesAtLowerScaleFactor.length) return tilesAtLowerScaleFactor;\n\telse return [...tilesAtLowerScaleFactor, ...recursivelyGetTilesAtLowerScaleFactor(tile, image, lowerScaleFactor, log2ScaleFactorDiff--, validTile)];\n}\nfunction getTileAtHigherScaleFactor(tile, image, higherScaleFactor, validTile) {\n\tconst tilesCoveringTileAtHigherScaleFactor = getTilesCoveringTileAtScaleFactor(tile, image, higherScaleFactor, validTile);\n\tif (tilesCoveringTileAtHigherScaleFactor.length === 0) return;\n\treturn tilesCoveringTileAtHigherScaleFactor[0];\n}\nfunction getTilesAtLowerScaleFactor(tile, image, lowerScaleFactor, validTile) {\n\treturn getTilesCoveringTileAtScaleFactor(tile, image, lowerScaleFactor, validTile);\n}\nfunction fetchableTileKey(fetchableTile) {\n\treturn keyFromMapIdTileUrl(fetchableTile.mapId, fetchableTile.tileUrl);\n}\nfunction keyFromMapIdTileUrl(mapId, tileUrl) {\n\treturn `${mapId}:${tileUrl}`;\n}\nfunction tileKey(tile) {\n\treturn keyFromScaleFactorRowColumn(tile.tileZoomLevel.scaleFactor, tile.row, tile.column);\n}\nfunction keyFromScaleFactorRowColumn(scaleFactor, row, column) {\n\treturn `${scaleFactor}:${row}:${column}`;\n}\n//#endregion\nexport { clipTilePointToTile, computeBboxTile, computeTilesCoveringRingAtTileZoomLevel, fetchableTileKey, getTileResolution, getTileZoomLevelForScale, getTileZoomLevelResolution, getTilesAtOtherScaleFactors, getTilesAtScaleFactor, resourcePointInTile, squaredDistanceTileToPoint, tileKey, tileToTileOriginPoint };\n\n//# sourceMappingURL=tiles.js.map"],"names":["getTileZoomLevelForScale","tileZoomLevels","resourceToCanvasScale","scaleFactorCorrection","log2ScaleFactorCorrection","smallestLog2ScaleFactorDiff","bestTileZoomLevel","tileZoomLevel","log2ScaleFactorDiff","computeTilesCoveringRingAtTileZoomLevel","resourceRing","imageSize","tilesByColumnToTiles","ringToTilesByColumn","scaleResourcePoints","resourcePoints","point","ring","tilesByColumn","i","lineToPixels","x","y","startPoint","endPoint","startPixelX","startPixelY","endPixelX","endPixelY","points","stepX","stepY","restX","restY","distanceX","distanceY","restPerStepX","restPerStepY","onePerStepX","onePerStepY","tiles","xKey","fromY","toY","getTilesCoveringTileAtScaleFactor","tile","image","scaleFactor","validTile","columnStart","columnEnd","rowStart","rowEnd","getTilesAtScaleFactor","_tile","column","row","squaredDistanceTileToPoint","squaredDistance","tileCenter","bbox","computeBboxTile","tileToTileOriginPoint","resourceTileOriginPoint","resourceTileMaxX","resourceTileMaxY","getTileSize","getTileResolution","sizeToResolution","getTileZoomLevelResolution","getTilesAtOtherScaleFactors","maxLowerLog2ScaleFactorDiff","maxHigherLog2ScaleFactorDiff","tilesAtOtherScaleFactors","tilesAtLowerScaleFactor","recursivelyGetTilesAtLowerScaleFactor","tileAtLowerScaleFactor","tileAtHigherScaleFactor","recursivelyGetTilesAtHigherScaleFactor","maxScaleFactor","higherScaleFactor","getTileAtHigherScaleFactor","lowerScaleFactor","getTilesAtLowerScaleFactor","allTilesAtLowerScaleFactor","tilesCoveringTileAtHigherScaleFactor","fetchableTileKey","fetchableTile","keyFromMapIdTileUrl","mapId","tileUrl","tileKey","keyFromScaleFactorRowColumn"],"mappings":"oJAUA,SAASA,EAAyBC,EAAgBC,EAAuBC,EAAuBC,EAA2B,CAC1H,IAAIC,EAA8B,OAAO,kBACrCC,EAAoBL,EAAe,GAAG,EAAE,EAC5C,UAAWM,KAAiBN,EAAgB,CAC3C,MAAMO,EAAsB,KAAK,IAAI,KAAK,KAAKD,EAAc,WAAW,GAAK,KAAK,KAAKL,EAAwBC,CAAqB,EAAIC,EAA0B,GAC9JI,EAAsBH,GAA+BG,GAAuBH,GAA+BE,EAAc,MAAQA,EAAc,OAASD,EAAkB,MAAQA,EAAkB,UACvMD,EAA8BG,EAC9BF,EAAoBC,EAEtB,CACA,OAAOD,CACR,CACA,SAASG,EAAwCC,EAAcH,EAAeI,EAAW,CACxF,OAAOC,EAAqBC,EAAoBC,EAAoBJ,EAAcH,CAAa,CAAC,EAAGA,EAAeI,CAAS,CAC5H,CACA,SAASG,EAAoBC,EAAgBR,EAAe,CAC3D,OAAOQ,EAAe,IAAKC,GAAU,CAACA,EAAM,CAAC,EAAIT,EAAc,cAAeS,EAAM,CAAC,EAAIT,EAAc,cAAc,CAAC,CACvH,CACA,SAASM,EAAoBI,EAAM,CAClC,MAAMC,EAAgB,CAAA,EACtB,QAASC,EAAI,EAAGA,EAAIF,EAAK,OAAQE,IAAKC,EAAa,CAACH,EAAKE,CAAC,EAAGF,GAAME,EAAI,GAAKF,EAAK,MAAM,CAAC,CAAC,EAAE,QAAQ,CAAC,CAACI,EAAGC,CAAC,IAAM,CACzGJ,EAAcG,CAAC,IAAGH,EAAcG,CAAC,EAAI,CAAC,OAAO,kBAAmB,OAAO,iBAAiB,GACzFC,EAAIJ,EAAcG,CAAC,EAAE,CAAC,IAAGH,EAAcG,CAAC,EAAE,CAAC,EAAIC,GAC/CA,EAAIJ,EAA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I,EAC5G,OAAIoB,EAAwB,SAAWU,EAA2B,OAAeV,EACrE,CAAC,GAAGA,EAAyB,GAAGC,EAAsC9B,EAAMC,EAAOoC,EAAkB1E,IAAuBwC,CAAS,CAAC,CACnJ,CACA,SAASiC,EAA2BpC,EAAMC,EAAOkC,EAAmBhC,EAAW,CAC9E,MAAMqC,EAAuCzC,EAAkCC,EAAMC,EAAOkC,EAAmBhC,CAAS,EACxH,GAAIqC,EAAqC,SAAW,EACpD,OAAOA,EAAqC,CAAC,CAC9C,CACA,SAASF,EAA2BtC,EAAMC,EAAOoC,EAAkBlC,EAAW,CAC7E,OAAOJ,EAAkCC,EAAMC,EAAOoC,EAAkBlC,CAAS,CAClF,CACA,SAASsC,EAAiBC,EAAe,CACxC,OAAOC,EAAoBD,EAAc,MAAOA,EAAc,OAAO,CACtE,CACA,SAASC,EAAoBC,EAAOC,EAAS,CAC5C,MAAO,GAAGD,CAAK,IAAIC,CAAO,EAC3B,CACA,SAASC,EAAQ9C,EAAM,CACtB,OAAO+C,EAA4B/C,EAAK,cAAc,YAAaA,EAAK,IAAKA,EAAK,MAAM,CACzF,CACA,SAAS+C,EAA4B7C,EAAaS,EAAKD,EAAQ,CAC9D,MAAO,GAAGR,CAAW,IAAIS,CAAG,IAAID,CAAM,EACvC","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index.cjs331.js");function r(e){return o(e,{format:"array"}).slice(0,3)}function t(e){const a=o(e,{format:"array"});return a[3]=255,a}function n(e){return r(e).map(a=>a/255)}function u(e){return t(e).map(a=>a/255)}exports.hexToFractionalOpaqueRgba=u;exports.hexToFractionalRgb=n;exports.hexToOpaqueRgba=t;exports.hexToRgb=r;
2
+ //# sourceMappingURL=index.cjs303.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs303.js","sources":["../../../node_modules/@allmaps/stdlib/dist/color.js"],"sourcesContent":["import hexRgb from 'hex-rgb';\nimport rgbHex from 'rgb-hex';\n/**\n * Convert RBG to HEX\n * @param rgb - RGB color array, e.g. [0, 51, 255]\n * @returns HEX string, e.g. '#0033ff'\n */\nexport function rgbToHex(color) {\n return '#' + rgbHex(...color);\n}\n/**\n * Convert RBGA to HEX\n * @param rgb - RGBA color array, e.g. [0, 51, 255, 255]\n * @returns HEX string, e.g. '#0033ffff'\n */\nexport function rgbaToHex(color) {\n return '#' + rgbHex(...color);\n}\n/**\n * Convert HEX to RGB\n * @param hex - HEX string, e.g. '#0033ff'\n * @returns RGB, e.g. [0, 51, 255]\n */\nexport function hexToRgb(hex) {\n return hexRgb(hex, { format: 'array' }).slice(0, 3);\n}\n/**\n * Convert HEX to RGB\n * @param hex - HEX string, e.g. '#0033ffff'\n * @returns RGB, e.g. [0, 51, 255, 255]\n */\nexport function hexToRgba(hex) {\n const color = hexRgb(hex, { format: 'array' });\n if (color.length < 4) {\n color[3] = 255;\n }\n return color;\n}\n/**\n * Convert HEX to RGB, and sets the transparency to 255\n * @param hex - HEX string, e.g. '#0033ffcc'\n * @returns RGB, e.g. [0, 51, 255, 255]\n */\nexport function hexToOpaqueRgba(hex) {\n const color = hexRgb(hex, { format: 'array' });\n color[3] = 255;\n return color;\n}\n/**\n * Convert hex to fractional RGB\n * @param hex - hex string, e.g. '#0033ff'\n * @returns Fractional RGB, e.g. [0, 0.2, 1]\n */\nexport function hexToFractionalRgb(hex) {\n return hexToRgb(hex).map((c) => c / 255);\n}\n/**\n * Convert hex to fractional RGBA\n * @param hex - hex string, e.g. '#0033ffff'\n * @returns Fractional RGB, e.g. [0, 0.2, 1, 1]\n */\nexport function hexToFractionalRgba(hex) {\n return hexToRgba(hex).map((c) => c / 255);\n}\n/**\n * Convert hex to fractional RGBA, and sets the transparency to 1\n * @param hex - hex string, e.g. '#0033ffcc'\n * @returns Fractional RGB, e.g. [0, 0.2, 1, 1]\n */\nexport function hexToFractionalOpaqueRgba(hex) {\n return hexToOpaqueRgba(hex).map((c) => c / 255);\n}\n"],"names":["hexToRgb","hex","hexRgb","hexToOpaqueRgba","color","hexToFractionalRgb","c","hexToFractionalOpaqueRgba"],"mappings":"qHAuBO,SAASA,EAASC,EAAK,CAC1B,OAAOC,EAAOD,EAAK,CAAE,OAAQ,QAAS,EAAE,MAAM,EAAG,CAAC,CACtD,CAkBO,SAASE,EAAgBF,EAAK,CACjC,MAAMG,EAAQF,EAAOD,EAAK,CAAE,OAAQ,QAAS,EAC7C,OAAAG,EAAM,CAAC,EAAI,IACJA,CACX,CAMO,SAASC,EAAmBJ,EAAK,CACpC,OAAOD,EAASC,CAAG,EAAE,IAAKK,GAAMA,EAAI,GAAG,CAC3C,CAcO,SAASC,EAA0BN,EAAK,CAC3C,OAAOE,EAAgBF,CAAG,EAAE,IAAKK,GAAMA,EAAI,GAAG,CAClD","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";const a=require("./index.cjs428.js"),l=require("./index.cjs429.js");var u="Expected a function";function c(t,n,e){var r=!0,i=!0;if(typeof t!="function")throw new TypeError(u);return l(e)&&(r="leading"in e?!!e.leading:r,i="trailing"in e?!!e.trailing:i),a(t,n,{leading:r,maxWait:n,trailing:i})}module.exports=c;
2
+ //# sourceMappingURL=index.cjs304.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs304.js","sources":["../../../node_modules/lodash-es/throttle.js"],"sourcesContent":["import debounce from './debounce.js';\nimport isObject from './isObject.js';\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\nfunction throttle(func, wait, options) {\n var leading = true,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (isObject(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n return debounce(func, wait, {\n 'leading': leading,\n 'maxWait': wait,\n 'trailing': trailing\n });\n}\n\nexport default throttle;\n"],"names":["FUNC_ERROR_TEXT","throttle","func","wait","options","leading","trailing","isObject","debounce"],"mappings":"iFAIA,IAAIA,EAAkB,sBA8CtB,SAASC,EAASC,EAAMC,EAAMC,EAAS,CACrC,IAAIC,EAAU,GACVC,EAAW,GAEf,GAAI,OAAOJ,GAAQ,WACjB,MAAM,IAAI,UAAUF,CAAe,EAErC,OAAIO,EAASH,CAAO,IAClBC,EAAU,YAAaD,EAAU,CAAC,CAACA,EAAQ,QAAUC,EACrDC,EAAW,aAAcF,EAAU,CAAC,CAACA,EAAQ,SAAWE,GAEnDE,EAASN,EAAMC,EAAM,CAC1B,QAAWE,EACX,QAAWF,EACX,SAAYG,CAAA,CACb,CACH","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("./index.cjs325.js"),r=require("./index.cjs213.js"),G=require("./index.cjs214.js"),l=require("./index.cjs298.js"),m=require("./index.cjs223.js"),c=require("./index.cjs215.js"),W=require("./index.cjs275.js"),n=require("./index.cjs217.js");require("./index.cjs224.js");const I=require("./index.cjs225.js"),k=require("./index.cjs270.js"),b=require("./index.cjs326.js"),y=require("./index.cjs327.js");require("./index.cjs227.js");const f=require("./index.cjs328.js");require("./index.cjs226.js");require("./index.cjs228.js");require("./index.cjs229.js");require("./index.cjs230.js");const w=require("./index.cjs322.js");require("./index.cjs232.js");var A={applyMask:!0},T={animate:!0,duration:300},j={stage:"pre"};function g(E){return E instanceof Error?E:new Error(String(E))}var P=class u extends EventTarget{DEFAULT_WARPED_MAP_LIST_OPTIONS;warpedMapsById;zIndices;imagesById;geoMaskRTree;geoFullMaskRTree;projectedGeoMaskRTree;projectedGeoFullMaskRTree;options;#s;constructor(e){super(),this.DEFAULT_WARPED_MAP_LIST_OPTIONS={createRTree:!0,rtreeUpdatedOptions:["gcps","resourceMask","transformationType","internalProjection","projection"],animatedOptions:["visible","applyMask","transformationType","internalProjection","distortionMeasure"],projection:I.webMercatorProjection,warpedMapFactory:G.createWarpedMapFactory()},this.warpedMapsById=new Map,this.zIndices=new Map,this.imagesById=new Map,this.#s=new Map,this.options=n.mergeOptions(this.DEFAULT_WARPED_MAP_LIST_OPTIONS,e),this.options.createRTree&&(this.geoMaskRTree=new h.RTree,this.geoFullMaskRTree=new h.RTree,this.projectedGeoMaskRTree=new h.RTree,this.projectedGeoFullMaskRTree=new h.RTree)}addGeoreferencedMap(e,t){const s=f.validateGeoreferencedMap(e);if(Array.isArray(s))throw new Error("Expected a single georeferenced map, but got an array of georeferenced maps. Please use addGeoreferencedMaps to add multiple maps at once.");const a=s,o=this.#i(a,t);return this.dispatchEvent(new r.WarpedMapEvent(r.WarpedMapEventType.CHANGED)),o}addGeoreferencedMaps(e,t){const s=f.validateGeoreferencedMap(e),a=Array.isArray(s)?s:[s],o=this.#n(a,t);return this.dispatchEvent(new r.WarpedMapEvent(r.WarpedMapEventType.CHANGED)),o}removeGeoreferencedMap(e){const t=f.validateGeoreferencedMap(e);if(Array.isArray(t))throw new Error("Expected a single georeferenced map, but got an array of georeferenced maps. Please use addGeoreferencedMaps to add multiple maps at once.");const s=t,a=this.#p(s);return this.dispatchEvent(new r.WarpedMapEvent(r.WarpedMapEventType.CHANGED)),a}removeGeoreferencedMaps(e){const t=f.validateGeoreferencedMap(e),s=Array.isArray(t)?t:[t],a=this.#c(s);return this.dispatchEvent(new r.WarpedMapEvent(r.WarpedMapEventType.CHANGED)),a}removeGeoreferencedMapById(e){const t=this.#d(e);return this.dispatchEvent(new r.WarpedMapEvent(r.WarpedMapEventType.CHANGED)),t}addGeoreferenceAnnotation(e,t){const s=y.parseAnnotation(e),a=this.#n(s,t);return this.dispatchEvent(new r.WarpedMapEvent(r.WarpedMapEventType.CHANGED)),a}removeGeoreferenceAnnotation(e){const t=y.parseAnnotation(e),s=this.#c(t);return this.dispatchEvent(new r.WarpedMapEvent(r.WarpedMapEventType.CHANGED)),s}updateWarpedMapsUsingFactory(){for(const e of this.warpedMapsById.values()){const t=this.options.warpedMapFactory(e.mapId,e.georeferencedMap,this.options,e.mapOptions);this.warpedMapsById.set(e.mapId,t),this.#I(t),this.dispatchEvent(new r.WarpedMapEvent(r.WarpedMapEventType.WARPEDMAPADDED,{mapIds:[e.mapId]}))}return this}addImageInfos(e){const t=[];for(const s of e){const a=w.Image.parse(s);this.imagesById.set(a.uri,a),t.push(a.uri)}return this.dispatchEvent(new r.WarpedMapEvent(r.WarpedMapEventType.IMAGEINFOSADDED)),t}getMapIds(e){return this.getWarpedMaps(e).map(t=>t.mapId)}getWarpedMaps(e){const t=n.mergeOptions(n.mergeOptions(A,{projection:this.options.projection}),e);let s;if(t.mapIds===void 0)if(t.geoPoint)t.applyMask?s=this.geoMaskRTree?.searchFromPoint(t.geoPoint)??this.#o(t.geoPoint,o=>o.geoMaskBbox,o=>o.geoMask):s=this.geoFullMaskRTree?.searchFromPoint(t.geoPoint)??this.#o(t.geoPoint,o=>o.geoFullMaskBbox,o=>o.geoFullMask);else if(t.geoBbox)t.applyMask?s=this.geoMaskRTree?.searchFromBbox(t.geoBbox)??this.#a(t.geoBbox,o=>o.geoMaskBbox):s=this.geoFullMaskRTree?.searchFromBbox(t.geoBbox)??this.#a(t.geoBbox,o=>o.geoFullMaskBbox);else if(t.projectedGeoPoint){const o=u.projectPointIfNeeded(this.options.projection,t.projection,t.projectedGeoPoint);t.applyMask?s=this.projectedGeoMaskRTree?.searchFromPoint(o)??this.#o(o,i=>i.projectedGeoMaskBbox,i=>i.projectedGeoMask):s=this.projectedGeoFullMaskRTree?.searchFromPoint(o)??this.#o(o,i=>i.projectedGeoFullMaskBbox,i=>i.projectedGeoFullMask)}else if(t.projectedGeoBbox){const o=u.projectBboxIfNeeded(this.options.projection,t.projection,t.projectedGeoBbox);t.applyMask?s=this.projectedGeoMaskRTree?.searchFromBbox(o)??this.#a(o,i=>i.projectedGeoMaskBbox):s=this.projectedGeoFullMaskRTree?.searchFromBbox(o)??this.#a(o,i=>i.projectedGeoFullMaskBbox)}else s=Array.from(this.warpedMapsById.keys());else s=t.mapIds;const a=[];if(s===void 0)return a;for(const o of s){const i=this.warpedMapsById.get(o);i&&(!t.onlyVisible||i.options.visible)&&a.push(i)}return a.sort((o,i)=>this.orderMapIdsByZIndex(o.mapId,i.mapId)),a}getWarpedMap(e){return this.warpedMapsById.get(e)}getMapsCenter(e){const t=this.getMapsBbox(e);if(t)return c.bboxToCenter(t)}getMapsBbox(e){const t=this.#h(e);if(t.length!==0)return c.computeBbox(t)}getMapsConvexHull(e){return c.convexHull(this.#h(e))}getMapZIndex(e){return this.zIndices.get(e)}getDefaultOptions(){return n.mergeOptions(this.DEFAULT_WARPED_MAP_LIST_OPTIONS,l.WebGL2WarpedMap.getDefaultOptions())}getMapDefaultOptions(e){return this.getWarpedMap(e)?.getDefaultAndGeoreferencedMapOptions()}getOptions(){return this.getListOptions()}getListOptions(){return this.options}getMapMapOptions(e){return this.getWarpedMaps({mapIds:[e]})[0]?.mapOptions}getMapOptions(e){return this.getWarpedMaps({mapIds:[e]})[0]?.options}setOptions(e){if(this.options=n.mergeOptions(this.options,e),e&&"projection"in e)for(const t of this.getWarpedMaps())this.#r(t)}setListOptions(e,t){this.#e(void 0,e,t)}setMapsOptions(e,t,s){if(Array.isArray(e))this.#e(a=>e.includes(a)?t:void 0,void 0,s);else{if(e===void 0)throw new Error("mapsOptionsCallbackFn is undefined");this.#e(e,void 0,t)}}setMapsAndListOptions(e,t,s,a){if(Array.isArray(e))this.#e(o=>e.includes(o)?t:void 0,s,a);else{if(e===void 0)throw new Error("mapsOptionsCallbackFn is undefined");this.#e(e,t,s)}}resetListOptions(e,t){e===void 0&&(e=Object.keys(l.WebGL2WarpedMap.getDefaultOptions())),this.setListOptions(n.optionKeysToUndefinedOptions(e),t)}resetMapsOptions(e,t,s){const a=l.WebGL2WarpedMap.getDefaultOptions(),o=Object.keys(a);if(Array.isArray(e))t===void 0&&(t=o),this.setMapsOptions(e,n.optionKeysToUndefinedOptions(t),s);else{if(e===void 0)throw new Error("mapsOptionKeysCallbackFn is undefined");const i=e;this.setMapsOptions(d=>{let p=i(d);return p===void 0&&(p=o),n.optionKeysToUndefinedOptions(p)},t)}}resetMapsAndListOptions(e,t,s,a){const o=l.WebGL2WarpedMap.getDefaultOptions(),i=Object.keys(o);if(Array.isArray(e))t===void 0&&(t=i),s===void 0&&(s=i),this.setMapsAndListOptions(e,n.optionKeysToUndefinedOptions(t),n.optionKeysToUndefinedOptions(s),a);else{if(e===void 0)throw new Error("mapsOptionKeysCallbackFn is undefined");const d=e;t===void 0&&(t=i),this.setMapsAndListOptions(p=>{let M=d(p);return M===void 0&&(M=i),n.optionKeysToUndefinedOptions(M)},n.optionKeysToUndefinedOptions(t),s)}}bringMapsToFront(e){let t=this.warpedMapsById.size;for(const s of e)this.zIndices.has(s)&&(this.zIndices.set(s,t),t++);this.#t(),this.dispatchEvent(new r.WarpedMapEvent(r.WarpedMapEventType.CHANGED))}sendMapsToBack(e){let t=-Array.from(e).length;for(const s of e)this.zIndices.has(s)&&(this.zIndices.set(s,t),t++);this.#t(),this.dispatchEvent(new r.WarpedMapEvent(r.WarpedMapEventType.CHANGED))}bringMapsForward(e){for(const[t,s]of this.zIndices.entries())this.zIndices.set(t,s*2);for(const t of e){const s=this.zIndices.get(t);s!==void 0&&this.zIndices.set(t,s+3)}this.#t(),this.dispatchEvent(new r.WarpedMapEvent(r.WarpedMapEventType.CHANGED))}sendMapsBackward(e){for(const[t,s]of this.zIndices.entries())this.zIndices.set(t,s*2);for(const t of e){const s=this.zIndices.get(t);s!==void 0&&this.zIndices.set(t,s-3)}this.#t(),this.dispatchEvent(new r.WarpedMapEvent(r.WarpedMapEventType.CHANGED))}orderMapIdsByZIndex(e,t){const s=this.getMapZIndex(e),a=this.getMapZIndex(t);return s!==void 0&&a!==void 0?s-a:0}clear(){this.warpedMapsById=new Map,this.zIndices=new Map,this.geoMaskRTree?.clear(),this.geoFullMaskRTree?.clear(),this.projectedGeoMaskRTree?.clear(),this.projectedGeoFullMaskRTree?.clear(),this.dispatchEvent(new r.WarpedMapEvent(r.WarpedMapEventType.CLEARED))}destroy(){for(const e of this.getWarpedMaps())this.#u(e),e.destroy();this.clear()}#i(e,t){const s=this.#M(e),a=this.options.warpedMapFactory(s,e,this.options,t);return this.warpedMapsById.set(s,a),this.zIndices.set(s,this.warpedMapsById.size-1),this.#r(a),this.#I(a),this.dispatchEvent(new r.WarpedMapEvent(r.WarpedMapEventType.WARPEDMAPADDED,{mapIds:[s]})),s}#n(e,t){const s=[];for(const a of e)try{const o=this.#i(a,t);s.push(o)}catch(o){s.push(g(o))}return s}#p(e){const t=this.#M(e);return this.#d(t)}#d(e){const t=this.warpedMapsById.get(e);if(t)this.warpedMapsById.delete(e),this.zIndices.delete(e),this.#l(t),this.dispatchEvent(new r.WarpedMapEvent(r.WarpedMapEventType.WARPEDMAPREMOVED,{mapIds:[e]})),this.#t(),this.dispatchEvent(new r.WarpedMapEvent(r.WarpedMapEventType.CHANGED)),t.destroy();else throw new Error(`No map found with ID ${e}`);return e}#c(e){const t=[];for(const s of e)try{const a=this.#p(s);t.push(a)}catch(a){t.push(g(a))}return t}#M(e){return e.id||b.generateChecksum(e)}#h(e){const t=this.getWarpedMaps(e),s=[];for(const o of t)s.push(...o.getGeoAppliedMask(e?.applyMask));const a=e?.projection;return a?u.projectPointsIfNeeded(I.lonLatProjection,a,s):s}#e(e,t,s){if(this.setOptions(t),this.warpedMapsById.size===0)return;const a=n.mergeOptions(n.mergeOptions(T,j),s);(a.animate&&a.stage=="animate"||!a.animate)&&this.dispatchEvent(new r.WarpedMapEvent(r.WarpedMapEventType.PREPARECHANGE,{mapIds:this.getMapIds()}));let o=[];const i=[];for(const d of this.getWarpedMaps()){let p={};const M=e?e(d.mapId):void 0;a.animate&&a.stage=="pre"&&(p=d.setMapAndListOptions(M,t,n.mergePartialOptions(a,{optionKeysToOmit:a.animatedOptions??this.options.animatedOptions}))),(a.animate&&a.stage=="animate"||!a.animate)&&(p=d.setMapAndListOptions(M,t,a));const v=Object.keys(p);v.length>0&&(o.push(...v),i.push(d.mapId)),this.options.rtreeUpdatedOptions.some(O=>O in p)&&this.#r(d)}o=Array.from(new Set(o)),(a.animate&&a.stage=="pre"||!a.animate)&&(o.length>0&&this.dispatchEvent(new r.WarpedMapEvent(r.WarpedMapEventType.IMMEDIATECHANGE,{mapIds:i,optionKeys:o})),a.animate&&a.stage=="pre"&&this.#e(e,t,n.mergePartialOptions(a,{stage:"animate"}))),a.animate&&a.stage=="animate"&&o.length>0&&this.dispatchEvent(new r.WarpedMapEvent(r.WarpedMapEventType.ANIMATEDCHANGE,{mapIds:i,optionKeys:o,animationOptions:a}))}#r(e){this.#l(e),this.geoMaskRTree&&this.geoMaskRTree.addItem(e.mapId,[e.geoMask]),this.geoFullMaskRTree&&this.geoFullMaskRTree.addItem(e.mapId,[e.geoFullMask]),this.projectedGeoMaskRTree&&this.projectedGeoMaskRTree.addItem(e.mapId,[e.projectedGeoMask]),this.projectedGeoFullMaskRTree&&this.projectedGeoFullMaskRTree.addItem(e.mapId,[e.projectedGeoFullMask])}#a(e,t){return Array.from(this.warpedMapsById.values()).filter(s=>c.doBboxesIntersect(e,t(s))).map(s=>s.mapId)}#o(e,t,s){return Array.from(this.warpedMapsById.values()).filter(a=>c.pointInBbox(e,t(a))&&k(e,W.closePolygon([s(a)]))).map(a=>a.mapId)}#l(e){this.geoMaskRTree&&this.geoMaskRTree.removeItem(e.mapId),this.geoFullMaskRTree&&this.geoFullMaskRTree.removeItem(e.mapId),this.projectedGeoMaskRTree&&this.projectedGeoMaskRTree.removeItem(e.mapId),this.projectedGeoFullMaskRTree&&this.projectedGeoFullMaskRTree.removeItem(e.mapId)}#t(){const e=[...this.zIndices.entries()].sort((s,a)=>s[1]-a[1]);let t=0;for(const s of e){const a=s[0];this.zIndices.set(a,t),t++}}#f(e){this.dispatchEvent(new r.WarpedMapEvent(r.WarpedMapEventType.IMAGELOADED,{mapIds:[e]}))}#I(e){const t=this.#f.bind(this,e.mapId);this.#s.set(e.mapId,t),e.addEventListener(r.WarpedMapEventType.IMAGELOADED,t)}#u(e){const t=this.#s.get(e.mapId);t&&(e.removeEventListener(r.WarpedMapEventType.IMAGELOADED,t),this.#s.delete(e.mapId))}static projectPointIfNeeded(e,t,s){return I.isEqualProjection(e,t)?s:m(e?.definition,t?.definition,s)}static projectPointsIfNeeded(e,t,s){return I.isEqualProjection(e,t)?s:s.map(a=>m(e?.definition,t?.definition,a))}static projectBboxIfNeeded(e,t,s){return c.computeBbox(this.projectPointsIfNeeded(e,t,c.bboxToLine(s)))}};exports.DEFAULT_ANIMATION_OPTIONS=T;exports.WarpedMapList=P;
2
+ //# sourceMappingURL=index.cjs305.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs305.js","sources":["../../../node_modules/@allmaps/render/dist/maps/WarpedMapList.js"],"sourcesContent":["import { RTree } from \"./RTree.js\";\nimport { WarpedMapEvent, WarpedMapEventType } from \"../shared/events.js\";\nimport { createWarpedMapFactory } from \"./WarpedMap.js\";\nimport { WebGL2WarpedMap } from \"./WebGL2WarpedMap.js\";\nimport proj4 from \"proj4\";\nimport { bboxToCenter, bboxToLine, closePolygon, computeBbox, convexHull, doBboxesIntersect, mergeOptions, mergePartialOptions, optionKeysToUndefinedOptions, pointInBbox } from \"@allmaps/stdlib\";\nimport { isEqualProjection, lonLatProjection, webMercatorProjection } from \"@allmaps/project\";\nimport inside from \"point-in-polygon-hao\";\nimport { generateChecksum } from \"@allmaps/id/sync\";\nimport { parseAnnotation, validateGeoreferencedMap } from \"@allmaps/annotation\";\nimport { Image } from \"@allmaps/iiif-parser\";\n//#region src/maps/WarpedMapList.ts\nvar DEFAULT_SELECTION_OPTIONS = { applyMask: true };\nvar DEFAULT_ANIMATION_OPTIONS = {\n\tanimate: true,\n\tduration: 300\n};\nvar DEFAULT_ANIMATION_INTERNAL_OPTIONS = { stage: \"pre\" };\nfunction ensureError(error) {\n\treturn error instanceof Error ? error : new Error(String(error));\n}\n/**\n* An ordered list of WarpedMaps. This class contains an optional RTree\n* for quickly looking up maps using their Bbox\n* @template W - The type of WarpedMap objects in this list\n*/\nvar WarpedMapList = class WarpedMapList extends EventTarget {\n\t/**\n\t* Maps in this list, indexed by their ID\n\t*/\n\tDEFAULT_WARPED_MAP_LIST_OPTIONS;\n\twarpedMapsById;\n\tzIndices;\n\timagesById;\n\tgeoMaskRTree;\n\tgeoFullMaskRTree;\n\tprojectedGeoMaskRTree;\n\tprojectedGeoFullMaskRTree;\n\toptions;\n\t#boundImageLoadedByMapId;\n\t/**\n\t* Creates an instance of a WarpedMapList\n\t*\n\t* @constructor\n\t* @param warpedMapFactory - Factory function for creating WarpedMap objects\n\t* @param options - Options of this list, which will be set on newly added maps as their list options\n\t*/\n\tconstructor(options) {\n\t\tsuper();\n\t\tthis.DEFAULT_WARPED_MAP_LIST_OPTIONS = {\n\t\t\tcreateRTree: true,\n\t\t\trtreeUpdatedOptions: [\n\t\t\t\t\"gcps\",\n\t\t\t\t\"resourceMask\",\n\t\t\t\t\"transformationType\",\n\t\t\t\t\"internalProjection\",\n\t\t\t\t\"projection\"\n\t\t\t],\n\t\t\tanimatedOptions: [\n\t\t\t\t\"visible\",\n\t\t\t\t\"applyMask\",\n\t\t\t\t\"transformationType\",\n\t\t\t\t\"internalProjection\",\n\t\t\t\t\"distortionMeasure\"\n\t\t\t],\n\t\t\tprojection: webMercatorProjection,\n\t\t\twarpedMapFactory: createWarpedMapFactory()\n\t\t};\n\t\tthis.warpedMapsById = /* @__PURE__ */ new Map();\n\t\tthis.zIndices = /* @__PURE__ */ new Map();\n\t\tthis.imagesById = /* @__PURE__ */ new Map();\n\t\tthis.#boundImageLoadedByMapId = /* @__PURE__ */ new Map();\n\t\tthis.options = mergeOptions(this.DEFAULT_WARPED_MAP_LIST_OPTIONS, options);\n\t\tif (this.options.createRTree) {\n\t\t\tthis.geoMaskRTree = new RTree();\n\t\t\tthis.geoFullMaskRTree = new RTree();\n\t\t\tthis.projectedGeoMaskRTree = new RTree();\n\t\t\tthis.projectedGeoFullMaskRTree = new RTree();\n\t\t}\n\t}\n\t/**\n\t* Adds a georeferenced map to this list\n\t*\n\t* @param georeferencedMap - Georeferenced Map\n\t* @param mapOptions - Map options\n\t* @returns Map ID of the map that was added\n\t*/\n\taddGeoreferencedMap(georeferencedMap, mapOptions) {\n\t\tconst validatedGeoreferencedMapOrMaps = validateGeoreferencedMap(georeferencedMap);\n\t\tif (Array.isArray(validatedGeoreferencedMapOrMaps)) throw new Error(\"Expected a single georeferenced map, but got an array of georeferenced maps. Please use addGeoreferencedMaps to add multiple maps at once.\");\n\t\tconst validatedGeoreferencedMap = validatedGeoreferencedMapOrMaps;\n\t\tconst results = this.#addGeoreferencedMapInternal(validatedGeoreferencedMap, mapOptions);\n\t\tthis.dispatchEvent(new WarpedMapEvent(WarpedMapEventType.CHANGED));\n\t\treturn results;\n\t}\n\taddGeoreferencedMaps(georeferencedMaps, mapOptions) {\n\t\tconst validatedGeoreferencedMapOrMaps = validateGeoreferencedMap(georeferencedMaps);\n\t\tconst validatedGeoreferencedMaps = Array.isArray(validatedGeoreferencedMapOrMaps) ? validatedGeoreferencedMapOrMaps : [validatedGeoreferencedMapOrMaps];\n\t\tconst results = this.#addGeoreferencedMapsInternal(validatedGeoreferencedMaps, mapOptions);\n\t\tthis.dispatchEvent(new WarpedMapEvent(WarpedMapEventType.CHANGED));\n\t\treturn results;\n\t}\n\t/**\n\t* Removes a georeferenced map from this list\n\t*\n\t* @param georeferencedMap\n\t* @returns Map ID of the removed map, or an error\n\t*/\n\tremoveGeoreferencedMap(georeferencedMap) {\n\t\tconst validatedGeoreferencedMapOrMaps = validateGeoreferencedMap(georeferencedMap);\n\t\tif (Array.isArray(validatedGeoreferencedMapOrMaps)) throw new Error(\"Expected a single georeferenced map, but got an array of georeferenced maps. Please use addGeoreferencedMaps to add multiple maps at once.\");\n\t\tconst validatedGeoreferencedMap = validatedGeoreferencedMapOrMaps;\n\t\tconst results = this.#removeGeoreferencedMapInternal(validatedGeoreferencedMap);\n\t\tthis.dispatchEvent(new WarpedMapEvent(WarpedMapEventType.CHANGED));\n\t\treturn results;\n\t}\n\tremoveGeoreferencedMaps(georeferencedMaps) {\n\t\tconst validatedGeoreferencedMapOrMaps = validateGeoreferencedMap(georeferencedMaps);\n\t\tconst validatedGeoreferencedMaps = Array.isArray(validatedGeoreferencedMapOrMaps) ? validatedGeoreferencedMapOrMaps : [validatedGeoreferencedMapOrMaps];\n\t\tconst results = this.#removeGeoreferencedMapsInternal(validatedGeoreferencedMaps);\n\t\tthis.dispatchEvent(new WarpedMapEvent(WarpedMapEventType.CHANGED));\n\t\treturn results;\n\t}\n\t/**\n\t* Removes a georeferenced map from the list by its ID\n\t*\n\t* @param mapId - Map ID\n\t* @returns Map ID of the removed map, or an error\n\t*/\n\tremoveGeoreferencedMapById(mapId) {\n\t\tconst result = this.#removeGeoreferencedMapByIdInternal(mapId);\n\t\tthis.dispatchEvent(new WarpedMapEvent(WarpedMapEventType.CHANGED));\n\t\treturn result;\n\t}\n\t/**\n\t* Parses an annotation and adds its georeferenced map to this list\n\t*\n\t* @param annotation - Annotation\n\t* @param mapOptions - Map options\n\t* @returns Map IDs of the maps that were added, or an error per map\n\t*/\n\taddGeoreferenceAnnotation(annotation, mapOptions) {\n\t\tconst maps = parseAnnotation(annotation);\n\t\tconst results = this.#addGeoreferencedMapsInternal(maps, mapOptions);\n\t\tthis.dispatchEvent(new WarpedMapEvent(WarpedMapEventType.CHANGED));\n\t\treturn results;\n\t}\n\t/**\n\t* Parses an annotation and removes its georeferenced map from this list\n\t*\n\t* @param annotation\n\t* @returns Map IDs of the maps that were removed, or an error per map\n\t*/\n\tremoveGeoreferenceAnnotation(annotation) {\n\t\tconst maps = parseAnnotation(annotation);\n\t\tconst results = this.#removeGeoreferencedMapsInternal(maps);\n\t\tthis.dispatchEvent(new WarpedMapEvent(WarpedMapEventType.CHANGED));\n\t\treturn results;\n\t}\n\t/**\n\t* Update the maps in the list using the warpedMapFactory\n\t*\n\t* This function is used when creating a WarpedMapList from scratch\n\t* and later including it in a specific renderer (e.g. a WebGL2Renderer)\n\t* which has a specific warpedMapFactory (e.g. including the WebGL context)\n\t* which could not be applied in the initial WarpedMapList.\n\t* This function recreates the WarpedMaps using the factory.\n\t*\n\t* It is import to do this after the event listeners on the warpedmaplist\n\t* are added to the renderer, so the WARPEDMAPADDED event is passed.\n\t*/\n\tupdateWarpedMapsUsingFactory() {\n\t\tfor (const warpedMap of this.warpedMapsById.values()) {\n\t\t\tconst updatedWarpedMap = this.options.warpedMapFactory(warpedMap.mapId, warpedMap.georeferencedMap, this.options, warpedMap.mapOptions);\n\t\t\tthis.warpedMapsById.set(warpedMap.mapId, updatedWarpedMap);\n\t\t\tthis.#addEventListenersToWarpedMap(updatedWarpedMap);\n\t\t\tthis.dispatchEvent(new WarpedMapEvent(WarpedMapEventType.WARPEDMAPADDED, { mapIds: [warpedMap.mapId] }));\n\t\t}\n\t\treturn this;\n\t}\n\t/**\n\t* Adds image informations, parses them to images and adds them to the image cache\n\t*\n\t* @param imageInfos - Image informations\n\t* @returns Image IDs of the image informations that were added\n\t*/\n\taddImageInfos(imageInfos) {\n\t\tconst result = [];\n\t\tfor (const imageInfo of imageInfos) {\n\t\t\tconst image = Image.parse(imageInfo);\n\t\t\tthis.imagesById.set(image.uri, image);\n\t\t\tresult.push(image.uri);\n\t\t}\n\t\tthis.dispatchEvent(new WarpedMapEvent(WarpedMapEventType.IMAGEINFOSADDED));\n\t\treturn result;\n\t}\n\t/**\n\t* Get mapIds for selected maps\n\t*\n\t* The options allow a.o. to:\n\t* - filter for visible maps\n\t* - filter for specific mapIds\n\t* - filter for maps that overlap with a given point. Use geoPoint or projectedGeoPoint. Optionally specify projection for projectedGeoPoint. Optionally specify whether mask should be applied when computing overlap using applyMask.\n\t* - filter for maps whose bbox overlap with the specified bbox. Use geoBbox or projectedGeoBbox. Optionally specify projection for projectedGeoBbox. Optionally specify whether mask should be applied when computing overlap using applyMask.\n\t*\n\t* @param partialOptions - Selection, mask and projection options, defaults to all visible maps, applied mask and current projection\n\t* @returns mapIds\n\t*/\n\tgetMapIds(partialOptions) {\n\t\treturn this.getWarpedMaps(partialOptions).map((warpedMap) => warpedMap.mapId);\n\t}\n\t/**\n\t* Get the WarpedMap instances for selected maps\n\t*\n\t* The options allow a.o. to:\n\t* - filter for visible maps\n\t* - filter for specific mapIds\n\t* - filter for maps that overlap with a given point. Use geoPoint or projectedGeoPoint. Optionally specify projection for projectedGeoPoint. Optionally specify whether mask should be applied when computing overlap using applyMask.\n\t* - filter for maps whose bbox overlap with the specified bbox. Use geoBbox or projectedGeoBbox. Optionally specify projection for projectedGeoBbox. Optionally specify whether mask should be applied when computing overlap using applyMask.\n\t*\n\t* @param partialOptions - Selection, mask and projection options, defaults to all visible maps, applied mask and current projection\n\t* @returns WarpedMap instances\n\t*/\n\tgetWarpedMaps(partialOptions) {\n\t\tconst options = mergeOptions(mergeOptions(DEFAULT_SELECTION_OPTIONS, { projection: this.options.projection }), partialOptions);\n\t\tlet mapIds;\n\t\tif (options.mapIds === void 0) if (options.geoPoint) if (options.applyMask) mapIds = this.geoMaskRTree?.searchFromPoint(options.geoPoint) ?? this.#getMapIdsFromPoint(options.geoPoint, (warpedMap) => warpedMap.geoMaskBbox, (warpedMap) => warpedMap.geoMask);\n\t\telse mapIds = this.geoFullMaskRTree?.searchFromPoint(options.geoPoint) ?? this.#getMapIdsFromPoint(options.geoPoint, (warpedMap) => warpedMap.geoFullMaskBbox, (warpedMap) => warpedMap.geoFullMask);\n\t\telse if (options.geoBbox) if (options.applyMask) mapIds = this.geoMaskRTree?.searchFromBbox(options.geoBbox) ?? this.#getMapIdsFromBbox(options.geoBbox, (warpedMap) => warpedMap.geoMaskBbox);\n\t\telse mapIds = this.geoFullMaskRTree?.searchFromBbox(options.geoBbox) ?? this.#getMapIdsFromBbox(options.geoBbox, (warpedMap) => warpedMap.geoFullMaskBbox);\n\t\telse if (options.projectedGeoPoint) {\n\t\t\tconst projectedGeoPoint = WarpedMapList.projectPointIfNeeded(this.options.projection, options.projection, options.projectedGeoPoint);\n\t\t\tif (options.applyMask) mapIds = this.projectedGeoMaskRTree?.searchFromPoint(projectedGeoPoint) ?? this.#getMapIdsFromPoint(projectedGeoPoint, (warpedMap) => warpedMap.projectedGeoMaskBbox, (warpedMap) => warpedMap.projectedGeoMask);\n\t\t\telse mapIds = this.projectedGeoFullMaskRTree?.searchFromPoint(projectedGeoPoint) ?? this.#getMapIdsFromPoint(projectedGeoPoint, (warpedMap) => warpedMap.projectedGeoFullMaskBbox, (warpedMap) => warpedMap.projectedGeoFullMask);\n\t\t} else if (options.projectedGeoBbox) {\n\t\t\tconst projectedGeoBbox = WarpedMapList.projectBboxIfNeeded(this.options.projection, options.projection, options.projectedGeoBbox);\n\t\t\tif (options.applyMask) mapIds = this.projectedGeoMaskRTree?.searchFromBbox(projectedGeoBbox) ?? this.#getMapIdsFromBbox(projectedGeoBbox, (warpedMap) => warpedMap.projectedGeoMaskBbox);\n\t\t\telse mapIds = this.projectedGeoFullMaskRTree?.searchFromBbox(projectedGeoBbox) ?? this.#getMapIdsFromBbox(projectedGeoBbox, (warpedMap) => warpedMap.projectedGeoFullMaskBbox);\n\t\t} else mapIds = Array.from(this.warpedMapsById.keys());\n\t\telse mapIds = options.mapIds;\n\t\tconst warpedMaps = [];\n\t\tif (mapIds === void 0) return warpedMaps;\n\t\tfor (const mapId of mapIds) {\n\t\t\tconst warpedMap = this.warpedMapsById.get(mapId);\n\t\t\tif (warpedMap && (options.onlyVisible ? warpedMap.options.visible : true)) warpedMaps.push(warpedMap);\n\t\t}\n\t\twarpedMaps.sort((map0, map1) => this.orderMapIdsByZIndex(map0.mapId, map1.mapId));\n\t\treturn warpedMaps;\n\t}\n\t/**\n\t* Get the WarpedMap instance for a map\n\t*\n\t* @param mapId - Map ID of the requested WarpedMap instance\n\t* @returns WarpedMap instance, or undefined\n\t*/\n\tgetWarpedMap(mapId) {\n\t\treturn this.warpedMapsById.get(mapId);\n\t}\n\t/**\n\t* Get the center of the bounding box of the maps in this list\n\t*\n\t* The result is returned in lon-lat `EPSG:4326` by default.\n\t*\n\t* @param options - Selection, mask and projection options, defaults to all visible maps, applied mask and current projection\n\t* @returns The center of the bbox of all selected maps, in the chosen projection, or undefined if there were no maps matching the selection.\n\t*/\n\tgetMapsCenter(options) {\n\t\tconst bbox = this.getMapsBbox(options);\n\t\tif (bbox) return bboxToCenter(bbox);\n\t}\n\t/**\n\t* Get the bounding box of the maps in this list\n\t*\n\t* The result is returned in lon-lat `EPSG:4326` by default.\n\t*\n\t* @param options - Selection, mask and projection options, defaults to all visible maps, applied mask and current projection\n\t* @returns The bbox of all selected maps, in the chosen projection, or undefined if there were no maps matching the selection.\n\t*/\n\tgetMapsBbox(options) {\n\t\tconst projectedGeoMaskPoints = this.#getProjectedGeoMaskPoints(options);\n\t\tif (projectedGeoMaskPoints.length === 0) return;\n\t\treturn computeBbox(projectedGeoMaskPoints);\n\t}\n\t/**\n\t* Get the convex hull of the maps in this list\n\t*\n\t* The result is returned in lon-lat `EPSG:4326` by default.\n\t*\n\t* @param options - Selection, mask and projection options, defaults to all visible maps, applied mask and current projection\n\t* @returns The convex hull of all selected maps, in the chosen projection, or undefined if there were no maps matching the selection.\n\t*/\n\tgetMapsConvexHull(options) {\n\t\treturn convexHull(this.#getProjectedGeoMaskPoints(options));\n\t}\n\t/**\n\t* Get the z-index of a map\n\t*\n\t* @param mapId - Map ID for which to get the z-index\n\t*/\n\tgetMapZIndex(mapId) {\n\t\treturn this.zIndices.get(mapId);\n\t}\n\t/**\n\t* Get the default options of the list\n\t*/\n\tgetDefaultOptions() {\n\t\treturn mergeOptions(this.DEFAULT_WARPED_MAP_LIST_OPTIONS, WebGL2WarpedMap.getDefaultOptions());\n\t}\n\t/**\n\t* Get the default options of a map\n\t*\n\t* These come from the default option settings for WebGL2WarpedMaps and the map's georeferenced map proporties\n\t*\n\t* @param mapId - Map ID for which the options apply\n\t*/\n\tgetMapDefaultOptions(mapId) {\n\t\treturn this.getWarpedMap(mapId)?.getDefaultAndGeoreferencedMapOptions();\n\t}\n\t/**\n\t* Get the options of this list\n\t*/\n\tgetOptions() {\n\t\treturn this.getListOptions();\n\t}\n\t/**\n\t* Get the options of this list\n\t*/\n\tgetListOptions() {\n\t\treturn this.options;\n\t}\n\t/**\n\t* Get the map-specific options of a map\n\t*\n\t* @param mapId - Map ID for which the options apply\n\t*/\n\tgetMapMapOptions(mapId) {\n\t\treturn this.getWarpedMaps({ mapIds: [mapId] })[0]?.mapOptions;\n\t}\n\t/**\n\t* Get the options of a map\n\t*\n\t* These options are the result of merging the default, georeferenced map,\n\t* layer and map-specific options of that map.\n\t*\n\t* @param mapId - Map ID for which the options apply\n\t*/\n\tgetMapOptions(mapId) {\n\t\treturn this.getWarpedMaps({ mapIds: [mapId] })[0]?.options;\n\t}\n\t/**\n\t* Set the options\n\t*\n\t* Note: Map-specific options set here will be passed to newly added maps.\n\t*\n\t* @param listOptions - List Options\n\t*/\n\tsetOptions(listOptions) {\n\t\tthis.options = mergeOptions(this.options, listOptions);\n\t\tif (listOptions && \"projection\" in listOptions) for (const warpedMap of this.getWarpedMaps()) this.#addToOrUpdateRtree(warpedMap);\n\t}\n\t/**\n\t* Set the options of this list\n\t*\n\t* Note: Map-specific options set here will be passed to newly added maps.\n\t*\n\t* @param listOptions - List Options\n\t* @param animationOptions - Animation options\n\t*/\n\tsetListOptions(listOptions, animationOptions) {\n\t\tthis.#setMapsAndListOptionsInternal(void 0, listOptions, animationOptions);\n\t}\n\tsetMapsOptions(firstArgument, secondArgument, thirdArgument) {\n\t\tif (Array.isArray(firstArgument)) this.#setMapsAndListOptionsInternal((mapId) => firstArgument.includes(mapId) ? secondArgument : void 0, void 0, thirdArgument);\n\t\telse {\n\t\t\tif (firstArgument === void 0) throw new Error(\"mapsOptionsCallbackFn is undefined\");\n\t\t\tthis.#setMapsAndListOptionsInternal(firstArgument, void 0, secondArgument);\n\t\t}\n\t}\n\tsetMapsAndListOptions(firstArgument, secondArgument, thirdArgument, fourthArgument) {\n\t\tif (Array.isArray(firstArgument)) this.#setMapsAndListOptionsInternal((mapId) => firstArgument.includes(mapId) ? secondArgument : void 0, thirdArgument, fourthArgument);\n\t\telse {\n\t\t\tif (firstArgument === void 0) throw new Error(\"mapsOptionsCallbackFn is undefined\");\n\t\t\tthis.#setMapsAndListOptionsInternal(firstArgument, secondArgument, thirdArgument);\n\t\t}\n\t}\n\t/**\n\t* Reset the list options\n\t*\n\t* Undefined option keys reset all options\n\t*\n\t* @param listOptionKeys - Keys of the list options to reset\n\t* @param animationOptions - Animation options\n\t*/\n\tresetListOptions(listOptionKeys, animationOptions) {\n\t\tif (listOptionKeys === void 0) listOptionKeys = Object.keys(WebGL2WarpedMap.getDefaultOptions());\n\t\tthis.setListOptions(optionKeysToUndefinedOptions(listOptionKeys), animationOptions);\n\t}\n\tresetMapsOptions(firstArgument, secondArgument, thirdArgument) {\n\t\tconst defaultWebGL2WarpedMapOptions = WebGL2WarpedMap.getDefaultOptions();\n\t\tconst defaultWebGL2WarpedMapOptionKeys = Object.keys(defaultWebGL2WarpedMapOptions);\n\t\tif (Array.isArray(firstArgument)) {\n\t\t\tif (secondArgument === void 0) secondArgument = defaultWebGL2WarpedMapOptionKeys;\n\t\t\tthis.setMapsOptions(firstArgument, optionKeysToUndefinedOptions(secondArgument), thirdArgument);\n\t\t} else {\n\t\t\tif (firstArgument === void 0) throw new Error(\"mapsOptionKeysCallbackFn is undefined\");\n\t\t\tconst mapOptionKeysCallbackFn = firstArgument;\n\t\t\tthis.setMapsOptions((mapId) => {\n\t\t\t\tlet mapOptionKeys = mapOptionKeysCallbackFn(mapId);\n\t\t\t\tif (mapOptionKeys === void 0) mapOptionKeys = defaultWebGL2WarpedMapOptionKeys;\n\t\t\t\treturn optionKeysToUndefinedOptions(mapOptionKeys);\n\t\t\t}, secondArgument);\n\t\t}\n\t}\n\tresetMapsAndListOptions(firstArgument, secondArgument, thirdArgument, fourthArgument) {\n\t\tconst defaultWebGL2WarpedMapOptions = WebGL2WarpedMap.getDefaultOptions();\n\t\tconst defaultWebGL2WarpedMapOptionKeys = Object.keys(defaultWebGL2WarpedMapOptions);\n\t\tif (Array.isArray(firstArgument)) {\n\t\t\tif (secondArgument === void 0) secondArgument = defaultWebGL2WarpedMapOptionKeys;\n\t\t\tif (thirdArgument === void 0) thirdArgument = defaultWebGL2WarpedMapOptionKeys;\n\t\t\tthis.setMapsAndListOptions(firstArgument, optionKeysToUndefinedOptions(secondArgument), optionKeysToUndefinedOptions(thirdArgument), fourthArgument);\n\t\t} else {\n\t\t\tif (firstArgument === void 0) throw new Error(\"mapsOptionKeysCallbackFn is undefined\");\n\t\t\tconst mapOptionKeysCallbackFn = firstArgument;\n\t\t\tif (secondArgument === void 0) secondArgument = defaultWebGL2WarpedMapOptionKeys;\n\t\t\tthis.setMapsAndListOptions((mapId) => {\n\t\t\t\tlet mapOptionKeys = mapOptionKeysCallbackFn(mapId);\n\t\t\t\tif (mapOptionKeys === void 0) mapOptionKeys = defaultWebGL2WarpedMapOptionKeys;\n\t\t\t\treturn optionKeysToUndefinedOptions(mapOptionKeys);\n\t\t\t}, optionKeysToUndefinedOptions(secondArgument), thirdArgument);\n\t\t}\n\t}\n\t/**\n\t* Change the z-index of the specified maps to bring them to front\n\t*\n\t* @param mapIds - Map IDs\n\t*/\n\tbringMapsToFront(mapIds) {\n\t\tlet newZIndex = this.warpedMapsById.size;\n\t\tfor (const mapId of mapIds) if (this.zIndices.has(mapId)) {\n\t\t\tthis.zIndices.set(mapId, newZIndex);\n\t\t\tnewZIndex++;\n\t\t}\n\t\tthis.#removeZIndexHoles();\n\t\tthis.dispatchEvent(new WarpedMapEvent(WarpedMapEventType.CHANGED));\n\t}\n\t/**\n\t* Change the z-index of the specified maps to send them to back\n\t*\n\t* @param mapIds - Map IDs\n\t*/\n\tsendMapsToBack(mapIds) {\n\t\tlet newZIndex = -Array.from(mapIds).length;\n\t\tfor (const mapId of mapIds) if (this.zIndices.has(mapId)) {\n\t\t\tthis.zIndices.set(mapId, newZIndex);\n\t\t\tnewZIndex++;\n\t\t}\n\t\tthis.#removeZIndexHoles();\n\t\tthis.dispatchEvent(new WarpedMapEvent(WarpedMapEventType.CHANGED));\n\t}\n\t/**\n\t* Change the z-index of the specified maps to bring them forward\n\t*\n\t* @param mapIds - Map IDs\n\t*/\n\tbringMapsForward(mapIds) {\n\t\tfor (const [mapId, zIndex] of this.zIndices.entries()) this.zIndices.set(mapId, zIndex * 2);\n\t\tfor (const mapId of mapIds) {\n\t\t\tconst zIndex = this.zIndices.get(mapId);\n\t\t\tif (zIndex !== void 0) this.zIndices.set(mapId, zIndex + 3);\n\t\t}\n\t\tthis.#removeZIndexHoles();\n\t\tthis.dispatchEvent(new WarpedMapEvent(WarpedMapEventType.CHANGED));\n\t}\n\t/**\n\t* Change the zIndex of the specified maps to send them backward\n\t*\n\t* @param mapIds - Map IDs\n\t*/\n\tsendMapsBackward(mapIds) {\n\t\tfor (const [mapId, zIndex] of this.zIndices.entries()) this.zIndices.set(mapId, zIndex * 2);\n\t\tfor (const mapId of mapIds) {\n\t\t\tconst zIndex = this.zIndices.get(mapId);\n\t\t\tif (zIndex !== void 0) this.zIndices.set(mapId, zIndex - 3);\n\t\t}\n\t\tthis.#removeZIndexHoles();\n\t\tthis.dispatchEvent(new WarpedMapEvent(WarpedMapEventType.CHANGED));\n\t}\n\t/**\n\t* Order mapIds\n\t*\n\t* Use this as anonymous sort function in Array.prototype.sort()\n\t*/\n\torderMapIdsByZIndex(mapId0, mapId1) {\n\t\tconst zIndex0 = this.getMapZIndex(mapId0);\n\t\tconst zIndex1 = this.getMapZIndex(mapId1);\n\t\tif (zIndex0 !== void 0 && zIndex1 !== void 0) return zIndex0 - zIndex1;\n\t\treturn 0;\n\t}\n\tclear() {\n\t\tthis.warpedMapsById = /* @__PURE__ */ new Map();\n\t\tthis.zIndices = /* @__PURE__ */ new Map();\n\t\tthis.geoMaskRTree?.clear();\n\t\tthis.geoFullMaskRTree?.clear();\n\t\tthis.projectedGeoMaskRTree?.clear();\n\t\tthis.projectedGeoFullMaskRTree?.clear();\n\t\tthis.dispatchEvent(new WarpedMapEvent(WarpedMapEventType.CLEARED));\n\t}\n\tdestroy() {\n\t\tfor (const warpedMap of this.getWarpedMaps()) {\n\t\t\tthis.#removeEventListenersFromWarpedMap(warpedMap);\n\t\t\twarpedMap.destroy();\n\t\t}\n\t\tthis.clear();\n\t}\n\t#addGeoreferencedMapInternal(georeferencedMap, mapOptions) {\n\t\tconst mapId = this.#getOrComputeMapId(georeferencedMap);\n\t\tconst warpedMap = this.options.warpedMapFactory(mapId, georeferencedMap, this.options, mapOptions);\n\t\tthis.warpedMapsById.set(mapId, warpedMap);\n\t\tthis.zIndices.set(mapId, this.warpedMapsById.size - 1);\n\t\tthis.#addToOrUpdateRtree(warpedMap);\n\t\tthis.#addEventListenersToWarpedMap(warpedMap);\n\t\tthis.dispatchEvent(new WarpedMapEvent(WarpedMapEventType.WARPEDMAPADDED, { mapIds: [mapId] }));\n\t\treturn mapId;\n\t}\n\t#addGeoreferencedMapsInternal(georeferencedMaps, mapOptions) {\n\t\tconst results = [];\n\t\tfor (const georeferencedMap of georeferencedMaps) try {\n\t\t\tconst mapId = this.#addGeoreferencedMapInternal(georeferencedMap, mapOptions);\n\t\t\tresults.push(mapId);\n\t\t} catch (error) {\n\t\t\tresults.push(ensureError(error));\n\t\t}\n\t\treturn results;\n\t}\n\t#removeGeoreferencedMapInternal(georeferencedMap) {\n\t\tconst mapId = this.#getOrComputeMapId(georeferencedMap);\n\t\treturn this.#removeGeoreferencedMapByIdInternal(mapId);\n\t}\n\t#removeGeoreferencedMapByIdInternal(mapId) {\n\t\tconst warpedMap = this.warpedMapsById.get(mapId);\n\t\tif (warpedMap) {\n\t\t\tthis.warpedMapsById.delete(mapId);\n\t\t\tthis.zIndices.delete(mapId);\n\t\t\tthis.#removeFromRtree(warpedMap);\n\t\t\tthis.dispatchEvent(new WarpedMapEvent(WarpedMapEventType.WARPEDMAPREMOVED, { mapIds: [mapId] }));\n\t\t\tthis.#removeZIndexHoles();\n\t\t\tthis.dispatchEvent(new WarpedMapEvent(WarpedMapEventType.CHANGED));\n\t\t\twarpedMap.destroy();\n\t\t} else throw new Error(`No map found with ID ${mapId}`);\n\t\treturn mapId;\n\t}\n\t#removeGeoreferencedMapsInternal(georeferencedMaps) {\n\t\tconst results = [];\n\t\tfor (const georeferencedMap of georeferencedMaps) try {\n\t\t\tconst mapId = this.#removeGeoreferencedMapInternal(georeferencedMap);\n\t\t\tresults.push(mapId);\n\t\t} catch (error) {\n\t\t\tresults.push(ensureError(error));\n\t\t}\n\t\treturn results;\n\t}\n\t#getOrComputeMapId(georeferencedMap) {\n\t\treturn georeferencedMap.id || generateChecksum(georeferencedMap);\n\t}\n\t#getProjectedGeoMaskPoints(options) {\n\t\tconst warpedMaps = this.getWarpedMaps(options);\n\t\tconst geoMaskPoints = [];\n\t\tfor (const warpedMap of warpedMaps) geoMaskPoints.push(...warpedMap.getGeoAppliedMask(options?.applyMask));\n\t\tconst projection = options?.projection;\n\t\treturn projection ? WarpedMapList.projectPointsIfNeeded(lonLatProjection, projection, geoMaskPoints) : geoMaskPoints;\n\t}\n\t/**\n\t* Internal set map options\n\t*/\n\t#setMapsAndListOptionsInternal(mapsOptionsCallbackFn, listOptions, partialAnimationOptions) {\n\t\tthis.setOptions(listOptions);\n\t\tif (this.warpedMapsById.size === 0) return;\n\t\tconst animationOptions = mergeOptions(mergeOptions(DEFAULT_ANIMATION_OPTIONS, DEFAULT_ANIMATION_INTERNAL_OPTIONS), partialAnimationOptions);\n\t\tif (animationOptions.animate && animationOptions.stage == \"animate\" || !animationOptions.animate) this.dispatchEvent(new WarpedMapEvent(WarpedMapEventType.PREPARECHANGE, { mapIds: this.getMapIds() }));\n\t\tlet changedOptionKeys = [];\n\t\tconst changedMapIds = [];\n\t\tfor (const warpedMap of this.getWarpedMaps()) {\n\t\t\tlet warpedMapChangedOptions = {};\n\t\t\tconst mapOptions = mapsOptionsCallbackFn ? mapsOptionsCallbackFn(warpedMap.mapId) : void 0;\n\t\t\tif (animationOptions.animate && animationOptions.stage == \"pre\") warpedMapChangedOptions = warpedMap.setMapAndListOptions(mapOptions, listOptions, mergePartialOptions(animationOptions, { optionKeysToOmit: animationOptions.animatedOptions ?? this.options.animatedOptions }));\n\t\t\tif (animationOptions.animate && animationOptions.stage == \"animate\" || !animationOptions.animate) warpedMapChangedOptions = warpedMap.setMapAndListOptions(mapOptions, listOptions, animationOptions);\n\t\t\tconst warpedMapChangedOptionKeys = Object.keys(warpedMapChangedOptions);\n\t\t\tif (warpedMapChangedOptionKeys.length > 0) {\n\t\t\t\tchangedOptionKeys.push(...warpedMapChangedOptionKeys);\n\t\t\t\tchangedMapIds.push(warpedMap.mapId);\n\t\t\t}\n\t\t\tif (this.options.rtreeUpdatedOptions.some((option) => option in warpedMapChangedOptions)) this.#addToOrUpdateRtree(warpedMap);\n\t\t}\n\t\tchangedOptionKeys = Array.from(new Set(changedOptionKeys));\n\t\tif (animationOptions.animate && animationOptions.stage == \"pre\" || !animationOptions.animate) {\n\t\t\tif (changedOptionKeys.length > 0) this.dispatchEvent(new WarpedMapEvent(WarpedMapEventType.IMMEDIATECHANGE, {\n\t\t\t\tmapIds: changedMapIds,\n\t\t\t\toptionKeys: changedOptionKeys\n\t\t\t}));\n\t\t\tif (animationOptions.animate && animationOptions.stage == \"pre\") this.#setMapsAndListOptionsInternal(mapsOptionsCallbackFn, listOptions, mergePartialOptions(animationOptions, { stage: \"animate\" }));\n\t\t}\n\t\tif (animationOptions.animate && animationOptions.stage == \"animate\") {\n\t\t\tif (changedOptionKeys.length > 0) this.dispatchEvent(new WarpedMapEvent(WarpedMapEventType.ANIMATEDCHANGE, {\n\t\t\t\tmapIds: changedMapIds,\n\t\t\t\toptionKeys: changedOptionKeys,\n\t\t\t\tanimationOptions\n\t\t\t}));\n\t\t}\n\t}\n\t#addToOrUpdateRtree(warpedMap) {\n\t\tthis.#removeFromRtree(warpedMap);\n\t\tif (this.geoMaskRTree) this.geoMaskRTree.addItem(warpedMap.mapId, [warpedMap.geoMask]);\n\t\tif (this.geoFullMaskRTree) this.geoFullMaskRTree.addItem(warpedMap.mapId, [warpedMap.geoFullMask]);\n\t\tif (this.projectedGeoMaskRTree) this.projectedGeoMaskRTree.addItem(warpedMap.mapId, [warpedMap.projectedGeoMask]);\n\t\tif (this.projectedGeoFullMaskRTree) this.projectedGeoFullMaskRTree.addItem(warpedMap.mapId, [warpedMap.projectedGeoFullMask]);\n\t}\n\t#getMapIdsFromBbox(bbox, getBbox) {\n\t\treturn Array.from(this.warpedMapsById.values()).filter((warpedMap) => doBboxesIntersect(bbox, getBbox(warpedMap))).map((warpedMap) => warpedMap.mapId);\n\t}\n\t#getMapIdsFromPoint(point, getBbox, getMask) {\n\t\treturn Array.from(this.warpedMapsById.values()).filter((warpedMap) => pointInBbox(point, getBbox(warpedMap)) && inside(point, closePolygon([getMask(warpedMap)]))).map((warpedMap) => warpedMap.mapId);\n\t}\n\t#removeFromRtree(warpedMap) {\n\t\tif (this.geoMaskRTree) this.geoMaskRTree.removeItem(warpedMap.mapId);\n\t\tif (this.geoFullMaskRTree) this.geoFullMaskRTree.removeItem(warpedMap.mapId);\n\t\tif (this.projectedGeoMaskRTree) this.projectedGeoMaskRTree.removeItem(warpedMap.mapId);\n\t\tif (this.projectedGeoFullMaskRTree) this.projectedGeoFullMaskRTree.removeItem(warpedMap.mapId);\n\t}\n\t#removeZIndexHoles() {\n\t\tconst sortedZIndices = [...this.zIndices.entries()].sort((entryA, entryB) => entryA[1] - entryB[1]);\n\t\tlet zIndex = 0;\n\t\tfor (const entry of sortedZIndices) {\n\t\t\tconst mapId = entry[0];\n\t\t\tthis.zIndices.set(mapId, zIndex);\n\t\t\tzIndex++;\n\t\t}\n\t}\n\t#imageLoaded(mapId) {\n\t\tthis.dispatchEvent(new WarpedMapEvent(WarpedMapEventType.IMAGELOADED, { mapIds: [mapId] }));\n\t}\n\t#addEventListenersToWarpedMap(warpedMap) {\n\t\tconst bound = this.#imageLoaded.bind(this, warpedMap.mapId);\n\t\tthis.#boundImageLoadedByMapId.set(warpedMap.mapId, bound);\n\t\twarpedMap.addEventListener(WarpedMapEventType.IMAGELOADED, bound);\n\t}\n\t#removeEventListenersFromWarpedMap(warpedMap) {\n\t\tconst bound = this.#boundImageLoadedByMapId.get(warpedMap.mapId);\n\t\tif (bound) {\n\t\t\twarpedMap.removeEventListener(WarpedMapEventType.IMAGELOADED, bound);\n\t\t\tthis.#boundImageLoadedByMapId.delete(warpedMap.mapId);\n\t\t}\n\t}\n\tstatic projectPointIfNeeded(projectionFrom, projectionTo, point) {\n\t\treturn isEqualProjection(projectionFrom, projectionTo) ? point : proj4(projectionFrom?.definition, projectionTo?.definition, point);\n\t}\n\tstatic projectPointsIfNeeded(projectionFrom, projectionTo, points) {\n\t\treturn isEqualProjection(projectionFrom, projectionTo) ? points : points.map((point) => proj4(projectionFrom?.definition, projectionTo?.definition, point));\n\t}\n\tstatic projectBboxIfNeeded(projectionFrom, projectionTo, bbox) {\n\t\treturn computeBbox(this.projectPointsIfNeeded(projectionFrom, projectionTo, bboxToLine(bbox)));\n\t}\n};\n//#endregion\nexport { DEFAULT_ANIMATION_OPTIONS, WarpedMapList };\n\n//# sourceMappingURL=WarpedMapList.js.map"],"names":["DEFAULT_SELECTION_OPTIONS","DEFAULT_ANIMATION_OPTIONS","DEFAULT_ANIMATION_INTERNAL_OPTIONS","ensureError","error","WarpedMapList","#boundImageLoadedByMapId","options","webMercatorProjection","createWarpedMapFactory","mergeOptions","RTree","georeferencedMap","mapOptions","validatedGeoreferencedMapOrMaps","validateGeoreferencedMap","validatedGeoreferencedMap","results","#addGeoreferencedMapInternal","WarpedMapEvent","WarpedMapEventType","georeferencedMaps","validatedGeoreferencedMaps","#addGeoreferencedMapsInternal","#removeGeoreferencedMapInternal","#removeGeoreferencedMapsInternal","mapId","result","#removeGeoreferencedMapByIdInternal","annotation","maps","parseAnnotation","warpedMap","updatedWarpedMap","#addEventListenersToWarpedMap","imageInfos","imageInfo","image","Image","partialOptions","mapIds","#getMapIdsFromPoint","#getMapIdsFromBbox","projectedGeoPoint","projectedGeoBbox","warpedMaps","map0","map1","bbox","bboxToCenter","projectedGeoMaskPoints","#getProjectedGeoMaskPoints","computeBbox","convexHull","WebGL2WarpedMap","listOptions","#addToOrUpdateRtree","animationOptions","#setMapsAndListOptionsInternal","firstArgument","secondArgument","thirdArgument","fourthArgument","listOptionKeys","optionKeysToUndefinedOptions","defaultWebGL2WarpedMapOptions","defaultWebGL2WarpedMapOptionKeys","mapOptionKeysCallbackFn","mapOptionKeys","newZIndex","#removeZIndexHoles","zIndex","mapId0","mapId1","zIndex0","zIndex1","#removeEventListenersFromWarpedMap","#getOrComputeMapId","#removeFromRtree","generateChecksum","geoMaskPoints","projection","lonLatProjection","mapsOptionsCallbackFn","partialAnimationOptions","changedOptionKeys","changedMapIds","warpedMapChangedOptions","mergePartialOptions","warpedMapChangedOptionKeys","option","getBbox","doBboxesIntersect","point","getMask","pointInBbox","inside","closePolygon","sortedZIndices","entryA","entryB","entry","#imageLoaded","bound","projectionFrom","projectionTo","isEqualProjection","proj4","points","bboxToLine"],"mappings":"quBAYA,IAAIA,EAA4B,CAAE,UAAW,EAAA,EACzCC,EAA4B,CAC/B,QAAS,GACT,SAAU,GACX,EACIC,EAAqC,CAAE,MAAO,KAAA,EAClD,SAASC,EAAYC,EAAO,CAC3B,OAAOA,aAAiB,MAAQA,EAAQ,IAAI,MAAM,OAAOA,CAAK,CAAC,CAChE,CAMA,IAAIC,EAAgB,MAAMA,UAAsB,WAAY,CAI3D,gCACA,eACA,SACA,WACA,aACA,iBACA,sBACA,0BACA,QACAC,GAQA,YAAYC,EAAS,CACpB,MAAA,EACA,KAAK,gCAAkC,CACtC,YAAa,GACb,oBAAqB,CACpB,OACA,eACA,qBACA,qBACA,YAAA,EAED,gBAAiB,CAChB,UACA,YACA,qBACA,qBACA,mBAAA,EAED,WAAYC,EAAAA,sBACZ,iBAAkBC,EAAAA,uBAAA,CAAuB,EAE1C,KAAK,mBAAqC,IAC1C,KAAK,aAA+B,IACpC,KAAK,eAAiC,IACtC,KAAKH,OAA+C,IACpD,KAAK,QAAUI,EAAAA,aAAa,KAAK,gCAAiCH,CAAO,EACrE,KAAK,QAAQ,cAChB,KAAK,aAAe,IAAII,QACxB,KAAK,iBAAmB,IAAIA,QAC5B,KAAK,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,MAAMxE,EAAQ2E,EAAM,CAAC,EACrB,KAAK,SAAS,IAAI3E,EAAO6C,CAAM,EAC/BA,GACD,CACD,CACA+B,GAAa5E,EAAO,CACnB,KAAK,cAAc,IAAIP,EAAAA,eAAeC,EAAAA,mBAAmB,YAAa,CAAE,OAAQ,CAACM,CAAK,CAAA,CAAG,CAAC,CAC3F,CACAQ,GAA8BF,EAAW,CACxC,MAAMuE,EAAQ,KAAKD,GAAa,KAAK,KAAMtE,EAAU,KAAK,EAC1D,KAAK1B,GAAyB,IAAI0B,EAAU,MAAOuE,CAAK,EACxDvE,EAAU,iBAAiBZ,qBAAmB,YAAamF,CAAK,CACjE,CACA3B,GAAmC5C,EAAW,CAC7C,MAAMuE,EAAQ,KAAKjG,GAAyB,IAAI0B,EAAU,KAAK,EAC3DuE,IACHvE,EAAU,oBAAoBZ,qBAAmB,YAAamF,CAAK,EACnE,KAAKjG,GAAyB,OAAO0B,EAAU,KAAK,EAEtD,CACA,OAAO,qBAAqBwE,EAAgBC,EAAcZ,EAAO,CAChE,OAAOa,oBAAkBF,EAAgBC,CAAY,EAAIZ,EAAQc,EAAMH,GAAgB,WAAYC,GAAc,WAAYZ,CAAK,CACnI,CACA,OAAO,sBAAsBW,EAAgBC,EAAcG,EAAQ,CAClE,OAAOF,EAAAA,kBAAkBF,EAAgBC,CAAY,EAAIG,EAASA,EAAO,IAAKf,GAAUc,EAAMH,GAAgB,WAAYC,GAAc,WAAYZ,CAAK,CAAC,CAC3J,CACA,OAAO,oBAAoBW,EAAgBC,EAAczD,EAAM,CAC9D,OAAOI,EAAAA,YAAY,KAAK,sBAAsBoD,EAAgBC,EAAcI,EAAAA,WAAW7D,CAAI,CAAC,CAAC,CAC9F,CACD","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs213.js"),M=require("./index.cjs302.js"),E=require("./index.cjs305.js"),L=require("./index.cjs350.js"),T=require("./index.cjs351.js"),f=require("./index.cjs215.js"),F=require("./index.cjs275.js"),m=require("./index.cjs217.js");require("./index.cjs223.js");require("./index.cjs224.js");const g=require("./index.cjs225.js");var V=class extends EventTarget{DEFAULT_SPECIFIC_BASE_RENDER_OPTIONS;warpedMapList;tileCache;spritesTileCache;mapsInList=new Set;mapsInPreviousViewport=new Set;mapsInViewport=new Set;mapsWithFetchableTilesForPreviousViewport=new Set;mapsWithFetchableTilesForViewport=new Set;mapsWithRequestedTilesForViewport=new Set;viewport;options;#e=this.mapTileLoaded.bind(this);#t=this.mapTileDeleted.bind(this);#i=this.imageLoaded.bind(this);#r=this.warpedMapAdded.bind(this);#o=this.warpedMapRemoved.bind(this);#s=this.prepareChange.bind(this);#a=this.animatedChange.bind(this);#p=this.immediateChange.bind(this);constructor(e,i){if(super(),this.DEFAULT_SPECIFIC_BASE_RENDER_OPTIONS={anticipateInteraction:!1,requestViewportBufferRatio:0,overviewRequestViewportBufferRatio:8,pruneViewportBufferRatio:8,overviewPruneViewportBufferRatio:16,scaleFactorCorrection:0,log2ScaleFactorCorrection:-.5,spritesMaxHigherLog2ScaleFactorDiff:1/0,spritesMaxLowerLog2ScaleFactorDiff:1,maxTotalOverviewResolutionRatio:50,maxGcpsExactTpsToResource:100},this.options=m.mergeOptions(this.DEFAULT_SPECIFIC_BASE_RENDER_OPTIONS,i),this.options.warpedMapList){const o=this.options.warpedMapList;o.setListOptions(this.options),this.warpedMapList=o}else this.warpedMapList=new E.WarpedMapList(i);this.tileCache=new L.TileCache(e,i),this.spritesTileCache=new L.TileCache(e,m.mergePartialOptions(i,{tileCacheForSprites:this.tileCache}))}addGeoreferenceAnnotation(e,i){return this.warpedMapList.addGeoreferenceAnnotation(e,i)}addGeoreferencedMap(e,i){return this.warpedMapList.addGeoreferencedMap(e,i)}async addSprites(e,i,o){const t={sprites:e,imageUrl:i,imageSize:o},n={column:0,row:0,tileZoomLevel:{scaleFactor:1,width:t.imageSize[0],height:t.imageSize[1],originalWidth:0,originalHeight:0,columns:1,rows:1},imageSize:t.imageSize},r=new Map;for(const p of this.warpedMapList.getWarpedMaps()){if(p.hasImage()||await p.loadImage(this.warpedMapList.imagesById),!p.hasImage())break;const d=p.georeferencedMap.resource.id;r.has(d)||r.set(d,[]),r.get(p.georeferencedMap.resource.id)?.push(p)}const l=new Promise(p=>{this.spritesTileCache.addEventListener(a.WarpedMapEventType.MAPTILESLOADEDFROMSPRITES,p,{once:!0})});return this.spritesTileCache.requestFetchableTiles([new T.FetchableTile(n,t.imageUrl,t.imageUrl,{spritesInfo:t,warpedMapsByResourceId:r})]),l}getDefaultOptions(){return m.mergeOptions(this.DEFAULT_SPECIFIC_BASE_RENDER_OPTIONS,this.warpedMapList.getDefaultOptions())}getMapDefaultOptions(e){return this.warpedMapList.getMapDefaultOptions(e)}getOptions(){return m.mergePartialOptions(this.options,this.warpedMapList.getOptions())}getMapMapOptions(e){return this.warpedMapList.getMapMapOptions(e)}getMapOptions(e){return this.warpedMapList.getMapOptions(e)}setOptions(e){this.options=m.mergeOptions(this.options,e),this.tileCache.setOptions(e),this.warpedMapList.setOptions(e)}setListOptions(e,i){this.warpedMapList.setListOptions(e,i)}setMapsOptions(e,i,o){this.warpedMapList.setMapsOptions(e,i,o)}setMapsAndListOptions(e,i,o,t){this.warpedMapList.setMapsAndListOptions(e,i,o,t)}resetListOptions(e,i){this.warpedMapList.resetListOptions(e,i)}resetMapsOptions(e,i,o){this.warpedMapList.resetMapsOptions(e,i,o)}resetMapsAndListOptions(e,i,o,t){this.warpedMapList.resetMapsAndListOptions(e,i,o,t)}loadMissingImagesInViewport(){if(!this.viewport)return[];const e=f.computeBbox(this.viewport.getProjectedGeoBufferedRectangle());return this.warpedMapList.getWarpedMaps({projectedGeoBbox:e,applyMask:!1}).filter(i=>!i.hasImage()&&!i.fetchingImageInfo).map(i=>i.loadImage(this.warpedMapList.imagesById))}someImagesInViewport(){return this.viewport?Array.from(this.findMapsInViewport(this.options.anticipateInteraction?this.options.overviewPruneViewportBufferRatio:1)).map(e=>this.warpedMapList.getWarpedMap(e)).map(e=>e.hasImage()).some(Boolean):!1}shouldRequestFetchableTiles(){return!0}assureProjection(){this.viewport&&(g.isEqualProjection(this.warpedMapList.options.projection,this.viewport.projection)||this.warpedMapList.setListOptions({projection:this.viewport.projection}))}requestFetchableTiles(){if(!this.shouldRequestFetchableTiles())return;const e=[],i=[],o=this.findMapsInViewport(this.options.anticipateInteraction?this.options.requestViewportBufferRatio:1),t=new Set([...this.findMapsInViewport(this.options.anticipateInteraction?this.options.overviewRequestViewportBufferRatio:1),...this.findMapsToAnticipate()]),n=this.findMapsInViewport(this.options.anticipateInteraction?this.options.pruneViewportBufferRatio:1),r=this.findMapsInViewport(this.options.anticipateInteraction?this.options.overviewPruneViewportBufferRatio:1);for(const s of this.warpedMapList.getWarpedMaps())s.resetForViewport();for(const s of n)e.push(...this.getMapFetchableTilesForViewport(s,o));const l=e.map(s=>M.getTileResolution(s.tile)).reduce((s,w)=>s+w,0);let p=0;const d=this.tileCache.getCachedTiles().filter(s=>s.isTileFromSprites()).filter(s=>this.warpedMapList.getWarpedMap(s.fetchableTile.mapId)?.shouldRenderMap()).map(s=>s.fetchableTile);if(this.options.anticipateInteraction)for(const s of r){const w=this.getMapOverviewFetchableTilesForViewport(s,l+p,t,d);p+=w.map(h=>M.getTileResolution(h.tile)).reduce((h,v)=>h+v,0),i.push(...w)}const u=[...e,...d,...i],c=u.filter(s=>{const w=this.warpedMapList.getWarpedMap(s.mapId);return w?.shouldRenderMap()||w?.options.anticipateVisibility});this.tileCache.requestFetchableTiles(c),this.pruneTileCache(r),this.updateMapsForViewport(u)}findMapsInViewport(e){if(!this.viewport)return new Set;const i=this.viewport,o=f.computeBbox(this.viewport.getProjectedGeoBufferedRectangle(e));return new Set(this.warpedMapList.getWarpedMaps({projectedGeoBbox:o,applyMask:!1}).map(t=>({warpedMap:t,projectedGeoSquaredDistanceToViewportCenter:F.squaredDistance(f.bboxToCenter(t.projectedGeoAppliedMaskBbox),i.projectedGeoCenter)})).sort((t,n)=>t&&n?t.projectedGeoSquaredDistanceToViewportCenter-n.projectedGeoSquaredDistanceToViewportCenter:0).map(t=>t.warpedMap.mapId))}findMapsToAnticipate(){return new Set(this.warpedMapList.getWarpedMaps().filter(e=>e.options.anticipateVisibility).map(e=>e.mapId))}getMapFetchableTilesForViewport(e,i){if(!this.viewport)return[];const o=this.viewport,t=this.warpedMapList.getWarpedMap(e);if(!t)return[];if(!t.shouldRenderMap())return[];if(!t.hasImage())return[];const n=M.getTileZoomLevelForScale(t.image.tileZoomLevels,t.getResourceToViewportScale(o),this.options.scaleFactorCorrection,this.options.log2ScaleFactorCorrection);t.setTileZoomLevelForViewport(n);const r={maxDepth:g.isEqualProjection(t.internalProjection,g.webMercatorProjection)?0:2,minOffsetRatio:1e-5},l=o.getProjectedGeoBufferedRectangle(this.options.anticipateInteraction?this.options.requestViewportBufferRatio:1),p=t.transformationType==="thinPlateSpline"&&t.gcps.length>this.options.maxGcpsExactTpsToResource?t.getProjectedTransformer("polynomial"):t.projectedTransformer;let d;try{d=p.transformToResource([l],r)[0]}catch(h){if(h instanceof Error){h.message="Error while transforming to resource: "+h.message;const v=new a.WarpedMapErrorEvent(h,{mapIds:[e]});this.dispatchEvent(v)}return[]}if(t.setProjectedGeoBufferedViewportRectangleForViewport(l),t.setResourceBufferedViewportRingForViewport(d),!t.resourceBufferedViewportRingBboxForViewport||!t.resourceBufferedViewportRingBboxForViewport)throw new Error("No resourceBufferedViewportRingBboxForViewport or resourceBufferedViewportRingBboxForViewport");const u=f.intersectBboxes(t.resourceBufferedViewportRingBboxForViewport,t.resourceAppliedMaskBbox);if(t.setResourceBufferedViewportRingBboxAndResourceAppliedMaskBboxIntersectionForViewport(u),!i.has(e))return[];if(!u)return[];let c=M.computeTilesCoveringRingAtTileZoomLevel(f.bboxToRectangle(u),n,[t.image.width,t.image.height]);c=this.filterOutTilesCloseToSpriteTiles(c,t);const s=f.bboxToCenter(t.resourceBufferedViewportRingBboxForViewport);c.sort((h,v)=>M.squaredDistanceTileToPoint(h,s)-M.squaredDistanceTileToPoint(v,s));const w=c.map(h=>T.FetchableTile.fromWarpedMap(h,t));return t.setFetchableTilesForViewport(w),w}getMapOverviewFetchableTilesForViewport(e,i,o,t){if(!this.viewport)return[];const n=this.viewport,r=this.warpedMapList.getWarpedMap(e);if(!r)return[];if(!r.shouldRenderMap()&&!r.options.anticipateVisibility)return[];if(!r.hasImage())return[];if(i>n.viewportResolution*this.options.maxTotalOverviewResolutionRatio||t.length>0)return[];const l=r.options.overviewTilesMaxResolution==null?Math.min(n.viewportResolution,n.viewportResolution*this.options.maxTotalOverviewResolutionRatio/this.mapsInList.size):r.options.overviewTilesMaxResolution,p=r.image.tileZoomLevels.sort((c,s)=>s.scaleFactor-c.scaleFactor).filter((c,s)=>M.getTileZoomLevelResolution(c)<=l||(r.options.overviewTilesMaxResolution==null?s==0:!1)).at(r.options.overviewTilesSelection=="highest"?0:-1);if(r.setOverviewTileZoomLevelForViewport(p),!r.options.anticipateVisibility&&(!o.has(e)||!r.shouldRenderMap()))return[];if(!p||r.tileZoomLevelForViewport&&p.scaleFactor<=r.tileZoomLevelForViewport.scaleFactor)return[];let d=M.getTilesAtScaleFactor(p.scaleFactor,r.image);d=this.filterOutTilesCloseToSpriteTiles(d,r);const u=d.map(c=>T.FetchableTile.fromWarpedMap(c,r));return r.setOverviewFetchableTilesForViewport(u),u}updateMapsForViewport(e){this.mapsInList=new Set(this.warpedMapList.getMapIds()),this.mapsWithFetchableTilesForPreviousViewport=this.mapsWithFetchableTilesForViewport,this.mapsWithFetchableTilesForViewport=new Set(e.map(r=>r.mapId).sort((r,l)=>this.warpedMapList.orderMapIdsByZIndex(r,l))),this.mapsInPreviousViewport=this.mapsInViewport,this.mapsInViewport=this.findMapsInViewport();const{mapsForViewportEntering:i,mapsForViewportLeaving:o}=this.mapsInViewportsToEnteringAndLeaving(Array.from(this.mapsWithFetchableTilesForPreviousViewport),Array.from(this.mapsWithFetchableTilesForViewport)),{mapsForViewportEntering:t,mapsForViewportLeaving:n}=this.mapsInViewportsToEnteringAndLeaving(Array.from(this.mapsInPreviousViewport),Array.from(this.mapsInViewport));for(const r of t)this.dispatchEvent(new a.WarpedMapEvent(a.WarpedMapEventType.WARPEDMAPENTERED,{mapIds:[r]}));for(const r of n)this.clearMap(r),this.dispatchEvent(new a.WarpedMapEvent(a.WarpedMapEventType.WARPEDMAPLEFT,{mapIds:[r]}));return{mapsWithFetchableTilesForViewportEntering:i,mapsWithFetchableTilesForViewportLeaving:o,mapsInViewportEntering:t,mapsInViewportLeaving:n}}mapsInViewportsToEnteringAndLeaving(e,i){return{mapsForViewportEntering:i.filter(o=>!e.includes(o)),mapsForViewportLeaving:e.filter(o=>!i.includes(o))}}pruneTileCache(e){const i=new Map;for(const o of this.warpedMapList.getWarpedMaps({mapIds:e}))i.set(o.mapId,{tileZoomLevelForViewport:o.tileZoomLevelForViewport,overviewTileZoomLevelForViewport:o.overviewTileZoomLevelForViewport,resourceViewportRingBboxForViewport:o.resourceBufferedViewportRingBboxForViewport});this.tileCache.prune(i)}filterOutTilesCloseToSpriteTiles(e,i){const o=this.tileCache.getMapCachedTiles(i.mapId).filter(t=>t.isTileFromSprites()).map(t=>t.fetchableTile.tile.tileZoomLevel.scaleFactor);return e.filter(t=>{for(const n of o){const r=Math.log2(t.tileZoomLevel.scaleFactor)-Math.log2(n),l=r<=this.options.spritesMaxHigherLog2ScaleFactorDiff,p=-r<=this.options.spritesMaxLowerLog2ScaleFactorDiff;if(l&&p)return!1}return!0})}destroy(){this.tileCache.destroy(),this.warpedMapList.destroy()}clearMap(e){}mapTileLoaded(e){}mapTileDeleted(e){}imageLoaded(e){}warpedMapAdded(e){}warpedMapRemoved(e){}prepareChange(e){}immediateChange(e){}animatedChange(e){}addEventListeners(){this.tileCache.addEventListener(a.WarpedMapEventType.MAPTILELOADED,this.#e),this.tileCache.addEventListener(a.WarpedMapEventType.MAPTILEDELETED,this.#t),this.warpedMapList.addEventListener(a.WarpedMapEventType.IMAGELOADED,this.#i),this.warpedMapList.addEventListener(a.WarpedMapEventType.WARPEDMAPADDED,this.#r),this.warpedMapList.addEventListener(a.WarpedMapEventType.WARPEDMAPREMOVED,this.#o),this.warpedMapList.addEventListener(a.WarpedMapEventType.PREPARECHANGE,this.#s),this.warpedMapList.addEventListener(a.WarpedMapEventType.ANIMATEDCHANGE,this.#a),this.warpedMapList.addEventListener(a.WarpedMapEventType.IMMEDIATECHANGE,this.#p)}removeEventListeners(){this.tileCache.removeEventListener(a.WarpedMapEventType.MAPTILELOADED,this.#e),this.tileCache.removeEventListener(a.WarpedMapEventType.MAPTILEDELETED,this.#t),this.warpedMapList.removeEventListener(a.WarpedMapEventType.IMAGELOADED,this.#i),this.warpedMapList.removeEventListener(a.WarpedMapEventType.WARPEDMAPADDED,this.#r),this.warpedMapList.removeEventListener(a.WarpedMapEventType.WARPEDMAPREMOVED,this.#o),this.warpedMapList.removeEventListener(a.WarpedMapEventType.PREPARECHANGE,this.#s),this.warpedMapList.removeEventListener(a.WarpedMapEventType.ANIMATEDCHANGE,this.#a),this.warpedMapList.removeEventListener(a.WarpedMapEventType.IMMEDIATECHANGE,this.#p)}};exports.BaseRenderer=V;
2
+ //# sourceMappingURL=index.cjs306.js.map