@glandais/vcyclist-engine 3.1.0 → 3.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/xmlutil-core.js CHANGED
@@ -13,108 +13,108 @@
13
13
  'use strict';
14
14
  //region block: imports
15
15
  var imul = Math.imul;
16
- var isInterface = kotlin_kotlin.$_$.m6;
17
- var protoOf = kotlin_kotlin.$_$.t6;
18
- var objectCreate = kotlin_kotlin.$_$.s6;
19
- var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.a2;
20
- var THROW_CCE = kotlin_kotlin.$_$.e9;
16
+ var isInterface = kotlin_kotlin.$_$.v6;
17
+ var protoOf = kotlin_kotlin.$_$.c7;
18
+ var objectCreate = kotlin_kotlin.$_$.b7;
19
+ var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.c2;
20
+ var THROW_CCE = kotlin_kotlin.$_$.s9;
21
21
  var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.b;
22
- var Unit_instance = kotlin_kotlin.$_$.f1;
23
- var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.s1;
24
- var equals = kotlin_kotlin.$_$.x5;
25
- var initMetadataForClass = kotlin_kotlin.$_$.e6;
22
+ var Unit_instance = kotlin_kotlin.$_$.g1;
23
+ var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.u1;
24
+ var equals = kotlin_kotlin.$_$.g6;
25
+ var initMetadataForClass = kotlin_kotlin.$_$.n6;
26
26
  var VOID = kotlin_kotlin.$_$.a;
27
- var toString = kotlin_kotlin.$_$.w6;
28
- var ensureNotNull = kotlin_kotlin.$_$.n9;
29
- var Enum = kotlin_kotlin.$_$.v8;
30
- var initMetadataForInterface = kotlin_kotlin.$_$.i6;
31
- var getStringHashCode = kotlin_kotlin.$_$.c6;
32
- var captureStack = kotlin_kotlin.$_$.o5;
33
- var defineProp = kotlin_kotlin.$_$.v5;
34
- var getKClassFromExpression = kotlin_kotlin.$_$.j7;
35
- var Companion_instance = kotlin_kotlin.$_$.d1;
36
- var initMetadataForCompanion = kotlin_kotlin.$_$.f6;
37
- var charSequenceLength = kotlin_kotlin.$_$.s5;
38
- var charSequenceGet = kotlin_kotlin.$_$.r5;
27
+ var toString = kotlin_kotlin.$_$.f7;
28
+ var ensureNotNull = kotlin_kotlin.$_$.ba;
29
+ var Enum = kotlin_kotlin.$_$.j9;
30
+ var initMetadataForInterface = kotlin_kotlin.$_$.r6;
31
+ var getStringHashCode = kotlin_kotlin.$_$.l6;
32
+ var captureStack = kotlin_kotlin.$_$.x5;
33
+ var defineProp = kotlin_kotlin.$_$.e6;
34
+ var getKClassFromExpression = kotlin_kotlin.$_$.s7;
35
+ var Companion_instance = kotlin_kotlin.$_$.e1;
36
+ var initMetadataForCompanion = kotlin_kotlin.$_$.o6;
37
+ var charSequenceLength = kotlin_kotlin.$_$.b6;
38
+ var charSequenceGet = kotlin_kotlin.$_$.a6;
39
39
  var toString_0 = kotlin_kotlin.$_$.g;
40
- var numberToChar = kotlin_kotlin.$_$.q6;
41
- var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.y1;
42
- var get_indices = kotlin_kotlin.$_$.y7;
43
- var asSequence = kotlin_kotlin.$_$.s2;
44
- var map = kotlin_kotlin.$_$.s7;
45
- var takeWhile = kotlin_kotlin.$_$.t7;
46
- var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.n1;
40
+ var numberToChar = kotlin_kotlin.$_$.z6;
41
+ var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.a2;
42
+ var get_indices = kotlin_kotlin.$_$.i8;
43
+ var asSequence = kotlin_kotlin.$_$.u2;
44
+ var map = kotlin_kotlin.$_$.b8;
45
+ var takeWhile = kotlin_kotlin.$_$.c8;
46
+ var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.p1;
47
47
  var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.f;
