xml-model 0.2.2 → 0.2.5

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.
@@ -19,7 +19,7 @@ const __RΦ = { m: (k, v) => (t, ...a) => t && Reflect.metadata ? Reflect.metada
19
19
  __RΦ.t[id] = t = l;
20
20
  }
21
21
  return t;
22
- }, t: { [13]: { LΦ: t => String }, [109]: { RΦ: t => ({ TΦ: "O", m: [{ n: "elements", f: "", t: __RΦ.a(105) }] }) }, [105]: { RΦ: t => ({ TΦ: "[", e: __RΦ.a(103) }) }, [103]: { LΦ: t => require("../types").IΦXMLElement }, [108]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(10), __RΦ.a(13), __RΦ.a(14), __RΦ.a(17), __RΦ.a(19)] }) }, [10]: { RΦ: t => ({ TΦ: "u" }) }, [14]: { LΦ: t => Number }, [17]: { RΦ: t => ({ TΦ: "0" }) }, [19]: { RΦ: t => ({ TΦ: "1" }) }, [46]: { LΦ: t => "" }, [104]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(10), __RΦ.a(101)] }) }, [101]: { LΦ: t => require("../types").IΦXMLAttributes }, [22]: { RΦ: t => ({ TΦ: "V" }) } } };
22
+ }, t: { [13]: { LΦ: t => String }, [111]: { RΦ: t => ({ TΦ: "O", m: [{ n: "elements", f: "", t: __RΦ.a(107) }] }) }, [107]: { RΦ: t => ({ TΦ: "[", e: __RΦ.a(105) }) }, [105]: { LΦ: t => require("../types").IΦXMLElement }, [110]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(10), __RΦ.a(13), __RΦ.a(14), __RΦ.a(17), __RΦ.a(19)] }) }, [10]: { RΦ: t => ({ TΦ: "u" }) }, [14]: { LΦ: t => Number }, [17]: { RΦ: t => ({ TΦ: "0" }) }, [19]: { RΦ: t => ({ TΦ: "1" }) }, [46]: { LΦ: t => "" }, [106]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(10), __RΦ.a(103)] }) }, [103]: { LΦ: t => require("../types").IΦXMLAttributes }, [22]: { RΦ: t => ({ TΦ: "V" }) } } };
23
23
  /**
24
24
  * @rtti:skip
25
25
  */
