form-imagining 0.0.92-beta4 → 0.0.92-beta6

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.
Files changed (89) hide show
  1. package/dist/App-DtMf3n_F.js +30 -0
  2. package/dist/Area-gYvfwS2L.js +4 -0
  3. package/dist/Bar-ODGClNe0.js +4 -0
  4. package/dist/ChartsArea-CQwwd2lJ.js +4 -0
  5. package/dist/ChartsBar-BKMAI52E.js +4 -0
  6. package/dist/ChartsPie-BBp_ag4Y.js +4 -0
  7. package/dist/CheckBoxModel-CAtOkaZl.js +4 -0
  8. package/dist/Col-BjOWCaAV.js +4 -0
  9. package/dist/Collapse-xi1XYSvh.js +4 -0
  10. package/dist/{CommonText copy-CKk09DIB.js → CommonText copy-B643btsR.js } +38 -38
  11. package/dist/{Demo copy-CubdSIKo.js → Demo copy-Bux2O9AZ.js } +2 -2
  12. package/dist/{Demo-DoJw6Kxw.js → Demo-CimZDSZD.js} +2 -2
  13. package/dist/{Demo-DkVz30H9.js → Demo-DD_E8Ai0.js} +33 -33
  14. package/dist/FView-lgPHPdpT.js +4 -0
  15. package/dist/FX-DITkqQ2E.js +4 -0
  16. package/dist/{Form-CsKlmwSd.js → Form-CE0VVIWD.js} +4 -4
  17. package/dist/{FormGridCopy-DD0tZow8.js → FormGridCopy-QMd-e6gZ.js} +36 -36
  18. package/dist/FormImagining-DMMX4UTU.js +9 -0
  19. package/dist/GenerateForm-CbTFj_A8.js +4 -0
  20. package/dist/GenerateReport-DTLeuaUN.js +4 -0
  21. package/dist/HelloWorld-BfnT0WhV.js +9 -0
  22. package/dist/Input-/345/210/240/351/231/{244-C6fJ-Tc5.js → 244-B-UBNSP7.js} +3 -3
  23. package/dist/Label-/345/210/240/351/231/{244-dTqFCfXK.js → 244-hylaZnyv.js} +5 -5
  24. package/dist/LabelModel-DPw6ImbD.js +4 -0
  25. package/dist/Login-BdZxDvKs.js +9 -0
  26. package/dist/Pie-KAdq-zq0.js +4 -0
  27. package/dist/PropertyIndex-B5sPOPGF.js +4 -0
  28. package/dist/RView-Dti2PztB.js +4 -0
  29. package/dist/SqlModule-Bs93rJS9.js +4 -0
  30. package/dist/{SvgIconCopy-BT7ntjzB.js → SvgIconCopy-CC9UpEw1.js} +7 -7
  31. package/dist/TableBtnModal-CP8poyU5.js +4 -0
  32. package/dist/TextModel-BxnsH9j1.js +9 -0
  33. package/dist/childForm-2suLJZtu.js +4 -0
  34. package/dist/{cssMode-jo0NhwDf.js → cssMode-BevUSJIs.js} +1 -1
  35. package/dist/form-imagining.js +9 -9
  36. package/dist/form-imagining.umd.cjs +294 -295
  37. package/dist/formTest-DdkaJBmv.js +19 -0
  38. package/dist/{freemarker2-Fnfdnkfh.js → freemarker2-RntfmZOW.js} +1 -1
  39. package/dist/{handlebars-Bx4_KQwu.js → handlebars-Cos4lZca.js} +1 -1
  40. package/dist/{html-CFRm4XEL.js → html-Uag4N1dQ.js} +1 -1
  41. package/dist/{htmlMode-Dxqn6jaD.js → htmlMode-BhOweWtW.js} +1 -1
  42. package/dist/index - /345/211/257/346/234/{254-dqPD2ASv.js" → 254-dGB_y2eB.js" } +38 -38
  43. package/dist/{index-DEvoU-iM.js → index-Bnry2ZnT.js} +5 -5
  44. package/dist/index-Bu9AKZLX.js +3658 -0
  45. package/dist/index-DhqC9JWs.js +11 -0
  46. package/dist/{index-jBZEirwC.js → index-Djxsz7aX.js} +20643 -19235
  47. package/dist/{javascript-Y02rG_nt.js → javascript-inEC7YCz.js} +1 -1
  48. package/dist/json/scope_type.json +6 -6
  49. package/dist/{jsonMode-CFhVzwTy.js → jsonMode-Buplw_74.js} +1 -1
  50. package/dist/{liquid-DLAO7uHR.js → liquid-CXCXl0KK.js} +1 -1
  51. package/dist/{mdx-Dyn2_O6a.js → mdx-C8oAZz3N.js} +1 -1
  52. package/dist/{python-DgxEwzX3.js → python-ISYPt2bG.js} +1 -1
  53. package/dist/{razor-BewTJaSe.js → razor-BoONAPbT.js} +1 -1
  54. package/dist/setting.json +3 -3
  55. package/dist/style.css +1 -1
  56. package/dist/{tableSelectDemo-DLpvpcEl.js → tableSelectDemo-l99YI8J9.js} +18 -18
  57. package/dist/{tableSelectDemo2-BFr-yfOb.js → tableSelectDemo2-OfOWLB-I.js} +6 -6
  58. package/dist/{tsMode-DzFy8JCn.js → tsMode-qM4H6_33.js} +7 -7
  59. package/dist/{typescript-Dj_oSxOW.js → typescript-CQq3LImM.js} +1 -1
  60. package/dist/{xml-DkbBETGq.js → xml-DSo44BnU.js} +1 -1
  61. package/dist/{yaml-ja_epl0n.js → yaml-BocXdDT1.js} +1 -1
  62. package/package.json +68 -68
  63. package/dist/App-D9SgyIHg.js +0 -32
  64. package/dist/Area-DHZeIGT0.js +0 -4
  65. package/dist/Bar-C94rw-BH.js +0 -4
  66. package/dist/ChartsArea-ZH5kpRfE.js +0 -4
  67. package/dist/ChartsBar-CPzCF_2s.js +0 -4
  68. package/dist/ChartsPie-DUb1fiG9.js +0 -4
  69. package/dist/CheckBoxModel-N9aBAGoV.js +0 -4
  70. package/dist/Col-Ksz7IORK.js +0 -4
  71. package/dist/Collapse-Brm7RGbc.js +0 -4
  72. package/dist/FView-CZKalnPv.js +0 -4
  73. package/dist/FX-C6CgdV8T.js +0 -4
  74. package/dist/FormImagining-CNU7k8Lg.js +0 -9
  75. package/dist/GenerateForm-Da0KQGvi.js +0 -4
  76. package/dist/GenerateReport-CrEu_AIM.js +0 -4
  77. package/dist/HelloWorld-Yv03AZwK.js +0 -9
  78. package/dist/LabelModel-DfV1K5Mb.js +0 -4
  79. package/dist/Login-Bqr02U9-.js +0 -9
  80. package/dist/Pie-HIuDPYoJ.js +0 -4
  81. package/dist/PropertyIndex-Ceb7ttJb.js +0 -4
  82. package/dist/RView-J6jBBnLX.js +0 -4
  83. package/dist/SqlModule-Dn36HdIj.js +0 -4
  84. package/dist/TableBtnModal-Dyzy6THf.js +0 -4
  85. package/dist/TextModel-C-tBbutJ.js +0 -9
  86. package/dist/childForm-DyROPkP7.js +0 -4
  87. package/dist/formTest-D1OjhM8p.js +0 -19
  88. package/dist/index-BVXyjg-q.js +0 -11
  89. package/dist/index-CVgQIdpz.js +0 -3323
