@digipair/skill-web-jsoneditor 0.8.37 → 0.8.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.cjs.js +252 -252
  2. package/index.esm.js +252 -252
  3. package/package.json +1 -1
package/index.esm.js CHANGED
@@ -41073,7 +41073,7 @@ function findNextOccurrence(state, query) {
41073
41073
  var _loop = function(cycled1, cursor1) {
41074
41074
  cursor1.next();
41075
41075
  if (cursor1.done) {
41076
- if (cycled1) return cycled = cycled1, cursor = cursor1, {
41076
+ if (cycled1) return cursor = cursor1, cycled = cycled1, {
41077
41077
  v: null
41078
41078
  };
41079
41079
  cursor1 = new SearchCursor(state.doc, query, 0, Math.max(0, ranges[ranges.length - 1].from - 1));
@@ -41081,16 +41081,16 @@ function findNextOccurrence(state, query) {
41081
41081
  } else {
41082
41082
  if (cycled1 && ranges.some(function(r) {
41083
41083
  return r.from == cursor1.value.from;
41084
- })) return cycled = cycled1, cursor = cursor1, "continue";
41084
+ })) return cursor = cursor1, cycled = cycled1, "continue";
41085
41085
  if (fullWord) {
41086
41086
  var word = state.wordAt(cursor1.value.from);
41087
- if (!word || word.from != cursor1.value.from || word.to != cursor1.value.to) return cycled = cycled1, cursor = cursor1, "continue";
41087
+ if (!word || word.from != cursor1.value.from || word.to != cursor1.value.to) return cursor = cursor1, cycled = cycled1, "continue";
41088
41088
  }
41089
- return cycled = cycled1, cursor = cursor1, {
41089
+ return cursor = cursor1, cycled = cycled1, {
41090
41090
  v: cursor1.value
41091
41091
  };
41092
41092
  }
41093
- cycled = cycled1, cursor = cursor1;
41093
+ cursor = cursor1, cycled = cycled1;
41094
41094
  };
41095
41095
  var _state_selection = state.selection, main = _state_selection.main, ranges = _state_selection.ranges;
41096
41096
  var word = state.wordAt(main.head), fullWord = word && word.from == main.from && word.to == main.to;
@@ -81449,10 +81449,10 @@ function by(e, n, t) {
81449
81449
  return pe && document.hasFocus() || Xi(_$y);
81450
81450
  },
81451
81451
  onFocus: function onFocus() {
81452
- Z && Z();
81452
+ me = !0, Z && Z();
81453
81453
  },
81454
81454
  onBlur: function onBlur() {
81455
- X && X();
81455
+ me = !1, X && X();
81456
81456
  }
81457
81457
  });
81458
81458
  var re, ie, ae = void 0, se = !1, le = !1;
@@ -81461,9 +81461,9 @@ function by(e, n, t) {
81461
81461
  return r().wrap(function(e) {
81462
81462
  for(;;)switch(e.prev = e.next){
81463
81463
  case 0:
81464
- return t(12, ye = g(g({}, ye), {}, {
81464
+ return t(12, xe = g(g({}, xe), {}, {
81465
81465
  selection: null
81466
- })), e.next = 3, Le(n);
81466
+ })), e.next = 3, Ue(n);
81467
81467
  case 3:
81468
81468
  case "end":
81469
81469
  return e.stop();
@@ -81471,44 +81471,44 @@ function by(e, n, t) {
81471
81471
  }, e);
81472
81472
  }))).apply(this, arguments);
81473
81473
  }