@@ -30,7 +30,7 @@ function parse(string) {
30
30
  exports.parse = parse;
31
31
  __RΦ.m("rt:p", [{ n: "string", t: () => __RΦ.a(13), v: null }])(parse);
32
32
  __RΦ.m("rt:f", "F")(parse);
33
- __RΦ.m("rt:t", () => __RΦ.a(109))(parse);
33
+ __RΦ.m("rt:t", () => __RΦ.a(111))(parse);
34
34
  exports.stringify = xml_js_1.default.stringify;
35
35
  function getContent(xml) {
36
36
  var _a;
@@ -44,9 +44,9 @@ function getContent(xml) {
44
44
  throw new TypeError(`can't get text from XMLElement: ${JSON.stringify(xml)}`);
45
45
  }
46
46
  exports.getContent = getContent;
47
- __RΦ.m("rt:p", [{ n: "xml", t: () => __RΦ.a(103), v: null }])(getContent);
47
+ __RΦ.m("rt:p", [{ n: "xml", t: () => __RΦ.a(105), v: null }])(getContent);
48
48
  __RΦ.m("rt:f", "F")(getContent);
49
- __RΦ.m("rt:t", () => __RΦ.a(108))(getContent);
49
+ __RΦ.m("rt:t", () => __RΦ.a(110))(getContent);
50
50
  function fromContent(content = "", tag, attributes) {
51
51
  const el = {
52
52
  elements: content ? [{ type: "text", text: String(content) }] : [],
@@ -63,16 +63,16 @@ function fromContent(content = "", tag, attributes) {
63
63
  return el;
64
64
  }
65
65
  exports.fromContent = fromContent;
66
- __RΦ.m("rt:p", [{ n: "content", t: () => __RΦ.a(46), v: function () { return ""; } }, { n: "tag", t: () => __RΦ.a(13), v: null, f: "?" }, { n: "attributes", t: () => __RΦ.a(104), v: null, f: "?" }])(fromContent);
66
+ __RΦ.m("rt:p", [{ n: "content", t: () => __RΦ.a(46), v: function () { return ""; } }, { n: "tag", t: () => __RΦ.a(13), v: null, f: "?" }, { n: "attributes", t: () => __RΦ.a(106), v: null, f: "?" }])(fromContent);
67
67
  __RΦ.m("rt:f", "F")(fromContent);
68
- __RΦ.m("rt:t", () => __RΦ.a(103))(fromContent);
68
+ __RΦ.m("rt:t", () => __RΦ.a(105))(fromContent);
69
69
  function addElement(xml, element) {
70
70
  if (!xml.elements)
71
71
  xml.elements = [];
72
72
  xml.elements.push(element);
73
73
  }
74
74
  exports.addElement = addElement;
75
- __RΦ.m("rt:p", [{ n: "xml", t: () => __RΦ.a(103), v: null }, { n: "element", t: () => __RΦ.a(103), v: null }])(addElement);
75
+ __RΦ.m("rt:p", [{ n: "xml", t: () => __RΦ.a(105), v: null }, { n: "element", t: () => __RΦ.a(105), v: null }])(addElement);
76
76
  __RΦ.m("rt:f", "F")(addElement);
77
77
  __RΦ.m("rt:t", () => __RΦ.a(22))(addElement);
78
78
  function setAttribute(xml, attribute, value) {
@@ -81,7 +81,7 @@ function setAttribute(xml, attribute, value) {
81
81
  xml.attributes[attribute] = value;
82
82
  }
83
83
  exports.setAttribute = setAttribute;
84
- __RΦ.m("rt:p", [{ n: "xml", t: () => __RΦ.a(103), v: null }, { n: "attribute", t: () => __RΦ.a(13), v: null }, { n: "value", t: () => __RΦ.a(13), v: null }])(setAttribute);
84
+ __RΦ.m("rt:p", [{ n: "xml", t: () => __RΦ.a(105), v: null }, { n: "attribute", t: () => __RΦ.a(13), v: null }, { n: "value", t: () => __RΦ.a(13), v: null }])(setAttribute);
85
85
  __RΦ.m("rt:f", "F")(setAttribute);
86
86
  __RΦ.m("rt:t", () => __RΦ.a(22))(setAttribute);
87
87
  function deleteAttribute(xml, attribute) {
@@ -90,7 +90,7 @@ function deleteAttribute(xml, attribute) {
90
90
  delete xml.attributes[attribute];
91
91
  }
92
92
  exports.deleteAttribute = deleteAttribute;
93
- __RΦ.m("rt:p", [{ n: "xml", t: () => __RΦ.a(103), v: null }, { n: "attribute", t: () => __RΦ.a(13), v: null }])(deleteAttribute);
93
+ __RΦ.m("rt:p", [{ n: "xml", t: () => __RΦ.a(105), v: null }, { n: "attribute", t: () => __RΦ.a(13), v: null }])(deleteAttribute);
94
94
  __RΦ.m("rt:f", "F")(deleteAttribute);
95
95
  __RΦ.m("rt:t", () => __RΦ.a(22))(deleteAttribute);
96
96
  const XML = {
@@ -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 }, [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 } } };
16
+ }, t: { [4]: { RΦ: t => ({ TΦ: "~" }) }, [111]: { RΦ: t => ({ TΦ: "O", m: [{ n: "elements", f: "", t: __RΦ.a(107) }] }) }, [107]: { RΦ: t => ({ TΦ: "[", e: __RΦ.a(105) }) }, [105]: { LΦ: t => LΦ_0.IΦXMLElement }, [13]: { LΦ: t => String }, [14]: { LΦ: t => Number }, [1696]: { RΦ: t => ({ TΦ: "O", m: [{ n: "elements", f: "", t: __RΦ.a(3124) }] }) }, [3124]: { RΦ: t => ({ TΦ: "[", e: __RΦ.a(3122) }) }, [3122]: { 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";
@@ -23,7 +23,7 @@ createModel(String, {
23
23
  return {
24
24
  elements: [fromContent(ctx.object, "string")],
25
25
  };
26
- }, [__RΦ.m("rt:p", [{ n: "ctx", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(109))], "toXML"),
26
+ }, [__RΦ.m("rt:p", [{ n: "ctx", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(111))], "toXML"),
27
27
  fromXML: __RΦ.f((ctx) => {
28
28
  return String(getContent(ctx.xml.elements[0]));
29
29
  }, [__RΦ.m("rt:p", [{ n: "ctx", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(13))], "fromXML"),
@@ -34,7 +34,7 @@ createModel(Number, {
34
34
  return {
35
35
  elements: [fromContent(String(ctx.object), "number")],
36
36
  };
37
- }, [__RΦ.m("rt:p", [{ n: "ctx", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(109))], "toXML"),
37
+ }, [__RΦ.m("rt:p", [{ n: "ctx", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(111))], "toXML"),
38
38
  fromXML: __RΦ.f((ctx) => {
39
39
  return Number(getContent(ctx.xml.elements[0]));
40
40
  }, [__RΦ.m("rt:p", [{ n: "ctx", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(14))], "fromXML"),
@@ -47,7 +47,7 @@ createModel(Boolean, {
47
47
  Object.assign({ type: "element", name: "boolean" }, fromContent(String(ctx.object))),
48
48
  ],
49
49
  };
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"),
50
+ }, [__RΦ.m("rt:p", [{ n: "ctx", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(1696))], "toXML"),
51
51
  fromXML: __RΦ.f((ctx) => {
52
52
  return Boolean(getContent(ctx.xml.elements[0]));
53
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"),
@@ -17,6 +17,7 @@ const __RΦ = { m: (k, v) => (t, ...a) => t && Reflect.metadata ? Reflect.metada
17
17
  export class XMLConversionError extends Error {
18
18
  constructor(message, origin) {
19
19
  super(message);
20
+ this.name = "XMLConversionError";
20
21
  this.origin = origin;
21
22
  }
22
23
  }
@@ -13,19 +13,19 @@ 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: { [118]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(12), __RΦ.a(115)] }) }, [12]: { RΦ: t => ({ TΦ: "n" }) }, [115]: { TΦ: "5", name: "ChainableOptions" }, [121]: { RΦ: t => ({ TΦ: "[", e: __RΦ.a(120) }) }, [120]: { RΦ: t => ({ TΦ: "O", m: [{ n: "__call", f: "", t: __RΦ.a(4) }] }) }, [4]: { RΦ: t => ({ TΦ: "~" }) }, [124]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(115), p: [__RΦ.a(122), __RΦ.a(123)] }) }, [122]: { LΦ: t => Object }, [123]: { LΦ: t => Object }, [143]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(138), p: [__RΦ.a(125), __RΦ.a(22), __RΦ.a(8)] }) }, [138]: { LΦ: t => Object }, [125]: { RΦ: t => ({ TΦ: "O", m: [{ n: "__call", f: "", t: __RΦ.a(4) }] }) }, [22]: { RΦ: t => ({ TΦ: "V" }) }, [8]: { RΦ: t => ({ TΦ: "U" }) }, [155]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(147), p: [__RΦ.a(158), __RΦ.a(1), __RΦ.a(10)] }) }, [147]: { LΦ: t => Object }, [158]: { RΦ: t => ({ TΦ: "O", m: [{ n: "__call", f: "", t: __RΦ.a(4) }] }) }, [1]: { RΦ: t => ({ TΦ: "~" }) }, [10]: { RΦ: t => ({ TΦ: "u" }) }, [153]: { LΦ: t => Object }, [154]: { LΦ: t => Object } } };
16
+ }, t: { [120]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(12), __RΦ.a(117)] }) }, [12]: { RΦ: t => ({ TΦ: "n" }) }, [117]: { TΦ: "5", name: "ChainableOptions" }, [123]: { RΦ: t => ({ TΦ: "[", e: __RΦ.a(122) }) }, [122]: { RΦ: t => ({ TΦ: "O", m: [{ n: "__call", f: "", t: __RΦ.a(4) }] }) }, [4]: { RΦ: t => ({ TΦ: "~" }) }, [126]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(117), p: [__RΦ.a(124), __RΦ.a(125)] }) }, [124]: { LΦ: t => Object }, [125]: { LΦ: t => Object }, [145]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(140), p: [__RΦ.a(127), __RΦ.a(22), __RΦ.a(8)] }) }, [140]: { LΦ: t => Object }, [127]: { RΦ: t => ({ TΦ: "O", m: [{ n: "__call", f: "", t: __RΦ.a(4) }] }) }, [22]: { RΦ: t => ({ TΦ: "V" }) }, [8]: { RΦ: t => ({ TΦ: "U" }) }, [157]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(149), p: [__RΦ.a(160), __RΦ.a(1), __RΦ.a(10)] }) }, [149]: { LΦ: t => Object }, [160]: { RΦ: t => ({ TΦ: "O", m: [{ n: "__call", f: "", t: __RΦ.a(4) }] }) }, [1]: { RΦ: t => ({ TΦ: "~" }) }, [10]: { RΦ: t => ({ TΦ: "u" }) }, [155]: { LΦ: t => Object }, [156]: { LΦ: t => Object } } };
17
17
  var IΦChainableOptions = { name: "ChainableOptions", prototype: {}, identity: Symbol("ChainableOptions (interface)") };
