@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":"prefecture.js","sourceRoot":"","sources":["../../jp/prefecture.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAiBH;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC7B,IAAI,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE;IAClE,IAAI,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE;IACjE,IAAI,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE;IAChE,IAAI,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE;IACjE,IAAI,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE;IAChE,IAAI,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,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AM,IAAI,IAAI,MAAM,CAAC,IAAI,CAAC,cAAc,CAA6B,EAAE,CAAC;QAC5E,MAAM,IAAI,GAAG,cAAc,CAAC,IAAI,CAAC,CAAA;QACjC,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,CAAA;QACtC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAA;QACzB,GAAG,CAAC,GAAG,CAAC,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC,CAAA;IAC5C,CAAC;IAED,OAAO,GAAG,CAAA;AACX,CAAC,CAAC,EAAE,CAAA;AAEJ;;;;;;;;;GASG;AACH,MAAM,UAAU,wBAAwB,CAAC,KAAgC;IACxE,IAAI,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,IAAI,CAAA;IACpD,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,EAAE,CAAA;IAE5B,IAAI,mBAAmB,CAAC,GAAG,CAAC,OAAO,CAAC;QAAE,OAAO,OAAiC,CAAA;IAE9E,yFAAyF;IACzF,OAAO,0BAA0B,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,0BAA0B,CAAC,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,IAAI,IAAI,CAAA;AAC9G,CAAC"}
@@ -50,9 +50,9 @@ export interface NzDeliveryServiceType {
50
50
  /** The ADV358 description, verbatim. */
51
51
  description: string;
52
52
  /**
53
- * Identifier rule: PO Box/Response Bag/CMB identifiers are mandatory if allocated; Private Bag
54
- * may legitimately have none ("not used … for Private Bags that do not have an identifier
55
- * allocated by New Zealand Post"); Counter Delivery and Poste Restante never carry one.
53
+ * Identifier rule: PO Box/Response Bag/CMB identifiers are mandatory if allocated; Private Bag may legitimately have
54
+ * none ("not used … for Private Bags that do not have an identifier allocated by New Zealand Post"); Counter Delivery
55
+ * and Poste Restante never carry one.
56
56
  */
57
57
  identifier: NzIdentifierRule;
58
58
  }
