@mailwoman/registry 10.7.0 → 11.0.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 (399) hide show
  1. package/README.md +93 -98
  2. package/data/manifests/artifacts.json +32 -0
  3. package/data/manifests/coverage.json +56 -0
  4. package/data/manifests/sources.lock.json +48 -0
  5. package/data/normalized/iata-airports.json +126749 -0
  6. package/data/normalized/iso3166-1.json +2035 -0
  7. package/definitions/namespaces.json +63 -0
  8. package/definitions/sections.json +73 -0
  9. package/docs/data-policy.md +81 -0
  10. package/docs/performance.md +146 -0
  11. package/docs/rgy1.md +144 -0
  12. package/lib/artifacts/country-airport-collision.ts +26 -0
  13. package/lib/artifacts/iata-airport/membership.ts +26 -0
  14. package/lib/artifacts/iata-airport/records.ts +26 -0
  15. package/lib/artifacts/iso3166-1/alpha2-membership.ts +26 -0
  16. package/lib/artifacts/iso3166-1/alpha3-membership.ts +26 -0
  17. package/lib/artifacts/iso3166-1/records.ts +26 -0
  18. package/lib/errors.ts +44 -0
  19. package/lib/iata/airports/records.ts +174 -0
  20. package/lib/iata/airports/validate.ts +49 -0
  21. package/lib/index.ts +25 -15
  22. package/lib/inspect.ts +56 -0
  23. package/lib/iso3166/alpha2.ts +48 -0
  24. package/lib/iso3166/alpha3.ts +51 -0
  25. package/lib/iso3166/records.ts +149 -0
  26. package/lib/iso3166/relations.ts +30 -0
  27. package/lib/key.ts +146 -0
  28. package/lib/normalize.ts +31 -0
  29. package/lib/overlap/country-airport.ts +108 -0
  30. package/lib/rgy1/base64.ts +24 -0
  31. package/lib/rgy1/reader.ts +316 -0
  32. package/lib/rgy1/sections.generated.ts +79 -0
  33. package/lib/rgy1/views.ts +267 -0
  34. package/lib/types.ts +88 -74
  35. package/lib/wasm.ts +285 -0
  36. package/out/artifacts/country-airport-collision.d.ts +15 -0
  37. package/out/artifacts/country-airport-collision.d.ts.map +1 -0
  38. package/out/artifacts/country-airport-collision.js +21 -0
  39. package/out/artifacts/country-airport-collision.js.map +1 -0
  40. package/out/artifacts/iata-airport/membership.d.ts +15 -0
  41. package/out/artifacts/iata-airport/membership.d.ts.map +1 -0
  42. package/out/artifacts/iata-airport/membership.js +21 -0
  43. package/out/artifacts/iata-airport/membership.js.map +1 -0
  44. package/out/artifacts/iata-airport/records.d.ts +15 -0
  45. package/out/artifacts/iata-airport/records.d.ts.map +1 -0
  46. package/out/artifacts/iata-airport/records.js +21 -0
  47. package/out/artifacts/iata-airport/records.js.map +1 -0
  48. package/out/artifacts/iso3166-1/alpha2-membership.d.ts +15 -0
  49. package/out/artifacts/iso3166-1/alpha2-membership.d.ts.map +1 -0
  50. package/out/artifacts/iso3166-1/alpha2-membership.js +21 -0
  51. package/out/artifacts/iso3166-1/alpha2-membership.js.map +1 -0
  52. package/out/artifacts/iso3166-1/alpha3-membership.d.ts +15 -0
  53. package/out/artifacts/iso3166-1/alpha3-membership.d.ts.map +1 -0
  54. package/out/artifacts/iso3166-1/alpha3-membership.js +21 -0
  55. package/out/artifacts/iso3166-1/alpha3-membership.js.map +1 -0
  56. package/out/artifacts/iso3166-1/records.d.ts +15 -0
  57. package/out/artifacts/iso3166-1/records.d.ts.map +1 -0
  58. package/out/artifacts/iso3166-1/records.js +21 -0
  59. package/out/artifacts/iso3166-1/records.js.map +1 -0
  60. package/out/errors.d.ts +38 -0
  61. package/out/errors.d.ts.map +1 -0
  62. package/out/errors.js +35 -0
  63. package/out/errors.js.map +1 -0
  64. package/out/iata/airports/records.d.ts +44 -0
  65. package/out/iata/airports/records.d.ts.map +1 -0
  66. package/out/iata/airports/records.js +137 -0
  67. package/out/iata/airports/records.js.map +1 -0
  68. package/out/iata/airports/validate.d.ts +27 -0
  69. package/out/iata/airports/validate.d.ts.map +1 -0
  70. package/out/iata/airports/validate.js +42 -0
  71. package/out/iata/airports/validate.js.map +1 -0
  72. package/out/index.d.ts +19 -15
  73. package/out/index.d.ts.map +1 -1
  74. package/out/index.js +14 -15
  75. package/out/index.js.map +1 -1
  76. package/out/inspect.d.ts +38 -0
  77. package/out/inspect.d.ts.map +1 -0
  78. package/out/inspect.js +33 -0
  79. package/out/inspect.js.map +1 -0
  80. package/out/iso3166/alpha2.d.ts +24 -0
  81. package/out/iso3166/alpha2.d.ts.map +1 -0
  82. package/out/iso3166/alpha2.js +41 -0
  83. package/out/iso3166/alpha2.js.map +1 -0
  84. package/out/iso3166/alpha3.d.ts +29 -0
  85. package/out/iso3166/alpha3.d.ts.map +1 -0
  86. package/out/iso3166/alpha3.js +44 -0
  87. package/out/iso3166/alpha3.js.map +1 -0
  88. package/out/iso3166/records.d.ts +38 -0
  89. package/out/iso3166/records.d.ts.map +1 -0
  90. package/out/iso3166/records.js +105 -0
  91. package/out/iso3166/records.js.map +1 -0
  92. package/out/iso3166/relations.d.ts +20 -0
  93. package/out/iso3166/relations.d.ts.map +1 -0
  94. package/out/iso3166/relations.js +27 -0
  95. package/out/iso3166/relations.js.map +1 -0
  96. package/out/key.d.ts +68 -0
  97. package/out/key.d.ts.map +1 -0
  98. package/out/key.js +122 -0
  99. package/out/key.js.map +1 -0
  100. package/out/normalize.d.ts +25 -0
  101. package/out/normalize.d.ts.map +1 -0
  102. package/out/normalize.js +21 -0
  103. package/out/normalize.js.map +1 -0
  104. package/out/overlap/country-airport.d.ts +57 -0
  105. package/out/overlap/country-airport.d.ts.map +1 -0
  106. package/out/overlap/country-airport.js +71 -0
  107. package/out/overlap/country-airport.js.map +1 -0
  108. package/out/rgy1/base64.d.ts +15 -0
  109. package/out/rgy1/base64.d.ts.map +1 -0
  110. package/out/rgy1/base64.js +22 -0
  111. package/out/rgy1/base64.js.map +1 -0
  112. package/out/rgy1/reader.d.ts +103 -0
  113. package/out/rgy1/reader.d.ts.map +1 -0
  114. package/out/rgy1/reader.js +230 -0
  115. package/out/rgy1/reader.js.map +1 -0
  116. package/out/rgy1/sections.generated.d.ts +54 -0
  117. package/out/rgy1/sections.generated.d.ts.map +1 -0
  118. package/out/rgy1/sections.generated.js +69 -0
  119. package/out/rgy1/sections.generated.js.map +1 -0
  120. package/out/rgy1/views.d.ts +96 -0
  121. package/out/rgy1/views.d.ts.map +1 -0
  122. package/out/rgy1/views.js +218 -0
  123. package/out/rgy1/views.js.map +1 -0
  124. package/out/sdk/fetch.d.ts +53 -0
  125. package/out/sdk/fetch.d.ts.map +1 -0
  126. package/out/sdk/fetch.js +107 -0
  127. package/out/sdk/fetch.js.map +1 -0
  128. package/out/sdk/fetch.run.d.ts +14 -0
  129. package/out/sdk/fetch.run.d.ts.map +1 -0
  130. package/out/sdk/fetch.run.js +20 -0
  131. package/out/sdk/fetch.run.js.map +1 -0
  132. package/out/sdk/sources.d.ts +111 -0
  133. package/out/sdk/sources.d.ts.map +1 -0
  134. package/out/sdk/sources.js +98 -0
  135. package/out/sdk/sources.js.map +1 -0
  136. package/out/tools/artifact-path.d.ts +10 -0
  137. package/out/tools/artifact-path.d.ts.map +1 -0
  138. package/out/tools/artifact-path.js +12 -0
  139. package/out/tools/artifact-path.js.map +1 -0
  140. package/out/tools/bench.run.d.ts +19 -0
  141. package/out/tools/bench.run.d.ts.map +1 -0
  142. package/out/tools/bench.run.js +204 -0
  143. package/out/tools/bench.run.js.map +1 -0
  144. package/out/tools/build-wasm.run.d.ts +18 -0
  145. package/out/tools/build-wasm.run.d.ts.map +1 -0
  146. package/out/tools/build-wasm.run.js +71 -0
  147. package/out/tools/build-wasm.run.js.map +1 -0
  148. package/out/tools/generate-sections.run.d.ts +13 -0
  149. package/out/tools/generate-sections.run.d.ts.map +1 -0
  150. package/out/tools/generate-sections.run.js +136 -0
  151. package/out/tools/generate-sections.run.js.map +1 -0
  152. package/out/tools/generate.run.d.ts +18 -0
  153. package/out/tools/generate.run.d.ts.map +1 -0
  154. package/out/tools/generate.run.js +118 -0
  155. package/out/tools/generate.run.js.map +1 -0
  156. package/out/tools/normalize.d.ts +155 -0
  157. package/out/tools/normalize.d.ts.map +1 -0
  158. package/out/tools/normalize.js +303 -0
  159. package/out/tools/normalize.js.map +1 -0
  160. package/out/tools/normalize.run.d.ts +14 -0
  161. package/out/tools/normalize.run.d.ts.map +1 -0
  162. package/out/tools/normalize.run.js +29 -0
  163. package/out/tools/normalize.run.js.map +1 -0
  164. package/out/types.d.ts +90 -76
  165. package/out/types.d.ts.map +1 -1
  166. package/out/types.js +20 -4
  167. package/out/types.js.map +1 -1
  168. package/out/wasm.d.ts +98 -0
  169. package/out/wasm.d.ts.map +1 -0
  170. package/out/wasm.js +137 -0
  171. package/out/wasm.js.map +1 -0
  172. package/package.json +49 -28
  173. package/sdk/fetch.run.ts +24 -0
  174. package/sdk/fetch.ts +146 -0
  175. package/sdk/sources.ts +162 -0
  176. package/tools/artifact-path.ts +12 -0
  177. package/tools/bench.run.ts +265 -0
  178. package/tools/build-wasm.run.ts +82 -0
  179. package/tools/generate-sections.run.ts +152 -0
  180. package/tools/generate.run.ts +146 -0
  181. package/tools/normalize.run.ts +36 -0
  182. package/tools/normalize.ts +474 -0
  183. package/wasm/registry-simd.wasm +0 -0
  184. package/wasm/registry.wasm +0 -0
  185. package/lib/address-key.ts +0 -46
  186. package/lib/geocode-handler.ts +0 -37
  187. package/lib/geojson.ts +0 -73
  188. package/lib/ingest.ts +0 -349
  189. package/lib/learned-scorer.ts +0 -134
  190. package/lib/map-html.ts +0 -287
  191. package/lib/models/crosssource-gbt-en-us.ts +0 -43
  192. package/lib/models/dedup-gbt-en-us.ts +0 -47
  193. package/lib/models/org-crosssource-gbt-en-us.ts +0 -43
  194. package/lib/reconcile.ts +0 -239
  195. package/lib/resolve.ts +0 -570
  196. package/out/address-key.d.ts +0 -34
  197. package/out/address-key.d.ts.map +0 -1
  198. package/out/address-key.js +0 -41
  199. package/out/address-key.js.map +0 -1
  200. package/out/geocode-handler.d.ts +0 -20
  201. package/out/geocode-handler.d.ts.map +0 -1
  202. package/out/geocode-handler.js +0 -29
  203. package/out/geocode-handler.js.map +0 -1
  204. package/out/geojson.d.ts +0 -28
  205. package/out/geojson.d.ts.map +0 -1
  206. package/out/geojson.js +0 -63
  207. package/out/geojson.js.map +0 -1
  208. package/out/ingest.d.ts +0 -173
  209. package/out/ingest.d.ts.map +0 -1
  210. package/out/ingest.js +0 -185
  211. package/out/ingest.js.map +0 -1
  212. package/out/learned-scorer.d.ts +0 -61
  213. package/out/learned-scorer.d.ts.map +0 -1
  214. package/out/learned-scorer.js +0 -91
  215. package/out/learned-scorer.js.map +0 -1
  216. package/out/map-html.d.ts +0 -39
  217. package/out/map-html.d.ts.map +0 -1
  218. package/out/map-html.js +0 -220
  219. package/out/map-html.js.map +0 -1
  220. package/out/models/crosssource-gbt-en-us.d.ts +0 -45
  221. package/out/models/crosssource-gbt-en-us.d.ts.map +0 -1
  222. package/out/models/crosssource-gbt-en-us.js +0 -40
  223. package/out/models/crosssource-gbt-en-us.js.map +0 -1
  224. package/out/models/dedup-gbt-en-us.d.ts +0 -44
  225. package/out/models/dedup-gbt-en-us.d.ts.map +0 -1
  226. package/out/models/dedup-gbt-en-us.js +0 -44
  227. package/out/models/dedup-gbt-en-us.js.map +0 -1
  228. package/out/models/org-crosssource-gbt-en-us.d.ts +0 -45
  229. package/out/models/org-crosssource-gbt-en-us.d.ts.map +0 -1
  230. package/out/models/org-crosssource-gbt-en-us.js +0 -40
  231. package/out/models/org-crosssource-gbt-en-us.js.map +0 -1
  232. package/out/reconcile.d.ts +0 -96
  233. package/out/reconcile.d.ts.map +0 -1
  234. package/out/reconcile.js +0 -127
  235. package/out/reconcile.js.map +0 -1
  236. package/out/resolve.d.ts +0 -264
  237. package/out/resolve.d.ts.map +0 -1
  238. package/out/resolve.js +0 -282
  239. package/out/resolve.js.map +0 -1
  240. package/out/tools/coverage-reconciliation.d.ts +0 -67
  241. package/out/tools/coverage-reconciliation.d.ts.map +0 -1
  242. package/out/tools/coverage-reconciliation.js +0 -113
  243. package/out/tools/coverage-reconciliation.js.map +0 -1
  244. package/out/tools/cross/dataset-correlation.d.ts +0 -61
  245. package/out/tools/cross/dataset-correlation.d.ts.map +0 -1
  246. package/out/tools/cross/dataset-correlation.js +0 -244
  247. package/out/tools/cross/dataset-correlation.js.map +0 -1
  248. package/out/tools/cross/source-threshold-sweep.d.ts +0 -60
  249. package/out/tools/cross/source-threshold-sweep.d.ts.map +0 -1
  250. package/out/tools/cross/source-threshold-sweep.js +0 -264
  251. package/out/tools/cross/source-threshold-sweep.js.map +0 -1
  252. package/out/tools/dedup-ceiling.d.ts +0 -62
  253. package/out/tools/dedup-ceiling.d.ts.map +0 -1
  254. package/out/tools/dedup-ceiling.js +0 -171
  255. package/out/tools/dedup-ceiling.js.map +0 -1
  256. package/out/tools/eval-geocoder.d.ts +0 -68
  257. package/out/tools/eval-geocoder.d.ts.map +0 -1
  258. package/out/tools/eval-geocoder.js +0 -13
  259. package/out/tools/eval-geocoder.js.map +0 -1
  260. package/out/tools/geocoder/namesake-probe.d.ts +0 -33
  261. package/out/tools/geocoder/namesake-probe.d.ts.map +0 -1
  262. package/out/tools/geocoder/namesake-probe.js +0 -60
  263. package/out/tools/geocoder/namesake-probe.js.map +0 -1
  264. package/out/tools/geocoder/vs-provided-coords.d.ts +0 -53
  265. package/out/tools/geocoder/vs-provided-coords.d.ts.map +0 -1
  266. package/out/tools/geocoder/vs-provided-coords.js +0 -161
  267. package/out/tools/geocoder/vs-provided-coords.js.map +0 -1
  268. package/out/tools/gold-set-sample.d.ts +0 -67
  269. package/out/tools/gold-set-sample.d.ts.map +0 -1
  270. package/out/tools/gold-set-sample.js +0 -81
  271. package/out/tools/gold-set-sample.js.map +0 -1
  272. package/out/tools/learned/scorer/clustering-eval.d.ts +0 -77
  273. package/out/tools/learned/scorer/clustering-eval.d.ts.map +0 -1
  274. package/out/tools/learned/scorer/clustering-eval.js +0 -207
  275. package/out/tools/learned/scorer/clustering-eval.js.map +0 -1
  276. package/out/tools/learned/scorer/crossstate-eval.d.ts +0 -65
  277. package/out/tools/learned/scorer/crossstate-eval.d.ts.map +0 -1
  278. package/out/tools/learned/scorer/crossstate-eval.js +0 -168
  279. package/out/tools/learned/scorer/crossstate-eval.js.map +0 -1
  280. package/out/tools/learned/scorer/eval.d.ts +0 -64
  281. package/out/tools/learned/scorer/eval.d.ts.map +0 -1
  282. package/out/tools/learned/scorer/eval.js +0 -275
  283. package/out/tools/learned/scorer/eval.js.map +0 -1
  284. package/out/tools/matcher-scale.d.ts +0 -40
  285. package/out/tools/matcher-scale.d.ts.map +0 -1
  286. package/out/tools/matcher-scale.js +0 -111
  287. package/out/tools/matcher-scale.js.map +0 -1
  288. package/out/tools/nppes/dedup-benchmark.d.ts +0 -82
  289. package/out/tools/nppes/dedup-benchmark.d.ts.map +0 -1
  290. package/out/tools/nppes/dedup-benchmark.js +0 -226
  291. package/out/tools/nppes/dedup-benchmark.js.map +0 -1
  292. package/out/tools/nppes/org-name.d.ts +0 -15
  293. package/out/tools/nppes/org-name.d.ts.map +0 -1
  294. package/out/tools/nppes/org-name.js +0 -6
  295. package/out/tools/nppes/org-name.js.map +0 -1
  296. package/out/tools/nppes/overmerge-packet.d.ts +0 -43
  297. package/out/tools/nppes/overmerge-packet.d.ts.map +0 -1
  298. package/out/tools/nppes/overmerge-packet.js +0 -54
  299. package/out/tools/nppes/overmerge-packet.js.map +0 -1
  300. package/out/tools/nppes/report.d.ts +0 -97
  301. package/out/tools/nppes/report.d.ts.map +0 -1
  302. package/out/tools/nppes/report.js +0 -178
  303. package/out/tools/nppes/report.js.map +0 -1
  304. package/out/tools/nppes/sample.d.ts +0 -101
  305. package/out/tools/nppes/sample.d.ts.map +0 -1
  306. package/out/tools/nppes/sample.js +0 -127
  307. package/out/tools/nppes/sample.js.map +0 -1
  308. package/out/tools/nppes/scoring.d.ts +0 -37
  309. package/out/tools/nppes/scoring.d.ts.map +0 -1
  310. package/out/tools/nppes/scoring.js +0 -81
  311. package/out/tools/nppes/scoring.js.map +0 -1
  312. package/out/tools/nppes/settings.d.ts +0 -41
  313. package/out/tools/nppes/settings.d.ts.map +0 -1
  314. package/out/tools/nppes/settings.js +0 -79
  315. package/out/tools/nppes/settings.js.map +0 -1
  316. package/out/tools/nppes/truth-grains.d.ts +0 -63
  317. package/out/tools/nppes/truth-grains.d.ts.map +0 -1
  318. package/out/tools/nppes/truth-grains.js +0 -139
  319. package/out/tools/nppes/truth-grains.js.map +0 -1
  320. package/out/tools/shared.d.ts +0 -325
  321. package/out/tools/shared.d.ts.map +0 -1
  322. package/out/tools/shared.js +0 -453
  323. package/out/tools/shared.js.map +0 -1
  324. package/out/tools/train/cross-gbt.d.ts +0 -89
  325. package/out/tools/train/cross-gbt.d.ts.map +0 -1
  326. package/out/tools/train/cross-gbt.js +0 -132
  327. package/out/tools/train/cross-gbt.js.map +0 -1
  328. package/out/tools/train/gbt.d.ts +0 -85
  329. package/out/tools/train/gbt.d.ts.map +0 -1
  330. package/out/tools/train/gbt.js +0 -155
  331. package/out/tools/train/gbt.js.map +0 -1
  332. package/out/tools/train/org-cross-gbt.d.ts +0 -85
  333. package/out/tools/train/org-cross-gbt.d.ts.map +0 -1
  334. package/out/tools/train/org-cross-gbt.js +0 -122
  335. package/out/tools/train/org-cross-gbt.js.map +0 -1
  336. package/out/tools/txhhsc-to-oarow.d.ts +0 -42
  337. package/out/tools/txhhsc-to-oarow.d.ts.map +0 -1
  338. package/out/tools/txhhsc-to-oarow.js +0 -78
  339. package/out/tools/txhhsc-to-oarow.js.map +0 -1
  340. package/out/tools/viz/browser.d.ts +0 -31
  341. package/out/tools/viz/browser.d.ts.map +0 -1
  342. package/out/tools/viz/browser.js +0 -26
  343. package/out/tools/viz/browser.js.map +0 -1
  344. package/out/tools/viz/cross-dataset-map.d.ts +0 -39
  345. package/out/tools/viz/cross-dataset-map.d.ts.map +0 -1
  346. package/out/tools/viz/cross-dataset-map.js +0 -84
  347. package/out/tools/viz/cross-dataset-map.js.map +0 -1
  348. package/out/tools/viz/geocode-first-surface.d.ts +0 -36
  349. package/out/tools/viz/geocode-first-surface.d.ts.map +0 -1
  350. package/out/tools/viz/geocode-first-surface.js +0 -234
  351. package/out/tools/viz/geocode-first-surface.js.map +0 -1
  352. package/out/tools/viz/render/map.d.ts +0 -42
  353. package/out/tools/viz/render/map.d.ts.map +0 -1
  354. package/out/tools/viz/render/map.js +0 -40
  355. package/out/tools/viz/render/map.js.map +0 -1
  356. package/out/tools/viz/render.d.ts +0 -46
  357. package/out/tools/viz/render.d.ts.map +0 -1
  358. package/out/tools/viz/render.js +0 -49
  359. package/out/tools/viz/render.js.map +0 -1
  360. package/out/tools/viz/source-provenance-map.d.ts +0 -57
  361. package/out/tools/viz/source-provenance-map.d.ts.map +0 -1
  362. package/out/tools/viz/source-provenance-map.js +0 -82
  363. package/out/tools/viz/source-provenance-map.js.map +0 -1
  364. package/out/tools/viz/yardstick-figure.d.ts +0 -22
  365. package/out/tools/viz/yardstick-figure.d.ts.map +0 -1
  366. package/out/tools/viz/yardstick-figure.js +0 -106
  367. package/out/tools/viz/yardstick-figure.js.map +0 -1
  368. package/tools/coverage-reconciliation.ts +0 -192
  369. package/tools/cross/dataset-correlation.ts +0 -380
  370. package/tools/cross/source-threshold-sweep.ts +0 -416
  371. package/tools/dedup-ceiling.ts +0 -225
  372. package/tools/eval-geocoder.ts +0 -77
  373. package/tools/geocoder/namesake-probe.ts +0 -91
  374. package/tools/geocoder/vs-provided-coords.ts +0 -232
  375. package/tools/gold-set-sample.ts +0 -147
  376. package/tools/learned/scorer/clustering-eval.ts +0 -349
  377. package/tools/learned/scorer/crossstate-eval.ts +0 -280
  378. package/tools/learned/scorer/eval.ts +0 -429
  379. package/tools/matcher-scale.ts +0 -185
  380. package/tools/nppes/dedup-benchmark.ts +0 -364
  381. package/tools/nppes/org-name.ts +0 -15
  382. package/tools/nppes/overmerge-packet.ts +0 -98
  383. package/tools/nppes/report.ts +0 -380
  384. package/tools/nppes/sample.ts +0 -250
  385. package/tools/nppes/scoring.ts +0 -115
  386. package/tools/nppes/settings.ts +0 -102
  387. package/tools/nppes/truth-grains.ts +0 -181
  388. package/tools/shared.ts +0 -743
  389. package/tools/train/cross-gbt.ts +0 -214
  390. package/tools/train/gbt.ts +0 -261
  391. package/tools/train/org-cross-gbt.ts +0 -189
  392. package/tools/txhhsc-to-oarow.ts +0 -118
  393. package/tools/viz/browser.ts +0 -41
  394. package/tools/viz/cross-dataset-map.ts +0 -133
  395. package/tools/viz/geocode-first-surface.ts +0 -305
  396. package/tools/viz/render/map.ts +0 -61
  397. package/tools/viz/render.ts +0 -103
  398. package/tools/viz/source-provenance-map.ts +0 -154
  399. package/tools/viz/yardstick-figure.ts +0 -197