18
- (t => __RΦ.t[115] = t)(IΦChainableOptions);
18
+ (t => __RΦ.t[117] = t)(IΦChainableOptions);
19
19
  __RΦ.m("rt:P", ["parent", "middlewares"])(IΦChainableOptions);
20
20
  __RΦ.m("rt:m", [])(IΦChainableOptions);
21
21
  __RΦ.m("rt:f", "I")(IΦChainableOptions);
22
- __RΦ.m("rt:t", () => __RΦ.a(118))(IΦChainableOptions.prototype, "parent");
22
+ __RΦ.m("rt:t", () => __RΦ.a(120))(IΦChainableOptions.prototype, "parent");
23
23
  __RΦ.m("rt:f", "P")(IΦChainableOptions.prototype, "parent");
24
- __RΦ.m("rt:t", () => __RΦ.a(121))(IΦChainableOptions.prototype, "middlewares");
24
+ __RΦ.m("rt:t", () => __RΦ.a(123))(IΦChainableOptions.prototype, "middlewares");
25
25
  __RΦ.m("rt:f", "P")(IΦChainableOptions.prototype, "middlewares");
26
- __RΦ.m("rt:t", () => __RΦ.a(118))(IΦChainableOptions.prototype, "parent");
26
+ __RΦ.m("rt:t", () => __RΦ.a(120))(IΦChainableOptions.prototype, "parent");
27
27
  __RΦ.m("rt:f", "P")(IΦChainableOptions.prototype, "parent");
28
- __RΦ.m("rt:t", () => __RΦ.a(121))(IΦChainableOptions.prototype, "middlewares");
28
+ __RΦ.m("rt:t", () => __RΦ.a(123))(IΦChainableOptions.prototype, "middlewares");
29
29
  __RΦ.m("rt:f", "P")(IΦChainableOptions.prototype, "middlewares");
30
30
  export function* MiddlewareChain(options) {
31
31
  do {
@@ -38,9 +38,9 @@ export function* MiddlewareChain(options) {
38
38
  return;
39
39
  } while (true);
40
40
  }
41
- __RΦ.m("rt:p", [{ n: "options", t: () => __RΦ.a(124), v: null }])(MiddlewareChain);
41
+ __RΦ.m("rt:p", [{ n: "options", t: () => __RΦ.a(126), v: null }])(MiddlewareChain);
42
42
  __RΦ.m("rt:f", "F")(MiddlewareChain);
43
- __RΦ.m("rt:t", () => __RΦ.a(143))(MiddlewareChain);
43
+ __RΦ.m("rt:t", () => __RΦ.a(145))(MiddlewareChain);
44
44
  export function resolve(middlewares, context) {
45
45
  const next = __RΦ.f(() => {
46
46
  const { value: nextMiddleware, done } = middlewares.next();
@@ -52,9 +52,9 @@ export function resolve(middlewares, context) {
52
52
  else {
53
53
  return nextMiddleware(context, next);
54
54
  }
55
- }, [__RΦ.m("rt:p", []), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(154))], "next");
55
+ }, [__RΦ.m("rt:p", []), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(156))], "next");
56
56
  return next();
57
57
  }
58
- __RΦ.m("rt:p", [{ n: "middlewares", t: () => __RΦ.a(155), v: null }, { n: "context", t: () => __RΦ.a(153), v: null }])(resolve);
58
+ __RΦ.m("rt:p", [{ n: "middlewares", t: () => __RΦ.a(157), v: null }, { n: "context", t: () => __RΦ.a(155), v: null }])(resolve);
59
59
  __RΦ.m("rt:f", "F")(resolve);
60
- __RΦ.m("rt:t", () => __RΦ.a(154))(resolve);
60
+ __RΦ.m("rt:t", () => __RΦ.a(156))(resolve);
@@ -1,4 +1,3 @@
1
- import "reflect-metadata";
2
1
  import type { Constructor } from "typescript-rtti";
3
2
  import { XMLModelOptions, XMLModelPropertyOptions, CreateXMLModelOptions } from "./types";
4
3
  import { XMLRoot } from "../types";
