@finbheara/domain 0.40.0 → 0.41.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.
|
@@ -7422,6 +7422,7 @@ function genericKey2(folded) {
|
|
|
7422
7422
|
var DEFAULT_PLACE_CAPACITY2 = 8192;
|
|
7423
7423
|
var PLACE_CELL_SENTINELS = [...SHARED_ROW_SENTINELS2];
|
|
7424
7424
|
var placeCellSentinelOf = sentinelIn2(PLACE_CELL_SENTINELS);
|
|
7425
|
+
var SHARED_INDEXES = new WeakMap;
|
|
7425
7426
|
function createPlaceReader2(options = {}) {
|
|
7426
7427
|
const nodes = options.tree ?? PLACE_NODES;
|
|
7427
7428
|
const withinTable = options.within ?? PLACE_WITHIN;
|
|
@@ -7502,7 +7503,7 @@ function createPlaceReader2(options = {}) {
|
|
|
7502
7503
|
const byRunPrint = new Map;
|
|
7503
7504
|
const byGeneric = new Map;
|
|
7504
7505
|
for (const n of source) {
|
|
7505
|
-
if (
|
|
7506
|
+
if (n.kind === "city")
|
|
7506
7507
|
for (const p of [n.name, ...n.prints]) {
|
|
7507
7508
|
const k = genericKey2(fold(p));
|
|
7508
7509
|
if (k !== undefined)
|
|
@@ -7639,8 +7640,10 @@ function createPlaceReader2(options = {}) {
|
|
|
7639
7640
|
};
|
|
7640
7641
|
}
|
|
7641
7642
|
function idx() {
|
|
7642
|
-
if (index
|
|
7643
|
-
index
|
|
7643
|
+
if (index !== undefined)
|
|
7644
|
+
return index;
|
|
7645
|
+
index = SHARED_INDEXES.get(nodes) ?? buildIndex(nodes);
|
|
7646
|
+
SHARED_INDEXES.set(nodes, index);
|
|
7644
7647
|
return index;
|
|
7645
7648
|
}
|
|
7646
7649
|
function ancestorIds(n) {
|
package/dist/geocode.js
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
place2,
|
|
6
6
|
placeFromId2,
|
|
7
7
|
placeParts2
|
|
8
|
-
} from "./chunks/place-
|
|
8
|
+
} from "./chunks/place-zd6bq670.js";
|
|
9
9
|
|
|
10
10
|
var PLACE_TOWNS = {
|
|
11
11
|
"AUS-ACT": "Acton~~r3dp~9973368|Ainslie~~r3dp~8348552|Amaroo~~r3dp~8349331|Aranda~~r3dp~8349333|Banks~~r3dn~8348388|Barton~~r3dp~8349163|Belconnen~~r3dp~2176373|Bonner~~r3dp~9973375|Bonython~~r3dn~8349164|Braddon~~r3dp~8349165|Bruce~~r3dp~8349301|Calwell~~r3dn~8347865|Campbell~~r3dp~2172618|Canberra City~~r3dp~8347868|Casey~~r3dp~8349161~AU.07.21610|Chapman~~r39y~8349166|Charnwood~~r39z~8349169|Chifley~~r3dn~8348372|Chisholm~~r3dn~8349303|Conder~~r3dn~8349167|Cook~~r3dp~8347746~AU.04.32500|Coombs~~r39z~9973426|Crace~~r3dp~8349353|Curtin~~r3dp~8349171|Deakin~~r3dp~8349172|Dickson~~r3dp~8348400|Downer~~r3dp~8348308|Duffy~~r39y~8349425|Dunlop~~r39z~8349173|Evatt~~r3dp~8349175|Fadden~~r3dn~8348126|Farrer~~r3dn~8347869|Fisher~~r39y~8349304~CA.03.5953379|Florey~~r39z~8349174|Flynn~~r39z~8349305|Forde~~r3dp~8347874|Forrest~~r3dp~8504554|Franklin~~r3dp~8349306|Fraser~~r39z~8348647|Garran~~r3dn~9973428|Gilmore~~r3dn~8349400|Giralang~~r3dp~8348680|Gordon~~r3dn~8348660|Gowrie~~r3dn~8348892|Greenway~~r3dn~8349176|Griffith~~r3dp~8349307~AU.02.13450|Gungahlin~~r3dp~8349178|Hackett~~r3dp~8349180|Harrison~~r3dp~8349179|Hawker~~r39z~8349385|Higgins~~r39z~8349181|Holder~~r39y~8349308|Holt~~r39z~8347705|Hughes~~r3dn~8349446|Isaacs~~r3dn~8349182|Isabella Plains~~r3dn~8349183|Jacka~~r3dp~9973376|Jervis Bay Village~~r3g0~2162322|Kaleen~~r3dp~6619483|Kambah~~r39y~8348370|Kingston~~r3dp~8349299~~3489854|Latham~~r39z~8349309|Lyneham~~r3dp~8347876|Lyons~~r3dn~8349159|Macarthur~~r3dn~7302189|Macgregor~~r39z~8348907|Macquarie~~r3dp~7281844|Mawson~~r3dn~8348684|McKellar~~r3dp~8349184|Melba~~r39z~8349186|Monash~~r3dn~8349310~AU.07.24970|Narrabundah~~r3dn~8349435|Ngunnawal~~r3dp~8349187|Nicholls~~r3dp~8349185|O'Connor~~r3dp~8348190|O'Malley~~r3dn~8349436|Oxley~~r3dn~8349413|Page~~r39z~8348129|Palmerston~~r3dp~8349170~AU.03.72800|Pearce~~r3dn~8349379|Phillip~~r3dn~2153335|Red Hill~~r3dp~9973374|Reid~~r3dp~8348371|Richardson~~r3dn~8349188|Rivett~~r39y~8349189|Scullin~~r39z~8349327|Spence~~r3dp~8349313|Stirling~~r39y~8349380~AU.08.57910,CA.01.4802009,GB.SCT.W6|Symonston~~r3dn~8349190|Theodore~~r3dn~8348420~CA.11.4709028|Torrens~~r3dn~8348973|Tuggeranong~~r3dn~2145936|Turner~~r3dp~8348040|Wanniassa~~r3dn~8349191|Waramanga~~r39y~8349192|Watson~~r3dp~8348373~CA.11.4710062|Weetangera~~r39z~2144224|Weston~~r39y~8349397|Wright~~r39z~9973427|Yarralumla~~r3dp~8348374",
|
|
@@ -200,14 +200,19 @@ function townNodes() {
|
|
|
200
200
|
}
|
|
201
201
|
return out;
|
|
202
202
|
}
|
|
203
|
+
var layerTree;
|
|
203
204
|
var layer;
|
|
204
205
|
var genericLayer;
|
|
206
|
+
function layerNodes() {
|
|
207
|
+
layerTree ??= [...PLACE_NODES, ...townNodes()];
|
|
208
|
+
return layerTree;
|
|
209
|
+
}
|
|
205
210
|
function layerReader() {
|
|
206
|
-
layer ??= createPlaceReader2({ tree:
|
|
211
|
+
layer ??= createPlaceReader2({ tree: layerNodes() });
|
|
207
212
|
return layer;
|
|
208
213
|
}
|
|
209
214
|
function genericReader() {
|
|
210
|
-
genericLayer ??= createPlaceReader2({ tree:
|
|
215
|
+
genericLayer ??= createPlaceReader2({ tree: layerNodes(), generic: true });
|
|
211
216
|
return genericLayer;
|
|
212
217
|
}
|
|
213
218
|
function oneTown(t) {
|
package/dist/place.js
CHANGED
package/dist/school.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finbheara/domain",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.41.0",
|
|
4
4
|
"description": "Places, CLRG regions, school names, ages, dances, competition titles and schedules, and a person's print in its role, as they are printed: read, compared and told apart",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"places",
|