48
- var charCodeAt = kotlin_kotlin.$_$.q5;
49
- var until = kotlin_kotlin.$_$.h7;
50
- var Collection = kotlin_kotlin.$_$.l2;
51
- var fill = kotlin_kotlin.$_$.d3;
52
- var copyOf = kotlin_kotlin.$_$.z2;
53
- var arrayCopy = kotlin_kotlin.$_$.r2;
54
- var IndexOutOfBoundsException_init_$Create$ = kotlin_kotlin.$_$.c2;
55
- var take = kotlin_kotlin.$_$.k8;
56
- var Char = kotlin_kotlin.$_$.t8;
57
- var UnsupportedOperationException_init_$Create$ = kotlin_kotlin.$_$.j2;
58
- var noWhenBranchMatchedException = kotlin_kotlin.$_$.r9;
59
- var booleanArray = kotlin_kotlin.$_$.n5;
48
+ var charCodeAt = kotlin_kotlin.$_$.z5;
49
+ var until = kotlin_kotlin.$_$.q7;
50
+ var Collection = kotlin_kotlin.$_$.n2;
51
+ var fill = kotlin_kotlin.$_$.g3;
52
+ var copyOf = kotlin_kotlin.$_$.c3;
53
+ var arrayCopy = kotlin_kotlin.$_$.t2;
54
+ var IndexOutOfBoundsException_init_$Create$ = kotlin_kotlin.$_$.e2;
55
+ var take = kotlin_kotlin.$_$.w8;
56
+ var Char = kotlin_kotlin.$_$.h9;
57
+ var UnsupportedOperationException_init_$Create$ = kotlin_kotlin.$_$.l2;
58
+ var noWhenBranchMatchedException = kotlin_kotlin.$_$.fa;
59
+ var booleanArray = kotlin_kotlin.$_$.w5;
60
60
  var Char__plus_impl_qi7pgj = kotlin_kotlin.$_$.e;
61
- var toString_1 = kotlin_kotlin.$_$.w9;
62
- var toString_2 = kotlin_kotlin.$_$.p8;
61
+ var toString_1 = kotlin_kotlin.$_$.ka;
62
+ var toString_2 = kotlin_kotlin.$_$.c9;
63
63
  var _UShort___init__impl__jigrne = kotlin_kotlin.$_$.t;
64
64
  var _Char___init__impl__6a9atx_0 = kotlin_kotlin.$_$.c;
