@vscode/markdown-editor 0.0.2-123 → 0.0.2-125
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/README.md +6 -0
- package/dist/index.js +343 -332
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { O as v, S as T, a as _e, c as pi } from "./stringEdit-CVDbCUBY.js";
|
|
|
3
3
|
import gi from "katex";
|
|
4
4
|
import { observableValue as x, derived as I, transaction as K, Disposable as W, runOnChange as fn, autorun as M, constObservable as $n } from "@vscode/observables";
|
|
5
5
|
import { D as Fo, f as Vo, a as Wo, b as $o, c as Ho, d as _i, i as et } from "./config-BGeaJqWk.js";
|
|
6
|
-
import { e as
|
|
6
|
+
import { e as kh } from "./config-BGeaJqWk.js";
|
|
7
7
|
import { decodeHTMLAttribute as Hn } from "entities/decode";
|
|
8
8
|
import { decodeString as Ko } from "micromark-util-decode-string";
|
|
9
9
|
import { parse as zo, preprocess as qo, postprocess as Uo } from "micromark";
|
|
@@ -2012,7 +2012,7 @@ function Sr(n) {
|
|
|
2012
2012
|
let e = Un.get(n);
|
|
2013
2013
|
return e === void 0 && (e = Cr++, Un.set(n, e)), e;
|
|
2014
2014
|
}
|
|
2015
|
-
function
|
|
2015
|
+
function eh(n, e) {
|
|
2016
2016
|
let t = 0;
|
|
2017
2017
|
function s(i) {
|
|
2018
2018
|
const o = t, r = i.children;
|
|
@@ -2136,7 +2136,7 @@ function ut(n, e, t, s, i) {
|
|
|
2136
2136
|
return o;
|
|
2137
2137
|
}
|
|
2138
2138
|
const Fr = Symbol("NO_ACTIVE_BLOCKS");
|
|
2139
|
-
class
|
|
2139
|
+
class th {
|
|
2140
2140
|
_parser = new yr();
|
|
2141
2141
|
_sourceEditListeners = /* @__PURE__ */ new Set();
|
|
2142
2142
|
_sourceTextIds = /* @__PURE__ */ new WeakMap();
|
|
@@ -2359,10 +2359,12 @@ class eh {
|
|
|
2359
2359
|
* state anchored to the previous parse.
|
|
2360
2360
|
*/
|
|
2361
2361
|
replaceSourceText(e) {
|
|
2362
|
-
const t = this.sourceText.get(), s = pi(t.value, e.value), i = this.selection.get()
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2362
|
+
const t = this.sourceText.get(), s = pi(t.value, e.value), i = this.selection.get();
|
|
2363
|
+
let o = i;
|
|
2364
|
+
if (i) {
|
|
2365
|
+
const r = nt(s.mapOffset(nt(i.anchor, t.value.length)), e.value.length), c = nt(s.mapOffset(nt(i.active, t.value.length)), e.value.length);
|
|
2366
|
+
(r !== i.anchor || c !== i.active) && (o = new y(r, c));
|
|
2367
|
+
}
|
|
2366
2368
|
s.isEmpty || (this._pendingEdit = { baseText: t.value, newText: e.value, edit: s }), K((r) => {
|
|
2367
2369
|
this.pendingParagraph.set(void 0, r), s.isEmpty || this.sourceText.set(e, r), o !== i && this.selection.set(o, r);
|
|
2368
2370
|
});
|
|
@@ -4438,14 +4440,14 @@ class Ge {
|
|
|
4438
4440
|
_status;
|
|
4439
4441
|
_secondaryStatus;
|
|
4440
4442
|
constructor(e, t) {
|
|
4441
|
-
this.element = e, this.authoredLabel = t, this._icon = document.createElement("span"), this._icon.className = "md-rich-link-icon codicon", this._icon.setAttribute("aria-hidden", "true"), this._title = document.createElement("span"), this._title.className = "md-rich-link-title", this._detail = document.createElement("span"), this._detail.className = "md-rich-link-detail", this._reference = document.createElement("span"), this._reference.className = "md-rich-link-reference", this._changes =
|
|
4443
|
+
this.element = e, this.authoredLabel = t, this._icon = document.createElement("span"), this._icon.className = "md-rich-link-icon codicon", this._icon.setAttribute("aria-hidden", "true"), this._title = document.createElement("span"), this._title.className = "md-rich-link-title", this._detail = document.createElement("span"), this._detail.className = "md-rich-link-detail", this._reference = document.createElement("span"), this._reference.className = "md-rich-link-reference", this._changes = ca(), this._status = is("md-rich-link-primary-status"), this._secondaryStatus = is("md-rich-link-secondary-status"), this.authoredLabel.className = "md-rich-link-label", this.element.classList.add("md-rich-link"), this._setDefaultOrder();
|
|
4442
4444
|
}
|
|
4443
4445
|
update(e) {
|
|
4444
4446
|
if (!e) {
|
|
4445
4447
|
this._renderUnavailable();
|
|
4446
4448
|
return;
|
|
4447
4449
|
}
|
|
4448
|
-
this.element.classList.remove("md-rich-link-unavailable"), this.element.dataset.mdRichLinkKind = e.kind, this._icon.className = `md-rich-link-icon codicon codicon-${
|
|
4450
|
+
this.element.classList.remove("md-rich-link-unavailable"), this.element.dataset.mdRichLinkKind = e.kind, this._icon.className = `md-rich-link-icon codicon codicon-${ra[e.kind]}`, this.authoredLabel.hidden = !!e.title, this._title.textContent = e.title ?? "", this._title.hidden = !e.title, this._detail.textContent = e.detail ?? "", this._detail.hidden = !e.detail, this._reference.textContent = e.reference ?? "", this._reference.hidden = !e.reference, aa(this._changes, e.changes), os(this.element, e.kind, this._status, e.status, "mdRichLinkStatus"), os(this.element, e.kind, this._secondaryStatus, e.secondaryStatus, "mdRichLinkSecondaryStatus"), nn(this.element, ha(e) ? [this._status.root, this.authoredLabel, this._title, this._detail, this._reference, this._changes.root, this._secondaryStatus.root] : [this._icon, this.authoredLabel, this._title, this._detail, this._reference, this._changes.root, this._status.root, this._secondaryStatus.root]), e.ariaLabel ? this.element.setAttribute("aria-label", e.ariaLabel) : this.element.removeAttribute("aria-label"), e.tooltip ? this.element.title = e.tooltip : this.element.removeAttribute("title"), this._layout();
|
|
4449
4451
|
}
|
|
4450
4452
|
_renderUnavailable() {
|
|
4451
4453
|
this.element.classList.add("md-rich-link-unavailable"), delete this.element.dataset.mdRichLinkKind, delete this.element.dataset.mdRichLinkStatus, delete this.element.dataset.mdRichLinkSecondaryStatus, this._setDefaultOrder(), this._icon.className = "md-rich-link-icon codicon codicon-link", this.authoredLabel.hidden = !1, this._title.hidden = !0, this._detail.hidden = !0, this._reference.hidden = !0, Ji(this._changes), sn(this._status), sn(this._secondaryStatus), this.element.removeAttribute("aria-label"), this.element.removeAttribute("title"), this._layout();
|
|
@@ -4468,21 +4470,30 @@ class Ge {
|
|
|
4468
4470
|
}
|
|
4469
4471
|
}
|
|
4470
4472
|
function Zi(n) {
|
|
4471
|
-
const e = n.querySelectorAll(".md-rich-link");
|
|
4472
|
-
for (const
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
if (!s || !s.offsetWidth || !ia(t, s))
|
|
4473
|
+
const e = n.querySelectorAll(".md-rich-link"), t = [], s = /* @__PURE__ */ new Map();
|
|
4474
|
+
for (const i of e) {
|
|
4475
|
+
i.classList.remove("md-rich-link-line-end"), i.style.removeProperty("--md-rich-link-line-width");
|
|
4476
|
+
const o = i.closest(".md-paragraph, .md-heading, td, th");
|
|
4477
|
+
if (!o)
|
|
4477
4478
|
continue;
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4479
|
+
const r = o.closest("table") ? n : o, c = s.get(r) ?? 0;
|
|
4480
|
+
s.set(r, c + 1), (t[c] ??= []).push({ link: i, block: o });
|
|
4481
|
+
}
|
|
4482
|
+
for (const i of t)
|
|
4483
|
+
ia(i);
|
|
4484
|
+
}
|
|
4485
|
+
function ia(n) {
|
|
4486
|
+
const e = n.filter(({ link: s, block: i }) => i.offsetWidth && oa(s, i));
|
|
4487
|
+
for (const { link: s } of e)
|
|
4488
|
+
s.style.setProperty("--md-rich-link-title-width", "0px");
|
|
4489
|
+
const t = e.map(({ link: s, block: i }) => {
|
|
4490
|
+
const o = i.getBoundingClientRect(), r = getComputedStyle(i), c = parseFloat(r.borderLeftWidth) + parseFloat(r.paddingLeft), a = parseFloat(r.borderRightWidth) + parseFloat(r.paddingRight), l = parseFloat(r.width) + (r.boxSizing === "border-box" ? 0 : c + a), d = o.width / l, u = s.getBoundingClientRect(), h = o.left + c * d, f = o.right - a * d, m = (r.direction === "rtl" ? u.right - h : f - u.left) / d;
|
|
4491
|
+
return `${Math.max(0, Math.floor(m))}px`;
|
|
4492
|
+
});
|
|
4493
|
+
for (const [s, { link: i }] of e.entries())
|
|
4494
|
+
i.style.removeProperty("--md-rich-link-title-width"), i.style.setProperty("--md-rich-link-line-width", t[s]), i.classList.add("md-rich-link-line-end");
|
|
4484
4495
|
}
|
|
4485
|
-
function
|
|
4496
|
+
function oa(n, e) {
|
|
4486
4497
|
const t = document.createTreeWalker(e, NodeFilter.SHOW_TEXT | NodeFilter.SHOW_ELEMENT);
|
|
4487
4498
|
t.currentNode = n;
|
|
4488
4499
|
const s = document.createRange();
|
|
@@ -4508,7 +4519,7 @@ function ia(n, e) {
|
|
|
4508
4519
|
}
|
|
4509
4520
|
return !0;
|
|
4510
4521
|
}
|
|
4511
|
-
const
|
|
4522
|
+
const ra = {
|
|
4512
4523
|
resource: "link",
|
|
4513
4524
|
issue: "issues",
|
|
4514
4525
|
pullRequest: "git-pull-request",
|
|
@@ -4527,7 +4538,7 @@ function is(n) {
|
|
|
4527
4538
|
const s = document.createElement("span");
|
|
4528
4539
|
return s.className = "md-rich-link-status-label", e.append(t, s), { root: e, icon: t, label: s };
|
|
4529
4540
|
}
|
|
4530
|
-
function
|
|
4541
|
+
function ca() {
|
|
4531
4542
|
const n = document.createElement("span");
|
|
4532
4543
|
n.className = "md-rich-link-changes";
|
|
4533
4544
|
const e = document.createElement("span");
|
|
@@ -4535,7 +4546,7 @@ function ra() {
|
|
|
4535
4546
|
const t = document.createElement("span");
|
|
4536
4547
|
return t.className = "md-rich-link-deletions", n.append(e, t), { root: n, insertions: e, deletions: t };
|
|
4537
4548
|
}
|
|
4538
|
-
function
|
|
4549
|
+
function aa(n, e) {
|
|
4539
4550
|
if (!e) {
|
|
4540
4551
|
Ji(n);
|
|
4541
4552
|
return;
|
|
@@ -4551,13 +4562,13 @@ function os(n, e, t, s, i) {
|
|
|
4551
4562
|
return;
|
|
4552
4563
|
}
|
|
4553
4564
|
n.dataset[i] = s.kind;
|
|
4554
|
-
const o =
|
|
4555
|
-
t.icon.className = `md-rich-link-status-icon codicon codicon-${
|
|
4565
|
+
const o = da(e, s.kind);
|
|
4566
|
+
t.icon.className = `md-rich-link-status-icon codicon codicon-${ua(e, s.kind)}`, t.icon.hidden = o !== void 0, o ? (t.pixelSpinner ??= la(t.label), t.pixelSpinner.classList.toggle("monaco-pixel-spinner-ring", o === "ring")) : (t.pixelSpinner?.remove(), t.pixelSpinner = void 0), t.label.textContent = s.label, t.root.hidden = !1;
|
|
4556
4567
|
}
|
|
4557
4568
|
function sn(n) {
|
|
4558
4569
|
n.icon.hidden = !1, n.pixelSpinner?.remove(), n.pixelSpinner = void 0, n.label.textContent = "", n.root.hidden = !0;
|
|
4559
4570
|
}
|
|
4560
|
-
function
|
|
4571
|
+
function la(n) {
|
|
4561
4572
|
const e = document.createElement("span");
|
|
4562
4573
|
e.className = "md-rich-link-status-icon monaco-pixel-spinner", e.setAttribute("aria-hidden", "true");
|
|
4563
4574
|
for (let t = 0; t < 6; t++) {
|
|
@@ -4566,7 +4577,7 @@ function aa(n) {
|
|
|
4566
4577
|
}
|
|
4567
4578
|
return n.before(e), e;
|
|
4568
4579
|
}
|
|
4569
|
-
function
|
|
4580
|
+
function da(n, e) {
|
|
4570
4581
|
if (n === "session")
|
|
4571
4582
|
switch (e) {
|
|
4572
4583
|
case "pending":
|
|
@@ -4577,7 +4588,7 @@ function la(n, e) {
|
|
|
4577
4588
|
return;
|
|
4578
4589
|
}
|
|
4579
4590
|
}
|
|
4580
|
-
function
|
|
4591
|
+
function ha(n) {
|
|
4581
4592
|
const e = n.status?.kind;
|
|
4582
4593
|
switch (n.kind) {
|
|
4583
4594
|
case "issue":
|
|
@@ -4590,7 +4601,7 @@ function da(n) {
|
|
|
4590
4601
|
return !1;
|
|
4591
4602
|
}
|
|
4592
4603
|
}
|
|
4593
|
-
function
|
|
4604
|
+
function ua(n, e) {
|
|
4594
4605
|
if (n === "session")
|
|
4595
4606
|
switch (e) {
|
|
4596
4607
|
case "pending":
|
|
@@ -4674,7 +4685,7 @@ function J(n, e, t) {
|
|
|
4674
4685
|
return t;
|
|
4675
4686
|
switch (n.kind) {
|
|
4676
4687
|
case "text":
|
|
4677
|
-
return
|
|
4688
|
+
return pa(n, e, P(t, In));
|
|
4678
4689
|
case "marker":
|
|
4679
4690
|
return n.ast.markerKind === "hardBreak" ? new ds(n, P(t, ds)) : new as(n, P(t, as));
|
|
4680
4691
|
case "glue":
|
|
@@ -4743,9 +4754,9 @@ function Z(n, e, t, s) {
|
|
|
4743
4754
|
const { paired: i, unused: o } = Pn(e, t ?? F), r = e.map((c) => s(c, i.get(c)));
|
|
4744
4755
|
for (const c of o)
|
|
4745
4756
|
c.dispose();
|
|
4746
|
-
return
|
|
4757
|
+
return fa(n, r), r;
|
|
4747
4758
|
}
|
|
4748
|
-
function
|
|
4759
|
+
function fa(n, e) {
|
|
4749
4760
|
z(n, e.map((t) => t.mountNode));
|
|
4750
4761
|
}
|
|
4751
4762
|
const z = nn;
|
|
@@ -4800,13 +4811,13 @@ class rn extends O {
|
|
|
4800
4811
|
}
|
|
4801
4812
|
}
|
|
4802
4813
|
function to(n) {
|
|
4803
|
-
return "content" in n ? n.content :
|
|
4814
|
+
return "content" in n ? n.content : ma;
|
|
4804
4815
|
}
|
|
4805
|
-
const
|
|
4806
|
-
function
|
|
4816
|
+
const ma = [];
|
|
4817
|
+
function pa(n, e, t) {
|
|
4807
4818
|
const s = n.ast.content;
|
|
4808
4819
|
if (n.hiddenPrefixLength > 0)
|
|
4809
|
-
return
|
|
4820
|
+
return ga(n, s, n.hiddenPrefixLength);
|
|
4810
4821
|
const i = {
|
|
4811
4822
|
leftBoundary: n.leftWordBoundary,
|
|
4812
4823
|
rightBoundary: n.rightWordBoundary,
|
|
@@ -4829,7 +4840,7 @@ function ma(n, e, t) {
|
|
|
4829
4840
|
const r = t?.dom, c = r instanceof globalThis.Text && r.data === s ? r : document.createTextNode(s);
|
|
4830
4841
|
return new In(n, c);
|
|
4831
4842
|
}
|
|
4832
|
-
function
|
|
4843
|
+
function ga(n, e, t) {
|
|
4833
4844
|
const s = document.createElement("span");
|
|
4834
4845
|
s.className = "md-text";
|
|
4835
4846
|
const i = document.createElement("span");
|
|
@@ -4846,8 +4857,8 @@ function cs(n) {
|
|
|
4846
4857
|
return n === " " || n === " " || n === `
|
|
4847
4858
|
` || n === "\r";
|
|
4848
4859
|
}
|
|
4849
|
-
const
|
|
4850
|
-
function
|
|
4860
|
+
const _a = { leftBoundary: !1, rightBoundary: !1, decorateNewline: !1 }, at = { leftBoundary: !1, rightBoundary: !1, decorateNewline: !0 }, On = { leftBoundary: !1, rightBoundary: !1, decorateNewline: !1 };
|
|
4861
|
+
function va(n, e, t) {
|
|
4851
4862
|
const s = e > 0 ? !cs(n[e - 1]) : t.leftBoundary, i = e < n.length - 1 ? !cs(n[e + 1]) : t.rightBoundary;
|
|
4852
4863
|
return s && i;
|
|
4853
4864
|
}
|
|
@@ -4858,7 +4869,7 @@ function no(n, e, t) {
|
|
|
4858
4869
|
if (s === `
|
|
4859
4870
|
` || s === "\r")
|
|
4860
4871
|
return t.decorateNewline ? "md-ws-newline" : void 0;
|
|
4861
|
-
if (s === " " && !
|
|
4872
|
+
if (s === " " && !va(n, e, t))
|
|
4862
4873
|
return "md-ws-space";
|
|
4863
4874
|
}
|
|
4864
4875
|
function Rn(n, e) {
|
|
@@ -4870,7 +4881,7 @@ function Rn(n, e) {
|
|
|
4870
4881
|
}
|
|
4871
4882
|
return !1;
|
|
4872
4883
|
}
|
|
4873
|
-
function
|
|
4884
|
+
function ka(n, e) {
|
|
4874
4885
|
const t = [];
|
|
4875
4886
|
let s = -1;
|
|
4876
4887
|
const i = (r) => {
|
|
@@ -4901,7 +4912,7 @@ function va(n, e) {
|
|
|
4901
4912
|
}
|
|
4902
4913
|
function fe(n, e, t, s) {
|
|
4903
4914
|
const i = [];
|
|
4904
|
-
for (const o of
|
|
4915
|
+
for (const o of ka(e, t)) {
|
|
4905
4916
|
const r = document.createTextNode(o.display ?? o.text);
|
|
4906
4917
|
if (o.cls) {
|
|
4907
4918
|
const c = document.createElement("span");
|
|
@@ -5032,7 +5043,7 @@ class ds extends O {
|
|
|
5032
5043
|
i.className = "md-hardbreak";
|
|
5033
5044
|
const o = document.createElement("span");
|
|
5034
5045
|
o.className = e.visible ? "md-hardbreak-src" : "md-hardbreak-src md-hardbreak-src-hidden";
|
|
5035
|
-
const r = e.visible ? fe(o, s,
|
|
5046
|
+
const r = e.visible ? fe(o, s, _a, e.ast) : We(o, s, e.ast);
|
|
5036
5047
|
i.appendChild(o), i.appendChild(document.createElement("br")), super(e, i, r), this._span = i;
|
|
5037
5048
|
}
|
|
5038
5049
|
get mountNode() {
|
|
@@ -5126,7 +5137,7 @@ class hs extends O {
|
|
|
5126
5137
|
constructor(e, t, s) {
|
|
5127
5138
|
const i = s?.element ?? document.createElement("blockquote");
|
|
5128
5139
|
s || (i.className = "md-block md-blockquote");
|
|
5129
|
-
const o = Z(i, e.content, s?._sourceChildren, ke(t)), r =
|
|
5140
|
+
const o = Z(i, e.content, s?._sourceChildren, ke(t)), r = wa(e.ast), c = e.showFinalMarkerOnlyLine ? r : r.slice(0, -1);
|
|
5130
5141
|
i.classList.toggle("md-blockquote-marker-only-line", c.length > 0);
|
|
5131
5142
|
const a = new Map(s?._anchors.map((m) => [m.ast.id, m])), l = c.map(({ marker: m }) => {
|
|
5132
5143
|
const p = a.get(m.id) ?? new De(m, "md-blockquote-line-anchor");
|
|
@@ -5147,7 +5158,7 @@ class hs extends O {
|
|
|
5147
5158
|
z(i, h), super(e, i, u), this._sourceChildren = o, this._anchors = l;
|
|
5148
5159
|
}
|
|
5149
5160
|
}
|
|
5150
|
-
function
|
|
5161
|
+
function wa(n) {
|
|
5151
5162
|
const e = [];
|
|
5152
5163
|
for (let t = n.children.length - 1; t >= 0; t--) {
|
|
5153
5164
|
const s = n.children[t];
|
|
@@ -5345,7 +5356,7 @@ class An extends O {
|
|
|
5345
5356
|
const i = e.ast, o = i.code?.content ?? "", r = s instanceof An ? s : void 0, c = t?.embeddedCodeEditorReadOnly ?? !1, a = Yi(o);
|
|
5346
5357
|
let l;
|
|
5347
5358
|
!e.showMarkup && i.language && i.code && i.closeFence && a.sourceOffset > 0 && t?.embeddedCodeEditorFactory && (r?._embeddedEditor && Object.is(t.embeddedCodeEditorFactoryVersion, r._embeddedEditorFactoryVersion) && (i === r.ast || i.getDiff(r.ast)) ? (l = r._embeddedEditor, r._embeddedEditor = void 0) : l = t.embeddedCodeEditorFactory.create(i.language, i.infoString, a.text) ?? void 0), r?._embeddedEditor && (r._embeddedEditor.dispose(), r._embeddedEditor = void 0);
|
|
5348
|
-
const d = !l && !e.showMarkup && i.language && i.closeFence && t?.renderCustomCodeBlock ?
|
|
5359
|
+
const d = !l && !e.showMarkup && i.language && i.closeFence && t?.renderCustomCodeBlock ? ba(t.renderCustomCodeBlock, i.language, o) : void 0, u = t?.syntaxHighlighter;
|
|
5349
5360
|
let h;
|
|
5350
5361
|
if (!l && !d && u && i.language) {
|
|
5351
5362
|
if (r?._session && i === r.ast)
|
|
@@ -5430,7 +5441,7 @@ class An extends O {
|
|
|
5430
5441
|
this._copyAction?.dispose(), this._copyAction = void 0, this._snapshotSub?.dispose(), this._snapshotSub = void 0, this._session?.dispose(), this._session = void 0, this._embeddedEditor?.dispose(), this._embeddedEditor = void 0, super.dispose();
|
|
5431
5442
|
}
|
|
5432
5443
|
}
|
|
5433
|
-
function
|
|
5444
|
+
function ba(n, e, t) {
|
|
5434
5445
|
try {
|
|
5435
5446
|
return n(e, t);
|
|
5436
5447
|
} catch (s) {
|
|
@@ -5449,7 +5460,7 @@ function ro(n, e, t, s, i, o, r) {
|
|
|
5449
5460
|
if (e && f.ast === e) {
|
|
5450
5461
|
const m = document.createElement("code");
|
|
5451
5462
|
o && (m.className = `language-${CSS.escape(o)}`);
|
|
5452
|
-
const p =
|
|
5463
|
+
const p = ya(
|
|
5453
5464
|
e,
|
|
5454
5465
|
t,
|
|
5455
5466
|
m,
|
|
@@ -5463,7 +5474,7 @@ function ro(n, e, t, s, i, o, r) {
|
|
|
5463
5474
|
}
|
|
5464
5475
|
return { dom: c, children: u, contentNode: h };
|
|
5465
5476
|
}
|
|
5466
|
-
function
|
|
5477
|
+
function ya(n, e, t, s, i) {
|
|
5467
5478
|
if (!s && !i) {
|
|
5468
5479
|
const o = document.createTextNode(e);
|
|
5469
5480
|
return t.appendChild(o), new G(n, o);
|
|
@@ -5585,7 +5596,7 @@ class xs extends O {
|
|
|
5585
5596
|
s?._anchor?.mountNode.parentNode?.removeChild(s._anchor.mountNode);
|
|
5586
5597
|
const i = e.ast, o = s?.element ?? document.createElement("li");
|
|
5587
5598
|
o.classList.toggle("md-list-item-active", e.isActive), o.classList.toggle("md-list-item-incomplete", i.isIncomplete), o.classList.toggle("md-task-list-item", i.checked !== void 0), o.classList.toggle("md-markers-hidden", !e.isActive), o.classList.toggle("md-task-list-item-running", e.isRunning), o.style.setProperty("--md-list-level", String(e.level)), o.style.setProperty("--md-list-source-indent", String(e.sourceIndentation)), o.style.setProperty("--md-list-marker-spaces", String(i.marker.content.length - i.marker.content.trimEnd().length || 1));
|
|
5588
|
-
const r =
|
|
5599
|
+
const r = Ea(o, e.content, s, t);
|
|
5589
5600
|
let c;
|
|
5590
5601
|
if (i.blocks.length === 0) {
|
|
5591
5602
|
const a = r.findIndex((d) => d.ast === i.marker);
|
|
@@ -5611,7 +5622,7 @@ class xs extends O {
|
|
|
5611
5622
|
super(e, o, r), this._anchor = c;
|
|
5612
5623
|
}
|
|
5613
5624
|
}
|
|
5614
|
-
function
|
|
5625
|
+
function Ea(n, e, t, s) {
|
|
5615
5626
|
const { paired: i, unused: o } = Pn(e, t?.children ?? F), r = e.map((u) => J(u, s, i.get(u)));
|
|
5616
5627
|
for (const u of o)
|
|
5617
5628
|
u.dispose();
|
|
@@ -5759,7 +5770,7 @@ class Bn extends ce {
|
|
|
5759
5770
|
i.classList.add("md-document");
|
|
5760
5771
|
const o = new Map(
|
|
5761
5772
|
e.children.filter((f) => f.kind === "block").map((f) => [f.view, f.isActive])
|
|
5762
|
-
), r = s?.children, c = e.children.map((f) => f.view), { paired: a, unused: l } = Pn(c, r ??
|
|
5773
|
+
), r = s?.children, c = e.children.map((f) => f.view), { paired: a, unused: l } = Pn(c, r ?? xa);
|
|
5763
5774
|
let d;
|
|
5764
5775
|
const u = c.map((f, m) => {
|
|
5765
5776
|
const p = a.get(f);
|
|
@@ -5823,7 +5834,7 @@ class Rs extends ce {
|
|
|
5823
5834
|
return new DOMRect(i?.right ?? e.left, e.top, 0, e.height);
|
|
5824
5835
|
}
|
|
5825
5836
|
}
|
|
5826
|
-
const
|
|
5837
|
+
const xa = [], st = 1e-7;
|
|
5827
5838
|
class Mt {
|
|
5828
5839
|
constructor(e) {
|
|
5829
5840
|
this._getLocalToClientMatrix = e;
|
|
@@ -5842,10 +5853,10 @@ class Mt {
|
|
|
5842
5853
|
const e = this._getLocalToClientMatrix();
|
|
5843
5854
|
if (e.is2D === !1 || Math.abs(e.b) > st || Math.abs(e.c) > st || e.a <= st || e.d <= st)
|
|
5844
5855
|
throw new Error("Markdown editor geometry supports positive axis-aligned scale and translation only");
|
|
5845
|
-
return new
|
|
5856
|
+
return new Ca(e);
|
|
5846
5857
|
}
|
|
5847
5858
|
}
|
|
5848
|
-
class
|
|
5859
|
+
class Ca {
|
|
5849
5860
|
constructor(e) {
|
|
5850
5861
|
this._localToClient = e, this._clientToLocal = e.inverse();
|
|
5851
5862
|
}
|
|
@@ -5875,127 +5886,127 @@ class ho {
|
|
|
5875
5886
|
}
|
|
5876
5887
|
kind = "document";
|
|
5877
5888
|
}
|
|
5878
|
-
class
|
|
5889
|
+
class Sa {
|
|
5879
5890
|
constructor(e, t) {
|
|
5880
5891
|
this.ast = e, this.content = t;
|
|
5881
5892
|
}
|
|
5882
5893
|
kind = "heading";
|
|
5883
5894
|
}
|
|
5884
|
-
class
|
|
5895
|
+
class La {
|
|
5885
5896
|
constructor(e, t) {
|
|
5886
5897
|
this.ast = e, this.content = t;
|
|
5887
5898
|
}
|
|
5888
5899
|
kind = "paragraph";
|
|
5889
5900
|
}
|
|
5890
|
-
class
|
|
5901
|
+
class Ta {
|
|
5891
5902
|
constructor(e, t) {
|
|
5892
5903
|
this.ast = e, this.content = t;
|
|
5893
5904
|
}
|
|
5894
5905
|
kind = "emptyBlock";
|
|
5895
5906
|
}
|
|
5896
|
-
class
|
|
5907
|
+
class Ma {
|
|
5897
5908
|
constructor(e, t, s, i) {
|
|
5898
5909
|
this.ast = e, this.anchorBlock = t, this.cursorLine = s, this.text = i;
|
|
5899
5910
|
}
|
|
5900
5911
|
kind = "pendingParagraph";
|
|
5901
5912
|
}
|
|
5902
|
-
class
|
|
5913
|
+
class Oa {
|
|
5903
5914
|
constructor(e, t, s) {
|
|
5904
5915
|
this.ast = e, this.showMarkup = t, this.content = s;
|
|
5905
5916
|
}
|
|
5906
5917
|
kind = "frontMatter";
|
|
5907
5918
|
}
|
|
5908
|
-
class
|
|
5919
|
+
class Ra {
|
|
5909
5920
|
constructor(e, t, s) {
|
|
5910
5921
|
this.ast = e, this.showMarkup = t, this.content = s;
|
|
5911
5922
|
}
|
|
5912
5923
|
kind = "codeBlock";
|
|
5913
5924
|
}
|
|
5914
|
-
class
|
|
5925
|
+
class Ia {
|
|
5915
5926
|
constructor(e, t, s) {
|
|
5916
5927
|
this.ast = e, this.showMarkup = t, this.content = s;
|
|
5917
5928
|
}
|
|
5918
5929
|
kind = "mathBlock";
|
|
5919
5930
|
}
|
|
5920
|
-
class
|
|
5931
|
+
class Na {
|
|
5921
5932
|
constructor(e, t, s) {
|
|
5922
5933
|
this.ast = e, this.content = t, this.showFinalMarkerOnlyLine = s;
|
|
5923
5934
|
}
|
|
5924
5935
|
kind = "blockQuote";
|
|
5925
5936
|
}
|
|
5926
|
-
class
|
|
5937
|
+
class Aa {
|
|
5927
5938
|
constructor(e, t) {
|
|
5928
5939
|
this.ast = e, this.content = t;
|
|
5929
5940
|
}
|
|
5930
5941
|
kind = "list";
|
|
5931
5942
|
}
|
|
5932
|
-
class
|
|
5943
|
+
class Pa {
|
|
5933
5944
|
constructor(e, t) {
|
|
5934
5945
|
this.ast = e, this.content = t;
|
|
5935
5946
|
}
|
|
5936
5947
|
kind = "table";
|
|
5937
5948
|
}
|
|
5938
|
-
class
|
|
5949
|
+
class Ba {
|
|
5939
5950
|
constructor(e, t) {
|
|
5940
5951
|
this.ast = e, this.content = t;
|
|
5941
5952
|
}
|
|
5942
5953
|
kind = "strong";
|
|
5943
5954
|
}
|
|
5944
|
-
class
|
|
5955
|
+
class Da {
|
|
5945
5956
|
constructor(e, t) {
|
|
5946
5957
|
this.ast = e, this.content = t;
|
|
5947
5958
|
}
|
|
5948
5959
|
kind = "emphasis";
|
|
5949
5960
|
}
|
|
5950
|
-
class
|
|
5961
|
+
class Fa {
|
|
5951
5962
|
constructor(e, t) {
|
|
5952
5963
|
this.ast = e, this.content = t;
|
|
5953
5964
|
}
|
|
5954
5965
|
kind = "strikethrough";
|
|
5955
5966
|
}
|
|
5956
|
-
class
|
|
5967
|
+
class Va {
|
|
5957
5968
|
constructor(e, t) {
|
|
5958
5969
|
this.ast = e, this.content = t;
|
|
5959
5970
|
}
|
|
5960
5971
|
kind = "inlineCode";
|
|
5961
5972
|
}
|
|
5962
|
-
class
|
|
5973
|
+
class Wa {
|
|
5963
5974
|
constructor(e, t, s) {
|
|
5964
5975
|
this.ast = e, this.showMarkup = t, this.content = s;
|
|
5965
5976
|
}
|
|
5966
5977
|
kind = "inlineMath";
|
|
5967
5978
|
}
|
|
5968
|
-
class
|
|
5979
|
+
class $a {
|
|
5969
5980
|
constructor(e, t, s) {
|
|
5970
5981
|
this.ast = e, this.showMarkup = t, this.content = s;
|
|
5971
5982
|
}
|
|
5972
5983
|
kind = "link";
|
|
5973
5984
|
}
|
|
5974
|
-
class
|
|
5985
|
+
class Ha {
|
|
5975
5986
|
constructor(e, t, s) {
|
|
5976
5987
|
this.ast = e, this.showMarkup = t, this.content = s;
|
|
5977
5988
|
}
|
|
5978
5989
|
kind = "image";
|
|
5979
5990
|
}
|
|
5980
|
-
class
|
|
5991
|
+
class Ka {
|
|
5981
5992
|
constructor(e, t, s, i, o = !1, r = i - 1) {
|
|
5982
5993
|
this.ast = e, this.isActive = t, this.content = s, this.level = i, this.isRunning = o, this.sourceIndentation = r;
|
|
5983
5994
|
}
|
|
5984
5995
|
kind = "listItem";
|
|
5985
5996
|
}
|
|
5986
|
-
class
|
|
5997
|
+
class za {
|
|
5987
5998
|
constructor(e, t, s) {
|
|
5988
5999
|
this.ast = e, this.isDelimiter = t, this.content = s;
|
|
5989
6000
|
}
|
|
5990
6001
|
kind = "tableRow";
|
|
5991
6002
|
}
|
|
5992
|
-
class
|
|
6003
|
+
class qa {
|
|
5993
6004
|
constructor(e, t, s, i) {
|
|
5994
6005
|
this.ast = e, this.isActive = t, this.showTableGlue = s, this.content = i;
|
|
5995
6006
|
}
|
|
5996
6007
|
kind = "tableCell";
|
|
5997
6008
|
}
|
|
5998
|
-
class
|
|
6009
|
+
class Ua {
|
|
5999
6010
|
/**
|
|
6000
6011
|
* Whether non-obvious whitespace in this text is revealed (block is active).
|
|
6001
6012
|
* `leftWordBoundary`/`rightWordBoundary` say whether the inline sibling on
|
|
@@ -6008,7 +6019,7 @@ class qa {
|
|
|
6008
6019
|
}
|
|
6009
6020
|
kind = "text";
|
|
6010
6021
|
}
|
|
6011
|
-
class
|
|
6022
|
+
class Ga {
|
|
6012
6023
|
constructor(e, t, s) {
|
|
6013
6024
|
this.ast = e, this.showMarkup = t, this.content = s;
|
|
6014
6025
|
}
|
|
@@ -6020,13 +6031,13 @@ class uo {
|
|
|
6020
6031
|
}
|
|
6021
6032
|
kind = "video";
|
|
6022
6033
|
}
|
|
6023
|
-
class
|
|
6034
|
+
class Xa {
|
|
6024
6035
|
constructor(e, t, s) {
|
|
6025
6036
|
this.ast = e, this.showMarkup = t, this.content = s;
|
|
6026
6037
|
}
|
|
6027
6038
|
kind = "unhandledBlock";
|
|
6028
6039
|
}
|
|
6029
|
-
class
|
|
6040
|
+
class Qa {
|
|
6030
6041
|
constructor(e, t) {
|
|
6031
6042
|
this.ast = e, this.visible = t;
|
|
6032
6043
|
}
|
|
@@ -6038,7 +6049,7 @@ class fo {
|
|
|
6038
6049
|
}
|
|
6039
6050
|
kind = "glue";
|
|
6040
6051
|
}
|
|
6041
|
-
class
|
|
6052
|
+
class ja {
|
|
6042
6053
|
constructor(e, t, s, i, o) {
|
|
6043
6054
|
this.ast = e, this.side = t, this.deletedRanges = s, this.whole = i, this.originalStart = o;
|
|
6044
6055
|
}
|
|
@@ -6058,7 +6069,7 @@ function mo(n, e, t, s, i) {
|
|
|
6058
6069
|
for (let h = 0; h < r.length; h++) {
|
|
6059
6070
|
const f = r[h];
|
|
6060
6071
|
if (c.has(f)) {
|
|
6061
|
-
const m = f, p = e.has(m), g = o.get(m), _ = m.kind === "emptyBlock" ?
|
|
6072
|
+
const m = f, p = e.has(m), g = o.get(m), _ = m.kind === "emptyBlock" ? rl(u, m) : void 0;
|
|
6062
6073
|
m.kind !== "emptyBlock" && (u = m);
|
|
6063
6074
|
const k = i?.anchorBlock === m ? i.replaceRange.delta(-d) : void 0;
|
|
6064
6075
|
let w;
|
|
@@ -6086,7 +6097,7 @@ function mo(n, e, t, s, i) {
|
|
|
6086
6097
|
a.push({ ast: m, absoluteStart: d, isActive: p, view: w }), l.push({ absoluteStart: d, isActive: p, view: w, kind: "block" }), i && i.anchorBlock === m && l.push({
|
|
6087
6098
|
absoluteStart: d + m.length,
|
|
6088
6099
|
isActive: !0,
|
|
6089
|
-
view: new
|
|
6100
|
+
view: new Ma(i.ast, i.anchorBlock, i.cursorLine, i.text),
|
|
6090
6101
|
kind: "pendingParagraph"
|
|
6091
6102
|
});
|
|
6092
6103
|
} else if (f instanceof S) {
|
|
@@ -6100,14 +6111,14 @@ function mo(n, e, t, s, i) {
|
|
|
6100
6111
|
function an(n, e, t) {
|
|
6101
6112
|
return $e(n, e, t);
|
|
6102
6113
|
}
|
|
6103
|
-
function
|
|
6114
|
+
function Ya(n, e, t, s = !1) {
|
|
6104
6115
|
return po(n, e, s, t);
|
|
6105
6116
|
}
|
|
6106
6117
|
function po(n, e, t, s) {
|
|
6107
6118
|
const i = e ? { showMarkup: !0, showTableGlue: !1, selectionInNode: void 0, forceVideoSource: t } : t ? { ...cn, forceVideoSource: !0 } : cn;
|
|
6108
6119
|
return an(n, i, s);
|
|
6109
6120
|
}
|
|
6110
|
-
function
|
|
6121
|
+
function Za(n, e, t = !1) {
|
|
6111
6122
|
const s = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
|
|
6112
6123
|
let o = [];
|
|
6113
6124
|
for (const l of e) {
|
|
@@ -6148,7 +6159,7 @@ function Vt(n, e, t, s, i, o) {
|
|
|
6148
6159
|
}
|
|
6149
6160
|
function lt(n, e, t, s, i) {
|
|
6150
6161
|
const o = i || !t || n.kind === "video";
|
|
6151
|
-
return new
|
|
6162
|
+
return new ja(n, po(n, o, !0), e, t, s);
|
|
6152
6163
|
}
|
|
6153
6164
|
function go(n, e, t) {
|
|
6154
6165
|
const s = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
|
|
@@ -6184,7 +6195,7 @@ function gt(n, e, t) {
|
|
|
6184
6195
|
return i;
|
|
6185
6196
|
let o;
|
|
6186
6197
|
if (n.kind === "video") {
|
|
6187
|
-
const c = t ?
|
|
6198
|
+
const c = t ? Ya(n.ast, !0) : n;
|
|
6188
6199
|
if (c.kind !== "video")
|
|
6189
6200
|
throw new Error("Video AST must build video view data");
|
|
6190
6201
|
o = new uo(c.ast, c.showMarkup, c.content, e);
|
|
@@ -6214,7 +6225,7 @@ function $e(n, e, t, s) {
|
|
|
6214
6225
|
const i = n;
|
|
6215
6226
|
switch (i.kind) {
|
|
6216
6227
|
case "text":
|
|
6217
|
-
return R(t, new
|
|
6228
|
+
return R(t, new Ua(
|
|
6218
6229
|
i,
|
|
6219
6230
|
e.showMarkup,
|
|
6220
6231
|
s?.left ?? !1,
|
|
@@ -6225,71 +6236,71 @@ function $e(n, e, t, s) {
|
|
|
6225
6236
|
// The trailing gap is revealed as `↵` glyphs by virtue of its `blockGap`
|
|
6226
6237
|
// kind (see `GlueViewNode`), so the break needs no inline-flow opt-in.
|
|
6227
6238
|
case "thematicBreak":
|
|
6228
|
-
return R(t, new
|
|
6239
|
+
return R(t, new Ga(i, e.showMarkup, V(i.children, e, t)));
|
|
6229
6240
|
case "video": {
|
|
6230
6241
|
const o = e.forceVideoSource && !e.showMarkup ? { ...e, showMarkup: !0 } : e;
|
|
6231
6242
|
return R(t, new uo(i, o.showMarkup, V(i.children, o, t)));
|
|
6232
6243
|
}
|
|
6233
6244
|
case "unhandledBlock":
|
|
6234
|
-
return R(t, new
|
|
6245
|
+
return R(t, new Xa(i, e.showMarkup, V(i.children, e, t)));
|
|
6235
6246
|
case "marker":
|
|
6236
|
-
return R(t, new
|
|
6247
|
+
return R(t, new Qa(i, nl(i.markerKind, e)));
|
|
6237
6248
|
case "glue":
|
|
6238
6249
|
return R(t, new fo(
|
|
6239
6250
|
i,
|
|
6240
|
-
|
|
6251
|
+
sl(i.glueKind, e),
|
|
6241
6252
|
e.inlineFlow ?? !1,
|
|
6242
6253
|
e.showMarkup,
|
|
6243
6254
|
i.glueKind === "indent" || i.glueKind === "emptyLine" ? e.listContinuation : void 0
|
|
6244
6255
|
));
|
|
6245
6256
|
case "heading":
|
|
6246
|
-
return R(t, new Ca(i, V(i.children, re(e), t)));
|
|
6247
|
-
case "paragraph":
|
|
6248
6257
|
return R(t, new Sa(i, V(i.children, re(e), t)));
|
|
6249
|
-
case "
|
|
6258
|
+
case "paragraph":
|
|
6250
6259
|
return R(t, new La(i, V(i.children, re(e), t)));
|
|
6260
|
+
case "emptyBlock":
|
|
6261
|
+
return R(t, new Ta(i, V(i.children, re(e), t)));
|
|
6251
6262
|
case "frontMatter":
|
|
6252
|
-
return R(t, new Ma(i, e.showMarkup, V(i.children, e, t)));
|
|
6253
|
-
case "codeBlock":
|
|
6254
6263
|
return R(t, new Oa(i, e.showMarkup, V(i.children, e, t)));
|
|
6255
|
-
case "
|
|
6264
|
+
case "codeBlock":
|
|
6256
6265
|
return R(t, new Ra(i, e.showMarkup, V(i.children, e, t)));
|
|
6266
|
+
case "mathBlock":
|
|
6267
|
+
return R(t, new Ia(i, e.showMarkup, V(i.children, e, t)));
|
|
6257
6268
|
case "blockQuote": {
|
|
6258
|
-
const o =
|
|
6259
|
-
return R(t, new
|
|
6269
|
+
const o = tl(i), r = e.pendingAnchorBlock ? Y(e.pendingAnchorBlock, i) : void 0, c = o && r !== void 0 ? o.delta(r) : void 0, a = !c || !e.pendingReplacementInBlock?.containsRange(c);
|
|
6270
|
+
return R(t, new Na(i, V(i.children, e, t, !0), a));
|
|
6260
6271
|
}
|
|
6261
6272
|
case "list":
|
|
6262
|
-
return R(t,
|
|
6273
|
+
return R(t, ol(i, e, t));
|
|
6263
6274
|
case "listItem":
|
|
6264
6275
|
return R(t, ko(i, e, t));
|
|
6265
6276
|
case "table":
|
|
6266
|
-
return R(t,
|
|
6277
|
+
return R(t, cl(i, e, t));
|
|
6267
6278
|
case "tableRow":
|
|
6268
6279
|
return R(t, bo(i, e, !1, t));
|
|
6269
6280
|
case "tableCell":
|
|
6270
6281
|
return R(t, yo(i, e.showMarkup, e.showTableGlue, e.selectionInNode, t));
|
|
6271
6282
|
case "strong":
|
|
6272
|
-
return R(t, new Pa(i, V(i.children, re(e), t)));
|
|
6273
|
-
case "emphasis":
|
|
6274
6283
|
return R(t, new Ba(i, V(i.children, re(e), t)));
|
|
6275
|
-
case "
|
|
6284
|
+
case "emphasis":
|
|
6276
6285
|
return R(t, new Da(i, V(i.children, re(e), t)));
|
|
6277
|
-
case "
|
|
6286
|
+
case "strikethrough":
|
|
6278
6287
|
return R(t, new Fa(i, V(i.children, re(e), t)));
|
|
6288
|
+
case "inlineCode":
|
|
6289
|
+
return R(t, new Va(i, V(i.children, re(e), t)));
|
|
6279
6290
|
case "inlineMath":
|
|
6280
|
-
return R(t, new Va(i, e.showMarkup, V(i.children, re(e), t)));
|
|
6281
|
-
case "link":
|
|
6282
6291
|
return R(t, new Wa(i, e.showMarkup, V(i.children, re(e), t)));
|
|
6283
|
-
case "
|
|
6292
|
+
case "link":
|
|
6284
6293
|
return R(t, new $a(i, e.showMarkup, V(i.children, re(e), t)));
|
|
6294
|
+
case "image":
|
|
6295
|
+
return R(t, new Ha(i, e.showMarkup, V(i.children, re(e), t)));
|
|
6285
6296
|
case "document":
|
|
6286
6297
|
return mo(i, /* @__PURE__ */ new Set(), v.ofLength(0), void 0);
|
|
6287
6298
|
}
|
|
6288
6299
|
}
|
|
6289
6300
|
function ln(n) {
|
|
6290
|
-
return n.kind === "document" ? n.blocks.map((e) => e.view) : "content" in n ? n.content :
|
|
6301
|
+
return n.kind === "document" ? n.blocks.map((e) => e.view) : "content" in n ? n.content : Ja;
|
|
6291
6302
|
}
|
|
6292
|
-
const
|
|
6303
|
+
const Ja = [];
|
|
6293
6304
|
function Je(n) {
|
|
6294
6305
|
if (!n)
|
|
6295
6306
|
return;
|
|
@@ -6299,14 +6310,14 @@ function Je(n) {
|
|
|
6299
6310
|
return e;
|
|
6300
6311
|
}
|
|
6301
6312
|
function R(n, e) {
|
|
6302
|
-
if (n && n.kind === e.kind && n.ast === e.ast &&
|
|
6313
|
+
if (n && n.kind === e.kind && n.ast === e.ast && el(n, e)) {
|
|
6303
6314
|
const t = ln(n), s = ln(e);
|
|
6304
6315
|
if (t.length === s.length && t.every((i, o) => i === s[o]))
|
|
6305
6316
|
return n;
|
|
6306
6317
|
}
|
|
6307
6318
|
return e;
|
|
6308
6319
|
}
|
|
6309
|
-
function
|
|
6320
|
+
function el(n, e) {
|
|
6310
6321
|
switch (n.kind) {
|
|
6311
6322
|
case "text":
|
|
6312
6323
|
return n.showWhitespace === e.showWhitespace && n.leftWordBoundary === e.leftWordBoundary && n.rightWordBoundary === e.rightWordBoundary && n.hiddenPrefixLength === e.hiddenPrefixLength && n.taskLabel === e.taskLabel;
|
|
@@ -6344,7 +6355,7 @@ function Ja(n, e) {
|
|
|
6344
6355
|
return !0;
|
|
6345
6356
|
}
|
|
6346
6357
|
}
|
|
6347
|
-
function
|
|
6358
|
+
function tl(n) {
|
|
6348
6359
|
let e = 0, t;
|
|
6349
6360
|
for (const s of n.children)
|
|
6350
6361
|
s instanceof S || (t = s instanceof E && s.markerKind === "blockQuoteMarker" ? v.ofStartAndLength(e, s.length) : void 0), e += s.length;
|
|
@@ -6380,14 +6391,14 @@ function Is(n, e) {
|
|
|
6380
6391
|
return !1;
|
|
6381
6392
|
}
|
|
6382
6393
|
}
|
|
6383
|
-
function
|
|
6394
|
+
function nl(n, e) {
|
|
6384
6395
|
return e.showMarkup || n === "tableCellGlue" && e.showTableGlue;
|
|
6385
6396
|
}
|
|
6386
|
-
function
|
|
6397
|
+
function sl(n, e) {
|
|
6387
6398
|
return e.showMarkup || n === "tableCellGlue" && e.showTableGlue;
|
|
6388
6399
|
}
|
|
6389
6400
|
const Ns = ":running:";
|
|
6390
|
-
function
|
|
6401
|
+
function il(n) {
|
|
6391
6402
|
if (n.checked === void 0)
|
|
6392
6403
|
return;
|
|
6393
6404
|
const e = n.blocks[0];
|
|
@@ -6403,8 +6414,8 @@ function sl(n) {
|
|
|
6403
6414
|
if (s.startsWith(Ns, i))
|
|
6404
6415
|
return { text: t, hiddenLength: i + Ns.length };
|
|
6405
6416
|
}
|
|
6406
|
-
function
|
|
6407
|
-
const s = Je(t), i =
|
|
6417
|
+
function ol(n, e, t) {
|
|
6418
|
+
const s = Je(t), i = al(n, e), o = new Set(n.items), r = (e.listLevel ?? 0) + 1, c = n.items.some((u) => u.checked !== void 0), a = [];
|
|
6408
6419
|
let l, d = 0;
|
|
6409
6420
|
for (const u of n.children) {
|
|
6410
6421
|
if (o.has(u)) {
|
|
@@ -6421,26 +6432,26 @@ function il(n, e, t) {
|
|
|
6421
6432
|
a.push($e(u, e, s?.get(u)));
|
|
6422
6433
|
d += u.length;
|
|
6423
6434
|
}
|
|
6424
|
-
return new
|
|
6435
|
+
return new Aa(n, a);
|
|
6425
6436
|
}
|
|
6426
6437
|
function ko(n, e, t, s = !1) {
|
|
6427
6438
|
const i = Je(t), o = e.listLevel ?? 1, r = wo(n, o, e.listIndentUnit ?? n.marker.length), c = n.blocks[0], a = n.checked !== void 0 && c?.kind === "paragraph" ? c.content[1] : void 0, l = {
|
|
6428
6439
|
...e,
|
|
6429
6440
|
taskLabelNode: a?.kind === "text" ? a : void 0,
|
|
6430
6441
|
listContinuation: { item: n, level: o, indentation: r, mixedTasks: s, outsideList: !1 }
|
|
6431
|
-
}, d = e.showMarkup ? void 0 :
|
|
6442
|
+
}, d = e.showMarkup ? void 0 : il(n), u = d !== void 0, h = u ? { ...l, hideRunnerMarkerNode: d.text, hideRunnerMarkerLength: d.hiddenLength } : l, f = [];
|
|
6432
6443
|
let m = 0;
|
|
6433
6444
|
for (const p of n.children) {
|
|
6434
6445
|
const g = h.selectionInNode ? { ...h, selectionInNode: h.selectionInNode.delta(-m) } : h;
|
|
6435
6446
|
f.push($e(p, g, i?.get(p))), m += p.length;
|
|
6436
6447
|
}
|
|
6437
|
-
return new
|
|
6448
|
+
return new Ka(n, e.showMarkup, f, e.listLevel ?? 1, u, r);
|
|
6438
6449
|
}
|
|
6439
6450
|
function wo(n, e, t) {
|
|
6440
6451
|
const s = n.leadingTrivia?.glueKind === "indent" ? n.leadingTrivia.length : 0;
|
|
6441
6452
|
return e === 1 ? s / t : e - 1;
|
|
6442
6453
|
}
|
|
6443
|
-
function
|
|
6454
|
+
function rl(n, e) {
|
|
6444
6455
|
const t = /^[ ]+/.exec(e.children.map((r) => r instanceof S ? r.content : "").join(""))?.[0].length ?? 0;
|
|
6445
6456
|
if (!t || n?.kind !== "list")
|
|
6446
6457
|
return;
|
|
@@ -6463,7 +6474,7 @@ function ol(n, e) {
|
|
|
6463
6474
|
s = a, o++;
|
|
6464
6475
|
}
|
|
6465
6476
|
}
|
|
6466
|
-
function
|
|
6477
|
+
function cl(n, e, t) {
|
|
6467
6478
|
const s = Je(t), i = e.showMarkup, o = n.delimiterRow, r = new Set(
|
|
6468
6479
|
[n.headerRow, n.delimiterRow, ...n.bodyRows].filter((l) => l !== void 0)
|
|
6469
6480
|
), c = [];
|
|
@@ -6480,10 +6491,10 @@ function rl(n, e, t) {
|
|
|
6480
6491
|
c.push($e(l, e, s?.get(l)));
|
|
6481
6492
|
a += l.length;
|
|
6482
6493
|
}
|
|
6483
|
-
return new
|
|
6494
|
+
return new Pa(n, c);
|
|
6484
6495
|
}
|
|
6485
6496
|
function bo(n, e, t, s) {
|
|
6486
|
-
const i = Je(s), o = e.showMarkup, r = t ? void 0 :
|
|
6497
|
+
const i = Je(s), o = e.showMarkup, r = t ? void 0 : ll(n, e), c = new Set(n.cells), a = [];
|
|
6487
6498
|
let l = 0;
|
|
6488
6499
|
for (const d of n.children) {
|
|
6489
6500
|
if (c.has(d)) {
|
|
@@ -6493,14 +6504,14 @@ function bo(n, e, t, s) {
|
|
|
6493
6504
|
a.push($e(d, e, i?.get(d)));
|
|
6494
6505
|
l += d.length;
|
|
6495
6506
|
}
|
|
6496
|
-
return new
|
|
6507
|
+
return new za(n, t, a);
|
|
6497
6508
|
}
|
|
6498
6509
|
function yo(n, e, t, s, i) {
|
|
6499
6510
|
const o = { showMarkup: e, showTableGlue: t, selectionInNode: s };
|
|
6500
|
-
return new
|
|
6511
|
+
return new qa(n, e, t, V(n.children, re(o), i));
|
|
6501
6512
|
}
|
|
6502
6513
|
const _t = /* @__PURE__ */ new Set();
|
|
6503
|
-
function
|
|
6514
|
+
function al(n, e) {
|
|
6504
6515
|
if (!e.showMarkup || !e.selectionInNode)
|
|
6505
6516
|
return _t;
|
|
6506
6517
|
const t = e.selectionInNode;
|
|
@@ -6516,12 +6527,12 @@ function cl(n, e) {
|
|
|
6516
6527
|
}
|
|
6517
6528
|
return s;
|
|
6518
6529
|
}
|
|
6519
|
-
function
|
|
6530
|
+
function ll(n, e) {
|
|
6520
6531
|
if (!e.showMarkup || !e.selectionInNode)
|
|
6521
6532
|
return _t;
|
|
6522
6533
|
const t = e.selectionInNode;
|
|
6523
6534
|
if (t.isEmpty) {
|
|
6524
|
-
const o =
|
|
6535
|
+
const o = dl(n, t.start);
|
|
6525
6536
|
return o === void 0 ? _t : /* @__PURE__ */ new Set([o]);
|
|
6526
6537
|
}
|
|
6527
6538
|
const s = /* @__PURE__ */ new Set();
|
|
@@ -6532,7 +6543,7 @@ function al(n, e) {
|
|
|
6532
6543
|
}
|
|
6533
6544
|
return s;
|
|
6534
6545
|
}
|
|
6535
|
-
function
|
|
6546
|
+
function dl(n, e) {
|
|
6536
6547
|
let t = 0;
|
|
6537
6548
|
for (const s of n.children) {
|
|
6538
6549
|
const i = t + s.length, o = n.cells.indexOf(s);
|
|
@@ -6541,7 +6552,7 @@ function ll(n, e) {
|
|
|
6541
6552
|
t = i;
|
|
6542
6553
|
}
|
|
6543
6554
|
}
|
|
6544
|
-
function
|
|
6555
|
+
function hl(n) {
|
|
6545
6556
|
const e = [], t = (s, i) => {
|
|
6546
6557
|
const o = s.children;
|
|
6547
6558
|
if (o.length === 0) {
|
|
@@ -6564,11 +6575,11 @@ function As(n, e) {
|
|
|
6564
6575
|
function Ot(n, e, t = Number.POSITIVE_INFINITY) {
|
|
6565
6576
|
if (t <= 0)
|
|
6566
6577
|
return [];
|
|
6567
|
-
const s =
|
|
6578
|
+
const s = hl(n), i = e.slice().sort((c, a) => c.start - a.start || c.endExclusive - a.endExclusive), o = [];
|
|
6568
6579
|
let r = 0;
|
|
6569
6580
|
for (const c of i) {
|
|
6570
6581
|
if (c.isEmpty) {
|
|
6571
|
-
const a =
|
|
6582
|
+
const a = ul(s, c.start);
|
|
6572
6583
|
if (a && (o.push({ range: As(a, c), sourceRange: c }), o.length >= t))
|
|
6573
6584
|
return o;
|
|
6574
6585
|
continue;
|
|
@@ -6591,10 +6602,10 @@ function Ot(n, e, t = Number.POSITIVE_INFINITY) {
|
|
|
6591
6602
|
function $t(n, e) {
|
|
6592
6603
|
return Ot(n, e).map((t) => t.range);
|
|
6593
6604
|
}
|
|
6594
|
-
function
|
|
6605
|
+
function ul(n, e) {
|
|
6595
6606
|
return n.find((t) => t.start <= e && e <= t.start + t.len);
|
|
6596
6607
|
}
|
|
6597
|
-
class
|
|
6608
|
+
class fl extends W {
|
|
6598
6609
|
constructor(e, t) {
|
|
6599
6610
|
super(), this._parent = e, this.element = document.createElement("div"), this.element.className = "md-diff-highlight-layer", t ? (this._coordinateSpace = t, this._coordinateProbe = void 0) : (this._coordinateProbe = document.createElementNS("http://www.w3.org/2000/svg", "svg"), this._coordinateProbe.setAttribute("aria-hidden", "true"), this._coordinateProbe.style.position = "absolute", this._coordinateProbe.style.inset = "0", this._coordinateProbe.style.width = "100%", this._coordinateProbe.style.height = "100%", this._coordinateProbe.style.visibility = "hidden", this._coordinateProbe.style.pointerEvents = "none", this.element.appendChild(this._coordinateProbe), this._coordinateSpace = Mt.forSvgOverlay(this._coordinateProbe)), this._resizeObserver = new ResizeObserver(() => {
|
|
6600
6611
|
this._last && this._repaint(this._last);
|
|
@@ -6654,14 +6665,14 @@ class ul extends W {
|
|
|
6654
6665
|
this.element.replaceChildren(...t);
|
|
6655
6666
|
}
|
|
6656
6667
|
}
|
|
6657
|
-
class
|
|
6668
|
+
class ml extends W {
|
|
6658
6669
|
element;
|
|
6659
6670
|
rendering;
|
|
6660
6671
|
_path;
|
|
6661
6672
|
constructor(e) {
|
|
6662
6673
|
super(), this.element = document.createElementNS("http://www.w3.org/2000/svg", "svg"), this.element.setAttribute("class", "md-selection-layer"), this._path = document.createElementNS("http://www.w3.org/2000/svg", "path"), this._path.setAttribute("class", "md-selection-path"), this.element.appendChild(this._path), this.rendering = I(this, (t) => {
|
|
6663
6674
|
const s = t.readObservable(e.selection), i = t.readObservable(e.visualLineMap), o = t.readObservable(e.blocks);
|
|
6664
|
-
return
|
|
6675
|
+
return pl(this._path, s, i, o);
|
|
6665
6676
|
}), this._register(M((t) => {
|
|
6666
6677
|
t.readObservable(this.rendering);
|
|
6667
6678
|
}));
|
|
@@ -6672,13 +6683,13 @@ class Ps {
|
|
|
6672
6683
|
this.rects = e;
|
|
6673
6684
|
}
|
|
6674
6685
|
}
|
|
6675
|
-
function
|
|
6686
|
+
function pl(n, e, t, s) {
|
|
6676
6687
|
if (!e || e.isCollapsed)
|
|
6677
6688
|
return n.setAttribute("d", ""), new Ps([]);
|
|
6678
6689
|
const i = Eo(e.range, t, s);
|
|
6679
|
-
return n.setAttribute("d",
|
|
6690
|
+
return n.setAttribute("d", kl(i, 4)), new Ps(i);
|
|
6680
6691
|
}
|
|
6681
|
-
const
|
|
6692
|
+
const gl = 0.4;
|
|
6682
6693
|
function Eo(n, e, t) {
|
|
6683
6694
|
if (n.isEmpty)
|
|
6684
6695
|
return [];
|
|
@@ -6701,7 +6712,7 @@ function Eo(n, e, t) {
|
|
|
6701
6712
|
w = h.xAtOffset(s.endExclusive);
|
|
6702
6713
|
else {
|
|
6703
6714
|
const C = s.endExclusive > _;
|
|
6704
|
-
w = h.rect.right + (C && m ? h.rect.height *
|
|
6715
|
+
w = h.rect.right + (C && m ? h.rect.height * gl : 0);
|
|
6705
6716
|
}
|
|
6706
6717
|
const b = xo(p);
|
|
6707
6718
|
b && (k = Math.max(k, b.left), w = Math.min(w, b.right)), c.push(i(k, h.rect.top, w, h.rect.bottom)), a.push({ left: k, right: w, top: h.rect.top, bottom: h.rect.top + h.rect.height });
|
|
@@ -6725,7 +6736,7 @@ function Eo(n, e, t) {
|
|
|
6725
6736
|
const f = t[h], m = t[h + 1], p = f.absoluteStart + f.block.length, g = m.absoluteStart;
|
|
6726
6737
|
if (p < g && !s.containsRange(v.fromTo(p, g)) || p >= g && !(u[h] && u[h + 1]))
|
|
6727
6738
|
continue;
|
|
6728
|
-
const _ = f.rect, k = m.rect, w =
|
|
6739
|
+
const _ = f.rect, k = m.rect, w = vl(e, m, k.top), b = _.bottom;
|
|
6729
6740
|
if (w <= b)
|
|
6730
6741
|
continue;
|
|
6731
6742
|
const C = d.get(f), A = l.get(m);
|
|
@@ -6760,10 +6771,10 @@ function Ht(n, e) {
|
|
|
6760
6771
|
function xo(n) {
|
|
6761
6772
|
return n?.viewportClip;
|
|
6762
6773
|
}
|
|
6763
|
-
function
|
|
6774
|
+
function _l(n, e) {
|
|
6764
6775
|
return n.find((t) => e >= t.absoluteStart && e <= t.absoluteStart + t.block.length);
|
|
6765
6776
|
}
|
|
6766
|
-
function
|
|
6777
|
+
function vl(n, e, t) {
|
|
6767
6778
|
const s = v.ofStartAndLength(e.absoluteStart, e.block.length);
|
|
6768
6779
|
for (const i of n.sourceLines) {
|
|
6769
6780
|
const o = vt(i);
|
|
@@ -6772,7 +6783,7 @@ function _l(n, e, t) {
|
|
|
6772
6783
|
}
|
|
6773
6784
|
return t;
|
|
6774
6785
|
}
|
|
6775
|
-
function
|
|
6786
|
+
function kl(n, e) {
|
|
6776
6787
|
if (n.length === 0)
|
|
6777
6788
|
return "";
|
|
6778
6789
|
const t = n.slice().sort((o, r) => o.y - r.y || o.x - r.x), s = [];
|
|
@@ -6781,9 +6792,9 @@ function vl(n, e) {
|
|
|
6781
6792
|
const r = i[i.length - 1], c = r !== void 0 && o.y <= r.y + r.height + 0.5, a = r !== void 0 && Math.max(r.x, o.x) < Math.min(r.x + r.width, o.x + o.width);
|
|
6782
6793
|
c && a ? i.push(o) : (i.length > 0 && s.push(i), i = [o]);
|
|
6783
6794
|
}
|
|
6784
|
-
return i.length > 0 && s.push(i), s.map((o) =>
|
|
6795
|
+
return i.length > 0 && s.push(i), s.map((o) => wl(o, e)).filter(Boolean).join(" ");
|
|
6785
6796
|
}
|
|
6786
|
-
function
|
|
6797
|
+
function wl(n, e) {
|
|
6787
6798
|
const t = [];
|
|
6788
6799
|
t.push({ x: n[0].x + n[0].width, y: n[0].y, convex: !0 });
|
|
6789
6800
|
for (let i = 0; i < n.length - 1; i++) {
|
|
@@ -6802,9 +6813,9 @@ function kl(n, e) {
|
|
|
6802
6813
|
t.push({ x: o.x, y: c, convex: a }), t.push({ x: r.x, y: c, convex: !a });
|
|
6803
6814
|
}
|
|
6804
6815
|
}
|
|
6805
|
-
return t.push({ x: n[0].x, y: n[0].y, convex: !0 }),
|
|
6816
|
+
return t.push({ x: n[0].x, y: n[0].y, convex: !0 }), bl(t, e);
|
|
6806
6817
|
}
|
|
6807
|
-
function
|
|
6818
|
+
function bl(n, e) {
|
|
6808
6819
|
const t = n.length;
|
|
6809
6820
|
if (t < 3)
|
|
6810
6821
|
return "";
|
|
@@ -6835,7 +6846,7 @@ function Kt(n, e, t) {
|
|
|
6835
6846
|
function le(n) {
|
|
6836
6847
|
return n.toFixed(2);
|
|
6837
6848
|
}
|
|
6838
|
-
class
|
|
6849
|
+
class yl extends W {
|
|
6839
6850
|
element;
|
|
6840
6851
|
rendering;
|
|
6841
6852
|
constructor(e) {
|
|
@@ -6846,7 +6857,7 @@ class bl extends W {
|
|
|
6846
6857
|
const o = i.lineIndexOfPosition(s);
|
|
6847
6858
|
if (o === void 0)
|
|
6848
6859
|
return this.element.style.display = "none", new ot(s, !1, L.EMPTY);
|
|
6849
|
-
const r = i.lineRect(o).withZeroWidthAt(i.xAtPosition(s)), c = e.blocks ? t.readObservable(e.blocks) : void 0, a = c && s.kind === "source" ? xo(
|
|
6860
|
+
const r = i.lineRect(o).withZeroWidthAt(i.xAtPosition(s)), c = e.blocks ? t.readObservable(e.blocks) : void 0, a = c && s.kind === "source" ? xo(_l(c, s.offset)) : void 0;
|
|
6850
6861
|
return a && (r.x < a.left - 0.5 || r.x > a.right + 0.5) ? (this.element.style.display = "none", new ot(s, !1, L.EMPTY)) : (this.element.style.left = `${r.x}px`, this.element.style.top = `${r.y}px`, this.element.style.height = `${r.height}px`, this.element.style.display = "", new ot(s, !0, r));
|
|
6851
6862
|
}), this._register(M((t) => {
|
|
6852
6863
|
t.readObservable(this.rendering);
|
|
@@ -6860,7 +6871,7 @@ class ot {
|
|
|
6860
6871
|
this.position = e, this.visible = t, this.rect = s;
|
|
6861
6872
|
}
|
|
6862
6873
|
}
|
|
6863
|
-
class
|
|
6874
|
+
class El extends W {
|
|
6864
6875
|
element;
|
|
6865
6876
|
rendering;
|
|
6866
6877
|
constructor(e) {
|
|
@@ -6876,7 +6887,7 @@ class yl extends W {
|
|
|
6876
6887
|
return new Bs([]);
|
|
6877
6888
|
const s = [];
|
|
6878
6889
|
for (const i of e) {
|
|
6879
|
-
const o = i.type === "deleted" || i.range.isEmpty ?
|
|
6890
|
+
const o = i.type === "deleted" || i.range.isEmpty ? Cl(i, t) : xl(i, t);
|
|
6880
6891
|
if (!o)
|
|
6881
6892
|
continue;
|
|
6882
6893
|
const r = document.createElement("div");
|
|
@@ -6890,20 +6901,20 @@ class Bs {
|
|
|
6890
6901
|
this.rects = e;
|
|
6891
6902
|
}
|
|
6892
6903
|
}
|
|
6893
|
-
function
|
|
6904
|
+
function xl(n, e) {
|
|
6894
6905
|
let t = 1 / 0, s = -1 / 0;
|
|
6895
6906
|
for (const i of e.sourceLines) {
|
|
6896
|
-
const o =
|
|
6907
|
+
const o = Sl(i);
|
|
6897
6908
|
!o || !n.range.intersects(o) || (t = Math.min(t, i.rect.top), s = Math.max(s, i.rect.top + i.rect.height));
|
|
6898
6909
|
}
|
|
6899
6910
|
if (!(s <= t))
|
|
6900
6911
|
return { type: n.type, y: t, height: s - t };
|
|
6901
6912
|
}
|
|
6902
|
-
function
|
|
6913
|
+
function Cl(n, e) {
|
|
6903
6914
|
const t = e.lineIndexOfOffset(n.range.start);
|
|
6904
6915
|
return { type: "deleted", y: e.lineRect(t).top, height: 0 };
|
|
6905
6916
|
}
|
|
6906
|
-
function
|
|
6917
|
+
function Sl(n) {
|
|
6907
6918
|
if (n.runs.length === 0)
|
|
6908
6919
|
return;
|
|
6909
6920
|
let e = 1 / 0, t = -1 / 0;
|
|
@@ -6914,11 +6925,11 @@ function Cl(n) {
|
|
|
6914
6925
|
function Ds(n) {
|
|
6915
6926
|
return n.windowHasFocus && n.focusIsUnclaimed;
|
|
6916
6927
|
}
|
|
6917
|
-
function
|
|
6928
|
+
function Ll(n) {
|
|
6918
6929
|
return !n.windowHasFocus;
|
|
6919
6930
|
}
|
|
6920
6931
|
const Fs = 1;
|
|
6921
|
-
function
|
|
6932
|
+
function Tl(n, e, t) {
|
|
6922
6933
|
if (Oo(n))
|
|
6923
6934
|
return;
|
|
6924
6935
|
const s = n.ownerDocument;
|
|
@@ -6986,14 +6997,14 @@ function Mo(n) {
|
|
|
6986
6997
|
n.clientHeight * s
|
|
6987
6998
|
);
|
|
6988
6999
|
}
|
|
6989
|
-
function
|
|
7000
|
+
function Ml(n, e, t) {
|
|
6990
7001
|
const s = n.getBoundingClientRect(), i = n.offsetWidth > 0 ? s.width / n.offsetWidth : 1, o = n.offsetHeight > 0 ? s.height / n.offsetHeight : 1;
|
|
6991
7002
|
return {
|
|
6992
7003
|
x: e / i,
|
|
6993
7004
|
y: t / o
|
|
6994
7005
|
};
|
|
6995
7006
|
}
|
|
6996
|
-
function
|
|
7007
|
+
function Ol(n) {
|
|
6997
7008
|
const e = Math.max(n.horizontalScrollbarHeight, 0);
|
|
6998
7009
|
return n.scrollHeight - n.clientHeight > e;
|
|
6999
7010
|
}
|
|
@@ -7004,17 +7015,17 @@ function Oo(n) {
|
|
|
7004
7015
|
const t = e.defaultView?.getComputedStyle(e.documentElement);
|
|
7005
7016
|
return t !== void 0 && t.overflowX === "visible" && t.overflowY === "visible";
|
|
7006
7017
|
}
|
|
7007
|
-
function
|
|
7018
|
+
function Rl(n) {
|
|
7008
7019
|
if (Oo(n))
|
|
7009
7020
|
return !1;
|
|
7010
7021
|
const e = n.ownerDocument.defaultView?.getComputedStyle(n), t = e ? parseFloat(e.borderTopWidth) + parseFloat(e.borderBottomWidth) : 0;
|
|
7011
|
-
return
|
|
7022
|
+
return Ol({
|
|
7012
7023
|
scrollHeight: n.scrollHeight,
|
|
7013
7024
|
clientHeight: n.clientHeight,
|
|
7014
7025
|
horizontalScrollbarHeight: n.offsetHeight - n.clientHeight - (Number.isFinite(t) ? t : 0)
|
|
7015
7026
|
});
|
|
7016
7027
|
}
|
|
7017
|
-
function
|
|
7028
|
+
function Il(n) {
|
|
7018
7029
|
const t = n.ownerDocument.defaultView ?? window, s = [];
|
|
7019
7030
|
for (let i = n.parentElement; i; i = i.parentElement) {
|
|
7020
7031
|
const o = t.getComputedStyle(i), r = $s(o.overflowX) && i.scrollWidth > i.clientWidth, c = $s(o.overflowY) && i.scrollHeight > i.clientHeight;
|
|
@@ -7031,11 +7042,11 @@ function Ws(n) {
|
|
|
7031
7042
|
function $s(n) {
|
|
7032
7043
|
return n === "auto" || n === "scroll" || n === "hidden";
|
|
7033
7044
|
}
|
|
7034
|
-
const
|
|
7035
|
-
class
|
|
7045
|
+
const Nl = 900, He = 2, Ro = 5, Ee = 16;
|
|
7046
|
+
class nh extends W {
|
|
7036
7047
|
constructor(e, t) {
|
|
7037
7048
|
super(), this._model = e, this._options = t, this._options?.presentation !== void 0 && this._model.presentation.set(this._options.presentation, void 0), this._register({ dispose: () => this._pendingTopReveal?.dispose() }), this.element = document.createElement("div"), this.element.className = "md-editor", this._options?.classNames && this.element.classList.add(...this._options.classNames), this.element.tabIndex = 0, this._contentContainer = document.createElement("div"), this._contentContainer.className = "md-editor-content", this.element.appendChild(this._contentContainer);
|
|
7038
|
-
const s = this._options?.limitedWidth ?? $n(
|
|
7049
|
+
const s = this._options?.limitedWidth ?? $n(Nl);
|
|
7039
7050
|
this._register(M((h) => {
|
|
7040
7051
|
const f = s.read(h);
|
|
7041
7052
|
this._contentContainer.style.maxWidth = f === void 0 ? "" : `${f}px`;
|
|
@@ -7067,18 +7078,18 @@ class th extends W {
|
|
|
7067
7078
|
dispose: () => {
|
|
7068
7079
|
this._contentContainer.removeEventListener("scroll", l, { capture: !0 }), a && cancelAnimationFrame(a);
|
|
7069
7080
|
}
|
|
7070
|
-
}), this._selectionView = this._register(new
|
|
7081
|
+
}), this._selectionView = this._register(new ml({
|
|
7071
7082
|
selection: this._model.selection,
|
|
7072
7083
|
visualLineMap: this.measuredLayout.visualLineMap,
|
|
7073
7084
|
blocks: this._selectionBlocksObs
|
|
7074
|
-
})), this._contentContainer.appendChild(this._selectionView.element), this.coordinateSpace = Mt.forSvgOverlay(this._selectionView.element), this._cursorView = this._register(new
|
|
7085
|
+
})), this._contentContainer.appendChild(this._selectionView.element), this.coordinateSpace = Mt.forSvgOverlay(this._selectionView.element), this._cursorView = this._register(new yl({
|
|
7075
7086
|
position: this._model.cursorPosition,
|
|
7076
7087
|
visualLineMap: this.measuredLayout.visualLineMap,
|
|
7077
7088
|
blocks: this._selectionBlocksObs
|
|
7078
|
-
})), this._contentContainer.appendChild(this._cursorView.element), this._gutterMarkersView = this._register(new
|
|
7089
|
+
})), this._contentContainer.appendChild(this._cursorView.element), this._gutterMarkersView = this._register(new El({
|
|
7079
7090
|
markers: this._model.gutterMarkers,
|
|
7080
7091
|
visualLineMap: this.measuredLayout.visualLineMap
|
|
7081
|
-
})), this._contentContainer.appendChild(this._gutterMarkersView.element), this._diffHighlightsView = this._register(new
|
|
7092
|
+
})), this._contentContainer.appendChild(this._gutterMarkersView.element), this._diffHighlightsView = this._register(new fl(this._contentContainer, this.coordinateSpace)), this._contentContainer.appendChild(this._diffHighlightsView.element), this._register(M((h) => {
|
|
7082
7093
|
const f = this._model.readonlyMode.read(h);
|
|
7083
7094
|
this.element.classList.toggle("md-readonly", f), f || this.element.classList.remove("md-readonly-editing-attempt");
|
|
7084
7095
|
})), this.showReadonlyToggle.set(this._options?.showReadonlyToggle !== !1, void 0), this.highlightActiveBlock.set(this._options?.highlightActiveBlock !== !1, void 0), this._register(M((h) => {
|
|
@@ -7497,7 +7508,7 @@ class th extends W {
|
|
|
7497
7508
|
this.focus();
|
|
7498
7509
|
return;
|
|
7499
7510
|
}
|
|
7500
|
-
if (!
|
|
7511
|
+
if (!Ll(e))
|
|
7501
7512
|
return;
|
|
7502
7513
|
const t = this.element.ownerDocument.defaultView ?? window, s = () => {
|
|
7503
7514
|
t.removeEventListener("focus", s), this.tryAutoFocus();
|
|
@@ -7620,7 +7631,7 @@ class th extends W {
|
|
|
7620
7631
|
} : void 0
|
|
7621
7632
|
);
|
|
7622
7633
|
this._previousViewData = p;
|
|
7623
|
-
const g = l ?
|
|
7634
|
+
const g = l ? Za(p, l.items, this._options?.diffDecorationsActive) : p;
|
|
7624
7635
|
this._viewData.set(g, void 0);
|
|
7625
7636
|
const _ = {
|
|
7626
7637
|
...this._options,
|
|
@@ -7719,7 +7730,7 @@ class th extends W {
|
|
|
7719
7730
|
if (!l)
|
|
7720
7731
|
return;
|
|
7721
7732
|
const d = () => {
|
|
7722
|
-
const u =
|
|
7733
|
+
const u = Al(r.flatMap((f) => Array.from(f.range.getClientRects())));
|
|
7723
7734
|
if (u || !e.isEmpty)
|
|
7724
7735
|
return u;
|
|
7725
7736
|
const h = this.measuredLayout.visualLineMap.get();
|
|
@@ -7747,13 +7758,13 @@ class th extends W {
|
|
|
7747
7758
|
let a = this._isRevealOccluded(r);
|
|
7748
7759
|
if (i !== "top" && Vs(c, zt(r, c, o)) && !a)
|
|
7749
7760
|
return;
|
|
7750
|
-
const l =
|
|
7761
|
+
const l = Il(e), d = i === "top" ? /* @__PURE__ */ new Map() : void 0, u = i === "top" ? l.find((w) => Rl(w)) : void 0;
|
|
7751
7762
|
for (let w = 0; w < l.length; w++) {
|
|
7752
7763
|
const b = l[w];
|
|
7753
7764
|
r = t() ?? r, a = this._isRevealOccluded(r);
|
|
7754
|
-
const C = Mo(b), A = zt(r, C, o), ne = b.scrollWidth > b.clientWidth, X = b.scrollHeight > b.clientHeight, q = b === u, Le = i === "top" && !q ? "nearest" : i, Bo = q ? this._topRevealInset(C, r) : Ee, Dn = i === "top" && !q ? this._unoccludedViewport(C, r) : C, Fn = Ks(Dn, C), Vn = zs(A, Dn, Le, Bo), Wn =
|
|
7765
|
+
const C = Mo(b), A = zt(r, C, o), ne = b.scrollWidth > b.clientWidth, X = b.scrollHeight > b.clientHeight, q = b === u, Le = i === "top" && !q ? "nearest" : i, Bo = q ? this._topRevealInset(C, r) : Ee, Dn = i === "top" && !q ? this._unoccludedViewport(C, r) : C, Fn = Ks(Dn, C), Vn = zs(A, Dn, Le, Bo), Wn = Ml(b, Vn.x, Vn.y), Rt = ne && (r.left < C.left || r.right > C.right) ? b.scrollLeft + Wn.x : b.scrollLeft, It = X && (q || A.top < Fn.top || A.bottom > Fn.bottom || a) ? b.scrollTop + Wn.y : b.scrollTop, Do = It !== b.scrollTop;
|
|
7755
7766
|
if (Rt !== b.scrollLeft || Do) {
|
|
7756
|
-
const Nt = d ?
|
|
7767
|
+
const Nt = d ? Tl(b, Rt, It) : void 0;
|
|
7757
7768
|
b.scrollTo({
|
|
7758
7769
|
left: Rt,
|
|
7759
7770
|
top: It,
|
|
@@ -7843,7 +7854,7 @@ class th extends W {
|
|
|
7843
7854
|
*_activeRevealOcclusions() {
|
|
7844
7855
|
for (const e of this._revealOcclusions) {
|
|
7845
7856
|
const s = e.ownerDocument.defaultView?.getComputedStyle(e).visibility;
|
|
7846
|
-
e.isConnected && e.getClientRects().length > 0 && s !== "hidden" && s !== "collapse" && (yield
|
|
7857
|
+
e.isConnected && e.getClientRects().length > 0 && s !== "hidden" && s !== "collapse" && (yield Pl(e.getBoundingClientRect()));
|
|
7847
7858
|
}
|
|
7848
7859
|
}
|
|
7849
7860
|
/**
|
|
@@ -7905,7 +7916,7 @@ function Hs(n, e) {
|
|
|
7905
7916
|
const t = n.width === 0 ? e.containsX(n.left) : Math.max(n.left, e.left) < Math.min(n.right, e.right), s = n.height === 0 ? e.containsY(n.top) : Math.max(n.top, e.top) < Math.min(n.bottom, e.bottom);
|
|
7906
7917
|
return t && s;
|
|
7907
7918
|
}
|
|
7908
|
-
function
|
|
7919
|
+
function Al(n) {
|
|
7909
7920
|
if (n.length === 0)
|
|
7910
7921
|
return;
|
|
7911
7922
|
let e = Number.POSITIVE_INFINITY, t = Number.POSITIVE_INFINITY, s = Number.NEGATIVE_INFINITY, i = Number.NEGATIVE_INFINITY;
|
|
@@ -7913,7 +7924,7 @@ function Nl(n) {
|
|
|
7913
7924
|
e = Math.min(e, o.left), t = Math.min(t, o.top), s = Math.max(s, o.right), i = Math.max(i, o.bottom);
|
|
7914
7925
|
return L.fromPointPoint(e, t, s, i);
|
|
7915
7926
|
}
|
|
7916
|
-
function
|
|
7927
|
+
function Pl(n) {
|
|
7917
7928
|
return L.fromPointPoint(n.left, n.top, n.right, n.bottom);
|
|
7918
7929
|
}
|
|
7919
7930
|
function Ks(n, e) {
|
|
@@ -7947,8 +7958,8 @@ function zt(n, e, t) {
|
|
|
7947
7958
|
n.bottom + o
|
|
7948
7959
|
);
|
|
7949
7960
|
}
|
|
7950
|
-
const
|
|
7951
|
-
class
|
|
7961
|
+
const Bl = 1e3, Dl = "md-editor-find-match", Fl = "md-editor-find-current", qs = /* @__PURE__ */ new WeakMap();
|
|
7962
|
+
class Vl {
|
|
7952
7963
|
constructor(e) {
|
|
7953
7964
|
this._registry = e;
|
|
7954
7965
|
}
|
|
@@ -7966,24 +7977,24 @@ class Fl {
|
|
|
7966
7977
|
}
|
|
7967
7978
|
_refresh() {
|
|
7968
7979
|
const e = [...this._entries].flatMap((s) => s.matches), t = [...this._entries].flatMap((s) => s.current);
|
|
7969
|
-
this._set(
|
|
7980
|
+
this._set(Dl, e), this._set(Fl, t);
|
|
7970
7981
|
}
|
|
7971
7982
|
_set(e, t) {
|
|
7972
7983
|
t.length === 0 ? this._registry.delete(e) : this._registry.set(e, new Highlight(...t));
|
|
7973
7984
|
}
|
|
7974
7985
|
}
|
|
7975
|
-
function
|
|
7986
|
+
function Wl(n) {
|
|
7976
7987
|
const e = n.defaultView?.CSS.highlights;
|
|
7977
7988
|
if (!e)
|
|
7978
7989
|
return { update: () => {
|
|
7979
7990
|
}, dispose: () => {
|
|
7980
7991
|
} };
|
|
7981
7992
|
let t = qs.get(n);
|
|
7982
|
-
return t || (t = new
|
|
7993
|
+
return t || (t = new Vl(e), qs.set(n, t)), t.add();
|
|
7983
7994
|
}
|
|
7984
|
-
class
|
|
7995
|
+
class $l extends W {
|
|
7985
7996
|
constructor(e, t) {
|
|
7986
|
-
super(), this._view = e, this._matchesLayer = Gs("md-find-matches-layer"), this._currentLayer = Gs("md-find-current-layer"), this._highlightRegistration = this._register(
|
|
7997
|
+
super(), this._view = e, this._matchesLayer = Gs("md-find-matches-layer"), this._currentLayer = Gs("md-find-current-layer"), this._highlightRegistration = this._register(Wl(this._view.element.ownerDocument)), this._register(this._view.mountOverlay(this._matchesLayer, "below-selection")), this._register(this._view.mountOverlay(this._currentLayer, "above-decorations")), this._register(M((r) => {
|
|
7987
7998
|
const c = t.isRevealed.read(r);
|
|
7988
7999
|
if (!c) {
|
|
7989
8000
|
this._snapshot = void 0, this._schedulePaint();
|
|
@@ -8031,9 +8042,9 @@ class Wl extends W {
|
|
|
8031
8042
|
this._matchesLayer.replaceChildren(), this._currentLayer.replaceChildren(), this._highlightRegistration.update([], []);
|
|
8032
8043
|
return;
|
|
8033
8044
|
}
|
|
8034
|
-
const t = this._view.coordinateSpace.capture(), s = To(this._view.overlayContainer), i = t.toLocalRect(s), o =
|
|
8045
|
+
const t = this._view.coordinateSpace.capture(), s = To(this._view.overlayContainer), i = t.toLocalRect(s), o = Hl(
|
|
8035
8046
|
this._view.measuredLayout.visualLineMap.get().sourceLines.flatMap((u) => Math.max(u.rect.top, i.top) >= Math.min(u.rect.bottom, i.bottom) ? [] : u.runs.flatMap((h) => {
|
|
8036
|
-
const f =
|
|
8047
|
+
const f = Kl(h, u.rect, i);
|
|
8037
8048
|
return f ? [f] : [];
|
|
8038
8049
|
}))
|
|
8039
8050
|
), r = Xs(
|
|
@@ -8046,7 +8057,7 @@ class Wl extends W {
|
|
|
8046
8057
|
e.measurements,
|
|
8047
8058
|
i,
|
|
8048
8059
|
"md-find-match-rect",
|
|
8049
|
-
|
|
8060
|
+
Bl
|
|
8050
8061
|
), d = this._paintRanges(
|
|
8051
8062
|
this._currentLayer,
|
|
8052
8063
|
e.document,
|
|
@@ -8149,7 +8160,7 @@ function Qs(n, e) {
|
|
|
8149
8160
|
return o;
|
|
8150
8161
|
}
|
|
8151
8162
|
}
|
|
8152
|
-
function
|
|
8163
|
+
function Hl(n) {
|
|
8153
8164
|
const e = n.slice().sort((s, i) => s.start - i.start || s.endExclusive - i.endExclusive), t = [];
|
|
8154
8165
|
for (const s of e) {
|
|
8155
8166
|
const i = t[t.length - 1];
|
|
@@ -8157,7 +8168,7 @@ function $l(n) {
|
|
|
8157
8168
|
}
|
|
8158
8169
|
return t;
|
|
8159
8170
|
}
|
|
8160
|
-
function
|
|
8171
|
+
function Kl(n, e, t) {
|
|
8161
8172
|
if (n.sourceRange.isEmpty)
|
|
8162
8173
|
return t.left <= n.rect.left && n.rect.left <= t.right ? n.sourceRange : void 0;
|
|
8163
8174
|
let s = n.sourceStart;
|
|
@@ -8194,7 +8205,7 @@ function Ys(n, e, t) {
|
|
|
8194
8205
|
const s = Math.max(n.left, e.left, t?.left ?? Number.NEGATIVE_INFINITY), i = Math.min(n.right, e.right, t?.right ?? Number.POSITIVE_INFINITY), o = Math.max(n.top, e.top), r = Math.min(n.bottom, e.bottom);
|
|
8195
8206
|
return s < i && o < r ? L.fromPointPoint(s, o, i, r) : void 0;
|
|
8196
8207
|
}
|
|
8197
|
-
const
|
|
8208
|
+
const zl = 19999;
|
|
8198
8209
|
class kt {
|
|
8199
8210
|
constructor(e, t, s, i, o) {
|
|
8200
8211
|
this._source = e, this._flags = t, this._wholeWord = s, this._wordSeparators = i, this.isEmpty = o;
|
|
@@ -8205,7 +8216,7 @@ class kt {
|
|
|
8205
8216
|
kind: "valid",
|
|
8206
8217
|
pattern: new kt("", "gmu", e.wholeWord, e.wordSeparators, !0)
|
|
8207
8218
|
};
|
|
8208
|
-
const t = e.isRegex ? e.searchString :
|
|
8219
|
+
const t = e.isRegex ? e.searchString : ql(e.searchString), s = `gmu${e.matchCase ? "" : "i"}`;
|
|
8209
8220
|
try {
|
|
8210
8221
|
new RegExp(t, s);
|
|
8211
8222
|
} catch (i) {
|
|
@@ -8219,7 +8230,7 @@ class kt {
|
|
|
8219
8230
|
pattern: new kt(t, s, e.wholeWord, e.wordSeparators, !1)
|
|
8220
8231
|
};
|
|
8221
8232
|
}
|
|
8222
|
-
findMatches(e, t, s =
|
|
8233
|
+
findMatches(e, t, s = zl) {
|
|
8223
8234
|
if (this.isEmpty || s <= 0)
|
|
8224
8235
|
return { matches: [], isCapped: !1 };
|
|
8225
8236
|
const i = [];
|
|
@@ -8241,7 +8252,7 @@ class kt {
|
|
|
8241
8252
|
return this._forEachMatch(e, s, (d) => o?.equals(d) ? (l = !0, !0) : (a = d, d.endExclusive <= r && (c = d), !0)), c ?? (i ? a : void 0) ?? (l ? o : void 0);
|
|
8242
8253
|
}
|
|
8243
8254
|
_forEachMatch(e, t, s) {
|
|
8244
|
-
const i =
|
|
8255
|
+
const i = Ul(t, e.length);
|
|
8245
8256
|
if (i?.isEmpty)
|
|
8246
8257
|
return;
|
|
8247
8258
|
const o = new RegExp(this._source, this._flags);
|
|
@@ -8250,29 +8261,29 @@ class kt {
|
|
|
8250
8261
|
if (!r)
|
|
8251
8262
|
return;
|
|
8252
8263
|
const c = v.ofStartAndLength(r.index, r[0].length);
|
|
8253
|
-
if ((!i || i.containsRange(c)) && (!this._wholeWord ||
|
|
8264
|
+
if ((!i || i.containsRange(c)) && (!this._wholeWord || Gl(e, c, this._wordSeparators)) && !s(c))
|
|
8254
8265
|
return;
|
|
8255
|
-
r[0].length === 0 && (o.lastIndex =
|
|
8266
|
+
r[0].length === 0 && (o.lastIndex = Xl(e, o.lastIndex));
|
|
8256
8267
|
}
|
|
8257
8268
|
}
|
|
8258
8269
|
}
|
|
8259
8270
|
function Io(n) {
|
|
8260
8271
|
return n.replace(/[\\{}()[\]^$+*?.|]/g, "\\$&");
|
|
8261
8272
|
}
|
|
8262
|
-
function
|
|
8273
|
+
function ql(n) {
|
|
8263
8274
|
return n.split(/\r\n|\r|\n/).map(Io).join("(?:\\r\\n|[\\r\\n])");
|
|
8264
8275
|
}
|
|
8265
|
-
function
|
|
8276
|
+
function Ul(n, e) {
|
|
8266
8277
|
if (!n)
|
|
8267
8278
|
return;
|
|
8268
8279
|
const t = wt(n.start, 0, e), s = wt(n.endExclusive, 0, e);
|
|
8269
8280
|
return t <= s ? new v(t, s) : v.emptyAt(t);
|
|
8270
8281
|
}
|
|
8271
|
-
function
|
|
8282
|
+
function Gl(n, e, t) {
|
|
8272
8283
|
const s = n[e.start - 1], i = n[e.start], o = n[e.endExclusive - 1], r = n[e.endExclusive], c = e.start === 0 || !et(s, t) || e.length > 0 && !et(i, t), a = e.endExclusive === n.length || !et(r, t) || e.length > 0 && !et(o, t);
|
|
8273
8284
|
return c && a;
|
|
8274
8285
|
}
|
|
8275
|
-
function
|
|
8286
|
+
function Xl(n, e) {
|
|
8276
8287
|
if (e >= n.length)
|
|
8277
8288
|
return n.length + 1;
|
|
8278
8289
|
const t = n.charCodeAt(e);
|
|
@@ -8309,7 +8320,7 @@ class No {
|
|
|
8309
8320
|
return this._observedSourceTextId = t, { sourceIdentityChanged: i, isExpected: o };
|
|
8310
8321
|
}
|
|
8311
8322
|
}
|
|
8312
|
-
class
|
|
8323
|
+
class Ql extends W {
|
|
8313
8324
|
constructor(e) {
|
|
8314
8325
|
super(), this._editorModel = e, this._sourceEditTracker = new No(this._editorModel);
|
|
8315
8326
|
let t = this._inputSnapshot();
|
|
@@ -8323,7 +8334,7 @@ class Xl extends W {
|
|
|
8323
8334
|
});
|
|
8324
8335
|
return;
|
|
8325
8336
|
}
|
|
8326
|
-
const d = r.isRevealed && !t.isRevealed, u = !
|
|
8337
|
+
const d = r.isRevealed && !t.isRevealed, u = !Yl(r, t), h = !Zl(r.scope, t.scope) && !a;
|
|
8327
8338
|
if (!r.isRevealed)
|
|
8328
8339
|
t.isRevealed && this.currentMatch.set(void 0, void 0);
|
|
8329
8340
|
else {
|
|
@@ -8334,7 +8345,7 @@ class Xl extends W {
|
|
|
8334
8345
|
this._selectFromOrigin(f, this._pendingInitialDirection ?? "next");
|
|
8335
8346
|
else if (a) {
|
|
8336
8347
|
const m = this.currentMatch.get();
|
|
8337
|
-
m && !
|
|
8348
|
+
m && !jl(f, o, r.scope, m) && this.currentMatch.set(void 0, void 0);
|
|
8338
8349
|
}
|
|
8339
8350
|
}
|
|
8340
8351
|
this._pendingInitialDirection = void 0, this._pendingInitialDirection = void 0, t = r;
|
|
@@ -8440,7 +8451,7 @@ class Xl extends W {
|
|
|
8440
8451
|
t && this.searchScope.set(Zs(e.edit, t), e.transaction);
|
|
8441
8452
|
const s = this.currentMatch.get();
|
|
8442
8453
|
s && this.currentMatch.set(
|
|
8443
|
-
|
|
8454
|
+
Jl(e.edit, s) ? void 0 : Zs(e.edit, s),
|
|
8444
8455
|
e.transaction
|
|
8445
8456
|
);
|
|
8446
8457
|
}
|
|
@@ -8465,13 +8476,13 @@ class Xl extends W {
|
|
|
8465
8476
|
};
|
|
8466
8477
|
}
|
|
8467
8478
|
}
|
|
8468
|
-
function
|
|
8479
|
+
function jl(n, e, t, s) {
|
|
8469
8480
|
return n.pattern.findNextMatch(e, s.start, t, !1)?.equals(s) ?? !1;
|
|
8470
8481
|
}
|
|
8471
|
-
function
|
|
8482
|
+
function Yl(n, e) {
|
|
8472
8483
|
return n.searchString === e.searchString && n.isRegex === e.isRegex && n.matchCase === e.matchCase && n.wholeWord === e.wholeWord;
|
|
8473
8484
|
}
|
|
8474
|
-
function
|
|
8485
|
+
function Zl(n, e) {
|
|
8475
8486
|
return n === e || !!n && !!e && n.equals(e);
|
|
8476
8487
|
}
|
|
8477
8488
|
function Zs(n, e) {
|
|
@@ -8492,7 +8503,7 @@ function dn(n, e, t) {
|
|
|
8492
8503
|
}
|
|
8493
8504
|
return e + s;
|
|
8494
8505
|
}
|
|
8495
|
-
function
|
|
8506
|
+
function Jl(n, e) {
|
|
8496
8507
|
return n.replacements.some((t) => {
|
|
8497
8508
|
const s = t.replaceRange;
|
|
8498
8509
|
return s.isEmpty ? e.start < s.start && s.start < e.endExclusive : e.isEmpty ? s.contains(e.start) : s.intersects(e);
|
|
@@ -8501,7 +8512,7 @@ function Zl(n, e) {
|
|
|
8501
8512
|
function qt(n, e, t) {
|
|
8502
8513
|
return Math.min(Math.max(n, e), t);
|
|
8503
8514
|
}
|
|
8504
|
-
class
|
|
8515
|
+
class ed extends W {
|
|
8505
8516
|
constructor(e, t) {
|
|
8506
8517
|
super(), this._view = e, this._options = t, this.element = document.createElement("div"), this.element.className = "md-find-widget-host", this.element.hidden = !0, this.panelElement = document.createElement("div"), this.panelElement.className = "md-find-widget", this.panelElement.setAttribute("role", "dialog"), this.panelElement.setAttribute("aria-label", "Find"), this.element.appendChild(this.panelElement);
|
|
8507
8518
|
const s = document.createElement("div");
|
|
@@ -8573,16 +8584,16 @@ function rt(n, e) {
|
|
|
8573
8584
|
function ct(n, e) {
|
|
8574
8585
|
n.setAttribute("aria-pressed", String(e)), n.classList.toggle("md-find-option-active", e);
|
|
8575
8586
|
}
|
|
8576
|
-
class
|
|
8587
|
+
class td extends W {
|
|
8577
8588
|
constructor(e, t, s) {
|
|
8578
|
-
super(), this._editorModel = e, this._view = t, this._options = s, this._observedSourceTextId = this._editorModel.getSourceTextId(this._editorModel.sourceText.get()), this._sourceEditTracker = new No(this._editorModel), this.model = this._register(new
|
|
8589
|
+
super(), this._editorModel = e, this._view = t, this._options = s, this._observedSourceTextId = this._editorModel.getSourceTextId(this._editorModel.sourceText.get()), this._sourceEditTracker = new No(this._editorModel), this.model = this._register(new Ql(this._editorModel)), this._register(this._editorModel.onWillApplySourceEdit((c) => {
|
|
8579
8590
|
this._sourceEditTracker.record(c);
|
|
8580
8591
|
}));
|
|
8581
8592
|
const i = I(this, (c) => {
|
|
8582
8593
|
const a = this._selectionForScope.read(c);
|
|
8583
8594
|
return !!a && !a.isCollapsed;
|
|
8584
8595
|
});
|
|
8585
|
-
this.widget = this._register(new
|
|
8596
|
+
this.widget = this._register(new ed(this._view, {
|
|
8586
8597
|
findModel: this.model,
|
|
8587
8598
|
canFindInSelection: i,
|
|
8588
8599
|
onNext: () => {
|
|
@@ -8593,7 +8604,7 @@ class ed extends W {
|
|
|
8593
8604
|
},
|
|
8594
8605
|
onToggleFindInSelection: () => this._toggleFindInSelection(),
|
|
8595
8606
|
onClose: () => this.close()
|
|
8596
|
-
})), this._register(new
|
|
8607
|
+
})), this._register(new $l(this._view, this.model));
|
|
8597
8608
|
const o = (c) => this._handleKeyDown(c);
|
|
8598
8609
|
this._view.element.addEventListener("keydown", o, !0), this._register({
|
|
8599
8610
|
dispose: () => this._view.element.removeEventListener("keydown", o, !0)
|
|
@@ -8618,7 +8629,7 @@ class ed extends W {
|
|
|
8618
8629
|
}
|
|
8619
8630
|
const p = !this._selectedMatch?.equals(h);
|
|
8620
8631
|
let g = /* @__PURE__ */ new Set();
|
|
8621
|
-
this._forcedMatch?.equals(h) ? g = new Set(jt(f, h.start, h.endExclusive)) : (m ?
|
|
8632
|
+
this._forcedMatch?.equals(h) ? g = new Set(jt(f, h.start, h.endExclusive)) : (m ? sd(m, h) : !1) ? this._forcedMatch = void 0 : (g = new Set(jt(f, h.start, h.endExclusive)), this._forcedMatch = h), K((_) => {
|
|
8622
8633
|
Js(this._view.forcedMarkerVisibleBlocks.get(), g) || this._view.forcedMarkerVisibleBlocks.set(g, _);
|
|
8623
8634
|
const k = this._editorModel.selection.get();
|
|
8624
8635
|
p && !d && (!k || !k.range.equals(h)) && (this._editorModel.pendingParagraph.set(void 0, _), this._editorModel.selectionSource.set("find", _), this._editorModel.selection.set(new y(h.start, h.endExclusive), _));
|
|
@@ -8662,7 +8673,7 @@ class ed extends W {
|
|
|
8662
8673
|
return;
|
|
8663
8674
|
const t = e.target, s = t instanceof Node && this.widget.panelElement.contains(t);
|
|
8664
8675
|
if (!(t !== this._view.element && !s)) {
|
|
8665
|
-
if (
|
|
8676
|
+
if (nd(e, this._options.keyboardPlatform)) {
|
|
8666
8677
|
Gt(e), this.openAndFocus();
|
|
8667
8678
|
return;
|
|
8668
8679
|
}
|
|
@@ -8720,7 +8731,7 @@ class ed extends W {
|
|
|
8720
8731
|
!e || e.isCollapsed || (this.model.setSearchOrigin(e.range.start), this.model.setSearchScope(e.range));
|
|
8721
8732
|
}
|
|
8722
8733
|
}
|
|
8723
|
-
function
|
|
8734
|
+
function nd(n, e) {
|
|
8724
8735
|
return n.key.toLowerCase() === "f" && !n.shiftKey && !n.altKey && (e === "macos" ? n.metaKey && !n.ctrlKey : n.ctrlKey && !n.metaKey);
|
|
8725
8736
|
}
|
|
8726
8737
|
function Gt(n) {
|
|
@@ -8729,7 +8740,7 @@ function Gt(n) {
|
|
|
8729
8740
|
function Js(n, e) {
|
|
8730
8741
|
return n.size === e.size && Array.from(n).every((t) => e.has(t));
|
|
8731
8742
|
}
|
|
8732
|
-
function
|
|
8743
|
+
function sd(n, e) {
|
|
8733
8744
|
const t = Ot(n, [e]);
|
|
8734
8745
|
return e.isEmpty ? t.some((i) => ei(i.range)) : t.reduce((i, o) => {
|
|
8735
8746
|
const r = Array.from(o.range.getClientRects()).some((c) => c.width > 0 && c.height > 0) && ei(o.range);
|
|
@@ -8748,7 +8759,7 @@ function ei(n) {
|
|
|
8748
8759
|
}
|
|
8749
8760
|
return !0;
|
|
8750
8761
|
}
|
|
8751
|
-
function
|
|
8762
|
+
function sh(n, e = () => {
|
|
8752
8763
|
n.ownerDocument.execCommand("paste");
|
|
8753
8764
|
}) {
|
|
8754
8765
|
const s = n.ownerDocument.createElement("textarea");
|
|
@@ -8763,7 +8774,7 @@ function nh(n, e = () => {
|
|
|
8763
8774
|
s.remove(), n.focus({ preventScroll: !0 });
|
|
8764
8775
|
}
|
|
8765
8776
|
}
|
|
8766
|
-
class
|
|
8777
|
+
class id {
|
|
8767
8778
|
connect(e) {
|
|
8768
8779
|
const t = (r) => {
|
|
8769
8780
|
if (dt(r.target, e.element) || ht(r.target, e.element))
|
|
@@ -8789,7 +8800,7 @@ class sd {
|
|
|
8789
8800
|
};
|
|
8790
8801
|
}
|
|
8791
8802
|
}
|
|
8792
|
-
class
|
|
8803
|
+
class ih {
|
|
8793
8804
|
constructor(e = navigator.clipboard, t) {
|
|
8794
8805
|
this._clipboard = e, this._paste = t;
|
|
8795
8806
|
}
|
|
@@ -8802,7 +8813,7 @@ class sh {
|
|
|
8802
8813
|
return;
|
|
8803
8814
|
const r = dt(i.target, e.element);
|
|
8804
8815
|
if (r) {
|
|
8805
|
-
|
|
8816
|
+
od(i, r, this._clipboard);
|
|
8806
8817
|
return;
|
|
8807
8818
|
}
|
|
8808
8819
|
if (!ht(i.target, e.element))
|
|
@@ -8848,7 +8859,7 @@ function ht(n, e) {
|
|
|
8848
8859
|
const s = (n instanceof Element ? n : n.parentElement)?.closest("video, audio");
|
|
8849
8860
|
return s instanceof HTMLMediaElement && e.contains(s);
|
|
8850
8861
|
}
|
|
8851
|
-
function
|
|
8862
|
+
function od(n, e, t) {
|
|
8852
8863
|
switch (n.key.toLowerCase()) {
|
|
8853
8864
|
case "c": {
|
|
8854
8865
|
const s = ti(e);
|
|
@@ -8906,17 +8917,17 @@ const hn = {
|
|
|
8906
8917
|
...e,
|
|
8907
8918
|
action: n.action
|
|
8908
8919
|
})))
|
|
8909
|
-
},
|
|
8920
|
+
}, oh = {
|
|
8910
8921
|
bindings: un.filter((n) => n.routing === "local").flatMap((n) => n.keybindings.map((e) => ({
|
|
8911
8922
|
...e,
|
|
8912
8923
|
action: n.action
|
|
8913
8924
|
})))
|
|
8914
|
-
},
|
|
8925
|
+
}, rh = {
|
|
8915
8926
|
bindings: un.filter((n) => n.routing !== "local").flatMap((n) => n.keybindings.map((e) => ({
|
|
8916
8927
|
...e,
|
|
8917
8928
|
action: n.action
|
|
8918
8929
|
})))
|
|
8919
|
-
},
|
|
8930
|
+
}, rd = /* @__PURE__ */ new Set([
|
|
8920
8931
|
"ArrowLeft",
|
|
8921
8932
|
"ArrowRight",
|
|
8922
8933
|
"ArrowUp",
|
|
@@ -8924,10 +8935,10 @@ const hn = {
|
|
|
8924
8935
|
"Home",
|
|
8925
8936
|
"End"
|
|
8926
8937
|
]);
|
|
8927
|
-
function rd(n) {
|
|
8928
|
-
return od.has(n);
|
|
8929
|
-
}
|
|
8930
8938
|
function cd(n) {
|
|
8939
|
+
return rd.has(n);
|
|
8940
|
+
}
|
|
8941
|
+
function ad(n) {
|
|
8931
8942
|
return n.includes("Macintosh") || n.includes("Mac OS X") ? "macos" : n.includes("Windows") ? "windows" : "linux";
|
|
8932
8943
|
}
|
|
8933
8944
|
function si(n) {
|
|
@@ -8944,23 +8955,23 @@ function si(n) {
|
|
|
8944
8955
|
function ii(n, e, t = hn) {
|
|
8945
8956
|
if (n.altGraphKey)
|
|
8946
8957
|
return;
|
|
8947
|
-
const s = n.key.length === 1 ? n.key.toLowerCase() : n.key, i = /^[a-z]$/.test(s) ? void 0 :
|
|
8958
|
+
const s = n.key.length === 1 ? n.key.toLowerCase() : n.key, i = /^[a-z]$/.test(s) ? void 0 : ld(n.code);
|
|
8948
8959
|
for (const o of t.bindings)
|
|
8949
|
-
if ((o.key === s || o.key === i) && (!o.platforms || o.platforms.includes(e)) &&
|
|
8960
|
+
if ((o.key === s || o.key === i) && (!o.platforms || o.platforms.includes(e)) && dd(n, o.modifiers))
|
|
8950
8961
|
return o.action;
|
|
8951
8962
|
}
|
|
8952
|
-
function
|
|
8963
|
+
function ld(n) {
|
|
8953
8964
|
return /^Key([A-Z])$/.exec(n)?.[1].toLowerCase();
|
|
8954
8965
|
}
|
|
8955
|
-
function
|
|
8966
|
+
function dd(n, e = {}) {
|
|
8956
8967
|
return n.shiftKey === !!e.shift && n.altKey === !!e.alt && n.ctrlKey === !!e.ctrl && n.metaKey === !!e.meta;
|
|
8957
8968
|
}
|
|
8958
|
-
const
|
|
8959
|
-
class
|
|
8969
|
+
const hd = 500, oi = 5;
|
|
8970
|
+
class ch extends W {
|
|
8960
8971
|
constructor(e, t, s) {
|
|
8961
8972
|
super(), this._model = e, this._view = t;
|
|
8962
8973
|
const i = this._view.element, o = i.ownerDocument.defaultView ?? window;
|
|
8963
|
-
this._keyboardPlatform = s?.keyboardPlatform ??
|
|
8974
|
+
this._keyboardPlatform = s?.keyboardPlatform ?? ad(o.navigator.userAgent), this._keyboardProfile = s?.keyboardProfile ?? hn, this._forwardedKeyboardProfile = s?.forwardedKeyboardProfile, this._historyStrategy = s?.historyStrategy, this._indentation = s?.indentation ?? Ze, this._tabFocusStatus = this._keyboardProfile === hn ? this._registerTabFocusAccessibility(i) : void 0, i.addEventListener("pointerdown", this._handlePointerDown), i.addEventListener("keydown", this._handleKeyDown), this._register({
|
|
8964
8975
|
dispose: () => {
|
|
8965
8976
|
i.removeEventListener("pointerdown", this._handlePointerDown), i.removeEventListener("keydown", this._handleKeyDown);
|
|
8966
8977
|
}
|
|
@@ -8969,7 +8980,7 @@ class rh extends W {
|
|
|
8969
8980
|
o.removeEventListener("keydown", this._updateModifierState), o.removeEventListener("keyup", this._updateModifierState), o.removeEventListener("blur", this._clearModifierState), i.ownerDocument.removeEventListener("selectionchange", this._discardNativeSelection);
|
|
8970
8981
|
}
|
|
8971
8982
|
});
|
|
8972
|
-
const r = s?.clipboardStrategy ?? new
|
|
8983
|
+
const r = s?.clipboardStrategy ?? new id();
|
|
8973
8984
|
r.writeText && this._register(this._view.setClipboardWriter((a) => r.writeText(a))), this._register(r.connect({
|
|
8974
8985
|
element: i,
|
|
8975
8986
|
getSelectedText: () => this._selectedText(),
|
|
@@ -8983,7 +8994,7 @@ class rh extends W {
|
|
|
8983
8994
|
const c = this._view.editContext;
|
|
8984
8995
|
c.addEventListener("textupdate", this._handleTextUpdate), this._register({
|
|
8985
8996
|
dispose: () => c.removeEventListener("textupdate", this._handleTextUpdate)
|
|
8986
|
-
}), this.findController = s?.find === !1 ? void 0 : this._register(new
|
|
8997
|
+
}), this.findController = s?.find === !1 ? void 0 : this._register(new td(this._model, this._view, {
|
|
8987
8998
|
keyboardPlatform: this._keyboardPlatform
|
|
8988
8999
|
}));
|
|
8989
9000
|
}
|
|
@@ -9052,7 +9063,7 @@ class rh extends W {
|
|
|
9052
9063
|
if (this._generatedIndentation = void 0, e.button !== 0)
|
|
9053
9064
|
return;
|
|
9054
9065
|
e.preventDefault(), this._view.stopFollowingCaret(), this._model.cancelPendingParagraph(), this._view.focus(), this._desiredColumn = void 0;
|
|
9055
|
-
const t = new se(e.clientX, e.clientY), s = this._lastPointerDown, i = s !== void 0 && e.timeStamp - s.time <
|
|
9066
|
+
const t = new se(e.clientX, e.clientY), s = this._lastPointerDown, i = s !== void 0 && e.timeStamp - s.time < hd && Math.abs(t.x - s.point.x) < oi && Math.abs(t.y - s.point.y) < oi;
|
|
9056
9067
|
if (this._clickCount = i ? this._clickCount + 1 : 1, this._lastPointerDown = { time: e.timeStamp, point: t }, !this._view.isPointInContent(t)) {
|
|
9057
9068
|
this._setUserSelection(void 0);
|
|
9058
9069
|
return;
|
|
@@ -9064,7 +9075,7 @@ class rh extends W {
|
|
|
9064
9075
|
return;
|
|
9065
9076
|
}
|
|
9066
9077
|
if (this._clickCount === 3) {
|
|
9067
|
-
const h =
|
|
9078
|
+
const h = fd(this._model.document.get(), r);
|
|
9068
9079
|
h && this._setUserSelection(Zc(this._makeCursorContext(), h));
|
|
9069
9080
|
return;
|
|
9070
9081
|
}
|
|
@@ -9203,7 +9214,7 @@ class rh extends W {
|
|
|
9203
9214
|
}
|
|
9204
9215
|
};
|
|
9205
9216
|
_handleKeyDown = (e) => {
|
|
9206
|
-
if (e.isComposing ||
|
|
9217
|
+
if (e.isComposing || ud(e, this._view.element) || (this._updateModifierState(e), e.key === "Tab" && (this._model.readonlyMode.get() || this._tabMovesFocus)))
|
|
9207
9218
|
return;
|
|
9208
9219
|
if (e.key === "Escape" && !e.defaultPrevented && !e.ctrlKey && !e.metaKey && !e.altKey && !e.shiftKey && (this._model.selection.get() !== void 0 || this._model.pendingParagraph.get() !== void 0)) {
|
|
9209
9220
|
ri(e), this._view.stopFollowingCaret(), this._generatedIndentation = void 0, this._desiredColumn = void 0, this._setUserSelection(void 0);
|
|
@@ -9223,7 +9234,7 @@ class rh extends W {
|
|
|
9223
9234
|
e.preventDefault();
|
|
9224
9235
|
return;
|
|
9225
9236
|
}
|
|
9226
|
-
|
|
9237
|
+
cd(e.key) && e.preventDefault();
|
|
9227
9238
|
return;
|
|
9228
9239
|
}
|
|
9229
9240
|
const s = this._model.pendingParagraph.get() !== void 0;
|
|
@@ -9447,10 +9458,10 @@ function Me(n) {
|
|
|
9447
9458
|
function ri(n) {
|
|
9448
9459
|
n.preventDefault(), n.stopPropagation();
|
|
9449
9460
|
}
|
|
9450
|
-
function
|
|
9461
|
+
function ud(n, e) {
|
|
9451
9462
|
return n.target !== e;
|
|
9452
9463
|
}
|
|
9453
|
-
function
|
|
9464
|
+
function fd(n, e) {
|
|
9454
9465
|
const t = new Set(n.blocks);
|
|
9455
9466
|
let s = 0;
|
|
9456
9467
|
for (const i of n.children) {
|
|
@@ -9465,8 +9476,8 @@ function ud(n, e) {
|
|
|
9465
9476
|
function ci(n, e, t) {
|
|
9466
9477
|
t === null ? n.removeAttribute(e) : n.setAttribute(e, t);
|
|
9467
9478
|
}
|
|
9468
|
-
const
|
|
9469
|
-
class
|
|
9479
|
+
const md = 200;
|
|
9480
|
+
class ah {
|
|
9470
9481
|
constructor(e) {
|
|
9471
9482
|
this._model = e, this._lastKnownText = e.sourceText.get().value;
|
|
9472
9483
|
}
|
|
@@ -9492,7 +9503,7 @@ class ch {
|
|
|
9492
9503
|
redoEdit: c,
|
|
9493
9504
|
beforeSelection: i,
|
|
9494
9505
|
afterSelection: r
|
|
9495
|
-
}), this._past.length >
|
|
9506
|
+
}), this._past.length > md && this._past.shift(), this._future.length = 0;
|
|
9496
9507
|
}
|
|
9497
9508
|
undo() {
|
|
9498
9509
|
const e = this._peekApplicable(this._past);
|
|
@@ -9525,7 +9536,7 @@ class ch {
|
|
|
9525
9536
|
}
|
|
9526
9537
|
}
|
|
9527
9538
|
const ai = "md-debug-show-line-rects";
|
|
9528
|
-
function
|
|
9539
|
+
function pd(n, e) {
|
|
9529
9540
|
try {
|
|
9530
9541
|
const t = localStorage.getItem(n);
|
|
9531
9542
|
return t === null ? e : t === "true";
|
|
@@ -9533,20 +9544,20 @@ function md(n, e) {
|
|
|
9533
9544
|
return e;
|
|
9534
9545
|
}
|
|
9535
9546
|
}
|
|
9536
|
-
function
|
|
9547
|
+
function gd(n, e) {
|
|
9537
9548
|
try {
|
|
9538
9549
|
localStorage.setItem(n, String(e));
|
|
9539
9550
|
} catch {
|
|
9540
9551
|
}
|
|
9541
9552
|
}
|
|
9542
|
-
class
|
|
9553
|
+
class lh extends W {
|
|
9543
9554
|
overlayElement;
|
|
9544
9555
|
infoElement;
|
|
9545
9556
|
rendering;
|
|
9546
9557
|
/** Absolute source offsets that map to a rendered DOM character. */
|
|
9547
9558
|
mappedOffsets;
|
|
9548
9559
|
/** Whether the dashed line-bands and run boxes are drawn (persisted). */
|
|
9549
|
-
_showLineRects = x(this,
|
|
9560
|
+
_showLineRects = x(this, pd(ai, !0));
|
|
9550
9561
|
constructor(e, t) {
|
|
9551
9562
|
super(), this.overlayElement = document.createElement("div"), this.overlayElement.className = "md-debug-layout-overlay", Object.assign(this.overlayElement.style, {
|
|
9552
9563
|
position: "absolute",
|
|
@@ -9575,12 +9586,12 @@ class ah extends W {
|
|
|
9575
9586
|
});
|
|
9576
9587
|
const i = document.createElement("input");
|
|
9577
9588
|
i.type = "checkbox", i.checked = this._showLineRects.get(), i.addEventListener("change", () => {
|
|
9578
|
-
this._showLineRects.set(i.checked, void 0),
|
|
9589
|
+
this._showLineRects.set(i.checked, void 0), gd(ai, i.checked);
|
|
9579
9590
|
}), s.appendChild(i), s.appendChild(document.createTextNode("show line rects")), this.infoElement.appendChild(s);
|
|
9580
9591
|
const o = document.createElement("pre");
|
|
9581
9592
|
o.style.margin = "0", o.style.whiteSpace = "pre", this.infoElement.appendChild(o), this.rendering = I(this, (r) => {
|
|
9582
9593
|
const c = r.readObservable(t.model.measurements), a = r.readObservable(this._showLineRects);
|
|
9583
|
-
return
|
|
9594
|
+
return vd(
|
|
9584
9595
|
this.overlayElement,
|
|
9585
9596
|
o,
|
|
9586
9597
|
c,
|
|
@@ -9592,16 +9603,16 @@ class ah extends W {
|
|
|
9592
9603
|
}), this.mappedOffsets = I(this, (r) => r.readObservable(this.rendering).mappedOffsets), this._register(M((r) => {
|
|
9593
9604
|
r.readObservable(this.rendering);
|
|
9594
9605
|
const c = t.hoveredOffset ? r.readObservable(t.hoveredOffset) : void 0;
|
|
9595
|
-
t.hoveredOffset &&
|
|
9606
|
+
t.hoveredOffset && wd(this.overlayElement, c);
|
|
9596
9607
|
}));
|
|
9597
9608
|
}
|
|
9598
9609
|
}
|
|
9599
|
-
class
|
|
9610
|
+
class _d {
|
|
9600
9611
|
constructor(e, t, s, i) {
|
|
9601
9612
|
this.blockCount = e, this.mountedCount = t, this.lineCount = s, this.mappedOffsets = i;
|
|
9602
9613
|
}
|
|
9603
9614
|
}
|
|
9604
|
-
function
|
|
9615
|
+
function vd(n, e, t, s, i, o, r) {
|
|
9605
9616
|
n.textContent = "";
|
|
9606
9617
|
const c = s.capture();
|
|
9607
9618
|
let a = 0, l = 0, d = 0;
|
|
@@ -9633,16 +9644,16 @@ function _d(n, e, t, s, i, o, r) {
|
|
|
9633
9644
|
}), n.appendChild(A);
|
|
9634
9645
|
}
|
|
9635
9646
|
}
|
|
9636
|
-
p.viewNode && (d +=
|
|
9647
|
+
p.viewNode && (d += kd(n, c, p.viewNode, p.absoluteStart, u, o, r));
|
|
9637
9648
|
}
|
|
9638
9649
|
const h = `blocks: ${t.length} mounted: ${a} lines: ${l} chars: ${d}`, f = t.map((m, p) => {
|
|
9639
9650
|
const g = m.isMeasured ? "M" : "e", _ = m.visualLineMap?.lines.length ?? 0;
|
|
9640
9651
|
return `${String(p).padStart(2)} ${g} start=${String(m.absoluteStart).padStart(4)} h=${m.height.toFixed(1).padStart(6)} lines=${_} kind=${m.block.kind}`;
|
|
9641
9652
|
});
|
|
9642
9653
|
return e.textContent = [h, ...f].join(`
|
|
9643
|
-
`), new
|
|
9654
|
+
`), new _d(t.length, a, l, u);
|
|
9644
9655
|
}
|
|
9645
|
-
function
|
|
9656
|
+
function kd(n, e, t, s, i, o, r) {
|
|
9646
9657
|
let c = 0;
|
|
9647
9658
|
const a = document.createRange(), l = s + t.sourceLength, d = [];
|
|
9648
9659
|
t.forEachTextLeaf(s, (h, f) => {
|
|
@@ -9675,7 +9686,7 @@ function vd(n, e, t, s, i, o, r) {
|
|
|
9675
9686
|
}
|
|
9676
9687
|
return c;
|
|
9677
9688
|
}
|
|
9678
|
-
function
|
|
9689
|
+
function wd(n, e) {
|
|
9679
9690
|
for (const t of Array.from(n.children)) {
|
|
9680
9691
|
if (!t.style)
|
|
9681
9692
|
continue;
|
|
@@ -9692,7 +9703,7 @@ class Qe {
|
|
|
9692
9703
|
this.length = e, this.className = t;
|
|
9693
9704
|
}
|
|
9694
9705
|
}
|
|
9695
|
-
class
|
|
9706
|
+
class bd {
|
|
9696
9707
|
/**
|
|
9697
9708
|
* @param _monaco The Monarch runtime ({@link IMonarchApi}), injected so this
|
|
9698
9709
|
* package depends on `monaco-editor` for types only.
|
|
@@ -9703,7 +9714,7 @@ class wd {
|
|
|
9703
9714
|
}
|
|
9704
9715
|
_tokenizers = /* @__PURE__ */ new Map();
|
|
9705
9716
|
create(e, t) {
|
|
9706
|
-
return new
|
|
9717
|
+
return new yd(this._tokenizerFor(e), t);
|
|
9707
9718
|
}
|
|
9708
9719
|
dispose() {
|
|
9709
9720
|
for (const e of this._tokenizers.values())
|
|
@@ -9715,10 +9726,10 @@ class wd {
|
|
|
9715
9726
|
if (t === void 0)
|
|
9716
9727
|
return;
|
|
9717
9728
|
let s = this._tokenizers.get(e);
|
|
9718
|
-
return s || (s = new this._monaco.MonarchTokenizer(
|
|
9729
|
+
return s || (s = new this._monaco.MonarchTokenizer(Sd, Ld, e, this._monaco.compile(e, t), Td), this._tokenizers.set(e, s)), s;
|
|
9719
9730
|
}
|
|
9720
9731
|
}
|
|
9721
|
-
class
|
|
9732
|
+
class yd {
|
|
9722
9733
|
constructor(e, t) {
|
|
9723
9734
|
this._tokenizer = e, this._initialState = e?.getInitialState(), this._text = t, this._lines = this._tokenizeFrom(0, [], this._initialState, t.split(`
|
|
9724
9735
|
`)), this._lineStarts = this._computeLineStarts(), this._snapshotObs = x("syntaxSnapshot", new di(this, this._version));
|
|
@@ -9742,7 +9753,7 @@ class bd {
|
|
|
9742
9753
|
const s = hi(this._lines), i = e.apply(this._text), o = e.replacements[0].replaceRange.start, r = this._lineIndexAt(o), c = this._lines.slice(0, r), a = r === 0 ? this._initialState : this._lines[r - 1].endState;
|
|
9743
9754
|
this._text = i, this._lines = this._tokenizeFrom(r, c, a, i.split(`
|
|
9744
9755
|
`)), this._lineStarts = this._computeLineStarts(), this._version++;
|
|
9745
|
-
const l =
|
|
9756
|
+
const l = Cd(s, hi(this._lines));
|
|
9746
9757
|
this._snapshotObs.set(new di(this, this._version), t, l);
|
|
9747
9758
|
}
|
|
9748
9759
|
dispose() {
|
|
@@ -9760,7 +9771,7 @@ class bd {
|
|
|
9760
9771
|
const a = i[c], l = c < i.length - 1;
|
|
9761
9772
|
if (this._tokenizer && r) {
|
|
9762
9773
|
const d = this._tokenizer.tokenize(a, l, r);
|
|
9763
|
-
o.push({ text: a, tokens:
|
|
9774
|
+
o.push({ text: a, tokens: xd(d.tokens, a.length), endState: d.endState }), r = d.endState;
|
|
9764
9775
|
} else
|
|
9765
9776
|
o.push({ text: a, tokens: a.length === 0 ? [] : [new Qe(a.length, void 0)], endState: r });
|
|
9766
9777
|
}
|
|
@@ -9805,16 +9816,16 @@ class di {
|
|
|
9805
9816
|
return this._doc._getTokens(this._version, e);
|
|
9806
9817
|
}
|
|
9807
9818
|
}
|
|
9808
|
-
function
|
|
9819
|
+
function Ed(n) {
|
|
9809
9820
|
return n === "" ? void 0 : n;
|
|
9810
9821
|
}
|
|
9811
|
-
function
|
|
9822
|
+
function xd(n, e) {
|
|
9812
9823
|
if (n.length === 0)
|
|
9813
9824
|
return e === 0 ? [] : [new Qe(e, void 0)];
|
|
9814
9825
|
const t = [];
|
|
9815
9826
|
for (let s = 0; s < n.length; s++) {
|
|
9816
9827
|
const i = n[s].offset, o = s + 1 < n.length ? n[s + 1].offset : e;
|
|
9817
|
-
o > i && t.push(new Qe(o - i,
|
|
9828
|
+
o > i && t.push(new Qe(o - i, Ed(n[s].type)));
|
|
9818
9829
|
}
|
|
9819
9830
|
return t;
|
|
9820
9831
|
}
|
|
@@ -9836,7 +9847,7 @@ function fi(n) {
|
|
|
9836
9847
|
e += t.length;
|
|
9837
9848
|
return e;
|
|
9838
9849
|
}
|
|
9839
|
-
function
|
|
9850
|
+
function Cd(n, e) {
|
|
9840
9851
|
const t = n.length, s = e.length;
|
|
9841
9852
|
let i = 0, o = 0;
|
|
9842
9853
|
for (; i < t && i < s && ui(n[i], e[i]); )
|
|
@@ -9847,21 +9858,21 @@ function xd(n, e) {
|
|
|
9847
9858
|
const a = fi(n), l = fi(e), d = new v(o, a - c), u = l - c - o;
|
|
9848
9859
|
return d.isEmpty && u === 0 ? Re.empty : Re.replace(d, u);
|
|
9849
9860
|
}
|
|
9850
|
-
const
|
|
9861
|
+
const Sd = {
|
|
9851
9862
|
languageIdCodec: { encodeLanguageId: () => 0, decodeLanguageId: () => "" },
|
|
9852
9863
|
isRegisteredLanguageId: () => !1,
|
|
9853
9864
|
getLanguageIdByLanguageName: () => null,
|
|
9854
9865
|
getLanguageIdByMimeType: () => null,
|
|
9855
9866
|
requestBasicLanguageFeatures: () => {
|
|
9856
9867
|
}
|
|
9857
|
-
}, Sd = {
|
|
9858
|
-
getColorTheme: () => ({ tokenTheme: {} })
|
|
9859
9868
|
}, Ld = {
|
|
9869
|
+
getColorTheme: () => ({ tokenTheme: {} })
|
|
9870
|
+
}, Td = {
|
|
9860
9871
|
getValue: () => 2e4,
|
|
9861
9872
|
onDidChangeConfiguration: () => ({ dispose() {
|
|
9862
9873
|
} })
|
|
9863
9874
|
};
|
|
9864
|
-
function
|
|
9875
|
+
function dh(n, e) {
|
|
9865
9876
|
const t = /* @__PURE__ */ new Map([
|
|
9866
9877
|
["typescript", e.typescript],
|
|
9867
9878
|
["ts", e.typescript],
|
|
@@ -9879,14 +9890,14 @@ function lh(n, e) {
|
|
|
9879
9890
|
["yaml", e.yaml],
|
|
9880
9891
|
["yml", e.yaml]
|
|
9881
9892
|
]);
|
|
9882
|
-
return new
|
|
9893
|
+
return new bd(n, t);
|
|
9883
9894
|
}
|
|
9884
9895
|
function Ao(n) {
|
|
9885
9896
|
const e = document.createElement("span");
|
|
9886
9897
|
return e.className = `codicon codicon-${n}`, e.setAttribute("aria-hidden", "true"), e;
|
|
9887
9898
|
}
|
|
9888
|
-
const
|
|
9889
|
-
class
|
|
9899
|
+
const Md = 165, Od = 400, Rd = 33;
|
|
9900
|
+
class Id extends W {
|
|
9890
9901
|
constructor(e) {
|
|
9891
9902
|
super(), this._options = e, this.element = document.createElement("div"), this.element.className = "md-comment-input", this._textarea = document.createElement("textarea"), this._textarea.className = "md-comment-input-textarea", this._textarea.rows = 1, this._textarea.placeholder = e?.placeholder ?? "Add comment", this._textarea.setAttribute("aria-label", this._textarea.placeholder), this.element.appendChild(this._textarea), this._measure = document.createElement("span"), this._measure.className = "md-comment-input-measure", this._measure.setAttribute("aria-hidden", "true"), this.element.appendChild(this._measure), this._submitButton = document.createElement("button"), this._submitButton.type = "button", this._submitButton.className = "md-comment-input-submit", this._submitButton.title = "Add comment", this._submitButton.setAttribute("aria-label", "Add comment"), this._submitButton.appendChild(Ao("add")), this.element.appendChild(this._submitButton);
|
|
9892
9903
|
const t = (r) => {
|
|
@@ -9941,15 +9952,15 @@ class Rd extends W {
|
|
|
9941
9952
|
}
|
|
9942
9953
|
_autoSize() {
|
|
9943
9954
|
this._measure.textContent = this._textarea.value || this._textarea.placeholder;
|
|
9944
|
-
const e = this._measure.scrollWidth +
|
|
9945
|
-
this.element.style.width = `${Math.min(Math.max(
|
|
9955
|
+
const e = this._measure.scrollWidth + Rd;
|
|
9956
|
+
this.element.style.width = `${Math.min(Math.max(Md, e), Od)}px`, this._textarea.style.height = "auto";
|
|
9946
9957
|
const t = this._textarea.scrollHeight;
|
|
9947
9958
|
t > 0 && (this._textarea.style.height = `${Math.min(t, 160)}px`, this._textarea.style.overflowY = t > 160 ? "auto" : "hidden"), this._options?.onDidChangeSize?.();
|
|
9948
9959
|
}
|
|
9949
9960
|
}
|
|
9950
9961
|
class Po extends W {
|
|
9951
9962
|
constructor(e, t, s) {
|
|
9952
|
-
super(), this._model = e, this._view = t, this._options = s, this._gap = s?.gap ?? 8, this._widget = this._register(new
|
|
9963
|
+
super(), this._model = e, this._view = t, this._options = s, this._gap = s?.gap ?? 8, this._widget = this._register(new Id({
|
|
9953
9964
|
onDidChangeSize: () => {
|
|
9954
9965
|
this._visible && this._layoutHorizontally();
|
|
9955
9966
|
},
|
|
@@ -9982,7 +9993,7 @@ class Po extends W {
|
|
|
9982
9993
|
case "find":
|
|
9983
9994
|
return !1;
|
|
9984
9995
|
default:
|
|
9985
|
-
return
|
|
9996
|
+
return Nd(e);
|
|
9986
9997
|
}
|
|
9987
9998
|
}
|
|
9988
9999
|
_widget;
|
|
@@ -10080,10 +10091,10 @@ class Po extends W {
|
|
|
10080
10091
|
this._hideAndRefocus(), t && this._options?.onSubmit?.({ text: e, range: t });
|
|
10081
10092
|
}
|
|
10082
10093
|
}
|
|
10083
|
-
function
|
|
10094
|
+
function Nd(n) {
|
|
10084
10095
|
throw new Error(`Unhandled selection source: ${JSON.stringify(n)}`);
|
|
10085
10096
|
}
|
|
10086
|
-
class
|
|
10097
|
+
class Ad {
|
|
10087
10098
|
_domNode;
|
|
10088
10099
|
_disposables = [];
|
|
10089
10100
|
get element() {
|
|
@@ -10107,7 +10118,7 @@ class Nd {
|
|
|
10107
10118
|
this._domNode.remove();
|
|
10108
10119
|
}
|
|
10109
10120
|
}
|
|
10110
|
-
class
|
|
10121
|
+
class hh {
|
|
10111
10122
|
_comments = x(this, []);
|
|
10112
10123
|
/** Monotonic counter for ids of comments created via {@link create}. */
|
|
10113
10124
|
_sequence = 0;
|
|
@@ -10143,9 +10154,9 @@ class dh {
|
|
|
10143
10154
|
this._comments.set(this._comments.get().filter((t) => t.id !== e), void 0);
|
|
10144
10155
|
}
|
|
10145
10156
|
}
|
|
10146
|
-
const
|
|
10147
|
-
function
|
|
10148
|
-
const t = n.element, s = n.overlayContainer, i = t.clientWidth -
|
|
10157
|
+
const Pd = 12, Bd = 8;
|
|
10158
|
+
function Dd(n, e) {
|
|
10159
|
+
const t = n.element, s = n.overlayContainer, i = t.clientWidth - Bd - s.offsetLeft, o = [];
|
|
10149
10160
|
for (const c of e) {
|
|
10150
10161
|
if (c.element.style.setProperty("--md-comment-available-width", `${Math.max(0, i)}px`), c.rects.length === 0) {
|
|
10151
10162
|
c.element.style.visibility = "hidden";
|
|
@@ -10156,11 +10167,11 @@ function Bd(n, e) {
|
|
|
10156
10167
|
o.sort((c, a) => c.y - a.y);
|
|
10157
10168
|
let r = -1 / 0;
|
|
10158
10169
|
for (const c of o) {
|
|
10159
|
-
const a = Math.max(c.y, r +
|
|
10170
|
+
const a = Math.max(c.y, r + Pd), l = i - c.element.offsetWidth;
|
|
10160
10171
|
c.element.style.left = `${l}px`, c.element.style.top = `${a}px`, r = a + c.element.offsetHeight;
|
|
10161
10172
|
}
|
|
10162
10173
|
}
|
|
10163
|
-
class
|
|
10174
|
+
class uh extends W {
|
|
10164
10175
|
constructor(e, t) {
|
|
10165
10176
|
super(), this._model = e, this._view = t, this._layer = document.createElement("div"), this._layer.className = "md-comments-layer", this._layer.style.position = "absolute", this._layer.style.inset = "0", this._layer.style.pointerEvents = "none", this._layer.style.overflow = "visible", this._layer.style.background = "transparent", this._view.overlayContainer.appendChild(this._layer), this._register({
|
|
10166
10177
|
dispose: () => {
|
|
@@ -10191,7 +10202,7 @@ class hh extends W {
|
|
|
10191
10202
|
for (const s of e) {
|
|
10192
10203
|
if (this._entries.has(s.id))
|
|
10193
10204
|
continue;
|
|
10194
|
-
const i = new
|
|
10205
|
+
const i = new Ad({
|
|
10195
10206
|
body: s.body,
|
|
10196
10207
|
onDelete: () => this._model.remove(s.id)
|
|
10197
10208
|
});
|
|
@@ -10205,7 +10216,7 @@ class hh extends W {
|
|
|
10205
10216
|
}
|
|
10206
10217
|
_relayout() {
|
|
10207
10218
|
const e = this._order.map((t) => this._entries.get(t)).filter((t) => t !== void 0).map((t) => ({ element: t.widget.element, rects: t.rects.get() }));
|
|
10208
|
-
|
|
10219
|
+
Dd(this._view, e), this._revealPendingComment();
|
|
10209
10220
|
}
|
|
10210
10221
|
_revealPendingComment() {
|
|
10211
10222
|
const e = this._pendingRevealCommentId;
|
|
@@ -10215,7 +10226,7 @@ class hh extends W {
|
|
|
10215
10226
|
!t || t.style.visibility === "hidden" || (this._pendingRevealCommentId = void 0, t.scrollIntoView({ block: "center", inline: "nearest" }));
|
|
10216
10227
|
}
|
|
10217
10228
|
}
|
|
10218
|
-
class
|
|
10229
|
+
class fh {
|
|
10219
10230
|
constructor(e) {
|
|
10220
10231
|
this._options = e;
|
|
10221
10232
|
let t = this.name.get();
|
|
@@ -10311,7 +10322,7 @@ class uh {
|
|
|
10311
10322
|
function mi(n) {
|
|
10312
10323
|
return n instanceof Error && n.message ? n : new Error(String(n) || "Rename failed.");
|
|
10313
10324
|
}
|
|
10314
|
-
class
|
|
10325
|
+
class mh extends W {
|
|
10315
10326
|
constructor(e, t, s = {}) {
|
|
10316
10327
|
super(), this._container = e, this._model = t, this._options = s;
|
|
10317
10328
|
const i = e.ownerDocument;
|
|
@@ -10351,7 +10362,7 @@ class fh extends W {
|
|
|
10351
10362
|
this.element.style.left = `${Math.max(0, Math.min(e.left, t - this.element.offsetWidth))}px`, this.element.style.top = `${Math.max(0, Math.min(r, s - i))}px`;
|
|
10352
10363
|
}
|
|
10353
10364
|
}
|
|
10354
|
-
class
|
|
10365
|
+
class ph {
|
|
10355
10366
|
constructor(e) {
|
|
10356
10367
|
this._callbacks = e;
|
|
10357
10368
|
}
|
|
@@ -10435,7 +10446,7 @@ class mh {
|
|
|
10435
10446
|
s !== t && this._callbacks.onSelect?.(s);
|
|
10436
10447
|
}
|
|
10437
10448
|
}
|
|
10438
|
-
class
|
|
10449
|
+
class gh extends W {
|
|
10439
10450
|
constructor(e) {
|
|
10440
10451
|
if (super(), this._options = e, !e.id || /\s/.test(e.id))
|
|
10441
10452
|
throw new Error("Suggest widget id must be nonempty and contain no whitespace.");
|
|
@@ -10532,7 +10543,7 @@ class ph extends W {
|
|
|
10532
10543
|
const s = this.element.ownerDocument, i = s.createElement("div");
|
|
10533
10544
|
i.className = "md-suggest-row", i.id = `${this.listElement.id}-option-${t}`, i.dataset.suggestId = e.id, i.setAttribute("role", "option"), i.setAttribute("aria-label", [e.label, e.type].filter(Boolean).join(", ")), i.title = [e.label, e.detail, e.type].filter(Boolean).join(" - ");
|
|
10534
10545
|
const o = s.createElement("span");
|
|
10535
|
-
o.className = `md-suggest-icon codicon codicon-${
|
|
10546
|
+
o.className = `md-suggest-icon codicon codicon-${Fd[e.type ?? "Text"] ?? "symbol-property"}`, o.setAttribute("aria-hidden", "true"), i.appendChild(o);
|
|
10536
10547
|
const r = s.createElement("span");
|
|
10537
10548
|
r.className = "md-suggest-label";
|
|
10538
10549
|
const c = Math.max(0, Math.min(e.highlightLength ?? 0, e.label.length)), a = s.createElement("span");
|
|
@@ -10548,7 +10559,7 @@ class ph extends W {
|
|
|
10548
10559
|
this._savedAttributes.clear();
|
|
10549
10560
|
}
|
|
10550
10561
|
}
|
|
10551
|
-
const
|
|
10562
|
+
const Fd = {
|
|
10552
10563
|
Text: "symbol-text",
|
|
10553
10564
|
Method: "symbol-method",
|
|
10554
10565
|
Function: "symbol-method",
|
|
@@ -10577,37 +10588,37 @@ const Dd = {
|
|
|
10577
10588
|
};
|
|
10578
10589
|
export {
|
|
10579
10590
|
ee as AstNode,
|
|
10580
|
-
|
|
10591
|
+
ih as AsyncClipboardStrategy,
|
|
10581
10592
|
ve as BlockQuoteAstNode,
|
|
10582
10593
|
O as BlockViewNode,
|
|
10583
10594
|
ae as CodeBlockAstNode,
|
|
10584
10595
|
An as CodeBlockViewNode,
|
|
10585
|
-
|
|
10596
|
+
Id as CommentInputWidget,
|
|
10586
10597
|
Po as CommentModeController,
|
|
10587
|
-
|
|
10588
|
-
|
|
10589
|
-
|
|
10598
|
+
Ad as CommentWidget,
|
|
10599
|
+
hh as CommentsModel,
|
|
10600
|
+
uh as CommentsView,
|
|
10590
10601
|
N as CursorPosition,
|
|
10591
|
-
|
|
10602
|
+
yl as CursorView,
|
|
10592
10603
|
ot as CursorViewRendering,
|
|
10593
10604
|
Ze as DEFAULT_INDENTATION_CONFIG,
|
|
10594
10605
|
Fo as DEFAULT_WORD_NAVIGATION_CONFIG,
|
|
10595
|
-
|
|
10606
|
+
kh as DEFAULT_WORD_SEPARATORS,
|
|
10596
10607
|
wn as DocumentAstNode,
|
|
10597
10608
|
Bn as DocumentViewNode,
|
|
10598
|
-
|
|
10609
|
+
ch as EditorController,
|
|
10599
10610
|
Mt as EditorCoordinateSpace,
|
|
10600
|
-
|
|
10601
|
-
|
|
10602
|
-
|
|
10611
|
+
Ca as EditorCoordinateTransform,
|
|
10612
|
+
th as EditorModel,
|
|
10613
|
+
nh as EditorView,
|
|
10603
10614
|
gn as EmphasisAstNode,
|
|
10604
10615
|
Ie as EmptyBlockAstNode,
|
|
10605
|
-
|
|
10606
|
-
|
|
10607
|
-
|
|
10608
|
-
|
|
10616
|
+
zl as FIND_MATCH_LIMIT,
|
|
10617
|
+
td as FindController,
|
|
10618
|
+
$l as FindHighlightsView,
|
|
10619
|
+
Ql as FindModel,
|
|
10609
10620
|
kt as FindPattern,
|
|
10610
|
-
|
|
10621
|
+
ed as FindWidget,
|
|
10611
10622
|
Ne as FrontMatterAstNode,
|
|
10612
10623
|
S as GlueAstNode,
|
|
10613
10624
|
ye as HeadingAstNode,
|
|
@@ -10619,32 +10630,32 @@ export {
|
|
|
10619
10630
|
Ce as LinkAstNode,
|
|
10620
10631
|
H as ListAstNode,
|
|
10621
10632
|
$ as ListItemAstNode,
|
|
10622
|
-
|
|
10633
|
+
ah as LocalHistoryStrategy,
|
|
10623
10634
|
yr as MarkdownParser,
|
|
10624
10635
|
E as MarkerAstNode,
|
|
10625
10636
|
Se as MathBlockAstNode,
|
|
10626
|
-
|
|
10627
|
-
|
|
10637
|
+
_d as MeasuredLayoutDebugRendering,
|
|
10638
|
+
lh as MeasuredLayoutDebugView,
|
|
10628
10639
|
Ur as MeasuredLayoutModel,
|
|
10629
|
-
|
|
10630
|
-
|
|
10640
|
+
bd as MonacoSyntaxHighlighter,
|
|
10641
|
+
id as NativeClipboardStrategy,
|
|
10631
10642
|
v as OffsetRange,
|
|
10632
10643
|
ie as ParagraphAstNode,
|
|
10633
10644
|
se as Point2D,
|
|
10634
10645
|
L as Rect2D,
|
|
10635
|
-
|
|
10636
|
-
|
|
10646
|
+
fh as RenameModel,
|
|
10647
|
+
mh as RenameWidget,
|
|
10637
10648
|
Ge as RichLink,
|
|
10638
10649
|
y as Selection,
|
|
10639
|
-
|
|
10650
|
+
ml as SelectionView,
|
|
10640
10651
|
Ps as SelectionViewRendering,
|
|
10641
10652
|
_n as StrikethroughAstNode,
|
|
10642
10653
|
T as StringEdit,
|
|
10643
10654
|
_e as StringReplacement,
|
|
10644
10655
|
Kn as StringValue,
|
|
10645
10656
|
pn as StrongAstNode,
|
|
10646
|
-
|
|
10647
|
-
|
|
10657
|
+
ph as SuggestModel,
|
|
10658
|
+
gh as SuggestWidget,
|
|
10648
10659
|
Ae as TableAstNode,
|
|
10649
10660
|
qe as TableCellAstNode,
|
|
10650
10661
|
ze as TableRowAstNode,
|
|
@@ -10661,7 +10672,7 @@ export {
|
|
|
10661
10672
|
un as commands,
|
|
10662
10673
|
zc as copyLinesDown,
|
|
10663
10674
|
Kc as copyLinesUp,
|
|
10664
|
-
|
|
10675
|
+
dh as createDefaultMonacoSyntaxHighlighter,
|
|
10665
10676
|
ac as cursorDocumentEnd,
|
|
10666
10677
|
cc as cursorDocumentStart,
|
|
10667
10678
|
hc as cursorDown,
|
|
@@ -10706,14 +10717,14 @@ export {
|
|
|
10706
10717
|
me as normalizeCursorPosition,
|
|
10707
10718
|
Fi as outdent,
|
|
10708
10719
|
Lr as presentationPolicies,
|
|
10709
|
-
|
|
10720
|
+
sh as readNativeClipboard,
|
|
10710
10721
|
jc as selectAll,
|
|
10711
10722
|
Zc as selectBlock,
|
|
10712
10723
|
Yc as selectWord,
|
|
10713
10724
|
ir as taskCheckboxRange,
|
|
10714
|
-
|
|
10715
|
-
|
|
10725
|
+
eh as visualizeAst,
|
|
10726
|
+
rh as vscodeHostKeyboardProfile,
|
|
10716
10727
|
hn as vscodeKeyboardProfile,
|
|
10717
|
-
|
|
10728
|
+
oh as vscodeLocalKeyboardProfile
|
|
10718
10729
|
};
|
|
10719
10730
|
//# sourceMappingURL=index.js.map
|