@mailwoman/codex 4.16.1 → 5.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 (141) hide show
  1. package/out/address-system-conventions.d.ts +5 -5
  2. package/out/address-system-conventions.d.ts.map +1 -1
  3. package/out/address-system-conventions.js +15 -18
  4. package/out/address-system-conventions.js.map +1 -1
  5. package/out/au/delivery-service.d.ts +13 -16
  6. package/out/au/delivery-service.d.ts.map +1 -1
  7. package/out/au/delivery-service.js +13 -15
  8. package/out/au/delivery-service.js.map +1 -1
  9. package/out/au/level-designator.d.ts +20 -21
  10. package/out/au/level-designator.d.ts.map +1 -1
  11. package/out/au/level-designator.js +15 -15
  12. package/out/au/level-designator.js.map +1 -1
  13. package/out/au/postcode.d.ts.map +1 -1
  14. package/out/au/postcode.js.map +1 -1
  15. package/out/ca/postal-code.d.ts +18 -20
  16. package/out/ca/postal-code.d.ts.map +1 -1
  17. package/out/ca/postal-code.js +15 -17
  18. package/out/ca/postal-code.js.map +1 -1
  19. package/out/ca/province.d.ts +8 -8
  20. package/out/ca/province.d.ts.map +1 -1
  21. package/out/ca/province.js +8 -8
  22. package/out/ca/province.js.map +1 -1
  23. package/out/ca/street-type.d.ts +15 -17
  24. package/out/ca/street-type.d.ts.map +1 -1
  25. package/out/ca/street-type.js +15 -17
  26. package/out/ca/street-type.js.map +1 -1
  27. package/out/country/country.d.ts +12 -13
  28. package/out/country/country.d.ts.map +1 -1
  29. package/out/country/country.js +17 -15
  30. package/out/country/country.js.map +1 -1
  31. package/out/country/names.d.ts +1 -1
  32. package/out/country/names.js +1 -1
  33. package/out/country/reference-data.d.ts +1 -1
  34. package/out/country/reference-data.js +1 -1
  35. package/out/country/reference.d.ts +4 -4
  36. package/out/country/reference.d.ts.map +1 -1
  37. package/out/country/reference.js +4 -4
  38. package/out/country/reference.js.map +1 -1
  39. package/out/de/bundesland.d.ts +8 -8
  40. package/out/de/bundesland.d.ts.map +1 -1
  41. package/out/de/bundesland.js +8 -8
  42. package/out/de/bundesland.js.map +1 -1
  43. package/out/de/postleitzahl.d.ts +7 -9
  44. package/out/de/postleitzahl.d.ts.map +1 -1
  45. package/out/de/postleitzahl.js +5 -7
  46. package/out/de/postleitzahl.js.map +1 -1
  47. package/out/de/street-type.d.ts +9 -10
  48. package/out/de/street-type.d.ts.map +1 -1
  49. package/out/de/street-type.js +9 -10
  50. package/out/de/street-type.js.map +1 -1
  51. package/out/fr/cedex.d.ts +2 -3
  52. package/out/fr/cedex.d.ts.map +1 -1
  53. package/out/fr/cedex.js +2 -3
  54. package/out/fr/cedex.js.map +1 -1
  55. package/out/fr/code-postal.d.ts +8 -11
  56. package/out/fr/code-postal.d.ts.map +1 -1
  57. package/out/fr/code-postal.js +6 -9
  58. package/out/fr/code-postal.js.map +1 -1
  59. package/out/fr/departement.d.ts +1 -2
  60. package/out/fr/departement.d.ts.map +1 -1
  61. package/out/fr/departement.js +1 -2
  62. package/out/fr/departement.js.map +1 -1
  63. package/out/fr/region.d.ts +5 -6
  64. package/out/fr/region.d.ts.map +1 -1
  65. package/out/fr/region.js +5 -6
  66. package/out/fr/region.js.map +1 -1
  67. package/out/fr/voie.d.ts +5 -5
  68. package/out/fr/voie.d.ts.map +1 -1
  69. package/out/fr/voie.js +7 -7
  70. package/out/fr/voie.js.map +1 -1
  71. package/out/gb/country.d.ts +2 -2
  72. package/out/gb/country.d.ts.map +1 -1
  73. package/out/gb/country.js +2 -2
  74. package/out/gb/country.js.map +1 -1
  75. package/out/gb/postcode-area.d.ts +10 -12
  76. package/out/gb/postcode-area.d.ts.map +1 -1
  77. package/out/gb/postcode-area.js +14 -16
  78. package/out/gb/postcode-area.js.map +1 -1
  79. package/out/gb/postcode.d.ts +17 -18
  80. package/out/gb/postcode.d.ts.map +1 -1
  81. package/out/gb/postcode.js +14 -15
  82. package/out/gb/postcode.js.map +1 -1
  83. package/out/gb/street-type.d.ts +6 -7
  84. package/out/gb/street-type.d.ts.map +1 -1
  85. package/out/gb/street-type.js +6 -7
  86. package/out/gb/street-type.js.map +1 -1
  87. package/out/jp/address-unit.d.ts +8 -9
  88. package/out/jp/address-unit.d.ts.map +1 -1
  89. package/out/jp/address-unit.js +8 -9
  90. package/out/jp/address-unit.js.map +1 -1
  91. package/out/jp/postal-code.d.ts +12 -15
  92. package/out/jp/postal-code.d.ts.map +1 -1
  93. package/out/jp/postal-code.js +9 -12
  94. package/out/jp/postal-code.js.map +1 -1
  95. package/out/jp/prefecture.d.ts +7 -7
  96. package/out/jp/prefecture.d.ts.map +1 -1
  97. package/out/jp/prefecture.js +15 -16
  98. package/out/jp/prefecture.js.map +1 -1
  99. package/out/nz/delivery-service.d.ts +28 -31
  100. package/out/nz/delivery-service.d.ts.map +1 -1
  101. package/out/nz/delivery-service.js +25 -29
  102. package/out/nz/delivery-service.js.map +1 -1
  103. package/out/nz/postcode.d.ts.map +1 -1
  104. package/out/nz/postcode.js.map +1 -1
  105. package/out/postcode-systems.d.ts +3 -3
  106. package/out/postcode-systems.d.ts.map +1 -1
  107. package/out/postcode-systems.js +6 -7
  108. package/out/postcode-systems.js.map +1 -1
  109. package/out/us/floor-designator.d.ts +15 -18
  110. package/out/us/floor-designator.d.ts.map +1 -1
  111. package/out/us/floor-designator.js +11 -13
  112. package/out/us/floor-designator.js.map +1 -1
  113. package/out/us/military-address.d.ts +16 -17
  114. package/out/us/military-address.d.ts.map +1 -1
  115. package/out/us/military-address.js +16 -17
  116. package/out/us/military-address.js.map +1 -1
  117. package/out/us/po-box.d.ts +12 -12
  118. package/out/us/po-box.d.ts.map +1 -1
  119. package/out/us/po-box.js +12 -12
  120. package/out/us/po-box.js.map +1 -1
  121. package/out/us/state.d.ts +7 -8
  122. package/out/us/state.d.ts.map +1 -1
  123. package/out/us/state.js +7 -8
  124. package/out/us/state.js.map +1 -1
  125. package/out/us/street-directional.d.ts +9 -11
  126. package/out/us/street-directional.d.ts.map +1 -1
  127. package/out/us/street-directional.js +9 -11
  128. package/out/us/street-directional.js.map +1 -1
  129. package/out/us/street-suffix.d.ts +10 -15
  130. package/out/us/street-suffix.d.ts.map +1 -1
  131. package/out/us/street-suffix.js +8 -11
  132. package/out/us/street-suffix.js.map +1 -1
  133. package/out/us/unit-designator.d.ts +12 -15
  134. package/out/us/unit-designator.d.ts.map +1 -1
  135. package/out/us/unit-designator.js +10 -13
  136. package/out/us/unit-designator.js.map +1 -1
  137. package/out/us/zipcode.d.ts +16 -19
  138. package/out/us/zipcode.d.ts.map +1 -1
  139. package/out/us/zipcode.js +6 -6
  140. package/out/us/zipcode.js.map +1 -1
  141. package/package.json +11 -11