@@ -13,8 +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: { [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
- import "reflect-metadata";
16
+ }, t: { [532]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(202), p: [__RΦ.a(503)] }) }, [202]: { LΦ: t => LΦ_0.IΦConstructor }, [503]: { LΦ: t => Object }, [1714]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(202), p: [__RΦ.a(8)] }) }, [8]: { RΦ: t => ({ TΦ: "U" }) }, [1717]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(140), p: [__RΦ.a(1714), __RΦ.a(22), __RΦ.a(8)] }) }, [140]: { LΦ: t => Object }, [22]: { RΦ: t => ({ TΦ: "V" }) }, [505]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(502), p: [__RΦ.a(1)] }) }, [502]: { TΦ: "5", name: "XMLModel" }, [1]: { RΦ: t => ({ TΦ: "~" }) }, [1740]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(12), __RΦ.a(505)] }) }, [12]: { RΦ: t => ({ TΦ: "n" }) }, [1749]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(1620), p: [__RΦ.a(503)] }) }, [1620]: { LΦ: t => LΦ_1.IΦCreateXMLModelOptions }, [525]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(522), p: [__RΦ.a(503)] }) }, [522]: { LΦ: t => LΦ_1.IΦXMLModelOptions }, [1773]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(12), __RΦ.a(1328)] }) }, [1328]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(602), p: [__RΦ.a(422), __RΦ.a(1326)] }) }, [602]: { LΦ: t => LΦ_1.IΦConversionOptions }, [422]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(423), p: [__RΦ.a(421), __RΦ.a(384)] }) }, [423]: { LΦ: t => Object }, [421]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(380), p: [__RΦ.a(1)] }) }, [380]: { LΦ: t => LΦ_1.IΦfromXMLContext }, [384]: { LΦ: t => "properties" }, [1326]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(1327), p: [__RΦ.a(1)] }) }, [1327]: { LΦ: t => Object }, [4]: { RΦ: t => ({ TΦ: "~" }) }, [658]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(659), p: [__RΦ.a(503)] }) }, [659]: { LΦ: t => Object }, [1783]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(12), __RΦ.a(1781)] }) }, [1781]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(602), p: [__RΦ.a(1360), __RΦ.a(1779)] }) }, [1360]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(1361), p: [__RΦ.a(1359), __RΦ.a(384)] }) }, [1361]: { LΦ: t => Object }, [1359]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(860), p: [__RΦ.a(1)] }) }, [860]: { LΦ: t => LΦ_1.IΦtoXMLContext }, [1779]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(1780), p: [__RΦ.a(1)] }) }, [1780]: { LΦ: t => Object }, [890]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(891), p: [__RΦ.a(503)] }) }, [891]: { LΦ: t => Object }, [20]: { LΦ: t => Boolean }, [661]: { RΦ: t => ({ TΦ: "O", m: [{ n: "fromXML", f: "", t: __RΦ.a(667) }, { n: "toXML", f: "", t: __RΦ.a(898) }, { n: "options", f: "", t: __RΦ.a(1074) }] }) }, [667]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(602), p: [__RΦ.a(663), __RΦ.a(665)] }) }, [663]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(664), p: [__RΦ.a(606), __RΦ.a(384)] }) }, [664]: { LΦ: t => Object }, [606]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(380), p: [__RΦ.a(523)] }) }, [523]: { LΦ: t => Object }, [665]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(666), p: [__RΦ.a(523)] }) }, [666]: { LΦ: t => Object }, [898]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(602), p: [__RΦ.a(894), __RΦ.a(896)] }) }, [894]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(895), p: [__RΦ.a(863), __RΦ.a(384)] }) }, [895]: { LΦ: t => Object }, [863]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(860), p: [__RΦ.a(523)] }) }, [896]: { RΦ: t => ({ TΦ: "m", t: __RΦ.a(897), p: [__RΦ.a(523)] }) }, [897]: { LΦ: t => Object }, [1074]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(1064), p: [__RΦ.a(1072), __RΦ.a(1073)] }) }, [1064]: { LΦ: t => Map }, [1072]: { LΦ: t => Object }, [1073]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(214), p: [__RΦ.a(523)] }) }, [214]: { LΦ: t => LΦ_1.IΦXMLModelPropertyOptions }, [1799]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(12), __RΦ.a(1797)] }) }, [1797]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(602), p: [__RΦ.a(421), __RΦ.a(1)] }) }, [1804]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(12), __RΦ.a(1802)] }) }, [1802]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(602), p: [__RΦ.a(1359), __RΦ.a(111)] }) }, [111]: { RΦ: t => ({ TΦ: "O", m: [{ n: "elements", f: "", t: __RΦ.a(107) }] }) }, [107]: { RΦ: t => ({ TΦ: "[", e: __RΦ.a(105) }) }, [105]: { LΦ: t => LΦ_2.IΦXMLElement }, [13]: { LΦ: t => String }, [541]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(13), __RΦ.a(111)] }) }, [28]: { LΦ: t => Object }, [948]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(944), p: [__RΦ.a(532)] }) }, [944]: { LΦ: t => LΦ_0.ReflectedClass }, [1069]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(1064), p: [__RΦ.a(13), __RΦ.a(1063)] }) }, [1063]: { RΦ: t => ({ TΦ: "&", t: [__RΦ.a(1061), __RΦ.a(1062)] }) }, [1061]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(214), p: [__RΦ.a(1)] }) }, [1062]: { RΦ: t => ({ TΦ: "O", m: [{ n: "model", f: "", t: __RΦ.a(1) }] }) }, [1624]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(202), p: [__RΦ.a(1619)] }) }, [1619]: { LΦ: t => Object }, [1623]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(1620), p: [__RΦ.a(1619)] }) }, [1657]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(502), p: [__RΦ.a(1619)] }) }, [1722]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(202), p: [__RΦ.a(1719)] }) }, [1719]: { LΦ: t => Object }, [1735]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(10), __RΦ.a(1734)] }) }, [10]: { RΦ: t => ({ TΦ: "u" }) }, [1734]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(502), p: [__RΦ.a(1719)] }) }, [1880]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(202), p: [__RΦ.a(1879)] }) }, [1879]: { LΦ: t => Object }, [1883]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(502), p: [__RΦ.a(1879)] }) }, [1886]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(1620), p: [__RΦ.a(1885)] }) }, [1885]: { LΦ: t => Object }, [1888]: { RΦ: t => ({ TΦ: "F", r: __RΦ.a(22), p: [{ n: "constructor", t: () => __RΦ.a(1889), v: null }], f: "" }) }, [1889]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(202), p: [__RΦ.a(1885)] }) } } };
18
17
  import { reflect } from "typescript-rtti";
