node-red-contrib-tak-registration 0.3.2 → 0.6.0

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 (411) hide show
  1. package/node_modules/@turf/along/package.json +41 -69
  2. package/node_modules/@turf/angle/package.json +44 -75
  3. package/node_modules/@turf/area/package.json +38 -68
  4. package/node_modules/@turf/bbox/package.json +37 -81
  5. package/node_modules/@turf/bbox-clip/package.json +44 -81
  6. package/node_modules/@turf/bbox-polygon/package.json +36 -66
  7. package/node_modules/@turf/bearing/package.json +36 -70
  8. package/node_modules/@turf/bezier-spline/package.json +39 -67
  9. package/node_modules/@turf/boolean-clockwise/package.json +42 -83
  10. package/node_modules/@turf/boolean-contains/package.json +46 -80
  11. package/node_modules/@turf/boolean-crosses/package.json +45 -79
  12. package/node_modules/@turf/boolean-disjoint/package.json +44 -79
  13. package/node_modules/@turf/boolean-equal/package.json +47 -84
  14. package/node_modules/@turf/boolean-intersects/package.json +42 -77
  15. package/node_modules/@turf/boolean-overlap/package.json +48 -82
  16. package/node_modules/@turf/boolean-parallel/package.json +42 -73
  17. package/node_modules/@turf/boolean-point-in-polygon/package.json +37 -77
  18. package/node_modules/@turf/boolean-point-on-line/package.json +39 -73
  19. package/node_modules/@turf/boolean-within/package.json +46 -79
  20. package/node_modules/@turf/buffer/package.json +47 -84
  21. package/node_modules/@turf/center/package.json +42 -73
  22. package/node_modules/@turf/center-mean/package.json +45 -78
  23. package/node_modules/@turf/center-median/package.json +45 -76
  24. package/node_modules/@turf/center-of-mass/package.json +40 -68
  25. package/node_modules/@turf/centroid/package.json +40 -74
  26. package/node_modules/@turf/circle/package.json +41 -71
  27. package/node_modules/@turf/clean-coords/package.json +40 -75
  28. package/node_modules/@turf/clone/package.json +36 -81
  29. package/node_modules/@turf/clusters/package.json +39 -70
  30. package/node_modules/@turf/clusters-dbscan/package.json +51 -88
  31. package/node_modules/@turf/clusters-kmeans/package.json +53 -90
  32. package/node_modules/@turf/collect/package.json +42 -73
  33. package/node_modules/@turf/combine/package.json +37 -65
  34. package/node_modules/@turf/concave/package.json +56 -111
  35. package/node_modules/@turf/convex/package.json +39 -68
  36. package/node_modules/@turf/destination/package.json +41 -75
  37. package/node_modules/@turf/difference/package.json +35 -63
  38. package/node_modules/@turf/dissolve/package.json +38 -66
  39. package/node_modules/@turf/distance/package.json +38 -83
  40. package/node_modules/@turf/distance-weight/package.json +40 -72
  41. package/node_modules/@turf/ellipse/package.json +43 -75
  42. package/node_modules/@turf/envelope/package.json +36 -65
  43. package/node_modules/@turf/explode/package.json +36 -67
  44. package/node_modules/@turf/flatten/package.json +39 -73
  45. package/node_modules/@turf/flip/package.json +36 -64
  46. package/node_modules/@turf/great-circle/package.json +41 -78
  47. package/node_modules/@turf/helpers/package.json +38 -184
  48. package/node_modules/@turf/hex-grid/package.json +50 -97
  49. package/node_modules/@turf/interpolate/package.json +47 -78
  50. package/node_modules/@turf/intersect/package.json +39 -69
  51. package/node_modules/@turf/invariant/package.json +36 -126
  52. package/node_modules/@turf/isobands/package.json +52 -83
  53. package/node_modules/@turf/isolines/package.json +48 -79
  54. package/node_modules/@turf/kinks/package.json +35 -63
  55. package/node_modules/@turf/length/package.json +43 -78
  56. package/node_modules/@turf/line-arc/package.json +36 -65
  57. package/node_modules/@turf/line-chunk/package.json +44 -84
  58. package/node_modules/@turf/line-intersect/package.json +46 -85
  59. package/node_modules/@turf/line-offset/package.json +41 -78
  60. package/node_modules/@turf/line-overlap/package.json +48 -80
  61. package/node_modules/@turf/line-segment/package.json +38 -70
  62. package/node_modules/@turf/line-slice/package.json +39 -67
  63. package/node_modules/@turf/line-slice-along/package.json +36 -65
  64. package/node_modules/@turf/line-split/package.json +46 -77
  65. package/node_modules/@turf/line-to-polygon/package.json +43 -74
  66. package/node_modules/@turf/mask/package.json +35 -63
  67. package/node_modules/@turf/meta/package.json +39 -128
  68. package/node_modules/@turf/midpoint/package.json +36 -64
  69. package/node_modules/@turf/moran-index/package.json +39 -70
  70. package/node_modules/@turf/nearest-point/package.json +39 -69
  71. package/node_modules/@turf/nearest-point-on-line/package.json +40 -71
  72. package/node_modules/@turf/nearest-point-to-line/package.json +47 -78
  73. package/node_modules/@turf/planepoint/package.json +34 -62
  74. package/node_modules/@turf/point-grid/package.json +45 -80
  75. package/node_modules/@turf/point-on-feature/package.json +40 -68
  76. package/node_modules/@turf/point-to-line-distance/package.json +46 -78
  77. package/node_modules/@turf/points-within-polygon/package.json +35 -64
  78. package/node_modules/@turf/polygon-smooth/package.json +37 -68
  79. package/node_modules/@turf/polygon-tangents/package.json +43 -77
  80. package/node_modules/@turf/polygon-to-line/package.json +39 -69
  81. package/node_modules/@turf/polygonize/package.json +43 -77
  82. package/node_modules/@turf/projection/package.json +44 -77
  83. package/node_modules/@turf/random/package.json +34 -62
  84. package/node_modules/@turf/rectangle-grid/package.json +43 -77
  85. package/node_modules/@turf/rewind/package.json +43 -83
  86. package/node_modules/@turf/rhumb-bearing/package.json +43 -85
  87. package/node_modules/@turf/rhumb-destination/package.json +44 -85
  88. package/node_modules/@turf/rhumb-distance/package.json +44 -84
  89. package/node_modules/@turf/sample/package.json +32 -60
  90. package/node_modules/@turf/sector/package.json +37 -65
  91. package/node_modules/@turf/shortest-path/package.json +45 -79
  92. package/node_modules/@turf/simplify/package.json +43 -77
  93. package/node_modules/@turf/square/package.json +33 -62
  94. package/node_modules/@turf/square-grid/package.json +40 -69
  95. package/node_modules/@turf/standard-deviational-ellipse/package.json +43 -74
  96. package/node_modules/@turf/tag/package.json +38 -66
  97. package/node_modules/@turf/tesselate/package.json +40 -80
  98. package/node_modules/@turf/tin/package.json +34 -63
  99. package/node_modules/@turf/transform-rotate/package.json +45 -80
  100. package/node_modules/@turf/transform-scale/package.json +51 -86
  101. package/node_modules/@turf/transform-translate/package.json +44 -78
  102. package/node_modules/@turf/triangle-grid/package.json +42 -71
  103. package/node_modules/@turf/truncate/package.json +40 -72
  104. package/node_modules/@turf/turf/package.json +74 -102
  105. package/node_modules/@turf/union/package.json +39 -67
  106. package/node_modules/@turf/unkink-polygon/package.json +40 -68
  107. package/node_modules/@turf/voronoi/package.json +43 -83
  108. package/node_modules/@types/geojson/package.json +42 -66
  109. package/node_modules/adm-zip/LICENSE +21 -21
  110. package/node_modules/adm-zip/adm-zip.js +25 -22
  111. package/node_modules/adm-zip/headers/mainHeader.js +2 -1
  112. package/node_modules/adm-zip/package.json +28 -57
  113. package/node_modules/adm-zip/util/utils.js +1 -0
  114. package/node_modules/asynckit/package.json +40 -68
  115. package/node_modules/axios/CHANGELOG.md +473 -837
  116. package/node_modules/axios/LICENSE +4 -16
  117. package/node_modules/axios/MIGRATION_GUIDE.md +3 -0
  118. package/node_modules/axios/README.md +518 -114
  119. package/node_modules/axios/SECURITY.md +4 -3
  120. package/node_modules/axios/dist/axios.js +2759 -2070
  121. package/node_modules/axios/dist/axios.js.map +1 -0
  122. package/node_modules/axios/dist/axios.min.js +2 -2
  123. package/node_modules/axios/dist/axios.min.js.map +1 -0
  124. package/node_modules/axios/dist/browser/axios.cjs +3210 -0
  125. package/node_modules/axios/dist/browser/axios.cjs.map +1 -0
  126. package/node_modules/axios/dist/esm/axios.js +3232 -0
  127. package/node_modules/axios/dist/esm/axios.js.map +1 -0
  128. package/node_modules/axios/dist/esm/axios.min.js +2 -0
  129. package/node_modules/axios/dist/esm/axios.min.js.map +1 -0
  130. package/node_modules/axios/dist/node/axios.cjs +4237 -0
  131. package/node_modules/axios/dist/node/axios.cjs.map +1 -0
  132. package/node_modules/axios/index.d.cts +532 -0
  133. package/node_modules/axios/index.d.ts +398 -72
  134. package/node_modules/axios/index.js +41 -1
  135. package/node_modules/axios/lib/adapters/adapters.js +59 -0
  136. package/node_modules/axios/lib/adapters/http.js +479 -217
  137. package/node_modules/axios/lib/adapters/xhr.js +95 -54
  138. package/node_modules/axios/lib/axios.js +49 -20
  139. package/node_modules/axios/lib/cancel/CancelToken.js +91 -89
  140. package/node_modules/axios/lib/cancel/CanceledError.js +25 -0
  141. package/node_modules/axios/lib/cancel/isCancel.js +2 -2
  142. package/node_modules/axios/lib/core/Axios.js +155 -100
  143. package/node_modules/axios/lib/core/AxiosError.js +100 -0
  144. package/node_modules/axios/lib/core/AxiosHeaders.js +288 -0
  145. package/node_modules/axios/lib/core/InterceptorManager.js +62 -45
  146. package/node_modules/axios/lib/core/buildFullPath.js +5 -4
  147. package/node_modules/axios/lib/core/dispatchRequest.js +27 -33
  148. package/node_modules/axios/lib/core/mergeConfig.js +58 -52
  149. package/node_modules/axios/lib/core/settle.js +8 -6
  150. package/node_modules/axios/lib/core/transformData.js +15 -9
  151. package/node_modules/axios/lib/defaults/index.js +76 -41
  152. package/node_modules/axios/lib/defaults/transitional.js +1 -1
  153. package/node_modules/axios/lib/env/classes/FormData.js +2 -0
  154. package/node_modules/axios/lib/env/data.js +1 -3
  155. package/node_modules/axios/lib/helpers/AxiosTransformStream.js +191 -0
  156. package/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +58 -0
  157. package/node_modules/axios/lib/helpers/HttpStatusCode.js +71 -0
  158. package/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +28 -0
  159. package/node_modules/axios/lib/helpers/bind.js +3 -7
  160. package/node_modules/axios/lib/helpers/buildURL.js +26 -33
  161. package/node_modules/axios/lib/helpers/callbackify.js +16 -0
  162. package/node_modules/axios/lib/helpers/combineURLs.js +3 -2
  163. package/node_modules/axios/lib/helpers/cookies.js +43 -44
  164. package/node_modules/axios/lib/helpers/deprecatedMethod.js +4 -2
  165. package/node_modules/axios/lib/helpers/formDataToJSON.js +92 -0
  166. package/node_modules/axios/lib/helpers/formDataToStream.js +111 -0
  167. package/node_modules/axios/lib/helpers/fromDataURI.js +53 -0
  168. package/node_modules/axios/lib/helpers/isAbsoluteURL.js +3 -2
  169. package/node_modules/axios/lib/helpers/isAxiosError.js +4 -3
  170. package/node_modules/axios/lib/helpers/isURLSameOrigin.js +44 -45
  171. package/node_modules/axios/lib/helpers/null.js +2 -0
  172. package/node_modules/axios/lib/helpers/parseHeaders.js +24 -22
  173. package/node_modules/axios/lib/helpers/parseProtocol.js +6 -0
  174. package/node_modules/axios/lib/helpers/readBlob.js +15 -0
  175. package/node_modules/axios/lib/helpers/speedometer.js +55 -0
  176. package/node_modules/axios/lib/helpers/spread.js +3 -2
  177. package/node_modules/axios/lib/helpers/throttle.js +33 -0
  178. package/node_modules/axios/lib/helpers/toFormData.js +203 -39
  179. package/node_modules/axios/lib/helpers/toURLEncodedForm.js +18 -0
  180. package/node_modules/axios/lib/helpers/validator.js +27 -18
  181. package/node_modules/axios/lib/platform/browser/classes/Blob.js +3 -0
  182. package/node_modules/axios/lib/platform/browser/classes/FormData.js +3 -0
  183. package/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +4 -0
  184. package/node_modules/axios/lib/platform/browser/index.js +64 -0
  185. package/node_modules/axios/lib/platform/index.js +3 -0
  186. package/node_modules/axios/lib/platform/node/classes/FormData.js +3 -0
  187. package/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +4 -0
  188. package/node_modules/axios/lib/platform/node/index.js +12 -0
  189. package/node_modules/axios/lib/utils.js +517 -144
  190. package/node_modules/axios/package.json +194 -93
  191. package/node_modules/call-bind/package.json +78 -109
  192. package/node_modules/combined-stream/package.json +14 -46
  193. package/node_modules/commander/package.json +20 -53
  194. package/node_modules/concaveman/node_modules/quickselect/package.json +43 -0
  195. package/node_modules/{@turf/collect → concaveman}/node_modules/rbush/README.md +22 -95
  196. package/node_modules/{@turf/unkink-polygon → concaveman}/node_modules/rbush/index.js +131 -181
  197. package/node_modules/concaveman/node_modules/rbush/package.json +56 -0
  198. package/node_modules/concaveman/node_modules/rbush/rbush.js +574 -0
  199. package/node_modules/concaveman/node_modules/rbush/rbush.min.js +1 -0
  200. package/node_modules/concaveman/package.json +15 -46
  201. package/node_modules/d3-array/package.json +19 -47
  202. package/node_modules/d3-geo/package.json +24 -52
  203. package/node_modules/d3-voronoi/package.json +19 -47
  204. package/node_modules/deep-equal/package.json +34 -64
  205. package/node_modules/define-properties/.eslintrc +10 -3
  206. package/node_modules/define-properties/.github/FUNDING.yml +12 -0
  207. package/node_modules/define-properties/.nycrc +9 -0
  208. package/node_modules/define-properties/CHANGELOG.md +39 -0
  209. package/node_modules/define-properties/README.md +11 -13
  210. package/node_modules/define-properties/index.js +12 -17
  211. package/node_modules/define-properties/package.json +85 -95
  212. package/node_modules/delayed-stream/package.json +14 -49
  213. package/node_modules/density-clustering/package.json +46 -70
  214. package/node_modules/earcut/README.md +12 -3
  215. package/node_modules/earcut/dist/earcut.dev.js +47 -50
  216. package/node_modules/earcut/dist/earcut.min.js +1 -1
  217. package/node_modules/earcut/package.json +26 -60
  218. package/node_modules/earcut/src/earcut.js +46 -49
  219. package/node_modules/follow-redirects/README.md +8 -1
  220. package/node_modules/follow-redirects/index.js +83 -36
  221. package/node_modules/follow-redirects/package.json +38 -74
  222. package/node_modules/form-data/package.json +37 -70
  223. package/node_modules/function-bind/package.json +23 -56
  224. package/node_modules/functions-have-names/.editorconfig +20 -0
  225. package/node_modules/functions-have-names/.eslintrc +19 -0
  226. package/node_modules/functions-have-names/.github/FUNDING.yml +12 -0
  227. package/node_modules/functions-have-names/.nycrc +9 -0
  228. package/node_modules/functions-have-names/CHANGELOG.md +89 -0
  229. package/node_modules/functions-have-names/LICENSE +21 -0
  230. package/node_modules/functions-have-names/README.md +40 -0
  231. package/node_modules/functions-have-names/index.js +31 -0
  232. package/node_modules/functions-have-names/package.json +55 -0
  233. package/node_modules/functions-have-names/test/index.js +65 -0
  234. package/node_modules/geojson-equality/package.json +23 -55
  235. package/node_modules/geojson-rbush/node_modules/quickselect/package.json +43 -0
  236. package/node_modules/{@turf/unkink-polygon → geojson-rbush}/node_modules/rbush/README.md +22 -95
  237. package/node_modules/{@turf/collect → geojson-rbush}/node_modules/rbush/index.js +131 -181
  238. package/node_modules/geojson-rbush/node_modules/rbush/package.json +56 -0
  239. package/node_modules/geojson-rbush/node_modules/rbush/rbush.js +574 -0
  240. package/node_modules/geojson-rbush/node_modules/rbush/rbush.min.js +1 -0
  241. package/node_modules/geojson-rbush/package.json +32 -71
  242. package/node_modules/get-intrinsic/.eslintrc +3 -8
  243. package/node_modules/get-intrinsic/.nycrc +0 -4
  244. package/node_modules/get-intrinsic/CHANGELOG.md +53 -0
  245. package/node_modules/get-intrinsic/README.md +7 -1
  246. package/node_modules/get-intrinsic/index.js +29 -8
  247. package/node_modules/get-intrinsic/package.json +91 -104
  248. package/node_modules/get-intrinsic/test/GetIntrinsic.js +26 -12
  249. package/node_modules/has/package.json +21 -46
  250. package/node_modules/has-property-descriptors/.eslintrc +13 -0
  251. package/node_modules/has-property-descriptors/.github/FUNDING.yml +12 -0
  252. package/node_modules/has-property-descriptors/.nycrc +9 -0
  253. package/node_modules/has-property-descriptors/CHANGELOG.md +16 -0
  254. package/node_modules/has-property-descriptors/LICENSE +21 -0
  255. package/node_modules/has-property-descriptors/README.md +43 -0
  256. package/node_modules/has-property-descriptors/index.js +33 -0
  257. package/node_modules/has-property-descriptors/package.json +70 -0
  258. package/node_modules/has-property-descriptors/test/index.js +57 -0
  259. package/node_modules/has-proto/.eslintrc +5 -0
  260. package/node_modules/has-proto/.github/FUNDING.yml +12 -0
  261. package/node_modules/has-proto/CHANGELOG.md +23 -0
  262. package/node_modules/has-proto/LICENSE +21 -0
  263. package/node_modules/has-proto/README.md +38 -0
  264. package/node_modules/has-proto/index.js +11 -0
  265. package/node_modules/has-proto/package.json +74 -0
  266. package/node_modules/has-proto/test/index.js +19 -0
  267. package/node_modules/has-symbols/package.json +99 -125
  268. package/node_modules/has-tostringtag/package.json +82 -109
  269. package/node_modules/is-arguments/package.json +89 -114
  270. package/node_modules/is-date-object/package.json +77 -108
  271. package/node_modules/is-regex/package.json +84 -112
  272. package/node_modules/mime-db/HISTORY.md +8 -0
  273. package/node_modules/mime-db/LICENSE +19 -18
  274. package/node_modules/mime-db/README.md +1 -1
  275. package/node_modules/mime-db/db.json +54 -6
  276. package/node_modules/mime-db/index.js +1 -0
  277. package/node_modules/mime-db/package.json +24 -66
  278. package/node_modules/mime-types/HISTORY.md +9 -0
  279. package/node_modules/mime-types/README.md +1 -1
  280. package/node_modules/mime-types/package.json +19 -62
  281. package/node_modules/object-assign/package.json +15 -49
  282. package/node_modules/object-is/package.json +85 -112
  283. package/node_modules/object-keys/package.json +86 -116
  284. package/node_modules/point-in-polygon/package.json +19 -48
  285. package/node_modules/polygon-clipping/package.json +41 -80
  286. package/node_modules/proxy-from-env/.eslintrc +29 -0
  287. package/node_modules/proxy-from-env/.travis.yml +10 -0
  288. package/node_modules/proxy-from-env/LICENSE +20 -0
  289. package/node_modules/proxy-from-env/README.md +131 -0
  290. package/node_modules/proxy-from-env/index.js +108 -0
  291. package/node_modules/proxy-from-env/package.json +34 -0
  292. package/node_modules/proxy-from-env/test.js +483 -0
  293. package/node_modules/quickselect/package.json +13 -41
  294. package/node_modules/rbush/README.md +95 -22
  295. package/node_modules/rbush/index.js +181 -131
  296. package/node_modules/rbush/package.json +39 -71
  297. package/node_modules/rbush/rbush.js +412 -360
  298. package/node_modules/rbush/rbush.min.js +1 -1
  299. package/node_modules/regexp.prototype.flags/.eslintrc +1 -0
  300. package/node_modules/regexp.prototype.flags/CHANGELOG.md +19 -0
  301. package/node_modules/regexp.prototype.flags/implementation.js +9 -0
  302. package/node_modules/regexp.prototype.flags/package.json +98 -122
  303. package/node_modules/regexp.prototype.flags/test/shimmed.js +2 -1
  304. package/node_modules/regexp.prototype.flags/test/tests.js +7 -5
  305. package/node_modules/robust-predicates/package.json +25 -52
  306. package/node_modules/skmeans/package.json +18 -53
  307. package/node_modules/splaytree/Readme.md +58 -57
  308. package/node_modules/splaytree/dist/splay.esm.js +21 -8
  309. package/node_modules/splaytree/dist/splay.esm.js.map +1 -1
  310. package/node_modules/splaytree/dist/splay.js +21 -8
  311. package/node_modules/splaytree/dist/splay.js.map +1 -1
  312. package/node_modules/splaytree/package.json +36 -68
  313. package/node_modules/splaytree/src/index.ts +16 -4
  314. package/node_modules/tinyqueue/package.json +34 -59
  315. package/node_modules/topojson-client/package.json +28 -56
  316. package/node_modules/topojson-server/package.json +27 -55
  317. package/node_modules/turf-jsts/package.json +33 -68
  318. package/node_modules/uuid/CHANGELOG.md +39 -0
  319. package/node_modules/uuid/README.md +30 -73
  320. package/node_modules/uuid/dist/commonjs-browser/index.js +79 -0
  321. package/node_modules/uuid/dist/commonjs-browser/md5.js +223 -0
  322. package/node_modules/uuid/dist/commonjs-browser/native.js +11 -0
  323. package/node_modules/uuid/dist/commonjs-browser/nil.js +8 -0
  324. package/node_modules/uuid/dist/commonjs-browser/parse.js +45 -0
  325. package/node_modules/uuid/dist/commonjs-browser/regex.js +8 -0
  326. package/node_modules/uuid/dist/commonjs-browser/rng.js +25 -0
  327. package/node_modules/uuid/dist/commonjs-browser/sha1.js +104 -0
  328. package/node_modules/uuid/dist/commonjs-browser/stringify.js +44 -0
  329. package/node_modules/uuid/dist/commonjs-browser/v1.js +107 -0
  330. package/node_modules/uuid/dist/commonjs-browser/v3.js +16 -0
  331. package/node_modules/uuid/dist/commonjs-browser/v35.js +80 -0
  332. package/node_modules/uuid/dist/commonjs-browser/v4.js +43 -0
  333. package/node_modules/uuid/dist/commonjs-browser/v5.js +16 -0
  334. package/node_modules/uuid/dist/commonjs-browser/validate.js +17 -0
  335. package/node_modules/uuid/dist/commonjs-browser/version.js +21 -0
  336. package/node_modules/uuid/dist/esm-browser/md5.js +23 -23
  337. package/node_modules/uuid/dist/esm-browser/native.js +4 -0
  338. package/node_modules/uuid/dist/esm-browser/parse.js +2 -2
  339. package/node_modules/uuid/dist/esm-browser/rng.js +4 -5
  340. package/node_modules/uuid/dist/esm-browser/sha1.js +26 -26
  341. package/node_modules/uuid/dist/esm-browser/stringify.js +9 -6
  342. package/node_modules/uuid/dist/esm-browser/v1.js +17 -17
  343. package/node_modules/uuid/dist/esm-browser/v3.js +1 -1
  344. package/node_modules/uuid/dist/esm-browser/v35.js +12 -10
  345. package/node_modules/uuid/dist/esm-browser/v4.js +9 -4
  346. package/node_modules/uuid/dist/esm-browser/v5.js +1 -1
  347. package/node_modules/uuid/dist/esm-browser/version.js +1 -1
  348. package/node_modules/uuid/dist/esm-node/native.js +4 -0
  349. package/node_modules/uuid/dist/esm-node/stringify.js +7 -3
  350. package/node_modules/uuid/dist/esm-node/v1.js +2 -2
  351. package/node_modules/uuid/dist/esm-node/v35.js +6 -4
  352. package/node_modules/uuid/dist/esm-node/v4.js +7 -2
  353. package/node_modules/uuid/dist/esm-node/version.js +1 -1
  354. package/node_modules/uuid/dist/index.js +18 -18
  355. package/node_modules/uuid/dist/native-browser.js +11 -0
  356. package/node_modules/uuid/dist/native.js +15 -0
  357. package/node_modules/uuid/dist/rng-browser.js +2 -3
  358. package/node_modules/uuid/dist/stringify.js +8 -3
  359. package/node_modules/uuid/dist/v1.js +2 -2
  360. package/node_modules/uuid/dist/v35.js +7 -5
  361. package/node_modules/uuid/dist/v4.js +8 -2
  362. package/node_modules/uuid/dist/version.js +1 -1
  363. package/node_modules/uuid/package.json +87 -120
  364. package/package.json +12 -8
  365. package/tak-ingest.html +40 -0
  366. package/tak-ingest.js +48 -0
  367. package/tak-registration.html +10 -0
  368. package/tak-registration.js +55 -7
  369. package/node_modules/@turf/collect/node_modules/quickselect/package.json +0 -69
  370. package/node_modules/@turf/collect/node_modules/rbush/package.json +0 -85
  371. package/node_modules/@turf/collect/node_modules/rbush/rbush.js +0 -626
  372. package/node_modules/@turf/collect/node_modules/rbush/rbush.min.js +0 -1
  373. package/node_modules/@turf/unkink-polygon/node_modules/quickselect/package.json +0 -69
  374. package/node_modules/@turf/unkink-polygon/node_modules/rbush/package.json +0 -85
  375. package/node_modules/@turf/unkink-polygon/node_modules/rbush/rbush.js +0 -626
  376. package/node_modules/@turf/unkink-polygon/node_modules/rbush/rbush.min.js +0 -1
  377. package/node_modules/axios/UPGRADE_GUIDE.md +0 -168
  378. package/node_modules/axios/dist/axios.map +0 -1
  379. package/node_modules/axios/dist/axios.min.map +0 -1
  380. package/node_modules/axios/lib/cancel/Cancel.js +0 -19
  381. package/node_modules/axios/lib/core/createError.js +0 -18
  382. package/node_modules/axios/lib/core/enhanceError.js +0 -43
  383. package/node_modules/axios/lib/helpers/normalizeHeaderName.js +0 -12
  384. package/node_modules/axios/tsconfig.json +0 -14
  385. package/node_modules/axios/tslint.json +0 -6
  386. package/node_modules/combined-stream/yarn.lock +0 -17
  387. package/node_modules/d3-array/yarn.lock +0 -939
  388. package/node_modules/define-properties/.jscs.json +0 -175
  389. package/node_modules/define-properties/.travis.yml +0 -233
  390. package/node_modules/define-properties/test/index.js +0 -125
  391. package/node_modules/get-intrinsic/.eslintignore +0 -1
  392. package/node_modules/uuid/dist/umd/uuid.min.js +0 -1
  393. package/node_modules/uuid/dist/umd/uuidNIL.min.js +0 -1
  394. package/node_modules/uuid/dist/umd/uuidParse.min.js +0 -1
  395. package/node_modules/uuid/dist/umd/uuidStringify.min.js +0 -1
  396. package/node_modules/uuid/dist/umd/uuidValidate.min.js +0 -1
  397. package/node_modules/uuid/dist/umd/uuidVersion.min.js +0 -1
  398. package/node_modules/uuid/dist/umd/uuidv1.min.js +0 -1
  399. package/node_modules/uuid/dist/umd/uuidv3.min.js +0 -1
  400. package/node_modules/uuid/dist/umd/uuidv4.min.js +0 -1
  401. package/node_modules/uuid/dist/umd/uuidv5.min.js +0 -1
  402. /package/node_modules/{@turf/collect → concaveman}/node_modules/quickselect/LICENSE +0 -0
  403. /package/node_modules/{@turf/collect → concaveman}/node_modules/quickselect/README.md +0 -0
  404. /package/node_modules/{@turf/collect → concaveman}/node_modules/quickselect/index.js +0 -0
  405. /package/node_modules/{@turf/collect → concaveman}/node_modules/quickselect/quickselect.js +0 -0
  406. /package/node_modules/{@turf/collect → concaveman}/node_modules/rbush/LICENSE +0 -0
  407. /package/node_modules/{@turf/unkink-polygon → geojson-rbush}/node_modules/quickselect/LICENSE +0 -0
  408. /package/node_modules/{@turf/unkink-polygon → geojson-rbush}/node_modules/quickselect/README.md +0 -0
  409. /package/node_modules/{@turf/unkink-polygon → geojson-rbush}/node_modules/quickselect/index.js +0 -0
  410. /package/node_modules/{@turf/unkink-polygon → geojson-rbush}/node_modules/quickselect/quickselect.js +0 -0
  411. /package/node_modules/{@turf/unkink-polygon → geojson-rbush}/node_modules/rbush/LICENSE +0 -0
