@pubid/pubid 0.1.71 → 0.1.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/artifact/corpus.json.gz +0 -0
- package/dist/flavors/ansi/generated/substrate.d.ts +78 -0
- package/dist/flavors/ansi/generated/substrate.js +105 -0
- package/dist/flavors/ansi/implementation.d.ts +5 -0
- package/dist/flavors/ansi/implementation.js +125 -0
- package/dist/flavors/ansi/index.js +14 -117
- package/dist/flavors/api/generated/substrate.d.ts +78 -0
- package/dist/flavors/api/generated/substrate.js +105 -0
- package/dist/flavors/api/grammar.worker.d.ts +6 -0
- package/dist/flavors/api/{grammar.js → grammar.worker.js} +60 -16
- package/dist/flavors/api/implementation.d.ts +11 -0
- package/dist/flavors/api/implementation.js +106 -0
- package/dist/flavors/api/index.d.ts +1 -3
- package/dist/flavors/api/index.js +14 -98
- package/dist/flavors/arxiv/generated/substrate.d.ts +75 -0
- package/dist/flavors/arxiv/generated/substrate.js +102 -0
- package/dist/flavors/arxiv/index.js +17 -11
- package/dist/flavors/ashrae/generated/substrate.d.ts +78 -0
- package/dist/flavors/ashrae/generated/substrate.js +105 -0
- package/dist/flavors/ashrae/grammar.worker.d.ts +6 -0
- package/dist/flavors/ashrae/{grammar.js → grammar.worker.js} +76 -39
- package/dist/flavors/ashrae/implementation.d.ts +7 -0
- package/dist/flavors/ashrae/implementation.js +316 -0
- package/dist/flavors/ashrae/index.d.ts +1 -3
- package/dist/flavors/ashrae/index.js +14 -304
- package/dist/flavors/asme/generated/substrate.d.ts +78 -0
- package/dist/flavors/asme/generated/substrate.js +105 -0
- package/dist/flavors/asme/grammar.worker.d.ts +6 -0
- package/dist/flavors/asme/{grammar.js → grammar.worker.js} +41 -2
- package/dist/flavors/asme/implementation.d.ts +7 -0
- package/dist/flavors/asme/implementation.js +152 -0
- package/dist/flavors/asme/index.d.ts +1 -3
- package/dist/flavors/asme/index.js +14 -136
- package/dist/flavors/astm/generated/substrate.d.ts +78 -0
- package/dist/flavors/astm/generated/substrate.js +105 -0
- package/dist/flavors/astm/grammar.worker.d.ts +6 -0
- package/dist/flavors/astm/{grammar.js → grammar.worker.js} +39 -5
- package/dist/flavors/astm/implementation.d.ts +6 -0
- package/dist/flavors/astm/implementation.js +135 -0
- package/dist/flavors/astm/index.js +14 -125
- package/dist/flavors/bipm/generated/substrate.d.ts +78 -0
- package/dist/flavors/bipm/generated/substrate.js +105 -0
- package/dist/flavors/bipm/grammar.worker.d.ts +6 -0
- package/dist/flavors/bipm/grammar.worker.js +180 -0
- package/dist/flavors/bipm/implementation.d.ts +6 -0
- package/dist/flavors/bipm/implementation.js +244 -0
- package/dist/flavors/bipm/index.d.ts +1 -28
- package/dist/flavors/bipm/index.js +16 -650
- package/dist/flavors/bipm/model.d.ts +80 -0
- package/dist/flavors/bipm/model.js +271 -0
- package/dist/flavors/bipm/worker.d.ts +2 -0
- package/dist/flavors/bipm/worker.js +19 -0
- package/dist/flavors/bsi/generated/substrate.d.ts +78 -0
- package/dist/flavors/bsi/generated/substrate.js +105 -0
- package/dist/flavors/bsi/grammar.worker.d.ts +6 -0
- package/dist/flavors/bsi/{grammar.js → grammar.worker.js} +36 -7
- package/dist/flavors/bsi/implementation.d.ts +12 -0
- package/dist/flavors/bsi/implementation.js +967 -0
- package/dist/flavors/bsi/index.d.ts +1 -3
- package/dist/flavors/bsi/index.js +15 -940
- package/dist/flavors/bsi/model.js +16 -0
- package/dist/flavors/bsi/worker.js +11 -4
- package/dist/flavors/bsi_pfs/index.d.ts +25 -0
- package/dist/flavors/bsi_pfs/index.js +73 -10
- package/dist/flavors/calconnect/generated/substrate.d.ts +75 -0
- package/dist/flavors/calconnect/generated/substrate.js +102 -0
- package/dist/flavors/calconnect/grammar.worker.d.ts +6 -0
- package/dist/flavors/calconnect/grammar.worker.js +60 -0
- package/dist/flavors/calconnect/implementation.d.ts +6 -0
- package/dist/flavors/calconnect/implementation.js +69 -0
- package/dist/flavors/calconnect/index.d.ts +1 -19
- package/dist/flavors/calconnect/index.js +15 -111
- package/dist/flavors/calconnect/model.d.ts +26 -0
- package/dist/flavors/calconnect/model.js +52 -0
- package/dist/flavors/ccsds/generated/substrate.d.ts +75 -0
- package/dist/flavors/ccsds/generated/substrate.js +102 -0
- package/dist/flavors/ccsds/implementation.d.ts +5 -0
- package/dist/flavors/ccsds/implementation.js +67 -0
- package/dist/flavors/ccsds/index.js +13 -57
- package/dist/flavors/cen_cenelec/generated/substrate.d.ts +78 -0
- package/dist/flavors/cen_cenelec/generated/substrate.js +105 -0
- package/dist/flavors/cen_cenelec/grammar.worker.d.ts +6 -0
- package/dist/flavors/cen_cenelec/{grammar.js → grammar.worker.js} +41 -13
- package/dist/flavors/cen_cenelec/implementation.d.ts +15 -0
- package/dist/flavors/cen_cenelec/implementation.js +322 -0
- package/dist/flavors/cen_cenelec/index.d.ts +2 -4
- package/dist/flavors/cen_cenelec/index.js +16 -286
- package/dist/flavors/cen_cenelec/model.js +16 -1
- package/dist/flavors/cen_cenelec/worker.js +10 -4
- package/dist/flavors/cen_pfs/index.d.ts +5 -0
- package/dist/flavors/cen_pfs/index.js +28 -2
- package/dist/flavors/cie/generated/substrate.d.ts +78 -0
- package/dist/flavors/cie/generated/substrate.js +105 -0
- package/dist/flavors/cie/grammar.worker.d.ts +6 -0
- package/dist/flavors/cie/{grammar.js → grammar.worker.js} +71 -18
- package/dist/flavors/cie/implementation.d.ts +9 -0
- package/dist/flavors/cie/implementation.js +331 -0
- package/dist/flavors/cie/index.js +14 -309
- package/dist/flavors/csa/generated/substrate.d.ts +78 -0
- package/dist/flavors/csa/generated/substrate.js +105 -0
- package/dist/flavors/csa/grammar.worker.d.ts +12 -0
- package/dist/flavors/csa/{grammar.js → grammar.worker.js} +143 -27
- package/dist/flavors/csa/implementation.d.ts +9 -0
- package/dist/flavors/csa/implementation.js +661 -0
- package/dist/flavors/csa/index.js +14 -631
- package/dist/flavors/csa/worker.js +10 -4
- package/dist/flavors/easc/generated/substrate.d.ts +75 -0
- package/dist/flavors/easc/generated/substrate.js +102 -0
- package/dist/flavors/easc/grammar.worker.d.ts +6 -0
- package/dist/flavors/easc/grammar.worker.js +66 -0
- package/dist/flavors/easc/implementation.d.ts +6 -0
- package/dist/flavors/easc/implementation.js +58 -0
- package/dist/flavors/easc/index.d.ts +1 -2
- package/dist/flavors/easc/index.js +15 -105
- package/dist/flavors/easc/model.d.ts +10 -0
- package/dist/flavors/easc/model.js +43 -0
- package/dist/flavors/ecma/generated/substrate.d.ts +75 -0
- package/dist/flavors/ecma/generated/substrate.js +102 -0
- package/dist/flavors/ecma/grammar.worker.d.ts +6 -0
- package/dist/flavors/ecma/grammar.worker.js +63 -0
- package/dist/flavors/ecma/implementation.d.ts +6 -0
- package/dist/flavors/ecma/implementation.js +95 -0
- package/dist/flavors/ecma/index.d.ts +1 -2
- package/dist/flavors/ecma/index.js +15 -152
- package/dist/flavors/ecma/model.d.ts +10 -0
- package/dist/flavors/ecma/model.js +61 -0
- package/dist/flavors/etsi/generated/substrate.d.ts +75 -0
- package/dist/flavors/etsi/generated/substrate.js +102 -0
- package/dist/flavors/etsi/grammar.worker.d.ts +6 -0
- package/dist/flavors/etsi/grammar.worker.js +86 -0
- package/dist/flavors/etsi/implementation.d.ts +6 -0
- package/dist/flavors/etsi/implementation.js +110 -0
- package/dist/flavors/etsi/index.d.ts +2 -12
- package/dist/flavors/etsi/index.js +16 -305
- package/dist/flavors/etsi/model.d.ts +37 -0
- package/dist/flavors/etsi/model.js +169 -0
- package/dist/flavors/eu/generated/substrate.d.ts +75 -0
- package/dist/flavors/eu/generated/substrate.js +102 -0
- package/dist/flavors/eu/implementation.d.ts +7 -0
- package/dist/flavors/eu/implementation.js +150 -0
- package/dist/flavors/eu/index.js +14 -141
- package/dist/flavors/evs/generated/substrate.d.ts +78 -0
- package/dist/flavors/evs/generated/substrate.js +105 -0
- package/dist/flavors/evs/grammar.worker.d.ts +6 -0
- package/dist/flavors/evs/grammar.worker.js +98 -0
- package/dist/flavors/evs/implementation.d.ts +7 -0
- package/dist/flavors/evs/implementation.js +114 -0
- package/dist/flavors/evs/index.d.ts +1 -1
- package/dist/flavors/evs/index.js +14 -89
- package/dist/flavors/evs/worker.js +10 -4
- package/dist/flavors/gb/generated/substrate.d.ts +75 -0
- package/dist/flavors/gb/generated/substrate.js +102 -0
- package/dist/flavors/gb/grammar.worker.d.ts +6 -0
- package/dist/flavors/gb/grammar.worker.js +73 -0
- package/dist/flavors/gb/implementation.d.ts +6 -0
- package/dist/flavors/gb/implementation.js +87 -0
- package/dist/flavors/gb/index.d.ts +1 -29
- package/dist/flavors/gb/index.js +15 -157
- package/dist/flavors/gb/model.d.ts +36 -0
- package/dist/flavors/gb/model.js +79 -0
- package/dist/flavors/gost/generated/substrate.d.ts +78 -0
- package/dist/flavors/gost/generated/substrate.js +105 -0
- package/dist/flavors/gost/grammar.worker.d.ts +6 -0
- package/dist/flavors/gost/grammar.worker.js +82 -0
- package/dist/flavors/gost/implementation.d.ts +7 -0
- package/dist/flavors/gost/implementation.js +177 -0
- package/dist/flavors/gost/index.js +14 -162
- package/dist/flavors/gost/worker.js +12 -5
- package/dist/flavors/iala/generated/substrate.d.ts +78 -0
- package/dist/flavors/iala/generated/substrate.js +105 -0
- package/dist/flavors/iala/grammar.worker.d.ts +6 -0
- package/dist/flavors/iala/grammar.worker.js +127 -0
- package/dist/flavors/iala/implementation.d.ts +6 -0
- package/dist/flavors/iala/implementation.js +250 -0
- package/dist/flavors/iala/index.d.ts +1 -56
- package/dist/flavors/iala/index.js +17 -484
- package/dist/flavors/iala/model.d.ts +93 -0
- package/dist/flavors/iala/model.js +194 -0
- package/dist/flavors/iana/generated/substrate.d.ts +75 -0
- package/dist/flavors/iana/generated/substrate.js +102 -0
- package/dist/flavors/iana/grammar.worker.d.ts +6 -0
- package/dist/flavors/iana/grammar.worker.js +51 -0
- package/dist/flavors/iana/implementation.d.ts +6 -0
- package/dist/flavors/iana/implementation.js +47 -0
- package/dist/flavors/iana/index.d.ts +1 -17
- package/dist/flavors/iana/index.js +15 -69
- package/dist/flavors/iana/model.d.ts +22 -0
- package/dist/flavors/iana/model.js +33 -0
- package/dist/flavors/idf/generated/substrate.d.ts +78 -0
- package/dist/flavors/idf/generated/substrate.js +105 -0
- package/dist/flavors/idf/grammar.worker.d.ts +6 -0
- package/dist/flavors/idf/{grammar.js → grammar.worker.js} +58 -2
- package/dist/flavors/idf/implementation.d.ts +6 -0
- package/dist/flavors/idf/implementation.js +129 -0
- package/dist/flavors/idf/index.js +14 -98
- package/dist/flavors/iec/generated/substrate.d.ts +78 -0
- package/dist/flavors/iec/generated/substrate.js +105 -0
- package/dist/flavors/iec/grammar.worker.d.ts +6 -0
- package/dist/flavors/iec/grammar.worker.js +231 -0
- package/dist/flavors/iec/implementation.d.ts +15 -0
- package/dist/flavors/iec/implementation.js +956 -0
- package/dist/flavors/iec/index.d.ts +1 -2
- package/dist/flavors/iec/index.js +16 -869
- package/dist/flavors/iec/model.js +13 -1
- package/dist/flavors/iec/worker.d.ts +2 -0
- package/dist/flavors/iec/worker.js +19 -0
- package/dist/flavors/ieee/generated/substrate.d.ts +78 -0
- package/dist/flavors/ieee/generated/substrate.js +105 -0
- package/dist/flavors/ieee/implementation.d.ts +4 -0
- package/dist/flavors/ieee/implementation.js +48 -10
- package/dist/flavors/ieee/index.d.ts +3 -2
- package/dist/flavors/ieee/index.js +30 -12
- package/dist/flavors/ieee/model.js +3 -0
- package/dist/flavors/ieee/preprocessor.js +10 -10
- package/dist/flavors/ieee/worker.js +33 -11
- package/dist/flavors/ietf/generated/substrate.d.ts +75 -0
- package/dist/flavors/ietf/generated/substrate.js +102 -0
- package/dist/flavors/ietf/grammar.worker.d.ts +6 -0
- package/dist/flavors/ietf/grammar.worker.js +63 -0
- package/dist/flavors/ietf/implementation.d.ts +6 -0
- package/dist/flavors/ietf/implementation.js +60 -0
- package/dist/flavors/ietf/index.d.ts +1 -28
- package/dist/flavors/ietf/index.js +15 -149
- package/dist/flavors/ietf/model.d.ts +47 -0
- package/dist/flavors/ietf/model.js +92 -0
- package/dist/flavors/iho/generated/substrate.d.ts +78 -0
- package/dist/flavors/iho/generated/substrate.js +105 -0
- package/dist/flavors/iho/grammar.worker.d.ts +6 -0
- package/dist/flavors/iho/grammar.worker.js +150 -0
- package/dist/flavors/iho/implementation.d.ts +6 -0
- package/dist/flavors/iho/implementation.js +221 -0
- package/dist/flavors/iho/index.d.ts +1 -2
- package/dist/flavors/iho/index.js +15 -619
- package/dist/flavors/iho/model.d.ts +11 -0
- package/dist/flavors/iho/model.js +315 -0
- package/dist/flavors/index.js +3 -0
- package/dist/flavors/iso/generated/substrate.d.ts +93 -0
- package/dist/flavors/iso/generated/substrate.js +133 -0
- package/dist/flavors/iso/grammar.worker.d.ts +7 -0
- package/dist/flavors/iso/grammar.worker.js +406 -0
- package/dist/flavors/iso/implementation.d.ts +4 -0
- package/dist/flavors/iso/implementation.js +880 -0
- package/dist/flavors/iso/index.js +16 -706
- package/dist/flavors/iso/model.js +21 -2
- package/dist/flavors/iso/worker.d.ts +2 -0
- package/dist/flavors/iso/worker.js +19 -0
- package/dist/flavors/itu/generated/substrate.d.ts +78 -0
- package/dist/flavors/itu/generated/substrate.js +105 -0
- package/dist/flavors/itu/grammar.worker.d.ts +6 -0
- package/dist/flavors/itu/grammar.worker.js +306 -0
- package/dist/flavors/itu/implementation.d.ts +10 -0
- package/dist/flavors/itu/implementation.js +285 -0
- package/dist/flavors/itu/index.js +15 -246
- package/dist/flavors/itu/worker.d.ts +2 -0
- package/dist/flavors/itu/worker.js +19 -0
- package/dist/flavors/jcgm/generated/substrate.d.ts +78 -0
- package/dist/flavors/jcgm/generated/substrate.js +105 -0
- package/dist/flavors/jcgm/grammar.worker.d.ts +6 -0
- package/dist/flavors/jcgm/grammar.worker.js +98 -0
- package/dist/flavors/jcgm/implementation.d.ts +6 -0
- package/dist/flavors/jcgm/implementation.js +187 -0
- package/dist/flavors/jcgm/index.d.ts +1 -5
- package/dist/flavors/jcgm/index.js +16 -364
- package/dist/flavors/jcgm/model.d.ts +43 -0
- package/dist/flavors/jcgm/model.js +168 -0
- package/dist/flavors/jis/generated/substrate.d.ts +78 -0
- package/dist/flavors/jis/generated/substrate.js +105 -0
- package/dist/flavors/jis/grammar.worker.d.ts +6 -0
- package/dist/flavors/jis/grammar.worker.js +132 -0
- package/dist/flavors/jis/implementation.d.ts +6 -0
- package/dist/flavors/jis/implementation.js +129 -0
- package/dist/flavors/jis/index.d.ts +0 -2
- package/dist/flavors/jis/index.js +15 -390
- package/dist/flavors/jis/model.d.ts +30 -0
- package/dist/flavors/jis/model.js +205 -0
- package/dist/flavors/jis/worker.d.ts +2 -0
- package/dist/flavors/jis/worker.js +19 -0
- package/dist/flavors/nist/generated/substrate.d.ts +78 -0
- package/dist/flavors/nist/generated/substrate.js +105 -0
- package/dist/flavors/nist/index.js +18 -11
- package/dist/flavors/nist/worker.js +8 -4
- package/dist/flavors/oasis/generated/substrate.d.ts +75 -0
- package/dist/flavors/oasis/generated/substrate.js +102 -0
- package/dist/flavors/oasis/grammar.worker.d.ts +6 -0
- package/dist/flavors/oasis/grammar.worker.js +50 -0
- package/dist/flavors/oasis/implementation.d.ts +6 -0
- package/dist/flavors/oasis/implementation.js +80 -0
- package/dist/flavors/oasis/index.d.ts +1 -21
- package/dist/flavors/oasis/index.js +16 -108
- package/dist/flavors/oasis/model.d.ts +27 -0
- package/dist/flavors/oasis/model.js +34 -0
- package/dist/flavors/ogc/generated/substrate.d.ts +75 -0
- package/dist/flavors/ogc/generated/substrate.js +102 -0
- package/dist/flavors/ogc/grammar.worker.d.ts +6 -0
- package/dist/flavors/ogc/grammar.worker.js +55 -0
- package/dist/flavors/ogc/implementation.d.ts +6 -0
- package/dist/flavors/ogc/implementation.js +49 -0
- package/dist/flavors/ogc/index.d.ts +1 -18
- package/dist/flavors/ogc/index.js +15 -73
- package/dist/flavors/ogc/model.d.ts +23 -0
- package/dist/flavors/ogc/model.js +32 -0
- package/dist/flavors/oiml/generated/substrate.d.ts +78 -0
- package/dist/flavors/oiml/generated/substrate.js +105 -0
- package/dist/flavors/oiml/grammar.worker.d.ts +6 -0
- package/dist/flavors/oiml/grammar.worker.js +239 -0
- package/dist/flavors/oiml/implementation.d.ts +2 -1
- package/dist/flavors/oiml/implementation.js +16 -7
- package/dist/flavors/oiml/index.js +15 -6
- package/dist/flavors/oiml/model.js +19 -19
- package/dist/flavors/oiml/worker.js +14 -6
- package/dist/flavors/omg/generated/substrate.d.ts +78 -0
- package/dist/flavors/omg/generated/substrate.js +105 -0
- package/dist/flavors/omg/grammar.worker.d.ts +6 -0
- package/dist/flavors/omg/grammar.worker.js +64 -0
- package/dist/flavors/omg/implementation.d.ts +7 -0
- package/dist/flavors/omg/implementation.js +33 -0
- package/dist/flavors/omg/index.d.ts +1 -12
- package/dist/flavors/omg/index.js +15 -71
- package/dist/flavors/omg/model.d.ts +16 -0
- package/dist/flavors/omg/model.js +26 -0
- package/dist/flavors/plateau/generated/substrate.d.ts +78 -0
- package/dist/flavors/plateau/generated/substrate.js +105 -0
- package/dist/flavors/plateau/grammar.worker.d.ts +6 -0
- package/dist/flavors/plateau/grammar.worker.js +78 -0
- package/dist/flavors/plateau/implementation.d.ts +6 -0
- package/dist/flavors/plateau/implementation.js +74 -0
- package/dist/flavors/plateau/index.d.ts +1 -2
- package/dist/flavors/plateau/index.js +18 -114
- package/dist/flavors/plateau/model.d.ts +11 -0
- package/dist/flavors/plateau/model.js +51 -0
- package/dist/flavors/register-types.d.ts +20 -19
- package/dist/flavors/register-types.js +44 -19
- package/dist/flavors/sae/generated/substrate.d.ts +75 -0
- package/dist/flavors/sae/generated/substrate.js +102 -0
- package/dist/flavors/sae/grammar.worker.d.ts +6 -0
- package/dist/flavors/sae/grammar.worker.js +84 -0
- package/dist/flavors/sae/implementation.d.ts +11 -0
- package/dist/flavors/sae/implementation.js +109 -0
- package/dist/flavors/sae/index.d.ts +3 -0
- package/dist/flavors/sae/index.js +19 -0
- package/dist/flavors/sae/model.d.ts +86 -0
- package/dist/flavors/sae/model.js +185 -0
- package/dist/flavors/tgpp/generated/substrate.d.ts +78 -0
- package/dist/flavors/tgpp/generated/substrate.js +105 -0
- package/dist/flavors/tgpp/grammar.worker.d.ts +6 -0
- package/dist/flavors/tgpp/grammar.worker.js +69 -0
- package/dist/flavors/tgpp/implementation.d.ts +8 -0
- package/dist/flavors/tgpp/implementation.js +56 -0
- package/dist/flavors/tgpp/index.d.ts +1 -2
- package/dist/flavors/tgpp/index.js +15 -120
- package/dist/flavors/tgpp/model.d.ts +13 -0
- package/dist/flavors/tgpp/model.js +52 -0
- package/dist/flavors/w3c/generated/substrate.d.ts +78 -0
- package/dist/flavors/w3c/generated/substrate.js +105 -0
- package/dist/flavors/w3c/grammar.worker.d.ts +6 -0
- package/dist/flavors/w3c/grammar.worker.js +55 -0
- package/dist/flavors/w3c/implementation.d.ts +7 -0
- package/dist/flavors/w3c/implementation.js +49 -0
- package/dist/flavors/w3c/index.d.ts +1 -12
- package/dist/flavors/w3c/index.js +15 -146
- package/dist/flavors/w3c/model.d.ts +15 -0
- package/dist/flavors/w3c/model.js +103 -0
- package/dist/flavors/wmo/generated/substrate.d.ts +78 -0
- package/dist/flavors/wmo/generated/substrate.js +105 -0
- package/dist/flavors/wmo/implementation.d.ts +5 -0
- package/dist/flavors/wmo/implementation.js +79 -0
- package/dist/flavors/wmo/index.js +14 -68
- package/dist/flavors/worker-registry.js +246 -68
- package/dist/flavors/xsf/generated/substrate.d.ts +75 -0
- package/dist/flavors/xsf/generated/substrate.js +102 -0
- package/dist/flavors/xsf/grammar.worker.d.ts +6 -0
- package/dist/flavors/xsf/grammar.worker.js +53 -0
- package/dist/flavors/xsf/implementation.d.ts +6 -0
- package/dist/flavors/xsf/implementation.js +34 -0
- package/dist/flavors/xsf/index.d.ts +1 -16
- package/dist/flavors/xsf/index.js +16 -63
- package/dist/flavors/xsf/model.d.ts +20 -0
- package/dist/flavors/xsf/model.js +26 -0
- package/dist/model/identifier.d.ts +13 -1
- package/dist/model/identifier.js +71 -9
- package/dist/model/relation.d.ts +36 -0
- package/dist/model/relation.js +93 -0
- package/dist/parg/artifacts/ieee.d.ts +1 -1
- package/dist/parg/artifacts/ieee.js +1 -1
- package/dist/parg/worker.d.ts +4 -2
- package/dist/parg/worker.js +5 -3
- package/dist/parse-surface.js +4 -2
- package/dist/pubid-urn/decoder.d.ts +8 -0
- package/dist/pubid-urn/decoder.js +43 -0
- package/dist/pubid-urn/encoder.js +31 -0
- package/dist/pubid-urn/schema.d.ts +1 -1
- package/dist/pubid-urn/schema.js +1 -1
- package/dist/pubid-urn/schemas/bsi.js +1 -0
- package/dist/pubid-urn/schemas/bsi_pfs.js +9 -7
- package/dist/pubid-urn/schemas/cen_pfs.js +1 -0
- package/dist/pubid-urn/schemas/cencenelec.js +1 -0
- package/dist/pubid-urn/schemas/iec.js +1 -0
- package/dist/pubid-urn/schemas/ieee.js +1 -0
- package/dist/pubid-urn/schemas/iso.js +1 -0
- package/package.json +1 -1
- package/vendor/parg/bsi_pfs.json +1 -1
- package/vendor/parg/calconnect_pfs.json +1 -1
- package/vendor/parg/cen_pfs.json +1 -1
- package/vendor/parg/doi_pfs.json +1 -1
- package/vendor/parg/etsi_pfs.json +1 -1
- package/vendor/parg/ieee.json +1 -1
- package/vendor/parg/iho.json +1 -1
- package/vendor/parg/plateau.json +1 -1
- package/dist/flavors/api/grammar.d.ts +0 -4
- package/dist/flavors/ashrae/grammar.d.ts +0 -2
- package/dist/flavors/asme/grammar.d.ts +0 -2
- package/dist/flavors/astm/grammar.d.ts +0 -2
- package/dist/flavors/bsi/grammar.d.ts +0 -4
- package/dist/flavors/cen_cenelec/grammar.d.ts +0 -4
- package/dist/flavors/cie/grammar.d.ts +0 -5
- package/dist/flavors/csa/grammar.d.ts +0 -6
- package/dist/flavors/evs/grammar.d.ts +0 -2
- package/dist/flavors/evs/grammar.js +0 -68
- package/dist/flavors/gost/grammar.d.ts +0 -2
- package/dist/flavors/gost/grammar.js +0 -46
- package/dist/flavors/idf/grammar.d.ts +0 -2
- package/dist/flavors/iec/grammar.d.ts +0 -3
- package/dist/flavors/iec/grammar.js +0 -234
- package/dist/flavors/ieee/grammar.d.ts +0 -2
- package/dist/flavors/ieee/grammar.js +0 -777
- package/dist/flavors/iso/grammar.d.ts +0 -7
- package/dist/flavors/iso/grammar.js +0 -282
- package/dist/flavors/itu/grammar.d.ts +0 -4
- package/dist/flavors/itu/grammar.js +0 -276
- package/dist/flavors/nist/grammar.d.ts +0 -2
- package/dist/flavors/nist/grammar.js +0 -342
- package/dist/flavors/oiml/grammar.d.ts +0 -2
- package/dist/flavors/oiml/grammar.js +0 -206
- package/vendor/parg/csv.json +0 -1
- package/vendor/parg/ini.json +0 -1
- package/vendor/parg/json.json +0 -1
- package/vendor/parg/lua.json +0 -1
- package/vendor/parg/toml.json +0 -1
|
@@ -1,621 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
// (gem c3ff8636 — the decode-only seams, removable once relaton-data-iho
|
|
16
|
-
// is re-crawled). Never emitted: the emission side writes the renamed
|
|
17
|
-
// polymorphic names.
|
|
18
|
-
const IHO_LEGACY_TYPE_RETAG = {
|
|
19
|
-
"pubid:iho:bibliographic": "bathymetric",
|
|
20
|
-
"pubid:iho:circular-letter": "capacity_building",
|
|
21
|
-
};
|
|
22
|
-
function buildRules() {
|
|
23
|
-
const rules = {};
|
|
24
|
-
const rule = (name, build) => {
|
|
25
|
-
rules[name] = build();
|
|
26
|
-
};
|
|
27
|
-
const space = str(" ");
|
|
28
|
-
const dash = str("-");
|
|
29
|
-
const dot = str(".");
|
|
30
|
-
const digits = match("[0-9]").repeat(1, Infinity);
|
|
31
|
-
const letters = match("[A-Za-z]").repeat(0, Infinity);
|
|
32
|
-
const seriesLetter = str("S").or(str("P"), str("M"), str("B"), str("C"));
|
|
33
|
-
const year4 = str("19").or(str("20")).then(match("[0-9]").repeat(2));
|
|
34
|
-
rule("series", () => seriesLetter.as("type"));
|
|
35
|
-
// The colon member captures SEPARATELY ("S-158:102" → number "158" +
|
|
36
|
-
// colon_suffix "102"): the builder re-keys the S-158 member into
|
|
37
|
-
// product and re-glues every other series' member into the number
|
|
38
|
-
// (the C-16:2 opaque face, pubid#637).
|
|
39
|
-
rule("number_suffix", () => str(":").then(digits.as("colon_suffix")));
|
|
40
|
-
rule("number", () => digits.as("number").then(rules["number_suffix"].maybe()));
|
|
41
|
-
// The compact part face, hyphenated onto the code: S-5-B (lettered),
|
|
42
|
-
// S-100-1 (numbered) and S-158-S-102 (series reference).
|
|
43
|
-
rule("compact_part", () => dash.then(seriesLetter
|
|
44
|
-
.then(dash, digits)
|
|
45
|
-
.or(digits.then(letters), match("[A-Z]"))
|
|
46
|
-
.as("part")));
|
|
47
|
-
// LEGACY glued lettered bases (S-5A): parse-only alias, rendered as
|
|
48
|
-
// "Part A".
|
|
49
|
-
rule("glued", () => match("[A-Z]").as("part"));
|
|
50
|
-
rule("edition", () => space.then(digits.then(dot, digits, dot, digits).as("edition")));
|
|
51
|
-
rule("v_edition", () => space.then(str("v").then(digits.then(str(".").then(digits).maybe()).as("edition_shorthand"))));
|
|
52
|
-
rule("year_qualifier", () => space.then(str("(").then(year4.as("year"), str(")"))));
|
|
53
|
-
rule("part_series_ref", () => seriesLetter.then(dash, digits));
|
|
54
|
-
rule("part_value", () => rules["part_series_ref"].or(digits.then(letters), match("[A-Z]")).as("part"));
|
|
55
|
-
rule("part_edition_rule", () => space.then(digits.then(dot, digits, dot, digits).as("part_edition")));
|
|
56
|
-
rule("part_year_rule", () => space.then(str("(").then(year4.as("part_year"), str(")"))));
|
|
57
|
-
rule("part_dated", () => rules["part_edition_rule"].then(rules["part_year_rule"].maybe()));
|
|
58
|
-
// --- S-4 loose-leaf sections and specifications (issue #691) ---
|
|
59
|
-
// The spec number's vocabulary: the S-4 sections run 100-600 (Part C
|
|
60
|
-
// 100-500), so the leaf number is 3 digits with hundreds digit 1-6 —
|
|
61
|
-
// the same shape the bare citation branch leans on to keep the B
|
|
62
|
-
// Bathymetric series (B-1..B-13 style) distinct from B-4xx specs.
|
|
63
|
-
const specShape = match("[1-6]").then(match("[0-9]").repeat(2, 2));
|
|
64
|
-
// The citation letter is the spec's part (A/B/C); the builder binds
|
|
65
|
-
// it into `part` and rejects a conflicting Part-rule capture.
|
|
66
|
-
rule("spec_citation_body", () => str("A").or(str("B"), str("C")).as("spec_part")
|
|
67
|
-
.then(dash, specShape.as("spec"))
|
|
68
|
-
.then(dot.then(digits.as("spec_sub")).maybe())
|
|
69
|
-
.then(str("(").then(match("[A-Z]").repeat(1, Infinity).as("spec_variant"), str(")")).maybe()));
|
|
70
|
-
// The compact anchor form: the citation follows the code after one
|
|
71
|
-
// space ("IHO S-4 B-401").
|
|
72
|
-
rule("spec_citation", () => space.then(rules["spec_citation_body"]));
|
|
73
|
-
// The spelled section long form: "Part B, Section 400" — the spelled
|
|
74
|
-
// number becomes the spec (the section-level citation), and a
|
|
75
|
-
// trailing citation (", Section 400, B-401") makes it a cross-check
|
|
76
|
-
// only.
|
|
77
|
-
rule("part_section_tail", () => str(",").then(space, str("Section"), space, specShape.as("spec_section"))
|
|
78
|
-
.then(str(",").then(space, rules["spec_citation_body"]).maybe()));
|
|
79
|
-
rule("part", () => space.then(str("Part")).then(space, rules["part_value"], rules["part_dated"].maybe(), rules["part_section_tail"].maybe()));
|
|
80
|
-
rule("supplement_edition_rule", () => space.then(digits.then(dot, digits, dot, digits).as("supplement_edition")));
|
|
81
|
-
rule("supplement_year_rule", () => space.then(str("(").then(year4.as("supplement_year"), str(")"))));
|
|
82
|
-
rule("supplement_dated", () => rules["supplement_edition_rule"].then(rules["supplement_year_rule"].maybe()));
|
|
83
|
-
rule("supplement", () => space
|
|
84
|
-
.then(str("Suppl").or(str("Sup")))
|
|
85
|
-
.then(space, digits.as("supplement"), rules["supplement_dated"].maybe()));
|
|
86
|
-
rule("annex_edition_rule", () => space.then(digits.then(dot, digits, dot, digits).as("annex_edition")));
|
|
87
|
-
rule("annex_year_rule", () => space.then(str("(").then(year4.as("annex_year"), str(")"))));
|
|
88
|
-
rule("annex_dated", () => rules["annex_edition_rule"].then(rules["annex_year_rule"].maybe()));
|
|
89
|
-
rule("annex", () => space.then(str("Annex")).then(space, match("[A-Z]").as("annex"), rules["annex_dated"].maybe()));
|
|
90
|
-
rule("appendix_value", () => match("[A-Z]").or(digits).as("appendix"));
|
|
91
|
-
rule("appendix_subnumber", () => dash.then(digits.as("appendix_subnumber")));
|
|
92
|
-
rule("appendix_edition_rule", () => space.then(digits.then(dot, digits, dot, digits).as("appendix_edition")));
|
|
93
|
-
rule("appendix_year_rule", () => space.then(str("(").then(year4.as("appendix_year"), str(")"))));
|
|
94
|
-
rule("appendix_dated", () => rules["appendix_edition_rule"].then(rules["appendix_year_rule"].maybe()));
|
|
95
|
-
rule("appendix", () => space
|
|
96
|
-
.then(str("Appendix").or(str("App"), str("Ap.")))
|
|
97
|
-
.then(space, rules["appendix_value"], rules["appendix_subnumber"].maybe(), rules["appendix_dated"].maybe()));
|
|
98
|
-
rule("volume_issue", () => space
|
|
99
|
-
.then(str("Issue"))
|
|
100
|
-
.then(space, digits.as("issue"))
|
|
101
|
-
.or(space.then(str("("), digits.as("issue"), str(")"))));
|
|
102
|
-
rule("volume_edition_rule", () => space.then(digits.then(dot, digits, dot, digits).as("volume_edition")));
|
|
103
|
-
rule("volume_year_rule", () => space.then(str("(").then(year4.as("volume_year"), str(")"))));
|
|
104
|
-
rule("volume_dated", () => rules["volume_edition_rule"].then(rules["volume_year_rule"].maybe()));
|
|
105
|
-
rule("volume", () => space.then(str("Vol.")).then(space, digits.as("volume"), rules["volume_issue"].maybe()));
|
|
106
|
-
// The volume's short face — the slash chain ("IHO P-1/21").
|
|
107
|
-
rule("volume_short", () => str("/").then(digits.as("volume"), rules["volume_dated"].maybe()));
|
|
108
|
-
// LEGACY bare year ("IHO P-5 2024"): the yearbook year IS a volume.
|
|
109
|
-
rule("volume_bare_year", () => space.then(year4.as("volume")));
|
|
110
|
-
rule("serial", () => rules["volume"].or(rules["volume_bare_year"]).then(rules["volume_dated"].maybe()));
|
|
111
|
-
rule("dated", () => rules["edition"].or(rules["v_edition"]).then(rules["year_qualifier"].maybe()));
|
|
112
|
-
rule("identifier", () => str("IHO")
|
|
113
|
-
.then(space)
|
|
114
|
-
.maybe()
|
|
115
|
-
.then(rules["series"], dash, rules["number"], rules["compact_part"].maybe(), rules["glued"].maybe(), rules["volume_short"].maybe(), rules["dated"].maybe(), rules["supplement"].maybe(), rules["part"].maybe(), rules["spec_citation"].maybe(), rules["annex"].maybe(), rules["appendix"].maybe(), rules["serial"].maybe(), rules["year_qualifier"].maybe()));
|
|
116
|
-
// The bare citation branch (the entry's FIRST alternative): "B-401" /
|
|
117
|
-
// "IHO B-401" — implicit S-4 anchor (the builder synthesizes series S
|
|
118
|
-
// number 4). B only: bare C-x stays the C Capacity Building series,
|
|
119
|
-
// and the 3-digit [1-6]xx shape keeps the B Bathymetric series (B-12)
|
|
120
|
-
// on the main branch.
|
|
121
|
-
rule("bare_spec_citation", () => str("IHO").then(space).maybe()
|
|
122
|
-
.then(str("B").as("spec_part"), dash, specShape.as("spec"), dot.then(digits.as("spec_sub")).maybe(), str("(").then(match("[A-Z]").repeat(1, Infinity).as("spec_variant"), str(")")).maybe()));
|
|
123
|
-
rule("identifier_entry", () => rules["bare_spec_citation"].or(rules["identifier"]));
|
|
124
|
-
rule("root", () => rules["identifier_entry"]);
|
|
125
|
-
return rules;
|
|
126
|
-
}
|
|
127
|
-
export const ihoGrammar = { rules: buildRules(), root: "root" };
|
|
128
|
-
function padEditionShorthand(value) {
|
|
129
|
-
const segments = value.split(".");
|
|
130
|
-
while (segments.length < 3)
|
|
131
|
-
segments.push("0");
|
|
132
|
-
return segments.join(".");
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
* The pre-rename B/C `_type` retag on the deserialization path (the
|
|
136
|
-
* gem's normalize_legacy_type, c3ff8636). A stored row carrying a
|
|
137
|
-
* legacy wire name (`pubid:iho:bibliographic`,
|
|
138
|
-
* `pubid:iho:circular-letter`) re-tags onto the renamed canonical one,
|
|
139
|
-
* so a decoded legacy row reads and compares as the renamed type
|
|
140
|
-
* (equality compares `_type`; routing alone — the registry alias —
|
|
141
|
-
* would leave the legacy tag inside the rebuilt identifier). Pure
|
|
142
|
-
* function: a hash without a legacy `_type` passes through untouched.
|
|
143
|
-
* Removable once relaton-data-iho is re-crawled.
|
|
144
|
-
*/
|
|
145
|
-
function normalizeLegacyType(data) {
|
|
146
|
-
const canonical = IHO_LEGACY_TYPE_RETAG[String(data["_type"])];
|
|
147
|
-
if (canonical === undefined)
|
|
148
|
-
return data;
|
|
149
|
-
return { ...data, _type: `pubid:iho:${canonical}` };
|
|
150
|
-
}
|
|
151
|
-
/**
|
|
152
|
-
* The S-158 alias unification on the deserialization path (the gem's
|
|
153
|
-
* Builder.normalize_checks_alias, pubid#774). A hash carrying the
|
|
154
|
-
* draft-era part model on the standard family — a series reference
|
|
155
|
-
* ("S-102") or the bare member number ("102") riding number 158 with
|
|
156
|
-
* no product — rebinding onto product; the edition/year that
|
|
157
|
-
* followed the part face are the BASE ones. Pure function: returns the
|
|
158
|
-
* hash untouched when it carries no draft-era part face, a normalized
|
|
159
|
-
* copy otherwise. The face is not restored (the canonical colon form).
|
|
160
|
-
*/
|
|
161
|
-
function normalizeChecksAlias(data) {
|
|
162
|
-
const part = data["part"];
|
|
163
|
-
const number = data["number"];
|
|
164
|
-
const typeKey = data["_type"];
|
|
165
|
-
if (typeof part !== "string" ||
|
|
166
|
-
number !== "158" ||
|
|
167
|
-
data["product"] !== undefined ||
|
|
168
|
-
(typeKey !== undefined && !String(typeKey).endsWith("standard"))) {
|
|
169
|
-
return data;
|
|
170
|
-
}
|
|
171
|
-
const seriesRef = /^([SPMBC])-(\d+)$/.exec(part);
|
|
172
|
-
const digits = seriesRef !== null ? seriesRef[2] : /^\d+$/.test(part) ? part : undefined;
|
|
173
|
-
if (digits === undefined)
|
|
174
|
-
return data;
|
|
175
|
-
const out = { ...data };
|
|
176
|
-
const edition = out["part_edition"];
|
|
177
|
-
const year = out["part_year"];
|
|
178
|
-
if (out["edition"] !== undefined && edition !== undefined) {
|
|
179
|
-
throw new ParseFailed(`IHO: duplicate edition: the base edition and the member edition ${String(edition)} cannot both ride S-158:${digits}`, 0);
|
|
180
|
-
}
|
|
181
|
-
delete out["part"];
|
|
182
|
-
delete out["part_edition"];
|
|
183
|
-
delete out["part_year"];
|
|
184
|
-
out["product"] = digits;
|
|
185
|
-
if (out["edition"] === undefined && edition !== undefined)
|
|
186
|
-
out["edition"] = edition;
|
|
187
|
-
if (out["year"] === undefined && year !== undefined)
|
|
188
|
-
out["year"] = year;
|
|
189
|
-
return out;
|
|
190
|
-
}
|
|
191
|
-
function ihoClass(kind) {
|
|
192
|
-
const letter = KIND_LETTERS[kind];
|
|
193
|
-
class IhoKindIdentifier extends BaseIdentifier {
|
|
194
|
-
static polymorphicName = `pubid:iho:${kind}`;
|
|
195
|
-
/** The deserialization path applies the same S-158 alias unification
|
|
196
|
-
* the parse path applies (the gem's Builder.normalize_checks_alias):
|
|
197
|
-
* a stored row or a legacy URN carrying the draft-era part model
|
|
198
|
-
* (part: "S-102", part_edition: "0.2.0") decodes to the product
|
|
199
|
-
* identity, so no construction path yields the two-identity disease
|
|
200
|
-
* of issue #775. The spelling face is NOT restored — a deserialized
|
|
201
|
-
* identifier renders the canonical colon designator. */
|
|
202
|
-
static fromHash(hash) {
|
|
203
|
-
return super.fromHash(normalizeChecksAlias(normalizeLegacyType(hash)));
|
|
204
|
-
}
|
|
205
|
-
static attributes = extendAttributes(BaseIdentifier, {
|
|
206
|
-
number: { type: "string" },
|
|
207
|
-
// The S-158 family facet (pubid#774): the S-100 product number
|
|
208
|
-
// whose validation checks this publication specifies. The colon
|
|
209
|
-
// designator form "S-158:102" is the primary face; the legacy
|
|
210
|
-
// draft-era part spellings bind the SAME identity.
|
|
211
|
-
product: { type: "string" },
|
|
212
|
-
// The face the input spelled product with: undefined = the
|
|
213
|
-
// primary colon face ("S-158:102"), otherwise the draft-era part
|
|
214
|
-
// value as written ("S-102" of "Part S-102"/"S-158-S-102", "102"
|
|
215
|
-
// of "Part 102") — it prints in the Part slot verbatim.
|
|
216
|
-
// Spelling-only: outside the mappings whitelist it never
|
|
217
|
-
// serializes, and equality skips it — render keeps the input
|
|
218
|
-
// spelling, equality/URN use the canonical shape. URN
|
|
219
|
-
// deserialization restores no face (the canonical colon form).
|
|
220
|
-
product_face: { type: "string", equalityIgnored: true },
|
|
221
|
-
part: { type: "string" },
|
|
222
|
-
part_edition: { type: "string" },
|
|
223
|
-
part_year: { type: "string" },
|
|
224
|
-
annex: { type: "string" },
|
|
225
|
-
annex_edition: { type: "string" },
|
|
226
|
-
annex_year: { type: "string" },
|
|
227
|
-
appendix: { type: "string" },
|
|
228
|
-
appendix_subnumber: { type: "string" },
|
|
229
|
-
appendix_edition: { type: "string" },
|
|
230
|
-
appendix_year: { type: "string" },
|
|
231
|
-
supplement: { type: "string" },
|
|
232
|
-
supplement_edition: { type: "string" },
|
|
233
|
-
supplement_year: { type: "string" },
|
|
234
|
-
edition: { type: "string" },
|
|
235
|
-
year: { type: "string" },
|
|
236
|
-
volume: { type: "string" },
|
|
237
|
-
volume_edition: { type: "string" },
|
|
238
|
-
volume_year: { type: "string" },
|
|
239
|
-
issue: { type: "string" },
|
|
240
|
-
// The S-4 loose-leaf spec citation (issue #691): spec is the leaf
|
|
241
|
-
// number, the dotted sub and the parenthesized variant its
|
|
242
|
-
// children. The citation letter rides `part`; the spelled section
|
|
243
|
-
// is resolve-only (never an atom).
|
|
244
|
-
spec: { type: "string" },
|
|
245
|
-
spec_sub: { type: "string" },
|
|
246
|
-
spec_variant: { type: "string" },
|
|
247
|
-
});
|
|
248
|
-
static mappings = keyValue({ wire: "number", to: "number" }, { wire: "product", to: "product" }, { wire: "part", to: "part" }, { wire: "part_edition", to: "part_edition" }, { wire: "part_year", to: "part_year" }, { wire: "annex", to: "annex" }, { wire: "annex_edition", to: "annex_edition" }, { wire: "annex_year", to: "annex_year" }, { wire: "appendix", to: "appendix" }, { wire: "appendix_subnumber", to: "appendix_subnumber" }, { wire: "appendix_edition", to: "appendix_edition" }, { wire: "appendix_year", to: "appendix_year" }, { wire: "supplement", to: "supplement" }, { wire: "supplement_edition", to: "supplement_edition" }, { wire: "supplement_year", to: "supplement_year" }, { wire: "edition", to: "edition" }, { wire: "year", to: "year" }, { wire: "volume", to: "volume" }, { wire: "volume_edition", to: "volume_edition" }, { wire: "volume_year", to: "volume_year" }, { wire: "issue", to: "issue" }, { wire: "spec", to: "spec" }, { wire: "spec_sub", to: "spec_sub" }, { wire: "spec_variant", to: "spec_variant" });
|
|
249
|
-
render() {
|
|
250
|
-
let result = `IHO ${letter}-${this.number}`;
|
|
251
|
-
// The S-158 product face: the primary colon form rides the code
|
|
252
|
-
// ("S-158:102"); the draft-era part face keeps its spelling and
|
|
253
|
-
// prints in the Part slot — after the edition ("S-158 0.2.0
|
|
254
|
-
// Part S-102"). The compact face renders expanded (the S-5A law).
|
|
255
|
-
if (this.product !== undefined && this.product_face === undefined) {
|
|
256
|
-
result += `:${this.product}`;
|
|
257
|
-
}
|
|
258
|
-
if (this.edition !== undefined)
|
|
259
|
-
result += ` ${this.edition}`;
|
|
260
|
-
if (this.supplement !== undefined) {
|
|
261
|
-
result += ` Sup ${this.supplement}`;
|
|
262
|
-
if (this.supplement_edition !== undefined)
|
|
263
|
-
result += ` ${this.supplement_edition}`;
|
|
264
|
-
if (this.supplement_year !== undefined)
|
|
265
|
-
result += ` (${this.supplement_year})`;
|
|
266
|
-
}
|
|
267
|
-
if (this.spec !== undefined) {
|
|
268
|
-
// The S-4 citation face replaces the Part face (same
|
|
269
|
-
// containment slot: the citation letter IS the part):
|
|
270
|
-
// "B-401", "B-122.1", "B-521(I)".
|
|
271
|
-
result += ` ${this.part}-${this.spec}`;
|
|
272
|
-
if (this.spec_sub !== undefined)
|
|
273
|
-
result += `.${this.spec_sub}`;
|
|
274
|
-
if (this.spec_variant !== undefined)
|
|
275
|
-
result += `(${this.spec_variant})`;
|
|
276
|
-
}
|
|
277
|
-
else if (this.product_face !== undefined) {
|
|
278
|
-
// The draft-era member face prints in the Part slot, the part
|
|
279
|
-
// value as written ("Part S-102", "Part 102").
|
|
280
|
-
result += ` Part ${this.product_face}`;
|
|
281
|
-
}
|
|
282
|
-
else if (this.part !== undefined) {
|
|
283
|
-
result += ` Part ${this.part}`;
|
|
284
|
-
if (this.part_edition !== undefined)
|
|
285
|
-
result += ` ${this.part_edition}`;
|
|
286
|
-
if (this.part_year !== undefined)
|
|
287
|
-
result += ` (${this.part_year})`;
|
|
288
|
-
}
|
|
289
|
-
if (this.annex !== undefined) {
|
|
290
|
-
result += ` Annex ${this.annex}`;
|
|
291
|
-
if (this.annex_edition !== undefined)
|
|
292
|
-
result += ` ${this.annex_edition}`;
|
|
293
|
-
if (this.annex_year !== undefined)
|
|
294
|
-
result += ` (${this.annex_year})`;
|
|
295
|
-
}
|
|
296
|
-
if (this.appendix !== undefined) {
|
|
297
|
-
result += ` Appendix ${this.appendix}`;
|
|
298
|
-
if (this.appendix_subnumber !== undefined)
|
|
299
|
-
result += `-${this.appendix_subnumber}`;
|
|
300
|
-
if (this.appendix_edition !== undefined)
|
|
301
|
-
result += ` ${this.appendix_edition}`;
|
|
302
|
-
if (this.appendix_year !== undefined)
|
|
303
|
-
result += ` (${this.appendix_year})`;
|
|
304
|
-
}
|
|
305
|
-
if (this.volume !== undefined) {
|
|
306
|
-
result += ` Vol. ${this.volume}`;
|
|
307
|
-
if (this.issue !== undefined)
|
|
308
|
-
result += ` (${this.issue})`;
|
|
309
|
-
if (this.volume_edition !== undefined)
|
|
310
|
-
result += ` ${this.volume_edition}`;
|
|
311
|
-
if (this.volume_year !== undefined)
|
|
312
|
-
result += ` (${this.volume_year})`;
|
|
313
|
-
}
|
|
314
|
-
// The base year qualifier prints last, parenthesized ("IHO
|
|
315
|
-
// S-100 1.0.0 Part A (2024)").
|
|
316
|
-
if (this.year !== undefined)
|
|
317
|
-
result += ` (${this.year})`;
|
|
318
|
-
return result;
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
class IhoUrnGenerator extends BaseUrnGenerator {
|
|
322
|
-
// The guidance publication type per series letter (the gem's
|
|
323
|
-
// MRN_TYPES) — the five S-11 Part C Ed 1.0.0 section 1.2 groups
|
|
324
|
-
// onto the guidance's five codes: S = Standards and Specifications
|
|
325
|
-
// -> spec, P = the periodic publications -> per, M = Miscellaneous
|
|
326
|
-
// (Base Regulatory Publications) -> reg, B = Bathymetric
|
|
327
|
-
// Publications -> bathy, C = Capacity Building Publications -> cb.
|
|
328
|
-
static MRN_TYPES = {
|
|
329
|
-
S: "spec", P: "per", M: "reg", B: "bathy", C: "cb",
|
|
330
|
-
};
|
|
331
|
-
generate() {
|
|
332
|
-
const mrnType = IhoUrnGenerator.MRN_TYPES[letter];
|
|
333
|
-
if (mrnType === undefined) {
|
|
334
|
-
throw new Error(`IHO: series ${letter} carries no MRN guidance type code`);
|
|
335
|
-
}
|
|
336
|
-
const id = this.identifier;
|
|
337
|
-
// The IHO MRN guidance (S-100WG4, the gem's generate_mrn): the
|
|
338
|
-
// publications namespace urn:mrn:iho:pub:, the type token, the
|
|
339
|
-
// name segment, the bare dotted edition, then the trailing
|
|
340
|
-
// marker atoms in containment order.
|
|
341
|
-
const parts = ["urn:mrn:iho:pub", mrnType, this.mrnName(id)];
|
|
342
|
-
if (id.edition !== undefined)
|
|
343
|
-
parts.push(id.edition);
|
|
344
|
-
if (id.year !== undefined)
|
|
345
|
-
parts.push(`year-${id.year}`);
|
|
346
|
-
if (id.supplement !== undefined) {
|
|
347
|
-
parts.push(`sup-${id.supplement}`);
|
|
348
|
-
if (id.supplement_edition !== undefined)
|
|
349
|
-
parts.push(`ed-${id.supplement_edition}`);
|
|
350
|
-
if (id.supplement_year !== undefined)
|
|
351
|
-
parts.push(`year-${id.supplement_year}`);
|
|
352
|
-
}
|
|
353
|
-
if (id.part !== undefined) {
|
|
354
|
-
parts.push(`part-${id.part}`);
|
|
355
|
-
if (id.part_edition !== undefined)
|
|
356
|
-
parts.push(`ed-${id.part_edition}`);
|
|
357
|
-
if (id.part_year !== undefined)
|
|
358
|
-
parts.push(`year-${id.part_year}`);
|
|
359
|
-
}
|
|
360
|
-
// The S-4 spec citation: a child of its part (the citation letter
|
|
361
|
-
// rides the part- atom); the SECTION is NOT emitted — derivable
|
|
362
|
-
// from the spec's hundreds digit.
|
|
363
|
-
if (id.spec !== undefined) {
|
|
364
|
-
parts.push(`spec-${id.spec}`);
|
|
365
|
-
if (id.spec_sub !== undefined)
|
|
366
|
-
parts.push(`specsub-${id.spec_sub}`);
|
|
367
|
-
if (id.spec_variant !== undefined)
|
|
368
|
-
parts.push(`specvar-${id.spec_variant}`);
|
|
369
|
-
}
|
|
370
|
-
if (id.annex !== undefined) {
|
|
371
|
-
parts.push(`annex-${id.annex}`);
|
|
372
|
-
if (id.annex_edition !== undefined)
|
|
373
|
-
parts.push(`ed-${id.annex_edition}`);
|
|
374
|
-
if (id.annex_year !== undefined)
|
|
375
|
-
parts.push(`year-${id.annex_year}`);
|
|
376
|
-
}
|
|
377
|
-
if (id.appendix !== undefined) {
|
|
378
|
-
// The subnumber hyphen-joins its appendix (one compound
|
|
379
|
-
// segment, RFC 3986-safe).
|
|
380
|
-
let segment = `appendix-${id.appendix}`;
|
|
381
|
-
if (id.appendix_subnumber !== undefined)
|
|
382
|
-
segment += `-${id.appendix_subnumber}`;
|
|
383
|
-
parts.push(segment);
|
|
384
|
-
if (id.appendix_edition !== undefined)
|
|
385
|
-
parts.push(`ed-${id.appendix_edition}`);
|
|
386
|
-
if (id.appendix_year !== undefined)
|
|
387
|
-
parts.push(`year-${id.appendix_year}`);
|
|
388
|
-
}
|
|
389
|
-
if (id.volume !== undefined) {
|
|
390
|
-
parts.push(`vol-${id.volume}`);
|
|
391
|
-
if (id.issue !== undefined)
|
|
392
|
-
parts.push(`issue-${id.issue}`);
|
|
393
|
-
if (id.volume_edition !== undefined)
|
|
394
|
-
parts.push(`ed-${id.volume_edition}`);
|
|
395
|
-
if (id.volume_year !== undefined)
|
|
396
|
-
parts.push(`year-${id.volume_year}`);
|
|
397
|
-
}
|
|
398
|
-
return parts.join(":");
|
|
399
|
-
}
|
|
400
|
-
/** The lowercase name form: sNNN, the S-158 member joining
|
|
401
|
-
* hyphenated (s158-102) so the edition stays in its canonical 4th
|
|
402
|
-
* position. */
|
|
403
|
-
mrnName(id) {
|
|
404
|
-
let name = `${letter.toLowerCase()}${id.number}`;
|
|
405
|
-
if (id.product !== undefined)
|
|
406
|
-
name += `-${id.product}`;
|
|
407
|
-
return name;
|
|
408
|
-
}
|
|
409
|
-
}
|
|
410
|
-
IhoKindIdentifier.urnGenerator = IhoUrnGenerator;
|
|
411
|
-
registerType(IhoKindIdentifier);
|
|
412
|
-
return IhoKindIdentifier;
|
|
413
|
-
}
|
|
414
|
-
const KIND_CLASSES = {
|
|
415
|
-
standard: ihoClass("standard"),
|
|
416
|
-
publication: ihoClass("publication"),
|
|
417
|
-
miscellaneous: ihoClass("miscellaneous"),
|
|
418
|
-
bathymetric: ihoClass("bathymetric"),
|
|
419
|
-
capacity_building: ihoClass("capacity_building"),
|
|
420
|
-
};
|
|
421
|
-
// The pre-rename B/C wire names route onto the renamed classes (the
|
|
422
|
-
// gem's polymorphic_type_map merge): Pubid.from_hash-equivalent dispatch
|
|
423
|
-
// resolves a legacy `_type` row to the renamed class. Decode-only, never
|
|
424
|
-
// emitted — the emission side writes the renamed polymorphic names.
|
|
425
|
-
// Removable once relaton-data-iho is re-crawled.
|
|
426
|
-
for (const [legacyName, kind] of Object.entries(IHO_LEGACY_TYPE_RETAG)) {
|
|
427
|
-
registerTypeAlias(legacyName, KIND_CLASSES[kind]);
|
|
428
|
-
}
|
|
429
|
-
const LETTER_TO_CLASS = new Map(Object.keys(KIND_LETTERS).map((kind) => [KIND_LETTERS[kind], KIND_CLASSES[kind]]));
|
|
430
|
-
class IhoBuilder extends BaseBuilder {
|
|
431
|
-
// The S-4 anchor: the loose-leaf publication every spec citation
|
|
432
|
-
// resolves through (bare "B-401" carries it implicitly).
|
|
433
|
-
static S4_TYPE = "S";
|
|
434
|
-
static S4_NUMBER = "4";
|
|
435
|
-
// The S-158 framework publication: its series members (the colon
|
|
436
|
-
// designator and the series-reference part faces) re-key into
|
|
437
|
-
// product (pubid#774).
|
|
438
|
-
static S158_NUMBER = "158";
|
|
439
|
-
// The two publication modes are mutually exclusive (the gem's
|
|
440
|
-
// assert_edition_mode!): a base edition and any component edition
|
|
441
|
-
// cannot ride together.
|
|
442
|
-
static COMPONENT_EDITIONS = [
|
|
443
|
-
"part_edition",
|
|
444
|
-
"supplement_edition",
|
|
445
|
-
"annex_edition",
|
|
446
|
-
"appendix_edition",
|
|
447
|
-
"volume_edition",
|
|
448
|
-
];
|
|
449
|
-
// A citation letter is one of S-4's lettered Parts; the section
|
|
450
|
-
// vocabulary (100-600, Part C 100-500) is theirs.
|
|
451
|
-
static SPEC_LETTERS = ["A", "B", "C"];
|
|
452
|
-
// Components an S-4 spec citation cannot carry: the citation is a
|
|
453
|
-
// leaf of the Part, not a wrappable publication.
|
|
454
|
-
static SPEC_FOREIGN_COMPONENTS = [
|
|
455
|
-
"supplement", "annex", "appendix", "appendix_subnumber", "volume", "issue",
|
|
456
|
-
];
|
|
457
|
-
selectClass(data) {
|
|
458
|
-
const kind = LETTER_TO_CLASS.get(String(data["type"]));
|
|
459
|
-
if (kind === undefined) {
|
|
460
|
-
throw new ParseFailed(`IHO: unknown series ${String(data["type"])}`, 0);
|
|
461
|
-
}
|
|
462
|
-
return kind;
|
|
463
|
-
}
|
|
464
|
-
defaultIdentifierClass() {
|
|
465
|
-
return KIND_CLASSES["standard"];
|
|
466
|
-
}
|
|
467
|
-
build(data) {
|
|
468
|
-
const flat = Array.isArray(data)
|
|
469
|
-
? Object.assign({}, ...data)
|
|
470
|
-
: { ...data };
|
|
471
|
-
// A component year without its component edition attaches to the
|
|
472
|
-
// nearest preceding edition node — the base ("IHO S-100 1.0.0
|
|
473
|
-
// Part A (2024)" binds the base year, never part_year). With the
|
|
474
|
-
// component's own edition present it stays component-scoped
|
|
475
|
-
// ("IHO S-98 Part A 1.0.0 (2024)" keeps part_year).
|
|
476
|
-
for (const component of ["part", "supplement", "annex", "appendix", "volume"]) {
|
|
477
|
-
const yearKey = `${component}_year`;
|
|
478
|
-
if (flat[yearKey] !== undefined &&
|
|
479
|
-
flat[`${component}_edition`] === undefined &&
|
|
480
|
-
flat["edition"] !== undefined) {
|
|
481
|
-
if (flat["year"] === undefined)
|
|
482
|
-
flat["year"] = flat[yearKey];
|
|
483
|
-
delete flat[yearKey];
|
|
484
|
-
}
|
|
485
|
-
}
|
|
486
|
-
// The S-158 family re-key (pubid#774, the gem's Builder). The colon
|
|
487
|
-
// designator "S-158:<NNN>" is the PRIMARY face: number stays 158,
|
|
488
|
-
// the member binds product. The member designator is the S-158
|
|
489
|
-
// series device — a colon form on any other anchor rejects
|
|
490
|
-
// ("S-44:5", "C-16:2"). A draft-era part face on the S-158 family —
|
|
491
|
-
// a series reference ("Part S-102"), the compact face
|
|
492
|
-
// ("S-158-S-102") or the bare member number ("Part 102") — rebinds
|
|
493
|
-
// onto product while product is UNBOUND (a bound member keeps
|
|
494
|
-
// a genuine part: "S-158:100 Part 2"); a lettered or compound part
|
|
495
|
-
// value ("Part A", "Part 4a") never rebinds. The edition/year that
|
|
496
|
-
// follow the draft-era part face are the BASE ones (the pubid#775
|
|
497
|
-
// mis-bind fix), and the spelling face records the part value as
|
|
498
|
-
// written so the render keeps the input's spelling (equality/URN
|
|
499
|
-
// canonical). The two publication modes are mutually exclusive: a
|
|
500
|
-
// base edition and any component edition cannot ride together.
|
|
501
|
-
const colonSuffix = flat["colon_suffix"];
|
|
502
|
-
delete flat["colon_suffix"];
|
|
503
|
-
if (colonSuffix !== undefined) {
|
|
504
|
-
const type = flat["type"];
|
|
505
|
-
if (flat["number"] === IhoBuilder.S158_NUMBER && (type === undefined || type === "S")) {
|
|
506
|
-
if (flat["product"] !== undefined && flat["product"] !== colonSuffix) {
|
|
507
|
-
throw new ParseFailed(`IHO: product ${String(flat["product"])} conflicts with the colon member ${String(colonSuffix)}`, 0);
|
|
508
|
-
}
|
|
509
|
-
flat["product"] = colonSuffix;
|
|
510
|
-
}
|
|
511
|
-
else {
|
|
512
|
-
throw new ParseFailed(`IHO: the product member designator is the S-158 series device: ${String(type ?? "S")}-${String(flat["number"])}:${String(colonSuffix)} cannot carry it`, 0);
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
|
-
if (flat["number"] === IhoBuilder.S158_NUMBER &&
|
|
516
|
-
flat["product"] === undefined &&
|
|
517
|
-
typeof flat["part"] === "string") {
|
|
518
|
-
const partValue = flat["part"];
|
|
519
|
-
const seriesRef = /^([SPMBC])-(\d+)$/.exec(partValue);
|
|
520
|
-
const digits = seriesRef !== null ? seriesRef[2] : /^\d+$/.test(partValue) ? partValue : undefined;
|
|
521
|
-
if (digits !== undefined) {
|
|
522
|
-
flat["product"] = digits;
|
|
523
|
-
flat["product_face"] = partValue;
|
|
524
|
-
delete flat["part"];
|
|
525
|
-
const edition = flat["part_edition"];
|
|
526
|
-
const year = flat["part_year"];
|
|
527
|
-
delete flat["part_edition"];
|
|
528
|
-
delete flat["part_year"];
|
|
529
|
-
if (flat["edition"] !== undefined && edition !== undefined) {
|
|
530
|
-
throw new ParseFailed(`IHO: duplicate edition: the base edition ${String(flat["edition"])} and the member edition ${String(edition)} cannot both ride S-158:${digits}`, 0);
|
|
531
|
-
}
|
|
532
|
-
if (flat["year"] !== undefined && year !== undefined) {
|
|
533
|
-
throw new ParseFailed(`IHO: duplicate year: the base year ${String(flat["year"])} and the member year ${String(year)} cannot both ride S-158:${digits}`, 0);
|
|
534
|
-
}
|
|
535
|
-
if (flat["edition"] === undefined && edition !== undefined)
|
|
536
|
-
flat["edition"] = edition;
|
|
537
|
-
if (flat["year"] === undefined && year !== undefined)
|
|
538
|
-
flat["year"] = year;
|
|
539
|
-
}
|
|
540
|
-
}
|
|
541
|
-
if (flat["edition"] !== undefined) {
|
|
542
|
-
const owned = IhoBuilder.COMPONENT_EDITIONS.filter((k) => flat[k] !== undefined);
|
|
543
|
-
if (owned.length > 0) {
|
|
544
|
-
throw new ParseFailed(`IHO: a base edition and a component edition are mutually exclusive: ${owned.join(", ")} cannot ride edition ${String(flat["edition"])}`, 0);
|
|
545
|
-
}
|
|
546
|
-
}
|
|
547
|
-
// The S-4 spec citation resolution (ruby resolve_spec_citation!):
|
|
548
|
-
// the citation letter folds into `part` (a Part-rule capture must
|
|
549
|
-
// agree), and the long form's spelled section becomes the spec
|
|
550
|
-
// alone — beside a citation it only cross-checks the citation's
|
|
551
|
-
// derived section ("Part B, Section 400, B-401" stores spec 401;
|
|
552
|
-
// "Part B, Section 500, B-401" is rejected).
|
|
553
|
-
const letter = flat["spec_part"];
|
|
554
|
-
const spelled = flat["spec_section"];
|
|
555
|
-
delete flat["spec_part"];
|
|
556
|
-
delete flat["spec_section"];
|
|
557
|
-
if (letter !== undefined) {
|
|
558
|
-
if (flat["part"] === undefined || flat["part"] === letter) {
|
|
559
|
-
flat["part"] = letter;
|
|
560
|
-
}
|
|
561
|
-
else {
|
|
562
|
-
throw new ParseFailed(`IHO: the citation letter ${String(letter)} conflicts with part ${String(flat["part"])}`, 0);
|
|
563
|
-
}
|
|
564
|
-
}
|
|
565
|
-
if (spelled !== undefined) {
|
|
566
|
-
if (flat["spec"] === undefined) {
|
|
567
|
-
flat["spec"] = spelled;
|
|
568
|
-
}
|
|
569
|
-
else {
|
|
570
|
-
const section = `${String(flat["spec"])[0]}00`;
|
|
571
|
-
if (spelled !== section) {
|
|
572
|
-
throw new ParseFailed(`IHO: the spelled section ${String(spelled)} disagrees with the citation ${String(flat["part"])}-${String(flat["spec"])}`, 0);
|
|
573
|
-
}
|
|
574
|
-
}
|
|
575
|
-
}
|
|
576
|
-
if (flat["spec"] !== undefined) {
|
|
577
|
-
if (!IhoBuilder.SPEC_LETTERS.includes(String(flat["part"]))) {
|
|
578
|
-
throw new ParseFailed(`IHO: an S-4 spec citation needs a lettered Part (A/B/C), not ${JSON.stringify(flat["part"])}`, 0);
|
|
579
|
-
}
|
|
580
|
-
if (flat["part_edition"] !== undefined || flat["part_year"] !== undefined) {
|
|
581
|
-
throw new ParseFailed("IHO: a spec citation rides the S-4 edition, not a part edition", 0);
|
|
582
|
-
}
|
|
583
|
-
const foreign = IhoBuilder.SPEC_FOREIGN_COMPONENTS.filter((k) => flat[k] !== undefined);
|
|
584
|
-
if (foreign.length > 0) {
|
|
585
|
-
throw new ParseFailed(`IHO: an S-4 spec citation is a leaf of its Part and cannot carry ${foreign.join(", ")}`, 0);
|
|
586
|
-
}
|
|
587
|
-
// The series letter: a bare citation branch parse has no series
|
|
588
|
-
// capture, and its anchor is implicitly the S-4 publication (the
|
|
589
|
-
// number binds with it). An explicit series must BE the anchor.
|
|
590
|
-
if (flat["type"] === undefined) {
|
|
591
|
-
flat["type"] = IhoBuilder.S4_TYPE;
|
|
592
|
-
flat["number"] = IhoBuilder.S4_NUMBER;
|
|
593
|
-
}
|
|
594
|
-
else if (flat["type"] !== IhoBuilder.S4_TYPE ||
|
|
595
|
-
flat["number"] !== IhoBuilder.S4_NUMBER) {
|
|
596
|
-
throw new ParseFailed(`IHO: an S-4 spec citation requires the S-4 anchor: ${String(flat["type"])}-${String(flat["number"])} cannot carry spec ${String(flat["spec"])}`, 0);
|
|
597
|
-
}
|
|
598
|
-
}
|
|
599
|
-
return super.build(flat);
|
|
600
|
-
}
|
|
601
|
-
cast(key, value) {
|
|
602
|
-
if (key === "type")
|
|
603
|
-
return null; // the kind is encoded in _type
|
|
604
|
-
if (key === "edition_shorthand") {
|
|
605
|
-
return { edition: padEditionShorthand(String(value)) };
|
|
606
|
-
}
|
|
607
|
-
return value;
|
|
608
|
-
}
|
|
609
|
-
}
|
|
1
|
+
//! The iho node entry: the parse lane is the GENERATED substrate
|
|
2
|
+
//! (pubid/pubid-grammar#158) driving the wasm artifact runtime — the
|
|
3
|
+
//! baked iho.json is the only parsing input. The hand entry's
|
|
4
|
+
//! combinator re-transcription retired from this lane (the pure-TS port
|
|
5
|
+
//! rides the worker entry, grammar.worker.ts). The semantic delta lives
|
|
6
|
+
//! in implementation.ts.
|
|
7
|
+
import { PubidRuntime } from "../../parg/runtime.js";
|
|
8
|
+
import * as substrate from "./generated/substrate.js";
|
|
9
|
+
import { makeIhoGrammarImplementation } from "./implementation.js";
|
|
10
|
+
export * from "./model.js";
|
|
11
|
+
// The generated substrate drives the wasm artifact runtime — registered
|
|
12
|
+
// once at module init. Node-only (the runtime walks to the artifacts
|
|
13
|
+
// through node:fs).
|
|
14
|
+
substrate.registerRuntime(() => PubidRuntime.load(substrate.FLAVOR, substrate.ENTRY));
|
|
610
15
|
export function ihoGrammarImplementation() {
|
|
611
|
-
|
|
612
|
-
return {
|
|
613
|
-
parse(input) {
|
|
614
|
-
const tree = parseGrammar(ihoGrammar, input);
|
|
615
|
-
if (typeof tree !== "object" || tree === null || Array.isArray(tree)) {
|
|
616
|
-
throw new ParseFailed("IHO: unexpected parse tree", 0);
|
|
617
|
-
}
|
|
618
|
-
return builder.build(tree);
|
|
619
|
-
},
|
|
620
|
-
};
|
|
16
|
+
return makeIhoGrammarImplementation((body) => substrate.boundToWire(substrate.parseBound(body)));
|
|
621
17
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IdentifierStatic } from "../../model/identifier.js";
|
|
2
|
+
/**
|
|
3
|
+
* The iho model — moved verbatim from the former hand entry. Five
|
|
4
|
+
* series classes (S/P/M/B/C), the S-158 product family (pubid#774),
|
|
5
|
+
* the pre-rename B/C decode-only seams and the S-158 alias
|
|
6
|
+
* unification on the deserialization path.
|
|
7
|
+
*/
|
|
8
|
+
export type IhoKind = "standard" | "publication" | "miscellaneous" | "bathymetric" | "capacity_building";
|
|
9
|
+
export declare const KIND_LETTERS: Record<IhoKind, string>;
|
|
10
|
+
export declare const KIND_CLASSES: Record<IhoKind, IdentifierStatic>;
|
|
11
|
+
export declare const LETTER_TO_CLASS: Map<string, IdentifierStatic>;
|