@creatorsn/powereditor3 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/powereditor3.css +1 -1
- package/dist/powereditor3.js +643 -601
- package/dist/powereditor3.umd.cjs +4 -4
- package/dist/types/editor/index.d.ts +9 -9
- package/dist/types/editor/src/components/bubbleToolBar.vue.d.ts +2 -2
- package/dist/types/editor/src/components/custom/source/codeBlockX.vue.d.ts +9 -1
- package/dist/types/editor/src/components/menus/calloutBase.vue.d.ts +1 -1
- package/dist/types/editor/src/components/menus/colorCallout.vue.d.ts +1 -1
- package/dist/types/editor/src/components/menus/embedCallout.vue.d.ts +1 -1
- package/dist/types/editor/src/components/menus/emojiCallout.vue.d.ts +1 -1
- package/dist/types/editor/src/components/menus/headingCallout.vue.d.ts +1 -1
- package/dist/types/editor/src/components/menus/imageCallout.vue.d.ts +1 -1
- package/dist/types/editor/src/components/menus/linkCallout.vue.d.ts +1 -1
- package/dist/types/editor/src/components/menus/tableCallout.vue.d.ts +1 -1
- package/dist/types/editor/src/components/toolBar.vue.d.ts +7 -7
- package/dist/types/editor/src/index.vue.d.ts +9 -9
- package/package.json +2 -2
package/dist/powereditor3.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as Mc, defineComponent as uo, provide as eg, markRaw as V4, reactive as W5, h as ho, render as tg, getCurrentInstance as $4, watchEffect as K5, nextTick as W4, unref as Bh, onBeforeUnmount as Pf, customRef as j5, onMounted as K4, resolveComponent as Me, createBlock as rn, openBlock as He, withCtx as ie, createElementVNode as X, createElementBlock as ot, createCommentVNode as Pt, toDisplayString as
|
|
1
|
+
import { ref as Mc, defineComponent as uo, provide as eg, markRaw as V4, reactive as W5, h as ho, render as tg, getCurrentInstance as $4, watchEffect as K5, nextTick as W4, unref as Bh, onBeforeUnmount as Pf, customRef as j5, onMounted as K4, resolveComponent as Me, createBlock as rn, openBlock as He, normalizeClass as tt, withCtx as ie, createElementVNode as X, createElementBlock as ot, createCommentVNode as Pt, toDisplayString as Ye, withDirectives as Ut, createVNode as ae, createTextVNode as ir, vShow as Wt, Fragment as Vr, renderList as wi, normalizeStyle as ut, renderSlot as mt, withKeys as to, Transition as Dc, vModelText as j4 } from "vue";
|
|
2
2
|
function an(n) {
|
|
3
3
|
this.content = n;
|
|
4
4
|
}
|
|
@@ -148,7 +148,7 @@ function Y4(n, e, t, r) {
|
|
|
148
148
|
t -= l, r -= l;
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
|
-
class
|
|
151
|
+
class le {
|
|
152
152
|
/**
|
|
153
153
|
@internal
|
|
154
154
|
*/
|
|
@@ -203,7 +203,7 @@ class ae {
|
|
|
203
203
|
let t = this.lastChild, r = e.firstChild, i = this.content.slice(), o = 0;
|
|
204
204
|
for (t.isText && t.sameMarkup(r) && (i[i.length - 1] = t.withText(t.text + r.text), o = 1); o < e.content.length; o++)
|
|
205
205
|
i.push(e.content[o]);
|
|
206
|
-
return new
|
|
206
|
+
return new le(i, this.size + e.size);
|
|
207
207
|
}
|
|
208
208
|
/**
|
|
209
209
|
Cut out the sub-fragment between the two given positions.
|
|
@@ -217,13 +217,13 @@ class ae {
|
|
|
217
217
|
let a = this.content[o], l = s + a.nodeSize;
|
|
218
218
|
l > e && ((s < e || l > t) && (a.isText ? a = a.cut(Math.max(0, e - s), Math.min(a.text.length, t - s)) : a = a.cut(Math.max(0, e - s - 1), Math.min(a.content.size, t - s - 1))), r.push(a), i += a.nodeSize), s = l;
|
|
219
219
|
}
|
|
220
|
-
return new
|
|
220
|
+
return new le(r, i);
|
|
221
221
|
}
|
|
222
222
|
/**
|
|
223
223
|
@internal
|
|
224
224
|
*/
|
|
225
225
|
cutByIndex(e, t) {
|
|
226
|
-
return e == t ?
|
|
226
|
+
return e == t ? le.empty : e == 0 && t == this.content.length ? this : new le(this.content.slice(e, t));
|
|
227
227
|
}
|
|
228
228
|
/**
|
|
229
229
|
Create a new fragment in which the node at the given index is
|
|
@@ -234,21 +234,21 @@ class ae {
|
|
|
234
234
|
if (r == t)
|
|
235
235
|
return this;
|
|
236
236
|
let i = this.content.slice(), o = this.size + t.nodeSize - r.nodeSize;
|
|
237
|
-
return i[e] = t, new
|
|
237
|
+
return i[e] = t, new le(i, o);
|
|
238
238
|
}
|
|
239
239
|
/**
|
|
240
240
|
Create a new fragment by prepending the given node to this
|
|
241
241
|
fragment.
|
|
242
242
|
*/
|
|
243
243
|
addToStart(e) {
|
|
244
|
-
return new
|
|
244
|
+
return new le([e].concat(this.content), this.size + e.nodeSize);
|
|
245
245
|
}
|
|
246
246
|
/**
|
|
247
247
|
Create a new fragment by appending the given node to this
|
|
248
248
|
fragment.
|
|
249
249
|
*/
|
|
250
250
|
addToEnd(e) {
|
|
251
|
-
return new
|
|
251
|
+
return new le(this.content.concat(e), this.size + e.nodeSize);
|
|
252
252
|
}
|
|
253
253
|
/**
|
|
254
254
|
Compare this fragment to another one.
|
|
@@ -363,10 +363,10 @@ class ae {
|
|
|
363
363
|
*/
|
|
364
364
|
static fromJSON(e, t) {
|
|
365
365
|
if (!t)
|
|
366
|
-
return
|
|
366
|
+
return le.empty;
|
|
367
367
|
if (!Array.isArray(t))
|
|
368
368
|
throw new RangeError("Invalid input for Fragment.fromJSON");
|
|
369
|
-
return
|
|
369
|
+
return le.fromArray(t.map(e.nodeFromJSON));
|
|
370
370
|
}
|
|
371
371
|
/**
|
|
372
372
|
Build a fragment from an array of nodes. Ensures that adjacent
|
|
@@ -374,13 +374,13 @@ class ae {
|
|
|
374
374
|
*/
|
|
375
375
|
static fromArray(e) {
|
|
376
376
|
if (!e.length)
|
|
377
|
-
return
|
|
377
|
+
return le.empty;
|
|
378
378
|
let t, r = 0;
|
|
379
379
|
for (let i = 0; i < e.length; i++) {
|
|
380
380
|
let o = e[i];
|
|
381
381
|
r += o.nodeSize, i && o.isText && e[i - 1].sameMarkup(o) ? (t || (t = e.slice(0, i)), t[t.length - 1] = o.withText(t[t.length - 1].text + o.text)) : t && t.push(o);
|
|
382
382
|
}
|
|
383
|
-
return new
|
|
383
|
+
return new le(t || e, r);
|
|
384
384
|
}
|
|
385
385
|
/**
|
|
386
386
|
Create a fragment from something that can be interpreted as a
|
|
@@ -390,17 +390,17 @@ class ae {
|
|
|
390
390
|
*/
|
|
391
391
|
static from(e) {
|
|
392
392
|
if (!e)
|
|
393
|
-
return
|
|
394
|
-
if (e instanceof
|
|
393
|
+
return le.empty;
|
|
394
|
+
if (e instanceof le)
|
|
395
395
|
return e;
|
|
396
396
|
if (Array.isArray(e))
|
|
397
397
|
return this.fromArray(e);
|
|
398
398
|
if (e.attrs)
|
|
399
|
-
return new
|
|
399
|
+
return new le([e], e.nodeSize);
|
|
400
400
|
throw new RangeError("Can not convert " + e + " to a Fragment" + (e.nodesBetween ? " (looks like multiple versions of prosemirror-model were loaded)" : ""));
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
|
-
|
|
403
|
+
le.empty = new le([], 0);
|
|
404
404
|
const Yu = { index: 0, offset: 0 };
|
|
405
405
|
function Ga(n, e) {
|
|
406
406
|
return Yu.index = n, Yu.offset = e, Yu;
|
|
@@ -602,7 +602,7 @@ class xe {
|
|
|
602
602
|
let r = t.openStart || 0, i = t.openEnd || 0;
|
|
603
603
|
if (typeof r != "number" || typeof i != "number")
|
|
604
604
|
throw new RangeError("Invalid input for Slice.fromJSON");
|
|
605
|
-
return new xe(
|
|
605
|
+
return new xe(le.fromJSON(e, t.content), r, i);
|
|
606
606
|
}
|
|
607
607
|
/**
|
|
608
608
|
Create a slice from a fragment by taking the maximum possible
|
|
@@ -617,7 +617,7 @@ class xe {
|
|
|
617
617
|
return new xe(e, r, i);
|
|
618
618
|
}
|
|
619
619
|
}
|
|
620
|
-
xe.empty = new xe(
|
|
620
|
+
xe.empty = new xe(le.empty, 0, 0);
|
|
621
621
|
function Z4(n, e, t) {
|
|
622
622
|
let { index: r, offset: i } = n.findIndex(e), o = n.maybeChild(r), { index: s, offset: a } = n.findIndex(t);
|
|
623
623
|
if (i == e || o.isText) {
|
|
@@ -682,7 +682,7 @@ function Yi(n, e) {
|
|
|
682
682
|
}
|
|
683
683
|
function ty(n, e, t, r, i) {
|
|
684
684
|
let o = n.depth > i && zh(n, e, i + 1), s = r.depth > i && zh(t, r, i + 1), a = [];
|
|
685
|
-
return Fs(null, n, i, a), o && s && e.index(i) == t.index(i) ? (ey(o, s), Qi(Yi(o, ty(n, e, t, r, i + 1)), a)) : (o && Qi(Yi(o, Rl(n, e, i + 1)), a), Fs(e, t, i, a), s && Qi(Yi(s, Rl(t, r, i + 1)), a)), Fs(r, null, i, a), new
|
|
685
|
+
return Fs(null, n, i, a), o && s && e.index(i) == t.index(i) ? (ey(o, s), Qi(Yi(o, ty(n, e, t, r, i + 1)), a)) : (o && Qi(Yi(o, Rl(n, e, i + 1)), a), Fs(e, t, i, a), s && Qi(Yi(s, Rl(t, r, i + 1)), a)), Fs(r, null, i, a), new le(a);
|
|
686
686
|
}
|
|
687
687
|
function Rl(n, e, t) {
|
|
688
688
|
let r = [];
|
|
@@ -690,12 +690,12 @@ function Rl(n, e, t) {
|
|
|
690
690
|
let i = zh(n, e, t + 1);
|
|
691
691
|
Qi(Yi(i, Rl(n, e, t + 1)), r);
|
|
692
692
|
}
|
|
693
|
-
return Fs(e, null, t, r), new
|
|
693
|
+
return Fs(e, null, t, r), new le(r);
|
|
694
694
|
}
|
|
695
695
|
function Y5(n, e) {
|
|
696
696
|
let t = e.depth - n.openStart, i = e.node(t).copy(n.content);
|
|
697
697
|
for (let o = t - 1; o >= 0; o--)
|
|
698
|
-
i = e.node(o).copy(
|
|
698
|
+
i = e.node(o).copy(le.from(i));
|
|
699
699
|
return {
|
|
700
700
|
start: i.resolveNoCache(n.openStart + t),
|
|
701
701
|
end: i.resolveNoCache(i.content.size - n.openEnd - t)
|
|
@@ -1000,7 +1000,7 @@ let bi = class qh {
|
|
|
1000
1000
|
@internal
|
|
1001
1001
|
*/
|
|
1002
1002
|
constructor(e, t, r, i = St.none) {
|
|
1003
|
-
this.type = e, this.attrs = t, this.marks = i, this.content = r ||
|
|
1003
|
+
this.type = e, this.attrs = t, this.marks = i, this.content = r || le.empty;
|
|
1004
1004
|
}
|
|
1005
1005
|
/**
|
|
1006
1006
|
The array of this node's child nodes.
|
|
@@ -1290,7 +1290,7 @@ let bi = class qh {
|
|
|
1290
1290
|
can optionally pass `start` and `end` indices into the
|
|
1291
1291
|
replacement fragment.
|
|
1292
1292
|
*/
|
|
1293
|
-
canReplace(e, t, r =
|
|
1293
|
+
canReplace(e, t, r = le.empty, i = 0, o = r.childCount) {
|
|
1294
1294
|
let s = this.contentMatchAt(e).matchFragment(r, i, o), a = s && s.matchFragment(this.content, t);
|
|
1295
1295
|
if (!a || !a.validEnd)
|
|
1296
1296
|
return !1;
|
|
@@ -1361,7 +1361,7 @@ let bi = class qh {
|
|
|
1361
1361
|
throw new RangeError("Invalid text node in JSON");
|
|
1362
1362
|
return e.text(t.text, r);
|
|
1363
1363
|
}
|
|
1364
|
-
let i =
|
|
1364
|
+
let i = le.fromJSON(e, t.content), o = e.nodeType(t.type).create(t.attrs, i, r);
|
|
1365
1365
|
return o.type.checkAttrs(o.attrs), o;
|
|
1366
1366
|
}
|
|
1367
1367
|
};
|
|
@@ -1489,7 +1489,7 @@ class no {
|
|
|
1489
1489
|
function o(s, a) {
|
|
1490
1490
|
let l = s.matchFragment(e, r);
|
|
1491
1491
|
if (l && (!t || l.validEnd))
|
|
1492
|
-
return
|
|
1492
|
+
return le.from(a.map((c) => c.createAndFill()));
|
|
1493
1493
|
for (let c = 0; c < s.next.length; c++) {
|
|
1494
1494
|
let { type: u, next: d } = s.next[c];
|
|
1495
1495
|
if (!(u.isText || u.hasRequiredAttrs()) && i.indexOf(d) == -1) {
|
|
@@ -1872,7 +1872,7 @@ let og = class cy {
|
|
|
1872
1872
|
create(e = null, t, r) {
|
|
1873
1873
|
if (this.isText)
|
|
1874
1874
|
throw new Error("NodeType.create can't construct text nodes");
|
|
1875
|
-
return new bi(this, this.computeAttrs(e),
|
|
1875
|
+
return new bi(this, this.computeAttrs(e), le.from(t), St.setFrom(r));
|
|
1876
1876
|
}
|
|
1877
1877
|
/**
|
|
1878
1878
|
Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but check the given content
|
|
@@ -1880,7 +1880,7 @@ let og = class cy {
|
|
|
1880
1880
|
if it doesn't match.
|
|
1881
1881
|
*/
|
|
1882
1882
|
createChecked(e = null, t, r) {
|
|
1883
|
-
return t =
|
|
1883
|
+
return t = le.from(t), this.checkContent(t), new bi(this, this.computeAttrs(e), t, St.setFrom(r));
|
|
1884
1884
|
}
|
|
1885
1885
|
/**
|
|
1886
1886
|
Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but see if it is
|
|
@@ -1891,13 +1891,13 @@ let og = class cy {
|
|
|
1891
1891
|
`Fragment.empty` as content.
|
|
1892
1892
|
*/
|
|
1893
1893
|
createAndFill(e = null, t, r) {
|
|
1894
|
-
if (e = this.computeAttrs(e), t =
|
|
1894
|
+
if (e = this.computeAttrs(e), t = le.from(t), t.size) {
|
|
1895
1895
|
let s = this.contentMatch.fillBefore(t);
|
|
1896
1896
|
if (!s)
|
|
1897
1897
|
return null;
|
|
1898
1898
|
t = s.append(t);
|
|
1899
1899
|
}
|
|
1900
|
-
let i = this.contentMatch.matchFragment(t), o = i && i.fillBefore(
|
|
1900
|
+
let i = this.contentMatch.matchFragment(t), o = i && i.fillBefore(le.empty, !0);
|
|
1901
1901
|
return o ? new bi(this, e, t.append(o), St.setFrom(r)) : null;
|
|
1902
1902
|
}
|
|
1903
1903
|
/**
|
|
@@ -2301,7 +2301,7 @@ class Va {
|
|
|
2301
2301
|
if (!this.match) {
|
|
2302
2302
|
if (!this.type)
|
|
2303
2303
|
return [];
|
|
2304
|
-
let t = this.type.contentMatch.fillBefore(
|
|
2304
|
+
let t = this.type.contentMatch.fillBefore(le.from(e));
|
|
2305
2305
|
if (t)
|
|
2306
2306
|
this.match = this.type.contentMatch.matchFragment(t);
|
|
2307
2307
|
else {
|
|
@@ -2319,8 +2319,8 @@ class Va {
|
|
|
2319
2319
|
r.text.length == i[0].length ? this.content.pop() : this.content[this.content.length - 1] = o.withText(o.text.slice(0, o.text.length - i[0].length));
|
|
2320
2320
|
}
|
|
2321
2321
|
}
|
|
2322
|
-
let t =
|
|
2323
|
-
return !e && this.match && (t = t.append(this.match.fillBefore(
|
|
2322
|
+
let t = le.from(this.content);
|
|
2323
|
+
return !e && this.match && (t = t.append(this.match.fillBefore(le.empty, !0))), this.type ? this.type.create(this.attrs, t, this.marks) : t;
|
|
2324
2324
|
}
|
|
2325
2325
|
inlineContext(e) {
|
|
2326
2326
|
return this.type ? this.type.inlineContent : this.content.length ? this.content[0].isInline : e.parentNode && !dy.hasOwnProperty(e.parentNode.nodeName.toLowerCase());
|
|
@@ -3152,7 +3152,7 @@ function Bf(n, e, t) {
|
|
|
3152
3152
|
let o = n.child(i);
|
|
3153
3153
|
o.content.size && (o = o.copy(Bf(o.content, e, o))), o.isInline && (o = e(o, t, i)), r.push(o);
|
|
3154
3154
|
}
|
|
3155
|
-
return
|
|
3155
|
+
return le.fromArray(r);
|
|
3156
3156
|
}
|
|
3157
3157
|
class pi extends _n {
|
|
3158
3158
|
/**
|
|
@@ -3244,7 +3244,7 @@ class mi extends _n {
|
|
|
3244
3244
|
if (!t)
|
|
3245
3245
|
return Yt.fail("No node at mark step's position");
|
|
3246
3246
|
let r = t.type.create(t.attrs, null, this.mark.addToSet(t.marks));
|
|
3247
|
-
return Yt.fromReplace(e, this.pos, this.pos + 1, new xe(
|
|
3247
|
+
return Yt.fromReplace(e, this.pos, this.pos + 1, new xe(le.from(r), 0, t.isLeaf ? 0 : 1));
|
|
3248
3248
|
}
|
|
3249
3249
|
invert(e) {
|
|
3250
3250
|
let t = e.nodeAt(this.pos);
|
|
@@ -3288,7 +3288,7 @@ class ro extends _n {
|
|
|
3288
3288
|
if (!t)
|
|
3289
3289
|
return Yt.fail("No node at mark step's position");
|
|
3290
3290
|
let r = t.type.create(t.attrs, null, this.mark.removeFromSet(t.marks));
|
|
3291
|
-
return Yt.fromReplace(e, this.pos, this.pos + 1, new xe(
|
|
3291
|
+
return Yt.fromReplace(e, this.pos, this.pos + 1, new xe(le.from(r), 0, t.isLeaf ? 0 : 1));
|
|
3292
3292
|
}
|
|
3293
3293
|
invert(e) {
|
|
3294
3294
|
let t = e.nodeAt(this.pos);
|
|
@@ -3488,13 +3488,13 @@ function Ff(n, e, t, r = t.contentMatch, i = !0) {
|
|
|
3488
3488
|
if (i && c.isText && t.whitespace != "pre") {
|
|
3489
3489
|
let m, b = /\r?\n|\r/g, f;
|
|
3490
3490
|
for (; m = b.exec(c.text); )
|
|
3491
|
-
f || (f = new xe(
|
|
3491
|
+
f || (f = new xe(le.from(t.schema.text(" ", t.allowedMarks(c.marks))), 0, 0)), s.push(new Qt(a + m.index, a + m.index + m[0].length, f));
|
|
3492
3492
|
}
|
|
3493
3493
|
}
|
|
3494
3494
|
a = u;
|
|
3495
3495
|
}
|
|
3496
3496
|
if (!r.validEnd) {
|
|
3497
|
-
let l = r.fillBefore(
|
|
3497
|
+
let l = r.fillBefore(le.empty, !0);
|
|
3498
3498
|
n.replace(a, a, new xe(l, 0, 0));
|
|
3499
3499
|
}
|
|
3500
3500
|
for (let l = s.length - 1; l >= 0; l--)
|
|
@@ -3516,12 +3516,12 @@ function ss(n) {
|
|
|
3516
3516
|
return null;
|
|
3517
3517
|
}
|
|
3518
3518
|
function kw(n, e, t) {
|
|
3519
|
-
let { $from: r, $to: i, depth: o } = e, s = r.before(o + 1), a = i.after(o + 1), l = s, c = a, u =
|
|
3519
|
+
let { $from: r, $to: i, depth: o } = e, s = r.before(o + 1), a = i.after(o + 1), l = s, c = a, u = le.empty, d = 0;
|
|
3520
3520
|
for (let f = o, y = !1; f > t; f--)
|
|
3521
|
-
y || r.index(f) > 0 ? (y = !0, u =
|
|
3522
|
-
let m =
|
|
3521
|
+
y || r.index(f) > 0 ? (y = !0, u = le.from(r.node(f).copy(u)), d++) : l--;
|
|
3522
|
+
let m = le.empty, b = 0;
|
|
3523
3523
|
for (let f = o, y = !1; f > t; f--)
|
|
3524
|
-
y || i.after(f + 1) < i.end(f) ? (y = !0, m =
|
|
3524
|
+
y || i.after(f + 1) < i.end(f) ? (y = !0, m = le.from(i.node(f).copy(m)), b++) : c++;
|
|
3525
3525
|
n.step(new tn(l, c, s, a, new xe(u.append(m), d, b), u.size - d, !0));
|
|
3526
3526
|
}
|
|
3527
3527
|
function zf(n, e, t = null, r = n) {
|
|
@@ -3548,14 +3548,14 @@ function Cw(n, e) {
|
|
|
3548
3548
|
return !l || !l.validEnd ? null : s;
|
|
3549
3549
|
}
|
|
3550
3550
|
function Ew(n, e, t) {
|
|
3551
|
-
let r =
|
|
3551
|
+
let r = le.empty;
|
|
3552
3552
|
for (let s = t.length - 1; s >= 0; s--) {
|
|
3553
3553
|
if (r.size) {
|
|
3554
3554
|
let a = t[s].type.contentMatch.matchFragment(r);
|
|
3555
3555
|
if (!a || !a.validEnd)
|
|
3556
3556
|
throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper");
|
|
3557
3557
|
}
|
|
3558
|
-
r =
|
|
3558
|
+
r = le.from(t[s].type.create(t[s].attrs, r));
|
|
3559
3559
|
}
|
|
3560
3560
|
let i = e.start, o = e.end;
|
|
3561
3561
|
n.step(new tn(i, o, i, o, new xe(r, 0, 0), t.length, !0));
|
|
@@ -3574,7 +3574,7 @@ function Tw(n, e, t, r, i) {
|
|
|
3574
3574
|
}
|
|
3575
3575
|
c === !1 && yy(n, s, a, o), Ff(n, n.mapping.slice(o).map(a, 1), r, void 0, c === null);
|
|
3576
3576
|
let u = n.mapping.slice(o), d = u.map(a, 1), m = u.map(a + s.nodeSize, 1);
|
|
3577
|
-
return n.step(new tn(d, m, d + 1, m - 1, new xe(
|
|
3577
|
+
return n.step(new tn(d, m, d + 1, m - 1, new xe(le.from(r.create(l, null, s.marks)), 0, 0), 1, !0)), c === !0 && _y(n, s, a, o), !1;
|
|
3578
3578
|
}
|
|
3579
3579
|
});
|
|
3580
3580
|
}
|
|
@@ -3612,7 +3612,7 @@ function Mw(n, e, t, r, i) {
|
|
|
3612
3612
|
return n.replaceWith(e, e + o.nodeSize, s);
|
|
3613
3613
|
if (!t.validContent(o.content))
|
|
3614
3614
|
throw new RangeError("Invalid content for node type " + t.name);
|
|
3615
|
-
n.step(new tn(e, e + o.nodeSize, e + 1, e + o.nodeSize - 1, new xe(
|
|
3615
|
+
n.step(new tn(e, e + o.nodeSize, e + 1, e + o.nodeSize - 1, new xe(le.from(s), 0, 0), 1, !0));
|
|
3616
3616
|
}
|
|
3617
3617
|
function $r(n, e, t = 1, r) {
|
|
3618
3618
|
let i = n.resolve(e), o = i.depth - t, s = r && r[r.length - 1] || i.parent;
|
|
@@ -3632,11 +3632,11 @@ function $r(n, e, t = 1, r) {
|
|
|
3632
3632
|
return i.node(o).canReplaceWith(a, a, l ? l.type : i.node(o + 1).type);
|
|
3633
3633
|
}
|
|
3634
3634
|
function Dw(n, e, t = 1, r) {
|
|
3635
|
-
let i = n.doc.resolve(e), o =
|
|
3635
|
+
let i = n.doc.resolve(e), o = le.empty, s = le.empty;
|
|
3636
3636
|
for (let a = i.depth, l = i.depth - t, c = t - 1; a > l; a--, c--) {
|
|
3637
|
-
o =
|
|
3637
|
+
o = le.from(i.node(a).copy(o));
|
|
3638
3638
|
let u = r && r[c];
|
|
3639
|
-
s =
|
|
3639
|
+
s = le.from(u ? u.type.create(u.attrs, s) : i.node(a).copy(s));
|
|
3640
3640
|
}
|
|
3641
3641
|
n.step(new Qt(e, e, new xe(o.append(s), t, t), !0));
|
|
3642
3642
|
}
|
|
@@ -3741,7 +3741,7 @@ function xy(n, e, t) {
|
|
|
3741
3741
|
}
|
|
3742
3742
|
class Ow {
|
|
3743
3743
|
constructor(e, t, r) {
|
|
3744
|
-
this.$from = e, this.$to = t, this.unplaced = r, this.frontier = [], this.placed =
|
|
3744
|
+
this.$from = e, this.$to = t, this.unplaced = r, this.frontier = [], this.placed = le.empty;
|
|
3745
3745
|
for (let i = 0; i <= e.depth; i++) {
|
|
3746
3746
|
let o = e.node(i);
|
|
3747
3747
|
this.frontier.push({
|
|
@@ -3750,7 +3750,7 @@ class Ow {
|
|
|
3750
3750
|
});
|
|
3751
3751
|
}
|
|
3752
3752
|
for (let i = e.depth; i > 0; i--)
|
|
3753
|
-
this.placed =
|
|
3753
|
+
this.placed = le.from(e.node(i).copy(this.placed));
|
|
3754
3754
|
}
|
|
3755
3755
|
get depth() {
|
|
3756
3756
|
return this.frontier.length - 1;
|
|
@@ -3789,7 +3789,7 @@ class Ow {
|
|
|
3789
3789
|
let s = i.firstChild;
|
|
3790
3790
|
for (let a = this.depth; a >= 0; a--) {
|
|
3791
3791
|
let { type: l, match: c } = this.frontier[a], u, d = null;
|
|
3792
|
-
if (t == 1 && (s ? c.matchType(s.type) || (d = c.fillBefore(
|
|
3792
|
+
if (t == 1 && (s ? c.matchType(s.type) || (d = c.fillBefore(le.from(s), !1)) : o && l.compatibleContent(o.type)))
|
|
3793
3793
|
return { sliceDepth: r, frontierDepth: a, parent: o, inject: d };
|
|
3794
3794
|
if (t == 2 && s && (u = c.findWrapping(s.type)))
|
|
3795
3795
|
return { sliceDepth: r, frontierDepth: a, parent: o, wrap: u };
|
|
@@ -3833,7 +3833,7 @@ class Ow {
|
|
|
3833
3833
|
c++, (c > 1 || l == 0 || y.content.size) && (d = v, u.push(ky(y.mark(m.allowedMarks(y.marks)), c == 1 ? l : 0, c == a.childCount ? b : -1)));
|
|
3834
3834
|
}
|
|
3835
3835
|
let f = c == a.childCount;
|
|
3836
|
-
f || (b = -1), this.placed = Ms(this.placed, t,
|
|
3836
|
+
f || (b = -1), this.placed = Ms(this.placed, t, le.from(u)), this.frontier[t].match = d, f && b < 0 && r && r.type == this.frontier[this.depth].type && this.frontier.length > 1 && this.closeFrontierNode();
|
|
3837
3837
|
for (let y = 0, v = a; y < b; y++) {
|
|
3838
3838
|
let x = v.lastChild;
|
|
3839
3839
|
this.frontier.push({ type: x.type, match: x.contentMatchAt(x.childCount) }), v = x.content;
|
|
@@ -3879,10 +3879,10 @@ class Ow {
|
|
|
3879
3879
|
}
|
|
3880
3880
|
openFrontierNode(e, t = null, r) {
|
|
3881
3881
|
let i = this.frontier[this.depth];
|
|
3882
|
-
i.match = i.match.matchType(e), this.placed = Ms(this.placed, this.depth,
|
|
3882
|
+
i.match = i.match.matchType(e), this.placed = Ms(this.placed, this.depth, le.from(e.create(t, r))), this.frontier.push({ type: e, match: e.contentMatch });
|
|
3883
3883
|
}
|
|
3884
3884
|
closeFrontierNode() {
|
|
3885
|
-
let t = this.frontier.pop().match.fillBefore(
|
|
3885
|
+
let t = this.frontier.pop().match.fillBefore(le.empty, !0);
|
|
3886
3886
|
t.childCount && (this.placed = Ms(this.placed, this.frontier.length, t));
|
|
3887
3887
|
}
|
|
3888
3888
|
}
|
|
@@ -3901,7 +3901,7 @@ function ky(n, e, t) {
|
|
|
3901
3901
|
if (e <= 0)
|
|
3902
3902
|
return n;
|
|
3903
3903
|
let r = n.content;
|
|
3904
|
-
return e > 1 && (r = r.replaceChild(0, ky(r.firstChild, e - 1, r.childCount == 1 ? t - 1 : 0))), e > 0 && (r = n.type.contentMatch.fillBefore(r).append(r), t <= 0 && (r = r.append(n.type.contentMatch.matchFragment(r).fillBefore(
|
|
3904
|
+
return e > 1 && (r = r.replaceChild(0, ky(r.firstChild, e - 1, r.childCount == 1 ? t - 1 : 0))), e > 0 && (r = n.type.contentMatch.fillBefore(r).append(r), t <= 0 && (r = r.append(n.type.contentMatch.matchFragment(r).fillBefore(le.empty, !0)))), n.copy(r);
|
|
3905
3905
|
}
|
|
3906
3906
|
function Ju(n, e, t, r, i) {
|
|
3907
3907
|
let o = n.node(e), s = i ? n.indexAfter(e) : n.index(e);
|
|
@@ -3973,7 +3973,7 @@ function Sy(n, e, t, r, i) {
|
|
|
3973
3973
|
}
|
|
3974
3974
|
if (e > r) {
|
|
3975
3975
|
let o = i.contentMatchAt(0), s = o.fillBefore(n).append(n);
|
|
3976
|
-
n = s.append(o.matchFragment(s).fillBefore(
|
|
3976
|
+
n = s.append(o.matchFragment(s).fillBefore(le.empty, !0));
|
|
3977
3977
|
}
|
|
3978
3978
|
return n;
|
|
3979
3979
|
}
|
|
@@ -3982,7 +3982,7 @@ function Fw(n, e, t, r) {
|
|
|
3982
3982
|
let i = Iw(n.doc, e, r.type);
|
|
3983
3983
|
i != null && (e = t = i);
|
|
3984
3984
|
}
|
|
3985
|
-
n.replaceRange(e, t, new xe(
|
|
3985
|
+
n.replaceRange(e, t, new xe(le.from(r), 0, 0));
|
|
3986
3986
|
}
|
|
3987
3987
|
function zw(n, e, t) {
|
|
3988
3988
|
let r = n.doc.resolve(e), i = n.doc.resolve(t);
|
|
@@ -4039,7 +4039,7 @@ class Wo extends _n {
|
|
|
4039
4039
|
r[o] = t.attrs[o];
|
|
4040
4040
|
r[this.attr] = this.value;
|
|
4041
4041
|
let i = t.type.create(r, null, t.marks);
|
|
4042
|
-
return Yt.fromReplace(e, this.pos, this.pos + 1, new xe(
|
|
4042
|
+
return Yt.fromReplace(e, this.pos, this.pos + 1, new xe(le.from(i), 0, t.isLeaf ? 0 : 1));
|
|
4043
4043
|
}
|
|
4044
4044
|
getMap() {
|
|
4045
4045
|
return In.empty;
|
|
@@ -4177,7 +4177,7 @@ let qf = class {
|
|
|
4177
4177
|
fragment, node, or array of nodes.
|
|
4178
4178
|
*/
|
|
4179
4179
|
replaceWith(e, t, r) {
|
|
4180
|
-
return this.replace(e, t, new xe(
|
|
4180
|
+
return this.replace(e, t, new xe(le.from(r), 0, 0));
|
|
4181
4181
|
}
|
|
4182
4182
|
/**
|
|
4183
4183
|
Delete the content between the given positions.
|
|
@@ -4620,7 +4620,7 @@ class Ne extends Ue {
|
|
|
4620
4620
|
return r ? Ue.near(o) : new Ne(o);
|
|
4621
4621
|
}
|
|
4622
4622
|
content() {
|
|
4623
|
-
return new xe(
|
|
4623
|
+
return new xe(le.from(this.node), 0, 0);
|
|
4624
4624
|
}
|
|
4625
4625
|
eq(e) {
|
|
4626
4626
|
return e instanceof Ne && e.anchor == this.anchor;
|
|
@@ -5423,10 +5423,10 @@ function qy(n, e, t, r) {
|
|
|
5423
5423
|
let c = !l && e.parent.canReplace(e.index(), e.index() + 1);
|
|
5424
5424
|
if (c && (s = (a = i.contentMatchAt(i.childCount)).findWrapping(o.type)) && a.matchType(s[0] || o.type).validEnd) {
|
|
5425
5425
|
if (t) {
|
|
5426
|
-
let b = e.pos + o.nodeSize, f =
|
|
5426
|
+
let b = e.pos + o.nodeSize, f = le.empty;
|
|
5427
5427
|
for (let x = s.length - 1; x >= 0; x--)
|
|
5428
|
-
f =
|
|
5429
|
-
f =
|
|
5428
|
+
f = le.from(s[x].create(null, f));
|
|
5429
|
+
f = le.from(i.copy(f));
|
|
5430
5430
|
let y = n.tr.step(new tn(e.pos - 1, b, e.pos, b, new xe(f, 1, 0), s.length, !0)), v = y.doc.resolve(b + 2 * s.length);
|
|
5431
5431
|
v.nodeAfter && v.nodeAfter.type == i.type && Ti(y.doc, v.pos) && y.join(v.pos), t(y.scrollIntoView());
|
|
5432
5432
|
}
|
|
@@ -5444,9 +5444,9 @@ function qy(n, e, t, r) {
|
|
|
5444
5444
|
v++;
|
|
5445
5445
|
if (b.canReplace(b.childCount, b.childCount, y.content)) {
|
|
5446
5446
|
if (t) {
|
|
5447
|
-
let x =
|
|
5447
|
+
let x = le.empty;
|
|
5448
5448
|
for (let k = f.length - 1; k >= 0; k--)
|
|
5449
|
-
x =
|
|
5449
|
+
x = le.from(f[k].copy(x));
|
|
5450
5450
|
let C = n.tr.step(new tn(e.pos - f.length, e.pos + o.nodeSize, e.pos + v, e.pos + o.nodeSize - v, new xe(x, f.length, 0), 0, !0));
|
|
5451
5451
|
t(C.scrollIntoView());
|
|
5452
5452
|
}
|
|
@@ -5536,9 +5536,9 @@ function rx(n, e, t, r = null) {
|
|
|
5536
5536
|
return a ? (n && ix(n, e, a, i, t), !0) : !1;
|
|
5537
5537
|
}
|
|
5538
5538
|
function ix(n, e, t, r, i) {
|
|
5539
|
-
let o =
|
|
5539
|
+
let o = le.empty;
|
|
5540
5540
|
for (let u = t.length - 1; u >= 0; u--)
|
|
5541
|
-
o =
|
|
5541
|
+
o = le.from(t[u].type.create(t[u].attrs, o));
|
|
5542
5542
|
n.step(new tn(e.start - (r ? 2 : 0), e.end, e.start, e.end, new xe(o, 0, 0), t.length, !0));
|
|
5543
5543
|
let s = 0;
|
|
5544
5544
|
for (let u = 0; u < t.length; u++)
|
|
@@ -5556,7 +5556,7 @@ function ox(n) {
|
|
|
5556
5556
|
}
|
|
5557
5557
|
function sx(n, e, t, r) {
|
|
5558
5558
|
let i = n.tr, o = r.end, s = r.$to.end(r.depth);
|
|
5559
|
-
o < s && (i.step(new tn(o - 1, s, o, s, new xe(
|
|
5559
|
+
o < s && (i.step(new tn(o - 1, s, o, s, new xe(le.from(t.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new Il(i.doc.resolve(r.$from.pos), i.doc.resolve(s), r.depth));
|
|
5560
5560
|
const a = ss(r);
|
|
5561
5561
|
if (a == null)
|
|
5562
5562
|
return !1;
|
|
@@ -5572,10 +5572,10 @@ function ax(n, e, t) {
|
|
|
5572
5572
|
if (r.mapping.map(t.end) != t.start + o.nodeAfter.nodeSize)
|
|
5573
5573
|
return !1;
|
|
5574
5574
|
let a = t.startIndex == 0, l = t.endIndex == i.childCount, c = o.node(-1), u = o.index(-1);
|
|
5575
|
-
if (!c.canReplace(u + (a ? 0 : 1), u + 1, s.content.append(l ?
|
|
5575
|
+
if (!c.canReplace(u + (a ? 0 : 1), u + 1, s.content.append(l ? le.empty : le.from(i))))
|
|
5576
5576
|
return !1;
|
|
5577
5577
|
let d = o.pos, m = d + s.nodeSize;
|
|
5578
|
-
return r.step(new tn(d - (a ? 1 : 0), m + (l ? 1 : 0), d + 1, m - 1, new xe((a ?
|
|
5578
|
+
return r.step(new tn(d - (a ? 1 : 0), m + (l ? 1 : 0), d + 1, m - 1, new xe((a ? le.empty : le.from(i.copy(le.empty))).append(l ? le.empty : le.from(i.copy(le.empty))), a ? 0 : 1, l ? 0 : 1), a ? 0 : 1)), e(r.scrollIntoView()), !0;
|
|
5579
5579
|
}
|
|
5580
5580
|
function lx(n) {
|
|
5581
5581
|
return function(e, t) {
|
|
@@ -5589,7 +5589,7 @@ function lx(n) {
|
|
|
5589
5589
|
if (l.type != n)
|
|
5590
5590
|
return !1;
|
|
5591
5591
|
if (t) {
|
|
5592
|
-
let c = l.lastChild && l.lastChild.type == a.type, u =
|
|
5592
|
+
let c = l.lastChild && l.lastChild.type == a.type, u = le.from(c ? n.create() : null), d = new xe(le.from(n.create(null, le.from(a.type.create(null, u)))), c ? 3 : 1, 0), m = o.start, b = o.end;
|
|
5593
5593
|
t(e.tr.step(new tn(m - (c ? 3 : 1), b, m, b, d, 1, !0)).scrollIntoView());
|
|
5594
5594
|
}
|
|
5595
5595
|
return !0;
|
|
@@ -6533,7 +6533,7 @@ class yi extends ga {
|
|
|
6533
6533
|
break;
|
|
6534
6534
|
}
|
|
6535
6535
|
}
|
|
6536
|
-
e.contentElement || (e.getContent = () =>
|
|
6536
|
+
e.contentElement || (e.getContent = () => le.empty);
|
|
6537
6537
|
}
|
|
6538
6538
|
return e;
|
|
6539
6539
|
}
|
|
@@ -7481,7 +7481,7 @@ function sv(n, e, t, r, i) {
|
|
|
7481
7481
|
if (n.someProp("transformPastedText", (m) => {
|
|
7482
7482
|
e = m(e, o || r, n);
|
|
7483
7483
|
}), o)
|
|
7484
|
-
return a = new xe(
|
|
7484
|
+
return a = new xe(le.from(n.state.schema.text(e.replace(/\r\n?/g, `
|
|
7485
7485
|
`))), 0, 0), n.someProp("transformPasted", (m) => {
|
|
7486
7486
|
a = m(a, n, !0);
|
|
7487
7487
|
}), a;
|
|
@@ -7549,13 +7549,13 @@ function Xx(n, e) {
|
|
|
7549
7549
|
s.push(u), i = i.matchType(u.type), o = l;
|
|
7550
7550
|
}
|
|
7551
7551
|
}), s)
|
|
7552
|
-
return
|
|
7552
|
+
return le.from(s);
|
|
7553
7553
|
}
|
|
7554
7554
|
return n;
|
|
7555
7555
|
}
|
|
7556
7556
|
function av(n, e, t = 0) {
|
|
7557
7557
|
for (let r = e.length - 1; r >= t; r--)
|
|
7558
|
-
n = e[r].create(null,
|
|
7558
|
+
n = e[r].create(null, le.from(n));
|
|
7559
7559
|
return n;
|
|
7560
7560
|
}
|
|
7561
7561
|
function lv(n, e, t, r, i) {
|
|
@@ -7564,18 +7564,18 @@ function lv(n, e, t, r, i) {
|
|
|
7564
7564
|
if (o)
|
|
7565
7565
|
return r.copy(r.content.replaceChild(r.childCount - 1, o));
|
|
7566
7566
|
if (r.contentMatchAt(r.childCount).matchType(i == n.length - 1 ? t.type : n[i + 1]))
|
|
7567
|
-
return r.copy(r.content.append(
|
|
7567
|
+
return r.copy(r.content.append(le.from(av(t, n, i + 1))));
|
|
7568
7568
|
}
|
|
7569
7569
|
}
|
|
7570
7570
|
function cv(n, e) {
|
|
7571
7571
|
if (e == 0)
|
|
7572
7572
|
return n;
|
|
7573
|
-
let t = n.content.replaceChild(n.childCount - 1, cv(n.lastChild, e - 1)), r = n.contentMatchAt(n.childCount).fillBefore(
|
|
7573
|
+
let t = n.content.replaceChild(n.childCount - 1, cv(n.lastChild, e - 1)), r = n.contentMatchAt(n.childCount).fillBefore(le.empty, !0);
|
|
7574
7574
|
return n.copy(t.append(r));
|
|
7575
7575
|
}
|
|
7576
7576
|
function Jh(n, e, t, r, i, o) {
|
|
7577
7577
|
let s = e < 0 ? n.firstChild : n.lastChild, a = s.content;
|
|
7578
|
-
return n.childCount > 1 && (o = 0), i < r - 1 && (a = Jh(a, e, t, r, i + 1, o)), i >= t && (a = e < 0 ? s.contentMatchAt(0).fillBefore(a, o <= i).append(a) : a.append(s.contentMatchAt(s.childCount).fillBefore(
|
|
7578
|
+
return n.childCount > 1 && (o = 0), i < r - 1 && (a = Jh(a, e, t, r, i + 1, o)), i >= t && (a = e < 0 ? s.contentMatchAt(0).fillBefore(a, o <= i).append(a) : a.append(s.contentMatchAt(s.childCount).fillBefore(le.empty, !0))), n.replaceChild(e < 0 ? 0 : n.childCount - 1, s.copy(a));
|
|
7579
7579
|
}
|
|
7580
7580
|
function Ug(n, e, t) {
|
|
7581
7581
|
return e < n.openStart && (n = new xe(Jh(n.content, -1, e, n.openStart, 0, n.openEnd), e, n.openEnd)), t < n.openEnd && (n = new xe(Jh(n.content, 1, t, n.openEnd, 0, 0), n.openStart, t)), n;
|
|
@@ -7630,7 +7630,7 @@ function nk(n, e) {
|
|
|
7630
7630
|
let l = t.nodes[r[a]];
|
|
7631
7631
|
if (!l || l.hasRequiredAttrs())
|
|
7632
7632
|
break;
|
|
7633
|
-
i =
|
|
7633
|
+
i = le.from(l.create(r[a + 1], i)), o++, s++;
|
|
7634
7634
|
}
|
|
7635
7635
|
return new xe(i, o, s);
|
|
7636
7636
|
}
|
|
@@ -8953,7 +8953,7 @@ function qk(n, e) {
|
|
|
8953
8953
|
let c = [];
|
|
8954
8954
|
for (let u = 0; u < e.childCount; u++)
|
|
8955
8955
|
c.push(l(e.child(u)));
|
|
8956
|
-
if (
|
|
8956
|
+
if (le.from(c).eq(n))
|
|
8957
8957
|
return { mark: a, type: s };
|
|
8958
8958
|
}
|
|
8959
8959
|
function Hk(n, e, t, r, i) {
|
|
@@ -9895,7 +9895,7 @@ function Ns(n) {
|
|
|
9895
9895
|
return Ev(t);
|
|
9896
9896
|
}
|
|
9897
9897
|
function ra(n, e, t) {
|
|
9898
|
-
if (n instanceof bi || n instanceof
|
|
9898
|
+
if (n instanceof bi || n instanceof le)
|
|
9899
9899
|
return n;
|
|
9900
9900
|
t = {
|
|
9901
9901
|
slice: !0,
|
|
@@ -9906,7 +9906,7 @@ function ra(n, e, t) {
|
|
|
9906
9906
|
if (r)
|
|
9907
9907
|
try {
|
|
9908
9908
|
if (Array.isArray(n) && n.length > 0)
|
|
9909
|
-
return
|
|
9909
|
+
return le.fromArray(n.map((a) => e.nodeFromJSON(a)));
|
|
9910
9910
|
const s = e.nodeFromJSON(n);
|
|
9911
9911
|
return t.errorOnInvalidContent && s.check(), s;
|
|
9912
9912
|
} catch (o) {
|
|
@@ -10009,7 +10009,7 @@ var w8 = (n) => !("type" in n), x8 = (n, e, t) => ({ tr: r, dispatch: i, editor:
|
|
|
10009
10009
|
if (m) {
|
|
10010
10010
|
if (Array.isArray(e))
|
|
10011
10011
|
y = e.map((v) => v.text || "").join("");
|
|
10012
|
-
else if (e instanceof
|
|
10012
|
+
else if (e instanceof le) {
|
|
10013
10013
|
let v = "";
|
|
10014
10014
|
e.forEach((x) => {
|
|
10015
10015
|
x.text && (v += x.text);
|
|
@@ -10925,10 +10925,10 @@ var yS = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, editor
|
|
|
10925
10925
|
if (l.depth === 2 || l.node(-3).type !== a || l.index(-2) !== l.node(-2).childCount - 1)
|
|
10926
10926
|
return !1;
|
|
10927
10927
|
if (i) {
|
|
10928
|
-
let x =
|
|
10928
|
+
let x = le.empty;
|
|
10929
10929
|
const C = l.index(-1) ? 1 : l.index(-2) ? 2 : 3;
|
|
10930
10930
|
for (let q = l.depth - C; q >= l.depth - 3; q -= 1)
|
|
10931
|
-
x =
|
|
10931
|
+
x = le.from(l.node(q).copy(x));
|
|
10932
10932
|
const k = (
|
|
10933
10933
|
// eslint-disable-next-line no-nested-ternary
|
|
10934
10934
|
l.indexAfter(-1) < l.node(-2).childCount ? 1 : l.indexAfter(-2) < l.node(-3).childCount ? 2 : 3
|
|
@@ -10936,7 +10936,7 @@ var yS = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, editor
|
|
|
10936
10936
|
...yl(m, l.node().type.name, l.node().attrs),
|
|
10937
10937
|
...e
|
|
10938
10938
|
}, N = ((s = a.contentMatch.defaultType) == null ? void 0 : s.createAndFill(D)) || void 0;
|
|
10939
|
-
x = x.append(
|
|
10939
|
+
x = x.append(le.from(a.createAndFill(null, N) || void 0));
|
|
10940
10940
|
const O = l.before(l.depth - (C - 1));
|
|
10941
10941
|
t.replace(O, l.after(-k), new xe(x, 4 - C, 0));
|
|
10942
10942
|
let z = -1;
|
|
@@ -11222,7 +11222,7 @@ function LS(n) {
|
|
|
11222
11222
|
const l = i.getMeta("applyInputRules");
|
|
11223
11223
|
return !!l && setTimeout(() => {
|
|
11224
11224
|
let { text: u } = l;
|
|
11225
|
-
typeof u == "string" ? u = u : u = sp(
|
|
11225
|
+
typeof u == "string" ? u = u : u = sp(le.from(u), s.schema);
|
|
11226
11226
|
const { from: d } = l, m = d + u.length;
|
|
11227
11227
|
Ka({
|
|
11228
11228
|
editor: e,
|
|
@@ -11332,7 +11332,7 @@ var up = class {
|
|
|
11332
11332
|
const e = new this.constructor({ ...this.config, ...n });
|
|
11333
11333
|
return e.parent = this, this.child = e, e.name = "name" in n ? n.name : e.parent.name, e;
|
|
11334
11334
|
}
|
|
11335
|
-
},
|
|
11335
|
+
}, ar = class Gv extends up {
|
|
11336
11336
|
constructor() {
|
|
11337
11337
|
super(...arguments), this.type = "mark";
|
|
11338
11338
|
}
|
|
@@ -11495,7 +11495,7 @@ function HS(n) {
|
|
|
11495
11495
|
return;
|
|
11496
11496
|
if (C) {
|
|
11497
11497
|
let { text: N } = x;
|
|
11498
|
-
typeof N == "string" ? N = N : N = sp(
|
|
11498
|
+
typeof N == "string" ? N = N : N = sp(le.from(N), b.schema);
|
|
11499
11499
|
const { from: O } = x, z = O + N.length, q = qS(N);
|
|
11500
11500
|
return l({
|
|
11501
11501
|
rule: u,
|
|
@@ -11559,7 +11559,7 @@ var Vc = class {
|
|
|
11559
11559
|
i
|
|
11560
11560
|
);
|
|
11561
11561
|
let a = {};
|
|
11562
|
-
if (r.type === "mark" && Re(r, "exitable", i) && (a.ArrowRight = () =>
|
|
11562
|
+
if (r.type === "mark" && Re(r, "exitable", i) && (a.ArrowRight = () => ar.handleExit({ editor: n, mark: r })), s) {
|
|
11563
11563
|
const m = Object.fromEntries(
|
|
11564
11564
|
Object.entries(s()).map(([b, f]) => [b, () => f({ editor: n })])
|
|
11565
11565
|
);
|
|
@@ -13720,7 +13720,7 @@ function Mi(n, e) {
|
|
|
13720
13720
|
return new i7(r, t, e);
|
|
13721
13721
|
};
|
|
13722
13722
|
}
|
|
13723
|
-
const s2 = ["top", "right", "bottom", "left"], d1 = ["start", "end"], h1 = /* @__PURE__ */ s2.reduce((n, e) => n.concat(e, e + "-" + d1[0], e + "-" + d1[1]), []), Cr = Math.min, vn = Math.max, Ul = Math.round,
|
|
13723
|
+
const s2 = ["top", "right", "bottom", "left"], d1 = ["start", "end"], h1 = /* @__PURE__ */ s2.reduce((n, e) => n.concat(e, e + "-" + d1[0], e + "-" + d1[1]), []), Cr = Math.min, vn = Math.max, Ul = Math.round, wr = (n) => ({
|
|
13724
13724
|
x: n,
|
|
13725
13725
|
y: n
|
|
13726
13726
|
}), o7 = {
|
|
@@ -13747,12 +13747,12 @@ function a2(n) {
|
|
|
13747
13747
|
function pp(n) {
|
|
13748
13748
|
return n === "y" ? "height" : "width";
|
|
13749
13749
|
}
|
|
13750
|
-
function
|
|
13750
|
+
function vr(n) {
|
|
13751
13751
|
const e = n[0];
|
|
13752
13752
|
return e === "t" || e === "b" ? "y" : "x";
|
|
13753
13753
|
}
|
|
13754
13754
|
function mp(n) {
|
|
13755
|
-
return a2(
|
|
13755
|
+
return a2(vr(n));
|
|
13756
13756
|
}
|
|
13757
13757
|
function l2(n, e, t) {
|
|
13758
13758
|
t === void 0 && (t = !1);
|
|
@@ -13829,7 +13829,7 @@ function m1(n, e, t) {
|
|
|
13829
13829
|
reference: r,
|
|
13830
13830
|
floating: i
|
|
13831
13831
|
} = n;
|
|
13832
|
-
const o =
|
|
13832
|
+
const o = vr(e), s = mp(e), a = pp(s), l = Qn(e), c = o === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, m = r[a] / 2 - i[a] / 2;
|
|
13833
13833
|
let b;
|
|
13834
13834
|
switch (l) {
|
|
13835
13835
|
case "top":
|
|
@@ -14114,7 +14114,7 @@ const b7 = function(n) {
|
|
|
14114
14114
|
} = Qr(n, e);
|
|
14115
14115
|
if ((t = o.arrow) != null && t.alignmentOffset)
|
|
14116
14116
|
return {};
|
|
14117
|
-
const x = Qn(i), C =
|
|
14117
|
+
const x = Qn(i), C = vr(a), k = Qn(a) === a, D = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), N = m || (k || !y ? [Vl(a)] : s7(a)), O = f !== "none";
|
|
14118
14118
|
!m && O && N.push(...u7(a, y, f, D));
|
|
14119
14119
|
const z = [a, ...N], q = await l.detectOverflow(e, v), U = [];
|
|
14120
14120
|
let B = ((r = o.flip) == null ? void 0 : r.overflows) || [];
|
|
@@ -14128,9 +14128,9 @@ const b7 = function(n) {
|
|
|
14128
14128
|
}], !U.every((V) => V <= 0)) {
|
|
14129
14129
|
var K, Q;
|
|
14130
14130
|
const V = (((K = o.flip) == null ? void 0 : K.index) || 0) + 1, j = z[V];
|
|
14131
|
-
if (j && (!(d === "alignment" ? C !==
|
|
14131
|
+
if (j && (!(d === "alignment" ? C !== vr(j) : !1) || // We leave the current main axis only if every placement on that axis
|
|
14132
14132
|
// overflows the main axis.
|
|
14133
|
-
B.every((he) =>
|
|
14133
|
+
B.every((he) => vr(he.placement) === C ? he.overflows[0] > 0 : !0)))
|
|
14134
14134
|
return {
|
|
14135
14135
|
data: {
|
|
14136
14136
|
index: V,
|
|
@@ -14147,7 +14147,7 @@ const b7 = function(n) {
|
|
|
14147
14147
|
var ne;
|
|
14148
14148
|
const re = (ne = B.filter((he) => {
|
|
14149
14149
|
if (O) {
|
|
14150
|
-
const Z =
|
|
14150
|
+
const Z = vr(he.placement);
|
|
14151
14151
|
return Z === C || // Create a bias to the `y` side axis due to horizontal
|
|
14152
14152
|
// reading directions favoring greater width.
|
|
14153
14153
|
Z === "y";
|
|
@@ -14264,7 +14264,7 @@ const w7 = function(n) {
|
|
|
14264
14264
|
if (d.length === 2 && d[0].left > d[1].right && l != null && c != null)
|
|
14265
14265
|
return d.find((v) => l > v.left - b.left && l < v.right + b.right && c > v.top - b.top && c < v.bottom + b.bottom) || m;
|
|
14266
14266
|
if (d.length >= 2) {
|
|
14267
|
-
if (
|
|
14267
|
+
if (vr(t) === "y") {
|
|
14268
14268
|
const B = d[0], K = d[d.length - 1], Q = Qn(t) === "top", ne = B.top, V = K.bottom, j = Q ? B.left : K.left, oe = Q ? B.right : K.right, re = oe - j, he = V - ne;
|
|
14269
14269
|
return {
|
|
14270
14270
|
top: ne,
|
|
@@ -14311,7 +14311,7 @@ async function k7(n, e) {
|
|
|
14311
14311
|
placement: t,
|
|
14312
14312
|
platform: r,
|
|
14313
14313
|
elements: i
|
|
14314
|
-
} = n, o = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), s = Qn(t), a = rr(t), l =
|
|
14314
|
+
} = n, o = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), s = Qn(t), a = rr(t), l = vr(t) === "y", c = x7.has(s) ? -1 : 1, u = o && l ? -1 : 1, d = Qr(e, n);
|
|
14315
14315
|
let {
|
|
14316
14316
|
mainAxis: m,
|
|
14317
14317
|
crossAxis: b,
|
|
@@ -14384,7 +14384,7 @@ const S7 = function(n) {
|
|
|
14384
14384
|
} = Qr(n, e), u = {
|
|
14385
14385
|
x: t,
|
|
14386
14386
|
y: r
|
|
14387
|
-
}, d = await o.detectOverflow(e, c), m =
|
|
14387
|
+
}, d = await o.detectOverflow(e, c), m = vr(Qn(i)), b = a2(m);
|
|
14388
14388
|
let f = u[b], y = u[m];
|
|
14389
14389
|
if (s) {
|
|
14390
14390
|
const x = b === "y" ? "top" : "left", C = b === "y" ? "bottom" : "right", k = f + d[x], D = f - d[C];
|
|
@@ -14427,7 +14427,7 @@ const S7 = function(n) {
|
|
|
14427
14427
|
apply: l = () => {
|
|
14428
14428
|
},
|
|
14429
14429
|
...c
|
|
14430
|
-
} = Qr(n, e), u = await s.detectOverflow(e, c), d = Qn(i), m = rr(i), b =
|
|
14430
|
+
} = Qr(n, e), u = await s.detectOverflow(e, c), d = Qn(i), m = rr(i), b = vr(i) === "y", {
|
|
14431
14431
|
width: f,
|
|
14432
14432
|
height: y
|
|
14433
14433
|
} = o.floating;
|
|
@@ -14470,7 +14470,7 @@ function Yr(n) {
|
|
|
14470
14470
|
function u2(n) {
|
|
14471
14471
|
return Wc() ? n instanceof Node || n instanceof Pn(n).Node : !1;
|
|
14472
14472
|
}
|
|
14473
|
-
function
|
|
14473
|
+
function or(n) {
|
|
14474
14474
|
return Wc() ? n instanceof Element || n instanceof Pn(n).Element : !1;
|
|
14475
14475
|
}
|
|
14476
14476
|
function Zr(n) {
|
|
@@ -14485,7 +14485,7 @@ function ba(n) {
|
|
|
14485
14485
|
overflowX: t,
|
|
14486
14486
|
overflowY: r,
|
|
14487
14487
|
display: i
|
|
14488
|
-
} =
|
|
14488
|
+
} = sr(n);
|
|
14489
14489
|
return /auto|scroll|overlay|hidden|clip/.test(e + r + t) && i !== "inline" && i !== "contents";
|
|
14490
14490
|
}
|
|
14491
14491
|
function T7(n) {
|
|
@@ -14506,7 +14506,7 @@ function Kc(n) {
|
|
|
14506
14506
|
const A7 = /transform|translate|scale|rotate|perspective|filter/, M7 = /paint|layout|strict|content/, Bi = (n) => !!n && n !== "none";
|
|
14507
14507
|
let f0;
|
|
14508
14508
|
function bp(n) {
|
|
14509
|
-
const e =
|
|
14509
|
+
const e = or(n) ? sr(n) : n;
|
|
14510
14510
|
return Bi(e.transform) || Bi(e.translate) || Bi(e.scale) || Bi(e.rotate) || Bi(e.perspective) || !_p() && (Bi(e.backdropFilter) || Bi(e.filter)) || A7.test(e.willChange || "") || M7.test(e.contain || "");
|
|
14511
14511
|
}
|
|
14512
14512
|
function D7(n) {
|
|
@@ -14526,11 +14526,11 @@ function _p() {
|
|
|
14526
14526
|
function ns(n) {
|
|
14527
14527
|
return /^(html|body|#document)$/.test(ls(n));
|
|
14528
14528
|
}
|
|
14529
|
-
function
|
|
14529
|
+
function sr(n) {
|
|
14530
14530
|
return Pn(n).getComputedStyle(n);
|
|
14531
14531
|
}
|
|
14532
14532
|
function jc(n) {
|
|
14533
|
-
return
|
|
14533
|
+
return or(n) ? {
|
|
14534
14534
|
scrollLeft: n.scrollLeft,
|
|
14535
14535
|
scrollTop: n.scrollTop
|
|
14536
14536
|
} : {
|
|
@@ -14564,7 +14564,7 @@ function cf(n) {
|
|
|
14564
14564
|
return n.parent && Object.getPrototypeOf(n.parent) ? n.frameElement : null;
|
|
14565
14565
|
}
|
|
14566
14566
|
function f2(n) {
|
|
14567
|
-
const e =
|
|
14567
|
+
const e = sr(n);
|
|
14568
14568
|
let t = parseFloat(e.width) || 0, r = parseFloat(e.height) || 0;
|
|
14569
14569
|
const i = Zr(n), o = i ? n.offsetWidth : t, s = i ? n.offsetHeight : r, a = Ul(t) !== o || Ul(r) !== s;
|
|
14570
14570
|
return a && (t = o, r = s), {
|
|
@@ -14574,12 +14574,12 @@ function f2(n) {
|
|
|
14574
14574
|
};
|
|
14575
14575
|
}
|
|
14576
14576
|
function p2(n) {
|
|
14577
|
-
return
|
|
14577
|
+
return or(n) ? n : n.contextElement;
|
|
14578
14578
|
}
|
|
14579
14579
|
function jo(n) {
|
|
14580
14580
|
const e = p2(n);
|
|
14581
14581
|
if (!Zr(e))
|
|
14582
|
-
return
|
|
14582
|
+
return wr(1);
|
|
14583
14583
|
const t = e.getBoundingClientRect(), {
|
|
14584
14584
|
width: r,
|
|
14585
14585
|
height: i,
|
|
@@ -14591,7 +14591,7 @@ function jo(n) {
|
|
|
14591
14591
|
y: a
|
|
14592
14592
|
};
|
|
14593
14593
|
}
|
|
14594
|
-
const N7 = /* @__PURE__ */
|
|
14594
|
+
const N7 = /* @__PURE__ */ wr(0);
|
|
14595
14595
|
function m2(n) {
|
|
14596
14596
|
const e = Pn(n);
|
|
14597
14597
|
return !_p() || !e.visualViewport ? N7 : {
|
|
@@ -14605,15 +14605,15 @@ function R7(n, e, t) {
|
|
|
14605
14605
|
function sa(n, e, t, r) {
|
|
14606
14606
|
e === void 0 && (e = !1), t === void 0 && (t = !1);
|
|
14607
14607
|
const i = n.getBoundingClientRect(), o = p2(n);
|
|
14608
|
-
let s =
|
|
14609
|
-
e && (r ?
|
|
14610
|
-
const a = R7(o, t, r) ? m2(o) :
|
|
14608
|
+
let s = wr(1);
|
|
14609
|
+
e && (r ? or(r) && (s = jo(r)) : s = jo(n));
|
|
14610
|
+
const a = R7(o, t, r) ? m2(o) : wr(0);
|
|
14611
14611
|
let l = (i.left + a.x) / s.x, c = (i.top + a.y) / s.y, u = i.width / s.x, d = i.height / s.y;
|
|
14612
14612
|
if (o) {
|
|
14613
|
-
const m = Pn(o), b = r &&
|
|
14613
|
+
const m = Pn(o), b = r && or(r) ? Pn(r) : r;
|
|
14614
14614
|
let f = m, y = cf(f);
|
|
14615
14615
|
for (; y && r && b !== f; ) {
|
|
14616
|
-
const v = jo(y), x = y.getBoundingClientRect(), C =
|
|
14616
|
+
const v = jo(y), x = y.getBoundingClientRect(), C = sr(y), k = x.left + (y.clientLeft + parseFloat(C.paddingLeft)) * v.x, D = x.top + (y.clientTop + parseFloat(C.paddingTop)) * v.y;
|
|
14617
14617
|
l *= v.x, c *= v.y, u *= v.x, d *= v.y, l += k, c += D, f = Pn(y), y = cf(f);
|
|
14618
14618
|
}
|
|
14619
14619
|
}
|
|
@@ -14648,13 +14648,13 @@ function I7(n) {
|
|
|
14648
14648
|
let l = {
|
|
14649
14649
|
scrollLeft: 0,
|
|
14650
14650
|
scrollTop: 0
|
|
14651
|
-
}, c =
|
|
14652
|
-
const u =
|
|
14651
|
+
}, c = wr(1);
|
|
14652
|
+
const u = wr(0), d = Zr(r);
|
|
14653
14653
|
if ((d || !d && !o) && ((ls(r) !== "body" || ba(s)) && (l = jc(r)), d)) {
|
|
14654
14654
|
const b = sa(r);
|
|
14655
14655
|
c = jo(r), u.x = b.x + r.clientLeft, u.y = b.y + r.clientTop;
|
|
14656
14656
|
}
|
|
14657
|
-
const m = s && !d && !o ? g2(s, l) :
|
|
14657
|
+
const m = s && !d && !o ? g2(s, l) : wr(0);
|
|
14658
14658
|
return {
|
|
14659
14659
|
width: t.width * c.x,
|
|
14660
14660
|
height: t.height * c.y,
|
|
@@ -14669,7 +14669,7 @@ function L7(n) {
|
|
|
14669
14669
|
const e = Yr(n), t = jc(n), r = n.ownerDocument.body, i = vn(e.scrollWidth, e.clientWidth, r.scrollWidth, r.clientWidth), o = vn(e.scrollHeight, e.clientHeight, r.scrollHeight, r.clientHeight);
|
|
14670
14670
|
let s = -t.scrollLeft + Qc(n);
|
|
14671
14671
|
const a = -t.scrollTop;
|
|
14672
|
-
return
|
|
14672
|
+
return sr(r).direction === "rtl" && (s += vn(e.clientWidth, r.clientWidth) - i), {
|
|
14673
14673
|
width: i,
|
|
14674
14674
|
height: o,
|
|
14675
14675
|
x: s,
|
|
@@ -14698,7 +14698,7 @@ function P7(n, e) {
|
|
|
14698
14698
|
};
|
|
14699
14699
|
}
|
|
14700
14700
|
function B7(n, e) {
|
|
14701
|
-
const t = sa(n, !0, e === "fixed"), r = t.top + n.clientTop, i = t.left + n.clientLeft, o = Zr(n) ? jo(n) :
|
|
14701
|
+
const t = sa(n, !0, e === "fixed"), r = t.top + n.clientTop, i = t.left + n.clientLeft, o = Zr(n) ? jo(n) : wr(1), s = n.clientWidth * o.x, a = n.clientHeight * o.y, l = i * o.x, c = r * o.y;
|
|
14702
14702
|
return {
|
|
14703
14703
|
width: s,
|
|
14704
14704
|
height: a,
|
|
@@ -14712,7 +14712,7 @@ function v1(n, e, t) {
|
|
|
14712
14712
|
r = P7(n, t);
|
|
14713
14713
|
else if (e === "document")
|
|
14714
14714
|
r = L7(Yr(n));
|
|
14715
|
-
else if (
|
|
14715
|
+
else if (or(e))
|
|
14716
14716
|
r = B7(e, t);
|
|
14717
14717
|
else {
|
|
14718
14718
|
const i = m2(n);
|
|
@@ -14727,17 +14727,17 @@ function v1(n, e, t) {
|
|
|
14727
14727
|
}
|
|
14728
14728
|
function b2(n, e) {
|
|
14729
14729
|
const t = Ei(n);
|
|
14730
|
-
return t === e || !
|
|
14730
|
+
return t === e || !or(t) || ns(t) ? !1 : sr(t).position === "fixed" || b2(t, e);
|
|
14731
14731
|
}
|
|
14732
14732
|
function F7(n, e) {
|
|
14733
14733
|
const t = e.get(n);
|
|
14734
14734
|
if (t)
|
|
14735
14735
|
return t;
|
|
14736
|
-
let r = h2(n, []).filter((a) =>
|
|
14737
|
-
const o =
|
|
14736
|
+
let r = h2(n, []).filter((a) => or(a) && ls(a) !== "body"), i = null;
|
|
14737
|
+
const o = sr(n).position === "fixed";
|
|
14738
14738
|
let s = o ? Ei(n) : n;
|
|
14739
|
-
for (;
|
|
14740
|
-
const a =
|
|
14739
|
+
for (; or(s) && !ns(s); ) {
|
|
14740
|
+
const a = sr(s), l = bp(s);
|
|
14741
14741
|
!l && a.position === "fixed" && (i = null), (o ? !l && !i : !l && a.position === "static" && !!i && (i.position === "absolute" || i.position === "fixed") || ba(s) && !l && b2(n, s)) ? r = r.filter((u) => u !== s) : i = a, s = Ei(s);
|
|
14742
14742
|
}
|
|
14743
14743
|
return e.set(n, r), r;
|
|
@@ -14778,7 +14778,7 @@ function H7(n, e, t) {
|
|
|
14778
14778
|
scrollLeft: 0,
|
|
14779
14779
|
scrollTop: 0
|
|
14780
14780
|
};
|
|
14781
|
-
const l =
|
|
14781
|
+
const l = wr(0);
|
|
14782
14782
|
function c() {
|
|
14783
14783
|
l.x = Qc(i);
|
|
14784
14784
|
}
|
|
@@ -14788,7 +14788,7 @@ function H7(n, e, t) {
|
|
|
14788
14788
|
l.x = b.x + e.clientLeft, l.y = b.y + e.clientTop;
|
|
14789
14789
|
} else i && c();
|
|
14790
14790
|
o && !r && i && c();
|
|
14791
|
-
const u = i && !r && !o ? g2(i, a) :
|
|
14791
|
+
const u = i && !r && !o ? g2(i, a) : wr(0), d = s.left + a.scrollLeft - l.x - u.x, m = s.top + a.scrollTop - l.y - u.y;
|
|
14792
14792
|
return {
|
|
14793
14793
|
x: d,
|
|
14794
14794
|
y: m,
|
|
@@ -14797,10 +14797,10 @@ function H7(n, e, t) {
|
|
|
14797
14797
|
};
|
|
14798
14798
|
}
|
|
14799
14799
|
function p0(n) {
|
|
14800
|
-
return
|
|
14800
|
+
return sr(n).position === "static";
|
|
14801
14801
|
}
|
|
14802
14802
|
function w1(n, e) {
|
|
14803
|
-
if (!Zr(n) ||
|
|
14803
|
+
if (!Zr(n) || sr(n).position === "fixed")
|
|
14804
14804
|
return null;
|
|
14805
14805
|
if (e)
|
|
14806
14806
|
return e(n);
|
|
@@ -14814,7 +14814,7 @@ function _2(n, e) {
|
|
|
14814
14814
|
if (!Zr(n)) {
|
|
14815
14815
|
let i = Ei(n);
|
|
14816
14816
|
for (; i && !ns(i); ) {
|
|
14817
|
-
if (
|
|
14817
|
+
if (or(i) && !p0(i))
|
|
14818
14818
|
return i;
|
|
14819
14819
|
i = Ei(i);
|
|
14820
14820
|
}
|
|
@@ -14838,7 +14838,7 @@ const U7 = async function(n) {
|
|
|
14838
14838
|
};
|
|
14839
14839
|
};
|
|
14840
14840
|
function G7(n) {
|
|
14841
|
-
return
|
|
14841
|
+
return sr(n).direction === "rtl";
|
|
14842
14842
|
}
|
|
14843
14843
|
const V7 = {
|
|
14844
14844
|
convertOffsetParentRelativeRectToViewportRelativeRect: I7,
|
|
@@ -14849,7 +14849,7 @@ const V7 = {
|
|
|
14849
14849
|
getClientRects: O7,
|
|
14850
14850
|
getDimensions: q7,
|
|
14851
14851
|
getScale: jo,
|
|
14852
|
-
isElement:
|
|
14852
|
+
isElement: or,
|
|
14853
14853
|
isRTL: G7
|
|
14854
14854
|
}, y2 = S7, v2 = b7, w2 = C7, x2 = _7, k2 = E7, S2 = y7, C2 = m7, E2 = w7, T2 = (n, e, t) => {
|
|
14855
14855
|
const r = /* @__PURE__ */ new Map(), i = {
|
|
@@ -15062,7 +15062,7 @@ function Q7(n) {
|
|
|
15062
15062
|
}
|
|
15063
15063
|
return null;
|
|
15064
15064
|
}
|
|
15065
|
-
function
|
|
15065
|
+
function lr(n) {
|
|
15066
15066
|
const e = n.selection.$head;
|
|
15067
15067
|
for (let t = e.depth; t > 0; t--) if (e.node(t).type.spec.tableRole == "row") return !0;
|
|
15068
15068
|
return !1;
|
|
@@ -15168,10 +15168,10 @@ var Ct = class Fr extends Ue {
|
|
|
15168
15168
|
}
|
|
15169
15169
|
c.push(f);
|
|
15170
15170
|
}
|
|
15171
|
-
s.push(e.child(l).copy(
|
|
15171
|
+
s.push(e.child(l).copy(le.from(c)));
|
|
15172
15172
|
}
|
|
15173
15173
|
const a = this.isColSelection() && this.isRowSelection() ? e : s;
|
|
15174
|
-
return new xe(
|
|
15174
|
+
return new xe(le.from(a), 1, 1);
|
|
15175
15175
|
}
|
|
15176
15176
|
replace(e, t = xe.empty) {
|
|
15177
15177
|
const r = e.steps.length, i = this.ranges;
|
|
@@ -15183,7 +15183,7 @@ var Ct = class Fr extends Ue {
|
|
|
15183
15183
|
o && e.setSelection(o);
|
|
15184
15184
|
}
|
|
15185
15185
|
replaceWith(e, t) {
|
|
15186
|
-
this.replace(e, new xe(
|
|
15186
|
+
this.replace(e, new xe(le.from(t), 0, 0));
|
|
15187
15187
|
}
|
|
15188
15188
|
forEachCell(e) {
|
|
15189
15189
|
const t = this.$anchorCell.node(-1), r = Vt.get(t), i = this.$anchorCell.start(-1), o = r.cellsInRect(r.rectBetween(this.$anchorCell.pos - i, this.$headCell.pos - i));
|
|
@@ -15387,7 +15387,7 @@ function I2(n, { map: e, tableStart: t, table: r }, i) {
|
|
|
15387
15387
|
return n;
|
|
15388
15388
|
}
|
|
15389
15389
|
function sC(n, e) {
|
|
15390
|
-
if (!
|
|
15390
|
+
if (!lr(n)) return !1;
|
|
15391
15391
|
if (e) {
|
|
15392
15392
|
const t = Er(n);
|
|
15393
15393
|
e(I2(n.tr, t, t.left));
|
|
@@ -15395,7 +15395,7 @@ function sC(n, e) {
|
|
|
15395
15395
|
return !0;
|
|
15396
15396
|
}
|
|
15397
15397
|
function aC(n, e) {
|
|
15398
|
-
if (!
|
|
15398
|
+
if (!lr(n)) return !1;
|
|
15399
15399
|
if (e) {
|
|
15400
15400
|
const t = Er(n);
|
|
15401
15401
|
e(I2(n.tr, t, t.right));
|
|
@@ -15415,7 +15415,7 @@ function lC(n, { map: e, table: t, tableStart: r }, i) {
|
|
|
15415
15415
|
}
|
|
15416
15416
|
}
|
|
15417
15417
|
function cC(n, e) {
|
|
15418
|
-
if (!
|
|
15418
|
+
if (!lr(n)) return !1;
|
|
15419
15419
|
if (e) {
|
|
15420
15420
|
const t = Er(n), r = n.tr;
|
|
15421
15421
|
if (t.left == 0 && t.right == t.map.width) return !1;
|
|
@@ -15454,7 +15454,7 @@ function O2(n, { map: e, tableStart: t, table: r }, i) {
|
|
|
15454
15454
|
return n.insert(o, bn(r.type.schema).row.create(null, s)), n;
|
|
15455
15455
|
}
|
|
15456
15456
|
function dC(n, e) {
|
|
15457
|
-
if (!
|
|
15457
|
+
if (!lr(n)) return !1;
|
|
15458
15458
|
if (e) {
|
|
15459
15459
|
const t = Er(n);
|
|
15460
15460
|
e(O2(n.tr, t, t.top));
|
|
@@ -15462,7 +15462,7 @@ function dC(n, e) {
|
|
|
15462
15462
|
return !0;
|
|
15463
15463
|
}
|
|
15464
15464
|
function hC(n, e) {
|
|
15465
|
-
if (!
|
|
15465
|
+
if (!lr(n)) return !1;
|
|
15466
15466
|
if (e) {
|
|
15467
15467
|
const t = Er(n);
|
|
15468
15468
|
e(O2(n.tr, t, t.bottom));
|
|
@@ -15495,7 +15495,7 @@ function fC(n, { map: e, table: t, tableStart: r }, i) {
|
|
|
15495
15495
|
}
|
|
15496
15496
|
}
|
|
15497
15497
|
function pC(n, e) {
|
|
15498
|
-
if (!
|
|
15498
|
+
if (!lr(n)) return !1;
|
|
15499
15499
|
if (e) {
|
|
15500
15500
|
const t = Er(n), r = n.tr;
|
|
15501
15501
|
if (t.top == 0 && t.bottom == t.map.height) return !1;
|
|
@@ -15531,7 +15531,7 @@ function k1(n, e) {
|
|
|
15531
15531
|
if (mC(i, r)) return !1;
|
|
15532
15532
|
if (e) {
|
|
15533
15533
|
const o = n.tr, s = {};
|
|
15534
|
-
let a =
|
|
15534
|
+
let a = le.empty, l, c;
|
|
15535
15535
|
for (let u = r.top; u < r.bottom; u++) for (let d = r.left; d < r.right; d++) {
|
|
15536
15536
|
const m = i.map[u * i.width + d], b = r.table.nodeAt(m);
|
|
15537
15537
|
if (!(s[m] || !b))
|
|
@@ -15609,7 +15609,7 @@ function gC(n) {
|
|
|
15609
15609
|
}
|
|
15610
15610
|
function bC(n, e) {
|
|
15611
15611
|
return function(t, r) {
|
|
15612
|
-
if (!
|
|
15612
|
+
if (!lr(t)) return !1;
|
|
15613
15613
|
const i = Yc(t);
|
|
15614
15614
|
if (i.nodeAfter.attrs[n] === e) return !1;
|
|
15615
15615
|
if (r) {
|
|
@@ -15629,7 +15629,7 @@ function bC(n, e) {
|
|
|
15629
15629
|
}
|
|
15630
15630
|
function _C(n) {
|
|
15631
15631
|
return function(e, t) {
|
|
15632
|
-
if (!
|
|
15632
|
+
if (!lr(e)) return !1;
|
|
15633
15633
|
if (t) {
|
|
15634
15634
|
const r = bn(e.schema), i = Er(e), o = e.tr, s = i.map.cellsInRect(n == "column" ? {
|
|
15635
15635
|
left: i.left,
|
|
@@ -15664,7 +15664,7 @@ function C1(n, e, t) {
|
|
|
15664
15664
|
}
|
|
15665
15665
|
function aa(n, e) {
|
|
15666
15666
|
return e = e || { useDeprecatedLogic: !1 }, e.useDeprecatedLogic ? _C(n) : function(t, r) {
|
|
15667
|
-
if (!
|
|
15667
|
+
if (!lr(t)) return !1;
|
|
15668
15668
|
if (r) {
|
|
15669
15669
|
const i = bn(t.schema), o = Er(t), s = t.tr, a = C1("row", o, i), l = C1("column", o, i), c = (n === "column" ? a : n === "row" && l) ? 1 : 0, u = n == "column" ? {
|
|
15670
15670
|
left: 0,
|
|
@@ -15710,7 +15710,7 @@ function vC(n, e) {
|
|
|
15710
15710
|
}
|
|
15711
15711
|
function E1(n) {
|
|
15712
15712
|
return function(e, t) {
|
|
15713
|
-
if (!
|
|
15713
|
+
if (!lr(e)) return !1;
|
|
15714
15714
|
const r = vC(Yc(e), n);
|
|
15715
15715
|
if (r == null) return !1;
|
|
15716
15716
|
if (t) {
|
|
@@ -15764,10 +15764,10 @@ function kC(n, e) {
|
|
|
15764
15764
|
let r = 0;
|
|
15765
15765
|
for (let i = 0; i < t.length; i++) r = Math.max(r, t[i]);
|
|
15766
15766
|
for (let i = 0; i < t.length; i++)
|
|
15767
|
-
if (i >= e.length && e.push(
|
|
15767
|
+
if (i >= e.length && e.push(le.empty), t[i] < r) {
|
|
15768
15768
|
const o = bn(n).cell.createAndFill(), s = [];
|
|
15769
15769
|
for (let a = t[i]; a < r; a++) s.push(o);
|
|
15770
|
-
e[i] = e[i].append(
|
|
15770
|
+
e[i] = e[i].append(le.from(s));
|
|
15771
15771
|
}
|
|
15772
15772
|
return {
|
|
15773
15773
|
height: e.length,
|
|
@@ -15789,7 +15789,7 @@ function SC({ width: n, height: e, rows: t }, r, i) {
|
|
|
15789
15789
|
u + m.attrs.colspan > r && (m = m.type.createChecked(lo(m.attrs, m.attrs.colspan, u + m.attrs.colspan - r), m.content)), c.push(m), u += m.attrs.colspan;
|
|
15790
15790
|
for (let b = 1; b < m.attrs.rowspan; b++) o[a + b] = (o[a + b] || 0) + m.attrs.colspan;
|
|
15791
15791
|
}
|
|
15792
|
-
s.push(
|
|
15792
|
+
s.push(le.from(c));
|
|
15793
15793
|
}
|
|
15794
15794
|
t = s, n = r;
|
|
15795
15795
|
}
|
|
@@ -15804,7 +15804,7 @@ function SC({ width: n, height: e, rows: t }, r, i) {
|
|
|
15804
15804
|
rowspan: Math.max(1, i - d.attrs.rowspan)
|
|
15805
15805
|
}, d.content)), l.push(d);
|
|
15806
15806
|
}
|
|
15807
|
-
o.push(
|
|
15807
|
+
o.push(le.from(l));
|
|
15808
15808
|
}
|
|
15809
15809
|
t = o, e = i;
|
|
15810
15810
|
}
|
|
@@ -15832,7 +15832,7 @@ function CC(n, e, t, r, i, o, s) {
|
|
|
15832
15832
|
const v = f >= e.width ? !1 : t.nodeAt(e.map[y + f]).type == l.header_cell;
|
|
15833
15833
|
d.push(v ? u || (u = l.header_cell.createAndFill()) : c || (c = l.cell.createAndFill()));
|
|
15834
15834
|
}
|
|
15835
|
-
const m = l.row.create(null,
|
|
15835
|
+
const m = l.row.create(null, le.from(d)), b = [];
|
|
15836
15836
|
for (let f = e.height; f < o; f++) b.push(m);
|
|
15837
15837
|
n.insert(n.mapping.slice(s).map(r + t.nodeSize - 2), b);
|
|
15838
15838
|
}
|
|
@@ -15940,14 +15940,14 @@ function TC(n, e) {
|
|
|
15940
15940
|
return r ? (n.dispatch(n.state.tr.setSelection(new Ct(r))), !0) : !1;
|
|
15941
15941
|
}
|
|
15942
15942
|
function AC(n, e, t) {
|
|
15943
|
-
if (!
|
|
15943
|
+
if (!lr(n.state)) return !1;
|
|
15944
15944
|
let r = xC(t);
|
|
15945
15945
|
const i = n.state.selection;
|
|
15946
15946
|
if (i instanceof Ct) {
|
|
15947
15947
|
r || (r = {
|
|
15948
15948
|
width: 1,
|
|
15949
15949
|
height: 1,
|
|
15950
|
-
rows: [
|
|
15950
|
+
rows: [le.from(ff(bn(n.state.schema).cell, t))]
|
|
15951
15951
|
});
|
|
15952
15952
|
const o = i.$anchorCell.node(-1), s = i.$anchorCell.start(-1), a = Vt.get(o).rectBetween(i.$anchorCell.pos - s, i.$headCell.pos - s);
|
|
15953
15953
|
return r = SC(r, a.right - a.left, a.bottom - a.top), M1(n.state, n.dispatch, s, a, r), !0;
|
|
@@ -16783,7 +16783,7 @@ ${t}
|
|
|
16783
16783
|
})
|
|
16784
16784
|
];
|
|
16785
16785
|
}
|
|
16786
|
-
}), QC = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, YC = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, ZC = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, XC = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, JC =
|
|
16786
|
+
}), QC = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, YC = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, ZC = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, XC = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, JC = ar.create({
|
|
16787
16787
|
name: "bold",
|
|
16788
16788
|
addOptions() {
|
|
16789
16789
|
return {
|
|
@@ -16858,7 +16858,7 @@ ${t}
|
|
|
16858
16858
|
})
|
|
16859
16859
|
];
|
|
16860
16860
|
}
|
|
16861
|
-
}), e9 = /(^|[^`])`([^`]+)`(?!`)$/, t9 = /(^|[^`])`([^`]+)`(?!`)/g, n9 =
|
|
16861
|
+
}), e9 = /(^|[^`])`([^`]+)`(?!`)$/, t9 = /(^|[^`])`([^`]+)`(?!`)/g, n9 = ar.create({
|
|
16862
16862
|
name: "code",
|
|
16863
16863
|
addOptions() {
|
|
16864
16864
|
return {
|
|
@@ -17283,7 +17283,7 @@ ${t}
|
|
|
17283
17283
|
})
|
|
17284
17284
|
];
|
|
17285
17285
|
}
|
|
17286
|
-
}), c9 = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, u9 = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, d9 = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, h9 = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, f9 =
|
|
17286
|
+
}), c9 = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, u9 = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, d9 = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, h9 = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, f9 = ar.create({
|
|
17287
17287
|
name: "italic",
|
|
17288
17288
|
addOptions() {
|
|
17289
17289
|
return {
|
|
@@ -17499,7 +17499,7 @@ Cn.prototype = {
|
|
|
17499
17499
|
return i.j[n] = s, s;
|
|
17500
17500
|
}
|
|
17501
17501
|
};
|
|
17502
|
-
const Ke = (n, e, t, r, i) => n.ta(e, t, r, i), Ht = (n, e, t, r, i) => n.tr(e, t, r, i), O1 = (n, e, t, r, i) => n.ts(e, t, r, i), pe = (n, e, t, r, i) => n.tt(e, t, r, i), zr = "WORD", yf = "UWORD", q2 = "ASCIINUMERICAL", H2 = "ALPHANUMERICAL", la = "LOCALHOST", vf = "TLD", wf = "UTLD", xl = "SCHEME", Ho = "SLASH_SCHEME", vp = "NUM", xf = "WS", wp = "NL", Vs = "OPENBRACE", $s = "CLOSEBRACE", Wl = "OPENBRACKET", Kl = "CLOSEBRACKET", jl = "OPENPAREN", Ql = "CLOSEPAREN", Yl = "OPENANGLEBRACKET", Zl = "CLOSEANGLEBRACKET", Xl = "FULLWIDTHLEFTPAREN", Jl = "FULLWIDTHRIGHTPAREN", ec = "LEFTCORNERBRACKET", tc = "RIGHTCORNERBRACKET", nc = "LEFTWHITECORNERBRACKET", rc = "RIGHTWHITECORNERBRACKET", ic = "FULLWIDTHLESSTHAN", oc = "FULLWIDTHGREATERTHAN", sc = "AMPERSAND", ac = "APOSTROPHE", lc = "ASTERISK", ci = "AT", cc = "BACKSLASH", uc = "BACKTICK", dc = "CARET", Ki = "COLON", xp = "COMMA", hc = "DOLLAR",
|
|
17502
|
+
const Ke = (n, e, t, r, i) => n.ta(e, t, r, i), Ht = (n, e, t, r, i) => n.tr(e, t, r, i), O1 = (n, e, t, r, i) => n.ts(e, t, r, i), pe = (n, e, t, r, i) => n.tt(e, t, r, i), zr = "WORD", yf = "UWORD", q2 = "ASCIINUMERICAL", H2 = "ALPHANUMERICAL", la = "LOCALHOST", vf = "TLD", wf = "UTLD", xl = "SCHEME", Ho = "SLASH_SCHEME", vp = "NUM", xf = "WS", wp = "NL", Vs = "OPENBRACE", $s = "CLOSEBRACE", Wl = "OPENBRACKET", Kl = "CLOSEBRACKET", jl = "OPENPAREN", Ql = "CLOSEPAREN", Yl = "OPENANGLEBRACKET", Zl = "CLOSEANGLEBRACKET", Xl = "FULLWIDTHLEFTPAREN", Jl = "FULLWIDTHRIGHTPAREN", ec = "LEFTCORNERBRACKET", tc = "RIGHTCORNERBRACKET", nc = "LEFTWHITECORNERBRACKET", rc = "RIGHTWHITECORNERBRACKET", ic = "FULLWIDTHLESSTHAN", oc = "FULLWIDTHGREATERTHAN", sc = "AMPERSAND", ac = "APOSTROPHE", lc = "ASTERISK", ci = "AT", cc = "BACKSLASH", uc = "BACKTICK", dc = "CARET", Ki = "COLON", xp = "COMMA", hc = "DOLLAR", br = "DOT", fc = "EQUALS", kp = "EXCLAMATION", Gn = "HYPHEN", Ws = "PERCENT", pc = "PIPE", mc = "PLUS", gc = "POUND", Ks = "QUERY", Sp = "QUOTE", U2 = "FULLWIDTHMIDDLEDOT", Cp = "SEMI", _r = "SLASH", js = "TILDE", bc = "UNDERSCORE", G2 = "EMOJI", _c = "SYM";
|
|
17503
17503
|
var V2 = /* @__PURE__ */ Object.freeze({
|
|
17504
17504
|
__proto__: null,
|
|
17505
17505
|
ALPHANUMERICAL: H2,
|
|
@@ -17518,7 +17518,7 @@ var V2 = /* @__PURE__ */ Object.freeze({
|
|
|
17518
17518
|
COLON: Ki,
|
|
17519
17519
|
COMMA: xp,
|
|
17520
17520
|
DOLLAR: hc,
|
|
17521
|
-
DOT:
|
|
17521
|
+
DOT: br,
|
|
17522
17522
|
EMOJI: G2,
|
|
17523
17523
|
EQUALS: fc,
|
|
17524
17524
|
EXCLAMATION: kp,
|
|
@@ -17547,7 +17547,7 @@ var V2 = /* @__PURE__ */ Object.freeze({
|
|
|
17547
17547
|
RIGHTWHITECORNERBRACKET: rc,
|
|
17548
17548
|
SCHEME: xl,
|
|
17549
17549
|
SEMI: Cp,
|
|
17550
|
-
SLASH:
|
|
17550
|
+
SLASH: _r,
|
|
17551
17551
|
SLASH_SCHEME: Ho,
|
|
17552
17552
|
SYM: _c,
|
|
17553
17553
|
TILDE: js,
|
|
@@ -17565,7 +17565,7 @@ function x9(n = []) {
|
|
|
17565
17565
|
const e = {};
|
|
17566
17566
|
Cn.groups = e;
|
|
17567
17567
|
const t = new Cn();
|
|
17568
|
-
Ja == null && (Ja = P1(p9)), el == null && (el = P1(m9)), pe(t, "'", ac), pe(t, "{", Vs), pe(t, "}", $s), pe(t, "[", Wl), pe(t, "]", Kl), pe(t, "(", jl), pe(t, ")", Ql), pe(t, "<", Yl), pe(t, ">", Zl), pe(t, "(", Xl), pe(t, ")", Jl), pe(t, "「", ec), pe(t, "」", tc), pe(t, "『", nc), pe(t, "』", rc), pe(t, "<", ic), pe(t, ">", oc), pe(t, "&", sc), pe(t, "*", lc), pe(t, "@", ci), pe(t, "`", uc), pe(t, "^", dc), pe(t, ":", Ki), pe(t, ",", xp), pe(t, "$", hc), pe(t, ".",
|
|
17568
|
+
Ja == null && (Ja = P1(p9)), el == null && (el = P1(m9)), pe(t, "'", ac), pe(t, "{", Vs), pe(t, "}", $s), pe(t, "[", Wl), pe(t, "]", Kl), pe(t, "(", jl), pe(t, ")", Ql), pe(t, "<", Yl), pe(t, ">", Zl), pe(t, "(", Xl), pe(t, ")", Jl), pe(t, "「", ec), pe(t, "」", tc), pe(t, "『", nc), pe(t, "』", rc), pe(t, "<", ic), pe(t, ">", oc), pe(t, "&", sc), pe(t, "*", lc), pe(t, "@", ci), pe(t, "`", uc), pe(t, "^", dc), pe(t, ":", Ki), pe(t, ",", xp), pe(t, "$", hc), pe(t, ".", br), pe(t, "=", fc), pe(t, "!", kp), pe(t, "-", Gn), pe(t, "%", Ws), pe(t, "|", pc), pe(t, "+", mc), pe(t, "#", gc), pe(t, "?", Ks), pe(t, '"', Sp), pe(t, "/", _r), pe(t, ";", Cp), pe(t, "~", js), pe(t, "_", bc), pe(t, "\\", cc), pe(t, "・", U2);
|
|
17569
17569
|
const r = Ht(t, Pr, vp, {
|
|
17570
17570
|
[mf]: !0
|
|
17571
17571
|
});
|
|
@@ -17921,32 +17921,32 @@ const S9 = Zc("email", {
|
|
|
17921
17921
|
function E9({
|
|
17922
17922
|
groups: n
|
|
17923
17923
|
}) {
|
|
17924
|
-
const e = n.domain.concat([sc, lc, ci, cc, uc, dc, hc, fc, Gn, vp, Ws, pc, mc, gc,
|
|
17924
|
+
const e = n.domain.concat([sc, lc, ci, cc, uc, dc, hc, fc, Gn, vp, Ws, pc, mc, gc, _r, _c, js, bc]), t = [ac, Ki, xp, br, kp, Ws, Ks, Sp, Cp, Yl, Zl, Vs, $s, Kl, Wl, jl, Ql, Xl, Jl, ec, tc, nc, rc, ic, oc], r = [sc, ac, lc, cc, uc, dc, hc, fc, Gn, Vs, $s, Ws, pc, mc, gc, Ks, _r, _c, js, bc], i = Un(), o = pe(i, js);
|
|
17925
17925
|
Ke(o, r, o), Ke(o, n.domain, o);
|
|
17926
17926
|
const s = Un(), a = Un(), l = Un();
|
|
17927
17927
|
Ke(i, n.domain, s), Ke(i, n.scheme, a), Ke(i, n.slashscheme, l), Ke(s, r, o), Ke(s, n.domain, s);
|
|
17928
17928
|
const c = pe(s, ci);
|
|
17929
17929
|
pe(o, ci, c), pe(a, ci, c), pe(l, ci, c);
|
|
17930
|
-
const u = pe(o,
|
|
17930
|
+
const u = pe(o, br);
|
|
17931
17931
|
Ke(u, r, o), Ke(u, n.domain, o);
|
|
17932
17932
|
const d = Un();
|
|
17933
17933
|
Ke(c, n.domain, d), Ke(d, n.domain, d);
|
|
17934
|
-
const m = pe(d,
|
|
17934
|
+
const m = pe(d, br);
|
|
17935
17935
|
Ke(m, n.domain, d);
|
|
17936
17936
|
const b = Un(S9);
|
|
17937
17937
|
Ke(m, n.tld, b), Ke(m, n.utld, b), pe(c, la, b);
|
|
17938
17938
|
const f = pe(d, Gn);
|
|
17939
|
-
pe(f, Gn, f), Ke(f, n.domain, d), Ke(b, n.domain, d), pe(b,
|
|
17940
|
-
const y = pe(s, Gn), v = pe(s,
|
|
17939
|
+
pe(f, Gn, f), Ke(f, n.domain, d), Ke(b, n.domain, d), pe(b, br, m), pe(b, Gn, f);
|
|
17940
|
+
const y = pe(s, Gn), v = pe(s, br);
|
|
17941
17941
|
pe(y, Gn, y), Ke(y, n.domain, s), Ke(v, r, o), Ke(v, n.domain, s);
|
|
17942
17942
|
const x = Un(tl);
|
|
17943
|
-
Ke(v, n.tld, x), Ke(v, n.utld, x), Ke(x, n.domain, s), Ke(x, r, o), pe(x,
|
|
17943
|
+
Ke(v, n.tld, x), Ke(v, n.utld, x), Ke(x, n.domain, s), Ke(x, r, o), pe(x, br, v), pe(x, Gn, y), pe(x, ci, c);
|
|
17944
17944
|
const C = pe(x, Ki), k = Un(tl);
|
|
17945
17945
|
Ke(C, n.numeric, k);
|
|
17946
17946
|
const D = Un(tl), N = Un();
|
|
17947
|
-
Ke(D, e, D), Ke(D, t, N), Ke(N, e, D), Ke(N, t, N), pe(x,
|
|
17948
|
-
const O = pe(a, Ki), z = pe(l, Ki), q = pe(z,
|
|
17949
|
-
Ke(a, n.domain, s), pe(a,
|
|
17947
|
+
Ke(D, e, D), Ke(D, t, N), Ke(N, e, D), Ke(N, t, N), pe(x, _r, D), pe(k, _r, D);
|
|
17948
|
+
const O = pe(a, Ki), z = pe(l, Ki), q = pe(z, _r), U = pe(q, _r);
|
|
17949
|
+
Ke(a, n.domain, s), pe(a, br, v), pe(a, Gn, y), Ke(l, n.domain, s), pe(l, br, v), pe(l, Gn, y), Ke(O, n.domain, D), pe(O, _r, D), pe(O, Ks, D), Ke(U, n.domain, D), Ke(U, e, D), pe(U, _r, D);
|
|
17950
17950
|
const B = [
|
|
17951
17951
|
[Vs, $s],
|
|
17952
17952
|
// {}
|
|
@@ -18173,7 +18173,7 @@ function Fi(n, e) {
|
|
|
18173
18173
|
)
|
|
18174
18174
|
);
|
|
18175
18175
|
}
|
|
18176
|
-
var j2 =
|
|
18176
|
+
var j2 = ar.create({
|
|
18177
18177
|
name: "link",
|
|
18178
18178
|
priority: 1e3,
|
|
18179
18179
|
keepOnSplit: !1,
|
|
@@ -19172,7 +19172,7 @@ var nl = " ", k0 = " ", nE = Rt.create({
|
|
|
19172
19172
|
"Mod-Alt-0": () => this.editor.commands.setParagraph()
|
|
19173
19173
|
};
|
|
19174
19174
|
}
|
|
19175
|
-
}), rE = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, iE = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, oE =
|
|
19175
|
+
}), rE = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, iE = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, oE = ar.create({
|
|
19176
19176
|
name: "strike",
|
|
19177
19177
|
addOptions() {
|
|
19178
19178
|
return {
|
|
@@ -19239,7 +19239,7 @@ var nl = " ", k0 = " ", nE = Rt.create({
|
|
|
19239
19239
|
text: n.text || ""
|
|
19240
19240
|
}),
|
|
19241
19241
|
renderMarkdown: (n) => n.text || ""
|
|
19242
|
-
}), o3 =
|
|
19242
|
+
}), o3 = ar.create({
|
|
19243
19243
|
name: "underline",
|
|
19244
19244
|
addOptions() {
|
|
19245
19245
|
return {
|
|
@@ -19562,9 +19562,9 @@ function mE(n, e) {
|
|
|
19562
19562
|
let { $from: t } = n.state.selection, r = t.parent.contentMatchAt(t.index()).findWrapping(n.state.schema.nodes.text);
|
|
19563
19563
|
if (!r)
|
|
19564
19564
|
return !1;
|
|
19565
|
-
let i =
|
|
19565
|
+
let i = le.empty;
|
|
19566
19566
|
for (let s = r.length - 1; s >= 0; s--)
|
|
19567
|
-
i =
|
|
19567
|
+
i = le.from(r[s].createAndFill(null, i));
|
|
19568
19568
|
let o = n.state.tr.replace(t.pos, t.pos, new xe(i, 0, 0));
|
|
19569
19569
|
return o.setSelection(De.near(o.doc.resolve(t.pos + 1))), n.dispatch(o), !1;
|
|
19570
19570
|
}
|
|
@@ -19696,9 +19696,9 @@ class er {
|
|
|
19696
19696
|
return;
|
|
19697
19697
|
}
|
|
19698
19698
|
if (i) {
|
|
19699
|
-
u.push(new
|
|
19699
|
+
u.push(new yr(d.map));
|
|
19700
19700
|
let b = d.step.map(i.slice(o)), f;
|
|
19701
|
-
b && s.maybeStep(b).doc && (f = s.mapping.maps[s.mapping.maps.length - 1], c.push(new
|
|
19701
|
+
b && s.maybeStep(b).doc && (f = s.mapping.maps[s.mapping.maps.length - 1], c.push(new yr(f, void 0, void 0, c.length + u.length))), o--, f && i.appendMap(f, o);
|
|
19702
19702
|
} else
|
|
19703
19703
|
s.maybeStep(d.step);
|
|
19704
19704
|
if (d.selection)
|
|
@@ -19709,7 +19709,7 @@ class er {
|
|
|
19709
19709
|
addTransform(e, t, r, i) {
|
|
19710
19710
|
let o = [], s = this.eventCount, a = this.items, l = !i && a.length ? a.get(a.length - 1) : null;
|
|
19711
19711
|
for (let u = 0; u < e.steps.length; u++) {
|
|
19712
|
-
let d = e.steps[u].invert(e.docs[u]), m = new
|
|
19712
|
+
let d = e.steps[u].invert(e.docs[u]), m = new yr(e.mapping.maps[u], d, t), b;
|
|
19713
19713
|
(b = l && l.merge(m)) && (m = b, u ? o.pop() : a = a.slice(0, a.length - 1)), o.push(m), t && (s++, t = void 0), i || (l = m);
|
|
19714
19714
|
}
|
|
19715
19715
|
let c = s - r.depth;
|
|
@@ -19723,7 +19723,7 @@ class er {
|
|
|
19723
19723
|
}, e, t), r;
|
|
19724
19724
|
}
|
|
19725
19725
|
addMaps(e) {
|
|
19726
|
-
return this.eventCount == 0 ? this : new er(this.items.append(e.map((t) => new
|
|
19726
|
+
return this.eventCount == 0 ? this : new er(this.items.append(e.map((t) => new yr(t))), this.eventCount);
|
|
19727
19727
|
}
|
|
19728
19728
|
// When the collab module receives remote changes, the history has
|
|
19729
19729
|
// to know about those, so that it can adjust the steps that were
|
|
@@ -19745,13 +19745,13 @@ class er {
|
|
|
19745
19745
|
let f = o.maps[b];
|
|
19746
19746
|
if (m.step) {
|
|
19747
19747
|
let y = e.steps[b].invert(e.docs[b]), v = m.selection && m.selection.map(o.slice(l + 1, b));
|
|
19748
|
-
v && a++, r.push(new
|
|
19748
|
+
v && a++, r.push(new yr(f, y, v));
|
|
19749
19749
|
} else
|
|
19750
|
-
r.push(new
|
|
19750
|
+
r.push(new yr(f));
|
|
19751
19751
|
}, i);
|
|
19752
19752
|
let c = [];
|
|
19753
19753
|
for (let m = t; m < s; m++)
|
|
19754
|
-
c.push(new
|
|
19754
|
+
c.push(new yr(o.maps[m]));
|
|
19755
19755
|
let u = this.items.slice(0, i).append(c).append(r), d = new er(u, a);
|
|
19756
19756
|
return d.emptyItemCount() > _E && (d = d.compress(this.items.length - r.length)), d;
|
|
19757
19757
|
}
|
|
@@ -19777,7 +19777,7 @@ class er {
|
|
|
19777
19777
|
if (r--, c && t.appendMap(c, r), l) {
|
|
19778
19778
|
let u = s.selection && s.selection.map(t.slice(r));
|
|
19779
19779
|
u && o++;
|
|
19780
|
-
let d = new
|
|
19780
|
+
let d = new yr(c.invert(), l, u), m, b = i.length - 1;
|
|
19781
19781
|
(m = i.length && i[b].merge(d)) ? i[b] = m : i.push(d);
|
|
19782
19782
|
}
|
|
19783
19783
|
} else s.map && r--;
|
|
@@ -19792,7 +19792,7 @@ function yE(n, e) {
|
|
|
19792
19792
|
return t = i, !1;
|
|
19793
19793
|
}), n.slice(t);
|
|
19794
19794
|
}
|
|
19795
|
-
class
|
|
19795
|
+
class yr {
|
|
19796
19796
|
constructor(e, t, r, i) {
|
|
19797
19797
|
this.map = e, this.step = t, this.selection = r, this.mirrorOffset = i;
|
|
19798
19798
|
}
|
|
@@ -19800,7 +19800,7 @@ class _r {
|
|
|
19800
19800
|
if (this.step && e.step && !e.selection) {
|
|
19801
19801
|
let t = e.step.merge(this.step);
|
|
19802
19802
|
if (t)
|
|
19803
|
-
return new
|
|
19803
|
+
return new yr(t.getMap().invert(), t, this.selection);
|
|
19804
19804
|
}
|
|
19805
19805
|
}
|
|
19806
19806
|
}
|
|
@@ -20395,7 +20395,7 @@ var PE = st.create({
|
|
|
20395
20395
|
const o = t.getAttribute("style"), s = (i = (r = t.parentElement) == null ? void 0 : r.closest("span")) == null ? void 0 : i.getAttribute("style");
|
|
20396
20396
|
t.setAttribute("style", `${s};${o}`);
|
|
20397
20397
|
});
|
|
20398
|
-
}, d3 =
|
|
20398
|
+
}, d3 = ar.create({
|
|
20399
20399
|
name: "textStyle",
|
|
20400
20400
|
priority: 101,
|
|
20401
20401
|
addOptions() {
|
|
@@ -20609,7 +20609,7 @@ st.create({
|
|
|
20609
20609
|
return this.options.backgroundColor !== !1 && n.push(GE.configure(this.options.backgroundColor)), this.options.color !== !1 && n.push(h3.configure(this.options.color)), this.options.fontFamily !== !1 && n.push(VE.configure(this.options.fontFamily)), this.options.fontSize !== !1 && n.push($E.configure(this.options.fontSize)), this.options.lineHeight !== !1 && n.push(WE.configure(this.options.lineHeight)), this.options.textStyle !== !1 && n.push(d3.configure(this.options.textStyle)), n;
|
|
20610
20610
|
}
|
|
20611
20611
|
});
|
|
20612
|
-
var KE = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/, jE = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g, QE =
|
|
20612
|
+
var KE = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/, jE = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g, QE = ar.create({
|
|
20613
20613
|
name: "highlight",
|
|
20614
20614
|
addOptions() {
|
|
20615
20615
|
return {
|
|
@@ -20690,7 +20690,7 @@ var KE = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/, jE = /(?:^|\s)(==(?!\s+
|
|
|
20690
20690
|
})
|
|
20691
20691
|
];
|
|
20692
20692
|
}
|
|
20693
|
-
}), YE = QE, ZE =
|
|
20693
|
+
}), YE = QE, ZE = ar.create({
|
|
20694
20694
|
name: "subscript",
|
|
20695
20695
|
addOptions() {
|
|
20696
20696
|
return {
|
|
@@ -20725,7 +20725,7 @@ var KE = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/, jE = /(?:^|\s)(==(?!\s+
|
|
|
20725
20725
|
"Mod-,": () => this.editor.commands.toggleSubscript()
|
|
20726
20726
|
};
|
|
20727
20727
|
}
|
|
20728
|
-
}), XE = ZE, JE =
|
|
20728
|
+
}), XE = ZE, JE = ar.create({
|
|
20729
20729
|
name: "superscript",
|
|
20730
20730
|
addOptions() {
|
|
20731
20731
|
return {
|
|
@@ -21112,7 +21112,7 @@ function nT() {
|
|
|
21112
21112
|
scope: "number",
|
|
21113
21113
|
begin: Q,
|
|
21114
21114
|
relevance: 0
|
|
21115
|
-
},
|
|
21115
|
+
}, Ze = {
|
|
21116
21116
|
// this outer rule makes sure we actually have a WHOLE regex and not simply
|
|
21117
21117
|
// an expression such as:
|
|
21118
21118
|
//
|
|
@@ -21135,7 +21135,7 @@ function nT() {
|
|
|
21135
21135
|
}
|
|
21136
21136
|
]
|
|
21137
21137
|
}]
|
|
21138
|
-
},
|
|
21138
|
+
}, Xe = {
|
|
21139
21139
|
scope: "title",
|
|
21140
21140
|
begin: q,
|
|
21141
21141
|
relevance: 0
|
|
@@ -21148,7 +21148,7 @@ function nT() {
|
|
|
21148
21148
|
begin: "\\.\\s*" + U,
|
|
21149
21149
|
relevance: 0
|
|
21150
21150
|
};
|
|
21151
|
-
var
|
|
21151
|
+
var nt = /* @__PURE__ */ Object.freeze({
|
|
21152
21152
|
__proto__: null,
|
|
21153
21153
|
MATCH_NOTHING_RE: z,
|
|
21154
21154
|
IDENT_RE: q,
|
|
@@ -21169,8 +21169,8 @@ function nT() {
|
|
|
21169
21169
|
NUMBER_MODE: Te,
|
|
21170
21170
|
C_NUMBER_MODE: Ve,
|
|
21171
21171
|
BINARY_NUMBER_MODE: yt,
|
|
21172
|
-
REGEXP_MODE:
|
|
21173
|
-
TITLE_MODE:
|
|
21172
|
+
REGEXP_MODE: Ze,
|
|
21173
|
+
TITLE_MODE: Xe,
|
|
21174
21174
|
UNDERSCORE_TITLE_MODE: vt,
|
|
21175
21175
|
METHOD_GUARD: qe,
|
|
21176
21176
|
END_SAME_AS_BEGIN: function(M) {
|
|
@@ -21261,9 +21261,9 @@ function nT() {
|
|
|
21261
21261
|
}
|
|
21262
21262
|
const yn = {}, dn = (M) => {
|
|
21263
21263
|
console.error(M);
|
|
21264
|
-
},
|
|
21264
|
+
}, ur = (M, ...ee) => {
|
|
21265
21265
|
console.log(`WARN: ${M}`, ...ee);
|
|
21266
|
-
},
|
|
21266
|
+
}, dr = (M, ee) => {
|
|
21267
21267
|
yn[`${M}/${ee}`] || (console.log(`Deprecated as of ${M}. ${ee}`), yn[`${M}/${ee}`] = !0);
|
|
21268
21268
|
}, Ri = new Error();
|
|
21269
21269
|
function Ca(M, ee, { key: J }) {
|
|
@@ -21445,13 +21445,13 @@ function nT() {
|
|
|
21445
21445
|
const je = ve.languageDetectRe.exec(ze);
|
|
21446
21446
|
if (je) {
|
|
21447
21447
|
const ht = fn(je[1]);
|
|
21448
|
-
return ht || (
|
|
21448
|
+
return ht || (ur(ke.replace("{}", je[1])), ur("Falling back to no-highlight mode for this block.", ge)), ht ? je[1] : "no-highlight";
|
|
21449
21449
|
}
|
|
21450
21450
|
return ze.split(/\s+/).find((ht) => Fe(ht) || fn(ht));
|
|
21451
21451
|
}
|
|
21452
21452
|
function lt(ge, ze, je) {
|
|
21453
21453
|
let ht = "", qt = "";
|
|
21454
|
-
typeof ze == "object" ? (ht = ge, je = ze.ignoreIllegals, qt = ze.language) : (
|
|
21454
|
+
typeof ze == "object" ? (ht = ge, je = ze.ignoreIllegals, qt = ze.language) : (dr("10.7.0", "highlight(lang, code, ...args) has been deprecated."), dr("10.7.0", `Please use highlight(code, options) instead.
|
|
21455
21455
|
https://github.com/highlightjs/highlight.js/issues/2277`), qt = ge, ht = ze), je === void 0 && (je = !0);
|
|
21456
21456
|
const An = {
|
|
21457
21457
|
code: ht,
|
|
@@ -21508,7 +21508,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), qt = ge, ht = ze), je
|
|
|
21508
21508
|
function pn() {
|
|
21509
21509
|
$e.subLanguage != null ? Co() : zn(), wt = "";
|
|
21510
21510
|
}
|
|
21511
|
-
function
|
|
21511
|
+
function rt(Se, Ie) {
|
|
21512
21512
|
let W = 1;
|
|
21513
21513
|
const Pe = Ie.length - 1;
|
|
21514
21514
|
for (; W <= Pe; ) {
|
|
@@ -21521,7 +21521,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), qt = ge, ht = ze), je
|
|
|
21521
21521
|
}
|
|
21522
21522
|
}
|
|
21523
21523
|
function Oi(Se, Ie) {
|
|
21524
|
-
return Se.scope && typeof Se.scope == "string" && Kt.openNode(Ft.classNameAliases[Se.scope] || Se.scope), Se.beginScope && (Se.beginScope._wrap ? (Kt.addKeyword(wt, Ft.classNameAliases[Se.beginScope._wrap] || Se.beginScope._wrap), wt = "") : Se.beginScope._multi && (
|
|
21524
|
+
return Se.scope && typeof Se.scope == "string" && Kt.openNode(Ft.classNameAliases[Se.scope] || Se.scope), Se.beginScope && (Se.beginScope._wrap ? (Kt.addKeyword(wt, Ft.classNameAliases[Se.beginScope._wrap] || Se.beginScope._wrap), wt = "") : Se.beginScope._multi && (rt(Se.beginScope, Ie), wt = "")), $e = Object.create(Se, { parent: { value: $e } }), $e;
|
|
21525
21525
|
}
|
|
21526
21526
|
function kn(Se, Ie, W) {
|
|
21527
21527
|
let Pe = D(Se.endRe, W);
|
|
@@ -21554,7 +21554,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), qt = ge, ht = ze), je
|
|
|
21554
21554
|
if (!Pe)
|
|
21555
21555
|
return S;
|
|
21556
21556
|
const Ot = $e;
|
|
21557
|
-
$e.endScope && $e.endScope._wrap ? (pn(), Kt.addKeyword(Ie, $e.endScope._wrap)) : $e.endScope && $e.endScope._multi ? (pn(),
|
|
21557
|
+
$e.endScope && $e.endScope._wrap ? (pn(), Kt.addKeyword(Ie, $e.endScope._wrap)) : $e.endScope && $e.endScope._multi ? (pn(), rt($e.endScope, Se)) : Ot.skip ? wt += Ie : (Ot.returnEnd || Ot.excludeEnd || (wt += Ie), pn(), Ot.excludeEnd && (wt = Ie));
|
|
21558
21558
|
do
|
|
21559
21559
|
$e.scope && Kt.closeNode(), !$e.skip && !$e.subLanguage && (Ao += $e.relevance), $e = $e.parent;
|
|
21560
21560
|
while ($e !== Pe.parent);
|
|
@@ -21663,12 +21663,12 @@ https://github.com/highlightjs/highlight.js/issues/2277`), qt = ge, ht = ze), je
|
|
|
21663
21663
|
(pn) => $(pn, ge, !1)
|
|
21664
21664
|
);
|
|
21665
21665
|
ht.unshift(je);
|
|
21666
|
-
const qt = ht.sort((pn,
|
|
21667
|
-
if (pn.relevance !==
|
|
21668
|
-
if (pn.language &&
|
|
21669
|
-
if (fn(pn.language).supersetOf ===
|
|
21666
|
+
const qt = ht.sort((pn, rt) => {
|
|
21667
|
+
if (pn.relevance !== rt.relevance) return rt.relevance - pn.relevance;
|
|
21668
|
+
if (pn.language && rt.language) {
|
|
21669
|
+
if (fn(pn.language).supersetOf === rt.language)
|
|
21670
21670
|
return 1;
|
|
21671
|
-
if (fn(
|
|
21671
|
+
if (fn(rt.language).supersetOf === pn.language)
|
|
21672
21672
|
return -1;
|
|
21673
21673
|
}
|
|
21674
21674
|
return 0;
|
|
@@ -21707,10 +21707,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), qt = ge, ht = ze), je
|
|
|
21707
21707
|
ve = At(ve, ge);
|
|
21708
21708
|
}
|
|
21709
21709
|
const hs = () => {
|
|
21710
|
-
ei(),
|
|
21710
|
+
ei(), dr("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
|
|
21711
21711
|
};
|
|
21712
21712
|
function Aa() {
|
|
21713
|
-
ei(),
|
|
21713
|
+
ei(), dr("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
|
|
21714
21714
|
}
|
|
21715
21715
|
let Ii = !1;
|
|
21716
21716
|
function ei() {
|
|
@@ -21778,7 +21778,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), qt = ge, ht = ze), je
|
|
|
21778
21778
|
});
|
|
21779
21779
|
}
|
|
21780
21780
|
function Ma(ge) {
|
|
21781
|
-
return
|
|
21781
|
+
return dr("10.7.0", "highlightBlock will be removed entirely in v12.0"), dr("10.7.0", "Please use highlightElement now."), wo(ge);
|
|
21782
21782
|
}
|
|
21783
21783
|
Object.assign(M, {
|
|
21784
21784
|
highlight: lt,
|
|
@@ -21809,9 +21809,9 @@ https://github.com/highlightjs/highlight.js/issues/2277`), qt = ge, ht = ze), je
|
|
|
21809
21809
|
optional: y,
|
|
21810
21810
|
anyNumberOfTimes: f
|
|
21811
21811
|
};
|
|
21812
|
-
for (const ge in
|
|
21813
|
-
typeof
|
|
21814
|
-
return Object.assign(M,
|
|
21812
|
+
for (const ge in nt)
|
|
21813
|
+
typeof nt[ge] == "object" && n.exports(nt[ge]);
|
|
21814
|
+
return Object.assign(M, nt), M;
|
|
21815
21815
|
}({});
|
|
21816
21816
|
return E0 = I, I.HighlightJS = I, I.default = I, E0;
|
|
21817
21817
|
}
|
|
@@ -21979,7 +21979,7 @@ const on = (n, e) => {
|
|
|
21979
21979
|
},
|
|
21980
21980
|
data() {
|
|
21981
21981
|
return {
|
|
21982
|
-
|
|
21982
|
+
thisTheme: this.editor.storage.defaultStorage.theme,
|
|
21983
21983
|
status: {
|
|
21984
21984
|
copy: !1
|
|
21985
21985
|
},
|
|
@@ -21989,13 +21989,14 @@ const on = (n, e) => {
|
|
|
21989
21989
|
};
|
|
21990
21990
|
},
|
|
21991
21991
|
watch: {
|
|
21992
|
-
|
|
21993
|
-
this.
|
|
21994
|
-
language: this.selectedLanguage.key
|
|
21995
|
-
});
|
|
21992
|
+
"editor.storage.defaultStorage.theme"(n) {
|
|
21993
|
+
this.thisTheme = n;
|
|
21996
21994
|
}
|
|
21997
21995
|
},
|
|
21998
21996
|
computed: {
|
|
21997
|
+
actionButtonBackground() {
|
|
21998
|
+
return this.thisTheme === "dark" ? "rgba(36, 36, 36, 1)" : "rgba(255, 255, 255, 1)";
|
|
21999
|
+
},
|
|
21999
22000
|
languages() {
|
|
22000
22001
|
let n = this.extension.options.lowlight.listLanguages(), e = [];
|
|
22001
22002
|
for (let t = 0; t < n.length; t++)
|
|
@@ -22004,14 +22005,25 @@ const on = (n, e) => {
|
|
|
22004
22005
|
text: n[t][0].toUpperCase() + n[t].slice(1).toLowerCase()
|
|
22005
22006
|
});
|
|
22006
22007
|
return e.unshift({
|
|
22007
|
-
key: "",
|
|
22008
|
+
key: "auto",
|
|
22008
22009
|
text: "Default"
|
|
22009
22010
|
}), e;
|
|
22011
|
+
},
|
|
22012
|
+
selectedLanguage: {
|
|
22013
|
+
get() {
|
|
22014
|
+
let n = this.languages.find(
|
|
22015
|
+
(e) => e.key === this.node.attrs.language
|
|
22016
|
+
);
|
|
22017
|
+
return n ? [n] : [this.languages[0]];
|
|
22018
|
+
},
|
|
22019
|
+
set(n) {
|
|
22020
|
+
n.length !== 0 && this.updateAttributes({
|
|
22021
|
+
language: n[0].key
|
|
22022
|
+
});
|
|
22023
|
+
}
|
|
22010
22024
|
}
|
|
22011
22025
|
},
|
|
22012
22026
|
mounted() {
|
|
22013
|
-
let n = this.languages.find((e) => e.key === this.node.attrs.language);
|
|
22014
|
-
n ? this.selectedLanguage = n : this.selectedLanguage = this.languages[0];
|
|
22015
22027
|
},
|
|
22016
22028
|
methods: {
|
|
22017
22029
|
copyCode() {
|
|
@@ -22033,46 +22045,73 @@ const on = (n, e) => {
|
|
|
22033
22045
|
class: "power-editor-code-block-line-number-block"
|
|
22034
22046
|
}, mT = ["title"];
|
|
22035
22047
|
function gT(n, e, t, r, i, o) {
|
|
22036
|
-
const s = Me("fv-
|
|
22037
|
-
return He(), rn(c, {
|
|
22048
|
+
const s = Me("fv-button"), a = Me("fv-DropDown"), l = Me("node-view-content"), c = Me("node-view-wrapper");
|
|
22049
|
+
return He(), rn(c, {
|
|
22050
|
+
class: tt(["power-editor-code-block", [{ dark: i.thisTheme === "dark" }]])
|
|
22051
|
+
}, {
|
|
22038
22052
|
default: ie(() => [
|
|
22039
22053
|
X("div", uT, [
|
|
22040
22054
|
X("div", dT, [
|
|
22041
|
-
X("p", hT,
|
|
22055
|
+
X("p", hT, Ye(t.node.attrs.language || "auto"), 1)
|
|
22042
22056
|
]),
|
|
22043
22057
|
X("div", fT, [
|
|
22044
|
-
Ut(
|
|
22045
|
-
modelValue:
|
|
22046
|
-
"onUpdate:modelValue": e[0] || (e[0] = (u) =>
|
|
22058
|
+
Ut(ae(a, {
|
|
22059
|
+
modelValue: o.selectedLanguage,
|
|
22060
|
+
"onUpdate:modelValue": e[0] || (e[0] = (u) => o.selectedLanguage = u),
|
|
22047
22061
|
placeholder: "Select language",
|
|
22048
|
-
theme:
|
|
22062
|
+
theme: i.thisTheme,
|
|
22049
22063
|
options: o.languages,
|
|
22050
|
-
|
|
22051
|
-
|
|
22064
|
+
"max-height": "300px",
|
|
22065
|
+
style: { width: "120px", height: "25px" }
|
|
22066
|
+
}, {
|
|
22067
|
+
"drop-carrier": ie((u) => [
|
|
22068
|
+
ae(s, {
|
|
22069
|
+
theme: u.theme,
|
|
22070
|
+
icon: "ChevronDown",
|
|
22071
|
+
background: o.actionButtonBackground,
|
|
22072
|
+
"font-size": "10",
|
|
22073
|
+
class: "power-editor-code-block-action-btn",
|
|
22074
|
+
title: o.selectedLanguage[0].text || "Select language",
|
|
22075
|
+
"border-radius": "6",
|
|
22076
|
+
style: { width: "80px", float: "right" }
|
|
22077
|
+
}, {
|
|
22078
|
+
default: ie(() => [
|
|
22079
|
+
ir(Ye(o.selectedLanguage[0].text || "Default"), 1)
|
|
22080
|
+
]),
|
|
22081
|
+
_: 2
|
|
22082
|
+
}, 1032, ["theme", "background", "title"])
|
|
22083
|
+
]),
|
|
22084
|
+
_: 1
|
|
22085
|
+
}, 8, ["modelValue", "theme", "options"]), [
|
|
22052
22086
|
[Wt, t.editor.storage.defaultStorage.codeBlockLanguagesBox]
|
|
22053
22087
|
]),
|
|
22054
|
-
|
|
22055
|
-
theme:
|
|
22056
|
-
background:
|
|
22057
|
-
"
|
|
22058
|
-
|
|
22088
|
+
ae(s, {
|
|
22089
|
+
theme: i.thisTheme,
|
|
22090
|
+
background: o.actionButtonBackground,
|
|
22091
|
+
"font-size": "10",
|
|
22092
|
+
class: "power-editor-code-block-action-btn",
|
|
22059
22093
|
title: i.status.copy ? "Copied" : "Copy",
|
|
22094
|
+
"border-radius": "6",
|
|
22060
22095
|
onClick: o.copyCode
|
|
22061
22096
|
}, {
|
|
22062
22097
|
default: ie(() => [
|
|
22063
22098
|
X("i", {
|
|
22064
|
-
class:
|
|
22099
|
+
class: tt(["ms-Icon", [`ms-Icon--${i.status.copy ? "Accept" : "Set"}`]])
|
|
22065
22100
|
}, null, 2)
|
|
22066
22101
|
]),
|
|
22067
22102
|
_: 1
|
|
22068
|
-
}, 8, ["title", "onClick"])
|
|
22103
|
+
}, 8, ["theme", "background", "title", "onClick"])
|
|
22069
22104
|
])
|
|
22070
22105
|
]),
|
|
22071
22106
|
X("pre", {
|
|
22072
|
-
class:
|
|
22107
|
+
class: tt(["power-editor-code-block-pre", [
|
|
22108
|
+
{
|
|
22109
|
+
lineNumber: t.editor.storage.defaultStorage.codeBlockLineNumbers
|
|
22110
|
+
}
|
|
22111
|
+
]])
|
|
22073
22112
|
}, [
|
|
22074
22113
|
X("code", null, [
|
|
22075
|
-
|
|
22114
|
+
ae(l)
|
|
22076
22115
|
])
|
|
22077
22116
|
], 2),
|
|
22078
22117
|
t.editor.storage.defaultStorage.codeBlockLineNumbers ? (He(), ot("div", pT, [
|
|
@@ -22081,11 +22120,11 @@ function gT(n, e, t, r, i, o) {
|
|
|
22081
22120
|
key: d,
|
|
22082
22121
|
class: "power-editor-code-block-line-number-item",
|
|
22083
22122
|
title: d + 1
|
|
22084
|
-
},
|
|
22123
|
+
}, Ye(d + 1), 9, mT))), 128))
|
|
22085
22124
|
])) : Pt("", !0)
|
|
22086
22125
|
]),
|
|
22087
22126
|
_: 1
|
|
22088
|
-
});
|
|
22127
|
+
}, 8, ["class"]);
|
|
22089
22128
|
}
|
|
22090
22129
|
const bT = /* @__PURE__ */ on(cT, [["render", gT]]);
|
|
22091
22130
|
function il(n, e = "language-") {
|
|
@@ -45447,7 +45486,7 @@ function iM(n) {
|
|
|
45447
45486
|
/\[/,
|
|
45448
45487
|
/%/
|
|
45449
45488
|
]
|
|
45450
|
-
},
|
|
45489
|
+
}, Ze = {
|
|
45451
45490
|
match: [
|
|
45452
45491
|
/\b(?:subscript|init[?!]?)/,
|
|
45453
45492
|
/\s*(?=[<(])/
|
|
@@ -45459,7 +45498,7 @@ function iM(n) {
|
|
|
45459
45498
|
e
|
|
45460
45499
|
],
|
|
45461
45500
|
illegal: /\[|%/
|
|
45462
|
-
},
|
|
45501
|
+
}, Xe = {
|
|
45463
45502
|
match: [
|
|
45464
45503
|
/operator/,
|
|
45465
45504
|
/\s+/,
|
|
@@ -45489,7 +45528,7 @@ function iM(n) {
|
|
|
45489
45528
|
for (const qe of U.variants) {
|
|
45490
45529
|
const Bt = qe.contains.find((gt) => gt.label === "interpol");
|
|
45491
45530
|
Bt.keywords = c;
|
|
45492
|
-
const
|
|
45531
|
+
const nt = [
|
|
45493
45532
|
...u,
|
|
45494
45533
|
...b,
|
|
45495
45534
|
...v,
|
|
@@ -45498,13 +45537,13 @@ function iM(n) {
|
|
|
45498
45537
|
...ne
|
|
45499
45538
|
];
|
|
45500
45539
|
Bt.contains = [
|
|
45501
|
-
...
|
|
45540
|
+
...nt,
|
|
45502
45541
|
{
|
|
45503
45542
|
begin: /\(/,
|
|
45504
45543
|
end: /\)/,
|
|
45505
45544
|
contains: [
|
|
45506
45545
|
"self",
|
|
45507
|
-
...
|
|
45546
|
+
...nt
|
|
45508
45547
|
]
|
|
45509
45548
|
}
|
|
45510
45549
|
];
|
|
@@ -45515,7 +45554,7 @@ function iM(n) {
|
|
|
45515
45554
|
contains: [
|
|
45516
45555
|
...r,
|
|
45517
45556
|
yt,
|
|
45518
|
-
|
|
45557
|
+
Ze,
|
|
45519
45558
|
{
|
|
45520
45559
|
beginKeywords: "struct protocol class extension enum actor",
|
|
45521
45560
|
end: "\\{",
|
|
@@ -45529,7 +45568,7 @@ function iM(n) {
|
|
|
45529
45568
|
...u
|
|
45530
45569
|
]
|
|
45531
45570
|
},
|
|
45532
|
-
|
|
45571
|
+
Xe,
|
|
45533
45572
|
vt,
|
|
45534
45573
|
{
|
|
45535
45574
|
beginKeywords: "import",
|
|
@@ -50449,25 +50488,25 @@ function Ope() {
|
|
|
50449
50488
|
return N(Te + (D + 1) * te / (te + d));
|
|
50450
50489
|
}
|
|
50451
50490
|
function oe(te) {
|
|
50452
|
-
var me = [], ye = te.length, Te, Ve = 0, yt = f,
|
|
50453
|
-
for (
|
|
50491
|
+
var me = [], ye = te.length, Te, Ve = 0, yt = f, Ze = b, Xe, vt, qe, Bt, nt, gt, It, Tt, at;
|
|
50492
|
+
for (Xe = te.lastIndexOf(y), Xe < 0 && (Xe = 0), vt = 0; vt < Xe; ++vt)
|
|
50454
50493
|
te.charCodeAt(vt) >= 128 && q("not-basic"), me.push(te.charCodeAt(vt));
|
|
50455
|
-
for (qe =
|
|
50456
|
-
for (Bt = Ve,
|
|
50457
|
-
at = l - Tt,
|
|
50458
|
-
Te = me.length + 1,
|
|
50494
|
+
for (qe = Xe > 0 ? Xe + 1 : 0; qe < ye; ) {
|
|
50495
|
+
for (Bt = Ve, nt = 1, gt = l; qe >= ye && q("invalid-input"), It = ne(te.charCodeAt(qe++)), (It >= l || It > N((a - Ve) / nt)) && q("overflow"), Ve += It * nt, Tt = gt <= Ze ? c : gt >= Ze + u ? u : gt - Ze, !(It < Tt); gt += l)
|
|
50496
|
+
at = l - Tt, nt > N(a / at) && q("overflow"), nt *= at;
|
|
50497
|
+
Te = me.length + 1, Ze = j(Ve - Bt, Te, Bt == 0), N(Ve / Te) > a - yt && q("overflow"), yt += N(Ve / Te), Ve %= Te, me.splice(Ve++, 0, yt);
|
|
50459
50498
|
}
|
|
50460
50499
|
return Q(me);
|
|
50461
50500
|
}
|
|
50462
50501
|
function re(te) {
|
|
50463
|
-
var me, ye, Te, Ve, yt,
|
|
50464
|
-
for (te = K(te), It = te.length, me = f, ye = 0, yt = b,
|
|
50465
|
-
|
|
50502
|
+
var me, ye, Te, Ve, yt, Ze, Xe, vt, qe, Bt, nt, gt = [], It, Tt, at, en;
|
|
50503
|
+
for (te = K(te), It = te.length, me = f, ye = 0, yt = b, Ze = 0; Ze < It; ++Ze)
|
|
50504
|
+
nt = te[Ze], nt < 128 && gt.push(O(nt));
|
|
50466
50505
|
for (Te = Ve = gt.length, Ve && gt.push(y); Te < It; ) {
|
|
50467
|
-
for (
|
|
50468
|
-
|
|
50469
|
-
for (Tt = Te + 1,
|
|
50470
|
-
if (
|
|
50506
|
+
for (Xe = a, Ze = 0; Ze < It; ++Ze)
|
|
50507
|
+
nt = te[Ze], nt >= me && nt < Xe && (Xe = nt);
|
|
50508
|
+
for (Tt = Te + 1, Xe - me > N((a - ye) / Tt) && q("overflow"), ye += (Xe - me) * Tt, me = Xe, Ze = 0; Ze < It; ++Ze)
|
|
50509
|
+
if (nt = te[Ze], nt < me && ++ye > a && q("overflow"), nt == me) {
|
|
50471
50510
|
for (vt = ye, qe = l; Bt = qe <= yt ? c : qe >= yt + u ? u : qe - yt, !(vt < Bt); qe += l)
|
|
50472
50511
|
en = vt - Bt, at = l - Bt, gt.push(
|
|
50473
50512
|
O(V(Bt + en % at, 0))
|
|
@@ -53126,16 +53165,16 @@ function Gpe() {
|
|
|
53126
53165
|
j = re = he = B, oe = null;
|
|
53127
53166
|
var Z = "Size1-Regular";
|
|
53128
53167
|
B === "\\uparrow" ? re = he = "⏐" : B === "\\Uparrow" ? re = he = "‖" : B === "\\downarrow" ? j = re = "⏐" : B === "\\Downarrow" ? j = re = "‖" : B === "\\updownarrow" ? (j = "\\uparrow", re = "⏐", he = "\\downarrow") : B === "\\Updownarrow" ? (j = "\\Uparrow", re = "‖", he = "\\Downarrow") : B === "[" || B === "\\lbrack" ? (j = "⎡", re = "⎢", he = "⎣", Z = "Size4-Regular") : B === "]" || B === "\\rbrack" ? (j = "⎤", re = "⎥", he = "⎦", Z = "Size4-Regular") : B === "\\lfloor" ? (re = j = "⎢", he = "⎣", Z = "Size4-Regular") : B === "\\lceil" ? (j = "⎡", re = he = "⎢", Z = "Size4-Regular") : B === "\\rfloor" ? (re = j = "⎥", he = "⎦", Z = "Size4-Regular") : B === "\\rceil" ? (j = "⎤", re = he = "⎥", Z = "Size4-Regular") : B === "(" ? (j = "⎛", re = "⎜", he = "⎝", Z = "Size4-Regular") : B === ")" ? (j = "⎞", re = "⎟", he = "⎠", Z = "Size4-Regular") : B === "\\{" || B === "\\lbrace" ? (j = "⎧", oe = "⎨", he = "⎩", re = "⎪", Z = "Size4-Regular") : B === "\\}" || B === "\\rbrace" ? (j = "⎫", oe = "⎬", he = "⎭", re = "⎪", Z = "Size4-Regular") : B === "\\lgroup" ? (j = "⎧", he = "⎩", re = "⎪", Z = "Size4-Regular") : B === "\\rgroup" ? (j = "⎫", he = "⎭", re = "⎪", Z = "Size4-Regular") : B === "\\lmoustache" ? (j = "⎧", he = "⎭", re = "⎪", Z = "Size4-Regular") : B === "\\rmoustache" ? (j = "⎫", he = "⎩", re = "⎪", Z = "Size4-Regular") : B === "\\surd" && (j = "", he = "⎷", re = "", Z = "Size4-Regular");
|
|
53129
|
-
var te = a(j, Z), me = te.height + te.depth, ye = a(re, Z), Te = ye.height + ye.depth, Ve = a(he, Z), yt = Ve.height + Ve.depth,
|
|
53168
|
+
var te = a(j, Z), me = te.height + te.depth, ye = a(re, Z), Te = ye.height + ye.depth, Ve = a(he, Z), yt = Ve.height + Ve.depth, Ze = 0, Xe = 1;
|
|
53130
53169
|
if (oe !== null) {
|
|
53131
53170
|
var vt = a(oe, Z);
|
|
53132
|
-
|
|
53171
|
+
Ze = vt.height + vt.depth, Xe = 2;
|
|
53133
53172
|
}
|
|
53134
|
-
var qe = me + yt +
|
|
53135
|
-
(K - qe) / (
|
|
53136
|
-
),
|
|
53173
|
+
var qe = me + yt + Ze, Bt = Math.ceil(
|
|
53174
|
+
(K - qe) / (Xe * Te)
|
|
53175
|
+
), nt = qe + Bt * Xe * Te, gt = r.metrics.axisHeight;
|
|
53137
53176
|
Q && (gt *= ne.style.sizeMultiplier);
|
|
53138
|
-
var It =
|
|
53177
|
+
var It = nt / 2 - gt, Tt = [];
|
|
53139
53178
|
Tt.push(m(he, Z, V));
|
|
53140
53179
|
var at;
|
|
53141
53180
|
if (oe === null)
|
|
@@ -53537,7 +53576,7 @@ function Vpe() {
|
|
|
53537
53576
|
}
|
|
53538
53577
|
me.height = Z, me.depth = te, re += Z, me.pos = re, re += te + Te, U[N] = me;
|
|
53539
53578
|
}
|
|
53540
|
-
var Ve = re / 2 + o.metrics.axisHeight, yt = C.value.cols || [],
|
|
53579
|
+
var Ve = re / 2 + o.metrics.axisHeight, yt = C.value.cols || [], Ze = [], Xe, vt;
|
|
53541
53580
|
for (
|
|
53542
53581
|
O = 0, vt = 0;
|
|
53543
53582
|
// Continue while either there are more columns or more column
|
|
@@ -53546,12 +53585,12 @@ function Vpe() {
|
|
|
53546
53585
|
++O, ++vt
|
|
53547
53586
|
) {
|
|
53548
53587
|
for (var qe = yt[vt] || {}, Bt = !0; qe.type === "separator"; ) {
|
|
53549
|
-
if (Bt || (
|
|
53550
|
-
var
|
|
53588
|
+
if (Bt || (Xe = a(["arraycolsep"], []), Xe.style.width = o.metrics.doubleRuleSep + "em", Ze.push(Xe)), qe.separator === "|") {
|
|
53589
|
+
var nt = a(
|
|
53551
53590
|
["vertical-separator"],
|
|
53552
53591
|
[]
|
|
53553
53592
|
);
|
|
53554
|
-
|
|
53593
|
+
nt.style.height = re + "em", nt.style.verticalAlign = -(re - Ve) + "em", Ze.push(nt);
|
|
53555
53594
|
} else
|
|
53556
53595
|
throw new n(
|
|
53557
53596
|
"Invalid separator type: " + qe.separator
|
|
@@ -53560,7 +53599,7 @@ function Vpe() {
|
|
|
53560
53599
|
}
|
|
53561
53600
|
if (!(O >= q)) {
|
|
53562
53601
|
var gt;
|
|
53563
|
-
(O > 0 || C.value.hskipBeforeAndAfter) && (gt = s.deflt(qe.pregap, K), gt !== 0 && (
|
|
53602
|
+
(O > 0 || C.value.hskipBeforeAndAfter) && (gt = s.deflt(qe.pregap, K), gt !== 0 && (Xe = a(["arraycolsep"], []), Xe.style.width = gt + "em", Ze.push(Xe)));
|
|
53564
53603
|
var It = [];
|
|
53565
53604
|
for (N = 0; N < z; ++N) {
|
|
53566
53605
|
var Tt = U[N], at = Tt[O];
|
|
@@ -53572,10 +53611,10 @@ function Vpe() {
|
|
|
53572
53611
|
It = t.makeVList(It, "individualShift", null, k), It = a(
|
|
53573
53612
|
["col-align-" + (qe.align || "c")],
|
|
53574
53613
|
[It]
|
|
53575
|
-
),
|
|
53614
|
+
), Ze.push(It), (O < q - 1 || C.value.hskipBeforeAndAfter) && (gt = s.deflt(qe.postgap, K), gt !== 0 && (Xe = a(["arraycolsep"], []), Xe.style.width = gt + "em", Ze.push(Xe)));
|
|
53576
53615
|
}
|
|
53577
53616
|
}
|
|
53578
|
-
return U = a(["mtable"],
|
|
53617
|
+
return U = a(["mtable"], Ze), a(["mord"], [U], k.getColor());
|
|
53579
53618
|
}, y.spacing = function(C, k, D) {
|
|
53580
53619
|
return C.value === "\\ " || C.value === "\\space" || C.value === " " || C.value === "~" ? a(
|
|
53581
53620
|
["mord", "mspace"],
|
|
@@ -56834,7 +56873,7 @@ const Yn = (n, e = "en") => {
|
|
|
56834
56873
|
function xme(n, e, t, r, i, o) {
|
|
56835
56874
|
const s = Me("fv-button"), a = Me("fv-text-box");
|
|
56836
56875
|
return He(), ot("div", {
|
|
56837
|
-
class:
|
|
56876
|
+
class: tt(["power-editor-media-container", [{ dark: t.theme === "dark" }, { "active-effects": i.active }]]),
|
|
56838
56877
|
style: ut({ width: i.moveable ? `${i.elWidthEnd}px` : o.normalizeWidthValue(i.currentWidth) })
|
|
56839
56878
|
}, [
|
|
56840
56879
|
Ut(X("div", {
|
|
@@ -56857,7 +56896,7 @@ function xme(n, e, t, r, i, o) {
|
|
|
56857
56896
|
onClick: e[5] || (e[5] = (l) => n.$emit("container-click", l))
|
|
56858
56897
|
}, [
|
|
56859
56898
|
mt(n.$slots, "default", {}, () => [
|
|
56860
|
-
e[20] || (e[20] =
|
|
56899
|
+
e[20] || (e[20] = ir(" Media Container "))
|
|
56861
56900
|
])
|
|
56862
56901
|
], 32),
|
|
56863
56902
|
Ut(X("div", {
|
|
@@ -56888,7 +56927,7 @@ function xme(n, e, t, r, i, o) {
|
|
|
56888
56927
|
[Wt, t.editor.isEditable]
|
|
56889
56928
|
]),
|
|
56890
56929
|
Ut(X("div", yme, [
|
|
56891
|
-
Ut(
|
|
56930
|
+
Ut(ae(s, {
|
|
56892
56931
|
class: "power-editor-media-cmd-btn",
|
|
56893
56932
|
background: t.theme === "dark" ? "rgba(0, 0, 0, 0.8)" : "rgba(255, 255, 255, 0.0)",
|
|
56894
56933
|
"border-radius": 6,
|
|
@@ -56905,7 +56944,7 @@ function xme(n, e, t, r, i, o) {
|
|
|
56905
56944
|
}, 8, ["background", "theme", "title", "onClick"]), [
|
|
56906
56945
|
[Wt, t.editor.isEditable]
|
|
56907
56946
|
]),
|
|
56908
|
-
|
|
56947
|
+
ae(s, {
|
|
56909
56948
|
class: "power-editor-media-cmd-btn",
|
|
56910
56949
|
background: t.theme === "dark" ? "rgba(0, 0, 0, 0.8)" : "rgba(255, 255, 255, 0.0)",
|
|
56911
56950
|
"border-radius": 6,
|
|
@@ -56920,7 +56959,7 @@ function xme(n, e, t, r, i, o) {
|
|
|
56920
56959
|
_: 1,
|
|
56921
56960
|
__: [24]
|
|
56922
56961
|
}, 8, ["background", "theme", "title"]),
|
|
56923
|
-
|
|
56962
|
+
ae(s, {
|
|
56924
56963
|
class: "power-editor-media-cmd-btn",
|
|
56925
56964
|
background: t.theme === "dark" ? "rgba(0, 0, 0, 0.8)" : "rgba(255, 255, 255, 0.0)",
|
|
56926
56965
|
"border-radius": 6,
|
|
@@ -56942,7 +56981,7 @@ function xme(n, e, t, r, i, o) {
|
|
|
56942
56981
|
]
|
|
56943
56982
|
]),
|
|
56944
56983
|
Ut(X("div", vme, [
|
|
56945
|
-
|
|
56984
|
+
ae(s, {
|
|
56946
56985
|
class: "power-editor-media-cmd-btn",
|
|
56947
56986
|
background: t.theme === "dark" ? "rgba(0, 0, 0, 0.8)" : "rgba(255, 255, 255, 0.0)",
|
|
56948
56987
|
"border-radius": 6,
|
|
@@ -56954,7 +56993,7 @@ function xme(n, e, t, r, i, o) {
|
|
|
56954
56993
|
onClick: o.newline
|
|
56955
56994
|
}, {
|
|
56956
56995
|
default: ie(() => [
|
|
56957
|
-
|
|
56996
|
+
ir(Ye(o.getTitle("Newline")), 1)
|
|
56958
56997
|
]),
|
|
56959
56998
|
_: 1
|
|
56960
56999
|
}, 8, ["background", "theme", "title", "onClick"])
|
|
@@ -56967,10 +57006,10 @@ function xme(n, e, t, r, i, o) {
|
|
|
56967
57006
|
Ut(X("p", {
|
|
56968
57007
|
class: "power-editor-media-container-caption",
|
|
56969
57008
|
onClick: e[16] || (e[16] = (...l) => o.showCaptionBox && o.showCaptionBox(...l))
|
|
56970
|
-
},
|
|
57009
|
+
}, Ye(i.thisCaption), 513), [
|
|
56971
57010
|
[Wt, i.thisCaption !== "" && !i.show.captionBox]
|
|
56972
57011
|
]),
|
|
56973
|
-
Ut(
|
|
57012
|
+
Ut(ae(a, {
|
|
56974
57013
|
modelValue: i.thisCaption,
|
|
56975
57014
|
"onUpdate:modelValue": e[17] || (e[17] = (l) => i.thisCaption = l),
|
|
56976
57015
|
theme: t.theme,
|
|
@@ -57137,11 +57176,11 @@ function Eme(n, e, t, r, i, o) {
|
|
|
57137
57176
|
const s = Me("fv-image"), a = Me("fv-progress-ring"), l = Me("media-container"), c = Me("fv-img"), u = Me("fv-button"), d = Me("fv-text-box"), m = Me("node-view-wrapper");
|
|
57138
57177
|
return t.node ? (He(), rn(m, {
|
|
57139
57178
|
key: 0,
|
|
57140
|
-
class:
|
|
57179
|
+
class: tt(["power-editor-image-container", [{ dark: i.thisTheme === "dark" }]]),
|
|
57141
57180
|
style: ut({ "justify-content": t.node.attrs.alignCenter ? "center" : "flex-start" })
|
|
57142
57181
|
}, {
|
|
57143
57182
|
default: ie(() => [
|
|
57144
|
-
|
|
57183
|
+
ae(l, {
|
|
57145
57184
|
width: t.node.attrs.width,
|
|
57146
57185
|
"onUpdate:width": e[1] || (e[1] = (b) => t.node.attrs.width = b),
|
|
57147
57186
|
caption: t.node.attrs.caption,
|
|
@@ -57157,14 +57196,14 @@ function Eme(n, e, t, r, i, o) {
|
|
|
57157
57196
|
onContainerClick: e[5] || (e[5] = (b) => o.preview("readonly"))
|
|
57158
57197
|
}, {
|
|
57159
57198
|
default: ie(() => [
|
|
57160
|
-
|
|
57199
|
+
ae(s, {
|
|
57161
57200
|
src: t.node.attrs.src ? t.node.attrs.src : i.statusInfo.tmpSrc ? i.statusInfo.tmpSrc : "",
|
|
57162
57201
|
ref: "image",
|
|
57163
57202
|
onlazy: i.thisLazyLoad,
|
|
57164
57203
|
style: ut([{ width: "100%", height: "auto" }, { height: !t.node.attrs.src && i.statusInfo.show ? i.statusInfo.tmpHeight + "px" : "" }])
|
|
57165
57204
|
}, null, 8, ["src", "onlazy", "style"]),
|
|
57166
57205
|
Ut(X("div", Sme, [
|
|
57167
|
-
|
|
57206
|
+
ae(a, {
|
|
57168
57207
|
modelValue: i.statusInfo.progress,
|
|
57169
57208
|
"onUpdate:modelValue": e[0] || (e[0] = (b) => i.statusInfo.progress = b),
|
|
57170
57209
|
loading: i.statusInfo.loading,
|
|
@@ -57173,27 +57212,27 @@ function Eme(n, e, t, r, i, o) {
|
|
|
57173
57212
|
color: i.thisTheme === "dark" ? "white" : "black",
|
|
57174
57213
|
background: i.thisTheme === "dark" ? "rgba(0, 0, 0, 0.3)" : "rgba(255, 255, 255, 0.3)"
|
|
57175
57214
|
}, null, 8, ["modelValue", "loading", "color", "background"]),
|
|
57176
|
-
Ut(X("p", { class: "power-editor-image-status-title" },
|
|
57215
|
+
Ut(X("p", { class: "power-editor-image-status-title" }, Ye(i.statusInfo.info), 513), [
|
|
57177
57216
|
[Wt, i.statusInfo.info]
|
|
57178
57217
|
])
|
|
57179
57218
|
], 512), [
|
|
57180
57219
|
[Wt, i.statusInfo.show]
|
|
57181
57220
|
]),
|
|
57182
57221
|
X("div", {
|
|
57183
|
-
class:
|
|
57222
|
+
class: tt(["power-editor-image-selection-mask", [{ selected: t.selected }]]),
|
|
57184
57223
|
style: ut({ "--selected-bg": i.thisForeground })
|
|
57185
57224
|
}, null, 6)
|
|
57186
57225
|
]),
|
|
57187
57226
|
_: 1
|
|
57188
57227
|
}, 8, ["width", "caption", "alignCenter", "editor", "theme", "foreground", "node", "getPos"]),
|
|
57189
|
-
|
|
57228
|
+
ae(Dc, { name: "show-preview" }, {
|
|
57190
57229
|
default: ie(() => [
|
|
57191
57230
|
Ut(X("div", {
|
|
57192
57231
|
class: "power-editor-image-preview-block",
|
|
57193
57232
|
onClick: e[12] || (e[12] = (b) => i.previewImg.show = !1)
|
|
57194
57233
|
}, [
|
|
57195
57234
|
X("div", Cme, [
|
|
57196
|
-
|
|
57235
|
+
ae(c, {
|
|
57197
57236
|
src: t.node.attrs.src,
|
|
57198
57237
|
class: "power-editor-preview-img",
|
|
57199
57238
|
style: ut({ scale: i.previewImg.scalePercent + "%", cursor: i.previewImg.scalePercent < 150 ? "zoom-in" : "zoom-out" }),
|
|
@@ -57204,7 +57243,7 @@ function Eme(n, e, t, r, i, o) {
|
|
|
57204
57243
|
class: "power-editor-preview-tool-bar",
|
|
57205
57244
|
onClick: e[11] || (e[11] = (b) => b.stopPropagation())
|
|
57206
57245
|
}, [
|
|
57207
|
-
|
|
57246
|
+
ae(u, {
|
|
57208
57247
|
class: "power-editor-preview-img-btn",
|
|
57209
57248
|
theme: "dark",
|
|
57210
57249
|
disabled: i.previewImg.scalePercent <= 50,
|
|
@@ -57217,7 +57256,7 @@ function Eme(n, e, t, r, i, o) {
|
|
|
57217
57256
|
_: 1,
|
|
57218
57257
|
__: [13]
|
|
57219
57258
|
}, 8, ["disabled"]),
|
|
57220
|
-
|
|
57259
|
+
ae(d, {
|
|
57221
57260
|
modelValue: i.previewImg.scalePercent,
|
|
57222
57261
|
theme: "dark",
|
|
57223
57262
|
underline: "",
|
|
@@ -57229,7 +57268,7 @@ function Eme(n, e, t, r, i, o) {
|
|
|
57229
57268
|
style: { width: "80px", height: "35px" },
|
|
57230
57269
|
onDebounceInput: e[8] || (e[8] = (b) => o.setScale(b, b))
|
|
57231
57270
|
}, null, 8, ["modelValue", "focus-border-color"]),
|
|
57232
|
-
|
|
57271
|
+
ae(u, {
|
|
57233
57272
|
class: "power-editor-preview-img-btn",
|
|
57234
57273
|
theme: "dark",
|
|
57235
57274
|
disabled: i.previewImg.scalePercent >= 200,
|
|
@@ -57243,7 +57282,7 @@ function Eme(n, e, t, r, i, o) {
|
|
|
57243
57282
|
_: 1,
|
|
57244
57283
|
__: [14]
|
|
57245
57284
|
}, 8, ["disabled"]),
|
|
57246
|
-
|
|
57285
|
+
ae(u, {
|
|
57247
57286
|
class: "power-editor-preview-img-btn",
|
|
57248
57287
|
theme: "dark",
|
|
57249
57288
|
background: "rgba(36, 36, 36, 0.3)",
|
|
@@ -57377,7 +57416,7 @@ function Nme(n, e, t, r, i, o) {
|
|
|
57377
57416
|
style: ut({ "justify-content": t.node.attrs.alignCenter ? "center" : "flex-start" })
|
|
57378
57417
|
}, {
|
|
57379
57418
|
default: ie(() => [
|
|
57380
|
-
|
|
57419
|
+
ae(s, {
|
|
57381
57420
|
width: t.node.attrs.width,
|
|
57382
57421
|
"onUpdate:width": e[0] || (e[0] = (l) => t.node.attrs.width = l),
|
|
57383
57422
|
caption: t.node.attrs.caption,
|
|
@@ -57615,7 +57654,7 @@ function Fme(n, e, t, r, i, o) {
|
|
|
57615
57654
|
class: "power-editor-task-item-container"
|
|
57616
57655
|
}, {
|
|
57617
57656
|
default: ie(() => [
|
|
57618
|
-
|
|
57657
|
+
ae(s, {
|
|
57619
57658
|
modelValue: t.node.attrs.checked,
|
|
57620
57659
|
"onUpdate:modelValue": e[0] || (e[0] = (c) => t.node.attrs.checked = c),
|
|
57621
57660
|
theme: i.thisTheme,
|
|
@@ -57624,7 +57663,7 @@ function Fme(n, e, t, r, i, o) {
|
|
|
57624
57663
|
contenteditable: "false",
|
|
57625
57664
|
onClick: o.updateValue
|
|
57626
57665
|
}, null, 8, ["modelValue", "theme", "disabled", "background", "onClick"]),
|
|
57627
|
-
|
|
57666
|
+
ae(a, {
|
|
57628
57667
|
ref: "n",
|
|
57629
57668
|
class: "power-editor-task-item-content"
|
|
57630
57669
|
}, null, 512)
|
|
@@ -58598,7 +58637,7 @@ H400000v` + (40 + h) + `H845.2724
|
|
|
58598
58637
|
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
|
58599
58638
|
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
|
58600
58639
|
M` + (834 + h) + " " + p + "h400000v" + (40 + h) + "h-400000z";
|
|
58601
|
-
},
|
|
58640
|
+
}, Ze = function(h, p) {
|
|
58602
58641
|
return "M263," + (601 + h + p) + `c0.7,0,18,39.7,52,119
|
|
58603
58642
|
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|
58604
58643
|
c340,-704.7,510.7,-1060.3,512,-1067
|
|
@@ -58610,7 +58649,7 @@ c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
|
|
|
58610
58649
|
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|
58611
58650
|
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|
58612
58651
|
M` + (1001 + h) + " " + p + "h400000v" + (40 + h) + "h-400000z";
|
|
58613
|
-
},
|
|
58652
|
+
}, Xe = function(h, p) {
|
|
58614
58653
|
return "M983 " + (10 + h + p) + `
|
|
58615
58654
|
l` + h / 3.13 + " -" + h + `
|
|
58616
58655
|
c4,-6.7,10,-10,18,-10 H400000v` + (40 + h) + `
|
|
@@ -58645,7 +58684,7 @@ s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,1
|
|
|
58645
58684
|
}, Bt = function(h) {
|
|
58646
58685
|
var p = h / 2;
|
|
58647
58686
|
return "M400000 " + h + " H0 L" + p + " 0 l65 45 L145 " + (h - 80) + " H400000z";
|
|
58648
|
-
},
|
|
58687
|
+
}, nt = function(h, p, g) {
|
|
58649
58688
|
var _ = g - 54 - p - h;
|
|
58650
58689
|
return "M702 " + (h + p) + "H400000" + (40 + h) + `
|
|
58651
58690
|
H742v` + _ + `l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
|
|
@@ -58660,10 +58699,10 @@ c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
|
58660
58699
|
_ = yt(p, Ve);
|
|
58661
58700
|
break;
|
|
58662
58701
|
case "sqrtSize1":
|
|
58663
|
-
_ =
|
|
58702
|
+
_ = Ze(p, Ve);
|
|
58664
58703
|
break;
|
|
58665
58704
|
case "sqrtSize2":
|
|
58666
|
-
_ =
|
|
58705
|
+
_ = Xe(p, Ve);
|
|
58667
58706
|
break;
|
|
58668
58707
|
case "sqrtSize3":
|
|
58669
58708
|
_ = vt(p, Ve);
|
|
@@ -58672,7 +58711,7 @@ c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
|
58672
58711
|
_ = qe(p, Ve);
|
|
58673
58712
|
break;
|
|
58674
58713
|
case "sqrtTall":
|
|
58675
|
-
_ =
|
|
58714
|
+
_ = nt(p, Ve, g);
|
|
58676
58715
|
}
|
|
58677
58716
|
return _;
|
|
58678
58717
|
}, It = function(h, p) {
|
|
@@ -59104,7 +59143,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
59104
59143
|
g += this.children[w].toMarkup();
|
|
59105
59144
|
return g += "</svg>", g;
|
|
59106
59145
|
}, T;
|
|
59107
|
-
}(),
|
|
59146
|
+
}(), ur = /* @__PURE__ */ function() {
|
|
59108
59147
|
function T(p, g) {
|
|
59109
59148
|
this.pathName = void 0, this.alternate = void 0, this.pathName = p, this.alternate = g;
|
|
59110
59149
|
}
|
|
@@ -59115,7 +59154,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
59115
59154
|
}, h.toMarkup = function() {
|
|
59116
59155
|
return this.alternate ? "<path d='" + this.alternate + "'/>" : "<path d='" + Tt[this.pathName] + "'/>";
|
|
59117
59156
|
}, T;
|
|
59118
|
-
}(),
|
|
59157
|
+
}(), dr = /* @__PURE__ */ function() {
|
|
59119
59158
|
function T(p) {
|
|
59120
59159
|
this.attributes = void 0, this.attributes = p || {};
|
|
59121
59160
|
}
|
|
@@ -61713,7 +61752,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
61713
61752
|
mu: !0
|
|
61714
61753
|
}, pn = function(h) {
|
|
61715
61754
|
return typeof h != "string" && (h = h.unit), h in zn || h in Co || h === "ex";
|
|
61716
|
-
},
|
|
61755
|
+
}, rt = function(h, p) {
|
|
61717
61756
|
var g;
|
|
61718
61757
|
if (h.unit in zn)
|
|
61719
61758
|
g = zn[h.unit] / p.fontMetrics().ptPerEm / p.sizeMultiplier;
|
|
@@ -61790,8 +61829,8 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
61790
61829
|
var Be = ti("textrm", p.fontWeight, p.fontShape);
|
|
61791
61830
|
return kn(w, Be, _, p, E.concat(p.fontWeight, p.fontShape));
|
|
61792
61831
|
} else {
|
|
61793
|
-
var
|
|
61794
|
-
return kn(w,
|
|
61832
|
+
var et = ti(Ee, p.fontWeight, p.fontShape);
|
|
61833
|
+
return kn(w, et, _, p, E.concat(et, p.fontWeight, p.fontShape));
|
|
61795
61834
|
}
|
|
61796
61835
|
} else
|
|
61797
61836
|
throw new Error("unexpected type: " + g + " in makeOrd");
|
|
@@ -61892,8 +61931,8 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
61892
61931
|
if (we.type === "kern")
|
|
61893
61932
|
ue += we.size;
|
|
61894
61933
|
else {
|
|
61895
|
-
var Ee = we.elem, Ae = we.wrapperClasses || [], Be = we.wrapperStyle || {},
|
|
61896
|
-
|
|
61934
|
+
var Ee = we.elem, Ae = we.wrapperClasses || [], Be = we.wrapperStyle || {}, et = Ft(Ae, [G, Ee], void 0, Be);
|
|
61935
|
+
et.style.top = -E - ue - Ee.depth + "em", we.marginLeft && (et.style.marginLeft = we.marginLeft), we.marginRight && (et.style.marginRight = we.marginRight), Y.push(et), ue += Ee.height + Ee.depth;
|
|
61897
61936
|
}
|
|
61898
61937
|
se = Math.min(se, ue), ce = Math.max(ce, ue);
|
|
61899
61938
|
}
|
|
@@ -61910,7 +61949,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
61910
61949
|
var Mt = Ft(["vlist-t"], Lt);
|
|
61911
61950
|
return Lt.length === 2 && Mt.classes.push("vlist-t2"), Mt.height = ce, Mt.depth = -se, Mt;
|
|
61912
61951
|
}, Dr = function(h, p) {
|
|
61913
|
-
var g = Ft(["mspace"], [], p), _ =
|
|
61952
|
+
var g = Ft(["mspace"], [], p), _ = rt(h, p);
|
|
61914
61953
|
return g.style.marginRight = _ + "em", g;
|
|
61915
61954
|
}, ti = function(h, p, g) {
|
|
61916
61955
|
var _ = "";
|
|
@@ -61992,7 +62031,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
61992
62031
|
oiiintSize1: ["oiiintSize1", 1.304, 0.499],
|
|
61993
62032
|
oiiintSize2: ["oiiintSize2", 1.98, 0.659]
|
|
61994
62033
|
}, Ie = function(h, p) {
|
|
61995
|
-
var g = Se[h], _ = g[0], w = g[1], E = g[2], R = new
|
|
62034
|
+
var g = Se[h], _ = g[0], w = g[1], E = g[2], R = new ur(_), L = new dn([R], {
|
|
61996
62035
|
width: w + "em",
|
|
61997
62036
|
height: E + "em",
|
|
61998
62037
|
// Override CSS rule `.katex svg { width: 100% }`
|
|
@@ -62147,7 +62186,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
62147
62186
|
}, sn = function(h, p, g, _) {
|
|
62148
62187
|
_ === void 0 && (_ = [null, null]);
|
|
62149
62188
|
for (var w = [], E = 0; E < h.length; E++) {
|
|
62150
|
-
var R =
|
|
62189
|
+
var R = Je(h[E], p);
|
|
62151
62190
|
if (R instanceof at) {
|
|
62152
62191
|
var L = R.children;
|
|
62153
62192
|
w.push.apply(w, L);
|
|
@@ -62213,7 +62252,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
62213
62252
|
}, gs = function(h, p) {
|
|
62214
62253
|
var g = ["nulldelimiter"].concat(h.baseSizingClasses());
|
|
62215
62254
|
return Nr(p.concat(g));
|
|
62216
|
-
},
|
|
62255
|
+
}, Je = function(h, p, g) {
|
|
62217
62256
|
if (!h)
|
|
62218
62257
|
return Nr();
|
|
62219
62258
|
if (Na[h.type]) {
|
|
@@ -62548,7 +62587,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
62548
62587
|
var _e = [1, 1, 2, 2, 3, 3][Y];
|
|
62549
62588
|
F === "widehat" || F === "widecheck" ? (L = [0, 1062, 2364, 2364, 2364][_e], se = [0, 239, 300, 360, 420][_e], ue = [0, 0.24, 0.3, 0.3, 0.36, 0.42][_e], ce = F + _e) : (L = [0, 600, 1033, 2339, 2340][_e], se = [0, 260, 286, 306, 312][_e], ue = [0, 0.26, 0.286, 0.3, 0.306, 0.34][_e], ce = "tilde" + _e);
|
|
62550
62589
|
}
|
|
62551
|
-
var we = new
|
|
62590
|
+
var we = new ur(ce), Ee = new dn([we], {
|
|
62552
62591
|
width: "100%",
|
|
62553
62592
|
height: ue + "em",
|
|
62554
62593
|
viewBox: "0 0 " + L + " " + se,
|
|
@@ -62560,7 +62599,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
62560
62599
|
height: ue
|
|
62561
62600
|
};
|
|
62562
62601
|
} else {
|
|
62563
|
-
var Ae = [], Be = W6[F],
|
|
62602
|
+
var Ae = [], Be = W6[F], et = Be[0], ft = Be[1], Lt = Be[2], ct = Lt / 1e3, pt = et.length, $t, Mt;
|
|
62564
62603
|
if (pt === 1) {
|
|
62565
62604
|
var Dn = Be[3];
|
|
62566
62605
|
$t = ["hide-tail"], Mt = [Dn];
|
|
@@ -62572,12 +62611,12 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
62572
62611
|
throw new Error(`Correct katexImagesData or update code here to support
|
|
62573
62612
|
` + pt + " children.");
|
|
62574
62613
|
for (var Nn = 0; Nn < pt; Nn++) {
|
|
62575
|
-
var oi = new
|
|
62614
|
+
var oi = new ur(et[Nn]), gr = new dn([oi], {
|
|
62576
62615
|
width: "400em",
|
|
62577
62616
|
height: ct + "em",
|
|
62578
62617
|
viewBox: "0 0 " + L + " " + Lt,
|
|
62579
62618
|
preserveAspectRatio: Mt[Nn] + " slice"
|
|
62580
|
-
}), Rn = W.makeSvgSpan([$t[Nn]], [
|
|
62619
|
+
}), Rn = W.makeSvgSpan([$t[Nn]], [gr], p);
|
|
62581
62620
|
if (pt === 1)
|
|
62582
62621
|
return {
|
|
62583
62622
|
span: Rn,
|
|
@@ -62604,13 +62643,13 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
62604
62643
|
}
|
|
62605
62644
|
} else {
|
|
62606
62645
|
var F = [];
|
|
62607
|
-
/^[bx]cancel$/.test(p) && F.push(new
|
|
62646
|
+
/^[bx]cancel$/.test(p) && F.push(new dr({
|
|
62608
62647
|
x1: "0",
|
|
62609
62648
|
y1: "0",
|
|
62610
62649
|
x2: "100%",
|
|
62611
62650
|
y2: "100%",
|
|
62612
62651
|
"stroke-width": "0.046em"
|
|
62613
|
-
})), /^x?cancel$/.test(p) && F.push(new
|
|
62652
|
+
})), /^x?cancel$/.test(p) && F.push(new dr({
|
|
62614
62653
|
x1: "0",
|
|
62615
62654
|
y1: "100%",
|
|
62616
62655
|
x2: "100%",
|
|
@@ -62645,10 +62684,10 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
62645
62684
|
}
|
|
62646
62685
|
var xu = function(h, p) {
|
|
62647
62686
|
var g, _, w;
|
|
62648
|
-
h && h.type === "supsub" ? (_ = We(h.base, "accent"), g = _.base, h.base = g, w = Ca(
|
|
62649
|
-
var E =
|
|
62687
|
+
h && h.type === "supsub" ? (_ = We(h.base, "accent"), g = _.base, h.base = g, w = Ca(Je(h, p)), h.base = _) : (_ = We(h, "accent"), g = _.base);
|
|
62688
|
+
var E = Je(g, p.havingCrampedStyle()), R = _.isShifty && x.isCharacterBox(g), L = 0;
|
|
62650
62689
|
if (R) {
|
|
62651
|
-
var F = x.getBaseElem(g), G =
|
|
62690
|
+
var F = x.getBaseElem(g), G = Je(F, p.havingCrampedStyle());
|
|
62652
62691
|
L = Ri(G).skew;
|
|
62653
62692
|
}
|
|
62654
62693
|
var Y = _.label === "\\c", se = Y ? E.height + E.depth : Math.min(E.height, p.fontMetrics().xHeight), ce;
|
|
@@ -62757,7 +62796,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
62757
62796
|
};
|
|
62758
62797
|
},
|
|
62759
62798
|
htmlBuilder: function(h, p) {
|
|
62760
|
-
var g =
|
|
62799
|
+
var g = Je(h.base, p), _ = Rr.svgSpan(h, p), w = h.label === "\\utilde" ? 0.12 : 0, E = W.makeVList({
|
|
62761
62800
|
positionType: "top",
|
|
62762
62801
|
positionData: g.height,
|
|
62763
62802
|
children: [{
|
|
@@ -62832,10 +62871,10 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
62832
62871
|
// Flow is unable to correctly infer the type of `group`, even though it's
|
|
62833
62872
|
// unamibiguously determined from the passed-in `type` above.
|
|
62834
62873
|
htmlBuilder: function(h, p) {
|
|
62835
|
-
var g = p.style, _ = p.havingStyle(g.sup()), w = W.wrapFragment(
|
|
62874
|
+
var g = p.style, _ = p.havingStyle(g.sup()), w = W.wrapFragment(Je(h.body, _, p), p), E = h.label.slice(0, 2) === "\\x" ? "x" : "cd";
|
|
62836
62875
|
w.classes.push(E + "-arrow-pad");
|
|
62837
62876
|
var R;
|
|
62838
|
-
h.below && (_ = p.havingStyle(g.sub()), R = W.wrapFragment(
|
|
62877
|
+
h.below && (_ = p.havingStyle(g.sub()), R = W.wrapFragment(Je(h.below, _, p), p), R.classes.push(E + "-arrow-pad"));
|
|
62839
62878
|
var L = Rr.svgSpan(h, p), F = -p.fontMetrics().axisHeight + 0.5 * L.height, G = -p.fontMetrics().axisHeight - 0.5 * L.height - 0.111;
|
|
62840
62879
|
(w.depth > 0.25 || h.label === "\\xleftequilibrium") && (G -= w.depth);
|
|
62841
62880
|
var Y;
|
|
@@ -63041,7 +63080,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
63041
63080
|
};
|
|
63042
63081
|
},
|
|
63043
63082
|
htmlBuilder: function(h, p) {
|
|
63044
|
-
var g = p.havingStyle(p.style.sup()), _ = W.wrapFragment(
|
|
63083
|
+
var g = p.havingStyle(p.style.sup()), _ = W.wrapFragment(Je(h.label, g, p), p);
|
|
63045
63084
|
return _.classes.push("cd-label-" + h.side), _.style.bottom = 0.8 - _.depth + "em", _.height = 0, _.depth = 0, _;
|
|
63046
63085
|
},
|
|
63047
63086
|
mathmlBuilder: function(h, p) {
|
|
@@ -63063,7 +63102,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
63063
63102
|
};
|
|
63064
63103
|
},
|
|
63065
63104
|
htmlBuilder: function(h, p) {
|
|
63066
|
-
var g = W.wrapFragment(
|
|
63105
|
+
var g = W.wrapFragment(Je(h.fragment, p), p);
|
|
63067
63106
|
return g.classes.push("cd-vert-arrow"), g;
|
|
63068
63107
|
},
|
|
63069
63108
|
mathmlBuilder: function(h, p) {
|
|
@@ -63162,11 +63201,11 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
63162
63201
|
// not within tabular/array environments.
|
|
63163
63202
|
htmlBuilder: function(h, p) {
|
|
63164
63203
|
var g = W.makeSpan(["mspace"], [], p);
|
|
63165
|
-
return h.newLine && (g.classes.push("newline"), h.size && (g.style.marginTop =
|
|
63204
|
+
return h.newLine && (g.classes.push("newline"), h.size && (g.style.marginTop = rt(h.size, p) + "em")), g;
|
|
63166
63205
|
},
|
|
63167
63206
|
mathmlBuilder: function(h, p) {
|
|
63168
63207
|
var g = new fe.MathNode("mspace");
|
|
63169
|
-
return h.newLine && (g.setAttribute("linebreak", "newline"), h.size && g.setAttribute("height",
|
|
63208
|
+
return h.newLine && (g.setAttribute("linebreak", "newline"), h.size && g.setAttribute("height", rt(h.size, p) + "em")), g;
|
|
63170
63209
|
}
|
|
63171
63210
|
});
|
|
63172
63211
|
var ku = {
|
|
@@ -63323,7 +63362,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
63323
63362
|
elem: w
|
|
63324
63363
|
};
|
|
63325
63364
|
}, Eu = function(h, p, g) {
|
|
63326
|
-
var _ = Fn["Size4-Regular"][h.charCodeAt(0)] ? Fn["Size4-Regular"][h.charCodeAt(0)][4].toFixed(3) : Fn["Size1-Regular"][h.charCodeAt(0)][4].toFixed(3), w = new
|
|
63365
|
+
var _ = Fn["Size4-Regular"][h.charCodeAt(0)] ? Fn["Size4-Regular"][h.charCodeAt(0)][4].toFixed(3) : Fn["Size1-Regular"][h.charCodeAt(0)][4].toFixed(3), w = new ur("inner", It(h, Math.round(1e3 * p))), E = new dn([w], {
|
|
63327
63366
|
width: _ + "em",
|
|
63328
63367
|
height: p + "em",
|
|
63329
63368
|
// Override CSS rule `.katex svg { width: 100% }`
|
|
@@ -63345,8 +63384,8 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
63345
63384
|
h === "\\uparrow" ? F = G = "⏐" : h === "\\Uparrow" ? F = G = "‖" : h === "\\downarrow" ? R = F = "⏐" : h === "\\Downarrow" ? R = F = "‖" : h === "\\updownarrow" ? (R = "\\uparrow", F = "⏐", G = "\\downarrow") : h === "\\Updownarrow" ? (R = "\\Uparrow", F = "‖", G = "\\Downarrow") : x.contains(i5, h) ? F = "∣" : x.contains(o5, h) ? F = "∥" : h === "[" || h === "\\lbrack" ? (R = "⎡", F = "⎢", G = "⎣", Y = "Size4-Regular") : h === "]" || h === "\\rbrack" ? (R = "⎤", F = "⎥", G = "⎦", Y = "Size4-Regular") : h === "\\lfloor" || h === "⌊" ? (F = R = "⎢", G = "⎣", Y = "Size4-Regular") : h === "\\lceil" || h === "⌈" ? (R = "⎡", F = G = "⎢", Y = "Size4-Regular") : h === "\\rfloor" || h === "⌋" ? (F = R = "⎥", G = "⎦", Y = "Size4-Regular") : h === "\\rceil" || h === "⌉" ? (R = "⎤", F = G = "⎥", Y = "Size4-Regular") : h === "(" || h === "\\lparen" ? (R = "⎛", F = "⎜", G = "⎝", Y = "Size4-Regular") : h === ")" || h === "\\rparen" ? (R = "⎞", F = "⎟", G = "⎠", Y = "Size4-Regular") : h === "\\{" || h === "\\lbrace" ? (R = "⎧", L = "⎨", G = "⎩", F = "⎪", Y = "Size4-Regular") : h === "\\}" || h === "\\rbrace" ? (R = "⎫", L = "⎬", G = "⎭", F = "⎪", Y = "Size4-Regular") : h === "\\lgroup" || h === "⟮" ? (R = "⎧", G = "⎩", F = "⎪", Y = "Size4-Regular") : h === "\\rgroup" || h === "⟯" ? (R = "⎫", G = "⎭", F = "⎪", Y = "Size4-Regular") : h === "\\lmoustache" || h === "⎰" ? (R = "⎧", G = "⎭", F = "⎪", Y = "Size4-Regular") : (h === "\\rmoustache" || h === "⎱") && (R = "⎫", G = "⎩", F = "⎪", Y = "Size4-Regular");
|
|
63346
63385
|
var se = _s(R, Y, w), ce = se.height + se.depth, ue = _s(F, Y, w), _e = ue.height + ue.depth, we = _s(G, Y, w), Ee = we.height + we.depth, Ae = 0, Be = 1;
|
|
63347
63386
|
if (L !== null) {
|
|
63348
|
-
var
|
|
63349
|
-
Ae =
|
|
63387
|
+
var et = _s(L, Y, w);
|
|
63388
|
+
Ae = et.height + et.depth, Be = 2;
|
|
63350
63389
|
}
|
|
63351
63390
|
var ft = ce + Ee + Ae, Lt = Math.max(0, Math.ceil((p - ft) / (Be * _e))), ct = ft + Lt * Be * _e, pt = _.fontMetrics().axisHeight;
|
|
63352
63391
|
g && (pt *= _.sizeMultiplier);
|
|
@@ -63359,14 +63398,14 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
63359
63398
|
Mt.push(Eu(F, Nn, _)), Mt.push(Ba), Mt.push(Cu(L, Y, w)), Mt.push(Ba), Mt.push(Eu(F, Nn, _));
|
|
63360
63399
|
}
|
|
63361
63400
|
Mt.push(Ba), Mt.push(Cu(R, Y, w));
|
|
63362
|
-
var oi = _.havingBaseStyle(Z.TEXT),
|
|
63401
|
+
var oi = _.havingBaseStyle(Z.TEXT), gr = W.makeVList({
|
|
63363
63402
|
positionType: "bottom",
|
|
63364
63403
|
positionData: $t,
|
|
63365
63404
|
children: Mt
|
|
63366
63405
|
}, oi);
|
|
63367
|
-
return Su(W.makeSpan(["delimsizing", "mult"], [
|
|
63406
|
+
return Su(W.makeSpan(["delimsizing", "mult"], [gr], oi), Z.TEXT, _, E);
|
|
63368
63407
|
}, Au = 80, Mu = 0.08, Du = function(h, p, g, _, w) {
|
|
63369
|
-
var E = gt(h, _, g), R = new
|
|
63408
|
+
var E = gt(h, _, g), R = new ur(h, E), L = new dn([R], {
|
|
63370
63409
|
// Note: 1000:1 ratio of viewBox to document em width.
|
|
63371
63410
|
width: "400em",
|
|
63372
63411
|
height: p + "em",
|
|
@@ -63486,7 +63525,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
63486
63525
|
2 * G - F
|
|
63487
63526
|
);
|
|
63488
63527
|
return cm(h, Y, !0, _, w, E);
|
|
63489
|
-
},
|
|
63528
|
+
}, hr = {
|
|
63490
63529
|
sqrtImage: s5,
|
|
63491
63530
|
sizedDelim: l5,
|
|
63492
63531
|
sizeToMaxHeight: ys,
|
|
@@ -63582,13 +63621,13 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
63582
63621
|
};
|
|
63583
63622
|
},
|
|
63584
63623
|
htmlBuilder: function(h, p) {
|
|
63585
|
-
return h.delim === "." ? W.makeSpan([h.mclass]) :
|
|
63624
|
+
return h.delim === "." ? W.makeSpan([h.mclass]) : hr.sizedDelim(h.delim, h.size, p, h.mode, [h.mclass]);
|
|
63586
63625
|
},
|
|
63587
63626
|
mathmlBuilder: function(h) {
|
|
63588
63627
|
var p = [];
|
|
63589
63628
|
h.delim !== "." && p.push(Hn(h.delim, h.mode));
|
|
63590
63629
|
var g = new fe.MathNode("mo", p);
|
|
63591
|
-
return h.mclass === "mopen" || h.mclass === "mclose" ? g.setAttribute("fence", "true") : g.setAttribute("fence", "false"), g.setAttribute("stretchy", "true"), g.setAttribute("minsize",
|
|
63630
|
+
return h.mclass === "mopen" || h.mclass === "mclose" ? g.setAttribute("fence", "true") : g.setAttribute("fence", "false"), g.setAttribute("stretchy", "true"), g.setAttribute("minsize", hr.sizeToMaxHeight[h.size] + "em"), g.setAttribute("maxsize", hr.sizeToMaxHeight[h.size] + "em"), g;
|
|
63592
63631
|
}
|
|
63593
63632
|
});
|
|
63594
63633
|
function dm(T) {
|
|
@@ -63642,17 +63681,17 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
63642
63681
|
g[R].isMiddle ? E = !0 : (_ = Math.max(g[R].height, _), w = Math.max(g[R].depth, w));
|
|
63643
63682
|
_ *= p.sizeMultiplier, w *= p.sizeMultiplier;
|
|
63644
63683
|
var L;
|
|
63645
|
-
if (h.left === "." ? L = gs(p, ["mopen"]) : L =
|
|
63684
|
+
if (h.left === "." ? L = gs(p, ["mopen"]) : L = hr.leftRightDelim(h.left, _, w, p, h.mode, ["mopen"]), g.unshift(L), E)
|
|
63646
63685
|
for (var F = 1; F < g.length; F++) {
|
|
63647
63686
|
var G = g[F], Y = G.isMiddle;
|
|
63648
|
-
Y && (g[F] =
|
|
63687
|
+
Y && (g[F] = hr.leftRightDelim(Y.delim, _, w, Y.options, h.mode, []));
|
|
63649
63688
|
}
|
|
63650
63689
|
var se;
|
|
63651
63690
|
if (h.right === ".")
|
|
63652
63691
|
se = gs(p, ["mclose"]);
|
|
63653
63692
|
else {
|
|
63654
63693
|
var ce = h.rightColor ? p.withColor(h.rightColor) : p;
|
|
63655
|
-
se =
|
|
63694
|
+
se = hr.leftRightDelim(h.right, _, w, ce, h.mode, ["mclose"]);
|
|
63656
63695
|
}
|
|
63657
63696
|
return g.push(se), W.makeSpan(["minner"], g, p);
|
|
63658
63697
|
},
|
|
@@ -63691,7 +63730,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
63691
63730
|
if (h.delim === ".")
|
|
63692
63731
|
g = gs(p, []);
|
|
63693
63732
|
else {
|
|
63694
|
-
g =
|
|
63733
|
+
g = hr.sizedDelim(h.delim, 1, p, h.mode, []);
|
|
63695
63734
|
var _ = {
|
|
63696
63735
|
delim: h.delim,
|
|
63697
63736
|
options: p
|
|
@@ -63706,21 +63745,21 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
63706
63745
|
}
|
|
63707
63746
|
});
|
|
63708
63747
|
var Nu = function(h, p) {
|
|
63709
|
-
var g = W.wrapFragment(
|
|
63748
|
+
var g = W.wrapFragment(Je(h.body, p), p), _ = h.label.substr(1), w = p.sizeMultiplier, E, R = 0, L = x.isCharacterBox(h.body);
|
|
63710
63749
|
if (_ === "sout")
|
|
63711
63750
|
E = W.makeSpan(["stretchy", "sout"]), E.height = p.fontMetrics().defaultRuleThickness / w, R = -0.5 * p.fontMetrics().xHeight;
|
|
63712
63751
|
else if (_ === "phase") {
|
|
63713
|
-
var F =
|
|
63752
|
+
var F = rt({
|
|
63714
63753
|
number: 0.6,
|
|
63715
63754
|
unit: "pt"
|
|
63716
|
-
}, p), G =
|
|
63755
|
+
}, p), G = rt({
|
|
63717
63756
|
number: 0.35,
|
|
63718
63757
|
unit: "ex"
|
|
63719
63758
|
}, p), Y = p.havingBaseSizing();
|
|
63720
63759
|
w = w / Y.sizeMultiplier;
|
|
63721
63760
|
var se = g.height + g.depth + F + G;
|
|
63722
63761
|
g.style.paddingLeft = se / 2 + F + "em";
|
|
63723
|
-
var ce = Math.floor(1e3 * se * w), ue = Bt(ce), _e = new dn([new
|
|
63762
|
+
var ce = Math.floor(1e3 * se * w), ue = Bt(ce), _e = new dn([new ur("phase", ue)], {
|
|
63724
63763
|
width: "400em",
|
|
63725
63764
|
height: ce / 1e3 + "em",
|
|
63726
63765
|
viewBox: "0 0 400000 " + ce,
|
|
@@ -63756,7 +63795,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
63756
63795
|
]
|
|
63757
63796
|
}, p);
|
|
63758
63797
|
else {
|
|
63759
|
-
var
|
|
63798
|
+
var et = /cancel|phase/.test(_) ? ["svg-align"] : [];
|
|
63760
63799
|
Be = W.makeVList({
|
|
63761
63800
|
positionType: "individualShift",
|
|
63762
63801
|
children: [
|
|
@@ -63770,7 +63809,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
63770
63809
|
type: "elem",
|
|
63771
63810
|
elem: E,
|
|
63772
63811
|
shift: R,
|
|
63773
|
-
wrapperClasses:
|
|
63812
|
+
wrapperClasses: et
|
|
63774
63813
|
}
|
|
63775
63814
|
]
|
|
63776
63815
|
}, p);
|
|
@@ -63909,7 +63948,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
63909
63948
|
}
|
|
63910
63949
|
});
|
|
63911
63950
|
var hm = {};
|
|
63912
|
-
function
|
|
63951
|
+
function fr(T) {
|
|
63913
63952
|
for (var h = T.type, p = T.names, g = T.props, _ = T.handler, w = T.htmlBuilder, E = T.mathmlBuilder, R = {
|
|
63914
63953
|
type: h,
|
|
63915
63954
|
numArgs: g.numArgs || 0,
|
|
@@ -63968,8 +64007,8 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
63968
64007
|
break;
|
|
63969
64008
|
} else if (Be === "\\\\") {
|
|
63970
64009
|
T.consume();
|
|
63971
|
-
var
|
|
63972
|
-
T.gullet.future().text !== " " && (
|
|
64010
|
+
var et = void 0;
|
|
64011
|
+
T.gullet.future().text !== " " && (et = T.parseSizeGroup(!0)), we.push(et ? et.value : null), Ee.push(fm(T)), ue = [], _e.push(ue);
|
|
63973
64012
|
} else
|
|
63974
64013
|
throw new o("Expected & or \\\\ or \\cr or \\end", T.nextToken);
|
|
63975
64014
|
}
|
|
@@ -63991,7 +64030,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
63991
64030
|
function Iu(T) {
|
|
63992
64031
|
return T.substr(0, 1) === "d" ? "display" : "text";
|
|
63993
64032
|
}
|
|
63994
|
-
var
|
|
64033
|
+
var pr = function(h, p) {
|
|
63995
64034
|
var g, _, w = h.body.length, E = h.hLinesBeforeRow, R = 0, L = new Array(w), F = [], G = Math.max(
|
|
63996
64035
|
p.fontMetrics().arrayRuleWidth,
|
|
63997
64036
|
p.minRuleThickness
|
|
@@ -64001,29 +64040,29 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
64001
64040
|
var ce = p.havingStyle(Z.SCRIPT).sizeMultiplier;
|
|
64002
64041
|
se = 0.2778 * (ce / p.sizeMultiplier);
|
|
64003
64042
|
}
|
|
64004
|
-
var ue = h.colSeparationType === "CD" ?
|
|
64043
|
+
var ue = h.colSeparationType === "CD" ? rt({
|
|
64005
64044
|
number: 3,
|
|
64006
64045
|
unit: "ex"
|
|
64007
64046
|
}, p) : 12 * Y, _e = 3 * Y, we = h.arraystretch * ue, Ee = 0.7 * we, Ae = 0.3 * we, Be = 0;
|
|
64008
|
-
function
|
|
64047
|
+
function et(Jm) {
|
|
64009
64048
|
for (var Ua = 0; Ua < Jm.length; ++Ua)
|
|
64010
64049
|
Ua > 0 && (Be += 0.25), F.push({
|
|
64011
64050
|
pos: Be,
|
|
64012
64051
|
isDashed: Jm[Ua]
|
|
64013
64052
|
});
|
|
64014
64053
|
}
|
|
64015
|
-
for (
|
|
64054
|
+
for (et(E[0]), g = 0; g < h.body.length; ++g) {
|
|
64016
64055
|
var ft = h.body[g], Lt = Ee, ct = Ae;
|
|
64017
64056
|
R < ft.length && (R = ft.length);
|
|
64018
64057
|
var pt = new Array(ft.length);
|
|
64019
64058
|
for (_ = 0; _ < ft.length; ++_) {
|
|
64020
|
-
var $t =
|
|
64059
|
+
var $t = Je(ft[_], p);
|
|
64021
64060
|
ct < $t.depth && (ct = $t.depth), Lt < $t.height && (Lt = $t.height), pt[_] = $t;
|
|
64022
64061
|
}
|
|
64023
64062
|
var Mt = h.rowGaps[g], Dn = 0;
|
|
64024
|
-
Mt && (Dn =
|
|
64063
|
+
Mt && (Dn = rt(Mt, p), Dn > 0 && (Dn += Ae, ct < Dn && (ct = Dn), Dn = 0)), h.addJot && (ct += _e), pt.height = Lt, pt.depth = ct, Be += Lt, pt.pos = Be, Be += ct + Dn, L[g] = pt, et(E[g + 1]);
|
|
64025
64064
|
}
|
|
64026
|
-
var Nn = Be / 2 + p.fontMetrics().axisHeight, oi = h.cols || [],
|
|
64065
|
+
var Nn = Be / 2 + p.fontMetrics().axisHeight, oi = h.cols || [], gr = [], Rn, No, Qm = [];
|
|
64027
64066
|
if (h.addEqnNum)
|
|
64028
64067
|
for (g = 0; g < w; ++g) {
|
|
64029
64068
|
var Wu = L[g], H5 = Wu.pos - Nn, Ku = W.makeSpan(["eqn-num"], [], p);
|
|
@@ -64041,16 +64080,16 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
64041
64080
|
++_, ++No
|
|
64042
64081
|
) {
|
|
64043
64082
|
for (var Ir = oi[No] || {}, Ym = !0; Ir.type === "separator"; ) {
|
|
64044
|
-
if (Ym || (Rn = W.makeSpan(["arraycolsep"], []), Rn.style.width = p.fontMetrics().doubleRuleSep + "em",
|
|
64083
|
+
if (Ym || (Rn = W.makeSpan(["arraycolsep"], []), Rn.style.width = p.fontMetrics().doubleRuleSep + "em", gr.push(Rn)), Ir.separator === "|" || Ir.separator === ":") {
|
|
64045
64084
|
var U5 = Ir.separator === "|" ? "solid" : "dashed", Ro = W.makeSpan(["vertical-separator"], [], p);
|
|
64046
|
-
Ro.style.height = Be + "em", Ro.style.borderRightWidth = G + "em", Ro.style.borderRightStyle = U5, Ro.style.margin = "0 -" + G / 2 + "em", Ro.style.verticalAlign = -(Be - Nn) + "em",
|
|
64085
|
+
Ro.style.height = Be + "em", Ro.style.borderRightWidth = G + "em", Ro.style.borderRightStyle = U5, Ro.style.margin = "0 -" + G / 2 + "em", Ro.style.verticalAlign = -(Be - Nn) + "em", gr.push(Ro);
|
|
64047
64086
|
} else
|
|
64048
64087
|
throw new o("Invalid separator type: " + Ir.separator);
|
|
64049
64088
|
No++, Ir = oi[No] || {}, Ym = !1;
|
|
64050
64089
|
}
|
|
64051
64090
|
if (!(_ >= R)) {
|
|
64052
64091
|
var Io = void 0;
|
|
64053
|
-
(_ > 0 || h.hskipBeforeAndAfter) && (Io = x.deflt(Ir.pregap, se), Io !== 0 && (Rn = W.makeSpan(["arraycolsep"], []), Rn.style.width = Io + "em",
|
|
64092
|
+
(_ > 0 || h.hskipBeforeAndAfter) && (Io = x.deflt(Ir.pregap, se), Io !== 0 && (Rn = W.makeSpan(["arraycolsep"], []), Rn.style.width = Io + "em", gr.push(Rn)));
|
|
64054
64093
|
var Oo = [];
|
|
64055
64094
|
for (g = 0; g < w; ++g) {
|
|
64056
64095
|
var qa = L[g], Ha = qa[_];
|
|
@@ -64066,10 +64105,10 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
64066
64105
|
Oo = W.makeVList({
|
|
64067
64106
|
positionType: "individualShift",
|
|
64068
64107
|
children: Oo
|
|
64069
|
-
}, p), Oo = W.makeSpan(["col-align-" + (Ir.align || "c")], [Oo]),
|
|
64108
|
+
}, p), Oo = W.makeSpan(["col-align-" + (Ir.align || "c")], [Oo]), gr.push(Oo), (_ < R - 1 || h.hskipBeforeAndAfter) && (Io = x.deflt(Ir.postgap, se), Io !== 0 && (Rn = W.makeSpan(["arraycolsep"], []), Rn.style.width = Io + "em", gr.push(Rn)));
|
|
64070
64109
|
}
|
|
64071
64110
|
}
|
|
64072
|
-
if (L = W.makeSpan(["mtable"],
|
|
64111
|
+
if (L = W.makeSpan(["mtable"], gr), F.length > 0) {
|
|
64073
64112
|
for (var V5 = W.makeLineSpan("hline", p, G), $5 = W.makeLineSpan("hdashline", p, G), ju = [{
|
|
64074
64113
|
type: "elem",
|
|
64075
64114
|
elem: L,
|
|
@@ -64103,7 +64142,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
64103
64142
|
c: "center ",
|
|
64104
64143
|
l: "left ",
|
|
64105
64144
|
r: "right "
|
|
64106
|
-
},
|
|
64145
|
+
}, mr = function(h, p) {
|
|
64107
64146
|
for (var g = [], _ = new fe.MathNode("mtd", [], ["mtr-glue"]), w = new fe.MathNode("mtd", [], ["mml-eqn-num"]), E = 0; E < h.body.length; E++) {
|
|
64108
64147
|
for (var R = h.body[E], L = [], F = 0; F < R.length; F++)
|
|
64109
64148
|
L.push(new fe.MathNode("mtd", [xt(R[F], p)]));
|
|
@@ -64120,7 +64159,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
64120
64159
|
G.setAttribute("columnalign", ce.trim()), /[sd]/.test(_e) && G.setAttribute("columnlines", _e.trim());
|
|
64121
64160
|
}
|
|
64122
64161
|
if (h.colSeparationType === "align") {
|
|
64123
|
-
for (var
|
|
64162
|
+
for (var et = h.cols || [], ft = "", Lt = 1; Lt < et.length; Lt++)
|
|
64124
64163
|
ft += Lt % 2 ? "0em " : "1em ";
|
|
64125
64164
|
G.setAttribute("columnspacing", ft.trim());
|
|
64126
64165
|
} else h.colSeparationType === "alignat" || h.colSeparationType === "gather" ? G.setAttribute("columnspacing", "0em") : h.colSeparationType === "small" ? G.setAttribute("columnspacing", "0.2778em") : h.colSeparationType === "CD" ? G.setAttribute("columnspacing", "0.5em") : G.setAttribute("columnspacing", "1em");
|
|
@@ -64160,9 +64199,9 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
64160
64199
|
if (se)
|
|
64161
64200
|
R < we.length && (R = we.length);
|
|
64162
64201
|
else {
|
|
64163
|
-
var
|
|
64164
|
-
if (E <
|
|
64165
|
-
throw new o("Too many math in a row: " + ("expected " + E + ", but got " +
|
|
64202
|
+
var et = we.length / 2;
|
|
64203
|
+
if (E < et)
|
|
64204
|
+
throw new o("Too many math in a row: " + ("expected " + E + ", but got " + et), we[0]);
|
|
64166
64205
|
}
|
|
64167
64206
|
});
|
|
64168
64207
|
for (var ce = 0; ce < R; ++ce) {
|
|
@@ -64176,7 +64215,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
64176
64215
|
}
|
|
64177
64216
|
return w.colSeparationType = se ? "align" : "alignat", w;
|
|
64178
64217
|
};
|
|
64179
|
-
|
|
64218
|
+
fr({
|
|
64180
64219
|
type: "array",
|
|
64181
64220
|
names: ["array", "darray"],
|
|
64182
64221
|
props: {
|
|
@@ -64209,9 +64248,9 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
64209
64248
|
};
|
|
64210
64249
|
return ri(h.parser, E, Iu(h.envName));
|
|
64211
64250
|
},
|
|
64212
|
-
htmlBuilder:
|
|
64213
|
-
mathmlBuilder:
|
|
64214
|
-
}),
|
|
64251
|
+
htmlBuilder: pr,
|
|
64252
|
+
mathmlBuilder: mr
|
|
64253
|
+
}), fr({
|
|
64215
64254
|
type: "array",
|
|
64216
64255
|
names: ["matrix", "pmatrix", "bmatrix", "Bmatrix", "vmatrix", "Vmatrix", "matrix*", "pmatrix*", "bmatrix*", "Bmatrix*", "vmatrix*", "Vmatrix*"],
|
|
64217
64256
|
props: {
|
|
@@ -64259,9 +64298,9 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
64259
64298
|
// \right uninfluenced by \color in array
|
|
64260
64299
|
} : E;
|
|
64261
64300
|
},
|
|
64262
|
-
htmlBuilder:
|
|
64263
|
-
mathmlBuilder:
|
|
64264
|
-
}),
|
|
64301
|
+
htmlBuilder: pr,
|
|
64302
|
+
mathmlBuilder: mr
|
|
64303
|
+
}), fr({
|
|
64265
64304
|
type: "array",
|
|
64266
64305
|
names: ["smallmatrix"],
|
|
64267
64306
|
props: {
|
|
@@ -64273,9 +64312,9 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
64273
64312
|
}, g = ri(h.parser, p, "script");
|
|
64274
64313
|
return g.colSeparationType = "small", g;
|
|
64275
64314
|
},
|
|
64276
|
-
htmlBuilder:
|
|
64277
|
-
mathmlBuilder:
|
|
64278
|
-
}),
|
|
64315
|
+
htmlBuilder: pr,
|
|
64316
|
+
mathmlBuilder: mr
|
|
64317
|
+
}), fr({
|
|
64279
64318
|
type: "array",
|
|
64280
64319
|
names: ["subarray"],
|
|
64281
64320
|
props: {
|
|
@@ -64302,9 +64341,9 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
64302
64341
|
throw new o("{subarray} can contain only one column");
|
|
64303
64342
|
return E;
|
|
64304
64343
|
},
|
|
64305
|
-
htmlBuilder:
|
|
64306
|
-
mathmlBuilder:
|
|
64307
|
-
}),
|
|
64344
|
+
htmlBuilder: pr,
|
|
64345
|
+
mathmlBuilder: mr
|
|
64346
|
+
}), fr({
|
|
64308
64347
|
type: "array",
|
|
64309
64348
|
names: ["cases", "dcases", "rcases", "drcases"],
|
|
64310
64349
|
props: {
|
|
@@ -64339,18 +64378,18 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
64339
64378
|
rightColor: void 0
|
|
64340
64379
|
};
|
|
64341
64380
|
},
|
|
64342
|
-
htmlBuilder:
|
|
64343
|
-
mathmlBuilder:
|
|
64344
|
-
}),
|
|
64381
|
+
htmlBuilder: pr,
|
|
64382
|
+
mathmlBuilder: mr
|
|
64383
|
+
}), fr({
|
|
64345
64384
|
type: "array",
|
|
64346
64385
|
names: ["align", "align*", "aligned", "split"],
|
|
64347
64386
|
props: {
|
|
64348
64387
|
numArgs: 0
|
|
64349
64388
|
},
|
|
64350
64389
|
handler: pm,
|
|
64351
|
-
htmlBuilder:
|
|
64352
|
-
mathmlBuilder:
|
|
64353
|
-
}),
|
|
64390
|
+
htmlBuilder: pr,
|
|
64391
|
+
mathmlBuilder: mr
|
|
64392
|
+
}), fr({
|
|
64354
64393
|
type: "array",
|
|
64355
64394
|
names: ["gathered", "gather", "gather*"],
|
|
64356
64395
|
props: {
|
|
@@ -64371,18 +64410,18 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
64371
64410
|
};
|
|
64372
64411
|
return ri(h.parser, p, "display");
|
|
64373
64412
|
},
|
|
64374
|
-
htmlBuilder:
|
|
64375
|
-
mathmlBuilder:
|
|
64376
|
-
}),
|
|
64413
|
+
htmlBuilder: pr,
|
|
64414
|
+
mathmlBuilder: mr
|
|
64415
|
+
}), fr({
|
|
64377
64416
|
type: "array",
|
|
64378
64417
|
names: ["alignat", "alignat*", "alignedat"],
|
|
64379
64418
|
props: {
|
|
64380
64419
|
numArgs: 1
|
|
64381
64420
|
},
|
|
64382
64421
|
handler: pm,
|
|
64383
|
-
htmlBuilder:
|
|
64384
|
-
mathmlBuilder:
|
|
64385
|
-
}),
|
|
64422
|
+
htmlBuilder: pr,
|
|
64423
|
+
mathmlBuilder: mr
|
|
64424
|
+
}), fr({
|
|
64386
64425
|
type: "array",
|
|
64387
64426
|
names: ["equation", "equation*"],
|
|
64388
64427
|
props: {
|
|
@@ -64399,9 +64438,9 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
64399
64438
|
};
|
|
64400
64439
|
return ri(h.parser, p, "display");
|
|
64401
64440
|
},
|
|
64402
|
-
htmlBuilder:
|
|
64403
|
-
mathmlBuilder:
|
|
64404
|
-
}),
|
|
64441
|
+
htmlBuilder: pr,
|
|
64442
|
+
mathmlBuilder: mr
|
|
64443
|
+
}), fr({
|
|
64405
64444
|
type: "array",
|
|
64406
64445
|
names: ["CD"],
|
|
64407
64446
|
props: {
|
|
@@ -64410,8 +64449,8 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
64410
64449
|
handler: function(h) {
|
|
64411
64450
|
return za(h), e5(h.parser);
|
|
64412
64451
|
},
|
|
64413
|
-
htmlBuilder:
|
|
64414
|
-
mathmlBuilder:
|
|
64452
|
+
htmlBuilder: pr,
|
|
64453
|
+
mathmlBuilder: mr
|
|
64415
64454
|
}), Ce({
|
|
64416
64455
|
type: "text",
|
|
64417
64456
|
// Doesn't matter what this is.
|
|
@@ -64549,7 +64588,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
64549
64588
|
});
|
|
64550
64589
|
var _m = function(h, p) {
|
|
64551
64590
|
var g = h.font, _ = p.withFont(g);
|
|
64552
|
-
return
|
|
64591
|
+
return Je(h.body, _);
|
|
64553
64592
|
}, ym = function(h, p) {
|
|
64554
64593
|
var g = h.font, _ = p.withFont(g);
|
|
64555
64594
|
return xt(h.body, _);
|
|
@@ -64644,21 +64683,21 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
64644
64683
|
}, Lu = function(h, p) {
|
|
64645
64684
|
var g = wm(h.size, p.style), _ = g.fracNum(), w = g.fracDen(), E;
|
|
64646
64685
|
E = p.havingStyle(_);
|
|
64647
|
-
var R =
|
|
64686
|
+
var R = Je(h.numer, E, p);
|
|
64648
64687
|
if (h.continued) {
|
|
64649
64688
|
var L = 8.5 / p.fontMetrics().ptPerEm, F = 3.5 / p.fontMetrics().ptPerEm;
|
|
64650
64689
|
R.height = R.height < L ? L : R.height, R.depth = R.depth < F ? F : R.depth;
|
|
64651
64690
|
}
|
|
64652
64691
|
E = p.havingStyle(w);
|
|
64653
|
-
var G =
|
|
64654
|
-
h.hasBarLine ? (h.barSize ? (se =
|
|
64692
|
+
var G = Je(h.denom, E, p), Y, se, ce;
|
|
64693
|
+
h.hasBarLine ? (h.barSize ? (se = rt(h.barSize, p), Y = W.makeLineSpan("frac-line", p, se)) : Y = W.makeLineSpan("frac-line", p), se = Y.height, ce = Y.height) : (Y = null, se = 0, ce = p.fontMetrics().defaultRuleThickness);
|
|
64655
64694
|
var ue, _e, we;
|
|
64656
64695
|
g.size === Z.DISPLAY.size || h.size === "display" ? (ue = p.fontMetrics().num1, se > 0 ? _e = 3 * ce : _e = 7 * ce, we = p.fontMetrics().denom1) : (se > 0 ? (ue = p.fontMetrics().num2, _e = ce) : (ue = p.fontMetrics().num3, _e = 3 * ce), we = p.fontMetrics().denom2);
|
|
64657
64696
|
var Ee;
|
|
64658
64697
|
if (Y) {
|
|
64659
64698
|
var Be = p.fontMetrics().axisHeight;
|
|
64660
64699
|
ue - R.depth - (Be + 0.5 * se) < _e && (ue += _e - (ue - R.depth - (Be + 0.5 * se))), Be - 0.5 * se - (G.height - we) < _e && (we += _e - (Be - 0.5 * se - (G.height - we)));
|
|
64661
|
-
var
|
|
64700
|
+
var et = -(Be - 0.5 * se);
|
|
64662
64701
|
Ee = W.makeVList({
|
|
64663
64702
|
positionType: "individualShift",
|
|
64664
64703
|
children: [{
|
|
@@ -64668,7 +64707,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
64668
64707
|
}, {
|
|
64669
64708
|
type: "elem",
|
|
64670
64709
|
elem: Y,
|
|
64671
|
-
shift:
|
|
64710
|
+
shift: et
|
|
64672
64711
|
}, {
|
|
64673
64712
|
type: "elem",
|
|
64674
64713
|
elem: R,
|
|
@@ -64694,13 +64733,13 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
64694
64733
|
var ft;
|
|
64695
64734
|
g.size === Z.DISPLAY.size ? ft = p.fontMetrics().delim1 : g.size === Z.SCRIPTSCRIPT.size ? ft = p.havingStyle(Z.SCRIPT).fontMetrics().delim2 : ft = p.fontMetrics().delim2;
|
|
64696
64735
|
var Lt, ct;
|
|
64697
|
-
return h.leftDelim == null ? Lt = gs(p, ["mopen"]) : Lt =
|
|
64736
|
+
return h.leftDelim == null ? Lt = gs(p, ["mopen"]) : Lt = hr.customSizedDelim(h.leftDelim, ft, !0, p.havingStyle(g), h.mode, ["mopen"]), h.continued ? ct = W.makeSpan([]) : h.rightDelim == null ? ct = gs(p, ["mclose"]) : ct = hr.customSizedDelim(h.rightDelim, ft, !0, p.havingStyle(g), h.mode, ["mclose"]), W.makeSpan(["mord"].concat(E.sizingClasses(p)), [Lt, W.makeSpan(["mfrac"], [Ee]), ct], p);
|
|
64698
64737
|
}, Pu = function(h, p) {
|
|
64699
64738
|
var g = new fe.MathNode("mfrac", [xt(h.numer, p), xt(h.denom, p)]);
|
|
64700
64739
|
if (!h.hasBarLine)
|
|
64701
64740
|
g.setAttribute("linethickness", "0px");
|
|
64702
64741
|
else if (h.barSize) {
|
|
64703
|
-
var _ =
|
|
64742
|
+
var _ = rt(h.barSize, p);
|
|
64704
64743
|
g.setAttribute("linethickness", _ + "em");
|
|
64705
64744
|
}
|
|
64706
64745
|
var w = wm(h.size, p.style);
|
|
@@ -64938,8 +64977,8 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
64938
64977
|
});
|
|
64939
64978
|
var Sm = function(h, p) {
|
|
64940
64979
|
var g = p.style, _, w;
|
|
64941
|
-
h.type === "supsub" ? (_ = h.sup ?
|
|
64942
|
-
var E =
|
|
64980
|
+
h.type === "supsub" ? (_ = h.sup ? Je(h.sup, p.havingStyle(g.sup()), p) : Je(h.sub, p.havingStyle(g.sub()), p), w = We(h.base, "horizBrace")) : w = We(h, "horizBrace");
|
|
64981
|
+
var E = Je(w.base, p.havingBaseStyle(Z.DISPLAY)), R = Rr.svgSpan(w, p), L;
|
|
64943
64982
|
if (w.isOver ? (L = W.makeVList({
|
|
64944
64983
|
positionType: "firstBaseline",
|
|
64945
64984
|
children: [{
|
|
@@ -65272,10 +65311,10 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
65272
65311
|
} : _.formatUnsupportedCmd("\\includegraphics");
|
|
65273
65312
|
},
|
|
65274
65313
|
htmlBuilder: function(h, p) {
|
|
65275
|
-
var g =
|
|
65276
|
-
h.totalheight.number > 0 && (_ =
|
|
65314
|
+
var g = rt(h.height, p), _ = 0;
|
|
65315
|
+
h.totalheight.number > 0 && (_ = rt(h.totalheight, p) - g, _ = Number(_.toFixed(2)));
|
|
65277
65316
|
var w = 0;
|
|
65278
|
-
h.width.number > 0 && (w =
|
|
65317
|
+
h.width.number > 0 && (w = rt(h.width, p));
|
|
65279
65318
|
var E = {
|
|
65280
65319
|
height: g + _ + "em"
|
|
65281
65320
|
};
|
|
@@ -65286,9 +65325,9 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
65286
65325
|
mathmlBuilder: function(h, p) {
|
|
65287
65326
|
var g = new fe.MathNode("mglyph", []);
|
|
65288
65327
|
g.setAttribute("alt", h.alt);
|
|
65289
|
-
var _ =
|
|
65290
|
-
if (h.totalheight.number > 0 && (w =
|
|
65291
|
-
var E =
|
|
65328
|
+
var _ = rt(h.height, p), w = 0;
|
|
65329
|
+
if (h.totalheight.number > 0 && (w = rt(h.totalheight, p) - _, w = w.toFixed(2), g.setAttribute("valign", "-" + w + "em")), g.setAttribute("height", _ + w + "em"), h.width.number > 0) {
|
|
65330
|
+
var E = rt(h.width, p);
|
|
65292
65331
|
g.setAttribute("width", E + "em");
|
|
65293
65332
|
}
|
|
65294
65333
|
return g.setAttribute("src", h.src), g;
|
|
@@ -65318,7 +65357,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
65318
65357
|
return W.makeGlue(h.dimension, p);
|
|
65319
65358
|
},
|
|
65320
65359
|
mathmlBuilder: function(h, p) {
|
|
65321
|
-
var g =
|
|
65360
|
+
var g = rt(h.dimension, p);
|
|
65322
65361
|
return new fe.SpaceNode(g);
|
|
65323
65362
|
}
|
|
65324
65363
|
}), Ce({
|
|
@@ -65339,7 +65378,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
65339
65378
|
},
|
|
65340
65379
|
htmlBuilder: function(h, p) {
|
|
65341
65380
|
var g;
|
|
65342
|
-
h.alignment === "clap" ? (g = W.makeSpan([], [
|
|
65381
|
+
h.alignment === "clap" ? (g = W.makeSpan([], [Je(h.body, p)]), g = W.makeSpan(["inner"], [g], p)) : g = W.makeSpan(["inner"], [Je(h.body, p)]);
|
|
65343
65382
|
var _ = W.makeSpan(["fix"], []), w = W.makeSpan([h.alignment], [g, _], p), E = W.makeSpan(["strut"]);
|
|
65344
65383
|
return E.style.height = w.height + w.depth + "em", E.style.verticalAlign = -w.depth + "em", w.children.unshift(E), w = W.makeSpan(["thinbox"], [w], p), W.makeSpan(["mord", "vbox"], [w], p);
|
|
65345
65384
|
},
|
|
@@ -65428,14 +65467,14 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
65428
65467
|
h = W.makeSpan([], [h]);
|
|
65429
65468
|
var L = g && x.isCharacterBox(g), F, G;
|
|
65430
65469
|
if (p) {
|
|
65431
|
-
var Y =
|
|
65470
|
+
var Y = Je(p, _.havingStyle(w.sup()), _);
|
|
65432
65471
|
G = {
|
|
65433
65472
|
elem: Y,
|
|
65434
65473
|
kern: Math.max(_.fontMetrics().bigOpSpacing1, _.fontMetrics().bigOpSpacing3 - Y.depth)
|
|
65435
65474
|
};
|
|
65436
65475
|
}
|
|
65437
65476
|
if (g) {
|
|
65438
|
-
var se =
|
|
65477
|
+
var se = Je(g, _.havingStyle(w.sub()), _);
|
|
65439
65478
|
F = {
|
|
65440
65479
|
elem: se,
|
|
65441
65480
|
kern: Math.max(_.fontMetrics().bigOpSpacing2, _.fontMetrics().bigOpSpacing4 - se.height)
|
|
@@ -65785,7 +65824,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
65785
65824
|
};
|
|
65786
65825
|
},
|
|
65787
65826
|
htmlBuilder: function(h, p) {
|
|
65788
|
-
var g =
|
|
65827
|
+
var g = Je(h.body, p.havingCrampedStyle()), _ = W.makeLineSpan("overline-line", p), w = p.fontMetrics().defaultRuleThickness, E = W.makeVList({
|
|
65789
65828
|
positionType: "firstBaseline",
|
|
65790
65829
|
children: [{
|
|
65791
65830
|
type: "elem",
|
|
@@ -65848,7 +65887,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
65848
65887
|
};
|
|
65849
65888
|
},
|
|
65850
65889
|
htmlBuilder: function(h, p) {
|
|
65851
|
-
var g = W.makeSpan([], [
|
|
65890
|
+
var g = W.makeSpan([], [Je(h.body, p.withPhantom())]);
|
|
65852
65891
|
if (g.height = 0, g.depth = 0, g.children)
|
|
65853
65892
|
for (var _ = 0; _ < g.children.length; _++)
|
|
65854
65893
|
g.children[_].height = 0, g.children[_].depth = 0;
|
|
@@ -65880,7 +65919,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
65880
65919
|
};
|
|
65881
65920
|
},
|
|
65882
65921
|
htmlBuilder: function(h, p) {
|
|
65883
|
-
var g = W.makeSpan(["inner"], [
|
|
65922
|
+
var g = W.makeSpan(["inner"], [Je(h.body, p.withPhantom())]), _ = W.makeSpan(["fix"], []);
|
|
65884
65923
|
return W.makeSpan(["mord", "rlap"], [g, _], p);
|
|
65885
65924
|
},
|
|
65886
65925
|
mathmlBuilder: function(h, p) {
|
|
@@ -65905,7 +65944,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
65905
65944
|
};
|
|
65906
65945
|
},
|
|
65907
65946
|
htmlBuilder: function(h, p) {
|
|
65908
|
-
var g =
|
|
65947
|
+
var g = Je(h.body, p), _ = rt(h.dy, p);
|
|
65909
65948
|
return W.makeVList({
|
|
65910
65949
|
positionType: "shift",
|
|
65911
65950
|
positionData: -_,
|
|
@@ -65938,11 +65977,11 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
65938
65977
|
};
|
|
65939
65978
|
},
|
|
65940
65979
|
htmlBuilder: function(h, p) {
|
|
65941
|
-
var g = W.makeSpan(["mord", "rule"], [], p), _ =
|
|
65980
|
+
var g = W.makeSpan(["mord", "rule"], [], p), _ = rt(h.width, p), w = rt(h.height, p), E = h.shift ? rt(h.shift, p) : 0;
|
|
65942
65981
|
return g.style.borderRightWidth = _ + "em", g.style.borderTopWidth = w + "em", g.style.bottom = E + "em", g.width = _, g.height = w + E, g.depth = -E, g.maxFontSize = w * 1.125 * p.sizeMultiplier, g;
|
|
65943
65982
|
},
|
|
65944
65983
|
mathmlBuilder: function(h, p) {
|
|
65945
|
-
var g =
|
|
65984
|
+
var g = rt(h.width, p), _ = rt(h.height, p), w = h.shift ? rt(h.shift, p) : 0, E = p.color && p.getColor() || "black", R = new fe.MathNode("mspace");
|
|
65946
65985
|
R.setAttribute("mathbackground", E), R.setAttribute("width", g + "em"), R.setAttribute("height", _ + "em");
|
|
65947
65986
|
var L = new fe.MathNode("mpadded", [R]);
|
|
65948
65987
|
return w >= 0 ? L.setAttribute("height", "+" + w + "em") : (L.setAttribute("height", w + "em"), L.setAttribute("depth", "+" + -w + "em")), L.setAttribute("voffset", w + "em"), L;
|
|
@@ -66015,7 +66054,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
66015
66054
|
};
|
|
66016
66055
|
},
|
|
66017
66056
|
htmlBuilder: function(h, p) {
|
|
66018
|
-
var g = W.makeSpan([], [
|
|
66057
|
+
var g = W.makeSpan([], [Je(h.body, p)]);
|
|
66019
66058
|
if (!h.smashHeight && !h.smashDepth)
|
|
66020
66059
|
return g;
|
|
66021
66060
|
if (h.smashHeight && (g.height = 0, g.children))
|
|
@@ -66054,11 +66093,11 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
66054
66093
|
};
|
|
66055
66094
|
},
|
|
66056
66095
|
htmlBuilder: function(h, p) {
|
|
66057
|
-
var g =
|
|
66096
|
+
var g = Je(h.body, p.havingCrampedStyle());
|
|
66058
66097
|
g.height === 0 && (g.height = p.fontMetrics().xHeight), g = W.wrapFragment(g, p);
|
|
66059
66098
|
var _ = p.fontMetrics(), w = _.defaultRuleThickness, E = w;
|
|
66060
66099
|
p.style.id < Z.TEXT.id && (E = p.fontMetrics().xHeight);
|
|
66061
|
-
var R = w + E / 4, L = g.height + g.depth + R + w, F =
|
|
66100
|
+
var R = w + E / 4, L = g.height + g.depth + R + w, F = hr.sqrtImage(L, p), G = F.span, Y = F.ruleWidth, se = F.advanceWidth, ce = G.height - Y;
|
|
66062
66101
|
ce > g.height + g.depth + R && (R = (R + ce - g.height - g.depth) / 2);
|
|
66063
66102
|
var ue = G.height - g.height - R - Y;
|
|
66064
66103
|
g.style.paddingLeft = se + "em";
|
|
@@ -66080,15 +66119,15 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
66080
66119
|
}]
|
|
66081
66120
|
}, p);
|
|
66082
66121
|
if (h.index) {
|
|
66083
|
-
var we = p.havingStyle(Z.SCRIPTSCRIPT), Ee =
|
|
66122
|
+
var we = p.havingStyle(Z.SCRIPTSCRIPT), Ee = Je(h.index, we, p), Ae = 0.6 * (_e.height - _e.depth), Be = W.makeVList({
|
|
66084
66123
|
positionType: "shift",
|
|
66085
66124
|
positionData: -Ae,
|
|
66086
66125
|
children: [{
|
|
66087
66126
|
type: "elem",
|
|
66088
66127
|
elem: Ee
|
|
66089
66128
|
}]
|
|
66090
|
-
}, p),
|
|
66091
|
-
return W.makeSpan(["mord", "sqrt"], [
|
|
66129
|
+
}, p), et = W.makeSpan(["root"], [Be]);
|
|
66130
|
+
return W.makeSpan(["mord", "sqrt"], [et, _e], p);
|
|
66092
66131
|
} else
|
|
66093
66132
|
return W.makeSpan(["mord", "sqrt"], [_e], p);
|
|
66094
66133
|
},
|
|
@@ -66162,21 +66201,21 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
66162
66201
|
var g = x5(h, p);
|
|
66163
66202
|
if (g)
|
|
66164
66203
|
return g(h, p);
|
|
66165
|
-
var _ = h.base, w = h.sup, E = h.sub, R =
|
|
66204
|
+
var _ = h.base, w = h.sup, E = h.sub, R = Je(_, p), L, F, G = p.fontMetrics(), Y = 0, se = 0, ce = _ && x.isCharacterBox(_);
|
|
66166
66205
|
if (w) {
|
|
66167
66206
|
var ue = p.havingStyle(p.style.sup());
|
|
66168
|
-
L =
|
|
66207
|
+
L = Je(w, ue, p), ce || (Y = R.height - ue.fontMetrics().supDrop * ue.sizeMultiplier / p.sizeMultiplier);
|
|
66169
66208
|
}
|
|
66170
66209
|
if (E) {
|
|
66171
66210
|
var _e = p.havingStyle(p.style.sub());
|
|
66172
|
-
F =
|
|
66211
|
+
F = Je(E, _e, p), ce || (se = R.depth + _e.fontMetrics().subDrop * _e.sizeMultiplier / p.sizeMultiplier);
|
|
66173
66212
|
}
|
|
66174
66213
|
var we;
|
|
66175
66214
|
p.style === Z.DISPLAY ? we = G.sup1 : p.style.cramped ? we = G.sup3 : we = G.sup2;
|
|
66176
66215
|
var Ee = p.sizeMultiplier, Ae = 0.5 / G.ptPerEm / Ee + "em", Be = null;
|
|
66177
66216
|
if (F) {
|
|
66178
|
-
var
|
|
66179
|
-
(R instanceof yn ||
|
|
66217
|
+
var et = h.base && h.base.type === "op" && h.base.name && (h.base.name === "\\oiint" || h.base.name === "\\oiiint");
|
|
66218
|
+
(R instanceof yn || et) && (Be = -R.italic + "em");
|
|
66180
66219
|
}
|
|
66181
66220
|
var ft;
|
|
66182
66221
|
if (L && F) {
|
|
@@ -66415,7 +66454,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
66415
66454
|
};
|
|
66416
66455
|
},
|
|
66417
66456
|
htmlBuilder: function(h, p) {
|
|
66418
|
-
var g =
|
|
66457
|
+
var g = Je(h.body, p), _ = W.makeLineSpan("underline-line", p), w = p.fontMetrics().defaultRuleThickness, E = W.makeVList({
|
|
66419
66458
|
positionType: "top",
|
|
66420
66459
|
positionData: g.height,
|
|
66421
66460
|
children: [{
|
|
@@ -66458,7 +66497,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
66458
66497
|
};
|
|
66459
66498
|
},
|
|
66460
66499
|
htmlBuilder: function(h, p) {
|
|
66461
|
-
var g =
|
|
66500
|
+
var g = Je(h.body, p), _ = p.fontMetrics().axisHeight, w = 0.5 * (g.height - _ - (g.depth + _));
|
|
66462
66501
|
return W.makeVList({
|
|
66463
66502
|
positionType: "shift",
|
|
66464
66503
|
positionData: w,
|
|
@@ -67921,8 +67960,8 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
67921
67960
|
Anchor: go,
|
|
67922
67961
|
SymbolNode: yn,
|
|
67923
67962
|
SvgNode: dn,
|
|
67924
|
-
PathNode:
|
|
67925
|
-
LineNode:
|
|
67963
|
+
PathNode: ur,
|
|
67964
|
+
LineNode: dr
|
|
67926
67965
|
}
|
|
67927
67966
|
}, q5 = z5;
|
|
67928
67967
|
return r = r.default, r;
|
|
@@ -68092,7 +68131,7 @@ function pge(n, e, t, r, i, o) {
|
|
|
68092
68131
|
return t.node ? (He(), rn(a, {
|
|
68093
68132
|
key: 0,
|
|
68094
68133
|
as: t.node.attrs.tag,
|
|
68095
|
-
class:
|
|
68134
|
+
class: tt(["power-editor-equation-container", {
|
|
68096
68135
|
dark: i.thisTheme === "dark",
|
|
68097
68136
|
div: t.node.attrs.tag == "div",
|
|
68098
68137
|
selected: t.selected
|
|
@@ -68100,7 +68139,7 @@ function pge(n, e, t, r, i, o) {
|
|
|
68100
68139
|
style: ut({ "--selected-bg": o.focusForeground })
|
|
68101
68140
|
}, {
|
|
68102
68141
|
default: ie(() => [
|
|
68103
|
-
|
|
68142
|
+
ae(Dc, { name: "power-editor-equation-popper-fade" }, {
|
|
68104
68143
|
default: ie(() => [
|
|
68105
68144
|
Ut(X("div", {
|
|
68106
68145
|
class: "power-editor-equation-popper-container",
|
|
@@ -68120,7 +68159,7 @@ function pge(n, e, t, r, i, o) {
|
|
|
68120
68159
|
}, null, 44, hge), [
|
|
68121
68160
|
[j4, i.thisValue]
|
|
68122
68161
|
]),
|
|
68123
|
-
|
|
68162
|
+
ae(s, {
|
|
68124
68163
|
class: "power-editor-equation-popper-btn",
|
|
68125
68164
|
theme: "dark",
|
|
68126
68165
|
disabled: i.lock,
|
|
@@ -68130,7 +68169,7 @@ function pge(n, e, t, r, i, o) {
|
|
|
68130
68169
|
onClick: o.close
|
|
68131
68170
|
}, {
|
|
68132
68171
|
default: ie(() => [
|
|
68133
|
-
|
|
68172
|
+
ir(Ye(i.getTitle("Done")), 1)
|
|
68134
68173
|
]),
|
|
68135
68174
|
_: 1
|
|
68136
68175
|
}, 8, ["disabled", "background", "onClick"])
|
|
@@ -68153,7 +68192,7 @@ function pge(n, e, t, r, i, o) {
|
|
|
68153
68192
|
X("i", { class: "ms-Icon ms-Icon--GripperDotsVertical" }, null, -1)
|
|
68154
68193
|
]), 32)) : Pt("", !0),
|
|
68155
68194
|
X("span", {
|
|
68156
|
-
class:
|
|
68195
|
+
class: tt(["power-editor-equation-target", { empty: i.thisValue === "" }]),
|
|
68157
68196
|
placeholder: t.node.attrs.emptyPlaceholder,
|
|
68158
68197
|
innerHTML: i.thisValue === "" ? t.node.attrs.emptyPlaceholder : i.equationString,
|
|
68159
68198
|
ref: "target",
|
|
@@ -68490,7 +68529,7 @@ function Age(n, e, t, r, i, o) {
|
|
|
68490
68529
|
return t.node ? (He(), rn(l, {
|
|
68491
68530
|
key: 0,
|
|
68492
68531
|
as: "span",
|
|
68493
|
-
class:
|
|
68532
|
+
class: tt(["power-editor-mention-container", {
|
|
68494
68533
|
dark: i.thisTheme === "dark",
|
|
68495
68534
|
selected: t.selected,
|
|
68496
68535
|
showing: i.showPopper && i.filterItems.length > 0
|
|
@@ -68502,14 +68541,14 @@ function Age(n, e, t, r, i, o) {
|
|
|
68502
68541
|
})
|
|
68503
68542
|
}, {
|
|
68504
68543
|
default: ie(() => [
|
|
68505
|
-
|
|
68544
|
+
ae(Dc, { name: "power-editor-mention-popper-fade" }, {
|
|
68506
68545
|
default: ie(() => [
|
|
68507
68546
|
Ut(X("div", {
|
|
68508
68547
|
class: "power-editor-mention-popper-container",
|
|
68509
68548
|
style: ut({ left: `${i.left}px`, top: `${i.top}px` })
|
|
68510
68549
|
}, [
|
|
68511
68550
|
Ut(X("div", xge, [
|
|
68512
|
-
|
|
68551
|
+
ae(s, {
|
|
68513
68552
|
loading: "true",
|
|
68514
68553
|
r: "10",
|
|
68515
68554
|
borderWidth: "2",
|
|
@@ -68519,7 +68558,7 @@ function Age(n, e, t, r, i, o) {
|
|
|
68519
68558
|
], 512), [
|
|
68520
68559
|
[Wt, i.loading]
|
|
68521
68560
|
]),
|
|
68522
|
-
|
|
68561
|
+
ae(a, {
|
|
68523
68562
|
modelValue: i.filterItems,
|
|
68524
68563
|
theme: i.thisTheme,
|
|
68525
68564
|
class: "power-editor-mention-popper-list-view",
|
|
@@ -68533,7 +68572,7 @@ function Age(n, e, t, r, i, o) {
|
|
|
68533
68572
|
listItem: ie((c) => [
|
|
68534
68573
|
c.item.image ? (He(), ot("img", {
|
|
68535
68574
|
key: 0,
|
|
68536
|
-
class:
|
|
68575
|
+
class: tt(["power-editor-mention-img", [{ avatar: c.item.avatarImg }]]),
|
|
68537
68576
|
src: c.valueTrigger(c.item.image),
|
|
68538
68577
|
alt: "",
|
|
68539
68578
|
style: ut({
|
|
@@ -68542,14 +68581,14 @@ function Age(n, e, t, r, i, o) {
|
|
|
68542
68581
|
}, null, 14, kge)) : Pt("", !0),
|
|
68543
68582
|
c.item.icon ? (He(), ot("i", {
|
|
68544
68583
|
key: 1,
|
|
68545
|
-
class:
|
|
68584
|
+
class: tt(["ms-Icon", [`ms-Icon--${c.valueTrigger(c.item.icon)}`]]),
|
|
68546
68585
|
style: ut([{ color: c.valueTrigger(c.item.iconColor) }, { "margin-right": "15px" }])
|
|
68547
68586
|
}, null, 6)) : Pt("", !0),
|
|
68548
68587
|
X("p", {
|
|
68549
68588
|
style: ut([{
|
|
68550
68589
|
color: c.valueTrigger(c.item.type) == "header" ? i.thisForeground : c.item.color
|
|
68551
68590
|
}, { flex: "1", "font-size": "12px" }])
|
|
68552
|
-
},
|
|
68591
|
+
}, Ye(c.valueTrigger(c.item.name)), 5)
|
|
68553
68592
|
]),
|
|
68554
68593
|
_: 1
|
|
68555
68594
|
}, 8, ["modelValue", "theme", "onChooseItem"])
|
|
@@ -68578,7 +68617,7 @@ function Age(n, e, t, r, i, o) {
|
|
|
68578
68617
|
}, null, 8, Cge)) : Pt("", !0),
|
|
68579
68618
|
t.node.attrs.currentItem.icon ? (He(), ot("i", {
|
|
68580
68619
|
key: 2,
|
|
68581
|
-
class:
|
|
68620
|
+
class: tt(["ms-Icon power-editor-mention-icon", [
|
|
68582
68621
|
`ms-Icon--${o.valueTrigger(t.node.attrs.currentItem.icon)}`
|
|
68583
68622
|
]]),
|
|
68584
68623
|
style: ut({
|
|
@@ -68587,7 +68626,7 @@ function Age(n, e, t, r, i, o) {
|
|
|
68587
68626
|
}, null, 6)) : Pt("", !0),
|
|
68588
68627
|
Ut(X("input", {
|
|
68589
68628
|
"onUpdate:modelValue": e[0] || (e[0] = (c) => t.node.attrs.value = c),
|
|
68590
|
-
class:
|
|
68629
|
+
class: tt(["power-editor-mention-input", [{ freeze: t.node.attrs.freeze }]]),
|
|
68591
68630
|
placeholder: t.node.attrs.placeholder,
|
|
68592
68631
|
readonly: t.node.attrs.freeze,
|
|
68593
68632
|
ref: "target",
|
|
@@ -68604,9 +68643,9 @@ function Age(n, e, t, r, i, o) {
|
|
|
68604
68643
|
]),
|
|
68605
68644
|
X("p", {
|
|
68606
68645
|
title: t.node.attrs.value,
|
|
68607
|
-
class:
|
|
68646
|
+
class: tt(["power-editor-mention-placeholder", [{ show: t.node.attrs.freeze }]]),
|
|
68608
68647
|
style: ut({ color: t.node.attrs.currentItem.color })
|
|
68609
|
-
},
|
|
68648
|
+
}, Ye(t.node.attrs.value ? t.node.attrs.value : t.node.attrs.placeholder), 15, Tge)
|
|
68610
68649
|
])
|
|
68611
68650
|
]),
|
|
68612
68651
|
_: 1
|
|
@@ -69346,7 +69385,7 @@ function m6(n, e) {
|
|
|
69346
69385
|
}
|
|
69347
69386
|
function wa() {
|
|
69348
69387
|
}
|
|
69349
|
-
var ua = 0.7, Sc = 1 / ua, Qo = "\\s*([+-]?\\d+)\\s*", da = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",
|
|
69388
|
+
var ua = 0.7, Sc = 1 / ua, Qo = "\\s*([+-]?\\d+)\\s*", da = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", xr = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", gbe = /^#([0-9a-f]{3,8})$/, bbe = new RegExp(`^rgb\\(${Qo},${Qo},${Qo}\\)$`), _be = new RegExp(`^rgb\\(${xr},${xr},${xr}\\)$`), ybe = new RegExp(`^rgba\\(${Qo},${Qo},${Qo},${da}\\)$`), vbe = new RegExp(`^rgba\\(${xr},${xr},${xr},${da}\\)$`), wbe = new RegExp(`^hsl\\(${da},${xr},${xr}\\)$`), xbe = new RegExp(`^hsla\\(${da},${xr},${xr},${da}\\)$`), A4 = {
|
|
69350
69389
|
aliceblue: 15792383,
|
|
69351
69390
|
antiquewhite: 16444375,
|
|
69352
69391
|
aqua: 65535,
|
|
@@ -69833,16 +69872,16 @@ function iu(n, e, t, r, i, o) {
|
|
|
69833
69872
|
});
|
|
69834
69873
|
}
|
|
69835
69874
|
function qp(n, e) {
|
|
69836
|
-
var t =
|
|
69875
|
+
var t = cr(n, e);
|
|
69837
69876
|
if (t.state > S6) throw new Error("too late; already scheduled");
|
|
69838
69877
|
return t;
|
|
69839
69878
|
}
|
|
69840
69879
|
function Ar(n, e) {
|
|
69841
|
-
var t =
|
|
69880
|
+
var t = cr(n, e);
|
|
69842
69881
|
if (t.state > Al) throw new Error("too late; already running");
|
|
69843
69882
|
return t;
|
|
69844
69883
|
}
|
|
69845
|
-
function
|
|
69884
|
+
function cr(n, e) {
|
|
69846
69885
|
var t = n.__transition;
|
|
69847
69886
|
if (!t || !(t = t[e])) throw new Error("transition not found");
|
|
69848
69887
|
return t;
|
|
@@ -69934,7 +69973,7 @@ function jbe(n, e, t) {
|
|
|
69934
69973
|
function Qbe(n, e) {
|
|
69935
69974
|
var t = this._id;
|
|
69936
69975
|
if (n += "", arguments.length < 2) {
|
|
69937
|
-
for (var r =
|
|
69976
|
+
for (var r = cr(this.node(), t).tween, i = 0, o = r.length, s; i < o; ++i)
|
|
69938
69977
|
if ((s = r[i]).name === n)
|
|
69939
69978
|
return s.value;
|
|
69940
69979
|
return null;
|
|
@@ -69947,7 +69986,7 @@ function Hp(n, e, t) {
|
|
|
69947
69986
|
var i = Ar(this, r);
|
|
69948
69987
|
(i.value || (i.value = {}))[e] = t.apply(this, arguments);
|
|
69949
69988
|
}), function(i) {
|
|
69950
|
-
return
|
|
69989
|
+
return cr(i, r).value[e];
|
|
69951
69990
|
};
|
|
69952
69991
|
}
|
|
69953
69992
|
function C6(n, e) {
|
|
@@ -70042,7 +70081,7 @@ function c_e(n, e) {
|
|
|
70042
70081
|
}
|
|
70043
70082
|
function u_e(n) {
|
|
70044
70083
|
var e = this._id;
|
|
70045
|
-
return arguments.length ? this.each((typeof n == "function" ? l_e : c_e)(e, n)) :
|
|
70084
|
+
return arguments.length ? this.each((typeof n == "function" ? l_e : c_e)(e, n)) : cr(this.node(), e).delay;
|
|
70046
70085
|
}
|
|
70047
70086
|
function d_e(n, e) {
|
|
70048
70087
|
return function() {
|
|
@@ -70056,7 +70095,7 @@ function h_e(n, e) {
|
|
|
70056
70095
|
}
|
|
70057
70096
|
function f_e(n) {
|
|
70058
70097
|
var e = this._id;
|
|
70059
|
-
return arguments.length ? this.each((typeof n == "function" ? d_e : h_e)(e, n)) :
|
|
70098
|
+
return arguments.length ? this.each((typeof n == "function" ? d_e : h_e)(e, n)) : cr(this.node(), e).duration;
|
|
70060
70099
|
}
|
|
70061
70100
|
function p_e(n, e) {
|
|
70062
70101
|
if (typeof e != "function") throw new Error();
|
|
@@ -70066,7 +70105,7 @@ function p_e(n, e) {
|
|
|
70066
70105
|
}
|
|
70067
70106
|
function m_e(n) {
|
|
70068
70107
|
var e = this._id;
|
|
70069
|
-
return arguments.length ? this.each(p_e(e, n)) :
|
|
70108
|
+
return arguments.length ? this.each(p_e(e, n)) : cr(this.node(), e).ease;
|
|
70070
70109
|
}
|
|
70071
70110
|
function g_e(n, e) {
|
|
70072
70111
|
return function() {
|
|
@@ -70110,7 +70149,7 @@ function w_e(n, e, t) {
|
|
|
70110
70149
|
}
|
|
70111
70150
|
function x_e(n, e) {
|
|
70112
70151
|
var t = this._id;
|
|
70113
|
-
return arguments.length < 2 ?
|
|
70152
|
+
return arguments.length < 2 ? cr(this.node(), t).on.on(n) : this.each(w_e(t, n, e));
|
|
70114
70153
|
}
|
|
70115
70154
|
function k_e(n) {
|
|
70116
70155
|
return function() {
|
|
@@ -70127,7 +70166,7 @@ function C_e(n) {
|
|
|
70127
70166
|
typeof n != "function" && (n = Pp(n));
|
|
70128
70167
|
for (var r = this._groups, i = r.length, o = new Array(i), s = 0; s < i; ++s)
|
|
70129
70168
|
for (var a = r[s], l = a.length, c = o[s] = new Array(l), u, d, m = 0; m < l; ++m)
|
|
70130
|
-
(u = a[m]) && (d = n.call(u, u.__data__, m, a)) && ("__data__" in u && (d.__data__ = u.__data__), c[m] = d, iu(c[m], e, t, m, c,
|
|
70169
|
+
(u = a[m]) && (d = n.call(u, u.__data__, m, a)) && ("__data__" in u && (d.__data__ = u.__data__), c[m] = d, iu(c[m], e, t, m, c, cr(u, t)));
|
|
70131
70170
|
return new Kr(o, this._parents, e, t);
|
|
70132
70171
|
}
|
|
70133
70172
|
function E_e(n) {
|
|
@@ -70136,7 +70175,7 @@ function E_e(n) {
|
|
|
70136
70175
|
for (var r = this._groups, i = r.length, o = [], s = [], a = 0; a < i; ++a)
|
|
70137
70176
|
for (var l = r[a], c = l.length, u, d = 0; d < c; ++d)
|
|
70138
70177
|
if (u = l[d]) {
|
|
70139
|
-
for (var m = n.call(u, u.__data__, d, l), b, f =
|
|
70178
|
+
for (var m = n.call(u, u.__data__, d, l), b, f = cr(u, t), y = 0, v = m.length; y < v; ++y)
|
|
70140
70179
|
(b = m[y]) && iu(b, e, t, y, m, f);
|
|
70141
70180
|
o.push(m), s.push(u);
|
|
70142
70181
|
}
|
|
@@ -70241,7 +70280,7 @@ function G_e() {
|
|
|
70241
70280
|
for (var n = this._name, e = this._id, t = T6(), r = this._groups, i = r.length, o = 0; o < i; ++o)
|
|
70242
70281
|
for (var s = r[o], a = s.length, l, c = 0; c < a; ++c)
|
|
70243
70282
|
if (l = s[c]) {
|
|
70244
|
-
var u =
|
|
70283
|
+
var u = cr(l, e);
|
|
70245
70284
|
iu(l, n, t, c, s, {
|
|
70246
70285
|
time: u.time + u.delay + u.duration,
|
|
70247
70286
|
delay: 0,
|
|
@@ -70751,13 +70790,13 @@ const l4e = /* @__PURE__ */ Tr(a4e), c4e = {
|
|
|
70751
70790
|
function g4e(n, e, t, r, i, o) {
|
|
70752
70791
|
const s = Me("fv-button"), a = Me("fv-slider"), l = Me("media-container"), c = Me("node-view-wrapper");
|
|
70753
70792
|
return He(), rn(c, {
|
|
70754
|
-
class:
|
|
70793
|
+
class: tt(["power-editor-drawing-block-container", [{ dark: i.thisTheme === "dark" }]]),
|
|
70755
70794
|
style: ut({ "justify-content": t.node.attrs.alignCenter ? "center" : "flex-start" })
|
|
70756
70795
|
}, {
|
|
70757
70796
|
default: ie(() => [
|
|
70758
70797
|
Ut(X("div", u4e, [
|
|
70759
70798
|
X("div", d4e, [
|
|
70760
|
-
|
|
70799
|
+
ae(s, {
|
|
70761
70800
|
theme: i.thisTheme,
|
|
70762
70801
|
"font-size": 12,
|
|
70763
70802
|
borderRadius: 50,
|
|
@@ -70773,7 +70812,7 @@ function g4e(n, e, t, r, i, o) {
|
|
|
70773
70812
|
_: 1,
|
|
70774
70813
|
__: [7]
|
|
70775
70814
|
}, 8, ["theme", "disabled", "background"]),
|
|
70776
|
-
|
|
70815
|
+
ae(a, {
|
|
70777
70816
|
modelValue: i.size,
|
|
70778
70817
|
"onUpdate:modelValue": e[1] || (e[1] = (u) => i.size = u),
|
|
70779
70818
|
theme: i.thisTheme,
|
|
@@ -70786,11 +70825,11 @@ function g4e(n, e, t, r, i, o) {
|
|
|
70786
70825
|
style: { width: "150px", height: "100%", "margin-left": "5px", "margin-right": "5px" }
|
|
70787
70826
|
}, {
|
|
70788
70827
|
default: ie((u) => [
|
|
70789
|
-
X("span", h4e,
|
|
70828
|
+
X("span", h4e, Ye(u.modelValue), 1)
|
|
70790
70829
|
]),
|
|
70791
70830
|
_: 1
|
|
70792
70831
|
}, 8, ["modelValue", "theme", "color"]),
|
|
70793
|
-
|
|
70832
|
+
ae(s, {
|
|
70794
70833
|
theme: i.thisTheme,
|
|
70795
70834
|
"font-size": 12,
|
|
70796
70835
|
borderRadius: 50,
|
|
@@ -70819,14 +70858,14 @@ function g4e(n, e, t, r, i, o) {
|
|
|
70819
70858
|
onClick: (m) => i.color = u.color
|
|
70820
70859
|
}, {
|
|
70821
70860
|
default: ie(() => e[9] || (e[9] = [
|
|
70822
|
-
|
|
70861
|
+
ir(Ye(""))
|
|
70823
70862
|
])),
|
|
70824
70863
|
_: 2,
|
|
70825
70864
|
__: [9]
|
|
70826
70865
|
}, 1032, ["background", "isBoxShadow", "onClick"]))), 128))
|
|
70827
70866
|
]),
|
|
70828
70867
|
X("div", p4e, [
|
|
70829
|
-
|
|
70868
|
+
ae(s, {
|
|
70830
70869
|
class: "power-editor-d-b-btn __clear",
|
|
70831
70870
|
"font-size": 10,
|
|
70832
70871
|
borderRadius: 50,
|
|
@@ -70842,7 +70881,7 @@ function g4e(n, e, t, r, i, o) {
|
|
|
70842
70881
|
_: 1,
|
|
70843
70882
|
__: [10]
|
|
70844
70883
|
}, 8, ["background", "theme"]),
|
|
70845
|
-
|
|
70884
|
+
ae(s, {
|
|
70846
70885
|
class: "power-editor-d-b-btn __clear",
|
|
70847
70886
|
"font-size": 10,
|
|
70848
70887
|
borderRadius: 50,
|
|
@@ -70861,7 +70900,7 @@ function g4e(n, e, t, r, i, o) {
|
|
|
70861
70900
|
], 512), [
|
|
70862
70901
|
[Wt, t.editor.isEditable]
|
|
70863
70902
|
]),
|
|
70864
|
-
|
|
70903
|
+
ae(l, {
|
|
70865
70904
|
width: t.node.attrs.width,
|
|
70866
70905
|
"onUpdate:width": e[4] || (e[4] = (u) => t.node.attrs.width = u),
|
|
70867
70906
|
caption: t.node.attrs.caption,
|
|
@@ -70876,7 +70915,7 @@ function g4e(n, e, t, r, i, o) {
|
|
|
70876
70915
|
}, {
|
|
70877
70916
|
default: ie(() => [
|
|
70878
70917
|
(He(), ot("svg", {
|
|
70879
|
-
class:
|
|
70918
|
+
class: tt(["canvas-svg", [{ readonly: !t.editor.isEditable }]]),
|
|
70880
70919
|
viewBox: "0 0 500 250",
|
|
70881
70920
|
ref: "canvas"
|
|
70882
70921
|
}, [
|
|
@@ -71174,7 +71213,7 @@ const b4e = /* @__PURE__ */ on(c4e, [["render", g4e]]), _4e = Rt.create({
|
|
|
71174
71213
|
function E4e(n, e, t, r, i, o) {
|
|
71175
71214
|
const s = Me("fv-callout"), a = Me("fv-drawer");
|
|
71176
71215
|
return He(), ot("div", {
|
|
71177
|
-
class:
|
|
71216
|
+
class: tt(["power-editor-callout-base-container", [{ dark: t.theme === "dark" }]])
|
|
71178
71217
|
}, [
|
|
71179
71218
|
t.mobileMode ? Pt("", !0) : (He(), rn(s, {
|
|
71180
71219
|
key: 0,
|
|
@@ -71198,7 +71237,7 @@ function E4e(n, e, t, r, i, o) {
|
|
|
71198
71237
|
}, {
|
|
71199
71238
|
header: ie(() => [
|
|
71200
71239
|
mt(n.$slots, "header", { title: t.title }, () => [
|
|
71201
|
-
X("p", w4e,
|
|
71240
|
+
X("p", w4e, Ye(t.title), 1)
|
|
71202
71241
|
])
|
|
71203
71242
|
]),
|
|
71204
71243
|
main: ie(() => [
|
|
@@ -71211,11 +71250,11 @@ function E4e(n, e, t, r, i, o) {
|
|
|
71211
71250
|
}, 8, ["modelValue", "disabled", "theme", "popperClass", "popper-style"])),
|
|
71212
71251
|
t.mobileMode ? (He(), ot("div", x4e, [
|
|
71213
71252
|
mt(n.$slots, "trigger", { show: o.triggerShow }),
|
|
71214
|
-
|
|
71253
|
+
ae(a, {
|
|
71215
71254
|
modelValue: i.thisShow,
|
|
71216
71255
|
"onUpdate:modelValue": e[2] || (e[2] = (l) => i.thisShow = l),
|
|
71217
71256
|
theme: t.theme,
|
|
71218
|
-
class:
|
|
71257
|
+
class: tt(["power-editor-callout-base-mobile-container", [{ dark: t.theme === "dark" }]]),
|
|
71219
71258
|
length: "calc(100% - 50px)",
|
|
71220
71259
|
background: t.theme === "dark" ? "rgba(56, 56, 56, 0.9)" : "rgba(252, 252, 252, 0.9)",
|
|
71221
71260
|
"control-padding": "0px 12px",
|
|
@@ -71227,7 +71266,7 @@ function E4e(n, e, t, r, i, o) {
|
|
|
71227
71266
|
X("div", k4e, [
|
|
71228
71267
|
mt(n.$slots, "header", { title: t.title }, () => [
|
|
71229
71268
|
e[3] || (e[3] = X("p", { style: { width: "50px" } }, null, -1)),
|
|
71230
|
-
X("p", S4e,
|
|
71269
|
+
X("p", S4e, Ye(t.title), 1)
|
|
71231
71270
|
]),
|
|
71232
71271
|
X("p", {
|
|
71233
71272
|
class: "p-e-c-b-m-close",
|
|
@@ -71235,12 +71274,12 @@ function E4e(n, e, t, r, i, o) {
|
|
|
71235
71274
|
color: t.theme === "dark" ? "whitesmoke" : t.foreground
|
|
71236
71275
|
}),
|
|
71237
71276
|
onClick: e[1] || (e[1] = (l) => i.thisShow = !1)
|
|
71238
|
-
},
|
|
71277
|
+
}, Ye(o.getTitle("Cancel")), 5)
|
|
71239
71278
|
])
|
|
71240
71279
|
]),
|
|
71241
71280
|
default: ie(() => [
|
|
71242
71281
|
X("div", {
|
|
71243
|
-
class:
|
|
71282
|
+
class: tt(["p-e-c-b-m-content-block", t.popperClass])
|
|
71244
71283
|
}, [
|
|
71245
71284
|
X("div", C4e, [
|
|
71246
71285
|
mt(n.$slots, "content", { index: "2" })
|
|
@@ -71319,10 +71358,10 @@ function M4e(n, e, t, r, i, o) {
|
|
|
71319
71358
|
]),
|
|
71320
71359
|
content: ie(() => [
|
|
71321
71360
|
X("div", {
|
|
71322
|
-
class:
|
|
71361
|
+
class: tt(["power-editor-l-c-block", [{ dark: t.theme === "dark" }]])
|
|
71323
71362
|
}, [
|
|
71324
71363
|
Pt("", !0),
|
|
71325
|
-
|
|
71364
|
+
ae(s, {
|
|
71326
71365
|
modelValue: i.caption,
|
|
71327
71366
|
"onUpdate:modelValue": e[0] || (e[0] = (c) => i.caption = c),
|
|
71328
71367
|
placeholder: o.getTitle("Caption"),
|
|
@@ -71336,7 +71375,7 @@ function M4e(n, e, t, r, i, o) {
|
|
|
71336
71375
|
"focus-border-color": t.foreground,
|
|
71337
71376
|
style: { width: "100%", "margin-top": "5px" }
|
|
71338
71377
|
}, null, 8, ["modelValue", "placeholder", "theme", "background", "focus-border-color"]),
|
|
71339
|
-
|
|
71378
|
+
ae(s, {
|
|
71340
71379
|
modelValue: i.link,
|
|
71341
71380
|
"onUpdate:modelValue": e[1] || (e[1] = (c) => i.link = c),
|
|
71342
71381
|
icon: "Link",
|
|
@@ -71352,7 +71391,7 @@ function M4e(n, e, t, r, i, o) {
|
|
|
71352
71391
|
}, null, 8, ["modelValue", "placeholder", "theme", "background", "focus-border-color"])
|
|
71353
71392
|
], 2),
|
|
71354
71393
|
X("div", A4e, [
|
|
71355
|
-
|
|
71394
|
+
ae(a, {
|
|
71356
71395
|
theme: "dark",
|
|
71357
71396
|
disabled: i.link === "",
|
|
71358
71397
|
background: t.foreground,
|
|
@@ -71362,7 +71401,7 @@ function M4e(n, e, t, r, i, o) {
|
|
|
71362
71401
|
onClick: o.insert
|
|
71363
71402
|
}, {
|
|
71364
71403
|
default: ie(() => [
|
|
71365
|
-
|
|
71404
|
+
ir(Ye(o.getTitle("Insert")), 1)
|
|
71366
71405
|
]),
|
|
71367
71406
|
_: 1
|
|
71368
71407
|
}, 8, ["disabled", "background", "onClick"])
|
|
@@ -71431,10 +71470,10 @@ function I4e(n, e, t, r, i, o) {
|
|
|
71431
71470
|
]),
|
|
71432
71471
|
content: ie(() => [
|
|
71433
71472
|
X("div", {
|
|
71434
|
-
class:
|
|
71473
|
+
class: tt(["power-editor-e-c-block", [{ dark: t.theme === "dark" }]])
|
|
71435
71474
|
}, [
|
|
71436
71475
|
Pt("", !0),
|
|
71437
|
-
|
|
71476
|
+
ae(s, {
|
|
71438
71477
|
modelValue: i.caption,
|
|
71439
71478
|
"onUpdate:modelValue": e[0] || (e[0] = (c) => i.caption = c),
|
|
71440
71479
|
placeholder: o.getTitle("Caption"),
|
|
@@ -71448,7 +71487,7 @@ function I4e(n, e, t, r, i, o) {
|
|
|
71448
71487
|
background: t.theme === "dark" ? "#1a1a1a" : "#fff",
|
|
71449
71488
|
style: { width: "100%", "margin-top": "5px" }
|
|
71450
71489
|
}, null, 8, ["modelValue", "placeholder", "theme", "focus-border-color", "background"]),
|
|
71451
|
-
|
|
71490
|
+
ae(s, {
|
|
71452
71491
|
modelValue: i.link,
|
|
71453
71492
|
"onUpdate:modelValue": e[1] || (e[1] = (c) => i.link = c),
|
|
71454
71493
|
icon: "Link",
|
|
@@ -71464,7 +71503,7 @@ function I4e(n, e, t, r, i, o) {
|
|
|
71464
71503
|
}, null, 8, ["modelValue", "placeholder", "theme", "focus-border-color", "background"])
|
|
71465
71504
|
], 2),
|
|
71466
71505
|
X("div", R4e, [
|
|
71467
|
-
|
|
71506
|
+
ae(a, {
|
|
71468
71507
|
theme: "dark",
|
|
71469
71508
|
disabled: i.link === "",
|
|
71470
71509
|
background: t.foreground,
|
|
@@ -71474,7 +71513,7 @@ function I4e(n, e, t, r, i, o) {
|
|
|
71474
71513
|
onClick: o.insert
|
|
71475
71514
|
}, {
|
|
71476
71515
|
default: ie(() => [
|
|
71477
|
-
|
|
71516
|
+
ir(Ye(o.getTitle("Insert")), 1)
|
|
71478
71517
|
]),
|
|
71479
71518
|
_: 1
|
|
71480
71519
|
}, 8, ["disabled", "background", "onClick"])
|
|
@@ -71589,16 +71628,16 @@ function U4e(n, e, t, r, i, o) {
|
|
|
71589
71628
|
X("p", {
|
|
71590
71629
|
class: "power-menu-sec-title",
|
|
71591
71630
|
style: ut({ "--power-menu-sec-title-background": t.foreground })
|
|
71592
|
-
},
|
|
71631
|
+
}, Ye(o.getTitle("Foreground")), 5),
|
|
71593
71632
|
X("div", {
|
|
71594
|
-
class:
|
|
71633
|
+
class: tt(["power-editor-color-item", [{ dark: t.theme == "dark" }]]),
|
|
71595
71634
|
onClick: e[0] || (e[0] = (a) => o.execX("unsetColor"))
|
|
71596
71635
|
}, [
|
|
71597
71636
|
e[3] || (e[3] = X("p", { class: "peci-example" }, "A", -1)),
|
|
71598
|
-
X("p", P4e,
|
|
71637
|
+
X("p", P4e, Ye(o.getTitle("removeColor")), 1)
|
|
71599
71638
|
], 2),
|
|
71600
71639
|
(He(!0), ot(Vr, null, wi(i.colorList, (a, l) => (He(), ot("div", {
|
|
71601
|
-
class:
|
|
71640
|
+
class: tt(["power-editor-color-item", [{ dark: t.theme == "dark", choosen: t.editor.isActive("textStyle", { color: a.color }) }]]),
|
|
71602
71641
|
key: "color:" + l,
|
|
71603
71642
|
onClick: (c) => o.execMoreX("setColor", a.color)
|
|
71604
71643
|
}, [
|
|
@@ -71606,21 +71645,21 @@ function U4e(n, e, t, r, i, o) {
|
|
|
71606
71645
|
class: "peci-example",
|
|
71607
71646
|
style: ut({ color: a.color })
|
|
71608
71647
|
}, "A", 4),
|
|
71609
|
-
X("p", F4e,
|
|
71648
|
+
X("p", F4e, Ye(o.getTitle(a.name)), 1)
|
|
71610
71649
|
], 10, B4e))), 128)),
|
|
71611
71650
|
X("p", {
|
|
71612
71651
|
class: "power-menu-sec-title",
|
|
71613
71652
|
style: ut({ "--power-menu-sec-title-background": t.foreground })
|
|
71614
|
-
},
|
|
71653
|
+
}, Ye(o.getTitle("Highlight Background")), 5),
|
|
71615
71654
|
X("div", {
|
|
71616
|
-
class:
|
|
71655
|
+
class: tt(["power-editor-color-item", [{ dark: t.theme == "dark" }]]),
|
|
71617
71656
|
onClick: e[1] || (e[1] = (a) => o.execX("unsetHighlight"))
|
|
71618
71657
|
}, [
|
|
71619
71658
|
e[4] || (e[4] = X("p", { class: "peci-example" }, "A", -1)),
|
|
71620
|
-
X("p", z4e,
|
|
71659
|
+
X("p", z4e, Ye(o.getTitle("removeHighlight")), 1)
|
|
71621
71660
|
], 2),
|
|
71622
71661
|
(He(!0), ot(Vr, null, wi(i.highlightList, (a, l) => (He(), ot("div", {
|
|
71623
|
-
class:
|
|
71662
|
+
class: tt(["power-editor-color-item", [{ dark: t.theme == "dark", choosen: t.editor.isActive("highlight", { color: a.color }) }]]),
|
|
71624
71663
|
key: "highlight:" + l,
|
|
71625
71664
|
onClick: (c) => o.execMoreX("setHighlight", { color: a.color })
|
|
71626
71665
|
}, [
|
|
@@ -71628,7 +71667,7 @@ function U4e(n, e, t, r, i, o) {
|
|
|
71628
71667
|
class: "peci-example",
|
|
71629
71668
|
style: ut({ background: a.color })
|
|
71630
71669
|
}, "A", 4),
|
|
71631
|
-
X("p", H4e,
|
|
71670
|
+
X("p", H4e, Ye(o.getTitle(a.name)), 1)
|
|
71632
71671
|
], 10, q4e))), 128))
|
|
71633
71672
|
]),
|
|
71634
71673
|
_: 3
|
|
@@ -72863,7 +72902,7 @@ const N6 = /* @__PURE__ */ on(L4e, [["render", U4e]]), G4e = [
|
|
|
72863
72902
|
this.$emit("insert-emoji", this.emoji_list[n].emojis[e]), this.mobileMode && (this.show = !1);
|
|
72864
72903
|
}
|
|
72865
72904
|
}
|
|
72866
|
-
}, $4e = { class: "power-editor-emoji-banner" }, W4e = {
|
|
72905
|
+
}, $4e = { class: "power-editor-emoji-banner" }, W4e = { class: "emoji-title" }, K4e = { class: "title" }, j4e = { class: "power-editor-emoji-group" }, Q4e = ["innerHTML", "onClick"];
|
|
72867
72906
|
function Y4e(n, e, t, r, i, o) {
|
|
72868
72907
|
const s = Me("fv-button"), a = Me("fv-infinite-scroll-view"), l = Me("callout-base");
|
|
72869
72908
|
return He(), rn(l, {
|
|
@@ -72883,8 +72922,8 @@ function Y4e(n, e, t, r, i, o) {
|
|
|
72883
72922
|
]),
|
|
72884
72923
|
header: ie((c) => [
|
|
72885
72924
|
X("div", $4e, [
|
|
72886
|
-
X("p", W4e,
|
|
72887
|
-
|
|
72925
|
+
X("p", W4e, Ye(o.getTitle(c.title)), 1),
|
|
72926
|
+
ae(s, {
|
|
72888
72927
|
theme: t.theme,
|
|
72889
72928
|
icon: "Shuffle",
|
|
72890
72929
|
background: t.theme === "dark" ? "rgba(0, 0, 0, 0.2)" : "rgba(255, 255, 255, 0.3)",
|
|
@@ -72894,14 +72933,14 @@ function Y4e(n, e, t, r, i, o) {
|
|
|
72894
72933
|
onClick: o.insertRandom
|
|
72895
72934
|
}, {
|
|
72896
72935
|
default: ie(() => [
|
|
72897
|
-
|
|
72936
|
+
ir(Ye(o.getTitle("Random")), 1)
|
|
72898
72937
|
]),
|
|
72899
72938
|
_: 1
|
|
72900
72939
|
}, 8, ["theme", "background", "onClick"])
|
|
72901
72940
|
])
|
|
72902
72941
|
]),
|
|
72903
72942
|
content: ie(() => [
|
|
72904
|
-
|
|
72943
|
+
ae(a, {
|
|
72905
72944
|
modelValue: i.emoji_list,
|
|
72906
72945
|
"onUpdate:modelValue": e[0] || (e[0] = (c) => i.emoji_list = c),
|
|
72907
72946
|
batchSize: 1,
|
|
@@ -72912,7 +72951,7 @@ function Y4e(n, e, t, r, i, o) {
|
|
|
72912
72951
|
class: "power-editor-emoji-list",
|
|
72913
72952
|
key: `type:${d}`
|
|
72914
72953
|
}, [
|
|
72915
|
-
X("p", K4e,
|
|
72954
|
+
X("p", K4e, Ye(o.getTitle(u.name)), 1),
|
|
72916
72955
|
X("div", j4e, [
|
|
72917
72956
|
(He(!0), ot(Vr, null, wi(u.emojis, (m, b) => (He(), ot("i", {
|
|
72918
72957
|
key: b,
|
|
@@ -73005,15 +73044,15 @@ function oye(n, e, t, r, i, o) {
|
|
|
73005
73044
|
]),
|
|
73006
73045
|
content: ie((c) => [
|
|
73007
73046
|
X("div", {
|
|
73008
|
-
class:
|
|
73047
|
+
class: tt(["power-editor-i-c-block", [{ dark: t.theme === "dark" }]])
|
|
73009
73048
|
}, [
|
|
73010
|
-
X("p", J4e,
|
|
73049
|
+
X("p", J4e, Ye(o.getTitle("Method")) + " 1", 1),
|
|
73011
73050
|
X("i", {
|
|
73012
73051
|
class: "ms-Icon ms-Icon--Photo2Add power-editor-i-c-icon-1",
|
|
73013
73052
|
style: ut({ color: t.foreground }),
|
|
73014
73053
|
onClick: (u) => n.$refs[`img_local_${c.index}`].click()
|
|
73015
73054
|
}, null, 12, eye),
|
|
73016
|
-
X("p", tye,
|
|
73055
|
+
X("p", tye, Ye(o.getTitle("Choose Local Image as Base64 (multiple).")), 1),
|
|
73017
73056
|
X("input", {
|
|
73018
73057
|
type: "file",
|
|
73019
73058
|
accept: "image/gif,image/png,image/jpeg,image/x-png,image/svg+xml",
|
|
@@ -73024,10 +73063,10 @@ function oye(n, e, t, r, i, o) {
|
|
|
73024
73063
|
}, null, 40, nye)
|
|
73025
73064
|
], 2),
|
|
73026
73065
|
X("div", {
|
|
73027
|
-
class:
|
|
73066
|
+
class: tt(["power-editor-i-c-block", [{ dark: t.theme === "dark" }]])
|
|
73028
73067
|
}, [
|
|
73029
|
-
X("p", rye,
|
|
73030
|
-
|
|
73068
|
+
X("p", rye, Ye(o.getTitle("Method")) + " 2", 1),
|
|
73069
|
+
ae(s, {
|
|
73031
73070
|
modelValue: i.url,
|
|
73032
73071
|
"onUpdate:modelValue": e[0] || (e[0] = (u) => i.url = u),
|
|
73033
73072
|
placeholder: o.getTitle("Insert Image Url."),
|
|
@@ -73044,7 +73083,7 @@ function oye(n, e, t, r, i, o) {
|
|
|
73044
73083
|
}, null, 8, ["modelValue", "placeholder", "theme", "focus-border-color", "background"])
|
|
73045
73084
|
], 2),
|
|
73046
73085
|
X("div", iye, [
|
|
73047
|
-
|
|
73086
|
+
ae(a, {
|
|
73048
73087
|
theme: "dark",
|
|
73049
73088
|
disabled: i.url === "",
|
|
73050
73089
|
background: t.foreground,
|
|
@@ -73054,7 +73093,7 @@ function oye(n, e, t, r, i, o) {
|
|
|
73054
73093
|
onClick: o.insert
|
|
73055
73094
|
}, {
|
|
73056
73095
|
default: ie(() => [
|
|
73057
|
-
|
|
73096
|
+
ir(Ye(o.getTitle("Insert")), 1)
|
|
73058
73097
|
]),
|
|
73059
73098
|
_: 1
|
|
73060
73099
|
}, 8, ["disabled", "background", "onClick"])
|
|
@@ -73133,11 +73172,11 @@ function uye(n, e, t, r, i, o) {
|
|
|
73133
73172
|
]),
|
|
73134
73173
|
content: ie(() => [
|
|
73135
73174
|
(He(), ot(Vr, null, wi(6, (l) => X("div", {
|
|
73136
|
-
class:
|
|
73175
|
+
class: tt(["power-editor-heading-item", [{ dark: t.theme == "dark", choosen: t.editor.isActive("heading", { level: l }) }]]),
|
|
73137
73176
|
key: "color:" + l,
|
|
73138
73177
|
onClick: (c) => o.execMoreX("toggleHeading", { level: l })
|
|
73139
73178
|
}, [
|
|
73140
|
-
|
|
73179
|
+
ae(s, {
|
|
73141
73180
|
class: "power-editor-cmd-btn",
|
|
73142
73181
|
theme: t.theme,
|
|
73143
73182
|
isBoxShadow: !0,
|
|
@@ -73146,11 +73185,11 @@ function uye(n, e, t, r, i, o) {
|
|
|
73146
73185
|
title: o.getTitle("Heading") + l
|
|
73147
73186
|
}, {
|
|
73148
73187
|
default: ie(() => [
|
|
73149
|
-
|
|
73188
|
+
ir("H" + Ye(l), 1)
|
|
73150
73189
|
]),
|
|
73151
73190
|
_: 2
|
|
73152
73191
|
}, 1032, ["theme", "background", "foreground", "title"]),
|
|
73153
|
-
X("p", cye,
|
|
73192
|
+
X("p", cye, Ye(o.getTitle("Heading")) + " " + Ye(l), 1)
|
|
73154
73193
|
], 10, lye)), 64))
|
|
73155
73194
|
]),
|
|
73156
73195
|
_: 3
|
|
@@ -73232,7 +73271,7 @@ function mye(n, e, t, r, i, o) {
|
|
|
73232
73271
|
]),
|
|
73233
73272
|
content: ie(() => [
|
|
73234
73273
|
X("div", fye, [
|
|
73235
|
-
|
|
73274
|
+
ae(s, {
|
|
73236
73275
|
modelValue: i.row,
|
|
73237
73276
|
"onUpdate:modelValue": e[0] || (e[0] = (c) => i.row = c),
|
|
73238
73277
|
placeholder: o.getTitle("Row"),
|
|
@@ -73250,7 +73289,7 @@ function mye(n, e, t, r, i, o) {
|
|
|
73250
73289
|
withHeaderRow: !0
|
|
73251
73290
|
}), ["enter"]))
|
|
73252
73291
|
}, null, 8, ["modelValue", "placeholder", "theme", "background", "focus-border-color"]),
|
|
73253
|
-
|
|
73292
|
+
ae(s, {
|
|
73254
73293
|
modelValue: i.column,
|
|
73255
73294
|
"onUpdate:modelValue": e[2] || (e[2] = (c) => i.column = c),
|
|
73256
73295
|
placeholder: o.getTitle("Column"),
|
|
@@ -73268,7 +73307,7 @@ function mye(n, e, t, r, i, o) {
|
|
|
73268
73307
|
withHeaderRow: !0
|
|
73269
73308
|
}), ["enter"]))
|
|
73270
73309
|
}, null, 8, ["modelValue", "placeholder", "theme", "background", "focus-border-color"]),
|
|
73271
|
-
|
|
73310
|
+
ae(a, {
|
|
73272
73311
|
theme: "dark",
|
|
73273
73312
|
disabled: !i.row || !i.column || isNaN(i.row) || isNaN(i.column),
|
|
73274
73313
|
"is-box-shadow": !0,
|
|
@@ -73289,7 +73328,7 @@ function mye(n, e, t, r, i, o) {
|
|
|
73289
73328
|
}, 8, ["disabled", "background"])
|
|
73290
73329
|
]),
|
|
73291
73330
|
X("div", pye, [
|
|
73292
|
-
|
|
73331
|
+
ae(a, {
|
|
73293
73332
|
theme: "dark",
|
|
73294
73333
|
class: "power-editor-table-control-item",
|
|
73295
73334
|
background: "rgba(212, 78, 82, 1)",
|
|
@@ -73303,7 +73342,7 @@ function mye(n, e, t, r, i, o) {
|
|
|
73303
73342
|
_: 1,
|
|
73304
73343
|
__: [15]
|
|
73305
73344
|
}, 8, ["title"]),
|
|
73306
|
-
|
|
73345
|
+
ae(a, {
|
|
73307
73346
|
theme: "dark",
|
|
73308
73347
|
class: "power-editor-table-control-item",
|
|
73309
73348
|
background: "rgba(212, 78, 82, 1)",
|
|
@@ -73318,7 +73357,7 @@ function mye(n, e, t, r, i, o) {
|
|
|
73318
73357
|
__: [16]
|
|
73319
73358
|
}, 8, ["title"]),
|
|
73320
73359
|
e[23] || (e[23] = X("hr", null, null, -1)),
|
|
73321
|
-
|
|
73360
|
+
ae(a, {
|
|
73322
73361
|
theme: "dark",
|
|
73323
73362
|
class: "power-editor-table-control-item",
|
|
73324
73363
|
background: t.foreground,
|
|
@@ -73332,7 +73371,7 @@ function mye(n, e, t, r, i, o) {
|
|
|
73332
73371
|
_: 1,
|
|
73333
73372
|
__: [17]
|
|
73334
73373
|
}, 8, ["background", "title"]),
|
|
73335
|
-
|
|
73374
|
+
ae(a, {
|
|
73336
73375
|
theme: "dark",
|
|
73337
73376
|
class: "power-editor-table-control-item",
|
|
73338
73377
|
background: t.foreground,
|
|
@@ -73349,7 +73388,7 @@ function mye(n, e, t, r, i, o) {
|
|
|
73349
73388
|
_: 1,
|
|
73350
73389
|
__: [18]
|
|
73351
73390
|
}, 8, ["background", "title"]),
|
|
73352
|
-
|
|
73391
|
+
ae(a, {
|
|
73353
73392
|
theme: "dark",
|
|
73354
73393
|
class: "power-editor-table-control-item",
|
|
73355
73394
|
background: t.foreground,
|
|
@@ -73366,7 +73405,7 @@ function mye(n, e, t, r, i, o) {
|
|
|
73366
73405
|
_: 1,
|
|
73367
73406
|
__: [19]
|
|
73368
73407
|
}, 8, ["background", "title"]),
|
|
73369
|
-
|
|
73408
|
+
ae(a, {
|
|
73370
73409
|
theme: "dark",
|
|
73371
73410
|
class: "power-editor-table-control-item",
|
|
73372
73411
|
background: t.foreground,
|
|
@@ -73384,7 +73423,7 @@ function mye(n, e, t, r, i, o) {
|
|
|
73384
73423
|
__: [20]
|
|
73385
73424
|
}, 8, ["background", "title"]),
|
|
73386
73425
|
e[24] || (e[24] = X("hr", null, null, -1)),
|
|
73387
|
-
|
|
73426
|
+
ae(a, {
|
|
73388
73427
|
theme: t.theme,
|
|
73389
73428
|
class: "power-editor-table-control-item",
|
|
73390
73429
|
"is-box-shadow": !0,
|
|
@@ -73397,7 +73436,7 @@ function mye(n, e, t, r, i, o) {
|
|
|
73397
73436
|
_: 1,
|
|
73398
73437
|
__: [21]
|
|
73399
73438
|
}, 8, ["theme", "title"]),
|
|
73400
|
-
|
|
73439
|
+
ae(a, {
|
|
73401
73440
|
theme: t.theme,
|
|
73402
73441
|
class: "power-editor-table-control-item",
|
|
73403
73442
|
"is-box-shadow": !0,
|
|
@@ -73568,11 +73607,11 @@ const R6 = /* @__PURE__ */ on(hye, [["render", mye]]), gye = {
|
|
|
73568
73607
|
function bye(n, e, t, r, i, o) {
|
|
73569
73608
|
const s = Me("fv-button"), a = Me("heading-callout"), l = Me("color-callout"), c = Me("emoji-callout"), u = Me("table-callout"), d = Me("image-callout"), m = Me("link-callout"), b = Me("embed-callout");
|
|
73570
73609
|
return He(), ot("div", {
|
|
73571
|
-
class:
|
|
73610
|
+
class: tt(["power-editor-tool-bar-container", [{ dark: i.thisTheme === "dark" }]]),
|
|
73572
73611
|
style: ut({ height: `${t.toolbarHeight}px`, "border-radius": `${t.toolbarBorderRadius}px` })
|
|
73573
73612
|
}, [
|
|
73574
73613
|
mt(n.$slots, "custom-buttons-front", { defaultClass: "power-editor-cmd-btn" }),
|
|
73575
|
-
Ut(
|
|
73614
|
+
Ut(ae(s, {
|
|
73576
73615
|
class: "power-editor-cmd-btn",
|
|
73577
73616
|
theme: i.thisTheme,
|
|
73578
73617
|
"border-color": "transparent",
|
|
@@ -73593,7 +73632,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
73593
73632
|
[Wt, t.showSave]
|
|
73594
73633
|
]),
|
|
73595
73634
|
mt(n.$slots, "custom-buttons-0", { defaultClass: "power-editor-cmd-btn" }),
|
|
73596
|
-
|
|
73635
|
+
ae(s, {
|
|
73597
73636
|
class: "power-editor-cmd-btn",
|
|
73598
73637
|
theme: i.thisTheme,
|
|
73599
73638
|
"border-color": "transparent",
|
|
@@ -73608,7 +73647,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
73608
73647
|
_: 1,
|
|
73609
73648
|
__: [24]
|
|
73610
73649
|
}, 8, ["theme", "background", "foreground", "title"]),
|
|
73611
|
-
|
|
73650
|
+
ae(s, {
|
|
73612
73651
|
class: "power-editor-cmd-btn",
|
|
73613
73652
|
theme: i.thisTheme,
|
|
73614
73653
|
"border-color": "transparent",
|
|
@@ -73623,7 +73662,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
73623
73662
|
_: 1,
|
|
73624
73663
|
__: [25]
|
|
73625
73664
|
}, 8, ["theme", "background", "foreground", "title"]),
|
|
73626
|
-
|
|
73665
|
+
ae(s, {
|
|
73627
73666
|
class: "power-editor-cmd-btn",
|
|
73628
73667
|
theme: i.thisTheme,
|
|
73629
73668
|
"border-color": "transparent",
|
|
@@ -73638,7 +73677,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
73638
73677
|
_: 1,
|
|
73639
73678
|
__: [26]
|
|
73640
73679
|
}, 8, ["theme", "background", "foreground", "title"]),
|
|
73641
|
-
|
|
73680
|
+
ae(s, {
|
|
73642
73681
|
class: "power-editor-cmd-btn",
|
|
73643
73682
|
theme: i.thisTheme,
|
|
73644
73683
|
"border-color": "transparent",
|
|
@@ -73653,7 +73692,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
73653
73692
|
_: 1,
|
|
73654
73693
|
__: [27]
|
|
73655
73694
|
}, 8, ["theme", "background", "foreground", "title"]),
|
|
73656
|
-
|
|
73695
|
+
ae(s, {
|
|
73657
73696
|
class: "power-editor-cmd-btn",
|
|
73658
73697
|
theme: i.thisTheme,
|
|
73659
73698
|
"border-color": "transparent",
|
|
@@ -73668,7 +73707,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
73668
73707
|
_: 1,
|
|
73669
73708
|
__: [28]
|
|
73670
73709
|
}, 8, ["theme", "background", "foreground", "title"]),
|
|
73671
|
-
|
|
73710
|
+
ae(s, {
|
|
73672
73711
|
class: "power-editor-cmd-btn",
|
|
73673
73712
|
theme: i.thisTheme,
|
|
73674
73713
|
"border-color": "transparent",
|
|
@@ -73683,7 +73722,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
73683
73722
|
_: 1,
|
|
73684
73723
|
__: [29]
|
|
73685
73724
|
}, 8, ["theme", "background", "foreground", "title"]),
|
|
73686
|
-
|
|
73725
|
+
ae(s, {
|
|
73687
73726
|
class: "power-editor-cmd-btn",
|
|
73688
73727
|
theme: i.thisTheme,
|
|
73689
73728
|
"border-color": "transparent",
|
|
@@ -73701,7 +73740,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
73701
73740
|
}, 8, ["theme", "background", "foreground", "title", "onClick", "onDblclickCapture"]),
|
|
73702
73741
|
mt(n.$slots, "custom-buttons-1", { defaultClass: "power-editor-cmd-btn" }),
|
|
73703
73742
|
e[57] || (e[57] = X("hr", null, null, -1)),
|
|
73704
|
-
|
|
73743
|
+
ae(s, {
|
|
73705
73744
|
class: "power-editor-cmd-btn",
|
|
73706
73745
|
theme: i.thisTheme,
|
|
73707
73746
|
"border-color": "transparent",
|
|
@@ -73716,7 +73755,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
73716
73755
|
_: 1,
|
|
73717
73756
|
__: [31]
|
|
73718
73757
|
}, 8, ["theme", "background", "foreground", "title"]),
|
|
73719
|
-
|
|
73758
|
+
ae(s, {
|
|
73720
73759
|
class: "power-editor-cmd-btn",
|
|
73721
73760
|
theme: i.thisTheme,
|
|
73722
73761
|
"border-color": "transparent",
|
|
@@ -73731,7 +73770,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
73731
73770
|
_: 1,
|
|
73732
73771
|
__: [32]
|
|
73733
73772
|
}, 8, ["theme", "background", "foreground", "title"]),
|
|
73734
|
-
|
|
73773
|
+
ae(a, {
|
|
73735
73774
|
mobileMode: t.mobileMode,
|
|
73736
73775
|
foreground: t.foreground,
|
|
73737
73776
|
theme: i.thisTheme,
|
|
@@ -73742,7 +73781,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
73742
73781
|
execMore: o.execMore
|
|
73743
73782
|
}, {
|
|
73744
73783
|
default: ie((f) => [
|
|
73745
|
-
|
|
73784
|
+
ae(s, {
|
|
73746
73785
|
class: "power-editor-cmd-btn",
|
|
73747
73786
|
theme: i.thisTheme,
|
|
73748
73787
|
"border-color": "transparent",
|
|
@@ -73760,7 +73799,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
73760
73799
|
]),
|
|
73761
73800
|
_: 1
|
|
73762
73801
|
}, 8, ["mobileMode", "foreground", "theme", "language", "editor", "getBackground", "getForeground", "execMore"]),
|
|
73763
|
-
|
|
73802
|
+
ae(s, {
|
|
73764
73803
|
class: "power-editor-cmd-btn",
|
|
73765
73804
|
theme: i.thisTheme,
|
|
73766
73805
|
"border-color": "transparent",
|
|
@@ -73775,7 +73814,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
73775
73814
|
_: 1,
|
|
73776
73815
|
__: [34]
|
|
73777
73816
|
}, 8, ["theme", "background", "foreground", "title"]),
|
|
73778
|
-
|
|
73817
|
+
ae(s, {
|
|
73779
73818
|
class: "power-editor-cmd-btn",
|
|
73780
73819
|
theme: i.thisTheme,
|
|
73781
73820
|
"border-color": "transparent",
|
|
@@ -73790,7 +73829,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
73790
73829
|
_: 1,
|
|
73791
73830
|
__: [35]
|
|
73792
73831
|
}, 8, ["theme", "background", "foreground", "title"]),
|
|
73793
|
-
|
|
73832
|
+
ae(s, {
|
|
73794
73833
|
class: "power-editor-cmd-btn",
|
|
73795
73834
|
theme: i.thisTheme,
|
|
73796
73835
|
"border-color": "transparent",
|
|
@@ -73805,7 +73844,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
73805
73844
|
_: 1,
|
|
73806
73845
|
__: [36]
|
|
73807
73846
|
}, 8, ["theme", "background", "foreground", "title"]),
|
|
73808
|
-
|
|
73847
|
+
ae(s, {
|
|
73809
73848
|
class: "power-editor-cmd-btn",
|
|
73810
73849
|
theme: i.thisTheme,
|
|
73811
73850
|
"border-color": "transparent",
|
|
@@ -73824,7 +73863,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
73824
73863
|
}, 8, ["theme", "background", "foreground", "title"]),
|
|
73825
73864
|
mt(n.$slots, "custom-buttons-2", { defaultClass: "power-editor-cmd-btn" }),
|
|
73826
73865
|
e[58] || (e[58] = X("hr", null, null, -1)),
|
|
73827
|
-
|
|
73866
|
+
ae(s, {
|
|
73828
73867
|
class: "power-editor-cmd-btn",
|
|
73829
73868
|
theme: i.thisTheme,
|
|
73830
73869
|
"border-color": "transparent",
|
|
@@ -73839,7 +73878,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
73839
73878
|
_: 1,
|
|
73840
73879
|
__: [38]
|
|
73841
73880
|
}, 8, ["theme", "background", "foreground", "title"]),
|
|
73842
|
-
|
|
73881
|
+
ae(s, {
|
|
73843
73882
|
class: "power-editor-cmd-btn",
|
|
73844
73883
|
theme: i.thisTheme,
|
|
73845
73884
|
"border-color": "transparent",
|
|
@@ -73857,7 +73896,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
73857
73896
|
Pt("", !0),
|
|
73858
73897
|
mt(n.$slots, "custom-buttons-3", { defaultClass: "power-editor-cmd-btn" }),
|
|
73859
73898
|
e[59] || (e[59] = X("hr", null, null, -1)),
|
|
73860
|
-
|
|
73899
|
+
ae(s, {
|
|
73861
73900
|
class: "power-editor-cmd-btn",
|
|
73862
73901
|
theme: i.thisTheme,
|
|
73863
73902
|
"border-color": "transparent",
|
|
@@ -73872,7 +73911,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
73872
73911
|
_: 1,
|
|
73873
73912
|
__: [41]
|
|
73874
73913
|
}, 8, ["theme", "background", "foreground", "title"]),
|
|
73875
|
-
|
|
73914
|
+
ae(s, {
|
|
73876
73915
|
class: "power-editor-cmd-btn",
|
|
73877
73916
|
theme: i.thisTheme,
|
|
73878
73917
|
"border-color": "transparent",
|
|
@@ -73887,7 +73926,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
73887
73926
|
_: 1,
|
|
73888
73927
|
__: [42]
|
|
73889
73928
|
}, 8, ["theme", "background", "foreground", "title"]),
|
|
73890
|
-
|
|
73929
|
+
ae(s, {
|
|
73891
73930
|
class: "power-editor-cmd-btn",
|
|
73892
73931
|
theme: i.thisTheme,
|
|
73893
73932
|
"border-color": "transparent",
|
|
@@ -73902,7 +73941,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
73902
73941
|
_: 1,
|
|
73903
73942
|
__: [43]
|
|
73904
73943
|
}, 8, ["theme", "background", "foreground", "title"]),
|
|
73905
|
-
|
|
73944
|
+
ae(s, {
|
|
73906
73945
|
class: "power-editor-cmd-btn",
|
|
73907
73946
|
theme: i.thisTheme,
|
|
73908
73947
|
"border-color": "transparent",
|
|
@@ -73922,7 +73961,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
73922
73961
|
Pt("", !0),
|
|
73923
73962
|
mt(n.$slots, "custom-buttons-4", { defaultClass: "power-editor-cmd-btn" }),
|
|
73924
73963
|
e[60] || (e[60] = X("hr", null, null, -1)),
|
|
73925
|
-
|
|
73964
|
+
ae(l, {
|
|
73926
73965
|
mobileMode: t.mobileMode,
|
|
73927
73966
|
foreground: t.foreground,
|
|
73928
73967
|
theme: i.thisTheme,
|
|
@@ -73934,7 +73973,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
73934
73973
|
execMore: o.execMore
|
|
73935
73974
|
}, {
|
|
73936
73975
|
default: ie((f) => [
|
|
73937
|
-
|
|
73976
|
+
ae(s, {
|
|
73938
73977
|
class: "power-editor-cmd-btn",
|
|
73939
73978
|
theme: i.thisTheme,
|
|
73940
73979
|
"border-color": "transparent",
|
|
@@ -73952,7 +73991,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
73952
73991
|
]),
|
|
73953
73992
|
_: 1
|
|
73954
73993
|
}, 8, ["mobileMode", "foreground", "theme", "language", "editor", "getBackground", "getForeground", "exec", "execMore"]),
|
|
73955
|
-
|
|
73994
|
+
ae(s, {
|
|
73956
73995
|
class: "power-editor-cmd-btn",
|
|
73957
73996
|
theme: i.thisTheme,
|
|
73958
73997
|
"border-color": "transparent",
|
|
@@ -73967,7 +74006,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
73967
74006
|
_: 1,
|
|
73968
74007
|
__: [48]
|
|
73969
74008
|
}, 8, ["theme", "background", "foreground", "title", "onClick"]),
|
|
73970
|
-
|
|
74009
|
+
ae(c, {
|
|
73971
74010
|
mobileMode: t.mobileMode,
|
|
73972
74011
|
foreground: t.foreground,
|
|
73973
74012
|
theme: i.thisTheme,
|
|
@@ -73976,7 +74015,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
73976
74015
|
onInsertEmoji: o.insertEmoji
|
|
73977
74016
|
}, {
|
|
73978
74017
|
default: ie((f) => [
|
|
73979
|
-
|
|
74018
|
+
ae(s, {
|
|
73980
74019
|
class: "power-editor-cmd-btn",
|
|
73981
74020
|
theme: i.thisTheme,
|
|
73982
74021
|
"border-color": "transparent",
|
|
@@ -73994,7 +74033,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
73994
74033
|
]),
|
|
73995
74034
|
_: 1
|
|
73996
74035
|
}, 8, ["mobileMode", "foreground", "theme", "language", "editor", "onInsertEmoji"]),
|
|
73997
|
-
|
|
74036
|
+
ae(u, {
|
|
73998
74037
|
mobileMode: t.mobileMode,
|
|
73999
74038
|
foreground: t.foreground,
|
|
74000
74039
|
theme: i.thisTheme,
|
|
@@ -74004,7 +74043,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
74004
74043
|
execMore: o.execMore
|
|
74005
74044
|
}, {
|
|
74006
74045
|
default: ie((f) => [
|
|
74007
|
-
|
|
74046
|
+
ae(s, {
|
|
74008
74047
|
class: "power-editor-cmd-btn",
|
|
74009
74048
|
theme: i.thisTheme,
|
|
74010
74049
|
"border-color": "transparent",
|
|
@@ -74022,7 +74061,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
74022
74061
|
]),
|
|
74023
74062
|
_: 1
|
|
74024
74063
|
}, 8, ["mobileMode", "foreground", "theme", "language", "editor", "exec", "execMore"]),
|
|
74025
|
-
|
|
74064
|
+
ae(s, {
|
|
74026
74065
|
class: "power-editor-cmd-btn",
|
|
74027
74066
|
theme: i.thisTheme,
|
|
74028
74067
|
"border-color": "transparent",
|
|
@@ -74037,7 +74076,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
74037
74076
|
_: 1,
|
|
74038
74077
|
__: [51]
|
|
74039
74078
|
}, 8, ["theme", "background", "foreground", "title"]),
|
|
74040
|
-
|
|
74079
|
+
ae(s, {
|
|
74041
74080
|
class: "power-editor-cmd-btn",
|
|
74042
74081
|
theme: i.thisTheme,
|
|
74043
74082
|
"border-color": "transparent",
|
|
@@ -74052,7 +74091,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
74052
74091
|
_: 1,
|
|
74053
74092
|
__: [52]
|
|
74054
74093
|
}, 8, ["theme", "background", "foreground", "title", "onClick"]),
|
|
74055
|
-
|
|
74094
|
+
ae(s, {
|
|
74056
74095
|
class: "power-editor-cmd-btn",
|
|
74057
74096
|
theme: i.thisTheme,
|
|
74058
74097
|
"border-color": "transparent",
|
|
@@ -74067,7 +74106,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
74067
74106
|
_: 1,
|
|
74068
74107
|
__: [53]
|
|
74069
74108
|
}, 8, ["theme", "background", "foreground", "title"]),
|
|
74070
|
-
|
|
74109
|
+
ae(d, {
|
|
74071
74110
|
mobileMode: t.mobileMode,
|
|
74072
74111
|
foreground: t.foreground,
|
|
74073
74112
|
theme: i.thisTheme,
|
|
@@ -74075,7 +74114,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
74075
74114
|
onInsertImage: o.insertImg
|
|
74076
74115
|
}, {
|
|
74077
74116
|
default: ie((f) => [
|
|
74078
|
-
|
|
74117
|
+
ae(s, {
|
|
74079
74118
|
class: "power-editor-cmd-btn",
|
|
74080
74119
|
theme: i.thisTheme,
|
|
74081
74120
|
"border-color": "transparent",
|
|
@@ -74093,7 +74132,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
74093
74132
|
]),
|
|
74094
74133
|
_: 1
|
|
74095
74134
|
}, 8, ["mobileMode", "foreground", "theme", "language", "onInsertImage"]),
|
|
74096
|
-
|
|
74135
|
+
ae(m, {
|
|
74097
74136
|
mobileMode: t.mobileMode,
|
|
74098
74137
|
foreground: t.foreground,
|
|
74099
74138
|
theme: i.thisTheme,
|
|
@@ -74101,7 +74140,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
74101
74140
|
onInsertLink: o.insertLink
|
|
74102
74141
|
}, {
|
|
74103
74142
|
default: ie((f) => [
|
|
74104
|
-
|
|
74143
|
+
ae(s, {
|
|
74105
74144
|
class: "power-editor-cmd-btn",
|
|
74106
74145
|
theme: i.thisTheme,
|
|
74107
74146
|
"border-color": "transparent",
|
|
@@ -74119,7 +74158,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
74119
74158
|
]),
|
|
74120
74159
|
_: 1
|
|
74121
74160
|
}, 8, ["mobileMode", "foreground", "theme", "language", "onInsertLink"]),
|
|
74122
|
-
|
|
74161
|
+
ae(b, {
|
|
74123
74162
|
mobileMode: t.mobileMode,
|
|
74124
74163
|
foreground: t.foreground,
|
|
74125
74164
|
theme: i.thisTheme,
|
|
@@ -74127,7 +74166,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
74127
74166
|
onInsertEmbed: o.insertEmbed
|
|
74128
74167
|
}, {
|
|
74129
74168
|
default: ie((f) => [
|
|
74130
|
-
|
|
74169
|
+
ae(s, {
|
|
74131
74170
|
class: "power-editor-cmd-btn",
|
|
74132
74171
|
theme: i.thisTheme,
|
|
74133
74172
|
"border-color": "transparent",
|
|
@@ -74287,9 +74326,9 @@ const I6 = /* @__PURE__ */ on(gye, [["render", bye]]), _ye = {
|
|
|
74287
74326
|
function yye(n, e, t, r, i, o) {
|
|
74288
74327
|
const s = Me("fv-button"), a = Me("color-callout"), l = Me("table-callout");
|
|
74289
74328
|
return He(), ot("div", {
|
|
74290
|
-
class:
|
|
74329
|
+
class: tt(["power-editor-bubble-tool-bar-container", [{ dark: i.thisTheme === "dark" }]])
|
|
74291
74330
|
}, [
|
|
74292
|
-
|
|
74331
|
+
ae(s, {
|
|
74293
74332
|
class: "power-editor-bubble-cmd-btn",
|
|
74294
74333
|
theme: i.thisTheme,
|
|
74295
74334
|
background: o.getBackground(t.editor.isActive("bold")),
|
|
@@ -74304,7 +74343,7 @@ function yye(n, e, t, r, i, o) {
|
|
|
74304
74343
|
_: 1,
|
|
74305
74344
|
__: [7]
|
|
74306
74345
|
}, 8, ["theme", "background", "foreground", "title"]),
|
|
74307
|
-
|
|
74346
|
+
ae(s, {
|
|
74308
74347
|
class: "power-editor-bubble-cmd-btn",
|
|
74309
74348
|
theme: i.thisTheme,
|
|
74310
74349
|
background: o.getBackground(t.editor.isActive("italic")),
|
|
@@ -74319,7 +74358,7 @@ function yye(n, e, t, r, i, o) {
|
|
|
74319
74358
|
_: 1,
|
|
74320
74359
|
__: [8]
|
|
74321
74360
|
}, 8, ["theme", "background", "foreground", "title"]),
|
|
74322
|
-
|
|
74361
|
+
ae(s, {
|
|
74323
74362
|
class: "power-editor-bubble-cmd-btn",
|
|
74324
74363
|
theme: i.thisTheme,
|
|
74325
74364
|
background: o.getBackground(t.editor.isActive("strike")),
|
|
@@ -74334,7 +74373,7 @@ function yye(n, e, t, r, i, o) {
|
|
|
74334
74373
|
_: 1,
|
|
74335
74374
|
__: [9]
|
|
74336
74375
|
}, 8, ["theme", "background", "foreground", "title"]),
|
|
74337
|
-
|
|
74376
|
+
ae(s, {
|
|
74338
74377
|
class: "power-editor-bubble-cmd-btn",
|
|
74339
74378
|
theme: i.thisTheme,
|
|
74340
74379
|
background: o.getBackground(t.editor.isActive("underline")),
|
|
@@ -74350,7 +74389,7 @@ function yye(n, e, t, r, i, o) {
|
|
|
74350
74389
|
__: [10]
|
|
74351
74390
|
}, 8, ["theme", "background", "foreground", "title"]),
|
|
74352
74391
|
e[18] || (e[18] = X("hr", null, null, -1)),
|
|
74353
|
-
|
|
74392
|
+
ae(s, {
|
|
74354
74393
|
class: "power-editor-bubble-cmd-btn",
|
|
74355
74394
|
theme: i.thisTheme,
|
|
74356
74395
|
background: o.getBackground(o.showFormatPainter),
|
|
@@ -74366,7 +74405,7 @@ function yye(n, e, t, r, i, o) {
|
|
|
74366
74405
|
_: 1,
|
|
74367
74406
|
__: [11]
|
|
74368
74407
|
}, 8, ["theme", "background", "foreground", "title", "onClick", "onDblclickCapture"]),
|
|
74369
|
-
|
|
74408
|
+
ae(s, {
|
|
74370
74409
|
class: "power-editor-bubble-cmd-btn",
|
|
74371
74410
|
theme: i.thisTheme,
|
|
74372
74411
|
background: o.getBackground(!1),
|
|
@@ -74383,7 +74422,7 @@ function yye(n, e, t, r, i, o) {
|
|
|
74383
74422
|
_: 1,
|
|
74384
74423
|
__: [12]
|
|
74385
74424
|
}, 8, ["theme", "background", "foreground", "title"]),
|
|
74386
|
-
|
|
74425
|
+
ae(a, {
|
|
74387
74426
|
mobileMode: t.mobileMode,
|
|
74388
74427
|
foreground: t.foreground,
|
|
74389
74428
|
theme: i.thisTheme,
|
|
@@ -74395,7 +74434,7 @@ function yye(n, e, t, r, i, o) {
|
|
|
74395
74434
|
execMore: o.execMore
|
|
74396
74435
|
}, {
|
|
74397
74436
|
default: ie((c) => [
|
|
74398
|
-
|
|
74437
|
+
ae(s, {
|
|
74399
74438
|
class: "power-editor-bubble-cmd-btn",
|
|
74400
74439
|
theme: i.thisTheme,
|
|
74401
74440
|
background: o.getBackground(!1),
|
|
@@ -74413,7 +74452,7 @@ function yye(n, e, t, r, i, o) {
|
|
|
74413
74452
|
]),
|
|
74414
74453
|
_: 1
|
|
74415
74454
|
}, 8, ["mobileMode", "foreground", "theme", "language", "editor", "getBackground", "getForeground", "exec", "execMore"]),
|
|
74416
|
-
|
|
74455
|
+
ae(l, {
|
|
74417
74456
|
mobileMode: t.mobileMode,
|
|
74418
74457
|
foreground: t.foreground,
|
|
74419
74458
|
theme: i.thisTheme,
|
|
@@ -74423,7 +74462,7 @@ function yye(n, e, t, r, i, o) {
|
|
|
74423
74462
|
execMore: o.execMore
|
|
74424
74463
|
}, {
|
|
74425
74464
|
default: ie((c) => [
|
|
74426
|
-
|
|
74465
|
+
ae(s, {
|
|
74427
74466
|
class: "power-editor-bubble-cmd-btn",
|
|
74428
74467
|
theme: i.thisTheme,
|
|
74429
74468
|
background: o.getBackground(!1),
|
|
@@ -74441,7 +74480,7 @@ function yye(n, e, t, r, i, o) {
|
|
|
74441
74480
|
]),
|
|
74442
74481
|
_: 1
|
|
74443
74482
|
}, 8, ["mobileMode", "foreground", "theme", "language", "editor", "exec", "execMore"]),
|
|
74444
|
-
|
|
74483
|
+
ae(s, {
|
|
74445
74484
|
class: "power-editor-bubble-cmd-btn",
|
|
74446
74485
|
theme: i.thisTheme,
|
|
74447
74486
|
background: o.getBackground(t.editor.isActive("code")),
|
|
@@ -74456,7 +74495,7 @@ function yye(n, e, t, r, i, o) {
|
|
|
74456
74495
|
_: 1,
|
|
74457
74496
|
__: [15]
|
|
74458
74497
|
}, 8, ["theme", "background", "foreground", "title"]),
|
|
74459
|
-
|
|
74498
|
+
ae(s, {
|
|
74460
74499
|
class: "power-editor-bubble-cmd-btn",
|
|
74461
74500
|
theme: i.thisTheme,
|
|
74462
74501
|
background: o.getBackground(t.editor.isActive("equationBlock")),
|
|
@@ -74471,7 +74510,7 @@ function yye(n, e, t, r, i, o) {
|
|
|
74471
74510
|
_: 1,
|
|
74472
74511
|
__: [16]
|
|
74473
74512
|
}, 8, ["theme", "background", "foreground", "title", "onClick"]),
|
|
74474
|
-
|
|
74513
|
+
ae(s, {
|
|
74475
74514
|
class: "power-editor-bubble-cmd-btn",
|
|
74476
74515
|
theme: i.thisTheme,
|
|
74477
74516
|
background: o.getBackground(t.editor.isActive("codeBlock")),
|
|
@@ -74516,7 +74555,10 @@ const O6 = /* @__PURE__ */ on(_ye, [["render", yye]]), vye = {
|
|
|
74516
74555
|
this.propsSync();
|
|
74517
74556
|
},
|
|
74518
74557
|
theme() {
|
|
74519
|
-
|
|
74558
|
+
var n;
|
|
74559
|
+
this.propsSync(), (n = this.editor) != null && n.view && this.editor.view.dispatch(
|
|
74560
|
+
this.editor.state.tr.setMeta("theme-change", this.theme)
|
|
74561
|
+
);
|
|
74520
74562
|
}
|
|
74521
74563
|
},
|
|
74522
74564
|
computed: {
|
|
@@ -74890,9 +74932,9 @@ const O6 = /* @__PURE__ */ on(_ye, [["render", yye]]), vye = {
|
|
|
74890
74932
|
// this is a function
|
|
74891
74933
|
focus: () => i.focus()
|
|
74892
74934
|
}), (o, s) => (He(), ot("div", {
|
|
74893
|
-
class:
|
|
74935
|
+
class: tt(["power-editor-container", [{ dark: n.theme === "dark" }]])
|
|
74894
74936
|
}, [
|
|
74895
|
-
|
|
74937
|
+
ae(Dc, { name: "power-editor-tool-bar-fade-in" }, {
|
|
74896
74938
|
default: ie(() => [
|
|
74897
74939
|
o.editor && n.editable ? Ut((He(), rn(I6, {
|
|
74898
74940
|
key: 0,
|
|
@@ -74967,7 +75009,7 @@ const O6 = /* @__PURE__ */ on(_ye, [["render", yye]]), vye = {
|
|
|
74967
75009
|
[Wt, n.showToolBar]
|
|
74968
75010
|
]) : Pt("", !0),
|
|
74969
75011
|
X("div", {
|
|
74970
|
-
class:
|
|
75012
|
+
class: tt([[{ "read-only": !n.editable || !n.showToolBar }], "tip-tap-editor-container"]),
|
|
74971
75013
|
ref: "container",
|
|
74972
75014
|
style: ut({
|
|
74973
75015
|
"padding-top": n.editable && n.showToolBar ? `${n.editablePaddingTop ? n.editablePaddingTop : n.toolbarHeight + 10}px` : `${n.readOnlyPaddingTop}px`,
|
|
@@ -74980,8 +75022,8 @@ const O6 = /* @__PURE__ */ on(_ye, [["render", yye]]), vye = {
|
|
|
74980
75022
|
})
|
|
74981
75023
|
}, [
|
|
74982
75024
|
mt(o.$slots, "front-content"),
|
|
74983
|
-
|
|
74984
|
-
class:
|
|
75025
|
+
ae(Bh(i2), {
|
|
75026
|
+
class: tt(["tip-tap-editor", [{ "format-painter": o.showFormatPainter }]]),
|
|
74985
75027
|
editor: o.editor,
|
|
74986
75028
|
theme: n.theme,
|
|
74987
75029
|
ref: "editor",
|
|
@@ -75002,7 +75044,7 @@ const O6 = /* @__PURE__ */ on(_ye, [["render", yye]]), vye = {
|
|
|
75002
75044
|
"should-show": o.bubbleMenuShouldShow
|
|
75003
75045
|
}, {
|
|
75004
75046
|
default: ie(() => [
|
|
75005
|
-
|
|
75047
|
+
ae(O6, {
|
|
75006
75048
|
editor: o.editor,
|
|
75007
75049
|
theme: n.theme,
|
|
75008
75050
|
foreground: n.foreground,
|
|
@@ -75038,11 +75080,11 @@ const O6 = /* @__PURE__ */ on(_ye, [["render", yye]]), vye = {
|
|
|
75038
75080
|
return (e, t) => {
|
|
75039
75081
|
const r = Me("fv-button");
|
|
75040
75082
|
return He(), ot("div", kye, [
|
|
75041
|
-
X("h1", null,
|
|
75042
|
-
X("p", null,
|
|
75043
|
-
|
|
75083
|
+
X("h1", null, Ye(n.title), 1),
|
|
75084
|
+
X("p", null, Ye(e.message), 1),
|
|
75085
|
+
ae(r, null, {
|
|
75044
75086
|
default: ie(() => t[0] || (t[0] = [
|
|
75045
|
-
|
|
75087
|
+
ir("Confirm")
|
|
75046
75088
|
])),
|
|
75047
75089
|
_: 1,
|
|
75048
75090
|
__: [0]
|