@@ -1,46 +1,30 @@
1
- 'use strict';
2
-
3
- module.exports = rbush;
4
- module.exports.default = rbush;
5
-
6
- var quickselect = require('quickselect');
7
-
8
- function rbush(maxEntries, format) {
9
- if (!(this instanceof rbush)) return new rbush(maxEntries, format);
10
-
11
- // max entries in a node is 9 by default; min node fill is 40% for best performance
12
- this._maxEntries = Math.max(4, maxEntries || 9);
13
- this._minEntries = Math.max(2, Math.ceil(this._maxEntries * 0.4));
14
-
15
- if (format) {
16
- this._initFormat(format);
1
+ import quickselect from 'quickselect';
2
+
3
+ export default class RBush {
4
+ constructor(maxEntries = 9) {
5
+ // max entries in a node is 9 by default; min node fill is 40% for best performance
6
+ this._maxEntries = Math.max(4, maxEntries);
7
+ this._minEntries = Math.max(2, Math.ceil(this._maxEntries * 0.4));
8
+ this.clear();
17
9
  }
18
10
 
19
- this.clear();
20
- }
21
-
22
- rbush.prototype = {
23
-
24
- all: function () {
11
+ all() {
25
12
  return this._all(this.data, []);
26
- },
27
-
28
- search: function (bbox) {
13
+ }
29
14
 
30
- var node = this.data,
31
- result = [],
32
- toBBox = this.toBBox;
15
+ search(bbox) {
16
+ let node = this.data;
17
+ const result = [];
33
18
 
34
19
  if (!intersects(bbox, node)) return result;
35
20
 
36
- var nodesToSearch = [],
37
- i, len, child, childBBox;
21
+ const toBBox = this.toBBox;
22
+ const nodesToSearch = [];
38
23
 
39
24
  while (node) {
40
- for (i = 0, len = node.children.length; i < len; i++) {
41
-
42
- child = node.children[i];
43
- childBBox = node.leaf ? toBBox(child) : child;
25
+ for (let i = 0; i < node.children.length; i++) {
26
+ const child = node.children[i];
27
+ const childBBox = node.leaf ? toBBox(child) : child;
44
28
 
45
29
  if (intersects(bbox, childBBox)) {
46
30
  if (node.leaf) result.push(child);
@@ -52,23 +36,18 @@ rbush.prototype = {
52
36
  }
53
37
 
54
38
  return result;
55
- },
56
-
57
- collides: function (bbox) {
39
+ }
58
40
 
59
- var node = this.data,
60
- toBBox = this.toBBox;
41
+ collides(bbox) {
42
+ let node = this.data;
61
43
 
62
44
  if (!intersects(bbox, node)) return false;
63
45
 
64
- var nodesToSearch = [],
65
- i, len, child, childBBox;
66
-
46
+ const nodesToSearch = [];
67
47
  while (node) {
68
- for (i = 0, len = node.children.length; i < len; i++) {
69
-
70
- child = node.children[i];
71
- childBBox = node.leaf ? toBBox(child) : child;
48
+ for (let i = 0; i < node.children.length; i++) {
49
+ const child = node.children[i];
50
+ const childBBox = node.leaf ? this.toBBox(child) : child;
72
51
 
73
52
  if (intersects(bbox, childBBox)) {
74
53
  if (node.leaf || contains(bbox, childBBox)) return true;
@@ -79,20 +58,20 @@ rbush.prototype = {
79
58
  }
80
59
 
81
60
  return false;
82
- },
61
+ }
83
62
 
84
- load: function (data) {
63
+ load(data) {
85
64
  if (!(data && data.length)) return this;
86
65
 
87
66
  if (data.length < this._minEntries) {
88
- for (var i = 0, len = data.length; i < len; i++) {
67
+ for (let i = 0; i < data.length; i++) {
89
68
  this.insert(data[i]);
90
69
  }
91
70
  return this;
92
71
  }
93
72
 
94
73
  // recursively build the tree with the given data from scratch using OMT algorithm
95
- var node = this._build(data.slice(), 0, data.length - 1, 0);
74
+ let node = this._build(data.slice(), 0, data.length - 1, 0);
96
75
 
97
76
  if (!this.data.children.length) {
98
77
  // save as is if tree is empty
@@ -105,7 +84,7 @@ rbush.prototype = {
105
84
  } else {
106
85
  if (this.data.height < node.height) {
107
86
  // swap trees if inserted one is bigger
108
- var tmpNode = this.data;
87
+ const tmpNode = this.data;
109
88
  this.data = node;
110
89
  node = tmpNode;
111
90
  }
@@ -115,26 +94,26 @@ rbush.prototype = {
115
94
  }
116
95
 
117
96
  return this;
118
- },
97
+ }
119
98
 
120
- insert: function (item) {
99
+ insert(item) {
121
100
  if (item) this._insert(item, this.data.height - 1);
122
101
  return this;
123
- },
102
+ }
124
103
 
125
- clear: function () {
104
+ clear() {
126
105
  this.data = createNode([]);
127
106
  return this;
128
- },
107
+ }
129
108
 
130
- remove: function (item, equalsFn) {
109
+ remove(item, equalsFn) {
131
110
  if (!item) return this;
132
111
 
133
- var node = this.data,
134
- bbox = this.toBBox(item),
135
- path = [],
136
- indexes = [],
137
- i, parent, index, goingUp;
112
+ let node = this.data;
113
+ const bbox = this.toBBox(item);
114
+ const path = [];
115
+ const indexes = [];
116
+ let i, parent, goingUp;
138
117
 
139
118
  // depth-first iterative tree traversal
140
119
  while (node || path.length) {
@@ -147,7 +126,7 @@ rbush.prototype = {
147
126
  }
148
127
 
149
128
  if (node.leaf) { // check current node
150
- index = findItem(item, node.children, equalsFn);
129
+ const index = findItem(item, node.children, equalsFn);
151
130
 
152
131
  if (index !== -1) {
153
132
  // item found, remove the item and condense tree upwards
@@ -174,36 +153,36 @@ rbush.prototype = {
174
153
  }
175
154
 
176
155
  return this;
177
- },
156
+ }
178
157
 
179
- toBBox: function (item) { return item; },
158
+ toBBox(item) { return item; }
180
159
 
181
- compareMinX: compareNodeMinX,
182
- compareMinY: compareNodeMinY,
160
+ compareMinX(a, b) { return a.minX - b.minX; }
161
+ compareMinY(a, b) { return a.minY - b.minY; }
183
162
 
184
- toJSON: function () { return this.data; },
163
+ toJSON() { return this.data; }
185
164
 
186
- fromJSON: function (data) {
165
+ fromJSON(data) {
187
166
  this.data = data;
188
167
  return this;
189
- },
168
+ }
190
169
 
191
- _all: function (node, result) {
192
- var nodesToSearch = [];
170
+ _all(node, result) {
171
+ const nodesToSearch = [];
193
172
  while (node) {
194
- if (node.leaf) result.push.apply(result, node.children);
195
- else nodesToSearch.push.apply(nodesToSearch, node.children);
173
+ if (node.leaf) result.push(...node.children);
174
+ else nodesToSearch.push(...node.children);
196
175
 
197
176
  node = nodesToSearch.pop();
198
177
  }
199
178
  return result;
200
- },
179
+ }
201
180
 
202
- _build: function (items, left, right, height) {
181
+ _build(items, left, right, height) {
203
182
 
204
- var N = right - left + 1,
205
- M = this._maxEntries,
206
- node;
183
+ const N = right - left + 1;
184
+ let M = this._maxEntries;
185
+ let node;
207
186
 
208
187
  if (N <= M) {
209
188
  // reached leaf level; return leaf
@@ -226,21 +205,20 @@ rbush.prototype = {
226
205
 
227
206
  // split the items into M mostly square tiles
228
207
 
229
- var N2 = Math.ceil(N / M),
230
- N1 = N2 * Math.ceil(Math.sqrt(M)),
231
- i, j, right2, right3;
208
+ const N2 = Math.ceil(N / M);
209
+ const N1 = N2 * Math.ceil(Math.sqrt(M));
232
210
 
233
211
  multiSelect(items, left, right, N1, this.compareMinX);
234
212
 
235
- for (i = left; i <= right; i += N1) {
213
+ for (let i = left; i <= right; i += N1) {
236
214
 
237
- right2 = Math.min(i + N1 - 1, right);
215
+ const right2 = Math.min(i + N1 - 1, right);
238
216
 
239
217
  multiSelect(items, i, right2, N2, this.compareMinY);
240
218
 
241
- for (j = i; j <= right2; j += N2) {
219
+ for (let j = i; j <= right2; j += N2) {
242
220
 
243
- right3 = Math.min(j + N2 - 1, right2);
221
+ const right3 = Math.min(j + N2 - 1, right2);
244
222
 
245
223
  // pack each entry recursively
246
224
  node.children.push(this._build(items, j, right3, height - 1));
@@ -250,23 +228,22 @@ rbush.prototype = {
250
228
  calcBBox(node, this.toBBox);
251
229
 
252
230
  return node;
253
- },
254
-
255
- _chooseSubtree: function (bbox, node, level, path) {
256
-
257
- var i, len, child, targetNode, area, enlargement, minArea, minEnlargement;
231
+ }
258
232
 
233
+ _chooseSubtree(bbox, node, level, path) {
259
234
  while (true) {
260
235
  path.push(node);
261
236
 
262
237
  if (node.leaf || path.length - 1 === level) break;
263
238
 
264
- minArea = minEnlargement = Infinity;
239
+ let minArea = Infinity;
240
+ let minEnlargement = Infinity;
241
+ let targetNode;
265
242
 
266
- for (i = 0, len = node.children.length; i < len; i++) {
267
- child = node.children[i];
268
- area = bboxArea(child);
269
- enlargement = enlargedArea(bbox, child) - area;
243
+ for (let i = 0; i < node.children.length; i++) {
244
+ const child = node.children[i];
245
+ const area = bboxArea(child);
246
+ const enlargement = enlargedArea(bbox, child) - area;
270
247
 
271
248
  // choose entry with the least area enlargement
272
249
  if (enlargement < minEnlargement) {
@@ -287,16 +264,14 @@ rbush.prototype = {
287
264
  }
288
265
 
289
266
  return node;
290
- },
291
-
292
- _insert: function (item, level, isNode) {
267
+ }
293
268
 
294
- var toBBox = this.toBBox,
295
- bbox = isNode ? item : toBBox(item),
296
- insertPath = [];
269
+ _insert(item, level, isNode) {
270
+ const bbox = isNode ? item : this.toBBox(item);
271
+ const insertPath = [];
297
272
 
298
273
  // find the best node for accommodating the item, saving all nodes along the path too
299
- var node = this._chooseSubtree(bbox, this.data, level, insertPath);
274
+ const node = this._chooseSubtree(bbox, this.data, level, insertPath);
300
275
 
301
276
  // put the item into the node
302
277
  node.children.push(item);
@@ -312,20 +287,19 @@ rbush.prototype = {
312
287
 
313
288
  // adjust bboxes along the insertion path
314
289
  this._adjustParentBBoxes(bbox, insertPath, level);
315
- },
290
+ }
316
291
 
317
292
  // split overflowed node into two
318
- _split: function (insertPath, level) {
319
-
320
- var node = insertPath[level],
321
- M = node.children.length,
322
- m = this._minEntries;
293
+ _split(insertPath, level) {
294
+ const node = insertPath[level];
295
+ const M = node.children.length;
296
+ const m = this._minEntries;
323
297
 
324
298
  this._chooseSplitAxis(node, m, M);
325
299
 
326
- var splitIndex = this._chooseSplitIndex(node, m, M);
300
+ const splitIndex = this._chooseSplitIndex(node, m, M);
327
301
 
328
- var newNode = createNode(node.children.splice(splitIndex, node.children.length - splitIndex));
302
+ const newNode = createNode(node.children.splice(splitIndex, node.children.length - splitIndex));
329
303
  newNode.height = node.height;
330
304
  newNode.leaf = node.leaf;
331
305
 
@@ -334,28 +308,27 @@ rbush.prototype = {
334
308
 
335
309
  if (level) insertPath[level - 1].children.push(newNode);
336
310
  else this._splitRoot(node, newNode);
337
- },
311
+ }
338
312
 
339
- _splitRoot: function (node, newNode) {
313
+ _splitRoot(node, newNode) {
340
314
  // split root node
341
315
  this.data = createNode([node, newNode]);
342
316
  this.data.height = node.height + 1;
343
317
  this.data.leaf = false;
344
318
  calcBBox(this.data, this.toBBox);
345
- },
346
-
347
- _chooseSplitIndex: function (node, m, M) {
348
-
349
- var i, bbox1, bbox2, overlap, area, minOverlap, minArea, index;
319
+ }
350
320
 
351
- minOverlap = minArea = Infinity;
321
+ _chooseSplitIndex(node, m, M) {
322
+ let index;
323
+ let minOverlap = Infinity;
324
+ let minArea = Infinity;
352
325
 
353
- for (i = m; i <= M - m; i++) {
354
- bbox1 = distBBox(node, 0, i, this.toBBox);
355
- bbox2 = distBBox(node, i, M, this.toBBox);
326
+ for (let i = m; i <= M - m; i++) {
327
+ const bbox1 = distBBox(node, 0, i, this.toBBox);
328
+ const bbox2 = distBBox(node, i, M, this.toBBox);
356
329
 
357
- overlap = intersectionArea(bbox1, bbox2);
358
- area = bboxArea(bbox1) + bboxArea(bbox2);
330
+ const overlap = intersectionArea(bbox1, bbox2);
331
+ const area = bboxArea(bbox1) + bboxArea(bbox2);
359
332
 
360
333
  // choose distribution with minimum overlap
361
334
  if (overlap < minOverlap) {
@@ -373,58 +346,55 @@ rbush.prototype = {
373
346
  }
374
347
  }
375
348
 
376
- return index;
377
- },
349
+ return index || M - m;
350
+ }
378
351
 
379
352
  // sorts node children by the best axis for split
380
- _chooseSplitAxis: function (node, m, M) {
381
-
382
- var compareMinX = node.leaf ? this.compareMinX : compareNodeMinX,
383
- compareMinY = node.leaf ? this.compareMinY : compareNodeMinY,
384
- xMargin = this._allDistMargin(node, m, M, compareMinX),
385
- yMargin = this._allDistMargin(node, m, M, compareMinY);
353
+ _chooseSplitAxis(node, m, M) {
354
+ const compareMinX = node.leaf ? this.compareMinX : compareNodeMinX;
355
+ const compareMinY = node.leaf ? this.compareMinY : compareNodeMinY;
356
+ const xMargin = this._allDistMargin(node, m, M, compareMinX);
357
+ const yMargin = this._allDistMargin(node, m, M, compareMinY);
386
358
 
387
359
  // if total distributions margin value is minimal for x, sort by minX,
388
360
  // otherwise it's already sorted by minY
389
361
  if (xMargin < yMargin) node.children.sort(compareMinX);
390
- },
362
+ }
391
363
 
392
364
  // total margin of all possible split distributions where each node is at least m full
393
- _allDistMargin: function (node, m, M, compare) {
394
-
365
+ _allDistMargin(node, m, M, compare) {
395
366
  node.children.sort(compare);
396
367
 
397
- var toBBox = this.toBBox,
398
- leftBBox = distBBox(node, 0, m, toBBox),
399
- rightBBox = distBBox(node, M - m, M, toBBox),
400
- margin = bboxMargin(leftBBox) + bboxMargin(rightBBox),
401
- i, child;
368
+ const toBBox = this.toBBox;
369
+ const leftBBox = distBBox(node, 0, m, toBBox);
370
+ const rightBBox = distBBox(node, M - m, M, toBBox);
371
+ let margin = bboxMargin(leftBBox) + bboxMargin(rightBBox);
402
372
 
403
- for (i = m; i < M - m; i++) {
404
- child = node.children[i];
373
+ for (let i = m; i < M - m; i++) {
374
+ const child = node.children[i];
405
375
  extend(leftBBox, node.leaf ? toBBox(child) : child);
406
376
  margin += bboxMargin(leftBBox);
407
377
  }
408
378
 
409
- for (i = M - m - 1; i >= m; i--) {
410
- child = node.children[i];
379
+ for (let i = M - m - 1; i >= m; i--) {
380
+ const child = node.children[i];
411
381
  extend(rightBBox, node.leaf ? toBBox(child) : child);
412
382
  margin += bboxMargin(rightBBox);
413
383
  }
414
384
 
415
385
  return margin;
416
- },
386
+ }
417
387
 
418
- _adjustParentBBoxes: function (bbox, path, level) {
388
+ _adjustParentBBoxes(bbox, path, level) {
419
389
  // adjust bboxes along the given tree path
420
- for (var i = level; i >= 0; i--) {
390
+ for (let i = level; i >= 0; i--) {
421
391
  extend(path[i], bbox);
422
392
  }
423
- },
393
+ }
424
394
 
425
- _condense: function (path) {
395
+ _condense(path) {
426
396
  // go through the path, removing empty nodes and updating bboxes
427
- for (var i = path.length - 1, siblings; i >= 0; i--) {
397
+ for (let i = path.length - 1, siblings; i >= 0; i--) {
428
398
  if (path[i].children.length === 0) {
429
399
  if (i > 0) {
430
400
  siblings = path[i - 1].children;
@@ -434,32 +404,13 @@ rbush.prototype = {
434
404
 
435
405
  } else calcBBox(path[i], this.toBBox);
436
406
  }
437
- },
438
-
439
- _initFormat: function (format) {
440
- // data format (minX, minY, maxX, maxY accessors)
441
-
442
- // uses eval-type function compilation instead of just accepting a toBBox function
443
- // because the algorithms are very sensitive to sorting functions performance,
444
- // so they should be dead simple and without inner calls
445
-
446
- var compareArr = ['return a', ' - b', ';'];
447
-
448
- this.compareMinX = new Function('a', 'b', compareArr.join(format[0]));
449
- this.compareMinY = new Function('a', 'b', compareArr.join(format[1]));
450
-
451
- this.toBBox = new Function('a',
452
- 'return {minX: a' + format[0] +
453
- ', minY: a' + format[1] +
454
- ', maxX: a' + format[2] +
455
- ', maxY: a' + format[3] + '};');
456
407
  }
457
- };
408
+ }
458
409
 
459
410
  function findItem(item, items, equalsFn) {
460
411
  if (!equalsFn) return items.indexOf(item);
461
412
 
462
- for (var i = 0; i < items.length; i++) {
413
+ for (let i = 0; i < items.length; i++) {
463
414
  if (equalsFn(item, items[i])) return i;
464
415
  }
465
416
  return -1;
@@ -478,8 +429,8 @@ function distBBox(node, k, p, toBBox, destNode) {
478
429
  destNode.maxX = -Infinity;
479
430
  destNode.maxY = -Infinity;
480
431
 
481
- for (var i = k, child; i < p; i++) {
482
- child = node.children[i];
432
+ for (let i = k; i < p; i++) {
433
+ const child = node.children[i];
483
434
  extend(destNode, node.leaf ? toBBox(child) : child);
484
435
  }
485
436
 
@@ -506,10 +457,10 @@ function enlargedArea(a, b) {
506
457
  }
507
458
 
508
459
  function intersectionArea(a, b) {
509
- var minX = Math.max(a.minX, b.minX),
510
- minY = Math.max(a.minY, b.minY),
511
- maxX = Math.min(a.maxX, b.maxX),
512
- maxY = Math.min(a.maxY, b.maxY);
460
+ const minX = Math.max(a.minX, b.minX);
461
+ const minY = Math.max(a.minY, b.minY);
462
+ const maxX = Math.min(a.maxX, b.maxX);
463
+ const maxY = Math.min(a.maxY, b.maxY);
513
464
 
514
465
  return Math.max(0, maxX - minX) *
515
466
  Math.max(0, maxY - minY);
@@ -531,7 +482,7 @@ function intersects(a, b) {
531
482
 
532
483
  function createNode(children) {
533
484
  return {
534
- children: children,
485
+ children,
535
486
  height: 1,
536
487
  leaf: true,
537
488
  minX: Infinity,
@@ -545,8 +496,7 @@ function createNode(children) {
545
496
  // combines selection algorithm with binary divide & conquer approach
546
497
 
547
498
  function multiSelect(arr, left, right, n, compare) {
548
- var stack = [left, right],
549
- mid;
499
+ const stack = [left, right];
550
500
 
551
501
  while (stack.length) {
552
502
  right = stack.pop();
@@ -554,7 +504,7 @@ function multiSelect(arr, left, right, n, compare) {
554
504
 
555
505
  if (right - left <= n) continue;
556
506
 
557
- mid = left + Math.ceil((right - left) / n / 2) * n;
507
+ const mid = left + Math.ceil((right - left) / n / 2) * n;
558
508
  quickselect(arr, mid, left, right, compare);
559
509
 
560
510
  stack.push(left, mid, mid, right);
@@ -0,0 +1,56 @@
1
+ {
2
+ "name": "rbush",
3
+ "version": "3.0.1",
4
+ "description": "High-performance 2D spatial index for rectangles (based on R*-tree with bulk loading and bulk insertion algorithms)",
5
+ "homepage": "https://github.com/mourner/rbush",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git://github.com/mourner/rbush.git"
9
+ },
10
+ "keywords": [
11
+ "spatial",
12
+ "tree",
13
+ "search",
14
+ "rectangle",
15
+ "index",
16
+ "math"
17
+ ],
18
+ "author": "Vladimir Agafonkin",
19
+ "license": "MIT",
20
+ "main": "rbush.js",
21
+ "module": "index.js",
22
+ "browser": "rbush.min.js",
23
+ "jsdelivr": "rbush.min.js",
24
+ "unpkg": "rbush.min.js",
25
+ "devDependencies": {
26
+ "benchmark": "^2.1.4",
27
+ "c8": "^5.0.1",
28
+ "eslint": "^6.1.0",
29
+ "eslint-config-mourner": "^3.0.0",
30
+ "esm": "^3.2.25",
31
+ "rollup": "^1.17.0",
32
+ "rollup-plugin-buble": "^0.19.8",
33
+ "rollup-plugin-node-resolve": "^5.2.0",
34
+ "rollup-plugin-terser": "^5.1.1",
35
+ "tape": "^4.11.0"
36
+ },
37
+ "scripts": {
38
+ "pretest": "eslint index.js test/test.js bench/*.js",
39
+ "test": "tape -r esm test/test.js",
40
+ "perf": "node -r esm ./bench/perf.js",
41
+ "cov": "c8 npm run test",
42
+ "build": "rollup -c",
43
+ "prepublishOnly": "npm run build"
44
+ },
45
+ "files": [
46
+ "index.js",
47
+ "rbush.js",
48
+ "rbush.min.js"
49
+ ],
50
+ "eslintConfig": {
51
+ "extends": "mourner"
52
+ },
53
+ "dependencies": {
54
+ "quickselect": "^2.0.0"
55
+ }
56
+ }