xml-model 0.2.1 → 0.2.2

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.
@@ -21,9 +21,10 @@ export const defaults = {
21
21
  throw new TypeError("you should define 'defaults.fromXML' yourself or provide a 'fromXML' function to @Model() decorator's options");
22
22
  },
23
23
  propertyResolveSourceElements(context) {
24
+ var _a;
24
25
  // We assume context.xml.elements is a single tag containing all the props
25
26
  // FIXME: is it safe ?
26
- const innerElements = context.xml.elements[0]?.elements || [];
27
+ const innerElements = ((_a = context.xml.elements[0]) === null || _a === void 0 ? void 0 : _a.elements) || [];
27
28
  return innerElements.filter((el) => context.property.isSourceElement(el, context));
28
29
  },
29
30
  propertySourceElementsFilter(element, context) {
@@ -13,7 +13,7 @@ const __RΦ = { m: (k, v) => (t, ...a) => t && Reflect.metadata ? Reflect.metada
13
13
  __RΦ.t[id] = t = l;
14
14
  }
15
15
  return t;
16
- }, t: { [4]: { RΦ: t => ({ TΦ: "~" }) }, [109]: { RΦ: t => ({ TΦ: "O", m: [{ n: "elements", f: "", t: __RΦ.a(105) }] }) }, [105]: { RΦ: t => ({ TΦ: "[", e: __RΦ.a(103) }) }, [103]: { LΦ: t => LΦ_0.IΦXMLElement }, [13]: { LΦ: t => String }, [14]: { LΦ: t => Number }, [1698]: { RΦ: t => ({ TΦ: "O", m: [{ n: "elements", f: "", t: __RΦ.a(3125) }] }) }, [3125]: { RΦ: t => ({ TΦ: "[", e: __RΦ.a(3123) }) }, [3123]: { RΦ: t => ({ TΦ: "O", m: [{ n: "type", f: "", t: __RΦ.a(13) }, { n: "name", f: "", t: __RΦ.a(13) }] }) }, [20]: { LΦ: t => Boolean } } };
16
+ }, t: { [4]: { RΦ: t => ({ TΦ: "~" }) }, [109]: { RΦ: t => ({ TΦ: "O", m: [{ n: "elements", f: "", t: __RΦ.a(105) }] }) }, [105]: { RΦ: t => ({ TΦ: "[", e: __RΦ.a(103) }) }, [103]: { LΦ: t => LΦ_0.IΦXMLElement }, [13]: { LΦ: t => String }, [14]: { LΦ: t => Number }, [1694]: { RΦ: t => ({ TΦ: "O", m: [{ n: "elements", f: "", t: __RΦ.a(3121) }] }) }, [3121]: { RΦ: t => ({ TΦ: "[", e: __RΦ.a(3119) }) }, [3119]: { RΦ: t => ({ TΦ: "O", m: [{ n: "type", f: "", t: __RΦ.a(13) }, { n: "name", f: "", t: __RΦ.a(13) }] }) }, [20]: { LΦ: t => Boolean } } };
17
17
  import { createModel } from "../model";
18
18
  import { getContent, fromContent } from "../xml";
19
19
  import * as LΦ_0 from "../types";
@@ -44,14 +44,10 @@ createModel(Boolean, {
44
44
  toXML: __RΦ.f((ctx) => {
45
45
  return {
46
46
  elements: [
47
- {
48
- type: "element",
49
- name: "boolean",
50
- ...fromContent(String(ctx.object)),
51
- },
47
+ Object.assign({ type: "element", name: "boolean" }, fromContent(String(ctx.object))),
52
48
  ],
53
49
  };
54
- }, [__RΦ.m("rt:p", [{ n: "ctx", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(1698))], "toXML"),
50
+ }, [__RΦ.m("rt:p", [{ n: "ctx", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(1694))], "toXML"),
55
51
  fromXML: __RΦ.f((ctx) => {
56
52
  return Boolean(getContent(ctx.xml.elements[0]));
57
53
  }, [__RΦ.m("rt:p", [{ n: "ctx", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(20))], "fromXML"),
@@ -15,7 +15,6 @@ const __RΦ = { m: (k, v) => (t, ...a) => t && Reflect.metadata ? Reflect.metada
15
15
  return t;
16
16
  }, t: { [13]: { LΦ: t => String }, [8]: { RΦ: t => ({ TΦ: "U" }) } } };
17
17
  export class XMLConversionError extends Error {
18
- origin;
19
18
  constructor(message, origin) {
20
19
  super(message);
21
20
  this.origin = origin;
@@ -13,7 +13,7 @@ const __RΦ = { m: (k, v) => (t, ...a) => t && Reflect.metadata ? Reflect.metada
13
13
  __RΦ.t[id] = t = l;
14
14
  }
15
15
  return t;
16
- }, t: { [533]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(200), p: [__RΦ.a(504)] }) }, [200]: { LΦ: t => LΦ_0.IΦConstructor }, [504]: { LΦ: t => Object }, [1716]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(200), p: [__RΦ.a(8)] }) }, [8]: { RΦ: t => ({ TΦ: "U" }) }, [1719]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(138), p: [__RΦ.a(1716), __RΦ.a(22), __RΦ.a(8)] }) }, [138]: { LΦ: t => Object }, [22]: { RΦ: t => ({ TΦ: "V" }) }, [506]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(503), p: [__RΦ.a(1)] }) }, [503]: { TΦ: "5", name: "XMLModel" }, [1]: { RΦ: t => ({ TΦ: "~" }) }, [1742]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(12), __RΦ.a(506)] }) }, [12]: { RΦ: t => ({ TΦ: "n" }) }, [1751]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(1622), p: [__RΦ.a(504)] }) }, [1622]: { LΦ: t => LΦ_1.IΦCreateXMLModelOptions }, [526]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(523), p: [__RΦ.a(504)] }) }, [523]: { LΦ: t => LΦ_1.IΦXMLModelOptions }, [1775]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(12), __RΦ.a(1330)] }) }, [1330]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(603), p: [__RΦ.a(423), __RΦ.a(1328)] }) }, [603]: { LΦ: t => LΦ_1.IΦConversionOptions }, [423]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(424), p: [__RΦ.a(422), __RΦ.a(385)] }) }, [424]: { LΦ: t => Object }, [422]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(381), p: [__RΦ.a(1)] }) }, [381]: { LΦ: t => LΦ_1.IΦfromXMLContext }, [385]: { LΦ: t => "properties" }, [1328]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(1329), p: [__RΦ.a(1)] }) }, [1329]: { LΦ: t => Object }, [4]: { RΦ: t => ({ TΦ: "~" }) }, [659]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(660), p: [__RΦ.a(504)] }) }, [660]: { LΦ: t => Object }, [1785]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(12), __RΦ.a(1783)] }) }, [1783]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(603), p: [__RΦ.a(1362), __RΦ.a(1781)] }) }, [1362]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(1363), p: [__RΦ.a(1361), __RΦ.a(385)] }) }, [1363]: { LΦ: t => Object }, [1361]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(862), p: [__RΦ.a(1)] }) }, [862]: { LΦ: t => LΦ_1.IΦtoXMLContext }, [1781]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(1782), p: [__RΦ.a(1)] }) }, [1782]: { LΦ: t => Object }, [892]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(893), p: [__RΦ.a(504)] }) }, [893]: { LΦ: t => Object }, [20]: { LΦ: t => Boolean }, [662]: { RΦ: t => ({ TΦ: "O", m: [{ n: "fromXML", f: "", t: __RΦ.a(668) }, { n: "toXML", f: "", t: __RΦ.a(900) }, { n: "options", f: "", t: __RΦ.a(1076) }] }) }, [668]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(603), p: [__RΦ.a(664), __RΦ.a(666)] }) }, [664]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(665), p: [__RΦ.a(607), __RΦ.a(385)] }) }, [665]: { LΦ: t => Object }, [607]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(381), p: [__RΦ.a(524)] }) }, [524]: { LΦ: t => Object }, [666]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(667), p: [__RΦ.a(524)] }) }, [667]: { LΦ: t => Object }, [900]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(603), p: [__RΦ.a(896), __RΦ.a(898)] }) }, [896]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(897), p: [__RΦ.a(865), __RΦ.a(385)] }) }, [897]: { LΦ: t => Object }, [865]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(862), p: [__RΦ.a(524)] }) }, [898]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(899), p: [__RΦ.a(524)] }) }, [899]: { LΦ: t => Object }, [1076]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(1066), p: [__RΦ.a(1074), __RΦ.a(1075)] }) }, [1066]: { LΦ: t => Map }, [1074]: { LΦ: t => Object }, [1075]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(212), p: [__RΦ.a(524)] }) }, [212]: { LΦ: t => LΦ_1.IΦXMLModelPropertyOptions }, [1801]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(12), __RΦ.a(1799)] }) }, [1799]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(603), p: [__RΦ.a(422), __RΦ.a(1)] }) }, [1806]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(12), __RΦ.a(1804)] }) }, [1804]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(603), p: [__RΦ.a(1361), __RΦ.a(109)] }) }, [109]: { RΦ: t => ({ TΦ: "O", m: [{ n: "elements", f: "", t: __RΦ.a(105) }] }) }, [105]: { RΦ: t => ({ TΦ: "[", e: __RΦ.a(103) }) }, [103]: { LΦ: t => LΦ_2.IΦXMLElement }, [13]: { LΦ: t => String }, [542]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(13), __RΦ.a(109)] }) }, [28]: { LΦ: t => Object }, [950]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(946), p: [__RΦ.a(533)] }) }, [946]: { LΦ: t => LΦ_0.ReflectedClass }, [1071]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(1066), p: [__RΦ.a(13), __RΦ.a(1065)] }) }, [1065]: { RΦ: t => ({ TΦ: "&", t: [__RΦ.a(1063), __RΦ.a(1064)] }) }, [1063]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(212), p: [__RΦ.a(1)] }) }, [1064]: { RΦ: t => ({ TΦ: "O", m: [{ n: "model", f: "", t: __RΦ.a(1) }] }) }, [1626]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(200), p: [__RΦ.a(1621)] }) }, [1621]: { LΦ: t => Object }, [1625]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(1622), p: [__RΦ.a(1621)] }) }, [1659]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(503), p: [__RΦ.a(1621)] }) }, [1724]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(200), p: [__RΦ.a(1721)] }) }, [1721]: { LΦ: t => Object }, [1737]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(10), __RΦ.a(1736)] }) }, [10]: { RΦ: t => ({ TΦ: "u" }) }, [1736]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(503), p: [__RΦ.a(1721)] }) }, [1938]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(200), p: [__RΦ.a(1937)] }) }, [1937]: { LΦ: t => Object }, [1941]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(503), p: [__RΦ.a(1937)] }) }, [1944]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(1622), p: [__RΦ.a(1943)] }) }, [1943]: { LΦ: t => Object }, [1946]: { RΦ: t => ({ TΦ: "F", r: __RΦ.a(22), p: [{ n: "constructor", t: () => __RΦ.a(1947), v: null }], f: "" }) }, [1947]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(200), p: [__RΦ.a(1943)] }) } } };
16
+ }, t: { [530]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(200), p: [__RΦ.a(501)] }) }, [200]: { LΦ: t => LΦ_0.IΦConstructor }, [501]: { LΦ: t => Object }, [1712]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(200), p: [__RΦ.a(8)] }) }, [8]: { RΦ: t => ({ TΦ: "U" }) }, [1715]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(138), p: [__RΦ.a(1712), __RΦ.a(22), __RΦ.a(8)] }) }, [138]: { LΦ: t => Object }, [22]: { RΦ: t => ({ TΦ: "V" }) }, [503]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(500), p: [__RΦ.a(1)] }) }, [500]: { TΦ: "5", name: "XMLModel" }, [1]: { RΦ: t => ({ TΦ: "~" }) }, [1738]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(12), __RΦ.a(503)] }) }, [12]: { RΦ: t => ({ TΦ: "n" }) }, [1747]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(1618), p: [__RΦ.a(501)] }) }, [1618]: { LΦ: t => LΦ_1.IΦCreateXMLModelOptions }, [523]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(520), p: [__RΦ.a(501)] }) }, [520]: { LΦ: t => LΦ_1.IΦXMLModelOptions }, [1771]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(12), __RΦ.a(1326)] }) }, [1326]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(600), p: [__RΦ.a(420), __RΦ.a(1324)] }) }, [600]: { LΦ: t => LΦ_1.IΦConversionOptions }, [420]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(421), p: [__RΦ.a(419), __RΦ.a(382)] }) }, [421]: { LΦ: t => Object }, [419]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(378), p: [__RΦ.a(1)] }) }, [378]: { LΦ: t => LΦ_1.IΦfromXMLContext }, [382]: { LΦ: t => "properties" }, [1324]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(1325), p: [__RΦ.a(1)] }) }, [1325]: { LΦ: t => Object }, [4]: { RΦ: t => ({ TΦ: "~" }) }, [656]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(657), p: [__RΦ.a(501)] }) }, [657]: { LΦ: t => Object }, [1781]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(12), __RΦ.a(1779)] }) }, [1779]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(600), p: [__RΦ.a(1358), __RΦ.a(1777)] }) }, [1358]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(1359), p: [__RΦ.a(1357), __RΦ.a(382)] }) }, [1359]: { LΦ: t => Object }, [1357]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(858), p: [__RΦ.a(1)] }) }, [858]: { LΦ: t => LΦ_1.IΦtoXMLContext }, [1777]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(1778), p: [__RΦ.a(1)] }) }, [1778]: { LΦ: t => Object }, [888]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(889), p: [__RΦ.a(501)] }) }, [889]: { LΦ: t => Object }, [20]: { LΦ: t => Boolean }, [659]: { RΦ: t => ({ TΦ: "O", m: [{ n: "fromXML", f: "", t: __RΦ.a(665) }, { n: "toXML", f: "", t: __RΦ.a(896) }, { n: "options", f: "", t: __RΦ.a(1072) }] }) }, [665]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(600), p: [__RΦ.a(661), __RΦ.a(663)] }) }, [661]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(662), p: [__RΦ.a(604), __RΦ.a(382)] }) }, [662]: { LΦ: t => Object }, [604]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(378), p: [__RΦ.a(521)] }) }, [521]: { LΦ: t => Object }, [663]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(664), p: [__RΦ.a(521)] }) }, [664]: { LΦ: t => Object }, [896]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(600), p: [__RΦ.a(892), __RΦ.a(894)] }) }, [892]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(893), p: [__RΦ.a(861), __RΦ.a(382)] }) }, [893]: { LΦ: t => Object }, [861]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(858), p: [__RΦ.a(521)] }) }, [894]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(895), p: [__RΦ.a(521)] }) }, [895]: { LΦ: t => Object }, [1072]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(1062), p: [__RΦ.a(1070), __RΦ.a(1071)] }) }, [1062]: { LΦ: t => Map }, [1070]: { LΦ: t => Object }, [1071]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(212), p: [__RΦ.a(521)] }) }, [212]: { LΦ: t => LΦ_1.IΦXMLModelPropertyOptions }, [1797]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(12), __RΦ.a(1795)] }) }, [1795]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(600), p: [__RΦ.a(419), __RΦ.a(1)] }) }, [1802]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(12), __RΦ.a(1800)] }) }, [1800]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(600), p: [__RΦ.a(1357), __RΦ.a(109)] }) }, [109]: { RΦ: t => ({ TΦ: "O", m: [{ n: "elements", f: "", t: __RΦ.a(105) }] }) }, [105]: { RΦ: t => ({ TΦ: "[", e: __RΦ.a(103) }) }, [103]: { LΦ: t => LΦ_2.IΦXMLElement }, [13]: { LΦ: t => String }, [539]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(13), __RΦ.a(109)] }) }, [28]: { LΦ: t => Object }, [946]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(942), p: [__RΦ.a(530)] }) }, [942]: { LΦ: t => LΦ_0.ReflectedClass }, [1067]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(1062), p: [__RΦ.a(13), __RΦ.a(1061)] }) }, [1061]: { RΦ: t => ({ TΦ: "&", t: [__RΦ.a(1059), __RΦ.a(1060)] }) }, [1059]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(212), p: [__RΦ.a(1)] }) }, [1060]: { RΦ: t => ({ TΦ: "O", m: [{ n: "model", f: "", t: __RΦ.a(1) }] }) }, [1622]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(200), p: [__RΦ.a(1617)] }) }, [1617]: { LΦ: t => Object }, [1621]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(1618), p: [__RΦ.a(1617)] }) }, [1655]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(500), p: [__RΦ.a(1617)] }) }, [1720]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(200), p: [__RΦ.a(1717)] }) }, [1717]: { LΦ: t => Object }, [1733]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(10), __RΦ.a(1732)] }) }, [10]: { RΦ: t => ({ TΦ: "u" }) }, [1732]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(500), p: [__RΦ.a(1717)] }) }, [1934]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(200), p: [__RΦ.a(1933)] }) }, [1933]: { LΦ: t => Object }, [1937]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(500), p: [__RΦ.a(1933)] }) }, [1940]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(1618), p: [__RΦ.a(1939)] }) }, [1939]: { LΦ: t => Object }, [1942]: { RΦ: t => ({ TΦ: "F", r: __RΦ.a(22), p: [{ n: "constructor", t: () => __RΦ.a(1943), v: null }], f: "" }) }, [1943]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(200), p: [__RΦ.a(1939)] }) } } };
17
17
  import "reflect-metadata";
