@factorialco/f0-react 1.200.3 → 1.200.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/experimental.js +295 -294
- package/dist/f0.js +2 -2
- package/dist/{hooks-Cs9VKXCr.js → hooks-DWW98fDA.js} +944 -956
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/experimental.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { aM as Dy, aN as Ry, aO as n0, aP as _a, aQ as mk, aR as gk, aS as yk, aT as Fc, aU as vk, aV as bk, aW as kk, aX as U, aY as Py, aZ as xk, a_ as wk, a$ as _k, b0 as ks, b1 as Uo, b2 as Wl, b3 as Ck, b4 as Ya, b5 as Sk, b6 as Bc, b7 as Nk, b8 as Lk, b9 as Za, ba as Ek, bb as Mk, bc as Tk, bd as i0, be as Ok, bf as r0, bg as Ak, bh as Fy, bi as By, bj as Ik, bk as Ys, q as At, a as L, bl as sr, P as Ke, bm as ze, s as fe, j as Qe, y as ie, bn as vf, L as Ki, bo as $e, bp as Ei, _ as $y, bq as De, w as _i, x as Wn, br as zy, bs as ql, bt as Ul, bu as Dk, n as bf, bv as jy, bw as Vy, bx as pe, by as or, bz as ut, f as Rk, bA as Pk, bB as Fk, bC as Bk, b as s0, bD as $k, bE as zk, bF as Jt, ab as Kl, ay as o0, bG as Xr, bH as Hy, bI as Eh, bJ as jk, c as kf, bK as Zs, bL as Mh, bM as $t, bN as Vk, bO as Tn, bP as Hk, bQ as Wy, bR as Wk, bS as zi, bT as qk, bU as Uk, bV as Kk, bW as Gk, bX as Jk, bY as qy, bZ as Yk, b_ as a0, b$ as Zk, aI as Xs, S as Mi, t as Th, c0 as Xk, as as Qk, au as Uy, ap as Ky, av as xf, c1 as Gy, $ as Ca, r as Ti, c2 as ex, c3 as Oh, a8 as qn, c4 as Yt, c5 as wf, c6 as Ko, c7 as tx, c8 as Jy, c9 as nx, h as _f, i as Cf, k as Sf, ca as Ah, cb as ix, cc as Yy, C as mn, cd as Zy, ce as rx, cf as sx, G as ox, cg as Xy, ch as Ku, ci as Qy, a5 as Gu, cj as ax, ck as lx, cl as dx, cm as fx, cn as cx, aJ as Nf, a2 as Ju, F as Ih, aL as ux, co as Ln, aK as hx, cp as e4, cq as an, cr as mr, cs as px, ct as mx, cu as qt, cv as Gl, cw as t4, cx as gx, ag as Lf, a6 as Dh, al as jr, cy as Rh, cz as Ph, cA as n4, cB as yx, a9 as vx, a1 as i4, cC as bx, cD as r4, cE as kx, cF as xx, cG as wx, D as s4, u as o4, cH as l0, cI as _x, cJ as Sa, cK as Cx, cL as Ef, K as Sx, m as Nx, cM as Lx, cN as Ex, cO as Mx, cP as Tx, cQ as Ox, cR as Ax, cS as Ix, cT as Dx, p as Rx, an as Px, cU as a4, cV as Mf, v as Yu, cW as d0, Y as l4, cX as Na, cY as d4, cZ as f4, c_ as Fx, a0 as Qs, c$ as Bx, a3 as c4, I as $x, d0 as ft, d1 as f0, d2 as zx, d3 as jx, d4 as Vx, d5 as $c, d6 as Hx, d7 as Wx, aq as qx, ax as Tf, z as Of, d8 as Af, d9 as If, E as Df, aw as u4, aa as h4, da as Ux, aC as Kx, db as Zu, dc as Gx, dd as Jl, de as Jx, ar as Yl, aD as Yx, df as Zx, aB as p4, dg as Xx, aA as Qx, az as ew, dh as tw, di as nw, ac as iw, dj as rw, dk as sw, dl as ow, a4 as aw, dm as La, dn as Fh, dp as Bh, dq as Ea, dr as m4, ds as lw, dt as g4, du as dw, aE as y4, dv as v4, ad as b4, dw as fw, dx as cw, dy as uw, H as hw, A as pw, B as mw, e as gw, g as yw, V as vw, d as bw, dz as c0, dA as kw, dB as xw, dC as ww, dD as k4, dE as _w } from "./hooks-
|
|
2
|
-
import { J as dJ, dG as fJ, a7 as cJ, dF as uJ } from "./hooks-
|
|
1
|
+
import { aM as Dy, aN as Ry, aO as n0, aP as _a, aQ as mk, aR as gk, aS as yk, aT as Fc, aU as vk, aV as bk, aW as kk, aX as U, aY as Py, aZ as xk, a_ as wk, a$ as _k, b0 as ks, b1 as Uo, b2 as Wl, b3 as Ck, b4 as Ya, b5 as Sk, b6 as Bc, b7 as Nk, b8 as Lk, b9 as Za, ba as Ek, bb as Mk, bc as Tk, bd as i0, be as Ok, bf as r0, bg as Ak, bh as Fy, bi as By, bj as Ik, bk as Ys, q as At, a as L, bl as sr, P as Ke, bm as ze, s as fe, j as Qe, y as ie, bn as vf, L as Ki, bo as $e, bp as Ei, _ as $y, bq as De, w as _i, x as Wn, br as zy, bs as ql, bt as Ul, bu as Dk, n as bf, bv as jy, bw as Vy, bx as pe, by as or, bz as ut, f as Rk, bA as Pk, bB as Fk, bC as Bk, b as s0, bD as $k, bE as zk, bF as Jt, ab as Kl, ay as o0, bG as Xr, bH as Hy, bI as Eh, bJ as jk, c as kf, bK as Zs, bL as Mh, bM as $t, bN as Vk, bO as Tn, bP as Hk, bQ as Wy, bR as Wk, bS as zi, bT as qk, bU as Uk, bV as Kk, bW as Gk, bX as Jk, bY as qy, bZ as Yk, b_ as a0, b$ as Zk, aI as Xs, S as Mi, t as Th, c0 as Xk, as as Qk, au as Uy, ap as Ky, av as xf, c1 as Gy, $ as Ca, r as Ti, c2 as ex, c3 as Oh, a8 as qn, c4 as Yt, c5 as wf, c6 as Ko, c7 as tx, c8 as Jy, c9 as nx, h as _f, i as Cf, k as Sf, ca as Ah, cb as ix, cc as Yy, C as mn, cd as Zy, ce as rx, cf as sx, G as ox, cg as Xy, ch as Ku, ci as Qy, a5 as Gu, cj as ax, ck as lx, cl as dx, cm as fx, cn as cx, aJ as Nf, a2 as Ju, F as Ih, aL as ux, co as Ln, aK as hx, cp as e4, cq as an, cr as mr, cs as px, ct as mx, cu as qt, cv as Gl, cw as t4, cx as gx, ag as Lf, a6 as Dh, al as jr, cy as Rh, cz as Ph, cA as n4, cB as yx, a9 as vx, a1 as i4, cC as bx, cD as r4, cE as kx, cF as xx, cG as wx, D as s4, u as o4, cH as l0, cI as _x, cJ as Sa, cK as Cx, cL as Ef, K as Sx, m as Nx, cM as Lx, cN as Ex, cO as Mx, cP as Tx, cQ as Ox, cR as Ax, cS as Ix, cT as Dx, p as Rx, an as Px, cU as a4, cV as Mf, v as Yu, cW as d0, Y as l4, cX as Na, cY as d4, cZ as f4, c_ as Fx, a0 as Qs, c$ as Bx, a3 as c4, I as $x, d0 as ft, d1 as f0, d2 as zx, d3 as jx, d4 as Vx, d5 as $c, d6 as Hx, d7 as Wx, aq as qx, ax as Tf, z as Of, d8 as Af, d9 as If, E as Df, aw as u4, aa as h4, da as Ux, aC as Kx, db as Zu, dc as Gx, dd as Jl, de as Jx, ar as Yl, aD as Yx, df as Zx, aB as p4, dg as Xx, aA as Qx, az as ew, dh as tw, di as nw, ac as iw, dj as rw, dk as sw, dl as ow, a4 as aw, dm as La, dn as Fh, dp as Bh, dq as Ea, dr as m4, ds as lw, dt as g4, du as dw, aE as y4, dv as v4, ad as b4, dw as fw, dx as cw, dy as uw, H as hw, A as pw, B as mw, e as gw, g as yw, V as vw, d as bw, dz as c0, dA as kw, dB as xw, dC as ww, dD as k4, dE as _w } from "./hooks-DWW98fDA.js";
|
|
2
|
+
import { J as dJ, dG as fJ, a7 as cJ, dF as uJ } from "./hooks-DWW98fDA.js";
|
|
3
3
|
import { jsxs as b, jsx as d, Fragment as we } from "react/jsx-runtime";
|
|
4
4
|
import * as A from "react";
|
|
5
5
|
import Y, { forwardRef as j, createContext as Rn, useRef as le, useState as $, useCallback as Se, useContext as ln, useMemo as ue, useEffect as ee, PureComponent as Cw, useId as Qr, useLayoutEffect as $h, memo as Ma, Fragment as ar, useTransition as Sw, isValidElement as Nw, cloneElement as x4, useDebugValue as w4, createRef as Lw, createElement as Ew, version as u0, useImperativeHandle as Rf, Children as _4 } from "react";
|
|
@@ -3443,7 +3443,7 @@ const MS = ({
|
|
|
3443
3443
|
U.div,
|
|
3444
3444
|
{
|
|
3445
3445
|
"aria-hidden": !e,
|
|
3446
|
-
className: "relative flex h-full max-w-[360px] flex-col overflow-hidden bg-f1-special-page shadow xs:rounded-xl",
|
|
3446
|
+
className: "relative flex h-full max-w-[360px] flex-col overflow-hidden border border-solid border-f1-border-secondary bg-f1-special-page shadow xs:rounded-xl",
|
|
3447
3447
|
initial: n ? { opacity: 0, width: 0 } : !1,
|
|
3448
3448
|
animate: { opacity: 1, width: 360 },
|
|
3449
3449
|
exit: { opacity: 0, width: 0 },
|
|
@@ -20631,7 +20631,7 @@ function XO({
|
|
|
20631
20631
|
return /* @__PURE__ */ b(
|
|
20632
20632
|
"div",
|
|
20633
20633
|
{
|
|
20634
|
-
className: "shadow-sm flex
|
|
20634
|
+
className: "shadow-sm flex w-[323.2px] flex-col",
|
|
20635
20635
|
style: {
|
|
20636
20636
|
maxHeight: `${o}px`
|
|
20637
20637
|
},
|
|
@@ -21167,6 +21167,7 @@ const oA = ({
|
|
|
21167
21167
|
draggable: s !== void 0,
|
|
21168
21168
|
metadata: r ? y(r(C)) : void 0,
|
|
21169
21169
|
compact: !0,
|
|
21170
|
+
forceVerticalMetadata: !0,
|
|
21170
21171
|
selectable: o.selectable !== void 0,
|
|
21171
21172
|
selected: F,
|
|
21172
21173
|
"data-testid": `kanban-card-${String(C.id)}`,
|
|
@@ -27368,7 +27369,7 @@ class Oe {
|
|
|
27368
27369
|
`$head`.
|
|
27369
27370
|
*/
|
|
27370
27371
|
constructor(e, n, i) {
|
|
27371
|
-
this.$anchor = e, this.$head = n, this.ranges = i || [new
|
|
27372
|
+
this.$anchor = e, this.$head = n, this.ranges = i || [new eb(e.min(n), e.max(n))];
|
|
27372
27373
|
}
|
|
27373
27374
|
/**
|
|
27374
27375
|
The selection's anchor, as an unresolved position.
|
|
@@ -27526,7 +27527,7 @@ class Oe {
|
|
|
27526
27527
|
}
|
|
27527
27528
|
}
|
|
27528
27529
|
Oe.prototype.visible = !0;
|
|
27529
|
-
class
|
|
27530
|
+
class eb {
|
|
27530
27531
|
/**
|
|
27531
27532
|
Create a range.
|
|
27532
27533
|
*/
|
|
@@ -28123,10 +28124,10 @@ class vs {
|
|
|
28123
28124
|
}), s;
|
|
28124
28125
|
}
|
|
28125
28126
|
}
|
|
28126
|
-
function
|
|
28127
|
+
function tb(t, e, n) {
|
|
28127
28128
|
for (let i in t) {
|
|
28128
28129
|
let r = t[i];
|
|
28129
|
-
r instanceof Function ? r = r.bind(e) : i == "handleDOMEvents" && (r =
|
|
28130
|
+
r instanceof Function ? r = r.bind(e) : i == "handleDOMEvents" && (r = tb(r, e, {})), n[i] = r;
|
|
28130
28131
|
}
|
|
28131
28132
|
return n;
|
|
28132
28133
|
}
|
|
@@ -28135,7 +28136,7 @@ class Ge {
|
|
|
28135
28136
|
Create a plugin.
|
|
28136
28137
|
*/
|
|
28137
28138
|
constructor(e) {
|
|
28138
|
-
this.spec = e, this.props = {}, e.props &&
|
|
28139
|
+
this.spec = e, this.props = {}, e.props && tb(e.props, this, this.props), this.key = e.key ? e.key.key : nb("plugin");
|
|
28139
28140
|
}
|
|
28140
28141
|
/**
|
|
28141
28142
|
Extract the plugin's state field from an editor state.
|
|
@@ -28145,7 +28146,7 @@ class Ge {
|
|
|
28145
28146
|
}
|
|
28146
28147
|
}
|
|
28147
28148
|
const lu = /* @__PURE__ */ Object.create(null);
|
|
28148
|
-
function
|
|
28149
|
+
function nb(t) {
|
|
28149
28150
|
return t in lu ? t + "$" + ++lu[t] : (lu[t] = 0, t + "$");
|
|
28150
28151
|
}
|
|
28151
28152
|
class tt {
|
|
@@ -28153,7 +28154,7 @@ class tt {
|
|
|
28153
28154
|
Create a plugin key.
|
|
28154
28155
|
*/
|
|
28155
28156
|
constructor(e = "key") {
|
|
28156
|
-
this.key =
|
|
28157
|
+
this.key = nb(e);
|
|
28157
28158
|
}
|
|
28158
28159
|
/**
|
|
28159
28160
|
Get the active plugin with this key, if any, from an editor
|
|
@@ -28277,9 +28278,9 @@ function CI(t, e, n) {
|
|
|
28277
28278
|
return { node: i.startContainer, offset: Math.min(Cn(i.startContainer), i.startOffset) };
|
|
28278
28279
|
}
|
|
28279
28280
|
}
|
|
28280
|
-
const ai = typeof navigator < "u" ? navigator : null, b2 = typeof document < "u" ? document : null, br = ai && ai.userAgent || "", A1 = /Edge\/(\d+)/.exec(br),
|
|
28281
|
+
const ai = typeof navigator < "u" ? navigator : null, b2 = typeof document < "u" ? document : null, br = ai && ai.userAgent || "", A1 = /Edge\/(\d+)/.exec(br), ib = /MSIE \d/.exec(br), I1 = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(br), nn = !!(ib || I1 || A1), nr = ib ? document.documentMode : I1 ? +I1[1] : A1 ? +A1[1] : 0, Un = !nn && /gecko\/(\d+)/i.test(br);
|
|
28281
28282
|
Un && +(/Firefox\/(\d+)/.exec(br) || [0, 0])[1];
|
|
28282
|
-
const D1 = !nn && /Chrome\/(\d+)/.exec(br), Pt = !!D1,
|
|
28283
|
+
const D1 = !nn && /Chrome\/(\d+)/.exec(br), Pt = !!D1, rb = D1 ? +D1[1] : 0, Ut = !nn && !!ai && /Apple Computer/.test(ai.vendor), Fs = Ut && (/Mobile\/\w+/.test(br) || !!ai && ai.maxTouchPoints > 2), _n = Fs || (ai ? /Mac/.test(ai.platform) : !1), SI = ai ? /Win/.test(ai.platform) : !1, xi = /Android \d/.test(br), Ba = !!b2 && "webkitFontSmoothing" in b2.documentElement.style, NI = Ba ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
|
|
28283
28284
|
function LI(t) {
|
|
28284
28285
|
let e = t.defaultView && t.defaultView.visualViewport;
|
|
28285
28286
|
return e ? {
|
|
@@ -28341,9 +28342,9 @@ function MI(t) {
|
|
|
28341
28342
|
break;
|
|
28342
28343
|
}
|
|
28343
28344
|
}
|
|
28344
|
-
return { refDOM: i, refTop: r, stack:
|
|
28345
|
+
return { refDOM: i, refTop: r, stack: sb(t.dom) };
|
|
28345
28346
|
}
|
|
28346
|
-
function
|
|
28347
|
+
function sb(t) {
|
|
28347
28348
|
let e = [], n = t.ownerDocument;
|
|
28348
28349
|
for (let i = t; i && (e.push({ dom: i, top: i.scrollTop, left: i.scrollLeft }), t != n); i = Ps(i))
|
|
28349
28350
|
;
|
|
@@ -28351,9 +28352,9 @@ function s8(t) {
|
|
|
28351
28352
|
}
|
|
28352
28353
|
function TI({ refDOM: t, refTop: e, stack: n }) {
|
|
28353
28354
|
let i = t ? t.getBoundingClientRect().top : 0;
|
|
28354
|
-
|
|
28355
|
+
ob(n, i == 0 ? 0 : i - e);
|
|
28355
28356
|
}
|
|
28356
|
-
function
|
|
28357
|
+
function ob(t, e) {
|
|
28357
28358
|
for (let n = 0; n < t.length; n++) {
|
|
28358
28359
|
let { dom: i, top: r, left: s } = t[n];
|
|
28359
28360
|
i.scrollTop != r + e && (i.scrollTop = r + e), i.scrollLeft != s && (i.scrollLeft = s);
|
|
@@ -28365,14 +28366,14 @@ function OI(t) {
|
|
|
28365
28366
|
return t.setActive();
|
|
28366
28367
|
if (ls)
|
|
28367
28368
|
return t.focus(ls);
|
|
28368
|
-
let e =
|
|
28369
|
+
let e = sb(t);
|
|
28369
28370
|
t.focus(ls == null ? {
|
|
28370
28371
|
get preventScroll() {
|
|
28371
28372
|
return ls = { preventScroll: !0 }, !0;
|
|
28372
28373
|
}
|
|
28373
|
-
} : void 0), ls || (ls = !1,
|
|
28374
|
+
} : void 0), ls || (ls = !1, ob(e, 0));
|
|
28374
28375
|
}
|
|
28375
|
-
function
|
|
28376
|
+
function ab(t, e) {
|
|
28376
28377
|
let n, i = 2e8, r, s = 0, o = e.top, a = e.top, l, f;
|
|
28377
28378
|
for (let c = t.firstChild, u = 0; c; c = c.nextSibling, u++) {
|
|
28378
28379
|
let h;
|
|
@@ -28398,7 +28399,7 @@ function a8(t, e) {
|
|
|
28398
28399
|
!n && (e.left >= m.right && e.top >= m.top || e.left >= m.left && e.top >= m.bottom) && (s = u + 1);
|
|
28399
28400
|
}
|
|
28400
28401
|
}
|
|
28401
|
-
return !n && l && (n = l, r = f, i = 0), n && n.nodeType == 3 ? AI(n, r) : !n || i && n.nodeType == 1 ? { node: t, offset: s } :
|
|
28402
|
+
return !n && l && (n = l, r = f, i = 0), n && n.nodeType == 3 ? AI(n, r) : !n || i && n.nodeType == 1 ? { node: t, offset: s } : ab(n, r);
|
|
28402
28403
|
}
|
|
28403
28404
|
function AI(t, e) {
|
|
28404
28405
|
let n = t.nodeValue.length, i = document.createRange();
|
|
@@ -28418,7 +28419,7 @@ function II(t, e) {
|
|
|
28418
28419
|
return n && /^li$/i.test(n.nodeName) && e.left < t.getBoundingClientRect().left ? n : t;
|
|
28419
28420
|
}
|
|
28420
28421
|
function DI(t, e, n) {
|
|
28421
|
-
let { node: i, offset: r } =
|
|
28422
|
+
let { node: i, offset: r } = ab(e, n), s = -1;
|
|
28422
28423
|
if (i.nodeType == 1 && !i.firstChild) {
|
|
28423
28424
|
let o = i.getBoundingClientRect();
|
|
28424
28425
|
s = o.left != o.right && n.left > (o.left + o.right) / 2 ? 1 : -1;
|
|
@@ -28438,7 +28439,7 @@ function RI(t, e, n, i) {
|
|
|
28438
28439
|
}
|
|
28439
28440
|
return r > -1 ? r : t.docView.posFromDOM(e, n, -1);
|
|
28440
28441
|
}
|
|
28441
|
-
function
|
|
28442
|
+
function lb(t, e, n) {
|
|
28442
28443
|
let i = t.childNodes.length;
|
|
28443
28444
|
if (i && n.top < n.bottom)
|
|
28444
28445
|
for (let r = Math.max(0, Math.min(i - 1, Math.floor(i * (e.top - n.top) / (n.bottom - n.top)) - 2)), s = r; ; ) {
|
|
@@ -28448,7 +28449,7 @@ function l8(t, e, n) {
|
|
|
28448
28449
|
for (let l = 0; l < a.length; l++) {
|
|
28449
28450
|
let f = a[l];
|
|
28450
28451
|
if (Dp(e, f))
|
|
28451
|
-
return
|
|
28452
|
+
return lb(o, e, f);
|
|
28452
28453
|
}
|
|
28453
28454
|
}
|
|
28454
28455
|
if ((s = (s + 1) % i) == r)
|
|
@@ -28462,7 +28463,7 @@ function PI(t, e) {
|
|
|
28462
28463
|
let o = (t.root.elementFromPoint ? t.root : n).elementFromPoint(e.left, e.top), a;
|
|
28463
28464
|
if (!o || !t.dom.contains(o.nodeType != 1 ? o.parentNode : o)) {
|
|
28464
28465
|
let f = t.dom.getBoundingClientRect();
|
|
28465
|
-
if (!Dp(e, f) || (o =
|
|
28466
|
+
if (!Dp(e, f) || (o = lb(t.dom, e, f), !o))
|
|
28466
28467
|
return null;
|
|
28467
28468
|
}
|
|
28468
28469
|
if (Ut)
|
|
@@ -28493,7 +28494,7 @@ function $i(t, e) {
|
|
|
28493
28494
|
return Array.prototype.find.call(n, x2) || t.getBoundingClientRect();
|
|
28494
28495
|
}
|
|
28495
28496
|
const FI = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;
|
|
28496
|
-
function
|
|
28497
|
+
function db(t, e, n) {
|
|
28497
28498
|
let { node: i, offset: r, atom: s } = t.docView.domFromPos(e, n < 0 ? -1 : 1), o = Ba || Un;
|
|
28498
28499
|
if (i.nodeType == 3)
|
|
28499
28500
|
if (o && (FI.test(i.nodeValue) || (n < 0 ? !r : r == i.nodeValue.length))) {
|
|
@@ -28551,7 +28552,7 @@ function du(t, e) {
|
|
|
28551
28552
|
let n = e ? t.top : t.bottom;
|
|
28552
28553
|
return { top: n, bottom: n, left: t.left, right: t.right };
|
|
28553
28554
|
}
|
|
28554
|
-
function
|
|
28555
|
+
function fb(t, e, n) {
|
|
28555
28556
|
let i = t.state, r = t.root.activeElement;
|
|
28556
28557
|
i != e && t.updateState(e), r != t.dom && t.focus();
|
|
28557
28558
|
try {
|
|
@@ -28562,7 +28563,7 @@ function f8(t, e, n) {
|
|
|
28562
28563
|
}
|
|
28563
28564
|
function BI(t, e, n) {
|
|
28564
28565
|
let i = e.selection, r = n == "up" ? i.$from : i.$to;
|
|
28565
|
-
return
|
|
28566
|
+
return fb(t, e, () => {
|
|
28566
28567
|
let { node: s } = t.docView.domFromPos(r.pos, n == "up" ? -1 : 1);
|
|
28567
28568
|
for (; ; ) {
|
|
28568
28569
|
let a = t.docView.nearestDesc(s, !0);
|
|
@@ -28574,7 +28575,7 @@ function BI(t, e, n) {
|
|
|
28574
28575
|
}
|
|
28575
28576
|
s = a.dom.parentNode;
|
|
28576
28577
|
}
|
|
28577
|
-
let o =
|
|
28578
|
+
let o = db(t, r.pos, 1);
|
|
28578
28579
|
for (let a = s.firstChild; a; a = a.nextSibling) {
|
|
28579
28580
|
let l;
|
|
28580
28581
|
if (a.nodeType == 1)
|
|
@@ -28598,7 +28599,7 @@ function zI(t, e, n) {
|
|
|
28598
28599
|
if (!i.parent.isTextblock)
|
|
28599
28600
|
return !1;
|
|
28600
28601
|
let r = i.parentOffset, s = !r, o = r == i.parent.content.size, a = t.domSelection();
|
|
28601
|
-
return a ? !$I.test(i.parent.textContent) || !a.modify ? n == "left" || n == "backward" ? s : o :
|
|
28602
|
+
return a ? !$I.test(i.parent.textContent) || !a.modify ? n == "left" || n == "backward" ? s : o : fb(t, e, () => {
|
|
28602
28603
|
let { focusNode: l, focusOffset: f, anchorNode: c, anchorOffset: u } = t.domSelectionRange(), h = a.caretBidiLevel;
|
|
28603
28604
|
a.modify("move", n, "character");
|
|
28604
28605
|
let p = i.depth ? t.docView.domAfterPos(i.before()) : t.dom, { focusNode: m, focusOffset: g } = t.domSelectionRange(), y = m && !p.contains(m.nodeType == 1 ? m : m.parentNode) || l == m && f == g;
|
|
@@ -28785,7 +28786,7 @@ class $a {
|
|
|
28785
28786
|
let i = 0, r = 0;
|
|
28786
28787
|
for (let s = 0; i < this.children.length; i++) {
|
|
28787
28788
|
let o = this.children[i], a = s + o.size;
|
|
28788
|
-
if (a > e || o instanceof
|
|
28789
|
+
if (a > e || o instanceof ub) {
|
|
28789
28790
|
r = e - s;
|
|
28790
28791
|
break;
|
|
28791
28792
|
}
|
|
@@ -28793,7 +28794,7 @@ class $a {
|
|
|
28793
28794
|
}
|
|
28794
28795
|
if (r)
|
|
28795
28796
|
return this.children[i].domFromPos(r - this.children[i].border, n);
|
|
28796
|
-
for (let s; i && !(s = this.children[i - 1]).size && s instanceof
|
|
28797
|
+
for (let s; i && !(s = this.children[i - 1]).size && s instanceof cb && s.side >= 0; i--)
|
|
28797
28798
|
;
|
|
28798
28799
|
if (n <= 0) {
|
|
28799
28800
|
let s, o = !0;
|
|
@@ -28955,7 +28956,7 @@ class $a {
|
|
|
28955
28956
|
return !1;
|
|
28956
28957
|
}
|
|
28957
28958
|
}
|
|
28958
|
-
class
|
|
28959
|
+
class cb extends $a {
|
|
28959
28960
|
constructor(e, n, i, r) {
|
|
28960
28961
|
let s, o = n.type.toDOM;
|
|
28961
28962
|
if (typeof o == "function" && (o = o(i, () => {
|
|
@@ -29076,7 +29077,7 @@ class ir extends $a {
|
|
|
29076
29077
|
} else c || ({ dom: c, contentDOM: u } = es.renderSpec(document, n.type.spec.toDOM(n), null, n.attrs));
|
|
29077
29078
|
!u && !n.isText && c.nodeName != "BR" && (c.hasAttribute("contenteditable") || (c.contentEditable = "false"), n.type.spec.draggable && (c.draggable = !0));
|
|
29078
29079
|
let h = c;
|
|
29079
|
-
return c =
|
|
29080
|
+
return c = mb(c, i, n), f ? l = new HI(e, n, i, r, c, u || null, h, f, s, o + 1) : n.isText ? new sc(e, n, i, r, c, h, s) : new ir(e, n, i, r, c, u || null, h, s, o + 1);
|
|
29080
29081
|
}
|
|
29081
29082
|
parseRule() {
|
|
29082
29083
|
if (this.node.type.spec.reparseInView)
|
|
@@ -29119,7 +29120,7 @@ class ir extends $a {
|
|
|
29119
29120
|
l.syncToMarks(f.marks, i, e);
|
|
29120
29121
|
let p;
|
|
29121
29122
|
l.findNodeMatch(f, c, u, h) || a && e.state.selection.from > r && e.state.selection.to < r + f.nodeSize && (p = l.findIndexWithChild(s.node)) > -1 && l.updateNodeAt(f, c, u, p, e) || l.updateNextNode(f, c, u, e, h, r) || l.addNode(f, c, u, e, r), r += f.nodeSize;
|
|
29122
|
-
}), l.syncToMarks([], i, e), this.node.isTextblock && l.addTextblockHacks(), l.destroyRest(), (l.changed || this.dirty == Mr) && (o && this.protectLocalComposition(e, o),
|
|
29123
|
+
}), l.syncToMarks([], i, e), this.node.isTextblock && l.addTextblockHacks(), l.destroyRest(), (l.changed || this.dirty == Mr) && (o && this.protectLocalComposition(e, o), hb(this.contentDOM, this.children, e), Fs && JI(this.dom));
|
|
29123
29124
|
}
|
|
29124
29125
|
localCompositionInfo(e, n) {
|
|
29125
29126
|
let { from: i, to: r } = e.state.selection;
|
|
@@ -29160,7 +29161,7 @@ class ir extends $a {
|
|
|
29160
29161
|
if (xd(e, this.outerDeco))
|
|
29161
29162
|
return;
|
|
29162
29163
|
let n = this.nodeDOM.nodeType != 1, i = this.dom;
|
|
29163
|
-
this.dom =
|
|
29164
|
+
this.dom = pb(this.dom, this.nodeDOM, R1(this.outerDeco, this.node, n), R1(e, this.node, n)), this.dom != i && (i.pmViewDesc = void 0, this.dom.pmViewDesc = this), this.outerDeco = e;
|
|
29164
29165
|
}
|
|
29165
29166
|
// Mark this node as being the selected node.
|
|
29166
29167
|
selectNode() {
|
|
@@ -29175,7 +29176,7 @@ class ir extends $a {
|
|
|
29175
29176
|
}
|
|
29176
29177
|
}
|
|
29177
29178
|
function N2(t, e, n, i, r) {
|
|
29178
|
-
|
|
29179
|
+
mb(i, e, t);
|
|
29179
29180
|
let s = new ir(void 0, t, e, n, i, i, i, r, 0);
|
|
29180
29181
|
return s.contentDOM && s.updateChildren(r, 0), s;
|
|
29181
29182
|
}
|
|
@@ -29222,7 +29223,7 @@ class sc extends ir {
|
|
|
29222
29223
|
return this.node.text == e;
|
|
29223
29224
|
}
|
|
29224
29225
|
}
|
|
29225
|
-
class
|
|
29226
|
+
class ub extends $a {
|
|
29226
29227
|
parseRule() {
|
|
29227
29228
|
return { ignore: !0 };
|
|
29228
29229
|
}
|
|
@@ -29270,7 +29271,7 @@ class HI extends ir {
|
|
|
29270
29271
|
return this.spec.ignoreMutation ? this.spec.ignoreMutation(e) : super.ignoreMutation(e);
|
|
29271
29272
|
}
|
|
29272
29273
|
}
|
|
29273
|
-
function
|
|
29274
|
+
function hb(t, e, n) {
|
|
29274
29275
|
let i = t.firstChild, r = !1;
|
|
29275
29276
|
for (let s = 0; s < e.length; s++) {
|
|
29276
29277
|
let o = e[s], a = o.dom;
|
|
@@ -29282,7 +29283,7 @@ function h8(t, e, n) {
|
|
|
29282
29283
|
r = !0, t.insertBefore(a, i);
|
|
29283
29284
|
if (o instanceof qr) {
|
|
29284
29285
|
let l = i ? i.previousSibling : t.lastChild;
|
|
29285
|
-
|
|
29286
|
+
hb(o.contentDOM, o.children, n), i = l ? l.nextSibling : t.firstChild;
|
|
29286
29287
|
}
|
|
29287
29288
|
}
|
|
29288
29289
|
for (; i; )
|
|
@@ -29310,7 +29311,7 @@ function R1(t, e, n) {
|
|
|
29310
29311
|
}
|
|
29311
29312
|
return r;
|
|
29312
29313
|
}
|
|
29313
|
-
function
|
|
29314
|
+
function pb(t, e, n, i) {
|
|
29314
29315
|
if (n == Tr && i == Tr)
|
|
29315
29316
|
return e;
|
|
29316
29317
|
let r = e;
|
|
@@ -29346,8 +29347,8 @@ function WI(t, e, n) {
|
|
|
29346
29347
|
n.style && (t.style.cssText += n.style);
|
|
29347
29348
|
}
|
|
29348
29349
|
}
|
|
29349
|
-
function
|
|
29350
|
-
return
|
|
29350
|
+
function mb(t, e, n) {
|
|
29351
|
+
return pb(t, t, Tr, R1(e, n, t.nodeType != 1));
|
|
29351
29352
|
}
|
|
29352
29353
|
function xd(t, e) {
|
|
29353
29354
|
if (t.length != e.length)
|
|
@@ -29484,7 +29485,7 @@ class qI {
|
|
|
29484
29485
|
if (r && r.matchesWidget(e) && (e == r.widget || !r.widget.type.toDOM.parentNode))
|
|
29485
29486
|
this.index++;
|
|
29486
29487
|
else {
|
|
29487
|
-
let s = new
|
|
29488
|
+
let s = new cb(this.top, e, n, i);
|
|
29488
29489
|
this.top.children.splice(this.index++, 0, s), this.changed = !0;
|
|
29489
29490
|
}
|
|
29490
29491
|
}
|
|
@@ -29503,7 +29504,7 @@ class qI {
|
|
|
29503
29504
|
else {
|
|
29504
29505
|
let i = document.createElement(e);
|
|
29505
29506
|
e == "IMG" && (i.className = "ProseMirror-separator", i.alt = ""), e == "BR" && (i.className = "ProseMirror-trailingBreak");
|
|
29506
|
-
let r = new
|
|
29507
|
+
let r = new ub(this.top, [], i, null);
|
|
29507
29508
|
n != this.top ? n.children.push(r) : n.children.splice(this.index++, 0, r), this.changed = !0;
|
|
29508
29509
|
}
|
|
29509
29510
|
}
|
|
@@ -29665,12 +29666,12 @@ function Rp(t, e = null) {
|
|
|
29665
29666
|
}
|
|
29666
29667
|
return f;
|
|
29667
29668
|
}
|
|
29668
|
-
function
|
|
29669
|
-
return t.editable ? t.hasFocus() :
|
|
29669
|
+
function gb(t) {
|
|
29670
|
+
return t.editable ? t.hasFocus() : vb(t) && document.activeElement && document.activeElement.contains(t.dom);
|
|
29670
29671
|
}
|
|
29671
29672
|
function Si(t, e = !1) {
|
|
29672
29673
|
let n = t.state.selection;
|
|
29673
|
-
if (
|
|
29674
|
+
if (yb(t, n), !!gb(t)) {
|
|
29674
29675
|
if (!e && t.input.mouseDown && t.input.mouseDown.allowDefault && Pt) {
|
|
29675
29676
|
let i = t.domSelectionRange(), r = t.domObserver.currentSelection;
|
|
29676
29677
|
if (i.anchorNode && r.anchorNode && Wr(i.anchorNode, i.anchorOffset, r.anchorNode, r.anchorOffset)) {
|
|
@@ -29687,7 +29688,7 @@ function Si(t, e = !1) {
|
|
|
29687
29688
|
t.domObserver.setCurSelection(), t.domObserver.connectSelection();
|
|
29688
29689
|
}
|
|
29689
29690
|
}
|
|
29690
|
-
const E2 = Ut || Pt &&
|
|
29691
|
+
const E2 = Ut || Pt && rb < 63;
|
|
29691
29692
|
function M2(t, e) {
|
|
29692
29693
|
let { node: n, offset: i } = t.docView.domFromPos(e, 0), r = i < n.childNodes.length ? n.childNodes[i] : null, s = i ? n.childNodes[i - 1] : null;
|
|
29693
29694
|
if (Ut && r && r.contentEditable == "false")
|
|
@@ -29711,7 +29712,7 @@ function ZI(t) {
|
|
|
29711
29712
|
let n = t.domSelectionRange(), i = n.anchorNode, r = n.anchorOffset;
|
|
29712
29713
|
e.addEventListener("selectionchange", t.input.hideSelectionGuard = () => {
|
|
29713
29714
|
(n.anchorNode != i || n.anchorOffset != r) && (e.removeEventListener("selectionchange", t.input.hideSelectionGuard), setTimeout(() => {
|
|
29714
|
-
(!
|
|
29715
|
+
(!gb(t) || t.state.selection.visible) && t.dom.classList.remove("ProseMirror-hideselection");
|
|
29715
29716
|
}, 20));
|
|
29716
29717
|
});
|
|
29717
29718
|
}
|
|
@@ -29722,7 +29723,7 @@ function XI(t) {
|
|
|
29722
29723
|
let i = t.cursorWrapper.dom, r = i.nodeName == "IMG";
|
|
29723
29724
|
r ? n.setStart(i.parentNode, Mt(i) + 1) : n.setStart(i, 0), n.collapse(!0), e.removeAllRanges(), e.addRange(n), !r && !t.state.selection.visible && nn && nr <= 11 && (i.disabled = !0, i.disabled = !1);
|
|
29724
29725
|
}
|
|
29725
|
-
function
|
|
29726
|
+
function yb(t, e) {
|
|
29726
29727
|
if (e instanceof ke) {
|
|
29727
29728
|
let n = t.docView.descAt(e.from);
|
|
29728
29729
|
n != t.lastSelectedViewDesc && (O2(t), n && n.selectNode(), t.lastSelectedViewDesc = n);
|
|
@@ -29736,9 +29737,9 @@ function Pp(t, e, n, i) {
|
|
|
29736
29737
|
return t.someProp("createSelectionBetween", (r) => r(t, e, n)) || Le.between(e, n, i);
|
|
29737
29738
|
}
|
|
29738
29739
|
function A2(t) {
|
|
29739
|
-
return t.editable && !t.hasFocus() ? !1 :
|
|
29740
|
+
return t.editable && !t.hasFocus() ? !1 : vb(t);
|
|
29740
29741
|
}
|
|
29741
|
-
function
|
|
29742
|
+
function vb(t) {
|
|
29742
29743
|
let e = t.domSelectionRange();
|
|
29743
29744
|
if (!e.anchorNode)
|
|
29744
29745
|
return !1;
|
|
@@ -29818,7 +29819,7 @@ function eD(t) {
|
|
|
29818
29819
|
break;
|
|
29819
29820
|
}
|
|
29820
29821
|
} else {
|
|
29821
|
-
if (
|
|
29822
|
+
if (bb(n))
|
|
29822
29823
|
break;
|
|
29823
29824
|
{
|
|
29824
29825
|
let a = n.previousSibling;
|
|
@@ -29850,7 +29851,7 @@ function tD(t) {
|
|
|
29850
29851
|
else
|
|
29851
29852
|
break;
|
|
29852
29853
|
} else {
|
|
29853
|
-
if (
|
|
29854
|
+
if (bb(n))
|
|
29854
29855
|
break;
|
|
29855
29856
|
{
|
|
29856
29857
|
let a = n.nextSibling;
|
|
@@ -29867,7 +29868,7 @@ function tD(t) {
|
|
|
29867
29868
|
}
|
|
29868
29869
|
s && B1(t, s, o);
|
|
29869
29870
|
}
|
|
29870
|
-
function
|
|
29871
|
+
function bb(t) {
|
|
29871
29872
|
let e = t.pmViewDesc;
|
|
29872
29873
|
return e && e.node && e.node.isBlock;
|
|
29873
29874
|
}
|
|
@@ -30014,10 +30015,10 @@ function Fp(t, e) {
|
|
|
30014
30015
|
let p = i.firstChild;
|
|
30015
30016
|
n.push(p.type.name, p.attrs != p.type.defaultAttrs ? p.attrs : null), i = p.content;
|
|
30016
30017
|
}
|
|
30017
|
-
let o = t.someProp("clipboardSerializer") || es.fromSchema(t.state.schema), a =
|
|
30018
|
+
let o = t.someProp("clipboardSerializer") || es.fromSchema(t.state.schema), a = Sb(), l = a.createElement("div");
|
|
30018
30019
|
l.appendChild(o.serializeFragment(i, { document: a }));
|
|
30019
30020
|
let f = l.firstChild, c, u = 0;
|
|
30020
|
-
for (; f && f.nodeType == 1 && (c =
|
|
30021
|
+
for (; f && f.nodeType == 1 && (c = Cb[f.nodeName.toLowerCase()]); ) {
|
|
30021
30022
|
for (let p = c.length - 1; p >= 0; p--) {
|
|
30022
30023
|
let m = a.createElement(c[p]);
|
|
30023
30024
|
for (; l.firstChild; )
|
|
@@ -30032,7 +30033,7 @@ function Fp(t, e) {
|
|
|
30032
30033
|
`);
|
|
30033
30034
|
return { dom: l, text: h, slice: e };
|
|
30034
30035
|
}
|
|
30035
|
-
function
|
|
30036
|
+
function kb(t, e, n, i, r) {
|
|
30036
30037
|
let s = r.parent.type.spec.code, o, a;
|
|
30037
30038
|
if (!n && !e)
|
|
30038
30039
|
return null;
|
|
@@ -30099,11 +30100,11 @@ function lD(t, e) {
|
|
|
30099
30100
|
let l = r.findWrapping(a.type), f;
|
|
30100
30101
|
if (!l)
|
|
30101
30102
|
return o = null;
|
|
30102
|
-
if (f = o.length && s.length &&
|
|
30103
|
+
if (f = o.length && s.length && wb(l, s, a, o[o.length - 1], 0))
|
|
30103
30104
|
o[o.length - 1] = f;
|
|
30104
30105
|
else {
|
|
30105
|
-
o.length && (o[o.length - 1] =
|
|
30106
|
-
let c =
|
|
30106
|
+
o.length && (o[o.length - 1] = _b(o[o.length - 1], s.length));
|
|
30107
|
+
let c = xb(a, l);
|
|
30107
30108
|
o.push(c), r = r.matchType(c.type), s = l;
|
|
30108
30109
|
}
|
|
30109
30110
|
}), o)
|
|
@@ -30111,24 +30112,24 @@ function lD(t, e) {
|
|
|
30111
30112
|
}
|
|
30112
30113
|
return t;
|
|
30113
30114
|
}
|
|
30114
|
-
function
|
|
30115
|
+
function xb(t, e, n = 0) {
|
|
30115
30116
|
for (let i = e.length - 1; i >= n; i--)
|
|
30116
30117
|
t = e[i].create(null, J.from(t));
|
|
30117
30118
|
return t;
|
|
30118
30119
|
}
|
|
30119
|
-
function
|
|
30120
|
+
function wb(t, e, n, i, r) {
|
|
30120
30121
|
if (r < t.length && r < e.length && t[r] == e[r]) {
|
|
30121
|
-
let s =
|
|
30122
|
+
let s = wb(t, e, n, i.lastChild, r + 1);
|
|
30122
30123
|
if (s)
|
|
30123
30124
|
return i.copy(i.content.replaceChild(i.childCount - 1, s));
|
|
30124
30125
|
if (i.contentMatchAt(i.childCount).matchType(r == t.length - 1 ? n.type : t[r + 1]))
|
|
30125
|
-
return i.copy(i.content.append(J.from(
|
|
30126
|
+
return i.copy(i.content.append(J.from(xb(n, t, r + 1))));
|
|
30126
30127
|
}
|
|
30127
30128
|
}
|
|
30128
|
-
function
|
|
30129
|
+
function _b(t, e) {
|
|
30129
30130
|
if (e == 0)
|
|
30130
30131
|
return t;
|
|
30131
|
-
let n = t.content.replaceChild(t.childCount - 1,
|
|
30132
|
+
let n = t.content.replaceChild(t.childCount - 1, _b(t.lastChild, e - 1)), i = t.contentMatchAt(t.childCount).fillBefore(J.empty, !0);
|
|
30132
30133
|
return t.copy(n.append(i));
|
|
30133
30134
|
}
|
|
30134
30135
|
function $1(t, e, n, i, r, s) {
|
|
@@ -30138,7 +30139,7 @@ function $1(t, e, n, i, r, s) {
|
|
|
30138
30139
|
function B2(t, e, n) {
|
|
30139
30140
|
return e < t.openStart && (t = new de($1(t.content, -1, e, t.openStart, 0, t.openEnd), e, t.openEnd)), n < t.openEnd && (t = new de($1(t.content, 1, n, t.openEnd, 0, 0), t.openStart, n)), t;
|
|
30140
30141
|
}
|
|
30141
|
-
const
|
|
30142
|
+
const Cb = {
|
|
30142
30143
|
thead: ["table"],
|
|
30143
30144
|
tbody: ["table"],
|
|
30144
30145
|
tfoot: ["table"],
|
|
@@ -30150,7 +30151,7 @@ const C8 = {
|
|
|
30150
30151
|
th: ["table", "tbody", "tr"]
|
|
30151
30152
|
};
|
|
30152
30153
|
let $2 = null;
|
|
30153
|
-
function
|
|
30154
|
+
function Sb() {
|
|
30154
30155
|
return $2 || ($2 = document.implementation.createHTMLDocument("title"));
|
|
30155
30156
|
}
|
|
30156
30157
|
let cu = null;
|
|
@@ -30161,8 +30162,8 @@ function dD(t) {
|
|
|
30161
30162
|
function fD(t) {
|
|
30162
30163
|
let e = /^(\s*<meta [^>]*>)*/.exec(t);
|
|
30163
30164
|
e && (t = t.slice(e[0].length));
|
|
30164
|
-
let n =
|
|
30165
|
-
if ((r = i &&
|
|
30165
|
+
let n = Sb().createElement("div"), i = /<([a-z][^>\s]+)/i.exec(t), r;
|
|
30166
|
+
if ((r = i && Cb[i[1].toLowerCase()]) && (t = r.map((s) => "<" + s + ">").join("") + t + r.map((s) => "</" + s + ">").reverse().join("")), n.innerHTML = dD(t), r)
|
|
30166
30167
|
for (let s = 0; s < r.length; s++)
|
|
30167
30168
|
n = n.querySelector(r[s]) || n;
|
|
30168
30169
|
return n;
|
|
@@ -30243,7 +30244,7 @@ function vD(t, e) {
|
|
|
30243
30244
|
}
|
|
30244
30245
|
Gt.keydown = (t, e) => {
|
|
30245
30246
|
let n = e;
|
|
30246
|
-
if (t.input.shiftKey = n.keyCode == 16 || n.shiftKey, !
|
|
30247
|
+
if (t.input.shiftKey = n.keyCode == 16 || n.shiftKey, !Lb(t, n) && (t.input.lastKeyCode = n.keyCode, t.input.lastKeyCodeTime = Date.now(), !(xi && Pt && n.keyCode == 13)))
|
|
30247
30248
|
if (n.keyCode != 229 && t.domObserver.forceFlush(), Fs && n.keyCode == 13 && !n.ctrlKey && !n.altKey && !n.metaKey) {
|
|
30248
30249
|
let i = Date.now();
|
|
30249
30250
|
t.input.lastIOSEnter = i, t.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
|
|
@@ -30256,7 +30257,7 @@ Gt.keyup = (t, e) => {
|
|
|
30256
30257
|
};
|
|
30257
30258
|
Gt.keypress = (t, e) => {
|
|
30258
30259
|
let n = e;
|
|
30259
|
-
if (
|
|
30260
|
+
if (Lb(t, n) || !n.charCode || n.ctrlKey && !n.altKey || _n && n.metaKey)
|
|
30260
30261
|
return;
|
|
30261
30262
|
if (t.someProp("handleKeyPress", (r) => r(t, n))) {
|
|
30262
30263
|
n.preventDefault();
|
|
@@ -30341,18 +30342,18 @@ function SD(t, e, n) {
|
|
|
30341
30342
|
function zp(t) {
|
|
30342
30343
|
return _d(t);
|
|
30343
30344
|
}
|
|
30344
|
-
const
|
|
30345
|
+
const Nb = _n ? "metaKey" : "ctrlKey";
|
|
30345
30346
|
Kt.mousedown = (t, e) => {
|
|
30346
30347
|
let n = e;
|
|
30347
30348
|
t.input.shiftKey = n.shiftKey;
|
|
30348
30349
|
let i = zp(t), r = Date.now(), s = "singleClick";
|
|
30349
|
-
r - t.input.lastClick.time < 500 && bD(n, t.input.lastClick) && !n[
|
|
30350
|
+
r - t.input.lastClick.time < 500 && bD(n, t.input.lastClick) && !n[Nb] && (t.input.lastClick.type == "singleClick" ? s = "doubleClick" : t.input.lastClick.type == "doubleClick" && (s = "tripleClick")), t.input.lastClick = { time: r, x: n.clientX, y: n.clientY, type: s };
|
|
30350
30351
|
let o = t.posAtCoords(oc(n));
|
|
30351
30352
|
o && (s == "singleClick" ? (t.input.mouseDown && t.input.mouseDown.done(), t.input.mouseDown = new ND(t, o, n, !!i)) : (s == "doubleClick" ? _D : CD)(t, o.pos, o.inside, n) ? n.preventDefault() : Xi(t, "pointer"));
|
|
30352
30353
|
};
|
|
30353
30354
|
class ND {
|
|
30354
30355
|
constructor(e, n, i, r) {
|
|
30355
|
-
this.view = e, this.pos = n, this.event = i, this.flushed = r, this.delayedSelectionSync = !1, this.mightDrag = null, this.startDoc = e.state.doc, this.selectNode = !!i[
|
|
30356
|
+
this.view = e, this.pos = n, this.event = i, this.flushed = r, this.delayedSelectionSync = !1, this.mightDrag = null, this.startDoc = e.state.doc, this.selectNode = !!i[Nb], this.allowDefault = i.shiftKey;
|
|
30356
30357
|
let s, o;
|
|
30357
30358
|
if (n.inside > -1)
|
|
30358
30359
|
s = e.state.doc.nodeAt(n.inside), o = n.inside;
|
|
@@ -30403,7 +30404,7 @@ Kt.touchmove = (t) => {
|
|
|
30403
30404
|
t.input.lastTouch = Date.now(), Xi(t, "pointer");
|
|
30404
30405
|
};
|
|
30405
30406
|
Kt.contextmenu = (t) => zp(t);
|
|
30406
|
-
function
|
|
30407
|
+
function Lb(t, e) {
|
|
30407
30408
|
return t.composing ? !0 : Ut && Math.abs(e.timeStamp - t.input.compositionEndedAt) < 500 ? (t.input.compositionEndedAt = -2e8, !0) : !1;
|
|
30408
30409
|
}
|
|
30409
30410
|
const LD = xi ? 5e3 : -1;
|
|
@@ -30429,15 +30430,15 @@ Gt.compositionstart = Gt.compositionupdate = (t) => {
|
|
|
30429
30430
|
}
|
|
30430
30431
|
t.input.composing = !0;
|
|
30431
30432
|
}
|
|
30432
|
-
|
|
30433
|
+
Eb(t, LD);
|
|
30433
30434
|
};
|
|
30434
30435
|
Gt.compositionend = (t, e) => {
|
|
30435
|
-
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++,
|
|
30436
|
+
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++, Eb(t, 20));
|
|
30436
30437
|
};
|
|
30437
|
-
function
|
|
30438
|
+
function Eb(t, e) {
|
|
30438
30439
|
clearTimeout(t.input.composingTimeout), e > -1 && (t.input.composingTimeout = setTimeout(() => _d(t), e));
|
|
30439
30440
|
}
|
|
30440
|
-
function
|
|
30441
|
+
function Mb(t) {
|
|
30441
30442
|
for (t.composing && (t.input.composing = !1, t.input.compositionEndedAt = MD()); t.input.compositionNodes.length > 0; )
|
|
30442
30443
|
t.input.compositionNodes.pop().markParentsDirty();
|
|
30443
30444
|
}
|
|
@@ -30466,7 +30467,7 @@ function MD() {
|
|
|
30466
30467
|
}
|
|
30467
30468
|
function _d(t, e = !1) {
|
|
30468
30469
|
if (!(xi && t.domObserver.flushingSoon >= 0)) {
|
|
30469
|
-
if (t.domObserver.forceFlush(),
|
|
30470
|
+
if (t.domObserver.forceFlush(), Mb(t), e || t.docView && t.docView.dirty) {
|
|
30470
30471
|
let n = Rp(t);
|
|
30471
30472
|
return n && !n.eq(t.state.selection) ? t.dispatch(t.state.tr.setSelection(n)) : (t.markCursor || e) && !t.state.selection.empty ? t.dispatch(t.state.tr.deleteSelection()) : t.updateState(t.state), !0;
|
|
30472
30473
|
}
|
|
@@ -30505,7 +30506,7 @@ function AD(t, e) {
|
|
|
30505
30506
|
}, 50);
|
|
30506
30507
|
}
|
|
30507
30508
|
function ia(t, e, n, i, r) {
|
|
30508
|
-
let s =
|
|
30509
|
+
let s = kb(t, e, n, i, t.state.selection.$from);
|
|
30509
30510
|
if (t.someProp("handlePaste", (l) => l(t, r, s || de.empty)))
|
|
30510
30511
|
return !0;
|
|
30511
30512
|
if (!s)
|
|
@@ -30513,7 +30514,7 @@ function ia(t, e, n, i, r) {
|
|
|
30513
30514
|
let o = OD(s), a = o ? t.state.tr.replaceSelectionWith(o, i) : t.state.tr.replaceSelection(s);
|
|
30514
30515
|
return t.dispatch(a.scrollIntoView().setMeta("paste", !0).setMeta("uiEvent", "paste")), !0;
|
|
30515
30516
|
}
|
|
30516
|
-
function
|
|
30517
|
+
function Tb(t) {
|
|
30517
30518
|
let e = t.getData("text/plain") || t.getData("Text");
|
|
30518
30519
|
if (e)
|
|
30519
30520
|
return e;
|
|
@@ -30525,14 +30526,14 @@ Gt.paste = (t, e) => {
|
|
|
30525
30526
|
if (t.composing && !xi)
|
|
30526
30527
|
return;
|
|
30527
30528
|
let i = na ? null : n.clipboardData, r = t.input.shiftKey && t.input.lastKeyCode != 45;
|
|
30528
|
-
i && ia(t,
|
|
30529
|
+
i && ia(t, Tb(i), i.getData("text/html"), r, n) ? n.preventDefault() : AD(t, n);
|
|
30529
30530
|
};
|
|
30530
|
-
class
|
|
30531
|
+
class Ob {
|
|
30531
30532
|
constructor(e, n, i) {
|
|
30532
30533
|
this.slice = e, this.move = n, this.node = i;
|
|
30533
30534
|
}
|
|
30534
30535
|
}
|
|
30535
|
-
const
|
|
30536
|
+
const Ab = _n ? "altKey" : "ctrlKey";
|
|
30536
30537
|
Kt.dragstart = (t, e) => {
|
|
30537
30538
|
let n = e, i = t.input.mouseDown;
|
|
30538
30539
|
if (i && i.done(), !n.dataTransfer)
|
|
@@ -30547,7 +30548,7 @@ Kt.dragstart = (t, e) => {
|
|
|
30547
30548
|
}
|
|
30548
30549
|
}
|
|
30549
30550
|
let a = (o || t.state.selection).content(), { dom: l, text: f, slice: c } = Fp(t, a);
|
|
30550
|
-
(!n.dataTransfer.files.length || !Pt ||
|
|
30551
|
+
(!n.dataTransfer.files.length || !Pt || rb > 120) && n.dataTransfer.clearData(), n.dataTransfer.setData(na ? "Text" : "text/html", l.innerHTML), n.dataTransfer.effectAllowed = "copyMove", na || n.dataTransfer.setData("text/plain", f), t.dragging = new Ob(c, !n[Ab], o);
|
|
30551
30552
|
};
|
|
30552
30553
|
Kt.dragend = (t) => {
|
|
30553
30554
|
let e = t.dragging;
|
|
@@ -30566,8 +30567,8 @@ Gt.drop = (t, e) => {
|
|
|
30566
30567
|
let s = t.state.doc.resolve(r.pos), o = i && i.slice;
|
|
30567
30568
|
o ? t.someProp("transformPasted", (m) => {
|
|
30568
30569
|
o = m(o, t);
|
|
30569
|
-
}) : o =
|
|
30570
|
-
let a = !!(i && !n[
|
|
30570
|
+
}) : o = kb(t, Tb(n.dataTransfer), na ? null : n.dataTransfer.getData("text/html"), !1, s);
|
|
30571
|
+
let a = !!(i && !n[Ab]);
|
|
30571
30572
|
if (t.someProp("handleDrop", (m) => m(t, n, o || de.empty, a))) {
|
|
30572
30573
|
n.preventDefault();
|
|
30573
30574
|
return;
|
|
@@ -30828,13 +30829,13 @@ class Ze {
|
|
|
30828
30829
|
let r, s = 0;
|
|
30829
30830
|
e.forEach((a, l) => {
|
|
30830
30831
|
let f = l + i, c;
|
|
30831
|
-
if (c =
|
|
30832
|
+
if (c = Db(n, a, f)) {
|
|
30832
30833
|
for (r || (r = this.children.slice()); s < r.length && r[s] < l; )
|
|
30833
30834
|
s += 3;
|
|
30834
30835
|
r[s] == l ? r[s + 2] = r[s + 2].addInner(a, c, f + 1) : r.splice(s, 0, l, l + a.nodeSize, Sd(c, a, f + 1, Rr)), s += 3;
|
|
30835
30836
|
}
|
|
30836
30837
|
});
|
|
30837
|
-
let o =
|
|
30838
|
+
let o = Ib(s ? Rb(n) : n, -i);
|
|
30838
30839
|
for (let a = 0; a < o.length; a++)
|
|
30839
30840
|
o[a].type.valid(e, o[a]) || o.splice(a--, 1);
|
|
30840
30841
|
return new Ze(o.length ? this.local.concat(o).sort(Pr) : this.local, r || this.children);
|
|
@@ -31040,7 +31041,7 @@ function ID(t, e, n, i, r, s, o) {
|
|
|
31040
31041
|
}
|
|
31041
31042
|
return new Ze(e.sort(Pr), a);
|
|
31042
31043
|
}
|
|
31043
|
-
function
|
|
31044
|
+
function Ib(t, e) {
|
|
31044
31045
|
if (!e || !t.length)
|
|
31045
31046
|
return t;
|
|
31046
31047
|
let n = [];
|
|
@@ -31063,7 +31064,7 @@ function DD(t, e, n, i, r, s, o) {
|
|
|
31063
31064
|
t[l + 1] == -1 && a(t[l + 2], e[l] + s + 1);
|
|
31064
31065
|
return n;
|
|
31065
31066
|
}
|
|
31066
|
-
function
|
|
31067
|
+
function Db(t, e, n) {
|
|
31067
31068
|
if (e.isLeaf)
|
|
31068
31069
|
return null;
|
|
31069
31070
|
let i = n + e.nodeSize, r = null;
|
|
@@ -31071,7 +31072,7 @@ function D8(t, e, n) {
|
|
|
31071
31072
|
(o = t[s]) && o.from > n && o.to < i && ((r || (r = [])).push(o), t[s] = null);
|
|
31072
31073
|
return r;
|
|
31073
31074
|
}
|
|
31074
|
-
function
|
|
31075
|
+
function Rb(t) {
|
|
31075
31076
|
let e = [];
|
|
31076
31077
|
for (let n = 0; n < t.length; n++)
|
|
31077
31078
|
t[n] != null && e.push(t[n]);
|
|
@@ -31080,14 +31081,14 @@ function R8(t) {
|
|
|
31080
31081
|
function Sd(t, e, n, i) {
|
|
31081
31082
|
let r = [], s = !1;
|
|
31082
31083
|
e.forEach((a, l) => {
|
|
31083
|
-
let f =
|
|
31084
|
+
let f = Db(t, a, l + n);
|
|
31084
31085
|
if (f) {
|
|
31085
31086
|
s = !0;
|
|
31086
31087
|
let c = Sd(f, a, n + l + 1, i);
|
|
31087
31088
|
c != Dt && r.push(l, l + a.nodeSize, c);
|
|
31088
31089
|
}
|
|
31089
31090
|
});
|
|
31090
|
-
let o =
|
|
31091
|
+
let o = Ib(s ? Rb(t) : t, -n).sort(Pr);
|
|
31091
31092
|
for (let a = 0; a < o.length; a++)
|
|
31092
31093
|
o[a].type.valid(e, o[a]) || (i.onRemove && i.onRemove(o[a].spec), o.splice(a--, 1));
|
|
31093
31094
|
return o.length || r.length ? new Ze(o, r) : Dt;
|
|
@@ -31574,7 +31575,7 @@ class JD {
|
|
|
31574
31575
|
updateStateInner(e, n) {
|
|
31575
31576
|
var i;
|
|
31576
31577
|
let r = this.state, s = !1, o = !1;
|
|
31577
|
-
e.storedMarks && this.composing && (
|
|
31578
|
+
e.storedMarks && this.composing && (Mb(this), o = !0), this.state = e;
|
|
31578
31579
|
let a = r.plugins != e.plugins || this._props.plugins != n.plugins;
|
|
31579
31580
|
if (a || this._props.plugins != n.plugins || this._props.nodeViews != n.nodeViews) {
|
|
31580
31581
|
let p = J2(this);
|
|
@@ -31591,7 +31592,7 @@ class JD {
|
|
|
31591
31592
|
let m = Pt ? this.trackWrites = this.domSelectionRange().focusNode : null;
|
|
31592
31593
|
this.composing && (this.input.compositionNode = ED(this)), (s || !this.docView.update(e.doc, f, l, this)) && (this.docView.updateOuterDeco(f), this.docView.destroy(), this.docView = N2(e.doc, f, l, this.dom, this)), m && !this.trackWrites && (p = !0);
|
|
31593
31594
|
}
|
|
31594
|
-
p || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && QI(this)) ? Si(this, p) : (
|
|
31595
|
+
p || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && QI(this)) ? Si(this, p) : (yb(this, e.selection), this.domObserver.setCurSelection()), this.domObserver.start();
|
|
31595
31596
|
}
|
|
31596
31597
|
this.updatePluginViews(r), !((i = this.dragging) === null || i === void 0) && i.node && !r.doc.eq(e.doc) && this.updateDraggedNode(this.dragging, r), c == "reset" ? this.dom.scrollTop = 0 : c == "to selection" ? this.scrollToSelection() : h && TI(h);
|
|
31597
31598
|
}
|
|
@@ -31638,7 +31639,7 @@ class JD {
|
|
|
31638
31639
|
let s = i.from + (this.state.doc.content.size - n.doc.content.size);
|
|
31639
31640
|
(s > 0 && this.state.doc.nodeAt(s)) == i.node && (r = s);
|
|
31640
31641
|
}
|
|
31641
|
-
this.dragging = new
|
|
31642
|
+
this.dragging = new Ob(e.slice, e.move, r < 0 ? void 0 : ke.create(this.state.doc, r));
|
|
31642
31643
|
}
|
|
31643
31644
|
someProp(e, n) {
|
|
31644
31645
|
let i = this._props && this._props[e], r;
|
|
@@ -31725,7 +31726,7 @@ class JD {
|
|
|
31725
31726
|
otherwise the element after.
|
|
31726
31727
|
*/
|
|
31727
31728
|
coordsAtPos(e, n = 1) {
|
|
31728
|
-
return
|
|
31729
|
+
return db(this, e, n);
|
|
31729
31730
|
}
|
|
31730
31731
|
/**
|
|
31731
31732
|
Find the DOM position that corresponds to the given document
|
|
@@ -32019,9 +32020,9 @@ function mu(t, e, n = !0) {
|
|
|
32019
32020
|
return e.altKey && (t = "Alt-" + t), e.ctrlKey && (t = "Ctrl-" + t), e.metaKey && (t = "Meta-" + t), n && e.shiftKey && (t = "Shift-" + t), t;
|
|
32020
32021
|
}
|
|
32021
32022
|
function rR(t) {
|
|
32022
|
-
return new Ge({ props: { handleKeyDown:
|
|
32023
|
+
return new Ge({ props: { handleKeyDown: Pb(t) } });
|
|
32023
32024
|
}
|
|
32024
|
-
function
|
|
32025
|
+
function Pb(t) {
|
|
32025
32026
|
let e = iR(t);
|
|
32026
32027
|
return function(n, i) {
|
|
32027
32028
|
let r = eR(i), s, o = e[mu(r, i)];
|
|
@@ -32043,12 +32044,12 @@ function P8(t) {
|
|
|
32043
32044
|
};
|
|
32044
32045
|
}
|
|
32045
32046
|
const Hp = (t, e) => t.selection.empty ? !1 : (e && e(t.tr.deleteSelection().scrollIntoView()), !0);
|
|
32046
|
-
function
|
|
32047
|
+
function Fb(t, e) {
|
|
32047
32048
|
let { $cursor: n } = t.selection;
|
|
32048
32049
|
return !n || (e ? !e.endOfTextblock("backward", t) : n.parentOffset > 0) ? null : n;
|
|
32049
32050
|
}
|
|
32050
|
-
const
|
|
32051
|
-
let i =
|
|
32051
|
+
const Bb = (t, e, n) => {
|
|
32052
|
+
let i = Fb(t, n);
|
|
32052
32053
|
if (!i)
|
|
32053
32054
|
return !1;
|
|
32054
32055
|
let r = Wp(i);
|
|
@@ -32057,7 +32058,7 @@ const B8 = (t, e, n) => {
|
|
|
32057
32058
|
return a == null ? !1 : (e && e(t.tr.lift(o, a).scrollIntoView()), !0);
|
|
32058
32059
|
}
|
|
32059
32060
|
let s = r.nodeBefore;
|
|
32060
|
-
if (
|
|
32061
|
+
if (Kb(t, r, e, -1))
|
|
32061
32062
|
return !0;
|
|
32062
32063
|
if (i.parent.content.size == 0 && (Bs(s, "end") || ke.isSelectable(s)))
|
|
32063
32064
|
for (let o = i.depth; ; o--) {
|
|
@@ -32074,19 +32075,19 @@ const B8 = (t, e, n) => {
|
|
|
32074
32075
|
}
|
|
32075
32076
|
return s.isAtom && r.depth == i.depth - 1 ? (e && e(t.tr.delete(r.pos - s.nodeSize, r.pos).scrollIntoView()), !0) : !1;
|
|
32076
32077
|
}, sR = (t, e, n) => {
|
|
32077
|
-
let i =
|
|
32078
|
+
let i = Fb(t, n);
|
|
32078
32079
|
if (!i)
|
|
32079
32080
|
return !1;
|
|
32080
32081
|
let r = Wp(i);
|
|
32081
|
-
return r ? $
|
|
32082
|
+
return r ? $b(t, r, e) : !1;
|
|
32082
32083
|
}, oR = (t, e, n) => {
|
|
32083
|
-
let i =
|
|
32084
|
+
let i = jb(t, n);
|
|
32084
32085
|
if (!i)
|
|
32085
32086
|
return !1;
|
|
32086
32087
|
let r = qp(i);
|
|
32087
|
-
return r ? $
|
|
32088
|
+
return r ? $b(t, r, e) : !1;
|
|
32088
32089
|
};
|
|
32089
|
-
function $
|
|
32090
|
+
function $b(t, e, n) {
|
|
32090
32091
|
let i = e.nodeBefore, r = i, s = e.pos - 1;
|
|
32091
32092
|
for (; !r.isTextblock; s--) {
|
|
32092
32093
|
if (r.type.spec.isolating)
|
|
@@ -32123,7 +32124,7 @@ function Bs(t, e, n = !1) {
|
|
|
32123
32124
|
}
|
|
32124
32125
|
return !1;
|
|
32125
32126
|
}
|
|
32126
|
-
const
|
|
32127
|
+
const zb = (t, e, n) => {
|
|
32127
32128
|
let { $head: i, empty: r } = t.selection, s = i;
|
|
32128
32129
|
if (!r)
|
|
32129
32130
|
return !1;
|
|
@@ -32145,19 +32146,19 @@ function Wp(t) {
|
|
|
32145
32146
|
}
|
|
32146
32147
|
return null;
|
|
32147
32148
|
}
|
|
32148
|
-
function
|
|
32149
|
+
function jb(t, e) {
|
|
32149
32150
|
let { $cursor: n } = t.selection;
|
|
32150
32151
|
return !n || (e ? !e.endOfTextblock("forward", t) : n.parentOffset < n.parent.content.size) ? null : n;
|
|
32151
32152
|
}
|
|
32152
|
-
const
|
|
32153
|
-
let i =
|
|
32153
|
+
const Vb = (t, e, n) => {
|
|
32154
|
+
let i = jb(t, n);
|
|
32154
32155
|
if (!i)
|
|
32155
32156
|
return !1;
|
|
32156
32157
|
let r = qp(i);
|
|
32157
32158
|
if (!r)
|
|
32158
32159
|
return !1;
|
|
32159
32160
|
let s = r.nodeAfter;
|
|
32160
|
-
if (
|
|
32161
|
+
if (Kb(t, r, e, 1))
|
|
32161
32162
|
return !0;
|
|
32162
32163
|
if (i.parent.content.size == 0 && (Bs(s, "start") || ke.isSelectable(s))) {
|
|
32163
32164
|
let o = nc(t.doc, i.before(), i.after(), de.empty);
|
|
@@ -32170,7 +32171,7 @@ const V8 = (t, e, n) => {
|
|
|
32170
32171
|
}
|
|
32171
32172
|
}
|
|
32172
32173
|
return s.isAtom && r.depth == i.depth - 1 ? (e && e(t.tr.delete(r.pos, r.pos + s.nodeSize).scrollIntoView()), !0) : !1;
|
|
32173
|
-
},
|
|
32174
|
+
}, Hb = (t, e, n) => {
|
|
32174
32175
|
let { $head: i, empty: r } = t.selection, s = i;
|
|
32175
32176
|
if (!r)
|
|
32176
32177
|
return !1;
|
|
@@ -32218,7 +32219,7 @@ const aR = (t, e) => {
|
|
|
32218
32219
|
}, dR = (t, e) => {
|
|
32219
32220
|
let { $from: n, $to: i } = t.selection, r = n.blockRange(i), s = r && oo(r);
|
|
32220
32221
|
return s == null ? !1 : (e && e(t.tr.lift(r, s).scrollIntoView()), !0);
|
|
32221
|
-
},
|
|
32222
|
+
}, Wb = (t, e) => {
|
|
32222
32223
|
let { $head: n, $anchor: i } = t.selection;
|
|
32223
32224
|
return !n.parent.type.spec.code || !n.sameParent(i) ? !1 : (e && e(t.tr.insertText(`
|
|
32224
32225
|
`).scrollIntoView()), !0);
|
|
@@ -32243,7 +32244,7 @@ const fR = (t, e) => {
|
|
|
32243
32244
|
l.setSelection(Oe.near(l.doc.resolve(a), 1)), e(l.scrollIntoView());
|
|
32244
32245
|
}
|
|
32245
32246
|
return !0;
|
|
32246
|
-
},
|
|
32247
|
+
}, qb = (t, e) => {
|
|
32247
32248
|
let n = t.selection, { $from: i, $to: r } = n;
|
|
32248
32249
|
if (n instanceof tn || i.parent.inlineContent || r.parent.inlineContent)
|
|
32249
32250
|
return !1;
|
|
@@ -32255,7 +32256,7 @@ const fR = (t, e) => {
|
|
|
32255
32256
|
a.setSelection(Le.create(a.doc, o + 1)), e(a.scrollIntoView());
|
|
32256
32257
|
}
|
|
32257
32258
|
return !0;
|
|
32258
|
-
},
|
|
32259
|
+
}, Ub = (t, e) => {
|
|
32259
32260
|
let { $cursor: n } = t.selection;
|
|
32260
32261
|
if (!n || n.parent.content.size)
|
|
32261
32262
|
return !1;
|
|
@@ -32302,7 +32303,7 @@ function pR(t, e, n) {
|
|
|
32302
32303
|
let i = e.nodeBefore, r = e.nodeAfter, s = e.index();
|
|
32303
32304
|
return !i || !r || !i.type.compatibleContent(r.type) ? !1 : !i.content.size && e.parent.canReplace(s - 1, s) ? (n && n(t.tr.delete(e.pos - i.nodeSize, e.pos).scrollIntoView()), !0) : !e.parent.canReplace(s, s + 1) || !(r.isTextblock || vr(t.doc, e.pos)) ? !1 : (n && n(t.tr.join(e.pos).scrollIntoView()), !0);
|
|
32304
32305
|
}
|
|
32305
|
-
function
|
|
32306
|
+
function Kb(t, e, n, i) {
|
|
32306
32307
|
let r = e.nodeBefore, s = e.nodeAfter, o, a, l = r.type.spec.isolating || s.type.spec.isolating;
|
|
32307
32308
|
if (!l && pR(t, e, n))
|
|
32308
32309
|
return !0;
|
|
@@ -32341,7 +32342,7 @@ function K8(t, e, n, i) {
|
|
|
32341
32342
|
}
|
|
32342
32343
|
return !1;
|
|
32343
32344
|
}
|
|
32344
|
-
function
|
|
32345
|
+
function Gb(t) {
|
|
32345
32346
|
return function(e, n) {
|
|
32346
32347
|
let i = e.selection, r = t < 0 ? i.$from : i.$to, s = r.depth;
|
|
32347
32348
|
for (; r.node(s).isInline; ) {
|
|
@@ -32352,7 +32353,7 @@ function G8(t) {
|
|
|
32352
32353
|
return r.node(s).isTextblock ? (n && n(e.tr.setSelection(Le.create(e.doc, t < 0 ? r.start(s) : r.end(s)))), !0) : !1;
|
|
32353
32354
|
};
|
|
32354
32355
|
}
|
|
32355
|
-
const mR =
|
|
32356
|
+
const mR = Gb(-1), gR = Gb(1);
|
|
32356
32357
|
function yR(t, e = null) {
|
|
32357
32358
|
return function(n, i) {
|
|
32358
32359
|
let { $from: r, $to: s } = n.selection, o = r.blockRange(s), a = o && Ap(o, t, e);
|
|
@@ -32397,9 +32398,9 @@ function Kp(...t) {
|
|
|
32397
32398
|
return !1;
|
|
32398
32399
|
};
|
|
32399
32400
|
}
|
|
32400
|
-
Kp(Hp,
|
|
32401
|
-
Kp(Hp,
|
|
32402
|
-
Kp(
|
|
32401
|
+
Kp(Hp, Bb, zb);
|
|
32402
|
+
Kp(Hp, Vb, Hb);
|
|
32403
|
+
Kp(Wb, qb, Ub, uR);
|
|
32403
32404
|
typeof navigator < "u" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform) : typeof os < "u" && os.platform && os.platform() == "darwin";
|
|
32404
32405
|
function vR(t, e = null) {
|
|
32405
32406
|
return function(n, i) {
|
|
@@ -32605,7 +32606,7 @@ function dc(t) {
|
|
|
32605
32606
|
markExtensions: i
|
|
32606
32607
|
};
|
|
32607
32608
|
}
|
|
32608
|
-
function
|
|
32609
|
+
function Jb(t) {
|
|
32609
32610
|
const e = [], { nodeExtensions: n, markExtensions: i } = dc(t), r = [...n, ...i], s = {
|
|
32610
32611
|
default: null,
|
|
32611
32612
|
rendered: !0,
|
|
@@ -32697,11 +32698,11 @@ function Ld(t, e) {
|
|
|
32697
32698
|
[n.name]: t.attrs[n.name]
|
|
32698
32699
|
}).reduce((n, i) => He(n, i), {});
|
|
32699
32700
|
}
|
|
32700
|
-
function
|
|
32701
|
+
function Yb(t) {
|
|
32701
32702
|
return typeof t == "function";
|
|
32702
32703
|
}
|
|
32703
32704
|
function Re(t, e = void 0, ...n) {
|
|
32704
|
-
return
|
|
32705
|
+
return Yb(t) ? e ? t.bind(e)(...n) : t(...n) : t;
|
|
32705
32706
|
}
|
|
32706
32707
|
function NR(t = {}) {
|
|
32707
32708
|
return Object.keys(t).length === 0 && t.constructor === Object;
|
|
@@ -32735,7 +32736,7 @@ function Q2(t) {
|
|
|
32735
32736
|
}
|
|
32736
32737
|
function ER(t, e) {
|
|
32737
32738
|
var n;
|
|
32738
|
-
const i =
|
|
32739
|
+
const i = Jb(t), { nodeExtensions: r, markExtensions: s } = dc(t), o = (n = r.find((f) => ge(f, "topNode"))) === null || n === void 0 ? void 0 : n.name, a = Object.fromEntries(r.map((f) => {
|
|
32739
32740
|
const c = i.filter((v) => v.type === f.name), u = {
|
|
32740
32741
|
name: f.name,
|
|
32741
32742
|
options: f.options,
|
|
@@ -33283,7 +33284,7 @@ class bs {
|
|
|
33283
33284
|
* @returns An array of attributes
|
|
33284
33285
|
*/
|
|
33285
33286
|
get attributes() {
|
|
33286
|
-
return
|
|
33287
|
+
return Jb(this.extensions);
|
|
33287
33288
|
}
|
|
33288
33289
|
/**
|
|
33289
33290
|
* Get all node views from the extensions.
|
|
@@ -33375,7 +33376,7 @@ class et {
|
|
|
33375
33376
|
})), n;
|
|
33376
33377
|
}
|
|
33377
33378
|
}
|
|
33378
|
-
function
|
|
33379
|
+
function Zb(t, e, n) {
|
|
33379
33380
|
const { from: i, to: r } = e, { blockSeparator: s = `
|
|
33380
33381
|
|
|
33381
33382
|
`, textSerializers: o = {} } = n || {};
|
|
@@ -33395,7 +33396,7 @@ function Z8(t, e, n) {
|
|
|
33395
33396
|
l.isText && (a += (h = l == null ? void 0 : l.text) === null || h === void 0 ? void 0 : h.slice(Math.max(i, f) - f, r - f));
|
|
33396
33397
|
}), a;
|
|
33397
33398
|
}
|
|
33398
|
-
function
|
|
33399
|
+
function Xb(t) {
|
|
33399
33400
|
return Object.fromEntries(Object.entries(t.nodes).filter(([, e]) => e.spec.toText).map(([e, n]) => [e, n.spec.toText]));
|
|
33400
33401
|
}
|
|
33401
33402
|
const zR = et.create({
|
|
@@ -33411,8 +33412,8 @@ const zR = et.create({
|
|
|
33411
33412
|
key: new tt("clipboardTextSerializer"),
|
|
33412
33413
|
props: {
|
|
33413
33414
|
clipboardTextSerializer: () => {
|
|
33414
|
-
const { editor: t } = this, { state: e, schema: n } = t, { doc: i, selection: r } = e, { ranges: s } = r, o = Math.min(...s.map((c) => c.$from.pos)), a = Math.max(...s.map((c) => c.$to.pos)), l =
|
|
33415
|
-
return
|
|
33415
|
+
const { editor: t } = this, { state: e, schema: n } = t, { doc: i, selection: r } = e, { ranges: s } = r, o = Math.min(...s.map((c) => c.$from.pos)), a = Math.max(...s.map((c) => c.$to.pos)), l = Xb(n);
|
|
33416
|
+
return Zb(i, { from: o, to: a }, {
|
|
33416
33417
|
...this.options.blockSeparator !== void 0 ? { blockSeparator: this.options.blockSeparator } : {},
|
|
33417
33418
|
textSerializers: l
|
|
33418
33419
|
});
|
|
@@ -33441,7 +33442,7 @@ const zR = et.create({
|
|
|
33441
33442
|
(m || m === 0) && e.lift(p, m);
|
|
33442
33443
|
});
|
|
33443
33444
|
}), !0;
|
|
33444
|
-
}, WR = (t) => (e) => t(e), qR = () => ({ state: t, dispatch: e }) =>
|
|
33445
|
+
}, WR = (t) => (e) => t(e), qR = () => ({ state: t, dispatch: e }) => qb(t, e), UR = (t, e) => ({ editor: n, tr: i }) => {
|
|
33445
33446
|
const { state: r } = n, s = r.doc.slice(t.from, t.to);
|
|
33446
33447
|
i.deleteRange(t.from, t.to);
|
|
33447
33448
|
const o = i.mapping.map(e);
|
|
@@ -33479,7 +33480,7 @@ function Ed(t, e, n = { strict: !0 }) {
|
|
|
33479
33480
|
const i = Object.keys(e);
|
|
33480
33481
|
return i.length ? i.every((r) => n.strict ? e[r] === t[r] : Jp(e[r]) ? e[r].test(t[r]) : e[r] === t[r]) : !0;
|
|
33481
33482
|
}
|
|
33482
|
-
function
|
|
33483
|
+
function Qb(t, e, n = {}) {
|
|
33483
33484
|
return t.find((i) => i.type === e && Ed(
|
|
33484
33485
|
// Only check equality for the attributes that are provided
|
|
33485
33486
|
Object.fromEntries(Object.keys(n).map((r) => [r, i.attrs[r]])),
|
|
@@ -33487,14 +33488,14 @@ function Q8(t, e, n = {}) {
|
|
|
33487
33488
|
));
|
|
33488
33489
|
}
|
|
33489
33490
|
function t3(t, e, n = {}) {
|
|
33490
|
-
return !!
|
|
33491
|
+
return !!Qb(t, e, n);
|
|
33491
33492
|
}
|
|
33492
33493
|
function Yp(t, e, n) {
|
|
33493
33494
|
var i;
|
|
33494
33495
|
if (!t || !e)
|
|
33495
33496
|
return;
|
|
33496
33497
|
let r = t.parent.childAfter(t.parentOffset);
|
|
33497
|
-
if ((!r.node || !r.node.marks.some((c) => c.type === e)) && (r = t.parent.childBefore(t.parentOffset)), !r.node || !r.node.marks.some((c) => c.type === e) || (n = n || ((i = r.node.marks[0]) === null || i === void 0 ? void 0 : i.attrs), !
|
|
33498
|
+
if ((!r.node || !r.node.marks.some((c) => c.type === e)) && (r = t.parent.childBefore(t.parentOffset)), !r.node || !r.node.marks.some((c) => c.type === e) || (n = n || ((i = r.node.marks[0]) === null || i === void 0 ? void 0 : i.attrs), !Qb([...r.node.marks], e, n)))
|
|
33498
33499
|
return;
|
|
33499
33500
|
let o = r.index, a = t.start() + r.offset, l = o + 1, f = a + r.node.nodeSize;
|
|
33500
33501
|
for (; o > 0 && t3([...t.parent.child(o - 1).marks], e, n); )
|
|
@@ -33537,7 +33538,7 @@ function cc(t) {
|
|
|
33537
33538
|
function wi(t = 0, e = 0, n = 0) {
|
|
33538
33539
|
return Math.min(Math.max(t, e), n);
|
|
33539
33540
|
}
|
|
33540
|
-
function
|
|
33541
|
+
function e8(t, e = null) {
|
|
33541
33542
|
if (!e)
|
|
33542
33543
|
return null;
|
|
33543
33544
|
const n = Oe.atStart(t), i = Oe.atEnd(t);
|
|
@@ -33548,7 +33549,7 @@ function eb(t, e = null) {
|
|
|
33548
33549
|
const r = n.from, s = i.to;
|
|
33549
33550
|
return e === "all" ? Le.create(t, wi(0, r, s), wi(t.content.size, r, s)) : Le.create(t, wi(e, r, s), wi(e, r, s));
|
|
33550
33551
|
}
|
|
33551
|
-
function
|
|
33552
|
+
function t8() {
|
|
33552
33553
|
return navigator.platform === "Android" || /android/i.test(navigator.userAgent);
|
|
33553
33554
|
}
|
|
33554
33555
|
function uc() {
|
|
@@ -33567,7 +33568,7 @@ const tP = (t = null, e = {}) => ({ editor: n, view: i, tr: r, dispatch: s }) =>
|
|
|
33567
33568
|
...e
|
|
33568
33569
|
};
|
|
33569
33570
|
const o = () => {
|
|
33570
|
-
(uc() ||
|
|
33571
|
+
(uc() || t8()) && i.dom.focus(), requestAnimationFrame(() => {
|
|
33571
33572
|
n.isDestroyed || (i.focus(), e != null && e.scrollIntoView && n.commands.scrollIntoView());
|
|
33572
33573
|
});
|
|
33573
33574
|
};
|
|
@@ -33575,19 +33576,19 @@ const tP = (t = null, e = {}) => ({ editor: n, view: i, tr: r, dispatch: s }) =>
|
|
|
33575
33576
|
return !0;
|
|
33576
33577
|
if (s && t === null && !cc(n.state.selection))
|
|
33577
33578
|
return o(), !0;
|
|
33578
|
-
const a =
|
|
33579
|
+
const a = e8(r.doc, t) || n.state.selection, l = n.state.selection.eq(a);
|
|
33579
33580
|
return s && (l || r.setSelection(a), l && r.storedMarks && r.setStoredMarks(r.storedMarks), o()), !0;
|
|
33580
|
-
}, nP = (t, e) => (n) => t.every((i, r) => e(i, { ...n, index: r })), iP = (t, e) => ({ tr: n, commands: i }) => i.insertContentAt({ from: n.selection.from, to: n.selection.to }, t, e),
|
|
33581
|
+
}, nP = (t, e) => (n) => t.every((i, r) => e(i, { ...n, index: r })), iP = (t, e) => ({ tr: n, commands: i }) => i.insertContentAt({ from: n.selection.from, to: n.selection.to }, t, e), n8 = (t) => {
|
|
33581
33582
|
const e = t.childNodes;
|
|
33582
33583
|
for (let n = e.length - 1; n >= 0; n -= 1) {
|
|
33583
33584
|
const i = e[n];
|
|
33584
|
-
i.nodeType === 3 && i.nodeValue && /^(\n\s\s|\n)$/.test(i.nodeValue) ? t.removeChild(i) : i.nodeType === 1 &&
|
|
33585
|
+
i.nodeType === 3 && i.nodeValue && /^(\n\s\s|\n)$/.test(i.nodeValue) ? t.removeChild(i) : i.nodeType === 1 && n8(i);
|
|
33585
33586
|
}
|
|
33586
33587
|
return t;
|
|
33587
33588
|
};
|
|
33588
33589
|
function dl(t) {
|
|
33589
33590
|
const e = `<body>${t}</body>`, n = new window.DOMParser().parseFromString(e, "text/html").body;
|
|
33590
|
-
return
|
|
33591
|
+
return n8(n);
|
|
33591
33592
|
}
|
|
33592
33593
|
function sa(t, e, n) {
|
|
33593
33594
|
if (t instanceof tr || t instanceof J)
|
|
@@ -33714,7 +33715,7 @@ const sP = (t) => !("type" in t), oP = (t, e, n) => ({ tr: i, dispatch: r, edito
|
|
|
33714
33715
|
n.updateSelection && rP(i, i.steps.length - 1, -1), n.applyInputRules && i.setMeta("applyInputRules", { from: c, text: g }), n.applyPasteRules && i.setMeta("applyPasteRules", { from: c, text: g });
|
|
33715
33716
|
}
|
|
33716
33717
|
return !0;
|
|
33717
|
-
}, aP = () => ({ state: t, dispatch: e }) => aR(t, e), lP = () => ({ state: t, dispatch: e }) => lR(t, e), dP = () => ({ state: t, dispatch: e }) =>
|
|
33718
|
+
}, aP = () => ({ state: t, dispatch: e }) => aR(t, e), lP = () => ({ state: t, dispatch: e }) => lR(t, e), dP = () => ({ state: t, dispatch: e }) => Bb(t, e), fP = () => ({ state: t, dispatch: e }) => Vb(t, e), cP = () => ({ state: t, dispatch: e, tr: n }) => {
|
|
33718
33719
|
try {
|
|
33719
33720
|
const i = tc(t.doc, t.selection.$from.pos, -1);
|
|
33720
33721
|
return i == null ? !1 : (n.join(i, 2), e && e(n), !0);
|
|
@@ -33729,7 +33730,7 @@ const sP = (t) => !("type" in t), oP = (t, e, n) => ({ tr: i, dispatch: r, edito
|
|
|
33729
33730
|
return !1;
|
|
33730
33731
|
}
|
|
33731
33732
|
}, hP = () => ({ state: t, dispatch: e }) => sR(t, e), pP = () => ({ state: t, dispatch: e }) => oR(t, e);
|
|
33732
|
-
function
|
|
33733
|
+
function i8() {
|
|
33733
33734
|
return typeof navigator < "u" ? /Mac/.test(navigator.platform) : !1;
|
|
33734
33735
|
}
|
|
33735
33736
|
function mP(t) {
|
|
@@ -33748,7 +33749,7 @@ function mP(t) {
|
|
|
33748
33749
|
else if (/^s(hift)?$/i.test(l))
|
|
33749
33750
|
s = !0;
|
|
33750
33751
|
else if (/^mod$/i.test(l))
|
|
33751
|
-
uc() ||
|
|
33752
|
+
uc() || i8() ? o = !0 : r = !0;
|
|
33752
33753
|
else
|
|
33753
33754
|
throw new Error(`Unrecognized modifier name: ${l}`);
|
|
33754
33755
|
}
|
|
@@ -33789,10 +33790,10 @@ function oa(t, e, n = {}) {
|
|
|
33789
33790
|
const yP = (t, e = {}) => ({ state: n, dispatch: i }) => {
|
|
33790
33791
|
const r = Nt(t, n.schema);
|
|
33791
33792
|
return oa(n, r, e) ? dR(n, i) : !1;
|
|
33792
|
-
}, vP = () => ({ state: t, dispatch: e }) =>
|
|
33793
|
+
}, vP = () => ({ state: t, dispatch: e }) => Ub(t, e), bP = (t) => ({ state: e, dispatch: n }) => {
|
|
33793
33794
|
const i = Nt(t, e.schema);
|
|
33794
33795
|
return xR(i)(e, n);
|
|
33795
|
-
}, kP = () => ({ state: t, dispatch: e }) =>
|
|
33796
|
+
}, kP = () => ({ state: t, dispatch: e }) => Wb(t, e);
|
|
33796
33797
|
function hc(t, e) {
|
|
33797
33798
|
return e.nodes[t] ? "node" : e.marks[t] ? "mark" : null;
|
|
33798
33799
|
}
|
|
@@ -33816,7 +33817,7 @@ const xP = (t, e) => ({ tr: n, state: i, dispatch: r }) => {
|
|
|
33816
33817
|
t.setSelection(n);
|
|
33817
33818
|
}
|
|
33818
33819
|
return !0;
|
|
33819
|
-
}, CP = () => ({ state: t, dispatch: e }) =>
|
|
33820
|
+
}, CP = () => ({ state: t, dispatch: e }) => zb(t, e), SP = () => ({ state: t, dispatch: e }) => Hb(t, e), NP = () => ({ state: t, dispatch: e }) => hR(t, e), LP = () => ({ state: t, dispatch: e }) => gR(t, e), EP = () => ({ state: t, dispatch: e }) => mR(t, e);
|
|
33820
33821
|
function j1(t, e, n = {}, i = {}) {
|
|
33821
33822
|
return sa(t, e, {
|
|
33822
33823
|
slice: !1,
|
|
@@ -33838,7 +33839,7 @@ const MP = (t, e = !1, n = {}, i = {}) => ({ editor: r, tr: s, dispatch: o, comm
|
|
|
33838
33839
|
errorOnInvalidContent: (f = i.errorOnInvalidContent) !== null && f !== void 0 ? f : r.options.enableContentCheck
|
|
33839
33840
|
});
|
|
33840
33841
|
};
|
|
33841
|
-
function
|
|
33842
|
+
function r8(t, e) {
|
|
33842
33843
|
const n = kr(e, t.schema), { from: i, to: r, empty: s } = t.selection, o = [];
|
|
33843
33844
|
s ? (t.storedMarks && o.push(...t.storedMarks), o.push(...t.selection.$head.marks())) : t.doc.nodesBetween(i, r, (l) => {
|
|
33844
33845
|
o.push(...l.marks);
|
|
@@ -33900,7 +33901,7 @@ function IP(t, e) {
|
|
|
33900
33901
|
from: 0,
|
|
33901
33902
|
to: t.content.size
|
|
33902
33903
|
};
|
|
33903
|
-
return
|
|
33904
|
+
return Zb(t, n, e);
|
|
33904
33905
|
}
|
|
33905
33906
|
function DP(t, e) {
|
|
33906
33907
|
const n = Nt(e, t.schema), { from: i, to: r } = t.selection, s = [];
|
|
@@ -33910,9 +33911,9 @@ function DP(t, e) {
|
|
|
33910
33911
|
const o = s.reverse().find((a) => a.type.name === n.name);
|
|
33911
33912
|
return o ? { ...o.attrs } : {};
|
|
33912
33913
|
}
|
|
33913
|
-
function
|
|
33914
|
+
function s8(t, e) {
|
|
33914
33915
|
const n = hc(typeof e == "string" ? e : e.name, t.schema);
|
|
33915
|
-
return n === "node" ? DP(t, e) : n === "mark" ?
|
|
33916
|
+
return n === "node" ? DP(t, e) : n === "mark" ? r8(t, e) : {};
|
|
33916
33917
|
}
|
|
33917
33918
|
function RP(t, e = JSON.stringify) {
|
|
33918
33919
|
const n = {};
|
|
@@ -33999,7 +34000,7 @@ function V1(t, e, n = {}) {
|
|
|
33999
34000
|
const l = a.filter((u) => s ? s.name === u.mark.type.name : !0).filter((u) => Ed(u.mark.attrs, n, { strict: !1 })).reduce((u, h) => u + h.to - h.from, 0), f = a.filter((u) => s ? u.mark.type !== s && u.mark.type.excludes(s) : !0).reduce((u, h) => u + h.to - h.from, 0);
|
|
34000
34001
|
return (l > 0 ? l + f : l) >= o;
|
|
34001
34002
|
}
|
|
34002
|
-
function
|
|
34003
|
+
function o8(t, e, n = {}) {
|
|
34003
34004
|
if (!e)
|
|
34004
34005
|
return oa(t, null, n) || V1(t, null, n);
|
|
34005
34006
|
const i = hc(e, t.schema);
|
|
@@ -34038,7 +34039,7 @@ function pc(t, { checkChildren: e = !0, ignoreWhitespace: n = !1 } = {}) {
|
|
|
34038
34039
|
}
|
|
34039
34040
|
return !1;
|
|
34040
34041
|
}
|
|
34041
|
-
function
|
|
34042
|
+
function a8(t) {
|
|
34042
34043
|
return t instanceof ke;
|
|
34043
34044
|
}
|
|
34044
34045
|
function BP(t, e, n) {
|
|
@@ -34083,7 +34084,7 @@ const zP = (t, e = {}) => ({ tr: n, state: i, dispatch: r }) => {
|
|
|
34083
34084
|
const { selection: s } = n, { empty: o, ranges: a } = s, l = kr(t, i.schema);
|
|
34084
34085
|
if (r)
|
|
34085
34086
|
if (o) {
|
|
34086
|
-
const f =
|
|
34087
|
+
const f = r8(i, l);
|
|
34087
34088
|
n.addStoredMark(l.create({
|
|
34088
34089
|
...f,
|
|
34089
34090
|
...e
|
|
@@ -34498,7 +34499,7 @@ const sF = et.create({
|
|
|
34498
34499
|
"Ctrl-a": () => this.editor.commands.selectTextblockStart(),
|
|
34499
34500
|
"Ctrl-e": () => this.editor.commands.selectTextblockEnd()
|
|
34500
34501
|
};
|
|
34501
|
-
return uc() ||
|
|
34502
|
+
return uc() || i8() ? s : r;
|
|
34502
34503
|
},
|
|
34503
34504
|
addProseMirrorPlugins() {
|
|
34504
34505
|
return [
|
|
@@ -34872,7 +34873,7 @@ class mF extends SR {
|
|
|
34872
34873
|
* @returns The new editor state
|
|
34873
34874
|
*/
|
|
34874
34875
|
registerPlugin(e, n) {
|
|
34875
|
-
const i =
|
|
34876
|
+
const i = Yb(n) ? n(e, [...this.state.plugins]) : [...this.state.plugins, e], r = this.state.reconfigure({ plugins: i });
|
|
34876
34877
|
return this.view.updateState(r), r;
|
|
34877
34878
|
}
|
|
34878
34879
|
/**
|
|
@@ -34948,7 +34949,7 @@ class mF extends SR {
|
|
|
34948
34949
|
}
|
|
34949
34950
|
}), n = j1(this.options.content, this.schema, this.options.parseOptions, { errorOnInvalidContent: !1 });
|
|
34950
34951
|
}
|
|
34951
|
-
const i =
|
|
34952
|
+
const i = e8(n, this.options.autofocus);
|
|
34952
34953
|
this.view = new JD(this.options.element, {
|
|
34953
34954
|
...this.options.editorProps,
|
|
34954
34955
|
attributes: {
|
|
@@ -35037,11 +35038,11 @@ class mF extends SR {
|
|
|
35037
35038
|
* Get attributes of the currently selected node or mark.
|
|
35038
35039
|
*/
|
|
35039
35040
|
getAttributes(e) {
|
|
35040
|
-
return
|
|
35041
|
+
return s8(this.state, e);
|
|
35041
35042
|
}
|
|
35042
35043
|
isActive(e, n) {
|
|
35043
35044
|
const i = typeof e == "string" ? e : null, r = typeof e == "string" ? n : e;
|
|
35044
|
-
return
|
|
35045
|
+
return o8(this.state, i, r);
|
|
35045
35046
|
}
|
|
35046
35047
|
/**
|
|
35047
35048
|
* Get the document as JSON.
|
|
@@ -35065,7 +35066,7 @@ class mF extends SR {
|
|
|
35065
35066
|
return IP(this.state.doc, {
|
|
35066
35067
|
blockSeparator: n,
|
|
35067
35068
|
textSerializers: {
|
|
35068
|
-
...
|
|
35069
|
+
...Xb(this.schema),
|
|
35069
35070
|
...i
|
|
35070
35071
|
}
|
|
35071
35072
|
});
|
|
@@ -35309,7 +35310,7 @@ class yF {
|
|
|
35309
35310
|
* @return `true` if it can safely be ignored.
|
|
35310
35311
|
*/
|
|
35311
35312
|
ignoreMutation(e) {
|
|
35312
|
-
return !this.dom || !this.contentDOM ? !0 : typeof this.options.ignoreMutation == "function" ? this.options.ignoreMutation({ mutation: e }) : this.node.isLeaf || this.node.isAtom ? !0 : e.type === "selection" || this.dom.contains(e.target) && e.type === "childList" && (uc() ||
|
|
35313
|
+
return !this.dom || !this.contentDOM ? !0 : typeof this.options.ignoreMutation == "function" ? this.options.ignoreMutation({ mutation: e }) : this.node.isLeaf || this.node.isAtom ? !0 : e.type === "selection" || this.dom.contains(e.target) && e.type === "childList" && (uc() || t8()) && this.editor.isFocused && [
|
|
35313
35314
|
...Array.from(e.addedNodes),
|
|
35314
35315
|
...Array.from(e.removedNodes)
|
|
35315
35316
|
].every((i) => i.isContentEditable) ? !1 : this.contentDOM === e.target && e.type === "attributes" ? !0 : !this.contentDOM.contains(e.target);
|
|
@@ -35358,9 +35359,9 @@ function fr(t) {
|
|
|
35358
35359
|
function vF(t) {
|
|
35359
35360
|
return t.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&");
|
|
35360
35361
|
}
|
|
35361
|
-
var rn = "top", An = "bottom", In = "right", sn = "left", Qp = "auto", ja = [rn, An, In, sn], zs = "start", aa = "end", bF = "clippingParents",
|
|
35362
|
+
var rn = "top", An = "bottom", In = "right", sn = "left", Qp = "auto", ja = [rn, An, In, sn], zs = "start", aa = "end", bF = "clippingParents", l8 = "viewport", ko = "popper", kF = "reference", s3 = /* @__PURE__ */ ja.reduce(function(t, e) {
|
|
35362
35363
|
return t.concat([e + "-" + zs, e + "-" + aa]);
|
|
35363
|
-
}, []),
|
|
35364
|
+
}, []), d8 = /* @__PURE__ */ [].concat(ja, [Qp]).reduce(function(t, e) {
|
|
35364
35365
|
return t.concat([e, e + "-" + zs, e + "-" + aa]);
|
|
35365
35366
|
}, []), xF = "beforeRead", wF = "read", _F = "afterRead", CF = "beforeMain", SF = "main", NF = "afterMain", LF = "beforeWrite", EF = "write", MF = "afterWrite", TF = [xF, wF, _F, CF, SF, NF, LF, EF, MF];
|
|
35366
35367
|
function di(t) {
|
|
@@ -35423,7 +35424,7 @@ function AF(t) {
|
|
|
35423
35424
|
});
|
|
35424
35425
|
};
|
|
35425
35426
|
}
|
|
35426
|
-
const
|
|
35427
|
+
const f8 = {
|
|
35427
35428
|
name: "applyStyles",
|
|
35428
35429
|
enabled: !0,
|
|
35429
35430
|
phase: "write",
|
|
@@ -35441,14 +35442,14 @@ function q1() {
|
|
|
35441
35442
|
return e.brand + "/" + e.version;
|
|
35442
35443
|
}).join(" ") : navigator.userAgent;
|
|
35443
35444
|
}
|
|
35444
|
-
function
|
|
35445
|
+
function c8() {
|
|
35445
35446
|
return !/^((?!chrome|android).)*safari/i.test(q1());
|
|
35446
35447
|
}
|
|
35447
35448
|
function Vs(t, e, n) {
|
|
35448
35449
|
e === void 0 && (e = !1), n === void 0 && (n = !1);
|
|
35449
35450
|
var i = t.getBoundingClientRect(), r = 1, s = 1;
|
|
35450
35451
|
e && Mn(t) && (r = t.offsetWidth > 0 && js(i.width) / t.offsetWidth || 1, s = t.offsetHeight > 0 && js(i.height) / t.offsetHeight || 1);
|
|
35451
|
-
var o = Kr(t) ? pn(t) : window, a = o.visualViewport, l = !
|
|
35452
|
+
var o = Kr(t) ? pn(t) : window, a = o.visualViewport, l = !c8() && n, f = (i.left + (l && a ? a.offsetLeft : 0)) / r, c = (i.top + (l && a ? a.offsetTop : 0)) / s, u = i.width / r, h = i.height / s;
|
|
35452
35453
|
return {
|
|
35453
35454
|
width: u,
|
|
35454
35455
|
height: h,
|
|
@@ -35469,7 +35470,7 @@ function tm(t) {
|
|
|
35469
35470
|
height: i
|
|
35470
35471
|
};
|
|
35471
35472
|
}
|
|
35472
|
-
function
|
|
35473
|
+
function u8(t, e) {
|
|
35473
35474
|
var n = e.getRootNode && e.getRootNode();
|
|
35474
35475
|
if (t.contains(e))
|
|
35475
35476
|
return !0;
|
|
@@ -35542,7 +35543,7 @@ function RF(t, e, n) {
|
|
|
35542
35543
|
var i = Po(t, e, n);
|
|
35543
35544
|
return i > n ? n : i;
|
|
35544
35545
|
}
|
|
35545
|
-
function
|
|
35546
|
+
function h8() {
|
|
35546
35547
|
return {
|
|
35547
35548
|
top: 0,
|
|
35548
35549
|
right: 0,
|
|
@@ -35550,10 +35551,10 @@ function hb() {
|
|
|
35550
35551
|
left: 0
|
|
35551
35552
|
};
|
|
35552
35553
|
}
|
|
35553
|
-
function
|
|
35554
|
-
return Object.assign({},
|
|
35554
|
+
function p8(t) {
|
|
35555
|
+
return Object.assign({}, h8(), t);
|
|
35555
35556
|
}
|
|
35556
|
-
function
|
|
35557
|
+
function m8(t, e) {
|
|
35557
35558
|
return e.reduce(function(n, i) {
|
|
35558
35559
|
return n[i] = t, n;
|
|
35559
35560
|
}, {});
|
|
@@ -35561,7 +35562,7 @@ function mb(t, e) {
|
|
|
35561
35562
|
var PF = function(e, n) {
|
|
35562
35563
|
return e = typeof e == "function" ? e(Object.assign({}, n.rects, {
|
|
35563
35564
|
placement: n.placement
|
|
35564
|
-
})) : e,
|
|
35565
|
+
})) : e, p8(typeof e != "number" ? e : m8(e, ja));
|
|
35565
35566
|
};
|
|
35566
35567
|
function FF(t) {
|
|
35567
35568
|
var e, n = t.state, i = t.name, r = t.options, s = n.elements.arrow, o = n.modifiersData.popperOffsets, a = si(n.placement), l = nm(a), f = [sn, In].indexOf(a) >= 0, c = f ? "height" : "width";
|
|
@@ -35572,7 +35573,7 @@ function FF(t) {
|
|
|
35572
35573
|
}
|
|
35573
35574
|
function BF(t) {
|
|
35574
35575
|
var e = t.state, n = t.options, i = n.element, r = i === void 0 ? "[data-popper-arrow]" : i;
|
|
35575
|
-
r != null && (typeof r == "string" && (r = e.elements.popper.querySelector(r), !r) ||
|
|
35576
|
+
r != null && (typeof r == "string" && (r = e.elements.popper.querySelector(r), !r) || u8(e.elements.popper, r) && (e.elements.arrow = r));
|
|
35576
35577
|
}
|
|
35577
35578
|
const $F = {
|
|
35578
35579
|
name: "arrow",
|
|
@@ -35729,7 +35730,7 @@ function GF(t, e) {
|
|
|
35729
35730
|
var n = pn(t), i = xr(t), r = n.visualViewport, s = i.clientWidth, o = i.clientHeight, a = 0, l = 0;
|
|
35730
35731
|
if (r) {
|
|
35731
35732
|
s = r.width, o = r.height;
|
|
35732
|
-
var f =
|
|
35733
|
+
var f = c8();
|
|
35733
35734
|
(f || !f && e === "fixed") && (a = r.offsetLeft, l = r.offsetTop);
|
|
35734
35735
|
}
|
|
35735
35736
|
return {
|
|
@@ -35752,13 +35753,13 @@ function sm(t) {
|
|
|
35752
35753
|
var e = Ai(t), n = e.overflow, i = e.overflowX, r = e.overflowY;
|
|
35753
35754
|
return /auto|scroll|overlay|hidden/.test(n + r + i);
|
|
35754
35755
|
}
|
|
35755
|
-
function
|
|
35756
|
-
return ["html", "body", "#document"].indexOf(di(t)) >= 0 ? t.ownerDocument.body : Mn(t) && sm(t) ? t :
|
|
35756
|
+
function g8(t) {
|
|
35757
|
+
return ["html", "body", "#document"].indexOf(di(t)) >= 0 ? t.ownerDocument.body : Mn(t) && sm(t) ? t : g8(mc(t));
|
|
35757
35758
|
}
|
|
35758
35759
|
function Fo(t, e) {
|
|
35759
35760
|
var n;
|
|
35760
35761
|
e === void 0 && (e = []);
|
|
35761
|
-
var i =
|
|
35762
|
+
var i = g8(t), r = i === ((n = t.ownerDocument) == null ? void 0 : n.body), s = pn(i), o = r ? [s].concat(s.visualViewport || [], sm(i) ? i : []) : i, a = e.concat(o);
|
|
35762
35763
|
return r ? a : (
|
|
35763
35764
|
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
35764
35765
|
a.concat(Fo(mc(o)))
|
|
@@ -35777,12 +35778,12 @@ function YF(t, e) {
|
|
|
35777
35778
|
return n.top = n.top + t.clientTop, n.left = n.left + t.clientLeft, n.bottom = n.top + t.clientHeight, n.right = n.left + t.clientWidth, n.width = t.clientWidth, n.height = t.clientHeight, n.x = n.left, n.y = n.top, n;
|
|
35778
35779
|
}
|
|
35779
35780
|
function d3(t, e, n) {
|
|
35780
|
-
return e ===
|
|
35781
|
+
return e === l8 ? U1(GF(t, n)) : Kr(e) ? YF(e, n) : U1(JF(xr(t)));
|
|
35781
35782
|
}
|
|
35782
35783
|
function ZF(t) {
|
|
35783
35784
|
var e = Fo(mc(t)), n = ["absolute", "fixed"].indexOf(Ai(t).position) >= 0, i = n && Mn(t) ? Va(t) : t;
|
|
35784
35785
|
return Kr(i) ? e.filter(function(r) {
|
|
35785
|
-
return Kr(r) &&
|
|
35786
|
+
return Kr(r) && u8(r, i) && di(r) !== "body";
|
|
35786
35787
|
}) : [];
|
|
35787
35788
|
}
|
|
35788
35789
|
function XF(t, e, n, i) {
|
|
@@ -35792,7 +35793,7 @@ function XF(t, e, n, i) {
|
|
|
35792
35793
|
}, d3(t, o, i));
|
|
35793
35794
|
return a.width = a.right - a.left, a.height = a.bottom - a.top, a.x = a.left, a.y = a.top, a;
|
|
35794
35795
|
}
|
|
35795
|
-
function
|
|
35796
|
+
function y8(t) {
|
|
35796
35797
|
var e = t.reference, n = t.element, i = t.placement, r = i ? si(i) : null, s = i ? Hs(i) : null, o = e.x + e.width / 2 - n.width / 2, a = e.y + e.height / 2 - n.height / 2, l;
|
|
35797
35798
|
switch (r) {
|
|
35798
35799
|
case rn:
|
|
@@ -35841,7 +35842,7 @@ function yb(t) {
|
|
|
35841
35842
|
}
|
|
35842
35843
|
function la(t, e) {
|
|
35843
35844
|
e === void 0 && (e = {});
|
|
35844
|
-
var n = e, i = n.placement, r = i === void 0 ? t.placement : i, s = n.strategy, o = s === void 0 ? t.strategy : s, a = n.boundary, l = a === void 0 ? bF : a, f = n.rootBoundary, c = f === void 0 ?
|
|
35845
|
+
var n = e, i = n.placement, r = i === void 0 ? t.placement : i, s = n.strategy, o = s === void 0 ? t.strategy : s, a = n.boundary, l = a === void 0 ? bF : a, f = n.rootBoundary, c = f === void 0 ? l8 : f, u = n.elementContext, h = u === void 0 ? ko : u, p = n.altBoundary, m = p === void 0 ? !1 : p, g = n.padding, y = g === void 0 ? 0 : g, v = p8(typeof y != "number" ? y : m8(y, ja)), x = h === ko ? kF : ko, w = t.rects.popper, k = t.elements[m ? x : h], S = XF(Kr(k) ? k : k.contextElement || xr(t.elements.popper), l, c, o), _ = Vs(t.elements.reference), E = y8({
|
|
35845
35846
|
reference: _,
|
|
35846
35847
|
element: w,
|
|
35847
35848
|
placement: r
|
|
@@ -35862,7 +35863,7 @@ function la(t, e) {
|
|
|
35862
35863
|
}
|
|
35863
35864
|
function QF(t, e) {
|
|
35864
35865
|
e === void 0 && (e = {});
|
|
35865
|
-
var n = e, i = n.placement, r = n.boundary, s = n.rootBoundary, o = n.padding, a = n.flipVariations, l = n.allowedAutoPlacements, f = l === void 0 ?
|
|
35866
|
+
var n = e, i = n.placement, r = n.boundary, s = n.rootBoundary, o = n.padding, a = n.flipVariations, l = n.allowedAutoPlacements, f = l === void 0 ? d8 : l, c = Hs(i), u = c ? a ? s3 : s3.filter(function(m) {
|
|
35866
35867
|
return Hs(m) === c;
|
|
35867
35868
|
}) : ja, h = u.filter(function(m) {
|
|
35868
35869
|
return f.indexOf(m) >= 0;
|
|
@@ -35996,7 +35997,7 @@ function sB(t, e, n) {
|
|
|
35996
35997
|
};
|
|
35997
35998
|
}
|
|
35998
35999
|
function oB(t) {
|
|
35999
|
-
var e = t.state, n = t.options, i = t.name, r = n.offset, s = r === void 0 ? [0, 0] : r, o =
|
|
36000
|
+
var e = t.state, n = t.options, i = t.name, r = n.offset, s = r === void 0 ? [0, 0] : r, o = d8.reduce(function(c, u) {
|
|
36000
36001
|
return c[u] = sB(u, e.rects, s), c;
|
|
36001
36002
|
}, {}), a = o[e.placement], l = a.x, f = a.y;
|
|
36002
36003
|
e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += l, e.modifiersData.popperOffsets.y += f), e.modifiersData[i] = o;
|
|
@@ -36010,7 +36011,7 @@ const aB = {
|
|
|
36010
36011
|
};
|
|
36011
36012
|
function lB(t) {
|
|
36012
36013
|
var e = t.state, n = t.name;
|
|
36013
|
-
e.modifiersData[n] =
|
|
36014
|
+
e.modifiersData[n] = y8({
|
|
36014
36015
|
reference: e.rects.reference,
|
|
36015
36016
|
element: e.rects.popper,
|
|
36016
36017
|
placement: e.placement
|
|
@@ -36049,7 +36050,7 @@ function cB(t) {
|
|
|
36049
36050
|
var D, R = k === "y" ? rn : sn, F = k === "y" ? An : In, W = k === "y" ? "height" : "width", te = _[k], G = te + y[R], he = te - y[F], ae = p ? -C[W] / 2 : 0, xe = x === zs ? E[W] : C[W], se = x === zs ? -C[W] : -E[W], ce = e.elements.arrow, Me = p && ce ? tm(ce) : {
|
|
36050
36051
|
width: 0,
|
|
36051
36052
|
height: 0
|
|
36052
|
-
}, Ae = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding :
|
|
36053
|
+
}, Ae = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : h8(), Fe = Ae[R], H = Ae[F], re = Po(0, E[W], Me[W]), ve = w ? E[W] / 2 - ae - re - Fe - M.mainAxis : xe - re - Fe - M.mainAxis, X = w ? -E[W] / 2 + ae + re + H + M.mainAxis : se + re + H + M.mainAxis, ye = e.elements.arrow && Va(e.elements.arrow), _e = ye ? k === "y" ? ye.clientTop || 0 : ye.clientLeft || 0 : 0, Ne = (D = I == null ? void 0 : I[k]) != null ? D : 0, Te = te + ve - Ne - _e, lt = te + X - Ne, Je = Po(p ? Md(G, Te) : G, te, p ? Fr(he, lt) : he);
|
|
36053
36054
|
_[k] = Je, O[k] = Je - te;
|
|
36054
36055
|
}
|
|
36055
36056
|
if (a) {
|
|
@@ -36256,12 +36257,12 @@ function xB(t) {
|
|
|
36256
36257
|
return p;
|
|
36257
36258
|
};
|
|
36258
36259
|
}
|
|
36259
|
-
var wB = [qF, dB, HF,
|
|
36260
|
+
var wB = [qF, dB, HF, f8, aB, nB, uB, $F, rB], _B = /* @__PURE__ */ xB({
|
|
36260
36261
|
defaultModifiers: wB
|
|
36261
|
-
}), CB = "tippy-box",
|
|
36262
|
+
}), CB = "tippy-box", v8 = "tippy-content", SB = "tippy-backdrop", b8 = "tippy-arrow", k8 = "tippy-svg-arrow", Cr = {
|
|
36262
36263
|
passive: !0,
|
|
36263
36264
|
capture: !0
|
|
36264
|
-
},
|
|
36265
|
+
}, x8 = function() {
|
|
36265
36266
|
return document.body;
|
|
36266
36267
|
};
|
|
36267
36268
|
function NB(t, e) {
|
|
@@ -36278,7 +36279,7 @@ function om(t, e) {
|
|
|
36278
36279
|
var n = {}.toString.call(t);
|
|
36279
36280
|
return n.indexOf("[object") === 0 && n.indexOf(e + "]") > -1;
|
|
36280
36281
|
}
|
|
36281
|
-
function
|
|
36282
|
+
function w8(t, e) {
|
|
36282
36283
|
return typeof t == "function" ? t.apply(void 0, e) : t;
|
|
36283
36284
|
}
|
|
36284
36285
|
function p3(t, e) {
|
|
@@ -36385,11 +36386,11 @@ var ei = {
|
|
|
36385
36386
|
isTouch: !1
|
|
36386
36387
|
}, b3 = 0;
|
|
36387
36388
|
function FB() {
|
|
36388
|
-
ei.isTouch || (ei.isTouch = !0, window.performance && document.addEventListener("mousemove",
|
|
36389
|
+
ei.isTouch || (ei.isTouch = !0, window.performance && document.addEventListener("mousemove", _8));
|
|
36389
36390
|
}
|
|
36390
|
-
function
|
|
36391
|
+
function _8() {
|
|
36391
36392
|
var t = performance.now();
|
|
36392
|
-
t - b3 < 20 && (ei.isTouch = !1, document.removeEventListener("mousemove",
|
|
36393
|
+
t - b3 < 20 && (ei.isTouch = !1, document.removeEventListener("mousemove", _8)), b3 = t;
|
|
36393
36394
|
}
|
|
36394
36395
|
function BB() {
|
|
36395
36396
|
var t = document.activeElement;
|
|
@@ -36422,7 +36423,7 @@ function VB(t) {
|
|
|
36422
36423
|
%c👷 This is a development-only message. It will be removed in production.
|
|
36423
36424
|
`);
|
|
36424
36425
|
}
|
|
36425
|
-
function
|
|
36426
|
+
function C8(t) {
|
|
36426
36427
|
return [
|
|
36427
36428
|
VB(t),
|
|
36428
36429
|
// title
|
|
@@ -36441,20 +36442,20 @@ function HB() {
|
|
|
36441
36442
|
function vi(t, e) {
|
|
36442
36443
|
if (t && !fa.has(e)) {
|
|
36443
36444
|
var n;
|
|
36444
|
-
fa.add(e), (n = console).warn.apply(n,
|
|
36445
|
+
fa.add(e), (n = console).warn.apply(n, C8(e));
|
|
36445
36446
|
}
|
|
36446
36447
|
}
|
|
36447
36448
|
function K1(t, e) {
|
|
36448
36449
|
if (t && !fa.has(e)) {
|
|
36449
36450
|
var n;
|
|
36450
|
-
fa.add(e), (n = console).error.apply(n,
|
|
36451
|
+
fa.add(e), (n = console).error.apply(n, C8(e));
|
|
36451
36452
|
}
|
|
36452
36453
|
}
|
|
36453
36454
|
function WB(t) {
|
|
36454
36455
|
var e = !t, n = Object.prototype.toString.call(t) === "[object Object]" && !t.addEventListener;
|
|
36455
36456
|
K1(e, ["tippy() was passed", "`" + String(t) + "`", "as its targets (first) argument. Valid types are: String, Element,", "Element[], or NodeList."].join(" ")), K1(n, ["tippy() was passed a plain object which is not supported as an argument", "for virtual positioning. Use props.getReferenceClientRect instead."].join(" "));
|
|
36456
36457
|
}
|
|
36457
|
-
var
|
|
36458
|
+
var S8 = {
|
|
36458
36459
|
animateFill: !1,
|
|
36459
36460
|
followCursor: !1,
|
|
36460
36461
|
inlinePositioning: !1,
|
|
@@ -36470,7 +36471,7 @@ var Sb = {
|
|
|
36470
36471
|
theme: "",
|
|
36471
36472
|
zIndex: 9999
|
|
36472
36473
|
}, hn = Object.assign({
|
|
36473
|
-
appendTo:
|
|
36474
|
+
appendTo: x8,
|
|
36474
36475
|
aria: {
|
|
36475
36476
|
content: "auto",
|
|
36476
36477
|
expanded: "auto"
|
|
@@ -36517,14 +36518,14 @@ var Sb = {
|
|
|
36517
36518
|
touch: !0,
|
|
36518
36519
|
trigger: "mouseenter focus",
|
|
36519
36520
|
triggerTarget: null
|
|
36520
|
-
},
|
|
36521
|
-
process.env.NODE_ENV !== "production" &&
|
|
36521
|
+
}, S8, qB), UB = Object.keys(hn), KB = function(e) {
|
|
36522
|
+
process.env.NODE_ENV !== "production" && L8(e, []);
|
|
36522
36523
|
var n = Object.keys(e);
|
|
36523
36524
|
n.forEach(function(i) {
|
|
36524
36525
|
hn[i] = e[i];
|
|
36525
36526
|
});
|
|
36526
36527
|
};
|
|
36527
|
-
function
|
|
36528
|
+
function N8(t) {
|
|
36528
36529
|
var e = t.plugins || [], n = e.reduce(function(i, r) {
|
|
36529
36530
|
var s = r.name, o = r.defaultValue;
|
|
36530
36531
|
if (s) {
|
|
@@ -36536,7 +36537,7 @@ function Nb(t) {
|
|
|
36536
36537
|
return Object.assign({}, t, n);
|
|
36537
36538
|
}
|
|
36538
36539
|
function GB(t, e) {
|
|
36539
|
-
var n = e ? Object.keys(
|
|
36540
|
+
var n = e ? Object.keys(N8(Object.assign({}, hn, {
|
|
36540
36541
|
plugins: e
|
|
36541
36542
|
}))) : UB, i = n.reduce(function(r, s) {
|
|
36542
36543
|
var o = (t.getAttribute("data-tippy-" + s) || "").trim();
|
|
@@ -36556,18 +36557,18 @@ function GB(t, e) {
|
|
|
36556
36557
|
}
|
|
36557
36558
|
function x3(t, e) {
|
|
36558
36559
|
var n = Object.assign({}, e, {
|
|
36559
|
-
content:
|
|
36560
|
+
content: w8(e.content, [t])
|
|
36560
36561
|
}, e.ignoreAttributes ? {} : GB(t, e.plugins));
|
|
36561
36562
|
return n.aria = Object.assign({}, hn.aria, n.aria), n.aria = {
|
|
36562
36563
|
expanded: n.aria.expanded === "auto" ? e.interactive : n.aria.expanded,
|
|
36563
36564
|
content: n.aria.content === "auto" ? e.interactive ? null : "describedby" : n.aria.content
|
|
36564
36565
|
}, n;
|
|
36565
36566
|
}
|
|
36566
|
-
function
|
|
36567
|
+
function L8(t, e) {
|
|
36567
36568
|
t === void 0 && (t = {}), e === void 0 && (e = []);
|
|
36568
36569
|
var n = Object.keys(t);
|
|
36569
36570
|
n.forEach(function(i) {
|
|
36570
|
-
var r = LB(hn, Object.keys(
|
|
36571
|
+
var r = LB(hn, Object.keys(S8)), s = !NB(r, i);
|
|
36571
36572
|
s && (s = e.filter(function(o) {
|
|
36572
36573
|
return o.name === i;
|
|
36573
36574
|
}).length === 0), vi(s, ["`" + i + "`", "is not a valid prop. You may have spelled it incorrectly, or if it's", "a plugin, forgot to pass it in an array as props.plugins.", `
|
|
@@ -36584,7 +36585,7 @@ function G1(t, e) {
|
|
|
36584
36585
|
}
|
|
36585
36586
|
function w3(t) {
|
|
36586
36587
|
var e = Bo();
|
|
36587
|
-
return t === !0 ? e.className =
|
|
36588
|
+
return t === !0 ? e.className = b8 : (e.className = k8, da(t) ? e.appendChild(t) : G1(e, t)), e;
|
|
36588
36589
|
}
|
|
36589
36590
|
function _3(t, e) {
|
|
36590
36591
|
da(e.content) ? (G1(t, ""), t.appendChild(e.content)) : typeof e.content != "function" && (e.allowHTML ? G1(t, e.content) : t.textContent = e.content);
|
|
@@ -36594,21 +36595,21 @@ function J1(t) {
|
|
|
36594
36595
|
return {
|
|
36595
36596
|
box: e,
|
|
36596
36597
|
content: n.find(function(i) {
|
|
36597
|
-
return i.classList.contains(
|
|
36598
|
+
return i.classList.contains(v8);
|
|
36598
36599
|
}),
|
|
36599
36600
|
arrow: n.find(function(i) {
|
|
36600
|
-
return i.classList.contains(
|
|
36601
|
+
return i.classList.contains(b8) || i.classList.contains(k8);
|
|
36601
36602
|
}),
|
|
36602
36603
|
backdrop: n.find(function(i) {
|
|
36603
36604
|
return i.classList.contains(SB);
|
|
36604
36605
|
})
|
|
36605
36606
|
};
|
|
36606
36607
|
}
|
|
36607
|
-
function
|
|
36608
|
+
function E8(t) {
|
|
36608
36609
|
var e = Bo(), n = Bo();
|
|
36609
36610
|
n.className = CB, n.setAttribute("data-state", "hidden"), n.setAttribute("tabindex", "-1");
|
|
36610
36611
|
var i = Bo();
|
|
36611
|
-
i.className =
|
|
36612
|
+
i.className = v8, i.setAttribute("data-state", "hidden"), _3(i, t.props), e.appendChild(n), n.appendChild(i), r(t.props, t.props);
|
|
36612
36613
|
function r(s, o) {
|
|
36613
36614
|
var a = J1(e), l = a.box, f = a.content, c = a.arrow;
|
|
36614
36615
|
o.theme ? l.setAttribute("data-theme", o.theme) : l.removeAttribute("data-theme"), typeof o.animation == "string" ? l.setAttribute("data-animation", o.animation) : l.removeAttribute("data-animation"), o.inertia ? l.setAttribute("data-inertia", "") : l.removeAttribute("data-inertia"), l.style.maxWidth = typeof o.maxWidth == "number" ? o.maxWidth + "px" : o.maxWidth, o.role ? l.setAttribute("role", o.role) : l.removeAttribute("role"), (s.content !== o.content || s.allowHTML !== o.allowHTML) && _3(f, t.props), o.arrow ? c ? s.arrow !== o.arrow && (l.removeChild(c), l.appendChild(w3(o.arrow))) : l.appendChild(w3(o.arrow)) : c && l.removeChild(c);
|
|
@@ -36618,10 +36619,10 @@ function Eb(t) {
|
|
|
36618
36619
|
onUpdate: r
|
|
36619
36620
|
};
|
|
36620
36621
|
}
|
|
36621
|
-
|
|
36622
|
+
E8.$$tippy = !0;
|
|
36622
36623
|
var YB = 1, cl = [], wu = [];
|
|
36623
36624
|
function ZB(t, e) {
|
|
36624
|
-
var n = x3(t, Object.assign({}, hn,
|
|
36625
|
+
var n = x3(t, Object.assign({}, hn, N8(g3(e)))), i, r, s, o = !1, a = !1, l = !1, f = !1, c, u, h, p = [], m = p3(Te, n.interactiveDebounce), g, y = YB++, v = null, x = MB(n.plugins), w = {
|
|
36625
36626
|
// Is the instance currently enabled?
|
|
36626
36627
|
isEnabled: !0,
|
|
36627
36628
|
// Is the tippy currently showing and not transitioning out?
|
|
@@ -36915,7 +36916,7 @@ function ZB(t, e) {
|
|
|
36915
36916
|
}
|
|
36916
36917
|
function z() {
|
|
36917
36918
|
var V = k.props.appendTo, me, Ee = D();
|
|
36918
|
-
k.props.interactive && V ===
|
|
36919
|
+
k.props.interactive && V === x8 || V === "parent" ? me = Ee.parentNode : me = w8(V, [Ee]), me.contains(_) || me.appendChild(_), k.state.isMounted = !0, T(), process.env.NODE_ENV !== "production" && vi(k.props.interactive && V === hn.appendTo && Ee.nextElementSibling !== _, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
|
|
36919
36920
|
|
|
36920
36921
|
`, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
|
|
36921
36922
|
|
|
@@ -37024,7 +37025,7 @@ function ZB(t, e) {
|
|
|
37024
37025
|
function lo(t, e) {
|
|
37025
37026
|
e === void 0 && (e = {});
|
|
37026
37027
|
var n = hn.plugins.concat(e.plugins || []);
|
|
37027
|
-
process.env.NODE_ENV !== "production" && (WB(t),
|
|
37028
|
+
process.env.NODE_ENV !== "production" && (WB(t), L8(e, n)), $B();
|
|
37028
37029
|
var i = Object.assign({}, e, {
|
|
37029
37030
|
plugins: n
|
|
37030
37031
|
}), r = DB(t);
|
|
@@ -37046,7 +37047,7 @@ function lo(t, e) {
|
|
|
37046
37047
|
lo.defaultProps = hn;
|
|
37047
37048
|
lo.setDefaultProps = KB;
|
|
37048
37049
|
lo.currentInput = ei;
|
|
37049
|
-
Object.assign({},
|
|
37050
|
+
Object.assign({}, f8, {
|
|
37050
37051
|
effect: function(e) {
|
|
37051
37052
|
var n = e.state, i = {
|
|
37052
37053
|
popper: {
|
|
@@ -37064,7 +37065,7 @@ Object.assign({}, fb, {
|
|
|
37064
37065
|
}
|
|
37065
37066
|
});
|
|
37066
37067
|
lo.setDefaultProps({
|
|
37067
|
-
render:
|
|
37068
|
+
render: E8
|
|
37068
37069
|
});
|
|
37069
37070
|
class XB {
|
|
37070
37071
|
constructor({ editor: e, element: n, view: i, tippyOptions: r = {}, updateDelay: s = 250, shouldShow: o }) {
|
|
@@ -37112,7 +37113,7 @@ class XB {
|
|
|
37112
37113
|
}
|
|
37113
37114
|
(h = this.tippy) === null || h === void 0 || h.setProps({
|
|
37114
37115
|
getReferenceClientRect: ((p = this.tippyOptions) === null || p === void 0 ? void 0 : p.getReferenceClientRect) || (() => {
|
|
37115
|
-
if (
|
|
37116
|
+
if (a8(m.selection)) {
|
|
37116
37117
|
let _ = a.nodeDOM(w);
|
|
37117
37118
|
if (_) {
|
|
37118
37119
|
const E = _.dataset.nodeViewWrapper ? _ : _.querySelector("[data-node-view-wrapper]");
|
|
@@ -37160,7 +37161,7 @@ class XB {
|
|
|
37160
37161
|
!((e = this.tippy) === null || e === void 0) && e.popper.firstChild && this.tippy.popper.firstChild.removeEventListener("blur", this.tippyBlurHandler), (n = this.tippy) === null || n === void 0 || n.destroy(), this.element.removeEventListener("mousedown", this.mousedownHandler, { capture: !0 }), this.view.dom.removeEventListener("dragstart", this.dragstartHandler), this.editor.off("focus", this.focusHandler), this.editor.off("blur", this.blurHandler);
|
|
37161
37162
|
}
|
|
37162
37163
|
}
|
|
37163
|
-
const
|
|
37164
|
+
const M8 = (t) => new Ge({
|
|
37164
37165
|
key: typeof t.pluginKey == "string" ? new tt(t.pluginKey) : t.pluginKey,
|
|
37165
37166
|
view: (e) => new XB({ view: e, ...t })
|
|
37166
37167
|
});
|
|
@@ -37177,7 +37178,7 @@ et.create({
|
|
|
37177
37178
|
},
|
|
37178
37179
|
addProseMirrorPlugins() {
|
|
37179
37180
|
return this.options.element ? [
|
|
37180
|
-
|
|
37181
|
+
M8({
|
|
37181
37182
|
pluginKey: this.options.pluginKey,
|
|
37182
37183
|
editor: this.editor,
|
|
37183
37184
|
element: this.options.element,
|
|
@@ -37765,11 +37766,11 @@ function dm(t = {}, e = []) {
|
|
|
37765
37766
|
selector: ({ transactionNumber: s }) => t.shouldRerenderOnTransaction === !1 ? null : t.immediatelyRender && s === 0 ? 0 : s + 1
|
|
37766
37767
|
}), r;
|
|
37767
37768
|
}
|
|
37768
|
-
const
|
|
37769
|
+
const T8 = Rn({
|
|
37769
37770
|
editor: null
|
|
37770
37771
|
});
|
|
37771
|
-
|
|
37772
|
-
const g$ = () => ln(
|
|
37772
|
+
T8.Consumer;
|
|
37773
|
+
const g$ = () => ln(T8), y$ = (t) => {
|
|
37773
37774
|
const [e, n] = $(null), { editor: i } = g$();
|
|
37774
37775
|
return ee(() => {
|
|
37775
37776
|
var r;
|
|
@@ -37780,7 +37781,7 @@ const g$ = () => ln(Tb), y$ = (t) => {
|
|
|
37780
37781
|
console.warn("BubbleMenu component is not rendered inside of an editor component or does not have editor prop.");
|
|
37781
37782
|
return;
|
|
37782
37783
|
}
|
|
37783
|
-
const u =
|
|
37784
|
+
const u = M8({
|
|
37784
37785
|
updateDelay: l,
|
|
37785
37786
|
editor: c,
|
|
37786
37787
|
element: e,
|
|
@@ -37792,10 +37793,10 @@ const g$ = () => ln(Tb), y$ = (t) => {
|
|
|
37792
37793
|
c.unregisterPlugin(s);
|
|
37793
37794
|
};
|
|
37794
37795
|
}, [t.editor, i, e]), Y.createElement("div", { ref: n, className: t.className, style: { visibility: "hidden" } }, t.children);
|
|
37795
|
-
},
|
|
37796
|
+
}, O8 = Rn({
|
|
37796
37797
|
onDragStart: void 0
|
|
37797
|
-
}),
|
|
37798
|
-
const e = t.as || "div", { nodeViewContentRef: n } =
|
|
37798
|
+
}), A8 = () => ln(O8), yc = (t) => {
|
|
37799
|
+
const e = t.as || "div", { nodeViewContentRef: n } = A8();
|
|
37799
37800
|
return (
|
|
37800
37801
|
// @ts-ignore
|
|
37801
37802
|
Y.createElement(e, { ...t, ref: n, "data-node-view-content": "", style: {
|
|
@@ -37804,7 +37805,7 @@ const g$ = () => ln(Tb), y$ = (t) => {
|
|
|
37804
37805
|
} })
|
|
37805
37806
|
);
|
|
37806
37807
|
}, vc = Y.forwardRef((t, e) => {
|
|
37807
|
-
const { onDragStart: n } =
|
|
37808
|
+
const { onDragStart: n } = A8(), i = t.as || "div";
|
|
37808
37809
|
return (
|
|
37809
37810
|
// @ts-ignore
|
|
37810
37811
|
Y.createElement(i, { ...t, ref: e, "data-node-view-wrapper": "", onDragStart: n, style: {
|
|
@@ -37914,7 +37915,7 @@ class x$ extends yF {
|
|
|
37914
37915
|
}
|
|
37915
37916
|
const r = { onDragStart: this.onDragStart.bind(this), nodeViewContentRef: (f) => {
|
|
37916
37917
|
f && this.contentDOMElement && f.firstChild !== this.contentDOMElement && (f.hasAttribute("data-node-view-wrapper") && f.removeAttribute("data-node-view-wrapper"), f.appendChild(this.contentDOMElement));
|
|
37917
|
-
} }, s = this.component, o = Ma((f) => Y.createElement(
|
|
37918
|
+
} }, s = this.component, o = Ma((f) => Y.createElement(O8.Provider, { value: r }, Ew(s, f)));
|
|
37918
37919
|
o.displayName = "ReactNodeView";
|
|
37919
37920
|
let a = this.node.isInline ? "span" : "div";
|
|
37920
37921
|
this.options.as && (a = this.options.as);
|
|
@@ -38183,7 +38184,7 @@ const w$ = ({ editor: t, disabled: e, labels: n }) => {
|
|
|
38183
38184
|
t && "hidden"
|
|
38184
38185
|
)
|
|
38185
38186
|
}
|
|
38186
|
-
),
|
|
38187
|
+
), I8 = j(
|
|
38187
38188
|
({
|
|
38188
38189
|
onClick: t = () => {
|
|
38189
38190
|
},
|
|
@@ -38239,7 +38240,7 @@ const w$ = ({ editor: t, disabled: e, labels: n }) => {
|
|
|
38239
38240
|
) : f;
|
|
38240
38241
|
}
|
|
38241
38242
|
);
|
|
38242
|
-
|
|
38243
|
+
I8.displayName = "ToolbarButton";
|
|
38243
38244
|
const O3 = ({
|
|
38244
38245
|
items: t,
|
|
38245
38246
|
disabled: e = !1,
|
|
@@ -38284,7 +38285,7 @@ const O3 = ({
|
|
|
38284
38285
|
i && "dark"
|
|
38285
38286
|
),
|
|
38286
38287
|
children: t.map((f, c) => /* @__PURE__ */ d(
|
|
38287
|
-
|
|
38288
|
+
I8,
|
|
38288
38289
|
{
|
|
38289
38290
|
onClick: () => a(f.onClick),
|
|
38290
38291
|
active: f.isActive,
|
|
@@ -39184,7 +39185,7 @@ function lz() {
|
|
|
39184
39185
|
}
|
|
39185
39186
|
});
|
|
39186
39187
|
}
|
|
39187
|
-
const dz =
|
|
39188
|
+
const dz = Pb({
|
|
39188
39189
|
ArrowLeft: ul("horiz", -1),
|
|
39189
39190
|
ArrowRight: ul("horiz", 1),
|
|
39190
39191
|
ArrowUp: ul("vert", -1),
|
|
@@ -39426,7 +39427,7 @@ const Od = (t, e) => e.view.domAtPos(t).node.offsetParent !== null, hz = (t, e,
|
|
|
39426
39427
|
key: new tt("detailsSelection"),
|
|
39427
39428
|
appendTransaction: (t, e, n) => {
|
|
39428
39429
|
const { editor: i, type: r } = this;
|
|
39429
|
-
if (!t.some((y) => y.selectionSet) || !e.selection.empty || !n.selection.empty || !
|
|
39430
|
+
if (!t.some((y) => y.selectionSet) || !e.selection.empty || !n.selection.empty || !o8(n, r.name))
|
|
39430
39431
|
return;
|
|
39431
39432
|
const { $from: a } = n.selection;
|
|
39432
39433
|
if (Od(a.pos, i))
|
|
@@ -39443,7 +39444,7 @@ const Od = (t, e) => e.view.domAtPos(t).node.offsetParent !== null, hz = (t, e,
|
|
|
39443
39444
|
})
|
|
39444
39445
|
];
|
|
39445
39446
|
}
|
|
39446
|
-
}),
|
|
39447
|
+
}), D8 = pz.configure({
|
|
39447
39448
|
persist: !0,
|
|
39448
39449
|
HTMLAttributes: {
|
|
39449
39450
|
class: "rich-text-details"
|
|
@@ -39524,7 +39525,7 @@ const Od = (t, e) => e.view.domAtPos(t).node.offsetParent !== null, hz = (t, e,
|
|
|
39524
39525
|
}
|
|
39525
39526
|
};
|
|
39526
39527
|
}
|
|
39527
|
-
}),
|
|
39528
|
+
}), R8 = mz, gz = yt.create({
|
|
39528
39529
|
name: "detailsSummary",
|
|
39529
39530
|
content: "text*",
|
|
39530
39531
|
defining: !0,
|
|
@@ -39549,16 +39550,16 @@ const Od = (t, e) => e.view.domAtPos(t).node.offsetParent !== null, hz = (t, e,
|
|
|
39549
39550
|
0
|
|
39550
39551
|
];
|
|
39551
39552
|
}
|
|
39552
|
-
}),
|
|
39553
|
+
}), P8 = gz, yz = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster6d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", vz = "ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2", qs = (t, e) => {
|
|
39553
39554
|
for (const n in e)
|
|
39554
39555
|
t[n] = e[n];
|
|
39555
39556
|
return t;
|
|
39556
|
-
}, Q1 = "numeric", eh = "ascii", th = "alpha", $o = "asciinumeric", Eo = "alphanumeric", nh = "domain",
|
|
39557
|
+
}, Q1 = "numeric", eh = "ascii", th = "alpha", $o = "asciinumeric", Eo = "alphanumeric", nh = "domain", F8 = "emoji", bz = "scheme", kz = "slashscheme", Lu = "whitespace";
|
|
39557
39558
|
function xz(t, e) {
|
|
39558
39559
|
return t in e || (e[t] = []), e[t];
|
|
39559
39560
|
}
|
|
39560
39561
|
function Or(t, e, n) {
|
|
39561
|
-
e[Q1] && (e[$o] = !0, e[Eo] = !0), e[eh] && (e[$o] = !0, e[th] = !0), e[$o] && (e[Eo] = !0), e[th] && (e[Eo] = !0), e[Eo] && (e[nh] = !0), e[
|
|
39562
|
+
e[Q1] && (e[$o] = !0, e[Eo] = !0), e[eh] && (e[$o] = !0, e[th] = !0), e[$o] && (e[Eo] = !0), e[th] && (e[Eo] = !0), e[Eo] && (e[nh] = !0), e[F8] && (e[nh] = !0);
|
|
39562
39563
|
for (const i in e) {
|
|
39563
39564
|
const r = xz(i, n);
|
|
39564
39565
|
r.indexOf(t) < 0 && r.push(t);
|
|
@@ -39694,13 +39695,13 @@ Qt.prototype = {
|
|
|
39694
39695
|
return r.j[t] = o, o;
|
|
39695
39696
|
}
|
|
39696
39697
|
};
|
|
39697
|
-
const Ie = (t, e, n, i, r) => t.ta(e, n, i, r), dt = (t, e, n, i, r) => t.tr(e, n, i, r), I3 = (t, e, n, i, r) => t.ts(e, n, i, r), Q = (t, e, n, i, r) => t.tt(e, n, i, r), gi = "WORD", ih = "UWORD",
|
|
39698
|
-
var
|
|
39698
|
+
const Ie = (t, e, n, i, r) => t.ta(e, n, i, r), dt = (t, e, n, i, r) => t.tr(e, n, i, r), I3 = (t, e, n, i, r) => t.ts(e, n, i, r), Q = (t, e, n, i, r) => t.tt(e, n, i, r), gi = "WORD", ih = "UWORD", B8 = "ASCIINUMERICAL", $8 = "ALPHANUMERICAL", ca = "LOCALHOST", rh = "TLD", sh = "UTLD", Pl = "SCHEME", gs = "SLASH_SCHEME", bm = "NUM", oh = "WS", km = "NL", zo = "OPENBRACE", jo = "CLOSEBRACE", Ad = "OPENBRACKET", Id = "CLOSEBRACKET", Dd = "OPENPAREN", Rd = "CLOSEPAREN", Pd = "OPENANGLEBRACKET", Fd = "CLOSEANGLEBRACKET", Bd = "FULLWIDTHLEFTPAREN", $d = "FULLWIDTHRIGHTPAREN", zd = "LEFTCORNERBRACKET", jd = "RIGHTCORNERBRACKET", Vd = "LEFTWHITECORNERBRACKET", Hd = "RIGHTWHITECORNERBRACKET", Wd = "FULLWIDTHLESSTHAN", qd = "FULLWIDTHGREATERTHAN", Ud = "AMPERSAND", xm = "APOSTROPHE", Kd = "ASTERISK", Vi = "AT", Gd = "BACKSLASH", Jd = "BACKTICK", Yd = "CARET", Ui = "COLON", wm = "COMMA", Zd = "DOLLAR", Zn = "DOT", Xd = "EQUALS", _m = "EXCLAMATION", kn = "HYPHEN", Vo = "PERCENT", Qd = "PIPE", ef = "PLUS", tf = "POUND", Ho = "QUERY", Cm = "QUOTE", z8 = "FULLWIDTHMIDDLEDOT", Sm = "SEMI", Xn = "SLASH", Wo = "TILDE", nf = "UNDERSCORE", j8 = "EMOJI", rf = "SYM";
|
|
39699
|
+
var V8 = /* @__PURE__ */ Object.freeze({
|
|
39699
39700
|
__proto__: null,
|
|
39700
39701
|
WORD: gi,
|
|
39701
39702
|
UWORD: ih,
|
|
39702
|
-
ASCIINUMERICAL:
|
|
39703
|
-
ALPHANUMERICAL: $
|
|
39703
|
+
ASCIINUMERICAL: B8,
|
|
39704
|
+
ALPHANUMERICAL: $8,
|
|
39704
39705
|
LOCALHOST: ca,
|
|
39705
39706
|
TLD: rh,
|
|
39706
39707
|
UTLD: sh,
|
|
@@ -39745,12 +39746,12 @@ var Vb = /* @__PURE__ */ Object.freeze({
|
|
|
39745
39746
|
POUND: tf,
|
|
39746
39747
|
QUERY: Ho,
|
|
39747
39748
|
QUOTE: Cm,
|
|
39748
|
-
FULLWIDTHMIDDLEDOT:
|
|
39749
|
+
FULLWIDTHMIDDLEDOT: z8,
|
|
39749
39750
|
SEMI: Sm,
|
|
39750
39751
|
SLASH: Xn,
|
|
39751
39752
|
TILDE: Wo,
|
|
39752
39753
|
UNDERSCORE: nf,
|
|
39753
|
-
EMOJI:
|
|
39754
|
+
EMOJI: j8,
|
|
39754
39755
|
SYM: rf
|
|
39755
39756
|
});
|
|
39756
39757
|
const hi = /[a-z]/, xo = new RegExp("\\p{L}", "u"), Eu = new RegExp("\\p{Emoji}", "u"), pi = /\d/, Mu = /\s/, D3 = "\r", Tu = `
|
|
@@ -39760,14 +39761,14 @@ function Sz(t = []) {
|
|
|
39760
39761
|
const e = {};
|
|
39761
39762
|
Qt.groups = e;
|
|
39762
39763
|
const n = new Qt();
|
|
39763
|
-
hl == null && (hl = R3(yz)), pl == null && (pl = R3(vz)), Q(n, "'", xm), Q(n, "{", zo), Q(n, "}", jo), Q(n, "[", Ad), Q(n, "]", Id), Q(n, "(", Dd), Q(n, ")", Rd), Q(n, "<", Pd), Q(n, ">", Fd), Q(n, "(", Bd), Q(n, ")", $d), Q(n, "「", zd), Q(n, "」", jd), Q(n, "『", Vd), Q(n, "』", Hd), Q(n, "<", Wd), Q(n, ">", qd), Q(n, "&", Ud), Q(n, "*", Kd), Q(n, "@", Vi), Q(n, "`", Jd), Q(n, "^", Yd), Q(n, ":", Ui), Q(n, ",", wm), Q(n, "$", Zd), Q(n, ".", Zn), Q(n, "=", Xd), Q(n, "!", _m), Q(n, "-", kn), Q(n, "%", Vo), Q(n, "|", Qd), Q(n, "+", ef), Q(n, "#", tf), Q(n, "?", Ho), Q(n, '"', Cm), Q(n, "/", Xn), Q(n, ";", Sm), Q(n, "~", Wo), Q(n, "_", nf), Q(n, "\\", Gd), Q(n, "・",
|
|
39764
|
+
hl == null && (hl = R3(yz)), pl == null && (pl = R3(vz)), Q(n, "'", xm), Q(n, "{", zo), Q(n, "}", jo), Q(n, "[", Ad), Q(n, "]", Id), Q(n, "(", Dd), Q(n, ")", Rd), Q(n, "<", Pd), Q(n, ">", Fd), Q(n, "(", Bd), Q(n, ")", $d), Q(n, "「", zd), Q(n, "」", jd), Q(n, "『", Vd), Q(n, "』", Hd), Q(n, "<", Wd), Q(n, ">", qd), Q(n, "&", Ud), Q(n, "*", Kd), Q(n, "@", Vi), Q(n, "`", Jd), Q(n, "^", Yd), Q(n, ":", Ui), Q(n, ",", wm), Q(n, "$", Zd), Q(n, ".", Zn), Q(n, "=", Xd), Q(n, "!", _m), Q(n, "-", kn), Q(n, "%", Vo), Q(n, "|", Qd), Q(n, "+", ef), Q(n, "#", tf), Q(n, "?", Ho), Q(n, '"', Cm), Q(n, "/", Xn), Q(n, ";", Sm), Q(n, "~", Wo), Q(n, "_", nf), Q(n, "\\", Gd), Q(n, "・", z8);
|
|
39764
39765
|
const i = dt(n, pi, bm, {
|
|
39765
39766
|
[Q1]: !0
|
|
39766
39767
|
});
|
|
39767
39768
|
dt(i, pi, i);
|
|
39768
|
-
const r = dt(i, hi,
|
|
39769
|
+
const r = dt(i, hi, B8, {
|
|
39769
39770
|
[$o]: !0
|
|
39770
|
-
}), s = dt(i, xo, $
|
|
39771
|
+
}), s = dt(i, xo, $8, {
|
|
39771
39772
|
[Eo]: !0
|
|
39772
39773
|
}), o = dt(n, hi, gi, {
|
|
39773
39774
|
[eh]: !0
|
|
@@ -39785,8 +39786,8 @@ function Sz(t = []) {
|
|
|
39785
39786
|
[Lu]: !0
|
|
39786
39787
|
});
|
|
39787
39788
|
Q(n, Ou, c), Q(f, Tu, l), Q(f, Ou, c), dt(f, Mu, c), Q(c, D3), Q(c, Tu), dt(c, Mu, c), Q(c, Ou, c);
|
|
39788
|
-
const u = dt(n, Eu,
|
|
39789
|
-
[
|
|
39789
|
+
const u = dt(n, Eu, j8, {
|
|
39790
|
+
[F8]: !0
|
|
39790
39791
|
});
|
|
39791
39792
|
Q(u, "#"), dt(u, Eu, u), Q(u, _z, u);
|
|
39792
39793
|
const h = Q(u, Cz);
|
|
@@ -39823,10 +39824,10 @@ function Sz(t = []) {
|
|
|
39823
39824
|
start: n,
|
|
39824
39825
|
tokens: qs({
|
|
39825
39826
|
groups: e
|
|
39826
|
-
},
|
|
39827
|
+
}, V8)
|
|
39827
39828
|
};
|
|
39828
39829
|
}
|
|
39829
|
-
function
|
|
39830
|
+
function H8(t, e) {
|
|
39830
39831
|
const n = Nz(e.replace(/[A-Z]/g, (a) => a.toLowerCase())), i = n.length, r = [];
|
|
39831
39832
|
let s = 0, o = 0;
|
|
39832
39833
|
for (; o < i; ) {
|
|
@@ -39970,10 +39971,10 @@ Nm.prototype = {
|
|
|
39970
39971
|
function P3(t) {
|
|
39971
39972
|
return t;
|
|
39972
39973
|
}
|
|
39973
|
-
function
|
|
39974
|
+
function W8(t, e) {
|
|
39974
39975
|
this.t = "token", this.v = t, this.tk = e;
|
|
39975
39976
|
}
|
|
39976
|
-
|
|
39977
|
+
W8.prototype = {
|
|
39977
39978
|
isLink: !1,
|
|
39978
39979
|
/**
|
|
39979
39980
|
* Return the string this token represents.
|
|
@@ -40078,7 +40079,7 @@ Wb.prototype = {
|
|
|
40078
40079
|
}
|
|
40079
40080
|
};
|
|
40080
40081
|
function kc(t, e) {
|
|
40081
|
-
class n extends
|
|
40082
|
+
class n extends W8 {
|
|
40082
40083
|
constructor(r, s) {
|
|
40083
40084
|
super(r, s), this.t = t;
|
|
40084
40085
|
}
|
|
@@ -40172,7 +40173,7 @@ function Ez({
|
|
|
40172
40173
|
}
|
|
40173
40174
|
return Q(r, ca, x), Q(r, km, Lz), {
|
|
40174
40175
|
start: r,
|
|
40175
|
-
tokens:
|
|
40176
|
+
tokens: V8
|
|
40176
40177
|
};
|
|
40177
40178
|
}
|
|
40178
40179
|
function Mz(t, e, n) {
|
|
@@ -40232,10 +40233,10 @@ function Iz() {
|
|
|
40232
40233
|
return rt.initialized = !0, rt;
|
|
40233
40234
|
}
|
|
40234
40235
|
function Lm(t) {
|
|
40235
|
-
return rt.initialized || Iz(), Mz(rt.parser.start, t,
|
|
40236
|
+
return rt.initialized || Iz(), Mz(rt.parser.start, t, H8(rt.scanner.start, t));
|
|
40236
40237
|
}
|
|
40237
|
-
Lm.scan =
|
|
40238
|
-
function
|
|
40238
|
+
Lm.scan = H8;
|
|
40239
|
+
function q8(t, e = null, n = null) {
|
|
40239
40240
|
if (e && typeof e == "object") {
|
|
40240
40241
|
if (n)
|
|
40241
40242
|
throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);
|
|
@@ -40301,7 +40302,7 @@ function Pz(t) {
|
|
|
40301
40302
|
a.push(o), o = o.parentNode;
|
|
40302
40303
|
if (!a.find((h) => h.nodeName === "A"))
|
|
40303
40304
|
return !1;
|
|
40304
|
-
const l =
|
|
40305
|
+
const l = s8(e.state, t.type.name), f = i.target, c = (r = f == null ? void 0 : f.href) !== null && r !== void 0 ? r : l.href, u = (s = f == null ? void 0 : f.target) !== null && s !== void 0 ? s : l.target;
|
|
40305
40306
|
return f && c ? (window.open(c, u), !0) : !1;
|
|
40306
40307
|
}
|
|
40307
40308
|
}
|
|
@@ -40319,7 +40320,7 @@ function Fz(t) {
|
|
|
40319
40320
|
i.content.forEach((f) => {
|
|
40320
40321
|
a += f.textContent;
|
|
40321
40322
|
});
|
|
40322
|
-
const l =
|
|
40323
|
+
const l = q8(a, { defaultProtocol: t.defaultProtocol }).find((f) => f.isLink && f.value === a);
|
|
40323
40324
|
return !a || !l ? !1 : t.editor.commands.setMark(t.type, {
|
|
40324
40325
|
href: l.href
|
|
40325
40326
|
});
|
|
@@ -40459,7 +40460,7 @@ const $z = On.create({
|
|
|
40459
40460
|
find: (t) => {
|
|
40460
40461
|
const e = [];
|
|
40461
40462
|
if (t) {
|
|
40462
|
-
const { protocols: n, defaultProtocol: i } = this.options, r =
|
|
40463
|
+
const { protocols: n, defaultProtocol: i } = this.options, r = q8(t).filter((s) => s.isLink && this.options.isAllowedUri(s.value, {
|
|
40463
40464
|
defaultValidate: (o) => !!_r(o, n),
|
|
40464
40465
|
protocols: n,
|
|
40465
40466
|
defaultProtocol: i
|
|
@@ -41079,9 +41080,9 @@ Ct.prototype.map = function(e, n, i) {
|
|
|
41079
41080
|
}, n, i), r;
|
|
41080
41081
|
};
|
|
41081
41082
|
Ct.from = function(e) {
|
|
41082
|
-
return e instanceof Ct ? e : e && e.length ? new
|
|
41083
|
+
return e instanceof Ct ? e : e && e.length ? new U8(e) : Ct.empty;
|
|
41083
41084
|
};
|
|
41084
|
-
var
|
|
41085
|
+
var U8 = /* @__PURE__ */ function(t) {
|
|
41085
41086
|
function e(i) {
|
|
41086
41087
|
t.call(this), this.values = i;
|
|
41087
41088
|
}
|
|
@@ -41113,7 +41114,7 @@ var Ub = /* @__PURE__ */ function(t) {
|
|
|
41113
41114
|
return 0;
|
|
41114
41115
|
}, Object.defineProperties(e.prototype, n), e;
|
|
41115
41116
|
}(Ct);
|
|
41116
|
-
Ct.empty = new
|
|
41117
|
+
Ct.empty = new U8([]);
|
|
41117
41118
|
var lj = /* @__PURE__ */ function(t) {
|
|
41118
41119
|
function e(n, i) {
|
|
41119
41120
|
t.call(this), this.left = n, this.right = i, this.length = n.length + i.length, this.depth = Math.max(n.depth, i.depth) + 1;
|
|
@@ -41268,7 +41269,7 @@ function fj(t, e) {
|
|
|
41268
41269
|
return n = r, !1;
|
|
41269
41270
|
}), t.slice(n);
|
|
41270
41271
|
}
|
|
41271
|
-
let Bi = class
|
|
41272
|
+
let Bi = class K8 {
|
|
41272
41273
|
constructor(e, n, i, r) {
|
|
41273
41274
|
this.map = e, this.step = n, this.selection = i, this.mirrorOffset = r;
|
|
41274
41275
|
}
|
|
@@ -41276,7 +41277,7 @@ let Bi = class Kb {
|
|
|
41276
41277
|
if (this.step && e.step && !e.selection) {
|
|
41277
41278
|
let n = e.step.merge(this.step);
|
|
41278
41279
|
if (n)
|
|
41279
|
-
return new
|
|
41280
|
+
return new K8(n.getMap().invert(), n, this.selection);
|
|
41280
41281
|
}
|
|
41281
41282
|
}
|
|
41282
41283
|
};
|
|
@@ -41367,14 +41368,14 @@ function gj(t = {}) {
|
|
|
41367
41368
|
props: {
|
|
41368
41369
|
handleDOMEvents: {
|
|
41369
41370
|
beforeinput(e, n) {
|
|
41370
|
-
let i = n.inputType, r = i == "historyUndo" ?
|
|
41371
|
+
let i = n.inputType, r = i == "historyUndo" ? J8 : i == "historyRedo" ? Y8 : null;
|
|
41371
41372
|
return r ? (n.preventDefault(), r(e.state, e.dispatch)) : !1;
|
|
41372
41373
|
}
|
|
41373
41374
|
}
|
|
41374
41375
|
}
|
|
41375
41376
|
});
|
|
41376
41377
|
}
|
|
41377
|
-
function
|
|
41378
|
+
function G8(t, e) {
|
|
41378
41379
|
return (n, i) => {
|
|
41379
41380
|
let r = Br.getState(n);
|
|
41380
41381
|
if (!r || (t ? r.undone : r.done).eventCount == 0)
|
|
@@ -41386,7 +41387,7 @@ function Gb(t, e) {
|
|
|
41386
41387
|
return !0;
|
|
41387
41388
|
};
|
|
41388
41389
|
}
|
|
41389
|
-
const
|
|
41390
|
+
const J8 = G8(!1, !0), Y8 = G8(!0, !0), yj = et.create({
|
|
41390
41391
|
name: "history",
|
|
41391
41392
|
addOptions() {
|
|
41392
41393
|
return {
|
|
@@ -41396,8 +41397,8 @@ const Jb = Gb(!1, !0), Yb = Gb(!0, !0), yj = et.create({
|
|
|
41396
41397
|
},
|
|
41397
41398
|
addCommands() {
|
|
41398
41399
|
return {
|
|
41399
|
-
undo: () => ({ state: t, dispatch: e }) =>
|
|
41400
|
-
redo: () => ({ state: t, dispatch: e }) =>
|
|
41400
|
+
undo: () => ({ state: t, dispatch: e }) => J8(t, e),
|
|
41401
|
+
redo: () => ({ state: t, dispatch: e }) => Y8(t, e)
|
|
41401
41402
|
};
|
|
41402
41403
|
},
|
|
41403
41404
|
addProseMirrorPlugins() {
|
|
@@ -41438,7 +41439,7 @@ const Jb = Gb(!1, !0), Yb = Gb(!0, !0), yj = et.create({
|
|
|
41438
41439
|
to: r.pos
|
|
41439
41440
|
}, {
|
|
41440
41441
|
type: this.name
|
|
41441
|
-
}) :
|
|
41442
|
+
}) : a8(n) ? s.insertContentAt(r.pos, {
|
|
41442
41443
|
type: this.name
|
|
41443
41444
|
}) : s.insertContent({ type: this.name }), s.command(({ tr: o, dispatch: a }) => {
|
|
41444
41445
|
var l;
|
|
@@ -41914,7 +41915,7 @@ function Bj(t) {
|
|
|
41914
41915
|
} : null;
|
|
41915
41916
|
}
|
|
41916
41917
|
const $j = new tt("suggestion");
|
|
41917
|
-
function
|
|
41918
|
+
function Z8({ pluginKey: t = $j, editor: e, char: n = "@", allowSpaces: i = !1, allowToIncludeChar: r = !1, allowedPrefixes: s = [" "], startOfLine: o = !1, decorationTag: a = "span", decorationClass: l = "suggestion", command: f = () => null, items: c = () => [], render: u = () => ({}), allow: h = () => !0, findSuggestionMatch: p = Bj }) {
|
|
41918
41919
|
let m;
|
|
41919
41920
|
const g = u == null ? void 0 : u(), y = new Ge({
|
|
41920
41921
|
key: t,
|
|
@@ -42133,7 +42134,7 @@ const zj = new tt("mention"), jj = yt.create({
|
|
|
42133
42134
|
},
|
|
42134
42135
|
addProseMirrorPlugins() {
|
|
42135
42136
|
return [
|
|
42136
|
-
|
|
42137
|
+
Z8({
|
|
42137
42138
|
editor: this.editor,
|
|
42138
42139
|
...this.options.suggestion
|
|
42139
42140
|
})
|
|
@@ -42167,7 +42168,7 @@ function Vj() {
|
|
|
42167
42168
|
}
|
|
42168
42169
|
return cs;
|
|
42169
42170
|
}
|
|
42170
|
-
var
|
|
42171
|
+
var X8 = Vj();
|
|
42171
42172
|
const Hj = ({ item: t, selected: e }) => /* @__PURE__ */ b(
|
|
42172
42173
|
"div",
|
|
42173
42174
|
{
|
|
@@ -42188,7 +42189,7 @@ const Hj = ({ item: t, selected: e }) => /* @__PURE__ */ b(
|
|
|
42188
42189
|
/* @__PURE__ */ d("p", { className: "text-neutral-100 text-md truncate text-ellipsis font-medium", children: t.label })
|
|
42189
42190
|
]
|
|
42190
42191
|
}
|
|
42191
|
-
),
|
|
42192
|
+
), Q8 = j(
|
|
42192
42193
|
({ items: t, command: e, component: n = Hj }, i) => {
|
|
42193
42194
|
const [r, s] = $(0), o = Se(
|
|
42194
42195
|
(c) => {
|
|
@@ -42230,7 +42231,7 @@ const Hj = ({ item: t, selected: e }) => /* @__PURE__ */ b(
|
|
|
42230
42231
|
)) });
|
|
42231
42232
|
}
|
|
42232
42233
|
);
|
|
42233
|
-
|
|
42234
|
+
Q8.displayName = "MentionList";
|
|
42234
42235
|
const G3 = ({
|
|
42235
42236
|
content: t,
|
|
42236
42237
|
anchorRect: e,
|
|
@@ -42356,7 +42357,7 @@ function Wj(t, e, n, i) {
|
|
|
42356
42357
|
}
|
|
42357
42358
|
]).run();
|
|
42358
42359
|
};
|
|
42359
|
-
r = new fm(
|
|
42360
|
+
r = new fm(Q8, {
|
|
42360
42361
|
props: { items: l.items, command: f },
|
|
42361
42362
|
editor: l.editor
|
|
42362
42363
|
});
|
|
@@ -42367,7 +42368,7 @@ function Wj(t, e, n, i) {
|
|
|
42367
42368
|
}
|
|
42368
42369
|
return a();
|
|
42369
42370
|
})();
|
|
42370
|
-
o = document.createElement("div"), document.body.appendChild(o), s =
|
|
42371
|
+
o = document.createElement("div"), document.body.appendChild(o), s = X8.createRoot(o), s.render(
|
|
42371
42372
|
/* @__PURE__ */ d(
|
|
42372
42373
|
G3,
|
|
42373
42374
|
{
|
|
@@ -42928,9 +42929,9 @@ const qj = jj.extend({
|
|
|
42928
42929
|
hm,
|
|
42929
42930
|
Om,
|
|
42930
42931
|
Em,
|
|
42931
|
-
|
|
42932
|
-
|
|
42933
|
-
|
|
42932
|
+
D8,
|
|
42933
|
+
P8,
|
|
42934
|
+
R8,
|
|
42934
42935
|
n7.configure({
|
|
42935
42936
|
currentConfig: o
|
|
42936
42937
|
}),
|
|
@@ -43951,7 +43952,7 @@ const r7 = (t, e, n) => et.create({
|
|
|
43951
43952
|
blocks: "Blocks"
|
|
43952
43953
|
};
|
|
43953
43954
|
return [
|
|
43954
|
-
|
|
43955
|
+
Z8({
|
|
43955
43956
|
editor: this.editor,
|
|
43956
43957
|
...this.options.suggestion,
|
|
43957
43958
|
items: ({ query: r }) => {
|
|
@@ -44050,7 +44051,7 @@ const r7 = (t, e, n) => et.create({
|
|
|
44050
44051
|
}
|
|
44051
44052
|
return a();
|
|
44052
44053
|
})();
|
|
44053
|
-
o = document.createElement("div"), document.body.appendChild(o), s =
|
|
44054
|
+
o = document.createElement("div"), document.body.appendChild(o), s = X8.createRoot(o), s.render(
|
|
44054
44055
|
/* @__PURE__ */ d(
|
|
44055
44056
|
l,
|
|
44056
44057
|
{
|
|
@@ -51011,7 +51012,7 @@ function Tc(t, e, n) {
|
|
|
51011
51012
|
const f = o + l, c = f + a.nodeSize;
|
|
51012
51013
|
if (f < s.start || f >= s.end)
|
|
51013
51014
|
return;
|
|
51014
|
-
const u = new
|
|
51015
|
+
const u = new eb(r.resolve(f), r.resolve(c));
|
|
51015
51016
|
i.push(u);
|
|
51016
51017
|
}), i;
|
|
51017
51018
|
}
|
|
@@ -51438,9 +51439,9 @@ const Fq = (t) => {
|
|
|
51438
51439
|
hm,
|
|
51439
51440
|
Om,
|
|
51440
51441
|
Em,
|
|
51441
|
-
|
|
51442
|
-
|
|
51443
|
-
|
|
51442
|
+
D8,
|
|
51443
|
+
P8,
|
|
51444
|
+
R8,
|
|
51444
51445
|
n7.configure({
|
|
51445
51446
|
currentConfig: f
|
|
51446
51447
|
}),
|