@@ -1 +1 @@
1
- {"version":3,"file":"province.d.ts","sourceRoot":"","sources":["../../ca/province.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,8FAA8F;AAC9F,MAAM,WAAW,oBAAoB;IACpC,uFAAuF;IACvF,IAAI,EAAE,MAAM,CAAA;IACZ,oCAAoC;IACpC,IAAI,EAAE,MAAM,CAAA;IACZ,+CAA+C;IAC/C,MAAM,EAAE,MAAM,CAAA;CACd;AAED;;;GAGG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAcgC,CAAA;AAEzD,sEAAsE;AACtE,MAAM,MAAM,oBAAoB,GAAG,MAAM,OAAO,YAAY,CAAA;AAI5D,qFAAqF;AACrF,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,oBAAoB,CAEpF;AAYD;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,EAAE,WAAW,CAAC,MAAM,EAAE,oBAAoB,CAS3E,CAAA;AAEJ;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,oBAAoB,GAAG,IAAI,CAKpG"}
1
+ {"version":3,"file":"province.d.ts","sourceRoot":"","sources":["../../ca/province.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,8FAA8F;AAC9F,MAAM,WAAW,oBAAoB;IACpC,uFAAuF;IACvF,IAAI,EAAE,MAAM,CAAA;IACZ,oCAAoC;IACpC,IAAI,EAAE,MAAM,CAAA;IACZ,+CAA+C;IAC/C,MAAM,EAAE,MAAM,CAAA;CACd;AAED;;;GAGG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAcgC,CAAA;AAEzD,sEAAsE;AACtE,MAAM,MAAM,oBAAoB,GAAG,MAAM,OAAO,YAAY,CAAA;AAI5D,qFAAqF;AACrF,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,oBAAoB,CAEpF;AAYD;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,EAAE,WAAW,CAAC,MAAM,EAAE,oBAAoB,CAW3E,CAAA;AAEJ;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,oBAAoB,GAAG,IAAI,CAOpG"}
@@ -16,8 +16,8 @@
16
16
  * regions, the Canadian code IS a surface form, not just a resolver key.
17
17
  */
18
18
  /**
19
- * ISO 3166-2:CA code → province/territory info, for all 13 subdivisions (10 provinces + 3
20
- * territories). Codes are the official subdivision codes minus the `CA-` prefix.
19
+ * ISO 3166-2:CA code → province/territory info, for all 13 subdivisions (10 provinces + 3 territories). Codes are the
20
+ * official subdivision codes minus the `CA-` prefix.
21
21
  */
22
22
  export const CA_PROVINCES = {
23
23
  AB: { code: "AB", name: "Alberta", french: "Alberta" },
@@ -49,10 +49,10 @@ function foldName(s) {
49
49
  .trim();
50
50
  }
51
51
  /**
52
- * Folded province name (English or French) / code → ISO 3166-2:CA code. Built diacritic-insensitive
53
- * so both co-official names map regardless of accents: `Québec`, `Quebec`, and an unaccented
54
- * `Nouvelle-Ecosse` all resolve. The two-name design is the Canadian wrinkle — unlike the German
55
- * lookup's English exonym, the French form here is a name a real address may legitimately use.
52
+ * Folded province name (English or French) / code → ISO 3166-2:CA code. Built diacritic-insensitive so both co-official
53
+ * names map regardless of accents: `Québec`, `Quebec`, and an unaccented `Nouvelle-Ecosse` all resolve. The two-name
54
+ * design is the Canadian wrinkle — unlike the German lookup's English exonym, the French form here is a name a real
55
+ * address may legitimately use.
56
56
  */
57
57
  export const CA_PROVINCE_NAME_TO_CODE = (() => {
58
58
  const out = new Map();
@@ -65,8 +65,8 @@ export const CA_PROVINCE_NAME_TO_CODE = (() => {
65
65
  return out;
66
66
  })();
67
67
  /**
68
- * Resolve a Canadian province/territory surface form (ISO code, English name, or French name,
69
- * accents optional) to its ISO code; null if unknown.
68
+ * Resolve a Canadian province/territory surface form (ISO code, English name, or French name, accents optional) to its
69
+ * ISO code; null if unknown.
70
70
  */
71
71
  export function lookupCanadianProvince(input) {
72
72
  if (!input || typeof input !== "string")
@@ -1 +1 @@
1
- {"version":3,"file":"province.js","sourceRoot":"","sources":["../../ca/province.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAYH;;;GAGG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG;IAC3B,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE;IACtD,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,kBAAkB,EAAE,MAAM,EAAE,sBAAsB,EAAE;IAC5E,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE;IACxD,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,EAAE,mBAAmB,EAAE;IACtE,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,I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K,KAAK,QAAQ;QAAE,OAAO,IAAI,CAAA;IACpD,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAA;IAExC,IAAI,iBAAiB,CAAC,GAAG,CAAC,KAAK,CAAC;QAAE,OAAO,KAA6B,CAAA;IAEtE,OAAO,wBAAwB,CAAC,GAAG,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,IAAI,IAAI,CAAA;AAC7D,CAAC"}
@@ -23,35 +23,33 @@
23
23
  * Ouest = West is recognized.
24
24
  */
25
25
  /**
26
- * English Canadian street-type words (Canada Post's recognized set, lowercase). Appear as the
27
- * TRAILING token of an English street name (`Maple Avenue`, `Sunset Crescent`).
26
+ * English Canadian street-type words (Canada Post's recognized set, lowercase). Appear as the TRAILING token of an
27
+ * English street name (`Maple Avenue`, `Sunset Crescent`).
28
28
  */
29
29
  export declare const CA_STREET_TYPES_EN: ReadonlySet<string>;
30
30
  /**
31
- * French Canadian street-type words (Canada Post's recognized set, lowercase, accent-bearing).
32
- * Appear as the LEADING token of a French street name (`Rue Sainte-Catherine`, `Chemin du Roy`).
33
- * Folded for matching in {@link isCanadianStreetWord}, so `Côte`/`cote` and `Allée`/`allee` key
34
- * alike.
31
+ * French Canadian street-type words (Canada Post's recognized set, lowercase, accent-bearing). Appear as the LEADING
32
+ * token of a French street name (`Rue Sainte-Catherine`, `Chemin du Roy`). Folded for matching in
33
+ * {@link isCanadianStreetWord}, so `Côte`/`cote` and `Allée`/`allee` key alike.
35
34
  */
36
35
  export declare const CA_STREET_TYPES_FR: ReadonlySet<string>;
37
36
  /**
38
- * True when a token is a Canadian street-type word in EITHER language (case- and
39
- * accent-insensitive) — `Street`, `Crescent`, `Rue`, `Chemin`, `Côte`. Position-agnostic, because
40
- * an English type trails the name and a French type leads it; the matcher cannot lean on a side.
37
+ * True when a token is a Canadian street-type word in EITHER language (case- and accent-insensitive) — `Street`,
38
+ * `Crescent`, `Rue`, `Chemin`, `Côte`. Position-agnostic, because an English type trails the name and a French type
39
+ * leads it; the matcher cannot lean on a side.
41
40
  */
42
41
  export declare function isCanadianStreetWord(token: unknown): boolean;
43
42
  /**
44
- * Bilingual directional words → canonical compass letter. Covers the bare letters (`N S E W`), the
45
- * full English words (`North`/`South`/`East`/`West`), and the full French words
46
- * (`Nord`/`Sud`/`Est`/`Ouest`). The bilingual twist is `O`: French `Ouest` abbreviates to `O`, NOT
47
- * `W`, so an English-only matcher silently drops the quadrant on a French address line. Keys are
48
- * folded (lowercase, accent-free); values are the English compass letter.
43
+ * Bilingual directional words → canonical compass letter. Covers the bare letters (`N S E W`), the full English words
44
+ * (`North`/`South`/`East`/`West`), and the full French words (`Nord`/`Sud`/`Est`/`Ouest`). The bilingual twist is `O`:
45
+ * French `Ouest` abbreviates to `O`, NOT `W`, so an English-only matcher silently drops the quadrant on a French
46
+ * address line. Keys are folded (lowercase, accent-free); values are the English compass letter.
49
47
  */
50
48
  export declare const CA_DIRECTIONALS: Record<string, "N" | "S" | "E" | "W">;
51
49
  /**
52
- * True when a token is a Canadian directional in either language (case- and accent-insensitive) —
53
- * `N`, `NW`, `Nord`, `Ouest`, `O`. Compound English quadrants (`NW`, `SE`) are accepted by
54
- * decomposing into their single-letter halves; the lone French `O` resolves to West.
50
+ * True when a token is a Canadian directional in either language (case- and accent-insensitive) — `N`, `NW`, `Nord`,
51
+ * `Ouest`, `O`. Compound English quadrants (`NW`, `SE`) are accepted by decomposing into their single-letter halves;
52
+ * the lone French `O` resolves to West.
55
53
  */
56
54
  export declare function isCanadianDirectional(token: unknown): boolean;
57
55
  //# sourceMappingURL=street-type.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"street-type.d.ts","sourceRoot":"","sources":["../../ca/street-type.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,WAAW,CAAC,MAAM,CA8BjD,CAAA;AAEF;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,EAAE,WAAW,CAAC,MAAM,CAmBjD,CAAA;AAmBF;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAI5D;AAED;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAcjE,CAAA;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAW7D"}
1
+ {"version":3,"file":"street-type.d.ts","sourceRoot":"","sources":["../../ca/street-type.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,WAAW,CAAC,MAAM,CA8BjD,CAAA;AAEF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,EAAE,WAAW,CAAC,MAAM,CAmBjD,CAAA;AAsBF;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAK5D;AAED;;;;;GAKG;AACH,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAcjE,CAAA;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAgB7D"}
@@ -23,8 +23,8 @@
23
23
  * Ouest = West is recognized.
24
24
  */
25
25
  /**
26
- * English Canadian street-type words (Canada Post's recognized set, lowercase). Appear as the
27
- * TRAILING token of an English street name (`Maple Avenue`, `Sunset Crescent`).
26
+ * English Canadian street-type words (Canada Post's recognized set, lowercase). Appear as the TRAILING token of an
27
+ * English street name (`Maple Avenue`, `Sunset Crescent`).
28
28
  */
29
29
  export const CA_STREET_TYPES_EN = new Set([
30
30
  "street",
@@ -58,10 +58,9 @@ export const CA_STREET_TYPES_EN = new Set([
58
58
  "view",
59
59
  ]);
60
60
  /**
61
- * French Canadian street-type words (Canada Post's recognized set, lowercase, accent-bearing).
62
- * Appear as the LEADING token of a French street name (`Rue Sainte-Catherine`, `Chemin du Roy`).
63
- * Folded for matching in {@link isCanadianStreetWord}, so `Côte`/`cote` and `Allée`/`allee` key
64
- * alike.
61
+ * French Canadian street-type words (Canada Post's recognized set, lowercase, accent-bearing). Appear as the LEADING
62
+ * token of a French street name (`Rue Sainte-Catherine`, `Chemin du Roy`). Folded for matching in
63
+ * {@link isCanadianStreetWord}, so `Côte`/`cote` and `Allée`/`allee` key alike.
65
64
  */
66
65
  export const CA_STREET_TYPES_FR = new Set([
67
66
  "rue",
@@ -101,9 +100,9 @@ const STREET_WORD_SET = (() => {
101
100
  return out;
102
101
  })();
103
102
  /**
104
- * True when a token is a Canadian street-type word in EITHER language (case- and
105
- * accent-insensitive) — `Street`, `Crescent`, `Rue`, `Chemin`, `Côte`. Position-agnostic, because
106
- * an English type trails the name and a French type leads it; the matcher cannot lean on a side.
103
+ * True when a token is a Canadian street-type word in EITHER language (case- and accent-insensitive) — `Street`,
104
+ * `Crescent`, `Rue`, `Chemin`, `Côte`. Position-agnostic, because an English type trails the name and a French type
105
+ * leads it; the matcher cannot lean on a side.
107
106
  */
108
107
  export function isCanadianStreetWord(token) {
109
108
  if (typeof token !== "string")
@@ -112,11 +111,10 @@ export function isCanadianStreetWord(token) {
112
111
  return t.length > 0 && STREET_WORD_SET.has(t);
113
112
  }
114
113
  /**
115
- * Bilingual directional words → canonical compass letter. Covers the bare letters (`N S E W`), the
116
- * full English words (`North`/`South`/`East`/`West`), and the full French words
117
- * (`Nord`/`Sud`/`Est`/`Ouest`). The bilingual twist is `O`: French `Ouest` abbreviates to `O`, NOT
118
- * `W`, so an English-only matcher silently drops the quadrant on a French address line. Keys are
119
- * folded (lowercase, accent-free); values are the English compass letter.
114
+ * Bilingual directional words → canonical compass letter. Covers the bare letters (`N S E W`), the full English words
115
+ * (`North`/`South`/`East`/`West`), and the full French words (`Nord`/`Sud`/`Est`/`Ouest`). The bilingual twist is `O`:
116
+ * French `Ouest` abbreviates to `O`, NOT `W`, so an English-only matcher silently drops the quadrant on a French
117
+ * address line. Keys are folded (lowercase, accent-free); values are the English compass letter.
120
118
  */
121
119
  export const CA_DIRECTIONALS = {
122
120
  n: "N",
@@ -134,9 +132,9 @@ export const CA_DIRECTIONALS = {
134
132
  o: "W", // French Ouest abbreviates to O, not W — the bilingual trap.
135
133
  };
136
134
  /**
137
- * True when a token is a Canadian directional in either language (case- and accent-insensitive) —
138
- * `N`, `NW`, `Nord`, `Ouest`, `O`. Compound English quadrants (`NW`, `SE`) are accepted by
139
- * decomposing into their single-letter halves; the lone French `O` resolves to West.
135
+ * True when a token is a Canadian directional in either language (case- and accent-insensitive) — `N`, `NW`, `Nord`,
136
+ * `Ouest`, `O`. Compound English quadrants (`NW`, `SE`) are accepted by decomposing into their single-letter halves;
137
+ * the lone French `O` resolves to West.
140
138
  */
141
139
  export function isCanadianDirectional(token) {
142
140
  if (typeof token !== "string")
@@ -1 +1 @@
1
- {"version":3,"file":"street-type.js","sourceRoot":"","sources":["../../ca/street-type.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAwB,IAAI,GAAG,CAAC;IAC9D,QAAQ;IACR,QAAQ;IACR,WAAW;IACX,OAAO;IACP,MAAM;IACN,UAAU;IACV,OAAO;IACP,OAAO;IACP,MAAM;IACN,KAAK;IACL,OAAO;IACP,SAAS;IACT,OAAO;IACP,QAAQ;IACR,QAAQ;IACR,SAAS;IACT,OAAO;IACP,SAAS;IACT,MAAM;IACN,MAAM;IACN,KAAK;IACL,MAAM;IACN,OAAO;IACP,KAAK;IACL,MAAM;IACN,MAAM;IACN,OAAO;IACP,OAAO;IACP,MAAM;CACN,CAAC,CAAA;AAEF;;;;;GAKG;AACH,MAAM,CAAC,MAA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ryISO2, type CountryISO3 } from "./codes.js";
14
14
  import { type CountryName } from "./names.js";
15
15
  /**
16
- * Common real-address surface forms per ISO 3166-1 alpha-2, **canonical English name first** then
17
- * endonym + abbreviations. Curated for the corpus locales + frequent countries (NOT a full
18
- * 249-entry variant table — the ISO base below catches the canonical name/code for everything
19
- * else). Forms are matched case-insensitively; the first entry is the preferred render form.
16
+ * Common real-address surface forms per ISO 3166-1 alpha-2, **canonical English name first** then endonym +
17
+ * abbreviations. Curated for the corpus locales + frequent countries (NOT a full 249-entry variant table — the ISO base
18
+ * below catches the canonical name/code for everything else). Forms are matched case-insensitively; the first entry is
19
+ * the preferred render form.
20
20
  */
21
21
  export declare const COUNTRY_SURFACE_FORMS: {
22
22
  readonly US: readonly ["United States", "USA", "US", "U.S.A.", "U.S.", "United States of America", "America"];
@@ -35,13 +35,13 @@ export declare const COUNTRY_SURFACE_FORMS: {
35
35
  readonly MX: readonly ["Mexico", "México", "MX", "MEX"];
36
36
  readonly JP: readonly ["Japan", "日本", "Nippon", "JP", "JPN"];
37
37
  };
38
- export type CountrySurfaceIso2 = keyof typeof COUNTRY_SURFACE_FORMS;
38
+ export type CountrySurfaceISO2 = keyof typeof COUNTRY_SURFACE_FORMS;
39
39
  /** Alpha-2 → canonical English name (inverted from the salvaged CountryISO2 enum). */
40
40
  export declare const ISO2_TO_NAME: ReadonlyMap<string, CountryName>;
41
41
  /**
42
- * Any recognized country surface form / canonical name / alpha-2 / alpha-3 → alpha-2 code. Built
43
- * once at module load, lowercase-keyed. Canonical names + codes from the ISO base, plus the curated
44
- * surface forms (surface forms win on collision — they're the address-facing spellings).
42
+ * Any recognized country surface form / canonical name / alpha-2 / alpha-3 → alpha-2 code. Built once at module load,
43
+ * lowercase-keyed. Canonical names + codes from the ISO base, plus the curated surface forms (surface forms win on
44
+ * collision — they're the address-facing spellings).
45
45
  */
46
46
  export declare const COUNTRY_LOOKUP: ReadonlyMap<string, string>;
47
47
  /** Result of a country match: the alpha-2 code, the canonical English name, and the matched surface. */
@@ -51,16 +51,15 @@ export interface CountryMatch {
51
51
  matched: string;
52
52
  }
53
53
  /**
54
- * Resolve a token (surface form, canonical name, alpha-2, or alpha-3) to a country.
55
- * Case-insensitive. Returns null if unrecognized. Multi-word names ("United States", "Great
56
- * Britain") must be passed as the whole phrase — the caller decides the span; this matches it.
54
+ * Resolve a token (surface form, canonical name, alpha-2, or alpha-3) to a country. Case-insensitive. Returns null if
55
+ * unrecognized. Multi-word names ("United States", "Great Britain") must be passed as the whole phrase — the caller
56
+ * decides the span; this matches it.
57
57
  */
58
58
  export declare function matchCountry(token: string | null | undefined): CountryMatch | null;
59
59
  /** Case-insensitive check: is the token any recognized country form? */
60
60
  export declare function isCountryToken(token: unknown): boolean;
61
61
  /**
62
- * The preferred render forms for an alpha-2 (canonical first), for synth shards. Empty if none
63
- * curated.
62
+ * The preferred render forms for an alpha-2 (canonical first), for synth shards. Empty if none curated.
64
63
  */
65
64
  export declare function countrySurfaceForms(iso2: string): readonly string[];
66
65
  export { Alpha3ToCountryRecord, CountryISO2 };
@@ -1 +1 @@
1
- {"version":3,"file":"country.d.ts","sourceRoot":"","sources":["../../country/country.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,qBAAqB,EAAE,WAAW,EAAE,KAAK,WAAW,EAAE,MAAM,YAAY,CAAA;AACjF,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,YAAY,CAAA;AAE7C;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;CAgB6B,CAAA;AAE/D,MAAM,MAAM,kBAAkB,GAAG,MAAM,OAAO,qBAAqB,CAAA;AAEnE,sFAAsF;AACtF,eAAO,MAAM,YAAY,EAAE,WAAW,CAAC,MAAM,EAAE,WAAW,CAEzD,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,cAAc,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAkBnD,CAAA;AAEJ,wGAAwG;AACxG,MA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AAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,YAAY,GAAG,IAAI,CAOlF;AAED,wEAAwE;AACxE,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAEtD;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,CAEnE;AAED,OAAO,EAAE,qBAAqB,EAAE,WAAW,EAAE,CAAA;AAC7C,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,CAAA"}
@@ -13,10 +13,10 @@
13
13
  import { Alpha3ToCountryRecord, CountryISO2 } from "./codes.js";
14
14
  import {} from "./names.js";
15
15
  /**
16
- * Common real-address surface forms per ISO 3166-1 alpha-2, **canonical English name first** then
17
- * endonym + abbreviations. Curated for the corpus locales + frequent countries (NOT a full
18
- * 249-entry variant table — the ISO base below catches the canonical name/code for everything
19
- * else). Forms are matched case-insensitively; the first entry is the preferred render form.
16
+ * Common real-address surface forms per ISO 3166-1 alpha-2, **canonical English name first** then endonym +
17
+ * abbreviations. Curated for the corpus locales + frequent countries (NOT a full 249-entry variant table — the ISO base
18
+ * below catches the canonical name/code for everything else). Forms are matched case-insensitively; the first entry is
19
+ * the preferred render form.
20
20
  */
21
21
  export const COUNTRY_SURFACE_FORMS = {
22
22
  US: ["United States", "USA", "US", "U.S.A.", "U.S.", "United States of America", "America"],
@@ -38,9 +38,9 @@ export const COUNTRY_SURFACE_FORMS = {
38
38
  /** Alpha-2 → canonical English name (inverted from the salvaged CountryISO2 enum). */
39
39
  export const ISO2_TO_NAME = new Map(Object.entries(CountryISO2).map(([name, code]) => [code, name]));
40
40
  /**
41
- * Any recognized country surface form / canonical name / alpha-2 / alpha-3 → alpha-2 code. Built
42
- * once at module load, lowercase-keyed. Canonical names + codes from the ISO base, plus the curated
43
- * surface forms (surface forms win on collision — they're the address-facing spellings).
41
+ * Any recognized country surface form / canonical name / alpha-2 / alpha-3 → alpha-2 code. Built once at module load,
42
+ * lowercase-keyed. Canonical names + codes from the ISO base, plus the curated surface forms (surface forms win on
43
+ * collision — they're the address-facing spellings).
44
44
  */
45
45
  export const COUNTRY_LOOKUP = (() => {
46
46
  const out = new Map();
@@ -50,10 +50,13 @@ export const COUNTRY_LOOKUP = (() => {
50
50
  out.set(key, iso2);
51
51
  };
52
52
  // ISO base: canonical name + alpha-2 + alpha-3.
53
- for (const [name, code] of Object.entries(CountryISO2))
53
+ for (const [name, code] of Object.entries(CountryISO2)) {
54
54
  put(name, code);
55
- for (const [code] of Object.entries(CountryISO2))
56
- put(code, code); // "US" -> US
55
+ }
56
+ for (const [code] of Object.entries(CountryISO2)) {
57
+ put(code, code);
58
+ }
59
+ // "US" -> US
57
60
  for (const [alpha3, name] of Object.entries(Alpha3ToCountryRecord)) {
58
61
  const iso2 = CountryISO2[name];
59
62
  if (iso2)
@@ -67,9 +70,9 @@ export const COUNTRY_LOOKUP = (() => {
67
70
  return out;
68
71
  })();
69
72
  /**
70
- * Resolve a token (surface form, canonical name, alpha-2, or alpha-3) to a country.
71
- * Case-insensitive. Returns null if unrecognized. Multi-word names ("United States", "Great
72
- * Britain") must be passed as the whole phrase — the caller decides the span; this matches it.
73
+ * Resolve a token (surface form, canonical name, alpha-2, or alpha-3) to a country. Case-insensitive. Returns null if
74
+ * unrecognized. Multi-word names ("United States", "Great Britain") must be passed as the whole phrase — the caller
75
+ * decides the span; this matches it.
73
76
  */
74
77
  export function matchCountry(token) {
75
78
  if (!token || typeof token !== "string")
@@ -84,8 +87,7 @@ export function isCountryToken(token) {
84
87
  return typeof token === "string" && COUNTRY_LOOKUP.has(token.trim().toLowerCase());
85
88
  }
86
89
  /**
87
- * The preferred render forms for an alpha-2 (canonical first), for synth shards. Empty if none
88
- * curated.
90
+ * The preferred render forms for an alpha-2 (canonical first), for synth shards. Empty if none curated.
89
91
  */
90
92
  export function countrySurfaceForms(iso2) {
91
93
  return COUNTRY_SURFACE_FORMS[iso2.toUpperCase()] ?? [];
@@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AAC,WAAW,EAAE,CAAC,CAAA;AACnF,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,mBAAmB,CAAC,IAAY;IAC/C,OAAQ,qBAA2D,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,CAAA;AAC9F,CAAC;AAED,OAAO,EAAE,qBAAqB,EAAE,WAAW,EAAE,CAAA"}
@@ -7,8 +7,8 @@
7
7
  * List of all countries in the world.
8
8
  *
9
9
  * @category Geographic
10
- * @see https://en.wikipedia.org/wiki/List_of_countries
11
10
  * @internal
11
+ * @see https://en.wikipedia.org/wiki/List_of_countries
12
12
  */
13
13
  export declare const CountryNames: readonly ["Afghanistan", "Albania", "Algeria", "American Samoa", "Andorra", "Angola", "Anguilla", "Antarctica", "Antigua and Barbuda", "Argentina", "Armenia", "Aruba", "Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bermuda", "Bhutan", "Bolivia", "Bonaire, Sint Eustatius and Saba", "Bosnia and Herzegovina", "Botswana", "Bouvet Island", "Brazil", "British Indian Ocean Territory", "Brunei Darussalam", "Bulgaria", "Burkina Faso", "Burundi", "Cambodia", "Cameroon", "Canada", "Cape Verde", "Cayman Islands", "Central African Republic", "Chad", "Chile", "China", "Christmas Island", "Cocos (Keeling) Islands", "Colombia", "Comoros", "Congo", "Congo, the Democratic Republic of the", "Cook Islands", "Costa Rica", "Cote DIvoire", "Croatia", "Cuba", "Curaçao", "Cyprus", "Czech Republic", "Denmark", "Djibouti", "Dominica", "Dominican Republic", "Ecuador", "Egypt", "El Salvador", "Equatorial Guinea", "Eritrea", "Estonia", "Ethiopia", "Falkland Islands (Malvinas)", "Faroe Islands", "Fiji", "Finland", "France", "French Guiana", "French Polynesia", "French Southern Territories", "Gabon", "Gambia", "Georgia", "Germany", "Ghana", "Gibraltar", "Greece", "Greenland", "Grenada", "Guadeloupe", "Guam", "Guatemala", "Guernsey", "Guinea", "Guinea-Bissau", "Guyana", "Haiti", "Heard Island and Mcdonald Islands", "Holy See (Vatican City State)", "Honduras", "Hong Kong", "Hungary", "Iceland", "India", "Indonesia", "Iran, Islamic Republic of", "Iraq", "Ireland", "Isle of Man", "Israel", "Italy", "Jamaica", "Japan", "Jersey", "Jordan", "Kazakhstan", "Kenya", "Kiribati", "Korea, Democratic People's Republic of", "Korea, Republic of", "Kuwait", "Kyrgyzstan", "Lao People's Democratic Republic", "Latvia", "Lebanon", "Lesotho", "Liberia", "Libya", "Liechtenstein", "Lithuania", "Luxembourg", "Macao", "Macedonia, the Former Yugoslav Republic of", "Madagascar", "Malawi", "Malaysia", "Maldives", "Mali", "Malta", "Marshall Islands", "Martinique", "Mauritania", "Mauritius", "Mayotte", "Mexico", "Micronesia, Federated States of", "Moldova, Republic of", "Monaco", "Mongolia", "Montenegro", "Montserrat", "Morocco", "Mozambique", "Myanmar", "Namibia", "Nauru", "Nepal", "Netherlands", "New Caledonia", "New Zealand", "Nicaragua", "Niger", "Nigeria", "Niue", "Norfolk Island", "Northern Mariana Islands", "Norway", "Oman", "Pakistan", "Palau", "Palestine, State of", "Panama", "Papua New Guinea", "Paraguay", "Peru", "Philippines", "Pitcairn", "Poland", "Portugal", "Puerto Rico", "Qatar", "Reunion", "Romania", "Russian Federation", "Rwanda", "Saint Barthélemy", "Saint Helena, Ascension and Tristan da Cunha", "Saint Kitts and Nevis", "Saint Lucia", "Saint Martin (French part)", "Saint Pierre and Miquelon", "Saint Vincent and the Grenadines", "Samoa", "San Marino", "Sao Tome and Principe", "Saudi Arabia", "Senegal", "Serbia", "Seychelles", "Sierra Leone", "Singapore", "Sint Maarten (Dutch part)", "Slovakia", "Slovenia", "Solomon Islands", "Somalia", "South Africa", "South Georgia and the South Sandwich Islands", "South Sudan", "Spain", "Sri Lanka", "Sudan", "Suriname", "Svalbard and Jan Mayen", "Swaziland", "Sweden", "Switzerland", "Syrian Arab Republic", "Taiwan (Province of China)", "Tajikistan", "Tanzania, United Republic of", "Thailand", "Timor-Leste", "Togo", "Tokelau", "Tonga", "Trinidad and Tobago", "Tunisia", "Turkey", "Turkmenistan", "Turks and Caicos Islands", "Tuvalu", "Uganda", "Ukraine", "United Arab Emirates", "United Kingdom", "United States", "United States Minor Outlying Islands", "Uruguay", "Uzbekistan", "Vanuatu", "Venezuela", "Viet Nam", "Virgin Islands (British)", "Virgin Islands (U.S.)", "Wallis and Futuna", "Western Sahara", "Yemen", "Zambia", "Zimbabwe", "Åland Islands"];
14
14
  /**
@@ -7,8 +7,8 @@
7
7
  * List of all countries in the world.
8
8
  *
9
9
  * @category Geographic
10
- * @see https://en.wikipedia.org/wiki/List_of_countries
11
10
  * @internal
11
+ * @see https://en.wikipedia.org/wiki/List_of_countries
12
12
  */
13
13
  export const CountryNames = [
14
14
  "Afghanistan",
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * GENERATED — do not edit by hand. Country calling codes (E.164) + currencies (ISO 4217), derived
7
7
  * from mledoze/countries (https://github.com/mledoze/countries, ODbL). NANP members map to 1.
8
- * Regenerate with scripts/build-country-reference.mjs.
8
+ * Regenerate with scripts/build-country-reference.ts.
9
9
  */
10
10
  /** Static per-country reference: calling code + currency. */
11
11
  export interface CountryReference {
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * GENERATED — do not edit by hand. Country calling codes (E.164) + currencies (ISO 4217), derived
7
7
  * from mledoze/countries (https://github.com/mledoze/countries, ODbL). NANP members map to 1.
8
- * Regenerate with scripts/build-country-reference.mjs.
8
+ * Regenerate with scripts/build-country-reference.ts.
9
9
  */
10
10
  /** ISO 3166-1 alpha-2 → reference. */
11
11
  export const COUNTRY_REFERENCE = {
@@ -10,13 +10,13 @@
10
10
  */
11
11
  import type { Annotator } from "@mailwoman/annotations";
12
12
  /**
13
- * The flag emoji for an ISO 3166-1 alpha-2 country code, formed from the two Regional Indicator
14
- * Symbols (`US` → 🇺🇸). Returns `""` for anything that is not two ASCII letters.
13
+ * The flag emoji for an ISO 3166-1 alpha-2 country code, formed from the two Regional Indicator Symbols (`US` → 🇺🇸).
14
+ * Returns `""` for anything that is not two ASCII letters.
15
15
  */
16
16
  export declare function countryFlag(alpha2: string): string;
17
17
  /**
18
- * Fill the country-reference slice (ISO 3166 alpha-2, flag, calling code, currency) from a resolved
19
- * country code. Abstains on anything that isn't two ASCII letters.
18
+ * Fill the country-reference slice (ISO 3166 alpha-2, flag, calling code, currency) from a resolved country code.
19
+ * Abstains on anything that isn't two ASCII letters.
20
20
  */
21
21
  export declare const countryReferenceAnnotator: Annotator;
22
22
  //# sourceMappingURL=reference.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"reference.d.ts","sourceRoot":"","sources":["../../country/reference.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAiB,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAMtE;;;GAGG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAIlD;AAED;;;GAGG;AACH,eAAO,MAAM,yBAAyB,EAAE,SAWvC,CAAA"}
1
+ {"version":3,"file":"reference.d.ts","sourceRoot":"","sources":["../../country/reference.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAiB,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAOtE;;;GAGG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAMlD;AAED;;;GAGG;AACH,eAAO,MAAM,yBAAyB,EAAE,SAYvC,CAAA"}
@@ -12,8 +12,8 @@ import { COUNTRY_REFERENCE } from "./reference-data.js";
12
12
  const REGIONAL_INDICATOR_BASE = 0x1f1e6;
13
13
  const A_UPPER = "A".charCodeAt(0);
14
14
  /**
15
- * The flag emoji for an ISO 3166-1 alpha-2 country code, formed from the two Regional Indicator
16
- * Symbols (`US` → 🇺🇸). Returns `""` for anything that is not two ASCII letters.
15
+ * The flag emoji for an ISO 3166-1 alpha-2 country code, formed from the two Regional Indicator Symbols (`US` → 🇺🇸).
16
+ * Returns `""` for anything that is not two ASCII letters.
17
17
  */
18
18
  export function countryFlag(alpha2) {
19
19
  const code = alpha2.toUpperCase();
@@ -22,8 +22,8 @@ export function countryFlag(alpha2) {
22
22
  return String.fromCodePoint(...[...code].map((c) => REGIONAL_INDICATOR_BASE + c.charCodeAt(0) - A_UPPER));
23
23
  }
24
24
  /**
25
- * Fill the country-reference slice (ISO 3166 alpha-2, flag, calling code, currency) from a resolved
26
- * country code. Abstains on anything that isn't two ASCII letters.
25
+ * Fill the country-reference slice (ISO 3166 alpha-2, flag, calling code, currency) from a resolved country code.
26
+ * Abstains on anything that isn't two ASCII letters.
27
27
  */
28
28
  export const countryReferenceAnnotator = ({ countryCode }) => {
29
29
  if (!countryCode || !/^[A-Za-z]{2}$/.test(countryCode))
@@ -1 +1 @@
1
- {"version":3,"file":"reference.js","sourceRoot":"","sources":["../../country/reference.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAEvD,MAAM,uBAAuB,GAAG,OAAO,CAAA;AACvC,MAAM,OAAO,GAAG,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAA;AAEjC;;;GAGG;AACH,MAAM,UAAU,WAAW,CAAC,MAAc;IACzC,MAAM,IAAI,GAAG,MAAM,CAAC,WAAW,EAAE,CAAA;IACjC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC;QAAE,OAAO,EAAE,CAAA;IACvC,OAAO,MAAM,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,uBAAuB,GAAG,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAA;AAC1G,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAc,CAAC,EAAE,WAAW,EAAE,E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AAC,EAAE,EAAE,CAAC,uBAAuB,GAAG,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAA;AAC1G,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAc,CAAC,EAAE,WAAW,EAAE,EAA0B,EAAE;IAC/F,IAAI,CAAC,WAAW,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,WAAW,CAAC;QAAE,OAAO,EAAE,CAAA;IACjE,MAAM,MAAM,GAAG,WAAW,CAAC,WAAW,EAAE,CAAA;IACxC,MAAM,GAAG,GAAG,iBAAiB,CAAC,MAAM,CAAC,CAAA;IACrC,MAAM,IAAI,GAAG,WAAW,CAAC,MAAM,CAAC,CAAA;IAEhC,OAAO;QACN,OAAO,EAAE,EAAE,MAAM,EAAE;QACnB,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACzB,GAAG,CAAC,GAAG,EAAE,WAAW,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,GAAG,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACrE,GAAG,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KACpD,CAAA;AACF,CAAC,CAAA"}
@@ -20,8 +20,8 @@ export interface GermanStateInfo {
20
20
  english: string;
21
21
  }
22
22
  /**
23
- * ISO 3166-2:DE code → state info, for all 16 Bundesländer. Codes are the official subdivision
24
- * codes minus the `DE-` prefix.
23
+ * ISO 3166-2:DE code → state info, for all 16 Bundesländer. Codes are the official subdivision codes minus the `DE-`
24
+ * prefix.
25
25
  */
26
26
  export declare const DE_BUNDESLAENDER: {
27
27
  readonly BW: {
@@ -110,15 +110,15 @@ export type GermanStateCode = keyof typeof DE_BUNDESLAENDER;
110
110
  /** Type-predicate for an ISO 3166-2:DE state code. Case-insensitive. */
111
111
  export declare function isGermanStateCode(input: unknown): input is GermanStateCode;
112
112
  /**
113
- * Name (native German, English exonym, or common alias) → ISO 3166-2:DE code, lowercase-keyed.
114
- * Includes the everyday aliases a parser actually meets: `NRW` for Nordrhein-Westfalen, `Bavaria`
115
- * for Bayern, `Saxony` for Sachsen. The point is resolver region-matching: a German parse emits a
116
- * region surface form, and the eval needs to map it to a code without a US-USPS-shaped matcher.
113
+ * Name (native German, English exonym, or common alias) → ISO 3166-2:DE code, lowercase-keyed. Includes the everyday
114
+ * aliases a parser actually meets: `NRW` for Nordrhein-Westfalen, `Bavaria` for Bayern, `Saxony` for Sachsen. The point
115
+ * is resolver region-matching: a German parse emits a region surface form, and the eval needs to map it to a code
116
+ * without a US-USPS-shaped matcher.
117
117
  */
118
118
  export declare const DE_STATE_NAME_TO_CODE: ReadonlyMap<string, GermanStateCode>;
119
119
  /**
120
- * Resolve a German state surface form (code, German name, English name, or common alias) to its ISO
121
- * 3166-2:DE code. Returns null when unrecognized.
120
+ * Resolve a German state surface form (code, German name, English name, or common alias) to its ISO 3166-2:DE code.
121
+ * Returns null when unrecognized.
122
122
  */
123
123
  export declare function lookupGermanState(input: string | null | undefined): GermanStateCode | null;
124
124
  //# sourceMappingURL=bundesland.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bundesland.d.ts","sourceRoot":"","sources":["../../de/bundesland.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,+FAA+F;AAC/F,MAAM,WAAW,eAAe;IAC/B,uFAAuF;IACvF,IAAI,EAAE,MAAM,CAAA;IACZ,0CAA0C;IAC1C,IAAI,EAAE,MAAM,CAAA;IACZ,4CAA4C;IAC5C,OAAO,EAAE,MAAM,CAAA;CACf;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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8 @@
11
11
  * codes matter for resolver region-matching and display, not for parsing the surface string.
12
12
  */
13
13
  /**
14
- * ISO 3166-2:DE code → state info, for all 16 Bundesländer. Codes are the official subdivision
15
- * codes minus the `DE-` prefix.
14
+ * ISO 3166-2:DE code → state info, for all 16 Bundesländer. Codes are the official subdivision codes minus the `DE-`
15
+ * prefix.
16
16
  */
17
17
  export const DE_BUNDESLAENDER = {
18
18
  BW: { code: "BW", name: "Baden-Württemberg", english: "Baden-Württemberg" },
@@ -38,10 +38,10 @@ export function isGermanStateCode(input) {
38
38
  return typeof input === "string" && STATE_CODE_SET.has(input.toUpperCase());
39
39
  }
40
40
  /**
41
- * Name (native German, English exonym, or common alias) → ISO 3166-2:DE code, lowercase-keyed.
42
- * Includes the everyday aliases a parser actually meets: `NRW` for Nordrhein-Westfalen, `Bavaria`
43
- * for Bayern, `Saxony` for Sachsen. The point is resolver region-matching: a German parse emits a
44
- * region surface form, and the eval needs to map it to a code without a US-USPS-shaped matcher.
41
+ * Name (native German, English exonym, or common alias) → ISO 3166-2:DE code, lowercase-keyed. Includes the everyday
42
+ * aliases a parser actually meets: `NRW` for Nordrhein-Westfalen, `Bavaria` for Bayern, `Saxony` for Sachsen. The point
43
+ * is resolver region-matching: a German parse emits a region surface form, and the eval needs to map it to a code
44
+ * without a US-USPS-shaped matcher.
45
45
  */
46
46
  export const DE_STATE_NAME_TO_CODE = (() => {
47
47
  const out = new Map();
@@ -67,8 +67,8 @@ export const DE_STATE_NAME_TO_CODE = (() => {
67
67
  return out;
68
68
  })();
69
69
  /**
70
- * Resolve a German state surface form (code, German name, English name, or common alias) to its ISO
71
- * 3166-2:DE code. Returns null when unrecognized.
70
+ * Resolve a German state surface form (code, German name, English name, or common alias) to its ISO 3166-2:DE code.
71
+ * Returns null when unrecognized.
72
72
  */
73
73
  export function lookupGermanState(input) {
74
74
  if (!input || typeof input !== "string")
@@ -1 +1 @@
1
- {"version":3,"file":"bundesland.js","sourceRoot":"","sources":["../../de/bundesland.ts"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AC,KAAK,EAAE,IAAI,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC;QAAE,GAAG,CAAC,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,CAAA;IAEzE,OAAO,GAAG,CAAA;AACX,CAAC,CAAC,EAAE,CAAA;AAEJ;;;GAGG;AACH,MAAM,UAAU,iBAAiB,CAAC,KAAgC;IACjE,IAAI,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,IAAI,CAAA;IACpD,MAAM,GAAG,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAA;IAEtC,IAAI,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC;QAAE,OAAO,GAAG,CAAC,WAAW,EAAqB,CAAA;IAEtF,OAAO,qBAAqB,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,IAAI,CAAA;AAC9C,CAAC"}
@@ -16,8 +16,8 @@
16
16
  */
17
17
  import type { Tagged } from "type-fest";
18
18
  /**
19
- * A German postal code: five digits since the 1993 reform (`12623`). A bare 5-digit string, same
20
- * shape as a US ZIP or a French code postal — disambiguation is the parser's job, not the shape's.
19
+ * A German postal code: five digits since the 1993 reform (`12623`). A bare 5-digit string, same shape as a US ZIP or a
20
+ * French code postal — disambiguation is the parser's job, not the shape's.
21
21
  *
22
22
  * @category Postal
23
23
  * @type string
@@ -28,9 +28,8 @@ export type Postleitzahl = Tagged<string, "Postleitzahl">;
28
28
  /** The PLZ shape: exactly five digits. */
29
29
  export declare const PLZ_PATTERN: RegExp;
30
30
  /**
31
- * Normalize a PLZ surface form to the bare five digits: strip the `D-` / `DE-` country courtesy
32
- * prefix and surrounding whitespace (`D-68161` → `68161`). Returns null if the result is not a
33
- * PLZ.
31
+ * Normalize a PLZ surface form to the bare five digits: strip the `D-` / `DE-` country courtesy prefix and surrounding
32
+ * whitespace (`D-68161` → `68161`). Returns null if the result is not a PLZ.
34
33
  */
35
34
  export declare function normalizePLZ(raw: unknown): Postleitzahl | null;
36
35
  /** Type-predicate for a (normalized) German postal code. */
@@ -46,10 +45,9 @@ export interface LeitzoneInfo {
46
45
  cities: readonly string[];
47
46
  }
48
47
  /**
49
- * PLZ first digit → Leitzone. A coarse, postal-routing prior: these zones cross Bundesland borders,
50
- * so the label is "which corner of Germany", not "which state". Anchor cities are the safe,
51
- * well-known way to pin a zone without over-claiming a boundary the routing geography does not
52
- * actually follow.
48
+ * PLZ first digit → Leitzone. A coarse, postal-routing prior: these zones cross Bundesland borders, so the label is
49
+ * "which corner of Germany", not "which state". Anchor cities are the safe, well-known way to pin a zone without
50
+ * over-claiming a boundary the routing geography does not actually follow.
53
51
  */
54
52
  export declare const PLZ_LEITZONEN: {
55
53
  readonly 0: {
@@ -1 +1 @@
1
- {"version":3,"file":"postleitzahl.d.ts","sourceRoot":"","sources":["../../de/postleitzahl.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAEvC;;;;;;;;GAQG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;AAEzD,0CAA0C;AAC1C,eAAO,MAAM,WAAW,QAAY,CAAA;AAEpC;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,OAAO,GAAG,YAAY,GAAG,IAAI,CAI9D;AAED,4DAA4D;AAC5D,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,YAAY,CAEpE;AAED,kCAAkC;AAClC,MAAM,MAAM,aAAa,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;AAEjE,sGAAsG;AACtG,MAAM,WAAW,YAAY;IAC5B,KAAK,EAAE,aAAa,CAAA;IACpB,mCAAmC;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