18
18
  import { reflect } from "typescript-rtti";
19
19
  import { MiddlewareChain, resolve } from "../middleware";
@@ -35,9 +35,9 @@ function* ParentChain(constructor) {
35
35
  }
36
36
  return;
37
37
  }
38
- __RΦ.m("rt:p", [{ n: "constructor", t: () => __RΦ.a(1716), v: null }])(ParentChain);
38
+ __RΦ.m("rt:p", [{ n: "constructor", t: () => __RΦ.a(1712), v: null }])(ParentChain);
39
39
  __RΦ.m("rt:f", "F")(ParentChain);
40
- __RΦ.m("rt:t", () => __RΦ.a(1719))(ParentChain);
40
+ __RΦ.m("rt:t", () => __RΦ.a(1715))(ParentChain);
41
41
  import * as LΦ_1 from "./types";
42
42
  import * as LΦ_2 from "../types";
43
43
  function getParentModel(model) {
@@ -51,13 +51,11 @@ function getParentModel(model) {
51
51
  }
52
52
  return null;
53
53
  }
54
- __RΦ.m("rt:p", [{ n: "model", t: () => __RΦ.a(506), v: null }])(getParentModel);
54
+ __RΦ.m("rt:p", [{ n: "model", t: () => __RΦ.a(503), v: null }])(getParentModel);
55
55
  __RΦ.m("rt:f", "F")(getParentModel);
56
- __RΦ.m("rt:t", () => __RΦ.a(1742))(getParentModel);
56
+ __RΦ.m("rt:t", () => __RΦ.a(1738))(getParentModel);
57
57
  import * as LΦ_0 from "typescript-rtti/dist";
58
58
  export class XMLModel {
59
- type;
60
- options;
61
59
  constructor(type, options) {
62
60
  this.type = type;
63
61
  // eslint-disable-next-line @typescript-eslint/no-this-alias
@@ -67,13 +65,14 @@ export class XMLModel {
67
65
  if (typeof parent === "undefined")
68
66
  parent = getParentModel(this);
69
67
  return parent;
70
- }, [__RΦ.m("rt:p", []), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(1742))], "getParent");
68
+ }, [__RΦ.m("rt:p", []), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(1738))], "getParent");
71
69
  let propertiesLoaded = false;