19
18
  import { MiddlewareChain, resolve } from "../middleware";
20
19
  import { getPropertyConversionOptions } from "./property";
@@ -35,9 +34,9 @@ function* ParentChain(constructor) {
35
34
  }
36
35
  return;
37
36
  }
38
- __RΦ.m("rt:p", [{ n: "constructor", t: () => __RΦ.a(1712), v: null }])(ParentChain);
37
+ __RΦ.m("rt:p", [{ n: "constructor", t: () => __RΦ.a(1714), v: null }])(ParentChain);
39
38
  __RΦ.m("rt:f", "F")(ParentChain);
40
- __RΦ.m("rt:t", () => __RΦ.a(1715))(ParentChain);
39
+ __RΦ.m("rt:t", () => __RΦ.a(1717))(ParentChain);
41
40
  import * as LΦ_1 from "./types";
42
41
  import * as LΦ_2 from "../types";
43
42
  function getParentModel(model) {
@@ -51,9 +50,9 @@ function getParentModel(model) {
51
50
  }
52
51
  return null;
53
52
  }
54
- __RΦ.m("rt:p", [{ n: "model", t: () => __RΦ.a(503), v: null }])(getParentModel);
53
+ __RΦ.m("rt:p", [{ n: "model", t: () => __RΦ.a(505), v: null }])(getParentModel);
55
54
  __RΦ.m("rt:f", "F")(getParentModel);
56
- __RΦ.m("rt:t", () => __RΦ.a(1738))(getParentModel);
55
+ __RΦ.m("rt:t", () => __RΦ.a(1740))(getParentModel);
57
56
  import * as LΦ_0 from "typescript-rtti/dist";
58
57
  export class XMLModel {
59
58
  constructor(type, options) {
@@ -65,7 +64,7 @@ export class XMLModel {
65
64
  if (typeof parent === "undefined")
66
65
  parent = getParentModel(this);
67
66
  return parent;
68
- }, [__RΦ.m("rt:p", []), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(1738))], "getParent");
67
+ }, [__RΦ.m("rt:p", []), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(1740))], "getParent");
69
68
  let propertiesLoaded = false;
70
69
  const properties = {
71
70
  options: new Map(),
@@ -97,7 +96,7 @@ export class XMLModel {
97
96
  }
98
97
  }, [__RΦ.m("rt:p", [{ n: "property", t: () => __RΦ.a(4), v: null }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(22))], ""));
99
98
  return record;
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))], ""),
99
+ }, [__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(658))], ""),
101
100
  ],
102
101
  },
103
102
  toXML: {
@@ -122,12 +121,12 @@ export class XMLModel {
122
121
  }
123
122
  }, [__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
123
  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(888))], ""),
124
+ }, [__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(890))], ""),
126
125
  ],
127
126
  },
128
127
  };
