@tempots/beatui 0.39.0 → 0.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -11
- package/dist/{2019-1S9vgvv2.cjs → 2019-BFDr925O.cjs} +1 -1
- package/dist/{2019-DPD_eCKE.js → 2019-DnG5Y5sm.js} +2 -2
- package/dist/{2020-aLm9VmDL.js → 2020-D0-tZTo7.js} +2 -2
- package/dist/{2020-CGrbEEmD.cjs → 2020-gUs7l1CJ.cjs} +1 -1
- package/dist/{ar-B0vT_MPe.cjs → ar-BLgxAefV.cjs} +1 -1
- package/dist/{ar-CbM09z5P.js → ar-DpQo8C31.js} +1 -1
- package/dist/auth/index.cjs.js +1 -1
- package/dist/auth/index.es.js +54 -49
- package/dist/beatui.css +216 -129
- package/dist/beatui.tailwind.css +216 -129
- package/dist/{de-tK36cL_u.cjs → de-Bv-qs--J.cjs} +1 -1
- package/dist/{de-Dd907tZQ.js → de-D1MQ4wen.js} +1 -1
- package/dist/{es-K35LRZa-.cjs → es-3r8Ko5Dn.cjs} +1 -1
- package/dist/{es-BkJxjMdG.js → es-DwPjonS7.js} +1 -1
- package/dist/{fa-BBikwwku.cjs → fa-Qw6uVZeX.cjs} +1 -1
- package/dist/{fa-DBTUBsw_.js → fa-fxf_lWjh.js} +1 -1
- package/dist/{fr-Fmupo556.js → fr-BDDsMHRZ.js} +1 -1
- package/dist/{fr-DMtXrrnJ.cjs → fr-pVhG9qik.cjs} +1 -1
- package/dist/{he-DkI64oaY.js → he-B4deK_wE.js} +1 -1
- package/dist/{he-on3Ivp8g.cjs → he-D-fvzfe1.cjs} +1 -1
- package/dist/{hi-GdD5MihT.js → hi-CxQT8nRD.js} +1 -1
- package/dist/{hi-CNFV8ITE.cjs → hi-DKgxHzmH.cjs} +1 -1
- package/dist/{index-BK8t6gqu.js → index-Acyxme63.js} +680 -677
- package/dist/{index-e8oQ-k0x.cjs → index-BZ2AX5sk.cjs} +4 -4
- package/dist/{index-BfFlhmAq.js → index-BwEJlbG2.js} +1 -1
- package/dist/{index-DjShJtXp.js → index-CAeOFdez.js} +1 -1
- package/dist/{index-BI5w0jSz.js → index-CBT2SLat.js} +224 -223
- package/dist/{index-BkQ7xHgi.js → index-CWq36UAJ.js} +770 -757
- package/dist/{index-Bv2gn_kV.cjs → index-ClFVnBUS.cjs} +3 -3
- package/dist/{index-LUItEwlw.js → index-Clw0AwwJ.js} +1 -1
- package/dist/{index-wdi93sK4.cjs → index-DRDJFYRb.cjs} +1 -1
- package/dist/{index-CKyH3jwP.cjs → index-KPHFBjQB.cjs} +1 -1
- package/dist/{index-BA93M8Ux.cjs → index-Lj0QS2po.cjs} +1 -1
- package/dist/{index-CPBlySmE.cjs → index-nVVPqgLq.cjs} +12 -12
- package/dist/index.cjs.js +4 -4
- package/dist/index.es.js +2200 -2181
- package/dist/{it-Bpnfd60V.js → it-6QS5PWzQ.js} +1 -1
- package/dist/{it-BDOzBRkQ.cjs → it-Ck0r9TO3.cjs} +1 -1
- package/dist/{ja-SjlGNgs9.js → ja-D2VvVGEN.js} +1 -1
- package/dist/{ja-N-7c7zD7.cjs → ja-D6b9suYB.cjs} +1 -1
- package/dist/json-schema/index.cjs.js +1 -1
- package/dist/json-schema/index.es.js +1 -1
- package/dist/{ko-CH69ZNts.js → ko-CP_WopWz.js} +1 -1
- package/dist/{ko-BBeTXIlY.cjs → ko-CzvM2Bjv.cjs} +1 -1
- package/dist/markdown/index.cjs.js +1 -1
- package/dist/markdown/index.es.js +1 -1
- package/dist/modal-BmSRMdY9.cjs +1 -0
- package/dist/{modal-BD76Rve3.js → modal-DMc-R2VT.js} +234 -209
- package/dist/{nl-DnvMlW8v.js → nl-DZ4dFolZ.js} +1 -1
- package/dist/{nl-C2C9QDH2.cjs → nl-_9vJc8JD.cjs} +1 -1
- package/dist/{notice-CQZseCQs.js → notice-B5Yn_3Ay.js} +205 -195
- package/dist/notice-D3P0lewM.cjs +2 -0
- package/dist/{pl-CBEX2qN1.js → pl-BE81iFSF.js} +1 -1
- package/dist/{pl-sNBCzEUd.cjs → pl-DKcVCojx.cjs} +1 -1
- package/dist/prosemirror/index.cjs.js +1 -1
- package/dist/prosemirror/index.es.js +1 -1
- package/dist/{pt-ByFqFAdQ.js → pt-BcCdXUA2.js} +1 -1
- package/dist/{pt-Bvxg9VEA.cjs → pt-DNVS1_MF.cjs} +1 -1
- package/dist/{ru-6d5JfoDw.js → ru-Bo_jc3s1.js} +1 -1
- package/dist/{ru-CPAdsn4m.cjs → ru-DTn9Rssv.cjs} +1 -1
- package/dist/{toolbar-Cl_TAa3r.js → toolbar-DhD5GmMa.js} +1 -1
- package/dist/{toolbar-Dw2VQD9y.cjs → toolbar-jPGzdJGi.cjs} +1 -1
- package/dist/{tr-IKZtCQQR.cjs → tr-BhTJYHQ3.cjs} +1 -1
- package/dist/{tr-gv4vJfm8.js → tr-CBw3FlOg.js} +1 -1
- package/dist/{translations-DXLmnUiB.js → translations-B0HuWYIz.js} +1 -1
- package/dist/{translations-CK426qyd.cjs → translations-B7_3phoA.cjs} +1 -1
- package/dist/translations-C21osktO.cjs +1 -0
- package/dist/{translations-djDSPqdb.js → translations-D-fMB_IO.js} +212 -183
- package/dist/types/components/form/controller/color-controller.d.ts +1 -1
- package/dist/types/components/form/input/color-input.d.ts +2 -5
- package/dist/types/components/form/input/color-swatch-input.d.ts +9 -0
- package/dist/types/components/form/input/index.d.ts +1 -0
- package/dist/types/components/form/input/input-container.d.ts +7 -0
- package/dist/types/components/misc/notification-provider.d.ts +3 -3
- package/dist/types/utils/{color-validation.d.ts → color.d.ts} +13 -0
- package/dist/types/utils/index.d.ts +1 -1
- package/dist/types/utils/use-animated-toggle.d.ts +17 -4
- package/dist/{ur-Bgq_2yjr.cjs → ur-BjuXyU8Z.cjs} +1 -1
- package/dist/{ur-Bo6bjEBS.js → ur-BsXnPgxd.js} +1 -1
- package/dist/utils-BOEQMy82.js +2512 -0
- package/dist/utils-DH-SYrQg.cjs +1 -0
- package/dist/{vi-BrUQnj-8.cjs → vi-CvsTHMkK.cjs} +1 -1
- package/dist/{vi-xDLJ3TIx.js → vi-D1rLo6MX.js} +1 -1
- package/dist/{zh-BivWxJJh.js → zh-BoLsjdfz.js} +1 -1
- package/dist/{zh-BqH1Cioq.cjs → zh-zh1FJ4Ud.cjs} +1 -1
- package/package.json +4 -3
- package/dist/modal-DQycMZ8_.cjs +0 -1
- package/dist/notice-CFoc4PJe.cjs +0 -2
- package/dist/translations-DJR65Jii.cjs +0 -1
- package/dist/utils-Bsrfm-0d.cjs +0 -1
- package/dist/utils-Bw911Eo4.js +0 -2418
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { When as It, attr as Je, prop as zi, Fragment as
|
|
2
|
-
import { a as
|
|
3
|
-
import { I as ul, T as il, a as sl } from "./translations-
|
|
1
|
+
import { When as It, attr as Je, prop as zi, Fragment as Pi, OnDispose as on, Ensure as xr, signal as kr, computedOf as Li, Use as qi, Repeat as el, Value as j, html as fu, Task as tl, WithElement as nl } from "@tempots/dom";
|
|
2
|
+
import { a as Vi, b as $i, T as rl } from "./toolbar-DhD5GmMa.js";
|
|
3
|
+
import { I as ul, T as il, a as sl } from "./translations-D-fMB_IO.js";
|
|
4
4
|
import { L as ol } from "./link-portal-Cr2l9f3k.js";
|
|
5
5
|
import { ticker as ll } from "@tempots/ui";
|
|
6
6
|
import { T as al } from "./theme-B5pmbvQ_.js";
|
|
7
|
-
function $i(t, e) {
|
|
8
|
-
return Wi(t, e) != null;
|
|
9
|
-
}
|
|
10
7
|
function Wi(t, e) {
|
|
8
|
+
return Hi(t, e) != null;
|
|
9
|
+
}
|
|
10
|
+
function Hi(t, e) {
|
|
11
11
|
const { from: n, $from: r, to: u, empty: i } = t.selection;
|
|
12
12
|
if (!e) return null;
|
|
13
13
|
if (i) {
|
|
@@ -36,10 +36,10 @@ function Wi(t, e) {
|
|
|
36
36
|
}
|
|
37
37
|
}), s;
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function ln(t, e, n) {
|
|
40
40
|
return t.map(() => {
|
|
41
41
|
const r = e.value, u = r.state.schema.marks[n];
|
|
42
|
-
return
|
|
42
|
+
return Wi(r.state, u);
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
45
|
function cl(t, e, n) {
|
|
@@ -69,7 +69,7 @@ function he({
|
|
|
69
69
|
}) {
|
|
70
70
|
return It(
|
|
71
71
|
e,
|
|
72
|
-
() =>
|
|
72
|
+
() => Vi(
|
|
73
73
|
{
|
|
74
74
|
onClick: n,
|
|
75
75
|
disabled: r,
|
|
@@ -91,9 +91,9 @@ function fl(t, e) {
|
|
|
91
91
|
);
|
|
92
92
|
t.dispatch(i), t.focus();
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function Ji(t) {
|
|
95
95
|
const { state: e } = t, { $from: n, $to: r } = e.selection;
|
|
96
|
-
if (!
|
|
96
|
+
if (!ji(e)) return null;
|
|
97
97
|
let u = n.pos, i = r.pos;
|
|
98
98
|
const s = e.doc;
|
|
99
99
|
for (; u > 0 && s.resolve(u - 1).nodeAfter?.marks?.some((a) => a.type.name === "link"); )
|
|
@@ -105,7 +105,7 @@ function Hi(t) {
|
|
|
105
105
|
function dl(t, e) {
|
|
106
106
|
const n = t.state.schema.marks.link;
|
|
107
107
|
if (n == null) return;
|
|
108
|
-
const r =
|
|
108
|
+
const r = Ji(t);
|
|
109
109
|
if (r == null) return;
|
|
110
110
|
const { start: u, end: i } = r, s = t.state.tr.removeMark(u, i, n).addMark(u, i, n.create({ href: e, title: null }));
|
|
111
111
|
t.dispatch(s);
|
|
@@ -113,13 +113,13 @@ function dl(t, e) {
|
|
|
113
113
|
function hl(t) {
|
|
114
114
|
const e = t.state.schema.marks.link;
|
|
115
115
|
if (e == null) return;
|
|
116
|
-
const n =
|
|
116
|
+
const n = Ji(t);
|
|
117
117
|
if (n == null) return;
|
|
118
118
|
const { start: r, end: u } = n, i = t.state.tr.removeMark(r, u, e);
|
|
119
119
|
t.dispatch(i), t.focus();
|
|
120
120
|
}
|
|
121
|
-
function
|
|
122
|
-
return
|
|
121
|
+
function ji(t) {
|
|
122
|
+
return Wi(t, t.schema.marks.link);
|
|
123
123
|
}
|
|
124
124
|
function pl({
|
|
125
125
|
stateUpdate: t,
|
|
@@ -138,25 +138,25 @@ function pl({
|
|
|
138
138
|
l != null && dl(e.value, l);
|
|
139
139
|
});
|
|
140
140
|
const o = t.on(() => {
|
|
141
|
-
const l =
|
|
141
|
+
const l = Hi(
|
|
142
142
|
e.value.state,
|
|
143
143
|
e.value.state.schema.marks.link
|
|
144
144
|
);
|
|
145
145
|
l != null ? s.set(l.attrs.href ?? "") : s.set(null);
|
|
146
146
|
});
|
|
147
|
-
return
|
|
148
|
-
|
|
149
|
-
|
|
147
|
+
return Pi(
|
|
148
|
+
on(s.dispose, o),
|
|
149
|
+
$i(
|
|
150
150
|
he({
|
|
151
151
|
display: kr(!0),
|
|
152
|
-
active:
|
|
152
|
+
active: ln(t, e, "link"),
|
|
153
153
|
disabled: n,
|
|
154
154
|
label: r,
|
|
155
155
|
icon: "mdi:link-variant",
|
|
156
156
|
size: i,
|
|
157
157
|
onClick: () => {
|
|
158
158
|
const l = e.value.state;
|
|
159
|
-
if (
|
|
159
|
+
if (ji(l))
|
|
160
160
|
hl(e.value), s.set(null);
|
|
161
161
|
else {
|
|
162
162
|
const a = "";
|
|
@@ -177,7 +177,7 @@ function pl({
|
|
|
177
177
|
),
|
|
178
178
|
xr(
|
|
179
179
|
s,
|
|
180
|
-
(l) =>
|
|
180
|
+
(l) => Vi(
|
|
181
181
|
{
|
|
182
182
|
disabled: l.map((a) => a.trim() === ""),
|
|
183
183
|
variant: "text",
|
|
@@ -196,8 +196,8 @@ function en({
|
|
|
196
196
|
display: t
|
|
197
197
|
}, ...e) {
|
|
198
198
|
return It(
|
|
199
|
-
|
|
200
|
-
() =>
|
|
199
|
+
Li(...t)((...n) => n.some(Boolean)),
|
|
200
|
+
() => $i(...e)
|
|
201
201
|
);
|
|
202
202
|
}
|
|
203
203
|
function ml({
|
|
@@ -209,34 +209,34 @@ function ml({
|
|
|
209
209
|
}) {
|
|
210
210
|
return xr(
|
|
211
211
|
t,
|
|
212
|
-
(i) =>
|
|
212
|
+
(i) => qi(sl, (s) => {
|
|
213
213
|
const o = s.$.prosemirror, l = i;
|
|
214
214
|
return rl(
|
|
215
215
|
// Text formatting group
|
|
216
216
|
en(
|
|
217
217
|
{ display: [n.$.bold, n.$.italic, n.$.code] },
|
|
218
218
|
he({
|
|
219
|
-
active:
|
|
219
|
+
active: ln(e, l, "strong"),
|
|
220
220
|
display: n.$.bold,
|
|
221
|
-
onClick: () =>
|
|
221
|
+
onClick: () => $n(l.value, "strong"),
|
|
222
222
|
disabled: r,
|
|
223
223
|
label: o.$.bold,
|
|
224
224
|
icon: "mdi:format-bold",
|
|
225
225
|
size: u
|
|
226
226
|
}),
|
|
227
227
|
he({
|
|
228
|
-
active:
|
|
228
|
+
active: ln(e, l, "em"),
|
|
229
229
|
display: n.$.italic,
|
|
230
|
-
onClick: () =>
|
|
230
|
+
onClick: () => $n(l.value, "em"),
|
|
231
231
|
disabled: r,
|
|
232
232
|
label: o.$.italic,
|
|
233
233
|
icon: "mdi:format-italic",
|
|
234
234
|
size: u
|
|
235
235
|
}),
|
|
236
236
|
he({
|
|
237
|
-
active:
|
|
237
|
+
active: ln(e, l, "code"),
|
|
238
238
|
display: n.$.code,
|
|
239
|
-
onClick: () =>
|
|
239
|
+
onClick: () => $n(l.value, "code"),
|
|
240
240
|
disabled: r,
|
|
241
241
|
label: o.$.code,
|
|
242
242
|
icon: "mdi:code-tags",
|
|
@@ -341,16 +341,16 @@ function ml({
|
|
|
341
341
|
})
|
|
342
342
|
);
|
|
343
343
|
}
|
|
344
|
-
async function
|
|
345
|
-
const { toggleMark: n } = await Promise.resolve().then(() =>
|
|
344
|
+
async function $n(t, e) {
|
|
345
|
+
const { toggleMark: n } = await Promise.resolve().then(() => Ln), r = t.state.schema.marks[e];
|
|
346
346
|
r != null && (n(r)(t.state, t.dispatch), t.focus());
|
|
347
347
|
}
|
|
348
348
|
async function gl(t, e) {
|
|
349
|
-
const { setBlockType: n } = await Promise.resolve().then(() =>
|
|
349
|
+
const { setBlockType: n } = await Promise.resolve().then(() => Ln), r = t.state.schema.nodes.heading;
|
|
350
350
|
r != null && (n(r, { level: e })(t.state, t.dispatch), t.focus());
|
|
351
351
|
}
|
|
352
352
|
async function du(t, e) {
|
|
353
|
-
const { wrapInList: n, liftListItem: r } = await import("./index-
|
|
353
|
+
const { wrapInList: n, liftListItem: r } = await import("./index-BwEJlbG2.js"), u = t.state.schema.nodes[e], i = t.state.schema.nodes.list_item;
|
|
354
354
|
if (u == null || i == null) return;
|
|
355
355
|
const { state: s } = t, { $from: o } = s.selection;
|
|
356
356
|
let l = null;
|
|
@@ -364,7 +364,7 @@ async function du(t, e) {
|
|
|
364
364
|
l === e ? r(i)(s, t.dispatch) : l != null ? r(i)(t.state, t.dispatch) && n(u)(t.state, t.dispatch) : n(u)(s, t.dispatch), t.focus();
|
|
365
365
|
}
|
|
366
366
|
async function bl(t) {
|
|
367
|
-
const { wrapIn: e, lift: n } = await Promise.resolve().then(() =>
|
|
367
|
+
const { wrapIn: e, lift: n } = await Promise.resolve().then(() => Ln), r = t.state.schema.nodes.blockquote;
|
|
368
368
|
if (r == null) return;
|
|
369
369
|
const { state: u } = t, { $from: i } = u.selection;
|
|
370
370
|
let s = !1;
|
|
@@ -376,7 +376,7 @@ async function bl(t) {
|
|
|
376
376
|
s ? n(u, t.dispatch) : e(r)(u, t.dispatch), t.focus();
|
|
377
377
|
}
|
|
378
378
|
async function xl(t) {
|
|
379
|
-
const { setBlockType: e } = await Promise.resolve().then(() =>
|
|
379
|
+
const { setBlockType: e } = await Promise.resolve().then(() => Ln), n = t.state.schema.nodes.code_block, r = t.state.schema.nodes.paragraph;
|
|
380
380
|
if (n == null || r == null) return;
|
|
381
381
|
const { state: u } = t, { $from: i } = u.selection;
|
|
382
382
|
let s = !1;
|
|
@@ -494,7 +494,7 @@ L.from = function(t) {
|
|
|
494
494
|
if (t) for (var n in t) e.push(n, t[n]);
|
|
495
495
|
return new L(e);
|
|
496
496
|
};
|
|
497
|
-
function
|
|
497
|
+
function Ui(t, e, n) {
|
|
498
498
|
for (let r = 0; ; r++) {
|
|
499
499
|
if (r == t.childCount || r == e.childCount)
|
|
500
500
|
return t.childCount == e.childCount ? null : n;
|
|
@@ -511,14 +511,14 @@ function ji(t, e, n) {
|
|
|
511
511
|
return n;
|
|
512
512
|
}
|
|
513
513
|
if (u.content.size || i.content.size) {
|
|
514
|
-
let s =
|
|
514
|
+
let s = Ui(u.content, i.content, n + 1);
|
|
515
515
|
if (s != null)
|
|
516
516
|
return s;
|
|
517
517
|
}
|
|
518
518
|
n += u.nodeSize;
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
|
-
function
|
|
521
|
+
function Ki(t, e, n, r) {
|
|
522
522
|
for (let u = t.childCount, i = e.childCount; ; ) {
|
|
523
523
|
if (u == 0 || i == 0)
|
|
524
524
|
return u == i ? null : { a: n, b: r };
|
|
@@ -536,7 +536,7 @@ function Ui(t, e, n, r) {
|
|
|
536
536
|
return { a: n, b: r };
|
|
537
537
|
}
|
|
538
538
|
if (s.content.size || o.content.size) {
|
|
539
|
-
let a =
|
|
539
|
+
let a = Ki(s.content, o.content, n - 1, r - 1);
|
|
540
540
|
if (a)
|
|
541
541
|
return a;
|
|
542
542
|
}
|
|
@@ -705,7 +705,7 @@ class y {
|
|
|
705
705
|
fragment differ, or `null` if they are the same.
|
|
706
706
|
*/
|
|
707
707
|
findDiffStart(e, n = 0) {
|
|
708
|
-
return
|
|
708
|
+
return Ui(this, e, n);
|
|
709
709
|
}
|
|
710
710
|
/**
|
|
711
711
|
Find the first position, searching from the end, at which this
|
|
@@ -714,7 +714,7 @@ class y {
|
|
|
714
714
|
nodes, an object with two separate positions is returned.
|
|
715
715
|
*/
|
|
716
716
|
findDiffEnd(e, n = this.size, r = e.size) {
|
|
717
|
-
return
|
|
717
|
+
return Ki(this, e, n, r);
|
|
718
718
|
}
|
|
719
719
|
/**
|
|
720
720
|
Find the index and inner offset corresponding to a given relative
|
|
@@ -796,11 +796,11 @@ class y {
|
|
|
796
796
|
}
|
|
797
797
|
}
|
|
798
798
|
y.empty = new y([], 0);
|
|
799
|
-
const
|
|
799
|
+
const Wn = { index: 0, offset: 0 };
|
|
800
800
|
function tn(t, e) {
|
|
801
|
-
return
|
|
801
|
+
return Wn.index = t, Wn.offset = e, Wn;
|
|
802
802
|
}
|
|
803
|
-
function
|
|
803
|
+
function pn(t, e) {
|
|
804
804
|
if (t === e)
|
|
805
805
|
return !0;
|
|
806
806
|
if (!(t && typeof t == "object") || !(e && typeof e == "object"))
|
|
@@ -812,11 +812,11 @@ function hn(t, e) {
|
|
|
812
812
|
if (t.length != e.length)
|
|
813
813
|
return !1;
|
|
814
814
|
for (let r = 0; r < t.length; r++)
|
|
815
|
-
if (!
|
|
815
|
+
if (!pn(t[r], e[r]))
|
|
816
816
|
return !1;
|
|
817
817
|
} else {
|
|
818
818
|
for (let r in t)
|
|
819
|
-
if (!(r in e) || !
|
|
819
|
+
if (!(r in e) || !pn(t[r], e[r]))
|
|
820
820
|
return !1;
|
|
821
821
|
for (let r in e)
|
|
822
822
|
if (!(r in t))
|
|
@@ -878,7 +878,7 @@ class M {
|
|
|
878
878
|
another mark.
|
|
879
879
|
*/
|
|
880
880
|
eq(e) {
|
|
881
|
-
return this == e || this.type == e.type &&
|
|
881
|
+
return this == e || this.type == e.type && pn(this.attrs, e.attrs);
|
|
882
882
|
}
|
|
883
883
|
/**
|
|
884
884
|
Convert this mark to a JSON-serializeable representation.
|
|
@@ -930,7 +930,7 @@ class M {
|
|
|
930
930
|
}
|
|
931
931
|
}
|
|
932
932
|
M.none = [];
|
|
933
|
-
class
|
|
933
|
+
class mn extends Error {
|
|
934
934
|
}
|
|
935
935
|
class D {
|
|
936
936
|
/**
|
|
@@ -958,14 +958,14 @@ class D {
|
|
|
958
958
|
@internal
|
|
959
959
|
*/
|
|
960
960
|
insertAt(e, n) {
|
|
961
|
-
let r =
|
|
961
|
+
let r = Gi(this.content, e + this.openStart, n);
|
|
962
962
|
return r && new D(r, this.openStart, this.openEnd);
|
|
963
963
|
}
|
|
964
964
|
/**
|
|
965
965
|
@internal
|
|
966
966
|
*/
|
|
967
967
|
removeBetween(e, n) {
|
|
968
|
-
return new D(
|
|
968
|
+
return new D(Zi(this.content, e + this.openStart, n + this.openStart), this.openStart, this.openEnd);
|
|
969
969
|
}
|
|
970
970
|
/**
|
|
971
971
|
Tests whether this slice is equal to another slice.
|
|
@@ -1013,7 +1013,7 @@ class D {
|
|
|
1013
1013
|
}
|
|
1014
1014
|
}
|
|
1015
1015
|
D.empty = new D(y.empty, 0, 0);
|
|
1016
|
-
function
|
|
1016
|
+
function Zi(t, e, n) {
|
|
1017
1017
|
let { index: r, offset: u } = t.findIndex(e), i = t.maybeChild(r), { index: s, offset: o } = t.findIndex(n);
|
|
1018
1018
|
if (u == e || i.isText) {
|
|
1019
1019
|
if (o != n && !t.child(s).isText)
|
|
@@ -1022,26 +1022,26 @@ function Ki(t, e, n) {
|
|
|
1022
1022
|
}
|
|
1023
1023
|
if (r != s)
|
|
1024
1024
|
throw new RangeError("Removing non-flat range");
|
|
1025
|
-
return t.replaceChild(r, i.copy(
|
|
1025
|
+
return t.replaceChild(r, i.copy(Zi(i.content, e - u - 1, n - u - 1)));
|
|
1026
1026
|
}
|
|
1027
|
-
function
|
|
1027
|
+
function Gi(t, e, n, r) {
|
|
1028
1028
|
let { index: u, offset: i } = t.findIndex(e), s = t.maybeChild(u);
|
|
1029
1029
|
if (i == e || s.isText)
|
|
1030
1030
|
return r && !r.canReplace(u, u, n) ? null : t.cut(0, e).append(n).append(t.cut(e));
|
|
1031
|
-
let o =
|
|
1031
|
+
let o = Gi(s.content, e - i - 1, n, s);
|
|
1032
1032
|
return o && t.replaceChild(u, s.copy(o));
|
|
1033
1033
|
}
|
|
1034
1034
|
function yl(t, e, n) {
|
|
1035
1035
|
if (n.openStart > t.depth)
|
|
1036
|
-
throw new
|
|
1036
|
+
throw new mn("Inserted content deeper than insertion position");
|
|
1037
1037
|
if (t.depth - n.openStart != e.depth - n.openEnd)
|
|
1038
|
-
throw new
|
|
1039
|
-
return
|
|
1038
|
+
throw new mn("Inconsistent open depths");
|
|
1039
|
+
return Yi(t, e, n, 0);
|
|
1040
1040
|
}
|
|
1041
|
-
function
|
|
1041
|
+
function Yi(t, e, n, r) {
|
|
1042
1042
|
let u = t.index(r), i = t.node(r);
|
|
1043
1043
|
if (u == e.index(r) && r < t.depth - n.openStart) {
|
|
1044
|
-
let s =
|
|
1044
|
+
let s = Yi(t, e, n, r + 1);
|
|
1045
1045
|
return i.copy(i.content.replaceChild(u, s));
|
|
1046
1046
|
} else if (n.content.size)
|
|
1047
1047
|
if (!n.openStart && !n.openEnd && t.depth == r && e.depth == r) {
|
|
@@ -1049,17 +1049,17 @@ function Gi(t, e, n, r) {
|
|
|
1049
1049
|
return Ye(s, o.cut(0, t.parentOffset).append(n.content).append(o.cut(e.parentOffset)));
|
|
1050
1050
|
} else {
|
|
1051
1051
|
let { start: s, end: o } = Cl(n, t);
|
|
1052
|
-
return Ye(i,
|
|
1052
|
+
return Ye(i, Qi(t, s, o, e, r));
|
|
1053
1053
|
}
|
|
1054
|
-
else return Ye(i,
|
|
1054
|
+
else return Ye(i, gn(t, e, r));
|
|
1055
1055
|
}
|
|
1056
|
-
function
|
|
1056
|
+
function Xi(t, e) {
|
|
1057
1057
|
if (!e.type.compatibleContent(t.type))
|
|
1058
|
-
throw new
|
|
1058
|
+
throw new mn("Cannot join " + e.type.name + " onto " + t.type.name);
|
|
1059
1059
|
}
|
|
1060
1060
|
function yr(t, e, n) {
|
|
1061
1061
|
let r = t.node(n);
|
|
1062
|
-
return
|
|
1062
|
+
return Xi(r, e.node(n)), r;
|
|
1063
1063
|
}
|
|
1064
1064
|
function Ge(t, e) {
|
|
1065
1065
|
let n = e.length - 1;
|
|
@@ -1075,15 +1075,15 @@ function Tt(t, e, n, r) {
|
|
|
1075
1075
|
function Ye(t, e) {
|
|
1076
1076
|
return t.type.checkContent(e), t.copy(e);
|
|
1077
1077
|
}
|
|
1078
|
-
function
|
|
1078
|
+
function Qi(t, e, n, r, u) {
|
|
1079
1079
|
let i = t.depth > u && yr(t, e, u + 1), s = r.depth > u && yr(n, r, u + 1), o = [];
|
|
1080
|
-
return Tt(null, t, u, o), i && s && e.index(u) == n.index(u) ? (
|
|
1080
|
+
return Tt(null, t, u, o), i && s && e.index(u) == n.index(u) ? (Xi(i, s), Ge(Ye(i, Qi(t, e, n, r, u + 1)), o)) : (i && Ge(Ye(i, gn(t, e, u + 1)), o), Tt(e, n, u, o), s && Ge(Ye(s, gn(n, r, u + 1)), o)), Tt(r, null, u, o), new y(o);
|
|
1081
1081
|
}
|
|
1082
|
-
function
|
|
1082
|
+
function gn(t, e, n) {
|
|
1083
1083
|
let r = [];
|
|
1084
1084
|
if (Tt(null, t, n, r), t.depth > n) {
|
|
1085
1085
|
let u = yr(t, e, n + 1);
|
|
1086
|
-
Ge(Ye(u,
|
|
1086
|
+
Ge(Ye(u, gn(t, e, n + 1)), r);
|
|
1087
1087
|
}
|
|
1088
1088
|
return Tt(e, null, n, r), new y(r);
|
|
1089
1089
|
}
|
|
@@ -1508,7 +1508,7 @@ class ke {
|
|
|
1508
1508
|
attributes, and marks.
|
|
1509
1509
|
*/
|
|
1510
1510
|
hasMarkup(e, n, r) {
|
|
1511
|
-
return this.type == e &&
|
|
1511
|
+
return this.type == e && pn(this.attrs, n || e.defaultAttrs || Sl) && M.sameSet(this.marks, r || M.none);
|
|
1512
1512
|
}
|
|
1513
1513
|
/**
|
|
1514
1514
|
Create a new node with the same markup as this node, containing
|
|
@@ -1666,7 +1666,7 @@ class ke {
|
|
|
1666
1666
|
if (this.type.spec.toDebugString)
|
|
1667
1667
|
return this.type.spec.toDebugString(this);
|
|
1668
1668
|
let e = this.type.name;
|
|
1669
|
-
return this.content.size && (e += "(" + this.content.toStringInner() + ")"),
|
|
1669
|
+
return this.content.size && (e += "(" + this.content.toStringInner() + ")"), es(this.marks, e);
|
|
1670
1670
|
}
|
|
1671
1671
|
/**
|
|
1672
1672
|
Get the content match in this node at the given index.
|
|
@@ -1760,7 +1760,7 @@ class ke {
|
|
|
1760
1760
|
}
|
|
1761
1761
|
}
|
|
1762
1762
|
ke.prototype.text = void 0;
|
|
1763
|
-
class
|
|
1763
|
+
class bn extends ke {
|
|
1764
1764
|
/**
|
|
1765
1765
|
@internal
|
|
1766
1766
|
*/
|
|
@@ -1770,7 +1770,7 @@ class gn extends ke {
|
|
|
1770
1770
|
this.text = r;
|
|
1771
1771
|
}
|
|
1772
1772
|
toString() {
|
|
1773
|
-
return this.type.spec.toDebugString ? this.type.spec.toDebugString(this) :
|
|
1773
|
+
return this.type.spec.toDebugString ? this.type.spec.toDebugString(this) : es(this.marks, JSON.stringify(this.text));
|
|
1774
1774
|
}
|
|
1775
1775
|
get textContent() {
|
|
1776
1776
|
return this.text;
|
|
@@ -1782,10 +1782,10 @@ class gn extends ke {
|
|
|
1782
1782
|
return this.text.length;
|
|
1783
1783
|
}
|
|
1784
1784
|
mark(e) {
|
|
1785
|
-
return e == this.marks ? this : new
|
|
1785
|
+
return e == this.marks ? this : new bn(this.type, this.attrs, this.text, e);
|
|
1786
1786
|
}
|
|
1787
1787
|
withText(e) {
|
|
1788
|
-
return e == this.text ? this : new
|
|
1788
|
+
return e == this.text ? this : new bn(this.type, this.attrs, e, this.marks);
|
|
1789
1789
|
}
|
|
1790
1790
|
cut(e = 0, n = this.text.length) {
|
|
1791
1791
|
return e == 0 && n == this.text.length ? this : this.withText(this.text.slice(e, n));
|
|
@@ -1798,7 +1798,7 @@ class gn extends ke {
|
|
|
1798
1798
|
return e.text = this.text, e;
|
|
1799
1799
|
}
|
|
1800
1800
|
}
|
|
1801
|
-
function
|
|
1801
|
+
function es(t, e) {
|
|
1802
1802
|
for (let n = t.length - 1; n >= 0; n--)
|
|
1803
1803
|
e = t[n].type.name + "(" + e + ")";
|
|
1804
1804
|
return e;
|
|
@@ -1817,7 +1817,7 @@ class tt {
|
|
|
1817
1817
|
let r = new Al(e, n);
|
|
1818
1818
|
if (r.next == null)
|
|
1819
1819
|
return tt.empty;
|
|
1820
|
-
let u =
|
|
1820
|
+
let u = ts(r);
|
|
1821
1821
|
r.next && r.err("Unexpected trailing text");
|
|
1822
1822
|
let i = Il(Nl(u));
|
|
1823
1823
|
return Rl(i, r), i;
|
|
@@ -1980,7 +1980,7 @@ class Al {
|
|
|
1980
1980
|
throw new SyntaxError(e + " (in content expression '" + this.string + "')");
|
|
1981
1981
|
}
|
|
1982
1982
|
}
|
|
1983
|
-
function
|
|
1983
|
+
function ts(t) {
|
|
1984
1984
|
let e = [];
|
|
1985
1985
|
do
|
|
1986
1986
|
e.push(Ml(t));
|
|
@@ -2031,7 +2031,7 @@ function Ol(t, e) {
|
|
|
2031
2031
|
}
|
|
2032
2032
|
function Fl(t) {
|
|
2033
2033
|
if (t.eat("(")) {
|
|
2034
|
-
let e =
|
|
2034
|
+
let e = ts(t);
|
|
2035
2035
|
return t.eat(")") || t.err("Missing closing paren"), e;
|
|
2036
2036
|
} else if (/\W/.test(t.next))
|
|
2037
2037
|
t.err("Unexpected token '" + t.next + "'");
|
|
@@ -2094,12 +2094,12 @@ function Nl(t) {
|
|
|
2094
2094
|
}
|
|
2095
2095
|
}
|
|
2096
2096
|
}
|
|
2097
|
-
function
|
|
2097
|
+
function ns(t, e) {
|
|
2098
2098
|
return e - t;
|
|
2099
2099
|
}
|
|
2100
2100
|
function mu(t, e) {
|
|
2101
2101
|
let n = [];
|
|
2102
|
-
return r(e), n.sort(
|
|
2102
|
+
return r(e), n.sort(ns);
|
|
2103
2103
|
function r(u) {
|
|
2104
2104
|
let i = t[u];
|
|
2105
2105
|
if (i.length == 1 && !i[0].term)
|
|
@@ -2130,7 +2130,7 @@ function Il(t) {
|
|
|
2130
2130
|
});
|
|
2131
2131
|
let i = e[r.join(",")] = new tt(r.indexOf(t.length - 1) > -1);
|
|
2132
2132
|
for (let s = 0; s < u.length; s++) {
|
|
2133
|
-
let o = u[s][1].sort(
|
|
2133
|
+
let o = u[s][1].sort(ns);
|
|
2134
2134
|
i.next.push({ type: u[s][0], next: e[o.join(",")] || n(o) });
|
|
2135
2135
|
}
|
|
2136
2136
|
return i;
|
|
@@ -2146,7 +2146,7 @@ function Rl(t, e) {
|
|
|
2146
2146
|
i && e.err("Only non-generatable nodes (" + s.join(", ") + ") in a required position (see https://prosemirror.net/docs/guide/#generatable)");
|
|
2147
2147
|
}
|
|
2148
2148
|
}
|
|
2149
|
-
function
|
|
2149
|
+
function rs(t) {
|
|
2150
2150
|
let e = /* @__PURE__ */ Object.create(null);
|
|
2151
2151
|
for (let n in t) {
|
|
2152
2152
|
let r = t[n];
|
|
@@ -2156,7 +2156,7 @@ function ns(t) {
|
|
|
2156
2156
|
}
|
|
2157
2157
|
return e;
|
|
2158
2158
|
}
|
|
2159
|
-
function
|
|
2159
|
+
function us(t, e) {
|
|
2160
2160
|
let n = /* @__PURE__ */ Object.create(null);
|
|
2161
2161
|
for (let r in t) {
|
|
2162
2162
|
let u = e && e[r];
|
|
@@ -2171,7 +2171,7 @@ function rs(t, e) {
|
|
|
2171
2171
|
}
|
|
2172
2172
|
return n;
|
|
2173
2173
|
}
|
|
2174
|
-
function
|
|
2174
|
+
function is(t, e, n, r) {
|
|
2175
2175
|
for (let u in e)
|
|
2176
2176
|
if (!(u in t))
|
|
2177
2177
|
throw new RangeError(`Unsupported attribute ${u} for ${n} of type ${u}`);
|
|
@@ -2180,19 +2180,19 @@ function us(t, e, n, r) {
|
|
|
2180
2180
|
i.validate && i.validate(e[u]);
|
|
2181
2181
|
}
|
|
2182
2182
|
}
|
|
2183
|
-
function
|
|
2183
|
+
function ss(t, e) {
|
|
2184
2184
|
let n = /* @__PURE__ */ Object.create(null);
|
|
2185
2185
|
if (e)
|
|
2186
2186
|
for (let r in e)
|
|
2187
2187
|
n[r] = new vl(t, r, e[r]);
|
|
2188
2188
|
return n;
|
|
2189
2189
|
}
|
|
2190
|
-
let gu = class
|
|
2190
|
+
let gu = class ls {
|
|
2191
2191
|
/**
|
|
2192
2192
|
@internal
|
|
2193
2193
|
*/
|
|
2194
2194
|
constructor(e, n, r) {
|
|
2195
|
-
this.name = e, this.schema = n, this.spec = r, this.markSet = null, this.groups = r.group ? r.group.split(" ") : [], this.attrs =
|
|
2195
|
+
this.name = e, this.schema = n, this.spec = r, this.markSet = null, this.groups = r.group ? r.group.split(" ") : [], this.attrs = ss(e, r.attrs), this.defaultAttrs = rs(this.attrs), this.contentMatch = null, this.inlineContent = null, this.isBlock = !(r.inline || e == "text"), this.isText = e == "text";
|
|
2196
2196
|
}
|
|
2197
2197
|
/**
|
|
2198
2198
|
True if this is an inline type.
|
|
@@ -2253,7 +2253,7 @@ let gu = class ss {
|
|
|
2253
2253
|
@internal
|
|
2254
2254
|
*/
|
|
2255
2255
|
computeAttrs(e) {
|
|
2256
|
-
return !e && this.defaultAttrs ? this.defaultAttrs :
|
|
2256
|
+
return !e && this.defaultAttrs ? this.defaultAttrs : us(this.attrs, e);
|
|
2257
2257
|
}
|
|
2258
2258
|
/**
|
|
2259
2259
|
Create a `Node` of this type. The given attributes are
|
|
@@ -2320,7 +2320,7 @@ let gu = class ss {
|
|
|
2320
2320
|
@internal
|
|
2321
2321
|
*/
|
|
2322
2322
|
checkAttrs(e) {
|
|
2323
|
-
|
|
2323
|
+
is(this.attrs, e, "node", this.name);
|
|
2324
2324
|
}
|
|
2325
2325
|
/**
|
|
2326
2326
|
Check whether the given mark type is allowed in this node.
|
|
@@ -2355,7 +2355,7 @@ let gu = class ss {
|
|
|
2355
2355
|
*/
|
|
2356
2356
|
static compile(e, n) {
|
|
2357
2357
|
let r = /* @__PURE__ */ Object.create(null);
|
|
2358
|
-
e.forEach((i, s) => r[i] = new
|
|
2358
|
+
e.forEach((i, s) => r[i] = new ls(i, n, s));
|
|
2359
2359
|
let u = n.spec.topNode || "doc";
|
|
2360
2360
|
if (!r[u])
|
|
2361
2361
|
throw new RangeError("Schema is missing its top node type ('" + u + "')");
|
|
@@ -2382,13 +2382,13 @@ class vl {
|
|
|
2382
2382
|
return !this.hasDefault;
|
|
2383
2383
|
}
|
|
2384
2384
|
}
|
|
2385
|
-
class
|
|
2385
|
+
class wn {
|
|
2386
2386
|
/**
|
|
2387
2387
|
@internal
|
|
2388
2388
|
*/
|
|
2389
2389
|
constructor(e, n, r, u) {
|
|
2390
|
-
this.name = e, this.rank = n, this.schema = r, this.spec = u, this.attrs =
|
|
2391
|
-
let i =
|
|
2390
|
+
this.name = e, this.rank = n, this.schema = r, this.spec = u, this.attrs = ss(e, u.attrs), this.excluded = null;
|
|
2391
|
+
let i = rs(this.attrs);
|
|
2392
2392
|
this.instance = i ? new M(this, i) : null;
|
|
2393
2393
|
}
|
|
2394
2394
|
/**
|
|
@@ -2397,14 +2397,14 @@ class Mn {
|
|
|
2397
2397
|
they have defaults, will be added.
|
|
2398
2398
|
*/
|
|
2399
2399
|
create(e = null) {
|
|
2400
|
-
return !e && this.instance ? this.instance : new M(this,
|
|
2400
|
+
return !e && this.instance ? this.instance : new M(this, us(this.attrs, e));
|
|
2401
2401
|
}
|
|
2402
2402
|
/**
|
|
2403
2403
|
@internal
|
|
2404
2404
|
*/
|
|
2405
2405
|
static compile(e, n) {
|
|
2406
2406
|
let r = /* @__PURE__ */ Object.create(null), u = 0;
|
|
2407
|
-
return e.forEach((i, s) => r[i] = new
|
|
2407
|
+
return e.forEach((i, s) => r[i] = new wn(i, u++, n, s)), r;
|
|
2408
2408
|
}
|
|
2409
2409
|
/**
|
|
2410
2410
|
When there is a mark of this type in the given set, a new set
|
|
@@ -2427,7 +2427,7 @@ class Mn {
|
|
|
2427
2427
|
@internal
|
|
2428
2428
|
*/
|
|
2429
2429
|
checkAttrs(e) {
|
|
2430
|
-
|
|
2430
|
+
is(this.attrs, e, "mark", this.name);
|
|
2431
2431
|
}
|
|
2432
2432
|
/**
|
|
2433
2433
|
Queries whether a given mark type is
|
|
@@ -2446,7 +2446,7 @@ class Lr {
|
|
|
2446
2446
|
let n = this.spec = {};
|
|
2447
2447
|
for (let u in e)
|
|
2448
2448
|
n[u] = e[u];
|
|
2449
|
-
n.nodes = L.from(e.nodes), n.marks = L.from(e.marks || {}), this.nodes = gu.compile(this.spec.nodes, this), this.marks =
|
|
2449
|
+
n.nodes = L.from(e.nodes), n.marks = L.from(e.marks || {}), this.nodes = gu.compile(this.spec.nodes, this), this.marks = wn.compile(this.spec.marks, this);
|
|
2450
2450
|
let r = /* @__PURE__ */ Object.create(null);
|
|
2451
2451
|
for (let u in this.nodes) {
|
|
2452
2452
|
if (u in this.marks)
|
|
@@ -2488,7 +2488,7 @@ class Lr {
|
|
|
2488
2488
|
*/
|
|
2489
2489
|
text(e, n) {
|
|
2490
2490
|
let r = this.nodes.text;
|
|
2491
|
-
return new
|
|
2491
|
+
return new bn(r, r.defaultAttrs, e, M.setFrom(n));
|
|
2492
2492
|
}
|
|
2493
2493
|
/**
|
|
2494
2494
|
Create a mark with the given type and attributes.
|
|
@@ -2643,7 +2643,7 @@ class Bt {
|
|
|
2643
2643
|
return e.cached.domParser || (e.cached.domParser = new Bt(e, Bt.schemaRules(e)));
|
|
2644
2644
|
}
|
|
2645
2645
|
}
|
|
2646
|
-
const
|
|
2646
|
+
const as = {
|
|
2647
2647
|
address: !0,
|
|
2648
2648
|
article: !0,
|
|
2649
2649
|
aside: !0,
|
|
@@ -2683,7 +2683,7 @@ const ls = {
|
|
|
2683
2683
|
script: !0,
|
|
2684
2684
|
style: !0,
|
|
2685
2685
|
title: !0
|
|
2686
|
-
},
|
|
2686
|
+
}, cs = { ol: !0, ul: !0 }, vt = 1, Cr = 2, Ot = 4;
|
|
2687
2687
|
function xu(t, e, n) {
|
|
2688
2688
|
return e != null ? (e ? vt : 0) | (e === "full" ? Cr : 0) : t && t.whitespace == "pre" ? vt | Cr : n & ~Ot;
|
|
2689
2689
|
}
|
|
@@ -2717,7 +2717,7 @@ class nn {
|
|
|
2717
2717
|
return !e && this.match && (n = n.append(this.match.fillBefore(y.empty, !0))), this.type ? this.type.create(this.attrs, n, this.marks) : n;
|
|
2718
2718
|
}
|
|
2719
2719
|
inlineContext(e) {
|
|
2720
|
-
return this.type ? this.type.inlineContent : this.content.length ? this.content[0].isInline : e.parentNode && !
|
|
2720
|
+
return this.type ? this.type.inlineContent : this.content.length ? this.content[0].isInline : e.parentNode && !as.hasOwnProperty(e.parentNode.nodeName.toLowerCase());
|
|
2721
2721
|
}
|
|
2722
2722
|
}
|
|
2723
2723
|
class ku {
|
|
@@ -2755,14 +2755,14 @@ class ku {
|
|
|
2755
2755
|
let u = this.localPreserveWS, i = this.top;
|
|
2756
2756
|
(e.tagName == "PRE" || /pre/.test(e.style && e.style.whiteSpace)) && (this.localPreserveWS = !0);
|
|
2757
2757
|
let s = e.nodeName.toLowerCase(), o;
|
|
2758
|
-
|
|
2758
|
+
cs.hasOwnProperty(s) && this.parser.normalizeLists && ql(e);
|
|
2759
2759
|
let l = this.options.ruleFromNode && this.options.ruleFromNode(e) || (o = this.parser.matchTag(e, this, r));
|
|
2760
2760
|
e: if (l ? l.ignore : Ll.hasOwnProperty(s))
|
|
2761
2761
|
this.findInside(e), this.ignoreFallback(e, n);
|
|
2762
2762
|
else if (!l || l.skip || l.closeParent) {
|
|
2763
2763
|
l && l.closeParent ? this.open = Math.max(0, this.open - 1) : l && l.skip.nodeType && (e = l.skip);
|
|
2764
2764
|
let a, c = this.needsBlock;
|
|
2765
|
-
if (
|
|
2765
|
+
if (as.hasOwnProperty(s))
|
|
2766
2766
|
i.content.length && i.content[0].isInline && this.open && (this.open--, i = this.top), a = !0, i.type || (this.needsBlock = !0);
|
|
2767
2767
|
else if (!e.firstChild) {
|
|
2768
2768
|
this.leafFallback(e, n);
|
|
@@ -2997,7 +2997,7 @@ class ku {
|
|
|
2997
2997
|
function ql(t) {
|
|
2998
2998
|
for (let e = t.firstChild, n = null; e; e = e.nextSibling) {
|
|
2999
2999
|
let r = e.nodeType == 1 ? e.nodeName.toLowerCase() : null;
|
|
3000
|
-
r &&
|
|
3000
|
+
r && cs.hasOwnProperty(r) && n ? (n.appendChild(e), e = n) : r == "li" ? n = e : r && (n = null);
|
|
3001
3001
|
}
|
|
3002
3002
|
}
|
|
3003
3003
|
function Vl(t, e) {
|
|
@@ -3047,7 +3047,7 @@ class kt {
|
|
|
3047
3047
|
nodes.
|
|
3048
3048
|
*/
|
|
3049
3049
|
serializeFragment(e, n = {}, r) {
|
|
3050
|
-
r || (r =
|
|
3050
|
+
r || (r = Hn(n).createDocumentFragment());
|
|
3051
3051
|
let u = r, i = [];
|
|
3052
3052
|
return e.forEach((s) => {
|
|
3053
3053
|
if (i.length || s.marks.length) {
|
|
@@ -3076,7 +3076,7 @@ class kt {
|
|
|
3076
3076
|
@internal
|
|
3077
3077
|
*/
|
|
3078
3078
|
serializeNodeInner(e, n) {
|
|
3079
|
-
let { dom: r, contentDOM: u } =
|
|
3079
|
+
let { dom: r, contentDOM: u } = an(Hn(n), this.nodes[e.type.name](e), null, e.attrs);
|
|
3080
3080
|
if (u) {
|
|
3081
3081
|
if (e.isLeaf)
|
|
3082
3082
|
throw new RangeError("Content hole not allowed in a leaf node spec");
|
|
@@ -3104,10 +3104,10 @@ class kt {
|
|
|
3104
3104
|
*/
|
|
3105
3105
|
serializeMark(e, n, r = {}) {
|
|
3106
3106
|
let u = this.marks[e.type.name];
|
|
3107
|
-
return u &&
|
|
3107
|
+
return u && an(Hn(r), u(e, n), null, e.attrs);
|
|
3108
3108
|
}
|
|
3109
3109
|
static renderSpec(e, n, r = null, u) {
|
|
3110
|
-
return
|
|
3110
|
+
return an(e, n, r, u);
|
|
3111
3111
|
}
|
|
3112
3112
|
/**
|
|
3113
3113
|
Build a serializer using the [`toDOM`](https://prosemirror.net/docs/ref/#model.NodeSpec.toDOM)
|
|
@@ -3139,7 +3139,7 @@ function Du(t) {
|
|
|
3139
3139
|
}
|
|
3140
3140
|
return e;
|
|
3141
3141
|
}
|
|
3142
|
-
function
|
|
3142
|
+
function Hn(t) {
|
|
3143
3143
|
return t.document || window.document;
|
|
3144
3144
|
}
|
|
3145
3145
|
const _u = /* @__PURE__ */ new WeakMap();
|
|
@@ -3163,7 +3163,7 @@ function Wl(t) {
|
|
|
3163
3163
|
}
|
|
3164
3164
|
return n(t), e;
|
|
3165
3165
|
}
|
|
3166
|
-
function
|
|
3166
|
+
function an(t, e, n, r) {
|
|
3167
3167
|
if (typeof e == "string")
|
|
3168
3168
|
return { dom: t.createTextNode(e) };
|
|
3169
3169
|
if (e.nodeType != null)
|
|
@@ -3193,7 +3193,7 @@ function ln(t, e, n, r) {
|
|
|
3193
3193
|
throw new RangeError("Content hole must be the only child of its parent node");
|
|
3194
3194
|
return { dom: l, contentDOM: l };
|
|
3195
3195
|
} else {
|
|
3196
|
-
let { dom: h, contentDOM: d } =
|
|
3196
|
+
let { dom: h, contentDOM: d } = an(t, p, n, r);
|
|
3197
3197
|
if (l.appendChild(h), d) {
|
|
3198
3198
|
if (o)
|
|
3199
3199
|
throw new RangeError("Multiple content holes");
|
|
@@ -3203,17 +3203,17 @@ function ln(t, e, n, r) {
|
|
|
3203
3203
|
}
|
|
3204
3204
|
return { dom: l, contentDOM: o };
|
|
3205
3205
|
}
|
|
3206
|
-
const
|
|
3206
|
+
const fs = 65535, ds = Math.pow(2, 16);
|
|
3207
3207
|
function Hl(t, e) {
|
|
3208
|
-
return t + e *
|
|
3208
|
+
return t + e * ds;
|
|
3209
3209
|
}
|
|
3210
3210
|
function Eu(t) {
|
|
3211
|
-
return t &
|
|
3211
|
+
return t & fs;
|
|
3212
3212
|
}
|
|
3213
3213
|
function Jl(t) {
|
|
3214
|
-
return (t - (t &
|
|
3214
|
+
return (t - (t & fs)) / ds;
|
|
3215
3215
|
}
|
|
3216
|
-
const
|
|
3216
|
+
const hs = 1, ps = 2, cn = 4, ms = 8;
|
|
3217
3217
|
class Dr {
|
|
3218
3218
|
/**
|
|
3219
3219
|
@internal
|
|
@@ -3227,19 +3227,19 @@ class Dr {
|
|
|
3227
3227
|
argument from the document.
|
|
3228
3228
|
*/
|
|
3229
3229
|
get deleted() {
|
|
3230
|
-
return (this.delInfo &
|
|
3230
|
+
return (this.delInfo & ms) > 0;
|
|
3231
3231
|
}
|
|
3232
3232
|
/**
|
|
3233
3233
|
Tells you whether the token before the mapped position was deleted.
|
|
3234
3234
|
*/
|
|
3235
3235
|
get deletedBefore() {
|
|
3236
|
-
return (this.delInfo & (
|
|
3236
|
+
return (this.delInfo & (hs | cn)) > 0;
|
|
3237
3237
|
}
|
|
3238
3238
|
/**
|
|
3239
3239
|
True when the token after the mapped position was deleted.
|
|
3240
3240
|
*/
|
|
3241
3241
|
get deletedAfter() {
|
|
3242
|
-
return (this.delInfo & (
|
|
3242
|
+
return (this.delInfo & (ps | cn)) > 0;
|
|
3243
3243
|
}
|
|
3244
3244
|
/**
|
|
3245
3245
|
Tells whether any of the steps mapped through deletes across the
|
|
@@ -3247,7 +3247,7 @@ class Dr {
|
|
|
3247
3247
|
position).
|
|
3248
3248
|
*/
|
|
3249
3249
|
get deletedAcross() {
|
|
3250
|
-
return (this.delInfo &
|
|
3250
|
+
return (this.delInfo & cn) > 0;
|
|
3251
3251
|
}
|
|
3252
3252
|
}
|
|
3253
3253
|
class X {
|
|
@@ -3290,8 +3290,8 @@ class X {
|
|
|
3290
3290
|
let p = a ? e == l ? -1 : e == f ? 1 : n : n, h = l + u + (p < 0 ? 0 : c);
|
|
3291
3291
|
if (r)
|
|
3292
3292
|
return h;
|
|
3293
|
-
let d = e == (n < 0 ? l : f) ? null : Hl(o / 3, e - l), m = e == l ?
|
|
3294
|
-
return (n < 0 ? e != l : e != f) && (m |=
|
|
3293
|
+
let d = e == (n < 0 ? l : f) ? null : Hl(o / 3, e - l), m = e == l ? ps : e == f ? hs : cn;
|
|
3294
|
+
return (n < 0 ? e != l : e != f) && (m |= ms), new Dr(h, m, d);
|
|
3295
3295
|
}
|
|
3296
3296
|
u += c - a;
|
|
3297
3297
|
}
|
|
@@ -3454,7 +3454,7 @@ class zt {
|
|
|
3454
3454
|
return r ? e : new Dr(e, u, null);
|
|
3455
3455
|
}
|
|
3456
3456
|
}
|
|
3457
|
-
const
|
|
3457
|
+
const Jn = /* @__PURE__ */ Object.create(null);
|
|
3458
3458
|
class J {
|
|
3459
3459
|
/**
|
|
3460
3460
|
Get the step map that represents the changes made by this step,
|
|
@@ -3479,7 +3479,7 @@ class J {
|
|
|
3479
3479
|
static fromJSON(e, n) {
|
|
3480
3480
|
if (!n || !n.stepType)
|
|
3481
3481
|
throw new RangeError("Invalid input for Step.fromJSON");
|
|
3482
|
-
let r =
|
|
3482
|
+
let r = Jn[n.stepType];
|
|
3483
3483
|
if (!r)
|
|
3484
3484
|
throw new RangeError(`No step type ${n.stepType} defined`);
|
|
3485
3485
|
return r.fromJSON(e, n);
|
|
@@ -3491,9 +3491,9 @@ class J {
|
|
|
3491
3491
|
that's unlikely to clash with steps from other modules.
|
|
3492
3492
|
*/
|
|
3493
3493
|
static jsonID(e, n) {
|
|
3494
|
-
if (e in
|
|
3494
|
+
if (e in Jn)
|
|
3495
3495
|
throw new RangeError("Duplicate use of step JSON ID " + e);
|
|
3496
|
-
return
|
|
3496
|
+
return Jn[e] = n, n.prototype.jsonID = e, n;
|
|
3497
3497
|
}
|
|
3498
3498
|
}
|
|
3499
3499
|
class R {
|
|
@@ -3524,7 +3524,7 @@ class R {
|
|
|
3524
3524
|
try {
|
|
3525
3525
|
return R.ok(e.replace(n, r, u));
|
|
3526
3526
|
} catch (i) {
|
|
3527
|
-
if (i instanceof
|
|
3527
|
+
if (i instanceof mn)
|
|
3528
3528
|
return R.fail(i.message);
|
|
3529
3529
|
throw i;
|
|
3530
3530
|
}
|
|
@@ -3840,7 +3840,7 @@ function Ul(t, e, n, r) {
|
|
|
3840
3840
|
return;
|
|
3841
3841
|
i++;
|
|
3842
3842
|
let l = null;
|
|
3843
|
-
if (r instanceof
|
|
3843
|
+
if (r instanceof wn) {
|
|
3844
3844
|
let a = s.marks, c;
|
|
3845
3845
|
for (; c = r.isInSet(a); )
|
|
3846
3846
|
(l || (l = [])).push(c), a = c.removeFromSet(a);
|
|
@@ -3886,7 +3886,7 @@ function Vr(t, e, n, r = n.contentMatch, u = !0) {
|
|
|
3886
3886
|
function Kl(t, e, n) {
|
|
3887
3887
|
return (e == 0 || t.canReplace(e, t.childCount)) && (n == t.childCount || t.canReplace(0, n));
|
|
3888
3888
|
}
|
|
3889
|
-
function
|
|
3889
|
+
function Tn(t) {
|
|
3890
3890
|
let n = t.parent.content.cutByIndex(t.startIndex, t.endIndex);
|
|
3891
3891
|
for (let r = t.depth; ; --r) {
|
|
3892
3892
|
let u = t.$from.node(r), i = t.$from.index(r), s = t.$to.indexAfter(r);
|
|
@@ -3954,13 +3954,13 @@ function ea(t, e, n, r, u) {
|
|
|
3954
3954
|
let h = r.whitespace == "pre", d = !!r.contentMatch.matchType(r.schema.linebreakReplacement);
|
|
3955
3955
|
h && !d ? a = !1 : !h && d && (a = !0);
|
|
3956
3956
|
}
|
|
3957
|
-
a === !1 &&
|
|
3957
|
+
a === !1 && bs(t, s, o, i), Vr(t, t.mapping.slice(i).map(o, 1), r, void 0, a === null);
|
|
3958
3958
|
let c = t.mapping.slice(i), f = c.map(o, 1), p = c.map(o + s.nodeSize, 1);
|
|
3959
|
-
return t.step(new Q(f, p, f + 1, p - 1, new D(y.from(r.create(l, null, s.marks)), 0, 0), 1, !0)), a === !0 &&
|
|
3959
|
+
return t.step(new Q(f, p, f + 1, p - 1, new D(y.from(r.create(l, null, s.marks)), 0, 0), 1, !0)), a === !0 && gs(t, s, o, i), !1;
|
|
3960
3960
|
}
|
|
3961
3961
|
});
|
|
3962
3962
|
}
|
|
3963
|
-
function
|
|
3963
|
+
function gs(t, e, n, r) {
|
|
3964
3964
|
e.forEach((u, i) => {
|
|
3965
3965
|
if (u.isText) {
|
|
3966
3966
|
let s, o = /\r?\n|\r/g;
|
|
@@ -3971,7 +3971,7 @@ function ms(t, e, n, r) {
|
|
|
3971
3971
|
}
|
|
3972
3972
|
});
|
|
3973
3973
|
}
|
|
3974
|
-
function
|
|
3974
|
+
function bs(t, e, n, r) {
|
|
3975
3975
|
e.forEach((u, i) => {
|
|
3976
3976
|
if (u.type == u.type.schema.linebreakReplacement) {
|
|
3977
3977
|
let s = t.mapping.slice(r).map(n + 1 + i);
|
|
@@ -3996,7 +3996,7 @@ function na(t, e, n, r, u) {
|
|
|
3996
3996
|
throw new RangeError("Invalid content for node type " + n.name);
|
|
3997
3997
|
t.step(new Q(e, e + i.nodeSize, e + 1, e + i.nodeSize - 1, new D(y.from(s), 0, 0), 1, !0));
|
|
3998
3998
|
}
|
|
3999
|
-
function
|
|
3999
|
+
function fn(t, e, n = 1, r) {
|
|
4000
4000
|
let u = t.resolve(e), i = u.depth - n, s = r && r[r.length - 1] || u.parent;
|
|
4001
4001
|
if (i < 0 || u.parent.type.spec.isolating || !u.parent.canReplace(u.index(), u.parent.childCount) || !s.type.validContent(u.parent.content.cutByIndex(u.index(), u.parent.childCount)))
|
|
4002
4002
|
return !1;
|
|
@@ -4022,7 +4022,7 @@ function ra(t, e, n = 1, r) {
|
|
|
4022
4022
|
}
|
|
4023
4023
|
t.step(new W(e, e, new D(i.append(s), n, n), !0));
|
|
4024
4024
|
}
|
|
4025
|
-
function
|
|
4025
|
+
function xs(t, e) {
|
|
4026
4026
|
let n = t.resolve(e), r = n.index();
|
|
4027
4027
|
return ia(n.nodeBefore, n.nodeAfter) && n.parent.canReplace(r, r + 1);
|
|
4028
4028
|
}
|
|
@@ -4048,13 +4048,13 @@ function sa(t, e, n) {
|
|
|
4048
4048
|
let o = t.steps.length;
|
|
4049
4049
|
if (r === !1) {
|
|
4050
4050
|
let c = t.doc.resolve(e + n);
|
|
4051
|
-
|
|
4051
|
+
bs(t, c.node(), c.before(), o);
|
|
4052
4052
|
}
|
|
4053
4053
|
s.inlineContent && Vr(t, e + n - 1, s, i.node().contentMatchAt(i.index()), r == null);
|
|
4054
4054
|
let l = t.mapping.slice(o), a = l.map(e - n);
|
|
4055
4055
|
if (t.step(new W(a, l.map(e + n, -1), D.empty, !0)), r === !0) {
|
|
4056
4056
|
let c = t.doc.resolve(a);
|
|
4057
|
-
|
|
4057
|
+
gs(t, c.node(), c.before(), t.steps.length);
|
|
4058
4058
|
}
|
|
4059
4059
|
return t;
|
|
4060
4060
|
}
|
|
@@ -4105,9 +4105,9 @@ function $r(t, e, n = e, r = D.empty) {
|
|
|
4105
4105
|
if (e == n && !r.size)
|
|
4106
4106
|
return null;
|
|
4107
4107
|
let u = t.resolve(e), i = t.resolve(n);
|
|
4108
|
-
return
|
|
4108
|
+
return ks(u, i, r) ? new W(e, n, r) : new aa(u, i, r).fit();
|
|
4109
4109
|
}
|
|
4110
|
-
function
|
|
4110
|
+
function ks(t, e, n) {
|
|
4111
4111
|
return !n.openStart && !n.openEnd && t.start() == e.start() && t.parent.canReplace(t.index(), e.index(), n.content);
|
|
4112
4112
|
}
|
|
4113
4113
|
class aa {
|
|
@@ -4156,7 +4156,7 @@ class aa {
|
|
|
4156
4156
|
for (let n = 1; n <= 2; n++)
|
|
4157
4157
|
for (let r = n == 1 ? e : this.unplaced.openStart; r >= 0; r--) {
|
|
4158
4158
|
let u, i = null;
|
|
4159
|
-
r ? (i =
|
|
4159
|
+
r ? (i = jn(this.unplaced.content, r - 1).firstChild, u = i.content) : u = this.unplaced.content;
|
|
4160
4160
|
let s = u.firstChild;
|
|
4161
4161
|
for (let o = this.depth; o >= 0; o--) {
|
|
4162
4162
|
let { type: l, match: a } = this.frontier[o], c, f = null;
|
|
@@ -4170,11 +4170,11 @@ class aa {
|
|
|
4170
4170
|
}
|
|
4171
4171
|
}
|
|
4172
4172
|
openMore() {
|
|
4173
|
-
let { content: e, openStart: n, openEnd: r } = this.unplaced, u =
|
|
4173
|
+
let { content: e, openStart: n, openEnd: r } = this.unplaced, u = jn(e, n);
|
|
4174
4174
|
return !u.childCount || u.firstChild.isLeaf ? !1 : (this.unplaced = new D(e, n + 1, Math.max(r, u.size + n >= e.size - r ? n + 1 : 0)), !0);
|
|
4175
4175
|
}
|
|
4176
4176
|
dropNode() {
|
|
4177
|
-
let { content: e, openStart: n, openEnd: r } = this.unplaced, u =
|
|
4177
|
+
let { content: e, openStart: n, openEnd: r } = this.unplaced, u = jn(e, n);
|
|
4178
4178
|
if (u.childCount <= 1 && n > 0) {
|
|
4179
4179
|
let i = e.size - n <= n + u.size;
|
|
4180
4180
|
this.unplaced = new D(At(e, n - 1, 1), n - 1, i ? n - 1 : r);
|
|
@@ -4201,7 +4201,7 @@ class aa {
|
|
|
4201
4201
|
let m = o.child(a), g = f.matchType(m.type);
|
|
4202
4202
|
if (!g)
|
|
4203
4203
|
break;
|
|
4204
|
-
a++, (a > 1 || l == 0 || m.content.size) && (f = g, c.push(
|
|
4204
|
+
a++, (a > 1 || l == 0 || m.content.size) && (f = g, c.push(ys(m.mark(p.allowedMarks(m.marks)), a == 1 ? l : 0, a == o.childCount ? h : -1)));
|
|
4205
4205
|
}
|
|
4206
4206
|
let d = a == o.childCount;
|
|
4207
4207
|
d || (h = -1), this.placed = Mt(this.placed, n, y.from(c)), this.frontier[n].match = f, d && h < 0 && r && r.type == this.frontier[this.depth].type && this.frontier.length > 1 && this.closeFrontierNode();
|
|
@@ -4215,7 +4215,7 @@ class aa {
|
|
|
4215
4215
|
if (!this.$to.parent.isTextblock)
|
|
4216
4216
|
return -1;
|
|
4217
4217
|
let e = this.frontier[this.depth], n;
|
|
4218
|
-
if (!e.type.isTextblock || !
|
|
4218
|
+
if (!e.type.isTextblock || !Un(this.$to, this.$to.depth, e.type, e.match, !1) || this.$to.depth == this.depth && (n = this.findCloseLevel(this.$to)) && n.depth == this.depth)
|
|
4219
4219
|
return -1;
|
|
4220
4220
|
let { depth: r } = this.$to, u = this.$to.after(r);
|
|
4221
4221
|
for (; r > 1 && u == this.$to.end(--r); )
|
|
@@ -4224,10 +4224,10 @@ class aa {
|
|
|
4224
4224
|
}
|
|
4225
4225
|
findCloseLevel(e) {
|
|
4226
4226
|
e: for (let n = Math.min(this.depth, e.depth); n >= 0; n--) {
|
|
4227
|
-
let { match: r, type: u } = this.frontier[n], i = n < e.depth && e.end(n + 1) == e.pos + (e.depth - (n + 1)), s =
|
|
4227
|
+
let { match: r, type: u } = this.frontier[n], i = n < e.depth && e.end(n + 1) == e.pos + (e.depth - (n + 1)), s = Un(e, n, u, r, i);
|
|
4228
4228
|
if (s) {
|
|
4229
4229
|
for (let o = n - 1; o >= 0; o--) {
|
|
4230
|
-
let { match: l, type: a } = this.frontier[o], c =
|
|
4230
|
+
let { match: l, type: a } = this.frontier[o], c = Un(e, o, a, l, !0);
|
|
4231
4231
|
if (!c || c.childCount)
|
|
4232
4232
|
continue e;
|
|
4233
4233
|
}
|
|
@@ -4263,18 +4263,18 @@ function At(t, e, n) {
|
|
|
4263
4263
|
function Mt(t, e, n) {
|
|
4264
4264
|
return e == 0 ? t.append(n) : t.replaceChild(t.childCount - 1, t.lastChild.copy(Mt(t.lastChild.content, e - 1, n)));
|
|
4265
4265
|
}
|
|
4266
|
-
function
|
|
4266
|
+
function jn(t, e) {
|
|
4267
4267
|
for (let n = 0; n < e; n++)
|
|
4268
4268
|
t = t.firstChild.content;
|
|
4269
4269
|
return t;
|
|
4270
4270
|
}
|
|
4271
|
-
function
|
|
4271
|
+
function ys(t, e, n) {
|
|
4272
4272
|
if (e <= 0)
|
|
4273
4273
|
return t;
|
|
4274
4274
|
let r = t.content;
|
|
4275
|
-
return e > 1 && (r = r.replaceChild(0,
|
|
4275
|
+
return e > 1 && (r = r.replaceChild(0, ys(r.firstChild, e - 1, r.childCount == 1 ? n - 1 : 0))), e > 0 && (r = t.type.contentMatch.fillBefore(r).append(r), n <= 0 && (r = r.append(t.type.contentMatch.matchFragment(r).fillBefore(y.empty, !0)))), t.copy(r);
|
|
4276
4276
|
}
|
|
4277
|
-
function
|
|
4277
|
+
function Un(t, e, n, r, u) {
|
|
4278
4278
|
let i = t.node(e), s = u ? t.indexAfter(e) : t.index(e);
|
|
4279
4279
|
if (s == i.childCount && !n.compatibleContent(i.type))
|
|
4280
4280
|
return null;
|
|
@@ -4294,9 +4294,9 @@ function da(t, e, n, r) {
|
|
|
4294
4294
|
if (!r.size)
|
|
4295
4295
|
return t.deleteRange(e, n);
|
|
4296
4296
|
let u = t.doc.resolve(e), i = t.doc.resolve(n);
|
|
4297
|
-
if (
|
|
4297
|
+
if (ks(u, i, r))
|
|
4298
4298
|
return t.step(new W(e, n, r));
|
|
4299
|
-
let s =
|
|
4299
|
+
let s = Ds(u, t.doc.resolve(n));
|
|
4300
4300
|
s[s.length - 1] == 0 && s.pop();
|
|
4301
4301
|
let o = -(u.depth + 1);
|
|
4302
4302
|
s.unshift(o);
|
|
@@ -4328,7 +4328,7 @@ function da(t, e, n, r) {
|
|
|
4328
4328
|
g < 0 && (b = !1, g = -g);
|
|
4329
4329
|
let x = u.node(g - 1), k = u.index(g - 1);
|
|
4330
4330
|
if (x.canReplaceWith(k, k, d.type, d.marks))
|
|
4331
|
-
return t.replace(u.before(g), b ? i.after(g) : n, new D(
|
|
4331
|
+
return t.replace(u.before(g), b ? i.after(g) : n, new D(Cs(r.content, 0, r.openStart, h), h, r.openEnd));
|
|
4332
4332
|
}
|
|
4333
4333
|
}
|
|
4334
4334
|
let f = t.steps.length;
|
|
@@ -4337,10 +4337,10 @@ function da(t, e, n, r) {
|
|
|
4337
4337
|
h < 0 || (e = u.before(h), n = i.after(h));
|
|
4338
4338
|
}
|
|
4339
4339
|
}
|
|
4340
|
-
function
|
|
4340
|
+
function Cs(t, e, n, r, u) {
|
|
4341
4341
|
if (e < n) {
|
|
4342
4342
|
let i = t.firstChild;
|
|
4343
|
-
t = t.replaceChild(0, i.copy(
|
|
4343
|
+
t = t.replaceChild(0, i.copy(Cs(i.content, e + 1, n, r, i)));
|
|
4344
4344
|
}
|
|
4345
4345
|
if (e > r) {
|
|
4346
4346
|
let i = u.contentMatchAt(0), s = i.fillBefore(t).append(t);
|
|
@@ -4356,7 +4356,7 @@ function ha(t, e, n, r) {
|
|
|
4356
4356
|
t.replaceRange(e, n, new D(y.from(r), 0, 0));
|
|
4357
4357
|
}
|
|
4358
4358
|
function pa(t, e, n) {
|
|
4359
|
-
let r = t.doc.resolve(e), u = t.doc.resolve(n), i =
|
|
4359
|
+
let r = t.doc.resolve(e), u = t.doc.resolve(n), i = Ds(r, u);
|
|
4360
4360
|
for (let s = 0; s < i.length; s++) {
|
|
4361
4361
|
let o = i[s], l = s == i.length - 1;
|
|
4362
4362
|
if (l && o == 0 || r.node(o).type.contentMatch.validEnd)
|
|
@@ -4369,7 +4369,7 @@ function pa(t, e, n) {
|
|
|
4369
4369
|
return t.delete(r.before(s), n);
|
|
4370
4370
|
t.delete(e, n);
|
|
4371
4371
|
}
|
|
4372
|
-
function
|
|
4372
|
+
function Ds(t, e) {
|
|
4373
4373
|
let n = [], r = Math.min(t.depth, e.depth);
|
|
4374
4374
|
for (let u = r; u >= 0; u--) {
|
|
4375
4375
|
let i = t.start(u);
|
|
@@ -4685,7 +4685,7 @@ class ma {
|
|
|
4685
4685
|
return Vr(this, e, n, r), this;
|
|
4686
4686
|
}
|
|
4687
4687
|
}
|
|
4688
|
-
const
|
|
4688
|
+
const Kn = /* @__PURE__ */ Object.create(null);
|
|
4689
4689
|
class O {
|
|
4690
4690
|
/**
|
|
4691
4691
|
Initialize a selection with the head and anchor and ranges. If no
|
|
@@ -4821,7 +4821,7 @@ class O {
|
|
|
4821
4821
|
static fromJSON(e, n) {
|
|
4822
4822
|
if (!n || !n.type)
|
|
4823
4823
|
throw new RangeError("Invalid input for Selection.fromJSON");
|
|
4824
|
-
let r =
|
|
4824
|
+
let r = Kn[n.type];
|
|
4825
4825
|
if (!r)
|
|
4826
4826
|
throw new RangeError(`No selection type ${n.type} defined`);
|
|
4827
4827
|
return r.fromJSON(e, n);
|
|
@@ -4833,9 +4833,9 @@ class O {
|
|
|
4833
4833
|
clash with classes from other modules.
|
|
4834
4834
|
*/
|
|
4835
4835
|
static jsonID(e, n) {
|
|
4836
|
-
if (e in
|
|
4836
|
+
if (e in Kn)
|
|
4837
4837
|
throw new RangeError("Duplicate use of selection JSON ID " + e);
|
|
4838
|
-
return
|
|
4838
|
+
return Kn[e] = n, n.prototype.jsonID = e, n;
|
|
4839
4839
|
}
|
|
4840
4840
|
/**
|
|
4841
4841
|
Get a [bookmark](https://prosemirror.net/docs/ref/#state.SelectionBookmark) for this selection,
|
|
@@ -4894,7 +4894,7 @@ class F extends O {
|
|
|
4894
4894
|
return e instanceof F && e.anchor == this.anchor && e.head == this.head;
|
|
4895
4895
|
}
|
|
4896
4896
|
getBookmark() {
|
|
4897
|
-
return new
|
|
4897
|
+
return new On(this.anchor, this.head);
|
|
4898
4898
|
}
|
|
4899
4899
|
toJSON() {
|
|
4900
4900
|
return { type: "text", anchor: this.anchor, head: this.head };
|
|
@@ -4935,12 +4935,12 @@ class F extends O {
|
|
|
4935
4935
|
}
|
|
4936
4936
|
}
|
|
4937
4937
|
O.jsonID("text", F);
|
|
4938
|
-
class
|
|
4938
|
+
class On {
|
|
4939
4939
|
constructor(e, n) {
|
|
4940
4940
|
this.anchor = e, this.head = n;
|
|
4941
4941
|
}
|
|
4942
4942
|
map(e) {
|
|
4943
|
-
return new
|
|
4943
|
+
return new On(e.map(this.anchor), e.map(this.head));
|
|
4944
4944
|
}
|
|
4945
4945
|
resolve(e) {
|
|
4946
4946
|
return F.between(e.resolve(this.anchor), e.resolve(this.head));
|
|
@@ -5001,7 +5001,7 @@ class Wr {
|
|
|
5001
5001
|
}
|
|
5002
5002
|
map(e) {
|
|
5003
5003
|
let { deleted: n, pos: r } = e.mapResult(this.anchor);
|
|
5004
|
-
return n ? new
|
|
5004
|
+
return n ? new On(r, r) : new Wr(r);
|
|
5005
5005
|
}
|
|
5006
5006
|
resolve(e) {
|
|
5007
5007
|
let n = e.resolve(this.anchor), r = n.nodeAfter;
|
|
@@ -5274,7 +5274,7 @@ const xa = [
|
|
|
5274
5274
|
}
|
|
5275
5275
|
})
|
|
5276
5276
|
];
|
|
5277
|
-
class
|
|
5277
|
+
class Zn {
|
|
5278
5278
|
constructor(e, n) {
|
|
5279
5279
|
this.schema = e, this.plugins = [], this.pluginsByKey = /* @__PURE__ */ Object.create(null), this.fields = xa.slice(), n && n.forEach((r) => {
|
|
5280
5280
|
if (this.pluginsByKey[r.key])
|
|
@@ -5375,7 +5375,7 @@ class Ue {
|
|
|
5375
5375
|
Create a new state.
|
|
5376
5376
|
*/
|
|
5377
5377
|
static create(e) {
|
|
5378
|
-
let n = new
|
|
5378
|
+
let n = new Zn(e.doc ? e.doc.type.schema : e.schema, e.plugins), r = new Ue(n);
|
|
5379
5379
|
for (let u = 0; u < n.fields.length; u++)
|
|
5380
5380
|
r[n.fields[u].name] = n.fields[u].init(e, r);
|
|
5381
5381
|
return r;
|
|
@@ -5389,7 +5389,7 @@ class Ue {
|
|
|
5389
5389
|
configuration object..
|
|
5390
5390
|
*/
|
|
5391
5391
|
reconfigure(e) {
|
|
5392
|
-
let n = new
|
|
5392
|
+
let n = new Zn(this.schema, e.plugins), r = n.fields, u = new Ue(n);
|
|
5393
5393
|
for (let i = 0; i < r.length; i++) {
|
|
5394
5394
|
let s = r[i].name;
|
|
5395
5395
|
u[s] = this.hasOwnProperty(s) ? this[s] : r[i].init(e, u);
|
|
@@ -5426,7 +5426,7 @@ class Ue {
|
|
|
5426
5426
|
throw new RangeError("Invalid input for EditorState.fromJSON");
|
|
5427
5427
|
if (!e.schema)
|
|
5428
5428
|
throw new RangeError("Required config field 'schema' missing");
|
|
5429
|
-
let u = new
|
|
5429
|
+
let u = new Zn(e.schema, e.plugins), i = new Ue(u);
|
|
5430
5430
|
return u.fields.forEach((s) => {
|
|
5431
5431
|
if (s.name == "doc")
|
|
5432
5432
|
i.doc = ke.fromJSON(e.schema, n.doc);
|
|
@@ -5448,10 +5448,10 @@ class Ue {
|
|
|
5448
5448
|
}), i;
|
|
5449
5449
|
}
|
|
5450
5450
|
}
|
|
5451
|
-
function
|
|
5451
|
+
function _s(t, e, n) {
|
|
5452
5452
|
for (let r in t) {
|
|
5453
5453
|
let u = t[r];
|
|
5454
|
-
u instanceof Function ? u = u.bind(e) : r == "handleDOMEvents" && (u =
|
|
5454
|
+
u instanceof Function ? u = u.bind(e) : r == "handleDOMEvents" && (u = _s(u, e, {})), n[r] = u;
|
|
5455
5455
|
}
|
|
5456
5456
|
return n;
|
|
5457
5457
|
}
|
|
@@ -5460,7 +5460,7 @@ class Hr {
|
|
|
5460
5460
|
Create a plugin.
|
|
5461
5461
|
*/
|
|
5462
5462
|
constructor(e) {
|
|
5463
|
-
this.spec = e, this.props = {}, e.props &&
|
|
5463
|
+
this.spec = e, this.props = {}, e.props && _s(e.props, this, this.props), this.key = e.key ? e.key.key : Es("plugin");
|
|
5464
5464
|
}
|
|
5465
5465
|
/**
|
|
5466
5466
|
Extract the plugin's state field from an editor state.
|
|
@@ -5469,16 +5469,16 @@ class Hr {
|
|
|
5469
5469
|
return e[this.key];
|
|
5470
5470
|
}
|
|
5471
5471
|
}
|
|
5472
|
-
const
|
|
5473
|
-
function
|
|
5474
|
-
return t in
|
|
5472
|
+
const Gn = /* @__PURE__ */ Object.create(null);
|
|
5473
|
+
function Es(t) {
|
|
5474
|
+
return t in Gn ? t + "$" + ++Gn[t] : (Gn[t] = 0, t + "$");
|
|
5475
5475
|
}
|
|
5476
|
-
class
|
|
5476
|
+
class Ss {
|
|
5477
5477
|
/**
|
|
5478
5478
|
Create a plugin key.
|
|
5479
5479
|
*/
|
|
5480
5480
|
constructor(e = "key") {
|
|
5481
|
-
this.key =
|
|
5481
|
+
this.key = Es(e);
|
|
5482
5482
|
}
|
|
5483
5483
|
/**
|
|
5484
5484
|
Get the active plugin with this key, if any, from an editor
|
|
@@ -5580,7 +5580,7 @@ function jt(t) {
|
|
|
5580
5580
|
;
|
|
5581
5581
|
return e && e.node && e.node.isBlock && (e.dom == t || e.contentDOM == t);
|
|
5582
5582
|
}
|
|
5583
|
-
const
|
|
5583
|
+
const Fn = function(t) {
|
|
5584
5584
|
return t.focusNode && rt(t.focusNode, t.focusOffset, t.anchorNode, t.anchorOffset);
|
|
5585
5585
|
};
|
|
5586
5586
|
function je(t, e) {
|
|
@@ -5607,9 +5607,9 @@ function Sa(t, e, n) {
|
|
|
5607
5607
|
return { node: r.startContainer, offset: Math.min(re(r.startContainer), r.startOffset) };
|
|
5608
5608
|
}
|
|
5609
5609
|
}
|
|
5610
|
-
const ye = typeof navigator < "u" ? navigator : null, Iu = typeof document < "u" ? document : null, He = ye && ye.userAgent || "", Ar = /Edge\/(\d+)/.exec(He),
|
|
5610
|
+
const ye = typeof navigator < "u" ? navigator : null, Iu = typeof document < "u" ? document : null, He = ye && ye.userAgent || "", Ar = /Edge\/(\d+)/.exec(He), As = /MSIE \d/.exec(He), Mr = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(He), G = !!(As || Mr || Ar), Le = As ? document.documentMode : Mr ? +Mr[1] : Ar ? +Ar[1] : 0, ue = !G && /gecko\/(\d+)/i.test(He);
|
|
5611
5611
|
ue && +(/Firefox\/(\d+)/.exec(He) || [0, 0])[1];
|
|
5612
|
-
const wr = !G && /Chrome\/(\d+)/.exec(He), H = !!wr,
|
|
5612
|
+
const wr = !G && /Chrome\/(\d+)/.exec(He), H = !!wr, Ms = wr ? +wr[1] : 0, U = !G && !!ye && /Apple Computer/.test(ye.vendor), mt = U && (/Mobile\/\w+/.test(He) || !!ye && ye.maxTouchPoints > 2), ne = mt || (ye ? /Mac/.test(ye.platform) : !1), Aa = ye ? /Win/.test(ye.platform) : !1, Ae = /Android \d/.test(He), Ut = !!Iu && "webkitFontSmoothing" in Iu.documentElement.style, Ma = Ut ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
|
|
5613
5613
|
function wa(t) {
|
|
5614
5614
|
let e = t.defaultView && t.defaultView.visualViewport;
|
|
5615
5615
|
return e ? {
|
|
@@ -5671,9 +5671,9 @@ function Oa(t) {
|
|
|
5671
5671
|
break;
|
|
5672
5672
|
}
|
|
5673
5673
|
}
|
|
5674
|
-
return { refDOM: r, refTop: u, stack:
|
|
5674
|
+
return { refDOM: r, refTop: u, stack: ws(t.dom) };
|
|
5675
5675
|
}
|
|
5676
|
-
function
|
|
5676
|
+
function ws(t) {
|
|
5677
5677
|
let e = [], n = t.ownerDocument;
|
|
5678
5678
|
for (let r = t; r && (e.push({ dom: r, top: r.scrollTop, left: r.scrollLeft }), t != n); r = pt(r))
|
|
5679
5679
|
;
|
|
@@ -5681,9 +5681,9 @@ function Ms(t) {
|
|
|
5681
5681
|
}
|
|
5682
5682
|
function Fa({ refDOM: t, refTop: e, stack: n }) {
|
|
5683
5683
|
let r = t ? t.getBoundingClientRect().top : 0;
|
|
5684
|
-
|
|
5684
|
+
Ts(n, r == 0 ? 0 : r - e);
|
|
5685
5685
|
}
|
|
5686
|
-
function
|
|
5686
|
+
function Ts(t, e) {
|
|
5687
5687
|
for (let n = 0; n < t.length; n++) {
|
|
5688
5688
|
let { dom: r, top: u, left: i } = t[n];
|
|
5689
5689
|
r.scrollTop != u + e && (r.scrollTop = u + e), r.scrollLeft != i && (r.scrollLeft = i);
|
|
@@ -5695,14 +5695,14 @@ function Na(t) {
|
|
|
5695
5695
|
return t.setActive();
|
|
5696
5696
|
if (it)
|
|
5697
5697
|
return t.focus(it);
|
|
5698
|
-
let e =
|
|
5698
|
+
let e = ws(t);
|
|
5699
5699
|
t.focus(it == null ? {
|
|
5700
5700
|
get preventScroll() {
|
|
5701
5701
|
return it = { preventScroll: !0 }, !0;
|
|
5702
5702
|
}
|
|
5703
|
-
} : void 0), it || (it = !1,
|
|
5703
|
+
} : void 0), it || (it = !1, Ts(e, 0));
|
|
5704
5704
|
}
|
|
5705
|
-
function
|
|
5705
|
+
function Os(t, e) {
|
|
5706
5706
|
let n, r = 2e8, u, i = 0, s = e.top, o = e.top, l, a;
|
|
5707
5707
|
for (let c = t.firstChild, f = 0; c; c = c.nextSibling, f++) {
|
|
5708
5708
|
let p;
|
|
@@ -5728,7 +5728,7 @@ function Ts(t, e) {
|
|
|
5728
5728
|
!n && (e.left >= d.right && e.top >= d.top || e.left >= d.left && e.top >= d.bottom) && (i = f + 1);
|
|
5729
5729
|
}
|
|
5730
5730
|
}
|
|
5731
|
-
return !n && l && (n = l, u = a, r = 0), n && n.nodeType == 3 ? Ia(n, u) : !n || r && n.nodeType == 1 ? { node: t, offset: i } :
|
|
5731
|
+
return !n && l && (n = l, u = a, r = 0), n && n.nodeType == 3 ? Ia(n, u) : !n || r && n.nodeType == 1 ? { node: t, offset: i } : Os(n, u);
|
|
5732
5732
|
}
|
|
5733
5733
|
function Ia(t, e) {
|
|
5734
5734
|
let n = t.nodeValue.length, r = document.createRange();
|
|
@@ -5748,7 +5748,7 @@ function Ra(t, e) {
|
|
|
5748
5748
|
return n && /^li$/i.test(n.nodeName) && e.left < t.getBoundingClientRect().left ? n : t;
|
|
5749
5749
|
}
|
|
5750
5750
|
function Ba(t, e, n) {
|
|
5751
|
-
let { node: r, offset: u } =
|
|
5751
|
+
let { node: r, offset: u } = Os(e, n), i = -1;
|
|
5752
5752
|
if (r.nodeType == 1 && !r.firstChild) {
|
|
5753
5753
|
let s = r.getBoundingClientRect();
|
|
5754
5754
|
i = s.left != s.right && n.left > (s.left + s.right) / 2 ? 1 : -1;
|
|
@@ -5768,7 +5768,7 @@ function va(t, e, n, r) {
|
|
|
5768
5768
|
}
|
|
5769
5769
|
return u > -1 ? u : t.docView.posFromDOM(e, n, -1);
|
|
5770
5770
|
}
|
|
5771
|
-
function
|
|
5771
|
+
function Fs(t, e, n) {
|
|
5772
5772
|
let r = t.childNodes.length;
|
|
5773
5773
|
if (r && n.top < n.bottom)
|
|
5774
5774
|
for (let u = Math.max(0, Math.min(r - 1, Math.floor(r * (e.top - n.top) / (n.bottom - n.top)) - 2)), i = u; ; ) {
|
|
@@ -5778,7 +5778,7 @@ function Os(t, e, n) {
|
|
|
5778
5778
|
for (let l = 0; l < o.length; l++) {
|
|
5779
5779
|
let a = o[l];
|
|
5780
5780
|
if (Jr(e, a))
|
|
5781
|
-
return
|
|
5781
|
+
return Fs(s, e, a);
|
|
5782
5782
|
}
|
|
5783
5783
|
}
|
|
5784
5784
|
if ((i = (i + 1) % r) == u)
|
|
@@ -5792,7 +5792,7 @@ function za(t, e) {
|
|
|
5792
5792
|
let s = (t.root.elementFromPoint ? t.root : n).elementFromPoint(e.left, e.top), o;
|
|
5793
5793
|
if (!s || !t.dom.contains(s.nodeType != 1 ? s.parentNode : s)) {
|
|
5794
5794
|
let a = t.dom.getBoundingClientRect();
|
|
5795
|
-
if (!Jr(e, a) || (s =
|
|
5795
|
+
if (!Jr(e, a) || (s = Fs(t.dom, e, a), !s))
|
|
5796
5796
|
return null;
|
|
5797
5797
|
}
|
|
5798
5798
|
if (U)
|
|
@@ -5823,7 +5823,7 @@ function Te(t, e) {
|
|
|
5823
5823
|
return Array.prototype.find.call(n, Bu) || t.getBoundingClientRect();
|
|
5824
5824
|
}
|
|
5825
5825
|
const Pa = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;
|
|
5826
|
-
function
|
|
5826
|
+
function Ns(t, e, n) {
|
|
5827
5827
|
let { node: r, offset: u, atom: i } = t.docView.domFromPos(e, n < 0 ? -1 : 1), s = Ut || ue;
|
|
5828
5828
|
if (r.nodeType == 3)
|
|
5829
5829
|
if (s && (Pa.test(r.nodeValue) || (n < 0 ? !u : u == r.nodeValue.length))) {
|
|
@@ -5845,14 +5845,14 @@ function Fs(t, e, n) {
|
|
|
5845
5845
|
if (i == null && u && (n < 0 || u == re(r))) {
|
|
5846
5846
|
let l = r.childNodes[u - 1];
|
|
5847
5847
|
if (l.nodeType == 1)
|
|
5848
|
-
return
|
|
5848
|
+
return Yn(l.getBoundingClientRect(), !1);
|
|
5849
5849
|
}
|
|
5850
5850
|
if (i == null && u < re(r)) {
|
|
5851
5851
|
let l = r.childNodes[u];
|
|
5852
5852
|
if (l.nodeType == 1)
|
|
5853
|
-
return
|
|
5853
|
+
return Yn(l.getBoundingClientRect(), !0);
|
|
5854
5854
|
}
|
|
5855
|
-
return
|
|
5855
|
+
return Yn(r.getBoundingClientRect(), n >= 0);
|
|
5856
5856
|
}
|
|
5857
5857
|
if (i == null && u && (n < 0 || u == re(r))) {
|
|
5858
5858
|
let l = r.childNodes[u - 1], a = l.nodeType == 3 ? Se(l, re(l) - (s ? 0 : 1)) : l.nodeType == 1 && (l.nodeName != "BR" || !l.nextSibling) ? l : null;
|
|
@@ -5875,13 +5875,13 @@ function Et(t, e) {
|
|
|
5875
5875
|
let n = e ? t.left : t.right;
|
|
5876
5876
|
return { top: t.top, bottom: t.bottom, left: n, right: n };
|
|
5877
5877
|
}
|
|
5878
|
-
function
|
|
5878
|
+
function Yn(t, e) {
|
|
5879
5879
|
if (t.height == 0)
|
|
5880
5880
|
return t;
|
|
5881
5881
|
let n = e ? t.top : t.bottom;
|
|
5882
5882
|
return { top: n, bottom: n, left: t.left, right: t.right };
|
|
5883
5883
|
}
|
|
5884
|
-
function
|
|
5884
|
+
function Is(t, e, n) {
|
|
5885
5885
|
let r = t.state, u = t.root.activeElement;
|
|
5886
5886
|
r != e && t.updateState(e), u != t.dom && t.focus();
|
|
5887
5887
|
try {
|
|
@@ -5892,7 +5892,7 @@ function Ns(t, e, n) {
|
|
|
5892
5892
|
}
|
|
5893
5893
|
function La(t, e, n) {
|
|
5894
5894
|
let r = e.selection, u = n == "up" ? r.$from : r.$to;
|
|
5895
|
-
return
|
|
5895
|
+
return Is(t, e, () => {
|
|
5896
5896
|
let { node: i } = t.docView.domFromPos(u.pos, n == "up" ? -1 : 1);
|
|
5897
5897
|
for (; ; ) {
|
|
5898
5898
|
let o = t.docView.nearestDesc(i, !0);
|
|
@@ -5904,7 +5904,7 @@ function La(t, e, n) {
|
|
|
5904
5904
|
}
|
|
5905
5905
|
i = o.dom.parentNode;
|
|
5906
5906
|
}
|
|
5907
|
-
let s =
|
|
5907
|
+
let s = Ns(t, u.pos, 1);
|
|
5908
5908
|
for (let o = i.firstChild; o; o = o.nextSibling) {
|
|
5909
5909
|
let l;
|
|
5910
5910
|
if (o.nodeType == 1)
|
|
@@ -5928,7 +5928,7 @@ function Va(t, e, n) {
|
|
|
5928
5928
|
if (!r.parent.isTextblock)
|
|
5929
5929
|
return !1;
|
|
5930
5930
|
let u = r.parentOffset, i = !u, s = u == r.parent.content.size, o = t.domSelection();
|
|
5931
|
-
return o ? !qa.test(r.parent.textContent) || !o.modify ? n == "left" || n == "backward" ? i : s :
|
|
5931
|
+
return o ? !qa.test(r.parent.textContent) || !o.modify ? n == "left" || n == "backward" ? i : s : Is(t, e, () => {
|
|
5932
5932
|
let { focusNode: l, focusOffset: a, anchorNode: c, anchorOffset: f } = t.domSelectionRange(), p = o.caretBidiLevel;
|
|
5933
5933
|
o.modify("move", n, "character");
|
|
5934
5934
|
let h = r.depth ? t.docView.domAfterPos(r.before()) : t.dom, { focusNode: d, focusOffset: m } = t.domSelectionRange(), g = d && !h.contains(d.nodeType == 1 ? d : d.parentNode) || l == d && a == m;
|
|
@@ -6115,7 +6115,7 @@ class Kt {
|
|
|
6115
6115
|
let r = 0, u = 0;
|
|
6116
6116
|
for (let i = 0; r < this.children.length; r++) {
|
|
6117
6117
|
let s = this.children[r], o = i + s.size;
|
|
6118
|
-
if (o > e || s instanceof
|
|
6118
|
+
if (o > e || s instanceof Bs) {
|
|
6119
6119
|
u = e - i;
|
|
6120
6120
|
break;
|
|
6121
6121
|
}
|
|
@@ -6123,7 +6123,7 @@ class Kt {
|
|
|
6123
6123
|
}
|
|
6124
6124
|
if (u)
|
|
6125
6125
|
return this.children[r].domFromPos(u - this.children[r].border, n);
|
|
6126
|
-
for (let i; r && !(i = this.children[r - 1]).size && i instanceof
|
|
6126
|
+
for (let i; r && !(i = this.children[r - 1]).size && i instanceof Rs && i.side >= 0; r--)
|
|
6127
6127
|
;
|
|
6128
6128
|
if (n <= 0) {
|
|
6129
6129
|
let i, s = !0;
|
|
@@ -6288,7 +6288,7 @@ class Kt {
|
|
|
6288
6288
|
return !1;
|
|
6289
6289
|
}
|
|
6290
6290
|
}
|
|
6291
|
-
class
|
|
6291
|
+
class Rs extends Kt {
|
|
6292
6292
|
constructor(e, n, r, u) {
|
|
6293
6293
|
let i, s = n.type.toDOM;
|
|
6294
6294
|
if (typeof s == "function" && (s = s(r, () => {
|
|
@@ -6412,7 +6412,7 @@ class qe extends Kt {
|
|
|
6412
6412
|
} else c || ({ dom: c, contentDOM: f } = kt.renderSpec(document, n.type.spec.toDOM(n), null, n.attrs));
|
|
6413
6413
|
!f && !n.isText && c.nodeName != "BR" && (c.hasAttribute("contenteditable") || (c.contentEditable = "false"), n.type.spec.draggable && (c.draggable = !0));
|
|
6414
6414
|
let p = c;
|
|
6415
|
-
return c =
|
|
6415
|
+
return c = Ps(c, r, n), a ? l = new Ha(e, n, r, u, c, f || null, p, a, i, s + 1) : n.isText ? new Nn(e, n, r, u, c, p, i) : new qe(e, n, r, u, c, f || null, p, i, s + 1);
|
|
6416
6416
|
}
|
|
6417
6417
|
parseRule() {
|
|
6418
6418
|
if (this.node.type.spec.reparseInView)
|
|
@@ -6435,7 +6435,7 @@ class qe extends Kt {
|
|
|
6435
6435
|
return e;
|
|
6436
6436
|
}
|
|
6437
6437
|
matchesNode(e, n, r) {
|
|
6438
|
-
return this.dirty == ie && e.eq(this.node) &&
|
|
6438
|
+
return this.dirty == ie && e.eq(this.node) && xn(n, this.outerDeco) && r.eq(this.innerDeco);
|
|
6439
6439
|
}
|
|
6440
6440
|
get size() {
|
|
6441
6441
|
return this.node.nodeSize;
|
|
@@ -6455,7 +6455,7 @@ class qe extends Kt {
|
|
|
6455
6455
|
l.syncToMarks(a.marks, r, e);
|
|
6456
6456
|
let h;
|
|
6457
6457
|
l.findNodeMatch(a, c, f, p) || o && e.state.selection.from > u && e.state.selection.to < u + a.nodeSize && (h = l.findIndexWithChild(i.node)) > -1 && l.updateNodeAt(a, c, f, h, e) || l.updateNextNode(a, c, f, e, p, u) || l.addNode(a, c, f, e, u), u += a.nodeSize;
|
|
6458
|
-
}), l.syncToMarks([], r, e), this.node.isTextblock && l.addTextblockHacks(), l.destroyRest(), (l.changed || this.dirty == Ke) && (s && this.protectLocalComposition(e, s),
|
|
6458
|
+
}), l.syncToMarks([], r, e), this.node.isTextblock && l.addTextblockHacks(), l.destroyRest(), (l.changed || this.dirty == Ke) && (s && this.protectLocalComposition(e, s), vs(this.contentDOM, this.children, e), mt && Ga(this.dom));
|
|
6459
6459
|
}
|
|
6460
6460
|
localCompositionInfo(e, n) {
|
|
6461
6461
|
let { from: r, to: u } = e.state.selection;
|
|
@@ -6493,10 +6493,10 @@ class qe extends Kt {
|
|
|
6493
6493
|
this.updateOuterDeco(n), this.node = e, this.innerDeco = r, this.contentDOM && this.updateChildren(u, this.posAtStart), this.dirty = ie;
|
|
6494
6494
|
}
|
|
6495
6495
|
updateOuterDeco(e) {
|
|
6496
|
-
if (
|
|
6496
|
+
if (xn(e, this.outerDeco))
|
|
6497
6497
|
return;
|
|
6498
6498
|
let n = this.nodeDOM.nodeType != 1, r = this.dom;
|
|
6499
|
-
this.dom =
|
|
6499
|
+
this.dom = zs(this.dom, this.nodeDOM, Tr(this.outerDeco, this.node, n), Tr(e, this.node, n)), this.dom != r && (r.pmViewDesc = void 0, this.dom.pmViewDesc = this), this.outerDeco = e;
|
|
6500
6500
|
}
|
|
6501
6501
|
// Mark this node as being the selected node.
|
|
6502
6502
|
selectNode() {
|
|
@@ -6511,11 +6511,11 @@ class qe extends Kt {
|
|
|
6511
6511
|
}
|
|
6512
6512
|
}
|
|
6513
6513
|
function qu(t, e, n, r, u) {
|
|
6514
|
-
|
|
6514
|
+
Ps(r, e, t);
|
|
6515
6515
|
let i = new qe(void 0, t, e, n, r, r, r, u, 0);
|
|
6516
6516
|
return i.contentDOM && i.updateChildren(u, 0), i;
|
|
6517
6517
|
}
|
|
6518
|
-
class
|
|
6518
|
+
class Nn extends qe {
|
|
6519
6519
|
constructor(e, n, r, u, i, s, o) {
|
|
6520
6520
|
super(e, n, r, u, i, null, s, o, 0);
|
|
6521
6521
|
}
|
|
@@ -6546,7 +6546,7 @@ class Fn extends qe {
|
|
|
6546
6546
|
}
|
|
6547
6547
|
slice(e, n, r) {
|
|
6548
6548
|
let u = this.node.cut(e, n), i = document.createTextNode(u.text);
|
|
6549
|
-
return new
|
|
6549
|
+
return new Nn(this.parent, u, this.outerDeco, this.innerDeco, i, i, r);
|
|
6550
6550
|
}
|
|
6551
6551
|
markDirty(e, n) {
|
|
6552
6552
|
super.markDirty(e, n), this.dom != this.nodeDOM && (e == 0 || n == this.nodeDOM.nodeValue.length) && (this.dirty = Ce);
|
|
@@ -6558,7 +6558,7 @@ class Fn extends qe {
|
|
|
6558
6558
|
return this.node.text == e;
|
|
6559
6559
|
}
|
|
6560
6560
|
}
|
|
6561
|
-
class
|
|
6561
|
+
class Bs extends Kt {
|
|
6562
6562
|
parseRule() {
|
|
6563
6563
|
return { ignore: !0 };
|
|
6564
6564
|
}
|
|
@@ -6606,7 +6606,7 @@ class Ha extends qe {
|
|
|
6606
6606
|
return this.spec.ignoreMutation ? this.spec.ignoreMutation(e) : super.ignoreMutation(e);
|
|
6607
6607
|
}
|
|
6608
6608
|
}
|
|
6609
|
-
function
|
|
6609
|
+
function vs(t, e, n) {
|
|
6610
6610
|
let r = t.firstChild, u = !1;
|
|
6611
6611
|
for (let i = 0; i < e.length; i++) {
|
|
6612
6612
|
let s = e[i], o = s.dom;
|
|
@@ -6618,7 +6618,7 @@ function Bs(t, e, n) {
|
|
|
6618
6618
|
u = !0, t.insertBefore(o, r);
|
|
6619
6619
|
if (s instanceof ut) {
|
|
6620
6620
|
let l = r ? r.previousSibling : t.lastChild;
|
|
6621
|
-
|
|
6621
|
+
vs(s.contentDOM, s.children, n), r = l ? l.nextSibling : t.firstChild;
|
|
6622
6622
|
}
|
|
6623
6623
|
}
|
|
6624
6624
|
for (; r; )
|
|
@@ -6646,7 +6646,7 @@ function Tr(t, e, n) {
|
|
|
6646
6646
|
}
|
|
6647
6647
|
return u;
|
|
6648
6648
|
}
|
|
6649
|
-
function
|
|
6649
|
+
function zs(t, e, n, r) {
|
|
6650
6650
|
if (n == Ze && r == Ze)
|
|
6651
6651
|
return e;
|
|
6652
6652
|
let u = e;
|
|
@@ -6682,10 +6682,10 @@ function Ja(t, e, n) {
|
|
|
6682
6682
|
n.style && (t.style.cssText += n.style);
|
|
6683
6683
|
}
|
|
6684
6684
|
}
|
|
6685
|
-
function
|
|
6686
|
-
return
|
|
6685
|
+
function Ps(t, e, n) {
|
|
6686
|
+
return zs(t, t, Ze, Tr(e, n, t.nodeType != 1));
|
|
6687
6687
|
}
|
|
6688
|
-
function
|
|
6688
|
+
function xn(t, e) {
|
|
6689
6689
|
if (t.length != e.length)
|
|
6690
6690
|
return !1;
|
|
6691
6691
|
for (let n = 0; n < t.length; n++)
|
|
@@ -6787,7 +6787,7 @@ class ja {
|
|
|
6787
6787
|
let a = this.preMatch.matched.get(l);
|
|
6788
6788
|
if (a != null && a != i)
|
|
6789
6789
|
return !1;
|
|
6790
|
-
let c = l.dom, f, p = this.isLocked(c) && !(e.isText && l.node && l.node.isText && l.nodeDOM.nodeValue == e.text && l.dirty != Ce &&
|
|
6790
|
+
let c = l.dom, f, p = this.isLocked(c) && !(e.isText && l.node && l.node.isText && l.nodeDOM.nodeValue == e.text && l.dirty != Ce && xn(n, l.outerDeco));
|
|
6791
6791
|
if (!p && l.update(e, n, r, u))
|
|
6792
6792
|
return this.destroyBetween(this.index, o), l.dom != c && (this.changed = !0), this.index++, !0;
|
|
6793
6793
|
if (!p && (f = this.recreateWrapper(l, e, n, r, u, s)))
|
|
@@ -6800,7 +6800,7 @@ class ja {
|
|
|
6800
6800
|
// When a node with content is replaced by a different node with
|
|
6801
6801
|
// identical content, move over its children.
|
|
6802
6802
|
recreateWrapper(e, n, r, u, i, s) {
|
|
6803
|
-
if (e.dirty || n.isAtom || !e.children.length || !e.node.content.eq(n.content) || !
|
|
6803
|
+
if (e.dirty || n.isAtom || !e.children.length || !e.node.content.eq(n.content) || !xn(r, e.outerDeco) || !u.eq(e.innerDeco))
|
|
6804
6804
|
return null;
|
|
6805
6805
|
let o = qe.create(this.top, n, r, u, i, s);
|
|
6806
6806
|
if (o.contentDOM) {
|
|
@@ -6820,7 +6820,7 @@ class ja {
|
|
|
6820
6820
|
if (u && u.matchesWidget(e) && (e == u.widget || !u.widget.type.toDOM.parentNode))
|
|
6821
6821
|
this.index++;
|
|
6822
6822
|
else {
|
|
6823
|
-
let i = new
|
|
6823
|
+
let i = new Rs(this.top, e, n, r);
|
|
6824
6824
|
this.top.children.splice(this.index++, 0, i), this.changed = !0;
|
|
6825
6825
|
}
|
|
6826
6826
|
}
|
|
@@ -6831,7 +6831,7 @@ class ja {
|
|
|
6831
6831
|
for (; e instanceof ut; )
|
|
6832
6832
|
n = e, e = n.children[n.children.length - 1];
|
|
6833
6833
|
(!e || // Empty textblock
|
|
6834
|
-
!(e instanceof
|
|
6834
|
+
!(e instanceof Nn) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((U || H) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", n), this.addHackNode("BR", this.top));
|
|
6835
6835
|
}
|
|
6836
6836
|
addHackNode(e, n) {
|
|
6837
6837
|
if (n == this.top && this.index < n.children.length && n.children[this.index].matchesHack(e))
|
|
@@ -6839,7 +6839,7 @@ class ja {
|
|
|
6839
6839
|
else {
|
|
6840
6840
|
let r = document.createElement(e);
|
|
6841
6841
|
e == "IMG" && (r.className = "ProseMirror-separator", r.alt = ""), e == "BR" && (r.className = "ProseMirror-trailingBreak");
|
|
6842
|
-
let u = new
|
|
6842
|
+
let u = new Bs(this.top, [], r, null);
|
|
6843
6843
|
n != this.top ? n.children.push(u) : n.children.splice(this.index++, 0, u), this.changed = !0;
|
|
6844
6844
|
}
|
|
6845
6845
|
}
|
|
@@ -6971,7 +6971,7 @@ function jr(t, e = null) {
|
|
|
6971
6971
|
if (s < 0)
|
|
6972
6972
|
return null;
|
|
6973
6973
|
let o = r.resolve(s), l, a;
|
|
6974
|
-
if (
|
|
6974
|
+
if (Fn(n)) {
|
|
6975
6975
|
for (l = s; u && !u.node; )
|
|
6976
6976
|
u = u.parent;
|
|
6977
6977
|
let f = u.node;
|
|
@@ -7001,12 +7001,12 @@ function jr(t, e = null) {
|
|
|
7001
7001
|
}
|
|
7002
7002
|
return a;
|
|
7003
7003
|
}
|
|
7004
|
-
function
|
|
7005
|
-
return t.editable ? t.hasFocus() :
|
|
7004
|
+
function Ls(t) {
|
|
7005
|
+
return t.editable ? t.hasFocus() : Vs(t) && document.activeElement && document.activeElement.contains(t.dom);
|
|
7006
7006
|
}
|
|
7007
7007
|
function Me(t, e = !1) {
|
|
7008
7008
|
let n = t.state.selection;
|
|
7009
|
-
if (
|
|
7009
|
+
if (qs(t, n), !!Ls(t)) {
|
|
7010
7010
|
if (!e && t.input.mouseDown && t.input.mouseDown.allowDefault && H) {
|
|
7011
7011
|
let r = t.domSelectionRange(), u = t.domObserver.currentSelection;
|
|
7012
7012
|
if (r.anchorNode && u.anchorNode && rt(r.anchorNode, r.anchorOffset, u.anchorNode, u.anchorOffset)) {
|
|
@@ -7023,19 +7023,19 @@ function Me(t, e = !1) {
|
|
|
7023
7023
|
t.domObserver.setCurSelection(), t.domObserver.connectSelection();
|
|
7024
7024
|
}
|
|
7025
7025
|
}
|
|
7026
|
-
const $u = U || H &&
|
|
7026
|
+
const $u = U || H && Ms < 63;
|
|
7027
7027
|
function Wu(t, e) {
|
|
7028
7028
|
let { node: n, offset: r } = t.docView.domFromPos(e, 0), u = r < n.childNodes.length ? n.childNodes[r] : null, i = r ? n.childNodes[r - 1] : null;
|
|
7029
7029
|
if (U && u && u.contentEditable == "false")
|
|
7030
|
-
return
|
|
7030
|
+
return Xn(u);
|
|
7031
7031
|
if ((!u || u.contentEditable == "false") && (!i || i.contentEditable == "false")) {
|
|
7032
7032
|
if (u)
|
|
7033
|
-
return
|
|
7033
|
+
return Xn(u);
|
|
7034
7034
|
if (i)
|
|
7035
|
-
return
|
|
7035
|
+
return Xn(i);
|
|
7036
7036
|
}
|
|
7037
7037
|
}
|
|
7038
|
-
function
|
|
7038
|
+
function Xn(t) {
|
|
7039
7039
|
return t.contentEditable = "true", U && t.draggable && (t.draggable = !1, t.wasDraggable = !0), t;
|
|
7040
7040
|
}
|
|
7041
7041
|
function Hu(t) {
|
|
@@ -7047,7 +7047,7 @@ function Xa(t) {
|
|
|
7047
7047
|
let n = t.domSelectionRange(), r = n.anchorNode, u = n.anchorOffset;
|
|
7048
7048
|
e.addEventListener("selectionchange", t.input.hideSelectionGuard = () => {
|
|
7049
7049
|
(n.anchorNode != r || n.anchorOffset != u) && (e.removeEventListener("selectionchange", t.input.hideSelectionGuard), setTimeout(() => {
|
|
7050
|
-
(!
|
|
7050
|
+
(!Ls(t) || t.state.selection.visible) && t.dom.classList.remove("ProseMirror-hideselection");
|
|
7051
7051
|
}, 20));
|
|
7052
7052
|
});
|
|
7053
7053
|
}
|
|
@@ -7058,7 +7058,7 @@ function Qa(t) {
|
|
|
7058
7058
|
let n = t.cursorWrapper.dom, r = n.nodeName == "IMG";
|
|
7059
7059
|
r ? e.collapse(n.parentNode, q(n) + 1) : e.collapse(n, 0), !r && !t.state.selection.visible && G && Le <= 11 && (n.disabled = !0, n.disabled = !1);
|
|
7060
7060
|
}
|
|
7061
|
-
function
|
|
7061
|
+
function qs(t, e) {
|
|
7062
7062
|
if (e instanceof A) {
|
|
7063
7063
|
let n = t.docView.descAt(e.from);
|
|
7064
7064
|
n != t.lastSelectedViewDesc && (Ju(t), n && n.selectNode(), t.lastSelectedViewDesc = n);
|
|
@@ -7072,9 +7072,9 @@ function Ur(t, e, n, r) {
|
|
|
7072
7072
|
return t.someProp("createSelectionBetween", (u) => u(t, e, n)) || F.between(e, n, r);
|
|
7073
7073
|
}
|
|
7074
7074
|
function ju(t) {
|
|
7075
|
-
return t.editable && !t.hasFocus() ? !1 :
|
|
7075
|
+
return t.editable && !t.hasFocus() ? !1 : Vs(t);
|
|
7076
7076
|
}
|
|
7077
|
-
function
|
|
7077
|
+
function Vs(t) {
|
|
7078
7078
|
let e = t.domSelectionRange();
|
|
7079
7079
|
if (!e.anchorNode)
|
|
7080
7080
|
return !1;
|
|
@@ -7125,7 +7125,7 @@ function Uu(t, e, n) {
|
|
|
7125
7125
|
}
|
|
7126
7126
|
}
|
|
7127
7127
|
}
|
|
7128
|
-
function
|
|
7128
|
+
function kn(t) {
|
|
7129
7129
|
return t.nodeType == 3 ? t.nodeValue.length : t.childNodes.length;
|
|
7130
7130
|
}
|
|
7131
7131
|
function Nt(t, e) {
|
|
@@ -7140,7 +7140,7 @@ function tc(t) {
|
|
|
7140
7140
|
if (!n)
|
|
7141
7141
|
return;
|
|
7142
7142
|
let u, i, s = !1;
|
|
7143
|
-
for (ue && n.nodeType == 1 && r <
|
|
7143
|
+
for (ue && n.nodeType == 1 && r < kn(n) && Nt(n.childNodes[r], -1) && (s = !0); ; )
|
|
7144
7144
|
if (r > 0) {
|
|
7145
7145
|
if (n.nodeType != 1)
|
|
7146
7146
|
break;
|
|
@@ -7154,14 +7154,14 @@ function tc(t) {
|
|
|
7154
7154
|
break;
|
|
7155
7155
|
}
|
|
7156
7156
|
} else {
|
|
7157
|
-
if (
|
|
7157
|
+
if ($s(n))
|
|
7158
7158
|
break;
|
|
7159
7159
|
{
|
|
7160
7160
|
let o = n.previousSibling;
|
|
7161
7161
|
for (; o && Nt(o, -1); )
|
|
7162
7162
|
u = n.parentNode, i = q(o), o = o.previousSibling;
|
|
7163
7163
|
if (o)
|
|
7164
|
-
n = o, r =
|
|
7164
|
+
n = o, r = kn(n);
|
|
7165
7165
|
else {
|
|
7166
7166
|
if (n = n.parentNode, n == t.dom)
|
|
7167
7167
|
break;
|
|
@@ -7175,7 +7175,7 @@ function nc(t) {
|
|
|
7175
7175
|
let e = t.domSelectionRange(), n = e.focusNode, r = e.focusOffset;
|
|
7176
7176
|
if (!n)
|
|
7177
7177
|
return;
|
|
7178
|
-
let u =
|
|
7178
|
+
let u = kn(n), i, s;
|
|
7179
7179
|
for (; ; )
|
|
7180
7180
|
if (r < u) {
|
|
7181
7181
|
if (n.nodeType != 1)
|
|
@@ -7186,14 +7186,14 @@ function nc(t) {
|
|
|
7186
7186
|
else
|
|
7187
7187
|
break;
|
|
7188
7188
|
} else {
|
|
7189
|
-
if (
|
|
7189
|
+
if ($s(n))
|
|
7190
7190
|
break;
|
|
7191
7191
|
{
|
|
7192
7192
|
let o = n.nextSibling;
|
|
7193
7193
|
for (; o && Nt(o, 1); )
|
|
7194
7194
|
i = o.parentNode, s = q(o) + 1, o = o.nextSibling;
|
|
7195
7195
|
if (o)
|
|
7196
|
-
n = o, r = 0, u =
|
|
7196
|
+
n = o, r = 0, u = kn(n);
|
|
7197
7197
|
else {
|
|
7198
7198
|
if (n = n.parentNode, n == t.dom)
|
|
7199
7199
|
break;
|
|
@@ -7203,7 +7203,7 @@ function nc(t) {
|
|
|
7203
7203
|
}
|
|
7204
7204
|
i && Nr(t, i, s);
|
|
7205
7205
|
}
|
|
7206
|
-
function
|
|
7206
|
+
function $s(t) {
|
|
7207
7207
|
let e = t.pmViewDesc;
|
|
7208
7208
|
return e && e.node && e.node.isBlock;
|
|
7209
7209
|
}
|
|
@@ -7239,7 +7239,7 @@ function Nr(t, e, n) {
|
|
|
7239
7239
|
let r = t.domSelection();
|
|
7240
7240
|
if (!r)
|
|
7241
7241
|
return;
|
|
7242
|
-
if (
|
|
7242
|
+
if (Fn(r)) {
|
|
7243
7243
|
let i = document.createRange();
|
|
7244
7244
|
i.setEnd(e, n), i.setStart(e, n), r.removeAllRanges(), r.addRange(i);
|
|
7245
7245
|
} else r.extend && r.extend(e, n);
|
|
@@ -7350,10 +7350,10 @@ function Kr(t, e) {
|
|
|
7350
7350
|
let h = r.firstChild;
|
|
7351
7351
|
n.push(h.type.name, h.attrs != h.type.defaultAttrs ? h.attrs : null), r = h.content;
|
|
7352
7352
|
}
|
|
7353
|
-
let s = t.someProp("clipboardSerializer") || kt.fromSchema(t.state.schema), o =
|
|
7353
|
+
let s = t.someProp("clipboardSerializer") || kt.fromSchema(t.state.schema), o = Ks(), l = o.createElement("div");
|
|
7354
7354
|
l.appendChild(s.serializeFragment(r, { document: o }));
|
|
7355
7355
|
let a = l.firstChild, c, f = 0;
|
|
7356
|
-
for (; a && a.nodeType == 1 && (c =
|
|
7356
|
+
for (; a && a.nodeType == 1 && (c = Us[a.nodeName.toLowerCase()]); ) {
|
|
7357
7357
|
for (let h = c.length - 1; h >= 0; h--) {
|
|
7358
7358
|
let d = o.createElement(c[h]);
|
|
7359
7359
|
for (; l.firstChild; )
|
|
@@ -7368,7 +7368,7 @@ function Kr(t, e) {
|
|
|
7368
7368
|
`);
|
|
7369
7369
|
return { dom: l, text: p, slice: e };
|
|
7370
7370
|
}
|
|
7371
|
-
function
|
|
7371
|
+
function Ws(t, e, n, r, u) {
|
|
7372
7372
|
let i = u.parent.type.spec.code, s, o;
|
|
7373
7373
|
if (!n && !e)
|
|
7374
7374
|
return null;
|
|
@@ -7437,11 +7437,11 @@ function ac(t, e) {
|
|
|
7437
7437
|
let l = u.findWrapping(o.type), a;
|
|
7438
7438
|
if (!l)
|
|
7439
7439
|
return s = null;
|
|
7440
|
-
if (a = s.length && i.length &&
|
|
7440
|
+
if (a = s.length && i.length && Js(l, i, o, s[s.length - 1], 0))
|
|
7441
7441
|
s[s.length - 1] = a;
|
|
7442
7442
|
else {
|
|
7443
|
-
s.length && (s[s.length - 1] =
|
|
7444
|
-
let c =
|
|
7443
|
+
s.length && (s[s.length - 1] = js(s[s.length - 1], i.length));
|
|
7444
|
+
let c = Hs(o, l);
|
|
7445
7445
|
s.push(c), u = u.matchType(c.type), i = l;
|
|
7446
7446
|
}
|
|
7447
7447
|
}), s)
|
|
@@ -7449,24 +7449,24 @@ function ac(t, e) {
|
|
|
7449
7449
|
}
|
|
7450
7450
|
return t;
|
|
7451
7451
|
}
|
|
7452
|
-
function
|
|
7452
|
+
function Hs(t, e, n = 0) {
|
|
7453
7453
|
for (let r = e.length - 1; r >= n; r--)
|
|
7454
7454
|
t = e[r].create(null, y.from(t));
|
|
7455
7455
|
return t;
|
|
7456
7456
|
}
|
|
7457
|
-
function
|
|
7457
|
+
function Js(t, e, n, r, u) {
|
|
7458
7458
|
if (u < t.length && u < e.length && t[u] == e[u]) {
|
|
7459
|
-
let i =
|
|
7459
|
+
let i = Js(t, e, n, r.lastChild, u + 1);
|
|
7460
7460
|
if (i)
|
|
7461
7461
|
return r.copy(r.content.replaceChild(r.childCount - 1, i));
|
|
7462
7462
|
if (r.contentMatchAt(r.childCount).matchType(u == t.length - 1 ? n.type : t[u + 1]))
|
|
7463
|
-
return r.copy(r.content.append(y.from(
|
|
7463
|
+
return r.copy(r.content.append(y.from(Hs(n, t, u + 1))));
|
|
7464
7464
|
}
|
|
7465
7465
|
}
|
|
7466
|
-
function
|
|
7466
|
+
function js(t, e) {
|
|
7467
7467
|
if (e == 0)
|
|
7468
7468
|
return t;
|
|
7469
|
-
let n = t.content.replaceChild(t.childCount - 1,
|
|
7469
|
+
let n = t.content.replaceChild(t.childCount - 1, js(t.lastChild, e - 1)), r = t.contentMatchAt(t.childCount).fillBefore(y.empty, !0);
|
|
7470
7470
|
return t.copy(n.append(r));
|
|
7471
7471
|
}
|
|
7472
7472
|
function Ir(t, e, n, r, u, i) {
|
|
@@ -7476,7 +7476,7 @@ function Ir(t, e, n, r, u, i) {
|
|
|
7476
7476
|
function Xu(t, e, n) {
|
|
7477
7477
|
return e < t.openStart && (t = new D(Ir(t.content, -1, e, t.openStart, 0, t.openEnd), e, t.openEnd)), n < t.openEnd && (t = new D(Ir(t.content, 1, n, t.openEnd, 0, 0), t.openStart, n)), t;
|
|
7478
7478
|
}
|
|
7479
|
-
const
|
|
7479
|
+
const Us = {
|
|
7480
7480
|
thead: ["table"],
|
|
7481
7481
|
tbody: ["table"],
|
|
7482
7482
|
tfoot: ["table"],
|
|
@@ -7488,19 +7488,19 @@ const js = {
|
|
|
7488
7488
|
th: ["table", "tbody", "tr"]
|
|
7489
7489
|
};
|
|
7490
7490
|
let Qu = null;
|
|
7491
|
-
function
|
|
7491
|
+
function Ks() {
|
|
7492
7492
|
return Qu || (Qu = document.implementation.createHTMLDocument("title"));
|
|
7493
7493
|
}
|
|
7494
|
-
let
|
|
7494
|
+
let Qn = null;
|
|
7495
7495
|
function cc(t) {
|
|
7496
7496
|
let e = window.trustedTypes;
|
|
7497
|
-
return e ? (
|
|
7497
|
+
return e ? (Qn || (Qn = e.defaultPolicy || e.createPolicy("ProseMirrorClipboard", { createHTML: (n) => n })), Qn.createHTML(t)) : t;
|
|
7498
7498
|
}
|
|
7499
7499
|
function fc(t) {
|
|
7500
7500
|
let e = /^(\s*<meta [^>]*>)*/.exec(t);
|
|
7501
7501
|
e && (t = t.slice(e[0].length));
|
|
7502
|
-
let n =
|
|
7503
|
-
if ((u = r &&
|
|
7502
|
+
let n = Ks().createElement("div"), r = /<([a-z][^>\s]+)/i.exec(t), u;
|
|
7503
|
+
if ((u = r && Us[r[1].toLowerCase()]) && (t = u.map((i) => "<" + i + ">").join("") + t + u.map((i) => "</" + i + ">").reverse().join("")), n.innerHTML = cc(t), u)
|
|
7504
7504
|
for (let i = 0; i < u.length; i++)
|
|
7505
7505
|
n = n.querySelector(u[i]) || n;
|
|
7506
7506
|
return n;
|
|
@@ -7581,7 +7581,7 @@ function kc(t, e) {
|
|
|
7581
7581
|
}
|
|
7582
7582
|
Z.keydown = (t, e) => {
|
|
7583
7583
|
let n = e;
|
|
7584
|
-
if (t.input.shiftKey = n.keyCode == 16 || n.shiftKey, !
|
|
7584
|
+
if (t.input.shiftKey = n.keyCode == 16 || n.shiftKey, !Gs(t, n) && (t.input.lastKeyCode = n.keyCode, t.input.lastKeyCodeTime = Date.now(), !(Ae && H && n.keyCode == 13)))
|
|
7585
7585
|
if (n.keyCode != 229 && t.domObserver.forceFlush(), mt && n.keyCode == 13 && !n.ctrlKey && !n.altKey && !n.metaKey) {
|
|
7586
7586
|
let r = Date.now();
|
|
7587
7587
|
t.input.lastIOSEnter = r, t.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
|
|
@@ -7594,7 +7594,7 @@ Z.keyup = (t, e) => {
|
|
|
7594
7594
|
};
|
|
7595
7595
|
Z.keypress = (t, e) => {
|
|
7596
7596
|
let n = e;
|
|
7597
|
-
if (
|
|
7597
|
+
if (Gs(t, n) || !n.charCode || n.ctrlKey && !n.altKey || ne && n.metaKey)
|
|
7598
7598
|
return;
|
|
7599
7599
|
if (t.someProp("handleKeyPress", (u) => u(t, n))) {
|
|
7600
7600
|
n.preventDefault();
|
|
@@ -7606,7 +7606,7 @@ Z.keypress = (t, e) => {
|
|
|
7606
7606
|
!/[\r\n]/.test(u) && !t.someProp("handleTextInput", (s) => s(t, r.$from.pos, r.$to.pos, u, i)) && t.dispatch(i()), n.preventDefault();
|
|
7607
7607
|
}
|
|
7608
7608
|
};
|
|
7609
|
-
function
|
|
7609
|
+
function In(t) {
|
|
7610
7610
|
return { left: t.clientX, top: t.clientY };
|
|
7611
7611
|
}
|
|
7612
7612
|
function yc(t, e) {
|
|
@@ -7677,20 +7677,20 @@ function Ac(t, e, n) {
|
|
|
7677
7677
|
}
|
|
7678
7678
|
}
|
|
7679
7679
|
function Yr(t) {
|
|
7680
|
-
return
|
|
7680
|
+
return yn(t);
|
|
7681
7681
|
}
|
|
7682
|
-
const
|
|
7682
|
+
const Zs = ne ? "metaKey" : "ctrlKey";
|
|
7683
7683
|
K.mousedown = (t, e) => {
|
|
7684
7684
|
let n = e;
|
|
7685
7685
|
t.input.shiftKey = n.shiftKey;
|
|
7686
7686
|
let r = Yr(t), u = Date.now(), i = "singleClick";
|
|
7687
|
-
u - t.input.lastClick.time < 500 && yc(n, t.input.lastClick) && !n[
|
|
7688
|
-
let s = t.posAtCoords(
|
|
7687
|
+
u - t.input.lastClick.time < 500 && yc(n, t.input.lastClick) && !n[Zs] && t.input.lastClick.button == n.button && (t.input.lastClick.type == "singleClick" ? i = "doubleClick" : t.input.lastClick.type == "doubleClick" && (i = "tripleClick")), t.input.lastClick = { time: u, x: n.clientX, y: n.clientY, type: i, button: n.button };
|
|
7688
|
+
let s = t.posAtCoords(In(n));
|
|
7689
7689
|
s && (i == "singleClick" ? (t.input.mouseDown && t.input.mouseDown.done(), t.input.mouseDown = new Mc(t, s, n, !!r)) : (i == "doubleClick" ? Ec : Sc)(t, s.pos, s.inside, n) ? n.preventDefault() : ze(t, "pointer"));
|
|
7690
7690
|
};
|
|
7691
7691
|
class Mc {
|
|
7692
7692
|
constructor(e, n, r, u) {
|
|
7693
|
-
this.view = e, this.pos = n, this.event = r, this.flushed = u, this.delayedSelectionSync = !1, this.mightDrag = null, this.startDoc = e.state.doc, this.selectNode = !!r[
|
|
7693
|
+
this.view = e, this.pos = n, this.event = r, this.flushed = u, this.delayedSelectionSync = !1, this.mightDrag = null, this.startDoc = e.state.doc, this.selectNode = !!r[Zs], this.allowDefault = r.shiftKey;
|
|
7694
7694
|
let i, s;
|
|
7695
7695
|
if (n.inside > -1)
|
|
7696
7696
|
i = e.state.doc.nodeAt(n.inside), s = n.inside;
|
|
@@ -7717,7 +7717,7 @@ class Mc {
|
|
|
7717
7717
|
if (this.done(), !this.view.dom.contains(e.target))
|
|
7718
7718
|
return;
|
|
7719
7719
|
let n = this.pos;
|
|
7720
|
-
this.view.state.doc != this.startDoc && (n = this.view.posAtCoords(
|
|
7720
|
+
this.view.state.doc != this.startDoc && (n = this.view.posAtCoords(In(e))), this.updateAllowDefault(e), this.allowDefault || !n ? ze(this.view, "pointer") : _c(this.view, n.pos, n.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
|
|
7721
7721
|
U && this.mightDrag && !this.mightDrag.node.isAtom || // Chrome will sometimes treat a node selection as a
|
|
7722
7722
|
// cursor, but still report that the node is selected
|
|
7723
7723
|
// when asked through getSelection. You'll then get a
|
|
@@ -7741,7 +7741,7 @@ K.touchmove = (t) => {
|
|
|
7741
7741
|
t.input.lastTouch = Date.now(), ze(t, "pointer");
|
|
7742
7742
|
};
|
|
7743
7743
|
K.contextmenu = (t) => Yr(t);
|
|
7744
|
-
function
|
|
7744
|
+
function Gs(t, e) {
|
|
7745
7745
|
return t.composing ? !0 : U && Math.abs(e.timeStamp - t.input.compositionEndedAt) < 500 ? (t.input.compositionEndedAt = -2e8, !0) : !1;
|
|
7746
7746
|
}
|
|
7747
7747
|
const wc = Ae ? 5e3 : -1;
|
|
@@ -7750,8 +7750,8 @@ Z.compositionstart = Z.compositionupdate = (t) => {
|
|
|
7750
7750
|
t.domObserver.flush();
|
|
7751
7751
|
let { state: e } = t, n = e.selection.$to;
|
|
7752
7752
|
if (e.selection instanceof F && (e.storedMarks || !n.textOffset && n.parentOffset && n.nodeBefore.marks.some((r) => r.type.spec.inclusive === !1)))
|
|
7753
|
-
t.markCursor = t.state.storedMarks || n.marks(),
|
|
7754
|
-
else if (
|
|
7753
|
+
t.markCursor = t.state.storedMarks || n.marks(), yn(t, !0), t.markCursor = null;
|
|
7754
|
+
else if (yn(t, !e.selection.empty), ue && e.selection.empty && n.parentOffset && !n.textOffset && n.nodeBefore.marks.length) {
|
|
7755
7755
|
let r = t.domSelectionRange();
|
|
7756
7756
|
for (let u = r.focusNode, i = r.focusOffset; u && u.nodeType == 1 && i != 0; ) {
|
|
7757
7757
|
let s = i < 0 ? u.lastChild : u.childNodes[i - 1];
|
|
@@ -7767,15 +7767,15 @@ Z.compositionstart = Z.compositionupdate = (t) => {
|
|
|
7767
7767
|
}
|
|
7768
7768
|
t.input.composing = !0;
|
|
7769
7769
|
}
|
|
7770
|
-
|
|
7770
|
+
Ys(t, wc);
|
|
7771
7771
|
};
|
|
7772
7772
|
Z.compositionend = (t, e) => {
|
|
7773
|
-
t.composing && (t.input.composing = !1, t.input.compositionEndedAt = e.timeStamp, t.input.compositionPendingChanges = t.domObserver.pendingRecords().length ? t.input.compositionID : 0, t.input.compositionNode = null, t.input.compositionPendingChanges && Promise.resolve().then(() => t.domObserver.flush()), t.input.compositionID++,
|
|
7773
|
+
t.composing && (t.input.composing = !1, t.input.compositionEndedAt = e.timeStamp, t.input.compositionPendingChanges = t.domObserver.pendingRecords().length ? t.input.compositionID : 0, t.input.compositionNode = null, t.input.compositionPendingChanges && Promise.resolve().then(() => t.domObserver.flush()), t.input.compositionID++, Ys(t, 20));
|
|
7774
7774
|
};
|
|
7775
|
-
function
|
|
7776
|
-
clearTimeout(t.input.composingTimeout), e > -1 && (t.input.composingTimeout = setTimeout(() =>
|
|
7775
|
+
function Ys(t, e) {
|
|
7776
|
+
clearTimeout(t.input.composingTimeout), e > -1 && (t.input.composingTimeout = setTimeout(() => yn(t), e));
|
|
7777
7777
|
}
|
|
7778
|
-
function
|
|
7778
|
+
function Xs(t) {
|
|
7779
7779
|
for (t.composing && (t.input.composing = !1, t.input.compositionEndedAt = Oc()); t.input.compositionNodes.length > 0; )
|
|
7780
7780
|
t.input.compositionNodes.pop().markParentsDirty();
|
|
7781
7781
|
}
|
|
@@ -7802,9 +7802,9 @@ function Oc() {
|
|
|
7802
7802
|
let t = document.createEvent("Event");
|
|
7803
7803
|
return t.initEvent("event", !0, !0), t.timeStamp;
|
|
7804
7804
|
}
|
|
7805
|
-
function
|
|
7805
|
+
function yn(t, e = !1) {
|
|
7806
7806
|
if (!(Ae && t.domObserver.flushingSoon >= 0)) {
|
|
7807
|
-
if (t.domObserver.forceFlush(),
|
|
7807
|
+
if (t.domObserver.forceFlush(), Xs(t), e || t.docView && t.docView.dirty) {
|
|
7808
7808
|
let n = jr(t), r = t.state.selection;
|
|
7809
7809
|
return n && !n.eq(r) ? t.dispatch(t.state.tr.setSelection(n)) : (t.markCursor || e) && !r.$from.node(r.$from.sharedDepth(r.to)).inlineContent ? t.dispatch(t.state.tr.deleteSelection()) : t.updateState(t.state), !0;
|
|
7810
7810
|
}
|
|
@@ -7843,7 +7843,7 @@ function Ic(t, e) {
|
|
|
7843
7843
|
}, 50);
|
|
7844
7844
|
}
|
|
7845
7845
|
function qt(t, e, n, r, u) {
|
|
7846
|
-
let i =
|
|
7846
|
+
let i = Ws(t, e, n, r, t.state.selection.$from);
|
|
7847
7847
|
if (t.someProp("handlePaste", (l) => l(t, u, i || D.empty)))
|
|
7848
7848
|
return !0;
|
|
7849
7849
|
if (!i)
|
|
@@ -7851,7 +7851,7 @@ function qt(t, e, n, r, u) {
|
|
|
7851
7851
|
let s = Nc(i), o = s ? t.state.tr.replaceSelectionWith(s, r) : t.state.tr.replaceSelection(i);
|
|
7852
7852
|
return t.dispatch(o.scrollIntoView().setMeta("paste", !0).setMeta("uiEvent", "paste")), !0;
|
|
7853
7853
|
}
|
|
7854
|
-
function
|
|
7854
|
+
function Qs(t) {
|
|
7855
7855
|
let e = t.getData("text/plain") || t.getData("Text");
|
|
7856
7856
|
if (e)
|
|
7857
7857
|
return e;
|
|
@@ -7863,15 +7863,15 @@ Z.paste = (t, e) => {
|
|
|
7863
7863
|
if (t.composing && !Ae)
|
|
7864
7864
|
return;
|
|
7865
7865
|
let r = Lt ? null : n.clipboardData, u = t.input.shiftKey && t.input.lastKeyCode != 45;
|
|
7866
|
-
r && qt(t,
|
|
7866
|
+
r && qt(t, Qs(r), r.getData("text/html"), u, n) ? n.preventDefault() : Ic(t, n);
|
|
7867
7867
|
};
|
|
7868
|
-
class
|
|
7868
|
+
class eo {
|
|
7869
7869
|
constructor(e, n, r) {
|
|
7870
7870
|
this.slice = e, this.move = n, this.node = r;
|
|
7871
7871
|
}
|
|
7872
7872
|
}
|
|
7873
7873
|
const Rc = ne ? "altKey" : "ctrlKey";
|
|
7874
|
-
function
|
|
7874
|
+
function to(t, e) {
|
|
7875
7875
|
let n = t.someProp("dragCopies", (r) => !r(e));
|
|
7876
7876
|
return n ?? !e[Rc];
|
|
7877
7877
|
}
|
|
@@ -7879,7 +7879,7 @@ K.dragstart = (t, e) => {
|
|
|
7879
7879
|
let n = e, r = t.input.mouseDown;
|
|
7880
7880
|
if (r && r.done(), !n.dataTransfer)
|
|
7881
7881
|
return;
|
|
7882
|
-
let u = t.state.selection, i = u.empty ? null : t.posAtCoords(
|
|
7882
|
+
let u = t.state.selection, i = u.empty ? null : t.posAtCoords(In(n)), s;
|
|
7883
7883
|
if (!(i && i.pos >= u.from && i.pos <= (u instanceof A ? u.to - 1 : u.to))) {
|
|
7884
7884
|
if (r && r.mightDrag)
|
|
7885
7885
|
s = A.create(t.state.doc, r.mightDrag.pos);
|
|
@@ -7889,7 +7889,7 @@ K.dragstart = (t, e) => {
|
|
|
7889
7889
|
}
|
|
7890
7890
|
}
|
|
7891
7891
|
let o = (s || t.state.selection).content(), { dom: l, text: a, slice: c } = Kr(t, o);
|
|
7892
|
-
(!n.dataTransfer.files.length || !H ||
|
|
7892
|
+
(!n.dataTransfer.files.length || !H || Ms > 120) && n.dataTransfer.clearData(), n.dataTransfer.setData(Lt ? "Text" : "text/html", l.innerHTML), n.dataTransfer.effectAllowed = "copyMove", Lt || n.dataTransfer.setData("text/plain", a), t.dragging = new eo(c, to(t, n), s);
|
|
7893
7893
|
};
|
|
7894
7894
|
K.dragend = (t) => {
|
|
7895
7895
|
let e = t.dragging;
|
|
@@ -7902,14 +7902,14 @@ Z.drop = (t, e) => {
|
|
|
7902
7902
|
let n = e, r = t.dragging;
|
|
7903
7903
|
if (t.dragging = null, !n.dataTransfer)
|
|
7904
7904
|
return;
|
|
7905
|
-
let u = t.posAtCoords(
|
|
7905
|
+
let u = t.posAtCoords(In(n));
|
|
7906
7906
|
if (!u)
|
|
7907
7907
|
return;
|
|
7908
7908
|
let i = t.state.doc.resolve(u.pos), s = r && r.slice;
|
|
7909
7909
|
s ? t.someProp("transformPasted", (d) => {
|
|
7910
7910
|
s = d(s, t, !1);
|
|
7911
|
-
}) : s =
|
|
7912
|
-
let o = !!(r &&
|
|
7911
|
+
}) : s = Ws(t, Qs(n.dataTransfer), Lt ? null : n.dataTransfer.getData("text/html"), !1, i);
|
|
7912
|
+
let o = !!(r && to(t, n));
|
|
7913
7913
|
if (t.someProp("handleDrop", (d) => d(t, n, s || D.empty, o))) {
|
|
7914
7914
|
n.preventDefault();
|
|
7915
7915
|
return;
|
|
@@ -7970,7 +7970,7 @@ function Vt(t, e) {
|
|
|
7970
7970
|
return !1;
|
|
7971
7971
|
return !0;
|
|
7972
7972
|
}
|
|
7973
|
-
class
|
|
7973
|
+
class Cn {
|
|
7974
7974
|
constructor(e, n) {
|
|
7975
7975
|
this.toDOM = e, this.spec = n || Xe, this.side = this.spec.side || 0;
|
|
7976
7976
|
}
|
|
@@ -7982,7 +7982,7 @@ class yn {
|
|
|
7982
7982
|
return !0;
|
|
7983
7983
|
}
|
|
7984
7984
|
eq(e) {
|
|
7985
|
-
return this == e || e instanceof
|
|
7985
|
+
return this == e || e instanceof Cn && (this.spec.key && this.spec.key == e.spec.key || this.toDOM == e.toDOM && Vt(this.spec, e.spec));
|
|
7986
7986
|
}
|
|
7987
7987
|
destroy(e) {
|
|
7988
7988
|
this.spec.destroy && this.spec.destroy(e);
|
|
@@ -8063,7 +8063,7 @@ class ce {
|
|
|
8063
8063
|
widget's current document position.
|
|
8064
8064
|
*/
|
|
8065
8065
|
static widget(e, n, r) {
|
|
8066
|
-
return new ce(e, e, new
|
|
8066
|
+
return new ce(e, e, new Cn(n, r));
|
|
8067
8067
|
}
|
|
8068
8068
|
/**
|
|
8069
8069
|
Creates an inline decoration, which adds the given attributes to
|
|
@@ -8097,7 +8097,7 @@ class ce {
|
|
|
8097
8097
|
@internal
|
|
8098
8098
|
*/
|
|
8099
8099
|
get widget() {
|
|
8100
|
-
return this.type instanceof
|
|
8100
|
+
return this.type instanceof Cn;
|
|
8101
8101
|
}
|
|
8102
8102
|
}
|
|
8103
8103
|
const at = [], Xe = {};
|
|
@@ -8114,7 +8114,7 @@ class v {
|
|
|
8114
8114
|
you must make a copy if you want need to preserve that.
|
|
8115
8115
|
*/
|
|
8116
8116
|
static create(e, n) {
|
|
8117
|
-
return n.length ?
|
|
8117
|
+
return n.length ? Dn(n, e, 0, Xe) : $;
|
|
8118
8118
|
}
|
|
8119
8119
|
/**
|
|
8120
8120
|
Find all decorations in this set which touch the given range
|
|
@@ -8170,13 +8170,13 @@ class v {
|
|
|
8170
8170
|
let u, i = 0;
|
|
8171
8171
|
e.forEach((o, l) => {
|
|
8172
8172
|
let a = l + r, c;
|
|
8173
|
-
if (c =
|
|
8173
|
+
if (c = ro(n, o, a)) {
|
|
8174
8174
|
for (u || (u = this.children.slice()); i < u.length && u[i] < l; )
|
|
8175
8175
|
i += 3;
|
|
8176
|
-
u[i] == l ? u[i + 2] = u[i + 2].addInner(o, c, a + 1) : u.splice(i, 0, l, l + o.nodeSize,
|
|
8176
|
+
u[i] == l ? u[i + 2] = u[i + 2].addInner(o, c, a + 1) : u.splice(i, 0, l, l + o.nodeSize, Dn(c, o, a + 1, Xe)), i += 3;
|
|
8177
8177
|
}
|
|
8178
8178
|
});
|
|
8179
|
-
let s =
|
|
8179
|
+
let s = no(i ? uo(n) : n, -r);
|
|
8180
8180
|
for (let o = 0; o < s.length; o++)
|
|
8181
8181
|
s[o].type.valid(e, s[o]) || s.splice(o--, 1);
|
|
8182
8182
|
return new v(s.length ? this.local.concat(s).sort(Qe) : this.local, u || this.children);
|
|
@@ -8369,7 +8369,7 @@ function Bc(t, e, n, r, u, i, s) {
|
|
|
8369
8369
|
l = !0;
|
|
8370
8370
|
}
|
|
8371
8371
|
if (l) {
|
|
8372
|
-
let a = vc(o, t, e, n, u, i, s), c =
|
|
8372
|
+
let a = vc(o, t, e, n, u, i, s), c = Dn(a, r, 0, s);
|
|
8373
8373
|
e = c.local;
|
|
8374
8374
|
for (let f = 0; f < o.length; f += 3)
|
|
8375
8375
|
o[f + 1] < 0 && (o.splice(f, 3), f -= 3);
|
|
@@ -8382,7 +8382,7 @@ function Bc(t, e, n, r, u, i, s) {
|
|
|
8382
8382
|
}
|
|
8383
8383
|
return new v(e.sort(Qe), o);
|
|
8384
8384
|
}
|
|
8385
|
-
function
|
|
8385
|
+
function no(t, e) {
|
|
8386
8386
|
if (!e || !t.length)
|
|
8387
8387
|
return t;
|
|
8388
8388
|
let n = [];
|
|
@@ -8405,7 +8405,7 @@ function vc(t, e, n, r, u, i, s) {
|
|
|
8405
8405
|
t[l + 1] == -1 && o(t[l + 2], e[l] + i + 1);
|
|
8406
8406
|
return n;
|
|
8407
8407
|
}
|
|
8408
|
-
function
|
|
8408
|
+
function ro(t, e, n) {
|
|
8409
8409
|
if (e.isLeaf)
|
|
8410
8410
|
return null;
|
|
8411
8411
|
let r = n + e.nodeSize, u = null;
|
|
@@ -8413,23 +8413,23 @@ function no(t, e, n) {
|
|
|
8413
8413
|
(s = t[i]) && s.from > n && s.to < r && ((u || (u = [])).push(s), t[i] = null);
|
|
8414
8414
|
return u;
|
|
8415
8415
|
}
|
|
8416
|
-
function
|
|
8416
|
+
function uo(t) {
|
|
8417
8417
|
let e = [];
|
|
8418
8418
|
for (let n = 0; n < t.length; n++)
|
|
8419
8419
|
t[n] != null && e.push(t[n]);
|
|
8420
8420
|
return e;
|
|
8421
8421
|
}
|
|
8422
|
-
function
|
|
8422
|
+
function Dn(t, e, n, r) {
|
|
8423
8423
|
let u = [], i = !1;
|
|
8424
8424
|
e.forEach((o, l) => {
|
|
8425
|
-
let a =
|
|
8425
|
+
let a = ro(t, o, l + n);
|
|
8426
8426
|
if (a) {
|
|
8427
8427
|
i = !0;
|
|
8428
|
-
let c =
|
|
8428
|
+
let c = Dn(a, o, n + l + 1, r);
|
|
8429
8429
|
c != $ && u.push(l, l + o.nodeSize, c);
|
|
8430
8430
|
}
|
|
8431
8431
|
});
|
|
8432
|
-
let s =
|
|
8432
|
+
let s = no(i ? uo(t) : t, -n).sort(Qe);
|
|
8433
8433
|
for (let o = 0; o < s.length; o++)
|
|
8434
8434
|
s[o].type.valid(e, s[o]) || (r.onRemove && r.onRemove(s[o].spec), s.splice(o--, 1));
|
|
8435
8435
|
return s.length || u.length ? new v(s, u) : $;
|
|
@@ -8460,7 +8460,7 @@ function ei(t, e, n) {
|
|
|
8460
8460
|
e++;
|
|
8461
8461
|
t.splice(e, 0, n);
|
|
8462
8462
|
}
|
|
8463
|
-
function
|
|
8463
|
+
function er(t) {
|
|
8464
8464
|
let e = [];
|
|
8465
8465
|
return t.someProp("decorations", (n) => {
|
|
8466
8466
|
let r = n(t.state);
|
|
@@ -8596,7 +8596,7 @@ class qc {
|
|
|
8596
8596
|
}
|
|
8597
8597
|
}
|
|
8598
8598
|
let a = null;
|
|
8599
|
-
i < 0 && u && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 &&
|
|
8599
|
+
i < 0 && u && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && Fn(r) && (a = jr(e)) && a.eq(O.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, Me(e), this.currentSelection.set(r), e.scrollToSelection()) : (i > -1 || u) && (i > -1 && (e.docView.markDirty(i, s), Vc(e)), this.handleDOMChange(i, s, o, l), e.docView && e.docView.dirty ? e.updateState(e.state) : this.currentSelection.eq(r) || Me(e), this.currentSelection.set(r));
|
|
8600
8600
|
}
|
|
8601
8601
|
registerMutation(e, n) {
|
|
8602
8602
|
if (n.indexOf(e.target) > -1)
|
|
@@ -8665,7 +8665,7 @@ function Wc(t, e) {
|
|
|
8665
8665
|
}
|
|
8666
8666
|
function Hc(t, e, n) {
|
|
8667
8667
|
let { node: r, fromOffset: u, toOffset: i, from: s, to: o } = t.docView.parseRange(e, n), l = t.domSelectionRange(), a, c = l.anchorNode;
|
|
8668
|
-
if (c && t.dom.contains(c.nodeType == 1 ? c : c.parentNode) && (a = [{ node: c, offset: l.anchorOffset }],
|
|
8668
|
+
if (c && t.dom.contains(c.nodeType == 1 ? c : c.parentNode) && (a = [{ node: c, offset: l.anchorOffset }], Fn(l) || a.push({ node: l.focusNode, offset: l.focusOffset })), H && t.input.lastKeyCode === 8)
|
|
8669
8669
|
for (let g = i; g > u; g--) {
|
|
8670
8670
|
let b = r.childNodes[g - 1], x = b.pmViewDesc;
|
|
8671
8671
|
if (b.nodeName == "BR" && !x) {
|
|
@@ -8808,7 +8808,7 @@ function Zc(t, e, n, r, u) {
|
|
|
8808
8808
|
if (
|
|
8809
8809
|
// The content must have shrunk
|
|
8810
8810
|
n - e <= u.pos - r.pos || // newEnd must point directly at or after the end of the block that newStart points into
|
|
8811
|
-
|
|
8811
|
+
tr(r, !0, !1) < u.pos
|
|
8812
8812
|
)
|
|
8813
8813
|
return !1;
|
|
8814
8814
|
let i = t.resolve(e);
|
|
@@ -8818,10 +8818,10 @@ function Zc(t, e, n, r, u) {
|
|
|
8818
8818
|
}
|
|
8819
8819
|
if (i.parentOffset < i.parent.content.size || !i.parent.isTextblock)
|
|
8820
8820
|
return !1;
|
|
8821
|
-
let s = t.resolve(
|
|
8822
|
-
return !s.parent.isTextblock || s.pos > n ||
|
|
8821
|
+
let s = t.resolve(tr(i, !0, !0));
|
|
8822
|
+
return !s.parent.isTextblock || s.pos > n || tr(s, !0, !1) < n ? !1 : r.parent.content.cut(r.parentOffset).eq(s.parent.content);
|
|
8823
8823
|
}
|
|
8824
|
-
function
|
|
8824
|
+
function tr(t, e, n) {
|
|
8825
8825
|
let r = t.depth, u = e ? t.end() : t.pos;
|
|
8826
8826
|
for (; r > 0 && (e || t.indexAfter(r) == t.node(r).childCount); )
|
|
8827
8827
|
r--, u++, e = !1;
|
|
@@ -8856,7 +8856,7 @@ function ii(t) {
|
|
|
8856
8856
|
let e = t.charCodeAt(0), n = t.charCodeAt(1);
|
|
8857
8857
|
return e >= 56320 && e <= 57343 && n >= 55296 && n <= 56319;
|
|
8858
8858
|
}
|
|
8859
|
-
class
|
|
8859
|
+
class io {
|
|
8860
8860
|
/**
|
|
8861
8861
|
Create a view. `place` may be a DOM node that the editor should
|
|
8862
8862
|
be appended to, a function that will place it into the document,
|
|
@@ -8865,7 +8865,7 @@ class uo {
|
|
|
8865
8865
|
added to the document.
|
|
8866
8866
|
*/
|
|
8867
8867
|
constructor(e, n) {
|
|
8868
|
-
this._root = null, this.focused = !1, this.trackWrites = null, this.mounted = !1, this.markCursor = null, this.cursorWrapper = null, this.lastSelectedViewDesc = void 0, this.input = new mc(), this.prevDirectPlugins = [], this.pluginViews = [], this.requiresGeckoHackNode = !1, this.dragging = null, this._props = n, this.state = n.state, this.directPlugins = n.plugins || [], this.directPlugins.forEach(ci), this.dispatch = this.dispatch.bind(this), this.dom = e && e.mount || document.createElement("div"), e && (e.appendChild ? e.appendChild(this.dom) : typeof e == "function" ? e(this.dom) : e.mount && (this.mounted = !0)), this.editable = li(this), oi(this), this.nodeViews = ai(this), this.docView = qu(this.state.doc, si(this),
|
|
8868
|
+
this._root = null, this.focused = !1, this.trackWrites = null, this.mounted = !1, this.markCursor = null, this.cursorWrapper = null, this.lastSelectedViewDesc = void 0, this.input = new mc(), this.prevDirectPlugins = [], this.pluginViews = [], this.requiresGeckoHackNode = !1, this.dragging = null, this._props = n, this.state = n.state, this.directPlugins = n.plugins || [], this.directPlugins.forEach(ci), this.dispatch = this.dispatch.bind(this), this.dom = e && e.mount || document.createElement("div"), e && (e.appendChild ? e.appendChild(this.dom) : typeof e == "function" ? e(this.dom) : e.mount && (this.mounted = !0)), this.editable = li(this), oi(this), this.nodeViews = ai(this), this.docView = qu(this.state.doc, si(this), er(this), this.dom, this), this.domObserver = new qc(this, (r, u, i, s) => Uc(this, r, u, i, s)), this.domObserver.start(), gc(this), this.updatePluginViews();
|
|
8869
8869
|
}
|
|
8870
8870
|
/**
|
|
8871
8871
|
Holds `true` when a
|
|
@@ -8921,14 +8921,14 @@ class uo {
|
|
|
8921
8921
|
updateStateInner(e, n) {
|
|
8922
8922
|
var r;
|
|
8923
8923
|
let u = this.state, i = !1, s = !1;
|
|
8924
|
-
e.storedMarks && this.composing && (
|
|
8924
|
+
e.storedMarks && this.composing && (Xs(this), s = !0), this.state = e;
|
|
8925
8925
|
let o = u.plugins != e.plugins || this._props.plugins != n.plugins;
|
|
8926
8926
|
if (o || this._props.plugins != n.plugins || this._props.nodeViews != n.nodeViews) {
|
|
8927
8927
|
let h = ai(this);
|
|
8928
8928
|
Xc(h, this.nodeViews) && (this.nodeViews = h, i = !0);
|
|
8929
8929
|
}
|
|
8930
8930
|
(o || n.handleDOMEvents != this._props.handleDOMEvents) && Rr(this), this.editable = li(this), oi(this);
|
|
8931
|
-
let l =
|
|
8931
|
+
let l = er(this), a = si(this), c = u.plugins != e.plugins && !u.doc.eq(e.doc) ? "reset" : e.scrollToSelection > u.scrollToSelection ? "to selection" : "preserve", f = i || !this.docView.matchesNode(e.doc, a, l);
|
|
8932
8932
|
(f || !e.selection.eq(u.selection)) && (s = !0);
|
|
8933
8933
|
let p = c == "preserve" && s && this.dom.style.overflowAnchor == null && Oa(this);
|
|
8934
8934
|
if (s) {
|
|
@@ -8938,7 +8938,7 @@ class uo {
|
|
|
8938
8938
|
let d = H ? this.trackWrites = this.domSelectionRange().focusNode : null;
|
|
8939
8939
|
this.composing && (this.input.compositionNode = Tc(this)), (i || !this.docView.update(e.doc, a, l, this)) && (this.docView.updateOuterDeco(a), this.docView.destroy(), this.docView = qu(e.doc, a, l, this.dom, this)), d && !this.trackWrites && (h = !0);
|
|
8940
8940
|
}
|
|
8941
|
-
h || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && ec(this)) ? Me(this, h) : (
|
|
8941
|
+
h || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && ec(this)) ? Me(this, h) : (qs(this, e.selection), this.domObserver.setCurSelection()), this.domObserver.start();
|
|
8942
8942
|
}
|
|
8943
8943
|
this.updatePluginViews(u), !((r = this.dragging) === null || r === void 0) && r.node && !u.doc.eq(e.doc) && this.updateDraggedNode(this.dragging, u), c == "reset" ? this.dom.scrollTop = 0 : c == "to selection" ? this.scrollToSelection() : p && Fa(p);
|
|
8944
8944
|
}
|
|
@@ -8985,7 +8985,7 @@ class uo {
|
|
|
8985
8985
|
let i = r.from + (this.state.doc.content.size - n.doc.content.size);
|
|
8986
8986
|
(i > 0 && this.state.doc.nodeAt(i)) == r.node && (u = i);
|
|
8987
8987
|
}
|
|
8988
|
-
this.dragging = new
|
|
8988
|
+
this.dragging = new eo(e.slice, e.move, u < 0 ? void 0 : A.create(this.state.doc, u));
|
|
8989
8989
|
}
|
|
8990
8990
|
someProp(e, n) {
|
|
8991
8991
|
let r = this._props && this._props[e], u;
|
|
@@ -9072,7 +9072,7 @@ class uo {
|
|
|
9072
9072
|
otherwise the element after.
|
|
9073
9073
|
*/
|
|
9074
9074
|
coordsAtPos(e, n = 1) {
|
|
9075
|
-
return
|
|
9075
|
+
return Ns(this, e, n);
|
|
9076
9076
|
}
|
|
9077
9077
|
/**
|
|
9078
9078
|
Find the DOM position that corresponds to the given document
|
|
@@ -9158,7 +9158,7 @@ class uo {
|
|
|
9158
9158
|
views](https://prosemirror.net/docs/ref/#view.NodeView).
|
|
9159
9159
|
*/
|
|
9160
9160
|
destroy() {
|
|
9161
|
-
this.docView && (bc(this), this.destroyPluginViews(), this.mounted ? (this.docView.update(this.state.doc, [],
|
|
9161
|
+
this.docView && (bc(this), this.destroyPluginViews(), this.mounted ? (this.docView.update(this.state.doc, [], er(this), this), this.dom.textContent = "") : this.dom.parentNode && this.dom.parentNode.removeChild(this.dom), this.docView.destroy(), this.docView = null, ka());
|
|
9162
9162
|
}
|
|
9163
9163
|
/**
|
|
9164
9164
|
This is true when the view has been
|
|
@@ -9188,7 +9188,7 @@ class uo {
|
|
|
9188
9188
|
return this.root.getSelection();
|
|
9189
9189
|
}
|
|
9190
9190
|
}
|
|
9191
|
-
|
|
9191
|
+
io.prototype.dispatch = function(t) {
|
|
9192
9192
|
let e = this._props.dispatchTransaction;
|
|
9193
9193
|
e ? e.call(this, t) : this.updateState(this.state.apply(t));
|
|
9194
9194
|
};
|
|
@@ -9530,7 +9530,7 @@ function eu(t) {
|
|
|
9530
9530
|
let e = "";
|
|
9531
9531
|
return e += t.protocol || "", e += t.slashes ? "//" : "", e += t.auth ? t.auth + "@" : "", t.hostname && t.hostname.indexOf(":") !== -1 ? e += "[" + t.hostname + "]" : e += t.hostname || "", e += t.port ? ":" + t.port : "", e += t.pathname || "", e += t.search || "", e += t.hash || "", e;
|
|
9532
9532
|
}
|
|
9533
|
-
function
|
|
9533
|
+
function _n() {
|
|
9534
9534
|
this.protocol = null, this.slashes = null, this.auth = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.pathname = null;
|
|
9535
9535
|
}
|
|
9536
9536
|
const d0 = /^([a-z0-9.+-]+:)/i, h0 = /:[0-9]*$/, p0 = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, m0 = ["<", ">", '"', "`", " ", "\r", `
|
|
@@ -9550,11 +9550,11 @@ const d0 = /^([a-z0-9.+-]+:)/i, h0 = /:[0-9]*$/, p0 = /^(\/\/?(?!\/)[^\?\s]*)(\?
|
|
|
9550
9550
|
"file:": !0
|
|
9551
9551
|
};
|
|
9552
9552
|
function tu(t, e) {
|
|
9553
|
-
if (t && t instanceof
|
|
9554
|
-
const n = new
|
|
9553
|
+
if (t && t instanceof _n) return t;
|
|
9554
|
+
const n = new _n();
|
|
9555
9555
|
return n.parse(t, e), n;
|
|
9556
9556
|
}
|
|
9557
|
-
|
|
9557
|
+
_n.prototype.parse = function(t, e) {
|
|
9558
9558
|
let n, r, u, i = t;
|
|
9559
9559
|
if (i = i.trim(), !e && t.split("#").length === 1) {
|
|
9560
9560
|
const a = p0.exec(i);
|
|
@@ -9597,7 +9597,7 @@ Dn.prototype.parse = function(t, e) {
|
|
|
9597
9597
|
const l = i.indexOf("?");
|
|
9598
9598
|
return l !== -1 && (this.search = i.substr(l), i = i.slice(0, l)), i && (this.pathname = i), bi[n] && this.hostname && !this.pathname && (this.pathname = ""), this;
|
|
9599
9599
|
};
|
|
9600
|
-
|
|
9600
|
+
_n.prototype.parseHost = function(t) {
|
|
9601
9601
|
let e = h0.exec(t);
|
|
9602
9602
|
e && (e = e[0], e !== ":" && (this.port = e.substr(1)), t = t.substr(0, t.length - e.length)), t && (this.hostname = t);
|
|
9603
9603
|
};
|
|
@@ -9607,14 +9607,14 @@ const y0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9607
9607
|
encode: Zt,
|
|
9608
9608
|
format: eu,
|
|
9609
9609
|
parse: tu
|
|
9610
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
9610
|
+
}, Symbol.toStringTag, { value: "Module" })), so = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, oo = /[\0-\x1F\x7F-\x9F]/, C0 = /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/, nu = /[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/, lo = /[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/, ao = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, D0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9611
9611
|
__proto__: null,
|
|
9612
|
-
Any:
|
|
9613
|
-
Cc:
|
|
9612
|
+
Any: so,
|
|
9613
|
+
Cc: oo,
|
|
9614
9614
|
Cf: C0,
|
|
9615
9615
|
P: nu,
|
|
9616
|
-
S:
|
|
9617
|
-
Z:
|
|
9616
|
+
S: lo,
|
|
9617
|
+
Z: ao
|
|
9618
9618
|
}, Symbol.toStringTag, { value: "Module" })), _0 = new Uint16Array(
|
|
9619
9619
|
// prettier-ignore
|
|
9620
9620
|
'ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((t) => t.charCodeAt(0))
|
|
@@ -9622,7 +9622,7 @@ const y0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9622
9622
|
// prettier-ignore
|
|
9623
9623
|
"Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((t) => t.charCodeAt(0))
|
|
9624
9624
|
);
|
|
9625
|
-
var
|
|
9625
|
+
var nr;
|
|
9626
9626
|
const S0 = /* @__PURE__ */ new Map([
|
|
9627
9627
|
[0, 65533],
|
|
9628
9628
|
// C1 Unicode control character reference replacements
|
|
@@ -9655,7 +9655,7 @@ const S0 = /* @__PURE__ */ new Map([
|
|
|
9655
9655
|
[159, 376]
|
|
9656
9656
|
]), A0 = (
|
|
9657
9657
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition, node/no-unsupported-features/es-builtins
|
|
9658
|
-
(
|
|
9658
|
+
(nr = String.fromCodePoint) !== null && nr !== void 0 ? nr : function(t) {
|
|
9659
9659
|
let e = "";
|
|
9660
9660
|
return t > 65535 && (t -= 65536, e += String.fromCharCode(t >>> 10 & 1023 | 55296), t = 56320 | t & 1023), e += String.fromCharCode(t), e;
|
|
9661
9661
|
}
|
|
@@ -9881,7 +9881,7 @@ class N0 {
|
|
|
9881
9881
|
}
|
|
9882
9882
|
}
|
|
9883
9883
|
}
|
|
9884
|
-
function
|
|
9884
|
+
function co(t) {
|
|
9885
9885
|
let e = "";
|
|
9886
9886
|
const n = new N0(t, (r) => e += A0(r));
|
|
9887
9887
|
return function(u, i) {
|
|
@@ -9923,9 +9923,9 @@ function I0(t, e, n, r) {
|
|
|
9923
9923
|
}
|
|
9924
9924
|
return -1;
|
|
9925
9925
|
}
|
|
9926
|
-
const R0 =
|
|
9927
|
-
|
|
9928
|
-
function
|
|
9926
|
+
const R0 = co(_0);
|
|
9927
|
+
co(E0);
|
|
9928
|
+
function fo(t, e = Re.Legacy) {
|
|
9929
9929
|
return R0(t, e);
|
|
9930
9930
|
}
|
|
9931
9931
|
function B0(t) {
|
|
@@ -9938,7 +9938,7 @@ const v0 = Object.prototype.hasOwnProperty;
|
|
|
9938
9938
|
function z0(t, e) {
|
|
9939
9939
|
return v0.call(t, e);
|
|
9940
9940
|
}
|
|
9941
|
-
function
|
|
9941
|
+
function Rn(t) {
|
|
9942
9942
|
return Array.prototype.slice.call(arguments, 1).forEach(function(n) {
|
|
9943
9943
|
if (n) {
|
|
9944
9944
|
if (typeof n != "object")
|
|
@@ -9949,13 +9949,13 @@ function In(t) {
|
|
|
9949
9949
|
}
|
|
9950
9950
|
}), t;
|
|
9951
9951
|
}
|
|
9952
|
-
function
|
|
9952
|
+
function ho(t, e, n) {
|
|
9953
9953
|
return [].concat(t.slice(0, e), n, t.slice(e + 1));
|
|
9954
9954
|
}
|
|
9955
9955
|
function uu(t) {
|
|
9956
9956
|
return !(t >= 55296 && t <= 57343 || t >= 64976 && t <= 65007 || (t & 65535) === 65535 || (t & 65535) === 65534 || t >= 0 && t <= 8 || t === 11 || t >= 14 && t <= 31 || t >= 127 && t <= 159 || t > 1114111);
|
|
9957
9957
|
}
|
|
9958
|
-
function
|
|
9958
|
+
function En(t) {
|
|
9959
9959
|
if (t > 65535) {
|
|
9960
9960
|
t -= 65536;
|
|
9961
9961
|
const e = 55296 + (t >> 10), n = 56320 + (t & 1023);
|
|
@@ -9963,17 +9963,17 @@ function _n(t) {
|
|
|
9963
9963
|
}
|
|
9964
9964
|
return String.fromCharCode(t);
|
|
9965
9965
|
}
|
|
9966
|
-
const
|
|
9966
|
+
const po = /\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g, P0 = /&([a-z#][a-z0-9]{1,31});/gi, L0 = new RegExp(po.source + "|" + P0.source, "gi"), q0 = /^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;
|
|
9967
9967
|
function V0(t, e) {
|
|
9968
9968
|
if (e.charCodeAt(0) === 35 && q0.test(e)) {
|
|
9969
9969
|
const r = e[1].toLowerCase() === "x" ? parseInt(e.slice(2), 16) : parseInt(e.slice(1), 10);
|
|
9970
|
-
return uu(r) ?
|
|
9970
|
+
return uu(r) ? En(r) : t;
|
|
9971
9971
|
}
|
|
9972
|
-
const n =
|
|
9972
|
+
const n = fo(t);
|
|
9973
9973
|
return n !== t ? n : t;
|
|
9974
9974
|
}
|
|
9975
9975
|
function $0(t) {
|
|
9976
|
-
return t.indexOf("\\") < 0 ? t : t.replace(
|
|
9976
|
+
return t.indexOf("\\") < 0 ? t : t.replace(po, "$1");
|
|
9977
9977
|
}
|
|
9978
9978
|
function bt(t) {
|
|
9979
9979
|
return t.indexOf("\\") < 0 && t.indexOf("&") < 0 ? t : t.replace(L0, function(e, n, r) {
|
|
@@ -10029,7 +10029,7 @@ function $t(t) {
|
|
|
10029
10029
|
return !1;
|
|
10030
10030
|
}
|
|
10031
10031
|
function Wt(t) {
|
|
10032
|
-
return nu.test(t) ||
|
|
10032
|
+
return nu.test(t) || lo.test(t);
|
|
10033
10033
|
}
|
|
10034
10034
|
function Ht(t) {
|
|
10035
10035
|
switch (t) {
|
|
@@ -10070,16 +10070,16 @@ function Ht(t) {
|
|
|
10070
10070
|
return !1;
|
|
10071
10071
|
}
|
|
10072
10072
|
}
|
|
10073
|
-
function
|
|
10073
|
+
function Bn(t) {
|
|
10074
10074
|
return t = t.trim().replace(/\s+/g, " "), "ẞ".toLowerCase() === "Ṿ" && (t = t.replace(/ẞ/g, "ß")), t.toLowerCase().toUpperCase();
|
|
10075
10075
|
}
|
|
10076
10076
|
const Z0 = { mdurl: y0, ucmicro: D0 }, G0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10077
10077
|
__proto__: null,
|
|
10078
|
-
arrayReplaceAt:
|
|
10079
|
-
assign:
|
|
10078
|
+
arrayReplaceAt: ho,
|
|
10079
|
+
assign: Rn,
|
|
10080
10080
|
escapeHtml: $e,
|
|
10081
10081
|
escapeRE: K0,
|
|
10082
|
-
fromCodePoint:
|
|
10082
|
+
fromCodePoint: En,
|
|
10083
10083
|
has: z0,
|
|
10084
10084
|
isMdAsciiPunct: Ht,
|
|
10085
10085
|
isPunctChar: Wt,
|
|
@@ -10088,7 +10088,7 @@ const Z0 = { mdurl: y0, ucmicro: D0 }, G0 = /* @__PURE__ */ Object.freeze(/* @__
|
|
|
10088
10088
|
isValidEntityCode: uu,
|
|
10089
10089
|
isWhiteSpace: $t,
|
|
10090
10090
|
lib: Z0,
|
|
10091
|
-
normalizeReference:
|
|
10091
|
+
normalizeReference: Bn,
|
|
10092
10092
|
unescapeAll: bt,
|
|
10093
10093
|
unescapeMd: $0
|
|
10094
10094
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -10246,7 +10246,7 @@ De.html_inline = function(t, e) {
|
|
|
10246
10246
|
return t[e].content;
|
|
10247
10247
|
};
|
|
10248
10248
|
function yt() {
|
|
10249
|
-
this.rules =
|
|
10249
|
+
this.rules = Rn({}, De);
|
|
10250
10250
|
}
|
|
10251
10251
|
yt.prototype.renderAttrs = function(e) {
|
|
10252
10252
|
let n, r, u;
|
|
@@ -10431,10 +10431,10 @@ fe.prototype.attrJoin = function(e, n) {
|
|
|
10431
10431
|
const r = this.attrIndex(e);
|
|
10432
10432
|
r < 0 ? this.attrPush([e, n]) : this.attrs[r][1] = this.attrs[r][1] + " " + n;
|
|
10433
10433
|
};
|
|
10434
|
-
function
|
|
10434
|
+
function mo(t, e, n) {
|
|
10435
10435
|
this.src = t, this.env = n, this.tokens = [], this.inlineMode = !1, this.md = e;
|
|
10436
10436
|
}
|
|
10437
|
-
|
|
10437
|
+
mo.prototype.Token = fe;
|
|
10438
10438
|
const tf = /\r\n?|\n/g, nf = /\0/g;
|
|
10439
10439
|
function rf(t) {
|
|
10440
10440
|
let e;
|
|
@@ -10500,12 +10500,12 @@ function af(t) {
|
|
|
10500
10500
|
const h = new t.Token("text", "", 0);
|
|
10501
10501
|
h.content = l.slice(p), h.level = f, c.push(h);
|
|
10502
10502
|
}
|
|
10503
|
-
e[n].children = u =
|
|
10503
|
+
e[n].children = u = ho(u, s, c);
|
|
10504
10504
|
}
|
|
10505
10505
|
}
|
|
10506
10506
|
}
|
|
10507
10507
|
}
|
|
10508
|
-
const
|
|
10508
|
+
const go = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/, cf = /\((c|tm|r)\)/i, ff = /\((c|tm|r)\)/ig, df = {
|
|
10509
10509
|
c: "©",
|
|
10510
10510
|
r: "®",
|
|
10511
10511
|
tm: "™"
|
|
@@ -10524,14 +10524,14 @@ function mf(t) {
|
|
|
10524
10524
|
let e = 0;
|
|
10525
10525
|
for (let n = t.length - 1; n >= 0; n--) {
|
|
10526
10526
|
const r = t[n];
|
|
10527
|
-
r.type === "text" && !e &&
|
|
10527
|
+
r.type === "text" && !e && go.test(r.content) && (r.content = r.content.replace(/\+-/g, "±").replace(/\.{2,}/g, "…").replace(/([?!])…/g, "$1..").replace(/([?!]){4,}/g, "$1$1$1").replace(/,{2,}/g, ",").replace(/(^|[^-])---(?=[^-]|$)/mg, "$1—").replace(/(^|\s)--(?=\s|$)/mg, "$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg, "$1–")), r.type === "link_open" && r.info === "auto" && e--, r.type === "link_close" && r.info === "auto" && e++;
|
|
10528
10528
|
}
|
|
10529
10529
|
}
|
|
10530
10530
|
function gf(t) {
|
|
10531
10531
|
let e;
|
|
10532
10532
|
if (t.md.options.typographer)
|
|
10533
10533
|
for (e = t.tokens.length - 1; e >= 0; e--)
|
|
10534
|
-
t.tokens[e].type === "inline" && (cf.test(t.tokens[e].content) && pf(t.tokens[e].children),
|
|
10534
|
+
t.tokens[e].type === "inline" && (cf.test(t.tokens[e].content) && pf(t.tokens[e].children), go.test(t.tokens[e].content) && mf(t.tokens[e].children));
|
|
10535
10535
|
}
|
|
10536
10536
|
const bf = /['"]/, xi = /['"]/g, ki = "’";
|
|
10537
10537
|
function un(t, e, n) {
|
|
@@ -10622,7 +10622,7 @@ function yf(t) {
|
|
|
10622
10622
|
e !== n && (s.length = n);
|
|
10623
10623
|
}
|
|
10624
10624
|
}
|
|
10625
|
-
const
|
|
10625
|
+
const rr = [
|
|
10626
10626
|
["normalize", rf],
|
|
10627
10627
|
["block", uf],
|
|
10628
10628
|
["inline", sf],
|
|
@@ -10635,15 +10635,15 @@ const nr = [
|
|
|
10635
10635
|
];
|
|
10636
10636
|
function iu() {
|
|
10637
10637
|
this.ruler = new Y();
|
|
10638
|
-
for (let t = 0; t <
|
|
10639
|
-
this.ruler.push(
|
|
10638
|
+
for (let t = 0; t < rr.length; t++)
|
|
10639
|
+
this.ruler.push(rr[t][0], rr[t][1]);
|
|
10640
10640
|
}
|
|
10641
10641
|
iu.prototype.process = function(t) {
|
|
10642
10642
|
const e = this.ruler.getRules("");
|
|
10643
10643
|
for (let n = 0, r = e.length; n < r; n++)
|
|
10644
10644
|
e[n](t);
|
|
10645
10645
|
};
|
|
10646
|
-
iu.prototype.State =
|
|
10646
|
+
iu.prototype.State = mo;
|
|
10647
10647
|
function _e(t, e, n, r) {
|
|
10648
10648
|
this.src = t, this.md = e, this.env = n, this.tokens = r, this.bMarks = [], this.eMarks = [], this.tShift = [], this.sCount = [], this.bsCount = [], this.blkIndent = 0, this.line = 0, this.lineMax = 0, this.tight = !1, this.ddIndent = -1, this.listIndent = -1, this.parentType = "root", this.level = 0;
|
|
10649
10649
|
const u = this.src;
|
|
@@ -10724,7 +10724,7 @@ _e.prototype.getLines = function(e, n, r, u) {
|
|
|
10724
10724
|
};
|
|
10725
10725
|
_e.prototype.Token = fe;
|
|
10726
10726
|
const Cf = 65536;
|
|
10727
|
-
function
|
|
10727
|
+
function ur(t, e) {
|
|
10728
10728
|
const n = t.bMarks[e] + t.tShift[e], r = t.eMarks[e];
|
|
10729
10729
|
return t.src.slice(n, r);
|
|
10730
10730
|
}
|
|
@@ -10756,7 +10756,7 @@ function Df(t, e, n, r) {
|
|
|
10756
10756
|
return !1;
|
|
10757
10757
|
i++;
|
|
10758
10758
|
}
|
|
10759
|
-
let l =
|
|
10759
|
+
let l = ur(t, e + 1), a = l.split("|");
|
|
10760
10760
|
const c = [];
|
|
10761
10761
|
for (let C = 0; C < a.length; C++) {
|
|
10762
10762
|
const S = a[C].trim();
|
|
@@ -10769,7 +10769,7 @@ function Df(t, e, n, r) {
|
|
|
10769
10769
|
return !1;
|
|
10770
10770
|
S.charCodeAt(S.length - 1) === 58 ? c.push(S.charCodeAt(0) === 58 ? "center" : "right") : S.charCodeAt(0) === 58 ? c.push("left") : c.push("");
|
|
10771
10771
|
}
|
|
10772
|
-
if (l =
|
|
10772
|
+
if (l = ur(t, e).trim(), l.indexOf("|") === -1 || t.sCount[e] - t.blkIndent >= 4)
|
|
10773
10773
|
return !1;
|
|
10774
10774
|
a = yi(l), a.length && a[0] === "" && a.shift(), a.length && a[a.length - 1] === "" && a.pop();
|
|
10775
10775
|
const f = a.length;
|
|
@@ -10800,7 +10800,7 @@ function Df(t, e, n, r) {
|
|
|
10800
10800
|
C = !0;
|
|
10801
10801
|
break;
|
|
10802
10802
|
}
|
|
10803
|
-
if (C || (l =
|
|
10803
|
+
if (C || (l = ur(t, u).trim(), !l) || t.sCount[u] - t.blkIndent >= 4 || (a = yi(l), a.length && a[0] === "" && a.shift(), a.length && a[a.length - 1] === "" && a.pop(), k += f - a.length, k > Cf))
|
|
10804
10804
|
break;
|
|
10805
10805
|
if (u === e + 2) {
|
|
10806
10806
|
const E = t.push("tbody_open", "tbody", 1);
|
|
@@ -11027,11 +11027,11 @@ function wf(t, e, n, r) {
|
|
|
11027
11027
|
o = t.push("list_item_open", "li", 1), o.markup = String.fromCharCode(d);
|
|
11028
11028
|
const T = [l, 0];
|
|
11029
11029
|
o.map = T, f && (o.info = t.src.slice(s, h - 1));
|
|
11030
|
-
const oe = t.tight, Ct = t.tShift[l],
|
|
11031
|
-
if (t.listIndent = t.blkIndent, t.blkIndent = w, t.tight = !0, t.tShift[l] = E - t.bMarks[l], t.sCount[l] = S, E >= u && t.isEmpty(l + 1) ? t.line = Math.min(t.line + 2, n) : t.md.block.tokenize(t, l, n, !0), (!t.tight || b) && (a = !1), b = t.line - l > 1 && t.isEmpty(t.line - 1), t.blkIndent = t.listIndent, t.listIndent = Dt, t.tShift[l] = Ct, t.sCount[l] =
|
|
11030
|
+
const oe = t.tight, Ct = t.tShift[l], qn = t.sCount[l], Dt = t.listIndent;
|
|
11031
|
+
if (t.listIndent = t.blkIndent, t.blkIndent = w, t.tight = !0, t.tShift[l] = E - t.bMarks[l], t.sCount[l] = S, E >= u && t.isEmpty(l + 1) ? t.line = Math.min(t.line + 2, n) : t.md.block.tokenize(t, l, n, !0), (!t.tight || b) && (a = !1), b = t.line - l > 1 && t.isEmpty(t.line - 1), t.blkIndent = t.listIndent, t.listIndent = Dt, t.tShift[l] = Ct, t.sCount[l] = qn, t.tight = oe, o = t.push("list_item_close", "li", -1), o.markup = String.fromCharCode(d), l = t.line, T[1] = l, l >= n || t.sCount[l] < t.blkIndent || t.sCount[l] - t.blkIndent >= 4)
|
|
11032
11032
|
break;
|
|
11033
11033
|
let Xt = !1;
|
|
11034
|
-
for (let we = 0,
|
|
11034
|
+
for (let we = 0, Vn = x.length; we < Vn; we++)
|
|
11035
11035
|
if (x[we](t, l, n, !0)) {
|
|
11036
11036
|
Xt = !0;
|
|
11037
11037
|
break;
|
|
@@ -11137,7 +11137,7 @@ function Tf(t, e, n, r) {
|
|
|
11137
11137
|
}
|
|
11138
11138
|
if (u < i && l.charCodeAt(u) !== 10)
|
|
11139
11139
|
return !1;
|
|
11140
|
-
const b =
|
|
11140
|
+
const b = Bn(l.slice(1, a));
|
|
11141
11141
|
return b ? (r || (typeof t.env.references > "u" && (t.env.references = {}), typeof t.env.references[b] > "u" && (t.env.references[b] = { title: g, href: f }), t.line = s), !0) : !1;
|
|
11142
11142
|
}
|
|
11143
11143
|
const Of = [
|
|
@@ -11203,7 +11203,7 @@ const Of = [
|
|
|
11203
11203
|
"tr",
|
|
11204
11204
|
"track",
|
|
11205
11205
|
"ul"
|
|
11206
|
-
], Ff = "[a-zA-Z_:][a-zA-Z0-9:._-]*", Nf = "[^\"'=<>`\\x00-\\x20]+", If = "'[^']*'", Rf = '"[^"]*"', Bf = "(?:" + Nf + "|" + If + "|" + Rf + ")", vf = "(?:\\s+" + Ff + "(?:\\s*=\\s*" + Bf + ")?)",
|
|
11206
|
+
], Ff = "[a-zA-Z_:][a-zA-Z0-9:._-]*", Nf = "[^\"'=<>`\\x00-\\x20]+", If = "'[^']*'", Rf = '"[^"]*"', Bf = "(?:" + Nf + "|" + If + "|" + Rf + ")", vf = "(?:\\s+" + Ff + "(?:\\s*=\\s*" + Bf + ")?)", bo = "<[A-Za-z][A-Za-z0-9\\-]*" + vf + "*\\s*\\/?>", xo = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", zf = "<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->", Pf = "<[?][\\s\\S]*?[?]>", Lf = "<![A-Za-z][^>]*>", qf = "<!\\[CDATA\\[[\\s\\S]*?\\]\\]>", Vf = new RegExp("^(?:" + bo + "|" + xo + "|" + zf + "|" + Pf + "|" + Lf + "|" + qf + ")"), $f = new RegExp("^(?:" + bo + "|" + xo + ")"), ot = [
|
|
11207
11207
|
[/^<(script|pre|style|textarea)(?=(\s|>|$))/i, /<\/(script|pre|style|textarea)>/i, !0],
|
|
11208
11208
|
[/^<!--/, /-->/, !0],
|
|
11209
11209
|
[/^<\?/, /\?>/, !0],
|
|
@@ -11336,12 +11336,12 @@ const sn = [
|
|
|
11336
11336
|
["lheading", Jf],
|
|
11337
11337
|
["paragraph", jf]
|
|
11338
11338
|
];
|
|
11339
|
-
function
|
|
11339
|
+
function vn() {
|
|
11340
11340
|
this.ruler = new Y();
|
|
11341
11341
|
for (let t = 0; t < sn.length; t++)
|
|
11342
11342
|
this.ruler.push(sn[t][0], sn[t][1], { alt: (sn[t][2] || []).slice() });
|
|
11343
11343
|
}
|
|
11344
|
-
|
|
11344
|
+
vn.prototype.tokenize = function(t, e, n) {
|
|
11345
11345
|
const r = this.ruler.getRules(""), u = r.length, i = t.md.options.maxNesting;
|
|
11346
11346
|
let s = e, o = !1;
|
|
11347
11347
|
for (; s < n && (t.line = s = t.skipEmptyLines(s), !(s >= n || t.sCount[s] < t.blkIndent)); ) {
|
|
@@ -11361,13 +11361,13 @@ Bn.prototype.tokenize = function(t, e, n) {
|
|
|
11361
11361
|
t.tight = !o, t.isEmpty(t.line - 1) && (o = !0), s = t.line, s < n && t.isEmpty(s) && (o = !0, s++, t.line = s);
|
|
11362
11362
|
}
|
|
11363
11363
|
};
|
|
11364
|
-
|
|
11364
|
+
vn.prototype.parse = function(t, e, n, r) {
|
|
11365
11365
|
if (!t)
|
|
11366
11366
|
return;
|
|
11367
11367
|
const u = new this.State(t, e, n, r);
|
|
11368
11368
|
this.tokenize(u, u.line, u.lineMax);
|
|
11369
11369
|
};
|
|
11370
|
-
|
|
11370
|
+
vn.prototype.State = _e;
|
|
11371
11371
|
function Gt(t, e, n, r) {
|
|
11372
11372
|
this.src = t, this.env = n, this.md = e, this.tokens = r, this.tokens_meta = Array(r.length), this.pos = 0, this.posMax = this.src.length, this.level = 0, this.pending = "", this.pendingLevel = 0, this.cache = {}, this.delimiters = [], this._prev_delimiters = [], this.backticks = {}, this.backticksScanned = !1, this.linkLevel = 0;
|
|
11373
11373
|
}
|
|
@@ -11573,7 +11573,7 @@ function td(t) {
|
|
|
11573
11573
|
for (let r = 0; r < n; r++)
|
|
11574
11574
|
e[r] && e[r].delimiters && _i(t, e[r].delimiters);
|
|
11575
11575
|
}
|
|
11576
|
-
const
|
|
11576
|
+
const ko = {
|
|
11577
11577
|
tokenize: ed,
|
|
11578
11578
|
postProcess: td
|
|
11579
11579
|
};
|
|
@@ -11627,7 +11627,7 @@ function rd(t) {
|
|
|
11627
11627
|
for (let r = 0; r < n; r++)
|
|
11628
11628
|
e[r] && e[r].delimiters && Ei(t, e[r].delimiters);
|
|
11629
11629
|
}
|
|
11630
|
-
const
|
|
11630
|
+
const yo = {
|
|
11631
11631
|
tokenize: nd,
|
|
11632
11632
|
postProcess: rd
|
|
11633
11633
|
};
|
|
@@ -11656,7 +11656,7 @@ function ud(t, e) {
|
|
|
11656
11656
|
if (a) {
|
|
11657
11657
|
if (typeof t.env.references > "u")
|
|
11658
11658
|
return !1;
|
|
11659
|
-
if (d < f && t.src.charCodeAt(d) === 91 ? (l = d + 1, d = t.md.helpers.parseLinkLabel(t, d), d >= 0 ? r = t.src.slice(l, d++) : d = h + 1) : d = h + 1, r || (r = t.src.slice(p, h)), i = t.env.references[
|
|
11659
|
+
if (d < f && t.src.charCodeAt(d) === 91 ? (l = d + 1, d = t.md.helpers.parseLinkLabel(t, d), d >= 0 ? r = t.src.slice(l, d++) : d = h + 1) : d = h + 1, r || (r = t.src.slice(p, h)), i = t.env.references[Bn(r)], !i)
|
|
11660
11660
|
return t.pos = c, !1;
|
|
11661
11661
|
s = i.href, o = i.title;
|
|
11662
11662
|
}
|
|
@@ -11693,7 +11693,7 @@ function id(t, e) {
|
|
|
11693
11693
|
} else {
|
|
11694
11694
|
if (typeof t.env.references > "u")
|
|
11695
11695
|
return !1;
|
|
11696
|
-
if (i < p && t.src.charCodeAt(i) === 91 ? (a = i + 1, i = t.md.helpers.parseLinkLabel(t, i), i >= 0 ? u = t.src.slice(a, i++) : i = d + 1) : i = d + 1, u || (u = t.src.slice(h, d)), s = t.env.references[
|
|
11696
|
+
if (i < p && t.src.charCodeAt(i) === 91 ? (a = i + 1, i = t.md.helpers.parseLinkLabel(t, i), i >= 0 ? u = t.src.slice(a, i++) : i = d + 1) : i = d + 1, u || (u = t.src.slice(h, d)), s = t.env.references[Bn(u)], !s)
|
|
11697
11697
|
return t.pos = f, !1;
|
|
11698
11698
|
c = s.href, l = s.title;
|
|
11699
11699
|
}
|
|
@@ -11791,14 +11791,14 @@ function md(t, e) {
|
|
|
11791
11791
|
if (i) {
|
|
11792
11792
|
if (!e) {
|
|
11793
11793
|
const s = i[1][0].toLowerCase() === "x" ? parseInt(i[1].slice(1), 16) : parseInt(i[1], 10), o = t.push("text_special", "", 0);
|
|
11794
|
-
o.content = uu(s) ?
|
|
11794
|
+
o.content = uu(s) ? En(s) : En(65533), o.markup = i[0], o.info = "entity";
|
|
11795
11795
|
}
|
|
11796
11796
|
return t.pos += i[0].length, !0;
|
|
11797
11797
|
}
|
|
11798
11798
|
} else {
|
|
11799
11799
|
const i = t.src.slice(n).match(pd);
|
|
11800
11800
|
if (i) {
|
|
11801
|
-
const s =
|
|
11801
|
+
const s = fo(i[0]);
|
|
11802
11802
|
if (s !== i[0]) {
|
|
11803
11803
|
if (!e) {
|
|
11804
11804
|
const o = t.push("text_special", "", 0);
|
|
@@ -11848,34 +11848,34 @@ function bd(t) {
|
|
|
11848
11848
|
u[e].nesting < 0 && r--, u[e].level = r, u[e].nesting > 0 && r++, u[e].type === "text" && e + 1 < i && u[e + 1].type === "text" ? u[e + 1].content = u[e].content + u[e + 1].content : (e !== n && (u[n] = u[e]), n++);
|
|
11849
11849
|
e !== n && (u.length = n);
|
|
11850
11850
|
}
|
|
11851
|
-
const
|
|
11851
|
+
const ir = [
|
|
11852
11852
|
["text", Kf],
|
|
11853
11853
|
["linkify", Gf],
|
|
11854
11854
|
["newline", Yf],
|
|
11855
11855
|
["escape", Xf],
|
|
11856
11856
|
["backticks", Qf],
|
|
11857
|
-
["strikethrough",
|
|
11858
|
-
["emphasis",
|
|
11857
|
+
["strikethrough", ko.tokenize],
|
|
11858
|
+
["emphasis", yo.tokenize],
|
|
11859
11859
|
["link", ud],
|
|
11860
11860
|
["image", id],
|
|
11861
11861
|
["autolink", ld],
|
|
11862
11862
|
["html_inline", dd],
|
|
11863
11863
|
["entity", md]
|
|
11864
|
-
],
|
|
11864
|
+
], sr = [
|
|
11865
11865
|
["balance_pairs", gd],
|
|
11866
|
-
["strikethrough",
|
|
11867
|
-
["emphasis",
|
|
11866
|
+
["strikethrough", ko.postProcess],
|
|
11867
|
+
["emphasis", yo.postProcess],
|
|
11868
11868
|
// rules for pairs separate '**' into its own text tokens, which may be left unused,
|
|
11869
11869
|
// rule below merges unused segments back with the rest of the text
|
|
11870
11870
|
["fragments_join", bd]
|
|
11871
11871
|
];
|
|
11872
11872
|
function Yt() {
|
|
11873
11873
|
this.ruler = new Y();
|
|
11874
|
-
for (let t = 0; t < ur.length; t++)
|
|
11875
|
-
this.ruler.push(ur[t][0], ur[t][1]);
|
|
11876
|
-
this.ruler2 = new Y();
|
|
11877
11874
|
for (let t = 0; t < ir.length; t++)
|
|
11878
|
-
this.
|
|
11875
|
+
this.ruler.push(ir[t][0], ir[t][1]);
|
|
11876
|
+
this.ruler2 = new Y();
|
|
11877
|
+
for (let t = 0; t < sr.length; t++)
|
|
11878
|
+
this.ruler2.push(sr[t][0], sr[t][1]);
|
|
11879
11879
|
}
|
|
11880
11880
|
Yt.prototype.skipToken = function(t) {
|
|
11881
11881
|
const e = t.pos, n = this.ruler.getRules(""), r = n.length, u = t.md.options.maxNesting, i = t.cache;
|
|
@@ -11927,7 +11927,7 @@ Yt.prototype.parse = function(t, e, n, r) {
|
|
|
11927
11927
|
Yt.prototype.State = Gt;
|
|
11928
11928
|
function xd(t) {
|
|
11929
11929
|
const e = {};
|
|
11930
|
-
t = t || {}, e.src_Any =
|
|
11930
|
+
t = t || {}, e.src_Any = so.source, e.src_Cc = oo.source, e.src_Z = ao.source, e.src_P = nu.source, e.src_ZPCc = [e.src_Z, e.src_P, e.src_Cc].join("|"), e.src_ZCc = [e.src_Z, e.src_Cc].join("|");
|
|
11931
11931
|
const n = "[><|]";
|
|
11932
11932
|
return e.src_pseudo_letter = "(?:(?!" + n + "|" + e.src_ZPCc + ")" + e.src_Any + ")", e.src_ip4 = "(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)", e.src_auth = "(?:(?:(?!" + e.src_ZCc + "|[@/\\[\\]()]).)+@)?", e.src_port = "(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?", e.src_host_terminator = "(?=$|" + n + "|" + e.src_ZPCc + ")(?!" + (t["---"] ? "-(?!--)|" : "-|") + "_|:\\d|\\.-|\\.(?!$|" + e.src_ZPCc + "))", e.src_path = "(?:[/?#](?:(?!" + e.src_ZCc + "|" + n + `|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!` + e.src_ZCc + "|\\]).)*\\]|\\((?:(?!" + e.src_ZCc + "|[)]).)*\\)|\\{(?:(?!" + e.src_ZCc + '|[}]).)*\\}|\\"(?:(?!' + e.src_ZCc + `|["]).)+\\"|\\'(?:(?!` + e.src_ZCc + "|[']).)+\\'|\\'(?=" + e.src_pseudo_letter + "|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!" + e.src_ZCc + "|[.]|$)|" + (t["---"] ? "\\-(?!--(?:[^-]|$))(?:-*)|" : "\\-+|") + // allow `,,,` in paths
|
|
11933
11933
|
",(?!" + e.src_ZCc + "|$)|;(?!" + e.src_ZCc + "|$)|\\!+(?!" + e.src_ZCc + "|[!]|$)|\\?(?!" + e.src_ZCc + "|[?]|$))+|\\/)?", e.src_email_name = '[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*', e.src_xn = "xn--[a-z0-9\\-]{1,59}", e.src_domain_root = // Allow letters & digits (http://test1)
|
|
@@ -11944,32 +11944,32 @@ function vr(t) {
|
|
|
11944
11944
|
});
|
|
11945
11945
|
}), t;
|
|
11946
11946
|
}
|
|
11947
|
-
function
|
|
11947
|
+
function zn(t) {
|
|
11948
11948
|
return Object.prototype.toString.call(t);
|
|
11949
11949
|
}
|
|
11950
11950
|
function kd(t) {
|
|
11951
|
-
return
|
|
11951
|
+
return zn(t) === "[object String]";
|
|
11952
11952
|
}
|
|
11953
11953
|
function yd(t) {
|
|
11954
|
-
return
|
|
11954
|
+
return zn(t) === "[object Object]";
|
|
11955
11955
|
}
|
|
11956
11956
|
function Cd(t) {
|
|
11957
|
-
return
|
|
11957
|
+
return zn(t) === "[object RegExp]";
|
|
11958
11958
|
}
|
|
11959
11959
|
function Ai(t) {
|
|
11960
|
-
return
|
|
11960
|
+
return zn(t) === "[object Function]";
|
|
11961
11961
|
}
|
|
11962
11962
|
function Dd(t) {
|
|
11963
11963
|
return t.replace(/[.?*+^$[\]\\(){}|-]/g, "\\$&");
|
|
11964
11964
|
}
|
|
11965
|
-
const
|
|
11965
|
+
const Co = {
|
|
11966
11966
|
fuzzyLink: !0,
|
|
11967
11967
|
fuzzyEmail: !0,
|
|
11968
11968
|
fuzzyIP: !1
|
|
11969
11969
|
};
|
|
11970
11970
|
function _d(t) {
|
|
11971
11971
|
return Object.keys(t || {}).reduce(function(e, n) {
|
|
11972
|
-
return e ||
|
|
11972
|
+
return e || Co.hasOwnProperty(n);
|
|
11973
11973
|
}, !1);
|
|
11974
11974
|
}
|
|
11975
11975
|
const Ed = {
|
|
@@ -12019,7 +12019,7 @@ function Mi() {
|
|
|
12019
12019
|
e.normalize(t);
|
|
12020
12020
|
};
|
|
12021
12021
|
}
|
|
12022
|
-
function
|
|
12022
|
+
function Sn(t) {
|
|
12023
12023
|
const e = t.re = xd(t.__opts__), n = t.__tlds__.slice();
|
|
12024
12024
|
t.onCompile(), t.__tlds_replaced__ || n.push(Sd), n.push(e.src_xn), e.src_tlds = n.join("|");
|
|
12025
12025
|
function r(o) {
|
|
@@ -12067,10 +12067,10 @@ function zr(t, e) {
|
|
|
12067
12067
|
function te(t, e) {
|
|
12068
12068
|
if (!(this instanceof te))
|
|
12069
12069
|
return new te(t, e);
|
|
12070
|
-
e || _d(t) && (e = t, t = {}), this.__opts__ = vr({},
|
|
12070
|
+
e || _d(t) && (e = t, t = {}), this.__opts__ = vr({}, Co, e), this.__index__ = -1, this.__last_index__ = -1, this.__schema__ = "", this.__text_cache__ = "", this.__schemas__ = vr({}, Ed, t), this.__compiled__ = {}, this.__tlds__ = Ad, this.__tlds_replaced__ = !1, this.re = {}, Sn(this);
|
|
12071
12071
|
}
|
|
12072
12072
|
te.prototype.add = function(e, n) {
|
|
12073
|
-
return this.__schemas__[e] = n,
|
|
12073
|
+
return this.__schemas__[e] = n, Sn(this), this;
|
|
12074
12074
|
};
|
|
12075
12075
|
te.prototype.set = function(e) {
|
|
12076
12076
|
return this.__opts__ = vr(this.__opts__, e), this;
|
|
@@ -12113,18 +12113,18 @@ te.prototype.matchAtStart = function(e) {
|
|
|
12113
12113
|
te.prototype.tlds = function(e, n) {
|
|
12114
12114
|
return e = Array.isArray(e) ? e : [e], n ? (this.__tlds__ = this.__tlds__.concat(e).sort().filter(function(r, u, i) {
|
|
12115
12115
|
return r !== i[u - 1];
|
|
12116
|
-
}).reverse(),
|
|
12116
|
+
}).reverse(), Sn(this), this) : (this.__tlds__ = e.slice(), this.__tlds_replaced__ = !0, Sn(this), this);
|
|
12117
12117
|
};
|
|
12118
12118
|
te.prototype.normalize = function(e) {
|
|
12119
12119
|
e.schema || (e.url = "http://" + e.url), e.schema === "mailto:" && !/^mailto:/i.test(e.url) && (e.url = "mailto:" + e.url);
|
|
12120
12120
|
};
|
|
12121
12121
|
te.prototype.onCompile = function() {
|
|
12122
12122
|
};
|
|
12123
|
-
const dt = 2147483647, be = 36, ou = 1, Jt = 26, Od = 38, Fd = 700,
|
|
12123
|
+
const dt = 2147483647, be = 36, ou = 1, Jt = 26, Od = 38, Fd = 700, Do = 72, _o = 128, Eo = "-", Nd = /^xn--/, Id = /[^\0-\x7F]/, Rd = /[\x2E\u3002\uFF0E\uFF61]/g, Bd = {
|
|
12124
12124
|
overflow: "Overflow: input needs wider integers to process",
|
|
12125
12125
|
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
|
12126
12126
|
"invalid-input": "Invalid input"
|
|
12127
|
-
},
|
|
12127
|
+
}, or = be - ou, xe = Math.floor, lr = String.fromCharCode;
|
|
12128
12128
|
function Fe(t) {
|
|
12129
12129
|
throw new RangeError(Bd[t]);
|
|
12130
12130
|
}
|
|
@@ -12135,14 +12135,14 @@ function vd(t, e) {
|
|
|
12135
12135
|
n[r] = e(t[r]);
|
|
12136
12136
|
return n;
|
|
12137
12137
|
}
|
|
12138
|
-
function
|
|
12138
|
+
function So(t, e) {
|
|
12139
12139
|
const n = t.split("@");
|
|
12140
12140
|
let r = "";
|
|
12141
12141
|
n.length > 1 && (r = n[0] + "@", t = n[1]), t = t.replace(Rd, ".");
|
|
12142
12142
|
const u = t.split("."), i = vd(u, e).join(".");
|
|
12143
12143
|
return r + i;
|
|
12144
12144
|
}
|
|
12145
|
-
function
|
|
12145
|
+
function Ao(t) {
|
|
12146
12146
|
const e = [];
|
|
12147
12147
|
let n = 0;
|
|
12148
12148
|
const r = t.length;
|
|
@@ -12160,14 +12160,14 @@ const zd = (t) => String.fromCodePoint(...t), Pd = function(t) {
|
|
|
12160
12160
|
return t >= 48 && t < 58 ? 26 + (t - 48) : t >= 65 && t < 91 ? t - 65 : t >= 97 && t < 123 ? t - 97 : be;
|
|
12161
12161
|
}, wi = function(t, e) {
|
|
12162
12162
|
return t + 22 + 75 * (t < 26) - ((e != 0) << 5);
|
|
12163
|
-
},
|
|
12163
|
+
}, Mo = function(t, e, n) {
|
|
12164
12164
|
let r = 0;
|
|
12165
|
-
for (t = n ? xe(t / Fd) : t >> 1, t += xe(t / e); t >
|
|
12166
|
-
t = xe(t /
|
|
12167
|
-
return xe(r + (
|
|
12168
|
-
},
|
|
12165
|
+
for (t = n ? xe(t / Fd) : t >> 1, t += xe(t / e); t > or * Jt >> 1; r += be)
|
|
12166
|
+
t = xe(t / or);
|
|
12167
|
+
return xe(r + (or + 1) * t / (t + Od));
|
|
12168
|
+
}, wo = function(t) {
|
|
12169
12169
|
const e = [], n = t.length;
|
|
12170
|
-
let r = 0, u =
|
|
12170
|
+
let r = 0, u = _o, i = Do, s = t.lastIndexOf(Eo);
|
|
12171
12171
|
s < 0 && (s = 0);
|
|
12172
12172
|
for (let o = 0; o < s; ++o)
|
|
12173
12173
|
t.charCodeAt(o) >= 128 && Fe("not-basic"), e.push(t.charCodeAt(o));
|
|
@@ -12184,19 +12184,19 @@ const zd = (t) => String.fromCodePoint(...t), Pd = function(t) {
|
|
|
12184
12184
|
c > xe(dt / d) && Fe("overflow"), c *= d;
|
|
12185
12185
|
}
|
|
12186
12186
|
const a = e.length + 1;
|
|
12187
|
-
i =
|
|
12187
|
+
i = Mo(r - l, a, l == 0), xe(r / a) > dt - u && Fe("overflow"), u += xe(r / a), r %= a, e.splice(r++, 0, u);
|
|
12188
12188
|
}
|
|
12189
12189
|
return String.fromCodePoint(...e);
|
|
12190
|
-
},
|
|
12190
|
+
}, To = function(t) {
|
|
12191
12191
|
const e = [];
|
|
12192
|
-
t =
|
|
12192
|
+
t = Ao(t);
|
|
12193
12193
|
const n = t.length;
|
|
12194
|
-
let r =
|
|
12194
|
+
let r = _o, u = 0, i = Do;
|
|
12195
12195
|
for (const l of t)
|
|
12196
|
-
l < 128 && e.push(
|
|
12196
|
+
l < 128 && e.push(lr(l));
|
|
12197
12197
|
const s = e.length;
|
|
12198
12198
|
let o = s;
|
|
12199
|
-
for (s && e.push(
|
|
12199
|
+
for (s && e.push(Eo); o < n; ) {
|
|
12200
12200
|
let l = dt;
|
|
12201
12201
|
for (const c of t)
|
|
12202
12202
|
c >= r && c < l && (l = c);
|
|
@@ -12211,23 +12211,23 @@ const zd = (t) => String.fromCodePoint(...t), Pd = function(t) {
|
|
|
12211
12211
|
break;
|
|
12212
12212
|
const d = f - h, m = be - h;
|
|
12213
12213
|
e.push(
|
|
12214
|
-
|
|
12214
|
+
lr(wi(h + d % m, 0))
|
|
12215
12215
|
), f = xe(d / m);
|
|
12216
12216
|
}
|
|
12217
|
-
e.push(
|
|
12217
|
+
e.push(lr(wi(f, 0))), i = Mo(u, a, o === s), u = 0, ++o;
|
|
12218
12218
|
}
|
|
12219
12219
|
++u, ++r;
|
|
12220
12220
|
}
|
|
12221
12221
|
return e.join("");
|
|
12222
12222
|
}, Ld = function(t) {
|
|
12223
|
-
return
|
|
12224
|
-
return Nd.test(e) ?
|
|
12223
|
+
return So(t, function(e) {
|
|
12224
|
+
return Nd.test(e) ? wo(e.slice(4).toLowerCase()) : e;
|
|
12225
12225
|
});
|
|
12226
12226
|
}, qd = function(t) {
|
|
12227
|
-
return
|
|
12228
|
-
return Id.test(e) ? "xn--" +
|
|
12227
|
+
return So(t, function(e) {
|
|
12228
|
+
return Id.test(e) ? "xn--" + To(e) : e;
|
|
12229
12229
|
});
|
|
12230
|
-
},
|
|
12230
|
+
}, Oo = {
|
|
12231
12231
|
/**
|
|
12232
12232
|
* A string representing the current Punycode.js version number.
|
|
12233
12233
|
* @memberOf punycode
|
|
@@ -12242,11 +12242,11 @@ const zd = (t) => String.fromCodePoint(...t), Pd = function(t) {
|
|
|
12242
12242
|
* @type Object
|
|
12243
12243
|
*/
|
|
12244
12244
|
ucs2: {
|
|
12245
|
-
decode:
|
|
12245
|
+
decode: Ao,
|
|
12246
12246
|
encode: zd
|
|
12247
12247
|
},
|
|
12248
|
-
decode:
|
|
12249
|
-
encode:
|
|
12248
|
+
decode: wo,
|
|
12249
|
+
encode: To,
|
|
12250
12250
|
toASCII: qd,
|
|
12251
12251
|
toUnicode: Ld
|
|
12252
12252
|
}, Vd = {
|
|
@@ -12423,21 +12423,21 @@ function Ud(t) {
|
|
|
12423
12423
|
const e = t.trim().toLowerCase();
|
|
12424
12424
|
return Jd.test(e) ? jd.test(e) : !0;
|
|
12425
12425
|
}
|
|
12426
|
-
const
|
|
12426
|
+
const Fo = ["http:", "https:", "mailto:"];
|
|
12427
12427
|
function Kd(t) {
|
|
12428
12428
|
const e = tu(t, !0);
|
|
12429
|
-
if (e.hostname && (!e.protocol ||
|
|
12429
|
+
if (e.hostname && (!e.protocol || Fo.indexOf(e.protocol) >= 0))
|
|
12430
12430
|
try {
|
|
12431
|
-
e.hostname =
|
|
12431
|
+
e.hostname = Oo.toASCII(e.hostname);
|
|
12432
12432
|
} catch {
|
|
12433
12433
|
}
|
|
12434
12434
|
return Zt(eu(e));
|
|
12435
12435
|
}
|
|
12436
12436
|
function Zd(t) {
|
|
12437
12437
|
const e = tu(t, !0);
|
|
12438
|
-
if (e.hostname && (!e.protocol ||
|
|
12438
|
+
if (e.hostname && (!e.protocol || Fo.indexOf(e.protocol) >= 0))
|
|
12439
12439
|
try {
|
|
12440
|
-
e.hostname =
|
|
12440
|
+
e.hostname = Oo.toUnicode(e.hostname);
|
|
12441
12441
|
} catch {
|
|
12442
12442
|
}
|
|
12443
12443
|
return gt(eu(e), gt.defaultChars + "%");
|
|
@@ -12445,10 +12445,10 @@ function Zd(t) {
|
|
|
12445
12445
|
function se(t, e) {
|
|
12446
12446
|
if (!(this instanceof se))
|
|
12447
12447
|
return new se(t, e);
|
|
12448
|
-
e || ru(t) || (e = t || {}, t = "default"), this.inline = new Yt(), this.block = new
|
|
12448
|
+
e || ru(t) || (e = t || {}, t = "default"), this.inline = new Yt(), this.block = new vn(), this.core = new iu(), this.renderer = new yt(), this.linkify = new te(), this.validateLink = Ud, this.normalizeLink = Kd, this.normalizeLinkText = Zd, this.utils = G0, this.helpers = Rn({}, ef), this.options = {}, this.configure(t), e && this.set(e);
|
|
12449
12449
|
}
|
|
12450
12450
|
se.prototype.set = function(t) {
|
|
12451
|
-
return
|
|
12451
|
+
return Rn(this.options, t), this;
|
|
12452
12452
|
};
|
|
12453
12453
|
se.prototype.configure = function(t) {
|
|
12454
12454
|
const e = this;
|
|
@@ -12734,14 +12734,14 @@ class Xd {
|
|
|
12734
12734
|
function St(t, e, n, r) {
|
|
12735
12735
|
return t.getAttrs ? t.getAttrs(e, n, r) : t.attrs instanceof Function ? t.attrs(e) : t.attrs;
|
|
12736
12736
|
}
|
|
12737
|
-
function
|
|
12737
|
+
function ar(t, e) {
|
|
12738
12738
|
return t.noCloseToken || e == "code_inline" || e == "code_block" || e == "fence";
|
|
12739
12739
|
}
|
|
12740
12740
|
function Ti(t) {
|
|
12741
12741
|
return t[t.length - 1] == `
|
|
12742
12742
|
` ? t.slice(0, t.length - 1) : t;
|
|
12743
12743
|
}
|
|
12744
|
-
function
|
|
12744
|
+
function cr() {
|
|
12745
12745
|
}
|
|
12746
12746
|
function Qd(t, e) {
|
|
12747
12747
|
let n = /* @__PURE__ */ Object.create(null);
|
|
@@ -12749,7 +12749,7 @@ function Qd(t, e) {
|
|
|
12749
12749
|
let u = e[r];
|
|
12750
12750
|
if (u.block) {
|
|
12751
12751
|
let i = t.nodeType(u.block);
|
|
12752
|
-
|
|
12752
|
+
ar(u, r) ? n[r] = (s, o, l, a) => {
|
|
12753
12753
|
s.openNode(i, St(u, o, l, a)), s.addText(Ti(o.content)), s.closeNode();
|
|
12754
12754
|
} : (n[r + "_open"] = (s, o, l, a) => s.openNode(i, St(u, o, l, a)), n[r + "_close"] = (s) => s.closeNode());
|
|
12755
12755
|
} else if (u.node) {
|
|
@@ -12757,11 +12757,11 @@ function Qd(t, e) {
|
|
|
12757
12757
|
n[r] = (s, o, l, a) => s.addNode(i, St(u, o, l, a));
|
|
12758
12758
|
} else if (u.mark) {
|
|
12759
12759
|
let i = t.marks[u.mark];
|
|
12760
|
-
|
|
12760
|
+
ar(u, r) ? n[r] = (s, o, l, a) => {
|
|
12761
12761
|
s.openMark(i.create(St(u, o, l, a))), s.addText(Ti(o.content)), s.closeMark(i);
|
|
12762
12762
|
} : (n[r + "_open"] = (s, o, l, a) => s.openMark(i.create(St(u, o, l, a))), n[r + "_close"] = (s) => s.closeMark(i));
|
|
12763
12763
|
} else if (u.ignore)
|
|
12764
|
-
|
|
12764
|
+
ar(u, r) ? n[r] = cr : (n[r + "_open"] = cr, n[r + "_close"] = cr);
|
|
12765
12765
|
else
|
|
12766
12766
|
throw new RangeError("Unrecognized parsing spec " + JSON.stringify(u));
|
|
12767
12767
|
}
|
|
@@ -12849,7 +12849,7 @@ class nh {
|
|
|
12849
12849
|
return r.renderContent(e), r.out;
|
|
12850
12850
|
}
|
|
12851
12851
|
}
|
|
12852
|
-
const
|
|
12852
|
+
const fr = new nh({
|
|
12853
12853
|
blockquote(t, e) {
|
|
12854
12854
|
t.wrapBlock("> ", null, e, () => t.renderContent(e));
|
|
12855
12855
|
},
|
|
@@ -13150,10 +13150,10 @@ class uh {
|
|
|
13150
13150
|
};
|
|
13151
13151
|
}
|
|
13152
13152
|
}
|
|
13153
|
-
var
|
|
13153
|
+
var An = 200, P = function() {
|
|
13154
13154
|
};
|
|
13155
13155
|
P.prototype.append = function(e) {
|
|
13156
|
-
return e.length ? (e = P.from(e), !this.length && e || e.length <
|
|
13156
|
+
return e.length ? (e = P.from(e), !this.length && e || e.length < An && this.leafAppend(e) || this.length < An && e.leafPrepend(this) || this.appendInner(e)) : this;
|
|
13157
13157
|
};
|
|
13158
13158
|
P.prototype.prepend = function(e) {
|
|
13159
13159
|
return e.length ? P.from(e).append(this) : this;
|
|
@@ -13179,9 +13179,9 @@ P.prototype.map = function(e, n, r) {
|
|
|
13179
13179
|
}, n, r), u;
|
|
13180
13180
|
};
|
|
13181
13181
|
P.from = function(e) {
|
|
13182
|
-
return e instanceof P ? e : e && e.length ? new
|
|
13182
|
+
return e instanceof P ? e : e && e.length ? new No(e) : P.empty;
|
|
13183
13183
|
};
|
|
13184
|
-
var
|
|
13184
|
+
var No = /* @__PURE__ */ function(t) {
|
|
13185
13185
|
function e(r) {
|
|
13186
13186
|
t.call(this), this.values = r;
|
|
13187
13187
|
}
|
|
@@ -13202,10 +13202,10 @@ var Fo = /* @__PURE__ */ function(t) {
|
|
|
13202
13202
|
if (u(this.values[l], o + l) === !1)
|
|
13203
13203
|
return !1;
|
|
13204
13204
|
}, e.prototype.leafAppend = function(u) {
|
|
13205
|
-
if (this.length + u.length <=
|
|
13205
|
+
if (this.length + u.length <= An)
|
|
13206
13206
|
return new e(this.values.concat(u.flatten()));
|
|
13207
13207
|
}, e.prototype.leafPrepend = function(u) {
|
|
13208
|
-
if (this.length + u.length <=
|
|
13208
|
+
if (this.length + u.length <= An)
|
|
13209
13209
|
return new e(u.flatten().concat(this.values));
|
|
13210
13210
|
}, n.length.get = function() {
|
|
13211
13211
|
return this.values.length;
|
|
@@ -13213,7 +13213,7 @@ var Fo = /* @__PURE__ */ function(t) {
|
|
|
13213
13213
|
return 0;
|
|
13214
13214
|
}, Object.defineProperties(e.prototype, n), e;
|
|
13215
13215
|
}(P);
|
|
13216
|
-
P.empty = new
|
|
13216
|
+
P.empty = new No([]);
|
|
13217
13217
|
var ih = /* @__PURE__ */ function(t) {
|
|
13218
13218
|
function e(n, r) {
|
|
13219
13219
|
t.call(this), this.left = n, this.right = r, this.length = n.length + r.length, this.depth = Math.max(n.depth, r.depth) + 1;
|
|
@@ -13395,11 +13395,11 @@ function ah(t, e, n, r) {
|
|
|
13395
13395
|
if (n.steps.length == 0)
|
|
13396
13396
|
return t;
|
|
13397
13397
|
if (s && s.getMeta(et))
|
|
13398
|
-
return s.getMeta(et).redo ? new Ne(t.done.addTransform(n, void 0, r,
|
|
13398
|
+
return s.getMeta(et).redo ? new Ne(t.done.addTransform(n, void 0, r, dn(e)), t.undone, Ii(n.mapping.maps), t.prevTime, t.prevComposition) : new Ne(t.done, t.undone.addTransform(n, void 0, r, dn(e)), null, t.prevTime, t.prevComposition);
|
|
13399
13399
|
if (n.getMeta("addToHistory") !== !1 && !(s && s.getMeta("addToHistory") === !1)) {
|
|
13400
|
-
let o = n.getMeta("composition"), l = t.prevTime == 0 || !s && t.prevComposition != o && (t.prevTime < (n.time || 0) - r.newGroupDelay || !ch(n, t.prevRanges)), a = s ?
|
|
13401
|
-
return new Ne(t.done.addTransform(n, l ? e.selection.getBookmark() : void 0, r,
|
|
13402
|
-
} else return (i = n.getMeta("rebased")) ? new Ne(t.done.rebased(n, i), t.undone.rebased(n, i),
|
|
13400
|
+
let o = n.getMeta("composition"), l = t.prevTime == 0 || !s && t.prevComposition != o && (t.prevTime < (n.time || 0) - r.newGroupDelay || !ch(n, t.prevRanges)), a = s ? dr(t.prevRanges, n.mapping) : Ii(n.mapping.maps);
|
|
13401
|
+
return new Ne(t.done.addTransform(n, l ? e.selection.getBookmark() : void 0, r, dn(e)), ae.empty, a, n.time, o ?? t.prevComposition);
|
|
13402
|
+
} else return (i = n.getMeta("rebased")) ? new Ne(t.done.rebased(n, i), t.undone.rebased(n, i), dr(t.prevRanges, n.mapping), t.prevTime, t.prevComposition) : new Ne(t.done.addMaps(n.mapping.maps), t.undone.addMaps(n.mapping.maps), dr(t.prevRanges, n.mapping), t.prevTime, t.prevComposition);
|
|
13403
13403
|
}
|
|
13404
13404
|
function ch(t, e) {
|
|
13405
13405
|
if (!e)
|
|
@@ -13418,7 +13418,7 @@ function Ii(t) {
|
|
|
13418
13418
|
t[n].forEach((r, u, i, s) => e.push(i, s));
|
|
13419
13419
|
return e;
|
|
13420
13420
|
}
|
|
13421
|
-
function
|
|
13421
|
+
function dr(t, e) {
|
|
13422
13422
|
if (!t)
|
|
13423
13423
|
return null;
|
|
13424
13424
|
let n = [];
|
|
@@ -13429,26 +13429,26 @@ function fr(t, e) {
|
|
|
13429
13429
|
return n;
|
|
13430
13430
|
}
|
|
13431
13431
|
function fh(t, e, n) {
|
|
13432
|
-
let r =
|
|
13432
|
+
let r = dn(e), u = et.get(e).spec.config, i = (n ? t.undone : t.done).popEvent(e, r);
|
|
13433
13433
|
if (!i)
|
|
13434
13434
|
return null;
|
|
13435
13435
|
let s = i.selection.resolve(i.transform.doc), o = (n ? t.done : t.undone).addTransform(i.transform, e.selection.getBookmark(), u, r), l = new Ne(n ? o : i.remaining, n ? i.remaining : o, null, 0, -1);
|
|
13436
13436
|
return i.transform.setSelection(s).setMeta(et, { redo: n, historyState: l });
|
|
13437
13437
|
}
|
|
13438
|
-
let
|
|
13439
|
-
function
|
|
13438
|
+
let hr = !1, Ri = null;
|
|
13439
|
+
function dn(t) {
|
|
13440
13440
|
let e = t.plugins;
|
|
13441
13441
|
if (Ri != e) {
|
|
13442
|
-
|
|
13442
|
+
hr = !1, Ri = e;
|
|
13443
13443
|
for (let n = 0; n < e.length; n++)
|
|
13444
13444
|
if (e[n].spec.historyPreserveItems) {
|
|
13445
|
-
|
|
13445
|
+
hr = !0;
|
|
13446
13446
|
break;
|
|
13447
13447
|
}
|
|
13448
13448
|
}
|
|
13449
|
-
return
|
|
13449
|
+
return hr;
|
|
13450
13450
|
}
|
|
13451
|
-
const et = new
|
|
13451
|
+
const et = new Ss("history"), dh = new Ss("closeHistory");
|
|
13452
13452
|
function hh(t = {}) {
|
|
13453
13453
|
return t = {
|
|
13454
13454
|
depth: t.depth || 100,
|
|
@@ -13467,14 +13467,14 @@ function hh(t = {}) {
|
|
|
13467
13467
|
props: {
|
|
13468
13468
|
handleDOMEvents: {
|
|
13469
13469
|
beforeinput(e, n) {
|
|
13470
|
-
let r = n.inputType, u = r == "historyUndo" ?
|
|
13470
|
+
let r = n.inputType, u = r == "historyUndo" ? Ro : r == "historyRedo" ? Pr : null;
|
|
13471
13471
|
return u ? (n.preventDefault(), u(e.state, e.dispatch)) : !1;
|
|
13472
13472
|
}
|
|
13473
13473
|
}
|
|
13474
13474
|
}
|
|
13475
13475
|
});
|
|
13476
13476
|
}
|
|
13477
|
-
function
|
|
13477
|
+
function Io(t, e) {
|
|
13478
13478
|
return (n, r) => {
|
|
13479
13479
|
let u = et.getState(n);
|
|
13480
13480
|
if (!u || (t ? u.undone : u.done).eventCount == 0)
|
|
@@ -13486,7 +13486,7 @@ function No(t, e) {
|
|
|
13486
13486
|
return !0;
|
|
13487
13487
|
};
|
|
13488
13488
|
}
|
|
13489
|
-
const
|
|
13489
|
+
const Ro = Io(!1, !0), Pr = Io(!0, !0);
|
|
13490
13490
|
var We = {
|
|
13491
13491
|
8: "Backspace",
|
|
13492
13492
|
9: "Tab",
|
|
@@ -13540,7 +13540,7 @@ var We = {
|
|
|
13540
13540
|
220: "\\",
|
|
13541
13541
|
221: "]",
|
|
13542
13542
|
222: "'"
|
|
13543
|
-
},
|
|
13543
|
+
}, Mn = {
|
|
13544
13544
|
48: ")",
|
|
13545
13545
|
49: "!",
|
|
13546
13546
|
50: "@",
|
|
@@ -13569,10 +13569,10 @@ var We = {
|
|
|
13569
13569
|
for (var V = 0; V < 10; V++) We[48 + V] = We[96 + V] = String(V);
|
|
13570
13570
|
for (var V = 1; V <= 24; V++) We[V + 111] = "F" + V;
|
|
13571
13571
|
for (var V = 65; V <= 90; V++)
|
|
13572
|
-
We[V] = String.fromCharCode(V + 32),
|
|
13573
|
-
for (var
|
|
13572
|
+
We[V] = String.fromCharCode(V + 32), Mn[V] = String.fromCharCode(V);
|
|
13573
|
+
for (var pr in We) Mn.hasOwnProperty(pr) || (Mn[pr] = We[pr]);
|
|
13574
13574
|
function gh(t) {
|
|
13575
|
-
var e = ph && t.metaKey && t.shiftKey && !t.ctrlKey && !t.altKey || mh && t.shiftKey && t.key && t.key.length == 1 || t.key == "Unidentified", n = !e && t.key || (t.shiftKey ?
|
|
13575
|
+
var e = ph && t.metaKey && t.shiftKey && !t.ctrlKey && !t.altKey || mh && t.shiftKey && t.key && t.key.length == 1 || t.key == "Unidentified", n = !e && t.key || (t.shiftKey ? Mn : We)[t.keyCode] || t.key || "Unidentified";
|
|
13576
13576
|
return n == "Esc" && (n = "Escape"), n == "Del" && (n = "Delete"), n == "Left" && (n = "ArrowLeft"), n == "Up" && (n = "ArrowUp"), n == "Right" && (n = "ArrowRight"), n == "Down" && (n = "ArrowDown"), n;
|
|
13577
13577
|
}
|
|
13578
13578
|
const bh = typeof navigator < "u" && /Mac|iP(hone|[oa]d)/.test(navigator.platform), xh = typeof navigator < "u" && /Win/.test(navigator.platform);
|
|
@@ -13603,27 +13603,27 @@ function yh(t) {
|
|
|
13603
13603
|
e[kh(n)] = t[n];
|
|
13604
13604
|
return e;
|
|
13605
13605
|
}
|
|
13606
|
-
function
|
|
13606
|
+
function mr(t, e, n = !0) {
|
|
13607
13607
|
return e.altKey && (t = "Alt-" + t), e.ctrlKey && (t = "Ctrl-" + t), e.metaKey && (t = "Meta-" + t), n && e.shiftKey && (t = "Shift-" + t), t;
|
|
13608
13608
|
}
|
|
13609
|
-
function
|
|
13609
|
+
function gr(t) {
|
|
13610
13610
|
return new Hr({ props: { handleKeyDown: Ch(t) } });
|
|
13611
13611
|
}
|
|
13612
13612
|
function Ch(t) {
|
|
13613
13613
|
let e = yh(t);
|
|
13614
13614
|
return function(n, r) {
|
|
13615
|
-
let u = gh(r), i, s = e[
|
|
13615
|
+
let u = gh(r), i, s = e[mr(u, r)];
|
|
13616
13616
|
if (s && s(n.state, n.dispatch, n))
|
|
13617
13617
|
return !0;
|
|
13618
13618
|
if (u.length == 1 && u != " ") {
|
|
13619
13619
|
if (r.shiftKey) {
|
|
13620
|
-
let o = e[
|
|
13620
|
+
let o = e[mr(u, r, !1)];
|
|
13621
13621
|
if (o && o(n.state, n.dispatch, n))
|
|
13622
13622
|
return !0;
|
|
13623
13623
|
}
|
|
13624
13624
|
if ((r.altKey || r.metaKey || r.ctrlKey) && // Ctrl-Alt may be used for AltGr on Windows
|
|
13625
13625
|
!(xh && r.ctrlKey && r.altKey) && (i = We[r.keyCode]) && i != u) {
|
|
13626
|
-
let o = e[
|
|
13626
|
+
let o = e[mr(i, r)];
|
|
13627
13627
|
if (o && o(n.state, n.dispatch, n))
|
|
13628
13628
|
return !0;
|
|
13629
13629
|
}
|
|
@@ -13636,17 +13636,17 @@ function Dh(t, e) {
|
|
|
13636
13636
|
let { $cursor: n } = t.selection;
|
|
13637
13637
|
return !n || (e ? !e.endOfTextblock("backward", t) : n.parentOffset > 0) ? null : n;
|
|
13638
13638
|
}
|
|
13639
|
-
const
|
|
13639
|
+
const Bo = (t, e, n) => {
|
|
13640
13640
|
let r = Dh(t, n);
|
|
13641
13641
|
if (!r)
|
|
13642
13642
|
return !1;
|
|
13643
|
-
let u =
|
|
13643
|
+
let u = zo(r);
|
|
13644
13644
|
if (!u) {
|
|
13645
|
-
let s = r.blockRange(), o = s &&
|
|
13645
|
+
let s = r.blockRange(), o = s && Tn(s);
|
|
13646
13646
|
return o == null ? !1 : (e && e(t.tr.lift(s, o).scrollIntoView()), !0);
|
|
13647
13647
|
}
|
|
13648
13648
|
let i = u.nodeBefore;
|
|
13649
|
-
if (
|
|
13649
|
+
if (Ko(t, u, e, -1))
|
|
13650
13650
|
return !0;
|
|
13651
13651
|
if (r.parent.content.size == 0 && (xt(i, "end") || A.isSelectable(i)))
|
|
13652
13652
|
for (let s = r.depth; ; s--) {
|
|
@@ -13672,19 +13672,19 @@ function xt(t, e, n = !1) {
|
|
|
13672
13672
|
}
|
|
13673
13673
|
return !1;
|
|
13674
13674
|
}
|
|
13675
|
-
const
|
|
13675
|
+
const vo = (t, e, n) => {
|
|
13676
13676
|
let { $head: r, empty: u } = t.selection, i = r;
|
|
13677
13677
|
if (!u)
|
|
13678
13678
|
return !1;
|
|
13679
13679
|
if (r.parent.isTextblock) {
|
|
13680
13680
|
if (n ? !n.endOfTextblock("backward", t) : r.parentOffset > 0)
|
|
13681
13681
|
return !1;
|
|
13682
|
-
i =
|
|
13682
|
+
i = zo(r);
|
|
13683
13683
|
}
|
|
13684
13684
|
let s = i && i.nodeBefore;
|
|
13685
13685
|
return !s || !A.isSelectable(s) ? !1 : (e && e(t.tr.setSelection(A.create(t.doc, i.pos - s.nodeSize)).scrollIntoView()), !0);
|
|
13686
13686
|
};
|
|
13687
|
-
function
|
|
13687
|
+
function zo(t) {
|
|
13688
13688
|
if (!t.parent.type.spec.isolating)
|
|
13689
13689
|
for (let e = t.depth - 1; e >= 0; e--) {
|
|
13690
13690
|
if (t.index(e) > 0)
|
|
@@ -13698,15 +13698,15 @@ function _h(t, e) {
|
|
|
13698
13698
|
let { $cursor: n } = t.selection;
|
|
13699
13699
|
return !n || (e ? !e.endOfTextblock("forward", t) : n.parentOffset < n.parent.content.size) ? null : n;
|
|
13700
13700
|
}
|
|
13701
|
-
const
|
|
13701
|
+
const Po = (t, e, n) => {
|
|
13702
13702
|
let r = _h(t, n);
|
|
13703
13703
|
if (!r)
|
|
13704
13704
|
return !1;
|
|
13705
|
-
let u =
|
|
13705
|
+
let u = qo(r);
|
|
13706
13706
|
if (!u)
|
|
13707
13707
|
return !1;
|
|
13708
13708
|
let i = u.nodeAfter;
|
|
13709
|
-
if (
|
|
13709
|
+
if (Ko(t, u, e, 1))
|
|
13710
13710
|
return !0;
|
|
13711
13711
|
if (r.parent.content.size == 0 && (xt(i, "start") || A.isSelectable(i))) {
|
|
13712
13712
|
let s = $r(t.doc, r.before(), r.after(), D.empty);
|
|
@@ -13719,19 +13719,19 @@ const zo = (t, e, n) => {
|
|
|
13719
13719
|
}
|
|
13720
13720
|
}
|
|
13721
13721
|
return i.isAtom && u.depth == r.depth - 1 ? (e && e(t.tr.delete(u.pos, u.pos + i.nodeSize).scrollIntoView()), !0) : !1;
|
|
13722
|
-
},
|
|
13722
|
+
}, Lo = (t, e, n) => {
|
|
13723
13723
|
let { $head: r, empty: u } = t.selection, i = r;
|
|
13724
13724
|
if (!u)
|
|
13725
13725
|
return !1;
|
|
13726
13726
|
if (r.parent.isTextblock) {
|
|
13727
13727
|
if (n ? !n.endOfTextblock("forward", t) : r.parentOffset < r.parent.content.size)
|
|
13728
13728
|
return !1;
|
|
13729
|
-
i =
|
|
13729
|
+
i = qo(r);
|
|
13730
13730
|
}
|
|
13731
13731
|
let s = i && i.nodeAfter;
|
|
13732
13732
|
return !s || !A.isSelectable(s) ? !1 : (e && e(t.tr.setSelection(A.create(t.doc, i.pos)).scrollIntoView()), !0);
|
|
13733
13733
|
};
|
|
13734
|
-
function
|
|
13734
|
+
function qo(t) {
|
|
13735
13735
|
if (!t.parent.type.spec.isolating)
|
|
13736
13736
|
for (let e = t.depth - 1; e >= 0; e--) {
|
|
13737
13737
|
let n = t.node(e);
|
|
@@ -13743,9 +13743,9 @@ function Lo(t) {
|
|
|
13743
13743
|
return null;
|
|
13744
13744
|
}
|
|
13745
13745
|
const Eh = (t, e) => {
|
|
13746
|
-
let { $from: n, $to: r } = t.selection, u = n.blockRange(r), i = u &&
|
|
13746
|
+
let { $from: n, $to: r } = t.selection, u = n.blockRange(r), i = u && Tn(u);
|
|
13747
13747
|
return i == null ? !1 : (e && e(t.tr.lift(u, i).scrollIntoView()), !0);
|
|
13748
|
-
},
|
|
13748
|
+
}, Vo = (t, e) => {
|
|
13749
13749
|
let { $head: n, $anchor: r } = t.selection;
|
|
13750
13750
|
return !n.parent.type.spec.code || !n.sameParent(r) ? !1 : (e && e(t.tr.insertText(`
|
|
13751
13751
|
`).scrollIntoView()), !0);
|
|
@@ -13758,7 +13758,7 @@ function au(t) {
|
|
|
13758
13758
|
}
|
|
13759
13759
|
return null;
|
|
13760
13760
|
}
|
|
13761
|
-
const
|
|
13761
|
+
const $o = (t, e) => {
|
|
13762
13762
|
let { $head: n, $anchor: r } = t.selection;
|
|
13763
13763
|
if (!n.parent.type.spec.code || !n.sameParent(r))
|
|
13764
13764
|
return !1;
|
|
@@ -13770,7 +13770,7 @@ const Vo = (t, e) => {
|
|
|
13770
13770
|
l.setSelection(O.near(l.doc.resolve(o), 1)), e(l.scrollIntoView());
|
|
13771
13771
|
}
|
|
13772
13772
|
return !0;
|
|
13773
|
-
},
|
|
13773
|
+
}, Wo = (t, e) => {
|
|
13774
13774
|
let n = t.selection, { $from: r, $to: u } = n;
|
|
13775
13775
|
if (n instanceof ee || r.parent.inlineContent || u.parent.inlineContent)
|
|
13776
13776
|
return !1;
|
|
@@ -13782,23 +13782,23 @@ const Vo = (t, e) => {
|
|
|
13782
13782
|
o.setSelection(F.create(o.doc, s + 1)), e(o.scrollIntoView());
|
|
13783
13783
|
}
|
|
13784
13784
|
return !0;
|
|
13785
|
-
},
|
|
13785
|
+
}, Ho = (t, e) => {
|
|
13786
13786
|
let { $cursor: n } = t.selection;
|
|
13787
13787
|
if (!n || n.parent.content.size)
|
|
13788
13788
|
return !1;
|
|
13789
13789
|
if (n.depth > 1 && n.after() != n.end(-1)) {
|
|
13790
13790
|
let i = n.before();
|
|
13791
|
-
if (
|
|
13791
|
+
if (fn(t.doc, i))
|
|
13792
13792
|
return e && e(t.tr.split(i).scrollIntoView()), !0;
|
|
13793
13793
|
}
|
|
13794
|
-
let r = n.blockRange(), u = r &&
|
|
13794
|
+
let r = n.blockRange(), u = r && Tn(r);
|
|
13795
13795
|
return u == null ? !1 : (e && e(t.tr.lift(r, u).scrollIntoView()), !0);
|
|
13796
13796
|
};
|
|
13797
|
-
function
|
|
13797
|
+
function Jo(t) {
|
|
13798
13798
|
return (e, n) => {
|
|
13799
13799
|
let { $from: r, $to: u } = e.selection;
|
|
13800
13800
|
if (e.selection instanceof A && e.selection.node.isBlock)
|
|
13801
|
-
return !r.parentOffset || !
|
|
13801
|
+
return !r.parentOffset || !fn(e.doc, r.pos) ? !1 : (n && n(e.tr.split(r.pos).scrollIntoView()), !0);
|
|
13802
13802
|
if (!r.depth)
|
|
13803
13803
|
return !1;
|
|
13804
13804
|
let i = [], s, o, l = !1, a = !1;
|
|
@@ -13813,8 +13813,8 @@ function Ho(t) {
|
|
|
13813
13813
|
}
|
|
13814
13814
|
let c = e.tr;
|
|
13815
13815
|
(e.selection instanceof F || e.selection instanceof ee) && c.deleteSelection();
|
|
13816
|
-
let f = c.mapping.map(r.pos), p =
|
|
13817
|
-
if (p || (i[0] = o ? { type: o } : null, p =
|
|
13816
|
+
let f = c.mapping.map(r.pos), p = fn(c.doc, f, i.length, i);
|
|
13817
|
+
if (p || (i[0] = o ? { type: o } : null, p = fn(c.doc, f, i.length, i)), !p)
|
|
13818
13818
|
return !1;
|
|
13819
13819
|
if (c.split(f, i.length, i), !l && a && r.node(s).type != o) {
|
|
13820
13820
|
let h = c.mapping.map(r.before(s)), d = c.doc.resolve(h);
|
|
@@ -13823,12 +13823,12 @@ function Ho(t) {
|
|
|
13823
13823
|
return n && n(c.scrollIntoView()), !0;
|
|
13824
13824
|
};
|
|
13825
13825
|
}
|
|
13826
|
-
const
|
|
13826
|
+
const jo = Jo(), Uo = (t, e) => (e && e(t.tr.setSelection(new ee(t.doc))), !0);
|
|
13827
13827
|
function Sh(t, e, n) {
|
|
13828
13828
|
let r = e.nodeBefore, u = e.nodeAfter, i = e.index();
|
|
13829
|
-
return !r || !u || !r.type.compatibleContent(u.type) ? !1 : !r.content.size && e.parent.canReplace(i - 1, i) ? (n && n(t.tr.delete(e.pos - r.nodeSize, e.pos).scrollIntoView()), !0) : !e.parent.canReplace(i, i + 1) || !(u.isTextblock ||
|
|
13829
|
+
return !r || !u || !r.type.compatibleContent(u.type) ? !1 : !r.content.size && e.parent.canReplace(i - 1, i) ? (n && n(t.tr.delete(e.pos - r.nodeSize, e.pos).scrollIntoView()), !0) : !e.parent.canReplace(i, i + 1) || !(u.isTextblock || xs(t.doc, e.pos)) ? !1 : (n && n(t.tr.join(e.pos).scrollIntoView()), !0);
|
|
13830
13830
|
}
|
|
13831
|
-
function
|
|
13831
|
+
function Ko(t, e, n, r) {
|
|
13832
13832
|
let u = e.nodeBefore, i = e.nodeAfter, s, o, l = u.type.spec.isolating || i.type.spec.isolating;
|
|
13833
13833
|
if (!l && Sh(t, e, n))
|
|
13834
13834
|
return !0;
|
|
@@ -13840,11 +13840,11 @@ function Uo(t, e, n, r) {
|
|
|
13840
13840
|
d = y.from(s[b].create(null, d));
|
|
13841
13841
|
d = y.from(u.copy(d));
|
|
13842
13842
|
let m = t.tr.step(new Q(e.pos - 1, h, e.pos, h, new D(d, 1, 0), s.length, !0)), g = m.doc.resolve(h + 2 * s.length);
|
|
13843
|
-
g.nodeAfter && g.nodeAfter.type == u.type &&
|
|
13843
|
+
g.nodeAfter && g.nodeAfter.type == u.type && xs(m.doc, g.pos) && m.join(g.pos), n(m.scrollIntoView());
|
|
13844
13844
|
}
|
|
13845
13845
|
return !0;
|
|
13846
13846
|
}
|
|
13847
|
-
let c = i.type.spec.isolating || r > 0 && l ? null : O.findFrom(e, 1), f = c && c.$from.blockRange(c.$to), p = f &&
|
|
13847
|
+
let c = i.type.spec.isolating || r > 0 && l ? null : O.findFrom(e, 1), f = c && c.$from.blockRange(c.$to), p = f && Tn(f);
|
|
13848
13848
|
if (p != null && p >= e.depth)
|
|
13849
13849
|
return n && n(t.tr.lift(f, p).scrollIntoView()), !0;
|
|
13850
13850
|
if (a && xt(i, "start", !0) && xt(u, "end")) {
|
|
@@ -13867,7 +13867,7 @@ function Uo(t, e, n, r) {
|
|
|
13867
13867
|
}
|
|
13868
13868
|
return !1;
|
|
13869
13869
|
}
|
|
13870
|
-
function
|
|
13870
|
+
function Zo(t) {
|
|
13871
13871
|
return function(e, n) {
|
|
13872
13872
|
let r = e.selection, u = t < 0 ? r.$from : r.$to, i = u.depth;
|
|
13873
13873
|
for (; u.node(i).isInline; ) {
|
|
@@ -13878,7 +13878,7 @@ function Ko(t) {
|
|
|
13878
13878
|
return u.node(i).isTextblock ? (n && n(e.tr.setSelection(F.create(e.doc, t < 0 ? u.start(i) : u.end(i)))), !0) : !1;
|
|
13879
13879
|
};
|
|
13880
13880
|
}
|
|
13881
|
-
const
|
|
13881
|
+
const Go = Zo(-1), Yo = Zo(1);
|
|
13882
13882
|
function Ah(t, e = null) {
|
|
13883
13883
|
return function(n, r) {
|
|
13884
13884
|
let { $from: u, $to: i } = n.selection, s = u.blockRange(i), o = s && Gl(s, t, e);
|
|
@@ -13938,7 +13938,7 @@ function Th(t) {
|
|
|
13938
13938
|
}
|
|
13939
13939
|
return e;
|
|
13940
13940
|
}
|
|
13941
|
-
function
|
|
13941
|
+
function hn(t, e = null, n) {
|
|
13942
13942
|
let r = (n && n.removeWhenPresent) !== !1, u = (n && n.enterInlineAtoms) !== !1, i = !(n && n.includeWhitespace);
|
|
13943
13943
|
return function(s, o) {
|
|
13944
13944
|
let { empty: l, $cursor: a, ranges: c } = s.selection;
|
|
@@ -13971,7 +13971,7 @@ function dn(t, e = null, n) {
|
|
|
13971
13971
|
return !0;
|
|
13972
13972
|
};
|
|
13973
13973
|
}
|
|
13974
|
-
function
|
|
13974
|
+
function Pn(...t) {
|
|
13975
13975
|
return function(e, n, r) {
|
|
13976
13976
|
for (let u = 0; u < t.length; u++)
|
|
13977
13977
|
if (t[u](e, n, r))
|
|
@@ -13979,16 +13979,16 @@ function zn(...t) {
|
|
|
13979
13979
|
return !1;
|
|
13980
13980
|
};
|
|
13981
13981
|
}
|
|
13982
|
-
let
|
|
13982
|
+
let br = Pn(lu, Bo, vo), Bi = Pn(lu, Po, Lo);
|
|
13983
13983
|
const me = {
|
|
13984
|
-
Enter:
|
|
13985
|
-
"Mod-Enter":
|
|
13986
|
-
Backspace:
|
|
13987
|
-
"Mod-Backspace":
|
|
13988
|
-
"Shift-Backspace":
|
|
13984
|
+
Enter: Pn(Vo, Wo, Ho, jo),
|
|
13985
|
+
"Mod-Enter": $o,
|
|
13986
|
+
Backspace: br,
|
|
13987
|
+
"Mod-Backspace": br,
|
|
13988
|
+
"Shift-Backspace": br,
|
|
13989
13989
|
Delete: Bi,
|
|
13990
13990
|
"Mod-Delete": Bi,
|
|
13991
|
-
"Mod-a":
|
|
13991
|
+
"Mod-a": Uo
|
|
13992
13992
|
}, cu = {
|
|
13993
13993
|
"Ctrl-h": me.Backspace,
|
|
13994
13994
|
"Alt-Backspace": me["Mod-Backspace"],
|
|
@@ -13996,34 +13996,34 @@ const me = {
|
|
|
13996
13996
|
"Ctrl-Alt-Backspace": me["Mod-Delete"],
|
|
13997
13997
|
"Alt-Delete": me["Mod-Delete"],
|
|
13998
13998
|
"Alt-d": me["Mod-Delete"],
|
|
13999
|
-
"Ctrl-a":
|
|
14000
|
-
"Ctrl-e":
|
|
13999
|
+
"Ctrl-a": Go,
|
|
14000
|
+
"Ctrl-e": Yo
|
|
14001
14001
|
};
|
|
14002
14002
|
for (let t in me)
|
|
14003
14003
|
cu[t] = me[t];
|
|
14004
|
-
const Oh = typeof navigator < "u" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform) : typeof os < "u" && os.platform ? os.platform() == "darwin" : !1,
|
|
14004
|
+
const Oh = typeof navigator < "u" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform) : typeof os < "u" && os.platform ? os.platform() == "darwin" : !1, Xo = Oh ? cu : me, Ln = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
14005
14005
|
__proto__: null,
|
|
14006
|
-
baseKeymap:
|
|
14007
|
-
chainCommands:
|
|
14008
|
-
createParagraphNear:
|
|
14006
|
+
baseKeymap: Xo,
|
|
14007
|
+
chainCommands: Pn,
|
|
14008
|
+
createParagraphNear: Wo,
|
|
14009
14009
|
deleteSelection: lu,
|
|
14010
|
-
exitCode:
|
|
14011
|
-
joinBackward:
|
|
14012
|
-
joinForward:
|
|
14010
|
+
exitCode: $o,
|
|
14011
|
+
joinBackward: Bo,
|
|
14012
|
+
joinForward: Po,
|
|
14013
14013
|
lift: Eh,
|
|
14014
|
-
liftEmptyBlock:
|
|
14014
|
+
liftEmptyBlock: Ho,
|
|
14015
14015
|
macBaseKeymap: cu,
|
|
14016
|
-
newlineInCode:
|
|
14016
|
+
newlineInCode: Vo,
|
|
14017
14017
|
pcBaseKeymap: me,
|
|
14018
|
-
selectAll:
|
|
14019
|
-
selectNodeBackward:
|
|
14020
|
-
selectNodeForward:
|
|
14021
|
-
selectTextblockEnd:
|
|
14022
|
-
selectTextblockStart:
|
|
14018
|
+
selectAll: Uo,
|
|
14019
|
+
selectNodeBackward: vo,
|
|
14020
|
+
selectNodeForward: Lo,
|
|
14021
|
+
selectTextblockEnd: Yo,
|
|
14022
|
+
selectTextblockStart: Go,
|
|
14023
14023
|
setBlockType: Mh,
|
|
14024
|
-
splitBlock:
|
|
14025
|
-
splitBlockAs:
|
|
14026
|
-
toggleMark:
|
|
14024
|
+
splitBlock: jo,
|
|
14025
|
+
splitBlockAs: Jo,
|
|
14026
|
+
toggleMark: hn,
|
|
14027
14027
|
wrapIn: Ah
|
|
14028
14028
|
}, Symbol.toStringTag, { value: "Module" })), vi = {
|
|
14029
14029
|
headings: !0,
|
|
@@ -14065,160 +14065,163 @@ const qh = (t) => {
|
|
|
14065
14065
|
placeholder: p,
|
|
14066
14066
|
showToolbar: h = !1,
|
|
14067
14067
|
features: d
|
|
14068
|
-
} = t, m = j.toSignal(f), g = j.toSignal(a ?? !1), b = j.toSignal(h), x =
|
|
14068
|
+
} = t, m = j.toSignal(f), g = j.toSignal(a ?? !1), b = j.toSignal(h), x = Li(d ?? vi)((S) => ({
|
|
14069
14069
|
...vi,
|
|
14070
14070
|
...S
|
|
14071
14071
|
})), k = zi(null), C = ll();
|
|
14072
|
-
return
|
|
14073
|
-
|
|
14074
|
-
(
|
|
14075
|
-
|
|
14076
|
-
|
|
14077
|
-
|
|
14078
|
-
|
|
14079
|
-
|
|
14080
|
-
(
|
|
14081
|
-
|
|
14082
|
-
|
|
14083
|
-
Je.class(i),
|
|
14084
|
-
Je.class(
|
|
14085
|
-
j.map(
|
|
14086
|
-
l ?? !1,
|
|
14087
|
-
(E) => E ? "bc-input-container--error" : ""
|
|
14088
|
-
)
|
|
14089
|
-
),
|
|
14090
|
-
Je.id(s),
|
|
14091
|
-
Je.name(o),
|
|
14092
|
-
// Optional toolbar
|
|
14093
|
-
It(
|
|
14094
|
-
b,
|
|
14095
|
-
() => It(
|
|
14096
|
-
k.map((E) => E != null),
|
|
14097
|
-
() => ml({
|
|
14098
|
-
view: k,
|
|
14099
|
-
stateUpdate: C,
|
|
14100
|
-
features: x,
|
|
14101
|
-
readOnly: m
|
|
14102
|
-
})
|
|
14072
|
+
return Pi(
|
|
14073
|
+
on(x),
|
|
14074
|
+
qi(
|
|
14075
|
+
al,
|
|
14076
|
+
({ appearance: S }) => fu.div(
|
|
14077
|
+
on(C.dispose, k.dispose, () => {
|
|
14078
|
+
k.value?.destroy();
|
|
14079
|
+
}),
|
|
14080
|
+
(t.cssInjection ?? "none") === "none" ? null : tl(
|
|
14081
|
+
() => import("./styles-url-CF_019NX.js"),
|
|
14082
|
+
({ default: E }) => ol({ id: "beatui-prosemirror-css", href: E })
|
|
14103
14083
|
),
|
|
14104
|
-
()
|
|
14105
|
-
|
|
14106
|
-
|
|
14107
|
-
|
|
14108
|
-
|
|
14109
|
-
|
|
14110
|
-
|
|
14111
|
-
|
|
14112
|
-
|
|
14113
|
-
|
|
14114
|
-
|
|
14115
|
-
|
|
14116
|
-
|
|
14117
|
-
|
|
14118
|
-
|
|
14119
|
-
|
|
14120
|
-
|
|
14121
|
-
|
|
14122
|
-
|
|
14123
|
-
|
|
14124
|
-
|
|
14125
|
-
|
|
14126
|
-
|
|
14127
|
-
|
|
14128
|
-
|
|
14129
|
-
|
|
14130
|
-
|
|
14131
|
-
|
|
14132
|
-
|
|
14133
|
-
|
|
14134
|
-
|
|
14135
|
-
|
|
14136
|
-
|
|
14137
|
-
|
|
14138
|
-
|
|
14139
|
-
|
|
14140
|
-
|
|
14141
|
-
|
|
14142
|
-
|
|
14143
|
-
|
|
14144
|
-
|
|
14145
|
-
|
|
14146
|
-
|
|
14147
|
-
|
|
14148
|
-
|
|
14149
|
-
|
|
14150
|
-
|
|
14151
|
-
|
|
14152
|
-
|
|
14153
|
-
|
|
14154
|
-
|
|
14155
|
-
|
|
14156
|
-
|
|
14157
|
-
|
|
14158
|
-
|
|
14159
|
-
|
|
14160
|
-
|
|
14161
|
-
|
|
14162
|
-
|
|
14163
|
-
if (I !== de) {
|
|
14164
|
-
const Qt = Fi.parse(I ?? "");
|
|
14165
|
-
if (Qt != null) {
|
|
14166
|
-
const Xo = Ue.create({
|
|
14167
|
-
doc: Qt,
|
|
14168
|
-
schema: Dt,
|
|
14169
|
-
plugins: le.state.plugins
|
|
14170
|
-
});
|
|
14171
|
-
le.updateState(Xo);
|
|
14084
|
+
Je.class("bc-prosemirror-editor-container"),
|
|
14085
|
+
Je.class(i),
|
|
14086
|
+
Je.class(
|
|
14087
|
+
j.map(
|
|
14088
|
+
l ?? !1,
|
|
14089
|
+
(E) => E ? "bc-input-container--error" : ""
|
|
14090
|
+
)
|
|
14091
|
+
),
|
|
14092
|
+
Je.id(s),
|
|
14093
|
+
Je.name(o),
|
|
14094
|
+
// Optional toolbar
|
|
14095
|
+
It(
|
|
14096
|
+
b,
|
|
14097
|
+
() => It(
|
|
14098
|
+
k.map((E) => E != null),
|
|
14099
|
+
() => ml({
|
|
14100
|
+
view: k,
|
|
14101
|
+
stateUpdate: C,
|
|
14102
|
+
features: x,
|
|
14103
|
+
readOnly: m
|
|
14104
|
+
})
|
|
14105
|
+
),
|
|
14106
|
+
() => null
|
|
14107
|
+
),
|
|
14108
|
+
// Editor mount point
|
|
14109
|
+
fu.div(
|
|
14110
|
+
Je.class("bc-prosemirror-editor"),
|
|
14111
|
+
nl((E) => {
|
|
14112
|
+
const _ = [];
|
|
14113
|
+
return (() => {
|
|
14114
|
+
try {
|
|
14115
|
+
const T = j.get(e) ?? "", oe = j.get(m) ?? !1, Ct = j.get(g) ?? !1, qn = j.get(x), Dt = Ih(
|
|
14116
|
+
Lr,
|
|
14117
|
+
a0,
|
|
14118
|
+
qn
|
|
14119
|
+
), Xt = Fi.parse(T) ?? void 0, we = Nh(Dt), Vn = Ue.create({
|
|
14120
|
+
doc: Xt,
|
|
14121
|
+
schema: Dt,
|
|
14122
|
+
plugins: [
|
|
14123
|
+
hh(),
|
|
14124
|
+
gr({
|
|
14125
|
+
"Mod-z": Ro,
|
|
14126
|
+
"Mod-y": Pr,
|
|
14127
|
+
"Mod-Shift-z": Pr
|
|
14128
|
+
}),
|
|
14129
|
+
gr(we),
|
|
14130
|
+
gr(Xo),
|
|
14131
|
+
Fh(C.tick)
|
|
14132
|
+
]
|
|
14133
|
+
}), le = new io(E, {
|
|
14134
|
+
state: Vn,
|
|
14135
|
+
editable: () => !oe && !Ct,
|
|
14136
|
+
dispatchTransaction(I) {
|
|
14137
|
+
const de = le.state.apply(I);
|
|
14138
|
+
if (le.updateState(de), I.docChanged && r != null) {
|
|
14139
|
+
const Qt = fr.serialize(
|
|
14140
|
+
de.doc
|
|
14141
|
+
);
|
|
14142
|
+
r(Qt);
|
|
14172
14143
|
}
|
|
14173
14144
|
}
|
|
14174
|
-
})
|
|
14175
|
-
|
|
14176
|
-
|
|
14177
|
-
|
|
14178
|
-
|
|
14145
|
+
});
|
|
14146
|
+
if (k.set(le), j.get(c) && le.focus(), p != null && _.push(
|
|
14147
|
+
j.on(p, (I) => {
|
|
14148
|
+
I != null && I !== "" ? E.setAttribute("data-placeholder", I) : E.removeAttribute("data-placeholder");
|
|
14149
|
+
})
|
|
14150
|
+
), _.push(
|
|
14151
|
+
j.on(m, (I) => {
|
|
14152
|
+
const de = j.get(g);
|
|
14153
|
+
le.setProps({ editable: () => !I && !de });
|
|
14154
|
+
})
|
|
14155
|
+
), _.push(
|
|
14156
|
+
j.on(g, (I) => {
|
|
14157
|
+
const de = j.get(m);
|
|
14158
|
+
le.setProps({ editable: () => !de && !I });
|
|
14159
|
+
})
|
|
14160
|
+
), _.push(
|
|
14161
|
+
j.on(e, (I) => {
|
|
14162
|
+
const de = fr.serialize(
|
|
14163
|
+
le.state.doc
|
|
14164
|
+
);
|
|
14165
|
+
if (I !== de) {
|
|
14166
|
+
const Qt = Fi.parse(I ?? "");
|
|
14167
|
+
if (Qt != null) {
|
|
14168
|
+
const Qo = Ue.create({
|
|
14169
|
+
doc: Qt,
|
|
14170
|
+
schema: Dt,
|
|
14171
|
+
plugins: le.state.plugins
|
|
14172
|
+
});
|
|
14173
|
+
le.updateState(Qo);
|
|
14174
|
+
}
|
|
14175
|
+
}
|
|
14176
|
+
})
|
|
14177
|
+
), n != null) {
|
|
14178
|
+
const I = () => {
|
|
14179
|
+
const de = fr.serialize(
|
|
14180
|
+
le.state.doc
|
|
14181
|
+
);
|
|
14182
|
+
n(de);
|
|
14183
|
+
};
|
|
14184
|
+
E.addEventListener("blur", I, !0), _.push(
|
|
14185
|
+
() => E.removeEventListener("blur", I, !0)
|
|
14179
14186
|
);
|
|
14180
|
-
|
|
14181
|
-
|
|
14182
|
-
|
|
14183
|
-
|
|
14184
|
-
|
|
14185
|
-
|
|
14186
|
-
|
|
14187
|
-
|
|
14188
|
-
|
|
14189
|
-
|
|
14190
|
-
|
|
14191
|
-
|
|
14187
|
+
}
|
|
14188
|
+
if (u != null) {
|
|
14189
|
+
const I = () => {
|
|
14190
|
+
u();
|
|
14191
|
+
};
|
|
14192
|
+
E.addEventListener("blur", I, !0), _.push(
|
|
14193
|
+
() => E.removeEventListener("blur", I, !0)
|
|
14194
|
+
);
|
|
14195
|
+
}
|
|
14196
|
+
_.push(
|
|
14197
|
+
S.on((I) => {
|
|
14198
|
+
I === "dark" ? E.classList.add("bc-prosemirror-editor--dark") : E.classList.remove("bc-prosemirror-editor--dark");
|
|
14199
|
+
})
|
|
14200
|
+
), _.push(() => le.destroy());
|
|
14201
|
+
} catch (T) {
|
|
14202
|
+
console.error(
|
|
14203
|
+
"[BeatUI] Failed to initialize ProseMirror editor:",
|
|
14204
|
+
T
|
|
14192
14205
|
);
|
|
14206
|
+
const oe = E;
|
|
14207
|
+
oe.textContent = "Failed to load ProseMirror Editor. Please ensure prosemirror packages are installed.";
|
|
14193
14208
|
}
|
|
14194
|
-
|
|
14195
|
-
|
|
14196
|
-
|
|
14197
|
-
|
|
14198
|
-
|
|
14199
|
-
} catch (T) {
|
|
14200
|
-
console.error(
|
|
14201
|
-
"[BeatUI] Failed to initialize ProseMirror editor:",
|
|
14202
|
-
T
|
|
14203
|
-
);
|
|
14204
|
-
const oe = E;
|
|
14205
|
-
oe.textContent = "Failed to load ProseMirror Editor. Please ensure prosemirror packages are installed.";
|
|
14206
|
-
}
|
|
14207
|
-
})(), br(() => {
|
|
14208
|
-
_.forEach((T) => T());
|
|
14209
|
-
});
|
|
14210
|
-
})
|
|
14209
|
+
})(), on(() => {
|
|
14210
|
+
_.forEach((T) => T());
|
|
14211
|
+
});
|
|
14212
|
+
})
|
|
14213
|
+
)
|
|
14211
14214
|
)
|
|
14212
14215
|
)
|
|
14213
14216
|
);
|
|
14214
14217
|
};
|
|
14215
14218
|
function Nh(t) {
|
|
14216
14219
|
const e = {}, n = t.marks.strong;
|
|
14217
|
-
n != null && (e["Mod-b"] = (i, s) =>
|
|
14220
|
+
n != null && (e["Mod-b"] = (i, s) => hn(n)(i, s));
|
|
14218
14221
|
const r = t.marks.em;
|
|
14219
|
-
r != null && (e["Mod-i"] = (i, s) =>
|
|
14222
|
+
r != null && (e["Mod-i"] = (i, s) => hn(r)(i, s));
|
|
14220
14223
|
const u = t.marks.code;
|
|
14221
|
-
return u != null && (e["Mod-`"] = (i, s) =>
|
|
14224
|
+
return u != null && (e["Mod-`"] = (i, s) => hn(u)(i, s)), e;
|
|
14222
14225
|
}
|
|
14223
14226
|
function Ih(t, e, n) {
|
|
14224
14227
|
const r = {}, u = {}, i = e.spec.nodes.get("doc"), s = e.spec.nodes.get("text");
|
|
@@ -14279,9 +14282,9 @@ export {
|
|
|
14279
14282
|
qh as P,
|
|
14280
14283
|
Q as R,
|
|
14281
14284
|
D as S,
|
|
14282
|
-
|
|
14285
|
+
fn as a,
|
|
14283
14286
|
ml as b,
|
|
14284
|
-
|
|
14287
|
+
xs as c,
|
|
14285
14288
|
Gl as f,
|
|
14286
|
-
|
|
14289
|
+
Tn as l
|
|
14287
14290
|
};
|