@primmel/primmel 1.19.0 → 1.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/check-rules.d.ts.map +1 -1
- package/dist/src/check-rules.js +17 -0
- package/dist/src/check-rules.js.map +1 -1
- package/dist/src/check.d.ts.map +1 -1
- package/dist/src/check.js +96 -0
- package/dist/src/check.js.map +1 -1
- package/dist/src/ser-des/config/conformanceTest.d.ts.map +1 -1
- package/dist/src/ser-des/config/conformanceTest.js +310 -0
- package/dist/src/ser-des/config/conformanceTest.js.map +1 -1
- package/dist/src/types/ConformanceTest.d.ts +86 -0
- package/dist/src/types/ConformanceTest.d.ts.map +1 -1
- package/dist-browser/index.mjs +934 -821
- package/dist-cli/primmel.mjs +355 -0
- package/package.json +1 -1
package/dist-browser/index.mjs
CHANGED
|
@@ -4905,7 +4905,116 @@ function Di(e) {
|
|
|
4905
4905
|
}
|
|
4906
4906
|
return t;
|
|
4907
4907
|
}
|
|
4908
|
-
|
|
4908
|
+
function Oi(e) {
|
|
4909
|
+
let t = {}, r = n(e), i = 0;
|
|
4910
|
+
for (; i < r.length;) {
|
|
4911
|
+
let e = P(r[i++]);
|
|
4912
|
+
if (i >= r.length) break;
|
|
4913
|
+
if (r[i] === ":" && i++, i < r.length) {
|
|
4914
|
+
let n = M(r, i);
|
|
4915
|
+
t[e] = a(n.text), i = n.next;
|
|
4916
|
+
}
|
|
4917
|
+
}
|
|
4918
|
+
return t;
|
|
4919
|
+
}
|
|
4920
|
+
function ki(e) {
|
|
4921
|
+
let t = {
|
|
4922
|
+
read: "",
|
|
4923
|
+
tolerance: ""
|
|
4924
|
+
}, r = n(e), o = 0;
|
|
4925
|
+
for (; o < r.length;) {
|
|
4926
|
+
let e = r[o++];
|
|
4927
|
+
if (o >= r.length) break;
|
|
4928
|
+
e === "read" ? t.read = a(r[o++]) : e === "tolerance" ? t.tolerance = a(r[o++]) : i(r[o++]);
|
|
4929
|
+
}
|
|
4930
|
+
return t;
|
|
4931
|
+
}
|
|
4932
|
+
function Ai(e, t, r, o, s) {
|
|
4933
|
+
let c = {
|
|
4934
|
+
description: "",
|
|
4935
|
+
entries: [],
|
|
4936
|
+
sourceRefs: []
|
|
4937
|
+
}, l = n(e), u = 0;
|
|
4938
|
+
for (; u < l.length;) {
|
|
4939
|
+
let e = l[u++];
|
|
4940
|
+
if (u >= l.length) throw Error(`Parsing error: ${s}: Expecting value for ${e}`);
|
|
4941
|
+
if (e === "description") c.description = a(l[u++]);
|
|
4942
|
+
else if (e === "source") c.sourceRefs.push(I(i(l[u++])));
|
|
4943
|
+
else if (e === "ref") {
|
|
4944
|
+
let e = S(l, u, a, i);
|
|
4945
|
+
T(c, e.ref), u = e.next;
|
|
4946
|
+
} else if (e === t) {
|
|
4947
|
+
let e = r(), t = l[u++];
|
|
4948
|
+
t.startsWith("{") || (e.order = Number(a(t)), t = u < l.length && l[u].startsWith("{") ? l[u++] : ""), t.startsWith("{") && o(i(t), e), c.entries.push(e);
|
|
4949
|
+
} else u = y(l, u, e);
|
|
4950
|
+
}
|
|
4951
|
+
return c;
|
|
4952
|
+
}
|
|
4953
|
+
function ji(e, t) {
|
|
4954
|
+
return Ai(e, "step", () => ({
|
|
4955
|
+
order: null,
|
|
4956
|
+
action: "",
|
|
4957
|
+
drive: "",
|
|
4958
|
+
args: {},
|
|
4959
|
+
hold: "",
|
|
4960
|
+
verify: null
|
|
4961
|
+
}), (e, n) => {
|
|
4962
|
+
v(e, (e, t) => {
|
|
4963
|
+
if (e === "action") n.action = x(t);
|
|
4964
|
+
else if (e === "drive") n.drive = a(t());
|
|
4965
|
+
else if (e === "args") n.args = Oi(i(t()));
|
|
4966
|
+
else if (e === "hold") n.hold = a(t());
|
|
4967
|
+
else if (e === "verify") n.verify = ki(i(t()));
|
|
4968
|
+
else return !1;
|
|
4969
|
+
return !0;
|
|
4970
|
+
}, {
|
|
4971
|
+
construct: "conformance_test.preparation",
|
|
4972
|
+
id: t
|
|
4973
|
+
});
|
|
4974
|
+
}, `conformance_test.preparation. ID ${t}`);
|
|
4975
|
+
}
|
|
4976
|
+
function Mi(e, t) {
|
|
4977
|
+
return Ai(e, "point", () => ({
|
|
4978
|
+
order: null,
|
|
4979
|
+
drive: "",
|
|
4980
|
+
args: {},
|
|
4981
|
+
hold: "",
|
|
4982
|
+
freshWithin: "",
|
|
4983
|
+
acceptance: ""
|
|
4984
|
+
}), (e, n) => {
|
|
4985
|
+
v(e, (e, t) => {
|
|
4986
|
+
if (e === "drive") n.drive = a(t());
|
|
4987
|
+
else if (e === "args") n.args = Oi(i(t()));
|
|
4988
|
+
else if (e === "hold") n.hold = a(t());
|
|
4989
|
+
else if (e === "fresh_within") n.freshWithin = a(t());
|
|
4990
|
+
else if (e === "acceptance") n.acceptance = a(t());
|
|
4991
|
+
else return !1;
|
|
4992
|
+
return !0;
|
|
4993
|
+
}, {
|
|
4994
|
+
construct: "conformance_test.stimulus",
|
|
4995
|
+
id: t
|
|
4996
|
+
});
|
|
4997
|
+
}, `conformance_test.stimulus. ID ${t}`);
|
|
4998
|
+
}
|
|
4999
|
+
function Ni(e) {
|
|
5000
|
+
let t = Object.keys(e);
|
|
5001
|
+
return t.length === 0 ? "" : " args { " + t.map((t) => t + ": \"" + s(e[t]) + "\"").join(" ") + " }";
|
|
5002
|
+
}
|
|
5003
|
+
function Pi(e) {
|
|
5004
|
+
let t = " preparation {\n";
|
|
5005
|
+
e.description !== "" && (t += " description \"" + s(e.description) + "\"\n");
|
|
5006
|
+
for (let n of e.entries) t += " step" + (n.order === null ? "" : " " + n.order) + " {", n.action !== "" && (t += " action \"" + s(n.action) + "\""), n.drive !== "" && (t += " drive " + N(n.drive)), t += Ni(n.args), n.hold !== "" && (t += " hold " + N(n.hold)), n.verify && (t += " verify {", n.verify.read !== "" && (t += " read " + N(n.verify.read)), n.verify.tolerance !== "" && (t += " tolerance " + N(n.verify.tolerance)), t += " }"), t += " }\n";
|
|
5007
|
+
for (let n of e.sourceRefs) t += E(n, " ", s);
|
|
5008
|
+
return t + " }\n";
|
|
5009
|
+
}
|
|
5010
|
+
function Fi(e) {
|
|
5011
|
+
let t = " stimulus {\n";
|
|
5012
|
+
e.description !== "" && (t += " description \"" + s(e.description) + "\"\n");
|
|
5013
|
+
for (let n of e.entries) t += " point" + (n.order === null ? "" : " " + n.order) + " {", n.drive !== "" && (t += " drive " + N(n.drive)), t += Ni(n.args), n.hold !== "" && (t += " hold " + N(n.hold)), n.freshWithin !== "" && (t += " fresh_within " + N(n.freshWithin)), n.acceptance !== "" && (t += " acceptance " + N(n.acceptance)), t += " }\n";
|
|
5014
|
+
for (let n of e.sourceRefs) t += E(n, " ", s);
|
|
5015
|
+
return t + " }\n";
|
|
5016
|
+
}
|
|
5017
|
+
var Ii = function(e, t) {
|
|
4909
5018
|
let o = {
|
|
4910
5019
|
id: e,
|
|
4911
5020
|
name: "",
|
|
@@ -4916,6 +5025,8 @@ var Oi = function(e, t) {
|
|
|
4916
5025
|
bindsTo: [],
|
|
4917
5026
|
applicability: [],
|
|
4918
5027
|
procedure: [],
|
|
5028
|
+
preparation: null,
|
|
5029
|
+
stimulus: null,
|
|
4919
5030
|
measurements: [],
|
|
4920
5031
|
kind: "",
|
|
4921
5032
|
obligation: "",
|
|
@@ -4941,15 +5052,15 @@ var Oi = function(e, t) {
|
|
|
4941
5052
|
sourceDiscrepancy: null,
|
|
4942
5053
|
sourceRef: null
|
|
4943
5054
|
};
|
|
4944
|
-
return v(t, (
|
|
4945
|
-
if (
|
|
4946
|
-
else if (
|
|
4947
|
-
else if (
|
|
4948
|
-
else if (
|
|
4949
|
-
else if (
|
|
4950
|
-
else if (
|
|
4951
|
-
else if (
|
|
4952
|
-
let e =
|
|
5055
|
+
return v(t, (t, s, c) => {
|
|
5056
|
+
if (t === "name") o.name = x(s);
|
|
5057
|
+
else if (t === "purpose") o.purpose = x(s);
|
|
5058
|
+
else if (t === "method") o.method = x(s);
|
|
5059
|
+
else if (t === "method_ref") o.methodRef = a(s());
|
|
5060
|
+
else if (t === "guidance") o.guidance = x(s);
|
|
5061
|
+
else if (t === "type") o.type = s();
|
|
5062
|
+
else if (t === "reference") {
|
|
5063
|
+
let e = s();
|
|
4953
5064
|
if (e.startsWith("{")) {
|
|
4954
5065
|
let t = n(i(e));
|
|
4955
5066
|
if (t.includes("doc") || t.includes("clause")) {
|
|
@@ -4961,58 +5072,60 @@ var Oi = function(e, t) {
|
|
|
4961
5072
|
o.sourceRef ||= e, (o.sourceRefs ??= []).push(e), o.reference ||= e.doc;
|
|
4962
5073
|
} else o.sourceRef = null, o.sourceRefs = void 0, o.reference = i(e).trim();
|
|
4963
5074
|
} else o.sourceRef = null, o.sourceRefs = void 0, o.reference = e;
|
|
4964
|
-
} else if (
|
|
4965
|
-
else if (
|
|
4966
|
-
let e = C(
|
|
5075
|
+
} else if (t === "targets") o.targets = r(s());
|
|
5076
|
+
else if (t === "ref") {
|
|
5077
|
+
let e = C(s, c, a, i);
|
|
4967
5078
|
T(o, e) || (o.refs ??= []).push(e);
|
|
4968
|
-
} else if (
|
|
4969
|
-
else if (
|
|
4970
|
-
else if (
|
|
4971
|
-
else if (
|
|
4972
|
-
let e = r(
|
|
4973
|
-
for (;
|
|
4974
|
-
let
|
|
4975
|
-
if (!isNaN(
|
|
5079
|
+
} else if (t === "corresponds") (o.correspondences ??= []).push(O(s, c, a));
|
|
5080
|
+
else if (t === "binds_to") o.bindsTo = r(s());
|
|
5081
|
+
else if (t === "applicability") o.applicability = L(i(s()));
|
|
5082
|
+
else if (t === "procedure") {
|
|
5083
|
+
let e = r(s()), t = 0;
|
|
5084
|
+
for (; t < e.length;) {
|
|
5085
|
+
let n = parseInt(e[t], 10);
|
|
5086
|
+
if (!isNaN(n) && t + 1 < e.length) {
|
|
4976
5087
|
let r = {
|
|
4977
|
-
order:
|
|
4978
|
-
action: x(() => e[
|
|
5088
|
+
order: n,
|
|
5089
|
+
action: x(() => e[t + 1]),
|
|
4979
5090
|
outputs: []
|
|
4980
5091
|
};
|
|
4981
|
-
|
|
4982
|
-
} else
|
|
5092
|
+
t += 2, e[t] === "inputs" && t + 1 < e.length && (r.inputs = V(e[t + 1]), t += 2), e[t] === "outputs" && t + 1 < e.length && (r.outputs = V(e[t + 1]), t += 2), o.procedure.push(r);
|
|
5093
|
+
} else t++;
|
|
4983
5094
|
}
|
|
4984
|
-
} else if (
|
|
4985
|
-
else if (
|
|
4986
|
-
else if (
|
|
4987
|
-
else if (
|
|
4988
|
-
else if (
|
|
4989
|
-
else if (
|
|
4990
|
-
else if (
|
|
4991
|
-
else if (
|
|
4992
|
-
else if (
|
|
4993
|
-
else if (
|
|
4994
|
-
else if (
|
|
4995
|
-
else if (
|
|
4996
|
-
else if (
|
|
4997
|
-
else if (
|
|
4998
|
-
else if (
|
|
4999
|
-
else if (
|
|
5000
|
-
else if (
|
|
5001
|
-
else if (
|
|
5002
|
-
else if (
|
|
5003
|
-
else if (
|
|
5004
|
-
else if (
|
|
5005
|
-
else if (
|
|
5006
|
-
|
|
5095
|
+
} else if (t === "procedure_steps") o.procedureSteps = V(s());
|
|
5096
|
+
else if (t === "preparation") o.preparation = ji(i(s()), e);
|
|
5097
|
+
else if (t === "stimulus") o.stimulus = Mi(i(s()), e);
|
|
5098
|
+
else if (t === "kind") o.kind = a(s());
|
|
5099
|
+
else if (t === "obligation") o.obligation = a(s());
|
|
5100
|
+
else if (t === "obligation_note") o.obligationNote = x(s);
|
|
5101
|
+
else if (t === "test_subject") o.testSubject = Ei(i(s()));
|
|
5102
|
+
else if (t === "variables") o.variables = xi(i(s()));
|
|
5103
|
+
else if (t === "observables") o.observables = Ci(i(s()));
|
|
5104
|
+
else if (t === "conditions_to_enforce" || t === "conditionsToEnforce") o.conditionsToEnforce = V(s());
|
|
5105
|
+
else if (t === "preconditions") o.preconditions = Si(i(s()));
|
|
5106
|
+
else if (t === "reference_materials") o.referenceMaterials = V(s());
|
|
5107
|
+
else if (t === "required_competence") o.requiredCompetence = pi(i(s()));
|
|
5108
|
+
else if (t === "acceptance_criteria") wi(i(s()), o);
|
|
5109
|
+
else if (t === "design") o.design = ii(i(s()));
|
|
5110
|
+
else if (t === "acceptance") o.acceptance = Yr(i(s()));
|
|
5111
|
+
else if (t === "dependencies") o.dependencies = V(s());
|
|
5112
|
+
else if (t === "instances") o.instances = Di(i(s()));
|
|
5113
|
+
else if (t === "inherits_from") o.inheritsFrom = a(s());
|
|
5114
|
+
else if (t === "result_forms") o.resultForms = V(s());
|
|
5115
|
+
else if (t === "produces_artifacts") o.producesArtifacts = V(s());
|
|
5116
|
+
else if (t === "report_rows") o.reportRows = V(s());
|
|
5117
|
+
else if (t === "derived_values") o.derivedValues = Ti(i(s()));
|
|
5118
|
+
else if (t === "validate_measurement") {
|
|
5119
|
+
let e = r(s());
|
|
5007
5120
|
for (let t of e) t.startsWith("\"") && o.measurements.push(i(t));
|
|
5008
|
-
} else if (
|
|
5121
|
+
} else if (t === "source_discrepancy") o.sourceDiscrepancy = A(i(s()));
|
|
5009
5122
|
else return !1;
|
|
5010
5123
|
return !0;
|
|
5011
5124
|
}, {
|
|
5012
5125
|
construct: "conformance_test",
|
|
5013
5126
|
id: e
|
|
5014
5127
|
}), (t) => (t.conformanceTests[e] = o, t);
|
|
5015
|
-
},
|
|
5128
|
+
}, Li = function(e) {
|
|
5016
5129
|
let t = "conformance_test " + e.id + " {\n";
|
|
5017
5130
|
if (e.name && (t += " name \"" + s(e.name) + "\"\n"), e.type && (t += " type " + e.type + "\n"), e.purpose && (t += " purpose \"" + s(e.purpose) + "\"\n"), e.method && (t += " method \"" + s(e.method) + "\"\n"), e.methodRef && (t += " method_ref " + e.methodRef + "\n"), e.guidance && (t += " guidance \"" + s(e.guidance) + "\"\n"), e.sourceRefs && e.sourceRefs.length > 0) for (let n of e.sourceRefs) t += E(n, " ", s);
|
|
5018
5131
|
else e.sourceRef && e.sourceRef.doc ? t += E(e.sourceRef, " ", s) : e.reference && (t += " reference " + e.reference + "\n");
|
|
@@ -5035,7 +5148,7 @@ var Oi = function(e, t) {
|
|
|
5035
5148
|
}
|
|
5036
5149
|
t += " }\n";
|
|
5037
5150
|
}
|
|
5038
|
-
if (e.procedureSteps && e.procedureSteps.length > 0 && (t += " procedure_steps { " + e.procedureSteps.join(" ") + " }\n"), e.measurements.length > 0) {
|
|
5151
|
+
if (e.procedureSteps && e.procedureSteps.length > 0 && (t += " procedure_steps { " + e.procedureSteps.join(" ") + " }\n"), e.preparation && (t += Pi(e.preparation)), e.stimulus && (t += Fi(e.stimulus)), e.measurements.length > 0) {
|
|
5039
5152
|
t += " validate_measurement {\n";
|
|
5040
5153
|
for (let n of e.measurements) t += " \"" + s(n) + "\"\n";
|
|
5041
5154
|
t += " }\n";
|
|
@@ -5096,23 +5209,23 @@ var Oi = function(e, t) {
|
|
|
5096
5209
|
t += " }\n";
|
|
5097
5210
|
}
|
|
5098
5211
|
return e.sourceDiscrepancy && (t += j(e.sourceDiscrepancy, " ") + "\n"), t += k(e.correspondences, " ", s, N), t += "}\n", t;
|
|
5099
|
-
},
|
|
5212
|
+
}, Ri = {
|
|
5100
5213
|
aliases: "aliases",
|
|
5101
5214
|
alt: "aliases",
|
|
5102
5215
|
colloquial: "colloquial",
|
|
5103
5216
|
abbreviations: "abbreviations",
|
|
5104
5217
|
deprecated: "deprecated"
|
|
5105
5218
|
};
|
|
5106
|
-
function
|
|
5107
|
-
return e in
|
|
5219
|
+
function zi(e) {
|
|
5220
|
+
return e in Ri;
|
|
5108
5221
|
}
|
|
5109
|
-
function
|
|
5222
|
+
function Bi(e, t, n) {
|
|
5110
5223
|
if (t === "aliases") {
|
|
5111
5224
|
let t = [...e.aliases ?? [], ...n];
|
|
5112
5225
|
e.aliases = t, e.alt = t;
|
|
5113
5226
|
} else (e[t] ??= []).push(...n);
|
|
5114
5227
|
}
|
|
5115
|
-
var
|
|
5228
|
+
var Vi = function(e, t) {
|
|
5116
5229
|
let n = {
|
|
5117
5230
|
id: e,
|
|
5118
5231
|
label: "",
|
|
@@ -5147,7 +5260,7 @@ var Ni = function(e, t) {
|
|
|
5147
5260
|
else if (t === "language") n.language = x(o);
|
|
5148
5261
|
else if (t === "form_type") n.formType = x(o);
|
|
5149
5262
|
else if (t === "part_of_speech") n.partOfSpeech = x(o);
|
|
5150
|
-
else if (
|
|
5263
|
+
else if (zi(t)) {
|
|
5151
5264
|
let i = o(), c, l = i;
|
|
5152
5265
|
if (!i.startsWith("{")) {
|
|
5153
5266
|
c = i;
|
|
@@ -5155,8 +5268,8 @@ var Ni = function(e, t) {
|
|
|
5155
5268
|
if (n === void 0 || !n.startsWith("{")) throw Error(`Parsing error: term. ID ${e}: alias-family facet "${t}" with spelling code "${c}" expects a list block`);
|
|
5156
5269
|
l = o();
|
|
5157
5270
|
}
|
|
5158
|
-
let u = r(l).map(a), d =
|
|
5159
|
-
if (c === void 0)
|
|
5271
|
+
let u = r(l).map(a), d = Ri[t];
|
|
5272
|
+
if (c === void 0) Bi(n, d, u);
|
|
5160
5273
|
else {
|
|
5161
5274
|
let e = (n.aliasSpellings ??= {})[c] ??= {};
|
|
5162
5275
|
(e[d] ??= []).push(...u);
|
|
@@ -5168,7 +5281,7 @@ var Ni = function(e, t) {
|
|
|
5168
5281
|
construct: "term",
|
|
5169
5282
|
id: e
|
|
5170
5283
|
}), (t) => (t.terms[e] = n, t);
|
|
5171
|
-
},
|
|
5284
|
+
}, Hi = function(e) {
|
|
5172
5285
|
let t = "term " + e.id + " {\n";
|
|
5173
5286
|
e.label && (t += " label \"" + s(e.label) + "\"\n"), e.definition && (t += " definition \"" + s(e.definition) + "\"\n"), e.symbolId && (t += " symbol " + e.symbolId + "\n"), e.vocabRef && (t += " vocab_ref { register " + e.vocabRef.register + " clause \"" + s(e.vocabRef.clause) + "\" }\n"), e.vocabTerm && (t += " vocab_term \"" + s(e.vocabTerm) + "\"\n"), e.section && (t += " section \"" + s(e.section) + "\"\n"), e.note && (t += " note \"" + s(e.note) + "\"\n"), e.source && (t += " source \"" + s(e.source) + "\"\n"), e.overlay && (t += " overlay true\n"), e.scopeNote && (t += " scope_note \"" + s(e.scopeNote) + "\"\n"), e.language && (t += " language \"" + s(e.language) + "\"\n"), e.formType && (t += " form_type \"" + s(e.formType) + "\"\n"), e.partOfSpeech && (t += " part_of_speech \"" + s(e.partOfSpeech) + "\"\n");
|
|
5174
5287
|
let n = (e) => /\s/.test(e) ? "\"" + s(e) + "\"" : e, r = (e, t, r) => " " + e + (r ? " " + r : "") + " { " + t.map(n).join(" ") + " }\n", i = e.aliases ?? e.alt;
|
|
@@ -5191,17 +5304,17 @@ var Ni = function(e, t) {
|
|
|
5191
5304
|
t += " }\n";
|
|
5192
5305
|
}
|
|
5193
5306
|
return t += k(e.correspondences, " ", s, N), t += "}\n", t;
|
|
5194
|
-
},
|
|
5307
|
+
}, Ui = [
|
|
5195
5308
|
"none",
|
|
5196
5309
|
"max",
|
|
5197
5310
|
"mean",
|
|
5198
5311
|
"worst_case",
|
|
5199
5312
|
"max_abs_over_window"
|
|
5200
5313
|
];
|
|
5201
|
-
function
|
|
5314
|
+
function Wi(e) {
|
|
5202
5315
|
return n(a(e)).map(P).map(a).filter((e) => e.length > 0);
|
|
5203
5316
|
}
|
|
5204
|
-
var
|
|
5317
|
+
var Gi = function(e, t) {
|
|
5205
5318
|
let r = {
|
|
5206
5319
|
id: e,
|
|
5207
5320
|
quantityKind: "",
|
|
@@ -5223,10 +5336,10 @@ var Li = function(e, t) {
|
|
|
5223
5336
|
} else if (t === "symbol") r.symbol = x(o);
|
|
5224
5337
|
else if (t === "behavior") r.behavior = o();
|
|
5225
5338
|
else if (t === "derive" || t === "expression") r.derive = x(o);
|
|
5226
|
-
else if (t === "inputs" || t === "uses") r.inputs =
|
|
5339
|
+
else if (t === "inputs" || t === "uses") r.inputs = Wi(o());
|
|
5227
5340
|
else if (t === "series_reduction") {
|
|
5228
5341
|
let t = o();
|
|
5229
|
-
if (!
|
|
5342
|
+
if (!Ui.includes(t)) throw Error(`Parsing error: verdict. ID ${e}: Unknown series_reduction ${t} (valid: ${Ui.join(", ")})`);
|
|
5230
5343
|
r.seriesReduction = t;
|
|
5231
5344
|
} else if (t === "acceptance") r.acceptance = Yr(i(o()));
|
|
5232
5345
|
else if (t === "source" || t === "reference") {
|
|
@@ -5242,7 +5355,7 @@ var Li = function(e, t) {
|
|
|
5242
5355
|
construct: "verdict",
|
|
5243
5356
|
id: e
|
|
5244
5357
|
}), (t) => (t.verdicts[e] = r, t);
|
|
5245
|
-
},
|
|
5358
|
+
}, Ki = function(e) {
|
|
5246
5359
|
let t = "verdict " + e.id + " {\n";
|
|
5247
5360
|
e.symbol && (t += " symbol \"" + s(e.symbol) + "\"\n"), e.behavior && (t += " behavior " + e.behavior + "\n"), e.quantityKind && (t += " quantity { kind " + e.quantityKind, e.unit && (t += " unit \"" + s(e.unit) + "\""), t += " }\n"), e.derive && (t += " derive \"" + s(e.derive) + "\"\n"), e.inputs.length > 0 && (t += " inputs { " + e.inputs.join(" ") + " }\n"), e.seriesReduction && (t += " series_reduction " + e.seriesReduction + "\n"), e.acceptance && (t += Xr(e.acceptance, " ") + "\n");
|
|
5248
5361
|
let n = e.sourceRefs && e.sourceRefs.length > 0 ? e.sourceRefs : e.source && (e.source.doc || e.source.clause) ? [e.source] : [];
|
|
@@ -5251,7 +5364,7 @@ var Li = function(e, t) {
|
|
|
5251
5364
|
};
|
|
5252
5365
|
//#endregion
|
|
5253
5366
|
//#region src/ser-des/config/referenceMaterial.ts
|
|
5254
|
-
function
|
|
5367
|
+
function qi(e) {
|
|
5255
5368
|
let t = [], r = n(e), o = 0;
|
|
5256
5369
|
for (; o < r.length;) {
|
|
5257
5370
|
if (r[o++] !== "field") {
|
|
@@ -5277,7 +5390,7 @@ function zi(e) {
|
|
|
5277
5390
|
}
|
|
5278
5391
|
return t;
|
|
5279
5392
|
}
|
|
5280
|
-
function
|
|
5393
|
+
function Ji(e) {
|
|
5281
5394
|
let t = [], r = n(e), o = 0;
|
|
5282
5395
|
for (; o < r.length;) {
|
|
5283
5396
|
if (r[o++] !== "constraint") {
|
|
@@ -5334,7 +5447,7 @@ function Bi(e) {
|
|
|
5334
5447
|
}
|
|
5335
5448
|
return t;
|
|
5336
5449
|
}
|
|
5337
|
-
var
|
|
5450
|
+
var Yi = function(e, t) {
|
|
5338
5451
|
let n = {
|
|
5339
5452
|
id: e,
|
|
5340
5453
|
kind: "",
|
|
@@ -5355,15 +5468,15 @@ var Vi = function(e, t) {
|
|
|
5355
5468
|
let e = C(t, r, a, i);
|
|
5356
5469
|
T(n, e) || (n.refs ??= []).push(e);
|
|
5357
5470
|
} else if (e === "corresponds") (n.correspondences ??= []).push(O(t, r, a));
|
|
5358
|
-
else if (e === "identity_fields") n.identityFields =
|
|
5359
|
-
else if (e === "constraints") n.constraints =
|
|
5471
|
+
else if (e === "identity_fields") n.identityFields = qi(i(t()));
|
|
5472
|
+
else if (e === "constraints") n.constraints = Ji(i(t()));
|
|
5360
5473
|
else return !1;
|
|
5361
5474
|
return !0;
|
|
5362
5475
|
}, {
|
|
5363
5476
|
construct: "reference_material",
|
|
5364
5477
|
id: e
|
|
5365
5478
|
}), (t) => (t.referenceMaterials[e] = n, t);
|
|
5366
|
-
},
|
|
5479
|
+
}, Xi = function(e) {
|
|
5367
5480
|
let t = "reference_material " + e.id + " {\n";
|
|
5368
5481
|
e.kind && (t += " kind " + e.kind + "\n"), e.name && (t += " name \"" + s(e.name) + "\"\n"), e.definition && (t += " definition \"" + s(e.definition) + "\"\n");
|
|
5369
5482
|
let n = e.sourceRefs && e.sourceRefs.length > 0 ? e.sourceRefs : e.source ? [e.source] : [];
|
|
@@ -5386,21 +5499,21 @@ var Vi = function(e, t) {
|
|
|
5386
5499
|
t += " }\n";
|
|
5387
5500
|
}
|
|
5388
5501
|
return t += "}\n", t;
|
|
5389
|
-
},
|
|
5502
|
+
}, Zi = [
|
|
5390
5503
|
"common",
|
|
5391
5504
|
"determination",
|
|
5392
5505
|
"attestation",
|
|
5393
5506
|
"surveillance"
|
|
5394
|
-
],
|
|
5507
|
+
], Qi = [
|
|
5395
5508
|
"product_type",
|
|
5396
5509
|
"batch",
|
|
5397
5510
|
"ongoing_production",
|
|
5398
5511
|
"service_or_process"
|
|
5399
5512
|
];
|
|
5400
|
-
function
|
|
5513
|
+
function $i(e) {
|
|
5401
5514
|
return r(i(e)).map(P).map(a).filter((e) => e.length > 0);
|
|
5402
5515
|
}
|
|
5403
|
-
var
|
|
5516
|
+
var ea = (e, t) => {
|
|
5404
5517
|
let n = {
|
|
5405
5518
|
id: e,
|
|
5406
5519
|
family: "common",
|
|
@@ -5414,7 +5527,7 @@ var Ki = (e, t) => {
|
|
|
5414
5527
|
return v(t, (t, r) => {
|
|
5415
5528
|
if (t === "family") {
|
|
5416
5529
|
let t = a(r());
|
|
5417
|
-
if (!
|
|
5530
|
+
if (!Zi.includes(t)) throw Error(`Parsing error: scheme_activity_kind. ID ${e}: Unknown family "${t}" (valid: ${Zi.join(", ")})`);
|
|
5418
5531
|
n.family = t;
|
|
5419
5532
|
} else if (t === "row") n.row = a(r());
|
|
5420
5533
|
else if (t === "label") n.label = a(r());
|
|
@@ -5426,14 +5539,14 @@ var Ki = (e, t) => {
|
|
|
5426
5539
|
id: e
|
|
5427
5540
|
}), (t) => (t.schemeActivityKinds[e] = n, t);
|
|
5428
5541
|
};
|
|
5429
|
-
function
|
|
5542
|
+
function ta(e) {
|
|
5430
5543
|
let t = {
|
|
5431
5544
|
required: !1,
|
|
5432
5545
|
activities: []
|
|
5433
5546
|
};
|
|
5434
5547
|
return v(e, (e, n) => {
|
|
5435
5548
|
if (e === "required") t.required = a(n()) === "true";
|
|
5436
|
-
else if (e === "activities") t.activities =
|
|
5549
|
+
else if (e === "activities") t.activities = $i(n());
|
|
5437
5550
|
else return !1;
|
|
5438
5551
|
return !0;
|
|
5439
5552
|
}, {
|
|
@@ -5441,7 +5554,7 @@ function qi(e) {
|
|
|
5441
5554
|
id: ""
|
|
5442
5555
|
}), t;
|
|
5443
5556
|
}
|
|
5444
|
-
var
|
|
5557
|
+
var na = (e, t) => {
|
|
5445
5558
|
let n = {
|
|
5446
5559
|
id: e,
|
|
5447
5560
|
label: "",
|
|
@@ -5465,11 +5578,11 @@ var Ji = (e, t) => {
|
|
|
5465
5578
|
else if (t === "sampling") n.sampling = a(o());
|
|
5466
5579
|
else if (t === "attestation_object") {
|
|
5467
5580
|
let t = a(o());
|
|
5468
|
-
if (!
|
|
5581
|
+
if (!Qi.includes(t)) throw Error(`Parsing error: scheme_type. ID ${e}: Unknown attestation_object "${t}" (valid: ${Qi.join(", ")})`);
|
|
5469
5582
|
n.attestationObject = t;
|
|
5470
|
-
} else if (t === "determination") n.determination =
|
|
5471
|
-
else if (t === "attestation") n.attestation =
|
|
5472
|
-
else if (t === "surveillance") n.surveillance =
|
|
5583
|
+
} else if (t === "determination") n.determination = $i(o());
|
|
5584
|
+
else if (t === "attestation") n.attestation = $i(o());
|
|
5585
|
+
else if (t === "surveillance") n.surveillance = ta(i(o()));
|
|
5473
5586
|
else if (t === "notes") n.notes = r(i(o())).map(a).filter((e) => e.length > 0);
|
|
5474
5587
|
else if (t === "source") n.source = I(i(o()));
|
|
5475
5588
|
else return !1;
|
|
@@ -5479,23 +5592,23 @@ var Ji = (e, t) => {
|
|
|
5479
5592
|
id: e
|
|
5480
5593
|
}), (t) => (t.schemeTypes[e] = n, t);
|
|
5481
5594
|
};
|
|
5482
|
-
function
|
|
5595
|
+
function ra(e, t) {
|
|
5483
5596
|
if (!e.doc && !e.clause) return "";
|
|
5484
5597
|
let n = t + "source {\n";
|
|
5485
5598
|
return e.doc && (n += t + " doc \"" + s(e.doc) + "\"\n"), e.clause && (n += t + " clause \"" + s(e.clause) + "\"\n"), n += t + "}\n", n;
|
|
5486
5599
|
}
|
|
5487
|
-
var
|
|
5600
|
+
var ia = function(e) {
|
|
5488
5601
|
let t = "scheme_activity_kind " + e.id + " {\n";
|
|
5489
|
-
return t += " family " + e.family + "\n", e.row && (t += " row \"" + s(e.row) + "\"\n"), e.label && (t += " label \"" + s(e.label) + "\"\n"), t +=
|
|
5490
|
-
},
|
|
5602
|
+
return t += " family " + e.family + "\n", e.row && (t += " row \"" + s(e.row) + "\"\n"), e.label && (t += " label \"" + s(e.label) + "\"\n"), t += ra(e.source, " "), t += "}\n", t;
|
|
5603
|
+
}, aa = function(e) {
|
|
5491
5604
|
let t = "scheme_type " + e.id + " {\n";
|
|
5492
5605
|
if (e.label && (t += " label \"" + s(e.label) + "\"\n"), e.clause && (t += " clause \"" + s(e.clause) + "\"\n"), e.description && (t += " description \"" + s(e.description) + "\"\n"), e.sampling && (t += " sampling \"" + s(e.sampling) + "\"\n"), e.attestationObject && (t += " attestation_object " + e.attestationObject + "\n"), e.determination.length > 0 && (t += " determination { " + e.determination.map(N).join(" ") + " }\n"), e.attestation.length > 0 && (t += " attestation { " + e.attestation.map(N).join(" ") + " }\n"), e.surveillance && (t += " surveillance {\n", t += " required " + (e.surveillance.required ? "true" : "false") + "\n", e.surveillance.activities.length > 0 && (t += " activities { " + e.surveillance.activities.map(N).join(" ") + " }\n"), t += " }\n"), e.notes.length > 0) {
|
|
5493
5606
|
t += " notes {\n";
|
|
5494
5607
|
for (let n of e.notes) t += " \"" + s(n) + "\"\n";
|
|
5495
5608
|
t += " }\n";
|
|
5496
5609
|
}
|
|
5497
|
-
return t +=
|
|
5498
|
-
},
|
|
5610
|
+
return t += ra(e.source, " "), t += "}\n", t;
|
|
5611
|
+
}, oa = function(e, t) {
|
|
5499
5612
|
let n = {
|
|
5500
5613
|
id: e,
|
|
5501
5614
|
kind: "",
|
|
@@ -5517,16 +5630,16 @@ var Xi = function(e) {
|
|
|
5517
5630
|
} else t === "description" || t === "definition" ? n.description = a(o[s++]) : t === "subject_kinds" ? n.subjectKinds = r(i(o[s++])).map(a) : t === "target_kinds" ? n.targetKinds = r(i(o[s++])).map(a) : t === "resolution" ? n.resolution = a(o[s++]) : t === "inverse" ? n.inverse = a(o[s++]) : t === "transitive" ? n.transitive = a(o[s++]) === "true" : t === "symmetric" ? n.symmetric = a(o[s++]) === "true" : s++;
|
|
5518
5631
|
}
|
|
5519
5632
|
return (t) => (t.predicates ??= {}, t.predicates[e] = n, t);
|
|
5520
|
-
},
|
|
5633
|
+
}, sa = function(e) {
|
|
5521
5634
|
let t = "predicate " + e.id + " {\n";
|
|
5522
5635
|
return e.kind && (t += " kind " + e.kind + "\n"), e.description && (t += " description \"" + s(e.description) + "\"\n"), e.subjectKinds.length > 0 && (t += " subject_kinds { " + e.subjectKinds.join(" ") + " }\n"), e.targetKinds.length > 0 && (t += " target_kinds { " + e.targetKinds.join(" ") + " }\n"), e.resolution && (t += " resolution " + e.resolution + "\n"), e.inverse && (t += " inverse " + e.inverse + "\n"), e.transitive && (t += " transitive true\n"), e.symmetric && (t += " symmetric true\n"), t += "}\n", t;
|
|
5523
5636
|
};
|
|
5524
5637
|
//#endregion
|
|
5525
5638
|
//#region src/ser-des/config/constraint.ts
|
|
5526
|
-
function
|
|
5639
|
+
function ca(e) {
|
|
5527
5640
|
return e.length >= 2 && e.charAt(0) === "\"" && e.charAt(e.length - 1) === "\"" ? o(e.substr(1, e.length - 2)) : i(e);
|
|
5528
5641
|
}
|
|
5529
|
-
var
|
|
5642
|
+
var la = function(e, t) {
|
|
5530
5643
|
let n = {
|
|
5531
5644
|
id: e,
|
|
5532
5645
|
stereotype: "",
|
|
@@ -5540,9 +5653,9 @@ var ta = function(e, t) {
|
|
|
5540
5653
|
let t = o[s++];
|
|
5541
5654
|
if (s >= o.length) throw Error(`Parsing error: constraint. ID ${e}: Expecting value for ${t}`);
|
|
5542
5655
|
if (t === "stereotype") n.stereotype = a(o[s++]);
|
|
5543
|
-
else if (t === "name") n.name =
|
|
5544
|
-
else if (t === "check") n.check =
|
|
5545
|
-
else if (t === "violation_meaning") n.violationMeaning =
|
|
5656
|
+
else if (t === "name") n.name = ca(o[s++]);
|
|
5657
|
+
else if (t === "check") n.check = ca(o[s++]);
|
|
5658
|
+
else if (t === "violation_meaning") n.violationMeaning = ca(o[s++]);
|
|
5546
5659
|
else if (t === "on_violation") n.onViolation = a(o[s++]);
|
|
5547
5660
|
else if (t === "source") n.source = I(i(o[s++]));
|
|
5548
5661
|
else if (t === "ref") {
|
|
@@ -5554,10 +5667,10 @@ var ta = function(e, t) {
|
|
|
5554
5667
|
} else s = y(o, s, t);
|
|
5555
5668
|
}
|
|
5556
5669
|
return (t) => (t.constraints[e] = n, t);
|
|
5557
|
-
},
|
|
5670
|
+
}, ua = function(e) {
|
|
5558
5671
|
let t = "constraint " + e.id + " {\n";
|
|
5559
5672
|
return e.stereotype && (t += " stereotype " + e.stereotype + "\n"), e.name && (t += " name \"" + s(e.name) + "\"\n"), e.check && (t += " check \"" + s(e.check) + "\"\n"), e.violationMeaning && (t += " violation_meaning \"" + s(e.violationMeaning) + "\"\n"), t += " on_violation " + (e.onViolation || "invalid") + "\n", e.source && (e.source.doc || e.source.clause) && (t += " source { doc \"" + s(e.source.doc) + "\" clause \"" + s(e.source.clause) + "\"" + (e.source.fragment ? " fragment \"" + s(e.source.fragment) + "\"" : "") + " }\n"), t += k(e.correspondences, " ", s, N), t += "}\n", t;
|
|
5560
|
-
},
|
|
5673
|
+
}, da = ["open", "resolved"], fa = function(e, t) {
|
|
5561
5674
|
let i = {
|
|
5562
5675
|
id: e,
|
|
5563
5676
|
status: "",
|
|
@@ -5572,7 +5685,7 @@ var ta = function(e, t) {
|
|
|
5572
5685
|
if (s >= o.length) throw Error(`Parsing error: discrepancy_record. ID ${e}: Expecting value for ${t}`);
|
|
5573
5686
|
if (t === "status") {
|
|
5574
5687
|
let t = a(o[s++]);
|
|
5575
|
-
if (!
|
|
5688
|
+
if (!da.includes(t)) throw Error(`Parsing error: discrepancy_record. ID ${e}: Unknown status ${t} (valid: ${da.join(", ")})`);
|
|
5576
5689
|
i.status = t;
|
|
5577
5690
|
} else if (t === "summary") i.summary = a(o[s++]);
|
|
5578
5691
|
else if (t === "sources") i.sources = n(a(o[s++])).map(a).filter((e) => e.length > 0);
|
|
@@ -5583,13 +5696,13 @@ var ta = function(e, t) {
|
|
|
5583
5696
|
} else t === "governing" ? i.governing = a(o[s++]) : t === "rationale" ? i.rationale = a(o[s++]) : s++;
|
|
5584
5697
|
}
|
|
5585
5698
|
return (t) => (t.discrepancyRecords[e] = i, t);
|
|
5586
|
-
},
|
|
5699
|
+
}, pa = function(e) {
|
|
5587
5700
|
let t = "discrepancy_record " + e.id + " {\n";
|
|
5588
5701
|
return e.status && (t += " status " + e.status + "\n"), e.summary && (t += " summary \"" + s(e.summary) + "\"\n"), t += " sources { " + e.sources.map((e) => "\"" + s(e) + "\"").join(" ") + " }\n", e.resolution && (t += " resolution " + e.resolution + "\n"), e.governing && (t += " governing \"" + s(e.governing) + "\"\n"), e.rationale && (t += " rationale \"" + s(e.rationale) + "\"\n"), t += "}\n", t;
|
|
5589
5702
|
};
|
|
5590
5703
|
//#endregion
|
|
5591
5704
|
//#region src/ser-des/config/testPointSet.ts
|
|
5592
|
-
function
|
|
5705
|
+
function ma(e) {
|
|
5593
5706
|
let t = {}, r = n(e), o = 0;
|
|
5594
5707
|
for (; o < r.length;) {
|
|
5595
5708
|
let e = P(r[o++]);
|
|
@@ -5609,7 +5722,7 @@ function oa(e) {
|
|
|
5609
5722
|
}
|
|
5610
5723
|
return t;
|
|
5611
5724
|
}
|
|
5612
|
-
function
|
|
5725
|
+
function ha(e) {
|
|
5613
5726
|
let t = [], r = n(e), o = 0;
|
|
5614
5727
|
for (; o < r.length;) {
|
|
5615
5728
|
if (r[o++] !== "point") {
|
|
@@ -5634,7 +5747,7 @@ function sa(e) {
|
|
|
5634
5747
|
}
|
|
5635
5748
|
return t;
|
|
5636
5749
|
}
|
|
5637
|
-
var
|
|
5750
|
+
var ga = function(e, t) {
|
|
5638
5751
|
let n = {
|
|
5639
5752
|
id: e,
|
|
5640
5753
|
description: "",
|
|
@@ -5652,16 +5765,16 @@ var ca = function(e, t) {
|
|
|
5652
5765
|
let e = C(t, r, a, i);
|
|
5653
5766
|
T(n, e) || (n.refs ??= []).push(e);
|
|
5654
5767
|
} else if (e === "corresponds") (n.correspondences ??= []).push(O(t, r, a));
|
|
5655
|
-
else if (e === "cardinality") n.cardinality =
|
|
5768
|
+
else if (e === "cardinality") n.cardinality = ma(i(t()));
|
|
5656
5769
|
else if (e === "repetitions_per_point") n.repetitionsPerPoint = Number(a(t()));
|
|
5657
|
-
else if (e === "points") n.points =
|
|
5770
|
+
else if (e === "points") n.points = ha(i(t()));
|
|
5658
5771
|
else return !1;
|
|
5659
5772
|
return !0;
|
|
5660
5773
|
}, {
|
|
5661
5774
|
construct: "test_point_set",
|
|
5662
5775
|
id: e
|
|
5663
5776
|
}), (t) => (t.testPointSets[e] = n, t);
|
|
5664
|
-
},
|
|
5777
|
+
}, _a = function(e) {
|
|
5665
5778
|
let t = "test_point_set " + e.id + " {\n";
|
|
5666
5779
|
e.description && (t += " description \"" + s(e.description) + "\"\n");
|
|
5667
5780
|
let n = e.sourceRefs && e.sourceRefs.length > 0 ? e.sourceRefs : e.source && (e.source.doc || e.source.clause) ? [e.source] : [];
|
|
@@ -5685,7 +5798,7 @@ var ca = function(e, t) {
|
|
|
5685
5798
|
t += " }\n";
|
|
5686
5799
|
}
|
|
5687
5800
|
return t += "}\n", t;
|
|
5688
|
-
},
|
|
5801
|
+
}, va = (e, t) => {
|
|
5689
5802
|
let n = {
|
|
5690
5803
|
id: e,
|
|
5691
5804
|
title: "",
|
|
@@ -5704,7 +5817,7 @@ var ca = function(e, t) {
|
|
|
5704
5817
|
construct: "common_test_condition",
|
|
5705
5818
|
id: e
|
|
5706
5819
|
}), (t) => (t.commonTestConditions[e] = n, t);
|
|
5707
|
-
},
|
|
5820
|
+
}, ya = function(e) {
|
|
5708
5821
|
let t = "common_test_condition " + e.id + " {\n";
|
|
5709
5822
|
return e.title && (t += " title \"" + s(e.title) + "\"\n"), e.reference && (t += " reference \"" + s(e.reference) + "\"\n"), e.description && (t += " description \"" + s(e.description) + "\"\n"), e.source && (e.source.doc || e.source.clause) && (t += " source {\n", e.source.doc && (t += " doc \"" + s(e.source.doc) + "\"\n"), e.source.clause && (t += " clause \"" + s(e.source.clause) + "\"\n"), t += " }\n"), t += "}\n", t;
|
|
5710
5823
|
};
|
|
@@ -5713,7 +5826,7 @@ var ca = function(e, t) {
|
|
|
5713
5826
|
function H(e) {
|
|
5714
5827
|
return n(a(e)).map(P).map(a).filter((e) => e.length > 0);
|
|
5715
5828
|
}
|
|
5716
|
-
function
|
|
5829
|
+
function ba(e) {
|
|
5717
5830
|
let t = {
|
|
5718
5831
|
verdict: "",
|
|
5719
5832
|
op: "",
|
|
@@ -5727,7 +5840,7 @@ function fa(e) {
|
|
|
5727
5840
|
}
|
|
5728
5841
|
return t;
|
|
5729
5842
|
}
|
|
5730
|
-
function
|
|
5843
|
+
function xa(e) {
|
|
5731
5844
|
let t = {
|
|
5732
5845
|
expression: "",
|
|
5733
5846
|
uses: [],
|
|
@@ -5758,11 +5871,11 @@ function pa(e) {
|
|
|
5758
5871
|
t === "kind" ? e.kind = a(s[c++]) : t === "unit" ? e.unit = a(s[c++]) : i(s[c++]);
|
|
5759
5872
|
}
|
|
5760
5873
|
t.quantity = e;
|
|
5761
|
-
} else e === "accepts" ? t.accepts =
|
|
5874
|
+
} else e === "accepts" ? t.accepts = ba(i(r[o++])) : e === "acceptance" ? t.acceptance = Yr(i(r[o++])) : e === "source_discrepancy" ? t.sourceDiscrepancy = A(i(r[o++])) : o = y(r, o, e);
|
|
5762
5875
|
}
|
|
5763
5876
|
return t;
|
|
5764
5877
|
}
|
|
5765
|
-
function
|
|
5878
|
+
function Sa(e) {
|
|
5766
5879
|
let t = [], r = n(e), o = 0;
|
|
5767
5880
|
for (; o < r.length;) {
|
|
5768
5881
|
if (r[o++] !== "subject") {
|
|
@@ -5786,7 +5899,7 @@ function ma(e) {
|
|
|
5786
5899
|
}
|
|
5787
5900
|
return t;
|
|
5788
5901
|
}
|
|
5789
|
-
function
|
|
5902
|
+
function Ca(e) {
|
|
5790
5903
|
let t = [], r = n(e), o = 0;
|
|
5791
5904
|
for (; o < r.length;) {
|
|
5792
5905
|
if (r[o++] !== "param") {
|
|
@@ -5829,7 +5942,7 @@ function ha(e) {
|
|
|
5829
5942
|
}
|
|
5830
5943
|
return t;
|
|
5831
5944
|
}
|
|
5832
|
-
var
|
|
5945
|
+
var wa = function(e, t) {
|
|
5833
5946
|
let o = {
|
|
5834
5947
|
id: e,
|
|
5835
5948
|
name: "",
|
|
@@ -5856,9 +5969,9 @@ var ga = function(e, t) {
|
|
|
5856
5969
|
else if (e === "statement") o.statement = a(s[c++]);
|
|
5857
5970
|
else if (e === "guidance") o.guidance = a(s[c++]);
|
|
5858
5971
|
else if (e === "binds_to") o.bindsTo = H(s[c++]);
|
|
5859
|
-
else if (e === "subjects") o.subjects =
|
|
5860
|
-
else if (e === "parameters") o.parameters =
|
|
5861
|
-
else if (e === "limit") o.limit =
|
|
5972
|
+
else if (e === "subjects") o.subjects = Sa(i(s[c++]));
|
|
5973
|
+
else if (e === "parameters") o.parameters = Ca(i(s[c++]));
|
|
5974
|
+
else if (e === "limit") o.limit = xa(i(s[c++]));
|
|
5862
5975
|
else if (e === "applicability") o.applicability = L(i(s[c++]));
|
|
5863
5976
|
else if (e === "channel") o.channel = a(s[c++]);
|
|
5864
5977
|
else if (e === "report_row") o.reportRow = a(s[c++]);
|
|
@@ -5886,7 +5999,7 @@ var ga = function(e, t) {
|
|
|
5886
5999
|
}
|
|
5887
6000
|
return (t) => (t.requirements[e] = o, t);
|
|
5888
6001
|
};
|
|
5889
|
-
function
|
|
6002
|
+
function Ta(e) {
|
|
5890
6003
|
let t = " limit {\n";
|
|
5891
6004
|
if (e.expression && (t += " expression \"" + s(e.expression) + "\"\n"), e.uses.length > 0 && (t += " uses { " + e.uses.join(" ") + " }\n"), e.modality && (t += " modality " + e.modality + "\n"), e.relativeTo && (t += " relative_to " + e.relativeTo + "\n"), e.notes && (t += " notes \"" + s(e.notes) + "\"\n"), e.quantity) {
|
|
5892
6005
|
let n = " quantity {";
|
|
@@ -5898,7 +6011,7 @@ function _a(e) {
|
|
|
5898
6011
|
}
|
|
5899
6012
|
return e.acceptance && (t += Xr(e.acceptance, " ") + "\n"), e.sourceDiscrepancy && (t += j(e.sourceDiscrepancy, " ") + "\n"), t += " }\n", t;
|
|
5900
6013
|
}
|
|
5901
|
-
var
|
|
6014
|
+
var Ea = function(e) {
|
|
5902
6015
|
let t = "requirement " + e.id + " {\n";
|
|
5903
6016
|
if (e.name && (t += " name \"" + s(e.name) + "\"\n"), e.statement && (t += " statement \"" + s(e.statement) + "\"\n"), e.guidance && (t += " guidance \"" + s(e.guidance) + "\"\n"), e.bindsTo.length > 0 && (t += " binds_to { " + e.bindsTo.join(" ") + " }\n"), e.subjects.length > 0) {
|
|
5904
6017
|
t += " subjects { ";
|
|
@@ -5913,7 +6026,7 @@ var va = function(e) {
|
|
|
5913
6026
|
}
|
|
5914
6027
|
t += " }\n";
|
|
5915
6028
|
}
|
|
5916
|
-
if (e.limit && (t +=
|
|
6029
|
+
if (e.limit && (t += Ta(e.limit)), e.applicability.length > 0 && (t += " applicability {\n " + R(e.applicability).trim() + "\n }\n"), e.channel && (t += " channel " + e.channel + "\n"), e.reportRow && (t += " report_row " + e.reportRow + "\n"), e.obligation && (t += " obligation " + e.obligation + "\n"), e.acceptanceCriteria && (t += " acceptance_criteria {\n " + e.acceptanceCriteria + "\n }\n"), e.verificationMethod) {
|
|
5917
6030
|
let n = " verification { method " + e.verificationMethod;
|
|
5918
6031
|
e.verificationDescription && (n += " description \"" + s(e.verificationDescription) + "\""), t += n + " }\n";
|
|
5919
6032
|
}
|
|
@@ -5921,7 +6034,7 @@ var va = function(e) {
|
|
|
5921
6034
|
for (let n of e.sourceRefs ?? (e.source && (e.source.doc || e.source.clause) ? [e.source] : [])) t += E(n, " ", s);
|
|
5922
6035
|
for (let n of e.refs ?? []) t += " ref " + n.predicate + " \"" + s(n.target) + "\"" + (n.note ? " { note \"" + s(n.note) + "\" }" : "") + "\n";
|
|
5923
6036
|
return t += k(e.correspondences, " ", s, N), t += "}\n", t;
|
|
5924
|
-
},
|
|
6037
|
+
}, Da = function(e, t) {
|
|
5925
6038
|
let n = {
|
|
5926
6039
|
id: e,
|
|
5927
6040
|
name: "",
|
|
@@ -5936,43 +6049,43 @@ var va = function(e) {
|
|
|
5936
6049
|
e === "name" ? n.name = a(o[s++]) : e === "title" ? n.title = a(o[s++]) : e === "description" ? n.description = a(o[s++]) : e === "subject" ? n.subject = a(o[s++]) : e === "guidance" ? n.guidance = a(o[s++]) : e === "applicability" ? n.applicability = L(i(o[s++])) : e === "dependencies" ? n.dependencies = H(o[s++]) : e === "reference" ? n.referenceIds = H(o[s++]) : s = y(o, s, e);
|
|
5937
6050
|
}
|
|
5938
6051
|
return (t) => (t.requirementClasses[e] = n, t);
|
|
5939
|
-
},
|
|
6052
|
+
}, Oa = function(e) {
|
|
5940
6053
|
let t = "requirement_class " + e.id + " {\n";
|
|
5941
6054
|
return e.name && (t += " name \"" + s(e.name) + "\"\n"), e.subject && (t += " subject \"" + s(e.subject) + "\"\n"), e.guidance && (t += " guidance \"" + s(e.guidance) + "\"\n"), e.applicability && e.applicability.length > 0 && (t += " applicability {\n " + R(e.applicability).trim() + "\n }\n"), e.dependencies.length > 0 && (t += " dependencies { " + e.dependencies.join(" ") + " }\n"), e.referenceIds.length > 0 && (t += " reference { " + e.referenceIds.join(" ") + " }\n"), t += "}\n", t;
|
|
5942
|
-
},
|
|
6055
|
+
}, ka = {
|
|
5943
6056
|
keyword: "requirement",
|
|
5944
6057
|
field: "requirements",
|
|
5945
6058
|
takesID: !0,
|
|
5946
|
-
parse:
|
|
5947
|
-
dump:
|
|
5948
|
-
},
|
|
6059
|
+
parse: wa,
|
|
6060
|
+
dump: Ea
|
|
6061
|
+
}, Aa = {
|
|
5949
6062
|
keyword: "requirement_class",
|
|
5950
6063
|
field: "requirementClasses",
|
|
5951
6064
|
takesID: !0,
|
|
5952
|
-
parse:
|
|
5953
|
-
dump:
|
|
6065
|
+
parse: Da,
|
|
6066
|
+
dump: Oa
|
|
5954
6067
|
};
|
|
5955
6068
|
//#endregion
|
|
5956
6069
|
//#region src/ser-des/config/packageManifest.ts
|
|
5957
6070
|
function U(e) {
|
|
5958
6071
|
return n(a(e)).map(a).filter((e) => e.length > 0);
|
|
5959
6072
|
}
|
|
5960
|
-
var
|
|
6073
|
+
var ja = [
|
|
5961
6074
|
"core",
|
|
5962
6075
|
"module",
|
|
5963
6076
|
"rec",
|
|
5964
6077
|
"product_reference",
|
|
5965
6078
|
"certification_program"
|
|
5966
|
-
],
|
|
6079
|
+
], Ma = [
|
|
5967
6080
|
"current",
|
|
5968
6081
|
"preview",
|
|
5969
6082
|
"superseded",
|
|
5970
6083
|
"withdrawn"
|
|
5971
6084
|
];
|
|
5972
|
-
function
|
|
6085
|
+
function Na(e) {
|
|
5973
6086
|
return e.startsWith("{") ? U(e) : [a(e)];
|
|
5974
6087
|
}
|
|
5975
|
-
var
|
|
6088
|
+
var Pa = function(e) {
|
|
5976
6089
|
let t = {
|
|
5977
6090
|
id: "",
|
|
5978
6091
|
title: "",
|
|
@@ -6009,7 +6122,7 @@ var Ea = function(e) {
|
|
|
6009
6122
|
t.uses = e, Object.keys(n).length > 0 && (t.usePins = n);
|
|
6010
6123
|
} else if (e === "kind") {
|
|
6011
6124
|
let e = a(r[o++]);
|
|
6012
|
-
if (!
|
|
6125
|
+
if (!ja.includes(e)) throw Error(`Parsing error: package: Expected kind ${ja.join("|")}, got "${e}"`);
|
|
6013
6126
|
t.kind = e;
|
|
6014
6127
|
} else if (e === "manufacturer") t.manufacturer = a(r[o++]);
|
|
6015
6128
|
else if (e === "product") t.product = a(r[o++]);
|
|
@@ -6026,9 +6139,9 @@ var Ea = function(e) {
|
|
|
6026
6139
|
else if (e === "provides") t.provides = U(r[o++]);
|
|
6027
6140
|
else if (e === "requires") t.requires = U(r[o++]);
|
|
6028
6141
|
else if (e === "waives") t.waives = U(r[o++]);
|
|
6029
|
-
else if (e === "supersedes") t.supersedes =
|
|
6030
|
-
else if (e === "replaces") t.replaces =
|
|
6031
|
-
else if (e === "superseded_by") t.supersededBy =
|
|
6142
|
+
else if (e === "supersedes") t.supersedes = Na(r[o++]);
|
|
6143
|
+
else if (e === "replaces") t.replaces = Na(r[o++]);
|
|
6144
|
+
else if (e === "superseded_by") t.supersededBy = Na(r[o++]);
|
|
6032
6145
|
else if (e === "validity") {
|
|
6033
6146
|
let e = n(i(r[o++])), s = { from: "" }, c = 0;
|
|
6034
6147
|
for (; c < e.length;) {
|
|
@@ -6039,7 +6152,7 @@ var Ea = function(e) {
|
|
|
6039
6152
|
t.validity = s;
|
|
6040
6153
|
} else if (e === "status") {
|
|
6041
6154
|
let e = a(r[o++]);
|
|
6042
|
-
if (!
|
|
6155
|
+
if (!Ma.includes(e)) throw Error(`Parsing error: package: Expected status ${Ma.join("|")}, got "${e}"`);
|
|
6043
6156
|
t.status = e;
|
|
6044
6157
|
} else if (e === "default_spelling" || e === "defaultSpelling") t.defaultSpelling = a(r[o++]);
|
|
6045
6158
|
else if (e === "spellings") t.spellings = U(r[o++]);
|
|
@@ -6059,13 +6172,13 @@ var Ea = function(e) {
|
|
|
6059
6172
|
}
|
|
6060
6173
|
return (e) => (e.packageManifest = t, e);
|
|
6061
6174
|
};
|
|
6062
|
-
function
|
|
6175
|
+
function Fa(e) {
|
|
6063
6176
|
let t = "package {\n";
|
|
6064
6177
|
e.id && (t += " id " + e.id + "\n"), e.kind && (t += " kind " + e.kind + "\n"), e.manufacturer && (t += " manufacturer \"" + e.manufacturer.replace(/\\/g, "\\\\").replace(/"/g, "\\\"") + "\"\n"), e.product && (t += " product \"" + e.product.replace(/\\/g, "\\\\").replace(/"/g, "\\\"") + "\"\n"), e.mapsTo && e.mapsTo.length > 0 && (t += " maps_to { " + e.mapsTo.join(" ") + " }\n");
|
|
6065
6178
|
for (let n of e.refs ?? []) t += " ref " + n.predicate + " \"" + n.target.replace(/\\/g, "\\\\").replace(/"/g, "\\\"") + "\"" + (n.note ? " { note \"" + n.note.replace(/\\/g, "\\\\").replace(/"/g, "\\\"") + "\" }" : "") + "\n";
|
|
6066
6179
|
return t += k(e.correspondences, " ", s, N), e.schemeType && (t += " scheme_type " + e.schemeType + "\n"), e.licenseKey && (t += " license_key \"" + e.licenseKey.replace(/\\/g, "\\\\").replace(/"/g, "\\\"") + "\"\n"), e.licenseHolder && (t += " license_holder \"" + e.licenseHolder.replace(/\\/g, "\\\\").replace(/"/g, "\\\"") + "\"\n"), e.title && (t += " title \"" + e.title.replace(/\\/g, "\\\\").replace(/"/g, "\\\"") + "\"\n"), e.version && (t += " version \"" + e.version + "\"\n"), e.editions.length > 0 && (t += " editions { " + e.editions.join(" ") + " }\n"), e.baseUrn && (t += " baseUrn \"" + e.baseUrn + "\"\n"), e.extends && (t += " extends " + e.extends + "\n"), e.uses && e.uses.length > 0 && (t += " uses { " + e.uses.map((t) => e.usePins?.[t] ? `${t}@${e.usePins[t]}` : t).join(" ") + " }\n"), e.provides && e.provides.length > 0 && (t += " provides { " + e.provides.join(" ") + " }\n"), e.requires && e.requires.length > 0 && (t += " requires { " + e.requires.join(" ") + " }\n"), e.waives && e.waives.length > 0 && (t += " waives { " + e.waives.join(" ") + " }\n"), e.supersedes && e.supersedes.length > 0 && (t += " supersedes { " + e.supersedes.join(" ") + " }\n"), e.replaces && e.replaces.length > 0 && (t += " replaces { " + e.replaces.join(" ") + " }\n"), e.supersededBy && e.supersededBy.length > 0 && (t += " superseded_by { " + e.supersededBy.join(" ") + " }\n"), e.validity && e.validity.from && (t += " validity { from " + e.validity.from + (e.validity.to ? " to " + e.validity.to : "") + " }\n"), e.status && (t += " status " + e.status + "\n"), e.defaultSpelling && (t += " default_spelling " + e.defaultSpelling + "\n"), e.spellings && e.spellings.length > 0 && (t += " spellings { " + e.spellings.join(" ") + " }\n"), e.description && (t += " description \"" + e.description.replace(/\\/g, "\\\\").replace(/"/g, "\\\"") + "\"\n"), e.source && (t += " source { collection \"" + e.source.collection + "\" parts { " + e.source.parts.join(" ") + " } }\n"), t += "}\n", t;
|
|
6067
6180
|
}
|
|
6068
|
-
var
|
|
6181
|
+
var Ia = {
|
|
6069
6182
|
keyword: "conformance_class",
|
|
6070
6183
|
field: "conformanceClasses",
|
|
6071
6184
|
takesID: !0,
|
|
@@ -6098,28 +6211,28 @@ var Oa = {
|
|
|
6098
6211
|
}
|
|
6099
6212
|
return e.dependencies.length > 0 && (t += " dependencies { " + e.dependencies.join(" ") + " }\n"), e.referenceIds.length > 0 && (t += " reference { " + e.referenceIds.join(" ") + " }\n"), t += "}\n", t;
|
|
6100
6213
|
}
|
|
6101
|
-
},
|
|
6214
|
+
}, La = [
|
|
6102
6215
|
"query",
|
|
6103
6216
|
"subscribe",
|
|
6104
6217
|
"invoke"
|
|
6105
|
-
],
|
|
6218
|
+
], Ra = [
|
|
6106
6219
|
"public",
|
|
6107
6220
|
"registered",
|
|
6108
6221
|
"authority"
|
|
6109
|
-
],
|
|
6222
|
+
], za = /* @__PURE__ */ new Set([
|
|
6110
6223
|
"kind",
|
|
6111
6224
|
"serves",
|
|
6112
6225
|
"does",
|
|
6113
6226
|
"payload"
|
|
6114
6227
|
]);
|
|
6115
|
-
function
|
|
6228
|
+
function Ba(e, t) {
|
|
6116
6229
|
let r = e[t] ?? "";
|
|
6117
6230
|
if (r.startsWith("{")) return {
|
|
6118
6231
|
names: n(i(r)).flatMap((e) => e.split(",")).map((e) => a(e.trim())).filter((e) => e.length > 0),
|
|
6119
6232
|
next: t + 1
|
|
6120
6233
|
};
|
|
6121
6234
|
let o = [], s = t;
|
|
6122
|
-
for (; s < e.length && !
|
|
6235
|
+
for (; s < e.length && !za.has(e[s]) && !e[s].startsWith("{");) {
|
|
6123
6236
|
for (let t of e[s].split(",")) {
|
|
6124
6237
|
let e = a(t.trim());
|
|
6125
6238
|
e && o.push(e);
|
|
@@ -6131,7 +6244,7 @@ function Ma(e, t) {
|
|
|
6131
6244
|
next: s
|
|
6132
6245
|
};
|
|
6133
6246
|
}
|
|
6134
|
-
function
|
|
6247
|
+
function Va(e, t) {
|
|
6135
6248
|
let r = {
|
|
6136
6249
|
name: e,
|
|
6137
6250
|
kind: "",
|
|
@@ -6144,10 +6257,10 @@ function Na(e, t) {
|
|
|
6144
6257
|
if (s > o.length) break;
|
|
6145
6258
|
if (e === "kind") r.kind = a(o[s++] ?? "");
|
|
6146
6259
|
else if (e === "serves") {
|
|
6147
|
-
let e =
|
|
6260
|
+
let e = Ba(o, s);
|
|
6148
6261
|
r.serves = e.names, s = e.next;
|
|
6149
6262
|
} else if (e === "does") {
|
|
6150
|
-
let e =
|
|
6263
|
+
let e = Ba(o, s);
|
|
6151
6264
|
r.does = e.names, s = e.next;
|
|
6152
6265
|
} else if (e === "payload") {
|
|
6153
6266
|
let e = n(i(o[s++] ?? "")), t = {
|
|
@@ -6165,7 +6278,7 @@ function Na(e, t) {
|
|
|
6165
6278
|
}
|
|
6166
6279
|
return r;
|
|
6167
6280
|
}
|
|
6168
|
-
function
|
|
6281
|
+
function Ha(e) {
|
|
6169
6282
|
let t = {}, r = n(e), o = 0;
|
|
6170
6283
|
for (; o < r.length;) {
|
|
6171
6284
|
let e = P(r[o++]);
|
|
@@ -6177,7 +6290,7 @@ function Pa(e) {
|
|
|
6177
6290
|
}
|
|
6178
6291
|
return t;
|
|
6179
6292
|
}
|
|
6180
|
-
function
|
|
6293
|
+
function Ua(e, t) {
|
|
6181
6294
|
let r = {
|
|
6182
6295
|
id: e,
|
|
6183
6296
|
operations: [],
|
|
@@ -6189,19 +6302,19 @@ function Fa(e, t) {
|
|
|
6189
6302
|
if (s > o.length) break;
|
|
6190
6303
|
if (e === "operation") {
|
|
6191
6304
|
let e = P(o[s++] ?? ""), t = s < o.length ? i(o[s++]) : "";
|
|
6192
|
-
e && r.operations.push(
|
|
6193
|
-
} else e === "access" ? r.access =
|
|
6305
|
+
e && r.operations.push(Va(e, t));
|
|
6306
|
+
} else e === "access" ? r.access = Ha(i(o[s++] ?? "")) : e === "profile" ? r.profile = a(o[s++] ?? "") : i(o[s++] ?? "");
|
|
6194
6307
|
}
|
|
6195
6308
|
return r;
|
|
6196
6309
|
}
|
|
6197
|
-
function
|
|
6310
|
+
function Wa(e, t) {
|
|
6198
6311
|
let n = t + "operation " + N(e.name) + " {";
|
|
6199
6312
|
return e.kind && (n += " kind " + N(e.kind)), e.serves.length > 0 && (n += " serves { " + e.serves.map(N).join(" ") + " }"), e.does.length > 0 && (n += " does { " + e.does.map(N).join(" ") + " }"), e.payload && (n += " payload { quantity_kind " + N(e.payload.quantityKind) + " unit " + N(e.payload.unit) + " timestamp " + (e.payload.timestamp ? "true" : "false") + " }"), n + " }\n";
|
|
6200
6313
|
}
|
|
6201
|
-
function
|
|
6314
|
+
function Ga(e, t) {
|
|
6202
6315
|
let n = t + "endpoint " + N(e.id) + " {\n";
|
|
6203
|
-
for (let r of e.operations) n +=
|
|
6204
|
-
let r =
|
|
6316
|
+
for (let r of e.operations) n += Wa(r, t + " ");
|
|
6317
|
+
let r = Ra.filter((t) => (e.access[t] ?? []).length > 0), i = Object.keys(e.access).filter((e) => !Ra.includes(e));
|
|
6205
6318
|
if (r.length + i.length > 0) {
|
|
6206
6319
|
n += t + " access {";
|
|
6207
6320
|
for (let t of [...r, ...i]) n += " " + t + " { " + (e.access[t] ?? []).map(N).join(" ") + " }";
|
|
@@ -6209,7 +6322,7 @@ function La(e, t) {
|
|
|
6209
6322
|
}
|
|
6210
6323
|
return e.profile && (n += t + " profile " + N(e.profile) + "\n"), n + t + "}\n";
|
|
6211
6324
|
}
|
|
6212
|
-
function
|
|
6325
|
+
function Ka(e, t) {
|
|
6213
6326
|
let r = {
|
|
6214
6327
|
aspect: "",
|
|
6215
6328
|
via: "",
|
|
@@ -6228,11 +6341,11 @@ function Ra(e, t) {
|
|
|
6228
6341
|
next: t
|
|
6229
6342
|
};
|
|
6230
6343
|
}
|
|
6231
|
-
function
|
|
6344
|
+
function qa(e, t) {
|
|
6232
6345
|
let n = t + "serve " + N(e.aspect) + " via " + N(e.via);
|
|
6233
6346
|
return e.freshWithin && (n += " { fresh_within " + N(e.freshWithin) + " }"), n + "\n";
|
|
6234
6347
|
}
|
|
6235
|
-
var
|
|
6348
|
+
var Ja = {
|
|
6236
6349
|
keyword: "connector_profile",
|
|
6237
6350
|
field: "connectorProfiles",
|
|
6238
6351
|
takesID: !0,
|
|
@@ -6257,7 +6370,7 @@ var Ba = {
|
|
|
6257
6370
|
};
|
|
6258
6371
|
//#endregion
|
|
6259
6372
|
//#region src/ser-des/config/composition.ts
|
|
6260
|
-
function
|
|
6373
|
+
function Ya(e, t) {
|
|
6261
6374
|
let r = {
|
|
6262
6375
|
id: e,
|
|
6263
6376
|
product: "",
|
|
@@ -6277,7 +6390,7 @@ function Va(e, t) {
|
|
|
6277
6390
|
}
|
|
6278
6391
|
return r;
|
|
6279
6392
|
}
|
|
6280
|
-
function
|
|
6393
|
+
function Xa(e) {
|
|
6281
6394
|
let t = [];
|
|
6282
6395
|
for (let n of e.split("\n")) {
|
|
6283
6396
|
let e = n.trim();
|
|
@@ -6300,7 +6413,7 @@ function Ha(e) {
|
|
|
6300
6413
|
}
|
|
6301
6414
|
return t;
|
|
6302
6415
|
}
|
|
6303
|
-
function
|
|
6416
|
+
function Za(e) {
|
|
6304
6417
|
let t = {
|
|
6305
6418
|
components: [],
|
|
6306
6419
|
decomposition: []
|
|
@@ -6309,8 +6422,8 @@ function Ua(e) {
|
|
|
6309
6422
|
let e = n[a++];
|
|
6310
6423
|
if (e === "component") {
|
|
6311
6424
|
let e = n[a++] ?? "", r = a < n.length ? i(n[a++]) : "";
|
|
6312
|
-
e && t.components.push(
|
|
6313
|
-
} else if (e === "decomposition") t.decomposition =
|
|
6425
|
+
e && t.components.push(Ya(e, r));
|
|
6426
|
+
} else if (e === "decomposition") t.decomposition = Xa(i(n[a++] ?? ""));
|
|
6314
6427
|
else if (e === "revision") {
|
|
6315
6428
|
let e = Number(n[a++] ?? "");
|
|
6316
6429
|
Number.isFinite(e) && (t.revision = e);
|
|
@@ -6318,13 +6431,13 @@ function Ua(e) {
|
|
|
6318
6431
|
}
|
|
6319
6432
|
return t;
|
|
6320
6433
|
}
|
|
6321
|
-
function
|
|
6434
|
+
function Qa(e, t) {
|
|
6322
6435
|
let n = t + "component " + N(e.id) + " {\n";
|
|
6323
6436
|
return n += t + " product " + N(e.product) + "\n", n += t + " endpoint " + N(e.endpoint) + "\n", n += t + " serial " + s(e.serial) + "\n", n += t + " certificate " + (e.certificate === null ? "null" : s(e.certificate)) + "\n", n + t + "}\n";
|
|
6324
6437
|
}
|
|
6325
|
-
function
|
|
6438
|
+
function $a(e, t) {
|
|
6326
6439
|
let n = t + "composed_of {\n";
|
|
6327
|
-
for (let r of e.components) n +=
|
|
6440
|
+
for (let r of e.components) n += Qa(r, t + " ");
|
|
6328
6441
|
if (e.decomposition.length > 0) {
|
|
6329
6442
|
n += t + " decomposition {\n";
|
|
6330
6443
|
for (let r of e.decomposition) n += t + " " + N(r.register) + " -> " + (r.component === "composite" ? "rule " + N(r.rule ?? "") : N(r.component) + "." + N(r.componentRegister ?? "")) + "\n";
|
|
@@ -6348,7 +6461,7 @@ function K(e, t, n) {
|
|
|
6348
6461
|
function q(e) {
|
|
6349
6462
|
return n(a(e)).map(a).filter((e) => e.length > 0);
|
|
6350
6463
|
}
|
|
6351
|
-
var
|
|
6464
|
+
var eo = function(e, t) {
|
|
6352
6465
|
let o = {
|
|
6353
6466
|
id: e,
|
|
6354
6467
|
extends: "",
|
|
@@ -6371,9 +6484,9 @@ var Ka = function(e, t) {
|
|
|
6371
6484
|
if (c >= s.length) break;
|
|
6372
6485
|
if (e === "extends") o.extends = a(s[c++]);
|
|
6373
6486
|
else if (e === "measurand_kind") o.measurandKind = a(s[c++]);
|
|
6374
|
-
else if (e === "measurand") o.measurand =
|
|
6375
|
-
else if (e === "component") o.components.push(
|
|
6376
|
-
else if (e === "structure") o.structure.push(
|
|
6487
|
+
else if (e === "measurand") o.measurand = to(i(s[c++]));
|
|
6488
|
+
else if (e === "component") o.components.push(no(a(s[c++]), i(s[c++])));
|
|
6489
|
+
else if (e === "structure") o.structure.push(ro(a(s[c++]), i(s[c++])));
|
|
6377
6490
|
else if (e === "definition") o.definition = a(s[c++]);
|
|
6378
6491
|
else if (e === "note") o.note = a(s[c++]);
|
|
6379
6492
|
else if (e === "source") {
|
|
@@ -6390,7 +6503,7 @@ var Ka = function(e, t) {
|
|
|
6390
6503
|
e === "name" ? r.name = a(l[u++]) : e === "definition" ? r.definition = a(l[u++]) : e === "note" ? r.note = a(l[u++]) : e === "source" ? r.source = I(i(l[u++])) : i(l[u++]);
|
|
6391
6504
|
}
|
|
6392
6505
|
o.variants.push(r);
|
|
6393
|
-
} else if (e === "dimension") o.dimensions.push(
|
|
6506
|
+
} else if (e === "dimension") o.dimensions.push(io(a(s[c++]), i(s[c++])));
|
|
6394
6507
|
else if (e === "per_channel") o.perChannel = a(s[c++]);
|
|
6395
6508
|
else if (e === "family_criteria") o.familyCriteria = q(s[c++]);
|
|
6396
6509
|
else if (e === "family") {
|
|
@@ -6417,7 +6530,7 @@ var Ka = function(e, t) {
|
|
|
6417
6530
|
if (t >= e.length) break;
|
|
6418
6531
|
n === "dimensions" ? o.familyDefaultDimensions = G(e[t++]) : n === "parameters" ? o.familyDefaultParameters = G(e[t++]) : i(e[t++]);
|
|
6419
6532
|
}
|
|
6420
|
-
} else if (e === "model_group") o.modelGroup =
|
|
6533
|
+
} else if (e === "model_group") o.modelGroup = so(i(s[c++]));
|
|
6421
6534
|
else if (e === "reference") o.referenceIds = q(s[c++]);
|
|
6422
6535
|
else if (e === "ref") {
|
|
6423
6536
|
let e = S(s, c, a, i);
|
|
@@ -6429,7 +6542,7 @@ var Ka = function(e, t) {
|
|
|
6429
6542
|
}
|
|
6430
6543
|
return (t) => (t.instruments[e] = o, t);
|
|
6431
6544
|
};
|
|
6432
|
-
function
|
|
6545
|
+
function to(e) {
|
|
6433
6546
|
let t = {
|
|
6434
6547
|
kind: "",
|
|
6435
6548
|
description: "",
|
|
@@ -6456,7 +6569,7 @@ function qa(e) {
|
|
|
6456
6569
|
}
|
|
6457
6570
|
return t;
|
|
6458
6571
|
}
|
|
6459
|
-
function
|
|
6572
|
+
function no(e, t) {
|
|
6460
6573
|
let r = {
|
|
6461
6574
|
id: e,
|
|
6462
6575
|
classId: "",
|
|
@@ -6470,7 +6583,7 @@ function Ja(e, t) {
|
|
|
6470
6583
|
}
|
|
6471
6584
|
return r;
|
|
6472
6585
|
}
|
|
6473
|
-
function
|
|
6586
|
+
function ro(e, t) {
|
|
6474
6587
|
let r = {
|
|
6475
6588
|
id: e,
|
|
6476
6589
|
predicate: "",
|
|
@@ -6498,7 +6611,7 @@ function Ya(e, t) {
|
|
|
6498
6611
|
}
|
|
6499
6612
|
return r;
|
|
6500
6613
|
}
|
|
6501
|
-
function
|
|
6614
|
+
function io(e, t) {
|
|
6502
6615
|
let r = {
|
|
6503
6616
|
id: e,
|
|
6504
6617
|
label: "",
|
|
@@ -6521,7 +6634,7 @@ function Xa(e, t) {
|
|
|
6521
6634
|
} else if (t === "label_separator") r.labelSeparator = a(o[s++]);
|
|
6522
6635
|
else if (t === "description") r.description = a(o[s++]);
|
|
6523
6636
|
else if (t === "reference" || t === "source") r.source = I(i(o[s++]));
|
|
6524
|
-
else if (t === "values") r.values =
|
|
6637
|
+
else if (t === "values") r.values = ao(i(o[s++]));
|
|
6525
6638
|
else if (t === "values_of") r.valuesOf = a(o[s++]);
|
|
6526
6639
|
else if (t === "ref") {
|
|
6527
6640
|
let e = S(o, s, a, i);
|
|
@@ -6530,7 +6643,7 @@ function Xa(e, t) {
|
|
|
6530
6643
|
}
|
|
6531
6644
|
return r;
|
|
6532
6645
|
}
|
|
6533
|
-
function
|
|
6646
|
+
function ao(e) {
|
|
6534
6647
|
let t = [], r = n(e), o = 0;
|
|
6535
6648
|
for (; o < r.length;) {
|
|
6536
6649
|
let e = P(r[o++]);
|
|
@@ -6573,7 +6686,7 @@ function Za(e) {
|
|
|
6573
6686
|
}
|
|
6574
6687
|
return t;
|
|
6575
6688
|
}
|
|
6576
|
-
function
|
|
6689
|
+
function oo(e, t) {
|
|
6577
6690
|
let n = t + " ", r = t + " ", i = t + "dimension " + e.id + " {\n";
|
|
6578
6691
|
if (e.label && (i += n + "label \"" + s(e.label) + "\"\n"), e.scope && (i += n + "scope " + e.scope + "\n"), e.cardinality && (i += n + "cardinality " + e.cardinality + "\n"), e.labelSeparator && (i += n + "label_separator \"" + s(e.labelSeparator) + "\"\n"), e.description && (i += n + "description \"" + s(e.description) + "\"\n"), i += W("reference", e.source, n), e.valuesOf && (i += n + "values_of " + e.valuesOf + "\n"), e.values.length > 0) {
|
|
6579
6692
|
i += n + "values {\n";
|
|
@@ -6597,7 +6710,7 @@ function Qa(e, t) {
|
|
|
6597
6710
|
}
|
|
6598
6711
|
return i += w(e.refs, n, s), i += t + "}\n", i;
|
|
6599
6712
|
}
|
|
6600
|
-
function
|
|
6713
|
+
function so(e) {
|
|
6601
6714
|
let t = {
|
|
6602
6715
|
definition: "",
|
|
6603
6716
|
identicalCharacteristics: [],
|
|
@@ -6624,7 +6737,7 @@ function $a(e) {
|
|
|
6624
6737
|
}
|
|
6625
6738
|
return t;
|
|
6626
6739
|
}
|
|
6627
|
-
var
|
|
6740
|
+
var co = function(e) {
|
|
6628
6741
|
let t = "instrument " + e.id + " {\n";
|
|
6629
6742
|
if (e.extends && (t += " extends " + e.extends + "\n"), e.perChannel && (t += " per_channel " + e.perChannel + "\n"), e.measurandKind && (t += " measurand_kind " + e.measurandKind + "\n"), e.measurand) {
|
|
6630
6743
|
let n = e.measurand;
|
|
@@ -6647,7 +6760,7 @@ var eo = function(e) {
|
|
|
6647
6760
|
let e = " variant " + n.id + " { ";
|
|
6648
6761
|
n.name && (e += "name \"" + s(n.name) + "\" "), e += "definition \"" + s(n.definition) + "\" ", n.note && (e += "note \"" + s(n.note) + "\" "), n.source && (n.source.doc || n.source.clause) && (e += "source { doc \"" + s(n.source.doc) + "\" clause \"" + s(n.source.clause) + "\" } "), t += e + "}\n";
|
|
6649
6762
|
}
|
|
6650
|
-
for (let n of e.dimensions) t +=
|
|
6763
|
+
for (let n of e.dimensions) t += oo(n, " ");
|
|
6651
6764
|
if ((e.familyMetamodelClass || e.familyDefinition || e.familyNote || e.familySource && (e.familySource.doc || e.familySource.clause)) && (t += " family {\n", e.familyMetamodelClass && (t += " metamodel_class " + e.familyMetamodelClass + "\n"), e.familyDefinition && (t += " definition \"" + s(e.familyDefinition) + "\"\n"), e.familyNote && (t += " note \"" + s(e.familyNote) + "\"\n"), e.familySource && (e.familySource.doc || e.familySource.clause) && (t += E(e.familySource, " ", s)), t += " }\n"), e.familyCriteria.length > 0) {
|
|
6652
6765
|
t += " family_criteria {\n";
|
|
6653
6766
|
for (let n of e.familyCriteria) t += " \"" + s(n) + "\"\n";
|
|
@@ -6663,7 +6776,7 @@ var eo = function(e) {
|
|
|
6663
6776
|
for (let e of n) t += E(e, " ", s);
|
|
6664
6777
|
return t += w(e.refs, " ", s), t += k(e.correspondences, " ", s, N), t += K("reference", e.referenceIds, " "), t += "}\n", t;
|
|
6665
6778
|
};
|
|
6666
|
-
function
|
|
6779
|
+
function lo(e) {
|
|
6667
6780
|
let t = {
|
|
6668
6781
|
key: "",
|
|
6669
6782
|
value: "",
|
|
@@ -6695,13 +6808,13 @@ function to(e) {
|
|
|
6695
6808
|
}
|
|
6696
6809
|
return t;
|
|
6697
6810
|
}
|
|
6698
|
-
function
|
|
6811
|
+
function uo(e) {
|
|
6699
6812
|
let t = " pair_list {\n";
|
|
6700
6813
|
t += " key " + N(e.key) + "\n", t += " value " + N(e.value) + "\n", e.keyDimension && (t += " key_dimension " + N(e.keyDimension) + "\n");
|
|
6701
6814
|
for (let n of e.components) t += " component " + N(n.id) + " {\n", n.name && (t += " name \"" + s(n.name) + "\"\n"), n.source && (n.source.doc || n.source.clause) && (t += " source {\n", n.source.doc && (t += " doc \"" + s(n.source.doc) + "\"\n"), n.source.clause && (t += " clause \"" + s(n.source.clause) + "\"\n"), t += " }\n"), t += " }\n";
|
|
6702
6815
|
return t += " }\n", t;
|
|
6703
6816
|
}
|
|
6704
|
-
var
|
|
6817
|
+
var fo = function(e, t) {
|
|
6705
6818
|
let n = {
|
|
6706
6819
|
id: e,
|
|
6707
6820
|
symbol: "",
|
|
@@ -6732,7 +6845,7 @@ var ro = function(e, t) {
|
|
|
6732
6845
|
} else if (e === "quantity_kind") n.quantityKind = a(o[s++]);
|
|
6733
6846
|
else if (e === "unit") n.unit = a(o[s++]);
|
|
6734
6847
|
else if (e === "value_type") n.valueType = a(o[s++]);
|
|
6735
|
-
else if (e === "pair_list") n.pairList =
|
|
6848
|
+
else if (e === "pair_list") n.pairList = lo(i(o[s++]));
|
|
6736
6849
|
else if (e === "origin") n.origin = a(o[s++]);
|
|
6737
6850
|
else if (e === "scope") n.scope = a(o[s++]);
|
|
6738
6851
|
else if (e === "category") n.category = a(o[s++]);
|
|
@@ -6751,14 +6864,14 @@ var ro = function(e, t) {
|
|
|
6751
6864
|
} else s = y(o, s, e);
|
|
6752
6865
|
}
|
|
6753
6866
|
return (t) => (t.attributeDefinitions[e] = n, t);
|
|
6754
|
-
},
|
|
6867
|
+
}, po = function(e) {
|
|
6755
6868
|
let t = "attribute_definition " + e.id + " {\n";
|
|
6756
6869
|
e.symbol && (t += " symbol \"" + s(e.symbol) + "\"\n"), e.name && (t += " name \"" + s(e.name) + "\"\n"), e.definition && (t += " definition \"" + s(e.definition) + "\"\n");
|
|
6757
6870
|
let n = e.sourceRefs && e.sourceRefs.length > 0 ? e.sourceRefs : e.source ? [e.source] : [];
|
|
6758
6871
|
for (let e of n) t += E(e, " ", s);
|
|
6759
6872
|
for (let n of e.referenceIds) t += " ref cites \"" + s(n) + "\"\n";
|
|
6760
|
-
return t += w(e.refs, " ", s), t += k(e.correspondences, " ", s, N), e.quantityKind && (t += " quantity_kind " + e.quantityKind + "\n"), e.unit && (t += " unit \"" + s(e.unit) + "\"\n"), e.valueType && (t += " value_type " + e.valueType + "\n"), e.pairList && (t +=
|
|
6761
|
-
},
|
|
6873
|
+
return t += w(e.refs, " ", s), t += k(e.correspondences, " ", s, N), e.quantityKind && (t += " quantity_kind " + e.quantityKind + "\n"), e.unit && (t += " unit \"" + s(e.unit) + "\"\n"), e.valueType && (t += " value_type " + e.valueType + "\n"), e.pairList && (t += uo(e.pairList)), e.origin && (t += " origin " + e.origin + "\n"), e.scope && (t += " scope " + e.scope + "\n"), e.category && (t += " category " + e.category + "\n"), e.isDimension !== null && e.isDimension !== void 0 && (t += " is_dimension " + (e.isDimension ? "true" : "false") + "\n"), e.enumRef && (t += " enum " + e.enumRef + "\n"), e.enumValues && e.enumValues.length > 0 && (t += " enum_values { " + e.enumValues.map(N).join(" ") + " }\n"), e.irdi && (t += " irdi \"" + s(e.irdi) + "\"\n"), e.derived && (t += " derived \"" + s(e.derived) + "\"\n"), e.note && (t += " note \"" + s(e.note) + "\"\n"), t += "}\n", t;
|
|
6874
|
+
}, mo = function(e, t) {
|
|
6762
6875
|
let n = {
|
|
6763
6876
|
id: e,
|
|
6764
6877
|
label: "",
|
|
@@ -6792,10 +6905,10 @@ var ro = function(e, t) {
|
|
|
6792
6905
|
} else s = y(o, s, e);
|
|
6793
6906
|
}
|
|
6794
6907
|
return (t) => (t.capabilities[e] = n, t);
|
|
6795
|
-
},
|
|
6908
|
+
}, ho = function(e) {
|
|
6796
6909
|
let t = "capability " + e.id + " {\n";
|
|
6797
6910
|
return e.label && (t += " label \"" + s(e.label) + "\"\n"), e.description && (t += " description \"" + s(e.description) + "\"\n"), e.abstract && (t += " abstract true\n"), t += K("extends", e.extends, " "), t += K("requires", e.requires, " "), t += K("has_parameters", e.hasParameters, " "), t += K("satisfies_requirements", e.satisfiesRequirements, " "), t += K("verified_by_tests", e.verifiedByTests, " "), t += K("reference", e.referenceIds, " "), t += w(e.refs, " ", s), t += k(e.correspondences, " ", s, N), t += "}\n", t;
|
|
6798
|
-
},
|
|
6911
|
+
}, go = function(e, t) {
|
|
6799
6912
|
let n = {
|
|
6800
6913
|
id: e,
|
|
6801
6914
|
kind: "",
|
|
@@ -6824,13 +6937,13 @@ var ro = function(e, t) {
|
|
|
6824
6937
|
} else s = y(o, s, e);
|
|
6825
6938
|
}
|
|
6826
6939
|
return (t) => (t.behaviors[e] = n, t);
|
|
6827
|
-
},
|
|
6940
|
+
}, _o = function(e) {
|
|
6828
6941
|
let t = "behavior " + e.id + " {\n";
|
|
6829
6942
|
e.kind && (t += " kind " + e.kind + "\n"), e.stimulus && (t += " stimulus " + e.stimulus + "\n"), e.response && (t += " response \"" + s(e.response) + "\"\n");
|
|
6830
6943
|
let n = e.sourceRefs && e.sourceRefs.length > 0 ? e.sourceRefs : e.source ? [e.source] : [];
|
|
6831
6944
|
for (let e of n) t += E(e, " ", s);
|
|
6832
6945
|
return t += w(e.refs, " ", s), t += k(e.correspondences, " ", s, N), t += K("verified_by", e.verifiedBy, " "), t += "}\n", t;
|
|
6833
|
-
},
|
|
6946
|
+
}, vo = function(e, t) {
|
|
6834
6947
|
let n = {
|
|
6835
6948
|
id: e,
|
|
6836
6949
|
role: "",
|
|
@@ -6845,7 +6958,7 @@ var ro = function(e, t) {
|
|
|
6845
6958
|
if (e === "role") n.role = a(o[s++]);
|
|
6846
6959
|
else if (e === "subject") n.subject = a(o[s++]);
|
|
6847
6960
|
else if (e === "description") n.description = a(o[s++]);
|
|
6848
|
-
else if (e === "entries") n.entries =
|
|
6961
|
+
else if (e === "entries") n.entries = yo(i(o[s++]));
|
|
6849
6962
|
else if (e === "source") {
|
|
6850
6963
|
let e = I(i(o[s++]));
|
|
6851
6964
|
n.sources.push(e), n.source ||= e;
|
|
@@ -6862,7 +6975,7 @@ var ro = function(e, t) {
|
|
|
6862
6975
|
}
|
|
6863
6976
|
return (t) => (t.conditionSets[e] = n, t);
|
|
6864
6977
|
};
|
|
6865
|
-
function
|
|
6978
|
+
function yo(e) {
|
|
6866
6979
|
let t = [], r = n(e), o = 0;
|
|
6867
6980
|
for (; o < r.length;) {
|
|
6868
6981
|
let e = P(r[o++]);
|
|
@@ -6885,7 +6998,7 @@ function uo(e) {
|
|
|
6885
6998
|
}
|
|
6886
6999
|
return t;
|
|
6887
7000
|
}
|
|
6888
|
-
var
|
|
7001
|
+
var bo = function(e) {
|
|
6889
7002
|
let t = "condition_set " + e.id + " {\n";
|
|
6890
7003
|
if (e.role && (t += " role " + e.role + "\n"), e.subject && (t += " subject " + e.subject + "\n"), e.description && (t += " description \"" + s(e.description) + "\"\n"), e.entries.length > 0) {
|
|
6891
7004
|
t += " entries {\n";
|
|
@@ -6899,7 +7012,7 @@ var fo = function(e) {
|
|
|
6899
7012
|
for (let e of n) t += E(e, " ", s);
|
|
6900
7013
|
return t += K("reference", e.referenceIds, " "), t += w(e.refs, " ", s), t += k(e.correspondences, " ", s, N), t += "}\n", t;
|
|
6901
7014
|
};
|
|
6902
|
-
function
|
|
7015
|
+
function xo(e) {
|
|
6903
7016
|
let t = {}, r = n(e), i = 0;
|
|
6904
7017
|
for (; i < r.length;) {
|
|
6905
7018
|
let e = P(r[i++]);
|
|
@@ -6908,7 +7021,7 @@ function po(e) {
|
|
|
6908
7021
|
}
|
|
6909
7022
|
return t;
|
|
6910
7023
|
}
|
|
6911
|
-
function
|
|
7024
|
+
function So(e) {
|
|
6912
7025
|
let t = {}, r = n(e), i = 0;
|
|
6913
7026
|
for (; i < r.length;) {
|
|
6914
7027
|
let e = P(r[i++]);
|
|
@@ -6920,10 +7033,10 @@ function mo(e) {
|
|
|
6920
7033
|
}
|
|
6921
7034
|
return t;
|
|
6922
7035
|
}
|
|
6923
|
-
function
|
|
7036
|
+
function Co(e) {
|
|
6924
7037
|
return n(e).map(a).filter((e) => e.length > 0);
|
|
6925
7038
|
}
|
|
6926
|
-
function
|
|
7039
|
+
function wo(e) {
|
|
6927
7040
|
let t = {}, r = n(e), o = 0;
|
|
6928
7041
|
for (; o < r.length;) {
|
|
6929
7042
|
let e = P(r[o++]);
|
|
@@ -6935,13 +7048,13 @@ function go(e) {
|
|
|
6935
7048
|
}
|
|
6936
7049
|
return t;
|
|
6937
7050
|
}
|
|
6938
|
-
function
|
|
7051
|
+
function To(e) {
|
|
6939
7052
|
let t = {}, r = n(e), o = 0;
|
|
6940
7053
|
for (; o < r.length;) {
|
|
6941
7054
|
let e = P(r[o++]);
|
|
6942
7055
|
if (!e) break;
|
|
6943
7056
|
if (o < r.length && r[o].startsWith("{")) {
|
|
6944
|
-
t[e] =
|
|
7057
|
+
t[e] = Eo(i(r[o++]));
|
|
6945
7058
|
continue;
|
|
6946
7059
|
}
|
|
6947
7060
|
let n = "", s = "", c = !1;
|
|
@@ -6957,7 +7070,7 @@ function _o(e) {
|
|
|
6957
7070
|
}
|
|
6958
7071
|
return t;
|
|
6959
7072
|
}
|
|
6960
|
-
function
|
|
7073
|
+
function Eo(e) {
|
|
6961
7074
|
let t = {
|
|
6962
7075
|
symbol: "",
|
|
6963
7076
|
derivation: ""
|
|
@@ -6973,18 +7086,18 @@ function vo(e) {
|
|
|
6973
7086
|
}
|
|
6974
7087
|
return t;
|
|
6975
7088
|
}
|
|
6976
|
-
var
|
|
6977
|
-
function
|
|
7089
|
+
var Do = /* @__PURE__ */ new Set(["state", "behavior"]);
|
|
7090
|
+
function Oo(e, t, n) {
|
|
6978
7091
|
return e === "endpoint" ? (n < t.length && !t[n].startsWith("{") && n++, n < t.length && t[n].startsWith("{") && n++, n) : e === "serve" ? (n < t.length && n++, t[n] === "via" && (n += 2), n < t.length && t[n].startsWith("{") && n++, n) : n;
|
|
6979
7092
|
}
|
|
6980
|
-
function
|
|
7093
|
+
function ko(e, t, n, r, i) {
|
|
6981
7094
|
let a = P(n);
|
|
6982
7095
|
return e.misplacedAspects.push({
|
|
6983
7096
|
family: t,
|
|
6984
7097
|
aspect: a
|
|
6985
|
-
}), i < r.length && r[i].startsWith("{") ||
|
|
7098
|
+
}), i < r.length && r[i].startsWith("{") || Do.has(a) ? i++ : i = Oo(a, r, i), i;
|
|
6986
7099
|
}
|
|
6987
|
-
function
|
|
7100
|
+
function Ao(e, t) {
|
|
6988
7101
|
let r = e[t] ?? "";
|
|
6989
7102
|
if (r === "symbolic") return {
|
|
6990
7103
|
level: {
|
|
@@ -7013,7 +7126,7 @@ function So(e, t) {
|
|
|
7013
7126
|
next: t + 1
|
|
7014
7127
|
};
|
|
7015
7128
|
}
|
|
7016
|
-
function
|
|
7129
|
+
function jo(e) {
|
|
7017
7130
|
let t = [], r = n(e), o = 0;
|
|
7018
7131
|
for (; o < r.length;) {
|
|
7019
7132
|
let e = r[o++];
|
|
@@ -7031,12 +7144,12 @@ function Co(e) {
|
|
|
7031
7144
|
});
|
|
7032
7145
|
continue;
|
|
7033
7146
|
}
|
|
7034
|
-
t.push(
|
|
7147
|
+
t.push(Po(P(e), i(r[o++])));
|
|
7035
7148
|
}
|
|
7036
7149
|
return t;
|
|
7037
7150
|
}
|
|
7038
|
-
var
|
|
7039
|
-
function
|
|
7151
|
+
var Mo = ["mandatory", "optional"];
|
|
7152
|
+
function No(e, t) {
|
|
7040
7153
|
let r = {
|
|
7041
7154
|
attribute: "",
|
|
7042
7155
|
attributes: [],
|
|
@@ -7055,13 +7168,13 @@ function To(e, t) {
|
|
|
7055
7168
|
else if (t === "label") r.label = a(o[s++]);
|
|
7056
7169
|
else if (t === "obligation") {
|
|
7057
7170
|
let t = a(o[s++]);
|
|
7058
|
-
if (!
|
|
7171
|
+
if (!Mo.includes(t)) throw Error(`Parsing error: promise. ID ${e}: Unknown certificate obligation "${t}" (valid: ${Mo.join(", ")})`);
|
|
7059
7172
|
r.obligation = t;
|
|
7060
7173
|
} else i(o[s++]);
|
|
7061
7174
|
}
|
|
7062
7175
|
return r;
|
|
7063
7176
|
}
|
|
7064
|
-
function
|
|
7177
|
+
function Po(e, t) {
|
|
7065
7178
|
let r = {
|
|
7066
7179
|
id: e,
|
|
7067
7180
|
target: "",
|
|
@@ -7077,62 +7190,62 @@ function Eo(e, t) {
|
|
|
7077
7190
|
if (s >= o.length) break;
|
|
7078
7191
|
if (e === "target") r.target = a(o[s++]);
|
|
7079
7192
|
else if (e === "level") {
|
|
7080
|
-
let e =
|
|
7193
|
+
let e = Ao(o, s);
|
|
7081
7194
|
r.level = e.level, s = e.next;
|
|
7082
7195
|
} else if (e === "conditions") {
|
|
7083
7196
|
let e = M(o, s);
|
|
7084
7197
|
r.conditions = a(e.text), s = e.next;
|
|
7085
|
-
} else e === "statement" ? r.statement = a(o[s++]) : e === "verified_by" ? r.verifiedBy = G(o[s++]) : e === "source" ? r.source = I(i(o[s++])) : e === "certificate" ? r.certificate =
|
|
7198
|
+
} else e === "statement" ? r.statement = a(o[s++]) : e === "verified_by" ? r.verifiedBy = G(o[s++]) : e === "source" ? r.source = I(i(o[s++])) : e === "certificate" ? r.certificate = No(r.id, i(o[s++])) : i(o[s++]);
|
|
7086
7199
|
}
|
|
7087
7200
|
return r;
|
|
7088
7201
|
}
|
|
7089
|
-
function
|
|
7202
|
+
function Fo(e) {
|
|
7090
7203
|
return e.id === "" && !e.target && !e.level && !e.conditions && e.verifiedBy.length === 0 && !e.source && !e.certificate;
|
|
7091
7204
|
}
|
|
7092
|
-
function
|
|
7205
|
+
function Io(e, t) {
|
|
7093
7206
|
let r = n(e), a = 0;
|
|
7094
7207
|
for (; a < r.length;) {
|
|
7095
7208
|
let e = r[a++];
|
|
7096
7209
|
if (a >= r.length) break;
|
|
7097
|
-
if (e === "metadata") t.is.metadata =
|
|
7098
|
-
else if (e === "provenance") t.is.provenance =
|
|
7099
|
-
else if (e === "structure") t.is.structure =
|
|
7100
|
-
else if (e === "design_parameters") t.is.designParameters =
|
|
7101
|
-
else if (e === "designed_conditions") t.is.designedConditions =
|
|
7102
|
-
else if (e === "promises") t.is.promises =
|
|
7103
|
-
else if (e === "artifacts") t.is.artifacts =
|
|
7210
|
+
if (e === "metadata") t.is.metadata = xo(i(r[a++]));
|
|
7211
|
+
else if (e === "provenance") t.is.provenance = xo(i(r[a++]));
|
|
7212
|
+
else if (e === "structure") t.is.structure = Co(i(r[a++]));
|
|
7213
|
+
else if (e === "design_parameters") t.is.designParameters = So(i(r[a++]));
|
|
7214
|
+
else if (e === "designed_conditions") t.is.designedConditions = xo(i(r[a++]));
|
|
7215
|
+
else if (e === "promises") t.is.promises = jo(i(r[a++]));
|
|
7216
|
+
else if (e === "artifacts") t.is.artifacts = Co(i(r[a++]));
|
|
7104
7217
|
else if (e === "endpoint") {
|
|
7105
7218
|
let e = P(r[a++] ?? ""), n = a < r.length ? i(r[a++]) : "";
|
|
7106
|
-
e && t.is.endpoints.push(
|
|
7107
|
-
} else e === "composed_of" ? t.is.composedOf =
|
|
7219
|
+
e && t.is.endpoints.push(Ua(e, n));
|
|
7220
|
+
} else e === "composed_of" ? t.is.composedOf = Za(i(r[a++] ?? "")) : a = ko(t, "is", e, r, a);
|
|
7108
7221
|
}
|
|
7109
7222
|
}
|
|
7110
|
-
function
|
|
7223
|
+
function Lo(e, t) {
|
|
7111
7224
|
let r = n(e), o = 0;
|
|
7112
7225
|
for (; o < r.length;) {
|
|
7113
7226
|
let e = r[o++];
|
|
7114
7227
|
if (o >= r.length) break;
|
|
7115
|
-
if (e === "attributes") t.has.attributes =
|
|
7116
|
-
else if (e === "dimensions") t.has.dimensions =
|
|
7228
|
+
if (e === "attributes") t.has.attributes = So(i(r[o++]));
|
|
7229
|
+
else if (e === "dimensions") t.has.dimensions = wo(i(r[o++]));
|
|
7117
7230
|
else if (e === "state") t.has.state = a(r[o++]);
|
|
7118
|
-
else if (e === "characteristics") t.has.characteristics =
|
|
7119
|
-
else if (e === "environmental_context") t.has.environmentalContext =
|
|
7120
|
-
else if (e === "artifact_instances") t.has.artifactInstances =
|
|
7231
|
+
else if (e === "characteristics") t.has.characteristics = To(i(r[o++]));
|
|
7232
|
+
else if (e === "environmental_context") t.has.environmentalContext = Co(i(r[o++]));
|
|
7233
|
+
else if (e === "artifact_instances") t.has.artifactInstances = Co(i(r[o++]));
|
|
7121
7234
|
else if (e === "serve") {
|
|
7122
|
-
let e =
|
|
7235
|
+
let e = Ka(r, o);
|
|
7123
7236
|
t.has.serves.push(e.binding), o = e.next;
|
|
7124
|
-
} else o =
|
|
7237
|
+
} else o = ko(t, "has", e, r, o);
|
|
7125
7238
|
}
|
|
7126
7239
|
}
|
|
7127
|
-
function
|
|
7240
|
+
function Ro(e, t) {
|
|
7128
7241
|
let r = n(e), i = 0;
|
|
7129
7242
|
for (; i < r.length;) {
|
|
7130
7243
|
let e = r[i++];
|
|
7131
7244
|
if (i >= r.length) break;
|
|
7132
|
-
e === "behavior" ? t.does.behaviors.push(a(r[i++])) : i =
|
|
7245
|
+
e === "behavior" ? t.does.behaviors.push(a(r[i++])) : i = ko(t, "does", e, r, i);
|
|
7133
7246
|
}
|
|
7134
7247
|
}
|
|
7135
|
-
var
|
|
7248
|
+
var zo = function(e, t) {
|
|
7136
7249
|
let n = {
|
|
7137
7250
|
id: e,
|
|
7138
7251
|
extends: "",
|
|
@@ -7162,11 +7275,11 @@ var jo = function(e, t) {
|
|
|
7162
7275
|
for (; s < o.length;) {
|
|
7163
7276
|
let e = o[s++];
|
|
7164
7277
|
if (s >= o.length) break;
|
|
7165
|
-
e === "extends" ? n.extends = a(o[s++]) : e === "is" ?
|
|
7278
|
+
e === "extends" ? n.extends = a(o[s++]) : e === "is" ? Io(i(o[s++]), n) : e === "has" ? Lo(i(o[s++]), n) : e === "does" ? Ro(i(o[s++]), n) : e === "reference" ? n.referenceIds = q(o[s++]) : s = y(o, s, e);
|
|
7166
7279
|
}
|
|
7167
7280
|
return (t) => (t.subjects[e] = n, t);
|
|
7168
7281
|
};
|
|
7169
|
-
function
|
|
7282
|
+
function Bo(e, t) {
|
|
7170
7283
|
return {
|
|
7171
7284
|
id: t.id,
|
|
7172
7285
|
extends: "",
|
|
@@ -7216,34 +7329,34 @@ function Mo(e, t) {
|
|
|
7216
7329
|
misplacedAspects: t.misplacedAspects
|
|
7217
7330
|
};
|
|
7218
7331
|
}
|
|
7219
|
-
function
|
|
7332
|
+
function Vo(e, t) {
|
|
7220
7333
|
let n = (t, r) => {
|
|
7221
7334
|
let i = t.extends;
|
|
7222
7335
|
if (!i || r.has(i)) return t;
|
|
7223
7336
|
let a = e.subjects[i];
|
|
7224
|
-
return a ? (r.add(i),
|
|
7337
|
+
return a ? (r.add(i), Bo(n(a, r), t)) : t;
|
|
7225
7338
|
};
|
|
7226
7339
|
return n(t, /* @__PURE__ */ new Set([t.id]));
|
|
7227
7340
|
}
|
|
7228
|
-
function
|
|
7341
|
+
function Ho(e, t) {
|
|
7229
7342
|
let n = Object.keys(t);
|
|
7230
7343
|
return n.length === 0 ? "" : " " + e + " { " + n.map((e) => e + " " + N(t[e])).join(" ") + " }\n";
|
|
7231
7344
|
}
|
|
7232
|
-
function
|
|
7345
|
+
function Uo(e, t) {
|
|
7233
7346
|
let n = Object.keys(t);
|
|
7234
7347
|
return n.length === 0 ? "" : " " + e + " { " + n.map((e) => e + " :" + (t[e] ? " " + N(t[e]) : "")).join(" ") + " }\n";
|
|
7235
7348
|
}
|
|
7236
|
-
function
|
|
7349
|
+
function Wo(e, t) {
|
|
7237
7350
|
return t.length === 0 ? "" : " " + e + " { " + t.map(N).join(" ") + " }\n";
|
|
7238
7351
|
}
|
|
7239
|
-
function
|
|
7352
|
+
function Go(e) {
|
|
7240
7353
|
let t = Object.keys(e);
|
|
7241
7354
|
return t.length === 0 ? "" : " dimensions { " + t.map((t) => t + " in { " + e[t].join(", ") + " }").join(" ") + " }\n";
|
|
7242
7355
|
}
|
|
7243
|
-
function
|
|
7356
|
+
function Ko(e) {
|
|
7244
7357
|
return /^ocl\{[\s\S]*\}$/.test(e) ? e : N(e);
|
|
7245
7358
|
}
|
|
7246
|
-
function
|
|
7359
|
+
function qo(e) {
|
|
7247
7360
|
if (e.kind === "symbolic") return "symbolic " + N(e.symbolic ?? "");
|
|
7248
7361
|
if (e.kind === "range") {
|
|
7249
7362
|
let t = "";
|
|
@@ -7251,112 +7364,112 @@ function zo(e) {
|
|
|
7251
7364
|
}
|
|
7252
7365
|
return xe(e.quantity ?? { value: "" });
|
|
7253
7366
|
}
|
|
7254
|
-
function
|
|
7367
|
+
function Jo(e, t) {
|
|
7255
7368
|
let n = t + " ", r = t + "certificate {\n";
|
|
7256
7369
|
return e.attribute && (r += n + "attribute " + N(e.attribute) + "\n"), e.attributes.length > 0 && (r += n + "attributes { " + e.attributes.map(N).join(" ") + " }\n"), e.dimension && (r += n + "dimension " + N(e.dimension) + "\n"), e.type && (r += n + "type " + N(e.type) + "\n"), e.label && (r += n + "label \"" + s(e.label) + "\"\n"), e.obligation && (r += n + "obligation " + N(e.obligation) + "\n"), r += t + "}\n", r;
|
|
7257
7370
|
}
|
|
7258
|
-
function
|
|
7371
|
+
function Yo(e, t, n = "") {
|
|
7259
7372
|
let r = t + " ", i = t + n + N(e.id) + " {\n";
|
|
7260
|
-
return e.target && (i += r + "target " + N(e.target) + "\n"), e.level && (i += r + "level " +
|
|
7373
|
+
return e.target && (i += r + "target " + N(e.target) + "\n"), e.level && (i += r + "level " + qo(e.level) + "\n"), e.conditions && (i += r + "conditions " + Ko(e.conditions) + "\n"), e.statement && (i += r + "statement \"" + s(e.statement) + "\"\n"), i += K("verified_by", e.verifiedBy, r), i += W("source", e.source ?? null, r), e.certificate && (i += Jo(e.certificate, r)), i += t + "}\n", i;
|
|
7261
7374
|
}
|
|
7262
|
-
function
|
|
7375
|
+
function Xo(e) {
|
|
7263
7376
|
if (e.length === 0) return "";
|
|
7264
|
-
if (e.every(
|
|
7377
|
+
if (e.every(Fo)) return " promises { " + e.map((e) => N(e.statement)).join(" ") + " }\n";
|
|
7265
7378
|
let t = " promises {\n";
|
|
7266
7379
|
for (let n of e) {
|
|
7267
|
-
if (
|
|
7380
|
+
if (Fo(n)) {
|
|
7268
7381
|
t += " " + N(n.statement) + "\n";
|
|
7269
7382
|
continue;
|
|
7270
7383
|
}
|
|
7271
|
-
t +=
|
|
7384
|
+
t += Yo(n, " ");
|
|
7272
7385
|
}
|
|
7273
7386
|
return t += " }\n", t;
|
|
7274
7387
|
}
|
|
7275
|
-
function
|
|
7388
|
+
function Zo(e) {
|
|
7276
7389
|
let t = Object.keys(e);
|
|
7277
7390
|
if (t.length === 0) return "";
|
|
7278
7391
|
let n = " characteristics {\n";
|
|
7279
7392
|
for (let r of t) {
|
|
7280
7393
|
let t = e[r];
|
|
7281
7394
|
if (t.behavior || t.quantityKind || t.unit || t.source && (t.source.doc || t.source.clause)) {
|
|
7282
|
-
n += " " + r + " {\n", t.symbol && (n += " symbol \"" + s(t.symbol) + "\"\n"), t.derivation && (n += " derivation " +
|
|
7395
|
+
n += " " + r + " {\n", t.symbol && (n += " symbol \"" + s(t.symbol) + "\"\n"), t.derivation && (n += " derivation " + Ko(t.derivation) + "\n"), t.behavior && (n += " behavior " + N(t.behavior) + "\n"), t.quantityKind && (n += " quantity_kind " + N(t.quantityKind) + "\n"), t.unit && (n += " unit \"" + s(t.unit) + "\"\n"), n += W("source", t.source ?? null, " "), n += " }\n";
|
|
7283
7396
|
continue;
|
|
7284
7397
|
}
|
|
7285
|
-
n += " " + r + (t.symbol ? " " + t.symbol : ""), t.derivation && (n += " = " +
|
|
7398
|
+
n += " " + r + (t.symbol ? " " + t.symbol : ""), t.derivation && (n += " = " + Ko(t.derivation)), n += "\n";
|
|
7286
7399
|
}
|
|
7287
7400
|
return n += " }\n", n;
|
|
7288
7401
|
}
|
|
7289
|
-
function
|
|
7402
|
+
function Qo(e) {
|
|
7290
7403
|
let t = "";
|
|
7291
|
-
for (let n of e) t +=
|
|
7404
|
+
for (let n of e) t += Ga(n, " ");
|
|
7292
7405
|
return t;
|
|
7293
7406
|
}
|
|
7294
|
-
function
|
|
7407
|
+
function $o(e) {
|
|
7295
7408
|
let t = "";
|
|
7296
|
-
for (let n of e) t +=
|
|
7409
|
+
for (let n of e) t += qa(n, " ");
|
|
7297
7410
|
return t;
|
|
7298
7411
|
}
|
|
7299
|
-
var
|
|
7412
|
+
var es = function(e) {
|
|
7300
7413
|
let t = "subject " + e.id + " {\n";
|
|
7301
7414
|
e.extends && (t += " extends " + e.extends + "\n");
|
|
7302
|
-
let n =
|
|
7415
|
+
let n = Ho("metadata", e.is.metadata) + Ho("provenance", e.is.provenance) + Wo("structure", e.is.structure) + Uo("design_parameters", e.is.designParameters) + Ho("designed_conditions", e.is.designedConditions) + Xo(e.is.promises) + Wo("artifacts", e.is.artifacts) + Qo(e.is.endpoints) + (e.is.composedOf ? $a(e.is.composedOf, " ") : "");
|
|
7303
7416
|
n && (t += " is {\n" + n + " }\n");
|
|
7304
|
-
let r =
|
|
7417
|
+
let r = Uo("attributes", e.has.attributes) + Go(e.has.dimensions) + (e.has.state ? " state " + N(e.has.state) + "\n" : "") + Zo(e.has.characteristics) + Wo("environmental_context", e.has.environmentalContext) + Wo("artifact_instances", e.has.artifactInstances) + $o(e.has.serves);
|
|
7305
7418
|
r && (t += " has {\n" + r + " }\n");
|
|
7306
7419
|
let i = "";
|
|
7307
7420
|
for (let t of e.does.behaviors) i += " behavior " + N(t) + "\n";
|
|
7308
7421
|
return i && (t += " does {\n" + i + " }\n"), t += K("reference", e.referenceIds, " "), t += "}\n", t;
|
|
7309
|
-
},
|
|
7422
|
+
}, ts = {
|
|
7310
7423
|
keyword: "instrument",
|
|
7311
7424
|
field: "instruments",
|
|
7312
7425
|
takesID: !0,
|
|
7313
|
-
parse:
|
|
7314
|
-
dump:
|
|
7315
|
-
},
|
|
7426
|
+
parse: eo,
|
|
7427
|
+
dump: co
|
|
7428
|
+
}, ns = {
|
|
7316
7429
|
keyword: "attribute_definition",
|
|
7317
7430
|
field: "attributeDefinitions",
|
|
7318
7431
|
takesID: !0,
|
|
7319
|
-
parse:
|
|
7320
|
-
dump:
|
|
7321
|
-
},
|
|
7432
|
+
parse: fo,
|
|
7433
|
+
dump: po
|
|
7434
|
+
}, rs = {
|
|
7322
7435
|
keyword: "capability",
|
|
7323
7436
|
field: "capabilities",
|
|
7324
7437
|
takesID: !0,
|
|
7325
|
-
parse:
|
|
7326
|
-
dump:
|
|
7327
|
-
},
|
|
7438
|
+
parse: mo,
|
|
7439
|
+
dump: ho
|
|
7440
|
+
}, is = {
|
|
7328
7441
|
keyword: "behavior",
|
|
7329
7442
|
field: "behaviors",
|
|
7330
7443
|
takesID: !0,
|
|
7331
|
-
parse:
|
|
7332
|
-
dump:
|
|
7333
|
-
},
|
|
7444
|
+
parse: go,
|
|
7445
|
+
dump: _o
|
|
7446
|
+
}, as = {
|
|
7334
7447
|
keyword: "condition_set",
|
|
7335
7448
|
field: "conditionSets",
|
|
7336
7449
|
takesID: !0,
|
|
7337
|
-
parse:
|
|
7338
|
-
dump:
|
|
7339
|
-
},
|
|
7450
|
+
parse: vo,
|
|
7451
|
+
dump: bo
|
|
7452
|
+
}, os = {
|
|
7340
7453
|
keyword: "subject",
|
|
7341
7454
|
field: "subjects",
|
|
7342
7455
|
takesID: !0,
|
|
7343
|
-
parse:
|
|
7344
|
-
resolve:
|
|
7345
|
-
dump:
|
|
7456
|
+
parse: zo,
|
|
7457
|
+
resolve: Vo,
|
|
7458
|
+
dump: es
|
|
7346
7459
|
};
|
|
7347
7460
|
//#endregion
|
|
7348
7461
|
//#region src/ser-des/config/instance.ts
|
|
7349
|
-
function
|
|
7462
|
+
function ss(e) {
|
|
7350
7463
|
return !e.startsWith("\"") && e.endsWith(":") && e.length > 1;
|
|
7351
7464
|
}
|
|
7352
|
-
function
|
|
7465
|
+
function cs(e) {
|
|
7353
7466
|
let t = {}, r = n(e), o = 0;
|
|
7354
7467
|
for (; o < r.length;) {
|
|
7355
7468
|
let e = P(r[o++]);
|
|
7356
7469
|
if (!e) break;
|
|
7357
7470
|
r[o] === ":" && o++;
|
|
7358
7471
|
let n = [];
|
|
7359
|
-
for (; o < r.length && r[o + 1] !== ":" &&
|
|
7472
|
+
for (; o < r.length && r[o + 1] !== ":" && !ss(r[o]);) n.push(r[o++]);
|
|
7360
7473
|
if (n.length === 0) {
|
|
7361
7474
|
t[e] = { value: "" };
|
|
7362
7475
|
continue;
|
|
@@ -7374,7 +7487,7 @@ function es(e) {
|
|
|
7374
7487
|
}
|
|
7375
7488
|
return t;
|
|
7376
7489
|
}
|
|
7377
|
-
function
|
|
7490
|
+
function ls(e) {
|
|
7378
7491
|
let t = {}, r = n(e), i = 0;
|
|
7379
7492
|
for (; i < r.length;) {
|
|
7380
7493
|
let e = P(r[i++]);
|
|
@@ -7383,18 +7496,18 @@ function ts(e) {
|
|
|
7383
7496
|
}
|
|
7384
7497
|
return t;
|
|
7385
7498
|
}
|
|
7386
|
-
function
|
|
7499
|
+
function us(e) {
|
|
7387
7500
|
return n(a(e)).map(a).filter((e) => e.length > 0);
|
|
7388
7501
|
}
|
|
7389
|
-
function
|
|
7502
|
+
function ds(e, t) {
|
|
7390
7503
|
let r = n(e), a = 0;
|
|
7391
7504
|
for (; a < r.length;) {
|
|
7392
7505
|
let e = r[a++];
|
|
7393
7506
|
if (a >= r.length) break;
|
|
7394
|
-
e === "attributes" ? t.has.attributes =
|
|
7507
|
+
e === "attributes" ? t.has.attributes = cs(i(r[a++])) : e === "dimensions" ? t.has.dimensions = ls(i(r[a++])) : e === "test_context" ? t.has.testContext = cs(i(r[a++])) : i(r[a++]);
|
|
7395
7508
|
}
|
|
7396
7509
|
}
|
|
7397
|
-
var
|
|
7510
|
+
var fs = function(e, t) {
|
|
7398
7511
|
let n = {
|
|
7399
7512
|
id: e,
|
|
7400
7513
|
of: "",
|
|
@@ -7413,39 +7526,39 @@ var is = function(e, t) {
|
|
|
7413
7526
|
for (; s < o.length;) {
|
|
7414
7527
|
let e = o[s++];
|
|
7415
7528
|
if (s >= o.length) break;
|
|
7416
|
-
e === "of" ? n.of = a(o[s++]) : e === "level" ? n.level = a(o[s++]) : e === "model" ? n.model = a(o[s++]) : e === "group" ? n.group = a(o[s++]) : e === "family" ? n.family = a(o[s++]) : e === "definition_versions" ? n.definitionVersions =
|
|
7529
|
+
e === "of" ? n.of = a(o[s++]) : e === "level" ? n.level = a(o[s++]) : e === "model" ? n.model = a(o[s++]) : e === "group" ? n.group = a(o[s++]) : e === "family" ? n.family = a(o[s++]) : e === "definition_versions" ? n.definitionVersions = ls(i(o[s++])) : e === "has" ? ds(i(o[s++]), n) : e === "reference" ? n.referenceIds = us(o[s++]) : i(o[s++]);
|
|
7417
7530
|
}
|
|
7418
7531
|
return (t) => (t.instances[e] = n, t);
|
|
7419
7532
|
};
|
|
7420
|
-
function
|
|
7533
|
+
function ps(e, t) {
|
|
7421
7534
|
let n = Object.keys(t);
|
|
7422
7535
|
return n.length === 0 ? "" : " " + e + " { " + n.map((e) => e + " : " + be(t[e])).join(" ") + " }\n";
|
|
7423
7536
|
}
|
|
7424
|
-
function
|
|
7537
|
+
function ms(e, t) {
|
|
7425
7538
|
let n = Object.keys(t);
|
|
7426
7539
|
return n.length === 0 ? "" : " " + e + " { " + n.map((e) => e + " : " + N(t[e])).join(" ") + " }\n";
|
|
7427
7540
|
}
|
|
7428
|
-
var
|
|
7541
|
+
var hs = {
|
|
7429
7542
|
keyword: "instance",
|
|
7430
7543
|
field: "instances",
|
|
7431
7544
|
takesID: !0,
|
|
7432
|
-
parse:
|
|
7545
|
+
parse: fs,
|
|
7433
7546
|
dump: function(e) {
|
|
7434
7547
|
let t = "instance " + e.id + " {\n";
|
|
7435
7548
|
e.of && (t += " of " + e.of + "\n"), e.level && (t += " level " + e.level + "\n"), e.model && (t += " model " + e.model + "\n"), e.group && (t += " group " + e.group + "\n"), e.family && (t += " family " + e.family + "\n");
|
|
7436
7549
|
let n = Object.keys(e.definitionVersions);
|
|
7437
7550
|
n.length > 0 && (t += " definition_versions { " + n.map((t) => t + " : " + N(e.definitionVersions[t])).join(" ") + " }\n");
|
|
7438
|
-
let r =
|
|
7551
|
+
let r = ps("attributes", e.has.attributes) + ms("dimensions", e.has.dimensions) + ps("test_context", e.has.testContext);
|
|
7439
7552
|
return r && (t += " has {\n" + r + " }\n"), e.referenceIds.length > 0 && (t += " reference { " + e.referenceIds.join(" ") + " }\n"), t += "}\n", t;
|
|
7440
7553
|
}
|
|
7441
|
-
},
|
|
7554
|
+
}, gs = [
|
|
7442
7555
|
"string",
|
|
7443
7556
|
"designation",
|
|
7444
7557
|
"serial",
|
|
7445
7558
|
"year",
|
|
7446
7559
|
"mark",
|
|
7447
7560
|
"map"
|
|
7448
|
-
],
|
|
7561
|
+
], _s = ["marked-on-instrument", "accompanying-document"], vs = (e, t) => {
|
|
7449
7562
|
let r = {
|
|
7450
7563
|
id: e,
|
|
7451
7564
|
label: "",
|
|
@@ -7460,11 +7573,11 @@ var ss = {
|
|
|
7460
7573
|
if (t === "label") r.label = a(o());
|
|
7461
7574
|
else if (t === "type") {
|
|
7462
7575
|
let t = a(o());
|
|
7463
|
-
if (!
|
|
7576
|
+
if (!gs.includes(t)) throw Error(`Parsing error: identity_slot. ID ${e}: Unknown identity slot type "${t}" (valid: ${gs.join(", ")})`);
|
|
7464
7577
|
r.type = t;
|
|
7465
7578
|
} else if (t === "presentation") {
|
|
7466
7579
|
let t = n(a(o())).map(P).map(a).filter((e) => e.length > 0);
|
|
7467
|
-
for (let n of t) if (!
|
|
7580
|
+
for (let n of t) if (!_s.includes(n)) throw Error(`Parsing error: identity_slot. ID ${e}: Unknown presentation channel "${n}" (valid: ${_s.join(", ")})`);
|
|
7468
7581
|
r.presentation = t;
|
|
7469
7582
|
} else if (t === "optional") r.optional = o() === "true";
|
|
7470
7583
|
else if (t === "definition") r.definition = a(o());
|
|
@@ -7476,10 +7589,10 @@ var ss = {
|
|
|
7476
7589
|
construct: "identity_slot",
|
|
7477
7590
|
id: e
|
|
7478
7591
|
}), (t) => (t.identitySlots[e] = r, t);
|
|
7479
|
-
},
|
|
7592
|
+
}, ys = function(e) {
|
|
7480
7593
|
let t = "identity_slot " + e.id + " {\n";
|
|
7481
7594
|
return e.label && (t += " label \"" + s(e.label) + "\"\n"), e.type && (t += " type " + N(e.type) + "\n"), e.presentation.length > 0 && (t += " presentation { " + e.presentation.map(N).join(" ") + " }\n"), e.optional && (t += " optional true\n"), e.definition && (t += " definition \"" + s(e.definition) + "\"\n"), e.metamodelClass && (t += " metamodel_class " + N(e.metamodelClass) + "\n"), e.source && (e.source.doc || e.source.clause) && (t += " source {\n", e.source.doc && (t += " doc \"" + s(e.source.doc) + "\"\n"), e.source.clause && (t += " clause \"" + s(e.source.clause) + "\"\n"), t += " }\n"), t += "}\n", t;
|
|
7482
|
-
},
|
|
7595
|
+
}, bs = [
|
|
7483
7596
|
"marking",
|
|
7484
7597
|
"inscription",
|
|
7485
7598
|
"sealing",
|
|
@@ -7491,7 +7604,7 @@ var ss = {
|
|
|
7491
7604
|
"construction",
|
|
7492
7605
|
"documentation",
|
|
7493
7606
|
"other"
|
|
7494
|
-
],
|
|
7607
|
+
], xs = (e, t) => {
|
|
7495
7608
|
let r = {
|
|
7496
7609
|
id: e,
|
|
7497
7610
|
label: "",
|
|
@@ -7508,7 +7621,7 @@ var ss = {
|
|
|
7508
7621
|
if (t === "label") r.label = a(o());
|
|
7509
7622
|
else if (t === "kind") {
|
|
7510
7623
|
let t = a(o());
|
|
7511
|
-
if (!
|
|
7624
|
+
if (!bs.includes(t)) throw Error(`Parsing error: aspect. ID ${e}: Unknown aspect kind "${t}" (valid: ${bs.join(", ")})`);
|
|
7512
7625
|
r.kind = t;
|
|
7513
7626
|
} else if (t === "definition") r.definition = a(o());
|
|
7514
7627
|
else if (t === "metamodel_class") r.metamodelClass = a(o());
|
|
@@ -7523,10 +7636,10 @@ var ss = {
|
|
|
7523
7636
|
construct: "aspect",
|
|
7524
7637
|
id: e
|
|
7525
7638
|
}), (t) => (t.aspects[e] = r, t);
|
|
7526
|
-
},
|
|
7639
|
+
}, Ss = function(e) {
|
|
7527
7640
|
let t = "aspect " + e.id + " {\n";
|
|
7528
7641
|
return e.label && (t += " label \"" + s(e.label) + "\"\n"), e.kind && (t += " kind " + N(e.kind) + "\n"), e.definition && (t += " definition \"" + s(e.definition) + "\"\n"), e.metamodelClass && (t += " metamodel_class " + N(e.metamodelClass) + "\n"), e.termRef && (t += " term_ref " + N(e.termRef) + "\n"), e.component && (t += " component " + N(e.component) + "\n"), e.attribute && (t += " attribute " + N(e.attribute) + "\n"), e.contains.length > 0 && (t += " contains { " + e.contains.map(N).join(" ") + " }\n"), e.source && (e.source.doc || e.source.clause) && (t += " source {\n", e.source.doc && (t += " doc \"" + s(e.source.doc) + "\"\n"), e.source.clause && (t += " clause \"" + s(e.source.clause) + "\"\n"), t += " }\n"), t += "}\n", t;
|
|
7529
|
-
},
|
|
7642
|
+
}, Cs = (e, t) => {
|
|
7530
7643
|
let n = {
|
|
7531
7644
|
id: e,
|
|
7532
7645
|
promises: []
|
|
@@ -7534,22 +7647,22 @@ var ss = {
|
|
|
7534
7647
|
return v(t, (e, t) => {
|
|
7535
7648
|
if (e === "promise") {
|
|
7536
7649
|
let e = a(P(t()));
|
|
7537
|
-
n.promises.push(
|
|
7650
|
+
n.promises.push(Po(e, i(t())));
|
|
7538
7651
|
} else return !1;
|
|
7539
7652
|
return !0;
|
|
7540
7653
|
}, {
|
|
7541
7654
|
construct: "promise_set",
|
|
7542
7655
|
id: e
|
|
7543
7656
|
}), (t) => (t.promiseSets[e] = n, t);
|
|
7544
|
-
},
|
|
7657
|
+
}, ws = function(e) {
|
|
7545
7658
|
let t = "promise_set " + N(e.id) + " {\n";
|
|
7546
|
-
for (let n of e.promises) t +=
|
|
7659
|
+
for (let n of e.promises) t += Yo(n, " ", "promise ");
|
|
7547
7660
|
return t += "}\n", t;
|
|
7548
|
-
},
|
|
7661
|
+
}, Ts = [
|
|
7549
7662
|
"shall",
|
|
7550
7663
|
"should",
|
|
7551
7664
|
"may"
|
|
7552
|
-
],
|
|
7665
|
+
], Es = (e, t) => {
|
|
7553
7666
|
let n = {
|
|
7554
7667
|
id: e,
|
|
7555
7668
|
declarationForm: "",
|
|
@@ -7570,7 +7683,7 @@ var ss = {
|
|
|
7570
7683
|
else if (n === "description") t.description = a(r());
|
|
7571
7684
|
else if (n === "obligation") {
|
|
7572
7685
|
let n = a(r());
|
|
7573
|
-
if (!
|
|
7686
|
+
if (!Ts.includes(n)) throw Error(`Parsing error: application_declaration. ID ${e}: Unknown obligation "${n}" (valid: ${Ts.join(", ")})`);
|
|
7574
7687
|
t.obligation = n;
|
|
7575
7688
|
} else if (n === "source") t.source = I(i(r()));
|
|
7576
7689
|
else return !1;
|
|
@@ -7585,12 +7698,12 @@ var ss = {
|
|
|
7585
7698
|
construct: "application_declaration",
|
|
7586
7699
|
id: e
|
|
7587
7700
|
}), (t) => (t.applicationDeclarations[e] = n, t);
|
|
7588
|
-
},
|
|
7701
|
+
}, Ds = function(e) {
|
|
7589
7702
|
let t = "application_declaration " + N(e.id) + " {\n";
|
|
7590
7703
|
e.declarationForm && (t += " declaration_form " + N(e.declarationForm) + "\n");
|
|
7591
7704
|
for (let n of e.documents) t += " document " + N(n.id) + " {\n", n.name && (t += " name \"" + s(n.name) + "\"\n"), n.description && (t += " description \"" + s(n.description) + "\"\n"), n.obligation && (t += " obligation " + N(n.obligation) + "\n"), n.source && (n.source.doc || n.source.clause) && (t += " source {\n", n.source.doc && (t += " doc \"" + s(n.source.doc) + "\"\n"), n.source.clause && (t += " clause \"" + s(n.source.clause) + "\"\n"), t += " }\n"), t += " }\n";
|
|
7592
7705
|
return t += "}\n", t;
|
|
7593
|
-
},
|
|
7706
|
+
}, Os = (e, t) => {
|
|
7594
7707
|
let n = {
|
|
7595
7708
|
id: e,
|
|
7596
7709
|
fields: []
|
|
@@ -7617,28 +7730,28 @@ var ss = {
|
|
|
7617
7730
|
construct: "calculation_context",
|
|
7618
7731
|
id: e
|
|
7619
7732
|
}), (t) => (t.calculationContexts[e] = n, t);
|
|
7620
|
-
},
|
|
7733
|
+
}, ks = function(e) {
|
|
7621
7734
|
let t = "calculation_context " + N(e.id) + " {\n";
|
|
7622
7735
|
for (let n of e.fields) {
|
|
7623
7736
|
let e = " field " + N(n.id) + " { source " + N(n.source);
|
|
7624
7737
|
n.expression && (e += " expression \"" + s(n.expression) + "\""), t += e + " }\n";
|
|
7625
7738
|
}
|
|
7626
7739
|
return t += "}\n", t;
|
|
7627
|
-
},
|
|
7740
|
+
}, As = [
|
|
7628
7741
|
"integer",
|
|
7629
7742
|
"number",
|
|
7630
7743
|
"string",
|
|
7631
7744
|
"text",
|
|
7632
7745
|
"boolean",
|
|
7633
7746
|
"date"
|
|
7634
|
-
],
|
|
7747
|
+
], js = [
|
|
7635
7748
|
"MUST",
|
|
7636
7749
|
"SHALL",
|
|
7637
7750
|
"RECOMMEND",
|
|
7638
7751
|
"SHOULD",
|
|
7639
7752
|
"MAY",
|
|
7640
7753
|
"OPTIONAL"
|
|
7641
|
-
],
|
|
7754
|
+
], Ms = (e, t) => {
|
|
7642
7755
|
let n = {
|
|
7643
7756
|
id: e,
|
|
7644
7757
|
label: "",
|
|
@@ -7661,14 +7774,14 @@ var ss = {
|
|
|
7661
7774
|
if (n === "label") t.label = a(r());
|
|
7662
7775
|
else if (n === "type") {
|
|
7663
7776
|
let n = a(r());
|
|
7664
|
-
if (!
|
|
7777
|
+
if (!As.includes(n)) throw Error(`Parsing error: evaluation_dimensions. ID ${e}: Unknown field type "${n}" (valid: ${As.join(", ")})`);
|
|
7665
7778
|
t.type = n;
|
|
7666
7779
|
} else if (n === "enum") t.enumRef = a(r());
|
|
7667
7780
|
else if (n === "required") t.required = r() === "true";
|
|
7668
7781
|
else if (n === "editable") t.editable = r() === "true";
|
|
7669
7782
|
else if (n === "setting") {
|
|
7670
7783
|
let n = a(r());
|
|
7671
|
-
if (!
|
|
7784
|
+
if (!js.includes(n)) throw Error(`Parsing error: evaluation_dimensions. ID ${e}: Unknown setting "${n}" (valid: ${js.join(", ")})`);
|
|
7672
7785
|
t.setting = n;
|
|
7673
7786
|
} else if (n === "multiple") t.multiple = r() === "true";
|
|
7674
7787
|
else return !1;
|
|
@@ -7683,12 +7796,12 @@ var ss = {
|
|
|
7683
7796
|
construct: "evaluation_dimensions",
|
|
7684
7797
|
id: e
|
|
7685
7798
|
}), (t) => (t.evaluationDimensions[e] = n, t);
|
|
7686
|
-
},
|
|
7799
|
+
}, Ns = function(e) {
|
|
7687
7800
|
let t = "evaluation_dimensions " + N(e.id) + " {\n";
|
|
7688
7801
|
e.label && (t += " label \"" + s(e.label) + "\"\n");
|
|
7689
7802
|
for (let n of e.fields) t += " field " + N(n.id) + " {\n", n.label && (t += " label \"" + s(n.label) + "\"\n"), n.type && (t += " type " + N(n.type) + "\n"), n.enumRef && (t += " enum " + N(n.enumRef) + "\n"), t += " required " + (n.required ? "true" : "false") + "\n", t += " editable " + (n.editable ? "true" : "false") + "\n", n.setting && (t += " setting " + N(n.setting) + "\n"), n.multiple && (t += " multiple true\n"), t += " }\n";
|
|
7690
7803
|
return t += "}\n", t;
|
|
7691
|
-
},
|
|
7804
|
+
}, Ps = (e, t) => {
|
|
7692
7805
|
let r = {
|
|
7693
7806
|
id: e,
|
|
7694
7807
|
dimensions: {},
|
|
@@ -7708,17 +7821,17 @@ var ss = {
|
|
|
7708
7821
|
construct: "evaluation_profile",
|
|
7709
7822
|
id: e
|
|
7710
7823
|
}), (t) => (t.evaluationProfiles[e] = r, t);
|
|
7711
|
-
},
|
|
7824
|
+
}, Fs = function(e) {
|
|
7712
7825
|
let t = "evaluation_profile " + N(e.id) + " {\n", n = Object.keys(e.dimensions);
|
|
7713
7826
|
return n.length > 0 && (t += " dimensions { " + n.map((t) => {
|
|
7714
7827
|
let n = e.dimensions[t];
|
|
7715
7828
|
return Array.isArray(n) ? N(t) + " { " + n.map(N).join(" ") + " }" : N(t) + " " + N(n);
|
|
7716
7829
|
}).join(" ") + " }\n"), e.description && (t += " description \"" + s(e.description) + "\"\n"), t += "}\n", t;
|
|
7717
|
-
},
|
|
7718
|
-
function
|
|
7830
|
+
}, Is = ["mandatory", "optional"];
|
|
7831
|
+
function Ls(e) {
|
|
7719
7832
|
return n(a(e)).map(P).map(a).filter((e) => e.length > 0);
|
|
7720
7833
|
}
|
|
7721
|
-
var
|
|
7834
|
+
var Rs = (e, t) => {
|
|
7722
7835
|
let n = {
|
|
7723
7836
|
id: e,
|
|
7724
7837
|
numberFormat: "",
|
|
@@ -7756,11 +7869,11 @@ var As = (e, t) => {
|
|
|
7756
7869
|
if (n === "type") t.type = a(r());
|
|
7757
7870
|
else if (n === "label") t.label = a(r());
|
|
7758
7871
|
else if (n === "attribute") t.attribute = a(r());
|
|
7759
|
-
else if (n === "attributes") t.attributes =
|
|
7872
|
+
else if (n === "attributes") t.attributes = Ls(r());
|
|
7760
7873
|
else if (n === "dimension") t.dimension = a(r());
|
|
7761
7874
|
else if (n === "obligation") {
|
|
7762
7875
|
let n = a(r());
|
|
7763
|
-
if (!
|
|
7876
|
+
if (!Is.includes(n)) throw Error(`Parsing error: certificate_template. ID ${e}: Unknown obligation "${n}" (valid: ${Is.join(", ")})`);
|
|
7764
7877
|
t.obligation = n;
|
|
7765
7878
|
} else return !1;
|
|
7766
7879
|
return !0;
|
|
@@ -7794,7 +7907,7 @@ var As = (e, t) => {
|
|
|
7794
7907
|
construct: "certificate_template",
|
|
7795
7908
|
id: e
|
|
7796
7909
|
}), (t) => (t.certificateTemplates[e] = n, t);
|
|
7797
|
-
},
|
|
7910
|
+
}, zs = function(e) {
|
|
7798
7911
|
let t = "certificate_template " + N(e.id) + " {\n";
|
|
7799
7912
|
e.numberFormat && (t += " number_format \"" + s(e.numberFormat) + "\"\n"), e.dimensionLabels && (t += " dimension_labels {\n", t += " pattern \"" + s(e.dimensionLabels.pattern) + "\"\n", e.dimensionLabels.separator && (t += " separator \"" + s(e.dimensionLabels.separator) + "\"\n"), t += " }\n");
|
|
7800
7913
|
for (let n of e.characteristics) t += " characteristic " + N(n.id) + " {\n", n.type && (t += " type " + N(n.type) + "\n"), n.label && (t += " label \"" + s(n.label) + "\"\n"), n.attribute && (t += " attribute " + N(n.attribute) + "\n"), n.attributes.length > 0 && (t += " attributes { " + n.attributes.map(N).join(" ") + " }\n"), n.dimension && (t += " dimension " + N(n.dimension) + "\n"), n.obligation && (t += " obligation " + n.obligation + "\n"), t += " }\n";
|
|
@@ -7806,16 +7919,16 @@ var As = (e, t) => {
|
|
|
7806
7919
|
};
|
|
7807
7920
|
//#endregion
|
|
7808
7921
|
//#region src/ser-des/config/artifact.ts
|
|
7809
|
-
function
|
|
7922
|
+
function Bs(e) {
|
|
7810
7923
|
return n(a(e)).map(P).map(a).filter((e) => e.length > 0);
|
|
7811
7924
|
}
|
|
7812
|
-
function
|
|
7925
|
+
function Vs(e, t, n) {
|
|
7813
7926
|
return t.length === 0 ? "" : `${n}${e} { ${t.join(" ")} }\n`;
|
|
7814
7927
|
}
|
|
7815
|
-
function
|
|
7928
|
+
function Hs(e) {
|
|
7816
7929
|
return n(a(e)).map(a).filter((e) => e.length > 0);
|
|
7817
7930
|
}
|
|
7818
|
-
function
|
|
7931
|
+
function Us(e) {
|
|
7819
7932
|
let t = [], r = n(e), i = 0;
|
|
7820
7933
|
for (; i < r.length;) {
|
|
7821
7934
|
let e = P(r[i++]);
|
|
@@ -7835,7 +7948,7 @@ function Fs(e) {
|
|
|
7835
7948
|
}
|
|
7836
7949
|
return t;
|
|
7837
7950
|
}
|
|
7838
|
-
function
|
|
7951
|
+
function Ws(e) {
|
|
7839
7952
|
let t = [], r = n(e), o = 0;
|
|
7840
7953
|
for (; o < r.length;) {
|
|
7841
7954
|
let e = P(r[o++]);
|
|
@@ -7850,14 +7963,14 @@ function Is(e) {
|
|
|
7850
7963
|
for (; t < e.length;) {
|
|
7851
7964
|
let n = e[t++];
|
|
7852
7965
|
if (t >= e.length) break;
|
|
7853
|
-
n === "kinds" ? s.kinds =
|
|
7966
|
+
n === "kinds" ? s.kinds = Bs(e[t++]) : n === "role" ? s.role = a(e[t++]) : i(e[t++]);
|
|
7854
7967
|
}
|
|
7855
7968
|
}
|
|
7856
7969
|
t.push(s);
|
|
7857
7970
|
}
|
|
7858
7971
|
return t;
|
|
7859
7972
|
}
|
|
7860
|
-
function
|
|
7973
|
+
function Gs(e) {
|
|
7861
7974
|
let t = {
|
|
7862
7975
|
fields: [],
|
|
7863
7976
|
structure: "",
|
|
@@ -7866,11 +7979,11 @@ function Ls(e) {
|
|
|
7866
7979
|
for (; o < r.length;) {
|
|
7867
7980
|
let e = r[o++];
|
|
7868
7981
|
if (o >= r.length) break;
|
|
7869
|
-
e === "fields" ? t.fields =
|
|
7982
|
+
e === "fields" ? t.fields = Us(i(r[o++])) : e === "structure" ? t.structure = a(r[o++]) : e === "media" ? t.media = Ws(i(r[o++])) : o = y(r, o, e);
|
|
7870
7983
|
}
|
|
7871
7984
|
return t;
|
|
7872
7985
|
}
|
|
7873
|
-
var
|
|
7986
|
+
var Ks = function(e, t) {
|
|
7874
7987
|
let n = {
|
|
7875
7988
|
id: e,
|
|
7876
7989
|
name: "",
|
|
@@ -7890,7 +8003,7 @@ var Rs = function(e, t) {
|
|
|
7890
8003
|
if (s >= o.length) break;
|
|
7891
8004
|
if (e === "name") n.name = a(o[s++]);
|
|
7892
8005
|
else if (e === "description") n.description = a(o[s++]);
|
|
7893
|
-
else if (e === "content_contract") n.contentContract =
|
|
8006
|
+
else if (e === "content_contract") n.contentContract = Gs(i(o[s++]));
|
|
7894
8007
|
else if (e === "produced_when") {
|
|
7895
8008
|
let e = a(o[s++] ?? "");
|
|
7896
8009
|
n.producedWhen = e === "per_interval" ? {
|
|
@@ -7904,7 +8017,7 @@ var Rs = function(e, t) {
|
|
|
7904
8017
|
else if (e === "source") {
|
|
7905
8018
|
let e = I(i(o[s++]));
|
|
7906
8019
|
(n.sourceRefs ??= []).push(e), n.source ||= e;
|
|
7907
|
-
} else if (e === "reference") n.referenceIds =
|
|
8020
|
+
} else if (e === "reference") n.referenceIds = Hs(o[s++]);
|
|
7908
8021
|
else if (e === "ref") {
|
|
7909
8022
|
let e = S(o, s, a, i);
|
|
7910
8023
|
T(n, e.ref) || (n.refs ??= []).push(e.ref), s = e.next;
|
|
@@ -7915,10 +8028,10 @@ var Rs = function(e, t) {
|
|
|
7915
8028
|
}
|
|
7916
8029
|
return (t) => (t.artifactDefinitions[e] = n, t);
|
|
7917
8030
|
};
|
|
7918
|
-
function
|
|
8031
|
+
function qs(e) {
|
|
7919
8032
|
return e.kind === "per_interval" ? `per_interval ${N(e.interval ?? "")}` : e.kind === "on_event" ? `on_event ${N(e.event ?? "")}` : e.kind;
|
|
7920
8033
|
}
|
|
7921
|
-
var
|
|
8034
|
+
var Js = function(e) {
|
|
7922
8035
|
let t = "artifact_definition " + e.id + " {\n";
|
|
7923
8036
|
e.name && (t += " name \"" + s(e.name) + "\"\n"), e.description && (t += " description \"" + s(e.description) + "\"\n");
|
|
7924
8037
|
let n = e.contentContract;
|
|
@@ -7938,11 +8051,11 @@ var Bs = function(e) {
|
|
|
7938
8051
|
}
|
|
7939
8052
|
t += " }\n";
|
|
7940
8053
|
}
|
|
7941
|
-
e.producedWhen.kind && (t += " produced_when " +
|
|
8054
|
+
e.producedWhen.kind && (t += " produced_when " + qs(e.producedWhen) + "\n"), e.retention && (t += " retention \"" + s(e.retention) + "\"\n");
|
|
7942
8055
|
let r = e.sourceRefs && e.sourceRefs.length > 0 ? e.sourceRefs : e.source ? [e.source] : [];
|
|
7943
8056
|
for (let e of r) t += E(e, " ", s);
|
|
7944
|
-
return t += w(e.refs, " ", s), t += k(e.correspondences, " ", s, N), t +=
|
|
7945
|
-
},
|
|
8057
|
+
return t += w(e.refs, " ", s), t += k(e.correspondences, " ", s, N), t += Vs("reference", e.referenceIds, " "), t += "}\n", t;
|
|
8058
|
+
}, Ys = function(e, t) {
|
|
7946
8059
|
let n = {
|
|
7947
8060
|
id: e,
|
|
7948
8061
|
of: "",
|
|
@@ -7955,34 +8068,34 @@ var Bs = function(e) {
|
|
|
7955
8068
|
for (; s < o.length;) {
|
|
7956
8069
|
let e = o[s++];
|
|
7957
8070
|
if (s >= o.length) break;
|
|
7958
|
-
e === "of" ? n.of = a(o[s++]) : e === "produced_at" ? n.producedAt = a(o[s++]) : e === "by" ? n.by = a(o[s++]) : e === "content" ? n.content =
|
|
8071
|
+
e === "of" ? n.of = a(o[s++]) : e === "produced_at" ? n.producedAt = a(o[s++]) : e === "by" ? n.by = a(o[s++]) : e === "content" ? n.content = cs(i(o[s++])) : e === "links" ? n.links = Bs(o[s++]) : e === "reference" ? n.referenceIds = Hs(o[s++]) : s = y(o, s, e);
|
|
7959
8072
|
}
|
|
7960
8073
|
return (t) => (t.artifactInstances[e] = n, t);
|
|
7961
|
-
},
|
|
8074
|
+
}, Xs = function(e) {
|
|
7962
8075
|
let t = "artifact_instance " + e.id + " {\n";
|
|
7963
8076
|
e.of && (t += " of " + e.of + "\n"), e.producedAt && (t += " produced_at " + N(e.producedAt) + "\n"), e.by && (t += " by " + N(e.by) + "\n");
|
|
7964
8077
|
let n = Object.keys(e.content);
|
|
7965
|
-
return n.length > 0 && (t += " content { " + n.map((t) => t + " : " + be(e.content[t])).join(" ") + " }\n"), t +=
|
|
7966
|
-
},
|
|
8078
|
+
return n.length > 0 && (t += " content { " + n.map((t) => t + " : " + be(e.content[t])).join(" ") + " }\n"), t += Vs("links", e.links, " "), t += Vs("reference", e.referenceIds, " "), t += "}\n", t;
|
|
8079
|
+
}, Zs = {
|
|
7967
8080
|
keyword: "artifact_definition",
|
|
7968
8081
|
field: "artifactDefinitions",
|
|
7969
8082
|
takesID: !0,
|
|
7970
|
-
parse:
|
|
7971
|
-
dump:
|
|
7972
|
-
},
|
|
8083
|
+
parse: Ks,
|
|
8084
|
+
dump: Js
|
|
8085
|
+
}, Qs = {
|
|
7973
8086
|
keyword: "artifact_instance",
|
|
7974
8087
|
field: "artifactInstances",
|
|
7975
8088
|
takesID: !0,
|
|
7976
|
-
parse:
|
|
7977
|
-
dump:
|
|
7978
|
-
},
|
|
7979
|
-
function
|
|
8089
|
+
parse: Ys,
|
|
8090
|
+
dump: Xs
|
|
8091
|
+
}, $s = F;
|
|
8092
|
+
function ec(e, t) {
|
|
7980
8093
|
let n = e[t] ?? "";
|
|
7981
8094
|
if (n.startsWith("{")) return {
|
|
7982
8095
|
selector: {
|
|
7983
8096
|
kind: "refs",
|
|
7984
8097
|
expression: "",
|
|
7985
|
-
refs:
|
|
8098
|
+
refs: $s(n)
|
|
7986
8099
|
},
|
|
7987
8100
|
next: t + 1
|
|
7988
8101
|
};
|
|
@@ -8007,7 +8120,7 @@ function Ks(e, t) {
|
|
|
8007
8120
|
next: t + 1
|
|
8008
8121
|
};
|
|
8009
8122
|
}
|
|
8010
|
-
function
|
|
8123
|
+
function tc(e) {
|
|
8011
8124
|
let t = [], n = se(e), r = 0;
|
|
8012
8125
|
for (; r < n.length;) {
|
|
8013
8126
|
let e = n[r++];
|
|
@@ -8039,7 +8152,7 @@ function qs(e) {
|
|
|
8039
8152
|
}
|
|
8040
8153
|
return t;
|
|
8041
8154
|
}
|
|
8042
|
-
function
|
|
8155
|
+
function nc(e) {
|
|
8043
8156
|
let t = {
|
|
8044
8157
|
requirements: {
|
|
8045
8158
|
kind: "",
|
|
@@ -8055,13 +8168,13 @@ function Js(e) {
|
|
|
8055
8168
|
for (; r < n.length;) {
|
|
8056
8169
|
let e = n[r++];
|
|
8057
8170
|
if (e === "requirements" || e === "promises") {
|
|
8058
|
-
let i =
|
|
8171
|
+
let i = ec(n, r);
|
|
8059
8172
|
t[e] = i.selector, r = i.next;
|
|
8060
8173
|
}
|
|
8061
8174
|
}
|
|
8062
8175
|
return t;
|
|
8063
8176
|
}
|
|
8064
|
-
function
|
|
8177
|
+
function rc(e) {
|
|
8065
8178
|
let t = [], n = se(e), r = 0;
|
|
8066
8179
|
for (; r < n.length;) {
|
|
8067
8180
|
let e = n[r++];
|
|
@@ -8075,7 +8188,7 @@ function Ys(e) {
|
|
|
8075
8188
|
}
|
|
8076
8189
|
return t;
|
|
8077
8190
|
}
|
|
8078
|
-
function
|
|
8191
|
+
function ic(e) {
|
|
8079
8192
|
let t = [], n = se(e), r = 0;
|
|
8080
8193
|
for (; r < n.length;) {
|
|
8081
8194
|
let e = n[r++];
|
|
@@ -8089,7 +8202,7 @@ function Xs(e) {
|
|
|
8089
8202
|
}
|
|
8090
8203
|
return t;
|
|
8091
8204
|
}
|
|
8092
|
-
function
|
|
8205
|
+
function ac(e) {
|
|
8093
8206
|
let t = [], n = r(e), o = 0;
|
|
8094
8207
|
for (; o < n.length;) {
|
|
8095
8208
|
if (n[o++] !== "on") continue;
|
|
@@ -8097,7 +8210,7 @@ function Zs(e) {
|
|
|
8097
8210
|
if (o < n.length && n[o].startsWith("{")) {
|
|
8098
8211
|
t.push({
|
|
8099
8212
|
outcome: e,
|
|
8100
|
-
actions:
|
|
8213
|
+
actions: ic(i(n[o++]))
|
|
8101
8214
|
});
|
|
8102
8215
|
continue;
|
|
8103
8216
|
}
|
|
@@ -8119,7 +8232,7 @@ function Zs(e) {
|
|
|
8119
8232
|
}
|
|
8120
8233
|
return t;
|
|
8121
8234
|
}
|
|
8122
|
-
var
|
|
8235
|
+
var oc = function(e, t) {
|
|
8123
8236
|
let n = {
|
|
8124
8237
|
id: e,
|
|
8125
8238
|
over: [],
|
|
@@ -8141,12 +8254,12 @@ var Qs = function(e, t) {
|
|
|
8141
8254
|
referenceIds: []
|
|
8142
8255
|
};
|
|
8143
8256
|
return v(t, (e, t) => {
|
|
8144
|
-
if (e === "over") n.over =
|
|
8145
|
-
else if (e === "triggers") n.triggers =
|
|
8146
|
-
else if (e === "evaluate") n.evaluate =
|
|
8147
|
-
else if (e === "emit") n.emit =
|
|
8148
|
-
else if (e === "escalate") n.escalate =
|
|
8149
|
-
else if (e === "reference") n.referenceIds =
|
|
8257
|
+
if (e === "over") n.over = $s(t());
|
|
8258
|
+
else if (e === "triggers") n.triggers = tc(i(t()));
|
|
8259
|
+
else if (e === "evaluate") n.evaluate = nc(i(t()));
|
|
8260
|
+
else if (e === "emit") n.emit = rc(i(t()));
|
|
8261
|
+
else if (e === "escalate") n.escalate = ac(i(t()));
|
|
8262
|
+
else if (e === "reference") n.referenceIds = $s(t());
|
|
8150
8263
|
else return !1;
|
|
8151
8264
|
return !0;
|
|
8152
8265
|
}, {
|
|
@@ -8154,46 +8267,46 @@ var Qs = function(e, t) {
|
|
|
8154
8267
|
id: e
|
|
8155
8268
|
}), (t) => (t.monitors[e] = n, t);
|
|
8156
8269
|
};
|
|
8157
|
-
function
|
|
8270
|
+
function sc(e) {
|
|
8158
8271
|
return e.kind === "timer" ? "every " + N(e.every) : e.kind === "signal" ? "on signal " + N(e.signal) : e.kind === "change" ? "on change " + N(e.aspect) : "on " + N(e.kind);
|
|
8159
8272
|
}
|
|
8160
|
-
function
|
|
8273
|
+
function cc(e) {
|
|
8161
8274
|
return e.kind === "applicable_to" ? "applicable_to(" + e.expression + ")" : e.kind === "refs" ? "{ " + e.refs.map(N).join(" ") + " }" : N(e.kind);
|
|
8162
8275
|
}
|
|
8163
|
-
function
|
|
8276
|
+
function lc(e) {
|
|
8164
8277
|
let t = e.actions.map((e) => e.action === "notify" ? "notify " + N(e.role) : N(e.action)).join(" ");
|
|
8165
8278
|
return "on " + N(e.outcome) + " { " + t + " }";
|
|
8166
8279
|
}
|
|
8167
|
-
var
|
|
8280
|
+
var uc = {
|
|
8168
8281
|
keyword: "monitor",
|
|
8169
8282
|
field: "monitors",
|
|
8170
8283
|
takesID: !0,
|
|
8171
|
-
parse:
|
|
8284
|
+
parse: oc,
|
|
8172
8285
|
dump: function(e) {
|
|
8173
8286
|
let t = "monitor " + e.id + " {\n";
|
|
8174
|
-
e.over.length > 0 && (t += " over { " + e.over.map(N).join(" ") + " }\n"), e.triggers.length > 0 && (t += " triggers { " + e.triggers.map(
|
|
8287
|
+
e.over.length > 0 && (t += " over { " + e.over.map(N).join(" ") + " }\n"), e.triggers.length > 0 && (t += " triggers { " + e.triggers.map(sc).join(" ") + " }\n");
|
|
8175
8288
|
let n = e.evaluate.requirements, r = e.evaluate.promises;
|
|
8176
|
-
return (n.kind || r.kind) && (t += " evaluate {", n.kind && (t += " requirements " +
|
|
8289
|
+
return (n.kind || r.kind) && (t += " evaluate {", n.kind && (t += " requirements " + cc(n)), r.kind && (t += " promises " + cc(r)), t += " }\n"), e.emit.length > 0 && (t += " emit { " + e.emit.map((e) => e.stream + " -> " + N(e.target)).join(" ") + " }\n"), e.escalate.length > 0 && (t += " escalate { " + e.escalate.map(lc).join(" ") + " }\n"), e.referenceIds.length > 0 && (t += " reference { " + e.referenceIds.map(N).join(" ") + " }\n"), t += "}\n", t;
|
|
8177
8290
|
}
|
|
8178
|
-
},
|
|
8291
|
+
}, dc = [
|
|
8179
8292
|
"identity",
|
|
8180
8293
|
"composition",
|
|
8181
8294
|
"promises_as_verified",
|
|
8182
8295
|
"live_compliance_status",
|
|
8183
8296
|
"artifacts",
|
|
8184
8297
|
"sustainability"
|
|
8185
|
-
],
|
|
8298
|
+
], fc = [
|
|
8186
8299
|
"public",
|
|
8187
8300
|
"restricted",
|
|
8188
8301
|
"authority"
|
|
8189
|
-
],
|
|
8302
|
+
], pc = [
|
|
8190
8303
|
"model",
|
|
8191
8304
|
"batch",
|
|
8192
8305
|
"item"
|
|
8193
8306
|
];
|
|
8194
8307
|
//#endregion
|
|
8195
8308
|
//#region src/ser-des/config/passport.ts
|
|
8196
|
-
function
|
|
8309
|
+
function mc(e, t) {
|
|
8197
8310
|
return F(t).map((t) => {
|
|
8198
8311
|
let n = t.indexOf(".");
|
|
8199
8312
|
return n === -1 ? {
|
|
@@ -8207,7 +8320,7 @@ function oc(e, t) {
|
|
|
8207
8320
|
};
|
|
8208
8321
|
});
|
|
8209
8322
|
}
|
|
8210
|
-
var
|
|
8323
|
+
var hc = function(e, t) {
|
|
8211
8324
|
let n = {
|
|
8212
8325
|
id: e,
|
|
8213
8326
|
upi: {
|
|
@@ -8246,8 +8359,8 @@ var sc = function(e, t) {
|
|
|
8246
8359
|
} else if (t === "reference") n.referenceIds = F(r());
|
|
8247
8360
|
else {
|
|
8248
8361
|
let i = r();
|
|
8249
|
-
if (
|
|
8250
|
-
else if (i.startsWith("{")) throw Error(`Parsing error: passport. ID ${e}: unknown access class "${t}" — access classes are ${
|
|
8362
|
+
if (fc.includes(t)) n.entries.push(...mc(t, i));
|
|
8363
|
+
else if (i.startsWith("{")) throw Error(`Parsing error: passport. ID ${e}: unknown access class "${t}" — access classes are ${fc.join(" | ")} (fail-closed: an unknown access class is never served)`);
|
|
8251
8364
|
}
|
|
8252
8365
|
return !0;
|
|
8253
8366
|
}, {
|
|
@@ -8255,26 +8368,26 @@ var sc = function(e, t) {
|
|
|
8255
8368
|
id: e
|
|
8256
8369
|
}), (t) => (t.passports[e] = n, t);
|
|
8257
8370
|
};
|
|
8258
|
-
function
|
|
8371
|
+
function gc(e) {
|
|
8259
8372
|
return N(e.ref === "" ? e.contentClass : e.contentClass + "." + e.ref);
|
|
8260
8373
|
}
|
|
8261
|
-
var
|
|
8374
|
+
var _c = {
|
|
8262
8375
|
keyword: "passport",
|
|
8263
8376
|
field: "passports",
|
|
8264
8377
|
takesID: !0,
|
|
8265
|
-
parse:
|
|
8378
|
+
parse: hc,
|
|
8266
8379
|
dump: function(e) {
|
|
8267
8380
|
let t = "passport " + e.id + " {\n";
|
|
8268
8381
|
(e.upi.pattern !== "" || e.upi.level !== "") && (t += " upi {", e.upi.pattern !== "" && (t += " pattern " + N(e.upi.pattern)), e.upi.level !== "" && (t += " level " + N(e.upi.level)), t += " }\n");
|
|
8269
8382
|
for (let n of e.carriers) t += " carrier { kind " + N(n.kind) + " payload " + N(n.payload) + " }\n";
|
|
8270
|
-
let n = [...
|
|
8383
|
+
let n = [...fc, ...[...new Set(e.entries.map((e) => e.access))].filter((e) => !fc.includes(e))];
|
|
8271
8384
|
for (let r of n) {
|
|
8272
8385
|
let n = e.entries.filter((e) => e.access === r);
|
|
8273
|
-
n.length > 0 && (t += " " + r + " { " + n.map(
|
|
8386
|
+
n.length > 0 && (t += " " + r + " { " + n.map(gc).join(" ") + " }\n");
|
|
8274
8387
|
}
|
|
8275
8388
|
return e.referenceIds.length > 0 && (t += " reference { " + e.referenceIds.map(N).join(" ") + " }\n"), t += "}\n", t;
|
|
8276
8389
|
}
|
|
8277
|
-
},
|
|
8390
|
+
}, vc = {
|
|
8278
8391
|
keyword: "invariant",
|
|
8279
8392
|
field: "invariants",
|
|
8280
8393
|
takesID: !0,
|
|
@@ -8314,7 +8427,7 @@ var lc = {
|
|
|
8314
8427
|
};
|
|
8315
8428
|
//#endregion
|
|
8316
8429
|
//#region src/ser-des/config/testSequence.ts
|
|
8317
|
-
function
|
|
8430
|
+
function yc(e, t, n) {
|
|
8318
8431
|
v(e, (e, n) => {
|
|
8319
8432
|
if (e === "test") t.test = a(n());
|
|
8320
8433
|
else if (e === "phase") t.phase = a(n());
|
|
@@ -8327,7 +8440,7 @@ function dc(e, t, n) {
|
|
|
8327
8440
|
id: n
|
|
8328
8441
|
});
|
|
8329
8442
|
}
|
|
8330
|
-
var
|
|
8443
|
+
var bc = {
|
|
8331
8444
|
keyword: "test_sequence",
|
|
8332
8445
|
field: "testSequences",
|
|
8333
8446
|
takesID: !0,
|
|
@@ -8361,7 +8474,7 @@ var fc = {
|
|
|
8361
8474
|
role: "",
|
|
8362
8475
|
dependsOn: null
|
|
8363
8476
|
}, r = o[s++];
|
|
8364
|
-
r.startsWith("{") || (t.order = Number(a(r)), r = s < o.length && o[s].startsWith("{") ? o[s++] : ""), r.startsWith("{") &&
|
|
8477
|
+
r.startsWith("{") || (t.order = Number(a(r)), r = s < o.length && o[s].startsWith("{") ? o[s++] : ""), r.startsWith("{") && yc(i(r), t, e), n.steps.push(t);
|
|
8365
8478
|
} else s++;
|
|
8366
8479
|
}
|
|
8367
8480
|
return (t) => (t.testSequences[e] = n, t);
|
|
@@ -8375,7 +8488,7 @@ var fc = {
|
|
|
8375
8488
|
for (let n of e.sourceRefs) t += E(n, " ", s);
|
|
8376
8489
|
return t += k(e.correspondences, " ", s, N), t += "}\n", t;
|
|
8377
8490
|
}
|
|
8378
|
-
},
|
|
8491
|
+
}, xc = {
|
|
8379
8492
|
keyword: "formulas_used",
|
|
8380
8493
|
field: "formulasUsed",
|
|
8381
8494
|
takesID: !0,
|
|
@@ -8410,7 +8523,7 @@ var fc = {
|
|
|
8410
8523
|
for (let n of e.sourceRefs) t += E(n, " ", s);
|
|
8411
8524
|
return t += k(e.correspondences, " ", s, N), t += "}\n", t;
|
|
8412
8525
|
}
|
|
8413
|
-
},
|
|
8526
|
+
}, Sc = function(e, t) {
|
|
8414
8527
|
let n = {
|
|
8415
8528
|
id: e,
|
|
8416
8529
|
entries: []
|
|
@@ -8439,14 +8552,14 @@ var fc = {
|
|
|
8439
8552
|
let r = t.texts[e];
|
|
8440
8553
|
return r ? r.entries.push(...n.entries) : t.texts[e] = n, t;
|
|
8441
8554
|
};
|
|
8442
|
-
},
|
|
8555
|
+
}, Cc = function(e) {
|
|
8443
8556
|
let t = "text " + e.id + " {\n";
|
|
8444
8557
|
for (let n of e.entries) t += " spell " + n.spelling + (n.via ? " via " + n.via : "") + " \"" + s(n.value) + "\"\n";
|
|
8445
8558
|
return t += "}\n", t;
|
|
8446
8559
|
};
|
|
8447
8560
|
//#endregion
|
|
8448
8561
|
//#region src/ser-des/config/quantityRegister.ts
|
|
8449
|
-
function
|
|
8562
|
+
function wc(e) {
|
|
8450
8563
|
let t = {}, r = n(e);
|
|
8451
8564
|
for (let e = 0; e + 1 < r.length; e += 2) {
|
|
8452
8565
|
let n = P(r[e]), i = Number(r[e + 1]);
|
|
@@ -8454,11 +8567,11 @@ function gc(e) {
|
|
|
8454
8567
|
}
|
|
8455
8568
|
return t;
|
|
8456
8569
|
}
|
|
8457
|
-
function
|
|
8570
|
+
function Tc(e, t) {
|
|
8458
8571
|
let n = Number(a(e));
|
|
8459
8572
|
return Number.isNaN(n) ? t : n;
|
|
8460
8573
|
}
|
|
8461
|
-
function
|
|
8574
|
+
function Ec(e, t) {
|
|
8462
8575
|
let r = {
|
|
8463
8576
|
id: e,
|
|
8464
8577
|
dimensions: {},
|
|
@@ -8468,7 +8581,7 @@ function vc(e, t) {
|
|
|
8468
8581
|
for (; s < o.length;) {
|
|
8469
8582
|
let e = o[s++];
|
|
8470
8583
|
if (s >= o.length) break;
|
|
8471
|
-
if (e === "dimensions") r.dimensions =
|
|
8584
|
+
if (e === "dimensions") r.dimensions = wc(i(o[s++]));
|
|
8472
8585
|
else if (e === "si_unit") r.siUnit = a(o[s++]);
|
|
8473
8586
|
else if (e === "description") r.description = a(o[s++]);
|
|
8474
8587
|
else if (e === "corresponds") {
|
|
@@ -8478,7 +8591,7 @@ function vc(e, t) {
|
|
|
8478
8591
|
}
|
|
8479
8592
|
return r;
|
|
8480
8593
|
}
|
|
8481
|
-
function
|
|
8594
|
+
function Dc(e, t) {
|
|
8482
8595
|
let r = {
|
|
8483
8596
|
id: e,
|
|
8484
8597
|
symbol: "",
|
|
@@ -8494,8 +8607,8 @@ function yc(e, t) {
|
|
|
8494
8607
|
if (e === "symbol") r.symbol = a(o[s++]);
|
|
8495
8608
|
else if (e === "label") r.label = a(o[s++]);
|
|
8496
8609
|
else if (e === "kind") r.kind = a(o[s++]);
|
|
8497
|
-
else if (e === "factor") r.factorToSI =
|
|
8498
|
-
else if (e === "offset") r.offsetToSI =
|
|
8610
|
+
else if (e === "factor") r.factorToSI = Tc(o[s++], 1);
|
|
8611
|
+
else if (e === "offset") r.offsetToSI = Tc(o[s++], 0);
|
|
8499
8612
|
else if (e === "definition") r.definition = a(o[s++]);
|
|
8500
8613
|
else if (e === "corresponds") {
|
|
8501
8614
|
let { corr: e, next: t } = D(o, s, a);
|
|
@@ -8504,7 +8617,7 @@ function yc(e, t) {
|
|
|
8504
8617
|
}
|
|
8505
8618
|
return r;
|
|
8506
8619
|
}
|
|
8507
|
-
var
|
|
8620
|
+
var Oc = function(e, t) {
|
|
8508
8621
|
let o = {
|
|
8509
8622
|
id: e,
|
|
8510
8623
|
kinds: [],
|
|
@@ -8514,11 +8627,11 @@ var bc = function(e, t) {
|
|
|
8514
8627
|
for (; c < s.length;) {
|
|
8515
8628
|
let e = s[c++];
|
|
8516
8629
|
if (c >= s.length) break;
|
|
8517
|
-
e === "kind" ? o.kinds.push(
|
|
8630
|
+
e === "kind" ? o.kinds.push(Ec(P(s[c++]), i(s[c++]))) : e === "unit" ? o.units.push(Dc(P(s[c++]), i(s[c++]))) : e === "reference" ? o.referenceIds = n(a(s[c++])).map(a).filter((e) => e.length > 0) : i(s[c++]);
|
|
8518
8631
|
}
|
|
8519
8632
|
return (t) => (t.quantityRegisters[e] = o, t);
|
|
8520
8633
|
};
|
|
8521
|
-
function
|
|
8634
|
+
function kc(e) {
|
|
8522
8635
|
let t = "";
|
|
8523
8636
|
for (let n of e ?? []) if (t += " corresponds " + N(n.scheme) + " \"" + s(n.concept) + "\"", n.projections.length > 0) {
|
|
8524
8637
|
t += " {";
|
|
@@ -8531,28 +8644,28 @@ function xc(e) {
|
|
|
8531
8644
|
}
|
|
8532
8645
|
return t;
|
|
8533
8646
|
}
|
|
8534
|
-
function
|
|
8647
|
+
function Ac(e) {
|
|
8535
8648
|
let t = Object.keys(e);
|
|
8536
8649
|
return t.length === 0 ? "" : " dimensions { " + t.map((t) => t + " " + e[t]).join(" ") + " }";
|
|
8537
8650
|
}
|
|
8538
|
-
var
|
|
8651
|
+
var jc = {
|
|
8539
8652
|
keyword: "quantity_register",
|
|
8540
8653
|
field: "quantityRegisters",
|
|
8541
8654
|
takesID: !0,
|
|
8542
|
-
parse:
|
|
8655
|
+
parse: Oc,
|
|
8543
8656
|
dump: function(e) {
|
|
8544
8657
|
let t = "quantity_register " + e.id + " {\n";
|
|
8545
8658
|
for (let n of e.kinds) {
|
|
8546
|
-
let e = " kind " + n.id + " {" +
|
|
8547
|
-
n.siUnit && (e += " si_unit \"" + s(n.siUnit) + "\""), n.description && (e += " description \"" + s(n.description) + "\""), e +=
|
|
8659
|
+
let e = " kind " + n.id + " {" + Ac(n.dimensions);
|
|
8660
|
+
n.siUnit && (e += " si_unit \"" + s(n.siUnit) + "\""), n.description && (e += " description \"" + s(n.description) + "\""), e += kc(n.correspondences), t += e + " }\n";
|
|
8548
8661
|
}
|
|
8549
8662
|
for (let n of e.units) {
|
|
8550
8663
|
let e = " unit " + N(n.id) + " {";
|
|
8551
|
-
n.symbol && (e += " symbol \"" + s(n.symbol) + "\""), n.label && (e += " label \"" + s(n.label) + "\""), n.kind && (e += " kind " + n.kind), n.factorToSI !== 1 && (e += " factor " + n.factorToSI), n.offsetToSI !== 0 && (e += " offset " + n.offsetToSI), n.definition && (e += " definition \"" + s(n.definition) + "\""), e +=
|
|
8664
|
+
n.symbol && (e += " symbol \"" + s(n.symbol) + "\""), n.label && (e += " label \"" + s(n.label) + "\""), n.kind && (e += " kind " + n.kind), n.factorToSI !== 1 && (e += " factor " + n.factorToSI), n.offsetToSI !== 0 && (e += " offset " + n.offsetToSI), n.definition && (e += " definition \"" + s(n.definition) + "\""), e += kc(n.correspondences), t += e + " }\n";
|
|
8552
8665
|
}
|
|
8553
8666
|
return e.referenceIds.length > 0 && (t += " reference { " + e.referenceIds.join(" ") + " }\n"), t += "}\n", t;
|
|
8554
8667
|
}
|
|
8555
|
-
},
|
|
8668
|
+
}, Mc = {
|
|
8556
8669
|
keyword: "dual",
|
|
8557
8670
|
field: "duals",
|
|
8558
8671
|
takesID: !0,
|
|
@@ -8576,18 +8689,18 @@ var Cc = {
|
|
|
8576
8689
|
};
|
|
8577
8690
|
//#endregion
|
|
8578
8691
|
//#region src/ser-des/config/trustRef.ts
|
|
8579
|
-
function
|
|
8692
|
+
function Nc(e, t, n) {
|
|
8580
8693
|
let r = {
|
|
8581
8694
|
org: n(e()),
|
|
8582
8695
|
kid: ""
|
|
8583
8696
|
};
|
|
8584
8697
|
return t() === "key" && (e(), r.kid = n(e())), r;
|
|
8585
8698
|
}
|
|
8586
|
-
function
|
|
8699
|
+
function Pc(e, t, n) {
|
|
8587
8700
|
let r = `${t}trust_ref ${n(e.org)}`;
|
|
8588
8701
|
return e.kid !== "" && (r += ` key ${n(e.kid)}`), r + "\n";
|
|
8589
8702
|
}
|
|
8590
|
-
var
|
|
8703
|
+
var Fc = {
|
|
8591
8704
|
keyword: "dataspace",
|
|
8592
8705
|
field: "dataspaces",
|
|
8593
8706
|
takesID: !0,
|
|
@@ -8652,7 +8765,7 @@ var Dc = {
|
|
|
8652
8765
|
description: ""
|
|
8653
8766
|
}, o = r();
|
|
8654
8767
|
o && o.startsWith("{") && v(i(t()), (t, n, r) => {
|
|
8655
|
-
if (t === "trust_ref") e.trustRef =
|
|
8768
|
+
if (t === "trust_ref") e.trustRef = Nc(n, r, a);
|
|
8656
8769
|
else if (t === "role") e.role = a(n());
|
|
8657
8770
|
else if (t === "description") e.description = x(n);
|
|
8658
8771
|
else return !1;
|
|
@@ -8682,17 +8795,17 @@ var Dc = {
|
|
|
8682
8795
|
for (let n of e.participantClasses) t += " participant_class " + N(n.id) + " {\n", n.label && (t += " label \"" + s(n.label) + "\"\n"), n.description && (t += " description \"" + s(n.description) + "\"\n"), t += " }\n";
|
|
8683
8796
|
for (let n of e.artifactClasses) t += " artifact_class " + N(n.id) + " {\n", n.label && (t += " label \"" + s(n.label) + "\"\n"), n.description && (t += " description \"" + s(n.description) + "\"\n"), n.element && (t += " element " + N(n.element) + "\n"), n.policy && (t += " policy " + N(n.policy) + "\n"), t += " }\n";
|
|
8684
8797
|
e.policies.length > 0 && (t += " policies { " + e.policies.map(N).join(" ") + " }\n"), e.defaultPolicy && (t += " default_policy " + N(e.defaultPolicy) + "\n");
|
|
8685
|
-
for (let n of e.trustAnchors) t += " trust_anchor " + N(n.id) + " {\n", n.trustRef && (t +=
|
|
8798
|
+
for (let n of e.trustAnchors) t += " trust_anchor " + N(n.id) + " {\n", n.trustRef && (t += Pc(n.trustRef, " ", N)), n.role && (t += " role " + N(n.role) + "\n"), n.description && (t += " description \"" + s(n.description) + "\"\n"), t += " }\n";
|
|
8686
8799
|
e.compatibleWith.length > 0 && (t += " compatible_with { " + e.compatibleWith.map(N).join(" ") + " }\n");
|
|
8687
8800
|
let n = e.sourceRefs && e.sourceRefs.length > 0 ? e.sourceRefs : e.source ? [e.source] : [];
|
|
8688
8801
|
for (let e of n) t += E(e, " ", s);
|
|
8689
8802
|
return t += w(e.refs, " ", s), t += k(e.correspondences, " ", s, N), t += "}\n", t;
|
|
8690
8803
|
}
|
|
8691
|
-
},
|
|
8804
|
+
}, Ic = [
|
|
8692
8805
|
"permission",
|
|
8693
8806
|
"obligation",
|
|
8694
8807
|
"prohibition"
|
|
8695
|
-
],
|
|
8808
|
+
], Lc = {
|
|
8696
8809
|
keyword: "policy",
|
|
8697
8810
|
field: "policies",
|
|
8698
8811
|
takesID: !0,
|
|
@@ -8726,7 +8839,7 @@ var Dc = {
|
|
|
8726
8839
|
t && t.startsWith("{") && v(i(r()), (t, n) => {
|
|
8727
8840
|
if (t === "kind") {
|
|
8728
8841
|
let t = a(n());
|
|
8729
|
-
if (!
|
|
8842
|
+
if (!Ic.includes(t)) throw Error(`Parsing error: policy.rule. ID ${e.id}: unknown rule kind "${t}" — rule kinds are ${Ic.join(" | ")} (fail-closed: a misspelt kind never parses into a rule that says nothing)`);
|
|
8730
8843
|
e.kind = t;
|
|
8731
8844
|
} else if (t === "action") e.action = a(n());
|
|
8732
8845
|
else if (t === "artifact") e.artifact = a(n());
|
|
@@ -8763,18 +8876,18 @@ var Dc = {
|
|
|
8763
8876
|
for (let e of n) t += E(e, " ", s);
|
|
8764
8877
|
return t += w(e.refs, " ", s), t += k(e.correspondences, " ", s, N), t += "}\n", t;
|
|
8765
8878
|
}
|
|
8766
|
-
},
|
|
8879
|
+
}, Rc = {
|
|
8767
8880
|
keyword: "dimension",
|
|
8768
8881
|
field: "dimensions",
|
|
8769
8882
|
takesID: !0,
|
|
8770
8883
|
parse: function(e, t) {
|
|
8771
|
-
let n =
|
|
8884
|
+
let n = io(e, i(t));
|
|
8772
8885
|
return (t) => (t.dimensions[e] = n, t);
|
|
8773
8886
|
},
|
|
8774
8887
|
dump: function(e) {
|
|
8775
|
-
return
|
|
8888
|
+
return oo(e, "");
|
|
8776
8889
|
}
|
|
8777
|
-
},
|
|
8890
|
+
}, zc = (e, t) => {
|
|
8778
8891
|
let n = {
|
|
8779
8892
|
id: e,
|
|
8780
8893
|
label: "",
|
|
@@ -8793,13 +8906,13 @@ var Dc = {
|
|
|
8793
8906
|
construct: "activity_archetype",
|
|
8794
8907
|
id: e
|
|
8795
8908
|
}), (t) => (t.activityArchetypes[e] = n, t);
|
|
8796
|
-
},
|
|
8909
|
+
}, Bc = function(e) {
|
|
8797
8910
|
let t = "activity_archetype " + e.id + " {\n";
|
|
8798
8911
|
return e.label && (t += " label \"" + s(e.label) + "\"\n"), e.clause && (t += " clause \"" + s(e.clause) + "\"\n"), e.definition && (t += " definition \"" + s(e.definition) + "\"\n"), e.parent && (t += " parent " + N(e.parent) + "\n"), t += "}\n", t;
|
|
8799
8912
|
};
|
|
8800
8913
|
//#endregion
|
|
8801
8914
|
//#region src/ser-des/config/participantKind.ts
|
|
8802
|
-
function
|
|
8915
|
+
function Vc(e) {
|
|
8803
8916
|
let t = {
|
|
8804
8917
|
delegates_to: "",
|
|
8805
8918
|
clause: "",
|
|
@@ -8816,7 +8929,7 @@ function Nc(e) {
|
|
|
8816
8929
|
id: ""
|
|
8817
8930
|
}), t;
|
|
8818
8931
|
}
|
|
8819
|
-
function
|
|
8932
|
+
function Hc(e) {
|
|
8820
8933
|
let t = {
|
|
8821
8934
|
decided_by: "",
|
|
8822
8935
|
on_recommendation_of: "",
|
|
@@ -8835,7 +8948,7 @@ function Pc(e) {
|
|
|
8835
8948
|
id: ""
|
|
8836
8949
|
}), t;
|
|
8837
8950
|
}
|
|
8838
|
-
function
|
|
8951
|
+
function Uc(e, t) {
|
|
8839
8952
|
let n = {
|
|
8840
8953
|
id: e,
|
|
8841
8954
|
label: "",
|
|
@@ -8859,7 +8972,7 @@ function Fc(e, t) {
|
|
|
8859
8972
|
id: e
|
|
8860
8973
|
}), n;
|
|
8861
8974
|
}
|
|
8862
|
-
var
|
|
8975
|
+
var Wc = (e, t) => {
|
|
8863
8976
|
let n = {
|
|
8864
8977
|
id: e,
|
|
8865
8978
|
label: "",
|
|
@@ -8887,8 +9000,8 @@ var Ic = (e, t) => {
|
|
|
8887
9000
|
else if (t === "clause") n.clause = a(r());
|
|
8888
9001
|
else if (t === "definition") n.definition = a(r());
|
|
8889
9002
|
else if (t === "member") n.member = a(r());
|
|
8890
|
-
else if (t === "competence") n.competence =
|
|
8891
|
-
else if (t === "approval") n.approval =
|
|
9003
|
+
else if (t === "competence") n.competence = Vc(i(r()));
|
|
9004
|
+
else if (t === "approval") n.approval = Hc(i(r()));
|
|
8892
9005
|
else if (t === "approved_by") n.approved_by = a(r());
|
|
8893
9006
|
else if (t === "designated_by") n.designated_by = a(r());
|
|
8894
9007
|
else if (t === "declaration") n.declaration = a(r());
|
|
@@ -8898,7 +9011,7 @@ var Ic = (e, t) => {
|
|
|
8898
9011
|
else if (t === "subkind") {
|
|
8899
9012
|
let t = a(r()), s = o();
|
|
8900
9013
|
if (s === void 0 || !s.startsWith("{")) throw Error(`Parsing error: participant_kind. ID ${e}: subkind ${t} is missing its block`);
|
|
8901
|
-
n.subkinds.push(
|
|
9014
|
+
n.subkinds.push(Uc(t, i(r())));
|
|
8902
9015
|
} else if (t === "source") n.source = I(i(r()));
|
|
8903
9016
|
else return !1;
|
|
8904
9017
|
return !0;
|
|
@@ -8907,24 +9020,24 @@ var Ic = (e, t) => {
|
|
|
8907
9020
|
id: e
|
|
8908
9021
|
}), (t) => (t.participantKinds[e] = n, t);
|
|
8909
9022
|
};
|
|
8910
|
-
function
|
|
9023
|
+
function Gc(e) {
|
|
8911
9024
|
let t = " competence {\n";
|
|
8912
9025
|
return e.delegates_to && (t += " delegates_to " + N(e.delegates_to) + "\n"), e.clause && (t += " clause \"" + s(e.clause) + "\"\n"), e.note && (t += " note \"" + s(e.note) + "\"\n"), t += " }\n", t;
|
|
8913
9026
|
}
|
|
8914
|
-
function
|
|
9027
|
+
function Kc(e) {
|
|
8915
9028
|
let t = " approval {\n";
|
|
8916
9029
|
return e.decided_by && (t += " decided_by " + N(e.decided_by) + "\n"), e.on_recommendation_of && (t += " on_recommendation_of " + N(e.on_recommendation_of) + "\n"), e.procedure && (t += " procedure \"" + s(e.procedure) + "\"\n"), e.clause && (t += " clause \"" + s(e.clause) + "\"\n"), t += " }\n", t;
|
|
8917
9030
|
}
|
|
8918
|
-
function
|
|
9031
|
+
function qc(e) {
|
|
8919
9032
|
let t = " subkind " + N(e.id) + " {\n";
|
|
8920
9033
|
return e.label && (t += " label \"" + s(e.label) + "\"\n"), e.term && (t += " term \"" + s(e.term) + "\"\n"), e.definition && (t += " definition \"" + s(e.definition) + "\"\n"), e.data_flag && (t += " data_flag \"" + s(e.data_flag) + "\"\n"), e.acceptance && (t += " acceptance " + N(e.acceptance) + "\n"), e.acceptance_note && (t += " acceptance_note \"" + s(e.acceptance_note) + "\"\n"), t += " }\n", t;
|
|
8921
9034
|
}
|
|
8922
|
-
var
|
|
9035
|
+
var Jc = function(e) {
|
|
8923
9036
|
let t = "participant_kind " + e.id + " {\n";
|
|
8924
|
-
e.label && (t += " label \"" + s(e.label) + "\"\n"), e.term && (t += " term \"" + s(e.term) + "\"\n"), e.clause && (t += " clause \"" + s(e.clause) + "\"\n"), e.definition && (t += " definition \"" + s(e.definition) + "\"\n"), e.member && (t += " member " + N(e.member) + "\n"), e.competence && (t +=
|
|
8925
|
-
for (let n of e.subkinds) t +=
|
|
9037
|
+
e.label && (t += " label \"" + s(e.label) + "\"\n"), e.term && (t += " term \"" + s(e.term) + "\"\n"), e.clause && (t += " clause \"" + s(e.clause) + "\"\n"), e.definition && (t += " definition \"" + s(e.definition) + "\"\n"), e.member && (t += " member " + N(e.member) + "\n"), e.competence && (t += Gc(e.competence)), e.approval && (t += Kc(e.approval)), e.approved_by && (t += " approved_by " + N(e.approved_by) + "\n"), e.designated_by && (t += " designated_by " + N(e.designated_by) + "\n"), e.declaration && (t += " declaration " + N(e.declaration) + "\n"), e.admission && (t += " admission \"" + s(e.admission) + "\"\n"), e.becomes && (t += " becomes " + N(e.becomes) + "\n"), e.procedure && (t += " procedure \"" + s(e.procedure) + "\"\n");
|
|
9038
|
+
for (let n of e.subkinds) t += qc(n);
|
|
8926
9039
|
return (e.source.doc || e.source.clause) && (t += " source {\n", e.source.doc && (t += " doc \"" + s(e.source.doc) + "\"\n"), e.source.clause && (t += " clause \"" + s(e.source.clause) + "\"\n"), t += " }\n"), t += "}\n", t;
|
|
8927
|
-
},
|
|
9040
|
+
}, Yc = (e, t) => {
|
|
8928
9041
|
let n = {
|
|
8929
9042
|
id: e,
|
|
8930
9043
|
label: "",
|
|
@@ -8952,13 +9065,13 @@ var Bc = function(e) {
|
|
|
8952
9065
|
construct: "governance_organ",
|
|
8953
9066
|
id: e
|
|
8954
9067
|
}), (t) => (t.governanceOrgans[e] = n, t);
|
|
8955
|
-
},
|
|
9068
|
+
}, Xc = function(e) {
|
|
8956
9069
|
let t = "governance_organ " + e.id + " {\n";
|
|
8957
9070
|
return e.label && (t += " label \"" + s(e.label) + "\"\n"), e.term && (t += " term \"" + s(e.term) + "\"\n"), e.clause && (t += " clause \"" + s(e.clause) + "\"\n"), e.mandate && (t += " mandate \"" + s(e.mandate) + "\"\n"), e.sub_committee_of && (t += " sub_committee_of " + N(e.sub_committee_of) + "\n"), e.independent_of && (t += " independent_of " + N(e.independent_of) + "\n"), (e.source.doc || e.source.clause) && (t += " source {\n", e.source.doc && (t += " doc \"" + s(e.source.doc) + "\"\n"), e.source.clause && (t += " clause \"" + s(e.source.clause) + "\"\n"), t += " }\n"), t += "}\n", t;
|
|
8958
9071
|
};
|
|
8959
9072
|
//#endregion
|
|
8960
9073
|
//#region src/ser-des/config/declaration.ts
|
|
8961
|
-
function
|
|
9074
|
+
function Zc(e, t) {
|
|
8962
9075
|
let n = {
|
|
8963
9076
|
id: e,
|
|
8964
9077
|
clause: "",
|
|
@@ -8974,7 +9087,7 @@ function Uc(e, t) {
|
|
|
8974
9087
|
id: e
|
|
8975
9088
|
}), n;
|
|
8976
9089
|
}
|
|
8977
|
-
var
|
|
9090
|
+
var Qc = (e, t) => {
|
|
8978
9091
|
let n = {
|
|
8979
9092
|
id: e,
|
|
8980
9093
|
label: "",
|
|
@@ -9001,7 +9114,7 @@ var Wc = (e, t) => {
|
|
|
9001
9114
|
else if (t === "content") {
|
|
9002
9115
|
let t = a(r()), s = o();
|
|
9003
9116
|
if (s === void 0 || !s.startsWith("{")) throw Error(`Parsing error: declaration_kind. ID ${e}: content ${t} is missing its block`);
|
|
9004
|
-
n.content.push(
|
|
9117
|
+
n.content.push(Zc(t, i(r())));
|
|
9005
9118
|
} else if (t === "source") n.source = I(i(r()));
|
|
9006
9119
|
else return !1;
|
|
9007
9120
|
return !0;
|
|
@@ -9010,20 +9123,20 @@ var Wc = (e, t) => {
|
|
|
9010
9123
|
id: e
|
|
9011
9124
|
}), (t) => (t.declarationKinds[e] = n, t);
|
|
9012
9125
|
};
|
|
9013
|
-
function
|
|
9126
|
+
function $c(e) {
|
|
9014
9127
|
let t = " content " + N(e.id) + " {\n";
|
|
9015
9128
|
return e.clause && (t += " clause \"" + s(e.clause) + "\"\n"), e.description && (t += " description \"" + s(e.description) + "\"\n"), t += " }\n", t;
|
|
9016
9129
|
}
|
|
9017
|
-
function
|
|
9130
|
+
function el(e) {
|
|
9018
9131
|
let t = " source {\n";
|
|
9019
9132
|
return e.doc && (t += " doc \"" + s(e.doc) + "\"\n"), e.clause && (t += " clause \"" + s(e.clause) + "\"\n"), t += " }\n", t;
|
|
9020
9133
|
}
|
|
9021
|
-
var
|
|
9134
|
+
var tl = function(e) {
|
|
9022
9135
|
let t = "declaration_kind " + e.id + " {\n";
|
|
9023
9136
|
e.label && (t += " label \"" + s(e.label) + "\"\n"), e.holder && (t += " holder " + N(e.holder) + "\n"), e.clause && (t += " clause \"" + s(e.clause) + "\"\n"), e.procedure && (t += " procedure \"" + s(e.procedure) + "\"\n"), e.definition && (t += " definition \"" + s(e.definition) + "\"\n"), e.scope_model && (t += " scope_model " + N(e.scope_model) + "\n"), e.scheme_a_obligation && (t += " scheme_a_obligation \"" + s(e.scheme_a_obligation) + "\"\n");
|
|
9024
|
-
for (let n of e.content) t +=
|
|
9025
|
-
return (e.source.doc || e.source.clause) && (t +=
|
|
9026
|
-
},
|
|
9137
|
+
for (let n of e.content) t += $c(n);
|
|
9138
|
+
return (e.source.doc || e.source.clause) && (t += el(e.source)), t += "}\n", t;
|
|
9139
|
+
}, nl = (e, t) => {
|
|
9027
9140
|
let n = {
|
|
9028
9141
|
id: e,
|
|
9029
9142
|
description: ""
|
|
@@ -9036,10 +9149,10 @@ var qc = function(e) {
|
|
|
9036
9149
|
construct: "declaration_status",
|
|
9037
9150
|
id: e
|
|
9038
9151
|
}), (t) => (t.declarationStatuses[e] = n, t);
|
|
9039
|
-
},
|
|
9152
|
+
}, rl = function(e) {
|
|
9040
9153
|
let t = "declaration_status " + e.id + " {\n";
|
|
9041
9154
|
return e.description && (t += " description \"" + s(e.description) + "\"\n"), t += "}\n", t;
|
|
9042
|
-
},
|
|
9155
|
+
}, il = (e, t) => {
|
|
9043
9156
|
let n = {
|
|
9044
9157
|
id: e,
|
|
9045
9158
|
clause: "",
|
|
@@ -9069,13 +9182,13 @@ var qc = function(e) {
|
|
|
9069
9182
|
construct: "declaration_gate",
|
|
9070
9183
|
id: e
|
|
9071
9184
|
}), (t) => (t.declarationGates[e] = n, t);
|
|
9072
|
-
},
|
|
9185
|
+
}, al = function(e) {
|
|
9073
9186
|
let t = "declaration_gate " + e.id + " {\n";
|
|
9074
|
-
return e.clause && (t += " clause \"" + s(e.clause) + "\"\n"), e.statement && (t += " statement \"" + s(e.statement) + "\"\n"), e.holder && (t += " holder " + N(e.holder) + "\n"), e.declaration && (t += " declaration " + N(e.declaration) + "\n"), e.blocks.length > 0 && (t += " blocks { " + e.blocks.map(N).join(" ") + " }\n"), e.blocks_note && (t += " blocks_note \"" + s(e.blocks_note) + "\"\n"), e.scope_checked.length > 0 && (t += " scope_checked { " + e.scope_checked.map(N).join(" ") + " }\n"), (e.source.doc || e.source.clause) && (t +=
|
|
9187
|
+
return e.clause && (t += " clause \"" + s(e.clause) + "\"\n"), e.statement && (t += " statement \"" + s(e.statement) + "\"\n"), e.holder && (t += " holder " + N(e.holder) + "\n"), e.declaration && (t += " declaration " + N(e.declaration) + "\n"), e.blocks.length > 0 && (t += " blocks { " + e.blocks.map(N).join(" ") + " }\n"), e.blocks_note && (t += " blocks_note \"" + s(e.blocks_note) + "\"\n"), e.scope_checked.length > 0 && (t += " scope_checked { " + e.scope_checked.map(N).join(" ") + " }\n"), (e.source.doc || e.source.clause) && (t += el(e.source)), t += "}\n", t;
|
|
9075
9188
|
};
|
|
9076
9189
|
//#endregion
|
|
9077
9190
|
//#region src/ser-des/config/scheme.ts
|
|
9078
|
-
function
|
|
9191
|
+
function ol(e) {
|
|
9079
9192
|
let t = {
|
|
9080
9193
|
method: "",
|
|
9081
9194
|
clause: "",
|
|
@@ -9094,7 +9207,7 @@ function Qc(e) {
|
|
|
9094
9207
|
id: ""
|
|
9095
9208
|
}), t;
|
|
9096
9209
|
}
|
|
9097
|
-
var
|
|
9210
|
+
var sl = (e, t) => {
|
|
9098
9211
|
let n = {
|
|
9099
9212
|
id: e,
|
|
9100
9213
|
label: "",
|
|
@@ -9112,7 +9225,7 @@ var $c = (e, t) => {
|
|
|
9112
9225
|
else if (e === "term") n.term = a(t());
|
|
9113
9226
|
else if (e === "clause") n.clause = a(t());
|
|
9114
9227
|
else if (e === "definition") n.definition = a(t());
|
|
9115
|
-
else if (e === "demonstration") n.demonstration =
|
|
9228
|
+
else if (e === "demonstration") n.demonstration = ol(i(t()));
|
|
9116
9229
|
else if (e === "source") n.source = I(i(t()));
|
|
9117
9230
|
else return !1;
|
|
9118
9231
|
return !0;
|
|
@@ -9121,19 +9234,19 @@ var $c = (e, t) => {
|
|
|
9121
9234
|
id: e
|
|
9122
9235
|
}), (t) => (t.schemeDefinitions[e] = n, t);
|
|
9123
9236
|
};
|
|
9124
|
-
function
|
|
9237
|
+
function cl(e) {
|
|
9125
9238
|
let t = " source {\n";
|
|
9126
9239
|
return e.doc && (t += " doc \"" + s(e.doc) + "\"\n"), e.clause && (t += " clause \"" + s(e.clause) + "\"\n"), t += " }\n", t;
|
|
9127
9240
|
}
|
|
9128
|
-
var
|
|
9241
|
+
var ll = function(e) {
|
|
9129
9242
|
let t = "scheme_definition " + e.id + " {\n";
|
|
9130
9243
|
if (e.label && (t += " label \"" + s(e.label) + "\"\n"), e.term && (t += " term \"" + s(e.term) + "\"\n"), e.clause && (t += " clause \"" + s(e.clause) + "\"\n"), e.definition && (t += " definition \"" + s(e.definition) + "\"\n"), e.demonstration) {
|
|
9131
9244
|
let n = e.demonstration;
|
|
9132
9245
|
t += " demonstration {\n", n.method && (t += " method " + N(n.method) + "\n"), n.clause && (t += " clause \"" + s(n.clause) + "\"\n"), n.basis.length > 0 && (t += " basis { " + n.basis.map(N).join(" ") + " }\n"), n.note && (t += " note \"" + s(n.note) + "\"\n"), t += " }\n";
|
|
9133
9246
|
}
|
|
9134
|
-
return (e.source.doc || e.source.clause) && (t +=
|
|
9247
|
+
return (e.source.doc || e.source.clause) && (t += cl(e.source)), t += "}\n", t;
|
|
9135
9248
|
};
|
|
9136
|
-
function
|
|
9249
|
+
function ul(e) {
|
|
9137
9250
|
let t = {
|
|
9138
9251
|
action: "",
|
|
9139
9252
|
automatic: !1,
|
|
@@ -9154,7 +9267,7 @@ function nl(e) {
|
|
|
9154
9267
|
id: ""
|
|
9155
9268
|
}), t;
|
|
9156
9269
|
}
|
|
9157
|
-
function
|
|
9270
|
+
function dl(e) {
|
|
9158
9271
|
let t = {
|
|
9159
9272
|
clause: "",
|
|
9160
9273
|
decided_by: "",
|
|
@@ -9173,7 +9286,7 @@ function rl(e) {
|
|
|
9173
9286
|
id: ""
|
|
9174
9287
|
}), t;
|
|
9175
9288
|
}
|
|
9176
|
-
function
|
|
9289
|
+
function fl(e, t) {
|
|
9177
9290
|
let n = {
|
|
9178
9291
|
id: e,
|
|
9179
9292
|
kind: "",
|
|
@@ -9202,7 +9315,7 @@ function il(e, t) {
|
|
|
9202
9315
|
id: e
|
|
9203
9316
|
}), n;
|
|
9204
9317
|
}
|
|
9205
|
-
var
|
|
9318
|
+
var pl = (e, t) => {
|
|
9206
9319
|
let n = {
|
|
9207
9320
|
id: e,
|
|
9208
9321
|
applies_to: "",
|
|
@@ -9218,7 +9331,7 @@ var al = (e, t) => {
|
|
|
9218
9331
|
return v(t, (t, r, o) => {
|
|
9219
9332
|
if (t === "applies_to") n.applies_to = a(r());
|
|
9220
9333
|
else if (t === "initial") n.initial = a(r());
|
|
9221
|
-
else if (t === "entry") n.entry =
|
|
9334
|
+
else if (t === "entry") n.entry = ul(i(r()));
|
|
9222
9335
|
else if (t === "transition") {
|
|
9223
9336
|
let t = a(r()), s = o();
|
|
9224
9337
|
if (s === void 0 || s !== "->" && s !== "→") throw Error(`Parsing error: scheme_lifecycle. ID ${e}: transition ${t} is missing its '->'`);
|
|
@@ -9227,7 +9340,7 @@ var al = (e, t) => {
|
|
|
9227
9340
|
o() === "action" && (r(), l = a(r()));
|
|
9228
9341
|
let u = o();
|
|
9229
9342
|
if (u === void 0 || !u.startsWith("{")) throw Error(`Parsing error: scheme_lifecycle. ID ${e}: transition ${t} -> ${c} is missing its block`);
|
|
9230
|
-
let d =
|
|
9343
|
+
let d = dl(i(r()));
|
|
9231
9344
|
n.transitions.push({
|
|
9232
9345
|
from: t,
|
|
9233
9346
|
to: c,
|
|
@@ -9237,7 +9350,7 @@ var al = (e, t) => {
|
|
|
9237
9350
|
} else if (t === "trigger") {
|
|
9238
9351
|
let t = a(r()), s = o();
|
|
9239
9352
|
if (s === void 0 || !s.startsWith("{")) throw Error(`Parsing error: scheme_lifecycle. ID ${e}: trigger ${t} is missing its block`);
|
|
9240
|
-
n.triggers.push(
|
|
9353
|
+
n.triggers.push(fl(t, i(r())));
|
|
9241
9354
|
} else if (t === "source") n.source = I(i(r()));
|
|
9242
9355
|
else return !1;
|
|
9243
9356
|
return !0;
|
|
@@ -9245,7 +9358,7 @@ var al = (e, t) => {
|
|
|
9245
9358
|
construct: "scheme_lifecycle",
|
|
9246
9359
|
id: e
|
|
9247
9360
|
}), (t) => (t.schemeLifecycles[e] = n, t);
|
|
9248
|
-
},
|
|
9361
|
+
}, ml = function(e) {
|
|
9249
9362
|
let t = "scheme_lifecycle " + e.id + " {\n";
|
|
9250
9363
|
if (e.applies_to && (t += " applies_to " + N(e.applies_to) + "\n"), e.initial && (t += " initial " + N(e.initial) + "\n"), e.entry) {
|
|
9251
9364
|
let n = e.entry;
|
|
@@ -9259,15 +9372,15 @@ var al = (e, t) => {
|
|
|
9259
9372
|
}
|
|
9260
9373
|
n.clause && (t += " clause \"" + s(n.clause) + "\"\n"), n.deferrable && (t += " deferrable true\n"), n.deferral_note && (t += " deferral_note \"" + s(n.deferral_note) + "\"\n"), n.description && (t += " description \"" + s(n.description) + "\"\n"), t += " }\n";
|
|
9261
9374
|
}
|
|
9262
|
-
return (e.source.doc || e.source.clause) && (t +=
|
|
9375
|
+
return (e.source.doc || e.source.clause) && (t += cl(e.source)), t += "}\n", t;
|
|
9263
9376
|
};
|
|
9264
9377
|
//#endregion
|
|
9265
9378
|
//#region src/ser-des/config/frameworkDocument.ts
|
|
9266
|
-
function
|
|
9379
|
+
function hl(e) {
|
|
9267
9380
|
let t = " source {\n";
|
|
9268
9381
|
return e.doc && (t += " doc \"" + s(e.doc) + "\"\n"), e.clause && (t += " clause \"" + s(e.clause) + "\"\n"), t += " }\n", t;
|
|
9269
9382
|
}
|
|
9270
|
-
var
|
|
9383
|
+
var gl = (e, t) => {
|
|
9271
9384
|
let n = {
|
|
9272
9385
|
id: e,
|
|
9273
9386
|
rank: 0,
|
|
@@ -9295,10 +9408,10 @@ var cl = (e, t) => {
|
|
|
9295
9408
|
construct: "framework_document",
|
|
9296
9409
|
id: e
|
|
9297
9410
|
}), (t) => (t.frameworkDocuments[e] = n, t);
|
|
9298
|
-
},
|
|
9411
|
+
}, _l = function(e) {
|
|
9299
9412
|
let t = "framework_document " + e.id + " {\n";
|
|
9300
|
-
return e.rank > 0 && (t += " rank " + e.rank + "\n"), e.doc && (t += " doc \"" + s(e.doc) + "\"\n"), e.title && (t += " title \"" + s(e.title) + "\"\n"), e.approved_by && (t += " approved_by " + N(e.approved_by) + "\n"), e.clause && (t += " clause \"" + s(e.clause) + "\"\n"), e.note && (t += " note \"" + s(e.note) + "\"\n"), (e.source.doc || e.source.clause) && (t +=
|
|
9301
|
-
},
|
|
9413
|
+
return e.rank > 0 && (t += " rank " + e.rank + "\n"), e.doc && (t += " doc \"" + s(e.doc) + "\"\n"), e.title && (t += " title \"" + s(e.title) + "\"\n"), e.approved_by && (t += " approved_by " + N(e.approved_by) + "\n"), e.clause && (t += " clause \"" + s(e.clause) + "\"\n"), e.note && (t += " note \"" + s(e.note) + "\"\n"), (e.source.doc || e.source.clause) && (t += hl(e.source)), t += "}\n", t;
|
|
9414
|
+
}, vl = (e, t) => {
|
|
9302
9415
|
let n = {
|
|
9303
9416
|
id: e,
|
|
9304
9417
|
clause: "",
|
|
@@ -9318,11 +9431,11 @@ var cl = (e, t) => {
|
|
|
9318
9431
|
construct: "document_precedence",
|
|
9319
9432
|
id: e
|
|
9320
9433
|
}), (t) => (t.documentPrecedences[e] = n, t);
|
|
9321
|
-
},
|
|
9434
|
+
}, yl = function(e) {
|
|
9322
9435
|
let t = "document_precedence " + e.id + " {\n";
|
|
9323
|
-
return e.clause && (t += " clause \"" + s(e.clause) + "\"\n"), e.statement && (t += " statement \"" + s(e.statement) + "\"\n"), (e.source.doc || e.source.clause) && (t +=
|
|
9436
|
+
return e.clause && (t += " clause \"" + s(e.clause) + "\"\n"), e.statement && (t += " statement \"" + s(e.statement) + "\"\n"), (e.source.doc || e.source.clause) && (t += hl(e.source)), t += "}\n", t;
|
|
9324
9437
|
};
|
|
9325
|
-
function
|
|
9438
|
+
function bl(e, t) {
|
|
9326
9439
|
let n = {
|
|
9327
9440
|
id: e,
|
|
9328
9441
|
clause: "",
|
|
@@ -9338,7 +9451,7 @@ function fl(e, t) {
|
|
|
9338
9451
|
id: e
|
|
9339
9452
|
}), n;
|
|
9340
9453
|
}
|
|
9341
|
-
var
|
|
9454
|
+
var xl = (e, t) => {
|
|
9342
9455
|
let n = {
|
|
9343
9456
|
id: e,
|
|
9344
9457
|
clause: "",
|
|
@@ -9356,7 +9469,7 @@ var pl = (e, t) => {
|
|
|
9356
9469
|
else if (t === "condition") {
|
|
9357
9470
|
let t = a(r()), s = o();
|
|
9358
9471
|
if (s === void 0 || !s.startsWith("{")) throw Error(`Parsing error: auto_inclusion. ID ${e}: condition ${t} is missing its block`);
|
|
9359
|
-
n.conditions.push(
|
|
9472
|
+
n.conditions.push(bl(t, i(r())));
|
|
9360
9473
|
} else if (t === "note") n.note = a(r());
|
|
9361
9474
|
else if (t === "source") n.source = I(i(r()));
|
|
9362
9475
|
else return !1;
|
|
@@ -9365,15 +9478,15 @@ var pl = (e, t) => {
|
|
|
9365
9478
|
construct: "auto_inclusion",
|
|
9366
9479
|
id: e
|
|
9367
9480
|
}), (t) => (t.autoInclusions[e] = n, t);
|
|
9368
|
-
},
|
|
9481
|
+
}, Sl = function(e) {
|
|
9369
9482
|
let t = "auto_inclusion " + e.id + " {\n";
|
|
9370
9483
|
e.clause && (t += " clause \"" + s(e.clause) + "\"\n"), e.statement && (t += " statement \"" + s(e.statement) + "\"\n");
|
|
9371
9484
|
for (let n of e.conditions) t += " condition " + N(n.id) + " {\n", n.clause && (t += " clause \"" + s(n.clause) + "\"\n"), n.description && (t += " description \"" + s(n.description) + "\"\n"), t += " }\n";
|
|
9372
|
-
return e.note && (t += " note \"" + s(e.note) + "\"\n"), (e.source.doc || e.source.clause) && (t +=
|
|
9485
|
+
return e.note && (t += " note \"" + s(e.note) + "\"\n"), (e.source.doc || e.source.clause) && (t += hl(e.source)), t += "}\n", t;
|
|
9373
9486
|
};
|
|
9374
9487
|
//#endregion
|
|
9375
9488
|
//#region src/ser-des/config/decisionRule.ts
|
|
9376
|
-
function
|
|
9489
|
+
function Cl(e) {
|
|
9377
9490
|
let t = {
|
|
9378
9491
|
threshold: 0,
|
|
9379
9492
|
base: "",
|
|
@@ -9392,7 +9505,7 @@ function hl(e) {
|
|
|
9392
9505
|
id: ""
|
|
9393
9506
|
}), t;
|
|
9394
9507
|
}
|
|
9395
|
-
function
|
|
9508
|
+
function wl(e) {
|
|
9396
9509
|
let t = {
|
|
9397
9510
|
in_meeting: 0,
|
|
9398
9511
|
by_correspondence: "",
|
|
@@ -9409,7 +9522,7 @@ function gl(e) {
|
|
|
9409
9522
|
id: ""
|
|
9410
9523
|
}), t;
|
|
9411
9524
|
}
|
|
9412
|
-
function
|
|
9525
|
+
function Tl(e) {
|
|
9413
9526
|
let t = {
|
|
9414
9527
|
in_meeting: null,
|
|
9415
9528
|
by_correspondence: null,
|
|
@@ -9419,9 +9532,9 @@ function _l(e) {
|
|
|
9419
9532
|
reason_on_against_or_abstain: !1
|
|
9420
9533
|
};
|
|
9421
9534
|
return v(e, (e, n) => {
|
|
9422
|
-
if (e === "in_meeting") t.in_meeting =
|
|
9423
|
-
else if (e === "by_correspondence") t.by_correspondence =
|
|
9424
|
-
else if (e === "other_proposals") t.other_proposals =
|
|
9535
|
+
if (e === "in_meeting") t.in_meeting = Cl(i(n()));
|
|
9536
|
+
else if (e === "by_correspondence") t.by_correspondence = Cl(i(n()));
|
|
9537
|
+
else if (e === "other_proposals") t.other_proposals = wl(i(n()));
|
|
9425
9538
|
else if (e === "proxies_max") t.proxies_max = parseInt(a(n()), 10) || 0;
|
|
9426
9539
|
else if (e === "abstentions") t.abstentions = a(n());
|
|
9427
9540
|
else if (e === "reason_on_against_or_abstain") t.reason_on_against_or_abstain = n() === "true";
|
|
@@ -9432,7 +9545,7 @@ function _l(e) {
|
|
|
9432
9545
|
id: ""
|
|
9433
9546
|
}), t;
|
|
9434
9547
|
}
|
|
9435
|
-
function
|
|
9548
|
+
function El(e, t) {
|
|
9436
9549
|
let n = {
|
|
9437
9550
|
id: e,
|
|
9438
9551
|
clause: "",
|
|
@@ -9448,10 +9561,10 @@ function vl(e, t) {
|
|
|
9448
9561
|
id: e
|
|
9449
9562
|
}), n;
|
|
9450
9563
|
}
|
|
9451
|
-
function
|
|
9564
|
+
function Dl(e) {
|
|
9452
9565
|
return r(i(e)).filter((e) => e.length > 0);
|
|
9453
9566
|
}
|
|
9454
|
-
var
|
|
9567
|
+
var Ol = (e, t) => {
|
|
9455
9568
|
let n = {
|
|
9456
9569
|
id: e,
|
|
9457
9570
|
organ: "",
|
|
@@ -9480,17 +9593,17 @@ var bl = (e, t) => {
|
|
|
9480
9593
|
else if (t === "description") n.description = a(r());
|
|
9481
9594
|
else if (t === "on_recommendation_of") n.on_recommendation_of = a(r());
|
|
9482
9595
|
else if (t === "independent_of") n.independent_of = a(r());
|
|
9483
|
-
else if (t === "decides") n.decides =
|
|
9484
|
-
else if (t === "voting") n.voting =
|
|
9485
|
-
else if (t === "tasks") n.tasks =
|
|
9486
|
-
else if (t === "scope") n.scope =
|
|
9596
|
+
else if (t === "decides") n.decides = Dl(r());
|
|
9597
|
+
else if (t === "voting") n.voting = Tl(i(r()));
|
|
9598
|
+
else if (t === "tasks") n.tasks = Dl(r());
|
|
9599
|
+
else if (t === "scope") n.scope = Dl(r());
|
|
9487
9600
|
else if (t === "principle") n.principle = a(r());
|
|
9488
9601
|
else if (t === "legacy_kind") {
|
|
9489
9602
|
let t = a(r()), s = o();
|
|
9490
9603
|
if (s === void 0 || !s.startsWith("{")) throw Error(`Parsing error: decision_rule. ID ${e}: legacy_kind ${t} is missing its block`);
|
|
9491
|
-
n.legacy_kinds.push(
|
|
9604
|
+
n.legacy_kinds.push(El(t, i(r())));
|
|
9492
9605
|
} else if (t === "income") n.income = a(r());
|
|
9493
|
-
else if (t === "no_entrance_fees_for") n.no_entrance_fees_for =
|
|
9606
|
+
else if (t === "no_entrance_fees_for") n.no_entrance_fees_for = Dl(r());
|
|
9494
9607
|
else if (t === "source") n.source = I(i(r()));
|
|
9495
9608
|
else return !1;
|
|
9496
9609
|
return !0;
|
|
@@ -9499,27 +9612,27 @@ var bl = (e, t) => {
|
|
|
9499
9612
|
id: e
|
|
9500
9613
|
}), (t) => (t.decisionRules[e] = n, t);
|
|
9501
9614
|
};
|
|
9502
|
-
function
|
|
9615
|
+
function kl(e, t) {
|
|
9503
9616
|
let n = " " + e + " {\n";
|
|
9504
9617
|
return t.threshold > 0 && (n += " threshold " + t.threshold + "\n"), t.base && (n += " base " + N(t.base) + "\n"), t.clause && (n += " clause \"" + s(t.clause) + "\"\n"), t.description && (n += " description \"" + s(t.description) + "\"\n"), n += " }\n", n;
|
|
9505
9618
|
}
|
|
9506
|
-
function
|
|
9619
|
+
function Al(e) {
|
|
9507
9620
|
let t = " voting {\n";
|
|
9508
|
-
if (e.in_meeting && (t +=
|
|
9621
|
+
if (e.in_meeting && (t += kl("in_meeting", e.in_meeting)), e.by_correspondence && (t += kl("by_correspondence", e.by_correspondence)), e.other_proposals) {
|
|
9509
9622
|
let n = e.other_proposals;
|
|
9510
9623
|
t += " other_proposals {\n", n.in_meeting > 0 && (t += " in_meeting " + n.in_meeting + "\n"), n.by_correspondence && (t += " by_correspondence " + N(n.by_correspondence) + "\n"), n.description && (t += " description \"" + s(n.description) + "\"\n"), t += " }\n";
|
|
9511
9624
|
}
|
|
9512
9625
|
return e.proxies_max > 0 && (t += " proxies_max " + e.proxies_max + "\n"), e.abstentions && (t += " abstentions " + N(e.abstentions) + "\n"), e.reason_on_against_or_abstain && (t += " reason_on_against_or_abstain true\n"), t += " }\n", t;
|
|
9513
9626
|
}
|
|
9514
|
-
function
|
|
9627
|
+
function jl(e, t, n) {
|
|
9515
9628
|
return n + e + " { " + t.map(N).join(" ") + " }\n";
|
|
9516
9629
|
}
|
|
9517
|
-
var
|
|
9630
|
+
var Ml = function(e) {
|
|
9518
9631
|
let t = "decision_rule " + e.id + " {\n";
|
|
9519
|
-
e.organ && (t += " organ " + N(e.organ) + "\n"), e.kind && (t += " kind " + N(e.kind) + "\n"), e.clause && (t += " clause \"" + s(e.clause) + "\"\n"), e.description && (t += " description \"" + s(e.description) + "\"\n"), e.on_recommendation_of && (t += " on_recommendation_of " + N(e.on_recommendation_of) + "\n"), e.independent_of && (t += " independent_of " + N(e.independent_of) + "\n"), e.decides.length > 0 && (t +=
|
|
9632
|
+
e.organ && (t += " organ " + N(e.organ) + "\n"), e.kind && (t += " kind " + N(e.kind) + "\n"), e.clause && (t += " clause \"" + s(e.clause) + "\"\n"), e.description && (t += " description \"" + s(e.description) + "\"\n"), e.on_recommendation_of && (t += " on_recommendation_of " + N(e.on_recommendation_of) + "\n"), e.independent_of && (t += " independent_of " + N(e.independent_of) + "\n"), e.decides.length > 0 && (t += jl("decides", e.decides, " ")), e.voting && (t += Al(e.voting)), e.tasks.length > 0 && (t += jl("tasks", e.tasks, " ")), e.scope.length > 0 && (t += jl("scope", e.scope, " ")), e.principle && (t += " principle " + N(e.principle) + "\n");
|
|
9520
9633
|
for (let n of e.legacy_kinds) t += " legacy_kind " + N(n.id) + " {\n", n.clause && (t += " clause \"" + s(n.clause) + "\"\n"), n.description && (t += " description \"" + s(n.description) + "\"\n"), t += " }\n";
|
|
9521
|
-
return e.income && (t += " income " + N(e.income) + "\n"), e.no_entrance_fees_for.length > 0 && (t +=
|
|
9522
|
-
},
|
|
9634
|
+
return e.income && (t += " income " + N(e.income) + "\n"), e.no_entrance_fees_for.length > 0 && (t += jl("no_entrance_fees_for", e.no_entrance_fees_for, " ")), (e.source.doc || e.source.clause) && (t += " source {\n", e.source.doc && (t += " doc \"" + s(e.source.doc) + "\"\n"), e.source.clause && (t += " clause \"" + s(e.source.clause) + "\"\n"), t += " }\n"), t += "}\n", t;
|
|
9635
|
+
}, Nl = (e, t) => {
|
|
9523
9636
|
let n = {
|
|
9524
9637
|
id: e,
|
|
9525
9638
|
document: "",
|
|
@@ -9552,15 +9665,15 @@ var wl = function(e) {
|
|
|
9552
9665
|
construct: "document_module",
|
|
9553
9666
|
id: e
|
|
9554
9667
|
}), (t) => (t.documentModules[e] = n, t);
|
|
9555
|
-
},
|
|
9668
|
+
}, Pl = function(e) {
|
|
9556
9669
|
let t = "document_module " + e.id + " {\n";
|
|
9557
9670
|
e.document && (t += " document \"" + s(e.document) + "\"\n"), e.title && (t += " title \"" + s(e.title) + "\"\n"), e.edition && (t += " edition \"" + s(e.edition) + "\"\n"), e.year && (t += " year " + e.year + "\n"), e.namespace && (t += " namespace " + N(e.namespace) + "\n");
|
|
9558
9671
|
let n = Et(e.sequence);
|
|
9559
9672
|
n && (t += " " + n + "\n");
|
|
9560
9673
|
for (let n of e.registers) t += Dt(n, " ");
|
|
9561
9674
|
return (e.source.doc || e.source.clause) && (t += " source {\n", e.source.doc && (t += " doc \"" + s(e.source.doc) + "\"\n"), e.source.clause && (t += " clause \"" + s(e.source.clause) + "\"\n"), t += " }\n"), t += "}\n", t;
|
|
9562
|
-
},
|
|
9563
|
-
function
|
|
9675
|
+
}, Fl = ["informative"];
|
|
9676
|
+
function Il(e, t) {
|
|
9564
9677
|
let n = {
|
|
9565
9678
|
id: "",
|
|
9566
9679
|
title: "",
|
|
@@ -9576,7 +9689,7 @@ function Ol(e, t) {
|
|
|
9576
9689
|
else if (e === "year") n.year = parseInt(a(r()), 10) || 0;
|
|
9577
9690
|
else if (e === "role") {
|
|
9578
9691
|
let e = a(r());
|
|
9579
|
-
if (!
|
|
9692
|
+
if (!Fl.includes(e)) throw Error(`Parsing error: informative_annex. ID ${t}: Unknown document role "${e}" (valid: ${Fl.join(", ")})`);
|
|
9580
9693
|
n.role = e;
|
|
9581
9694
|
} else if (e === "source") n.source = a(r());
|
|
9582
9695
|
else return !1;
|
|
@@ -9586,7 +9699,7 @@ function Ol(e, t) {
|
|
|
9586
9699
|
id: t
|
|
9587
9700
|
}), n;
|
|
9588
9701
|
}
|
|
9589
|
-
function
|
|
9702
|
+
function Ll(e, t) {
|
|
9590
9703
|
let n = {
|
|
9591
9704
|
id: e,
|
|
9592
9705
|
clause: "",
|
|
@@ -9606,7 +9719,7 @@ function kl(e, t) {
|
|
|
9606
9719
|
id: e
|
|
9607
9720
|
}), n;
|
|
9608
9721
|
}
|
|
9609
|
-
var
|
|
9722
|
+
var Rl = (e, t) => {
|
|
9610
9723
|
let n = {
|
|
9611
9724
|
id: e,
|
|
9612
9725
|
document: {
|
|
@@ -9624,7 +9737,7 @@ var Al = (e, t) => {
|
|
|
9624
9737
|
highlights: []
|
|
9625
9738
|
};
|
|
9626
9739
|
return v(t, (t, r, o) => {
|
|
9627
|
-
if (t === "document") n.document =
|
|
9740
|
+
if (t === "document") n.document = Il(i(r()), e);
|
|
9628
9741
|
else if (t === "applies_to") n.appliesTo = a(r());
|
|
9629
9742
|
else if (t === "applied_by") n.appliedBy = a(r());
|
|
9630
9743
|
else if (t === "scope") n.scope = a(r());
|
|
@@ -9632,19 +9745,19 @@ var Al = (e, t) => {
|
|
|
9632
9745
|
else if (t === "highlight") {
|
|
9633
9746
|
let t = a(r()), s = o();
|
|
9634
9747
|
if (s === void 0 || !s.startsWith("{")) throw Error(`Parsing error: informative_annex. ID ${e}: highlight ${t} is missing its block`);
|
|
9635
|
-
n.highlights.push(
|
|
9748
|
+
n.highlights.push(Ll(t, i(r())));
|
|
9636
9749
|
} else return !1;
|
|
9637
9750
|
return !0;
|
|
9638
9751
|
}, {
|
|
9639
9752
|
construct: "informative_annex",
|
|
9640
9753
|
id: e
|
|
9641
9754
|
}), (t) => (t.informativeAnnexes[e] = n, t);
|
|
9642
|
-
},
|
|
9755
|
+
}, zl = function(e) {
|
|
9643
9756
|
let t = "informative_annex " + e.id + " {\n";
|
|
9644
9757
|
t += " document {\n", e.document.id && (t += " id \"" + s(e.document.id) + "\"\n"), e.document.title && (t += " title \"" + s(e.document.title) + "\"\n"), e.document.edition && (t += " edition " + e.document.edition + "\n"), e.document.year && (t += " year " + e.document.year + "\n"), e.document.role && (t += " role " + N(e.document.role) + "\n"), e.document.source && (t += " source \"" + s(e.document.source) + "\"\n"), t += " }\n", e.appliesTo && (t += " applies_to " + N(e.appliesTo) + "\n"), e.appliedBy && (t += " applied_by \"" + s(e.appliedBy) + "\"\n"), e.scope && (t += " scope \"" + s(e.scope) + "\"\n"), e.numberingCaution && (t += " numbering_caution \"" + s(e.numberingCaution) + "\"\n");
|
|
9645
9758
|
for (let n of e.highlights) t += " highlight " + N(n.id) + " {\n", n.clause && (t += " clause \"" + s(n.clause) + "\"\n"), n.title && (t += " title \"" + s(n.title) + "\"\n"), n.statement && (t += " statement \"" + s(n.statement) + "\"\n"), n.dischargedBy && (t += " discharged_by \"" + s(n.dischargedBy) + "\"\n"), t += " }\n";
|
|
9646
9759
|
return t += "}\n", t;
|
|
9647
|
-
},
|
|
9760
|
+
}, Bl = ["normative", "informative"], Vl = (e, t) => {
|
|
9648
9761
|
let n = {
|
|
9649
9762
|
id: e,
|
|
9650
9763
|
letter: "",
|
|
@@ -9662,7 +9775,7 @@ var Al = (e, t) => {
|
|
|
9662
9775
|
else if (t === "title") n.title = a(r());
|
|
9663
9776
|
else if (t === "obligation") {
|
|
9664
9777
|
let t = a(r());
|
|
9665
|
-
if (!
|
|
9778
|
+
if (!Bl.includes(t)) throw Error(`Parsing error: part_annex. ID ${e}: Unknown obligation "${t}" (valid: ${Bl.join(", ")})`);
|
|
9666
9779
|
n.obligation = t;
|
|
9667
9780
|
} else if (t === "summary") n.summary = a(r());
|
|
9668
9781
|
else if (t === "realization") n.realization = a(r());
|
|
@@ -9673,30 +9786,30 @@ var Al = (e, t) => {
|
|
|
9673
9786
|
construct: "part_annex",
|
|
9674
9787
|
id: e
|
|
9675
9788
|
}), (t) => (t.partAnnexes[e] = n, t);
|
|
9676
|
-
},
|
|
9789
|
+
}, Hl = function(e) {
|
|
9677
9790
|
let t = "part_annex " + e.id + " {\n";
|
|
9678
9791
|
return e.letter && (t += " letter \"" + s(e.letter) + "\"\n"), e.title && (t += " title \"" + s(e.title) + "\"\n"), e.obligation && (t += " obligation " + N(e.obligation) + "\n"), e.summary && (t += " summary \"" + s(e.summary) + "\"\n"), e.realization && (t += " realization \"" + s(e.realization) + "\"\n"), (e.source.doc || e.source.clause) && (t += " source {\n", e.source.doc && (t += " doc \"" + s(e.source.doc) + "\"\n"), e.source.clause && (t += " clause \"" + s(e.source.clause) + "\"\n"), t += " }\n"), t += "}\n", t;
|
|
9679
9792
|
};
|
|
9680
9793
|
//#endregion
|
|
9681
9794
|
//#region src/ser-des/config/storyline.ts
|
|
9682
|
-
function
|
|
9795
|
+
function Ul(e) {
|
|
9683
9796
|
return e.startsWith("{") ? n(i(e)).filter((e) => e.length > 0).map(z) : z(e);
|
|
9684
9797
|
}
|
|
9685
|
-
function
|
|
9798
|
+
function Wl(e) {
|
|
9686
9799
|
let t = {}, r = n(e), i = 0;
|
|
9687
9800
|
for (; i < r.length;) {
|
|
9688
9801
|
let e = r[i++];
|
|
9689
9802
|
if (i >= r.length) break;
|
|
9690
|
-
t[P(e)] =
|
|
9803
|
+
t[P(e)] = Ul(r[i++]);
|
|
9691
9804
|
}
|
|
9692
9805
|
return t;
|
|
9693
9806
|
}
|
|
9694
|
-
function
|
|
9807
|
+
function Gl(e, t) {
|
|
9695
9808
|
let n = "";
|
|
9696
9809
|
for (let [r, i] of Object.entries(e)) n += Array.isArray(i) ? t + r + " { " + i.map(B).join(" ") + " }\n" : t + r + " " + B(i) + "\n";
|
|
9697
9810
|
return n;
|
|
9698
9811
|
}
|
|
9699
|
-
function
|
|
9812
|
+
function Kl(e) {
|
|
9700
9813
|
let t = [], r = n(e), o = 0;
|
|
9701
9814
|
for (; o < r.length;) {
|
|
9702
9815
|
let e = a(r[o++]);
|
|
@@ -9710,14 +9823,14 @@ function Rl(e) {
|
|
|
9710
9823
|
if (l >= c.length || !c[l].startsWith("{")) break;
|
|
9711
9824
|
s.entries.push({
|
|
9712
9825
|
id: e,
|
|
9713
|
-
fields:
|
|
9826
|
+
fields: Wl(i(c[l++]))
|
|
9714
9827
|
});
|
|
9715
9828
|
}
|
|
9716
9829
|
t.push(s);
|
|
9717
9830
|
}
|
|
9718
9831
|
return t;
|
|
9719
9832
|
}
|
|
9720
|
-
var
|
|
9833
|
+
var ql = (e, t) => {
|
|
9721
9834
|
let n = {
|
|
9722
9835
|
id: e,
|
|
9723
9836
|
standard: "",
|
|
@@ -9727,27 +9840,27 @@ var zl = (e, t) => {
|
|
|
9727
9840
|
return v(t, (e, t) => {
|
|
9728
9841
|
if (e === "standard") n.standard = a(t());
|
|
9729
9842
|
else if (e === "description") n.description = a(t());
|
|
9730
|
-
else if (e === "participants") n.participants =
|
|
9843
|
+
else if (e === "participants") n.participants = Kl(i(t()));
|
|
9731
9844
|
else return !1;
|
|
9732
9845
|
return !0;
|
|
9733
9846
|
}, {
|
|
9734
9847
|
construct: "demo_world",
|
|
9735
9848
|
id: e
|
|
9736
9849
|
}), (t) => (t.demoWorlds[e] = n, t);
|
|
9737
|
-
},
|
|
9850
|
+
}, Jl = function(e) {
|
|
9738
9851
|
let t = "demo_world " + e.id + " {\n";
|
|
9739
9852
|
if (e.standard && (t += " standard " + N(e.standard) + "\n"), e.description && (t += " description \"" + s(e.description) + "\"\n"), e.participants.length > 0) {
|
|
9740
9853
|
t += " participants {\n";
|
|
9741
9854
|
for (let n of e.participants) {
|
|
9742
9855
|
t += " " + N(n.id) + " {\n";
|
|
9743
|
-
for (let e of n.entries) t += " " + N(e.id) + " {\n", t +=
|
|
9856
|
+
for (let e of n.entries) t += " " + N(e.id) + " {\n", t += Gl(e.fields, " "), t += " }\n";
|
|
9744
9857
|
t += " }\n";
|
|
9745
9858
|
}
|
|
9746
9859
|
t += " }\n";
|
|
9747
9860
|
}
|
|
9748
9861
|
return t += "}\n", t;
|
|
9749
9862
|
};
|
|
9750
|
-
function
|
|
9863
|
+
function Yl(e) {
|
|
9751
9864
|
let t = [], r = n(e), o = 0;
|
|
9752
9865
|
for (; o < r.length;) {
|
|
9753
9866
|
let e = a(r[o++]);
|
|
@@ -9757,11 +9870,11 @@ function Vl(e) {
|
|
|
9757
9870
|
id: a(r[o++]),
|
|
9758
9871
|
fields: {}
|
|
9759
9872
|
};
|
|
9760
|
-
o < r.length && r[o].startsWith("{") && (n.fields =
|
|
9873
|
+
o < r.length && r[o].startsWith("{") && (n.fields = Wl(i(r[o++]))), t.push(n);
|
|
9761
9874
|
}
|
|
9762
9875
|
return t;
|
|
9763
9876
|
}
|
|
9764
|
-
var
|
|
9877
|
+
var Xl = (e, t) => {
|
|
9765
9878
|
let r = {
|
|
9766
9879
|
id: e,
|
|
9767
9880
|
name: "",
|
|
@@ -9780,7 +9893,7 @@ var Hl = (e, t) => {
|
|
|
9780
9893
|
else if (t === "party") {
|
|
9781
9894
|
let e = n(i(o()));
|
|
9782
9895
|
for (let t = 0; t + 1 < e.length; t += 2) e[t] === "laboratory" ? r.party.laboratory = a(e[t + 1]) : e[t] === "authority" && (r.party.authority = a(e[t + 1]));
|
|
9783
|
-
} else if (t === "subject") r.subject =
|
|
9896
|
+
} else if (t === "subject") r.subject = Yl(i(o()));
|
|
9784
9897
|
else if (t === "record") {
|
|
9785
9898
|
let t = a(o()), n = s();
|
|
9786
9899
|
if (n === void 0 || n.startsWith("{")) throw Error(`Parsing error: storyline. ID ${e}: record ${t} is missing its id and block`);
|
|
@@ -9789,7 +9902,7 @@ var Hl = (e, t) => {
|
|
|
9789
9902
|
r.records.push({
|
|
9790
9903
|
store: t,
|
|
9791
9904
|
id: c,
|
|
9792
|
-
fields:
|
|
9905
|
+
fields: Wl(i(o()))
|
|
9793
9906
|
});
|
|
9794
9907
|
} else if (t === "note") r.notes.push(a(o()));
|
|
9795
9908
|
else return !1;
|
|
@@ -9798,14 +9911,14 @@ var Hl = (e, t) => {
|
|
|
9798
9911
|
construct: "storyline",
|
|
9799
9912
|
id: e
|
|
9800
9913
|
}), (t) => (t.storylines[e] = r, t);
|
|
9801
|
-
},
|
|
9914
|
+
}, Zl = function(e) {
|
|
9802
9915
|
let t = "storyline " + e.id + " {\n";
|
|
9803
9916
|
if (e.name && (t += " name \"" + s(e.name) + "\"\n"), e.idPrefix && (t += " id_prefix " + N(e.idPrefix) + "\n"), (e.party.laboratory || e.party.authority) && (t += " party {", e.party.laboratory && (t += " laboratory " + N(e.party.laboratory)), e.party.authority && (t += " authority " + N(e.party.authority)), t += " }\n"), e.subject.length > 0) {
|
|
9804
9917
|
t += " subject {\n";
|
|
9805
|
-
for (let n of e.subject) t += " " + N(n.kind) + " " + N(n.id) + " {\n", t +=
|
|
9918
|
+
for (let n of e.subject) t += " " + N(n.kind) + " " + N(n.id) + " {\n", t += Gl(n.fields, " "), t += " }\n";
|
|
9806
9919
|
t += " }\n";
|
|
9807
9920
|
}
|
|
9808
|
-
for (let n of e.records) t += " record " + N(n.store) + " " + N(n.id) + " {\n", t +=
|
|
9921
|
+
for (let n of e.records) t += " record " + N(n.store) + " " + N(n.id) + " {\n", t += Gl(n.fields, " "), t += " }\n";
|
|
9809
9922
|
for (let n of e.notes) t += " note \"" + s(n) + "\"\n";
|
|
9810
9923
|
return t += "}\n", t;
|
|
9811
9924
|
};
|
|
@@ -9814,7 +9927,7 @@ var Hl = (e, t) => {
|
|
|
9814
9927
|
function J(e) {
|
|
9815
9928
|
return e;
|
|
9816
9929
|
}
|
|
9817
|
-
var
|
|
9930
|
+
var Ql = [
|
|
9818
9931
|
J({
|
|
9819
9932
|
keyword: "role",
|
|
9820
9933
|
field: "roles",
|
|
@@ -10015,8 +10128,8 @@ var Wl = [
|
|
|
10015
10128
|
keyword: "term",
|
|
10016
10129
|
field: "terms",
|
|
10017
10130
|
takesID: !0,
|
|
10018
|
-
parse:
|
|
10019
|
-
dump:
|
|
10131
|
+
parse: Vi,
|
|
10132
|
+
dump: Hi
|
|
10020
10133
|
}),
|
|
10021
10134
|
J({
|
|
10022
10135
|
keyword: "form",
|
|
@@ -10029,8 +10142,8 @@ var Wl = [
|
|
|
10029
10142
|
keyword: "certificate_template",
|
|
10030
10143
|
field: "certificateTemplates",
|
|
10031
10144
|
takesID: !0,
|
|
10032
|
-
parse:
|
|
10033
|
-
dump:
|
|
10145
|
+
parse: Rs,
|
|
10146
|
+
dump: zs
|
|
10034
10147
|
}),
|
|
10035
10148
|
J({
|
|
10036
10149
|
keyword: "subform",
|
|
@@ -10080,50 +10193,50 @@ var Wl = [
|
|
|
10080
10193
|
keyword: "calculation_context",
|
|
10081
10194
|
field: "calculationContexts",
|
|
10082
10195
|
takesID: !0,
|
|
10083
|
-
parse:
|
|
10084
|
-
dump:
|
|
10196
|
+
parse: Os,
|
|
10197
|
+
dump: ks
|
|
10085
10198
|
}),
|
|
10086
10199
|
J({
|
|
10087
10200
|
keyword: "evaluation_dimensions",
|
|
10088
10201
|
field: "evaluationDimensions",
|
|
10089
10202
|
takesID: !0,
|
|
10090
|
-
parse:
|
|
10091
|
-
dump:
|
|
10203
|
+
parse: Ms,
|
|
10204
|
+
dump: Ns
|
|
10092
10205
|
}),
|
|
10093
10206
|
J({
|
|
10094
10207
|
keyword: "evaluation_profile",
|
|
10095
10208
|
field: "evaluationProfiles",
|
|
10096
10209
|
takesID: !0,
|
|
10097
|
-
parse:
|
|
10098
|
-
dump:
|
|
10210
|
+
parse: Ps,
|
|
10211
|
+
dump: Fs
|
|
10099
10212
|
}),
|
|
10100
10213
|
J({
|
|
10101
10214
|
keyword: "verdict",
|
|
10102
10215
|
field: "verdicts",
|
|
10103
10216
|
takesID: !0,
|
|
10104
|
-
parse:
|
|
10105
|
-
dump:
|
|
10217
|
+
parse: Gi,
|
|
10218
|
+
dump: Ki
|
|
10106
10219
|
}),
|
|
10107
10220
|
J({
|
|
10108
10221
|
keyword: "reference_material",
|
|
10109
10222
|
field: "referenceMaterials",
|
|
10110
10223
|
takesID: !0,
|
|
10111
|
-
parse:
|
|
10112
|
-
dump:
|
|
10224
|
+
parse: Yi,
|
|
10225
|
+
dump: Xi
|
|
10113
10226
|
}),
|
|
10114
10227
|
J({
|
|
10115
10228
|
keyword: "test_point_set",
|
|
10116
10229
|
field: "testPointSets",
|
|
10117
10230
|
takesID: !0,
|
|
10118
|
-
parse:
|
|
10119
|
-
dump:
|
|
10231
|
+
parse: ga,
|
|
10232
|
+
dump: _a
|
|
10120
10233
|
}),
|
|
10121
10234
|
J({
|
|
10122
10235
|
keyword: "common_test_condition",
|
|
10123
10236
|
field: "commonTestConditions",
|
|
10124
10237
|
takesID: !0,
|
|
10125
|
-
parse:
|
|
10126
|
-
dump:
|
|
10238
|
+
parse: va,
|
|
10239
|
+
dump: ya
|
|
10127
10240
|
}),
|
|
10128
10241
|
J({
|
|
10129
10242
|
keyword: "competence_kind",
|
|
@@ -10136,36 +10249,36 @@ var Wl = [
|
|
|
10136
10249
|
keyword: "scheme_activity_kind",
|
|
10137
10250
|
field: "schemeActivityKinds",
|
|
10138
10251
|
takesID: !0,
|
|
10139
|
-
parse:
|
|
10140
|
-
dump:
|
|
10252
|
+
parse: ea,
|
|
10253
|
+
dump: ia
|
|
10141
10254
|
}),
|
|
10142
10255
|
J({
|
|
10143
10256
|
keyword: "scheme_type",
|
|
10144
10257
|
field: "schemeTypes",
|
|
10145
10258
|
takesID: !0,
|
|
10146
|
-
parse:
|
|
10147
|
-
dump:
|
|
10259
|
+
parse: na,
|
|
10260
|
+
dump: aa
|
|
10148
10261
|
}),
|
|
10149
10262
|
J({
|
|
10150
10263
|
keyword: "predicate",
|
|
10151
10264
|
field: "predicates",
|
|
10152
10265
|
takesID: !0,
|
|
10153
|
-
parse:
|
|
10154
|
-
dump:
|
|
10266
|
+
parse: oa,
|
|
10267
|
+
dump: sa
|
|
10155
10268
|
}),
|
|
10156
10269
|
J({
|
|
10157
10270
|
keyword: "constraint",
|
|
10158
10271
|
field: "constraints",
|
|
10159
10272
|
takesID: !0,
|
|
10160
|
-
parse:
|
|
10161
|
-
dump:
|
|
10273
|
+
parse: la,
|
|
10274
|
+
dump: ua
|
|
10162
10275
|
}),
|
|
10163
10276
|
J({
|
|
10164
10277
|
keyword: "discrepancy_record",
|
|
10165
10278
|
field: "discrepancyRecords",
|
|
10166
10279
|
takesID: !0,
|
|
10167
|
-
parse:
|
|
10168
|
-
dump:
|
|
10280
|
+
parse: fa,
|
|
10281
|
+
dump: pa
|
|
10169
10282
|
}),
|
|
10170
10283
|
J({
|
|
10171
10284
|
keyword: "state_machine",
|
|
@@ -10174,20 +10287,20 @@ var Wl = [
|
|
|
10174
10287
|
parse: Hr,
|
|
10175
10288
|
dump: Gr
|
|
10176
10289
|
}),
|
|
10177
|
-
|
|
10178
|
-
|
|
10179
|
-
|
|
10180
|
-
|
|
10181
|
-
|
|
10182
|
-
|
|
10183
|
-
|
|
10184
|
-
|
|
10290
|
+
ka,
|
|
10291
|
+
Aa,
|
|
10292
|
+
ts,
|
|
10293
|
+
ns,
|
|
10294
|
+
rs,
|
|
10295
|
+
is,
|
|
10296
|
+
as,
|
|
10297
|
+
Ia,
|
|
10185
10298
|
J({
|
|
10186
10299
|
keyword: "conformance_test",
|
|
10187
10300
|
field: "conformanceTests",
|
|
10188
10301
|
takesID: !0,
|
|
10189
|
-
parse:
|
|
10190
|
-
dump:
|
|
10302
|
+
parse: Ii,
|
|
10303
|
+
dump: Li
|
|
10191
10304
|
}),
|
|
10192
10305
|
J({
|
|
10193
10306
|
keyword: "verification_pathway",
|
|
@@ -10217,177 +10330,177 @@ var Wl = [
|
|
|
10217
10330
|
parse: nn,
|
|
10218
10331
|
dump: rn
|
|
10219
10332
|
}),
|
|
10220
|
-
|
|
10333
|
+
os,
|
|
10221
10334
|
J({
|
|
10222
10335
|
keyword: "identity_slot",
|
|
10223
10336
|
field: "identitySlots",
|
|
10224
10337
|
takesID: !0,
|
|
10225
|
-
parse:
|
|
10226
|
-
dump:
|
|
10338
|
+
parse: vs,
|
|
10339
|
+
dump: ys
|
|
10227
10340
|
}),
|
|
10228
10341
|
J({
|
|
10229
10342
|
keyword: "aspect",
|
|
10230
10343
|
field: "aspects",
|
|
10231
10344
|
takesID: !0,
|
|
10232
|
-
parse:
|
|
10233
|
-
dump:
|
|
10345
|
+
parse: xs,
|
|
10346
|
+
dump: Ss
|
|
10234
10347
|
}),
|
|
10235
10348
|
J({
|
|
10236
10349
|
keyword: "promise_set",
|
|
10237
10350
|
field: "promiseSets",
|
|
10238
10351
|
takesID: !0,
|
|
10239
|
-
parse:
|
|
10240
|
-
dump:
|
|
10352
|
+
parse: Cs,
|
|
10353
|
+
dump: ws
|
|
10241
10354
|
}),
|
|
10242
10355
|
J({
|
|
10243
10356
|
keyword: "application_declaration",
|
|
10244
10357
|
field: "applicationDeclarations",
|
|
10245
10358
|
takesID: !0,
|
|
10246
|
-
parse:
|
|
10247
|
-
dump:
|
|
10359
|
+
parse: Es,
|
|
10360
|
+
dump: Ds
|
|
10248
10361
|
}),
|
|
10249
|
-
|
|
10250
|
-
|
|
10251
|
-
|
|
10252
|
-
|
|
10253
|
-
|
|
10362
|
+
hs,
|
|
10363
|
+
Zs,
|
|
10364
|
+
Qs,
|
|
10365
|
+
jc,
|
|
10366
|
+
Mc,
|
|
10254
10367
|
J({
|
|
10255
10368
|
keyword: "activity_archetype",
|
|
10256
10369
|
field: "activityArchetypes",
|
|
10257
10370
|
takesID: !0,
|
|
10258
|
-
parse:
|
|
10259
|
-
dump:
|
|
10371
|
+
parse: zc,
|
|
10372
|
+
dump: Bc
|
|
10260
10373
|
}),
|
|
10261
10374
|
J({
|
|
10262
10375
|
keyword: "participant_kind",
|
|
10263
10376
|
field: "participantKinds",
|
|
10264
10377
|
takesID: !0,
|
|
10265
|
-
parse:
|
|
10266
|
-
dump:
|
|
10378
|
+
parse: Wc,
|
|
10379
|
+
dump: Jc
|
|
10267
10380
|
}),
|
|
10268
10381
|
J({
|
|
10269
10382
|
keyword: "governance_organ",
|
|
10270
10383
|
field: "governanceOrgans",
|
|
10271
10384
|
takesID: !0,
|
|
10272
|
-
parse:
|
|
10273
|
-
dump:
|
|
10385
|
+
parse: Yc,
|
|
10386
|
+
dump: Xc
|
|
10274
10387
|
}),
|
|
10275
10388
|
J({
|
|
10276
10389
|
keyword: "declaration_kind",
|
|
10277
10390
|
field: "declarationKinds",
|
|
10278
10391
|
takesID: !0,
|
|
10279
|
-
parse:
|
|
10280
|
-
dump:
|
|
10392
|
+
parse: Qc,
|
|
10393
|
+
dump: tl
|
|
10281
10394
|
}),
|
|
10282
10395
|
J({
|
|
10283
10396
|
keyword: "declaration_status",
|
|
10284
10397
|
field: "declarationStatuses",
|
|
10285
10398
|
takesID: !0,
|
|
10286
|
-
parse:
|
|
10287
|
-
dump:
|
|
10399
|
+
parse: nl,
|
|
10400
|
+
dump: rl
|
|
10288
10401
|
}),
|
|
10289
10402
|
J({
|
|
10290
10403
|
keyword: "declaration_gate",
|
|
10291
10404
|
field: "declarationGates",
|
|
10292
10405
|
takesID: !0,
|
|
10293
|
-
parse:
|
|
10294
|
-
dump:
|
|
10406
|
+
parse: il,
|
|
10407
|
+
dump: al
|
|
10295
10408
|
}),
|
|
10296
10409
|
J({
|
|
10297
10410
|
keyword: "scheme_definition",
|
|
10298
10411
|
field: "schemeDefinitions",
|
|
10299
10412
|
takesID: !0,
|
|
10300
|
-
parse:
|
|
10301
|
-
dump:
|
|
10413
|
+
parse: sl,
|
|
10414
|
+
dump: ll
|
|
10302
10415
|
}),
|
|
10303
10416
|
J({
|
|
10304
10417
|
keyword: "scheme_lifecycle",
|
|
10305
10418
|
field: "schemeLifecycles",
|
|
10306
10419
|
takesID: !0,
|
|
10307
|
-
parse:
|
|
10308
|
-
dump:
|
|
10420
|
+
parse: pl,
|
|
10421
|
+
dump: ml
|
|
10309
10422
|
}),
|
|
10310
10423
|
J({
|
|
10311
10424
|
keyword: "framework_document",
|
|
10312
10425
|
field: "frameworkDocuments",
|
|
10313
10426
|
takesID: !0,
|
|
10314
|
-
parse:
|
|
10315
|
-
dump:
|
|
10427
|
+
parse: gl,
|
|
10428
|
+
dump: _l
|
|
10316
10429
|
}),
|
|
10317
10430
|
J({
|
|
10318
10431
|
keyword: "document_precedence",
|
|
10319
10432
|
field: "documentPrecedences",
|
|
10320
10433
|
takesID: !0,
|
|
10321
|
-
parse:
|
|
10322
|
-
dump:
|
|
10434
|
+
parse: vl,
|
|
10435
|
+
dump: yl
|
|
10323
10436
|
}),
|
|
10324
10437
|
J({
|
|
10325
10438
|
keyword: "auto_inclusion",
|
|
10326
10439
|
field: "autoInclusions",
|
|
10327
10440
|
takesID: !0,
|
|
10328
|
-
parse:
|
|
10329
|
-
dump:
|
|
10441
|
+
parse: xl,
|
|
10442
|
+
dump: Sl
|
|
10330
10443
|
}),
|
|
10331
10444
|
J({
|
|
10332
10445
|
keyword: "decision_rule",
|
|
10333
10446
|
field: "decisionRules",
|
|
10334
10447
|
takesID: !0,
|
|
10335
|
-
parse:
|
|
10336
|
-
dump:
|
|
10448
|
+
parse: Ol,
|
|
10449
|
+
dump: Ml
|
|
10337
10450
|
}),
|
|
10338
10451
|
J({
|
|
10339
10452
|
keyword: "document_module",
|
|
10340
10453
|
field: "documentModules",
|
|
10341
10454
|
takesID: !0,
|
|
10342
|
-
parse:
|
|
10343
|
-
dump:
|
|
10455
|
+
parse: Nl,
|
|
10456
|
+
dump: Pl
|
|
10344
10457
|
}),
|
|
10345
10458
|
J({
|
|
10346
10459
|
keyword: "informative_annex",
|
|
10347
10460
|
field: "informativeAnnexes",
|
|
10348
10461
|
takesID: !0,
|
|
10349
|
-
parse:
|
|
10350
|
-
dump:
|
|
10462
|
+
parse: Rl,
|
|
10463
|
+
dump: zl
|
|
10351
10464
|
}),
|
|
10352
10465
|
J({
|
|
10353
10466
|
keyword: "part_annex",
|
|
10354
10467
|
field: "partAnnexes",
|
|
10355
10468
|
takesID: !0,
|
|
10356
|
-
parse:
|
|
10357
|
-
dump:
|
|
10469
|
+
parse: Vl,
|
|
10470
|
+
dump: Hl
|
|
10358
10471
|
}),
|
|
10359
10472
|
J({
|
|
10360
10473
|
keyword: "demo_world",
|
|
10361
10474
|
field: "demoWorlds",
|
|
10362
10475
|
takesID: !0,
|
|
10363
|
-
parse:
|
|
10364
|
-
dump:
|
|
10476
|
+
parse: ql,
|
|
10477
|
+
dump: Jl
|
|
10365
10478
|
}),
|
|
10366
10479
|
J({
|
|
10367
10480
|
keyword: "storyline",
|
|
10368
10481
|
field: "storylines",
|
|
10369
10482
|
takesID: !0,
|
|
10370
|
-
parse:
|
|
10371
|
-
dump:
|
|
10483
|
+
parse: Xl,
|
|
10484
|
+
dump: Zl
|
|
10372
10485
|
}),
|
|
10373
|
-
|
|
10374
|
-
nc,
|
|
10375
|
-
lc,
|
|
10486
|
+
Ja,
|
|
10376
10487
|
uc,
|
|
10377
|
-
|
|
10378
|
-
|
|
10488
|
+
_c,
|
|
10489
|
+
vc,
|
|
10490
|
+
bc,
|
|
10491
|
+
xc,
|
|
10379
10492
|
J({
|
|
10380
10493
|
keyword: "text",
|
|
10381
10494
|
field: "texts",
|
|
10382
10495
|
takesID: !0,
|
|
10383
|
-
parse:
|
|
10384
|
-
dump:
|
|
10496
|
+
parse: Sc,
|
|
10497
|
+
dump: Cc
|
|
10385
10498
|
}),
|
|
10386
|
-
|
|
10387
|
-
|
|
10388
|
-
|
|
10499
|
+
Fc,
|
|
10500
|
+
Lc,
|
|
10501
|
+
Rc
|
|
10389
10502
|
];
|
|
10390
|
-
function
|
|
10503
|
+
function $l(e) {
|
|
10391
10504
|
let t = {};
|
|
10392
10505
|
for (let n of e) {
|
|
10393
10506
|
if (!n.field) continue;
|
|
@@ -10401,61 +10514,61 @@ function Gl(e) {
|
|
|
10401
10514
|
}
|
|
10402
10515
|
return t;
|
|
10403
10516
|
}
|
|
10404
|
-
function
|
|
10517
|
+
function eu(e) {
|
|
10405
10518
|
let t = {};
|
|
10406
10519
|
for (let n of e) n.field && (t[n.field] = { resolve: n.resolve ?? ((e, t) => t) });
|
|
10407
10520
|
return t;
|
|
10408
10521
|
}
|
|
10409
|
-
function
|
|
10522
|
+
function tu(e) {
|
|
10410
10523
|
let t = {};
|
|
10411
10524
|
for (let n of e) n.field && (t[n.field] = n.dump);
|
|
10412
10525
|
return t;
|
|
10413
10526
|
}
|
|
10414
|
-
var
|
|
10415
|
-
package: { parse:
|
|
10527
|
+
var nu = {
|
|
10528
|
+
package: { parse: Pa },
|
|
10416
10529
|
root: { parse: (e) => (t) => (t.root = e.trim(), t) },
|
|
10417
10530
|
metadata: { parse: m },
|
|
10418
10531
|
version: { parse: () => (e) => e },
|
|
10419
|
-
|
|
10420
|
-
},
|
|
10532
|
+
...$l(Ql)
|
|
10533
|
+
}, ru = eu(Ql), iu = tu(Ql), Y = (/* @__PURE__ */ e(((e, t) => {
|
|
10421
10534
|
t.exports = {};
|
|
10422
|
-
})))(),
|
|
10423
|
-
function
|
|
10535
|
+
})))(), au = /^include\s+"([^"]+)"/gm, ou = /^[ \t]*(#|\/\/)/;
|
|
10536
|
+
function su(e, t = /* @__PURE__ */ new Set()) {
|
|
10424
10537
|
let n = (0, Y.resolve)(e);
|
|
10425
10538
|
if (t.has(n)) throw Error(`Include cycle detected: ${n} (chain: ${[...t, n].map((e) => e.split("/").pop()).join(" → ")})`);
|
|
10426
10539
|
if (t.add(n), !(0, Y.existsSync)(n)) throw Error(`Include file not found: ${n}`);
|
|
10427
10540
|
let r = (0, Y.readFileSync)(n, "utf8"), i = (0, Y.dirname)(n);
|
|
10428
|
-
return r.replace(
|
|
10541
|
+
return r.replace(au, (e, n, a) => {
|
|
10429
10542
|
let o = r.lastIndexOf("\n", a) + 1, s = r.slice(o, a);
|
|
10430
|
-
if (
|
|
10543
|
+
if (ou.test(s)) return e;
|
|
10431
10544
|
let c = (0, Y.isAbsolute)(n) ? n : (0, Y.resolve)(i, n);
|
|
10432
|
-
return
|
|
10545
|
+
return su(c.endsWith(".prl") || c.endsWith(".mmel") ? c : (0, Y.existsSync)(`${c}.prl`) ? `${c}.prl` : `${c}.mmel`, new Set(t));
|
|
10433
10546
|
});
|
|
10434
10547
|
}
|
|
10435
10548
|
//#endregion
|
|
10436
10549
|
//#region src/validate.ts
|
|
10437
|
-
function
|
|
10550
|
+
function cu(e) {
|
|
10438
10551
|
let t = [];
|
|
10439
|
-
for (let n of
|
|
10552
|
+
for (let n of lu) t.push(...n.check(e));
|
|
10440
10553
|
return t;
|
|
10441
10554
|
}
|
|
10442
|
-
var
|
|
10555
|
+
var lu = [
|
|
10443
10556
|
{
|
|
10444
10557
|
name: "empty-ids",
|
|
10445
|
-
check:
|
|
10558
|
+
check: uu
|
|
10446
10559
|
},
|
|
10447
10560
|
{
|
|
10448
10561
|
name: "form-references",
|
|
10449
|
-
check:
|
|
10562
|
+
check: du
|
|
10450
10563
|
},
|
|
10451
10564
|
{
|
|
10452
10565
|
name: "state-machine-cascades",
|
|
10453
|
-
check:
|
|
10566
|
+
check: fu
|
|
10454
10567
|
}
|
|
10455
10568
|
];
|
|
10456
|
-
function
|
|
10569
|
+
function uu(e) {
|
|
10457
10570
|
let t = [];
|
|
10458
|
-
for (let [n, r] of
|
|
10571
|
+
for (let [n, r] of pu(e)) for (let e of r) (!e.id || e.id.trim() === "") && t.push({
|
|
10459
10572
|
severity: "error",
|
|
10460
10573
|
code: "empty-id",
|
|
10461
10574
|
construct: n,
|
|
@@ -10463,7 +10576,7 @@ function nu(e) {
|
|
|
10463
10576
|
});
|
|
10464
10577
|
return t;
|
|
10465
10578
|
}
|
|
10466
|
-
function
|
|
10579
|
+
function du(e) {
|
|
10467
10580
|
let t = [], n = new Set(e.calculations.map((e) => e.id)), r = new Set(e.processes.map((e) => e.id));
|
|
10468
10581
|
for (let t of e.conformanceTests ?? []) r.add(t.id);
|
|
10469
10582
|
let i = new Set(e.subforms.map((e) => e.id));
|
|
@@ -10475,7 +10588,7 @@ function ru(e) {
|
|
|
10475
10588
|
message: `Form "${a.id}" references conformance process "${a.conformanceProcessId}" which does not exist`,
|
|
10476
10589
|
id: a.id
|
|
10477
10590
|
});
|
|
10478
|
-
for (let e of
|
|
10591
|
+
for (let e of mu(a)) {
|
|
10479
10592
|
let r = e.calculationId;
|
|
10480
10593
|
r && !r.startsWith("ocl{") && !n.has(r) && t.push({
|
|
10481
10594
|
severity: "error",
|
|
@@ -10494,7 +10607,7 @@ function ru(e) {
|
|
|
10494
10607
|
}
|
|
10495
10608
|
return t;
|
|
10496
10609
|
}
|
|
10497
|
-
function
|
|
10610
|
+
function fu(e) {
|
|
10498
10611
|
let t = [];
|
|
10499
10612
|
for (let n of e.stateMachines) {
|
|
10500
10613
|
let e = new Set(n.states.map((e) => e.name));
|
|
@@ -10515,10 +10628,10 @@ function iu(e) {
|
|
|
10515
10628
|
}
|
|
10516
10629
|
return t;
|
|
10517
10630
|
}
|
|
10518
|
-
function*
|
|
10631
|
+
function* pu(e) {
|
|
10519
10632
|
for (let [t, n] of Object.entries(e)) Array.isArray(n) && n.length > 0 && typeof n[0]?.id == "string" && (yield [t, n]);
|
|
10520
10633
|
}
|
|
10521
|
-
function*
|
|
10634
|
+
function* mu(e) {
|
|
10522
10635
|
let t = [...e.fields];
|
|
10523
10636
|
for (; t.length > 0;) {
|
|
10524
10637
|
let e = t.pop();
|
|
@@ -10527,7 +10640,7 @@ function* ou(e) {
|
|
|
10527
10640
|
}
|
|
10528
10641
|
//#endregion
|
|
10529
10642
|
//#region src/ser-des/package.ts
|
|
10530
|
-
var
|
|
10643
|
+
var hu = [
|
|
10531
10644
|
"model",
|
|
10532
10645
|
"entities",
|
|
10533
10646
|
"specification",
|
|
@@ -10535,23 +10648,23 @@ var su = [
|
|
|
10535
10648
|
"evaluation",
|
|
10536
10649
|
"framework"
|
|
10537
10650
|
];
|
|
10538
|
-
function
|
|
10651
|
+
function gu(e) {
|
|
10539
10652
|
let t = [];
|
|
10540
10653
|
if (!(0, Y.existsSync)(e)) return t;
|
|
10541
10654
|
for (let n of (0, Y.readdirSync)(e).sort()) {
|
|
10542
10655
|
let r = (0, Y.join)(e, n);
|
|
10543
|
-
(0, Y.statSync)(r).isDirectory() ? t.push(...
|
|
10656
|
+
(0, Y.statSync)(r).isDirectory() ? t.push(...gu(r)) : (n.endsWith(".prl") || n.endsWith(".mmel")) && t.push(r);
|
|
10544
10657
|
}
|
|
10545
10658
|
return t;
|
|
10546
10659
|
}
|
|
10547
|
-
function
|
|
10660
|
+
function _u(e) {
|
|
10548
10661
|
let t = (0, Y.resolve)(e), n = [], r = (0, Y.join)(t, "package.primmel");
|
|
10549
10662
|
(0, Y.existsSync)(r) && n.push({
|
|
10550
10663
|
path: r,
|
|
10551
10664
|
role: "manifest"
|
|
10552
10665
|
});
|
|
10553
10666
|
let i = [];
|
|
10554
|
-
for (let e of
|
|
10667
|
+
for (let e of hu) i.push(...gu((0, Y.join)(t, e)));
|
|
10555
10668
|
for (let e of (0, Y.readdirSync)(t).sort()) {
|
|
10556
10669
|
let n = (0, Y.join)(t, e);
|
|
10557
10670
|
(0, Y.statSync)(n).isFile() && (e.endsWith(".prl") || e.endsWith(".mmel")) && e !== "package.primmel" && e !== ".primmel-allowlist.prl" && i.push(n);
|
|
@@ -10563,10 +10676,10 @@ function lu(e) {
|
|
|
10563
10676
|
});
|
|
10564
10677
|
return n;
|
|
10565
10678
|
}
|
|
10566
|
-
function
|
|
10567
|
-
return
|
|
10679
|
+
function vu(e, t = {}) {
|
|
10680
|
+
return Eu(e, t).standard;
|
|
10568
10681
|
}
|
|
10569
|
-
function
|
|
10682
|
+
function yu(e, t) {
|
|
10570
10683
|
let n = /* @__PURE__ */ new Map(), r = [];
|
|
10571
10684
|
for (let i of t) {
|
|
10572
10685
|
let t = e.constructs[i.field]?.[i.id];
|
|
@@ -10582,37 +10695,37 @@ function du(e, t) {
|
|
|
10582
10695
|
unassigned: r
|
|
10583
10696
|
};
|
|
10584
10697
|
}
|
|
10585
|
-
function
|
|
10586
|
-
let n =
|
|
10698
|
+
function bu(e, t = {}) {
|
|
10699
|
+
let n = Eu(e, t, !0);
|
|
10587
10700
|
if (!n.provenance) throw Error("loadPackageWithProvenance: provenance not collected");
|
|
10588
10701
|
return {
|
|
10589
10702
|
...n,
|
|
10590
10703
|
provenance: n.provenance
|
|
10591
10704
|
};
|
|
10592
10705
|
}
|
|
10593
|
-
function
|
|
10706
|
+
function xu(e) {
|
|
10594
10707
|
let t = 0;
|
|
10595
10708
|
for (let n = 0; n < e.length; n++) e.charAt(n) === "\n" && t++;
|
|
10596
10709
|
return t;
|
|
10597
10710
|
}
|
|
10598
|
-
function
|
|
10711
|
+
function Su(e) {
|
|
10599
10712
|
let t = [], n = 0, r = 1;
|
|
10600
10713
|
for (let i of e) {
|
|
10601
10714
|
if (i.role !== "content") continue;
|
|
10602
|
-
let e =
|
|
10715
|
+
let e = su(i.path);
|
|
10603
10716
|
t.push({
|
|
10604
10717
|
path: i.path,
|
|
10605
10718
|
text: e,
|
|
10606
10719
|
start: n,
|
|
10607
10720
|
lineStart: r
|
|
10608
|
-
}), n += e.length + 2, r +=
|
|
10721
|
+
}), n += e.length + 2, r += xu(e) + 2;
|
|
10609
10722
|
}
|
|
10610
10723
|
return t;
|
|
10611
10724
|
}
|
|
10612
|
-
function
|
|
10725
|
+
function Cu(e) {
|
|
10613
10726
|
return e.map((e) => e.text).join("\n\n");
|
|
10614
10727
|
}
|
|
10615
|
-
function
|
|
10728
|
+
function wu(e, t, n) {
|
|
10616
10729
|
let r = {}, i = 0;
|
|
10617
10730
|
for (let a of e) {
|
|
10618
10731
|
for (; i + 1 < t.length && a.start.offset >= t[i + 1].start;) i++;
|
|
@@ -10632,46 +10745,46 @@ function gu(e, t, n) {
|
|
|
10632
10745
|
}
|
|
10633
10746
|
return r;
|
|
10634
10747
|
}
|
|
10635
|
-
function
|
|
10748
|
+
function Tu(e) {
|
|
10636
10749
|
let t = (0, Y.join)((0, Y.resolve)(e), "package.primmel");
|
|
10637
10750
|
if (!(0, Y.existsSync)(t)) throw Error(`loadPackage: no package.primmel found in ${(0, Y.resolve)(e)}`);
|
|
10638
10751
|
let n = (0, Y.readFileSync)(t, "utf8"), r = { packageManifest: null };
|
|
10639
|
-
|
|
10752
|
+
Pa(n)(r);
|
|
10640
10753
|
let i = r.packageManifest;
|
|
10641
10754
|
if (!i || !i.id) throw Error(`loadPackage: ${t} is not a valid package manifest`);
|
|
10642
10755
|
return i;
|
|
10643
10756
|
}
|
|
10644
|
-
function
|
|
10645
|
-
let r =
|
|
10757
|
+
function Eu(e, t = {}, n = !1) {
|
|
10758
|
+
let r = _u(e);
|
|
10646
10759
|
if (r.length === 0) throw Error(`loadPackage: no package files found in ${(0, Y.resolve)(e)}`);
|
|
10647
10760
|
let i = null;
|
|
10648
|
-
r.some((e) => e.role === "manifest") && (i =
|
|
10649
|
-
let a =
|
|
10650
|
-
if (i && t.resolvePackage &&
|
|
10761
|
+
r.some((e) => e.role === "manifest") && (i = Tu(e));
|
|
10762
|
+
let a = Su(r);
|
|
10763
|
+
if (i && t.resolvePackage && Ou(i).length > 0) return Fu(e, t, i, n);
|
|
10651
10764
|
let o = n ? {
|
|
10652
10765
|
...t,
|
|
10653
10766
|
withProvenance: !0
|
|
10654
|
-
} : t, s = u(
|
|
10767
|
+
} : t, s = u(Cu(a), nu, o);
|
|
10655
10768
|
if (i) {
|
|
10656
10769
|
s.packageManifest = i;
|
|
10657
|
-
let e =
|
|
10770
|
+
let e = ku(i);
|
|
10658
10771
|
e && s.issues.push(e);
|
|
10659
10772
|
}
|
|
10660
10773
|
let c = {
|
|
10661
|
-
standard: p(s,
|
|
10774
|
+
standard: p(s, ru),
|
|
10662
10775
|
issues: s.issues
|
|
10663
10776
|
};
|
|
10664
10777
|
if (n) {
|
|
10665
10778
|
let e = r.find((e) => e.role === "manifest")?.path;
|
|
10666
10779
|
c.provenance = {
|
|
10667
10780
|
...e === void 0 ? {} : { manifest: e },
|
|
10668
|
-
constructs:
|
|
10781
|
+
constructs: wu(s.constructs ?? [], a, i?.id)
|
|
10669
10782
|
};
|
|
10670
10783
|
}
|
|
10671
10784
|
return c;
|
|
10672
10785
|
}
|
|
10673
|
-
function
|
|
10674
|
-
return
|
|
10786
|
+
function Du(e, t = {}) {
|
|
10787
|
+
return Eu(e, t);
|
|
10675
10788
|
}
|
|
10676
10789
|
var X = class extends Error {
|
|
10677
10790
|
rule;
|
|
@@ -10679,12 +10792,12 @@ var X = class extends Error {
|
|
|
10679
10792
|
super(t), this.rule = e, this.name = "CompositionError";
|
|
10680
10793
|
}
|
|
10681
10794
|
};
|
|
10682
|
-
function
|
|
10795
|
+
function Ou(e) {
|
|
10683
10796
|
let t = [];
|
|
10684
10797
|
for (let n of [...e.uses ?? [], ...e.extends ? [e.extends] : []]) t.includes(n) || t.push(n);
|
|
10685
10798
|
return t;
|
|
10686
10799
|
}
|
|
10687
|
-
function
|
|
10800
|
+
function ku(e) {
|
|
10688
10801
|
return e.extends ? {
|
|
10689
10802
|
severity: "warning",
|
|
10690
10803
|
code: "extends-deprecated",
|
|
@@ -10693,47 +10806,47 @@ function xu(e) {
|
|
|
10693
10806
|
message: `package "${e.id}": 'extends ${e.extends}' is deprecated — declare 'uses { ${e.extends} }' instead (extends is treated as a single-entry uses)`
|
|
10694
10807
|
} : null;
|
|
10695
10808
|
}
|
|
10696
|
-
var
|
|
10697
|
-
function
|
|
10809
|
+
var Au = /* @__PURE__ */ "approvals.roles.processes.processModels.pages.gateways.regs.references.provisions.dataclasses.events.enums.variables.notes.tables.figures.links.mapProfiles.viewProfiles.terms.forms.subforms.symbols.formulaNotes.calculations.verdicts.referenceMaterials.testPointSets.commonTestConditions.competenceKinds.schemeActivityKinds.schemeTypes.constraints.discrepancyRecords.stateMachines.conformanceTests.conformanceClasses.requirements.requirementClasses.instruments.attributeDefinitions.capabilities.behaviors.conditionSets.subjects.identitySlots.aspects.promiseSets.applicationDeclarations.calculationContexts.evaluationDimensions.evaluationProfiles.certificateTemplates.workflowConfigs.workflowStages.verificationPathways.labSelectionCriteria.sampleSelectionRules.specimenGovernanceRules.testReportSkeletons.testReportChecklists.instances.quantityRegisters.duals.invariants.testSequences.formulasUsed.texts.participantKinds.governanceOrgans.declarationKinds.declarationStatuses.declarationGates.schemeDefinitions.schemeLifecycles.frameworkDocuments.documentPrecedences.autoInclusions.decisionRules.documentModules.informativeAnnexes.partAnnexes.demoWorlds.storylines.comments.predicates.artifactDefinitions.artifactInstances.activityArchetypes.connectorProfiles.monitors.passports.dataspaces.policies.dimensions".split("."), ju = /* @__PURE__ */ new Set(["workflowConfigs", "testReportChecklists"]);
|
|
10810
|
+
function Mu(e) {
|
|
10698
10811
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
10699
10812
|
}
|
|
10700
|
-
function
|
|
10813
|
+
function Nu(e, t) {
|
|
10701
10814
|
if (Array.isArray(e) && Array.isArray(t)) {
|
|
10702
|
-
let n = (e) =>
|
|
10815
|
+
let n = (e) => Mu(e) && typeof e.id == "string", r = [...e, ...t];
|
|
10703
10816
|
if (r.length > 0 && r.every(n)) {
|
|
10704
10817
|
let e = [], t = /* @__PURE__ */ new Map();
|
|
10705
|
-
for (let n of r) t.has(n.id) ? t.set(n.id,
|
|
10818
|
+
for (let n of r) t.has(n.id) ? t.set(n.id, Nu(t.get(n.id), n)) : (e.push(n.id), t.set(n.id, n));
|
|
10706
10819
|
return e.map((e) => t.get(e));
|
|
10707
10820
|
}
|
|
10708
10821
|
let i = [...e];
|
|
10709
10822
|
for (let e of t) i.includes(e) || i.push(e);
|
|
10710
10823
|
return i;
|
|
10711
10824
|
}
|
|
10712
|
-
if (
|
|
10825
|
+
if (Mu(e) && Mu(t)) {
|
|
10713
10826
|
let n = { ...e };
|
|
10714
|
-
for (let [e, r] of Object.entries(t)) e !== "overlay" && r != null && (n[e] = e in n ?
|
|
10827
|
+
for (let [e, r] of Object.entries(t)) e !== "overlay" && r != null && (n[e] = e in n ? Nu(n[e], r) : r);
|
|
10715
10828
|
return n;
|
|
10716
10829
|
}
|
|
10717
10830
|
return t;
|
|
10718
10831
|
}
|
|
10719
|
-
function
|
|
10720
|
-
let n =
|
|
10832
|
+
function Pu(e, t) {
|
|
10833
|
+
let n = Su(_u(e));
|
|
10721
10834
|
return {
|
|
10722
|
-
ctx: u(
|
|
10835
|
+
ctx: u(Cu(n), nu, t),
|
|
10723
10836
|
chunks: n
|
|
10724
10837
|
};
|
|
10725
10838
|
}
|
|
10726
|
-
function
|
|
10839
|
+
function Fu(e, t, n, r = !1) {
|
|
10727
10840
|
let i = t.resolvePackage, a = n.id, o = /* @__PURE__ */ new Map([[a, (0, Y.resolve)(e)]]), s = /* @__PURE__ */ new Map([[a, n]]), c = [], l = /* @__PURE__ */ new Map(), u = [], d = (e) => {
|
|
10728
10841
|
l.set(e, 1), u.push(e);
|
|
10729
|
-
for (let t of
|
|
10842
|
+
for (let t of Ou(s.get(e))) {
|
|
10730
10843
|
let n = l.get(t) ?? 0;
|
|
10731
10844
|
if (n === 1) throw new X("uses-cycle", `uses cycle: ${[...u.slice(u.indexOf(t)), t].join(" → ")} — package composition must be acyclic (uses-cycle)`);
|
|
10732
10845
|
if (n !== 2) {
|
|
10733
10846
|
if (!o.has(t)) {
|
|
10734
10847
|
let n = i(t);
|
|
10735
10848
|
if (!n) throw new X("uses-resolves", `package "${e}" uses "${t}", which the package locator cannot resolve (uses-resolves)`);
|
|
10736
|
-
let r =
|
|
10849
|
+
let r = Tu(n);
|
|
10737
10850
|
if (r.id !== t) throw new X("uses-resolves", `package "${e}" uses "${t}", but the located package (${(0, Y.resolve)(n)}) declares id "${r.id}" (uses-resolves)`);
|
|
10738
10851
|
if (o.set(t, n), s.set(t, r), r.kind === "product_reference") {
|
|
10739
10852
|
l.set(t, 2);
|
|
@@ -10751,13 +10864,13 @@ function Du(e, t, n, r = !1) {
|
|
|
10751
10864
|
withProvenance: !0
|
|
10752
10865
|
} : t, m = /* @__PURE__ */ new Map(), h = /* @__PURE__ */ new Map();
|
|
10753
10866
|
for (let e of c) {
|
|
10754
|
-
let t =
|
|
10867
|
+
let t = Pu(o.get(e), f);
|
|
10755
10868
|
m.set(e, t.ctx), h.set(e, t.chunks);
|
|
10756
10869
|
}
|
|
10757
10870
|
let g = /* @__PURE__ */ new Map();
|
|
10758
|
-
for (let e of
|
|
10871
|
+
for (let e of Au) g.set(e, /* @__PURE__ */ new Map());
|
|
10759
10872
|
let _ = m.get(c[0]);
|
|
10760
|
-
for (let e of
|
|
10873
|
+
for (let e of Au) for (let t of Object.keys(_[e])) g.get(e).set(t, c[0]);
|
|
10761
10874
|
let v = /* @__PURE__ */ new Map(), y = (e, t) => {
|
|
10762
10875
|
for (let n of Object.values(t.documentModules)) n.namespace !== "" && !v.has(n.namespace) && v.set(n.namespace, e);
|
|
10763
10876
|
for (let n of Object.keys(t.requirementClasses)) v.has(n) || v.set(n, e);
|
|
@@ -10771,13 +10884,13 @@ function Du(e, t, n, r = !1) {
|
|
|
10771
10884
|
for (let e of c.slice(1)) {
|
|
10772
10885
|
let t = m.get(e);
|
|
10773
10886
|
b(e, t);
|
|
10774
|
-
for (let n of
|
|
10887
|
+
for (let n of Au) {
|
|
10775
10888
|
let r = _[n], i = g.get(n);
|
|
10776
10889
|
for (let [a, o] of Object.entries(t[n])) {
|
|
10777
10890
|
let t = i.get(a);
|
|
10778
10891
|
if (t !== void 0) {
|
|
10779
|
-
if (!(typeof o == "object" && o && o.overlay === !0 && (n === "terms" ||
|
|
10780
|
-
if (
|
|
10892
|
+
if (!(typeof o == "object" && o && o.overlay === !0 && (n === "terms" || ju.has(n)))) throw new X("uses-no-redefine", `package "${e}" redefines ${String(n)} id "${a}" already declared by package "${t}" — an overlay may reference upstream ids, never redefine them (uses-no-redefine)`);
|
|
10893
|
+
if (ju.has(n)) {
|
|
10781
10894
|
if (n === "testReportChecklists") {
|
|
10782
10895
|
let t = new Set((r[a].entries ?? []).map((e) => e.id));
|
|
10783
10896
|
for (let n of o.entries ?? []) t.has(n.id) || _.issues.push({
|
|
@@ -10788,7 +10901,7 @@ function Du(e, t, n, r = !1) {
|
|
|
10788
10901
|
message: `package "${e}" overlay test_report_checklist "${a}" declares entry "${n.id}", which no upstream package's checklist carries — an overlay adds rec-bound strings to an upstream entry, never a fresh entry (orphan-overlay-entry)`
|
|
10789
10902
|
});
|
|
10790
10903
|
}
|
|
10791
|
-
r[a] =
|
|
10904
|
+
r[a] = Nu(r[a], o), i.set(a, e);
|
|
10792
10905
|
continue;
|
|
10793
10906
|
}
|
|
10794
10907
|
}
|
|
@@ -10816,12 +10929,12 @@ function Du(e, t, n, r = !1) {
|
|
|
10816
10929
|
}
|
|
10817
10930
|
});
|
|
10818
10931
|
for (let e of s.values()) {
|
|
10819
|
-
let t =
|
|
10932
|
+
let t = ku(e);
|
|
10820
10933
|
t && x.push(t);
|
|
10821
10934
|
}
|
|
10822
10935
|
_.packageManifest = n;
|
|
10823
10936
|
let S = {
|
|
10824
|
-
standard: p(_,
|
|
10937
|
+
standard: p(_, ru),
|
|
10825
10938
|
issues: [..._.issues, ...x],
|
|
10826
10939
|
composition: {
|
|
10827
10940
|
root: a,
|
|
@@ -10831,7 +10944,7 @@ function Du(e, t, n, r = !1) {
|
|
|
10831
10944
|
if (r) {
|
|
10832
10945
|
let t = {};
|
|
10833
10946
|
for (let e of c) {
|
|
10834
|
-
let n =
|
|
10947
|
+
let n = wu(m.get(e).constructs ?? [], h.get(e), e);
|
|
10835
10948
|
for (let [e, r] of Object.entries(n)) {
|
|
10836
10949
|
let n = t[e] ??= {};
|
|
10837
10950
|
for (let [e, t] of Object.entries(r)) n[e] = t;
|
|
@@ -10846,7 +10959,7 @@ function Du(e, t, n, r = !1) {
|
|
|
10846
10959
|
}
|
|
10847
10960
|
//#endregion
|
|
10848
10961
|
//#region src/ser-des/prm.ts
|
|
10849
|
-
var
|
|
10962
|
+
var Iu = /* @__PURE__ */ new Set(["MMEL_MAP", "Primmel_MAP"]), Lu = /* @__PURE__ */ new Set([
|
|
10850
10963
|
"full",
|
|
10851
10964
|
"minimal",
|
|
10852
10965
|
"partial",
|
|
@@ -10855,7 +10968,7 @@ var Ou = /* @__PURE__ */ new Set(["MMEL_MAP", "Primmel_MAP"]), ku = /* @__PURE__
|
|
|
10855
10968
|
function Z(e) {
|
|
10856
10969
|
throw Error(`.prm parse error: ${e}`);
|
|
10857
10970
|
}
|
|
10858
|
-
function
|
|
10971
|
+
function Ru(e, t) {
|
|
10859
10972
|
let n = {
|
|
10860
10973
|
description: "",
|
|
10861
10974
|
justification: "",
|
|
@@ -10864,9 +10977,9 @@ function Au(e, t) {
|
|
|
10864
10977
|
if (e == null) return n;
|
|
10865
10978
|
(typeof e != "object" || Array.isArray(e)) && Z(`${t}: pair metadata must be an object`);
|
|
10866
10979
|
let r = e;
|
|
10867
|
-
return r.description !== void 0 && (typeof r.description != "string" && Z(`${t}: "description" must be a string`), n.description = r.description), r.justification !== void 0 && (typeof r.justification != "string" && Z(`${t}: "justification" must be a string`), n.justification = r.justification), r.coverage !== void 0 && ((typeof r.coverage != "string" || !
|
|
10980
|
+
return r.description !== void 0 && (typeof r.description != "string" && Z(`${t}: "description" must be a string`), n.description = r.description), r.justification !== void 0 && (typeof r.justification != "string" && Z(`${t}: "justification" must be a string`), n.justification = r.justification), r.coverage !== void 0 && ((typeof r.coverage != "string" || !Lu.has(r.coverage)) && Z(`${t}: "coverage" must be one of full | minimal | partial | none`), n.coverage = r.coverage), n;
|
|
10868
10981
|
}
|
|
10869
|
-
function
|
|
10982
|
+
function zu(e) {
|
|
10870
10983
|
let t;
|
|
10871
10984
|
try {
|
|
10872
10985
|
t = JSON.parse(e);
|
|
@@ -10875,7 +10988,7 @@ function ju(e) {
|
|
|
10875
10988
|
}
|
|
10876
10989
|
(typeof t != "object" || !t || Array.isArray(t)) && Z("top level must be an object");
|
|
10877
10990
|
let n = t, r = typeof n["@type"] == "string" ? n["@type"] : "";
|
|
10878
|
-
|
|
10991
|
+
Iu.has(r) || Z(`"@type" must be MMEL_MAP or Primmel_MAP (got "${r}")`);
|
|
10879
10992
|
let i = {
|
|
10880
10993
|
context: typeof n["@context"] == "string" ? n["@context"] : "",
|
|
10881
10994
|
type: r,
|
|
@@ -10891,20 +11004,20 @@ function ju(e) {
|
|
|
10891
11004
|
coverage: {}
|
|
10892
11005
|
}, a = n.coverage ?? {};
|
|
10893
11006
|
(typeof a != "object" || !a || Array.isArray(a)) && Z(`mapSet."${e}".coverage: must be an object`);
|
|
10894
|
-
for (let [t, n] of Object.entries(a)) (typeof n != "string" || !
|
|
11007
|
+
for (let [t, n] of Object.entries(a)) (typeof n != "string" || !Lu.has(n)) && Z(`mapSet."${e}".coverage."${t}": must be one of full | minimal | partial | none`), r.coverage[t] = n;
|
|
10895
11008
|
let o = n.mappings ?? {};
|
|
10896
11009
|
(typeof o != "object" || !o || Array.isArray(o)) && Z(`mapSet."${e}".mappings: must be an object`);
|
|
10897
11010
|
for (let [t, n] of Object.entries(o)) {
|
|
10898
11011
|
(typeof n != "object" || !n || Array.isArray(n)) && Z(`mapSet."${e}".mappings."${t}": must be an object`);
|
|
10899
11012
|
let i = {};
|
|
10900
|
-
for (let [r, a] of Object.entries(n)) i[r] =
|
|
11013
|
+
for (let [r, a] of Object.entries(n)) i[r] = Ru(a, `mapSet."${e}".mappings."${t}"."${r}"`);
|
|
10901
11014
|
r.mappings[t] = i;
|
|
10902
11015
|
}
|
|
10903
11016
|
i.mapSet[e] = r;
|
|
10904
11017
|
}
|
|
10905
11018
|
return i;
|
|
10906
11019
|
}
|
|
10907
|
-
function
|
|
11020
|
+
function Bu(e) {
|
|
10908
11021
|
let t = {};
|
|
10909
11022
|
e.context && (t["@context"] = e.context), t["@type"] = e.type || "Primmel_MAP", t.id = e.id;
|
|
10910
11023
|
let n = {};
|
|
@@ -10929,7 +11042,7 @@ function Mu(e) {
|
|
|
10929
11042
|
}
|
|
10930
11043
|
return t.mapSet = n, JSON.stringify(t, null, 2) + "\n";
|
|
10931
11044
|
}
|
|
10932
|
-
function
|
|
11045
|
+
function Vu(e) {
|
|
10933
11046
|
let t = [];
|
|
10934
11047
|
for (let [n, r] of Object.entries(e.mapSet)) {
|
|
10935
11048
|
let e = {};
|
|
@@ -10948,7 +11061,7 @@ function Nu(e) {
|
|
|
10948
11061
|
}
|
|
10949
11062
|
return t;
|
|
10950
11063
|
}
|
|
10951
|
-
function
|
|
11064
|
+
function Hu(e, t) {
|
|
10952
11065
|
let n = {
|
|
10953
11066
|
context: "",
|
|
10954
11067
|
type: "Primmel_MAP",
|
|
@@ -10976,7 +11089,7 @@ function Pu(e, t) {
|
|
|
10976
11089
|
}
|
|
10977
11090
|
//#endregion
|
|
10978
11091
|
//#region src/type-expr.ts
|
|
10979
|
-
var
|
|
11092
|
+
var Uu = [
|
|
10980
11093
|
"integer",
|
|
10981
11094
|
"float",
|
|
10982
11095
|
"double",
|
|
@@ -10991,8 +11104,8 @@ var Fu = [
|
|
|
10991
11104
|
"reference",
|
|
10992
11105
|
"object",
|
|
10993
11106
|
"any"
|
|
10994
|
-
],
|
|
10995
|
-
function
|
|
11107
|
+
], Wu = /^[A-Za-z_][A-Za-z0-9_-]*$/;
|
|
11108
|
+
function Gu(e) {
|
|
10996
11109
|
let t = 0;
|
|
10997
11110
|
for (let n = 0; n < e.length; n++) {
|
|
10998
11111
|
let r = e[n];
|
|
@@ -11002,33 +11115,33 @@ function Lu(e) {
|
|
|
11002
11115
|
}
|
|
11003
11116
|
return null;
|
|
11004
11117
|
}
|
|
11005
|
-
function
|
|
11118
|
+
function Ku(e) {
|
|
11006
11119
|
let t = e.trim();
|
|
11007
11120
|
if (t === "QuantityValue") return { kind: "quantity" };
|
|
11008
|
-
if (
|
|
11121
|
+
if (Uu.includes(t)) return {
|
|
11009
11122
|
kind: "primitive",
|
|
11010
11123
|
name: t
|
|
11011
11124
|
};
|
|
11012
11125
|
let n = /^reference\(([^)]+)\)$/.exec(t);
|
|
11013
11126
|
if (n) {
|
|
11014
11127
|
let e = n[1].trim();
|
|
11015
|
-
return
|
|
11128
|
+
return Wu.test(e) ? {
|
|
11016
11129
|
kind: "reference",
|
|
11017
11130
|
target: e
|
|
11018
11131
|
} : null;
|
|
11019
11132
|
}
|
|
11020
11133
|
if (t.startsWith("map<") && t.endsWith(">")) {
|
|
11021
|
-
let e =
|
|
11134
|
+
let e = Gu(t.slice(4, -1));
|
|
11022
11135
|
if (!e) return null;
|
|
11023
11136
|
let n = e[0].trim(), r = null;
|
|
11024
11137
|
n === "string" ? r = {
|
|
11025
11138
|
kind: "primitive",
|
|
11026
11139
|
name: "string"
|
|
11027
|
-
} :
|
|
11140
|
+
} : Wu.test(n) && (r = {
|
|
11028
11141
|
kind: "reference",
|
|
11029
11142
|
target: n
|
|
11030
11143
|
});
|
|
11031
|
-
let i =
|
|
11144
|
+
let i = Ku(e[1]);
|
|
11032
11145
|
return !r || !i ? null : {
|
|
11033
11146
|
kind: "map",
|
|
11034
11147
|
key: r,
|
|
@@ -11037,13 +11150,13 @@ function Ru(e) {
|
|
|
11037
11150
|
}
|
|
11038
11151
|
return null;
|
|
11039
11152
|
}
|
|
11040
|
-
function
|
|
11041
|
-
let t =
|
|
11153
|
+
function qu(e) {
|
|
11154
|
+
let t = Ku(e);
|
|
11042
11155
|
return t !== null && t.kind === "map";
|
|
11043
11156
|
}
|
|
11044
11157
|
//#endregion
|
|
11045
11158
|
//#region src/mapping-coverage.ts
|
|
11046
|
-
function
|
|
11159
|
+
function Ju(e, t) {
|
|
11047
11160
|
let n = e.indexOf("#");
|
|
11048
11161
|
if (n >= 0) {
|
|
11049
11162
|
let t = e.slice(0, n), r = e.slice(n + 1);
|
|
@@ -11059,12 +11172,12 @@ function Bu(e, t) {
|
|
|
11059
11172
|
qualified: t + "#" + e
|
|
11060
11173
|
};
|
|
11061
11174
|
}
|
|
11062
|
-
function
|
|
11175
|
+
function Yu(e, t) {
|
|
11063
11176
|
let n = [];
|
|
11064
11177
|
for (let [r, i] of Object.entries(e.mappings)) for (let a of i) n.push({
|
|
11065
11178
|
source: r,
|
|
11066
11179
|
sourceModel: t,
|
|
11067
|
-
target:
|
|
11180
|
+
target: Ju(a.target, e.namespace).qualified,
|
|
11068
11181
|
targetModel: e.namespace,
|
|
11069
11182
|
description: a.description,
|
|
11070
11183
|
justification: a.justification,
|
|
@@ -11072,12 +11185,12 @@ function Vu(e, t) {
|
|
|
11072
11185
|
});
|
|
11073
11186
|
return n;
|
|
11074
11187
|
}
|
|
11075
|
-
function
|
|
11188
|
+
function Xu(e, t = {}) {
|
|
11076
11189
|
let n = t.modelId ?? e.packageManifest?.id ?? e.meta?.namespace ?? "", r = [...e.mapProfiles ?? []], i = t.prm ? Array.isArray(t.prm) ? t.prm : [t.prm] : [];
|
|
11077
|
-
for (let e of i) r.push(...
|
|
11078
|
-
return r.flatMap((e) =>
|
|
11190
|
+
for (let e of i) r.push(...Vu(e));
|
|
11191
|
+
return r.flatMap((e) => Yu(e, n));
|
|
11079
11192
|
}
|
|
11080
|
-
function
|
|
11193
|
+
function Zu(e, t = {}) {
|
|
11081
11194
|
let n = t.idPrefix ?? "", r = (e.processes ?? []).filter((e) => !n || e.id.startsWith(n)), i = new Set(r.map((e) => e.id)), a = /* @__PURE__ */ new Map();
|
|
11082
11195
|
for (let e of r) a.set(e.id, {
|
|
11083
11196
|
id: e.id.slice(n.length),
|
|
@@ -11091,18 +11204,18 @@ function Uu(e, t = {}) {
|
|
|
11091
11204
|
}
|
|
11092
11205
|
return o;
|
|
11093
11206
|
}
|
|
11094
|
-
function
|
|
11207
|
+
function Qu(e, t) {
|
|
11095
11208
|
return t.length === 0 ? "none" : t.every((e) => e === "full") ? "full" : e === "gateway" && t.some((e) => e === "full" || e === "minimal") ? "minimal" : t.some((e) => e !== "none") ? "partial" : "none";
|
|
11096
11209
|
}
|
|
11097
|
-
function
|
|
11098
|
-
let a = Array.isArray(t) ? t :
|
|
11210
|
+
function $u(e, t, n, r, i = {}) {
|
|
11211
|
+
let a = Array.isArray(t) ? t : Zu(t), o = n.filter((e) => e.targetModel === r), s = /* @__PURE__ */ new Map();
|
|
11099
11212
|
for (let e of o) {
|
|
11100
|
-
let t =
|
|
11213
|
+
let t = Ju(e.target, r).id;
|
|
11101
11214
|
(s.get(t) ?? s.set(t, []).get(t)).push(e.source);
|
|
11102
11215
|
}
|
|
11103
11216
|
let c = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(), u = (e, t) => {
|
|
11104
11217
|
let n = s.has(e.id), r = n ? e.id : t, i = e.children.map((e) => u(e, r)), a;
|
|
11105
|
-
return r === null ? a = e.children.length === 0 ? "none" :
|
|
11218
|
+
return r === null ? a = e.children.length === 0 ? "none" : Qu(e.composition, i) : (a = "full", !n && t !== null && l.set(e.id, t)), c.set(e.id, a), a;
|
|
11106
11219
|
};
|
|
11107
11220
|
for (let e of a) u(e, null);
|
|
11108
11221
|
let d = [], f = /* @__PURE__ */ new Map(), p = (e) => {
|
|
@@ -11124,7 +11237,7 @@ function Gu(e, t, n, r, i = {}) {
|
|
|
11124
11237
|
for (let e of d) m[e.coverage]++;
|
|
11125
11238
|
let h = [], g = /* @__PURE__ */ new Set();
|
|
11126
11239
|
for (let e of o) {
|
|
11127
|
-
let t =
|
|
11240
|
+
let t = Ju(e.target, r).id;
|
|
11128
11241
|
f.has(t) ? g.add(e.source) : h.push({
|
|
11129
11242
|
source: e.source,
|
|
11130
11243
|
target: e.target
|
|
@@ -11135,7 +11248,7 @@ function Gu(e, t, n, r, i = {}) {
|
|
|
11135
11248
|
y.has(t) || (y.add(t), v.push(e));
|
|
11136
11249
|
};
|
|
11137
11250
|
for (let e of o) {
|
|
11138
|
-
let t =
|
|
11251
|
+
let t = Ju(e.target, r).id, n = f.get(t);
|
|
11139
11252
|
if (!n) continue;
|
|
11140
11253
|
let i = (e, t) => {
|
|
11141
11254
|
for (let n of e.children) t.push(n), i(n, t);
|
|
@@ -11182,7 +11295,7 @@ function Gu(e, t, n, r, i = {}) {
|
|
|
11182
11295
|
summary: m
|
|
11183
11296
|
};
|
|
11184
11297
|
}
|
|
11185
|
-
function
|
|
11298
|
+
function ed(e) {
|
|
11186
11299
|
let t = [], n = /* @__PURE__ */ new Set();
|
|
11187
11300
|
for (let r of e) for (let i of r.mappings) for (let r of e) if (r.modelId === i.targetModel) for (let e of r.mappings) {
|
|
11188
11301
|
if (i.target !== `${r.modelId}#${e.source}`) continue;
|
|
@@ -11200,7 +11313,7 @@ function Ku(e) {
|
|
|
11200
11313
|
}
|
|
11201
11314
|
return t;
|
|
11202
11315
|
}
|
|
11203
|
-
function
|
|
11316
|
+
function td(e) {
|
|
11204
11317
|
let t = /* @__PURE__ */ new Map();
|
|
11205
11318
|
for (let n of e) for (let e of n.mappings) {
|
|
11206
11319
|
let r = `${n.modelId}→${e.targetModel}`, i = t.get(r) ?? {
|
|
@@ -11212,14 +11325,14 @@ function qu(e) {
|
|
|
11212
11325
|
}
|
|
11213
11326
|
return [...t.values()];
|
|
11214
11327
|
}
|
|
11215
|
-
function
|
|
11328
|
+
function nd(e) {
|
|
11216
11329
|
if (e && typeof e == "object") {
|
|
11217
|
-
for (let t of Object.values(e))
|
|
11330
|
+
for (let t of Object.values(e)) nd(t);
|
|
11218
11331
|
Object.freeze(e);
|
|
11219
11332
|
}
|
|
11220
11333
|
return e;
|
|
11221
11334
|
}
|
|
11222
|
-
function
|
|
11335
|
+
function rd(e, t, n = null) {
|
|
11223
11336
|
let r = new Set(t.visibleElements ?? []), i = r.size > 0, a = i ? [...r] : (e.processes ?? []).map((e) => e.id), o = null;
|
|
11224
11337
|
if (n) {
|
|
11225
11338
|
let e = n.components.filter((e) => !i || r.has(e.id) || e.mappedBy.some((e) => r.has(e))), t = {
|
|
@@ -11237,14 +11350,14 @@ function Yu(e, t, n = null) {
|
|
|
11237
11350
|
summary: t
|
|
11238
11351
|
};
|
|
11239
11352
|
}
|
|
11240
|
-
return
|
|
11353
|
+
return nd({
|
|
11241
11354
|
id: t.id,
|
|
11242
11355
|
against: t.against ?? "",
|
|
11243
11356
|
elements: a,
|
|
11244
11357
|
coverage: o
|
|
11245
11358
|
});
|
|
11246
11359
|
}
|
|
11247
|
-
function
|
|
11360
|
+
function id(e) {
|
|
11248
11361
|
let t = /* @__PURE__ */ new Set(), n = (e) => {
|
|
11249
11362
|
for (let n of e ?? []) t.add(n.id);
|
|
11250
11363
|
};
|
|
@@ -11261,13 +11374,13 @@ function Xu(e) {
|
|
|
11261
11374
|
}
|
|
11262
11375
|
//#endregion
|
|
11263
11376
|
//#region src/model-diff.ts
|
|
11264
|
-
var
|
|
11377
|
+
var ad = [
|
|
11265
11378
|
"foundations",
|
|
11266
11379
|
"primary",
|
|
11267
11380
|
"secondary",
|
|
11268
11381
|
"tertiary",
|
|
11269
11382
|
"cross-cutting"
|
|
11270
|
-
],
|
|
11383
|
+
], od = {
|
|
11271
11384
|
terms: "foundations",
|
|
11272
11385
|
references: "foundations",
|
|
11273
11386
|
roles: "foundations",
|
|
@@ -11356,9 +11469,9 @@ function Q(e) {
|
|
|
11356
11469
|
};
|
|
11357
11470
|
return n(e);
|
|
11358
11471
|
}
|
|
11359
|
-
var
|
|
11360
|
-
function
|
|
11361
|
-
let r = e ?? "", i = n ?? "", a =
|
|
11472
|
+
var sd = /#([^#]*)$/;
|
|
11473
|
+
function cd(e, t, n = "") {
|
|
11474
|
+
let r = e ?? "", i = n ?? "", a = sd.exec(r);
|
|
11362
11475
|
a && (r = r.slice(0, a.index), i ||= a[1]);
|
|
11363
11476
|
let o = r.lastIndexOf(":"), s = r, c = "";
|
|
11364
11477
|
if (o >= 0) {
|
|
@@ -11372,11 +11485,11 @@ function ed(e, t, n = "") {
|
|
|
11372
11485
|
fragment: i
|
|
11373
11486
|
};
|
|
11374
11487
|
}
|
|
11375
|
-
var
|
|
11488
|
+
var ld = [
|
|
11376
11489
|
"source",
|
|
11377
11490
|
"sourceRef",
|
|
11378
11491
|
"sourceRefs"
|
|
11379
|
-
],
|
|
11492
|
+
], ud = {
|
|
11380
11493
|
requirements: {
|
|
11381
11494
|
statement: [
|
|
11382
11495
|
"name",
|
|
@@ -11425,7 +11538,7 @@ var td = [
|
|
|
11425
11538
|
"profile"
|
|
11426
11539
|
]
|
|
11427
11540
|
}
|
|
11428
|
-
},
|
|
11541
|
+
}, dd = [
|
|
11429
11542
|
"name",
|
|
11430
11543
|
"label",
|
|
11431
11544
|
"title",
|
|
@@ -11434,16 +11547,16 @@ var td = [
|
|
|
11434
11547
|
"statement",
|
|
11435
11548
|
"purpose",
|
|
11436
11549
|
"text"
|
|
11437
|
-
],
|
|
11550
|
+
], fd = [
|
|
11438
11551
|
"parent",
|
|
11439
11552
|
"bindsTo",
|
|
11440
11553
|
"targets",
|
|
11441
11554
|
"conformanceProcessId",
|
|
11442
11555
|
"conformanceProcessIds"
|
|
11443
11556
|
];
|
|
11444
|
-
function
|
|
11557
|
+
function pd(e) {
|
|
11445
11558
|
let t = {}, n = (e, n) => {
|
|
11446
|
-
n && typeof n == "object" && (n.doc || n.clause) && (t[e] ??= []).push(
|
|
11559
|
+
n && typeof n == "object" && (n.doc || n.clause) && (t[e] ??= []).push(cd(n.doc ?? "", n.clause ?? "", n.fragment));
|
|
11447
11560
|
};
|
|
11448
11561
|
n("source", e.source), n("sourceRef", e.sourceRef);
|
|
11449
11562
|
for (let t of e.sourceRefs ?? []) n("sourceRefs", t);
|
|
@@ -11455,7 +11568,7 @@ function ad(e) {
|
|
|
11455
11568
|
let i = (e) => {
|
|
11456
11569
|
let t = /* @__PURE__ */ new Set();
|
|
11457
11570
|
return e.filter((e) => {
|
|
11458
|
-
let n =
|
|
11571
|
+
let n = md(e);
|
|
11459
11572
|
return !t.has(n) && (t.add(n), !0);
|
|
11460
11573
|
});
|
|
11461
11574
|
};
|
|
@@ -11465,17 +11578,17 @@ function ad(e) {
|
|
|
11465
11578
|
channels: t
|
|
11466
11579
|
};
|
|
11467
11580
|
}
|
|
11468
|
-
function
|
|
11581
|
+
function md(e) {
|
|
11469
11582
|
return Q({
|
|
11470
11583
|
basis: e.basis,
|
|
11471
11584
|
clause: e.clause,
|
|
11472
11585
|
fragment: e.fragment
|
|
11473
11586
|
});
|
|
11474
11587
|
}
|
|
11475
|
-
function
|
|
11476
|
-
let n = String(t.id ?? t.entityName ?? ""), r =
|
|
11588
|
+
function hd(e, t) {
|
|
11589
|
+
let n = String(t.id ?? t.entityName ?? ""), r = od[e] ?? "cross-cutting", { edges: i, channels: a } = pd(t), o = new Set(ld);
|
|
11477
11590
|
typeof t.reference == "string" && t.reference.startsWith("urn:") && o.add("reference");
|
|
11478
|
-
let s = {}, c = {}, l =
|
|
11591
|
+
let s = {}, c = {}, l = ud[e], u = (e) => {
|
|
11479
11592
|
let n = {};
|
|
11480
11593
|
for (let r of e) t[r] !== void 0 && (n[r] = t[r], o.add(r), s[r] = t[r]);
|
|
11481
11594
|
return n;
|
|
@@ -11495,9 +11608,9 @@ function sd(e, t) {
|
|
|
11495
11608
|
c[`spelling:${t.spelling}`] = Q(e), s[`spelling:${t.spelling}`] = e;
|
|
11496
11609
|
}
|
|
11497
11610
|
} else {
|
|
11498
|
-
let e = u(
|
|
11611
|
+
let e = u(dd);
|
|
11499
11612
|
Object.keys(e).length > 0 && (c.statement = Q(e));
|
|
11500
|
-
let t = u(
|
|
11613
|
+
let t = u(fd);
|
|
11501
11614
|
Object.keys(t).length > 0 && (c.anchor = Q(t));
|
|
11502
11615
|
}
|
|
11503
11616
|
if (i.length > 0) {
|
|
@@ -11524,31 +11637,31 @@ function sd(e, t) {
|
|
|
11524
11637
|
provenance: i
|
|
11525
11638
|
};
|
|
11526
11639
|
}
|
|
11527
|
-
function
|
|
11640
|
+
function gd(e, t) {
|
|
11528
11641
|
let n = /* @__PURE__ */ new Map();
|
|
11529
|
-
for (let r of Object.keys(
|
|
11642
|
+
for (let r of Object.keys(od)) {
|
|
11530
11643
|
let i = e[r];
|
|
11531
11644
|
if (Array.isArray(i)) {
|
|
11532
11645
|
for (let e of i) if (e && typeof e == "object" && ("id" in e || "entityName" in e)) {
|
|
11533
|
-
let i =
|
|
11646
|
+
let i = hd(r, e);
|
|
11534
11647
|
n.has(i.key) && t?.push(i.key), n.set(i.key, i);
|
|
11535
11648
|
}
|
|
11536
11649
|
}
|
|
11537
11650
|
}
|
|
11538
11651
|
return n;
|
|
11539
11652
|
}
|
|
11540
|
-
function
|
|
11653
|
+
function _d(e, t) {
|
|
11541
11654
|
return `${e}#${t}`;
|
|
11542
11655
|
}
|
|
11543
11656
|
function $(e) {
|
|
11544
11657
|
return e?.version ?? "";
|
|
11545
11658
|
}
|
|
11546
|
-
function
|
|
11659
|
+
function vd(e) {
|
|
11547
11660
|
let t = [...new Set(e)].sort();
|
|
11548
11661
|
return t.filter((e) => !t.some((t) => t !== e && e.startsWith(t + ".")));
|
|
11549
11662
|
}
|
|
11550
|
-
function
|
|
11551
|
-
let r = n.mappingsA ??
|
|
11663
|
+
function yd(e, t, n) {
|
|
11664
|
+
let r = n.mappingsA ?? Xu(e), i = n.mappingsB ?? Xu(t), a = (e) => `${e.sourceModel}#${e.source}⇒${e.target}`, o = new Map(r.map((e) => [a(e), e])), s = new Map(i.map((e) => [a(e), e])), c = [], l = [], u = [];
|
|
11552
11665
|
for (let [e, t] of s) o.has(e) || c.push(t);
|
|
11553
11666
|
for (let [e, t] of o) {
|
|
11554
11667
|
let n = s.get(e);
|
|
@@ -11569,7 +11682,7 @@ function dd(e, t, n) {
|
|
|
11569
11682
|
let o = (e) => {
|
|
11570
11683
|
let t = n.references?.[a];
|
|
11571
11684
|
if (t) return t;
|
|
11572
|
-
let r =
|
|
11685
|
+
let r = Zu(e, { idPrefix: `${a}#` });
|
|
11573
11686
|
return r.length > 0 ? r : null;
|
|
11574
11687
|
}, s = o(e), c = o(t);
|
|
11575
11688
|
if (!s && !c) {
|
|
@@ -11578,11 +11691,11 @@ function dd(e, t, n) {
|
|
|
11578
11691
|
}
|
|
11579
11692
|
let l = /* @__PURE__ */ new Map();
|
|
11580
11693
|
if (s) {
|
|
11581
|
-
let t =
|
|
11694
|
+
let t = $u(e, s, r, a);
|
|
11582
11695
|
for (let e of t.components) l.set(e.id, { from: e.coverage });
|
|
11583
11696
|
}
|
|
11584
11697
|
if (c) {
|
|
11585
|
-
let e =
|
|
11698
|
+
let e = $u(t, c, i, a);
|
|
11586
11699
|
for (let t of e.components) {
|
|
11587
11700
|
let e = l.get(t.id) ?? {};
|
|
11588
11701
|
e.to = t.coverage, l.set(t.id, e);
|
|
@@ -11606,12 +11719,12 @@ function dd(e, t, n) {
|
|
|
11606
11719
|
namespacesSkipped: p
|
|
11607
11720
|
};
|
|
11608
11721
|
}
|
|
11609
|
-
function
|
|
11722
|
+
function bd(e, t) {
|
|
11610
11723
|
let n = [];
|
|
11611
11724
|
for (let [t, r] of e) {
|
|
11612
11725
|
let e = /* @__PURE__ */ new Set([...t.provenance.map((e) => e.basis), ...r.provenance.map((e) => e.basis)]);
|
|
11613
11726
|
for (let i of [...e].sort()) {
|
|
11614
|
-
let e = (e) =>
|
|
11727
|
+
let e = (e) => vd(e.provenance.filter((e) => e.basis === i).map((e) => e.clause)).filter((e) => e.length > 0), a = e(t), o = e(r), s = a.filter((e) => !o.includes(e)), c = o.filter((e) => !a.includes(e));
|
|
11615
11728
|
if (s.length === 0 && c.length === 0) continue;
|
|
11616
11729
|
let l = {
|
|
11617
11730
|
key: t.key,
|
|
@@ -11661,7 +11774,7 @@ function fd(e, t) {
|
|
|
11661
11774
|
}
|
|
11662
11775
|
let r = (e) => {
|
|
11663
11776
|
if (e.kind !== "renumbered" || !t.sentencesA || !t.sentencesB) return "unavailable";
|
|
11664
|
-
let n = t.sentencesA.get(
|
|
11777
|
+
let n = t.sentencesA.get(_d(e.doc, e.from)), r = t.sentencesB.get(_d(e.doc, e.to));
|
|
11665
11778
|
return n === void 0 || r === void 0 ? "unavailable" : n.replace(/\s+/g, " ").trim() === r.replace(/\s+/g, " ").trim() ? "same" : "differed";
|
|
11666
11779
|
}, i = /* @__PURE__ */ new Map();
|
|
11667
11780
|
for (let e of n) {
|
|
@@ -11677,21 +11790,21 @@ function fd(e, t) {
|
|
|
11677
11790
|
}
|
|
11678
11791
|
return [...i.values()].sort((e, t) => `${e.doc} ${e.from} ${e.to}`.localeCompare(`${t.doc} ${t.from} ${t.to}`));
|
|
11679
11792
|
}
|
|
11680
|
-
function
|
|
11793
|
+
function xd(e, t, n) {
|
|
11681
11794
|
return e.kind !== "texts" || !n.startsWith("spelling:") ? n : n in e.aspects ? n in t.aspects ? `${n} (changed)` : `${n} (removed)` : `${n} (added)`;
|
|
11682
11795
|
}
|
|
11683
|
-
var
|
|
11684
|
-
function
|
|
11685
|
-
if (
|
|
11796
|
+
var Sd = (e) => typeof e == "object" && !!e && !Array.isArray(e);
|
|
11797
|
+
function Cd(e, t, n, r) {
|
|
11798
|
+
if (Sd(t) && Sd(n)) {
|
|
11686
11799
|
let i = [.../* @__PURE__ */ new Set([...Object.keys(t), ...Object.keys(n)])].sort();
|
|
11687
|
-
for (let a of i)
|
|
11800
|
+
for (let a of i) Cd(`${e}.${a}`, t[a], n[a], r);
|
|
11688
11801
|
return;
|
|
11689
11802
|
}
|
|
11690
11803
|
Q(t) !== Q(n) && r.push(e);
|
|
11691
11804
|
}
|
|
11692
|
-
function
|
|
11805
|
+
function wd(e, t) {
|
|
11693
11806
|
let n = [.../* @__PURE__ */ new Set([...Object.keys(e.fields), ...Object.keys(t.fields)])].sort(), r = [];
|
|
11694
|
-
for (let i of n)
|
|
11807
|
+
for (let i of n) Cd(i, e.fields[i], t.fields[i], r);
|
|
11695
11808
|
let i = [
|
|
11696
11809
|
"source",
|
|
11697
11810
|
"sourceRef",
|
|
@@ -11704,8 +11817,8 @@ function gd(e, t) {
|
|
|
11704
11817
|
return !a.has(r) && (a.add(r), !0);
|
|
11705
11818
|
});
|
|
11706
11819
|
}
|
|
11707
|
-
function
|
|
11708
|
-
let r = [], i = [], a =
|
|
11820
|
+
function Td(e, t, n = {}) {
|
|
11821
|
+
let r = [], i = [], a = gd(e, r), o = gd(t, i), s = [], c = [], l = [], u = [], d = [], f = 0, p = Object.fromEntries(ad.map((e) => [e, {
|
|
11709
11822
|
added: 0,
|
|
11710
11823
|
removed: 0,
|
|
11711
11824
|
changed: 0,
|
|
@@ -11743,11 +11856,11 @@ function _d(e, t, n = {}) {
|
|
|
11743
11856
|
id: t.id,
|
|
11744
11857
|
kind: t.kind,
|
|
11745
11858
|
tier: t.tier,
|
|
11746
|
-
aspects: r.map((e) =>
|
|
11747
|
-
fields:
|
|
11859
|
+
aspects: r.map((e) => xd(t, n, e)).sort(),
|
|
11860
|
+
fields: wd(t, n)
|
|
11748
11861
|
}), p[t.tier].changed++);
|
|
11749
11862
|
}
|
|
11750
|
-
let m =
|
|
11863
|
+
let m = yd(e, t, n), h = bd(d, n), g = s.length === 0 && c.length === 0 && l.length === 0 && u.length === 0 && m.added.length === 0 && m.removed.length === 0 && m.changed.length === 0 && m.coverageDelta.length === 0 && h.length === 0, _ = e.packageManifest, v = t.packageManifest, y = n.aLabel ?? (_?.id ? `${_.id}@${$(_) || "?"}` : "a"), b = n.bLabel ?? (v?.id ? `${v.id}@${$(v) || "?"}` : "b"), x = !!_?.id && _.id === v?.id && $(_) !== $(v), S = (e, t) => `${e}: duplicate element ${t} — the last declaration wins (a data error the duplicate-id linter owns); this side under-reports`, C = [...r.map((e) => S(y, e)), ...i.map((e) => S(b, e))];
|
|
11751
11864
|
return {
|
|
11752
11865
|
aLabel: y,
|
|
11753
11866
|
bLabel: b,
|
|
@@ -11766,40 +11879,40 @@ function _d(e, t, n = {}) {
|
|
|
11766
11879
|
empty: g
|
|
11767
11880
|
};
|
|
11768
11881
|
}
|
|
11769
|
-
function
|
|
11882
|
+
function Ed(e) {
|
|
11770
11883
|
return `[${e.tier}/${e.kind}] ${e.id}`;
|
|
11771
11884
|
}
|
|
11772
|
-
function
|
|
11885
|
+
function Dd(e, t) {
|
|
11773
11886
|
try {
|
|
11774
11887
|
let n = e ? JSON.parse(e) : {}, r = t ? JSON.parse(t) : {}, i = [.../* @__PURE__ */ new Set([...Object.keys(n), ...Object.keys(r)])].sort().filter((e) => Q(n[e]) !== Q(r[e])).map((e) => `${e}: ${Q(n[e])} → ${Q(r[e])}`);
|
|
11775
11888
|
if (i.length > 0) return i;
|
|
11776
11889
|
} catch {}
|
|
11777
11890
|
return [`from ${e}`, `to ${t}`];
|
|
11778
11891
|
}
|
|
11779
|
-
function
|
|
11892
|
+
function Od(e) {
|
|
11780
11893
|
let t = [], n = e.editionComparison ? `edition comparison — ${e.aLabel} → ${e.bLabel}` : `model diff — ${e.aLabel} → ${e.bLabel}`;
|
|
11781
11894
|
t.push(`primmel diff: ${n}`), t.push(""), t.push(`elements: +${e.added.length} -${e.removed.length} ~${e.changed.length} >${e.moved.length} (${e.unchanged} unchanged)`), t.push(""), t.push("by tier: added removed changed moved unchanged");
|
|
11782
|
-
for (let n of
|
|
11895
|
+
for (let n of ad) {
|
|
11783
11896
|
let r = e.byTier[n];
|
|
11784
11897
|
t.push(` ${n.padEnd(13)} ${String(r.added).padStart(5)} ${String(r.removed).padStart(8)} ${String(r.changed).padStart(8)} ${String(r.moved).padStart(6)} ${String(r.unchanged).padStart(9)}`);
|
|
11785
11898
|
}
|
|
11786
11899
|
if (e.added.length > 0) {
|
|
11787
11900
|
t.push("", "added:");
|
|
11788
|
-
for (let n of e.added) t.push(` + ${
|
|
11901
|
+
for (let n of e.added) t.push(` + ${Ed(n)}`);
|
|
11789
11902
|
}
|
|
11790
11903
|
if (e.removed.length > 0) {
|
|
11791
11904
|
t.push("", "removed:");
|
|
11792
|
-
for (let n of e.removed) t.push(` - ${
|
|
11905
|
+
for (let n of e.removed) t.push(` - ${Ed(n)}`);
|
|
11793
11906
|
}
|
|
11794
11907
|
if (e.changed.length > 0) {
|
|
11795
11908
|
t.push("", "changed:");
|
|
11796
|
-
for (let n of e.changed) t.push(` ~ ${
|
|
11909
|
+
for (let n of e.changed) t.push(` ~ ${Ed(n)} — ${n.aspects.join(", ")} (fields: ${n.fields.join(", ")})`);
|
|
11797
11910
|
}
|
|
11798
11911
|
if (e.moved.length > 0) {
|
|
11799
11912
|
t.push("", "moved (re-anchored):");
|
|
11800
11913
|
for (let n of e.moved) {
|
|
11801
|
-
t.push(` > ${
|
|
11802
|
-
for (let e of
|
|
11914
|
+
t.push(` > ${Ed(n)}`);
|
|
11915
|
+
for (let e of Dd(n.from, n.to)) t.push(` ${e}`);
|
|
11803
11916
|
}
|
|
11804
11917
|
}
|
|
11805
11918
|
if (e.warnings.length > 0) {
|
|
@@ -11824,27 +11937,27 @@ function bd(e) {
|
|
|
11824
11937
|
}
|
|
11825
11938
|
//#endregion
|
|
11826
11939
|
//#region src/ser-des/index.ts
|
|
11827
|
-
function
|
|
11828
|
-
return p(u(e,
|
|
11940
|
+
function kd(e, t = {}) {
|
|
11941
|
+
return p(u(e, nu, t), ru);
|
|
11829
11942
|
}
|
|
11830
|
-
function
|
|
11831
|
-
let n = u(e,
|
|
11943
|
+
function Ad(e, t = {}) {
|
|
11944
|
+
let n = u(e, nu, t);
|
|
11832
11945
|
return {
|
|
11833
|
-
standard: p(n,
|
|
11946
|
+
standard: p(n, ru),
|
|
11834
11947
|
issues: n.issues
|
|
11835
11948
|
};
|
|
11836
11949
|
}
|
|
11837
|
-
function
|
|
11838
|
-
return
|
|
11950
|
+
function jd(e, t = {}) {
|
|
11951
|
+
return kd(su(e), t);
|
|
11839
11952
|
}
|
|
11840
|
-
function
|
|
11841
|
-
return
|
|
11953
|
+
function Md(e, t = {}) {
|
|
11954
|
+
return Ad(su(e), t);
|
|
11842
11955
|
}
|
|
11843
|
-
function
|
|
11844
|
-
return qe(e,
|
|
11956
|
+
function Nd(e) {
|
|
11957
|
+
return qe(e, iu);
|
|
11845
11958
|
}
|
|
11846
|
-
function
|
|
11847
|
-
return
|
|
11959
|
+
function Pd(e) {
|
|
11960
|
+
return cu(e);
|
|
11848
11961
|
}
|
|
11849
11962
|
//#endregion
|
|
11850
|
-
export { X as CompositionError,
|
|
11963
|
+
export { X as CompositionError, Ra as ENDPOINT_ACCESS_SCOPES, La as ENDPOINT_OPERATION_KINDS, fc as PASSPORT_ACCESS_CLASSES, dc as PASSPORT_CONTENT_CLASSES, pc as PASSPORT_UPI_LEVELS, Uu as PRIMITIVE_TYPES, od as TIER_BY_FIELD, ad as TIER_ORDER, rd as applyView, Zu as buildProcessTree, Q as canonical, _d as clauseTextKey, Xu as collectMappings, id as componentIds, $u as computeCoverage, Td as diffStandards, ed as discoverTransitive, Nd as dump, Fa as dumpPackage, Bu as dumpPrm, Ou as effectiveUses, gd as elementIndex, Od as formatDiffReport, yu as groupBySourceFile, qu as isWellFormedMapType, kd as load, jd as loadFile, Md as loadFileWithIssues, vu as loadPackage, Du as loadPackageWithIssues, bu as loadPackageWithProvenance, zu as loadPrm, Ad as loadWithIssues, Hu as mapProfilesToPrm, Yu as mappingsFromProfile, cd as normalizeSourceRef, _u as packageFiles, Ju as parseTargetRef, Ku as parseTypeExpression, Vu as prmToMapProfiles, Tu as readPackageManifest, td as repoMap, Pd as validate };
|