@ms-cloudpack/remote-cache 0.11.2 → 0.11.3

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.
@@ -745,9 +745,9 @@ var require_commonjs8 = __commonJS({
745
745
  }
746
746
  });
747
747
 
748
- // ../../node_modules/.store/fast-xml-parser-npm-5.2.0-581e306392/package/lib/fxp.cjs
748
+ // ../../node_modules/.store/fast-xml-parser-npm-5.2.1-e4f6e9d302/package/lib/fxp.cjs
749
749
  var require_fxp = __commonJS({
750
- "../../node_modules/.store/fast-xml-parser-npm-5.2.0-581e306392/package/lib/fxp.cjs"(exports, module) {
750
+ "../../node_modules/.store/fast-xml-parser-npm-5.2.1-e4f6e9d302/package/lib/fxp.cjs"(exports, module) {
751
751
  (() => {
752
752
  "use strict";
753
753
  var t = { d: /* @__PURE__ */ __name((e2, n2) => {
@@ -755,28 +755,28 @@ var require_fxp = __commonJS({
755
755
  }, "d"), o: /* @__PURE__ */ __name((t2, e2) => Object.prototype.hasOwnProperty.call(t2, e2), "o"), r: /* @__PURE__ */ __name((t2) => {
756
756
  "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t2, "__esModule", { value: true });
757
757
  }, "r") }, e = {};
758
- t.r(e), t.d(e, { XMLBuilder: /* @__PURE__ */ __name(() => dt, "XMLBuilder"), XMLParser: /* @__PURE__ */ __name(() => it, "XMLParser"), XMLValidator: /* @__PURE__ */ __name(() => gt, "XMLValidator") });
758
+ t.r(e), t.d(e, { XMLBuilder: /* @__PURE__ */ __name(() => gt, "XMLBuilder"), XMLParser: /* @__PURE__ */ __name(() => at, "XMLParser"), XMLValidator: /* @__PURE__ */ __name(() => Nt, "XMLValidator") });
759
759
  const n = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", i = new RegExp("^[" + n + "][" + n + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");
760
- function s(t2, e2) {
760
+ function r(t2, e2) {
761
761
  const n2 = [];
762
762
  let i2 = e2.exec(t2);
763
763
  for (; i2; ) {
764
- const s2 = [];
765
- s2.startIndex = e2.lastIndex - i2[0].length;
766
- const r2 = i2.length;
767
- for (let t3 = 0; t3 < r2; t3++) s2.push(i2[t3]);
768
- n2.push(s2), i2 = e2.exec(t2);
764
+ const r2 = [];
765
+ r2.startIndex = e2.lastIndex - i2[0].length;
766
+ const s2 = i2.length;
767
+ for (let t3 = 0; t3 < s2; t3++) r2.push(i2[t3]);
768
+ n2.push(r2), i2 = e2.exec(t2);
769
769
  }
770
770
  return n2;
771
771
  }
772
- __name(s, "s");
773
- const r = /* @__PURE__ */ __name(function(t2) {
772
+ __name(r, "r");
773
+ const s = /* @__PURE__ */ __name(function(t2) {
774
774
  return !(null == i.exec(t2));
775
- }, "r"), o = { allowBooleanAttributes: false, unpairedTags: [] };
775
+ }, "s"), o = { allowBooleanAttributes: false, unpairedTags: [] };
776
776
  function a(t2, e2) {
777
777
  e2 = Object.assign({}, o, e2);
778
778
  const n2 = [];
779
- let i2 = false, s2 = false;
779
+ let i2 = false, r2 = false;
780
780
  "\uFEFF" === t2[0] && (t2 = t2.substr(1));
781
781
  for (let o2 = 0; o2 < t2.length; o2++) if ("<" === t2[o2] && "?" === t2[o2 + 1]) {
782
782
  if (o2 += 2, o2 = u(t2, o2), o2.err) return o2;
@@ -796,21 +796,21 @@ var require_fxp = __commonJS({
796
796
  "/" === t2[o2] && (d2 = true, o2++);
797
797
  let c2 = "";
798
798
  for (; o2 < t2.length && ">" !== t2[o2] && " " !== t2[o2] && " " !== t2[o2] && "\n" !== t2[o2] && "\r" !== t2[o2]; o2++) c2 += t2[o2];
799
- if (c2 = c2.trim(), "/" === c2[c2.length - 1] && (c2 = c2.substring(0, c2.length - 1), o2--), !r(c2)) {
799
+ if (c2 = c2.trim(), "/" === c2[c2.length - 1] && (c2 = c2.substring(0, c2.length - 1), o2--), !s(c2)) {
800
800
  let e3;
801
801
  return e3 = 0 === c2.trim().length ? "Invalid space after '<'." : "Tag '" + c2 + "' is an invalid name.", x("InvalidTag", e3, N(t2, o2));
802
802
  }
803
- const f2 = p(t2, o2);
804
- if (false === f2) return x("InvalidAttr", "Attributes for '" + c2 + "' have open quote.", N(t2, o2));
805
- let b2 = f2.value;
806
- if (o2 = f2.index, "/" === b2[b2.length - 1]) {
803
+ const p2 = f(t2, o2);
804
+ if (false === p2) return x("InvalidAttr", "Attributes for '" + c2 + "' have open quote.", N(t2, o2));
805
+ let b2 = p2.value;
806
+ if (o2 = p2.index, "/" === b2[b2.length - 1]) {
807
807
  const n3 = o2 - b2.length;
808
808
  b2 = b2.substring(0, b2.length - 1);
809
- const s3 = g(b2, e2);
810
- if (true !== s3) return x(s3.err.code, s3.err.msg, N(t2, n3 + s3.err.line));
809
+ const r3 = g(b2, e2);
810
+ if (true !== r3) return x(r3.err.code, r3.err.msg, N(t2, n3 + r3.err.line));
811
811
  i2 = true;
812
812
  } else if (d2) {
813
- if (!f2.tagClosed) return x("InvalidTag", "Closing tag '" + c2 + "' doesn't have proper closing.", N(t2, o2));
813
+ if (!p2.tagClosed) return x("InvalidTag", "Closing tag '" + c2 + "' doesn't have proper closing.", N(t2, o2));
814
814
  if (b2.trim().length > 0) return x("InvalidTag", "Closing tag '" + c2 + "' can't have attributes or invalid starting.", N(t2, a2));
815
815
  if (0 === n2.length) return x("InvalidTag", "Closing tag '" + c2 + "' has not been opened.", N(t2, a2));
816
816
  {
@@ -819,12 +819,12 @@ var require_fxp = __commonJS({
819
819
  let n3 = N(t2, e3.tagStartPos);
820
820
  return x("InvalidTag", "Expected closing tag '" + e3.tagName + "' (opened in line " + n3.line + ", col " + n3.col + ") instead of closing tag '" + c2 + "'.", N(t2, a2));
821
821
  }
822
- 0 == n2.length && (s2 = true);
822
+ 0 == n2.length && (r2 = true);
823
823
  }
824
824
  } else {
825
- const r2 = g(b2, e2);
826
- if (true !== r2) return x(r2.err.code, r2.err.msg, N(t2, o2 - b2.length + r2.err.line));
827
- if (true === s2) return x("InvalidXml", "Multiple possible root nodes found.", N(t2, o2));
825
+ const s2 = g(b2, e2);
826
+ if (true !== s2) return x(s2.err.code, s2.err.msg, N(t2, o2 - b2.length + s2.err.line));
827
+ if (true === r2) return x("InvalidXml", "Multiple possible root nodes found.", N(t2, o2));
828
828
  -1 !== e2.unpairedTags.indexOf(c2) || n2.push({ tagName: c2, tagStartPos: a2 }), i2 = true;
829
829
  }
830
830
  for (o2++; o2 < t2.length; o2++) if ("<" === t2[o2]) {
@@ -838,7 +838,7 @@ var require_fxp = __commonJS({
838
838
  const e3 = m(t2, o2);
839
839
  if (-1 == e3) return x("InvalidChar", "char '&' is not expected.", N(t2, o2));
840
840
  o2 = e3;
841
- } else if (true === s2 && !l(t2[o2])) return x("InvalidXml", "Extra text at the end", N(t2, o2));
841
+ } else if (true === r2 && !l(t2[o2])) return x("InvalidXml", "Extra text at the end", N(t2, o2));
842
842
  "<" === t2[o2] && o2--;
843
843
  }
844
844
  }
@@ -884,30 +884,30 @@ var require_fxp = __commonJS({
884
884
  }
885
885
  __name(h, "h");
886
886
  const d = '"', c = "'";
887
- function p(t2, e2) {
888
- let n2 = "", i2 = "", s2 = false;
887
+ function f(t2, e2) {
888
+ let n2 = "", i2 = "", r2 = false;
889
889
  for (; e2 < t2.length; e2++) {
890
890
  if (t2[e2] === d || t2[e2] === c) "" === i2 ? i2 = t2[e2] : i2 !== t2[e2] || (i2 = "");
891
891
  else if (">" === t2[e2] && "" === i2) {
892
- s2 = true;
892
+ r2 = true;
893
893
  break;
894
894
  }
895
895
  n2 += t2[e2];
896
896
  }
897
- return "" === i2 && { value: n2, index: e2, tagClosed: s2 };
897
+ return "" === i2 && { value: n2, index: e2, tagClosed: r2 };
898
898
  }
899
- __name(p, "p");
900
- const f = new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`, "g");
899
+ __name(f, "f");
900
+ const p = new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`, "g");
901
901
  function g(t2, e2) {
902
- const n2 = s(t2, f), i2 = {};
902
+ const n2 = r(t2, p), i2 = {};
903
903
  for (let t3 = 0; t3 < n2.length; t3++) {
904
- if (0 === n2[t3][1].length) return x("InvalidAttr", "Attribute '" + n2[t3][2] + "' has no space in starting.", v(n2[t3]));
905
- if (void 0 !== n2[t3][3] && void 0 === n2[t3][4]) return x("InvalidAttr", "Attribute '" + n2[t3][2] + "' is without value.", v(n2[t3]));
906
- if (void 0 === n2[t3][3] && !e2.allowBooleanAttributes) return x("InvalidAttr", "boolean attribute '" + n2[t3][2] + "' is not allowed.", v(n2[t3]));
907
- const s2 = n2[t3][2];
908
- if (!b(s2)) return x("InvalidAttr", "Attribute '" + s2 + "' is an invalid name.", v(n2[t3]));
909
- if (i2.hasOwnProperty(s2)) return x("InvalidAttr", "Attribute '" + s2 + "' is repeated.", v(n2[t3]));
910
- i2[s2] = 1;
904
+ if (0 === n2[t3][1].length) return x("InvalidAttr", "Attribute '" + n2[t3][2] + "' has no space in starting.", E(n2[t3]));
905
+ if (void 0 !== n2[t3][3] && void 0 === n2[t3][4]) return x("InvalidAttr", "Attribute '" + n2[t3][2] + "' is without value.", E(n2[t3]));
906
+ if (void 0 === n2[t3][3] && !e2.allowBooleanAttributes) return x("InvalidAttr", "boolean attribute '" + n2[t3][2] + "' is not allowed.", E(n2[t3]));
907
+ const r2 = n2[t3][2];
908
+ if (!b(r2)) return x("InvalidAttr", "Attribute '" + r2 + "' is an invalid name.", E(n2[t3]));
909
+ if (i2.hasOwnProperty(r2)) return x("InvalidAttr", "Attribute '" + r2 + "' is repeated.", E(n2[t3]));
910
+ i2[r2] = 1;
911
911
  }
912
912
  return true;
913
913
  }
@@ -935,7 +935,7 @@ var require_fxp = __commonJS({
935
935
  }
936
936
  __name(x, "x");
937
937
  function b(t2) {
938
- return r(t2);
938
+ return s(t2);
939
939
  }
940
940
  __name(b, "b");
941
941
  function N(t2, e2) {
@@ -943,11 +943,11 @@ var require_fxp = __commonJS({
943
943
  return { line: n2.length, col: n2[n2.length - 1].length + 1 };
944
944
  }
945
945
  __name(N, "N");
946
- function v(t2) {
946
+ function E(t2) {
947
947
  return t2.startIndex + t2[1].length;
948
948
  }
949
- __name(v, "v");
950
- const E = { preserveOrder: false, attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, removeNSPrefix: false, allowBooleanAttributes: false, parseTagValue: true, parseAttributeValue: false, trimValues: true, cdataPropName: false, numberParseOptions: { hex: true, leadingZeros: true, eNotation: true }, tagValueProcessor: /* @__PURE__ */ __name(function(t2, e2) {
949
+ __name(E, "E");
950
+ const v = { preserveOrder: false, attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, removeNSPrefix: false, allowBooleanAttributes: false, parseTagValue: true, parseAttributeValue: false, trimValues: true, cdataPropName: false, numberParseOptions: { hex: true, leadingZeros: true, eNotation: true }, tagValueProcessor: /* @__PURE__ */ __name(function(t2, e2) {
951
951
  return e2;
952
952
  }, "tagValueProcessor"), attributeValueProcessor: /* @__PURE__ */ __name(function(t2, e2) {
953
953
  return e2;
@@ -972,25 +972,31 @@ var require_fxp = __commonJS({
972
972
  };
973
973
  __name(_T, "T");
974
974
  let T = _T;
975
- function P(t2, e2) {
975
+ function w(t2, e2) {
976
976
  const n2 = {};
977
977
  if ("O" !== t2[e2 + 3] || "C" !== t2[e2 + 4] || "T" !== t2[e2 + 5] || "Y" !== t2[e2 + 6] || "P" !== t2[e2 + 7] || "E" !== t2[e2 + 8]) throw new Error("Invalid Tag instead of DOCTYPE");
978
978
  {
979
979
  e2 += 9;
980
- let i2 = 1, s2 = false, r2 = false, o2 = "";
981
- for (; e2 < t2.length; e2++) if ("<" !== t2[e2] || r2) if (">" === t2[e2]) {
982
- if (r2 ? "-" === t2[e2 - 1] && "-" === t2[e2 - 2] && (r2 = false, i2--) : i2--, 0 === i2) break;
983
- } else "[" === t2[e2] ? s2 = true : o2 += t2[e2];
980
+ let i2 = 1, r2 = false, s2 = false, o2 = "";
981
+ for (; e2 < t2.length; e2++) if ("<" !== t2[e2] || s2) if (">" === t2[e2]) {
982
+ if (s2 ? "-" === t2[e2 - 1] && "-" === t2[e2 - 2] && (s2 = false, i2--) : i2--, 0 === i2) break;
983
+ } else "[" === t2[e2] ? r2 = true : o2 += t2[e2];
984
984
  else {
985
- if (s2 && A(t2, e2)) {
986
- let i3, s3;
987
- e2 += 7, [i3, s3, e2] = O(t2, e2 + 1), -1 === s3.indexOf("&") && (n2[j(i3)] = { regx: RegExp(`&${i3};`, "g"), val: s3 });
988
- } else if (s2 && I(t2, e2)) e2 += 8;
989
- else if (s2 && C(t2, e2)) e2 += 8;
990
- else if (s2 && S(t2, e2)) e2 += 9;
991
- else {
992
- if (!w) throw new Error("Invalid DOCTYPE");
993
- r2 = true;
985
+ if (r2 && $(t2, e2)) {
986
+ let i3, r3;
987
+ e2 += 7, [i3, r3, e2] = O(t2, e2 + 1), -1 === r3.indexOf("&") && (n2[i3] = { regx: RegExp(`&${i3};`, "g"), val: r3 });
988
+ } else if (r2 && j(t2, e2)) {
989
+ e2 += 8;
990
+ const { index: n3 } = S(t2, e2 + 1);
991
+ e2 = n3;
992
+ } else if (r2 && D(t2, e2)) e2 += 8;
993
+ else if (r2 && V(t2, e2)) {
994
+ e2 += 9;
995
+ const { index: n3 } = A(t2, e2 + 1);
996
+ e2 = n3;
997
+ } else {
998
+ if (!C) throw new Error("Invalid DOCTYPE");
999
+ s2 = true;
994
1000
  }
995
1001
  i2++, o2 = "";
996
1002
  }
@@ -998,44 +1004,84 @@ var require_fxp = __commonJS({
998
1004
  }
999
1005
  return { entities: n2, i: e2 };
1000
1006
  }
1001
- __name(P, "P");
1007
+ __name(w, "w");
1008
+ const P = /* @__PURE__ */ __name((t2, e2) => {
1009
+ for (; e2 < t2.length && /\s/.test(t2[e2]); ) e2++;
1010
+ return e2;
1011
+ }, "P");
1002
1012
  function O(t2, e2) {
1013
+ e2 = P(t2, e2);
1003
1014
  let n2 = "";
1004
- for (; e2 < t2.length && "'" !== t2[e2] && '"' !== t2[e2]; e2++) n2 += t2[e2];
1005
- if (n2 = n2.trim(), -1 !== n2.indexOf(" ")) throw new Error("External entites are not supported");
1006
- const i2 = t2[e2++];
1007
- let s2 = "";
1008
- for (; e2 < t2.length && t2[e2] !== i2; e2++) s2 += t2[e2];
1009
- return [n2, s2, e2];
1015
+ for (; e2 < t2.length && !/\s/.test(t2[e2]) && '"' !== t2[e2] && "'" !== t2[e2]; ) n2 += t2[e2], e2++;
1016
+ if (_(n2), e2 = P(t2, e2), "SYSTEM" === t2.substring(e2, e2 + 6).toUpperCase()) throw new Error("External entities are not supported");
1017
+ if ("%" === t2[e2]) throw new Error("Parameter entities are not supported");
1018
+ let i2 = "";
1019
+ return [e2, i2] = I(t2, e2, "entity"), [n2, i2, --e2];
1010
1020
  }
1011
1021
  __name(O, "O");
1012
- function w(t2, e2) {
1013
- return "!" === t2[e2 + 1] && "-" === t2[e2 + 2] && "-" === t2[e2 + 3];
1014
- }
1015
- __name(w, "w");
1016
1022
  function A(t2, e2) {
1017
- return "!" === t2[e2 + 1] && "E" === t2[e2 + 2] && "N" === t2[e2 + 3] && "T" === t2[e2 + 4] && "I" === t2[e2 + 5] && "T" === t2[e2 + 6] && "Y" === t2[e2 + 7];
1023
+ e2 = P(t2, e2);
1024
+ let n2 = "";
1025
+ for (; e2 < t2.length && !/\s/.test(t2[e2]); ) n2 += t2[e2], e2++;
1026
+ _(n2), e2 = P(t2, e2);
1027
+ const i2 = t2.substring(e2, e2 + 6).toUpperCase();
1028
+ if ("SYSTEM" !== i2 && "PUBLIC" !== i2) throw new Error(`Expected SYSTEM or PUBLIC, found "${i2}"`);
1029
+ e2 += i2.length, e2 = P(t2, e2);
1030
+ let r2 = null, s2 = null;
1031
+ if ("PUBLIC" === i2) [e2, r2] = I(t2, e2, "publicIdentifier"), '"' !== t2[e2 = P(t2, e2)] && "'" !== t2[e2] || ([e2, s2] = I(t2, e2, "systemIdentifier"));
1032
+ else if ("SYSTEM" === i2 && ([e2, s2] = I(t2, e2, "systemIdentifier"), !s2)) throw new Error("Missing mandatory system identifier for SYSTEM notation");
1033
+ return { notationName: n2, publicIdentifier: r2, systemIdentifier: s2, index: --e2 };
1018
1034
  }
1019
1035
  __name(A, "A");
1020
- function I(t2, e2) {
1021
- return "!" === t2[e2 + 1] && "E" === t2[e2 + 2] && "L" === t2[e2 + 3] && "E" === t2[e2 + 4] && "M" === t2[e2 + 5] && "E" === t2[e2 + 6] && "N" === t2[e2 + 7] && "T" === t2[e2 + 8];
1036
+ function I(t2, e2, n2) {
1037
+ let i2 = "";
1038
+ const r2 = t2[e2];
1039
+ if ('"' !== r2 && "'" !== r2) throw new Error(`Expected quoted string, found "${r2}"`);
1040
+ for (e2++; e2 < t2.length && t2[e2] !== r2; ) i2 += t2[e2], e2++;
1041
+ if (t2[e2] !== r2) throw new Error(`Unterminated ${n2} value`);
1042
+ return [++e2, i2];
1022
1043
  }
1023
1044
  __name(I, "I");
1045
+ function S(t2, e2) {
1046
+ e2 = P(t2, e2);
1047
+ let n2 = "";
1048
+ for (; e2 < t2.length && !/\s/.test(t2[e2]); ) n2 += t2[e2], e2++;
1049
+ if (!_(n2)) throw new Error(`Invalid element name: "${n2}"`);
1050
+ if ("(" !== t2[e2 = P(t2, e2)]) throw new Error(`Expected '(', found "${t2[e2]}"`);
1051
+ e2++;
1052
+ let i2 = "";
1053
+ for (; e2 < t2.length && ")" !== t2[e2]; ) i2 += t2[e2], e2++;
1054
+ if (")" !== t2[e2]) throw new Error("Unterminated content model");
1055
+ return { elementName: n2, contentModel: i2.trim(), index: e2 };
1056
+ }
1057
+ __name(S, "S");
1024
1058
  function C(t2, e2) {
1025
- return "!" === t2[e2 + 1] && "A" === t2[e2 + 2] && "T" === t2[e2 + 3] && "T" === t2[e2 + 4] && "L" === t2[e2 + 5] && "I" === t2[e2 + 6] && "S" === t2[e2 + 7] && "T" === t2[e2 + 8];
1059
+ return "!" === t2[e2 + 1] && "-" === t2[e2 + 2] && "-" === t2[e2 + 3];
1026
1060
  }
1027
1061
  __name(C, "C");
1028
- function S(t2, e2) {
1029
- return "!" === t2[e2 + 1] && "N" === t2[e2 + 2] && "O" === t2[e2 + 3] && "T" === t2[e2 + 4] && "A" === t2[e2 + 5] && "T" === t2[e2 + 6] && "I" === t2[e2 + 7] && "O" === t2[e2 + 8] && "N" === t2[e2 + 9];
1062
+ function $(t2, e2) {
1063
+ return "!" === t2[e2 + 1] && "E" === t2[e2 + 2] && "N" === t2[e2 + 3] && "T" === t2[e2 + 4] && "I" === t2[e2 + 5] && "T" === t2[e2 + 6] && "Y" === t2[e2 + 7];
1030
1064
  }
1031
- __name(S, "S");
1032
- function j(t2) {
1033
- if (r(t2)) return t2;
1034
- throw new Error(`Invalid entity name ${t2}`);
1065
+ __name($, "$");
1066
+ function j(t2, e2) {
1067
+ return "!" === t2[e2 + 1] && "E" === t2[e2 + 2] && "L" === t2[e2 + 3] && "E" === t2[e2 + 4] && "M" === t2[e2 + 5] && "E" === t2[e2 + 6] && "N" === t2[e2 + 7] && "T" === t2[e2 + 8];
1035
1068
  }
1036
1069
  __name(j, "j");
1037
- const D = /^[-+]?0x[a-fA-F0-9]+$/, V = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/, $ = { hex: true, leadingZeros: true, decimalPoint: ".", eNotation: true };
1070
+ function D(t2, e2) {
1071
+ return "!" === t2[e2 + 1] && "A" === t2[e2 + 2] && "T" === t2[e2 + 3] && "T" === t2[e2 + 4] && "L" === t2[e2 + 5] && "I" === t2[e2 + 6] && "S" === t2[e2 + 7] && "T" === t2[e2 + 8];
1072
+ }
1073
+ __name(D, "D");
1074
+ function V(t2, e2) {
1075
+ return "!" === t2[e2 + 1] && "N" === t2[e2 + 2] && "O" === t2[e2 + 3] && "T" === t2[e2 + 4] && "A" === t2[e2 + 5] && "T" === t2[e2 + 6] && "I" === t2[e2 + 7] && "O" === t2[e2 + 8] && "N" === t2[e2 + 9];
1076
+ }
1077
+ __name(V, "V");
1038
1078
  function _(t2) {
1079
+ if (s(t2)) return t2;
1080
+ throw new Error(`Invalid entity name ${t2}`);
1081
+ }
1082
+ __name(_, "_");
1083
+ const k = /^[-+]?0x[a-fA-F0-9]+$/, F = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/, M = { hex: true, leadingZeros: true, decimalPoint: ".", eNotation: true };
1084
+ function L(t2) {
1039
1085
  return "function" == typeof t2 ? t2 : Array.isArray(t2) ? (e2) => {
1040
1086
  for (const n2 of t2) {
1041
1087
  if ("string" == typeof n2 && e2 === n2) return true;
@@ -1043,31 +1089,31 @@ var require_fxp = __commonJS({
1043
1089
  }
1044
1090
  } : () => false;
1045
1091
  }
1046
- __name(_, "_");
1047
- const _k = class _k {
1092
+ __name(L, "L");
1093
+ const _B = class _B {
1048
1094
  constructor(t2) {
1049
- this.options = t2, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = { apos: { regex: /&(apos|#39|#x27);/g, val: "'" }, gt: { regex: /&(gt|#62|#x3E);/g, val: ">" }, lt: { regex: /&(lt|#60|#x3C);/g, val: "<" }, quot: { regex: /&(quot|#34|#x22);/g, val: '"' } }, this.ampEntity = { regex: /&(amp|#38|#x26);/g, val: "&" }, this.htmlEntities = { space: { regex: /&(nbsp|#160);/g, val: " " }, cent: { regex: /&(cent|#162);/g, val: "\xA2" }, pound: { regex: /&(pound|#163);/g, val: "\xA3" }, yen: { regex: /&(yen|#165);/g, val: "\xA5" }, euro: { regex: /&(euro|#8364);/g, val: "\u20AC" }, copyright: { regex: /&(copy|#169);/g, val: "\xA9" }, reg: { regex: /&(reg|#174);/g, val: "\xAE" }, inr: { regex: /&(inr|#8377);/g, val: "\u20B9" }, num_dec: { regex: /&#([0-9]{1,7});/g, val: /* @__PURE__ */ __name((t3, e2) => String.fromCodePoint(Number.parseInt(e2, 10)), "val") }, num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: /* @__PURE__ */ __name((t3, e2) => String.fromCodePoint(Number.parseInt(e2, 16)), "val") } }, this.addExternalEntities = F, this.parseXml = X, this.parseTextData = M, this.resolveNameSpace = L, this.buildAttributesMap = G, this.isItStopNode = Y, this.replaceEntitiesValue = U, this.readStopNodeData = z, this.saveTextToParentTag = Z, this.addChild = R, this.ignoreAttributesFn = _(this.options.ignoreAttributes);
1095
+ this.options = t2, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = { apos: { regex: /&(apos|#39|#x27);/g, val: "'" }, gt: { regex: /&(gt|#62|#x3E);/g, val: ">" }, lt: { regex: /&(lt|#60|#x3C);/g, val: "<" }, quot: { regex: /&(quot|#34|#x22);/g, val: '"' } }, this.ampEntity = { regex: /&(amp|#38|#x26);/g, val: "&" }, this.htmlEntities = { space: { regex: /&(nbsp|#160);/g, val: " " }, cent: { regex: /&(cent|#162);/g, val: "\xA2" }, pound: { regex: /&(pound|#163);/g, val: "\xA3" }, yen: { regex: /&(yen|#165);/g, val: "\xA5" }, euro: { regex: /&(euro|#8364);/g, val: "\u20AC" }, copyright: { regex: /&(copy|#169);/g, val: "\xA9" }, reg: { regex: /&(reg|#174);/g, val: "\xAE" }, inr: { regex: /&(inr|#8377);/g, val: "\u20B9" }, num_dec: { regex: /&#([0-9]{1,7});/g, val: /* @__PURE__ */ __name((t3, e2) => String.fromCodePoint(Number.parseInt(e2, 10)), "val") }, num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: /* @__PURE__ */ __name((t3, e2) => String.fromCodePoint(Number.parseInt(e2, 16)), "val") } }, this.addExternalEntities = U, this.parseXml = Z, this.parseTextData = G, this.resolveNameSpace = X, this.buildAttributesMap = Y, this.isItStopNode = J, this.replaceEntitiesValue = W, this.readStopNodeData = Q, this.saveTextToParentTag = z, this.addChild = q, this.ignoreAttributesFn = L(this.options.ignoreAttributes);
1050
1096
  }
1051
1097
  };
1052
- __name(_k, "k");
1053
- let k = _k;
1054
- function F(t2) {
1098
+ __name(_B, "B");
1099
+ let B = _B;
1100
+ function U(t2) {
1055
1101
  const e2 = Object.keys(t2);
1056
1102
  for (let n2 = 0; n2 < e2.length; n2++) {
1057
1103
  const i2 = e2[n2];
1058
1104
  this.lastEntities[i2] = { regex: new RegExp("&" + i2 + ";", "g"), val: t2[i2] };
1059
1105
  }
1060
1106
  }
1061
- __name(F, "F");
1062
- function M(t2, e2, n2, i2, s2, r2, o2) {
1107
+ __name(U, "U");
1108
+ function G(t2, e2, n2, i2, r2, s2, o2) {
1063
1109
  if (void 0 !== t2 && (this.options.trimValues && !i2 && (t2 = t2.trim()), t2.length > 0)) {
1064
1110
  o2 || (t2 = this.replaceEntitiesValue(t2));
1065
- const i3 = this.options.tagValueProcessor(e2, t2, n2, s2, r2);
1066
- return null == i3 ? t2 : typeof i3 != typeof t2 || i3 !== t2 ? i3 : this.options.trimValues || t2.trim() === t2 ? J(t2, this.options.parseTagValue, this.options.numberParseOptions) : t2;
1111
+ const i3 = this.options.tagValueProcessor(e2, t2, n2, r2, s2);
1112
+ return null == i3 ? t2 : typeof i3 != typeof t2 || i3 !== t2 ? i3 : this.options.trimValues || t2.trim() === t2 ? tt(t2, this.options.parseTagValue, this.options.numberParseOptions) : t2;
1067
1113
  }
1068
1114
  }
1069
- __name(M, "M");
1070
- function L(t2) {
1115
+ __name(G, "G");
1116
+ function X(t2) {
1071
1117
  if (this.options.removeNSPrefix) {
1072
1118
  const e2 = t2.split(":"), n2 = "/" === t2.charAt(0) ? "/" : "";
1073
1119
  if ("xmlns" === e2[0]) return "";
@@ -1075,111 +1121,111 @@ var require_fxp = __commonJS({
1075
1121
  }
1076
1122
  return t2;
1077
1123
  }
1078
- __name(L, "L");
1079
- const B = new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`, "gm");
1080
- function G(t2, e2, n2) {
1124
+ __name(X, "X");
1125
+ const R = new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`, "gm");
1126
+ function Y(t2, e2, n2) {
1081
1127
  if (true !== this.options.ignoreAttributes && "string" == typeof t2) {
1082
- const n3 = s(t2, B), i2 = n3.length, r2 = {};
1128
+ const n3 = r(t2, R), i2 = n3.length, s2 = {};
1083
1129
  for (let t3 = 0; t3 < i2; t3++) {
1084
1130
  const i3 = this.resolveNameSpace(n3[t3][1]);
1085
1131
  if (this.ignoreAttributesFn(i3, e2)) continue;
1086
- let s2 = n3[t3][4], o2 = this.options.attributeNamePrefix + i3;
1087
- if (i3.length) if (this.options.transformAttributeName && (o2 = this.options.transformAttributeName(o2)), "__proto__" === o2 && (o2 = "#__proto__"), void 0 !== s2) {
1088
- this.options.trimValues && (s2 = s2.trim()), s2 = this.replaceEntitiesValue(s2);
1089
- const t4 = this.options.attributeValueProcessor(i3, s2, e2);
1090
- r2[o2] = null == t4 ? s2 : typeof t4 != typeof s2 || t4 !== s2 ? t4 : J(s2, this.options.parseAttributeValue, this.options.numberParseOptions);
1091
- } else this.options.allowBooleanAttributes && (r2[o2] = true);
1092
- }
1093
- if (!Object.keys(r2).length) return;
1132
+ let r2 = n3[t3][4], o2 = this.options.attributeNamePrefix + i3;
1133
+ if (i3.length) if (this.options.transformAttributeName && (o2 = this.options.transformAttributeName(o2)), "__proto__" === o2 && (o2 = "#__proto__"), void 0 !== r2) {
1134
+ this.options.trimValues && (r2 = r2.trim()), r2 = this.replaceEntitiesValue(r2);
1135
+ const t4 = this.options.attributeValueProcessor(i3, r2, e2);
1136
+ s2[o2] = null == t4 ? r2 : typeof t4 != typeof r2 || t4 !== r2 ? t4 : tt(r2, this.options.parseAttributeValue, this.options.numberParseOptions);
1137
+ } else this.options.allowBooleanAttributes && (s2[o2] = true);
1138
+ }
1139
+ if (!Object.keys(s2).length) return;
1094
1140
  if (this.options.attributesGroupName) {
1095
1141
  const t3 = {};
1096
- return t3[this.options.attributesGroupName] = r2, t3;
1142
+ return t3[this.options.attributesGroupName] = s2, t3;
1097
1143
  }
1098
- return r2;
1144
+ return s2;
1099
1145
  }
1100
1146
  }
1101
- __name(G, "G");
1102
- const X = /* @__PURE__ */ __name(function(t2) {
1147
+ __name(Y, "Y");
1148
+ const Z = /* @__PURE__ */ __name(function(t2) {
1103
1149
  t2 = t2.replace(/\r\n?/g, "\n");
1104
1150
  const e2 = new T("!xml");
1105
- let n2 = e2, i2 = "", s2 = "";
1106
- for (let r2 = 0; r2 < t2.length; r2++) if ("<" === t2[r2]) if ("/" === t2[r2 + 1]) {
1107
- const e3 = q(t2, ">", r2, "Closing Tag is not closed.");
1108
- let o2 = t2.substring(r2 + 2, e3).trim();
1151
+ let n2 = e2, i2 = "", r2 = "";
1152
+ for (let s2 = 0; s2 < t2.length; s2++) if ("<" === t2[s2]) if ("/" === t2[s2 + 1]) {
1153
+ const e3 = H(t2, ">", s2, "Closing Tag is not closed.");
1154
+ let o2 = t2.substring(s2 + 2, e3).trim();
1109
1155
  if (this.options.removeNSPrefix) {
1110
1156
  const t3 = o2.indexOf(":");
1111
1157
  -1 !== t3 && (o2 = o2.substr(t3 + 1));
1112
1158
  }
1113
- this.options.transformTagName && (o2 = this.options.transformTagName(o2)), n2 && (i2 = this.saveTextToParentTag(i2, n2, s2));
1114
- const a2 = s2.substring(s2.lastIndexOf(".") + 1);
1159
+ this.options.transformTagName && (o2 = this.options.transformTagName(o2)), n2 && (i2 = this.saveTextToParentTag(i2, n2, r2));
1160
+ const a2 = r2.substring(r2.lastIndexOf(".") + 1);
1115
1161
  if (o2 && -1 !== this.options.unpairedTags.indexOf(o2)) throw new Error(`Unpaired tag can not be used as closing tag: </${o2}>`);
1116
1162
  let l2 = 0;
1117
- a2 && -1 !== this.options.unpairedTags.indexOf(a2) ? (l2 = s2.lastIndexOf(".", s2.lastIndexOf(".") - 1), this.tagsNodeStack.pop()) : l2 = s2.lastIndexOf("."), s2 = s2.substring(0, l2), n2 = this.tagsNodeStack.pop(), i2 = "", r2 = e3;
1118
- } else if ("?" === t2[r2 + 1]) {
1119
- let e3 = W(t2, r2, false, "?>");
1163
+ a2 && -1 !== this.options.unpairedTags.indexOf(a2) ? (l2 = r2.lastIndexOf(".", r2.lastIndexOf(".") - 1), this.tagsNodeStack.pop()) : l2 = r2.lastIndexOf("."), r2 = r2.substring(0, l2), n2 = this.tagsNodeStack.pop(), i2 = "", s2 = e3;
1164
+ } else if ("?" === t2[s2 + 1]) {
1165
+ let e3 = K(t2, s2, false, "?>");
1120
1166
  if (!e3) throw new Error("Pi Tag is not closed.");
1121
- if (i2 = this.saveTextToParentTag(i2, n2, s2), this.options.ignoreDeclaration && "?xml" === e3.tagName || this.options.ignorePiTags) ;
1167
+ if (i2 = this.saveTextToParentTag(i2, n2, r2), this.options.ignoreDeclaration && "?xml" === e3.tagName || this.options.ignorePiTags) ;
1122
1168
  else {
1123
1169
  const t3 = new T(e3.tagName);
1124
- t3.add(this.options.textNodeName, ""), e3.tagName !== e3.tagExp && e3.attrExpPresent && (t3[":@"] = this.buildAttributesMap(e3.tagExp, s2, e3.tagName)), this.addChild(n2, t3, s2, r2);
1170
+ t3.add(this.options.textNodeName, ""), e3.tagName !== e3.tagExp && e3.attrExpPresent && (t3[":@"] = this.buildAttributesMap(e3.tagExp, r2, e3.tagName)), this.addChild(n2, t3, r2, s2);
1125
1171
  }
1126
- r2 = e3.closeIndex + 1;
1127
- } else if ("!--" === t2.substr(r2 + 1, 3)) {
1128
- const e3 = q(t2, "-->", r2 + 4, "Comment is not closed.");
1172
+ s2 = e3.closeIndex + 1;
1173
+ } else if ("!--" === t2.substr(s2 + 1, 3)) {
1174
+ const e3 = H(t2, "-->", s2 + 4, "Comment is not closed.");
1129
1175
  if (this.options.commentPropName) {
1130
- const o2 = t2.substring(r2 + 4, e3 - 2);
1131
- i2 = this.saveTextToParentTag(i2, n2, s2), n2.add(this.options.commentPropName, [{ [this.options.textNodeName]: o2 }]);
1132
- }
1133
- r2 = e3;
1134
- } else if ("!D" === t2.substr(r2 + 1, 2)) {
1135
- const e3 = P(t2, r2);
1136
- this.docTypeEntities = e3.entities, r2 = e3.i;
1137
- } else if ("![" === t2.substr(r2 + 1, 2)) {
1138
- const e3 = q(t2, "]]>", r2, "CDATA is not closed.") - 2, o2 = t2.substring(r2 + 9, e3);
1139
- i2 = this.saveTextToParentTag(i2, n2, s2);
1140
- let a2 = this.parseTextData(o2, n2.tagname, s2, true, false, true, true);
1141
- null == a2 && (a2 = ""), this.options.cdataPropName ? n2.add(this.options.cdataPropName, [{ [this.options.textNodeName]: o2 }]) : n2.add(this.options.textNodeName, a2), r2 = e3 + 2;
1176
+ const o2 = t2.substring(s2 + 4, e3 - 2);
1177
+ i2 = this.saveTextToParentTag(i2, n2, r2), n2.add(this.options.commentPropName, [{ [this.options.textNodeName]: o2 }]);
1178
+ }
1179
+ s2 = e3;
1180
+ } else if ("!D" === t2.substr(s2 + 1, 2)) {
1181
+ const e3 = w(t2, s2);
1182
+ this.docTypeEntities = e3.entities, s2 = e3.i;
1183
+ } else if ("![" === t2.substr(s2 + 1, 2)) {
1184
+ const e3 = H(t2, "]]>", s2, "CDATA is not closed.") - 2, o2 = t2.substring(s2 + 9, e3);
1185
+ i2 = this.saveTextToParentTag(i2, n2, r2);
1186
+ let a2 = this.parseTextData(o2, n2.tagname, r2, true, false, true, true);
1187
+ null == a2 && (a2 = ""), this.options.cdataPropName ? n2.add(this.options.cdataPropName, [{ [this.options.textNodeName]: o2 }]) : n2.add(this.options.textNodeName, a2), s2 = e3 + 2;
1142
1188
  } else {
1143
- let o2 = W(t2, r2, this.options.removeNSPrefix), a2 = o2.tagName;
1189
+ let o2 = K(t2, s2, this.options.removeNSPrefix), a2 = o2.tagName;
1144
1190
  const l2 = o2.rawTagName;
1145
1191
  let u2 = o2.tagExp, h2 = o2.attrExpPresent, d2 = o2.closeIndex;
1146
- this.options.transformTagName && (a2 = this.options.transformTagName(a2)), n2 && i2 && "!xml" !== n2.tagname && (i2 = this.saveTextToParentTag(i2, n2, s2, false));
1192
+ this.options.transformTagName && (a2 = this.options.transformTagName(a2)), n2 && i2 && "!xml" !== n2.tagname && (i2 = this.saveTextToParentTag(i2, n2, r2, false));
1147
1193
  const c2 = n2;
1148
- c2 && -1 !== this.options.unpairedTags.indexOf(c2.tagname) && (n2 = this.tagsNodeStack.pop(), s2 = s2.substring(0, s2.lastIndexOf("."))), a2 !== e2.tagname && (s2 += s2 ? "." + a2 : a2);
1149
- const p2 = r2;
1150
- if (this.isItStopNode(this.options.stopNodes, s2, a2)) {
1194
+ c2 && -1 !== this.options.unpairedTags.indexOf(c2.tagname) && (n2 = this.tagsNodeStack.pop(), r2 = r2.substring(0, r2.lastIndexOf("."))), a2 !== e2.tagname && (r2 += r2 ? "." + a2 : a2);
1195
+ const f2 = s2;
1196
+ if (this.isItStopNode(this.options.stopNodes, r2, a2)) {
1151
1197
  let e3 = "";
1152
- if (u2.length > 0 && u2.lastIndexOf("/") === u2.length - 1) "/" === a2[a2.length - 1] ? (a2 = a2.substr(0, a2.length - 1), s2 = s2.substr(0, s2.length - 1), u2 = a2) : u2 = u2.substr(0, u2.length - 1), r2 = o2.closeIndex;
1153
- else if (-1 !== this.options.unpairedTags.indexOf(a2)) r2 = o2.closeIndex;
1198
+ if (u2.length > 0 && u2.lastIndexOf("/") === u2.length - 1) "/" === a2[a2.length - 1] ? (a2 = a2.substr(0, a2.length - 1), r2 = r2.substr(0, r2.length - 1), u2 = a2) : u2 = u2.substr(0, u2.length - 1), s2 = o2.closeIndex;
1199
+ else if (-1 !== this.options.unpairedTags.indexOf(a2)) s2 = o2.closeIndex;
1154
1200
  else {
1155
1201
  const n3 = this.readStopNodeData(t2, l2, d2 + 1);
1156
1202
  if (!n3) throw new Error(`Unexpected end of ${l2}`);
1157
- r2 = n3.i, e3 = n3.tagContent;
1203
+ s2 = n3.i, e3 = n3.tagContent;
1158
1204
  }
1159
1205
  const i3 = new T(a2);
1160
- a2 !== u2 && h2 && (i3[":@"] = this.buildAttributesMap(u2, s2, a2)), e3 && (e3 = this.parseTextData(e3, a2, s2, true, h2, true, true)), s2 = s2.substr(0, s2.lastIndexOf(".")), i3.add(this.options.textNodeName, e3), this.addChild(n2, i3, s2, p2);
1206
+ a2 !== u2 && h2 && (i3[":@"] = this.buildAttributesMap(u2, r2, a2)), e3 && (e3 = this.parseTextData(e3, a2, r2, true, h2, true, true)), r2 = r2.substr(0, r2.lastIndexOf(".")), i3.add(this.options.textNodeName, e3), this.addChild(n2, i3, r2, f2);
1161
1207
  } else {
1162
1208
  if (u2.length > 0 && u2.lastIndexOf("/") === u2.length - 1) {
1163
- "/" === a2[a2.length - 1] ? (a2 = a2.substr(0, a2.length - 1), s2 = s2.substr(0, s2.length - 1), u2 = a2) : u2 = u2.substr(0, u2.length - 1), this.options.transformTagName && (a2 = this.options.transformTagName(a2));
1209
+ "/" === a2[a2.length - 1] ? (a2 = a2.substr(0, a2.length - 1), r2 = r2.substr(0, r2.length - 1), u2 = a2) : u2 = u2.substr(0, u2.length - 1), this.options.transformTagName && (a2 = this.options.transformTagName(a2));
1164
1210
  const t3 = new T(a2);
1165
- a2 !== u2 && h2 && (t3[":@"] = this.buildAttributesMap(u2, s2, a2)), this.addChild(n2, t3, s2, p2), s2 = s2.substr(0, s2.lastIndexOf("."));
1211
+ a2 !== u2 && h2 && (t3[":@"] = this.buildAttributesMap(u2, r2, a2)), this.addChild(n2, t3, r2, f2), r2 = r2.substr(0, r2.lastIndexOf("."));
1166
1212
  } else {
1167
1213
  const t3 = new T(a2);
1168
- this.tagsNodeStack.push(n2), a2 !== u2 && h2 && (t3[":@"] = this.buildAttributesMap(u2, s2, a2)), this.addChild(n2, t3, s2, p2), n2 = t3;
1214
+ this.tagsNodeStack.push(n2), a2 !== u2 && h2 && (t3[":@"] = this.buildAttributesMap(u2, r2, a2)), this.addChild(n2, t3, r2, f2), n2 = t3;
1169
1215
  }
1170
- i2 = "", r2 = d2;
1216
+ i2 = "", s2 = d2;
1171
1217
  }
1172
1218
  }
1173
- else i2 += t2[r2];
1219
+ else i2 += t2[s2];
1174
1220
  return e2.child;
1175
- }, "X");
1176
- function R(t2, e2, n2, i2) {
1221
+ }, "Z");
1222
+ function q(t2, e2, n2, i2) {
1177
1223
  this.options.captureMetaData || (i2 = void 0);
1178
- const s2 = this.options.updateTag(e2.tagname, n2, e2[":@"]);
1179
- false === s2 || ("string" == typeof s2 ? (e2.tagname = s2, t2.addChild(e2, i2)) : t2.addChild(e2, i2));
1224
+ const r2 = this.options.updateTag(e2.tagname, n2, e2[":@"]);
1225
+ false === r2 || ("string" == typeof r2 ? (e2.tagname = r2, t2.addChild(e2, i2)) : t2.addChild(e2, i2));
1180
1226
  }
1181
- __name(R, "R");
1182
- const U = /* @__PURE__ */ __name(function(t2) {
1227
+ __name(q, "q");
1228
+ const W = /* @__PURE__ */ __name(function(t2) {
1183
1229
  if (this.options.processEntities) {
1184
1230
  for (let e2 in this.docTypeEntities) {
1185
1231
  const n2 = this.docTypeEntities[e2];
@@ -1196,78 +1242,78 @@ var require_fxp = __commonJS({
1196
1242
  t2 = t2.replace(this.ampEntity.regex, this.ampEntity.val);
1197
1243
  }
1198
1244
  return t2;
1199
- }, "U");
1200
- function Z(t2, e2, n2, i2) {
1245
+ }, "W");
1246
+ function z(t2, e2, n2, i2) {
1201
1247
  return t2 && (void 0 === i2 && (i2 = 0 === e2.child.length), void 0 !== (t2 = this.parseTextData(t2, e2.tagname, n2, false, !!e2[":@"] && 0 !== Object.keys(e2[":@"]).length, i2)) && "" !== t2 && e2.add(this.options.textNodeName, t2), t2 = ""), t2;
1202
1248
  }
1203
- __name(Z, "Z");
1204
- function Y(t2, e2, n2) {
1249
+ __name(z, "z");
1250
+ function J(t2, e2, n2) {
1205
1251
  const i2 = "*." + n2;
1206
1252
  for (const n3 in t2) {
1207
- const s2 = t2[n3];
1208
- if (i2 === s2 || e2 === s2) return true;
1253
+ const r2 = t2[n3];
1254
+ if (i2 === r2 || e2 === r2) return true;
1209
1255
  }
1210
1256
  return false;
1211
1257
  }
1212
- __name(Y, "Y");
1213
- function q(t2, e2, n2, i2) {
1214
- const s2 = t2.indexOf(e2, n2);
1215
- if (-1 === s2) throw new Error(i2);
1216
- return s2 + e2.length - 1;
1217
- }
1218
- __name(q, "q");
1219
- function W(t2, e2, n2, i2 = ">") {
1220
- const s2 = function(t3, e3, n3 = ">") {
1221
- let i3, s3 = "";
1222
- for (let r3 = e3; r3 < t3.length; r3++) {
1223
- let e4 = t3[r3];
1258
+ __name(J, "J");
1259
+ function H(t2, e2, n2, i2) {
1260
+ const r2 = t2.indexOf(e2, n2);
1261
+ if (-1 === r2) throw new Error(i2);
1262
+ return r2 + e2.length - 1;
1263
+ }
1264
+ __name(H, "H");
1265
+ function K(t2, e2, n2, i2 = ">") {
1266
+ const r2 = function(t3, e3, n3 = ">") {
1267
+ let i3, r3 = "";
1268
+ for (let s3 = e3; s3 < t3.length; s3++) {
1269
+ let e4 = t3[s3];
1224
1270
  if (i3) e4 === i3 && (i3 = "");
1225
1271
  else if ('"' === e4 || "'" === e4) i3 = e4;
1226
1272
  else if (e4 === n3[0]) {
1227
- if (!n3[1]) return { data: s3, index: r3 };
1228
- if (t3[r3 + 1] === n3[1]) return { data: s3, index: r3 };
1273
+ if (!n3[1]) return { data: r3, index: s3 };
1274
+ if (t3[s3 + 1] === n3[1]) return { data: r3, index: s3 };
1229
1275
  } else " " === e4 && (e4 = " ");
1230
- s3 += e4;
1276
+ r3 += e4;
1231
1277
  }
1232
1278
  }(t2, e2 + 1, i2);
1233
- if (!s2) return;
1234
- let r2 = s2.data;
1235
- const o2 = s2.index, a2 = r2.search(/\s/);
1236
- let l2 = r2, u2 = true;
1237
- -1 !== a2 && (l2 = r2.substring(0, a2), r2 = r2.substring(a2 + 1).trimStart());
1279
+ if (!r2) return;
1280
+ let s2 = r2.data;
1281
+ const o2 = r2.index, a2 = s2.search(/\s/);
1282
+ let l2 = s2, u2 = true;
1283
+ -1 !== a2 && (l2 = s2.substring(0, a2), s2 = s2.substring(a2 + 1).trimStart());
1238
1284
  const h2 = l2;
1239
1285
  if (n2) {
1240
1286
  const t3 = l2.indexOf(":");
1241
- -1 !== t3 && (l2 = l2.substr(t3 + 1), u2 = l2 !== s2.data.substr(t3 + 1));
1287
+ -1 !== t3 && (l2 = l2.substr(t3 + 1), u2 = l2 !== r2.data.substr(t3 + 1));
1242
1288
  }
1243
- return { tagName: l2, tagExp: r2, closeIndex: o2, attrExpPresent: u2, rawTagName: h2 };
1289
+ return { tagName: l2, tagExp: s2, closeIndex: o2, attrExpPresent: u2, rawTagName: h2 };
1244
1290
  }
1245
- __name(W, "W");
1246
- function z(t2, e2, n2) {
1291
+ __name(K, "K");
1292
+ function Q(t2, e2, n2) {
1247
1293
  const i2 = n2;
1248
- let s2 = 1;
1294
+ let r2 = 1;
1249
1295
  for (; n2 < t2.length; n2++) if ("<" === t2[n2]) if ("/" === t2[n2 + 1]) {
1250
- const r2 = q(t2, ">", n2, `${e2} is not closed`);
1251
- if (t2.substring(n2 + 2, r2).trim() === e2 && (s2--, 0 === s2)) return { tagContent: t2.substring(i2, n2), i: r2 };
1252
- n2 = r2;
1253
- } else if ("?" === t2[n2 + 1]) n2 = q(t2, "?>", n2 + 1, "StopNode is not closed.");
1254
- else if ("!--" === t2.substr(n2 + 1, 3)) n2 = q(t2, "-->", n2 + 3, "StopNode is not closed.");
1255
- else if ("![" === t2.substr(n2 + 1, 2)) n2 = q(t2, "]]>", n2, "StopNode is not closed.") - 2;
1296
+ const s2 = H(t2, ">", n2, `${e2} is not closed`);
1297
+ if (t2.substring(n2 + 2, s2).trim() === e2 && (r2--, 0 === r2)) return { tagContent: t2.substring(i2, n2), i: s2 };
1298
+ n2 = s2;
1299
+ } else if ("?" === t2[n2 + 1]) n2 = H(t2, "?>", n2 + 1, "StopNode is not closed.");
1300
+ else if ("!--" === t2.substr(n2 + 1, 3)) n2 = H(t2, "-->", n2 + 3, "StopNode is not closed.");
1301
+ else if ("![" === t2.substr(n2 + 1, 2)) n2 = H(t2, "]]>", n2, "StopNode is not closed.") - 2;
1256
1302
  else {
1257
- const i3 = W(t2, n2, ">");
1258
- i3 && ((i3 && i3.tagName) === e2 && "/" !== i3.tagExp[i3.tagExp.length - 1] && s2++, n2 = i3.closeIndex);
1303
+ const i3 = K(t2, n2, ">");
1304
+ i3 && ((i3 && i3.tagName) === e2 && "/" !== i3.tagExp[i3.tagExp.length - 1] && r2++, n2 = i3.closeIndex);
1259
1305
  }
1260
1306
  }
1261
- __name(z, "z");
1262
- function J(t2, e2, n2) {
1307
+ __name(Q, "Q");
1308
+ function tt(t2, e2, n2) {
1263
1309
  if (e2 && "string" == typeof t2) {
1264
1310
  const e3 = t2.trim();
1265
1311
  return "true" === e3 || "false" !== e3 && function(t3, e4 = {}) {
1266
- if (e4 = Object.assign({}, $, e4), !t3 || "string" != typeof t3) return t3;
1312
+ if (e4 = Object.assign({}, M, e4), !t3 || "string" != typeof t3) return t3;
1267
1313
  let n3 = t3.trim();
1268
1314
  if (void 0 !== e4.skipLike && e4.skipLike.test(n3)) return t3;
1269
1315
  if ("0" === t3) return 0;
1270
- if (e4.hex && D.test(n3)) return function(t4) {
1316
+ if (e4.hex && k.test(n3)) return function(t4) {
1271
1317
  if (parseInt) return parseInt(t4, 16);
1272
1318
  if (Number.parseInt) return Number.parseInt(t4, 16);
1273
1319
  if (window && window.parseInt) return window.parseInt(t4, 16);
@@ -1283,16 +1329,16 @@ var require_fxp = __commonJS({
1283
1329
  return t3;
1284
1330
  }
1285
1331
  {
1286
- const s2 = V.exec(n3);
1287
- if (s2) {
1288
- const r2 = s2[1], o2 = s2[2];
1289
- let a2 = (i2 = s2[3]) && -1 !== i2.indexOf(".") ? ("." === (i2 = i2.replace(/0+$/, "")) ? i2 = "0" : "." === i2[0] ? i2 = "0" + i2 : "." === i2[i2.length - 1] && (i2 = i2.substr(0, i2.length - 1)), i2) : i2;
1290
- if (!e4.leadingZeros && o2.length > 0 && r2 && "." !== n3[2]) return t3;
1291
- if (!e4.leadingZeros && o2.length > 0 && !r2 && "." !== n3[1]) return t3;
1332
+ const r2 = F.exec(n3);
1333
+ if (r2) {
1334
+ const s2 = r2[1], o2 = r2[2];
1335
+ let a2 = (i2 = r2[3]) && -1 !== i2.indexOf(".") ? ("." === (i2 = i2.replace(/0+$/, "")) ? i2 = "0" : "." === i2[0] ? i2 = "0" + i2 : "." === i2[i2.length - 1] && (i2 = i2.substr(0, i2.length - 1)), i2) : i2;
1336
+ if (!e4.leadingZeros && o2.length > 0 && s2 && "." !== n3[2]) return t3;
1337
+ if (!e4.leadingZeros && o2.length > 0 && !s2 && "." !== n3[1]) return t3;
1292
1338
  if (e4.leadingZeros && o2 === t3) return 0;
1293
1339
  {
1294
- const i3 = Number(n3), s3 = "" + i3;
1295
- return -1 !== s3.search(/[eE]/) ? e4.eNotation ? i3 : t3 : -1 !== n3.indexOf(".") ? "0" === s3 && "" === a2 || s3 === a2 || r2 && s3 === "-" + a2 ? i3 : t3 : o2 ? a2 === s3 || r2 + a2 === s3 ? i3 : t3 : n3 === s3 || n3 === r2 + s3 ? i3 : t3;
1340
+ const i3 = Number(n3), r3 = "" + i3;
1341
+ return -1 !== r3.search(/[eE]/) ? e4.eNotation ? i3 : t3 : -1 !== n3.indexOf(".") ? "0" === r3 && "" === a2 || r3 === a2 || s2 && r3 === "-" + a2 ? i3 : t3 : o2 ? a2 === r3 || s2 + a2 === r3 ? i3 : t3 : n3 === r3 || n3 === s2 + r3 ? i3 : t3;
1296
1342
  }
1297
1343
  }
1298
1344
  return t3;
@@ -1302,58 +1348,58 @@ var require_fxp = __commonJS({
1302
1348
  }
1303
1349
  return void 0 !== t2 ? t2 : "";
1304
1350
  }
1305
- __name(J, "J");
1306
- const H = T.getMetaDataSymbol();
1307
- function K(t2, e2) {
1308
- return Q(t2, e2);
1351
+ __name(tt, "tt");
1352
+ const et = T.getMetaDataSymbol();
1353
+ function nt(t2, e2) {
1354
+ return it(t2, e2);
1309
1355
  }
1310
- __name(K, "K");
1311
- function Q(t2, e2, n2) {
1356
+ __name(nt, "nt");
1357
+ function it(t2, e2, n2) {
1312
1358
  let i2;
1313
- const s2 = {};
1314
- for (let r2 = 0; r2 < t2.length; r2++) {
1315
- const o2 = t2[r2], a2 = tt(o2);
1359
+ const r2 = {};
1360
+ for (let s2 = 0; s2 < t2.length; s2++) {
1361
+ const o2 = t2[s2], a2 = rt(o2);
1316
1362
  let l2 = "";
1317
1363
  if (l2 = void 0 === n2 ? a2 : n2 + "." + a2, a2 === e2.textNodeName) void 0 === i2 ? i2 = o2[a2] : i2 += "" + o2[a2];
1318
1364
  else {
1319
1365
  if (void 0 === a2) continue;
1320
1366
  if (o2[a2]) {
1321
- let t3 = Q(o2[a2], e2, l2);
1322
- const n3 = nt(t3, e2);
1323
- void 0 !== o2[H] && (t3[H] = o2[H]), o2[":@"] ? et(t3, o2[":@"], l2, e2) : 1 !== Object.keys(t3).length || void 0 === t3[e2.textNodeName] || e2.alwaysCreateTextNode ? 0 === Object.keys(t3).length && (e2.alwaysCreateTextNode ? t3[e2.textNodeName] = "" : t3 = "") : t3 = t3[e2.textNodeName], void 0 !== s2[a2] && s2.hasOwnProperty(a2) ? (Array.isArray(s2[a2]) || (s2[a2] = [s2[a2]]), s2[a2].push(t3)) : e2.isArray(a2, l2, n3) ? s2[a2] = [t3] : s2[a2] = t3;
1367
+ let t3 = it(o2[a2], e2, l2);
1368
+ const n3 = ot(t3, e2);
1369
+ void 0 !== o2[et] && (t3[et] = o2[et]), o2[":@"] ? st(t3, o2[":@"], l2, e2) : 1 !== Object.keys(t3).length || void 0 === t3[e2.textNodeName] || e2.alwaysCreateTextNode ? 0 === Object.keys(t3).length && (e2.alwaysCreateTextNode ? t3[e2.textNodeName] = "" : t3 = "") : t3 = t3[e2.textNodeName], void 0 !== r2[a2] && r2.hasOwnProperty(a2) ? (Array.isArray(r2[a2]) || (r2[a2] = [r2[a2]]), r2[a2].push(t3)) : e2.isArray(a2, l2, n3) ? r2[a2] = [t3] : r2[a2] = t3;
1324
1370
  }
1325
1371
  }
1326
1372
  }
1327
- return "string" == typeof i2 ? i2.length > 0 && (s2[e2.textNodeName] = i2) : void 0 !== i2 && (s2[e2.textNodeName] = i2), s2;
1373
+ return "string" == typeof i2 ? i2.length > 0 && (r2[e2.textNodeName] = i2) : void 0 !== i2 && (r2[e2.textNodeName] = i2), r2;
1328
1374
  }
1329
- __name(Q, "Q");
1330
- function tt(t2) {
1375
+ __name(it, "it");
1376
+ function rt(t2) {
1331
1377
  const e2 = Object.keys(t2);
1332
1378
  for (let t3 = 0; t3 < e2.length; t3++) {
1333
1379
  const n2 = e2[t3];
1334
1380
  if (":@" !== n2) return n2;
1335
1381
  }
1336
1382
  }
1337
- __name(tt, "tt");
1338
- function et(t2, e2, n2, i2) {
1383
+ __name(rt, "rt");
1384
+ function st(t2, e2, n2, i2) {
1339
1385
  if (e2) {
1340
- const s2 = Object.keys(e2), r2 = s2.length;
1341
- for (let o2 = 0; o2 < r2; o2++) {
1342
- const r3 = s2[o2];
1343
- i2.isArray(r3, n2 + "." + r3, true, true) ? t2[r3] = [e2[r3]] : t2[r3] = e2[r3];
1386
+ const r2 = Object.keys(e2), s2 = r2.length;
1387
+ for (let o2 = 0; o2 < s2; o2++) {
1388
+ const s3 = r2[o2];
1389
+ i2.isArray(s3, n2 + "." + s3, true, true) ? t2[s3] = [e2[s3]] : t2[s3] = e2[s3];
1344
1390
  }
1345
1391
  }
1346
1392
  }
1347
- __name(et, "et");
1348
- function nt(t2, e2) {
1393
+ __name(st, "st");
1394
+ function ot(t2, e2) {
1349
1395
  const { textNodeName: n2 } = e2, i2 = Object.keys(t2).length;
1350
1396
  return 0 === i2 || !(1 !== i2 || !t2[n2] && "boolean" != typeof t2[n2] && 0 !== t2[n2]);
1351
1397
  }
1352
- __name(nt, "nt");
1353
- const _it = class _it {
1398
+ __name(ot, "ot");
1399
+ const _at = class _at {
1354
1400
  constructor(t2) {
1355
1401
  this.externalEntities = {}, this.options = function(t3) {
1356
- return Object.assign({}, E, t3);
1402
+ return Object.assign({}, v, t3);
1357
1403
  }(t2);
1358
1404
  }
1359
1405
  parse(t2, e2) {
@@ -1367,10 +1413,10 @@ var require_fxp = __commonJS({
1367
1413
  const n3 = a(t2, e2);
1368
1414
  if (true !== n3) throw Error(`${n3.err.msg}:${n3.err.line}:${n3.err.col}`);
1369
1415
  }
1370
- const n2 = new k(this.options);
1416
+ const n2 = new B(this.options);
1371
1417
  n2.addExternalEntities(this.externalEntities);
1372
1418
  const i2 = n2.parseXml(t2);
1373
- return this.options.preserveOrder || void 0 === i2 ? i2 : K(i2, this.options);
1419
+ return this.options.preserveOrder || void 0 === i2 ? i2 : nt(i2, this.options);
1374
1420
  }
1375
1421
  addEntity(t2, e2) {
1376
1422
  if (-1 !== e2.indexOf("&")) throw new Error("Entity value can't have '&'");
@@ -1382,168 +1428,168 @@ var require_fxp = __commonJS({
1382
1428
  return T.getMetaDataSymbol();
1383
1429
  }
1384
1430
  };
1385
- __name(_it, "it");
1386
- let it = _it;
1387
- function st(t2, e2) {
1431
+ __name(_at, "at");
1432
+ let at = _at;
1433
+ function lt(t2, e2) {
1388
1434
  let n2 = "";
1389
- return e2.format && e2.indentBy.length > 0 && (n2 = "\n"), rt(t2, e2, "", n2);
1435
+ return e2.format && e2.indentBy.length > 0 && (n2 = "\n"), ut(t2, e2, "", n2);
1390
1436
  }
1391
- __name(st, "st");
1392
- function rt(t2, e2, n2, i2) {
1393
- let s2 = "", r2 = false;
1437
+ __name(lt, "lt");
1438
+ function ut(t2, e2, n2, i2) {
1439
+ let r2 = "", s2 = false;
1394
1440
  for (let o2 = 0; o2 < t2.length; o2++) {
1395
- const a2 = t2[o2], l2 = ot(a2);
1441
+ const a2 = t2[o2], l2 = ht(a2);
1396
1442
  if (void 0 === l2) continue;
1397
1443
  let u2 = "";
1398
1444
  if (u2 = 0 === n2.length ? l2 : `${n2}.${l2}`, l2 === e2.textNodeName) {
1399
1445
  let t3 = a2[l2];
1400
- lt(u2, e2) || (t3 = e2.tagValueProcessor(l2, t3), t3 = ut(t3, e2)), r2 && (s2 += i2), s2 += t3, r2 = false;
1446
+ ct(u2, e2) || (t3 = e2.tagValueProcessor(l2, t3), t3 = ft(t3, e2)), s2 && (r2 += i2), r2 += t3, s2 = false;
1401
1447
  continue;
1402
1448
  }
1403
1449
  if (l2 === e2.cdataPropName) {
1404
- r2 && (s2 += i2), s2 += `<![CDATA[${a2[l2][0][e2.textNodeName]}]]>`, r2 = false;
1450
+ s2 && (r2 += i2), r2 += `<![CDATA[${a2[l2][0][e2.textNodeName]}]]>`, s2 = false;
1405
1451
  continue;
1406
1452
  }
1407
1453
  if (l2 === e2.commentPropName) {
1408
- s2 += i2 + `<!--${a2[l2][0][e2.textNodeName]}-->`, r2 = true;
1454
+ r2 += i2 + `<!--${a2[l2][0][e2.textNodeName]}-->`, s2 = true;
1409
1455
  continue;
1410
1456
  }
1411
1457
  if ("?" === l2[0]) {
1412
- const t3 = at(a2[":@"], e2), n3 = "?xml" === l2 ? "" : i2;
1458
+ const t3 = dt(a2[":@"], e2), n3 = "?xml" === l2 ? "" : i2;
1413
1459
  let o3 = a2[l2][0][e2.textNodeName];
1414
- o3 = 0 !== o3.length ? " " + o3 : "", s2 += n3 + `<${l2}${o3}${t3}?>`, r2 = true;
1460
+ o3 = 0 !== o3.length ? " " + o3 : "", r2 += n3 + `<${l2}${o3}${t3}?>`, s2 = true;
1415
1461
  continue;
1416
1462
  }
1417
1463
  let h2 = i2;
1418
1464
  "" !== h2 && (h2 += e2.indentBy);
1419
- const d2 = i2 + `<${l2}${at(a2[":@"], e2)}`, c2 = rt(a2[l2], e2, u2, h2);
1420
- -1 !== e2.unpairedTags.indexOf(l2) ? e2.suppressUnpairedNode ? s2 += d2 + ">" : s2 += d2 + "/>" : c2 && 0 !== c2.length || !e2.suppressEmptyNode ? c2 && c2.endsWith(">") ? s2 += d2 + `>${c2}${i2}</${l2}>` : (s2 += d2 + ">", c2 && "" !== i2 && (c2.includes("/>") || c2.includes("</")) ? s2 += i2 + e2.indentBy + c2 + i2 : s2 += c2, s2 += `</${l2}>`) : s2 += d2 + "/>", r2 = true;
1465
+ const d2 = i2 + `<${l2}${dt(a2[":@"], e2)}`, c2 = ut(a2[l2], e2, u2, h2);
1466
+ -1 !== e2.unpairedTags.indexOf(l2) ? e2.suppressUnpairedNode ? r2 += d2 + ">" : r2 += d2 + "/>" : c2 && 0 !== c2.length || !e2.suppressEmptyNode ? c2 && c2.endsWith(">") ? r2 += d2 + `>${c2}${i2}</${l2}>` : (r2 += d2 + ">", c2 && "" !== i2 && (c2.includes("/>") || c2.includes("</")) ? r2 += i2 + e2.indentBy + c2 + i2 : r2 += c2, r2 += `</${l2}>`) : r2 += d2 + "/>", s2 = true;
1421
1467
  }
1422
- return s2;
1468
+ return r2;
1423
1469
  }
1424
- __name(rt, "rt");
1425
- function ot(t2) {
1470
+ __name(ut, "ut");
1471
+ function ht(t2) {
1426
1472
  const e2 = Object.keys(t2);
1427
1473
  for (let n2 = 0; n2 < e2.length; n2++) {
1428
1474
  const i2 = e2[n2];
1429
1475
  if (t2.hasOwnProperty(i2) && ":@" !== i2) return i2;
1430
1476
  }
1431
1477
  }
1432
- __name(ot, "ot");
1433
- function at(t2, e2) {
1478
+ __name(ht, "ht");
1479
+ function dt(t2, e2) {
1434
1480
  let n2 = "";
1435
1481
  if (t2 && !e2.ignoreAttributes) for (let i2 in t2) {
1436
1482
  if (!t2.hasOwnProperty(i2)) continue;
1437
- let s2 = e2.attributeValueProcessor(i2, t2[i2]);
1438
- s2 = ut(s2, e2), true === s2 && e2.suppressBooleanAttributes ? n2 += ` ${i2.substr(e2.attributeNamePrefix.length)}` : n2 += ` ${i2.substr(e2.attributeNamePrefix.length)}="${s2}"`;
1483
+ let r2 = e2.attributeValueProcessor(i2, t2[i2]);
1484
+ r2 = ft(r2, e2), true === r2 && e2.suppressBooleanAttributes ? n2 += ` ${i2.substr(e2.attributeNamePrefix.length)}` : n2 += ` ${i2.substr(e2.attributeNamePrefix.length)}="${r2}"`;
1439
1485
  }
1440
1486
  return n2;
1441
1487
  }
1442
- __name(at, "at");
1443
- function lt(t2, e2) {
1488
+ __name(dt, "dt");
1489
+ function ct(t2, e2) {
1444
1490
  let n2 = (t2 = t2.substr(0, t2.length - e2.textNodeName.length - 1)).substr(t2.lastIndexOf(".") + 1);
1445
1491
  for (let i2 in e2.stopNodes) if (e2.stopNodes[i2] === t2 || e2.stopNodes[i2] === "*." + n2) return true;
1446
1492
  return false;
1447
1493
  }
1448
- __name(lt, "lt");
1449
- function ut(t2, e2) {
1494
+ __name(ct, "ct");
1495
+ function ft(t2, e2) {
1450
1496
  if (t2 && t2.length > 0 && e2.processEntities) for (let n2 = 0; n2 < e2.entities.length; n2++) {
1451
1497
  const i2 = e2.entities[n2];
1452
1498
  t2 = t2.replace(i2.regex, i2.val);
1453
1499
  }
1454
1500
  return t2;
1455
1501
  }
1456
- __name(ut, "ut");
1457
- const ht = { attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, cdataPropName: false, format: false, indentBy: " ", suppressEmptyNode: false, suppressUnpairedNode: true, suppressBooleanAttributes: true, tagValueProcessor: /* @__PURE__ */ __name(function(t2, e2) {
1502
+ __name(ft, "ft");
1503
+ const pt = { attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, cdataPropName: false, format: false, indentBy: " ", suppressEmptyNode: false, suppressUnpairedNode: true, suppressBooleanAttributes: true, tagValueProcessor: /* @__PURE__ */ __name(function(t2, e2) {
1458
1504
  return e2;
1459
1505
  }, "tagValueProcessor"), attributeValueProcessor: /* @__PURE__ */ __name(function(t2, e2) {
1460
1506
  return e2;
1461
1507
  }, "attributeValueProcessor"), preserveOrder: false, commentPropName: false, unpairedTags: [], entities: [{ regex: new RegExp("&", "g"), val: "&amp;" }, { regex: new RegExp(">", "g"), val: "&gt;" }, { regex: new RegExp("<", "g"), val: "&lt;" }, { regex: new RegExp("'", "g"), val: "&apos;" }, { regex: new RegExp('"', "g"), val: "&quot;" }], processEntities: true, stopNodes: [], oneListGroup: false };
1462
- function dt(t2) {
1463
- this.options = Object.assign({}, ht, t2), true === this.options.ignoreAttributes || this.options.attributesGroupName ? this.isAttribute = function() {
1508
+ function gt(t2) {
1509
+ this.options = Object.assign({}, pt, t2), true === this.options.ignoreAttributes || this.options.attributesGroupName ? this.isAttribute = function() {
1464
1510
  return false;
1465
- } : (this.ignoreAttributesFn = _(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = ft), this.processTextOrObjNode = ct, this.options.format ? (this.indentate = pt, this.tagEndChar = ">\n", this.newLine = "\n") : (this.indentate = function() {
1511
+ } : (this.ignoreAttributesFn = L(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = bt), this.processTextOrObjNode = mt, this.options.format ? (this.indentate = xt, this.tagEndChar = ">\n", this.newLine = "\n") : (this.indentate = function() {
1466
1512
  return "";
1467
1513
  }, this.tagEndChar = ">", this.newLine = "");
1468
1514
  }
1469
- __name(dt, "dt");
1470
- function ct(t2, e2, n2, i2) {
1471
- const s2 = this.j2x(t2, n2 + 1, i2.concat(e2));
1472
- return void 0 !== t2[this.options.textNodeName] && 1 === Object.keys(t2).length ? this.buildTextValNode(t2[this.options.textNodeName], e2, s2.attrStr, n2) : this.buildObjectNode(s2.val, e2, s2.attrStr, n2);
1515
+ __name(gt, "gt");
1516
+ function mt(t2, e2, n2, i2) {
1517
+ const r2 = this.j2x(t2, n2 + 1, i2.concat(e2));
1518
+ return void 0 !== t2[this.options.textNodeName] && 1 === Object.keys(t2).length ? this.buildTextValNode(t2[this.options.textNodeName], e2, r2.attrStr, n2) : this.buildObjectNode(r2.val, e2, r2.attrStr, n2);
1473
1519
  }
1474
- __name(ct, "ct");
1475
- function pt(t2) {
1520
+ __name(mt, "mt");
1521
+ function xt(t2) {
1476
1522
  return this.options.indentBy.repeat(t2);
1477
1523
  }
1478
- __name(pt, "pt");
1479
- function ft(t2) {
1524
+ __name(xt, "xt");
1525
+ function bt(t2) {
1480
1526
  return !(!t2.startsWith(this.options.attributeNamePrefix) || t2 === this.options.textNodeName) && t2.substr(this.attrPrefixLen);
1481
1527
  }
1482
- __name(ft, "ft");
1483
- dt.prototype.build = function(t2) {
1484
- return this.options.preserveOrder ? st(t2, this.options) : (Array.isArray(t2) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (t2 = { [this.options.arrayNodeName]: t2 }), this.j2x(t2, 0, []).val);
1485
- }, dt.prototype.j2x = function(t2, e2, n2) {
1486
- let i2 = "", s2 = "";
1487
- const r2 = n2.join(".");
1488
- for (let o2 in t2) if (Object.prototype.hasOwnProperty.call(t2, o2)) if (void 0 === t2[o2]) this.isAttribute(o2) && (s2 += "");
1489
- else if (null === t2[o2]) this.isAttribute(o2) || o2 === this.options.cdataPropName ? s2 += "" : "?" === o2[0] ? s2 += this.indentate(e2) + "<" + o2 + "?" + this.tagEndChar : s2 += this.indentate(e2) + "<" + o2 + "/" + this.tagEndChar;
1490
- else if (t2[o2] instanceof Date) s2 += this.buildTextValNode(t2[o2], o2, "", e2);
1528
+ __name(bt, "bt");
1529
+ gt.prototype.build = function(t2) {
1530
+ return this.options.preserveOrder ? lt(t2, this.options) : (Array.isArray(t2) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (t2 = { [this.options.arrayNodeName]: t2 }), this.j2x(t2, 0, []).val);
1531
+ }, gt.prototype.j2x = function(t2, e2, n2) {
1532
+ let i2 = "", r2 = "";
1533
+ const s2 = n2.join(".");
1534
+ for (let o2 in t2) if (Object.prototype.hasOwnProperty.call(t2, o2)) if (void 0 === t2[o2]) this.isAttribute(o2) && (r2 += "");
1535
+ else if (null === t2[o2]) this.isAttribute(o2) || o2 === this.options.cdataPropName ? r2 += "" : "?" === o2[0] ? r2 += this.indentate(e2) + "<" + o2 + "?" + this.tagEndChar : r2 += this.indentate(e2) + "<" + o2 + "/" + this.tagEndChar;
1536
+ else if (t2[o2] instanceof Date) r2 += this.buildTextValNode(t2[o2], o2, "", e2);
1491
1537
  else if ("object" != typeof t2[o2]) {
1492
1538
  const n3 = this.isAttribute(o2);
1493
- if (n3 && !this.ignoreAttributesFn(n3, r2)) i2 += this.buildAttrPairStr(n3, "" + t2[o2]);
1539
+ if (n3 && !this.ignoreAttributesFn(n3, s2)) i2 += this.buildAttrPairStr(n3, "" + t2[o2]);
1494
1540
  else if (!n3) if (o2 === this.options.textNodeName) {
1495
1541
  let e3 = this.options.tagValueProcessor(o2, "" + t2[o2]);
1496
- s2 += this.replaceEntitiesValue(e3);
1497
- } else s2 += this.buildTextValNode(t2[o2], o2, "", e2);
1542
+ r2 += this.replaceEntitiesValue(e3);
1543
+ } else r2 += this.buildTextValNode(t2[o2], o2, "", e2);
1498
1544
  } else if (Array.isArray(t2[o2])) {
1499
1545
  const i3 = t2[o2].length;
1500
- let r3 = "", a2 = "";
1546
+ let s3 = "", a2 = "";
1501
1547
  for (let l2 = 0; l2 < i3; l2++) {
1502
1548
  const i4 = t2[o2][l2];
1503
1549
  if (void 0 === i4) ;
1504
- else if (null === i4) "?" === o2[0] ? s2 += this.indentate(e2) + "<" + o2 + "?" + this.tagEndChar : s2 += this.indentate(e2) + "<" + o2 + "/" + this.tagEndChar;
1550
+ else if (null === i4) "?" === o2[0] ? r2 += this.indentate(e2) + "<" + o2 + "?" + this.tagEndChar : r2 += this.indentate(e2) + "<" + o2 + "/" + this.tagEndChar;
1505
1551
  else if ("object" == typeof i4) if (this.options.oneListGroup) {
1506
1552
  const t3 = this.j2x(i4, e2 + 1, n2.concat(o2));
1507
- r3 += t3.val, this.options.attributesGroupName && i4.hasOwnProperty(this.options.attributesGroupName) && (a2 += t3.attrStr);
1508
- } else r3 += this.processTextOrObjNode(i4, o2, e2, n2);
1553
+ s3 += t3.val, this.options.attributesGroupName && i4.hasOwnProperty(this.options.attributesGroupName) && (a2 += t3.attrStr);
1554
+ } else s3 += this.processTextOrObjNode(i4, o2, e2, n2);
1509
1555
  else if (this.options.oneListGroup) {
1510
1556
  let t3 = this.options.tagValueProcessor(o2, i4);
1511
- t3 = this.replaceEntitiesValue(t3), r3 += t3;
1512
- } else r3 += this.buildTextValNode(i4, o2, "", e2);
1557
+ t3 = this.replaceEntitiesValue(t3), s3 += t3;
1558
+ } else s3 += this.buildTextValNode(i4, o2, "", e2);
1513
1559
  }
1514
- this.options.oneListGroup && (r3 = this.buildObjectNode(r3, o2, a2, e2)), s2 += r3;
1560
+ this.options.oneListGroup && (s3 = this.buildObjectNode(s3, o2, a2, e2)), r2 += s3;
1515
1561
  } else if (this.options.attributesGroupName && o2 === this.options.attributesGroupName) {
1516
1562
  const e3 = Object.keys(t2[o2]), n3 = e3.length;
1517
- for (let s3 = 0; s3 < n3; s3++) i2 += this.buildAttrPairStr(e3[s3], "" + t2[o2][e3[s3]]);
1518
- } else s2 += this.processTextOrObjNode(t2[o2], o2, e2, n2);
1519
- return { attrStr: i2, val: s2 };
1520
- }, dt.prototype.buildAttrPairStr = function(t2, e2) {
1563
+ for (let r3 = 0; r3 < n3; r3++) i2 += this.buildAttrPairStr(e3[r3], "" + t2[o2][e3[r3]]);
1564
+ } else r2 += this.processTextOrObjNode(t2[o2], o2, e2, n2);
1565
+ return { attrStr: i2, val: r2 };
1566
+ }, gt.prototype.buildAttrPairStr = function(t2, e2) {
1521
1567
  return e2 = this.options.attributeValueProcessor(t2, "" + e2), e2 = this.replaceEntitiesValue(e2), this.options.suppressBooleanAttributes && "true" === e2 ? " " + t2 : " " + t2 + '="' + e2 + '"';
1522
- }, dt.prototype.buildObjectNode = function(t2, e2, n2, i2) {
1568
+ }, gt.prototype.buildObjectNode = function(t2, e2, n2, i2) {
1523
1569
  if ("" === t2) return "?" === e2[0] ? this.indentate(i2) + "<" + e2 + n2 + "?" + this.tagEndChar : this.indentate(i2) + "<" + e2 + n2 + this.closeTag(e2) + this.tagEndChar;
1524
1570
  {
1525
- let s2 = "</" + e2 + this.tagEndChar, r2 = "";
1526
- return "?" === e2[0] && (r2 = "?", s2 = ""), !n2 && "" !== n2 || -1 !== t2.indexOf("<") ? false !== this.options.commentPropName && e2 === this.options.commentPropName && 0 === r2.length ? this.indentate(i2) + `<!--${t2}-->` + this.newLine : this.indentate(i2) + "<" + e2 + n2 + r2 + this.tagEndChar + t2 + this.indentate(i2) + s2 : this.indentate(i2) + "<" + e2 + n2 + r2 + ">" + t2 + s2;
1571
+ let r2 = "</" + e2 + this.tagEndChar, s2 = "";
1572
+ return "?" === e2[0] && (s2 = "?", r2 = ""), !n2 && "" !== n2 || -1 !== t2.indexOf("<") ? false !== this.options.commentPropName && e2 === this.options.commentPropName && 0 === s2.length ? this.indentate(i2) + `<!--${t2}-->` + this.newLine : this.indentate(i2) + "<" + e2 + n2 + s2 + this.tagEndChar + t2 + this.indentate(i2) + r2 : this.indentate(i2) + "<" + e2 + n2 + s2 + ">" + t2 + r2;
1527
1573
  }
1528
- }, dt.prototype.closeTag = function(t2) {
1574
+ }, gt.prototype.closeTag = function(t2) {
1529
1575
  let e2 = "";
1530
1576
  return -1 !== this.options.unpairedTags.indexOf(t2) ? this.options.suppressUnpairedNode || (e2 = "/") : e2 = this.options.suppressEmptyNode ? "/" : `></${t2}`, e2;
1531
- }, dt.prototype.buildTextValNode = function(t2, e2, n2, i2) {
1577
+ }, gt.prototype.buildTextValNode = function(t2, e2, n2, i2) {
1532
1578
  if (false !== this.options.cdataPropName && e2 === this.options.cdataPropName) return this.indentate(i2) + `<![CDATA[${t2}]]>` + this.newLine;
1533
1579
  if (false !== this.options.commentPropName && e2 === this.options.commentPropName) return this.indentate(i2) + `<!--${t2}-->` + this.newLine;
1534
1580
  if ("?" === e2[0]) return this.indentate(i2) + "<" + e2 + n2 + "?" + this.tagEndChar;
1535
1581
  {
1536
- let s2 = this.options.tagValueProcessor(e2, t2);
1537
- return s2 = this.replaceEntitiesValue(s2), "" === s2 ? this.indentate(i2) + "<" + e2 + n2 + this.closeTag(e2) + this.tagEndChar : this.indentate(i2) + "<" + e2 + n2 + ">" + s2 + "</" + e2 + this.tagEndChar;
1582
+ let r2 = this.options.tagValueProcessor(e2, t2);
1583
+ return r2 = this.replaceEntitiesValue(r2), "" === r2 ? this.indentate(i2) + "<" + e2 + n2 + this.closeTag(e2) + this.tagEndChar : this.indentate(i2) + "<" + e2 + n2 + ">" + r2 + "</" + e2 + this.tagEndChar;
1538
1584
  }
1539
- }, dt.prototype.replaceEntitiesValue = function(t2) {
1585
+ }, gt.prototype.replaceEntitiesValue = function(t2) {
1540
1586
  if (t2 && t2.length > 0 && this.options.processEntities) for (let e2 = 0; e2 < this.options.entities.length; e2++) {
1541
1587
  const n2 = this.options.entities[e2];
1542
1588
  t2 = t2.replace(n2.regex, n2.val);
1543
1589
  }
1544
1590
  return t2;
1545
1591
  };
1546
- const gt = { validate: a };
1592
+ const Nt = { validate: a };
1547
1593
  module.exports = e;
1548
1594
  })();
1549
1595
  }