129
128
  const loadProperties = __RΦ.f(() => {
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
129
+ const props = reflect(this.type, { TΦ: "c", t: void 0, p: [__RΦ.a(532)], 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
130
  props.forEach(__RΦ.f((property) => {
132
131
  const options = getPropertyConversionOptions(this.type, property.name);
133
132
  if (!options.ignored) {
@@ -164,7 +163,7 @@ export class XMLModel {
164
163
  this.options.parent = options.parent;
165
164
  if (!getParent()) {
166
165
  this.options.fromXML.middlewares.push(__RΦ.f((...args) => defaults.fromXML(...args), [__RΦ.m("rt:p", [{ n: "args", t: () => __RΦ.a(4), v: null, f: "3" }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(1))], ""));
167
- this.options.toXML.middlewares.push(__RΦ.f((...args) => defaults.toXML(...args), [__RΦ.m("rt:p", [{ n: "args", t: () => __RΦ.a(4), v: null, f: "3" }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(109))], ""));
166
+ this.options.toXML.middlewares.push(__RΦ.f((...args) => defaults.toXML(...args), [__RΦ.m("rt:p", [{ n: "args", t: () => __RΦ.a(4), v: null, f: "3" }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(111))], ""));
168
167
  }
169
168
  if (options.fromXML)
170
169
  this.options.fromXML.middlewares.push(options.fromXML);
@@ -213,68 +212,71 @@ export class XMLModel {
213
212
  }
214
213
  }
215
214
  get reflectedClass() {
216
- return reflect(this.type, { TΦ: "c", t: void 0, p: [__RΦ.a(530)], r: void 0, tp: [] });
215
+ return reflect(this.type, { TΦ: "c", t: void 0, p: [__RΦ.a(532)], r: void 0, tp: [] });
217
216
  }
218
217
  resolveAllProperties() {
219
218
  const properties = new Map();
220
219
  const parent = getParentModel(this);
221
220
  if (parent)
222
- parent
223
- .resolveAllProperties()
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))], ""));
225
- this.options.properties.options.forEach(__RΦ.f((options, key) => properties.set(key, new Proxy(options, {
226
- get: __RΦ.f((target, p, reciever) => {
227
- if (p === "model")
228
- return this;
229
- else
230
- return Reflect.get(target, p, reciever);
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"),
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))], ""));
221
+ parent.resolveAllProperties().forEach(__RΦ.f((prop, key) => {
222
+ properties.set(key, prop);
223
+ }, [__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(22))], ""));
224
+ this.options.properties.options.forEach(__RΦ.f((options, key) => {
225
+ properties.delete(key); // delete prop if already present to make sure it overrides parent's prop
226
+ properties.set(key, new Proxy(options, {
227
+ get: __RΦ.f((target, p, reciever) => {
228
+ if (p === "model")
229
+ return this;
230
+ else
231
+ return Reflect.get(target, p, reciever);
232
+ }, [__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"),
233
+ }));
234
+ }, [__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(22))], ""));
233
235
  return properties;
234
236
  }
235
237
  }
236
- (t => __RΦ.t[500] = t)(XMLModel);
238
+ (t => __RΦ.t[502] = t)(XMLModel);
237
239
  __RΦ.m("rt:SP", [])(XMLModel);
238
240
  __RΦ.m("rt:P", ["options", "type", "reflectedClass"])(XMLModel);
239
241
  __RΦ.m("rt:Sm", [])(XMLModel);
240
242
  __RΦ.m("rt:m", ["fromXML", "toXML", "resolveAllProperties"])(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);
243
+ __RΦ.m("rt:p", [{ n: "type", t: () => __RΦ.a(532), v: null, f: "R" }, { n: "options", t: () => __RΦ.a(1749), v: null }])(XMLModel);
242
244
  __RΦ.m("rt:f", "Ce")(XMLModel);
243
- __RΦ.m("rt:t", () => __RΦ.a(523))(XMLModel.prototype, "options");
245
+ __RΦ.m("rt:t", () => __RΦ.a(525))(XMLModel.prototype, "options");
244
246
  __RΦ.m("rt:f", "P")(XMLModel.prototype, "options");
245
- __RΦ.m("rt:t", () => __RΦ.a(1771))(XMLModel.prototype, "parent");
247
+ __RΦ.m("rt:t", () => __RΦ.a(1773))(XMLModel.prototype, "parent");
246
248
  __RΦ.m("rt:f", "P")(XMLModel.prototype, "parent");
247
- __RΦ.m("rt:t", () => __RΦ.a(1781))(XMLModel.prototype, "parent");
249
+ __RΦ.m("rt:t", () => __RΦ.a(1783))(XMLModel.prototype, "parent");
248
250
  __RΦ.m("rt:f", "P")(XMLModel.prototype, "parent");
249
- __RΦ.m("rt:t", () => __RΦ.a(659))(XMLModel.prototype, "properties");
251
+ __RΦ.m("rt:t", () => __RΦ.a(661))(XMLModel.prototype, "properties");
250
252
  __RΦ.m("rt:f", "P")(XMLModel.prototype, "properties");
251
- __RΦ.m("rt:t", () => __RΦ.a(1797))(XMLModel.prototype, "parent");
253
+ __RΦ.m("rt:t", () => __RΦ.a(1799))(XMLModel.prototype, "parent");
252
254
  __RΦ.m("rt:f", "P")(XMLModel.prototype, "parent");
253
- __RΦ.m("rt:t", () => __RΦ.a(1802))(XMLModel.prototype, "parent");
255
+ __RΦ.m("rt:t", () => __RΦ.a(1804))(XMLModel.prototype, "parent");
254
256
  __RΦ.m("rt:f", "P")(XMLModel.prototype, "parent");
255
257
  __RΦ.m("rt:t", () => __RΦ.a(13))(XMLModel.prototype, "tagname");
256
258
  __RΦ.m("rt:f", "P")(XMLModel.prototype, "tagname");
257
259
  __RΦ.m("rt:f", "M.")(XMLModel.prototype["fromXML"]);
258
260
  ((t, p) => __RΦ.m("rt:h", () => typeof t === "object" ? t.constructor : t)(t[p]))(XMLModel.prototype, "fromXML");
259
- __RΦ.m("rt:p", [{ n: "xml", t: () => __RΦ.a(539), v: null }])(XMLModel.prototype, "fromXML");
261
+ __RΦ.m("rt:p", [{ n: "xml", t: () => __RΦ.a(541), v: null }])(XMLModel.prototype, "fromXML");
260
262
  __RΦ.m("rt:f", "M.")(XMLModel.prototype, "fromXML");
261
- __RΦ.m("rt:t", () => __RΦ.a(501))(XMLModel.prototype, "fromXML");
262
- __RΦ.m("rt:t", () => __RΦ.a(656))(XMLModel.prototype, "properties");
263
+ __RΦ.m("rt:t", () => __RΦ.a(503))(XMLModel.prototype, "fromXML");
264
+ __RΦ.m("rt:t", () => __RΦ.a(658))(XMLModel.prototype, "properties");
263
265
  __RΦ.m("rt:f", "P")(XMLModel.prototype, "properties");
264
266
  __RΦ.m("rt:f", "M.")(XMLModel.prototype["toXML"]);
265
267
  ((t, p) => __RΦ.m("rt:h", () => typeof t === "object" ? t.constructor : t)(t[p]))(XMLModel.prototype, "toXML");
266
268
  __RΦ.m("rt:p", [{ n: "instance", t: () => __RΦ.a(28), v: null }])(XMLModel.prototype, "toXML");
267
269
  __RΦ.m("rt:f", "M.")(XMLModel.prototype, "toXML");
268
- __RΦ.m("rt:t", () => __RΦ.a(109))(XMLModel.prototype, "toXML");
269
- __RΦ.m("rt:t", () => __RΦ.a(888))(XMLModel.prototype, "properties");
270
+ __RΦ.m("rt:t", () => __RΦ.a(111))(XMLModel.prototype, "toXML");
271
+ __RΦ.m("rt:t", () => __RΦ.a(890))(XMLModel.prototype, "properties");
270
272
  __RΦ.m("rt:f", "P")(XMLModel.prototype, "properties");
271
- __RΦ.m("rt:t", () => __RΦ.a(946))(XMLModel.prototype, "reflectedClass");
273
+ __RΦ.m("rt:t", () => __RΦ.a(948))(XMLModel.prototype, "reflectedClass");
272
274
  __RΦ.m("rt:f", "P")(XMLModel.prototype, "reflectedClass");
273
275
  __RΦ.m("rt:f", "M.")(XMLModel.prototype["resolveAllProperties"]);
274
276
  ((t, p) => __RΦ.m("rt:h", () => typeof t === "object" ? t.constructor : t)(t[p]))(XMLModel.prototype, "resolveAllProperties");
275
277
  __RΦ.m("rt:p", [])(XMLModel.prototype, "resolveAllProperties");
276
278
  __RΦ.m("rt:f", "M.")(XMLModel.prototype, "resolveAllProperties");
277
- __RΦ.m("rt:t", () => __RΦ.a(1067))(XMLModel.prototype, "resolveAllProperties");
279
+ __RΦ.m("rt:t", () => __RΦ.a(1069))(XMLModel.prototype, "resolveAllProperties");
278
280
  export function createModel(type, options) {
279
281
  if (findModel(type)) {
280
282
  throw new TypeError(`a model for type ${type.name} already exists`);
@@ -283,16 +285,16 @@ export function createModel(type, options) {
283
285
  Models.set(type, model);
284
286
  return model;
285
287
  }
286
- __RΦ.m("rt:p", [{ n: "type", t: () => __RΦ.a(1622), v: null }, { n: "options", t: () => __RΦ.a(1621), v: null }])(createModel);
288
+ __RΦ.m("rt:p", [{ n: "type", t: () => __RΦ.a(1624), v: null }, { n: "options", t: () => __RΦ.a(1623), v: null }])(createModel);
287
289
  __RΦ.m("rt:f", "F")(createModel);
288
- __RΦ.m("rt:t", () => __RΦ.a(1655))(createModel);
290
+ __RΦ.m("rt:t", () => __RΦ.a(1657))(createModel);
289
291
  export const Models = new Map();
290
292
  export function findModel(id) {
291
293
  return Models.get(id);
292
294
  }
293
- __RΦ.m("rt:p", [{ n: "id", t: () => __RΦ.a(1720), v: null }])(findModel);
295
+ __RΦ.m("rt:p", [{ n: "id", t: () => __RΦ.a(1722), v: null }])(findModel);
294
296
  __RΦ.m("rt:f", "F")(findModel);
295
- __RΦ.m("rt:t", () => __RΦ.a(1733))(findModel);
297
+ __RΦ.m("rt:t", () => __RΦ.a(1735))(findModel);
296
298
  export function getModel(id) {
297
299
  const model = findModel(id);
298
300
  if (model)
@@ -300,18 +302,18 @@ export function getModel(id) {
300
302
  else
301
303
  throw new TypeError(`couln't find model for type ${id.name}`);
302
304
  }
303
- __RΦ.m("rt:p", [{ n: "id", t: () => __RΦ.a(1934), v: null }])(getModel);
305
+ __RΦ.m("rt:p", [{ n: "id", t: () => __RΦ.a(1880), v: null }])(getModel);
304
306
  __RΦ.m("rt:f", "F")(getModel);
305
- __RΦ.m("rt:t", () => __RΦ.a(1937))(getModel);
307
+ __RΦ.m("rt:t", () => __RΦ.a(1883))(getModel);
306
308
  // Model decorator
307
309
  function ModelDecoratorFactory(options) {
308
310
  return __RΦ.f(function (constructor) {
309
311
  findModel(constructor) || createModel(constructor, options || {});
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))], "");
312
+ }, [__RΦ.m("rt:p", [{ n: "constructor", t: () => __RΦ.a(1889), v: null }]), __RΦ.m("rt:f", "M"), __RΦ.m("rt:t", () => __RΦ.a(22))], "");
311
313
  }
312
- __RΦ.m("rt:p", [{ n: "options", t: () => __RΦ.a(1940), v: null, f: "?" }])(ModelDecoratorFactory);
314
+ __RΦ.m("rt:p", [{ n: "options", t: () => __RΦ.a(1886), v: null, f: "?" }])(ModelDecoratorFactory);
313
315
  __RΦ.m("rt:f", "F")(ModelDecoratorFactory);
314
- __RΦ.m("rt:t", () => __RΦ.a(1942))(ModelDecoratorFactory);
316
+ __RΦ.m("rt:t", () => __RΦ.a(1888))(ModelDecoratorFactory);
315
317
  export { ModelDecoratorFactory as Model };
316
318
  export { Prop } from "./property";
317
319
  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 }, [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 } } };
16
+ }, t: { [205]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(202), p: [__RΦ.a(197)] }) }, [202]: { LΦ: t => LΦ_0.IΦConstructor }, [197]: { LΦ: t => Object }, [201]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(198), p: [__RΦ.a(197)] }) }, [198]: { LΦ: t => LΦ_1.IΦCreateXMLModelPropertyOptions }, [213]: { LΦ: t => Object }, [217]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(214), p: [__RΦ.a(197)] }) }, [214]: { LΦ: t => LΦ_1.IΦXMLModelPropertyOptions }, [497]: { LΦ: t => LΦ_0.ReflectedProperty }, [13]: { LΦ: t => String }, [4]: { RΦ: t => ({ TΦ: "~" }) }, [20]: { LΦ: t => Boolean }, [107]: { RΦ: t => ({ TΦ: "[", e: __RΦ.a(105) }) }, [105]: { LΦ: t => LΦ_2.IΦXMLElement }, [1]: { RΦ: t => ({ TΦ: "~" }) }, [111]: { RΦ: t => ({ TΦ: "O", m: [{ n: "elements", f: "", t: __RΦ.a(107) }] }) }, [1407]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(202), p: [__RΦ.a(1406)] }) }, [1406]: { LΦ: t => Object }, [1409]: { LΦ: t => Object }, [1410]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(214), p: [__RΦ.a(1406)] }) }, [22]: { RΦ: t => ({ TΦ: "V" }) }, [1422]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(202), p: [__RΦ.a(1421)] }) }, [1421]: { LΦ: t => Object }, [1424]: { LΦ: t => Object }, [1433]: { RΦ: t => ({ TΦ: "|", t: [__RΦ.a(10), __RΦ.a(1425)] }) }, [10]: { RΦ: t => ({ TΦ: "u" }) }, [1425]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(214), p: [__RΦ.a(1421)] }) }, [1439]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(202), p: [__RΦ.a(1438)] }) }, [1438]: { LΦ: t => Object }, [1441]: { LΦ: t => Object }, [1465]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(214), p: [__RΦ.a(1438)] }) }, [1472]: { RΦ: t => ({ TΦ: "g", t: __RΦ.a(198), p: [__RΦ.a(1471)] }) }, [1471]: { LΦ: t => Object }, [1474]: { RΦ: t => ({ TΦ: "F", r: __RΦ.a(22), p: [{ n: "prototype", t: () => __RΦ.a(1), v: null }, { n: "property", t: () => __RΦ.a(1476), v: null }], f: "" }) }, [1476]: { 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";
@@ -23,7 +23,7 @@ function resolvePropertyConversionOptions(options, constructor, property) {
23
23
  const _options = {
24
24
  name: property,
25
25
  get reflected() {
26
- return reflect(constructor, { TΦ: "c", t: void 0, p: [__RΦ.a(203)], r: void 0, tp: [] }).getProperty(property);
26
+ return reflect(constructor, { TΦ: "c", t: void 0, p: [__RΦ.a(205)], r: void 0, tp: [] }).getProperty(property);
27
27
  },
28
28
  get tagname() {
29
29
  return options.tagname || defaults.tagnameFromProperty(this);
@@ -33,9 +33,9 @@ function resolvePropertyConversionOptions(options, constructor, property) {
33
33
  isSourceElement: __RΦ.f((...args) => defaults.propertySourceElementsFilter(...args), [__RΦ.m("rt:p", [{ n: "args", t: () => __RΦ.a(4), v: null, f: "3" }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(20))], "isSourceElement"),
34
34
  resolveElements: options.resolveElements
35
35
  ? options.resolveElements
36
- : __RΦ.f((...args) => defaults.propertyResolveSourceElements(...args), [__RΦ.m("rt:p", [{ n: "args", t: () => __RΦ.a(4), v: null, f: "3" }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(105))], ""),
36
+ : __RΦ.f((...args) => defaults.propertyResolveSourceElements(...args), [__RΦ.m("rt:p", [{ n: "args", t: () => __RΦ.a(4), v: null, f: "3" }]), __RΦ.m("rt:f", "F>"), __RΦ.m("rt:t", () => __RΦ.a(107))], ""),
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
- 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"),
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(111))], "toXML"),
39
39
  };
40
40
  if (options === null || options === void 0 ? void 0 : options.model)
41
41
  _options.model = options.model;
@@ -53,9 +53,9 @@ function resolvePropertyConversionOptions(options, constructor, property) {
53
53
  }
54
54
  return _options;
55
55
  }
56
- __RΦ.m("rt:p", [{ n: "options", t: () => __RΦ.a(199), v: null }, { n: "constructor", t: () => __RΦ.a(203), v: null }, { n: "property", t: () => __RΦ.a(211), v: null }])(resolvePropertyConversionOptions);
56
+ __RΦ.m("rt:p", [{ n: "options", t: () => __RΦ.a(201), v: null }, { n: "constructor", t: () => __RΦ.a(205), v: null }, { n: "property", t: () => __RΦ.a(213), v: null }])(resolvePropertyConversionOptions);
57
57
  __RΦ.m("rt:f", "F")(resolvePropertyConversionOptions);
58
- __RΦ.m("rt:t", () => __RΦ.a(215))(resolvePropertyConversionOptions);
58
+ __RΦ.m("rt:t", () => __RΦ.a(217))(resolvePropertyConversionOptions);
59
59
  const PropertyOptions = new Map();
60
60
  function storePropertyConversionOptions(constructor, property, options) {
61
61
  let map = PropertyOptions.get(constructor);
@@ -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(1405), v: null }, { n: "property", t: () => __RΦ.a(1407), v: null }, { n: "options", t: () => __RΦ.a(1408), v: null }])(storePropertyConversionOptions);
68
+ __RΦ.m("rt:p", [{ n: "constructor", t: () => __RΦ.a(1407), v: null }, { n: "property", t: () => __RΦ.a(1409), v: null }, { n: "options", t: () => __RΦ.a(1410), 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(1420), v: null }, { n: "property", t: () => __RΦ.a(1422), v: null }])(findPropertyConversionOptions);
77
+ __RΦ.m("rt:p", [{ n: "constructor", t: () => __RΦ.a(1422), v: null }, { n: "property", t: () => __RΦ.a(1424), v: null }])(findPropertyConversionOptions);
78
78
  __RΦ.m("rt:f", "F")(findPropertyConversionOptions);
