form-imagining 0.0.82 → 0.0.83-2

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