@@ -0,0 +1 @@
1
+ {"version":3,"file":"normalize.run.js","sourceRoot":"","sources":["../../tools/normalize.run.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAC/E,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAA;AAE5D,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAC3C,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AAEtE,MAAM,IAAI,GAAG,MAAM,cAAc,EAAE,CAAA;AAEnC,IAAI,CAAC,IAAI;IAAE,MAAM,IAAI,KAAK,CAAC,4EAA4E,CAAC,CAAA;AAExG,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,CAAA;AACvE,MAAM,IAAI,GAAG,oBAAoB,CAAC,UAAU,EAAE,MAAM,CAAC,CAAA;AAErD,MAAM,cAAc,CAAC,gBAAgB,CAAC,SAAS,CAAC,EAAE,IAAI,CAAC,YAAY,EAAE,gBAAgB,CAAC,CAAC,CAAA;AACvF,MAAM,cAAc,CAAC,gBAAgB,CAAC,QAAQ,CAAC,EAAE,IAAI,CAAC,YAAY,EAAE,oBAAoB,CAAC,CAAC,CAAA;AAC1F,MAAM,kBAAkB,CAAC,QAAQ,EAAE,IAAI,CAAC,WAAW,EAAE,eAAe,CAAC,CAAC,CAAA;AAEtE,OAAO,CAAC,GAAG,CACV,cAAc,SAAS,CAAC,OAAO,CAAC,MAAM,KAAK,aAAa,CAAC,QAAQ,CAAC,UAAU,CAAC,kBAAkB,CAAE,CAAC,QAAQ,CAAC,GAAG,CAC9G,CAAA;AACD,OAAO,CAAC,GAAG,CAAC,aAAa,QAAQ,CAAC,OAAO,CAAC,MAAM,KAAK,aAAa,CAAC,QAAQ,CAAC,UAAU,CAAC,eAAe,CAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAA;AACtH,OAAO,CAAC,GAAG,CAAC,kBAAkB,QAAQ,CAAC,UAAU,CAAC,wBAAwB,CAAE,CAAC,KAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA"}
package/out/types.d.ts CHANGED
@@ -3,106 +3,120 @@
3
3
  * @license AGPL-3.0
4
4
  * @author Teffen Ellis, et al.
5
5
  *
6
- * The application's data shapes — the messy record that goes in and the canonical entity that
7
- * comes out. Plain interfaces over the `@mailwoman/record` types.
6
+ * Branded identifier types. A brand is a declaration-only unique symbol, so a branded value is a plain string at
7
+ * runtime and the compiler refuses to pass one namespace's code where another's is expected.
8
+ *
9
+ * A branded value records that a validator accepted it under a documented profile at the time of the call. The
10
+ * issuing authority's later assignments are outside what the brand records.
8
11
  */
9
- import type { ResolutionTier } from "@mailwoman/annotations/geo";
10
- import type { OrganizationName, PersonName, PostalAddress } from "@mailwoman/record";
11
12
  /**
12
- * A single source record: one row of a messy contact/organization dataset, after normalization.
13
+ * ISO 3166-1 country code namespaces.
14
+ *
15
+ * ISO 3166-2 codes subdivisions and is a separate brand, outside country codes.
13
16
  */
14
- export interface SourceRecord {
15
- /**
16
- * Stable identifier within the input (row id, primary key…).
17
- */
18
- id: string;
17
+ export declare namespace ISO {
18
+ const $CountryCode_3166_1_Alpha2: unique symbol;
19
+ const $CountryCode_3166_1_Alpha3: unique symbol;
20
+ const $CountryCode_3166_1_Numeric: unique symbol;
19
21
  /**
20
- * Provenance: which file / dataset this came from.
22
+ * A two-letter country code the profile holds as officially assigned, such as `GB`.
21
23
  */
22
- source: string | null;
24
+ type CountryCode_3166_1_Alpha2 = string & {
25
+ readonly [$CountryCode_3166_1_Alpha2]: true;
26
+ };
23
27
  /**
24
- * Parsed person name, when the record is a contact.
28
+ * A three-letter country code the profile holds as officially assigned, such as `GBR`.
25
29
  */
26
- name: PersonName | null;
30
+ type CountryCode_3166_1_Alpha3 = string & {
31
+ readonly [$CountryCode_3166_1_Alpha3]: true;
32
+ };
27
33
  /**
28
- * Canonicalized organization name, when the record is an org.
34
+ * A three-digit country code, kept as a string so `036` keeps its leading zero.
29
35
  */
30
- organization: OrganizationName | null;
36
+ type CountryCode_3166_1_Numeric = string & {
37
+ readonly [$CountryCode_3166_1_Numeric]: true;
38
+ };
39
+ }
40
+ /**
41
+ * IATA location code namespaces.
42
+ */
43
+ export declare namespace IATA {
44
+ const $LocationCode: unique symbol;
45
+ const $AirportCode: unique symbol;
31
46
  /**
32
- * The address, normalized + (ideally) geocoded.
47
+ * A three-letter IATA location code of any kind.
33
48
  */
34
- address: PostalAddress | null;
35
- phone: string | null;
36
- email: string | null;
49
+ type LocationCode = string & {
50
+ readonly [$LocationCode]: true;
51
+ };
37
52
  /**
38
- * Additional secondary-identifier fields, normalized.
39
- *
40
- * Anything that helps tell two records apart or confirm they're the same beyond
41
- * name/org/address/phone (an authorized-official name, a provider taxonomy, a license number…).
53
+ * A location code the profile holds for an airport.
42
54
  *
43
- * Used as extra comparisons + corroborators when the model is built with matching `discriminators`.
44
- * Keyed by a stable field name the model references.
55
+ * The open profile holds only airports, so every code it accepts is one of these.
56
+ * A metropolitan code is outside the profile and is refused.
45
57
  */
46
- attributes: Record<string, string> | null;
47
- /**
48
- * The original row, verbatim, for audit.
49
- */
50
- raw: Record<string, string> | null;
58
+ type AirportCode = LocationCode & {
59
+ readonly [$AirportCode]: true;
60
+ };
51
61
  }
52
62
  /**
53
- * A resolved canonical entity: a cluster of source records judged to be the same real-world thing.
63
+ * ICAO location indicator namespace.
54
64
  */
55
- export interface ResolvedEntity {
56
- /**
57
- * Identifier assigned to the entity.
58
- */
59
- id: string;
60
- /**
61
- * The source records that resolved to this entity.
62
- */
63
- records: SourceRecord[];
64
- /**
65
- * The most complete record, used as the entity's canonical face.
66
- */
67
- representative: SourceRecord;
68
- /**
69
- * The entity's location, from the representative's geocode.
70
- */
71
- coordinate: {
72
- latitude: number;
73
- longitude: number;
74
- } | null;
65
+ export declare namespace ICAO {
66
+ const $LocationIndicator: unique symbol;
75
67
  /**
76
- * Weakest within-cluster link weight in bits (how tightly it holds together); `null` for a singleton.
68
+ * A four-character ICAO location indicator, such as `EGLL`.
77
69
  */
78
- cohesion: number | null;
70
+ type LocationIndicator = string & {
71
+ readonly [$LocationIndicator]: true;
72
+ };
79
73
  }
80
74
  /**
81
- * The three reconciliation buckets an entity can fall into.
75
+ * The status a country record holds.
76
+ */
77
+ export declare const CountryStatus: {
78
+ readonly OfficiallyAssigned: "officially-assigned";
79
+ readonly FormerlyUsed: "formerly-used";
80
+ };
81
+ export type CountryStatus = (typeof CountryStatus)[keyof typeof CountryStatus];
82
+ /**
83
+ * How an airport record's country column relates to ISO 3166-1.
82
84
  */
83
- export type ReconciliationBucket = "enrolled" | "eligible-not-enrolled" | "funded-not-eligible";
84
- export interface EntityGeoData {
85
+ export declare const AirportCountryStatus: {
86
+ readonly ISO3166_1: "iso3166-1";
87
+ readonly SourceExtension: "source-extension";
88
+ readonly Unstated: "unstated";
89
+ };
90
+ export type AirportCountryStatus = (typeof AirportCountryStatus)[keyof typeof AirportCountryStatus];
91
+ /**
92
+ * One country record as the records artifact holds it.
93
+ */
94
+ export interface CountryRecord {
85
95
  entityID: string;
86
- sourceIDs: string[];
87
- recordCount: number;
88
- cohesion: number | null;
89
- sources: string[];
90
- name: string | null;
91
- organization: string | null;
92
- address: string | null;
93
- geocodeTier: ResolutionTier | null;
94
- bucket: ReconciliationBucket | null;
96
+ alpha2: string;
97
+ alpha3: string;
98
+ numeric: string;
99
+ name: string;
100
+ status: CountryStatus;
95
101
  }
96
102
  /**
97
- * Feature properties the map renderer consumes — {@link EntityGeoData} with every
98
- * field optional, plus an unconstrained `bucket`.
99
- *
100
- * The renderer assigns a color per distinct bucket value in first-seen order and builds
101
- * its legend from that set, so a bucket is any categorical label rather than only a
102
- * {@link ReconciliationBucket}; and a collection assembled from something other than resolved
103
- * entities (raw address points, links read back from a file) have no entity id or display name.
103
+ * One airport record as the records artifact holds it.
104
104
  */
105
- export type MapFeatureData = Partial<Omit<EntityGeoData, "bucket">> & {
106
- bucket?: string | null;
107
- };
105
+ export interface AirportRecord {
106
+ entityID: string;
107
+ iata: IATA.AirportCode;
108
+ icao: ICAO.LocationIndicator | null;
109
+ name: string;
110
+ facility: string;
111
+ scheduledService: boolean;
112
+ latitude: number;
113
+ longitude: number;
114
+ /**
115
+ * The country as the source spells it, or null.
116
+ */
117
+ country: string | null;
118
+ countryStatus: AirportCountryStatus;
119
+ municipality: string | null;
120
+ isoRegion: string | null;
121
+ }
108
122
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../lib/types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAChE,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAEpF;;GAEG;AACH,MAAM,WAAW,YAAY;IAC5B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB;;OAEG;IACH,IAAI,EAAE,UAAU,GAAG,IAAI,CAAA;IACvB;;OAEG;IACH,YAAY,EAAE,gBAAgB,G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AAG,IAAI,CAAA;IAC3B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;CACxB"}
package/out/types.js CHANGED
@@ -3,9 +3,25 @@
3
3
  * @license AGPL-3.0
4
4
  * @author Teffen Ellis, et al.
5
5
  *
6
- * The application's data shapes — the messy record that goes in and the canonical entity that
7
- * comes out. Plain interfaces over the `@mailwoman/record` types.
6
+ * Branded identifier types. A brand is a declaration-only unique symbol, so a branded value is a plain string at
7
+ * runtime and the compiler refuses to pass one namespace's code where another's is expected.
8
+ *
9
+ * A branded value records that a validator accepted it under a documented profile at the time of the call. The
10
+ * issuing authority's later assignments are outside what the brand records.
11
+ */
12
+ /**
13
+ * The status a country record holds.
14
+ */
15
+ export const CountryStatus = {
16
+ OfficiallyAssigned: "officially-assigned",
17
+ FormerlyUsed: "formerly-used",
18
+ };
19
+ /**
20
+ * How an airport record's country column relates to ISO 3166-1.
8
21
  */
9
- export {};
10
- // #endregion
22
+ export const AirportCountryStatus = {
23
+ ISO3166_1: "iso3166-1",
24
+ SourceExtension: "source-extension",
25
+ Unstated: "unstated",
26
+ };
11
27
  //# sourceMappingURL=types.js.map
package/out/types.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../lib/types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;;AAsGH,aAAa"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../lib/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AA6DH;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC5B,kBAAkB,EAAE,qBAAqB;IACzC,YAAY,EAAE,eAAe;CACpB,CAAA;AAIV;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG;IACnC,SAAS,EAAE,WAAW;IACtB,eAAe,EAAE,kBAAkB;IACnC,QAAQ,EAAE,UAAU;CACX,CAAA"}
package/out/wasm.d.ts ADDED
@@ -0,0 +1,98 @@
1
+ /**
2
+ * @copyright Sister Software
3
+ * @license AGPL-3.0
4
+ * @author Teffen Ellis, et al.
5
+ *
6
+ * The WebAssembly batch adapter over `crates/registry-wasm`.
7
+ *
8
+ * Initialization is explicit: the caller passes the module's bytes or a compiled `WebAssembly.Module`, and this
9
+ * module compiles the module inside `createRegistry` and at no other time. `registryWasmURL` locates the committed
10
+ * binaries for a caller that loads them itself, and `preferredWasmVariant` reports whether the host runs `simd128`.
11
+ * A batch call stages the packed codes in linear memory, crosses the boundary once, and copies the masks into the
12
+ * caller's buffer. The staging buffers are kept and reused while they are large enough.
13
+ */
14
+ /**
15
+ * The location of a committed `wasm/registry*.wasm`, resolved from this module.
16
+ */
17
+ export declare function registryWasmURL(variant: WasmVariant): URL;
18
+ export type WasmVariant = "simd" | "scalar";
19
+ /**
20
+ * The variant this host can run: `simd` when it validates the probe, else `scalar`.
21
+ */
22
+ export declare function preferredWasmVariant(): WasmVariant;
23
+ /**
24
+ * A compiled WebAssembly module, as a Worker runtime supplies it.
25
+ *
26
+ * The type is opaque because the Node type preset omits the DOM library that declares
27
+ * `WebAssembly`, and this package's declarations type-check without it.
28
+ */
29
+ export interface RegistryCompiledModule {
30
+ readonly [Symbol.toStringTag]: string;
31
+ }
32
+ /**
33
+ * The bytes or compiled module the runtime instantiates from.
34
+ */
35
+ export type RegistryWasmSource = RegistryCompiledModule | ArrayBuffer | Uint8Array<ArrayBuffer>;
36
+ /**
37
+ * The mask bits `classifyManyInto` writes, equal to `registry_core::lookup::mask`.
38
+ */
39
+ export declare const ClassifyMask: {
40
+ readonly Country: 1;
41
+ readonly Airport: 2;
42
+ readonly Collision: 4;
43
+ readonly Invalid: 128;
44
+ };
45
+ /**
46
+ * The artifacts the batch kernels read.
47
+ * Each defaults to the built profile's module.
48
+ */
49
+ export interface RegistryWasmArtifacts {
50
+ alpha3?: Uint8Array;
51
+ airport?: Uint8Array;
52
+ collision?: Uint8Array;
53
+ }
54
+ /**
55
+ * Options for {@link createRegistry}.
56
+ */
57
+ export interface CreateRegistryOptions {
58
+ /**
59
+ * The module bytes, or a module the host compiled.
60
+ */
61
+ wasm: RegistryWasmSource;
62
+ artifacts?: RegistryWasmArtifacts;
63
+ }
64
+ /**
65
+ * An instantiated registry runtime.
66
+ */
67
+ export interface RegistryWasm {
68
+ /**
69
+ * Whether the instantiated module was built with the `simd128` kernels.
70
+ */
71
+ readonly simd: boolean;
72
+ countryAirport: {
73
+ /**
74
+ * Classifies `count` packed three-byte codes into `out`, one {@link ClassifyMask} byte each.
75
+ *
76
+ * `packed` holds `count * 3` bytes.
77
+ * Returns the count written.
78
+ * Throws on an output shorter than `count`.
79
+ */
80
+ classifyManyInto(packed: Uint8Array, out: Uint8Array, count?: number): number;
81
+ /**
82
+ * Classifies an array of strings, allocating the packed input and the result.
83
+ * For callers that have no bytes.
84
+ */
85
+ classify(codes: readonly string[]): Uint8Array;
86
+ };
87
+ /**
88
+ * Frees the staging buffers.
89
+ *
90
+ * The loaded artifacts stay in memory for the instance's lifetime.
91
+ */
92
+ dispose(): void;
93
+ }
94
+ /**
95
+ * Instantiates the module and loads the three bitsets of the collision batch.
96
+ */
97
+ export declare function createRegistry(options: CreateRegistryOptions): Promise<RegistryWasm>;
98
+ //# sourceMappingURL=wasm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wasm.d.ts","sourceRoot":"","sources":["../lib/wasm.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAOH;;GAEG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,WAAW,GAAG,GAAG,CAEzD;AAED,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,QAAQ,CAAA;AAY3C;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,WAAW,CAElD;AAED;;;;;GAKG;AACH,MAAM,WAAW,sBAAsB;IACtC,QAAQ,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CACrC;AAED;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,sBAAsB,GAAG,WAAW,GAAG,UAAU,CAAC,WAAW,CAAC,CAAA;AA8C/F;;GAEG;AACH,eAAO,MAAM,YAAY;aACxB,OAAO,EAAE,CAAC;aACV,OAAO,EAAE,CAAC;aACV,SAAS,EAAE,CAAC;aACZ,OAAO,EAAE,GAAI;CACJ,CAAA;AAEV;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACrC,MAAM,CAAC,EAAE,UAAU,CAAA;IACnB,OAAO,CAAC,EAAE,UAAU,CAAA;IACpB,SAAS,CAAC,EAAE,UAAU,CAAA;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACrC;;OAEG;IACH,IAAI,EAAE,kBAAkB,CAAA;IACxB,SAAS,CAAC,EAAE,qBAAqB,CAAA;CACjC;AA4BD;;GAEG;AACH,MAAM,WAAW,YAAY;IAC5B;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAA;IAEtB,cAAc,EAAE;QACf;;;;;;WAMG;QACH,gBAAgB,CAAC,MAAM,EAAE,UAAU,EAAE,GAAG,EAAE,UAAU,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;QAE7E;;;WAGG;QACH,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,UAAU,CAAA;KAC9C,CAAA;IAED;;;;OAIG;IACH,OAAO,IAAI,IAAI,CAAA;CACf;AAID;;GAEG;AACH,wBAAsB,cAAc,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,YAAY,CAAC,CAoF1F"}
package/out/wasm.js ADDED
@@ -0,0 +1,137 @@
1
+ /**
2
+ * @copyright Sister Software
3
+ * @license AGPL-3.0
4
+ * @author Teffen Ellis, et al.
5
+ *
6
+ * The WebAssembly batch adapter over `crates/registry-wasm`.
7
+ *
8
+ * Initialization is explicit: the caller passes the module's bytes or a compiled `WebAssembly.Module`, and this
9
+ * module compiles the module inside `createRegistry` and at no other time. `registryWasmURL` locates the committed
10
+ * binaries for a caller that loads them itself, and `preferredWasmVariant` reports whether the host runs `simd128`.
11
+ * A batch call stages the packed codes in linear memory, crosses the boundary once, and copies the masks into the
12
+ * caller's buffer. The staging buffers are kept and reused while they are large enough.
13
+ */
14
+ import { countryAirportCollisionArtifact } from "#artifacts/country-airport-collision";
15
+ import { iataAirportMembershipArtifact } from "#artifacts/iata-airport/membership";
16
+ import { iso31661Alpha3MembershipArtifact } from "#artifacts/iso3166-1/alpha3-membership";
17
+ import { CODE_LENGTH_3 } from "#key";
18
+ /**
19
+ * The location of a committed `wasm/registry*.wasm`, resolved from this module.
20
+ */
21
+ export function registryWasmURL(variant) {
22
+ return new URL(`../wasm/${variant === "simd" ? "registry-simd.wasm" : "registry.wasm"}`, import.meta.url);
23
+ }
24
+ /**
25
+ * A `WebAssembly.validate` probe: a module whose one function uses a `v128` constant.
26
+ *
27
+ * It validates on a host with `simd128` and fails on one without.
28
+ * Validation compiles no code and runs no function.
29
+ */
30
+ const SIMD_PROBE = new Uint8Array([
31
+ 0, 97, 115, 109, 1, 0, 0, 0, 1, 5, 1, 96, 0, 1, 123, 3, 2, 1, 0, 10, 10, 1, 8, 0, 65, 0, 253, 15, 253, 98, 11,
32
+ ]);
33
+ /**
34
+ * The variant this host can run: `simd` when it validates the probe, else `scalar`.
35
+ */
36
+ export function preferredWasmVariant() {
37
+ return WebAssembly.validate(SIMD_PROBE) ? "simd" : "scalar";
38
+ }
39
+ function isBytes(source) {
40
+ return source instanceof ArrayBuffer || ArrayBuffer.isView(source);
41
+ }
42
+ /**
43
+ * The mask bits `classifyManyInto` writes, equal to `registry_core::lookup::mask`.
44
+ */
45
+ export const ClassifyMask = {
46
+ Country: 1,
47
+ Airport: 2,
48
+ Collision: 4,
49
+ Invalid: 0x80,
50
+ };
51
+ /**
52
+ * A reusable staging buffer in linear memory.
53
+ */
54
+ class Staging {
55
+ ptr = 0;
56
+ len = 0;
57
+ #exports;
58
+ constructor(exports) {
59
+ this.#exports = exports;
60
+ }
61
+ reserve(len) {
62
+ if (len > this.len) {
63
+ if (this.len) {
64
+ this.#exports.rgy_dealloc(this.ptr, this.len);
65
+ }
66
+ this.ptr = this.#exports.rgy_alloc(len);
67
+ this.len = len;
68
+ }
69
+ return this.ptr;
70
+ }
71
+ }
72
+ const encoder = new TextEncoder();
73
+ /**
74
+ * Instantiates the module and loads the three bitsets of the collision batch.
75
+ */
76
+ export async function createRegistry(options) {
77
+ const module = isBytes(options.wasm) ? await WebAssembly.compile(options.wasm) : options.wasm;
78
+ const instance = await WebAssembly.instantiate(module, {});
79
+ const exports = instance.exports;
80
+ const load = (bytes) => {
81
+ const ptr = exports.rgy_alloc(bytes.byteLength);
82
+ new Uint8Array(exports.memory.buffer, ptr, bytes.byteLength).set(bytes);
83
+ const handle = exports.rgy_load(ptr, bytes.byteLength);
84
+ if (handle < 0)
85
+ throw new Error(`registry wasm refused an artifact: error ${exports.rgy_error()}`);
86
+ return handle;
87
+ };
88
+ const alpha3 = load(options.artifacts?.alpha3 ?? iso31661Alpha3MembershipArtifact());
89
+ const airport = load(options.artifacts?.airport ?? iataAirportMembershipArtifact());
90
+ const collision = load(options.artifacts?.collision ?? countryAirportCollisionArtifact());
91
+ const input = new Staging(exports);
92
+ const output = new Staging(exports);
93
+ const classifyManyInto = (packed, out, count = Math.floor(packed.byteLength / CODE_LENGTH_3)) => {
94
+ const inputBytes = count * CODE_LENGTH_3;
95
+ if (out.byteLength < count)
96
+ throw new RangeError(`output holds ${out.byteLength} bytes for ${count} codes`);
97
+ if (packed.byteLength < inputBytes)
98
+ throw new RangeError(`input holds ${packed.byteLength} bytes for ${count} codes`);
99
+ const inPtr = input.reserve(inputBytes);
100
+ const outPtr = output.reserve(count);
101
+ // `memory.buffer` is re-read after every allocation, because growth detaches the previous buffer.
102
+ new Uint8Array(exports.memory.buffer, inPtr, inputBytes).set(packed.subarray(0, inputBytes));
103
+ const written = exports.rgy_classify_many(alpha3, airport, collision, inPtr, count, outPtr);
104
+ if (written < 0)
105
+ throw new Error(`registry wasm batch failed: error ${exports.rgy_error()}`);
106
+ out.set(new Uint8Array(exports.memory.buffer, outPtr, written));
107
+ return written;
108
+ };
109
+ return {
110
+ simd: exports.rgy_simd() === 1,
111
+ countryAirport: {
112
+ classifyManyInto,
113
+ classify(codes) {
114
+ const packed = new Uint8Array(codes.length * CODE_LENGTH_3);
115
+ codes.forEach((code, index) => {
116
+ // A code of any other byte length packs as zero bytes.
117
+ // The kernel marks zero bytes invalid.
118
+ const bytes = encoder.encode(code);
119
+ packed.set(bytes.byteLength === CODE_LENGTH_3 ? bytes : new Uint8Array(CODE_LENGTH_3), index * CODE_LENGTH_3);
120
+ });
121
+ const out = new Uint8Array(codes.length);
122
+ classifyManyInto(packed, out, codes.length);
123
+ return out;
124
+ },
125
+ },
126
+ dispose() {
127
+ if (input.len) {
128
+ exports.rgy_dealloc(input.ptr, input.len);
129
+ }
130
+ if (output.len) {
131
+ exports.rgy_dealloc(output.ptr, output.len);
132
+ }
133
+ input.len = output.len = 0;
134
+ },
135
+ };
136
+ }
137
+ //# sourceMappingURL=wasm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wasm.js","sourceRoot":"","sources":["../lib/wasm.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAA;AACtF,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAA;AAClF,OAAO,EAAE,gCAAgC,EAAE,MAAM,wCAAwC,CAAA;AACzF,OAAO,EAAE,aAAa,EAAE,MAAM,MAAM,CAAA;AAEpC;;GAEG;AACH,MAAM,UAAU,eAAe,CAAC,OAAoB;IACnD,OAAO,IAAI,GAAG,CAAC,WAAW,OAAO,KAAK,MAAM,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,eAAe,EAAE,EAAE,OAAO,IAAI,CAAC,GAAG,CAAC,CAAA;AAC1G,CAAC;AAID;;;;;GAKG;AACH,MAAM,UAAU,GAAG,IAA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AAC,WAAW,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,GAAG,CAAC,CAAA;YAC5C,CAAC;YAED,KAAK,CAAC,GAAG,GAAG,MAAM,CAAC,GAAG,GAAG,CAAC,CAAA;QAC3B,CAAC;KACD,CAAA;AACF,CAAC"}
package/package.json CHANGED
@@ -1,8 +1,21 @@
1
1
  {
2
2
  "name": "@mailwoman/registry",
3
- "version": "10.7.0",
4
- "description": "The geocode-first record-matching application: resolve messy contact/organization records into canonical, geocoded entities (block → score → cluster) and export them as GeoJSON for spatial analysis. The clinic-funding use case mailwoman was built for.",
3
+ "version": "11.0.0",
4
+ "description": "A generated, typed registry of standardized identifiers and their relationships: ISO 3166-1 country codes and IATA airport codes in this release, compiled from pinned open sources into RGY1 lookup artifacts with branded types, a synchronous TypeScript reader, a Rust lookup core and a WebAssembly batch adapter.",
5
+ "keywords": [
6
+ "airport-codes",
7
+ "country-codes",
8
+ "iata",
9
+ "iso-3166",
10
+ "registry"
11
+ ],
5
12
  "license": "AGPL-3.0-only OR LicenseRef-Commercial",
13
+ "contributors": [
14
+ {
15
+ "name": "Teffen Ellis",
16
+ "email": "teffen@sister.software"
17
+ }
18
+ ],
6
19
  "repository": {
7
20
  "type": "git",
8
21
  "url": "https://github.com/sister-software/mailwoman.git",
@@ -14,24 +27,29 @@
14
27
  "out/**/*.d.ts",
15
28
  "out/**/*.d.ts.map",
16
29
  "lib/**/*.ts",
17
- "lib/**/*.tsx",
30
+ "sdk/**/*.ts",
18
31
  "tools/**/*.ts",
32
+ "data/manifests/*.json",
33
+ "data/normalized/*.json",
34
+ "definitions/*.json",
35
+ "wasm/*.wasm",
36
+ "docs/*.md",
19
37
  "!**/*.test.ts",
20
38
  "!**/*.test.tsx"
21
39
  ],
22
40
  "type": "module",
23
41
  "sideEffects": false,
24
42
  "imports": {
43
+ "#sdk/*": {
44
+ "types": "./out/sdk/*.d.ts",
45
+ "node": "./out/sdk/*.js",
46
+ "default": "./out/sdk/*.js"
47
+ },
25
48
  "#tools/*": {
26
49
  "types": "./out/tools/*.d.ts",
27
50
  "node": "./out/tools/*.js",
28
51
  "default": "./out/tools/*.js"
29
52
  },
30
- "#index": {
31
- "types": "./out/index.d.ts",
32
- "node": "./out/index.js",
33
- "default": "./out/index.js"
34
- },
35
53
  "#*": {
36
54
  "types": "./out/*.d.ts",
37
55
  "node": "./out/*.js",
@@ -40,11 +58,18 @@
40
58
  },
41
59
  "exports": {
42
60
  "./package.json": "./package.json",
61
+ "./wasm/registry.wasm": "./wasm/registry.wasm",
62
+ "./wasm/registry-simd.wasm": "./wasm/registry-simd.wasm",
43
63
  ".": {
44
64
  "types": "./out/index.d.ts",
45
65
  "node": "./out/index.js",
46
66
  "default": "./out/index.js"
47
67
  },
68
+ "./sdk/*": {
69
+ "types": "./out/sdk/*.d.ts",
70
+ "node": "./out/sdk/*.js",
71
+ "default": "./out/sdk/*.js"
72
+ },
48
73
  "./tools/*": {
49
74
  "types": "./out/tools/*.d.ts",
50
75
  "node": "./out/tools/*.js",
@@ -60,11 +85,18 @@
60
85
  "access": "public",
61
86
  "exports": {
62
87
  "./package.json": "./package.json",
88
+ "./wasm/registry.wasm": "./wasm/registry.wasm",
89
+ "./wasm/registry-simd.wasm": "./wasm/registry-simd.wasm",
63
90
  ".": {
64
91
  "types": "./out/index.d.ts",
65
92
  "node": "./out/index.js",
66
93
  "default": "./out/index.js"
67
94
  },
95
+ "./sdk/*": {
96
+ "types": "./out/sdk/*.d.ts",
97
+ "node": "./out/sdk/*.js",
98
+ "default": "./out/sdk/*.js"
99
+ },
68
100
  "./tools/*": {
69
101
  "types": "./out/tools/*.d.ts",
70
102
  "node": "./out/tools/*.js",
@@ -77,16 +109,16 @@
77
109
  }
78
110
  },
79
111
  "imports": {
112
+ "#sdk/*": {
113
+ "types": "./out/sdk/*.d.ts",
114
+ "node": "./out/sdk/*.js",
115
+ "default": "./out/sdk/*.js"
116
+ },
80
117
  "#tools/*": {
81
118
  "types": "./out/tools/*.d.ts",
82
119
  "node": "./out/tools/*.js",
83
120
  "default": "./out/tools/*.js"
84
121
  },
85
- "#index": {
86
- "types": "./out/index.d.ts",
87
- "node": "./out/index.js",
88
- "default": "./out/index.js"
89
- },
90
122
  "#*": {
91
123
  "types": "./out/*.d.ts",
92
124
  "node": "./out/*.js",
@@ -95,22 +127,11 @@
95
127
  }
96
128
  },
97
129
  "dependencies": {
98
- "@mailwoman/address-id": "10.7.0",
99
- "@mailwoman/annotations": "10.7.0",
100
- "@mailwoman/core": "10.7.0",
101
- "@mailwoman/match": "10.7.0",
102
- "@mailwoman/record": "10.7.0",
103
- "@mailwoman/resolver-wof-sqlite": "10.7.0",
104
- "@mailwoman/spatial": "10.7.0",
105
- "@mailwoman/sqlite": "10.7.0",
106
- "@protomaps/basemaps": "^5.7.2",
107
- "h3-js": "^4.5.0",
108
- "spliterator": "^9.2.1"
130
+ "@mailwoman/core": "11.0.0",
131
+ "path-ts": "^2.5.0"
109
132
  },
110
133
  "devDependencies": {
111
- "@mailwoman/browser": "10.5.0",
112
- "@types/node": "^26.6.4",
113
- "path-ts": "^2.5.0",
114
- "playwright": "^1.63.0"
134
+ "@types/node": "^26.6.6",
135
+ "esbuild": "0.28.2"
115
136
  }
116
137
  }