substack-feed-api 1.0.5 → 1.0.10

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.
@@ -1,25 +1,25 @@
1
- function ur(i) {
1
+ function cr(i) {
2
2
  if (i.__esModule) return i;
3
- var c = i.default;
4
- if (typeof c == "function") {
5
- var D = function f() {
6
- return this instanceof f ? Reflect.construct(c, arguments, this.constructor) : c.apply(this, arguments);
3
+ var a = i.default;
4
+ if (typeof a == "function") {
5
+ var D = function p() {
6
+ return this instanceof p ? Reflect.construct(a, arguments, this.constructor) : a.apply(this, arguments);
7
7
  };
8
- D.prototype = c.prototype;
8
+ D.prototype = a.prototype;
9
9
  } else D = {};
10
- return Object.defineProperty(D, "__esModule", { value: !0 }), Object.keys(i).forEach(function(f) {
11
- var h = Object.getOwnPropertyDescriptor(i, f);
12
- Object.defineProperty(D, f, h.get ? h : {
10
+ return Object.defineProperty(D, "__esModule", { value: !0 }), Object.keys(i).forEach(function(p) {
11
+ var h = Object.getOwnPropertyDescriptor(i, p);
12
+ Object.defineProperty(D, p, h.get ? h : {
13
13
  enumerable: !0,
14
14
  get: function() {
15
- return i[f];
15
+ return i[p];
16
16
  }
17
17
  });
18
18
  }), D;
19
19
  }
20
- var G = {}, tt = {}, ce;
21
- function $t() {
22
- return ce || (ce = 1, (function() {
20
+ var G = {}, tt = {}, le;
21
+ function Wt() {
22
+ return le || (le = 1, (function() {
23
23
  tt.defaults = {
24
24
  "0.1": {
25
25
  explicitCharkey: !1,
@@ -91,10 +91,10 @@ function $t() {
91
91
  };
92
92
  }).call(tt)), tt;
93
93
  }
94
- var et = {}, Y = {}, K = {}, le;
94
+ var et = {}, Y = {}, K = {}, fe;
95
95
  function H() {
96
- return le || (le = 1, (function() {
97
- var i, c, D, f, h, t, e, o = [].slice, l = {}.hasOwnProperty;
96
+ return fe || (fe = 1, (function() {
97
+ var i, a, D, p, h, t, e, o = [].slice, l = {}.hasOwnProperty;
98
98
  i = function() {
99
99
  var b, m, y, d, g, O;
100
100
  if (O = arguments[0], g = 2 <= arguments.length ? o.call(arguments, 1) : [], h(Object.assign))
@@ -112,7 +112,7 @@ function H() {
112
112
  return !!b && ((m = typeof b) == "function" || m === "object");
113
113
  }, D = function(b) {
114
114
  return h(Array.isArray) ? Array.isArray(b) : Object.prototype.toString.call(b) === "[object Array]";
115
- }, f = function(b) {
115
+ }, p = function(b) {
116
116
  var m;
117
117
  if (D(b))
118
118
  return !b.length;
@@ -123,67 +123,67 @@ function H() {
123
123
  }, e = function(b) {
124
124
  var m, y;
125
125
  return t(b) && (y = Object.getPrototypeOf(b)) && (m = y.constructor) && typeof m == "function" && m instanceof m && Function.prototype.toString.call(m) === Function.prototype.toString.call(Object);
126
- }, c = function(b) {
126
+ }, a = function(b) {
127
127
  return h(b.valueOf) ? b.valueOf() : b;
128
- }, K.assign = i, K.isFunction = h, K.isObject = t, K.isArray = D, K.isEmpty = f, K.isPlainObject = e, K.getValue = c;
128
+ }, K.assign = i, K.isFunction = h, K.isObject = t, K.isArray = D, K.isEmpty = p, K.isPlainObject = e, K.getValue = a;
129
129
  }).call(K)), K;
130
130
  }
131
- var ot = { exports: {} }, ar = ot.exports, fe;
132
- function He() {
133
- return fe || (fe = 1, (function() {
131
+ var ot = { exports: {} }, lr = ot.exports, pe;
132
+ function Ze() {
133
+ return pe || (pe = 1, (function() {
134
134
  ot.exports = function() {
135
135
  function i() {
136
136
  }
137
- return i.prototype.hasFeature = function(c, D) {
137
+ return i.prototype.hasFeature = function(a, D) {
138
138
  return !0;
139
- }, i.prototype.createDocumentType = function(c, D, f) {
139
+ }, i.prototype.createDocumentType = function(a, D, p) {
140
140
  throw new Error("This DOM method is not implemented.");
141
- }, i.prototype.createDocument = function(c, D, f) {
141
+ }, i.prototype.createDocument = function(a, D, p) {
142
142
  throw new Error("This DOM method is not implemented.");
143
- }, i.prototype.createHTMLDocument = function(c) {
143
+ }, i.prototype.createHTMLDocument = function(a) {
144
144
  throw new Error("This DOM method is not implemented.");
145
- }, i.prototype.getFeature = function(c, D) {
145
+ }, i.prototype.getFeature = function(a, D) {
146
146
  throw new Error("This DOM method is not implemented.");
147
147
  }, i;
148
148
  }();
149
- }).call(ar)), ot.exports;
149
+ }).call(lr)), ot.exports;
150
150
  }
151
- var st = { exports: {} }, ut = { exports: {} }, at = { exports: {} }, cr = at.exports, pe;
152
- function lr() {
153
- return pe || (pe = 1, (function() {
151
+ var st = { exports: {} }, ut = { exports: {} }, at = { exports: {} }, fr = at.exports, he;
152
+ function pr() {
153
+ return he || (he = 1, (function() {
154
154
  at.exports = function() {
155
155
  function i() {
156
156
  }
157
- return i.prototype.handleError = function(c) {
158
- throw new Error(c);
157
+ return i.prototype.handleError = function(a) {
158
+ throw new Error(a);
159
159
  }, i;
160
160
  }();
161
- }).call(cr)), at.exports;
161
+ }).call(fr)), at.exports;
162
162
  }
163
- var ct = { exports: {} }, fr = ct.exports, he;
164
- function pr() {
165
- return he || (he = 1, (function() {
163
+ var ct = { exports: {} }, hr = ct.exports, de;
164
+ function dr() {
165
+ return de || (de = 1, (function() {
166
166
  ct.exports = function() {
167
- function i(c) {
168
- this.arr = c || [];
167
+ function i(a) {
168
+ this.arr = a || [];
169
169
  }
170
170
  return Object.defineProperty(i.prototype, "length", {
171
171
  get: function() {
172
172
  return this.arr.length;
173
173
  }
174
- }), i.prototype.item = function(c) {
175
- return this.arr[c] || null;
176
- }, i.prototype.contains = function(c) {
177
- return this.arr.indexOf(c) !== -1;
174
+ }), i.prototype.item = function(a) {
175
+ return this.arr[a] || null;
176
+ }, i.prototype.contains = function(a) {
177
+ return this.arr.indexOf(a) !== -1;
178
178
  }, i;
179
179
  }();
180
- }).call(fr)), ct.exports;
180
+ }).call(hr)), ct.exports;
181
181
  }
182
- var hr = ut.exports, de;
183
- function dr() {
184
- return de || (de = 1, (function() {
185
- var i, c;
186
- i = lr(), c = pr(), ut.exports = function() {
182
+ var yr = ut.exports, ye;
183
+ function mr() {
184
+ return ye || (ye = 1, (function() {
185
+ var i, a;
186
+ i = pr(), a = dr(), ut.exports = function() {
187
187
  function D() {
188
188
  this.defaultParams = {
189
189
  "canonical-form": !1,
@@ -207,21 +207,21 @@ function dr() {
207
207
  }
208
208
  return Object.defineProperty(D.prototype, "parameterNames", {
209
209
  get: function() {
210
- return new c(Object.keys(this.defaultParams));
210
+ return new a(Object.keys(this.defaultParams));
211
211
  }
212
- }), D.prototype.getParameter = function(f) {
213
- return this.params.hasOwnProperty(f) ? this.params[f] : null;
214
- }, D.prototype.canSetParameter = function(f, h) {
212
+ }), D.prototype.getParameter = function(p) {
213
+ return this.params.hasOwnProperty(p) ? this.params[p] : null;
214
+ }, D.prototype.canSetParameter = function(p, h) {
215
215
  return !0;
216
- }, D.prototype.setParameter = function(f, h) {
217
- return h != null ? this.params[f] = h : delete this.params[f];
216
+ }, D.prototype.setParameter = function(p, h) {
217
+ return h != null ? this.params[p] = h : delete this.params[p];
218
218
  }, D;
219
219
  }();
220
- }).call(hr)), ut.exports;
220
+ }).call(yr)), ut.exports;
221
221
  }
222
- var lt = { exports: {} }, ft = { exports: {} }, pt = { exports: {} }, yr = pt.exports, ye;
222
+ var lt = { exports: {} }, ft = { exports: {} }, pt = { exports: {} }, gr = pt.exports, me;
223
223
  function B() {
224
- return ye || (ye = 1, (function() {
224
+ return me || (me = 1, (function() {
225
225
  pt.exports = {
226
226
  Element: 1,
227
227
  Attribute: 2,
@@ -241,67 +241,67 @@ function B() {
241
241
  ElementDeclaration: 204,
242
242
  Dummy: 205
243
243
  };
244
- }).call(yr)), pt.exports;
244
+ }).call(gr)), pt.exports;
245
245
  }
246
- var ht = { exports: {} }, mr = ht.exports, me;
247
- function Qe() {
248
- return me || (me = 1, (function() {
246
+ var ht = { exports: {} }, wr = ht.exports, ge;
247
+ function Je() {
248
+ return ge || (ge = 1, (function() {
249
249
  var i;
250
250
  i = B(), W(), ht.exports = function() {
251
- function c(D, f, h) {
252
- if (this.parent = D, this.parent && (this.options = this.parent.options, this.stringify = this.parent.stringify), f == null)
253
- throw new Error("Missing attribute name. " + this.debugInfo(f));
254
- this.name = this.stringify.name(f), this.value = this.stringify.attValue(h), this.type = i.Attribute, this.isId = !1, this.schemaTypeInfo = null;
251
+ function a(D, p, h) {
252
+ if (this.parent = D, this.parent && (this.options = this.parent.options, this.stringify = this.parent.stringify), p == null)
253
+ throw new Error("Missing attribute name. " + this.debugInfo(p));
254
+ this.name = this.stringify.name(p), this.value = this.stringify.attValue(h), this.type = i.Attribute, this.isId = !1, this.schemaTypeInfo = null;
255
255
  }
256
- return Object.defineProperty(c.prototype, "nodeType", {
256
+ return Object.defineProperty(a.prototype, "nodeType", {
257
257
  get: function() {
258
258
  return this.type;
259
259
  }
260
- }), Object.defineProperty(c.prototype, "ownerElement", {
260
+ }), Object.defineProperty(a.prototype, "ownerElement", {
261
261
  get: function() {
262
262
  return this.parent;
263
263
  }
264
- }), Object.defineProperty(c.prototype, "textContent", {
264
+ }), Object.defineProperty(a.prototype, "textContent", {
265
265
  get: function() {
266
266
  return this.value;
267
267
  },
268
268
  set: function(D) {
269
269
  return this.value = D || "";
270
270
  }
271
- }), Object.defineProperty(c.prototype, "namespaceURI", {
271
+ }), Object.defineProperty(a.prototype, "namespaceURI", {
272
272
  get: function() {
273
273
  return "";
274
274
  }
275
- }), Object.defineProperty(c.prototype, "prefix", {
275
+ }), Object.defineProperty(a.prototype, "prefix", {
276
276
  get: function() {
277
277
  return "";
278
278
  }
279
- }), Object.defineProperty(c.prototype, "localName", {
279
+ }), Object.defineProperty(a.prototype, "localName", {
280
280
  get: function() {
281
281
  return this.name;
282
282
  }
283
- }), Object.defineProperty(c.prototype, "specified", {
283
+ }), Object.defineProperty(a.prototype, "specified", {
284
284
  get: function() {
285
285
  return !0;
286
286
  }
287
- }), c.prototype.clone = function() {
287
+ }), a.prototype.clone = function() {
288
288
  return Object.create(this);
289
- }, c.prototype.toString = function(D) {
289
+ }, a.prototype.toString = function(D) {
290
290
  return this.options.writer.attribute(this, this.options.writer.filterOptions(D));
291
- }, c.prototype.debugInfo = function(D) {
291
+ }, a.prototype.debugInfo = function(D) {
292
292
  return D = D || this.name, D == null ? "parent: <" + this.parent.name + ">" : "attribute: {" + D + "}, parent: <" + this.parent.name + ">";
293
- }, c.prototype.isEqualNode = function(D) {
293
+ }, a.prototype.isEqualNode = function(D) {
294
294
  return !(D.namespaceURI !== this.namespaceURI || D.prefix !== this.prefix || D.localName !== this.localName || D.value !== this.value);
295
- }, c;
295
+ }, a;
296
296
  }();
297
- }).call(mr)), ht.exports;
297
+ }).call(wr)), ht.exports;
298
298
  }
299
- var dt = { exports: {} }, gr = dt.exports, ge;
300
- function Wt() {
301
- return ge || (ge = 1, (function() {
299
+ var dt = { exports: {} }, Tr = dt.exports, we;
300
+ function Gt() {
301
+ return we || (we = 1, (function() {
302
302
  dt.exports = function() {
303
- function i(c) {
304
- this.nodes = c;
303
+ function i(a) {
304
+ this.nodes = a;
305
305
  }
306
306
  return Object.defineProperty(i.prototype, "length", {
307
307
  get: function() {
@@ -309,30 +309,30 @@ function Wt() {
309
309
  }
310
310
  }), i.prototype.clone = function() {
311
311
  return this.nodes = null;
312
- }, i.prototype.getNamedItem = function(c) {
313
- return this.nodes[c];
314
- }, i.prototype.setNamedItem = function(c) {
312
+ }, i.prototype.getNamedItem = function(a) {
313
+ return this.nodes[a];
314
+ }, i.prototype.setNamedItem = function(a) {
315
315
  var D;
316
- return D = this.nodes[c.nodeName], this.nodes[c.nodeName] = c, D || null;
317
- }, i.prototype.removeNamedItem = function(c) {
316
+ return D = this.nodes[a.nodeName], this.nodes[a.nodeName] = a, D || null;
317
+ }, i.prototype.removeNamedItem = function(a) {
318
318
  var D;
319
- return D = this.nodes[c], delete this.nodes[c], D || null;
320
- }, i.prototype.item = function(c) {
321
- return this.nodes[Object.keys(this.nodes)[c]] || null;
322
- }, i.prototype.getNamedItemNS = function(c, D) {
319
+ return D = this.nodes[a], delete this.nodes[a], D || null;
320
+ }, i.prototype.item = function(a) {
321
+ return this.nodes[Object.keys(this.nodes)[a]] || null;
322
+ }, i.prototype.getNamedItemNS = function(a, D) {
323
323
  throw new Error("This DOM method is not implemented.");
324
- }, i.prototype.setNamedItemNS = function(c) {
324
+ }, i.prototype.setNamedItemNS = function(a) {
325
325
  throw new Error("This DOM method is not implemented.");
326
- }, i.prototype.removeNamedItemNS = function(c, D) {
326
+ }, i.prototype.removeNamedItemNS = function(a, D) {
327
327
  throw new Error("This DOM method is not implemented.");
328
328
  }, i;
329
329
  }();
330
- }).call(gr)), dt.exports;
330
+ }).call(Tr)), dt.exports;
331
331
  }
332
- var wr = ft.exports, we;
333
- function Gt() {
334
- return we || (we = 1, (function() {
335
- var i, c, D, f, h, t, e, o, l = function(m, y) {
332
+ var Dr = ft.exports, Te;
333
+ function Yt() {
334
+ return Te || (Te = 1, (function() {
335
+ var i, a, D, p, h, t, e, o, l = function(m, y) {
336
336
  for (var d in y)
337
337
  b.call(y, d) && (m[d] = y[d]);
338
338
  function g() {
@@ -340,7 +340,7 @@ function Gt() {
340
340
  }
341
341
  return g.prototype = y.prototype, m.prototype = new g(), m.__super__ = y.prototype, m;
342
342
  }, b = {}.hasOwnProperty;
343
- o = H(), e = o.isObject, t = o.isFunction, h = o.getValue, f = W(), i = B(), c = Qe(), D = Wt(), ft.exports = function(m) {
343
+ o = H(), e = o.isObject, t = o.isFunction, h = o.getValue, p = W(), i = B(), a = Je(), D = Gt(), ft.exports = function(m) {
344
344
  l(y, m);
345
345
  function y(d, g, O) {
346
346
  var I, x, P, E;
@@ -401,7 +401,7 @@ function Gt() {
401
401
  for (O in d)
402
402
  b.call(d, O) && (I = d[O], this.attribute(O, I));
403
403
  else
404
- t(g) && (g = g.apply()), this.options.keepNullAttributes && g == null ? this.attribs[d] = new c(this, d, "") : g != null && (this.attribs[d] = new c(this, d, g));
404
+ t(g) && (g = g.apply()), this.options.keepNullAttributes && g == null ? this.attribs[d] = new a(this, d, "") : g != null && (this.attribs[d] = new a(this, d, g));
405
405
  return this;
406
406
  }, y.prototype.removeAttribute = function(d) {
407
407
  var g, O, I;
@@ -468,22 +468,22 @@ function Gt() {
468
468
  return !1;
469
469
  return !0;
470
470
  }, y;
471
- }(f);
472
- }).call(wr)), ft.exports;
471
+ }(p);
472
+ }).call(Dr)), ft.exports;
473
473
  }
474
- var yt = { exports: {} }, mt = { exports: {} }, Tr = mt.exports, Te;
474
+ var yt = { exports: {} }, mt = { exports: {} }, Er = mt.exports, De;
475
475
  function Ft() {
476
- return Te || (Te = 1, (function() {
477
- var i, c = function(f, h) {
476
+ return De || (De = 1, (function() {
477
+ var i, a = function(p, h) {
478
478
  for (var t in h)
479
- D.call(h, t) && (f[t] = h[t]);
479
+ D.call(h, t) && (p[t] = h[t]);
480
480
  function e() {
481
- this.constructor = f;
481
+ this.constructor = p;
482
482
  }
483
- return e.prototype = h.prototype, f.prototype = new e(), f.__super__ = h.prototype, f;
483
+ return e.prototype = h.prototype, p.prototype = new e(), p.__super__ = h.prototype, p;
484
484
  }, D = {}.hasOwnProperty;
485
- i = W(), mt.exports = function(f) {
486
- c(h, f);
485
+ i = W(), mt.exports = function(p) {
486
+ a(h, p);
487
487
  function h(t) {
488
488
  h.__super__.constructor.call(this, t), this.value = "";
489
489
  }
@@ -521,20 +521,20 @@ function Ft() {
521
521
  return !(!h.__super__.isEqualNode.apply(this, arguments).isEqualNode(t) || t.data !== this.data);
522
522
  }, h;
523
523
  }(i);
524
- }).call(Tr)), mt.exports;
524
+ }).call(Er)), mt.exports;
525
525
  }
526
- var Dr = yt.exports, De;
527
- function Yt() {
528
- return De || (De = 1, (function() {
529
- var i, c, D = function(h, t) {
526
+ var br = yt.exports, Ee;
527
+ function Kt() {
528
+ return Ee || (Ee = 1, (function() {
529
+ var i, a, D = function(h, t) {
530
530
  for (var e in t)
531
- f.call(t, e) && (h[e] = t[e]);
531
+ p.call(t, e) && (h[e] = t[e]);
532
532
  function o() {
533
533
  this.constructor = h;
534
534
  }
535
535
  return o.prototype = t.prototype, h.prototype = new o(), h.__super__ = t.prototype, h;
536
- }, f = {}.hasOwnProperty;
537
- i = B(), c = Ft(), yt.exports = function(h) {
536
+ }, p = {}.hasOwnProperty;
537
+ i = B(), a = Ft(), yt.exports = function(h) {
538
538
  D(t, h);
539
539
  function t(e, o) {
540
540
  if (t.__super__.constructor.call(this, e), o == null)
@@ -546,21 +546,21 @@ function Yt() {
546
546
  }, t.prototype.toString = function(e) {
547
547
  return this.options.writer.cdata(this, this.options.writer.filterOptions(e));
548
548
  }, t;
549
- }(c);
550
- }).call(Dr)), yt.exports;
549
+ }(a);
550
+ }).call(br)), yt.exports;
551
551
  }
552
- var gt = { exports: {} }, Er = gt.exports, Ee;
553
- function Kt() {
554
- return Ee || (Ee = 1, (function() {
555
- var i, c, D = function(h, t) {
552
+ var gt = { exports: {} }, Or = gt.exports, be;
553
+ function zt() {
554
+ return be || (be = 1, (function() {
555
+ var i, a, D = function(h, t) {
556
556
  for (var e in t)
557
- f.call(t, e) && (h[e] = t[e]);
557
+ p.call(t, e) && (h[e] = t[e]);
558
558
  function o() {
559
559
  this.constructor = h;
560
560
  }
561
561
  return o.prototype = t.prototype, h.prototype = new o(), h.__super__ = t.prototype, h;
562
- }, f = {}.hasOwnProperty;
563
- i = B(), c = Ft(), gt.exports = function(h) {
562
+ }, p = {}.hasOwnProperty;
563
+ i = B(), a = Ft(), gt.exports = function(h) {
564
564
  D(t, h);
565
565
  function t(e, o) {
566
566
  if (t.__super__.constructor.call(this, e), o == null)
@@ -572,13 +572,13 @@ function Kt() {
572
572
  }, t.prototype.toString = function(e) {
573
573
  return this.options.writer.comment(this, this.options.writer.filterOptions(e));
574
574
  }, t;
575
- }(c);
576
- }).call(Er)), gt.exports;
575
+ }(a);
576
+ }).call(Or)), gt.exports;
577
577
  }
578
- var wt = { exports: {} }, br = wt.exports, be;
579
- function zt() {
580
- return be || (be = 1, (function() {
581
- var i, c, D, f = function(t, e) {
578
+ var wt = { exports: {} }, Nr = wt.exports, Oe;
579
+ function Ht() {
580
+ return Oe || (Oe = 1, (function() {
581
+ var i, a, D, p = function(t, e) {
582
582
  for (var o in e)
583
583
  h.call(e, o) && (t[o] = e[o]);
584
584
  function l() {
@@ -586,8 +586,8 @@ function zt() {
586
586
  }
587
587
  return l.prototype = e.prototype, t.prototype = new l(), t.__super__ = e.prototype, t;
588
588
  }, h = {}.hasOwnProperty;
589
- D = H().isObject, c = W(), i = B(), wt.exports = function(t) {
590
- f(e, t);
589
+ D = H().isObject, a = W(), i = B(), wt.exports = function(t) {
590
+ p(e, t);
591
591
  function e(o, l, b, m) {
592
592
  var y;
593
593
  e.__super__.constructor.call(this, o), D(l) && (y = l, l = y.version, b = y.encoding, m = y.standalone), l || (l = "1.0"), this.type = i.Declaration, this.version = this.stringify.xmlVersion(l), b != null && (this.encoding = this.stringify.xmlEncoding(b)), m != null && (this.standalone = this.stringify.xmlStandalone(m));
@@ -595,21 +595,21 @@ function zt() {
595
595
  return e.prototype.toString = function(o) {
596
596
  return this.options.writer.declaration(this, this.options.writer.filterOptions(o));
597
597
  }, e;
598
- }(c);
599
- }).call(br)), wt.exports;
598
+ }(a);
599
+ }).call(Nr)), wt.exports;
600
600
  }
601
- var Tt = { exports: {} }, Dt = { exports: {} }, Or = Dt.exports, Oe;
602
- function Ht() {
603
- return Oe || (Oe = 1, (function() {
604
- var i, c, D = function(h, t) {
601
+ var Tt = { exports: {} }, Dt = { exports: {} }, vr = Dt.exports, Ne;
602
+ function Qt() {
603
+ return Ne || (Ne = 1, (function() {
604
+ var i, a, D = function(h, t) {
605
605
  for (var e in t)
606
- f.call(t, e) && (h[e] = t[e]);
606
+ p.call(t, e) && (h[e] = t[e]);
607
607
  function o() {
608
608
  this.constructor = h;
609
609
  }
610
610
  return o.prototype = t.prototype, h.prototype = new o(), h.__super__ = t.prototype, h;
611
- }, f = {}.hasOwnProperty;
612
- c = W(), i = B(), Dt.exports = function(h) {
611
+ }, p = {}.hasOwnProperty;
612
+ a = W(), i = B(), Dt.exports = function(h) {
613
613
  D(t, h);
614
614
  function t(e, o, l, b, m, y) {
615
615
  if (t.__super__.constructor.call(this, e), o == null)
@@ -629,13 +629,13 @@ function Ht() {
629
629
  return t.prototype.toString = function(e) {
630
630
  return this.options.writer.dtdAttList(this, this.options.writer.filterOptions(e));
631
631
  }, t;
632
- }(c);
633
- }).call(Or)), Dt.exports;
632
+ }(a);
633
+ }).call(vr)), Dt.exports;
634
634
  }
635
- var Et = { exports: {} }, Nr = Et.exports, Ne;
636
- function Qt() {
637
- return Ne || (Ne = 1, (function() {
638
- var i, c, D, f = function(t, e) {
635
+ var Et = { exports: {} }, Lr = Et.exports, ve;
636
+ function Zt() {
637
+ return ve || (ve = 1, (function() {
638
+ var i, a, D, p = function(t, e) {
639
639
  for (var o in e)
640
640
  h.call(e, o) && (t[o] = e[o]);
641
641
  function l() {
@@ -643,8 +643,8 @@ function Qt() {
643
643
  }
644
644
  return l.prototype = e.prototype, t.prototype = new l(), t.__super__ = e.prototype, t;
645
645
  }, h = {}.hasOwnProperty;
646
- D = H().isObject, c = W(), i = B(), Et.exports = function(t) {
647
- f(e, t);
646
+ D = H().isObject, a = W(), i = B(), Et.exports = function(t) {
647
+ p(e, t);
648
648
  function e(o, l, b, m) {
649
649
  if (e.__super__.constructor.call(this, o), b == null)
650
650
  throw new Error("Missing DTD entity name. " + this.debugInfo(b));
@@ -688,21 +688,21 @@ function Qt() {
688
688
  }), e.prototype.toString = function(o) {
689
689
  return this.options.writer.dtdEntity(this, this.options.writer.filterOptions(o));
690
690
  }, e;
691
- }(c);
692
- }).call(Nr)), Et.exports;
691
+ }(a);
692
+ }).call(Lr)), Et.exports;
693
693
  }
694
- var bt = { exports: {} }, vr = bt.exports, ve;
695
- function Zt() {
696
- return ve || (ve = 1, (function() {
697
- var i, c, D = function(h, t) {
694
+ var bt = { exports: {} }, Ir = bt.exports, Le;
695
+ function Jt() {
696
+ return Le || (Le = 1, (function() {
697
+ var i, a, D = function(h, t) {
698
698
  for (var e in t)
699
- f.call(t, e) && (h[e] = t[e]);
699
+ p.call(t, e) && (h[e] = t[e]);
700
700
  function o() {
701
701
  this.constructor = h;
702
702
  }
703
703
  return o.prototype = t.prototype, h.prototype = new o(), h.__super__ = t.prototype, h;
704
- }, f = {}.hasOwnProperty;
705
- c = W(), i = B(), bt.exports = function(h) {
704
+ }, p = {}.hasOwnProperty;
705
+ a = W(), i = B(), bt.exports = function(h) {
706
706
  D(t, h);
707
707
  function t(e, o, l) {
708
708
  if (t.__super__.constructor.call(this, e), o == null)
@@ -712,21 +712,21 @@ function Zt() {
712
712
  return t.prototype.toString = function(e) {
713
713
  return this.options.writer.dtdElement(this, this.options.writer.filterOptions(e));
714
714
  }, t;
715
- }(c);
716
- }).call(vr)), bt.exports;
715
+ }(a);
716
+ }).call(Ir)), bt.exports;
717
717
  }
718
- var Ot = { exports: {} }, Lr = Ot.exports, Le;
719
- function Jt() {
720
- return Le || (Le = 1, (function() {
721
- var i, c, D = function(h, t) {
718
+ var Ot = { exports: {} }, xr = Ot.exports, Ie;
719
+ function te() {
720
+ return Ie || (Ie = 1, (function() {
721
+ var i, a, D = function(h, t) {
722
722
  for (var e in t)
723
- f.call(t, e) && (h[e] = t[e]);
723
+ p.call(t, e) && (h[e] = t[e]);
724
724
  function o() {
725
725
  this.constructor = h;
726
726
  }
727
727
  return o.prototype = t.prototype, h.prototype = new o(), h.__super__ = t.prototype, h;
728
- }, f = {}.hasOwnProperty;
729
- c = W(), i = B(), Ot.exports = function(h) {
728
+ }, p = {}.hasOwnProperty;
729
+ a = W(), i = B(), Ot.exports = function(h) {
730
730
  D(t, h);
731
731
  function t(e, o, l) {
732
732
  if (t.__super__.constructor.call(this, e), o == null)
@@ -746,13 +746,13 @@ function Jt() {
746
746
  }), t.prototype.toString = function(e) {
747
747
  return this.options.writer.dtdNotation(this, this.options.writer.filterOptions(e));
748
748
  }, t;
749
- }(c);
750
- }).call(Lr)), Ot.exports;
749
+ }(a);
750
+ }).call(xr)), Ot.exports;
751
751
  }
752
- var Ir = Tt.exports, Ie;
753
- function te() {
754
- return Ie || (Ie = 1, (function() {
755
- var i, c, D, f, h, t, e, o, l = function(m, y) {
752
+ var Ar = Tt.exports, xe;
753
+ function ee() {
754
+ return xe || (xe = 1, (function() {
755
+ var i, a, D, p, h, t, e, o, l = function(m, y) {
756
756
  for (var d in y)
757
757
  b.call(y, d) && (m[d] = y[d]);
758
758
  function g() {
@@ -760,10 +760,10 @@ function te() {
760
760
  }
761
761
  return g.prototype = y.prototype, m.prototype = new g(), m.__super__ = y.prototype, m;
762
762
  }, b = {}.hasOwnProperty;
763
- o = H().isObject, e = W(), i = B(), c = Ht(), f = Qt(), D = Zt(), h = Jt(), t = Wt(), Tt.exports = function(m) {
763
+ o = H().isObject, e = W(), i = B(), a = Qt(), p = Zt(), D = Jt(), h = te(), t = Gt(), Tt.exports = function(m) {
764
764
  l(y, m);
765
765
  function y(d, g, O) {
766
- var I, x, P, E, s, a;
766
+ var I, x, P, E, s, c;
767
767
  if (y.__super__.constructor.call(this, d), this.type = i.DocType, d.children) {
768
768
  for (E = d.children, x = 0, P = E.length; x < P; x++)
769
769
  if (I = E[x], I.type === i.Element) {
@@ -771,7 +771,7 @@ function te() {
771
771
  break;
772
772
  }
773
773
  }
774
- this.documentObject = d, o(g) && (s = g, g = s.pubID, O = s.sysID), O == null && (a = [g, O], O = a[0], g = a[1]), g != null && (this.pubID = this.stringify.dtdPubID(g)), O != null && (this.sysID = this.stringify.dtdSysID(O));
774
+ this.documentObject = d, o(g) && (s = g, g = s.pubID, O = s.sysID), O == null && (c = [g, O], O = c[0], g = c[1]), g != null && (this.pubID = this.stringify.dtdPubID(g)), O != null && (this.sysID = this.stringify.dtdSysID(O));
775
775
  }
776
776
  return Object.defineProperty(y.prototype, "entities", {
777
777
  get: function() {
@@ -804,13 +804,13 @@ function te() {
804
804
  return O = new D(this, d, g), this.children.push(O), this;
805
805
  }, y.prototype.attList = function(d, g, O, I, x) {
806
806
  var P;
807
- return P = new c(this, d, g, O, I, x), this.children.push(P), this;
807
+ return P = new a(this, d, g, O, I, x), this.children.push(P), this;
808
808
  }, y.prototype.entity = function(d, g) {
809
809
  var O;
810
- return O = new f(this, !1, d, g), this.children.push(O), this;
810
+ return O = new p(this, !1, d, g), this.children.push(O), this;
811
811
  }, y.prototype.pEntity = function(d, g) {
812
812
  var O;
813
- return O = new f(this, !0, d, g), this.children.push(O), this;
813
+ return O = new p(this, !0, d, g), this.children.push(O), this;
814
814
  }, y.prototype.notation = function(d, g) {
815
815
  var O;
816
816
  return O = new h(this, d, g), this.children.push(O), this;
@@ -832,20 +832,20 @@ function te() {
832
832
  return !(!y.__super__.isEqualNode.apply(this, arguments).isEqualNode(d) || d.name !== this.name || d.publicId !== this.publicId || d.systemId !== this.systemId);
833
833
  }, y;
834
834
  }(e);
835
- }).call(Ir)), Tt.exports;
835
+ }).call(Ar)), Tt.exports;
836
836
  }
837
- var Nt = { exports: {} }, xr = Nt.exports, xe;
838
- function ee() {
839
- return xe || (xe = 1, (function() {
840
- var i, c, D = function(h, t) {
837
+ var Nt = { exports: {} }, Mr = Nt.exports, Ae;
838
+ function re() {
839
+ return Ae || (Ae = 1, (function() {
840
+ var i, a, D = function(h, t) {
841
841
  for (var e in t)
842
- f.call(t, e) && (h[e] = t[e]);
842
+ p.call(t, e) && (h[e] = t[e]);
843
843
  function o() {
844
844
  this.constructor = h;
845
845
  }
846
846
  return o.prototype = t.prototype, h.prototype = new o(), h.__super__ = t.prototype, h;
847
- }, f = {}.hasOwnProperty;
848
- i = B(), c = W(), Nt.exports = function(h) {
847
+ }, p = {}.hasOwnProperty;
848
+ i = B(), a = W(), Nt.exports = function(h) {
849
849
  D(t, h);
850
850
  function t(e, o) {
851
851
  if (t.__super__.constructor.call(this, e), o == null)
@@ -857,21 +857,21 @@ function ee() {
857
857
  }, t.prototype.toString = function(e) {
858
858
  return this.options.writer.raw(this, this.options.writer.filterOptions(e));
859
859
  }, t;
860
- }(c);
861
- }).call(xr)), Nt.exports;
860
+ }(a);
861
+ }).call(Mr)), Nt.exports;
862
862
  }
863
- var vt = { exports: {} }, Ar = vt.exports, Ae;
864
- function re() {
865
- return Ae || (Ae = 1, (function() {
866
- var i, c, D = function(h, t) {
863
+ var vt = { exports: {} }, Pr = vt.exports, Me;
864
+ function ne() {
865
+ return Me || (Me = 1, (function() {
866
+ var i, a, D = function(h, t) {
867
867
  for (var e in t)
868
- f.call(t, e) && (h[e] = t[e]);
868
+ p.call(t, e) && (h[e] = t[e]);
869
869
  function o() {
870
870
  this.constructor = h;
871
871
  }
872
872
  return o.prototype = t.prototype, h.prototype = new o(), h.__super__ = t.prototype, h;
873
- }, f = {}.hasOwnProperty;
874
- i = B(), c = Ft(), vt.exports = function(h) {
873
+ }, p = {}.hasOwnProperty;
874
+ i = B(), a = Ft(), vt.exports = function(h) {
875
875
  D(t, h);
876
876
  function t(e, o) {
877
877
  if (t.__super__.constructor.call(this, e), o == null)
@@ -900,21 +900,21 @@ function re() {
900
900
  }, t.prototype.replaceWholeText = function(e) {
901
901
  throw new Error("This DOM method is not implemented." + this.debugInfo());
902
902
  }, t;
903
- }(c);
904
- }).call(Ar)), vt.exports;
903
+ }(a);
904
+ }).call(Pr)), vt.exports;
905
905
  }
906
- var Lt = { exports: {} }, Mr = Lt.exports, Me;
907
- function ne() {
908
- return Me || (Me = 1, (function() {
909
- var i, c, D = function(h, t) {
906
+ var Lt = { exports: {} }, _r = Lt.exports, Pe;
907
+ function ie() {
908
+ return Pe || (Pe = 1, (function() {
909
+ var i, a, D = function(h, t) {
910
910
  for (var e in t)
911
- f.call(t, e) && (h[e] = t[e]);
911
+ p.call(t, e) && (h[e] = t[e]);
912
912
  function o() {
913
913
  this.constructor = h;
914
914
  }
915
915
  return o.prototype = t.prototype, h.prototype = new o(), h.__super__ = t.prototype, h;
916
- }, f = {}.hasOwnProperty;
917
- i = B(), c = Ft(), Lt.exports = function(h) {
916
+ }, p = {}.hasOwnProperty;
917
+ i = B(), a = Ft(), Lt.exports = function(h) {
918
918
  D(t, h);
919
919
  function t(e, o, l) {
920
920
  if (t.__super__.constructor.call(this, e), o == null)
@@ -928,21 +928,21 @@ function ne() {
928
928
  }, t.prototype.isEqualNode = function(e) {
929
929
  return !(!t.__super__.isEqualNode.apply(this, arguments).isEqualNode(e) || e.target !== this.target);
930
930
  }, t;
931
- }(c);
932
- }).call(Mr)), Lt.exports;
931
+ }(a);
932
+ }).call(_r)), Lt.exports;
933
933
  }
934
- var It = { exports: {} }, Pr = It.exports, Pe;
935
- function Ze() {
936
- return Pe || (Pe = 1, (function() {
937
- var i, c, D = function(h, t) {
934
+ var It = { exports: {} }, Cr = It.exports, _e;
935
+ function tr() {
936
+ return _e || (_e = 1, (function() {
937
+ var i, a, D = function(h, t) {
938
938
  for (var e in t)
939
- f.call(t, e) && (h[e] = t[e]);
939
+ p.call(t, e) && (h[e] = t[e]);
940
940
  function o() {
941
941
  this.constructor = h;
942
942
  }
943
943
  return o.prototype = t.prototype, h.prototype = new o(), h.__super__ = t.prototype, h;
944
- }, f = {}.hasOwnProperty;
945
- c = W(), i = B(), It.exports = function(h) {
944
+ }, p = {}.hasOwnProperty;
945
+ a = W(), i = B(), It.exports = function(h) {
946
946
  D(t, h);
947
947
  function t(e) {
948
948
  t.__super__.constructor.call(this, e), this.type = i.Dummy;
@@ -952,15 +952,15 @@ function Ze() {
952
952
  }, t.prototype.toString = function(e) {
953
953
  return "";
954
954
  }, t;
955
- }(c);
956
- }).call(Pr)), It.exports;
955
+ }(a);
956
+ }).call(Cr)), It.exports;
957
957
  }
958
- var xt = { exports: {} }, _r = xt.exports, _e;
959
- function Cr() {
960
- return _e || (_e = 1, (function() {
958
+ var xt = { exports: {} }, Sr = xt.exports, Ce;
959
+ function Xr() {
960
+ return Ce || (Ce = 1, (function() {
961
961
  xt.exports = function() {
962
- function i(c) {
963
- this.nodes = c;
962
+ function i(a) {
963
+ this.nodes = a;
964
964
  }
965
965
  return Object.defineProperty(i.prototype, "length", {
966
966
  get: function() {
@@ -968,15 +968,15 @@ function Cr() {
968
968
  }
969
969
  }), i.prototype.clone = function() {
970
970
  return this.nodes = null;
971
- }, i.prototype.item = function(c) {
972
- return this.nodes[c] || null;
971
+ }, i.prototype.item = function(a) {
972
+ return this.nodes[a] || null;
973
973
  }, i;
974
974
  }();
975
- }).call(_r)), xt.exports;
975
+ }).call(Sr)), xt.exports;
976
976
  }
977
- var At = { exports: {} }, Sr = At.exports, Ce;
978
- function Xr() {
979
- return Ce || (Ce = 1, (function() {
977
+ var At = { exports: {} }, Fr = At.exports, Se;
978
+ function Rr() {
979
+ return Se || (Se = 1, (function() {
980
980
  At.exports = {
981
981
  Disconnected: 1,
982
982
  Preceding: 2,
@@ -985,15 +985,15 @@ function Xr() {
985
985
  ContainedBy: 16,
986
986
  ImplementationSpecific: 32
987
987
  };
988
- }).call(Sr)), At.exports;
988
+ }).call(Fr)), At.exports;
989
989
  }
990
- var Fr = lt.exports, Se;
990
+ var jr = lt.exports, Xe;
991
991
  function W() {
992
- return Se || (Se = 1, (function() {
993
- var i, c, D, f, h, t, e, o, l, b, m, y, d, g, O, I, x, P = {}.hasOwnProperty;
994
- x = H(), I = x.isObject, O = x.isFunction, g = x.isEmpty, d = x.getValue, o = null, D = null, f = null, h = null, t = null, m = null, y = null, b = null, e = null, c = null, l = null, i = null, lt.exports = function() {
992
+ return Xe || (Xe = 1, (function() {
993
+ var i, a, D, p, h, t, e, o, l, b, m, y, d, g, O, I, x, P = {}.hasOwnProperty;
994
+ x = H(), I = x.isObject, O = x.isFunction, g = x.isEmpty, d = x.getValue, o = null, D = null, p = null, h = null, t = null, m = null, y = null, b = null, e = null, a = null, l = null, i = null, lt.exports = function() {
995
995
  function E(s) {
996
- this.parent = s, this.parent && (this.options = this.parent.options, this.stringify = this.parent.stringify), this.value = null, this.children = [], this.baseURI = null, o || (o = Gt(), D = Yt(), f = Kt(), h = zt(), t = te(), m = ee(), y = re(), b = ne(), e = Ze(), c = B(), l = Cr(), Wt(), i = Xr());
996
+ this.parent = s, this.parent && (this.options = this.parent.options, this.stringify = this.parent.stringify), this.value = null, this.children = [], this.baseURI = null, o || (o = Yt(), D = Kt(), p = zt(), h = Ht(), t = ee(), m = re(), y = ne(), b = ie(), e = tr(), a = B(), l = Xr(), Gt(), i = Rr());
997
997
  }
998
998
  return Object.defineProperty(E.prototype, "nodeName", {
999
999
  get: function() {
@@ -1039,10 +1039,10 @@ function W() {
1039
1039
  }
1040
1040
  }), Object.defineProperty(E.prototype, "textContent", {
1041
1041
  get: function() {
1042
- var s, a, p, T, L;
1043
- if (this.nodeType === c.Element || this.nodeType === c.DocumentFragment) {
1044
- for (L = "", T = this.children, a = 0, p = T.length; a < p; a++)
1045
- s = T[a], s.textContent && (L += s.textContent);
1042
+ var s, c, f, T, L;
1043
+ if (this.nodeType === a.Element || this.nodeType === a.DocumentFragment) {
1044
+ for (L = "", T = this.children, c = 0, f = T.length; c < f; c++)
1045
+ s = T[c], s.textContent && (L += s.textContent);
1046
1046
  return L;
1047
1047
  } else
1048
1048
  return null;
@@ -1051,13 +1051,13 @@ function W() {
1051
1051
  throw new Error("This DOM method is not implemented." + this.debugInfo());
1052
1052
  }
1053
1053
  }), E.prototype.setParent = function(s) {
1054
- var a, p, T, L, v;
1055
- for (this.parent = s, s && (this.options = s.options, this.stringify = s.stringify), L = this.children, v = [], p = 0, T = L.length; p < T; p++)
1056
- a = L[p], v.push(a.setParent(this));
1054
+ var c, f, T, L, v;
1055
+ for (this.parent = s, s && (this.options = s.options, this.stringify = s.stringify), L = this.children, v = [], f = 0, T = L.length; f < T; f++)
1056
+ c = L[f], v.push(c.setParent(this));
1057
1057
  return v;
1058
- }, E.prototype.element = function(s, a, p) {
1058
+ }, E.prototype.element = function(s, c, f) {
1059
1059
  var T, L, v, r, N, A, _, C, X, j, F;
1060
- if (A = null, a === null && p == null && (X = [{}, null], a = X[0], p = X[1]), a == null && (a = {}), a = d(a), I(a) || (j = [a, p], p = j[0], a = j[1]), s != null && (s = d(s)), Array.isArray(s))
1060
+ if (A = null, c === null && f == null && (X = [{}, null], c = X[0], f = X[1]), c == null && (c = {}), c = d(c), I(c) || (j = [c, f], f = j[0], c = j[1]), s != null && (s = d(s)), Array.isArray(s))
1061
1061
  for (v = 0, _ = s.length; v < _; v++)
1062
1062
  L = s[v], A = this.element(L);
1063
1063
  else if (O(s))
@@ -1077,78 +1077,78 @@ function W() {
1077
1077
  for (r = 0, C = F.length; r < C; r++)
1078
1078
  L = F[r], T = {}, T[N] = L, A = this.element(T);
1079
1079
  else I(F) ? !this.options.ignoreDecorators && this.stringify.convertTextKey && N.indexOf(this.stringify.convertTextKey) === 0 ? A = this.element(F) : (A = this.element(N), A.element(F)) : A = this.element(N, F);
1080
- } else !this.options.keepNullNodes && p === null ? A = this.dummy() : !this.options.ignoreDecorators && this.stringify.convertTextKey && s.indexOf(this.stringify.convertTextKey) === 0 ? A = this.text(p) : !this.options.ignoreDecorators && this.stringify.convertCDataKey && s.indexOf(this.stringify.convertCDataKey) === 0 ? A = this.cdata(p) : !this.options.ignoreDecorators && this.stringify.convertCommentKey && s.indexOf(this.stringify.convertCommentKey) === 0 ? A = this.comment(p) : !this.options.ignoreDecorators && this.stringify.convertRawKey && s.indexOf(this.stringify.convertRawKey) === 0 ? A = this.raw(p) : !this.options.ignoreDecorators && this.stringify.convertPIKey && s.indexOf(this.stringify.convertPIKey) === 0 ? A = this.instruction(s.substr(this.stringify.convertPIKey.length), p) : A = this.node(s, a, p);
1080
+ } else !this.options.keepNullNodes && f === null ? A = this.dummy() : !this.options.ignoreDecorators && this.stringify.convertTextKey && s.indexOf(this.stringify.convertTextKey) === 0 ? A = this.text(f) : !this.options.ignoreDecorators && this.stringify.convertCDataKey && s.indexOf(this.stringify.convertCDataKey) === 0 ? A = this.cdata(f) : !this.options.ignoreDecorators && this.stringify.convertCommentKey && s.indexOf(this.stringify.convertCommentKey) === 0 ? A = this.comment(f) : !this.options.ignoreDecorators && this.stringify.convertRawKey && s.indexOf(this.stringify.convertRawKey) === 0 ? A = this.raw(f) : !this.options.ignoreDecorators && this.stringify.convertPIKey && s.indexOf(this.stringify.convertPIKey) === 0 ? A = this.instruction(s.substr(this.stringify.convertPIKey.length), f) : A = this.node(s, c, f);
1081
1081
  if (A == null)
1082
1082
  throw new Error("Could not create any elements with: " + s + ". " + this.debugInfo());
1083
1083
  return A;
1084
- }, E.prototype.insertBefore = function(s, a, p) {
1084
+ }, E.prototype.insertBefore = function(s, c, f) {
1085
1085
  var T, L, v, r, N;
1086
1086
  if (s != null && s.type)
1087
- return v = s, r = a, v.setParent(this), r ? (L = children.indexOf(r), N = children.splice(L), children.push(v), Array.prototype.push.apply(children, N)) : children.push(v), v;
1087
+ return v = s, r = c, v.setParent(this), r ? (L = children.indexOf(r), N = children.splice(L), children.push(v), Array.prototype.push.apply(children, N)) : children.push(v), v;
1088
1088
  if (this.isRoot)
1089
1089
  throw new Error("Cannot insert elements at root level. " + this.debugInfo(s));
1090
- return L = this.parent.children.indexOf(this), N = this.parent.children.splice(L), T = this.parent.element(s, a, p), Array.prototype.push.apply(this.parent.children, N), T;
1091
- }, E.prototype.insertAfter = function(s, a, p) {
1090
+ return L = this.parent.children.indexOf(this), N = this.parent.children.splice(L), T = this.parent.element(s, c, f), Array.prototype.push.apply(this.parent.children, N), T;
1091
+ }, E.prototype.insertAfter = function(s, c, f) {
1092
1092
  var T, L, v;
1093
1093
  if (this.isRoot)
1094
1094
  throw new Error("Cannot insert elements at root level. " + this.debugInfo(s));
1095
- return L = this.parent.children.indexOf(this), v = this.parent.children.splice(L + 1), T = this.parent.element(s, a, p), Array.prototype.push.apply(this.parent.children, v), T;
1095
+ return L = this.parent.children.indexOf(this), v = this.parent.children.splice(L + 1), T = this.parent.element(s, c, f), Array.prototype.push.apply(this.parent.children, v), T;
1096
1096
  }, E.prototype.remove = function() {
1097
1097
  var s;
1098
1098
  if (this.isRoot)
1099
1099
  throw new Error("Cannot remove the root element. " + this.debugInfo());
1100
1100
  return s = this.parent.children.indexOf(this), [].splice.apply(this.parent.children, [s, s - s + 1].concat([])), this.parent;
1101
- }, E.prototype.node = function(s, a, p) {
1101
+ }, E.prototype.node = function(s, c, f) {
1102
1102
  var T, L;
1103
- return s != null && (s = d(s)), a || (a = {}), a = d(a), I(a) || (L = [a, p], p = L[0], a = L[1]), T = new o(this, s, a), p != null && T.text(p), this.children.push(T), T;
1103
+ return s != null && (s = d(s)), c || (c = {}), c = d(c), I(c) || (L = [c, f], f = L[0], c = L[1]), T = new o(this, s, c), f != null && T.text(f), this.children.push(T), T;
1104
1104
  }, E.prototype.text = function(s) {
1105
- var a;
1106
- return I(s) && this.element(s), a = new y(this, s), this.children.push(a), this;
1105
+ var c;
1106
+ return I(s) && this.element(s), c = new y(this, s), this.children.push(c), this;
1107
1107
  }, E.prototype.cdata = function(s) {
1108
- var a;
1109
- return a = new D(this, s), this.children.push(a), this;
1108
+ var c;
1109
+ return c = new D(this, s), this.children.push(c), this;
1110
1110
  }, E.prototype.comment = function(s) {
1111
- var a;
1112
- return a = new f(this, s), this.children.push(a), this;
1111
+ var c;
1112
+ return c = new p(this, s), this.children.push(c), this;
1113
1113
  }, E.prototype.commentBefore = function(s) {
1114
- var a, p;
1115
- return a = this.parent.children.indexOf(this), p = this.parent.children.splice(a), this.parent.comment(s), Array.prototype.push.apply(this.parent.children, p), this;
1114
+ var c, f;
1115
+ return c = this.parent.children.indexOf(this), f = this.parent.children.splice(c), this.parent.comment(s), Array.prototype.push.apply(this.parent.children, f), this;
1116
1116
  }, E.prototype.commentAfter = function(s) {
1117
- var a, p;
1118
- return a = this.parent.children.indexOf(this), p = this.parent.children.splice(a + 1), this.parent.comment(s), Array.prototype.push.apply(this.parent.children, p), this;
1117
+ var c, f;
1118
+ return c = this.parent.children.indexOf(this), f = this.parent.children.splice(c + 1), this.parent.comment(s), Array.prototype.push.apply(this.parent.children, f), this;
1119
1119
  }, E.prototype.raw = function(s) {
1120
- var a;
1121
- return a = new m(this, s), this.children.push(a), this;
1120
+ var c;
1121
+ return c = new m(this, s), this.children.push(c), this;
1122
1122
  }, E.prototype.dummy = function() {
1123
1123
  var s;
1124
1124
  return s = new e(this), s;
1125
- }, E.prototype.instruction = function(s, a) {
1126
- var p, T, L, v, r;
1127
- if (s != null && (s = d(s)), a != null && (a = d(a)), Array.isArray(s))
1125
+ }, E.prototype.instruction = function(s, c) {
1126
+ var f, T, L, v, r;
1127
+ if (s != null && (s = d(s)), c != null && (c = d(c)), Array.isArray(s))
1128
1128
  for (v = 0, r = s.length; v < r; v++)
1129
- p = s[v], this.instruction(p);
1129
+ f = s[v], this.instruction(f);
1130
1130
  else if (I(s))
1131
- for (p in s)
1132
- P.call(s, p) && (T = s[p], this.instruction(p, T));
1131
+ for (f in s)
1132
+ P.call(s, f) && (T = s[f], this.instruction(f, T));
1133
1133
  else
1134
- O(a) && (a = a.apply()), L = new b(this, s, a), this.children.push(L);
1134
+ O(c) && (c = c.apply()), L = new b(this, s, c), this.children.push(L);
1135
1135
  return this;
1136
- }, E.prototype.instructionBefore = function(s, a) {
1137
- var p, T;
1138
- return p = this.parent.children.indexOf(this), T = this.parent.children.splice(p), this.parent.instruction(s, a), Array.prototype.push.apply(this.parent.children, T), this;
1139
- }, E.prototype.instructionAfter = function(s, a) {
1140
- var p, T;
1141
- return p = this.parent.children.indexOf(this), T = this.parent.children.splice(p + 1), this.parent.instruction(s, a), Array.prototype.push.apply(this.parent.children, T), this;
1142
- }, E.prototype.declaration = function(s, a, p) {
1136
+ }, E.prototype.instructionBefore = function(s, c) {
1137
+ var f, T;
1138
+ return f = this.parent.children.indexOf(this), T = this.parent.children.splice(f), this.parent.instruction(s, c), Array.prototype.push.apply(this.parent.children, T), this;
1139
+ }, E.prototype.instructionAfter = function(s, c) {
1140
+ var f, T;
1141
+ return f = this.parent.children.indexOf(this), T = this.parent.children.splice(f + 1), this.parent.instruction(s, c), Array.prototype.push.apply(this.parent.children, T), this;
1142
+ }, E.prototype.declaration = function(s, c, f) {
1143
1143
  var T, L;
1144
- return T = this.document(), L = new h(T, s, a, p), T.children.length === 0 ? T.children.unshift(L) : T.children[0].type === c.Declaration ? T.children[0] = L : T.children.unshift(L), T.root() || T;
1145
- }, E.prototype.dtd = function(s, a) {
1146
- var p, T, L, v, r, N, A, _, C, X;
1147
- for (T = this.document(), L = new t(T, s, a), C = T.children, v = r = 0, A = C.length; r < A; v = ++r)
1148
- if (p = C[v], p.type === c.DocType)
1144
+ return T = this.document(), L = new h(T, s, c, f), T.children.length === 0 ? T.children.unshift(L) : T.children[0].type === a.Declaration ? T.children[0] = L : T.children.unshift(L), T.root() || T;
1145
+ }, E.prototype.dtd = function(s, c) {
1146
+ var f, T, L, v, r, N, A, _, C, X;
1147
+ for (T = this.document(), L = new t(T, s, c), C = T.children, v = r = 0, A = C.length; r < A; v = ++r)
1148
+ if (f = C[v], f.type === a.DocType)
1149
1149
  return T.children[v] = L, L;
1150
1150
  for (X = T.children, v = N = 0, _ = X.length; N < _; v = ++N)
1151
- if (p = X[v], p.isRoot)
1151
+ if (f = X[v], f.isRoot)
1152
1152
  return T.children.splice(v, 0, L), L;
1153
1153
  return T.children.push(L), L;
1154
1154
  }, E.prototype.up = function() {
@@ -1158,7 +1158,7 @@ function W() {
1158
1158
  }, E.prototype.root = function() {
1159
1159
  var s;
1160
1160
  for (s = this; s; ) {
1161
- if (s.type === c.Document)
1161
+ if (s.type === a.Document)
1162
1162
  return s.rootObject;
1163
1163
  if (s.isRoot)
1164
1164
  return s;
@@ -1167,7 +1167,7 @@ function W() {
1167
1167
  }, E.prototype.document = function() {
1168
1168
  var s;
1169
1169
  for (s = this; s; ) {
1170
- if (s.type === c.Document)
1170
+ if (s.type === a.Document)
1171
1171
  return s;
1172
1172
  s = s.parent;
1173
1173
  }
@@ -1184,31 +1184,31 @@ function W() {
1184
1184
  throw new Error("Already at the last node. " + this.debugInfo());
1185
1185
  return this.parent.children[s + 1];
1186
1186
  }, E.prototype.importDocument = function(s) {
1187
- var a;
1188
- return a = s.root().clone(), a.parent = this, a.isRoot = !1, this.children.push(a), this;
1187
+ var c;
1188
+ return c = s.root().clone(), c.parent = this, c.isRoot = !1, this.children.push(c), this;
1189
1189
  }, E.prototype.debugInfo = function(s) {
1190
- var a, p;
1191
- return s = s || this.name, s == null && !((a = this.parent) != null && a.name) ? "" : s == null ? "parent: <" + this.parent.name + ">" : (p = this.parent) != null && p.name ? "node: <" + s + ">, parent: <" + this.parent.name + ">" : "node: <" + s + ">";
1192
- }, E.prototype.ele = function(s, a, p) {
1193
- return this.element(s, a, p);
1194
- }, E.prototype.nod = function(s, a, p) {
1195
- return this.node(s, a, p);
1190
+ var c, f;
1191
+ return s = s || this.name, s == null && !((c = this.parent) != null && c.name) ? "" : s == null ? "parent: <" + this.parent.name + ">" : (f = this.parent) != null && f.name ? "node: <" + s + ">, parent: <" + this.parent.name + ">" : "node: <" + s + ">";
1192
+ }, E.prototype.ele = function(s, c, f) {
1193
+ return this.element(s, c, f);
1194
+ }, E.prototype.nod = function(s, c, f) {
1195
+ return this.node(s, c, f);
1196
1196
  }, E.prototype.txt = function(s) {
1197
1197
  return this.text(s);
1198
1198
  }, E.prototype.dat = function(s) {
1199
1199
  return this.cdata(s);
1200
1200
  }, E.prototype.com = function(s) {
1201
1201
  return this.comment(s);
1202
- }, E.prototype.ins = function(s, a) {
1203
- return this.instruction(s, a);
1202
+ }, E.prototype.ins = function(s, c) {
1203
+ return this.instruction(s, c);
1204
1204
  }, E.prototype.doc = function() {
1205
1205
  return this.document();
1206
- }, E.prototype.dec = function(s, a, p) {
1207
- return this.declaration(s, a, p);
1208
- }, E.prototype.e = function(s, a, p) {
1209
- return this.element(s, a, p);
1210
- }, E.prototype.n = function(s, a, p) {
1211
- return this.node(s, a, p);
1206
+ }, E.prototype.dec = function(s, c, f) {
1207
+ return this.declaration(s, c, f);
1208
+ }, E.prototype.e = function(s, c, f) {
1209
+ return this.element(s, c, f);
1210
+ }, E.prototype.n = function(s, c, f) {
1211
+ return this.node(s, c, f);
1212
1212
  }, E.prototype.t = function(s) {
1213
1213
  return this.text(s);
1214
1214
  }, E.prototype.d = function(s) {
@@ -1217,13 +1217,13 @@ function W() {
1217
1217
  return this.comment(s);
1218
1218
  }, E.prototype.r = function(s) {
1219
1219
  return this.raw(s);
1220
- }, E.prototype.i = function(s, a) {
1221
- return this.instruction(s, a);
1220
+ }, E.prototype.i = function(s, c) {
1221
+ return this.instruction(s, c);
1222
1222
  }, E.prototype.u = function() {
1223
1223
  return this.up();
1224
1224
  }, E.prototype.importXMLBuilder = function(s) {
1225
1225
  return this.importDocument(s);
1226
- }, E.prototype.replaceChild = function(s, a) {
1226
+ }, E.prototype.replaceChild = function(s, c) {
1227
1227
  throw new Error("This DOM method is not implemented." + this.debugInfo());
1228
1228
  }, E.prototype.removeChild = function(s) {
1229
1229
  throw new Error("This DOM method is not implemented." + this.debugInfo());
@@ -1235,13 +1235,13 @@ function W() {
1235
1235
  throw new Error("This DOM method is not implemented." + this.debugInfo());
1236
1236
  }, E.prototype.normalize = function() {
1237
1237
  throw new Error("This DOM method is not implemented." + this.debugInfo());
1238
- }, E.prototype.isSupported = function(s, a) {
1238
+ }, E.prototype.isSupported = function(s, c) {
1239
1239
  return !0;
1240
1240
  }, E.prototype.hasAttributes = function() {
1241
1241
  return this.attribs.length !== 0;
1242
1242
  }, E.prototype.compareDocumentPosition = function(s) {
1243
- var a, p;
1244
- return a = this, a === s ? 0 : this.document() !== s.document() ? (p = i.Disconnected | i.ImplementationSpecific, Math.random() < 0.5 ? p |= i.Preceding : p |= i.Following, p) : a.isAncestor(s) ? i.Contains | i.Preceding : a.isDescendant(s) ? i.Contains | i.Following : a.isPreceding(s) ? i.Preceding : i.Following;
1243
+ var c, f;
1244
+ return c = this, c === s ? 0 : this.document() !== s.document() ? (f = i.Disconnected | i.ImplementationSpecific, Math.random() < 0.5 ? f |= i.Preceding : f |= i.Following, f) : c.isAncestor(s) ? i.Contains | i.Preceding : c.isDescendant(s) ? i.Contains | i.Following : c.isPreceding(s) ? i.Preceding : i.Following;
1245
1245
  }, E.prototype.isSameNode = function(s) {
1246
1246
  throw new Error("This DOM method is not implemented." + this.debugInfo());
1247
1247
  }, E.prototype.lookupPrefix = function(s) {
@@ -1251,176 +1251,176 @@ function W() {
1251
1251
  }, E.prototype.lookupNamespaceURI = function(s) {
1252
1252
  throw new Error("This DOM method is not implemented." + this.debugInfo());
1253
1253
  }, E.prototype.isEqualNode = function(s) {
1254
- var a, p, T;
1254
+ var c, f, T;
1255
1255
  if (s.nodeType !== this.nodeType || s.children.length !== this.children.length)
1256
1256
  return !1;
1257
- for (a = p = 0, T = this.children.length - 1; 0 <= T ? p <= T : p >= T; a = 0 <= T ? ++p : --p)
1258
- if (!this.children[a].isEqualNode(s.children[a]))
1257
+ for (c = f = 0, T = this.children.length - 1; 0 <= T ? f <= T : f >= T; c = 0 <= T ? ++f : --f)
1258
+ if (!this.children[c].isEqualNode(s.children[c]))
1259
1259
  return !1;
1260
1260
  return !0;
1261
- }, E.prototype.getFeature = function(s, a) {
1261
+ }, E.prototype.getFeature = function(s, c) {
1262
1262
  throw new Error("This DOM method is not implemented." + this.debugInfo());
1263
- }, E.prototype.setUserData = function(s, a, p) {
1263
+ }, E.prototype.setUserData = function(s, c, f) {
1264
1264
  throw new Error("This DOM method is not implemented." + this.debugInfo());
1265
1265
  }, E.prototype.getUserData = function(s) {
1266
1266
  throw new Error("This DOM method is not implemented." + this.debugInfo());
1267
1267
  }, E.prototype.contains = function(s) {
1268
1268
  return s ? s === this || this.isDescendant(s) : !1;
1269
1269
  }, E.prototype.isDescendant = function(s) {
1270
- var a, p, T, L, v;
1270
+ var c, f, T, L, v;
1271
1271
  for (v = this.children, T = 0, L = v.length; T < L; T++)
1272
- if (a = v[T], s === a || (p = a.isDescendant(s), p))
1272
+ if (c = v[T], s === c || (f = c.isDescendant(s), f))
1273
1273
  return !0;
1274
1274
  return !1;
1275
1275
  }, E.prototype.isAncestor = function(s) {
1276
1276
  return s.isDescendant(this);
1277
1277
  }, E.prototype.isPreceding = function(s) {
1278
- var a, p;
1279
- return a = this.treePosition(s), p = this.treePosition(this), a === -1 || p === -1 ? !1 : a < p;
1278
+ var c, f;
1279
+ return c = this.treePosition(s), f = this.treePosition(this), c === -1 || f === -1 ? !1 : c < f;
1280
1280
  }, E.prototype.isFollowing = function(s) {
1281
- var a, p;
1282
- return a = this.treePosition(s), p = this.treePosition(this), a === -1 || p === -1 ? !1 : a > p;
1281
+ var c, f;
1282
+ return c = this.treePosition(s), f = this.treePosition(this), c === -1 || f === -1 ? !1 : c > f;
1283
1283
  }, E.prototype.treePosition = function(s) {
1284
- var a, p;
1285
- return p = 0, a = !1, this.foreachTreeNode(this.document(), function(T) {
1286
- if (p++, !a && T === s)
1287
- return a = !0;
1288
- }), a ? p : -1;
1289
- }, E.prototype.foreachTreeNode = function(s, a) {
1290
- var p, T, L, v, r;
1284
+ var c, f;
1285
+ return f = 0, c = !1, this.foreachTreeNode(this.document(), function(T) {
1286
+ if (f++, !c && T === s)
1287
+ return c = !0;
1288
+ }), c ? f : -1;
1289
+ }, E.prototype.foreachTreeNode = function(s, c) {
1290
+ var f, T, L, v, r;
1291
1291
  for (s || (s = this.document()), v = s.children, T = 0, L = v.length; T < L; T++) {
1292
- if (p = v[T], r = a(p))
1292
+ if (f = v[T], r = c(f))
1293
1293
  return r;
1294
- if (r = this.foreachTreeNode(p, a), r)
1294
+ if (r = this.foreachTreeNode(f, c), r)
1295
1295
  return r;
1296
1296
  }
1297
1297
  }, E;
1298
1298
  }();
1299
- }).call(Fr)), lt.exports;
1299
+ }).call(jr)), lt.exports;
1300
1300
  }
1301
- var Mt = { exports: {} }, Rr = Mt.exports, Xe;
1302
- function Je() {
1303
- return Xe || (Xe = 1, (function() {
1304
- var i = function(D, f) {
1301
+ var Mt = { exports: {} }, Br = Mt.exports, Fe;
1302
+ function er() {
1303
+ return Fe || (Fe = 1, (function() {
1304
+ var i = function(D, p) {
1305
1305
  return function() {
1306
- return D.apply(f, arguments);
1306
+ return D.apply(p, arguments);
1307
1307
  };
1308
- }, c = {}.hasOwnProperty;
1308
+ }, a = {}.hasOwnProperty;
1309
1309
  Mt.exports = function() {
1310
- function D(f) {
1310
+ function D(p) {
1311
1311
  this.assertLegalName = i(this.assertLegalName, this), this.assertLegalChar = i(this.assertLegalChar, this);
1312
1312
  var h, t, e;
1313
- f || (f = {}), this.options = f, this.options.version || (this.options.version = "1.0"), t = f.stringify || {};
1313
+ p || (p = {}), this.options = p, this.options.version || (this.options.version = "1.0"), t = p.stringify || {};
1314
1314
  for (h in t)
1315
- c.call(t, h) && (e = t[h], this[h] = e);
1316
- }
1317
- return D.prototype.name = function(f) {
1318
- return this.options.noValidation ? f : this.assertLegalName("" + f || "");
1319
- }, D.prototype.text = function(f) {
1320
- return this.options.noValidation ? f : this.assertLegalChar(this.textEscape("" + f || ""));
1321
- }, D.prototype.cdata = function(f) {
1322
- return this.options.noValidation ? f : (f = "" + f || "", f = f.replace("]]>", "]]]]><![CDATA[>"), this.assertLegalChar(f));
1323
- }, D.prototype.comment = function(f) {
1315
+ a.call(t, h) && (e = t[h], this[h] = e);
1316
+ }
1317
+ return D.prototype.name = function(p) {
1318
+ return this.options.noValidation ? p : this.assertLegalName("" + p || "");
1319
+ }, D.prototype.text = function(p) {
1320
+ return this.options.noValidation ? p : this.assertLegalChar(this.textEscape("" + p || ""));
1321
+ }, D.prototype.cdata = function(p) {
1322
+ return this.options.noValidation ? p : (p = "" + p || "", p = p.replace("]]>", "]]]]><![CDATA[>"), this.assertLegalChar(p));
1323
+ }, D.prototype.comment = function(p) {
1324
1324
  if (this.options.noValidation)
1325
- return f;
1326
- if (f = "" + f || "", f.match(/--/))
1327
- throw new Error("Comment text cannot contain double-hypen: " + f);
1328
- return this.assertLegalChar(f);
1329
- }, D.prototype.raw = function(f) {
1330
- return this.options.noValidation ? f : "" + f || "";
1331
- }, D.prototype.attValue = function(f) {
1332
- return this.options.noValidation ? f : this.assertLegalChar(this.attEscape(f = "" + f || ""));
1333
- }, D.prototype.insTarget = function(f) {
1334
- return this.options.noValidation ? f : this.assertLegalChar("" + f || "");
1335
- }, D.prototype.insValue = function(f) {
1325
+ return p;
1326
+ if (p = "" + p || "", p.match(/--/))
1327
+ throw new Error("Comment text cannot contain double-hypen: " + p);
1328
+ return this.assertLegalChar(p);
1329
+ }, D.prototype.raw = function(p) {
1330
+ return this.options.noValidation ? p : "" + p || "";
1331
+ }, D.prototype.attValue = function(p) {
1332
+ return this.options.noValidation ? p : this.assertLegalChar(this.attEscape(p = "" + p || ""));
1333
+ }, D.prototype.insTarget = function(p) {
1334
+ return this.options.noValidation ? p : this.assertLegalChar("" + p || "");
1335
+ }, D.prototype.insValue = function(p) {
1336
1336
  if (this.options.noValidation)
1337
- return f;
1338
- if (f = "" + f || "", f.match(/\?>/))
1339
- throw new Error("Invalid processing instruction value: " + f);
1340
- return this.assertLegalChar(f);
1341
- }, D.prototype.xmlVersion = function(f) {
1337
+ return p;
1338
+ if (p = "" + p || "", p.match(/\?>/))
1339
+ throw new Error("Invalid processing instruction value: " + p);
1340
+ return this.assertLegalChar(p);
1341
+ }, D.prototype.xmlVersion = function(p) {
1342
1342
  if (this.options.noValidation)
1343
- return f;
1344
- if (f = "" + f || "", !f.match(/1\.[0-9]+/))
1345
- throw new Error("Invalid version number: " + f);
1346
- return f;
1347
- }, D.prototype.xmlEncoding = function(f) {
1343
+ return p;
1344
+ if (p = "" + p || "", !p.match(/1\.[0-9]+/))
1345
+ throw new Error("Invalid version number: " + p);
1346
+ return p;
1347
+ }, D.prototype.xmlEncoding = function(p) {
1348
1348
  if (this.options.noValidation)
1349
- return f;
1350
- if (f = "" + f || "", !f.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))
1351
- throw new Error("Invalid encoding: " + f);
1352
- return this.assertLegalChar(f);
1353
- }, D.prototype.xmlStandalone = function(f) {
1354
- return this.options.noValidation ? f : f ? "yes" : "no";
1355
- }, D.prototype.dtdPubID = function(f) {
1356
- return this.options.noValidation ? f : this.assertLegalChar("" + f || "");
1357
- }, D.prototype.dtdSysID = function(f) {
1358
- return this.options.noValidation ? f : this.assertLegalChar("" + f || "");
1359
- }, D.prototype.dtdElementValue = function(f) {
1360
- return this.options.noValidation ? f : this.assertLegalChar("" + f || "");
1361
- }, D.prototype.dtdAttType = function(f) {
1362
- return this.options.noValidation ? f : this.assertLegalChar("" + f || "");
1363
- }, D.prototype.dtdAttDefault = function(f) {
1364
- return this.options.noValidation ? f : this.assertLegalChar("" + f || "");
1365
- }, D.prototype.dtdEntityValue = function(f) {
1366
- return this.options.noValidation ? f : this.assertLegalChar("" + f || "");
1367
- }, D.prototype.dtdNData = function(f) {
1368
- return this.options.noValidation ? f : this.assertLegalChar("" + f || "");
1369
- }, D.prototype.convertAttKey = "@", D.prototype.convertPIKey = "?", D.prototype.convertTextKey = "#text", D.prototype.convertCDataKey = "#cdata", D.prototype.convertCommentKey = "#comment", D.prototype.convertRawKey = "#raw", D.prototype.assertLegalChar = function(f) {
1349
+ return p;
1350
+ if (p = "" + p || "", !p.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))
1351
+ throw new Error("Invalid encoding: " + p);
1352
+ return this.assertLegalChar(p);
1353
+ }, D.prototype.xmlStandalone = function(p) {
1354
+ return this.options.noValidation ? p : p ? "yes" : "no";
1355
+ }, D.prototype.dtdPubID = function(p) {
1356
+ return this.options.noValidation ? p : this.assertLegalChar("" + p || "");
1357
+ }, D.prototype.dtdSysID = function(p) {
1358
+ return this.options.noValidation ? p : this.assertLegalChar("" + p || "");
1359
+ }, D.prototype.dtdElementValue = function(p) {
1360
+ return this.options.noValidation ? p : this.assertLegalChar("" + p || "");
1361
+ }, D.prototype.dtdAttType = function(p) {
1362
+ return this.options.noValidation ? p : this.assertLegalChar("" + p || "");
1363
+ }, D.prototype.dtdAttDefault = function(p) {
1364
+ return this.options.noValidation ? p : this.assertLegalChar("" + p || "");
1365
+ }, D.prototype.dtdEntityValue = function(p) {
1366
+ return this.options.noValidation ? p : this.assertLegalChar("" + p || "");
1367
+ }, D.prototype.dtdNData = function(p) {
1368
+ return this.options.noValidation ? p : this.assertLegalChar("" + p || "");
1369
+ }, D.prototype.convertAttKey = "@", D.prototype.convertPIKey = "?", D.prototype.convertTextKey = "#text", D.prototype.convertCDataKey = "#cdata", D.prototype.convertCommentKey = "#comment", D.prototype.convertRawKey = "#raw", D.prototype.assertLegalChar = function(p) {
1370
1370
  var h, t;
1371
1371
  if (this.options.noValidation)
1372
- return f;
1372
+ return p;
1373
1373
  if (h = "", this.options.version === "1.0") {
1374
- if (h = /[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, t = f.match(h))
1375
- throw new Error("Invalid character in string: " + f + " at index " + t.index);
1376
- } else if (this.options.version === "1.1" && (h = /[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, t = f.match(h)))
1377
- throw new Error("Invalid character in string: " + f + " at index " + t.index);
1378
- return f;
1379
- }, D.prototype.assertLegalName = function(f) {
1374
+ if (h = /[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, t = p.match(h))
1375
+ throw new Error("Invalid character in string: " + p + " at index " + t.index);
1376
+ } else if (this.options.version === "1.1" && (h = /[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, t = p.match(h)))
1377
+ throw new Error("Invalid character in string: " + p + " at index " + t.index);
1378
+ return p;
1379
+ }, D.prototype.assertLegalName = function(p) {
1380
1380
  var h;
1381
1381
  if (this.options.noValidation)
1382
- return f;
1383
- if (this.assertLegalChar(f), h = /^([: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])*$/, !f.match(h))
1382
+ return p;
1383
+ if (this.assertLegalChar(p), h = /^([: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])*$/, !p.match(h))
1384
1384
  throw new Error("Invalid character in name");
1385
- return f;
1386
- }, D.prototype.textEscape = function(f) {
1385
+ return p;
1386
+ }, D.prototype.textEscape = function(p) {
1387
1387
  var h;
1388
- return this.options.noValidation ? f : (h = this.options.noDoubleEncoding ? /(?!&\S+;)&/g : /&/g, f.replace(h, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/\r/g, "&#xD;"));
1389
- }, D.prototype.attEscape = function(f) {
1388
+ return this.options.noValidation ? p : (h = this.options.noDoubleEncoding ? /(?!&\S+;)&/g : /&/g, p.replace(h, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/\r/g, "&#xD;"));
1389
+ }, D.prototype.attEscape = function(p) {
1390
1390
  var h;
1391
- return this.options.noValidation ? f : (h = this.options.noDoubleEncoding ? /(?!&\S+;)&/g : /&/g, f.replace(h, "&amp;").replace(/</g, "&lt;").replace(/"/g, "&quot;").replace(/\t/g, "&#x9;").replace(/\n/g, "&#xA;").replace(/\r/g, "&#xD;"));
1391
+ return this.options.noValidation ? p : (h = this.options.noDoubleEncoding ? /(?!&\S+;)&/g : /&/g, p.replace(h, "&amp;").replace(/</g, "&lt;").replace(/"/g, "&quot;").replace(/\t/g, "&#x9;").replace(/\n/g, "&#xA;").replace(/\r/g, "&#xD;"));
1392
1392
  }, D;
1393
1393
  }();
1394
- }).call(Rr)), Mt.exports;
1394
+ }).call(Br)), Mt.exports;
1395
1395
  }
1396
- var Pt = { exports: {} }, _t = { exports: {} }, Ct = { exports: {} }, jr = Ct.exports, Fe;
1396
+ var Pt = { exports: {} }, _t = { exports: {} }, Ct = { exports: {} }, qr = Ct.exports, Re;
1397
1397
  function Rt() {
1398
- return Fe || (Fe = 1, (function() {
1398
+ return Re || (Re = 1, (function() {
1399
1399
  Ct.exports = {
1400
1400
  None: 0,
1401
1401
  OpenTag: 1,
1402
1402
  InsideTag: 2,
1403
1403
  CloseTag: 3
1404
1404
  };
1405
- }).call(jr)), Ct.exports;
1405
+ }).call(qr)), Ct.exports;
1406
1406
  }
1407
- var Br = _t.exports, Re;
1408
- function tr() {
1409
- return Re || (Re = 1, (function() {
1410
- var i, c, D, f = {}.hasOwnProperty;
1411
- D = H().assign, i = B(), zt(), te(), Yt(), Kt(), Gt(), ee(), re(), ne(), Ze(), Ht(), Zt(), Qt(), Jt(), c = Rt(), _t.exports = function() {
1407
+ var Ur = _t.exports, je;
1408
+ function rr() {
1409
+ return je || (je = 1, (function() {
1410
+ var i, a, D, p = {}.hasOwnProperty;
1411
+ D = H().assign, i = B(), Ht(), ee(), Kt(), zt(), Yt(), re(), ne(), ie(), tr(), Qt(), Jt(), Zt(), te(), a = Rt(), _t.exports = function() {
1412
1412
  function h(t) {
1413
1413
  var e, o, l;
1414
1414
  t || (t = {}), this.options = t, o = t.writer || {};
1415
1415
  for (e in o)
1416
- f.call(o, e) && (l = o[e], this["_" + e] = this[e], this[e] = l);
1416
+ p.call(o, e) && (l = o[e], this["_" + e] = this[e], this[e] = l);
1417
1417
  }
1418
1418
  return h.prototype.filterOptions = function(t) {
1419
1419
  var e, o, l, b, m, y, d, g;
1420
1420
  return t || (t = {}), t = D({}, this.options, t), e = {
1421
1421
  writer: this
1422
1422
  }, e.pretty = t.pretty || !1, e.allowEmpty = t.allowEmpty || !1, e.indent = (o = t.indent) != null ? o : " ", e.newline = (l = t.newline) != null ? l : `
1423
- `, e.offset = (b = t.offset) != null ? b : 0, e.dontPrettyTextNodes = (m = (y = t.dontPrettyTextNodes) != null ? y : t.dontprettytextnodes) != null ? m : 0, e.spaceBeforeSlash = (d = (g = t.spaceBeforeSlash) != null ? g : t.spacebeforeslash) != null ? d : "", e.spaceBeforeSlash === !0 && (e.spaceBeforeSlash = " "), e.suppressPrettyCount = 0, e.user = {}, e.state = c.None, e;
1423
+ `, e.offset = (b = t.offset) != null ? b : 0, e.dontPrettyTextNodes = (m = (y = t.dontPrettyTextNodes) != null ? y : t.dontprettytextnodes) != null ? m : 0, e.spaceBeforeSlash = (d = (g = t.spaceBeforeSlash) != null ? g : t.spacebeforeslash) != null ? d : "", e.spaceBeforeSlash === !0 && (e.spaceBeforeSlash = " "), e.suppressPrettyCount = 0, e.user = {}, e.state = a.None, e;
1424
1424
  }, h.prototype.indent = function(t, e, o) {
1425
1425
  var l;
1426
1426
  return !e.pretty || e.suppressPrettyCount ? "" : e.pretty && (l = (o || 0) + e.offset + 1, l > 0) ? new Array(l).join(e.indent) : "";
@@ -1431,43 +1431,43 @@ function tr() {
1431
1431
  return this.openAttribute(t, e, o), l = " " + t.name + '="' + t.value + '"', this.closeAttribute(t, e, o), l;
1432
1432
  }, h.prototype.cdata = function(t, e, o) {
1433
1433
  var l;
1434
- return this.openNode(t, e, o), e.state = c.OpenTag, l = this.indent(t, e, o) + "<![CDATA[", e.state = c.InsideTag, l += t.value, e.state = c.CloseTag, l += "]]>" + this.endline(t, e, o), e.state = c.None, this.closeNode(t, e, o), l;
1434
+ return this.openNode(t, e, o), e.state = a.OpenTag, l = this.indent(t, e, o) + "<![CDATA[", e.state = a.InsideTag, l += t.value, e.state = a.CloseTag, l += "]]>" + this.endline(t, e, o), e.state = a.None, this.closeNode(t, e, o), l;
1435
1435
  }, h.prototype.comment = function(t, e, o) {
1436
1436
  var l;
1437
- return this.openNode(t, e, o), e.state = c.OpenTag, l = this.indent(t, e, o) + "<!-- ", e.state = c.InsideTag, l += t.value, e.state = c.CloseTag, l += " -->" + this.endline(t, e, o), e.state = c.None, this.closeNode(t, e, o), l;
1437
+ return this.openNode(t, e, o), e.state = a.OpenTag, l = this.indent(t, e, o) + "<!-- ", e.state = a.InsideTag, l += t.value, e.state = a.CloseTag, l += " -->" + this.endline(t, e, o), e.state = a.None, this.closeNode(t, e, o), l;
1438
1438
  }, h.prototype.declaration = function(t, e, o) {
1439
1439
  var l;
1440
- return this.openNode(t, e, o), e.state = c.OpenTag, l = this.indent(t, e, o) + "<?xml", e.state = c.InsideTag, l += ' version="' + t.version + '"', t.encoding != null && (l += ' encoding="' + t.encoding + '"'), t.standalone != null && (l += ' standalone="' + t.standalone + '"'), e.state = c.CloseTag, l += e.spaceBeforeSlash + "?>", l += this.endline(t, e, o), e.state = c.None, this.closeNode(t, e, o), l;
1440
+ return this.openNode(t, e, o), e.state = a.OpenTag, l = this.indent(t, e, o) + "<?xml", e.state = a.InsideTag, l += ' version="' + t.version + '"', t.encoding != null && (l += ' encoding="' + t.encoding + '"'), t.standalone != null && (l += ' standalone="' + t.standalone + '"'), e.state = a.CloseTag, l += e.spaceBeforeSlash + "?>", l += this.endline(t, e, o), e.state = a.None, this.closeNode(t, e, o), l;
1441
1441
  }, h.prototype.docType = function(t, e, o) {
1442
1442
  var l, b, m, y, d;
1443
- if (o || (o = 0), this.openNode(t, e, o), e.state = c.OpenTag, y = this.indent(t, e, o), y += "<!DOCTYPE " + t.root().name, t.pubID && t.sysID ? y += ' PUBLIC "' + t.pubID + '" "' + t.sysID + '"' : t.sysID && (y += ' SYSTEM "' + t.sysID + '"'), t.children.length > 0) {
1444
- for (y += " [", y += this.endline(t, e, o), e.state = c.InsideTag, d = t.children, b = 0, m = d.length; b < m; b++)
1443
+ if (o || (o = 0), this.openNode(t, e, o), e.state = a.OpenTag, y = this.indent(t, e, o), y += "<!DOCTYPE " + t.root().name, t.pubID && t.sysID ? y += ' PUBLIC "' + t.pubID + '" "' + t.sysID + '"' : t.sysID && (y += ' SYSTEM "' + t.sysID + '"'), t.children.length > 0) {
1444
+ for (y += " [", y += this.endline(t, e, o), e.state = a.InsideTag, d = t.children, b = 0, m = d.length; b < m; b++)
1445
1445
  l = d[b], y += this.writeChildNode(l, e, o + 1);
1446
- e.state = c.CloseTag, y += "]";
1446
+ e.state = a.CloseTag, y += "]";
1447
1447
  }
1448
- return e.state = c.CloseTag, y += e.spaceBeforeSlash + ">", y += this.endline(t, e, o), e.state = c.None, this.closeNode(t, e, o), y;
1448
+ return e.state = a.CloseTag, y += e.spaceBeforeSlash + ">", y += this.endline(t, e, o), e.state = a.None, this.closeNode(t, e, o), y;
1449
1449
  }, h.prototype.element = function(t, e, o) {
1450
- var l, b, m, y, d, g, O, I, x, P, E, s, a, p;
1451
- o || (o = 0), P = !1, E = "", this.openNode(t, e, o), e.state = c.OpenTag, E += this.indent(t, e, o) + "<" + t.name, s = t.attribs;
1450
+ var l, b, m, y, d, g, O, I, x, P, E, s, c, f;
1451
+ o || (o = 0), P = !1, E = "", this.openNode(t, e, o), e.state = a.OpenTag, E += this.indent(t, e, o) + "<" + t.name, s = t.attribs;
1452
1452
  for (x in s)
1453
- f.call(s, x) && (l = s[x], E += this.attribute(l, e, o));
1453
+ p.call(s, x) && (l = s[x], E += this.attribute(l, e, o));
1454
1454
  if (m = t.children.length, y = m === 0 ? null : t.children[0], m === 0 || t.children.every(function(T) {
1455
1455
  return (T.type === i.Text || T.type === i.Raw) && T.value === "";
1456
1456
  }))
1457
- e.allowEmpty ? (E += ">", e.state = c.CloseTag, E += "</" + t.name + ">" + this.endline(t, e, o)) : (e.state = c.CloseTag, E += e.spaceBeforeSlash + "/>" + this.endline(t, e, o));
1457
+ e.allowEmpty ? (E += ">", e.state = a.CloseTag, E += "</" + t.name + ">" + this.endline(t, e, o)) : (e.state = a.CloseTag, E += e.spaceBeforeSlash + "/>" + this.endline(t, e, o));
1458
1458
  else if (e.pretty && m === 1 && (y.type === i.Text || y.type === i.Raw) && y.value != null)
1459
- E += ">", e.state = c.InsideTag, e.suppressPrettyCount++, P = !0, E += this.writeChildNode(y, e, o + 1), e.suppressPrettyCount--, P = !1, e.state = c.CloseTag, E += "</" + t.name + ">" + this.endline(t, e, o);
1459
+ E += ">", e.state = a.InsideTag, e.suppressPrettyCount++, P = !0, E += this.writeChildNode(y, e, o + 1), e.suppressPrettyCount--, P = !1, e.state = a.CloseTag, E += "</" + t.name + ">" + this.endline(t, e, o);
1460
1460
  else {
1461
1461
  if (e.dontPrettyTextNodes) {
1462
- for (a = t.children, d = 0, O = a.length; d < O; d++)
1463
- if (b = a[d], (b.type === i.Text || b.type === i.Raw) && b.value != null) {
1462
+ for (c = t.children, d = 0, O = c.length; d < O; d++)
1463
+ if (b = c[d], (b.type === i.Text || b.type === i.Raw) && b.value != null) {
1464
1464
  e.suppressPrettyCount++, P = !0;
1465
1465
  break;
1466
1466
  }
1467
1467
  }
1468
- for (E += ">" + this.endline(t, e, o), e.state = c.InsideTag, p = t.children, g = 0, I = p.length; g < I; g++)
1469
- b = p[g], E += this.writeChildNode(b, e, o + 1);
1470
- e.state = c.CloseTag, E += this.indent(t, e, o) + "</" + t.name + ">", P && e.suppressPrettyCount--, E += this.endline(t, e, o), e.state = c.None;
1468
+ for (E += ">" + this.endline(t, e, o), e.state = a.InsideTag, f = t.children, g = 0, I = f.length; g < I; g++)
1469
+ b = f[g], E += this.writeChildNode(b, e, o + 1);
1470
+ e.state = a.CloseTag, E += this.indent(t, e, o) + "</" + t.name + ">", P && e.suppressPrettyCount--, E += this.endline(t, e, o), e.state = a.None;
1471
1471
  }
1472
1472
  return this.closeNode(t, e, o), E;
1473
1473
  }, h.prototype.writeChildNode = function(t, e, o) {
@@ -1503,46 +1503,46 @@ function tr() {
1503
1503
  }
1504
1504
  }, h.prototype.processingInstruction = function(t, e, o) {
1505
1505
  var l;
1506
- return this.openNode(t, e, o), e.state = c.OpenTag, l = this.indent(t, e, o) + "<?", e.state = c.InsideTag, l += t.target, t.value && (l += " " + t.value), e.state = c.CloseTag, l += e.spaceBeforeSlash + "?>", l += this.endline(t, e, o), e.state = c.None, this.closeNode(t, e, o), l;
1506
+ return this.openNode(t, e, o), e.state = a.OpenTag, l = this.indent(t, e, o) + "<?", e.state = a.InsideTag, l += t.target, t.value && (l += " " + t.value), e.state = a.CloseTag, l += e.spaceBeforeSlash + "?>", l += this.endline(t, e, o), e.state = a.None, this.closeNode(t, e, o), l;
1507
1507
  }, h.prototype.raw = function(t, e, o) {
1508
1508
  var l;
1509
- return this.openNode(t, e, o), e.state = c.OpenTag, l = this.indent(t, e, o), e.state = c.InsideTag, l += t.value, e.state = c.CloseTag, l += this.endline(t, e, o), e.state = c.None, this.closeNode(t, e, o), l;
1509
+ return this.openNode(t, e, o), e.state = a.OpenTag, l = this.indent(t, e, o), e.state = a.InsideTag, l += t.value, e.state = a.CloseTag, l += this.endline(t, e, o), e.state = a.None, this.closeNode(t, e, o), l;
1510
1510
  }, h.prototype.text = function(t, e, o) {
1511
1511
  var l;
1512
- return this.openNode(t, e, o), e.state = c.OpenTag, l = this.indent(t, e, o), e.state = c.InsideTag, l += t.value, e.state = c.CloseTag, l += this.endline(t, e, o), e.state = c.None, this.closeNode(t, e, o), l;
1512
+ return this.openNode(t, e, o), e.state = a.OpenTag, l = this.indent(t, e, o), e.state = a.InsideTag, l += t.value, e.state = a.CloseTag, l += this.endline(t, e, o), e.state = a.None, this.closeNode(t, e, o), l;
1513
1513
  }, h.prototype.dtdAttList = function(t, e, o) {
1514
1514
  var l;
1515
- return this.openNode(t, e, o), e.state = c.OpenTag, l = this.indent(t, e, o) + "<!ATTLIST", e.state = c.InsideTag, l += " " + t.elementName + " " + t.attributeName + " " + t.attributeType, t.defaultValueType !== "#DEFAULT" && (l += " " + t.defaultValueType), t.defaultValue && (l += ' "' + t.defaultValue + '"'), e.state = c.CloseTag, l += e.spaceBeforeSlash + ">" + this.endline(t, e, o), e.state = c.None, this.closeNode(t, e, o), l;
1515
+ return this.openNode(t, e, o), e.state = a.OpenTag, l = this.indent(t, e, o) + "<!ATTLIST", e.state = a.InsideTag, l += " " + t.elementName + " " + t.attributeName + " " + t.attributeType, t.defaultValueType !== "#DEFAULT" && (l += " " + t.defaultValueType), t.defaultValue && (l += ' "' + t.defaultValue + '"'), e.state = a.CloseTag, l += e.spaceBeforeSlash + ">" + this.endline(t, e, o), e.state = a.None, this.closeNode(t, e, o), l;
1516
1516
  }, h.prototype.dtdElement = function(t, e, o) {
1517
1517
  var l;
1518
- return this.openNode(t, e, o), e.state = c.OpenTag, l = this.indent(t, e, o) + "<!ELEMENT", e.state = c.InsideTag, l += " " + t.name + " " + t.value, e.state = c.CloseTag, l += e.spaceBeforeSlash + ">" + this.endline(t, e, o), e.state = c.None, this.closeNode(t, e, o), l;
1518
+ return this.openNode(t, e, o), e.state = a.OpenTag, l = this.indent(t, e, o) + "<!ELEMENT", e.state = a.InsideTag, l += " " + t.name + " " + t.value, e.state = a.CloseTag, l += e.spaceBeforeSlash + ">" + this.endline(t, e, o), e.state = a.None, this.closeNode(t, e, o), l;
1519
1519
  }, h.prototype.dtdEntity = function(t, e, o) {
1520
1520
  var l;
1521
- return this.openNode(t, e, o), e.state = c.OpenTag, l = this.indent(t, e, o) + "<!ENTITY", e.state = c.InsideTag, t.pe && (l += " %"), l += " " + t.name, t.value ? l += ' "' + t.value + '"' : (t.pubID && t.sysID ? l += ' PUBLIC "' + t.pubID + '" "' + t.sysID + '"' : t.sysID && (l += ' SYSTEM "' + t.sysID + '"'), t.nData && (l += " NDATA " + t.nData)), e.state = c.CloseTag, l += e.spaceBeforeSlash + ">" + this.endline(t, e, o), e.state = c.None, this.closeNode(t, e, o), l;
1521
+ return this.openNode(t, e, o), e.state = a.OpenTag, l = this.indent(t, e, o) + "<!ENTITY", e.state = a.InsideTag, t.pe && (l += " %"), l += " " + t.name, t.value ? l += ' "' + t.value + '"' : (t.pubID && t.sysID ? l += ' PUBLIC "' + t.pubID + '" "' + t.sysID + '"' : t.sysID && (l += ' SYSTEM "' + t.sysID + '"'), t.nData && (l += " NDATA " + t.nData)), e.state = a.CloseTag, l += e.spaceBeforeSlash + ">" + this.endline(t, e, o), e.state = a.None, this.closeNode(t, e, o), l;
1522
1522
  }, h.prototype.dtdNotation = function(t, e, o) {
1523
1523
  var l;
1524
- return this.openNode(t, e, o), e.state = c.OpenTag, l = this.indent(t, e, o) + "<!NOTATION", e.state = c.InsideTag, l += " " + t.name, t.pubID && t.sysID ? l += ' PUBLIC "' + t.pubID + '" "' + t.sysID + '"' : t.pubID ? l += ' PUBLIC "' + t.pubID + '"' : t.sysID && (l += ' SYSTEM "' + t.sysID + '"'), e.state = c.CloseTag, l += e.spaceBeforeSlash + ">" + this.endline(t, e, o), e.state = c.None, this.closeNode(t, e, o), l;
1524
+ return this.openNode(t, e, o), e.state = a.OpenTag, l = this.indent(t, e, o) + "<!NOTATION", e.state = a.InsideTag, l += " " + t.name, t.pubID && t.sysID ? l += ' PUBLIC "' + t.pubID + '" "' + t.sysID + '"' : t.pubID ? l += ' PUBLIC "' + t.pubID + '"' : t.sysID && (l += ' SYSTEM "' + t.sysID + '"'), e.state = a.CloseTag, l += e.spaceBeforeSlash + ">" + this.endline(t, e, o), e.state = a.None, this.closeNode(t, e, o), l;
1525
1525
  }, h.prototype.openNode = function(t, e, o) {
1526
1526
  }, h.prototype.closeNode = function(t, e, o) {
1527
1527
  }, h.prototype.openAttribute = function(t, e, o) {
1528
1528
  }, h.prototype.closeAttribute = function(t, e, o) {
1529
1529
  }, h;
1530
1530
  }();
1531
- }).call(Br)), _t.exports;
1531
+ }).call(Ur)), _t.exports;
1532
1532
  }
1533
- var qr = Pt.exports, je;
1534
- function ie() {
1535
- return je || (je = 1, (function() {
1536
- var i, c = function(f, h) {
1533
+ var Vr = Pt.exports, Be;
1534
+ function oe() {
1535
+ return Be || (Be = 1, (function() {
1536
+ var i, a = function(p, h) {
1537
1537
  for (var t in h)
1538
- D.call(h, t) && (f[t] = h[t]);
1538
+ D.call(h, t) && (p[t] = h[t]);
1539
1539
  function e() {
1540
- this.constructor = f;
1540
+ this.constructor = p;
1541
1541
  }
1542
- return e.prototype = h.prototype, f.prototype = new e(), f.__super__ = h.prototype, f;
1542
+ return e.prototype = h.prototype, p.prototype = new e(), p.__super__ = h.prototype, p;
1543
1543
  }, D = {}.hasOwnProperty;
1544
- i = tr(), Pt.exports = function(f) {
1545
- c(h, f);
1544
+ i = rr(), Pt.exports = function(p) {
1545
+ a(h, p);
1546
1546
  function h(t) {
1547
1547
  h.__super__.constructor.call(this, t);
1548
1548
  }
@@ -1553,12 +1553,12 @@ function ie() {
1553
1553
  return e.pretty && m.slice(-e.newline.length) === e.newline && (m = m.slice(0, -e.newline.length)), m;
1554
1554
  }, h;
1555
1555
  }(i);
1556
- }).call(qr)), Pt.exports;
1556
+ }).call(Vr)), Pt.exports;
1557
1557
  }
1558
- var Ur = st.exports, Be;
1559
- function er() {
1560
- return Be || (Be = 1, (function() {
1561
- var i, c, D, f, h, t, e, o = function(b, m) {
1558
+ var kr = st.exports, qe;
1559
+ function nr() {
1560
+ return qe || (qe = 1, (function() {
1561
+ var i, a, D, p, h, t, e, o = function(b, m) {
1562
1562
  for (var y in m)
1563
1563
  l.call(m, y) && (b[y] = m[y]);
1564
1564
  function d() {
@@ -1566,10 +1566,10 @@ function er() {
1566
1566
  }
1567
1567
  return d.prototype = m.prototype, b.prototype = new d(), b.__super__ = m.prototype, b;
1568
1568
  }, l = {}.hasOwnProperty;
1569
- e = H().isPlainObject, D = He(), c = dr(), f = W(), i = B(), t = Je(), h = ie(), st.exports = function(b) {
1569
+ e = H().isPlainObject, D = Ze(), a = mr(), p = W(), i = B(), t = er(), h = oe(), st.exports = function(b) {
1570
1570
  o(m, b);
1571
1571
  function m(y) {
1572
- m.__super__.constructor.call(this, null), this.name = "#document", this.type = i.Document, this.documentURI = null, this.domConfig = new c(), y || (y = {}), y.writer || (y.writer = new h()), this.options = y, this.stringify = new t(y);
1572
+ m.__super__.constructor.call(this, null), this.name = "#document", this.type = i.Document, this.documentURI = null, this.domConfig = new a(), y || (y = {}), y.writer || (y.writer = new h()), this.options = y, this.stringify = new t(y);
1573
1573
  }
1574
1574
  return Object.defineProperty(m.prototype, "implementation", {
1575
1575
  value: new D()
@@ -1675,17 +1675,17 @@ function er() {
1675
1675
  }, m.prototype.createTreeWalker = function(y, d, g) {
1676
1676
  throw new Error("This DOM method is not implemented." + this.debugInfo());
1677
1677
  }, m;
1678
- }(f);
1679
- }).call(Ur)), st.exports;
1678
+ }(p);
1679
+ }).call(kr)), st.exports;
1680
1680
  }
1681
- var St = { exports: {} }, Vr = St.exports, qe;
1682
- function kr() {
1683
- return qe || (qe = 1, (function() {
1684
- var i, c, D, f, h, t, e, o, l, b, m, y, d, g, O, I, x, P, E, s, a, p, T, L = {}.hasOwnProperty;
1685
- T = H(), a = T.isObject, s = T.isFunction, p = T.isPlainObject, E = T.getValue, i = B(), y = er(), d = Gt(), f = Yt(), h = Kt(), O = ee(), P = re(), g = ne(), b = zt(), m = te(), t = Ht(), o = Qt(), e = Zt(), l = Jt(), D = Qe(), x = Je(), I = ie(), c = Rt(), St.exports = function() {
1681
+ var St = { exports: {} }, $r = St.exports, Ue;
1682
+ function Wr() {
1683
+ return Ue || (Ue = 1, (function() {
1684
+ var i, a, D, p, h, t, e, o, l, b, m, y, d, g, O, I, x, P, E, s, c, f, T, L = {}.hasOwnProperty;
1685
+ T = H(), c = T.isObject, s = T.isFunction, f = T.isPlainObject, E = T.getValue, i = B(), y = nr(), d = Yt(), p = Kt(), h = zt(), O = re(), P = ne(), g = ie(), b = Ht(), m = ee(), t = Qt(), o = Zt(), e = Jt(), l = te(), D = Je(), x = er(), I = oe(), a = Rt(), St.exports = function() {
1686
1686
  function v(r, N, A) {
1687
1687
  var _;
1688
- this.name = "?xml", this.type = i.Document, r || (r = {}), _ = {}, r.writer ? p(r.writer) && (_ = r.writer, r.writer = new I()) : r.writer = new I(), this.options = r, this.writer = r.writer, this.writerOptions = this.writer.filterOptions(_), this.stringify = new x(r), this.onDataCallback = N || function() {
1688
+ this.name = "?xml", this.type = i.Document, r || (r = {}), _ = {}, r.writer ? f(r.writer) && (_ = r.writer, r.writer = new I()) : r.writer = new I(), this.options = r, this.writer = r.writer, this.writerOptions = this.writer.filterOptions(_), this.stringify = new x(r), this.onDataCallback = N || function() {
1689
1689
  }, this.onEndCallback = A || function() {
1690
1690
  }, this.currentNode = null, this.currentLevel = -1, this.openTags = {}, this.documentStarted = !1, this.documentCompleted = !1, this.root = null;
1691
1691
  }
@@ -1730,12 +1730,12 @@ function kr() {
1730
1730
  throw new Error("Missing node name.");
1731
1731
  if (this.root && this.currentLevel === -1)
1732
1732
  throw new Error("Document can only have one root node. " + this.debugInfo(r));
1733
- return this.openCurrent(), r = E(r), N == null && (N = {}), N = E(N), a(N) || (_ = [N, A], A = _[0], N = _[1]), this.currentNode = new d(this, r, N), this.currentNode.children = !1, this.currentLevel++, this.openTags[this.currentLevel] = this.currentNode, A != null && this.text(A), this;
1733
+ return this.openCurrent(), r = E(r), N == null && (N = {}), N = E(N), c(N) || (_ = [N, A], A = _[0], N = _[1]), this.currentNode = new d(this, r, N), this.currentNode.children = !1, this.currentLevel++, this.openTags[this.currentLevel] = this.currentNode, A != null && this.text(A), this;
1734
1734
  }, v.prototype.element = function(r, N, A) {
1735
1735
  var _, C, X, j, F, S;
1736
1736
  if (this.currentNode && this.currentNode.type === i.DocType)
1737
1737
  this.dtdElement.apply(this, arguments);
1738
- else if (Array.isArray(r) || a(r) || s(r))
1738
+ else if (Array.isArray(r) || c(r) || s(r))
1739
1739
  for (j = this.options.noValidation, this.options.noValidation = !0, S = new y(this.options).element("TEMP_ROOT"), S.element(r), this.options.noValidation = j, F = S.children, C = 0, X = F.length; C < X; C++)
1740
1740
  _ = F[C], this.createChildNode(_), _.type === i.Element && this.up();
1741
1741
  else
@@ -1745,7 +1745,7 @@ function kr() {
1745
1745
  var A, _;
1746
1746
  if (!this.currentNode || this.currentNode.children)
1747
1747
  throw new Error("att() can only be used immediately after an ele() call in callback mode. " + this.debugInfo(r));
1748
- if (r != null && (r = E(r)), a(r))
1748
+ if (r != null && (r = E(r)), c(r))
1749
1749
  for (A in r)
1750
1750
  L.call(r, A) && (_ = r[A], this.attribute(A, _));
1751
1751
  else
@@ -1756,7 +1756,7 @@ function kr() {
1756
1756
  return this.openCurrent(), N = new P(this, r), this.onData(this.writer.text(N, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1), this;
1757
1757
  }, v.prototype.cdata = function(r) {
1758
1758
  var N;
1759
- return this.openCurrent(), N = new f(this, r), this.onData(this.writer.cdata(N, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1), this;
1759
+ return this.openCurrent(), N = new p(this, r), this.onData(this.writer.cdata(N, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1), this;
1760
1760
  }, v.prototype.comment = function(r) {
1761
1761
  var N;
1762
1762
  return this.openCurrent(), N = new h(this, r), this.onData(this.writer.comment(N, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1), this;
@@ -1768,7 +1768,7 @@ function kr() {
1768
1768
  if (this.openCurrent(), r != null && (r = E(r)), N != null && (N = E(N)), Array.isArray(r))
1769
1769
  for (A = 0, X = r.length; A < X; A++)
1770
1770
  _ = r[A], this.instruction(_);
1771
- else if (a(r))
1771
+ else if (c(r))
1772
1772
  for (_ in r)
1773
1773
  L.call(r, _) && (C = r[_], this.instruction(_, C));
1774
1774
  else
@@ -1815,18 +1815,18 @@ function kr() {
1815
1815
  var N, A, _, C;
1816
1816
  if (!r.isOpen) {
1817
1817
  if (!this.root && this.currentLevel === 0 && r.type === i.Element && (this.root = r), A = "", r.type === i.Element) {
1818
- this.writerOptions.state = c.OpenTag, A = this.writer.indent(r, this.writerOptions, this.currentLevel) + "<" + r.name, C = r.attribs;
1818
+ this.writerOptions.state = a.OpenTag, A = this.writer.indent(r, this.writerOptions, this.currentLevel) + "<" + r.name, C = r.attribs;
1819
1819
  for (_ in C)
1820
1820
  L.call(C, _) && (N = C[_], A += this.writer.attribute(N, this.writerOptions, this.currentLevel));
1821
- A += (r.children ? ">" : "/>") + this.writer.endline(r, this.writerOptions, this.currentLevel), this.writerOptions.state = c.InsideTag;
1821
+ A += (r.children ? ">" : "/>") + this.writer.endline(r, this.writerOptions, this.currentLevel), this.writerOptions.state = a.InsideTag;
1822
1822
  } else
1823
- this.writerOptions.state = c.OpenTag, A = this.writer.indent(r, this.writerOptions, this.currentLevel) + "<!DOCTYPE " + r.rootNodeName, r.pubID && r.sysID ? A += ' PUBLIC "' + r.pubID + '" "' + r.sysID + '"' : r.sysID && (A += ' SYSTEM "' + r.sysID + '"'), r.children ? (A += " [", this.writerOptions.state = c.InsideTag) : (this.writerOptions.state = c.CloseTag, A += ">"), A += this.writer.endline(r, this.writerOptions, this.currentLevel);
1823
+ this.writerOptions.state = a.OpenTag, A = this.writer.indent(r, this.writerOptions, this.currentLevel) + "<!DOCTYPE " + r.rootNodeName, r.pubID && r.sysID ? A += ' PUBLIC "' + r.pubID + '" "' + r.sysID + '"' : r.sysID && (A += ' SYSTEM "' + r.sysID + '"'), r.children ? (A += " [", this.writerOptions.state = a.InsideTag) : (this.writerOptions.state = a.CloseTag, A += ">"), A += this.writer.endline(r, this.writerOptions, this.currentLevel);
1824
1824
  return this.onData(A, this.currentLevel), r.isOpen = !0;
1825
1825
  }
1826
1826
  }, v.prototype.closeNode = function(r) {
1827
1827
  var N;
1828
1828
  if (!r.isClosed)
1829
- return N = "", this.writerOptions.state = c.CloseTag, r.type === i.Element ? N = this.writer.indent(r, this.writerOptions, this.currentLevel) + "</" + r.name + ">" + this.writer.endline(r, this.writerOptions, this.currentLevel) : N = this.writer.indent(r, this.writerOptions, this.currentLevel) + "]>" + this.writer.endline(r, this.writerOptions, this.currentLevel), this.writerOptions.state = c.None, this.onData(N, this.currentLevel), r.isClosed = !0;
1829
+ return N = "", this.writerOptions.state = a.CloseTag, r.type === i.Element ? N = this.writer.indent(r, this.writerOptions, this.currentLevel) + "</" + r.name + ">" + this.writer.endline(r, this.writerOptions, this.currentLevel) : N = this.writer.indent(r, this.writerOptions, this.currentLevel) + "]>" + this.writer.endline(r, this.writerOptions, this.currentLevel), this.writerOptions.state = a.None, this.onData(N, this.currentLevel), r.isClosed = !0;
1830
1830
  }, v.prototype.onData = function(r, N) {
1831
1831
  return this.documentStarted = !0, this.onDataCallback(r, N + 1);
1832
1832
  }, v.prototype.onEnd = function() {
@@ -1875,12 +1875,12 @@ function kr() {
1875
1875
  return this.notation(r, N);
1876
1876
  }, v;
1877
1877
  }();
1878
- }).call(Vr)), St.exports;
1878
+ }).call($r)), St.exports;
1879
1879
  }
1880
- var Xt = { exports: {} }, $r = Xt.exports, Ue;
1881
- function Wr() {
1882
- return Ue || (Ue = 1, (function() {
1883
- var i, c, D, f = function(t, e) {
1880
+ var Xt = { exports: {} }, Gr = Xt.exports, Ve;
1881
+ function Yr() {
1882
+ return Ve || (Ve = 1, (function() {
1883
+ var i, a, D, p = function(t, e) {
1884
1884
  for (var o in e)
1885
1885
  h.call(e, o) && (t[o] = e[o]);
1886
1886
  function l() {
@@ -1888,13 +1888,13 @@ function Wr() {
1888
1888
  }
1889
1889
  return l.prototype = e.prototype, t.prototype = new l(), t.__super__ = e.prototype, t;
1890
1890
  }, h = {}.hasOwnProperty;
1891
- i = B(), D = tr(), c = Rt(), Xt.exports = function(t) {
1892
- f(e, t);
1891
+ i = B(), D = rr(), a = Rt(), Xt.exports = function(t) {
1892
+ p(e, t);
1893
1893
  function e(o, l) {
1894
1894
  this.stream = o, e.__super__.constructor.call(this, l);
1895
1895
  }
1896
1896
  return e.prototype.endline = function(o, l, b) {
1897
- return o.isLastRootNode && l.state === c.CloseTag ? "" : e.__super__.endline.call(this, o, l, b);
1897
+ return o.isLastRootNode && l.state === a.CloseTag ? "" : e.__super__.endline.call(this, o, l, b);
1898
1898
  }, e.prototype.document = function(o, l) {
1899
1899
  var b, m, y, d, g, O, I, x, P;
1900
1900
  for (I = o.children, m = y = 0, g = I.length; y < g; m = ++y)
@@ -1912,29 +1912,29 @@ function Wr() {
1912
1912
  return this.stream.write(e.__super__.declaration.call(this, o, l, b));
1913
1913
  }, e.prototype.docType = function(o, l, b) {
1914
1914
  var m, y, d, g;
1915
- if (b || (b = 0), this.openNode(o, l, b), l.state = c.OpenTag, this.stream.write(this.indent(o, l, b)), 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) {
1916
- for (this.stream.write(" ["), this.stream.write(this.endline(o, l, b)), l.state = c.InsideTag, g = o.children, y = 0, d = g.length; y < d; y++)
1915
+ if (b || (b = 0), this.openNode(o, l, b), l.state = a.OpenTag, this.stream.write(this.indent(o, l, b)), 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) {
1916
+ for (this.stream.write(" ["), this.stream.write(this.endline(o, l, b)), l.state = a.InsideTag, g = o.children, y = 0, d = g.length; y < d; y++)
1917
1917
  m = g[y], this.writeChildNode(m, l, b + 1);
1918
- l.state = c.CloseTag, this.stream.write("]");
1918
+ l.state = a.CloseTag, this.stream.write("]");
1919
1919
  }
1920
- return l.state = c.CloseTag, this.stream.write(l.spaceBeforeSlash + ">"), this.stream.write(this.endline(o, l, b)), l.state = c.None, this.closeNode(o, l, b);
1920
+ return l.state = a.CloseTag, this.stream.write(l.spaceBeforeSlash + ">"), this.stream.write(this.endline(o, l, b)), l.state = a.None, this.closeNode(o, l, b);
1921
1921
  }, e.prototype.element = function(o, l, b) {
1922
1922
  var m, y, d, g, O, I, x, P, E;
1923
- b || (b = 0), this.openNode(o, l, b), l.state = c.OpenTag, this.stream.write(this.indent(o, l, b) + "<" + o.name), P = o.attribs;
1923
+ b || (b = 0), this.openNode(o, l, b), l.state = a.OpenTag, this.stream.write(this.indent(o, l, b) + "<" + o.name), P = o.attribs;
1924
1924
  for (x in P)
1925
1925
  h.call(P, x) && (m = P[x], this.attribute(m, l, b));
1926
1926
  if (d = o.children.length, g = d === 0 ? null : o.children[0], d === 0 || o.children.every(function(s) {
1927
1927
  return (s.type === i.Text || s.type === i.Raw) && s.value === "";
1928
1928
  }))
1929
- l.allowEmpty ? (this.stream.write(">"), l.state = c.CloseTag, this.stream.write("</" + o.name + ">")) : (l.state = c.CloseTag, this.stream.write(l.spaceBeforeSlash + "/>"));
1929
+ l.allowEmpty ? (this.stream.write(">"), l.state = a.CloseTag, this.stream.write("</" + o.name + ">")) : (l.state = a.CloseTag, this.stream.write(l.spaceBeforeSlash + "/>"));
1930
1930
  else if (l.pretty && d === 1 && (g.type === i.Text || g.type === i.Raw) && g.value != null)
1931
- this.stream.write(">"), l.state = c.InsideTag, l.suppressPrettyCount++, this.writeChildNode(g, l, b + 1), l.suppressPrettyCount--, l.state = c.CloseTag, this.stream.write("</" + o.name + ">");
1931
+ this.stream.write(">"), l.state = a.InsideTag, l.suppressPrettyCount++, this.writeChildNode(g, l, b + 1), l.suppressPrettyCount--, l.state = a.CloseTag, this.stream.write("</" + o.name + ">");
1932
1932
  else {
1933
- for (this.stream.write(">" + this.endline(o, l, b)), l.state = c.InsideTag, E = o.children, O = 0, I = E.length; O < I; O++)
1933
+ for (this.stream.write(">" + this.endline(o, l, b)), l.state = a.InsideTag, E = o.children, O = 0, I = E.length; O < I; O++)
1934
1934
  y = E[O], this.writeChildNode(y, l, b + 1);
1935
- l.state = c.CloseTag, this.stream.write(this.indent(o, l, b) + "</" + o.name + ">");
1935
+ l.state = a.CloseTag, this.stream.write(this.indent(o, l, b) + "</" + o.name + ">");
1936
1936
  }
1937
- return this.stream.write(this.endline(o, l, b)), l.state = c.None, this.closeNode(o, l, b);
1937
+ return this.stream.write(this.endline(o, l, b)), l.state = a.None, this.closeNode(o, l, b);
1938
1938
  }, e.prototype.processingInstruction = function(o, l, b) {
1939
1939
  return this.stream.write(e.__super__.processingInstruction.call(this, o, l, b));
1940
1940
  }, e.prototype.raw = function(o, l, b) {
@@ -1951,32 +1951,32 @@ function Wr() {
1951
1951
  return this.stream.write(e.__super__.dtdNotation.call(this, o, l, b));
1952
1952
  }, e;
1953
1953
  }(D);
1954
- }).call($r)), Xt.exports;
1954
+ }).call(Gr)), Xt.exports;
1955
1955
  }
1956
- var Ve;
1957
- function Gr() {
1958
- return Ve || (Ve = 1, (function() {
1959
- var i, c, D, f, h, t, e, o, l, b;
1960
- b = H(), o = b.assign, l = b.isFunction, D = He(), f = er(), h = kr(), e = ie(), t = Wr(), i = B(), c = Rt(), Y.create = function(m, y, d, g) {
1956
+ var ke;
1957
+ function Kr() {
1958
+ return ke || (ke = 1, (function() {
1959
+ var i, a, D, p, h, t, e, o, l, b;
1960
+ b = H(), o = b.assign, l = b.isFunction, D = Ze(), p = nr(), h = Wr(), e = oe(), t = Yr(), i = B(), a = Rt(), Y.create = function(m, y, d, g) {
1961
1961
  var O, I;
1962
1962
  if (m == null)
1963
1963
  throw new Error("Root element needs a name.");
1964
- return g = o({}, y, d, g), O = new f(g), I = O.element(m), g.headless || (O.declaration(g), (g.pubID != null || g.sysID != null) && O.dtd(g)), I;
1964
+ return g = o({}, y, d, g), O = new p(g), I = O.element(m), g.headless || (O.declaration(g), (g.pubID != null || g.sysID != null) && O.dtd(g)), I;
1965
1965
  }, Y.begin = function(m, y, d) {
1966
1966
  var g;
1967
- return l(m) && (g = [m, y], y = g[0], d = g[1], m = {}), y ? new h(m, y, d) : new f(m);
1967
+ return l(m) && (g = [m, y], y = g[0], d = g[1], m = {}), y ? new h(m, y, d) : new p(m);
1968
1968
  }, Y.stringWriter = function(m) {
1969
1969
  return new e(m);
1970
1970
  }, Y.streamWriter = function(m, y) {
1971
1971
  return new t(m, y);
1972
- }, Y.implementation = new D(), Y.nodeType = i, Y.writerState = c;
1972
+ }, Y.implementation = new D(), Y.nodeType = i, Y.writerState = a;
1973
1973
  }).call(Y)), Y;
1974
1974
  }
1975
- var ke;
1976
- function Yr() {
1977
- return ke || (ke = 1, (function() {
1978
- var i, c, D, f, h, t = {}.hasOwnProperty;
1979
- i = Gr(), c = $t().defaults, f = function(e) {
1975
+ var $e;
1976
+ function zr() {
1977
+ return $e || ($e = 1, (function() {
1978
+ var i, a, D, p, h, t = {}.hasOwnProperty;
1979
+ i = Kr(), a = Wt().defaults, p = function(e) {
1980
1980
  return typeof e == "string" && (e.indexOf("&") >= 0 || e.indexOf(">") >= 0 || e.indexOf("<") >= 0);
1981
1981
  }, h = function(e) {
1982
1982
  return "<![CDATA[" + D(e) + "]]>";
@@ -1985,7 +1985,7 @@ function Yr() {
1985
1985
  }, et.Builder = function() {
1986
1986
  function e(o) {
1987
1987
  var l, b, m;
1988
- this.options = {}, b = c["0.2"];
1988
+ this.options = {}, b = a["0.2"];
1989
1989
  for (l in b)
1990
1990
  t.call(b, l) && (m = b[l], this.options[l] = m);
1991
1991
  for (l in o)
@@ -1993,31 +1993,31 @@ function Yr() {
1993
1993
  }
1994
1994
  return e.prototype.buildObject = function(o) {
1995
1995
  var l, b, m, y, d;
1996
- return l = this.options.attrkey, b = this.options.charkey, Object.keys(o).length === 1 && this.options.rootName === c["0.2"].rootName ? (d = Object.keys(o)[0], o = o[d]) : d = this.options.rootName, m = /* @__PURE__ */ function(g) {
1996
+ return l = this.options.attrkey, b = this.options.charkey, Object.keys(o).length === 1 && this.options.rootName === a["0.2"].rootName ? (d = Object.keys(o)[0], o = o[d]) : d = this.options.rootName, m = /* @__PURE__ */ function(g) {
1997
1997
  return function(O, I) {
1998
- var x, P, E, s, a, p;
1998
+ var x, P, E, s, c, f;
1999
1999
  if (typeof I != "object")
2000
- g.options.cdata && f(I) ? O.raw(h(I)) : O.txt(I);
2000
+ g.options.cdata && p(I) ? O.raw(h(I)) : O.txt(I);
2001
2001
  else if (Array.isArray(I)) {
2002
2002
  for (s in I)
2003
2003
  if (t.call(I, s)) {
2004
2004
  P = I[s];
2005
- for (a in P)
2006
- E = P[a], O = m(O.ele(a), E).up();
2005
+ for (c in P)
2006
+ E = P[c], O = m(O.ele(c), E).up();
2007
2007
  }
2008
2008
  } else
2009
- for (a in I)
2010
- if (t.call(I, a))
2011
- if (P = I[a], a === l) {
2009
+ for (c in I)
2010
+ if (t.call(I, c))
2011
+ if (P = I[c], c === l) {
2012
2012
  if (typeof P == "object")
2013
2013
  for (x in P)
2014
- p = P[x], O = O.att(x, p);
2015
- } else if (a === b)
2016
- g.options.cdata && f(P) ? O = O.raw(h(P)) : O = O.txt(P);
2014
+ f = P[x], O = O.att(x, f);
2015
+ } else if (c === b)
2016
+ g.options.cdata && p(P) ? O = O.raw(h(P)) : O = O.txt(P);
2017
2017
  else if (Array.isArray(P))
2018
2018
  for (s in P)
2019
- t.call(P, s) && (E = P[s], typeof E == "string" ? g.options.cdata && f(E) ? O = O.ele(a).raw(h(E)).up() : O = O.ele(a, E).up() : O = m(O.ele(a), E).up());
2020
- else typeof P == "object" ? O = m(O.ele(a), P).up() : typeof P == "string" && g.options.cdata && f(P) ? O = O.ele(a).raw(h(P)).up() : (P == null && (P = ""), O = O.ele(a, P.toString()).up());
2019
+ t.call(P, s) && (E = P[s], typeof E == "string" ? g.options.cdata && p(E) ? O = O.ele(c).raw(h(E)).up() : O = O.ele(c, E).up() : O = m(O.ele(c), E).up());
2020
+ else typeof P == "object" ? O = m(O.ele(c), P).up() : typeof P == "string" && g.options.cdata && p(P) ? O = O.ele(c).raw(h(P)).up() : (P == null && (P = ""), O = O.ele(c, P.toString()).up());
2021
2021
  return O;
2022
2022
  };
2023
2023
  }(this), y = i.create(d, this.options.xmldec, this.options.doctype, {
@@ -2029,17 +2029,17 @@ function Yr() {
2029
2029
  }).call(et)), et;
2030
2030
  }
2031
2031
  var rt = {}, Vt = {};
2032
- const Kr = {}, zr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2032
+ const Hr = {}, Qr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2033
2033
  __proto__: null,
2034
- default: Kr
2035
- }, Symbol.toStringTag, { value: "Module" })), kt = /* @__PURE__ */ ur(zr);
2036
- var $e;
2037
- function Hr() {
2038
- return $e || ($e = 1, function(i) {
2039
- (function(c) {
2040
- c.parser = function(u, n) {
2041
- return new f(u, n);
2042
- }, c.SAXParser = f, c.SAXStream = m, c.createStream = b, c.MAX_BUFFER_LENGTH = 64 * 1024;
2034
+ default: Hr
2035
+ }, Symbol.toStringTag, { value: "Module" })), kt = /* @__PURE__ */ cr(Qr);
2036
+ var We;
2037
+ function Zr() {
2038
+ return We || (We = 1, function(i) {
2039
+ (function(a) {
2040
+ a.parser = function(u, n) {
2041
+ return new p(u, n);
2042
+ }, a.SAXParser = p, a.SAXStream = m, a.createStream = b, a.MAX_BUFFER_LENGTH = 64 * 1024;
2043
2043
  var D = [
2044
2044
  "comment",
2045
2045
  "sgmlDecl",
@@ -2054,7 +2054,7 @@ function Hr() {
2054
2054
  "cdata",
2055
2055
  "script"
2056
2056
  ];
2057
- c.EVENTS = [
2057
+ a.EVENTS = [
2058
2058
  "text",
2059
2059
  "processinginstruction",
2060
2060
  "sgmldeclaration",
@@ -2074,11 +2074,11 @@ function Hr() {
2074
2074
  "opennamespace",
2075
2075
  "closenamespace"
2076
2076
  ];
2077
- function f(u, n) {
2078
- if (!(this instanceof f))
2079
- return new f(u, n);
2077
+ function p(u, n) {
2078
+ if (!(this instanceof p))
2079
+ return new p(u, n);
2080
2080
  var M = this;
2081
- t(M), M.q = M.c = "", M.bufferCheckPosition = c.MAX_BUFFER_LENGTH, M.opt = n || {}, M.opt.lowercase = M.opt.lowercase || M.opt.lowercasetags, M.looseCase = M.opt.lowercase ? "toLowerCase" : "toUpperCase", M.tags = [], M.closed = M.closedRoot = M.sawRoot = !1, M.tag = M.error = null, M.strict = !!u, M.noscript = !!(u || M.opt.noscript), M.state = r.BEGIN, M.strictEntities = M.opt.strictEntities, M.ENTITIES = M.strictEntities ? Object.create(c.XML_ENTITIES) : Object.create(c.ENTITIES), M.attribList = [], M.opt.xmlns && (M.ns = Object.create(I)), M.opt.unquotedAttributeValues === void 0 && (M.opt.unquotedAttributeValues = !u), M.trackPosition = M.opt.position !== !1, M.trackPosition && (M.position = M.line = M.column = 0), A(M, "onready");
2081
+ t(M), M.q = M.c = "", M.bufferCheckPosition = a.MAX_BUFFER_LENGTH, M.opt = n || {}, M.opt.lowercase = M.opt.lowercase || M.opt.lowercasetags, M.looseCase = M.opt.lowercase ? "toLowerCase" : "toUpperCase", M.tags = [], M.closed = M.closedRoot = M.sawRoot = !1, M.tag = M.error = null, M.strict = !!u, M.noscript = !!(u || M.opt.noscript), M.state = r.BEGIN, M.strictEntities = M.opt.strictEntities, M.ENTITIES = M.strictEntities ? Object.create(a.XML_ENTITIES) : Object.create(a.ENTITIES), M.attribList = [], M.opt.xmlns && (M.ns = Object.create(I)), M.opt.unquotedAttributeValues === void 0 && (M.opt.unquotedAttributeValues = !u), M.trackPosition = M.opt.position !== !1, M.trackPosition && (M.position = M.line = M.column = 0), A(M, "onready");
2082
2082
  }
2083
2083
  Object.create || (Object.create = function(u) {
2084
2084
  function n() {
@@ -2092,7 +2092,7 @@ function Hr() {
2092
2092
  return n;
2093
2093
  });
2094
2094
  function h(u) {
2095
- for (var n = Math.max(c.MAX_BUFFER_LENGTH, 10), M = 0, w = 0, R = D.length; w < R; w++) {
2095
+ for (var n = Math.max(a.MAX_BUFFER_LENGTH, 10), M = 0, w = 0, R = D.length; w < R; w++) {
2096
2096
  var q = u[D[w]].length;
2097
2097
  if (q > n)
2098
2098
  switch (D[w]) {
@@ -2110,7 +2110,7 @@ function Hr() {
2110
2110
  }
2111
2111
  M = Math.max(M, q);
2112
2112
  }
2113
- var U = c.MAX_BUFFER_LENGTH - M;
2113
+ var U = a.MAX_BUFFER_LENGTH - M;
2114
2114
  u.bufferCheckPosition = U + u.position;
2115
2115
  }
2116
2116
  function t(u) {
@@ -2120,11 +2120,11 @@ function Hr() {
2120
2120
  function e(u) {
2121
2121
  C(u), u.cdata !== "" && (_(u, "oncdata", u.cdata), u.cdata = ""), u.script !== "" && (_(u, "onscript", u.script), u.script = "");
2122
2122
  }
2123
- f.prototype = {
2123
+ p.prototype = {
2124
2124
  end: function() {
2125
2125
  F(this);
2126
2126
  },
2127
- write: or,
2127
+ write: ur,
2128
2128
  resume: function() {
2129
2129
  return this.error = null, this;
2130
2130
  },
@@ -2144,7 +2144,7 @@ function Hr() {
2144
2144
  }
2145
2145
  o || (o = function() {
2146
2146
  });
2147
- var l = c.EVENTS.filter(function(u) {
2147
+ var l = a.EVENTS.filter(function(u) {
2148
2148
  return u !== "error" && u !== "end";
2149
2149
  });
2150
2150
  function b(u, n) {
@@ -2153,7 +2153,7 @@ function Hr() {
2153
2153
  function m(u, n) {
2154
2154
  if (!(this instanceof m))
2155
2155
  return new m(u, n);
2156
- o.apply(this), this._parser = new f(u, n), this.writable = !0, this.readable = !0;
2156
+ o.apply(this), this._parser = new p(u, n), this.writable = !0, this.readable = !0;
2157
2157
  var M = this;
2158
2158
  this._parser.onend = function() {
2159
2159
  M.emit("end");
@@ -2197,15 +2197,15 @@ function Hr() {
2197
2197
  }), o.prototype.on.call(M, u, n);
2198
2198
  };
2199
2199
  var y = "[CDATA[", d = "DOCTYPE", g = "http://www.w3.org/XML/1998/namespace", O = "http://www.w3.org/2000/xmlns/", I = { xml: g, xmlns: O }, x = /[:_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]/, 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\u00B7\u0300-\u036F\u203F-\u2040.\d-]/, E = /[#:_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]/, s = /[#:_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-]/;
2200
- function a(u) {
2200
+ function c(u) {
2201
2201
  return u === " " || u === `
2202
2202
  ` || u === "\r" || u === " ";
2203
2203
  }
2204
- function p(u) {
2204
+ function f(u) {
2205
2205
  return u === '"' || u === "'";
2206
2206
  }
2207
2207
  function T(u) {
2208
- return u === ">" || a(u);
2208
+ return u === ">" || c(u);
2209
2209
  }
2210
2210
  function L(u, n) {
2211
2211
  return u.test(n);
@@ -2214,7 +2214,7 @@ function Hr() {
2214
2214
  return !L(u, n);
2215
2215
  }
2216
2216
  var r = 0;
2217
- c.STATE = {
2217
+ a.STATE = {
2218
2218
  BEGIN: r++,
2219
2219
  // leading byte order mark or whitespace
2220
2220
  BEGIN_WHITESPACE: r++,
@@ -2287,13 +2287,13 @@ function Hr() {
2287
2287
  // <script> ...
2288
2288
  SCRIPT_ENDING: r++
2289
2289
  // <script> ... <
2290
- }, c.XML_ENTITIES = {
2290
+ }, a.XML_ENTITIES = {
2291
2291
  amp: "&",
2292
2292
  gt: ">",
2293
2293
  lt: "<",
2294
2294
  quot: '"',
2295
2295
  apos: "'"
2296
- }, c.ENTITIES = {
2296
+ }, a.ENTITIES = {
2297
2297
  amp: "&",
2298
2298
  gt: ">",
2299
2299
  lt: "<",
@@ -2547,13 +2547,13 @@ function Hr() {
2547
2547
  clubs: 9827,
2548
2548
  hearts: 9829,
2549
2549
  diams: 9830
2550
- }, Object.keys(c.ENTITIES).forEach(function(u) {
2551
- var n = c.ENTITIES[u], M = typeof n == "number" ? String.fromCharCode(n) : n;
2552
- c.ENTITIES[u] = M;
2550
+ }, Object.keys(a.ENTITIES).forEach(function(u) {
2551
+ var n = a.ENTITIES[u], M = typeof n == "number" ? String.fromCharCode(n) : n;
2552
+ a.ENTITIES[u] = M;
2553
2553
  });
2554
- for (var N in c.STATE)
2555
- c.STATE[c.STATE[N]] = N;
2556
- r = c.STATE;
2554
+ for (var N in a.STATE)
2555
+ a.STATE[a.STATE[N]] = N;
2556
+ r = a.STATE;
2557
2557
  function A(u, n, M) {
2558
2558
  u[n] && u[n](M);
2559
2559
  }
@@ -2573,14 +2573,14 @@ Column: ` + u.column + `
2573
2573
  Char: ` + u.c), n = new Error(n), u.error = n, A(u, "onerror", n), u;
2574
2574
  }
2575
2575
  function F(u) {
2576
- return u.sawRoot && !u.closedRoot && S(u, "Unclosed root tag"), u.state !== r.BEGIN && u.state !== r.BEGIN_WHITESPACE && u.state !== r.TEXT && j(u, "Unexpected end"), C(u), u.c = "", u.closed = !0, A(u, "onend"), f.call(u, u.strict, u.opt), u;
2576
+ return u.sawRoot && !u.closedRoot && S(u, "Unclosed root tag"), u.state !== r.BEGIN && u.state !== r.BEGIN_WHITESPACE && u.state !== r.TEXT && j(u, "Unexpected end"), C(u), u.c = "", u.closed = !0, A(u, "onend"), p.call(u, u.strict, u.opt), u;
2577
2577
  }
2578
2578
  function S(u, n) {
2579
- if (typeof u != "object" || !(u instanceof f))
2579
+ if (typeof u != "object" || !(u instanceof p))
2580
2580
  throw new Error("bad call to strictFail");
2581
2581
  u.strict && j(u, n);
2582
2582
  }
2583
- function nr(u) {
2583
+ function or(u) {
2584
2584
  u.strict || (u.tagName = u.tagName[u.looseCase]());
2585
2585
  var n = u.tags[u.tags.length - 1] || u, M = u.tag = { name: u.tagName, attributes: {} };
2586
2586
  u.opt.xmlns && (M.ns = n.ns), u.attribList.length = 0, _(u, "onopentagstart", M);
@@ -2626,21 +2626,21 @@ Actual: ` + u.attribValue
2626
2626
  var M = u.tag, w = jt(u.tagName);
2627
2627
  M.prefix = w.prefix, M.local = w.local, M.uri = M.ns[w.prefix] || "", M.prefix && !M.uri && (S(u, "Unbound namespace prefix: " + JSON.stringify(u.tagName)), M.uri = w.prefix);
2628
2628
  var R = u.tags[u.tags.length - 1] || u;
2629
- M.ns && R.ns !== M.ns && Object.keys(M.ns).forEach(function(ae) {
2629
+ M.ns && R.ns !== M.ns && Object.keys(M.ns).forEach(function(ce) {
2630
2630
  _(u, "onopennamespace", {
2631
- prefix: ae,
2632
- uri: M.ns[ae]
2631
+ prefix: ce,
2632
+ uri: M.ns[ce]
2633
2633
  });
2634
2634
  });
2635
2635
  for (var q = 0, U = u.attribList.length; q < U; q++) {
2636
- var k = u.attribList[q], $ = k[0], J = k[1], V = jt($, !0), z = V.prefix, sr = V.local, ue = z === "" ? "" : M.ns[z] || "", Ut = {
2636
+ var k = u.attribList[q], $ = k[0], J = k[1], V = jt($, !0), z = V.prefix, ar = V.local, ae = z === "" ? "" : M.ns[z] || "", Ut = {
2637
2637
  name: $,
2638
2638
  value: J,
2639
2639
  prefix: z,
2640
- local: sr,
2641
- uri: ue
2640
+ local: ar,
2641
+ uri: ae
2642
2642
  };
2643
- z && z !== "xmlns" && !ue && (S(u, "Unbound namespace prefix: " + JSON.stringify(z)), Ut.uri = z), u.tag.attributes[$] = Ut, _(u, "onattribute", Ut);
2643
+ z && z !== "xmlns" && !ae && (S(u, "Unbound namespace prefix: " + JSON.stringify(z)), Ut.uri = z), u.tag.attributes[$] = Ut, _(u, "onattribute", Ut);
2644
2644
  }
2645
2645
  u.attribList.length = 0;
2646
2646
  }
@@ -2686,18 +2686,18 @@ Actual: ` + u.attribValue
2686
2686
  }
2687
2687
  n === 0 && (u.closedRoot = !0), u.tagName = u.attribValue = u.attribName = "", u.attribList.length = 0, u.state = r.TEXT;
2688
2688
  }
2689
- function ir(u) {
2689
+ function sr(u) {
2690
2690
  var n = u.entity, M = n.toLowerCase(), w, R = "";
2691
2691
  return u.ENTITIES[n] ? u.ENTITIES[n] : u.ENTITIES[M] ? u.ENTITIES[M] : (n = M, n.charAt(0) === "#" && (n.charAt(1) === "x" ? (n = n.slice(2), w = parseInt(n, 16), R = w.toString(16)) : (n = n.slice(1), w = parseInt(n, 10), R = w.toString(10))), n = n.replace(/^0+/, ""), isNaN(w) || R.toLowerCase() !== n ? (S(u, "Invalid character entity"), "&" + u.entity + ";") : String.fromCodePoint(w));
2692
2692
  }
2693
- function oe(u, n) {
2694
- n === "<" ? (u.state = r.OPEN_WAKA, u.startTagPosition = u.position) : a(n) || (S(u, "Non-whitespace before first tag."), u.textNode = n, u.state = r.TEXT);
2695
- }
2696
2693
  function se(u, n) {
2694
+ n === "<" ? (u.state = r.OPEN_WAKA, u.startTagPosition = u.position) : c(n) || (S(u, "Non-whitespace before first tag."), u.textNode = n, u.state = r.TEXT);
2695
+ }
2696
+ function ue(u, n) {
2697
2697
  var M = "";
2698
2698
  return n < u.length && (M = u.charAt(n)), M;
2699
2699
  }
2700
- function or(u) {
2700
+ function ur(u) {
2701
2701
  var n = this;
2702
2702
  if (this.error)
2703
2703
  throw this.error;
@@ -2709,25 +2709,25 @@ Actual: ` + u.attribValue
2709
2709
  if (u === null)
2710
2710
  return F(n);
2711
2711
  typeof u == "object" && (u = u.toString());
2712
- for (var M = 0, w = ""; w = se(u, M++), n.c = w, !!w; )
2712
+ for (var M = 0, w = ""; w = ue(u, M++), n.c = w, !!w; )
2713
2713
  switch (n.trackPosition && (n.position++, w === `
2714
2714
  ` ? (n.line++, n.column = 0) : n.column++), n.state) {
2715
2715
  case r.BEGIN:
2716
2716
  if (n.state = r.BEGIN_WHITESPACE, w === "\uFEFF")
2717
2717
  continue;
2718
- oe(n, w);
2718
+ se(n, w);
2719
2719
  continue;
2720
2720
  case r.BEGIN_WHITESPACE:
2721
- oe(n, w);
2721
+ se(n, w);
2722
2722
  continue;
2723
2723
  case r.TEXT:
2724
2724
  if (n.sawRoot && !n.closedRoot) {
2725
2725
  for (var R = M - 1; w && w !== "<" && w !== "&"; )
2726
- w = se(u, M++), w && n.trackPosition && (n.position++, w === `
2726
+ w = ue(u, M++), w && n.trackPosition && (n.position++, w === `
2727
2727
  ` ? (n.line++, n.column = 0) : n.column++);
2728
2728
  n.textNode += u.substring(R, M - 1);
2729
2729
  }
2730
- w === "<" && !(n.sawRoot && n.closedRoot && !n.strict) ? (n.state = r.OPEN_WAKA, n.startTagPosition = n.position) : (!a(w) && (!n.sawRoot || n.closedRoot) && S(n, "Text data outside of root node."), w === "&" ? n.state = r.TEXT_ENTITY : n.textNode += w);
2730
+ w === "<" && !(n.sawRoot && n.closedRoot && !n.strict) ? (n.state = r.OPEN_WAKA, n.startTagPosition = n.position) : (!c(w) && (!n.sawRoot || n.closedRoot) && S(n, "Text data outside of root node."), w === "&" ? n.state = r.TEXT_ENTITY : n.textNode += w);
2731
2731
  continue;
2732
2732
  case r.SCRIPT:
2733
2733
  w === "<" ? n.state = r.SCRIPT_ENDING : n.script += w;
@@ -2738,7 +2738,7 @@ Actual: ` + u.attribValue
2738
2738
  case r.OPEN_WAKA:
2739
2739
  if (w === "!")
2740
2740
  n.state = r.SGML_DECL, n.sgmlDecl = "";
2741
- else if (!a(w)) if (L(x, w))
2741
+ else if (!c(w)) if (L(x, w))
2742
2742
  n.state = r.OPEN_TAG, n.tagName = w;
2743
2743
  else if (w === "/")
2744
2744
  n.state = r.CLOSE_TAG, n.tagName = "";
@@ -2760,19 +2760,19 @@ Actual: ` + u.attribValue
2760
2760
  n.doctype && n.doctype !== !0 && n.sgmlDecl ? (n.state = r.DOCTYPE_DTD, n.doctype += "<!" + n.sgmlDecl + w, n.sgmlDecl = "") : (n.sgmlDecl + w).toUpperCase() === y ? (_(n, "onopencdata"), n.state = r.CDATA, n.sgmlDecl = "", n.cdata = "") : (n.sgmlDecl + w).toUpperCase() === d ? (n.state = r.DOCTYPE, (n.doctype || n.sawRoot) && S(
2761
2761
  n,
2762
2762
  "Inappropriately located doctype declaration"
2763
- ), n.doctype = "", n.sgmlDecl = "") : w === ">" ? (_(n, "onsgmldeclaration", n.sgmlDecl), n.sgmlDecl = "", n.state = r.TEXT) : (p(w) && (n.state = r.SGML_DECL_QUOTED), n.sgmlDecl += w);
2763
+ ), n.doctype = "", n.sgmlDecl = "") : w === ">" ? (_(n, "onsgmldeclaration", n.sgmlDecl), n.sgmlDecl = "", n.state = r.TEXT) : (f(w) && (n.state = r.SGML_DECL_QUOTED), n.sgmlDecl += w);
2764
2764
  continue;
2765
2765
  case r.SGML_DECL_QUOTED:
2766
2766
  w === n.q && (n.state = r.SGML_DECL, n.q = ""), n.sgmlDecl += w;
2767
2767
  continue;
2768
2768
  case r.DOCTYPE:
2769
- w === ">" ? (n.state = r.TEXT, _(n, "ondoctype", n.doctype), n.doctype = !0) : (n.doctype += w, w === "[" ? n.state = r.DOCTYPE_DTD : p(w) && (n.state = r.DOCTYPE_QUOTED, n.q = w));
2769
+ w === ">" ? (n.state = r.TEXT, _(n, "ondoctype", n.doctype), n.doctype = !0) : (n.doctype += w, w === "[" ? n.state = r.DOCTYPE_DTD : f(w) && (n.state = r.DOCTYPE_QUOTED, n.q = w));
2770
2770
  continue;
2771
2771
  case r.DOCTYPE_QUOTED:
2772
2772
  n.doctype += w, w === n.q && (n.q = "", n.state = r.DOCTYPE);
2773
2773
  continue;
2774
2774
  case r.DOCTYPE_DTD:
2775
- w === "]" ? (n.doctype += w, n.state = r.DOCTYPE) : w === "<" ? (n.state = r.OPEN_WAKA, n.startTagPosition = n.position) : p(w) ? (n.doctype += w, n.state = r.DOCTYPE_DTD_QUOTED, n.q = w) : n.doctype += w;
2775
+ w === "]" ? (n.doctype += w, n.state = r.DOCTYPE) : w === "<" ? (n.state = r.OPEN_WAKA, n.startTagPosition = n.position) : f(w) ? (n.doctype += w, n.state = r.DOCTYPE_DTD_QUOTED, n.q = w) : n.doctype += w;
2776
2776
  continue;
2777
2777
  case r.DOCTYPE_DTD_QUOTED:
2778
2778
  n.doctype += w, w === n.q && (n.state = r.DOCTYPE_DTD, n.q = "");
@@ -2796,10 +2796,10 @@ Actual: ` + u.attribValue
2796
2796
  w === ">" ? (n.cdata && _(n, "oncdata", n.cdata), _(n, "onclosecdata"), n.cdata = "", n.state = r.TEXT) : w === "]" ? n.cdata += "]" : (n.cdata += "]]" + w, n.state = r.CDATA);
2797
2797
  continue;
2798
2798
  case r.PROC_INST:
2799
- w === "?" ? n.state = r.PROC_INST_ENDING : a(w) ? n.state = r.PROC_INST_BODY : n.procInstName += w;
2799
+ w === "?" ? n.state = r.PROC_INST_ENDING : c(w) ? n.state = r.PROC_INST_BODY : n.procInstName += w;
2800
2800
  continue;
2801
2801
  case r.PROC_INST_BODY:
2802
- if (!n.procInstBody && a(w))
2802
+ if (!n.procInstBody && c(w))
2803
2803
  continue;
2804
2804
  w === "?" ? n.state = r.PROC_INST_ENDING : n.procInstBody += w;
2805
2805
  continue;
@@ -2810,24 +2810,24 @@ Actual: ` + u.attribValue
2810
2810
  }), n.procInstName = n.procInstBody = "", n.state = r.TEXT) : (n.procInstBody += "?" + w, n.state = r.PROC_INST_BODY);
2811
2811
  continue;
2812
2812
  case r.OPEN_TAG:
2813
- L(P, w) ? n.tagName += w : (nr(n), w === ">" ? Z(n) : w === "/" ? n.state = r.OPEN_TAG_SLASH : (a(w) || S(n, "Invalid character in tag name"), n.state = r.ATTRIB));
2813
+ L(P, w) ? n.tagName += w : (or(n), w === ">" ? Z(n) : w === "/" ? n.state = r.OPEN_TAG_SLASH : (c(w) || S(n, "Invalid character in tag name"), n.state = r.ATTRIB));
2814
2814
  continue;
2815
2815
  case r.OPEN_TAG_SLASH:
2816
2816
  w === ">" ? (Z(n, !0), qt(n)) : (S(n, "Forward-slash in opening tag not followed by >"), n.state = r.ATTRIB);
2817
2817
  continue;
2818
2818
  case r.ATTRIB:
2819
- if (a(w))
2819
+ if (c(w))
2820
2820
  continue;
2821
2821
  w === ">" ? Z(n) : w === "/" ? n.state = r.OPEN_TAG_SLASH : L(x, w) ? (n.attribName = w, n.attribValue = "", n.state = r.ATTRIB_NAME) : S(n, "Invalid attribute name");
2822
2822
  continue;
2823
2823
  case r.ATTRIB_NAME:
2824
- w === "=" ? n.state = r.ATTRIB_VALUE : w === ">" ? (S(n, "Attribute without value"), n.attribValue = n.attribName, Bt(n), Z(n)) : a(w) ? n.state = r.ATTRIB_NAME_SAW_WHITE : L(P, w) ? n.attribName += w : S(n, "Invalid attribute name");
2824
+ w === "=" ? n.state = r.ATTRIB_VALUE : w === ">" ? (S(n, "Attribute without value"), n.attribValue = n.attribName, Bt(n), Z(n)) : c(w) ? n.state = r.ATTRIB_NAME_SAW_WHITE : L(P, w) ? n.attribName += w : S(n, "Invalid attribute name");
2825
2825
  continue;
2826
2826
  case r.ATTRIB_NAME_SAW_WHITE:
2827
2827
  if (w === "=")
2828
2828
  n.state = r.ATTRIB_VALUE;
2829
2829
  else {
2830
- if (a(w))
2830
+ if (c(w))
2831
2831
  continue;
2832
2832
  S(n, "Attribute without value"), n.tag.attributes[n.attribName] = "", n.attribValue = "", _(n, "onattribute", {
2833
2833
  name: n.attribName,
@@ -2836,9 +2836,9 @@ Actual: ` + u.attribValue
2836
2836
  }
2837
2837
  continue;
2838
2838
  case r.ATTRIB_VALUE:
2839
- if (a(w))
2839
+ if (c(w))
2840
2840
  continue;
2841
- p(w) ? (n.q = w, n.state = r.ATTRIB_VALUE_QUOTED) : (n.opt.unquotedAttributeValues || j(n, "Unquoted attribute value"), n.state = r.ATTRIB_VALUE_UNQUOTED, n.attribValue = w);
2841
+ f(w) ? (n.q = w, n.state = r.ATTRIB_VALUE_QUOTED) : (n.opt.unquotedAttributeValues || j(n, "Unquoted attribute value"), n.state = r.ATTRIB_VALUE_UNQUOTED, n.attribValue = w);
2842
2842
  continue;
2843
2843
  case r.ATTRIB_VALUE_QUOTED:
2844
2844
  if (w !== n.q) {
@@ -2848,7 +2848,7 @@ Actual: ` + u.attribValue
2848
2848
  Bt(n), n.q = "", n.state = r.ATTRIB_VALUE_CLOSED;
2849
2849
  continue;
2850
2850
  case r.ATTRIB_VALUE_CLOSED:
2851
- a(w) ? n.state = r.ATTRIB : w === ">" ? Z(n) : w === "/" ? n.state = r.OPEN_TAG_SLASH : L(x, w) ? (S(n, "No whitespace between attributes"), n.attribName = w, n.attribValue = "", n.state = r.ATTRIB_NAME) : S(n, "Invalid attribute name");
2851
+ c(w) ? n.state = r.ATTRIB : w === ">" ? Z(n) : w === "/" ? n.state = r.OPEN_TAG_SLASH : L(x, w) ? (S(n, "No whitespace between attributes"), n.attribName = w, n.attribValue = "", n.state = r.ATTRIB_NAME) : S(n, "Invalid attribute name");
2852
2852
  continue;
2853
2853
  case r.ATTRIB_VALUE_UNQUOTED:
2854
2854
  if (!T(w)) {
@@ -2859,15 +2859,15 @@ Actual: ` + u.attribValue
2859
2859
  continue;
2860
2860
  case r.CLOSE_TAG:
2861
2861
  if (n.tagName)
2862
- w === ">" ? qt(n) : L(P, w) ? n.tagName += w : n.script ? (n.script += "</" + n.tagName, n.tagName = "", n.state = r.SCRIPT) : (a(w) || S(n, "Invalid tagname in closing tag"), n.state = r.CLOSE_TAG_SAW_WHITE);
2862
+ w === ">" ? qt(n) : L(P, w) ? n.tagName += w : n.script ? (n.script += "</" + n.tagName, n.tagName = "", n.state = r.SCRIPT) : (c(w) || S(n, "Invalid tagname in closing tag"), n.state = r.CLOSE_TAG_SAW_WHITE);
2863
2863
  else {
2864
- if (a(w))
2864
+ if (c(w))
2865
2865
  continue;
2866
2866
  v(x, w) ? n.script ? (n.script += "</" + w, n.state = r.SCRIPT) : S(n, "Invalid tagname in closing tag.") : n.tagName = w;
2867
2867
  }
2868
2868
  continue;
2869
2869
  case r.CLOSE_TAG_SAW_WHITE:
2870
- if (a(w))
2870
+ if (c(w))
2871
2871
  continue;
2872
2872
  w === ">" ? qt(n) : S(n, "Invalid characters in closing tag");
2873
2873
  continue;
@@ -2887,8 +2887,8 @@ Actual: ` + u.attribValue
2887
2887
  break;
2888
2888
  }
2889
2889
  if (w === ";") {
2890
- var $ = ir(n);
2891
- n.opt.unparsedEntities && !Object.values(c.XML_ENTITIES).includes($) ? (n.entity = "", n.state = U, n.write($)) : (n[k] += $, n.entity = "", n.state = U);
2890
+ var $ = sr(n);
2891
+ n.opt.unparsedEntities && !Object.values(a.XML_ENTITIES).includes($) ? (n.entity = "", n.state = U, n.write($)) : (n[k] += $, n.entity = "", n.state = U);
2892
2892
  } else L(n.entity.length ? s : E, w) ? n.entity += w : (S(n, "Invalid character in entity name"), n[k] += "&" + n.entity + w, n.entity = "", n.state = U);
2893
2893
  continue;
2894
2894
  default:
@@ -2922,58 +2922,58 @@ Actual: ` + u.attribValue
2922
2922
  })(i);
2923
2923
  }(Vt)), Vt;
2924
2924
  }
2925
- var nt = { exports: {} }, We;
2926
- function Qr() {
2927
- if (We) return nt.exports;
2928
- We = 1;
2929
- var i = typeof Reflect == "object" ? Reflect : null, c = i && typeof i.apply == "function" ? i.apply : function(p, T, L) {
2930
- return Function.prototype.apply.call(p, T, L);
2925
+ var nt = { exports: {} }, Ge;
2926
+ function Jr() {
2927
+ if (Ge) return nt.exports;
2928
+ Ge = 1;
2929
+ var i = typeof Reflect == "object" ? Reflect : null, a = i && typeof i.apply == "function" ? i.apply : function(f, T, L) {
2930
+ return Function.prototype.apply.call(f, T, L);
2931
2931
  }, D;
2932
- i && typeof i.ownKeys == "function" ? D = i.ownKeys : Object.getOwnPropertySymbols ? D = function(p) {
2933
- return Object.getOwnPropertyNames(p).concat(Object.getOwnPropertySymbols(p));
2934
- } : D = function(p) {
2935
- return Object.getOwnPropertyNames(p);
2932
+ i && typeof i.ownKeys == "function" ? D = i.ownKeys : Object.getOwnPropertySymbols ? D = function(f) {
2933
+ return Object.getOwnPropertyNames(f).concat(Object.getOwnPropertySymbols(f));
2934
+ } : D = function(f) {
2935
+ return Object.getOwnPropertyNames(f);
2936
2936
  };
2937
- function f(a) {
2938
- console && console.warn && console.warn(a);
2937
+ function p(c) {
2938
+ console && console.warn && console.warn(c);
2939
2939
  }
2940
- var h = Number.isNaN || function(p) {
2941
- return p !== p;
2940
+ var h = Number.isNaN || function(f) {
2941
+ return f !== f;
2942
2942
  };
2943
2943
  function t() {
2944
2944
  t.init.call(this);
2945
2945
  }
2946
2946
  nt.exports = t, nt.exports.once = P, t.EventEmitter = t, t.prototype._events = void 0, t.prototype._eventsCount = 0, t.prototype._maxListeners = void 0;
2947
2947
  var e = 10;
2948
- function o(a) {
2949
- if (typeof a != "function")
2950
- throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof a);
2948
+ function o(c) {
2949
+ if (typeof c != "function")
2950
+ throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof c);
2951
2951
  }
2952
2952
  Object.defineProperty(t, "defaultMaxListeners", {
2953
2953
  enumerable: !0,
2954
2954
  get: function() {
2955
2955
  return e;
2956
2956
  },
2957
- set: function(a) {
2958
- if (typeof a != "number" || a < 0 || h(a))
2959
- throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + a + ".");
2960
- e = a;
2957
+ set: function(c) {
2958
+ if (typeof c != "number" || c < 0 || h(c))
2959
+ throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + c + ".");
2960
+ e = c;
2961
2961
  }
2962
2962
  }), t.init = function() {
2963
2963
  (this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) && (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
2964
- }, t.prototype.setMaxListeners = function(p) {
2965
- if (typeof p != "number" || p < 0 || h(p))
2966
- throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + p + ".");
2967
- return this._maxListeners = p, this;
2964
+ }, t.prototype.setMaxListeners = function(f) {
2965
+ if (typeof f != "number" || f < 0 || h(f))
2966
+ throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + f + ".");
2967
+ return this._maxListeners = f, this;
2968
2968
  };
2969
- function l(a) {
2970
- return a._maxListeners === void 0 ? t.defaultMaxListeners : a._maxListeners;
2969
+ function l(c) {
2970
+ return c._maxListeners === void 0 ? t.defaultMaxListeners : c._maxListeners;
2971
2971
  }
2972
2972
  t.prototype.getMaxListeners = function() {
2973
2973
  return l(this);
2974
- }, t.prototype.emit = function(p) {
2974
+ }, t.prototype.emit = function(f) {
2975
2975
  for (var T = [], L = 1; L < arguments.length; L++) T.push(arguments[L]);
2976
- var v = p === "error", r = this._events;
2976
+ var v = f === "error", r = this._events;
2977
2977
  if (r !== void 0)
2978
2978
  v = v && r.error === void 0;
2979
2979
  else if (!v)
@@ -2985,56 +2985,56 @@ function Qr() {
2985
2985
  var A = new Error("Unhandled error." + (N ? " (" + N.message + ")" : ""));
2986
2986
  throw A.context = N, A;
2987
2987
  }
2988
- var _ = r[p];
2988
+ var _ = r[f];
2989
2989
  if (_ === void 0)
2990
2990
  return !1;
2991
2991
  if (typeof _ == "function")
2992
- c(_, this, T);
2992
+ a(_, this, T);
2993
2993
  else
2994
2994
  for (var C = _.length, X = O(_, C), L = 0; L < C; ++L)
2995
- c(X[L], this, T);
2995
+ a(X[L], this, T);
2996
2996
  return !0;
2997
2997
  };
2998
- function b(a, p, T, L) {
2998
+ function b(c, f, T, L) {
2999
2999
  var v, r, N;
3000
- if (o(T), r = a._events, r === void 0 ? (r = a._events = /* @__PURE__ */ Object.create(null), a._eventsCount = 0) : (r.newListener !== void 0 && (a.emit(
3000
+ if (o(T), r = c._events, r === void 0 ? (r = c._events = /* @__PURE__ */ Object.create(null), c._eventsCount = 0) : (r.newListener !== void 0 && (c.emit(
3001
3001
  "newListener",
3002
- p,
3002
+ f,
3003
3003
  T.listener ? T.listener : T
3004
- ), r = a._events), N = r[p]), N === void 0)
3005
- N = r[p] = T, ++a._eventsCount;
3006
- else if (typeof N == "function" ? N = r[p] = L ? [T, N] : [N, T] : L ? N.unshift(T) : N.push(T), v = l(a), v > 0 && N.length > v && !N.warned) {
3004
+ ), r = c._events), N = r[f]), N === void 0)
3005
+ N = r[f] = T, ++c._eventsCount;
3006
+ else if (typeof N == "function" ? N = r[f] = L ? [T, N] : [N, T] : L ? N.unshift(T) : N.push(T), v = l(c), v > 0 && N.length > v && !N.warned) {
3007
3007
  N.warned = !0;
3008
- var A = new Error("Possible EventEmitter memory leak detected. " + N.length + " " + String(p) + " listeners added. Use emitter.setMaxListeners() to increase limit");
3009
- A.name = "MaxListenersExceededWarning", A.emitter = a, A.type = p, A.count = N.length, f(A);
3008
+ var A = new Error("Possible EventEmitter memory leak detected. " + N.length + " " + String(f) + " listeners added. Use emitter.setMaxListeners() to increase limit");
3009
+ A.name = "MaxListenersExceededWarning", A.emitter = c, A.type = f, A.count = N.length, p(A);
3010
3010
  }
3011
- return a;
3011
+ return c;
3012
3012
  }
3013
- t.prototype.addListener = function(p, T) {
3014
- return b(this, p, T, !1);
3015
- }, t.prototype.on = t.prototype.addListener, t.prototype.prependListener = function(p, T) {
3016
- return b(this, p, T, !0);
3013
+ t.prototype.addListener = function(f, T) {
3014
+ return b(this, f, T, !1);
3015
+ }, t.prototype.on = t.prototype.addListener, t.prototype.prependListener = function(f, T) {
3016
+ return b(this, f, T, !0);
3017
3017
  };
3018
3018
  function m() {
3019
3019
  if (!this.fired)
3020
3020
  return this.target.removeListener(this.type, this.wrapFn), this.fired = !0, arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments);
3021
3021
  }
3022
- function y(a, p, T) {
3023
- var L = { fired: !1, wrapFn: void 0, target: a, type: p, listener: T }, v = m.bind(L);
3022
+ function y(c, f, T) {
3023
+ var L = { fired: !1, wrapFn: void 0, target: c, type: f, listener: T }, v = m.bind(L);
3024
3024
  return v.listener = T, L.wrapFn = v, v;
3025
3025
  }
3026
- t.prototype.once = function(p, T) {
3027
- return o(T), this.on(p, y(this, p, T)), this;
3028
- }, t.prototype.prependOnceListener = function(p, T) {
3029
- return o(T), this.prependListener(p, y(this, p, T)), this;
3030
- }, t.prototype.removeListener = function(p, T) {
3026
+ t.prototype.once = function(f, T) {
3027
+ return o(T), this.on(f, y(this, f, T)), this;
3028
+ }, t.prototype.prependOnceListener = function(f, T) {
3029
+ return o(T), this.prependListener(f, y(this, f, T)), this;
3030
+ }, t.prototype.removeListener = function(f, T) {
3031
3031
  var L, v, r, N, A;
3032
3032
  if (o(T), v = this._events, v === void 0)
3033
3033
  return this;
3034
- if (L = v[p], L === void 0)
3034
+ if (L = v[f], L === void 0)
3035
3035
  return this;
3036
3036
  if (L === T || L.listener === T)
3037
- --this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete v[p], v.removeListener && this.emit("removeListener", p, L.listener || T));
3037
+ --this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete v[f], v.removeListener && this.emit("removeListener", f, L.listener || T));
3038
3038
  else if (typeof L != "function") {
3039
3039
  for (r = -1, N = L.length - 1; N >= 0; N--)
3040
3040
  if (L[N] === T || L[N].listener === T) {
@@ -3043,46 +3043,46 @@ function Qr() {
3043
3043
  }
3044
3044
  if (r < 0)
3045
3045
  return this;
3046
- r === 0 ? L.shift() : I(L, r), L.length === 1 && (v[p] = L[0]), v.removeListener !== void 0 && this.emit("removeListener", p, A || T);
3046
+ r === 0 ? L.shift() : I(L, r), L.length === 1 && (v[f] = L[0]), v.removeListener !== void 0 && this.emit("removeListener", f, A || T);
3047
3047
  }
3048
3048
  return this;
3049
- }, t.prototype.off = t.prototype.removeListener, t.prototype.removeAllListeners = function(p) {
3049
+ }, t.prototype.off = t.prototype.removeListener, t.prototype.removeAllListeners = function(f) {
3050
3050
  var T, L, v;
3051
3051
  if (L = this._events, L === void 0)
3052
3052
  return this;
3053
3053
  if (L.removeListener === void 0)
3054
- return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) : L[p] !== void 0 && (--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : delete L[p]), this;
3054
+ return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) : L[f] !== void 0 && (--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : delete L[f]), this;
3055
3055
  if (arguments.length === 0) {
3056
3056
  var r = Object.keys(L), N;
3057
3057
  for (v = 0; v < r.length; ++v)
3058
3058
  N = r[v], N !== "removeListener" && this.removeAllListeners(N);
3059
3059
  return this.removeAllListeners("removeListener"), this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0, this;
3060
3060
  }
3061
- if (T = L[p], typeof T == "function")
3062
- this.removeListener(p, T);
3061
+ if (T = L[f], typeof T == "function")
3062
+ this.removeListener(f, T);
3063
3063
  else if (T !== void 0)
3064
3064
  for (v = T.length - 1; v >= 0; v--)
3065
- this.removeListener(p, T[v]);
3065
+ this.removeListener(f, T[v]);
3066
3066
  return this;
3067
3067
  };
3068
- function d(a, p, T) {
3069
- var L = a._events;
3068
+ function d(c, f, T) {
3069
+ var L = c._events;
3070
3070
  if (L === void 0)
3071
3071
  return [];
3072
- var v = L[p];
3072
+ var v = L[f];
3073
3073
  return v === void 0 ? [] : typeof v == "function" ? T ? [v.listener || v] : [v] : T ? x(v) : O(v, v.length);
3074
3074
  }
3075
- t.prototype.listeners = function(p) {
3076
- return d(this, p, !0);
3077
- }, t.prototype.rawListeners = function(p) {
3078
- return d(this, p, !1);
3079
- }, t.listenerCount = function(a, p) {
3080
- return typeof a.listenerCount == "function" ? a.listenerCount(p) : g.call(a, p);
3075
+ t.prototype.listeners = function(f) {
3076
+ return d(this, f, !0);
3077
+ }, t.prototype.rawListeners = function(f) {
3078
+ return d(this, f, !1);
3079
+ }, t.listenerCount = function(c, f) {
3080
+ return typeof c.listenerCount == "function" ? c.listenerCount(f) : g.call(c, f);
3081
3081
  }, t.prototype.listenerCount = g;
3082
- function g(a) {
3083
- var p = this._events;
3084
- if (p !== void 0) {
3085
- var T = p[a];
3082
+ function g(c) {
3083
+ var f = this._events;
3084
+ if (f !== void 0) {
3085
+ var T = f[c];
3086
3086
  if (typeof T == "function")
3087
3087
  return 1;
3088
3088
  if (T !== void 0)
@@ -3093,77 +3093,77 @@ function Qr() {
3093
3093
  t.prototype.eventNames = function() {
3094
3094
  return this._eventsCount > 0 ? D(this._events) : [];
3095
3095
  };
3096
- function O(a, p) {
3097
- for (var T = new Array(p), L = 0; L < p; ++L)
3098
- T[L] = a[L];
3096
+ function O(c, f) {
3097
+ for (var T = new Array(f), L = 0; L < f; ++L)
3098
+ T[L] = c[L];
3099
3099
  return T;
3100
3100
  }
3101
- function I(a, p) {
3102
- for (; p + 1 < a.length; p++)
3103
- a[p] = a[p + 1];
3104
- a.pop();
3101
+ function I(c, f) {
3102
+ for (; f + 1 < c.length; f++)
3103
+ c[f] = c[f + 1];
3104
+ c.pop();
3105
3105
  }
3106
- function x(a) {
3107
- for (var p = new Array(a.length), T = 0; T < p.length; ++T)
3108
- p[T] = a[T].listener || a[T];
3109
- return p;
3106
+ function x(c) {
3107
+ for (var f = new Array(c.length), T = 0; T < f.length; ++T)
3108
+ f[T] = c[T].listener || c[T];
3109
+ return f;
3110
3110
  }
3111
- function P(a, p) {
3111
+ function P(c, f) {
3112
3112
  return new Promise(function(T, L) {
3113
3113
  function v(N) {
3114
- a.removeListener(p, r), L(N);
3114
+ c.removeListener(f, r), L(N);
3115
3115
  }
3116
3116
  function r() {
3117
- typeof a.removeListener == "function" && a.removeListener("error", v), T([].slice.call(arguments));
3117
+ typeof c.removeListener == "function" && c.removeListener("error", v), T([].slice.call(arguments));
3118
3118
  }
3119
- s(a, p, r, { once: !0 }), p !== "error" && E(a, v, { once: !0 });
3119
+ s(c, f, r, { once: !0 }), f !== "error" && E(c, v, { once: !0 });
3120
3120
  });
3121
3121
  }
3122
- function E(a, p, T) {
3123
- typeof a.on == "function" && s(a, "error", p, T);
3122
+ function E(c, f, T) {
3123
+ typeof c.on == "function" && s(c, "error", f, T);
3124
3124
  }
3125
- function s(a, p, T, L) {
3126
- if (typeof a.on == "function")
3127
- L.once ? a.once(p, T) : a.on(p, T);
3128
- else if (typeof a.addEventListener == "function")
3129
- a.addEventListener(p, function v(r) {
3130
- L.once && a.removeEventListener(p, v), T(r);
3125
+ function s(c, f, T, L) {
3126
+ if (typeof c.on == "function")
3127
+ L.once ? c.once(f, T) : c.on(f, T);
3128
+ else if (typeof c.addEventListener == "function")
3129
+ c.addEventListener(f, function v(r) {
3130
+ L.once && c.removeEventListener(f, v), T(r);
3131
3131
  });
3132
3132
  else
3133
- throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof a);
3133
+ throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof c);
3134
3134
  }
3135
3135
  return nt.exports;
3136
3136
  }
3137
- var it = {}, Ge;
3138
- function Zr() {
3139
- return Ge || (Ge = 1, (function() {
3137
+ var it = {}, Ye;
3138
+ function tn() {
3139
+ return Ye || (Ye = 1, (function() {
3140
3140
  it.stripBOM = function(i) {
3141
3141
  return i[0] === "\uFEFF" ? i.substring(1) : i;
3142
3142
  };
3143
3143
  }).call(it)), it;
3144
3144
  }
3145
- var Q = {}, Ye;
3146
- function rr() {
3147
- return Ye || (Ye = 1, (function() {
3145
+ var Q = {}, Ke;
3146
+ function ir() {
3147
+ return Ke || (Ke = 1, (function() {
3148
3148
  var i;
3149
- i = new RegExp(/(?!xmlns)^.*:/), Q.normalize = function(c) {
3150
- return c.toLowerCase();
3151
- }, Q.firstCharLowerCase = function(c) {
3152
- return c.charAt(0).toLowerCase() + c.slice(1);
3153
- }, Q.stripPrefix = function(c) {
3154
- return c.replace(i, "");
3155
- }, Q.parseNumbers = function(c) {
3156
- return isNaN(c) || (c = c % 1 === 0 ? parseInt(c, 10) : parseFloat(c)), c;
3157
- }, Q.parseBooleans = function(c) {
3158
- return /^(?:true|false)$/i.test(c) && (c = c.toLowerCase() === "true"), c;
3149
+ i = new RegExp(/(?!xmlns)^.*:/), Q.normalize = function(a) {
3150
+ return a.toLowerCase();
3151
+ }, Q.firstCharLowerCase = function(a) {
3152
+ return a.charAt(0).toLowerCase() + a.slice(1);
3153
+ }, Q.stripPrefix = function(a) {
3154
+ return a.replace(i, "");
3155
+ }, Q.parseNumbers = function(a) {
3156
+ return isNaN(a) || (a = a % 1 === 0 ? parseInt(a, 10) : parseFloat(a)), a;
3157
+ }, Q.parseBooleans = function(a) {
3158
+ return /^(?:true|false)$/i.test(a) && (a = a.toLowerCase() === "true"), a;
3159
3159
  };
3160
3160
  }).call(Q)), Q;
3161
3161
  }
3162
- var Ke;
3163
- function Jr() {
3164
- return Ke || (Ke = 1, function(i) {
3162
+ var ze;
3163
+ function en() {
3164
+ return ze || (ze = 1, function(i) {
3165
3165
  (function() {
3166
- var c, D, f, h, t, e, o, l, b, m = function(g, O) {
3166
+ var a, D, p, h, t, e, o, l, b, m = function(g, O) {
3167
3167
  return function() {
3168
3168
  return g.apply(O, arguments);
3169
3169
  };
@@ -3175,14 +3175,14 @@ function Jr() {
3175
3175
  }
3176
3176
  return x.prototype = O.prototype, g.prototype = new x(), g.__super__ = O.prototype, g;
3177
3177
  }, d = {}.hasOwnProperty;
3178
- l = Hr(), h = Qr(), c = Zr(), o = rr(), b = kt.setImmediate, D = $t().defaults, t = function(g) {
3178
+ l = Zr(), h = Jr(), a = tn(), o = ir(), b = kt.setImmediate, D = Wt().defaults, t = function(g) {
3179
3179
  return typeof g == "object" && g != null && Object.keys(g).length === 0;
3180
3180
  }, e = function(g, O, I) {
3181
3181
  var x, P, E;
3182
3182
  for (x = 0, P = g.length; x < P; x++)
3183
3183
  E = g[x], O = E(O, I);
3184
3184
  return O;
3185
- }, f = function(g, O, I) {
3185
+ }, p = function(g, O, I) {
3186
3186
  var x;
3187
3187
  return x = /* @__PURE__ */ Object.create(null), x.value = I, x.writable = !0, x.enumerable = !0, x.configurable = !0, Object.defineProperty(g, O, x);
3188
3188
  }, i.Parser = function(g) {
@@ -3208,7 +3208,7 @@ function Jr() {
3208
3208
  return this.saxParser.errThrown = !0, this.emit(x);
3209
3209
  }
3210
3210
  }, O.prototype.assignOrPush = function(I, x, P) {
3211
- return x in I ? (I[x] instanceof Array || f(I, x, [I[x]]), I[x].push(P)) : this.options.explicitArray ? f(I, x, [P]) : f(I, x, P);
3211
+ return x in I ? (I[x] instanceof Array || p(I, x, [I[x]]), I[x].push(P)) : this.options.explicitArray ? p(I, x, [P]) : p(I, x, P);
3212
3212
  }, O.prototype.reset = function() {
3213
3213
  var I, x, P, E;
3214
3214
  return this.removeAllListeners(), this.saxParser = l.parser(this.options.strict, {
@@ -3216,9 +3216,9 @@ function Jr() {
3216
3216
  normalize: !1,
3217
3217
  xmlns: this.options.xmlns
3218
3218
  }), this.saxParser.errThrown = !1, this.saxParser.onerror = /* @__PURE__ */ function(s) {
3219
- return function(a) {
3219
+ return function(c) {
3220
3220
  if (s.saxParser.resume(), !s.saxParser.errThrown)
3221
- return s.saxParser.errThrown = !0, s.emit("error", a);
3221
+ return s.saxParser.errThrown = !0, s.emit("error", c);
3222
3222
  };
3223
3223
  }(this), this.saxParser.onend = /* @__PURE__ */ function(s) {
3224
3224
  return function() {
@@ -3226,22 +3226,22 @@ function Jr() {
3226
3226
  return s.saxParser.ended = !0, s.emit("end", s.resultObject);
3227
3227
  };
3228
3228
  }(this), this.saxParser.ended = !1, this.EXPLICIT_CHARKEY = this.options.explicitCharkey, this.resultObject = null, E = [], I = this.options.attrkey, x = this.options.charkey, this.saxParser.onopentag = /* @__PURE__ */ function(s) {
3229
- return function(a) {
3230
- var p, T, L, v, r;
3229
+ return function(c) {
3230
+ var f, T, L, v, r;
3231
3231
  if (L = {}, L[x] = "", !s.options.ignoreAttrs) {
3232
- r = a.attributes;
3233
- for (p in r)
3234
- d.call(r, p) && (!(I in L) && !s.options.mergeAttrs && (L[I] = {}), T = s.options.attrValueProcessors ? e(s.options.attrValueProcessors, a.attributes[p], p) : a.attributes[p], v = s.options.attrNameProcessors ? e(s.options.attrNameProcessors, p) : p, s.options.mergeAttrs ? s.assignOrPush(L, v, T) : f(L[I], v, T));
3232
+ r = c.attributes;
3233
+ for (f in r)
3234
+ d.call(r, f) && (!(I in L) && !s.options.mergeAttrs && (L[I] = {}), T = s.options.attrValueProcessors ? e(s.options.attrValueProcessors, c.attributes[f], f) : c.attributes[f], v = s.options.attrNameProcessors ? e(s.options.attrNameProcessors, f) : f, s.options.mergeAttrs ? s.assignOrPush(L, v, T) : p(L[I], v, T));
3235
3235
  }
3236
- return L["#name"] = s.options.tagNameProcessors ? e(s.options.tagNameProcessors, a.name) : a.name, s.options.xmlns && (L[s.options.xmlnskey] = {
3237
- uri: a.uri,
3238
- local: a.local
3236
+ return L["#name"] = s.options.tagNameProcessors ? e(s.options.tagNameProcessors, c.name) : c.name, s.options.xmlns && (L[s.options.xmlnskey] = {
3237
+ uri: c.uri,
3238
+ local: c.local
3239
3239
  }), E.push(L);
3240
3240
  };
3241
3241
  }(this), this.saxParser.onclosetag = /* @__PURE__ */ function(s) {
3242
3242
  return function() {
3243
- var a, p, T, L, v, r, N, A, _, C;
3244
- if (r = E.pop(), v = r["#name"], (!s.options.explicitChildren || !s.options.preserveChildrenOrder) && delete r["#name"], r.cdata === !0 && (a = r.cdata, delete r.cdata), _ = E[E.length - 1], r[x].match(/^\s*$/) && !a ? (p = r[x], delete r[x]) : (s.options.trim && (r[x] = r[x].trim()), s.options.normalize && (r[x] = r[x].replace(/\s{2,}/g, " ").trim()), r[x] = s.options.valueProcessors ? e(s.options.valueProcessors, r[x], v) : r[x], Object.keys(r).length === 1 && x in r && !s.EXPLICIT_CHARKEY && (r = r[x])), t(r) && (typeof s.options.emptyTag == "function" ? r = s.options.emptyTag() : r = s.options.emptyTag !== "" ? s.options.emptyTag : p), s.options.validator != null && (C = "/" + function() {
3243
+ var c, f, T, L, v, r, N, A, _, C;
3244
+ if (r = E.pop(), v = r["#name"], (!s.options.explicitChildren || !s.options.preserveChildrenOrder) && delete r["#name"], r.cdata === !0 && (c = r.cdata, delete r.cdata), _ = E[E.length - 1], r[x].match(/^\s*$/) && !c ? (f = r[x], delete r[x]) : (s.options.trim && (r[x] = r[x].trim()), s.options.normalize && (r[x] = r[x].replace(/\s{2,}/g, " ").trim()), r[x] = s.options.valueProcessors ? e(s.options.valueProcessors, r[x], v) : r[x], Object.keys(r).length === 1 && x in r && !s.EXPLICIT_CHARKEY && (r = r[x])), t(r) && (typeof s.options.emptyTag == "function" ? r = s.options.emptyTag() : r = s.options.emptyTag !== "" ? s.options.emptyTag : f), s.options.validator != null && (C = "/" + function() {
3245
3245
  var X, j, F;
3246
3246
  for (F = [], X = 0, j = E.length; X < j; X++)
3247
3247
  L = E[X], F.push(L["#name"]);
@@ -3259,25 +3259,25 @@ function Jr() {
3259
3259
  else if (_) {
3260
3260
  _[s.options.childkey] = _[s.options.childkey] || [], N = {};
3261
3261
  for (T in r)
3262
- d.call(r, T) && f(N, T, r[T]);
3262
+ d.call(r, T) && p(N, T, r[T]);
3263
3263
  _[s.options.childkey].push(N), delete r["#name"], Object.keys(r).length === 1 && x in r && !s.EXPLICIT_CHARKEY && (r = r[x]);
3264
3264
  }
3265
3265
  }
3266
- return E.length > 0 ? s.assignOrPush(_, v, r) : (s.options.explicitRoot && (A = r, r = {}, f(r, v, A)), s.resultObject = r, s.saxParser.ended = !0, s.emit("end", s.resultObject));
3266
+ return E.length > 0 ? s.assignOrPush(_, v, r) : (s.options.explicitRoot && (A = r, r = {}, p(r, v, A)), s.resultObject = r, s.saxParser.ended = !0, s.emit("end", s.resultObject));
3267
3267
  };
3268
3268
  }(this), P = /* @__PURE__ */ function(s) {
3269
- return function(a) {
3270
- var p, T;
3269
+ return function(c) {
3270
+ var f, T;
3271
3271
  if (T = E[E.length - 1], T)
3272
- return T[x] += a, s.options.explicitChildren && s.options.preserveChildrenOrder && s.options.charsAsChildren && (s.options.includeWhiteChars || a.replace(/\\n/g, "").trim() !== "") && (T[s.options.childkey] = T[s.options.childkey] || [], p = {
3272
+ return T[x] += c, s.options.explicitChildren && s.options.preserveChildrenOrder && s.options.charsAsChildren && (s.options.includeWhiteChars || c.replace(/\\n/g, "").trim() !== "") && (T[s.options.childkey] = T[s.options.childkey] || [], f = {
3273
3273
  "#name": "__text__"
3274
- }, p[x] = a, s.options.normalize && (p[x] = p[x].replace(/\s{2,}/g, " ").trim()), T[s.options.childkey].push(p)), T;
3274
+ }, f[x] = c, s.options.normalize && (f[x] = f[x].replace(/\s{2,}/g, " ").trim()), T[s.options.childkey].push(f)), T;
3275
3275
  };
3276
3276
  }(this), this.saxParser.ontext = P, this.saxParser.oncdata = /* @__PURE__ */ function(s) {
3277
- return function(a) {
3278
- var p;
3279
- if (p = P(a), p)
3280
- return p.cdata = !0;
3277
+ return function(c) {
3278
+ var f;
3279
+ if (f = P(c), f)
3280
+ return f.cdata = !0;
3281
3281
  };
3282
3282
  }();
3283
3283
  }, O.prototype.parseString = function(I, x) {
@@ -3288,7 +3288,7 @@ function Jr() {
3288
3288
  return this.reset(), x(E);
3289
3289
  }));
3290
3290
  try {
3291
- return I = I.toString(), I.trim() === "" ? (this.emit("end", null), !0) : (I = c.stripBOM(I), this.options.async ? (this.remaining = I, b(this.processAsync), this.saxParser) : this.saxParser.write(I).close());
3291
+ return I = I.toString(), I.trim() === "" ? (this.emit("end", null), !0) : (I = a.stripBOM(I), this.options.async ? (this.remaining = I, b(this.processAsync), this.saxParser) : this.saxParser.write(I).close());
3292
3292
  } catch (E) {
3293
3293
  if (P = E, this.saxParser.errThrown || this.saxParser.ended) {
3294
3294
  if (this.saxParser.ended)
@@ -3298,8 +3298,8 @@ function Jr() {
3298
3298
  }, O.prototype.parseStringPromise = function(I) {
3299
3299
  return new Promise(/* @__PURE__ */ function(x) {
3300
3300
  return function(P, E) {
3301
- return x.parseString(I, function(s, a) {
3302
- return s ? E(s) : P(a);
3301
+ return x.parseString(I, function(s, c) {
3302
+ return s ? E(s) : P(c);
3303
3303
  });
3304
3304
  };
3305
3305
  }(this));
@@ -3314,10 +3314,10 @@ function Jr() {
3314
3314
  }).call(rt);
3315
3315
  }(rt)), rt;
3316
3316
  }
3317
- var ze;
3318
- function tn() {
3319
- return ze || (ze = 1, (function() {
3320
- var i, c, D, f, h = function(e, o) {
3317
+ var He;
3318
+ function rn() {
3319
+ return He || (He = 1, (function() {
3320
+ var i, a, D, p, h = function(e, o) {
3321
3321
  for (var l in o)
3322
3322
  t.call(o, l) && (e[l] = o[l]);
3323
3323
  function b() {
@@ -3325,7 +3325,7 @@ function tn() {
3325
3325
  }
3326
3326
  return b.prototype = o.prototype, e.prototype = new b(), e.__super__ = o.prototype, e;
3327
3327
  }, t = {}.hasOwnProperty;
3328
- c = $t(), i = Yr(), D = Jr(), f = rr(), G.defaults = c.defaults, G.processors = f, G.ValidationError = function(e) {
3328
+ a = Wt(), i = zr(), D = en(), p = ir(), G.defaults = a.defaults, G.processors = p, G.ValidationError = function(e) {
3329
3329
  h(o, e);
3330
3330
  function o(l) {
3331
3331
  this.message = l;
@@ -3334,36 +3334,42 @@ function tn() {
3334
3334
  }(Error), G.Builder = i.Builder, G.Parser = D.Parser, G.parseString = D.parseString, G.parseStringPromise = D.parseStringPromise;
3335
3335
  }).call(G)), G;
3336
3336
  }
3337
- var en = tn();
3338
- const rn = (i) => i !== null && typeof i == "object" && i.hasOwnProperty("rss") && typeof i.rss == "object" && i.rss !== null && i.rss.hasOwnProperty("channel") && Array.isArray(i.rss.channel), nn = (i) => typeof i == "object" && i !== null && i.hasOwnProperty("title") && Array.isArray(i.title) && i.hasOwnProperty("description") && Array.isArray(i.description) && i.hasOwnProperty("link") && Array.isArray(i.link) && i.hasOwnProperty("image") && Array.isArray(i.image) && i.image.every(on) && i.hasOwnProperty("generator") && Array.isArray(i.generator) && i.hasOwnProperty("lastBuildDate") && Array.isArray(i.lastBuildDate) && i.hasOwnProperty("atom:link") && Array.isArray(i["atom:link"]) && i["atom:link"].every(sn) && i.hasOwnProperty("copyright") && Array.isArray(i.copyright) && i.hasOwnProperty("language") && Array.isArray(i.language) && i.hasOwnProperty("webMaster") && Array.isArray(i.webMaster) && i.hasOwnProperty("itunes:owner") && Array.isArray(i["itunes:owner"]) && i["itunes:owner"].every(un) && i.hasOwnProperty("itunes:author") && Array.isArray(i["itunes:author"]) && i.hasOwnProperty("googleplay:owner") && Array.isArray(i["googleplay:owner"]) && i.hasOwnProperty("googleplay:email") && Array.isArray(i["googleplay:email"]) && i.hasOwnProperty("googleplay:author") && Array.isArray(i["googleplay:author"]) && i.hasOwnProperty("item") && Array.isArray(i.item) && i.item.every(an), on = (i) => typeof i == "object" && i !== null && i.hasOwnProperty("url") && Array.isArray(i.url) && i.hasOwnProperty("title") && Array.isArray(i.title) && i.hasOwnProperty("link") && Array.isArray(i.link), sn = (i) => typeof i == "object" && i !== null && i.hasOwnProperty("$") && typeof i.$ == "object" && i.$ !== null && i.$.hasOwnProperty("href") && typeof i.$.href == "string" && i.$.hasOwnProperty("rel") && typeof i.$.rel == "string" && i.$.hasOwnProperty("type") && typeof i.$.type == "string", un = (i) => typeof i == "object" && i !== null && i.hasOwnProperty("itunes:email") && Array.isArray(i["itunes:email"]) && i.hasOwnProperty("itunes:name") && Array.isArray(i["itunes:name"]), an = (i) => typeof i == "object" && i !== null && i.hasOwnProperty("title") && Array.isArray(i.title) && i.hasOwnProperty("description") && Array.isArray(i.description) && i.hasOwnProperty("link") && Array.isArray(i.link) && i.hasOwnProperty("guid") && Array.isArray(i.guid) && i.guid.every(cn) && i.hasOwnProperty("dc:creator") && Array.isArray(i["dc:creator"]) && i.hasOwnProperty("pubDate") && Array.isArray(i.pubDate) && i.hasOwnProperty("enclosure") && Array.isArray(i.enclosure) && i.enclosure.every(ln) && i.hasOwnProperty("content:encoded") && Array.isArray(i["content:encoded"]), cn = (i) => typeof i == "object" && i !== null && i.hasOwnProperty("_") && typeof i._ == "string" && i.hasOwnProperty("$") && typeof i.$ == "object" && i.$ !== null && i.$.hasOwnProperty("isPermaLink") && typeof i.$.isPermaLink == "string", ln = (i) => typeof i == "object" && i !== null && i.hasOwnProperty("$") && typeof i.$ == "object" && i.$ !== null && i.$.hasOwnProperty("url") && typeof i.$.url == "string" && i.$.hasOwnProperty("length") && typeof i.$.length == "string" && i.$.hasOwnProperty("type") && typeof i.$.type == "string", fn = "https://api.allorigins.win/get?url=", pn = async (i, c = !1) => {
3337
+ var nn = rn();
3338
+ const on = (i) => i !== null && typeof i == "object" && i.hasOwnProperty("rss") && typeof i.rss == "object" && i.rss !== null && i.rss.hasOwnProperty("channel") && Array.isArray(i.rss.channel), sn = (i) => typeof i == "object" && i !== null && i.hasOwnProperty("title") && Array.isArray(i.title) && i.hasOwnProperty("description") && Array.isArray(i.description) && i.hasOwnProperty("link") && Array.isArray(i.link) && i.hasOwnProperty("image") && Array.isArray(i.image) && i.image.every(un) && i.hasOwnProperty("generator") && Array.isArray(i.generator) && i.hasOwnProperty("lastBuildDate") && Array.isArray(i.lastBuildDate) && i.hasOwnProperty("atom:link") && Array.isArray(i["atom:link"]) && i["atom:link"].every(an) && i.hasOwnProperty("copyright") && Array.isArray(i.copyright) && i.hasOwnProperty("language") && Array.isArray(i.language) && i.hasOwnProperty("webMaster") && Array.isArray(i.webMaster) && i.hasOwnProperty("itunes:owner") && Array.isArray(i["itunes:owner"]) && i["itunes:owner"].every(cn) && i.hasOwnProperty("itunes:author") && Array.isArray(i["itunes:author"]) && i.hasOwnProperty("googleplay:owner") && Array.isArray(i["googleplay:owner"]) && i.hasOwnProperty("googleplay:email") && Array.isArray(i["googleplay:email"]) && i.hasOwnProperty("googleplay:author") && Array.isArray(i["googleplay:author"]) && i.hasOwnProperty("item") && Array.isArray(i.item) && i.item.every(ln), un = (i) => typeof i == "object" && i !== null && i.hasOwnProperty("url") && Array.isArray(i.url) && i.hasOwnProperty("title") && Array.isArray(i.title) && i.hasOwnProperty("link") && Array.isArray(i.link), an = (i) => typeof i == "object" && i !== null && i.hasOwnProperty("$") && typeof i.$ == "object" && i.$ !== null && i.$.hasOwnProperty("href") && typeof i.$.href == "string" && i.$.hasOwnProperty("rel") && typeof i.$.rel == "string" && i.$.hasOwnProperty("type") && typeof i.$.type == "string", cn = (i) => typeof i == "object" && i !== null && i.hasOwnProperty("itunes:email") && Array.isArray(i["itunes:email"]) && i.hasOwnProperty("itunes:name") && Array.isArray(i["itunes:name"]), ln = (i) => typeof i == "object" && i !== null && i.hasOwnProperty("title") && Array.isArray(i.title) && i.hasOwnProperty("description") && Array.isArray(i.description) && i.hasOwnProperty("link") && Array.isArray(i.link) && i.hasOwnProperty("guid") && Array.isArray(i.guid) && i.guid.every(fn) && i.hasOwnProperty("dc:creator") && Array.isArray(i["dc:creator"]) && i.hasOwnProperty("pubDate") && Array.isArray(i.pubDate) && i.hasOwnProperty("enclosure") && Array.isArray(i.enclosure) && i.enclosure.every(pn) && i.hasOwnProperty("content:encoded") && Array.isArray(i["content:encoded"]), fn = (i) => typeof i == "object" && i !== null && i.hasOwnProperty("_") && typeof i._ == "string" && i.hasOwnProperty("$") && typeof i.$ == "object" && i.$ !== null && i.$.hasOwnProperty("isPermaLink") && typeof i.$.isPermaLink == "string", pn = (i) => typeof i == "object" && i !== null && i.hasOwnProperty("$") && typeof i.$ == "object" && i.$ !== null && i.$.hasOwnProperty("url") && typeof i.$.url == "string" && i.$.hasOwnProperty("length") && typeof i.$.length == "string" && i.$.hasOwnProperty("type") && typeof i.$.type == "string", hn = (i) => i && i.contents && i.status.http_code == 200, dn = "https://api.allorigins.win/get?url=", $t = typeof document < "u", yn = async (i) => {
3339
3339
  try {
3340
- const D = c ? `${fn}${encodeURIComponent(i)}` : i, f = await fetch(D);
3341
- if (f.ok) return f.text();
3340
+ const a = $t ? `${dn}${encodeURIComponent(i)}` : i, D = await fetch(a);
3341
+ if (D.ok) return $t ? D.json() : D.text();
3342
3342
  } catch {
3343
3343
  throw new Error("Error occurred fetching Feed from Substack");
3344
3344
  }
3345
- }, hn = async (i = "", c) => {
3346
- en.parseString(i, c);
3347
- }, dn = (i) => ({
3345
+ }, Qe = async (i = "", a) => {
3346
+ nn.parseString(i, a);
3347
+ }, mn = (i) => ({
3348
3348
  title: i.title[0],
3349
3349
  description: i.description[0],
3350
3350
  link: i.link[0],
3351
3351
  pubDate: i.pubDate[0],
3352
3352
  content: i["content:encoded"][0]
3353
- }), yn = async (i, c = !1, D) => {
3354
- const f = await pn(i, c);
3355
- if (!D) return f;
3356
- await hn(f, D);
3357
- }, mn = (i, c) => {
3358
- if (!rn(i)) throw new Error("Feed is not in the correct format");
3353
+ }), gn = async (i, a) => {
3354
+ const D = await yn(i);
3355
+ if (!a) return D;
3356
+ if (!$t) {
3357
+ await Qe(D, a);
3358
+ return;
3359
+ }
3360
+ if (!hn(D))
3361
+ throw new Error("Error occurred fetching Feed from Substack");
3362
+ await Qe(D.contents, a);
3363
+ }, wn = (i, a) => {
3364
+ if (!on(i)) throw new Error("Feed is not in the correct format");
3359
3365
  try {
3360
- return i.rss.channel.filter(nn).filter((D) => D.link[0] === c);
3366
+ return i.rss.channel.filter(sn).filter((D) => D.link[0] === a);
3361
3367
  } catch {
3362
- throw new Error(`Error occurred fetching Feed by Link: ${c}`);
3368
+ throw new Error(`Error occurred fetching Feed by Link: ${a}`);
3363
3369
  }
3364
- }, gn = (i) => i[0].item.map(dn);
3370
+ }, Tn = (i) => i[0].item.map(mn);
3365
3371
  export {
3366
- mn as getFeedByLink,
3367
- gn as getPosts,
3368
- yn as getSubstackFeed
3372
+ wn as getFeedByLink,
3373
+ Tn as getPosts,
3374
+ gn as getSubstackFeed
3369
3375
  };