72
70
  const properties = {
73
71
  options: new Map(),
74
72
  fromXML: {
75
73
  get parent() {
76
- return getParent()?.options.properties.fromXML || null;
74
+ var _a;
75
+ return ((_a = getParent()) === null || _a === void 0 ? void 0 : _a.options.properties.fromXML) || null;
77
76
  },
78
77
  middlewares: [
79
78
  __RΦ.f((context, next) => {
@@ -98,12 +97,13 @@ export class XMLModel {
98
97
  }
99
98
  }, [__RΦ.m("rt:p", [{ n: "property", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(22))], ""));
100
99
  return record;
101
- }, [__RΦ.m("rt:p", [{ n: "context", t: () => __RΦ.a(4), v: null }, { n: "next", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(659))], ""),
100
+ }, [__RΦ.m("rt:p", [{ n: "context", t: () => __RΦ.a(4), v: null }, { n: "next", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(656))], ""),
102
101
  ],
103
102
  },
104
103
  toXML: {
105
104
  get parent() {
106
- return getParent()?.options.properties.toXML || null;
105
+ var _a;
106
+ return ((_a = getParent()) === null || _a === void 0 ? void 0 : _a.options.properties.toXML) || null;
107
107
  },
108
108
  middlewares: [
109
109
  __RΦ.f((context, next) => {
@@ -122,12 +122,12 @@ export class XMLModel {
122
122
  }
123
123
  }, [__RΦ.m("rt:p", [{ n: "options", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(22))], ""));
124
124
  return record;
125
- }, [__RΦ.m("rt:p", [{ n: "context", t: () => __RΦ.a(4), v: null }, { n: "next", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(892))], ""),
125
+ }, [__RΦ.m("rt:p", [{ n: "context", t: () => __RΦ.a(4), v: null }, { n: "next", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(888))], ""),
126
126
  ],
127
127
  },
128
128
  };
129
129
  const loadProperties = __RΦ.f(() => {
130
- const props = reflect(this.type, { TΦ: "c", t: void 0, p: [__RΦ.a(533)], r: void 0, tp: [] }).ownProperties.filter(__RΦ.f((prop) => typeof prop.host.constructor.prototype[prop.name] !== "function", [__RΦ.m("rt:p", [{ n: "prop", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(20))], "")); // filter out methods like String.prototype.concat etc... that are seen as properties
130
+ const props = reflect(this.type, { TΦ: "c", t: void 0, p: [__RΦ.a(530)], r: void 0, tp: [] }).ownProperties.filter(__RΦ.f((prop) => typeof prop.host.constructor.prototype[prop.name] !== "function", [__RΦ.m("rt:p", [{ n: "prop", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(20))], "")); // filter out methods like String.prototype.concat etc... that are seen as properties
131
131
  props.forEach(__RΦ.f((property) => {
132
132
  const options = getPropertyConversionOptions(this.type, property.name);
133
133
  if (!options.ignored) {
@@ -145,13 +145,15 @@ export class XMLModel {
145
145
  fromXML: {
146
146
  middlewares: [],
147
147
  get parent() {
148
- return getParent()?.options.fromXML || null;
148
+ var _a;
149
+ return ((_a = getParent()) === null || _a === void 0 ? void 0 : _a.options.fromXML) || null;
149
150
  },
150
151
  },
151
152
  toXML: {
152
153
  middlewares: [],
153
154
  get parent() {
154
- return getParent()?.options.toXML || null;
155
+ var _a;
156
+ return ((_a = getParent()) === null || _a === void 0 ? void 0 : _a.options.toXML) || null;
155
157
  },
156
158
  },
157
159
  get tagname() {
@@ -211,7 +213,7 @@ export class XMLModel {
211
213
  }
212
214
  }
213
215
  get reflectedClass() {
214
- return reflect(this.type, { TΦ: "c", t: void 0, p: [__RΦ.a(533)], r: void 0, tp: [] });
216
+ return reflect(this.type, { TΦ: "c", t: void 0, p: [__RΦ.a(530)], r: void 0, tp: [] });
215
217
  }
216
218
  resolveAllProperties() {
217
219
  const properties = new Map();
@@ -219,7 +221,7 @@ export class XMLModel {
219
221
  if (parent)
220
222
  parent
221
223
  .resolveAllProperties()
222
- .forEach(__RΦ.f((prop, key) => properties.set(key, prop), [__RΦ.m("rt:p", [{ n: "prop", t: () => __RΦ.a(4), v: null }, { n: "key", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(1071))], ""));
224
+ .forEach(__RΦ.f((prop, key) => properties.set(key, prop), [__RΦ.m("rt:p", [{ n: "prop", t: () => __RΦ.a(4), v: null }, { n: "key", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(1067))], ""));
223
225
  this.options.properties.options.forEach(__RΦ.f((options, key) => properties.set(key, new Proxy(options, {
224
226
  get: __RΦ.f((target, p, reciever) => {
225
227
  if (p === "model")
@@ -227,52 +229,52 @@ export class XMLModel {
227
229
  else
228
230
  return Reflect.get(target, p, reciever);
229
231
  }, [__RΦ.m("rt:p", [{ n: "target", t: () => __RΦ.a(4), v: null }, { n: "p", t: () => __RΦ.a(4), v: null }, { n: "reciever", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(1))], "get"),
230
- })), [__RΦ.m("rt:p", [{ n: "options", t: () => __RΦ.a(4), v: null }, { n: "key", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(1071))], ""));
232
+ })), [__RΦ.m("rt:p", [{ n: "options", t: () => __RΦ.a(4), v: null }, { n: "key", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(1067))], ""));
231
233
  return properties;
232
234
  }
233
235
  }
234
- (t => __RΦ.t[503] = t)(XMLModel);
236
+ (t => __RΦ.t[500] = t)(XMLModel);
235
237
  __RΦ.m("rt:SP", [])(XMLModel);
236
238
  __RΦ.m("rt:P", ["options", "type", "reflectedClass"])(XMLModel);
237
239
  __RΦ.m("rt:Sm", [])(XMLModel);
238
240
  __RΦ.m("rt:m", ["fromXML", "toXML", "resolveAllProperties"])(XMLModel);
239
- __RΦ.m("rt:p", [{ n: "type", t: () => __RΦ.a(533), v: null, f: "R" }, { n: "options", t: () => __RΦ.a(1751), v: null }])(XMLModel);
241
+ __RΦ.m("rt:p", [{ n: "type", t: () => __RΦ.a(530), v: null, f: "R" }, { n: "options", t: () => __RΦ.a(1747), v: null }])(XMLModel);
240
242
  __RΦ.m("rt:f", "Ce")(XMLModel);
241
- __RΦ.m("rt:t", () => __RΦ.a(526))(XMLModel.prototype, "options");
243
+ __RΦ.m("rt:t", () => __RΦ.a(523))(XMLModel.prototype, "options");
242
244
  __RΦ.m("rt:f", "P")(XMLModel.prototype, "options");
243
- __RΦ.m("rt:t", () => __RΦ.a(1775))(XMLModel.prototype, "parent");
245
+ __RΦ.m("rt:t", () => __RΦ.a(1771))(XMLModel.prototype, "parent");
244
246
  __RΦ.m("rt:f", "P")(XMLModel.prototype, "parent");
245
- __RΦ.m("rt:t", () => __RΦ.a(1785))(XMLModel.prototype, "parent");
247
+ __RΦ.m("rt:t", () => __RΦ.a(1781))(XMLModel.prototype, "parent");
246
248
  __RΦ.m("rt:f", "P")(XMLModel.prototype, "parent");
247
- __RΦ.m("rt:t", () => __RΦ.a(662))(XMLModel.prototype, "properties");
249
+ __RΦ.m("rt:t", () => __RΦ.a(659))(XMLModel.prototype, "properties");
248
250
  __RΦ.m("rt:f", "P")(XMLModel.prototype, "properties");
249
- __RΦ.m("rt:t", () => __RΦ.a(1801))(XMLModel.prototype, "parent");
251
+ __RΦ.m("rt:t", () => __RΦ.a(1797))(XMLModel.prototype, "parent");
250
252
  __RΦ.m("rt:f", "P")(XMLModel.prototype, "parent");
251
- __RΦ.m("rt:t", () => __RΦ.a(1806))(XMLModel.prototype, "parent");
253
+ __RΦ.m("rt:t", () => __RΦ.a(1802))(XMLModel.prototype, "parent");
252
254
  __RΦ.m("rt:f", "P")(XMLModel.prototype, "parent");
253
255
  __RΦ.m("rt:t", () => __RΦ.a(13))(XMLModel.prototype, "tagname");
254
256
  __RΦ.m("rt:f", "P")(XMLModel.prototype, "tagname");
255
257
  __RΦ.m("rt:f", "M.")(XMLModel.prototype["fromXML"]);
256
258
  ((t, p) => __RΦ.m("rt:h", () => typeof t === "object" ? t.constructor : t)(t[p]))(XMLModel.prototype, "fromXML");
257
- __RΦ.m("rt:p", [{ n: "xml", t: () => __RΦ.a(542), v: null }])(XMLModel.prototype, "fromXML");
259
+ __RΦ.m("rt:p", [{ n: "xml", t: () => __RΦ.a(539), v: null }])(XMLModel.prototype, "fromXML");
258
260
  __RΦ.m("rt:f", "M.")(XMLModel.prototype, "fromXML");
259
- __RΦ.m("rt:t", () => __RΦ.a(504))(XMLModel.prototype, "fromXML");
260
- __RΦ.m("rt:t", () => __RΦ.a(659))(XMLModel.prototype, "properties");
261
+ __RΦ.m("rt:t", () => __RΦ.a(501))(XMLModel.prototype, "fromXML");
262
+ __RΦ.m("rt:t", () => __RΦ.a(656))(XMLModel.prototype, "properties");
261
263
  __RΦ.m("rt:f", "P")(XMLModel.prototype, "properties");
262
264
  __RΦ.m("rt:f", "M.")(XMLModel.prototype["toXML"]);
263
265
  ((t, p) => __RΦ.m("rt:h", () => typeof t === "object" ? t.constructor : t)(t[p]))(XMLModel.prototype, "toXML");
264
266
  __RΦ.m("rt:p", [{ n: "instance", t: () => __RΦ.a(28), v: null }])(XMLModel.prototype, "toXML");
265
267
  __RΦ.m("rt:f", "M.")(XMLModel.prototype, "toXML");
266
268
  __RΦ.m("rt:t", () => __RΦ.a(109))(XMLModel.prototype, "toXML");
267
- __RΦ.m("rt:t", () => __RΦ.a(892))(XMLModel.prototype, "properties");
269
+ __RΦ.m("rt:t", () => __RΦ.a(888))(XMLModel.prototype, "properties");
268
270
  __RΦ.m("rt:f", "P")(XMLModel.prototype, "properties");
269
- __RΦ.m("rt:t", () => __RΦ.a(950))(XMLModel.prototype, "reflectedClass");
271
+ __RΦ.m("rt:t", () => __RΦ.a(946))(XMLModel.prototype, "reflectedClass");
270
272
  __RΦ.m("rt:f", "P")(XMLModel.prototype, "reflectedClass");
271
273
  __RΦ.m("rt:f", "M.")(XMLModel.prototype["resolveAllProperties"]);
272
274
  ((t, p) => __RΦ.m("rt:h", () => typeof t === "object" ? t.constructor : t)(t[p]))(XMLModel.prototype, "resolveAllProperties");
273
275
  __RΦ.m("rt:p", [])(XMLModel.prototype, "resolveAllProperties");
274
276
  __RΦ.m("rt:f", "M.")(XMLModel.prototype, "resolveAllProperties");
275
- __RΦ.m("rt:t", () => __RΦ.a(1071))(XMLModel.prototype, "resolveAllProperties");
277
+ __RΦ.m("rt:t", () => __RΦ.a(1067))(XMLModel.prototype, "resolveAllProperties");
276
278
  export function createModel(type, options) {
277
279
  if (findModel(type)) {
278
280
  throw new TypeError(`a model for type ${type.name} already exists`);
@@ -281,16 +283,16 @@ export function createModel(type, options) {
281
283
  Models.set(type, model);
282
284
  return model;
283
285
  }
284
- __RΦ.m("rt:p", [{ n: "type", t: () => __RΦ.a(1626), v: null }, { n: "options", t: () => __RΦ.a(1625), v: null }])(createModel);
286
+ __RΦ.m("rt:p", [{ n: "type", t: () => __RΦ.a(1622), v: null }, { n: "options", t: () => __RΦ.a(1621), v: null }])(createModel);
285
287
  __RΦ.m("rt:f", "F")(createModel);
286
- __RΦ.m("rt:t", () => __RΦ.a(1659))(createModel);
288
+ __RΦ.m("rt:t", () => __RΦ.a(1655))(createModel);
287
289
  export const Models = new Map();
288
290
  export function findModel(id) {
289
291
  return Models.get(id);
290
292
  }
291
- __RΦ.m("rt:p", [{ n: "id", t: () => __RΦ.a(1724), v: null }])(findModel);
293
+ __RΦ.m("rt:p", [{ n: "id", t: () => __RΦ.a(1720), v: null }])(findModel);
292
294
  __RΦ.m("rt:f", "F")(findModel);
293
- __RΦ.m("rt:t", () => __RΦ.a(1737))(findModel);
295
+ __RΦ.m("rt:t", () => __RΦ.a(1733))(findModel);
294
296
  export function getModel(id) {
295
297
  const model = findModel(id);
296
298
  if (model)
@@ -298,18 +300,18 @@ export function getModel(id) {
298
300
  else
299
301
  throw new TypeError(`couln't find model for type ${id.name}`);
300
302
  }
301
- __RΦ.m("rt:p", [{ n: "id", t: () => __RΦ.a(1938), v: null }])(getModel);
303
+ __RΦ.m("rt:p", [{ n: "id", t: () => __RΦ.a(1934), v: null }])(getModel);
302
304
  __RΦ.m("rt:f", "F")(getModel);
303
- __RΦ.m("rt:t", () => __RΦ.a(1941))(getModel);
305
+ __RΦ.m("rt:t", () => __RΦ.a(1937))(getModel);
304
306
  // Model decorator
305
307
  function ModelDecoratorFactory(options) {
306
308
  return __RΦ.f(function (constructor) {
307
309
  findModel(constructor) || createModel(constructor, options || {});
308
- }, [__RΦ.m("rt:p", [{ n: "constructor", t: () => __RΦ.a(1947), v: null }]), __RΦ.m("rt:f", "M"), __RΦ.m("rt:t", () => __RΦ.a(22))], "");
310
+ }, [__RΦ.m("rt:p", [{ n: "constructor", t: () => __RΦ.a(1943), v: null }]), __RΦ.m("rt:f", "M"), __RΦ.m("rt:t", () => __RΦ.a(22))], "");
309
311
  }
310
- __RΦ.m("rt:p", [{ n: "options", t: () => __RΦ.a(1944), v: null, f: "?" }])(ModelDecoratorFactory);
312
+ __RΦ.m("rt:p", [{ n: "options", t: () => __RΦ.a(1940), v: null, f: "?" }])(ModelDecoratorFactory);
311
313
  __RΦ.m("rt:f", "F")(ModelDecoratorFactory);
312
- __RΦ.m("rt:t", () => __RΦ.a(1946))(ModelDecoratorFactory);
314
+ __RΦ.m("rt:t", () => __RΦ.a(1942))(ModelDecoratorFactory);
313
315
  export { ModelDecoratorFactory as Model };
314
316
  export { Prop } from "./property";
315
317
  import "../defaults/models";
@@ -13,7 +13,7 @@ const __RΦ = { m: (k, v) => (t, ...a) => t && Reflect.metadata ? Reflect.metada
13
13
  __RΦ.t[id] = t = l;
14
14
  }
15
15
  return t;
16
- }, t: { [203]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(200), p: [__RΦ.a(195)] }) }, [200]: { LΦ: t => LΦ_0.IΦConstructor }, [195]: { LΦ: t => Object }, [199]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(196), p: [__RΦ.a(195)] }) }, [196]: { LΦ: t => LΦ_1.IΦCreateXMLModelPropertyOptions }, [211]: { LΦ: t => Object }, [215]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(212), p: [__RΦ.a(195)] }) }, [212]: { LΦ: t => LΦ_1.IΦXMLModelPropertyOptions }, [498]: { LΦ: t => LΦ_0.ReflectedProperty }, [13]: { LΦ: t => String }, [4]: { RΦ: t => ({ TΦ: "~" }) }, [20]: { LΦ: t => Boolean }, [105]: { RΦ: t => ({ TΦ: "[", e: __RΦ.a(103) }) }, [103]: { LΦ: t => LΦ_2.IΦXMLElement }, [1]: { RΦ: t => ({ TΦ: "~" }) }, [109]: { RΦ: t => ({ TΦ: "O", m: [{ n: "elements", f: "", t: __RΦ.a(105) }] }) }, [1409]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(200), p: [__RΦ.a(1408)] }) }, [1408]: { LΦ: t => Object }, [1411]: { LΦ: t => Object }, [1412]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(212), p: [__RΦ.a(1408)] }) }, [22]: { RΦ: t => ({ TΦ: "V" }) }, [1424]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(200), p: [__RΦ.a(1423)] }) }, [1423]: { LΦ: t => Object }, [1426]: { LΦ: t => Object }, [1435]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(10), __RΦ.a(1427)] }) }, [10]: { RΦ: t => ({ TΦ: "u" }) }, [1427]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(212), p: [__RΦ.a(1423)] }) }, [1441]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(200), p: [__RΦ.a(1440)] }) }, [1440]: { LΦ: t => Object }, [1443]: { LΦ: t => Object }, [1467]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(212), p: [__RΦ.a(1440)] }) }, [1474]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(196), p: [__RΦ.a(1473)] }) }, [1473]: { LΦ: t => Object }, [1476]: { RΦ: t => ({ TΦ: "F", r: __RΦ.a(22), p: [{ n: "prototype", t: () => __RΦ.a(1), v: null }, { n: "property", t: () => __RΦ.a(1478), v: null }], f: "" }) }, [1478]: { LΦ: t => Object } } };
16
+ }, t: { [203]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(200), p: [__RΦ.a(195)] }) }, [200]: { LΦ: t => LΦ_0.IΦConstructor }, [195]: { LΦ: t => Object }, [199]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(196), p: [__RΦ.a(195)] }) }, [196]: { LΦ: t => LΦ_1.IΦCreateXMLModelPropertyOptions }, [211]: { LΦ: t => Object }, [215]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(212), p: [__RΦ.a(195)] }) }, [212]: { LΦ: t => LΦ_1.IΦXMLModelPropertyOptions }, [495]: { LΦ: t => LΦ_0.ReflectedProperty }, [13]: { LΦ: t => String }, [4]: { RΦ: t => ({ TΦ: "~" }) }, [20]: { LΦ: t => Boolean }, [105]: { RΦ: t => ({ TΦ: "[", e: __RΦ.a(103) }) }, [103]: { LΦ: t => LΦ_2.IΦXMLElement }, [1]: { RΦ: t => ({ TΦ: "~" }) }, [109]: { RΦ: t => ({ TΦ: "O", m: [{ n: "elements", f: "", t: __RΦ.a(105) }] }) }, [1405]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(200), p: [__RΦ.a(1404)] }) }, [1404]: { LΦ: t => Object }, [1407]: { LΦ: t => Object }, [1408]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(212), p: [__RΦ.a(1404)] }) }, [22]: { RΦ: t => ({ TΦ: "V" }) }, [1420]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(200), p: [__RΦ.a(1419)] }) }, [1419]: { LΦ: t => Object }, [1422]: { LΦ: t => Object }, [1431]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(10), __RΦ.a(1423)] }) }, [10]: { RΦ: t => ({ TΦ: "u" }) }, [1423]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(212), p: [__RΦ.a(1419)] }) }, [1437]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(200), p: [__RΦ.a(1436)] }) }, [1436]: { LΦ: t => Object }, [1439]: { LΦ: t => Object }, [1463]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(212), p: [__RΦ.a(1436)] }) }, [1470]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(196), p: [__RΦ.a(1469)] }) }, [1469]: { LΦ: t => Object }, [1472]: { RΦ: t => ({ TΦ: "F", r: __RΦ.a(22), p: [{ n: "prototype", t: () => __RΦ.a(1), v: null }, { n: "property", t: () => __RΦ.a(1474), v: null }], f: "" }) }, [1474]: { LΦ: t => Object } } };
17
17
  import { reflect } from "typescript-rtti";