65
- var toShort = kotlin_kotlin.$_$.v6;
66
- var isHighSurrogate = kotlin_kotlin.$_$.b8;
67
- var substring = kotlin_kotlin.$_$.j8;
68
- var indexOf = kotlin_kotlin.$_$.x7;
69
- var Pair = kotlin_kotlin.$_$.b9;
70
- var HashMap_init_$Create$ = kotlin_kotlin.$_$.j1;
71
- var initMetadataForObject = kotlin_kotlin.$_$.k6;
72
- var copyOf_0 = kotlin_kotlin.$_$.a3;
73
- var downTo = kotlin_kotlin.$_$.g7;
74
- var isBlank = kotlin_kotlin.$_$.z7;
75
- var substring_0 = kotlin_kotlin.$_$.i8;
76
- var substringAfterLast = kotlin_kotlin.$_$.g8;
77
- var substringBeforeLast = kotlin_kotlin.$_$.h8;
78
- var joinTo = kotlin_kotlin.$_$.i3;
79
- var ArrayList_init_$Create$ = kotlin_kotlin.$_$.i1;
80
- var lastOrNull = kotlin_kotlin.$_$.k3;
81
- var charSequenceSubSequence = kotlin_kotlin.$_$.t5;
82
- var get_lastIndex = kotlin_kotlin.$_$.j3;
83
- var reversed = kotlin_kotlin.$_$.r3;
84
- var StringBuilder_init_$Create$_0 = kotlin_kotlin.$_$.r1;
85
- var coerceAtMost = kotlin_kotlin.$_$.c7;
86
- var Exception_init_$Init$ = kotlin_kotlin.$_$.u1;
87
- var Exception_init_$Init$_0 = kotlin_kotlin.$_$.v1;
88
- var Exception = kotlin_kotlin.$_$.x8;
89
- var emptyList = kotlin_kotlin.$_$.c3;
90
- var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.f2;
91
- var asSequence_0 = kotlin_kotlin.$_$.m7;
92
- var checkIndexOverflow = kotlin_kotlin.$_$.u2;
93
- var contains = kotlin_kotlin.$_$.u7;
94
- var filter = kotlin_kotlin.$_$.p7;
95
- var count = kotlin_kotlin.$_$.n7;
96
- var elementAtOrNull = kotlin_kotlin.$_$.o7;
97
- var firstOrNull = kotlin_kotlin.$_$.q7;
98
- var lastOrNull_0 = kotlin_kotlin.$_$.r7;
99
- var plus = kotlin_kotlin.$_$.s9;
100
- var toList = kotlin_kotlin.$_$.x3;
101
- var KtList = kotlin_kotlin.$_$.m2;
102
- var toMutableList = kotlin_kotlin.$_$.z3;
103
- var NoSuchElementException_init_$Create$_0 = kotlin_kotlin.$_$.e2;
104
- var Companion_instance_0 = kotlin_kotlin.$_$.e1;
65
+ var toShort = kotlin_kotlin.$_$.e7;
66
+ var isHighSurrogate = kotlin_kotlin.$_$.l8;
67
+ var substring = kotlin_kotlin.$_$.v8;
68
+ var indexOf = kotlin_kotlin.$_$.h8;
69
+ var Pair = kotlin_kotlin.$_$.p9;
70
+ var HashMap_init_$Create$ = kotlin_kotlin.$_$.k1;
71
+ var initMetadataForObject = kotlin_kotlin.$_$.t6;
72
+ var copyOf_0 = kotlin_kotlin.$_$.d3;
73
+ var downTo = kotlin_kotlin.$_$.p7;
74
+ var isBlank = kotlin_kotlin.$_$.j8;
75
+ var substring_0 = kotlin_kotlin.$_$.u8;
76
+ var substringAfterLast = kotlin_kotlin.$_$.s8;
77
+ var substringBeforeLast = kotlin_kotlin.$_$.t8;
78
+ var joinTo = kotlin_kotlin.$_$.l3;
79
+ var ArrayList_init_$Create$ = kotlin_kotlin.$_$.j1;
80
+ var lastOrNull = kotlin_kotlin.$_$.n3;
81
+ var charSequenceSubSequence = kotlin_kotlin.$_$.c6;
82
+ var get_lastIndex = kotlin_kotlin.$_$.m3;
83
+ var reversed = kotlin_kotlin.$_$.v3;
84
+ var StringBuilder_init_$Create$_0 = kotlin_kotlin.$_$.t1;
85
+ var coerceAtMost = kotlin_kotlin.$_$.l7;
86
+ var Exception_init_$Init$ = kotlin_kotlin.$_$.w1;
87
+ var Exception_init_$Init$_0 = kotlin_kotlin.$_$.x1;
88
+ var Exception = kotlin_kotlin.$_$.l9;
89
+ var emptyList = kotlin_kotlin.$_$.f3;
90
+ var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.h2;
91
+ var asSequence_0 = kotlin_kotlin.$_$.v7;
92
+ var checkIndexOverflow = kotlin_kotlin.$_$.w2;
93
+ var contains = kotlin_kotlin.$_$.d8;
94
+ var filter = kotlin_kotlin.$_$.y7;
95
+ var count = kotlin_kotlin.$_$.w7;
96
+ var elementAtOrNull = kotlin_kotlin.$_$.x7;
97
+ var firstOrNull = kotlin_kotlin.$_$.z7;
98
+ var lastOrNull_0 = kotlin_kotlin.$_$.a8;
99
+ var plus = kotlin_kotlin.$_$.ga;
100
+ var toList = kotlin_kotlin.$_$.c4;
101
+ var KtList = kotlin_kotlin.$_$.o2;
102
+ var toMutableList = kotlin_kotlin.$_$.e4;
103
+ var NoSuchElementException_init_$Create$_0 = kotlin_kotlin.$_$.g2;
104
+ var Companion_instance_0 = kotlin_kotlin.$_$.f1;
105
105
  var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.h;
106
- var createFailure = kotlin_kotlin.$_$.m9;
106
+ var createFailure = kotlin_kotlin.$_$.aa;
107
107
  var Result__exceptionOrNull_impl_p6xea9 = kotlin_kotlin.$_$.i;
108
- var Result = kotlin_kotlin.$_$.c9;
108
+ var Result = kotlin_kotlin.$_$.q9;
109
109
  var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.l;
110
110
  var _Result___get_isSuccess__impl__sndoy8 = kotlin_kotlin.$_$.k;
111
111
  var _Result___get_isFailure__impl__jpiriv = kotlin_kotlin.$_$.j;
112
- var constructCallableReference = kotlin_kotlin.$_$.u5;
113
- var lazy = kotlin_kotlin.$_$.q9;
114
- var KProperty1 = kotlin_kotlin.$_$.l7;
115
- var getPropertyCallableRef = kotlin_kotlin.$_$.b6;
116
- var hashCode = kotlin_kotlin.$_$.d6;
117
- var IndexOutOfBoundsException_init_$Create$_0 = kotlin_kotlin.$_$.d2;
112
+ var constructCallableReference = kotlin_kotlin.$_$.d6;
113
+ var lazy = kotlin_kotlin.$_$.ea;
114
+ var KProperty1 = kotlin_kotlin.$_$.u7;
115
+ var getPropertyCallableRef = kotlin_kotlin.$_$.k6;
116
+ var hashCode = kotlin_kotlin.$_$.m6;
117
+ var IndexOutOfBoundsException_init_$Create$_0 = kotlin_kotlin.$_$.f2;
118
118
  //endregion