@@ -85,31 +85,29 @@ export declare const NZ_DELIVERY_SERVICE_TYPES: readonly [{
85
85
  /** A canonical NZ Delivery Service Type. */
86
86
  export type NzDeliveryServiceTypeName = (typeof NZ_DELIVERY_SERVICE_TYPES)[number]["type"];
87
87
  /**
88
- * Metadata for the colloquial "Private Box" alias (see the module header and operator ruling
89
- * 2026-06-11). Kept separate from {@link NZ_DELIVERY_SERVICE_TYPES} because it is NOT a valid ADV358
90
- * Delivery Service Type — recognition and validity are separate concerns.
88
+ * Metadata for the colloquial "Private Box" alias (see the module header and operator ruling 2026-06-11). Kept separate
89
+ * from {@link NZ_DELIVERY_SERVICE_TYPES} because it is NOT a valid ADV358 Delivery Service Type — recognition and
90
+ * validity are separate concerns.
91
91
  *
92
- * Sourcing: ADV358 (Oct 2021) omits "Private Box" from its Delivery Service Type list entirely. NZ
93
- * Post's live standards pages (nzpost.co.nz/business/shipping-in-nz/addressing-standards and
94
- * nzpost.co.nz/personal/sending-in-nz/how-to-address-mail, accessed 2026-06-11) do not list it as a
95
- * valid type. Real NZ mail and the postal arena's gold rows nonetheless carry it as a colloquial
96
- * synonym for a numbered PO Box. Operator ruling 2026-06-11 authorizes its inclusion here for
97
- * recognition only, with this citation; corpus synthesis should treat it as a non-prescriptive
98
- * form.
92
+ * Sourcing: ADV358 (Oct 2021) omits "Private Box" from its Delivery Service Type list entirely. NZ Post's live
93
+ * standards pages (nzpost.co.nz/business/shipping-in-nz/addressing-standards and
94
+ * nzpost.co.nz/personal/sending-in-nz/how-to-address-mail, accessed 2026-06-11) do not list it as a valid type. Real NZ
95
+ * mail and the postal arena's gold rows nonetheless carry it as a colloquial synonym for a numbered PO Box. Operator
96
+ * ruling 2026-06-11 authorizes its inclusion here for recognition only, with this citation; corpus synthesis should
97
+ * treat it as a non-prescriptive form.
99
98
  */
100
99
  export declare const NZ_PRIVATE_BOX_ALIAS: {
101
100
  /** The surface form as it appears on real mail and in postal-arena gold rows. */
102
101
  readonly type: "Private Box";
103
102
  /**
104
- * The description of validity status — NOT a valid ADV358 Delivery Service Type; a colloquial NZ
105
- * synonym for a numbered PO Box (same format as "PO Box <number>").
103
+ * The description of validity status — NOT a valid ADV358 Delivery Service Type; a colloquial NZ synonym for a
104
+ * numbered PO Box (same format as "PO Box <number>").
106
105
  */
107
106
  readonly description: "Colloquial NZ synonym for a numbered PO Box — NOT a valid ADV358 Delivery Service Type";
108
107
  /** Identifier rule mirrors PO Box: a number is expected when the alias is used with one. */
109
108
  readonly identifier: "required-if-allocated";
110
109
  /**
111
- * True — this form is NOT valid per ADV358 or NZ Post's live standards pages (accessed
112
- * 2026-06-11).
110
+ * True — this form is NOT valid per ADV358 or NZ Post's live standards pages (accessed 2026-06-11).
113
111
  */
114
112
  readonly officiallyInvalid: true;
115
113
  };
@@ -120,35 +118,34 @@ export interface NzDeliveryServiceMatch {
120
118
  /** The designator phrase as it appeared ("PO Box", "private bag", "Private Box"). */
121
119
  matched: string;
122
120
  /**
123
- * The canonical Delivery Service Type or recognized alias ("PO Box", "Private Bag", "CMB", …,
124
- * "Private Box"). When `type` is "Private Box", `colloquial` is true and `officiallyInvalid` is
125
- * true — the form is not a valid ADV358 type.
121
+ * The canonical Delivery Service Type or recognized alias ("PO Box", "Private Bag", "CMB", …, "Private Box"). When
122
+ * `type` is "Private Box", `colloquial` is true and `officiallyInvalid` is true — the form is not a valid ADV358
123
+ * type.
126
124
  */
127
125
  type: NzDeliveryServiceMatchTypeName;
128
126
  /** The Delivery Service Identifier when present ("24999", "B99"). */
129
127
  id?: string;
130
128
  /**
131
- * True when the matched form is the colloquial "Private Box" alias — not a valid ADV358 Delivery
132
- * Service Type. Absent (undefined) for all standard ADV358 types.
129
+ * True when the matched form is the colloquial "Private Box" alias — not a valid ADV358 Delivery Service Type. Absent
130
+ * (undefined) for all standard ADV358 types.
133
131
  */
134
132
  colloquial?: true;
135
133
  }
136
134
  /**
137
- * If `input` is a standalone NZ delivery-service phrase ("PO Box 24999", "Private Bag 106999", "CMB
138
- * B99", bare "Private Bag", "Counter Delivery", "Private Box 102"), return the canonical type and
139
- * identifier. Null otherwise — including for "PB 39990" (an error of form per ADV358).
135
+ * If `input` is a standalone NZ delivery-service phrase ("PO Box 24999", "Private Bag 106999", "CMB B99", bare "Private
136
+ * Bag", "Counter Delivery", "Private Box 102"), return the canonical type and identifier. Null otherwise — including
137
+ * for "PB 39990" (an error of form per ADV358).
140
138
  *
141
- * When `type` is "Private Box", the result carries `colloquial: true` — indicating the colloquial
142
- * alias (not an ADV358 Delivery Service Type; see {@link NZ_PRIVATE_BOX_ALIAS} and operator ruling
143
- * 2026-06-11). Callers that want only formally-valid ADV358 types should check
144
- * `!result.colloquial`.
139
+ * When `type` is "Private Box", the result carries `colloquial: true` — indicating the colloquial alias (not an ADV358
140
+ * Delivery Service Type; see {@link NZ_PRIVATE_BOX_ALIAS} and operator ruling 2026-06-11). Callers that want only
141
+ * formally-valid ADV358 types should check `!result.colloquial`.
145
142
  */
146
143
  export declare function matchNzDeliveryService(input: unknown): NzDeliveryServiceMatch | null;
147
144
  /** Type-predicate: does the input look like a standalone NZ delivery-service address line? */
148
145
  export declare function isNzDeliveryService(input: unknown): boolean;
149
146
  /**
150
- * Normalize a recognized phrase to the ADV358 form (`"p.o. box 24999"` → `"PO Box 24999"`). Returns
151
- * the input unchanged if it isn't a delivery-service phrase.
147
+ * Normalize a recognized phrase to the ADV358 form (`"p.o. box 24999"` → `"PO Box 24999"`). Returns the input unchanged
148
+ * if it isn't a delivery-service phrase.
152
149
  */
153
150
  export declare function normalizeNzDeliveryService(input: string): string;
154
151
  //# sourceMappingURL=delivery-service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delivery-service.d.ts","sourceRoot":"","sources":["../../nz/delivery-service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AAEH,2EAA2E;AAC3E,MAAM,MAAM,gB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export const NZ_DELIVERY_SERVICE_TYPES = [
63
63
  },
64
64
  ];
65
65
  /**
66
- * Metadata for the colloquial "Private Box" alias (see the module header and operator ruling
67
- * 2026-06-11). Kept separate from {@link NZ_DELIVERY_SERVICE_TYPES} because it is NOT a valid ADV358
68
- * Delivery Service Type — recognition and validity are separate concerns.
66
+ * Metadata for the colloquial "Private Box" alias (see the module header and operator ruling 2026-06-11). Kept separate
67
+ * from {@link NZ_DELIVERY_SERVICE_TYPES} because it is NOT a valid ADV358 Delivery Service Type — recognition and
68
+ * validity are separate concerns.
69
69
  *
70
- * Sourcing: ADV358 (Oct 2021) omits "Private Box" from its Delivery Service Type list entirely. NZ
71
- * Post's live standards pages (nzpost.co.nz/business/shipping-in-nz/addressing-standards and
72
- * nzpost.co.nz/personal/sending-in-nz/how-to-address-mail, accessed 2026-06-11) do not list it as a
73
- * valid type. Real NZ mail and the postal arena's gold rows nonetheless carry it as a colloquial
74
- * synonym for a numbered PO Box. Operator ruling 2026-06-11 authorizes its inclusion here for
75
- * recognition only, with this citation; corpus synthesis should treat it as a non-prescriptive
76
- * form.
70
+ * Sourcing: ADV358 (Oct 2021) omits "Private Box" from its Delivery Service Type list entirely. NZ Post's live
71
+ * standards pages (nzpost.co.nz/business/shipping-in-nz/addressing-standards and
72
+ * nzpost.co.nz/personal/sending-in-nz/how-to-address-mail, accessed 2026-06-11) do not list it as a valid type. Real NZ
73
+ * mail and the postal arena's gold rows nonetheless carry it as a colloquial synonym for a numbered PO Box. Operator
74
+ * ruling 2026-06-11 authorizes its inclusion here for recognition only, with this citation; corpus synthesis should
75
+ * treat it as a non-prescriptive form.
77
76
  */
