@fileverse-dev/ddoc 2.4.16-patch-1 → 2.4.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
|
|
1
|
-
import { B as p, g as m, s as w, d as k, i as b, l as L, a as O, c as E, b as x, e as R, H as y, f as M } from "./index-
|
1
|
+
import { B as p, g as m, s as w, d as k, i as b, l as L, a as O, c as E, b as x, e as R, H as y, f as M } from "./index-BSR9Dxll.mjs";
|
2
2
|
class S extends p {
|
3
3
|
constructor({ callbackSelector: r, cause: a, data: n, extraData: i, sender: f, urls: t }) {
|
4
4
|
var o;
|
@@ -2,7 +2,7 @@ var p7e = Object.defineProperty;
|
|
2
2
|
var g7e = (e, t, n) => t in e ? p7e(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
3
3
|
var ct = (e, t, n) => g7e(e, typeof t != "symbol" ? t + "" : t, n);
|
4
4
|
import * as $ from "react";
|
5
|
-
import Ne, { createContext as qn, useContext as At, useRef as rt, useState as Re, useDebugValue as Y_, useEffect as He, forwardRef as Rn, createElement as Qe, memo as Kd, useCallback as We, useLayoutEffect as Rs, useMemo as
|
5
|
+
import Ne, { createContext as qn, useContext as At, useRef as rt, useState as Re, useDebugValue as Y_, useEffect as He, forwardRef as Rn, createElement as Qe, memo as Kd, useCallback as We, useLayoutEffect as Rs, useMemo as Nt, useId as Dg, Children as soe, isValidElement as loe, useInsertionEffect as Jw, createRef as x1, Fragment as Yd, Suspense as m7e, Component as X_, cloneElement as uoe, useImperativeHandle as coe } from "react";
|
6
6
|
import * as Nb from "react-dom";
|
7
7
|
import J_, { flushSync as y7e, createPortal as doe } from "react-dom";
|
8
8
|
var Jt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
@@ -12703,7 +12703,7 @@ function _T(e) {
|
|
12703
12703
|
}
|
12704
12704
|
});
|
12705
12705
|
}
|
12706
|
-
function
|
12706
|
+
function It(e) {
|
12707
12707
|
return new Sa({
|
12708
12708
|
find: e.find,
|
12709
12709
|
handler: ({ state: t, range: n, match: r }) => {
|
@@ -46899,7 +46899,7 @@ const ADt = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom:
|
|
46899
46899
|
if (!f)
|
46900
46900
|
return;
|
46901
46901
|
r && r();
|
46902
|
-
}, [s, r]), c =
|
46902
|
+
}, [s, r]), c = Nt(
|
46903
46903
|
() => ({
|
46904
46904
|
id: l,
|
46905
46905
|
initial: t,
|
@@ -46915,7 +46915,7 @@ const ADt = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom:
|
|
46915
46915
|
*/
|
46916
46916
|
i ? [Math.random(), u] : [n, u]
|
46917
46917
|
);
|
46918
|
-
return
|
46918
|
+
return Nt(() => {
|
46919
46919
|
s.forEach((d, f) => s.set(f, !1));
|
46920
46920
|
}, [n]), $.useEffect(() => {
|
46921
46921
|
!n && !s.size && r && r();
|
@@ -46943,7 +46943,7 @@ function DW(e) {
|
|
46943
46943
|
}), t;
|
46944
46944
|
}
|
46945
46945
|
const tB = typeof window < "u", Cse = tB ? Rs : He, TDt = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: o = !0, mode: i = "sync", propagate: a = !1 }) => {
|
46946
|
-
const [s, l] = Dse(a), u =
|
46946
|
+
const [s, l] = Dse(a), u = Nt(() => DW(e), [e]), c = a && !s ? [] : u.map(x5), d = rt(!0), f = rt(u), h = QI(() => /* @__PURE__ */ new Map()), [p, g] = Re(u), [m, y] = Re(u);
|
46947
46947
|
Cse(() => {
|
46948
46948
|
d.current = !1, f.current = u;
|
46949
46949
|
for (let x = 0; x < m.length; x++) {
|
@@ -47199,7 +47199,7 @@ function PDt(e, t) {
|
|
47199
47199
|
}
|
47200
47200
|
function zDt(e) {
|
47201
47201
|
const { initial: t, animate: n } = PDt(e, At(T7));
|
47202
|
-
return
|
47202
|
+
return Nt(() => ({ initial: t, animate: n }), [EW(t), EW(n)]);
|
47203
47203
|
}
|
47204
47204
|
function EW(e) {
|
47205
47205
|
return Array.isArray(e) ? e.join(" ") : e;
|
@@ -47742,7 +47742,7 @@ function qse(e, t, n) {
|
|
47742
47742
|
!ii(t[r]) && !Use(r, n) && (e[r] = t[r]);
|
47743
47743
|
}
|
47744
47744
|
function bCt({ transformTemplate: e }, t) {
|
47745
|
-
return
|
47745
|
+
return Nt(() => {
|
47746
47746
|
const n = hB();
|
47747
47747
|
return dB(n, t, e), Object.assign({}, n.vars, n.style);
|
47748
47748
|
}, [t]);
|
@@ -47756,7 +47756,7 @@ function xCt(e, t) {
|
|
47756
47756
|
return e.drag && e.dragListener !== !1 && (n.draggable = !1, r.userSelect = r.WebkitUserSelect = r.WebkitTouchCallout = "none", r.touchAction = e.drag === !0 ? "none" : `pan-${e.drag === "x" ? "y" : "x"}`), e.tabIndex === void 0 && (e.onTap || e.onTapStart || e.whileTap) && (n.tabIndex = 0), n.style = r, n;
|
47757
47757
|
}
|
47758
47758
|
function wCt(e, t, n, r) {
|
47759
|
-
const o =
|
47759
|
+
const o = Nt(() => {
|
47760
47760
|
const i = Ose();
|
47761
47761
|
return fB(i, t, pB(r), e.transformTemplate), {
|
47762
47762
|
...i.attrs,
|
@@ -47771,7 +47771,7 @@ function wCt(e, t, n, r) {
|
|
47771
47771
|
}
|
47772
47772
|
function kCt(e = !1) {
|
47773
47773
|
return (t, n, r, { latestValues: o }, i) => {
|
47774
|
-
const a = (sB(t) ? wCt : xCt)(n, o, i, t), s = ODt(n, typeof t == "string", e), l = t !== Yd ? { ...s, ...a, ref: r } : {}, { children: u } = n, c =
|
47774
|
+
const a = (sB(t) ? wCt : xCt)(n, o, i, t), s = ODt(n, typeof t == "string", e), l = t !== Yd ? { ...s, ...a, ref: r } : {}, { children: u } = n, c = Nt(() => ii(u) ? u.get() : u, [u]);
|
47775
47775
|
return Qe(t, {
|
47776
47776
|
...l,
|
47777
47777
|
children: c
|
@@ -57991,7 +57991,7 @@ function ENt({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
|
|
57991
57991
|
const ANt = () => () => {
|
57992
57992
|
};
|
57993
57993
|
function SNt() {
|
57994
|
-
const { direction: e, isOpen: t, shouldScaleBackground: n, setBackgroundColorOnScale: r, noBodyStyles: o } = Qb(), i = Ne.useRef(null), a =
|
57994
|
+
const { direction: e, isOpen: t, shouldScaleBackground: n, setBackgroundColorOnScale: r, noBodyStyles: o } = Qb(), i = Ne.useRef(null), a = Nt(() => document.body.style.backgroundColor, []);
|
57995
57995
|
function s() {
|
57996
57996
|
return (window.innerWidth - Tj) / window.innerWidth;
|
57997
57997
|
}
|
@@ -76773,7 +76773,7 @@ function FIt() {
|
|
76773
76773
|
}
|
76774
76774
|
function s0e() {
|
76775
76775
|
var e = rt({}), t = vIt();
|
76776
|
-
return
|
76776
|
+
return Nt(function() {
|
76777
76777
|
var n = parseFloat("" + t);
|
76778
76778
|
return !t || Number.isNaN(n) ? e.current : rk.reduce(function(r, o) {
|
76779
76779
|
return CIt(o, n) && (r[Mi(o)] = !0), r;
|
@@ -77258,7 +77258,7 @@ function tBt() {
|
|
77258
77258
|
nBt(), rBt(), oBt(), iBt(), aBt();
|
77259
77259
|
}
|
77260
77260
|
function nBt() {
|
77261
|
-
var e = o6(), t = x0e(), n = _It(), r = s0(), o = kh(), i = m0e(), a = qIt(), s = wh(), l =
|
77261
|
+
var e = o6(), t = x0e(), n = _It(), r = s0(), o = kh(), i = m0e(), a = qIt(), s = wh(), l = Nt(function() {
|
77262
77262
|
return function(u) {
|
77263
77263
|
var c = u.key;
|
77264
77264
|
switch (a(), c) {
|
@@ -77281,7 +77281,7 @@ function nBt() {
|
|
77281
77281
|
}, [e, r, n, l]);
|
77282
77282
|
}
|
77283
77283
|
function rBt() {
|
77284
|
-
var e = WIt(), t = o6(), n = Us(), r = s0(), o = r6(), i = o[1], a = F0e(), s = kO(), l =
|
77284
|
+
var e = WIt(), t = o6(), n = Us(), r = s0(), o = r6(), i = o[1], a = F0e(), s = kO(), l = Nt(function() {
|
77285
77285
|
return function(u) {
|
77286
77286
|
var c = u.key;
|
77287
77287
|
switch (c) {
|
@@ -77308,7 +77308,7 @@ function rBt() {
|
|
77308
77308
|
}, [t, r, l]);
|
77309
77309
|
}
|
77310
77310
|
function oBt() {
|
77311
|
-
var e = vO(), t = kh(), n = s0(), r = F0e(), o = r6(), i = o[0], a = o[1], s = k0e(), l = kO(), u = FO(), c =
|
77311
|
+
var e = vO(), t = kh(), n = s0(), r = F0e(), o = r6(), i = o[0], a = o[1], s = k0e(), l = kO(), u = FO(), c = Nt(function() {
|
77312
77312
|
return (
|
77313
77313
|
// eslint-disable-next-line complexity
|
77314
77314
|
function(d) {
|
@@ -77360,7 +77360,7 @@ function oBt() {
|
|
77360
77360
|
}, [e, n, i, c]);
|
77361
77361
|
}
|
77362
77362
|
function iBt() {
|
77363
|
-
var e = kh(), t = xO(), n = Us(), r = FO(), o =
|
77363
|
+
var e = kh(), t = xO(), n = Us(), r = FO(), o = Nt(function() {
|
77364
77364
|
return function(i) {
|
77365
77365
|
var a = i.key;
|
77366
77366
|
switch (a) {
|
@@ -77391,7 +77391,7 @@ function iBt() {
|
|
77391
77391
|
}, [t, n, o]);
|
77392
77392
|
}
|
77393
77393
|
function aBt() {
|
77394
|
-
var e = Us(), t = sBt(), n = w0e(), r = m0e(), o = wh(), i = FO(), a =
|
77394
|
+
var e = Us(), t = sBt(), n = w0e(), r = m0e(), o = wh(), i = FO(), a = Nt(function() {
|
77395
77395
|
return (
|
77396
77396
|
// eslint-disable-next-line complexity
|
77397
77397
|
function(s) {
|
@@ -78349,7 +78349,7 @@ function qBt() {
|
|
78349
78349
|
}, []), t || ZC;
|
78350
78350
|
}
|
78351
78351
|
function VBt(e) {
|
78352
|
-
var t = e.categoryConfig, n = u0e(), r = n[0], o = qBt(), i = pIt(), a = xh(), s =
|
78352
|
+
var t = e.categoryConfig, n = u0e(), r = n[0], o = qBt(), i = pIt(), a = xh(), s = Nt(
|
78353
78353
|
function() {
|
78354
78354
|
var u;
|
78355
78355
|
return (u = U0e(i)) != null ? u : [];
|
@@ -89868,7 +89868,7 @@ async function Sk(e, t) {
|
|
89868
89868
|
});
|
89869
89869
|
return V === "0x" ? { data: void 0 } : { data: V };
|
89870
89870
|
} catch (B) {
|
89871
|
-
const L = OWt(B), { offchainLookup: j, offchainLookupSignature: N } = await import("./ccip-
|
89871
|
+
const L = OWt(B), { offchainLookup: j, offchainLookupSignature: N } = await import("./ccip-B1BrsFcc.mjs");
|
89872
89872
|
if (e.ccipRead !== !1 && (L == null ? void 0 : L.slice(0, 10)) === N && b)
|
89873
89873
|
return { data: await j(e, { data: L, to: b }) };
|
89874
89874
|
throw S && (L == null ? void 0 : L.slice(0, 10)) === "0x101bb98d" ? new qVt({ factory: c }) : cpe(B, {
|
@@ -95132,7 +95132,7 @@ const h2e = qn(void 0), QZt = ({
|
|
95132
95132
|
}
|
95133
95133
|
},
|
95134
95134
|
[Z, se, d]
|
95135
|
-
), I =
|
95135
|
+
), I = Nt(
|
95136
95136
|
() => n.find((Se) => Se.id === a),
|
95137
95137
|
[n, a]
|
95138
95138
|
);
|
@@ -95297,12 +95297,12 @@ const h2e = qn(void 0), QZt = ({
|
|
95297
95297
|
Se.currentTarget.style.height = `${qe}px`;
|
95298
95298
|
},
|
95299
95299
|
[]
|
95300
|
-
), ke =
|
95300
|
+
), ke = Nt(
|
95301
95301
|
() => n.filter(
|
95302
95302
|
(Se) => !Se.resolved && Se.selectedContent && Se.selectedContent.length > 0 && !Se.deleted
|
95303
95303
|
),
|
95304
95304
|
[n]
|
95305
|
-
), Ae =
|
95305
|
+
), Ae = Nt(
|
95306
95306
|
() => ke.findIndex((Se) => Se.id === a),
|
95307
95307
|
[ke, a]
|
95308
95308
|
), Le = We(() => {
|
@@ -95327,7 +95327,7 @@ const h2e = qn(void 0), QZt = ({
|
|
95327
95327
|
t.commands.setTextSelection({ from: Ue, to: Je }), he(Pe.id || "");
|
95328
95328
|
}
|
95329
95329
|
}
|
95330
|
-
}, [Ae, ke, t, he]), Oe =
|
95330
|
+
}, [Ae, ke, t, he]), Oe = Nt(
|
95331
95331
|
() => ({
|
95332
95332
|
comments: n,
|
95333
95333
|
showResolved: D,
|
@@ -105802,7 +105802,7 @@ const Pen = {
|
|
105802
105802
|
isPresentationMode: n,
|
105803
105803
|
isCollaboratorsDoc: r
|
105804
105804
|
}) => {
|
105805
|
-
const o =
|
105805
|
+
const o = Nt(
|
105806
105806
|
() => ({ isPreviewMode: t, isPresentationMode: n, isCollaboratorsDoc: r }),
|
105807
105807
|
[t, n, r]
|
105808
105808
|
);
|
@@ -105868,7 +105868,7 @@ const qen = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom:
|
|
105868
105868
|
if (!f)
|
105869
105869
|
return;
|
105870
105870
|
r && r();
|
105871
|
-
}, [s, r]), c =
|
105871
|
+
}, [s, r]), c = Nt(
|
105872
105872
|
() => ({
|
105873
105873
|
id: l,
|
105874
105874
|
initial: t,
|
@@ -105884,7 +105884,7 @@ const qen = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom:
|
|
105884
105884
|
*/
|
105885
105885
|
i ? [Math.random(), u] : [n, u]
|
105886
105886
|
);
|
105887
|
-
return
|
105887
|
+
return Nt(() => {
|
105888
105888
|
s.forEach((d, f) => s.set(f, !1));
|
105889
105889
|
}, [n]), $.useEffect(() => {
|
105890
105890
|
!n && !s.size && r && r();
|
@@ -105912,7 +105912,7 @@ function SK(e) {
|
|
105912
105912
|
}), t;
|
105913
105913
|
}
|
105914
105914
|
const rP = typeof window < "u", Cge = rP ? Rs : He, Wg = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: o = !0, mode: i = "sync", propagate: a = !1 }) => {
|
105915
|
-
const [s, l] = Dge(a), u =
|
105915
|
+
const [s, l] = Dge(a), u = Nt(() => SK(e), [e]), c = a && !s ? [] : u.map(G5), d = rt(!0), f = rt(u), h = tP(() => /* @__PURE__ */ new Map()), [p, g] = Re(u), [m, y] = Re(u);
|
105916
105916
|
Cge(() => {
|
105917
105917
|
d.current = !1, f.current = u;
|
105918
105918
|
for (let x = 0; x < m.length; x++) {
|
@@ -106168,7 +106168,7 @@ function Qen(e, t) {
|
|
106168
106168
|
}
|
106169
106169
|
function etn(e) {
|
106170
106170
|
const { initial: t, animate: n } = Qen(e, At(Zk));
|
106171
|
-
return
|
106171
|
+
return Nt(() => ({ initial: t, animate: n }), [LK(t), LK(n)]);
|
106172
106172
|
}
|
106173
106173
|
function LK(e) {
|
106174
106174
|
return Array.isArray(e) ? e.join(" ") : e;
|
@@ -106711,7 +106711,7 @@ function qge(e, t, n) {
|
|
106711
106711
|
!ai(t[r]) && !Uge(r, n) && (e[r] = t[r]);
|
106712
106712
|
}
|
106713
106713
|
function Ltn({ transformTemplate: e }, t) {
|
106714
|
-
return
|
106714
|
+
return Nt(() => {
|
106715
106715
|
const n = gP();
|
106716
106716
|
return hP(n, t, e), Object.assign({}, n.vars, n.style);
|
106717
106717
|
}, [t]);
|
@@ -106725,7 +106725,7 @@ function _tn(e, t) {
|
|
106725
106725
|
return e.drag && e.dragListener !== !1 && (n.draggable = !1, r.userSelect = r.WebkitUserSelect = r.WebkitTouchCallout = "none", r.touchAction = e.drag === !0 ? "none" : `pan-${e.drag === "x" ? "y" : "x"}`), e.tabIndex === void 0 && (e.onTap || e.onTapStart || e.whileTap) && (n.tabIndex = 0), n.style = r, n;
|
106726
106726
|
}
|
106727
106727
|
function Itn(e, t, n, r) {
|
106728
|
-
const o =
|
106728
|
+
const o = Nt(() => {
|
106729
106729
|
const i = Oge();
|
106730
106730
|
return pP(i, t, mP(r), e.transformTemplate), {
|
106731
106731
|
...i.attrs,
|
@@ -106740,7 +106740,7 @@ function Itn(e, t, n, r) {
|
|
106740
106740
|
}
|
106741
106741
|
function Btn(e = !1) {
|
106742
106742
|
return (n, r, o, { latestValues: i }, a) => {
|
106743
|
-
const l = (uP(n) ? Itn : _tn)(r, i, a, n), u = Xen(r, typeof n == "string", e), c = n !== Yd ? { ...u, ...l, ref: o } : {}, { children: d } = r, f =
|
106743
|
+
const l = (uP(n) ? Itn : _tn)(r, i, a, n), u = Xen(r, typeof n == "string", e), c = n !== Yd ? { ...u, ...l, ref: o } : {}, { children: d } = r, f = Nt(() => ai(d) ? d.get() : d, [d]);
|
106744
106744
|
return Qe(n, {
|
106745
106745
|
...c,
|
106746
106746
|
children: f
|
@@ -122688,7 +122688,7 @@ const g1n = (e) => ({
|
|
122688
122688
|
});
|
122689
122689
|
}, Lye = ({ tweet: e, components: t }) => {
|
122690
122690
|
var n;
|
122691
|
-
const r =
|
122691
|
+
const r = Nt(() => g1n(e), [
|
122692
122692
|
e
|
122693
122693
|
]);
|
122694
122694
|
return /* @__PURE__ */ E.jsxs(pz, {
|
@@ -123232,7 +123232,7 @@ const _E = Ne.use || // This extra generic is to avoid TypeScript mixing up the
|
|
123232
123232
|
return !1;
|
123233
123233
|
}
|
123234
123234
|
return !0;
|
123235
|
-
}, j =
|
123235
|
+
}, j = Nt(() => {
|
123236
123236
|
const ye = !y || !t ? !1 : En(s) ? C().isPaused() || i ? !1 : l !== !1 : s, I = (Fe) => {
|
123237
123237
|
const Me = Ud(Fe);
|
123238
123238
|
return delete Me._k, ye ? {
|
@@ -123585,20 +123585,20 @@ const m0n = ({
|
|
123585
123585
|
x += (k == null ? void 0 : k.nodeSize) || 1;
|
123586
123586
|
}
|
123587
123587
|
return b;
|
123588
|
-
}, []), c =
|
123588
|
+
}, []), c = Nt(() => {
|
123589
123589
|
var y, b;
|
123590
123590
|
const { content: m } = e.content;
|
123591
123591
|
return ((b = (y = m == null ? void 0 : m[0]) == null ? void 0 : y.type) == null ? void 0 : b.name) === "heading";
|
123592
|
-
}, [e.content]), d =
|
123592
|
+
}, [e.content]), d = Nt(() => {
|
123593
123593
|
var y;
|
123594
123594
|
const { content: m } = e.content;
|
123595
123595
|
return (y = m == null ? void 0 : m[0]) == null ? void 0 : y.attrs.textAlign;
|
123596
|
-
}, [e.content]), f =
|
123596
|
+
}, [e.content]), f = Nt(() => {
|
123597
123597
|
var b;
|
123598
123598
|
if (!c) return null;
|
123599
123599
|
const { content: m } = e.content, y = m == null ? void 0 : m[0];
|
123600
123600
|
return ((b = y == null ? void 0 : y.attrs) == null ? void 0 : b.id) || `heading-${t()}`;
|
123601
|
-
}, [c, e.content, t]), h =
|
123601
|
+
}, [c, e.content, t]), h = Nt(() => f ? r.has(f) : !1, [f, r]), p = Nt(() => {
|
123602
123602
|
if (!e || !n) return !1;
|
123603
123603
|
const m = t(), { headingMap: y } = l();
|
123604
123604
|
if (c && f) {
|
@@ -123789,7 +123789,7 @@ function y0n(e) {
|
|
123789
123789
|
return e.on("update", o), () => {
|
123790
123790
|
e.off("update", o);
|
123791
123791
|
};
|
123792
|
-
}, [e, r]),
|
123792
|
+
}, [e, r]), Nt(
|
123793
123793
|
() => ({
|
123794
123794
|
hasAIWriter: t.current,
|
123795
123795
|
canCreateAIWriter: !t.current
|
@@ -123840,7 +123840,7 @@ const b0n = (e, t, n, r) => {
|
|
123840
123840
|
const u = new Set(l);
|
123841
123841
|
return s.forEach((c) => u.delete(c)), u;
|
123842
123842
|
});
|
123843
|
-
}, []), a =
|
123843
|
+
}, []), a = Nt(
|
123844
123844
|
() => ({
|
123845
123845
|
collapsedHeadings: n,
|
123846
123846
|
setCollapsedHeadings: r,
|
@@ -127170,18 +127170,18 @@ const G0n = Ne.memo(
|
|
127170
127170
|
}), D = We(() => {
|
127171
127171
|
const { content: le } = e.content, ye = le[0].attrs.id, I = le[0].content.content[0].text, ce = Hye(I), ue = ye.replace(/-/g, "").substring(0, 8), Y = `heading=${ce}-${ue}`;
|
127172
127172
|
i == null || i(Y);
|
127173
|
-
}, [e.content, i]), C =
|
127173
|
+
}, [e.content, i]), C = Nt(() => {
|
127174
127174
|
const { content: le } = e.content;
|
127175
127175
|
return le[0].type.name === "table";
|
127176
|
-
}, [e.content]), S =
|
127176
|
+
}, [e.content]), S = Nt(() => {
|
127177
127177
|
var ye;
|
127178
127178
|
const { content: le } = e.content;
|
127179
127179
|
return (ye = le[0].content.content[0]) == null ? void 0 : ye.text;
|
127180
|
-
}, [e.content]), z =
|
127180
|
+
}, [e.content]), z = Nt(() => {
|
127181
127181
|
var ye;
|
127182
127182
|
const { content: le } = e.content;
|
127183
127183
|
return (ye = le[0].content.content[1]) == null ? void 0 : ye.text;
|
127184
|
-
}, [e.content]), P =
|
127184
|
+
}, [e.content]), P = Nt(() => {
|
127185
127185
|
const { content: le } = e.content;
|
127186
127186
|
return le[0].content.content.find(
|
127187
127187
|
(ye) => {
|
@@ -127268,7 +127268,7 @@ const G0n = Ne.memo(
|
|
127268
127268
|
[r]
|
127269
127269
|
), G = We(() => {
|
127270
127270
|
M(S) || P && M(P.text) ? B() : T();
|
127271
|
-
}, [S, P]), V =
|
127271
|
+
}, [S, P]), V = Nt(
|
127272
127272
|
() => bz(G, 1e3),
|
127273
127273
|
[G]
|
127274
127274
|
), O = We(
|
@@ -127277,15 +127277,15 @@ const G0n = Ne.memo(
|
|
127277
127277
|
n.commands.insertContentAt(ye - 4, le);
|
127278
127278
|
},
|
127279
127279
|
[t, n, e.nodeSize]
|
127280
|
-
), X =
|
127280
|
+
), X = Nt(
|
127281
127281
|
() => D0n(O),
|
127282
127282
|
[O]
|
127283
|
-
), ae =
|
127283
|
+
), ae = Nt(
|
127284
127284
|
() => F0n(O),
|
127285
127285
|
[O]
|
127286
127286
|
), ne = We(() => {
|
127287
127287
|
u(!l), d(l ? 2 : ae.length);
|
127288
|
-
}, [l, ae.length]), te =
|
127288
|
+
}, [l, ae.length]), te = Nt(() => {
|
127289
127289
|
switch (k) {
|
127290
127290
|
case "center":
|
127291
127291
|
return "justify-center";
|
@@ -127300,7 +127300,7 @@ const G0n = Ne.memo(
|
|
127300
127300
|
He(() => {
|
127301
127301
|
S && V();
|
127302
127302
|
}, [S]);
|
127303
|
-
const ie =
|
127303
|
+
const ie = Nt(() => {
|
127304
127304
|
const { doc: le, selection: ye } = n.state, I = t(), ce = le.nodeAt(I);
|
127305
127305
|
if (!ce || ce.type.name !== "dBlock") return !1;
|
127306
127306
|
const ue = ce === le.firstChild, Y = ce.content.firstChild;
|
@@ -132046,70 +132046,70 @@ const Npn = an.create({
|
|
132046
132046
|
transformCopiedText: this.options.transformCopiedText
|
132047
132047
|
})];
|
132048
132048
|
}
|
132049
|
-
}), Ipn = (e) =>
|
132049
|
+
}), Ipn = (e) => It({
|
132050
132050
|
find: /--$/,
|
132051
132051
|
replace: e ?? "—"
|
132052
|
-
}), Bpn = (e) =>
|
132052
|
+
}), Bpn = (e) => It({
|
132053
132053
|
find: /\.\.\.$/,
|
132054
132054
|
replace: e ?? "…"
|
132055
|
-
}), Opn = (e) =>
|
132055
|
+
}), Opn = (e) => It({
|
132056
132056
|
find: /(?:^|[\s{[(<'"\u2018\u201C])(")$/,
|
132057
132057
|
replace: e ?? "“"
|
132058
|
-
}), Rpn = (e) =>
|
132058
|
+
}), Rpn = (e) => It({
|
132059
132059
|
find: /"$/,
|
132060
132060
|
replace: e ?? "”"
|
132061
|
-
}), Ppn = (e) =>
|
132061
|
+
}), Ppn = (e) => It({
|
132062
132062
|
find: /(?:^|[\s{[(<'"\u2018\u201C])(')$/,
|
132063
132063
|
replace: e ?? "‘"
|
132064
|
-
}), zpn = (e) =>
|
132064
|
+
}), zpn = (e) => It({
|
132065
132065
|
find: /'$/,
|
132066
132066
|
replace: e ?? "’"
|
132067
|
-
}), Upn = (e) =>
|
132067
|
+
}), Upn = (e) => It({
|
132068
132068
|
find: /<-$/,
|
132069
132069
|
replace: e ?? "←"
|
132070
|
-
}), Hpn = (e) =>
|
132070
|
+
}), Hpn = (e) => It({
|
132071
132071
|
find: /->$/,
|
132072
132072
|
replace: e ?? "→"
|
132073
|
-
}), qpn = (e) =>
|
132073
|
+
}), qpn = (e) => It({
|
132074
132074
|
find: /\(c\)$/,
|
132075
132075
|
replace: e ?? "©"
|
132076
|
-
}), Vpn = (e) =>
|
132076
|
+
}), Vpn = (e) => It({
|
132077
132077
|
find: /\(tm\)$/,
|
132078
132078
|
replace: e ?? "™"
|
132079
|
-
}), Wpn = (e) =>
|
132079
|
+
}), Wpn = (e) => It({
|
132080
132080
|
find: /\(sm\)$/,
|
132081
132081
|
replace: e ?? "℠"
|
132082
|
-
}), $pn = (e) =>
|
132082
|
+
}), $pn = (e) => It({
|
132083
132083
|
find: /\(r\)$/,
|
132084
132084
|
replace: e ?? "®"
|
132085
|
-
}), Gpn = (e) =>
|
132085
|
+
}), Gpn = (e) => It({
|
132086
132086
|
find: /(?:^|\s)(1\/2)\s$/,
|
132087
132087
|
replace: e ?? "½"
|
132088
|
-
}), Zpn = (e) =>
|
132088
|
+
}), Zpn = (e) => It({
|
132089
132089
|
find: /\+\/-$/,
|
132090
132090
|
replace: e ?? "±"
|
132091
|
-
}), Kpn = (e) =>
|
132091
|
+
}), Kpn = (e) => It({
|
132092
132092
|
find: /!=$/,
|
132093
132093
|
replace: e ?? "≠"
|
132094
|
-
}), Ypn = (e) =>
|
132094
|
+
}), Ypn = (e) => It({
|
132095
132095
|
find: /<<$/,
|
132096
132096
|
replace: e ?? "«"
|
132097
|
-
}), Xpn = (e) =>
|
132097
|
+
}), Xpn = (e) => It({
|
132098
132098
|
find: />>$/,
|
132099
132099
|
replace: e ?? "»"
|
132100
|
-
}), Jpn = (e) =>
|
132100
|
+
}), Jpn = (e) => It({
|
132101
132101
|
find: /\d+\s?([*x])\s?\d+$/,
|
132102
132102
|
replace: e ?? "×"
|
132103
|
-
}), Qpn = (e) =>
|
132103
|
+
}), Qpn = (e) => It({
|
132104
132104
|
find: /\^2$/,
|
132105
132105
|
replace: e ?? "²"
|
132106
|
-
}), e2n = (e) =>
|
132106
|
+
}), e2n = (e) => It({
|
132107
132107
|
find: /\^3$/,
|
132108
132108
|
replace: e ?? "³"
|
132109
|
-
}), t2n = (e) =>
|
132109
|
+
}), t2n = (e) => It({
|
132110
132110
|
find: /(?:^|\s)(1\/4)\s$/,
|
132111
132111
|
replace: e ?? "¼"
|
132112
|
-
}), n2n = (e) =>
|
132112
|
+
}), n2n = (e) => It({
|
132113
132113
|
find: /(?:^|\s)(3\/4)\s$/,
|
132114
132114
|
replace: e ?? "¾"
|
132115
132115
|
}), r2n = an.create({
|
@@ -153689,7 +153689,7 @@ var vxe = function e(t) {
|
|
153689
153689
|
}, C9n = function(t) {
|
153690
153690
|
var n = /^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(t);
|
153691
153691
|
return n ? n[2] !== ":" || !/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(n[1]) ? null : n[1].toLowerCase() : "_relative";
|
153692
|
-
},
|
153692
|
+
}, _t = {
|
153693
153693
|
contains: m9n,
|
153694
153694
|
deflt: y9n,
|
153695
153695
|
escape: k9n,
|
@@ -153850,7 +153850,7 @@ class FH {
|
|
153850
153850
|
*/
|
153851
153851
|
isTrusted(t) {
|
153852
153852
|
if (t.url && !t.protocol) {
|
153853
|
-
var n =
|
153853
|
+
var n = _t.protocolFromUrl(t.url);
|
153854
153854
|
if (n == null)
|
153855
153855
|
return !1;
|
153856
153856
|
t.protocol = n;
|
@@ -154416,7 +154416,7 @@ let Q6 = class {
|
|
154416
154416
|
this.children = void 0, this.classes = void 0, this.height = void 0, this.depth = void 0, this.maxFontSize = void 0, this.style = void 0, this.children = t, this.classes = [], this.height = 0, this.depth = 0, this.maxFontSize = 0, this.style = {};
|
154417
154417
|
}
|
154418
154418
|
hasClass(t) {
|
154419
|
-
return
|
154419
|
+
return _t.contains(this.classes, t);
|
154420
154420
|
}
|
154421
154421
|
/** Convert the fragment into a node. */
|
154422
154422
|
toNode() {
|
@@ -156988,16 +156988,16 @@ var g_ = {
|
|
156988
156988
|
return n;
|
156989
156989
|
}, Z9n = /[\s"'>/=\x00-\x1f]/, Dxe = function(t) {
|
156990
156990
|
var n = "<" + t;
|
156991
|
-
this.classes.length && (n += ' class="' +
|
156991
|
+
this.classes.length && (n += ' class="' + _t.escape(Wd(this.classes)) + '"');
|
156992
156992
|
var r = "";
|
156993
156993
|
for (var o in this.style)
|
156994
|
-
this.style.hasOwnProperty(o) && (r +=
|
156995
|
-
r && (n += ' style="' +
|
156994
|
+
this.style.hasOwnProperty(o) && (r += _t.hyphenate(o) + ":" + this.style[o] + ";");
|
156995
|
+
r && (n += ' style="' + _t.escape(r) + '"');
|
156996
156996
|
for (var i in this.attributes)
|
156997
156997
|
if (this.attributes.hasOwnProperty(i)) {
|
156998
156998
|
if (Z9n.test(i))
|
156999
156999
|
throw new it("Invalid attribute name '" + i + "'");
|
157000
|
-
n += " " + i + '="' +
|
157000
|
+
n += " " + i + '="' + _t.escape(this.attributes[i]) + '"';
|
157001
157001
|
}
|
157002
157002
|
n += ">";
|
157003
157003
|
for (var a = 0; a < this.children.length; a++)
|
@@ -157017,7 +157017,7 @@ class e5 {
|
|
157017
157017
|
this.attributes[t] = n;
|
157018
157018
|
}
|
157019
157019
|
hasClass(t) {
|
157020
|
-
return
|
157020
|
+
return _t.contains(this.classes, t);
|
157021
157021
|
}
|
157022
157022
|
toNode() {
|
157023
157023
|
return Fxe.call(this, "span");
|
@@ -157034,7 +157034,7 @@ class MH {
|
|
157034
157034
|
this.attributes[t] = n;
|
157035
157035
|
}
|
157036
157036
|
hasClass(t) {
|
157037
|
-
return
|
157037
|
+
return _t.contains(this.classes, t);
|
157038
157038
|
}
|
157039
157039
|
toNode() {
|
157040
157040
|
return Fxe.call(this, "a");
|
@@ -157048,7 +157048,7 @@ class K9n {
|
|
157048
157048
|
this.src = void 0, this.alt = void 0, this.classes = void 0, this.height = void 0, this.depth = void 0, this.maxFontSize = void 0, this.style = void 0, this.alt = n, this.src = t, this.classes = ["mord"], this.style = r;
|
157049
157049
|
}
|
157050
157050
|
hasClass(t) {
|
157051
|
-
return
|
157051
|
+
return _t.contains(this.classes, t);
|
157052
157052
|
}
|
157053
157053
|
toNode() {
|
157054
157054
|
var t = document.createElement("img");
|
@@ -157058,10 +157058,10 @@ class K9n {
|
|
157058
157058
|
return t;
|
157059
157059
|
}
|
157060
157060
|
toMarkup() {
|
157061
|
-
var t = '<img src="' +
|
157061
|
+
var t = '<img src="' + _t.escape(this.src) + '"' + (' alt="' + _t.escape(this.alt) + '"'), n = "";
|
157062
157062
|
for (var r in this.style)
|
157063
|
-
this.style.hasOwnProperty(r) && (n +=
|
157064
|
-
return n && (t += ' style="' +
|
157063
|
+
this.style.hasOwnProperty(r) && (n += _t.hyphenate(r) + ":" + this.style[r] + ";");
|
157064
|
+
return n && (t += ' style="' + _t.escape(n) + '"'), t += "'/>", t;
|
157065
157065
|
}
|
157066
157066
|
}
|
157067
157067
|
var Y9n = {
|
@@ -157078,7 +157078,7 @@ class Bs {
|
|
157078
157078
|
u && this.classes.push(u + "_fallback"), /[îïíì]/.test(this.text) && (this.text = Y9n[this.text]);
|
157079
157079
|
}
|
157080
157080
|
hasClass(t) {
|
157081
|
-
return
|
157081
|
+
return _t.contains(this.classes, t);
|
157082
157082
|
}
|
157083
157083
|
/**
|
157084
157084
|
* Creates a text node or span from a symbol node. Note that a span is only
|
@@ -157096,13 +157096,13 @@ class Bs {
|
|
157096
157096
|
*/
|
157097
157097
|
toMarkup() {
|
157098
157098
|
var t = !1, n = "<span";
|
157099
|
-
this.classes.length && (t = !0, n += ' class="', n +=
|
157099
|
+
this.classes.length && (t = !0, n += ' class="', n += _t.escape(Wd(this.classes)), n += '"');
|
157100
157100
|
var r = "";
|
157101
157101
|
this.italic > 0 && (r += "margin-right:" + this.italic + "em;");
|
157102
157102
|
for (var o in this.style)
|
157103
|
-
this.style.hasOwnProperty(o) && (r +=
|
157104
|
-
r && (t = !0, n += ' style="' +
|
157105
|
-
var i =
|
157103
|
+
this.style.hasOwnProperty(o) && (r += _t.hyphenate(o) + ":" + this.style[o] + ";");
|
157104
|
+
r && (t = !0, n += ' style="' + _t.escape(r) + '"');
|
157105
|
+
var i = _t.escape(this.text);
|
157106
157106
|
return t ? (n += ">", n += i, n += "</span>", n) : i;
|
157107
157107
|
}
|
157108
157108
|
}
|
@@ -157121,7 +157121,7 @@ class n1 {
|
|
157121
157121
|
toMarkup() {
|
157122
157122
|
var t = '<svg xmlns="http://www.w3.org/2000/svg"';
|
157123
157123
|
for (var n in this.attributes)
|
157124
|
-
Object.prototype.hasOwnProperty.call(this.attributes, n) && (t += " " + n + '="' +
|
157124
|
+
Object.prototype.hasOwnProperty.call(this.attributes, n) && (t += " " + n + '="' + _t.escape(this.attributes[n]) + '"');
|
157125
157125
|
t += ">";
|
157126
157126
|
for (var r = 0; r < this.children.length; r++)
|
157127
157127
|
t += this.children[r].toMarkup();
|
@@ -157137,7 +157137,7 @@ class $d {
|
|
157137
157137
|
return this.alternate ? n.setAttribute("d", this.alternate) : n.setAttribute("d", Ute[this.pathName]), n;
|
157138
157138
|
}
|
157139
157139
|
toMarkup() {
|
157140
|
-
return this.alternate ? '<path d="' +
|
157140
|
+
return this.alternate ? '<path d="' + _t.escape(this.alternate) + '"/>' : '<path d="' + _t.escape(Ute[this.pathName]) + '"/>';
|
157141
157141
|
}
|
157142
157142
|
}
|
157143
157143
|
class m_ {
|
@@ -157153,7 +157153,7 @@ class m_ {
|
|
157153
157153
|
toMarkup() {
|
157154
157154
|
var t = "<line";
|
157155
157155
|
for (var n in this.attributes)
|
157156
|
-
Object.prototype.hasOwnProperty.call(this.attributes, n) && (t += " " + n + '="' +
|
157156
|
+
Object.prototype.hasOwnProperty.call(this.attributes, n) && (t += " " + n + '="' + _t.escape(this.attributes[n]) + '"');
|
157157
157157
|
return t += "/>", t;
|
157158
157158
|
}
|
157159
157159
|
}
|
@@ -158369,7 +158369,7 @@ var Iw = function(t) {
|
|
158369
158369
|
var d = r1([o[0] || "leftmost"], [], n), f = r1([o[1] || "rightmost"], [], n), h = r === "root";
|
158370
158370
|
return Xte(i, (p, g) => {
|
158371
158371
|
var m = g.classes[0], y = p.classes[0];
|
158372
|
-
m === "mbin" &&
|
158372
|
+
m === "mbin" && _t.contains(mwn, y) ? g.classes[0] = "mord" : y === "mbin" && _t.contains(gwn, m) && (p.classes[0] = "mord");
|
158373
158373
|
}, {
|
158374
158374
|
node: d
|
158375
158375
|
}, f, h), Xte(i, (p, g) => {
|
@@ -158498,8 +158498,8 @@ class _a {
|
|
158498
158498
|
toMarkup() {
|
158499
158499
|
var t = "<" + this.type;
|
158500
158500
|
for (var n in this.attributes)
|
158501
|
-
Object.prototype.hasOwnProperty.call(this.attributes, n) && (t += " " + n + '="', t +=
|
158502
|
-
this.classes.length > 0 && (t += ' class ="' +
|
158501
|
+
Object.prototype.hasOwnProperty.call(this.attributes, n) && (t += " " + n + '="', t += _t.escape(this.attributes[n]), t += '"');
|
158502
|
+
this.classes.length > 0 && (t += ' class ="' + _t.escape(Wd(this.classes)) + '"'), t += ">";
|
158503
158503
|
for (var r = 0; r < this.children.length; r++)
|
158504
158504
|
t += this.children[r].toMarkup();
|
158505
158505
|
return t += "</" + this.type + ">", t;
|
@@ -158526,7 +158526,7 @@ class au {
|
|
158526
158526
|
* (representing the text itself).
|
158527
158527
|
*/
|
158528
158528
|
toMarkup() {
|
158529
|
-
return
|
158529
|
+
return _t.escape(this.toText());
|
158530
158530
|
}
|
158531
158531
|
/**
|
158532
158532
|
* Converts the text node into a string
|
@@ -158608,7 +158608,7 @@ var nt = {
|
|
158608
158608
|
if (r === "mathtt")
|
158609
158609
|
return "monospace";
|
158610
158610
|
var i = t.text;
|
158611
|
-
if (
|
158611
|
+
if (_t.contains(["\\imath", "\\jmath"], i))
|
158612
158612
|
return null;
|
158613
158613
|
or[o][i] && or[o][i].replace && (i = or[o][i].replace);
|
158614
158614
|
var a = _e.fontMap[r].fontName;
|
@@ -158672,7 +158672,7 @@ var wa = function(t, n, r) {
|
|
158672
158672
|
};
|
158673
158673
|
function Jte(e, t, n, r, o) {
|
158674
158674
|
var i = wa(e, n), a;
|
158675
|
-
i.length === 1 && i[0] instanceof _a &&
|
158675
|
+
i.length === 1 && i[0] instanceof _a && _t.contains(["mrow", "mtable"], i[0].type) ? a = i[0] : a = new nt.MathNode("mrow", i);
|
158676
158676
|
var s = new nt.MathNode("annotation", [new nt.TextNode(t)]);
|
158677
158677
|
s.setAttribute("encoding", "application/x-tex");
|
158678
158678
|
var l = new nt.MathNode("semantics", [a, s]), u = new nt.MathNode("math", [l]);
|
@@ -158807,7 +158807,7 @@ var Nxe = function(t) {
|
|
158807
158807
|
}, Ewn = function(t, n) {
|
158808
158808
|
function r() {
|
158809
158809
|
var s = 4e5, l = t.label.slice(1);
|
158810
|
-
if (
|
158810
|
+
if (_t.contains(["widehat", "widecheck", "widetilde", "utilde"], l)) {
|
158811
158811
|
var u = t, c = Mwn(u.base), d, f, h;
|
158812
158812
|
if (c > 5)
|
158813
158813
|
l === "widehat" || l === "widecheck" ? (d = 420, s = 2364, h = 0.42, f = l + "4") : (d = 312, s = 2340, h = 0.34, f = "tilde4");
|
@@ -158917,9 +158917,9 @@ function bD(e) {
|
|
158917
158917
|
var jH = (e, t) => {
|
158918
158918
|
var n, r, o;
|
158919
158919
|
e && e.type === "supsub" ? (r = rn(e.base, "accent"), n = r.base, e.base = n, o = X9n(An(e, t)), e.base = r) : (r = rn(e, "accent"), n = r.base);
|
158920
|
-
var i = An(n, t.havingCrampedStyle()), a = r.isShifty &&
|
158920
|
+
var i = An(n, t.havingCrampedStyle()), a = r.isShifty && _t.isCharacterBox(n), s = 0;
|
158921
158921
|
if (a) {
|
158922
|
-
var l =
|
158922
|
+
var l = _t.getBaseElem(n), u = An(l, t.havingCrampedStyle());
|
158923
158923
|
s = Wte(u).skew;
|
158924
158924
|
}
|
158925
158925
|
var c = r.label === "\\c", d = c ? i.height + i.depth : Math.min(i.height, t.fontMetrics().xHeight), f;
|
@@ -159195,7 +159195,7 @@ mt({
|
|
159195
159195
|
mclass: "m" + r.slice(5),
|
159196
159196
|
// TODO(kevinb): don't prefix with 'm'
|
159197
159197
|
body: Kr(o),
|
159198
|
-
isCharacterBox:
|
159198
|
+
isCharacterBox: _t.isCharacterBox(o)
|
159199
159199
|
};
|
159200
159200
|
},
|
159201
159201
|
htmlBuilder: Bxe,
|
@@ -159220,7 +159220,7 @@ mt({
|
|
159220
159220
|
mode: n.mode,
|
159221
159221
|
mclass: vD(t[0]),
|
159222
159222
|
body: Kr(t[1]),
|
159223
|
-
isCharacterBox:
|
159223
|
+
isCharacterBox: _t.isCharacterBox(t[1])
|
159224
159224
|
};
|
159225
159225
|
}
|
159226
159226
|
});
|
@@ -159257,7 +159257,7 @@ mt({
|
|
159257
159257
|
mode: n.mode,
|
159258
159258
|
mclass: a,
|
159259
159259
|
body: [l],
|
159260
|
-
isCharacterBox:
|
159260
|
+
isCharacterBox: _t.isCharacterBox(l)
|
159261
159261
|
};
|
159262
159262
|
},
|
159263
159263
|
htmlBuilder: Bxe,
|
@@ -159769,7 +159769,7 @@ var A3 = function(t, n, r) {
|
|
159769
159769
|
var s, l, u, c, d = "", f = 0;
|
159770
159770
|
s = u = c = t, l = null;
|
159771
159771
|
var h = "Size1-Regular";
|
159772
|
-
t === "\\uparrow" ? u = c = "⏐" : t === "\\Uparrow" ? u = c = "‖" : t === "\\downarrow" ? s = u = "⏐" : t === "\\Downarrow" ? s = u = "‖" : t === "\\updownarrow" ? (s = "\\uparrow", u = "⏐", c = "\\downarrow") : t === "\\Updownarrow" ? (s = "\\Uparrow", u = "‖", c = "\\Downarrow") :
|
159772
|
+
t === "\\uparrow" ? u = c = "⏐" : t === "\\Uparrow" ? u = c = "‖" : t === "\\downarrow" ? s = u = "⏐" : t === "\\Downarrow" ? s = u = "‖" : t === "\\updownarrow" ? (s = "\\uparrow", u = "⏐", c = "\\downarrow") : t === "\\Updownarrow" ? (s = "\\Uparrow", u = "‖", c = "\\Downarrow") : _t.contains(Rwn, t) ? (u = "∣", d = "vert", f = 333) : _t.contains(Pwn, t) ? (u = "∥", d = "doublevert", f = 556) : t === "[" || t === "\\lbrack" ? (s = "⎡", u = "⎢", c = "⎣", h = "Size4-Regular", d = "lbrack", f = 667) : t === "]" || t === "\\rbrack" ? (s = "⎤", u = "⎥", c = "⎦", h = "Size4-Regular", d = "rbrack", f = 667) : t === "\\lfloor" || t === "⌊" ? (u = s = "⎢", c = "⎣", h = "Size4-Regular", d = "lfloor", f = 667) : t === "\\lceil" || t === "⌈" ? (s = "⎡", u = c = "⎢", h = "Size4-Regular", d = "lceil", f = 667) : t === "\\rfloor" || t === "⌋" ? (u = s = "⎥", c = "⎦", h = "Size4-Regular", d = "rfloor", f = 667) : t === "\\rceil" || t === "⌉" ? (s = "⎤", u = c = "⎥", h = "Size4-Regular", d = "rceil", f = 667) : t === "(" || t === "\\lparen" ? (s = "⎛", u = "⎜", c = "⎝", h = "Size4-Regular", d = "lparen", f = 875) : t === ")" || t === "\\rparen" ? (s = "⎞", u = "⎟", c = "⎠", h = "Size4-Regular", d = "rparen", f = 875) : t === "\\{" || t === "\\lbrace" ? (s = "⎧", l = "⎨", c = "⎩", u = "⎪", h = "Size4-Regular") : t === "\\}" || t === "\\rbrace" ? (s = "⎫", l = "⎬", c = "⎭", u = "⎪", h = "Size4-Regular") : t === "\\lgroup" || t === "⟮" ? (s = "⎧", c = "⎩", u = "⎪", h = "Size4-Regular") : t === "\\rgroup" || t === "⟯" ? (s = "⎫", c = "⎭", u = "⎪", h = "Size4-Regular") : t === "\\lmoustache" || t === "⎰" ? (s = "⎧", c = "⎭", u = "⎪", h = "Size4-Regular") : (t === "\\rmoustache" || t === "⎱") && (s = "⎫", c = "⎩", u = "⎪", h = "Size4-Regular");
|
159773
159773
|
var p = A3(s, h, i), g = p.height + p.depth, m = A3(u, h, i), y = m.height + m.depth, b = A3(c, h, i), v = b.height + b.depth, x = 0, F = 1;
|
159774
159774
|
if (l !== null) {
|
159775
159775
|
var k = A3(l, h, i);
|
@@ -159825,9 +159825,9 @@ var A3 = function(t, n, r) {
|
|
159825
159825
|
ruleWidth: (n.fontMetrics().sqrtRuleThickness + a) * i
|
159826
159826
|
};
|
159827
159827
|
}, Wxe = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "⌊", "⌋", "\\lceil", "\\rceil", "⌈", "⌉", "\\surd"], Uwn = ["\\uparrow", "\\downarrow", "\\updownarrow", "\\Uparrow", "\\Downarrow", "\\Updownarrow", "|", "\\|", "\\vert", "\\Vert", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "⟮", "⟯", "\\lmoustache", "\\rmoustache", "⎰", "⎱"], $xe = ["<", ">", "\\langle", "\\rangle", "/", "\\backslash", "\\lt", "\\gt"], my = [0, 1.2, 1.8, 2.4, 3], Hwn = function(t, n, r, o, i) {
|
159828
|
-
if (t === "<" || t === "\\lt" || t === "⟨" ? t = "\\langle" : (t === ">" || t === "\\gt" || t === "⟩") && (t = "\\rangle"),
|
159828
|
+
if (t === "<" || t === "\\lt" || t === "⟨" ? t = "\\langle" : (t === ">" || t === "\\gt" || t === "⟩") && (t = "\\rangle"), _t.contains(Wxe, t) || _t.contains($xe, t))
|
159829
159829
|
return qxe(t, n, !1, r, o, i);
|
159830
|
-
if (
|
159830
|
+
if (_t.contains(Uwn, t))
|
159831
159831
|
return Vxe(t, my[n], !1, r, o, i);
|
159832
159832
|
throw new it("Illegal delimiter: '" + t + "'");
|
159833
159833
|
}, qwn = [{
|
@@ -159907,7 +159907,7 @@ var A3 = function(t, n, r) {
|
|
159907
159907
|
}, Kxe = function(t, n, r, o, i, a) {
|
159908
159908
|
t === "<" || t === "\\lt" || t === "⟨" ? t = "\\langle" : (t === ">" || t === "\\gt" || t === "⟩") && (t = "\\rangle");
|
159909
159909
|
var s;
|
159910
|
-
|
159910
|
+
_t.contains($xe, t) ? s = qwn : _t.contains(Wxe, t) ? s = Gxe : s = Vwn;
|
159911
159911
|
var l = Zxe(t, n, s, o);
|
159912
159912
|
return l.type === "small" ? Bwn(t, l.style, r, o, i, a) : l.type === "large" ? qxe(t, l.size, r, o, i, a) : Vxe(t, n, r, o, i, a);
|
159913
159913
|
}, $wn = function(t, n, r, o, i, a) {
|
@@ -159999,7 +159999,7 @@ var A3 = function(t, n, r) {
|
|
159999
159999
|
}, Gwn = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "⌊", "⌋", "\\lceil", "\\rceil", "⌈", "⌉", "<", ">", "\\langle", "⟨", "\\rangle", "⟩", "\\lt", "\\gt", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "⟮", "⟯", "\\lmoustache", "\\rmoustache", "⎰", "⎱", "/", "\\backslash", "|", "\\vert", "\\|", "\\Vert", "\\uparrow", "\\Uparrow", "\\downarrow", "\\Downarrow", "\\updownarrow", "\\Updownarrow", "."];
|
160000
160000
|
function xD(e, t) {
|
160001
160001
|
var n = bD(e);
|
160002
|
-
if (n &&
|
160002
|
+
if (n && _t.contains(Gwn, n.text))
|
160003
160003
|
return n;
|
160004
160004
|
throw n ? new it("Invalid delimiter '" + n.text + "' after '" + t.funcName + "'", e) : new it("Invalid delimiter type '" + e.type + "'", e);
|
160005
160005
|
}
|
@@ -160147,7 +160147,7 @@ mt({
|
|
160147
160147
|
}
|
160148
160148
|
});
|
160149
160149
|
var NH = (e, t) => {
|
160150
|
-
var n = _e.wrapFragment(An(e.body, t), t), r = e.label.slice(1), o = t.sizeMultiplier, i, a = 0, s =
|
160150
|
+
var n = _e.wrapFragment(An(e.body, t), t), r = e.label.slice(1), o = t.sizeMultiplier, i, a = 0, s = _t.isCharacterBox(e.body);
|
160151
160151
|
if (r === "sout")
|
160152
160152
|
i = _e.makeSpan(["stretchy", "sout"]), i.height = t.fontMetrics().defaultRuleThickness / o, a = -0.5 * t.fontMetrics().xHeight;
|
160153
160153
|
else if (r === "phase") {
|
@@ -160544,7 +160544,7 @@ var $u = function(t, n) {
|
|
160544
160544
|
}
|
160545
160545
|
if (!(o >= s)) {
|
160546
160546
|
var ie = void 0;
|
160547
|
-
(o > 0 || t.hskipBeforeAndAfter) && (ie =
|
160547
|
+
(o > 0 || t.hskipBeforeAndAfter) && (ie = _t.deflt(O.pregap, f), ie !== 0 && (B = _e.makeSpan(["arraycolsep"], []), B.style.width = ut(ie), M.push(B)));
|
160548
160548
|
var oe = [];
|
160549
160549
|
for (r = 0; r < i; ++r) {
|
160550
160550
|
var se = l[r], H = se[o];
|
@@ -160560,7 +160560,7 @@ var $u = function(t, n) {
|
|
160560
160560
|
oe = _e.makeVList({
|
160561
160561
|
positionType: "individualShift",
|
160562
160562
|
children: oe
|
160563
|
-
}, n), oe = _e.makeSpan(["col-align-" + (O.align || "c")], [oe]), M.push(oe), (o < s - 1 || t.hskipBeforeAndAfter) && (ie =
|
160563
|
+
}, n), oe = _e.makeSpan(["col-align-" + (O.align || "c")], [oe]), M.push(oe), (o < s - 1 || t.hskipBeforeAndAfter) && (ie = _t.deflt(O.postgap, f), ie !== 0 && (B = _e.makeSpan(["arraycolsep"], []), B.style.width = ut(ie), M.push(B)));
|
160564
160564
|
}
|
160565
160565
|
}
|
160566
160566
|
if (l = _e.makeSpan(["mtable"], M), u.length > 0) {
|
@@ -160854,7 +160854,7 @@ Wu({
|
|
160854
160854
|
numArgs: 0
|
160855
160855
|
},
|
160856
160856
|
handler(e) {
|
160857
|
-
|
160857
|
+
_t.contains(["gather", "gather*"], e.envName) && wD(e);
|
160858
160858
|
var t = {
|
160859
160859
|
cols: [{
|
160860
160860
|
type: "align",
|
@@ -161031,7 +161031,7 @@ mt({
|
|
161031
161031
|
handler: (e, t) => {
|
161032
161032
|
var {
|
161033
161033
|
parser: n
|
161034
|
-
} = e, r = t[0], o =
|
161034
|
+
} = e, r = t[0], o = _t.isCharacterBox(r);
|
161035
161035
|
return {
|
161036
161036
|
type: "mclass",
|
161037
161037
|
mode: n.mode,
|
@@ -161911,7 +161911,7 @@ mt({
|
|
161911
161911
|
});
|
161912
161912
|
var r8e = (e, t, n, r, o, i, a) => {
|
161913
161913
|
e = _e.makeSpan([], [e]);
|
161914
|
-
var s = n &&
|
161914
|
+
var s = n && _t.isCharacterBox(n), l, u;
|
161915
161915
|
if (t) {
|
161916
161916
|
var c = An(t, r.havingStyle(o.sup()), r);
|
161917
161917
|
u = {
|
@@ -162009,7 +162009,7 @@ var r8e = (e, t, n, r, o, i, a) => {
|
|
162009
162009
|
var n, r, o = !1, i;
|
162010
162010
|
e.type === "supsub" ? (n = e.sup, r = e.sub, i = rn(e.base, "op"), o = !0) : i = rn(e, "op");
|
162011
162011
|
var a = t.style, s = !1;
|
162012
|
-
a.size === Rt.DISPLAY.size && i.symbol && !
|
162012
|
+
a.size === Rt.DISPLAY.size && i.symbol && !_t.contains(o8e, i.name) && (s = !0);
|
162013
162013
|
var l;
|
162014
162014
|
if (i.symbol) {
|
162015
162015
|
var u = s ? "Size2-Regular" : "Size1-Regular", c = "";
|
@@ -162041,7 +162041,7 @@ var r8e = (e, t, n, r, o, i, a) => {
|
|
162041
162041
|
}, t5 = (e, t) => {
|
162042
162042
|
var n;
|
162043
162043
|
if (e.symbol)
|
162044
|
-
n = new _a("mo", [Os(e.name, e.mode)]),
|
162044
|
+
n = new _a("mo", [Os(e.name, e.mode)]), _t.contains(o8e, e.name) && n.setAttribute("largeop", "false");
|
162045
162045
|
else if (e.body)
|
162046
162046
|
n = new _a("mo", wa(e.body, t));
|
162047
162047
|
else {
|
@@ -162706,7 +162706,7 @@ var e7n = function(t, n) {
|
|
162706
162706
|
return i ? i8e : null;
|
162707
162707
|
} else {
|
162708
162708
|
if (r.type === "accent")
|
162709
|
-
return
|
162709
|
+
return _t.isCharacterBox(r.base) ? jH : null;
|
162710
162710
|
if (r.type === "horizBrace") {
|
162711
162711
|
var a = !t.sub;
|
162712
162712
|
return a === r.isOver ? n8e : null;
|
@@ -162725,7 +162725,7 @@ Ih({
|
|
162725
162725
|
base: r,
|
162726
162726
|
sup: o,
|
162727
162727
|
sub: i
|
162728
|
-
} = e, a = An(r, t), s, l, u = t.fontMetrics(), c = 0, d = 0, f = r &&
|
162728
|
+
} = e, a = An(r, t), s, l, u = t.fontMetrics(), c = 0, d = 0, f = r && _t.isCharacterBox(r);
|
162729
162729
|
if (o) {
|
162730
162730
|
var h = t.havingStyle(t.style.sup());
|
162731
162731
|
s = An(o, h, t), f || (c = a.height - h.fontMetrics().supDrop * h.sizeMultiplier / t.sizeMultiplier);
|
@@ -163463,7 +163463,7 @@ var bne = {
|
|
163463
163463
|
};
|
163464
163464
|
pe("\\dots", function(e) {
|
163465
163465
|
var t = "\\dotso", n = e.expandAfterFuture().text;
|
163466
|
-
return n in bne ? t = bne[n] : (n.slice(0, 4) === "\\not" || n in or.math &&
|
163466
|
+
return n in bne ? t = bne[n] : (n.slice(0, 4) === "\\not" || n in or.math && _t.contains(["bin", "rel"], or.math[n].group)) && (t = "\\dotsb"), t;
|
163467
163467
|
});
|
163468
163468
|
var zH = {
|
163469
163469
|
// \rightdelim@ checks for the following:
|
@@ -168129,7 +168129,7 @@ function SFn({
|
|
168129
168129
|
editor: n,
|
168130
168130
|
deleteNode: r
|
168131
168131
|
}) {
|
168132
|
-
const o = rt(null), [i, a] = Re("Copy"), s = e.attrs.language || "plaintext", l = !n.isEditable, u = e.attrs.lineNumbers && !l, c = e.attrs.wordWrap && !l, d = e.attrs.tabSize ?? 2, f = e.attrs.shouldFocus, { isMobile: h } = Bu(), p = e.attrs.code || e.textContent || "", g =
|
168132
|
+
const o = rt(null), [i, a] = Re("Copy"), s = e.attrs.language || "plaintext", l = !n.isEditable, u = e.attrs.lineNumbers && !l, c = e.attrs.wordWrap && !l, d = e.attrs.tabSize ?? 2, f = e.attrs.shouldFocus, { isMobile: h } = Bu(), p = e.attrs.code || e.textContent || "", g = Nt(() => {
|
168133
168133
|
const b = p.split(`
|
168134
168134
|
`), v = [];
|
168135
168135
|
let x = 0;
|
@@ -243190,127 +243190,127 @@ const lMn = ({
|
|
243190
243190
|
name: "customTextInputRules",
|
243191
243191
|
addInputRules() {
|
243192
243192
|
return [
|
243193
|
-
|
243193
|
+
It({
|
243194
243194
|
find: /1st\s$/,
|
243195
243195
|
replace: "1ˢᵗ "
|
243196
243196
|
}),
|
243197
|
-
|
243197
|
+
It({
|
243198
243198
|
find: /2nd\s$/,
|
243199
243199
|
replace: "2ⁿᵈ "
|
243200
243200
|
}),
|
243201
|
-
|
243201
|
+
It({
|
243202
243202
|
find: /3rd\s$/,
|
243203
243203
|
replace: "3ʳᵈ "
|
243204
243204
|
}),
|
243205
|
-
|
243205
|
+
It({
|
243206
243206
|
find: /4th\s$/,
|
243207
243207
|
replace: "4ᵗʰ "
|
243208
243208
|
}),
|
243209
|
-
|
243209
|
+
It({
|
243210
243210
|
find: /5th\s$/,
|
243211
243211
|
replace: "5ᵗʰ "
|
243212
243212
|
}),
|
243213
|
-
|
243213
|
+
It({
|
243214
243214
|
find: /6th\s$/,
|
243215
243215
|
replace: "6ᵗʰ "
|
243216
243216
|
}),
|
243217
|
-
|
243217
|
+
It({
|
243218
243218
|
find: /7th\s$/,
|
243219
243219
|
replace: "7ᵗʰ "
|
243220
243220
|
}),
|
243221
|
-
|
243221
|
+
It({
|
243222
243222
|
find: /8th\s$/,
|
243223
243223
|
replace: "8ᵗʰ "
|
243224
243224
|
}),
|
243225
|
-
|
243225
|
+
It({
|
243226
243226
|
find: /9th\s$/,
|
243227
243227
|
replace: "9ᵗʰ "
|
243228
243228
|
}),
|
243229
|
-
|
243229
|
+
It({
|
243230
243230
|
find: /10th\s$/,
|
243231
243231
|
replace: "10ᵗʰ "
|
243232
243232
|
}),
|
243233
|
-
|
243233
|
+
It({
|
243234
243234
|
find: /11th\s$/,
|
243235
243235
|
replace: "11ᵗʰ "
|
243236
243236
|
}),
|
243237
|
-
|
243237
|
+
It({
|
243238
243238
|
find: /12th\s$/,
|
243239
243239
|
replace: "12ᵗʰ "
|
243240
243240
|
}),
|
243241
|
-
|
243241
|
+
It({
|
243242
243242
|
find: /13th\s$/,
|
243243
243243
|
replace: "13ᵗʰ "
|
243244
243244
|
}),
|
243245
|
-
|
243245
|
+
It({
|
243246
243246
|
find: /14th\s$/,
|
243247
243247
|
replace: "14ᵗʰ "
|
243248
243248
|
}),
|
243249
|
-
|
243249
|
+
It({
|
243250
243250
|
find: /15th\s$/,
|
243251
243251
|
replace: "15ᵗʰ "
|
243252
243252
|
}),
|
243253
|
-
|
243253
|
+
It({
|
243254
243254
|
find: /16th\s$/,
|
243255
243255
|
replace: "16ᵗʰ "
|
243256
243256
|
}),
|
243257
|
-
|
243257
|
+
It({
|
243258
243258
|
find: /17th\s$/,
|
243259
243259
|
replace: "17ᵗʰ "
|
243260
243260
|
}),
|
243261
|
-
|
243261
|
+
It({
|
243262
243262
|
find: /18th\s$/,
|
243263
243263
|
replace: "18ᵗʰ "
|
243264
243264
|
}),
|
243265
|
-
|
243265
|
+
It({
|
243266
243266
|
find: /19th\s$/,
|
243267
243267
|
replace: "19ᵗʰ "
|
243268
243268
|
}),
|
243269
|
-
|
243269
|
+
It({
|
243270
243270
|
find: /20th\s$/,
|
243271
243271
|
replace: "20ᵗʰ "
|
243272
243272
|
}),
|
243273
|
-
|
243273
|
+
It({
|
243274
243274
|
find: /21st\s$/,
|
243275
243275
|
replace: "21ˢᵗ "
|
243276
243276
|
}),
|
243277
|
-
|
243277
|
+
It({
|
243278
243278
|
find: /22nd\s$/,
|
243279
243279
|
replace: "22ⁿᵈ "
|
243280
243280
|
}),
|
243281
|
-
|
243281
|
+
It({
|
243282
243282
|
find: /23rd\s$/,
|
243283
243283
|
replace: "23ʳᵈ "
|
243284
243284
|
}),
|
243285
|
-
|
243285
|
+
It({
|
243286
243286
|
find: /24th\s$/,
|
243287
243287
|
replace: "24ᵗʰ "
|
243288
243288
|
}),
|
243289
|
-
|
243289
|
+
It({
|
243290
243290
|
find: /25th\s$/,
|
243291
243291
|
replace: "25ᵗʰ "
|
243292
243292
|
}),
|
243293
|
-
|
243293
|
+
It({
|
243294
243294
|
find: /26th\s$/,
|
243295
243295
|
replace: "26ᵗʰ "
|
243296
243296
|
}),
|
243297
|
-
|
243297
|
+
It({
|
243298
243298
|
find: /27th\s$/,
|
243299
243299
|
replace: "27ᵗʰ "
|
243300
243300
|
}),
|
243301
|
-
|
243301
|
+
It({
|
243302
243302
|
find: /28th\s$/,
|
243303
243303
|
replace: "28ᵗʰ "
|
243304
243304
|
}),
|
243305
|
-
|
243305
|
+
It({
|
243306
243306
|
find: /29th\s$/,
|
243307
243307
|
replace: "29ᵗʰ "
|
243308
243308
|
}),
|
243309
|
-
|
243309
|
+
It({
|
243310
243310
|
find: /30th\s$/,
|
243311
243311
|
replace: "30ᵗʰ "
|
243312
243312
|
}),
|
243313
|
-
|
243313
|
+
It({
|
243314
243314
|
find: /31st\s$/,
|
243315
243315
|
replace: "31ˢᵗ "
|
243316
243316
|
})
|
@@ -256302,7 +256302,7 @@ const e_n = (e) => e.context.awareness, t_n = (e) => !!(e.context.isReady && e.c
|
|
256302
256302
|
onSessionTerminated: T.onCollabSessionTermination,
|
256303
256303
|
onUnMergedUpdates: T.onUnMergedUpdates,
|
256304
256304
|
onLocalUpdate: r
|
256305
|
-
}), X =
|
256305
|
+
}), X = Nt(() => n, [n]), [ae, ne] = Re(null), te = rt(null), ie = (Ie) => {
|
256306
256306
|
if (!te.current) return;
|
256307
256307
|
const $e = te.current.querySelector(`input#${Ie}`);
|
256308
256308
|
$e && $e.scrollIntoView({
|
@@ -256394,7 +256394,7 @@ const e_n = (e) => e.context.awareness, t_n = (e) => !!(e.context.isReady && e.c
|
|
256394
256394
|
}
|
256395
256395
|
}, J = (Ie, $e, Ke) => {
|
256396
256396
|
Y(Ie, Ke);
|
256397
|
-
}, fe =
|
256397
|
+
}, fe = Nt(() => Z, [Z]), Fe = rt(null), Me = (Ie, $e) => {
|
256398
256398
|
const { state: Ke } = Ie, { selection: Ze } = Ke, { from: vt, to: kt, empty: Ct } = Ze;
|
256399
256399
|
if ($e.key === "Backspace" || $e.key === "Delete") {
|
256400
256400
|
let Mt = !1;
|
@@ -256499,7 +256499,7 @@ const e_n = (e) => e.context.awareness, t_n = (e) => !!(e.context.isReady && e.c
|
|
256499
256499
|
isEns: P.isEns
|
256500
256500
|
});
|
256501
256501
|
}, [R, n, P == null ? void 0 : P.isEns]);
|
256502
|
-
const ge =
|
256502
|
+
const ge = Nt(() => !R || !V || !j ? null : { ydoc: j, awareness: V }, [R]);
|
256503
256503
|
He(() => R ? ((async () => {
|
256504
256504
|
le([
|
256505
256505
|
...Z.filter(($e) => $e.name !== "history"),
|
@@ -256518,7 +256518,7 @@ const e_n = (e) => e.context.awareness, t_n = (e) => !!(e.context.isReady && e.c
|
|
256518
256518
|
}, () => {
|
256519
256519
|
me.current();
|
256520
256520
|
}) : void 0, [R]);
|
256521
|
-
const xe = rt(null), U =
|
256521
|
+
const xe = rt(null), U = Nt(() => X ? O && R : !e, [
|
256522
256522
|
X,
|
256523
256523
|
O,
|
256524
256524
|
e,
|
@@ -257532,7 +257532,7 @@ const w_n = ({
|
|
257532
257532
|
}) => {
|
257533
257533
|
const [y, b] = Re(!1), [v, x] = Re(0), [F, k] = Re(!0), { isNativeMobile: D } = Bu(), [C, S] = Re(null), [z, P] = Re(null), T = 50, [_, M] = Re(
|
257534
257534
|
"forward"
|
257535
|
-
), B =
|
257535
|
+
), B = Nt(() => new p7({
|
257536
257536
|
extensions: e.extensionManager.extensions.filter(
|
257537
257537
|
(X) => ![
|
257538
257538
|
"collaboration",
|
@@ -258281,26 +258281,31 @@ const w_n = ({
|
|
258281
258281
|
editor: e,
|
258282
258282
|
activeCommentId: t,
|
258283
258283
|
commentDrawerOpen: n,
|
258284
|
-
isCollabDocumentPublished: r
|
258284
|
+
isCollabDocumentPublished: r,
|
258285
|
+
disableInlineComment: o
|
258285
258286
|
}) => {
|
258286
|
-
const { comments:
|
258287
|
-
|
258288
|
-
|
258289
|
-
|
258290
|
-
|
258291
|
-
|
258292
|
-
|
258293
|
-
|
258294
|
-
|
258287
|
+
const { comments: i, username: a } = $c(), { isNativeMobile: s } = Bu(), l = rt(o || !1);
|
258288
|
+
He(() => {
|
258289
|
+
l.current = o || !1;
|
258290
|
+
}, [o]);
|
258291
|
+
const u = i == null ? void 0 : i.find(
|
258292
|
+
(d) => d.id === t
|
258293
|
+
), c = Nt(() => ({
|
258294
|
+
shouldShow: ({ editor: d }) => {
|
258295
|
+
var g, m;
|
258296
|
+
const f = (g = d.getAttributes("comment")) == null ? void 0 : g.resolved, h = l.current, p = d.isActive("comment") && !f && r && !h;
|
258297
|
+
if (p) {
|
258298
|
+
const y = (m = d.getAttributes("comment")) == null ? void 0 : m.commentId;
|
258299
|
+
d.commands.setCommentActive(y);
|
258295
258300
|
} else
|
258296
|
-
|
258297
|
-
return
|
258301
|
+
d.commands.unsetCommentActive();
|
258302
|
+
return p;
|
258298
258303
|
},
|
258299
|
-
onHide: ({ editor:
|
258300
|
-
|
258304
|
+
onHide: ({ editor: d }) => {
|
258305
|
+
d.commands.unsetCommentActive();
|
258301
258306
|
},
|
258302
258307
|
tippyOptions: {
|
258303
|
-
moveTransition:
|
258308
|
+
moveTransition: s ? "transform 0.2s ease-in" : "none",
|
258304
258309
|
duration: 200,
|
258305
258310
|
animation: "shift-toward-subtle",
|
258306
258311
|
zIndex: 40,
|
@@ -258332,11 +258337,11 @@ const w_n = ({
|
|
258332
258337
|
]
|
258333
258338
|
}
|
258334
258339
|
}
|
258335
|
-
};
|
258340
|
+
}), [s, r]);
|
258336
258341
|
return /* @__PURE__ */ E.jsx(
|
258337
258342
|
II,
|
258338
258343
|
{
|
258339
|
-
...
|
258344
|
+
...c,
|
258340
258345
|
editor: e,
|
258341
258346
|
className: je(
|
258342
258347
|
"shadow-elevation-4 rounded-lg color-bg-default border color-border-default",
|
@@ -258347,10 +258352,10 @@ const w_n = ({
|
|
258347
258352
|
{
|
258348
258353
|
activeCommentId: t,
|
258349
258354
|
isBubbleMenu: !0,
|
258350
|
-
initialComment:
|
258351
|
-
selectedContent:
|
258352
|
-
isDisabled:
|
258353
|
-
isCommentOwner: (
|
258355
|
+
initialComment: u == null ? void 0 : u.content,
|
258356
|
+
selectedContent: u == null ? void 0 : u.selectedContent,
|
258357
|
+
isDisabled: u && !Object.hasOwn(u, "commentIndex"),
|
258358
|
+
isCommentOwner: (u == null ? void 0 : u.username) === a
|
258354
258359
|
}
|
258355
258360
|
)
|
258356
258361
|
}
|
@@ -258367,7 +258372,7 @@ const w_n = ({
|
|
258367
258372
|
i.preventDefault(), i.stopPropagation(), t(i, e.id);
|
258368
258373
|
},
|
258369
258374
|
[t, e.id]
|
258370
|
-
), o =
|
258375
|
+
), o = Nt(() => je(
|
258371
258376
|
"flex items-center transition-all text-body-sm-bold max-[1280px]:h-[32px] max-[1280px]:px-2 max-[1280px]:py-1 h-5 max-[1280px]:max-w-full xl:!max-w-[200px] min-[1440px]:!max-w-[280px] min-[1600px]:!max-w-[320px] xl:border-l-2",
|
258372
258377
|
e.isActive ? "color-border-active color-text-default max-[1280px]:border-none max-[1280px]:bg-[#F8F9FA] max-[1280px]:rounded max-[1280px]:text-[#363B3F]" : "color-text-secondary border-transparent lg:hover:!brightness-90"
|
258373
258378
|
), [e.isActive]);
|
@@ -258397,7 +258402,7 @@ l7e.displayName = "ToCItem";
|
|
258397
258402
|
const u7e = Kd(() => /* @__PURE__ */ E.jsx("div", { className: "p-4 text-center text-body-sm color-text-secondary select-none", children: /* @__PURE__ */ E.jsx("p", { children: "Start editing your document to see the outline." }) }));
|
258398
258403
|
u7e.displayName = "ToCEmptyState";
|
258399
258404
|
const c7e = Kd(({ items: e = [], editor: t, setItems: n }) => {
|
258400
|
-
const [r, o] = Re(null), i = Qi("(max-width: 1280px)"), a = rt(null), s = rt(0), l = rt(null), { collapsedHeadings: u, setCollapsedHeadings: c, expandMultipleHeadings: d } = vz(), f =
|
258405
|
+
const [r, o] = Re(null), i = Qi("(max-width: 1280px)"), a = rt(null), s = rt(0), l = rt(null), { collapsedHeadings: u, setCollapsedHeadings: c, expandMultipleHeadings: d } = vz(), f = Nt(() => e.map((y) => ({
|
258401
258406
|
...y,
|
258402
258407
|
isActive: y.id === r
|
258403
258408
|
})), [e, r]), h = We(() => {
|
@@ -259184,13 +259189,14 @@ const ioe = Ne.memo(c7e), S_n = ({
|
|
259184
259189
|
isPreviewMode: e
|
259185
259190
|
}
|
259186
259191
|
),
|
259187
|
-
/* @__PURE__ */ E.jsx("div", { children: ve &&
|
259192
|
+
/* @__PURE__ */ E.jsx("div", { children: ve && /* @__PURE__ */ E.jsx(
|
259188
259193
|
A_n,
|
259189
259194
|
{
|
259190
259195
|
editor: ve,
|
259191
259196
|
activeCommentId: Bt,
|
259192
259197
|
commentDrawerOpen: le,
|
259193
|
-
isCollabDocumentPublished: de
|
259198
|
+
isCollabDocumentPublished: de,
|
259199
|
+
disableInlineComment: be
|
259194
259200
|
}
|
259195
259201
|
) })
|
259196
259202
|
] }) });
|
package/dist/index.es.js
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
import { Editor } from '@tiptap/core';
|
2
2
|
|
3
|
-
export declare const CommentBubbleCard: ({ editor, activeCommentId, commentDrawerOpen, isCollabDocumentPublished, }: {
|
3
|
+
export declare const CommentBubbleCard: ({ editor, activeCommentId, commentDrawerOpen, isCollabDocumentPublished, disableInlineComment, }: {
|
4
4
|
editor: Editor;
|
5
5
|
activeCommentId: string | null;
|
6
6
|
commentDrawerOpen: boolean;
|
7
7
|
isCollabDocumentPublished: boolean | undefined;
|
8
|
+
disableInlineComment?: boolean;
|
8
9
|
}) => import("react/jsx-runtime").JSX.Element;
|