119
119
  //region block: pre-declaration
120
120
  function get_name() {
@@ -4477,11 +4477,11 @@
4477
4477
  var tmp = protoOf(AbstractAttr).getOwnerDocument_ni0mrc_k$.call(this);
4478
4478
  return tmp instanceof DocumentImpl ? tmp : THROW_CCE();
4479
4479
  };
4480
- protoOf(AttrImpl).setOwnerDocument_kczc7s_k$ = function (ownerDocument) {
4481
- protoOf(AbstractAttr).setOwnerDocument_v3gerw_k$.call(this, ownerDocument);
4480
+ protoOf(AttrImpl).setOwnerDocument_6nj3e7_k$ = function (ownerDocument) {
4481
+ protoOf(AbstractAttr).setOwnerDocument_y2jzm3_k$.call(this, ownerDocument);
4482
4482
  };
4483
- protoOf(AttrImpl).setOwnerDocument_v3gerw_k$ = function (ownerDocument) {
4484
- return this.setOwnerDocument_kczc7s_k$(ownerDocument);
4483
+ protoOf(AttrImpl).setOwnerDocument_y2jzm3_k$ = function (ownerDocument) {
4484
+ return this.setOwnerDocument_6nj3e7_k$(ownerDocument);
4485
4485
  };
4486
4486
  protoOf(AttrImpl).getNamespaceURI_665tvr_k$ = function () {
4487
4487
  return this._namespaceURI_1;
@@ -4597,16 +4597,6 @@
4597
4597
  function Companion_3() {
4598
4598
  this.nextDocId_1 = 1;
4599
4599
  }
4600
- protoOf(Companion_3).coerce_1hwjts_k$ = function (document) {
4601
- var tmp0_elvis_lhs = document instanceof DocumentImpl ? document : null;
4602
- var tmp;
4603
- if (tmp0_elvis_lhs == null) {
4604
- throw Companion_instance_7.notSupportedErr_4uwws0_k$('Documents can not be adopted');
4605
- } else {
4606
- tmp = tmp0_elvis_lhs;
4607
- }
4608
- return tmp;
4609
- };
4610
4600
  var Companion_instance_5;
4611
4601
  function Companion_getInstance_1() {
4612
4602
  return Companion_instance_5;
@@ -4719,7 +4709,7 @@
4719
4709
  if (doctype == null)
4720
4710
  null;
4721
4711
  else {
4722
- doctype.setOwnerDocument_v3gerw_k$(this);
4712
+ doctype.setOwnerDocument_y2jzm3_k$(this);
4723
4713
  }
4724
4714
  this._doctype_1 = doctype;
4725
4715
  this.docId_1 = nextDocId(Companion_instance_5);
@@ -4869,15 +4859,7 @@
4869
4859
  return tmp_0 instanceof StorageAdapter ? tmp_0 : THROW_CCE();
4870
4860
  };
4871
4861
  function DocumentTypeImpl_init_$Init$(original, $this) {
4872
- var tmp0_safe_receiver = getOwnerDocument(original);
4873
- var tmp;
4874
- if (tmp0_safe_receiver == null) {
4875
- tmp = null;
4876
- } else {
4877
- // Inline function 'kotlin.let' call
4878
- tmp = Companion_instance_5.coerce_1hwjts_k$(tmp0_safe_receiver);
4879
- }
4880
- DocumentTypeImpl.call($this, tmp, getName_0(original), getPublicId(original), getSystemId(original));
4862
+ DocumentTypeImpl.call($this, null, getName_0(original), getPublicId(original), getSystemId(original));
4881
4863
  return $this;
4882
4864
  }
4883
4865
  function DocumentTypeImpl_init_$Create$(original) {
@@ -4952,10 +4934,7 @@
4952
4934
  function ElementImpl(ownerDocument, namespaceURI, localName, prefix, parentNode) {
4953
4935
  parentNode = parentNode === VOID ? null : parentNode;
4954
4936
  var tmp = ElementImpl$_init_$lambda_ls8jm7(ownerDocument);
4955
- AbstractElement.call(this, ownerDocument, tmp, ElementImpl$_init_$lambda_ls8jm7_0(ownerDocument), parentNode);
4956
- this.namespaceURI_1 = namespaceURI;
4957
- this.localName_1 = localName;
4958
- this.prefix_1 = prefix;
4937
+ AbstractElement.call(this, ownerDocument, namespaceURI, localName, prefix, tmp, ElementImpl$_init_$lambda_ls8jm7_0(ownerDocument), parentNode);
4959
4938
  }
4960
4939
  protoOf(ElementImpl).get_self_wou8id_k$ = function () {
4961
4940
  return this;
@@ -4964,22 +4943,13 @@
4964
4943
  var tmp = protoOf(AbstractElement).getOwnerDocument_ni0mrc_k$.call(this);
4965
4944
  return tmp instanceof DocumentImpl ? tmp : THROW_CCE();
4966
4945
  };
4967
- protoOf(ElementImpl).getNamespaceURI_665tvr_k$ = function () {
4968
- return this.namespaceURI_1;
4969
- };
4970
- protoOf(ElementImpl).getPrefix_bu8bd4_k$ = function () {
4971
- return this.prefix_1;
4972
- };
4973
- protoOf(ElementImpl).getLocalName_k3do2o_k$ = function () {
4974
- return this.localName_1;
4975
- };
4976
4946
  protoOf(ElementImpl).getTagName_8h0vzl_k$ = function () {
4977
- switch (this.prefix_1) {
4947
+ switch (this.getPrefix_bu8bd4_k$()) {
4978
4948
  case null:
4979
4949
  case '':
4980
- return this.localName_1;
4950
+ return this.getLocalName_k3do2o_k$();
4981
4951
  default:
4982
- return this.prefix_1 + ':' + this.localName_1;
4952
+ return '' + this.getPrefix_bu8bd4_k$() + ':' + this.getLocalName_k3do2o_k$();
4983
4953
  }
4984
4954
  };
4985
4955
  protoOf(ElementImpl).toString = function () {
@@ -5040,7 +5010,7 @@
5040
5010
  AbstractDOMImplementation.call(this);
5041
5011
  }
5042
5012
  protoOf(SimpleDOMImplementation).createDocumentType_f0s6h5_k$ = function (qualifiedName, publicId, systemId) {
5043
- return new DocumentTypeImpl(DocumentImpl_init_$Create$(null), qualifiedName, publicId, systemId);
5013
+ return new DocumentTypeImpl(null, qualifiedName, publicId, systemId);
5044
5014
  };
5045
5015
  protoOf(SimpleDOMImplementation).createDocumentType = function (qualifiedName, publicId, systemId) {
5046
5016
  return this.createDocumentType_f0s6h5_k$(qualifiedName, publicId, systemId);
@@ -5053,7 +5023,7 @@
5053
5023
  throw Companion_instance_7.wrongDocumentErr_n4mg3n_k$('Document type already has an owner document');
5054
5024
  if (!(documentType instanceof DocumentTypeImpl))
5055
5025
  throw Companion_instance_7.wrongDocumentErr_n4mg3n_k$('Incorrect document type implementation');
5056
- documentType.setOwnerDocument_v3gerw_k$(this_0);
5026
+ documentType.setOwnerDocument_y2jzm3_k$(this_0);
5057
5027
  }
5058
5028
  // Inline function 'kotlin.text.isNullOrBlank' call
5059
5029
  if (!(qualifiedName == null || isBlank(qualifiedName))) {
@@ -6016,13 +5986,6 @@
6016
5986
  function get_attributes(_this__u8e3s4) {
6017
5987
  return _this__u8e3s4.getAttributes_1s8lzh_k$();
6018
5988
  }
6019
- function get_namespaceURI_0(_this__u8e3s4) {
6020
- return _this__u8e3s4.getNamespaceURI_665tvr_k$();
6021
- }
6022
- function get_localName_0(_this__u8e3s4) {
6023
- var tmp0_elvis_lhs = _this__u8e3s4.getLocalName_k3do2o_k$();
6024
- return tmp0_elvis_lhs == null ? _this__u8e3s4.getTagName_8h0vzl_k$() : tmp0_elvis_lhs;
6025
- }
6026
5989
  function get_tagName(_this__u8e3s4) {
6027
5990
  return _this__u8e3s4.getTagName_8h0vzl_k$();
6028
5991
  }
@@ -6612,7 +6575,7 @@
6612
6575
  $l$block: {
6613
6576
  // Inline function 'kotlin.checkNotNull' call
6614
6577
  if (tmp0 == null) {
6615
- var message = 'Attributes cannot have a null owner document';
6578
+ var message = 'Character data cannot have a null owner document';
6616
6579
  throw IllegalStateException_init_$Create$(toString(message));
6617
6580
  } else {
6618
6581
  tmp$ret$0 = tmp0;
@@ -6827,11 +6790,11 @@
6827
6790
  tmp = this_0;
6828
6791
  } else if (nt === 1) {
6829
6792
  var elem = asPlatformElement(node);
6830
- var u = get_namespaceURI_1(elem);
6793
+ var u = get_namespaceURI_0(elem);
6831
6794
  var tmp_0;
6832
6795
  // Inline function 'kotlin.text.isNullOrEmpty' call
6833
6796
  if (u == null || charSequenceLength(u) === 0) {
6834
- tmp_0 = this.createElement_83ys4m_k$(get_localName_1(elem));
6797
+ tmp_0 = this.createElement_83ys4m_k$(get_localName_0(elem));
6835
6798
  } else {
6836
6799
  tmp_0 = this.createElementNS_s626zf_k$(u, get_name_0(elem));
6837
6800
  }
@@ -6891,6 +6854,53 @@
6891
6854
  protoOf(AbstractDocument).importNode = function (node, deep) {
6892
6855
  return this.importNode_n9mmi7_k$(node, deep);
6893
6856
  };
6857
+ protoOf(AbstractDocument).appendChild_9x2r69_k$ = function (node) {
6858
+ var tmp;
6859
+ if (node instanceof AbstractDocumentType) {
6860
+ tmp = node.getOwnerDocument_ni0mrc_k$() == null;
6861
+ } else {
6862
+ tmp = false;
6863
+ }
6864
+ if (tmp) {
6865
+ node.setOwnerDocument_y2jzm3_k$(this);
6866
+ }
6867
+ return protoOf(AbstractParentNode).appendChild_9x2r69_k$.call(this, node);
6868
+ };
6869
+ protoOf(AbstractDocument).appendChild = function (node) {
6870
+ return this.appendChild_9x2r69_k$(node);
6871
+ };
6872
+ protoOf(AbstractDocument).replaceChild_jhowm2_k$ = function (newChild, oldChild) {
6873
+ var tmp;
6874
+ if (!(newChild instanceof AbstractDocumentType)) {
6875
+ tmp = true;
6876
+ } else {
6877
+ tmp = equals(newChild, oldChild);
6878
+ }
6879
+ // Inline function 'kotlin.require' call
6880
+ if (!tmp) {
6881
+ var message = 'Document types cannot be replaced';
6882
+ throw IllegalArgumentException_init_$Create$(toString(message));
6883
+ }
6884
+ return protoOf(AbstractParentNode).replaceChild_jhowm2_k$.call(this, newChild, oldChild);
6885
+ };
6886
+ protoOf(AbstractDocument).replaceChild = function (newChild, oldChild) {
6887
+ return this.replaceChild_jhowm2_k$(newChild, oldChild);
6888
+ };
6889
+ protoOf(AbstractDocument).insertBefore_6pfuhd_k$ = function (newChild, refChild) {
6890
+ var tmp;
6891
+ if (newChild instanceof AbstractDocumentType) {
6892
+ tmp = newChild.getOwnerDocument_ni0mrc_k$() == null;
6893
+ } else {
6894
+ tmp = false;
6895
+ }
6896
+ if (tmp) {
6897
+ newChild.setOwnerDocument_y2jzm3_k$(this);
6898
+ }
6899
+ return protoOf(AbstractParentNode).insertBefore_6pfuhd_k$.call(this, newChild, refChild);
6900
+ };
6901
+ protoOf(AbstractDocument).insertBefore = function (newChild, refChild) {
6902
+ return this.insertBefore_6pfuhd_k$(newChild, refChild);
6903
+ };
6894
6904
  protoOf(AbstractDocument).createAttribute_o7x94q_k$ = function (localName) {
6895
6905
  return this.createAttributeNS_k1gmis_k$('', localName);
6896
6906
  };
@@ -6912,11 +6922,11 @@
6912
6922
  protoOf(AbstractDocument).createElement = function (localName) {
6913
6923
  return this.createElement_83ys4m_k$(localName);
6914
6924
  };
6915
- protoOf(AbstractDocument).setOwnerDocument_s92b8k_k$ = function (ownerDocument) {
6925
+ protoOf(AbstractDocument).setOwnerDocument_p83zv_k$ = function (ownerDocument) {
6916
6926
  throw UnsupportedOperationException_init_$Create$('Cannot set owner document of a document');
6917
6927
  };
6918
- protoOf(AbstractDocument).setOwnerDocument_v3gerw_k$ = function (ownerDocument) {
6919
- return this.setOwnerDocument_s92b8k_k$(ownerDocument);
6928
+ protoOf(AbstractDocument).setOwnerDocument_y2jzm3_k$ = function (ownerDocument) {
6929
+ return this.setOwnerDocument_p83zv_k$(ownerDocument);
6920
6930
  };
6921
6931
  protoOf(AbstractDocument).isEqualNode_2yo7yd_k$ = function (other) {
6922
6932
  var tmp;
@@ -7099,9 +7109,12 @@
7099
7109
  function AbstractElement$lookupNamespaceURI$lambda(it) {
7100
7110
  return get_namespaceURI(it) === 'http://www.w3.org/2000/xmlns/';
7101
7111
  }
7102
- function AbstractElement(ownerDocument, nodeStorage, attrStorage, parentNode) {
7112
+ function AbstractElement(ownerDocument, namespaceURI, localName, prefix, nodeStorage, attrStorage, parentNode) {
7103
7113
  parentNode = parentNode === VOID ? null : parentNode;
7104
7114
  AbstractParentNode.call(this, ownerDocument, nodeStorage, parentNode);
7115
+ this.namespaceURI_1 = namespaceURI;
7116
+ this.localName_1 = localName;
7117
+ this.prefix_1 = prefix;
7105
7118
  var tmp = this;
7106
7119
  tmp._attrStorage_1 = attrStorage(isInterface(this, IAbstractParentNode) ? this : THROW_CCE());
7107
7120
  }
@@ -7113,6 +7126,15 @@
7113
7126
  };
7114
7127
  protoOf(AbstractElement).setNodeValue_11qd86_k$ = function (value) {
7115
7128
  };
7129
+ protoOf(AbstractElement).getNamespaceURI_665tvr_k$ = function () {
7130
+ return this.namespaceURI_1;
7131
+ };
7132
+ protoOf(AbstractElement).getPrefix_bu8bd4_k$ = function () {
7133
+ return this.prefix_1;
7134
+ };
7135
+ protoOf(AbstractElement).getLocalName_k3do2o_k$ = function () {
7136
+ return this.localName_1;
7137
+ };
7116
7138
  protoOf(AbstractElement).getNodeName_i3g7vh_k$ = function () {
7117
7139
  var p = this.getPrefix_bu8bd4_k$();
7118
7140
  var tmp;
@@ -7375,12 +7397,12 @@
7375
7397
  };
7376
7398
  protoOf(AbstractElement).cloneNode_2c8oze_k$ = function (deep) {
7377
7399
  var ownerDocument = this.getOwnerDocument_ni0mrc_k$();
7378
- var u = get_namespaceURI_0(this);
7400
+ var u = this.namespaceURI_1;
7379
7401
  var e;
7380
7402
  switch (u) {
7381
7403
  case null:
7382
7404
  case '':
7383
- e = ownerDocument.createElement_83ys4m_k$(get_localName_0(this));
7405
+ e = ownerDocument.createElement_83ys4m_k$(this.localName_1);
7384
7406
  break;
7385
7407
  default:
7386
7408
  e = ownerDocument.createElementNS_s626zf_k$(u, get_tagName(this));
@@ -7444,21 +7466,6 @@
7444
7466
  parentOrOwner = parentOrOwner === VOID ? null : parentOrOwner;
7445
7467
  AbstractNode.call(this, ownerDocument, parentOrOwner);
7446
7468
  }
7447
- protoOf(AbstractLeafNode).getOwnerDocument_ni0mrc_k$ = function () {
7448
- var tmp0 = protoOf(AbstractNode).getOwnerDocument_ni0mrc_k$.call(this);
7449
- var tmp$ret$0;
7450
- $l$block: {
7451
- // Inline function 'kotlin.checkNotNull' call
7452
- if (tmp0 == null) {
7453
- var message = 'Leaf nodes cannot have a null owner document';
7454
- throw IllegalStateException_init_$Create$(toString(message));
7455
- } else {
7456
- tmp$ret$0 = tmp0;
7457
- break $l$block;
7458
- }
7459
- }
7460
- return tmp$ret$0;
7461
- };
7462
7469
  protoOf(AbstractLeafNode).getFirstChild_80m5z2_k$ = function () {
7463
7470
  return null;
7464
7471
  };
@@ -7576,7 +7583,7 @@
7576
7583
  protoOf(AbstractNode).getOwnerDocument_ni0mrc_k$ = function () {
7577
7584
  return this._ownerDocument_1;
7578
7585
  };
7579
- protoOf(AbstractNode).setOwnerDocument_v3gerw_k$ = function (ownerDocument) {
7586
+ protoOf(AbstractNode).setOwnerDocument_y2jzm3_k$ = function (ownerDocument) {
7580
7587
  this._ownerDocument_1 = ownerDocument;
7581
7588
  };
7582
7589
  protoOf(AbstractNode).getParentElement_x4dfek_k$ = function () {
@@ -7681,7 +7688,7 @@
7681
7688
  function Companion_8() {
7682
7689
  }
7683
7690
  protoOf(Companion_8).setOwnerDocument_dmjwqm_k$ = function (_this__u8e3s4, ownerDocument) {
7684
- (_this__u8e3s4 instanceof AbstractNode ? _this__u8e3s4 : THROW_CCE()).setOwnerDocument_v3gerw_k$(ownerDocument);
7691
+ (_this__u8e3s4 instanceof AbstractNode ? _this__u8e3s4 : THROW_CCE()).setOwnerDocument_y2jzm3_k$(ownerDocument);
7685
7692
  };
7686
7693
  var Companion_instance_10;
7687
7694
  function Companion_getInstance_6() {
@@ -7696,13 +7703,13 @@
7696
7703
  protoOf(AbstractParentNode).get_nodeStorage_3z564w_k$ = function () {
7697
7704
  return this._nodeStorage_1;
7698
7705
  };
7699
- protoOf(AbstractParentNode).setOwnerDocument_v3gerw_k$ = function (ownerDocument) {
7706
+ protoOf(AbstractParentNode).setOwnerDocument_y2jzm3_k$ = function (ownerDocument) {
7700
7707
  var _iterator__ex2g4s = this.getChildNodes_h83x7v_k$().iterator_jk1svi_k$();
7701
7708
  while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
7702
7709
  var c = _iterator__ex2g4s.next_20eer_k$();
7703
7710
  Companion_instance_10.setOwnerDocument_dmjwqm_k$(c, ownerDocument);
7704
7711
  }
7705
- protoOf(AbstractNode).setOwnerDocument_v3gerw_k$.call(this, ownerDocument);
7712
+ protoOf(AbstractNode).setOwnerDocument_y2jzm3_k$.call(this, ownerDocument);
7706
7713
  };
7707
7714
  protoOf(AbstractParentNode).getChildNodes_h83x7v_k$ = function () {
7708
7715
  return this.get_nodeStorage_3z564w_k$().getNodeList_i3hbre_k$();
@@ -7871,20 +7878,19 @@
7871
7878
  AbstractLeafNode.call(this, ownerDocument, parentNode);
7872
7879
  }
7873
7880
  protoOf(AbstractProcessingInstruction).getOwnerDocument_ni0mrc_k$ = function () {
7874
- // Inline function 'kotlin.checkNotNull' call
7875
7881
  var tmp0 = protoOf(AbstractLeafNode).getOwnerDocument_ni0mrc_k$.call(this);
7876
- var tmp$ret$1;
7882
+ var tmp$ret$0;
7877
7883
  $l$block: {
7878
7884
  // Inline function 'kotlin.checkNotNull' call
7879
7885
  if (tmp0 == null) {
7880
- var message = 'Required value was null.';
7886
+ var message = 'Processing instruction nodes cannot have a null owner document';
7881
7887
  throw IllegalStateException_init_$Create$(toString(message));
7882
7888
  } else {
7883
- tmp$ret$1 = tmp0;
7889
+ tmp$ret$0 = tmp0;
7884
7890
  break $l$block;
7885
7891
  }
7886
7892
  }
7887
- return tmp$ret$1;
7893
+ return tmp$ret$0;
7888
7894
  };
7889
7895
  protoOf(AbstractProcessingInstruction).getNodetype_i2rgi6_k$ = function () {
7890
7896
  return NodeType_PROCESSING_INSTRUCTION_NODE_getInstance();
@@ -9594,12 +9600,6 @@
9594
9600
  // Inline function 'kotlin.js.asDynamic' call
9595
9601
  return _this__u8e3s4.childNodes;
9596
9602
  }
9597
- function getOwnerDocument(_this__u8e3s4) {
9598
- // Inline function 'kotlin.js.unsafeCast' call
9599
- // Inline function 'kotlin.js.asDynamic' call
9600
- // Inline function 'kotlin.js.asDynamic' call
9601
- return _this__u8e3s4.ownerDocument;
9602
- }
9603
9603
  function getName_0(_this__u8e3s4) {
9604
9604
  // Inline function 'kotlin.js.unsafeCast' call
9605
9605
  // Inline function 'kotlin.js.asDynamic' call
@@ -9615,12 +9615,12 @@
9615
9615
  // Inline function 'kotlin.js.asDynamic' call
9616
9616
  return _this__u8e3s4.systemId;
9617
9617
  }
9618
- function get_namespaceURI_1(_this__u8e3s4) {
9618
+ function get_namespaceURI_0(_this__u8e3s4) {
9619
9619
  // Inline function 'kotlin.js.unsafeCast' call
9620
9620
  // Inline function 'kotlin.js.asDynamic' call
9621
9621
  return _this__u8e3s4.namespaceURI;
9622
9622
  }
9623
- function get_localName_1(_this__u8e3s4) {
9623
+ function get_localName_0(_this__u8e3s4) {
9624
9624
  // Inline function 'kotlin.js.unsafeCast' call
9625
9625
  // Inline function 'kotlin.js.asDynamic' call
9626
9626
  return _this__u8e3s4.localName;