@creatorsn/powereditor3 0.2.0 → 0.2.2
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 +666 -603
- package/dist/powereditor3.umd.cjs +8 -5
- 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-") {
|
|
@@ -22103,8 +22142,29 @@ function il(n, e = "language-") {
|
|
|
22103
22142
|
return i && i.replace(e, "") || null;
|
|
22104
22143
|
}
|
|
22105
22144
|
function _T(n) {
|
|
22106
|
-
|
|
22107
|
-
|
|
22145
|
+
if (!n)
|
|
22146
|
+
return "";
|
|
22147
|
+
const e = [], t = /* @__PURE__ */ new Set(["DIV", "P"]), r = (i) => {
|
|
22148
|
+
if (!i)
|
|
22149
|
+
return;
|
|
22150
|
+
if (i.nodeType === Node.TEXT_NODE) {
|
|
22151
|
+
e.push(i.nodeValue || "");
|
|
22152
|
+
return;
|
|
22153
|
+
}
|
|
22154
|
+
if (i.nodeType !== Node.ELEMENT_NODE)
|
|
22155
|
+
return;
|
|
22156
|
+
if (i.tagName === "BR") {
|
|
22157
|
+
e.push(`
|
|
22158
|
+
`);
|
|
22159
|
+
return;
|
|
22160
|
+
}
|
|
22161
|
+
const o = e.length;
|
|
22162
|
+
Array.from(i.childNodes).forEach(r), t.has(i.tagName) && e.length > o && e[e.length - 1] !== `
|
|
22163
|
+
` && e.push(`
|
|
22164
|
+
`);
|
|
22165
|
+
};
|
|
22166
|
+
return r(n), e.join("").replace(/\r\n?/g, `
|
|
22167
|
+
`).replace(/\n$/, "");
|
|
22108
22168
|
}
|
|
22109
22169
|
const yT = lT.extend({
|
|
22110
22170
|
transformPastedHTML(n) {
|
|
@@ -45447,7 +45507,7 @@ function iM(n) {
|
|
|
45447
45507
|
/\[/,
|
|
45448
45508
|
/%/
|
|
45449
45509
|
]
|
|
45450
|
-
},
|
|
45510
|
+
}, Ze = {
|
|
45451
45511
|
match: [
|
|
45452
45512
|
/\b(?:subscript|init[?!]?)/,
|
|
45453
45513
|
/\s*(?=[<(])/
|
|
@@ -45459,7 +45519,7 @@ function iM(n) {
|
|
|
45459
45519
|
e
|
|
45460
45520
|
],
|
|
45461
45521
|
illegal: /\[|%/
|
|
45462
|
-
},
|
|
45522
|
+
}, Xe = {
|
|
45463
45523
|
match: [
|
|
45464
45524
|
/operator/,
|
|
45465
45525
|
/\s+/,
|
|
@@ -45489,7 +45549,7 @@ function iM(n) {
|
|
|
45489
45549
|
for (const qe of U.variants) {
|
|
45490
45550
|
const Bt = qe.contains.find((gt) => gt.label === "interpol");
|
|
45491
45551
|
Bt.keywords = c;
|
|
45492
|
-
const
|
|
45552
|
+
const nt = [
|
|
45493
45553
|
...u,
|
|
45494
45554
|
...b,
|
|
45495
45555
|
...v,
|
|
@@ -45498,13 +45558,13 @@ function iM(n) {
|
|
|
45498
45558
|
...ne
|
|
45499
45559
|
];
|
|
45500
45560
|
Bt.contains = [
|
|
45501
|
-
...
|
|
45561
|
+
...nt,
|
|
45502
45562
|
{
|
|
45503
45563
|
begin: /\(/,
|
|
45504
45564
|
end: /\)/,
|
|
45505
45565
|
contains: [
|
|
45506
45566
|
"self",
|
|
45507
|
-
...
|
|
45567
|
+
...nt
|
|
45508
45568
|
]
|
|
45509
45569
|
}
|
|
45510
45570
|
];
|
|
@@ -45515,7 +45575,7 @@ function iM(n) {
|
|
|
45515
45575
|
contains: [
|
|
45516
45576
|
...r,
|
|
45517
45577
|
yt,
|
|
45518
|
-
|
|
45578
|
+
Ze,
|
|
45519
45579
|
{
|
|
45520
45580
|
beginKeywords: "struct protocol class extension enum actor",
|
|
45521
45581
|
end: "\\{",
|
|
@@ -45529,7 +45589,7 @@ function iM(n) {
|
|
|
45529
45589
|
...u
|
|
45530
45590
|
]
|
|
45531
45591
|
},
|
|
45532
|
-
|
|
45592
|
+
Xe,
|
|
45533
45593
|
vt,
|
|
45534
45594
|
{
|
|
45535
45595
|
beginKeywords: "import",
|
|
@@ -50449,25 +50509,25 @@ function Ope() {
|
|
|
50449
50509
|
return N(Te + (D + 1) * te / (te + d));
|
|
50450
50510
|
}
|
|
50451
50511
|
function oe(te) {
|
|
50452
|
-
var me = [], ye = te.length, Te, Ve = 0, yt = f,
|
|
50453
|
-
for (
|
|
50512
|
+
var me = [], ye = te.length, Te, Ve = 0, yt = f, Ze = b, Xe, vt, qe, Bt, nt, gt, It, Tt, at;
|
|
50513
|
+
for (Xe = te.lastIndexOf(y), Xe < 0 && (Xe = 0), vt = 0; vt < Xe; ++vt)
|
|
50454
50514
|
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,
|
|
50515
|
+
for (qe = Xe > 0 ? Xe + 1 : 0; qe < ye; ) {
|
|
50516
|
+
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)
|
|
50517
|
+
at = l - Tt, nt > N(a / at) && q("overflow"), nt *= at;
|
|
50518
|
+
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
50519
|
}
|
|
50460
50520
|
return Q(me);
|
|
50461
50521
|
}
|
|
50462
50522
|
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
|
-
|
|
50523
|
+
var me, ye, Te, Ve, yt, Ze, Xe, vt, qe, Bt, nt, gt = [], It, Tt, at, en;
|
|
50524
|
+
for (te = K(te), It = te.length, me = f, ye = 0, yt = b, Ze = 0; Ze < It; ++Ze)
|
|
50525
|
+
nt = te[Ze], nt < 128 && gt.push(O(nt));
|
|
50466
50526
|
for (Te = Ve = gt.length, Ve && gt.push(y); Te < It; ) {
|
|
50467
|
-
for (
|
|
50468
|
-
|
|
50469
|
-
for (Tt = Te + 1,
|
|
50470
|
-
if (
|
|
50527
|
+
for (Xe = a, Ze = 0; Ze < It; ++Ze)
|
|
50528
|
+
nt = te[Ze], nt >= me && nt < Xe && (Xe = nt);
|
|
50529
|
+
for (Tt = Te + 1, Xe - me > N((a - ye) / Tt) && q("overflow"), ye += (Xe - me) * Tt, me = Xe, Ze = 0; Ze < It; ++Ze)
|
|
50530
|
+
if (nt = te[Ze], nt < me && ++ye > a && q("overflow"), nt == me) {
|
|
50471
50531
|
for (vt = ye, qe = l; Bt = qe <= yt ? c : qe >= yt + u ? u : qe - yt, !(vt < Bt); qe += l)
|
|
50472
50532
|
en = vt - Bt, at = l - Bt, gt.push(
|
|
50473
50533
|
O(V(Bt + en % at, 0))
|
|
@@ -53126,16 +53186,16 @@ function Gpe() {
|
|
|
53126
53186
|
j = re = he = B, oe = null;
|
|
53127
53187
|
var Z = "Size1-Regular";
|
|
53128
53188
|
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,
|
|
53189
|
+
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
53190
|
if (oe !== null) {
|
|
53131
53191
|
var vt = a(oe, Z);
|
|
53132
|
-
|
|
53192
|
+
Ze = vt.height + vt.depth, Xe = 2;
|
|
53133
53193
|
}
|
|
53134
|
-
var qe = me + yt +
|
|
53135
|
-
(K - qe) / (
|
|
53136
|
-
),
|
|
53194
|
+
var qe = me + yt + Ze, Bt = Math.ceil(
|
|
53195
|
+
(K - qe) / (Xe * Te)
|
|
53196
|
+
), nt = qe + Bt * Xe * Te, gt = r.metrics.axisHeight;
|
|
53137
53197
|
Q && (gt *= ne.style.sizeMultiplier);
|
|
53138
|
-
var It =
|
|
53198
|
+
var It = nt / 2 - gt, Tt = [];
|
|
53139
53199
|
Tt.push(m(he, Z, V));
|
|
53140
53200
|
var at;
|
|
53141
53201
|
if (oe === null)
|
|
@@ -53537,7 +53597,7 @@ function Vpe() {
|
|
|
53537
53597
|
}
|
|
53538
53598
|
me.height = Z, me.depth = te, re += Z, me.pos = re, re += te + Te, U[N] = me;
|
|
53539
53599
|
}
|
|
53540
|
-
var Ve = re / 2 + o.metrics.axisHeight, yt = C.value.cols || [],
|
|
53600
|
+
var Ve = re / 2 + o.metrics.axisHeight, yt = C.value.cols || [], Ze = [], Xe, vt;
|
|
53541
53601
|
for (
|
|
53542
53602
|
O = 0, vt = 0;
|
|
53543
53603
|
// Continue while either there are more columns or more column
|
|
@@ -53546,12 +53606,12 @@ function Vpe() {
|
|
|
53546
53606
|
++O, ++vt
|
|
53547
53607
|
) {
|
|
53548
53608
|
for (var qe = yt[vt] || {}, Bt = !0; qe.type === "separator"; ) {
|
|
53549
|
-
if (Bt || (
|
|
53550
|
-
var
|
|
53609
|
+
if (Bt || (Xe = a(["arraycolsep"], []), Xe.style.width = o.metrics.doubleRuleSep + "em", Ze.push(Xe)), qe.separator === "|") {
|
|
53610
|
+
var nt = a(
|
|
53551
53611
|
["vertical-separator"],
|
|
53552
53612
|
[]
|
|
53553
53613
|
);
|
|
53554
|
-
|
|
53614
|
+
nt.style.height = re + "em", nt.style.verticalAlign = -(re - Ve) + "em", Ze.push(nt);
|
|
53555
53615
|
} else
|
|
53556
53616
|
throw new n(
|
|
53557
53617
|
"Invalid separator type: " + qe.separator
|
|
@@ -53560,7 +53620,7 @@ function Vpe() {
|
|
|
53560
53620
|
}
|
|
53561
53621
|
if (!(O >= q)) {
|
|
53562
53622
|
var gt;
|
|
53563
|
-
(O > 0 || C.value.hskipBeforeAndAfter) && (gt = s.deflt(qe.pregap, K), gt !== 0 && (
|
|
53623
|
+
(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
53624
|
var It = [];
|
|
53565
53625
|
for (N = 0; N < z; ++N) {
|
|
53566
53626
|
var Tt = U[N], at = Tt[O];
|
|
@@ -53572,10 +53632,10 @@ function Vpe() {
|
|
|
53572
53632
|
It = t.makeVList(It, "individualShift", null, k), It = a(
|
|
53573
53633
|
["col-align-" + (qe.align || "c")],
|
|
53574
53634
|
[It]
|
|
53575
|
-
),
|
|
53635
|
+
), 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
53636
|
}
|
|
53577
53637
|
}
|
|
53578
|
-
return U = a(["mtable"],
|
|
53638
|
+
return U = a(["mtable"], Ze), a(["mord"], [U], k.getColor());
|
|
53579
53639
|
}, y.spacing = function(C, k, D) {
|
|
53580
53640
|
return C.value === "\\ " || C.value === "\\space" || C.value === " " || C.value === "~" ? a(
|
|
53581
53641
|
["mord", "mspace"],
|
|
@@ -56834,7 +56894,7 @@ const Yn = (n, e = "en") => {
|
|
|
56834
56894
|
function xme(n, e, t, r, i, o) {
|
|
56835
56895
|
const s = Me("fv-button"), a = Me("fv-text-box");
|
|
56836
56896
|
return He(), ot("div", {
|
|
56837
|
-
class:
|
|
56897
|
+
class: tt(["power-editor-media-container", [{ dark: t.theme === "dark" }, { "active-effects": i.active }]]),
|
|
56838
56898
|
style: ut({ width: i.moveable ? `${i.elWidthEnd}px` : o.normalizeWidthValue(i.currentWidth) })
|
|
56839
56899
|
}, [
|
|
56840
56900
|
Ut(X("div", {
|
|
@@ -56857,7 +56917,7 @@ function xme(n, e, t, r, i, o) {
|
|
|
56857
56917
|
onClick: e[5] || (e[5] = (l) => n.$emit("container-click", l))
|
|
56858
56918
|
}, [
|
|
56859
56919
|
mt(n.$slots, "default", {}, () => [
|
|
56860
|
-
e[20] || (e[20] =
|
|
56920
|
+
e[20] || (e[20] = ir(" Media Container "))
|
|
56861
56921
|
])
|
|
56862
56922
|
], 32),
|
|
56863
56923
|
Ut(X("div", {
|
|
@@ -56888,7 +56948,7 @@ function xme(n, e, t, r, i, o) {
|
|
|
56888
56948
|
[Wt, t.editor.isEditable]
|
|
56889
56949
|
]),
|
|
56890
56950
|
Ut(X("div", yme, [
|
|
56891
|
-
Ut(
|
|
56951
|
+
Ut(ae(s, {
|
|
56892
56952
|
class: "power-editor-media-cmd-btn",
|
|
56893
56953
|
background: t.theme === "dark" ? "rgba(0, 0, 0, 0.8)" : "rgba(255, 255, 255, 0.0)",
|
|
56894
56954
|
"border-radius": 6,
|
|
@@ -56905,7 +56965,7 @@ function xme(n, e, t, r, i, o) {
|
|
|
56905
56965
|
}, 8, ["background", "theme", "title", "onClick"]), [
|
|
56906
56966
|
[Wt, t.editor.isEditable]
|
|
56907
56967
|
]),
|
|
56908
|
-
|
|
56968
|
+
ae(s, {
|
|
56909
56969
|
class: "power-editor-media-cmd-btn",
|
|
56910
56970
|
background: t.theme === "dark" ? "rgba(0, 0, 0, 0.8)" : "rgba(255, 255, 255, 0.0)",
|
|
56911
56971
|
"border-radius": 6,
|
|
@@ -56920,7 +56980,7 @@ function xme(n, e, t, r, i, o) {
|
|
|
56920
56980
|
_: 1,
|
|
56921
56981
|
__: [24]
|
|
56922
56982
|
}, 8, ["background", "theme", "title"]),
|
|
56923
|
-
|
|
56983
|
+
ae(s, {
|
|
56924
56984
|
class: "power-editor-media-cmd-btn",
|
|
56925
56985
|
background: t.theme === "dark" ? "rgba(0, 0, 0, 0.8)" : "rgba(255, 255, 255, 0.0)",
|
|
56926
56986
|
"border-radius": 6,
|
|
@@ -56942,7 +57002,7 @@ function xme(n, e, t, r, i, o) {
|
|
|
56942
57002
|
]
|
|
56943
57003
|
]),
|
|
56944
57004
|
Ut(X("div", vme, [
|
|
56945
|
-
|
|
57005
|
+
ae(s, {
|
|
56946
57006
|
class: "power-editor-media-cmd-btn",
|
|
56947
57007
|
background: t.theme === "dark" ? "rgba(0, 0, 0, 0.8)" : "rgba(255, 255, 255, 0.0)",
|
|
56948
57008
|
"border-radius": 6,
|
|
@@ -56954,7 +57014,7 @@ function xme(n, e, t, r, i, o) {
|
|
|
56954
57014
|
onClick: o.newline
|
|
56955
57015
|
}, {
|
|
56956
57016
|
default: ie(() => [
|
|
56957
|
-
|
|
57017
|
+
ir(Ye(o.getTitle("Newline")), 1)
|
|
56958
57018
|
]),
|
|
56959
57019
|
_: 1
|
|
56960
57020
|
}, 8, ["background", "theme", "title", "onClick"])
|
|
@@ -56967,10 +57027,10 @@ function xme(n, e, t, r, i, o) {
|
|
|
56967
57027
|
Ut(X("p", {
|
|
56968
57028
|
class: "power-editor-media-container-caption",
|
|
56969
57029
|
onClick: e[16] || (e[16] = (...l) => o.showCaptionBox && o.showCaptionBox(...l))
|
|
56970
|
-
},
|
|
57030
|
+
}, Ye(i.thisCaption), 513), [
|
|
56971
57031
|
[Wt, i.thisCaption !== "" && !i.show.captionBox]
|
|
56972
57032
|
]),
|
|
56973
|
-
Ut(
|
|
57033
|
+
Ut(ae(a, {
|
|
56974
57034
|
modelValue: i.thisCaption,
|
|
56975
57035
|
"onUpdate:modelValue": e[17] || (e[17] = (l) => i.thisCaption = l),
|
|
56976
57036
|
theme: t.theme,
|
|
@@ -57137,11 +57197,11 @@ function Eme(n, e, t, r, i, o) {
|
|
|
57137
57197
|
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
57198
|
return t.node ? (He(), rn(m, {
|
|
57139
57199
|
key: 0,
|
|
57140
|
-
class:
|
|
57200
|
+
class: tt(["power-editor-image-container", [{ dark: i.thisTheme === "dark" }]]),
|
|
57141
57201
|
style: ut({ "justify-content": t.node.attrs.alignCenter ? "center" : "flex-start" })
|
|
57142
57202
|
}, {
|
|
57143
57203
|
default: ie(() => [
|
|
57144
|
-
|
|
57204
|
+
ae(l, {
|
|
57145
57205
|
width: t.node.attrs.width,
|
|
57146
57206
|
"onUpdate:width": e[1] || (e[1] = (b) => t.node.attrs.width = b),
|
|
57147
57207
|
caption: t.node.attrs.caption,
|
|
@@ -57157,14 +57217,14 @@ function Eme(n, e, t, r, i, o) {
|
|
|
57157
57217
|
onContainerClick: e[5] || (e[5] = (b) => o.preview("readonly"))
|
|
57158
57218
|
}, {
|
|
57159
57219
|
default: ie(() => [
|
|
57160
|
-
|
|
57220
|
+
ae(s, {
|
|
57161
57221
|
src: t.node.attrs.src ? t.node.attrs.src : i.statusInfo.tmpSrc ? i.statusInfo.tmpSrc : "",
|
|
57162
57222
|
ref: "image",
|
|
57163
57223
|
onlazy: i.thisLazyLoad,
|
|
57164
57224
|
style: ut([{ width: "100%", height: "auto" }, { height: !t.node.attrs.src && i.statusInfo.show ? i.statusInfo.tmpHeight + "px" : "" }])
|
|
57165
57225
|
}, null, 8, ["src", "onlazy", "style"]),
|
|
57166
57226
|
Ut(X("div", Sme, [
|
|
57167
|
-
|
|
57227
|
+
ae(a, {
|
|
57168
57228
|
modelValue: i.statusInfo.progress,
|
|
57169
57229
|
"onUpdate:modelValue": e[0] || (e[0] = (b) => i.statusInfo.progress = b),
|
|
57170
57230
|
loading: i.statusInfo.loading,
|
|
@@ -57173,27 +57233,27 @@ function Eme(n, e, t, r, i, o) {
|
|
|
57173
57233
|
color: i.thisTheme === "dark" ? "white" : "black",
|
|
57174
57234
|
background: i.thisTheme === "dark" ? "rgba(0, 0, 0, 0.3)" : "rgba(255, 255, 255, 0.3)"
|
|
57175
57235
|
}, null, 8, ["modelValue", "loading", "color", "background"]),
|
|
57176
|
-
Ut(X("p", { class: "power-editor-image-status-title" },
|
|
57236
|
+
Ut(X("p", { class: "power-editor-image-status-title" }, Ye(i.statusInfo.info), 513), [
|
|
57177
57237
|
[Wt, i.statusInfo.info]
|
|
57178
57238
|
])
|
|
57179
57239
|
], 512), [
|
|
57180
57240
|
[Wt, i.statusInfo.show]
|
|
57181
57241
|
]),
|
|
57182
57242
|
X("div", {
|
|
57183
|
-
class:
|
|
57243
|
+
class: tt(["power-editor-image-selection-mask", [{ selected: t.selected }]]),
|
|
57184
57244
|
style: ut({ "--selected-bg": i.thisForeground })
|
|
57185
57245
|
}, null, 6)
|
|
57186
57246
|
]),
|
|
57187
57247
|
_: 1
|
|
57188
57248
|
}, 8, ["width", "caption", "alignCenter", "editor", "theme", "foreground", "node", "getPos"]),
|
|
57189
|
-
|
|
57249
|
+
ae(Dc, { name: "show-preview" }, {
|
|
57190
57250
|
default: ie(() => [
|
|
57191
57251
|
Ut(X("div", {
|
|
57192
57252
|
class: "power-editor-image-preview-block",
|
|
57193
57253
|
onClick: e[12] || (e[12] = (b) => i.previewImg.show = !1)
|
|
57194
57254
|
}, [
|
|
57195
57255
|
X("div", Cme, [
|
|
57196
|
-
|
|
57256
|
+
ae(c, {
|
|
57197
57257
|
src: t.node.attrs.src,
|
|
57198
57258
|
class: "power-editor-preview-img",
|
|
57199
57259
|
style: ut({ scale: i.previewImg.scalePercent + "%", cursor: i.previewImg.scalePercent < 150 ? "zoom-in" : "zoom-out" }),
|
|
@@ -57204,7 +57264,7 @@ function Eme(n, e, t, r, i, o) {
|
|
|
57204
57264
|
class: "power-editor-preview-tool-bar",
|
|
57205
57265
|
onClick: e[11] || (e[11] = (b) => b.stopPropagation())
|
|
57206
57266
|
}, [
|
|
57207
|
-
|
|
57267
|
+
ae(u, {
|
|
57208
57268
|
class: "power-editor-preview-img-btn",
|
|
57209
57269
|
theme: "dark",
|
|
57210
57270
|
disabled: i.previewImg.scalePercent <= 50,
|
|
@@ -57217,7 +57277,7 @@ function Eme(n, e, t, r, i, o) {
|
|
|
57217
57277
|
_: 1,
|
|
57218
57278
|
__: [13]
|
|
57219
57279
|
}, 8, ["disabled"]),
|
|
57220
|
-
|
|
57280
|
+
ae(d, {
|
|
57221
57281
|
modelValue: i.previewImg.scalePercent,
|
|
57222
57282
|
theme: "dark",
|
|
57223
57283
|
underline: "",
|
|
@@ -57229,7 +57289,7 @@ function Eme(n, e, t, r, i, o) {
|
|
|
57229
57289
|
style: { width: "80px", height: "35px" },
|
|
57230
57290
|
onDebounceInput: e[8] || (e[8] = (b) => o.setScale(b, b))
|
|
57231
57291
|
}, null, 8, ["modelValue", "focus-border-color"]),
|
|
57232
|
-
|
|
57292
|
+
ae(u, {
|
|
57233
57293
|
class: "power-editor-preview-img-btn",
|
|
57234
57294
|
theme: "dark",
|
|
57235
57295
|
disabled: i.previewImg.scalePercent >= 200,
|
|
@@ -57243,7 +57303,7 @@ function Eme(n, e, t, r, i, o) {
|
|
|
57243
57303
|
_: 1,
|
|
57244
57304
|
__: [14]
|
|
57245
57305
|
}, 8, ["disabled"]),
|
|
57246
|
-
|
|
57306
|
+
ae(u, {
|
|
57247
57307
|
class: "power-editor-preview-img-btn",
|
|
57248
57308
|
theme: "dark",
|
|
57249
57309
|
background: "rgba(36, 36, 36, 0.3)",
|
|
@@ -57377,7 +57437,7 @@ function Nme(n, e, t, r, i, o) {
|
|
|
57377
57437
|
style: ut({ "justify-content": t.node.attrs.alignCenter ? "center" : "flex-start" })
|
|
57378
57438
|
}, {
|
|
57379
57439
|
default: ie(() => [
|
|
57380
|
-
|
|
57440
|
+
ae(s, {
|
|
57381
57441
|
width: t.node.attrs.width,
|
|
57382
57442
|
"onUpdate:width": e[0] || (e[0] = (l) => t.node.attrs.width = l),
|
|
57383
57443
|
caption: t.node.attrs.caption,
|
|
@@ -57615,7 +57675,7 @@ function Fme(n, e, t, r, i, o) {
|
|
|
57615
57675
|
class: "power-editor-task-item-container"
|
|
57616
57676
|
}, {
|
|
57617
57677
|
default: ie(() => [
|
|
57618
|
-
|
|
57678
|
+
ae(s, {
|
|
57619
57679
|
modelValue: t.node.attrs.checked,
|
|
57620
57680
|
"onUpdate:modelValue": e[0] || (e[0] = (c) => t.node.attrs.checked = c),
|
|
57621
57681
|
theme: i.thisTheme,
|
|
@@ -57624,7 +57684,7 @@ function Fme(n, e, t, r, i, o) {
|
|
|
57624
57684
|
contenteditable: "false",
|
|
57625
57685
|
onClick: o.updateValue
|
|
57626
57686
|
}, null, 8, ["modelValue", "theme", "disabled", "background", "onClick"]),
|
|
57627
|
-
|
|
57687
|
+
ae(a, {
|
|
57628
57688
|
ref: "n",
|
|
57629
57689
|
class: "power-editor-task-item-content"
|
|
57630
57690
|
}, null, 512)
|
|
@@ -58598,7 +58658,7 @@ H400000v` + (40 + h) + `H845.2724
|
|
|
58598
58658
|
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
|
58599
58659
|
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
|
58600
58660
|
M` + (834 + h) + " " + p + "h400000v" + (40 + h) + "h-400000z";
|
|
58601
|
-
},
|
|
58661
|
+
}, Ze = function(h, p) {
|
|
58602
58662
|
return "M263," + (601 + h + p) + `c0.7,0,18,39.7,52,119
|
|
58603
58663
|
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|
58604
58664
|
c340,-704.7,510.7,-1060.3,512,-1067
|
|
@@ -58610,7 +58670,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
58670
|
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|
58611
58671
|
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|
58612
58672
|
M` + (1001 + h) + " " + p + "h400000v" + (40 + h) + "h-400000z";
|
|
58613
|
-
},
|
|
58673
|
+
}, Xe = function(h, p) {
|
|
58614
58674
|
return "M983 " + (10 + h + p) + `
|
|
58615
58675
|
l` + h / 3.13 + " -" + h + `
|
|
58616
58676
|
c4,-6.7,10,-10,18,-10 H400000v` + (40 + h) + `
|
|
@@ -58645,7 +58705,7 @@ s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,1
|
|
|
58645
58705
|
}, Bt = function(h) {
|
|
58646
58706
|
var p = h / 2;
|
|
58647
58707
|
return "M400000 " + h + " H0 L" + p + " 0 l65 45 L145 " + (h - 80) + " H400000z";
|
|
58648
|
-
},
|
|
58708
|
+
}, nt = function(h, p, g) {
|
|
58649
58709
|
var _ = g - 54 - p - h;
|
|
58650
58710
|
return "M702 " + (h + p) + "H400000" + (40 + h) + `
|
|
58651
58711
|
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 +58720,10 @@ c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
|
58660
58720
|
_ = yt(p, Ve);
|
|
58661
58721
|
break;
|
|
58662
58722
|
case "sqrtSize1":
|
|
58663
|
-
_ =
|
|
58723
|
+
_ = Ze(p, Ve);
|
|
58664
58724
|
break;
|
|
58665
58725
|
case "sqrtSize2":
|
|
58666
|
-
_ =
|
|
58726
|
+
_ = Xe(p, Ve);
|
|
58667
58727
|
break;
|
|
58668
58728
|
case "sqrtSize3":
|
|
58669
58729
|
_ = vt(p, Ve);
|
|
@@ -58672,7 +58732,7 @@ c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
|
58672
58732
|
_ = qe(p, Ve);
|
|
58673
58733
|
break;
|
|
58674
58734
|
case "sqrtTall":
|
|
58675
|
-
_ =
|
|
58735
|
+
_ = nt(p, Ve, g);
|
|
58676
58736
|
}
|
|
58677
58737
|
return _;
|
|
58678
58738
|
}, It = function(h, p) {
|
|
@@ -59104,7 +59164,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
59104
59164
|
g += this.children[w].toMarkup();
|
|
59105
59165
|
return g += "</svg>", g;
|
|
59106
59166
|
}, T;
|
|
59107
|
-
}(),
|
|
59167
|
+
}(), ur = /* @__PURE__ */ function() {
|
|
59108
59168
|
function T(p, g) {
|
|
59109
59169
|
this.pathName = void 0, this.alternate = void 0, this.pathName = p, this.alternate = g;
|
|
59110
59170
|
}
|
|
@@ -59115,7 +59175,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
59115
59175
|
}, h.toMarkup = function() {
|
|
59116
59176
|
return this.alternate ? "<path d='" + this.alternate + "'/>" : "<path d='" + Tt[this.pathName] + "'/>";
|
|
59117
59177
|
}, T;
|
|
59118
|
-
}(),
|
|
59178
|
+
}(), dr = /* @__PURE__ */ function() {
|
|
59119
59179
|
function T(p) {
|
|
59120
59180
|
this.attributes = void 0, this.attributes = p || {};
|
|
59121
59181
|
}
|
|
@@ -61713,7 +61773,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
61713
61773
|
mu: !0
|
|
61714
61774
|
}, pn = function(h) {
|
|
61715
61775
|
return typeof h != "string" && (h = h.unit), h in zn || h in Co || h === "ex";
|
|
61716
|
-
},
|
|
61776
|
+
}, rt = function(h, p) {
|
|
61717
61777
|
var g;
|
|
61718
61778
|
if (h.unit in zn)
|
|
61719
61779
|
g = zn[h.unit] / p.fontMetrics().ptPerEm / p.sizeMultiplier;
|
|
@@ -61790,8 +61850,8 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
61790
61850
|
var Be = ti("textrm", p.fontWeight, p.fontShape);
|
|
61791
61851
|
return kn(w, Be, _, p, E.concat(p.fontWeight, p.fontShape));
|
|
61792
61852
|
} else {
|
|
61793
|
-
var
|
|
61794
|
-
return kn(w,
|
|
61853
|
+
var et = ti(Ee, p.fontWeight, p.fontShape);
|
|
61854
|
+
return kn(w, et, _, p, E.concat(et, p.fontWeight, p.fontShape));
|
|
61795
61855
|
}
|
|
61796
61856
|
} else
|
|
61797
61857
|
throw new Error("unexpected type: " + g + " in makeOrd");
|
|
@@ -61892,8 +61952,8 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
61892
61952
|
if (we.type === "kern")
|
|
61893
61953
|
ue += we.size;
|
|
61894
61954
|
else {
|
|
61895
|
-
var Ee = we.elem, Ae = we.wrapperClasses || [], Be = we.wrapperStyle || {},
|
|
61896
|
-
|
|
61955
|
+
var Ee = we.elem, Ae = we.wrapperClasses || [], Be = we.wrapperStyle || {}, et = Ft(Ae, [G, Ee], void 0, Be);
|
|
61956
|
+
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
61957
|
}
|
|
61898
61958
|
se = Math.min(se, ue), ce = Math.max(ce, ue);
|
|
61899
61959
|
}
|
|
@@ -61910,7 +61970,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
61910
61970
|
var Mt = Ft(["vlist-t"], Lt);
|
|
61911
61971
|
return Lt.length === 2 && Mt.classes.push("vlist-t2"), Mt.height = ce, Mt.depth = -se, Mt;
|
|
61912
61972
|
}, Dr = function(h, p) {
|
|
61913
|
-
var g = Ft(["mspace"], [], p), _ =
|
|
61973
|
+
var g = Ft(["mspace"], [], p), _ = rt(h, p);
|
|
61914
61974
|
return g.style.marginRight = _ + "em", g;
|
|
61915
61975
|
}, ti = function(h, p, g) {
|
|
61916
61976
|
var _ = "";
|
|
@@ -61992,7 +62052,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
61992
62052
|
oiiintSize1: ["oiiintSize1", 1.304, 0.499],
|
|
61993
62053
|
oiiintSize2: ["oiiintSize2", 1.98, 0.659]
|
|
61994
62054
|
}, Ie = function(h, p) {
|
|
61995
|
-
var g = Se[h], _ = g[0], w = g[1], E = g[2], R = new
|
|
62055
|
+
var g = Se[h], _ = g[0], w = g[1], E = g[2], R = new ur(_), L = new dn([R], {
|
|
61996
62056
|
width: w + "em",
|
|
61997
62057
|
height: E + "em",
|
|
61998
62058
|
// Override CSS rule `.katex svg { width: 100% }`
|
|
@@ -62147,7 +62207,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
62147
62207
|
}, sn = function(h, p, g, _) {
|
|
62148
62208
|
_ === void 0 && (_ = [null, null]);
|
|
62149
62209
|
for (var w = [], E = 0; E < h.length; E++) {
|
|
62150
|
-
var R =
|
|
62210
|
+
var R = Je(h[E], p);
|
|
62151
62211
|
if (R instanceof at) {
|
|
62152
62212
|
var L = R.children;
|
|
62153
62213
|
w.push.apply(w, L);
|
|
@@ -62213,7 +62273,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
62213
62273
|
}, gs = function(h, p) {
|
|
62214
62274
|
var g = ["nulldelimiter"].concat(h.baseSizingClasses());
|
|
62215
62275
|
return Nr(p.concat(g));
|
|
62216
|
-
},
|
|
62276
|
+
}, Je = function(h, p, g) {
|
|
62217
62277
|
if (!h)
|
|
62218
62278
|
return Nr();
|
|
62219
62279
|
if (Na[h.type]) {
|
|
@@ -62548,7 +62608,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
62548
62608
|
var _e = [1, 1, 2, 2, 3, 3][Y];
|
|
62549
62609
|
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
62610
|
}
|
|
62551
|
-
var we = new
|
|
62611
|
+
var we = new ur(ce), Ee = new dn([we], {
|
|
62552
62612
|
width: "100%",
|
|
62553
62613
|
height: ue + "em",
|
|
62554
62614
|
viewBox: "0 0 " + L + " " + se,
|
|
@@ -62560,7 +62620,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
62560
62620
|
height: ue
|
|
62561
62621
|
};
|
|
62562
62622
|
} else {
|
|
62563
|
-
var Ae = [], Be = W6[F],
|
|
62623
|
+
var Ae = [], Be = W6[F], et = Be[0], ft = Be[1], Lt = Be[2], ct = Lt / 1e3, pt = et.length, $t, Mt;
|
|
62564
62624
|
if (pt === 1) {
|
|
62565
62625
|
var Dn = Be[3];
|
|
62566
62626
|
$t = ["hide-tail"], Mt = [Dn];
|
|
@@ -62572,12 +62632,12 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
62572
62632
|
throw new Error(`Correct katexImagesData or update code here to support
|
|
62573
62633
|
` + pt + " children.");
|
|
62574
62634
|
for (var Nn = 0; Nn < pt; Nn++) {
|
|
62575
|
-
var oi = new
|
|
62635
|
+
var oi = new ur(et[Nn]), gr = new dn([oi], {
|
|
62576
62636
|
width: "400em",
|
|
62577
62637
|
height: ct + "em",
|
|
62578
62638
|
viewBox: "0 0 " + L + " " + Lt,
|
|
62579
62639
|
preserveAspectRatio: Mt[Nn] + " slice"
|
|
62580
|
-
}), Rn = W.makeSvgSpan([$t[Nn]], [
|
|
62640
|
+
}), Rn = W.makeSvgSpan([$t[Nn]], [gr], p);
|
|
62581
62641
|
if (pt === 1)
|
|
62582
62642
|
return {
|
|
62583
62643
|
span: Rn,
|
|
@@ -62604,13 +62664,13 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
62604
62664
|
}
|
|
62605
62665
|
} else {
|
|
62606
62666
|
var F = [];
|
|
62607
|
-
/^[bx]cancel$/.test(p) && F.push(new
|
|
62667
|
+
/^[bx]cancel$/.test(p) && F.push(new dr({
|
|
62608
62668
|
x1: "0",
|
|
62609
62669
|
y1: "0",
|
|
62610
62670
|
x2: "100%",
|
|
62611
62671
|
y2: "100%",
|
|
62612
62672
|
"stroke-width": "0.046em"
|
|
62613
|
-
})), /^x?cancel$/.test(p) && F.push(new
|
|
62673
|
+
})), /^x?cancel$/.test(p) && F.push(new dr({
|
|
62614
62674
|
x1: "0",
|
|
62615
62675
|
y1: "100%",
|
|
62616
62676
|
x2: "100%",
|
|
@@ -62645,10 +62705,10 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
62645
62705
|
}
|
|
62646
62706
|
var xu = function(h, p) {
|
|
62647
62707
|
var g, _, w;
|
|
62648
|
-
h && h.type === "supsub" ? (_ = We(h.base, "accent"), g = _.base, h.base = g, w = Ca(
|
|
62649
|
-
var E =
|
|
62708
|
+
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);
|
|
62709
|
+
var E = Je(g, p.havingCrampedStyle()), R = _.isShifty && x.isCharacterBox(g), L = 0;
|
|
62650
62710
|
if (R) {
|
|
62651
|
-
var F = x.getBaseElem(g), G =
|
|
62711
|
+
var F = x.getBaseElem(g), G = Je(F, p.havingCrampedStyle());
|
|
62652
62712
|
L = Ri(G).skew;
|
|
62653
62713
|
}
|
|
62654
62714
|
var Y = _.label === "\\c", se = Y ? E.height + E.depth : Math.min(E.height, p.fontMetrics().xHeight), ce;
|
|
@@ -62757,7 +62817,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
62757
62817
|
};
|
|
62758
62818
|
},
|
|
62759
62819
|
htmlBuilder: function(h, p) {
|
|
62760
|
-
var g =
|
|
62820
|
+
var g = Je(h.base, p), _ = Rr.svgSpan(h, p), w = h.label === "\\utilde" ? 0.12 : 0, E = W.makeVList({
|
|
62761
62821
|
positionType: "top",
|
|
62762
62822
|
positionData: g.height,
|
|
62763
62823
|
children: [{
|
|
@@ -62832,10 +62892,10 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
62832
62892
|
// Flow is unable to correctly infer the type of `group`, even though it's
|
|
62833
62893
|
// unamibiguously determined from the passed-in `type` above.
|
|
62834
62894
|
htmlBuilder: function(h, p) {
|
|
62835
|
-
var g = p.style, _ = p.havingStyle(g.sup()), w = W.wrapFragment(
|
|
62895
|
+
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
62896
|
w.classes.push(E + "-arrow-pad");
|
|
62837
62897
|
var R;
|
|
62838
|
-
h.below && (_ = p.havingStyle(g.sub()), R = W.wrapFragment(
|
|
62898
|
+
h.below && (_ = p.havingStyle(g.sub()), R = W.wrapFragment(Je(h.below, _, p), p), R.classes.push(E + "-arrow-pad"));
|
|
62839
62899
|
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
62900
|
(w.depth > 0.25 || h.label === "\\xleftequilibrium") && (G -= w.depth);
|
|
62841
62901
|
var Y;
|
|
@@ -63041,7 +63101,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
63041
63101
|
};
|
|
63042
63102
|
},
|
|
63043
63103
|
htmlBuilder: function(h, p) {
|
|
63044
|
-
var g = p.havingStyle(p.style.sup()), _ = W.wrapFragment(
|
|
63104
|
+
var g = p.havingStyle(p.style.sup()), _ = W.wrapFragment(Je(h.label, g, p), p);
|
|
63045
63105
|
return _.classes.push("cd-label-" + h.side), _.style.bottom = 0.8 - _.depth + "em", _.height = 0, _.depth = 0, _;
|
|
63046
63106
|
},
|
|
63047
63107
|
mathmlBuilder: function(h, p) {
|
|
@@ -63063,7 +63123,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
63063
63123
|
};
|
|
63064
63124
|
},
|
|
63065
63125
|
htmlBuilder: function(h, p) {
|
|
63066
|
-
var g = W.wrapFragment(
|
|
63126
|
+
var g = W.wrapFragment(Je(h.fragment, p), p);
|
|
63067
63127
|
return g.classes.push("cd-vert-arrow"), g;
|
|
63068
63128
|
},
|
|
63069
63129
|
mathmlBuilder: function(h, p) {
|
|
@@ -63162,11 +63222,11 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
63162
63222
|
// not within tabular/array environments.
|
|
63163
63223
|
htmlBuilder: function(h, p) {
|
|
63164
63224
|
var g = W.makeSpan(["mspace"], [], p);
|
|
63165
|
-
return h.newLine && (g.classes.push("newline"), h.size && (g.style.marginTop =
|
|
63225
|
+
return h.newLine && (g.classes.push("newline"), h.size && (g.style.marginTop = rt(h.size, p) + "em")), g;
|
|
63166
63226
|
},
|
|
63167
63227
|
mathmlBuilder: function(h, p) {
|
|
63168
63228
|
var g = new fe.MathNode("mspace");
|
|
63169
|
-
return h.newLine && (g.setAttribute("linebreak", "newline"), h.size && g.setAttribute("height",
|
|
63229
|
+
return h.newLine && (g.setAttribute("linebreak", "newline"), h.size && g.setAttribute("height", rt(h.size, p) + "em")), g;
|
|
63170
63230
|
}
|
|
63171
63231
|
});
|
|
63172
63232
|
var ku = {
|
|
@@ -63323,7 +63383,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
63323
63383
|
elem: w
|
|
63324
63384
|
};
|
|
63325
63385
|
}, 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
|
|
63386
|
+
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
63387
|
width: _ + "em",
|
|
63328
63388
|
height: p + "em",
|
|
63329
63389
|
// Override CSS rule `.katex svg { width: 100% }`
|
|
@@ -63345,8 +63405,8 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
63345
63405
|
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
63406
|
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
63407
|
if (L !== null) {
|
|
63348
|
-
var
|
|
63349
|
-
Ae =
|
|
63408
|
+
var et = _s(L, Y, w);
|
|
63409
|
+
Ae = et.height + et.depth, Be = 2;
|
|
63350
63410
|
}
|
|
63351
63411
|
var ft = ce + Ee + Ae, Lt = Math.max(0, Math.ceil((p - ft) / (Be * _e))), ct = ft + Lt * Be * _e, pt = _.fontMetrics().axisHeight;
|
|
63352
63412
|
g && (pt *= _.sizeMultiplier);
|
|
@@ -63359,14 +63419,14 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
63359
63419
|
Mt.push(Eu(F, Nn, _)), Mt.push(Ba), Mt.push(Cu(L, Y, w)), Mt.push(Ba), Mt.push(Eu(F, Nn, _));
|
|
63360
63420
|
}
|
|
63361
63421
|
Mt.push(Ba), Mt.push(Cu(R, Y, w));
|
|
63362
|
-
var oi = _.havingBaseStyle(Z.TEXT),
|
|
63422
|
+
var oi = _.havingBaseStyle(Z.TEXT), gr = W.makeVList({
|
|
63363
63423
|
positionType: "bottom",
|
|
63364
63424
|
positionData: $t,
|
|
63365
63425
|
children: Mt
|
|
63366
63426
|
}, oi);
|
|
63367
|
-
return Su(W.makeSpan(["delimsizing", "mult"], [
|
|
63427
|
+
return Su(W.makeSpan(["delimsizing", "mult"], [gr], oi), Z.TEXT, _, E);
|
|
63368
63428
|
}, Au = 80, Mu = 0.08, Du = function(h, p, g, _, w) {
|
|
63369
|
-
var E = gt(h, _, g), R = new
|
|
63429
|
+
var E = gt(h, _, g), R = new ur(h, E), L = new dn([R], {
|
|
63370
63430
|
// Note: 1000:1 ratio of viewBox to document em width.
|
|
63371
63431
|
width: "400em",
|
|
63372
63432
|
height: p + "em",
|
|
@@ -63486,7 +63546,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
63486
63546
|
2 * G - F
|
|
63487
63547
|
);
|
|
63488
63548
|
return cm(h, Y, !0, _, w, E);
|
|
63489
|
-
},
|
|
63549
|
+
}, hr = {
|
|
63490
63550
|
sqrtImage: s5,
|
|
63491
63551
|
sizedDelim: l5,
|
|
63492
63552
|
sizeToMaxHeight: ys,
|
|
@@ -63582,13 +63642,13 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
63582
63642
|
};
|
|
63583
63643
|
},
|
|
63584
63644
|
htmlBuilder: function(h, p) {
|
|
63585
|
-
return h.delim === "." ? W.makeSpan([h.mclass]) :
|
|
63645
|
+
return h.delim === "." ? W.makeSpan([h.mclass]) : hr.sizedDelim(h.delim, h.size, p, h.mode, [h.mclass]);
|
|
63586
63646
|
},
|
|
63587
63647
|
mathmlBuilder: function(h) {
|
|
63588
63648
|
var p = [];
|
|
63589
63649
|
h.delim !== "." && p.push(Hn(h.delim, h.mode));
|
|
63590
63650
|
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",
|
|
63651
|
+
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
63652
|
}
|
|
63593
63653
|
});
|
|
63594
63654
|
function dm(T) {
|
|
@@ -63642,17 +63702,17 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
63642
63702
|
g[R].isMiddle ? E = !0 : (_ = Math.max(g[R].height, _), w = Math.max(g[R].depth, w));
|
|
63643
63703
|
_ *= p.sizeMultiplier, w *= p.sizeMultiplier;
|
|
63644
63704
|
var L;
|
|
63645
|
-
if (h.left === "." ? L = gs(p, ["mopen"]) : L =
|
|
63705
|
+
if (h.left === "." ? L = gs(p, ["mopen"]) : L = hr.leftRightDelim(h.left, _, w, p, h.mode, ["mopen"]), g.unshift(L), E)
|
|
63646
63706
|
for (var F = 1; F < g.length; F++) {
|
|
63647
63707
|
var G = g[F], Y = G.isMiddle;
|
|
63648
|
-
Y && (g[F] =
|
|
63708
|
+
Y && (g[F] = hr.leftRightDelim(Y.delim, _, w, Y.options, h.mode, []));
|
|
63649
63709
|
}
|
|
63650
63710
|
var se;
|
|
63651
63711
|
if (h.right === ".")
|
|
63652
63712
|
se = gs(p, ["mclose"]);
|
|
63653
63713
|
else {
|
|
63654
63714
|
var ce = h.rightColor ? p.withColor(h.rightColor) : p;
|
|
63655
|
-
se =
|
|
63715
|
+
se = hr.leftRightDelim(h.right, _, w, ce, h.mode, ["mclose"]);
|
|
63656
63716
|
}
|
|
63657
63717
|
return g.push(se), W.makeSpan(["minner"], g, p);
|
|
63658
63718
|
},
|
|
@@ -63691,7 +63751,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
63691
63751
|
if (h.delim === ".")
|
|
63692
63752
|
g = gs(p, []);
|
|
63693
63753
|
else {
|
|
63694
|
-
g =
|
|
63754
|
+
g = hr.sizedDelim(h.delim, 1, p, h.mode, []);
|
|
63695
63755
|
var _ = {
|
|
63696
63756
|
delim: h.delim,
|
|
63697
63757
|
options: p
|
|
@@ -63706,21 +63766,21 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
63706
63766
|
}
|
|
63707
63767
|
});
|
|
63708
63768
|
var Nu = function(h, p) {
|
|
63709
|
-
var g = W.wrapFragment(
|
|
63769
|
+
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
63770
|
if (_ === "sout")
|
|
63711
63771
|
E = W.makeSpan(["stretchy", "sout"]), E.height = p.fontMetrics().defaultRuleThickness / w, R = -0.5 * p.fontMetrics().xHeight;
|
|
63712
63772
|
else if (_ === "phase") {
|
|
63713
|
-
var F =
|
|
63773
|
+
var F = rt({
|
|
63714
63774
|
number: 0.6,
|
|
63715
63775
|
unit: "pt"
|
|
63716
|
-
}, p), G =
|
|
63776
|
+
}, p), G = rt({
|
|
63717
63777
|
number: 0.35,
|
|
63718
63778
|
unit: "ex"
|
|
63719
63779
|
}, p), Y = p.havingBaseSizing();
|
|
63720
63780
|
w = w / Y.sizeMultiplier;
|
|
63721
63781
|
var se = g.height + g.depth + F + G;
|
|
63722
63782
|
g.style.paddingLeft = se / 2 + F + "em";
|
|
63723
|
-
var ce = Math.floor(1e3 * se * w), ue = Bt(ce), _e = new dn([new
|
|
63783
|
+
var ce = Math.floor(1e3 * se * w), ue = Bt(ce), _e = new dn([new ur("phase", ue)], {
|
|
63724
63784
|
width: "400em",
|
|
63725
63785
|
height: ce / 1e3 + "em",
|
|
63726
63786
|
viewBox: "0 0 400000 " + ce,
|
|
@@ -63756,7 +63816,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
63756
63816
|
]
|
|
63757
63817
|
}, p);
|
|
63758
63818
|
else {
|
|
63759
|
-
var
|
|
63819
|
+
var et = /cancel|phase/.test(_) ? ["svg-align"] : [];
|
|
63760
63820
|
Be = W.makeVList({
|
|
63761
63821
|
positionType: "individualShift",
|
|
63762
63822
|
children: [
|
|
@@ -63770,7 +63830,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
63770
63830
|
type: "elem",
|
|
63771
63831
|
elem: E,
|
|
63772
63832
|
shift: R,
|
|
63773
|
-
wrapperClasses:
|
|
63833
|
+
wrapperClasses: et
|
|
63774
63834
|
}
|
|
63775
63835
|
]
|
|
63776
63836
|
}, p);
|
|
@@ -63909,7 +63969,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
63909
63969
|
}
|
|
63910
63970
|
});
|
|
63911
63971
|
var hm = {};
|
|
63912
|
-
function
|
|
63972
|
+
function fr(T) {
|
|
63913
63973
|
for (var h = T.type, p = T.names, g = T.props, _ = T.handler, w = T.htmlBuilder, E = T.mathmlBuilder, R = {
|
|
63914
63974
|
type: h,
|
|
63915
63975
|
numArgs: g.numArgs || 0,
|
|
@@ -63968,8 +64028,8 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
63968
64028
|
break;
|
|
63969
64029
|
} else if (Be === "\\\\") {
|
|
63970
64030
|
T.consume();
|
|
63971
|
-
var
|
|
63972
|
-
T.gullet.future().text !== " " && (
|
|
64031
|
+
var et = void 0;
|
|
64032
|
+
T.gullet.future().text !== " " && (et = T.parseSizeGroup(!0)), we.push(et ? et.value : null), Ee.push(fm(T)), ue = [], _e.push(ue);
|
|
63973
64033
|
} else
|
|
63974
64034
|
throw new o("Expected & or \\\\ or \\cr or \\end", T.nextToken);
|
|
63975
64035
|
}
|
|
@@ -63991,7 +64051,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
63991
64051
|
function Iu(T) {
|
|
63992
64052
|
return T.substr(0, 1) === "d" ? "display" : "text";
|
|
63993
64053
|
}
|
|
63994
|
-
var
|
|
64054
|
+
var pr = function(h, p) {
|
|
63995
64055
|
var g, _, w = h.body.length, E = h.hLinesBeforeRow, R = 0, L = new Array(w), F = [], G = Math.max(
|
|
63996
64056
|
p.fontMetrics().arrayRuleWidth,
|
|
63997
64057
|
p.minRuleThickness
|
|
@@ -64001,29 +64061,29 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
64001
64061
|
var ce = p.havingStyle(Z.SCRIPT).sizeMultiplier;
|
|
64002
64062
|
se = 0.2778 * (ce / p.sizeMultiplier);
|
|
64003
64063
|
}
|
|
64004
|
-
var ue = h.colSeparationType === "CD" ?
|
|
64064
|
+
var ue = h.colSeparationType === "CD" ? rt({
|
|
64005
64065
|
number: 3,
|
|
64006
64066
|
unit: "ex"
|
|
64007
64067
|
}, p) : 12 * Y, _e = 3 * Y, we = h.arraystretch * ue, Ee = 0.7 * we, Ae = 0.3 * we, Be = 0;
|
|
64008
|
-
function
|
|
64068
|
+
function et(Jm) {
|
|
64009
64069
|
for (var Ua = 0; Ua < Jm.length; ++Ua)
|
|
64010
64070
|
Ua > 0 && (Be += 0.25), F.push({
|
|
64011
64071
|
pos: Be,
|
|
64012
64072
|
isDashed: Jm[Ua]
|
|
64013
64073
|
});
|
|
64014
64074
|
}
|
|
64015
|
-
for (
|
|
64075
|
+
for (et(E[0]), g = 0; g < h.body.length; ++g) {
|
|
64016
64076
|
var ft = h.body[g], Lt = Ee, ct = Ae;
|
|
64017
64077
|
R < ft.length && (R = ft.length);
|
|
64018
64078
|
var pt = new Array(ft.length);
|
|
64019
64079
|
for (_ = 0; _ < ft.length; ++_) {
|
|
64020
|
-
var $t =
|
|
64080
|
+
var $t = Je(ft[_], p);
|
|
64021
64081
|
ct < $t.depth && (ct = $t.depth), Lt < $t.height && (Lt = $t.height), pt[_] = $t;
|
|
64022
64082
|
}
|
|
64023
64083
|
var Mt = h.rowGaps[g], Dn = 0;
|
|
64024
|
-
Mt && (Dn =
|
|
64084
|
+
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
64085
|
}
|
|
64026
|
-
var Nn = Be / 2 + p.fontMetrics().axisHeight, oi = h.cols || [],
|
|
64086
|
+
var Nn = Be / 2 + p.fontMetrics().axisHeight, oi = h.cols || [], gr = [], Rn, No, Qm = [];
|
|
64027
64087
|
if (h.addEqnNum)
|
|
64028
64088
|
for (g = 0; g < w; ++g) {
|
|
64029
64089
|
var Wu = L[g], H5 = Wu.pos - Nn, Ku = W.makeSpan(["eqn-num"], [], p);
|
|
@@ -64041,16 +64101,16 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
64041
64101
|
++_, ++No
|
|
64042
64102
|
) {
|
|
64043
64103
|
for (var Ir = oi[No] || {}, Ym = !0; Ir.type === "separator"; ) {
|
|
64044
|
-
if (Ym || (Rn = W.makeSpan(["arraycolsep"], []), Rn.style.width = p.fontMetrics().doubleRuleSep + "em",
|
|
64104
|
+
if (Ym || (Rn = W.makeSpan(["arraycolsep"], []), Rn.style.width = p.fontMetrics().doubleRuleSep + "em", gr.push(Rn)), Ir.separator === "|" || Ir.separator === ":") {
|
|
64045
64105
|
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",
|
|
64106
|
+
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
64107
|
} else
|
|
64048
64108
|
throw new o("Invalid separator type: " + Ir.separator);
|
|
64049
64109
|
No++, Ir = oi[No] || {}, Ym = !1;
|
|
64050
64110
|
}
|
|
64051
64111
|
if (!(_ >= R)) {
|
|
64052
64112
|
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",
|
|
64113
|
+
(_ > 0 || h.hskipBeforeAndAfter) && (Io = x.deflt(Ir.pregap, se), Io !== 0 && (Rn = W.makeSpan(["arraycolsep"], []), Rn.style.width = Io + "em", gr.push(Rn)));
|
|
64054
64114
|
var Oo = [];
|
|
64055
64115
|
for (g = 0; g < w; ++g) {
|
|
64056
64116
|
var qa = L[g], Ha = qa[_];
|
|
@@ -64066,10 +64126,10 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
64066
64126
|
Oo = W.makeVList({
|
|
64067
64127
|
positionType: "individualShift",
|
|
64068
64128
|
children: Oo
|
|
64069
|
-
}, p), Oo = W.makeSpan(["col-align-" + (Ir.align || "c")], [Oo]),
|
|
64129
|
+
}, 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
64130
|
}
|
|
64071
64131
|
}
|
|
64072
|
-
if (L = W.makeSpan(["mtable"],
|
|
64132
|
+
if (L = W.makeSpan(["mtable"], gr), F.length > 0) {
|
|
64073
64133
|
for (var V5 = W.makeLineSpan("hline", p, G), $5 = W.makeLineSpan("hdashline", p, G), ju = [{
|
|
64074
64134
|
type: "elem",
|
|
64075
64135
|
elem: L,
|
|
@@ -64103,7 +64163,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
64103
64163
|
c: "center ",
|
|
64104
64164
|
l: "left ",
|
|
64105
64165
|
r: "right "
|
|
64106
|
-
},
|
|
64166
|
+
}, mr = function(h, p) {
|
|
64107
64167
|
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
64168
|
for (var R = h.body[E], L = [], F = 0; F < R.length; F++)
|
|
64109
64169
|
L.push(new fe.MathNode("mtd", [xt(R[F], p)]));
|
|
@@ -64120,7 +64180,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
64120
64180
|
G.setAttribute("columnalign", ce.trim()), /[sd]/.test(_e) && G.setAttribute("columnlines", _e.trim());
|
|
64121
64181
|
}
|
|
64122
64182
|
if (h.colSeparationType === "align") {
|
|
64123
|
-
for (var
|
|
64183
|
+
for (var et = h.cols || [], ft = "", Lt = 1; Lt < et.length; Lt++)
|
|
64124
64184
|
ft += Lt % 2 ? "0em " : "1em ";
|
|
64125
64185
|
G.setAttribute("columnspacing", ft.trim());
|
|
64126
64186
|
} 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 +64220,9 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
64160
64220
|
if (se)
|
|
64161
64221
|
R < we.length && (R = we.length);
|
|
64162
64222
|
else {
|
|
64163
|
-
var
|
|
64164
|
-
if (E <
|
|
64165
|
-
throw new o("Too many math in a row: " + ("expected " + E + ", but got " +
|
|
64223
|
+
var et = we.length / 2;
|
|
64224
|
+
if (E < et)
|
|
64225
|
+
throw new o("Too many math in a row: " + ("expected " + E + ", but got " + et), we[0]);
|
|
64166
64226
|
}
|
|
64167
64227
|
});
|
|
64168
64228
|
for (var ce = 0; ce < R; ++ce) {
|
|
@@ -64176,7 +64236,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
64176
64236
|
}
|
|
64177
64237
|
return w.colSeparationType = se ? "align" : "alignat", w;
|
|
64178
64238
|
};
|
|
64179
|
-
|
|
64239
|
+
fr({
|
|
64180
64240
|
type: "array",
|
|
64181
64241
|
names: ["array", "darray"],
|
|
64182
64242
|
props: {
|
|
@@ -64209,9 +64269,9 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
64209
64269
|
};
|
|
64210
64270
|
return ri(h.parser, E, Iu(h.envName));
|
|
64211
64271
|
},
|
|
64212
|
-
htmlBuilder:
|
|
64213
|
-
mathmlBuilder:
|
|
64214
|
-
}),
|
|
64272
|
+
htmlBuilder: pr,
|
|
64273
|
+
mathmlBuilder: mr
|
|
64274
|
+
}), fr({
|
|
64215
64275
|
type: "array",
|
|
64216
64276
|
names: ["matrix", "pmatrix", "bmatrix", "Bmatrix", "vmatrix", "Vmatrix", "matrix*", "pmatrix*", "bmatrix*", "Bmatrix*", "vmatrix*", "Vmatrix*"],
|
|
64217
64277
|
props: {
|
|
@@ -64259,9 +64319,9 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
64259
64319
|
// \right uninfluenced by \color in array
|
|
64260
64320
|
} : E;
|
|
64261
64321
|
},
|
|
64262
|
-
htmlBuilder:
|
|
64263
|
-
mathmlBuilder:
|
|
64264
|
-
}),
|
|
64322
|
+
htmlBuilder: pr,
|
|
64323
|
+
mathmlBuilder: mr
|
|
64324
|
+
}), fr({
|
|
64265
64325
|
type: "array",
|
|
64266
64326
|
names: ["smallmatrix"],
|
|
64267
64327
|
props: {
|
|
@@ -64273,9 +64333,9 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
64273
64333
|
}, g = ri(h.parser, p, "script");
|
|
64274
64334
|
return g.colSeparationType = "small", g;
|
|
64275
64335
|
},
|
|
64276
|
-
htmlBuilder:
|
|
64277
|
-
mathmlBuilder:
|
|
64278
|
-
}),
|
|
64336
|
+
htmlBuilder: pr,
|
|
64337
|
+
mathmlBuilder: mr
|
|
64338
|
+
}), fr({
|
|
64279
64339
|
type: "array",
|
|
64280
64340
|
names: ["subarray"],
|
|
64281
64341
|
props: {
|
|
@@ -64302,9 +64362,9 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
64302
64362
|
throw new o("{subarray} can contain only one column");
|
|
64303
64363
|
return E;
|
|
64304
64364
|
},
|
|
64305
|
-
htmlBuilder:
|
|
64306
|
-
mathmlBuilder:
|
|
64307
|
-
}),
|
|
64365
|
+
htmlBuilder: pr,
|
|
64366
|
+
mathmlBuilder: mr
|
|
64367
|
+
}), fr({
|
|
64308
64368
|
type: "array",
|
|
64309
64369
|
names: ["cases", "dcases", "rcases", "drcases"],
|
|
64310
64370
|
props: {
|
|
@@ -64339,18 +64399,18 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
64339
64399
|
rightColor: void 0
|
|
64340
64400
|
};
|
|
64341
64401
|
},
|
|
64342
|
-
htmlBuilder:
|
|
64343
|
-
mathmlBuilder:
|
|
64344
|
-
}),
|
|
64402
|
+
htmlBuilder: pr,
|
|
64403
|
+
mathmlBuilder: mr
|
|
64404
|
+
}), fr({
|
|
64345
64405
|
type: "array",
|
|
64346
64406
|
names: ["align", "align*", "aligned", "split"],
|
|
64347
64407
|
props: {
|
|
64348
64408
|
numArgs: 0
|
|
64349
64409
|
},
|
|
64350
64410
|
handler: pm,
|
|
64351
|
-
htmlBuilder:
|
|
64352
|
-
mathmlBuilder:
|
|
64353
|
-
}),
|
|
64411
|
+
htmlBuilder: pr,
|
|
64412
|
+
mathmlBuilder: mr
|
|
64413
|
+
}), fr({
|
|
64354
64414
|
type: "array",
|
|
64355
64415
|
names: ["gathered", "gather", "gather*"],
|
|
64356
64416
|
props: {
|
|
@@ -64371,18 +64431,18 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
64371
64431
|
};
|
|
64372
64432
|
return ri(h.parser, p, "display");
|
|
64373
64433
|
},
|
|
64374
|
-
htmlBuilder:
|
|
64375
|
-
mathmlBuilder:
|
|
64376
|
-
}),
|
|
64434
|
+
htmlBuilder: pr,
|
|
64435
|
+
mathmlBuilder: mr
|
|
64436
|
+
}), fr({
|
|
64377
64437
|
type: "array",
|
|
64378
64438
|
names: ["alignat", "alignat*", "alignedat"],
|
|
64379
64439
|
props: {
|
|
64380
64440
|
numArgs: 1
|
|
64381
64441
|
},
|
|
64382
64442
|
handler: pm,
|
|
64383
|
-
htmlBuilder:
|
|
64384
|
-
mathmlBuilder:
|
|
64385
|
-
}),
|
|
64443
|
+
htmlBuilder: pr,
|
|
64444
|
+
mathmlBuilder: mr
|
|
64445
|
+
}), fr({
|
|
64386
64446
|
type: "array",
|
|
64387
64447
|
names: ["equation", "equation*"],
|
|
64388
64448
|
props: {
|
|
@@ -64399,9 +64459,9 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
64399
64459
|
};
|
|
64400
64460
|
return ri(h.parser, p, "display");
|
|
64401
64461
|
},
|
|
64402
|
-
htmlBuilder:
|
|
64403
|
-
mathmlBuilder:
|
|
64404
|
-
}),
|
|
64462
|
+
htmlBuilder: pr,
|
|
64463
|
+
mathmlBuilder: mr
|
|
64464
|
+
}), fr({
|
|
64405
64465
|
type: "array",
|
|
64406
64466
|
names: ["CD"],
|
|
64407
64467
|
props: {
|
|
@@ -64410,8 +64470,8 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
64410
64470
|
handler: function(h) {
|
|
64411
64471
|
return za(h), e5(h.parser);
|
|
64412
64472
|
},
|
|
64413
|
-
htmlBuilder:
|
|
64414
|
-
mathmlBuilder:
|
|
64473
|
+
htmlBuilder: pr,
|
|
64474
|
+
mathmlBuilder: mr
|
|
64415
64475
|
}), Ce({
|
|
64416
64476
|
type: "text",
|
|
64417
64477
|
// Doesn't matter what this is.
|
|
@@ -64549,7 +64609,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
64549
64609
|
});
|
|
64550
64610
|
var _m = function(h, p) {
|
|
64551
64611
|
var g = h.font, _ = p.withFont(g);
|
|
64552
|
-
return
|
|
64612
|
+
return Je(h.body, _);
|
|
64553
64613
|
}, ym = function(h, p) {
|
|
64554
64614
|
var g = h.font, _ = p.withFont(g);
|
|
64555
64615
|
return xt(h.body, _);
|
|
@@ -64644,21 +64704,21 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
64644
64704
|
}, Lu = function(h, p) {
|
|
64645
64705
|
var g = wm(h.size, p.style), _ = g.fracNum(), w = g.fracDen(), E;
|
|
64646
64706
|
E = p.havingStyle(_);
|
|
64647
|
-
var R =
|
|
64707
|
+
var R = Je(h.numer, E, p);
|
|
64648
64708
|
if (h.continued) {
|
|
64649
64709
|
var L = 8.5 / p.fontMetrics().ptPerEm, F = 3.5 / p.fontMetrics().ptPerEm;
|
|
64650
64710
|
R.height = R.height < L ? L : R.height, R.depth = R.depth < F ? F : R.depth;
|
|
64651
64711
|
}
|
|
64652
64712
|
E = p.havingStyle(w);
|
|
64653
|
-
var G =
|
|
64654
|
-
h.hasBarLine ? (h.barSize ? (se =
|
|
64713
|
+
var G = Je(h.denom, E, p), Y, se, ce;
|
|
64714
|
+
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
64715
|
var ue, _e, we;
|
|
64656
64716
|
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
64717
|
var Ee;
|
|
64658
64718
|
if (Y) {
|
|
64659
64719
|
var Be = p.fontMetrics().axisHeight;
|
|
64660
64720
|
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
|
|
64721
|
+
var et = -(Be - 0.5 * se);
|
|
64662
64722
|
Ee = W.makeVList({
|
|
64663
64723
|
positionType: "individualShift",
|
|
64664
64724
|
children: [{
|
|
@@ -64668,7 +64728,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
64668
64728
|
}, {
|
|
64669
64729
|
type: "elem",
|
|
64670
64730
|
elem: Y,
|
|
64671
|
-
shift:
|
|
64731
|
+
shift: et
|
|
64672
64732
|
}, {
|
|
64673
64733
|
type: "elem",
|
|
64674
64734
|
elem: R,
|
|
@@ -64694,13 +64754,13 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
64694
64754
|
var ft;
|
|
64695
64755
|
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
64756
|
var Lt, ct;
|
|
64697
|
-
return h.leftDelim == null ? Lt = gs(p, ["mopen"]) : Lt =
|
|
64757
|
+
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
64758
|
}, Pu = function(h, p) {
|
|
64699
64759
|
var g = new fe.MathNode("mfrac", [xt(h.numer, p), xt(h.denom, p)]);
|
|
64700
64760
|
if (!h.hasBarLine)
|
|
64701
64761
|
g.setAttribute("linethickness", "0px");
|
|
64702
64762
|
else if (h.barSize) {
|
|
64703
|
-
var _ =
|
|
64763
|
+
var _ = rt(h.barSize, p);
|
|
64704
64764
|
g.setAttribute("linethickness", _ + "em");
|
|
64705
64765
|
}
|
|
64706
64766
|
var w = wm(h.size, p.style);
|
|
@@ -64938,8 +64998,8 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
64938
64998
|
});
|
|
64939
64999
|
var Sm = function(h, p) {
|
|
64940
65000
|
var g = p.style, _, w;
|
|
64941
|
-
h.type === "supsub" ? (_ = h.sup ?
|
|
64942
|
-
var E =
|
|
65001
|
+
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");
|
|
65002
|
+
var E = Je(w.base, p.havingBaseStyle(Z.DISPLAY)), R = Rr.svgSpan(w, p), L;
|
|
64943
65003
|
if (w.isOver ? (L = W.makeVList({
|
|
64944
65004
|
positionType: "firstBaseline",
|
|
64945
65005
|
children: [{
|
|
@@ -65272,10 +65332,10 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
65272
65332
|
} : _.formatUnsupportedCmd("\\includegraphics");
|
|
65273
65333
|
},
|
|
65274
65334
|
htmlBuilder: function(h, p) {
|
|
65275
|
-
var g =
|
|
65276
|
-
h.totalheight.number > 0 && (_ =
|
|
65335
|
+
var g = rt(h.height, p), _ = 0;
|
|
65336
|
+
h.totalheight.number > 0 && (_ = rt(h.totalheight, p) - g, _ = Number(_.toFixed(2)));
|
|
65277
65337
|
var w = 0;
|
|
65278
|
-
h.width.number > 0 && (w =
|
|
65338
|
+
h.width.number > 0 && (w = rt(h.width, p));
|
|
65279
65339
|
var E = {
|
|
65280
65340
|
height: g + _ + "em"
|
|
65281
65341
|
};
|
|
@@ -65286,9 +65346,9 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
65286
65346
|
mathmlBuilder: function(h, p) {
|
|
65287
65347
|
var g = new fe.MathNode("mglyph", []);
|
|
65288
65348
|
g.setAttribute("alt", h.alt);
|
|
65289
|
-
var _ =
|
|
65290
|
-
if (h.totalheight.number > 0 && (w =
|
|
65291
|
-
var E =
|
|
65349
|
+
var _ = rt(h.height, p), w = 0;
|
|
65350
|
+
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) {
|
|
65351
|
+
var E = rt(h.width, p);
|
|
65292
65352
|
g.setAttribute("width", E + "em");
|
|
65293
65353
|
}
|
|
65294
65354
|
return g.setAttribute("src", h.src), g;
|
|
@@ -65318,7 +65378,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
65318
65378
|
return W.makeGlue(h.dimension, p);
|
|
65319
65379
|
},
|
|
65320
65380
|
mathmlBuilder: function(h, p) {
|
|
65321
|
-
var g =
|
|
65381
|
+
var g = rt(h.dimension, p);
|
|
65322
65382
|
return new fe.SpaceNode(g);
|
|
65323
65383
|
}
|
|
65324
65384
|
}), Ce({
|
|
@@ -65339,7 +65399,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
65339
65399
|
},
|
|
65340
65400
|
htmlBuilder: function(h, p) {
|
|
65341
65401
|
var g;
|
|
65342
|
-
h.alignment === "clap" ? (g = W.makeSpan([], [
|
|
65402
|
+
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
65403
|
var _ = W.makeSpan(["fix"], []), w = W.makeSpan([h.alignment], [g, _], p), E = W.makeSpan(["strut"]);
|
|
65344
65404
|
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
65405
|
},
|
|
@@ -65428,14 +65488,14 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
65428
65488
|
h = W.makeSpan([], [h]);
|
|
65429
65489
|
var L = g && x.isCharacterBox(g), F, G;
|
|
65430
65490
|
if (p) {
|
|
65431
|
-
var Y =
|
|
65491
|
+
var Y = Je(p, _.havingStyle(w.sup()), _);
|
|
65432
65492
|
G = {
|
|
65433
65493
|
elem: Y,
|
|
65434
65494
|
kern: Math.max(_.fontMetrics().bigOpSpacing1, _.fontMetrics().bigOpSpacing3 - Y.depth)
|
|
65435
65495
|
};
|
|
65436
65496
|
}
|
|
65437
65497
|
if (g) {
|
|
65438
|
-
var se =
|
|
65498
|
+
var se = Je(g, _.havingStyle(w.sub()), _);
|
|
65439
65499
|
F = {
|
|
65440
65500
|
elem: se,
|
|
65441
65501
|
kern: Math.max(_.fontMetrics().bigOpSpacing2, _.fontMetrics().bigOpSpacing4 - se.height)
|
|
@@ -65785,7 +65845,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
65785
65845
|
};
|
|
65786
65846
|
},
|
|
65787
65847
|
htmlBuilder: function(h, p) {
|
|
65788
|
-
var g =
|
|
65848
|
+
var g = Je(h.body, p.havingCrampedStyle()), _ = W.makeLineSpan("overline-line", p), w = p.fontMetrics().defaultRuleThickness, E = W.makeVList({
|
|
65789
65849
|
positionType: "firstBaseline",
|
|
65790
65850
|
children: [{
|
|
65791
65851
|
type: "elem",
|
|
@@ -65848,7 +65908,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
65848
65908
|
};
|
|
65849
65909
|
},
|
|
65850
65910
|
htmlBuilder: function(h, p) {
|
|
65851
|
-
var g = W.makeSpan([], [
|
|
65911
|
+
var g = W.makeSpan([], [Je(h.body, p.withPhantom())]);
|
|
65852
65912
|
if (g.height = 0, g.depth = 0, g.children)
|
|
65853
65913
|
for (var _ = 0; _ < g.children.length; _++)
|
|
65854
65914
|
g.children[_].height = 0, g.children[_].depth = 0;
|
|
@@ -65880,7 +65940,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
65880
65940
|
};
|
|
65881
65941
|
},
|
|
65882
65942
|
htmlBuilder: function(h, p) {
|
|
65883
|
-
var g = W.makeSpan(["inner"], [
|
|
65943
|
+
var g = W.makeSpan(["inner"], [Je(h.body, p.withPhantom())]), _ = W.makeSpan(["fix"], []);
|
|
65884
65944
|
return W.makeSpan(["mord", "rlap"], [g, _], p);
|
|
65885
65945
|
},
|
|
65886
65946
|
mathmlBuilder: function(h, p) {
|
|
@@ -65905,7 +65965,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
65905
65965
|
};
|
|
65906
65966
|
},
|
|
65907
65967
|
htmlBuilder: function(h, p) {
|
|
65908
|
-
var g =
|
|
65968
|
+
var g = Je(h.body, p), _ = rt(h.dy, p);
|
|
65909
65969
|
return W.makeVList({
|
|
65910
65970
|
positionType: "shift",
|
|
65911
65971
|
positionData: -_,
|
|
@@ -65938,11 +65998,11 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
65938
65998
|
};
|
|
65939
65999
|
},
|
|
65940
66000
|
htmlBuilder: function(h, p) {
|
|
65941
|
-
var g = W.makeSpan(["mord", "rule"], [], p), _ =
|
|
66001
|
+
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
66002
|
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
66003
|
},
|
|
65944
66004
|
mathmlBuilder: function(h, p) {
|
|
65945
|
-
var g =
|
|
66005
|
+
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
66006
|
R.setAttribute("mathbackground", E), R.setAttribute("width", g + "em"), R.setAttribute("height", _ + "em");
|
|
65947
66007
|
var L = new fe.MathNode("mpadded", [R]);
|
|
65948
66008
|
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 +66075,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
66015
66075
|
};
|
|
66016
66076
|
},
|
|
66017
66077
|
htmlBuilder: function(h, p) {
|
|
66018
|
-
var g = W.makeSpan([], [
|
|
66078
|
+
var g = W.makeSpan([], [Je(h.body, p)]);
|
|
66019
66079
|
if (!h.smashHeight && !h.smashDepth)
|
|
66020
66080
|
return g;
|
|
66021
66081
|
if (h.smashHeight && (g.height = 0, g.children))
|
|
@@ -66054,11 +66114,11 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
66054
66114
|
};
|
|
66055
66115
|
},
|
|
66056
66116
|
htmlBuilder: function(h, p) {
|
|
66057
|
-
var g =
|
|
66117
|
+
var g = Je(h.body, p.havingCrampedStyle());
|
|
66058
66118
|
g.height === 0 && (g.height = p.fontMetrics().xHeight), g = W.wrapFragment(g, p);
|
|
66059
66119
|
var _ = p.fontMetrics(), w = _.defaultRuleThickness, E = w;
|
|
66060
66120
|
p.style.id < Z.TEXT.id && (E = p.fontMetrics().xHeight);
|
|
66061
|
-
var R = w + E / 4, L = g.height + g.depth + R + w, F =
|
|
66121
|
+
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
66122
|
ce > g.height + g.depth + R && (R = (R + ce - g.height - g.depth) / 2);
|
|
66063
66123
|
var ue = G.height - g.height - R - Y;
|
|
66064
66124
|
g.style.paddingLeft = se + "em";
|
|
@@ -66080,15 +66140,15 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
66080
66140
|
}]
|
|
66081
66141
|
}, p);
|
|
66082
66142
|
if (h.index) {
|
|
66083
|
-
var we = p.havingStyle(Z.SCRIPTSCRIPT), Ee =
|
|
66143
|
+
var we = p.havingStyle(Z.SCRIPTSCRIPT), Ee = Je(h.index, we, p), Ae = 0.6 * (_e.height - _e.depth), Be = W.makeVList({
|
|
66084
66144
|
positionType: "shift",
|
|
66085
66145
|
positionData: -Ae,
|
|
66086
66146
|
children: [{
|
|
66087
66147
|
type: "elem",
|
|
66088
66148
|
elem: Ee
|
|
66089
66149
|
}]
|
|
66090
|
-
}, p),
|
|
66091
|
-
return W.makeSpan(["mord", "sqrt"], [
|
|
66150
|
+
}, p), et = W.makeSpan(["root"], [Be]);
|
|
66151
|
+
return W.makeSpan(["mord", "sqrt"], [et, _e], p);
|
|
66092
66152
|
} else
|
|
66093
66153
|
return W.makeSpan(["mord", "sqrt"], [_e], p);
|
|
66094
66154
|
},
|
|
@@ -66162,21 +66222,21 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
66162
66222
|
var g = x5(h, p);
|
|
66163
66223
|
if (g)
|
|
66164
66224
|
return g(h, p);
|
|
66165
|
-
var _ = h.base, w = h.sup, E = h.sub, R =
|
|
66225
|
+
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
66226
|
if (w) {
|
|
66167
66227
|
var ue = p.havingStyle(p.style.sup());
|
|
66168
|
-
L =
|
|
66228
|
+
L = Je(w, ue, p), ce || (Y = R.height - ue.fontMetrics().supDrop * ue.sizeMultiplier / p.sizeMultiplier);
|
|
66169
66229
|
}
|
|
66170
66230
|
if (E) {
|
|
66171
66231
|
var _e = p.havingStyle(p.style.sub());
|
|
66172
|
-
F =
|
|
66232
|
+
F = Je(E, _e, p), ce || (se = R.depth + _e.fontMetrics().subDrop * _e.sizeMultiplier / p.sizeMultiplier);
|
|
66173
66233
|
}
|
|
66174
66234
|
var we;
|
|
66175
66235
|
p.style === Z.DISPLAY ? we = G.sup1 : p.style.cramped ? we = G.sup3 : we = G.sup2;
|
|
66176
66236
|
var Ee = p.sizeMultiplier, Ae = 0.5 / G.ptPerEm / Ee + "em", Be = null;
|
|
66177
66237
|
if (F) {
|
|
66178
|
-
var
|
|
66179
|
-
(R instanceof yn ||
|
|
66238
|
+
var et = h.base && h.base.type === "op" && h.base.name && (h.base.name === "\\oiint" || h.base.name === "\\oiiint");
|
|
66239
|
+
(R instanceof yn || et) && (Be = -R.italic + "em");
|
|
66180
66240
|
}
|
|
66181
66241
|
var ft;
|
|
66182
66242
|
if (L && F) {
|
|
@@ -66415,7 +66475,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
66415
66475
|
};
|
|
66416
66476
|
},
|
|
66417
66477
|
htmlBuilder: function(h, p) {
|
|
66418
|
-
var g =
|
|
66478
|
+
var g = Je(h.body, p), _ = W.makeLineSpan("underline-line", p), w = p.fontMetrics().defaultRuleThickness, E = W.makeVList({
|
|
66419
66479
|
positionType: "top",
|
|
66420
66480
|
positionData: g.height,
|
|
66421
66481
|
children: [{
|
|
@@ -66458,7 +66518,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
66458
66518
|
};
|
|
66459
66519
|
},
|
|
66460
66520
|
htmlBuilder: function(h, p) {
|
|
66461
|
-
var g =
|
|
66521
|
+
var g = Je(h.body, p), _ = p.fontMetrics().axisHeight, w = 0.5 * (g.height - _ - (g.depth + _));
|
|
66462
66522
|
return W.makeVList({
|
|
66463
66523
|
positionType: "shift",
|
|
66464
66524
|
positionData: w,
|
|
@@ -67921,8 +67981,8 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
|
|
|
67921
67981
|
Anchor: go,
|
|
67922
67982
|
SymbolNode: yn,
|
|
67923
67983
|
SvgNode: dn,
|
|
67924
|
-
PathNode:
|
|
67925
|
-
LineNode:
|
|
67984
|
+
PathNode: ur,
|
|
67985
|
+
LineNode: dr
|
|
67926
67986
|
}
|
|
67927
67987
|
}, q5 = z5;
|
|
67928
67988
|
return r = r.default, r;
|
|
@@ -68092,7 +68152,7 @@ function pge(n, e, t, r, i, o) {
|
|
|
68092
68152
|
return t.node ? (He(), rn(a, {
|
|
68093
68153
|
key: 0,
|
|
68094
68154
|
as: t.node.attrs.tag,
|
|
68095
|
-
class:
|
|
68155
|
+
class: tt(["power-editor-equation-container", {
|
|
68096
68156
|
dark: i.thisTheme === "dark",
|
|
68097
68157
|
div: t.node.attrs.tag == "div",
|
|
68098
68158
|
selected: t.selected
|
|
@@ -68100,7 +68160,7 @@ function pge(n, e, t, r, i, o) {
|
|
|
68100
68160
|
style: ut({ "--selected-bg": o.focusForeground })
|
|
68101
68161
|
}, {
|
|
68102
68162
|
default: ie(() => [
|
|
68103
|
-
|
|
68163
|
+
ae(Dc, { name: "power-editor-equation-popper-fade" }, {
|
|
68104
68164
|
default: ie(() => [
|
|
68105
68165
|
Ut(X("div", {
|
|
68106
68166
|
class: "power-editor-equation-popper-container",
|
|
@@ -68120,7 +68180,7 @@ function pge(n, e, t, r, i, o) {
|
|
|
68120
68180
|
}, null, 44, hge), [
|
|
68121
68181
|
[j4, i.thisValue]
|
|
68122
68182
|
]),
|
|
68123
|
-
|
|
68183
|
+
ae(s, {
|
|
68124
68184
|
class: "power-editor-equation-popper-btn",
|
|
68125
68185
|
theme: "dark",
|
|
68126
68186
|
disabled: i.lock,
|
|
@@ -68130,7 +68190,7 @@ function pge(n, e, t, r, i, o) {
|
|
|
68130
68190
|
onClick: o.close
|
|
68131
68191
|
}, {
|
|
68132
68192
|
default: ie(() => [
|
|
68133
|
-
|
|
68193
|
+
ir(Ye(i.getTitle("Done")), 1)
|
|
68134
68194
|
]),
|
|
68135
68195
|
_: 1
|
|
68136
68196
|
}, 8, ["disabled", "background", "onClick"])
|
|
@@ -68153,7 +68213,7 @@ function pge(n, e, t, r, i, o) {
|
|
|
68153
68213
|
X("i", { class: "ms-Icon ms-Icon--GripperDotsVertical" }, null, -1)
|
|
68154
68214
|
]), 32)) : Pt("", !0),
|
|
68155
68215
|
X("span", {
|
|
68156
|
-
class:
|
|
68216
|
+
class: tt(["power-editor-equation-target", { empty: i.thisValue === "" }]),
|
|
68157
68217
|
placeholder: t.node.attrs.emptyPlaceholder,
|
|
68158
68218
|
innerHTML: i.thisValue === "" ? t.node.attrs.emptyPlaceholder : i.equationString,
|
|
68159
68219
|
ref: "target",
|
|
@@ -68490,7 +68550,7 @@ function Age(n, e, t, r, i, o) {
|
|
|
68490
68550
|
return t.node ? (He(), rn(l, {
|
|
68491
68551
|
key: 0,
|
|
68492
68552
|
as: "span",
|
|
68493
|
-
class:
|
|
68553
|
+
class: tt(["power-editor-mention-container", {
|
|
68494
68554
|
dark: i.thisTheme === "dark",
|
|
68495
68555
|
selected: t.selected,
|
|
68496
68556
|
showing: i.showPopper && i.filterItems.length > 0
|
|
@@ -68502,14 +68562,14 @@ function Age(n, e, t, r, i, o) {
|
|
|
68502
68562
|
})
|
|
68503
68563
|
}, {
|
|
68504
68564
|
default: ie(() => [
|
|
68505
|
-
|
|
68565
|
+
ae(Dc, { name: "power-editor-mention-popper-fade" }, {
|
|
68506
68566
|
default: ie(() => [
|
|
68507
68567
|
Ut(X("div", {
|
|
68508
68568
|
class: "power-editor-mention-popper-container",
|
|
68509
68569
|
style: ut({ left: `${i.left}px`, top: `${i.top}px` })
|
|
68510
68570
|
}, [
|
|
68511
68571
|
Ut(X("div", xge, [
|
|
68512
|
-
|
|
68572
|
+
ae(s, {
|
|
68513
68573
|
loading: "true",
|
|
68514
68574
|
r: "10",
|
|
68515
68575
|
borderWidth: "2",
|
|
@@ -68519,7 +68579,7 @@ function Age(n, e, t, r, i, o) {
|
|
|
68519
68579
|
], 512), [
|
|
68520
68580
|
[Wt, i.loading]
|
|
68521
68581
|
]),
|
|
68522
|
-
|
|
68582
|
+
ae(a, {
|
|
68523
68583
|
modelValue: i.filterItems,
|
|
68524
68584
|
theme: i.thisTheme,
|
|
68525
68585
|
class: "power-editor-mention-popper-list-view",
|
|
@@ -68533,7 +68593,7 @@ function Age(n, e, t, r, i, o) {
|
|
|
68533
68593
|
listItem: ie((c) => [
|
|
68534
68594
|
c.item.image ? (He(), ot("img", {
|
|
68535
68595
|
key: 0,
|
|
68536
|
-
class:
|
|
68596
|
+
class: tt(["power-editor-mention-img", [{ avatar: c.item.avatarImg }]]),
|
|
68537
68597
|
src: c.valueTrigger(c.item.image),
|
|
68538
68598
|
alt: "",
|
|
68539
68599
|
style: ut({
|
|
@@ -68542,14 +68602,14 @@ function Age(n, e, t, r, i, o) {
|
|
|
68542
68602
|
}, null, 14, kge)) : Pt("", !0),
|
|
68543
68603
|
c.item.icon ? (He(), ot("i", {
|
|
68544
68604
|
key: 1,
|
|
68545
|
-
class:
|
|
68605
|
+
class: tt(["ms-Icon", [`ms-Icon--${c.valueTrigger(c.item.icon)}`]]),
|
|
68546
68606
|
style: ut([{ color: c.valueTrigger(c.item.iconColor) }, { "margin-right": "15px" }])
|
|
68547
68607
|
}, null, 6)) : Pt("", !0),
|
|
68548
68608
|
X("p", {
|
|
68549
68609
|
style: ut([{
|
|
68550
68610
|
color: c.valueTrigger(c.item.type) == "header" ? i.thisForeground : c.item.color
|
|
68551
68611
|
}, { flex: "1", "font-size": "12px" }])
|
|
68552
|
-
},
|
|
68612
|
+
}, Ye(c.valueTrigger(c.item.name)), 5)
|
|
68553
68613
|
]),
|
|
68554
68614
|
_: 1
|
|
68555
68615
|
}, 8, ["modelValue", "theme", "onChooseItem"])
|
|
@@ -68578,7 +68638,7 @@ function Age(n, e, t, r, i, o) {
|
|
|
68578
68638
|
}, null, 8, Cge)) : Pt("", !0),
|
|
68579
68639
|
t.node.attrs.currentItem.icon ? (He(), ot("i", {
|
|
68580
68640
|
key: 2,
|
|
68581
|
-
class:
|
|
68641
|
+
class: tt(["ms-Icon power-editor-mention-icon", [
|
|
68582
68642
|
`ms-Icon--${o.valueTrigger(t.node.attrs.currentItem.icon)}`
|
|
68583
68643
|
]]),
|
|
68584
68644
|
style: ut({
|
|
@@ -68587,7 +68647,7 @@ function Age(n, e, t, r, i, o) {
|
|
|
68587
68647
|
}, null, 6)) : Pt("", !0),
|
|
68588
68648
|
Ut(X("input", {
|
|
68589
68649
|
"onUpdate:modelValue": e[0] || (e[0] = (c) => t.node.attrs.value = c),
|
|
68590
|
-
class:
|
|
68650
|
+
class: tt(["power-editor-mention-input", [{ freeze: t.node.attrs.freeze }]]),
|
|
68591
68651
|
placeholder: t.node.attrs.placeholder,
|
|
68592
68652
|
readonly: t.node.attrs.freeze,
|
|
68593
68653
|
ref: "target",
|
|
@@ -68604,9 +68664,9 @@ function Age(n, e, t, r, i, o) {
|
|
|
68604
68664
|
]),
|
|
68605
68665
|
X("p", {
|
|
68606
68666
|
title: t.node.attrs.value,
|
|
68607
|
-
class:
|
|
68667
|
+
class: tt(["power-editor-mention-placeholder", [{ show: t.node.attrs.freeze }]]),
|
|
68608
68668
|
style: ut({ color: t.node.attrs.currentItem.color })
|
|
68609
|
-
},
|
|
68669
|
+
}, Ye(t.node.attrs.value ? t.node.attrs.value : t.node.attrs.placeholder), 15, Tge)
|
|
68610
68670
|
])
|
|
68611
68671
|
]),
|
|
68612
68672
|
_: 1
|
|
@@ -69346,7 +69406,7 @@ function m6(n, e) {
|
|
|
69346
69406
|
}
|
|
69347
69407
|
function wa() {
|
|
69348
69408
|
}
|
|
69349
|
-
var ua = 0.7, Sc = 1 / ua, Qo = "\\s*([+-]?\\d+)\\s*", da = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",
|
|
69409
|
+
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
69410
|
aliceblue: 15792383,
|
|
69351
69411
|
antiquewhite: 16444375,
|
|
69352
69412
|
aqua: 65535,
|
|
@@ -69833,16 +69893,16 @@ function iu(n, e, t, r, i, o) {
|
|
|
69833
69893
|
});
|
|
69834
69894
|
}
|
|
69835
69895
|
function qp(n, e) {
|
|
69836
|
-
var t =
|
|
69896
|
+
var t = cr(n, e);
|
|
69837
69897
|
if (t.state > S6) throw new Error("too late; already scheduled");
|
|
69838
69898
|
return t;
|
|
69839
69899
|
}
|
|
69840
69900
|
function Ar(n, e) {
|
|
69841
|
-
var t =
|
|
69901
|
+
var t = cr(n, e);
|
|
69842
69902
|
if (t.state > Al) throw new Error("too late; already running");
|
|
69843
69903
|
return t;
|
|
69844
69904
|
}
|
|
69845
|
-
function
|
|
69905
|
+
function cr(n, e) {
|
|
69846
69906
|
var t = n.__transition;
|
|
69847
69907
|
if (!t || !(t = t[e])) throw new Error("transition not found");
|
|
69848
69908
|
return t;
|
|
@@ -69934,7 +69994,7 @@ function jbe(n, e, t) {
|
|
|
69934
69994
|
function Qbe(n, e) {
|
|
69935
69995
|
var t = this._id;
|
|
69936
69996
|
if (n += "", arguments.length < 2) {
|
|
69937
|
-
for (var r =
|
|
69997
|
+
for (var r = cr(this.node(), t).tween, i = 0, o = r.length, s; i < o; ++i)
|
|
69938
69998
|
if ((s = r[i]).name === n)
|
|
69939
69999
|
return s.value;
|
|
69940
70000
|
return null;
|
|
@@ -69947,7 +70007,7 @@ function Hp(n, e, t) {
|
|
|
69947
70007
|
var i = Ar(this, r);
|
|
69948
70008
|
(i.value || (i.value = {}))[e] = t.apply(this, arguments);
|
|
69949
70009
|
}), function(i) {
|
|
69950
|
-
return
|
|
70010
|
+
return cr(i, r).value[e];
|
|
69951
70011
|
};
|
|
69952
70012
|
}
|
|
69953
70013
|
function C6(n, e) {
|
|
@@ -70042,7 +70102,7 @@ function c_e(n, e) {
|
|
|
70042
70102
|
}
|
|
70043
70103
|
function u_e(n) {
|
|
70044
70104
|
var e = this._id;
|
|
70045
|
-
return arguments.length ? this.each((typeof n == "function" ? l_e : c_e)(e, n)) :
|
|
70105
|
+
return arguments.length ? this.each((typeof n == "function" ? l_e : c_e)(e, n)) : cr(this.node(), e).delay;
|
|
70046
70106
|
}
|
|
70047
70107
|
function d_e(n, e) {
|
|
70048
70108
|
return function() {
|
|
@@ -70056,7 +70116,7 @@ function h_e(n, e) {
|
|
|
70056
70116
|
}
|
|
70057
70117
|
function f_e(n) {
|
|
70058
70118
|
var e = this._id;
|
|
70059
|
-
return arguments.length ? this.each((typeof n == "function" ? d_e : h_e)(e, n)) :
|
|
70119
|
+
return arguments.length ? this.each((typeof n == "function" ? d_e : h_e)(e, n)) : cr(this.node(), e).duration;
|
|
70060
70120
|
}
|
|
70061
70121
|
function p_e(n, e) {
|
|
70062
70122
|
if (typeof e != "function") throw new Error();
|
|
@@ -70066,7 +70126,7 @@ function p_e(n, e) {
|
|
|
70066
70126
|
}
|
|
70067
70127
|
function m_e(n) {
|
|
70068
70128
|
var e = this._id;
|
|
70069
|
-
return arguments.length ? this.each(p_e(e, n)) :
|
|
70129
|
+
return arguments.length ? this.each(p_e(e, n)) : cr(this.node(), e).ease;
|
|
70070
70130
|
}
|
|
70071
70131
|
function g_e(n, e) {
|
|
70072
70132
|
return function() {
|
|
@@ -70110,7 +70170,7 @@ function w_e(n, e, t) {
|
|
|
70110
70170
|
}
|
|
70111
70171
|
function x_e(n, e) {
|
|
70112
70172
|
var t = this._id;
|
|
70113
|
-
return arguments.length < 2 ?
|
|
70173
|
+
return arguments.length < 2 ? cr(this.node(), t).on.on(n) : this.each(w_e(t, n, e));
|
|
70114
70174
|
}
|
|
70115
70175
|
function k_e(n) {
|
|
70116
70176
|
return function() {
|
|
@@ -70127,7 +70187,7 @@ function C_e(n) {
|
|
|
70127
70187
|
typeof n != "function" && (n = Pp(n));
|
|
70128
70188
|
for (var r = this._groups, i = r.length, o = new Array(i), s = 0; s < i; ++s)
|
|
70129
70189
|
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,
|
|
70190
|
+
(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
70191
|
return new Kr(o, this._parents, e, t);
|
|
70132
70192
|
}
|
|
70133
70193
|
function E_e(n) {
|
|
@@ -70136,7 +70196,7 @@ function E_e(n) {
|
|
|
70136
70196
|
for (var r = this._groups, i = r.length, o = [], s = [], a = 0; a < i; ++a)
|
|
70137
70197
|
for (var l = r[a], c = l.length, u, d = 0; d < c; ++d)
|
|
70138
70198
|
if (u = l[d]) {
|
|
70139
|
-
for (var m = n.call(u, u.__data__, d, l), b, f =
|
|
70199
|
+
for (var m = n.call(u, u.__data__, d, l), b, f = cr(u, t), y = 0, v = m.length; y < v; ++y)
|
|
70140
70200
|
(b = m[y]) && iu(b, e, t, y, m, f);
|
|
70141
70201
|
o.push(m), s.push(u);
|
|
70142
70202
|
}
|
|
@@ -70241,7 +70301,7 @@ function G_e() {
|
|
|
70241
70301
|
for (var n = this._name, e = this._id, t = T6(), r = this._groups, i = r.length, o = 0; o < i; ++o)
|
|
70242
70302
|
for (var s = r[o], a = s.length, l, c = 0; c < a; ++c)
|
|
70243
70303
|
if (l = s[c]) {
|
|
70244
|
-
var u =
|
|
70304
|
+
var u = cr(l, e);
|
|
70245
70305
|
iu(l, n, t, c, s, {
|
|
70246
70306
|
time: u.time + u.delay + u.duration,
|
|
70247
70307
|
delay: 0,
|
|
@@ -70751,13 +70811,13 @@ const l4e = /* @__PURE__ */ Tr(a4e), c4e = {
|
|
|
70751
70811
|
function g4e(n, e, t, r, i, o) {
|
|
70752
70812
|
const s = Me("fv-button"), a = Me("fv-slider"), l = Me("media-container"), c = Me("node-view-wrapper");
|
|
70753
70813
|
return He(), rn(c, {
|
|
70754
|
-
class:
|
|
70814
|
+
class: tt(["power-editor-drawing-block-container", [{ dark: i.thisTheme === "dark" }]]),
|
|
70755
70815
|
style: ut({ "justify-content": t.node.attrs.alignCenter ? "center" : "flex-start" })
|
|
70756
70816
|
}, {
|
|
70757
70817
|
default: ie(() => [
|
|
70758
70818
|
Ut(X("div", u4e, [
|
|
70759
70819
|
X("div", d4e, [
|
|
70760
|
-
|
|
70820
|
+
ae(s, {
|
|
70761
70821
|
theme: i.thisTheme,
|
|
70762
70822
|
"font-size": 12,
|
|
70763
70823
|
borderRadius: 50,
|
|
@@ -70773,7 +70833,7 @@ function g4e(n, e, t, r, i, o) {
|
|
|
70773
70833
|
_: 1,
|
|
70774
70834
|
__: [7]
|
|
70775
70835
|
}, 8, ["theme", "disabled", "background"]),
|
|
70776
|
-
|
|
70836
|
+
ae(a, {
|
|
70777
70837
|
modelValue: i.size,
|
|
70778
70838
|
"onUpdate:modelValue": e[1] || (e[1] = (u) => i.size = u),
|
|
70779
70839
|
theme: i.thisTheme,
|
|
@@ -70786,11 +70846,11 @@ function g4e(n, e, t, r, i, o) {
|
|
|
70786
70846
|
style: { width: "150px", height: "100%", "margin-left": "5px", "margin-right": "5px" }
|
|
70787
70847
|
}, {
|
|
70788
70848
|
default: ie((u) => [
|
|
70789
|
-
X("span", h4e,
|
|
70849
|
+
X("span", h4e, Ye(u.modelValue), 1)
|
|
70790
70850
|
]),
|
|
70791
70851
|
_: 1
|
|
70792
70852
|
}, 8, ["modelValue", "theme", "color"]),
|
|
70793
|
-
|
|
70853
|
+
ae(s, {
|
|
70794
70854
|
theme: i.thisTheme,
|
|
70795
70855
|
"font-size": 12,
|
|
70796
70856
|
borderRadius: 50,
|
|
@@ -70819,14 +70879,14 @@ function g4e(n, e, t, r, i, o) {
|
|
|
70819
70879
|
onClick: (m) => i.color = u.color
|
|
70820
70880
|
}, {
|
|
70821
70881
|
default: ie(() => e[9] || (e[9] = [
|
|
70822
|
-
|
|
70882
|
+
ir(Ye(""))
|
|
70823
70883
|
])),
|
|
70824
70884
|
_: 2,
|
|
70825
70885
|
__: [9]
|
|
70826
70886
|
}, 1032, ["background", "isBoxShadow", "onClick"]))), 128))
|
|
70827
70887
|
]),
|
|
70828
70888
|
X("div", p4e, [
|
|
70829
|
-
|
|
70889
|
+
ae(s, {
|
|
70830
70890
|
class: "power-editor-d-b-btn __clear",
|
|
70831
70891
|
"font-size": 10,
|
|
70832
70892
|
borderRadius: 50,
|
|
@@ -70842,7 +70902,7 @@ function g4e(n, e, t, r, i, o) {
|
|
|
70842
70902
|
_: 1,
|
|
70843
70903
|
__: [10]
|
|
70844
70904
|
}, 8, ["background", "theme"]),
|
|
70845
|
-
|
|
70905
|
+
ae(s, {
|
|
70846
70906
|
class: "power-editor-d-b-btn __clear",
|
|
70847
70907
|
"font-size": 10,
|
|
70848
70908
|
borderRadius: 50,
|
|
@@ -70861,7 +70921,7 @@ function g4e(n, e, t, r, i, o) {
|
|
|
70861
70921
|
], 512), [
|
|
70862
70922
|
[Wt, t.editor.isEditable]
|
|
70863
70923
|
]),
|
|
70864
|
-
|
|
70924
|
+
ae(l, {
|
|
70865
70925
|
width: t.node.attrs.width,
|
|
70866
70926
|
"onUpdate:width": e[4] || (e[4] = (u) => t.node.attrs.width = u),
|
|
70867
70927
|
caption: t.node.attrs.caption,
|
|
@@ -70876,7 +70936,7 @@ function g4e(n, e, t, r, i, o) {
|
|
|
70876
70936
|
}, {
|
|
70877
70937
|
default: ie(() => [
|
|
70878
70938
|
(He(), ot("svg", {
|
|
70879
|
-
class:
|
|
70939
|
+
class: tt(["canvas-svg", [{ readonly: !t.editor.isEditable }]]),
|
|
70880
70940
|
viewBox: "0 0 500 250",
|
|
70881
70941
|
ref: "canvas"
|
|
70882
70942
|
}, [
|
|
@@ -71174,7 +71234,7 @@ const b4e = /* @__PURE__ */ on(c4e, [["render", g4e]]), _4e = Rt.create({
|
|
|
71174
71234
|
function E4e(n, e, t, r, i, o) {
|
|
71175
71235
|
const s = Me("fv-callout"), a = Me("fv-drawer");
|
|
71176
71236
|
return He(), ot("div", {
|
|
71177
|
-
class:
|
|
71237
|
+
class: tt(["power-editor-callout-base-container", [{ dark: t.theme === "dark" }]])
|
|
71178
71238
|
}, [
|
|
71179
71239
|
t.mobileMode ? Pt("", !0) : (He(), rn(s, {
|
|
71180
71240
|
key: 0,
|
|
@@ -71198,7 +71258,7 @@ function E4e(n, e, t, r, i, o) {
|
|
|
71198
71258
|
}, {
|
|
71199
71259
|
header: ie(() => [
|
|
71200
71260
|
mt(n.$slots, "header", { title: t.title }, () => [
|
|
71201
|
-
X("p", w4e,
|
|
71261
|
+
X("p", w4e, Ye(t.title), 1)
|
|
71202
71262
|
])
|
|
71203
71263
|
]),
|
|
71204
71264
|
main: ie(() => [
|
|
@@ -71211,11 +71271,11 @@ function E4e(n, e, t, r, i, o) {
|
|
|
71211
71271
|
}, 8, ["modelValue", "disabled", "theme", "popperClass", "popper-style"])),
|
|
71212
71272
|
t.mobileMode ? (He(), ot("div", x4e, [
|
|
71213
71273
|
mt(n.$slots, "trigger", { show: o.triggerShow }),
|
|
71214
|
-
|
|
71274
|
+
ae(a, {
|
|
71215
71275
|
modelValue: i.thisShow,
|
|
71216
71276
|
"onUpdate:modelValue": e[2] || (e[2] = (l) => i.thisShow = l),
|
|
71217
71277
|
theme: t.theme,
|
|
71218
|
-
class:
|
|
71278
|
+
class: tt(["power-editor-callout-base-mobile-container", [{ dark: t.theme === "dark" }]]),
|
|
71219
71279
|
length: "calc(100% - 50px)",
|
|
71220
71280
|
background: t.theme === "dark" ? "rgba(56, 56, 56, 0.9)" : "rgba(252, 252, 252, 0.9)",
|
|
71221
71281
|
"control-padding": "0px 12px",
|
|
@@ -71227,7 +71287,7 @@ function E4e(n, e, t, r, i, o) {
|
|
|
71227
71287
|
X("div", k4e, [
|
|
71228
71288
|
mt(n.$slots, "header", { title: t.title }, () => [
|
|
71229
71289
|
e[3] || (e[3] = X("p", { style: { width: "50px" } }, null, -1)),
|
|
71230
|
-
X("p", S4e,
|
|
71290
|
+
X("p", S4e, Ye(t.title), 1)
|
|
71231
71291
|
]),
|
|
71232
71292
|
X("p", {
|
|
71233
71293
|
class: "p-e-c-b-m-close",
|
|
@@ -71235,12 +71295,12 @@ function E4e(n, e, t, r, i, o) {
|
|
|
71235
71295
|
color: t.theme === "dark" ? "whitesmoke" : t.foreground
|
|
71236
71296
|
}),
|
|
71237
71297
|
onClick: e[1] || (e[1] = (l) => i.thisShow = !1)
|
|
71238
|
-
},
|
|
71298
|
+
}, Ye(o.getTitle("Cancel")), 5)
|
|
71239
71299
|
])
|
|
71240
71300
|
]),
|
|
71241
71301
|
default: ie(() => [
|
|
71242
71302
|
X("div", {
|
|
71243
|
-
class:
|
|
71303
|
+
class: tt(["p-e-c-b-m-content-block", t.popperClass])
|
|
71244
71304
|
}, [
|
|
71245
71305
|
X("div", C4e, [
|
|
71246
71306
|
mt(n.$slots, "content", { index: "2" })
|
|
@@ -71319,10 +71379,10 @@ function M4e(n, e, t, r, i, o) {
|
|
|
71319
71379
|
]),
|
|
71320
71380
|
content: ie(() => [
|
|
71321
71381
|
X("div", {
|
|
71322
|
-
class:
|
|
71382
|
+
class: tt(["power-editor-l-c-block", [{ dark: t.theme === "dark" }]])
|
|
71323
71383
|
}, [
|
|
71324
71384
|
Pt("", !0),
|
|
71325
|
-
|
|
71385
|
+
ae(s, {
|
|
71326
71386
|
modelValue: i.caption,
|
|
71327
71387
|
"onUpdate:modelValue": e[0] || (e[0] = (c) => i.caption = c),
|
|
71328
71388
|
placeholder: o.getTitle("Caption"),
|
|
@@ -71336,7 +71396,7 @@ function M4e(n, e, t, r, i, o) {
|
|
|
71336
71396
|
"focus-border-color": t.foreground,
|
|
71337
71397
|
style: { width: "100%", "margin-top": "5px" }
|
|
71338
71398
|
}, null, 8, ["modelValue", "placeholder", "theme", "background", "focus-border-color"]),
|
|
71339
|
-
|
|
71399
|
+
ae(s, {
|
|
71340
71400
|
modelValue: i.link,
|
|
71341
71401
|
"onUpdate:modelValue": e[1] || (e[1] = (c) => i.link = c),
|
|
71342
71402
|
icon: "Link",
|
|
@@ -71352,7 +71412,7 @@ function M4e(n, e, t, r, i, o) {
|
|
|
71352
71412
|
}, null, 8, ["modelValue", "placeholder", "theme", "background", "focus-border-color"])
|
|
71353
71413
|
], 2),
|
|
71354
71414
|
X("div", A4e, [
|
|
71355
|
-
|
|
71415
|
+
ae(a, {
|
|
71356
71416
|
theme: "dark",
|
|
71357
71417
|
disabled: i.link === "",
|
|
71358
71418
|
background: t.foreground,
|
|
@@ -71362,7 +71422,7 @@ function M4e(n, e, t, r, i, o) {
|
|
|
71362
71422
|
onClick: o.insert
|
|
71363
71423
|
}, {
|
|
71364
71424
|
default: ie(() => [
|
|
71365
|
-
|
|
71425
|
+
ir(Ye(o.getTitle("Insert")), 1)
|
|
71366
71426
|
]),
|
|
71367
71427
|
_: 1
|
|
71368
71428
|
}, 8, ["disabled", "background", "onClick"])
|
|
@@ -71431,10 +71491,10 @@ function I4e(n, e, t, r, i, o) {
|
|
|
71431
71491
|
]),
|
|
71432
71492
|
content: ie(() => [
|
|
71433
71493
|
X("div", {
|
|
71434
|
-
class:
|
|
71494
|
+
class: tt(["power-editor-e-c-block", [{ dark: t.theme === "dark" }]])
|
|
71435
71495
|
}, [
|
|
71436
71496
|
Pt("", !0),
|
|
71437
|
-
|
|
71497
|
+
ae(s, {
|
|
71438
71498
|
modelValue: i.caption,
|
|
71439
71499
|
"onUpdate:modelValue": e[0] || (e[0] = (c) => i.caption = c),
|
|
71440
71500
|
placeholder: o.getTitle("Caption"),
|
|
@@ -71448,7 +71508,7 @@ function I4e(n, e, t, r, i, o) {
|
|
|
71448
71508
|
background: t.theme === "dark" ? "#1a1a1a" : "#fff",
|
|
71449
71509
|
style: { width: "100%", "margin-top": "5px" }
|
|
71450
71510
|
}, null, 8, ["modelValue", "placeholder", "theme", "focus-border-color", "background"]),
|
|
71451
|
-
|
|
71511
|
+
ae(s, {
|
|
71452
71512
|
modelValue: i.link,
|
|
71453
71513
|
"onUpdate:modelValue": e[1] || (e[1] = (c) => i.link = c),
|
|
71454
71514
|
icon: "Link",
|
|
@@ -71464,7 +71524,7 @@ function I4e(n, e, t, r, i, o) {
|
|
|
71464
71524
|
}, null, 8, ["modelValue", "placeholder", "theme", "focus-border-color", "background"])
|
|
71465
71525
|
], 2),
|
|
71466
71526
|
X("div", R4e, [
|
|
71467
|
-
|
|
71527
|
+
ae(a, {
|
|
71468
71528
|
theme: "dark",
|
|
71469
71529
|
disabled: i.link === "",
|
|
71470
71530
|
background: t.foreground,
|
|
@@ -71474,7 +71534,7 @@ function I4e(n, e, t, r, i, o) {
|
|
|
71474
71534
|
onClick: o.insert
|
|
71475
71535
|
}, {
|
|
71476
71536
|
default: ie(() => [
|
|
71477
|
-
|
|
71537
|
+
ir(Ye(o.getTitle("Insert")), 1)
|
|
71478
71538
|
]),
|
|
71479
71539
|
_: 1
|
|
71480
71540
|
}, 8, ["disabled", "background", "onClick"])
|
|
@@ -71589,16 +71649,16 @@ function U4e(n, e, t, r, i, o) {
|
|
|
71589
71649
|
X("p", {
|
|
71590
71650
|
class: "power-menu-sec-title",
|
|
71591
71651
|
style: ut({ "--power-menu-sec-title-background": t.foreground })
|
|
71592
|
-
},
|
|
71652
|
+
}, Ye(o.getTitle("Foreground")), 5),
|
|
71593
71653
|
X("div", {
|
|
71594
|
-
class:
|
|
71654
|
+
class: tt(["power-editor-color-item", [{ dark: t.theme == "dark" }]]),
|
|
71595
71655
|
onClick: e[0] || (e[0] = (a) => o.execX("unsetColor"))
|
|
71596
71656
|
}, [
|
|
71597
71657
|
e[3] || (e[3] = X("p", { class: "peci-example" }, "A", -1)),
|
|
71598
|
-
X("p", P4e,
|
|
71658
|
+
X("p", P4e, Ye(o.getTitle("removeColor")), 1)
|
|
71599
71659
|
], 2),
|
|
71600
71660
|
(He(!0), ot(Vr, null, wi(i.colorList, (a, l) => (He(), ot("div", {
|
|
71601
|
-
class:
|
|
71661
|
+
class: tt(["power-editor-color-item", [{ dark: t.theme == "dark", choosen: t.editor.isActive("textStyle", { color: a.color }) }]]),
|
|
71602
71662
|
key: "color:" + l,
|
|
71603
71663
|
onClick: (c) => o.execMoreX("setColor", a.color)
|
|
71604
71664
|
}, [
|
|
@@ -71606,21 +71666,21 @@ function U4e(n, e, t, r, i, o) {
|
|
|
71606
71666
|
class: "peci-example",
|
|
71607
71667
|
style: ut({ color: a.color })
|
|
71608
71668
|
}, "A", 4),
|
|
71609
|
-
X("p", F4e,
|
|
71669
|
+
X("p", F4e, Ye(o.getTitle(a.name)), 1)
|
|
71610
71670
|
], 10, B4e))), 128)),
|
|
71611
71671
|
X("p", {
|
|
71612
71672
|
class: "power-menu-sec-title",
|
|
71613
71673
|
style: ut({ "--power-menu-sec-title-background": t.foreground })
|
|
71614
|
-
},
|
|
71674
|
+
}, Ye(o.getTitle("Highlight Background")), 5),
|
|
71615
71675
|
X("div", {
|
|
71616
|
-
class:
|
|
71676
|
+
class: tt(["power-editor-color-item", [{ dark: t.theme == "dark" }]]),
|
|
71617
71677
|
onClick: e[1] || (e[1] = (a) => o.execX("unsetHighlight"))
|
|
71618
71678
|
}, [
|
|
71619
71679
|
e[4] || (e[4] = X("p", { class: "peci-example" }, "A", -1)),
|
|
71620
|
-
X("p", z4e,
|
|
71680
|
+
X("p", z4e, Ye(o.getTitle("removeHighlight")), 1)
|
|
71621
71681
|
], 2),
|
|
71622
71682
|
(He(!0), ot(Vr, null, wi(i.highlightList, (a, l) => (He(), ot("div", {
|
|
71623
|
-
class:
|
|
71683
|
+
class: tt(["power-editor-color-item", [{ dark: t.theme == "dark", choosen: t.editor.isActive("highlight", { color: a.color }) }]]),
|
|
71624
71684
|
key: "highlight:" + l,
|
|
71625
71685
|
onClick: (c) => o.execMoreX("setHighlight", { color: a.color })
|
|
71626
71686
|
}, [
|
|
@@ -71628,7 +71688,7 @@ function U4e(n, e, t, r, i, o) {
|
|
|
71628
71688
|
class: "peci-example",
|
|
71629
71689
|
style: ut({ background: a.color })
|
|
71630
71690
|
}, "A", 4),
|
|
71631
|
-
X("p", H4e,
|
|
71691
|
+
X("p", H4e, Ye(o.getTitle(a.name)), 1)
|
|
71632
71692
|
], 10, q4e))), 128))
|
|
71633
71693
|
]),
|
|
71634
71694
|
_: 3
|
|
@@ -72863,7 +72923,7 @@ const N6 = /* @__PURE__ */ on(L4e, [["render", U4e]]), G4e = [
|
|
|
72863
72923
|
this.$emit("insert-emoji", this.emoji_list[n].emojis[e]), this.mobileMode && (this.show = !1);
|
|
72864
72924
|
}
|
|
72865
72925
|
}
|
|
72866
|
-
}, $4e = { class: "power-editor-emoji-banner" }, W4e = {
|
|
72926
|
+
}, $4e = { class: "power-editor-emoji-banner" }, W4e = { class: "emoji-title" }, K4e = { class: "title" }, j4e = { class: "power-editor-emoji-group" }, Q4e = ["innerHTML", "onClick"];
|
|
72867
72927
|
function Y4e(n, e, t, r, i, o) {
|
|
72868
72928
|
const s = Me("fv-button"), a = Me("fv-infinite-scroll-view"), l = Me("callout-base");
|
|
72869
72929
|
return He(), rn(l, {
|
|
@@ -72883,8 +72943,8 @@ function Y4e(n, e, t, r, i, o) {
|
|
|
72883
72943
|
]),
|
|
72884
72944
|
header: ie((c) => [
|
|
72885
72945
|
X("div", $4e, [
|
|
72886
|
-
X("p", W4e,
|
|
72887
|
-
|
|
72946
|
+
X("p", W4e, Ye(o.getTitle(c.title)), 1),
|
|
72947
|
+
ae(s, {
|
|
72888
72948
|
theme: t.theme,
|
|
72889
72949
|
icon: "Shuffle",
|
|
72890
72950
|
background: t.theme === "dark" ? "rgba(0, 0, 0, 0.2)" : "rgba(255, 255, 255, 0.3)",
|
|
@@ -72894,14 +72954,14 @@ function Y4e(n, e, t, r, i, o) {
|
|
|
72894
72954
|
onClick: o.insertRandom
|
|
72895
72955
|
}, {
|
|
72896
72956
|
default: ie(() => [
|
|
72897
|
-
|
|
72957
|
+
ir(Ye(o.getTitle("Random")), 1)
|
|
72898
72958
|
]),
|
|
72899
72959
|
_: 1
|
|
72900
72960
|
}, 8, ["theme", "background", "onClick"])
|
|
72901
72961
|
])
|
|
72902
72962
|
]),
|
|
72903
72963
|
content: ie(() => [
|
|
72904
|
-
|
|
72964
|
+
ae(a, {
|
|
72905
72965
|
modelValue: i.emoji_list,
|
|
72906
72966
|
"onUpdate:modelValue": e[0] || (e[0] = (c) => i.emoji_list = c),
|
|
72907
72967
|
batchSize: 1,
|
|
@@ -72912,7 +72972,7 @@ function Y4e(n, e, t, r, i, o) {
|
|
|
72912
72972
|
class: "power-editor-emoji-list",
|
|
72913
72973
|
key: `type:${d}`
|
|
72914
72974
|
}, [
|
|
72915
|
-
X("p", K4e,
|
|
72975
|
+
X("p", K4e, Ye(o.getTitle(u.name)), 1),
|
|
72916
72976
|
X("div", j4e, [
|
|
72917
72977
|
(He(!0), ot(Vr, null, wi(u.emojis, (m, b) => (He(), ot("i", {
|
|
72918
72978
|
key: b,
|
|
@@ -73005,15 +73065,15 @@ function oye(n, e, t, r, i, o) {
|
|
|
73005
73065
|
]),
|
|
73006
73066
|
content: ie((c) => [
|
|
73007
73067
|
X("div", {
|
|
73008
|
-
class:
|
|
73068
|
+
class: tt(["power-editor-i-c-block", [{ dark: t.theme === "dark" }]])
|
|
73009
73069
|
}, [
|
|
73010
|
-
X("p", J4e,
|
|
73070
|
+
X("p", J4e, Ye(o.getTitle("Method")) + " 1", 1),
|
|
73011
73071
|
X("i", {
|
|
73012
73072
|
class: "ms-Icon ms-Icon--Photo2Add power-editor-i-c-icon-1",
|
|
73013
73073
|
style: ut({ color: t.foreground }),
|
|
73014
73074
|
onClick: (u) => n.$refs[`img_local_${c.index}`].click()
|
|
73015
73075
|
}, null, 12, eye),
|
|
73016
|
-
X("p", tye,
|
|
73076
|
+
X("p", tye, Ye(o.getTitle("Choose Local Image as Base64 (multiple).")), 1),
|
|
73017
73077
|
X("input", {
|
|
73018
73078
|
type: "file",
|
|
73019
73079
|
accept: "image/gif,image/png,image/jpeg,image/x-png,image/svg+xml",
|
|
@@ -73024,10 +73084,10 @@ function oye(n, e, t, r, i, o) {
|
|
|
73024
73084
|
}, null, 40, nye)
|
|
73025
73085
|
], 2),
|
|
73026
73086
|
X("div", {
|
|
73027
|
-
class:
|
|
73087
|
+
class: tt(["power-editor-i-c-block", [{ dark: t.theme === "dark" }]])
|
|
73028
73088
|
}, [
|
|
73029
|
-
X("p", rye,
|
|
73030
|
-
|
|
73089
|
+
X("p", rye, Ye(o.getTitle("Method")) + " 2", 1),
|
|
73090
|
+
ae(s, {
|
|
73031
73091
|
modelValue: i.url,
|
|
73032
73092
|
"onUpdate:modelValue": e[0] || (e[0] = (u) => i.url = u),
|
|
73033
73093
|
placeholder: o.getTitle("Insert Image Url."),
|
|
@@ -73044,7 +73104,7 @@ function oye(n, e, t, r, i, o) {
|
|
|
73044
73104
|
}, null, 8, ["modelValue", "placeholder", "theme", "focus-border-color", "background"])
|
|
73045
73105
|
], 2),
|
|
73046
73106
|
X("div", iye, [
|
|
73047
|
-
|
|
73107
|
+
ae(a, {
|
|
73048
73108
|
theme: "dark",
|
|
73049
73109
|
disabled: i.url === "",
|
|
73050
73110
|
background: t.foreground,
|
|
@@ -73054,7 +73114,7 @@ function oye(n, e, t, r, i, o) {
|
|
|
73054
73114
|
onClick: o.insert
|
|
73055
73115
|
}, {
|
|
73056
73116
|
default: ie(() => [
|
|
73057
|
-
|
|
73117
|
+
ir(Ye(o.getTitle("Insert")), 1)
|
|
73058
73118
|
]),
|
|
73059
73119
|
_: 1
|
|
73060
73120
|
}, 8, ["disabled", "background", "onClick"])
|
|
@@ -73133,11 +73193,11 @@ function uye(n, e, t, r, i, o) {
|
|
|
73133
73193
|
]),
|
|
73134
73194
|
content: ie(() => [
|
|
73135
73195
|
(He(), ot(Vr, null, wi(6, (l) => X("div", {
|
|
73136
|
-
class:
|
|
73196
|
+
class: tt(["power-editor-heading-item", [{ dark: t.theme == "dark", choosen: t.editor.isActive("heading", { level: l }) }]]),
|
|
73137
73197
|
key: "color:" + l,
|
|
73138
73198
|
onClick: (c) => o.execMoreX("toggleHeading", { level: l })
|
|
73139
73199
|
}, [
|
|
73140
|
-
|
|
73200
|
+
ae(s, {
|
|
73141
73201
|
class: "power-editor-cmd-btn",
|
|
73142
73202
|
theme: t.theme,
|
|
73143
73203
|
isBoxShadow: !0,
|
|
@@ -73146,11 +73206,11 @@ function uye(n, e, t, r, i, o) {
|
|
|
73146
73206
|
title: o.getTitle("Heading") + l
|
|
73147
73207
|
}, {
|
|
73148
73208
|
default: ie(() => [
|
|
73149
|
-
|
|
73209
|
+
ir("H" + Ye(l), 1)
|
|
73150
73210
|
]),
|
|
73151
73211
|
_: 2
|
|
73152
73212
|
}, 1032, ["theme", "background", "foreground", "title"]),
|
|
73153
|
-
X("p", cye,
|
|
73213
|
+
X("p", cye, Ye(o.getTitle("Heading")) + " " + Ye(l), 1)
|
|
73154
73214
|
], 10, lye)), 64))
|
|
73155
73215
|
]),
|
|
73156
73216
|
_: 3
|
|
@@ -73232,7 +73292,7 @@ function mye(n, e, t, r, i, o) {
|
|
|
73232
73292
|
]),
|
|
73233
73293
|
content: ie(() => [
|
|
73234
73294
|
X("div", fye, [
|
|
73235
|
-
|
|
73295
|
+
ae(s, {
|
|
73236
73296
|
modelValue: i.row,
|
|
73237
73297
|
"onUpdate:modelValue": e[0] || (e[0] = (c) => i.row = c),
|
|
73238
73298
|
placeholder: o.getTitle("Row"),
|
|
@@ -73250,7 +73310,7 @@ function mye(n, e, t, r, i, o) {
|
|
|
73250
73310
|
withHeaderRow: !0
|
|
73251
73311
|
}), ["enter"]))
|
|
73252
73312
|
}, null, 8, ["modelValue", "placeholder", "theme", "background", "focus-border-color"]),
|
|
73253
|
-
|
|
73313
|
+
ae(s, {
|
|
73254
73314
|
modelValue: i.column,
|
|
73255
73315
|
"onUpdate:modelValue": e[2] || (e[2] = (c) => i.column = c),
|
|
73256
73316
|
placeholder: o.getTitle("Column"),
|
|
@@ -73268,7 +73328,7 @@ function mye(n, e, t, r, i, o) {
|
|
|
73268
73328
|
withHeaderRow: !0
|
|
73269
73329
|
}), ["enter"]))
|
|
73270
73330
|
}, null, 8, ["modelValue", "placeholder", "theme", "background", "focus-border-color"]),
|
|
73271
|
-
|
|
73331
|
+
ae(a, {
|
|
73272
73332
|
theme: "dark",
|
|
73273
73333
|
disabled: !i.row || !i.column || isNaN(i.row) || isNaN(i.column),
|
|
73274
73334
|
"is-box-shadow": !0,
|
|
@@ -73289,7 +73349,7 @@ function mye(n, e, t, r, i, o) {
|
|
|
73289
73349
|
}, 8, ["disabled", "background"])
|
|
73290
73350
|
]),
|
|
73291
73351
|
X("div", pye, [
|
|
73292
|
-
|
|
73352
|
+
ae(a, {
|
|
73293
73353
|
theme: "dark",
|
|
73294
73354
|
class: "power-editor-table-control-item",
|
|
73295
73355
|
background: "rgba(212, 78, 82, 1)",
|
|
@@ -73303,7 +73363,7 @@ function mye(n, e, t, r, i, o) {
|
|
|
73303
73363
|
_: 1,
|
|
73304
73364
|
__: [15]
|
|
73305
73365
|
}, 8, ["title"]),
|
|
73306
|
-
|
|
73366
|
+
ae(a, {
|
|
73307
73367
|
theme: "dark",
|
|
73308
73368
|
class: "power-editor-table-control-item",
|
|
73309
73369
|
background: "rgba(212, 78, 82, 1)",
|
|
@@ -73318,7 +73378,7 @@ function mye(n, e, t, r, i, o) {
|
|
|
73318
73378
|
__: [16]
|
|
73319
73379
|
}, 8, ["title"]),
|
|
73320
73380
|
e[23] || (e[23] = X("hr", null, null, -1)),
|
|
73321
|
-
|
|
73381
|
+
ae(a, {
|
|
73322
73382
|
theme: "dark",
|
|
73323
73383
|
class: "power-editor-table-control-item",
|
|
73324
73384
|
background: t.foreground,
|
|
@@ -73332,7 +73392,7 @@ function mye(n, e, t, r, i, o) {
|
|
|
73332
73392
|
_: 1,
|
|
73333
73393
|
__: [17]
|
|
73334
73394
|
}, 8, ["background", "title"]),
|
|
73335
|
-
|
|
73395
|
+
ae(a, {
|
|
73336
73396
|
theme: "dark",
|
|
73337
73397
|
class: "power-editor-table-control-item",
|
|
73338
73398
|
background: t.foreground,
|
|
@@ -73349,7 +73409,7 @@ function mye(n, e, t, r, i, o) {
|
|
|
73349
73409
|
_: 1,
|
|
73350
73410
|
__: [18]
|
|
73351
73411
|
}, 8, ["background", "title"]),
|
|
73352
|
-
|
|
73412
|
+
ae(a, {
|
|
73353
73413
|
theme: "dark",
|
|
73354
73414
|
class: "power-editor-table-control-item",
|
|
73355
73415
|
background: t.foreground,
|
|
@@ -73366,7 +73426,7 @@ function mye(n, e, t, r, i, o) {
|
|
|
73366
73426
|
_: 1,
|
|
73367
73427
|
__: [19]
|
|
73368
73428
|
}, 8, ["background", "title"]),
|
|
73369
|
-
|
|
73429
|
+
ae(a, {
|
|
73370
73430
|
theme: "dark",
|
|
73371
73431
|
class: "power-editor-table-control-item",
|
|
73372
73432
|
background: t.foreground,
|
|
@@ -73384,7 +73444,7 @@ function mye(n, e, t, r, i, o) {
|
|
|
73384
73444
|
__: [20]
|
|
73385
73445
|
}, 8, ["background", "title"]),
|
|
73386
73446
|
e[24] || (e[24] = X("hr", null, null, -1)),
|
|
73387
|
-
|
|
73447
|
+
ae(a, {
|
|
73388
73448
|
theme: t.theme,
|
|
73389
73449
|
class: "power-editor-table-control-item",
|
|
73390
73450
|
"is-box-shadow": !0,
|
|
@@ -73397,7 +73457,7 @@ function mye(n, e, t, r, i, o) {
|
|
|
73397
73457
|
_: 1,
|
|
73398
73458
|
__: [21]
|
|
73399
73459
|
}, 8, ["theme", "title"]),
|
|
73400
|
-
|
|
73460
|
+
ae(a, {
|
|
73401
73461
|
theme: t.theme,
|
|
73402
73462
|
class: "power-editor-table-control-item",
|
|
73403
73463
|
"is-box-shadow": !0,
|
|
@@ -73568,11 +73628,11 @@ const R6 = /* @__PURE__ */ on(hye, [["render", mye]]), gye = {
|
|
|
73568
73628
|
function bye(n, e, t, r, i, o) {
|
|
73569
73629
|
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
73630
|
return He(), ot("div", {
|
|
73571
|
-
class:
|
|
73631
|
+
class: tt(["power-editor-tool-bar-container", [{ dark: i.thisTheme === "dark" }]]),
|
|
73572
73632
|
style: ut({ height: `${t.toolbarHeight}px`, "border-radius": `${t.toolbarBorderRadius}px` })
|
|
73573
73633
|
}, [
|
|
73574
73634
|
mt(n.$slots, "custom-buttons-front", { defaultClass: "power-editor-cmd-btn" }),
|
|
73575
|
-
Ut(
|
|
73635
|
+
Ut(ae(s, {
|
|
73576
73636
|
class: "power-editor-cmd-btn",
|
|
73577
73637
|
theme: i.thisTheme,
|
|
73578
73638
|
"border-color": "transparent",
|
|
@@ -73593,7 +73653,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
73593
73653
|
[Wt, t.showSave]
|
|
73594
73654
|
]),
|
|
73595
73655
|
mt(n.$slots, "custom-buttons-0", { defaultClass: "power-editor-cmd-btn" }),
|
|
73596
|
-
|
|
73656
|
+
ae(s, {
|
|
73597
73657
|
class: "power-editor-cmd-btn",
|
|
73598
73658
|
theme: i.thisTheme,
|
|
73599
73659
|
"border-color": "transparent",
|
|
@@ -73608,7 +73668,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
73608
73668
|
_: 1,
|
|
73609
73669
|
__: [24]
|
|
73610
73670
|
}, 8, ["theme", "background", "foreground", "title"]),
|
|
73611
|
-
|
|
73671
|
+
ae(s, {
|
|
73612
73672
|
class: "power-editor-cmd-btn",
|
|
73613
73673
|
theme: i.thisTheme,
|
|
73614
73674
|
"border-color": "transparent",
|
|
@@ -73623,7 +73683,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
73623
73683
|
_: 1,
|
|
73624
73684
|
__: [25]
|
|
73625
73685
|
}, 8, ["theme", "background", "foreground", "title"]),
|
|
73626
|
-
|
|
73686
|
+
ae(s, {
|
|
73627
73687
|
class: "power-editor-cmd-btn",
|
|
73628
73688
|
theme: i.thisTheme,
|
|
73629
73689
|
"border-color": "transparent",
|
|
@@ -73638,7 +73698,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
73638
73698
|
_: 1,
|
|
73639
73699
|
__: [26]
|
|
73640
73700
|
}, 8, ["theme", "background", "foreground", "title"]),
|
|
73641
|
-
|
|
73701
|
+
ae(s, {
|
|
73642
73702
|
class: "power-editor-cmd-btn",
|
|
73643
73703
|
theme: i.thisTheme,
|
|
73644
73704
|
"border-color": "transparent",
|
|
@@ -73653,7 +73713,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
73653
73713
|
_: 1,
|
|
73654
73714
|
__: [27]
|
|
73655
73715
|
}, 8, ["theme", "background", "foreground", "title"]),
|
|
73656
|
-
|
|
73716
|
+
ae(s, {
|
|
73657
73717
|
class: "power-editor-cmd-btn",
|
|
73658
73718
|
theme: i.thisTheme,
|
|
73659
73719
|
"border-color": "transparent",
|
|
@@ -73668,7 +73728,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
73668
73728
|
_: 1,
|
|
73669
73729
|
__: [28]
|
|
73670
73730
|
}, 8, ["theme", "background", "foreground", "title"]),
|
|
73671
|
-
|
|
73731
|
+
ae(s, {
|
|
73672
73732
|
class: "power-editor-cmd-btn",
|
|
73673
73733
|
theme: i.thisTheme,
|
|
73674
73734
|
"border-color": "transparent",
|
|
@@ -73683,7 +73743,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
73683
73743
|
_: 1,
|
|
73684
73744
|
__: [29]
|
|
73685
73745
|
}, 8, ["theme", "background", "foreground", "title"]),
|
|
73686
|
-
|
|
73746
|
+
ae(s, {
|
|
73687
73747
|
class: "power-editor-cmd-btn",
|
|
73688
73748
|
theme: i.thisTheme,
|
|
73689
73749
|
"border-color": "transparent",
|
|
@@ -73701,7 +73761,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
73701
73761
|
}, 8, ["theme", "background", "foreground", "title", "onClick", "onDblclickCapture"]),
|
|
73702
73762
|
mt(n.$slots, "custom-buttons-1", { defaultClass: "power-editor-cmd-btn" }),
|
|
73703
73763
|
e[57] || (e[57] = X("hr", null, null, -1)),
|
|
73704
|
-
|
|
73764
|
+
ae(s, {
|
|
73705
73765
|
class: "power-editor-cmd-btn",
|
|
73706
73766
|
theme: i.thisTheme,
|
|
73707
73767
|
"border-color": "transparent",
|
|
@@ -73716,7 +73776,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
73716
73776
|
_: 1,
|
|
73717
73777
|
__: [31]
|
|
73718
73778
|
}, 8, ["theme", "background", "foreground", "title"]),
|
|
73719
|
-
|
|
73779
|
+
ae(s, {
|
|
73720
73780
|
class: "power-editor-cmd-btn",
|
|
73721
73781
|
theme: i.thisTheme,
|
|
73722
73782
|
"border-color": "transparent",
|
|
@@ -73731,7 +73791,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
73731
73791
|
_: 1,
|
|
73732
73792
|
__: [32]
|
|
73733
73793
|
}, 8, ["theme", "background", "foreground", "title"]),
|
|
73734
|
-
|
|
73794
|
+
ae(a, {
|
|
73735
73795
|
mobileMode: t.mobileMode,
|
|
73736
73796
|
foreground: t.foreground,
|
|
73737
73797
|
theme: i.thisTheme,
|
|
@@ -73742,7 +73802,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
73742
73802
|
execMore: o.execMore
|
|
73743
73803
|
}, {
|
|
73744
73804
|
default: ie((f) => [
|
|
73745
|
-
|
|
73805
|
+
ae(s, {
|
|
73746
73806
|
class: "power-editor-cmd-btn",
|
|
73747
73807
|
theme: i.thisTheme,
|
|
73748
73808
|
"border-color": "transparent",
|
|
@@ -73760,7 +73820,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
73760
73820
|
]),
|
|
73761
73821
|
_: 1
|
|
73762
73822
|
}, 8, ["mobileMode", "foreground", "theme", "language", "editor", "getBackground", "getForeground", "execMore"]),
|
|
73763
|
-
|
|
73823
|
+
ae(s, {
|
|
73764
73824
|
class: "power-editor-cmd-btn",
|
|
73765
73825
|
theme: i.thisTheme,
|
|
73766
73826
|
"border-color": "transparent",
|
|
@@ -73775,7 +73835,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
73775
73835
|
_: 1,
|
|
73776
73836
|
__: [34]
|
|
73777
73837
|
}, 8, ["theme", "background", "foreground", "title"]),
|
|
73778
|
-
|
|
73838
|
+
ae(s, {
|
|
73779
73839
|
class: "power-editor-cmd-btn",
|
|
73780
73840
|
theme: i.thisTheme,
|
|
73781
73841
|
"border-color": "transparent",
|
|
@@ -73790,7 +73850,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
73790
73850
|
_: 1,
|
|
73791
73851
|
__: [35]
|
|
73792
73852
|
}, 8, ["theme", "background", "foreground", "title"]),
|
|
73793
|
-
|
|
73853
|
+
ae(s, {
|
|
73794
73854
|
class: "power-editor-cmd-btn",
|
|
73795
73855
|
theme: i.thisTheme,
|
|
73796
73856
|
"border-color": "transparent",
|
|
@@ -73805,7 +73865,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
73805
73865
|
_: 1,
|
|
73806
73866
|
__: [36]
|
|
73807
73867
|
}, 8, ["theme", "background", "foreground", "title"]),
|
|
73808
|
-
|
|
73868
|
+
ae(s, {
|
|
73809
73869
|
class: "power-editor-cmd-btn",
|
|
73810
73870
|
theme: i.thisTheme,
|
|
73811
73871
|
"border-color": "transparent",
|
|
@@ -73824,7 +73884,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
73824
73884
|
}, 8, ["theme", "background", "foreground", "title"]),
|
|
73825
73885
|
mt(n.$slots, "custom-buttons-2", { defaultClass: "power-editor-cmd-btn" }),
|
|
73826
73886
|
e[58] || (e[58] = X("hr", null, null, -1)),
|
|
73827
|
-
|
|
73887
|
+
ae(s, {
|
|
73828
73888
|
class: "power-editor-cmd-btn",
|
|
73829
73889
|
theme: i.thisTheme,
|
|
73830
73890
|
"border-color": "transparent",
|
|
@@ -73839,7 +73899,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
73839
73899
|
_: 1,
|
|
73840
73900
|
__: [38]
|
|
73841
73901
|
}, 8, ["theme", "background", "foreground", "title"]),
|
|
73842
|
-
|
|
73902
|
+
ae(s, {
|
|
73843
73903
|
class: "power-editor-cmd-btn",
|
|
73844
73904
|
theme: i.thisTheme,
|
|
73845
73905
|
"border-color": "transparent",
|
|
@@ -73857,7 +73917,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
73857
73917
|
Pt("", !0),
|
|
73858
73918
|
mt(n.$slots, "custom-buttons-3", { defaultClass: "power-editor-cmd-btn" }),
|
|
73859
73919
|
e[59] || (e[59] = X("hr", null, null, -1)),
|
|
73860
|
-
|
|
73920
|
+
ae(s, {
|
|
73861
73921
|
class: "power-editor-cmd-btn",
|
|
73862
73922
|
theme: i.thisTheme,
|
|
73863
73923
|
"border-color": "transparent",
|
|
@@ -73872,7 +73932,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
73872
73932
|
_: 1,
|
|
73873
73933
|
__: [41]
|
|
73874
73934
|
}, 8, ["theme", "background", "foreground", "title"]),
|
|
73875
|
-
|
|
73935
|
+
ae(s, {
|
|
73876
73936
|
class: "power-editor-cmd-btn",
|
|
73877
73937
|
theme: i.thisTheme,
|
|
73878
73938
|
"border-color": "transparent",
|
|
@@ -73887,7 +73947,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
73887
73947
|
_: 1,
|
|
73888
73948
|
__: [42]
|
|
73889
73949
|
}, 8, ["theme", "background", "foreground", "title"]),
|
|
73890
|
-
|
|
73950
|
+
ae(s, {
|
|
73891
73951
|
class: "power-editor-cmd-btn",
|
|
73892
73952
|
theme: i.thisTheme,
|
|
73893
73953
|
"border-color": "transparent",
|
|
@@ -73902,7 +73962,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
73902
73962
|
_: 1,
|
|
73903
73963
|
__: [43]
|
|
73904
73964
|
}, 8, ["theme", "background", "foreground", "title"]),
|
|
73905
|
-
|
|
73965
|
+
ae(s, {
|
|
73906
73966
|
class: "power-editor-cmd-btn",
|
|
73907
73967
|
theme: i.thisTheme,
|
|
73908
73968
|
"border-color": "transparent",
|
|
@@ -73922,7 +73982,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
73922
73982
|
Pt("", !0),
|
|
73923
73983
|
mt(n.$slots, "custom-buttons-4", { defaultClass: "power-editor-cmd-btn" }),
|
|
73924
73984
|
e[60] || (e[60] = X("hr", null, null, -1)),
|
|
73925
|
-
|
|
73985
|
+
ae(l, {
|
|
73926
73986
|
mobileMode: t.mobileMode,
|
|
73927
73987
|
foreground: t.foreground,
|
|
73928
73988
|
theme: i.thisTheme,
|
|
@@ -73934,7 +73994,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
73934
73994
|
execMore: o.execMore
|
|
73935
73995
|
}, {
|
|
73936
73996
|
default: ie((f) => [
|
|
73937
|
-
|
|
73997
|
+
ae(s, {
|
|
73938
73998
|
class: "power-editor-cmd-btn",
|
|
73939
73999
|
theme: i.thisTheme,
|
|
73940
74000
|
"border-color": "transparent",
|
|
@@ -73952,7 +74012,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
73952
74012
|
]),
|
|
73953
74013
|
_: 1
|
|
73954
74014
|
}, 8, ["mobileMode", "foreground", "theme", "language", "editor", "getBackground", "getForeground", "exec", "execMore"]),
|
|
73955
|
-
|
|
74015
|
+
ae(s, {
|
|
73956
74016
|
class: "power-editor-cmd-btn",
|
|
73957
74017
|
theme: i.thisTheme,
|
|
73958
74018
|
"border-color": "transparent",
|
|
@@ -73967,7 +74027,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
73967
74027
|
_: 1,
|
|
73968
74028
|
__: [48]
|
|
73969
74029
|
}, 8, ["theme", "background", "foreground", "title", "onClick"]),
|
|
73970
|
-
|
|
74030
|
+
ae(c, {
|
|
73971
74031
|
mobileMode: t.mobileMode,
|
|
73972
74032
|
foreground: t.foreground,
|
|
73973
74033
|
theme: i.thisTheme,
|
|
@@ -73976,7 +74036,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
73976
74036
|
onInsertEmoji: o.insertEmoji
|
|
73977
74037
|
}, {
|
|
73978
74038
|
default: ie((f) => [
|
|
73979
|
-
|
|
74039
|
+
ae(s, {
|
|
73980
74040
|
class: "power-editor-cmd-btn",
|
|
73981
74041
|
theme: i.thisTheme,
|
|
73982
74042
|
"border-color": "transparent",
|
|
@@ -73994,7 +74054,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
73994
74054
|
]),
|
|
73995
74055
|
_: 1
|
|
73996
74056
|
}, 8, ["mobileMode", "foreground", "theme", "language", "editor", "onInsertEmoji"]),
|
|
73997
|
-
|
|
74057
|
+
ae(u, {
|
|
73998
74058
|
mobileMode: t.mobileMode,
|
|
73999
74059
|
foreground: t.foreground,
|
|
74000
74060
|
theme: i.thisTheme,
|
|
@@ -74004,7 +74064,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
74004
74064
|
execMore: o.execMore
|
|
74005
74065
|
}, {
|
|
74006
74066
|
default: ie((f) => [
|
|
74007
|
-
|
|
74067
|
+
ae(s, {
|
|
74008
74068
|
class: "power-editor-cmd-btn",
|
|
74009
74069
|
theme: i.thisTheme,
|
|
74010
74070
|
"border-color": "transparent",
|
|
@@ -74022,7 +74082,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
74022
74082
|
]),
|
|
74023
74083
|
_: 1
|
|
74024
74084
|
}, 8, ["mobileMode", "foreground", "theme", "language", "editor", "exec", "execMore"]),
|
|
74025
|
-
|
|
74085
|
+
ae(s, {
|
|
74026
74086
|
class: "power-editor-cmd-btn",
|
|
74027
74087
|
theme: i.thisTheme,
|
|
74028
74088
|
"border-color": "transparent",
|
|
@@ -74037,7 +74097,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
74037
74097
|
_: 1,
|
|
74038
74098
|
__: [51]
|
|
74039
74099
|
}, 8, ["theme", "background", "foreground", "title"]),
|
|
74040
|
-
|
|
74100
|
+
ae(s, {
|
|
74041
74101
|
class: "power-editor-cmd-btn",
|
|
74042
74102
|
theme: i.thisTheme,
|
|
74043
74103
|
"border-color": "transparent",
|
|
@@ -74052,7 +74112,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
74052
74112
|
_: 1,
|
|
74053
74113
|
__: [52]
|
|
74054
74114
|
}, 8, ["theme", "background", "foreground", "title", "onClick"]),
|
|
74055
|
-
|
|
74115
|
+
ae(s, {
|
|
74056
74116
|
class: "power-editor-cmd-btn",
|
|
74057
74117
|
theme: i.thisTheme,
|
|
74058
74118
|
"border-color": "transparent",
|
|
@@ -74067,7 +74127,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
74067
74127
|
_: 1,
|
|
74068
74128
|
__: [53]
|
|
74069
74129
|
}, 8, ["theme", "background", "foreground", "title"]),
|
|
74070
|
-
|
|
74130
|
+
ae(d, {
|
|
74071
74131
|
mobileMode: t.mobileMode,
|
|
74072
74132
|
foreground: t.foreground,
|
|
74073
74133
|
theme: i.thisTheme,
|
|
@@ -74075,7 +74135,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
74075
74135
|
onInsertImage: o.insertImg
|
|
74076
74136
|
}, {
|
|
74077
74137
|
default: ie((f) => [
|
|
74078
|
-
|
|
74138
|
+
ae(s, {
|
|
74079
74139
|
class: "power-editor-cmd-btn",
|
|
74080
74140
|
theme: i.thisTheme,
|
|
74081
74141
|
"border-color": "transparent",
|
|
@@ -74093,7 +74153,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
74093
74153
|
]),
|
|
74094
74154
|
_: 1
|
|
74095
74155
|
}, 8, ["mobileMode", "foreground", "theme", "language", "onInsertImage"]),
|
|
74096
|
-
|
|
74156
|
+
ae(m, {
|
|
74097
74157
|
mobileMode: t.mobileMode,
|
|
74098
74158
|
foreground: t.foreground,
|
|
74099
74159
|
theme: i.thisTheme,
|
|
@@ -74101,7 +74161,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
74101
74161
|
onInsertLink: o.insertLink
|
|
74102
74162
|
}, {
|
|
74103
74163
|
default: ie((f) => [
|
|
74104
|
-
|
|
74164
|
+
ae(s, {
|
|
74105
74165
|
class: "power-editor-cmd-btn",
|
|
74106
74166
|
theme: i.thisTheme,
|
|
74107
74167
|
"border-color": "transparent",
|
|
@@ -74119,7 +74179,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
74119
74179
|
]),
|
|
74120
74180
|
_: 1
|
|
74121
74181
|
}, 8, ["mobileMode", "foreground", "theme", "language", "onInsertLink"]),
|
|
74122
|
-
|
|
74182
|
+
ae(b, {
|
|
74123
74183
|
mobileMode: t.mobileMode,
|
|
74124
74184
|
foreground: t.foreground,
|
|
74125
74185
|
theme: i.thisTheme,
|
|
@@ -74127,7 +74187,7 @@ function bye(n, e, t, r, i, o) {
|
|
|
74127
74187
|
onInsertEmbed: o.insertEmbed
|
|
74128
74188
|
}, {
|
|
74129
74189
|
default: ie((f) => [
|
|
74130
|
-
|
|
74190
|
+
ae(s, {
|
|
74131
74191
|
class: "power-editor-cmd-btn",
|
|
74132
74192
|
theme: i.thisTheme,
|
|
74133
74193
|
"border-color": "transparent",
|
|
@@ -74287,9 +74347,9 @@ const I6 = /* @__PURE__ */ on(gye, [["render", bye]]), _ye = {
|
|
|
74287
74347
|
function yye(n, e, t, r, i, o) {
|
|
74288
74348
|
const s = Me("fv-button"), a = Me("color-callout"), l = Me("table-callout");
|
|
74289
74349
|
return He(), ot("div", {
|
|
74290
|
-
class:
|
|
74350
|
+
class: tt(["power-editor-bubble-tool-bar-container", [{ dark: i.thisTheme === "dark" }]])
|
|
74291
74351
|
}, [
|
|
74292
|
-
|
|
74352
|
+
ae(s, {
|
|
74293
74353
|
class: "power-editor-bubble-cmd-btn",
|
|
74294
74354
|
theme: i.thisTheme,
|
|
74295
74355
|
background: o.getBackground(t.editor.isActive("bold")),
|
|
@@ -74304,7 +74364,7 @@ function yye(n, e, t, r, i, o) {
|
|
|
74304
74364
|
_: 1,
|
|
74305
74365
|
__: [7]
|
|
74306
74366
|
}, 8, ["theme", "background", "foreground", "title"]),
|
|
74307
|
-
|
|
74367
|
+
ae(s, {
|
|
74308
74368
|
class: "power-editor-bubble-cmd-btn",
|
|
74309
74369
|
theme: i.thisTheme,
|
|
74310
74370
|
background: o.getBackground(t.editor.isActive("italic")),
|
|
@@ -74319,7 +74379,7 @@ function yye(n, e, t, r, i, o) {
|
|
|
74319
74379
|
_: 1,
|
|
74320
74380
|
__: [8]
|
|
74321
74381
|
}, 8, ["theme", "background", "foreground", "title"]),
|
|
74322
|
-
|
|
74382
|
+
ae(s, {
|
|
74323
74383
|
class: "power-editor-bubble-cmd-btn",
|
|
74324
74384
|
theme: i.thisTheme,
|
|
74325
74385
|
background: o.getBackground(t.editor.isActive("strike")),
|
|
@@ -74334,7 +74394,7 @@ function yye(n, e, t, r, i, o) {
|
|
|
74334
74394
|
_: 1,
|
|
74335
74395
|
__: [9]
|
|
74336
74396
|
}, 8, ["theme", "background", "foreground", "title"]),
|
|
74337
|
-
|
|
74397
|
+
ae(s, {
|
|
74338
74398
|
class: "power-editor-bubble-cmd-btn",
|
|
74339
74399
|
theme: i.thisTheme,
|
|
74340
74400
|
background: o.getBackground(t.editor.isActive("underline")),
|
|
@@ -74350,7 +74410,7 @@ function yye(n, e, t, r, i, o) {
|
|
|
74350
74410
|
__: [10]
|
|
74351
74411
|
}, 8, ["theme", "background", "foreground", "title"]),
|
|
74352
74412
|
e[18] || (e[18] = X("hr", null, null, -1)),
|
|
74353
|
-
|
|
74413
|
+
ae(s, {
|
|
74354
74414
|
class: "power-editor-bubble-cmd-btn",
|
|
74355
74415
|
theme: i.thisTheme,
|
|
74356
74416
|
background: o.getBackground(o.showFormatPainter),
|
|
@@ -74366,7 +74426,7 @@ function yye(n, e, t, r, i, o) {
|
|
|
74366
74426
|
_: 1,
|
|
74367
74427
|
__: [11]
|
|
74368
74428
|
}, 8, ["theme", "background", "foreground", "title", "onClick", "onDblclickCapture"]),
|
|
74369
|
-
|
|
74429
|
+
ae(s, {
|
|
74370
74430
|
class: "power-editor-bubble-cmd-btn",
|
|
74371
74431
|
theme: i.thisTheme,
|
|
74372
74432
|
background: o.getBackground(!1),
|
|
@@ -74383,7 +74443,7 @@ function yye(n, e, t, r, i, o) {
|
|
|
74383
74443
|
_: 1,
|
|
74384
74444
|
__: [12]
|
|
74385
74445
|
}, 8, ["theme", "background", "foreground", "title"]),
|
|
74386
|
-
|
|
74446
|
+
ae(a, {
|
|
74387
74447
|
mobileMode: t.mobileMode,
|
|
74388
74448
|
foreground: t.foreground,
|
|
74389
74449
|
theme: i.thisTheme,
|
|
@@ -74395,7 +74455,7 @@ function yye(n, e, t, r, i, o) {
|
|
|
74395
74455
|
execMore: o.execMore
|
|
74396
74456
|
}, {
|
|
74397
74457
|
default: ie((c) => [
|
|
74398
|
-
|
|
74458
|
+
ae(s, {
|
|
74399
74459
|
class: "power-editor-bubble-cmd-btn",
|
|
74400
74460
|
theme: i.thisTheme,
|
|
74401
74461
|
background: o.getBackground(!1),
|
|
@@ -74413,7 +74473,7 @@ function yye(n, e, t, r, i, o) {
|
|
|
74413
74473
|
]),
|
|
74414
74474
|
_: 1
|
|
74415
74475
|
}, 8, ["mobileMode", "foreground", "theme", "language", "editor", "getBackground", "getForeground", "exec", "execMore"]),
|
|
74416
|
-
|
|
74476
|
+
ae(l, {
|
|
74417
74477
|
mobileMode: t.mobileMode,
|
|
74418
74478
|
foreground: t.foreground,
|
|
74419
74479
|
theme: i.thisTheme,
|
|
@@ -74423,7 +74483,7 @@ function yye(n, e, t, r, i, o) {
|
|
|
74423
74483
|
execMore: o.execMore
|
|
74424
74484
|
}, {
|
|
74425
74485
|
default: ie((c) => [
|
|
74426
|
-
|
|
74486
|
+
ae(s, {
|
|
74427
74487
|
class: "power-editor-bubble-cmd-btn",
|
|
74428
74488
|
theme: i.thisTheme,
|
|
74429
74489
|
background: o.getBackground(!1),
|
|
@@ -74441,7 +74501,7 @@ function yye(n, e, t, r, i, o) {
|
|
|
74441
74501
|
]),
|
|
74442
74502
|
_: 1
|
|
74443
74503
|
}, 8, ["mobileMode", "foreground", "theme", "language", "editor", "exec", "execMore"]),
|
|
74444
|
-
|
|
74504
|
+
ae(s, {
|
|
74445
74505
|
class: "power-editor-bubble-cmd-btn",
|
|
74446
74506
|
theme: i.thisTheme,
|
|
74447
74507
|
background: o.getBackground(t.editor.isActive("code")),
|
|
@@ -74456,7 +74516,7 @@ function yye(n, e, t, r, i, o) {
|
|
|
74456
74516
|
_: 1,
|
|
74457
74517
|
__: [15]
|
|
74458
74518
|
}, 8, ["theme", "background", "foreground", "title"]),
|
|
74459
|
-
|
|
74519
|
+
ae(s, {
|
|
74460
74520
|
class: "power-editor-bubble-cmd-btn",
|
|
74461
74521
|
theme: i.thisTheme,
|
|
74462
74522
|
background: o.getBackground(t.editor.isActive("equationBlock")),
|
|
@@ -74471,7 +74531,7 @@ function yye(n, e, t, r, i, o) {
|
|
|
74471
74531
|
_: 1,
|
|
74472
74532
|
__: [16]
|
|
74473
74533
|
}, 8, ["theme", "background", "foreground", "title", "onClick"]),
|
|
74474
|
-
|
|
74534
|
+
ae(s, {
|
|
74475
74535
|
class: "power-editor-bubble-cmd-btn",
|
|
74476
74536
|
theme: i.thisTheme,
|
|
74477
74537
|
background: o.getBackground(t.editor.isActive("codeBlock")),
|
|
@@ -74516,7 +74576,10 @@ const O6 = /* @__PURE__ */ on(_ye, [["render", yye]]), vye = {
|
|
|
74516
74576
|
this.propsSync();
|
|
74517
74577
|
},
|
|
74518
74578
|
theme() {
|
|
74519
|
-
|
|
74579
|
+
var n;
|
|
74580
|
+
this.propsSync(), (n = this.editor) != null && n.view && this.editor.view.dispatch(
|
|
74581
|
+
this.editor.state.tr.setMeta("theme-change", this.theme)
|
|
74582
|
+
);
|
|
74520
74583
|
}
|
|
74521
74584
|
},
|
|
74522
74585
|
computed: {
|
|
@@ -74890,9 +74953,9 @@ const O6 = /* @__PURE__ */ on(_ye, [["render", yye]]), vye = {
|
|
|
74890
74953
|
// this is a function
|
|
74891
74954
|
focus: () => i.focus()
|
|
74892
74955
|
}), (o, s) => (He(), ot("div", {
|
|
74893
|
-
class:
|
|
74956
|
+
class: tt(["power-editor-container", [{ dark: n.theme === "dark" }]])
|
|
74894
74957
|
}, [
|
|
74895
|
-
|
|
74958
|
+
ae(Dc, { name: "power-editor-tool-bar-fade-in" }, {
|
|
74896
74959
|
default: ie(() => [
|
|
74897
74960
|
o.editor && n.editable ? Ut((He(), rn(I6, {
|
|
74898
74961
|
key: 0,
|
|
@@ -74967,7 +75030,7 @@ const O6 = /* @__PURE__ */ on(_ye, [["render", yye]]), vye = {
|
|
|
74967
75030
|
[Wt, n.showToolBar]
|
|
74968
75031
|
]) : Pt("", !0),
|
|
74969
75032
|
X("div", {
|
|
74970
|
-
class:
|
|
75033
|
+
class: tt([[{ "read-only": !n.editable || !n.showToolBar }], "tip-tap-editor-container"]),
|
|
74971
75034
|
ref: "container",
|
|
74972
75035
|
style: ut({
|
|
74973
75036
|
"padding-top": n.editable && n.showToolBar ? `${n.editablePaddingTop ? n.editablePaddingTop : n.toolbarHeight + 10}px` : `${n.readOnlyPaddingTop}px`,
|
|
@@ -74980,8 +75043,8 @@ const O6 = /* @__PURE__ */ on(_ye, [["render", yye]]), vye = {
|
|
|
74980
75043
|
})
|
|
74981
75044
|
}, [
|
|
74982
75045
|
mt(o.$slots, "front-content"),
|
|
74983
|
-
|
|
74984
|
-
class:
|
|
75046
|
+
ae(Bh(i2), {
|
|
75047
|
+
class: tt(["tip-tap-editor", [{ "format-painter": o.showFormatPainter }]]),
|
|
74985
75048
|
editor: o.editor,
|
|
74986
75049
|
theme: n.theme,
|
|
74987
75050
|
ref: "editor",
|
|
@@ -75002,7 +75065,7 @@ const O6 = /* @__PURE__ */ on(_ye, [["render", yye]]), vye = {
|
|
|
75002
75065
|
"should-show": o.bubbleMenuShouldShow
|
|
75003
75066
|
}, {
|
|
75004
75067
|
default: ie(() => [
|
|
75005
|
-
|
|
75068
|
+
ae(O6, {
|
|
75006
75069
|
editor: o.editor,
|
|
75007
75070
|
theme: n.theme,
|
|
75008
75071
|
foreground: n.foreground,
|
|
@@ -75038,11 +75101,11 @@ const O6 = /* @__PURE__ */ on(_ye, [["render", yye]]), vye = {
|
|
|
75038
75101
|
return (e, t) => {
|
|
75039
75102
|
const r = Me("fv-button");
|
|
75040
75103
|
return He(), ot("div", kye, [
|
|
75041
|
-
X("h1", null,
|
|
75042
|
-
X("p", null,
|
|
75043
|
-
|
|
75104
|
+
X("h1", null, Ye(n.title), 1),
|
|
75105
|
+
X("p", null, Ye(e.message), 1),
|
|
75106
|
+
ae(r, null, {
|
|
75044
75107
|
default: ie(() => t[0] || (t[0] = [
|
|
75045
|
-
|
|
75108
|
+
ir("Confirm")
|
|
75046
75109
|
])),
|
|
75047
75110
|
_: 1,
|
|
75048
75111
|
__: [0]
|