@fileverse-dev/ddoc 2.3.0-patch-9 → 2.3.0-patch-10
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,4 +1,4 @@
|
|
1
|
-
import { B as p, g as m, s as w, d as k, i as b, l as L, a as O, c as E, b as x, e as R, H as y, f as M } from "./index-
|
1
|
+
import { B as p, g as m, s as w, d as k, i as b, l as L, a as O, c as E, b as x, e as R, H as y, f as M } from "./index-DjI4KULl.mjs";
|
2
2
|
class S extends p {
|
3
3
|
constructor({ callbackSelector: r, cause: a, data: n, extraData: i, sender: f, urls: t }) {
|
4
4
|
var o;
|
@@ -63,8 +63,8 @@ function cse() {
|
|
63
63
|
}
|
64
64
|
function k(P, ye, Se) {
|
65
65
|
{
|
66
|
-
var Ge = b.ReactDebugCurrentFrame,
|
67
|
-
|
66
|
+
var Ge = b.ReactDebugCurrentFrame, ft = Ge.getStackAddendum();
|
67
|
+
ft !== "" && (ye += "%s", Se = Se.concat([ft]));
|
68
68
|
var xt = Se.map(function(lt) {
|
69
69
|
return String(lt);
|
70
70
|
});
|
@@ -84,8 +84,8 @@ function cse() {
|
|
84
84
|
var Ge = P.displayName;
|
85
85
|
if (Ge)
|
86
86
|
return Ge;
|
87
|
-
var
|
88
|
-
return
|
87
|
+
var ft = ye.displayName || ye.name || "";
|
88
|
+
return ft !== "" ? Se + "(" + ft + ")" : Se;
|
89
89
|
}
|
90
90
|
function B(P) {
|
91
91
|
return P.displayName || "Context";
|
@@ -125,7 +125,7 @@ function cse() {
|
|
125
125
|
var Ge = P.displayName || null;
|
126
126
|
return Ge !== null ? Ge : G(P.type) || "Memo";
|
127
127
|
case f: {
|
128
|
-
var
|
128
|
+
var ft = P, xt = ft._payload, lt = ft._init;
|
129
129
|
try {
|
130
130
|
return G(lt(xt));
|
131
131
|
} catch {
|
@@ -203,8 +203,8 @@ function cse() {
|
|
203
203
|
if (Ce === void 0)
|
204
204
|
try {
|
205
205
|
throw Error();
|
206
|
-
} catch (
|
207
|
-
var Ge =
|
206
|
+
} catch (ft) {
|
207
|
+
var Ge = ft.stack.trim().match(/\n( *(at )?)/);
|
208
208
|
Ce = Ge && Ge[1] || "";
|
209
209
|
}
|
210
210
|
return `
|
@@ -226,7 +226,7 @@ function cse() {
|
|
226
226
|
}
|
227
227
|
var Ge;
|
228
228
|
Re = !0;
|
229
|
-
var
|
229
|
+
var ft = Error.prepareStackTrace;
|
230
230
|
Error.prepareStackTrace = void 0;
|
231
231
|
var xt;
|
232
232
|
xt = ee.current, ee.current = null, ue();
|
@@ -282,7 +282,7 @@ function cse() {
|
|
282
282
|
}
|
283
283
|
}
|
284
284
|
} finally {
|
285
|
-
Re = !1, ee.current = xt, le(), Error.prepareStackTrace =
|
285
|
+
Re = !1, ee.current = xt, le(), Error.prepareStackTrace = ft;
|
286
286
|
}
|
287
287
|
var Gt = P ? P.displayName || P.name : "", Mt = Gt ? Me(Gt) : "";
|
288
288
|
return typeof P == "function" && Le.set(P, Mt), Mt;
|
@@ -314,9 +314,9 @@ function cse() {
|
|
314
314
|
case d:
|
315
315
|
return K(P.type, ye, Se);
|
316
316
|
case f: {
|
317
|
-
var Ge = P,
|
317
|
+
var Ge = P, ft = Ge._payload, xt = Ge._init;
|
318
318
|
try {
|
319
|
-
return K(xt(
|
319
|
+
return K(xt(ft), ye, Se);
|
320
320
|
} catch {
|
321
321
|
}
|
322
322
|
}
|
@@ -331,7 +331,7 @@ function cse() {
|
|
331
331
|
} else
|
332
332
|
de.setExtraStackFrame(null);
|
333
333
|
}
|
334
|
-
function E(P, ye, Se, Ge,
|
334
|
+
function E(P, ye, Se, Ge, ft) {
|
335
335
|
{
|
336
336
|
var xt = Function.call.bind(X);
|
337
337
|
for (var lt in P)
|
@@ -346,7 +346,7 @@ function cse() {
|
|
346
346
|
} catch (ae) {
|
347
347
|
at = ae;
|
348
348
|
}
|
349
|
-
at && !(at instanceof Error) && (V(
|
349
|
+
at && !(at instanceof Error) && (V(ft), x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", Ge || "React class", Se, lt, typeof at), V(null)), at instanceof Error && !(at.message in Q) && (Q[at.message] = !0, V(ft), x("Failed %s type: %s", Se, at.message), V(null));
|
350
350
|
}
|
351
351
|
}
|
352
352
|
}
|
@@ -421,7 +421,7 @@ function cse() {
|
|
421
421
|
});
|
422
422
|
}
|
423
423
|
}
|
424
|
-
var ge = function(P, ye, Se, Ge,
|
424
|
+
var ge = function(P, ye, Se, Ge, ft, xt, lt) {
|
425
425
|
var at = {
|
426
426
|
// This tag allows us to uniquely identify this as a React Element
|
427
427
|
$$typeof: t,
|
@@ -447,13 +447,13 @@ function cse() {
|
|
447
447
|
configurable: !1,
|
448
448
|
enumerable: !1,
|
449
449
|
writable: !1,
|
450
|
-
value:
|
450
|
+
value: ft
|
451
451
|
}), Object.freeze && (Object.freeze(at.props), Object.freeze(at)), at;
|
452
452
|
};
|
453
|
-
function ze(P, ye, Se, Ge,
|
453
|
+
function ze(P, ye, Se, Ge, ft) {
|
454
454
|
{
|
455
455
|
var xt, lt = {}, at = null, Qe = null;
|
456
|
-
Se !== void 0 && (pe(Se), at = "" + Se), Ct(ye) && (pe(ye.key), at = "" + ye.key), et(ye) && (Qe = ye.ref, $t(ye,
|
456
|
+
Se !== void 0 && (pe(Se), at = "" + Se), Ct(ye) && (pe(ye.key), at = "" + ye.key), et(ye) && (Qe = ye.ref, $t(ye, ft));
|
457
457
|
for (xt in ye)
|
458
458
|
X.call(ye, xt) && !ke.hasOwnProperty(xt) && (lt[xt] = ye[xt]);
|
459
459
|
if (P && P.defaultProps) {
|
@@ -465,7 +465,7 @@ function cse() {
|
|
465
465
|
var Ne = typeof P == "function" ? P.displayName || P.name || "Unknown" : P;
|
466
466
|
at && Ae(lt, Ne), Qe && Ee(lt, Ne);
|
467
467
|
}
|
468
|
-
return ge(P, at, Qe,
|
468
|
+
return ge(P, at, Qe, ft, Ge, ce.current, lt);
|
469
469
|
}
|
470
470
|
}
|
471
471
|
var qe = b.ReactCurrentOwner, Oe = b.ReactDebugCurrentFrame;
|
@@ -534,9 +534,9 @@ Check the top-level render call using <` + Se + ">.");
|
|
534
534
|
else if (tt(P))
|
535
535
|
P._store && (P._store.validated = !0);
|
536
536
|
else if (P) {
|
537
|
-
var
|
538
|
-
if (typeof
|
539
|
-
for (var xt =
|
537
|
+
var ft = g(P);
|
538
|
+
if (typeof ft == "function" && ft !== P.entries)
|
539
|
+
for (var xt = ft.call(P), lt; !(lt = xt.next()).done; )
|
540
540
|
tt(lt.value) && Tn(lt.value, ye);
|
541
541
|
}
|
542
542
|
}
|
@@ -560,8 +560,8 @@ Check the top-level render call using <` + Se + ">.");
|
|
560
560
|
E(Se, P.props, "prop", Ge, P);
|
561
561
|
} else if (ye.PropTypes !== void 0 && !it) {
|
562
562
|
it = !0;
|
563
|
-
var
|
564
|
-
x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
563
|
+
var ft = G(ye);
|
564
|
+
x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", ft || "Unknown");
|
565
565
|
}
|
566
566
|
typeof ye.getDefaultProps == "function" && !ye.getDefaultProps.isReactClassApproved && x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
567
567
|
}
|
@@ -579,7 +579,7 @@ Check the top-level render call using <` + Se + ">.");
|
|
579
579
|
}
|
580
580
|
}
|
581
581
|
var ho = {};
|
582
|
-
function oi(P, ye, Se, Ge,
|
582
|
+
function oi(P, ye, Se, Ge, ft, xt) {
|
583
583
|
{
|
584
584
|
var lt = S(P);
|
585
585
|
if (!lt) {
|
@@ -590,7 +590,7 @@ Check the top-level render call using <` + Se + ">.");
|
|
590
590
|
var ae;
|
591
591
|
P === null ? ae = "null" : _(P) ? ae = "array" : P !== void 0 && P.$$typeof === t ? (ae = "<" + (G(P.type) || "Unknown") + " />", at = " Did you accidentally export a JSX literal instead of a component?") : ae = typeof P, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ae, at);
|
592
592
|
}
|
593
|
-
var Ne = ze(P, ye, Se,
|
593
|
+
var Ne = ze(P, ye, Se, ft, xt);
|
594
594
|
if (Ne == null)
|
595
595
|
return Ne;
|
596
596
|
if (lt) {
|
@@ -5046,7 +5046,7 @@ class Lt {
|
|
5046
5046
|
found.
|
5047
5047
|
*/
|
5048
5048
|
static findFrom(t, n, r = !1) {
|
5049
|
-
let o = t.parent.inlineContent ? new
|
5049
|
+
let o = t.parent.inlineContent ? new ht(t) : Sd(t.node(0), t.parent, t.pos, t.index(), n, r);
|
5050
5050
|
if (o)
|
5051
5051
|
return o;
|
5052
5052
|
for (let i = t.depth - 1; i >= 0; i--) {
|
@@ -5113,7 +5113,7 @@ class Lt {
|
|
5113
5113
|
returns the bookmark for that.
|
5114
5114
|
*/
|
5115
5115
|
getBookmark() {
|
5116
|
-
return
|
5116
|
+
return ht.between(this.$anchor, this.$head).getBookmark();
|
5117
5117
|
}
|
5118
5118
|
}
|
5119
5119
|
Lt.prototype.visible = !0;
|
@@ -5129,7 +5129,7 @@ let KD = !1;
|
|
5129
5129
|
function $D(e) {
|
5130
5130
|
!KD && !e.parent.inlineContent && (KD = !0, console.warn("TextSelection endpoint not pointing into a node with inline content (" + e.parent.type.name + ")"));
|
5131
5131
|
}
|
5132
|
-
class
|
5132
|
+
class ht extends Lt {
|
5133
5133
|
/**
|
5134
5134
|
Construct a text selection between the given points.
|
5135
5135
|
*/
|
@@ -5148,7 +5148,7 @@ class ft extends Lt {
|
|
5148
5148
|
if (!r.parent.inlineContent)
|
5149
5149
|
return Lt.near(r);
|
5150
5150
|
let o = t.resolve(n.map(this.anchor));
|
5151
|
-
return new
|
5151
|
+
return new ht(o.parent.inlineContent ? o : r, r);
|
5152
5152
|
}
|
5153
5153
|
replace(t, n = nt.empty) {
|
5154
5154
|
if (super.replace(t, n), n == nt.empty) {
|
@@ -5157,7 +5157,7 @@ class ft extends Lt {
|
|
5157
5157
|
}
|
5158
5158
|
}
|
5159
5159
|
eq(t) {
|
5160
|
-
return t instanceof
|
5160
|
+
return t instanceof ht && t.anchor == this.anchor && t.head == this.head;
|
5161
5161
|
}
|
5162
5162
|
getBookmark() {
|
5163
5163
|
return new Ab(this.anchor, this.head);
|
@@ -5171,7 +5171,7 @@ class ft extends Lt {
|
|
5171
5171
|
static fromJSON(t, n) {
|
5172
5172
|
if (typeof n.anchor != "number" || typeof n.head != "number")
|
5173
5173
|
throw new RangeError("Invalid input for TextSelection.fromJSON");
|
5174
|
-
return new
|
5174
|
+
return new ht(t.resolve(n.anchor), t.resolve(n.head));
|
5175
5175
|
}
|
5176
5176
|
/**
|
5177
5177
|
Create a text selection from non-resolved positions.
|
@@ -5197,10 +5197,10 @@ class ft extends Lt {
|
|
5197
5197
|
else
|
5198
5198
|
return Lt.near(n, r);
|
5199
5199
|
}
|
5200
|
-
return t.parent.inlineContent || (o == 0 ? t = n : (t = (Lt.findFrom(t, -r, !0) || Lt.findFrom(t, r, !0)).$anchor, t.pos < n.pos != o < 0 && (t = n))), new
|
5200
|
+
return t.parent.inlineContent || (o == 0 ? t = n : (t = (Lt.findFrom(t, -r, !0) || Lt.findFrom(t, r, !0)).$anchor, t.pos < n.pos != o < 0 && (t = n))), new ht(t, n);
|
5201
5201
|
}
|
5202
5202
|
}
|
5203
|
-
Lt.jsonID("text",
|
5203
|
+
Lt.jsonID("text", ht);
|
5204
5204
|
class Ab {
|
5205
5205
|
constructor(t, n) {
|
5206
5206
|
this.anchor = t, this.head = n;
|
@@ -5209,7 +5209,7 @@ class Ab {
|
|
5209
5209
|
return new Ab(t.map(this.anchor), t.map(this.head));
|
5210
5210
|
}
|
5211
5211
|
resolve(t) {
|
5212
|
-
return
|
5212
|
+
return ht.between(t.resolve(this.anchor), t.resolve(this.head));
|
5213
5213
|
}
|
5214
5214
|
}
|
5215
5215
|
class wt extends Lt {
|
@@ -5319,7 +5319,7 @@ const nle = {
|
|
5319
5319
|
};
|
5320
5320
|
function Sd(e, t, n, r, o, i = !1) {
|
5321
5321
|
if (t.inlineContent)
|
5322
|
-
return
|
5322
|
+
return ht.create(e, n);
|
5323
5323
|
for (let a = r - (o > 0 ? 0 : 1); o > 0 ? a < t.childCount : a >= 0; a += o) {
|
5324
5324
|
let s = t.child(a);
|
5325
5325
|
if (s.isAtom) {
|
@@ -6714,7 +6714,7 @@ class Sc extends nm {
|
|
6714
6714
|
}
|
6715
6715
|
localCompositionInfo(t, n) {
|
6716
6716
|
let { from: r, to: o } = t.state.selection;
|
6717
|
-
if (!(t.state.selection instanceof
|
6717
|
+
if (!(t.state.selection instanceof ht) || r < n || o > n + this.node.content.size)
|
6718
6718
|
return null;
|
6719
6719
|
let i = t.input.compositionNode;
|
6720
6720
|
if (!i || !this.dom.contains(i.parentNode))
|
@@ -7273,7 +7273,7 @@ function pl(e, t = !1) {
|
|
7273
7273
|
zle(e);
|
7274
7274
|
else {
|
7275
7275
|
let { anchor: r, head: o } = n, i, a;
|
7276
|
-
fS && !(n instanceof
|
7276
|
+
fS && !(n instanceof ht) && (n.$from.parent.inlineContent || (i = hS(e, n.from)), !n.empty && !n.$from.parent.inlineContent && (a = hS(e, n.to))), e.docView.setSelection(r, o, e, t), fS && (i && pS(i), a && pS(a)), n.visible ? e.dom.classList.remove("ProseMirror-hideselection") : (e.dom.classList.add("ProseMirror-hideselection"), "onselectionchange" in document && _le(e));
|
7277
7277
|
}
|
7278
7278
|
e.domObserver.setCurSelection(), e.domObserver.connectSelection();
|
7279
7279
|
}
|
@@ -7324,7 +7324,7 @@ function mS(e) {
|
|
7324
7324
|
e.lastSelectedViewDesc && (e.lastSelectedViewDesc.parent && e.lastSelectedViewDesc.deselectNode(), e.lastSelectedViewDesc = void 0);
|
7325
7325
|
}
|
7326
7326
|
function SF(e, t, n, r) {
|
7327
|
-
return e.someProp("createSelectionBetween", (o) => o(e, t, n)) ||
|
7327
|
+
return e.someProp("createSelectionBetween", (o) => o(e, t, n)) || ht.between(t, n, r);
|
7328
7328
|
}
|
7329
7329
|
function gS(e) {
|
7330
7330
|
return e.editable && !e.hasFocus() ? !1 : dH(e);
|
@@ -7352,13 +7352,13 @@ function lc(e, t) {
|
|
7352
7352
|
}
|
7353
7353
|
function yS(e, t, n) {
|
7354
7354
|
let r = e.state.selection;
|
7355
|
-
if (r instanceof
|
7355
|
+
if (r instanceof ht)
|
7356
7356
|
if (n.indexOf("s") > -1) {
|
7357
7357
|
let { $head: o } = r, i = o.textOffset ? null : t < 0 ? o.nodeBefore : o.nodeAfter;
|
7358
7358
|
if (!i || i.isText || !i.isLeaf)
|
7359
7359
|
return !1;
|
7360
7360
|
let a = e.state.doc.resolve(o.pos + i.nodeSize * (t < 0 ? -1 : 1));
|
7361
|
-
return lc(e, new
|
7361
|
+
return lc(e, new ht(r.$anchor, a));
|
7362
7362
|
} else if (r.empty) {
|
7363
7363
|
if (e.endOfTextblock(t > 0 ? "forward" : "backward")) {
|
7364
7364
|
let o = z9(e.state, t);
|
@@ -7368,12 +7368,12 @@ function yS(e, t, n) {
|
|
7368
7368
|
if (!i || i.isText)
|
7369
7369
|
return !1;
|
7370
7370
|
let s = t < 0 ? o.pos - i.nodeSize : o.pos;
|
7371
|
-
return i.isAtom || (a = e.docView.descAt(s)) && !a.contentDOM ? wt.isSelectable(i) ? lc(e, new wt(t < 0 ? e.state.doc.resolve(o.pos - i.nodeSize) : o)) : tm ? lc(e, new
|
7371
|
+
return i.isAtom || (a = e.docView.descAt(s)) && !a.contentDOM ? wt.isSelectable(i) ? lc(e, new wt(t < 0 ? e.state.doc.resolve(o.pos - i.nodeSize) : o)) : tm ? lc(e, new ht(e.state.doc.resolve(t < 0 ? s : s + i.nodeSize))) : !1 : !1;
|
7372
7372
|
}
|
7373
7373
|
} else return !1;
|
7374
7374
|
else {
|
7375
7375
|
if (r instanceof wt && r.node.isInline)
|
7376
|
-
return lc(e, new
|
7376
|
+
return lc(e, new ht(t > 0 ? r.$to : r.$from));
|
7377
7377
|
{
|
7378
7378
|
let o = z9(e.state, t);
|
7379
7379
|
return o ? lc(e, o) : !1;
|
@@ -7523,7 +7523,7 @@ function bS(e, t) {
|
|
7523
7523
|
}
|
7524
7524
|
function xS(e, t, n) {
|
7525
7525
|
let r = e.state.selection;
|
7526
|
-
if (r instanceof
|
7526
|
+
if (r instanceof ht && !r.empty || n.indexOf("s") > -1 || Pi && n.indexOf("m") > -1)
|
7527
7527
|
return !1;
|
7528
7528
|
let { $from: o, $to: i } = r;
|
7529
7529
|
if (!o.parent.inlineContent || e.endOfTextblock(t < 0 ? "up" : "down")) {
|
@@ -7538,7 +7538,7 @@ function xS(e, t, n) {
|
|
7538
7538
|
return !1;
|
7539
7539
|
}
|
7540
7540
|
function vS(e, t) {
|
7541
|
-
if (!(e.state.selection instanceof
|
7541
|
+
if (!(e.state.selection instanceof ht))
|
7542
7542
|
return !0;
|
7543
7543
|
let { $head: n, $anchor: r, empty: o } = e.state.selection;
|
7544
7544
|
if (!n.sameParent(r))
|
@@ -7854,7 +7854,7 @@ Ao.keypress = (e, t) => {
|
|
7854
7854
|
return;
|
7855
7855
|
}
|
7856
7856
|
let r = e.state.selection;
|
7857
|
-
if (!(r instanceof
|
7857
|
+
if (!(r instanceof ht) || !r.$from.sameParent(r.$to)) {
|
7858
7858
|
let o = String.fromCharCode(n.charCode);
|
7859
7859
|
!/[\r\n]/.test(o) && !e.someProp("handleTextInput", (i) => i(e, r.$from.pos, r.$to.pos, o)) && e.dispatch(e.state.tr.insertText(o).scrollIntoView()), n.preventDefault();
|
7860
7860
|
}
|
@@ -7916,12 +7916,12 @@ function fce(e, t, n) {
|
|
7916
7916
|
return !1;
|
7917
7917
|
let r = e.state.doc;
|
7918
7918
|
if (t == -1)
|
7919
|
-
return r.inlineContent ? (e0(e,
|
7919
|
+
return r.inlineContent ? (e0(e, ht.create(r, 0, r.content.size)), !0) : !1;
|
7920
7920
|
let o = r.resolve(t);
|
7921
7921
|
for (let i = o.depth + 1; i > 0; i--) {
|
7922
7922
|
let a = i > o.depth ? o.nodeAfter : o.node(i), s = o.before(i);
|
7923
7923
|
if (a.inlineContent)
|
7924
|
-
e0(e,
|
7924
|
+
e0(e, ht.create(r, s + 1, s + 1 + a.content.size));
|
7925
7925
|
else if (wt.isSelectable(a))
|
7926
7926
|
e0(e, wt.create(r, s));
|
7927
7927
|
else
|
@@ -8002,7 +8002,7 @@ Ao.compositionstart = Ao.compositionupdate = (e) => {
|
|
8002
8002
|
if (!e.composing) {
|
8003
8003
|
e.domObserver.flush();
|
8004
8004
|
let { state: t } = e, n = t.selection.$to;
|
8005
|
-
if (t.selection instanceof
|
8005
|
+
if (t.selection instanceof ht && (t.storedMarks || !n.textOffset && n.parentOffset && n.nodeBefore.marks.some((r) => r.type.spec.inclusive === !1)))
|
8006
8006
|
e.markCursor = e.state.storedMarks || n.marks(), vy(e, !0), e.markCursor = null;
|
8007
8007
|
else if (vy(e, !t.selection.empty), ka && t.selection.empty && n.parentOffset && !n.textOffset && n.nodeBefore.marks.length) {
|
8008
8008
|
let r = e.domSelectionRange();
|
@@ -8982,7 +8982,7 @@ function Nce(e, t, n, r, o) {
|
|
8982
8982
|
return;
|
8983
8983
|
}
|
8984
8984
|
if (!p)
|
8985
|
-
if (r && l instanceof
|
8985
|
+
if (r && l instanceof ht && !l.empty && l.$head.sameParent(l.$anchor) && !e.composing && !(c.sel && c.sel.anchor != c.sel.head))
|
8986
8986
|
p = { start: l.from, endA: l.to, endB: l.to };
|
8987
8987
|
else {
|
8988
8988
|
if (c.sel) {
|
@@ -8994,7 +8994,7 @@ function Nce(e, t, n, r, o) {
|
|
8994
8994
|
}
|
8995
8995
|
return;
|
8996
8996
|
}
|
8997
|
-
e.state.selection.from < e.state.selection.to && p.start == p.endB && e.state.selection instanceof
|
8997
|
+
e.state.selection.from < e.state.selection.to && p.start == p.endB && e.state.selection instanceof ht && (p.start > e.state.selection.from && p.start <= e.state.selection.from + 2 && e.state.selection.from >= c.from ? p.start = e.state.selection.from : p.endA < e.state.selection.to && p.endA >= e.state.selection.to - 2 && e.state.selection.to <= c.to && (p.endB += e.state.selection.to - p.endA, p.endA = e.state.selection.to)), Wo && Dc <= 11 && p.endB == p.start + 1 && p.endA == p.start && p.start > c.from && c.doc.textBetween(p.start - c.from - 1, p.start - c.from + 1) == " " && (p.start--, p.endA--, p.endB--);
|
8998
8998
|
let m = c.doc.resolveNoCache(p.start - c.from), g = c.doc.resolveNoCache(p.endB - c.from), b = u.resolve(p.start), x = m.sameParent(g) && m.parent.inlineContent && b.end() >= p.endA, k;
|
8999
8999
|
if ((v0 && e.input.lastIOSEnter > Date.now() - 225 && (!x || o.some((D) => D.nodeName == "DIV" || D.nodeName == "P")) || !x && m.pos < c.doc.content.size && (!m.sameParent(g) || !m.parent.inlineContent) && !/\S/.test(c.doc.textBetween(m.pos, g.pos, "", "")) && (k = Lt.findFrom(c.doc.resolve(m.pos + 1), 1, !0)) && k.head > m.pos) && e.someProp("handleKeyDown", (D) => D(e, _u(13, "Enter")))) {
|
9000
9000
|
e.input.lastIOSEnter = 0;
|
@@ -9705,7 +9705,7 @@ function TH(e, t, n) {
|
|
9705
9705
|
return !1;
|
9706
9706
|
if (n) {
|
9707
9707
|
let u = e.tr.step(c);
|
9708
|
-
u.setSelection(
|
9708
|
+
u.setSelection(ht.create(u.doc, i)), n(u.scrollIntoView());
|
9709
9709
|
}
|
9710
9710
|
return !0;
|
9711
9711
|
}
|
@@ -9847,7 +9847,7 @@ const Qce = (e, t) => {
|
|
9847
9847
|
return !1;
|
9848
9848
|
if (t) {
|
9849
9849
|
let a = (!r.parentOffset && o.index() < o.parent.childCount ? r : o).pos, s = e.tr.insert(a, i.createAndFill());
|
9850
|
-
s.setSelection(
|
9850
|
+
s.setSelection(ht.create(s.doc, a + 1)), t(s.scrollIntoView());
|
9851
9851
|
}
|
9852
9852
|
return !0;
|
9853
9853
|
}, _H = (e, t) => {
|
@@ -9880,7 +9880,7 @@ function Xce(e) {
|
|
9880
9880
|
i.unshift(null);
|
9881
9881
|
}
|
9882
9882
|
let u = t.tr;
|
9883
|
-
(t.selection instanceof
|
9883
|
+
(t.selection instanceof ht || t.selection instanceof gi) && u.deleteSelection();
|
9884
9884
|
let d = u.mapping.map(r.pos), f = hl(u.doc, d, i.length, i);
|
9885
9885
|
if (f || (i[0] = s ? { type: s } : null, f = hl(u.doc, d, i.length, i)), !f)
|
9886
9886
|
return !1;
|
@@ -9946,7 +9946,7 @@ function PH(e) {
|
|
9946
9946
|
return !1;
|
9947
9947
|
i--;
|
9948
9948
|
}
|
9949
|
-
return o.node(i).isTextblock ? (n && n(t.tr.setSelection(
|
9949
|
+
return o.node(i).isTextblock ? (n && n(t.tr.setSelection(ht.create(t.doc, e < 0 ? o.start(i) : o.end(i)))), !0) : !1;
|
9950
9950
|
};
|
9951
9951
|
}
|
9952
9952
|
const rue = PH(-1), oue = PH(1);
|
@@ -11004,7 +11004,7 @@ const WH = nn.create({
|
|
11004
11004
|
const { state: o } = n, i = o.doc.slice(e.from, e.to);
|
11005
11005
|
r.deleteRange(e.from, e.to);
|
11006
11006
|
const a = r.mapping.map(t);
|
11007
|
-
return r.insert(a, i.content), r.setSelection(new
|
11007
|
+
return r.insert(a, i.content), r.setSelection(new ht(r.doc.resolve(a - 1))), !0;
|
11008
11008
|
}, Nue = () => ({ tr: e, dispatch: t }) => {
|
11009
11009
|
const { selection: n } = e, r = n.$anchor.node();
|
11010
11010
|
if (r.content.size > 0)
|
@@ -11076,7 +11076,7 @@ const Pue = (e, t = {}) => ({ tr: n, state: r, dispatch: o }) => {
|
|
11076
11076
|
if (o) {
|
11077
11077
|
const d = UF(l, i, t);
|
11078
11078
|
if (d && d.from <= c && d.to >= u) {
|
11079
|
-
const f =
|
11079
|
+
const f = ht.create(a, d.from, d.to);
|
11080
11080
|
n.setSelection(f);
|
11081
11081
|
}
|
11082
11082
|
}
|
@@ -11089,7 +11089,7 @@ const Pue = (e, t = {}) => ({ tr: n, state: r, dispatch: o }) => {
|
|
11089
11089
|
return !1;
|
11090
11090
|
};
|
11091
11091
|
function Rb(e) {
|
11092
|
-
return e instanceof
|
11092
|
+
return e instanceof ht;
|
11093
11093
|
}
|
11094
11094
|
function dl(e = 0, t = 0, n = 0) {
|
11095
11095
|
return Math.min(Math.max(e, t), n);
|
@@ -11103,7 +11103,7 @@ function GH(e, t = null) {
|
|
11103
11103
|
if (t === "end")
|
11104
11104
|
return r;
|
11105
11105
|
const o = n.from, i = r.to;
|
11106
|
-
return t === "all" ?
|
11106
|
+
return t === "all" ? ht.create(e, dl(0, o, i), dl(e.content.size, o, i)) : ht.create(e, dl(t, o, i), dl(t, o, i));
|
11107
11107
|
}
|
11108
11108
|
function Ob() {
|
11109
11109
|
return [
|
@@ -11642,7 +11642,7 @@ const j1e = (e, t = {}) => ({ tr: n, state: r, dispatch: o }) => {
|
|
11642
11642
|
return !0;
|
11643
11643
|
}, L1e = (e) => ({ tr: t, dispatch: n }) => {
|
11644
11644
|
if (n) {
|
11645
|
-
const { doc: r } = t, { from: o, to: i } = typeof e == "number" ? { from: e, to: e } : e, a =
|
11645
|
+
const { doc: r } = t, { from: o, to: i } = typeof e == "number" ? { from: e, to: e } : e, a = ht.atStart(r).from, s = ht.atEnd(r).to, l = dl(o, a, s), c = dl(i, a, s), u = ht.create(r, l, c);
|
11646
11646
|
t.setSelection(u);
|
11647
11647
|
}
|
11648
11648
|
return !0;
|
@@ -11676,7 +11676,7 @@ const I1e = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edi
|
|
11676
11676
|
attrs: u
|
11677
11677
|
}
|
11678
11678
|
] : void 0), r) {
|
11679
|
-
if (p && (i instanceof
|
11679
|
+
if (p && (i instanceof ht && t.deleteSelection(), t.split(t.mapping.map(s.pos), 1, h), f && !d && !s.parentOffset && s.parent.type !== f)) {
|
11680
11680
|
const m = t.mapping.map(s.before()), g = t.doc.resolve(m);
|
11681
11681
|
s.node(-1).canReplaceWith(g.index(), g.index() + 1, f) && t.setNodeMarkup(t.mapping.map(s.before()), f);
|
11682
11682
|
}
|
@@ -11712,7 +11712,7 @@ const I1e = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edi
|
|
11712
11712
|
if (A > -1)
|
11713
11713
|
return !1;
|
11714
11714
|
j.isTextblock && j.content.size === 0 && (A = D + 1);
|
11715
|
-
}), A > -1 && n.setSelection(
|
11715
|
+
}), A > -1 && n.setSelection(ht.near(n.doc.resolve(A))), n.scrollIntoView();
|
11716
11716
|
}
|
11717
11717
|
return !0;
|
11718
11718
|
}
|
@@ -15636,8 +15636,8 @@ function rfe() {
|
|
15636
15636
|
}
|
15637
15637
|
function k(P, ye, Se) {
|
15638
15638
|
{
|
15639
|
-
var Ge = b.ReactDebugCurrentFrame,
|
15640
|
-
|
15639
|
+
var Ge = b.ReactDebugCurrentFrame, ft = Ge.getStackAddendum();
|
15640
|
+
ft !== "" && (ye += "%s", Se = Se.concat([ft]));
|
15641
15641
|
var xt = Se.map(function(lt) {
|
15642
15642
|
return String(lt);
|
15643
15643
|
});
|
@@ -15657,8 +15657,8 @@ function rfe() {
|
|
15657
15657
|
var Ge = P.displayName;
|
15658
15658
|
if (Ge)
|
15659
15659
|
return Ge;
|
15660
|
-
var
|
15661
|
-
return
|
15660
|
+
var ft = ye.displayName || ye.name || "";
|
15661
|
+
return ft !== "" ? Se + "(" + ft + ")" : Se;
|
15662
15662
|
}
|
15663
15663
|
function B(P) {
|
15664
15664
|
return P.displayName || "Context";
|
@@ -15698,7 +15698,7 @@ function rfe() {
|
|
15698
15698
|
var Ge = P.displayName || null;
|
15699
15699
|
return Ge !== null ? Ge : G(P.type) || "Memo";
|
15700
15700
|
case f: {
|
15701
|
-
var
|
15701
|
+
var ft = P, xt = ft._payload, lt = ft._init;
|
15702
15702
|
try {
|
15703
15703
|
return G(lt(xt));
|
15704
15704
|
} catch {
|
@@ -15776,8 +15776,8 @@ function rfe() {
|
|
15776
15776
|
if (Ce === void 0)
|
15777
15777
|
try {
|
15778
15778
|
throw Error();
|
15779
|
-
} catch (
|
15780
|
-
var Ge =
|
15779
|
+
} catch (ft) {
|
15780
|
+
var Ge = ft.stack.trim().match(/\n( *(at )?)/);
|
15781
15781
|
Ce = Ge && Ge[1] || "";
|
15782
15782
|
}
|
15783
15783
|
return `
|
@@ -15799,7 +15799,7 @@ function rfe() {
|
|
15799
15799
|
}
|
15800
15800
|
var Ge;
|
15801
15801
|
Re = !0;
|
15802
|
-
var
|
15802
|
+
var ft = Error.prepareStackTrace;
|
15803
15803
|
Error.prepareStackTrace = void 0;
|
15804
15804
|
var xt;
|
15805
15805
|
xt = ee.current, ee.current = null, ue();
|
@@ -15855,7 +15855,7 @@ function rfe() {
|
|
15855
15855
|
}
|
15856
15856
|
}
|
15857
15857
|
} finally {
|
15858
|
-
Re = !1, ee.current = xt, le(), Error.prepareStackTrace =
|
15858
|
+
Re = !1, ee.current = xt, le(), Error.prepareStackTrace = ft;
|
15859
15859
|
}
|
15860
15860
|
var Gt = P ? P.displayName || P.name : "", Mt = Gt ? Me(Gt) : "";
|
15861
15861
|
return typeof P == "function" && Le.set(P, Mt), Mt;
|
@@ -15887,9 +15887,9 @@ function rfe() {
|
|
15887
15887
|
case d:
|
15888
15888
|
return K(P.type, ye, Se);
|
15889
15889
|
case f: {
|
15890
|
-
var Ge = P,
|
15890
|
+
var Ge = P, ft = Ge._payload, xt = Ge._init;
|
15891
15891
|
try {
|
15892
|
-
return K(xt(
|
15892
|
+
return K(xt(ft), ye, Se);
|
15893
15893
|
} catch {
|
15894
15894
|
}
|
15895
15895
|
}
|
@@ -15904,7 +15904,7 @@ function rfe() {
|
|
15904
15904
|
} else
|
15905
15905
|
de.setExtraStackFrame(null);
|
15906
15906
|
}
|
15907
|
-
function E(P, ye, Se, Ge,
|
15907
|
+
function E(P, ye, Se, Ge, ft) {
|
15908
15908
|
{
|
15909
15909
|
var xt = Function.call.bind(X);
|
15910
15910
|
for (var lt in P)
|
@@ -15919,7 +15919,7 @@ function rfe() {
|
|
15919
15919
|
} catch (ae) {
|
15920
15920
|
at = ae;
|
15921
15921
|
}
|
15922
|
-
at && !(at instanceof Error) && (V(
|
15922
|
+
at && !(at instanceof Error) && (V(ft), x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", Ge || "React class", Se, lt, typeof at), V(null)), at instanceof Error && !(at.message in Q) && (Q[at.message] = !0, V(ft), x("Failed %s type: %s", Se, at.message), V(null));
|
15923
15923
|
}
|
15924
15924
|
}
|
15925
15925
|
}
|
@@ -15994,7 +15994,7 @@ function rfe() {
|
|
15994
15994
|
});
|
15995
15995
|
}
|
15996
15996
|
}
|
15997
|
-
var ge = function(P, ye, Se, Ge,
|
15997
|
+
var ge = function(P, ye, Se, Ge, ft, xt, lt) {
|
15998
15998
|
var at = {
|
15999
15999
|
// This tag allows us to uniquely identify this as a React Element
|
16000
16000
|
$$typeof: t,
|
@@ -16020,10 +16020,10 @@ function rfe() {
|
|
16020
16020
|
configurable: !1,
|
16021
16021
|
enumerable: !1,
|
16022
16022
|
writable: !1,
|
16023
|
-
value:
|
16023
|
+
value: ft
|
16024
16024
|
}), Object.freeze && (Object.freeze(at.props), Object.freeze(at)), at;
|
16025
16025
|
};
|
16026
|
-
function ze(P, ye, Se, Ge,
|
16026
|
+
function ze(P, ye, Se, Ge, ft) {
|
16027
16027
|
{
|
16028
16028
|
var xt, lt = {}, at = null, Qe = null;
|
16029
16029
|
Se !== void 0 && (pe(Se), at = "" + Se), Ct(ye) && (pe(ye.key), at = "" + ye.key), et(ye) && (Qe = ye.ref, $t(ye));
|
@@ -16038,7 +16038,7 @@ function rfe() {
|
|
16038
16038
|
var Ne = typeof P == "function" ? P.displayName || P.name || "Unknown" : P;
|
16039
16039
|
at && Ae(lt, Ne), Qe && Ee(lt, Ne);
|
16040
16040
|
}
|
16041
|
-
return ge(P, at, Qe,
|
16041
|
+
return ge(P, at, Qe, ft, Ge, ce.current, lt);
|
16042
16042
|
}
|
16043
16043
|
}
|
16044
16044
|
var qe = b.ReactCurrentOwner, Oe = b.ReactDebugCurrentFrame;
|
@@ -16107,9 +16107,9 @@ Check the top-level render call using <` + Se + ">.");
|
|
16107
16107
|
else if (tt(P))
|
16108
16108
|
P._store && (P._store.validated = !0);
|
16109
16109
|
else if (P) {
|
16110
|
-
var
|
16111
|
-
if (typeof
|
16112
|
-
for (var xt =
|
16110
|
+
var ft = g(P);
|
16111
|
+
if (typeof ft == "function" && ft !== P.entries)
|
16112
|
+
for (var xt = ft.call(P), lt; !(lt = xt.next()).done; )
|
16113
16113
|
tt(lt.value) && Tn(lt.value, ye);
|
16114
16114
|
}
|
16115
16115
|
}
|
@@ -16133,8 +16133,8 @@ Check the top-level render call using <` + Se + ">.");
|
|
16133
16133
|
E(Se, P.props, "prop", Ge, P);
|
16134
16134
|
} else if (ye.PropTypes !== void 0 && !it) {
|
16135
16135
|
it = !0;
|
16136
|
-
var
|
16137
|
-
x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
16136
|
+
var ft = G(ye);
|
16137
|
+
x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", ft || "Unknown");
|
16138
16138
|
}
|
16139
16139
|
typeof ye.getDefaultProps == "function" && !ye.getDefaultProps.isReactClassApproved && x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
16140
16140
|
}
|
@@ -16152,7 +16152,7 @@ Check the top-level render call using <` + Se + ">.");
|
|
16152
16152
|
}
|
16153
16153
|
}
|
16154
16154
|
var ho = {};
|
16155
|
-
function oi(P, ye, Se, Ge,
|
16155
|
+
function oi(P, ye, Se, Ge, ft, xt) {
|
16156
16156
|
{
|
16157
16157
|
var lt = S(P);
|
16158
16158
|
if (!lt) {
|
@@ -16163,7 +16163,7 @@ Check the top-level render call using <` + Se + ">.");
|
|
16163
16163
|
var ae;
|
16164
16164
|
P === null ? ae = "null" : _(P) ? ae = "array" : P !== void 0 && P.$$typeof === t ? (ae = "<" + (G(P.type) || "Unknown") + " />", at = " Did you accidentally export a JSX literal instead of a component?") : ae = typeof P, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ae, at);
|
16165
16165
|
}
|
16166
|
-
var Ne = ze(P, ye, Se,
|
16166
|
+
var Ne = ze(P, ye, Se, ft, xt);
|
16167
16167
|
if (Ne == null)
|
16168
16168
|
return Ne;
|
16169
16169
|
if (lt) {
|
@@ -89048,7 +89048,7 @@ async function t5(e, t) {
|
|
89048
89048
|
});
|
89049
89049
|
return J === "0x" ? { data: void 0 } : { data: J };
|
89050
89050
|
} catch (U) {
|
89051
|
-
const z = C7t(U), { offchainLookup: O, offchainLookupSignature: H } = await import("./ccip-
|
89051
|
+
const z = C7t(U), { offchainLookup: O, offchainLookupSignature: H } = await import("./ccip-DYmWeX9v.mjs");
|
89052
89052
|
if (e.ccipRead !== !1 && (z == null ? void 0 : z.slice(0, 10)) === H && x)
|
89053
89053
|
return { data: await O(e, { data: z, to: x }) };
|
89054
89054
|
throw D && (z == null ? void 0 : z.slice(0, 10)) === "0x101bb98d" ? new Tkt({ factory: u }) : mQ(U, {
|
@@ -97829,7 +97829,7 @@ function HX() {
|
|
97829
97829
|
}), ae.textContent !== Ne && (oh(t.removed, {
|
97830
97830
|
element: ae.cloneNode()
|
97831
97831
|
}), ae.textContent = Ne)), Se(I.afterSanitizeElements, ae, null), !1);
|
97832
|
-
},
|
97832
|
+
}, ft = function(ae, Ne, Xe) {
|
97833
97833
|
if (E && (Ne === "id" || Ne === "name") && (Xe in n || Xe in Tn))
|
97834
97834
|
return !1;
|
97835
97835
|
if (!(Re && !Ce[Ne] && po(U, Ne))) {
|
@@ -97894,7 +97894,7 @@ function HX() {
|
|
97894
97894
|
er = ih(er, Ua, " ");
|
97895
97895
|
});
|
97896
97896
|
const ld = yt(ae.nodeName);
|
97897
|
-
if (
|
97897
|
+
if (ft(ld, qr, er)) {
|
97898
97898
|
if (v && typeof h == "object" && typeof h.getAttributeType == "function" && !mt)
|
97899
97899
|
switch (h.getAttributeType(ld, qr)) {
|
97900
97900
|
case "TrustedHTML": {
|
@@ -97972,7 +97972,7 @@ function HX() {
|
|
97972
97972
|
}, t.isValidAttribute = function(Qe, ae, Ne) {
|
97973
97973
|
Wt || On({});
|
97974
97974
|
const Xe = yt(Qe), Gt = yt(ae);
|
97975
|
-
return
|
97975
|
+
return ft(Xe, Gt, Ne);
|
97976
97976
|
}, t.addHook = function(Qe, ae) {
|
97977
97977
|
typeof ae == "function" && oh(I[Qe], ae);
|
97978
97978
|
}, t.removeHook = function(Qe, ae) {
|
@@ -104331,7 +104331,7 @@ class y3 extends Lt {
|
|
104331
104331
|
}
|
104332
104332
|
/// Create a node selection from non-resolved positions.
|
104333
104333
|
static create(n, r, o) {
|
104334
|
-
const i = n.resolve(r), a = n.resolve(o), s = new
|
104334
|
+
const i = n.resolve(r), a = n.resolve(o), s = new ht(i, a);
|
104335
104335
|
return new y3(s);
|
104336
104336
|
}
|
104337
104337
|
getFirstNode() {
|
@@ -119436,7 +119436,7 @@ t.sv.get(e.id.client) > e.id.clock && !Tf(t.ds, e.id), x_t = [{ light: "#ecd4443
|
|
119436
119436
|
t.head,
|
119437
119437
|
n.mapping
|
119438
119438
|
);
|
119439
|
-
r !== null && o !== null && e.setSelection(
|
119439
|
+
r !== null && o !== null && e.setSelection(ht.between(e.doc.resolve(r), e.doc.resolve(o)));
|
119440
119440
|
}
|
119441
119441
|
}, Sw = (e, t) => ({
|
119442
119442
|
type: (
|
@@ -119532,7 +119532,7 @@ class F_t {
|
|
119532
119532
|
);
|
119533
119533
|
if (t) {
|
119534
119534
|
const o = xs(Da(t.anchor, 0), r.doc.content.size), i = xs(Da(t.head, 0), r.doc.content.size);
|
119535
|
-
r.setSelection(
|
119535
|
+
r.setSelection(ht.create(r.doc, o, i));
|
119536
119536
|
}
|
119537
119537
|
this.prosemirrorView.dispatch(
|
119538
119538
|
r.setMeta(Zn, { isChangeOrigin: !0, binding: this })
|
@@ -120740,7 +120740,7 @@ const R_t = (e, t, n) => e !== t, O_t = (e) => {
|
|
120740
120740
|
return !1;
|
120741
120741
|
const { tr: a, schema: s } = e.state, l = s.text(n.replace(/\r\n?/g, `
|
120742
120742
|
`));
|
120743
|
-
return a.replaceSelectionWith(this.type.create({ language: i }, l)), a.selection.$from.parent.type !== this.type && a.setSelection(
|
120743
|
+
return a.replaceSelectionWith(this.type.create({ language: i }, l)), a.selection.$from.parent.type !== this.type && a.setSelection(ht.near(a.doc.resolve(Math.max(0, a.selection.from - 2)))), a.setMeta("paste", !0), e.dispatch(a), !0;
|
120744
120744
|
}
|
120745
120745
|
}
|
120746
120746
|
})
|
@@ -121004,7 +121004,7 @@ function t4(e, t) {
|
|
121004
121004
|
const n = e == "vert" ? t > 0 ? "down" : "up" : t > 0 ? "right" : "left";
|
121005
121005
|
return function(r, o, i) {
|
121006
121006
|
let a = r.selection, s = t > 0 ? a.$to : a.$from, l = a.empty;
|
121007
|
-
if (a instanceof
|
121007
|
+
if (a instanceof ht) {
|
121008
121008
|
if (!i.endOfTextblock(n) || s.depth == 0)
|
121009
121009
|
return !1;
|
121010
121010
|
l = !1, s = r.doc.resolve(t > 0 ? s.after() : s.before());
|
@@ -121032,7 +121032,7 @@ function dzt(e, t) {
|
|
121032
121032
|
for (let a = r.length - 1; a >= 0; a--)
|
121033
121033
|
o = Pe.from(r[a].createAndFill(null, o));
|
121034
121034
|
let i = e.state.tr.replace(n.pos, n.pos, new nt(o, 0, 0));
|
121035
|
-
return i.setSelection(
|
121035
|
+
return i.setSelection(ht.near(i.doc.resolve(n.pos + 1))), e.dispatch(i), !1;
|
121036
121036
|
}
|
121037
121037
|
function fzt(e) {
|
121038
121038
|
if (!(e.selection instanceof ir))
|
@@ -121553,10 +121553,10 @@ const Sre = Dre(!1, !0), Tre = Dre(!0, !0), Mzt = nn.create({
|
|
121553
121553
|
if (s) {
|
121554
121554
|
const { $to: c } = a.selection, u = c.end();
|
121555
121555
|
if (c.nodeAfter)
|
121556
|
-
c.nodeAfter.isTextblock ? a.setSelection(
|
121556
|
+
c.nodeAfter.isTextblock ? a.setSelection(ht.create(a.doc, c.pos + 1)) : c.nodeAfter.isBlock ? a.setSelection(wt.create(a.doc, c.pos)) : a.setSelection(ht.create(a.doc, c.pos));
|
121557
121557
|
else {
|
121558
121558
|
const d = (l = c.parent.type.contentMatch.defaultType) === null || l === void 0 ? void 0 : l.create();
|
121559
|
-
d && (a.insert(u, d), a.setSelection(
|
121559
|
+
d && (a.insert(u, d), a.setSelection(ht.create(a.doc, u + 1)));
|
121560
121560
|
}
|
121561
121561
|
a.scrollIntoView();
|
121562
121562
|
}
|
@@ -129311,114 +129311,94 @@ const goe = Pt.create({
|
|
129311
129311
|
return {
|
129312
129312
|
"Mod-Alt-0": () => this.editor.commands.setDBlock(),
|
129313
129313
|
Enter: ({ editor: e }) => {
|
129314
|
-
var
|
129314
|
+
var h;
|
129315
129315
|
const {
|
129316
129316
|
selection: { $head: t, from: n, to: r },
|
129317
129317
|
doc: o
|
129318
|
-
} = e.state, i = e.getAttributes("textStyle"), a = t.node(t.depth), s = t.node(t.depth - 1),
|
129319
|
-
if ((s == null ? void 0 : s.type.name) === "blockquote" && a.type.name === "paragraph" && a.textContent === "")
|
129320
|
-
return e.chain().setDBlock().focus(n + 4).setMark("textStyle", i).run();
|
129321
|
-
if ((s == null ? void 0 : s.type.name) !== "dBlock" && h)
|
129322
|
-
return !1;
|
129318
|
+
} = e.state, i = e.getAttributes("textStyle"), a = t.node(t.depth), s = t.node(t.depth - 1), c = t.toString().split("/"), u = t.end() === n, d = t.start() === n, f = c.some((p) => p.includes("table"));
|
129323
129319
|
if ((s == null ? void 0 : s.type.name) === "listItem" || (s == null ? void 0 : s.type.name) === "taskItem") {
|
129324
|
-
const
|
129325
|
-
|
129326
|
-
|
129327
|
-
|
129328
|
-
|
129329
|
-
|
129330
|
-
|
129331
|
-
|
129332
|
-
|
129333
|
-
|
129334
|
-
|
129335
|
-
|
129336
|
-
|
129337
|
-
|
129338
|
-
const w = [];
|
129339
|
-
if (w.push({
|
129320
|
+
const p = a.textContent === "", m = t.node(t.depth - 2), g = t.index(t.depth - 2), b = g === m.childCount - 1;
|
129321
|
+
let x = 0;
|
129322
|
+
for (let v = t.depth - 1; v >= 0; v--) {
|
129323
|
+
const w = t.node(v);
|
129324
|
+
((w == null ? void 0 : w.type.name) === "listItem" || (w == null ? void 0 : w.type.name) === "taskItem") && x++;
|
129325
|
+
}
|
129326
|
+
const k = x === 1;
|
129327
|
+
if (p && b && k) {
|
129328
|
+
const w = t.node(t.depth - 2).child(g), M = t.before(t.depth - 1), A = M + w.nodeSize;
|
129329
|
+
return e.chain().deleteRange({ from: M, to: A }).setDBlock().focus(M + 4).setMark("textStyle", i).run();
|
129330
|
+
}
|
129331
|
+
if (p && k && m.childCount > 1 && !b) {
|
129332
|
+
const v = t.node(t.depth - 2), M = t.before(t.depth - 2) + v.nodeSize, A = v.content.toJSON().slice(g + 1), j = [];
|
129333
|
+
return j.push({
|
129340
129334
|
type: "dBlock",
|
129341
129335
|
content: [
|
129342
129336
|
{
|
129343
129337
|
type: "paragraph"
|
129344
129338
|
}
|
129345
129339
|
]
|
129346
|
-
}),
|
129347
|
-
|
129348
|
-
|
129349
|
-
|
129350
|
-
|
129351
|
-
|
129352
|
-
|
129353
|
-
|
129354
|
-
|
129355
|
-
|
129356
|
-
|
129357
|
-
|
129358
|
-
|
129359
|
-
|
129360
|
-
M.replaceWith(
|
129361
|
-
n,
|
129362
|
-
v,
|
129363
|
-
e.schema.nodeFromJSON({
|
129364
|
-
type: "doc",
|
129365
|
-
content: w
|
129366
|
-
})
|
129367
|
-
);
|
129368
|
-
const j = k + 4;
|
129369
|
-
M.setSelection(ft.create(M.doc, j));
|
129370
|
-
}
|
129371
|
-
return !1;
|
129372
|
-
}).focus(n + 6).setMark("textStyle", i).run() : e.chain().command(({ tr: M, dispatch: A }) => {
|
129373
|
-
if (A) {
|
129374
|
-
M.replaceWith(
|
129375
|
-
n,
|
129376
|
-
v,
|
129340
|
+
}), A.length > 0 && j.push({
|
129341
|
+
type: "dBlock",
|
129342
|
+
content: [
|
129343
|
+
{
|
129344
|
+
type: m.type.name,
|
129345
|
+
content: A
|
129346
|
+
}
|
129347
|
+
]
|
129348
|
+
}), e.chain().command(({ tr: D, dispatch: S }) => {
|
129349
|
+
if (S) {
|
129350
|
+
const I = t.before(t.depth - 1);
|
129351
|
+
D.replaceWith(
|
129352
|
+
I,
|
129353
|
+
M,
|
129377
129354
|
e.schema.nodeFromJSON({
|
129378
129355
|
type: "doc",
|
129379
|
-
content:
|
129356
|
+
content: j
|
129380
129357
|
})
|
129381
129358
|
);
|
129382
|
-
const
|
129383
|
-
|
129359
|
+
const B = I + 4;
|
129360
|
+
D.setSelection(ht.create(D.doc, B));
|
129384
129361
|
}
|
129385
129362
|
return !1;
|
129386
|
-
}).focus(
|
129363
|
+
}).focus().setMark("textStyle", i).run();
|
129387
129364
|
}
|
129388
|
-
return !1;
|
129389
129365
|
}
|
129366
|
+
if ((s == null ? void 0 : s.type.name) === "blockquote" && a.type.name === "paragraph" && a.textContent === "")
|
129367
|
+
return e.chain().setDBlock().focus(n + 4).setMark("textStyle", i).run();
|
129368
|
+
if ((s == null ? void 0 : s.type.name) !== "dBlock" && f)
|
129369
|
+
return !1;
|
129390
129370
|
if ((s == null ? void 0 : s.type.name) === "dBlock") {
|
129391
|
-
let
|
129392
|
-
o.descendants((
|
129393
|
-
if (
|
129394
|
-
if (
|
129395
|
-
const [
|
129396
|
-
return
|
129371
|
+
let p = -1, m = "";
|
129372
|
+
o.descendants((b, x) => {
|
129373
|
+
if (p !== -1) return !1;
|
129374
|
+
if (b.type.name === this.name) return;
|
129375
|
+
const [k, v] = [x, x + b.nodeSize];
|
129376
|
+
return k <= n && r <= v && (p = v, m = b.type.name), !1;
|
129397
129377
|
});
|
129398
|
-
const
|
129378
|
+
const g = (h = o.slice(n, p)) == null ? void 0 : h.toJSON().content;
|
129399
129379
|
try {
|
129400
|
-
return
|
129380
|
+
return m === "codeBlock" ? e.chain().newlineInCode().setMark("textStyle", i).focus().run() : ["columns", "heading"].includes(m) && u ? e.chain().insertContent({
|
129401
129381
|
type: "dBlock",
|
129402
129382
|
content: [
|
129403
129383
|
{
|
129404
129384
|
type: "paragraph"
|
129405
129385
|
}
|
129406
129386
|
]
|
129407
|
-
}).focus(n + 4).setMark("textStyle", i).run() :
|
129387
|
+
}).focus(n + 4).setMark("textStyle", i).run() : m === "columns" || m === "heading" && !d ? e.chain().command(
|
129408
129388
|
({
|
129409
|
-
tr:
|
129410
|
-
dispatch:
|
129411
|
-
}) => (
|
129389
|
+
tr: b,
|
129390
|
+
dispatch: x
|
129391
|
+
}) => (x && b.insertText(`
|
129412
129392
|
`), !0)
|
129413
129393
|
).focus(n).setMark("textStyle", i).run() : e.chain().insertContentAt(
|
129414
|
-
{ from: n, to:
|
129394
|
+
{ from: n, to: p },
|
129415
129395
|
{
|
129416
129396
|
type: this.name,
|
129417
|
-
content:
|
129397
|
+
content: g
|
129418
129398
|
}
|
129419
129399
|
).focus(n + 4).setMark("textStyle", i).run();
|
129420
|
-
} catch (
|
129421
|
-
return console.error(`Error inserting content into dBlock node: ${
|
129400
|
+
} catch (b) {
|
129401
|
+
return console.error(`Error inserting content into dBlock node: ${b}`), !1;
|
129422
129402
|
}
|
129423
129403
|
}
|
129424
129404
|
return !1;
|
@@ -129496,7 +129476,7 @@ const goe = Pt.create({
|
|
129496
129476
|
);
|
129497
129477
|
const U = j + 4;
|
129498
129478
|
G.setSelection(
|
129499
|
-
|
129479
|
+
ht.create(G.doc, U)
|
129500
129480
|
);
|
129501
129481
|
}
|
129502
129482
|
return !1;
|
@@ -129866,7 +129846,7 @@ var jn = class rl extends Lt {
|
|
129866
129846
|
const i = this.$anchorCell.node(-1) != r.node(-1);
|
129867
129847
|
return i && this.isRowSelection() ? rl.rowSelection(r, o) : i && this.isColSelection() ? rl.colSelection(r, o) : new rl(r, o);
|
129868
129848
|
}
|
129869
|
-
return
|
129849
|
+
return ht.between(r, o);
|
129870
129850
|
}
|
129871
129851
|
// Returns a rectangular slice of table rows containing the selected
|
129872
129852
|
// cells.
|
@@ -130064,7 +130044,7 @@ function iUt(e, t, n) {
|
|
130064
130044
|
const s = ar.get(r.node), l = r.from + 1, c = l + s.map[s.width * s.height - 1];
|
130065
130045
|
i = jn.create(o, l + 1, c);
|
130066
130046
|
}
|
130067
|
-
} else r instanceof
|
130047
|
+
} else r instanceof ht && rUt(r) ? i = ht.create(o, r.from) : r instanceof ht && oUt(r) && (i = ht.create(o, r.$from.start(), r.$from.end()));
|
130068
130048
|
return i && (t || (t = e.tr)).setSelection(i), t;
|
130069
130049
|
}
|
130070
130050
|
var aUt = new sn("fix-tables");
|
@@ -130551,7 +130531,7 @@ function F_(e) {
|
|
130551
130531
|
if (n) {
|
130552
130532
|
const o = t.doc.resolve(r);
|
130553
130533
|
n(
|
130554
|
-
t.tr.setSelection(
|
130534
|
+
t.tr.setSelection(ht.between(o, XVt(o))).scrollIntoView()
|
130555
130535
|
);
|
130556
130536
|
}
|
130557
130537
|
return !0;
|
@@ -130913,7 +130893,7 @@ function TUt(e, t) {
|
|
130913
130893
|
e.root.addEventListener("mouseup", a), e.root.addEventListener("dragstart", a), e.root.addEventListener("mousemove", s);
|
130914
130894
|
}
|
130915
130895
|
function Moe(e, t, n) {
|
130916
|
-
if (!(e.state.selection instanceof
|
130896
|
+
if (!(e.state.selection instanceof ht)) return null;
|
130917
130897
|
const { $head: r } = e.state.selection;
|
130918
130898
|
for (let o = r.depth - 1; o >= 0; o--) {
|
130919
130899
|
const i = r.node(o);
|
@@ -131408,7 +131388,7 @@ const Eoe = Pt.create({
|
|
131408
131388
|
const { selection: a } = r, s = GUt(i.schema, e, t, n);
|
131409
131389
|
if (o) {
|
131410
131390
|
const l = r.selection.anchor + 1;
|
131411
|
-
r.replaceRangeWith(a.from - 1, a.to, s).scrollIntoView().setSelection(
|
131391
|
+
r.replaceRangeWith(a.from - 1, a.to, s).scrollIntoView().setSelection(ht.near(r.doc.resolve(l)));
|
131412
131392
|
}
|
131413
131393
|
return !0;
|
131414
131394
|
},
|
@@ -148863,7 +148843,7 @@ const bJt = pJt.extend({
|
|
148863
148843
|
t.schema.text(m)
|
148864
148844
|
);
|
148865
148845
|
const g = r.pos + s, b = o.pos + s;
|
148866
|
-
return e.setSelection(
|
148846
|
+
return e.setSelection(ht.create(e.doc, g, b)), !0;
|
148867
148847
|
}) : !1,
|
148868
148848
|
"Shift-Tab": () => this.editor.isActive("codeBlock") ? this.editor.commands.command(({ tr: e, state: t }) => {
|
148869
148849
|
var x, k;
|
@@ -148895,14 +148875,14 @@ const bJt = pJt.extend({
|
|
148895
148875
|
t.schema.text(m)
|
148896
148876
|
);
|
148897
148877
|
const g = r.pos - s, b = o.pos - s;
|
148898
|
-
return e.setSelection(
|
148878
|
+
return e.setSelection(ht.create(e.doc, g, b)), !0;
|
148899
148879
|
}) : !1,
|
148900
148880
|
Backspace: () => this.editor.isActive("codeBlock") ? this.editor.commands.command(({ tr: e, state: t }) => {
|
148901
148881
|
const { selection: n } = t, { $from: r, empty: o } = n, i = r.before(), a = t.doc.nodeAt(i);
|
148902
148882
|
if (!a || a.type.name !== "codeBlock")
|
148903
148883
|
return !1;
|
148904
148884
|
const s = a.textContent.length, l = i + 1, c = l + s;
|
148905
|
-
return !o && n.from === l && n.to === c ? (e.replaceWith(l, c, t.schema.text("")), e.setSelection(
|
148885
|
+
return !o && n.from === l && n.to === c ? (e.replaceWith(l, c, t.schema.text("")), e.setSelection(ht.create(e.doc, l)), !0) : !1;
|
148906
148886
|
}) : !1
|
148907
148887
|
};
|
148908
148888
|
}
|
@@ -225380,7 +225360,7 @@ User prompt: ${l} /no_think` : `${l} /no_think`;
|
|
225380
225360
|
const E = n();
|
225381
225361
|
de.delete(E, E + e.nodeSize);
|
225382
225362
|
const L = de.doc.resolve(E);
|
225383
|
-
de.setSelection(
|
225363
|
+
de.setSelection(ht.near(L));
|
225384
225364
|
}
|
225385
225365
|
return !0;
|
225386
225366
|
}), t.commands.focus(), t.commands.insertContent(D);
|
@@ -225396,7 +225376,7 @@ User prompt: ${l} /no_think` : `${l} /no_think`;
|
|
225396
225376
|
const E = n();
|
225397
225377
|
de.delete(E, E + e.nodeSize);
|
225398
225378
|
const L = de.doc.resolve(E);
|
225399
|
-
de.setSelection(
|
225379
|
+
de.setSelection(ht.near(L));
|
225400
225380
|
}
|
225401
225381
|
return !0;
|
225402
225382
|
}), t.commands.focus();
|
@@ -226052,7 +226032,7 @@ User prompt: ${l} /no_think` : `${l} /no_think`;
|
|
226052
226032
|
), Oe = pe == null ? void 0 : pe.split("-").slice(0, -1).join("-");
|
226053
226033
|
qe !== Oe && (he.set("heading", `${qe}-${Ee}`), window.location.hash = he.toString());
|
226054
226034
|
const Ue = K.view.posAtDOM(ze, 0), it = K.view.state.tr;
|
226055
|
-
it.setSelection(new
|
226035
|
+
it.setSelection(new ht(it.doc.resolve(Ue))), K.view.dispatch(it);
|
226056
226036
|
const pt = [
|
226057
226037
|
document.querySelector(".ProseMirror"),
|
226058
226038
|
document.getElementById("editor-canvas"),
|
@@ -227922,7 +227902,7 @@ const rse = ou(({ items: e = [], editor: t, setItems: n }) => {
|
|
227922
227902
|
return;
|
227923
227903
|
const w = setTimeout(() => {
|
227924
227904
|
const M = t.view.posAtDOM(v, 0), A = t.view.state.tr;
|
227925
|
-
A.setSelection(new
|
227905
|
+
A.setSelection(new ht(A.doc.resolve(M))), t.view.dispatch(A);
|
227926
227906
|
const D = [
|
227927
227907
|
document.querySelector(".ProseMirror"),
|
227928
227908
|
document.getElementById("editor-canvas"),
|
@@ -228138,7 +228118,7 @@ const dP = Fe.memo(rse), Dtn = ({
|
|
228138
228118
|
activeCommentId: ye,
|
228139
228119
|
setActiveCommentId: Se,
|
228140
228120
|
focusCommentWithActiveId: Ge,
|
228141
|
-
slides:
|
228121
|
+
slides: ft,
|
228142
228122
|
setSlides: xt,
|
228143
228123
|
tocItems: lt,
|
228144
228124
|
setTocItems: at
|
@@ -228316,7 +228296,7 @@ const dP = Fe.memo(rse), Dtn = ({
|
|
228316
228296
|
isPreviewMode: e,
|
228317
228297
|
documentName: ee,
|
228318
228298
|
onSlidesShare: K,
|
228319
|
-
slides:
|
228299
|
+
slides: ft,
|
228320
228300
|
setSlides: xt,
|
228321
228301
|
renderThemeToggle: ke,
|
228322
228302
|
isContentLoading: ia,
|
package/dist/index.es.js
CHANGED