18
18
  import * as LΦ_1 from "./types";
19
19
  import * as LΦ_2 from "../types";
@@ -37,9 +37,9 @@ function resolvePropertyConversionOptions(options, constructor, property) {
37
37
  fromXML: __RΦ.f((context) => (options.fromXML || defaults.propertyFromXML)(context), [__RΦ.m("rt:p", [{ n: "context", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(1))], "fromXML"),
38
38
  toXML: __RΦ.f((context) => (options.toXML || defaults.propertyToXML)(context), [__RΦ.m("rt:p", [{ n: "context", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(109))], "toXML"),
39
39
  };
40
- if (options?.model)
40
+ if (options === null || options === void 0 ? void 0 : options.model)
41
41
  _options.model = options.model;
42
- if (options?.sourceElements) {
42
+ if (options === null || options === void 0 ? void 0 : options.sourceElements) {
43
43
  const _sourceElements = options.sourceElements;
44
44
  if (typeof _sourceElements === "string") {
45
45
  _options.isSourceElement = __RΦ.f((element) => element.name === _sourceElements, [__RΦ.m("rt:p", [{ n: "element", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(20))], "");
@@ -65,7 +65,7 @@ function storePropertyConversionOptions(constructor, property, options) {
65
65
  }
66
66
  map.set(property, options);
67
67
  }
68
- __RΦ.m("rt:p", [{ n: "constructor", t: () => __RΦ.a(1409), v: null }, { n: "property", t: () => __RΦ.a(1411), v: null }, { n: "options", t: () => __RΦ.a(1412), v: null }])(storePropertyConversionOptions);
68
+ __RΦ.m("rt:p", [{ n: "constructor", t: () => __RΦ.a(1405), v: null }, { n: "property", t: () => __RΦ.a(1407), v: null }, { n: "options", t: () => __RΦ.a(1408), v: null }])(storePropertyConversionOptions);
69
69
  __RΦ.m("rt:f", "F")(storePropertyConversionOptions);
70
70
  __RΦ.m("rt:t", () => __RΦ.a(22))(storePropertyConversionOptions);
71
71
  function findPropertyConversionOptions(constructor, property) {
@@ -74,23 +74,23 @@ function findPropertyConversionOptions(constructor, property) {
74
74
  return options.get(property);
75
75
  }
76
76
  }
77
- __RΦ.m("rt:p", [{ n: "constructor", t: () => __RΦ.a(1424), v: null }, { n: "property", t: () => __RΦ.a(1426), v: null }])(findPropertyConversionOptions);
77
+ __RΦ.m("rt:p", [{ n: "constructor", t: () => __RΦ.a(1420), v: null }, { n: "property", t: () => __RΦ.a(1422), v: null }])(findPropertyConversionOptions);
78
78
  __RΦ.m("rt:f", "F")(findPropertyConversionOptions);
79
- __RΦ.m("rt:t", () => __RΦ.a(1435))(findPropertyConversionOptions);
79
+ __RΦ.m("rt:t", () => __RΦ.a(1431))(findPropertyConversionOptions);
80
80
  export function getPropertyConversionOptions(constructor, property) {
81
81
  const options = findPropertyConversionOptions(constructor, property);
82
82
  return options || resolvePropertyConversionOptions({}, constructor, property);
83
83
  }
84
- __RΦ.m("rt:p", [{ n: "constructor", t: () => __RΦ.a(1441), v: null }, { n: "property", t: () => __RΦ.a(1443), v: null }])(getPropertyConversionOptions);
84
+ __RΦ.m("rt:p", [{ n: "constructor", t: () => __RΦ.a(1437), v: null }, { n: "property", t: () => __RΦ.a(1439), v: null }])(getPropertyConversionOptions);
85
85
  __RΦ.m("rt:f", "F")(getPropertyConversionOptions);
86
- __RΦ.m("rt:t", () => __RΦ.a(1467))(getPropertyConversionOptions);
86
+ __RΦ.m("rt:t", () => __RΦ.a(1463))(getPropertyConversionOptions);
87
87
  function PropDecoratorFactory(options) {
88
88
  return __RΦ.f(function (prototype, property) {
89
89
  const _options = resolvePropertyConversionOptions(options || {}, prototype.constructor, property);
90
90
  storePropertyConversionOptions(prototype.constructor, property, _options);
91
- }, [__RΦ.m("rt:p", [{ n: "prototype", t: () => __RΦ.a(1), v: null }, { n: "property", t: () => __RΦ.a(1478), v: null }]), __RΦ.m("rt:f", "M."), __RΦ.m("rt:t", () => __RΦ.a(22))], "");
91
+ }, [__RΦ.m("rt:p", [{ n: "prototype", t: () => __RΦ.a(1), v: null }, { n: "property", t: () => __RΦ.a(1474), v: null }]), __RΦ.m("rt:f", "M."), __RΦ.m("rt:t", () => __RΦ.a(22))], "");
92
92
  }
93
- __RΦ.m("rt:p", [{ n: "options", t: () => __RΦ.a(1474), v: null, f: "?" }])(PropDecoratorFactory);
93
+ __RΦ.m("rt:p", [{ n: "options", t: () => __RΦ.a(1470), v: null, f: "?" }])(PropDecoratorFactory);
94
94
  __RΦ.m("rt:f", "F")(PropDecoratorFactory);
95
- __RΦ.m("rt:t", () => __RΦ.a(1476))(PropDecoratorFactory);
95
+ __RΦ.m("rt:t", () => __RΦ.a(1472))(PropDecoratorFactory);
96
96
  export { PropDecoratorFactory as Prop };
@@ -13,35 +13,35 @@ const __RΦ = { m: (k, v) => (t, ...a) => t && Reflect.metadata ? Reflect.metada
13
13
  __RΦ.t[id] = t = l;
14
14
  }
15
15
  return t;
16
- }, t: { [1372]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(212), p: [__RΦ.a(1343)] }) }, [212]: { TΦ: "5", name: "XMLModelPropertyOptions" }, [1343]: { LΦ: t => Object }, [1376]: { LΦ: t => Object }, [494]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(212), p: [__RΦ.a(376)] }) }, [376]: { LΦ: t => Object }, [105]: { RΦ: t => ({ TΦ: "[", e: __RΦ.a(103) }) }, [103]: { LΦ: t => LΦ_0.IΦXMLElement }, [497]: { LΦ: t => Object }, [498]: { LΦ: t => LΦ_1.ReflectedProperty }, [13]: { LΦ: t => String }, [20]: { LΦ: t => Boolean }, [506]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(503), p: [__RΦ.a(1)] }) }, [503]: { LΦ: t => LΦ_2.XMLModel }, [1]: { RΦ: t => ({ TΦ: "~" }) }, [358]: { RΦ: t => ({ TΦ: "F", r: __RΦ.a(20), p: [{ n: "element", t: () => __RΦ.a(103), v: null }, { n: "context", t: () => __RΦ.a(400), v: null }], f: "" }) }, [400]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(401), p: [__RΦ.a(378), __RΦ.a(379)] }) }, [401]: { LΦ: t => Object }, [378]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(375), p: [__RΦ.a(213)] }) }, [375]: { TΦ: "5", name: "PropertyFromXMLContext" }, [213]: { LΦ: t => Object }, [379]: { LΦ: t => "elements" }, [1223]: { RΦ: t => ({ TΦ: "F", r: __RΦ.a(105), p: [{ n: "context", t: () => __RΦ.a(400), v: null }], f: "" }) }, [1225]: { RΦ: t => ({ TΦ: "F", r: __RΦ.a(1338), p: [{ n: "context", t: () => __RΦ.a(378), v: null }], f: "" }) }, [1338]: { LΦ: t => Object }, [1227]: { RΦ: t => ({ TΦ: "F", r: __RΦ.a(109), p: [{ n: "context", t: () => __RΦ.a(1345), v: null }], f: "" }) }, [109]: { RΦ: t => ({ TΦ: "O", m: [{ n: "elements", f: "", t: __RΦ.a(105) }] }) }, [1345]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(1342), p: [__RΦ.a(213)] }) }, [1342]: { TΦ: "5", name: "PropertyToXMLContext" }, [1386]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(13), __RΦ.a(74), __RΦ.a(1385)] }) }, [74]: { LΦ: t => RegExp }, [1385]: { RΦ: t => ({ TΦ: "O", m: [{ n: "__call", f: "", t: __RΦ.a(4) }] }) }, [4]: { RΦ: t => ({ TΦ: "~" }) }, [1279]: { RΦ: t => ({ TΦ: "O", m: [{ n: "__call", f: "", t: __RΦ.a(4) }] }) }, [1348]: { RΦ: t => ({ TΦ: "O", m: [{ n: "__call", f: "", t: __RΦ.a(4) }] }) }, [1301]: { RΦ: t => ({ TΦ: "O", m: [{ n: "__call", f: "", t: __RΦ.a(4) }] }) }, [507]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(10), __RΦ.a(506)] }) }, [10]: { RΦ: t => ({ TΦ: "u" }) }, [611]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(12), __RΦ.a(603)] }) }, [12]: { RΦ: t => ({ TΦ: "n" }) }, [603]: { TΦ: "5", name: "ConversionOptions" }, [614]: { RΦ: t => ({ TΦ: "[", e: __RΦ.a(613) }) }, [613]: { RΦ: t => ({ TΦ: "O", m: [{ n: "__call", f: "", t: __RΦ.a(4) }] }) }, [657]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(658), p: [__RΦ.a(382)] }) }, [658]: { LΦ: t => Object }, [382]: { LΦ: t => Object }, [520]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(503), p: [__RΦ.a(382)] }) }, [863]: { LΦ: t => Object }, [890]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(891), p: [__RΦ.a(863)] }) }, [891]: { LΦ: t => Object }, [928]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(503), p: [__RΦ.a(863)] }) }, [529]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(503), p: [__RΦ.a(524)] }) }, [524]: { LΦ: t => Object }, [661]: { RΦ: t => ({ TΦ: "O", m: [{ n: "fromXML", f: "", t: __RΦ.a(668) }, { n: "toXML", f: "", t: __RΦ.a(900) }, { n: "options", f: "", t: __RΦ.a(1076) }] }) }, [668]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(603), p: [__RΦ.a(664), __RΦ.a(666)] }) }, [664]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(665), p: [__RΦ.a(607), __RΦ.a(385)] }) }, [665]: { LΦ: t => Object }, [607]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(381), p: [__RΦ.a(524)] }) }, [381]: { TΦ: "5", name: "fromXMLContext" }, [385]: { LΦ: t => "properties" }, [666]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(667), p: [__RΦ.a(524)] }) }, [667]: { LΦ: t => Object }, [900]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(603), p: [__RΦ.a(896), __RΦ.a(898)] }) }, [896]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(897), p: [__RΦ.a(865), __RΦ.a(385)] }) }, [897]: { LΦ: t => Object }, [865]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(862), p: [__RΦ.a(524)] }) }, [862]: { TΦ: "5", name: "toXMLContext" }, [898]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(899), p: [__RΦ.a(524)] }) }, [899]: { LΦ: t => Object }, [1076]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(1066), p: [__RΦ.a(1074), __RΦ.a(1075)] }) }, [1066]: { LΦ: t => Map }, [1074]: { LΦ: t => Object }, [1075]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(212), p: [__RΦ.a(524)] }) }, [608]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(603), p: [__RΦ.a(607), __RΦ.a(524)] }) }, [866]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(603), p: [__RΦ.a(865), __RΦ.a(109)] }) }, [1817]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(10), __RΦ.a(1816)] }) }, [1816]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(503), p: [__RΦ.a(1623)] }) }, [1623]: { LΦ: t => Object }, [1644]: { RΦ: t => ({ TΦ: "O", m: [{ n: "__call", f: "", t: __RΦ.a(4) }] }) }, [1634]: { RΦ: t => ({ TΦ: "O", m: [{ n: "__call", f: "", t: __RΦ.a(4) }] }) } } };
16
+ }, t: { [1368]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(212), p: [__RΦ.a(1339)] }) }, [212]: { TΦ: "5", name: "XMLModelPropertyOptions" }, [1339]: { LΦ: t => Object }, [1372]: { LΦ: t => Object }, [491]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(212), p: [__RΦ.a(373)] }) }, [373]: { LΦ: t => Object }, [105]: { RΦ: t => ({ TΦ: "[", e: __RΦ.a(103) }) }, [103]: { LΦ: t => LΦ_0.IΦXMLElement }, [494]: { LΦ: t => Object }, [495]: { LΦ: t => LΦ_1.ReflectedProperty }, [13]: { LΦ: t => String }, [20]: { LΦ: t => Boolean }, [503]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(500), p: [__RΦ.a(1)] }) }, [500]: { LΦ: t => LΦ_2.XMLModel }, [1]: { RΦ: t => ({ TΦ: "~" }) }, [355]: { RΦ: t => ({ TΦ: "F", r: __RΦ.a(20), p: [{ n: "element", t: () => __RΦ.a(103), v: null }, { n: "context", t: () => __RΦ.a(397), v: null }], f: "" }) }, [397]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(398), p: [__RΦ.a(375), __RΦ.a(376)] }) }, [398]: { LΦ: t => Object }, [375]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(372), p: [__RΦ.a(213)] }) }, [372]: { TΦ: "5", name: "PropertyFromXMLContext" }, [213]: { LΦ: t => Object }, [376]: { LΦ: t => "elements" }, [1219]: { RΦ: t => ({ TΦ: "F", r: __RΦ.a(105), p: [{ n: "context", t: () => __RΦ.a(397), v: null }], f: "" }) }, [1221]: { RΦ: t => ({ TΦ: "F", r: __RΦ.a(1334), p: [{ n: "context", t: () => __RΦ.a(375), v: null }], f: "" }) }, [1334]: { LΦ: t => Object }, [1223]: { RΦ: t => ({ TΦ: "F", r: __RΦ.a(109), p: [{ n: "context", t: () => __RΦ.a(1341), v: null }], f: "" }) }, [109]: { RΦ: t => ({ TΦ: "O", m: [{ n: "elements", f: "", t: __RΦ.a(105) }] }) }, [1341]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(1338), p: [__RΦ.a(213)] }) }, [1338]: { TΦ: "5", name: "PropertyToXMLContext" }, [1382]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(13), __RΦ.a(74), __RΦ.a(1381)] }) }, [74]: { LΦ: t => RegExp }, [1381]: { RΦ: t => ({ TΦ: "O", m: [{ n: "__call", f: "", t: __RΦ.a(4) }] }) }, [4]: { RΦ: t => ({ TΦ: "~" }) }, [1275]: { RΦ: t => ({ TΦ: "O", m: [{ n: "__call", f: "", t: __RΦ.a(4) }] }) }, [1344]: { RΦ: t => ({ TΦ: "O", m: [{ n: "__call", f: "", t: __RΦ.a(4) }] }) }, [1297]: { RΦ: t => ({ TΦ: "O", m: [{ n: "__call", f: "", t: __RΦ.a(4) }] }) }, [504]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(10), __RΦ.a(503)] }) }, [10]: { RΦ: t => ({ TΦ: "u" }) }, [608]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(12), __RΦ.a(600)] }) }, [12]: { RΦ: t => ({ TΦ: "n" }) }, [600]: { TΦ: "5", name: "ConversionOptions" }, [611]: { RΦ: t => ({ TΦ: "[", e: __RΦ.a(610) }) }, [610]: { RΦ: t => ({ TΦ: "O", m: [{ n: "__call", f: "", t: __RΦ.a(4) }] }) }, [654]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(655), p: [__RΦ.a(379)] }) }, [655]: { LΦ: t => Object }, [379]: { LΦ: t => Object }, [517]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(500), p: [__RΦ.a(379)] }) }, [859]: { LΦ: t => Object }, [886]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(887), p: [__RΦ.a(859)] }) }, [887]: { LΦ: t => Object }, [924]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(500), p: [__RΦ.a(859)] }) }, [526]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(500), p: [__RΦ.a(521)] }) }, [521]: { LΦ: t => Object }, [658]: { RΦ: t => ({ TΦ: "O", m: [{ n: "fromXML", f: "", t: __RΦ.a(665) }, { n: "toXML", f: "", t: __RΦ.a(896) }, { n: "options", f: "", t: __RΦ.a(1072) }] }) }, [665]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(600), p: [__RΦ.a(661), __RΦ.a(663)] }) }, [661]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(662), p: [__RΦ.a(604), __RΦ.a(382)] }) }, [662]: { LΦ: t => Object }, [604]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(378), p: [__RΦ.a(521)] }) }, [378]: { TΦ: "5", name: "fromXMLContext" }, [382]: { LΦ: t => "properties" }, [663]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(664), p: [__RΦ.a(521)] }) }, [664]: { LΦ: t => Object }, [896]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(600), p: [__RΦ.a(892), __RΦ.a(894)] }) }, [892]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(893), p: [__RΦ.a(861), __RΦ.a(382)] }) }, [893]: { LΦ: t => Object }, [861]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(858), p: [__RΦ.a(521)] }) }, [858]: { TΦ: "5", name: "toXMLContext" }, [894]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(895), p: [__RΦ.a(521)] }) }, [895]: { LΦ: t => Object }, [1072]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(1062), p: [__RΦ.a(1070), __RΦ.a(1071)] }) }, [1062]: { LΦ: t => Map }, [1070]: { LΦ: t => Object }, [1071]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(212), p: [__RΦ.a(521)] }) }, [605]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(600), p: [__RΦ.a(604), __RΦ.a(521)] }) }, [862]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(600), p: [__RΦ.a(861), __RΦ.a(109)] }) }, [1813]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(10), __RΦ.a(1812)] }) }, [1812]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(500), p: [__RΦ.a(1619)] }) }, [1619]: { LΦ: t => Object }, [1640]: { RΦ: t => ({ TΦ: "O", m: [{ n: "__call", f: "", t: __RΦ.a(4) }] }) }, [1630]: { RΦ: t => ({ TΦ: "O", m: [{ n: "__call", f: "", t: __RΦ.a(4) }] }) } } };
17
17
  var IΦPropertyToXMLContext = { name: "PropertyToXMLContext", prototype: {}, identity: Symbol("PropertyToXMLContext (interface)") };
