una-editor 0.2.2 → 0.2.3
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.
- package/dist/index.cjs +23 -23
- package/dist/index.mjs +247 -243
- package/dist/types/composables/useEditor.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3018,9 +3018,9 @@ class ui {
|
|
|
3018
3018
|
destroy(e) {
|
|
3019
3019
|
}
|
|
3020
3020
|
}
|
|
3021
|
-
var
|
|
3021
|
+
var at = /* @__PURE__ */ (function(r) {
|
|
3022
3022
|
return r[r.Text = 0] = "Text", r[r.WidgetBefore = 1] = "WidgetBefore", r[r.WidgetAfter = 2] = "WidgetAfter", r[r.WidgetRange = 3] = "WidgetRange", r;
|
|
3023
|
-
})(
|
|
3023
|
+
})(at || (at = {}));
|
|
3024
3024
|
class re extends bi {
|
|
3025
3025
|
constructor(e, t, i, n) {
|
|
3026
3026
|
super(), this.startSide = e, this.endSide = t, this.widget = i, this.spec = n;
|
|
@@ -3124,7 +3124,7 @@ class Ii extends re {
|
|
|
3124
3124
|
}
|
|
3125
3125
|
// Only relevant when this.block == true
|
|
3126
3126
|
get type() {
|
|
3127
|
-
return this.startSide != this.endSide ?
|
|
3127
|
+
return this.startSide != this.endSide ? at.WidgetRange : this.startSide <= 0 ? at.WidgetBefore : at.WidgetAfter;
|
|
3128
3128
|
}
|
|
3129
3129
|
get heightRelevant() {
|
|
3130
3130
|
return this.block || !!this.widget && (this.widget.estimatedHeight >= 5 || this.widget.lineBreaks > 0);
|
|
@@ -3752,7 +3752,7 @@ const er = /* @__PURE__ */ U.define({
|
|
|
3752
3752
|
});
|
|
3753
3753
|
}
|
|
3754
3754
|
});
|
|
3755
|
-
class
|
|
3755
|
+
class gt {
|
|
3756
3756
|
constructor(e, t, i, n, s) {
|
|
3757
3757
|
this.id = e, this.create = t, this.domEventHandlers = i, this.domEventObservers = n, this.baseExtensions = s(this), this.extension = this.baseExtensions.concat(er.of({ plugin: this, arg: void 0 }));
|
|
3758
3758
|
}
|
|
@@ -3768,7 +3768,7 @@ class pt {
|
|
|
3768
3768
|
*/
|
|
3769
3769
|
static define(e, t) {
|
|
3770
3770
|
const { eventHandlers: i, eventObservers: n, provide: s, decorations: o } = t || {};
|
|
3771
|
-
return new
|
|
3771
|
+
return new gt(pm++, e, i, n, (a) => {
|
|
3772
3772
|
let l = [];
|
|
3773
3773
|
return o && l.push(As.of((f) => {
|
|
3774
3774
|
let u = f.plugin(a);
|
|
@@ -3781,7 +3781,7 @@ class pt {
|
|
|
3781
3781
|
editor view as argument.
|
|
3782
3782
|
*/
|
|
3783
3783
|
static fromClass(e, t) {
|
|
3784
|
-
return
|
|
3784
|
+
return gt.define((i, n) => new e(i, n), t);
|
|
3785
3785
|
}
|
|
3786
3786
|
}
|
|
3787
3787
|
class to {
|
|
@@ -4249,7 +4249,7 @@ function vm(r, e) {
|
|
|
4249
4249
|
let t = r.coordsIn(0, 1), i = e.coordsIn(0, 1);
|
|
4250
4250
|
return t && i && i.top < t.bottom;
|
|
4251
4251
|
}
|
|
4252
|
-
class
|
|
4252
|
+
class st extends Ms {
|
|
4253
4253
|
constructor(e, t) {
|
|
4254
4254
|
super(e), this.mark = t;
|
|
4255
4255
|
}
|
|
@@ -4257,7 +4257,7 @@ class nt extends Ms {
|
|
|
4257
4257
|
return this.mark.attrs;
|
|
4258
4258
|
}
|
|
4259
4259
|
static of(e, t) {
|
|
4260
|
-
let i = new
|
|
4260
|
+
let i = new st(t || document.createElement(e.tagName), e);
|
|
4261
4261
|
return t || (i.flags |= 4), i;
|
|
4262
4262
|
}
|
|
4263
4263
|
}
|
|
@@ -4425,14 +4425,14 @@ class km {
|
|
|
4425
4425
|
let n = i;
|
|
4426
4426
|
for (let a = t.marks.length - 1; a >= 0; a--) {
|
|
4427
4427
|
let l = t.marks[a], f = n.lastChild;
|
|
4428
|
-
if (f instanceof
|
|
4428
|
+
if (f instanceof st && f.mark.eq(l.mark))
|
|
4429
4429
|
f.dom != l.dom && f.setDOM(io(l.dom)), n = f;
|
|
4430
4430
|
else {
|
|
4431
4431
|
if (this.cache.reused.get(l)) {
|
|
4432
4432
|
let p = Ze.get(l.dom);
|
|
4433
4433
|
p && p.setDOM(io(l.dom));
|
|
4434
4434
|
}
|
|
4435
|
-
let u =
|
|
4435
|
+
let u = st.of(l.mark, l.dom);
|
|
4436
4436
|
n.append(u), n = u;
|
|
4437
4437
|
}
|
|
4438
4438
|
this.cache.reused.set(
|
|
@@ -4489,10 +4489,10 @@ class km {
|
|
|
4489
4489
|
let n = this.curLine;
|
|
4490
4490
|
for (let s = e.length - 1; s >= 0; s--) {
|
|
4491
4491
|
let o = e[s], a;
|
|
4492
|
-
if (t > 0 && (a = n.lastChild) && a instanceof
|
|
4492
|
+
if (t > 0 && (a = n.lastChild) && a instanceof st && a.mark.eq(o))
|
|
4493
4493
|
n = a, t--;
|
|
4494
4494
|
else {
|
|
4495
|
-
let l =
|
|
4495
|
+
let l = st.of(o, (i = this.cache.find(st, (f) => f.mark.eq(o))) === null || i === void 0 ? void 0 : i.dom);
|
|
4496
4496
|
n.append(l), n = l, t = 0;
|
|
4497
4497
|
}
|
|
4498
4498
|
}
|
|
@@ -4581,7 +4581,7 @@ class Qm {
|
|
|
4581
4581
|
return this.textOff = t, i;
|
|
4582
4582
|
}
|
|
4583
4583
|
}
|
|
4584
|
-
const os = [Vi, fr, Bi,
|
|
4584
|
+
const os = [Vi, fr, Bi, st, ss, ai, Zs];
|
|
4585
4585
|
for (let r = 0; r < os.length; r++)
|
|
4586
4586
|
os[r].bucket = r;
|
|
4587
4587
|
class bm {
|
|
@@ -4696,7 +4696,7 @@ class xm {
|
|
|
4696
4696
|
), this.builder.addLine(o);
|
|
4697
4697
|
else if (o instanceof ss)
|
|
4698
4698
|
this.cache.add(o);
|
|
4699
|
-
else if (o instanceof
|
|
4699
|
+
else if (o instanceof st)
|
|
4700
4700
|
this.builder.ensureLine(null), this.builder.addMark(o, n, s), this.cache.reused.set(
|
|
4701
4701
|
o,
|
|
4702
4702
|
1
|
|
@@ -4707,10 +4707,10 @@ class xm {
|
|
|
4707
4707
|
this.openWidget = !1;
|
|
4708
4708
|
},
|
|
4709
4709
|
enter: (o) => {
|
|
4710
|
-
o.isLine() ? this.builder.addLineStart(o.attrs, this.cache.maybeReuse(o)) : (this.cache.add(o), o instanceof
|
|
4710
|
+
o.isLine() ? this.builder.addLineStart(o.attrs, this.cache.maybeReuse(o)) : (this.cache.add(o), o instanceof st && n.unshift(o.mark)), this.openWidget = !1;
|
|
4711
4711
|
},
|
|
4712
4712
|
leave: (o) => {
|
|
4713
|
-
o.isLine() ? n.length && (n.length = s = 0) : o instanceof
|
|
4713
|
+
o.isLine() ? n.length && (n.length = s = 0) : o instanceof st && (n.shift(), s = Math.min(s, n.length));
|
|
4714
4714
|
},
|
|
4715
4715
|
break: () => {
|
|
4716
4716
|
this.builder.addBreak(), this.openWidget = !1;
|
|
@@ -4756,7 +4756,7 @@ class xm {
|
|
|
4756
4756
|
let s = Ze.get(n);
|
|
4757
4757
|
if (n == this.view.contentDOM)
|
|
4758
4758
|
break;
|
|
4759
|
-
s instanceof
|
|
4759
|
+
s instanceof st ? t.push(s) : s?.isLine() ? i = s : s instanceof ai || (n.nodeName == "DIV" && !i && n != this.view.contentDOM ? i = new fr(n, Au) : i || t.push(st.of(new On({ tagName: n.nodeName.toLowerCase(), attributes: Kg(n) }), n)));
|
|
4760
4760
|
}
|
|
4761
4761
|
return { line: i, marks: t };
|
|
4762
4762
|
}
|
|
@@ -4783,7 +4783,7 @@ function $m(r) {
|
|
|
4783
4783
|
let e = [];
|
|
4784
4784
|
for (let t = r.parents.length; t > 1; t--) {
|
|
4785
4785
|
let i = t == r.parents.length ? r.tile : r.parents[t].tile;
|
|
4786
|
-
i instanceof
|
|
4786
|
+
i instanceof st && e.push(i.mark);
|
|
4787
4787
|
}
|
|
4788
4788
|
return e;
|
|
4789
4789
|
}
|
|
@@ -5309,7 +5309,7 @@ function Im(r, e, t) {
|
|
|
5309
5309
|
if (!(s.to < e)) {
|
|
5310
5310
|
if (s.from < e && s.to > e)
|
|
5311
5311
|
return s;
|
|
5312
|
-
(!n || s.type ==
|
|
5312
|
+
(!n || s.type == at.Text && (n.type != s.type || (t < 0 ? s.from < e : s.to > e))) && (n = s);
|
|
5313
5313
|
}
|
|
5314
5314
|
}
|
|
5315
5315
|
return n || i;
|
|
@@ -5317,7 +5317,7 @@ function Im(r, e, t) {
|
|
|
5317
5317
|
return i;
|
|
5318
5318
|
}
|
|
5319
5319
|
function zm(r, e, t, i) {
|
|
5320
|
-
let n = Im(r, e.head, e.assoc || -1), s = !i || n.type !=
|
|
5320
|
+
let n = Im(r, e.head, e.assoc || -1), s = !i || n.type != at.Text || !(r.lineWrapping || n.widgetLineBreaks) ? null : r.coordsAtPos(e.assoc < 0 && e.head > n.from ? e.head - 1 : e.head);
|
|
5321
5321
|
if (s) {
|
|
5322
5322
|
let o = r.dom.getBoundingClientRect(), a = r.textDirectionAt(n.from), l = r.posAtCoords({
|
|
5323
5323
|
x: t == (a == Me.LTR) ? o.right - 1 : o.left + 1,
|
|
@@ -5417,7 +5417,7 @@ function oa(r, e, t, i) {
|
|
|
5417
5417
|
return new Ft(r.state.doc.length, -1);
|
|
5418
5418
|
if (f = r.elementAtHeight(l), i == null)
|
|
5419
5419
|
break;
|
|
5420
|
-
if (f.type ==
|
|
5420
|
+
if (f.type == at.Text) {
|
|
5421
5421
|
if (i < 0 ? f.to < r.viewport.from : f.from > r.viewport.to)
|
|
5422
5422
|
break;
|
|
5423
5423
|
let v = r.docView.coordsAt(i < 0 ? f.from : f.to, i > 0 ? -1 : 1);
|
|
@@ -5430,12 +5430,12 @@ function oa(r, e, t, i) {
|
|
|
5430
5430
|
if (r.viewport.from >= f.to || r.viewport.to <= f.from) {
|
|
5431
5431
|
if (t)
|
|
5432
5432
|
return null;
|
|
5433
|
-
if (f.type ==
|
|
5433
|
+
if (f.type == at.Text) {
|
|
5434
5434
|
let p = _m(r, n, f, o, a);
|
|
5435
5435
|
return new Ft(p, p == f.from ? 1 : -1);
|
|
5436
5436
|
}
|
|
5437
5437
|
}
|
|
5438
|
-
if (f.type !=
|
|
5438
|
+
if (f.type != at.Text)
|
|
5439
5439
|
return l < (f.top + f.bottom) / 2 ? new Ft(f.from, 1) : new Ft(f.to, -1);
|
|
5440
5440
|
let u = r.docView.lineAt(f.from, 2);
|
|
5441
5441
|
return (!u || u.length != f.length) && (u = r.docView.lineAt(f.from, -2)), new Ym(r, o, a, r.textDirectionAt(f.from)).scanTile(u, f.from);
|
|
@@ -5892,8 +5892,8 @@ function Km(r) {
|
|
|
5892
5892
|
}
|
|
5893
5893
|
for (let i in Xt)
|
|
5894
5894
|
t(i).handlers.push(Xt[i]);
|
|
5895
|
-
for (let i in
|
|
5896
|
-
t(i).observers.push(
|
|
5895
|
+
for (let i in lt)
|
|
5896
|
+
t(i).observers.push(lt[i]);
|
|
5897
5897
|
return e;
|
|
5898
5898
|
}
|
|
5899
5899
|
const Eu = [
|
|
@@ -5987,7 +5987,7 @@ function s0(r, e) {
|
|
|
5987
5987
|
return !1;
|
|
5988
5988
|
return !0;
|
|
5989
5989
|
}
|
|
5990
|
-
const Xt = /* @__PURE__ */ Object.create(null),
|
|
5990
|
+
const Xt = /* @__PURE__ */ Object.create(null), lt = /* @__PURE__ */ Object.create(null), _u = j.ie && j.ie_version < 15 || j.ios && j.webkit_version < 604;
|
|
5991
5991
|
function o0(r) {
|
|
5992
5992
|
let e = r.dom.parentNode;
|
|
5993
5993
|
if (!e)
|
|
@@ -6030,17 +6030,17 @@ function Iu(r, e) {
|
|
|
6030
6030
|
scrollIntoView: !0
|
|
6031
6031
|
});
|
|
6032
6032
|
}
|
|
6033
|
-
|
|
6033
|
+
lt.scroll = (r) => {
|
|
6034
6034
|
r.inputState.lastScrollTop = r.scrollDOM.scrollTop, r.inputState.lastScrollLeft = r.scrollDOM.scrollLeft;
|
|
6035
6035
|
};
|
|
6036
|
-
|
|
6036
|
+
lt.wheel = lt.mousewheel = (r) => {
|
|
6037
6037
|
r.inputState.lastWheelEvent = Date.now();
|
|
6038
6038
|
};
|
|
6039
6039
|
Xt.keydown = (r, e) => (r.inputState.setSelectionOrigin("select"), e.keyCode == 27 && r.inputState.tabFocusMode != 0 && (r.inputState.tabFocusMode = Date.now() + 2e3), !1);
|
|
6040
|
-
|
|
6040
|
+
lt.touchstart = (r, e) => {
|
|
6041
6041
|
r.inputState.lastTouchTime = Date.now(), r.inputState.setSelectionOrigin("select.pointer");
|
|
6042
6042
|
};
|
|
6043
|
-
|
|
6043
|
+
lt.touchmove = (r) => {
|
|
6044
6044
|
r.inputState.setSelectionOrigin("select.pointer");
|
|
6045
6045
|
};
|
|
6046
6046
|
Xt.mousedown = (r, e) => {
|
|
@@ -6216,21 +6216,21 @@ function Yu(r) {
|
|
|
6216
6216
|
}
|
|
6217
6217
|
}, 10);
|
|
6218
6218
|
}
|
|
6219
|
-
|
|
6219
|
+
lt.focus = (r) => {
|
|
6220
6220
|
r.inputState.lastFocusTime = Date.now(), !r.scrollDOM.scrollTop && (r.inputState.lastScrollTop || r.inputState.lastScrollLeft) && (r.scrollDOM.scrollTop = r.inputState.lastScrollTop, r.scrollDOM.scrollLeft = r.inputState.lastScrollLeft), Yu(r);
|
|
6221
6221
|
};
|
|
6222
|
-
|
|
6222
|
+
lt.blur = (r) => {
|
|
6223
6223
|
r.observer.clearSelectionRange(), Yu(r);
|
|
6224
6224
|
};
|
|
6225
|
-
|
|
6225
|
+
lt.compositionstart = lt.compositionupdate = (r) => {
|
|
6226
6226
|
r.observer.editContext || (r.inputState.compositionFirstChange == null && (r.inputState.compositionFirstChange = !0), r.inputState.composing < 0 && (r.inputState.composing = 0));
|
|
6227
6227
|
};
|
|
6228
|
-
|
|
6228
|
+
lt.compositionend = (r) => {
|
|
6229
6229
|
r.observer.editContext || (r.inputState.composing = -1, r.inputState.compositionEndedAt = Date.now(), r.inputState.compositionPendingKey = !0, r.inputState.compositionPendingChange = r.observer.pendingRecords().length > 0, r.inputState.compositionFirstChange = null, j.chrome && j.android ? r.observer.flushSoon() : r.inputState.compositionPendingChange ? Promise.resolve().then(() => r.observer.flush()) : setTimeout(() => {
|
|
6230
6230
|
r.inputState.composing < 0 && r.docView.hasComposition && r.update([]);
|
|
6231
6231
|
}, 50));
|
|
6232
6232
|
};
|
|
6233
|
-
|
|
6233
|
+
lt.contextmenu = (r) => {
|
|
6234
6234
|
r.inputState.lastContextMenu = Date.now();
|
|
6235
6235
|
};
|
|
6236
6236
|
Xt.beforeinput = (r, e) => {
|
|
@@ -6250,7 +6250,7 @@ Xt.beforeinput = (r, e) => {
|
|
|
6250
6250
|
(((o = window.visualViewport) === null || o === void 0 ? void 0 : o.height) || 0) > s + 10 && r.hasFocus && (r.contentDOM.blur(), r.focus());
|
|
6251
6251
|
}, 100);
|
|
6252
6252
|
}
|
|
6253
|
-
return j.ios && e.inputType == "deleteContentForward" && r.observer.flushSoon(), j.safari && e.inputType == "insertText" && r.inputState.composing >= 0 && setTimeout(() =>
|
|
6253
|
+
return j.ios && e.inputType == "deleteContentForward" && r.observer.flushSoon(), j.safari && e.inputType == "insertText" && r.inputState.composing >= 0 && setTimeout(() => lt.compositionend(r, e), 20), !1;
|
|
6254
6254
|
};
|
|
6255
6255
|
const Lh = /* @__PURE__ */ new Set();
|
|
6256
6256
|
function u0(r) {
|
|
@@ -6320,7 +6320,7 @@ class Zt {
|
|
|
6320
6320
|
an array of all the blocks that make up the line.
|
|
6321
6321
|
*/
|
|
6322
6322
|
get type() {
|
|
6323
|
-
return typeof this._content == "number" ?
|
|
6323
|
+
return typeof this._content == "number" ? at.Text : Array.isArray(this._content) ? this._content : this._content.type;
|
|
6324
6324
|
}
|
|
6325
6325
|
/**
|
|
6326
6326
|
The end of the element as a document position.
|
|
@@ -6399,7 +6399,7 @@ class tt {
|
|
|
6399
6399
|
return s.updateHeight(i, 0);
|
|
6400
6400
|
}
|
|
6401
6401
|
static empty() {
|
|
6402
|
-
return new
|
|
6402
|
+
return new ut(0, 0, 0);
|
|
6403
6403
|
}
|
|
6404
6404
|
// nodes uses null values to indicate the position of line breaks.
|
|
6405
6405
|
// There are never line breaks at the start or end of the array, or
|
|
@@ -6463,7 +6463,7 @@ class Wu extends tt {
|
|
|
6463
6463
|
return `block(${this.length})`;
|
|
6464
6464
|
}
|
|
6465
6465
|
}
|
|
6466
|
-
class
|
|
6466
|
+
class ut extends Wu {
|
|
6467
6467
|
constructor(e, t, i) {
|
|
6468
6468
|
super(e, t, null), this.collapsed = 0, this.widgetHeight = 0, this.breaks = 0, this.spaceAbove = i;
|
|
6469
6469
|
}
|
|
@@ -6472,7 +6472,7 @@ class ft extends Wu {
|
|
|
6472
6472
|
}
|
|
6473
6473
|
replace(e, t, i) {
|
|
6474
6474
|
let n = i[0];
|
|
6475
|
-
return i.length == 1 && (n instanceof
|
|
6475
|
+
return i.length == 1 && (n instanceof ut || n instanceof Ye && n.flags & 4) && Math.abs(this.length - n.length) < 10 ? (n instanceof Ye ? n = new ut(n.length, this.height, this.spaceAbove) : n.height = this.height, this.outdated || (n.outdated = !1), n) : tt.of(i);
|
|
6476
6476
|
}
|
|
6477
6477
|
updateHeight(e, t = 0, i = !1, n) {
|
|
6478
6478
|
return n && n.from <= t && n.more ? this.setMeasuredHeight(n) : (i || this.outdated) && (this.spaceAbove = 0, this.setHeight(Math.max(this.widgetHeight, e.heightForLine(this.length - this.collapsed)) + this.breaks * e.lineHeight)), this.outdated = !1, this;
|
|
@@ -6554,7 +6554,7 @@ class Ye extends tt {
|
|
|
6554
6554
|
o.length && o.push(null);
|
|
6555
6555
|
let p = n.heights[n.index++], v = 0;
|
|
6556
6556
|
p < 0 && (v = -p, p = n.heights[n.index++]), l == -1 ? l = p : Math.abs(p - l) >= Nn && (l = -2);
|
|
6557
|
-
let y = new
|
|
6557
|
+
let y = new ut(u, p, v);
|
|
6558
6558
|
y.outdated = !1, o.push(y), a += u + 1;
|
|
6559
6559
|
}
|
|
6560
6560
|
a <= s && o.push(null, new Ye(s - a).updateHeight(e, a));
|
|
@@ -6649,7 +6649,7 @@ class Ua {
|
|
|
6649
6649
|
span(e, t) {
|
|
6650
6650
|
if (this.lineStart > -1) {
|
|
6651
6651
|
let i = Math.min(t, this.lineEnd), n = this.nodes[this.nodes.length - 1];
|
|
6652
|
-
n instanceof
|
|
6652
|
+
n instanceof ut ? n.length += i - this.pos : (i > this.pos || !this.isCovered) && this.nodes.push(new ut(i - this.pos, -1, 0)), this.writtenTo = i, t > i && (this.nodes.push(null), this.writtenTo++, this.lineStart = -1);
|
|
6653
6653
|
}
|
|
6654
6654
|
this.pos = t;
|
|
6655
6655
|
}
|
|
@@ -6666,7 +6666,7 @@ class Ua {
|
|
|
6666
6666
|
if (this.lineStart > -1)
|
|
6667
6667
|
return;
|
|
6668
6668
|
let { from: e, to: t } = this.oracle.doc.lineAt(this.pos);
|
|
6669
|
-
this.lineStart = e, this.lineEnd = t, this.writtenTo < e && ((this.writtenTo < e - 1 || this.nodes[this.nodes.length - 1] == null) && this.nodes.push(this.blankContent(this.writtenTo, e - 1)), this.nodes.push(null)), this.pos > e && this.nodes.push(new
|
|
6669
|
+
this.lineStart = e, this.lineEnd = t, this.writtenTo < e && ((this.writtenTo < e - 1 || this.nodes[this.nodes.length - 1] == null) && this.nodes.push(this.blankContent(this.writtenTo, e - 1)), this.nodes.push(null)), this.pos > e && this.nodes.push(new ut(this.pos - e, -1, 0)), this.writtenTo = this.pos;
|
|
6670
6670
|
}
|
|
6671
6671
|
blankContent(e, t) {
|
|
6672
6672
|
let i = new Ye(t - e);
|
|
@@ -6675,9 +6675,9 @@ class Ua {
|
|
|
6675
6675
|
ensureLine() {
|
|
6676
6676
|
this.enterLine();
|
|
6677
6677
|
let e = this.nodes.length ? this.nodes[this.nodes.length - 1] : null;
|
|
6678
|
-
if (e instanceof
|
|
6678
|
+
if (e instanceof ut)
|
|
6679
6679
|
return e;
|
|
6680
|
-
let t = new
|
|
6680
|
+
let t = new ut(0, -1, 0);
|
|
6681
6681
|
return this.nodes.push(t), t;
|
|
6682
6682
|
}
|
|
6683
6683
|
addBlock(e) {
|
|
@@ -6691,10 +6691,10 @@ class Ua {
|
|
|
6691
6691
|
}
|
|
6692
6692
|
finish(e) {
|
|
6693
6693
|
let t = this.nodes.length == 0 ? null : this.nodes[this.nodes.length - 1];
|
|
6694
|
-
this.lineStart > -1 && !(t instanceof
|
|
6694
|
+
this.lineStart > -1 && !(t instanceof ut) && !this.isCovered ? this.nodes.push(new ut(0, -1, 0)) : (this.writtenTo < this.pos || t == null) && this.nodes.push(this.blankContent(this.writtenTo, this.pos));
|
|
6695
6695
|
let i = e;
|
|
6696
6696
|
for (let n of this.nodes)
|
|
6697
|
-
n instanceof
|
|
6697
|
+
n instanceof ut && n.updateHeight(this.oracle, i), i += n ? n.length : 1;
|
|
6698
6698
|
return this.nodes;
|
|
6699
6699
|
}
|
|
6700
6700
|
// Always called with a region that on both sides either stretches
|
|
@@ -6945,7 +6945,7 @@ class Ih {
|
|
|
6945
6945
|
}
|
|
6946
6946
|
a.push(C);
|
|
6947
6947
|
}, f = (u) => {
|
|
6948
|
-
if (u.length < o || u.type !=
|
|
6948
|
+
if (u.length < o || u.type != at.Text)
|
|
6949
6949
|
return;
|
|
6950
6950
|
let p = x0(u.from, u.to, this.stateDeco);
|
|
6951
6951
|
if (p.total < o)
|
|
@@ -8482,7 +8482,7 @@ class G {
|
|
|
8482
8482
|
its parent nodes is scrolled.
|
|
8483
8483
|
*/
|
|
8484
8484
|
static domEventHandlers(e) {
|
|
8485
|
-
return
|
|
8485
|
+
return gt.define(() => ({}), { eventHandlers: e });
|
|
8486
8486
|
}
|
|
8487
8487
|
/**
|
|
8488
8488
|
Create an extension that registers DOM event observers. Contrary
|
|
@@ -8493,7 +8493,7 @@ class G {
|
|
|
8493
8493
|
call `preventDefault`.
|
|
8494
8494
|
*/
|
|
8495
8495
|
static domEventObservers(e) {
|
|
8496
|
-
return
|
|
8496
|
+
return gt.define(() => ({}), { eventObservers: e });
|
|
8497
8497
|
}
|
|
8498
8498
|
/**
|
|
8499
8499
|
Create a theme extension. The first argument can be a
|
|
@@ -8726,7 +8726,7 @@ class I0 extends ui {
|
|
|
8726
8726
|
}
|
|
8727
8727
|
}
|
|
8728
8728
|
function jh(r) {
|
|
8729
|
-
let e =
|
|
8729
|
+
let e = gt.fromClass(class {
|
|
8730
8730
|
constructor(t) {
|
|
8731
8731
|
this.view = t, this.placeholder = r ? re.set([re.widget({ widget: new I0(r), side: 1 }).range(0)]) : re.none;
|
|
8732
8732
|
}
|
|
@@ -8746,7 +8746,7 @@ const Gh = /* @__PURE__ */ U.define({
|
|
|
8746
8746
|
e = e || i.topContainer, t = t || i.bottomContainer;
|
|
8747
8747
|
return { topContainer: e, bottomContainer: t };
|
|
8748
8748
|
}
|
|
8749
|
-
}), z0 = /* @__PURE__ */
|
|
8749
|
+
}), z0 = /* @__PURE__ */ gt.fromClass(class {
|
|
8750
8750
|
constructor(r) {
|
|
8751
8751
|
this.input = r.state.facet(cs), this.specs = this.input.filter((t) => t), this.panels = this.specs.map((t) => t(r));
|
|
8752
8752
|
let e = r.state.facet(Gh);
|
|
@@ -8862,7 +8862,7 @@ function D0(r) {
|
|
|
8862
8862
|
Y0
|
|
8863
8863
|
];
|
|
8864
8864
|
}
|
|
8865
|
-
const Y0 = /* @__PURE__ */
|
|
8865
|
+
const Y0 = /* @__PURE__ */ gt.fromClass(class {
|
|
8866
8866
|
constructor(r) {
|
|
8867
8867
|
this.view = r, this.domAfter = null, this.prevViewport = r.viewport, this.dom = document.createElement("div"), this.dom.className = "cm-gutters cm-gutters-before", this.dom.setAttribute("aria-hidden", "true"), this.dom.style.minHeight = this.view.contentHeight / this.view.scaleY + "px", this.gutters = r.state.facet(jn).map((e) => new Kh(r, e)), this.fixed = !r.state.facet(Fh);
|
|
8868
8868
|
for (let e of this.gutters)
|
|
@@ -8891,7 +8891,7 @@ const Y0 = /* @__PURE__ */ pt.fromClass(class {
|
|
|
8891
8891
|
if (i.length && (i = []), Array.isArray(s.type)) {
|
|
8892
8892
|
let o = !0;
|
|
8893
8893
|
for (let a of s.type)
|
|
8894
|
-
if (a.type ==
|
|
8894
|
+
if (a.type == at.Text && o) {
|
|
8895
8895
|
ua(t, i, a.from);
|
|
8896
8896
|
for (let l of n)
|
|
8897
8897
|
l.line(this.view, a, i);
|
|
@@ -8899,7 +8899,7 @@ const Y0 = /* @__PURE__ */ pt.fromClass(class {
|
|
|
8899
8899
|
} else if (a.widget)
|
|
8900
8900
|
for (let l of n)
|
|
8901
8901
|
l.widget(this.view, a);
|
|
8902
|
-
} else if (s.type ==
|
|
8902
|
+
} else if (s.type == at.Text) {
|
|
8903
8903
|
ua(t, i, s.from);
|
|
8904
8904
|
for (let o of n)
|
|
8905
8905
|
o.line(this.view, s, i);
|
|
@@ -10239,7 +10239,7 @@ function ev(r) {
|
|
|
10239
10239
|
return;
|
|
10240
10240
|
} else
|
|
10241
10241
|
throw new RangeError(`Unrecognized record size: ${$e}`);
|
|
10242
|
-
let
|
|
10242
|
+
let vt = l[ie], N, It, Wi = K - I;
|
|
10243
10243
|
if (ae - K <= n && (It = C(a.pos - Y, ue))) {
|
|
10244
10244
|
let He = new Uint16Array(It.size - It.skip), be = a.pos - It.size, Ve = He.length;
|
|
10245
10245
|
for (; a.pos > be; )
|
|
@@ -10248,14 +10248,14 @@ function ev(r) {
|
|
|
10248
10248
|
} else {
|
|
10249
10249
|
let He = a.pos - $e;
|
|
10250
10250
|
a.next();
|
|
10251
|
-
let be = [], Ve = [],
|
|
10251
|
+
let be = [], Ve = [], yt = ie >= o ? ie : -1, ke = 0, qi = ae;
|
|
10252
10252
|
for (; a.pos > He; )
|
|
10253
|
-
|
|
10254
|
-
if (
|
|
10255
|
-
let di = y(
|
|
10256
|
-
N = Ja(
|
|
10253
|
+
yt >= 0 && a.id == yt && a.size >= 0 ? (a.end <= qi - n && (Q(be, Ve, K, ke, a.end, qi, yt, Xe, _t), ke = be.length, qi = a.end), a.next()) : le > 2500 ? v(K, He, be, Ve) : p(K, He, be, Ve, yt, le + 1);
|
|
10254
|
+
if (yt >= 0 && ke > 0 && ke < be.length && Q(be, Ve, K, ke, K, qi, yt, Xe, _t), be.reverse(), Ve.reverse(), yt > -1 && ke > 0) {
|
|
10255
|
+
let di = y(vt, _t);
|
|
10256
|
+
N = Ja(vt, be, Ve, 0, be.length, 0, ae - K, di, di);
|
|
10257
10257
|
} else
|
|
10258
|
-
N = $(
|
|
10258
|
+
N = $(vt, be, Ve, ae - K, Xe - ae, _t);
|
|
10259
10259
|
}
|
|
10260
10260
|
D.push(N), he.push(Wi);
|
|
10261
10261
|
}
|
|
@@ -10317,7 +10317,7 @@ function ev(r) {
|
|
|
10317
10317
|
let Xe = D.pos - $e;
|
|
10318
10318
|
if ($e < 0 || Xe < ae || D.start < ie)
|
|
10319
10319
|
break;
|
|
10320
|
-
let _t = D.id >= o ? 4 : 0,
|
|
10320
|
+
let _t = D.id >= o ? 4 : 0, vt = D.start;
|
|
10321
10321
|
for (D.next(); D.pos > Xe; ) {
|
|
10322
10322
|
if (D.size < 0)
|
|
10323
10323
|
if (D.size == -3 || D.size == -4)
|
|
@@ -10327,7 +10327,7 @@ function ev(r) {
|
|
|
10327
10327
|
else D.id >= o && (_t += 4);
|
|
10328
10328
|
D.next();
|
|
10329
10329
|
}
|
|
10330
|
-
ue =
|
|
10330
|
+
ue = vt, he += $e, le += _t;
|
|
10331
10331
|
}
|
|
10332
10332
|
return (Y < 0 || he == I) && (K.size = he, K.start = ue, K.skip = le), K.size > 4 ? K : void 0;
|
|
10333
10333
|
}
|
|
@@ -10804,7 +10804,7 @@ function hc(r, e) {
|
|
|
10804
10804
|
return t;
|
|
10805
10805
|
}
|
|
10806
10806
|
let lv = 0;
|
|
10807
|
-
class
|
|
10807
|
+
class Ot {
|
|
10808
10808
|
/**
|
|
10809
10809
|
@internal
|
|
10810
10810
|
*/
|
|
@@ -10819,9 +10819,9 @@ class dt {
|
|
|
10819
10819
|
}
|
|
10820
10820
|
static define(e, t) {
|
|
10821
10821
|
let i = typeof e == "string" ? e : "?";
|
|
10822
|
-
if (e instanceof
|
|
10822
|
+
if (e instanceof Ot && (t = e), t?.base)
|
|
10823
10823
|
throw new Error("Can not derive from a modified tag");
|
|
10824
|
-
let n = new
|
|
10824
|
+
let n = new Ot(i, [], null, []);
|
|
10825
10825
|
if (n.set.push(n), t)
|
|
10826
10826
|
for (let s of t.set)
|
|
10827
10827
|
n.set.push(s);
|
|
@@ -10855,7 +10855,7 @@ class us {
|
|
|
10855
10855
|
let i = t[0].instances.find((a) => a.base == e && cv(t, a.modified));
|
|
10856
10856
|
if (i)
|
|
10857
10857
|
return i;
|
|
10858
|
-
let n = [], s = new
|
|
10858
|
+
let n = [], s = new Ot(e.name, n, e, t);
|
|
10859
10859
|
for (let a of t)
|
|
10860
10860
|
a.instances.push(s);
|
|
10861
10861
|
let o = fv(t);
|
|
@@ -11029,7 +11029,7 @@ function pv(r) {
|
|
|
11029
11029
|
e = e.next;
|
|
11030
11030
|
return e || null;
|
|
11031
11031
|
}
|
|
11032
|
-
const W =
|
|
11032
|
+
const W = Ot.define, Bn = W(), vi = W(), cc = W(vi), fc = W(vi), yi = W(), _n = W(yi), fo = W(yi), jt = W(), Zi = W(jt), qt = W(), Nt = W(), pa = W(), Mr = W(pa), In = W(), x = {
|
|
11033
11033
|
/**
|
|
11034
11034
|
A comment.
|
|
11035
11035
|
*/
|
|
@@ -11360,31 +11360,31 @@ const W = dt.define, Bn = W(), vi = W(), cc = W(vi), fc = W(vi), yi = W(), _n =
|
|
|
11360
11360
|
given element is being defined. Expected to be used with the
|
|
11361
11361
|
various [name](#highlight.tags.name) tags.
|
|
11362
11362
|
*/
|
|
11363
|
-
definition:
|
|
11363
|
+
definition: Ot.defineModifier("definition"),
|
|
11364
11364
|
/**
|
|
11365
11365
|
[Modifier](#highlight.Tag^defineModifier) that indicates that
|
|
11366
11366
|
something is constant. Mostly expected to be used with
|
|
11367
11367
|
[variable names](#highlight.tags.variableName).
|
|
11368
11368
|
*/
|
|
11369
|
-
constant:
|
|
11369
|
+
constant: Ot.defineModifier("constant"),
|
|
11370
11370
|
/**
|
|
11371
11371
|
[Modifier](#highlight.Tag^defineModifier) used to indicate that
|
|
11372
11372
|
a [variable](#highlight.tags.variableName) or [property
|
|
11373
11373
|
name](#highlight.tags.propertyName) is being called or defined
|
|
11374
11374
|
as a function.
|
|
11375
11375
|
*/
|
|
11376
|
-
function:
|
|
11376
|
+
function: Ot.defineModifier("function"),
|
|
11377
11377
|
/**
|
|
11378
11378
|
[Modifier](#highlight.Tag^defineModifier) that can be applied to
|
|
11379
11379
|
[names](#highlight.tags.name) to indicate that they belong to
|
|
11380
11380
|
the language's standard environment.
|
|
11381
11381
|
*/
|
|
11382
|
-
standard:
|
|
11382
|
+
standard: Ot.defineModifier("standard"),
|
|
11383
11383
|
/**
|
|
11384
11384
|
[Modifier](#highlight.Tag^defineModifier) that indicates a given
|
|
11385
11385
|
[names](#highlight.tags.name) is local to some scope.
|
|
11386
11386
|
*/
|
|
11387
|
-
local:
|
|
11387
|
+
local: Ot.defineModifier("local"),
|
|
11388
11388
|
/**
|
|
11389
11389
|
A generic variant [modifier](#highlight.Tag^defineModifier) that
|
|
11390
11390
|
can be used to tag language-specific alternative variants of
|
|
@@ -11393,11 +11393,11 @@ const W = dt.define, Bn = W(), vi = W(), cc = W(vi), fc = W(vi), yi = W(), _n =
|
|
|
11393
11393
|
[variable name](#highlight.tags.variableName) tags, since those
|
|
11394
11394
|
come up a lot.
|
|
11395
11395
|
*/
|
|
11396
|
-
special:
|
|
11396
|
+
special: Ot.defineModifier("special")
|
|
11397
11397
|
};
|
|
11398
11398
|
for (let r in x) {
|
|
11399
11399
|
let e = x[r];
|
|
11400
|
-
e instanceof
|
|
11400
|
+
e instanceof Ot && (e.name = r);
|
|
11401
11401
|
}
|
|
11402
11402
|
nd([
|
|
11403
11403
|
{ tag: x.link, class: "tok-link" },
|
|
@@ -11439,7 +11439,7 @@ function tl(r) {
|
|
|
11439
11439
|
});
|
|
11440
11440
|
}
|
|
11441
11441
|
const il = /* @__PURE__ */ new J();
|
|
11442
|
-
class
|
|
11442
|
+
class pt {
|
|
11443
11443
|
/**
|
|
11444
11444
|
Construct a language object. If you need to invoke this
|
|
11445
11445
|
directly, first define a data facet with
|
|
@@ -11521,7 +11521,7 @@ class Ot {
|
|
|
11521
11521
|
return !0;
|
|
11522
11522
|
}
|
|
11523
11523
|
}
|
|
11524
|
-
|
|
11524
|
+
pt.setState = /* @__PURE__ */ ye.define();
|
|
11525
11525
|
function uc(r, e, t) {
|
|
11526
11526
|
let i = r.facet(mr), n = Se(r).topNode;
|
|
11527
11527
|
if (!i || i.allowsNesting)
|
|
@@ -11529,7 +11529,7 @@ function uc(r, e, t) {
|
|
|
11529
11529
|
s.type.isTop && (n = s);
|
|
11530
11530
|
return n;
|
|
11531
11531
|
}
|
|
11532
|
-
class pr extends
|
|
11532
|
+
class pr extends pt {
|
|
11533
11533
|
constructor(e, t, i) {
|
|
11534
11534
|
super(e, t, [], i), this.parser = t;
|
|
11535
11535
|
}
|
|
@@ -11554,12 +11554,12 @@ class pr extends Ot {
|
|
|
11554
11554
|
}
|
|
11555
11555
|
}
|
|
11556
11556
|
function Se(r) {
|
|
11557
|
-
let e = r.field(
|
|
11557
|
+
let e = r.field(pt.state, !1);
|
|
11558
11558
|
return e ? e.tree : me.empty;
|
|
11559
11559
|
}
|
|
11560
11560
|
function sd(r, e, t = 50) {
|
|
11561
11561
|
var i;
|
|
11562
|
-
let n = (i = r.field(
|
|
11562
|
+
let n = (i = r.field(pt.state, !1)) === null || i === void 0 ? void 0 : i.context;
|
|
11563
11563
|
if (!n)
|
|
11564
11564
|
return null;
|
|
11565
11565
|
let s = n.viewport;
|
|
@@ -11761,11 +11761,11 @@ class gr {
|
|
|
11761
11761
|
return i.work(20, t) || i.takeTree(), new gr(i);
|
|
11762
11762
|
}
|
|
11763
11763
|
}
|
|
11764
|
-
|
|
11764
|
+
pt.state = /* @__PURE__ */ Lt.define({
|
|
11765
11765
|
create: gr.init,
|
|
11766
11766
|
update(r, e) {
|
|
11767
11767
|
for (let t of e.effects)
|
|
11768
|
-
if (t.is(
|
|
11768
|
+
if (t.is(pt.setState))
|
|
11769
11769
|
return t.value;
|
|
11770
11770
|
return e.startState.facet(mr) != e.state.facet(mr) ? gr.init(e.state) : r.apply(e);
|
|
11771
11771
|
}
|
|
@@ -11791,18 +11791,18 @@ typeof requestIdleCallback < "u" && (od = (r) => {
|
|
|
11791
11791
|
);
|
|
11792
11792
|
return () => e < 0 ? clearTimeout(t) : cancelIdleCallback(e);
|
|
11793
11793
|
});
|
|
11794
|
-
const Oo = typeof navigator < "u" && (!((uo = navigator.scheduling) === null || uo === void 0) && uo.isInputPending) ? () => navigator.scheduling.isInputPending() : null, mv = /* @__PURE__ */
|
|
11794
|
+
const Oo = typeof navigator < "u" && (!((uo = navigator.scheduling) === null || uo === void 0) && uo.isInputPending) ? () => navigator.scheduling.isInputPending() : null, mv = /* @__PURE__ */ gt.fromClass(class {
|
|
11795
11795
|
constructor(e) {
|
|
11796
11796
|
this.view = e, this.working = null, this.workScheduled = 0, this.chunkEnd = -1, this.chunkBudget = -1, this.work = this.work.bind(this), this.scheduleWork();
|
|
11797
11797
|
}
|
|
11798
11798
|
update(e) {
|
|
11799
|
-
let t = this.view.state.field(
|
|
11799
|
+
let t = this.view.state.field(pt.state).context;
|
|
11800
11800
|
(t.updateViewport(e.view.viewport) || this.view.viewport.to > t.treeLen) && this.scheduleWork(), (e.docChanged || e.selectionSet) && (this.view.hasFocus && (this.chunkBudget += 50), this.scheduleWork()), this.checkAsyncSchedule(t);
|
|
11801
11801
|
}
|
|
11802
11802
|
scheduleWork() {
|
|
11803
11803
|
if (this.working)
|
|
11804
11804
|
return;
|
|
11805
|
-
let { state: e } = this.view, t = e.field(
|
|
11805
|
+
let { state: e } = this.view, t = e.field(pt.state);
|
|
11806
11806
|
(t.tree != t.context.tree || !t.context.isDone(e.doc.length)) && (this.working = od(this.work));
|
|
11807
11807
|
}
|
|
11808
11808
|
work(e) {
|
|
@@ -11810,14 +11810,14 @@ const Oo = typeof navigator < "u" && (!((uo = navigator.scheduling) === null ||
|
|
|
11810
11810
|
let t = Date.now();
|
|
11811
11811
|
if (this.chunkEnd < t && (this.chunkEnd < 0 || this.view.hasFocus) && (this.chunkEnd = t + 3e4, this.chunkBudget = 3e3), this.chunkBudget <= 0)
|
|
11812
11812
|
return;
|
|
11813
|
-
let { state: i, viewport: { to: n } } = this.view, s = i.field(
|
|
11813
|
+
let { state: i, viewport: { to: n } } = this.view, s = i.field(pt.state);
|
|
11814
11814
|
if (s.tree == s.context.tree && s.context.isDone(
|
|
11815
11815
|
n + 1e5
|
|
11816
11816
|
/* Work.MaxParseAhead */
|
|
11817
11817
|
))
|
|
11818
11818
|
return;
|
|
11819
11819
|
let o = Date.now() + Math.min(this.chunkBudget, 100, e && !Oo ? Math.max(25, e.timeRemaining() - 5) : 1e9), a = s.context.treeLen < n && i.doc.length > n + 1e3, l = s.context.work(() => Oo && Oo() || Date.now() > o, n + (a ? 0 : 1e5));
|
|
11820
|
-
this.chunkBudget -= Date.now() - t, (l || this.chunkBudget <= 0) && (s.context.takeTree(), this.view.dispatch({ effects:
|
|
11820
|
+
this.chunkBudget -= Date.now() - t, (l || this.chunkBudget <= 0) && (s.context.takeTree(), this.view.dispatch({ effects: pt.setState.of(new gr(s.context)) })), this.chunkBudget > 0 && !(l && !a) && this.scheduleWork(), this.checkAsyncSchedule(s.context);
|
|
11821
11821
|
}
|
|
11822
11822
|
checkAsyncSchedule(e) {
|
|
11823
11823
|
e.scheduleOn && (this.workScheduled++, e.scheduleOn.then(() => this.scheduleWork()).catch((t) => Kt(this.view.state, t)).then(() => this.workScheduled--), e.scheduleOn = null);
|
|
@@ -11837,7 +11837,7 @@ const Oo = typeof navigator < "u" && (!((uo = navigator.scheduling) === null ||
|
|
|
11837
11837
|
return r.length ? r[0] : null;
|
|
11838
11838
|
},
|
|
11839
11839
|
enables: (r) => [
|
|
11840
|
-
|
|
11840
|
+
pt.state,
|
|
11841
11841
|
mv,
|
|
11842
11842
|
G.contentAttributes.compute([r], (e) => {
|
|
11843
11843
|
let t = e.facet(r);
|
|
@@ -12336,7 +12336,7 @@ class Ls {
|
|
|
12336
12336
|
return (i || (i = /* @__PURE__ */ Object.create(null)))["." + l] = a, l;
|
|
12337
12337
|
}
|
|
12338
12338
|
const s = typeof t.all == "string" ? t.all : t.all ? n(t.all) : void 0, o = t.scope;
|
|
12339
|
-
this.scope = o instanceof
|
|
12339
|
+
this.scope = o instanceof pt ? (a) => a.prop(_i) == o.data : o ? (a) => a == o : void 0, this.style = nd(e.map((a) => ({
|
|
12340
12340
|
tag: a.tag,
|
|
12341
12341
|
class: a.class || n(Object.assign({}, a, { tag: null }))
|
|
12342
12342
|
})), {
|
|
@@ -12394,7 +12394,7 @@ class Dv {
|
|
|
12394
12394
|
return i.finish();
|
|
12395
12395
|
}
|
|
12396
12396
|
}
|
|
12397
|
-
const Yv = /* @__PURE__ */ Ci.high(/* @__PURE__ */
|
|
12397
|
+
const Yv = /* @__PURE__ */ Ci.high(/* @__PURE__ */ gt.fromClass(Dv, {
|
|
12398
12398
|
decorations: (r) => r.decorations
|
|
12399
12399
|
})), Wv = 1e4, qv = "()[]{}", md = /* @__PURE__ */ new J();
|
|
12400
12400
|
function ma(r, e, t) {
|
|
@@ -12782,20 +12782,20 @@ const ya = /* @__PURE__ */ fi.define(), sy = /* @__PURE__ */ fi.define(), oy = /
|
|
|
12782
12782
|
update(r, e) {
|
|
12783
12783
|
let t = e.state.facet(ay), i = e.annotation(ya);
|
|
12784
12784
|
if (i) {
|
|
12785
|
-
let l =
|
|
12785
|
+
let l = ot.fromTransaction(e, i.selection), f = i.side, u = f == 0 ? r.undone : r.done;
|
|
12786
12786
|
return l ? u = gs(u, u.length, t.minDepth, l) : u = kd(u, e.startState.selection), new ei(f == 0 ? i.rest : u, f == 0 ? u : i.rest);
|
|
12787
12787
|
}
|
|
12788
12788
|
let n = e.annotation(sy);
|
|
12789
12789
|
if ((n == "full" || n == "before") && (r = r.isolate()), e.annotation(Ee.addToHistory) === !1)
|
|
12790
12790
|
return e.changes.empty ? r : r.addMapping(e.changes.desc);
|
|
12791
|
-
let s =
|
|
12791
|
+
let s = ot.fromTransaction(e), o = e.annotation(Ee.time), a = e.annotation(Ee.userEvent);
|
|
12792
12792
|
return s ? r = r.addChanges(s, o, a, t, e) : e.selection && (r = r.addSelection(e.startState.selection, o, a, t.newGroupDelay)), (n == "full" || n == "after") && (r = r.isolate()), r;
|
|
12793
12793
|
},
|
|
12794
12794
|
toJSON(r) {
|
|
12795
12795
|
return { done: r.done.map((e) => e.toJSON()), undone: r.undone.map((e) => e.toJSON()) };
|
|
12796
12796
|
},
|
|
12797
12797
|
fromJSON(r) {
|
|
12798
|
-
return new ei(r.done.map(
|
|
12798
|
+
return new ei(r.done.map(ot.fromJSON), r.undone.map(ot.fromJSON));
|
|
12799
12799
|
}
|
|
12800
12800
|
});
|
|
12801
12801
|
function yd(r, e) {
|
|
@@ -12810,12 +12810,12 @@ function yd(r, e) {
|
|
|
12810
12810
|
};
|
|
12811
12811
|
}
|
|
12812
12812
|
const hy = /* @__PURE__ */ yd(0, !1), cy = /* @__PURE__ */ yd(1, !1);
|
|
12813
|
-
class
|
|
12813
|
+
class ot {
|
|
12814
12814
|
constructor(e, t, i, n, s) {
|
|
12815
12815
|
this.changes = e, this.effects = t, this.mapped = i, this.startSelection = n, this.selectionsAfter = s;
|
|
12816
12816
|
}
|
|
12817
12817
|
setSelAfter(e) {
|
|
12818
|
-
return new
|
|
12818
|
+
return new ot(this.changes, this.effects, this.mapped, this.startSelection, e);
|
|
12819
12819
|
}
|
|
12820
12820
|
toJSON() {
|
|
12821
12821
|
var e, t, i;
|
|
@@ -12827,7 +12827,7 @@ class st {
|
|
|
12827
12827
|
};
|
|
12828
12828
|
}
|
|
12829
12829
|
static fromJSON(e) {
|
|
12830
|
-
return new
|
|
12830
|
+
return new ot(e.changes && Be.fromJSON(e.changes), [], e.mapped && ti.fromJSON(e.mapped), e.startSelection && L.fromJSON(e.startSelection), e.selectionsAfter.map(L.fromJSON));
|
|
12831
12831
|
}
|
|
12832
12832
|
// This does not check `addToHistory` and such, it assumes the
|
|
12833
12833
|
// transaction needs to be converted to an item. Returns null when
|
|
@@ -12838,10 +12838,10 @@ class st {
|
|
|
12838
12838
|
let s = n(e);
|
|
12839
12839
|
s.length && (i = i.concat(s));
|
|
12840
12840
|
}
|
|
12841
|
-
return !i.length && e.changes.empty ? null : new
|
|
12841
|
+
return !i.length && e.changes.empty ? null : new ot(e.changes.invert(e.startState.doc), i, void 0, t || e.startState.selection, Pt);
|
|
12842
12842
|
}
|
|
12843
12843
|
static selection(e) {
|
|
12844
|
-
return new
|
|
12844
|
+
return new ot(void 0, Pt, void 0, void 0, e);
|
|
12845
12845
|
}
|
|
12846
12846
|
}
|
|
12847
12847
|
function gs(r, e, t, i) {
|
|
@@ -12869,7 +12869,7 @@ function kd(r, e) {
|
|
|
12869
12869
|
let t = r[r.length - 1], i = t.selectionsAfter.slice(Math.max(0, t.selectionsAfter.length - dy));
|
|
12870
12870
|
return i.length && i[i.length - 1].eq(e) ? r : (i.push(e), gs(r, r.length - 1, 1e9, t.setSelAfter(i)));
|
|
12871
12871
|
} else
|
|
12872
|
-
return [
|
|
12872
|
+
return [ot.selection([e])];
|
|
12873
12873
|
}
|
|
12874
12874
|
function Oy(r) {
|
|
12875
12875
|
let e = r[r.length - 1], t = r.slice();
|
|
@@ -12887,14 +12887,14 @@ function mo(r, e) {
|
|
|
12887
12887
|
} else
|
|
12888
12888
|
e = n.mapped, t--, i = n.selectionsAfter;
|
|
12889
12889
|
}
|
|
12890
|
-
return i.length ? [
|
|
12890
|
+
return i.length ? [ot.selection(i)] : Pt;
|
|
12891
12891
|
}
|
|
12892
12892
|
function py(r, e, t) {
|
|
12893
12893
|
let i = Sd(r.selectionsAfter.length ? r.selectionsAfter.map((a) => a.map(e)) : Pt, t);
|
|
12894
12894
|
if (!r.changes)
|
|
12895
|
-
return
|
|
12895
|
+
return ot.selection(i);
|
|
12896
12896
|
let n = r.changes.map(e), s = e.mapDesc(r.changes, !0), o = r.mapped ? r.mapped.composeDesc(s) : s;
|
|
12897
|
-
return new
|
|
12897
|
+
return new ot(n, ye.mapEffects(r.effects, e), o, r.startSelection.map(s), i);
|
|
12898
12898
|
}
|
|
12899
12899
|
const gy = /^(input\.type|delete)($|\.)/;
|
|
12900
12900
|
class ei {
|
|
@@ -12907,7 +12907,7 @@ class ei {
|
|
|
12907
12907
|
addChanges(e, t, i, n, s) {
|
|
12908
12908
|
let o = this.done, a = o[o.length - 1];
|
|
12909
12909
|
return a && a.changes && !a.changes.empty && e.changes && (!i || gy.test(i)) && (!a.selectionsAfter.length && t - this.prevTime < n.newGroupDelay && n.joinToEvent(s, fy(a.changes, e.changes)) || // For compose (but not compose.start) events, always join with previous event
|
|
12910
|
-
i == "input.type.compose") ? o = gs(o, o.length - 1, n.minDepth, new
|
|
12910
|
+
i == "input.type.compose") ? o = gs(o, o.length - 1, n.minDepth, new ot(e.changes.compose(a.changes), Sd(ye.mapEffects(e.effects, a.changes), a.effects), a.mapped, a.startSelection, Pt)) : o = gs(o, o.length, n.minDepth, e), new ei(o, Pt, t, i);
|
|
12911
12911
|
}
|
|
12912
12912
|
addSelection(e, t, i, n) {
|
|
12913
12913
|
let s = this.done.length ? this.done[this.done.length - 1].selectionsAfter : Pt;
|
|
@@ -14510,7 +14510,7 @@ class Is extends el {
|
|
|
14510
14510
|
id: X,
|
|
14511
14511
|
name: $,
|
|
14512
14512
|
props: V && [[J.group, V]]
|
|
14513
|
-
})), E && (y || (y = {}), Array.isArray(E) || E instanceof
|
|
14513
|
+
})), E && (y || (y = {}), Array.isArray(E) || E instanceof Ot ? y[$] = E : Object.assign(y, E));
|
|
14514
14514
|
}
|
|
14515
14515
|
i = new mn(v), y && (i = i.extend(Qr(y)));
|
|
14516
14516
|
}
|
|
@@ -14679,7 +14679,7 @@ function ce(r, e, t, i) {
|
|
|
14679
14679
|
return new cn(r, e, t, i);
|
|
14680
14680
|
}
|
|
14681
14681
|
const uO = { resolve: "Emphasis", mark: "EmphasisMark" }, dO = { resolve: "Emphasis", mark: "EmphasisMark" }, Li = {}, vs = {};
|
|
14682
|
-
class
|
|
14682
|
+
class dt {
|
|
14683
14683
|
constructor(e, t, i, n) {
|
|
14684
14684
|
this.type = e, this.from = t, this.to = i, this.side = n;
|
|
14685
14685
|
}
|
|
@@ -14751,7 +14751,7 @@ const yo = {
|
|
|
14751
14751
|
for (; r.char(i) == e; )
|
|
14752
14752
|
i++;
|
|
14753
14753
|
let n = r.slice(t - 1, t), s = r.slice(i, i + 1), o = fn.test(n), a = fn.test(s), l = /\s|^$/.test(n), f = /\s|^$/.test(s), u = !f && (!a || l || o), p = !l && (!o || f || a), v = u && (e == 42 || !p || o), y = p && (e == 42 || !u || a);
|
|
14754
|
-
return r.append(new
|
|
14754
|
+
return r.append(new dt(e == 95 ? uO : dO, t, i, (v ? 1 : 0) | (y ? 2 : 0)));
|
|
14755
14755
|
},
|
|
14756
14756
|
HardBreak(r, e, t) {
|
|
14757
14757
|
if (e == 92 && r.char(t + 1) == 10)
|
|
@@ -14766,7 +14766,7 @@ const yo = {
|
|
|
14766
14766
|
return -1;
|
|
14767
14767
|
},
|
|
14768
14768
|
Link(r, e, t) {
|
|
14769
|
-
return e == 91 ? r.append(new
|
|
14769
|
+
return e == 91 ? r.append(new dt(
|
|
14770
14770
|
Li,
|
|
14771
14771
|
t,
|
|
14772
14772
|
t + 1,
|
|
@@ -14775,7 +14775,7 @@ const yo = {
|
|
|
14775
14775
|
)) : -1;
|
|
14776
14776
|
},
|
|
14777
14777
|
Image(r, e, t) {
|
|
14778
|
-
return e == 33 && r.char(t + 1) == 91 ? r.append(new
|
|
14778
|
+
return e == 33 && r.char(t + 1) == 91 ? r.append(new dt(
|
|
14779
14779
|
vs,
|
|
14780
14780
|
t,
|
|
14781
14781
|
t + 2,
|
|
@@ -14788,14 +14788,14 @@ const yo = {
|
|
|
14788
14788
|
return -1;
|
|
14789
14789
|
for (let i = r.parts.length - 1; i >= 0; i--) {
|
|
14790
14790
|
let n = r.parts[i];
|
|
14791
|
-
if (n instanceof
|
|
14791
|
+
if (n instanceof dt && (n.type == Li || n.type == vs)) {
|
|
14792
14792
|
if (!n.side || r.skipSpace(n.to) == t && !/[(\[]/.test(r.slice(t + 1, t + 2)))
|
|
14793
14793
|
return r.parts[i] = null, -1;
|
|
14794
14794
|
let s = r.takeContent(i), o = r.parts[i] = R1(r, s, n.type == Li ? z.Link : z.Image, n.from, t + 1);
|
|
14795
14795
|
if (n.type == Li)
|
|
14796
14796
|
for (let a = 0; a < i; a++) {
|
|
14797
14797
|
let l = r.parts[a];
|
|
14798
|
-
l instanceof
|
|
14798
|
+
l instanceof dt && l.type == Li && (l.side = 0);
|
|
14799
14799
|
}
|
|
14800
14800
|
return o.to;
|
|
14801
14801
|
}
|
|
@@ -14915,7 +14915,7 @@ class gl {
|
|
|
14915
14915
|
returning from [parse functions](#InlineParser.parse).
|
|
14916
14916
|
*/
|
|
14917
14917
|
addDelimiter(e, t, i, n, s) {
|
|
14918
|
-
return this.append(new
|
|
14918
|
+
return this.append(new dt(e, t, i, (n ? 1 : 0) | (s ? 2 : 0)));
|
|
14919
14919
|
}
|
|
14920
14920
|
/**
|
|
14921
14921
|
Returns true when there is an unmatched link or image opening
|
|
@@ -14924,7 +14924,7 @@ class gl {
|
|
|
14924
14924
|
get hasOpenLink() {
|
|
14925
14925
|
for (let e = this.parts.length - 1; e >= 0; e--) {
|
|
14926
14926
|
let t = this.parts[e];
|
|
14927
|
-
if (t instanceof
|
|
14927
|
+
if (t instanceof dt && (t.type == Li || t.type == vs))
|
|
14928
14928
|
return !0;
|
|
14929
14929
|
}
|
|
14930
14930
|
return !1;
|
|
@@ -14942,12 +14942,12 @@ class gl {
|
|
|
14942
14942
|
resolveMarkers(e) {
|
|
14943
14943
|
for (let i = e; i < this.parts.length; i++) {
|
|
14944
14944
|
let n = this.parts[i];
|
|
14945
|
-
if (!(n instanceof
|
|
14945
|
+
if (!(n instanceof dt && n.type.resolve && n.side & 2))
|
|
14946
14946
|
continue;
|
|
14947
14947
|
let s = n.type == uO || n.type == dO, o = n.to - n.from, a, l = i - 1;
|
|
14948
14948
|
for (; l >= e; l--) {
|
|
14949
14949
|
let $ = this.parts[l];
|
|
14950
|
-
if ($ instanceof
|
|
14950
|
+
if ($ instanceof dt && $.side & 1 && $.type == n.type && // Ignore emphasis delimiters where the character count doesn't match
|
|
14951
14951
|
!(s && (n.side & 1 || $.side & 2) && ($.to - $.from + o) % 3 == 0 && (($.to - $.from) % 3 || o % 3))) {
|
|
14952
14952
|
a = $;
|
|
14953
14953
|
break;
|
|
@@ -14965,7 +14965,7 @@ class gl {
|
|
|
14965
14965
|
this.parts[$] instanceof cn && u.push(this.parts[$]), this.parts[$] = null;
|
|
14966
14966
|
n.type.mark && u.push(this.elt(n.type.mark, n.from, v));
|
|
14967
14967
|
let y = this.elt(f, p, v, u);
|
|
14968
|
-
this.parts[l] = s && a.from != p ? new
|
|
14968
|
+
this.parts[l] = s && a.from != p ? new dt(a.type, a.from, p, a.side) : null, (this.parts[i] = s && n.to != v ? new dt(n.type, v, n.to, n.side) : null) ? this.parts.splice(i, 0, y) : this.parts[i] = y;
|
|
14969
14969
|
}
|
|
14970
14970
|
let t = [];
|
|
14971
14971
|
for (let i = e; i < this.parts.length; i++) {
|
|
@@ -14982,7 +14982,7 @@ class gl {
|
|
|
14982
14982
|
findOpeningDelimiter(e) {
|
|
14983
14983
|
for (let t = this.parts.length - 1; t >= 0; t--) {
|
|
14984
14984
|
let i = this.parts[t];
|
|
14985
|
-
if (i instanceof
|
|
14985
|
+
if (i instanceof dt && i.type == e && i.side & 1)
|
|
14986
14986
|
return t;
|
|
14987
14987
|
}
|
|
14988
14988
|
return null;
|
|
@@ -15006,7 +15006,7 @@ class gl {
|
|
|
15006
15006
|
*/
|
|
15007
15007
|
getDelimiterAt(e) {
|
|
15008
15008
|
let t = this.parts[e];
|
|
15009
|
-
return t instanceof
|
|
15009
|
+
return t instanceof dt ? t : null;
|
|
15010
15010
|
}
|
|
15011
15011
|
/**
|
|
15012
15012
|
Skip space after the given (document) position, returning either
|
|
@@ -15988,7 +15988,7 @@ class ks {
|
|
|
15988
15988
|
}
|
|
15989
15989
|
}
|
|
15990
15990
|
ks.prototype.contextual = ar.prototype.fallback = ar.prototype.extend = !1;
|
|
15991
|
-
class
|
|
15991
|
+
class mt {
|
|
15992
15992
|
/**
|
|
15993
15993
|
Create a tokenizer. The first argument is the function that,
|
|
15994
15994
|
given an input stream, scans for the types of tokens it
|
|
@@ -16041,7 +16041,7 @@ function eS(r, e, t, i) {
|
|
|
16041
16041
|
let n = Yc(t, i, e);
|
|
16042
16042
|
return n < 0 || Yc(t, i, r) < n;
|
|
16043
16043
|
}
|
|
16044
|
-
const
|
|
16044
|
+
const ht = typeof process < "u" && process.env && /\bparse\b/.test(process.env.LOG);
|
|
16045
16045
|
let So = null;
|
|
16046
16046
|
function Wc(r, e, t) {
|
|
16047
16047
|
let i = r.cursor(ve.IncludeAnonymous);
|
|
@@ -16228,15 +16228,15 @@ class rS {
|
|
|
16228
16228
|
if (!i.length) {
|
|
16229
16229
|
let o = n && sS(n);
|
|
16230
16230
|
if (o)
|
|
16231
|
-
return
|
|
16231
|
+
return ht && console.log("Finish with " + this.stackID(o)), this.stackToTree(o);
|
|
16232
16232
|
if (this.parser.strict)
|
|
16233
|
-
throw
|
|
16233
|
+
throw ht && n && console.log("Stuck with token " + (this.tokens.mainToken ? this.parser.getName(this.tokens.mainToken.value) : "none")), new SyntaxError("No parse at " + t);
|
|
16234
16234
|
this.recovering || (this.recovering = 5);
|
|
16235
16235
|
}
|
|
16236
16236
|
if (this.recovering && n) {
|
|
16237
16237
|
let o = this.stoppedAt != null && n[0].pos > this.stoppedAt ? n[0] : this.runRecovery(n, s, i);
|
|
16238
16238
|
if (o)
|
|
16239
|
-
return
|
|
16239
|
+
return ht && console.log("Force-finish " + this.stackID(o)), this.stackToTree(o.forceAll());
|
|
16240
16240
|
}
|
|
16241
16241
|
if (this.recovering) {
|
|
16242
16242
|
let o = this.recovering == 1 ? 1 : this.recovering * 3;
|
|
@@ -16279,7 +16279,7 @@ class rS {
|
|
|
16279
16279
|
// given, stacks split off by ambiguous operations will be pushed to
|
|
16280
16280
|
// `split`, or added to `stacks` if they move `pos` forward.
|
|
16281
16281
|
advanceStack(e, t, i) {
|
|
16282
|
-
let n = e.pos, { parser: s } = this, o =
|
|
16282
|
+
let n = e.pos, { parser: s } = this, o = ht ? this.stackID(e) + " -> " : "";
|
|
16283
16283
|
if (this.stoppedAt != null && n > this.stoppedAt)
|
|
16284
16284
|
return e.forceReduce() ? e : null;
|
|
16285
16285
|
if (this.fragments) {
|
|
@@ -16287,7 +16287,7 @@ class rS {
|
|
|
16287
16287
|
for (let p = this.fragments.nodeAt(n); p; ) {
|
|
16288
16288
|
let v = this.parser.nodeSet.types[p.type.id] == p.type ? s.getGoto(e.state, p.type.id) : -1;
|
|
16289
16289
|
if (v > -1 && p.length && (!f || (p.prop(J.contextHash) || 0) == u))
|
|
16290
|
-
return e.useNode(p, v),
|
|
16290
|
+
return e.useNode(p, v), ht && console.log(o + this.stackID(e) + ` (via reuse of ${s.getName(p.type.id)})`), !0;
|
|
16291
16291
|
if (!(p instanceof me) || p.children.length == 0 || p.positions[0] > 0)
|
|
16292
16292
|
break;
|
|
16293
16293
|
let y = p.children[0];
|
|
@@ -16303,7 +16303,7 @@ class rS {
|
|
|
16303
16303
|
/* ParseState.DefaultReduce */
|
|
16304
16304
|
);
|
|
16305
16305
|
if (a > 0)
|
|
16306
|
-
return e.reduce(a),
|
|
16306
|
+
return e.reduce(a), ht && console.log(o + this.stackID(e) + ` (via always-reduce ${s.getName(
|
|
16307
16307
|
a & 65535
|
|
16308
16308
|
/* Action.ValueMask */
|
|
16309
16309
|
)})`), !0;
|
|
@@ -16313,7 +16313,7 @@ class rS {
|
|
|
16313
16313
|
let l = this.tokens.getActions(e);
|
|
16314
16314
|
for (let f = 0; f < l.length; ) {
|
|
16315
16315
|
let u = l[f++], p = l[f++], v = l[f++], y = f == l.length || !i, Q = y ? e : e.split(), $ = this.tokens.mainToken;
|
|
16316
|
-
if (Q.apply(u, p, $ ? $.start : Q.pos, v),
|
|
16316
|
+
if (Q.apply(u, p, $ ? $.start : Q.pos, v), ht && console.log(o + this.stackID(Q) + ` (via ${(u & 65536) == 0 ? "shift" : `reduce of ${s.getName(
|
|
16317
16317
|
u & 65535
|
|
16318
16318
|
/* Action.ValueMask */
|
|
16319
16319
|
)}`} for ${s.getName(p)} @ ${n}${Q == e ? "" : ", split"})`), y)
|
|
@@ -16337,15 +16337,15 @@ class rS {
|
|
|
16337
16337
|
runRecovery(e, t, i) {
|
|
16338
16338
|
let n = null, s = !1;
|
|
16339
16339
|
for (let o = 0; o < e.length; o++) {
|
|
16340
|
-
let a = e[o], l = t[o << 1], f = t[(o << 1) + 1], u =
|
|
16341
|
-
if (a.deadEnd && (s || (s = !0, a.restart(),
|
|
16340
|
+
let a = e[o], l = t[o << 1], f = t[(o << 1) + 1], u = ht ? this.stackID(a) + " -> " : "";
|
|
16341
|
+
if (a.deadEnd && (s || (s = !0, a.restart(), ht && console.log(u + this.stackID(a) + " (restarted)"), this.advanceFully(a, i))))
|
|
16342
16342
|
continue;
|
|
16343
16343
|
let p = a.split(), v = u;
|
|
16344
|
-
for (let y = 0; y < 10 && p.forceReduce() && (
|
|
16345
|
-
|
|
16344
|
+
for (let y = 0; y < 10 && p.forceReduce() && (ht && console.log(v + this.stackID(p) + " (via force-reduce)"), !this.advanceFully(p, i)); y++)
|
|
16345
|
+
ht && (v = this.stackID(p) + " -> ");
|
|
16346
16346
|
for (let y of a.recoverByInsert(l))
|
|
16347
|
-
|
|
16348
|
-
this.stream.end > a.pos ? (f == a.pos && (f++, l = 0), a.recoverByDelete(l, f),
|
|
16347
|
+
ht && console.log(u + this.stackID(y) + " (via recover-insert)"), this.advanceFully(y, i);
|
|
16348
|
+
this.stream.end > a.pos ? (f == a.pos && (f++, l = 0), a.recoverByDelete(l, f), ht && console.log(u + this.stackID(a) + ` (via recover-delete ${this.parser.getName(l)})`), qc(a, i)) : (!n || n.score < p.score) && (n = p);
|
|
16349
16349
|
}
|
|
16350
16350
|
return n;
|
|
16351
16351
|
}
|
|
@@ -16769,7 +16769,7 @@ const RS = [ml, wO, QO, bO, xO], XS = new kO({
|
|
|
16769
16769
|
return n == ml || n == bS ? new Jc(Ca(i, 1) || "", r) : r;
|
|
16770
16770
|
},
|
|
16771
16771
|
strict: !1
|
|
16772
|
-
}), LS = new
|
|
16772
|
+
}), LS = new mt((r, e) => {
|
|
16773
16773
|
if (r.next != TO) {
|
|
16774
16774
|
r.next < 0 && e.context && r.acceptToken(Qo);
|
|
16775
16775
|
return;
|
|
@@ -16794,7 +16794,7 @@ const RS = [ml, wO, QO, bO, xO], XS = new kO({
|
|
|
16794
16794
|
if ($S.hasOwnProperty(i)) return r.acceptToken(wO);
|
|
16795
16795
|
n && Uc[n] && Uc[n][i] ? r.acceptToken(Qo, -1) : r.acceptToken(ml);
|
|
16796
16796
|
}
|
|
16797
|
-
}, { contextual: !0 }), ES = new
|
|
16797
|
+
}, { contextual: !0 }), ES = new mt((r) => {
|
|
16798
16798
|
for (let e = 0, t = 0; ; t++) {
|
|
16799
16799
|
if (r.next < 0) {
|
|
16800
16800
|
t && r.acceptToken(Gc);
|
|
@@ -16815,7 +16815,7 @@ function BS(r) {
|
|
|
16815
16815
|
if (r.name == "svg" || r.name == "math") return !0;
|
|
16816
16816
|
return !1;
|
|
16817
16817
|
}
|
|
16818
|
-
const _S = new
|
|
16818
|
+
const _S = new mt((r, e) => {
|
|
16819
16819
|
if (r.next == vl && r.peek(1) == Qs) {
|
|
16820
16820
|
let t = e.dialectEnabled(PS) || BS(e.context);
|
|
16821
16821
|
r.acceptToken(t ? uS : jc, 2);
|
|
@@ -16823,7 +16823,7 @@ const _S = new gt((r, e) => {
|
|
|
16823
16823
|
});
|
|
16824
16824
|
function yl(r, e, t) {
|
|
16825
16825
|
let i = 2 + r.length;
|
|
16826
|
-
return new
|
|
16826
|
+
return new mt((n) => {
|
|
16827
16827
|
for (let s = 0, o = 0, a = 0; ; a++) {
|
|
16828
16828
|
if (n.next < 0) {
|
|
16829
16829
|
a && n.acceptToken(e);
|
|
@@ -16993,16 +16993,16 @@ const LO = (r, e, t) => (i, n) => {
|
|
|
16993
16993
|
break;
|
|
16994
16994
|
}
|
|
16995
16995
|
}
|
|
16996
|
-
}, ok = new
|
|
16996
|
+
}, ok = new mt(
|
|
16997
16997
|
LO(qS, ZO, NS)
|
|
16998
|
-
), ak = new
|
|
16998
|
+
), ak = new mt(
|
|
16999
16999
|
LO(jS, GS, US)
|
|
17000
|
-
), lk = new
|
|
17000
|
+
), lk = new mt((r) => {
|
|
17001
17001
|
if (RO.includes(r.peek(-1))) {
|
|
17002
17002
|
let { next: e } = r;
|
|
17003
17003
|
(un(e) || e == XO || e == ek || e == JS || e == sk || e == KS || e == FS && un(r.peek(1)) || e == Hn || e == ik) && r.acceptToken(WS);
|
|
17004
17004
|
}
|
|
17005
|
-
}), hk = new
|
|
17005
|
+
}), hk = new mt((r) => {
|
|
17006
17006
|
if (!RO.includes(r.peek(-1))) {
|
|
17007
17007
|
let { next: e } = r;
|
|
17008
17008
|
if (e == tk && (r.advance(), r.acceptToken(tf)), un(e)) {
|
|
@@ -17922,15 +17922,15 @@ const Pk = 316, $k = 317, af = 1, Ck = 2, Tk = 3, Ak = 4, Mk = 318, Zk = 320, Rk
|
|
|
17922
17922
|
return e == Xk || e == Lk || e == Zk ? r : e == Rk;
|
|
17923
17923
|
},
|
|
17924
17924
|
strict: !1
|
|
17925
|
-
}), jk = new
|
|
17925
|
+
}), jk = new mt((r, e) => {
|
|
17926
17926
|
let { next: t } = r;
|
|
17927
17927
|
(t == BO || t == -1 || e.context) && r.acceptToken(Mk);
|
|
17928
|
-
}, { contextual: !0, fallback: !0 }), Gk = new
|
|
17928
|
+
}, { contextual: !0, fallback: !0 }), Gk = new mt((r, e) => {
|
|
17929
17929
|
let { next: t } = r, i;
|
|
17930
17930
|
Ta.indexOf(t) > -1 || t == Aa && ((i = r.peek(1)) == Aa || i == _k) || t != BO && t != Bk && t != -1 && !e.context && r.acceptToken(Pk);
|
|
17931
|
-
}, { contextual: !0 }), Uk = new
|
|
17931
|
+
}, { contextual: !0 }), Uk = new mt((r, e) => {
|
|
17932
17932
|
r.next == qk && !e.context && r.acceptToken($k);
|
|
17933
|
-
}, { contextual: !0 }), Fk = new
|
|
17933
|
+
}, { contextual: !0 }), Fk = new mt((r, e) => {
|
|
17934
17934
|
let { next: t } = r;
|
|
17935
17935
|
if (t == Ik || t == zk) {
|
|
17936
17936
|
if (r.advance(), t == r.next) {
|
|
@@ -17943,7 +17943,7 @@ const Pk = 316, $k = 317, af = 1, Ck = 2, Tk = 3, Ak = 4, Mk = 318, Zk = 320, Rk
|
|
|
17943
17943
|
function Po(r, e) {
|
|
17944
17944
|
return r >= 65 && r <= 90 || r >= 97 && r <= 122 || r == 95 || r >= 192 || !e && r >= 48 && r <= 57;
|
|
17945
17945
|
}
|
|
17946
|
-
const Hk = new
|
|
17946
|
+
const Hk = new mt((r, e) => {
|
|
17947
17947
|
if (r.next != Vk || !e.dialectEnabled(Ek) || (r.advance(), r.next == Aa)) return;
|
|
17948
17948
|
let t = 0;
|
|
17949
17949
|
for (; Ta.indexOf(r.next) > -1; )
|
|
@@ -18339,7 +18339,7 @@ const cQ = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
|
|
|
18339
18339
|
s,
|
|
18340
18340
|
o.update(a, { userEvent: "input.complete", scrollIntoView: !0 })
|
|
18341
18341
|
]), !0);
|
|
18342
|
-
}), Er = ["_blank", "_self", "_top", "_parent"], $o = ["ascii", "utf-8", "utf-16", "latin1", "latin1"], Co = ["get", "post", "put", "delete"], To = ["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"],
|
|
18342
|
+
}), Er = ["_blank", "_self", "_top", "_parent"], $o = ["ascii", "utf-8", "utf-16", "latin1", "latin1"], Co = ["get", "post", "put", "delete"], To = ["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"], ct = ["true", "false"], F = {}, uQ = {
|
|
18343
18343
|
a: {
|
|
18344
18344
|
attrs: {
|
|
18345
18345
|
href: null,
|
|
@@ -18700,7 +18700,7 @@ const cQ = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
|
|
|
18700
18700
|
}, GO = {
|
|
18701
18701
|
accesskey: null,
|
|
18702
18702
|
class: null,
|
|
18703
|
-
contenteditable:
|
|
18703
|
+
contenteditable: ct,
|
|
18704
18704
|
contextmenu: null,
|
|
18705
18705
|
dir: ["ltr", "rtl", "auto"],
|
|
18706
18706
|
draggable: ["true", "false", "auto"],
|
|
@@ -18714,9 +18714,9 @@ const cQ = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
|
|
|
18714
18714
|
itemscope: ["itemscope"],
|
|
18715
18715
|
itemtype: null,
|
|
18716
18716
|
lang: ["ar", "bn", "de", "en-GB", "en-US", "es", "fr", "hi", "id", "ja", "pa", "pt", "ru", "tr", "zh"],
|
|
18717
|
-
spellcheck:
|
|
18718
|
-
autocorrect:
|
|
18719
|
-
autocapitalize:
|
|
18717
|
+
spellcheck: ct,
|
|
18718
|
+
autocorrect: ct,
|
|
18719
|
+
autocapitalize: ct,
|
|
18720
18720
|
style: null,
|
|
18721
18721
|
tabindex: null,
|
|
18722
18722
|
title: null,
|
|
@@ -18724,32 +18724,32 @@ const cQ = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
|
|
|
18724
18724
|
rel: ["stylesheet", "alternate", "author", "bookmark", "help", "license", "next", "nofollow", "noreferrer", "prefetch", "prev", "search", "tag"],
|
|
18725
18725
|
role: /* @__PURE__ */ "alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),
|
|
18726
18726
|
"aria-activedescendant": null,
|
|
18727
|
-
"aria-atomic":
|
|
18727
|
+
"aria-atomic": ct,
|
|
18728
18728
|
"aria-autocomplete": ["inline", "list", "both", "none"],
|
|
18729
|
-
"aria-busy":
|
|
18729
|
+
"aria-busy": ct,
|
|
18730
18730
|
"aria-checked": ["true", "false", "mixed", "undefined"],
|
|
18731
18731
|
"aria-controls": null,
|
|
18732
18732
|
"aria-describedby": null,
|
|
18733
|
-
"aria-disabled":
|
|
18733
|
+
"aria-disabled": ct,
|
|
18734
18734
|
"aria-dropeffect": null,
|
|
18735
18735
|
"aria-expanded": ["true", "false", "undefined"],
|
|
18736
18736
|
"aria-flowto": null,
|
|
18737
18737
|
"aria-grabbed": ["true", "false", "undefined"],
|
|
18738
|
-
"aria-haspopup":
|
|
18739
|
-
"aria-hidden":
|
|
18738
|
+
"aria-haspopup": ct,
|
|
18739
|
+
"aria-hidden": ct,
|
|
18740
18740
|
"aria-invalid": ["true", "false", "grammar", "spelling"],
|
|
18741
18741
|
"aria-label": null,
|
|
18742
18742
|
"aria-labelledby": null,
|
|
18743
18743
|
"aria-level": null,
|
|
18744
18744
|
"aria-live": ["off", "polite", "assertive"],
|
|
18745
|
-
"aria-multiline":
|
|
18746
|
-
"aria-multiselectable":
|
|
18745
|
+
"aria-multiline": ct,
|
|
18746
|
+
"aria-multiselectable": ct,
|
|
18747
18747
|
"aria-owns": null,
|
|
18748
18748
|
"aria-posinset": null,
|
|
18749
18749
|
"aria-pressed": ["true", "false", "mixed", "undefined"],
|
|
18750
|
-
"aria-readonly":
|
|
18750
|
+
"aria-readonly": ct,
|
|
18751
18751
|
"aria-relevant": null,
|
|
18752
|
-
"aria-required":
|
|
18752
|
+
"aria-required": ct,
|
|
18753
18753
|
"aria-selected": ["true", "false", "undefined"],
|
|
18754
18754
|
"aria-setsize": null,
|
|
18755
18755
|
"aria-sort": ["ascending", "descending", "none", "other"],
|
|
@@ -19040,7 +19040,7 @@ const bQ = /* @__PURE__ */ cd.of((r, e, t) => {
|
|
|
19040
19040
|
return null;
|
|
19041
19041
|
});
|
|
19042
19042
|
function Ql(r) {
|
|
19043
|
-
return new
|
|
19043
|
+
return new pt(ip, r, [], "markdown");
|
|
19044
19044
|
}
|
|
19045
19045
|
const xQ = /* @__PURE__ */ Ql(np), wQ = /* @__PURE__ */ np.configure([G1, F1, U1, H1, {
|
|
19046
19046
|
props: [
|
|
@@ -20020,7 +20020,7 @@ function ib(r) {
|
|
|
20020
20020
|
{ name: "global", shortName: "g" }
|
|
20021
20021
|
], a = $l("");
|
|
20022
20022
|
function l(h) {
|
|
20023
|
-
h.setOption("disableInput", !0), h.setOption("showCursorWhenSelecting", !1), r.signal(h, "vim-mode-change", { mode: "normal" }), h.on("cursorActivity", Jl),
|
|
20023
|
+
h.setOption("disableInput", !0), h.setOption("showCursorWhenSelecting", !1), r.signal(h, "vim-mode-change", { mode: "normal" }), h.on("cursorActivity", Jl), vt(h), r.on(h.getInputField(), "paste", u(h));
|
|
20024
20024
|
}
|
|
20025
20025
|
function f(h) {
|
|
20026
20026
|
h.setOption("disableInput", !1), h.off("cursorActivity", Jl), r.off(h.getInputField(), "paste", u(h)), h.state.vim = null, Cr && clearTimeout(Cr);
|
|
@@ -20137,7 +20137,7 @@ function ib(r) {
|
|
|
20137
20137
|
}
|
|
20138
20138
|
if (Z) {
|
|
20139
20139
|
var T = Z.find();
|
|
20140
|
-
T && !
|
|
20140
|
+
T && !St(T, P) && R(P);
|
|
20141
20141
|
} else
|
|
20142
20142
|
R(P);
|
|
20143
20143
|
R(w), d = c, O = c - h + 1, O < 0 && (O = 0);
|
|
@@ -20148,7 +20148,7 @@ function ib(r) {
|
|
|
20148
20148
|
if (w && !w.find()) {
|
|
20149
20149
|
var M = P > 0 ? 1 : -1, Z, R = b.getCursor();
|
|
20150
20150
|
do
|
|
20151
|
-
if (c += M, w = g[(h + c) % h], w && (Z = w.find()) && !
|
|
20151
|
+
if (c += M, w = g[(h + c) % h], w && (Z = w.find()) && !St(R, Z))
|
|
20152
20152
|
break;
|
|
20153
20153
|
while (c < d && c > O);
|
|
20154
20154
|
}
|
|
@@ -20201,7 +20201,7 @@ function ib(r) {
|
|
|
20201
20201
|
}
|
|
20202
20202
|
}
|
|
20203
20203
|
}
|
|
20204
|
-
function
|
|
20204
|
+
function vt(h) {
|
|
20205
20205
|
return h.state.vim || (h.state.vim = {
|
|
20206
20206
|
inputState: new Cl(),
|
|
20207
20207
|
// Vim's input state that triggered the last edit, used to repeat
|
|
@@ -20299,7 +20299,7 @@ function ib(r) {
|
|
|
20299
20299
|
return N;
|
|
20300
20300
|
},
|
|
20301
20301
|
// Testing hook.
|
|
20302
|
-
maybeInitVimState_:
|
|
20302
|
+
maybeInitVimState_: vt,
|
|
20303
20303
|
suppressErrorLogging: !1,
|
|
20304
20304
|
InsertModeKey: Wi,
|
|
20305
20305
|
/**@type {(lhs: string, rhs: string, ctx: string) => void} */
|
|
@@ -20371,7 +20371,7 @@ function ib(r) {
|
|
|
20371
20371
|
*/
|
|
20372
20372
|
/**@type {(cm_: CodeMirror, key: string, origin?: string| undefined) => (() => boolean|undefined) | undefined} */
|
|
20373
20373
|
findKey: function(h, c, d) {
|
|
20374
|
-
var O =
|
|
20374
|
+
var O = vt(h), g = (
|
|
20375
20375
|
/**@type {CodeMirrorV}*/
|
|
20376
20376
|
h
|
|
20377
20377
|
);
|
|
@@ -20463,7 +20463,7 @@ function ib(r) {
|
|
|
20463
20463
|
if (typeof P != "object") return;
|
|
20464
20464
|
P.type == "keyToKey" ? di(g, P.toKeys, P) : Ai.processCommand(g, O, P);
|
|
20465
20465
|
} catch (w) {
|
|
20466
|
-
throw g.state.vim = void 0,
|
|
20466
|
+
throw g.state.vim = void 0, vt(g), be.suppressErrorLogging || console.log(w), w;
|
|
20467
20467
|
}
|
|
20468
20468
|
return !0;
|
|
20469
20469
|
});
|
|
@@ -20481,7 +20481,7 @@ function ib(r) {
|
|
|
20481
20481
|
defineRegister: bp,
|
|
20482
20482
|
exitVisualMode: Dt,
|
|
20483
20483
|
exitInsertMode: pi
|
|
20484
|
-
}, Ve = [],
|
|
20484
|
+
}, Ve = [], yt = !1, ke;
|
|
20485
20485
|
function qi(h) {
|
|
20486
20486
|
if (!ke) throw new Error("No prompt to send key to");
|
|
20487
20487
|
if (h[0] == "<") {
|
|
@@ -20514,13 +20514,13 @@ function ib(r) {
|
|
|
20514
20514
|
}
|
|
20515
20515
|
}
|
|
20516
20516
|
function di(h, c, d) {
|
|
20517
|
-
var O =
|
|
20517
|
+
var O = yt;
|
|
20518
20518
|
if (d) {
|
|
20519
20519
|
if (Ve.indexOf(d) != -1) return;
|
|
20520
|
-
Ve.push(d),
|
|
20520
|
+
Ve.push(d), yt = d.noremap != !1;
|
|
20521
20521
|
}
|
|
20522
20522
|
try {
|
|
20523
|
-
for (var g =
|
|
20523
|
+
for (var g = vt(h), m = /<(?:[CSMA]-)*\w+>|./gi, S; S = m.exec(c); ) {
|
|
20524
20524
|
var k = S[0], b = g.insertMode;
|
|
20525
20525
|
if (ke) {
|
|
20526
20526
|
qi(k);
|
|
@@ -20544,7 +20544,7 @@ function ib(r) {
|
|
|
20544
20544
|
}
|
|
20545
20545
|
}
|
|
20546
20546
|
} finally {
|
|
20547
|
-
if (Ve.pop(),
|
|
20547
|
+
if (Ve.pop(), yt = Ve.length ? O : !1, !Ve.length && ke) {
|
|
20548
20548
|
var Z = ke;
|
|
20549
20549
|
ke = null, Qn(h, Z);
|
|
20550
20550
|
}
|
|
@@ -21040,15 +21040,15 @@ function ib(r) {
|
|
|
21040
21040
|
var Ce, Te, de, ee, we;
|
|
21041
21041
|
if (c.visualMode) {
|
|
21042
21042
|
Ce = Je(b.head, b.anchor), Te = Oi(b.head, b.anchor), de = c.visualLine || S.linewise, ee = c.visualBlock ? "block" : de ? "line" : "char";
|
|
21043
|
-
var
|
|
21043
|
+
var kt = t(h, Ce, Te);
|
|
21044
21044
|
if (we = Ys(h, {
|
|
21045
|
-
anchor:
|
|
21046
|
-
head:
|
|
21045
|
+
anchor: kt.start,
|
|
21046
|
+
head: kt.end
|
|
21047
21047
|
}, ee), de) {
|
|
21048
21048
|
var De = we.ranges;
|
|
21049
21049
|
if (ee == "block")
|
|
21050
|
-
for (var
|
|
21051
|
-
De[
|
|
21050
|
+
for (var Qt = 0; Qt < De.length; Qt++)
|
|
21051
|
+
De[Qt].head.ch = je(h, De[Qt].head.line);
|
|
21052
21052
|
else ee == "line" && (De[0].head = new e(De[0].head.line + 1, 0));
|
|
21053
21053
|
}
|
|
21054
21054
|
} else {
|
|
@@ -21057,10 +21057,10 @@ function ib(r) {
|
|
|
21057
21057
|
Ce = Te, Te = Mi;
|
|
21058
21058
|
}
|
|
21059
21059
|
de = g.linewise || S.linewise, de ? _p(h, Ce, Te) : g.forward && Bp(h, Ce, Te), ee = "char";
|
|
21060
|
-
var Og = !g.inclusive || de,
|
|
21060
|
+
var Og = !g.inclusive || de, kt = t(h, Ce, Te);
|
|
21061
21061
|
we = Ys(h, {
|
|
21062
|
-
anchor:
|
|
21063
|
-
head:
|
|
21062
|
+
anchor: kt.start,
|
|
21063
|
+
head: kt.end
|
|
21064
21064
|
}, ee, Og);
|
|
21065
21065
|
}
|
|
21066
21066
|
h.setSelections(we.ranges, we.primary), c.lastMotion = null, S.repeat = B, S.registerName = k, S.linewise = de;
|
|
@@ -21159,7 +21159,7 @@ function ib(r) {
|
|
|
21159
21159
|
Ae(b, S)
|
|
21160
21160
|
) : Ae(S, b);
|
|
21161
21161
|
if (!P && !(d.linewise && b.line == S.line)) {
|
|
21162
|
-
var w =
|
|
21162
|
+
var w = St(S, g), M = d.forward ? (
|
|
21163
21163
|
// @ts-ignore
|
|
21164
21164
|
Zl(S, b, g)
|
|
21165
21165
|
) : (
|
|
@@ -21687,17 +21687,17 @@ function ib(r) {
|
|
|
21687
21687
|
if (O) {
|
|
21688
21688
|
if (c.matchIndent) {
|
|
21689
21689
|
var S = h.getOption("tabSize"), k = function(De) {
|
|
21690
|
-
var
|
|
21691
|
-
return
|
|
21690
|
+
var Qt = De.split(" ").length - 1, Mi = De.split(" ").length - 1;
|
|
21691
|
+
return Qt * S + Mi * 1;
|
|
21692
21692
|
}, b = h.getLine(h.getCursor().line), P = k(b.match(/^\s*/)[0]), w = O.replace(/\n$/, ""), M = O !== w, Z = k(O.match(/^\s*/)[0]), O = w.replace(/^\s*/gm, function(De) {
|
|
21693
|
-
var
|
|
21694
|
-
if (
|
|
21693
|
+
var Qt = P + (k(De) - Z);
|
|
21694
|
+
if (Qt < 0)
|
|
21695
21695
|
return "";
|
|
21696
21696
|
if (h.getOption("indentWithTabs")) {
|
|
21697
|
-
var Mi = Math.floor(
|
|
21697
|
+
var Mi = Math.floor(Qt / S);
|
|
21698
21698
|
return Array(Mi + 1).join(" ");
|
|
21699
21699
|
} else
|
|
21700
|
-
return Array(
|
|
21700
|
+
return Array(Qt + 1).join(" ");
|
|
21701
21701
|
});
|
|
21702
21702
|
O += M ? `
|
|
21703
21703
|
` : "";
|
|
@@ -21850,7 +21850,7 @@ function ib(r) {
|
|
|
21850
21850
|
}
|
|
21851
21851
|
function Cp(h, c, d, O) {
|
|
21852
21852
|
O.operator && (d = "operatorPending");
|
|
21853
|
-
for (var g, m = [], S = [], k =
|
|
21853
|
+
for (var g, m = [], S = [], k = yt ? c.length - s : 0, b = k; b < c.length; b++) {
|
|
21854
21854
|
var P = c[b];
|
|
21855
21855
|
d == "insert" && P.context != "insert" || P.context && P.context != d || O.operator && P.type == "action" || !(g = Tp(h, P.keys)) || (g == "partial" && m.push(P), g == "full" && S.push(P));
|
|
21856
21856
|
}
|
|
@@ -21895,7 +21895,7 @@ function ib(r) {
|
|
|
21895
21895
|
function xe(h) {
|
|
21896
21896
|
return new e(h.line, h.ch);
|
|
21897
21897
|
}
|
|
21898
|
-
function
|
|
21898
|
+
function St(h, c) {
|
|
21899
21899
|
return h.ch == c.ch && h.line == c.line;
|
|
21900
21900
|
}
|
|
21901
21901
|
function Ae(h, c) {
|
|
@@ -21925,7 +21925,7 @@ function ib(r) {
|
|
|
21925
21925
|
h.setCursor(new e(c, O)), h.replaceRange(g, h.getCursor());
|
|
21926
21926
|
}
|
|
21927
21927
|
function Rl(h, c) {
|
|
21928
|
-
var d = [], O = h.listSelections(), g = xe(h.clipPos(c)), m = !
|
|
21928
|
+
var d = [], O = h.listSelections(), g = xe(h.clipPos(c)), m = !St(c, g), S = h.getCursor("head"), k = Rp(O, S), b = St(O[k].head, O[k].anchor), P = O.length - 1, w = P - k > k ? P : 0, M = O[w].anchor, Z = Math.min(M.line, g.line), R = Math.max(M.line, g.line), T = M.ch, B = g.ch, _ = O[w].head.ch - T, H = B - T;
|
|
21929
21929
|
_ > 0 && H <= 0 ? (T++, m || B--) : _ < 0 && H >= 0 ? (T--, b || B++) : _ < 0 && H == -1 && (T--, B++);
|
|
21930
21930
|
for (var q = Z; q <= R; q++) {
|
|
21931
21931
|
var te = { anchor: new e(q, T), head: new e(q, B) };
|
|
@@ -21942,7 +21942,7 @@ function ib(r) {
|
|
|
21942
21942
|
}
|
|
21943
21943
|
function Rp(h, c, d) {
|
|
21944
21944
|
for (var O = 0; O < h.length; O++) {
|
|
21945
|
-
var g =
|
|
21945
|
+
var g = St(h[O].anchor, c), m = St(h[O].head, c);
|
|
21946
21946
|
if (g || m)
|
|
21947
21947
|
return O;
|
|
21948
21948
|
}
|
|
@@ -22080,7 +22080,7 @@ function ib(r) {
|
|
|
22080
22080
|
return !g || !g.open || !g.close ? { start: O, end: O } : d ? { start: g.open.from, end: g.close.to } : { start: g.open.to, end: g.close.from };
|
|
22081
22081
|
}
|
|
22082
22082
|
function El(h, c, d) {
|
|
22083
|
-
|
|
22083
|
+
St(c, d) || N.jumpList.add(h, c, d);
|
|
22084
22084
|
}
|
|
22085
22085
|
function Bl(h, c) {
|
|
22086
22086
|
N.lastCharacterSearch.increment = h, N.lastCharacterSearch.forward = c.forward, N.lastCharacterSearch.selectedCharacter = c.selectedCharacter;
|
|
@@ -22671,9 +22671,9 @@ function ib(r) {
|
|
|
22671
22671
|
O === void 0 && (O = 1);
|
|
22672
22672
|
for (var g = h.getCursor(), m = h.getSearchCursor(d, g), S = 0; S < O; S++) {
|
|
22673
22673
|
var k = m.find(c);
|
|
22674
|
-
if (S == 0 && k &&
|
|
22674
|
+
if (S == 0 && k && St(m.from(), g)) {
|
|
22675
22675
|
var b = c ? m.from() : m.to();
|
|
22676
|
-
k = m.find(c), k && !k[0] &&
|
|
22676
|
+
k = m.find(c), k && !k[0] && St(m.from(), b) && h.getLine(b.line).length == b.ch && (k = m.find(c));
|
|
22677
22677
|
}
|
|
22678
22678
|
if (!k && (m = h.getSearchCursor(
|
|
22679
22679
|
d,
|
|
@@ -22689,7 +22689,7 @@ function ib(r) {
|
|
|
22689
22689
|
return h.operation(function() {
|
|
22690
22690
|
O === void 0 && (O = 1);
|
|
22691
22691
|
var m = h.getCursor(), S = h.getSearchCursor(d, m), k = S.find(!c);
|
|
22692
|
-
!g.visualMode && k &&
|
|
22692
|
+
!g.visualMode && k && St(S.from(), m) && S.find(!c);
|
|
22693
22693
|
for (var b = 0; b < O; b++)
|
|
22694
22694
|
if (k = S.find(c), !k && (S = h.getSearchCursor(
|
|
22695
22695
|
d,
|
|
@@ -23080,10 +23080,10 @@ mark line col
|
|
|
23080
23080
|
return "Invalid arguments";
|
|
23081
23081
|
if (ee[1]) {
|
|
23082
23082
|
O = ee[1].indexOf("i") != -1, g = ee[1].indexOf("u") != -1;
|
|
23083
|
-
var we = ee[1].indexOf("d") != -1 || ee[1].indexOf("n") != -1,
|
|
23084
|
-
if (Number(we) + Number(
|
|
23083
|
+
var we = ee[1].indexOf("d") != -1 || ee[1].indexOf("n") != -1, kt = ee[1].indexOf("x") != -1, De = ee[1].indexOf("o") != -1;
|
|
23084
|
+
if (Number(we) + Number(kt) + Number(De) > 1)
|
|
23085
23085
|
return "Invalid arguments";
|
|
23086
|
-
m = we && "decimal" ||
|
|
23086
|
+
m = we && "decimal" || kt && "hex" || De && "octal";
|
|
23087
23087
|
}
|
|
23088
23088
|
ee[2] && (S = new RegExp(ee[2].substr(1, ee[2].length - 2), O ? "i" : ""));
|
|
23089
23089
|
}
|
|
@@ -23111,11 +23111,11 @@ mark line col
|
|
|
23111
23111
|
we = de, de = ee, ee = we;
|
|
23112
23112
|
}
|
|
23113
23113
|
O && (de = de.toLowerCase(), ee = ee.toLowerCase());
|
|
23114
|
-
var
|
|
23115
|
-
if (!
|
|
23114
|
+
var kt = T && T.exec(de), De = T && T.exec(ee);
|
|
23115
|
+
if (!kt || !De)
|
|
23116
23116
|
return de < ee ? -1 : 1;
|
|
23117
|
-
var
|
|
23118
|
-
return
|
|
23117
|
+
var Qt = parseInt((kt[1] + kt[2]).toLowerCase(), B), Mi = parseInt((De[1] + De[2]).toLowerCase(), B);
|
|
23118
|
+
return Qt - Mi;
|
|
23119
23119
|
}
|
|
23120
23120
|
function ne(de, ee) {
|
|
23121
23121
|
if (d) {
|
|
@@ -23345,7 +23345,7 @@ mark line col
|
|
|
23345
23345
|
}
|
|
23346
23346
|
function _() {
|
|
23347
23347
|
var oe = M && xe(m.to()), ne = m.findNext();
|
|
23348
|
-
return ne && !ne[0] && oe &&
|
|
23348
|
+
return ne && !ne[0] && oe && St(m.from(), oe) && (ne = m.findNext()), ne && w++, ne;
|
|
23349
23349
|
}
|
|
23350
23350
|
function H() {
|
|
23351
23351
|
for (; _() && rg(m.from(), O, g); )
|
|
@@ -23580,7 +23580,7 @@ mark line col
|
|
|
23580
23580
|
}), c;
|
|
23581
23581
|
}
|
|
23582
23582
|
function dg(h, c, d) {
|
|
23583
|
-
var m =
|
|
23583
|
+
var m = vt(h), O = (
|
|
23584
23584
|
/**@type {CodeMirrorV}*/
|
|
23585
23585
|
h
|
|
23586
23586
|
), g = !1, m = be.maybeInitVimState_(O), S = m.visualBlock || m.wasInVisualBlock;
|
|
@@ -23610,13 +23610,13 @@ mark line col
|
|
|
23610
23610
|
}
|
|
23611
23611
|
return It(), be;
|
|
23612
23612
|
}
|
|
23613
|
-
function
|
|
23613
|
+
function ft(r, e) {
|
|
23614
23614
|
var t = e.ch, i = e.line + 1;
|
|
23615
23615
|
i < 1 && (i = 1, t = 0), i > r.lines && (i = r.lines, t = Number.MAX_VALUE);
|
|
23616
23616
|
var n = r.line(i);
|
|
23617
23617
|
return Math.min(n.from + Math.max(0, t), n.to);
|
|
23618
23618
|
}
|
|
23619
|
-
function
|
|
23619
|
+
function bt(r, e) {
|
|
23620
23620
|
let t = r.lineAt(e);
|
|
23621
23621
|
return { line: t.number - 1, ch: e - t.from };
|
|
23622
23622
|
}
|
|
@@ -23713,13 +23713,13 @@ class se {
|
|
|
23713
23713
|
Op(this, e, t, i);
|
|
23714
23714
|
}
|
|
23715
23715
|
indexFromPos(e) {
|
|
23716
|
-
return
|
|
23716
|
+
return ft(this.cm6.state.doc, e);
|
|
23717
23717
|
}
|
|
23718
23718
|
posFromIndex(e) {
|
|
23719
|
-
return
|
|
23719
|
+
return bt(this.cm6.state.doc, e);
|
|
23720
23720
|
}
|
|
23721
23721
|
foldCode(e) {
|
|
23722
|
-
let t = this.cm6, i = t.state.selection.ranges, n = this.cm6.state.doc, s =
|
|
23722
|
+
let t = this.cm6, i = t.state.selection.ranges, n = this.cm6.state.doc, s = ft(n, e), o = L.create([L.range(s, s)], 0).ranges;
|
|
23723
23723
|
t.state.selection.ranges = o, Xv(t), t.state.selection.ranges = i;
|
|
23724
23724
|
}
|
|
23725
23725
|
firstLine() {
|
|
@@ -23733,7 +23733,7 @@ class se {
|
|
|
23733
23733
|
}
|
|
23734
23734
|
setCursor(e, t) {
|
|
23735
23735
|
typeof e == "object" && (t = e.ch, e = e.line);
|
|
23736
|
-
var i =
|
|
23736
|
+
var i = ft(this.cm6.state.doc, { line: e, ch: t || 0 });
|
|
23737
23737
|
this.cm6.dispatch({ selection: { anchor: i } }, { scrollIntoView: !this.curOp }), this.curOp && !this.curOp.isVimOp && this.onBeforeEndOperation();
|
|
23738
23738
|
}
|
|
23739
23739
|
getCursor(e) {
|
|
@@ -23745,13 +23745,13 @@ class se {
|
|
|
23745
23745
|
listSelections() {
|
|
23746
23746
|
var e = this.cm6.state.doc;
|
|
23747
23747
|
return this.cm6.state.selection.ranges.map((t) => ({
|
|
23748
|
-
anchor:
|
|
23749
|
-
head:
|
|
23748
|
+
anchor: bt(e, t.anchor),
|
|
23749
|
+
head: bt(e, t.head)
|
|
23750
23750
|
}));
|
|
23751
23751
|
}
|
|
23752
23752
|
setSelections(e, t) {
|
|
23753
23753
|
var i = this.cm6.state.doc, n = e.map((s) => {
|
|
23754
|
-
var o =
|
|
23754
|
+
var o = ft(i, s.head), a = ft(i, s.anchor);
|
|
23755
23755
|
return o == a ? L.cursor(o, 1) : L.range(a, o);
|
|
23756
23756
|
});
|
|
23757
23757
|
this.cm6.dispatch({
|
|
@@ -23783,11 +23783,11 @@ class se {
|
|
|
23783
23783
|
}
|
|
23784
23784
|
getRange(e, t) {
|
|
23785
23785
|
var i = this.cm6.state.doc;
|
|
23786
|
-
return this.cm6.state.sliceDoc(
|
|
23786
|
+
return this.cm6.state.sliceDoc(ft(i, e), ft(i, t));
|
|
23787
23787
|
}
|
|
23788
23788
|
replaceRange(e, t, i, n) {
|
|
23789
23789
|
i || (i = t);
|
|
23790
|
-
var s = this.cm6.state.doc, o =
|
|
23790
|
+
var s = this.cm6.state.doc, o = ft(s, t), a = ft(s, i);
|
|
23791
23791
|
zr(this, { changes: { from: o, to: a, insert: e } });
|
|
23792
23792
|
}
|
|
23793
23793
|
replaceSelection(e) {
|
|
@@ -23837,8 +23837,8 @@ class se {
|
|
|
23837
23837
|
return this.cm6.defaultLineHeight;
|
|
23838
23838
|
}
|
|
23839
23839
|
findMatchingBracket(e, t) {
|
|
23840
|
-
var i = this.cm6.state, n =
|
|
23841
|
-
return s && s.end ? { to:
|
|
23840
|
+
var i = this.cm6.state, n = ft(i.doc, e), s = Qi(i, n + 1, -1);
|
|
23841
|
+
return s && s.end ? { to: bt(i.doc, s.end.from) } : (s = Qi(i, n, 1), s && s.end ? { to: bt(i.doc, s.end.from) } : { to: void 0 });
|
|
23842
23842
|
}
|
|
23843
23843
|
scanForBracket(e, t, i, n) {
|
|
23844
23844
|
return lb(this, e, t, i, n);
|
|
@@ -23891,7 +23891,7 @@ class se {
|
|
|
23891
23891
|
getSearchCursor(e, t) {
|
|
23892
23892
|
var i = this, n = null, s = null, o = !1;
|
|
23893
23893
|
t.ch == null && (t.ch = Number.MAX_VALUE);
|
|
23894
|
-
var a =
|
|
23894
|
+
var a = ft(i.cm6.state.doc, t), l = e.source.replace(/(\\.|{(?:\d+(?:,\d*)?|,\d+)})|[{}]/g, function(y, Q) {
|
|
23895
23895
|
return Q || "\\" + y;
|
|
23896
23896
|
});
|
|
23897
23897
|
function f(y, Q = 0, $ = y.length) {
|
|
@@ -23934,8 +23934,8 @@ class se {
|
|
|
23934
23934
|
n = u($);
|
|
23935
23935
|
}
|
|
23936
23936
|
return s = n && {
|
|
23937
|
-
from:
|
|
23938
|
-
to:
|
|
23937
|
+
from: bt(Q, n.from),
|
|
23938
|
+
to: bt(Q, n.to),
|
|
23939
23939
|
match: n.match
|
|
23940
23940
|
}, o = n ? n.from == n.to : !1, n && n.match;
|
|
23941
23941
|
},
|
|
@@ -23948,7 +23948,7 @@ class se {
|
|
|
23948
23948
|
replace: function(y) {
|
|
23949
23949
|
n && (zr(i, {
|
|
23950
23950
|
changes: { from: n.from, to: n.to, insert: y }
|
|
23951
|
-
}), n.to = n.from + y.length, s && (s.to =
|
|
23951
|
+
}), n.to = n.from + y.length, s && (s.to = bt(i.cm6.state.doc, n.to)));
|
|
23952
23952
|
},
|
|
23953
23953
|
get match() {
|
|
23954
23954
|
return s && s.match;
|
|
@@ -23959,20 +23959,20 @@ class se {
|
|
|
23959
23959
|
let { cm6: s } = this;
|
|
23960
23960
|
const o = s.state.doc;
|
|
23961
23961
|
let a = i == "page" ? s.dom.clientHeight : 0;
|
|
23962
|
-
const l =
|
|
23962
|
+
const l = ft(o, e);
|
|
23963
23963
|
let f = L.cursor(l, 1, void 0, n), u = Math.round(Math.abs(t));
|
|
23964
23964
|
for (let v = 0; v < u; v++)
|
|
23965
23965
|
i == "page" ? f = s.moveVertically(f, t > 0, a) : i == "line" && (f = s.moveVertically(f, t > 0));
|
|
23966
|
-
let p =
|
|
23966
|
+
let p = bt(o, f.head);
|
|
23967
23967
|
return (t < 0 && f.head == 0 && n != 0 && e.line == 0 && e.ch != 0 || t > 0 && f.head == o.length && p.ch != n && e.line == p.line) && (p.hitSide = !0), p;
|
|
23968
23968
|
}
|
|
23969
23969
|
charCoords(e, t) {
|
|
23970
|
-
var i = this.cm6.contentDOM.getBoundingClientRect(), n =
|
|
23970
|
+
var i = this.cm6.contentDOM.getBoundingClientRect(), n = ft(this.cm6.state.doc, e), s = this.cm6.coordsAtPos(n), o = -i.top;
|
|
23971
23971
|
return { left: (s?.left || 0) - i.left, top: (s?.top || 0) + o, bottom: (s?.bottom || 0) + o };
|
|
23972
23972
|
}
|
|
23973
23973
|
coordsChar(e, t) {
|
|
23974
23974
|
var i = this.cm6.contentDOM.getBoundingClientRect(), n = this.cm6.posAtCoords({ x: e.left + i.left, y: e.top + i.top }) || 0;
|
|
23975
|
-
return
|
|
23975
|
+
return bt(this.cm6.state.doc, n);
|
|
23976
23976
|
}
|
|
23977
23977
|
getScrollInfo() {
|
|
23978
23978
|
var e = this.cm6.scrollDOM;
|
|
@@ -24268,8 +24268,8 @@ function cb(r, e) {
|
|
|
24268
24268
|
}
|
|
24269
24269
|
function wf(r, e) {
|
|
24270
24270
|
return {
|
|
24271
|
-
from:
|
|
24272
|
-
to:
|
|
24271
|
+
from: bt(r, e.from),
|
|
24272
|
+
to: bt(r, e.to)
|
|
24273
24273
|
};
|
|
24274
24274
|
}
|
|
24275
24275
|
class fb {
|
|
@@ -24450,7 +24450,7 @@ function yb(r, e, t, i) {
|
|
|
24450
24450
|
return null;
|
|
24451
24451
|
}
|
|
24452
24452
|
var Sb = typeof navigator < "u" && /* @__PURE__ */ /linux/i.test(navigator.platform) && /* @__PURE__ */ / Gecko\/\d+/.exec(navigator.userAgent);
|
|
24453
|
-
const
|
|
24453
|
+
const nt = /* @__PURE__ */ ib(se), kb = 250, Qb = /* @__PURE__ */ G.baseTheme({
|
|
24454
24454
|
".cm-vimMode .cm-cursorLayer:not(.cm-vimCursorLayer)": {
|
|
24455
24455
|
display: "none"
|
|
24456
24456
|
},
|
|
@@ -24467,11 +24467,11 @@ const bt = /* @__PURE__ */ ib(se), kb = 250, Qb = /* @__PURE__ */ G.baseTheme({
|
|
|
24467
24467
|
},
|
|
24468
24468
|
"&light .cm-searchMatch": { backgroundColor: "#ffff0054" },
|
|
24469
24469
|
"&dark .cm-searchMatch": { backgroundColor: "#00ffff8a" }
|
|
24470
|
-
}), bb = /* @__PURE__ */
|
|
24470
|
+
}), bb = /* @__PURE__ */ gt.fromClass(class {
|
|
24471
24471
|
constructor(r) {
|
|
24472
24472
|
this.status = "", this.query = null, this.decorations = re.none, this.waitForCopy = !1, this.lastKeydown = "", this.useNextTextInput = !1, this.compositionText = "", this.view = r;
|
|
24473
24473
|
const e = this.cm = new se(r);
|
|
24474
|
-
|
|
24474
|
+
nt.enterVimMode(this.cm), this.view.cm = this.cm, this.cm.state.vimPlugin = this, this.blockCursor = new Ob(r, e), this.updateClass(), this.cm.on("vim-command-done", () => {
|
|
24475
24475
|
e.state.vim && (e.state.vim.status = ""), this.blockCursor.scheduleRedraw(), this.updateStatus();
|
|
24476
24476
|
}), this.cm.on("vim-mode-change", (t) => {
|
|
24477
24477
|
e.state.vim && (e.state.vim.mode = t.mode, t.subMode && (e.state.vim.mode += " block"), e.state.vim.status = "", this.blockCursor.scheduleRedraw(), this.updateClass(), this.updateStatus());
|
|
@@ -24480,7 +24480,7 @@ const bt = /* @__PURE__ */ ib(se), kb = 250, Qb = /* @__PURE__ */ G.baseTheme({
|
|
|
24480
24480
|
effects: yp.of(!!this.cm.state.dialog)
|
|
24481
24481
|
});
|
|
24482
24482
|
}), this.dom = document.createElement("span"), this.spacer = document.createElement("span"), this.spacer.style.flex = "1", this.statusButton = document.createElement("span"), this.statusButton.onclick = (t) => {
|
|
24483
|
-
|
|
24483
|
+
nt.handleKey(this.cm, "<Esc>", "user"), this.cm.focus();
|
|
24484
24484
|
}, this.statusButton.style.cssText = "cursor: pointer";
|
|
24485
24485
|
}
|
|
24486
24486
|
update(r) {
|
|
@@ -24517,7 +24517,7 @@ const bt = /* @__PURE__ */ ib(se), kb = 250, Qb = /* @__PURE__ */ G.baseTheme({
|
|
|
24517
24517
|
this.dom.textContent = e.status, r.appendChild(this.dom);
|
|
24518
24518
|
}
|
|
24519
24519
|
destroy() {
|
|
24520
|
-
|
|
24520
|
+
nt.leaveVimMode(this.cm), this.updateClass(), this.blockCursor.destroy(), delete this.view.cm;
|
|
24521
24521
|
}
|
|
24522
24522
|
highlight(r) {
|
|
24523
24523
|
if (this.query = r, !r)
|
|
@@ -24538,7 +24538,7 @@ const bt = /* @__PURE__ */ ib(se), kb = 250, Qb = /* @__PURE__ */ G.baseTheme({
|
|
|
24538
24538
|
let i = t.state.vim;
|
|
24539
24539
|
if (!i)
|
|
24540
24540
|
return;
|
|
24541
|
-
const n =
|
|
24541
|
+
const n = nt.vimKeyFromEvent(r, i);
|
|
24542
24542
|
if (se.signal(this.cm, "inputEvent", { type: "handleKey", key: n }), !n)
|
|
24543
24543
|
return;
|
|
24544
24544
|
if (n == "<Esc>" && !i.insertMode && !i.visualMode && this.query) {
|
|
@@ -24548,8 +24548,8 @@ const bt = /* @__PURE__ */ ib(se), kb = 250, Qb = /* @__PURE__ */ G.baseTheme({
|
|
|
24548
24548
|
if (n === "<C-c>" && !se.isMac && t.somethingSelected())
|
|
24549
24549
|
return this.waitForCopy = !0, !0;
|
|
24550
24550
|
i.status = (i.status || "") + n;
|
|
24551
|
-
let o =
|
|
24552
|
-
return i =
|
|
24551
|
+
let o = nt.multiSelectHandleKey(t, n, "user");
|
|
24552
|
+
return i = nt.maybeInitVimState_(t), !o && i.insertMode && t.state.overwrite && (r.key && r.key.length == 1 && !/\n/.test(r.key) ? (o = !0, t.overWriteSelection(r.key)) : r.key == "Backspace" && (o = !0, se.commands.cursorCharLeft(t))), o && (se.signal(this.cm, "vim-keypress", n), r.preventDefault(), r.stopPropagation(), this.blockCursor.scheduleRedraw()), this.updateStatus(), !!o;
|
|
24553
24553
|
}
|
|
24554
24554
|
}, {
|
|
24555
24555
|
eventHandlers: {
|
|
@@ -24557,7 +24557,7 @@ const bt = /* @__PURE__ */ ib(se), kb = 250, Qb = /* @__PURE__ */ G.baseTheme({
|
|
|
24557
24557
|
this.waitForCopy && (this.waitForCopy = !1, Promise.resolve().then(() => {
|
|
24558
24558
|
var t = this.cm, i = t.state.vim;
|
|
24559
24559
|
i && (i.insertMode ? t.setSelection(t.getCursor(), t.getCursor()) : t.operation(() => {
|
|
24560
|
-
t.curOp && (t.curOp.isVimOp = !0),
|
|
24560
|
+
t.curOp && (t.curOp.isVimOp = !0), nt.handleKey(t, "<Esc>", "user");
|
|
24561
24561
|
}));
|
|
24562
24562
|
}));
|
|
24563
24563
|
},
|
|
@@ -24676,7 +24676,7 @@ function Ab() {
|
|
|
24676
24676
|
if (!$f) {
|
|
24677
24677
|
$f = !0;
|
|
24678
24678
|
try {
|
|
24679
|
-
|
|
24679
|
+
nt.defineMotion("hybridMoveByLines", (r, e, t, i) => {
|
|
24680
24680
|
const n = r.cm6;
|
|
24681
24681
|
if (!n) return e;
|
|
24682
24682
|
const s = t.forward ? 1 : -1, o = t.repeat || 1, l = n.state.doc.lineAt(r.indexFromPos(e)).number + s * o;
|
|
@@ -24689,7 +24689,7 @@ function Ab() {
|
|
|
24689
24689
|
(u === void 0 || u < 0) && (u = e.ch);
|
|
24690
24690
|
const p = Math.min(f.to, f.from + u);
|
|
24691
24691
|
return r.posFromIndex(p);
|
|
24692
|
-
}),
|
|
24692
|
+
}), nt.mapCommand("j", "motion", "hybridMoveByLines", { forward: !0, linewise: !0 }, {}), nt.mapCommand("k", "motion", "hybridMoveByLines", { forward: !1, linewise: !0 }, {}), nt.mapCommand("<Down>", "motion", "hybridMoveByLines", { forward: !0, linewise: !0 }, {}), nt.mapCommand("<Up>", "motion", "hybridMoveByLines", { forward: !1, linewise: !0 }, {});
|
|
24693
24693
|
} catch {
|
|
24694
24694
|
}
|
|
24695
24695
|
}
|
|
@@ -24859,7 +24859,7 @@ function Tf(r, e) {
|
|
|
24859
24859
|
userEvent: "select.hybrid-vertical"
|
|
24860
24860
|
}), !0);
|
|
24861
24861
|
}
|
|
24862
|
-
const Vb =
|
|
24862
|
+
const Vb = gt.fromClass(
|
|
24863
24863
|
class {
|
|
24864
24864
|
update(r) {
|
|
24865
24865
|
r.selectionSet && !r.transactions.some((e) => e.isUserEvent("select.hybrid-vertical")) && (Vr = null);
|
|
@@ -24981,7 +24981,7 @@ function Zf() {
|
|
|
24981
24981
|
}
|
|
24982
24982
|
])
|
|
24983
24983
|
),
|
|
24984
|
-
|
|
24984
|
+
gt.fromClass(_b, {
|
|
24985
24985
|
decorations: (r) => r.decorations
|
|
24986
24986
|
})
|
|
24987
24987
|
];
|
|
@@ -25096,6 +25096,8 @@ function Nb(r, e, t) {
|
|
|
25096
25096
|
extensions: X
|
|
25097
25097
|
}),
|
|
25098
25098
|
parent: r.value
|
|
25099
|
+
}), e.vimMode && nt.defineEx("write", "w", () => {
|
|
25100
|
+
t("save");
|
|
25099
25101
|
});
|
|
25100
25102
|
}), gi(
|
|
25101
25103
|
() => e.modelValue,
|
|
@@ -25127,9 +25129,11 @@ function Nb(r, e, t) {
|
|
|
25127
25129
|
), gi(
|
|
25128
25130
|
() => e.vimMode,
|
|
25129
25131
|
(X) => {
|
|
25130
|
-
i.value && i.value.dispatch({
|
|
25132
|
+
i.value && (i.value.dispatch({
|
|
25131
25133
|
effects: a.reconfigure(X ? Pf({ status: !1 }) : [])
|
|
25132
|
-
})
|
|
25134
|
+
}), X && nt.defineEx("write", "w", () => {
|
|
25135
|
+
t("save");
|
|
25136
|
+
}));
|
|
25133
25137
|
}
|
|
25134
25138
|
), gi(
|
|
25135
25139
|
() => e.lineNumbers,
|