78
77
  export const NZ_PRIVATE_BOX_ALIAS = {
79
78
  /** The surface form as it appears on real mail and in postal-arena gold rows. */
80
79
  type: "Private Box",
81
80
  /**
82
- * The description of validity status — NOT a valid ADV358 Delivery Service Type; a colloquial NZ
83
- * synonym for a numbered PO Box (same format as "PO Box <number>").
81
+ * The description of validity status — NOT a valid ADV358 Delivery Service Type; a colloquial NZ synonym for a
82
+ * numbered PO Box (same format as "PO Box <number>").
84
83
  */
85
84
  description: "Colloquial NZ synonym for a numbered PO Box — NOT a valid ADV358 Delivery Service Type",
86
85
  /** Identifier rule mirrors PO Box: a number is expected when the alias is used with one. */
87
86
  identifier: "required-if-allocated",
88
87
  /**
89
- * True — this form is NOT valid per ADV358 or NZ Post's live standards pages (accessed
90
- * 2026-06-11).
88
+ * True — this form is NOT valid per ADV358 or NZ Post's live standards pages (accessed 2026-06-11).
91
89
  */
92
90
  officiallyInvalid: true,
93
91
  };
94
92
  /**
95
- * Per-type surface patterns (designator phrase only). Recognition is deliberately wider than the
96
- * prescriptive standard — mail in the wild writes "P.O. Box" even though ADV358 says `PO` is
97
- * punctuation-free — but it does NOT admit forms the standard names as errors of TYPE (`PB`).
93
+ * Per-type surface patterns (designator phrase only). Recognition is deliberately wider than the prescriptive standard
94
+ * — mail in the wild writes "P.O. Box" even though ADV358 says `PO` is punctuation-free — but it does NOT admit forms
95
+ * the standard names as errors of TYPE (`PB`).
98
96
  *
99
- * The colloquial "Private Box" alias is included for recognition (see {@link NZ_PRIVATE_BOX_ALIAS}
100
- * and operator ruling 2026-06-11); it maps to a distinct synthetic type string so callers can
101
- * distinguish it from the ADV358 types.
97
+ * The colloquial "Private Box" alias is included for recognition (see {@link NZ_PRIVATE_BOX_ALIAS} and operator ruling
98
+ * 2026-06-11); it maps to a distinct synthetic type string so callers can distinguish it from the ADV358 types.
102
99
  */