18
18
  export { IΦPropertyToXMLContext };
19
- (t => __RΦ.t[1342] = t)(IΦPropertyToXMLContext);
19
+ (t => __RΦ.t[1338] = t)(IΦPropertyToXMLContext);
20
20
  __RΦ.m("rt:P", ["property", "value"])(IΦPropertyToXMLContext);
21
21
  __RΦ.m("rt:m", [])(IΦPropertyToXMLContext);
22
22
  __RΦ.m("rt:i", [() => IΦOmit])(IΦPropertyToXMLContext);
23
23
  __RΦ.m("rt:f", "Ie")(IΦPropertyToXMLContext);
24
- __RΦ.m("rt:t", () => __RΦ.a(1372))(IΦPropertyToXMLContext.prototype, "property");
24
+ __RΦ.m("rt:t", () => __RΦ.a(1368))(IΦPropertyToXMLContext.prototype, "property");
25
25
  __RΦ.m("rt:f", "P")(IΦPropertyToXMLContext.prototype, "property");
26
- __RΦ.m("rt:t", () => __RΦ.a(1376))(IΦPropertyToXMLContext.prototype, "value");
26
+ __RΦ.m("rt:t", () => __RΦ.a(1372))(IΦPropertyToXMLContext.prototype, "value");
27
27
  __RΦ.m("rt:f", "P")(IΦPropertyToXMLContext.prototype, "value");