81474
- var ue, de = 1e4, ve = [], pe = !1, me = {}, ge = 600, he = 0;
81475
- function je(e) {
81474
+ var ue, de = 1e4, ve = [], pe = !1, me = !1, ge = {}, he = 600, je = 0;
81475
+ function be(e) {
81476
81476
  c("updateSelection", e);
81477
- var _$n = "function" == typeof e ? e(ye.selection) || null : e;
81478
- isEqual$1(_$n, ye.selection) || (t(12, ye = g(g({}, ye), {}, {
81477
+ var _$n = "function" == typeof e ? e(xe.selection) || null : e;
81478
+ isEqual$1(_$n, xe.selection) || (t(12, xe = g(g({}, xe), {}, {
81479
81479
  selection: _$n
81480
81480
  })), W(_$n));
81481
81481
  }
81482
- function be(e) {
81483
- ye.selection && void 0 !== e && (existsIn(e, yl(ye.selection)) && existsIn(e, bl(ye.selection)) || (c("clearing selection: path does not exist anymore", ye.selection), t(12, ye = g(g({}, ye), {}, {
81482
+ function ye(e) {
81483
+ xe.selection && void 0 !== e && (existsIn(e, yl(xe.selection)) && existsIn(e, bl(xe.selection)) || (c("clearing selection: path does not exist anymore", xe.selection), t(12, xe = g(g({}, xe), {}, {
81484
81484
  selection: null
81485
81485
  }))));
81486
81486
  }
81487
- var ye = fs(), xe = !1;
81488
- var we, $e = $f({
81487
+ var xe = fs(), we = !1;
81488
+ var $e, ke = $f({
81489
81489
  onChange: function onChange(e) {
81490
- t(24, ke = e);
81490
+ t(24, Ce = e);
81491
81491
  }
81492
- }), ke = $e.getState();
81493
- function Ce(e) {
81492
+ }), Ce = ke.getState();
81493
+ function Se(e) {
81494
81494
  var _$n = k, o = xi(e) ? e.text !== C : !isEqual$1(_$n, e.json);
81495
81495
  if (c("update external content", {
81496
81496
  isChanged: o
81497
81497
  }), o) {
81498
- var r = k, i = ye, a = C, s = xe;
81498
+ var r = k, i = xe, a = C, s = we;
81499
81499
  if (xi(e)) try {
81500
- t(8, k = F(e.text)), t(17, C = e.text), t(23, xe = !1), t(18, ae = void 0);
81500
+ t(8, k = F(e.text)), t(17, C = e.text), t(23, we = !1), t(18, ae = void 0);
81501
81501
  } catch (n) {
81502
81502
  try {
81503
- t(8, k = F(jsonrepair(e.text))), t(17, C = e.text), t(23, xe = !0), t(18, ae = void 0);
81503
+ t(8, k = F(jsonrepair(e.text))), t(17, C = e.text), t(23, we = !0), t(18, ae = void 0);
81504
81504
  } catch (o) {
81505
- t(8, k = void 0), t(17, C = e.text), t(23, xe = !1), t(18, ae = "" !== C ? ji(C, n.message || String(n)) : void 0);
81505
+ t(8, k = void 0), t(17, C = e.text), t(23, we = !1), t(18, ae = "" !== C ? ji(C, n.message || String(n)) : void 0);
81506
81506
  }
81507
81507
  }
81508
- else t(8, k = e.json), t(17, C = void 0), t(23, xe = !1), t(18, ae = void 0);
81509
- be(k), ye.sortedColumn && t(12, ye = g(g({}, ye), {}, {
81508
+ else t(8, k = e.json), t(17, C = void 0), t(23, we = !1), t(18, ae = void 0);
81509
+ ye(k), xe.sortedColumn && t(12, xe = g(g({}, xe), {}, {
81510
81510
  sortedColumn: null
81511
- })), Se({
81511
+ })), Me({
81512
81512
  previousJson: r,
81513
81513
  previousState: i,
81514
81514
  previousText: a,
@@ -81516,9 +81516,9 @@ function by(e, n, t) {
81516
81516
  });
81517
81517
  }
81518
81518
  }
81519
- function Se(e) {
81519
+ function Me(e) {
81520
81520
  var _$n = e.previousJson, t = e.previousState, o = e.previousText, r = e.previousTextIsRepaired;
81521
- void 0 === _$n && void 0 === o || (void 0 !== k ? void 0 !== _$n ? $e.add({
81521
+ void 0 === _$n && void 0 === o || (void 0 !== k ? void 0 !== _$n ? ke.add({
81522
81522
  undo: {
81523
81523
  patch: [
81524
81524
  {
@@ -81540,12 +81540,12 @@ function by(e, n, t) {
81540
81540
  value: k
81541
81541
  }
81542
81542
  ],
81543
- state: rl(ye),
81543
+ state: rl(xe),
81544
81544
  json: void 0,
81545
81545
  text: C,
81546
- textIsRepaired: xe
81546
+ textIsRepaired: we
81547
81547
  }
81548
- }) : $e.add({
81548
+ }) : ke.add({
81549
81549
  undo: {
81550
81550
  patch: void 0,
81551
81551
  json: void 0,
@@ -81556,11 +81556,11 @@ function by(e, n, t) {
81556
81556
  redo: {
81557
81557
  patch: void 0,
81558
81558
  json: k,
81559
- state: rl(ye),
81559
+ state: rl(xe),
81560
81560
  text: C,
81561
- textIsRepaired: xe
81561
+ textIsRepaired: we
81562
81562
  }
81563
- }) : void 0 !== _$n && $e.add({
81563
+ }) : void 0 !== _$n && ke.add({
81564
81564
  undo: {
81565
81565
  patch: void 0,
81566
81566
  json: _$n,
@@ -81572,17 +81572,17 @@ function by(e, n, t) {
81572
81572
  patch: void 0,
81573
81573
  json: void 0,
81574
81574
  text: C,
81575
- textIsRepaired: xe,
81576
- state: rl(ye)
81575
+ textIsRepaired: we,
81576
+ state: rl(xe)
81577
81577
  }
81578
81578
  }));
81579
81579
  }
81580
- var Me = [], Oe = memoizeOne(Sf);
81581
- function ze(e, n, o, r) {
81580
+ var Oe = [], ze = memoizeOne(Sf);
81581
+ function Re(e, n, o, r) {
81582
81582
  kf(function() {
81583
81583
  var i;
81584
81584
  try {
81585
- i = Oe(e, n, o, r);
81585
+ i = ze(e, n, o, r);
81586
81586
  } catch (e) {
81587
81587
  i = [
81588
81588
  {
@@ -81592,25 +81592,25 @@ function by(e, n, t) {
81592
81592
  }
81593
81593
  ];
81594
81594
  }
81595
- isEqual$1(i, Me) || (c("validationErrors changed:", i), t(13, Me = i));
81595
+ isEqual$1(i, Oe) || (c("validationErrors changed:", i), t(13, Oe = i));
81596
81596
  }, function(e) {
81597
81597
  return c("validationErrors updated in ".concat(e, " ms"));
81598
81598
  });
81599
81599
  }
81600
- function Re() {
81600
+ function Ee() {
81601
81601
  return c("validate"), ae ? {
81602
81602
  parseError: ae,
81603
81603
  isRepairable: !1
81604
- } : (ze(k, U, B, D), isEmpty(Me) ? null : {
81605
- validationErrors: Me
81604
+ } : (Re(k, U, B, D), isEmpty(Oe) ? null : {
81605
+ validationErrors: Oe
81606
81606
  });
81607
81607
  }
81608
- function Ee(e, n) {
81608
+ function qe(e, n) {
81609
81609
  if (c("patch", e, n), void 0 === k) throw new Error("Cannot apply patch: no JSON");
81610
- var o = k, r = ye, i = xe, a = Fl(k, e), s = bs(k, ye, e).json, l = Pg(ye, e, ve), u = "function" == typeof n ? n(s, l) : void 0;
81610
+ var o = k, r = xe, i = we, a = Fl(k, e), s = bs(k, xe, e).json, l = Pg(xe, e, ve), u = "function" == typeof n ? n(s, l) : void 0;
81611
81611
  t(8, k = u && void 0 !== u.json ? u.json : s);
81612
81612
  var d = u && void 0 !== u.state ? u.state : l;
81613
- return t(12, ye = d), t(17, C = void 0), t(23, xe = !1), t(19, re = void 0), t(18, ae = void 0), $e.add({
81613
+ return t(12, xe = d), t(17, C = void 0), t(23, we = !1), t(19, re = void 0), t(18, ae = void 0), ke.add({
81614
81614
  undo: {
81615
81615
  patch: a,
81616
81616
  json: void 0,
@@ -81623,7 +81623,7 @@ function by(e, n, t) {
81623
81623
  json: void 0,
81624
81624
  state: rl(d),
81625
81625
  text: void 0,
81626
- textIsRepaired: xe
81626
+ textIsRepaired: we
81627
81627
  }
81628
81628
  }), {
81629
81629
  json: k,
@@ -81632,21 +81632,21 @@ function by(e, n, t) {
81632
81632
  redo: e
81633
81633
  };
81634
81634
  }
81635
- function qe(e, n) {
81635
+ function Pe(e, n) {
81636
81636
  c("handlePatch", e, n);
81637
81637
  var t = {
81638
81638
  json: k,
81639
81639
  text: C
81640
- }, o = Ee(e, n);
81641
- return Pe(t, o), o;
81640
+ }, o = qe(e, n);
81641
+ return Ie(t, o), o;
81642
81642
  }
81643
- function Pe(e, n) {
81643
+ function Ie(e, n) {
81644
81644
  if ((void 0 !== e.json || void 0 !== (null == e ? void 0 : e.text)) && V) {
81645
81645
  if (void 0 !== C) V({
81646
81646
  text: C,
81647
81647
  json: void 0
81648
81648
  }, e, {
81649
- contentErrors: Re(),
81649
+ contentErrors: Ee(),
81650
81650
  patchResult: n
81651
81651
  });
81652
81652
  else if (void 0 !== k) {
@@ -81654,38 +81654,38 @@ function by(e, n, t) {
81654
81654
  text: void 0,
81655
81655
  json: k
81656
81656
  }, e, {
81657
- contentErrors: Re(),
81657
+ contentErrors: Ee(),
81658
81658
  patchResult: n
81659
81659
  });
81660
81660
  }
81661
81661
  }
81662
81662
  }
81663
- function Ie(e) {
81663
+ function Te(e) {
81664
81664
  c("handleFind", e);
81665
81665
  }
81666
- function Te(e) {
81666
+ function Ne(e) {
81667
81667
  c("pasted json as text", e), t(19, re = e);
81668
81668
  }
81669
- function Ne(e) {
81669
+ function Be(e) {
81670
81670
  var _$n = parseInt(e[0], 10), t = [
81671
81671
  String(_$n + 1)
81672
81672
  ].concat(w(e.slice(1)));
81673
81673
  return existsIn(k, t) ? al(t, !1) : al(e, !1);
81674
81674
  }
81675
- function Be() {
81675
+ function Fe() {
81676
81676
  c("focus"), $ && ($.focus(), $.select());
81677
81677
  }
81678
- function Fe() {
81679
- ye.selection || je(!isJSONArray(k) || isEmpty(k) || isEmpty(ve) ? null : al([
81678
+ function Le() {
81679
+ xe.selection || be(!isJSONArray(k) || isEmpty(k) || isEmpty(ve) ? null : al([
81680
81680
  "0"
81681
81681
  ].concat(w(ve[0])), !1));
81682
81682
  }
81683
- function Le(e) {
81684
- var _$n = !(arguments.length > 1 && void 0 !== arguments[1]) || arguments[1], t = se ? Ur : 0, o = Mg(e, ve, me, jy), i = o - he + t + jy, s = Ge(e);
81683
+ function Ue(e) {
81684
+ var _$n = !(arguments.length > 1 && void 0 !== arguments[1]) || arguments[1], t = se ? Ur : 0, o = Mg(e, ve, ge, jy), i = o - je + t + jy, s = Ze(e);
81685
81685
  if (c("scrollTo", {
81686
81686
  path: e,
81687
81687
  top: o,
81688
- scrollTop: he,
81688
+ scrollTop: je,
81689
81689
  elem: s
81690
81690
  }), !x) return Promise.resolve();
81691
81691
  var l = x.getBoundingClientRect();
@@ -81700,7 +81700,7 @@ function by(e, n, t) {
81700
81700
  offset: d,
81701
81701
  duration: 300,
81702
81702
  callback: function callback() {
81703
- Ue(e), n();
81703
+ Qe(e), n();
81704
81704
  }
81705
81705
  });
81706
81706
  } : function(n) {
@@ -81715,7 +81715,7 @@ function by(e, n, t) {
81715
81715
  case 0:
81716
81716
  return t.next = 2, bo();
81717
81717
  case 2:
81718
- Ue(e), n();
81718
+ Qe(e), n();
81719
81719
  case 4:
81720
81720
  case "end":
81721
81721
  return t.stop();
@@ -81727,8 +81727,8 @@ function by(e, n, t) {
81727
81727
  });
81728
81728
  });
81729
81729
  }
81730
- function Ue(e) {
81731
- var _$n = Ge(e);
81730
+ function Qe(e) {
81731
+ var _$n = Ze(e);
81732
81732
  if (_$n && x) {
81733
81733
  var o = x.getBoundingClientRect(), r = _$n.getBoundingClientRect();
81734
81734
  if (r.right > o.right) {
@@ -81741,10 +81741,10 @@ function by(e, n, t) {
81741
81741
  }
81742
81742
  }
81743
81743
  }
81744
- function Qe(e) {
81744
+ function Ge(e) {
81745
81745
  !function(e) {
81746
81746
  if (x) {
81747
- var _$n = Og(e, ve).rowIndex, o = Mg(e, ve, me, jy), r = o + (me[_$n] || jy), i = x.getBoundingClientRect(), a = he, s = he + i.height - 18;
81747
+ var _$n = Og(e, ve).rowIndex, o = Mg(e, ve, ge, jy), r = o + (ge[_$n] || jy), i = x.getBoundingClientRect(), a = je, s = je + i.height - 18;
81748
81748
  if (r > s) {
81749
81749
  var l = r - s;
81750
81750
  t(15, x.scrollTop += l, x);
@@ -81754,15 +81754,15 @@ function by(e, n, t) {
81754
81754
  t(15, x.scrollTop -= c, x);
81755
81755
  }
81756
81756
  }
81757
- }(e), Ue(e);
81757
+ }(e), Qe(e);
81758
81758
  }
81759
- function Ge(e) {
81759
+ function Ze(e) {
81760
81760
  var _$n = ve.find(function(n) {
81761
81761
  return ol(e.slice(1), n);
81762
81762
  }), t = _$n ? e.slice(0, 1).concat(_$n) : e;
81763
81763
  return x ? x.querySelector('td[data-path="'.concat(ta(t), '"]')) : null;
81764
81764
  }
81765
- function Ze(e) {
81765
+ function Xe(e) {
81766
81766
  var _$n = e.anchor, t = e.left, o = e.top, r = e.width, i = e.height, a = e.offsetTop, s = e.offsetLeft, l = e.showTip, c = function(e) {
81767
81767
  var _$n = e.json, t = e.documentState, o = e.readOnly, r = e.parser, i = e.onEditValue, a = e.onEditRow, s = e.onToggleEnforceString, l = e.onCut, c = e.onCopy, u = e.onPaste, d = e.onRemove, f = e.onDuplicateRow, v = e.onInsertBeforeRow, p = e.onInsertAfterRow, m = e.onRemoveRow, _$g = t.selection, h = void 0 !== _$n, j = !!_$g, b = void 0 !== _$n && _$g ? getIn(_$n, bl(_$g)) : void 0, _$y = h && (Ds(_$g) || Ls(_$g) || Us(_$g)), x = !o && h && null != _$g && nl(_$g), w = x && !Yr(b), $ = !o && _$y, k = null != _$g && void 0 !== b && Rs(b, t.enforceStringMap, compileJSONPointer(bl(_$g)), r);
81768
81768
  return [
@@ -81973,20 +81973,20 @@ function by(e, n, t) {
81973
81973
  ];
81974
81974
  }({
81975
81975
  json: k,
81976
- documentState: ye,
81976
+ documentState: xe,
81977
81977
  readOnly: S,
81978
81978
  parser: B,
81979
- onEditValue: en,
81980
- onEditRow: nn,
81981
- onToggleEnforceString: tn,
81982
- onCut: an,
81983
- onCopy: cn,
81984
- onPaste: rn,
81985
- onRemove: dn,
81986
- onDuplicateRow: fn,
81987
- onInsertBeforeRow: vn,
81988
- onInsertAfterRow: pn,
81989
- onRemoveRow: mn
81979
+ onEditValue: nn,
81980
+ onEditRow: tn,
81981
+ onToggleEnforceString: on,
81982
+ onCut: ln,
81983
+ onCopy: un,
81984
+ onPaste: an,
81985
+ onRemove: fn,
81986
+ onDuplicateRow: vn,
81987
+ onInsertBeforeRow: pn,
81988
+ onInsertAfterRow: mn,
81989
+ onRemoveRow: gn
81990
81990
  }), u = K(c);
81991
81991
  if (!1 !== u) {
81992
81992
  var d = {
@@ -81999,7 +81999,7 @@ function by(e, n, t) {
81999
81999
  anchor: _$n,
82000
82000
  closeOnOuterClick: !0,
82001
82001
  onClose: function onClose() {
82002
- pe = !1, Be();
82002
+ pe = !1, Fe();
82003
82003
  }
82004
82004
  };
82005
82005
  pe = !0;
@@ -82007,14 +82007,14 @@ function by(e, n, t) {
82007
82007
  tip: l ? "Tip: you can open this context menu via right-click or with Ctrl+Q" : void 0,
82008
82008
  items: u,
82009
82009
  onRequestClose: function onRequestClose() {
82010
- v(p), Be();
82010
+ v(p), Fe();
82011
82011
  }
82012
82012
  }, d);
82013
82013
  }
82014
82014
  }
82015
- function Xe(e) {
82016
- if (!dl(ye.selection)) {
82017
- if (e && (e.stopPropagation(), e.preventDefault()), e && "contextmenu" === e.type && e.target !== $) Ze({
82015
+ function en(e) {
82016
+ if (!dl(xe.selection)) {
82017
+ if (e && (e.stopPropagation(), e.preventDefault()), e && "contextmenu" === e.type && e.target !== $) Xe({
82018
82018
  left: e.clientX,
82019
82019
  top: e.clientY,
82020
82020
  width: Lr,
@@ -82023,7 +82023,7 @@ function by(e, n, t) {
82023
82023
  });
82024
82024
  else {
82025
82025
  var _$n, t = null === (_$n = x) || void 0 === _$n ? void 0 : _$n.querySelector(".jse-table-cell.jse-selected-value");
82026
- if (t) Ze({
82026
+ if (t) Xe({
82027
82027
  anchor: t,
82028
82028
  offsetTop: 2,
82029
82029
  width: Lr,
@@ -82032,7 +82032,7 @@ function by(e, n, t) {
82032
82032
  });
82033
82033
  else {
82034
82034
  var o, r = null === (o = x) || void 0 === o ? void 0 : o.getBoundingClientRect();
82035
- r && Ze({
82035
+ r && Xe({
82036
82036
  top: r.top + 2,
82037
82037
  left: r.left + 2,
82038
82038
  width: Lr,
@@ -82044,23 +82044,23 @@ function by(e, n, t) {
82044
82044
  return !1;
82045
82045
  }
82046
82046
  }
82047
- function en() {
82048
- if (!S && ye.selection) {
82049
- var _$e = bl(ye.selection);
82050
- Yr(getIn(k, _$e)) ? yn(_$e) : je(al(_$e, !0));
82051
- }
82052
- }
82053
82047
  function nn() {
82054
- !S && ye.selection && yn(bl(ye.selection).slice(0, 1));
82048
+ if (!S && xe.selection) {
82049
+ var _$e = bl(xe.selection);
82050
+ Yr(getIn(k, _$e)) ? xn(_$e) : be(al(_$e, !0));
82051
+ }
82055
82052
  }
82056
82053
  function tn() {
82057
- if (!S && Us(ye.selection)) {
82058
- var _$e = ye.selection.path, _$n = compileJSONPointer(_$e), t = getIn(k, _$e), o = !Rs(t, ye.enforceStringMap, _$n, B), r = o ? String(t) : ti(String(t), B);
82054
+ !S && xe.selection && xn(bl(xe.selection).slice(0, 1));
82055
+ }
82056
+ function on() {
82057
+ if (!S && Us(xe.selection)) {
82058
+ var _$e = xe.selection.path, _$n = compileJSONPointer(_$e), t = getIn(k, _$e), o = !Rs(t, xe.enforceStringMap, _$n, B), r = o ? String(t) : ti(String(t), B);
82059
82059
  c("handleToggleEnforceString", {
82060
82060
  enforceString: o,
82061
82061
  value: t,
82062
82062
  updatedValue: r
82063
- }), qe([
82063
+ }), Pe([
82064
82064
  {
82065
82065
  op: "replace",
82066
82066
  path: _$n,
@@ -82073,8 +82073,8 @@ function by(e, n, t) {
82073
82073
  });
82074
82074
  }
82075
82075
  }
82076
- function on() {
82077
- return (on = a(r().mark(function e() {
82076
+ function rn() {
82077
+ return (rn = a(r().mark(function e() {
82078
82078
  var _$n, t, o, i, _$a;
82079
82079
  return r().wrap(function(e) {
82080
82080
  for(;;)switch(e.prev = e.next){
@@ -82085,13 +82085,13 @@ function by(e, n, t) {
82085
82085
  }
82086
82086
  return e.abrupt("return");
82087
82087
  case 3:
82088
- o = (t = re).path, i = t.contents, ia(_$a = (null === (_$n = x) || void 0 === _$n ? void 0 : _$n.querySelector(".jse-editable-div")) || null) && _$a.cancel(), qe([
82088
+ o = (t = re).path, i = t.contents, ia(_$a = (null === (_$n = x) || void 0 === _$n ? void 0 : _$n.querySelector(".jse-editable-div")) || null) && _$a.cancel(), Pe([
82089
82089
  {
82090
82090
  op: "replace",
82091
82091
  path: compileJSONPointer(o),
82092
82092
  value: i
82093
82093
  }
82094
- ]), setTimeout(Be);
82094
+ ]), setTimeout(Fe);
82095
82095
  case 9:
82096
82096
  case "end":
82097
82097
  return e.stop();
@@ -82099,32 +82099,32 @@ function by(e, n, t) {
82099
82099
  }, e);
82100
82100
  }))).apply(this, arguments);
82101
82101
  }
82102
- function rn() {
82102
+ function an() {
82103
82103
  u(nv, {}, g(g({}, Or), {}, {
82104
82104
  styleWindow: {
82105
82105
  width: "450px"
82106
82106
  }
82107
82107
  }), {
82108
82108
  onClose: function onClose() {
82109
- return Be();
82109
+ return Fe();
82110
82110
  }
82111
82111
  });
82112
82112
  }
82113
- function an(e) {
82114
- return ln.apply(this, arguments);
82113
+ function ln(e) {
82114
+ return cn.apply(this, arguments);
82115
82115
  }
82116
- function ln() {
82117
- return (ln = a(r().mark(function e(n) {
82116
+ function cn() {
82117
+ return (cn = a(r().mark(function e(n) {
82118
82118
  return r().wrap(function(e) {
82119
82119
  for(;;)switch(e.prev = e.next){
82120
82120
  case 0:
82121
82121
  return e.next = 2, Tg({
82122
82122
  json: k,
82123
- documentState: ye,
82123
+ documentState: xe,
82124
82124
  indentation: n ? J : void 0,
82125
82125
  readOnly: S,
82126
82126
  parser: B,
82127
- onPatch: qe
82127
+ onPatch: Pe
82128
82128
  });
82129
82129
  case 2:
82130
82130
  case "end":
@@ -82133,11 +82133,11 @@ function by(e, n, t) {
82133
82133
  }, e);
82134
82134
  }))).apply(this, arguments);
82135
82135
  }
82136
- function cn() {
82137
- return un.apply(this, arguments);
82138
- }
82139
82136
  function un() {
82140
- return un = a(r().mark(function e() {
82137
+ return dn.apply(this, arguments);
82138
+ }
82139
+ function dn() {
82140
+ return dn = a(r().mark(function e() {
82141
82141
  var _$n, t = arguments;
82142
82142
  return r().wrap(function(e) {
82143
82143
  for(;;)switch(e.prev = e.next){
@@ -82150,7 +82150,7 @@ function by(e, n, t) {
82150
82150
  case 3:
82151
82151
  return e.next = 5, Ng({
82152
82152
  json: k,
82153
- documentState: ye,
82153
+ documentState: xe,
82154
82154
  indentation: _$n ? J : void 0,
82155
82155
  parser: B
82156
82156
  });
@@ -82159,57 +82159,57 @@ function by(e, n, t) {
82159
82159
  return e.stop();
82160
82160
  }
82161
82161
  }, e);
82162
- })), un.apply(this, arguments);
82162
+ })), dn.apply(this, arguments);
82163
82163
  }
82164
- function dn() {
82164
+ function fn() {
82165
82165
  Lg({
82166
82166
  json: k,
82167
82167
  text: C,
82168
- documentState: ye,
82168
+ documentState: xe,
82169
82169
  keepSelection: !0,
82170
82170
  readOnly: S,
82171
82171
  onChange: V,
82172
- onPatch: qe
82172
+ onPatch: Pe
82173
82173
  });
82174
82174
  }
82175
- function fn() {
82175
+ function vn() {
82176
82176
  Ug({
82177
82177
  json: k,
82178
- documentState: ye,
82178
+ documentState: xe,
82179
82179
  columns: ve,
82180
82180
  readOnly: S,
82181
- onPatch: qe
82181
+ onPatch: Pe
82182
82182
  });
82183
82183
  }
82184
- function vn() {
82184
+ function pn() {
82185
82185
  Dg({
82186
82186
  json: k,
82187
- documentState: ye,
82187
+ documentState: xe,
82188
82188
  columns: ve,
82189
82189
  readOnly: S,
82190
- onPatch: qe
82190
+ onPatch: Pe
82191
82191
  });
82192
82192
  }
82193
- function pn() {
82193
+ function mn() {
82194
82194
  Jg({
82195
82195
  json: k,
82196
- documentState: ye,
82196
+ documentState: xe,
82197
82197
  columns: ve,
82198
82198
  readOnly: S,
82199
- onPatch: qe
82199
+ onPatch: Pe
82200
82200
  });
82201
82201
  }
82202
- function mn() {
82202
+ function gn() {
82203
82203
  Vg({
82204
82204
  json: k,
82205
- documentState: ye,
82205
+ documentState: xe,
82206
82206
  columns: ve,
82207
82207
  readOnly: S,
82208
- onPatch: qe
82208
+ onPatch: Pe
82209
82209
  });
82210
82210
  }
82211
- function gn() {
82212
- return (gn = a(r().mark(function e(n) {
82211
+ function hn() {
82212
+ return (hn = a(r().mark(function e(n) {
82213
82213
  return r().wrap(function(e) {
82214
82214
  for(;;)switch(e.prev = e.next){
82215
82215
  case 0:
@@ -82218,12 +82218,12 @@ function by(e, n, t) {
82218
82218
  selectInside: !1,
82219
82219
  refJsonEditor: _$y,
82220
82220
  json: k,
82221
- selection: ye.selection,
82221
+ selection: xe.selection,
82222
82222
  readOnly: S,
82223
82223
  parser: B,
82224
- onPatch: qe,
82225
- onReplaceJson: hn,
82226
- onSelect: je
82224
+ onPatch: Pe,
82225
+ onReplaceJson: jn,
82226
+ onSelect: be
82227
82227
  });
82228
82228
  case 2:
82229
82229
  case "end":
@@ -82232,50 +82232,50 @@ function by(e, n, t) {
82232
82232
  }, e);
82233
82233
  }))).apply(this, arguments);
82234
82234
  }
82235
- function hn(e, n) {
82236
- var o = ye, r = k, i = C, a = {
82235
+ function jn(e, n) {
82236
+ var o = xe, r = k, i = C, a = {
82237
82237
  json: k,
82238
82238
  text: C
82239
- }, s = xe, l = gs(k, ye, [], As), c = "function" == typeof n ? n(e, l) : void 0;
82240
- t(8, k = c && void 0 !== c.json ? c.json : e), t(12, ye = c && void 0 !== c.state ? c.state : l), t(17, C = void 0), t(23, xe = !1), t(18, ae = void 0), be(k), Se({
82239
+ }, s = we, l = gs(k, xe, [], As), c = "function" == typeof n ? n(e, l) : void 0;
82240
+ t(8, k = c && void 0 !== c.json ? c.json : e), t(12, xe = c && void 0 !== c.state ? c.state : l), t(17, C = void 0), t(23, we = !1), t(18, ae = void 0), ye(k), Me({
82241
82241
  previousJson: r,
82242
82242
  previousState: o,
82243
82243
  previousText: i,
82244
82244
  previousTextIsRepaired: s
82245
82245
  });
82246
- Pe(a, null);
82246
+ Ie(a, null);
82247
82247
  }
82248
- function jn(e, n) {
82248
+ function bn(e, n) {
82249
82249
  c("handleChangeText");
82250
- var o = ye, r = k, i = C, a = {
82250
+ var o = xe, r = k, i = C, a = {
82251
82251
  json: k,
82252
82252
  text: C
82253
- }, s = xe;
82253
+ }, s = we;
82254
82254
  try {
82255
- t(8, k = F(e)), t(12, ye = gs(k, ye, [], As)), t(17, C = void 0), t(23, xe = !1), t(18, ae = void 0);
82255
+ t(8, k = F(e)), t(12, xe = gs(k, xe, [], As)), t(17, C = void 0), t(23, we = !1), t(18, ae = void 0);
82256
82256
  } catch (n) {
82257
82257
  try {
82258
- t(8, k = F(jsonrepair(e))), t(12, ye = gs(k, ye, [], As)), t(17, C = e), t(23, xe = !0), t(18, ae = void 0);
82258
+ t(8, k = F(jsonrepair(e))), t(12, xe = gs(k, xe, [], As)), t(17, C = e), t(23, we = !0), t(18, ae = void 0);
82259
82259
  } catch (o) {
82260
- t(8, k = void 0), t(12, ye = fs({
82260
+ t(8, k = void 0), t(12, xe = fs({
82261
82261
  json: k,
82262
82262
  expand: As
82263
- })), t(17, C = e), t(23, xe = !1), t(18, ae = "" !== C ? ji(C, n.message || String(n)) : void 0);
82263
+ })), t(17, C = e), t(23, we = !1), t(18, ae = "" !== C ? ji(C, n.message || String(n)) : void 0);
82264
82264
  }
82265
82265
  }
82266
82266
  if ("function" == typeof n) {
82267
- var l = n(k, ye);
82268
- t(8, k = l && l.json ? l.json : k), t(12, ye = l && l.state ? l.state : ye);
82267
+ var l = n(k, xe);
82268
+ t(8, k = l && l.json ? l.json : k), t(12, xe = l && l.state ? l.state : xe);
82269
82269
  }
82270
- be(k), Se({
82270
+ ye(k), Me({
82271
82271
  previousJson: r,
82272
82272
  previousState: o,
82273
82273
  previousText: i,
82274
82274
  previousTextIsRepaired: s
82275
82275
  });
82276
- Pe(a, null);
82276
+ Ie(a, null);
82277
82277
  }
82278
- function bn(e) {
82278
+ function yn(e) {
82279
82279
  if (void 0 !== k) {
82280
82280
  var _$n = e.id, t = e.onTransform, o = e.onClose, r = e.rootPath || [];
82281
82281
  pe = !0, te({
@@ -82287,15 +82287,15 @@ function by(e, n, t) {
82287
82287
  operations: e,
82288
82288
  json: k,
82289
82289
  transformedJson: immutableJSONPatch(k, e)
82290
- }) : (c("onTransform", r, e), qe(e));
82290
+ }) : (c("onTransform", r, e), Pe(e));
82291
82291
  },
82292
82292
  onClose: function onClose() {
82293
- pe = !1, Be(), o && o();
82293
+ pe = !1, Fe(), o && o();
82294
82294
  }
82295
82295
  });
82296
82296
  }
82297
82297
  }
82298
- function yn(e) {
82298
+ function xn(e) {
82299
82299
  c("openJSONEditorModal", {
82300
82300
  path: e
82301
82301
  }), pe = !0, oe({
@@ -82303,13 +82303,13 @@ function by(e, n, t) {
82303
82303
  json: getIn(k, e)
82304
82304
  },
82305
82305
  path: e,
82306
- onPatch: we.onPatch,
82306
+ onPatch: $e.onPatch,
82307
82307
  onClose: function onClose() {
82308
- pe = !1, Be();
82308
+ pe = !1, Fe();
82309
82309
  }
82310
82310
  });
82311
82311
  }
82312
- function xn(e, n) {
82312
+ function wn(e, n) {
82313
82313
  u(Dv, {
82314
82314
  text: e,
82315
82315
  onParse: function onParse(e) {
@@ -82330,59 +82330,59 @@ function by(e, n, t) {
82330
82330
  }
82331
82331
  }), {
82332
82332
  onClose: function onClose() {
82333
- return Be();
82333
+ return Fe();
82334
82334
  }
82335
82335
  });
82336
82336
  }
82337
- function wn(e) {
82337
+ function $n(e) {
82338
82338
  c("openFind", {
82339
82339
  findAndReplace: e
82340
82340
  }), t(9, se = !1), t(21, le = !1), bo().then(function() {
82341
82341
  t(9, se = !0), t(21, le = e);
82342
82342
  });
82343
82343
  }
82344
- function $n() {
82345
- if (!S && $e.getState().canUndo) {
82346
- var _$e = $e.undo();
82344
+ function kn() {
82345
+ if (!S && ke.getState().canUndo) {
82346
+ var _$e = ke.undo();
82347
82347
  if (_$e) {
82348
82348
  var _$n = {
82349
82349
  json: k,
82350
82350
  text: C
82351
82351
  };
82352
- t(8, k = _$e.undo.patch ? immutableJSONPatch(k, _$e.undo.patch) : _$e.undo.json), t(12, ye = _$e.undo.state), t(17, C = _$e.undo.text), t(23, xe = _$e.undo.textIsRepaired), t(18, ae = void 0), c("undo", {
82352
+ t(8, k = _$e.undo.patch ? immutableJSONPatch(k, _$e.undo.patch) : _$e.undo.json), t(12, xe = _$e.undo.state), t(17, C = _$e.undo.text), t(23, we = _$e.undo.textIsRepaired), t(18, ae = void 0), c("undo", {
82353
82353
  item: _$e,
82354
82354
  json: k
82355
- }), Pe(_$n, _$e.undo.patch && _$e.redo.patch ? {
82355
+ }), Ie(_$n, _$e.undo.patch && _$e.redo.patch ? {
82356
82356
  json: k,
82357
82357
  previousJson: _$n.json,
82358
82358
  redo: _$e.undo.patch,
82359
82359
  undo: _$e.redo.patch
82360
- } : null), Be(), ye.selection && Le(bl(ye.selection), !1);
82360
+ } : null), Fe(), xe.selection && Ue(bl(xe.selection), !1);
82361
82361
  }
82362
82362
  }
82363
82363
  }
82364
- function kn() {
82365
- if (!S && $e.getState().canRedo) {
82366
- var _$e = $e.redo();
82364
+ function Cn() {
82365
+ if (!S && ke.getState().canRedo) {
82366
+ var _$e = ke.redo();
82367
82367
  if (_$e) {
82368
82368
  var _$n = {
82369
82369
  json: k,
82370
82370
  text: C
82371
82371
  };
82372
- t(8, k = _$e.redo.patch ? immutableJSONPatch(k, _$e.redo.patch) : _$e.redo.json), t(12, ye = _$e.redo.state), t(17, C = _$e.redo.text), t(23, xe = _$e.redo.textIsRepaired), t(18, ae = void 0), c("redo", {
82372
+ t(8, k = _$e.redo.patch ? immutableJSONPatch(k, _$e.redo.patch) : _$e.redo.json), t(12, xe = _$e.redo.state), t(17, C = _$e.redo.text), t(23, we = _$e.redo.textIsRepaired), t(18, ae = void 0), c("redo", {
82373
82373
  item: _$e,
82374
82374
  json: k
82375
- }), Pe(_$n, _$e.undo.patch && _$e.redo.patch ? {
82375
+ }), Ie(_$n, _$e.undo.patch && _$e.redo.patch ? {
82376
82376
  json: k,
82377
82377
  previousJson: _$n.json,
82378
82378
  redo: _$e.redo.patch,
82379
82379
  undo: _$e.undo.patch
82380
- } : null), Be(), ye.selection && Le(bl(ye.selection), !1);
82380
+ } : null), Fe(), xe.selection && Ue(bl(xe.selection), !1);
82381
82381
  }
82382
82382
  }
82383
82383
  }
82384
- function Cn(e, n) {
82385
- t(76, me[n] = e.getBoundingClientRect().height, me);
82384
+ function Sn(e, n) {
82385
+ t(76, ge[n] = e.getBoundingClientRect().height, ge);
82386
82386
  }
82387
82387
  return e.$$set = function(e) {
82388
82388
  "readOnly" in e && t(0, S = e.readOnly), "externalContent" in e && t(53, E = e.externalContent), "externalSelection" in e && t(54, q = e.externalSelection), "mainMenuBar" in e && t(1, P = e.mainMenuBar), "escapeControlCharacters" in e && t(55, I = e.escapeControlCharacters), "escapeUnicodeCharacters" in e && t(56, T = e.escapeUnicodeCharacters), "flattenColumns" in e && t(57, A = e.flattenColumns), "parser" in e && t(2, B = e.parser), "parseMemoizeOne" in e && t(58, F = e.parseMemoizeOne), "validator" in e && t(59, U = e.validator), "validationParser" in e && t(60, D = e.validationParser), "indentation" in e && t(3, J = e.indentation), "onChange" in e && t(61, V = e.onChange), "onChangeMode" in e && t(4, H = e.onChangeMode), "onSelect" in e && t(62, W = e.onSelect), "onRenderValue" in e && t(63, Q = e.onRenderValue), "onRenderMenu" in e && t(5, Y = e.onRenderMenu), "onRenderContextMenu" in e && t(64, K = e.onRenderContextMenu), "onFocus" in e && t(65, Z = e.onFocus), "onBlur" in e && t(66, X = e.onBlur), "onSortModal" in e && t(67, ee = e.onSortModal), "onTransformModal" in e && t(68, te = e.onTransformModal), "onJSONEditorModal" in e && t(69, oe = e.onJSONEditorModal);
@@ -82398,8 +82398,8 @@ function by(e, n, t) {
82398
82398
  left: x.scrollLeft
82399
82399
  });
82400
82400
  }
82401
- }(se), 4194304 & e.$$.dirty[1] && Ce(E), 8388608 & e.$$.dirty[1] && function(e) {
82402
- isEqual$1(ye.selection, e) || (c("applyExternalSelection", e), (Vs(e) || null === e) && je(e));
82401
+ }(se), 4194304 & e.$$.dirty[1] && Se(E), 8388608 & e.$$.dirty[1] && function(e) {
82402
+ isEqual$1(xe.selection, e) || (c("applyExternalSelection", e), (Vs(e) || null === e) && be(e));
82403
82403
  }(q), 3328 & e.$$.dirty[0] | 67108864 & e.$$.dirty[1] && t(11, ve = isJSONArray(k) ? function(e, n) {
82404
82404
  var _$t, r = new Set(n.map(compileJSONPointer)), i = new Set(e.map(compileJSONPointer)), a = o(r);
82405
82405
  try {
@@ -82424,10 +82424,10 @@ function by(e, n, t) {
82424
82424
  c.f();
82425
82425
  }
82426
82426
  return w(r).map(parseJSONPointer);
82427
- }($g(k, A, de), ve) : []), 2304 & e.$$.dirty[0] && t(22, ue = !(!k || isEmpty(ve))), 1280 & e.$$.dirty[0] && t(28, i = Array.isArray(k) && k.length > de), 768 & e.$$.dirty[0] | 114688 & e.$$.dirty[2] && t(27, s = Sg(he, ge, k, me, jy, se ? Ur : 0)), 256 & e.$$.dirty[0] && x && x.scrollTo({
82427
+ }($g(k, A, de), ve) : []), 2304 & e.$$.dirty[0] && t(22, ue = !(!k || isEmpty(ve))), 1280 & e.$$.dirty[0] && t(28, i = Array.isArray(k) && k.length > de), 768 & e.$$.dirty[0] | 114688 & e.$$.dirty[2] && t(27, s = Sg(je, he, k, ge, jy, se ? Ur : 0)), 256 & e.$$.dirty[0] && x && x.scrollTo({
82428
82428
  top: x.scrollTop,
82429
82429
  left: x.scrollLeft
82430
- }), 4357 & e.$$.dirty[0] | 8194 & e.$$.dirty[2] && t(25, we = {
82430
+ }), 4357 & e.$$.dirty[0] | 8194 & e.$$.dirty[2] && t(25, $e = {
82431
82431
  readOnly: S,
82432
82432
  parser: B,
82433
82433
  normalization: b,
@@ -82435,17 +82435,17 @@ function by(e, n, t) {
82435
82435
  return k;
82436
82436
  },
82437
82437
  getDocumentState: function getDocumentState() {
82438
- return ye;
82438
+ return xe;
82439
82439
  },
82440
- findElement: Ge,
82441
- findNextInside: Ne,
82442
- focus: Be,
82443
- onPatch: qe,
82444
- onSelect: je,
82445
- onFind: Ie,
82446
- onPasteJson: Te,
82440
+ findElement: Ze,
82441
+ findNextInside: Be,
82442
+ focus: Fe,
82443
+ onPatch: Pe,
82444
+ onSelect: be,
82445
+ onFind: Te,
82446
+ onPasteJson: Ne,
82447
82447
  onRenderValue: Q
82448
- }), 260 & e.$$.dirty[0] | 805306368 & e.$$.dirty[1] && ze(k, U, B, D), 10240 & e.$$.dirty[0] && t(26, l = Rg(Me, ve));
82448
+ }), 260 & e.$$.dirty[0] | 805306368 & e.$$.dirty[1] && Re(k, U, B, D), 10240 & e.$$.dirty[0] && t(26, l = Rg(Oe, ve));
82449
82449
  }, [
82450
82450
  S,
82451
82451
  P,
@@ -82453,20 +82453,20 @@ function by(e, n, t) {
82453
82453
  J,
82454
82454
  H,
82455
82455
  Y,
82456
- Be,
82456
+ Fe,
82457
82457
  function() {
82458
- if (xe && void 0 !== k) {
82459
- var _$e = ye, _$n = k, o = C, r = {
82458
+ if (we && void 0 !== k) {
82459
+ var _$e = xe, _$n = k, o = C, r = {
82460
82460
  json: k,
82461
82461
  text: C
82462
- }, i = xe;
82463
- t(17, C = void 0), t(23, xe = !1), be(k), Se({
82462
+ }, i = we;
82463
+ t(17, C = void 0), t(23, we = !1), ye(k), Me({
82464
82464
  previousJson: _$n,
82465
82465
  previousState: _$e,
82466
82466
  previousText: o,
82467
82467
  previousTextIsRepaired: i
82468
82468
  });
82469
- Pe(r, null);
82469
+ Ie(r, null);
82470
82470
  }
82471
82471
  return {
82472
82472
  json: k,
@@ -82477,8 +82477,8 @@ function by(e, n, t) {
82477
82477
  se,
82478
82478
  de,
82479
82479
  ve,
82480
- ye,
82481
- Me,
82480
+ xe,
82481
+ Oe,
82482
82482
  _$y,
82483
82483
  x,
82484
82484
  $,
@@ -82488,9 +82488,9 @@ function by(e, n, t) {
82488
82488
  ie,
82489
82489
  le,
82490
82490
  ue,
82491
- xe,
82492
- ke,
82493
82491
  we,
82492
+ Ce,
82493
+ $e,
82494
82494
  l,
82495
82495
  s,
82496
82496
  i,
@@ -82502,13 +82502,13 @@ function by(e, n, t) {
82502
82502
  return ce.apply(this, arguments);
82503
82503
  },
82504
82504
  function() {
82505
- t(9, se = !1), t(21, le = !1), Be();
82505
+ t(9, se = !1), t(21, le = !1), Fe();
82506
82506
  },
82507
82507
  function(e) {
82508
82508
  if (!S) {
82509
82509
  c("onSortByHeader", e);
82510
82510
  var _$n = e.sortDirection === fr.desc ? -1 : 1;
82511
- qe(Tm(k, [], e.path, _$n), function(n, t) {
82511
+ Pe(Tm(k, [], e.path, _$n), function(n, t) {
82512
82512
  return {
82513
82513
  state: g(g({}, t), {}, {
82514
82514
  sortedColumn: e
@@ -82517,24 +82517,24 @@ function by(e, n, t) {
82517
82517
  });
82518
82518
  }
82519
82519
  },
82520
- qe,
82520
+ Pe,
82521
82521
  function(e) {
82522
- t(78, he = e.target.scrollTop);
82522
+ t(78, je = e.target.scrollTop);
82523
82523
  },
82524
82524
  function(e) {
82525
82525
  if (1 === e.buttons || 2 === e.buttons) {
82526
82526
  var _$n = e.target, t = oa(_$n);
82527
82527
  if (t) {
82528
- if (dl(ye.selection) && hl(k, ye.selection, t)) return;
82529
- je(al(t, !1)), e.preventDefault();
82528
+ if (dl(xe.selection) && hl(k, xe.selection, t)) return;
82529
+ be(al(t, !1)), e.preventDefault();
82530
82530
  }
82531
- _$n.isContentEditable || setTimeout(Be);
82531
+ _$n.isContentEditable || me || setTimeout(Fe);
82532
82532
  }
82533
82533
  },
82534
- Ze,
82535
82534
  Xe,
82535
+ en,
82536
82536
  function(e) {
82537
- Ze({
82537
+ Xe({
82538
82538
  anchor: ea(e.target, "BUTTON"),
82539
82539
  offsetTop: 0,
82540
82540
  width: Lr,
@@ -82543,10 +82543,10 @@ function by(e, n, t) {
82543
82543
  });
82544
82544
  },
82545
82545
  function() {
82546
- return on.apply(this, arguments);
82546
+ return rn.apply(this, arguments);
82547
82547
  },
82548
82548
  function() {
82549
- c("clear pasted json"), t(19, re = void 0), Be();
82549
+ c("clear pasted json"), t(19, re = void 0), Fe();
82550
82550
  },
82551
82551
  function() {
82552
82552
  H(sr.text);
@@ -82556,61 +82556,61 @@ function by(e, n, t) {
82556
82556
  if (c("keydown", {
82557
82557
  combo: _$n,
82558
82558
  key: e.key
82559
- }), "Ctrl+X" === _$n && (e.preventDefault(), an(!0)), "Ctrl+Shift+X" === _$n && (e.preventDefault(), an(!1)), "Ctrl+C" === _$n && (e.preventDefault(), cn(!0)), "Ctrl+Shift+C" === _$n && (e.preventDefault(), cn(!1)), "Ctrl+D" === _$n && e.preventDefault(), "Delete" !== _$n && "Backspace" !== _$n || (e.preventDefault(), dn()), "Insert" === _$n && e.preventDefault(), "Ctrl+A" === _$n && e.preventDefault(), "Ctrl+Q" === _$n && Xe(e), "ArrowLeft" === _$n && (e.preventDefault(), Fe(), ye.selection)) {
82559
+ }), "Ctrl+X" === _$n && (e.preventDefault(), ln(!0)), "Ctrl+Shift+X" === _$n && (e.preventDefault(), ln(!1)), "Ctrl+C" === _$n && (e.preventDefault(), un(!0)), "Ctrl+Shift+C" === _$n && (e.preventDefault(), un(!1)), "Ctrl+D" === _$n && e.preventDefault(), "Delete" !== _$n && "Backspace" !== _$n || (e.preventDefault(), fn()), "Insert" === _$n && e.preventDefault(), "Ctrl+A" === _$n && e.preventDefault(), "Ctrl+Q" === _$n && en(e), "ArrowLeft" === _$n && (e.preventDefault(), Le(), xe.selection)) {
82560
82560
  var t = function(e, n) {
82561
82561
  var t = Og(bl(n), e), o = t.rowIndex, r = t.columnIndex;
82562
82562
  return r > 0 ? al(zg({
82563
82563
  rowIndex: o,
82564
82564
  columnIndex: r - 1
82565
82565
  }, e), !1) : n;
82566
- }(ve, ye.selection);
82567
- je(t), Qe(bl(t));
82566
+ }(ve, xe.selection);
82567
+ be(t), Ge(bl(t));
82568
82568
  }
82569
- if ("ArrowRight" === _$n && (e.preventDefault(), Fe(), ye.selection)) {
82569
+ if ("ArrowRight" === _$n && (e.preventDefault(), Le(), xe.selection)) {
82570
82570
  var o = function(e, n) {
82571
82571
  var t = Og(bl(n), e), o = t.rowIndex, r = t.columnIndex;
82572
82572
  return r < e.length - 1 ? al(zg({
82573
82573
  rowIndex: o,
82574
82574
  columnIndex: r + 1
82575
82575
  }, e), !1) : n;
82576
- }(ve, ye.selection);
82577
- je(o), Qe(bl(o));
82576
+ }(ve, xe.selection);
82577
+ be(o), Ge(bl(o));
82578
82578
  }
82579
- if ("ArrowUp" === _$n && (e.preventDefault(), Fe(), ye.selection)) {
82579
+ if ("ArrowUp" === _$n && (e.preventDefault(), Le(), xe.selection)) {
82580
82580
  var r = function(e, n) {
82581
82581
  var t = Og(bl(n), e), o = t.rowIndex, r = t.columnIndex;
82582
82582
  return o > 0 ? al(zg({
82583
82583
  rowIndex: o - 1,
82584
82584
  columnIndex: r
82585
82585
  }, e), !1) : n;
82586
- }(ve, ye.selection);
82587
- je(r), Qe(bl(r));
82586
+ }(ve, xe.selection);
82587
+ be(r), Ge(bl(r));
82588
82588
  }
82589
- if ("ArrowDown" === _$n && (e.preventDefault(), Fe(), ye.selection)) {
82589
+ if ("ArrowDown" === _$n && (e.preventDefault(), Le(), xe.selection)) {
82590
82590
  var i = function(e, n, t) {
82591
82591
  var o = Og(bl(t), n), r = o.rowIndex, i = o.columnIndex;
82592
82592
  return r < e.length - 1 ? al(zg({
82593
82593
  rowIndex: r + 1,
82594
82594
  columnIndex: i
82595
82595
  }, n), !1) : t;
82596
- }(k, ve, ye.selection);
82597
- je(i), Qe(bl(i));
82596
+ }(k, ve, xe.selection);
82597
+ be(i), Ge(bl(i));
82598
82598
  }
82599
- if ("Enter" === _$n && ye.selection && Us(ye.selection)) {
82599
+ if ("Enter" === _$n && xe.selection && Us(xe.selection)) {
82600
82600
  e.preventDefault();
82601
- var a = ye.selection.path;
82602
- Yr(getIn(k, a)) ? yn(a) : S || je(g(g({}, ye.selection), {}, {
82601
+ var a = xe.selection.path;
82602
+ Yr(getIn(k, a)) ? xn(a) : S || be(g(g({}, xe.selection), {}, {
82603
82603
  edit: !0
82604
82604
  }));
82605
82605
  }
82606
- if (1 === _$n.replace(/^Shift\+/, "").length && ye.selection) return e.preventDefault(), void function(e) {
82607
- gn.apply(this, arguments);
82606
+ if (1 === _$n.replace(/^Shift\+/, "").length && xe.selection) return e.preventDefault(), void function(e) {
82607
+ hn.apply(this, arguments);
82608
82608
  }(e.key);
82609
- if ("Ctrl+Enter" === _$n && Us(ye.selection)) {
82610
- var s = getIn(k, ye.selection.path);
82609
+ if ("Ctrl+Enter" === _$n && Us(xe.selection)) {
82610
+ var s = getIn(k, xe.selection.path);
82611
82611
  ni(s) && window.open(String(s), "_blank");
82612
82612
  }
82613
- "Escape" === _$n && ye.selection && (e.preventDefault(), je(null)), "Ctrl+F" === _$n && (e.preventDefault(), wn(!1)), "Ctrl+H" === _$n && (e.preventDefault(), wn(!0)), "Ctrl+Z" === _$n && (e.preventDefault(), $n()), "Ctrl+Shift+Z" === _$n && (e.preventDefault(), kn());
82613
+ "Escape" === _$n && xe.selection && (e.preventDefault(), be(null)), "Ctrl+F" === _$n && (e.preventDefault(), $n(!1)), "Ctrl+H" === _$n && (e.preventDefault(), $n(!0)), "Ctrl+Z" === _$n && (e.preventDefault(), kn()), "Ctrl+Shift+Z" === _$n && (e.preventDefault(), Cn());
82614
82614
  },
82615
82615
  function(e) {
82616
82616
  var _$n;
@@ -82619,18 +82619,18 @@ function by(e, n, t) {
82619
82619
  void 0 !== t && Fg({
82620
82620
  clipboardText: t,
82621
82621
  json: k,
82622
- selection: ye.selection,
82622
+ selection: xe.selection,
82623
82623
  readOnly: S,
82624
82624
  parser: B,
82625
- onPatch: qe,
82626
- onChangeText: jn,
82627
- openRepairModal: xn
82625
+ onPatch: Pe,
82626
+ onChangeText: bn,
82627
+ openRepairModal: wn
82628
82628
  });
82629
82629
  },
82630
82630
  function(e) {
82631
- c("select validation error", e), je(al(e.path, !1)), Le(e.path);
82631
+ c("select validation error", e), be(al(e.path, !1)), Ue(e.path);
82632
82632
  },
82633
- yn,
82633
+ xn,
82634
82634
  function() {
82635
82635
  !function(e) {
82636
82636
  S || void 0 === k || (pe = !0, ee({
@@ -82639,7 +82639,7 @@ function by(e, n, t) {
82639
82639
  rootPath: e,
82640
82640
  onSort: function onSort(n) {
82641
82641
  var t = n.operations, o = n.itemPath, r = n.direction;
82642
- c("onSort", t, e, o, r), qe(t, function(e, n) {
82642
+ c("onSort", t, e, o, r), Pe(t, function(e, n) {
82643
82643
  return {
82644
82644
  state: g(g({}, n), {}, {
82645
82645
  sortedColumn: {
@@ -82651,22 +82651,22 @@ function by(e, n, t) {
82651
82651
  });
82652
82652
  },
82653
82653
  onClose: function onClose() {
82654
- pe = !1, Be();
82654
+ pe = !1, Fe();
82655
82655
  }
82656
82656
  }));
82657
82657
  }([]);
82658
82658
  },
82659
82659
  function() {
82660
- bn({
82660
+ yn({
82661
82661
  rootPath: []
82662
82662
  });
82663
82663
  },
82664
- $n,
82665
82664
  kn,
82665
+ Cn,
82666
82666
  function(e) {
82667
- t(77, ge = e.getBoundingClientRect().height);
82667
+ t(77, he = e.getBoundingClientRect().height);
82668
82668
  },
82669
- Cn,
82669
+ Sn,
82670
82670
  E,
82671
82671
  q,
82672
82672
  I,
@@ -82684,15 +82684,15 @@ function by(e, n, t) {
82684
82684
  ee,
82685
82685
  te,
82686
82686
  oe,
82687
- Re,
82688
82687
  Ee,
82689
- Le,
82690
- Ge,
82691
- bn,
82688
+ qe,
82689
+ Ue,
82690
+ Ze,
82691
+ yn,
82692
82692
  b,
82693
- me,
82694
82693
  ge,
82695
82694
  he,
82695
+ je,
82696
82696
  function(e) {
82697
82697
  t(9, se = e);
82698
82698
  },
@@ -82705,7 +82705,7 @@ function by(e, n, t) {
82705
82705
  return t(10, de = 1 / 0);
82706
82706
  },
82707
82707
  function(e, n) {
82708
- return Cn(n, e);
82708
+ return Sn(n, e);
82709
82709
  },
82710
82710
  function(e) {
82711
82711
  vo[e ? "unshift" : "push"](function() {
@@ -82713,7 +82713,7 @@ function by(e, n, t) {
82713
82713
  });
82714
82714
  },
82715
82715
  function() {
82716
- Be();
82716
+ Fe();
82717
82717
  },
82718
82718
  function(e) {
82719
82719
  vo[e ? "unshift" : "push"](function() {