79
- __RΦ.m("rt:t", () => __RΦ.a(1431))(findPropertyConversionOptions);
79
+ __RΦ.m("rt:t", () => __RΦ.a(1433))(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(1437), v: null }, { n: "property", t: () => __RΦ.a(1439), v: null }])(getPropertyConversionOptions);
84
+ __RΦ.m("rt:p", [{ n: "constructor", t: () => __RΦ.a(1439), v: null }, { n: "property", t: () => __RΦ.a(1441), v: null }])(getPropertyConversionOptions);
85
85
  __RΦ.m("rt:f", "F")(getPropertyConversionOptions);
86
- __RΦ.m("rt:t", () => __RΦ.a(1463))(getPropertyConversionOptions);
86
+ __RΦ.m("rt:t", () => __RΦ.a(1465))(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(1474), 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(1476), 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(1470), v: null, f: "?" }])(PropDecoratorFactory);
93
+ __RΦ.m("rt:p", [{ n: "options", t: () => __RΦ.a(1472), v: null, f: "?" }])(PropDecoratorFactory);
94
94
  __RΦ.m("rt:f", "F")(PropDecoratorFactory);
95
- __RΦ.m("rt:t", () => __RΦ.a(1472))(PropDecoratorFactory);
95
+ __RΦ.m("rt:t", () => __RΦ.a(1474))(PropDecoratorFactory);
96
96
  export { PropDecoratorFactory as Prop };