28
- __RΦ.m("rt:t", () => __RΦ.a(1372))(IΦPropertyToXMLContext.prototype, "property");
28
+ __RΦ.m("rt:t", () => __RΦ.a(1368))(IΦPropertyToXMLContext.prototype, "property");
29
29
  __RΦ.m("rt:f", "P")(IΦPropertyToXMLContext.prototype, "property");
30
- __RΦ.m("rt:t", () => __RΦ.a(1376))(IΦPropertyToXMLContext.prototype, "value");
30
+ __RΦ.m("rt:t", () => __RΦ.a(1372))(IΦPropertyToXMLContext.prototype, "value");
31
31
  __RΦ.m("rt:f", "P")(IΦPropertyToXMLContext.prototype, "value");
32
32
  import * as LΦ_0 from "../types";
33
33
  var IΦPropertyFromXMLContext = { name: "PropertyFromXMLContext", prototype: {}, identity: Symbol("PropertyFromXMLContext (interface)") };
34
34
  export { IΦPropertyFromXMLContext };
35
- (t => __RΦ.t[375] = t)(IΦPropertyFromXMLContext);
35
+ (t => __RΦ.t[372] = t)(IΦPropertyFromXMLContext);
36
36
  __RΦ.m("rt:P", ["property", "elements"])(IΦPropertyFromXMLContext);
37
37
  __RΦ.m("rt:m", [])(IΦPropertyFromXMLContext);
38
38
  __RΦ.m("rt:i", [() => IΦOmit])(IΦPropertyFromXMLContext);
39
39
  __RΦ.m("rt:f", "Ie")(IΦPropertyFromXMLContext);
40
- __RΦ.m("rt:t", () => __RΦ.a(494))(IΦPropertyFromXMLContext.prototype, "property");
40
+ __RΦ.m("rt:t", () => __RΦ.a(491))(IΦPropertyFromXMLContext.prototype, "property");
41
41
  __RΦ.m("rt:f", "P")(IΦPropertyFromXMLContext.prototype, "property");
42
42
  __RΦ.m("rt:t", () => __RΦ.a(105))(IΦPropertyFromXMLContext.prototype, "elements");
43
43
  __RΦ.m("rt:f", "P")(IΦPropertyFromXMLContext.prototype, "elements");
44
- __RΦ.m("rt:t", () => __RΦ.a(494))(IΦPropertyFromXMLContext.prototype, "property");
44
+ __RΦ.m("rt:t", () => __RΦ.a(491))(IΦPropertyFromXMLContext.prototype, "property");
45
45
  __RΦ.m("rt:f", "P")(IΦPropertyFromXMLContext.prototype, "property");
46
46
  __RΦ.m("rt:t", () => __RΦ.a(105))(IΦPropertyFromXMLContext.prototype, "elements");
47
47
  __RΦ.m("rt:f", "P")(IΦPropertyFromXMLContext.prototype, "elements");
@@ -53,9 +53,9 @@ export { IΦXMLModelPropertyOptions };
53
53
  __RΦ.m("rt:P", ["name", "reflected", "tagname", "ignored", "inline", "model", "isSourceElement", "resolveElements", "fromXML", "toXML"])(IΦXMLModelPropertyOptions);
54
54
  __RΦ.m("rt:m", [])(IΦXMLModelPropertyOptions);
55
55
  __RΦ.m("rt:f", "Ie")(IΦXMLModelPropertyOptions);
56
- __RΦ.m("rt:t", () => __RΦ.a(497))(IΦXMLModelPropertyOptions.prototype, "name");
56
+ __RΦ.m("rt:t", () => __RΦ.a(494))(IΦXMLModelPropertyOptions.prototype, "name");
57
57
  __RΦ.m("rt:f", "P")(IΦXMLModelPropertyOptions.prototype, "name");
58
- __RΦ.m("rt:t", () => __RΦ.a(498))(IΦXMLModelPropertyOptions.prototype, "reflected");
58
+ __RΦ.m("rt:t", () => __RΦ.a(495))(IΦXMLModelPropertyOptions.prototype, "reflected");
59
59
  __RΦ.m("rt:f", "P")(IΦXMLModelPropertyOptions.prototype, "reflected");
60
60
  __RΦ.m("rt:t", () => __RΦ.a(13))(IΦXMLModelPropertyOptions.prototype, "tagname");
61
61
  __RΦ.m("rt:f", "P")(IΦXMLModelPropertyOptions.prototype, "tagname");
