@mailwoman/resolver 11.2.0 → 11.3.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.
- package/lib/admin/coherence-passes.ts +1 -1
- package/lib/admin/county-designator.ts +1 -1
- package/lib/admin/former-division.ts +116 -0
- package/lib/bare-toponym-race.ts +1 -1
- package/lib/decorate-node.ts +102 -2
- package/lib/postcode/prefix.ts +7 -16
- package/lib/remote-resolver.ts +1 -1
- package/lib/resolve/parent-place.ts +109 -0
- package/lib/resolve/passes.ts +62 -11
- package/lib/resolve/sibling-locality.ts +150 -0
- package/lib/resolve.ts +255 -42
- package/lib/scope-retrieval.ts +91 -0
- package/lib/span-rescore.ts +65 -14
- package/lib/toponym-prior.ts +57 -6
- package/out/admin/coherence-passes.js +1 -1
- package/out/admin/coherence-passes.js.map +1 -1
- package/out/admin/county-designator.js +1 -1
- package/out/admin/former-division.d.ts +47 -0
- package/out/admin/former-division.d.ts.map +1 -0
- package/out/admin/former-division.js +74 -0
- package/out/admin/former-division.js.map +1 -0
- package/out/bare-toponym-race.d.ts +1 -1
- package/out/bare-toponym-race.d.ts.map +1 -1
- package/out/decorate-node.d.ts +22 -3
- package/out/decorate-node.d.ts.map +1 -1
- package/out/decorate-node.js +84 -1
- package/out/decorate-node.js.map +1 -1
- package/out/postcode/prefix.d.ts +4 -2
- package/out/postcode/prefix.d.ts.map +1 -1
- package/out/postcode/prefix.js +7 -13
- package/out/postcode/prefix.js.map +1 -1
- package/out/remote-resolver.d.ts.map +1 -1
- package/out/remote-resolver.js +1 -1
- package/out/remote-resolver.js.map +1 -1
- package/out/resolve/parent-place.d.ts +34 -0
- package/out/resolve/parent-place.d.ts.map +1 -0
- package/out/resolve/parent-place.js +76 -0
- package/out/resolve/parent-place.js.map +1 -0
- package/out/resolve/passes.d.ts +39 -8
- package/out/resolve/passes.d.ts.map +1 -1
- package/out/resolve/passes.js +17 -6
- package/out/resolve/passes.js.map +1 -1
- package/out/resolve/sibling-locality.d.ts +34 -0
- package/out/resolve/sibling-locality.d.ts.map +1 -0
- package/out/resolve/sibling-locality.js +95 -0
- package/out/resolve/sibling-locality.js.map +1 -0
- package/out/resolve.d.ts.map +1 -1
- package/out/resolve.js +177 -39
- package/out/resolve.js.map +1 -1
- package/out/scope-retrieval.d.ts +44 -0
- package/out/scope-retrieval.d.ts.map +1 -0
- package/out/scope-retrieval.js +52 -0
- package/out/scope-retrieval.js.map +1 -0
- package/out/span-rescore.d.ts +15 -1
- package/out/span-rescore.d.ts.map +1 -1
- package/out/span-rescore.js +36 -9
- package/out/span-rescore.js.map +1 -1
- package/out/toponym-prior.d.ts +15 -0
- package/out/toponym-prior.d.ts.map +1 -1
- package/out/toponym-prior.js +37 -6
- package/out/toponym-prior.js.map +1 -1
- package/package.json +9 -9
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Retrieval under a country scope: the soft scope's second fetch, and the probe
|
|
6
|
+
* that finds the same-name places a hard scope excluded.
|
|
7
|
+
*
|
|
8
|
+
* A population-ordered fetch of 5 rows can hold only one country's namesakes.
|
|
9
|
+
* A prior applied after that fetch can't recover a place the fetch's limit left out.
|
|
10
|
+
*
|
|
11
|
+
* The soft scope's country is therefore fetched on its own and merged in.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
import type { ResolvedPlace, ResolverBackend } from "@mailwoman/core/resolver"
|
|
15
|
+
|
|
16
|
+
import type { NodeTraceRecorder, ResolutionState } from "#resolve/passes"
|
|
17
|
+
import { promoteScopedCountry } from "#toponym-prior"
|
|
18
|
+
|
|
19
|
+
type FindPlaceQuery = Parameters<ResolverBackend["findPlace"]>[0]
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Whether the soft scope acts inside retrieval: under `scopeCountryRetrieval`,
|
|
23
|
+
* or always for a caller's soft scope.
|
|
24
|
+
*
|
|
25
|
+
* No earlier ranking-only form of the prior served a caller's soft scope.
|
|
26
|
+
*/
|
|
27
|
+
export function softScopeRetrieves(state: Pick<ResolutionState, "softCountry" | "scopeCountryRetrieval">): boolean {
|
|
28
|
+
return !!state.softCountry && (state.scopeCountryRetrieval || state.softCountry.source === "caller")
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Under scope retrieval, the soft scope's bounded bonus, run after the importance
|
|
33
|
+
* rerank so the rerank can't undo it.
|
|
34
|
+
*
|
|
35
|
+
* `promoted` is the place the bonus moved to the lead, or null when it moved none.
|
|
36
|
+
*/
|
|
37
|
+
export function promoteSoftCountry(
|
|
38
|
+
ranked: ResolvedPlace[],
|
|
39
|
+
softCountry: string | null,
|
|
40
|
+
state: Pick<ResolutionState, "softCountry" | "scopeCountryRetrieval" | "softCountryWeight" | "capitalLevel">,
|
|
41
|
+
rec: Pick<NodeTraceRecorder, "stage">
|
|
42
|
+
): { ranked: ResolvedPlace[]; promoted: ResolvedPlace | null } {
|
|
43
|
+
if (!softCountry || !softScopeRetrieves(state)) return { ranked, promoted: null }
|
|
44
|
+
|
|
45
|
+
const promoted = promoteScopedCountry(ranked, softCountry, state.softCountryWeight, state.capitalLevel)
|
|
46
|
+
|
|
47
|
+
rec.stage("soft_country_promotion", promoted)
|
|
48
|
+
|
|
49
|
+
return { ranked: promoted, promoted: promoted[0] !== ranked[0] ? promoted[0]! : null }
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* The places of `first`, then each place of `second` whose id `first` doesn't hold, in their orders.
|
|
54
|
+
*/
|
|
55
|
+
export function mergeByPlaceID<T extends Pick<ResolvedPlace, "id">>(first: readonly T[], second: readonly T[]): T[] {
|
|
56
|
+
const seen = new Set(first.map((place) => String(place.id)))
|
|
57
|
+
|
|
58
|
+
return [...first, ...second.filter((place) => !seen.has(String(place.id)))]
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* The candidates of an unscoped lookup merged with the same lookup's rows in the soft scope's `country`.
|
|
63
|
+
*/
|
|
64
|
+
export async function retrieveWithSoftCountry(
|
|
65
|
+
backend: ResolverBackend,
|
|
66
|
+
query: FindPlaceQuery,
|
|
67
|
+
initial: readonly ResolvedPlace[],
|
|
68
|
+
country: string
|
|
69
|
+
): Promise<ResolvedPlace[]> {
|
|
70
|
+
const scoped = await backend.findPlace({ ...query, country })
|
|
71
|
+
|
|
72
|
+
return mergeByPlaceID(initial, scoped)
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* The same-name places a hard country scope excluded: the lookup run without its country,
|
|
77
|
+
* keeping the rows in another country, each marked `outsideScope`.
|
|
78
|
+
*/
|
|
79
|
+
export async function placesOutsideCountryScope(
|
|
80
|
+
backend: ResolverBackend,
|
|
81
|
+
query: FindPlaceQuery,
|
|
82
|
+
country: string
|
|
83
|
+
): Promise<ResolvedPlace[]> {
|
|
84
|
+
const { country: _scoped, ...unscoped } = query
|
|
85
|
+
const hits = await backend.findPlace(unscoped)
|
|
86
|
+
const target = country.toUpperCase()
|
|
87
|
+
|
|
88
|
+
return hits
|
|
89
|
+
.filter((hit) => hit.country?.toUpperCase() !== target)
|
|
90
|
+
.map((hit) => ({ ...hit, outsideScope: true as const }))
|
|
91
|
+
}
|
package/lib/span-rescore.ts
CHANGED
|
@@ -9,20 +9,46 @@
|
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
import { firstNodeWhere, walkNodes, type AddressNode } from "@mailwoman/core/decoder"
|
|
12
|
-
import
|
|
13
|
-
|
|
12
|
+
import {
|
|
13
|
+
type ResolvedPlace,
|
|
14
|
+
type ResolverBackend,
|
|
15
|
+
ScopeStrength,
|
|
16
|
+
type WeakResolutionReading,
|
|
17
|
+
} from "@mailwoman/core/resolver"
|
|
18
|
+
import { acceptPostcode } from "@mailwoman/postcode/country-formats"
|
|
19
|
+
import { isRegionAbbreviationToken } from "@mailwoman/recognizer/labels/region/region-abbreviation"
|
|
14
20
|
import { haversine } from "@mailwoman/spatial/geometries/point/distance"
|
|
15
21
|
|
|
16
22
|
import { partitionByContainment } from "#admin/containment"
|
|
17
23
|
import { bareSublocalityCandidate } from "#bare-toponym-race"
|
|
18
24
|
import { foldName } from "#fold-name"
|
|
19
|
-
import {
|
|
25
|
+
import { retrieveWithSoftCountry } from "#scope-retrieval"
|
|
26
|
+
import {
|
|
27
|
+
DEFAULT_COUNTRY_PRIOR_WEIGHT,
|
|
28
|
+
promoteScopedCountry,
|
|
29
|
+
rankByCountryPrior,
|
|
30
|
+
rankByImportance,
|
|
31
|
+
} from "#toponym-prior"
|
|
20
32
|
|
|
21
33
|
export interface SpanRescoreOptions {
|
|
22
34
|
/**
|
|
23
35
|
* ISO-3166 alpha-2 country to constrain the gazetteer match (the parse's detected/ default country).
|
|
24
36
|
*/
|
|
25
37
|
country?: string
|
|
38
|
+
/**
|
|
39
|
+
* How {@link country} acts: a `"hard"` country filters every probe except the bare
|
|
40
|
+
* whole-input span, and a `"soft"` country filters none and only ranks that span.
|
|
41
|
+
*
|
|
42
|
+
* @defaultValue `"hard"`
|
|
43
|
+
*/
|
|
44
|
+
countryStrength?: ScopeStrength
|
|
45
|
+
/**
|
|
46
|
+
* Whether the bare whole-input span also retrieves {@link country}'s rows and promotes them after the
|
|
47
|
+
* importance rerank, in place of ranking one worldwide fetch by a prior the rerank then reorders.
|
|
48
|
+
*
|
|
49
|
+
* @defaultValue `false`
|
|
50
|
+
*/
|
|
51
|
+
scopeCountryRetrieval?: boolean
|
|
26
52
|
/**
|
|
27
53
|
* The sibling postcode serves as the backend disambiguation hint and the consistency-check anchor.
|
|
28
54
|
*/
|
|
@@ -312,6 +338,8 @@ export async function findRescoreCandidate(
|
|
|
312
338
|
const maxSpan = opts.maxSpanTokens ?? 4
|
|
313
339
|
const threshold = opts.confidentThreshold ?? 0.7
|
|
314
340
|
const country = opts.country
|
|
341
|
+
// A soft country never filters a probe.
|
|
342
|
+
const filterCountry = opts.countryStrength === ScopeStrength.Soft ? undefined : country
|
|
315
343
|
const postcode = opts.postcode?.trim() || undefined
|
|
316
344
|
|
|
317
345
|
// The postcode-consistency anchor.
|
|
@@ -321,7 +349,13 @@ export async function findRescoreCandidate(
|
|
|
321
349
|
if (postcode && thresholdKm > 0) {
|
|
322
350
|
// Both anchor probes are `postalcode`-typed: an untyped truncated code fragment
|
|
323
351
|
// name-matches arbitrary places and the false anchor then excludes the true village.
|
|
324
|
-
const pcHits = await backend.findPlace({
|
|
352
|
+
const pcHits = await backend.findPlace({
|
|
353
|
+
text: postcode,
|
|
354
|
+
country: filterCountry,
|
|
355
|
+
placetype: "postalcode",
|
|
356
|
+
limit: 2,
|
|
357
|
+
})
|
|
358
|
+
|
|
325
359
|
const a = pcHits.find((h) => h.lat !== 0 || h.lon !== 0)
|
|
326
360
|
|
|
327
361
|
if (a) {
|
|
@@ -333,7 +367,13 @@ export async function findRescoreCandidate(
|
|
|
333
367
|
const code = postcodeCodeSubset(postcode)
|
|
334
368
|
|
|
335
369
|
if (code && code !== postcode) {
|
|
336
|
-
const codeHits = await backend.findPlace({
|
|
370
|
+
const codeHits = await backend.findPlace({
|
|
371
|
+
text: code,
|
|
372
|
+
country: filterCountry,
|
|
373
|
+
placetype: "postalcode",
|
|
374
|
+
limit: 2,
|
|
375
|
+
})
|
|
376
|
+
|
|
337
377
|
const c = codeHits.find((h) => h.lat !== 0 || h.lon !== 0)
|
|
338
378
|
|
|
339
379
|
if (c) {
|
|
@@ -464,18 +504,18 @@ export async function findRescoreCandidate(
|
|
|
464
504
|
const bare = softCountryEligible && wholeSpan
|
|
465
505
|
const qualifier = wholeSpan ? null : qualifierRemainder(sp)
|
|
466
506
|
|
|
507
|
+
const bareQuery = { text: sp.text, postcode, placetype: "locality", limit: BARE_TOPONYM_FETCH }
|
|
508
|
+
|
|
467
509
|
const hits = bare
|
|
468
|
-
?
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
countryWeight
|
|
472
|
-
)
|
|
510
|
+
? opts.scopeCountryRetrieval
|
|
511
|
+
? await retrieveWithSoftCountry(backend, bareQuery, await backend.findPlace(bareQuery), country!)
|
|
512
|
+
: rankByCountryPrior(await backend.findPlace(bareQuery), country, countryWeight)
|
|
473
513
|
: // A SUB-span probe is a RE-READING of a token the parse classified into a longer span — it
|
|
474
514
|
// never included an alias, so alias-keyed rows are off for it (`primaryOnly`); a whole-input
|
|
475
515
|
// span keeps the alias tier regardless of scope.
|
|
476
516
|
await backend.findPlace({
|
|
477
517
|
text: sp.text,
|
|
478
|
-
country,
|
|
518
|
+
country: filterCountry,
|
|
479
519
|
postcode,
|
|
480
520
|
placetype: "locality",
|
|
481
521
|
limit: 5,
|
|
@@ -491,7 +531,13 @@ export async function findRescoreCandidate(
|
|
|
491
531
|
//
|
|
492
532
|
// Importance-first within the admitted set.
|
|
493
533
|
// It abstains on an artifact predating the column and so changes no pick.
|
|
494
|
-
const
|
|
534
|
+
const importanceRanked = rankByImportance(hits.filter((h) => h.exactMatch && (h.lat !== 0 || h.lon !== 0)))
|
|
535
|
+
|
|
536
|
+
// Under scope retrieval the country's bounded bonus runs after the rerank, so the rerank can't undo it.
|
|
537
|
+
const ranked =
|
|
538
|
+
bare && opts.scopeCountryRetrieval
|
|
539
|
+
? promoteScopedCountry(importanceRanked, country!, countryWeight)
|
|
540
|
+
: importanceRanked
|
|
495
541
|
|
|
496
542
|
// The same partition the walk applies: tier-safe, stable and positive-evidence-only,
|
|
497
543
|
// so a backend that ignored `regionQualifier` is byte-stable.
|
|
@@ -531,7 +577,7 @@ export async function findRescoreCandidate(
|
|
|
531
577
|
// A whole-input venue can be a sub-locality row, as `Golden Gate Park` is a neighborhood,
|
|
532
578
|
// and that row states the whole name where a shorter span would state part of it.
|
|
533
579
|
if (wholeSpan && venueCoversInput) {
|
|
534
|
-
const sublocality = await bareSublocalityCandidate(backend, sp.text,
|
|
580
|
+
const sublocality = await bareSublocalityCandidate(backend, sp.text, filterCountry)
|
|
535
581
|
|
|
536
582
|
if (sublocality && withinThreshold(sublocality)) {
|
|
537
583
|
return {
|
|
@@ -565,7 +611,12 @@ export async function findRescoreCandidate(
|
|
|
565
611
|
const exact = hits.filter((h) => h.exactMatch && (h.lat !== 0 || h.lon !== 0))
|
|
566
612
|
|
|
567
613
|
for (const h of exact) {
|
|
568
|
-
if (!h.country || h.country ===
|
|
614
|
+
if (!h.country || h.country === filterCountry) continue
|
|
615
|
+
|
|
616
|
+
// A postcode row verifies a country only for a code written in that country's form.
|
|
617
|
+
// A US ZIP row also answers to its city's name, so without this test a city name
|
|
618
|
+
// tagged as a postcode verifies every same-name locality in its own country.
|
|
619
|
+
if (acceptPostcode(code, h.country) == null) continue
|
|
569
620
|
|
|
570
621
|
const pcHits = await backend.findPlace({
|
|
571
622
|
text: code,
|
package/lib/toponym-prior.ts
CHANGED
|
@@ -175,6 +175,40 @@ export function rankByCountryPrior<T extends Rankable>(
|
|
|
175
175
|
return rankWithinTier(candidates, (a, b) => key(b) - key(a))
|
|
176
176
|
}
|
|
177
177
|
|
|
178
|
+
/**
|
|
179
|
+
* Moves the first candidate in `country` within the leading match tier above each
|
|
180
|
+
* preceding candidate that's at most `weight` larger, stopping at a national capital
|
|
181
|
+
* and at a candidate whose measured importance exceeds the promoted one's.
|
|
182
|
+
*
|
|
183
|
+
* It runs after {@link rankByImportance} and capital promotion, so neither reorders the result.
|
|
184
|
+
* The bonus is bounded by size, so a place more than `weight` log10-population units larger still leads.
|
|
185
|
+
*
|
|
186
|
+
* A measured importance lead also holds, as Melbourne, Australia holds against
|
|
187
|
+
* Melbourne, Florida under a US scope.
|
|
188
|
+
*
|
|
189
|
+
* A place without a recorded population sizes as 0, and such a place stays behind
|
|
190
|
+
* any populated namesake more than `weight` units above 0.
|
|
191
|
+
*/
|
|
192
|
+
export function promoteScopedCountry<T extends Rankable & Pick<ResolvedPlace, "name" | "country" | "lat" | "lon">>(
|
|
193
|
+
candidates: readonly T[],
|
|
194
|
+
country: string | null,
|
|
195
|
+
weight: number = DEFAULT_COUNTRY_PRIOR_WEIGHT,
|
|
196
|
+
level?: CapitalLevelFn
|
|
197
|
+
): T[] {
|
|
198
|
+
if (!country) return [...candidates]
|
|
199
|
+
|
|
200
|
+
const target = country.toUpperCase()
|
|
201
|
+
|
|
202
|
+
return promoteInLeadingTier(
|
|
203
|
+
candidates,
|
|
204
|
+
(c) => c.country?.toUpperCase() === target,
|
|
205
|
+
(above, moved) =>
|
|
206
|
+
(!!level && level(above) >= PROMOTABLE_CAPITAL_LEVEL) ||
|
|
207
|
+
(measured(above) && measured(moved) && above.importance! > moved.importance!),
|
|
208
|
+
weight
|
|
209
|
+
)
|
|
210
|
+
}
|
|
211
|
+
|
|
178
212
|
/**
|
|
179
213
|
* Returns a place's capital status: 2 for a national capital, 1 for an admin-1 seat and 0 otherwise.
|
|
180
214
|
*
|
|
@@ -201,7 +235,24 @@ export function promoteCapitals<T extends Rankable & Pick<ResolvedPlace, "name"
|
|
|
201
235
|
candidates: readonly T[],
|
|
202
236
|
level: CapitalLevelFn | undefined
|
|
203
237
|
): T[] {
|
|
204
|
-
if (!level
|
|
238
|
+
if (!level) return [...candidates]
|
|
239
|
+
|
|
240
|
+
const isCapital = (c: T): boolean => level(c) >= PROMOTABLE_CAPITAL_LEVEL
|
|
241
|
+
|
|
242
|
+
return promoteInLeadingTier(candidates, isCapital, isCapital, NATIONAL_CAPITAL_MARGIN_LOG10)
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* Moves the first `promote` row of the leading match tier (the exact matches, or every row when none is exact)
|
|
247
|
+
* above each preceding row at most `margin` larger, stopping at a `barrier` row.
|
|
248
|
+
*/
|
|
249
|
+
function promoteInLeadingTier<T extends Rankable>(
|
|
250
|
+
candidates: readonly T[],
|
|
251
|
+
promote: (c: T) => boolean,
|
|
252
|
+
barrier: (above: T, moved: T) => boolean,
|
|
253
|
+
margin: number
|
|
254
|
+
): T[] {
|
|
255
|
+
if (candidates.length < 2) return [...candidates]
|
|
205
256
|
|
|
206
257
|
const exact: T[] = []
|
|
207
258
|
const rest: T[] = []
|
|
@@ -211,7 +262,7 @@ export function promoteCapitals<T extends Rankable & Pick<ResolvedPlace, "name"
|
|
|
211
262
|
}
|
|
212
263
|
|
|
213
264
|
const tier = exact.length ? exact : rest
|
|
214
|
-
const best = tier.findIndex(
|
|
265
|
+
const best = tier.findIndex(promote)
|
|
215
266
|
|
|
216
267
|
if (best <= 0) return [...candidates]
|
|
217
268
|
|
|
@@ -220,9 +271,9 @@ export function promoteCapitals<T extends Rankable & Pick<ResolvedPlace, "name"
|
|
|
220
271
|
while (target > 0) {
|
|
221
272
|
const above = tier[target - 1]!
|
|
222
273
|
|
|
223
|
-
if (
|
|
274
|
+
if (barrier(above, tier[best]!)) break
|
|
224
275
|
|
|
225
|
-
if (size(tier[best]!) +
|
|
276
|
+
if (size(tier[best]!) + margin < size(above)) break
|
|
226
277
|
|
|
227
278
|
target--
|
|
228
279
|
}
|
|
@@ -230,9 +281,9 @@ export function promoteCapitals<T extends Rankable & Pick<ResolvedPlace, "name"
|
|
|
230
281
|
if (target === best) return [...candidates]
|
|
231
282
|
|
|
232
283
|
const reordered = [...tier]
|
|
233
|
-
const [
|
|
284
|
+
const [moved] = reordered.splice(best, 1)
|
|
234
285
|
|
|
235
|
-
reordered.splice(target, 0,
|
|
286
|
+
reordered.splice(target, 0, moved!)
|
|
236
287
|
|
|
237
288
|
return exact.length ? [...reordered, ...rest] : reordered
|
|
238
289
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
2
|
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
3
|
import { matchCountry, matchSubdivision } from "@mailwoman/codex/country";
|
|
4
|
-
import { PLACETYPE_FILTER_GROUPS } from "@mailwoman/codex/placetype-map";
|
|
4
|
+
import { PLACETYPE_FILTER_GROUPS } from "@mailwoman/codex/labels/placetype-map";
|
|
5
5
|
import { decorateNode, isResolvedWithCoord, PICK_METADATA_KEYS } from "#decorate-node";
|
|
6
6
|
const REGION_LINEAGE_PLACETYPES = new Set(PLACETYPE_FILTER_GROUPS["region"] ?? ["region"]);
|
|
7
7
|
function placeIDValue(node) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coherence-passes.js","sourceRoot":"","sources":["../../lib/admin/coherence-passes.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,kEAAkE;AAElE,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AACzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAA;AAIxE,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAEtF,MAAM,yBAAyB,GAAwB,IAAI,GAAG,CAAC,uBAAuB,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAA;AAE/G,SAAS,YAAY,CAAC,IAAiB;IACtC,MAAM,KAAK,GAAG,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,IAAI,EAAE,CAAC,CAAA;IAEvD,OAAO,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,IAAI,CAAA;AAC1B,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,gCAAgC,CAAC,KAA6B;IAC7E,MAAM,KAAK,GAAG,CAAC,IAAiB,EAAE,cAAkC,EAAQ,EAAE;QAC7E,MAAM,UAAU,GAAG,IAAI,CAAC,GAAG,KAAK,QAAQ,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,cAAc,CAAA;QAEtF,IAAI,UAAU,IAAI,IAAI,KAAK,UAAU,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC,iBAAiB,CAAC,K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C,SAAS,CAAC;QACtC,IAAI,EAAE,YAAY,CAAC,KAAK;QACxB,SAAS,EAAE,UAAU;QACrB,OAAO,EAAE,GAAG,CAAC,OAAO;QACpB,KAAK,EAAE,CAAC;KACR,CAAC,CAAA;IAEF,MAAM,EAAE,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAA;IAE5E,IAAI,CAAC,EAAE;QAAE,OAAM;IAEf,YAAY,CACX,UAAU,EACV,EAAE,EACF,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,CACpC,CAAA;IAED,UAAU,CAAC,QAAQ,GAAG,EAAE,GAAG,UAAU,CAAC,QAAQ,EAAE,uBAAuB,EAAE,IAAI,EAAE,CAAA;IAE/E,YAAY,CACX,YAAY,EACZ,EAAE,EACF,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,CAC9B,CAAA;IAED,YAAY,CAAC,QAAQ,GAAG,EAAE,GAAG,YAAY,CAAC,QAAQ,EAAE,uBAAuB,EAAE,IAAI,EAAE,CAAA;AACpF,CAAC"}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* Texas, so the lookup returns no candidate or a namesake elsewhere and the region answers. The codex maps
|
|
8
8
|
* `subregion` to the WOF `county` placetype, and the county's row stores the same name.
|
|
9
9
|
*/
|
|
10
|
-
import { countyDesignatorsFor, countyNameWithoutDesignator } from "@mailwoman/codex/county
|
|
10
|
+
import { countyDesignatorsFor, countyNameWithoutDesignator } from "@mailwoman/codex/designators/county";
|
|
11
11
|
/**
|
|
12
12
|
* The metadata key the walk stamps on a node this fallback resolved.
|
|
13
13
|
* The walk retags such a node `subregion`.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file A `subregion` or `region` value that's the name of a former division, such as the county of Avon
|
|
3
|
+
* (1974 to 1996) in `34 Coldharbour Rd, Redland, Avon, Bristol BS6 7NA`.
|
|
4
|
+
*
|
|
5
|
+
* No current division answers the value, so the walk keeps no place for it and scopes no lookup by it.
|
|
6
|
+
* After the walk, the value is accepted when a former division of that name is linked, by the
|
|
7
|
+
* containment evidence the former-divisions table records, to a place in the resolved locality's
|
|
8
|
+
* lineage. An accepted node is stamped {@link FORMER_DIVISION} and keeps no place, so it moves no result.
|
|
9
|
+
* A value that no linked former division explains keeps the walk's result unchanged.
|
|
10
|
+
*/
|
|
11
|
+
import { type AddressNode } from "@mailwoman/core/decoder";
|
|
12
|
+
import { type Ancestor, type FormerDivisionMatch } from "@mailwoman/core/resolver";
|
|
13
|
+
/**
|
|
14
|
+
* The metadata key an accepted node's stamp is stored under.
|
|
15
|
+
*/
|
|
16
|
+
export declare const FORMER_DIVISION = "former_division";
|
|
17
|
+
/**
|
|
18
|
+
* The tags a former division can stand in.
|
|
19
|
+
*/
|
|
20
|
+
export declare const FORMER_DIVISION_TAGS: ReadonlySet<string>;
|
|
21
|
+
/**
|
|
22
|
+
* What an accepted node's stamp records: the division and the resolved place it's linked through.
|
|
23
|
+
*/
|
|
24
|
+
export interface FormerDivisionStamp {
|
|
25
|
+
name: string;
|
|
26
|
+
country: string;
|
|
27
|
+
kind: string;
|
|
28
|
+
geonames_id: number | null;
|
|
29
|
+
wof_id: number | null;
|
|
30
|
+
evidence: readonly string[];
|
|
31
|
+
/**
|
|
32
|
+
* The resolved place whose lineage holds a place the division covered.
|
|
33
|
+
*/
|
|
34
|
+
linked_place: string;
|
|
35
|
+
/**
|
|
36
|
+
* The WOF id in that lineage the division is linked to.
|
|
37
|
+
*/
|
|
38
|
+
linked_id: number;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Stamps each pending node whose former division is linked to the tree's resolved settlement.
|
|
42
|
+
*
|
|
43
|
+
* `pending` maps a walked node that no current division answered to the former divisions its value names.
|
|
44
|
+
* It returns the number of nodes stamped.
|
|
45
|
+
*/
|
|
46
|
+
export declare function acceptFormerDivisions(roots: readonly AddressNode[], pending: ReadonlyMap<AddressNode, readonly FormerDivisionMatch[]>, ancestors: (id: number) => readonly Ancestor[]): number;
|
|
47
|
+
//# sourceMappingURL=former-division.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"former-division.d.ts","sourceRoot":"","sources":["../../lib/admin/former-division.ts"],"names":[],"mappings":"AAGA;;;;;;;;;GASG;AAEH,OAAO,EAAE,KAAK,WAAW,EAAgB,MAAM,yBAAyB,CAAA;AACxE,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,mBAAmB,EAAoB,MAAM,0BAA0B,CAAA;AAEpG;;GAEG;AACH,eAAO,MAAM,eAAe,oBAAoB,CAAA;AAEhD;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,WAAW,CAAC,MAAM,CAAoC,CAAA;AAOzF;;GAEG;AACH,MAAM,WAAW,mBAAmB;IACnC,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAA;IAC3B;;OAEG;IACH,YAAY,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAA;CACjB;AA2BD;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACpC,KAAK,EAAE,SAAS,WAAW,EAAE,EAC7B,OAAO,EAAE,WAAW,CAAC,WAAW,EAAE,SAAS,mBAAmB,EAAE,CAAC,EACjE,SAAS,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,SAAS,QAAQ,EAAE,GAC5C,MAAM,CA4BR"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
/**
|
|
4
|
+
* @file A `subregion` or `region` value that's the name of a former division, such as the county of Avon
|
|
5
|
+
* (1974 to 1996) in `34 Coldharbour Rd, Redland, Avon, Bristol BS6 7NA`.
|
|
6
|
+
*
|
|
7
|
+
* No current division answers the value, so the walk keeps no place for it and scopes no lookup by it.
|
|
8
|
+
* After the walk, the value is accepted when a former division of that name is linked, by the
|
|
9
|
+
* containment evidence the former-divisions table records, to a place in the resolved locality's
|
|
10
|
+
* lineage. An accepted node is stamped {@link FORMER_DIVISION} and keeps no place, so it moves no result.
|
|
11
|
+
* A value that no linked former division explains keeps the walk's result unchanged.
|
|
12
|
+
*/
|
|
13
|
+
import { collectNodes } from "@mailwoman/core/decoder";
|
|
14
|
+
import { wofIDFromPlaceID } from "@mailwoman/core/resolver";
|
|
15
|
+
/**
|
|
16
|
+
* The metadata key an accepted node's stamp is stored under.
|
|
17
|
+
*/
|
|
18
|
+
export const FORMER_DIVISION = "former_division";
|
|
19
|
+
/**
|
|
20
|
+
* The tags a former division can stand in.
|
|
21
|
+
*/
|
|
22
|
+
export const FORMER_DIVISION_TAGS = new Set(["subregion", "region"]);
|
|
23
|
+
/**
|
|
24
|
+
* The resolved tags whose lineage a former division is checked against.
|
|
25
|
+
*/
|
|
26
|
+
const SETTLEMENT_TAGS = new Set(["locality", "dependent_locality", "municipality", "district"]);
|
|
27
|
+
/**
|
|
28
|
+
* The first match linked to a resolved settlement's lineage, with that settlement and the linked id.
|
|
29
|
+
*/
|
|
30
|
+
function linkedMatch(matches, settlements, ancestors) {
|
|
31
|
+
for (const settlement of settlements) {
|
|
32
|
+
const id = wofIDFromPlaceID(settlement.placeID ?? null);
|
|
33
|
+
if (id == null)
|
|
34
|
+
continue;
|
|
35
|
+
const lineage = [id, ...ancestors(id).map((a) => Number(a.id))];
|
|
36
|
+
for (const match of matches) {
|
|
37
|
+
const linked = lineage.find((candidate) => match.linkedIDs.has(candidate));
|
|
38
|
+
if (linked != null)
|
|
39
|
+
return { match, place: settlement.placeID, id: linked };
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return null;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Stamps each pending node whose former division is linked to the tree's resolved settlement.
|
|
46
|
+
*
|
|
47
|
+
* `pending` maps a walked node that no current division answered to the former divisions its value names.
|
|
48
|
+
* It returns the number of nodes stamped.
|
|
49
|
+
*/
|
|
50
|
+
export function acceptFormerDivisions(roots, pending, ancestors) {
|
|
51
|
+
if (!pending.size)
|
|
52
|
+
return 0;
|
|
53
|
+
const settlements = collectNodes(roots, (n) => SETTLEMENT_TAGS.has(n.tag) && n.placeID != null);
|
|
54
|
+
let accepted = 0;
|
|
55
|
+
for (const node of collectNodes(roots, (n) => pending.has(n))) {
|
|
56
|
+
const found = linkedMatch(pending.get(node), settlements, ancestors);
|
|
57
|
+
if (!found)
|
|
58
|
+
continue;
|
|
59
|
+
const stamp = {
|
|
60
|
+
name: found.match.name,
|
|
61
|
+
country: found.match.country,
|
|
62
|
+
kind: found.match.kind,
|
|
63
|
+
geonames_id: found.match.geonamesID,
|
|
64
|
+
wof_id: found.match.wofID,
|
|
65
|
+
evidence: found.match.evidence,
|
|
66
|
+
linked_place: found.place,
|
|
67
|
+
linked_id: found.id,
|
|
68
|
+
};
|
|
69
|
+
node.metadata = { ...node.metadata, [FORMER_DIVISION]: stamp };
|
|
70
|
+
accepted++;
|
|
71
|
+
}
|
|
72
|
+
return accepted;
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=former-division.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"former-division.js","sourceRoot":"","sources":["../../lib/admin/former-division.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,kEAAkE;AAElE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 -1,4 +1,4 @@
|
|
|
1
|
-
import type { PlacetypeMap } from "@mailwoman/codex/placetype-map";
|
|
1
|
+
import type { PlacetypeMap } from "@mailwoman/codex/labels/placetype-map";
|
|
2
2
|
import type { AddressNode, AddressTree } from "@mailwoman/core/decoder";
|
|
3
3
|
import type { ResolvedPlace, ResolverBackend } from "@mailwoman/core/resolver";
|
|
4
4
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bare-toponym-race.d.ts","sourceRoot":"","sources":["../lib/bare-toponym-race.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"bare-toponym-race.d.ts","sourceRoot":"","sources":["../lib/bare-toponym-race.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAA;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAEvE,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAG9E;;;;;;;;;;;;GAYG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,GAAG,WAAW,GAAG,IAAI,CAKtG;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,2BAA2B,MAAM,CAAA;AAE9C;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,aAAa,GAAG,MAAM,CAE1D;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI,EAAE,MAAM,EAAE,aAAa,GAAG,IAAI,GAAG,aAAa,GAAG,IAAI,CAMjH;AAaD;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,oBAAoB,CACzC,OAAO,EAAE,eAAe,EACxB,IAAI,EAAE,MAAM,EACZ,aAAa,EAAE,MAAM,GAAG,SAAS,GAC/B,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,CAE/B;AAwCD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,mBAAmB,CACxC,OAAO,EAAE,eAAe,EACxB,IAAI,EAAE,MAAM,EACZ,aAAa,EAAE,MAAM,GAAG,SAAS,GAC/B,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,CAE/B;AAED;;;GAGG;AACH,eAAO,MAAM,sBAAsB,EAAE,SAAS,MAAM,EAMnB,CAAA;AAEjC;;;;;;;;;;GAUG;AACH,wBAAsB,wBAAwB,CAC7C,OAAO,EAAE,eAAe,EACxB,IAAI,EAAE,MAAM,EACZ,aAAa,EAAE,MAAM,GAAG,SAAS,GAC/B,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,CAQ/B;AAED;;;;;;;GAOG;AACH,wBAAsB,iBAAiB,CACtC,OAAO,EAAE,eAAe,EACxB,IAAI,EAAE,MAAM,EACZ,aAAa,EAAE,MAAM,GAAG,SAAS,EACjC,WAAW,EAAE,aAAa,GAAG,IAAI,EACjC,UAAU,EAAE,aAAa,GAAG,IAAI,GAC9B,OAAO,CAAC;IACV,KAAK,EAAE,aAAa,CAAA;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,aAAa,GAAG,kBAAkB,CAAA;IAC1C,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACjC,GAAG,IAAI,CAAC,CAsBR"}
|
package/out/decorate-node.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* in its own module so the coherence passes do not import the walk.
|
|
4
4
|
*/
|
|
5
5
|
import type { AddressNode } from "@mailwoman/core/decoder";
|
|
6
|
-
import type
|
|
6
|
+
import { type ResolvedPlace } from "@mailwoman/core/resolver";
|
|
7
7
|
import type { CoordinateOptionalPlace } from "#postcode/prefix";
|
|
8
8
|
/**
|
|
9
9
|
* A resolved node has a real coordinate (placeID set + non-zero lat/lon).
|
|
@@ -16,7 +16,22 @@ export declare function isResolvedWithCoord(n: AddressNode): boolean;
|
|
|
16
16
|
* Each value is true of one place only.
|
|
17
17
|
* A pass that replaces the place removes them, because the new place may supply none of them.
|
|
18
18
|
*/
|
|
19
|
-
export declare const PICK_METADATA_KEYS: readonly ["resolver_score", "resolver_name", "resolver_prominence", "resolver_country", "resolver_referential", "resolver_encyclopedic", "resolver_importance", "resolver_matched_alias", "resolver_bbox", "postcode_city_mismatch", "resolution_quality", "ancestors", "contained_by_parent", "admin_containment", "parent_fallback", "variant_alias_exemption", "county_designator_fallback"];
|
|
19
|
+
export declare const PICK_METADATA_KEYS: readonly ["resolver_score", "resolver_score_unmeasured", "resolver_name", "resolver_prominence", "resolver_country", "resolver_referential", "resolver_encyclopedic", "resolver_importance", "resolver_matched_alias", "resolver_bbox", "postcode_city_mismatch", "resolution_quality", "ancestors", "contained_by_parent", "admin_containment", "parent_fallback", "variant_alias_exemption", "county_designator_fallback", "sibling_locality_containment"];
|
|
20
|
+
/**
|
|
21
|
+
* The most places {@linkcode decorateNode} keeps on a node's `considered` list.
|
|
22
|
+
*
|
|
23
|
+
* A default lookup retrieves 5 rows and the bare-toponym race adds 2, so 10 holds one
|
|
24
|
+
* re-pick's displaced place and runner-ups beside the probe losers.
|
|
25
|
+
* Passes that re-pick the same node repeatedly drop the oldest entries first.
|
|
26
|
+
*/
|
|
27
|
+
export declare const CONSIDERED_LIMIT = 10;
|
|
28
|
+
/**
|
|
29
|
+
* The place a resolver-decorated node holds, read back from its decoration, or null
|
|
30
|
+
* when the node holds no located place with an identifier.
|
|
31
|
+
*
|
|
32
|
+
* `sourceID` is `<placetype>:<id>` as {@linkcode decorateNode} writes it.
|
|
33
|
+
*/
|
|
34
|
+
export declare function placeOfNode(node: AddressNode): ResolvedPlace | null;
|
|
20
35
|
/**
|
|
21
36
|
* Stamp a node with resolver-supplied attribution, displacing any prior classifier `source`
|
|
22
37
|
* / `sourceID` into `metadata.classifier_source` / `metadata.classifier_source_id`
|
|
@@ -25,6 +40,10 @@ export declare const PICK_METADATA_KEYS: readonly ["resolver_score", "resolver_n
|
|
|
25
40
|
* A node the resolver already decorated keeps its classifier stamps as the first decoration wrote them.
|
|
26
41
|
* When the new place differs from the one the node holds, the {@linkcode PICK_METADATA_KEYS}
|
|
27
42
|
* and `alternatives` of the previous place are removed before the new place is written.
|
|
43
|
+
*
|
|
44
|
+
* The previous place and its alternatives move to `considered`, with the `considered`
|
|
45
|
+
* places the caller passes, so the geocode result still reports them.
|
|
46
|
+
* No ranking stage reads `considered`, so moving a place there changes no answer.
|
|
28
47
|
*/
|
|
29
|
-
export declare function decorateNode(node: AddressNode, resolved: CoordinateOptionalPlace, alternatives: ResolvedPlace[]): void;
|
|
48
|
+
export declare function decorateNode(node: AddressNode, resolved: CoordinateOptionalPlace, alternatives: ResolvedPlace[], considered?: readonly ResolvedPlace[]): void;
|
|
30
49
|
//# sourceMappingURL=decorate-node.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decorate-node.d.ts","sourceRoot":"","sources":["../lib/decorate-node.ts"],"names":[],"mappings":"AAGA;;;GAGG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"decorate-node.d.ts","sourceRoot":"","sources":["../lib/decorate-node.ts"],"names":[],"mappings":"AAGA;;;GAGG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,EAAsB,KAAK,aAAa,EAAyB,MAAM,0BAA0B,CAAA;AAGxG,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAA;AAO/D;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,WAAW,GAAG,OAAO,CAO3D;AAED;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,YAC9B,gBAAgB,EAChB,2BAA2B,EAC3B,eAAe,EACf,qBAAqB,EACrB,kBAAkB,EAClB,sBAAsB,EACtB,uBAAuB,EACvB,qBAAqB,EACrB,wBAAwB,EACxB,eAAe,EACf,wBAAwB,EACxB,oBAAoB,EACpB,WAAW,EACX,qBAAqB,EACrB,mBAAmB,EACnB,iBAAiB,EACjB,yBAAyB,EACzB,4BAA4B,EAC5B,8BAA8B,CACrB,CAAA;AAEV;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,KAAK,CAAA;AAElC;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,WAAW,GAAG,aAAa,GAAG,IAAI,CA+BnE;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,YAAY,CAC3B,IAAI,EAAE,WAAW,EACjB,QAAQ,EAAE,uBAAuB,EACjC,YAAY,EAAE,aAAa,EAAE,EAC7B,UAAU,GAAE,SAAS,aAAa,EAAO,GACvC,IAAI,CAoHN"}
|