@@ -0,0 +1,3658 @@
1
+ import { defineComponent as Mr, ref as Fr } from "vue";
2
+ import { a3 as X, a4 as lt, o as Sr } from "./index-Djxsz7aX.js";
3
+ var Tt = {}, be;
4
+ function ee() {
5
+ return be || (be = 1, (function() {
6
+ Tt.defaults = {
7
+ "0.1": {
8
+ explicitCharkey: !1,
9
+ trim: !0,
10
+ normalize: !0,
11
+ normalizeTags: !1,
12
+ attrkey: "@",
13
+ charkey: "#",
14
+ explicitArray: !1,
15
+ ignoreAttrs: !1,
16
+ mergeAttrs: !1,
17
+ explicitRoot: !1,
18
+ validator: null,
19
+ xmlns: !1,
20
+ explicitChildren: !1,
21
+ childkey: "@@",
22
+ charsAsChildren: !1,
23
+ includeWhiteChars: !1,
24
+ async: !1,
25
+ strict: !0,
26
+ attrNameProcessors: null,
27
+ attrValueProcessors: null,
28
+ tagNameProcessors: null,
29
+ valueProcessors: null,
30
+ emptyTag: ""
31
+ },
32
+ "0.2": {
33
+ explicitCharkey: !1,
34
+ trim: !1,
35
+ normalize: !1,
36
+ normalizeTags: !1,
37
+ attrkey: "$",
38
+ charkey: "_",
39
+ explicitArray: !0,
40
+ ignoreAttrs: !1,
41
+ mergeAttrs: !1,
42
+ explicitRoot: !0,
43
+ validator: null,
44
+ xmlns: !1,
45
+ explicitChildren: !1,
46
+ preserveChildrenOrder: !1,
47
+ childkey: "$$",
48
+ charsAsChildren: !1,
49
+ includeWhiteChars: !1,
50
+ async: !1,
51
+ strict: !0,
52
+ attrNameProcessors: null,
53
+ attrValueProcessors: null,
54
+ tagNameProcessors: null,
55
+ valueProcessors: null,
56
+ rootName: "root",
57
+ xmldec: {
58
+ version: "1.0",
59
+ encoding: "UTF-8",
60
+ standalone: !0
61
+ },
62
+ doctype: null,
63
+ renderOpts: {
64
+ pretty: !0,
65
+ indent: " ",
66
+ newline: `
67
+ `
68
+ },
69
+ headless: !1,
70
+ chunkSize: 1e4,
71
+ emptyTag: "",
72
+ cdata: !1
73
+ }
74
+ };
75
+ }).call(X)), Tt;
76
+ }
77
+ var Et = {}, et = {}, rt = {}, xe;
78
+ function nt() {
79
+ return xe || (xe = 1, (function() {
80
+ var n, t, l, u, f, r, e, s = [].slice, h = {}.hasOwnProperty;
81
+ n = function() {
82
+ var D, w, m, d, E, b;
83
+ if (b = arguments[0], E = 2 <= arguments.length ? s.call(arguments, 1) : [], f(Object.assign))
84
+ Object.assign.apply(null, arguments);
85
+ else
86
+ for (D = 0, m = E.length; D < m; D++)
87
+ if (d = E[D], d != null)
88
+ for (w in d)
89
+ h.call(d, w) && (b[w] = d[w]);
90
+ return b;
91
+ }, f = function(D) {
92
+ return !!D && Object.prototype.toString.call(D) === "[object Function]";
93
+ }, r = function(D) {
94
+ var w;
95
+ return !!D && ((w = typeof D) == "function" || w === "object");
96
+ }, l = function(D) {
97
+ return f(Array.isArray) ? Array.isArray(D) : Object.prototype.toString.call(D) === "[object Array]";
98
+ }, u = function(D) {
99
+ var w;
100
+ if (l(D))
101
+ return !D.length;
102
+ for (w in D)
103
+ if (h.call(D, w))
104
+ return !1;
105
+ return !0;
106
+ }, e = function(D) {
107
+ var w, m;
108
+ return r(D) && (m = Object.getPrototypeOf(D)) && (w = m.constructor) && typeof w == "function" && w instanceof w && Function.prototype.toString.call(w) === Function.prototype.toString.call(Object);
109
+ }, t = function(D) {
110
+ return f(D.valueOf) ? D.valueOf() : D;
111
+ }, rt.assign = n, rt.isFunction = f, rt.isObject = r, rt.isArray = l, rt.isEmpty = u, rt.isPlainObject = e, rt.getValue = t;
112
+ }).call(X)), rt;
113
+ }
114
+ var Dt = { exports: {} }, Oe;
115
+ function lr() {
116
+ return Oe || (Oe = 1, (function() {
117
+ Dt.exports = function() {
118
+ function n() {
119
+ }
120
+ return n.prototype.hasFeature = function(t, l) {
121
+ return !0;
122
+ }, n.prototype.createDocumentType = function(t, l, u) {
123
+ throw new Error("This DOM method is not implemented.");
124
+ }, n.prototype.createDocument = function(t, l, u) {
125
+ throw new Error("This DOM method is not implemented.");
126
+ }, n.prototype.createHTMLDocument = function(t) {
127
+ throw new Error("This DOM method is not implemented.");
128
+ }, n.prototype.getFeature = function(t, l) {
129
+ throw new Error("This DOM method is not implemented.");
130
+ }, n;
131
+ }();
132
+ }).call(X)), Dt.exports;
133
+ }
134
+ var Nt = { exports: {} }, bt = { exports: {} }, xt = { exports: {} }, Ie;
135
+ function Xr() {
136
+ return Ie || (Ie = 1, (function() {
137
+ xt.exports = function() {
138
+ function n() {
139
+ }
140
+ return n.prototype.handleError = function(t) {
141
+ throw new Error(t);
142
+ }, n;
143
+ }();
144
+ }).call(X)), xt.exports;
145
+ }
146
+ var Ot = { exports: {} }, ve;
147
+ function Rr() {
148
+ return ve || (ve = 1, (function() {
149
+ Ot.exports = function() {
150
+ function n(t) {
151
+ this.arr = t || [];
152
+ }
153
+ return Object.defineProperty(n.prototype, "length", {
154
+ get: function() {
155
+ return this.arr.length;
156
+ }
157
+ }), n.prototype.item = function(t) {
158
+ return this.arr[t] || null;
159
+ }, n.prototype.contains = function(t) {
160
+ return this.arr.indexOf(t) !== -1;
161
+ }, n;
162
+ }();
163
+ }).call(X)), Ot.exports;
164
+ }
165
+ var Ce;
166
+ function jr() {
167
+ return Ce || (Ce = 1, (function() {
168
+ var n, t;
169
+ n = Xr(), t = Rr(), bt.exports = function() {
170
+ function l() {
171
+ this.defaultParams = {
172
+ "canonical-form": !1,
173
+ "cdata-sections": !1,
174
+ comments: !1,
175
+ "datatype-normalization": !1,
176
+ "element-content-whitespace": !0,
177
+ entities: !0,
178
+ "error-handler": new n(),
179
+ infoset: !0,
180
+ "validate-if-schema": !1,
181
+ namespaces: !0,
182
+ "namespace-declarations": !0,
183
+ "normalize-characters": !1,
184
+ "schema-location": "",
185
+ "schema-type": "",
186
+ "split-cdata-sections": !0,
187
+ validate: !1,
188
+ "well-formed": !0
189
+ }, this.params = Object.create(this.defaultParams);
190
+ }
191
+ return Object.defineProperty(l.prototype, "parameterNames", {
192
+ get: function() {
193
+ return new t(Object.keys(this.defaultParams));
194
+ }
195
+ }), l.prototype.getParameter = function(u) {
196
+ return this.params.hasOwnProperty(u) ? this.params[u] : null;
197
+ }, l.prototype.canSetParameter = function(u, f) {
198
+ return !0;
199
+ }, l.prototype.setParameter = function(u, f) {
200
+ return f != null ? this.params[u] = f : delete this.params[u];
201
+ }, l;
202
+ }();
203
+ }).call(X)), bt.exports;
204
+ }
205
+ var It = { exports: {} }, vt = { exports: {} }, Ct = { exports: {} }, Ae;
206
+ function W() {
207
+ return Ae || (Ae = 1, (function() {
208
+ Ct.exports = {
209
+ Element: 1,
210
+ Attribute: 2,
211
+ Text: 3,
212
+ CData: 4,
213
+ EntityReference: 5,
214
+ EntityDeclaration: 6,
215
+ ProcessingInstruction: 7,
216
+ Comment: 8,
217
+ Document: 9,
218
+ DocType: 10,
219
+ DocumentFragment: 11,
220
+ NotationDeclaration: 12,
221
+ Declaration: 201,
222
+ Raw: 202,
223
+ AttributeDeclaration: 203,
224
+ ElementDeclaration: 204,
225
+ Dummy: 205
226
+ };
227
+ }).call(X)), Ct.exports;
228
+ }
229
+ var At = { exports: {} }, Le;
230
+ function fr() {
231
+ return Le || (Le = 1, (function() {
232
+ var n;
233
+ n = W(), Z(), At.exports = function() {
234
+ function t(l, u, f) {
235
+ if (this.parent = l, this.parent && (this.options = this.parent.options, this.stringify = this.parent.stringify), u == null)
236
+ throw new Error("Missing attribute name. " + this.debugInfo(u));
237
+ this.name = this.stringify.name(u), this.value = this.stringify.attValue(f), this.type = n.Attribute, this.isId = !1, this.schemaTypeInfo = null;
238
+ }
239
+ return Object.defineProperty(t.prototype, "nodeType", {
240
+ get: function() {
241
+ return this.type;
242
+ }
243
+ }), Object.defineProperty(t.prototype, "ownerElement", {
244
+ get: function() {
245
+ return this.parent;
246
+ }
247
+ }), Object.defineProperty(t.prototype, "textContent", {
248
+ get: function() {
249
+ return this.value;
250
+ },
251
+ set: function(l) {
252
+ return this.value = l || "";
253
+ }
254
+ }), Object.defineProperty(t.prototype, "namespaceURI", {
255
+ get: function() {
256
+ return "";
257
+ }
258
+ }), Object.defineProperty(t.prototype, "prefix", {
259
+ get: function() {
260
+ return "";
261
+ }
262
+ }), Object.defineProperty(t.prototype, "localName", {
263
+ get: function() {
264
+ return this.name;
265
+ }
266
+ }), Object.defineProperty(t.prototype, "specified", {
267
+ get: function() {
268
+ return !0;
269
+ }
270
+ }), t.prototype.clone = function() {
271
+ return Object.create(this);
272
+ }, t.prototype.toString = function(l) {
273
+ return this.options.writer.attribute(this, this.options.writer.filterOptions(l));
274
+ }, t.prototype.debugInfo = function(l) {
275
+ return l = l || this.name, l == null ? "parent: <" + this.parent.name + ">" : "attribute: {" + l + "}, parent: <" + this.parent.name + ">";
276
+ }, t.prototype.isEqualNode = function(l) {
277
+ return !(l.namespaceURI !== this.namespaceURI || l.prefix !== this.prefix || l.localName !== this.localName || l.value !== this.value);
278
+ }, t;
279
+ }();
280
+ }).call(X)), At.exports;
281
+ }
282
+ var Lt = { exports: {} }, Pe;
283
+ function re() {
284
+ return Pe || (Pe = 1, (function() {
285
+ Lt.exports = function() {
286
+ function n(t) {
287
+ this.nodes = t;
288
+ }
289
+ return Object.defineProperty(n.prototype, "length", {
290
+ get: function() {
291
+ return Object.keys(this.nodes).length || 0;
292
+ }
293
+ }), n.prototype.clone = function() {
294
+ return this.nodes = null;
295
+ }, n.prototype.getNamedItem = function(t) {
296
+ return this.nodes[t];
297
+ }, n.prototype.setNamedItem = function(t) {
298
+ var l;
299
+ return l = this.nodes[t.nodeName], this.nodes[t.nodeName] = t, l || null;
300
+ }, n.prototype.removeNamedItem = function(t) {
301
+ var l;
302
+ return l = this.nodes[t], delete this.nodes[t], l || null;
303
+ }, n.prototype.item = function(t) {
304
+ return this.nodes[Object.keys(this.nodes)[t]] || null;
305
+ }, n.prototype.getNamedItemNS = function(t, l) {
306
+ throw new Error("This DOM method is not implemented.");
307
+ }, n.prototype.setNamedItemNS = function(t) {
308
+ throw new Error("This DOM method is not implemented.");
309
+ }, n.prototype.removeNamedItemNS = function(t, l) {
310
+ throw new Error("This DOM method is not implemented.");
311
+ }, n;
312
+ }();
313
+ }).call(X)), Lt.exports;
314
+ }
315
+ var _e;
316
+ function ne() {
317
+ return _e || (_e = 1, (function() {
318
+ var n, t, l, u, f, r, e, s, h = function(w, m) {
319
+ for (var d in m)
320
+ D.call(m, d) && (w[d] = m[d]);
321
+ function E() {
322
+ this.constructor = w;
323
+ }
324
+ return E.prototype = m.prototype, w.prototype = new E(), w.__super__ = m.prototype, w;
325
+ }, D = {}.hasOwnProperty;
326
+ s = nt(), e = s.isObject, r = s.isFunction, f = s.getValue, u = Z(), n = W(), t = fr(), l = re(), vt.exports = function(w) {
327
+ h(m, w);
328
+ function m(d, E, b) {
329
+ var O, I, g, p;
330
+ if (m.__super__.constructor.call(this, d), E == null)
331
+ throw new Error("Missing element name. " + this.debugInfo());
332
+ if (this.name = this.stringify.name(E), this.type = n.Element, this.attribs = {}, this.schemaTypeInfo = null, b != null && this.attribute(b), d.type === n.Document && (this.isRoot = !0, this.documentObject = d, d.rootObject = this, d.children)) {
333
+ for (p = d.children, I = 0, g = p.length; I < g; I++)
334
+ if (O = p[I], O.type === n.DocType) {
335
+ O.name = this.name;
336
+ break;
337
+ }
338
+ }
339
+ }
340
+ return Object.defineProperty(m.prototype, "tagName", {
341
+ get: function() {
342
+ return this.name;
343
+ }
344
+ }), Object.defineProperty(m.prototype, "namespaceURI", {
345
+ get: function() {
346
+ return "";
347
+ }
348
+ }), Object.defineProperty(m.prototype, "prefix", {
349
+ get: function() {
350
+ return "";
351
+ }
352
+ }), Object.defineProperty(m.prototype, "localName", {
353
+ get: function() {
354
+ return this.name;
355
+ }
356
+ }), Object.defineProperty(m.prototype, "id", {
357
+ get: function() {
358
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
359
+ }
360
+ }), Object.defineProperty(m.prototype, "className", {
361
+ get: function() {
362
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
363
+ }
364
+ }), Object.defineProperty(m.prototype, "classList", {
365
+ get: function() {
366
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
367
+ }
368
+ }), Object.defineProperty(m.prototype, "attributes", {
369
+ get: function() {
370
+ return (!this.attributeMap || !this.attributeMap.nodes) && (this.attributeMap = new l(this.attribs)), this.attributeMap;
371
+ }
372
+ }), m.prototype.clone = function() {
373
+ var d, E, b, O;
374
+ b = Object.create(this), b.isRoot && (b.documentObject = null), b.attribs = {}, O = this.attribs;
375
+ for (E in O)
376
+ D.call(O, E) && (d = O[E], b.attribs[E] = d.clone());
377
+ return b.children = [], this.children.forEach(function(I) {
378
+ var g;
379
+ return g = I.clone(), g.parent = b, b.children.push(g);
380
+ }), b;
381
+ }, m.prototype.attribute = function(d, E) {
382
+ var b, O;
383
+ if (d != null && (d = f(d)), e(d))
384
+ for (b in d)
385
+ D.call(d, b) && (O = d[b], this.attribute(b, O));
386
+ else
387
+ r(E) && (E = E.apply()), this.options.keepNullAttributes && E == null ? this.attribs[d] = new t(this, d, "") : E != null && (this.attribs[d] = new t(this, d, E));
388
+ return this;
389
+ }, m.prototype.removeAttribute = function(d) {
390
+ var E, b, O;
391
+ if (d == null)
392
+ throw new Error("Missing attribute name. " + this.debugInfo());
393
+ if (d = f(d), Array.isArray(d))
394
+ for (b = 0, O = d.length; b < O; b++)
395
+ E = d[b], delete this.attribs[E];
396
+ else
397
+ delete this.attribs[d];
398
+ return this;
399
+ }, m.prototype.toString = function(d) {
400
+ return this.options.writer.element(this, this.options.writer.filterOptions(d));
401
+ }, m.prototype.att = function(d, E) {
402
+ return this.attribute(d, E);
403
+ }, m.prototype.a = function(d, E) {
404
+ return this.attribute(d, E);
405
+ }, m.prototype.getAttribute = function(d) {
406
+ return this.attribs.hasOwnProperty(d) ? this.attribs[d].value : null;
407
+ }, m.prototype.setAttribute = function(d, E) {
408
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
409
+ }, m.prototype.getAttributeNode = function(d) {
410
+ return this.attribs.hasOwnProperty(d) ? this.attribs[d] : null;
411
+ }, m.prototype.setAttributeNode = function(d) {
412
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
413
+ }, m.prototype.removeAttributeNode = function(d) {
414
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
415
+ }, m.prototype.getElementsByTagName = function(d) {
416
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
417
+ }, m.prototype.getAttributeNS = function(d, E) {
418
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
419
+ }, m.prototype.setAttributeNS = function(d, E, b) {
420
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
421
+ }, m.prototype.removeAttributeNS = function(d, E) {
422
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
423
+ }, m.prototype.getAttributeNodeNS = function(d, E) {
424
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
425
+ }, m.prototype.setAttributeNodeNS = function(d) {
426
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
427
+ }, m.prototype.getElementsByTagNameNS = function(d, E) {
428
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
429
+ }, m.prototype.hasAttribute = function(d) {
430
+ return this.attribs.hasOwnProperty(d);
431
+ }, m.prototype.hasAttributeNS = function(d, E) {
432
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
433
+ }, m.prototype.setIdAttribute = function(d, E) {
434
+ return this.attribs.hasOwnProperty(d) ? this.attribs[d].isId : E;
435
+ }, m.prototype.setIdAttributeNS = function(d, E, b) {
436
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
437
+ }, m.prototype.setIdAttributeNode = function(d, E) {
438
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
439
+ }, m.prototype.getElementsByTagName = function(d) {
440
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
441
+ }, m.prototype.getElementsByTagNameNS = function(d, E) {
442
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
443
+ }, m.prototype.getElementsByClassName = function(d) {
444
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
445
+ }, m.prototype.isEqualNode = function(d) {
446
+ var E, b, O;
447
+ if (!m.__super__.isEqualNode.apply(this, arguments).isEqualNode(d) || d.namespaceURI !== this.namespaceURI || d.prefix !== this.prefix || d.localName !== this.localName || d.attribs.length !== this.attribs.length)
448
+ return !1;
449
+ for (E = b = 0, O = this.attribs.length - 1; 0 <= O ? b <= O : b >= O; E = 0 <= O ? ++b : --b)
450
+ if (!this.attribs[E].isEqualNode(d.attribs[E]))
451
+ return !1;
452
+ return !0;
453
+ }, m;
454
+ }(u);
455
+ }).call(X)), vt.exports;
456
+ }
457
+ var Pt = { exports: {} }, _t = { exports: {} }, Me;
458
+ function ft() {
459
+ return Me || (Me = 1, (function() {
460
+ var n, t = function(u, f) {
461
+ for (var r in f)
462
+ l.call(f, r) && (u[r] = f[r]);
463
+ function e() {
464
+ this.constructor = u;
465
+ }
466
+ return e.prototype = f.prototype, u.prototype = new e(), u.__super__ = f.prototype, u;
467
+ }, l = {}.hasOwnProperty;
468
+ n = Z(), _t.exports = function(u) {
469
+ t(f, u);
470
+ function f(r) {
471
+ f.__super__.constructor.call(this, r), this.value = "";
472
+ }
473
+ return Object.defineProperty(f.prototype, "data", {
474
+ get: function() {
475
+ return this.value;
476
+ },
477
+ set: function(r) {
478
+ return this.value = r || "";
479
+ }
480
+ }), Object.defineProperty(f.prototype, "length", {
481
+ get: function() {
482
+ return this.value.length;
483
+ }
484
+ }), Object.defineProperty(f.prototype, "textContent", {
485
+ get: function() {
486
+ return this.value;
487
+ },
488
+ set: function(r) {
489
+ return this.value = r || "";
490
+ }
491
+ }), f.prototype.clone = function() {
492
+ return Object.create(this);
493
+ }, f.prototype.substringData = function(r, e) {
494
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
495
+ }, f.prototype.appendData = function(r) {
496
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
497
+ }, f.prototype.insertData = function(r, e) {
498
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
499
+ }, f.prototype.deleteData = function(r, e) {
500
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
501
+ }, f.prototype.replaceData = function(r, e, s) {
502
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
503
+ }, f.prototype.isEqualNode = function(r) {
504
+ return !(!f.__super__.isEqualNode.apply(this, arguments).isEqualNode(r) || r.data !== this.data);
505
+ }, f;
506
+ }(n);
507
+ }).call(X)), _t.exports;
508
+ }
509
+ var Fe;
510
+ function ie() {
511
+ return Fe || (Fe = 1, (function() {
512
+ var n, t, l = function(f, r) {
513
+ for (var e in r)
514
+ u.call(r, e) && (f[e] = r[e]);
515
+ function s() {
516
+ this.constructor = f;
517
+ }
518
+ return s.prototype = r.prototype, f.prototype = new s(), f.__super__ = r.prototype, f;
519
+ }, u = {}.hasOwnProperty;
520
+ n = W(), t = ft(), Pt.exports = function(f) {
521
+ l(r, f);
522
+ function r(e, s) {
523
+ if (r.__super__.constructor.call(this, e), s == null)
524
+ throw new Error("Missing CDATA text. " + this.debugInfo());
525
+ this.name = "#cdata-section", this.type = n.CData, this.value = this.stringify.cdata(s);
526
+ }
527
+ return r.prototype.clone = function() {
528
+ return Object.create(this);
529
+ }, r.prototype.toString = function(e) {
530
+ return this.options.writer.cdata(this, this.options.writer.filterOptions(e));
531
+ }, r;
532
+ }(t);
533
+ }).call(X)), Pt.exports;
534
+ }
535
+ var Mt = { exports: {} }, Se;
536
+ function oe() {
537
+ return Se || (Se = 1, (function() {
538
+ var n, t, l = function(f, r) {
539
+ for (var e in r)
540
+ u.call(r, e) && (f[e] = r[e]);
541
+ function s() {
542
+ this.constructor = f;
543
+ }
544
+ return s.prototype = r.prototype, f.prototype = new s(), f.__super__ = r.prototype, f;
545
+ }, u = {}.hasOwnProperty;
546
+ n = W(), t = ft(), Mt.exports = function(f) {
547
+ l(r, f);
548
+ function r(e, s) {
549
+ if (r.__super__.constructor.call(this, e), s == null)
550
+ throw new Error("Missing comment text. " + this.debugInfo());
551
+ this.name = "#comment", this.type = n.Comment, this.value = this.stringify.comment(s);
552
+ }
553
+ return r.prototype.clone = function() {
554
+ return Object.create(this);
555
+ }, r.prototype.toString = function(e) {
556
+ return this.options.writer.comment(this, this.options.writer.filterOptions(e));
557
+ }, r;
558
+ }(t);
559
+ }).call(X)), Mt.exports;
560
+ }
561
+ var Ft = { exports: {} }, Xe;
562
+ function se() {
563
+ return Xe || (Xe = 1, (function() {
564
+ var n, t, l, u = function(r, e) {
565
+ for (var s in e)
566
+ f.call(e, s) && (r[s] = e[s]);
567
+ function h() {
568
+ this.constructor = r;
569
+ }
570
+ return h.prototype = e.prototype, r.prototype = new h(), r.__super__ = e.prototype, r;
571
+ }, f = {}.hasOwnProperty;
572
+ l = nt().isObject, t = Z(), n = W(), Ft.exports = function(r) {
573
+ u(e, r);
574
+ function e(s, h, D, w) {
575
+ var m;
576
+ e.__super__.constructor.call(this, s), l(h) && (m = h, h = m.version, D = m.encoding, w = m.standalone), h || (h = "1.0"), this.type = n.Declaration, this.version = this.stringify.xmlVersion(h), D != null && (this.encoding = this.stringify.xmlEncoding(D)), w != null && (this.standalone = this.stringify.xmlStandalone(w));
577
+ }
578
+ return e.prototype.toString = function(s) {
579
+ return this.options.writer.declaration(this, this.options.writer.filterOptions(s));
580
+ }, e;
581
+ }(t);
582
+ }).call(X)), Ft.exports;
583
+ }
584
+ var St = { exports: {} }, Xt = { exports: {} }, Re;
585
+ function ae() {
586
+ return Re || (Re = 1, (function() {
587
+ var n, t, l = function(f, r) {
588
+ for (var e in r)
589
+ u.call(r, e) && (f[e] = r[e]);
590
+ function s() {
591
+ this.constructor = f;
592
+ }
593
+ return s.prototype = r.prototype, f.prototype = new s(), f.__super__ = r.prototype, f;
594
+ }, u = {}.hasOwnProperty;
595
+ t = Z(), n = W(), Xt.exports = function(f) {
596
+ l(r, f);
597
+ function r(e, s, h, D, w, m) {
598
+ if (r.__super__.constructor.call(this, e), s == null)
599
+ throw new Error("Missing DTD element name. " + this.debugInfo());
600
+ if (h == null)
601
+ throw new Error("Missing DTD attribute name. " + this.debugInfo(s));
602
+ if (!D)
603
+ throw new Error("Missing DTD attribute type. " + this.debugInfo(s));
604
+ if (!w)
605
+ throw new Error("Missing DTD attribute default. " + this.debugInfo(s));
606
+ if (w.indexOf("#") !== 0 && (w = "#" + w), !w.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))
607
+ throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. " + this.debugInfo(s));
608
+ if (m && !w.match(/^(#FIXED|#DEFAULT)$/))
609
+ throw new Error("Default value only applies to #FIXED or #DEFAULT. " + this.debugInfo(s));
610
+ this.elementName = this.stringify.name(s), this.type = n.AttributeDeclaration, this.attributeName = this.stringify.name(h), this.attributeType = this.stringify.dtdAttType(D), m && (this.defaultValue = this.stringify.dtdAttDefault(m)), this.defaultValueType = w;
611
+ }
612
+ return r.prototype.toString = function(e) {
613
+ return this.options.writer.dtdAttList(this, this.options.writer.filterOptions(e));
614
+ }, r;
615
+ }(t);
616
+ }).call(X)), Xt.exports;
617
+ }
618
+ var Rt = { exports: {} }, je;
619
+ function ue() {
620
+ return je || (je = 1, (function() {
621
+ var n, t, l, u = function(r, e) {
622
+ for (var s in e)
623
+ f.call(e, s) && (r[s] = e[s]);
624
+ function h() {
625
+ this.constructor = r;
626
+ }
627
+ return h.prototype = e.prototype, r.prototype = new h(), r.__super__ = e.prototype, r;
628
+ }, f = {}.hasOwnProperty;
629
+ l = nt().isObject, t = Z(), n = W(), Rt.exports = function(r) {
630
+ u(e, r);
631
+ function e(s, h, D, w) {
632
+ if (e.__super__.constructor.call(this, s), D == null)
633
+ throw new Error("Missing DTD entity name. " + this.debugInfo(D));
634
+ if (w == null)
635
+ throw new Error("Missing DTD entity value. " + this.debugInfo(D));
636
+ if (this.pe = !!h, this.name = this.stringify.name(D), this.type = n.EntityDeclaration, !l(w))
637
+ this.value = this.stringify.dtdEntityValue(w), this.internal = !0;
638
+ else {
639
+ if (!w.pubID && !w.sysID)
640
+ throw new Error("Public and/or system identifiers are required for an external entity. " + this.debugInfo(D));
641
+ if (w.pubID && !w.sysID)
642
+ throw new Error("System identifier is required for a public external entity. " + this.debugInfo(D));
643
+ if (this.internal = !1, w.pubID != null && (this.pubID = this.stringify.dtdPubID(w.pubID)), w.sysID != null && (this.sysID = this.stringify.dtdSysID(w.sysID)), w.nData != null && (this.nData = this.stringify.dtdNData(w.nData)), this.pe && this.nData)
644
+ throw new Error("Notation declaration is not allowed in a parameter entity. " + this.debugInfo(D));
645
+ }
646
+ }
647
+ return Object.defineProperty(e.prototype, "publicId", {
648
+ get: function() {
649
+ return this.pubID;
650
+ }
651
+ }), Object.defineProperty(e.prototype, "systemId", {
652
+ get: function() {
653
+ return this.sysID;
654
+ }
655
+ }), Object.defineProperty(e.prototype, "notationName", {
656
+ get: function() {
657
+ return this.nData || null;
658
+ }
659
+ }), Object.defineProperty(e.prototype, "inputEncoding", {
660
+ get: function() {
661
+ return null;
662
+ }
663
+ }), Object.defineProperty(e.prototype, "xmlEncoding", {
664
+ get: function() {
665
+ return null;
666
+ }
667
+ }), Object.defineProperty(e.prototype, "xmlVersion", {
668
+ get: function() {
669
+ return null;
670
+ }
671
+ }), e.prototype.toString = function(s) {
672
+ return this.options.writer.dtdEntity(this, this.options.writer.filterOptions(s));
673
+ }, e;
674
+ }(t);
675
+ }).call(X)), Rt.exports;
676
+ }
677
+ var jt = { exports: {} }, Be;
678
+ function ce() {
679
+ return Be || (Be = 1, (function() {
680
+ var n, t, l = function(f, r) {
681
+ for (var e in r)
682
+ u.call(r, e) && (f[e] = r[e]);
683
+ function s() {
684
+ this.constructor = f;
685
+ }
686
+ return s.prototype = r.prototype, f.prototype = new s(), f.__super__ = r.prototype, f;
687
+ }, u = {}.hasOwnProperty;
688
+ t = Z(), n = W(), jt.exports = function(f) {
689
+ l(r, f);
690
+ function r(e, s, h) {
691
+ if (r.__super__.constructor.call(this, e), s == null)
692
+ throw new Error("Missing DTD element name. " + this.debugInfo());
693
+ h || (h = "(#PCDATA)"), Array.isArray(h) && (h = "(" + h.join(",") + ")"), this.name = this.stringify.name(s), this.type = n.ElementDeclaration, this.value = this.stringify.dtdElementValue(h);
694
+ }
695
+ return r.prototype.toString = function(e) {
696
+ return this.options.writer.dtdElement(this, this.options.writer.filterOptions(e));
697
+ }, r;
698
+ }(t);
699
+ }).call(X)), jt.exports;
700
+ }
701
+ var Bt = { exports: {} }, Ke;
702
+ function le() {
703
+ return Ke || (Ke = 1, (function() {
704
+ var n, t, l = function(f, r) {
705
+ for (var e in r)
706
+ u.call(r, e) && (f[e] = r[e]);
707
+ function s() {
708
+ this.constructor = f;
709
+ }
710
+ return s.prototype = r.prototype, f.prototype = new s(), f.__super__ = r.prototype, f;
711
+ }, u = {}.hasOwnProperty;
712
+ t = Z(), n = W(), Bt.exports = function(f) {
713
+ l(r, f);
714
+ function r(e, s, h) {
715
+ if (r.__super__.constructor.call(this, e), s == null)
716
+ throw new Error("Missing DTD notation name. " + this.debugInfo(s));
717
+ if (!h.pubID && !h.sysID)
718
+ throw new Error("Public or system identifiers are required for an external entity. " + this.debugInfo(s));
719
+ this.name = this.stringify.name(s), this.type = n.NotationDeclaration, h.pubID != null && (this.pubID = this.stringify.dtdPubID(h.pubID)), h.sysID != null && (this.sysID = this.stringify.dtdSysID(h.sysID));
720
+ }
721
+ return Object.defineProperty(r.prototype, "publicId", {
722
+ get: function() {
723
+ return this.pubID;
724
+ }
725
+ }), Object.defineProperty(r.prototype, "systemId", {
726
+ get: function() {
727
+ return this.sysID;
728
+ }
729
+ }), r.prototype.toString = function(e) {
730
+ return this.options.writer.dtdNotation(this, this.options.writer.filterOptions(e));
731
+ }, r;
732
+ }(t);
733
+ }).call(X)), Bt.exports;
734
+ }
735
+ var qe;
736
+ function fe() {
737
+ return qe || (qe = 1, (function() {
738
+ var n, t, l, u, f, r, e, s, h = function(w, m) {
739
+ for (var d in m)
740
+ D.call(m, d) && (w[d] = m[d]);
741
+ function E() {
742
+ this.constructor = w;
743
+ }
744
+ return E.prototype = m.prototype, w.prototype = new E(), w.__super__ = m.prototype, w;
745
+ }, D = {}.hasOwnProperty;
746
+ s = nt().isObject, e = Z(), n = W(), t = ae(), u = ue(), l = ce(), f = le(), r = re(), St.exports = function(w) {
747
+ h(m, w);
748
+ function m(d, E, b) {
749
+ var O, I, g, p, a, y;
750
+ if (m.__super__.constructor.call(this, d), this.type = n.DocType, d.children) {
751
+ for (p = d.children, I = 0, g = p.length; I < g; I++)
752
+ if (O = p[I], O.type === n.Element) {
753
+ this.name = O.name;
754
+ break;
755
+ }
756
+ }
757
+ this.documentObject = d, s(E) && (a = E, E = a.pubID, b = a.sysID), b == null && (y = [E, b], b = y[0], E = y[1]), E != null && (this.pubID = this.stringify.dtdPubID(E)), b != null && (this.sysID = this.stringify.dtdSysID(b));
758
+ }
759
+ return Object.defineProperty(m.prototype, "entities", {
760
+ get: function() {
761
+ var d, E, b, O, I;
762
+ for (O = {}, I = this.children, E = 0, b = I.length; E < b; E++)
763
+ d = I[E], d.type === n.EntityDeclaration && !d.pe && (O[d.name] = d);
764
+ return new r(O);
765
+ }
766
+ }), Object.defineProperty(m.prototype, "notations", {
767
+ get: function() {
768
+ var d, E, b, O, I;
769
+ for (O = {}, I = this.children, E = 0, b = I.length; E < b; E++)
770
+ d = I[E], d.type === n.NotationDeclaration && (O[d.name] = d);
771
+ return new r(O);
772
+ }
773
+ }), Object.defineProperty(m.prototype, "publicId", {
774
+ get: function() {
775
+ return this.pubID;
776
+ }
777
+ }), Object.defineProperty(m.prototype, "systemId", {
778
+ get: function() {
779
+ return this.sysID;
780
+ }
781
+ }), Object.defineProperty(m.prototype, "internalSubset", {
782
+ get: function() {
783
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
784
+ }
785
+ }), m.prototype.element = function(d, E) {
786
+ var b;
787
+ return b = new l(this, d, E), this.children.push(b), this;
788
+ }, m.prototype.attList = function(d, E, b, O, I) {
789
+ var g;
790
+ return g = new t(this, d, E, b, O, I), this.children.push(g), this;
791
+ }, m.prototype.entity = function(d, E) {
792
+ var b;
793
+ return b = new u(this, !1, d, E), this.children.push(b), this;
794
+ }, m.prototype.pEntity = function(d, E) {
795
+ var b;
796
+ return b = new u(this, !0, d, E), this.children.push(b), this;
797
+ }, m.prototype.notation = function(d, E) {
798
+ var b;
799
+ return b = new f(this, d, E), this.children.push(b), this;
800
+ }, m.prototype.toString = function(d) {
801
+ return this.options.writer.docType(this, this.options.writer.filterOptions(d));
802
+ }, m.prototype.ele = function(d, E) {
803
+ return this.element(d, E);
804
+ }, m.prototype.att = function(d, E, b, O, I) {
805
+ return this.attList(d, E, b, O, I);
806
+ }, m.prototype.ent = function(d, E) {
807
+ return this.entity(d, E);
808
+ }, m.prototype.pent = function(d, E) {
809
+ return this.pEntity(d, E);
810
+ }, m.prototype.not = function(d, E) {
811
+ return this.notation(d, E);
812
+ }, m.prototype.up = function() {
813
+ return this.root() || this.documentObject;
814
+ }, m.prototype.isEqualNode = function(d) {
815
+ return !(!m.__super__.isEqualNode.apply(this, arguments).isEqualNode(d) || d.name !== this.name || d.publicId !== this.publicId || d.systemId !== this.systemId);
816
+ }, m;
817
+ }(e);
818
+ }).call(X)), St.exports;
819
+ }
820
+ var Kt = { exports: {} }, Ue;
821
+ function he() {
822
+ return Ue || (Ue = 1, (function() {
823
+ var n, t, l = function(f, r) {
824
+ for (var e in r)
825
+ u.call(r, e) && (f[e] = r[e]);
826
+ function s() {
827
+ this.constructor = f;
828
+ }
829
+ return s.prototype = r.prototype, f.prototype = new s(), f.__super__ = r.prototype, f;
830
+ }, u = {}.hasOwnProperty;
831
+ n = W(), t = Z(), Kt.exports = function(f) {
832
+ l(r, f);
833
+ function r(e, s) {
834
+ if (r.__super__.constructor.call(this, e), s == null)
835
+ throw new Error("Missing raw text. " + this.debugInfo());
836
+ this.type = n.Raw, this.value = this.stringify.raw(s);
837
+ }
838
+ return r.prototype.clone = function() {
839
+ return Object.create(this);
840
+ }, r.prototype.toString = function(e) {
841
+ return this.options.writer.raw(this, this.options.writer.filterOptions(e));
842
+ }, r;
843
+ }(t);
844
+ }).call(X)), Kt.exports;
845
+ }
846
+ var qt = { exports: {} }, Ve;
847
+ function pe() {
848
+ return Ve || (Ve = 1, (function() {
849
+ var n, t, l = function(f, r) {
850
+ for (var e in r)
851
+ u.call(r, e) && (f[e] = r[e]);
852
+ function s() {
853
+ this.constructor = f;
854
+ }
855
+ return s.prototype = r.prototype, f.prototype = new s(), f.__super__ = r.prototype, f;
856
+ }, u = {}.hasOwnProperty;
857
+ n = W(), t = ft(), qt.exports = function(f) {
858
+ l(r, f);
859
+ function r(e, s) {
860
+ if (r.__super__.constructor.call(this, e), s == null)
861
+ throw new Error("Missing element text. " + this.debugInfo());
862
+ this.name = "#text", this.type = n.Text, this.value = this.stringify.text(s);
863
+ }
864
+ return Object.defineProperty(r.prototype, "isElementContentWhitespace", {
865
+ get: function() {
866
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
867
+ }
868
+ }), Object.defineProperty(r.prototype, "wholeText", {
869
+ get: function() {
870
+ var e, s, h;
871
+ for (h = "", s = this.previousSibling; s; )
872
+ h = s.data + h, s = s.previousSibling;
873
+ for (h += this.data, e = this.nextSibling; e; )
874
+ h = h + e.data, e = e.nextSibling;
875
+ return h;
876
+ }
877
+ }), r.prototype.clone = function() {
878
+ return Object.create(this);
879
+ }, r.prototype.toString = function(e) {
880
+ return this.options.writer.text(this, this.options.writer.filterOptions(e));
881
+ }, r.prototype.splitText = function(e) {
882
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
883
+ }, r.prototype.replaceWholeText = function(e) {
884
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
885
+ }, r;
886
+ }(t);
887
+ }).call(X)), qt.exports;
888
+ }
889
+ var Ut = { exports: {} }, ke;
890
+ function de() {
891
+ return ke || (ke = 1, (function() {
892
+ var n, t, l = function(f, r) {
893
+ for (var e in r)
894
+ u.call(r, e) && (f[e] = r[e]);
895
+ function s() {
896
+ this.constructor = f;
897
+ }
898
+ return s.prototype = r.prototype, f.prototype = new s(), f.__super__ = r.prototype, f;
899
+ }, u = {}.hasOwnProperty;
900
+ n = W(), t = ft(), Ut.exports = function(f) {
901
+ l(r, f);
902
+ function r(e, s, h) {
903
+ if (r.__super__.constructor.call(this, e), s == null)
904
+ throw new Error("Missing instruction target. " + this.debugInfo());
905
+ this.type = n.ProcessingInstruction, this.target = this.stringify.insTarget(s), this.name = this.target, h && (this.value = this.stringify.insValue(h));
906
+ }
907
+ return r.prototype.clone = function() {
908
+ return Object.create(this);
909
+ }, r.prototype.toString = function(e) {
910
+ return this.options.writer.processingInstruction(this, this.options.writer.filterOptions(e));
911
+ }, r.prototype.isEqualNode = function(e) {
912
+ return !(!r.__super__.isEqualNode.apply(this, arguments).isEqualNode(e) || e.target !== this.target);
913
+ }, r;
914
+ }(t);
915
+ }).call(X)), Ut.exports;
916
+ }
917
+ var Vt = { exports: {} }, We;
918
+ function hr() {
919
+ return We || (We = 1, (function() {
920
+ var n, t, l = function(f, r) {
921
+ for (var e in r)
922
+ u.call(r, e) && (f[e] = r[e]);
923
+ function s() {
924
+ this.constructor = f;
925
+ }
926
+ return s.prototype = r.prototype, f.prototype = new s(), f.__super__ = r.prototype, f;
927
+ }, u = {}.hasOwnProperty;
928
+ t = Z(), n = W(), Vt.exports = function(f) {
929
+ l(r, f);
930
+ function r(e) {
931
+ r.__super__.constructor.call(this, e), this.type = n.Dummy;
932
+ }
933
+ return r.prototype.clone = function() {
934
+ return Object.create(this);
935
+ }, r.prototype.toString = function(e) {
936
+ return "";
937
+ }, r;
938
+ }(t);
939
+ }).call(X)), Vt.exports;
940
+ }
941
+ var kt = { exports: {} }, Ge;
942
+ function Br() {
943
+ return Ge || (Ge = 1, (function() {
944
+ kt.exports = function() {
945
+ function n(t) {
946
+ this.nodes = t;
947
+ }
948
+ return Object.defineProperty(n.prototype, "length", {
949
+ get: function() {
950
+ return this.nodes.length || 0;
951
+ }
952
+ }), n.prototype.clone = function() {
953
+ return this.nodes = null;
954
+ }, n.prototype.item = function(t) {
955
+ return this.nodes[t] || null;
956
+ }, n;
957
+ }();
958
+ }).call(X)), kt.exports;
959
+ }
960
+ var Wt = { exports: {} }, Ye;
961
+ function Kr() {
962
+ return Ye || (Ye = 1, (function() {
963
+ Wt.exports = {
964
+ Disconnected: 1,
965
+ Preceding: 2,
966
+ Following: 4,
967
+ Contains: 8,
968
+ ContainedBy: 16,
969
+ ImplementationSpecific: 32
970
+ };
971
+ }).call(X)), Wt.exports;
972
+ }
973
+ var He;
974
+ function Z() {
975
+ return He || (He = 1, (function() {
976
+ var n, t, l, u, f, r, e, s, h, D, w, m, d, E, b, O, I, g = {}.hasOwnProperty;
977
+ I = nt(), O = I.isObject, b = I.isFunction, E = I.isEmpty, d = I.getValue, s = null, l = null, u = null, f = null, r = null, w = null, m = null, D = null, e = null, t = null, h = null, n = null, It.exports = function() {
978
+ function p(a) {
979
+ this.parent = a, this.parent && (this.options = this.parent.options, this.stringify = this.parent.stringify), this.value = null, this.children = [], this.baseURI = null, s || (s = ne(), l = ie(), u = oe(), f = se(), r = fe(), w = he(), m = pe(), D = de(), e = hr(), t = W(), h = Br(), re(), n = Kr());
980
+ }
981
+ return Object.defineProperty(p.prototype, "nodeName", {
982
+ get: function() {
983
+ return this.name;
984
+ }
985
+ }), Object.defineProperty(p.prototype, "nodeType", {
986
+ get: function() {
987
+ return this.type;
988
+ }
989
+ }), Object.defineProperty(p.prototype, "nodeValue", {
990
+ get: function() {
991
+ return this.value;
992
+ }
993
+ }), Object.defineProperty(p.prototype, "parentNode", {
994
+ get: function() {
995
+ return this.parent;
996
+ }
997
+ }), Object.defineProperty(p.prototype, "childNodes", {
998
+ get: function() {
999
+ return (!this.childNodeList || !this.childNodeList.nodes) && (this.childNodeList = new h(this.children)), this.childNodeList;
1000
+ }
1001
+ }), Object.defineProperty(p.prototype, "firstChild", {
1002
+ get: function() {
1003
+ return this.children[0] || null;
1004
+ }
1005
+ }), Object.defineProperty(p.prototype, "lastChild", {
1006
+ get: function() {
1007
+ return this.children[this.children.length - 1] || null;
1008
+ }
1009
+ }), Object.defineProperty(p.prototype, "previousSibling", {
1010
+ get: function() {
1011
+ var a;
1012
+ return a = this.parent.children.indexOf(this), this.parent.children[a - 1] || null;
1013
+ }
1014
+ }), Object.defineProperty(p.prototype, "nextSibling", {
1015
+ get: function() {
1016
+ var a;
1017
+ return a = this.parent.children.indexOf(this), this.parent.children[a + 1] || null;
1018
+ }
1019
+ }), Object.defineProperty(p.prototype, "ownerDocument", {
1020
+ get: function() {
1021
+ return this.document() || null;
1022
+ }
1023
+ }), Object.defineProperty(p.prototype, "textContent", {
1024
+ get: function() {
1025
+ var a, y, N, P, _;
1026
+ if (this.nodeType === t.Element || this.nodeType === t.DocumentFragment) {
1027
+ for (_ = "", P = this.children, y = 0, N = P.length; y < N; y++)
1028
+ a = P[y], a.textContent && (_ += a.textContent);
1029
+ return _;
1030
+ } else
1031
+ return null;
1032
+ },
1033
+ set: function(a) {
1034
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
1035
+ }
1036
+ }), p.prototype.setParent = function(a) {
1037
+ var y, N, P, _, A;
1038
+ for (this.parent = a, a && (this.options = a.options, this.stringify = a.stringify), _ = this.children, A = [], N = 0, P = _.length; N < P; N++)
1039
+ y = _[N], A.push(y.setParent(this));
1040
+ return A;
1041
+ }, p.prototype.element = function(a, y, N) {
1042
+ var P, _, A, i, v, L, M, B, q, V, K;
1043
+ if (L = null, y === null && N == null && (q = [{}, null], y = q[0], N = q[1]), y == null && (y = {}), y = d(y), O(y) || (V = [y, N], N = V[0], y = V[1]), a != null && (a = d(a)), Array.isArray(a))
1044
+ for (A = 0, M = a.length; A < M; A++)
1045
+ _ = a[A], L = this.element(_);
1046
+ else if (b(a))
1047
+ L = this.element(a.apply());
1048
+ else if (O(a)) {
1049
+ for (v in a)
1050
+ if (g.call(a, v))
1051
+ if (K = a[v], b(K) && (K = K.apply()), !this.options.ignoreDecorators && this.stringify.convertAttKey && v.indexOf(this.stringify.convertAttKey) === 0)
1052
+ L = this.attribute(v.substr(this.stringify.convertAttKey.length), K);
1053
+ else if (!this.options.separateArrayItems && Array.isArray(K) && E(K))
1054
+ L = this.dummy();
1055
+ else if (O(K) && E(K))
1056
+ L = this.element(v);
1057
+ else if (!this.options.keepNullNodes && K == null)
1058
+ L = this.dummy();
1059
+ else if (!this.options.separateArrayItems && Array.isArray(K))
1060
+ for (i = 0, B = K.length; i < B; i++)
1061
+ _ = K[i], P = {}, P[v] = _, L = this.element(P);
1062
+ else O(K) ? !this.options.ignoreDecorators && this.stringify.convertTextKey && v.indexOf(this.stringify.convertTextKey) === 0 ? L = this.element(K) : (L = this.element(v), L.element(K)) : L = this.element(v, K);
1063
+ } else !this.options.keepNullNodes && N === null ? L = this.dummy() : !this.options.ignoreDecorators && this.stringify.convertTextKey && a.indexOf(this.stringify.convertTextKey) === 0 ? L = this.text(N) : !this.options.ignoreDecorators && this.stringify.convertCDataKey && a.indexOf(this.stringify.convertCDataKey) === 0 ? L = this.cdata(N) : !this.options.ignoreDecorators && this.stringify.convertCommentKey && a.indexOf(this.stringify.convertCommentKey) === 0 ? L = this.comment(N) : !this.options.ignoreDecorators && this.stringify.convertRawKey && a.indexOf(this.stringify.convertRawKey) === 0 ? L = this.raw(N) : !this.options.ignoreDecorators && this.stringify.convertPIKey && a.indexOf(this.stringify.convertPIKey) === 0 ? L = this.instruction(a.substr(this.stringify.convertPIKey.length), N) : L = this.node(a, y, N);
1064
+ if (L == null)
1065
+ throw new Error("Could not create any elements with: " + a + ". " + this.debugInfo());
1066
+ return L;
1067
+ }, p.prototype.insertBefore = function(a, y, N) {
1068
+ var P, _, A, i, v;
1069
+ if (a != null && a.type)
1070
+ return A = a, i = y, A.setParent(this), i ? (_ = children.indexOf(i), v = children.splice(_), children.push(A), Array.prototype.push.apply(children, v)) : children.push(A), A;
1071
+ if (this.isRoot)
1072
+ throw new Error("Cannot insert elements at root level. " + this.debugInfo(a));
1073
+ return _ = this.parent.children.indexOf(this), v = this.parent.children.splice(_), P = this.parent.element(a, y, N), Array.prototype.push.apply(this.parent.children, v), P;
1074
+ }, p.prototype.insertAfter = function(a, y, N) {
1075
+ var P, _, A;
1076
+ if (this.isRoot)
1077
+ throw new Error("Cannot insert elements at root level. " + this.debugInfo(a));
1078
+ return _ = this.parent.children.indexOf(this), A = this.parent.children.splice(_ + 1), P = this.parent.element(a, y, N), Array.prototype.push.apply(this.parent.children, A), P;
1079
+ }, p.prototype.remove = function() {
1080
+ var a;
1081
+ if (this.isRoot)
1082
+ throw new Error("Cannot remove the root element. " + this.debugInfo());
1083
+ return a = this.parent.children.indexOf(this), [].splice.apply(this.parent.children, [a, a - a + 1].concat([])), this.parent;
1084
+ }, p.prototype.node = function(a, y, N) {
1085
+ var P, _;
1086
+ return a != null && (a = d(a)), y || (y = {}), y = d(y), O(y) || (_ = [y, N], N = _[0], y = _[1]), P = new s(this, a, y), N != null && P.text(N), this.children.push(P), P;
1087
+ }, p.prototype.text = function(a) {
1088
+ var y;
1089
+ return O(a) && this.element(a), y = new m(this, a), this.children.push(y), this;
1090
+ }, p.prototype.cdata = function(a) {
1091
+ var y;
1092
+ return y = new l(this, a), this.children.push(y), this;
1093
+ }, p.prototype.comment = function(a) {
1094
+ var y;
1095
+ return y = new u(this, a), this.children.push(y), this;
1096
+ }, p.prototype.commentBefore = function(a) {
1097
+ var y, N;
1098
+ return y = this.parent.children.indexOf(this), N = this.parent.children.splice(y), this.parent.comment(a), Array.prototype.push.apply(this.parent.children, N), this;
1099
+ }, p.prototype.commentAfter = function(a) {
1100
+ var y, N;
1101
+ return y = this.parent.children.indexOf(this), N = this.parent.children.splice(y + 1), this.parent.comment(a), Array.prototype.push.apply(this.parent.children, N), this;
1102
+ }, p.prototype.raw = function(a) {
1103
+ var y;
1104
+ return y = new w(this, a), this.children.push(y), this;
1105
+ }, p.prototype.dummy = function() {
1106
+ var a;
1107
+ return a = new e(this), a;
1108
+ }, p.prototype.instruction = function(a, y) {
1109
+ var N, P, _, A, i;
1110
+ if (a != null && (a = d(a)), y != null && (y = d(y)), Array.isArray(a))
1111
+ for (A = 0, i = a.length; A < i; A++)
1112
+ N = a[A], this.instruction(N);
1113
+ else if (O(a))
1114
+ for (N in a)
1115
+ g.call(a, N) && (P = a[N], this.instruction(N, P));
1116
+ else
1117
+ b(y) && (y = y.apply()), _ = new D(this, a, y), this.children.push(_);
1118
+ return this;
1119
+ }, p.prototype.instructionBefore = function(a, y) {
1120
+ var N, P;
1121
+ return N = this.parent.children.indexOf(this), P = this.parent.children.splice(N), this.parent.instruction(a, y), Array.prototype.push.apply(this.parent.children, P), this;
1122
+ }, p.prototype.instructionAfter = function(a, y) {
1123
+ var N, P;
1124
+ return N = this.parent.children.indexOf(this), P = this.parent.children.splice(N + 1), this.parent.instruction(a, y), Array.prototype.push.apply(this.parent.children, P), this;
1125
+ }, p.prototype.declaration = function(a, y, N) {
1126
+ var P, _;
1127
+ return P = this.document(), _ = new f(P, a, y, N), P.children.length === 0 ? P.children.unshift(_) : P.children[0].type === t.Declaration ? P.children[0] = _ : P.children.unshift(_), P.root() || P;
1128
+ }, p.prototype.dtd = function(a, y) {
1129
+ var N, P, _, A, i, v, L, M, B, q;
1130
+ for (P = this.document(), _ = new r(P, a, y), B = P.children, A = i = 0, L = B.length; i < L; A = ++i)
1131
+ if (N = B[A], N.type === t.DocType)
1132
+ return P.children[A] = _, _;
1133
+ for (q = P.children, A = v = 0, M = q.length; v < M; A = ++v)
1134
+ if (N = q[A], N.isRoot)
1135
+ return P.children.splice(A, 0, _), _;
1136
+ return P.children.push(_), _;
1137
+ }, p.prototype.up = function() {
1138
+ if (this.isRoot)
1139
+ throw new Error("The root node has no parent. Use doc() if you need to get the document object.");
1140
+ return this.parent;
1141
+ }, p.prototype.root = function() {
1142
+ var a;
1143
+ for (a = this; a; ) {
1144
+ if (a.type === t.Document)
1145
+ return a.rootObject;
1146
+ if (a.isRoot)
1147
+ return a;
1148
+ a = a.parent;
1149
+ }
1150
+ }, p.prototype.document = function() {
1151
+ var a;
1152
+ for (a = this; a; ) {
1153
+ if (a.type === t.Document)
1154
+ return a;
1155
+ a = a.parent;
1156
+ }
1157
+ }, p.prototype.end = function(a) {
1158
+ return this.document().end(a);
1159
+ }, p.prototype.prev = function() {
1160
+ var a;
1161
+ if (a = this.parent.children.indexOf(this), a < 1)
1162
+ throw new Error("Already at the first node. " + this.debugInfo());
1163
+ return this.parent.children[a - 1];
1164
+ }, p.prototype.next = function() {
1165
+ var a;
1166
+ if (a = this.parent.children.indexOf(this), a === -1 || a === this.parent.children.length - 1)
1167
+ throw new Error("Already at the last node. " + this.debugInfo());
1168
+ return this.parent.children[a + 1];
1169
+ }, p.prototype.importDocument = function(a) {
1170
+ var y;
1171
+ return y = a.root().clone(), y.parent = this, y.isRoot = !1, this.children.push(y), this;
1172
+ }, p.prototype.debugInfo = function(a) {
1173
+ var y, N;
1174
+ return a = a || this.name, a == null && !((y = this.parent) != null && y.name) ? "" : a == null ? "parent: <" + this.parent.name + ">" : (N = this.parent) != null && N.name ? "node: <" + a + ">, parent: <" + this.parent.name + ">" : "node: <" + a + ">";
1175
+ }, p.prototype.ele = function(a, y, N) {
1176
+ return this.element(a, y, N);
1177
+ }, p.prototype.nod = function(a, y, N) {
1178
+ return this.node(a, y, N);
1179
+ }, p.prototype.txt = function(a) {
1180
+ return this.text(a);
1181
+ }, p.prototype.dat = function(a) {
1182
+ return this.cdata(a);
1183
+ }, p.prototype.com = function(a) {
1184
+ return this.comment(a);
1185
+ }, p.prototype.ins = function(a, y) {
1186
+ return this.instruction(a, y);
1187
+ }, p.prototype.doc = function() {
1188
+ return this.document();
1189
+ }, p.prototype.dec = function(a, y, N) {
1190
+ return this.declaration(a, y, N);
1191
+ }, p.prototype.e = function(a, y, N) {
1192
+ return this.element(a, y, N);
1193
+ }, p.prototype.n = function(a, y, N) {
1194
+ return this.node(a, y, N);
1195
+ }, p.prototype.t = function(a) {
1196
+ return this.text(a);
1197
+ }, p.prototype.d = function(a) {
1198
+ return this.cdata(a);
1199
+ }, p.prototype.c = function(a) {
1200
+ return this.comment(a);
1201
+ }, p.prototype.r = function(a) {
1202
+ return this.raw(a);
1203
+ }, p.prototype.i = function(a, y) {
1204
+ return this.instruction(a, y);
1205
+ }, p.prototype.u = function() {
1206
+ return this.up();
1207
+ }, p.prototype.importXMLBuilder = function(a) {
1208
+ return this.importDocument(a);
1209
+ }, p.prototype.replaceChild = function(a, y) {
1210
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
1211
+ }, p.prototype.removeChild = function(a) {
1212
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
1213
+ }, p.prototype.appendChild = function(a) {
1214
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
1215
+ }, p.prototype.hasChildNodes = function() {
1216
+ return this.children.length !== 0;
1217
+ }, p.prototype.cloneNode = function(a) {
1218
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
1219
+ }, p.prototype.normalize = function() {
1220
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
1221
+ }, p.prototype.isSupported = function(a, y) {
1222
+ return !0;
1223
+ }, p.prototype.hasAttributes = function() {
1224
+ return this.attribs.length !== 0;
1225
+ }, p.prototype.compareDocumentPosition = function(a) {
1226
+ var y, N;
1227
+ return y = this, y === a ? 0 : this.document() !== a.document() ? (N = n.Disconnected | n.ImplementationSpecific, Math.random() < 0.5 ? N |= n.Preceding : N |= n.Following, N) : y.isAncestor(a) ? n.Contains | n.Preceding : y.isDescendant(a) ? n.Contains | n.Following : y.isPreceding(a) ? n.Preceding : n.Following;
1228
+ }, p.prototype.isSameNode = function(a) {
1229
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
1230
+ }, p.prototype.lookupPrefix = function(a) {
1231
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
1232
+ }, p.prototype.isDefaultNamespace = function(a) {
1233
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
1234
+ }, p.prototype.lookupNamespaceURI = function(a) {
1235
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
1236
+ }, p.prototype.isEqualNode = function(a) {
1237
+ var y, N, P;
1238
+ if (a.nodeType !== this.nodeType || a.children.length !== this.children.length)
1239
+ return !1;
1240
+ for (y = N = 0, P = this.children.length - 1; 0 <= P ? N <= P : N >= P; y = 0 <= P ? ++N : --N)
1241
+ if (!this.children[y].isEqualNode(a.children[y]))
1242
+ return !1;
1243
+ return !0;
1244
+ }, p.prototype.getFeature = function(a, y) {
1245
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
1246
+ }, p.prototype.setUserData = function(a, y, N) {
1247
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
1248
+ }, p.prototype.getUserData = function(a) {
1249
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
1250
+ }, p.prototype.contains = function(a) {
1251
+ return a ? a === this || this.isDescendant(a) : !1;
1252
+ }, p.prototype.isDescendant = function(a) {
1253
+ var y, N, P, _, A;
1254
+ for (A = this.children, P = 0, _ = A.length; P < _; P++)
1255
+ if (y = A[P], a === y || (N = y.isDescendant(a), N))
1256
+ return !0;
1257
+ return !1;
1258
+ }, p.prototype.isAncestor = function(a) {
1259
+ return a.isDescendant(this);
1260
+ }, p.prototype.isPreceding = function(a) {
1261
+ var y, N;
1262
+ return y = this.treePosition(a), N = this.treePosition(this), y === -1 || N === -1 ? !1 : y < N;
1263
+ }, p.prototype.isFollowing = function(a) {
1264
+ var y, N;
1265
+ return y = this.treePosition(a), N = this.treePosition(this), y === -1 || N === -1 ? !1 : y > N;
1266
+ }, p.prototype.treePosition = function(a) {
1267
+ var y, N;
1268
+ return N = 0, y = !1, this.foreachTreeNode(this.document(), function(P) {
1269
+ if (N++, !y && P === a)
1270
+ return y = !0;
1271
+ }), y ? N : -1;
1272
+ }, p.prototype.foreachTreeNode = function(a, y) {
1273
+ var N, P, _, A, i;
1274
+ for (a || (a = this.document()), A = a.children, P = 0, _ = A.length; P < _; P++) {
1275
+ if (N = A[P], i = y(N))
1276
+ return i;
1277
+ if (i = this.foreachTreeNode(N, y), i)
1278
+ return i;
1279
+ }
1280
+ }, p;
1281
+ }();
1282
+ }).call(X)), It.exports;
1283
+ }
1284
+ var Gt = { exports: {} }, ze;
1285
+ function pr() {
1286
+ return ze || (ze = 1, (function() {
1287
+ var n = function(l, u) {
1288
+ return function() {
1289
+ return l.apply(u, arguments);
1290
+ };
1291
+ }, t = {}.hasOwnProperty;
1292
+ Gt.exports = function() {
1293
+ function l(u) {
1294
+ this.assertLegalName = n(this.assertLegalName, this), this.assertLegalChar = n(this.assertLegalChar, this);
1295
+ var f, r, e;
1296
+ u || (u = {}), this.options = u, this.options.version || (this.options.version = "1.0"), r = u.stringify || {};
1297
+ for (f in r)
1298
+ t.call(r, f) && (e = r[f], this[f] = e);
1299
+ }
1300
+ return l.prototype.name = function(u) {
1301
+ return this.options.noValidation ? u : this.assertLegalName("" + u || "");
1302
+ }, l.prototype.text = function(u) {
1303
+ return this.options.noValidation ? u : this.assertLegalChar(this.textEscape("" + u || ""));
1304
+ }, l.prototype.cdata = function(u) {
1305
+ return this.options.noValidation ? u : (u = "" + u || "", u = u.replace("]]>", "]]]]><![CDATA[>"), this.assertLegalChar(u));
1306
+ }, l.prototype.comment = function(u) {
1307
+ if (this.options.noValidation)
1308
+ return u;
1309
+ if (u = "" + u || "", u.match(/--/))
1310
+ throw new Error("Comment text cannot contain double-hypen: " + u);
1311
+ return this.assertLegalChar(u);
1312
+ }, l.prototype.raw = function(u) {
1313
+ return this.options.noValidation ? u : "" + u || "";
1314
+ }, l.prototype.attValue = function(u) {
1315
+ return this.options.noValidation ? u : this.assertLegalChar(this.attEscape(u = "" + u || ""));
1316
+ }, l.prototype.insTarget = function(u) {
1317
+ return this.options.noValidation ? u : this.assertLegalChar("" + u || "");
1318
+ }, l.prototype.insValue = function(u) {
1319
+ if (this.options.noValidation)
1320
+ return u;
1321
+ if (u = "" + u || "", u.match(/\?>/))
1322
+ throw new Error("Invalid processing instruction value: " + u);
1323
+ return this.assertLegalChar(u);
1324
+ }, l.prototype.xmlVersion = function(u) {
1325
+ if (this.options.noValidation)
1326
+ return u;
1327
+ if (u = "" + u || "", !u.match(/1\.[0-9]+/))
1328
+ throw new Error("Invalid version number: " + u);
1329
+ return u;
1330
+ }, l.prototype.xmlEncoding = function(u) {
1331
+ if (this.options.noValidation)
1332
+ return u;
1333
+ if (u = "" + u || "", !u.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))
1334
+ throw new Error("Invalid encoding: " + u);
1335
+ return this.assertLegalChar(u);
1336
+ }, l.prototype.xmlStandalone = function(u) {
1337
+ return this.options.noValidation ? u : u ? "yes" : "no";
1338
+ }, l.prototype.dtdPubID = function(u) {
1339
+ return this.options.noValidation ? u : this.assertLegalChar("" + u || "");
1340
+ }, l.prototype.dtdSysID = function(u) {
1341
+ return this.options.noValidation ? u : this.assertLegalChar("" + u || "");
1342
+ }, l.prototype.dtdElementValue = function(u) {
1343
+ return this.options.noValidation ? u : this.assertLegalChar("" + u || "");
1344
+ }, l.prototype.dtdAttType = function(u) {
1345
+ return this.options.noValidation ? u : this.assertLegalChar("" + u || "");
1346
+ }, l.prototype.dtdAttDefault = function(u) {
1347
+ return this.options.noValidation ? u : this.assertLegalChar("" + u || "");
1348
+ }, l.prototype.dtdEntityValue = function(u) {
1349
+ return this.options.noValidation ? u : this.assertLegalChar("" + u || "");
1350
+ }, l.prototype.dtdNData = function(u) {
1351
+ return this.options.noValidation ? u : this.assertLegalChar("" + u || "");
1352
+ }, l.prototype.convertAttKey = "@", l.prototype.convertPIKey = "?", l.prototype.convertTextKey = "#text", l.prototype.convertCDataKey = "#cdata", l.prototype.convertCommentKey = "#comment", l.prototype.convertRawKey = "#raw", l.prototype.assertLegalChar = function(u) {
1353
+ var f, r;
1354
+ if (this.options.noValidation)
1355
+ return u;
1356
+ if (f = "", this.options.version === "1.0") {
1357
+ if (f = /[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, r = u.match(f))
1358
+ throw new Error("Invalid character in string: " + u + " at index " + r.index);
1359
+ } else if (this.options.version === "1.1" && (f = /[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, r = u.match(f)))
1360
+ throw new Error("Invalid character in string: " + u + " at index " + r.index);
1361
+ return u;
1362
+ }, l.prototype.assertLegalName = function(u) {
1363
+ var f;
1364
+ if (this.options.noValidation)
1365
+ return u;
1366
+ if (this.assertLegalChar(u), f = /^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/, !u.match(f))
1367
+ throw new Error("Invalid character in name");
1368
+ return u;
1369
+ }, l.prototype.textEscape = function(u) {
1370
+ var f;
1371
+ return this.options.noValidation ? u : (f = this.options.noDoubleEncoding ? /(?!&\S+;)&/g : /&/g, u.replace(f, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/\r/g, "&#xD;"));
1372
+ }, l.prototype.attEscape = function(u) {
1373
+ var f;
1374
+ return this.options.noValidation ? u : (f = this.options.noDoubleEncoding ? /(?!&\S+;)&/g : /&/g, u.replace(f, "&amp;").replace(/</g, "&lt;").replace(/"/g, "&quot;").replace(/\t/g, "&#x9;").replace(/\n/g, "&#xA;").replace(/\r/g, "&#xD;"));
1375
+ }, l;
1376
+ }();
1377
+ }).call(X)), Gt.exports;
1378
+ }
1379
+ var Yt = { exports: {} }, Ht = { exports: {} }, zt = { exports: {} }, Qe;
1380
+ function ht() {
1381
+ return Qe || (Qe = 1, (function() {
1382
+ zt.exports = {
1383
+ None: 0,
1384
+ OpenTag: 1,
1385
+ InsideTag: 2,
1386
+ CloseTag: 3
1387
+ };
1388
+ }).call(X)), zt.exports;
1389
+ }
1390
+ var $e;
1391
+ function dr() {
1392
+ return $e || ($e = 1, (function() {
1393
+ var n, t, l, u = {}.hasOwnProperty;
1394
+ l = nt().assign, n = W(), se(), fe(), ie(), oe(), ne(), he(), pe(), de(), hr(), ae(), ce(), ue(), le(), t = ht(), Ht.exports = function() {
1395
+ function f(r) {
1396
+ var e, s, h;
1397
+ r || (r = {}), this.options = r, s = r.writer || {};
1398
+ for (e in s)
1399
+ u.call(s, e) && (h = s[e], this["_" + e] = this[e], this[e] = h);
1400
+ }
1401
+ return f.prototype.filterOptions = function(r) {
1402
+ var e, s, h, D, w, m, d, E;
1403
+ return r || (r = {}), r = l({}, this.options, r), e = {
1404
+ writer: this
1405
+ }, e.pretty = r.pretty || !1, e.allowEmpty = r.allowEmpty || !1, e.indent = (s = r.indent) != null ? s : " ", e.newline = (h = r.newline) != null ? h : `
1406
+ `, e.offset = (D = r.offset) != null ? D : 0, e.dontPrettyTextNodes = (w = (m = r.dontPrettyTextNodes) != null ? m : r.dontprettytextnodes) != null ? w : 0, e.spaceBeforeSlash = (d = (E = r.spaceBeforeSlash) != null ? E : r.spacebeforeslash) != null ? d : "", e.spaceBeforeSlash === !0 && (e.spaceBeforeSlash = " "), e.suppressPrettyCount = 0, e.user = {}, e.state = t.None, e;
1407
+ }, f.prototype.indent = function(r, e, s) {
1408
+ var h;
1409
+ return !e.pretty || e.suppressPrettyCount ? "" : e.pretty && (h = (s || 0) + e.offset + 1, h > 0) ? new Array(h).join(e.indent) : "";
1410
+ }, f.prototype.endline = function(r, e, s) {
1411
+ return !e.pretty || e.suppressPrettyCount ? "" : e.newline;
1412
+ }, f.prototype.attribute = function(r, e, s) {
1413
+ var h;
1414
+ return this.openAttribute(r, e, s), h = " " + r.name + '="' + r.value + '"', this.closeAttribute(r, e, s), h;
1415
+ }, f.prototype.cdata = function(r, e, s) {
1416
+ var h;
1417
+ return this.openNode(r, e, s), e.state = t.OpenTag, h = this.indent(r, e, s) + "<![CDATA[", e.state = t.InsideTag, h += r.value, e.state = t.CloseTag, h += "]]>" + this.endline(r, e, s), e.state = t.None, this.closeNode(r, e, s), h;
1418
+ }, f.prototype.comment = function(r, e, s) {
1419
+ var h;
1420
+ return this.openNode(r, e, s), e.state = t.OpenTag, h = this.indent(r, e, s) + "<!-- ", e.state = t.InsideTag, h += r.value, e.state = t.CloseTag, h += " -->" + this.endline(r, e, s), e.state = t.None, this.closeNode(r, e, s), h;
1421
+ }, f.prototype.declaration = function(r, e, s) {
1422
+ var h;
1423
+ return this.openNode(r, e, s), e.state = t.OpenTag, h = this.indent(r, e, s) + "<?xml", e.state = t.InsideTag, h += ' version="' + r.version + '"', r.encoding != null && (h += ' encoding="' + r.encoding + '"'), r.standalone != null && (h += ' standalone="' + r.standalone + '"'), e.state = t.CloseTag, h += e.spaceBeforeSlash + "?>", h += this.endline(r, e, s), e.state = t.None, this.closeNode(r, e, s), h;
1424
+ }, f.prototype.docType = function(r, e, s) {
1425
+ var h, D, w, m, d;
1426
+ if (s || (s = 0), this.openNode(r, e, s), e.state = t.OpenTag, m = this.indent(r, e, s), m += "<!DOCTYPE " + r.root().name, r.pubID && r.sysID ? m += ' PUBLIC "' + r.pubID + '" "' + r.sysID + '"' : r.sysID && (m += ' SYSTEM "' + r.sysID + '"'), r.children.length > 0) {
1427
+ for (m += " [", m += this.endline(r, e, s), e.state = t.InsideTag, d = r.children, D = 0, w = d.length; D < w; D++)
1428
+ h = d[D], m += this.writeChildNode(h, e, s + 1);
1429
+ e.state = t.CloseTag, m += "]";
1430
+ }
1431
+ return e.state = t.CloseTag, m += e.spaceBeforeSlash + ">", m += this.endline(r, e, s), e.state = t.None, this.closeNode(r, e, s), m;
1432
+ }, f.prototype.element = function(r, e, s) {
1433
+ var h, D, w, m, d, E, b, O, I, g, p, a, y, N;
1434
+ s || (s = 0), g = !1, p = "", this.openNode(r, e, s), e.state = t.OpenTag, p += this.indent(r, e, s) + "<" + r.name, a = r.attribs;
1435
+ for (I in a)
1436
+ u.call(a, I) && (h = a[I], p += this.attribute(h, e, s));
1437
+ if (w = r.children.length, m = w === 0 ? null : r.children[0], w === 0 || r.children.every(function(P) {
1438
+ return (P.type === n.Text || P.type === n.Raw) && P.value === "";
1439
+ }))
1440
+ e.allowEmpty ? (p += ">", e.state = t.CloseTag, p += "</" + r.name + ">" + this.endline(r, e, s)) : (e.state = t.CloseTag, p += e.spaceBeforeSlash + "/>" + this.endline(r, e, s));
1441
+ else if (e.pretty && w === 1 && (m.type === n.Text || m.type === n.Raw) && m.value != null)
1442
+ p += ">", e.state = t.InsideTag, e.suppressPrettyCount++, g = !0, p += this.writeChildNode(m, e, s + 1), e.suppressPrettyCount--, g = !1, e.state = t.CloseTag, p += "</" + r.name + ">" + this.endline(r, e, s);
1443
+ else {
1444
+ if (e.dontPrettyTextNodes) {
1445
+ for (y = r.children, d = 0, b = y.length; d < b; d++)
1446
+ if (D = y[d], (D.type === n.Text || D.type === n.Raw) && D.value != null) {
1447
+ e.suppressPrettyCount++, g = !0;
1448
+ break;
1449
+ }
1450
+ }
1451
+ for (p += ">" + this.endline(r, e, s), e.state = t.InsideTag, N = r.children, E = 0, O = N.length; E < O; E++)
1452
+ D = N[E], p += this.writeChildNode(D, e, s + 1);
1453
+ e.state = t.CloseTag, p += this.indent(r, e, s) + "</" + r.name + ">", g && e.suppressPrettyCount--, p += this.endline(r, e, s), e.state = t.None;
1454
+ }
1455
+ return this.closeNode(r, e, s), p;
1456
+ }, f.prototype.writeChildNode = function(r, e, s) {
1457
+ switch (r.type) {
1458
+ case n.CData:
1459
+ return this.cdata(r, e, s);
1460
+ case n.Comment:
1461
+ return this.comment(r, e, s);
1462
+ case n.Element:
1463
+ return this.element(r, e, s);
1464
+ case n.Raw:
1465
+ return this.raw(r, e, s);
1466
+ case n.Text:
1467
+ return this.text(r, e, s);
1468
+ case n.ProcessingInstruction:
1469
+ return this.processingInstruction(r, e, s);
1470
+ case n.Dummy:
1471
+ return "";
1472
+ case n.Declaration:
1473
+ return this.declaration(r, e, s);
1474
+ case n.DocType:
1475
+ return this.docType(r, e, s);
1476
+ case n.AttributeDeclaration:
1477
+ return this.dtdAttList(r, e, s);
1478
+ case n.ElementDeclaration:
1479
+ return this.dtdElement(r, e, s);
1480
+ case n.EntityDeclaration:
1481
+ return this.dtdEntity(r, e, s);
1482
+ case n.NotationDeclaration:
1483
+ return this.dtdNotation(r, e, s);
1484
+ default:
1485
+ throw new Error("Unknown XML node type: " + r.constructor.name);
1486
+ }
1487
+ }, f.prototype.processingInstruction = function(r, e, s) {
1488
+ var h;
1489
+ return this.openNode(r, e, s), e.state = t.OpenTag, h = this.indent(r, e, s) + "<?", e.state = t.InsideTag, h += r.target, r.value && (h += " " + r.value), e.state = t.CloseTag, h += e.spaceBeforeSlash + "?>", h += this.endline(r, e, s), e.state = t.None, this.closeNode(r, e, s), h;
1490
+ }, f.prototype.raw = function(r, e, s) {
1491
+ var h;
1492
+ return this.openNode(r, e, s), e.state = t.OpenTag, h = this.indent(r, e, s), e.state = t.InsideTag, h += r.value, e.state = t.CloseTag, h += this.endline(r, e, s), e.state = t.None, this.closeNode(r, e, s), h;
1493
+ }, f.prototype.text = function(r, e, s) {
1494
+ var h;
1495
+ return this.openNode(r, e, s), e.state = t.OpenTag, h = this.indent(r, e, s), e.state = t.InsideTag, h += r.value, e.state = t.CloseTag, h += this.endline(r, e, s), e.state = t.None, this.closeNode(r, e, s), h;
1496
+ }, f.prototype.dtdAttList = function(r, e, s) {
1497
+ var h;
1498
+ return this.openNode(r, e, s), e.state = t.OpenTag, h = this.indent(r, e, s) + "<!ATTLIST", e.state = t.InsideTag, h += " " + r.elementName + " " + r.attributeName + " " + r.attributeType, r.defaultValueType !== "#DEFAULT" && (h += " " + r.defaultValueType), r.defaultValue && (h += ' "' + r.defaultValue + '"'), e.state = t.CloseTag, h += e.spaceBeforeSlash + ">" + this.endline(r, e, s), e.state = t.None, this.closeNode(r, e, s), h;
1499
+ }, f.prototype.dtdElement = function(r, e, s) {
1500
+ var h;
1501
+ return this.openNode(r, e, s), e.state = t.OpenTag, h = this.indent(r, e, s) + "<!ELEMENT", e.state = t.InsideTag, h += " " + r.name + " " + r.value, e.state = t.CloseTag, h += e.spaceBeforeSlash + ">" + this.endline(r, e, s), e.state = t.None, this.closeNode(r, e, s), h;
1502
+ }, f.prototype.dtdEntity = function(r, e, s) {
1503
+ var h;
1504
+ return this.openNode(r, e, s), e.state = t.OpenTag, h = this.indent(r, e, s) + "<!ENTITY", e.state = t.InsideTag, r.pe && (h += " %"), h += " " + r.name, r.value ? h += ' "' + r.value + '"' : (r.pubID && r.sysID ? h += ' PUBLIC "' + r.pubID + '" "' + r.sysID + '"' : r.sysID && (h += ' SYSTEM "' + r.sysID + '"'), r.nData && (h += " NDATA " + r.nData)), e.state = t.CloseTag, h += e.spaceBeforeSlash + ">" + this.endline(r, e, s), e.state = t.None, this.closeNode(r, e, s), h;
1505
+ }, f.prototype.dtdNotation = function(r, e, s) {
1506
+ var h;
1507
+ return this.openNode(r, e, s), e.state = t.OpenTag, h = this.indent(r, e, s) + "<!NOTATION", e.state = t.InsideTag, h += " " + r.name, r.pubID && r.sysID ? h += ' PUBLIC "' + r.pubID + '" "' + r.sysID + '"' : r.pubID ? h += ' PUBLIC "' + r.pubID + '"' : r.sysID && (h += ' SYSTEM "' + r.sysID + '"'), e.state = t.CloseTag, h += e.spaceBeforeSlash + ">" + this.endline(r, e, s), e.state = t.None, this.closeNode(r, e, s), h;
1508
+ }, f.prototype.openNode = function(r, e, s) {
1509
+ }, f.prototype.closeNode = function(r, e, s) {
1510
+ }, f.prototype.openAttribute = function(r, e, s) {
1511
+ }, f.prototype.closeAttribute = function(r, e, s) {
1512
+ }, f;
1513
+ }();
1514
+ }).call(X)), Ht.exports;
1515
+ }
1516
+ var Ze;
1517
+ function ye() {
1518
+ return Ze || (Ze = 1, (function() {
1519
+ var n, t = function(u, f) {
1520
+ for (var r in f)
1521
+ l.call(f, r) && (u[r] = f[r]);
1522
+ function e() {
1523
+ this.constructor = u;
1524
+ }
1525
+ return e.prototype = f.prototype, u.prototype = new e(), u.__super__ = f.prototype, u;
1526
+ }, l = {}.hasOwnProperty;
1527
+ n = dr(), Yt.exports = function(u) {
1528
+ t(f, u);
1529
+ function f(r) {
1530
+ f.__super__.constructor.call(this, r);
1531
+ }
1532
+ return f.prototype.document = function(r, e) {
1533
+ var s, h, D, w, m;
1534
+ for (e = this.filterOptions(e), w = "", m = r.children, h = 0, D = m.length; h < D; h++)
1535
+ s = m[h], w += this.writeChildNode(s, e, 0);
1536
+ return e.pretty && w.slice(-e.newline.length) === e.newline && (w = w.slice(0, -e.newline.length)), w;
1537
+ }, f;
1538
+ }(n);
1539
+ }).call(X)), Yt.exports;
1540
+ }
1541
+ var Je;
1542
+ function yr() {
1543
+ return Je || (Je = 1, (function() {
1544
+ var n, t, l, u, f, r, e, s = function(D, w) {
1545
+ for (var m in w)
1546
+ h.call(w, m) && (D[m] = w[m]);
1547
+ function d() {
1548
+ this.constructor = D;
1549
+ }
1550
+ return d.prototype = w.prototype, D.prototype = new d(), D.__super__ = w.prototype, D;
1551
+ }, h = {}.hasOwnProperty;
1552
+ e = nt().isPlainObject, l = lr(), t = jr(), u = Z(), n = W(), r = pr(), f = ye(), Nt.exports = function(D) {
1553
+ s(w, D);
1554
+ function w(m) {
1555
+ w.__super__.constructor.call(this, null), this.name = "#document", this.type = n.Document, this.documentURI = null, this.domConfig = new t(), m || (m = {}), m.writer || (m.writer = new f()), this.options = m, this.stringify = new r(m);
1556
+ }
1557
+ return Object.defineProperty(w.prototype, "implementation", {
1558
+ value: new l()
1559
+ }), Object.defineProperty(w.prototype, "doctype", {
1560
+ get: function() {
1561
+ var m, d, E, b;
1562
+ for (b = this.children, d = 0, E = b.length; d < E; d++)
1563
+ if (m = b[d], m.type === n.DocType)
1564
+ return m;
1565
+ return null;
1566
+ }
1567
+ }), Object.defineProperty(w.prototype, "documentElement", {
1568
+ get: function() {
1569
+ return this.rootObject || null;
1570
+ }
1571
+ }), Object.defineProperty(w.prototype, "inputEncoding", {
1572
+ get: function() {
1573
+ return null;
1574
+ }
1575
+ }), Object.defineProperty(w.prototype, "strictErrorChecking", {
1576
+ get: function() {
1577
+ return !1;
1578
+ }
1579
+ }), Object.defineProperty(w.prototype, "xmlEncoding", {
1580
+ get: function() {
1581
+ return this.children.length !== 0 && this.children[0].type === n.Declaration ? this.children[0].encoding : null;
1582
+ }
1583
+ }), Object.defineProperty(w.prototype, "xmlStandalone", {
1584
+ get: function() {
1585
+ return this.children.length !== 0 && this.children[0].type === n.Declaration ? this.children[0].standalone === "yes" : !1;
1586
+ }
1587
+ }), Object.defineProperty(w.prototype, "xmlVersion", {
1588
+ get: function() {
1589
+ return this.children.length !== 0 && this.children[0].type === n.Declaration ? this.children[0].version : "1.0";
1590
+ }
1591
+ }), Object.defineProperty(w.prototype, "URL", {
1592
+ get: function() {
1593
+ return this.documentURI;
1594
+ }
1595
+ }), Object.defineProperty(w.prototype, "origin", {
1596
+ get: function() {
1597
+ return null;
1598
+ }
1599
+ }), Object.defineProperty(w.prototype, "compatMode", {
1600
+ get: function() {
1601
+ return null;
1602
+ }
1603
+ }), Object.defineProperty(w.prototype, "characterSet", {
1604
+ get: function() {
1605
+ return null;
1606
+ }
1607
+ }), Object.defineProperty(w.prototype, "contentType", {
1608
+ get: function() {
1609
+ return null;
1610
+ }
1611
+ }), w.prototype.end = function(m) {
1612
+ var d;
1613
+ return d = {}, m ? e(m) && (d = m, m = this.options.writer) : m = this.options.writer, m.document(this, m.filterOptions(d));
1614
+ }, w.prototype.toString = function(m) {
1615
+ return this.options.writer.document(this, this.options.writer.filterOptions(m));
1616
+ }, w.prototype.createElement = function(m) {
1617
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
1618
+ }, w.prototype.createDocumentFragment = function() {
1619
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
1620
+ }, w.prototype.createTextNode = function(m) {
1621
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
1622
+ }, w.prototype.createComment = function(m) {
1623
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
1624
+ }, w.prototype.createCDATASection = function(m) {
1625
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
1626
+ }, w.prototype.createProcessingInstruction = function(m, d) {
1627
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
1628
+ }, w.prototype.createAttribute = function(m) {
1629
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
1630
+ }, w.prototype.createEntityReference = function(m) {
1631
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
1632
+ }, w.prototype.getElementsByTagName = function(m) {
1633
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
1634
+ }, w.prototype.importNode = function(m, d) {
1635
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
1636
+ }, w.prototype.createElementNS = function(m, d) {
1637
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
1638
+ }, w.prototype.createAttributeNS = function(m, d) {
1639
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
1640
+ }, w.prototype.getElementsByTagNameNS = function(m, d) {
1641
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
1642
+ }, w.prototype.getElementById = function(m) {
1643
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
1644
+ }, w.prototype.adoptNode = function(m) {
1645
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
1646
+ }, w.prototype.normalizeDocument = function() {
1647
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
1648
+ }, w.prototype.renameNode = function(m, d, E) {
1649
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
1650
+ }, w.prototype.getElementsByClassName = function(m) {
1651
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
1652
+ }, w.prototype.createEvent = function(m) {
1653
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
1654
+ }, w.prototype.createRange = function() {
1655
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
1656
+ }, w.prototype.createNodeIterator = function(m, d, E) {
1657
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
1658
+ }, w.prototype.createTreeWalker = function(m, d, E) {
1659
+ throw new Error("This DOM method is not implemented." + this.debugInfo());
1660
+ }, w;
1661
+ }(u);
1662
+ }).call(X)), Nt.exports;
1663
+ }
1664
+ var Qt = { exports: {} }, tr;
1665
+ function qr() {
1666
+ return tr || (tr = 1, (function() {
1667
+ var n, t, l, u, f, r, e, s, h, D, w, m, d, E, b, O, I, g, p, a, y, N, P, _ = {}.hasOwnProperty;
1668
+ P = nt(), y = P.isObject, a = P.isFunction, N = P.isPlainObject, p = P.getValue, n = W(), m = yr(), d = ne(), u = ie(), f = oe(), b = he(), g = pe(), E = de(), D = se(), w = fe(), r = ae(), s = ue(), e = ce(), h = le(), l = fr(), I = pr(), O = ye(), t = ht(), Qt.exports = function() {
1669
+ function A(i, v, L) {
1670
+ var M;
1671
+ this.name = "?xml", this.type = n.Document, i || (i = {}), M = {}, i.writer ? N(i.writer) && (M = i.writer, i.writer = new O()) : i.writer = new O(), this.options = i, this.writer = i.writer, this.writerOptions = this.writer.filterOptions(M), this.stringify = new I(i), this.onDataCallback = v || function() {
1672
+ }, this.onEndCallback = L || function() {
1673
+ }, this.currentNode = null, this.currentLevel = -1, this.openTags = {}, this.documentStarted = !1, this.documentCompleted = !1, this.root = null;
1674
+ }
1675
+ return A.prototype.createChildNode = function(i) {
1676
+ var v, L, M, B, q, V, K, j;
1677
+ switch (i.type) {
1678
+ case n.CData:
1679
+ this.cdata(i.value);
1680
+ break;
1681
+ case n.Comment:
1682
+ this.comment(i.value);
1683
+ break;
1684
+ case n.Element:
1685
+ M = {}, K = i.attribs;
1686
+ for (L in K)
1687
+ _.call(K, L) && (v = K[L], M[L] = v.value);
1688
+ this.node(i.name, M);
1689
+ break;
1690
+ case n.Dummy:
1691
+ this.dummy();
1692
+ break;
1693
+ case n.Raw:
1694
+ this.raw(i.value);
1695
+ break;
1696
+ case n.Text:
1697
+ this.text(i.value);
1698
+ break;
1699
+ case n.ProcessingInstruction:
1700
+ this.instruction(i.target, i.value);
1701
+ break;
1702
+ default:
1703
+ throw new Error("This XML node type is not supported in a JS object: " + i.constructor.name);
1704
+ }
1705
+ for (j = i.children, q = 0, V = j.length; q < V; q++)
1706
+ B = j[q], this.createChildNode(B), B.type === n.Element && this.up();
1707
+ return this;
1708
+ }, A.prototype.dummy = function() {
1709
+ return this;
1710
+ }, A.prototype.node = function(i, v, L) {
1711
+ var M;
1712
+ if (i == null)
1713
+ throw new Error("Missing node name.");
1714
+ if (this.root && this.currentLevel === -1)
1715
+ throw new Error("Document can only have one root node. " + this.debugInfo(i));
1716
+ return this.openCurrent(), i = p(i), v == null && (v = {}), v = p(v), y(v) || (M = [v, L], L = M[0], v = M[1]), this.currentNode = new d(this, i, v), this.currentNode.children = !1, this.currentLevel++, this.openTags[this.currentLevel] = this.currentNode, L != null && this.text(L), this;
1717
+ }, A.prototype.element = function(i, v, L) {
1718
+ var M, B, q, V, K, j;
1719
+ if (this.currentNode && this.currentNode.type === n.DocType)
1720
+ this.dtdElement.apply(this, arguments);
1721
+ else if (Array.isArray(i) || y(i) || a(i))
1722
+ for (V = this.options.noValidation, this.options.noValidation = !0, j = new m(this.options).element("TEMP_ROOT"), j.element(i), this.options.noValidation = V, K = j.children, B = 0, q = K.length; B < q; B++)
1723
+ M = K[B], this.createChildNode(M), M.type === n.Element && this.up();
1724
+ else
1725
+ this.node(i, v, L);
1726
+ return this;
1727
+ }, A.prototype.attribute = function(i, v) {
1728
+ var L, M;
1729
+ if (!this.currentNode || this.currentNode.children)
1730
+ throw new Error("att() can only be used immediately after an ele() call in callback mode. " + this.debugInfo(i));
1731
+ if (i != null && (i = p(i)), y(i))
1732
+ for (L in i)
1733
+ _.call(i, L) && (M = i[L], this.attribute(L, M));
1734
+ else
1735
+ a(v) && (v = v.apply()), this.options.keepNullAttributes && v == null ? this.currentNode.attribs[i] = new l(this, i, "") : v != null && (this.currentNode.attribs[i] = new l(this, i, v));
1736
+ return this;
1737
+ }, A.prototype.text = function(i) {
1738
+ var v;
1739
+ return this.openCurrent(), v = new g(this, i), this.onData(this.writer.text(v, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1), this;
1740
+ }, A.prototype.cdata = function(i) {
1741
+ var v;
1742
+ return this.openCurrent(), v = new u(this, i), this.onData(this.writer.cdata(v, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1), this;
1743
+ }, A.prototype.comment = function(i) {
1744
+ var v;
1745
+ return this.openCurrent(), v = new f(this, i), this.onData(this.writer.comment(v, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1), this;
1746
+ }, A.prototype.raw = function(i) {
1747
+ var v;
1748
+ return this.openCurrent(), v = new b(this, i), this.onData(this.writer.raw(v, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1), this;
1749
+ }, A.prototype.instruction = function(i, v) {
1750
+ var L, M, B, q, V;
1751
+ if (this.openCurrent(), i != null && (i = p(i)), v != null && (v = p(v)), Array.isArray(i))
1752
+ for (L = 0, q = i.length; L < q; L++)
1753
+ M = i[L], this.instruction(M);
1754
+ else if (y(i))
1755
+ for (M in i)
1756
+ _.call(i, M) && (B = i[M], this.instruction(M, B));
1757
+ else
1758
+ a(v) && (v = v.apply()), V = new E(this, i, v), this.onData(this.writer.processingInstruction(V, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1);
1759
+ return this;
1760
+ }, A.prototype.declaration = function(i, v, L) {
1761
+ var M;
1762
+ if (this.openCurrent(), this.documentStarted)
1763
+ throw new Error("declaration() must be the first node.");
1764
+ return M = new D(this, i, v, L), this.onData(this.writer.declaration(M, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1), this;
1765
+ }, A.prototype.doctype = function(i, v, L) {
1766
+ if (this.openCurrent(), i == null)
1767
+ throw new Error("Missing root node name.");
1768
+ if (this.root)
1769
+ throw new Error("dtd() must come before the root node.");
1770
+ return this.currentNode = new w(this, v, L), this.currentNode.rootNodeName = i, this.currentNode.children = !1, this.currentLevel++, this.openTags[this.currentLevel] = this.currentNode, this;
1771
+ }, A.prototype.dtdElement = function(i, v) {
1772
+ var L;
1773
+ return this.openCurrent(), L = new e(this, i, v), this.onData(this.writer.dtdElement(L, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1), this;
1774
+ }, A.prototype.attList = function(i, v, L, M, B) {
1775
+ var q;
1776
+ return this.openCurrent(), q = new r(this, i, v, L, M, B), this.onData(this.writer.dtdAttList(q, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1), this;
1777
+ }, A.prototype.entity = function(i, v) {
1778
+ var L;
1779
+ return this.openCurrent(), L = new s(this, !1, i, v), this.onData(this.writer.dtdEntity(L, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1), this;
1780
+ }, A.prototype.pEntity = function(i, v) {
1781
+ var L;
1782
+ return this.openCurrent(), L = new s(this, !0, i, v), this.onData(this.writer.dtdEntity(L, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1), this;
1783
+ }, A.prototype.notation = function(i, v) {
1784
+ var L;
1785
+ return this.openCurrent(), L = new h(this, i, v), this.onData(this.writer.dtdNotation(L, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1), this;
1786
+ }, A.prototype.up = function() {
1787
+ if (this.currentLevel < 0)
1788
+ throw new Error("The document node has no parent.");
1789
+ return this.currentNode ? (this.currentNode.children ? this.closeNode(this.currentNode) : this.openNode(this.currentNode), this.currentNode = null) : this.closeNode(this.openTags[this.currentLevel]), delete this.openTags[this.currentLevel], this.currentLevel--, this;
1790
+ }, A.prototype.end = function() {
1791
+ for (; this.currentLevel >= 0; )
1792
+ this.up();
1793
+ return this.onEnd();
1794
+ }, A.prototype.openCurrent = function() {
1795
+ if (this.currentNode)
1796
+ return this.currentNode.children = !0, this.openNode(this.currentNode);
1797
+ }, A.prototype.openNode = function(i) {
1798
+ var v, L, M, B;
1799
+ if (!i.isOpen) {
1800
+ if (!this.root && this.currentLevel === 0 && i.type === n.Element && (this.root = i), L = "", i.type === n.Element) {
1801
+ this.writerOptions.state = t.OpenTag, L = this.writer.indent(i, this.writerOptions, this.currentLevel) + "<" + i.name, B = i.attribs;
1802
+ for (M in B)
1803
+ _.call(B, M) && (v = B[M], L += this.writer.attribute(v, this.writerOptions, this.currentLevel));
1804
+ L += (i.children ? ">" : "/>") + this.writer.endline(i, this.writerOptions, this.currentLevel), this.writerOptions.state = t.InsideTag;
1805
+ } else
1806
+ this.writerOptions.state = t.OpenTag, L = this.writer.indent(i, this.writerOptions, this.currentLevel) + "<!DOCTYPE " + i.rootNodeName, i.pubID && i.sysID ? L += ' PUBLIC "' + i.pubID + '" "' + i.sysID + '"' : i.sysID && (L += ' SYSTEM "' + i.sysID + '"'), i.children ? (L += " [", this.writerOptions.state = t.InsideTag) : (this.writerOptions.state = t.CloseTag, L += ">"), L += this.writer.endline(i, this.writerOptions, this.currentLevel);
1807
+ return this.onData(L, this.currentLevel), i.isOpen = !0;
1808
+ }
1809
+ }, A.prototype.closeNode = function(i) {
1810
+ var v;
1811
+ if (!i.isClosed)
1812
+ return v = "", this.writerOptions.state = t.CloseTag, i.type === n.Element ? v = this.writer.indent(i, this.writerOptions, this.currentLevel) + "</" + i.name + ">" + this.writer.endline(i, this.writerOptions, this.currentLevel) : v = this.writer.indent(i, this.writerOptions, this.currentLevel) + "]>" + this.writer.endline(i, this.writerOptions, this.currentLevel), this.writerOptions.state = t.None, this.onData(v, this.currentLevel), i.isClosed = !0;
1813
+ }, A.prototype.onData = function(i, v) {
1814
+ return this.documentStarted = !0, this.onDataCallback(i, v + 1);
1815
+ }, A.prototype.onEnd = function() {
1816
+ return this.documentCompleted = !0, this.onEndCallback();
1817
+ }, A.prototype.debugInfo = function(i) {
1818
+ return i == null ? "" : "node: <" + i + ">";
1819
+ }, A.prototype.ele = function() {
1820
+ return this.element.apply(this, arguments);
1821
+ }, A.prototype.nod = function(i, v, L) {
1822
+ return this.node(i, v, L);
1823
+ }, A.prototype.txt = function(i) {
1824
+ return this.text(i);
1825
+ }, A.prototype.dat = function(i) {
1826
+ return this.cdata(i);
1827
+ }, A.prototype.com = function(i) {
1828
+ return this.comment(i);
1829
+ }, A.prototype.ins = function(i, v) {
1830
+ return this.instruction(i, v);
1831
+ }, A.prototype.dec = function(i, v, L) {
1832
+ return this.declaration(i, v, L);
1833
+ }, A.prototype.dtd = function(i, v, L) {
1834
+ return this.doctype(i, v, L);
1835
+ }, A.prototype.e = function(i, v, L) {
1836
+ return this.element(i, v, L);
1837
+ }, A.prototype.n = function(i, v, L) {
1838
+ return this.node(i, v, L);
1839
+ }, A.prototype.t = function(i) {
1840
+ return this.text(i);
1841
+ }, A.prototype.d = function(i) {
1842
+ return this.cdata(i);
1843
+ }, A.prototype.c = function(i) {
1844
+ return this.comment(i);
1845
+ }, A.prototype.r = function(i) {
1846
+ return this.raw(i);
1847
+ }, A.prototype.i = function(i, v) {
1848
+ return this.instruction(i, v);
1849
+ }, A.prototype.att = function() {
1850
+ return this.currentNode && this.currentNode.type === n.DocType ? this.attList.apply(this, arguments) : this.attribute.apply(this, arguments);
1851
+ }, A.prototype.a = function() {
1852
+ return this.currentNode && this.currentNode.type === n.DocType ? this.attList.apply(this, arguments) : this.attribute.apply(this, arguments);
1853
+ }, A.prototype.ent = function(i, v) {
1854
+ return this.entity(i, v);
1855
+ }, A.prototype.pent = function(i, v) {
1856
+ return this.pEntity(i, v);
1857
+ }, A.prototype.not = function(i, v) {
1858
+ return this.notation(i, v);
1859
+ }, A;
1860
+ }();
1861
+ }).call(X)), Qt.exports;
1862
+ }
1863
+ var $t = { exports: {} }, er;
1864
+ function Ur() {
1865
+ return er || (er = 1, (function() {
1866
+ var n, t, l, u = function(r, e) {
1867
+ for (var s in e)
1868
+ f.call(e, s) && (r[s] = e[s]);
1869
+ function h() {
1870
+ this.constructor = r;
1871
+ }
1872
+ return h.prototype = e.prototype, r.prototype = new h(), r.__super__ = e.prototype, r;
1873
+ }, f = {}.hasOwnProperty;
1874
+ n = W(), l = dr(), t = ht(), $t.exports = function(r) {
1875
+ u(e, r);
1876
+ function e(s, h) {
1877
+ this.stream = s, e.__super__.constructor.call(this, h);
1878
+ }
1879
+ return e.prototype.endline = function(s, h, D) {
1880
+ return s.isLastRootNode && h.state === t.CloseTag ? "" : e.__super__.endline.call(this, s, h, D);
1881
+ }, e.prototype.document = function(s, h) {
1882
+ var D, w, m, d, E, b, O, I, g;
1883
+ for (O = s.children, w = m = 0, E = O.length; m < E; w = ++m)
1884
+ D = O[w], D.isLastRootNode = w === s.children.length - 1;
1885
+ for (h = this.filterOptions(h), I = s.children, g = [], d = 0, b = I.length; d < b; d++)
1886
+ D = I[d], g.push(this.writeChildNode(D, h, 0));
1887
+ return g;
1888
+ }, e.prototype.attribute = function(s, h, D) {
1889
+ return this.stream.write(e.__super__.attribute.call(this, s, h, D));
1890
+ }, e.prototype.cdata = function(s, h, D) {
1891
+ return this.stream.write(e.__super__.cdata.call(this, s, h, D));
1892
+ }, e.prototype.comment = function(s, h, D) {
1893
+ return this.stream.write(e.__super__.comment.call(this, s, h, D));
1894
+ }, e.prototype.declaration = function(s, h, D) {
1895
+ return this.stream.write(e.__super__.declaration.call(this, s, h, D));
1896
+ }, e.prototype.docType = function(s, h, D) {
1897
+ var w, m, d, E;
1898
+ if (D || (D = 0), this.openNode(s, h, D), h.state = t.OpenTag, this.stream.write(this.indent(s, h, D)), this.stream.write("<!DOCTYPE " + s.root().name), s.pubID && s.sysID ? this.stream.write(' PUBLIC "' + s.pubID + '" "' + s.sysID + '"') : s.sysID && this.stream.write(' SYSTEM "' + s.sysID + '"'), s.children.length > 0) {
1899
+ for (this.stream.write(" ["), this.stream.write(this.endline(s, h, D)), h.state = t.InsideTag, E = s.children, m = 0, d = E.length; m < d; m++)
1900
+ w = E[m], this.writeChildNode(w, h, D + 1);
1901
+ h.state = t.CloseTag, this.stream.write("]");
1902
+ }
1903
+ return h.state = t.CloseTag, this.stream.write(h.spaceBeforeSlash + ">"), this.stream.write(this.endline(s, h, D)), h.state = t.None, this.closeNode(s, h, D);
1904
+ }, e.prototype.element = function(s, h, D) {
1905
+ var w, m, d, E, b, O, I, g, p;
1906
+ D || (D = 0), this.openNode(s, h, D), h.state = t.OpenTag, this.stream.write(this.indent(s, h, D) + "<" + s.name), g = s.attribs;
1907
+ for (I in g)
1908
+ f.call(g, I) && (w = g[I], this.attribute(w, h, D));
1909
+ if (d = s.children.length, E = d === 0 ? null : s.children[0], d === 0 || s.children.every(function(a) {
1910
+ return (a.type === n.Text || a.type === n.Raw) && a.value === "";
1911
+ }))
1912
+ h.allowEmpty ? (this.stream.write(">"), h.state = t.CloseTag, this.stream.write("</" + s.name + ">")) : (h.state = t.CloseTag, this.stream.write(h.spaceBeforeSlash + "/>"));
1913
+ else if (h.pretty && d === 1 && (E.type === n.Text || E.type === n.Raw) && E.value != null)
1914
+ this.stream.write(">"), h.state = t.InsideTag, h.suppressPrettyCount++, this.writeChildNode(E, h, D + 1), h.suppressPrettyCount--, h.state = t.CloseTag, this.stream.write("</" + s.name + ">");
1915
+ else {
1916
+ for (this.stream.write(">" + this.endline(s, h, D)), h.state = t.InsideTag, p = s.children, b = 0, O = p.length; b < O; b++)
1917
+ m = p[b], this.writeChildNode(m, h, D + 1);
1918
+ h.state = t.CloseTag, this.stream.write(this.indent(s, h, D) + "</" + s.name + ">");
1919
+ }
1920
+ return this.stream.write(this.endline(s, h, D)), h.state = t.None, this.closeNode(s, h, D);
1921
+ }, e.prototype.processingInstruction = function(s, h, D) {
1922
+ return this.stream.write(e.__super__.processingInstruction.call(this, s, h, D));
1923
+ }, e.prototype.raw = function(s, h, D) {
1924
+ return this.stream.write(e.__super__.raw.call(this, s, h, D));
1925
+ }, e.prototype.text = function(s, h, D) {
1926
+ return this.stream.write(e.__super__.text.call(this, s, h, D));
1927
+ }, e.prototype.dtdAttList = function(s, h, D) {
1928
+ return this.stream.write(e.__super__.dtdAttList.call(this, s, h, D));
1929
+ }, e.prototype.dtdElement = function(s, h, D) {
1930
+ return this.stream.write(e.__super__.dtdElement.call(this, s, h, D));
1931
+ }, e.prototype.dtdEntity = function(s, h, D) {
1932
+ return this.stream.write(e.__super__.dtdEntity.call(this, s, h, D));
1933
+ }, e.prototype.dtdNotation = function(s, h, D) {
1934
+ return this.stream.write(e.__super__.dtdNotation.call(this, s, h, D));
1935
+ }, e;
1936
+ }(l);
1937
+ }).call(X)), $t.exports;
1938
+ }
1939
+ var rr;
1940
+ function Vr() {
1941
+ return rr || (rr = 1, (function() {
1942
+ var n, t, l, u, f, r, e, s, h, D;
1943
+ D = nt(), s = D.assign, h = D.isFunction, l = lr(), u = yr(), f = qr(), e = ye(), r = Ur(), n = W(), t = ht(), et.create = function(w, m, d, E) {
1944
+ var b, O;
1945
+ if (w == null)
1946
+ throw new Error("Root element needs a name.");
1947
+ return E = s({}, m, d, E), b = new u(E), O = b.element(w), E.headless || (b.declaration(E), (E.pubID != null || E.sysID != null) && b.dtd(E)), O;
1948
+ }, et.begin = function(w, m, d) {
1949
+ var E;
1950
+ return h(w) && (E = [w, m], m = E[0], d = E[1], w = {}), m ? new f(w, m, d) : new u(w);
1951
+ }, et.stringWriter = function(w) {
1952
+ return new e(w);
1953
+ }, et.streamWriter = function(w, m) {
1954
+ return new r(w, m);
1955
+ }, et.implementation = new l(), et.nodeType = n, et.writerState = t;
1956
+ }).call(X)), et;
1957
+ }
1958
+ var nr;
1959
+ function kr() {
1960
+ return nr || (nr = 1, (function() {
1961
+ var n, t, l, u, f, r = {}.hasOwnProperty;
1962
+ n = Vr(), t = ee().defaults, u = function(e) {
1963
+ return typeof e == "string" && (e.indexOf("&") >= 0 || e.indexOf(">") >= 0 || e.indexOf("<") >= 0);
1964
+ }, f = function(e) {
1965
+ return "<![CDATA[" + l(e) + "]]>";
1966
+ }, l = function(e) {
1967
+ return e.replace("]]>", "]]]]><![CDATA[>");
1968
+ }, Et.Builder = function() {
1969
+ function e(s) {
1970
+ var h, D, w;
1971
+ this.options = {}, D = t["0.2"];
1972
+ for (h in D)
1973
+ r.call(D, h) && (w = D[h], this.options[h] = w);
1974
+ for (h in s)
1975
+ r.call(s, h) && (w = s[h], this.options[h] = w);
1976
+ }
1977
+ return e.prototype.buildObject = function(s) {
1978
+ var h, D, w, m, d;
1979
+ return h = this.options.attrkey, D = this.options.charkey, Object.keys(s).length === 1 && this.options.rootName === t["0.2"].rootName ? (d = Object.keys(s)[0], s = s[d]) : d = this.options.rootName, w = /* @__PURE__ */ function(E) {
1980
+ return function(b, O) {
1981
+ var I, g, p, a, y, N;
1982
+ if (typeof O != "object")
1983
+ E.options.cdata && u(O) ? b.raw(f(O)) : b.txt(O);
1984
+ else if (Array.isArray(O)) {
1985
+ for (a in O)
1986
+ if (r.call(O, a)) {
1987
+ g = O[a];
1988
+ for (y in g)
1989
+ p = g[y], b = w(b.ele(y), p).up();
1990
+ }
1991
+ } else
1992
+ for (y in O)
1993
+ if (r.call(O, y))
1994
+ if (g = O[y], y === h) {
1995
+ if (typeof g == "object")
1996
+ for (I in g)
1997
+ N = g[I], b = b.att(I, N);
1998
+ } else if (y === D)
1999
+ E.options.cdata && u(g) ? b = b.raw(f(g)) : b = b.txt(g);
2000
+ else if (Array.isArray(g))
2001
+ for (a in g)
2002
+ r.call(g, a) && (p = g[a], typeof p == "string" ? E.options.cdata && u(p) ? b = b.ele(y).raw(f(p)).up() : b = b.ele(y, p).up() : b = w(b.ele(y), p).up());
2003
+ else typeof g == "object" ? b = w(b.ele(y), g).up() : typeof g == "string" && E.options.cdata && u(g) ? b = b.ele(y).raw(f(g)).up() : (g == null && (g = ""), b = b.ele(y, g.toString()).up());
2004
+ return b;
2005
+ };
2006
+ }(this), m = n.create(d, this.options.xmldec, this.options.doctype, {
2007
+ headless: this.options.headless,
2008
+ allowSurrogateChars: this.options.allowSurrogateChars
2009
+ }), w(m, s).end(this.options.renderOpts);
2010
+ }, e;
2011
+ }();
2012
+ }).call(X)), Et;
2013
+ }
2014
+ var Zt = {}, me = {}, Jt = {}, ct = { exports: {} };
2015
+ /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
2016
+ var ir;
2017
+ function Wr() {
2018
+ return ir || (ir = 1, function(n, t) {
2019
+ var l = lt, u = l.Buffer;
2020
+ function f(e, s) {
2021
+ for (var h in e)
2022
+ s[h] = e[h];
2023
+ }
2024
+ u.from && u.alloc && u.allocUnsafe && u.allocUnsafeSlow ? n.exports = l : (f(l, t), t.Buffer = r);
2025
+ function r(e, s, h) {
2026
+ return u(e, s, h);
2027
+ }
2028
+ r.prototype = Object.create(u.prototype), f(u, r), r.from = function(e, s, h) {
2029
+ if (typeof e == "number")
2030
+ throw new TypeError("Argument must not be a number");
2031
+ return u(e, s, h);
2032
+ }, r.alloc = function(e, s, h) {
2033
+ if (typeof e != "number")
2034
+ throw new TypeError("Argument must be a number");
2035
+ var D = u(e);
2036
+ return s !== void 0 ? typeof h == "string" ? D.fill(s, h) : D.fill(s) : D.fill(0), D;
2037
+ }, r.allocUnsafe = function(e) {
2038
+ if (typeof e != "number")
2039
+ throw new TypeError("Argument must be a number");
2040
+ return u(e);
2041
+ }, r.allocUnsafeSlow = function(e) {
2042
+ if (typeof e != "number")
2043
+ throw new TypeError("Argument must be a number");
2044
+ return l.SlowBuffer(e);
2045
+ };
2046
+ }(ct, ct.exports)), ct.exports;
2047
+ }
2048
+ var or;
2049
+ function Gr() {
2050
+ if (or) return Jt;
2051
+ or = 1;
2052
+ var n = Wr().Buffer, t = n.isEncoding || function(g) {
2053
+ switch (g = "" + g, g && g.toLowerCase()) {
2054
+ case "hex":
2055
+ case "utf8":
2056
+ case "utf-8":
2057
+ case "ascii":
2058
+ case "binary":
2059
+ case "base64":
2060
+ case "ucs2":
2061
+ case "ucs-2":
2062
+ case "utf16le":
2063
+ case "utf-16le":
2064
+ case "raw":
2065
+ return !0;
2066
+ default:
2067
+ return !1;
2068
+ }
2069
+ };
2070
+ function l(g) {
2071
+ if (!g) return "utf8";
2072
+ for (var p; ; )
2073
+ switch (g) {
2074
+ case "utf8":
2075
+ case "utf-8":
2076
+ return "utf8";
2077
+ case "ucs2":
2078
+ case "ucs-2":
2079
+ case "utf16le":
2080
+ case "utf-16le":
2081
+ return "utf16le";
2082
+ case "latin1":
2083
+ case "binary":
2084
+ return "latin1";
2085
+ case "base64":
2086
+ case "ascii":
2087
+ case "hex":
2088
+ return g;
2089
+ default:
2090
+ if (p) return;
2091
+ g = ("" + g).toLowerCase(), p = !0;
2092
+ }
2093
+ }
2094
+ function u(g) {
2095
+ var p = l(g);
2096
+ if (typeof p != "string" && (n.isEncoding === t || !t(g))) throw new Error("Unknown encoding: " + g);
2097
+ return p || g;
2098
+ }
2099
+ Jt.StringDecoder = f;
2100
+ function f(g) {
2101
+ this.encoding = u(g);
2102
+ var p;
2103
+ switch (this.encoding) {
2104
+ case "utf16le":
2105
+ this.text = m, this.end = d, p = 4;
2106
+ break;
2107
+ case "utf8":
2108
+ this.fillLast = h, p = 4;
2109
+ break;
2110
+ case "base64":
2111
+ this.text = E, this.end = b, p = 3;
2112
+ break;
2113
+ default:
2114
+ this.write = O, this.end = I;
2115
+ return;
2116
+ }
2117
+ this.lastNeed = 0, this.lastTotal = 0, this.lastChar = n.allocUnsafe(p);
2118
+ }
2119
+ f.prototype.write = function(g) {
2120
+ if (g.length === 0) return "";
2121
+ var p, a;
2122
+ if (this.lastNeed) {
2123
+ if (p = this.fillLast(g), p === void 0) return "";
2124
+ a = this.lastNeed, this.lastNeed = 0;
2125
+ } else
2126
+ a = 0;
2127
+ return a < g.length ? p ? p + this.text(g, a) : this.text(g, a) : p || "";
2128
+ }, f.prototype.end = w, f.prototype.text = D, f.prototype.fillLast = function(g) {
2129
+ if (this.lastNeed <= g.length)
2130
+ return g.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal);
2131
+ g.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, g.length), this.lastNeed -= g.length;
2132
+ };
2133
+ function r(g) {
2134
+ return g <= 127 ? 0 : g >> 5 === 6 ? 2 : g >> 4 === 14 ? 3 : g >> 3 === 30 ? 4 : g >> 6 === 2 ? -1 : -2;
2135
+ }
2136
+ function e(g, p, a) {
2137
+ var y = p.length - 1;
2138
+ if (y < a) return 0;
2139
+ var N = r(p[y]);
2140
+ return N >= 0 ? (N > 0 && (g.lastNeed = N - 1), N) : --y < a || N === -2 ? 0 : (N = r(p[y]), N >= 0 ? (N > 0 && (g.lastNeed = N - 2), N) : --y < a || N === -2 ? 0 : (N = r(p[y]), N >= 0 ? (N > 0 && (N === 2 ? N = 0 : g.lastNeed = N - 3), N) : 0));
2141
+ }
2142
+ function s(g, p, a) {
2143
+ if ((p[0] & 192) !== 128)
2144
+ return g.lastNeed = 0, "�";
2145
+ if (g.lastNeed > 1 && p.length > 1) {
2146
+ if ((p[1] & 192) !== 128)
2147
+ return g.lastNeed = 1, "�";
2148
+ if (g.lastNeed > 2 && p.length > 2 && (p[2] & 192) !== 128)
2149
+ return g.lastNeed = 2, "�";
2150
+ }
2151
+ }
2152
+ function h(g) {
2153
+ var p = this.lastTotal - this.lastNeed, a = s(this, g);
2154
+ if (a !== void 0) return a;
2155
+ if (this.lastNeed <= g.length)
2156
+ return g.copy(this.lastChar, p, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal);
2157
+ g.copy(this.lastChar, p, 0, g.length), this.lastNeed -= g.length;
2158
+ }
2159
+ function D(g, p) {
2160
+ var a = e(this, g, p);
2161
+ if (!this.lastNeed) return g.toString("utf8", p);
2162
+ this.lastTotal = a;
2163
+ var y = g.length - (a - this.lastNeed);
2164
+ return g.copy(this.lastChar, 0, y), g.toString("utf8", p, y);
2165
+ }
2166
+ function w(g) {
2167
+ var p = g && g.length ? this.write(g) : "";
2168
+ return this.lastNeed ? p + "�" : p;
2169
+ }
2170
+ function m(g, p) {
2171
+ if ((g.length - p) % 2 === 0) {
2172
+ var a = g.toString("utf16le", p);
2173
+ if (a) {
2174
+ var y = a.charCodeAt(a.length - 1);
2175
+ if (y >= 55296 && y <= 56319)
2176
+ return this.lastNeed = 2, this.lastTotal = 4, this.lastChar[0] = g[g.length - 2], this.lastChar[1] = g[g.length - 1], a.slice(0, -1);
2177
+ }
2178
+ return a;
2179
+ }
2180
+ return this.lastNeed = 1, this.lastTotal = 2, this.lastChar[0] = g[g.length - 1], g.toString("utf16le", p, g.length - 1);
2181
+ }
2182
+ function d(g) {
2183
+ var p = g && g.length ? this.write(g) : "";
2184
+ if (this.lastNeed) {
2185
+ var a = this.lastTotal - this.lastNeed;
2186
+ return p + this.lastChar.toString("utf16le", 0, a);
2187
+ }
2188
+ return p;
2189
+ }
2190
+ function E(g, p) {
2191
+ var a = (g.length - p) % 3;
2192
+ return a === 0 ? g.toString("base64", p) : (this.lastNeed = 3 - a, this.lastTotal = 3, a === 1 ? this.lastChar[0] = g[g.length - 1] : (this.lastChar[0] = g[g.length - 2], this.lastChar[1] = g[g.length - 1]), g.toString("base64", p, g.length - a));
2193
+ }
2194
+ function b(g) {
2195
+ var p = g && g.length ? this.write(g) : "";
2196
+ return this.lastNeed ? p + this.lastChar.toString("base64", 0, 3 - this.lastNeed) : p;
2197
+ }
2198
+ function O(g) {
2199
+ return g.toString(this.encoding);
2200
+ }
2201
+ function I(g) {
2202
+ return g && g.length ? this.write(g) : "";
2203
+ }
2204
+ return Jt;
2205
+ }
2206
+ (function(n) {
2207
+ (function(t) {
2208
+ t.parser = function(c, o) {
2209
+ return new u(c, o);
2210
+ }, t.SAXParser = u, t.SAXStream = w, t.createStream = D, t.MAX_BUFFER_LENGTH = 64 * 1024;
2211
+ var l = [
2212
+ "comment",
2213
+ "sgmlDecl",
2214
+ "textNode",
2215
+ "tagName",
2216
+ "doctype",
2217
+ "procInstName",
2218
+ "procInstBody",
2219
+ "entity",
2220
+ "attribName",
2221
+ "attribValue",
2222
+ "cdata",
2223
+ "script"
2224
+ ];
2225
+ t.EVENTS = [
2226
+ "text",
2227
+ "processinginstruction",
2228
+ "sgmldeclaration",
2229
+ "doctype",
2230
+ "comment",
2231
+ "opentagstart",
2232
+ "attribute",
2233
+ "opentag",
2234
+ "closetag",
2235
+ "opencdata",
2236
+ "cdata",
2237
+ "closecdata",
2238
+ "error",
2239
+ "end",
2240
+ "ready",
2241
+ "script",
2242
+ "opennamespace",
2243
+ "closenamespace"
2244
+ ];
2245
+ function u(c, o) {
2246
+ if (!(this instanceof u))
2247
+ return new u(c, o);
2248
+ var C = this;
2249
+ r(C), C.q = C.c = "", C.bufferCheckPosition = t.MAX_BUFFER_LENGTH, C.opt = o || {}, C.opt.lowercase = C.opt.lowercase || C.opt.lowercasetags, C.looseCase = C.opt.lowercase ? "toLowerCase" : "toUpperCase", C.tags = [], C.closed = C.closedRoot = C.sawRoot = !1, C.tag = C.error = null, C.strict = !!c, C.noscript = !!(c || C.opt.noscript), C.state = i.BEGIN, C.strictEntities = C.opt.strictEntities, C.ENTITIES = C.strictEntities ? Object.create(t.XML_ENTITIES) : Object.create(t.ENTITIES), C.attribList = [], C.opt.xmlns && (C.ns = Object.create(O)), C.opt.unquotedAttributeValues === void 0 && (C.opt.unquotedAttributeValues = !c), C.trackPosition = C.opt.position !== !1, C.trackPosition && (C.position = C.line = C.column = 0), L(C, "onready");
2250
+ }
2251
+ Object.create || (Object.create = function(c) {
2252
+ function o() {
2253
+ }
2254
+ o.prototype = c;
2255
+ var C = new o();
2256
+ return C;
2257
+ }), Object.keys || (Object.keys = function(c) {
2258
+ var o = [];
2259
+ for (var C in c) c.hasOwnProperty(C) && o.push(C);
2260
+ return o;
2261
+ });
2262
+ function f(c) {
2263
+ for (var o = Math.max(t.MAX_BUFFER_LENGTH, 10), C = 0, T = 0, U = l.length; T < U; T++) {
2264
+ var k = c[l[T]].length;
2265
+ if (k > o)
2266
+ switch (l[T]) {
2267
+ case "textNode":
2268
+ B(c);
2269
+ break;
2270
+ case "cdata":
2271
+ M(c, "oncdata", c.cdata), c.cdata = "";
2272
+ break;
2273
+ case "script":
2274
+ M(c, "onscript", c.script), c.script = "";
2275
+ break;
2276
+ default:
2277
+ V(c, "Max buffer length exceeded: " + l[T]);
2278
+ }
2279
+ C = Math.max(C, k);
2280
+ }
2281
+ var G = t.MAX_BUFFER_LENGTH - C;
2282
+ c.bufferCheckPosition = G + c.position;
2283
+ }
2284
+ function r(c) {
2285
+ for (var o = 0, C = l.length; o < C; o++)
2286
+ c[l[o]] = "";
2287
+ }
2288
+ function e(c) {
2289
+ B(c), c.cdata !== "" && (M(c, "oncdata", c.cdata), c.cdata = ""), c.script !== "" && (M(c, "onscript", c.script), c.script = "");
2290
+ }
2291
+ u.prototype = {
2292
+ end: function() {
2293
+ K(this);
2294
+ },
2295
+ write: Pr,
2296
+ resume: function() {
2297
+ return this.error = null, this;
2298
+ },
2299
+ close: function() {
2300
+ return this.write(null);
2301
+ },
2302
+ flush: function() {
2303
+ e(this);
2304
+ }
2305
+ };
2306
+ var s;
2307
+ try {
2308
+ s = lt.Stream;
2309
+ } catch {
2310
+ s = function() {
2311
+ };
2312
+ }
2313
+ s || (s = function() {
2314
+ });
2315
+ var h = t.EVENTS.filter(function(c) {
2316
+ return c !== "error" && c !== "end";
2317
+ });
2318
+ function D(c, o) {
2319
+ return new w(c, o);
2320
+ }
2321
+ function w(c, o) {
2322
+ if (!(this instanceof w))
2323
+ return new w(c, o);
2324
+ s.apply(this), this._parser = new u(c, o), this.writable = !0, this.readable = !0;
2325
+ var C = this;
2326
+ this._parser.onend = function() {
2327
+ C.emit("end");
2328
+ }, this._parser.onerror = function(T) {
2329
+ C.emit("error", T), C._parser.error = null;
2330
+ }, this._decoder = null, h.forEach(function(T) {
2331
+ Object.defineProperty(C, "on" + T, {
2332
+ get: function() {
2333
+ return C._parser["on" + T];
2334
+ },
2335
+ set: function(U) {
2336
+ if (!U)
2337
+ return C.removeAllListeners(T), C._parser["on" + T] = U, U;
2338
+ C.on(T, U);
2339
+ },
2340
+ enumerable: !0,
2341
+ configurable: !1
2342
+ });
2343
+ });
2344
+ }
2345
+ w.prototype = Object.create(s.prototype, {
2346
+ constructor: {
2347
+ value: w
2348
+ }
2349
+ }), w.prototype.write = function(c) {
2350
+ if (typeof Buffer == "function" && typeof Buffer.isBuffer == "function" && Buffer.isBuffer(c)) {
2351
+ if (!this._decoder) {
2352
+ var o = Gr().StringDecoder;
2353
+ this._decoder = new o("utf8");
2354
+ }
2355
+ c = this._decoder.write(c);
2356
+ }
2357
+ return this._parser.write(c.toString()), this.emit("data", c), !0;
2358
+ }, w.prototype.end = function(c) {
2359
+ return c && c.length && this.write(c), this._parser.end(), !0;
2360
+ }, w.prototype.on = function(c, o) {
2361
+ var C = this;
2362
+ return !C._parser["on" + c] && h.indexOf(c) !== -1 && (C._parser["on" + c] = function() {
2363
+ var T = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments);
2364
+ T.splice(0, 0, c), C.emit.apply(C, T);
2365
+ }), s.prototype.on.call(C, c, o);
2366
+ };
2367
+ var m = "[CDATA[", d = "DOCTYPE", E = "http://www.w3.org/XML/1998/namespace", b = "http://www.w3.org/2000/xmlns/", O = { xml: E, xmlns: b }, I = /[:_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]/, g = /[:_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\u00B7\u0300-\u036F\u203F-\u2040.\d-]/, p = /[#:_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]/, a = /[#:_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\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;
2368
+ function y(c) {
2369
+ return c === " " || c === `
2370
+ ` || c === "\r" || c === " ";
2371
+ }
2372
+ function N(c) {
2373
+ return c === '"' || c === "'";
2374
+ }
2375
+ function P(c) {
2376
+ return c === ">" || y(c);
2377
+ }
2378
+ function _(c, o) {
2379
+ return c.test(o);
2380
+ }
2381
+ function A(c, o) {
2382
+ return !_(c, o);
2383
+ }
2384
+ var i = 0;
2385
+ t.STATE = {
2386
+ BEGIN: i++,
2387
+ // leading byte order mark or whitespace
2388
+ BEGIN_WHITESPACE: i++,
2389
+ // leading whitespace
2390
+ TEXT: i++,
2391
+ // general stuff
2392
+ TEXT_ENTITY: i++,
2393
+ // &amp and such.
2394
+ OPEN_WAKA: i++,
2395
+ // <
2396
+ SGML_DECL: i++,
2397
+ // <!BLARG
2398
+ SGML_DECL_QUOTED: i++,
2399
+ // <!BLARG foo "bar
2400
+ DOCTYPE: i++,
2401
+ // <!DOCTYPE
2402
+ DOCTYPE_QUOTED: i++,
2403
+ // <!DOCTYPE "//blah
2404
+ DOCTYPE_DTD: i++,
2405
+ // <!DOCTYPE "//blah" [ ...
2406
+ DOCTYPE_DTD_QUOTED: i++,
2407
+ // <!DOCTYPE "//blah" [ "foo
2408
+ COMMENT_STARTING: i++,
2409
+ // <!-
2410
+ COMMENT: i++,
2411
+ // <!--
2412
+ COMMENT_ENDING: i++,
2413
+ // <!-- blah -
2414
+ COMMENT_ENDED: i++,
2415
+ // <!-- blah --
2416
+ CDATA: i++,
2417
+ // <![CDATA[ something
2418
+ CDATA_ENDING: i++,
2419
+ // ]
2420
+ CDATA_ENDING_2: i++,
2421
+ // ]]
2422
+ PROC_INST: i++,
2423
+ // <?hi
2424
+ PROC_INST_BODY: i++,
2425
+ // <?hi there
2426
+ PROC_INST_ENDING: i++,
2427
+ // <?hi "there" ?
2428
+ OPEN_TAG: i++,
2429
+ // <strong
2430
+ OPEN_TAG_SLASH: i++,
2431
+ // <strong /
2432
+ ATTRIB: i++,
2433
+ // <a
2434
+ ATTRIB_NAME: i++,
2435
+ // <a foo
2436
+ ATTRIB_NAME_SAW_WHITE: i++,
2437
+ // <a foo _
2438
+ ATTRIB_VALUE: i++,
2439
+ // <a foo=
2440
+ ATTRIB_VALUE_QUOTED: i++,
2441
+ // <a foo="bar
2442
+ ATTRIB_VALUE_CLOSED: i++,
2443
+ // <a foo="bar"
2444
+ ATTRIB_VALUE_UNQUOTED: i++,
2445
+ // <a foo=bar
2446
+ ATTRIB_VALUE_ENTITY_Q: i++,
2447
+ // <foo bar="&quot;"
2448
+ ATTRIB_VALUE_ENTITY_U: i++,
2449
+ // <foo bar=&quot
2450
+ CLOSE_TAG: i++,
2451
+ // </a
2452
+ CLOSE_TAG_SAW_WHITE: i++,
2453
+ // </a >
2454
+ SCRIPT: i++,
2455
+ // <script> ...
2456
+ SCRIPT_ENDING: i++
2457
+ // <script> ... <
2458
+ }, t.XML_ENTITIES = {
2459
+ amp: "&",
2460
+ gt: ">",
2461
+ lt: "<",
2462
+ quot: '"',
2463
+ apos: "'"
2464
+ }, t.ENTITIES = {
2465
+ amp: "&",
2466
+ gt: ">",
2467
+ lt: "<",
2468
+ quot: '"',
2469
+ apos: "'",
2470
+ AElig: 198,
2471
+ Aacute: 193,
2472
+ Acirc: 194,
2473
+ Agrave: 192,
2474
+ Aring: 197,
2475
+ Atilde: 195,
2476
+ Auml: 196,
2477
+ Ccedil: 199,
2478
+ ETH: 208,
2479
+ Eacute: 201,
2480
+ Ecirc: 202,
2481
+ Egrave: 200,
2482
+ Euml: 203,
2483
+ Iacute: 205,
2484
+ Icirc: 206,
2485
+ Igrave: 204,
2486
+ Iuml: 207,
2487
+ Ntilde: 209,
2488
+ Oacute: 211,
2489
+ Ocirc: 212,
2490
+ Ograve: 210,
2491
+ Oslash: 216,
2492
+ Otilde: 213,
2493
+ Ouml: 214,
2494
+ THORN: 222,
2495
+ Uacute: 218,
2496
+ Ucirc: 219,
2497
+ Ugrave: 217,
2498
+ Uuml: 220,
2499
+ Yacute: 221,
2500
+ aacute: 225,
2501
+ acirc: 226,
2502
+ aelig: 230,
2503
+ agrave: 224,
2504
+ aring: 229,
2505
+ atilde: 227,
2506
+ auml: 228,
2507
+ ccedil: 231,
2508
+ eacute: 233,
2509
+ ecirc: 234,
2510
+ egrave: 232,
2511
+ eth: 240,
2512
+ euml: 235,
2513
+ iacute: 237,
2514
+ icirc: 238,
2515
+ igrave: 236,
2516
+ iuml: 239,
2517
+ ntilde: 241,
2518
+ oacute: 243,
2519
+ ocirc: 244,
2520
+ ograve: 242,
2521
+ oslash: 248,
2522
+ otilde: 245,
2523
+ ouml: 246,
2524
+ szlig: 223,
2525
+ thorn: 254,
2526
+ uacute: 250,
2527
+ ucirc: 251,
2528
+ ugrave: 249,
2529
+ uuml: 252,
2530
+ yacute: 253,
2531
+ yuml: 255,
2532
+ copy: 169,
2533
+ reg: 174,
2534
+ nbsp: 160,
2535
+ iexcl: 161,
2536
+ cent: 162,
2537
+ pound: 163,
2538
+ curren: 164,
2539
+ yen: 165,
2540
+ brvbar: 166,
2541
+ sect: 167,
2542
+ uml: 168,
2543
+ ordf: 170,
2544
+ laquo: 171,
2545
+ not: 172,
2546
+ shy: 173,
2547
+ macr: 175,
2548
+ deg: 176,
2549
+ plusmn: 177,
2550
+ sup1: 185,
2551
+ sup2: 178,
2552
+ sup3: 179,
2553
+ acute: 180,
2554
+ micro: 181,
2555
+ para: 182,
2556
+ middot: 183,
2557
+ cedil: 184,
2558
+ ordm: 186,
2559
+ raquo: 187,
2560
+ frac14: 188,
2561
+ frac12: 189,
2562
+ frac34: 190,
2563
+ iquest: 191,
2564
+ times: 215,
2565
+ divide: 247,
2566
+ OElig: 338,
2567
+ oelig: 339,
2568
+ Scaron: 352,
2569
+ scaron: 353,
2570
+ Yuml: 376,
2571
+ fnof: 402,
2572
+ circ: 710,
2573
+ tilde: 732,
2574
+ Alpha: 913,
2575
+ Beta: 914,
2576
+ Gamma: 915,
2577
+ Delta: 916,
2578
+ Epsilon: 917,
2579
+ Zeta: 918,
2580
+ Eta: 919,
2581
+ Theta: 920,
2582
+ Iota: 921,
2583
+ Kappa: 922,
2584
+ Lambda: 923,
2585
+ Mu: 924,
2586
+ Nu: 925,
2587
+ Xi: 926,
2588
+ Omicron: 927,
2589
+ Pi: 928,
2590
+ Rho: 929,
2591
+ Sigma: 931,
2592
+ Tau: 932,
2593
+ Upsilon: 933,
2594
+ Phi: 934,
2595
+ Chi: 935,
2596
+ Psi: 936,
2597
+ Omega: 937,
2598
+ alpha: 945,
2599
+ beta: 946,
2600
+ gamma: 947,
2601
+ delta: 948,
2602
+ epsilon: 949,
2603
+ zeta: 950,
2604
+ eta: 951,
2605
+ theta: 952,
2606
+ iota: 953,
2607
+ kappa: 954,
2608
+ lambda: 955,
2609
+ mu: 956,
2610
+ nu: 957,
2611
+ xi: 958,
2612
+ omicron: 959,
2613
+ pi: 960,
2614
+ rho: 961,
2615
+ sigmaf: 962,
2616
+ sigma: 963,
2617
+ tau: 964,
2618
+ upsilon: 965,
2619
+ phi: 966,
2620
+ chi: 967,
2621
+ psi: 968,
2622
+ omega: 969,
2623
+ thetasym: 977,
2624
+ upsih: 978,
2625
+ piv: 982,
2626
+ ensp: 8194,
2627
+ emsp: 8195,
2628
+ thinsp: 8201,
2629
+ zwnj: 8204,
2630
+ zwj: 8205,
2631
+ lrm: 8206,
2632
+ rlm: 8207,
2633
+ ndash: 8211,
2634
+ mdash: 8212,
2635
+ lsquo: 8216,
2636
+ rsquo: 8217,
2637
+ sbquo: 8218,
2638
+ ldquo: 8220,
2639
+ rdquo: 8221,
2640
+ bdquo: 8222,
2641
+ dagger: 8224,
2642
+ Dagger: 8225,
2643
+ bull: 8226,
2644
+ hellip: 8230,
2645
+ permil: 8240,
2646
+ prime: 8242,
2647
+ Prime: 8243,
2648
+ lsaquo: 8249,
2649
+ rsaquo: 8250,
2650
+ oline: 8254,
2651
+ frasl: 8260,
2652
+ euro: 8364,
2653
+ image: 8465,
2654
+ weierp: 8472,
2655
+ real: 8476,
2656
+ trade: 8482,
2657
+ alefsym: 8501,
2658
+ larr: 8592,
2659
+ uarr: 8593,
2660
+ rarr: 8594,
2661
+ darr: 8595,
2662
+ harr: 8596,
2663
+ crarr: 8629,
2664
+ lArr: 8656,
2665
+ uArr: 8657,
2666
+ rArr: 8658,
2667
+ dArr: 8659,
2668
+ hArr: 8660,
2669
+ forall: 8704,
2670
+ part: 8706,
2671
+ exist: 8707,
2672
+ empty: 8709,
2673
+ nabla: 8711,
2674
+ isin: 8712,
2675
+ notin: 8713,
2676
+ ni: 8715,
2677
+ prod: 8719,
2678
+ sum: 8721,
2679
+ minus: 8722,
2680
+ lowast: 8727,
2681
+ radic: 8730,
2682
+ prop: 8733,
2683
+ infin: 8734,
2684
+ ang: 8736,
2685
+ and: 8743,
2686
+ or: 8744,
2687
+ cap: 8745,
2688
+ cup: 8746,
2689
+ int: 8747,
2690
+ there4: 8756,
2691
+ sim: 8764,
2692
+ cong: 8773,
2693
+ asymp: 8776,
2694
+ ne: 8800,
2695
+ equiv: 8801,
2696
+ le: 8804,
2697
+ ge: 8805,
2698
+ sub: 8834,
2699
+ sup: 8835,
2700
+ nsub: 8836,
2701
+ sube: 8838,
2702
+ supe: 8839,
2703
+ oplus: 8853,
2704
+ otimes: 8855,
2705
+ perp: 8869,
2706
+ sdot: 8901,
2707
+ lceil: 8968,
2708
+ rceil: 8969,
2709
+ lfloor: 8970,
2710
+ rfloor: 8971,
2711
+ lang: 9001,
2712
+ rang: 9002,
2713
+ loz: 9674,
2714
+ spades: 9824,
2715
+ clubs: 9827,
2716
+ hearts: 9829,
2717
+ diams: 9830
2718
+ }, Object.keys(t.ENTITIES).forEach(function(c) {
2719
+ var o = t.ENTITIES[c], C = typeof o == "number" ? String.fromCharCode(o) : o;
2720
+ t.ENTITIES[c] = C;
2721
+ });
2722
+ for (var v in t.STATE)
2723
+ t.STATE[t.STATE[v]] = v;
2724
+ i = t.STATE;
2725
+ function L(c, o, C) {
2726
+ c[o] && c[o](C);
2727
+ }
2728
+ function M(c, o, C) {
2729
+ c.textNode && B(c), L(c, o, C);
2730
+ }
2731
+ function B(c) {
2732
+ c.textNode = q(c.opt, c.textNode), c.textNode && L(c, "ontext", c.textNode), c.textNode = "";
2733
+ }
2734
+ function q(c, o) {
2735
+ return c.trim && (o = o.trim()), c.normalize && (o = o.replace(/\s+/g, " ")), o;
2736
+ }
2737
+ function V(c, o) {
2738
+ return B(c), c.trackPosition && (o += `
2739
+ Line: ` + c.line + `
2740
+ Column: ` + c.column + `
2741
+ Char: ` + c.c), o = new Error(o), c.error = o, L(c, "onerror", o), c;
2742
+ }
2743
+ function K(c) {
2744
+ return c.sawRoot && !c.closedRoot && j(c, "Unclosed root tag"), c.state !== i.BEGIN && c.state !== i.BEGIN_WHITESPACE && c.state !== i.TEXT && V(c, "Unexpected end"), B(c), c.c = "", c.closed = !0, L(c, "onend"), u.call(c, c.strict, c.opt), c;
2745
+ }
2746
+ function j(c, o) {
2747
+ if (typeof c != "object" || !(c instanceof u))
2748
+ throw new Error("bad call to strictFail");
2749
+ c.strict && V(c, o);
2750
+ }
2751
+ function Ar(c) {
2752
+ c.strict || (c.tagName = c.tagName[c.looseCase]());
2753
+ var o = c.tags[c.tags.length - 1] || c, C = c.tag = { name: c.tagName, attributes: {} };
2754
+ c.opt.xmlns && (C.ns = o.ns), c.attribList.length = 0, M(c, "onopentagstart", C);
2755
+ }
2756
+ function dt(c, o) {
2757
+ var C = c.indexOf(":"), T = C < 0 ? ["", c] : c.split(":"), U = T[0], k = T[1];
2758
+ return o && c === "xmlns" && (U = "xmlns", k = ""), { prefix: U, local: k };
2759
+ }
2760
+ function yt(c) {
2761
+ if (c.strict || (c.attribName = c.attribName[c.looseCase]()), c.attribList.indexOf(c.attribName) !== -1 || c.tag.attributes.hasOwnProperty(c.attribName)) {
2762
+ c.attribName = c.attribValue = "";
2763
+ return;
2764
+ }
2765
+ if (c.opt.xmlns) {
2766
+ var o = dt(c.attribName, !0), C = o.prefix, T = o.local;
2767
+ if (C === "xmlns")
2768
+ if (T === "xml" && c.attribValue !== E)
2769
+ j(
2770
+ c,
2771
+ "xml: prefix must be bound to " + E + `
2772
+ Actual: ` + c.attribValue
2773
+ );
2774
+ else if (T === "xmlns" && c.attribValue !== b)
2775
+ j(
2776
+ c,
2777
+ "xmlns: prefix must be bound to " + b + `
2778
+ Actual: ` + c.attribValue
2779
+ );
2780
+ else {
2781
+ var U = c.tag, k = c.tags[c.tags.length - 1] || c;
2782
+ U.ns === k.ns && (U.ns = Object.create(k.ns)), U.ns[T] = c.attribValue;
2783
+ }
2784
+ c.attribList.push([c.attribName, c.attribValue]);
2785
+ } else
2786
+ c.tag.attributes[c.attribName] = c.attribValue, M(c, "onattribute", {
2787
+ name: c.attribName,
2788
+ value: c.attribValue
2789
+ });
2790
+ c.attribName = c.attribValue = "";
2791
+ }
2792
+ function it(c, o) {
2793
+ if (c.opt.xmlns) {
2794
+ var C = c.tag, T = dt(c.tagName);
2795
+ C.prefix = T.prefix, C.local = T.local, C.uri = C.ns[T.prefix] || "", C.prefix && !C.uri && (j(
2796
+ c,
2797
+ "Unbound namespace prefix: " + JSON.stringify(c.tagName)
2798
+ ), C.uri = T.prefix);
2799
+ var U = c.tags[c.tags.length - 1] || c;
2800
+ C.ns && U.ns !== C.ns && Object.keys(C.ns).forEach(function(Ne) {
2801
+ M(c, "onopennamespace", {
2802
+ prefix: Ne,
2803
+ uri: C.ns[Ne]
2804
+ });
2805
+ });
2806
+ for (var k = 0, G = c.attribList.length; k < G; k++) {
2807
+ var Q = c.attribList[k], $ = Q[0], st = Q[1], Y = dt($, !0), tt = Y.prefix, _r = Y.local, De = tt === "" ? "" : C.ns[tt] || "", wt = {
2808
+ name: $,
2809
+ value: st,
2810
+ prefix: tt,
2811
+ local: _r,
2812
+ uri: De
2813
+ };
2814
+ tt && tt !== "xmlns" && !De && (j(
2815
+ c,
2816
+ "Unbound namespace prefix: " + JSON.stringify(tt)
2817
+ ), wt.uri = tt), c.tag.attributes[$] = wt, M(c, "onattribute", wt);
2818
+ }
2819
+ c.attribList.length = 0;
2820
+ }
2821
+ c.tag.isSelfClosing = !!o, c.sawRoot = !0, c.tags.push(c.tag), M(c, "onopentag", c.tag), o || (!c.noscript && c.tagName.toLowerCase() === "script" ? c.state = i.SCRIPT : c.state = i.TEXT, c.tag = null, c.tagName = ""), c.attribName = c.attribValue = "", c.attribList.length = 0;
2822
+ }
2823
+ function mt(c) {
2824
+ if (!c.tagName) {
2825
+ j(c, "Weird empty close tag."), c.textNode += "</>", c.state = i.TEXT;
2826
+ return;
2827
+ }
2828
+ if (c.script) {
2829
+ if (c.tagName !== "script") {
2830
+ c.script += "</" + c.tagName + ">", c.tagName = "", c.state = i.SCRIPT;
2831
+ return;
2832
+ }
2833
+ M(c, "onscript", c.script), c.script = "";
2834
+ }
2835
+ var o = c.tags.length, C = c.tagName;
2836
+ c.strict || (C = C[c.looseCase]());
2837
+ for (var T = C; o--; ) {
2838
+ var U = c.tags[o];
2839
+ if (U.name !== T)
2840
+ j(c, "Unexpected close tag");
2841
+ else
2842
+ break;
2843
+ }
2844
+ if (o < 0) {
2845
+ j(c, "Unmatched closing tag: " + c.tagName), c.textNode += "</" + c.tagName + ">", c.state = i.TEXT;
2846
+ return;
2847
+ }
2848
+ c.tagName = C;
2849
+ for (var k = c.tags.length; k-- > o; ) {
2850
+ var G = c.tag = c.tags.pop();
2851
+ c.tagName = c.tag.name, M(c, "onclosetag", c.tagName);
2852
+ var Q = {};
2853
+ for (var $ in G.ns)
2854
+ Q[$] = G.ns[$];
2855
+ var st = c.tags[c.tags.length - 1] || c;
2856
+ c.opt.xmlns && G.ns !== st.ns && Object.keys(G.ns).forEach(function(Y) {
2857
+ var tt = G.ns[Y];
2858
+ M(c, "onclosenamespace", { prefix: Y, uri: tt });
2859
+ });
2860
+ }
2861
+ o === 0 && (c.closedRoot = !0), c.tagName = c.attribValue = c.attribName = "", c.attribList.length = 0, c.state = i.TEXT;
2862
+ }
2863
+ function Lr(c) {
2864
+ var o = c.entity, C = o.toLowerCase(), T, U = "";
2865
+ return c.ENTITIES[o] ? c.ENTITIES[o] : c.ENTITIES[C] ? c.ENTITIES[C] : (o = C, o.charAt(0) === "#" && (o.charAt(1) === "x" ? (o = o.slice(2), T = parseInt(o, 16), U = T.toString(16)) : (o = o.slice(1), T = parseInt(o, 10), U = T.toString(10))), o = o.replace(/^0+/, ""), isNaN(T) || U.toLowerCase() !== o || T < 0 || T > 1114111 ? (j(c, "Invalid character entity"), "&" + c.entity + ";") : String.fromCodePoint(T));
2866
+ }
2867
+ function Ee(c, o) {
2868
+ o === "<" ? (c.state = i.OPEN_WAKA, c.startTagPosition = c.position) : y(o) || (j(c, "Non-whitespace before first tag."), c.textNode = o, c.state = i.TEXT);
2869
+ }
2870
+ function gt(c, o) {
2871
+ var C = "";
2872
+ return o < c.length && (C = c.charAt(o)), C;
2873
+ }
2874
+ function Pr(c) {
2875
+ var o = this;
2876
+ if (this.error)
2877
+ throw this.error;
2878
+ if (o.closed)
2879
+ return V(
2880
+ o,
2881
+ "Cannot write after close. Assign an onready handler."
2882
+ );
2883
+ if (c === null)
2884
+ return K(o);
2885
+ typeof c == "object" && (c = c.toString());
2886
+ for (var C = 0, T = ""; T = gt(c, C++), o.c = T, !!T; )
2887
+ switch (o.trackPosition && (o.position++, T === `
2888
+ ` ? (o.line++, o.column = 0) : o.column++), o.state) {
2889
+ case i.BEGIN:
2890
+ if (o.state = i.BEGIN_WHITESPACE, T === "\uFEFF")
2891
+ continue;
2892
+ Ee(o, T);
2893
+ continue;
2894
+ case i.BEGIN_WHITESPACE:
2895
+ Ee(o, T);
2896
+ continue;
2897
+ case i.TEXT:
2898
+ if (o.sawRoot && !o.closedRoot) {
2899
+ for (var k = C - 1; T && T !== "<" && T !== "&"; )
2900
+ T = gt(c, C++), T && o.trackPosition && (o.position++, T === `
2901
+ ` ? (o.line++, o.column = 0) : o.column++);
2902
+ o.textNode += c.substring(k, C - 1);
2903
+ }
2904
+ T === "<" && !(o.sawRoot && o.closedRoot && !o.strict) ? (o.state = i.OPEN_WAKA, o.startTagPosition = o.position) : (!y(T) && (!o.sawRoot || o.closedRoot) && j(o, "Text data outside of root node."), T === "&" ? o.state = i.TEXT_ENTITY : o.textNode += T);
2905
+ continue;
2906
+ case i.SCRIPT:
2907
+ T === "<" ? o.state = i.SCRIPT_ENDING : o.script += T;
2908
+ continue;
2909
+ case i.SCRIPT_ENDING:
2910
+ T === "/" ? o.state = i.CLOSE_TAG : (o.script += "<" + T, o.state = i.SCRIPT);
2911
+ continue;
2912
+ case i.OPEN_WAKA:
2913
+ if (T === "!")
2914
+ o.state = i.SGML_DECL, o.sgmlDecl = "";
2915
+ else if (!y(T)) if (_(I, T))
2916
+ o.state = i.OPEN_TAG, o.tagName = T;
2917
+ else if (T === "/")
2918
+ o.state = i.CLOSE_TAG, o.tagName = "";
2919
+ else if (T === "?")
2920
+ o.state = i.PROC_INST, o.procInstName = o.procInstBody = "";
2921
+ else {
2922
+ if (j(o, "Unencoded <"), o.startTagPosition + 1 < o.position) {
2923
+ var U = o.position - o.startTagPosition;
2924
+ T = new Array(U).join(" ") + T;
2925
+ }
2926
+ o.textNode += "<" + T, o.state = i.TEXT;
2927
+ }
2928
+ continue;
2929
+ case i.SGML_DECL:
2930
+ if (o.sgmlDecl + T === "--") {
2931
+ o.state = i.COMMENT, o.comment = "", o.sgmlDecl = "";
2932
+ continue;
2933
+ }
2934
+ o.doctype && o.doctype !== !0 && o.sgmlDecl ? (o.state = i.DOCTYPE_DTD, o.doctype += "<!" + o.sgmlDecl + T, o.sgmlDecl = "") : (o.sgmlDecl + T).toUpperCase() === m ? (M(o, "onopencdata"), o.state = i.CDATA, o.sgmlDecl = "", o.cdata = "") : (o.sgmlDecl + T).toUpperCase() === d ? (o.state = i.DOCTYPE, (o.doctype || o.sawRoot) && j(
2935
+ o,
2936
+ "Inappropriately located doctype declaration"
2937
+ ), o.doctype = "", o.sgmlDecl = "") : T === ">" ? (M(o, "onsgmldeclaration", o.sgmlDecl), o.sgmlDecl = "", o.state = i.TEXT) : (N(T) && (o.state = i.SGML_DECL_QUOTED), o.sgmlDecl += T);
2938
+ continue;
2939
+ case i.SGML_DECL_QUOTED:
2940
+ T === o.q && (o.state = i.SGML_DECL, o.q = ""), o.sgmlDecl += T;
2941
+ continue;
2942
+ case i.DOCTYPE:
2943
+ T === ">" ? (o.state = i.TEXT, M(o, "ondoctype", o.doctype), o.doctype = !0) : (o.doctype += T, T === "[" ? o.state = i.DOCTYPE_DTD : N(T) && (o.state = i.DOCTYPE_QUOTED, o.q = T));
2944
+ continue;
2945
+ case i.DOCTYPE_QUOTED:
2946
+ o.doctype += T, T === o.q && (o.q = "", o.state = i.DOCTYPE);
2947
+ continue;
2948
+ case i.DOCTYPE_DTD:
2949
+ T === "]" ? (o.doctype += T, o.state = i.DOCTYPE) : T === "<" ? (o.state = i.OPEN_WAKA, o.startTagPosition = o.position) : N(T) ? (o.doctype += T, o.state = i.DOCTYPE_DTD_QUOTED, o.q = T) : o.doctype += T;
2950
+ continue;
2951
+ case i.DOCTYPE_DTD_QUOTED:
2952
+ o.doctype += T, T === o.q && (o.state = i.DOCTYPE_DTD, o.q = "");
2953
+ continue;
2954
+ case i.COMMENT:
2955
+ T === "-" ? o.state = i.COMMENT_ENDING : o.comment += T;
2956
+ continue;
2957
+ case i.COMMENT_ENDING:
2958
+ T === "-" ? (o.state = i.COMMENT_ENDED, o.comment = q(o.opt, o.comment), o.comment && M(o, "oncomment", o.comment), o.comment = "") : (o.comment += "-" + T, o.state = i.COMMENT);
2959
+ continue;
2960
+ case i.COMMENT_ENDED:
2961
+ T !== ">" ? (j(o, "Malformed comment"), o.comment += "--" + T, o.state = i.COMMENT) : o.doctype && o.doctype !== !0 ? o.state = i.DOCTYPE_DTD : o.state = i.TEXT;
2962
+ continue;
2963
+ case i.CDATA:
2964
+ for (var k = C - 1; T && T !== "]"; )
2965
+ T = gt(c, C++), T && o.trackPosition && (o.position++, T === `
2966
+ ` ? (o.line++, o.column = 0) : o.column++);
2967
+ o.cdata += c.substring(k, C - 1), T === "]" && (o.state = i.CDATA_ENDING);
2968
+ continue;
2969
+ case i.CDATA_ENDING:
2970
+ T === "]" ? o.state = i.CDATA_ENDING_2 : (o.cdata += "]" + T, o.state = i.CDATA);
2971
+ continue;
2972
+ case i.CDATA_ENDING_2:
2973
+ T === ">" ? (o.cdata && M(o, "oncdata", o.cdata), M(o, "onclosecdata"), o.cdata = "", o.state = i.TEXT) : T === "]" ? o.cdata += "]" : (o.cdata += "]]" + T, o.state = i.CDATA);
2974
+ continue;
2975
+ case i.PROC_INST:
2976
+ T === "?" ? o.state = i.PROC_INST_ENDING : y(T) ? o.state = i.PROC_INST_BODY : o.procInstName += T;
2977
+ continue;
2978
+ case i.PROC_INST_BODY:
2979
+ if (!o.procInstBody && y(T))
2980
+ continue;
2981
+ T === "?" ? o.state = i.PROC_INST_ENDING : o.procInstBody += T;
2982
+ continue;
2983
+ case i.PROC_INST_ENDING:
2984
+ T === ">" ? (M(o, "onprocessinginstruction", {
2985
+ name: o.procInstName,
2986
+ body: o.procInstBody
2987
+ }), o.procInstName = o.procInstBody = "", o.state = i.TEXT) : (o.procInstBody += "?" + T, o.state = i.PROC_INST_BODY);
2988
+ continue;
2989
+ case i.OPEN_TAG:
2990
+ _(g, T) ? o.tagName += T : (Ar(o), T === ">" ? it(o) : T === "/" ? o.state = i.OPEN_TAG_SLASH : (y(T) || j(o, "Invalid character in tag name"), o.state = i.ATTRIB));
2991
+ continue;
2992
+ case i.OPEN_TAG_SLASH:
2993
+ T === ">" ? (it(o, !0), mt(o)) : (j(
2994
+ o,
2995
+ "Forward-slash in opening tag not followed by >"
2996
+ ), o.state = i.ATTRIB);
2997
+ continue;
2998
+ case i.ATTRIB:
2999
+ if (y(T))
3000
+ continue;
3001
+ T === ">" ? it(o) : T === "/" ? o.state = i.OPEN_TAG_SLASH : _(I, T) ? (o.attribName = T, o.attribValue = "", o.state = i.ATTRIB_NAME) : j(o, "Invalid attribute name");
3002
+ continue;
3003
+ case i.ATTRIB_NAME:
3004
+ T === "=" ? o.state = i.ATTRIB_VALUE : T === ">" ? (j(o, "Attribute without value"), o.attribValue = o.attribName, yt(o), it(o)) : y(T) ? o.state = i.ATTRIB_NAME_SAW_WHITE : _(g, T) ? o.attribName += T : j(o, "Invalid attribute name");
3005
+ continue;
3006
+ case i.ATTRIB_NAME_SAW_WHITE:
3007
+ if (T === "=")
3008
+ o.state = i.ATTRIB_VALUE;
3009
+ else {
3010
+ if (y(T))
3011
+ continue;
3012
+ j(o, "Attribute without value"), o.tag.attributes[o.attribName] = "", o.attribValue = "", M(o, "onattribute", {
3013
+ name: o.attribName,
3014
+ value: ""
3015
+ }), o.attribName = "", T === ">" ? it(o) : _(I, T) ? (o.attribName = T, o.state = i.ATTRIB_NAME) : (j(o, "Invalid attribute name"), o.state = i.ATTRIB);
3016
+ }
3017
+ continue;
3018
+ case i.ATTRIB_VALUE:
3019
+ if (y(T))
3020
+ continue;
3021
+ N(T) ? (o.q = T, o.state = i.ATTRIB_VALUE_QUOTED) : (o.opt.unquotedAttributeValues || V(o, "Unquoted attribute value"), o.state = i.ATTRIB_VALUE_UNQUOTED, o.attribValue = T);
3022
+ continue;
3023
+ case i.ATTRIB_VALUE_QUOTED:
3024
+ if (T !== o.q) {
3025
+ T === "&" ? o.state = i.ATTRIB_VALUE_ENTITY_Q : o.attribValue += T;
3026
+ continue;
3027
+ }
3028
+ yt(o), o.q = "", o.state = i.ATTRIB_VALUE_CLOSED;
3029
+ continue;
3030
+ case i.ATTRIB_VALUE_CLOSED:
3031
+ y(T) ? o.state = i.ATTRIB : T === ">" ? it(o) : T === "/" ? o.state = i.OPEN_TAG_SLASH : _(I, T) ? (j(o, "No whitespace between attributes"), o.attribName = T, o.attribValue = "", o.state = i.ATTRIB_NAME) : j(o, "Invalid attribute name");
3032
+ continue;
3033
+ case i.ATTRIB_VALUE_UNQUOTED:
3034
+ if (!P(T)) {
3035
+ T === "&" ? o.state = i.ATTRIB_VALUE_ENTITY_U : o.attribValue += T;
3036
+ continue;
3037
+ }
3038
+ yt(o), T === ">" ? it(o) : o.state = i.ATTRIB;
3039
+ continue;
3040
+ case i.CLOSE_TAG:
3041
+ if (o.tagName)
3042
+ T === ">" ? mt(o) : _(g, T) ? o.tagName += T : o.script ? (o.script += "</" + o.tagName, o.tagName = "", o.state = i.SCRIPT) : (y(T) || j(o, "Invalid tagname in closing tag"), o.state = i.CLOSE_TAG_SAW_WHITE);
3043
+ else {
3044
+ if (y(T))
3045
+ continue;
3046
+ A(I, T) ? o.script ? (o.script += "</" + T, o.state = i.SCRIPT) : j(o, "Invalid tagname in closing tag.") : o.tagName = T;
3047
+ }
3048
+ continue;
3049
+ case i.CLOSE_TAG_SAW_WHITE:
3050
+ if (y(T))
3051
+ continue;
3052
+ T === ">" ? mt(o) : j(o, "Invalid characters in closing tag");
3053
+ continue;
3054
+ case i.TEXT_ENTITY:
3055
+ case i.ATTRIB_VALUE_ENTITY_Q:
3056
+ case i.ATTRIB_VALUE_ENTITY_U:
3057
+ var G, Q;
3058
+ switch (o.state) {
3059
+ case i.TEXT_ENTITY:
3060
+ G = i.TEXT, Q = "textNode";
3061
+ break;
3062
+ case i.ATTRIB_VALUE_ENTITY_Q:
3063
+ G = i.ATTRIB_VALUE_QUOTED, Q = "attribValue";
3064
+ break;
3065
+ case i.ATTRIB_VALUE_ENTITY_U:
3066
+ G = i.ATTRIB_VALUE_UNQUOTED, Q = "attribValue";
3067
+ break;
3068
+ }
3069
+ if (T === ";") {
3070
+ var $ = Lr(o);
3071
+ o.opt.unparsedEntities && !Object.values(t.XML_ENTITIES).includes($) ? (o.entity = "", o.state = G, o.write($)) : (o[Q] += $, o.entity = "", o.state = G);
3072
+ } else _(o.entity.length ? a : p, T) ? o.entity += T : (j(o, "Invalid character in entity name"), o[Q] += "&" + o.entity + T, o.entity = "", o.state = G);
3073
+ continue;
3074
+ default:
3075
+ throw new Error(o, "Unknown state: " + o.state);
3076
+ }
3077
+ return o.position >= o.bufferCheckPosition && f(o), o;
3078
+ }
3079
+ /*! http://mths.be/fromcodepoint v0.1.0 by @mathias */
3080
+ String.fromCodePoint || function() {
3081
+ var c = String.fromCharCode, o = Math.floor, C = function() {
3082
+ var T = 16384, U = [], k, G, Q = -1, $ = arguments.length;
3083
+ if (!$)
3084
+ return "";
3085
+ for (var st = ""; ++Q < $; ) {
3086
+ var Y = Number(arguments[Q]);
3087
+ if (!isFinite(Y) || // `NaN`, `+Infinity`, or `-Infinity`
3088
+ Y < 0 || // not a valid Unicode code point
3089
+ Y > 1114111 || // not a valid Unicode code point
3090
+ o(Y) !== Y)
3091
+ throw RangeError("Invalid code point: " + Y);
3092
+ Y <= 65535 ? U.push(Y) : (Y -= 65536, k = (Y >> 10) + 55296, G = Y % 1024 + 56320, U.push(k, G)), (Q + 1 === $ || U.length > T) && (st += c.apply(null, U), U.length = 0);
3093
+ }
3094
+ return st;
3095
+ };
3096
+ Object.defineProperty ? Object.defineProperty(String, "fromCodePoint", {
3097
+ value: C,
3098
+ configurable: !0,
3099
+ writable: !0
3100
+ }) : String.fromCodePoint = C;
3101
+ }();
3102
+ })(n);
3103
+ })(me);
3104
+ var te = {}, sr;
3105
+ function Yr() {
3106
+ return sr || (sr = 1, (function() {
3107
+ te.stripBOM = function(n) {
3108
+ return n[0] === "\uFEFF" ? n.substring(1) : n;
3109
+ };
3110
+ }).call(X)), te;
3111
+ }
3112
+ var ot = {}, ar;
3113
+ function mr() {
3114
+ return ar || (ar = 1, (function() {
3115
+ var n;
3116
+ n = new RegExp(/(?!xmlns)^.*:/), ot.normalize = function(t) {
3117
+ return t.toLowerCase();
3118
+ }, ot.firstCharLowerCase = function(t) {
3119
+ return t.charAt(0).toLowerCase() + t.slice(1);
3120
+ }, ot.stripPrefix = function(t) {
3121
+ return t.replace(n, "");
3122
+ }, ot.parseNumbers = function(t) {
3123
+ return isNaN(t) || (t = t % 1 === 0 ? parseInt(t, 10) : parseFloat(t)), t;
3124
+ }, ot.parseBooleans = function(t) {
3125
+ return /^(?:true|false)$/i.test(t) && (t = t.toLowerCase() === "true"), t;
3126
+ };
3127
+ }).call(X)), ot;
3128
+ }
3129
+ var ur;
3130
+ function Hr() {
3131
+ return ur || (ur = 1, function(n) {
3132
+ (function() {
3133
+ var t, l, u, f, r, e, s, h, D, w = function(E, b) {
3134
+ return function() {
3135
+ return E.apply(b, arguments);
3136
+ };
3137
+ }, m = function(E, b) {
3138
+ for (var O in b)
3139
+ d.call(b, O) && (E[O] = b[O]);
3140
+ function I() {
3141
+ this.constructor = E;
3142
+ }
3143
+ return I.prototype = b.prototype, E.prototype = new I(), E.__super__ = b.prototype, E;
3144
+ }, d = {}.hasOwnProperty;
3145
+ h = me, f = lt, t = Yr(), s = mr(), D = lt.setImmediate, l = ee().defaults, r = function(E) {
3146
+ return typeof E == "object" && E != null && Object.keys(E).length === 0;
3147
+ }, e = function(E, b, O) {
3148
+ var I, g, p;
3149
+ for (I = 0, g = E.length; I < g; I++)
3150
+ p = E[I], b = p(b, O);
3151
+ return b;
3152
+ }, u = function(E, b, O) {
3153
+ var I;
3154
+ return I = /* @__PURE__ */ Object.create(null), I.value = O, I.writable = !0, I.enumerable = !0, I.configurable = !0, Object.defineProperty(E, b, I);
3155
+ }, n.Parser = function(E) {
3156
+ m(b, E);
3157
+ function b(O) {
3158
+ this.parseStringPromise = w(this.parseStringPromise, this), this.parseString = w(this.parseString, this), this.reset = w(this.reset, this), this.assignOrPush = w(this.assignOrPush, this), this.processAsync = w(this.processAsync, this);
3159
+ var I, g, p;
3160
+ if (!(this instanceof n.Parser))
3161
+ return new n.Parser(O);
3162
+ this.options = {}, g = l["0.2"];
3163
+ for (I in g)
3164
+ d.call(g, I) && (p = g[I], this.options[I] = p);
3165
+ for (I in O)
3166
+ d.call(O, I) && (p = O[I], this.options[I] = p);
3167
+ this.options.xmlns && (this.options.xmlnskey = this.options.attrkey + "ns"), this.options.normalizeTags && (this.options.tagNameProcessors || (this.options.tagNameProcessors = []), this.options.tagNameProcessors.unshift(s.normalize)), this.reset();
3168
+ }
3169
+ return b.prototype.processAsync = function() {
3170
+ var O, I;
3171
+ try {
3172
+ return this.remaining.length <= this.options.chunkSize ? (O = this.remaining, this.remaining = "", this.saxParser = this.saxParser.write(O), this.saxParser.close()) : (O = this.remaining.substr(0, this.options.chunkSize), this.remaining = this.remaining.substr(this.options.chunkSize, this.remaining.length), this.saxParser = this.saxParser.write(O), D(this.processAsync));
3173
+ } catch (g) {
3174
+ if (I = g, !this.saxParser.errThrown)
3175
+ return this.saxParser.errThrown = !0, this.emit(I);
3176
+ }
3177
+ }, b.prototype.assignOrPush = function(O, I, g) {
3178
+ return I in O ? (O[I] instanceof Array || u(O, I, [O[I]]), O[I].push(g)) : this.options.explicitArray ? u(O, I, [g]) : u(O, I, g);
3179
+ }, b.prototype.reset = function() {
3180
+ var O, I, g, p;
3181
+ return this.removeAllListeners(), this.saxParser = h.parser(this.options.strict, {
3182
+ trim: !1,
3183
+ normalize: !1,
3184
+ xmlns: this.options.xmlns
3185
+ }), this.saxParser.errThrown = !1, this.saxParser.onerror = /* @__PURE__ */ function(a) {
3186
+ return function(y) {
3187
+ if (a.saxParser.resume(), !a.saxParser.errThrown)
3188
+ return a.saxParser.errThrown = !0, a.emit("error", y);
3189
+ };
3190
+ }(this), this.saxParser.onend = /* @__PURE__ */ function(a) {
3191
+ return function() {
3192
+ if (!a.saxParser.ended)
3193
+ return a.saxParser.ended = !0, a.emit("end", a.resultObject);
3194
+ };
3195
+ }(this), this.saxParser.ended = !1, this.EXPLICIT_CHARKEY = this.options.explicitCharkey, this.resultObject = null, p = [], O = this.options.attrkey, I = this.options.charkey, this.saxParser.onopentag = /* @__PURE__ */ function(a) {
3196
+ return function(y) {
3197
+ var N, P, _, A, i;
3198
+ if (_ = {}, _[I] = "", !a.options.ignoreAttrs) {
3199
+ i = y.attributes;
3200
+ for (N in i)
3201
+ d.call(i, N) && (!(O in _) && !a.options.mergeAttrs && (_[O] = {}), P = a.options.attrValueProcessors ? e(a.options.attrValueProcessors, y.attributes[N], N) : y.attributes[N], A = a.options.attrNameProcessors ? e(a.options.attrNameProcessors, N) : N, a.options.mergeAttrs ? a.assignOrPush(_, A, P) : u(_[O], A, P));
3202
+ }
3203
+ return _["#name"] = a.options.tagNameProcessors ? e(a.options.tagNameProcessors, y.name) : y.name, a.options.xmlns && (_[a.options.xmlnskey] = {
3204
+ uri: y.uri,
3205
+ local: y.local
3206
+ }), p.push(_);
3207
+ };
3208
+ }(this), this.saxParser.onclosetag = /* @__PURE__ */ function(a) {
3209
+ return function() {
3210
+ var y, N, P, _, A, i, v, L, M, B;
3211
+ if (i = p.pop(), A = i["#name"], (!a.options.explicitChildren || !a.options.preserveChildrenOrder) && delete i["#name"], i.cdata === !0 && (y = i.cdata, delete i.cdata), M = p[p.length - 1], i[I].match(/^\s*$/) && !y ? (N = i[I], delete i[I]) : (a.options.trim && (i[I] = i[I].trim()), a.options.normalize && (i[I] = i[I].replace(/\s{2,}/g, " ").trim()), i[I] = a.options.valueProcessors ? e(a.options.valueProcessors, i[I], A) : i[I], Object.keys(i).length === 1 && I in i && !a.EXPLICIT_CHARKEY && (i = i[I])), r(i) && (typeof a.options.emptyTag == "function" ? i = a.options.emptyTag() : i = a.options.emptyTag !== "" ? a.options.emptyTag : N), a.options.validator != null && (B = "/" + function() {
3212
+ var q, V, K;
3213
+ for (K = [], q = 0, V = p.length; q < V; q++)
3214
+ _ = p[q], K.push(_["#name"]);
3215
+ return K;
3216
+ }().concat(A).join("/"), function() {
3217
+ var q;
3218
+ try {
3219
+ return i = a.options.validator(B, M && M[A], i);
3220
+ } catch (V) {
3221
+ return q = V, a.emit("error", q);
3222
+ }
3223
+ }()), a.options.explicitChildren && !a.options.mergeAttrs && typeof i == "object") {
3224
+ if (!a.options.preserveChildrenOrder)
3225
+ _ = {}, a.options.attrkey in i && (_[a.options.attrkey] = i[a.options.attrkey], delete i[a.options.attrkey]), !a.options.charsAsChildren && a.options.charkey in i && (_[a.options.charkey] = i[a.options.charkey], delete i[a.options.charkey]), Object.getOwnPropertyNames(i).length > 0 && (_[a.options.childkey] = i), i = _;
3226
+ else if (M) {
3227
+ M[a.options.childkey] = M[a.options.childkey] || [], v = {};
3228
+ for (P in i)
3229
+ d.call(i, P) && u(v, P, i[P]);
3230
+ M[a.options.childkey].push(v), delete i["#name"], Object.keys(i).length === 1 && I in i && !a.EXPLICIT_CHARKEY && (i = i[I]);
3231
+ }
3232
+ }
3233
+ return p.length > 0 ? a.assignOrPush(M, A, i) : (a.options.explicitRoot && (L = i, i = {}, u(i, A, L)), a.resultObject = i, a.saxParser.ended = !0, a.emit("end", a.resultObject));
3234
+ };
3235
+ }(this), g = /* @__PURE__ */ function(a) {
3236
+ return function(y) {
3237
+ var N, P;
3238
+ if (P = p[p.length - 1], P)
3239
+ return P[I] += y, a.options.explicitChildren && a.options.preserveChildrenOrder && a.options.charsAsChildren && (a.options.includeWhiteChars || y.replace(/\\n/g, "").trim() !== "") && (P[a.options.childkey] = P[a.options.childkey] || [], N = {
3240
+ "#name": "__text__"
3241
+ }, N[I] = y, a.options.normalize && (N[I] = N[I].replace(/\s{2,}/g, " ").trim()), P[a.options.childkey].push(N)), P;
3242
+ };
3243
+ }(this), this.saxParser.ontext = g, this.saxParser.oncdata = /* @__PURE__ */ function(a) {
3244
+ return function(y) {
3245
+ var N;
3246
+ if (N = g(y), N)
3247
+ return N.cdata = !0;
3248
+ };
3249
+ }();
3250
+ }, b.prototype.parseString = function(O, I) {
3251
+ var g;
3252
+ I != null && typeof I == "function" && (this.on("end", function(p) {
3253
+ return this.reset(), I(null, p);
3254
+ }), this.on("error", function(p) {
3255
+ return this.reset(), I(p);
3256
+ }));
3257
+ try {
3258
+ return O = O.toString(), O.trim() === "" ? (this.emit("end", null), !0) : (O = t.stripBOM(O), this.options.async ? (this.remaining = O, D(this.processAsync), this.saxParser) : this.saxParser.write(O).close());
3259
+ } catch (p) {
3260
+ if (g = p, this.saxParser.errThrown || this.saxParser.ended) {
3261
+ if (this.saxParser.ended)
3262
+ throw g;
3263
+ } else return this.emit("error", g), this.saxParser.errThrown = !0;
3264
+ }
3265
+ }, b.prototype.parseStringPromise = function(O) {
3266
+ return new Promise(/* @__PURE__ */ function(I) {
3267
+ return function(g, p) {
3268
+ return I.parseString(O, function(a, y) {
3269
+ return a ? p(a) : g(y);
3270
+ });
3271
+ };
3272
+ }(this));
3273
+ }, b;
3274
+ }(f), n.parseString = function(E, b, O) {
3275
+ var I, g, p;
3276
+ return O != null ? (typeof O == "function" && (I = O), typeof b == "object" && (g = b)) : (typeof b == "function" && (I = b), g = {}), p = new n.Parser(g), p.parseString(E, I);
3277
+ }, n.parseStringPromise = function(E, b) {
3278
+ var O, I;
3279
+ return typeof b == "object" && (O = b), I = new n.Parser(O), I.parseStringPromise(E);
3280
+ };
3281
+ }).call(X);
3282
+ }(Zt)), Zt;
3283
+ }
3284
+ (function() {
3285
+ var n, t, l, u = function(r, e) {
3286
+ for (var s in e)
3287
+ f.call(e, s) && (r[s] = e[s]);
3288
+ function h() {
3289
+ this.constructor = r;
3290
+ }
3291
+ return h.prototype = e.prototype, r.prototype = new h(), r.__super__ = e.prototype, r;
3292
+ }, f = {}.hasOwnProperty;
3293
+ t = ee(), n = kr(), l = Hr(), mr(), t.defaults, function(r) {
3294
+ u(e, r);
3295
+ function e(s) {
3296
+ this.message = s;
3297
+ }
3298
+ return e;
3299
+ }(Error), n.Builder, l.Parser, l.parseString, l.parseStringPromise;
3300
+ }).call(X);
3301
+ var ge = {
3302
+ isArray: function(n) {
3303
+ return Array.isArray ? Array.isArray(n) : Object.prototype.toString.call(n) === "[object Array]";
3304
+ }
3305
+ }, zr = ge.isArray, we = {
3306
+ copyOptions: function(n) {
3307
+ var t, l = {};
3308
+ for (t in n)
3309
+ n.hasOwnProperty(t) && (l[t] = n[t]);
3310
+ return l;
3311
+ },
3312
+ ensureFlagExists: function(n, t) {
3313
+ (!(n in t) || typeof t[n] != "boolean") && (t[n] = !1);
3314
+ },
3315
+ ensureSpacesExists: function(n) {
3316
+ (!("spaces" in n) || typeof n.spaces != "number" && typeof n.spaces != "string") && (n.spaces = 0);
3317
+ },
3318
+ ensureAlwaysArrayExists: function(n) {
3319
+ (!("alwaysArray" in n) || typeof n.alwaysArray != "boolean" && !zr(n.alwaysArray)) && (n.alwaysArray = !1);
3320
+ },
3321
+ ensureKeyExists: function(n, t) {
3322
+ (!(n + "Key" in t) || typeof t[n + "Key"] != "string") && (t[n + "Key"] = t.compact ? "_" + n : n);
3323
+ },
3324
+ checkFnExists: function(n, t) {
3325
+ return n + "Fn" in t;
3326
+ }
3327
+ }, Qr = me, S = we, at = ge.isArray, x, F;
3328
+ function $r(n) {
3329
+ return x = S.copyOptions(n), S.ensureFlagExists("ignoreDeclaration", x), S.ensureFlagExists("ignoreInstruction", x), S.ensureFlagExists("ignoreAttributes", x), S.ensureFlagExists("ignoreText", x), S.ensureFlagExists("ignoreComment", x), S.ensureFlagExists("ignoreCdata", x), S.ensureFlagExists("ignoreDoctype", x), S.ensureFlagExists("compact", x), S.ensureFlagExists("alwaysChildren", x), S.ensureFlagExists("addParent", x), S.ensureFlagExists("trim", x), S.ensureFlagExists("nativeType", x), S.ensureFlagExists("nativeTypeAttributes", x), S.ensureFlagExists("sanitize", x), S.ensureFlagExists("instructionHasAttributes", x), S.ensureFlagExists("captureSpacesBetweenElements", x), S.ensureAlwaysArrayExists(x), S.ensureKeyExists("declaration", x), S.ensureKeyExists("instruction", x), S.ensureKeyExists("attributes", x), S.ensureKeyExists("text", x), S.ensureKeyExists("comment", x), S.ensureKeyExists("cdata", x), S.ensureKeyExists("doctype", x), S.ensureKeyExists("type", x), S.ensureKeyExists("name", x), S.ensureKeyExists("elements", x), S.ensureKeyExists("parent", x), S.checkFnExists("doctype", x), S.checkFnExists("instruction", x), S.checkFnExists("cdata", x), S.checkFnExists("comment", x), S.checkFnExists("text", x), S.checkFnExists("instructionName", x), S.checkFnExists("elementName", x), S.checkFnExists("attributeName", x), S.checkFnExists("attributeValue", x), S.checkFnExists("attributes", x), x;
3330
+ }
3331
+ function gr(n) {
3332
+ var t = Number(n);
3333
+ if (!isNaN(t))
3334
+ return t;
3335
+ var l = n.toLowerCase();
3336
+ return l === "true" ? !0 : l === "false" ? !1 : n;
3337
+ }
3338
+ function ut(n, t) {
3339
+ var l;
3340
+ if (x.compact) {
3341
+ if (!F[x[n + "Key"]] && (at(x.alwaysArray) ? x.alwaysArray.indexOf(x[n + "Key"]) !== -1 : x.alwaysArray) && (F[x[n + "Key"]] = []), F[x[n + "Key"]] && !at(F[x[n + "Key"]]) && (F[x[n + "Key"]] = [F[x[n + "Key"]]]), n + "Fn" in x && typeof t == "string" && (t = x[n + "Fn"](t, F)), n === "instruction" && ("instructionFn" in x || "instructionNameFn" in x)) {
3342
+ for (l in t)
3343
+ if (t.hasOwnProperty(l))
3344
+ if ("instructionFn" in x)
3345
+ t[l] = x.instructionFn(t[l], l, F);
3346
+ else {
3347
+ var u = t[l];
3348
+ delete t[l], t[x.instructionNameFn(l, u, F)] = u;
3349
+ }
3350
+ }
3351
+ at(F[x[n + "Key"]]) ? F[x[n + "Key"]].push(t) : F[x[n + "Key"]] = t;
3352
+ } else {
3353
+ F[x.elementsKey] || (F[x.elementsKey] = []);
3354
+ var f = {};
3355
+ if (f[x.typeKey] = n, n === "instruction") {
3356
+ for (l in t)
3357
+ if (t.hasOwnProperty(l))
3358
+ break;
3359
+ f[x.nameKey] = "instructionNameFn" in x ? x.instructionNameFn(l, t, F) : l, x.instructionHasAttributes ? (f[x.attributesKey] = t[l][x.attributesKey], "instructionFn" in x && (f[x.attributesKey] = x.instructionFn(f[x.attributesKey], l, F))) : ("instructionFn" in x && (t[l] = x.instructionFn(t[l], l, F)), f[x.instructionKey] = t[l]);
3360
+ } else
3361
+ n + "Fn" in x && (t = x[n + "Fn"](t, F)), f[x[n + "Key"]] = t;
3362
+ x.addParent && (f[x.parentKey] = F), F[x.elementsKey].push(f);
3363
+ }
3364
+ }
3365
+ function wr(n) {
3366
+ if ("attributesFn" in x && n && (n = x.attributesFn(n, F)), (x.trim || "attributeValueFn" in x || "attributeNameFn" in x || x.nativeTypeAttributes) && n) {
3367
+ var t;
3368
+ for (t in n)
3369
+ if (n.hasOwnProperty(t) && (x.trim && (n[t] = n[t].trim()), x.nativeTypeAttributes && (n[t] = gr(n[t])), "attributeValueFn" in x && (n[t] = x.attributeValueFn(n[t], t, F)), "attributeNameFn" in x)) {
3370
+ var l = n[t];
3371
+ delete n[t], n[x.attributeNameFn(t, n[t], F)] = l;
3372
+ }
3373
+ }
3374
+ return n;
3375
+ }
3376
+ function Zr(n) {
3377
+ var t = {};
3378
+ if (n.body && (n.name.toLowerCase() === "xml" || x.instructionHasAttributes)) {
3379
+ for (var l = /([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g, u; (u = l.exec(n.body)) !== null; )
3380
+ t[u[1]] = u[2] || u[3] || u[4];
3381
+ t = wr(t);
3382
+ }
3383
+ if (n.name.toLowerCase() === "xml") {
3384
+ if (x.ignoreDeclaration)
3385
+ return;
3386
+ F[x.declarationKey] = {}, Object.keys(t).length && (F[x.declarationKey][x.attributesKey] = t), x.addParent && (F[x.declarationKey][x.parentKey] = F);
3387
+ } else {
3388
+ if (x.ignoreInstruction)
3389
+ return;
3390
+ x.trim && (n.body = n.body.trim());
3391
+ var f = {};
3392
+ x.instructionHasAttributes && Object.keys(t).length ? (f[n.name] = {}, f[n.name][x.attributesKey] = t) : f[n.name] = n.body, ut("instruction", f);
3393
+ }
3394
+ }
3395
+ function Jr(n, t) {
3396
+ var l;
3397
+ if (typeof n == "object" && (t = n.attributes, n = n.name), t = wr(t), "elementNameFn" in x && (n = x.elementNameFn(n, F)), x.compact) {
3398
+ if (l = {}, !x.ignoreAttributes && t && Object.keys(t).length) {
3399
+ l[x.attributesKey] = {};
3400
+ var u;
3401
+ for (u in t)
3402
+ t.hasOwnProperty(u) && (l[x.attributesKey][u] = t[u]);
3403
+ }
3404
+ !(n in F) && (at(x.alwaysArray) ? x.alwaysArray.indexOf(n) !== -1 : x.alwaysArray) && (F[n] = []), F[n] && !at(F[n]) && (F[n] = [F[n]]), at(F[n]) ? F[n].push(l) : F[n] = l;
3405
+ } else
3406
+ F[x.elementsKey] || (F[x.elementsKey] = []), l = {}, l[x.typeKey] = "element", l[x.nameKey] = n, !x.ignoreAttributes && t && Object.keys(t).length && (l[x.attributesKey] = t), x.alwaysChildren && (l[x.elementsKey] = []), F[x.elementsKey].push(l);
3407
+ l[x.parentKey] = F, F = l;
3408
+ }
3409
+ function tn(n) {
3410
+ x.ignoreText || !n.trim() && !x.captureSpacesBetweenElements || (x.trim && (n = n.trim()), x.nativeType && (n = gr(n)), x.sanitize && (n = n.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;")), ut("text", n));
3411
+ }
3412
+ function en(n) {
3413
+ x.ignoreComment || (x.trim && (n = n.trim()), ut("comment", n));
3414
+ }
3415
+ function rn(n) {
3416
+ var t = F[x.parentKey];
3417
+ x.addParent || delete F[x.parentKey], F = t;
3418
+ }
3419
+ function nn(n) {
3420
+ x.ignoreCdata || (x.trim && (n = n.trim()), ut("cdata", n));
3421
+ }
3422
+ function on(n) {
3423
+ x.ignoreDoctype || (n = n.replace(/^ /, ""), x.trim && (n = n.trim()), ut("doctype", n));
3424
+ }
3425
+ function sn(n) {
3426
+ n.note = n;
3427
+ }
3428
+ var Tr = function(n, t) {
3429
+ var l = Qr.parser(!0, {}), u = {};
3430
+ if (F = u, x = $r(t), l.opt = { strictEntities: !0 }, l.onopentag = Jr, l.ontext = tn, l.oncomment = en, l.onclosetag = rn, l.onerror = sn, l.oncdata = nn, l.ondoctype = on, l.onprocessinginstruction = Zr, l.write(n).close(), u[x.elementsKey]) {
3431
+ var f = u[x.elementsKey];
3432
+ delete u[x.elementsKey], u[x.elementsKey] = f, delete u.text;
3433
+ }
3434
+ return u;
3435
+ }, cr = we, an = Tr;
3436
+ function un(n) {
3437
+ var t = cr.copyOptions(n);
3438
+ return cr.ensureSpacesExists(t), t;
3439
+ }
3440
+ var cn = function(n, t) {
3441
+ var l, u, f, r;
3442
+ return l = un(t), u = an(n, l), r = "compact" in l && l.compact ? "_parent" : "parent", "addParent" in l && l.addParent ? f = JSON.stringify(u, function(e, s) {
3443
+ return e === r ? "_" : s;
3444
+ }, l.spaces) : f = JSON.stringify(u, null, l.spaces), f.replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029");
3445
+ }, R = we, ln = ge.isArray, H, z;
3446
+ function fn(n) {
3447
+ var t = R.copyOptions(n);
3448
+ return R.ensureFlagExists("ignoreDeclaration", t), R.ensureFlagExists("ignoreInstruction", t), R.ensureFlagExists("ignoreAttributes", t), R.ensureFlagExists("ignoreText", t), R.ensureFlagExists("ignoreComment", t), R.ensureFlagExists("ignoreCdata", t), R.ensureFlagExists("ignoreDoctype", t), R.ensureFlagExists("compact", t), R.ensureFlagExists("indentText", t), R.ensureFlagExists("indentCdata", t), R.ensureFlagExists("indentAttributes", t), R.ensureFlagExists("indentInstruction", t), R.ensureFlagExists("fullTagEmptyElement", t), R.ensureFlagExists("noQuotesForNativeAttributes", t), R.ensureSpacesExists(t), typeof t.spaces == "number" && (t.spaces = Array(t.spaces + 1).join(" ")), R.ensureKeyExists("declaration", t), R.ensureKeyExists("instruction", t), R.ensureKeyExists("attributes", t), R.ensureKeyExists("text", t), R.ensureKeyExists("comment", t), R.ensureKeyExists("cdata", t), R.ensureKeyExists("doctype", t), R.ensureKeyExists("type", t), R.ensureKeyExists("name", t), R.ensureKeyExists("elements", t), R.checkFnExists("doctype", t), R.checkFnExists("instruction", t), R.checkFnExists("cdata", t), R.checkFnExists("comment", t), R.checkFnExists("text", t), R.checkFnExists("instructionName", t), R.checkFnExists("elementName", t), R.checkFnExists("attributeName", t), R.checkFnExists("attributeValue", t), R.checkFnExists("attributes", t), R.checkFnExists("fullTagEmptyElement", t), t;
3449
+ }
3450
+ function J(n, t, l) {
3451
+ return (!l && n.spaces ? `
3452
+ ` : "") + Array(t + 1).join(n.spaces);
3453
+ }
3454
+ function pt(n, t, l) {
3455
+ if (t.ignoreAttributes)
3456
+ return "";
3457
+ "attributesFn" in t && (n = t.attributesFn(n, z, H));
3458
+ var u, f, r, e, s = [];
3459
+ for (u in n)
3460
+ n.hasOwnProperty(u) && n[u] !== null && n[u] !== void 0 && (e = t.noQuotesForNativeAttributes && typeof n[u] != "string" ? "" : '"', f = "" + n[u], f = f.replace(/"/g, "&quot;"), r = "attributeNameFn" in t ? t.attributeNameFn(u, f, z, H) : u, s.push(t.spaces && t.indentAttributes ? J(t, l + 1, !1) : " "), s.push(r + "=" + e + ("attributeValueFn" in t ? t.attributeValueFn(f, u, z, H) : f) + e));
3461
+ return n && Object.keys(n).length && t.spaces && t.indentAttributes && s.push(J(t, l, !1)), s.join("");
3462
+ }
3463
+ function Er(n, t, l) {
3464
+ return H = n, z = "xml", t.ignoreDeclaration ? "" : "<?xml" + pt(n[t.attributesKey], t, l) + "?>";
3465
+ }
3466
+ function Dr(n, t, l) {
3467
+ if (t.ignoreInstruction)
3468
+ return "";
3469
+ var u;
3470
+ for (u in n)
3471
+ if (n.hasOwnProperty(u))
3472
+ break;
3473
+ var f = "instructionNameFn" in t ? t.instructionNameFn(u, n[u], z, H) : u;
3474
+ if (typeof n[u] == "object")
3475
+ return H = n, z = f, "<?" + f + pt(n[u][t.attributesKey], t, l) + "?>";
3476
+ var r = n[u] ? n[u] : "";
3477
+ return "instructionFn" in t && (r = t.instructionFn(r, u, z, H)), "<?" + f + (r ? " " + r : "") + "?>";
3478
+ }
3479
+ function Nr(n, t) {
3480
+ return t.ignoreComment ? "" : "<!--" + ("commentFn" in t ? t.commentFn(n, z, H) : n) + "-->";
3481
+ }
3482
+ function br(n, t) {
3483
+ return t.ignoreCdata ? "" : "<![CDATA[" + ("cdataFn" in t ? t.cdataFn(n, z, H) : n.replace("]]>", "]]]]><![CDATA[>")) + "]]>";
3484
+ }
3485
+ function xr(n, t) {
3486
+ return t.ignoreDoctype ? "" : "<!DOCTYPE " + ("doctypeFn" in t ? t.doctypeFn(n, z, H) : n) + ">";
3487
+ }
3488
+ function Te(n, t) {
3489
+ return t.ignoreText ? "" : (n = "" + n, n = n.replace(/&amp;/g, "&"), n = n.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), "textFn" in t ? t.textFn(n, z, H) : n);
3490
+ }
3491
+ function hn(n, t) {
3492
+ var l;
3493
+ if (n.elements && n.elements.length)
3494
+ for (l = 0; l < n.elements.length; ++l)
3495
+ switch (n.elements[l][t.typeKey]) {
3496
+ case "text":
3497
+ if (t.indentText)
3498
+ return !0;
3499
+ break;
3500
+ case "cdata":
3501
+ if (t.indentCdata)
3502
+ return !0;
3503
+ break;
3504
+ case "instruction":
3505
+ if (t.indentInstruction)
3506
+ return !0;
3507
+ break;
3508
+ case "doctype":
3509
+ case "comment":
3510
+ case "element":
3511
+ return !0;
3512
+ default:
3513
+ return !0;
3514
+ }
3515
+ return !1;
3516
+ }
3517
+ function pn(n, t, l) {
3518
+ H = n, z = n.name;
3519
+ var u = [], f = "elementNameFn" in t ? t.elementNameFn(n.name, n) : n.name;
3520
+ u.push("<" + f), n[t.attributesKey] && u.push(pt(n[t.attributesKey], t, l));
3521
+ var r = n[t.elementsKey] && n[t.elementsKey].length || n[t.attributesKey] && n[t.attributesKey]["xml:space"] === "preserve";
3522
+ return r || ("fullTagEmptyElementFn" in t ? r = t.fullTagEmptyElementFn(n.name, n) : r = t.fullTagEmptyElement), r ? (u.push(">"), n[t.elementsKey] && n[t.elementsKey].length && (u.push(Or(n[t.elementsKey], t, l + 1)), H = n, z = n.name), u.push(t.spaces && hn(n, t) ? `
3523
+ ` + Array(l + 1).join(t.spaces) : ""), u.push("</" + f + ">")) : u.push("/>"), u.join("");
3524
+ }
3525
+ function Or(n, t, l, u) {
3526
+ return n.reduce(function(f, r) {
3527
+ var e = J(t, l, u && !f);
3528
+ switch (r.type) {
3529
+ case "element":
3530
+ return f + e + pn(r, t, l);
3531
+ case "comment":
3532
+ return f + e + Nr(r[t.commentKey], t);
3533
+ case "doctype":
3534
+ return f + e + xr(r[t.doctypeKey], t);
3535
+ case "cdata":
3536
+ return f + (t.indentCdata ? e : "") + br(r[t.cdataKey], t);
3537
+ case "text":
3538
+ return f + (t.indentText ? e : "") + Te(r[t.textKey], t);
3539
+ case "instruction":
3540
+ var s = {};
3541
+ return s[r[t.nameKey]] = r[t.attributesKey] ? r : r[t.instructionKey], f + (t.indentInstruction ? e : "") + Dr(s, t, l);
3542
+ }
3543
+ }, "");
3544
+ }
3545
+ function Ir(n, t, l) {
3546
+ var u;
3547
+ for (u in n)
3548
+ if (n.hasOwnProperty(u))
3549
+ switch (u) {
3550
+ case t.parentKey:
3551
+ case t.attributesKey:
3552
+ break;
3553
+ case t.textKey:
3554
+ if (t.indentText || l)
3555
+ return !0;
3556
+ break;
3557
+ case t.cdataKey:
3558
+ if (t.indentCdata || l)
3559
+ return !0;
3560
+ break;
3561
+ case t.instructionKey:
3562
+ if (t.indentInstruction || l)
3563
+ return !0;
3564
+ break;
3565
+ case t.doctypeKey:
3566
+ case t.commentKey:
3567
+ return !0;
3568
+ default:
3569
+ return !0;
3570
+ }
3571
+ return !1;
3572
+ }
3573
+ function dn(n, t, l, u, f) {
3574
+ H = n, z = t;
3575
+ var r = "elementNameFn" in l ? l.elementNameFn(t, n) : t;
3576
+ if (typeof n > "u" || n === null || n === "")
3577
+ return "fullTagEmptyElementFn" in l && l.fullTagEmptyElementFn(t, n) || l.fullTagEmptyElement ? "<" + r + "></" + r + ">" : "<" + r + "/>";
3578
+ var e = [];
3579
+ if (t) {
3580
+ if (e.push("<" + r), typeof n != "object")
3581
+ return e.push(">" + Te(n, l) + "</" + r + ">"), e.join("");
3582
+ n[l.attributesKey] && e.push(pt(n[l.attributesKey], l, u));
3583
+ var s = Ir(n, l, !0) || n[l.attributesKey] && n[l.attributesKey]["xml:space"] === "preserve";
3584
+ if (s || ("fullTagEmptyElementFn" in l ? s = l.fullTagEmptyElementFn(t, n) : s = l.fullTagEmptyElement), s)
3585
+ e.push(">");
3586
+ else
3587
+ return e.push("/>"), e.join("");
3588
+ }
3589
+ return e.push(vr(n, l, u + 1, !1)), H = n, z = t, t && e.push((f ? J(l, u, !1) : "") + "</" + r + ">"), e.join("");
3590
+ }
3591
+ function vr(n, t, l, u) {
3592
+ var f, r, e, s = [];
3593
+ for (r in n)
3594
+ if (n.hasOwnProperty(r))
3595
+ for (e = ln(n[r]) ? n[r] : [n[r]], f = 0; f < e.length; ++f) {
3596
+ switch (r) {
3597
+ case t.declarationKey:
3598
+ s.push(Er(e[f], t, l));
3599
+ break;
3600
+ case t.instructionKey:
3601
+ s.push((t.indentInstruction ? J(t, l, u) : "") + Dr(e[f], t, l));
3602
+ break;
3603
+ case t.attributesKey:
3604
+ case t.parentKey:
3605
+ break;
3606
+ case t.textKey:
3607
+ s.push((t.indentText ? J(t, l, u) : "") + Te(e[f], t));
3608
+ break;
3609
+ case t.cdataKey:
3610
+ s.push((t.indentCdata ? J(t, l, u) : "") + br(e[f], t));
3611
+ break;
3612
+ case t.doctypeKey:
3613
+ s.push(J(t, l, u) + xr(e[f], t));
3614
+ break;
3615
+ case t.commentKey:
3616
+ s.push(J(t, l, u) + Nr(e[f], t));
3617
+ break;
3618
+ default:
3619
+ s.push(J(t, l, u) + dn(e[f], r, t, l, Ir(e[f], t)));
3620
+ }
3621
+ u = u && !s.length;
3622
+ }
3623
+ return s.join("");
3624
+ }
3625
+ var Cr = function(n, t) {
3626
+ t = fn(t);
3627
+ var l = [];
3628
+ return H = n, z = "_root_", t.compact ? l.push(vr(n, t, 0, !0)) : (n[t.declarationKey] && l.push(Er(n[t.declarationKey], t, 0)), n[t.elementsKey] && n[t.elementsKey].length && l.push(Or(n[t.elementsKey], t, 0, !l.length))), l.join("");
3629
+ }, yn = Cr, mn = function(n, t) {
3630
+ n instanceof Buffer && (n = n.toString());
3631
+ var l = null;
3632
+ if (typeof n == "string")
3633
+ try {
3634
+ l = JSON.parse(n);
3635
+ } catch {
3636
+ throw new Error("The JSON structure is invalid");
3637
+ }
3638
+ else
3639
+ l = n;
3640
+ return yn(l, t);
3641
+ }, gn = Tr, wn = cn, Tn = Cr, En = mn, Dn = {
3642
+ xml2js: gn,
3643
+ xml2json: wn,
3644
+ js2xml: Tn,
3645
+ json2xml: En
3646
+ };
3647
+ const Nn = "/public/vfd/FDXX.vfdx", On = /* @__PURE__ */ Mr({
3648
+ __name: "index",
3649
+ setup(n) {
3650
+ return Fr({}), Sr.post({ url: Nn }, { withToken: !0 }).then((t) => {
3651
+ const l = t, u = Dn.xml2json(l, { compact: !0, spaces: 4 }), f = JSON.parse(u), { MySelect: r, MyUpdate: e, MyDelete: s, PageParamaterList: h, SingleControlList: D, Table: w } = f.WebFormConfig;
3652
+ debugger;
3653
+ }), (t, l) => " hahahha ";
3654
+ }
3655
+ });
3656
+ export {
3657
+ On as default
3658
+ };