@@ -63,19 +63,19 @@ __RΦ.m("rt:t", () => __RΦ.a(20))(IΦXMLModelPropertyOptions.prototype, "ignore
63
63
  __RΦ.m("rt:f", "P")(IΦXMLModelPropertyOptions.prototype, "ignored");
64
64
  __RΦ.m("rt:t", () => __RΦ.a(20))(IΦXMLModelPropertyOptions.prototype, "inline");
65
65
  __RΦ.m("rt:f", "P")(IΦXMLModelPropertyOptions.prototype, "inline");
66
- __RΦ.m("rt:t", () => __RΦ.a(506))(IΦXMLModelPropertyOptions.prototype, "model");
66
+ __RΦ.m("rt:t", () => __RΦ.a(503))(IΦXMLModelPropertyOptions.prototype, "model");
67
67
  __RΦ.m("rt:f", "P?")(IΦXMLModelPropertyOptions.prototype, "model");
68
- __RΦ.m("rt:t", () => __RΦ.a(358))(IΦXMLModelPropertyOptions.prototype, "isSourceElement");
68
+ __RΦ.m("rt:t", () => __RΦ.a(355))(IΦXMLModelPropertyOptions.prototype, "isSourceElement");
69
69
  __RΦ.m("rt:f", "P")(IΦXMLModelPropertyOptions.prototype, "isSourceElement");
70
- __RΦ.m("rt:t", () => __RΦ.a(1223))(IΦXMLModelPropertyOptions.prototype, "resolveElements");
70
+ __RΦ.m("rt:t", () => __RΦ.a(1219))(IΦXMLModelPropertyOptions.prototype, "resolveElements");
71
71
  __RΦ.m("rt:f", "P")(IΦXMLModelPropertyOptions.prototype, "resolveElements");
72
- __RΦ.m("rt:t", () => __RΦ.a(1225))(IΦXMLModelPropertyOptions.prototype, "fromXML");
72
+ __RΦ.m("rt:t", () => __RΦ.a(1221))(IΦXMLModelPropertyOptions.prototype, "fromXML");
73
73
  __RΦ.m("rt:f", "P")(IΦXMLModelPropertyOptions.prototype, "fromXML");
74
- __RΦ.m("rt:t", () => __RΦ.a(1227))(IΦXMLModelPropertyOptions.prototype, "toXML");
74
+ __RΦ.m("rt:t", () => __RΦ.a(1223))(IΦXMLModelPropertyOptions.prototype, "toXML");
75
75
  __RΦ.m("rt:f", "P")(IΦXMLModelPropertyOptions.prototype, "toXML");
76
- __RΦ.m("rt:t", () => __RΦ.a(497))(IΦXMLModelPropertyOptions.prototype, "name");
76
+ __RΦ.m("rt:t", () => __RΦ.a(494))(IΦXMLModelPropertyOptions.prototype, "name");
77
77
  __RΦ.m("rt:f", "P")(IΦXMLModelPropertyOptions.prototype, "name");
78
- __RΦ.m("rt:t", () => __RΦ.a(498))(IΦXMLModelPropertyOptions.prototype, "reflected");
78
+ __RΦ.m("rt:t", () => __RΦ.a(495))(IΦXMLModelPropertyOptions.prototype, "reflected");
79
79
  __RΦ.m("rt:f", "P")(IΦXMLModelPropertyOptions.prototype, "reflected");
80
80
  __RΦ.m("rt:t", () => __RΦ.a(13))(IΦXMLModelPropertyOptions.prototype, "tagname");
81
81
  __RΦ.m("rt:f", "P")(IΦXMLModelPropertyOptions.prototype, "tagname");
@@ -83,15 +83,15 @@ __RΦ.m("rt:t", () => __RΦ.a(20))(IΦXMLModelPropertyOptions.prototype, "ignore
83
83
  __RΦ.m("rt:f", "P")(IΦXMLModelPropertyOptions.prototype, "ignored");
84
84
  __RΦ.m("rt:t", () => __RΦ.a(20))(IΦXMLModelPropertyOptions.prototype, "inline");
85
85
  __RΦ.m("rt:f", "P")(IΦXMLModelPropertyOptions.prototype, "inline");
86
- __RΦ.m("rt:t", () => __RΦ.a(506))(IΦXMLModelPropertyOptions.prototype, "model");
86
+ __RΦ.m("rt:t", () => __RΦ.a(503))(IΦXMLModelPropertyOptions.prototype, "model");
87
87
  __RΦ.m("rt:f", "P?")(IΦXMLModelPropertyOptions.prototype, "model");
88
- __RΦ.m("rt:t", () => __RΦ.a(358))(IΦXMLModelPropertyOptions.prototype, "isSourceElement");
88
+ __RΦ.m("rt:t", () => __RΦ.a(355))(IΦXMLModelPropertyOptions.prototype, "isSourceElement");
89
89
  __RΦ.m("rt:f", "P")(IΦXMLModelPropertyOptions.prototype, "isSourceElement");
90
- __RΦ.m("rt:t", () => __RΦ.a(1223))(IΦXMLModelPropertyOptions.prototype, "resolveElements");
90
+ __RΦ.m("rt:t", () => __RΦ.a(1219))(IΦXMLModelPropertyOptions.prototype, "resolveElements");
91
91
  __RΦ.m("rt:f", "P")(IΦXMLModelPropertyOptions.prototype, "resolveElements");
92
- __RΦ.m("rt:t", () => __RΦ.a(1225))(IΦXMLModelPropertyOptions.prototype, "fromXML");
92
+ __RΦ.m("rt:t", () => __RΦ.a(1221))(IΦXMLModelPropertyOptions.prototype, "fromXML");
93
93
  __RΦ.m("rt:f", "P")(IΦXMLModelPropertyOptions.prototype, "fromXML");
94
- __RΦ.m("rt:t", () => __RΦ.a(1227))(IΦXMLModelPropertyOptions.prototype, "toXML");
94
+ __RΦ.m("rt:t", () => __RΦ.a(1223))(IΦXMLModelPropertyOptions.prototype, "toXML");
95
95
  __RΦ.m("rt:f", "P")(IΦXMLModelPropertyOptions.prototype, "toXML");
96
96
  var IΦCreateXMLModelPropertyOptions = { name: "CreateXMLModelPropertyOptions", prototype: {}, identity: Symbol("CreateXMLModelPropertyOptions (interface)") };
97
97
  export { IΦCreateXMLModelPropertyOptions };
@@ -101,130 +101,130 @@ __RΦ.m("rt:m", [])(IΦCreateXMLModelPropertyOptions);
101
101
  __RΦ.m("rt:f", "Ie")(IΦCreateXMLModelPropertyOptions);
102
102
  __RΦ.m("rt:t", () => __RΦ.a(13))(IΦCreateXMLModelPropertyOptions.prototype, "tagname");
103
103
  __RΦ.m("rt:f", "P?")(IΦCreateXMLModelPropertyOptions.prototype, "tagname");
104
- __RΦ.m("rt:t", () => __RΦ.a(1386))(IΦCreateXMLModelPropertyOptions.prototype, "sourceElements");
104
+ __RΦ.m("rt:t", () => __RΦ.a(1382))(IΦCreateXMLModelPropertyOptions.prototype, "sourceElements");
105
105
  __RΦ.m("rt:f", "P?")(IΦCreateXMLModelPropertyOptions.prototype, "sourceElements");
106
- __RΦ.m("rt:t", () => __RΦ.a(1279))(IΦCreateXMLModelPropertyOptions.prototype, "resolveElements");
106
+ __RΦ.m("rt:t", () => __RΦ.a(1275))(IΦCreateXMLModelPropertyOptions.prototype, "resolveElements");
107
107
  __RΦ.m("rt:f", "P?")(IΦCreateXMLModelPropertyOptions.prototype, "resolveElements");
108
- __RΦ.m("rt:t", () => __RΦ.a(1348))(IΦCreateXMLModelPropertyOptions.prototype, "toXML");
108
+ __RΦ.m("rt:t", () => __RΦ.a(1344))(IΦCreateXMLModelPropertyOptions.prototype, "toXML");
109
109
  __RΦ.m("rt:f", "P?")(IΦCreateXMLModelPropertyOptions.prototype, "toXML");
110
- __RΦ.m("rt:t", () => __RΦ.a(1301))(IΦCreateXMLModelPropertyOptions.prototype, "fromXML");
110
+ __RΦ.m("rt:t", () => __RΦ.a(1297))(IΦCreateXMLModelPropertyOptions.prototype, "fromXML");
111
111
  __RΦ.m("rt:f", "P?")(IΦCreateXMLModelPropertyOptions.prototype, "fromXML");
112
112
  __RΦ.m("rt:t", () => __RΦ.a(20))(IΦCreateXMLModelPropertyOptions.prototype, "inline");
113
113
  __RΦ.m("rt:f", "P?")(IΦCreateXMLModelPropertyOptions.prototype, "inline");
114
114
  __RΦ.m("rt:t", () => __RΦ.a(20))(IΦCreateXMLModelPropertyOptions.prototype, "ignore");
115
115
  __RΦ.m("rt:f", "P?")(IΦCreateXMLModelPropertyOptions.prototype, "ignore");
116
- __RΦ.m("rt:t", () => __RΦ.a(507))(IΦCreateXMLModelPropertyOptions.prototype, "model");
116
+ __RΦ.m("rt:t", () => __RΦ.a(504))(IΦCreateXMLModelPropertyOptions.prototype, "model");
117
117
  __RΦ.m("rt:f", "P?")(IΦCreateXMLModelPropertyOptions.prototype, "model");
118
118
  __RΦ.m("rt:t", () => __RΦ.a(13))(IΦCreateXMLModelPropertyOptions.prototype, "tagname");
119
119
  __RΦ.m("rt:f", "P?")(IΦCreateXMLModelPropertyOptions.prototype, "tagname");
120
- __RΦ.m("rt:t", () => __RΦ.a(1386))(IΦCreateXMLModelPropertyOptions.prototype, "sourceElements");
120
+ __RΦ.m("rt:t", () => __RΦ.a(1382))(IΦCreateXMLModelPropertyOptions.prototype, "sourceElements");
121
121
  __RΦ.m("rt:f", "P?")(IΦCreateXMLModelPropertyOptions.prototype, "sourceElements");
122
- __RΦ.m("rt:t", () => __RΦ.a(1279))(IΦCreateXMLModelPropertyOptions.prototype, "resolveElements");
122
+ __RΦ.m("rt:t", () => __RΦ.a(1275))(IΦCreateXMLModelPropertyOptions.prototype, "resolveElements");
123
123
  __RΦ.m("rt:f", "P?")(IΦCreateXMLModelPropertyOptions.prototype, "resolveElements");
124
- __RΦ.m("rt:t", () => __RΦ.a(1348))(IΦCreateXMLModelPropertyOptions.prototype, "toXML");
124
+ __RΦ.m("rt:t", () => __RΦ.a(1344))(IΦCreateXMLModelPropertyOptions.prototype, "toXML");
125
125
  __RΦ.m("rt:f", "P?")(IΦCreateXMLModelPropertyOptions.prototype, "toXML");
126
- __RΦ.m("rt:t", () => __RΦ.a(1301))(IΦCreateXMLModelPropertyOptions.prototype, "fromXML");
126
+ __RΦ.m("rt:t", () => __RΦ.a(1297))(IΦCreateXMLModelPropertyOptions.prototype, "fromXML");
127
127
  __RΦ.m("rt:f", "P?")(IΦCreateXMLModelPropertyOptions.prototype, "fromXML");
128
128
  __RΦ.m("rt:t", () => __RΦ.a(20))(IΦCreateXMLModelPropertyOptions.prototype, "inline");
129
129
  __RΦ.m("rt:f", "P?")(IΦCreateXMLModelPropertyOptions.prototype, "inline");
130
130
  __RΦ.m("rt:t", () => __RΦ.a(20))(IΦCreateXMLModelPropertyOptions.prototype, "ignore");
131
131
  __RΦ.m("rt:f", "P?")(IΦCreateXMLModelPropertyOptions.prototype, "ignore");
132
- __RΦ.m("rt:t", () => __RΦ.a(507))(IΦCreateXMLModelPropertyOptions.prototype, "model");
132
+ __RΦ.m("rt:t", () => __RΦ.a(504))(IΦCreateXMLModelPropertyOptions.prototype, "model");
133
133
  __RΦ.m("rt:f", "P?")(IΦCreateXMLModelPropertyOptions.prototype, "model");
134
134
  var IΦConversionOptions = { name: "ConversionOptions", prototype: {}, identity: Symbol("ConversionOptions (interface)") };
135
- (t => __RΦ.t[603] = t)(IΦConversionOptions);
135
+ (t => __RΦ.t[600] = t)(IΦConversionOptions);
136
136
  __RΦ.m("rt:P", ["parent", "middlewares"])(IΦConversionOptions);
137
137
  __RΦ.m("rt:m", [])(IΦConversionOptions);
138
138
  __RΦ.m("rt:f", "I")(IΦConversionOptions);
139
- __RΦ.m("rt:t", () => __RΦ.a(611))(IΦConversionOptions.prototype, "parent");
139
+ __RΦ.m("rt:t", () => __RΦ.a(608))(IΦConversionOptions.prototype, "parent");
140
140
  __RΦ.m("rt:f", "P")(IΦConversionOptions.prototype, "parent");
141
- __RΦ.m("rt:t", () => __RΦ.a(614))(IΦConversionOptions.prototype, "middlewares");
141
+ __RΦ.m("rt:t", () => __RΦ.a(611))(IΦConversionOptions.prototype, "middlewares");
142
142
  __RΦ.m("rt:f", "P")(IΦConversionOptions.prototype, "middlewares");
143
- __RΦ.m("rt:t", () => __RΦ.a(611))(IΦConversionOptions.prototype, "parent");
143
+ __RΦ.m("rt:t", () => __RΦ.a(608))(IΦConversionOptions.prototype, "parent");
144
144
  __RΦ.m("rt:f", "P")(IΦConversionOptions.prototype, "parent");
145
- __RΦ.m("rt:t", () => __RΦ.a(614))(IΦConversionOptions.prototype, "middlewares");
145
+ __RΦ.m("rt:t", () => __RΦ.a(611))(IΦConversionOptions.prototype, "middlewares");
146
146
  __RΦ.m("rt:f", "P")(IΦConversionOptions.prototype, "middlewares");
147
147
  var IΦfromXMLContext = { name: "fromXMLContext", prototype: {}, identity: Symbol("fromXMLContext (interface)") };
148
148
  export { IΦfromXMLContext };
149
- (t => __RΦ.t[381] = t)(IΦfromXMLContext);
149
+ (t => __RΦ.t[378] = t)(IΦfromXMLContext);
150
150
  __RΦ.m("rt:P", ["xml", "properties", "model"])(IΦfromXMLContext);
151
151
  __RΦ.m("rt:m", [])(IΦfromXMLContext);
152
152
  __RΦ.m("rt:f", "Ie")(IΦfromXMLContext);
153
153
  __RΦ.m("rt:t", () => __RΦ.a(109))(IΦfromXMLContext.prototype, "xml");
154
154
  __RΦ.m("rt:f", "P")(IΦfromXMLContext.prototype, "xml");
155
- __RΦ.m("rt:t", () => __RΦ.a(657))(IΦfromXMLContext.prototype, "properties");
155
+ __RΦ.m("rt:t", () => __RΦ.a(654))(IΦfromXMLContext.prototype, "properties");
156
156
  __RΦ.m("rt:f", "P")(IΦfromXMLContext.prototype, "properties");
157
- __RΦ.m("rt:t", () => __RΦ.a(520))(IΦfromXMLContext.prototype, "model");
157
+ __RΦ.m("rt:t", () => __RΦ.a(517))(IΦfromXMLContext.prototype, "model");
158
158
  __RΦ.m("rt:f", "P")(IΦfromXMLContext.prototype, "model");
159
159
  __RΦ.m("rt:t", () => __RΦ.a(109))(IΦfromXMLContext.prototype, "xml");
160
160
  __RΦ.m("rt:f", "P")(IΦfromXMLContext.prototype, "xml");
161
- __RΦ.m("rt:t", () => __RΦ.a(657))(IΦfromXMLContext.prototype, "properties");
161
+ __RΦ.m("rt:t", () => __RΦ.a(654))(IΦfromXMLContext.prototype, "properties");
162
162
  __RΦ.m("rt:f", "P")(IΦfromXMLContext.prototype, "properties");
163
- __RΦ.m("rt:t", () => __RΦ.a(520))(IΦfromXMLContext.prototype, "model");
163
+ __RΦ.m("rt:t", () => __RΦ.a(517))(IΦfromXMLContext.prototype, "model");
164
164
  __RΦ.m("rt:f", "P")(IΦfromXMLContext.prototype, "model");
165
165
  var IΦtoXMLContext = { name: "toXMLContext", prototype: {}, identity: Symbol("toXMLContext (interface)") };
166
166
  export { IΦtoXMLContext };
167
- (t => __RΦ.t[862] = t)(IΦtoXMLContext);
167
+ (t => __RΦ.t[858] = t)(IΦtoXMLContext);
168
168
  __RΦ.m("rt:P", ["object", "properties", "model"])(IΦtoXMLContext);
169
169
  __RΦ.m("rt:m", [])(IΦtoXMLContext);
170
170
  __RΦ.m("rt:f", "Ie")(IΦtoXMLContext);
171
- __RΦ.m("rt:t", () => __RΦ.a(863))(IΦtoXMLContext.prototype, "object");
171
+ __RΦ.m("rt:t", () => __RΦ.a(859))(IΦtoXMLContext.prototype, "object");
172
172
  __RΦ.m("rt:f", "P")(IΦtoXMLContext.prototype, "object");
173
- __RΦ.m("rt:t", () => __RΦ.a(890))(IΦtoXMLContext.prototype, "properties");
173
+ __RΦ.m("rt:t", () => __RΦ.a(886))(IΦtoXMLContext.prototype, "properties");
174
174
  __RΦ.m("rt:f", "P")(IΦtoXMLContext.prototype, "properties");
175
- __RΦ.m("rt:t", () => __RΦ.a(928))(IΦtoXMLContext.prototype, "model");
175
+ __RΦ.m("rt:t", () => __RΦ.a(924))(IΦtoXMLContext.prototype, "model");
176
176
  __RΦ.m("rt:f", "P")(IΦtoXMLContext.prototype, "model");
177
- __RΦ.m("rt:t", () => __RΦ.a(863))(IΦtoXMLContext.prototype, "object");
177
+ __RΦ.m("rt:t", () => __RΦ.a(859))(IΦtoXMLContext.prototype, "object");
178
178
  __RΦ.m("rt:f", "P")(IΦtoXMLContext.prototype, "object");
179
- __RΦ.m("rt:t", () => __RΦ.a(890))(IΦtoXMLContext.prototype, "properties");
179
+ __RΦ.m("rt:t", () => __RΦ.a(886))(IΦtoXMLContext.prototype, "properties");
180
180
  __RΦ.m("rt:f", "P")(IΦtoXMLContext.prototype, "properties");
181
- __RΦ.m("rt:t", () => __RΦ.a(928))(IΦtoXMLContext.prototype, "model");
181
+ __RΦ.m("rt:t", () => __RΦ.a(924))(IΦtoXMLContext.prototype, "model");
182
182
  __RΦ.m("rt:f", "P")(IΦtoXMLContext.prototype, "model");
183
183
  var IΦXMLModelOptions = { name: "XMLModelOptions", prototype: {}, identity: Symbol("XMLModelOptions (interface)") };
184
184
  export { IΦXMLModelOptions };
185
- (t => __RΦ.t[523] = t)(IΦXMLModelOptions);
185
+ (t => __RΦ.t[520] = t)(IΦXMLModelOptions);
186
186
  __RΦ.m("rt:P", ["parent", "properties", "fromXML", "toXML", "tagname"])(IΦXMLModelOptions);
187
187
  __RΦ.m("rt:m", [])(IΦXMLModelOptions);
188
188
  __RΦ.m("rt:f", "Ie")(IΦXMLModelOptions);
189
- __RΦ.m("rt:t", () => __RΦ.a(529))(IΦXMLModelOptions.prototype, "parent");
189
+ __RΦ.m("rt:t", () => __RΦ.a(526))(IΦXMLModelOptions.prototype, "parent");
190
190
  __RΦ.m("rt:f", "P?")(IΦXMLModelOptions.prototype, "parent");
191
- __RΦ.m("rt:t", () => __RΦ.a(661))(IΦXMLModelOptions.prototype, "properties");
191
+ __RΦ.m("rt:t", () => __RΦ.a(658))(IΦXMLModelOptions.prototype, "properties");
192
192
  __RΦ.m("rt:f", "P")(IΦXMLModelOptions.prototype, "properties");
193
- __RΦ.m("rt:t", () => __RΦ.a(608))(IΦXMLModelOptions.prototype, "fromXML");
193
+ __RΦ.m("rt:t", () => __RΦ.a(605))(IΦXMLModelOptions.prototype, "fromXML");
194
194
  __RΦ.m("rt:f", "P")(IΦXMLModelOptions.prototype, "fromXML");
195
- __RΦ.m("rt:t", () => __RΦ.a(866))(IΦXMLModelOptions.prototype, "toXML");
195
+ __RΦ.m("rt:t", () => __RΦ.a(862))(IΦXMLModelOptions.prototype, "toXML");
196
196
  __RΦ.m("rt:f", "P")(IΦXMLModelOptions.prototype, "toXML");
197
197
  __RΦ.m("rt:t", () => __RΦ.a(13))(IΦXMLModelOptions.prototype, "tagname");
198
198
  __RΦ.m("rt:f", "P")(IΦXMLModelOptions.prototype, "tagname");
199
- __RΦ.m("rt:t", () => __RΦ.a(529))(IΦXMLModelOptions.prototype, "parent");
199
+ __RΦ.m("rt:t", () => __RΦ.a(526))(IΦXMLModelOptions.prototype, "parent");
200
200
  __RΦ.m("rt:f", "P?")(IΦXMLModelOptions.prototype, "parent");
201
- __RΦ.m("rt:t", () => __RΦ.a(661))(IΦXMLModelOptions.prototype, "properties");
201
+ __RΦ.m("rt:t", () => __RΦ.a(658))(IΦXMLModelOptions.prototype, "properties");
202
202
  __RΦ.m("rt:f", "P")(IΦXMLModelOptions.prototype, "properties");
203
- __RΦ.m("rt:t", () => __RΦ.a(608))(IΦXMLModelOptions.prototype, "fromXML");
203
+ __RΦ.m("rt:t", () => __RΦ.a(605))(IΦXMLModelOptions.prototype, "fromXML");
204
204
  __RΦ.m("rt:f", "P")(IΦXMLModelOptions.prototype, "fromXML");
205
- __RΦ.m("rt:t", () => __RΦ.a(866))(IΦXMLModelOptions.prototype, "toXML");
205
+ __RΦ.m("rt:t", () => __RΦ.a(862))(IΦXMLModelOptions.prototype, "toXML");
206
206
  __RΦ.m("rt:f", "P")(IΦXMLModelOptions.prototype, "toXML");
207
207
  __RΦ.m("rt:t", () => __RΦ.a(13))(IΦXMLModelOptions.prototype, "tagname");
208
208
  __RΦ.m("rt:f", "P")(IΦXMLModelOptions.prototype, "tagname");
209
209
  var IΦCreateXMLModelOptions = { name: "CreateXMLModelOptions", prototype: {}, identity: Symbol("CreateXMLModelOptions (interface)") };
210
210
  export { IΦCreateXMLModelOptions };
211
- (t => __RΦ.t[1622] = t)(IΦCreateXMLModelOptions);
211
+ (t => __RΦ.t[1618] = t)(IΦCreateXMLModelOptions);
212
212
  __RΦ.m("rt:P", ["parent", "fromXML", "toXML", "tagname"])(IΦCreateXMLModelOptions);
213
213
  __RΦ.m("rt:m", [])(IΦCreateXMLModelOptions);
214
214
  __RΦ.m("rt:f", "Ie")(IΦCreateXMLModelOptions);
215
- __RΦ.m("rt:t", () => __RΦ.a(1817))(IΦCreateXMLModelOptions.prototype, "parent");
215
+ __RΦ.m("rt:t", () => __RΦ.a(1813))(IΦCreateXMLModelOptions.prototype, "parent");
216
216
  __RΦ.m("rt:f", "P?")(IΦCreateXMLModelOptions.prototype, "parent");
217
- __RΦ.m("rt:t", () => __RΦ.a(1644))(IΦCreateXMLModelOptions.prototype, "fromXML");
217
+ __RΦ.m("rt:t", () => __RΦ.a(1640))(IΦCreateXMLModelOptions.prototype, "fromXML");
218
218
  __RΦ.m("rt:f", "P?")(IΦCreateXMLModelOptions.prototype, "fromXML");
219
- __RΦ.m("rt:t", () => __RΦ.a(1634))(IΦCreateXMLModelOptions.prototype, "toXML");
219
+ __RΦ.m("rt:t", () => __RΦ.a(1630))(IΦCreateXMLModelOptions.prototype, "toXML");
220
220
  __RΦ.m("rt:f", "P?")(IΦCreateXMLModelOptions.prototype, "toXML");
221
221
  __RΦ.m("rt:t", () => __RΦ.a(13))(IΦCreateXMLModelOptions.prototype, "tagname");
222
222
  __RΦ.m("rt:f", "P?")(IΦCreateXMLModelOptions.prototype, "tagname");
223
- __RΦ.m("rt:t", () => __RΦ.a(1817))(IΦCreateXMLModelOptions.prototype, "parent");
223
+ __RΦ.m("rt:t", () => __RΦ.a(1813))(IΦCreateXMLModelOptions.prototype, "parent");
224
224
  __RΦ.m("rt:f", "P?")(IΦCreateXMLModelOptions.prototype, "parent");
225
- __RΦ.m("rt:t", () => __RΦ.a(1644))(IΦCreateXMLModelOptions.prototype, "fromXML");
225
+ __RΦ.m("rt:t", () => __RΦ.a(1640))(IΦCreateXMLModelOptions.prototype, "fromXML");
226
226
  __RΦ.m("rt:f", "P?")(IΦCreateXMLModelOptions.prototype, "fromXML");
227
- __RΦ.m("rt:t", () => __RΦ.a(1634))(IΦCreateXMLModelOptions.prototype, "toXML");
227
+ __RΦ.m("rt:t", () => __RΦ.a(1630))(IΦCreateXMLModelOptions.prototype, "toXML");
228
228
  __RΦ.m("rt:f", "P?")(IΦCreateXMLModelOptions.prototype, "toXML");
229
229
  __RΦ.m("rt:t", () => __RΦ.a(13))(IΦCreateXMLModelOptions.prototype, "tagname");
230
230
  __RΦ.m("rt:f", "P?")(IΦCreateXMLModelOptions.prototype, "tagname");
@@ -27,7 +27,8 @@ __RΦ.m("rt:f", "F")(parse);
27
27
  __RΦ.m("rt:t", () => __RΦ.a(109))(parse);
28
28
  export const stringify = XMLJS.stringify;
29
29
  export function getContent(xml) {
30
- if (xml.elements?.length === 1) {
30
+ var _a;
31
+ if (((_a = xml.elements) === null || _a === void 0 ? void 0 : _a.length) === 1) {
31
32
  const content = xml.elements[0];
32
33
  if (content.type === "text")
33
34
  return content.text;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xml-model",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "main": "build/main/index.js",
5
5
  "typings": "build/main/index.d.ts",
6
6
  "module": "build/module/index.js",