@vscode/markdown-editor 0.0.2-2 → 0.0.2-4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,15 +1,15 @@
1
1
  let m;
2
- function ae(n) {
2
+ function de(n) {
3
3
  m ? m instanceof K ? m.loggers.push(n) : m = new K([m, n]) : m = n;
4
4
  }
5
5
  function o() {
6
6
  return m;
7
7
  }
8
8
  let F;
9
- function de(n) {
9
+ function oe(n) {
10
10
  F = n;
11
11
  }
12
- function oe(n) {
12
+ function ue(n) {
13
13
  F && F(n);
14
14
  }
15
15
  class K {
@@ -89,7 +89,7 @@ var u;
89
89
  class j {
90
90
  static fromStack(e, t) {
91
91
  const s = e.split(`
92
- `), r = ue(s[t + 1]);
92
+ `), r = he(s[t + 1]);
93
93
  if (r)
94
94
  return new j(r.fileName, r.line, r.column, r.id);
95
95
  }
@@ -97,7 +97,7 @@ class j {
97
97
  this.fileName = e, this.line = t, this.column = s, this.id = r;
98
98
  }
99
99
  }
100
- function ue(n) {
100
+ function he(n) {
101
101
  if (!n)
102
102
  return;
103
103
  const e = n.match(/\((.*):(\d+):(\d+)\)/);
@@ -122,15 +122,15 @@ class l {
122
122
  this.owner = e, this.debugNameSource = t, this.referenceFn = s;
123
123
  }
124
124
  getDebugName(e) {
125
- return he(e, this);
125
+ return le(e, this);
126
126
  }
127
127
  }
128
128
  const P = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new WeakMap();
129
- function he(n, e) {
129
+ function le(n, e) {
130
130
  const t = B.get(n);
131
131
  if (t)
132
132
  return t;
133
- const s = le(n, e);
133
+ const s = ce(n, e);
134
134
  if (s) {
135
135
  let r = P.get(s) ?? 0;
136
136
  r++, P.set(s, r);
@@ -138,11 +138,11 @@ function he(n, e) {
138
138
  return B.set(n, i), i;
139
139
  }
140
140
  }
141
- function le(n, e) {
141
+ function ce(n, e) {
142
142
  const t = B.get(n);
143
143
  if (t)
144
144
  return t;
145
- const s = e.owner ? fe(e.owner) + "." : "";
145
+ const s = e.owner ? ge(e.owner) + "." : "";
146
146
  let r;
147
147
  const i = e.debugNameSource;
148
148
  if (i !== void 0)
@@ -155,18 +155,18 @@ function le(n, e) {
155
155
  if (a !== void 0 && (r = G(a), r !== void 0))
156
156
  return s + r;
157
157
  if (e.owner !== void 0) {
158
- const d = ce(e.owner, n);
158
+ const d = fe(e.owner, n);
159
159
  if (d !== void 0)
160
160
  return s + d;
161
161
  }
162
162
  }
163
- function ce(n, e) {
163
+ function fe(n, e) {
164
164
  for (const t in n)
165
165
  if (n[t] === e)
166
166
  return t;
167
167
  }
168
168
  const Z = /* @__PURE__ */ new Map(), J = /* @__PURE__ */ new WeakMap();
169
- function fe(n) {
169
+ function ge(n) {
170
170
  const e = J.get(n);
171
171
  if (e)
172
172
  return e;
@@ -186,22 +186,22 @@ function G(n) {
186
186
  return (s ? s[1] : void 0)?.trim();
187
187
  }
188
188
  let x;
189
- function ge(n) {
189
+ function _e(n) {
190
190
  x = n;
191
191
  }
192
192
  let te;
193
- function _e(n) {
193
+ function be(n) {
194
194
  te = n;
195
195
  }
196
196
  let ne;
197
- function be(n) {
197
+ function pe(n) {
198
198
  ne = n;
199
199
  }
200
200
  let se;
201
- function pe(n) {
201
+ function me(n) {
202
202
  se = n;
203
203
  }
204
- class me {
204
+ class re {
205
205
  get TChange() {
206
206
  return null;
207
207
  }
@@ -257,7 +257,7 @@ class me {
257
257
  return se(this);
258
258
  }
259
259
  }
260
- class R extends me {
260
+ class N extends re {
261
261
  constructor(e) {
262
262
  super(), this._observers = /* @__PURE__ */ new Set(), o()?.handleObservableCreated(this, e);
263
263
  }
@@ -275,13 +275,13 @@ class R extends me {
275
275
  }
276
276
  log() {
277
277
  const e = !!o();
278
- return oe(this), e || o()?.handleObservableCreated(this, u.ofCaller()), this;
278
+ return ue(this), e || o()?.handleObservableCreated(this, u.ofCaller()), this;
279
279
  }
280
280
  debugGetObservers() {
281
281
  return this._observers;
282
282
  }
283
283
  }
284
- function N(n) {
284
+ function R(n) {
285
285
  return {
286
286
  dispose: n
287
287
  };
@@ -326,7 +326,7 @@ class f {
326
326
  this.disposables = [];
327
327
  }
328
328
  }
329
- class qe {
329
+ class Me {
330
330
  constructor() {
331
331
  this._store = new f();
332
332
  }
@@ -354,7 +354,7 @@ function Ce(n) {
354
354
  return "<unknown>";
355
355
  }
356
356
  }
357
- class b extends R {
357
+ class b extends N {
358
358
  get debugName() {
359
359
  return this._debugNameData.getDebugName(this) ?? "(anonymous)";
360
360
  }
@@ -545,23 +545,23 @@ class ye extends b {
545
545
  function Oe(n, e, t = u.ofCaller()) {
546
546
  return e !== void 0 ? new b(new l(n, void 0, e), e, void 0, void 0, _, t) : new b(new l(void 0, void 0, n), n, void 0, void 0, _, t);
547
547
  }
548
- function Me(n, e, t, s = u.ofCaller()) {
548
+ function He(n, e, t, s = u.ofCaller()) {
549
549
  return new ye(new l(n, void 0, e), e, void 0, void 0, _, t, s);
550
550
  }
551
551
  function V(n, e, t = u.ofCaller()) {
552
552
  return new b(new l(n.owner, n.debugName, n.debugReferenceFn), e, void 0, n.onLastObserverRemoved, n.equalsFn ?? _, t);
553
553
  }
554
- ge(V);
555
- function He(n, e, t = u.ofCaller()) {
554
+ _e(V);
555
+ function Ke(n, e, t = u.ofCaller()) {
556
556
  return new b(new l(n.owner, n.debugName, void 0), e, n.changeTracker, void 0, n.equalityComparer ?? _, t);
557
557
  }
558
- function Ke(n, e, t = u.ofCaller()) {
558
+ function Pe(n, e, t = u.ofCaller()) {
559
559
  let s, r;
560
560
  e === void 0 ? (s = n, r = void 0) : (r = n, s = e);
561
561
  let i = new f();
562
562
  return new b(new l(r, void 0, s), (a) => (i.isDisposed ? i = new f() : i.clear(), s(a, i)), void 0, () => i.dispose(), _, t);
563
563
  }
564
- function Pe(n, e, t = u.ofCaller()) {
564
+ function Ze(n, e, t = u.ofCaller()) {
565
565
  let s, r;
566
566
  e === void 0 ? (s = n, r = void 0) : (r = n, s = e);
567
567
  let i;
@@ -719,11 +719,11 @@ function Te(n, e) {
719
719
  }, (r, i) => {
720
720
  t.clear(), e(r, i, t);
721
721
  });
722
- return N(() => {
722
+ return R(() => {
723
723
  s.dispose(), t.dispose();
724
724
  });
725
725
  }
726
- function Ze(n) {
726
+ function Je(n) {
727
727
  const e = new f(), t = W({
728
728
  owner: void 0,
729
729
  debugName: void 0,
@@ -731,18 +731,18 @@ function Ze(n) {
731
731
  }, (s) => {
732
732
  e.clear(), n(s, e);
733
733
  });
734
- return N(() => {
734
+ return R(() => {
735
735
  t.dispose(), e.dispose();
736
736
  });
737
737
  }
738
- function Je(n, e) {
738
+ function Qe(n, e) {
739
739
  let t;
740
740
  return W({ debugReferenceFn: e }, (s) => {
741
741
  const r = n.read(s), i = t;
742
742
  t = r, e({ lastValue: i, newValue: r });
743
743
  });
744
744
  }
745
- function Qe(n, e, t = (s) => s) {
745
+ function Xe(n, e, t = (s) => s) {
746
746
  const s = /* @__PURE__ */ new Map();
747
747
  return W({ debugReferenceFn: n }, (r) => {
748
748
  const i = /* @__PURE__ */ new Map(), a = new Map(s);
@@ -755,7 +755,7 @@ function Qe(n, e, t = (s) => s) {
755
755
  (i.size || a.size) && e({ addedValues: [...i.values()], removedValues: [...a.values()] });
756
756
  });
757
757
  }
758
- function Xe(n, e = u.ofCaller()) {
758
+ function Ye(n, e = u.ofCaller()) {
759
759
  let t, s = !1;
760
760
  return t = L((r) => {
761
761
  n({
@@ -781,7 +781,7 @@ function A(n, e) {
781
781
  }
782
782
  }
783
783
  let S;
784
- function Ye(n) {
784
+ function et(n) {
785
785
  if (S)
786
786
  n(S);
787
787
  else {
@@ -794,7 +794,7 @@ function Ye(n) {
794
794
  }
795
795
  }
796
796
  }
797
- async function et(n, e) {
797
+ async function tt(n, e) {
798
798
  const t = new U(n, e);
799
799
  try {
800
800
  await n(t);
@@ -841,7 +841,7 @@ function z(n, e, t = u.ofCaller()) {
841
841
  let s;
842
842
  return typeof n == "string" ? s = new l(void 0, n, void 0) : s = new l(n, void 0, void 0), new q(s, e, _, t);
843
843
  }
844
- class q extends R {
844
+ class q extends N {
845
845
  get debugName() {
846
846
  return this._debugNameData.getDebugName(this) ?? "ObservableValue";
847
847
  }
@@ -881,11 +881,11 @@ class q extends R {
881
881
  this._value = e;
882
882
  }
883
883
  }
884
- function tt(n, e, t = u.ofCaller()) {
884
+ function nt(n, e, t = u.ofCaller()) {
885
885
  let s;
886
- return typeof n == "string" ? s = new l(void 0, n, void 0) : s = new l(n, void 0, void 0), new Re(s, e, _, t);
886
+ return typeof n == "string" ? s = new l(void 0, n, void 0) : s = new l(n, void 0, void 0), new Ne(s, e, _, t);
887
887
  }
888
- class Re extends q {
888
+ class Ne extends q {
889
889
  _setValue(e) {
890
890
  this._value !== e && (this._value && this._value.dispose(), this._value = e);
891
891
  }
@@ -897,10 +897,10 @@ function I(...n) {
897
897
  let e, t, s, r;
898
898
  return n.length === 2 ? [t, s] = n : [e, t, s, r] = n, new p(new l(e, void 0, s), t, s, () => p.globalTransaction, _, r ?? u.ofCaller());
899
899
  }
900
- function nt(n, e, t, s = u.ofCaller()) {
900
+ function st(n, e, t, s = u.ofCaller()) {
901
901
  return new p(new l(n.owner, n.debugName, n.debugReferenceFn ?? t), e, t, () => p.globalTransaction, n.equalsFn ?? _, s);
902
902
  }
903
- class p extends R {
903
+ class p extends N {
904
904
  constructor(e, t, s, r, i, a) {
905
905
  super(a), this._debugNameData = e, this.event = t, this._getValue = s, this._getTransaction = r, this._equalityComparator = i, this._hasValue = !1, this.handleEvent = (d) => {
906
906
  const h = this._getValue(d), $ = this._value, E = !this._hasValue || !this._equalityComparator($, h);
@@ -951,10 +951,10 @@ class p extends R {
951
951
  }
952
952
  n.batchEventsGlobally = e;
953
953
  })(I || (I = {}));
954
- function Ne(n, e = u.ofCaller()) {
954
+ function Re(n, e = u.ofCaller()) {
955
955
  return typeof n == "string" ? new X(n, void 0, e) : new X(void 0, n, e);
956
956
  }
957
- class X extends R {
957
+ class X extends N {
958
958
  get debugName() {
959
959
  return new l(this._owner, this._debugName, void 0).getDebugName(this) ?? "Observable Signal";
960
960
  }
@@ -977,13 +977,13 @@ class X extends R {
977
977
  get() {
978
978
  }
979
979
  }
980
- function st(n) {
980
+ function rt(n) {
981
981
  const e = z("promiseValue", {});
982
982
  return n.then((t) => {
983
983
  e.set({ value: t }, void 0);
984
984
  }), e;
985
985
  }
986
- function rt(n, e) {
986
+ function it(n, e) {
987
987
  return V({
988
988
  owner: n,
989
989
  equalsFn: () => !1
@@ -991,7 +991,7 @@ function rt(n, e) {
991
991
  e.read(t);
992
992
  });
993
993
  }
994
- function it(n, e, t) {
994
+ function at(n, e, t) {
995
995
  const s = z("debounced", void 0);
996
996
  let r;
997
997
  return t.add(L((i) => {
@@ -1003,7 +1003,7 @@ function it(n, e, t) {
1003
1003
  }, e);
1004
1004
  })), s;
1005
1005
  }
1006
- function at(n, e) {
1006
+ function dt(n, e) {
1007
1007
  let t = !1, s, r;
1008
1008
  return I((i) => {
1009
1009
  const a = L((d) => {
@@ -1019,7 +1019,7 @@ function at(n, e) {
1019
1019
  };
1020
1020
  }, () => t ? s : n.get());
1021
1021
  }
1022
- function dt(n, e, t) {
1022
+ function ot(n, e, t) {
1023
1023
  const s = z("triggeredRecently", !1);
1024
1024
  let r;
1025
1025
  return t.add(n(() => {
@@ -1029,26 +1029,26 @@ function dt(n, e, t) {
1029
1029
  })), s;
1030
1030
  }
1031
1031
  function Ve(n) {
1032
- const e = new re(!1, void 0);
1033
- return n.addObserver(e), N(() => {
1032
+ const e = new ie(!1, void 0);
1033
+ return n.addObserver(e), R(() => {
1034
1034
  n.removeObserver(e);
1035
1035
  });
1036
1036
  }
1037
- be(Ve);
1037
+ pe(Ve);
1038
1038
  function ke(n, e) {
1039
- const t = new re(!0, e);
1039
+ const t = new ie(!0, e);
1040
1040
  n.addObserver(t);
1041
1041
  try {
1042
1042
  t.beginUpdate(n);
1043
1043
  } finally {
1044
1044
  t.endUpdate(n);
1045
1045
  }
1046
- return N(() => {
1046
+ return R(() => {
1047
1047
  n.removeObserver(t);
1048
1048
  });
1049
1049
  }
1050
- _e(ke);
1051
- class re {
1050
+ be(ke);
1051
+ class ie {
1052
1052
  constructor(e, t) {
1053
1053
  this._forceRecompute = e, this._handleValue = t, this._counter = 0;
1054
1054
  }
@@ -1063,13 +1063,13 @@ class re {
1063
1063
  handleChange(e, t) {
1064
1064
  }
1065
1065
  }
1066
- function ot(n, e) {
1066
+ function ut(n, e) {
1067
1067
  let t;
1068
1068
  return V({ owner: n, debugReferenceFn: e }, (r) => (t = e(r, t), t));
1069
1069
  }
1070
- function ut(n, e) {
1070
+ function ht(n, e) {
1071
1071
  let t;
1072
- const s = Ne("derivedObservableWithWritableCache"), r = Oe(n, (i) => (s.read(i), t = e(i, t), t));
1072
+ const s = Re("derivedObservableWithWritableCache"), r = Oe(n, (i) => (s.read(i), t = e(i, t), t));
1073
1073
  return Object.assign(r, {
1074
1074
  clearCache: (i) => {
1075
1075
  t = void 0, s.trigger(i);
@@ -1079,7 +1079,7 @@ function ut(n, e) {
1079
1079
  }
1080
1080
  });
1081
1081
  }
1082
- function ht(n, e, t, s) {
1082
+ function lt(n, e, t, s) {
1083
1083
  let r = new Y(t, s);
1084
1084
  return V({
1085
1085
  debugReferenceFn: t,
@@ -1119,7 +1119,7 @@ class Y {
1119
1119
  }
1120
1120
  let T;
1121
1121
  function Ae(n) {
1122
- T || (T = new Ue(), ae(T)), T.addFilteredObj(n);
1122
+ T || (T = new Ue(), de(T)), T.addFilteredObj(n);
1123
1123
  }
1124
1124
  class Ue {
1125
1125
  constructor() {
@@ -1351,9 +1351,9 @@ function Ie(n, e) {
1351
1351
  }
1352
1352
  function je(n, e) {
1353
1353
  const t = e?.debugNamePostProcessor ?? ((i) => i), s = g.from(n, t);
1354
- return s ? ie(s, 0, /* @__PURE__ */ new Set()).trim() : "";
1354
+ return s ? ae(s, 0, /* @__PURE__ */ new Set()).trim() : "";
1355
1355
  }
1356
- function ie(n, e, t) {
1356
+ function ae(n, e, t) {
1357
1357
  const s = " ".repeat(e), r = [];
1358
1358
  if (t.has(n.sourceObj))
1359
1359
  return r.push(`${s}* ${n.type} ${n.name} (already listed)`), r.join(`
@@ -1361,7 +1361,7 @@ function ie(n, e, t) {
1361
1361
  if (t.add(n.sourceObj), r.push(`${s}* ${n.type} ${n.name}:`), r.push(`${s} value: ${O(n.value, 50)}`), r.push(`${s} state: ${n.state}`), n.dependencies.length > 0) {
1362
1362
  r.push(`${s} dependencies:`);
1363
1363
  for (const a of n.dependencies)
1364
- r.push(ie(a, e + 1, t));
1364
+ r.push(ae(a, e + 1, t));
1365
1365
  }
1366
1366
  return r.join(`
1367
1367
  `);
@@ -1389,9 +1389,9 @@ class g {
1389
1389
  this.sourceObj = e, this.name = t, this.type = s, this.value = r, this.state = i, this.dependencies = a;
1390
1390
  }
1391
1391
  }
1392
- pe(je);
1393
- de(Ae);
1394
- class lt extends Error {
1392
+ me(je);
1393
+ oe(Ae);
1394
+ class ct extends Error {
1395
1395
  constructor(e = "Operation was cancelled") {
1396
1396
  super(e), this.name = "CancellationError";
1397
1397
  }
@@ -1425,7 +1425,31 @@ function Le(n) {
1425
1425
  const e = new Ge();
1426
1426
  return n.add(e), e.token;
1427
1427
  }
1428
- function We(n, e) {
1428
+ function ft(n) {
1429
+ return new We(n);
1430
+ }
1431
+ class We extends re {
1432
+ constructor(e) {
1433
+ super(), this.value = e;
1434
+ }
1435
+ get debugName() {
1436
+ return this.toString();
1437
+ }
1438
+ get() {
1439
+ return this.value;
1440
+ }
1441
+ addObserver(e) {
1442
+ }
1443
+ removeObserver(e) {
1444
+ }
1445
+ log() {
1446
+ return this;
1447
+ }
1448
+ toString() {
1449
+ return `Const: ${this.value}`;
1450
+ }
1451
+ }
1452
+ function ze(n, e) {
1429
1453
  let t, s = !0;
1430
1454
  return Te({
1431
1455
  changeTracker: {
@@ -1443,8 +1467,8 @@ function We(n, e) {
1443
1467
  i.didChange && (t = a, e(a, d, i.deltas)), s && (s = !1, t = a);
1444
1468
  });
1445
1469
  }
1446
- function ze(n, e) {
1447
- const t = new f(), s = We(n, (r, i, a) => {
1470
+ function qe(n, e) {
1471
+ const t = new f(), s = ze(n, (r, i, a) => {
1448
1472
  t.clear(), e(r, i, a, t);
1449
1473
  });
1450
1474
  return {
@@ -1453,62 +1477,62 @@ function ze(n, e) {
1453
1477
  }
1454
1478
  };
1455
1479
  }
1456
- function ct(n, e) {
1457
- return ze(n, (t, s, r, i) => {
1480
+ function gt(n, e) {
1481
+ return qe(n, (t, s, r, i) => {
1458
1482
  e(t, s, r, Le(i));
1459
1483
  });
1460
1484
  }
1461
1485
  export {
1462
- at as A,
1463
- R as B,
1464
- lt as C,
1465
- qe as D,
1466
- it as E,
1467
- Pe as F,
1468
- He as G,
1469
- ut as H,
1486
+ dt as A,
1487
+ N as B,
1488
+ ct as C,
1489
+ Me as D,
1490
+ at as E,
1491
+ Ze as F,
1492
+ Ke as G,
1493
+ ht as H,
1470
1494
  V as I,
1471
- Me as J,
1472
- Ke as K,
1473
- tt as L,
1474
- Ye as M,
1475
- ht as N,
1495
+ He as J,
1496
+ Pe as K,
1497
+ nt as L,
1498
+ et as M,
1499
+ lt as N,
1476
1500
  q as O,
1477
- nt as P,
1478
- st as Q,
1479
- Ne as R,
1501
+ st as P,
1502
+ rt as Q,
1503
+ Re as R,
1480
1504
  ke as S,
1481
1505
  U as T,
1482
- ct as U,
1483
- ze as V,
1484
- rt as W,
1506
+ gt as U,
1507
+ qe as V,
1508
+ it as W,
1485
1509
  De as X,
1486
- dt as Y,
1510
+ ot as Y,
1487
1511
  L as a,
1488
1512
  l as b,
1489
- u as c,
1513
+ ft as c,
1490
1514
  Oe as d,
1491
- b as e,
1492
- Ge as f,
1515
+ u as e,
1516
+ b as f,
1493
1517
  o as g,
1494
- v as h,
1495
- me as i,
1518
+ Ge as h,
1519
+ v as i,
1496
1520
  I as j,
1497
- ot as k,
1521
+ ut as k,
1498
1522
  f as l,
1499
1523
  W as m,
1500
- he as n,
1524
+ le as n,
1501
1525
  z as o,
1502
1526
  Ve as p,
1503
- et as q,
1504
- We as r,
1527
+ tt as q,
1528
+ ze as r,
1505
1529
  _ as s,
1506
1530
  A as t,
1507
- Je as u,
1531
+ Qe as u,
1508
1532
  Se as v,
1509
- Qe as w,
1510
- Xe as x,
1511
- Ze as y,
1533
+ Xe as w,
1534
+ Ye as x,
1535
+ Je as y,
1512
1536
  Te as z
1513
1537
  };
1514
- //# sourceMappingURL=runOnChange-owE1SMC0.js.map
1538
+ //# sourceMappingURL=runOnChange-C00UIwqQ.js.map