lone-format 0.11.7 → 0.12.0

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.
@@ -2223,7 +2223,7 @@ function RT() {
2223
2223
  }, this.reduceActions[27] = function(e) {
2224
2224
  return e[0].locationPath = e[2], e[0];
2225
2225
  }, this.reduceActions[28] = function(e) {
2226
- return e[0].locationPath = e[2], e[0].locationPath.steps.unshift(new $($.DESCENDANTORSELF, _.nodeTest, [])), e[0];
2226
+ return e[0].locationPath = e[2], e[0].locationPath.steps.unshift(new $($.DESCENDANTORSELF, C.nodeTest, [])), e[0];
2227
2227
  }, this.reduceActions[29] = function(e) {
2228
2228
  return new d(e[0], [], void 0);
2229
2229
  }, this.reduceActions[30] = function(e) {
@@ -2267,27 +2267,27 @@ function RT() {
2267
2267
  }, this.reduceActions[57] = function(e) {
2268
2268
  return $.ATTRIBUTE;
2269
2269
  }, this.reduceActions[59] = function(e) {
2270
- return e[0] == "comment" ? _.commentTest : e[0] == "text" ? _.textTest : e[0] == "processing-instruction" ? _.anyPiTest : e[0] == "node" ? _.nodeTest : new _(-1, void 0);
2270
+ return e[0] == "comment" ? C.commentTest : e[0] == "text" ? C.textTest : e[0] == "processing-instruction" ? C.anyPiTest : e[0] == "node" ? C.nodeTest : new C(-1, void 0);
2271
2271
  }, this.reduceActions[60] = function(e) {
2272
- return new _.PITest(e[2]);
2272
+ return new C.PITest(e[2]);
2273
2273
  }, this.reduceActions[61] = function(e) {
2274
2274
  return e[1];
2275
2275
  }, this.reduceActions[63] = function(e) {
2276
- return e[1].absolute = !0, e[1].steps.unshift(new $($.DESCENDANTORSELF, _.nodeTest, [])), e[1];
2276
+ return e[1].absolute = !0, e[1].steps.unshift(new $($.DESCENDANTORSELF, C.nodeTest, [])), e[1];
2277
2277
  }, this.reduceActions[64] = function(e) {
2278
- return e[0].steps.push(new $($.DESCENDANTORSELF, _.nodeTest, [])), e[0].steps.push(e[2]), e[0];
2278
+ return e[0].steps.push(new $($.DESCENDANTORSELF, C.nodeTest, [])), e[0].steps.push(e[2]), e[0];
2279
2279
  }, this.reduceActions[65] = function(e) {
2280
- return new $($.SELF, _.nodeTest, []);
2280
+ return new $($.SELF, C.nodeTest, []);
2281
2281
  }, this.reduceActions[66] = function(e) {
2282
- return new $($.PARENT, _.nodeTest, []);
2282
+ return new $($.PARENT, C.nodeTest, []);
2283
2283
  }, this.reduceActions[67] = function(e) {
2284
2284
  return new ne(e[1]);
2285
2285
  }, this.reduceActions[68] = function(e) {
2286
- return _.nameTestAny;
2286
+ return C.nameTestAny;
2287
2287
  }, this.reduceActions[69] = function(e) {
2288
- return new _.NameTestPrefixAny(e[0].split(":")[0]);
2288
+ return new C.NameTestPrefixAny(e[0].split(":")[0]);
2289
2289
  }, this.reduceActions[70] = function(e) {
2290
- return new _.NameTestQName(e[0]);
2290
+ return new C.NameTestQName(e[0]);
2291
2291
  };
2292
2292
  }, c.actionTable = [
2293
2293
  " s s sssssssss s ss s ss",
@@ -3358,47 +3358,47 @@ function RT() {
3358
3358
  $.PRECEDING,
3359
3359
  $.PRECEDINGSIBLING
3360
3360
  ];
3361
- _.prototype = new Object(), _.prototype.constructor = _, _.superclass = Object.prototype;
3362
- function _(e, n) {
3361
+ C.prototype = new Object(), C.prototype.constructor = C, C.superclass = Object.prototype;
3362
+ function C(e, n) {
3363
3363
  arguments.length > 0 && this.init(e, n);
3364
3364
  }
3365
- _.prototype.init = function(e, n) {
3365
+ C.prototype.init = function(e, n) {
3366
3366
  this.type = e, this.value = n;
3367
- }, _.prototype.toString = function() {
3367
+ }, C.prototype.toString = function() {
3368
3368
  return "<unknown nodetest type>";
3369
- }, _.prototype.matches = function(e, n) {
3369
+ }, C.prototype.matches = function(e, n) {
3370
3370
  console.warn("unknown node test type");
3371
- }, _.NAMETESTANY = 0, _.NAMETESTPREFIXANY = 1, _.NAMETESTQNAME = 2, _.COMMENT = 3, _.TEXT = 4, _.PI = 5, _.NODE = 6, _.isNodeType = function(e) {
3371
+ }, C.NAMETESTANY = 0, C.NAMETESTPREFIXANY = 1, C.NAMETESTQNAME = 2, C.COMMENT = 3, C.TEXT = 4, C.PI = 5, C.NODE = 6, C.isNodeType = function(e) {
3372
3372
  return function(n) {
3373
3373
  return f(e, n.nodeType);
3374
3374
  };
3375
- }, _.makeNodeTestType = function(e, n, S) {
3375
+ }, C.makeNodeTestType = function(e, n, S) {
3376
3376
  var L = S || function() {
3377
3377
  };
3378
- return L.prototype = new _(e), L.prototype.constructor = L, Pe(L.prototype, n), L;
3379
- }, _.makeNodeTypeTest = function(e, n, S) {
3380
- return new (_.makeNodeTestType(e, {
3381
- matches: _.isNodeType(n),
3378
+ return L.prototype = new C(e), L.prototype.constructor = L, Pe(L.prototype, n), L;
3379
+ }, C.makeNodeTypeTest = function(e, n, S) {
3380
+ return new (C.makeNodeTestType(e, {
3381
+ matches: C.isNodeType(n),
3382
3382
  toString: h(S)
3383
3383
  }))();
3384
- }, _.hasPrefix = function(e) {
3384
+ }, C.hasPrefix = function(e) {
3385
3385
  return e.prefix || (e.nodeName || e.tagName).indexOf(":") !== -1;
3386
- }, _.isElementOrAttribute = _.isNodeType([1, 2]), _.nameSpaceMatches = function(e, n, S) {
3386
+ }, C.isElementOrAttribute = C.isNodeType([1, 2]), C.nameSpaceMatches = function(e, n, S) {
3387
3387
  var L = S.namespaceURI || "";
3388
3388
  if (!e)
3389
- return !L || n.allowAnyNamespaceForNoPrefix && !_.hasPrefix(S);
3389
+ return !L || n.allowAnyNamespaceForNoPrefix && !C.hasPrefix(S);
3390
3390
  var u = n.namespaceResolver.getNamespace(e, n.expressionContextNode);
3391
3391
  if (u == null)
3392
3392
  throw new Error("Cannot resolve QName " + e);
3393
3393
  return u === L;
3394
- }, _.localNameMatches = function(e, n, S) {
3394
+ }, C.localNameMatches = function(e, n, S) {
3395
3395
  var L = S.localName || S.nodeName;
3396
3396
  return n.caseInsensitive ? e.toLowerCase() === L.toLowerCase() : e === L;
3397
- }, _.NameTestPrefixAny = _.makeNodeTestType(
3398
- _.NAMETESTPREFIXANY,
3397
+ }, C.NameTestPrefixAny = C.makeNodeTestType(
3398
+ C.NAMETESTPREFIXANY,
3399
3399
  {
3400
3400
  matches: function(e, n) {
3401
- return _.isElementOrAttribute(e) && _.nameSpaceMatches(this.prefix, n, e);
3401
+ return C.isElementOrAttribute(e) && C.nameSpaceMatches(this.prefix, n, e);
3402
3402
  },
3403
3403
  toString: function() {
3404
3404
  return this.prefix + ":*";
@@ -3407,17 +3407,17 @@ function RT() {
3407
3407
  function(n) {
3408
3408
  this.prefix = n;
3409
3409
  }
3410
- ), _.NameTestQName = _.makeNodeTestType(
3411
- _.NAMETESTQNAME,
3410
+ ), C.NameTestQName = C.makeNodeTestType(
3411
+ C.NAMETESTQNAME,
3412
3412
  {
3413
3413
  matches: function(e, n) {
3414
- return _.isNodeType(
3414
+ return C.isNodeType(
3415
3415
  [
3416
3416
  z.ELEMENT_NODE,
3417
3417
  z.ATTRIBUTE_NODE,
3418
3418
  z.NAMESPACE_NODE
3419
3419
  ]
3420
- )(e) && _.nameSpaceMatches(this.prefix, n, e) && _.localNameMatches(this.localName, n, e);
3420
+ )(e) && C.nameSpaceMatches(this.prefix, n, e) && C.localNameMatches(this.localName, n, e);
3421
3421
  },
3422
3422
  toString: function() {
3423
3423
  return this.name;
@@ -3427,9 +3427,9 @@ function RT() {
3427
3427
  var S = n.split(":");
3428
3428
  this.name = n, this.prefix = S.length > 1 ? S[0] : null, this.localName = S[S.length > 1 ? 1 : 0];
3429
3429
  }
3430
- ), _.PITest = _.makeNodeTestType(_.PI, {
3430
+ ), C.PITest = C.makeNodeTestType(C.PI, {
3431
3431
  matches: function(e, n) {
3432
- return _.isNodeType(
3432
+ return C.isNodeType(
3433
3433
  [z.PROCESSING_INSTRUCTION_NODE]
3434
3434
  )(e) && (e.target || e.nodeName) === this.name;
3435
3435
  },
@@ -3438,27 +3438,27 @@ function RT() {
3438
3438
  }
3439
3439
  }, function(e) {
3440
3440
  this.name = e;
3441
- }), _.nameTestAny = _.makeNodeTypeTest(
3442
- _.NAMETESTANY,
3441
+ }), C.nameTestAny = C.makeNodeTypeTest(
3442
+ C.NAMETESTANY,
3443
3443
  [
3444
3444
  z.ELEMENT_NODE,
3445
3445
  z.ATTRIBUTE_NODE,
3446
3446
  z.NAMESPACE_NODE
3447
3447
  ],
3448
3448
  "*"
3449
- ), _.textTest = _.makeNodeTypeTest(
3450
- _.TEXT,
3449
+ ), C.textTest = C.makeNodeTypeTest(
3450
+ C.TEXT,
3451
3451
  [
3452
3452
  z.TEXT_NODE,
3453
3453
  z.CDATA_SECTION_NODE
3454
3454
  ],
3455
3455
  "text()"
3456
- ), _.commentTest = _.makeNodeTypeTest(
3457
- _.COMMENT,
3456
+ ), C.commentTest = C.makeNodeTypeTest(
3457
+ C.COMMENT,
3458
3458
  [z.COMMENT_NODE],
3459
3459
  "comment()"
3460
- ), _.nodeTest = _.makeNodeTypeTest(
3461
- _.NODE,
3460
+ ), C.nodeTest = C.makeNodeTypeTest(
3461
+ C.NODE,
3462
3462
  [
3463
3463
  z.ELEMENT_NODE,
3464
3464
  z.ATTRIBUTE_NODE,
@@ -3469,8 +3469,8 @@ function RT() {
3469
3469
  z.DOCUMENT_NODE
3470
3470
  ],
3471
3471
  "node()"
3472
- ), _.anyPiTest = _.makeNodeTypeTest(
3473
- _.PI,
3472
+ ), C.anyPiTest = C.makeNodeTypeTest(
3473
+ C.PI,
3474
3474
  [z.PROCESSING_INSTRUCTION_NODE],
3475
3475
  "processing-instruction()"
3476
3476
  ), ne.prototype = new g(), ne.prototype.constructor = ne, ne.superclass = g.prototype;
@@ -4394,7 +4394,7 @@ function RT() {
4394
4394
  XPathResult: ge,
4395
4395
  Step: $,
4396
4396
  PathExpr: d,
4397
- NodeTest: _,
4397
+ NodeTest: C,
4398
4398
  LocationPath: ue,
4399
4399
  OrOperation: Ae,
4400
4400
  AndOperation: ce,
@@ -4441,7 +4441,7 @@ function RT() {
4441
4441
  }, r.select1 = function(e, n) {
4442
4442
  return r.select(e, n, !0);
4443
4443
  };
4444
- var C = function(e) {
4444
+ var _ = function(e) {
4445
4445
  return Array.isArray(e) && e.every(i);
4446
4446
  }, G = function(e) {
4447
4447
  return function(n) {
@@ -4452,7 +4452,7 @@ function RT() {
4452
4452
  r,
4453
4453
  {
4454
4454
  isNodeLike: i,
4455
- isArrayOfNodes: C,
4455
+ isArrayOfNodes: _,
4456
4456
  isElement: G(z.ELEMENT_NODE),
4457
4457
  isAttribute: G(z.ATTRIBUTE_NODE),
4458
4458
  isTextNode: G(z.TEXT_NODE),
@@ -4613,17 +4613,17 @@ function wr() {
4613
4613
  };
4614
4614
  }
4615
4615
  function N(a, R) {
4616
- for (var C in a)
4617
- Object.prototype.hasOwnProperty.call(a, C) && (R[C] = a[C]);
4616
+ for (var _ in a)
4617
+ Object.prototype.hasOwnProperty.call(a, _) && (R[_] = a[_]);
4618
4618
  }
4619
4619
  function A(a, R) {
4620
- var C = a.prototype;
4621
- if (!(C instanceof R)) {
4620
+ var _ = a.prototype;
4621
+ if (!(_ instanceof R)) {
4622
4622
  let G = function() {
4623
4623
  };
4624
- G.prototype = R.prototype, G = new G(), N(C, G), a.prototype = C = G;
4624
+ G.prototype = R.prototype, G = new G(), N(_, G), a.prototype = _ = G;
4625
4625
  }
4626
- C.constructor != a && (typeof a != "function" && console.error("unknown Class:" + a), C.constructor = a);
4626
+ _.constructor != a && (typeof a != "function" && console.error("unknown Class:" + a), _.constructor = a);
4627
4627
  }
4628
4628
  var I = {}, O = I.ELEMENT_NODE = 1, f = I.ATTRIBUTE_NODE = 2, h = I.TEXT_NODE = 3, H = I.CDATA_SECTION_NODE = 4, J = I.ENTITY_REFERENCE_NODE = 5, M = I.ENTITY_NODE = 6, ee = I.PROCESSING_INSTRUCTION_NODE = 7, te = I.COMMENT_NODE = 8, k = I.DOCUMENT_NODE = 9, pe = I.DOCUMENT_TYPE_NODE = 10, Pe = I.DOCUMENT_FRAGMENT_NODE = 11, z = I.NOTATION_NODE = 12, c = {}, Re = {};
4629
4629
  c.INDEX_SIZE_ERR = (Re[1] = "Index size error", 1), c.DOMSTRING_SIZE_ERR = (Re[2] = "DOMString size error", 2);
@@ -4635,10 +4635,10 @@ function wr() {
4635
4635
  c.INVALID_STATE_ERR = (Re[11] = "Invalid state", 11), c.SYNTAX_ERR = (Re[12] = "Syntax error", 12), c.INVALID_MODIFICATION_ERR = (Re[13] = "Invalid modification", 13), c.NAMESPACE_ERR = (Re[14] = "Invalid namespace", 14), c.INVALID_ACCESS_ERR = (Re[15] = "Invalid access", 15);
4636
4636
  function w(a, R) {
4637
4637
  if (R instanceof Error)
4638
- var C = R;
4638
+ var _ = R;
4639
4639
  else
4640
- C = this, Error.call(this, Re[a]), this.message = Re[a], Error.captureStackTrace && Error.captureStackTrace(this, w);
4641
- return C.code = a, R && (this.message = this.message + ": " + R), C;
4640
+ _ = this, Error.call(this, Re[a]), this.message = Re[a], Error.captureStackTrace && Error.captureStackTrace(this, w);
4641
+ return _.code = a, R && (this.message = this.message + ": " + R), _;
4642
4642
  }
4643
4643
  w.prototype = Error.prototype, N(c, w);
4644
4644
  function X() {
@@ -4661,9 +4661,9 @@ function wr() {
4661
4661
  return a >= 0 && a < this.length ? this[a] : null;
4662
4662
  },
4663
4663
  toString: function(a, R) {
4664
- for (var C = [], G = 0; G < this.length; G++)
4665
- Je(this[G], C, a, R);
4666
- return C.join("");
4664
+ for (var _ = [], G = 0; G < this.length; G++)
4665
+ Je(this[G], _, a, R);
4666
+ return _.join("");
4667
4667
  },
4668
4668
  /**
4669
4669
  * @private
@@ -4688,11 +4688,11 @@ function wr() {
4688
4688
  function ce(a) {
4689
4689
  var R = a._node._inc || a._node.ownerDocument._inc;
4690
4690
  if (a._inc !== R) {
4691
- var C = a._refresh(a._node);
4692
- if (ge(a, "length", C.length), !a.$$length || C.length < a.$$length)
4693
- for (var G = C.length; G in a; G++)
4691
+ var _ = a._refresh(a._node);
4692
+ if (ge(a, "length", _.length), !a.$$length || _.length < a.$$length)
4693
+ for (var G = _.length; G in a; G++)
4694
4694
  Object.prototype.hasOwnProperty.call(a, G) && delete a[G];
4695
- N(C, a), a._inc = R;
4695
+ N(_, a), a._inc = R;
4696
4696
  }
4697
4697
  }
4698
4698
  Ae.prototype.item = function(a) {
@@ -4701,52 +4701,52 @@ function wr() {
4701
4701
  function fe() {
4702
4702
  }
4703
4703
  function v(a, R) {
4704
- for (var C = a.length; C--; )
4705
- if (a[C] === R)
4706
- return C;
4704
+ for (var _ = a.length; _--; )
4705
+ if (a[_] === R)
4706
+ return _;
4707
4707
  }
4708
- function Z(a, R, C, G) {
4709
- if (G ? R[v(R, G)] = C : R[R.length++] = C, a) {
4710
- C.ownerElement = a;
4708
+ function Z(a, R, _, G) {
4709
+ if (G ? R[v(R, G)] = _ : R[R.length++] = _, a) {
4710
+ _.ownerElement = a;
4711
4711
  var e = a.ownerDocument;
4712
- e && (G && m(e, a, G), P(e, a, C));
4712
+ e && (G && m(e, a, G), P(e, a, _));
4713
4713
  }
4714
4714
  }
4715
- function Ce(a, R, C) {
4716
- var G = v(R, C);
4715
+ function Ce(a, R, _) {
4716
+ var G = v(R, _);
4717
4717
  if (G >= 0) {
4718
4718
  for (var e = R.length - 1; G < e; )
4719
4719
  R[G] = R[++G];
4720
4720
  if (R.length = e, a) {
4721
4721
  var n = a.ownerDocument;
4722
- n && (m(n, a, C), C.ownerElement = null);
4722
+ n && (m(n, a, _), _.ownerElement = null);
4723
4723
  }
4724
4724
  } else
4725
- throw new w(g, new Error(a.tagName + "@" + C));
4725
+ throw new w(g, new Error(a.tagName + "@" + _));
4726
4726
  }
4727
4727
  fe.prototype = {
4728
4728
  length: 0,
4729
4729
  item: X.prototype.item,
4730
4730
  getNamedItem: function(a) {
4731
4731
  for (var R = this.length; R--; ) {
4732
- var C = this[R];
4733
- if (C.nodeName == a)
4734
- return C;
4732
+ var _ = this[R];
4733
+ if (_.nodeName == a)
4734
+ return _;
4735
4735
  }
4736
4736
  },
4737
4737
  setNamedItem: function(a) {
4738
4738
  var R = a.ownerElement;
4739
4739
  if (R && R != this._ownerElement)
4740
4740
  throw new w(Q);
4741
- var C = this.getNamedItem(a.nodeName);
4742
- return Z(this._ownerElement, this, a, C), C;
4741
+ var _ = this.getNamedItem(a.nodeName);
4742
+ return Z(this._ownerElement, this, a, _), _;
4743
4743
  },
4744
4744
  /* returns Node */
4745
4745
  setNamedItemNS: function(a) {
4746
- var R = a.ownerElement, C;
4746
+ var R = a.ownerElement, _;
4747
4747
  if (R && R != this._ownerElement)
4748
4748
  throw new w(Q);
4749
- return C = this.getNamedItemNS(a.namespaceURI, a.localName), Z(this._ownerElement, this, a, C), C;
4749
+ return _ = this.getNamedItemNS(a.namespaceURI, a.localName), Z(this._ownerElement, this, a, _), _;
4750
4750
  },
4751
4751
  /* returns Node */
4752
4752
  removeNamedItem: function(a) {
@@ -4756,12 +4756,12 @@ function wr() {
4756
4756
  // raises: NOT_FOUND_ERR,NO_MODIFICATION_ALLOWED_ERR
4757
4757
  //for level2
4758
4758
  removeNamedItemNS: function(a, R) {
4759
- var C = this.getNamedItemNS(a, R);
4760
- return Ce(this._ownerElement, this, C), C;
4759
+ var _ = this.getNamedItemNS(a, R);
4760
+ return Ce(this._ownerElement, this, _), _;
4761
4761
  },
4762
4762
  getNamedItemNS: function(a, R) {
4763
- for (var C = this.length; C--; ) {
4764
- var G = this[C];
4763
+ for (var _ = this.length; _--; ) {
4764
+ var G = this[_];
4765
4765
  if (G.localName == R && G.namespaceURI == a)
4766
4766
  return G;
4767
4767
  }
@@ -4811,9 +4811,9 @@ function wr() {
4811
4811
  * @see https://www.w3.org/TR/xml/#NT-NameStartChar XML Spec: Names
4812
4812
  * @see https://www.w3.org/TR/xml-names/#ns-qualnames XML Namespaces: Qualified names
4813
4813
  */
4814
- createDocument: function(a, R, C) {
4814
+ createDocument: function(a, R, _) {
4815
4815
  var G = new U();
4816
- if (G.implementation = this, G.childNodes = new X(), G.doctype = C || null, C && G.appendChild(C), R) {
4816
+ if (G.implementation = this, G.childNodes = new X(), G.doctype = _ || null, _ && G.appendChild(_), R) {
4817
4817
  var e = G.createElementNS(a, R);
4818
4818
  G.appendChild(e);
4819
4819
  }
@@ -4840,9 +4840,9 @@ function wr() {
4840
4840
  * @see https://www.w3.org/TR/xml/#NT-NameStartChar XML Spec: Names
4841
4841
  * @see https://www.w3.org/TR/xml-names/#ns-qualnames XML Namespaces: Qualified names
4842
4842
  */
4843
- createDocumentType: function(a, R, C) {
4843
+ createDocumentType: function(a, R, _) {
4844
4844
  var G = new ae();
4845
- return G.name = a, G.nodeName = a, G.publicId = R || "", G.systemId = C || "", G;
4845
+ return G.name = a, G.nodeName = a, G.publicId = R || "", G.systemId = _ || "", G;
4846
4846
  }
4847
4847
  };
4848
4848
  function se() {
@@ -4910,10 +4910,10 @@ function wr() {
4910
4910
  */
4911
4911
  lookupPrefix: function(a) {
4912
4912
  for (var R = this; R; ) {
4913
- var C = R._nsMap;
4914
- if (C) {
4915
- for (var G in C)
4916
- if (Object.prototype.hasOwnProperty.call(C, G) && C[G] === a)
4913
+ var _ = R._nsMap;
4914
+ if (_) {
4915
+ for (var G in _)
4916
+ if (Object.prototype.hasOwnProperty.call(_, G) && _[G] === a)
4917
4917
  return G;
4918
4918
  }
4919
4919
  R = R.nodeType == f ? R.ownerDocument : R.parentNode;
@@ -4923,9 +4923,9 @@ function wr() {
4923
4923
  // Introduced in DOM Level 3:
4924
4924
  lookupNamespaceURI: function(a) {
4925
4925
  for (var R = this; R; ) {
4926
- var C = R._nsMap;
4927
- if (C && Object.prototype.hasOwnProperty.call(C, a))
4928
- return C[a];
4926
+ var _ = R._nsMap;
4927
+ if (_ && Object.prototype.hasOwnProperty.call(_, a))
4928
+ return _[a];
4929
4929
  R = R.nodeType == f ? R.ownerDocument : R.parentNode;
4930
4930
  }
4931
4931
  return null;
@@ -4952,22 +4952,22 @@ function wr() {
4952
4952
  function U() {
4953
4953
  this.ownerDocument = this;
4954
4954
  }
4955
- function P(a, R, C) {
4955
+ function P(a, R, _) {
4956
4956
  a && a._inc++;
4957
- var G = C.namespaceURI;
4958
- G === r.XMLNS && (R._nsMap[C.prefix ? C.localName : ""] = C.value);
4957
+ var G = _.namespaceURI;
4958
+ G === r.XMLNS && (R._nsMap[_.prefix ? _.localName : ""] = _.value);
4959
4959
  }
4960
- function m(a, R, C, G) {
4960
+ function m(a, R, _, G) {
4961
4961
  a && a._inc++;
4962
- var e = C.namespaceURI;
4963
- e === r.XMLNS && delete R._nsMap[C.prefix ? C.localName : ""];
4962
+ var e = _.namespaceURI;
4963
+ e === r.XMLNS && delete R._nsMap[_.prefix ? _.localName : ""];
4964
4964
  }
4965
- function K(a, R, C) {
4965
+ function K(a, R, _) {
4966
4966
  if (a && a._inc) {
4967
4967
  a._inc++;
4968
4968
  var G = R.childNodes;
4969
- if (C)
4970
- G[G.length++] = C;
4969
+ if (_)
4970
+ G[G.length++] = _;
4971
4971
  else {
4972
4972
  for (var e = R.firstChild, n = 0; e; )
4973
4973
  G[n++] = e, e = e.nextSibling;
@@ -4976,8 +4976,8 @@ function wr() {
4976
4976
  }
4977
4977
  }
4978
4978
  function d(a, R) {
4979
- var C = R.previousSibling, G = R.nextSibling;
4980
- return C ? C.nextSibling = G : a.firstChild = G, G ? G.previousSibling = C : a.lastChild = C, R.parentNode = null, R.previousSibling = null, R.nextSibling = null, K(a.ownerDocument, a), R;
4979
+ var _ = R.previousSibling, G = R.nextSibling;
4980
+ return _ ? _.nextSibling = G : a.firstChild = G, G ? G.previousSibling = _ : a.lastChild = _, R.parentNode = null, R.previousSibling = null, R.nextSibling = null, K(a.ownerDocument, a), R;
4981
4981
  }
4982
4982
  function j(a) {
4983
4983
  return a && (a.nodeType === se.DOCUMENT_NODE || a.nodeType === se.DOCUMENT_FRAGMENT_NODE || a.nodeType === se.ELEMENT_NODE);
@@ -4995,26 +4995,26 @@ function wr() {
4995
4995
  return a && a.nodeType === se.TEXT_NODE;
4996
4996
  }
4997
4997
  function ue(a, R) {
4998
- var C = a.childNodes || [];
4999
- if (t(C, Le) || Se(R))
4998
+ var _ = a.childNodes || [];
4999
+ if (t(_, Le) || Se(R))
5000
5000
  return !1;
5001
- var G = t(C, Se);
5002
- return !(R && G && C.indexOf(G) > C.indexOf(R));
5001
+ var G = t(_, Se);
5002
+ return !(R && G && _.indexOf(G) > _.indexOf(R));
5003
5003
  }
5004
5004
  function $(a, R) {
5005
- var C = a.childNodes || [];
5005
+ var _ = a.childNodes || [];
5006
5006
  function G(n) {
5007
5007
  return Le(n) && n !== R;
5008
5008
  }
5009
- if (t(C, G))
5009
+ if (t(_, G))
5010
5010
  return !1;
5011
- var e = t(C, Se);
5012
- return !(R && e && C.indexOf(e) > C.indexOf(R));
5011
+ var e = t(_, Se);
5012
+ return !(R && e && _.indexOf(e) > _.indexOf(R));
5013
5013
  }
5014
- function Ye(a, R, C) {
5014
+ function Ye(a, R, _) {
5015
5015
  if (!j(a))
5016
5016
  throw new w(F, "Unexpected parent node type " + a.nodeType);
5017
- if (C && C.parentNode !== a)
5017
+ if (_ && _.parentNode !== a)
5018
5018
  throw new w(g, "child not in parent");
5019
5019
  if (
5020
5020
  // 4. If `node` is not a DocumentFragment, DocumentType, Element, or CharacterData node, then throw a "HierarchyRequestError" DOMException.
@@ -5029,50 +5029,50 @@ function wr() {
5029
5029
  "Unexpected node type " + R.nodeType + " for parent node type " + a.nodeType
5030
5030
  );
5031
5031
  }
5032
- function _(a, R, C) {
5032
+ function C(a, R, _) {
5033
5033
  var G = a.childNodes || [], e = R.childNodes || [];
5034
5034
  if (R.nodeType === se.DOCUMENT_FRAGMENT_NODE) {
5035
5035
  var n = e.filter(Le);
5036
5036
  if (n.length > 1 || t(e, ye))
5037
5037
  throw new w(F, "More than one element or text in fragment");
5038
- if (n.length === 1 && !ue(a, C))
5038
+ if (n.length === 1 && !ue(a, _))
5039
5039
  throw new w(F, "Element in fragment can not be inserted before doctype");
5040
5040
  }
5041
- if (Le(R) && !ue(a, C))
5041
+ if (Le(R) && !ue(a, _))
5042
5042
  throw new w(F, "Only one element can be added and only after doctype");
5043
5043
  if (Se(R)) {
5044
5044
  if (t(G, Se))
5045
5045
  throw new w(F, "Only one doctype is allowed");
5046
5046
  var S = t(G, Le);
5047
- if (C && G.indexOf(S) < G.indexOf(C))
5047
+ if (_ && G.indexOf(S) < G.indexOf(_))
5048
5048
  throw new w(F, "Doctype can only be inserted before an element");
5049
- if (!C && S)
5049
+ if (!_ && S)
5050
5050
  throw new w(F, "Doctype can not be appended since element is present");
5051
5051
  }
5052
5052
  }
5053
- function ne(a, R, C) {
5053
+ function ne(a, R, _) {
5054
5054
  var G = a.childNodes || [], e = R.childNodes || [];
5055
5055
  if (R.nodeType === se.DOCUMENT_FRAGMENT_NODE) {
5056
5056
  var n = e.filter(Le);
5057
5057
  if (n.length > 1 || t(e, ye))
5058
5058
  throw new w(F, "More than one element or text in fragment");
5059
- if (n.length === 1 && !$(a, C))
5059
+ if (n.length === 1 && !$(a, _))
5060
5060
  throw new w(F, "Element in fragment can not be inserted before doctype");
5061
5061
  }
5062
- if (Le(R) && !$(a, C))
5062
+ if (Le(R) && !$(a, _))
5063
5063
  throw new w(F, "Only one element can be added and only after doctype");
5064
5064
  if (Se(R)) {
5065
5065
  if (t(G, function(u) {
5066
- return Se(u) && u !== C;
5066
+ return Se(u) && u !== _;
5067
5067
  }))
5068
5068
  throw new w(F, "Only one doctype is allowed");
5069
5069
  var S = t(G, Le);
5070
- if (C && G.indexOf(S) < G.indexOf(C))
5070
+ if (_ && G.indexOf(S) < G.indexOf(_))
5071
5071
  throw new w(F, "Doctype can only be inserted before an element");
5072
5072
  }
5073
5073
  }
5074
- function ve(a, R, C, G) {
5075
- Ye(a, R, C), a.nodeType === se.DOCUMENT_NODE && (G || _)(a, R, C);
5074
+ function ve(a, R, _, G) {
5075
+ Ye(a, R, _), a.nodeType === se.DOCUMENT_NODE && (G || C)(a, R, _);
5076
5076
  var e = R.parentNode;
5077
5077
  if (e && e.removeChild(R), R.nodeType === Pe) {
5078
5078
  var n = R.firstChild;
@@ -5081,8 +5081,8 @@ function wr() {
5081
5081
  var S = R.lastChild;
5082
5082
  } else
5083
5083
  n = S = R;
5084
- var L = C ? C.previousSibling : a.lastChild;
5085
- n.previousSibling = L, S.nextSibling = C, L ? L.nextSibling = n : a.firstChild = n, C == null ? a.lastChild = S : C.previousSibling = S;
5084
+ var L = _ ? _.previousSibling : a.lastChild;
5085
+ n.previousSibling = L, S.nextSibling = _, L ? L.nextSibling = n : a.firstChild = n, _ == null ? a.lastChild = S : _.previousSibling = S;
5086
5086
  do {
5087
5087
  n.parentNode = a;
5088
5088
  var u = a.ownerDocument || a;
@@ -5093,8 +5093,8 @@ function wr() {
5093
5093
  function he(a, R) {
5094
5094
  if (a.ownerDocument !== R) {
5095
5095
  if (a.ownerDocument = R, a.nodeType === O && a.attributes)
5096
- for (var C = 0; C < a.attributes.length; C++) {
5097
- var G = a.attributes.item(C);
5096
+ for (var _ = 0; _ < a.attributes.length; _++) {
5097
+ var G = a.attributes.item(_);
5098
5098
  G && (G.ownerDocument = R);
5099
5099
  }
5100
5100
  for (var e = a.firstChild; e; )
@@ -5103,8 +5103,8 @@ function wr() {
5103
5103
  }
5104
5104
  function y(a, R) {
5105
5105
  R.parentNode && R.parentNode.removeChild(R), R.parentNode = a, R.previousSibling = a.lastChild, R.nextSibling = null, R.previousSibling ? R.previousSibling.nextSibling = R : a.firstChild = R, a.lastChild = R, K(a.ownerDocument, a, R);
5106
- var C = a.ownerDocument || a;
5107
- return he(R, C), R;
5106
+ var _ = a.ownerDocument || a;
5107
+ return he(R, _), R;
5108
5108
  }
5109
5109
  U.prototype = {
5110
5110
  //implementation : null,
@@ -5121,9 +5121,9 @@ function wr() {
5121
5121
  _inc: 1,
5122
5122
  insertBefore: function(a, R) {
5123
5123
  if (a.nodeType == Pe) {
5124
- for (var C = a.firstChild; C; ) {
5125
- var G = C.nextSibling;
5126
- this.insertBefore(C, R), C = G;
5124
+ for (var _ = a.firstChild; _; ) {
5125
+ var G = _.nextSibling;
5126
+ this.insertBefore(_, R), _ = G;
5127
5127
  }
5128
5128
  return a;
5129
5129
  }
@@ -5142,9 +5142,9 @@ function wr() {
5142
5142
  // Introduced in DOM Level 2:
5143
5143
  getElementById: function(a) {
5144
5144
  var R = null;
5145
- return D(this.documentElement, function(C) {
5146
- if (C.nodeType == O && C.getAttribute("id") == a)
5147
- return R = C, !0;
5145
+ return D(this.documentElement, function(_) {
5146
+ if (_.nodeType == O && _.getAttribute("id") == a)
5147
+ return R = _, !0;
5148
5148
  }), R;
5149
5149
  },
5150
5150
  /**
@@ -5166,10 +5166,10 @@ function wr() {
5166
5166
  */
5167
5167
  getElementsByClassName: function(a) {
5168
5168
  var R = i(a);
5169
- return new Ae(this, function(C) {
5169
+ return new Ae(this, function(_) {
5170
5170
  var G = [];
5171
- return R.length > 0 && D(C.documentElement, function(e) {
5172
- if (e !== C && e.nodeType === O) {
5171
+ return R.length > 0 && D(_.documentElement, function(e) {
5172
+ if (e !== _ && e.nodeType === O) {
5173
5173
  var n = e.getAttribute("class");
5174
5174
  if (n) {
5175
5175
  var S = a === n;
@@ -5187,8 +5187,8 @@ function wr() {
5187
5187
  createElement: function(a) {
5188
5188
  var R = new Y();
5189
5189
  R.ownerDocument = this, R.nodeName = a, R.tagName = a, R.localName = a, R.childNodes = new X();
5190
- var C = R.attributes = new fe();
5191
- return C._ownerElement = R, R;
5190
+ var _ = R.attributes = new fe();
5191
+ return _._ownerElement = R, R;
5192
5192
  },
5193
5193
  createDocumentFragment: function() {
5194
5194
  var a = new je();
@@ -5207,8 +5207,8 @@ function wr() {
5207
5207
  return R.ownerDocument = this, R.appendData(a), R;
5208
5208
  },
5209
5209
  createProcessingInstruction: function(a, R) {
5210
- var C = new At();
5211
- return C.ownerDocument = this, C.tagName = C.nodeName = C.target = a, C.nodeValue = C.data = R, C;
5210
+ var _ = new At();
5211
+ return _.ownerDocument = this, _.tagName = _.nodeName = _.target = a, _.nodeValue = _.data = R, _;
5212
5212
  },
5213
5213
  createAttribute: function(a) {
5214
5214
  var R = new ke();
@@ -5220,13 +5220,13 @@ function wr() {
5220
5220
  },
5221
5221
  // Introduced in DOM Level 2:
5222
5222
  createElementNS: function(a, R) {
5223
- var C = new Y(), G = R.split(":"), e = C.attributes = new fe();
5224
- return C.childNodes = new X(), C.ownerDocument = this, C.nodeName = R, C.tagName = R, C.namespaceURI = a, G.length == 2 ? (C.prefix = G[0], C.localName = G[1]) : C.localName = R, e._ownerElement = C, C;
5223
+ var _ = new Y(), G = R.split(":"), e = _.attributes = new fe();
5224
+ return _.childNodes = new X(), _.ownerDocument = this, _.nodeName = R, _.tagName = R, _.namespaceURI = a, G.length == 2 ? (_.prefix = G[0], _.localName = G[1]) : _.localName = R, e._ownerElement = _, _;
5225
5225
  },
5226
5226
  // Introduced in DOM Level 2:
5227
5227
  createAttributeNS: function(a, R) {
5228
- var C = new ke(), G = R.split(":");
5229
- return C.ownerDocument = this, C.nodeName = R, C.name = R, C.namespaceURI = a, C.specified = !0, G.length == 2 ? (C.prefix = G[0], C.localName = G[1]) : C.localName = R, C;
5228
+ var _ = new ke(), G = R.split(":");
5229
+ return _.ownerDocument = this, _.nodeName = R, _.name = R, _.namespaceURI = a, _.specified = !0, G.length == 2 ? (_.prefix = G[0], _.localName = G[1]) : _.localName = R, _;
5230
5230
  }
5231
5231
  }, A(U, se);
5232
5232
  function Y() {
@@ -5245,8 +5245,8 @@ function wr() {
5245
5245
  return this.attributes.getNamedItem(a);
5246
5246
  },
5247
5247
  setAttribute: function(a, R) {
5248
- var C = this.ownerDocument.createAttribute(a);
5249
- C.value = C.nodeValue = "" + R, this.setAttributeNode(C);
5248
+ var _ = this.ownerDocument.createAttribute(a);
5249
+ _.value = _.nodeValue = "" + R, this.setAttributeNode(_);
5250
5250
  },
5251
5251
  removeAttribute: function(a) {
5252
5252
  var R = this.getAttributeNode(a);
@@ -5267,36 +5267,36 @@ function wr() {
5267
5267
  },
5268
5268
  //get real attribute name,and remove it by removeAttributeNode
5269
5269
  removeAttributeNS: function(a, R) {
5270
- var C = this.getAttributeNodeNS(a, R);
5271
- C && this.removeAttributeNode(C);
5270
+ var _ = this.getAttributeNodeNS(a, R);
5271
+ _ && this.removeAttributeNode(_);
5272
5272
  },
5273
5273
  hasAttributeNS: function(a, R) {
5274
5274
  return this.getAttributeNodeNS(a, R) != null;
5275
5275
  },
5276
5276
  getAttributeNS: function(a, R) {
5277
- var C = this.getAttributeNodeNS(a, R);
5278
- return C && C.value || "";
5277
+ var _ = this.getAttributeNodeNS(a, R);
5278
+ return _ && _.value || "";
5279
5279
  },
5280
- setAttributeNS: function(a, R, C) {
5280
+ setAttributeNS: function(a, R, _) {
5281
5281
  var G = this.ownerDocument.createAttributeNS(a, R);
5282
- G.value = G.nodeValue = "" + C, this.setAttributeNode(G);
5282
+ G.value = G.nodeValue = "" + _, this.setAttributeNode(G);
5283
5283
  },
5284
5284
  getAttributeNodeNS: function(a, R) {
5285
5285
  return this.attributes.getNamedItemNS(a, R);
5286
5286
  },
5287
5287
  getElementsByTagName: function(a) {
5288
5288
  return new Ae(this, function(R) {
5289
- var C = [];
5289
+ var _ = [];
5290
5290
  return D(R, function(G) {
5291
- G !== R && G.nodeType == O && (a === "*" || G.tagName == a) && C.push(G);
5292
- }), C;
5291
+ G !== R && G.nodeType == O && (a === "*" || G.tagName == a) && _.push(G);
5292
+ }), _;
5293
5293
  });
5294
5294
  },
5295
5295
  getElementsByTagNameNS: function(a, R) {
5296
- return new Ae(this, function(C) {
5296
+ return new Ae(this, function(_) {
5297
5297
  var G = [];
5298
- return D(C, function(e) {
5299
- e !== C && e.nodeType === O && (a === "*" || e.namespaceURI === a) && (R === "*" || e.localName == R) && G.push(e);
5298
+ return D(_, function(e) {
5299
+ e !== _ && e.nodeType === O && (a === "*" || e.namespaceURI === a) && (R === "*" || e.localName == R) && G.push(e);
5300
5300
  }), G;
5301
5301
  });
5302
5302
  }
@@ -5323,9 +5323,9 @@ function wr() {
5323
5323
  deleteData: function(a, R) {
5324
5324
  this.replaceData(a, R, "");
5325
5325
  },
5326
- replaceData: function(a, R, C) {
5326
+ replaceData: function(a, R, _) {
5327
5327
  var G = this.data.substring(0, a), e = this.data.substring(a + R);
5328
- C = G + C + e, this.nodeValue = this.data = C, this.length = C.length;
5328
+ _ = G + _ + e, this.nodeValue = this.data = _, this.length = _.length;
5329
5329
  }
5330
5330
  }, A(st, se);
5331
5331
  function _e() {
@@ -5334,9 +5334,9 @@ function wr() {
5334
5334
  nodeName: "#text",
5335
5335
  nodeType: h,
5336
5336
  splitText: function(a) {
5337
- var R = this.data, C = R.substring(a);
5337
+ var R = this.data, _ = R.substring(a);
5338
5338
  R = R.substring(0, a), this.data = this.nodeValue = R, this.length = R.length;
5339
- var G = this.ownerDocument.createTextNode(C);
5339
+ var G = this.ownerDocument.createTextNode(_);
5340
5340
  return this.parentNode && this.parentNode.insertBefore(G, this.nextSibling), G;
5341
5341
  }
5342
5342
  }, A(_e, st);
@@ -5372,11 +5372,11 @@ function wr() {
5372
5372
  At.prototype.nodeType = ee, A(At, se);
5373
5373
  function de() {
5374
5374
  }
5375
- de.prototype.serializeToString = function(a, R, C) {
5376
- return Oe.call(a, R, C);
5375
+ de.prototype.serializeToString = function(a, R, _) {
5376
+ return Oe.call(a, R, _);
5377
5377
  }, se.prototype.toString = Oe;
5378
5378
  function Oe(a, R) {
5379
- var C = [], G = this.nodeType == 9 && this.documentElement || this, e = G.prefix, n = G.namespaceURI;
5379
+ var _ = [], G = this.nodeType == 9 && this.documentElement || this, e = G.prefix, n = G.namespaceURI;
5380
5380
  if (n && e == null) {
5381
5381
  var e = G.lookupPrefix(n);
5382
5382
  if (e == null)
@@ -5385,23 +5385,23 @@ function wr() {
5385
5385
  //{namespace:uri,prefix:''}
5386
5386
  ];
5387
5387
  }
5388
- return Je(this, C, a, R, S), C.join("");
5388
+ return Je(this, _, a, R, S), _.join("");
5389
5389
  }
5390
- function xt(a, R, C) {
5390
+ function xt(a, R, _) {
5391
5391
  var G = a.prefix || "", e = a.namespaceURI;
5392
5392
  if (!e || G === "xml" && e === r.XML || e === r.XMLNS)
5393
5393
  return !1;
5394
- for (var n = C.length; n--; ) {
5395
- var S = C[n];
5394
+ for (var n = _.length; n--; ) {
5395
+ var S = _[n];
5396
5396
  if (S.prefix === G)
5397
5397
  return S.namespace !== e;
5398
5398
  }
5399
5399
  return !0;
5400
5400
  }
5401
- function rt(a, R, C) {
5402
- a.push(" ", R, '="', C.replace(/[<>&"\t\n\r]/g, x), '"');
5401
+ function rt(a, R, _) {
5402
+ a.push(" ", R, '="', _.replace(/[<>&"\t\n\r]/g, x), '"');
5403
5403
  }
5404
- function Je(a, R, C, G, e) {
5404
+ function Je(a, R, _, G, e) {
5405
5405
  if (e || (e = []), G)
5406
5406
  if (a = G(a), a) {
5407
5407
  if (typeof a == "string") {
@@ -5413,9 +5413,9 @@ function wr() {
5413
5413
  switch (a.nodeType) {
5414
5414
  case O:
5415
5415
  var n = a.attributes, S = n.length, Xe = a.firstChild, L = a.tagName;
5416
- C = r.isHTML(a.namespaceURI) || C;
5416
+ _ = r.isHTML(a.namespaceURI) || _;
5417
5417
  var u = L;
5418
- if (!C && !a.prefix && a.namespaceURI) {
5418
+ if (!_ && !a.prefix && a.namespaceURI) {
5419
5419
  for (var p, Te = 0; Te < n.length; Te++)
5420
5420
  if (n.item(Te).name === "xmlns") {
5421
5421
  p = n.item(Te).value;
@@ -5445,23 +5445,23 @@ function wr() {
5445
5445
  }
5446
5446
  for (var oe = 0; oe < S; oe++) {
5447
5447
  var Ne = n.item(oe);
5448
- if (xt(Ne, C, e)) {
5448
+ if (xt(Ne, _, e)) {
5449
5449
  var ze = Ne.prefix || "", at = Ne.namespaceURI;
5450
5450
  rt(R, ze ? "xmlns:" + ze : "xmlns", at), e.push({ prefix: ze, namespace: at });
5451
5451
  }
5452
- Je(Ne, R, C, G, e);
5452
+ Je(Ne, R, _, G, e);
5453
5453
  }
5454
- if (L === u && xt(a, C, e)) {
5454
+ if (L === u && xt(a, _, e)) {
5455
5455
  var ze = a.prefix || "", at = a.namespaceURI;
5456
5456
  rt(R, ze ? "xmlns:" + ze : "xmlns", at), e.push({ prefix: ze, namespace: at });
5457
5457
  }
5458
- if (Xe || C && !/^(?:meta|link|img|br|hr|input)$/i.test(L)) {
5459
- if (R.push(">"), C && /^script$/i.test(L))
5458
+ if (Xe || _ && !/^(?:meta|link|img|br|hr|input)$/i.test(L)) {
5459
+ if (R.push(">"), _ && /^script$/i.test(L))
5460
5460
  for (; Xe; )
5461
- Xe.data ? R.push(Xe.data) : Je(Xe, R, C, G, e.slice()), Xe = Xe.nextSibling;
5461
+ Xe.data ? R.push(Xe.data) : Je(Xe, R, _, G, e.slice()), Xe = Xe.nextSibling;
5462
5462
  else
5463
5463
  for (; Xe; )
5464
- Je(Xe, R, C, G, e.slice()), Xe = Xe.nextSibling;
5464
+ Je(Xe, R, _, G, e.slice()), Xe = Xe.nextSibling;
5465
5465
  R.push("</", u, ">");
5466
5466
  } else
5467
5467
  R.push("/>");
@@ -5469,7 +5469,7 @@ function wr() {
5469
5469
  case k:
5470
5470
  case Pe:
5471
5471
  for (var Xe = a.firstChild; Xe; )
5472
- Je(Xe, R, C, G, e.slice()), Xe = Xe.nextSibling;
5472
+ Je(Xe, R, _, G, e.slice()), Xe = Xe.nextSibling;
5473
5473
  return;
5474
5474
  case f:
5475
5475
  return rt(R, a.name, a.value);
@@ -5502,7 +5502,7 @@ function wr() {
5502
5502
  R.push("??", a.nodeName);
5503
5503
  }
5504
5504
  }
5505
- function Ct(a, R, C) {
5505
+ function Ct(a, R, _) {
5506
5506
  var G;
5507
5507
  switch (R.nodeType) {
5508
5508
  case O:
@@ -5515,15 +5515,15 @@ function wr() {
5515
5515
  case Pe:
5516
5516
  break;
5517
5517
  case f:
5518
- C = !0;
5518
+ _ = !0;
5519
5519
  break;
5520
5520
  }
5521
- if (G || (G = R.cloneNode(!1)), G.ownerDocument = a, G.parentNode = null, C)
5521
+ if (G || (G = R.cloneNode(!1)), G.ownerDocument = a, G.parentNode = null, _)
5522
5522
  for (var e = R.firstChild; e; )
5523
- G.appendChild(Ct(a, e, C)), e = e.nextSibling;
5523
+ G.appendChild(Ct(a, e, _)), e = e.nextSibling;
5524
5524
  return G;
5525
5525
  }
5526
- function It(a, R, C) {
5526
+ function It(a, R, _) {
5527
5527
  var G = new R.constructor();
5528
5528
  for (var e in R)
5529
5529
  if (Object.prototype.hasOwnProperty.call(R, e)) {
@@ -5538,15 +5538,15 @@ function wr() {
5538
5538
  G.setAttributeNode(It(a, S.item(p), !0));
5539
5539
  break;
5540
5540
  case f:
5541
- C = !0;
5541
+ _ = !0;
5542
5542
  }
5543
- if (C)
5543
+ if (_)
5544
5544
  for (var Te = R.firstChild; Te; )
5545
- G.appendChild(It(a, Te, C)), Te = Te.nextSibling;
5545
+ G.appendChild(It(a, Te, _)), Te = Te.nextSibling;
5546
5546
  return G;
5547
5547
  }
5548
- function ge(a, R, C) {
5549
- a[R] = C;
5548
+ function ge(a, R, _) {
5549
+ a[R] = _;
5550
5550
  }
5551
5551
  try {
5552
5552
  if (Object.defineProperty) {
@@ -5554,10 +5554,10 @@ function wr() {
5554
5554
  switch (R.nodeType) {
5555
5555
  case O:
5556
5556
  case Pe:
5557
- var C = [];
5557
+ var _ = [];
5558
5558
  for (R = R.firstChild; R; )
5559
- R.nodeType !== 7 && R.nodeType !== 8 && C.push(a(R)), R = R.nextSibling;
5560
- return C.join("");
5559
+ R.nodeType !== 7 && R.nodeType !== 8 && _.push(a(R)), R = R.nextSibling;
5560
+ return _.join("");
5561
5561
  default:
5562
5562
  return R.nodeValue;
5563
5563
  }
@@ -5582,8 +5582,8 @@ function wr() {
5582
5582
  this.data = R, this.value = R, this.nodeValue = R;
5583
5583
  }
5584
5584
  }
5585
- }), ge = function(R, C, G) {
5586
- R["$$" + C] = G;
5585
+ }), ge = function(R, _, G) {
5586
+ R["$$" + _] = G;
5587
5587
  };
5588
5588
  }
5589
5589
  } catch {
@@ -7810,9 +7810,9 @@ function IT() {
7810
7810
  break;
7811
7811
  default:
7812
7812
  se && v(P);
7813
- var ue = new c(), $ = x[x.length - 1].currentNSMap, Ye = M(F, P, ue, $, ce, X), _ = ue.length;
7814
- if (!ue.closed && k(F, Ye, ue.tagName, D) && (ue.closed = !0, Q.nbsp || X.warning("unclosed xml attribute")), se && _) {
7815
- for (var ne = J(se, {}), ve = 0; ve < _; ve++) {
7813
+ var ue = new c(), $ = x[x.length - 1].currentNSMap, Ye = M(F, P, ue, $, ce, X), C = ue.length;
7814
+ if (!ue.closed && k(F, Ye, ue.tagName, D) && (ue.closed = !0, Q.nbsp || X.warning("unclosed xml attribute")), se && C) {
7815
+ for (var ne = J(se, {}), ve = 0; ve < C; ve++) {
7816
7816
  var he = ue[ve];
7817
7817
  v(he.offset), he.locator = J(se, {});
7818
7818
  }
@@ -8266,51 +8266,54 @@ const CT = {
8266
8266
  },
8267
8267
  emits: ["toggle-expand", "copy", "update:tagName", "update:attributeName", "update:attributeValue", "update:textContent", "update:cdataContent"],
8268
8268
  setup(E, { emit: t }) {
8269
- qt((_) => ({
8270
- "60de5cb8": _.theme.colors.indentLine
8269
+ qt((C) => ({
8270
+ a5584520: C.theme.colors.collapsedText,
8271
+ "4135219e": C.theme.colors.collapsedBackground,
8272
+ "8d1f7eea": C.theme.colors.collapsedBackgroundHover,
8273
+ "75d8ecf4": C.theme.colors.indentLine
8271
8274
  }));
8272
8275
  const r = E, T = t, s = Fe(!1), o = Fe(null), i = Fe(null), l = Fe(!1), N = Fe(!1), A = Fe(""), I = Fe(""), O = Fe(""), f = Fe(""), h = Fe(""), H = Fe(null), J = Fe(null), M = Fe(null), ee = Fe(null), te = Fe(null), k = be(() => Object.keys(r.node).find((ne) => !ne.startsWith(":") && !ne.startsWith("#")) || ""), pe = be(() => k.value ? r.parentPath ? `${r.parentPath}.${k.value}[${r.index}]` : `${k.value}[${r.index}]` : ""), Pe = be(() => r.expanded.has(pe.value)), z = be(() => r.node["#comment"] ? "comment" : r.node.__cdata ? "cdata" : k.value ? "element" : "unknown"), c = be(() => {
8273
- const _ = r.node[":@"] || {}, ne = {};
8274
- return Object.keys(_).forEach((ve) => {
8275
- ve.startsWith("@_") && (ne[ve.substring(2)] = _[ve]);
8276
+ const C = r.node[":@"] || {}, ne = {};
8277
+ return Object.keys(C).forEach((ve) => {
8278
+ ve.startsWith("@_") && (ne[ve.substring(2)] = C[ve]);
8276
8279
  }), ne;
8277
8280
  }), Re = be(() => {
8278
8281
  if (z.value !== "element" || !k.value) return [];
8279
- const _ = r.node[k.value];
8280
- return Array.isArray(_) ? _ : [];
8281
- }), F = be(() => Re.value.some((_) => _.__cdata)), g = be(() => {
8282
+ const C = r.node[k.value];
8283
+ return Array.isArray(C) ? C : [];
8284
+ }), F = be(() => Re.value.some((C) => C.__cdata)), g = be(() => {
8282
8285
  if (!F.value) return "";
8283
- const _ = Re.value.find((ne) => ne.__cdata);
8284
- if (_ && Array.isArray(_.__cdata)) {
8285
- const ne = _.__cdata;
8286
+ const C = Re.value.find((ne) => ne.__cdata);
8287
+ if (C && Array.isArray(C.__cdata)) {
8288
+ const ne = C.__cdata;
8286
8289
  if (ne.length > 0 && ne[0]["#text"])
8287
8290
  return ne[0]["#text"];
8288
8291
  }
8289
8292
  return "";
8290
8293
  }), Q = be(() => {
8291
8294
  if (z.value !== "element" || !k.value || F.value) return "";
8292
- const _ = r.node[k.value];
8293
- if (!Array.isArray(_)) return "";
8294
- const ne = _.find((ve) => ve["#text"]);
8295
+ const C = r.node[k.value];
8296
+ if (!Array.isArray(C)) return "";
8297
+ const ne = C.find((ve) => ve["#text"]);
8295
8298
  return ne ? ne["#text"] : "";
8296
8299
  }), w = be(() => {
8297
8300
  if (z.value !== "comment") return "";
8298
- const _ = r.node["#comment"];
8299
- return Array.isArray(_) && _.length > 0 && _[0]["#text"] || "";
8300
- }), X = be(() => Re.value.some((_) => Object.keys(_).some((ve) => !ve.startsWith("#") && !ve.startsWith(":")))), Ae = be(() => X.value ? Re.value.filter((_) => Object.keys(_).some((ve) => !ve.startsWith("#") && !ve.startsWith(":"))).length : 0), ce = be(() => z.value === "element" && !X.value && Q.value !== ""), fe = be(() => z.value === "element" && !X.value && Q.value === ""), v = be(() => fe.value && r.selfClosingTags?.has(k.value) || !1), Z = () => {
8301
+ const C = r.node["#comment"];
8302
+ return Array.isArray(C) && C.length > 0 && C[0]["#text"] || "";
8303
+ }), X = be(() => Re.value.some((C) => Object.keys(C).some((ve) => !ve.startsWith("#") && !ve.startsWith(":")))), Ae = be(() => X.value ? Re.value.filter((C) => Object.keys(C).some((ve) => !ve.startsWith("#") && !ve.startsWith(":"))).length : 0), ce = be(() => z.value === "element" && !X.value && Q.value !== ""), fe = be(() => z.value === "element" && !X.value && Q.value === ""), v = be(() => fe.value && r.selfClosingTags?.has(k.value) || !1), Z = () => {
8301
8304
  X.value && T("toggle-expand", pe.value);
8302
- }, Ce = (_, ne) => `${pe.value}-child-${ne}`, He = () => `${pe.value}.${k.value}`, se = () => {
8305
+ }, Ce = (C, ne) => `${pe.value}-child-${ne}`, He = () => `${pe.value}.${k.value}`, se = () => {
8303
8306
  s.value = !0, A.value = k.value, Et(() => {
8304
8307
  if (H.value) {
8305
8308
  H.value.focus();
8306
- const _ = document.createRange();
8307
- _.selectNodeContents(H.value);
8309
+ const C = document.createRange();
8310
+ C.selectNodeContents(H.value);
8308
8311
  const ne = window.getSelection();
8309
- ne?.removeAllRanges(), ne?.addRange(_);
8312
+ ne?.removeAllRanges(), ne?.addRange(C);
8310
8313
  }
8311
8314
  });
8312
- }, x = (_) => {
8313
- o.value = _, I.value = _, Et(() => {
8315
+ }, x = (C) => {
8316
+ o.value = C, I.value = C, Et(() => {
8314
8317
  if (J.value) {
8315
8318
  J.value.focus();
8316
8319
  const ne = document.createRange();
@@ -8319,8 +8322,8 @@ const CT = {
8319
8322
  ve?.removeAllRanges(), ve?.addRange(ne);
8320
8323
  }
8321
8324
  });
8322
- }, D = (_) => {
8323
- i.value = _, O.value = c.value[_] || "", Et(() => {
8325
+ }, D = (C) => {
8326
+ i.value = C, O.value = c.value[C] || "", Et(() => {
8324
8327
  if (M.value) {
8325
8328
  M.value.focus();
8326
8329
  const ne = document.createRange();
@@ -8333,40 +8336,40 @@ const CT = {
8333
8336
  l.value = !0, f.value = Q.value, Et(() => {
8334
8337
  if (ee.value) {
8335
8338
  ee.value.focus();
8336
- const _ = document.createRange();
8337
- _.selectNodeContents(ee.value);
8339
+ const C = document.createRange();
8340
+ C.selectNodeContents(ee.value);
8338
8341
  const ne = window.getSelection();
8339
- ne?.removeAllRanges(), ne?.addRange(_);
8342
+ ne?.removeAllRanges(), ne?.addRange(C);
8340
8343
  }
8341
8344
  });
8342
8345
  }, P = () => {
8343
8346
  if (!s.value) return;
8344
- const _ = H.value?.innerText.trim() || "";
8345
- if (!_ || _ === k.value) {
8347
+ const C = H.value?.innerText.trim() || "";
8348
+ if (!C || C === k.value) {
8346
8349
  s.value = !1;
8347
8350
  return;
8348
8351
  }
8349
- s.value = !1, T("update:tagName", pe.value, k.value, _);
8352
+ s.value = !1, T("update:tagName", pe.value, k.value, C);
8350
8353
  }, m = () => {
8351
8354
  if (!o.value) return;
8352
- const _ = o.value, ne = J.value?.innerText.trim() || "";
8353
- if (!ne || ne === _) {
8355
+ const C = o.value, ne = J.value?.innerText.trim() || "";
8356
+ if (!ne || ne === C) {
8354
8357
  o.value = null;
8355
8358
  return;
8356
8359
  }
8357
- o.value = null, T("update:attributeName", pe.value, _, ne);
8360
+ o.value = null, T("update:attributeName", pe.value, C, ne);
8358
8361
  }, K = () => {
8359
8362
  if (!i.value) return;
8360
- const _ = i.value, ne = M.value?.innerText.trim() || "";
8361
- i.value = null, T("update:attributeValue", pe.value, _, ne);
8363
+ const C = i.value, ne = M.value?.innerText.trim() || "";
8364
+ i.value = null, T("update:attributeValue", pe.value, C, ne);
8362
8365
  }, d = () => {
8363
8366
  if (!l.value) return;
8364
- const _ = ee.value?.innerText || "";
8365
- if (_ === Q.value) {
8367
+ const C = ee.value?.innerText || "";
8368
+ if (C === Q.value) {
8366
8369
  l.value = !1;
8367
8370
  return;
8368
8371
  }
8369
- l.value = !1, T("update:textContent", pe.value, _);
8372
+ l.value = !1, T("update:textContent", pe.value, C);
8370
8373
  }, j = () => {
8371
8374
  s.value = !1, A.value = k.value;
8372
8375
  }, Ee = () => {
@@ -8379,48 +8382,48 @@ const CT = {
8379
8382
  N.value = !0, h.value = g.value, Et(() => {
8380
8383
  if (te.value) {
8381
8384
  te.value.focus();
8382
- const _ = document.createRange();
8383
- _.selectNodeContents(te.value);
8385
+ const C = document.createRange();
8386
+ C.selectNodeContents(te.value);
8384
8387
  const ne = window.getSelection();
8385
- ne?.removeAllRanges(), ne?.addRange(_);
8388
+ ne?.removeAllRanges(), ne?.addRange(C);
8386
8389
  }
8387
8390
  });
8388
8391
  }, ue = () => {
8389
8392
  if (!N.value) return;
8390
- const _ = te.value?.innerText || "";
8391
- if (_ === g.value) {
8393
+ const C = te.value?.innerText || "";
8394
+ if (C === g.value) {
8392
8395
  N.value = !1;
8393
8396
  return;
8394
8397
  }
8395
- N.value = !1, T("update:cdataContent", pe.value, _);
8398
+ N.value = !1, T("update:cdataContent", pe.value, C);
8396
8399
  }, $ = () => {
8397
8400
  N.value = !1, h.value = g.value;
8398
- }, Ye = (_) => {
8399
- X.value && (_.preventDefault(), se());
8401
+ }, Ye = (C) => {
8402
+ X.value && (C.preventDefault(), se());
8400
8403
  };
8401
- return (_, ne) => {
8404
+ return (C, ne) => {
8402
8405
  const ve = vr("XmlNode", !0);
8403
8406
  return Ie(), le("div", {
8404
8407
  class: "xml-node",
8405
- style: ie({ paddingLeft: _.level > 0 ? "16px" : "0" })
8408
+ style: ie({ paddingLeft: C.level > 0 ? "16px" : "0" })
8406
8409
  }, [
8407
8410
  z.value === "comment" ? (Ie(), le("div", CT, [
8408
8411
  q("span", {
8409
- style: ie({ color: _.theme.colors.xmlComment })
8412
+ style: ie({ color: C.theme.colors.xmlComment })
8410
8413
  }, " <!-- " + me(w.value) + " --> ", 5)
8411
8414
  ])) : z.value === "cdata" ? (Ie(), le("div", _T, [
8412
8415
  q("span", {
8413
- style: ie({ color: _.theme.colors.xmlCdata })
8414
- }, " <![CDATA[" + me(_.node.__cdata) + "]]> ", 5)
8416
+ style: ie({ color: C.theme.colors.xmlCdata })
8417
+ }, " <![CDATA[" + me(C.node.__cdata) + "]]> ", 5)
8415
8418
  ])) : z.value === "element" ? (Ie(), le("div", LT, [
8416
8419
  F.value ? (Ie(), le("div", cT, [
8417
8420
  q("span", {
8418
8421
  class: "xml-node__bracket",
8419
- style: ie({ color: _.theme.colors.xmlBracket })
8422
+ style: ie({ color: C.theme.colors.xmlBracket })
8420
8423
  }, "<", 4),
8421
8424
  q("span", {
8422
8425
  class: "xml-node__tag xml-node__tag--editable",
8423
- style: ie({ color: _.theme.colors.xmlTag }),
8426
+ style: ie({ color: C.theme.colors.xmlTag }),
8424
8427
  contenteditable: s.value,
8425
8428
  onDblclick: se,
8426
8429
  onContextmenu: Ye,
@@ -8439,7 +8442,7 @@ const CT = {
8439
8442
  }, [
8440
8443
  q("span", {
8441
8444
  class: "xml-node__attr-name xml-node__attr-name--editable",
8442
- style: ie({ color: _.theme.colors.xmlAttribute }),
8445
+ style: ie({ color: C.theme.colors.xmlAttribute }),
8443
8446
  contenteditable: o.value === y,
8444
8447
  onDblclick: (Y) => x(y),
8445
8448
  onKeydown: [
@@ -8455,15 +8458,15 @@ const CT = {
8455
8458
  }, me(o.value === y ? I.value : y), 45, pT),
8456
8459
  q("span", {
8457
8460
  class: "xml-node__equals",
8458
- style: ie({ color: _.theme.colors.xmlEquals })
8461
+ style: ie({ color: C.theme.colors.xmlEquals })
8459
8462
  }, "=", 4),
8460
8463
  q("span", {
8461
8464
  class: "xml-node__quote",
8462
- style: ie({ color: _.theme.colors.xmlQuote })
8465
+ style: ie({ color: C.theme.colors.xmlQuote })
8463
8466
  }, '"', 4),
8464
8467
  q("span", {
8465
8468
  class: "xml-node__attr-value xml-node__attr-value--editable",
8466
- style: ie({ color: _.theme.colors.xmlAttributeValue }),
8469
+ style: ie({ color: C.theme.colors.xmlAttributeValue }),
8467
8470
  contenteditable: i.value === y,
8468
8471
  onDblclick: (Y) => D(y),
8469
8472
  onKeydown: [
@@ -8479,20 +8482,20 @@ const CT = {
8479
8482
  }, me(i.value === y ? O.value : he), 45, PT),
8480
8483
  q("span", {
8481
8484
  class: "xml-node__quote",
8482
- style: ie({ color: _.theme.colors.xmlQuote })
8485
+ style: ie({ color: C.theme.colors.xmlQuote })
8483
8486
  }, '"', 4)
8484
8487
  ]))), 128)),
8485
8488
  q("span", {
8486
8489
  class: "xml-node__bracket",
8487
- style: ie({ color: _.theme.colors.xmlBracket })
8490
+ style: ie({ color: C.theme.colors.xmlBracket })
8488
8491
  }, ">", 4),
8489
8492
  q("span", {
8490
8493
  class: "xml-node__cdata",
8491
- style: ie({ color: _.theme.colors.xmlCdata })
8494
+ style: ie({ color: C.theme.colors.xmlCdata })
8492
8495
  }, "<![CDATA[", 4),
8493
8496
  q("span", {
8494
8497
  class: "xml-node__cdata-content xml-node__cdata-content--editable",
8495
- style: ie({ color: _.theme.colors.xmlCdata }),
8498
+ style: ie({ color: C.theme.colors.xmlCdata }),
8496
8499
  contenteditable: N.value,
8497
8500
  onDblclick: ye,
8498
8501
  onKeydown: [
@@ -8506,28 +8509,28 @@ const CT = {
8506
8509
  }, me(N.value ? h.value : g.value), 45, dT),
8507
8510
  q("span", {
8508
8511
  class: "xml-node__cdata",
8509
- style: ie({ color: _.theme.colors.xmlCdata })
8512
+ style: ie({ color: C.theme.colors.xmlCdata })
8510
8513
  }, "]]>", 4),
8511
8514
  q("span", {
8512
8515
  class: "xml-node__bracket",
8513
- style: ie({ color: _.theme.colors.xmlBracket })
8516
+ style: ie({ color: C.theme.colors.xmlBracket })
8514
8517
  }, "</", 4),
8515
8518
  q("span", {
8516
8519
  class: "xml-node__tag",
8517
- style: ie({ color: _.theme.colors.xmlTag })
8520
+ style: ie({ color: C.theme.colors.xmlTag })
8518
8521
  }, me(s.value ? A.value : k.value), 5),
8519
8522
  q("span", {
8520
8523
  class: "xml-node__bracket",
8521
- style: ie({ color: _.theme.colors.xmlBracket })
8524
+ style: ie({ color: C.theme.colors.xmlBracket })
8522
8525
  }, ">", 4)
8523
8526
  ])) : ce.value ? (Ie(), le("div", fT, [
8524
8527
  q("span", {
8525
8528
  class: "xml-node__bracket",
8526
- style: ie({ color: _.theme.colors.xmlBracket })
8529
+ style: ie({ color: C.theme.colors.xmlBracket })
8527
8530
  }, "<", 4),
8528
8531
  q("span", {
8529
8532
  class: "xml-node__tag xml-node__tag--editable",
8530
- style: ie({ color: _.theme.colors.xmlTag }),
8533
+ style: ie({ color: C.theme.colors.xmlTag }),
8531
8534
  contenteditable: s.value,
8532
8535
  onDblclick: se,
8533
8536
  onContextmenu: Ye,
@@ -8546,7 +8549,7 @@ const CT = {
8546
8549
  }, [
8547
8550
  q("span", {
8548
8551
  class: "xml-node__attr-name xml-node__attr-name--editable",
8549
- style: ie({ color: _.theme.colors.xmlAttribute }),
8552
+ style: ie({ color: C.theme.colors.xmlAttribute }),
8550
8553
  contenteditable: o.value === y,
8551
8554
  onDblclick: (Y) => x(y),
8552
8555
  onKeydown: [
@@ -8562,15 +8565,15 @@ const CT = {
8562
8565
  }, me(o.value === y ? I.value : y), 45, MT),
8563
8566
  q("span", {
8564
8567
  class: "xml-node__equals",
8565
- style: ie({ color: _.theme.colors.xmlEquals })
8568
+ style: ie({ color: C.theme.colors.xmlEquals })
8566
8569
  }, "=", 4),
8567
8570
  q("span", {
8568
8571
  class: "xml-node__quote",
8569
- style: ie({ color: _.theme.colors.xmlQuote })
8572
+ style: ie({ color: C.theme.colors.xmlQuote })
8570
8573
  }, '"', 4),
8571
8574
  q("span", {
8572
8575
  class: "xml-node__attr-value xml-node__attr-value--editable",
8573
- style: ie({ color: _.theme.colors.xmlAttributeValue }),
8576
+ style: ie({ color: C.theme.colors.xmlAttributeValue }),
8574
8577
  contenteditable: i.value === y,
8575
8578
  onDblclick: (Y) => D(y),
8576
8579
  onKeydown: [
@@ -8586,16 +8589,16 @@ const CT = {
8586
8589
  }, me(i.value === y ? O.value : he), 45, UT),
8587
8590
  q("span", {
8588
8591
  class: "xml-node__quote",
8589
- style: ie({ color: _.theme.colors.xmlQuote })
8592
+ style: ie({ color: C.theme.colors.xmlQuote })
8590
8593
  }, '"', 4)
8591
8594
  ]))), 128)),
8592
8595
  q("span", {
8593
8596
  class: "xml-node__bracket",
8594
- style: ie({ color: _.theme.colors.xmlBracket })
8597
+ style: ie({ color: C.theme.colors.xmlBracket })
8595
8598
  }, ">", 4),
8596
8599
  q("span", {
8597
8600
  class: "xml-node__text-content xml-node__text-content--editable",
8598
- style: ie({ color: _.theme.colors.xmlText }),
8601
+ style: ie({ color: C.theme.colors.xmlText }),
8599
8602
  contenteditable: l.value,
8600
8603
  onDblclick: U,
8601
8604
  onKeydown: [
@@ -8609,24 +8612,24 @@ const CT = {
8609
8612
  }, me(l.value ? f.value : Q.value), 45, mT),
8610
8613
  q("span", {
8611
8614
  class: "xml-node__bracket",
8612
- style: ie({ color: _.theme.colors.xmlBracket })
8615
+ style: ie({ color: C.theme.colors.xmlBracket })
8613
8616
  }, "</", 4),
8614
8617
  q("span", {
8615
8618
  class: "xml-node__tag",
8616
- style: ie({ color: _.theme.colors.xmlTag })
8619
+ style: ie({ color: C.theme.colors.xmlTag })
8617
8620
  }, me(s.value ? A.value : k.value), 5),
8618
8621
  q("span", {
8619
8622
  class: "xml-node__bracket",
8620
- style: ie({ color: _.theme.colors.xmlBracket })
8623
+ style: ie({ color: C.theme.colors.xmlBracket })
8621
8624
  }, ">", 4)
8622
8625
  ])) : fe.value && v.value ? (Ie(), le("div", gT, [
8623
8626
  q("span", {
8624
8627
  class: "xml-node__bracket",
8625
- style: ie({ color: _.theme.colors.xmlBracket })
8628
+ style: ie({ color: C.theme.colors.xmlBracket })
8626
8629
  }, "<", 4),
8627
8630
  q("span", {
8628
8631
  class: "xml-node__tag xml-node__tag--editable",
8629
- style: ie({ color: _.theme.colors.xmlTag }),
8632
+ style: ie({ color: C.theme.colors.xmlTag }),
8630
8633
  contenteditable: s.value,
8631
8634
  onDblclick: se,
8632
8635
  onContextmenu: Ye,
@@ -8645,7 +8648,7 @@ const CT = {
8645
8648
  }, [
8646
8649
  q("span", {
8647
8650
  class: "xml-node__attr-name xml-node__attr-name--editable",
8648
- style: ie({ color: _.theme.colors.xmlAttribute }),
8651
+ style: ie({ color: C.theme.colors.xmlAttribute }),
8649
8652
  contenteditable: o.value === y,
8650
8653
  onDblclick: (Y) => x(y),
8651
8654
  onKeydown: [
@@ -8661,15 +8664,15 @@ const CT = {
8661
8664
  }, me(o.value === y ? I.value : y), 45, GT),
8662
8665
  q("span", {
8663
8666
  class: "xml-node__equals",
8664
- style: ie({ color: _.theme.colors.xmlEquals })
8667
+ style: ie({ color: C.theme.colors.xmlEquals })
8665
8668
  }, "=", 4),
8666
8669
  q("span", {
8667
8670
  class: "xml-node__quote",
8668
- style: ie({ color: _.theme.colors.xmlQuote })
8671
+ style: ie({ color: C.theme.colors.xmlQuote })
8669
8672
  }, '"', 4),
8670
8673
  q("span", {
8671
8674
  class: "xml-node__attr-value xml-node__attr-value--editable",
8672
- style: ie({ color: _.theme.colors.xmlAttributeValue }),
8675
+ style: ie({ color: C.theme.colors.xmlAttributeValue }),
8673
8676
  contenteditable: i.value === y,
8674
8677
  onDblclick: (Y) => D(y),
8675
8678
  onKeydown: [
@@ -8685,21 +8688,21 @@ const CT = {
8685
8688
  }, me(i.value === y ? O.value : he), 45, yT),
8686
8689
  q("span", {
8687
8690
  class: "xml-node__quote",
8688
- style: ie({ color: _.theme.colors.xmlQuote })
8691
+ style: ie({ color: C.theme.colors.xmlQuote })
8689
8692
  }, '"', 4)
8690
8693
  ]))), 128)),
8691
8694
  q("span", {
8692
8695
  class: "xml-node__bracket",
8693
- style: ie({ color: _.theme.colors.xmlBracket })
8696
+ style: ie({ color: C.theme.colors.xmlBracket })
8694
8697
  }, " />", 4)
8695
8698
  ])) : fe.value ? (Ie(), le("div", FT, [
8696
8699
  q("span", {
8697
8700
  class: "xml-node__bracket",
8698
- style: ie({ color: _.theme.colors.xmlBracket })
8701
+ style: ie({ color: C.theme.colors.xmlBracket })
8699
8702
  }, "<", 4),
8700
8703
  q("span", {
8701
8704
  class: "xml-node__tag xml-node__tag--editable",
8702
- style: ie({ color: _.theme.colors.xmlTag }),
8705
+ style: ie({ color: C.theme.colors.xmlTag }),
8703
8706
  contenteditable: s.value,
8704
8707
  onDblclick: se,
8705
8708
  onContextmenu: Ye,
@@ -8718,7 +8721,7 @@ const CT = {
8718
8721
  }, [
8719
8722
  q("span", {
8720
8723
  class: "xml-node__attr-name xml-node__attr-name--editable",
8721
- style: ie({ color: _.theme.colors.xmlAttribute }),
8724
+ style: ie({ color: C.theme.colors.xmlAttribute }),
8722
8725
  contenteditable: o.value === y,
8723
8726
  onDblclick: (Y) => x(y),
8724
8727
  onKeydown: [
@@ -8734,15 +8737,15 @@ const CT = {
8734
8737
  }, me(o.value === y ? I.value : y), 45, vT),
8735
8738
  q("span", {
8736
8739
  class: "xml-node__equals",
8737
- style: ie({ color: _.theme.colors.xmlEquals })
8740
+ style: ie({ color: C.theme.colors.xmlEquals })
8738
8741
  }, "=", 4),
8739
8742
  q("span", {
8740
8743
  class: "xml-node__quote",
8741
- style: ie({ color: _.theme.colors.xmlQuote })
8744
+ style: ie({ color: C.theme.colors.xmlQuote })
8742
8745
  }, '"', 4),
8743
8746
  q("span", {
8744
8747
  class: "xml-node__attr-value xml-node__attr-value--editable",
8745
- style: ie({ color: _.theme.colors.xmlAttributeValue }),
8748
+ style: ie({ color: C.theme.colors.xmlAttributeValue }),
8746
8749
  contenteditable: i.value === y,
8747
8750
  onDblclick: (Y) => D(y),
8748
8751
  onKeydown: [
@@ -8758,20 +8761,20 @@ const CT = {
8758
8761
  }, me(i.value === y ? O.value : he), 45, bT),
8759
8762
  q("span", {
8760
8763
  class: "xml-node__quote",
8761
- style: ie({ color: _.theme.colors.xmlQuote })
8764
+ style: ie({ color: C.theme.colors.xmlQuote })
8762
8765
  }, '"', 4)
8763
8766
  ]))), 128)),
8764
8767
  q("span", {
8765
8768
  class: "xml-node__bracket",
8766
- style: ie({ color: _.theme.colors.xmlBracket })
8769
+ style: ie({ color: C.theme.colors.xmlBracket })
8767
8770
  }, "></", 4),
8768
8771
  q("span", {
8769
8772
  class: "xml-node__tag",
8770
- style: ie({ color: _.theme.colors.xmlTag })
8773
+ style: ie({ color: C.theme.colors.xmlTag })
8771
8774
  }, me(s.value ? A.value : k.value), 5),
8772
8775
  q("span", {
8773
8776
  class: "xml-node__bracket",
8774
- style: ie({ color: _.theme.colors.xmlBracket })
8777
+ style: ie({ color: C.theme.colors.xmlBracket })
8775
8778
  }, ">", 4)
8776
8779
  ])) : (Ie(), le("div", YT, [
8777
8780
  !Pe.value && X.value ? (Ie(), le("div", xT, [
@@ -8782,11 +8785,11 @@ const CT = {
8782
8785
  }, [
8783
8786
  q("span", {
8784
8787
  class: "xml-node__bracket",
8785
- style: ie({ color: _.theme.colors.xmlBracket })
8788
+ style: ie({ color: C.theme.colors.xmlBracket })
8786
8789
  }, "<", 4),
8787
8790
  q("span", {
8788
8791
  class: "xml-node__tag xml-node__tag--editable",
8789
- style: ie({ color: _.theme.colors.xmlTag }),
8792
+ style: ie({ color: C.theme.colors.xmlTag }),
8790
8793
  contenteditable: s.value,
8791
8794
  onDblclick: We(se, ["stop"]),
8792
8795
  onContextmenu: Ye,
@@ -8806,7 +8809,7 @@ const CT = {
8806
8809
  }, [
8807
8810
  q("span", {
8808
8811
  class: "xml-node__attr-name xml-node__attr-name--editable",
8809
- style: ie({ color: _.theme.colors.xmlAttribute }),
8812
+ style: ie({ color: C.theme.colors.xmlAttribute }),
8810
8813
  contenteditable: o.value === y,
8811
8814
  onDblclick: (Y) => x(y),
8812
8815
  onKeydown: [
@@ -8822,15 +8825,15 @@ const CT = {
8822
8825
  }, me(o.value === y ? I.value : y), 45, wT),
8823
8826
  q("span", {
8824
8827
  class: "xml-node__equals",
8825
- style: ie({ color: _.theme.colors.xmlEquals })
8828
+ style: ie({ color: C.theme.colors.xmlEquals })
8826
8829
  }, "=", 4),
8827
8830
  q("span", {
8828
8831
  class: "xml-node__quote",
8829
- style: ie({ color: _.theme.colors.xmlQuote })
8832
+ style: ie({ color: C.theme.colors.xmlQuote })
8830
8833
  }, '"', 4),
8831
8834
  q("span", {
8832
8835
  class: "xml-node__attr-value xml-node__attr-value--editable",
8833
- style: ie({ color: _.theme.colors.xmlAttributeValue }),
8836
+ style: ie({ color: C.theme.colors.xmlAttributeValue }),
8834
8837
  contenteditable: i.value === y,
8835
8838
  onDblclick: (Y) => D(y),
8836
8839
  onKeydown: [
@@ -8846,7 +8849,7 @@ const CT = {
8846
8849
  }, me(i.value === y ? O.value : he), 45, WT),
8847
8850
  q("span", {
8848
8851
  class: "xml-node__quote",
8849
- style: ie({ color: _.theme.colors.xmlQuote })
8852
+ style: ie({ color: C.theme.colors.xmlQuote })
8850
8853
  }, '"', 4)
8851
8854
  ]))), 128)),
8852
8855
  q("span", {
@@ -8856,18 +8859,14 @@ const CT = {
8856
8859
  }, [
8857
8860
  q("span", {
8858
8861
  class: "xml-node__bracket",
8859
- style: ie({ color: _.theme.colors.xmlBracket })
8862
+ style: ie({ color: C.theme.colors.xmlBracket })
8860
8863
  }, ">", 4)
8861
8864
  ]),
8862
8865
  q("span", {
8863
8866
  class: "xml-node__collapsed-badge",
8864
- style: ie({
8865
- backgroundColor: _.theme.colors.collapsedBackground,
8866
- color: _.theme.colors.collapsedText
8867
- }),
8868
8867
  onClick: ne[2] || (ne[2] = (he) => Z()),
8869
8868
  title: `Click to expand ${Ae.value} tag${Ae.value > 1 ? "s" : ""}`
8870
- }, me(Ae.value) + " tag" + me(Ae.value > 1 ? "s" : ""), 13, XT),
8869
+ }, me(Ae.value) + " tag" + me(Ae.value > 1 ? "s" : ""), 9, XT),
8871
8870
  q("span", {
8872
8871
  class: "xml-node__clickable-part",
8873
8872
  onClick: ne[3] || (ne[3] = (he) => Z()),
@@ -8875,15 +8874,15 @@ const CT = {
8875
8874
  }, [
8876
8875
  q("span", {
8877
8876
  class: "xml-node__bracket",
8878
- style: ie({ color: _.theme.colors.xmlBracket })
8877
+ style: ie({ color: C.theme.colors.xmlBracket })
8879
8878
  }, "</", 4),
8880
8879
  q("span", {
8881
8880
  class: "xml-node__tag",
8882
- style: ie({ color: _.theme.colors.xmlTag })
8881
+ style: ie({ color: C.theme.colors.xmlTag })
8883
8882
  }, me(s.value ? A.value : k.value), 5),
8884
8883
  q("span", {
8885
8884
  class: "xml-node__bracket",
8886
- style: ie({ color: _.theme.colors.xmlBracket })
8885
+ style: ie({ color: C.theme.colors.xmlBracket })
8887
8886
  }, ">", 4)
8888
8887
  ])
8889
8888
  ])) : (Ie(), le(St, { key: 1 }, [
@@ -8896,11 +8895,11 @@ const CT = {
8896
8895
  }, [
8897
8896
  q("span", {
8898
8897
  class: "xml-node__bracket",
8899
- style: ie({ color: _.theme.colors.xmlBracket })
8898
+ style: ie({ color: C.theme.colors.xmlBracket })
8900
8899
  }, "<", 4),
8901
8900
  q("span", {
8902
8901
  class: "xml-node__tag xml-node__tag--editable",
8903
- style: ie({ color: _.theme.colors.xmlTag }),
8902
+ style: ie({ color: C.theme.colors.xmlTag }),
8904
8903
  contenteditable: s.value,
8905
8904
  onDblclick: We(se, ["stop"]),
8906
8905
  onContextmenu: Ye,
@@ -8916,11 +8915,11 @@ const CT = {
8916
8915
  ], 8, $T)) : (Ie(), le("span", qT, [
8917
8916
  q("span", {
8918
8917
  class: "xml-node__bracket",
8919
- style: ie({ color: _.theme.colors.xmlBracket })
8918
+ style: ie({ color: C.theme.colors.xmlBracket })
8920
8919
  }, "<", 4),
8921
8920
  q("span", {
8922
8921
  class: "xml-node__tag xml-node__tag--editable",
8923
- style: ie({ color: _.theme.colors.xmlTag }),
8922
+ style: ie({ color: C.theme.colors.xmlTag }),
8924
8923
  contenteditable: s.value,
8925
8924
  onDblclick: se,
8926
8925
  onKeydown: [
@@ -8939,7 +8938,7 @@ const CT = {
8939
8938
  }, [
8940
8939
  q("span", {
8941
8940
  class: "xml-node__attr-name xml-node__attr-name--editable",
8942
- style: ie({ color: _.theme.colors.xmlAttribute }),
8941
+ style: ie({ color: C.theme.colors.xmlAttribute }),
8943
8942
  contenteditable: o.value === y,
8944
8943
  onDblclick: (Y) => x(y),
8945
8944
  onKeydown: [
@@ -8955,15 +8954,15 @@ const CT = {
8955
8954
  }, me(o.value === y ? I.value : y), 45, QT),
8956
8955
  q("span", {
8957
8956
  class: "xml-node__equals",
8958
- style: ie({ color: _.theme.colors.xmlEquals })
8957
+ style: ie({ color: C.theme.colors.xmlEquals })
8959
8958
  }, "=", 4),
8960
8959
  q("span", {
8961
8960
  class: "xml-node__quote",
8962
- style: ie({ color: _.theme.colors.xmlQuote })
8961
+ style: ie({ color: C.theme.colors.xmlQuote })
8963
8962
  }, '"', 4),
8964
8963
  q("span", {
8965
8964
  class: "xml-node__attr-value xml-node__attr-value--editable",
8966
- style: ie({ color: _.theme.colors.xmlAttributeValue }),
8965
+ style: ie({ color: C.theme.colors.xmlAttributeValue }),
8967
8966
  contenteditable: i.value === y,
8968
8967
  onDblclick: (Y) => D(y),
8969
8968
  onKeydown: [
@@ -8979,7 +8978,7 @@ const CT = {
8979
8978
  }, me(i.value === y ? O.value : he), 45, ZT),
8980
8979
  q("span", {
8981
8980
  class: "xml-node__quote",
8982
- style: ie({ color: _.theme.colors.xmlQuote })
8981
+ style: ie({ color: C.theme.colors.xmlQuote })
8983
8982
  }, '"', 4)
8984
8983
  ]))), 128)),
8985
8984
  X.value ? (Ie(), le("span", {
@@ -8990,19 +8989,19 @@ const CT = {
8990
8989
  }, [
8991
8990
  q("span", {
8992
8991
  class: "xml-node__bracket",
8993
- style: ie({ color: _.theme.colors.xmlBracket })
8992
+ style: ie({ color: C.theme.colors.xmlBracket })
8994
8993
  }, ">", 4)
8995
8994
  ], 8, jT)) : (Ie(), le("span", {
8996
8995
  key: 3,
8997
8996
  class: "xml-node__bracket",
8998
- style: ie({ color: _.theme.colors.xmlBracket })
8997
+ style: ie({ color: C.theme.colors.xmlBracket })
8999
8998
  }, me(X.value ? ">" : "/>"), 5))
9000
8999
  ]),
9001
9000
  Pe.value && X.value ? (Ie(), le("div", zT, [
9002
9001
  Re.value.length === 0 && Q.value.trim() ? (Ie(), le("div", es, [
9003
9002
  q("span", {
9004
9003
  class: "xml-node__text-content xml-node__text-content--editable",
9005
- style: ie({ color: _.theme.colors.xmlText }),
9004
+ style: ie({ color: C.theme.colors.xmlText }),
9006
9005
  contenteditable: l.value,
9007
9006
  onDblclick: U,
9008
9007
  onKeydown: [
@@ -9019,18 +9018,18 @@ const CT = {
9019
9018
  key: Ce(he, y),
9020
9019
  node: he,
9021
9020
  index: y,
9022
- level: _.level + 1,
9021
+ level: C.level + 1,
9023
9022
  "parent-path": He(),
9024
- expanded: _.expanded,
9025
- theme: _.theme,
9026
- selfClosingTags: _.selfClosingTags,
9027
- onToggleExpand: ne[6] || (ne[6] = (Y) => _.$emit("toggle-expand", Y)),
9028
- onCopy: ne[7] || (ne[7] = (Y) => _.$emit("copy", Y)),
9029
- "onUpdate:tagName": ne[8] || (ne[8] = (Y, ke, st) => _.$emit("update:tagName", Y, ke, st)),
9030
- "onUpdate:attributeName": ne[9] || (ne[9] = (Y, ke, st) => _.$emit("update:attributeName", Y, ke, st)),
9031
- "onUpdate:attributeValue": ne[10] || (ne[10] = (Y, ke, st) => _.$emit("update:attributeValue", Y, ke, st)),
9032
- "onUpdate:textContent": ne[11] || (ne[11] = (Y, ke) => _.$emit("update:textContent", Y, ke)),
9033
- "onUpdate:cdataContent": ne[12] || (ne[12] = (Y, ke) => _.$emit("update:cdataContent", Y, ke))
9023
+ expanded: C.expanded,
9024
+ theme: C.theme,
9025
+ selfClosingTags: C.selfClosingTags,
9026
+ onToggleExpand: ne[6] || (ne[6] = (Y) => C.$emit("toggle-expand", Y)),
9027
+ onCopy: ne[7] || (ne[7] = (Y) => C.$emit("copy", Y)),
9028
+ "onUpdate:tagName": ne[8] || (ne[8] = (Y, ke, st) => C.$emit("update:tagName", Y, ke, st)),
9029
+ "onUpdate:attributeName": ne[9] || (ne[9] = (Y, ke, st) => C.$emit("update:attributeName", Y, ke, st)),
9030
+ "onUpdate:attributeValue": ne[10] || (ne[10] = (Y, ke, st) => C.$emit("update:attributeValue", Y, ke, st)),
9031
+ "onUpdate:textContent": ne[11] || (ne[11] = (Y, ke) => C.$emit("update:textContent", Y, ke)),
9032
+ "onUpdate:cdataContent": ne[12] || (ne[12] = (Y, ke) => C.$emit("update:cdataContent", Y, ke))
9034
9033
  }, null, 8, ["node", "index", "level", "parent-path", "expanded", "theme", "selfClosingTags"]))), 128))
9035
9034
  ])) : et("", !0),
9036
9035
  Pe.value && X.value ? (Ie(), le("div", Es, [
@@ -9041,15 +9040,15 @@ const CT = {
9041
9040
  }, [
9042
9041
  q("span", {
9043
9042
  class: "xml-node__bracket",
9044
- style: ie({ color: _.theme.colors.xmlBracket })
9043
+ style: ie({ color: C.theme.colors.xmlBracket })
9045
9044
  }, "</", 4),
9046
9045
  q("span", {
9047
9046
  class: "xml-node__tag",
9048
- style: ie({ color: _.theme.colors.xmlTag })
9047
+ style: ie({ color: C.theme.colors.xmlTag })
9049
9048
  }, me(s.value ? A.value : k.value), 5),
9050
9049
  q("span", {
9051
9050
  class: "xml-node__bracket",
9052
- style: ie({ color: _.theme.colors.xmlBracket })
9051
+ style: ie({ color: C.theme.colors.xmlBracket })
9053
9052
  }, ">", 4)
9054
9053
  ])
9055
9054
  ])) : et("", !0)
@@ -9059,7 +9058,7 @@ const CT = {
9059
9058
  ], 4);
9060
9059
  };
9061
9060
  }
9062
- }), ns = /* @__PURE__ */ Jt(rs, [["__scopeId", "data-v-7165a289"]]), Ts = {
9061
+ }), ns = /* @__PURE__ */ Jt(rs, [["__scopeId", "data-v-cb0803af"]]), Ts = {
9063
9062
  name: "github-light",
9064
9063
  colors: {
9065
9064
  // 背景色
@@ -9106,6 +9105,8 @@ const CT = {
9106
9105
  // 折叠效果
9107
9106
  collapsedBackground: "#ddf4ff",
9108
9107
  // 折叠信息背景色 - 浅蓝
9108
+ collapsedBackgroundHover: "#b6e3ff",
9109
+ // 折叠信息悬停背景色 - 稍深蓝
9109
9110
  collapsedText: "#0969da",
9110
9111
  // 折叠信息文本色 - 蓝色
9111
9112
  // 缩进指示线
@@ -9157,9 +9158,11 @@ const CT = {
9157
9158
  xmlQuote: "#79c0ff",
9158
9159
  // 引号 - 亮蓝色
9159
9160
  // 折叠效果
9160
- collapsedBackground: "#1c2d41",
9161
+ collapsedBackground: "#1c2128",
9161
9162
  // 折叠信息背景色 - 深蓝
9162
- collapsedText: "#58a6ff",
9163
+ collapsedBackgroundHover: "#2d333b",
9164
+ // 折叠信息悬停背景色 - 稍深
9165
+ collapsedText: "#79c0ff",
9163
9166
  // 折叠信息文本色 - 亮蓝色
9164
9167
  // 缩进指示线
9165
9168
  indentLine: "#30363d"
@@ -9210,9 +9213,11 @@ const CT = {
9210
9213
  xmlQuote: "#2563eb",
9211
9214
  // 引号 - 蓝色
9212
9215
  // 折叠效果
9213
- collapsedBackground: "#dbeafe",
9216
+ collapsedBackground: "#e0f2fe",
9214
9217
  // 折叠信息背景色 - 浅蓝
9215
- collapsedText: "#1d4ed8",
9218
+ collapsedBackgroundHover: "#bae6fd",
9219
+ // 折叠信息悬停背景色 - 稍深蓝
9220
+ collapsedText: "#0284c7",
9216
9221
  // 折叠信息文本色 - 蓝色
9217
9222
  // 缩进指示线
9218
9223
  indentLine: "#e5e7eb"
@@ -9263,10 +9268,12 @@ const CT = {
9263
9268
  xmlQuote: "#1264a3",
9264
9269
  // 引号 - 蓝色
9265
9270
  // 折叠效果
9266
- collapsedBackground: "#d8eaf5",
9267
- // 折叠信息背景色 - 浅蓝
9268
- collapsedText: "#0b4c8c",
9269
- // 折叠信息文本色 - 深蓝
9271
+ collapsedBackground: "#ffe8d6",
9272
+ // 折叠信息背景色 - 浅橙
9273
+ collapsedBackgroundHover: "#ffd4b0",
9274
+ // 折叠信息悬停背景色 - 稍深橙
9275
+ collapsedText: "#d73502",
9276
+ // 折叠信息文本色 - 橙红色
9270
9277
  // 缩进指示线
9271
9278
  indentLine: "#e8d5b7"
9272
9279
  // 对齐线 - 米色
@@ -10646,9 +10653,9 @@ const so = {
10646
10653
  }), m.sort((Ee, Se) => {
10647
10654
  const Le = ($) => {
10648
10655
  const Ye = Object.keys($);
10649
- for (const _ of Ye)
10650
- if (!_.startsWith("?") && !_.startsWith(":") && !_.startsWith("#") && !_.startsWith("__"))
10651
- return _;
10656
+ for (const C of Ye)
10657
+ if (!C.startsWith("?") && !C.startsWith(":") && !C.startsWith("#") && !C.startsWith("__"))
10658
+ return C;
10652
10659
  return Ye[0] || "";
10653
10660
  }, ye = Le(Ee.item), ue = Le(Se.item);
10654
10661
  return ye.localeCompare(ue);