103
100
  const TYPE_PATTERNS = [
104
101
  ["PO Box", String.raw `p\.?\s*o\.?\s*box|post\s+box`],
@@ -122,14 +119,13 @@ const MATCHERS = TYPE_PATTERNS.map(([type, src]) => {
122
119
  return { type, re: new RegExp(String.raw `^\s*(${src})${tail}\s*$`, "i") };
123
120
  });
124
121
  /**
125
- * If `input` is a standalone NZ delivery-service phrase ("PO Box 24999", "Private Bag 106999", "CMB
126
- * B99", bare "Private Bag", "Counter Delivery", "Private Box 102"), return the canonical type and
127
- * identifier. Null otherwise — including for "PB 39990" (an error of form per ADV358).
122
+ * If `input` is a standalone NZ delivery-service phrase ("PO Box 24999", "Private Bag 106999", "CMB B99", bare "Private
123
+ * Bag", "Counter Delivery", "Private Box 102"), return the canonical type and identifier. Null otherwise — including
124
+ * for "PB 39990" (an error of form per ADV358).
128
125
  *
129
- * When `type` is "Private Box", the result carries `colloquial: true` — indicating the colloquial
130
- * alias (not an ADV358 Delivery Service Type; see {@link NZ_PRIVATE_BOX_ALIAS} and operator ruling
131
- * 2026-06-11). Callers that want only formally-valid ADV358 types should check
132
- * `!result.colloquial`.
126
+ * When `type` is "Private Box", the result carries `colloquial: true` — indicating the colloquial alias (not an ADV358
127
+ * Delivery Service Type; see {@link NZ_PRIVATE_BOX_ALIAS} and operator ruling 2026-06-11). Callers that want only
128
+ * formally-valid ADV358 types should check `!result.colloquial`.
133
129
  */
134
130
  export function matchNzDeliveryService(input) {
135
131
  if (typeof input !== "string")
@@ -148,8 +144,8 @@ export function isNzDeliveryService(input) {
148
144
  return matchNzDeliveryService(input) !== null;
149
145
  }
150
146
  /**
151
- * Normalize a recognized phrase to the ADV358 form (`"p.o. box 24999"` → `"PO Box 24999"`). Returns
152
- * the input unchanged if it isn't a delivery-service phrase.
147
+ * Normalize a recognized phrase to the ADV358 form (`"p.o. box 24999"` → `"PO Box 24999"`). Returns the input unchanged
148
+ * if it isn't a delivery-service phrase.
153
149
  */
154
150
  export function normalizeNzDeliveryService(input) {
155
151
  const m = matchNzDeliveryService(input);
@@ -1 +1 @@
1
- {"version":3,"file":"delivery-service.js","sourceRoot":"","sources":["../../nz/delivery-service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AAmBH,oFAAoF;AACpF,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACxC,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,kBAAkB,EAAE,UAAU,EAAE,uBAAuB,EAAE;IACx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ACZ,CAAC;AAED,8FAA8F;AAC9F,MAAM,UAAU,mBAAmB,CAAC,KAAc;IACjD,OAAO,sBAAsB,CAAC,KAAK,CAAC,KAAK,IAAI,CAAA;AAC9C,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,0BAA0B,CAAC,KAAa;IACvD,MAAM,CAAC,GAAG,sBAAsB,CAAC,KAAK,CAAC,CAAA;IAEvC,IAAI,CAAC,CAAC;QAAE,OAAO,KAAK,CAAA;IAEpB,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA;AACzD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"postcode.d.ts","sourceRoot":"","sources":["../../nz/postcode.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAEvC;;;;;;;GAOG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAA;AAErD,kDAAkD;AAClD,eAAO,MAAM,mBAAmB,QAAY,CAAA;AAE5C,8FAA8F;AAC9F,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,OAAO,GAAG,UAAU,GAAG,IAAI,CAInE;AAED,8DAA8D;AAC9D,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,UAAU,CAEhE"}
1
+ {"version":3,"file":"postcode.d.ts","sourceRoot":"","sources":["../../nz/postcode.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAEvC;;;;;;;GAOG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAA;AAErD,kDAAkD;AAClD,eAAO,MAAM,mBAAmB,QAAY,CAAA;AAE5C,8FAA8F;AAC9F,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,OAAO,GAAG,UAAU,GAAG,IAAI,CAKnE;AAED,8DAA8D;AAC9D,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,UAAU,CAEhE"}
@@ -1 +1 @@
1
- {"version":3,"file":"postcode.js","sourceRoot":"","sources":["../../nz/postcode.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAcH,kDAAkD;AAClD,MAAM,CAAC,MAAM,mBAAmB,GAAG,SAAS,CAAA;AAE5C,8FAA8F;AAC9F,MAAM,UAAU,mBAAmB,CAAC,GAAY;IAC/C,IAAI,OAAO,GAAG,KAAK,QAAQ;QAAE,OAAO,IAAI,CAAA;IACxC,MAAM,CAAC,GAAG,GAAG,CAAC,IAAI,EAAE,CAAA;IACpB,OAAO,mBAAmB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE,CAAgB,CAAC,CAAC,CAAC,IAAI,CAAA;AAC9D,CAAC;AAED,8DAA8D;AAC9D,MAAM,UAAU,YAAY,CAAC,KAAc;IAC1C,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,mBAAmB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;AACpE,CAAC"}
1
+ {"version":3,"file":"postcode.js","sourceRoot":"","sources":["../../nz/postcode.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAcH,kDAAkD;AAClD,MAAM,CAAC,MAAM,mBAAmB,GAAG,SAAS,CAAA;AAE5C,8FAA8F;AAC9F,MAAM,UAAU,mBAAmB,CAAC,GAAY;IAC/C,IAAI,OAAO,GAAG,KAAK,QAAQ;QAAE,OAAO,IAAI,CAAA;IACxC,MAAM,CAAC,GAAG,GAAG,CAAC,IAAI,EAAE,CAAA;IAEpB,OAAO,mBAAmB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE,CAAgB,CAAC,CAAC,CAAC,IAAI,CAAA;AAC9D,CAAC;AAED,8DAA8D;AAC9D,MAAM,UAAU,YAAY,CAAC,KAAc;IAC1C,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,mBAAmB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;AACpE,CAAC"}
@@ -23,9 +23,9 @@
23
23
  /** A codex address-system code — the subpath under `@mailwoman/codex/<system>`. */
24
24
  export type SystemCode = "us" | "de" | "fr" | "ca" | "gb" | "jp" | "au" | "nz";
25
25
  /**
26
- * Every address system whose own postcode shape accepts `postcode`. Empty when no system recognizes
27
- * the shape (e.g. a bare `27`, or a 7-digit run). O(number of systems) — a handful of cheap regex
28
- * tests, run only on the few postcode-shaped spans an address contains.
26
+ * Every address system whose own postcode shape accepts `postcode`. Empty when no system recognizes the shape (e.g. a
27
+ * bare `27`, or a 7-digit run). O(number of systems) — a handful of cheap regex tests, run only on the few
28
+ * postcode-shaped spans an address contains.
29
29
  */
30
30
  export declare function candidateSystemsForPostcode(postcode: string): SystemCode[];
31
31
  //# sourceMappingURL=postcode-systems.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"postcode-systems.d.ts","sourceRoot":"","sources":["../postcode-systems.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAWH,mFAAmF;AACnF,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AAmB9E;;;;GAIG;AACH,wBAAgB,2BAA2B,CAAC,QAAQ,EAAE,MAAM,GAAG,UAAU,EAAE,CAO1E"}
1
+ {"version":3,"file":"postcode-systems.d.ts","sourceRoot":"","sources":["../postcode-systems.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAWH,mFAAmF;AACnF,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AAkB9E;;;;GAIG;AACH,wBAAgB,2BAA2B,CAAC,QAAQ,EAAE,MAAM,GAAG,UAAU,EAAE,CAS1E"}
@@ -29,10 +29,9 @@ import { normalizeJpPostalCode } from "./jp/index.js";
29
29
  import { normalizeNzPostcode } from "./nz/index.js";
30
30
  import { isZipCode } from "./us/index.js";
31
31
  /**
32
- * Per-system membership test: each entry returns true when the string is accepted by that system's
33
- * own postcode shape (after that system's normalization — so `D-68161` reaches `de`, `1012 LM`
34
- * reaches nothing here since NL has no slice yet, etc.). Ordered for a stable, alphabetical-ish
35
- * result.
32
+ * Per-system membership test: each entry returns true when the string is accepted by that system's own postcode shape
33
+ * (after that system's normalization — so `D-68161` reaches `de`, `1012 LM` reaches nothing here since NL has no slice
34
+ * yet, etc.). Ordered for a stable, alphabetical-ish result.
36
35
  */
37
36
  const SYSTEM_ACCEPTS = [
38
37
  ["us", (s) => isZipCode(s)],
@@ -45,9 +44,9 @@ const SYSTEM_ACCEPTS = [
45
44
  ["nz", (s) => normalizeNzPostcode(s) !== null],
46
45
  ];
47
46
  /**
48
- * Every address system whose own postcode shape accepts `postcode`. Empty when no system recognizes
49
- * the shape (e.g. a bare `27`, or a 7-digit run). O(number of systems) — a handful of cheap regex
50
- * tests, run only on the few postcode-shaped spans an address contains.
47
+ * Every address system whose own postcode shape accepts `postcode`. Empty when no system recognizes the shape (e.g. a
48
+ * bare `27`, or a 7-digit run). O(number of systems) — a handful of cheap regex tests, run only on the few
49
+ * postcode-shaped spans an address contains.
51
50
  */
52
51
  export function candidateSystemsForPostcode(postcode) {
53
52
  if (typeof postcode !== "string" || postcode.length === 0)
@@ -1 +1 @@
1
- {"version":3,"file":"postcode-systems.js","sourceRoot":"","sources":["../postcode-systems.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,mBAAmB,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C,CAAC,EAAE,EAAE,CAAC,qBAAqB,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IAChD,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,mBAAmB,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IAC9C,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,qBAAqB,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IAChD,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,mBAAmB,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IAC9C,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,mBAAmB,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;CAC9C,CAAA;AAED;;;;GAIG;AACH,MAAM,UAAU,2BAA2B,CAAC,QAAgB;IAC3D,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAA;IACpE,MAAM,GAAG,GAAiB,EAAE,CAAA;IAE5B,KAAK,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,cAAc,EAAE,CAAC;QAChD,IAAI,OAAO,CAAC,QAAQ,CAAC;YAAE,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IACxC,CAAC;IAED,OAAO,GAAG,CAAA;AACX,CAAC"}
@@ -29,8 +29,8 @@
29
29
  /**
30
30
  * One USPS Pub 28 C2 floor-class designator row.
31
31
  *
32
- * `requiresNumber` mirrors the Appendix C2 classification: FLOOR and BASEMENT must be followed by a
33
- * secondary number; PENTHOUSE and LOBBY may stand alone.
32
+ * `requiresNumber` mirrors the Appendix C2 classification: FLOOR and BASEMENT must be followed by a secondary number;
33
+ * PENTHOUSE and LOBBY may stand alone.
34
34
  */
35
35
  export interface UsFloorDesignator {
36
36
  /** Full canonical designator (uppercase per the publication). */
@@ -40,15 +40,14 @@ export interface UsFloorDesignator {
40
40
  /** Additional recognized surface variants from Appendix C2. */
41
41
  variants: readonly string[];
42
42
  /**
43
- * True when Appendix C2 marks this designator as "Requires a Secondary Number" (FLOOR, BASEMENT).
44
- * False for standalone types (PENTHOUSE, LOBBY) that name a specific floor-analog without an
45
- * identifier.
43
+ * True when Appendix C2 marks this designator as "Requires a Secondary Number" (FLOOR, BASEMENT). False for
44
+ * standalone types (PENTHOUSE, LOBBY) that name a specific floor-analog without an identifier.
46
45
  */
47
46
  requiresNumber: boolean;
48
47
  }
49
48
  /**
50
- * USPS Pub 28 C2 floor-class secondary unit designators. Verbatim from the publication; see the
51
- * module header for the per-row provenance. Ordered with the most-common numbered form first.
49
+ * USPS Pub 28 C2 floor-class secondary unit designators. Verbatim from the publication; see the module header for the
50
+ * per-row provenance. Ordered with the most-common numbered form first.
52
51
  */
53
52
  export declare const US_FLOOR_DESIGNATORS: readonly [{
54
53
  readonly name: "FLOOR";
@@ -74,31 +73,29 @@ export declare const US_FLOOR_DESIGNATORS: readonly [{
74
73
  /** A canonical USPS floor-class designator name. */
75
74
  export type UsFloorDesignatorName = (typeof US_FLOOR_DESIGNATORS)[number]["name"];
76
75
  /**
77
- * Inverse lookup: every surface form (canonical name, approved abbreviation, or Appendix C2
78
- * variant) → its canonical designator name. Lowercase-keyed for case-insensitive matching: `"fl"` →
79
- * `"FLOOR"`, `"bsmt"` → `"BASEMENT"`, `"ph"` → `"PENTHOUSE"`.
76
+ * Inverse lookup: every surface form (canonical name, approved abbreviation, or Appendix C2 variant) → its canonical
77
+ * designator name. Lowercase-keyed for case-insensitive matching: `"fl"` → `"FLOOR"`, `"bsmt"` → `"BASEMENT"`, `"ph"` →
78
+ * `"PENTHOUSE"`.
80
79
  */
81
80
  export declare const US_FLOOR_DESIGNATOR_LOOKUP: ReadonlyMap<string, UsFloorDesignatorName>;
82
81
  /**
83
- * All lowercase surface tokens for the floor-class designators — the set the span proposer
84
- * populates `levelDesignators` with when wiring the US codex slice. Includes canonical names,
85
- * approved abbreviations, and Appendix C2 variants.
82
+ * All lowercase surface tokens for the floor-class designators — the set the span proposer populates `levelDesignators`
83
+ * with when wiring the US codex slice. Includes canonical names, approved abbreviations, and Appendix C2 variants.
86
84
  */
87
85
  export declare const US_FLOOR_DESIGNATOR_TOKENS: ReadonlySet<string>;
88
86
  /** Approved USPS abbreviation per canonical floor designator name. */
89
87
  export declare const US_FLOOR_DESIGNATOR_PREFERRED_ABBR: Readonly<Record<UsFloorDesignatorName, string>>;
90
88
  /**
91
- * Look up a USPS floor-class designator (by canonical name, abbreviation, or any Appendix C2
92
- * variant) and return the canonical name + approved abbreviation. Returns null if the token isn't a
93
- * recognized floor-class designator.
89
+ * Look up a USPS floor-class designator (by canonical name, abbreviation, or any Appendix C2 variant) and return the
90
+ * canonical name + approved abbreviation. Returns null if the token isn't a recognized floor-class designator.
94
91
  */
95
92
  export declare function lookupFloorDesignator(input: string | null | undefined): {
96
93
  designator: UsFloorDesignatorName;
97
94
  abbreviation: string;
98
95
  } | null;
99
96
  /**
100
- * True when a token is a recognized USPS floor-class secondary unit designator (case-insensitive) —
101
- * `"Floor"`, `"FL"`, `"flr"`, `"bsmt"`, `"ph"`, `"lbby"`.
97
+ * True when a token is a recognized USPS floor-class secondary unit designator (case-insensitive) — `"Floor"`, `"FL"`,
98
+ * `"flr"`, `"bsmt"`, `"ph"`, `"lbby"`.
102
99
  */
103
100
  export declare function isFloorDesignatorToken(input: unknown): boolean;
104
101
  //# sourceMappingURL=floor-designator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"floor-designator.d.ts","sourceRoot":"","sources":["../../us/floor-designator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH;;;;;GAKG;AACH,MAAM,WAAW,iBAAiB;IACjC,iEAAiE;IACjE,IAAI,EAAE,MAAM,CAAA;IACZ,qFAAqF;IACrF,YAAY,EAAE,MAAM,CAAA;IACpB,+DAA+D;IAC/D,QAAQ,EAAE,SAAS,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KgB,CAAA;AAEjD,oDAAoD;AACpD,MAAM,MAAM,qBAAqB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAA;AAEjF;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,EAAE,WAAW,CAAC,MAAM,EAAE,qBAAqB,CAa9E,CAAA;AAEJ;;;GAGG;AACH,eAAO,MAAM,0BAA0B,EAAE,WAAW,CAAC,MAAM,CAA8C,CAAA;AAEzG,sEAAsE;AACtE,eAAO,MAAM,kCAAkC,EAAE,QAAQ,CAAC,MAAM,CAAC,qBAAqB,EAAE,MAAM,CAAC,CAE3C,CAAA;AAEpD;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG;IACxE,UAAU,EAAE,qBAAqB,CAAA;IACjC,YAAY,EAAE,MAAM,CAAA;CACpB,GAAG,IAAI,CAOP;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAE9D"}
@@ -27,8 +27,8 @@
27
27
  * @see {@link https://pe.usps.com/text/pub28/28apc_003.htm USPS Publication 28 — Appendix C2: Secondary Unit Designators}
28
28
  */
29
29
  /**
30
- * USPS Pub 28 C2 floor-class secondary unit designators. Verbatim from the publication; see the
31
- * module header for the per-row provenance. Ordered with the most-common numbered form first.
30
+ * USPS Pub 28 C2 floor-class secondary unit designators. Verbatim from the publication; see the module header for the
31
+ * per-row provenance. Ordered with the most-common numbered form first.
32
32
  */
33
33
  export const US_FLOOR_DESIGNATORS = [
34
34
  { name: "FLOOR", abbreviation: "FL", variants: ["FLR"], requiresNumber: true },
@@ -37,9 +37,9 @@ export const US_FLOOR_DESIGNATORS = [
37
37
  { name: "LOBBY", abbreviation: "LBBY", variants: [], requiresNumber: false },
38
38
  ];
39
39
  /**
40
- * Inverse lookup: every surface form (canonical name, approved abbreviation, or Appendix C2
41
- * variant) → its canonical designator name. Lowercase-keyed for case-insensitive matching: `"fl"` →
42
- * `"FLOOR"`, `"bsmt"` → `"BASEMENT"`, `"ph"` → `"PENTHOUSE"`.
40
+ * Inverse lookup: every surface form (canonical name, approved abbreviation, or Appendix C2 variant) → its canonical
41
+ * designator name. Lowercase-keyed for case-insensitive matching: `"fl"` → `"FLOOR"`, `"bsmt"` → `"BASEMENT"`, `"ph"` →
42
+ * `"PENTHOUSE"`.
43
43
  */
44
44
  export const US_FLOOR_DESIGNATOR_LOOKUP = (() => {
45
45
  const out = new Map();
@@ -54,17 +54,15 @@ export const US_FLOOR_DESIGNATOR_LOOKUP = (() => {
54
54
  return out;
55
55
  })();
56
56
  /**
57
- * All lowercase surface tokens for the floor-class designators — the set the span proposer
58
- * populates `levelDesignators` with when wiring the US codex slice. Includes canonical names,
59
- * approved abbreviations, and Appendix C2 variants.
57
+ * All lowercase surface tokens for the floor-class designators — the set the span proposer populates `levelDesignators`
58
+ * with when wiring the US codex slice. Includes canonical names, approved abbreviations, and Appendix C2 variants.
60
59
  */
61
60
  export const US_FLOOR_DESIGNATOR_TOKENS = new Set(US_FLOOR_DESIGNATOR_LOOKUP.keys());
62
61
  /** Approved USPS abbreviation per canonical floor designator name. */
63
62
  export const US_FLOOR_DESIGNATOR_PREFERRED_ABBR = Object.fromEntries(US_FLOOR_DESIGNATORS.map((r) => [r.name, r.abbreviation]));
64
63
  /**
65
- * Look up a USPS floor-class designator (by canonical name, abbreviation, or any Appendix C2
66
- * variant) and return the canonical name + approved abbreviation. Returns null if the token isn't a
67
- * recognized floor-class designator.
64
+ * Look up a USPS floor-class designator (by canonical name, abbreviation, or any Appendix C2 variant) and return the
65
+ * canonical name + approved abbreviation. Returns null if the token isn't a recognized floor-class designator.
68
66
  */
69
67
  export function lookupFloorDesignator(input) {
70
68
  if (!input || typeof input !== "string")
@@ -75,8 +73,8 @@ export function lookupFloorDesignator(input) {
75
73
  return { designator, abbreviation: US_FLOOR_DESIGNATOR_PREFERRED_ABBR[designator] };
76
74
  }
77
75
  /**
78
- * True when a token is a recognized USPS floor-class secondary unit designator (case-insensitive) —
79
- * `"Floor"`, `"FL"`, `"flr"`, `"bsmt"`, `"ph"`, `"lbby"`.
76
+ * True when a token is a recognized USPS floor-class secondary unit designator (case-insensitive) — `"Floor"`, `"FL"`,
77
+ * `"flr"`, `"bsmt"`, `"ph"`, `"lbby"`.
80
78
  */
81
79
  export function isFloorDesignatorToken(input) {
82
80
  return typeof input === "string" && US_FLOOR_DESIGNATOR_LOOKUP.has(input.trim().toLowerCase());
@@ -1 +1 @@
1
- {"version":3,"file":"floor-designator.js","sourceRoot":"","sources":["../../us/floor-designator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAuBH;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG;IACnC,EAAE,IAAI,EAAE,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAE,cAAc,EAAE,IAAI,EAAE;IAC9E,EAAE,IAAI,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,EAAE,cAAc,EAAE,IAAI,EAAE;IAC9E,EAAE,IAAI,EAAE,WAAW,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,cAAc,EAAE,KAAK,EAAE;IAC9E,EAAE,IAAI,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,EAAE,cAAc,EAAE,KAAK,EAAE;CAC5B,CAAA;AAKjD;;;;GAIG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAA+C,CAAC,GAAG,EAAE;IAC3F,MAAM,GAAG,GAAG,IAAI,GAAG,EAAiC,CAAA;IACpD,KAAK,MAAM,GAAG,IAAI,oBAAoB,EAAE,CAAC;QACxC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,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W,EAAE,CAAC;gBAAE,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,WAAW,EAAE,EAAE,GAAG,CAAC,IAAI,CAAC,CAAA;QAClE,CAAC;IACF,CAAC;IAED,OAAO,GAAG,CAAA;AACX,CAAC,CAAC,EAAE,CAAA;AAEJ;;;GAGG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAwB,IAAI,GAAG,CAAC,0BAA0B,CAAC,IAAI,EAAE,CAAC,CAAA;AAEzG,sEAAsE;AACtE,MAAM,CAAC,MAAM,kCAAkC,GAAoD,MAAM,CAAC,WAAW,CACpH,oBAAoB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,YAAY,CAAC,CAAC,CACN,CAAA;AAEpD;;;GAGG;AACH,MAAM,UAAU,qBAAqB,CAAC,KAAgC;IAIrE,IAAI,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,IAAI,CAAA;IACpD,MAAM,UAAU,GAAG,0BAA0B,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,CAAA;IAE7E,IAAI,CAAC,UAAU;QAAE,OAAO,IAAI,CAAA;IAE5B,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,kCAAkC,CAAC,UAAU,CAAC,EAAE,CAAA;AACpF,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,sBAAsB,CAAC,KAAc;IACpD,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,0BAA0B,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,CAAA;AAC/F,CAAC"}
@@ -48,8 +48,8 @@ export declare const US_MILITARY_POST_OFFICE_CODES: readonly [{
48
48
  }];
49
49
  export type UsMilitaryPostOfficeCode = (typeof US_MILITARY_POST_OFFICE_CODES)[number]["code"];
50
50
  /**
51
- * USPS Armed Forces "state" codes used in place of state names on military/diplomatic addresses.
52
- * These appear where a US state abbreviation (NY, CA, …) would appear in a civilian address.
51
+ * USPS Armed Forces "state" codes used in place of state names on military/diplomatic addresses. These appear where a
52
+ * US state abbreviation (NY, CA, …) would appear in a civilian address.
53
53
  */
54
54
  export declare const US_ARMED_FORCES_REGIONS: readonly [{
55
55
  readonly code: "AA";
@@ -66,15 +66,15 @@ export declare const US_ARMED_FORCES_REGIONS: readonly [{
66
66
  }];
67
67
  export type UsArmedForcesRegionCode = (typeof US_ARMED_FORCES_REGIONS)[number]["code"];
68
68
  /**
69
- * USPS Pub 28 Appendix B unit-line designators for military/diplomatic overseas addresses. Each
70
- * designator introduces an installation identifier and optionally a box number.
69
+ * USPS Pub 28 Appendix B unit-line designators for military/diplomatic overseas addresses. Each designator introduces
70
+ * an installation identifier and optionally a box number.
71
71
  *
72
72
  * Format rules per Appendix B:
73
73
  *
74
74
  * - `PSC <id> BOX <box>` — Postal Service Center
75
75
  * - `CMR <id> BOX <box>` — Community Mail Room
76
- * - `UNIT <id> BOX <box>` — numbered unit (battalion/company); UNIT may stand alone with just an id
77
- * and no BOX when the unit has direct mail delivery
76
+ * - `UNIT <id> BOX <box>` — numbered unit (battalion/company); UNIT may stand alone with just an id and no BOX when the
77
+ * unit has direct mail delivery
78
78
  *
79
79
  * BOX is required for PSC and CMR; UNIT may omit BOX.
80
80
  */
@@ -107,10 +107,9 @@ export interface UsMilitaryUnitMatch {
107
107
  box?: string;
108
108
  }
109
109
  /**
110
- * If `input` is a USPS military unit-line ("PSC 1520 BOX 4620", "CMR 453 BOX 100", "UNIT 7 BOX
111
- * 234A", "UNIT 7"), return the canonical designator, installation id, and optional box. Null
112
- * otherwise. Throws on a PSC or CMR line without a BOX component (per Appendix B, BOX is required
113
- * for PSC/CMR; a bare "PSC 1520" is malformed).
110
+ * If `input` is a USPS military unit-line ("PSC 1520 BOX 4620", "CMR 453 BOX 100", "UNIT 7 BOX 234A", "UNIT 7"), return
111
+ * the canonical designator, installation id, and optional box. Null otherwise. Throws on a PSC or CMR line without a
112
+ * BOX component (per Appendix B, BOX is required for PSC/CMR; a bare "PSC 1520" is malformed).
114
113
  */
115
114
  export declare function matchMilitaryUnitLine(input: unknown): UsMilitaryUnitMatch | null;
116
115
  /** Type-predicate: does the input look like a USPS military unit line (PSC/CMR/UNIT)? */
@@ -124,18 +123,18 @@ export interface UsMilitaryCityMatch {
124
123
  /** The Armed Forces region code ("AA", "AE", "AP"). */
125
124
  region: UsArmedForcesRegionCode;
126
125
  /**
127
- * The 5-digit or 9-digit ZIP code. Typical ranges per Pub 28: 09xxx (AE), 34xxx (AA), 96xxx (AP)
128
- * — range validation per region is caller responsibility.
126
+ * The 5-digit or 9-digit ZIP code. Typical ranges per Pub 28: 09xxx (AE), 34xxx (AA), 96xxx (AP) — range validation
127
+ * per region is caller responsibility.
129
128
  */
130
129
  zip: string;
131
130
  }
132
131
  /**
133
- * If `input` is a USPS military city line ("APO AE 09165", "FPO AP 96602-1254", "DPO AE 09498",
134
- * "APO AA 34022", "APO AP 96525"), return the canonical code, region, and ZIP. Null otherwise.
132
+ * If `input` is a USPS military city line ("APO AE 09165", "FPO AP 96602-1254", "DPO AE 09498", "APO AA 34022", "APO AP
133
+ * 96525"), return the canonical code, region, and ZIP. Null otherwise.
135
134
  *
136
- * ZIP ranges per Pub 28: AE (Europe/ME/Africa/Canada) → 09xxx; AP (Pacific) → 96xxx; AA (Americas)
137
- * → 34xxx. Range validation per region is left to the caller; the matcher accepts any 5. or 9-digit
138
- * ZIP paired with a valid region code.
135
+ * ZIP ranges per Pub 28: AE (Europe/ME/Africa/Canada) → 09xxx; AP (Pacific) → 96xxx; AA (Americas) → 34xxx. Range
136
+ * validation per region is left to the caller; the matcher accepts any 5. or 9-digit ZIP paired with a valid region
137
+ * code.
139
138
  */
140
139
  export declare function matchMilitaryCityLine(input: unknown): UsMilitaryCityMatch | null;
141
140
  /** Type-predicate: does the input look like a USPS military city line (APO/FPO/DPO + region + ZIP)? */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